mirror of
https://github.com/tdurieux/anonymous_github.git
synced 2026-04-21 21:06:01 +02:00
2624 lines
3.9 MiB
Plaintext
2624 lines
3.9 MiB
Plaintext
!function(fe){"use strict";function i(e){if(!ve(e))return an;A(e.objectMaxDepth)&&(an.objectMaxDepth=w(e.objectMaxDepth)?e.objectMaxDepth:NaN),A(e.urlErrorParamsEnabled)&&S(e.urlErrorParamsEnabled)&&(an.urlErrorParamsEnabled=e.urlErrorParamsEnabled)}function w(e){return y(e)&&0<e}function $(r,s){return s=s||Error,function(){var e=arguments[0];for(t="["+(r?r+":":"")+e+"] http://errors.angularjs.org/1.8.2/"+(r?r+"/":"")+e,e=1;e<arguments.length;e++){var t=t+(1==e?"?":"&")+"p"+(e-1)+"=",i=encodeURIComponent,n=arguments[e];t+=i(n="function"==typeof n?n.toString().replace(/ \{[\s\S]*$/,""):void 0===n?"undefined":"string"!=typeof n?JSON.stringify(n):n)}return new s(t)}}function M(e){var t;return null!=e&&!u(e)&&(we(e)||xe(e)||Ae&&e instanceof Ae||y(t="length"in Object(e)&&e.length)&&(0<=t&&t-1 in e||"function"==typeof e.item))}function me(e,t,i){if(e)if(ke(e))for(r in e)"prototype"!==r&&"length"!==r&&"name"!==r&&e.hasOwnProperty(r)&&t.call(i,e[r],r,e);else if(we(e)||M(e))for(var n="object"!=typeof e,r=0,s=e.length;r<s;r++)(n||r in e)&&t.call(i,e[r],r,e);else if(e.forEach&&e.forEach!==me)e.forEach(t,i,e);else if(c(e))for(r in e)t.call(i,e[r],r,e);else if("function"==typeof e.hasOwnProperty)for(r in e)e.hasOwnProperty(r)&&t.call(i,e[r],r,e);else for(r in e)ln.call(e,r)&&t.call(i,e[r],r,e);return e}function a(e,t,i){for(var n=Object.keys(e).sort(),r=0;r<n.length;r++)t.call(i,e[n[r]],n[r])}function T(i){return function(e,t){i(t,e)}}function p(e,t,i){for(var n=e.$$hashKey,r=0,s=t.length;r<s;++r){var a=t[r];if(ve(a)||ke(a))for(var o=Object.keys(a),l=0,c=o.length;l<c;l++){var h=o[l],u=a[h];i&&ve(u)?k(u)?e[h]=new Date(u.valueOf()):f(u)?e[h]=new RegExp(u):u.nodeName?e[h]=u.cloneNode(!0):I(u)?e[h]=u.clone():"__proto__"!==h&&(ve(e[h])||(e[h]=we(u)?[]:{}),p(e[h],[u],!0)):e[h]=u}}return n?e.$$hashKey=n:delete e.$$hashKey,e}function ye(e){return p(e,hn.call(arguments,1),!1)}function n(e){return p(e,hn.call(arguments,1),!0)}function m(e){return parseInt(e,10)}function Re(e,t){return ye(Object.create(e),t)}function _(){}function Me(e){return e}function C(e){return function(){return e}}function h(e){return ke(e.toString)&&e.toString!==b}function be(e){return void 0===e}function A(e){return void 0!==e}function ve(e){return null!==e&&"object"==typeof e}function c(e){return null!==e&&"object"==typeof e&&!pn(e)}function xe(e){return"string"==typeof e}function y(e){return"number"==typeof e}function k(e){return"[object Date]"===b.call(e)}function we(e){return Array.isArray(e)||e instanceof Array}function Ie(e){switch(b.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return 1;default:return e instanceof Error}}function ke(e){return"function"==typeof e}function f(e){return"[object RegExp]"===b.call(e)}function u(e){return e&&e.window===e}function Ne(e){return e&&e.$evalAsync&&e.$watch}function S(e){return"boolean"==typeof e}function I(e){return!(!e||!(e.nodeName||e.prop&&e.attr&&e.find))}function Te(e){return Ee(e.nodeName||e[0]&&e[0].nodeName)}function De(e,t){t=e.indexOf(t);return 0<=t&&e.splice(t,1),t}function N(e,i,t){function r(e,t,i){if(--i<0)return"...";var n=t.$$hashKey;if(we(e))for(var r=0,s=e.length;r<s;r++)t.push(a(e[r],i));else if(c(e))for(r in e)t[r]=a(e[r],i);else if(e&&"function"==typeof e.hasOwnProperty)for(r in e)e.hasOwnProperty(r)&&(t[r]=a(e[r],i));else for(r in e)ln.call(e,r)&&(t[r]=a(e[r],i));return n?t.$$hashKey=n:delete t.$$hashKey,t}function a(e,t){if(!ve(e))return e;if(-1!==(i=s.indexOf(e)))return o[i];if(u(e)||Ne(e))throw gn("cpws");var i=!1,n=function(e){switch(b.call(e)){case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Float32Array]":case"[object Float64Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return new e.constructor(a(e.buffer),e.byteOffset,e.length);case"[object ArrayBuffer]":var t;return e.slice?e.slice(0):(t=new ArrayBuffer(e.byteLength),new Uint8Array(t).set(new Uint8Array(e)),t);case"[object Boolean]":case"[object Number]":case"[object String]":case"[object Date]":return new e.constructor(e.valueOf());case"[object RegExp]":return(t=new RegExp(e.source,e.toString().match(/[^/]*$/)[0])).lastIndex=e.lastIndex,t;case"[object Blob]":return new e.constructor([e],{type:e.type})}if(ke(e.cloneNode))return e.cloneNode(!0)}(e);return void 0===n&&(n=we(e)?[]:Object.create(pn(e)),i=!0),s.push(e),o.push(n),i?r(e,n,t):n}var n,s=[],o=[];if(t=w(t)?t:NaN,i){if((n=i)&&y(n.length)&&yn.test(b.call(n))||"[object ArrayBuffer]"===b.call(i))throw gn("cpta");if(e===i)throw gn("cpi");return we(i)?i.length=0:me(i,function(e,t){"$$hashKey"!==t&&delete i[t]}),s.push(e),o.push(i),r(e,i,t)}return a(e,t)}function Oe(e,t){return e===t||e!=e&&t!=t}function Se(e,t){if(e===t)return!0;if(null!==e&&null!==t){if(e!=e&&t!=t)return!0;var i,n=typeof e;if(n===typeof t&&"object"===n){if(!we(e)){if(k(e))return!!k(t)&&Oe(e.getTime(),t.getTime());if(f(e))return!!f(t)&&e.toString()===t.toString();if(Ne(e)||Ne(t)||u(e)||u(t)||we(t)||k(t)||f(t))return!1;for(i in n=_e(),e)if("$"!==i.charAt(0)&&!ke(e[i])){if(!Se(e[i],t[i]))return!1;n[i]=!0}for(i in t)if(!(i in n)&&"$"!==i.charAt(0)&&A(t[i])&&!ke(t[i]))return!1;return!0}if(!we(t))return!1;if((n=e.length)===t.length){for(i=0;i<n;i++)if(!Se(e[i],t[i]))return!1;return!0}}}return!1}function D(e,t,i){return e.concat(hn.call(t,i))}function Pe(e,t){var i=2<arguments.length?hn.call(arguments,2):[];return!ke(t)||t instanceof RegExp?t:i.length?function(){return arguments.length?t.apply(e,D(i,arguments,0)):t.apply(e,i)}:function(){return arguments.length?t.apply(e,arguments):t.call(e)}}function O(e,t){var i=t;return"string"==typeof e&&"$"===e.charAt(0)&&"$"===e.charAt(1)?i=void 0:u(t)?i="$WINDOW":t&&fe.document===t?i="$DOCUMENT":Ne(t)&&(i="$SCOPE"),i}function r(e,t){if(!be(e))return y(t)||(t=t?2:null),JSON.stringify(e,O,t)}function P(e){return xe(e)?JSON.parse(e):e}function B(e,t){e=e.replace(wn,"");e=Date.parse("Jan 01, 1970 00:00:00 "+e)/6e4;return R(e)?t:e}function F(e,t){return(e=new Date(e.getTime())).setMinutes(e.getMinutes()+t),e}function j(e,t,i){i=i?-1:1;var n=e.getTimezoneOffset();return F(e,i*((t=B(t,n))-n))}function Be(e){e=Ae(e).clone().empty();var t=Ae("<div></div>").append(e).html();try{return e[0].nodeType===Cn?Ee(t):t.match(/^(<[^>]+>)/)[1].replace(/^<([\w-]+)/,function(e,t){return"<"+Ee(t)})}catch(e){return Ee(t)}}function z(e){try{return decodeURIComponent(e)}catch(e){}}function H(e){var r={};return me((e||"").split("&"),function(e){var t,i,n;e&&(i=e=e.replace(/\+/g,"%20"),-1!==(t=e.indexOf("="))&&(i=e.substring(0,t),n=e.substring(t+1)),A(i=z(i)))&&(n=!A(n)||z(n),ln.call(r,i)?we(r[i])?r[i].push(n):r[i]=[r[i],n]:r[i]=n)}),r}function U(e){return s(e,!0).replace(/%26/gi,"&").replace(/%3D/gi,"=").replace(/%2B/gi,"+")}function s(e,t){return encodeURIComponent(e).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%3B/gi,";").replace(/%20/g,t?"%20":"+")}function q(i,e){var n,r,t={};me(kn,function(e){e+="app",!n&&i.hasAttribute&&i.hasAttribute(e)&&(r=(n=i).getAttribute(e))}),me(kn,function(e){var t;e+="app",!n&&(t=i.querySelector("["+e.replace(":","\\:")+"]"))&&(r=(n=t).getAttribute(e))}),n&&(Tn?(t.strictDi=null!==function(e,t){for(var i,n=kn.length,r=0;r<n;++r)if(i=kn[r]+t,xe(i=e.getAttribute(i)))return i;return null}(n,"strict-di"),e(n,r?[r]:[],t)):fe.console.error("AngularJS: disabling automatic bootstrap. <script> protocol indicates an extension, document.location.href does not match."))}function W(t,i,n){n=ye({strictDi:!1},n=ve(n)?n:{});function r(){var e;if((t=Ae(t)).injector())throw e=t[0]===fe.document?"document":Be(t),gn("btstrpd",e.replace(/</,"<").replace(/>/,">"));return(i=i||[]).unshift(["$provide",function(e){e.value("$rootElement",t)}]),n.debugInfoEnabled&&i.push(["$compileProvider",function(e){e.debugInfoEnabled(!0)}]),i.unshift("ng"),(e=et(i,n.strictDi)).invoke(["$rootScope","$rootElement","$compile","$injector",function(e,t,i,n){e.$apply(function(){t.data("$injector",n),i(t)(e)})}]),e}var e=/^NG_ENABLE_DEBUG_INFO!/,s=/^NG_DEFER_BOOTSTRAP!/;if(fe&&e.test(fe.name)&&(n.debugInfoEnabled=!0,fe.name=fe.name.replace(e,"")),fe&&!s.test(fe.name))return r();fe.name=fe.name.replace(s,""),x.resumeBootstrap=function(e){return me(e,function(e){i.push(e)}),r()},ke(x.resumeDeferredBootstrap)&&x.resumeDeferredBootstrap()}function V(){fe.name="NG_ENABLE_DEBUG_INFO!"+fe.name,fe.location.reload()}function G(e){if(e=x.element(e).injector())return e.get("$$testability");throw gn("test")}function Fe(e,i){return i=i||"_",e.replace(Sn,function(e,t){return(t?i:"")+e.toLowerCase()})}function Y(){l.legacyXHTMLReplacement=!0}function je(e,t,i){if(!e)throw gn("areq",t||"?",i||"required")}function X(e,t,i){je(ke(e=i&&we(e)?e[e.length-1]:e),t,"not a function, got "+(e&&"object"==typeof e?e.constructor.name||"Object":typeof e))}function K(e,t){if("hasOwnProperty"===e)throw gn("badname",t)}function Z(e){for(var t,i=e[0],n=e[e.length-1],r=1;i!==n&&(i=i.nextSibling);r++)!t&&e[r]===i||(t=t||Ae(hn.call(e,0,r))).push(i);return t||e}function _e(){return Object.create(null)}function Q(e){if(null==e)return"";switch(typeof e){case"string":break;case"number":e=""+e;break;default:e=!h(e)||we(e)||k(e)?r(e):e.toString()}return e}function E(e,t){if(we(e)){t=t||[];for(var i=0,n=e.length;i<n;i++)t[i]=e[i]}else if(ve(e))for(i in t=t||{},e)"$"===i.charAt(0)&&"$"===i.charAt(1)||(t[i]=e[i]);return t||e}function J(e,t){return t.toUpperCase()}function ee(e){return e.replace(Ln,J)}function te(e){return 1===(e=e.nodeType)||!e||9===e}function ie(e,t){var i,n,r,s,a=t.createDocumentFragment(),o=[];if(Dn.test(e)){if(i=a.appendChild(t.createElement("div")),n=(On.exec(e)||["",""])[1].toLowerCase(),r=l.legacyXHTMLReplacement?e.replace(Pn,"<$1></$2>"):e,mn<10)for(n=Fn[n]||Fn._default,i.innerHTML=n[1]+r+n[2],s=n[0];s--;)i=i.firstChild;else{for(s=(n=Bn[n]||[]).length;-1<--s;)i.appendChild(fe.document.createElement(n[s])),i=i.firstChild;i.innerHTML=r}o=D(o,i.childNodes),(i=a.firstChild).textContent=""}else o.push(t.createTextNode(e));return a.textContent="",a.innerHTML="",me(o,function(e){a.appendChild(e)}),a}function l(e){if(e instanceof l)return e;var t,i;if(xe(e)&&(e=$e(e),i=!0),!(this instanceof l)){if(i&&"<"!==e.charAt(0))throw In("nosel");return new l(e)}i?(i=fe.document,pe(this,e=(t=Nn.exec(e))?[i.createElement(t[1])]:(t=ie(e,i))?t.childNodes:[])):ke(e)?We(e):pe(this,e)}function ze(e){return e.cloneNode(!0)}function ne(e,t){!t&&te(e)&&Ae.cleanData([e]),e.querySelectorAll&&Ae.cleanData(e.querySelectorAll("*"))}function re(e){for(var t in e)return;return 1}function se(e){var t=e.ng339,i=t&&En[t],n=i&&i.events;(i=i&&i.data)&&!re(i)||n&&!re(n)||(delete En[t],e.ng339=void 0)}function ae(i,e,n,t){if(A(t))throw In("offargs");var r=(t=le(i))&&t.events,s=t&&t.handle;if(s){if(e){var a=function(e){var t=r[e];A(n)&&De(t||[],n),A(n)&&t&&0<t.length||(i.removeEventListener(e,s),delete r[e])};me(e.split(" "),function(e){a(e),Mn[e]&&a(Mn[e])})}else for(e in r)"$destroy"!==e&&i.removeEventListener(e,s),delete r[e];se(i)}}function oe(e,t){var i=e.ng339;(i=i&&En[i])&&(t?delete i.data[t]:i.data={},se(e))}function le(e,t){var i=(i=e.ng339)&&En[i];return t&&!i&&(e.ng339=i=++$n,i=En[i]={events:{},data:{},handle:void 0}),i}function ce(e,t,i){if(te(e)){var n,r=A(i),s=!r&&t&&!ve(t),a=!t;if(e=(e=le(e,!s))&&e.data,r)e[ee(t)]=i;else{if(a)return e;if(s)return e&&e[ee(t)];for(n in t)e[ee(n)]=t[n]}}}function he(e,t){return!!e.getAttribute&&-1<(" "+(e.getAttribute("class")||"")+" ").replace(/[\n\t]/g," ").indexOf(" "+t+" ")}function ue(e,t){var i,n;t&&e.setAttribute&&(i=(" "+(e.getAttribute("class")||"")+" ").replace(/[\n\t]/g," "),n=i,me(t.split(" "),function(e){e=$e(e),n=n.replace(" "+e+" "," ")}),n!==i)&&e.setAttribute("class",$e(n))}function de(e,t){var i,n;t&&e.setAttribute&&(i=(" "+(e.getAttribute("class")||"")+" ").replace(/[\n\t]/g," "),n=i,me(t.split(" "),function(e){e=$e(e),-1===n.indexOf(" "+e+" ")&&(n+=e+" ")}),n!==i)&&e.setAttribute("class",$e(n))}function pe(e,t){if(t)if(t.nodeType)e[e.length++]=t;else{var i=t.length;if("number"==typeof i&&t.window!==t){if(i)for(var n=0;n<i;n++)e[e.length++]=t[n]}else e[e.length++]=t}}function ge(e,t){return He(e,"$"+(t||"ngController")+"Controller")}function He(e,t,i){for(9===e.nodeType&&(e=e.documentElement),t=we(t)?t:[t];e;){for(var n=0,r=t.length;n<r;n++)if(A(i=Ae.data(e,t[n])))return i;e=e.parentNode||11===e.nodeType&&e.host}}function Ue(e){for(ne(e,!0);e.firstChild;)e.removeChild(e.firstChild)}function qe(e,t){t||ne(e);t=e.parentNode;t&&t.removeChild(e)}function We(e){function t(){fe.document.removeEventListener("DOMContentLoaded",t),fe.removeEventListener("load",t),e()}"complete"===fe.document.readyState?fe.setTimeout(e):(fe.document.addEventListener("DOMContentLoaded",t),fe.addEventListener("load",t))}function Ve(e,t){t=qn[t.toLowerCase()];return t&&Wn[Te(e)]&&t}function Ge(o,l){function e(e,t){e.isDefaultPrevented=function(){return e.defaultPrevented};var i=l[t||e.type],n=i?i.length:0;if(n){be(e.immediatePropagationStopped)&&(r=e.stopImmediatePropagation,e.stopImmediatePropagation=function(){e.immediatePropagationStopped=!0,e.stopPropagation&&e.stopPropagation(),r&&r.call(e)}),e.isImmediatePropagationStopped=function(){return!0===e.immediatePropagationStopped};var r,s=i.specialHandlerWrapper||Ye;1<n&&(i=E(i));for(var a=0;a<n;a++)e.isImmediatePropagationStopped()||s(o,e,i[a])}}return e.elem=o,e}function Ye(e,t,i){i.call(e,t)}function Xe(e,t,i){var n=t.relatedTarget;n&&(n===e||Hn.call(e,n))||i.call(e,t)}function Ke(){this.$get=function(){return ye(l,{hasClass:function(e,t){return he(e=e.attr?e[0]:e,t)},addClass:function(e,t){return de(e=e.attr?e[0]:e,t)},removeClass:function(e,t){return ue(e=e.attr?e[0]:e,t)}})}}function Ze(e,t){var i=e&&e.$$hashKey;return i?"function"==typeof i?e.$$hashKey():i:"function"===(i=typeof e)||"object"===i&&null!==e?e.$$hashKey=i+":"+(t||function(){return++fn})():i+":"+e}function Qe(){this._keys=[],this._values=[],this._lastKey=NaN,this._lastIndex=-1}function Je(e){return(e=Function.prototype.toString.call(e).replace(vr,"")).match(fr)||e.match(mr)}function et(e,l){function t(i){return function(e,t){if(!ve(e))return i(e,t);me(e,T(i))}}function s(e,t){if(K(e,"service"),(t=ke(t)||we(t)?u.instantiate(t):t).$get)return h[e+"Provider"]=t;throw xr("pget",e)}function i(e,t,i){return s(e,{$get:!1!==i?(n=e,r=t,function(){var e=g.invoke(r,this);if(be(e))throw xr("undef",n);return e}):t});var n,r}function r(e){je(be(e)||we(e),"modulesToLoad","not an array");var i,n=[];return me(e,function(t){function e(e){for(var t=0,i=e.length;t<i;t++){var n=e[t],r=u.get(n[0]);r[n[1]].apply(r,n[2])}}if(!o.get(t)){o.set(t,!0);try{xe(t)?(i=nn(t),g.modules[t]=i,n=n.concat(r(i.requires)).concat(i._runBlocks),e(i._invokeQueue),e(i._configBlocks)):ke(t)||we(t)?n.push(u.invoke(t)):X(t,"module")}catch(e){throw we(t)&&(t=t[t.length-1]),e.message&&e.stack&&-1===e.stack.indexOf(e.message)&&(e=e.message+"\n"+e.stack),xr("modulerr",t,e.stack||e.message||e)}}}),n}function n(i,n){function o(t,e){if(i.hasOwnProperty(t)){if(i[t]===a)throw xr("cdep",t+" <- "+c.join(" <- "));return i[t]}try{return c.unshift(t),i[t]=a,i[t]=n(t,e),i[t]}catch(e){throw i[t]===a&&delete i[t],e}finally{c.shift()}}function s(e,t,i){for(var n=[],r=0,s=(e=et.$$annotate(e,l,i)).length;r<s;r++){var a=e[r];if("string"!=typeof a)throw xr("itkn",a);n.push(t&&t.hasOwnProperty(a)?t[a]:o(a,i))}return n}return{invoke:function(e,t,i,n){var r;return"string"==typeof i&&(n=i,i=null),i=s(e,i,n),n=e=we(e)?e[e.length-1]:e,(n=!mn&&"function"==typeof n&&(r=S(r=n.$$ngIsClass)?r:n.$$ngIsClass=/^class\b/.test(Function.prototype.toString.call(n))))?(i.unshift(null),new(Function.prototype.bind.apply(e,i))):e.apply(t,i)},instantiate:function(e,t,i){var n=we(e)?e[e.length-1]:e;return(e=s(e,t,i)).unshift(null),new(Function.prototype.bind.apply(n,e))},get:o,annotate:et.$$annotate,has:function(e){return h.hasOwnProperty(e+"Provider")||i.hasOwnProperty(e)}}}l=!0===l;var a={},c=[],o=new pr,h={$provide:{provider:t(s),factory:t(i),service:t(function(e,t){return i(e,["$injector",function(e){return e.instantiate(t)}])}),value:t(function(e,t){return i(e,C(t),!1)}),constant:t(function(e,t){K(e,"constant"),h[e]=t,d[e]=t}),decorator:function(e,t){var i=u.get(e+"Provider"),n=i.$get;i.$get=function(){var e=g.invoke(n,i);return g.invoke(t,null,{$delegate:e})}}}},u=h.$injector=n(h,function(e,t){throw x.isString(t)&&c.push(t),xr("unpr",c.join(" <- "))}),d={},p=n(d,function(e,t){t=u.get(e+"Provider",t);return g.invoke(t.$get,t,void 0,e)}),g=p,e=(h.$injectorProvider={$get:C(p)},g.modules=u.modules=_e(),r(e));return(g=p.get("$injector")).strictDi=l,me(e,function(e){e&&g.invoke(e)}),g.loadNewModules=function(e){me(r(e),function(e){e&&g.invoke(e)})},g}function tt(){var e=!0;this.disableAutoScrolling=function(){e=!1},this.$get=["$window","$location","$rootScope",function(i,r,n){function s(e){var t;e?(e.scrollIntoView(),ke(t=a.yOffset)?t=t():I(t)?(t=t[0],t="fixed"!==i.getComputedStyle(t).position?0:t.getBoundingClientRect().bottom):y(t)||(t=0),t&&(e=e.getBoundingClientRect().top,i.scrollBy(0,e-t))):i.scrollTo(0,0)}function a(e){var t,i,n;(e=xe(e)?e:y(e)?e.toString():r.hash())?(t=o.getElementById(e))||(i=o.getElementsByName(e),n=null,Array.prototype.some.call(i,function(e){if("a"===Te(e))return n=e,!0}),t=n)?s(t):"top"===e&&s(null):s(null)}var o=i.document;return e&&n.$watch(function(){return r.hash()},function(e,t){var i;e===t&&""===e||(t=function(){n.$evalAsync(a)},"complete"===(i=i||fe).document.readyState?i.setTimeout(t):Ae(i).on("load",t))}),a}]}function it(e,t){return e||t?e?t?(e=we(e)?e.join(" "):e)+" "+(t=we(t)?t.join(" "):t):e:t:""}function nt(e){return ve(e)?e:{}}function rt(s,e,t,a,i){function n(){v=null,r()}function o(){Se(f=be(f=x())?null:f,T)&&(f=T),m=T=f}function r(){var e=m;o(),y===l.url()&&e===f||(y=l.url(),m=f,me(w,function(e){e(l.url(),f)}))}var l=this,c=s.location,h=s.history,u=s.setTimeout,d=s.clearTimeout,p={},g=i(t);l.isMock=!1,l.$$completeOutstandingRequest=g.completeTask,l.$$incOutstandingRequestCount=g.incTaskCount,l.notifyWhenNoOutstandingRequests=g.notifyWhenNoPendingTasks;var f,m,y=c.href,b=e.find("base"),v=null,x=a.history?function(){try{return h.state}catch(e){}}:_,w=(o(),l.url=function(e,t,i){var n,r;return be(i)&&(i=null),c!==s.location&&(c=s.location),h!==s.history&&(h=s.history),e?(n=m===i,e=L(e).href,(y!==e||a.history&&!n)&&(r=y&&It(y)===It(e),y=e,m=i,!a.history||r&&n?(r||(v=e),t?c.replace(e):r?(t=c,i=-1===(n=(i=e).indexOf("#"))?"":i.substr(n),t.hash=i):c.href=e,c.href!==e&&(v=e)):(h[t?"replaceState":"pushState"](i,"",e),o()),v=v&&e),l):(v||c.href).replace(/#$/,"")},l.state=function(){return f},[]),k=!1,T=null;l.onUrlChange=function(e){return k||(a.history&&Ae(s).on("popstate",n),Ae(s).on("hashchange",n),k=!0),w.push(e),e},l.$$applicationDestroyed=function(){Ae(s).off("hashchange popstate",n)},l.$$checkUrlChange=r,l.baseHref=function(){var e=b.attr("href");return e?e.replace(/^(https?:)?\/\/[^/]*/,""):""},l.defer=function(e,t,i){var n;return t=t||0,i=i||g.DEFAULT_TASK_TYPE,g.incTaskCount(i),n=u(function(){delete p[n],g.completeTask(e,i)},t),p[n]=i,n},l.defer.cancel=function(e){var t;return!!p.hasOwnProperty(e)&&(t=p[e],delete p[e],d(e),g.completeTask(_,t),!0)}}function st(){this.$get=["$window","$log","$sniffer","$document","$$taskTrackerFactory",function(e,t,i,n,r){return new rt(e,n,t,i,r)}]}function at(){this.$get=function(){function e(e,t){function i(e){e!==c&&(h?h===e&&(h=e.n):h=e,n(e.n,e.p),n(e,c),(c=e).n=null)}function n(e,t){e!==t&&(e&&(e.p=t),t)&&(t.n=e)}if(e in u)throw $("$cacheFactory")("iid",e);var r=0,s=ye({},t,{id:e}),a=_e(),o=t&&t.capacity||Number.MAX_VALUE,l=_e(),c=null,h=null;return u[e]={put:function(e,t){if(!be(t))return o<Number.MAX_VALUE&&i(l[e]||(l[e]={key:e})),e in a||r++,a[e]=t,o<r&&this.remove(h.key),t},get:function(e){if(o<Number.MAX_VALUE){var t=l[e];if(!t)return;i(t)}return a[e]},remove:function(e){if(o<Number.MAX_VALUE){var t=l[e];if(!t)return;t===c&&(c=t.p),t===h&&(h=t.n),n(t.n,t.p),delete l[e]}e in a&&(delete a[e],r--)},removeAll:function(){a=_e(),r=0,l=_e(),c=h=null},destroy:function(){l=s=a=null,delete u[e]},info:function(){return ye({},s,{size:r})}}}var u={};return e.info=function(){var i={};return me(u,function(e,t){i[t]=e.info()}),i},e.get=function(e){return u[e]},e}}function ot(){this.$get=["$cacheFactory",function(e){return e("templates")}]}function lt(r,t){function p(e,n,r){var s=/^([@&]|[=<](\*?))(\??)\s*([\w$]*)$/,a=_e();return me(e,function(e,t){if((e=e.trim())in o)a[t]=o[e];else{var i=e.match(s);if(!i)throw Le("iscp",n,t,e,r?"controller bindings definition":"isolate scope definition");a[t]={mode:i[1][0],collection:"*"===i[2],optional:"?"===i[3],attrName:i[4]||t},i[4]&&(o[e]=a[t])}}),a}var ce={},he=/^\s*directive:\s*([\w-]+)\s+(.*)$/,ue=/(([\w-]+)(?::([^;]+))?;?)/,de=function(e){var t,i={};for(e=e.split(","),t=0;t<e.length;t++)i[e[t]]=!0;return i}("ngSrc,ngSrcset,src,srcset"),u=/^(?:(\^\^?)?(\?)?(\^\^?)?)?/,pe=/^(on[a-z]+|formaction)$/,o=_e(),h=(this.directive=function e(h,t){if(je(h,"name"),K(h,"directive"),xe(h)){var i=h,n=i.charAt(0);if(!n||n!==Ee(n))throw Le("baddir",i);if(i!==i.trim())throw Le("baddir",i);je(t,"directiveFactory"),ce.hasOwnProperty(h)||(ce[h]=[],r.factory(h+"Directive",["$injector","$exceptionHandler",function(o,l){var c=[];return me(ce[h],function(e,t){try{var i=o.invoke(e),n=(ke(i)?i={compile:C(i)}:!i.compile&&i.link&&(i.compile=C(i.link)),i.priority=i.priority||0,i.index=t,i.name=i.name||h,i.require=(!we(a=(s=i).require||s.controller&&s.name)&&ve(a)&&me(a,function(e,t){var i=e.match(u);e.substring(i[0].length)||(a[t]=i[0]+t)}),a),i),r=i.restrict;if(r&&(!xe(r)||!/[EACM]/.test(r)))throw Le("badrestrict",r,h);n.restrict=r||"EA",i.$$moduleName=e.$$moduleName,c.push(i)}catch(e){l(e)}var s,a}),c}])),ce[h].push(t)}else me(h,T(e));return this},this.component=function e(t,r){function i(n){function e(i){return ke(i)||we(i)?function(e,t){return n.invoke(i,this,{$element:e,$attrs:t})}:i}var t=r.template||r.templateUrl?r.template:"",i={controller:s,controllerAs:function(e,t){if(t&&xe(t))return t;if(xe(e)){t=Ar.exec(e);if(t)return t[3]}}(r.controller)||r.controllerAs||"$ctrl",template:e(t),templateUrl:e(r.templateUrl),transclude:r.transclude,scope:{},bindToController:r.bindings||{},restrict:"E",require:r.require};return me(r,function(e,t){"$"===t.charAt(0)&&(i[t]=e)}),i}var s;return xe(t)?(s=r.controller||function(){},me(r,function(e,t){"$"===t.charAt(0)&&(i[t]=e,ke(s))&&(s[t]=e)}),i.$inject=["$injector"],this.directive(t,i)):(me(t,T(Pe(this,e))),this)},this.aHrefSanitizationTrustedUrlList=function(e){return A(e)?(t.aHrefSanitizationTrustedUrlList(e),this):t.aHrefSanitizationTrustedUrlList()},Object.defineProperty(this,"aHrefSanitizationWhitelist",{get:function(){return this.aHrefSanitizationTrustedUrlList},set:function(e){this.aHrefSanitizationTrustedUrlList=e}}),this.imgSrcSanitizationTrustedUrlList=function(e){return A(e)?(t.imgSrcSanitizationTrustedUrlList(e),this):t.imgSrcSanitizationTrustedUrlList()},Object.defineProperty(this,"imgSrcSanitizationWhitelist",{get:function(){return this.imgSrcSanitizationTrustedUrlList},set:function(e){this.imgSrcSanitizationTrustedUrlList=e}}),!0),d=!(this.debugInfoEnabled=function(e){return A(e)?(h=e,this):h}),g=(this.strictComponentBindingsEnabled=function(e){return A(e)?(d=e,this):d},10),f=(this.onChangesTtl=function(e){return arguments.length?(g=e,this):g},!0),m=(this.commentDirectivesEnabled=function(e){return arguments.length?(f=e,this):f},!0),ge=(this.cssClassDirectivesEnabled=function(e){return arguments.length?(m=e,this):m},_e());function e(t,e){me(e,function(e){ge[e.toLowerCase()]=t})}this.addPropertySecurityContext=function(e,t,i){var n=e.toLowerCase()+"|"+t.toLowerCase();if(n in ge&&ge[n]!==i)throw Le("ctxoverride",e,t,ge[n],i);return ge[n]=i,this},e(v.HTML,["iframe|srcdoc","*|innerHTML","*|outerHTML"]),e(v.CSS,["*|style"]),e(v.URL,"area|href area|ping a|href a|ping blockquote|cite body|background del|cite input|src ins|cite q|cite".split(" ")),e(v.MEDIA_URL,"audio|src img|src img|srcset source|src source|srcset track|src video|src video|poster".split(" ")),e(v.RESOURCE_URL,"*|formAction applet|code applet|codebase base|href embed|src frame|src form|action head|profile html|manifest iframe|src link|href media|src object|codebase object|data script|src".split(" ")),this.$get=["$injector","$interpolate","$exceptionHandler","$templateRequest","$parse","$controller","$rootScope","$sce","$animate",function(E,$,F,j,L,oe,R,M,n){function a(){try{if(!--e)throw s=void 0,Le("infchng",g);R.$apply(function(){for(var e=0,t=s.length;e<t;++e)try{s[e]()}catch(e){F(e)}s=void 0})}finally{e++}}function o(e,t){if(!e)return e;if(!xe(e))throw Le("srcset",t,e.toString());for(var i="",n=$e(e),r=/(\s+\d+x\s*,|\s+\d+w\s*,|\s+,|,\s+)/,r=/\s/.test(n)?r:/(,)/,n=n.split(r),r=Math.floor(n.length/2),s=0;s<r;s++)var a=2*s,i=(i=i+M.getTrustedMediaUrl($e(n[a])))+(" "+$e(n[1+a]));return n=$e(n[2*s]).split(/\s/),i+=M.getTrustedMediaUrl($e(n[0])),2===n.length&&(i+=" "+$e(n[1])),i}function z(e,t){if(t)for(var i,n=Object.keys(t),r=0,s=n.length;r<s;r++)this[i=n[r]]=t[i];else this.$attr={};this.$$element=e}function H(e,t){try{e.addClass(t)}catch(e){}}function U(a,e,t,i,o){var l=q(a=a instanceof Ae?a:Ae(a),e,a,t,i,o),c=(U.$$addScopeClass(a),null);return function(e,t,i){if(!a)throw Le("multilink");je(e,"scope"),o&&o.needsNewScope&&(e=e.$parent.$new());var n=(i=i||{}).parentBoundTranscludeFn,r=i.transcludeControllers;if(i=i.futureParentElement,n&&n.$$boundTransclude&&(n=n.$$boundTransclude),i="html"!==(c=c||((i=i&&i[0])&&"foreignobject"!==Te(i)&&b.call(i).match(/SVG/)?"svg":"html"))?Ae(te(c,Ae("<div></div>").append(a).html())):t?Un.clone.call(a):a,r)for(var s in r)i.data("$"+s+"Controller",r[s].instance);return U.$$addScopeInfo(i,e),t&&t(i,e),l&&l(e,i,i,n),t||(a=l=null),i}}function q(e,h,t,i,n,r){for(var s,a,o,u,d=[],l=we(e)||e instanceof Ae,c=0;c<e.length;c++){if(s=new z,11===mn){p=void 0;g=void 0;f=void 0;y=void 0;b=void 0;m=void 0;var p=e;var g=c;var f=l;var m,y=p[g],b=y.parentNode;if(y.nodeType===Cn)for(;(m=b?y.nextSibling:p[g+1])&&m.nodeType===Cn;)y.nodeValue+=m.nodeValue,m.parentNode&&m.parentNode.removeChild(m),f&&m===p[g+1]&&p.splice(g+1,1)}(r=(a=V(e[c],[],s,0===c?i:void 0,n)).length?K(a,e[c],s,h,t,null,[],[],r):null)&&r.scope&&U.$$addScopeClass(s.$$element),s=r&&r.terminal||!(a=e[c].childNodes)||!a.length?null:q(a,r?(r.transcludeOnThisElement||!r.templateOnThisElement)&&r.transclude:h),(r||s)&&(d.push(c,r,s),o=!0,u=u||r),r=null}return o?function(e,t,i,n){var r,s,a,o,l,c;if(u)for(c=Array(t.length),o=0;o<d.length;o+=3)c[r=d[o]]=t[r];else c=t;for(o=0,l=d.length;o<l;)s=c[d[o++]],t=d[o++],r=d[o++],t?(t.scope?(a=e.$new(),U.$$addScopeInfo(Ae(s),a)):a=e,t(r,a,s,i,t.transcludeOnThisElement?W(e,t.transclude,n):!t.templateOnThisElement&&n?n:!n&&h?W(e,h):null)):r&&r(e,s.childNodes,void 0,n)}:null}function W(s,a,o){function e(e,t,i,n,r){return e||((e=s.$new(!1,r)).$$transcluded=!0),a(e,t,{parentBoundTranscludeFn:o,transcludeControllers:i,futureParentElement:n})}var t,i=e.$$slots=_e();for(t in a.$$slots)i[t]=a.$$slots[t]?W(s,a.$$slots[t],o):null;return e}function V(e,t,i,n,r){var s,a,o=i.$attr;switch(e.nodeType){case 1:I(t,Ce(s=Te(e)),"E",n,r);for(var l=e.attributes,c=0,h=l&&l.length;c<h;c++){var u,d,p,g=!1,f=!1,m=!1,y=!1,b=!1,v=(d=l[c]).name,x=d.value;(u=(p=Ce(v.toLowerCase())).match(B))?(m="Attr"===u[1],y="Prop"===u[1],b="On"===u[1],v=v.replace(Sr,"").toLowerCase().substr(4+u[1].length).replace(/_(.)/g,function(e,t){return t.toUpperCase()})):(u=p.match(le))&&function(e){if(ce.hasOwnProperty(e))for(var t=E.get(e+"Directive"),i=0,n=t.length;i<n;i++)if((e=t[i]).multiElement)return 1;return}(u[1])&&(f=(g=v).substr(0,v.length-5)+"end",v=v.substr(0,v.length-6)),y||b?(i[p]=x,o[p]=d.name,y?function(e,t,i,s){if(pe.test(s))throw Le("nodomevents");var n=function(e,t){t=t.toLowerCase();return ge[e+"|"+t]||ge["*|"+t]}(e=Te(e),s),a=Me;"srcset"!==s||"img"!==e&&"source"!==e?n&&(a=M.getTrusted.bind(M,n)):a=D,t.push({priority:100,compile:function(e,t){var n=L(t[i]),r=L(t[i],function(e){return M.valueOf(e)});return{pre:function(t,i){function e(){var e=n(t);i[0][s]=a(e)}e(),t.$watch(r,e)}}}})}(e,t,p,v):t.push(Xi(L,R,F,p,v,!1))):(o[p=Ce(v.toLowerCase())]=v,!m&&i.hasOwnProperty(p)||(i[p]=x,Ve(e,p)&&(i[p]=!0)),function(e,t,r,s,i){var n=Te(e),a=function(e,t){return"srcdoc"===t?M.HTML:"src"===t||"ngSrc"===t?-1===["img","video","audio","source","track"].indexOf(e)?M.RESOURCE_URL:M.MEDIA_URL:"xlinkHref"===t?"image"===e?M.MEDIA_URL:"a"===e?M.URL:M.RESOURCE_URL:"form"===e&&"action"===t||"base"===e&&"href"===t||"link"===e&&"href"===t?M.RESOURCE_URL:"a"!==e||"href"!==t&&"ngHref"!==t?void 0:M.URL}(n,s),o=de[s]||i,l=$(r,!i,a,o);if(l){if("multiple"===s&&"select"===n)throw Le("selmulti",Be(e));if(pe.test(s))throw Le("nodomevents");t.push({priority:100,compile:function(){return{pre:function(e,t,i){t=i.$$observers||(i.$$observers=_e());var n=i[s];n!==r&&(l=n&&$(n,!0,a,o),r=n),l&&(i[s]=l(e),(t[s]||(t[s]=[])).$$inter=!0,(i.$$observers&&i.$$observers[s].$$scope||e).$watch(l,function(e,t){"class"===s&&e!==t?i.$updateClass(e,t):i.$set(s,e)}))}}}})}}(e,t,x,p,m),I(t,p,"A",n,r,g,f))}if("input"===s&&"hidden"===e.getAttribute("type")&&e.setAttribute("autocomplete","off"),P&&(xe(o=ve(o=e.className)?o.animVal:o)&&""!==o))for(;e=ue.exec(o);)I(t,p=Ce(e[2]),"C",n,r)&&(i[p]=$e(e[3])),o=o.substr(e.index+e[0].length);break;case Cn:s=t,w=e.nodeValue,(a=$(w,!0))&&s.push({priority:0,compile:function(e){var n=!!(e=e.parent()).length;return n&&U.$$addBindingClass(e),function(e,t){var i=t.parent();n||U.$$addBindingClass(i),U.$$addBindingInfo(i,a.expressions),e.$watch(a,function(e){t[0].nodeValue=e})}}});break;case 8:if(O){var w=e,k=t,T=i,S=n,_=r;try{var C,A=he.exec(w.nodeValue);A&&(C=Ce(A[1]),I(k,C,"M",S,_))&&(T[C]=$e(A[2]))}catch(e){}}}return t.sort(N),t}function G(e,t,i){var n=[],r=0;if(t&&e.hasAttribute&&e.hasAttribute(t)){do{if(!e)throw Le("uterdir",t,i)}while(1===e.nodeType&&(e.hasAttribute(t)&&r++,e.hasAttribute(i))&&r--,n.push(e),e=e.nextSibling,0<r)}else n.push(e);return Ae(n)}function Y(s,a,o){return function(e,t,i,n,r){return t=G(t[0],a,o),s(e,t,i,n,r)}}function X(e,t,i,n,r,s){var a;return e?U(t,i,n,r,s):function(){return a||(a=U(t,i,n,r,s),t=i=s=null),a.apply(this,arguments)}}function K(e,f,m,t,i,n,y,b,r){function O(e,t,i,n){e&&((e=i?Y(e,i,n):e).require=C.require,e.directiveName=a,w!==C&&!C.$$isolateScope||(e=ne(e,{isolateScope:!0})),y.push(e)),t&&((t=i?Y(t,i,n):t).require=C.require,t.directiveName=a,w!==C&&!C.$$isolateScope||(t=ne(t,{isolateScope:!0})),b.push(t))}function s(e,t,i,n,a){var r,s,o,l,c,h;for(r in f===i?h=(n=m).$$element:n=new z(h=Ae(i),m),o=t,w?s=t.$new(!0):v&&(o=t.$parent),a&&((c=function(e,t,i,n){var r;if(Ne(e)||(n=i,i=t,t=e,e=void 0),T&&(r=l),i=i||(T?h.parent():h),!n)return a(e,t,r,i,g);var s=a.$$slots[n];if(s)return s(e,t,r,i,g);if(be(s))throw Le("noslot",n,Be(h))}).$$boundTransclude=a,c.isSlotFilled=function(e){return!!a.$$slots[e]}),x&&(l=function(e,t,i,n,r,s,a){var o,l=_e();for(o in n){var c=n[o],h={$scope:c===a||c.$$isolateScope?r:s,$element:e,$attrs:t,$transclude:i},u=c.controller;"@"===u&&(u=t[c.name]),h=oe(u,h,!0,c.controllerAs),l[c.name]=h,e.data("$"+c.name+"Controller",h.instance)}return l}(h,n,c,x,s,t,w)),w&&(U.$$addScopeInfo(h,s,!0,!(k&&(k===w||k===w.$$originalDirective))),U.$$addScopeClass(h,!0),s.$$isolateBindings=w.$$isolateBindings,(u=se(t,n,s,s.$$isolateBindings,w)).removeWatches)&&s.$on("$destroy",u.removeWatches),l){var u=x[r],d=l[r],p=u.$$bindings.bindToController;d.instance=d(),h.data("$"+u.name+"Controller",d.instance),d.bindingInfo=se(o,n,d.instance,p,u)}for(me(x,function(e,t){var i=e.require;e.bindToController&&!we(i)&&ve(i)&&ye(l[t].instance,Z(t,i,h,l))}),me(l,function(e){var t=e.instance;if(ke(t.$onChanges))try{t.$onChanges(e.bindingInfo.initialChanges)}catch(e){F(e)}if(ke(t.$onInit))try{t.$onInit()}catch(e){F(e)}ke(t.$doCheck)&&(o.$watch(function(){t.$doCheck()}),t.$doCheck()),ke(t.$onDestroy)&&o.$on("$destroy",function(){t.$onDestroy()})}),r=0,u=y.length;r<u;r++)re(d=y[r],d.isolateScope?s:t,h,n,d.require&&Z(d.directiveName,d.require,h,l),c);var g=t;for(w&&(w.template||null===w.templateUrl)&&(g=s),e&&e(g,i.childNodes,void 0,a),r=b.length-1;0<=r;r--)re(d=b[r],d.isolateScope?s:t,h,n,d.require&&Z(d.directiveName,d.require,h,l),c);me(l,function(e){ke((e=e.instance).$postLink)&&e.$postLink()})}r=r||{};for(var a,o=-Number.MAX_VALUE,v=r.newScopeDirective,x=r.controllerDirectives,w=r.newIsolateScopeDirective,k=r.templateDirective,l=r.nonTlbTranscludeDirective,c=!1,h=!1,T=r.hasElementTranscludeDirective,u=m.$$element=Ae(f),d=t,p=!1,g=!1,S=0,_=e.length;S<_;S++){var C,A=(C=e[S]).$$start,E=C.$$end;if(A&&(u=G(f,A,E)),R=void 0,o>C.priority)break;if((I=C.scope)&&(C.templateUrl||(ve(I)?(ee("new/isolated scope",w||v,C,u),w=C):ee("new/isolated scope",w,C,u)),v=v||C),a=C.name,!p&&(C.replace&&(C.templateUrl||C.template)||C.transclude&&!C.$$tlb)){for(I=S+1;p=e[I++];)if(p.transclude&&!p.$$tlb||p.replace&&(p.templateUrl||p.template)){g=!0;break}p=!0}if(!C.templateUrl&&C.controller&&(x=x||_e(),ee("'"+a+"' controller",x[a],C,u),x[a]=C),I=C.transclude)if(c=!0,C.$$tlb||(ee("transclusion",l,C,u),l=C),"element"===I)T=!0,o=C.priority,R=u,u=m.$$element=Ae(U.$$createComment(a,m[a])),f=u[0],ie(i,hn.call(R,0),f),d=X(g,R,t,o,n&&n.name,{nonTlbTranscludeDirective:l});else{var $=_e();if(ve(I)){var L,R=fe.document.createDocumentFragment(),P=_e(),M=_e();for(L in me(I,function(e,t){var i="?"===e.charAt(0);e=i?e.substring(1):e,P[e]=t,$[t]=null,M[t]=i}),me(u.contents(),function(e){var t=P[Ce(Te(e))];(t?(M[t]=!0,$[t]=$[t]||fe.document.createDocumentFragment(),$[t]):R).appendChild(e)}),me(M,function(e,t){if(!e)throw Le("reqslot",t)}),$)$[L]&&(d=Ae($[L].childNodes),$[L]=X(g,d,t));R=Ae(R.childNodes)}else R=Ae(ze(f)).contents();u.empty(),(d=X(g,R,t,void 0,void 0,{needsNewScope:C.$$isolateScope||C.$$newScope})).$$slots=$}if(C.template)if(h=!0,ee("template",k,C,u),I=ke((k=C).template)?C.template(u,m):C.template,I=ae(I),C.replace){if(n=C,R=Dn.test(I)?ut(te(C.templateNamespace,$e(I))):[],f=R[0],1!==R.length||1!==f.nodeType)throw Le("tplrt",a,"");ie(i,u,f);var I=V(f,[],_={$attr:{}}),B=e.splice(S+1,e.length-(S+1));(w||v)&&Q(I,w,v),e=e.concat(I).concat(B),J(m,_),_=e.length}else u.html(I);if(C.templateUrl)h=!0,ee("template",k,C,u),(k=C).replace&&(n=C),s=function(o,l,c,h,u,d,p,g){var f,m,y=[],b=l[0],v=o.shift(),x=Re(v,{templateUrl:null,transclude:null,replace:null,$$originalDirective:v}),w=ke(v.templateUrl)?v.templateUrl(l,c):v.templateUrl,k=v.templateNamespace;return l.empty(),j(w).then(function(e){var i;if(e=ae(e),v.replace){if(e=Dn.test(e)?ut(te(k,$e(e))):[],i=e[0],1!==e.length||1!==i.nodeType)throw Le("tplrt",v.name,w);e={$attr:{}},ie(h,l,i);var t=V(i,[],e);ve(v.scope)&&Q(t,!0),o=t.concat(o),J(c,e)}else i=b,l.html(e);for(o.unshift(x),f=K(o,i,c,u,l,v,d,p,g),me(h,function(e,t){e===i&&(h[t]=l[0])}),m=q(l[0].childNodes,u);y.length;){e=y.shift();var n,r=y.shift(),s=y.shift(),a=y.shift(),t=l[0];e.$$destroyed||(r!==b&&(n=r.className,g.hasElementTranscludeDirective&&v.replace||(t=ze(i)),ie(s,Ae(r),t),H(Ae(t),n)),r=f.transcludeOnThisElement?W(e,f.transclude,a):a,f(m,e,t,h,r))}y=null}).catch(function(e){Ie(e)&&F(e)}),function(e,t,i,n,r){e=r,t.$$destroyed||(y?y.push(t,i,n,e):(f.transcludeOnThisElement&&(e=W(t,f.transclude,r)),f(m,t,i,n,e)))}}(e.splice(S,e.length-S),u,m,i,c&&d,y,b,{controllerDirectives:x,newScopeDirective:v!==C&&v,newIsolateScopeDirective:w,templateDirective:k,nonTlbTranscludeDirective:l}),_=e.length;else if(C.compile)try{var N=C.compile(u,m,d),D=C.$$originalDirective||C;ke(N)?O(null,Pe(D,N),A,E):N&&O(Pe(D,N.pre),Pe(D,N.post),A,E)}catch(e){F(e,Be(u))}C.terminal&&(s.terminal=!0,o=Math.max(o,C.priority))}return s.scope=v&&!0===v.scope,s.transcludeOnThisElement=c,s.templateOnThisElement=h,s.transclude=d,r.hasElementTranscludeDirective=T,s}function Z(i,e,n,r){if(xe(e)){var t,s,a=e.match(u),o=(e=e.substring(a[0].length),a[1]||a[3]),a="?"===a[2];if("^^"===o?n=n.parent():s=(s=r&&r[e])&&s.instance,s||(t="$"+e+"Controller",s="^^"===o&&n[0]&&9===n[0].nodeType?null:o?n.inheritedData(t):n.data(t)),!s&&!a)throw Le("ctreq",e,i)}else if(we(e))for(s=[],o=0,a=e.length;o<a;o++)s[o]=Z(i,e[o],n,r);else ve(e)&&(s={},me(e,function(e,t){s[t]=Z(i,e,n,r)}));return s||null}function Q(e,t,i){for(var n=0,r=e.length;n<r;n++)e[n]=Re(e[n],{$$isolateScope:t,$$newScope:i})}function I(e,t,i,n,r,s,a){if(t!==r){var o=null;if(ce.hasOwnProperty(t))for(var l=0,c=(r=E.get(t+"Directive")).length;l<c;l++)if(t=r[l],(be(n)||n>t.priority)&&-1!==t.restrict.indexOf(i)){if(!(t=s?Re(t,{$$start:s,$$end:a}):t).$$bindings){var h=o=t,u=t.name,d={isolateScope:null,bindToController:null};if(ve(h.scope)&&(!0===h.bindToController?(d.bindToController=p(h.scope,u,!0),d.isolateScope={}):d.isolateScope=p(h.scope,u,!1)),ve(h.bindToController)&&(d.bindToController=p(h.bindToController,u,!0)),d.bindToController&&!h.controller)throw Le("noctrl",u);ve((o=o.$$bindings=d).isolateScope)&&(t.$$isolateBindings=o.isolateScope)}e.push(t),o=t}return o}}function J(i,n){var r=n.$attr,s=i.$attr;me(i,function(e,t){"$"!==t.charAt(0)&&(n[t]&&n[t]!==e&&(e=e.length?e+(("style"===t?";":" ")+n[t]):n[t]),i.$set(t,e,!0,r[t]))}),me(n,function(e,t){i.hasOwnProperty(t)||"$"===t.charAt(0)||(i[t]=e,"class"!==t&&"style"!==t&&(s[t]=r[t]))})}function N(e,t){var i=t.priority-e.priority;return 0!=i?i:e.name!==t.name?e.name<t.name?-1:1:e.index-t.index}function ee(e,t,i,n){function r(e){return e?" (module: "+e+")":""}if(t)throw Le("multidir",t.name,r(t.$$moduleName),i.name,r(i.$$moduleName),e,Be(n))}function te(e,t){switch(e=Ee(e||"html")){case"svg":case"math":var i=fe.document.createElement("div");return i.innerHTML="<"+e+">"+t+"</"+e+">",i.childNodes[0].childNodes;default:return t}}function D(e){return o(M.valueOf(e),"ng-prop-srcset")}function ie(e,t,i){var n,r=t[0],s=t.length,a=r.parentNode;if(e)for(n=0,o=e.length;n<o;n++)if(e[n]===r){e[n++]=i;for(var o=n+s-1,l=e.length;n<l;n++,o++)o<l?e[n]=e[o]:delete e[n];e.length-=s-1,e.context===r&&(e.context=i);break}for(a&&a.replaceChild(i,r),e=fe.document.createDocumentFragment(),n=0;n<s;n++)e.appendChild(t[n]);for(Ae.hasData(r)&&(Ae.data(i,Ae.data(r)),Ae(r).off("$destroy")),Ae.cleanData(e.querySelectorAll("*")),n=1;n<s;n++)delete t[n];t[0]=i,t.length=1}function ne(e,t){return ye(function(){return e.apply(null,arguments)},e,t)}function re(e,t,i,n,r,s){try{e(t,i,n,r,s)}catch(e){F(e,Be(i))}}function y(e,t){if(d)throw Le("missingattr",e,t)}function se(h,u,d,e,p){function g(e,t,i){ke(d.$onChanges)&&!Oe(t,i)&&(s||(h.$$postDigest(a),s=[]),r||(r={},s.push(n)),r[e]&&(i=r[e].previousValue),r[e]=new ct(i,t))}function n(){d.$onChanges(r),r=void 0}var r,f=[],m={};return me(e,function(e,i){var t,n,r,s,a,o,l=e.attrName,c=e.optional;switch(e.mode){case"@":c||ln.call(u,l)||(y(l,p.name),d[i]=u[l]=void 0),c=u.$observe(l,function(e){(xe(e)||S(e))&&(g(i,e,d[i]),d[i]=e)}),u.$$observers[l].$$scope=h,xe(t=u[l])?d[i]=$(t)(h):S(t)&&(d[i]=t),m[i]=new ct(Tr,d[i]),f.push(c);break;case"=":if(!ln.call(u,l)){if(c)break;y(l,p.name),u[l]=void 0}c&&!u[l]||(s=L(u[l]),r=s.literal?Se:Oe,n=s.assign||function(){throw t=d[i]=s(h),Le("nonassign",u[l],l,p.name)},t=d[i]=s(h),(c=function(e){return r(e,d[i])||(r(e,t)?n(h,e=d[i]):d[i]=e),t=e}).$stateful=!0,c=e.collection?h.$watchCollection(u[l],c):h.$watch(L(u[l],c),null,s.literal),f.push(c));break;case"<":if(!ln.call(u,l)){if(c)break;y(l,p.name),u[l]=void 0}c&&!u[l]||(a=(s=L(u[l])).literal,o=d[i]=s(h),m[i]=new ct(Tr,d[i]),c=h[e.collection?"$watchCollection":"$watch"](s,function(e,t){if(t===e){if(t===o||a&&Se(t,o))return;t=o}g(i,e,t),d[i]=e}),f.push(c));break;case"&":c||ln.call(u,l)||y(l,p.name),(s=u.hasOwnProperty(l)?L(u[l]):_)===_&&c||(d[i]=function(e){return s(h,e)})}}),{initialChanges:m,removeWatches:f.length&&function(){for(var e=0,t=f.length;e<t;++e)f[e]()}}}var s,c=/^\w/,l=fe.document.createElement("div"),O=f,P=m,e=g,t=(z.prototype={$normalize:Ce,$addClass:function(e){e&&0<e.length&&n.addClass(this.$$element,e)},$removeClass:function(e){e&&0<e.length&&n.removeClass(this.$$element,e)},$updateClass:function(e,t){var i=ht(e,t);i&&i.length&&n.addClass(this.$$element,i),(i=ht(t,e))&&i.length&&n.removeClass(this.$$element,i)},$set:function(e,t,i,n){var r=Ve(this.$$element[0],e),s=Vn[e],a=e;r?(this.$$element.prop(e,t),n=r):s&&(this[s]=t,a=s),this[e]=t,n?this.$attr[e]=n:(n=this.$attr[e])||(this.$attr[e]=n=Fe(e,"-")),"img"===Te(this.$$element)&&"srcset"===e&&(this[e]=t=o(t,"$set('srcset', value)")),!1!==i&&(null===t||be(t)?this.$$element.removeAttr(n):c.test(n)?r&&!1===t?this.$$element.removeAttr(n):this.$$element.attr(n,t):(s=this.$$element[0],i=n,r=t,l.innerHTML="<span "+i+">",n=(i=l.firstChild.attributes)[0],i.removeNamedItem(n.name),n.value=r,s.attributes.setNamedItem(n))),(e=this.$$observers)&&me(e[a],function(e){try{e(t)}catch(e){F(e)}})},$observe:function(e,t){var i=this,n=i.$$observers||(i.$$observers=_e()),r=n[e]||(n[e]=[]);return r.push(t),R.$evalAsync(function(){r.$$inter||!i.hasOwnProperty(e)||be(i[e])||t(i[e])}),function(){De(r,t)}}},$.startSymbol()),i=$.endSymbol(),ae="{{"===t&&"}}"===i?Me:function(e){return e.replace(/\{\{/g,t).replace(/}}/g,i)},B=/^ng(Attr|Prop|On)([A-Z].*)$/,le=/^(.+)Start$/;return U.$$addBindingInfo=h?function(e,t){var i=e.data("$binding")||[];we(t)?i=i.concat(t):i.push(t),e.data("$binding",i)}:_,U.$$addBindingClass=h?function(e){H(e,"ng-binding")}:_,U.$$addScopeInfo=h?function(e,t,i,n){e.data(i?n?"$isolateScopeNoTemplate":"$isolateScope":"$scope",t)}:_,U.$$addScopeClass=h?function(e,t){H(e,t?"ng-isolate-scope":"ng-scope")}:_,U.$$createComment=function(e,t){var i="";return h&&(i=" "+(e||"")+": ",t)&&(i+=t+" "),fe.document.createComment(i)},U}]}function ct(e,t){this.previousValue=e,this.currentValue=t}function Ce(e){return e.replace(Sr,"").replace(_r,function(e,t,i){return i?t.toUpperCase():t})}function ht(e,t){var i="",n=e.split(/\s+/),r=t.split(/\s+/),s=0;e:for(;s<n.length;s++){for(var a=n[s],o=0;o<r.length;o++)if(a===r[o])continue e;i+=(0<i.length?" ":"")+a}return i}function ut(e){var t=(e=Ae(e)).length;if(!(t<=1))for(;t--;){var i=e[t];(8===i.nodeType||i.nodeType===Cn&&""===i.nodeValue.trim())&&un.call(e,t,1)}return e}function dt(){var c={};this.has=function(e){return c.hasOwnProperty(e)},this.register=function(e,t){K(e,"controller"),ve(e)?ye(c,e):c[e]=t},this.$get=["$injector",function(o){function l(e,t,i,n){if(!e||!ve(e.$scope))throw $("$controller")("noscp",n,t);e.$scope[t]=i}return function(t,i,e,n){var r,s,a;if(e=!0===e,n&&xe(n)&&(a=n),xe(t)){if(!(n=t.match(Ar)))throw Cr("ctrlfmt",t);if(s=n[1],a=a||n[3],!(t=c.hasOwnProperty(s)?c[s]:function(e,t,i){if(!t)return e;for(var n,r=e,s=(t=t.split(".")).length,a=0;a<s;a++)n=t[a],e=e&&(r=e)[n];return!i&&ke(e)?Pe(r,e):e}(i.$scope,s,!0)))throw Cr("ctrlreg",s);X(t,s,!0)}return e?(e=(we(t)?t[t.length-1]:t).prototype,r=Object.create(e||null),a&&l(i,a,r,s||t.name),ye(function(){var e=o.invoke(t,r,i,s);return e!==r&&(ve(e)||ke(e))&&(r=e,a)&&l(i,a,r,s||t.name),r},{instance:r,identifier:a})):(r=o.instantiate(t,i,s),a&&l(i,a,r,s||t.name),r)}}]}function pt(){this.$get=["$window",function(e){return Ae(e.document)}]}function gt(){this.$get=["$document","$rootScope",function(e,t){function i(){r=n.hidden}var n=e[0],r=n&&n.hidden;return e.on("visibilitychange",i),t.$on("$destroy",function(){e.off("visibilitychange",i)}),function(){return r}}]}function ft(){this.$get=["$log",function(i){return function(e,t){i.error.apply(i,arguments)}}]}function mt(e){return ve(e)?k(e)?e.toISOString():r(e):e}function yt(){this.$get=function(){return function(e){var i;return e?(i=[],a(e,function(e,t){null===e||be(e)||ke(e)||(we(e)?me(e,function(e){i.push(s(t)+"="+s(mt(e)))}):i.push(s(t)+"="+s(mt(e))))}),i.join("&")):""}}}function bt(){this.$get=function(){return function(e){var t;return e?(t=[],function i(e,n,r){we(e)?me(e,function(e,t){i(e,n+"["+(ve(e)?t:"")+"]")}):ve(e)&&!k(e)?a(e,function(e,t){i(e,n+(r?"":"[")+t+(r?"":"]"))}):(ke(e)&&(e=e()),t.push(s(n)+"="+(null==e?"":s(mt(e)))))}(e,"",!0),t.join("&")):""}}}function vt(t,i){if(xe(t)){var e=t.replace(Mr,"").trim();if(e){var i=i("Content-Type"),n=(n=i=i&&0===i.indexOf(Er))||(n=e.match(Lr))&&Rr[n[0]].test(e);if(n)try{t=P(e)}catch(e){if(i)throw Ir("baddata",t,e)}}}return t}function xt(e){var i,n=_e();return xe(e)?me(e.split("\n"),function(e){i=e.indexOf(":");var t=Ee($e(e.substr(0,i)));e=$e(e.substr(i+1)),t&&(n[t]=n[t]?n[t]+", "+e:e)}):ve(e)&&me(e,function(e,t){t=Ee(t),e=$e(e);t&&(n[t]=n[t]?n[t]+", "+e:e)}),n}function wt(t){var i;return function(e){return i=i||xt(t),e?e=void 0===(e=i[Ee(e)])?null:e:i}}function kt(t,i,n,e){return ke(e)?e(t,i,n):(me(e,function(e){t=e(t,i,n)}),t)}function Tt(){var T=this.defaults={transformResponse:[vt],transformRequest:[function(e){return ve(e)&&"[object File]"!==b.call(e)&&"[object Blob]"!==b.call(e)&&"[object FormData]"!==b.call(e)?r(e):e}],headers:{common:{Accept:"application/json, text/plain, */*"},post:E($r),put:E($r),patch:E($r)},xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",paramSerializer:"$httpParamSerializer",jsonpCallbackParam:"callback"},S=!1,i=(this.useApplyAsync=function(e){return A(e)?(S=!!e,this):S},this.interceptors=[]),n=this.xsrfTrustedOrigins=[];Object.defineProperty(this,"xsrfWhitelistedOrigins",{get:function(){return this.xsrfTrustedOrigins},set:function(e){this.xsrfTrustedOrigins=e}}),this.$get=["$browser","$httpBackend","$$cookieReader","$cacheFactory","$rootScope","$q","$injector","$sce",function(s,f,m,e,y,b,a,v){function x(e){function t(e,t){for(var i=0,n=t.length;i<n;){var r=t[i++],s=t[i++];e=e.then(r,s)}return t.length=0,e}function g(e){var t=ye({},e);return t.data=kt(e.data,e.headers,e.status,i.transformResponse),200<=(e=e.status)&&e<300?t:b.reject(t)}if(!ve(e))throw $("$http")("badreq",e);var i,n,r;if(xe(v.valueOf(e.url)))return(i=ye({method:"get",transformRequest:T.transformRequest,transformResponse:T.transformResponse,paramSerializer:T.paramSerializer,jsonpCallbackParam:T.jsonpCallbackParam},e)).headers=function(e){var t,i,n,r,s,a,o,l=T.headers,c=ye({},e.headers);e:for(t in l=ye({},l.common,l[Ee(e.method)])){for(n in i=Ee(t),c)if(Ee(n)===i)continue e;c[t]=l[t]}return r=c,s=E(e),o={},me(r,function(e,t){ke(e)?null!=(a=e(s))&&(o[t]=a):o[t]=e}),o}(e),i.method=cn(i.method),i.paramSerializer=xe(i.paramSerializer)?a.get(i.paramSerializer):i.paramSerializer,s.$$incOutstandingRequestCount("$http"),n=[],r=[],e=b.resolve(i),me(o,function(e){(e.request||e.requestError)&&n.unshift(e.request,e.requestError),(e.response||e.responseError)&&r.push(e.response,e.responseError)}),e=t(e,n),(e=t(e=e.then(function(e){var s,a,t,o,i,n,l,r=e.headers,c=kt(e.data,wt(r),void 0,e.transformRequest);return be(c)&&me(r,function(e,t){"content-type"===Ee(t)&&delete r[t]}),be(e.withCredentials)&&!be(T.withCredentials)&&(e.withCredentials=T.withCredentials),s=e,e=c,o=b.defer(),c=o.promise,i=s.headers,n="jsonp"===Ee(s.method),l=s.url,n?l=v.getTrustedResourceUrl(l):xe(l)||(l=v.valueOf(l)),l=function(e,t){return 0<t.length&&(e+=(-1===e.indexOf("?")?"?":"&")+t),e}(l,s.paramSerializer(s.params)),n&&(l=function(i,n){var e=i.split("?");if(2<e.length)throw Ir("badjsonp",i);return me(e=H(e[1]),function(e,t){if("JSON_CALLBACK"===e)throw Ir("badjsonp",i);if(t===n)throw Ir("badjsonp",n,i)}),i+=(-1===i.indexOf("?")?"?":"&")+n+"=JSON_CALLBACK"}(l,s.jsonpCallbackParam)),x.pendingRequests.push(s),c.then(p,p),(a=!s.cache&&!T.cache||!1===s.cache||"GET"!==s.method&&"JSONP"!==s.method?a:ve(s.cache)?s.cache:ve(T.cache)?T.cache:w)&&(A(t=a.get(l))?t&&ke(t.then)?t.then(d,d):we(t)?u(t[1],t[0],E(t[2]),t[3],t[4]):u(t,200,{},"OK","complete"):a.put(l,c)),be(t)&&((t=k(s.url)?m()[s.xsrfCookieName||T.xsrfCookieName]:void 0)&&(i[s.xsrfHeaderName||T.xsrfHeaderName]=t),f(s.method,l,e,function(e,t,i,n,r){function s(){u(t,e,i,n,r)}a&&(200<=e&&e<300?a.put(l,[e,t,xt(i),n,r]):a.remove(l)),S?y.$applyAsync(s):(s(),y.$$phase||y.$apply())},i,s.timeout,s.withCredentials,s.responseType,h(s.eventHandlers),h(s.uploadEventHandlers))),c.then(g,g);function h(e){var t;if(e)return t={},me(e,function(i,e){t[e]=function(e){function t(){i(e)}S?y.$applyAsync(t):y.$$phase?t():y.$apply(t)}}),t}function u(e,t,i,n,r){(200<=(t=-1<=t?t:0)&&t<300?o.resolve:o.reject)({data:e,status:t,headers:wt(i),config:s,statusText:n,xhrStatus:r})}function d(e){u(e.data,e.status,E(e.headers()),e.statusText,e.xhrStatus)}function p(){var e=x.pendingRequests.indexOf(s);-1!==e&&x.pendingRequests.splice(e,1)}}),r)).finally(function(){s.$$completeOutstandingRequest(_,"$http")});throw $("$http")("badreq",e.url)}var t,w=e("$http"),o=(T.paramSerializer=xe(T.paramSerializer)?a.get(T.paramSerializer):T.paramSerializer,[]),k=(me(i,function(e){o.unshift(xe(e)?a.get(e):a.invoke(e))}),t=[Zr].concat(n.map(L)),function(e){return e=L(e),t.some(pi.bind(null,e))});return x.pendingRequests=[],function(){me(arguments,function(i){x[i]=function(e,t){return x(ye({},t||{},{method:i,url:e}))}})}("get","delete","head","jsonp"),function(){me(arguments,function(n){x[n]=function(e,t,i){return x(ye({},i||{},{method:n,url:e,data:t}))}})}("post","put","patch"),x.defaults=T,x}]}function St(){this.$get=function(){return function(){return new fe.XMLHttpRequest}}}function _t(){this.$get=["$browser","$jsonpCallbacks","$document","$xhrFactory",function(e,t,i,n){return T=n,S=(k=e).defer,_=t,C=i[0],function(e,n,t,r,i,s,a,o,l,c){function h(e){f="timeout"===e,p&&p(),g&&g.abort()}function u(e,t,i,n,r,s){A(w)&&S.cancel(w),p=g=null,e(t,i,n,r,s)}if(n=n||k.url(),"jsonp"===Ee(e))var d=_.createCallback(n),p=(y=d,b=function(e,t){var i=200===e&&_.getResponse(d);u(r,e,i,"",t,"complete"),_.removeCallback(d)},m=(m=n).replace("JSON_CALLBACK",y),(x=C.createElement("script")).type="text/javascript",x.src=m,x.async=!0,x.addEventListener("load",v=function(e){x.removeEventListener("load",v),x.removeEventListener("error",v),C.body.removeChild(x),x=null;var t=-1,i="unknown";e&&(i=(e="load"!==e.type||_.wasCalled(y)?e:{type:"error"}).type,t="error"===e.type?404:200),b&&b(t,i)}),x.addEventListener("error",v),C.body.appendChild(x),v);else{var g=T(e,n),f=!1;if(g.open(e,n,!0),me(i,function(e,t){A(e)&&g.setRequestHeader(t,e)}),g.onload=function(){var e=g.statusText||"",t="response"in g?g.response:g.responseText,i=1223===g.status?204:g.status;0===i&&(i=t?200:"file"===L(n).protocol?404:0),u(r,i,t,g.getAllResponseHeaders(),e,"complete")},g.onerror=function(){u(r,-1,null,null,"","error")},g.ontimeout=function(){u(r,-1,null,null,"","timeout")},g.onabort=function(){u(r,-1,null,null,"",f?"timeout":"abort")},me(l,function(e,t){g.addEventListener(t,e)}),me(c,function(e,t){g.upload.addEventListener(t,e)}),a&&(g.withCredentials=!0),o)try{g.responseType=o}catch(e){if("json"!==o)throw e}g.send(be(t)?null:t)}var m,y,b,v,x,w;0<s?w=S(function(){h("timeout")},s):s&&ke(s.then)&&s.then(function(){h(A(s.$$timeoutId)?"timeout":"abort")})};var k,T,S,_,C}]}function Ct(){var T="{{",S="}}";this.startSymbol=function(e){return e?(T=e,this):T},this.endSymbol=function(e){return e?(S=e,this):S},this.$get=["$parse","$exceptionHandler","$sce",function(m,y,b){function e(e){return"\\\\\\"+e}function v(e){return e.replace(i,T).replace(n,S)}function x(e,t,i,n){var r=e.$watch(function(e){return r(),n(e)},t,i);return r}function t(r,e,n,s){var a=n===b.URL||n===b.MEDIA_URL;if(!r.length||-1===r.indexOf(T))return e?void 0:(e=v(r),(e=C(e=a?b.getTrusted(n,e):e)).exp=r,e.expressions=[],e.$$watchDelegate=x,e);s=!!s;for(var t,i,o=0,l=[],c=r.length,h=[],u=[];o<c;){if(-1===(t=r.indexOf(T,o))||-1===(i=r.indexOf(S,t+w))){o!==c&&h.push(v(r.substring(o)));break}o!==t&&h.push(v(r.substring(o,t))),o=r.substring(t+w,i),l.push(o),o=i+k,u.push(h.length),h.push("")}var d,p=1===h.length&&1===u.length,g=a&&p?void 0:function(e){try{return e=n&&!a?b.getTrusted(n,e):b.valueOf(e),s&&!A(e)?e:Q(e)}catch(e){y(Nr.interr(r,e))}},f=l.map(function(e){return m(e,g)});return!e||l.length?(d=function(e){for(var t=0,i=l.length;t<i;t++){if(s&&be(e[t]))return;h[u[t]]=e[t]}return a?b.getTrusted(n,p?h[0]:h.join("")):(n&&1<h.length&&Nr.throwNoconcat(r),h.join(""))},ye(function(e){var t=0,i=l.length,n=Array(i);try{for(;t<i;t++)n[t]=f[t](e);return d(n)}catch(e){y(Nr.interr(r,e))}},{exp:r,expressions:l,$$watchDelegate:function(n,r){var s;return n.$watchGroup(f,function(e,t){var i=d(e);r.call(this,i,e!==t?s:i,n),s=i})}})):void 0}var w=T.length,k=S.length,i=new RegExp(T.replace(/./g,e),"g"),n=new RegExp(S.replace(/./g,e),"g");return t.startSymbol=function(){return T},t.endSymbol=function(){return S},t}]}function At(){this.$get=["$$intervalFactory","$window",function(e,n){function r(e){n.clearInterval(e),delete s[e]}var s={},e=e(function(e,t,i){return e=n.setInterval(e,t),s[e]=i,e},r);return e.cancel=function(e){if(!e)return!1;if(!e.hasOwnProperty("$$intervalId"))throw Dr("badprom");if(!s.hasOwnProperty(e.$$intervalId))return!1;e=e.$$intervalId;var t=s[e],i=t.promise;return i.$$state&&(i.$$state.pur=!0),t.reject("canceled"),r(e),!0},e}]}function Et(){this.$get=["$browser","$q","$$q","$rootScope",function(p,g,f,m){return function(u,d){return function(e,t,i,n){function r(){s?e.apply(null,a):e(o)}var s=4<arguments.length,a=s?hn.call(arguments,4):[],o=0,l=A(n)&&!n,c=(l?f:g).defer(),h=c.promise;return i=A(i)?i:0,h.$$intervalId=u(function(){l?p.defer(r):m.$evalAsync(r),c.notify(o++),0<i&&i<=o&&(c.resolve(o),d(h.$$intervalId)),l||m.$apply()},t,c,l),h}}}]}function $t(e,t){e=L(e);t.$$protocol=e.protocol,t.$$host=e.hostname,t.$$port=m(e.port)||Pr[e.protocol]||null}function Lt(e,t,i){if(Fr.test(e))throw Br("badpath",e);var n="/"!==e.charAt(0);e=L(e=n?"/"+e:e);for(var r=(n=(n&&"/"===e.pathname.charAt(0)?e.pathname.substring(1):e.pathname).split("/")).length;r--;)n[r]=decodeURIComponent(n[r]),i&&(n[r]=n[r].replace(/\//g,"%2F"));i=n.join("/"),t.$$path=i,t.$$search=H(e.search),t.$$hash=decodeURIComponent(e.hash),t.$$path&&"/"!==t.$$path.charAt(0)&&(t.$$path="/"+t.$$path)}function Rt(e,t){return e.slice(0,t.length)===t}function Mt(e,t){if(Rt(t,e))return t.substr(e.length)}function It(e){var t=e.indexOf("#");return-1===t?e:e.substr(0,t)}function Nt(n,r,s){this.$$html5=!0,s=s||"",$t(n,this),this.$$parse=function(e){var t=Mt(r,e);if(!xe(t))throw Br("ipthprfx",e,r);Lt(t,this,!0),this.$$path||(this.$$path="/"),this.$$compose()},this.$$normalizeUrl=function(e){return r+e.substr(1)},this.$$parseLinkUrl=function(e,t){var i;return t&&"#"===t[0]?(this.hash(t.slice(1)),!0):(A(t=Mt(n,e))?(i=t,i=s&&A(t=Mt(s,t))?r+(Mt("/",t)||t):n+i):A(t=Mt(r,e))?i=r+t:r===e+"/"&&(i=r),i&&this.$$parse(i),!!i)}}function Dt(r,s,a){$t(r,this),this.$$parse=function(e){be(i=Mt(r,e)||Mt(s,e))||"#"!==i.charAt(0)?this.$$html5?t=i:(t="",be(i)&&(r=e,this.replace())):be(t=Mt(a,i))&&(t=i),Lt(t,this,!1),e=this.$$path;var t,i=r,n=/^\/[A-Z]:(\/.*)/;Rt(t,i)&&(t=t.replace(i,"")),n.exec(t)||(e=(t=n.exec(e))?t[1]:e),this.$$path=e,this.$$compose()},this.$$normalizeUrl=function(e){return r+(e?a+e:"")},this.$$parseLinkUrl=function(e,t){return It(r)===It(e)&&(this.$$parse(e),!0)}}function Ot(n,r,s){this.$$html5=!0,Dt.apply(this,arguments),this.$$parseLinkUrl=function(e,t){var i;return t&&"#"===t[0]?(this.hash(t.slice(1)),!0):(n===It(e)?i=e:(t=Mt(r,e))?i=n+s+t:r===e+"/"&&(i=r),i&&this.$$parse(i),!!i)},this.$$normalizeUrl=function(e){return n+s+e}}function Pt(e){return function(){return this[e]}}function Bt(t,i){return function(e){return be(e)?this[t]:(this[t]=i(e),this.$$compose(),this)}}function Ft(){var g="!",f={enabled:!1,requireBase:!0,rewriteLinks:!0};this.hashPrefix=function(e){return A(e)?(g=e,this):g},this.html5Mode=function(e){return S(e)?(f.enabled=e,this):ve(e)?(S(e.enabled)&&(f.enabled=e.enabled),S(e.requireBase)&&(f.requireBase=e.requireBase),(S(e.rewriteLinks)||xe(e.rewriteLinks))&&(f.rewriteLinks=e.rewriteLinks),this):f},this.$get=["$rootScope","$browser","$sniffer","$rootElement","$window",function(a,o,l,r,e){function c(e,t,i){var n=u.url(),r=u.$$state;try{o.url(e,t,i),u.$$state=o.state()}catch(e){throw u.url(n),u.$$state=r,e}}function h(e,t){a.$broadcast("$locationChangeSuccess",u.absUrl(),e,u.$$state,t)}var t,i=o.baseHref(),n=o.url();if(f.enabled){if(!i&&f.requireBase)throw Br("nobase");t=n.substring(0,n.indexOf("/",n.indexOf("//")+2))+(i||"/"),i=l.history?Nt:Ot}else t=It(n),i=Dt;var u,s=t.substr(0,It(t).lastIndexOf("/")+1),d=((u=new i(t,s,"#"+g)).$$parseLinkUrl(n,n),u.$$state=o.state(),/^\s*(javascript|mailto):/i),p=(r.on("click",function(e){if((t=f.rewriteLinks)&&!e.ctrlKey&&!e.metaKey&&!e.shiftKey&&2!==e.which&&2!==e.button){for(var t,i,n=Ae(e.target);"a"!==Te(n[0]);)if(n[0]===r[0]||!(n=n.parent())[0])return;xe(t)&&be(n.attr(t))||(t=n.prop("href"),i=n.attr("href")||n.attr("xlink:href"),ve(t)&&"[object SVGAnimatedString]"===t.toString()&&(t=L(t.animVal).href),d.test(t))||!t||n.attr("target")||e.isDefaultPrevented()||!u.$$parseLinkUrl(t,i)||(e.preventDefault(),u.absUrl()!==o.url()&&a.$apply())}}),u.absUrl()!==n&&o.url(u.absUrl(),!0),!0);return o.onUrlChange(function(n,r){Rt(n,s)?(a.$evalAsync(function(){var e,t=u.absUrl(),i=u.$$state;u.$$parse(n),u.$$state=r,e=a.$broadcast("$locationChangeStart",n,t,r,i).defaultPrevented,u.absUrl()===n&&(e?(u.$$parse(t),u.$$state=i,c(t,!1,i)):(p=!1,h(t,i)))}),a.$$phase||a.$digest()):e.location.href=n}),a.$watch(function(){var i,n,r,s,e,t;(p||u.$$urlUpdatedByLocation)&&(u.$$urlUpdatedByLocation=!1,i=o.url(),t=u.absUrl(),n=o.state(),r=u.$$replace,s=!((e=i)===(t=t)||L(e).href===L(t).href)||u.$$html5&&l.history&&n!==u.$$state,p||s)&&(p=!1,a.$evalAsync(function(){var e=u.absUrl(),t=a.$broadcast("$locationChangeStart",e,i,u.$$state,n).defaultPrevented;u.absUrl()===e&&(t?(u.$$parse(i),u.$$state=n):(s&&c(e,r,n===u.$$state?null:u.$$state),h(i,n)))})),u.$$replace=!1}),u}]}function jt(){var n=!0,s=this;this.debugEnabled=function(e){return A(e)?(n=e,this):n},this.$get=["$window",function(t){function e(e){var i=t.console||{},n=i[e]||i.log||_;return function(){var t=[];return me(arguments,function(e){t.push((Ie(e=e)&&(e.stack&&r?e=e.message&&-1===e.stack.indexOf(e.message)?"Error: "+e.message+"\n"+e.stack:e.stack:e.sourceURL&&(e=e.message+"\n"+e.sourceURL+":"+e.line)),e))}),Function.prototype.apply.call(n,i,t)}}var i,r=mn||/\bEdge\//.test(t.navigator&&t.navigator.userAgent);return{log:e("log"),info:e("info"),warn:e("warn"),error:e("error"),debug:(i=e("debug"),function(){n&&i.apply(s,arguments)})}}]}function zt(e){return e+""}function Ht(e,t){return void 0!==e?e:t}function Ut(e,t){return void 0===e?t:void 0===t?e:e+t}function o(e,t,i){var n,r,s=e.isPure=function(e,t){switch(e.type){case d.MemberExpression:if(e.computed)return!1;break;case d.UnaryExpression:return 1;case d.BinaryExpression:return"+"!==e.operator&&1;case d.CallExpression:return!1}return void 0===t?Vr:t}(e,i);switch(e.type){case d.Program:n=!0,me(e.body,function(e){o(e.expression,t,s),n=n&&e.expression.constant}),e.constant=n;break;case d.Literal:e.constant=!0,e.toWatch=[];break;case d.UnaryExpression:o(e.argument,t,s),e.constant=e.argument.constant,e.toWatch=e.argument.toWatch;break;case d.BinaryExpression:o(e.left,t,s),o(e.right,t,s),e.constant=e.left.constant&&e.right.constant,e.toWatch=e.left.toWatch.concat(e.right.toWatch);break;case d.LogicalExpression:o(e.left,t,s),o(e.right,t,s),e.constant=e.left.constant&&e.right.constant,e.toWatch=e.constant?[]:[e];break;case d.ConditionalExpression:o(e.test,t,s),o(e.alternate,t,s),o(e.consequent,t,s),e.constant=e.test.constant&&e.alternate.constant&&e.consequent.constant,e.toWatch=e.constant?[]:[e];break;case d.Identifier:e.constant=!1,e.toWatch=[e];break;case d.MemberExpression:o(e.object,t,s),e.computed&&o(e.property,t,s),e.constant=e.object.constant&&(!e.computed||e.property.constant),e.toWatch=e.constant?[]:[e];break;case d.CallExpression:n=i=!!e.filter&&!t(e.callee.name).$stateful,r=[],me(e.arguments,function(e){o(e,t,s),n=n&&e.constant,r.push.apply(r,e.toWatch)}),e.constant=n,e.toWatch=i?r:[e];break;case d.AssignmentExpression:o(e.left,t,s),o(e.right,t,s),e.constant=e.left.constant&&e.right.constant,e.toWatch=[e];break;case d.ArrayExpression:n=!0,r=[],me(e.elements,function(e){o(e,t,s),n=n&&e.constant,r.push.apply(r,e.toWatch)}),e.constant=n,e.toWatch=r;break;case d.ObjectExpression:n=!0,r=[],me(e.properties,function(e){o(e.value,t,s),n=n&&e.value.constant,r.push.apply(r,e.value.toWatch),e.computed&&(o(e.key,t,!1),n=n&&e.key.constant,r.push.apply(r,e.key.toWatch))}),e.constant=n,e.toWatch=r;break;case d.ThisExpression:case d.LocalsExpression:e.constant=!1,e.toWatch=[]}}function qt(e){var t;return 1===e.length&&(1!==(t=(e=e[0].expression).toWatch).length||t[0]!==e)?t:void 0}function Wt(e){return e.type===d.Identifier||e.type===d.MemberExpression}function Vt(e){if(1===e.body.length&&Wt(e.body[0].expression))return{type:d.AssignmentExpression,left:e.body[0].expression,right:{type:d.NGValueParameter},operator:"="}}function Gt(e){this.$filter=e}function Yt(e){this.$filter=e}function Xt(e,t,i){this.ast=new d(e,i),this.astCompiler=new(i.csp?Yt:Gt)(t)}function Kt(e){return ke(e.valueOf)?e.valueOf():Hr.call(e)}function Zt(){var o,l,c=_e(),h={true:!0,false:!1,null:null,undefined:void 0};this.addLiteral=function(e,t){h[e]=t},this.setIdentifierFns=function(e,t){return o=e,l=t,this},this.$get=["$filter",function(r){function e(e,t){var i,n;switch(typeof e){case"string":return n=e=e.trim(),(i=c[n])||(i=new Xt(i=new Wr(a),r,a).parse(e),c[n]=g(i)),s(i,t);case"function":return s(e,t);default:return s(_,t)}}function d(e,t,i){return null==e||null==t?e===t:!("object"==typeof e&&"object"==typeof(e=Kt(e))&&!i)&&(e===t||e!=e&&t!=t)}function t(e,t,i,s,n){var a,r,o=s.inputs;if(1===o.length)return r=d,o=o[0],e.$watch(function(e){var t=o(e);return d(t,r,o.isPure)||(a=s(e,void 0,void 0,[t]),r=t&&Kt(t)),a},t,i,n);for(var l=[],c=[],h=0,u=o.length;h<u;h++)l[h]=d,c[h]=null;return e.$watch(function(e){for(var t=!1,i=0,n=o.length;i<n;i++){var r=o[i](e);(t=t||!d(r,l[i],o[i].isPure))&&(l[i]=(c[i]=r)&&Kt(r))}return a=t?s(e,void 0,void 0,c):a},t,i,n)}function i(e,t,i,n,r){function s(){c(l)&&o()}function a(e,t,i,n){return l=d&&n?n[0]:h(e,t,i,n),c(l)&&e.$$postDigest(s),u(l)}var o,l,c=n.literal?p:A,h=n.$$intercepted||n,u=n.$$interceptor||Me,d=n.inputs&&!h.inputs;return a.literal=n.literal,a.constant=n.constant,a.inputs=n.inputs,g(a),o=e.$watch(a,t,i,r)}function p(e){var t=!0;return me(e,function(e){A(e)||(t=!1)}),t}function n(e,t,i,n){var r=e.$watch(function(e){return r(),n(e)},t,i);return r}function g(e){return e.constant?e.$$watchDelegate=n:e.oneTime?e.$$watchDelegate=i:e.inputs&&(e.$$watchDelegate=t),e}function s(r,s){var t,i,a,e;return s?(r.$$interceptor&&(t=r.$$interceptor,i=s,n.$stateful=t.$stateful||i.$stateful,n.$$pure=t.$$pure&&i.$$pure,s=n,r=r.$$intercepted),a=!1,(e=function(e,t,i,n){return e=a&&n?n[0]:r(e,t,i,n),s(e)}).$$intercepted=r,e.$$interceptor=s,e.literal=r.literal,e.oneTime=r.oneTime,e.constant=r.constant,s.$stateful||(a=!r.inputs,e.inputs=r.inputs||[r],s.$$pure)||(e.inputs=e.inputs.map(function(t){return t.isPure===Vr?function(e){return t(e)}:t})),g(e)):r;function n(e){return i(t(e))}}var a={csp:vn().noUnsafeEval,literals:N(h),isIdentifierStart:ke(o)&&o,isIdentifierContinue:ke(l)&&l};return e.$$getAst=function(e){return new Xt(new Wr(a),r,a).getAst(e).ast},e}]}function Qt(){var i=!0;this.$get=["$rootScope","$exceptionHandler",function(t,e){return ei(function(e){t.$evalAsync(e)},e,i)}],this.errorOnUnhandledRejections=function(e){return A(e)?(i=e,this):i}}function Jt(){var i=!0;this.$get=["$browser","$exceptionHandler",function(t,e){return ei(function(e){t.defer(e)},e,i)}],this.errorOnUnhandledRejections=function(e){return A(e)?(i=e,this):i}}function ei(a,o,l){function i(){return new e}function e(){var t=this.promise=new s;this.resolve=function(e){u(t,e)},this.reject=function(e){d(t,e)},this.notify=function(e){g(t,e)}}function s(){this.$$state={status:0}}function c(){for(;!y&&b.length;){var e,t=b.shift();t.pur||(t.pur=!0,e="Possibly unhandled rejection: "+("function"==typeof(e=t.value)?e.toString().replace(/ \{[\s\S]*$/,""):be(e)?"undefined":"string"!=typeof e?function(e,t){var i=[];return w(t)&&(e=x.copy(e,null,t)),JSON.stringify(e,function(e,t){if(ve(t=O(e,t))){if(0<=i.indexOf(t))return"...";i.push(t)}return t})}(e,void 0):e),Ie(t.value)?o(t.value,e):o(e))}}function h(s){!l||s.pending||2!==s.status||s.pur||(0===y&&0===b.length&&a(c),b.push(s)),!s.processScheduled&&s.pending&&(s.processScheduled=!0,++y,a(function(){var e,t,i=s.pending;s.processScheduled=!1,s.pending=void 0;try{for(var n=0,r=i.length;n<r;++n){s.pur=!0,t=i[n][0],e=i[n][s.status];try{ke(e)?u(t,e(s.value)):(1===s.status?u:d)(t,s.value)}catch(e){d(t,e),e&&!0===e.$$passToExceptionHandler&&o(e)}}}finally{--y,l&&0===y&&a(c)}}))}function u(e,t){e.$$state.status||(t===e?p(e,m("qcycle",t)):function t(i,e){function n(e){o||(o=!0,t(i,e))}function r(e){o||(o=!0,p(i,e))}function s(e){g(i,e)}var a,o=!1;try{(ve(e)||ke(e))&&(a=e.then),ke(a)?(i.$$state.status=-1,a.call(e,n,r,s)):(i.$$state.value=e,i.$$state.status=1,h(i.$$state))}catch(e){r(e)}}(e,t))}function d(e,t){e.$$state.status||p(e,t)}function p(e,t){e.$$state.value=t,e.$$state.status=2,h(e.$$state)}function g(e,r){var s=e.$$state.pending;e.$$state.status<=0&&s&&s.length&&a(function(){for(var e,t,i=0,n=s.length;i<n;i++){t=s[i][0],e=s[i][3];try{g(t,ke(e)?e(r):r)}catch(e){o(e)}}})}function r(e){var t=new s;return d(t,e),t}function n(e,t,i){var n=null;try{ke(i)&&(n=i())}catch(e){return r(e)}return n&&ke(n.then)?n.then(function(){return t(e)},r):t(e)}function f(e,t,i,n){var r=new s;return u(r,e),r.then(t,i,n)}function t(e){var t;if(ke(e))return t=new s,e(function(e){u(t,e)},function(e){d(t,e)}),t;throw m("norslvr",e)}var m=$("$q",TypeError),y=0,b=[],v=(ye(s.prototype,{then:function(e,t,i){var n;return be(e)&&be(t)&&be(i)?this:(n=new s,this.$$state.pending=this.$$state.pending||[],this.$$state.pending.push([n,e,t,i]),0<this.$$state.status&&h(this.$$state),n)},catch:function(e){return this.then(null,e)},finally:function(t,e){return this.then(function(e){return n(e,v,t)},function(e){return n(e,r,t)},e)}}),f);return t.prototype=s.prototype,t.defer=i,t.reject=r,t.when=f,t.resolve=v,t.all=function(e){var i=new s,n=0,r=we(e)?[]:{};return me(e,function(e,t){n++,f(e).then(function(e){r[t]=e,--n||u(i,r)},function(e){d(i,e)})}),0===n&&u(i,r),i},t.race=function(e){var t=i();return me(e,function(e){f(e).then(t.resolve,t.reject)}),t.promise},t}function ti(){this.$get=["$window","$timeout",function(e,i){var n=e.requestAnimationFrame||e.webkitRequestAnimationFrame,r=e.cancelAnimationFrame||e.webkitCancelAnimationFrame||e.webkitCancelRequestAnimationFrame,e=!!n,t=e?function(e){var t=n(e);return function(){r(t)}}:function(e){var t=i(e,16.66,!1);return function(){i.cancel(t)}};return t.supported=e,t}]}function ii(){var w=10,k=$("$rootScope"),T=null,S=null;this.digestTtl=function(e){return w=arguments.length?e:w},this.$get=["$exceptionHandler","$parse","$browser",function(u,p,d){function r(e){e.currentScope.$$destroyed=!0}function s(){this.$id=++fn,this.$$phase=this.$parent=this.$$watchers=this.$$nextSibling=this.$$prevSibling=this.$$childHead=this.$$childTail=null,(this.$root=this).$$suspended=this.$$destroyed=!1,this.$$listeners={},this.$$listenerCount={},this.$$watchersCount=0,this.$$isolateBindings=null}function g(e){if(y.$$phase)throw k("inprog",y.$$phase);y.$$phase=e}function l(e,t){for(;e.$$watchersCount+=t,e=e.$parent;);}function a(e,t,i){for(;e.$$listenerCount[i]-=t,0===e.$$listenerCount[i]&&delete e.$$listenerCount[i],e=e.$parent;);}function f(){}function m(){for(;i.length;)try{i.shift()()}catch(e){u(e)}S=null}s.prototype={constructor:s,$new:function(e,t){var i;function n(){this.$$watchers=this.$$nextSibling=this.$$childHead=this.$$childTail=null,this.$$listeners={},this.$$listenerCount={},this.$$watchersCount=0,this.$id=++fn,this.$$ChildScope=null,this.$$suspended=!1}return t=t||this,e?(i=new s).$root=this.$root:(this.$$ChildScope||(this.$$ChildScope=(n.prototype=this,n)),i=new this.$$ChildScope),i.$parent=t,i.$$prevSibling=t.$$childTail,t.$$childHead?(t.$$childTail.$$nextSibling=i,t.$$childTail=i):t.$$childHead=t.$$childTail=i,!e&&t===this||i.$on("$destroy",r),i},$watch:function(e,t,i,n){var r,s,a,o=p(e);return t=ke(t)?t:_,o.$$watchDelegate?o.$$watchDelegate(this,t,i,o,e):(s=(r=this).$$watchers,a={fn:t,last:f,get:o,exp:n||e,eq:!!i},T=null,s||((s=r.$$watchers=[]).$$digestWatchIndex=-1),s.unshift(a),s.$$digestWatchIndex++,l(this,1),function(){var e=De(s,a);0<=e&&(l(r,-1),e<s.$$digestWatchIndex)&&s.$$digestWatchIndex--,T=null})},$watchGroup:function(t,n){function i(){l=!1;try{c?(c=!1,n(s,s,o)):n(s,r,o)}finally{for(var e=0;e<t.length;e++)r[e]=s[e]}}var e,r=Array(t.length),s=Array(t.length),a=[],o=this,l=!1,c=!0;return t.length?1===t.length?this.$watch(t[0],function(e,t,i){s[0]=e,r[0]=t,n(s,e===t?s:r,i)}):(me(t,function(e,t){e=o.$watch(e,function(e){s[t]=e,l||(l=!0,o.$evalAsync(i))});a.push(e)}),function(){for(;a.length;)a.shift()()}):(e=!0,o.$evalAsync(function(){e&&n(s,s,o)}),function(){e=!1})},$watchCollection:function(e,t){function i(e){var t,i,n,r;if(!be(s=e)){if(ve(s))if(M(s))for(a!==c&&(d=(a=c).length=0,l++),e=s.length,d!==e&&(l++,a.length=d=e),t=0;t<e;t++)r=a[t],n=s[t],(i=r!=r&&n!=n)||r===n||(l++,a[t]=n);else{for(t in a!==h&&(a=h={},d=0,l++),e=0,s)ln.call(s,t)&&(e++,n=s[t],r=a[t],t in a?(i=r!=r&&n!=n,i||r===n||(l++,a[t]=n)):(d++,a[t]=n,l++));if(e<d)for(t in l++,a)ln.call(s,t)||(d--,delete a[t])}else a!==s&&(a=s,l++);return l}}i.$$pure=p(e).literal,i.$stateful=!i.$$pure;var s,a,n,r=this,o=1<t.length,l=0,e=p(e,i),c=[],h={},u=!0,d=0;return this.$watch(e,function(){if(u?(u=!1,t(s,s,r)):t(s,n,r),o)if(ve(s))if(M(s)){n=Array(s.length);for(var e=0;e<s.length;e++)n[e]=s[e]}else for(e in n={},s)ln.call(s,e)&&(n[e]=s[e]);else n=s})},$digest:function(){var e,t,i,n,r,s,a,o,l=w,c=b.length?y:this,h=[];g("$digest"),d.$$checkUrlChange(),this===y&&null!==S&&(d.defer.cancel(S),m()),T=null;do{for(r=!1,s=c,n=0;n<b.length;n++){try{(0,(o=b[n]).fn)(o.scope,o.locals)}catch(e){u(e)}T=null}b.length=0;e:do{if(n=!s.$$suspended&&s.$$watchers)for(n.$$digestWatchIndex=n.length;n.$$digestWatchIndex--;)try{if(e=n[n.$$digestWatchIndex])if((t=(0,e.get)(s))===(i=e.last)||(e.eq?Se(t,i):R(t)&&R(i))){if(e===T){r=!1;break e}}else r=!0,(T=e).last=e.eq?N(t,null):t,(0,e.fn)(t,i===f?t:i,s),l<5&&(h[a=4-l]||(h[a]=[]),h[a].push({msg:ke(e.exp)?"fn: "+(e.exp.name||e.exp.toString()):e.exp,newVal:t,oldVal:i}))}catch(e){u(e)}if(!(n=!s.$$suspended&&s.$$watchersCount&&s.$$childHead||s!==c&&s.$$nextSibling))for(;s!==c&&!(n=s.$$nextSibling);)s=s.$parent}while(s=n);if((r||b.length)&&!l--)throw y.$$phase=null,k("infdig",w,h)}while(r||b.length);for(y.$$phase=null;x<v.length;)try{v[x++]()}catch(e){u(e)}v.length=x=0,d.$$checkUrlChange()},$suspend:function(){this.$$suspended=!0},$isSuspended:function(){return this.$$suspended},$resume:function(){this.$$suspended=!1},$destroy:function(){if(!this.$$destroyed){var e,t=this.$parent;for(e in this.$broadcast("$destroy"),this.$$destroyed=!0,this===y&&d.$$applicationDestroyed(),l(this,-this.$$watchersCount),this.$$listenerCount)a(this,this.$$listenerCount[e],e);t&&t.$$childHead===this&&(t.$$childHead=this.$$nextSibling),t&&t.$$childTail===this&&(t.$$childTail=this.$$prevSibling),this.$$prevSibling&&(this.$$prevSibling.$$nextSibling=this.$$nextSibling),this.$$nextSibling&&(this.$$nextSibling.$$prevSibling=this.$$prevSibling),this.$destroy=this.$digest=this.$apply=this.$evalAsync=this.$applyAsync=_,this.$on=this.$watch=this.$watchGroup=function(){return _},this.$$listeners={},this.$$nextSibling=null,!function e(t){9===mn&&(t.$$childHead&&e(t.$$childHead),t.$$nextSibling)&&e(t.$$nextSibling),t.$parent=t.$$nextSibling=t.$$prevSibling=t.$$childHead=t.$$childTail=t.$root=t.$$watchers=null}(this)}},$eval:function(e,t){return p(e)(this,t)},$evalAsync:function(e,t){y.$$phase||b.length||d.defer(function(){b.length&&y.$digest()},null,"$evalAsync"),b.push({scope:this,fn:p(e),locals:t})},$$postDigest:function(e){v.push(e)},$apply:function(e){try{g("$apply");try{return this.$eval(e)}finally{y.$$phase=null}}catch(e){u(e)}finally{try{y.$digest()}catch(e){throw u(e),e}}},$applyAsync:function(e){var t=this;e&&i.push(function(){t.$eval(e)}),e=p(e),null===S&&(S=d.defer(function(){y.$apply(m)},null,"$applyAsync"))},$on:function(t,i){for(var n=this.$$listeners[t],e=(n||(this.$$listeners[t]=n=[]),n.push(i),this);e.$$listenerCount[t]||(e.$$listenerCount[t]=0),e.$$listenerCount[t]++,e=e.$parent;);var r=this;return function(){var e=n.indexOf(i);-1!==e&&(delete n[e],a(r,1,t))}},$emit:function(e,t){var i,n,r,s=[],a=this,o=!1,l={name:e,targetScope:a,stopPropagation:function(){o=!0},preventDefault:function(){l.defaultPrevented=!0},defaultPrevented:!1},c=D([l],arguments,1);do{for(i=a.$$listeners[e]||s,l.currentScope=a,n=0,r=i.length;n<r;n++)if(i[n])try{i[n].apply(null,c)}catch(e){u(e)}else i.splice(n,1),n--,r--}while(!o&&(a=a.$parent));return l.currentScope=null,l},$broadcast:function(e,t){var i=this,n=this,r={name:e,targetScope:this,preventDefault:function(){r.defaultPrevented=!0},defaultPrevented:!1};if(this.$$listenerCount[e]){for(var s,a,o=D([r],arguments,1);i=n;){for(s=0,a=(n=(r.currentScope=i).$$listeners[e]||[]).length;s<a;s++)if(n[s])try{n[s].apply(null,o)}catch(e){u(e)}else n.splice(s,1),s--,a--;if(!(n=i.$$listenerCount[e]&&i.$$childHead||i!==this&&i.$$nextSibling))for(;i!==this&&!(n=i.$$nextSibling);)i=i.$parent}r.currentScope=null}return r}};var y=new s,b=y.$$asyncQueue=[],v=y.$$postDigestQueue=[],i=y.$$applyAsyncQueue=[],x=0;return y}]}function ni(){var n=/^\s*(https?|s?ftp|mailto|tel|file):/,r=/^\s*((https?|ftp|file|blob):|data:image\/)/;this.aHrefSanitizationTrustedUrlList=function(e){return A(e)?(n=e,this):n},this.imgSrcSanitizationTrustedUrlList=function(e){return A(e)?(r=e,this):r},this.$get=function(){return function(e,t){var t=t?r:n,i=L(e&&e.trim()).href;return""===i||i.match(t)?e:"unsafe:"+i}}}function ri(e){var t=[];return A(e)&&me(e,function(e){t.push(function(e){if("self"===e)return e;if(xe(e)){if(-1<e.indexOf("***"))throw Gr("iwcard",e);return e=bn(e).replace(/\\\*\\\*/g,".*").replace(/\\\*/g,"[^:/.?&;]*"),new RegExp("^"+e+"$")}if(f(e))return new RegExp("^"+e.source+"$");throw Gr("imatcher")}(e))}),t}function si(){this.SCE_CONTEXTS=v;var h=["self"],u=[];this.trustedResourceUrlList=function(e){return h=arguments.length?ri(e):h},Object.defineProperty(this,"resourceUrlWhitelist",{get:function(){return this.trustedResourceUrlList},set:function(e){this.trustedResourceUrlList=e}}),this.bannedResourceUrlList=function(e){return u=arguments.length?ri(e):u},Object.defineProperty(this,"resourceUrlBlacklist",{get:function(){return this.bannedResourceUrlList},set:function(e){this.bannedResourceUrlList=e}}),this.$get=["$injector","$$sanitizeUri",function(e,a){function o(e,t){var i;return"self"===e?(i=pi(t,Zr))||(i=pi(t,i=fe.document.baseURI||(or||((or=fe.document.createElement("a")).href=".",or=or.cloneNode(!1)),or.href))):i=!!e.exec(t.href),i}function t(e){function t(e){this.$$unwrapTrustedValue=function(){return e}}return(t.prototype=e?new e:t.prototype).valueOf=function(){return this.$$unwrapTrustedValue()},t.prototype.toString=function(){return this.$$unwrapTrustedValue().toString()},t}var l=function(e){throw Gr("unsafe")},i=(e.has("$sanitize")&&(l=e.get("$sanitize")),t()),c={};return c[v.HTML]=t(i),c[v.CSS]=t(i),c[v.MEDIA_URL]=t(i),c[v.URL]=t(c[v.MEDIA_URL]),c[v.JS]=t(i),c[v.RESOURCE_URL]=t(c[v.URL]),{trustAs:function(e,t){var i=c.hasOwnProperty(e)?c[e]:null;if(!i)throw Gr("icontext",e,t);if(null===t||be(t)||""===t)return t;if("string"!=typeof t)throw Gr("itype",e);return new i(t)},getTrusted:function(e,t){if(null===t||be(t)||""===t)return t;if((i=c.hasOwnProperty(e)?c[e]:null)&&t instanceof i)return t.$$unwrapTrustedValue();if(ke(t.$$unwrapTrustedValue)&&(t=t.$$unwrapTrustedValue()),e===v.MEDIA_URL||e===v.URL)return a(t.toString(),e===v.MEDIA_URL);if(e===v.RESOURCE_URL){for(var i=L(t.toString()),n=!1,r=0,s=h.length;r<s;r++)if(o(h[r],i)){n=!0;break}if(n)for(r=0,s=u.length;r<s;r++)if(o(u[r],i)){n=!1;break}if(n)return t;throw Gr("insecurl",t.toString())}if(e===v.HTML)return l(t);throw Gr("unsafe")},valueOf:function(e){return e instanceof i?e.$$unwrapTrustedValue():e}}}]}function ai(){var t=!0;this.enabled=function(e){return t=arguments.length?!!e:t},this.$get=["$parse","$sceDelegate",function(n,e){if(t&&mn<8)throw Gr("iequirks");var r=E(v),i=(r.isEnabled=function(){return t},r.trustAs=e.trustAs,r.getTrusted=e.getTrusted,r.valueOf=e.valueOf,t||(r.trustAs=r.getTrusted=function(e,t){return t},r.valueOf=Me),r.parseAs=function(t,e){var i=n(e);return i.literal&&i.constant?i:n(e,function(e){return r.getTrusted(t,e)})},r.parseAs),s=r.getTrusted,a=r.trustAs;return me(v,function(t,e){e=Ee(e);r[("parse_as_"+e).replace(Yr,J)]=function(e){return i(t,e)},r[("get_trusted_"+e).replace(Yr,J)]=function(e){return s(t,e)},r[("trust_as_"+e).replace(Yr,J)]=function(e){return a(t,e)}}),r}]}function oi(){this.$get=["$window","$document",function(e,t){var i={},n=!((!e.nw||!e.nw.process)&&e.chrome&&(e.chrome.app&&e.chrome.app.runtime||!e.chrome.app&&e.chrome.runtime&&e.chrome.runtime.id))&&e.history&&e.history.pushState,r=m((/android (\d+)/.exec(Ee((e.navigator||{}).userAgent))||[])[1]),e=/Boxee/i.test((e.navigator||{}).userAgent),s=t[0]||{},t=s.body&&s.body.style,a=!1,o=!1;return t&&(a=!!("transition"in t||"webkitTransition"in t),o=!!("animation"in t||"webkitAnimation"in t)),{history:!(!n||r<4||e),hasEvent:function(e){var t;return("input"!==e||!mn)&&(be(i[e])&&(t=s.createElement("div"),i[e]="on"+e in t),i[e])},csp:vn(),transitions:a,animations:o,android:r}}]}function li(){this.$get=C(function(e){return new ci(e)})}function ci(r){function s(){var e=n.pop();return e&&e.cb}function a(e){for(var t=n.length-1;0<=t;--t){var i=n[t];if(i.type===e)return n.splice(t,1),i.cb}}var o={},n=[],l=this.ALL_TASKS_TYPE="$$all$$",c=this.DEFAULT_TASK_TYPE="$$default$$";this.completeTask=function(e,t){t=t||c;try{e()}finally{var i=t||c,n=(o[i]&&(o[i]--,o[l]--),i=o[t],o[l]);if(!n||!i)for(i=n?a:s;n=i(t);)try{n()}catch(e){r.error(e)}}},this.incTaskCount=function(e){o[e=e||c]=(o[e]||0)+1,o[l]=(o[l]||0)+1},this.notifyWhenNoPendingTasks=function(e,t){o[t=t||l]?n.push({type:t,cb:e}):e()}}function hi(){var c;this.httpOptions=function(e){return e?(c=e,this):c},this.$get=["$exceptionHandler","$templateCache","$http","$q","$sce",function(n,r,s,a,o){function l(t,i){l.totalPendingRequests++,xe(t)&&!be(r.get(t))||(t=o.getTrustedResourceUrl(t));var e=s.defaults&&s.defaults.transformResponse;return we(e)?e=e.filter(function(e){return e!==vt}):e===vt&&(e=null),s.get(t,ye({cache:r,transformResponse:e},c)).finally(function(){l.totalPendingRequests--}).then(function(e){return r.put(t,e.data)},function(e){return i||(e=Xr("tpload",t,e.status,e.statusText),n(e)),a.reject(e)})}return l.totalPendingRequests=0,l}]}function ui(){this.$get=["$rootScope","$browser","$location",function(t,i,n){return{findBindings:function(e,i,n){e=e.getElementsByClassName("ng-binding");var r=[];return me(e,function(t){var e=x.element(t).data("$binding");e&&me(e,function(e){n?new RegExp("(^|\\s)"+bn(i)+"(\\s|\\||$)").test(e)&&r.push(t):-1!==e.indexOf(i)&&r.push(t)})}),r},findModels:function(e,t,i){for(var n=["ng-","data-ng-","ng\\:"],r=0;r<n.length;++r){var s=e.querySelectorAll("["+n[r]+"model"+(i?"=":"*=")+'"'+t+'"]');if(s.length)return s}},getLocation:function(){return n.url()},setLocation:function(e){e!==n.url()&&(n.url(e),t.$digest())},whenStable:function(e){i.notifyWhenNoOutstandingRequests(e)}}}]}function di(){this.$get=["$rootScope","$browser","$q","$$q","$exceptionHandler",function(o,l,c,h,u){function e(e,t,i){ke(e)||(i=t,t=e,e=_);var n=hn.call(arguments,3),r=A(i)&&!i,s=(r?h:c).defer(),a=s.promise,i=l.defer(function(){try{s.resolve(e.apply(null,n))}catch(e){s.reject(e),u(e)}finally{delete d[a.$$timeoutId]}r||o.$apply()},t,"$timeout");return a.$$timeoutId=i,d[i]=s,a}var d={};return e.cancel=function(e){if(!e)return!1;if(!e.hasOwnProperty("$$timeoutId"))throw Kr("badprom");if(!d.hasOwnProperty(e.$$timeoutId))return!1;e=e.$$timeoutId;var t=d[e],i=t.promise;return i.$$state&&(i.$$state.pur=!0),t.reject("canceled"),delete d[e],l.defer.cancel(e)},e}]}function L(e){return xe(e)?(mn&&(t.setAttribute("href",e),e=t.href),t.setAttribute("href",e),e=t.hostname,!Qr&&-1<e.indexOf(":")&&(e="["+e+"]"),{href:t.href,protocol:t.protocol?t.protocol.replace(/:$/,""):"",host:t.host,search:t.search?t.search.replace(/^\?/,""):"",hash:t.hash?t.hash.replace(/^#/,""):"",hostname:e,port:t.port,pathname:"/"===t.pathname.charAt(0)?t.pathname:"/"+t.pathname}):e}function pi(e,t){return e=L(e),t=L(t),e.protocol===t.protocol&&e.host===t.host}function gi(){this.$get=C(fe)}function fi(e){function s(t){try{return decodeURIComponent(t)}catch(e){return t}}var a=e[0]||{},o={},l="";return function(){var t,e,i,n,r;try{t=a.cookie||""}catch(e){t=""}if(t!==l)for(t=(l=t).split("; "),o={},i=0;i<t.length;i++)0<(n=(e=t[i]).indexOf("="))&&(r=s(e.substring(0,n)),be(o[r]))&&(o[r]=s(e.substring(n+1)));return o}}function mi(){this.$get=fi}function yi(n){function r(e,t){var i;return ve(e)?(i={},me(e,function(e,t){i[t]=r(t,e)}),i):n.factory(e+"Filter",t)}this.register=r,this.$get=["$injector",function(t){return function(e){return t.get(e+"Filter")}}],r("currency",wi),r("date",$i),r("filter",bi),r("json",Li),r("limitTo",Ri),r("lowercase",ns),r("number",ki),r("orderBy",Ii),r("uppercase",rs)}function bi(){return function(e,t,i,n){if(!M(e)){if(null==e)return e;throw $("filter")("notarray",e)}var r,s,a,o,l,c;switch(n=n||"$",xi(t)){case"function":break;case"boolean":case"null":case"number":case"string":r=!0;case"object":a=i,o=n,l=r,c=ve(s=t)&&o in s,!0===a?a=Se:ke(a)||(a=function(e,t){return!(be(e)||(null===e||null===t?e!==t:ve(t)||ve(e)&&!h(e)||(e=Ee(""+e),t=Ee(""+t),-1===e.indexOf(t))))}),t=function(e){return c&&!ve(e)?vi(e,s[o],a,o,!1):vi(e,s,a,o,l)};break;default:return e}return Array.prototype.filter.call(e,t)}}function vi(e,t,i,n,r,s){var a,o=xi(e),l=xi(t);if("string"===l&&"!"===t.charAt(0))return!vi(e,t.substring(1),i,n,r);if(we(e))return e.some(function(e){return vi(e,t,i,n,r)});switch(o){case"object":if(r){for(a in e)if(a.charAt&&"$"!==a.charAt(0)&&vi(e[a],t,i,n,!0))return!0;return!s&&vi(e,t,i,n,!1)}if("object"!==l)return i(e,t);for(a in t)if(s=t[a],!ke(s)&&!be(s)&&(o=a===n,!vi(o?e:e[a],s,i,n,o,o)))return!1;return!0;case"function":return!1;default:return i(e,t)}}function xi(e){return null===e?"null":typeof e}function wi(e){var r=e.NUMBER_FORMATS;return function(e,t,i){be(t)&&(t=r.CURRENCY_SYM),be(i)&&(i=r.PATTERNS[1].maxFrac);var n=t?/\u00A4/g:/\s*\u00A4\s*/g;return null==e?e:Ti(e,r.PATTERNS[1],r.GROUP_SEP,r.DECIMAL_SEP,i).replace(n,t)}}function ki(e){var i=e.NUMBER_FORMATS;return function(e,t){return null==e?e:Ti(e,i.PATTERNS[0],i.GROUP_SEP,i.DECIMAL_SEP,t)}}function Ti(e,t,i,n,r){if(!xe(e)&&!y(e)||isNaN(e))return"";var s=!isFinite(e),a=!1,o=Math.abs(e)+"",l="";if(s)l="∞";else{var c=a=function(e){var t,i,n,r,s,a=0;for(0<(n=(e=-1<(i=e.indexOf("."))?e.replace(".",""):e).search(/e/i))?(i<0&&(i=n),i+=+e.slice(n+1),e=e.substring(0,n)):i<0&&(i=e.length),n=0;e.charAt(n)===Jr;n++);if(n===(s=e.length))t=[0],i=1;else{for(s--;e.charAt(s)===Jr;)s--;for(i-=n,t=[],r=0;n<=s;n++,r++)t[r]=+e.charAt(n)}return 22<i&&(t=t.splice(0,21),a=i-1,i=1),{d:t,e:a,i:i}}(o),h=r,u=t.minFrac,d=t.maxFrac,p=c.d,g=p.length-c.i;if(d=p[u=(h=be(h)?Math.min(Math.max(u,g),d):+h)+c.i],0<u){p.splice(Math.max(c.i,u));for(var f=u;f<p.length;f++)p[f]=0}else for(g=Math.max(0,g),c.i=1,p.length=Math.max(1,u=h+1),p[0]=0,f=1;f<u;f++)p[f]=0;if(5<=d)if(u-1<0){for(d=0;u<d;d--)p.unshift(0),c.i++;p.unshift(1),c.i++}else p[u-1]++;for(;g<Math.max(0,h);g++)p.push(0);for((h=p.reduceRight(function(e,t,i,n){return n[i]=(t+=e)%10,Math.floor(t/10)},0))&&(p.unshift(h),c.i++),l=a.d,o=a.i,r=a.e,s=[],a=l.reduce(function(e,t){return e&&!t},!0);o<0;)l.unshift(0),o++;for(0<o?s=l.splice(o,l.length):(s=l,l=[0]),o=[],l.length>=t.lgSize&&o.unshift(l.splice(-t.lgSize,l.length).join(""));l.length>t.gSize;)o.unshift(l.splice(-t.gSize,l.length).join(""));l.length&&o.unshift(l.join("")),l=o.join(i),s.length&&(l+=n+s.join("")),r&&(l+="e+"+r)}return e<0&&!a?t.negPre+l+t.negSuf:t.posPre+l+t.posSuf}function Si(e,t,i,n){var r="";for((e<0||n&&e<=0)&&(n?e=1-e:(e=-e,r="-")),e=""+e;e.length<t;)e=Jr+e;return r+(e=i?e.substr(e.length-t):e)}function e(t,i,n,r,s){return n=n||0,function(e){return e=e["get"+t](),(0<n||-n<e)&&(e+=n),Si(e=0===e&&-12===n?12:e,i,r,s)}}function _i(i,n,r){return function(e,t){e=e["get"+i]();return t[cn((r?"STANDALONE":"")+(n?"SHORT":"")+i)][e]}}function Ci(e){var t=new Date(e,0,1).getDay();return new Date(e,0,(t<=4?5:12)-t)}function Ai(i){return function(e){var t=Ci(e.getFullYear());return e=+new Date(e.getFullYear(),e.getMonth(),e.getDate()+(4-e.getDay()))-+t,Si(e=1+Math.round(e/6048e5),i)}}function Ei(e,t){return e.getFullYear()<=0?t.ERAS[0]:t.ERAS[1]}function $i(g){var f=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/;return function(t,e,i){var n,r,s,a,o,l,c,h,u="",d=[];if(e=g.DATETIME_FORMATS[e=e||"mediumDate"]||e,!k(t=y(t=xe(t)?is.test(t)?m(t):((a=(s=t).match(f))&&(s=new Date(0),l=o=0,c=a[8]?s.setUTCFullYear:s.setFullYear,h=a[8]?s.setUTCHours:s.setHours,a[9]&&(o=m(a[9]+a[10]),l=m(a[9]+a[11])),c.call(s,m(a[1]),m(a[2])-1,m(a[3])),o=m(a[4]||0)-o,l=m(a[5]||0)-l,c=m(a[6]||0),a=Math.round(1e3*parseFloat("0."+(a[7]||0))),h.call(s,o,l,c,a)),s):t)?new Date(t):t)||!isFinite(t.getTime()))return t;for(;e;)e=(r=ts.exec(e))?(d=D(d,r,1)).pop():(d.push(e),null);var p=t.getTimezoneOffset();return i&&(p=B(i,p),t=j(t,i,!0)),me(d,function(e){n=es[e],u+=n?n(t,g.DATETIME_FORMATS,p):"''"===e?"'":e.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),u}}function Li(){return function(e,t){return r(e,t=be(t)?2:t)}}function Ri(){return function(e,t,i){return t=(1/0===Math.abs(Number(t))?Number:m)(t),!R(t)&&M(e=y(e)?e.toString():e)?(i=(i=!i||isNaN(i)?0:m(i))<0?Math.max(0,e.length+i):i,0<=t?Mi(e,i,i+t):0===i?Mi(e,t,e.length):Mi(e,Math.max(0,i+t),i)):e}}function Mi(e,t,i){return xe(e)?e.slice(t,i):hn.call(e,t,i)}function Ii(r){function l(e){switch(typeof e){case"number":case"boolean":case"string":return 1;default:return}}function c(e,t){var i,n=0,r=e.type,s=t.type;return r===s?(s=e.value,i=t.value,"string"===r?(s=s.toLowerCase(),i=i.toLowerCase()):"object"===r&&(ve(s)&&(s=e.index),ve(i))&&(i=t.index),s!==i&&(n=s<i?-1:1)):n="undefined"!==r&&("undefined"===s||"null"!==r&&("null"===s||r<s))?-1:1,n}return function(e,t,i,n){if(null==e)return e;var s,a,o;if(M(e))return s=(t=0===(t=we(t)?t:[t]).length?["+"]:t).map(function(e){var t,i=1,n=Me;return ke(e)?n=e:xe(e)&&("+"!==e.charAt(0)&&"-"!==e.charAt(0)||(i="-"===e.charAt(0)?-1:1,e=e.substring(1)),""!==e)&&(n=r(e)).constant&&(t=n(),n=function(e){return e[t]}),{get:n,descending:i}}),a=i?-1:1,o=ke(n)?n:c,(e=Array.prototype.map.call(e,function(i,n){return{value:i,tieBreaker:{value:n,type:"number",index:n},predicateValues:s.map(function(e){var t=e.get(i);return e=typeof t,null===t?e="null":"object"!==e||ke(t.valueOf)&&l(t=t.valueOf())||h(t)&&l(t=t.toString()),{value:t,type:e,index:n}})}})).sort(function(e,t){for(var i=0,n=s.length;i<n;i++){var r=o(e.predicateValues[i],t.predicateValues[i]);if(r)return r*s[i].descending*a}return(o(e.tieBreaker,t.tieBreaker)||c(e.tieBreaker,t.tieBreaker))*a}),e.map(function(e){return e.value});throw $("orderBy")("notarray",e)}}function Ni(e){return(e=ke(e)?{link:e}:e).restrict=e.restrict||"AC",C(e)}function Di(e,t,i,n,r){this.$$controls=[],this.$error={},this.$$success={},this.$pending=void 0,this.$name=r(t.name||t.ngForm||"")(i),this.$dirty=!1,this.$valid=this.$pristine=!0,this.$submitted=this.$invalid=!1,this.$$parentForm=os,this.$$element=e,this.$$animate=n,Oi(this)}function Oi(e){e.$$classCache={},e.$$classCache[Bs]=!(e.$$classCache[Ps]=e.$$element.hasClass(Ps))}function Pi(e){function n(e,t,i){i&&!e.$$classCache[t]?(e.$$animate.addClass(e.$$element,t),e.$$classCache[t]=!0):!i&&e.$$classCache[t]&&(e.$$animate.removeClass(e.$$element,t),e.$$classCache[t]=!1)}function r(e,t,i){t=t?"-"+Fe(t,"-"):"",n(e,Ps+t,!0===i),n(e,Bs+t,!1===i)}var s=e.set,a=e.unset;e.clazz.prototype.$setValidity=function(e,t,i){be(t)?(this.$pending||(this.$pending={}),s(this.$pending,e,i)):(this.$pending&&a(this.$pending,e,i),Bi(this.$pending)&&(this.$pending=void 0)),(S(t)?t?(a(this.$error,e,i),s):(s(this.$error,e,i),a):(a(this.$error,e,i),a))(this.$$success,e,i),this.$pending?(n(this,"ng-pending",!0),this.$valid=this.$invalid=void 0,r(this,"",null)):(n(this,"ng-pending",!1),this.$valid=Bi(this.$error),this.$invalid=!this.$valid,r(this,"",this.$valid)),r(this,e,t=this.$pending&&this.$pending[e]?void 0:!this.$error[e]&&(!!this.$$success[e]||null)),this.$$parentForm.$setValidity(e,t,this)}}function Bi(e){if(e)for(var t in e)if(e.hasOwnProperty(t))return!1;return!0}function Fi(t){t.$formatters.push(function(e){return t.$isEmpty(e)?e:e.toString()})}function ji(e,i,n,r,t,s){var a,o=Ee(i[0].type);t.android||(a=!1,i.on("compositionstart",function(){a=!0}),i.on("compositionupdate",function(e){!be(e.data)&&""!==e.data||(a=!1)}),i.on("compositionend",function(){a=!1,h()}));var l,c,h=function(e){var t;l&&(s.defer.cancel(l),l=null),!a&&(t=i.val(),e=e&&e.type,"password"===o||n.ngTrim&&"false"===n.ngTrim||(t=$e(t)),r.$viewValue!==t||""===t&&r.$$hasNativeValidators)&&r.$setViewValue(t,e)};t.hasEvent("input")?i.on("input",h):(c=function(e,t,i){l=l||s.defer(function(){l=null,t&&t.value===i||h(e)})},i.on("keydown",function(e){var t=e.keyCode;91===t||15<t&&t<19||37<=t&&t<=40||c(e,this,this.value)}),t.hasEvent("paste")&&i.on("paste cut drop",c)),i.on("change",h),bs[o]&&r.$$hasNativeValidators&&o===n.type&&i.on("keydown wheel mousedown",function(e){var t,i,n;l||(t=this.validity,i=t.badInput,n=t.typeMismatch,l=s.defer(function(){l=null,t.badInput===i&&t.typeMismatch===n||h(e)}))}),r.$render=function(){var e=r.$isEmpty(r.$viewValue)?"":r.$viewValue;i.val()!==e&&i.val(e)}}function zi(n,r){return function(e,t){var i;if(k(e))return e;if(xe(e)){if('"'===e.charAt(0)&&'"'===e.charAt(e.length-1)&&(e=e.substring(1,e.length-1)),hs.test(e))return new Date(e);if(n.lastIndex=0,e=n.exec(e))return e.shift(),i=t?{yyyy:t.getFullYear(),MM:t.getMonth()+1,dd:t.getDate(),HH:t.getHours(),mm:t.getMinutes(),ss:t.getSeconds(),sss:t.getMilliseconds()/1e3}:{yyyy:1970,MM:1,dd:1,HH:0,mm:0,ss:0,sss:0},me(e,function(e,t){t<r.length&&(i[r[t]]=+e)}),e=new Date(i.yyyy,i.MM-1,i.dd,i.HH,i.mm,i.ss||0,1e3*i.sss||0),i.yyyy<100&&e.setFullYear(i.yyyy),e}return NaN}}function Hi(b,v,x,w){return function(e,t,i,n,r,s,a,o){function l(e){return e&&(!e.getTime||e.getTime()===e.getTime())}function c(e){return A(e)&&!k(e)?h(e)||void 0:e}function h(e,t){var i=n.$options.getOption("timezone"),e=(d&&d!==i&&(t=F(t,B(d))),x(e,t));return e=!isNaN(e)&&i?j(e,i):e}Ui(0,t,0,n,b),ji(0,t,i,n,r,s);var u,d,p,g,f,m,y="time"===b||"datetimelocal"===b;n.$parsers.push(function(e){return n.$isEmpty(e)?null:v.test(e)?h(e,u):void(n.$$parserName=b)}),n.$formatters.push(function(e){if(e&&!k(e))throw zs("datefmt",e);var t,i;return l(e)?(u=e,(t=n.$options.getOption("timezone"))&&(u=j(u,d=t,!0)),i=w,y&&xe(n.$options.getOption("timeSecondsFormat"))&&(i=w.replace("ss.sss",n.$options.getOption("timeSecondsFormat")).replace(/:$/,"")),e=a("date")(e,i,t),y&&n.$options.getOption("timeStripZeroSeconds")?e.replace(/(?::00)?(?:\.000)?$/,""):e):(d=u=null,"")}),(A(i.min)||i.ngMin)&&(p=i.min||o(i.ngMin)(e),g=c(p),n.$validators.min=function(e){return!l(e)||be(g)||x(e)>=g},i.$observe("min",function(e){e!==p&&(g=c(e),p=e,n.$validate())})),(A(i.max)||i.ngMax)&&(f=i.max||o(i.ngMax)(e),m=c(f),n.$validators.max=function(e){return!l(e)||be(m)||x(e)<=m},i.$observe("max",function(e){e!==f&&(m=c(e),f=e,n.$validate())}))}}function Ui(e,i,t,n,r){(n.$$hasNativeValidators=ve(i[0].validity))&&n.$parsers.push(function(e){var t=i.prop("validity")||{};if(!t.badInput&&!t.typeMismatch)return e;n.$$parserName=r})}function qi(t){t.$parsers.push(function(e){return t.$isEmpty(e)?null:ps.test(e)?parseFloat(e):void(t.$$parserName="number")}),t.$formatters.push(function(e){if(!t.$isEmpty(e)){if(!y(e))throw zs("numfmt",e);e=e.toString()}return e})}function g(e){return A(e)&&!y(e)&&(e=parseFloat(e)),R(e)?void 0:e}function Wi(e){var t=e.toString(),i=t.indexOf(".");return-1===i?-1<e&&e<1&&(e=/e-(\d+)$/.exec(t))?Number(e[1]):0:t.length-i-1}function Vi(e,t,i){var n,r,s,a=(0|(e=Number(e)))!==e,o=(0|t)!==t,l=(0|i)!==i;return(a||o||l)&&(s=a?Wi(e):0,n=o?Wi(t):0,r=l?Wi(i):0,s=Math.max(s,n,r),e*=s=Math.pow(10,s),t*=s,i*=s,a&&(e=Math.round(e)),o&&(t=Math.round(t)),l)&&(i=Math.round(i)),0==(e-t)%i}function Gi(e,t,i,n,r){if(A(n)){if((e=e(n)).constant)return e(t);throw zs("constexpr",i,n)}return r}function Yi(l,c){function h(e,t){if(!e||!e.length)return[];if(!t||!t.length)return e;var i=[],n=0;e:for(;n<e.length;n++){for(var r=e[n],s=0;s<t.length;s++)if(r===t[s])continue e;i.push(r)}return i}function u(t){var e;return t&&(we(e=t)?e=t.map(u).join(" "):ve(t)?e=Object.keys(t).filter(function(e){return t[e]}).join(" "):xe(t)||(e=t+""),e)}var d;return l="ngClass"+l,["$parse",function(i){return{restrict:"AC",link:function(e,t,r){function s(e,t){var i=[];return me(e,function(e){(0<t||n[e])&&(n[e]=(n[e]||0)+t,n[e]===+(0<t))&&i.push(e)}),i.join(" ")}var a,n=t.data("$classCounts"),o=!0;n||(n=_e(),t.data("$classCounts",n)),"ngClass"!==l&&(d=d||i("$index",function(e){return 1&e}),e.$watch(d,function(e){var t;e===c?(t=s((t=a)&&t.split(" "),1),r.$addClass(t)):(t=s((t=a)&&t.split(" "),-1),r.$removeClass(t)),o=e})),e.$watch(i(r[l],u),function(e){var t,i,n;o===c&&(i=h(n=a&&a.split(" "),t=e&&e.split(" ")),n=h(t,n),i=s(i,-1),n=s(n,1),r.$addClass(n),r.$removeClass(i)),a=e})}}}]}function Xi(i,r,s,a,o,l){return{restrict:"A",compile:function(e,t){var n=i(t[a]);return function(i,e){e.on(o,function(e){function t(){n(i,{$event:e})}if(r.$$phase)if(l)i.$evalAsync(t);else try{t()}catch(e){s(e)}else i.$apply(t)})}}}}function Ki(e,t,i,n,r,s,a,o,l){var c;this.$modelValue=this.$viewValue=Number.NaN,this.$$rawModelValue=void 0,this.$validators={},this.$asyncValidators={},this.$parsers=[],this.$formatters=[],this.$viewChangeListeners=[],this.$untouched=!0,this.$touched=!1,this.$pristine=!0,this.$dirty=!1,this.$valid=!0,this.$invalid=!1,this.$error={},this.$$success={},this.$pending=void 0,this.$name=l(i.name||"",!1)(e),this.$$parentForm=os,this.$options=lr,this.$$updateEvents="",this.$$updateEventHandler=this.$$updateEventHandler.bind(this),this.$$parsedNgModel=r(i.ngModel),this.$$parsedNgModelAssign=this.$$parsedNgModel.assign,this.$$ngModelGet=this.$$parsedNgModel,this.$$ngModelSet=this.$$parsedNgModelAssign,this.$$pendingDebounce=null,this.$$parserValid=void 0,this.$$parserName="parse",this.$$currentValidationRunId=0,this.$$scope=e,this.$$rootScope=e.$root,this.$$attr=i,this.$$element=n,this.$$animate=s,this.$$timeout=a,this.$$parse=r,this.$$q=o,this.$$exceptionHandler=t,Oi(this),(c=this).$$scope.$watch(function(e){return(e=c.$$ngModelGet(e))===c.$modelValue||c.$modelValue!=c.$modelValue&&e!=e||c.$$setModelValue(e),e})}function Zi(e){this.$$options=e}function Qi(i,e){me(e,function(e,t){A(i[t])||(i[t]=e)})}function Ji(e,t){e.prop("selected",t),e.attr("selected",t)}function en(e,t,i){if(e){if((e=xe(e)?new RegExp("^"+e+"$"):e).test)return e;throw $("ngPattern")("noregexp",t,e,Be(i))}}function tn(e){return e=m(e),R(e)?-1:e}var Ae,nn,rn,sn,an={objectMaxDepth:5,urlErrorParamsEnabled:!0},on=/^\/(.+)\/([a-z]*)$/,ln=Object.prototype.hasOwnProperty,Ee=function(e){return xe(e)?e.toLowerCase():e},cn=function(e){return xe(e)?e.toUpperCase():e},hn=[].slice,un=[].splice,dn=[].push,b=Object.prototype.toString,pn=Object.getPrototypeOf,gn=$("ng"),x=fe.angular||(fe.angular={}),fn=0,mn=fe.document.documentMode,R=Number.isNaN||function(e){return e!=e},yn=(_.$inject=[],Me.$inject=[],/^\[object (?:Uint8|Uint8Clamped|Uint16|Uint32|Int8|Int16|Int32|Float32|Float64)Array]$/),$e=function(e){return xe(e)?e.trim():e},bn=function(e){return e.replace(/([-()[\]{}+?*.$^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08")},vn=function(){if(!A(vn.rules)){var e=fe.document.querySelector("[ng-csp]")||fe.document.querySelector("[data-ng-csp]");if(e){var t=e.getAttribute("ng-csp")||e.getAttribute("data-ng-csp");vn.rules={noUnsafeEval:!t||-1!==t.indexOf("no-unsafe-eval"),noInlineStyle:!t||-1!==t.indexOf("no-inline-style")}}else{e=vn;try{new Function(""),t=!1}catch(e){t=!0}e.rules={noUnsafeEval:t,noInlineStyle:!1}}}return vn.rules},xn=function(){if(A(xn.name_))return xn.name_;for(var e,t,i,n=kn.length,r=0;r<n;++r)if(t=kn[r],e=fe.document.querySelector("["+t.replace(":","\\:")+"jq]")){i=e.getAttribute(t+"jq");break}return xn.name_=i},wn=/:/g,kn=["ng-","data-ng-","ng:","x-ng-"],Tn=(rn=fe.document,!(_n=rn.currentScript)||(_n instanceof fe.HTMLScriptElement||_n instanceof fe.SVGScriptElement)&&[(_n=_n.attributes).getNamedItem("src"),_n.getNamedItem("href"),_n.getNamedItem("xlink:href")].every(function(e){if(!e)return!0;if(!e.value)return!1;var t=rn.createElement("a");if(t.href=e.value,rn.location.origin===t.origin)return!0;switch(t.protocol){case"http:":case"https:":case"ftp:":case"blob:":case"file:":case"data:":return!0;default:return!1}})),Sn=/[A-Z]/g,_n=!1,Cn=3,An={full:"1.8.2",major:1,minor:8,dot:2,codeName:"meteoric-mining"},En=(l.expando="ng339",l.cache={}),$n=1,Ln=(l._data=function(e){return this.cache[e[this.expando]]||{}},/-([a-z])/g),Rn=/^-ms-/,Mn={mouseleave:"mouseout",mouseenter:"mouseover"},In=$("jqLite"),Nn=/^<([\w-]+)\s*\/?>(?:<\/\1>|)$/,Dn=/<|&#?\w+;/,On=/<([\w:-]+)/,Pn=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:-]+)[^>]*)\/>/gi,Bn={thead:["table"],col:["colgroup","table"],tr:["tbody","table"],td:["tr","tbody","table"]},Fn=(Bn.tbody=Bn.tfoot=Bn.colgroup=Bn.caption=Bn.thead,Bn.th=Bn.td,{option:[1,'<select multiple="multiple">',"</select>"],_default:[0,"",""]});for(sn in Bn){var jn=Bn[sn],zn=jn.slice().reverse();Fn[sn]=[zn.length,"<"+zn.join("><")+">","</"+jn.join("></")+">"]}Fn.optgroup=Fn.option;var Hn=fe.Node.prototype.contains||function(e){return!!(16&this.compareDocumentPosition(e))},Un=l.prototype={ready:We,toString:function(){var t=[];return me(this,function(e){t.push(""+e)}),"["+t.join(", ")+"]"},eq:function(e){return Ae(0<=e?this[e]:this[this.length+e])},length:0,push:dn,sort:[].sort,splice:[].splice},qn={},Wn=(me("multiple selected checked disabled readOnly required open".split(" "),function(e){qn[Ee(e)]=e}),{}),Vn=(me("input select option textarea button form details".split(" "),function(e){Wn[e]=!0}),{ngMinlength:"minlength",ngMaxlength:"maxlength",ngMin:"min",ngMax:"max",ngPattern:"pattern",ngStep:"step"});function Gn(e,t){var i;if(be(t))return 1===(i=e.nodeType)||i===Cn?e.textContent:"";e.textContent=t}me({data:ce,removeData:oe,hasData:function(e){for(var t in En[e.ng339])return!0;return!1},cleanData:function(e){for(var t=0,i=e.length;t<i;t++)oe(e[t]),ae(e[t])}},function(e,t){l[t]=e}),me({data:ce,inheritedData:He,scope:function(e){return Ae.data(e,"$scope")||He(e.parentNode||e,["$isolateScope","$scope"])},isolateScope:function(e){return Ae.data(e,"$isolateScope")||Ae.data(e,"$isolateScopeNoTemplate")},controller:ge,injector:function(e){return He(e,"$injector")},removeAttr:function(e,t){e.removeAttribute(t)},hasClass:he,css:function(e,t,i){if(t=ee(t.replace(Rn,"ms-")),!A(i))return e.style[t];e.style[t]=i},attr:function(e,t,i){if((n=e.nodeType)!==Cn&&2!==n&&8!==n&&e.getAttribute){var n=Ee(t),r=qn[n];if(!A(i))return e=e.getAttribute(t),null===(e=r&&null!==e?n:e)?void 0:e;null===i||!1===i&&r?e.removeAttribute(t):e.setAttribute(t,r?n:i)}},prop:function(e,t,i){if(!A(i))return e[t];e[t]=i},text:(Gn.$dv="",Gn),val:function(e,t){var i;if(be(t))return e.multiple&&"select"===Te(e)?(i=[],me(e.options,function(e){e.selected&&i.push(e.value||e.text)}),i):e.value;e.value=t},html:function(e,t){if(be(t))return e.innerHTML;ne(e,!0),e.innerHTML=t},empty:Ue},function(a,e){l.prototype[e]=function(e,t){var i,n=this.length;if(a!==Ue&&be(2===a.length&&a!==he&&a!==ge?e:t)){if(ve(e)){for(s=0;s<n;s++)if(a===ce)a(this[s],e);else for(i in e)a(this[s],i,e[i]);return this}for(n=be(s=a.$dv)?Math.min(n,1):n,i=0;i<n;i++)var r=a(this[i],e,t),s=s?s+r:r;return s}for(s=0;s<n;s++)a(this[s],e,t);return this}}),me({removeData:oe,on:function(r,e,s,t){if(A(t))throw In("onargs");if(te(r))for(var a=(t=le(r,!0)).events,o=(o=t.handle)||(t.handle=Ge(r,a)),i=(t=0<=e.indexOf(" ")?e.split(" "):[e]).length,n=function(e,t,i){var n=a[e];n||((n=a[e]=[]).specialHandlerWrapper=t,"$destroy"===e)||i||r.addEventListener(e,o),n.push(s)};i--;)e=t[i],Mn[e]?(n(Mn[e],Xe),n(e,void 0,!0)):n(e)},off:ae,one:function(t,i,n){(t=Ae(t)).on(i,function e(){t.off(i,n),t.off(i,e)}),t.on(i,n)},replaceWith:function(t,e){var i,n=t.parentNode;ne(t),me(new l(e),function(e){i?n.insertBefore(e,i.nextSibling):n.replaceChild(e,t),i=e})},children:function(e){var t=[];return me(e.childNodes,function(e){1===e.nodeType&&t.push(e)}),t},contents:function(e){return e.contentDocument||e.childNodes||[]},append:function(e,t){if(1===(i=e.nodeType)||11===i)for(var i=0,n=(t=new l(t)).length;i<n;i++)e.appendChild(t[i])},prepend:function(t,e){var i;1===t.nodeType&&(i=t.firstChild,me(new l(e),function(e){t.insertBefore(e,i)}))},wrap:function(e,t){var t=Ae(t).eq(0).clone()[0],i=e.parentNode;i&&i.replaceChild(t,e),t.appendChild(e)},remove:qe,detach:function(e){qe(e,!0)},after:function(e,t){var i=e,n=e.parentNode;if(n)for(var r=0,s=(t=new l(t)).length;r<s;r++){var a=t[r];n.insertBefore(a,i.nextSibling),i=a}},addClass:de,removeClass:ue,toggleClass:function(i,e,n){e&&me(e.split(" "),function(e){var t=n;((t=be(n)?!he(i,e):t)?de:ue)(i,e)})},parent:function(e){return(e=e.parentNode)&&11!==e.nodeType?e:null},next:function(e){return e.nextElementSibling},find:function(e,t){return e.getElementsByTagName?e.getElementsByTagName(t):[]},clone:ze,triggerHandler:function(t,e,i){var n,r,s=e.type||e,a=le(t);(a=(a=a&&a.events)&&a[s])&&(n={preventDefault:function(){this.defaultPrevented=!0},isDefaultPrevented:function(){return!0===this.defaultPrevented},stopImmediatePropagation:function(){this.immediatePropagationStopped=!0},isImmediatePropagationStopped:function(){return!0===this.immediatePropagationStopped},stopPropagation:_,type:s,target:t},e.type&&(n=ye(n,e)),e=E(a),r=i?[n].concat(i):[n],me(e,function(e){n.isImmediatePropagationStopped()||e.apply(t,r)}))}},function(a,e){l.prototype[e]=function(e,t,i){for(var n,r=0,s=this.length;r<s;r++)be(n)?A(n=a(this[r],e,t,i))&&(n=Ae(n)):pe(n,a(this[r],e,t,i));return A(n)?n:this}}),l.prototype.bind=l.prototype.on,l.prototype.unbind=l.prototype.off;function Yn(){this.$get=_}function Xn(){var l=new pr,c=[];this.$get=["$$AnimateRunner","$rootScope",function(r,s){function a(t,e,i){var n=!1;return e&&me(e=xe(e)?e.split(" "):we(e)?e:[],function(e){e&&(n=!0,t[e]=i)}),n}function o(){me(c,function(e){var i,n,r,t,s,a=l.get(e);a&&(xe(t=e.attr("class"))&&(t=t.split(" ")),s=_e(),me(t,function(e){e.length&&(s[e]=!0)}),i=s,r=n="",me(a,function(e,t){e!==!!i[t]&&(e?n+=(n.length?" ":"")+t:r+=(r.length?" ":"")+t)}),me(e,function(e){n&&de(e,n),r&&ue(e,r)}),l.delete(e))}),c.length=0}return{enabled:_,on:_,off:_,pin:_,push:function(e,t,i,n){return n&&n(),(i=i||{}).from&&e.css(i.from),i.to&&e.css(i.to),(i.addClass||i.removeClass)&&(t=i.addClass,n=i.removeClass,t=a(i=l.get(e)||{},t,!0),n=a(i,n,!1),t||n)&&(l.set(e,i),c.push(e),1===c.length)&&s.$$postDigest(o),(e=new r).complete(),e}}}]}function Kn(){this.$get=["$$rAF",function(t){function i(e){n.push(e),1<n.length||t(function(){for(var e=0;e<n.length;e++)n[e]();n=[]})}var n=[];return function(){var t=!1;return i(function(){t=!0}),function(e){t?e():i(e)}}}]}function Zn(){this.$get=["$q","$sniffer","$$animateAsyncRun","$$isDocumentHidden","$timeout",function(t,e,i,n,r){function s(e){this.setHost(e);var t=i();this._doneCallbacks=[],this._tick=function(e){n()?r(e,0,!1):t(e)},this._state=0}return s.chain=function(e,i){var n=0;!function t(){n===e.length?i(!0):e[n](function(e){!1===e?i(!1):(n++,t())})}()},s.all=function(t,i){function n(e){s=s&&e,++r===t.length&&i(s)}var r=0,s=!0;me(t,function(e){e.done(n)})},s.prototype={setHost:function(e){this.host=e||{}},done:function(e){2===this._state?e():this._doneCallbacks.push(e)},progress:_,getPromise:function(){var e;return this.promise||((e=this).promise=t(function(t,i){e.done(function(e){(!1===e?i:t)()})})),this.promise},then:function(e,t){return this.getPromise().then(e,t)},catch:function(e){return this.getPromise().catch(e)},finally:function(e){return this.getPromise().finally(e)},pause:function(){this.host.pause&&this.host.pause()},resume:function(){this.host.resume&&this.host.resume()},end:function(){this.host.end&&this.host.end(),this._resolve(!0)},cancel:function(){this.host.cancel&&this.host.cancel(),this._resolve(!1)},complete:function(e){var t=this;0===t._state&&(t._state=1,t._tick(function(){t._resolve(e)}))},_resolve:function(t){2!==this._state&&(me(this._doneCallbacks,function(e){e(t)}),this._doneCallbacks.length=0,this._state=2)}},s}]}function Qn(){this.$get=["$$rAF","$q","$$AnimateRunner",function(a,e,o){return function(e,t){function i(){return a(function(){n.addClass&&(e.addClass(n.addClass),n.addClass=null),n.removeClass&&(e.removeClass(n.removeClass),n.removeClass=null),n.to&&(e.css(n.to),n.to=null),r||s.complete(),r=!0}),s}var n=t||{};(n=n.$$prepared?n:N(n)).cleanupStyles&&(n.from=n.to=null),n.from&&(e.css(n.from),n.from=null);var r,s=new o;return{start:i,end:i}}}]}function Jn(){this.$get=["$document",function(t){return function(e){return e?!e.nodeType&&e instanceof Ae&&(e=e[0]):e=t[0].body,e.offsetWidth+1}}]}function er(){this.$get=function(){function n(e){function t(e){t.data=e,t.called=!0}return t.id=e,t}var r=x.callbacks,s={};return{createCallback:function(e){var t="angular.callbacks."+(e="_"+(r.$$counter++).toString(36)),i=n(e);return s[t]=r[e]=i,t},wasCalled:function(e){return s[e].called},getResponse:function(e){return s[e].data},removeCallback:function(e){delete r[s[e].id],delete s[e]}}}}function tr(i){return["$timeout","$parse",function(l,t){function c(e){return""===e?t('this[""]').assign:t(e).assign||_}return{name:"form",restrict:i?"EAC":"E",require:["form","^^?form"],controller:Di,compile:function(e,t){e.addClass(Fs).addClass(Ps);var o=t.name?"name":!(!i||!t.ngForm)&&"ngForm";return{pre:function(t,e,i,n){var r,s=n[0],a=("action"in i||(e[0].addEventListener("submit",r=function(e){t.$apply(function(){s.$commitViewValue(),s.$setSubmitted()}),e.preventDefault()}),e.on("$destroy",function(){l(function(){e[0].removeEventListener("submit",r)},0,!1)})),(n[1]||s.$$parentForm).$addControl(s),o?c(s.$name):_);o&&(a(t,s),i.$observe(o,function(e){s.$name!==e&&(a(t,void 0),s.$$parentForm.$$renameControl(s,e),(a=c(s.$name))(t,s))})),e.on("$destroy",function(){s.$$parentForm.$removeControl(s),a(t,void 0),ye(s,os)})}}}}}]}function ir(){var r={configurable:!0,enumerable:!1,get:function(){return this.getAttribute("value")||""},set:function(e){this.setAttribute("value",e)}};return{restrict:"E",priority:200,compile:function(e,t){if("hidden"===Ee(t.type))return{pre:function(e,t,i,n){(e=t[0]).parentNode&&e.parentNode.insertBefore(e,e.nextSibling),Object.defineProperty&&Object.defineProperty(e,"value",r)}}}}}function nr(){function n(e,t,i){var n=A(i)?i:9===mn?"":null;e.prop("value",n),t.$set("value",i)}return{restrict:"A",priority:100,compile:function(e,t){return ws.test(t.ngValue)?function(e,t,i){n(t,i,e=e.$eval(i.ngValue))}:function(e,t,i){e.$watch(i.ngValue,function(e){n(t,i,e)})}}}}function rr(){return{restrict:"A",priority:100,require:"ngModel",link:function(e,t,i,n){var r=i.ngList||", ",s="false"!==i.ngTrim,a=s?$e(r):r;n.$parsers.push(function(e){var t;if(!be(e))return t=[],e&&me(e.split(a),function(e){e&&t.push(s?$e(e):e)}),t}),n.$formatters.push(function(e){if(we(e))return e.join(r)}),n.$isEmpty=function(e){return!e||!e.length}}}}function sr(){function e(e,t){this.$$attrs=e,this.$$scope=t}return e.$inject=["$attrs","$scope"],e.prototype={$onInit:function(){var e=this.parentCtrl?this.parentCtrl.$options:lr,t=this.$$scope.$eval(this.$$attrs.ngModelOptions);this.$options=e.createChild(t)}},{restrict:"A",priority:10,require:{parentCtrl:"?^^ngModelOptions"},bindToController:!0,controller:e}}function ar(){return{restrict:"E",require:["select","?ngModel"],controller:la,priority:1,link:{pre:function(e,n,t,i){var r,s,a=i[0],o=i[1];o?(a.ngModelCtrl=o,n.on("change",function(){a.removeUnknownOption(),e.$apply(function(){o.$setViewValue(a.readValue())})}),t.multiple&&(a.multiple=!0,a.readValue=function(){var t=[];return me(n.find("option"),function(e){e.selected&&!e.disabled&&(e=e.value,t.push(e in a.selectValueMap?a.selectValueMap[e]:e))}),t},a.writeValue=function(i){me(n.find("option"),function(e){var t=!!i&&(-1!==Array.prototype.indexOf.call(i,e.value)||-1!==Array.prototype.indexOf.call(i,a.selectValueMap[e.value]));t!==e.selected&&Ji(Ae(e),t)})},s=NaN,e.$watch(function(){s!==o.$viewValue||Se(r,o.$viewValue)||(r=E(o.$viewValue),o.$render()),s=o.$viewValue}),o.$isEmpty=function(e){return!e||0===e.length})):a.registerOption=_},post:function(e,t,i,n){var r,s=n[1];s&&(r=n[0],s.$render=function(){r.writeValue(s.$viewValue)})}}}}var or,lr,cr,hr,ur,dr=Object.create(null),pr=(Qe.prototype={_idx:function(e){return e!==this._lastKey&&(this._lastKey=e,this._lastIndex=this._keys.indexOf(e)),this._lastIndex},_transformKey:function(e){return R(e)?dr:e},get:function(e){if(e=this._transformKey(e),-1!==(e=this._idx(e)))return this._values[e]},has:function(e){return e=this._transformKey(e),-1!==this._idx(e)},set:function(e,t){e=this._transformKey(e);var i=this._idx(e);-1===i&&(i=this._lastIndex=this._keys.length),this._keys[i]=e,this._values[i]=t},delete:function(e){return e=this._transformKey(e),-1!==(e=this._idx(e))&&(this._keys.splice(e,1),this._values.splice(e,1),this._lastKey=NaN,this._lastIndex=-1,!0)}},Qe),gr=[function(){this.$get=[function(){return pr}]}],fr=/^([^(]+?)=>/,mr=/^[^(]*\(\s*([^)]*)\)/m,yr=/,/,br=/^\s*(_?)(\S+?)\1\s*$/,vr=/((\/\/.*$)|(\/\*[\s\S]*?\*\/))/gm,xr=$("$injector"),wr=(et.$$annotate=function(e,t,i){var n,r;if("function"==typeof e){if(!(n=e.$inject)){if(n=[],e.length){if(t)throw xe(i)&&i||(i=e.name||((r=Je(r=e))?"function("+(r[1]||"").replace(/[\s\r\n]+/," ")+")":"fn")),xr("strictdi",i);me((t=Je(e))[1].split(yr),function(e){e.replace(br,function(e,t,i){n.push(i)})})}e.$inject=n}}else we(e)?(t=e.length-1,X(e[t],"fn"),n=e.slice(0,t)):X(e,"fn",!0);return n},$("$animate")),kr=["$provide",function(n){var r=this,t=null,i=null;this.$$registeredAnimations=Object.create(null),this.register=function(e,t){if(e&&"."!==e.charAt(0))throw wr("notcsel",e);var i=e+"-animation";r.$$registeredAnimations[e.substr(1)]=i,n.factory(i,t)},this.customFilter=function(e){return i=1===arguments.length?ke(e)?e:null:i},this.classNameFilter=function(e){if(1===arguments.length&&(t=e instanceof RegExp?e:null)&&/[(\s|\/)]ng-animate[(\s|\/)]/.test(t.toString()))throw t=null,wr("nongcls","ng-animate");return t},this.$get=["$$animateQueue",function(s){function r(e,t,i){if(i){var n;e:{for(n=0;n<i.length;n++){var r=i[n];if(1===r.nodeType){n=r;break e}}n=void 0}!n||n.parentNode||n.previousElementSibling||(i=null)}i?i.after(e):t.prepend(e)}return{on:s.on,off:s.off,pin:s.pin,enabled:s.enabled,cancel:function(e){e.cancel&&e.cancel()},enter:function(e,t,i,n){return t=t&&Ae(t),i=i&&Ae(i),r(e,t=t||i.parent(),i),s.push(e,"enter",nt(n))},move:function(e,t,i,n){return t=t&&Ae(t),i=i&&Ae(i),r(e,t=t||i.parent(),i),s.push(e,"move",nt(n))},leave:function(e,t){return s.push(e,"leave",nt(t),function(){e.remove()})},addClass:function(e,t,i){return(i=nt(i)).addClass=it(i.addclass,t),s.push(e,"addClass",i)},removeClass:function(e,t,i){return(i=nt(i)).removeClass=it(i.removeClass,t),s.push(e,"removeClass",i)},setClass:function(e,t,i,n){return(n=nt(n)).addClass=it(n.addClass,t),n.removeClass=it(n.removeClass,i),s.push(e,"setClass",n)},animate:function(e,t,i,n,r){return(r=nt(r)).from=r.from?ye(r.from,t):t,r.to=r.to?ye(r.to,i):i,r.tempClasses=it(r.tempClasses,n||"ng-inline-animate"),s.push(e,"animate",r)}}}]}],Le=$("$compile"),Tr=new function(){},Sr=(lt.$inject=["$provide","$$sanitizeUriProvider"],ct.prototype.isFirstChange=function(){return this.previousValue===Tr},/^((?:x|data)[:\-_])/i),_r=/[:\-_]+(.)/g,Cr=$("$controller"),Ar=/^(\S+)(\s+as\s+([\w$]+))?$/,Er="application/json",$r={"Content-Type":Er+";charset=utf-8"},Lr=/^\[|^\{(?!\{)/,Rr={"[":/]$/,"{":/}$/},Mr=/^\)]\}',?\n/,Ir=$("$http"),Nr=x.$interpolateMinErr=$("$interpolate"),Dr=(Nr.throwNoconcat=function(e){throw Nr("noconcat",e)},Nr.interr=function(e,t){return Nr("interr",e,t.toString())},$("$interval")),Or=/^([^?#]*)(\?([^#]*))?(#(.*))?$/,Pr={http:80,https:443,ftp:21},Br=$("$location"),Fr=/^\s*[\\/]{2,}/,jr={$$absUrl:"",$$html5:!1,$$replace:!1,$$compose:function(){for(var i,e=this.$$path,t=this.$$hash,n=(n=this.$$search,i=[],me(n,function(e,t){we(e)?me(e,function(e){i.push(s(t,!0)+(!0===e?"":"="+s(e,!0)))}):i.push(s(t,!0)+(!0===e?"":"="+s(e,!0)))}),i.length?i.join("&"):""),t=t?"#"+U(t):"",r=(e=e.split("/")).length;r--;)e[r]=U(e[r].replace(/%2F/g,"/"));this.$$url=e.join("/")+(n?"?"+n:"")+t,this.$$absUrl=this.$$normalizeUrl(this.$$url),this.$$urlUpdatedByLocation=!0},absUrl:Pt("$$absUrl"),url:function(e){var t;return be(e)?this.$$url:(!(t=Or.exec(e))[1]&&""!==e||this.path(decodeURIComponent(t[1])),(t[2]||t[1]||""===e)&&this.search(t[3]||""),this.hash(t[5]||""),this)},protocol:Pt("$$protocol"),host:Pt("$$host"),port:Pt("$$port"),path:Bt("$$path",function(e){return"/"===(e=null!==e?e.toString():"").charAt(0)?e:"/"+e}),search:function(i,e){switch(arguments.length){case 0:return this.$$search;case 1:if(xe(i)||y(i))i=i.toString(),this.$$search=H(i);else{if(!ve(i))throw Br("isrcharg");me(i=N(i,{}),function(e,t){null==e&&delete i[t]}),this.$$search=i}break;default:be(e)||null===e?delete this.$$search[i]:this.$$search[i]=e}return this.$$compose(),this},hash:Bt("$$hash",function(e){return null!==e?e.toString():""}),replace:function(){return this.$$replace=!0,this}},zr=(me([Ot,Dt,Nt],function(t){t.prototype=Object.create(jr),t.prototype.state=function(e){if(!arguments.length)return this.$$state;if(t===Nt&&this.$$html5)return this.$$state=be(e)?null:e,this.$$urlUpdatedByLocation=!0,this;throw Br("nostate")}}),$("$parse")),Hr={}.constructor.prototype.valueOf,Ur=_e(),qr=(me("+ - * / % === !== == != < > <= >= && || ! = |".split(" "),function(e){Ur[e]=!0}),{n:"\n",f:"\f",r:"\r",t:"\t",v:"\v","'":"'",'"':'"'}),Wr=function(e){this.options=e},d=(Wr.prototype={constructor:Wr,lex:function(e){for(this.text=e,this.index=0,this.tokens=[];this.index<this.text.length;){var t,i,n,r;'"'===(e=this.text.charAt(this.index))||"'"===e?this.readString(e):this.isNumber(e)||"."===e&&this.isNumber(this.peek())?this.readNumber():this.isIdentifierStart(this.peekMultichar())?this.readIdent():this.is(e,"(){}[].,;:?")?(this.tokens.push({index:this.index,text:e}),this.index++):this.isWhitespace(e)?this.index++:(i=(t=e+this.peek())+this.peek(2),n=Ur[t],r=Ur[i],Ur[e]||n||r?(this.tokens.push({index:this.index,text:e=r?i:n?t:e,operator:!0}),this.index+=e.length):this.throwError("Unexpected next character ",this.index,this.index+1))}return this.tokens},is:function(e,t){return-1!==t.indexOf(e)},peek:function(e){return this.index+(e=e||1)<this.text.length&&this.text.charAt(this.index+e)},isNumber:function(e){return"0"<=e&&e<="9"&&"string"==typeof e},isWhitespace:function(e){return" "===e||"\r"===e||"\t"===e||"\n"===e||"\v"===e||" "===e},isIdentifierStart:function(e){return this.options.isIdentifierStart?this.options.isIdentifierStart(e,this.codePointAt(e)):this.isValidIdentifierStart(e)},isValidIdentifierStart:function(e){return"a"<=e&&e<="z"||"A"<=e&&e<="Z"||"_"===e||"$"===e},isIdentifierContinue:function(e){return this.options.isIdentifierContinue?this.options.isIdentifierContinue(e,this.codePointAt(e)):this.isValidIdentifierContinue(e)},isValidIdentifierContinue:function(e,t){return this.isValidIdentifierStart(e,t)||this.isNumber(e)},codePointAt:function(e){return 1===e.length?e.charCodeAt(0):(e.charCodeAt(0)<<10)+e.charCodeAt(1)-56613888},peekMultichar:function(){var e,t,i=this.text.charAt(this.index),n=this.peek();return n&&(e=i.charCodeAt(0),t=n.charCodeAt(0),55296<=e)&&e<=56319&&56320<=t&&t<=57343?i+n:i},isExpOperator:function(e){return"-"===e||"+"===e||this.isNumber(e)},throwError:function(e,t,i){throw i=i||this.index,t=A(t)?"s "+t+"-"+this.index+" ["+this.text.substring(t,i)+"]":" "+i,zr("lexerr",e,t,this.text)},readNumber:function(){for(var e="",t=this.index;this.index<this.text.length;){var i=Ee(this.text.charAt(this.index));if("."===i||this.isNumber(i))e+=i;else{var n=this.peek();if("e"===i&&this.isExpOperator(n))e+=i;else if(this.isExpOperator(i)&&n&&this.isNumber(n)&&"e"===e.charAt(e.length-1))e+=i;else{if(!this.isExpOperator(i)||n&&this.isNumber(n)||"e"!==e.charAt(e.length-1))break;this.throwError("Invalid exponent")}}this.index++}this.tokens.push({index:t,text:e,constant:!0,value:Number(e)})},readIdent:function(){var e=this.index;for(this.index+=this.peekMultichar().length;this.index<this.text.length;){var t=this.peekMultichar();if(!this.isIdentifierContinue(t))break;this.index+=t.length}this.tokens.push({index:e,text:this.text.slice(e,this.index),identifier:!0})},readString:function(e){var t=this.index;this.index++;for(var i="",n=e,r=!1;this.index<this.text.length;){var s=this.text.charAt(this.index),n=n+s;if(r)"u"===s?((r=this.text.substring(this.index+1,this.index+5)).match(/[\da-f]{4}/i)||this.throwError("Invalid unicode escape [\\u"+r+"]"),this.index+=4,i+=String.fromCharCode(parseInt(r,16))):i+=qr[s]||s,r=!1;else if("\\"===s)r=!0;else{if(s===e)return this.index++,void this.tokens.push({index:t,text:n,constant:!0,value:i});i+=s}this.index++}this.throwError("Unterminated quote",t)}},function(e,t){this.lexer=e,this.options=t}),Vr=(d.Program="Program",d.ExpressionStatement="ExpressionStatement",d.AssignmentExpression="AssignmentExpression",d.ConditionalExpression="ConditionalExpression",d.LogicalExpression="LogicalExpression",d.BinaryExpression="BinaryExpression",d.UnaryExpression="UnaryExpression",d.CallExpression="CallExpression",d.MemberExpression="MemberExpression",d.Identifier="Identifier",d.Literal="Literal",d.ArrayExpression="ArrayExpression",d.Property="Property",d.ObjectExpression="ObjectExpression",d.ThisExpression="ThisExpression",d.LocalsExpression="LocalsExpression",d.NGValueParameter="NGValueParameter",d.prototype={ast:function(e){return this.text=e,this.tokens=this.lexer.lex(e),e=this.program(),0!==this.tokens.length&&this.throwError("is an unexpected token",this.tokens[0]),e},program:function(){for(var e=[];;)if(0<this.tokens.length&&!this.peek("}",")",";","]")&&e.push(this.expressionStatement()),!this.expect(";"))return{type:d.Program,body:e}},expressionStatement:function(){return{type:d.ExpressionStatement,expression:this.filterChain()}},filterChain:function(){for(var e=this.expression();this.expect("|");)e=this.filter(e);return e},expression:function(){return this.assignment()},assignment:function(){var e=this.ternary();if(this.expect("=")){if(!Wt(e))throw zr("lval");e={type:d.AssignmentExpression,left:e,right:this.assignment(),operator:"="}}return e},ternary:function(){var e,t,i=this.logicalOR();return this.expect("?")&&(e=this.expression(),this.consume(":"))?(t=this.expression(),{type:d.ConditionalExpression,test:i,alternate:e,consequent:t}):i},logicalOR:function(){for(var e=this.logicalAND();this.expect("||");)e={type:d.LogicalExpression,operator:"||",left:e,right:this.logicalAND()};return e},logicalAND:function(){for(var e=this.equality();this.expect("&&");)e={type:d.LogicalExpression,operator:"&&",left:e,right:this.equality()};return e},equality:function(){for(var e,t=this.relational();e=this.expect("==","!=","===","!==");)t={type:d.BinaryExpression,operator:e.text,left:t,right:this.relational()};return t},relational:function(){for(var e,t=this.additive();e=this.expect("<",">","<=",">=");)t={type:d.BinaryExpression,operator:e.text,left:t,right:this.additive()};return t},additive:function(){for(var e,t=this.multiplicative();e=this.expect("+","-");)t={type:d.BinaryExpression,operator:e.text,left:t,right:this.multiplicative()};return t},multiplicative:function(){for(var e,t=this.unary();e=this.expect("*","/","%");)t={type:d.BinaryExpression,operator:e.text,left:t,right:this.unary()};return t},unary:function(){var e;return(e=this.expect("+","-","!"))?{type:d.UnaryExpression,operator:e.text,prefix:!0,argument:this.unary()}:this.primary()},primary:function(){var e,t;for(this.expect("(")?(e=this.filterChain(),this.consume(")")):this.expect("[")?e=this.arrayDeclaration():this.expect("{")?e=this.object():this.selfReferential.hasOwnProperty(this.peek().text)?e=N(this.selfReferential[this.consume().text]):this.options.literals.hasOwnProperty(this.peek().text)?e={type:d.Literal,value:this.options.literals[this.consume().text]}:this.peek().identifier?e=this.identifier():this.peek().constant?e=this.constant():this.throwError("not a primary expression",this.peek());t=this.expect("(","[",".");)"("===t.text?(e={type:d.CallExpression,callee:e,arguments:this.parseArguments()},this.consume(")")):"["===t.text?(e={type:d.MemberExpression,object:e,property:this.expression(),computed:!0},this.consume("]")):"."===t.text?e={type:d.MemberExpression,object:e,property:this.identifier(),computed:!1}:this.throwError("IMPOSSIBLE");return e},filter:function(e){e=[e];for(var t={type:d.CallExpression,callee:this.identifier(),arguments:e,filter:!0};this.expect(":");)e.push(this.expression());return t},parseArguments:function(){var e=[];if(")"!==this.peekToken().text)for(;e.push(this.filterChain()),this.expect(","););return e},identifier:function(){var e=this.consume();return e.identifier||this.throwError("is not a valid identifier",e),{type:d.Identifier,name:e.text}},constant:function(){return{type:d.Literal,value:this.consume().value}},arrayDeclaration:function(){var e=[];if("]"!==this.peekToken().text)for(;!this.peek("]")&&(e.push(this.expression()),this.expect(",")););return this.consume("]"),{type:d.ArrayExpression,elements:e}},object:function(){var e,t=[];if("}"!==this.peekToken().text)for(;!this.peek("}")&&(e={type:d.Property,kind:"init"},this.peek().constant?(e.key=this.constant(),e.computed=!1,this.consume(":"),e.value=this.expression()):this.peek().identifier?(e.key=this.identifier(),e.computed=!1,this.peek(":")?(this.consume(":"),e.value=this.expression()):e.value=e.key):this.peek("[")?(this.consume("["),e.key=this.expression(),this.consume("]"),e.computed=!0,this.consume(":"),e.value=this.expression()):this.throwError("invalid key",this.peek()),t.push(e),this.expect(",")););return this.consume("}"),{type:d.ObjectExpression,properties:t}},throwError:function(e,t){throw zr("syntax",t.text,e,t.index+1,this.text,this.text.substring(t.index))},consume:function(e){if(0===this.tokens.length)throw zr("ueoe",this.text);var t=this.expect(e);return t||this.throwError("is unexpected, expecting ["+e+"]",this.peek()),t},peekToken:function(){if(0===this.tokens.length)throw zr("ueoe",this.text);return this.tokens[0]},peek:function(e,t,i,n){return this.peekAhead(0,e,t,i,n)},peekAhead:function(e,t,i,n,r){if(this.tokens.length>e){var s=(e=this.tokens[e]).text;if(s===t||s===i||s===n||s===r||!(t||i||n||r))return e}return!1},expect:function(e,t,i,n){return!!(e=this.peek(e,t,i,n))&&(this.tokens.shift(),e)},selfReferential:{this:{type:d.ThisExpression},$locals:{type:d.LocalsExpression}}},2),Gr=(Gt.prototype={compile:function(e){var t,r=this,i=(this.state={nextId:0,filters:{},fn:{vars:[],body:[],own:{}},assign:{vars:[],body:[],own:{}},inputs:[]},o(e,r.$filter),"");return this.stage="assign",(t=Vt(e))&&(this.state.computing="assign",i=this.nextId(),this.recurse(t,i),this.return_(i),i="fn.assign="+this.generateFunction("assign","s,v,l")),t=qt(e.body),r.stage="inputs",me(t,function(e,t){var i="fn"+t,n=(r.state[i]={vars:[],body:[],own:{}},r.state.computing=i,r.nextId());r.recurse(e,n),r.return_(n),r.state.inputs.push({name:i,isPure:e.isPure}),e.watchId=t}),this.state.computing="fn",this.stage="main",this.recurse(e),e='"'+this.USE+" "+this.STRICT+'";\n'+this.filterPrefix()+"var fn="+this.generateFunction("fn","s,l,a,i")+i+this.watchFns()+"return fn;",e=new Function("$filter","getStringValue","ifDefined","plus",e)(this.$filter,zt,Ht,Ut),this.state=this.stage=void 0,e},USE:"use",STRICT:"strict",watchFns:function(){var t=[],e=this.state.inputs,i=this;return me(e,function(e){t.push("var "+e.name+"="+i.generateFunction(e.name,"s")),e.isPure&&t.push(e.name,".isPure="+JSON.stringify(e.isPure)+";")}),e.length&&t.push("fn.inputs=["+e.map(function(e){return e.name}).join(",")+"];"),t.join("")},generateFunction:function(e,t){return"function("+t+"){"+this.varsPrefix(e)+this.body(e)+"};"},filterPrefix:function(){var i=[],n=this;return me(this.state.filters,function(e,t){i.push(e+"=$filter("+n.escape(t)+")")}),i.length?"var "+i.join(",")+";":""},varsPrefix:function(e){return this.state[e].vars.length?"var "+this.state[e].vars.join(",")+";":""},body:function(e){return this.state[e].body.join("")},recurse:function(i,t,e,n,r,s){var a,o,l,c,h,u=this;if(n=n||_,!s&&A(i.watchId))t=t||this.nextId(),this.if_("i",this.lazyAssign(t,this.computedMember("i",i.watchId)),this.lazyRecurse(i,t,e,n,r,!0));else switch(i.type){case d.Program:me(i.body,function(e,t){u.recurse(e.expression,void 0,void 0,function(e){o=e}),t!==i.body.length-1?u.current().body.push(o,";"):u.return_(o)});break;case d.Literal:c=this.escape(i.value),this.assign(t,c),n(t||c);break;case d.UnaryExpression:this.recurse(i.argument,void 0,void 0,function(e){o=e}),c=i.operator+"("+this.ifDefined(o,0)+")",this.assign(t,c),n(c);break;case d.BinaryExpression:this.recurse(i.left,void 0,void 0,function(e){a=e}),this.recurse(i.right,void 0,void 0,function(e){o=e}),c="+"===i.operator?this.plus(a,o):"-"===i.operator?this.ifDefined(a,0)+i.operator+this.ifDefined(o,0):"("+a+")"+i.operator+"("+o+")",this.assign(t,c),n(c);break;case d.LogicalExpression:t=t||this.nextId(),u.recurse(i.left,t),u.if_("&&"===i.operator?t:u.not(t),u.lazyRecurse(i.right,t)),n(t);break;case d.ConditionalExpression:t=t||this.nextId(),u.recurse(i.test,t),u.if_(t,u.lazyRecurse(i.alternate,t),u.lazyRecurse(i.consequent,t)),n(t);break;case d.Identifier:t=t||this.nextId(),e&&(e.context="inputs"===u.stage?"s":this.assign(this.nextId(),this.getHasOwnProperty("l",i.name)+"?l:s"),e.computed=!1,e.name=i.name),u.if_("inputs"===u.stage||u.not(u.getHasOwnProperty("l",i.name)),function(){u.if_("inputs"===u.stage||"s",function(){r&&1!==r&&u.if_(u.isNull(u.nonComputedMember("s",i.name)),u.lazyAssign(u.nonComputedMember("s",i.name),"{}")),u.assign(t,u.nonComputedMember("s",i.name))})},t&&u.lazyAssign(t,u.nonComputedMember("l",i.name))),n(t);break;case d.MemberExpression:a=e&&(e.context=this.nextId())||this.nextId(),t=t||this.nextId(),u.recurse(i.object,a,void 0,function(){u.if_(u.notNull(a),function(){i.computed?(o=u.nextId(),u.recurse(i.property,o),u.getStringValue(o),r&&1!==r&&u.if_(u.not(u.computedMember(a,o)),u.lazyAssign(u.computedMember(a,o),"{}")),c=u.computedMember(a,o),u.assign(t,c),e&&(e.computed=!0,e.name=o)):(r&&1!==r&&u.if_(u.isNull(u.nonComputedMember(a,i.property.name)),u.lazyAssign(u.nonComputedMember(a,i.property.name),"{}")),c=u.nonComputedMember(a,i.property.name),u.assign(t,c),e&&(e.computed=!1,e.name=i.property.name))},function(){u.assign(t,"undefined")}),n(t)},!!r);break;case d.CallExpression:t=t||this.nextId(),i.filter?(o=u.filter(i.callee.name),l=[],me(i.arguments,function(e){var t=u.nextId();u.recurse(e,t),l.push(t)}),c=o+"("+l.join(",")+")",u.assign(t,c),n(t)):(o=u.nextId(),a={},l=[],u.recurse(i.callee,o,a,function(){u.if_(u.notNull(o),function(){me(i.arguments,function(e){u.recurse(e,i.constant?void 0:u.nextId(),void 0,function(e){l.push(e)})}),c=a.name?u.member(a.context,a.name,a.computed)+"("+l.join(",")+")":o+"("+l.join(",")+")",u.assign(t,c)},function(){u.assign(t,"undefined")}),n(t)}));break;case d.AssignmentExpression:o=this.nextId(),a={},this.recurse(i.left,void 0,a,function(){u.if_(u.notNull(a.context),function(){u.recurse(i.right,o),c=u.member(a.context,a.name,a.computed)+i.operator+o,u.assign(t,c),n(t||c)})},1);break;case d.ArrayExpression:l=[],me(i.elements,function(e){u.recurse(e,i.constant?void 0:u.nextId(),void 0,function(e){l.push(e)})}),c="["+l.join(",")+"]",this.assign(t,c),n(t||c);break;case d.ObjectExpression:h=!(l=[]),me(i.properties,function(e){e.computed&&(h=!0)}),h?(t=t||this.nextId(),this.assign(t,"{}"),me(i.properties,function(e){e.computed?(a=u.nextId(),u.recurse(e.key,a)):a=e.key.type===d.Identifier?e.key.name:""+e.key.value,o=u.nextId(),u.recurse(e.value,o),u.assign(u.member(t,a,e.computed),o)})):(me(i.properties,function(t){u.recurse(t.value,i.constant?void 0:u.nextId(),void 0,function(e){l.push(u.escape(t.key.type===d.Identifier?t.key.name:""+t.key.value)+":"+e)})}),c="{"+l.join(",")+"}",this.assign(t,c)),n(t||c);break;case d.ThisExpression:this.assign(t,"s"),n(t||"s");break;case d.LocalsExpression:this.assign(t,"l"),n(t||"l");break;case d.NGValueParameter:this.assign(t,"v"),n(t||"v")}},getHasOwnProperty:function(e,t){var i=e+"."+t,n=this.current().own;return n.hasOwnProperty(i)||(n[i]=this.nextId(!1,e+"&&("+this.escape(t)+" in "+e+")")),n[i]},assign:function(e,t){if(e)return this.current().body.push(e,"=",t,";"),e},filter:function(e){return this.state.filters.hasOwnProperty(e)||(this.state.filters[e]=this.nextId(!0)),this.state.filters[e]},ifDefined:function(e,t){return"ifDefined("+e+","+this.escape(t)+")"},plus:function(e,t){return"plus("+e+","+t+")"},return_:function(e){this.current().body.push("return ",e,";")},if_:function(e,t,i){var n;!0===e?t():((n=this.current().body).push("if(",e,"){"),t(),n.push("}"),i&&(n.push("else{"),i(),n.push("}")))},not:function(e){return"!("+e+")"},isNull:function(e){return e+"==null"},notNull:function(e){return e+"!=null"},nonComputedMember:function(e,t){return/^[$_a-zA-Z][$_a-zA-Z0-9]*$/.test(t)?e+"."+t:e+'["'+t.replace(/[^$_a-zA-Z0-9]/g,this.stringEscapeFn)+'"]'},computedMember:function(e,t){return e+"["+t+"]"},member:function(e,t,i){return i?this.computedMember(e,t):this.nonComputedMember(e,t)},getStringValue:function(e){this.assign(e,"getStringValue("+e+")")},lazyRecurse:function(e,t,i,n,r,s){var a=this;return function(){a.recurse(e,t,i,n,r,s)}},lazyAssign:function(e,t){var i=this;return function(){i.assign(e,t)}},stringEscapeRegex:/[^ a-zA-Z0-9]/g,stringEscapeFn:function(e){return"\\u"+("0000"+e.charCodeAt(0).toString(16)).slice(-4)},escape:function(e){if(xe(e))return"'"+e.replace(this.stringEscapeRegex,this.stringEscapeFn)+"'";if(y(e))return e.toString();if(!0===e)return"true";if(!1===e)return"false";if(null===e)return"null";if(void 0===e)return"undefined";throw zr("esc")},nextId:function(e,t){var i="v"+this.state.nextId++;return e||this.current().vars.push(i+(t?"="+t:"")),i},current:function(){return this.state[this.state.computing]}},Yt.prototype={compile:function(e){var t,n,r,s=this,a=(o(e,s.$filter),(t=Vt(e))&&(n=this.recurse(t)),(t=qt(e.body))&&(r=[],me(t,function(e,t){var i=s.recurse(e);i.isPure=e.isPure,e.input=i,r.push(i),e.watchId=t})),[]);return me(e.body,function(e){a.push(s.recurse(e.expression))}),e=0===e.body.length?_:1===e.body.length?a[0]:function(t,i){var n;return me(a,function(e){n=e(t,i)}),n},n&&(e.assign=function(e,t,i){return n(e,i,t)}),r&&(e.inputs=r),e},recurse:function(e,o,t){var s,l,c,i=this;if(e.input)return this.inputs(e.input,e.watchId);switch(e.type){case d.Literal:return this.value(e.value,o);case d.UnaryExpression:return l=this.recurse(e.argument),this["unary"+e.operator](l,o);case d.BinaryExpression:case d.LogicalExpression:return s=this.recurse(e.left),l=this.recurse(e.right),this["binary"+e.operator](s,l,o);case d.ConditionalExpression:return this["ternary?:"](this.recurse(e.test),this.recurse(e.alternate),this.recurse(e.consequent),o);case d.Identifier:return i.identifier(e.name,o,t);case d.MemberExpression:return s=this.recurse(e.object,!1,!!t),e.computed||(l=e.property.name),e.computed&&(l=this.recurse(e.property)),e.computed?this.computedMember(s,l,o,t):this.nonComputedMember(s,l,o,t);case d.CallExpression:return c=[],me(e.arguments,function(e){c.push(i.recurse(e))}),e.filter&&(l=this.$filter(e.callee.name)),e.filter||(l=this.recurse(e.callee,!0)),e.filter?function(e,t,i,n){for(var r=[],s=0;s<c.length;++s)r.push(c[s](e,t,i,n));return e=l.apply(void 0,r,n),o?{context:void 0,name:void 0,value:e}:e}:function(e,t,i,n){var r=l(e,t,i,n);if(null!=r.value){for(var s=[],a=0;a<c.length;++a)s.push(c[a](e,t,i,n));s=r.value.apply(r.context,s)}return o?{value:s}:s};case d.AssignmentExpression:return s=this.recurse(e.left,!0,1),l=this.recurse(e.right),function(e,t,i,n){var r=s(e,t,i,n);return e=l(e,t,i,n),r.context[r.name]=e,o?{value:e}:e};case d.ArrayExpression:return c=[],me(e.elements,function(e){c.push(i.recurse(e))}),function(e,t,i,n){for(var r=[],s=0;s<c.length;++s)r.push(c[s](e,t,i,n));return o?{value:r}:r};case d.ObjectExpression:return c=[],me(e.properties,function(e){e.computed?c.push({key:i.recurse(e.key),computed:!0,value:i.recurse(e.value)}):c.push({key:e.key.type===d.Identifier?e.key.name:""+e.key.value,computed:!1,value:i.recurse(e.value)})}),function(e,t,i,n){for(var r={},s=0;s<c.length;++s)c[s].computed?r[c[s].key(e,t,i,n)]=c[s].value(e,t,i,n):r[c[s].key]=c[s].value(e,t,i,n);return o?{value:r}:r};case d.ThisExpression:return function(e){return o?{value:e}:e};case d.LocalsExpression:return function(e,t){return o?{value:t}:t};case d.NGValueParameter:return function(e,t,i){return o?{value:i}:i}}},"unary+":function(r,s){return function(e,t,i,n){return e=A(e=r(e,t,i,n))?+e:0,s?{value:e}:e}},"unary-":function(r,s){return function(e,t,i,n){return e=A(e=r(e,t,i,n))?-e:-0,s?{value:e}:e}},"unary!":function(r,s){return function(e,t,i,n){return e=!r(e,t,i,n),s?{value:e}:e}},"binary+":function(r,s,a){return function(e,t,i,n){t=Ut(r(e,t,i,n),e=s(e,t,i,n));return a?{value:t}:t}},"binary-":function(s,a,o){return function(e,t,i,n){var r=s(e,t,i,n);return e=a(e,t,i,n),r=(A(r)?r:0)-(A(e)?e:0),o?{value:r}:r}},"binary*":function(r,s,a){return function(e,t,i,n){return e=r(e,t,i,n)*s(e,t,i,n),a?{value:e}:e}},"binary/":function(r,s,a){return function(e,t,i,n){return e=r(e,t,i,n)/s(e,t,i,n),a?{value:e}:e}},"binary%":function(r,s,a){return function(e,t,i,n){return e=r(e,t,i,n)%s(e,t,i,n),a?{value:e}:e}},"binary===":function(r,s,a){return function(e,t,i,n){return e=r(e,t,i,n)===s(e,t,i,n),a?{value:e}:e}},"binary!==":function(r,s,a){return function(e,t,i,n){return e=r(e,t,i,n)!==s(e,t,i,n),a?{value:e}:e}},"binary==":function(r,s,a){return function(e,t,i,n){return e=r(e,t,i,n)==s(e,t,i,n),a?{value:e}:e}},"binary!=":function(r,s,a){return function(e,t,i,n){return e=r(e,t,i,n)!=s(e,t,i,n),a?{value:e}:e}},"binary<":function(r,s,a){return function(e,t,i,n){return e=r(e,t,i,n)<s(e,t,i,n),a?{value:e}:e}},"binary>":function(r,s,a){return function(e,t,i,n){return e=r(e,t,i,n)>s(e,t,i,n),a?{value:e}:e}},"binary<=":function(r,s,a){return function(e,t,i,n){return e=r(e,t,i,n)<=s(e,t,i,n),a?{value:e}:e}},"binary>=":function(r,s,a){return function(e,t,i,n){return e=r(e,t,i,n)>=s(e,t,i,n),a?{value:e}:e}},"binary&&":function(r,s,a){return function(e,t,i,n){return e=r(e,t,i,n)&&s(e,t,i,n),a?{value:e}:e}},"binary||":function(r,s,a){return function(e,t,i,n){return e=r(e,t,i,n)||s(e,t,i,n),a?{value:e}:e}},"ternary?:":function(r,s,a,o){return function(e,t,i,n){return e=(r(e,t,i,n)?s:a)(e,t,i,n),o?{value:e}:e}},value:function(e,t){return function(){return t?{context:void 0,name:void 0,value:e}:e}},identifier:function(r,s,a){return function(e,t,i,n){return e=t&&r in t?t:e,a&&1!==a&&e&&null==e[r]&&(e[r]={}),t=e?e[r]:void 0,s?{context:e,name:r,value:t}:t}},computedMember:function(o,l,c,h){return function(e,t,i,n){var r,s,a=o(e,t,i,n);return null!=a&&(r=l(e,t,i,n),r+="",h&&1!==h&&a&&!a[r]&&(a[r]={}),s=a[r]),c?{context:a,name:r,value:s}:s}},nonComputedMember:function(r,s,a,o){return function(e,t,i,n){return e=r(e,t,i,n),o&&1!==o&&e&&null==e[s]&&(e[s]={}),t=null!=e?e[s]:void 0,a?{context:e,name:s,value:t}:t}},inputs:function(r,s){return function(e,t,i,n){return n?n[s]:r(e,t,i)}}},Xt.prototype={constructor:Xt,parse:function(e){e=this.getAst(e);var t=this.astCompiler.compile(e.ast),i=e.ast;return t.literal=0===i.body.length||1===i.body.length&&(i.body[0].expression.type===d.Literal||i.body[0].expression.type===d.ArrayExpression||i.body[0].expression.type===d.ObjectExpression),t.constant=e.ast.constant,t.oneTime=e.oneTime,t},getAst:function(e){var t=!1;return":"===(e=e.trim()).charAt(0)&&":"===e.charAt(1)&&(t=!0,e=e.substring(2)),{ast:this.ast.ast(e),oneTime:t}}},$("$sce")),v={HTML:"html",CSS:"css",MEDIA_URL:"mediaUrl",URL:"url",RESOURCE_URL:"resourceUrl",JS:"js"},Yr=/_([a-z])/g,Xr=$("$templateRequest"),Kr=$("$timeout"),t=fe.document.createElement("a"),Zr=L(fe.location.href),Qr=(t.href="http://[::1]","[::1]"===t.hostname),Jr=(fi.$inject=["$document"],yi.$inject=["$provide"],"0"),es=(wi.$inject=["$locale"],{yyyy:e("FullYear",4,0,!(ki.$inject=["$locale"]),!0),yy:e("FullYear",2,0,!0,!0),y:e("FullYear",1,0,!1,!0),MMMM:_i("Month"),MMM:_i("Month",!0),MM:e("Month",2,1),M:e("Month",1,1),LLLL:_i("Month",!1,!0),dd:e("Date",2),d:e("Date",1),HH:e("Hours",2),H:e("Hours",1),hh:e("Hours",2,-12),h:e("Hours",1,-12),mm:e("Minutes",2),m:e("Minutes",1),ss:e("Seconds",2),s:e("Seconds",1),sss:e("Milliseconds",3),EEEE:_i("Day"),EEE:_i("Day",!0),a:function(e,t){return e.getHours()<12?t.AMPMS[0]:t.AMPMS[1]},Z:function(e,t,i){return(0<=(e=-1*i)?"+":"")+(Si(Math[0<e?"floor":"ceil"](e/60),2)+Si(Math.abs(e%60),2))},ww:Ai(2),w:Ai(1),G:Ei,GG:Ei,GGG:Ei,GGGG:function(e,t){return e.getFullYear()<=0?t.ERANAMES[0]:t.ERANAMES[1]}}),ts=/((?:[^yMLdHhmsaZEwG']+)|(?:'(?:[^']|'')*')|(?:E+|y+|M+|L+|d+|H+|h+|m+|s+|a|Z|G+|w+))([\s\S]*)/,is=/^-?\d+$/,ns=($i.$inject=["$locale"],C(Ee)),rs=C(cn),ss=(Ii.$inject=["$parse"],C({restrict:"E",compile:function(e,t){if(!t.href&&!t.xlinkHref)return function(e,t){var i;"a"===t[0].nodeName.toLowerCase()&&(i="[object SVGAnimatedString]"===b.call(t.prop("href"))?"xlink:href":"href",t.on("click",function(e){t.attr(i)||e.preventDefault()}))}}})),as={},os=(me(qn,function(e,n){function r(e,t,i){e.$watch(i[s],function(e){i.$set(n,!!e)})}var s,t;"multiple"!==e&&(s=Ce("ng-"+n),t="checked"===e?function(e,t,i){i.ngModel!==i[s]&&r(e,0,i)}:r,as[s]=function(){return{restrict:"A",priority:100,link:t}})}),me(Vn,function(e,n){as[n]=function(){return{priority:100,link:function(e,t,i){"ngPattern"===n&&"/"===i.ngPattern.charAt(0)&&(t=i.ngPattern.match(on))?i.$set("ngPattern",new RegExp(t[1],t[2])):e.$watch(i[n],function(e){i.$set(n,e)})}}}}),me(["src","srcset","href"],function(a){var o=Ce("ng-"+a);as[o]=["$sce",function(s){return{priority:99,link:function(e,t,i){var n=a,r=a;"href"===a&&"[object SVGAnimatedString]"===b.call(t.prop("href"))&&(r="xlinkHref",i.$attr[r]="xlink:href",n=null),i.$set(o,s.getTrustedMediaUrl(i[o])),i.$observe(o,function(e){e?(i.$set(r,e),mn&&n&&t.prop(n,i[r])):"href"===a&&i.$set(r,null)})}}}]}),{$addControl:_,$getControls:C([]),$$renameControl:function(e,t){e.$name=t},$removeControl:_,$setValidity:_,$setDirty:_,$setPristine:_,$setSubmitted:_,$$setSubmitted:_}),ls=(Di.$inject=["$element","$attrs","$scope","$animate","$interpolate"],Di.prototype={$rollbackViewValue:function(){me(this.$$controls,function(e){e.$rollbackViewValue()})},$commitViewValue:function(){me(this.$$controls,function(e){e.$commitViewValue()})},$addControl:function(e){K(e.$name,"input"),this.$$controls.push(e),e.$name&&(this[e.$name]=e),e.$$parentForm=this},$getControls:function(){return E(this.$$controls)},$$renameControl:function(e,t){var i=e.$name;this[i]===e&&delete this[i],(this[t]=e).$name=t},$removeControl:function(i){i.$name&&this[i.$name]===i&&delete this[i.$name],me(this.$pending,function(e,t){this.$setValidity(t,null,i)},this),me(this.$error,function(e,t){this.$setValidity(t,null,i)},this),me(this.$$success,function(e,t){this.$setValidity(t,null,i)},this),De(this.$$controls,i),i.$$parentForm=os},$setDirty:function(){this.$$animate.removeClass(this.$$element,Fs),this.$$animate.addClass(this.$$element,js),this.$dirty=!0,this.$pristine=!1,this.$$parentForm.$setDirty()},$setPristine:function(){this.$$animate.setClass(this.$$element,Fs,js+" ng-submitted"),this.$dirty=!1,this.$pristine=!0,this.$submitted=!1,me(this.$$controls,function(e){e.$setPristine()})},$setUntouched:function(){me(this.$$controls,function(e){e.$setUntouched()})},$setSubmitted:function(){for(var e=this;e.$$parentForm&&e.$$parentForm!==os;)e=e.$$parentForm;e.$$setSubmitted()},$$setSubmitted:function(){this.$$animate.addClass(this.$$element,"ng-submitted"),this.$submitted=!0,me(this.$$controls,function(e){e.$$setSubmitted&&e.$$setSubmitted()})}},Pi({clazz:Di,set:function(e,t,i){var n=e[t];n?-1===n.indexOf(i)&&n.push(i):e[t]=[i]},unset:function(e,t,i){var n=e[t];n&&(De(n,i),0===n.length)&&delete e[t]}}),tr()),cs=tr(!0),hs=/^\d{4,}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+(?:[+-][0-2]\d:[0-5]\d|Z)$/,us=/^[a-z][a-z\d.+-]*:\/*(?:[^:@]+(?::[^@]+)?@)?(?:[^\s:/?#]+|\[[a-f\d:]+])(?::\d+)?(?:\/[^?#]*)?(?:\?[^#]*)?(?:#.*)?$/i,ds=/^(?=.{1,254}$)(?=.{1,64}@)[-!#$%&'*+/0-9=?A-Z^_`a-z{|}~]+(\.[-!#$%&'*+/0-9=?A-Z^_`a-z{|}~]+)*@[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])?)*$/,ps=/^\s*(-|\+)?(\d+|(\d*(\.\d*)))([eE][+-]?\d+)?\s*$/,dn=/^(\d{4,})-(\d{2})-(\d{2})$/,gs=/^(\d{4,})-(\d\d)-(\d\d)T(\d\d):(\d\d)(?::(\d\d)(\.\d{1,3})?)?$/,fs=/^(\d{4,})-W(\d\d)$/,ms=/^(\d{4,})-(\d\d)$/,ys=/^(\d\d):(\d\d)(?::(\d\d)(\.\d{1,3})?)?$/,bs=_e(),vs=(me(["date","datetime-local","month","time","week"],function(e){bs[e]=!0}),{text:function(e,t,i,n,r,s){ji(0,t,i,n,r,s),Fi(n)},date:Hi("date",dn,zi(dn,["yyyy","MM","dd"]),"yyyy-MM-dd"),"datetime-local":Hi("datetimelocal",gs,zi(gs,"yyyy MM dd HH mm ss sss".split(" ")),"yyyy-MM-ddTHH:mm:ss.sss"),time:Hi("time",ys,zi(ys,["HH","mm","ss","sss"]),"HH:mm:ss.sss"),week:Hi("week",fs,function(e,t){if(k(e))return e;if(xe(e)){fs.lastIndex=0;var i,n,r,s,a,o,e=fs.exec(e);if(e)return i=+e[1],o=+e[2],s=r=n=e=0,a=Ci(i),o=7*(o-1),t&&(e=t.getHours(),n=t.getMinutes(),r=t.getSeconds(),s=t.getMilliseconds()),new Date(i,0,a.getDate()+o,e,n,r,s)}return NaN},"yyyy-Www"),month:Hi("month",ms,zi(ms,["yyyy","MM"]),"yyyy-MM"),number:function(e,t,i,n,r,s,a,o){var l,c,h,u,d,p;Ui(0,t,0,n,"number"),qi(n),ji(0,t,i,n,r,s),(A(i.min)||i.ngMin)&&(l=i.min||o(i.ngMin)(e),c=g(l),n.$validators.min=function(e,t){return n.$isEmpty(t)||be(c)||c<=t},i.$observe("min",function(e){e!==l&&(c=g(e),l=e,n.$validate())})),(A(i.max)||i.ngMax)&&(h=i.max||o(i.ngMax)(e),u=g(h),n.$validators.max=function(e,t){return n.$isEmpty(t)||be(u)||t<=u},i.$observe("max",function(e){e!==h&&(u=g(e),h=e,n.$validate())})),(A(i.step)||i.ngStep)&&(d=i.step||o(i.ngStep)(e),p=g(d),n.$validators.step=function(e,t){return n.$isEmpty(t)||be(p)||Vi(t,c||0,p)},i.$observe("step",function(e){e!==d&&(p=g(e),d=e,n.$validate())}))},url:function(e,t,i,n,r,s){ji(0,t,i,n,r,s),Fi(n),n.$validators.url=function(e,t){e=e||t;return n.$isEmpty(e)||us.test(e)}},email:function(e,t,i,n,r,s){ji(0,t,i,n,r,s),Fi(n),n.$validators.email=function(e,t){e=e||t;return n.$isEmpty(e)||ds.test(e)}},radio:function(e,i,n,r){var s=!n.ngTrim||"false"!==$e(n.ngTrim);be(n.name)&&i.attr("name",++fn),i.on("change",function(e){var t;i[0].checked&&(t=n.value,s&&(t=$e(t)),r.$setViewValue(t,e&&e.type))}),r.$render=function(){var e=n.value;s&&(e=$e(e)),i[0].checked=e===r.$viewValue},n.$observe("value",r.$render)},range:function(e,n,r,i,t,s){function a(e,t){n.attr(e,r[e]);var i=r[e];r.$observe(e,function(e){e!==i&&t(i=e)})}Ui(0,n,0,i,"range"),qi(i),ji(0,n,r,i,t,s);var o=i.$$hasNativeValidators&&"range"===n[0].type,l=o?0:void 0,c=o?100:void 0,h=o?1:void 0,u=n[0].validity,d=(e=A(r.min),t=A(r.max),s=A(r.step),i.$render);i.$render=o&&A(u.rangeUnderflow)&&A(u.rangeOverflow)?function(){d(),i.$setViewValue(n.val())}:d,e&&(l=g(r.min),i.$validators.min=o?function(){return!0}:function(e,t){return i.$isEmpty(t)||be(l)||l<=t},a("min",function(e){l=g(e),R(i.$modelValue)||(o?((e=n.val())<l&&(e=l,n.val(e)),i.$setViewValue(e)):i.$validate())})),t&&(c=g(r.max),i.$validators.max=o?function(){return!0}:function(e,t){return i.$isEmpty(t)||be(c)||t<=c},a("max",function(e){c=g(e),R(i.$modelValue)||(o?(e=n.val(),c<e&&(n.val(c),e=c<l?l:c),i.$setViewValue(e)):i.$validate())})),s&&(h=g(r.step),i.$validators.step=o?function(){return!u.stepMismatch}:function(e,t){return i.$isEmpty(t)||be(h)||Vi(t,l||0,h)},a("step",function(e){h=g(e),R(i.$modelValue)||(o?i.$viewValue!==n.val()&&i.$setViewValue(n.val()):i.$validate())}))},checkbox:function(e,t,i,n,r,s,a,o){var l=Gi(o,e,"ngTrueValue",i.ngTrueValue,!0),c=Gi(o,e,"ngFalseValue",i.ngFalseValue,!1);t.on("change",function(e){n.$setViewValue(t[0].checked,e&&e.type)}),n.$render=function(){t[0].checked=n.$viewValue},n.$isEmpty=function(e){return!1===e},n.$formatters.push(function(e){return Se(e,l)}),n.$parsers.push(function(e){return e?l:c})},hidden:_,button:_,submit:_,reset:_,file:_}),xs=["$browser","$sniffer","$filter","$parse",function(r,s,a,o){return{restrict:"E",require:["?ngModel"],link:{pre:function(e,t,i,n){n[0]&&(vs[Ee(i.type)]||vs.text)(e,t,i,n[0],s,r,a,o)}}}}],ws=/^(true|false|\d+)$/,ks=["$compile",function(n){return{restrict:"AC",compile:function(e){return n.$$addBindingClass(e),function(e,t,i){n.$$addBindingInfo(t,i.ngBind),t=t[0],e.$watch(i.ngBind,function(e){t.textContent=Q(e)})}}}}],Ts=["$interpolate","$compile",function(n,r){return{compile:function(e){return r.$$addBindingClass(e),function(e,t,i){e=n(t.attr(i.$attr.ngBindTemplate)),r.$$addBindingInfo(t,e.expressions),t=t[0],i.$observe("ngBindTemplate",function(e){t.textContent=be(e)?"":e})}}}}],Ss=["$sce","$parse","$compile",function(s,i,a){return{restrict:"A",compile:function(e,t){var n=i(t.ngBindHtml),r=i(t.ngBindHtml,function(e){return s.valueOf(e)});return a.$$addBindingClass(e),function(t,i,e){a.$$addBindingInfo(i,e.ngBindHtml),t.$watch(r,function(){var e=n(t);i.html(s.getTrustedHtml(e)||"")})}}}}],_s=C({restrict:"A",require:"ngModel",link:function(e,t,i,n){n.$viewChangeListeners.push(function(){e.$eval(i.ngChange)})}}),Cs=Yi("",!0),As=Yi("Odd",0),Es=Yi("Even",1),$s=Ni({compile:function(e,t){t.$set("ngCloak",void 0),e.removeClass("ng-cloak")}}),Ls=[function(){return{restrict:"A",scope:!0,controller:"@",priority:500}}],Rs={},Ms={blur:!0,focus:!0},Is=(me("click dblclick mousedown mouseup mouseover mouseout mousemove mouseenter mouseleave keydown keyup keypress submit focus blur copy cut paste".split(" "),function(n){var r=Ce("ng-"+n);Rs[r]=["$parse","$rootScope","$exceptionHandler",function(e,t,i){return Xi(e,t,i,r,n,Ms[n])}]}),["$animate","$compile",function(l,c){return{multiElement:!0,transclude:"element",priority:600,terminal:!0,restrict:"A",$$tlb:!0,link:function(e,i,n,t,r){var s,a,o;e.$watch(n.ngIf,function(e){e?a||r(function(e,t){a=t,e[e.length++]=c.$$createComment("end ngIf",n.ngIf),s={clone:e},l.enter(e,i.parent(),i)}):(o&&(o.remove(),o=null),a&&(a.$destroy(),a=null),s&&(o=Z(s.clone),l.leave(o).done(function(e){!1!==e&&(o=null)}),s=null))})}}}]),Ns=["$templateRequest","$anchorScroll","$animate",function(f,m,y){return{restrict:"ECA",priority:400,terminal:!0,transclude:"element",controller:x.noop,compile:function(e,t){var i=t.ngInclude||t.src,p=t.onload||"",g=t.autoscroll;return function(s,a,e,o,l){function c(){t&&(t.remove(),t=null),h&&(h.$destroy(),h=null),u&&(y.leave(u).done(function(e){!1!==e&&(t=null)}),t=u,u=null)}var h,t,u,d=0;s.$watch(i,function(i){function n(e){!1===e||!A(g)||g&&!s.$eval(g)||m()}var r=++d;i?(f(i,!0).then(function(e){var t;s.$$destroyed||r!==d||(t=s.$new(),o.template=e,e=l(t,function(e){c(),y.enter(e,null,a).done(n)}),u=e,(h=t).$emit("$includeContentLoaded",i),s.$eval(p))},function(){s.$$destroyed||r!==d||(c(),s.$emit("$includeContentError",i))}),s.$emit("$includeContentRequested",i)):(c(),o.template=null)})}}}}],Ds=["$compile",function(r){return{restrict:"ECA",priority:-400,require:"ngInclude",link:function(e,t,i,n){b.call(t[0]).match(/SVG/)?(t.empty(),r(ie(n.template,fe.document).childNodes)(e,function(e){t.append(e)},{futureParentElement:t})):(t.html(n.template),r(t.contents())(e))}}}],Os=Ni({priority:450,compile:function(){return{pre:function(e,t,i){e.$eval(i.ngInit)}}}}),Ps="ng-valid",Bs="ng-invalid",Fs="ng-pristine",js="ng-dirty",zs=$("ngModel"),Hs=(Ki.$inject="$scope $exceptionHandler $attrs $element $parse $animate $timeout $q $interpolate".split(" "),Ki.prototype={$$initGetterSetters:function(){if(this.$options.getOption("getterSetter")){var i=this.$$parse(this.$$attr.ngModel+"()"),n=this.$$parse(this.$$attr.ngModel+"($$$p)");this.$$ngModelGet=function(e){var t=this.$$parsedNgModel(e);return t=ke(t)?i(e):t},this.$$ngModelSet=function(e,t){ke(this.$$parsedNgModel(e))?n(e,{$$$p:t}):this.$$parsedNgModelAssign(e,t)}}else if(!this.$$parsedNgModel.assign)throw zs("nonassign",this.$$attr.ngModel,Be(this.$$element))},$render:_,$isEmpty:function(e){return be(e)||""===e||null===e||e!=e},$$updateEmptyClasses:function(e){this.$isEmpty(e)?(this.$$animate.removeClass(this.$$element,"ng-not-empty"),this.$$animate.addClass(this.$$element,"ng-empty")):(this.$$animate.removeClass(this.$$element,"ng-empty"),this.$$animate.addClass(this.$$element,"ng-not-empty"))},$setPristine:function(){this.$dirty=!1,this.$pristine=!0,this.$$animate.removeClass(this.$$element,js),this.$$animate.addClass(this.$$element,Fs)},$setDirty:function(){this.$dirty=!0,this.$pristine=!1,this.$$animate.removeClass(this.$$element,Fs),this.$$animate.addClass(this.$$element,js),this.$$parentForm.$setDirty()},$setUntouched:function(){this.$touched=!1,this.$untouched=!0,this.$$animate.setClass(this.$$element,"ng-untouched","ng-touched")},$setTouched:function(){this.$touched=!0,this.$untouched=!1,this.$$animate.setClass(this.$$element,"ng-touched","ng-untouched")},$rollbackViewValue:function(){this.$$timeout.cancel(this.$$pendingDebounce),this.$viewValue=this.$$lastCommittedViewValue,this.$render()},$validate:function(){var e,t,i,n,r,s;R(this.$modelValue)||(e=this.$$lastCommittedViewValue,t=this.$$rawModelValue,i=this.$valid,n=this.$modelValue,r=this.$options.getOption("allowInvalid"),(s=this).$$runValidators(t,e,function(e){r||i===e||(s.$modelValue=e?t:void 0,s.$modelValue!==n&&s.$$writeModelToScope())}))},$$runValidators:function(i,n,t){function r(e,t){c===h.$$currentValidationRunId&&h.$setValidity(e,t)}function e(e){c===h.$$currentValidationRunId&&t(e)}this.$$currentValidationRunId++;var s,a,o,l,c=this.$$currentValidationRunId,h=this;l=h.$$parserName,(be(h.$$parserValid)?(r(l,null),1):(h.$$parserValid||(me(h.$validators,function(e,t){r(t,null)}),me(h.$asyncValidators,function(e,t){r(t,null)})),r(l,h.$$parserValid),h.$$parserValid))&&(o=!0,me(h.$validators,function(e,t){e=Boolean(e(i,n));o=o&&e,r(t,e)}),o||(me(h.$asyncValidators,function(e,t){r(t,null)}),0))?(s=[],a=!0,me(h.$asyncValidators,function(e,t){e=e(i,n);if(!e||!ke(e.then))throw zs("nopromise",e);r(t,void 0),s.push(e.then(function(){r(t,!0)},function(){r(t,a=!1)}))}),s.length?h.$$q.all(s).then(function(){e(a)},_):e(!0)):e(!1)},$commitViewValue:function(){var e=this.$viewValue;this.$$timeout.cancel(this.$$pendingDebounce),(this.$$lastCommittedViewValue!==e||""===e&&this.$$hasNativeValidators)&&(this.$$updateEmptyClasses(e),this.$$lastCommittedViewValue=e,this.$pristine&&this.$setDirty(),this.$$parseAndValidate())},$$parseAndValidate:function(){var t=this.$$lastCommittedViewValue,i=this;if(this.$$parserValid=!be(t)||void 0,this.$setValidity(this.$$parserName,null),this.$$parserName="parse",this.$$parserValid)for(var e=0;e<this.$parsers.length;e++)if(be(t=this.$parsers[e](t))){this.$$parserValid=!1;break}R(this.$modelValue)&&(this.$modelValue=this.$$ngModelGet(this.$$scope));var n=this.$modelValue,r=this.$options.getOption("allowInvalid");this.$$rawModelValue=t,r&&(this.$modelValue=t,i.$modelValue!==n)&&i.$$writeModelToScope(),this.$$runValidators(t,this.$$lastCommittedViewValue,function(e){r||(i.$modelValue=e?t:void 0,i.$modelValue!==n&&i.$$writeModelToScope())})},$$writeModelToScope:function(){this.$$ngModelSet(this.$$scope,this.$modelValue),me(this.$viewChangeListeners,function(e){try{e()}catch(e){this.$$exceptionHandler(e)}},this)},$setViewValue:function(e,t){this.$viewValue=e,this.$options.getOption("updateOnDefault")&&this.$$debounceViewValueCommit(t)},$$debounceViewValueCommit:function(e){var t=this.$options.getOption("debounce"),i=(y(t[e])?t=t[e]:y(t.default)&&-1===this.$options.getOption("updateOn").indexOf(e)?t=t.default:y(t["*"])&&(t=t["*"]),this.$$timeout.cancel(this.$$pendingDebounce),this);0<t?this.$$pendingDebounce=this.$$timeout(function(){i.$commitViewValue()},t):this.$$rootScope.$$phase?this.$commitViewValue():this.$$scope.$apply(function(){i.$commitViewValue()})},$overrideModelOptions:function(e){this.$options=this.$options.createChild(e),this.$$setUpdateOnEvents()},$processModelValue:function(){var e=this.$$format();this.$viewValue!==e&&(this.$$updateEmptyClasses(e),this.$viewValue=this.$$lastCommittedViewValue=e,this.$render(),this.$$runValidators(this.$modelValue,this.$viewValue,_))},$$format:function(){for(var e=this.$formatters,t=e.length,i=this.$modelValue;t--;)i=e[t](i);return i},$$setModelValue:function(e){this.$modelValue=this.$$rawModelValue=e,this.$$parserValid=void 0,this.$processModelValue()},$$setUpdateOnEvents:function(){this.$$updateEvents&&this.$$element.off(this.$$updateEvents,this.$$updateEventHandler),(this.$$updateEvents=this.$options.getOption("updateOn"))&&this.$$element.on(this.$$updateEvents,this.$$updateEventHandler)},$$updateEventHandler:function(e){this.$$debounceViewValueCommit(e&&e.type)}},Pi({clazz:Ki,set:function(e,t){e[t]=!0},unset:function(e,t){delete e[t]}}),["$rootScope",function(a){return{restrict:"A",require:["ngModel","^?form","^?ngModelOptions"],controller:Ki,priority:1,compile:function(e){return e.addClass(Fs).addClass("ng-untouched").addClass(Ps),{pre:function(e,t,i,n){var r=n[0];t=n[1]||r.$$parentForm,(n=n[2])&&(r.$options=n.$options),r.$$initGetterSetters(),t.$addControl(r),i.$observe("name",function(e){r.$name!==e&&r.$$parentForm.$$renameControl(r,e)}),e.$on("$destroy",function(){r.$$parentForm.$removeControl(r)})},post:function(e,t,i,n){function r(){s.$setTouched()}var s=n[0];s.$$setUpdateOnEvents(),t.on("blur",function(){s.$touched||(a.$$phase?e.$evalAsync(r):e.$apply(r))})}}}}}]),Us=/(\s+|^)default(\s+|$)/,qs=(Zi.prototype={getOption:function(e){return this.$$options[e]},createChild:function(i){var n=!1;return me(i=ye({},i),function(e,t){"$inherit"===e?"*"===t?n=!0:(i[t]=this.$$options[t],"updateOn"===t&&(i.updateOnDefault=this.$$options.updateOnDefault)):"updateOn"===t&&(i.updateOnDefault=!1,i[t]=$e(e.replace(Us,function(){return i.updateOnDefault=!0," "})))},this),n&&(delete i["*"],Qi(i,this.$$options)),Qi(i,lr.$$options),new Zi(i)}},lr=new Zi({updateOn:"",updateOnDefault:!0,debounce:0,getterSetter:!1,allowInvalid:!1,timezone:null}),Ni({terminal:!0,priority:1e3})),Ws=$("ngOptions"),Vs=/^\s*([\s\S]+?)(?:\s+as\s+([\s\S]+?))?(?:\s+group\s+by\s+([\s\S]+?))?(?:\s+disable\s+when\s+([\s\S]+?))?\s+for\s+(?:([$\w][$\w]*)|(?:\(\s*([$\w][$\w]*)\s*,\s*([$\w][$\w]*)\s*\)))\s+in\s+([\s\S]+?)(?:\s+track\s+by\s+([\s\S]+?))?$/,Gs=["$compile","$document","$parse",function(g,f,w){var m=fe.document.createElement("option"),y=fe.document.createElement("optgroup");return{restrict:"A",terminal:!0,require:["select","ngModel"],link:{pre:function(e,t,i,n){n[0].registerOption=_},post:function(e,r,t,i){function n(e){var t=(e=u.getOptionFromViewValue(e))&&e.element;return t&&!t.selected&&(t.selected=!0),e}function s(e,t){(e.element=t).disabled=e.disabled,e.label!==t.label&&(t.label=e.label,t.textContent=e.label),t.value=e.selectValue}var a=i[0],o=i[1],l=t.multiple;i=0;for(var c=r.children(),h=c.length;i<h;i++)if(""===c[i].value){a.hasEmptyOption=!0,a.emptyOption=c.eq(i);break}r.empty(),i=!!a.emptyOption,Ae(m.cloneNode(!1)).val("?");var u,d=function(e,t,c){function h(e,t,i,n,r){this.selectValue=e,this.viewValue=t,this.label=i,this.group=n,this.disabled=r}function u(e){var t;if(!n&&M(e))t=e;else for(var i in t=[],e)e.hasOwnProperty(i)&&"$"!==i.charAt(0)&&t.push(i);return t}var i,n,d,p,r,g,f,m,y,b,v,s,x,o=e.match(Vs);if(o)return i=o[5]||o[7],n=o[6],e=/ as /.test(o[0])&&o[1],d=o[9],t=w(o[2]?o[1]:i),p=e&&w(e)||t,r=d&&w(d),g=d?function(e,t){return r(c,t)}:function(e){return Ze(e)},f=function(e,t){return g(e,x(e,t))},m=w(o[2]||o[1]),y=w(o[3]||""),b=w(o[4]||""),v=w(o[8]),s={},x=n?function(e,t){return s[n]=t,s[i]=e,s}:function(e){return s[i]=e,s},{trackBy:d,getTrackByValue:f,getWatchables:w(v,function(e){for(var t=[],i=u(e=e||[]),n=i.length,r=0;r<n;r++){var s=e[a=e===i?r:i[r]],a=x(s,a),s=g(s,a);t.push(s),(o[2]||o[1])&&(s=m(c,a),t.push(s)),o[4]&&(a=b(c,a),t.push(a))}return t}),getOptions:function(){for(var e=[],t={},i=v(c)||[],n=u(i),r=n.length,s=0;s<r;s++){var a=i===n?s:n[s],o=x(i[a],a),l=p(c,o),l=new h(a=g(l,o),l,m(c,o),y(c,o),b(c,o));e.push(l),t[a]=l}return{items:e,selectValueMap:t,getOptionFromViewValue:function(e){return t[f(e)]},getViewValueFromOption:function(e){return d?N(e.viewValue):e.viewValue}}}};throw Ws("iexp",e,Be(t))}(t.ngOptions,r,e),p=f[0].createDocumentFragment();a.generateUnknownOptionValue=function(e){return"?"},l?(a.writeValue=function(e){var t;u&&(t=e&&e.map(n)||[],u.items.forEach(function(e){e.element.selected&&-1===Array.prototype.indexOf.call(t,e)&&(e.element.selected=!1)}))},a.readValue=function(){var e=r.val()||[],t=[];return me(e,function(e){(e=u.selectValueMap[e])&&!e.disabled&&t.push(u.getViewValueFromOption(e))}),t},d.trackBy&&e.$watchCollection(function(){if(we(o.$viewValue))return o.$viewValue.map(function(e){return d.getTrackByValue(e)})},function(){o.$render()})):(a.writeValue=function(e){var t,i;u&&(t=r[0].options[r[0].selectedIndex],i=u.getOptionFromViewValue(e),t&&t.removeAttribute("selected"),i?(r[0].value!==i.selectValue&&(a.removeUnknownOption(),r[0].value=i.selectValue,i.element.selected=!0),i.element.setAttribute("selected","selected")):a.selectUnknownOrEmptyOption(e))},a.readValue=function(){var e=u.selectValueMap[r.val()];return e&&!e.disabled?(a.unselectEmptyOption(),a.removeUnknownOption(),u.getViewValueFromOption(e)):null},d.trackBy&&e.$watch(function(){return d.getTrackByValue(o.$viewValue)},function(){o.$render()})),i&&(g(a.emptyOption)(e),r.prepend(a.emptyOption),8===a.emptyOption[0].nodeType?(a.hasEmptyOption=!1,a.registerOption=function(e,t){""===t.val()&&(a.hasEmptyOption=!0,a.emptyOption=t,a.emptyOption.removeClass("ng-scope"),o.$render(),t.on("$destroy",function(){var e=a.$isEmptyOptionSelected();a.hasEmptyOption=!1,a.emptyOption=void 0,e&&o.$render()}))}):a.emptyOption.removeClass("ng-scope")),e.$watchCollection(d.getWatchables,function(){var e=u&&a.readValue();if(u)for(var t=u.items.length-1;0<=t;t--){var i=u.items[t];A(i.group)?qe(i.element.parentNode):qe(i.element)}u=d.getOptions();var n={};u.items.forEach(function(e){var t,i;A(e.group)?((t=n[e.group])||(t=y.cloneNode(!1),p.appendChild(t),t.label=null===e.group?"null":e.group,n[e.group]=t),i=m.cloneNode(!1),t.appendChild(i),s(e,i)):(t=m.cloneNode(!1),p.appendChild(t),s(e,t))}),r[0].appendChild(p),o.$render(),o.$isEmpty(e)||(t=a.readValue(),d.trackBy||l?Se(e,t):e===t)||(o.$setViewValue(t),o.$render())})}}}}],Ys=["$locale","$interpolate","$log",function(g,f,m){var y=/{}/g,b=/^when(Minus)?(.+)$/;return{link:function(n,r,s){function a(e){r.text(e||"")}var o,e=s.count,l=s.$attr.when&&r.attr(s.$attr.when),c=s.offset||0,h=n.$eval(l)||{},u={},t=f.startSymbol(),i=f.endSymbol(),d=t+e+"-"+c+i,p=x.noop;me(s,function(e,t){var i=b.exec(t);i&&(i=(i[1]?"-":"")+Ee(i[2]),h[i]=r.attr(s.$attr[t]))}),me(h,function(e,t){u[t]=f(e.replace(y,d))}),n.$watch(e,function(e){var t=parseFloat(e),i=R(t);(t=i||t in h?t:g.pluralCat(t-c))===o||i&&R(o)||(p(),be(i=u[t])?(null!=e&&m.debug("ngPluralize: no rule defined for '"+t+"' in "+l),p=_,a()):p=n.$watch(i,a),o=t)})}}}],Xs=$("ngRef"),Ks=["$parse",function(t){return{priority:-1,restrict:"A",compile:function(e,r){var s=Ce(Te(e)),a=t(r.ngRef),o=a.assign||function(){throw Xs("nonassign",r.ngRef)};return function(e,t,i){var n;if(i.hasOwnProperty("ngRefRead")){if("$element"===i.ngRefRead)n=t;else if(!(n=t.data("$"+i.ngRefRead+"Controller")))throw Xs("noctrl",i.ngRefRead,r.ngRef)}else n=t.data("$"+s+"Controller");o(e,n=n||t),t.on("$destroy",function(){a(e)===n&&o(e,null)})}}}}],Zs=["$parse","$animate","$compile",function(a,S,o){function _(e,t,i,n,r,s,a){e[i]=n,r&&(e[r]=s),e.$index=t,e.$first=0===t,e.$last=t===a-1,e.$middle=!(e.$first||e.$last),e.$odd=!(e.$even=0==(1&t))}function C(e,t,i){return Ze(i)}function A(e,t){return t}var E=$("ngRepeat");return{restrict:"A",multiElement:!0,transclude:"element",priority:1e3,terminal:!0,$$tlb:!0,compile:function(e,t){var y=t.ngRepeat,b=o.$$createComment("end ngRepeat",y),t=y.match(/^\s*([\s\S]+?)\s+in\s+([\s\S]+?)(?:\s+as\s+([\s\S]+?))?(?:\s+track\s+by\s+([\s\S]+?))?\s*$/);if(!t)throw E("iexp",y);var i=t[1],n=t[2],v=t[3],r=t[4];if(!(t=i.match(/^(?:(\s*[$\w]+)|\(\s*([$\w]+)\s*,\s*([$\w]+)\s*\))$/)))throw E("iidexp",i);var x,s,w,k=t[3]||t[1],T=t[2];if(!v||/^[$a-zA-Z_][$a-zA-Z0-9_]*$/.test(v)&&!/^(null|undefined|this|\$index|\$first|\$middle|\$last|\$even|\$odd|\$parent|\$root|\$id)$/.test(v))return r&&(x={$id:Ze},s=a(r),w=function(e,t,i,n){return T&&(x[T]=t),x[k]=i,x.$index=n,s(e,x)}),function(p,g,e,t,f){var m=_e();p.$watchCollection(n,function(e){var i,t,n,r,s,a,o,l,c,h,u=g[0],d=_e();if(v&&(p[v]=e),M(e))l=e,t=w||C;else for(h in t=w||A,l=[],e)ln.call(e,h)&&"$"!==h.charAt(0)&&l.push(h);for(r=l.length,h=Array(r),i=0;i<r;i++)if(s=e===l?i:l[i],a=e[s],o=t(p,s,a,i),m[o])c=m[o],delete m[o],d[o]=c,h[i]=c;else{if(d[o])throw me(h,function(e){e&&e.scope&&(m[e.id]=e)}),E("dupes",y,o,a);h[i]={id:o,scope:void 0,clone:void 0},d[o]=!0}for(n in x&&(x[k]=void 0),m){if(o=Z((c=m[n]).clone),S.leave(o),o[0].parentNode)for(i=0,t=o.length;i<t;i++)o[i].$$NG_REMOVED=!0;c.scope.$destroy()}for(i=0;i<r;i++)if(s=e===l?i:l[i],a=e[s],(c=h[i]).scope){for(n=u;(n=n.nextSibling)&&n.$$NG_REMOVED;);c.clone[0]!==n&&S.move(Z(c.clone),null,u),u=c.clone[c.clone.length-1],_(c.scope,i,k,a,T,s,r)}else f(function(e,t){c.scope=t;t=b.cloneNode(!1);e[e.length++]=t,S.enter(e,null,u),u=t,c.clone=e,d[c.id]=c,_(c.scope,i,k,a,T,s,r)});m=d})};throw E("badident",v)}}}],Qs=["$animate",function(n){return{restrict:"A",multiElement:!0,link:function(e,t,i){e.$watch(i.ngShow,function(e){n[e?"removeClass":"addClass"](t,"ng-hide",{tempClasses:"ng-hide-animate"})})}}}],Js=["$animate",function(n){return{restrict:"A",multiElement:!0,link:function(e,t,i){e.$watch(i.ngHide,function(e){n[e?"addClass":"removeClass"](t,"ng-hide",{tempClasses:"ng-hide-animate"})})}}}],ea=Ni(function(e,i,t){e.$watchCollection(t.ngStyle,function(e,t){t&&e!==t&&me(t,function(e,t){i.css(t,"")}),e&&i.css(e)})}),ta=["$animate","$compile",function(c,h){return{require:"ngSwitch",controller:["$scope",function(){this.cases={}}],link:function(e,t,i,r){var s,a=[],o=[],l=[];e.$watch(i.ngSwitch||i.on,function(e){for(var t,i;o.length;)c.cancel(o.pop());for(t=0,i=l.length;t<i;++t){var n=Z(a[t].clone);l[t].$destroy(),(o[t]=c.leave(n)).done(function(t,i){return function(e){!1!==e&&t.splice(i,1)}}(o,t))}a.length=0,l.length=0,(s=r.cases["!"+e]||r.cases["?"])&&me(s,function(i){i.transclude(function(e,t){l.push(t);t=i.element;e[e.length++]=h.$$createComment("end ngSwitchWhen"),a.push({clone:e}),c.enter(e,t.parent(),t)})})})}}}],ia=Ni({transclude:"element",priority:1200,require:"^ngSwitch",multiElement:!0,link:function(e,t,i,n,r){me(i.ngSwitchWhen.split(i.ngSwitchWhenSeparator).sort().filter(function(e,t,i){return i[t-1]!==e}),function(e){n.cases["!"+e]=n.cases["!"+e]||[],n.cases["!"+e].push({transclude:r,element:t})})}}),na=Ni({transclude:"element",priority:1200,require:"^ngSwitch",multiElement:!0,link:function(e,t,i,n,r){n.cases["?"]=n.cases["?"]||[],n.cases["?"].push({transclude:r,element:t})}}),ra=$("ngTransclude"),sa=["$compile",function(t){return{restrict:"EAC",compile:function(e){var r=t(e.contents());return e.empty(),function(e,s,t,i,n){function a(){r(e,function(e){s.append(e)})}if(!n)throw ra("orphan",Be(s));t.ngTransclude===t.$attr.ngTransclude&&(t.ngTransclude=""),n(function(e,t){if(i=e.length)e:{for(var i=0,n=e.length;i<n;i++){var r=e[i];if(r.nodeType!==Cn||r.nodeValue.trim()){i=!0;break e}}i=void 0}i?s.append(e):(a(),t.$destroy())},null,t=t.ngTransclude||t.ngTranscludeSlot),t&&!n.isSlotFilled(t)&&a()}}}}],aa=["$templateCache",function(i){return{restrict:"E",terminal:!0,compile:function(e,t){"text/ng-template"===t.type&&i.put(t.id,e[0].text)}}}],oa={$setViewValue:_,$render:_},la=["$element","$scope",function(i,t){function o(){e||(e=!0,t.$$postDigest(function(){e=!1,c.ngModelCtrl.$render()}))}function l(e){r||(r=!0,t.$$postDigest(function(){t.$$destroyed||(r=!1,c.ngModelCtrl.$setViewValue(c.readValue()),e&&c.ngModelCtrl.$render())}))}var c=this,n=new pr,e=(c.selectValueMap={},c.ngModelCtrl=oa,c.multiple=!1,c.unknownOption=Ae(fe.document.createElement("option")),c.hasEmptyOption=!1,c.emptyOption=void 0,c.renderUnknownOption=function(e){e=c.generateUnknownOptionValue(e),c.unknownOption.val(e),i.prepend(c.unknownOption),Ji(c.unknownOption,!0),i.val(e)},c.updateUnknownOption=function(e){e=c.generateUnknownOptionValue(e),c.unknownOption.val(e),Ji(c.unknownOption,!0),i.val(e)},c.generateUnknownOptionValue=function(e){return"? "+Ze(e)+" ?"},c.removeUnknownOption=function(){c.unknownOption.parent()&&c.unknownOption.remove()},c.selectEmptyOption=function(){c.emptyOption&&(i.val(""),Ji(c.emptyOption,!0))},c.unselectEmptyOption=function(){c.hasEmptyOption&&Ji(c.emptyOption,!1)},t.$on("$destroy",function(){c.renderUnknownOption=_}),c.readValue=function(){var e=(e=i.val())in c.selectValueMap?c.selectValueMap[e]:e;return c.hasOption(e)?e:null},c.writeValue=function(e){var t=i[0].options[i[0].selectedIndex];t&&Ji(Ae(t),!1),c.hasOption(e)?(c.removeUnknownOption(),t=Ze(e),i.val(t in c.selectValueMap?t:e),Ji(Ae(i[0].options[i[0].selectedIndex]),!0)):c.selectUnknownOrEmptyOption(e)},c.addOption=function(e,t){8!==t[0].nodeType&&(K(e,'"option value"'),""===e&&(c.hasEmptyOption=!0,c.emptyOption=t),t=n.get(e)||0,n.set(e,t+1),o())},c.removeOption=function(e){var t=n.get(e);t&&(1===t?(n.delete(e),""===e&&(c.hasEmptyOption=!1,c.emptyOption=void 0)):n.set(e,t-1))},c.hasOption=function(e){return!!n.get(e)},c.$hasEmptyOption=function(){return c.hasEmptyOption},c.$isUnknownOptionSelected=function(){return i[0].options[0]===c.unknownOption[0]},c.$isEmptyOptionSelected=function(){return c.hasEmptyOption&&i[0].options[i[0].selectedIndex]===c.emptyOption[0]},!(c.selectUnknownOrEmptyOption=function(e){null==e&&c.emptyOption?(c.removeUnknownOption(),c.selectEmptyOption()):c.unknownOption.parent().length?c.updateUnknownOption(e):c.renderUnknownOption(e)})),r=!1;c.registerOption=function(e,n,r,t,i){var s,a;r.$attr.ngValue?r.$observe("value",function(e){var t,i=n.prop("selected");A(a)&&(c.removeOption(s),delete c.selectValueMap[a],t=!0),a=Ze(e),s=e,c.selectValueMap[a]=e,c.addOption(e,n),n.attr("value",a),t&&i&&l()}):t?r.$observe("value",function(e){c.readValue();var t,i=n.prop("selected");A(s)&&(c.removeOption(s),t=!0),s=e,c.addOption(e,n),t&&i&&l()}):i?e.$watch(i,function(e,t){r.$set("value",e);var i=n.prop("selected");t!==e&&c.removeOption(t),c.addOption(e,n),t&&i&&l()}):c.addOption(r.value,n),r.$observe("disabled",function(e){("true"===e||e&&n.prop("selected"))&&(c.multiple?l(!0):(c.ngModelCtrl.$setViewValue(null),c.ngModelCtrl.$render()))}),n.on("$destroy",function(){var e=c.readValue(),t=r.value;c.removeOption(t),o(),(c.multiple&&e&&-1!==e.indexOf(t)||e===t)&&l(!0)})}}],ca=["$interpolate",function(i){return{restrict:"E",priority:100,compile:function(e,t){var r,s;return A(t.ngValue)||(A(t.value)?r=i(t.value,!0):(s=i(e.text(),!0))||t.$set("value",e.text())),function(e,t,i){var n=t.parent();(n=n.data("$selectController")||n.parent().data("$selectController"))&&n.registerOption(e,t,i,r,s)}}}}],ha=["$parse",function(s){return{restrict:"A",require:"?ngModel",link:function(e,t,i,n){var r;n&&(r=i.hasOwnProperty("required")||s(i.ngRequired)(e),i.ngRequired||(i.required=!0),n.$validators.required=function(e,t){return!r||!n.$isEmpty(t)},i.$observe("required",function(e){r!==e&&(r=e,n.$validate())}))}}}],ua=["$parse",function(i){return{restrict:"A",require:"?ngModel",compile:function(e,t){var a,o;return t.ngPattern&&(a=t.ngPattern,o="/"===t.ngPattern.charAt(0)&&on.test(t.ngPattern)?function(){return t.ngPattern}:i(t.ngPattern)),function(e,i,t,n){var r,s;n&&(r=t.pattern,t.ngPattern?r=o(e):a=t.pattern,s=en(r,a,i),t.$observe("pattern",function(e){var t=s;s=en(e,a,i),(t&&t.toString())!==(s&&s.toString())&&n.$validate()}),n.$validators.pattern=function(e,t){return n.$isEmpty(t)||be(s)||s.test(t)})}}}}],da=["$parse",function(a){return{restrict:"A",require:"?ngModel",link:function(e,t,i,n){var r,s;n&&(r=i.maxlength||a(i.ngMaxlength)(e),s=tn(r),i.$observe("maxlength",function(e){r!==e&&(s=tn(e),r=e,n.$validate())}),n.$validators.maxlength=function(e,t){return s<0||n.$isEmpty(t)||t.length<=s})}}}],pa=["$parse",function(a){return{restrict:"A",require:"?ngModel",link:function(e,t,i,n){var r,s;n&&(r=i.minlength||a(i.ngMinlength)(e),s=tn(r)||-1,i.$observe("minlength",function(e){r!==e&&(s=tn(e)||-1,r=e,n.$validate())}),n.$validators.minlength=function(e,t){return n.$isEmpty(t)||t.length>=s})}}}];function ga(e,t,i){return e[t]||(e[t]=i())}fe.angular.bootstrap?fe.console&&console.log("WARNING: Tried to load AngularJS more than once."):(_n||(dn=xn(),(gs=be(dn)?fe.jQuery:dn?fe[dn]:void 0)&&gs.fn.on?ye((Ae=gs).fn,{scope:Un.scope,isolateScope:Un.isolateScope,controller:Un.controller,injector:Un.injector,inheritedData:Un.inheritedData}):Ae=l,ur=Ae.cleanData,Ae.cleanData=function(e){for(var t,i,n=0;null!=(i=e[n]);n++)(t=(Ae._data(i)||{}).events)&&t.$destroy&&Ae(i).triggerHandler("$destroy");ur(e)},x.element=Ae,_n=!0),ye(ys=x,{errorHandlingConfig:i,bootstrap:W,copy:N,extend:ye,merge:n,equals:Se,element:Ae,forEach:me,injector:et,noop:_,bind:Pe,toJson:r,fromJson:P,identity:Me,isUndefined:be,isDefined:A,isString:xe,isFunction:ke,isObject:ve,isNumber:y,isElement:I,isArray:we,version:An,isDate:k,callbacks:{$$counter:0},getTestability:G,reloadWithDebugInfo:V,UNSAFE_restoreLegacyJqLiteXHTMLReplacement:Y,$$minErr:$,$$csp:vn,$$encodeUriSegment:U,$$encodeUriQuery:s,$$lowercase:Ee,$$stringify:Q,$$uppercase:cn}),ys=fe,cr=$("$injector"),hr=$("ng"),(ys=ga(ys,"angular",Object)).$$minErr=ys.$$minErr||$,(nn=ga(ys,"module",function(){var e={};return function(o,l,c){var h={};if("hasOwnProperty"===o)throw hr("badname","module");return l&&e.hasOwnProperty(o)&&(e[o]=null),ga(e,o,function(){function e(e,t,i,n){return n=n||s,function(){return n[i||"push"]([e,t,arguments]),a}}function t(i,n,r){return r=r||s,function(e,t){return t&&ke(t)&&(t.$$moduleName=o),r.push([i,n,arguments]),a}}var s,i,n,r,a;if(l)return s=[],r=e("$injector","invoke","push",i=[]),a={_invokeQueue:s,_configBlocks:i,_runBlocks:n=[],info:function(e){if(A(e)){if(ve(e))return h=e,this;throw hr("aobj","value")}return h},requires:l,name:o,provider:t("$provide","provider"),factory:t("$provide","factory"),service:t("$provide","service"),value:e("$provide","value"),constant:e("$provide","constant","unshift"),decorator:t("$provide","decorator",i),animation:t("$animateProvider","register"),filter:t("$filterProvider","register"),controller:t("$controllerProvider","register"),directive:t("$compileProvider","directive"),component:t("$compileProvider","component"),config:r,run:function(e){return n.push(e),this}},c&&r(c),a;throw cr("nomod",o)})}}))("ng",["ngLocale"],["$provide",function(e){e.provider({$$sanitizeUri:ni}),e.provider("$compile",lt).directive({a:ss,input:xs,textarea:xs,form:ls,script:aa,select:ar,option:ca,ngBind:ks,ngBindHtml:Ss,ngBindTemplate:Ts,ngClass:Cs,ngClassEven:Es,ngClassOdd:As,ngCloak:$s,ngController:Ls,ngForm:cs,ngHide:Js,ngIf:Is,ngInclude:Ns,ngInit:Os,ngNonBindable:qs,ngPluralize:Ys,ngRef:Ks,ngRepeat:Zs,ngShow:Qs,ngStyle:ea,ngSwitch:ta,ngSwitchWhen:ia,ngSwitchDefault:na,ngOptions:Gs,ngTransclude:sa,ngModel:Hs,ngList:rr,ngChange:_s,pattern:ua,ngPattern:ua,required:ha,ngRequired:ha,minlength:pa,ngMinlength:pa,maxlength:da,ngMaxlength:da,ngValue:nr,ngModelOptions:sr}).directive({ngInclude:Ds,input:ir}).directive(as).directive(Rs),e.provider({$anchorScroll:tt,$animate:kr,$animateCss:Qn,$$animateJs:Yn,$$animateQueue:Xn,$$AnimateRunner:Zn,$$animateAsyncRun:Kn,$browser:st,$cacheFactory:at,$controller:dt,$document:pt,$$isDocumentHidden:gt,$exceptionHandler:ft,$filter:yi,$$forceReflow:Jn,$interpolate:Ct,$interval:At,$$intervalFactory:Et,$http:Tt,$httpParamSerializer:yt,$httpParamSerializerJQLike:bt,$httpBackend:_t,$xhrFactory:St,$jsonpCallbacks:er,$location:Ft,$log:jt,$parse:Zt,$rootScope:ii,$q:Qt,$$q:Jt,$sce:ai,$sceDelegate:si,$sniffer:oi,$$taskTrackerFactory:li,$templateCache:ot,$templateRequest:hi,$$testability:ui,$timeout:di,$window:gi,$$rAF:ti,$$jqLite:Ke,$$Map:gr,$$cookieReader:mi})}]).info({angularVersion:"1.8.2"}),x.module("ngLocale",[],["$provide",function(e){e.value("$locale",{DATETIME_FORMATS:{AMPMS:["AM","PM"],DAY:"Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),ERANAMES:["Before Christ","Anno Domini"],ERAS:["BC","AD"],FIRSTDAYOFWEEK:6,MONTH:"January February March April May June July August September October November December".split(" "),SHORTDAY:"Sun Mon Tue Wed Thu Fri Sat".split(" "),SHORTMONTH:"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" "),STANDALONEMONTH:"January February March April May June July August September October November December".split(" "),WEEKENDRANGE:[5,6],fullDate:"EEEE, MMMM d, y",longDate:"MMMM d, y",medium:"MMM d, y h:mm:ss a",mediumDate:"MMM d, y",mediumTime:"h:mm:ss a",short:"M/d/yy h:mm a",shortDate:"M/d/yy",shortTime:"h:mm a"},NUMBER_FORMATS:{CURRENCY_SYM:"$",DECIMAL_SEP:".",GROUP_SEP:",",PATTERNS:[{gSize:3,lgSize:3,maxFrac:3,minFrac:0,minInt:1,negPre:"-",negSuf:"",posPre:"",posSuf:""},{gSize:3,lgSize:3,maxFrac:2,minFrac:2,minInt:1,negPre:"-¤",negSuf:"",posPre:"¤",posSuf:""}]},id:"en-us",localeID:"en_US",pluralCat:function(e,t){var i,n=0|e;return void 0===t&&(t=Math.min((e=e,-1==(i=(e+="").indexOf("."))?0:e.length-i-1),3)),Math.pow(10,t),1==n&&0==t?"one":"other"}})}]),Ae(function(){q(fe.document,W)}))}(window),window.angular.$$csp().noInlineStyle||window.angular.element(document.head).prepend(window.angular.element("<style>").text('@charset "UTF-8";[ng\\:cloak],[ng-cloak],[data-ng-cloak],[x-ng-cloak],.ng-cloak,.x-ng-cloak,.ng-hide:not(.ng-hide-animate){display:none !important;}ng\\:form{display:block;}.ng-animate-shim{visibility:hidden;}.ng-anchor{position:absolute;}')),!function(e){"function"==typeof define&&define.amd?define([],e):"object"==typeof module&&module.exports?module.exports=e():e()}(function(){function e(t){"use strict";function e(){var e=t.preferredLanguage();angular.isString(e)?t.use(e):n.put(i,t.use())}var i=t.storageKey(),n=t.storage();e.displayName="fallbackFromIncorrectStorageValue",n?n.get(i)?t.use(n.get(i)).catch(e):e():angular.isString(t.preferredLanguage())&&t.use(t.preferredLanguage())}function t(e,s,a,r){"use strict";function t(){if(angular.isFunction(r.getLocale))return r.getLocale();var e,t,i=s.$get().navigator,n=["language","browserLanguage","systemLanguage","userLanguage"];if(angular.isArray(i.languages))for(e=0;e<i.languages.length;e++)if((t=i.languages[e])&&t.length)return t;for(e=0;e<n.length;e++)if((t=i[n[e]])&&t.length)return t;return null}function M(){var e=t()||"";return e=o[n]?o[n](e):e}function I(e,t){for(var i=0,n=e.length;i<n;i++)if(e[i]===t)return i;return-1}function N(){return this.toString().replace(/^\s+|\s+$/g,"")}function c(e){return angular.isString(e)?e.toLowerCase():e}function D(e){if(e){for(var t,i=[],n=c(e),r=0,s=Q.length;r<s;r++)i.push(c(Q[r]));if(-1<(r=I(i,n)))return Q[r];if(h)for(var a in h)if(h.hasOwnProperty(a)){var o=!1,l=Object.prototype.hasOwnProperty.call(h,a)&&c(a)===c(e);if("*"===a.slice(-1)&&(o=c(a.slice(0,-1))===c(e.slice(0,a.length-1))),(l||o)&&(t=h[a],-1<I(i,c(t))))return t}n=e.split("_");return 1<n.length&&-1<I(i,c(n[0]))?n[0]:void 0}}function O(e,t){if(!e&&!t)return Z;if(e&&!t){if(angular.isString(e))return Z[e]}else angular.isObject(Z[e])||(Z[e]={}),angular.extend(Z[e],oe(t));return this}function P(e){return e?(J=e,this):i?i+J:J}var B,h,F,j,z,H,U,i,q,W,V,G,Y,X,K,le,Z={},Q=[],J=e,ee=[],te="translate-cloak",ce=!1,ie=!1,ne=".",re=!1,he=!1,se=0,ae=!0,n="default",o={default:function(e){return(e||"").split("-").join("_")},java:function(e){var e=(e||"").split("-").join("_"),t=e.split("_");return 1<t.length?t[0].toLowerCase()+"_"+t[1].toUpperCase():e},bcp47:function(e){var t=(e||"").split("_").join("-"),i=t.split("-");switch(i.length){case 1:i[0]=i[0].toLowerCase();break;case 2:i[0]=i[0].toLowerCase(),4===i[1].length?i[1]=i[1].charAt(0).toUpperCase()+i[1].slice(1).toLowerCase():i[1]=i[1].toUpperCase();break;case 3:i[0]=i[0].toLowerCase(),i[1]=i[1].charAt(0).toUpperCase()+i[1].slice(1).toLowerCase(),i[2]=i[2].toUpperCase();break;default:return t}return i.join("-")},"iso639-1":function(e){return(e||"").split("_").join("-").split("-")[0].toLowerCase()}},oe=(t.displayName="angular-translate/service: getFirstBrowserLanguage",M.displayName="angular-translate/service: getLocale",this.translations=O,this.cloakClassName=function(e){return e?(te=e,this):te},this.nestedObjectDelimeter=function(e){return e?(ne=e,this):ne},function(e,t,i,n){var r,s,a;for(r in t=t||[],i=i||{},e)Object.prototype.hasOwnProperty.call(e,r)&&(a=e[r],angular.isObject(a)?oe(a,t.concat(r),i,r):(s=t.length?""+t.join(ne)+ne+r:r,t.length&&r===n&&(i[""+t.join(ne)]="@:"+s),i[s]=a));return i}),ue=(oe.displayName="flatObject",this.addInterpolation=function(e){return ee.push(e),this},this.useMessageFormatInterpolation=function(){return this.useInterpolation("$translateMessageFormatInterpolation")},this.useInterpolation=function(e){return W=e,this},this.useSanitizeValueStrategy=function(e){return a.useStrategy(e),this},this.preferredLanguage=function(e){return e?(ue(e),this):B},function(e){return B=e?e:B}),de=(this.translationNotFoundIndicator=function(e){return this.translationNotFoundIndicatorLeft(e),this.translationNotFoundIndicatorRight(e),this},this.translationNotFoundIndicatorLeft=function(e){return e?(Y=e,this):Y},this.translationNotFoundIndicatorRight=function(e){return e?(X=e,this):X},this.fallbackLanguage=function(e){return de(e),this},function(e){return e?(angular.isString(e)?(j=!0,F=[e]):angular.isArray(e)&&(j=!1,F=e),angular.isString(B)&&I(F,B)<0&&F.push(B),this):j?F[0]:F});this.use=function(e){if(e){if(Z[e]||V)return z=e,this;throw new Error("$translateProvider couldn't find translationTable for langKey: '"+e+"'")}return z},this.resolveClientLocale=M;this.storageKey=P,this.useUrlLoader=function(e,t){return this.useLoader("$translateUrlLoader",angular.extend({url:e},t))},this.useStaticFilesLoader=function(e){return this.useLoader("$translateStaticFilesLoader",e)},this.useLoader=function(e,t){return V=e,G=t||{},this},this.useLocalStorage=function(){return this.useStorage("$translateLocalStorage")},this.useCookieStorage=function(){return this.useStorage("$translateCookieStorage")},this.useStorage=function(e){return U=e,this},this.storagePrefix=function(e){return e&&(i=e,this)},this.useMissingTranslationHandlerLog=function(){return this.useMissingTranslationHandler("$translateMissingTranslationHandlerLog")},this.useMissingTranslationHandler=function(e){return q=e,this},this.usePostCompiling=function(e){return ce=!!e,this},this.forceAsyncReload=function(e){return ie=!!e,this},this.uniformLanguageTag=function(e){return e?angular.isString(e)&&(e={standard:e}):e={},n=e.standard,this},this.determinePreferredLanguage=function(e){e=(e&&angular.isFunction(e)?e:M)();return B=Q.length&&D(e)||e,this},this.registerAvailableLanguageKeys=function(e,t){return e?(Q=e,t&&(h=t),this):Q},this.useLoaderCache=function(e){return!1===e?K=void 0:!0===e?K=!0:void 0===e?K="$translationCache":e&&(K=e),this},this.directivePriority=function(e){return void 0===e?se:(se=e,this)},this.statefulFilter=function(e){return void 0===e?ae:(ae=e,this)},this.postProcess=function(e){return le=e||void 0,this},this.keepContent=function(e){return he=!!e,this},this.$get=["$log","$injector","$rootScope","$q",function(e,o,s,f){function a(e){function t(e,t){u[t].setLocale(z)}z=e,U&&m.put(w.storageKey(),z),s.$emit("$translateChangeSuccess",{language:e}),b.setLocale(z),t.displayName="eachInterpolatorLocaleSetter",angular.forEach(u,t),s.$emit("$translateChangeEnd",{language:e})}var m,y,h,t,b=o.get(W||"$translateDefaultInterpolation"),v=!1,u={},x={},w=function(e,n,r,s,a,o){!z&&B&&(z=B);var t=a&&a!==z?D(a)||a:z;if(a&&A(a),angular.isArray(e)){for(var i=e,l={},c=[],h=0,u=i.length;h<u;h++)c.push(function(t){function e(e){l[t]=e,i.resolve([t,e])}var i=f.defer();return w(t,n,r,s,a,o).then(e,e),i.promise}(i[h]));return f.all(c).then(function(){return l})}var d=f.defer();if(!e)throw new TypeError("translationId must be a not empty string");e=N.apply(e);p=x[t]||x[B],y=0,U&&!p&&(g=m.get(J),p=x[g],F)&&F.length&&(g=I(F,g),y=0===g?1:0,I(F,B)<0)&&F.push(B);var p,g=p;return g?((p=function(){S(e,n,r,s,t=a?t:z,o).then(d.resolve,d.reject)}).displayName="promiseResolved",g.finally(p).catch(angular.noop)):S(e,n,r,s,t,o).then(d.resolve,d.reject),d.promise},k=function(e){return Y&&(e=[Y,e].join(" ")),e=X?[e,X].join(" "):e},l=function(i){var n,e,t,r;if(i)return n=f.defer(),s.$emit("$translateLoadingStart",{language:i}),v=!0,"string"==typeof(e=K)&&(e=o.get(e)),e=angular.extend({},G,{key:i,$http:angular.extend({},{cache:e},G.$http)}),(t=function(e){var t={};s.$emit("$translateLoadingSuccess",{language:i}),angular.isArray(e)?angular.forEach(e,function(e){angular.extend(t,oe(e))}):angular.extend(t,oe(e)),v=!1,n.resolve({key:i,table:t}),s.$emit("$translateLoadingEnd",{language:i})}).displayName="onLoaderSuccess",(r=function(e){s.$emit("$translateLoadingError",{language:e}),n.reject(e),s.$emit("$translateLoadingEnd",{language:e})}).displayName="onLoaderError",o.get(V)(e).then(t,r),n.promise;throw"No language key specified for loading."};if(U&&(!(m=o.get(U)).get||!m.put))throw new Error("Couldn't use storage '"+U+"', missing get() or put() method!");ee.length&&((t=function(e){e=o.get(e);e.setLocale(B||z),u[e.getInterpolationIdentifier()]=e}).displayName="interpolationFactoryAdder",angular.forEach(ee,t));function d(i,n,r,s,a){function e(e){var t;Object.prototype.hasOwnProperty.call(e,n)&&null!==e[n]?(s.setLocale(i),"@:"===(t=e[n]).substr(0,2)?d(i,t.substr(2),r,s,a).then(c.resolve,c.reject):(t=s.interpolate(e[n],r,"service",a,n),t=C(n,e[n],t,r,i),c.resolve(t)),s.setLocale(z)):c.reject()}var t,o,l,c=f.defer();return e.displayName="fallbackTranslationResolver",t=i,l=f.defer(),Object.prototype.hasOwnProperty.call(Z,t)?l.resolve(Z[t]):x[t]?((o=function(e){O(e.key,e.table),l.resolve(e.table)}).displayName="translationTableResolver",x[t].then(o,l.reject)):l.reject(),l.promise.then(e,c.reject),c.promise}function c(e,t,i,n,r){var s,a=Z[e];if(a&&Object.prototype.hasOwnProperty.call(a,t)&&null!==a[t]){if(n.setLocale(e),s=n.interpolate(a[t],i,"filter",r,t),s=C(t,a[t],s,i,e,r),!angular.isString(s)&&angular.isFunction(s.$$unwrapTrustedValue)){a=s.$$unwrapTrustedValue();if("@:"===a.substr(0,2))return c(e,a.substr(2),i,n,r)}else if("@:"===s.substr(0,2))return c(e,s.substr(2),i,n,r);n.setLocale(z)}return s}function p(e,t,i,n,r,s){var a,o=f.defer();return e<F.length?(a=F[e],d(a,t,i,n,s).then(function(e){o.resolve(e)},function(){return p(e+1,t,i,n,r,s).then(o.resolve,o.reject)})):r?o.resolve(r):(a=T(t,i,r),q&&a?o.resolve(a):o.reject(k(t))),o.promise}var T=function(e,t,i,n){return q?o.get(q)(e,z,t,i,n):e},g=function(e,t,i,n,r){var s;return e<F.length&&(s=F[e],(s=c(s,t,i,n,r))||""===s||(s=g(e+1,t,i,n))),s},S=function(e,t,i,n,r,s){var a,o=f.defer(),l=r?Z[r]:Z,c=i?u[i]:b;return l&&Object.prototype.hasOwnProperty.call(l,e)&&null!==l[e]?"@:"===(l=l[e]).substr(0,2)?w(l.substr(2),t,i,n,r,s).then(o.resolve,o.reject):(i=c.interpolate(l,t,"service",s,e),i=C(e,l,i,t,r),o.resolve(i)):(q&&!v&&(a=T(e,t,n)),r&&F&&F.length?p(0<h?h:y,e,t,c,n,s).then(function(e){o.resolve(e)},function(e){o.reject(k(e))}):q&&!v&&a?n?o.resolve(n):o.resolve(a):n?o.resolve(n):o.reject(k(e))),o.promise},_=function(e,t,i,n,r){var s,a,o=n?Z[n]:Z,l=b;return u&&Object.prototype.hasOwnProperty.call(u,i)&&(l=u[i]),s=o&&Object.prototype.hasOwnProperty.call(o,e)&&null!==o[e]?"@:"===(o=o[e]).substr(0,2)?_(o.substr(2),t,i,n,r):(s=l.interpolate(o,t,"filter",r,e),C(e,o,s,t,n,r)):(q&&!v&&(a=T(e,t,r)),n&&F&&F.length?g((y=0)<h?h:y,e,t,l,r):q&&!v&&a?a:k(e))},C=function(e,t,i,n,r,s){var a=le;return a&&(a="string"==typeof a?o.get(a):a)?a(e,t,i,n,r,s):i},A=function(e){Z[e]||!V||x[e]||(x[e]=l(e).then(function(e){return O(e.key,e.table),e}))},i=(w.preferredLanguage=function(e){return e&&ue(e),B},w.cloakClassName=function(){return te},w.nestedObjectDelimeter=function(){return ne},w.fallbackLanguage=function(e){if(null!=e){if(de(e),V&&F&&F.length)for(var t=0,i=F.length;t<i;t++)x[F[t]]||(x[F[t]]=l(F[t]));w.use(w.use())}return j?F[0]:F},w.useFallbackLanguage=function(e){null!=e&&(e?-1<(e=I(F,e))&&(h=e):h=0)},w.proposedLanguage=function(){return H},w.storage=function(){return m},w.negotiateLocale=D,w.use=function(t){var i,e;return t?((i=f.defer()).promise.then(null,angular.noop),s.$emit("$translateChangeStart",{language:t}),e=D(t),0<Q.length&&!e?f.reject(t):(H=t=e?e:t,!ie&&Z[t]||!V||x[t]?x[t]?x[t].then(function(e){return H===e.key&&a(e.key),i.resolve(e.key),e},function(e){return!z&&F&&0<F.length&&F[0]!==e?w.use(F[0]).then(i.resolve,i.reject):i.reject(e)}):(i.resolve(t),a(t)):(x[t]=l(t).then(function(e){return O(e.key,e.table),i.resolve(e.key),H===t&&a(e.key),e},function(e){return s.$emit("$translateChangeError",{language:e}),i.reject(e),s.$emit("$translateChangeEnd",{language:e}),f.reject(e)}),x[t].finally(function(){H===t&&(H=void 0),x[t]=void 0}).catch(angular.noop)),i.promise)):z},w.resolveClientLocale=M,w.storageKey=function(){return P()},w.isPostCompilingEnabled=function(){return ce},w.isForceAsyncReloadEnabled=function(){return ie},w.isKeepContent=function(){return he},w.refresh=function(e){if(!V)throw new Error("Couldn't refresh translation table, no loader registered!");s.$emit("$translateRefreshStart",{language:e});var t,i=f.defer(),n={};function r(t){var e=l(t);return(x[t]=e).then(function(e){Z[t]={},O(t,e.table),n[t]=!0},angular.noop),e}return i.promise.then(function(){for(var e in Z)!Z.hasOwnProperty(e)||e in n||delete Z[e];z&&a(z)},angular.noop).finally(function(){s.$emit("$translateRefreshEnd",{language:e})}),e?Z[e]?r(e).then(i.resolve,i.reject):i.reject():(t=F&&F.slice()||[],z&&-1===t.indexOf(z)&&t.push(z),f.all(t.map(r)).then(i.resolve,i.reject)),i.promise},w.instant=function(e,t,i,n,r){var s=n&&n!==z?D(n)||n:z;if(null===e||angular.isUndefined(e))return e;if(n&&A(n),angular.isArray(e)){for(var a={},o=0,l=e.length;o<l;o++)a[e[o]]=w.instant(e[o],t,i,n,r);return a}if(angular.isString(e)&&e.length<1)return e;e=e&&N.apply(e);var c,h,u=[];B&&u.push(B),s&&u.push(s);for(var d=0,p=(u=F&&F.length?u.concat(F):u).length;d<p;d++){var g=u[d];if(void 0!==(c=Z[g]&&void 0!==Z[g][e]?_(e,t,i,s,r):c))break}return c||""===c||(Y||X?c=k(e):(c=b.interpolate(e,t,"filter",r),q&&!v&&(h=T(e,t,r)),q&&!v&&h&&(c=h))),c},w.versionInfo=function(){return"2.18.4"},w.loaderCache=function(){return K},w.directivePriority=function(){return se},w.statefulFilter=function(){return ae},w.isReady=function(){return re},f.defer()),n=(i.promise.then(function(){re=!0}),w.onReady=function(e){var t=f.defer();return angular.isFunction(e)&&t.promise.then(e),re?t.resolve():i.promise.then(t.resolve),t.promise},w.getAvailableLanguageKeys=function(){return 0<Q.length?Q:null},w.getTranslationTable=function(e){return(e=e||w.use())&&Z[e]?angular.copy(Z[e]):null},s.$on("$translateReady",function(){i.resolve(),n(),n=null})),r=s.$on("$translateChangeEnd",function(){i.resolve(),r(),r=null});if(V){if(angular.equals(Z,{})&&w.use()&&w.use(w.use()),F&&F.length)for(var E=function(e){return O(e.key,e.table),s.$emit("$translateChangeEnd",{language:e.key}),e},$=0,L=F.length;$<L;$++){var R=F[$];!ie&&Z[R]||(x[R]=l(R).then(E))}}else s.$emit("$translateReady",{language:w.use()});return w}]}function i(s,a){"use strict";var e={setLocale:function(e){},getInterpolationIdentifier:function(){return"default"},useSanitizeValueStrategy:function(e){return a.useStrategy(e),this},interpolate:function(e,t,i,n,r){return t=a.sanitize(t=t||{},"params",n,i),angular.isNumber(e)?""+e:angular.isString(e)?(e=s(e)(t),a.sanitize(e,"text",n,i)):""}};return e}function n(T,S,_,C,A){"use strict";function E(e){return angular.isString(e)?e.toLowerCase():e}return{restrict:"AE",scope:!0,priority:T.directivePriority(),compile:function(e,m){var y=m.translateValues||void 0,b=m.translateInterpolation||void 0,v=m.translateSanitizeStrategy||void 0,x=e[0].outerHTML.match(/translate-value-+/i),w="^(.*)("+S.startSymbol()+".*"+S.endSymbol()+")(.*)",k="^(.*)"+S.startSymbol()+"(.*)"+S.endSymbol()+"(.*)";return function(n,a,o){n.interpolateParams={},n.preText="",n.postText="",n.translateNamespace=function e(t){return t.translateNamespace||(t.$parent?e(t.$parent):void 0)}(n);var r={},s=function(e){var t,i;angular.isFunction(s._unwatchOld)&&(s._unwatchOld(),s._unwatchOld=void 0),angular.equals(e,"")||!angular.isDefined(e)?(i=(t=function(){return this.toString().replace(/^\s+|\s+$/g,"")}.apply(a.text()).replace(/\n/g," ")).match(w),angular.isArray(i)?(n.preText=i[1],n.postText=i[3],r.translate=S(i[2])(n.$parent),i=t.match(k),angular.isArray(i)&&i[2]&&i[2].length&&(s._unwatchOld=n.$watch(i[2],function(e){r.translate=e,p()}))):r.translate=t||void 0):r.translate=e,p()},e=n.interpolateParams,t=o,i=m;if(t.translateValues&&angular.extend(e,C(t.translateValues)(n.$parent)),x)for(var l in i)Object.prototype.hasOwnProperty.call(t,l)&&"translateValue"===l.substr(0,14)&&"translateValues"!==l&&(e[E(l.substr(14,1))+l.substr(15)]=i[l]);var c,h=!0;for(c in o.$observe("translate",function(e){void 0===e?s(""):""===e&&h||(r.translate=e,p()),h=!1}),o)o.hasOwnProperty(c)&&"translateAttr"===c.substr(0,13)&&13<c.length&&function(t){o.$observe(t,function(e){r[t]=e,p()})}(c);if(o.$observe("translateDefault",function(e){n.defaultText=e,p()}),v&&o.$observe("translateSanitizeStrategy",function(e){n.sanitizeStrategy=C(e)(n.$parent),p()}),y&&o.$observe("translateValues",function(e){e&&n.$parent.$watch(function(){angular.extend(n.interpolateParams,C(e)(n.$parent))})}),x)for(var u in o)Object.prototype.hasOwnProperty.call(o,u)&&"translateValue"===u.substr(0,14)&&"translateValues"!==u&&function(i){o.$observe(i,function(e){var t=E(i.substr(14,1))+i.substr(15);n.interpolateParams[t]=e})}(u);function d(e,t,i,n){var r,s;i||void 0!==t.defaultText&&(e=t.defaultText),"translate"===n?((i||!T.isKeepContent()&&void 0===o.translateKeepContent)&&a.empty().append(t.preText+e+t.postText),i=T.isPostCompilingEnabled(),s=(r=void 0!==m.translateCompile)&&"false"!==m.translateCompile,(i&&!r||s)&&_(a.contents())(t)):(i=(i="data-"===(i=o.$attr[n]).substr(0,5)?i.substr(5):i).substr(15),a.attr(i,e))}var p=function(){for(var e in r)r.hasOwnProperty(e)&&void 0!==r[e]&&g(e,r[e],n,n.interpolateParams,n.defaultText,n.translateNamespace)},g=function(t,e,i,n,r,s){e?(s&&"."===e.charAt(0)&&(e=s+e),T(e,n,b,r,i.translateLanguage,i.sanitizeStrategy).then(function(e){d(e,i,!0,t)},function(e){d(e,i,!1,t)})):d(e,i,!1,t)},f=((y||x||o.translateDefault)&&n.$watch("interpolateParams",p,!0),n.$on("translateLanguageChanged",p),A.$on("$translateChangeSuccess",p));a.text().length?o.translate?s(o.translate):s(""):o.translate&&s(o.translate),p(),n.$on("$destroy",f)}}}}function r(c,h){"use strict";return{restrict:"A",priority:c.directivePriority(),link:function(i,n,r){function e(){angular.forEach(s,function(e,t){e&&(l[t]=!0,i.translateNamespace&&"."===e.charAt(0)&&(e=i.translateNamespace+e),c(e,a,r.translateInterpolation,void 0,i.translateLanguage,o).then(function(e){n.attr(t,e)},function(e){n.attr(t,e)}))}),angular.forEach(l,function(e,t){s[t]||(n.removeAttr(t),delete l[t])})}var s,a,o,l={},t=(u(i,r.translateAttr,function(e){s=e},e),u(i,r.translateValues,function(e){a=e},e),u(i,r.translateSanitizeStrategy,function(e){o=e},e),r.translateValues&&i.$watch(r.translateValues,e,!0),i.$on("translateLanguageChanged",e),h.$on("$translateChangeSuccess",e));e(),i.$on("$destroy",t)}}}function u(e,t,i,n){"use strict";t&&("::"===t.substr(0,2)?t=t.substr(2):e.$watch(t,function(e){i(e),n()},!0),i(e.$eval(t)))}function s(a,o){"use strict";return{compile:function(e){function s(e){e.addClass(a.cloakClassName())}return s(e),function(e,t,i){var n=function(e){e.removeClass(a.cloakClassName())}.bind(this,t),r=s.bind(this,t);i.translateCloak&&i.translateCloak.length?(i.$observe("translateCloak",function(e){a(e).then(n,r)}),o.$on("$translateChangeSuccess",function(){a(i.translateCloak).then(n,r)})):a.onReady(n)}}}}function a(){"use strict";return{restrict:"A",scope:!0,compile:function(){return{pre:function(e,t,i){e.translateNamespace=function e(t){return t.translateNamespace||(t.$parent?e(t.$parent):void 0)}(e),e.translateNamespace&&"."===i.translateNamespace.charAt(0)?e.translateNamespace+=i.translateNamespace:e.translateNamespace=i.translateNamespace}}}}}function o(){"use strict";return{restrict:"A",scope:!0,compile:function(){return function(t,e,i){i.$observe("translateLanguage",function(e){t.translateLanguage=e}),t.$watch("translateLanguage",function(){t.$broadcast("translateLanguageChanged")})}}}}function l(s,a){"use strict";function e(e,t,i,n){var r;return angular.isObject(t)||(r=this||{__SCOPE_IS_NOT_AVAILABLE:"More info at https://github.com/angular/angular.js/commit/8863b9d04c722b278fa93c5d66ad1e578ad6eb1f"},t=s(t)(r)),a.instant(e,t,i,n)}return a.statefulFilter()&&(e.$stateful=!0),e}function c(e){"use strict";return e("translations")}return e.$inject=["$translate"],t.$inject=["$STORAGE_KEY","$windowProvider","$translateSanitizationProvider","pascalprechtTranslateOverrider"],i.$inject=["$interpolate","$translateSanitization"],n.$inject=["$translate","$interpolate","$compile","$parse","$rootScope"],r.$inject=["$translate","$rootScope"],s.$inject=["$translate","$rootScope"],l.$inject=["$parse","$translate"],c.$inject=["$cacheFactory"],angular.module("pascalprecht.translate",["ng"]).run(e),e.displayName="runTranslate",angular.module("pascalprecht.translate").provider("$translateSanitization",function(){"use strict";var i,n,h,u=null,d=!1,p=!1,r=((h={sanitize:function(e,t){return e="text"===t?s(e):e},escape:function(e,t){return e="text"===t?r(e):e},sanitizeParameters:function(e,t){return e="params"===t?o(e,s):e},escapeParameters:function(e,t){return e="params"===t?o(e,r):e},sce:function(e,t,i){return"text"===t?e=a(e):"params"===t&&"filter"!==i&&(e=o(e,r)),e},sceParameters:function(e,t){return e="params"===t?o(e,a):e}}).escaped=h.escapeParameters,this.addStrategy=function(e,t){return h[e]=t,this},this.removeStrategy=function(e){return delete h[e],this},this.useStrategy=function(e){return d=!0,u=e,this},this.$get=["$injector","$log",function(o,l){var t,c={};return o.has("$sanitize")&&(i=o.get("$sanitize")),o.has("$sce")&&(n=o.get("$sce")),{useStrategy:(t=this,function(e){t.useStrategy(e)}),sanitize:function(e,t,i,n){if(u||d||p||(l.warn("pascalprecht.translate.$translateSanitization: No sanitization strategy has been configured. This can have serious security implications. See http://angular-translate.github.io/docs/#/guide/19_security for details."),p=!0),!(i=i||null===i?i:u))return e;n=n||"service";var i=angular.isArray(i)?i:[i],r=e,s=t,a=n;return angular.forEach(i,function(t){if(angular.isFunction(t))r=t(r,s,a);else if(angular.isFunction(h[t]))r=h[t](r,s,a);else{if(!angular.isString(h[t]))throw new Error("pascalprecht.translate.$translateSanitization: Unknown sanitization strategy: '"+t+"'");if(!c[h[t]])try{c[h[t]]=o.get(h[t])}catch(e){throw c[h[t]]=function(){},new Error("pascalprecht.translate.$translateSanitization: Unknown sanitization strategy: '"+t+"'")}r=c[h[t]](r,s,a)}}),r}}}],function(e){var t=angular.element("<div></div>");return t.text(e),t.html()}),s=function(e){if(i)return i(e);throw new Error("pascalprecht.translate.$translateSanitization: Error cannot find $sanitize service. Either include the ngSanitize module (https://docs.angularjs.org/api/ngSanitize) or use a sanitization strategy which does not depend on $sanitize, such as 'escape'.")},a=function(e){if(n)return n.trustAsHtml(e);throw new Error("pascalprecht.translate.$translateSanitization: Error cannot find $sce service.")},o=function(e,i,n){if(angular.isDate(e))return e;if(angular.isObject(e)){var r=angular.isArray(e)?[]:{};if(n){if(-1<n.indexOf(e))throw new Error("pascalprecht.translate.$translateSanitization: Error cannot interpolate parameter due recursive object")}else n=[];return n.push(e),angular.forEach(e,function(e,t){angular.isFunction(e)||(r[t]=o(e,i,n))}),n.splice(-1,1),r}return angular.isNumber(e)||!0===e||!1===e||angular.isUndefined(e)||null===e?e:i(e)}}),angular.module("pascalprecht.translate").constant("pascalprechtTranslateOverrider",{}).provider("$translate",t),t.displayName="displayName",angular.module("pascalprecht.translate").factory("$translateDefaultInterpolation",i),i.displayName="$translateDefaultInterpolation",angular.module("pascalprecht.translate").constant("$STORAGE_KEY","NG_TRANSLATE_LANG_KEY"),angular.module("pascalprecht.translate").directive("translate",n),n.displayName="translateDirective",angular.module("pascalprecht.translate").directive("translateAttr",r),r.displayName="translateAttrDirective",angular.module("pascalprecht.translate").directive("translateCloak",s),s.displayName="translateCloakDirective",angular.module("pascalprecht.translate").directive("translateNamespace",a),a.displayName="translateNamespaceDirective",angular.module("pascalprecht.translate").directive("translateLanguage",o),o.displayName="translateLanguageDirective",angular.module("pascalprecht.translate").filter("translate",l),l.displayName="translateFilterFactory",angular.module("pascalprecht.translate").factory("$translationCache",c),c.displayName="$translationCache","pascalprecht.translate"}),!function(e){"function"==typeof define&&define.amd?define([],e):"object"==typeof module&&module.exports?module.exports=e():e()}(function(){function e(r,s){"use strict";return function(t){if(!t||!(angular.isArray(t.files)||angular.isString(t.prefix)&&angular.isString(t.suffix)))throw new Error("Couldn't load static files, no files and prefix or suffix specified!");t.files||(t.files=[{prefix:t.prefix,suffix:t.suffix}]);for(var e=[],i=t.files.length,n=0;n<i;n++)e.push(function(e){if(e&&angular.isString(e.prefix)&&angular.isString(e.suffix))return e=[e.prefix,t.key,e.suffix].join(""),angular.isObject(t.fileMap)&&t.fileMap[e]&&(e=t.fileMap[e]),s(angular.extend({url:e,method:"GET"},t.$http)).then(function(e){return e.data},function(){return r.reject(t.key)});throw new Error("Couldn't load static file, no prefix or suffix specified!")}({prefix:t.files[n].prefix,key:t.key,suffix:t.files[n].suffix}));return r.all(e).then(function(e){for(var t=e.length,i={},n=0;n<t;n++)for(var r in e[n])i[r]=e[n][r];return i})}}return e.$inject=["$q","$http"],angular.module("pascalprecht.translate").factory("$translateStaticFilesLoader",e),e.displayName="$translateStaticFilesLoader","pascalprecht.translate"}),!function(v,w){"use strict";var x,k,T,S,_,C,A,E,$,L,R=w.$$minErr("$sanitize");w.module("ngSanitize",[]).provider("$sanitize",function(){function e(e,t){return i(e.split(","),t)}function i(e,t){for(var i={},n=0;n<e.length;n++)i[t?C(e[n]):e[n]]=!0;return i}function t(e,t){t&&t.length&&k(e,i(t))}function o(e){return e.replace(/&/g,"&").replace(s,function(e){return"&#"+(1024*(e.charCodeAt(0)-55296)+((e=e.charCodeAt(1))-56320)+65536)+";"}).replace(a,function(e){return"&#"+e.charCodeAt(0)+";"}).replace(/</g,"<").replace(/>/g,">")}function l(e,t){e=t[e];if(e&&E.call(t,e))throw R("elclob",t.outerHTML||t.outerText);return e}var n=!1,r=!1,s=(this.$get=["$$sanitizeUri",function(i){return n=!0,r&&k(f,p),function(e){var t=[];return $(e,L(t,function(e,t){return!/^unsafe:/.test(i(e,t))})),t.join("")}}],this.enableSvg=function(e){return _(e)?(r=e,this):r},this.addValidElements=function(e){return n||(S(e)&&(e={htmlElements:e}),t(p,e.svgElements),t(c,e.htmlVoidElements),t(f,e.htmlVoidElements),t(f,e.htmlElements)),this},this.addValidAttrs=function(e){return n||k(y,i(e,!0)),this},x=w.bind,k=w.extend,T=w.forEach,S=w.isArray,_=w.isDefined,C=w.$$lowercase,A=w.noop,$=function(e,t){null==e?e="":"string"!=typeof e&&(e=""+e);var i=b(e);if(!i)return"";var n,r=5;do{if(0===r)throw R("uinput")}while(r--,(e=i.innerHTML)!==(i=b(e)).innerHTML);for(r=i.firstChild;r;){switch(r.nodeType){case 1:t.start(r.nodeName.toLowerCase(),function(e){for(var t={},i=0,n=e.length;i<n;i++){var r=e[i];t[r.name]=r.value}return t}(r.attributes));break;case 3:t.chars(r.textContent)}if(!(n=r.firstChild)&&(1===r.nodeType&&t.end(r.nodeName.toLowerCase()),!(n=l("nextSibling",r))))for(;null==n&&(r=l("parentNode",r))!==i;)n=l("nextSibling",r),1===r.nodeType&&t.end(r.nodeName.toLowerCase());r=n}for(;r=i.firstChild;)i.removeChild(r)},L=function(e,s){var t=!1,a=x(e,e.push);return{start:function(r,e){r=C(r),(t=!t&&g[r]?r:t)||!0!==f[r]||(a("<"),a(r),T(e,function(e,t){var i=C(t),n="img"===r&&"src"===i||"background"===i;!0!==y[i]||!0===m[i]&&!s(e,n)||(a(" "),a(t),a('="'),a(o(e)),a('"'))}),a(">"))},end:function(e){e=C(e),t||!0!==f[e]||!0===c[e]||(a("</"),a(e),a(">")),e==t&&(t=!1)},chars:function(e){t||a(o(e))}}},E=v.Node.prototype.contains||function(e){return!!(16&this.compareDocumentPosition(e))},/[\uD800-\uDBFF][\uDC00-\uDFFF]/g),a=/([^#-~ |!])/g,c=e("area,br,col,hr,img,wbr"),h=e("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),u=e("rp,rt"),d=k({},u,h),h=k({},h,e("address,article,aside,blockquote,caption,center,del,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,map,menu,nav,ol,pre,section,table,ul")),u=k({},u,e("a,abbr,acronym,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,q,ruby,rp,rt,s,samp,small,span,strike,strong,sub,sup,time,tt,u,var")),p=e("circle,defs,desc,ellipse,font-face,font-face-name,font-face-src,g,glyph,hkern,image,linearGradient,line,marker,metadata,missing-glyph,mpath,path,polygon,polyline,radialGradient,rect,stop,svg,switch,text,title,tspan"),g=e("script,style"),f=k({},c,h,u,d),m=e("background,cite,href,longdesc,src,xlink:href,xml:base"),d=e("abbr,align,alt,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,coords,dir,face,headers,height,hreflang,hspace,ismap,lang,language,nohref,nowrap,rel,rev,rows,rowspan,rules,scope,scrolling,shape,size,span,start,summary,tabindex,target,title,type,valign,value,vspace,width"),u=e("accent-height,accumulate,additive,alphabetic,arabic-form,ascent,baseProfile,bbox,begin,by,calcMode,cap-height,class,color,color-rendering,content,cx,cy,d,dx,dy,descent,display,dur,end,fill,fill-rule,font-family,font-size,font-stretch,font-style,font-variant,font-weight,from,fx,fy,g1,g2,glyph-name,gradientUnits,hanging,height,horiz-adv-x,horiz-origin-x,ideographic,k,keyPoints,keySplines,keyTimes,lang,marker-end,marker-mid,marker-start,markerHeight,markerUnits,markerWidth,mathematical,max,min,offset,opacity,orient,origin,overline-position,overline-thickness,panose-1,path,pathLength,points,preserveAspectRatio,r,refX,refY,repeatCount,repeatDur,requiredExtensions,requiredFeatures,restart,rotate,rx,ry,slope,stemh,stemv,stop-color,stop-opacity,strikethrough-position,strikethrough-thickness,stroke,stroke-dasharray,stroke-dashoffset,stroke-linecap,stroke-linejoin,stroke-miterlimit,stroke-opacity,stroke-width,systemLanguage,target,text-anchor,to,transform,type,u1,u2,underline-position,underline-thickness,unicode,unicode-range,units-per-em,values,version,viewBox,visibility,width,widths,x,x-height,x1,x2,xlink:actuate,xlink:arcrole,xlink:role,xlink:show,xlink:title,xlink:type,xml:base,xml:lang,xml:space,xmlns,xmlns:xlink,y,y1,y2,zoomAndPan",!0),y=k({},m,u,d),b=function(i,t){function e(e){e="<remove></remove>"+e;try{var t=(new i.DOMParser).parseFromString(e,"text/html").body;return t.firstChild.remove(),t}catch(e){}}var n,r;try{n=!!e("")}catch(e){n=!1}if(n)return e;if(t&&t.implementation)return r=((n=t.implementation.createHTMLDocument("inert")).documentElement||n.getDocumentElement()).querySelector("body"),function(e){return r.innerHTML=e,t.documentMode&&function e(t){for(;t;){if(t.nodeType===v.Node.ELEMENT_NODE)for(var i=t.attributes,n=0,r=i.length;n<r;n++){var s=i[n],a=s.name.toLowerCase();"xmlns:ns1"!==a&&0!==a.lastIndexOf("ns1:",0)||(t.removeAttributeNode(s),n--,r--)}(i=t.firstChild)&&e(i),t=l("nextSibling",t)}}(r),r};throw R("noinert")}(v,v.document)}).info({angularVersion:"1.8.2"}),w.module("ngSanitize").filter("linky",["$sanitize",function(p){var g=/((s?ftp|https?):\/\/|(www\.)|(mailto:)?[A-Za-z0-9._%+-]+@)\S*[^\s.;,(){}<>"\u201d\u2019]/i,f=/^mailto:/i,m=w.$$minErr("linky"),y=w.isDefined,b=w.isFunction,v=w.isObject,x=w.isString;return function(e,t,i){function n(e){var t;e&&l.push((e=e,L(t=[],A).chars(e),t.join("")))}if(null==e||""===e)return e;if(!x(e))throw m("notstring",e);for(var r,s,a=b(i)?i:v(i)?function(){return i}:function(){return{}},o=e,l=[];e=o.match(g);){r=e[0],e[2]||e[4]||(r=(e[3]?"http://":"mailto:")+r),s=e.index,n(o.substr(0,s));{c=void 0;h=void 0;u=void 0;d=void 0;var c=r;var h=e[0].replace(f,"");var u,d=a(c);for(u in l.push("<a "),d)l.push(u+'="'+d[u]+'" ');!y(t)||"target"in d||l.push('target="',t,'" '),l.push('href="',c.replace(/"/g,"""),'">'),n(h),l.push("</a>")}o=o.substring(s+e[0].length)}return n(o),p(l.join(""))}}])}(window,window.angular),!function(w){"use strict";function s(e,t){var r=[],e=e.replace(/([().])/g,"\\$1").replace(/(\/)?:(\w+)(\*\?|[?*])?/g,function(e,t,i,n){return e="?"===n||"*?"===n,n="*"===n||"*?"===n,r.push({name:i,optional:e}),t=t||"",(e?"(?:"+t:t+"(?:")+(n?"(.+?)":"([^/]+)")+(e?"?)?":")")}).replace(/([/$*])/g,"\\$1");return t.ignoreTrailingSlashes&&(e=e.replace(/\/+$/,"")+"/*"),{keys:r,regexp:new RegExp("^"+e+"(?:[?#]|$)",t.caseInsensitiveMatch?"i":"")}}function e(e){r&&e.get("$route")}function t(d,p,g){return{restrict:"ECA",terminal:!0,priority:400,transclude:"element",link:function(i,n,e,t,r){function s(){c&&(g.cancel(c),c=null),o&&(o.$destroy(),o=null),l&&((c=g.leave(l)).done(function(e){!1!==e&&(c=null)}),l=null)}function a(){var e,t=d.current&&d.current.locals;w.isDefined(t&&t.$template)?(t=i.$new(),e=d.current,l=r(t,function(e){g.enter(e,null,l||n).done(function(e){!1===e||!w.isDefined(h)||h&&!i.$eval(h)||p()}),s()}),(o=e.scope=t).$emit("$viewContentLoaded"),o.$eval(u)):s()}var o,l,c,h=e.autoscroll,u=e.onload||"";i.$on("$routeChangeSuccess",a),a()}}}function i(a,o,l){return{restrict:"ECA",priority:-400,link:function(e,t){var i,n=l.current,r=n.locals,s=(t.html(r.$template),a(t.contents()));n.controller&&(r.$scope=e,i=o(n.controller,r),n.controllerAs&&(e[n.controllerAs]=i),t.data("$ngControllerController",i),t.children().data("$ngControllerController",i)),e[n.resolveAs||"$resolve"]=r,s(e)}}}var a,o,n,k,r,l=w.module("ngRoute",[]).info({angularVersion:"1.8.2"}).provider("$route",function(){function v(e,t){return w.extend(Object.create(e),t)}a=w.isArray,o=w.isObject,n=w.isDefined,k=w.noop;var x={};this.when=function(e,t){if(i=void 0,a(t))for(var i=i||[],n=0,r=t.length;n<r;n++)i[n]=t[n];else if(o(t))for(n in i=i||{},t)"$"===n.charAt(0)&&"$"===n.charAt(1)||(i[n]=t[n]);return w.isUndefined((i=i||t).reloadOnUrl)&&(i.reloadOnUrl=!0),w.isUndefined(i.reloadOnSearch)&&(i.reloadOnSearch=!0),w.isUndefined(i.caseInsensitiveMatch)&&(i.caseInsensitiveMatch=this.caseInsensitiveMatch),x[e]=w.extend(i,{originalPath:e},e&&s(e,i)),e&&(n="/"===e[e.length-1]?e.substr(0,e.length-1):e+"/",x[n]=w.extend({originalPath:e,redirectTo:e},s(n,i))),this},this.caseInsensitiveMatch=!1,this.otherwise=function(e){return this.when(null,e="string"==typeof e?{redirectTo:e}:e),this},r=!0,this.eagerInstantiationEnabled=function(e){return n(e)?(r=e,this):r},this.$get=["$rootScope","$location","$routeParams","$q","$injector","$templateRequest","$sce","$browser",function(r,u,s,a,o,l,c,e){function t(e){var c,h,t=b.current;w.forEach(x,function(e,t){if(n=!h){var i=u.path(),n=e.keys,r={};if(e.regexp)if(i=e.regexp.exec(i)){for(var s=1,a=i.length;s<a;++s){var o=n[s-1],l=i[s];o&&l&&(r[o.name]=l)}n=r}else n=null;else n=null;n=c=n}n&&((h=v(e,{params:w.extend({},u.search(),c),pathParams:c})).$$route=e)}),f=h||x.null&&v(x.null,{params:{},pathParams:{}}),(m=!y&&f&&t&&f.$$route===t.$$route&&(!f.reloadOnUrl||!f.reloadOnSearch&&w.equals(f.pathParams,t.pathParams)))||!t&&!f||r.$broadcast("$routeChangeStart",f,t).defaultPrevented&&e&&e.preventDefault()}function i(){var t,i=b.current,n=f;m?(i.params=n.params,w.copy(i.params,s),r.$broadcast("$routeUpdate",i)):(n||i)&&(y=!1,b.current=n,t=a.resolve(n),e.$$incOutstandingRequestCount("$route"),t.then(h).then(d).then(function(e){return e&&t.then(p).then(function(e){n===b.current&&(n&&(n.locals=e,w.copy(n.params,s)),r.$broadcast("$routeChangeSuccess",n,i))})}).catch(function(e){n===b.current&&r.$broadcast("$routeChangeError",n,i,e)}).finally(function(){e.$$completeOutstandingRequest(k,"$route")}))}function h(e){var t,i,n={route:e,hasRedirection:!1};if(e)if(e.redirectTo)w.isString(e.redirectTo)?(n.path=g(e.redirectTo,e.params),n.search=e.params,n.hasRedirection=!0):(t=u.path(),i=u.search(),e=e.redirectTo(e.pathParams,t,i),w.isDefined(e)&&(n.url=e,n.hasRedirection=!0));else if(e.resolveRedirectTo)return a.resolve(o.invoke(e.resolveRedirectTo)).then(function(e){return w.isDefined(e)&&(n.url=e,n.hasRedirection=!0),n});return n}function d(e){var t,i,n=!0;return n=e.route!==b.current||e.hasRedirection&&(t=u.url(),(i=e.url)?u.url(i).replace():i=u.path(e.path).search(e.search).replace().url(),i!==t)?!1:n}function p(e){var i,t,n,r;if(e)return i=w.extend({},e.resolve),w.forEach(i,function(e,t){i[t]=w.isString(e)?o.get(e):o.invoke(e,null,null,t)}),t=e,w.isDefined(n=t.template)?w.isFunction(n)&&(n=n(t.params)):w.isDefined(r=t.templateUrl)&&(w.isFunction(r)&&(r=r(t.params)),w.isDefined(r))&&(t.loadedTemplateUrl=c.valueOf(r),n=l(r)),e=n,w.isDefined(e)&&(i.$template=e),a.all(i)}function g(e,i){var n=[];return w.forEach((e||"").split(":"),function(e,t){0===t?n.push(e):(e=(t=e.match(/(\w+)(?:[?*])?(.*)/))[1],n.push(i[e]),n.push(t[2]||""),delete i[e])}),n.join("")}var f,m,y=!1,b={routes:x,reload:function(){var e={defaultPrevented:!(y=!0),preventDefault:function(){this.defaultPrevented=!0,y=!1}};r.$evalAsync(function(){t(e),e.defaultPrevented||i()})},updateParams:function(e){if(!this.current||!this.current.$$route)throw T("norout");e=w.extend({},this.current.params,e),u.path(g(this.current.$$route.originalPath,e)),u.search(e)}};return r.$on("$locationChangeStart",t),r.$on("$locationChangeSuccess",i),b}]}).run(e),T=w.$$minErr("ngRoute");e.$inject=["$injector"],l.provider("$routeParams",function(){this.$get=function(){return{}}}),l.directive("ngView",t),l.directive("ngView",i),t.$inject=["$route","$anchorScroll","$animate"],i.$inject=["$compile","$controller","$route"]}((window,window.angular)),"undefined"==typeof PDFJS&&(("undefined"!=typeof window?window:this).PDFJS={}),!function(){function r(e,t){return new i(this.slice(e,t))}function s(e,t){arguments.length<2&&(t=0);for(var i=0,n=e.length;i<n;++i,++t)this[t]=255&e[i]}function i(e){if("number"==typeof e)for(var t=[],i=0;i<e;++i)t[i]=0;else if("slice"in e)t=e.slice(0);else{t=[];for(var i=0,n=e.length;i<n;++i)t[i]=e[i]}return t.subarray=r,(t.buffer=t).byteLength=t.length,t.set=s,"object"==typeof e&&e.buffer&&(t.buffer=e.buffer),t}"undefined"!=typeof Uint8Array?(void 0===Uint8Array.prototype.subarray&&(Uint8Array.prototype.subarray=function(e,t){return new Uint8Array(this.slice(e,t))},Float32Array.prototype.subarray=function(e,t){return new Float32Array(this.slice(e,t))}),"undefined"==typeof Float64Array&&(window.Float64Array=Float32Array)):(window.Uint8Array=i,window.Uint32Array=i,window.Int32Array=i,window.Uint16Array=i,window.Float32Array=i,window.Float64Array=i)}(),window.URL||(window.URL=window.webkitURL),void 0===Object.create&&(Object.create=function(e){function t(){}return t.prototype=e,new t}),!function(){if(void 0!==Object.defineProperty){var t=!0;try{Object.defineProperty(new Image,"id",{value:"test"});function e(){}e.prototype={get id(){}},Object.defineProperty(new e,"id",{value:"",configurable:!0,enumerable:!0,writable:!1})}catch(e){t=!1}if(t)return}Object.defineProperty=function(e,t,i){delete e[t],"get"in i&&e.__defineGetter__(t,i.get),"set"in i&&e.__defineSetter__(t,i.set),"value"in i&&(e.__defineSetter__(t,function(e){return this.__defineGetter__(t,function(){return e}),e}),e[t]=i.value)}}(),void 0===Object.keys&&(Object.keys=function(e){var t,i=[];for(t in e)e.hasOwnProperty(t)&&i.push(t);return i}),!function(){var e;"undefined"==typeof FileReader||"readAsArrayBuffer"in(e=FileReader.prototype)||Object.defineProperty(e,"readAsArrayBuffer",{value:function(e){var t=new FileReader,s=this;t.onload=function(e){e=e.target.result;for(var t=new ArrayBuffer(e.length),i=new Uint8Array(t),n=0,r=e.length;n<r;n++)i[n]=e.charCodeAt(n);Object.defineProperty(s,"result",{value:t,enumerable:!0,writable:!1,configurable:!0}),(e=document.createEvent("HTMLEvents")).initEvent("load",!1,!1),s.dispatchEvent(e)},t.readAsBinaryString(e)}})}(),!function(){var e=XMLHttpRequest.prototype;"overrideMimeType"in e||Object.defineProperty(e,"overrideMimeType",{value:function(){}}),"response"in e||"mozResponseArrayBuffer"in e||"mozResponse"in e||"responseArrayBuffer"in e||("undefined"!=typeof VBArray?Object.defineProperty(e,"response",{get:function(){return new Uint8Array(new VBArray(this.responseBody).toArray())}}):("function"==typeof e.overrideMimeType&&Object.defineProperty(e,"responseType",{set:function(){this.overrideMimeType("text/plain; charset=x-user-defined")}}),Object.defineProperty(e,"response",{get:function(){for(var e=this.responseText,t=e.length,i=new Uint8Array(t),n=0;n<t;++n)i[n]=255&e.charCodeAt(n);return i}})))}(),"btoa"in window||(window.btoa=function(e){for(var t="",i=0,n=e.length;i<n;i+=3)var r=255&e.charCodeAt(i),s=255&e.charCodeAt(i+1),a=255&e.charCodeAt(i+2),o=(3&r)<<4|s>>4,s=i+1<n?(15&s)<<2|a>>6:64,a=i+2<n?63&a:64,t=t+("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".charAt(r>>2)+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".charAt(o)+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".charAt(s)+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".charAt(a));return t}),"atob"in window||(window.atob=function(e){if(1==(e=e.replace(/=+$/,"")).length%4)throw Error("bad atob input");for(var t,i,n=0,r=0,s="";i=e.charAt(r++);~i&&(t=n%4?64*t+i:i,n++%4)&&(s+=String.fromCharCode(255&t>>(-2*n&6))))i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(i);return s}),void 0===Function.prototype.bind&&(Function.prototype.bind=function(t){var i=this,n=Array.prototype.slice.call(arguments,1);return function(){var e=Array.prototype.concat.apply(n,arguments);return i.apply(t,e)}}),"dataset"in document.createElement("div")||Object.defineProperty(HTMLElement.prototype,"dataset",{get:function(){if(this._dataset)return this._dataset;for(var e={},t=0,i=this.attributes.length;t<i;t++){var n=this.attributes[t];"data-"==n.name.substring(0,5)&&(e[n.name.substring(5).replace(/\-([a-z])/g,function(e,t){return t.toUpperCase()})]=n.value)}return Object.defineProperty(this,"_dataset",{value:e,writable:!1,enumerable:!1}),e},enumerable:!0}),!function(){function t(e,t,i,n){var r=(e.className||"").split(/\s+/g),s=(""===r[0]&&r.shift(),r.indexOf(t));s<0&&i&&r.push(t),0<=s&&n&&r.splice(s,1),e.className=r.join(" ")}var i;"classList"in document.createElement("div")||(i={add:function(e){t(this.element,e,!0,!1)},remove:function(e){t(this.element,e,!1,!0)},toggle:function(e){t(this.element,e,!0,!0)}},Object.defineProperty(HTMLElement.prototype,"classList",{get:function(){var e;return this._classList||(e=Object.create(i,{element:{value:this,writable:!1,enumerable:!0}}),Object.defineProperty(this,"_classList",{value:e,writable:!1,enumerable:!1}),e)},enumerable:!0}))}(),!function(){var t,i,n;"console"in window?"bind"in console.log||(t=console.log,console.log=function(e){return t(e)},i=console.error,console.error=function(e){return i(e)},n=console.warn,console.warn=function(e){return n(e)}):window.console={log:function(){},error:function(){},warn:function(){}}}(),-1!=navigator.userAgent.indexOf("Opera")&&document.addEventListener("click",function(e){!function e(t){return t.disabled||t.parentNode&&e(t.parentNode)}(e.target)||e.stopPropagation()},!0),"language"in navigator||Object.defineProperty(navigator,"language",{get:function(){var e=navigator.userLanguage||"en-US";return e.substring(0,2).toLowerCase()+e.substring(2).toUpperCase()},enumerable:!0}),0<Object.prototype.toString.call(window.HTMLElement).indexOf("Constructor")&&(PDFJS.disableRange=!0),window.history.pushState||(PDFJS.disableHistory=!0),"undefined"==typeof PDFJS&&(("undefined"!=typeof window?window:this).PDFJS={}),PDFJS.version="0.8.505",PDFJS.build="da1c944",!function(){function g(e){j<=z&&(p("Info: "+e),PDFJS.LogManager.notify("info",e))}function f(e){F<=z&&(p("Warning: "+e),PDFJS.LogManager.notify("warn",e))}function k(e){1<arguments.length?((i=["Error:"]).push.apply(i,arguments),p.apply(null,i),e=[].join.call(arguments," ")):p("Error: "+e);var t,i=p;try{throw Error()}catch(e){t=e.stack?e.stack.split("\n").slice(2).join("\n"):""}throw i(t),PDFJS.LogManager.notify("error",e),Error(e)}function b(e){f("TODO: "+e)}function r(e,t){if(!e)return!1;var i=e.indexOf(":");if(i<0)return t;switch(e.substr(0,i)){case"http":case"https":case"ftp":case"mailto":return!0;default:return!1}}function e(e,t,i){return Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!1}),i}function c(e){var t,i=e.length,n="";if("þ"===e[0]&&"ÿ"===e[1])for(t=2;t<i;t+=2)n+=String.fromCharCode(e.charCodeAt(t)<<8|e.charCodeAt(t+1));else for(t=0;t<i;++t)var r=W[e.charCodeAt(t)],n=n+(r?String.fromCharCode(r):e.charAt(t));return n}function a(e){return"boolean"==typeof e}function h(e){return e instanceof Name}function s(e,t){return e instanceof Dict&&(!t||h(e=e.get("Type"))&&e.name==t)}function m(e){return e instanceof Array}function o(e){return"object"==typeof e&&null!=e&&"getBytes"in e}function O(e){if("object"==typeof e){if(!s(e)){if(!o(e))return;e=e.dict}return e.has("FunctionType")}}function l(e,n){this.name=e,this.comObj=n,this.callbackIndex=1;var r=this.callbacks={},s=this.actionHandler={console_log:[function(e){p.apply(null,e)}]};s.console_error="console"in y?[function(e){y.console.error.apply(null,e)}]:[function(e){p.apply(null,e)}],s._warn=[function(e){f(e)}],n.onmessage=function(e){var t,i=e.data;i.isReply?(e=i.callbackId,i.callbackId in r?(t=r[e],delete r[e],t(i.data)):k("Cannot resolve callback "+e)):i.action in s?(e=s[i.action],i.callbackId?((t=new x).then(function(e){n.postMessage({isReply:!0,callbackId:i.callbackId,data:e})}),e[0].call(e[1],i.data,t)):e[0].call(e[1],i.data)):k("Unkown action from worker: "+i.action)}}function P(e,t){var i=document.createElement("canvas");return i.width=e,i.height=t,i}function B(o){o.mozCurrentTransform||(o._scaleX=o._scaleX||1,o._scaleY=o._scaleY||1,o._originalSave=o.save,o._originalRestore=o.restore,o._originalRotate=o.rotate,o._originalScale=o.scale,o._originalTranslate=o.translate,o._originalTransform=o.transform,o._originalSetTransform=o.setTransform,o._transformMatrix=[o._scaleX,0,0,o._scaleY,0,0],o._transformStack=[],Object.defineProperty(o,"mozCurrentTransform",{get:function(){return this._transformMatrix}}),Object.defineProperty(o,"mozCurrentTransformInverse",{get:function(){var e=this._transformMatrix,t=e[0],i=e[1],n=e[2],r=e[3],s=e[4],a=t*r-i*n,o=i*n-t*r;return[r/a,i/o,n/o,t/a,(r*s-n*(e=e[5]))/o,(i*s-t*e)/a]}}),o.save=function(){var e=this._transformMatrix;this._transformStack.push(e),this._transformMatrix=e.slice(0,6),this._originalSave()},o.restore=function(){var e=this._transformStack.pop();e&&(this._transformMatrix=e,this._originalRestore())},o.translate=function(e,t){var i=this._transformMatrix;i[4]=i[0]*e+i[2]*t+i[4],i[5]=i[1]*e+i[3]*t+i[5],this._originalTranslate(e,t)},o.scale=function(e,t){var i=this._transformMatrix;i[0]*=e,i[1]*=e,i[2]*=t,i[3]*=t,this._originalScale(e,t)},o.transform=function(e,t,i,n,r,s){var a=this._transformMatrix;this._transformMatrix=[a[0]*e+a[2]*t,a[1]*e+a[3]*t,a[0]*i+a[2]*n,a[1]*i+a[3]*n,a[0]*r+a[2]*s+a[4],a[1]*r+a[3]*s+a[5]],o._originalTransform(e,t,i,n,r,s)},o.setTransform=function(e,t,i,n,r,s){this._transformMatrix=[e,t,i,n,r,s],o._originalSetTransform(e,t,i,n,r,s)},o.rotate=function(e){var t=Math.cos(e),i=Math.sin(e),n=this._transformMatrix;this._transformMatrix=[n[0]*t+n[2]*i,n[1]*t+n[3]*i,n[0]*-i+n[2]*t,n[1]*-i+n[3]*t,n[4],n[5]],this._originalRotate(e)})}function t(e){this.message=e}function u(){}function n(e,t,i,n,r,s){this.viewBox=e,this.scale=t,this.rotation=i,this.offsetX=n,this.offsetY=r;var a,o,l,c=(e[2]+e[0])/2,h=(e[3]+e[1])/2;switch((i%=360)<0?i+360:i){case 180:i=-1,o=a=0,l=1;break;case 90:o=a=1,l=i=0;break;case 270:o=a=-1,l=i=0;break;default:o=a=0,l=-(i=1)}s&&(o=-o,l=-l),e=0===i?(n=Math.abs(h-e[1])*t+n,r=Math.abs(c-e[0])*t+r,s=Math.abs(e[3]-e[1])*t,Math.abs(e[2]-e[0])*t):(n=Math.abs(c-e[0])*t+n,r=Math.abs(h-e[1])*t+r,s=Math.abs(e[2]-e[0])*t,Math.abs(e[3]-e[1])*t),this.transform=[i*t,a*t,o*t,l*t,n-i*t*c-o*t*h,r-a*t*c-l*t*h],this.width=s,this.height=e,this.fontScale=t}function d(){this._status=V,this._handlers=[]}var p,y="undefined"==typeof window?this:window,v="undefined"==typeof window,F=1,j=5,z=F,A=[.001,0,0,.001,0,0],H=(y.PDFJS||(y.PDFJS={}),y.PDFJS.pdfBug=!1,p="console"in y&&"log"in y.console?y.console.log.bind(y.console):function(){},PDFJS.isValidUrl=r,[]),U=(PDFJS.LogManager={addLogger:function(e){H.push(e)},notify:function(e,t){for(var i=0,n=H.length;i<n;i++){var r=H[i];r[e]&&r[e](t)}}},PDFJS.PasswordResponses={NEED_PASSWORD:1,INCORRECT_PASSWORD:2}),q=((t.prototype=Error()).name="NotImplementedException",t.constructor=t,[1,0,0,1,0,0]),i=PDFJS,E=(u.makeCssRgb=function(e){return"rgb("+e[0]+","+e[1]+","+e[2]+")"},u.makeCssCmyk=function(e){return e=S.singletons.cmyk.getRgb(e,0),u.makeCssRgb(e)},u.transform=function(e,t){return[e[0]*t[0]+e[2]*t[1],e[1]*t[0]+e[3]*t[1],e[0]*t[2]+e[2]*t[3],e[1]*t[2]+e[3]*t[3],e[0]*t[4]+e[2]*t[5]+e[4],e[1]*t[4]+e[3]*t[5]+e[5]]},u.applyTransform=function(e,t){return[e[0]*t[0]+e[1]*t[2]+t[4],e[0]*t[1]+e[1]*t[3]+t[5]]},u.applyInverseTransform=function(e,t){var i=t[0]*t[3]-t[1]*t[2];return[(e[0]*t[3]-e[1]*t[2]+t[2]*t[5]-t[4]*t[3])/i,(-e[0]*t[1]+e[1]*t[0]+t[4]*t[1]-t[5]*t[0])/i]},u.getAxialAlignedBoundingBox=function(e,t){var i=u.applyTransform(e,t),n=u.applyTransform(e.slice(2,4),t),r=u.applyTransform([e[0],e[3]],t),e=u.applyTransform([e[2],e[1]],t);return[Math.min(i[0],n[0],r[0],e[0]),Math.min(i[1],n[1],r[1],e[1]),Math.max(i[0],n[0],r[0],e[0]),Math.max(i[1],n[1],r[1],e[1])]},u.inverseTransform=function(e){var t=e[0]*e[3]-e[1]*e[2];return[e[3]/t,-e[1]/t,-e[2]/t,e[0]/t,(e[2]*e[5]-e[4]*e[3])/t,(e[4]*e[1]-e[5]*e[0])/t]},u.apply3dTransform=function(e,t){return[e[0]*t[0]+e[1]*t[1]+e[2]*t[2],e[3]*t[0]+e[4]*t[1]+e[5]*t[2],e[6]*t[0]+e[7]*t[1]+e[8]*t[2]]},u.singularValueDecompose2dScale=function(e){var t=[e[0],e[2],e[1],e[3]],i=e[0]*t[0]+e[1]*t[2],n=e[2]*t[1]+e[3]*t[3],r=(i+n)/2,t=r-(e=Math.sqrt((i+n)*(i+n)-4*(i*n-(e[2]*t[0]+e[3]*t[2])*(e[0]*t[1]+e[1]*t[3])))/2)||1;return[Math.sqrt(r+e||1),Math.sqrt(t)]},u.normalizeRect=function(e){var t=e.slice(0);return e[0]>e[2]&&(t[0]=e[2],t[2]=e[0]),e[1]>e[3]&&(t[1]=e[3],t[3]=e[1]),t},u.intersect=function(e,t){function i(e,t){return e-t}var n=[e[0],e[2],t[0],t[2]].sort(i),r=[e[1],e[3],t[1],t[3]].sort(i),s=[];return e=u.normalizeRect(e),t=u.normalizeRect(t),(n[0]===e[0]&&n[1]===t[0]||n[0]===t[0]&&n[1]===e[0])&&(s[0]=n[1],s[2]=n[2],r[0]===e[1]&&r[1]===t[1]||r[0]===t[1]&&r[1]===e[1])&&(s[1]=r[1],s[3]=r[2],s)},u.sign=function(e){return e<0?-1:1},u.concatenateToArray=function(e,t){Array.prototype.push.apply(e,t)},u.prependToArray=function(e,t){Array.prototype.unshift.apply(e,t)},u.extendObj=function(e,t){for(var i in t)e[i]=t[i]},u.getInheritableProperty=function(e,t){for(;e&&!e.has(t);)e=e.get("Parent");return e?e.get(t):null},u.inherit=function(e,t,i){for(var n in e.prototype=Object.create(t.prototype),e.prototype.constructor=e,i)e.prototype[n]=i[n]},u.loadScript=function(e,t){var i=document.createElement("script"),n=!1;i.setAttribute("src",e),t&&(i.onload=function(){n||t(),n=!0}),document.getElementsByTagName("head")[0].appendChild(i)},i.Util=u),i=PDFJS,W=(n.prototype={clone:function(e){var t=("scale"in(e=e||{})?e:this).scale,i=("rotation"in e?e:this).rotation;return new n(this.viewBox.slice(),t,i,this.offsetX,this.offsetY,e.dontFlip)},convertToViewportPoint:function(e,t){return E.applyTransform([e,t],this.transform)},convertToViewportRectangle:function(e){var t=E.applyTransform([e[0],e[1]],this.transform);return e=E.applyTransform([e[2],e[3]],this.transform),[t[0],t[1],e[0],e[1]]},convertToPdfPoint:function(e,t){return E.applyInverseTransform([e,t],this.transform)}},i.PageViewport=n,[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,728,711,710,729,733,731,730,732,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,8226,8224,8225,8230,8212,8211,402,8260,8249,8250,8722,8240,8222,8220,8221,8216,8217,8218,8482,64257,64258,321,338,352,376,381,305,322,339,353,382,0,8364]),i=PDFJS,V=0,G={handlers:[],running:!1,unhandledRejections:[],pendingRejectionCheck:!1,scheduleHandlers:function(e){e._status!=V&&(this.handlers=this.handlers.concat(e._handlers),e._handlers=[],this.running||(this.running=!0,setTimeout(this.runHandlers.bind(this),0)))},runHandlers:function(){for(;0<this.handlers.length;){var e=this.handlers.shift(),t=e.thisPromise._status,i=e.thisPromise._value;try{1===t?"function"==typeof e.onResolve&&(i=e.onResolve(i)):"function"==typeof e.onReject&&(i=e.onReject(i),t=1,e.thisPromise._unhandledRejection)&&this.removeUnhandeledRejection(e.thisPromise)}catch(e){t=2,i=e}e.nextPromise._updateStatus(t,i)}this.running=!1},addUnhandledRejection:function(e){this.unhandledRejections.push({promise:e,time:Date.now()}),this.scheduleRejectionCheck()},removeUnhandeledRejection:function(e){e._unhandledRejection=!1;for(var t=0;t<this.unhandledRejections.length;t++)this.unhandledRejections[t].promise===e&&(this.unhandledRejections.splice(t),t--)},scheduleRejectionCheck:function(){this.pendingRejectionCheck||(this.pendingRejectionCheck=!0,setTimeout(function(){this.pendingRejectionCheck=!1;for(var e,t,i=Date.now(),n=0;n<this.unhandledRejections.length;n++)500<i-this.unhandledRejections[n].time&&(t="Unhandled rejection: "+(e=this.unhandledRejections[n].promise._value),e.stack&&(t+="\n"+e.stack),f(t),this.unhandledRejections.splice(n),n--);this.unhandledRejections.length&&this.scheduleRejectionCheck()}.bind(this),500))}},x=(d.all=function(e){function t(e){2!==i._status&&(r=[],i.reject(e))}var i=new d,n=e.length,r=[];if(0===n)i.resolve(r);else for(var s=0,a=e.length;s<a;++s)e[s].then(function(t){return function(e){2!==i._status&&(r[t]=e,0===--n)&&i.resolve(r)}}(s),t);return i},d.prototype={_status:null,_value:null,_handlers:null,_unhandledRejection:null,_updateStatus:function(e,t){1!==this._status&&2!==this._status&&(1==e&&t&&"function"==typeof t.then?t.then(this._updateStatus.bind(this,1),this._updateStatus.bind(this,2)):(this._status=e,this._value=t,2===e&&0===this._handlers.length&&(this._unhandledRejection=!0,G.addUnhandledRejection(this)),G.scheduleHandlers(this)))},get isResolved(){return 1===this._status},get isRejected(){return 2===this._status},resolve:function(e){this._updateStatus(1,e)},reject:function(e){this._updateStatus(2,e)},then:function(e,t){var i=new d;return this._handlers.push({thisPromise:this,onResolve:e,onReject:t,nextPromise:i}),G.scheduleHandlers(this),i}},i.Promise=d),Y=function(){this.started={},this.times=[],this.enabled=!0};Y.prototype={time:function(e){this.enabled&&(e in this.started&&f("Timer is already running for "+e),this.started[e]=Date.now())},timeEnd:function(e){this.enabled&&(e in this.started||f("Timer has not been started for "+e),this.times.push({name:e,start:this.started[e],end:Date.now()}),delete this.started[e])},toString:function(){for(var e=this.times,t="",i=0,n=0,r=e.length;n<r;++n)(s=e[n].name).length>i&&(i=s.length);for(n=0,r=e.length;n<r;++n){for(var s=(a=e[n]).end-a.start,a=a.name;a.length<i;)a+=" ";t+=a+" "+s+"ms\n"}return t}},PDFJS.createBlob=function(e,t){var i;return"function"==typeof Blob?new Blob([e],{type:t}):((i=new MozBlobBuilder).append(e),i.getBlob(t))},l.prototype={on:function(e,t,i){var n=this.actionHandler;n[e]&&k('There is already an actionName called "'+e+'"'),n[e]=[t,i]},send:function(e,t,i){e={action:e,data:t},i&&(t=this.callbackIndex++,this.callbacks[t]=i,e.callbackId=t),this.comObj.postMessage(e)}};function w(){k("should not call ColorSpace constructor")}function X(e,t,i){this.name="Alternate",this.numComps=e,this.defaultColor=new Float32Array(e);for(var n=0;n<e;++n)this.defaultColor[n]=1;this.base=t,this.tintFn=i}function K(e){this.name="Pattern",this.base=e}function Z(e,t,i){var n;if(this.name="Indexed",this.numComps=1,this.defaultColor=new Uint8Array([0]),this.base=e,this.highVal=t,e=e.numComps*t,o(i))n=new Uint8Array(e),i=i.getBytes(e),n.set(i);else if("string"==typeof i)for(n=new Uint8Array(e),t=0;t<e;++t)n[t]=i.charCodeAt(t);else i instanceof Uint8Array||i instanceof Array?n=i:k("Unrecognized lookup table: "+i);this.lookup=n}function Q(){this.name="DeviceGray",this.numComps=1,this.defaultColor=new Float32Array([0])}function J(){this.name="DeviceRGB",this.numComps=3,this.defaultColor=new Float32Array([0,0,0])}function ee(e,t,i,n,r){var s=e[t+0]*i,a=e[t+1]*i,o=e[t+2]*i;e=s*(-4.387332384609988*s+54.48615194189176*a+18.82290502165302*o+212.25662451639585*(i*=e[t+3])-285.2331026137004)+a*(1.7149763477362134*a-5.6096736904047315*o+-17.873870861415444*i-5.497006427196366)+o*(-2.5217340131683033*o-21.248923337353073*i+17.5119270841813)+i*(-21.86122147463605*i-189.48180835922747)+255,t=s*(8.841041422036149*s+60.118027045597366*a+6.871425592049007*o+31.159100130055922*i-79.2970844816548)+a*(-15.310361306967817*a+17.575251261109482*o+131.35250912493976*i-190.9453302588951)+o*(4.444339102852739*o+9.8632861493405*i-24.86741582555878)+i*(-20.737325471181034*i-187.80453709719578)+255,s=s*(.8842522430003296*s+8.078677503112928*a+30.89978309703729*o-.23883238689178934*i-14.183576799673286)+a*(10.49593273432072*a+63.02378494754052*o+50.606957656360734*i-112.23884253719248)+o*(.03296041114873217*o+115.60384449646641*i-193.58209356861505)+i*(-22.33816807309886*i-180.12613974708367)+255,n[r]=255<e?255:e<0?0:e,n[r+1]=255<t?255:t<0?0:t,n[r+2]=255<s?255:s<0?0:s}function te(){this.name="DeviceCMYK",this.numComps=4,this.defaultColor=new Float32Array([0,0,0,1])}function ie(e,t,i){this.name="Lab",this.numComps=3,this.defaultColor=new Float32Array([0,0,0]),e||k("WhitePoint missing - required for color space Lab"),t=t||[0,0,0],i=i||[-100,100,-100,100],this.XW=e[0],this.YW=e[1],this.ZW=e[2],this.amin=i[0],this.amax=i[1],this.bmin=i[2],this.bmax=i[3],this.XB=t[0],this.YB=t[1],this.ZB=t[2],(this.XW<0||this.ZW<0||1!==this.YW)&&k("Invalid WhitePoint components, no fallback available"),(this.XB<0||this.YB<0||this.ZB<0)&&(g("Invalid BlackPoint, falling back to default"),this.XB=this.YB=this.ZB=0),(this.amin>this.amax||this.bmin>this.bmax)&&(g("Invalid Range, falling back to defaults"),this.amin=-100,this.amax=100,this.bmin=-100,this.bmax=100)}function ne(e,t,i,n,r,s){var a=t[i],o=t[i+1];t=t[i+2],!1!==n&&(a=0+100*a/n,o=e.amin+o*(e.amax-e.amin)/n,t=e.bmin+t*(e.bmax-e.bmin)/n),o=o>e.amax?e.amax:o<e.amin?e.amin:o,a=(n=(a+16)/116)-(t=t>e.bmax?e.bmax:t<e.bmin?e.bmin:t)/200,o=e.XW*ye(n+o/500),n=e.YW*ye(n),a=e.ZW*ye(a),o=e.ZW<1?(e=3.1339*o+-1.617*n+-.4906*a,t=-.9785*o+1.916*n+.0333*a,.072*o+-.229*n+1.4057*a):(e=3.2406*o+-1.5372*n+-.4986*a,t=-.9689*o+1.8758*n+.0415*a,.0557*o+-.204*n+1.057*a),r[s]=255*Math.sqrt(e<0?0:1<e?1:e),r[s+1]=255*Math.sqrt(t<0?0:1<t?1:t),r[s+2]=255*Math.sqrt(o<0?0:1<o?1:o)}function T(){k("should not call Pattern constructor")}function re(e,t,i,n,r){this.matrix=t,this.coordsArr=e.get("Coords"),this.shadingType=e.get("ShadingType"),this.type="Pattern",this.ctx=r,t=e.get("ColorSpace","CS"),this.cs=t=S.parse(t,i,n),n=0;var s,a,o,l,c=1,h=(e.has("Domain")&&(n=(r=e.get("Domain"))[0],c=r[1]),r=!1);if(e.has("Extend")&&(r=(h=e.get("Extend"))[0],h=h[1]),3!==this.shadingType||r&&h||(p=this.coordsArr[0],s=this.coordsArr[1],a=this.coordsArr[2],o=this.coordsArr[3],l=this.coordsArr[4],a<=(d=this.coordsArr[5])+(p=Math.sqrt((p-o)*(p-o)+(s-l)*(s-l)))&&d<=a+p&&f("Unsupported radial gradient.")),this.extendStart=r,this.extendEnd=h,m(a=e.get("Function"))){for(var u=[],d=0,p=a.length;d<p;d++)O(s=i.fetchIfRef(a[d]))||k("Invalid function"),u.push(C.parse(i,s));a=function(e){for(var t=[],i=0,n=u.length;i<n;i++)t.push(u[i](e)[0]);return t}}else O(a)||k("Invalid function"),a=C.parse(i,a);if(p=(d=c-n)/10,i=this.colorStops=[],c<=n||p<=0)g("Bad shading domain.");else{for(s=n;s<=c;s+=p)o=t.getRgb(a([s]),0),o=E.makeCssRgb(o),i.push([(s-n)/d,o]);n="transparent",e.has("Background")&&(o=t.getRgb(e.get("Background"),0),n=E.makeCssRgb(o)),r||(i.unshift([0,n]),i[1][0]+=_.SMALL_NUMBER),h||(i[i.length-1][0]-=_.SMALL_NUMBER,i.push([1,n])),this.colorStops=i}}function se(){this.type="Pattern"}function ae(e,t,i,n,r,s){this.name=e[1][0].name,this.operatorList=e[2],this.matrix=e[3]||[1,0,0,1,0,0],this.bbox=e[4],this.xstep=e[5],this.ystep=e[6],this.paintType=e[7],this.tilingType=e[8],this.color=t,this.objs=n,this.commonObjs=r,this.baseTransform=s,this.type="Pattern",this.ctx=i}function oe(){this.cache={},this.total=0}function le(e){this.stack=e||[]}w.prototype={getRgb:function(){k("Should not call ColorSpace.getRgb")},getRgbItem:function(){k("Should not call ColorSpace.getRgbItem")},getRgbBuffer:function(){k("Should not call ColorSpace.getRgbBuffer")},getOutputLength:function(){k("Should not call ColorSpace.getOutputLength")},isPassthrough:function(){return!1},createRgbBuffer:function(e,t,i,n){if(this.isPassthrough(n))return e.subarray(t);var r=new Uint8Array(3*i),s=1<<n;if(1===this.numComps&&s<i&&"DeviceGray"!==this.name&&"DeviceRGB"!==this.name){for(var a=new(n<=8?Uint8Array:Uint16Array)(s),o=0;o<s;o++)a[o]=o;var l=new Uint8Array(3*s);for(this.getRgbBuffer(a,0,s,l,0,n),o=n=0;o<i;++o)s=3*e[t++],r[n++]=l[s],r[n++]=l[s+1],r[n++]=l[s+2]}else this.getRgbBuffer(e,t,i,r,0,n);return r},usesZeroToOneRange:!0},w.parse=function(e,t,i){return(e=w.parseToIR(e,t,i))instanceof ue?e:w.fromIR(e)},w.fromIR=function(e){switch(t=m(e)?e[0]:e){case"DeviceGrayCS":return this.singletons.gray;case"DeviceRgbCS":return this.singletons.rgb;case"DeviceCmykCS":return this.singletons.cmyk;case"PatternCS":return e=(e=e[1])&&w.fromIR(e),new de(e);case"IndexedCS":var t=e[2],i=e[3];return new pe(w.fromIR(e[1]),t,i);case"AlternateCS":return t=e[3],new ue(e[1],w.fromIR(e[2]),C.fromIR(t));case"LabCS":return new ce(e[1].WhitePoint,e[1].BlackPoint,e[1].Range);default:k("Unkown name "+t)}return null},w.parseToIR=function(e,t,i){if(h(e)&&s(r=i.get("ColorSpace"))&&(r=r.get(e.name))&&(e=r),h(e=t.fetchIfRef(e)))switch(this.mode=r=e.name,r){case"DeviceGray":case"G":return"DeviceGrayCS";case"DeviceRGB":case"RGB":return"DeviceRgbCS";case"DeviceCMYK":case"CMYK":return"DeviceCmykCS";case"Pattern":return["PatternCS",null];default:k("unrecognized colorspace "+r)}else if(m(e))switch(this.mode=r=e[0].name,r){case"DeviceGray":case"G":return"DeviceGrayCS";case"DeviceRGB":case"RGB":return"DeviceRgbCS";case"DeviceCMYK":case"CMYK":return"DeviceCmykCS";case"CalGray":return"DeviceGrayCS";case"CalRGB":return"DeviceRgbCS";case"ICCBased":if(1==(r=t.fetchIfRef(e[1]).dict.get("N")))return"DeviceGrayCS";if(3==r)return"DeviceRgbCS";if(4==r)return"DeviceCmykCS";break;case"Pattern":return["PatternCS",e=(e=e[1])&&w.parseToIR(e,t,i)];case"Indexed":case"I":return["IndexedCS",i=w.parseToIR(e[1],t,i),r=e[2]+1,t=o(t=t.fetchIfRef(e[3]))?t.getBytes():t];case"Separation":case"DeviceN":var n=e[1],r=1;return h(n)?r=1:m(n)&&(r=n.length),["AlternateCS",r,i=w.parseToIR(e[2],t,i),t=C.getIR(t,t.fetchIfRef(e[3]))];case"Lab":return["LabCS",e[1].getAll()];default:k('unimplemented color space object "'+r+'"')}else k('unrecognized color space object: "'+e+'"');return null},w.isDefaultDecode=function(e,t){if(e)if(2*t!==e.length)f("The decode map is not the correct length");else for(var i=0,n=e.length;i<n;i+=2)if(0!==e[i]||1!=e[i+1])return!1;return!0},w.singletons={get gray(){return e(this,"gray",new ge)},get rgb(){return e(this,"rgb",new fe)},get cmyk(){return e(this,"cmyk",new me)}};var ce,he,S=w,ue=(X.prototype={getRgb:function(e,t){var i=new Uint8Array(3);return this.getRgbItem(e,t,i,0),i},getRgbItem:function(e,t,i,n){e="subarray"in e?e.subarray(t,t+this.numComps):Array.prototype.slice.call(e,t,t+this.numComps),e=this.tintFn(e),this.base.getRgbItem(e,0,i,n)},getRgbBuffer:function(e,t,i,n,r,s){var a=this.tintFn,o=this.base;s=1/((1<<s)-1);for(var l=o.numComps,c=o.usesZeroToOneRange,h=o.isPassthrough(8)||!c,u=h?r:0,d=h?n:new Uint8Array(l*i),p=this.numComps,g=new Float32Array(p),f=0;f<i;f++){for(var m=0;m<p;m++)g[m]=e[t++]*s;var y=a(g);if(c)for(m=0;m<l;m++)d[u++]=255*y[m];else o.getRgbItem(y,0,d,u),u+=l}h||o.getRgbBuffer(d,0,i,n,r,8)},getOutputLength:function(e){return this.base.getOutputLength(e*this.base.numComps/this.numComps)},isPassthrough:S.prototype.isPassthrough,createRgbBuffer:S.prototype.createRgbBuffer,isDefaultDecode:function(e){return S.isDefaultDecode(e,this.numComps)},usesZeroToOneRange:!0},X),de=(K.prototype={},K),pe=(Z.prototype={getRgb:function(e,t){return this.base.getRgb(this.lookup,e[t]*this.base.numComps)},getRgbItem:function(e,t,i,n){this.base.getRgbItem(this.lookup,e[t]*this.base.numComps,i,n)},getRgbBuffer:function(e,t,i,n,r){for(var s=this.base,a=s.numComps,o=s.getOutputLength(a),l=this.lookup,c=0;c<i;++c){var h=e[t++]*a;s.getRgbBuffer(l,h,1,n,r,8),r+=o}},getOutputLength:function(e){return this.base.getOutputLength(e*this.base.numComps)},isPassthrough:S.prototype.isPassthrough,createRgbBuffer:S.prototype.createRgbBuffer,isDefaultDecode:function(){return!0},usesZeroToOneRange:!0},Z),ge=(Q.prototype={getRgb:function(e,t){var i=new Uint8Array(3);return this.getRgbItem(e,t,i,0),i},getRgbItem:function(e,t,i,n){e=255*e[t]|0,i[n]=i[n+1]=i[n+2]=e<0?0:255<e?255:e},getRgbBuffer:function(e,t,i,n,r,s){s=255/((1<<s)-1);for(var a=0;a<i;++a){var o=s*e[t++]|0;n[r++]=o,n[r++]=o,n[r++]=o}},getOutputLength:function(e){return 3*e},isPassthrough:S.prototype.isPassthrough,createRgbBuffer:S.prototype.createRgbBuffer,isDefaultDecode:function(e){return S.isDefaultDecode(e,this.numComps)},usesZeroToOneRange:!0},Q),fe=(J.prototype={getRgb:function(e,t){var i=new Uint8Array(3);return this.getRgbItem(e,t,i,0),i},getRgbItem:function(e,t,i,n){var r=255*e[t]|0,s=255*e[t+1]|0;e=255*e[t+2]|0,i[n]=r<0?0:255<r?255:r,i[n+1]=s<0?0:255<s?255:s,i[n+2]=e<0?0:255<e?255:e},getRgbBuffer:function(e,t,i,n,r,s){if(i*=3,8==s)n.set(e.subarray(t,t+i),r);else{s=255/((1<<s)-1);for(var a=0;a<i;++a)n[r++]=s*e[t++]|0}},getOutputLength:function(e){return e},isPassthrough:function(e){return 8==e},createRgbBuffer:S.prototype.createRgbBuffer,isDefaultDecode:function(e){return S.isDefaultDecode(e,this.numComps)},usesZeroToOneRange:!0},J),me=(te.prototype={getRgb:function(e,t){var i=new Uint8Array(3);return ee(e,t,1,i,0),i},getRgbItem:function(e,t,i,n){ee(e,t,1,i,n)},getRgbBuffer:function(e,t,i,n,r,s){s=1/((1<<s)-1);for(var a=0;a<i;a++)ee(e,t,s,n,r),t+=4,r+=3},getOutputLength:function(e){return 3*(e>>2)},isPassthrough:S.prototype.isPassthrough,createRgbBuffer:S.prototype.createRgbBuffer,isDefaultDecode:function(e){return S.isDefaultDecode(e,this.numComps)},usesZeroToOneRange:!0},te),ye=function(e){return 6/29<=e?e*e*e:108/841*(e-4/29)},_=(ie.prototype={getRgb:function(e,t){var i=new Uint8Array(3);return ne(this,e,t,!1,i,0),i},getRgbItem:function(e,t,i,n){ne(this,e,t,!1,i,n)},getRgbBuffer:function(e,t,i,n,r,s){s=(1<<s)-1;for(var a=0;a<i;a++)ne(this,e,t,s,n,r),t+=3,r+=3},getOutputLength:function(e){return e},isPassthrough:S.prototype.isPassthrough,isDefaultDecode:function(){return!0},usesZeroToOneRange:!1},ce=ie,T.prototype={getPattern:function(e){k("Should not call Pattern.getStyle: "+e)}},T.shadingFromIR=function(e){return _[e[0]].fromIR(e)},T.parseShading=function(e,t,i,n){var r=(e=o(e)?e.dict:e).get("ShadingType");switch(r){case 2:case 3:return new _.RadialAxial(e,t,i,n);default:return b("Unsupported shading type: "+r),new _.Dummy}},{SMALL_NUMBER:.01}),i=_,i=(re.fromIR=function(e){var r=e[1],s=e[2],a=e[3],o=e[4],l=e[5],c=e[6];return{type:"Pattern",getPattern:function(e){var t;2==r?t=e.createLinearGradient(a[0],a[1],o[0],o[1]):3==r&&(t=e.createRadialGradient(a[0],a[1],l,o[0],o[1],c)),e=0;for(var i=s.length;e<i;++e){var n=s[e];t.addColorStop(n[0],n[1])}return t}}},re.prototype={getIR:function(){var e,t,i,n,r=this.coordsArr,s=this.shadingType;return 2==s?(e=[r[0],r[1]],t=[r[2],r[3]],n=i=null):3==s?(e=[r[0],r[1]],t=[r[3],r[4]],i=r[2],n=r[5]):k("getPattern type unknown: "+s),(r=this.matrix)&&(e=E.applyTransform(e,r),t=E.applyTransform(t,r)),["RadialAxial",s,this.colorStops,e,t,i,n]}},i.RadialAxial=re,_),C=(se.fromIR=function(){return{type:"Pattern",getPattern:function(){return"hotpink"}}},se.prototype={getIR:function(){return["Dummy"]}},i.Dummy=se,ae.getIR=function(e,t,i){return["TilingPattern",i,e,t.get("Matrix"),t.get("BBox"),t.get("XStep"),t.get("YStep"),t.get("PaintType"),t=t.get("TilingType")]},ae.prototype={createPatternCanvas:function(e){var t=this.operatorList,i=this.bbox,n=this.xstep,r=this.ystep,s=this.paintType,a=this.color,o=this.objs,l=this.commonObjs,c=(b("TilingType: "+this.tilingType),i[0]),h=i[1],u=i[2],d=i[3],p=[c,h],g=(f=[c+n,h+r])[0]-p[0],f=f[1]-p[1],m=E.singularValueDecompose2dScale(this.matrix),y=E.singularValueDecompose2dScale(this.baseTransform),m=[m[0]*y[0],m[1]*y[1]],g=Math.min(Math.ceil(Math.abs(g*m[0])),3e3),f=Math.min(Math.ceil(Math.abs(f*m[1])),3e3),y=(m=I.getCanvas("pattern",g,f,!0)).context;return(o=new Ye(y,l,o)).groupLevel=e.groupLevel,this.setFillAndStrokeStyleToContext(y,s,a),this.setScale(g,f,n,r),this.transformToScale(o),o.transform.apply(o,[1,0,0,1,-p[0],-p[1]]),this.clipBbox(o,i,c,h,u,d),o.executeOperatorList(t),m.canvas},setScale:function(e,t,i,n){this.scale=[e/i,t/n]},transformToScale:function(e){var t=this.scale;e.transform.apply(e,[t[0],0,0,t[1],0,0])},scaleToContext:function(){var e=this.scale;this.ctx.scale(1/e[0],1/e[1])},clipBbox:function(e,t,i,n,r,s){t&&m(t)&&4==t.length&&(e.rectangle(i,n,r-i,s-n),e.clip(),e.endPath())},setFillAndStrokeStyleToContext:function(e,t,i){switch(t){case 1:t=this.ctx,e.fillStyle=t.fillStyle,e.strokeStyle=t.strokeStyle;break;case 2:t=S.singletons.rgb.getRgb(i,0),t=E.makeCssRgb(t),e.fillStyle=t,e.strokeStyle=t;break;default:k("Unsupported paint type: "+t)}},getPattern:function(e,t){t=this.createPatternCanvas(t);return(e=this.ctx).setTransform.apply(e,this.baseTransform),e.transform.apply(e,this.matrix),this.scaleToContext(),e.createPattern(t,"repeat")}},{getSampleArray:function(e,t,i,n){for(var r=1,s=0,a=e.length;s<a;s++)r*=e[s];r*=t,e=[];var a=t=0,o=1/(Math.pow(2,i)-1);n=n.getBytes((r*i+7)/8);for(var l=0,s=0;s<r;s++){for(;t<i;)a=(a<<=8)|n[l++],t+=8;t-=i,e.push((a>>t)*o),a&=(1<<t)-1}return e},getIR:function(e,t){var i=(i=t.dict)||t,n=[this.constructSampled,null,this.constructInterpolated,this.constructStiched,this.constructPostScript];return(n=n[i.get("FunctionType")])||k("Unknown type of function"),n.call(this,t,i,e)},fromIR:function(e){switch(e[0]){case 0:return this.constructSampledFromIR(e);case 2:return this.constructInterpolatedFromIR(e);case 3:return this.constructStichedFromIR(e);default:return this.constructPostScriptFromIR(e)}},parse:function(e,t){e=this.getIR(e,t);return this.fromIR(e)},constructSampled:function(e,t){function i(e){for(var t=e.length,i=[],n=0,r=0;r<t;r+=2)i[n]=[e[r],e[r+1]],++n;return i}var n=t.get("Domain"),r=t.get("Range"),s=(n&&r||k("No domain or range"),n.length/2),a=r.length/2,n=i(n),r=i(r),o=t.get("Size"),l=t.get("BitsPerSample");if(1!==(c=t.get("Order")||1)&&b("No support for cubic spline interpolation: "+c),!(c=t.get("Encode")))for(var c=[],h=0;h<s;++h)c.push(0),c.push(o[h]-1);return[0,s,n,c=i(c),h=(h=t.get("Decode"))?i(h):r,this.getSampleArray(o,a,l,e),o,a,Math.pow(2,l)-1,r]},constructSampledFromIR:function(w){return function(e){var t=w[1],i=w[2],n=w[3],r=w[4],s=w[5],a=w[6],o=w[7],l=w[9];t!=e.length&&k("Incorrect number of arguments: "+t+" != "+e.length);for(var c=1<<t,h=new Float64Array(c),u=new Uint32Array(c),d=0;d<c;d++)h[d]=1;for(var p=o,g=1,f=0;f<t;++f){for(var d=i[f][0],m=i[f][1],y=Math.min(Math.max(e[f],d),m),b=n[f][0]+(y-d)*((n[f][1]-n[f][0])/(m-d)),m=a[f],y=(d=(b=Math.min(Math.max(b,0),m-1))<m-1?Math.floor(b):b-1)+1-b,b=b-d,v=d*p,x=v+p,d=0;d<c;d++)d&g?(h[d]*=b,u[d]+=x):(h[d]*=y,u[d]+=v);p*=m,g<<=1}for(e=new Float64Array(o),d=0;d<o;++d){for(f=t=0;f<c;f++)t+=s[u[f]+d]*h[f];t=r[d][0]+ +t*(r[d][1]-r[d][0]),e[d]=Math.min(Math.max(t,l[d][0]),l[d][1])}return e}},constructInterpolated:function(e,t){var i=t.get("C0")||[0],n=t.get("C1")||[1],t=t.get("N");m(i)&&m(n)||k("Illegal dictionary for interpolated function");for(var r=i.length,s=[],a=0;a<r;++a)s.push(n[a]-i[a]);return[2,i,s,t]},constructInterpolatedFromIR:function(e){var n=e[1],r=e[2],s=e[3],a=r.length;return function(e){e=1==s?e[0]:Math.pow(e[0],s);for(var t=[],i=0;i<a;++i)t.push(n[i]+e*r[i]);return t}},constructStiched:function(e,t,i){(e=t.get("Domain"))||k("No domain"),1!=e.length/2&&k("Bad domain for stiched function");for(var n=t.get("Functions"),r=[],s=0,a=n.length;s<a;++s)r.push(C.getIR(i,i.fetchIfRef(n[s])));return[3,e,i=t.get("Bounds"),t=t.get("Encode"),r]},constructStichedFromIR:function(e){var s=e[1],a=e[2],o=e[3];e=e[4];for(var l=[],t=0,i=e.length;t<i;t++)l.push(C.fromIR(e[t]));return function(e){e=e[0];var t=s[0],i=s[1];for(i<e?e=i:e<t&&(e=t),t=0,i=a.length;t<i&&!(e<a[t]);++t);i=s[0],0<t&&(i=a[t-1]);var n=s[1],r=(t<a.length&&(n=a[t]),o[2*t]);return l[t]([r+(e-i)*(o[2*t+1]-r)/(n-i)])}},constructPostScript:function(e,t){var i=t.get("Domain"),t=t.get("Range"),e=(i||k("No domain."),t||k("No range."),new Se(e));return[4,i,t,new xe(e).parse()]},constructPostScriptFromIR:function(e){var a=e[1],o=e[2],l=o.length/2,c=new we(e[3]),h=new he;return function(e){for(var t=[],i=0,n=a.length/2;i<n;++i)t.push(e[i]);if(e=t.join("_"),h.has(e))return h.get(e);for(t=c.execute(t),n=[],i=l-1;0<=i;--i){var r=t.pop(),s=2*i;r<o[s]?r=o[s]:r>o[1+s]&&(r=o[1+s]),n[i]=r}return h.set(e,n),n}}});oe.prototype={has:function(e){return e in this.cache},get:function(e){return this.cache[e]},set:function(e,t){this.total<1024&&(this.cache[e]=t,this.total++)}},he=oe;le.prototype={push:function(e){100<=this.stack.length&&k("PostScript function stack overflow."),this.stack.push(e)},pop:function(){return this.stack.length<=0&&k("PostScript function stack underflow."),this.stack.pop()},copy:function(e){100<=this.stack.length+e&&k("PostScript function stack overflow.");var t=this.stack,i=t.length-e;for(--e;0<=e;e--,i++)t.push(t[i])},index:function(e){this.push(this.stack[this.stack.length-e-1])},roll:function(e,t){for(var i,n=this.stack,r=n.length-e,s=n.length-1,t=r+(t-Math.floor(t/e)*e),a=r,o=s;a<o;a++,o--)i=n[a],n[a]=n[o],n[o]=i;for(a=r,o=t-1;a<o;a++,o--)i=n[a],n[a]=n[o],n[o]=i;for(a=t,o=s;a<o;a++,o--)i=n[a],n[a]=n[o],n[o]=i}};function be(e,t){this.operators=e,this.operands=t}function ve(e){this.lexer=e,this.operators=[],this.prev=this.token=null}function $(e,t){this.type=e,this.value=t}be.prototype={execute:function(e){e=new le(e);for(var t,i,n=0,r=this.operators,s=r.length;n<s;)if("number"==typeof(t=r[n++]))e.push(t);else switch(t){case"jz":i=e.pop(),(t=e.pop())||(n=i);break;case"j":n=t=e.pop();break;case"abs":t=e.pop(),e.push(Math.abs(t));break;case"add":i=e.pop(),t=e.pop(),e.push(t+i);break;case"and":i=e.pop(),a(t=e.pop())&&a(i)?e.push(t&&i):e.push(t&i);break;case"atan":t=e.pop(),e.push(Math.atan(t));break;case"bitshift":i=e.pop(),0<(t=e.pop())?e.push(t<<i):e.push(t>>i);break;case"ceiling":t=e.pop(),e.push(Math.ceil(t));break;case"copy":t=e.pop(),e.copy(t);break;case"cos":t=e.pop(),e.push(Math.cos(t));break;case"cvi":t=0|e.pop(),e.push(t);break;case"cvr":break;case"div":i=e.pop(),t=e.pop(),e.push(t/i);break;case"dup":e.copy(1);break;case"eq":i=e.pop(),t=e.pop(),e.push(t==i);break;case"exch":e.roll(2,1);break;case"exp":i=e.pop(),t=e.pop(),e.push(Math.pow(t,i));break;case"false":e.push(!1);break;case"floor":t=e.pop(),e.push(Math.floor(t));break;case"ge":i=e.pop(),t=e.pop(),e.push(i<=t);break;case"gt":i=e.pop(),t=e.pop(),e.push(i<t);break;case"idiv":i=e.pop(),t=e.pop(),e.push(t/i|0);break;case"index":t=e.pop(),e.index(t);break;case"le":i=e.pop(),t=e.pop(),e.push(t<=i);break;case"ln":t=e.pop(),e.push(Math.log(t));break;case"log":t=e.pop(),e.push(Math.log(t)/Math.LN10);break;case"lt":i=e.pop(),t=e.pop(),e.push(t<i);break;case"mod":i=e.pop(),t=e.pop(),e.push(t%i);break;case"mul":i=e.pop(),t=e.pop(),e.push(t*i);break;case"ne":i=e.pop(),t=e.pop(),e.push(t!=i);break;case"neg":e.pop(),e.push(-i);break;case"not":a(t=e.pop())&&a(i)?e.push(t&&i):e.push(t&i);break;case"or":i=e.pop(),a(t=e.pop())&&a(i)?e.push(t||i):e.push(t|i);break;case"pop":e.pop();break;case"roll":i=e.pop(),t=e.pop(),e.roll(t,i);break;case"round":t=e.pop(),e.push(Math.round(t));break;case"sin":t=e.pop(),e.push(Math.sin(t));break;case"sqrt":t=e.pop(),e.push(Math.sqrt(t));break;case"sub":i=e.pop(),t=e.pop(),e.push(t-i);break;case"true":e.push(!0);break;case"truncate":t=(t=e.pop())<0?Math.ceil(t):Math.floor(t),e.push(t);break;case"xor":i=e.pop(),a(t=e.pop())&&a(i)?e.push(t!=i):e.push(t^i);break;default:k("Unknown operator "+t)}return e.stack}};var xe,we=be,L=(ve.prototype={nextToken:function(){this.prev=this.token,this.token=this.lexer.getToken()},accept:function(e){return this.token.type==e&&(this.nextToken(),!0)},expect:function(e){if(this.accept(e))return!0;k("Unexpected symbol: found "+this.token.type+" expected "+e+".")},parse:function(){return this.nextToken(),this.expect(L.LBRACE),this.parseBlock(),this.expect(L.RBRACE),this.operators},parseBlock:function(){for(;;)if(this.accept(L.NUMBER))this.operators.push(this.prev.value);else if(this.accept(L.OPERATOR))this.operators.push(this.prev.value);else{if(!this.accept(L.LBRACE))break;this.parseCondition()}},parseCondition:function(){var e,t,i=this.operators.length;this.operators.push(null,null),this.parseBlock(),this.expect(L.RBRACE),this.accept(L.IF)?(this.operators[i]=this.operators.length,this.operators[i+1]="jz"):this.accept(L.LBRACE)?(e=this.operators.length,this.operators.push(null,null),t=this.operators.length,this.parseBlock(),this.expect(L.RBRACE),this.expect(L.IFELSE),this.operators[e]=this.operators.length,this.operators[e+1]="j",this.operators[i]=t,this.operators[i+1]="jz"):k("PS Function: error parsing conditional.")}},xe=ve,{LBRACE:0,RBRACE:1,NUMBER:2,OPERATOR:3,IF:4,IFELSE:5}),ke={};$.getOperator=function(e){var t=ke[e];return t||(ke[e]=new $(L.OPERATOR,e))},$.LBRACE=new $(L.LBRACE,"{"),$.RBRACE=new $(L.RBRACE,"}"),$.IF=new $(L.IF,"IF"),$.IFELSE=new $(L.IFELSE,"IFELSE");function Te(e){this.stream=e,this.nextChar()}Te.prototype={nextChar:function(){return this.currentChar=this.stream.getByte()},getToken:function(){for(var e=!1,t=this.currentChar;;){if(t<0)return EOF;if(e)10!==t&&13!==t||(e=!1);else if(37==t)e=!0;else if(!Lexer.isSpace(t))break;t=this.nextChar()}switch(0|t){case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:case 43:case 45:case 46:return new $(L.NUMBER,this.getNumber());case 123:return this.nextChar(),$.LBRACE;case 125:return this.nextChar(),$.RBRACE}for(e=String.fromCharCode(t);0<=(t=this.nextChar())&&(65<=t&&t<=90||97<=t&&t<=122);)e+=String.fromCharCode(t);switch(e.toLowerCase()){case"if":return $.IF;case"ifelse":return $.IFELSE;default:return $.getOperator(e)}},getNumber:function(){for(var e=this.currentChar,t=String.fromCharCode(e);0<=(e=this.nextChar())&&(48<=e&&e<=57||45===e||46===e);)t+=String.fromCharCode(e);return e=parseFloat(t),isNaN(e)&&k("Invalid floating point number: "+e),e}},Se=Te;var Se,R=function(e){var t,i,n;e.data?this.data=e.data:(t=e.dict,(e=this.data={}).subtype=t.get("Subtype").name,i=t.get("Rect"),e.rect=E.normalizeRect(i),e.annotationFlags=t.get("F"),i=t.get("C"),e.color=m(i)&&3===i.length?i:[0,0,0],t.has("BS")?(i=t.get("BS"),e.borderWidth=i.has("W")?i.get("W"):1):(i=t.get("Border")||[0,0,1],e.borderWidth=i[2]||0),s(i=t.get("AP"))?s(i=i.get("N"))?(t=t.get("AS"))&&i.has(t.name)&&(n=i.get(t.name)):n=i:n=void 0,this.appearance=n,e.hasAppearance=!!this.appearance)};R.prototype={getData:function(){return this.data},hasHtml:function(){return!1},getHtmlElement:function(){throw new t("getHtmlElement() should be implemented in subclass")},getEmptyContainer:function(e,t){v&&k("getEmptyContainer() should be called from main thread"),t=t||this.data.rect;e=document.createElement(e);return e.style.width=Math.ceil(t[2]-t[0])+"px",e.style.height=Math.ceil(t[3]-t[1])+"px",e},isViewable:function(){var e=this.data;return!(!e||e.annotationFlags&&34&e.annotationFlags||!e.rect)},loadResources:function(t){var i=new x;return this.appearance.dict.getAsync("Resources").then(function(e){e?new ObjectLoader(e.map,t,e.xref).load().then(function(){i.resolve(e)}):i.resolve()}.bind(this)),i},getOperatorList:function(i){var n,e,r,t,s,a,o,l,c,h=new x;return this.appearance?(n=this.data,t=this.appearance.dict,e=this.loadResources("ExtGState ColorSpace Pattern Shading XObject Font".split(" ")),s=t.get("BBox")||[0,0,1,1],r=t.get("Matrix")||[1,0,0,1,0,0],t=n.rect,s=(l=E.getAxialAlignedBoundingBox(s,r))[0],a=l[1],o=l[2],l=l[3],c=s===o||a===l?[1,0,0,1,t[0],t[1]]:[o=(t[2]-t[0])/(o-s),0,0,l=(t[3]-t[1])/(l-a),t[0]-s*o,t[1]-a*l],e.then(function(e){var t=new OperatorList;t.addOp("beginAnnotation",[n.rect,c,r]),i.getOperatorList(this.appearance,e,t),t.addOp("endAnnotation",[]),h.resolve(t)}.bind(this))):h.resolve(new OperatorList),h}},R.getConstructor=function(e,t){if(e)return"Link"===e?Re:"Text"===e?De:"Widget"!==e?R:t?"Tx"===t?Ne:Ie:void 0},R.fromData=function(e){var t=R.getConstructor(e.subtype,e.fieldType);if(t)return new t({data:e})},R.fromRef=function(e,t){e=e.fetchIfRef(t);if(s(e)){var i=e.get("Subtype");if(i=h(i)?i.name:""){var n=h(n=E.getInheritableProperty(e,"FT"))?n.name:"";if(n=R.getConstructor(i,n)){if((e=new n({dict:e,ref:t})).isViewable())return e;b("unimplemented annotation type: "+i)}}}},R.appendToOperatorList=function(e,n,t,i){var r=new x;t=[];for(var s=0,a=e.length;s<a;++s)t.push(e[s].getOperatorList(i));return x.all(t).then(function(e){n.addOp("beginAnnotations",[]);for(var t=0,i=e.length;t<i;++t)n.addOpList(e[t]);n.addOp("endAnnotations",[]),r.resolve()},function(e){r.reject(e)}),r};function _e(e){if(R.call(this,e),!e.data){var t=e.dict,i=this.data,n=(i.fieldValue=c(E.getInheritableProperty(t,"V")||""),i.alternativeText=c(t.get("TU")||""),i.defaultAppearance=E.getInheritableProperty(t,"DA")||"",E.getInheritableProperty(t,"FT")),n=(i.fieldType=h(n)?n.name:"",i.fieldFlags=E.getInheritableProperty(t,"Ff")||0,this.fieldResources=E.getInheritableProperty(t,"DR")||new Dict,[]),r=t;for(e=e.ref;r;){var t=r.get("Parent"),s=r.getRaw("Parent");if(r=r.get("T"))n.unshift(c(r));else{for(var a=0,o=(r=t.get("Kids")).length;a<o;a++){var l=r[a];if(l.num==e.num&&l.gen==e.gen)break}n.unshift("`"+a)}r=t,e=s}i.fullName=n.join(".")}}function Ce(e){Ie.call(this,e),e.data||(this.data.textAlignment=E.getInheritableProperty(e.dict,"Q"))}function Ae(e){var t,i,n;R.call(this,e),e.data||(e=e.dict,t=this.data,i=e.get("Contents"),n=e.get("T"),t.content=c(i||""),t.title=c(n||""),t.name=e.has("Name")?e.get("Name").name:"Note")}function Ee(e){var t,i,n;R.call(this,e),e.data||(t=e.dict,e=this.data,(i=t.get("A"))?"URI"===(t=i.get("S").name)?(r(n=i.get("URI"),!1)||(n=""),e.url=n):"GoTo"===t?e.dest=i.get("D"):"GoToR"===t?(r(n=s(t=i.get("F"))?t.get("F")||"":n,!1)||(n=""),e.url=n,e.dest=i.get("D")):"Named"===t?e.action=i.get("N").name:b("unrecognized link type: "+t):t.has("Dest")&&(n=t.get("Dest"),e.dest=h(n)?n.name:n))}function $e(e,t){this.pdfInfo=e,this.transport=t}function Le(e,t){this.pageInfo=e,this.transport=t,this.stats=new Y,this.stats.enabled=!!y.PDFJS.enableStats,this.commonObjs=t.commonObjs,this.objs=new Ue,this.pendingDestroy=this.cleanupAfterRender=this.receivingOperatorList=!1,this.renderTasks=[]}var Re,Me=(PDFJS.Annotation=R).prototype,Ie=(E.inherit(_e,R,{isViewable:function(){return"Sig"===this.data.fieldType?(b("unimplemented annotation type: Widget signature"),!1):Me.isViewable.call(this)}}),_e),Ne=(E.inherit(Ce,Ie,{hasHtml:function(){return!this.data.hasAppearance&&!!this.data.fieldValue},getHtmlElement:function(e){v&&k("getHtmlElement() shall be called from main thread");var t=this.data,i=this.getEmptyContainer("div"),n=(i.style.display="table",document.createElement("div")),r=(n.textContent=t.fieldValue,n.style.textAlign=["left","center","right"][t.textAlignment],n.style.verticalAlign="middle",n.style.display="table-cell",e=t.fontRefName?e.getData(t.fontRefName):null,n.style);return r.fontSize=t.fontSize+"px",r.direction=t.fontDirection<0?"rtl":"ltr",e&&(r.fontWeight=e.black?e.bold?"bolder":"bold":e.bold?"bold":"normal",r.fontStyle=e.italic?"italic":"normal",t=e.loadedName,r.fontFamily=(t?'"'+t+'", ':"")+(e.fallbackName||"Helvetica, sans-serif")),i.appendChild(n),i},getOperatorList:function(e){if(this.appearance)return R.prototype.getOperatorList.call(this,e);var t=new x,i=new OperatorList,n=this.data,r=n.defaultAppearance;if(r){for(var s=Stream,a=r.length,o=new Uint8Array(a),l=0;l<a;++l)o[l]=255&r.charCodeAt(l);for(r=new s(o),e.getOperatorList(r,this.fieldResources,i),e=i.fnArray,r=i.argsArray,n.rgb=[0,0,0],s=0;s<0;++s)a=e[s],o=r[s],"setFont"===a?(n.fontRefName=o[0],(a=o[1])<0?(n.fontDirection=-1,n.fontSize=-a):(n.fontDirection=1,n.fontSize=a)):"setFillRGBColor"===a?n.rgb=o:"setFillGray"===a&&(a=255*o[0],n.rgb=[a,a,a])}return t.resolve(i),t}}),Ce),De=(E.inherit(Ae,R,{getOperatorList:function(){var e=new x;return e.resolve(new OperatorList),e},hasHtml:function(){return!0},getHtmlElement:function(){v&&k("getHtmlElement() shall be called from main thread");(a=(s=this.data).rect)[3]-a[1]<10&&(a[3]=a[1]+10),a[2]-a[0]<10&&(a[2]=a[0]+(a[3]-a[1]));var t=this.getEmptyContainer("section",a),e=(t.className="annotText",document.createElement("img")),i=(e.style.height=t.style.height,s.name),n=(e.src=PDFJS.imageResourcesPath+"annotation-"+i.toLowerCase()+".svg",e.alt="[{{type}} Annotation]",e.dataset.l10nId="text_annotation_type",e.dataset.l10nArgs=JSON.stringify({type:i}),document.createElement("div")),i=(n.setAttribute("hidden",!0),document.createElement("h1")),r=document.createElement("p");if(n.style.left=Math.floor(a[2]-a[0])+"px",n.style.top="0px",i.textContent=s.title,s.content||s.title){for(var s,a=document.createElement("span"),o=0,l=(s=s.content.split(/(?:\r\n?|\n)/)).length;o<l;++o)a.appendChild(document.createTextNode(s[o])),o<l-1&&a.appendChild(document.createElement("br"));r.appendChild(a),n.addEventListener("mouseover",a=function(){t.style.zIndex+=1,n.removeAttribute("hidden")},!(s=function(e){(e.toElement||e.relatedTarget)&&(--t.style.zIndex,n.setAttribute("hidden",!0))})),n.addEventListener("mouseout",s,!1),e.addEventListener("mouseover",a,!1),e.addEventListener("mouseout",s,!1)}else n.setAttribute("hidden",!0);return n.appendChild(i),n.appendChild(r),t.appendChild(e),t.appendChild(n),t}}),Ae);E.inherit(Ee,R,{hasOperatorList:function(){return!1},hasHtml:function(){return!0},getHtmlElement:function(){var e=this.data.rect,t=document.createElement("a"),i=this.data.borderWidth;t.style.borderWidth=i+"px";for(var n=this.data.color,r=[],s=0;s<3;++s)r[s]=Math.round(255*n[s]);return t.style.borderColor=E.makeCssRgb(r),t.style.borderStyle="solid",n=e[3]-e[1]-2*i,t.style.width=e[2]-e[0]-2*i+"px",t.style.height=n+"px",t.href=this.data.url||"",t}}),Re=Ee,PDFJS.maxImageSize=void 0===PDFJS.maxImageSize?-1:PDFJS.maxImageSize,PDFJS.disableFontFace=void 0!==PDFJS.disableFontFace&&PDFJS.disableFontFace,PDFJS.getDocument=function(e,t,i,n){"string"==typeof e?e={url:e}:"object"==typeof e&&null!=e&&"byteLength"in e?e={data:e}:"object"!=typeof e&&k("Invalid parameter in getDocument, need either Uint8Array, string or a parameter object"),e.url||e.data||k("Invalid parameter array, need either .data or .url");var r,s,a,o,l,c,h={};for(r in e)h[r]="url"===r&&"undefined"!=typeof window?(a=window.location.href,o=e[r],l=void 0,c=void 0,o?0<=o.indexOf(":")?o:"/"==o.charAt(0)?(c=a.indexOf("://"),c=a.indexOf("/",c+3),a.substring(0,c)+o):(l=a.length,c=a.lastIndexOf("#"),c=a.lastIndexOf("?",l=0<=c?c:l),c=a.lastIndexOf("/",0<=c?c:l),a.substring(0,c+1)+o):a):e[r];return e=new PDFJS.Promise,r=new PDFJS.Promise,s=new He(e,r,t,n),e.then(function(){s.passwordCallback=i,s.fetchDocument(h)}),r},$e.prototype={get numPages(){return this.pdfInfo.numPages},get fingerprint(){return this.pdfInfo.fingerprint},get embeddedFontsUsed(){return this.transport.embeddedFontsUsed},getPage:function(e){return this.transport.getPage(e)},getDestinations:function(){return this.transport.getDestinations()},getJavaScript:function(){var e=new PDFJS.Promise;return e.resolve(this.pdfInfo.javaScript),e},getOutline:function(){var e=new PDFJS.Promise;return e.resolve(this.pdfInfo.outline),e},getMetadata:function(){var e=new PDFJS.Promise,t=this.pdfInfo.metadata;return e.resolve({info:this.pdfInfo.info,metadata:t?new PDFJS.Metadata(t):null}),e},isEncrypted:function(){var e=new PDFJS.Promise;return e.resolve(this.pdfInfo.encrypted),e},getData:function(){var e=new PDFJS.Promise;return this.transport.getData(e),e},dataLoaded:function(){return this.transport.dataLoaded()},destroy:function(){this.transport.destroy()}};Le.prototype={get pageNumber(){return this.pageInfo.pageIndex+1},get rotate(){return this.pageInfo.rotate},get ref(){return this.pageInfo.ref},get view(){return this.pageInfo.view},getViewport:function(e,t){return arguments.length<2&&(t=this.rotate),new PDFJS.PageViewport(this.view,e,t,0,0)},getAnnotations:function(){var e;return this.annotationsPromise||(e=new PDFJS.Promise,this.annotationsPromise=e,this.transport.getAnnotations(this.pageInfo.pageIndex),e)},render:function(e){function t(e){var t=s.renderTasks.indexOf(n);0<=t&&s.renderTasks.splice(t,1),s.cleanupAfterRender&&(s.pendingDestroy=!0),s._tryDestroy(),e?r.reject(e):r.resolve(),i.timeEnd("Rendering"),i.timeEnd("Overall")}var i=this.stats,n=(i.time("Overall"),this.pendingDestroy=!1,this.displayReadyPromise||(this.receivingOperatorList=!0,this.displayReadyPromise=new x,this.operatorList={fnArray:[],argsArray:[],lastChunk:!1},this.stats.time("Page Request"),this.transport.messageHandler.send("RenderPageRequest",{pageIndex:this.pageNumber-1})),new ze(t,e,this.objs,this.commonObjs,this.operatorList,this.pageNumber)),r=(this.renderTasks.push(n),new qe(n)),s=this;return this.displayReadyPromise.then(function(e){s.pendingDestroy?t():(i.time("Rendering"),n.initalizeGraphics(e),n.operatorListChanged())},function(e){t(e)}),r},getTextContent:function(){var t=new PDFJS.Promise;return this.transport.messageHandler.send("GetTextContent",{pageIndex:this.pageNumber-1},function(e){t.resolve(e)}),t},getOperationList:function(){var e=new PDFJS.Promise;return e.resolve({dependencyFontsID:null,operatorList:null}),e},destroy:function(){this.pendingDestroy=!0,this._tryDestroy()},_tryDestroy:function(){this.pendingDestroy&&0===this.renderTasks.length&&!this.receivingOperatorList&&(delete this.operatorList,delete this.displayReadyPromise,this.objs.clear(),this.pendingDestroy=!1)},_startRenderPage:function(e){this.displayReadyPromise.resolve(e)},_renderPageChunk:function(e){E.concatenateToArray(this.operatorList.fnArray,e.fnArray),E.concatenateToArray(this.operatorList.argsArray,e.argsArray),this.operatorList.lastChunk=e.lastChunk;for(var t=0;t<this.renderTasks.length;t++)this.renderTasks[t].operatorListChanged();e.lastChunk&&(this.receivingOperatorList=!1,this._tryDestroy())}};function Oe(t,e,i,n){if(this.pdfDataRangeTransport=i,this.workerReadyPromise=e,this.progressCallback=n,this.commonObjs=new Ue,this.pageCache=[],this.pagePromises=[],this.embeddedFontsUsed=!1,this.passwordCallback=null,!y.PDFJS.disableWorker&&"undefined"!=typeof Worker){void 0===(e=PDFJS.workerSrc)&&k("No PDFJS.workerSrc specified");try{var r=new Worker(e),s=new l("main",r),a=((this.messageHandler=s).on("test",function(e){e?(this.worker=r,this.setupMessageHandler(s)):(y.PDFJS.disableWorker=!0,this.setupFakeWorker()),t.resolve()}.bind(this)),new Uint8Array(1));return void s.send("test",a)}catch(e){g("The worker has been disabled.")}}y.PDFJS.disableWorker=!0,this.loadFakeWorkerFiles().then(function(){this.setupFakeWorker(),t.resolve()}.bind(this))}function Pe(){this.objs={}}function Be(e){this.internalRenderTask=e,x.call(this)}function Fe(e,t,i,n,r,s){this.callback=e,this.params=t,this.objs=i,this.commonObjs=n,this.operatorListIdx=null,this.operatorList=r,this.pageNumber=s,this.running=!1,this.graphicsReadyCallback=null,this.cancelled=this.graphicsReady=!1}function je(e){"string"==typeof e?(e=e.replace(/>\\376\\377([^<]+)/g,function(e,t){for(var i=t.replace(/\\([0-3])([0-7])([0-7])/g,function(e,t,i,n){return String.fromCharCode(64*t+8*i+ +n)}),n="",r=0;r<i.length;r+=2)n=n+("&#x"+(65536+(256*i.charCodeAt(r)+i.charCodeAt(r+1))).toString(16).substring(1))+";";return">"+n}),e=(new DOMParser).parseFromString(e,"application/xml")):e instanceof Document||k("Metadata: Invalid metadata object"),this.metaDocument=e,this.metadata={},this.parse()}Oe.prototype={destroy:function(){this.pageCache=[],this.pagePromises=[];var e=this;this.messageHandler.send("Terminate",null,function(){e.worker&&e.worker.terminate()})},loadFakeWorkerFiles:function(){return PDFJS.fakeWorkerFilesLoadedPromise||(PDFJS.fakeWorkerFilesLoadedPromise=new x,E.loadScript(PDFJS.workerSrc)),PDFJS.fakeWorkerFilesLoadedPromise},setupFakeWorker:function(){f("Setting up fake worker.");var t={postMessage:function(e){t.onmessage({data:e})},terminate:function(){}},e=new l("main",t);this.setupMessageHandler(e),PDFJS.WorkerMessageHandler.setup(e)},setupMessageHandler:function(i){function t(e){i.send("UpdatePassword",e)}this.messageHandler=i;var n=this.pdfDataRangeTransport;n&&(n.addRangeListener(function(e,t){i.send("OnDataRange",{begin:e,chunk:t})}),n.addProgressListener(function(e){i.send("OnDataProgress",{loaded:e})}),i.on("RequestDataRange",function(e){n.requestDataRange(e.begin,e.end)},this)),i.on("GetDoc",function(e){this.pdfDocument=e=new $e(e.pdfInfo,this),this.workerReadyPromise.resolve(e)},this),i.on("NeedPassword",function(e){if(this.passwordCallback)return this.passwordCallback(t,U.NEED_PASSWORD);this.workerReadyPromise.reject(e.exception.message,e.exception)},this),i.on("IncorrectPassword",function(e){if(this.passwordCallback)return this.passwordCallback(t,U.INCORRECT_PASSWORD);this.workerReadyPromise.reject(e.exception.message,e.exception)},this),i.on("InvalidPDF",function(e){this.workerReadyPromise.reject(e.exception.name,e.exception)},this),i.on("MissingPDF",function(e){this.workerReadyPromise.reject(e.exception.message,e.exception)},this),i.on("UnknownError",function(e){this.workerReadyPromise.reject(e.exception.message,e.exception)},this),i.on("GetPage",function(e){e=e.pageInfo;var t=new Le(e,this);this.pageCache[e.pageIndex]=t,this.pagePromises[e.pageIndex].resolve(t)},this),i.on("GetAnnotations",function(e){this.pageCache[e.pageIndex].annotationsPromise.resolve(e.annotations)},this),i.on("StartRenderPage",function(e){var t=this.pageCache[e.pageIndex];t.stats.timeEnd("Page Request"),t._startRenderPage(e.transparency)},this),i.on("RenderPageChunk",function(e){this.pageCache[e.pageIndex]._renderPageChunk(e.operatorList)},this),i.on("commonobj",function(e){var t,i,n=e[0],r=e[1];if(!this.commonObjs.hasData(n))switch(r){case"Font":"error"in(e=e[2])?(f("Error during font loading: "+(i=e.error)),this.commonObjs.resolve(n,i)):(t=new Xe(e),D.bind([t],function(){this.commonObjs.resolve(n,t)}.bind(this)));break;case"FontPath":this.commonObjs.resolve(n,e[2]);break;default:i("Got unknown common object type "+r)}},this),i.on("obj",function(e){var t=e[0],i=e[2],n=this.pageCache[e[1]];if(!n.objs.hasData(t))switch(i){case"JpegStream":e=e[3];var r=n.objs,s=new Image;s.onload=function(){r.resolve(t,s)},s.src="data:image/jpeg;base64,"+window.btoa(e);break;case"Image":e=e[3],n.objs.resolve(t,e),"data"in e&&8e6<e.data.length&&(n.cleanupAfterRender=!0);break;default:k("Got unknown object type "+i)}},this),i.on("DocProgress",function(e){this.progressCallback&&this.progressCallback({loaded:e.loaded,total:e.total})},this),i.on("DocError",function(e){this.workerReadyPromise.reject(e)},this),i.on("PageError",function(e){var t=this.pageCache[e.pageNum-1];t.displayReadyPromise?t.displayReadyPromise.reject(e.error):k(e.error)},this),i.on("JpegDecode",function(e,o){var t=e[0],l=e[1],c=(3!=l&&1!=l&&k("Only 3 component or 1 component can be returned"),new Image);c.onload=function(){var e=c.width,t=c.height,i=4*(n=e*t),n=new Uint8Array(n*l),r=P(e,t).getContext("2d");if(r.drawImage(c,0,0),r=r.getImageData(0,0,e,t).data,3==l)for(var s=0,a=0;s<i;s+=4,a+=3)n[a]=r[s],n[a+1]=r[s+1],n[a+2]=r[s+2];else if(1==l)for(a=s=0;s<i;s+=4,a++)n[a]=r[s];o.resolve({data:n,width:e,height:t})}.bind(this),t="data:image/jpeg;base64,"+window.btoa(t),c.src=t})},fetchDocument:function(e){e.disableAutoFetch=PDFJS.disableAutoFetch,e.chunkedViewerLoading=!!this.pdfDataRangeTransport,this.messageHandler.send("GetDocRequest",{source:e,disableRange:PDFJS.disableRange,maxImageSize:PDFJS.maxImageSize,disableFontFace:PDFJS.disableFontFace})},getData:function(t){this.messageHandler.send("GetData",null,function(e){t.resolve(e)})},dataLoaded:function(){var t=new PDFJS.Promise;return this.messageHandler.send("DataLoaded",null,function(e){t.resolve(e)}),t},getPage:function(e,t){var i=e-1;return i in this.pagePromises?this.pagePromises[i]:(t=new PDFJS.Promise("Page "+e),this.pagePromises[i]=t,this.messageHandler.send("GetPageRequest",{pageIndex:i}),t)},getAnnotations:function(e){this.messageHandler.send("GetAnnotationsRequest",{pageIndex:e})},getDestinations:function(){var t=new PDFJS.Promise;return this.messageHandler.send("GetDestinations",null,function(e){t.resolve(e)}),t}};var ze,He=Oe,Ue=(Pe.prototype={ensureObj:function(e){var t;return this.objs[e]||(t={promise:new x(e),data:null,resolved:!1},this.objs[e]=t)},get:function(e,t){return t?(this.ensureObj(e).promise.then(t),null):((t=this.objs[e])&&t.resolved||k("Requesting object that isn't resolved yet "+e),t.data)},resolve:function(e,t){e=this.ensureObj(e);e.resolved=!0,e.data=t,e.promise.resolve(t)},isResolved:function(e){var t=this.objs;return!!t[e]&&t[e].resolved},hasData:function(e){return this.isResolved(e)},getData:function(e){var t=this.objs;return t[e]&&t[e].resolved?t[e].data:null},clear:function(){this.objs={}}},Pe),qe=((Be.prototype=Object.create(x.prototype)).cancel=function(){this.internalRenderTask.cancel()},Be),i=(Fe.prototype={initalizeGraphics:function(e){var t;this.cancelled||(PDFJS.pdfBug&&"StepperManager"in y&&y.StepperManager.enabled&&(this.stepper=y.StepperManager.create(this.pageNumber-1),this.stepper.init(this.operatorList),this.stepper.nextBreakPoint=this.stepper.getNextBreakPoint()),t=this.params,this.gfx=new Ye(t.canvasContext,this.commonObjs,this.objs,t.textLayer,t.imageLayer),this.gfx.beginDrawing(t.viewport,e),this.operatorListIdx=0,this.graphicsReady=!0,this.graphicsReadyCallback&&this.graphicsReadyCallback())},cancel:function(){this.running=!1,this.cancelled=!0,this.callback("cancelled")},operatorListChanged:function(){this.graphicsReady?(this.stepper&&this.stepper.updateOperatorList(this.operatorList),this.running||this._continue()):this.graphicsReadyCallback||(this.graphicsReadyCallback=this._continue.bind(this))},_continue:function(){this.running=!0,this.cancelled||(this.params.continueCallback?this.params.continueCallback(this._next.bind(this)):this._next())},_next:function(){this.cancelled||(this.operatorListIdx=this.gfx.executeOperatorList(this.operatorList,this.operatorListIdx,this._continue.bind(this),this.stepper),this.operatorListIdx===this.operatorList.fnArray.length&&(this.running=!1,this.operatorList.lastChunk)&&(this.gfx.endDrawing(),this.callback()))}},ze=Fe,PDFJS);je.prototype={parse:function(){var e=this.metaDocument.documentElement;if("rdf:rdf"!==e.nodeName.toLowerCase())for(e=e.firstChild;e&&"rdf:rdf"!==e.nodeName.toLowerCase();)e=e.nextSibling;var t=e?e.nodeName.toLowerCase():null;if(e&&"rdf:rdf"===t&&e.hasChildNodes())for(var i,n,r,s,a=0,o=(e=e.childNodes).length;a<o;a++)if("rdf:description"===(t=e[a]).nodeName.toLowerCase())for(r=0,s=t.childNodes.length;r<s;r++)"#text"!==t.childNodes[r].nodeName.toLowerCase()&&(n=(i=t.childNodes[r]).nodeName.toLowerCase(),this.metadata[n]=i.textContent.trim())},get:function(e){return this.metadata[e]||null},has:function(e){return void 0!==this.metadata[e]}},i.Metadata=je;var M={},I={getCanvas:function(e,t,i,n){return e in M?((e=M[e]).canvas.width=t,e.canvas.height=i,e.context.setTransform(1,0,0,1,0,0)):(i=(t=P(t,i)).getContext("2d"),n&&B(i),M[e]=e={canvas:t,context:i}),e},clear:function(){M={}}},We=function(e){this.alphaIsShape=!1,this.fontSize=0,this.fontSizeScale=1,this.textMatrix=q,this.fontMatrix=A,this.wordSpacing=this.charSpacing=this.lineY=this.lineX=this.y=this.x=this.leading=0,this.textHScale=1,this.textRise=this.textRenderingMode=0,this.fillColorSpace=S.singletons.gray,this.fillColorSpaceObj=null,this.strokeColorSpace=S.singletons.gray,this.strokeColorObj=this.fillColorObj=this.strokeColorSpaceObj=null,this.strokeColor=this.fillColor="#000000",this.lineWidth=this.strokeAlpha=this.fillAlpha=1,this.paintFormXObjectDepth=0,this.old=e};We.prototype={clone:function(){return Object.create(this)},setCurrentPoint:function(e,t){this.x=e,this.y=t}};function Ve(e,t,i,n,r){this.ctx=e,this.current=new We,this.stateStack=[],this.pendingClip=null,this.pendingEOFill=!1,this.xobjs=this.res=null,this.commonObjs=t,this.objs=i,this.textLayer=n,this.imageLayer=r,this.groupStack=[],this.baseTransform=this.processingType3=null,this.baseTransformStack=[],this.groupLevel=0,e&&B(e)}function N(e,t){if("undefined"!=typeof ImageData&&t instanceof ImageData)e.putImageData(t,0,0);else{var i=e.createImageData(t.width,t.height),n=t.data,r=i.data;if("set"in r)r.set(n);else for(var s=0,a=r.length;s<a;s++)r[s]=n[s];e.putImageData(i,0,0)}}function Ge(e,t,i){if(this.compiledGlyphs={},1===arguments.length){var n,r=e;for(n in r)this[n]=r[n]}}var Ye,Xe,Ke=["butt","round","square"],Ze=["miter","round","bevel"],Qe={},Je={},D=(Ve.prototype={slowCommands:{stroke:!0,closeStroke:!0,fill:!0,eoFill:!0,fillStroke:!0,eoFillStroke:!0,closeFillStroke:!0,closeEOFillStroke:!0,showText:!0,showSpacedText:!0,setStrokeColorSpace:!0,setFillColorSpace:!0,setStrokeColor:!0,setStrokeColorN:!0,setFillColor:!0,setFillColorN:!0,setStrokeGray:!0,setFillGray:!0,setStrokeRGBColor:!0,setFillRGBColor:!0,setStrokeCMYKColor:!0,setFillCMYKColor:!0,paintJpegXObject:!0,paintImageXObject:!0,paintInlineImageXObject:!0,paintInlineImageXObjectGroup:!0,paintImageMaskXObject:!0,paintImageMaskXObjectGroup:!0,shadingFill:!0},beginDrawing:function(e,t){var i=this.ctx.canvas.width,n=this.ctx.canvas.height;t?this.ctx.clearRect(0,0,i,n):(this.ctx.mozOpaque=!0,this.ctx.save(),this.ctx.fillStyle="rgb(255, 255, 255)",this.ctx.fillRect(0,0,i,n),this.ctx.restore()),i=e.transform,this.baseTransform=i.slice(),this.ctx.save(),this.ctx.transform.apply(this.ctx,i),this.textLayer&&this.textLayer.beginLayout(),this.imageLayer&&this.imageLayer.beginLayout()},executeOperatorList:function(e,t,i,n){var r=e.argsArray,s=(e=e.fnArray,r.length);if(s==(t=t||0))return t;for(var a,o=Date.now()+15,l=this.commonObjs,c=this.objs,h=this.slowCommands;;){if(n&&t===n.nextBreakPoint)return n.breakIt(t,i),t;if("dependency"!==(a=e[t]))this[a].apply(this,r[t]);else for(var u=r[t],d=0,p=u.length;d<p;d++){var g=u[d],f="g_"==g.substring(0,2);if(!f&&!c.isResolved(g))return c.get(g,i),t;if(f&&!l.isResolved(g))return l.get(g,i),t}if(++t==s)return t;if(i&&h[a]&&Date.now()>o)return setTimeout(i,0),t}},endDrawing:function(){this.ctx.restore(),I.clear(),this.textLayer&&this.textLayer.endLayout(),this.imageLayer&&this.imageLayer.endLayout()},setLineWidth:function(e){this.current.lineWidth=e,this.ctx.lineWidth=e},setLineCap:function(e){this.ctx.lineCap=Ke[e]},setLineJoin:function(e){this.ctx.lineJoin=Ze[e]},setMiterLimit:function(e){this.ctx.miterLimit=e},setDash:function(e,t){var i=this.ctx;"setLineDash"in i?(i.setLineDash(e),i.lineDashOffset=t):(i.mozDash=e,i.mozDashOffset=t)},setRenderingIntent:function(){},setFlatness:function(){},setGState:function(e){for(var t=0,i=e.length;t<i;t++){var n=e[t],r=n[1];switch(n[0]){case"LW":this.setLineWidth(r);break;case"LC":this.setLineCap(r);break;case"LJ":this.setLineJoin(r);break;case"ML":this.setMiterLimit(r);break;case"D":this.setDash(r[0],r[1]);break;case"RI":this.setRenderingIntent(r);break;case"FL":this.setFlatness(r);break;case"Font":this.setFont(r[0],r[1]);break;case"CA":this.current.strokeAlpha=n[1];break;case"ca":this.current.fillAlpha=n[1],this.ctx.globalAlpha=n[1];break;case"BM":r&&r.name&&"Normal"!==r.name?(n=r.name.replace(/([A-Z])/g,function(e){return"-"+e.toLowerCase()}).substring(1),this.ctx.globalCompositeOperation=n,this.ctx.globalCompositeOperation!==n&&f('globalCompositeOperation "'+n+'" is not supported')):this.ctx.globalCompositeOperation="source-over"}}},save:function(){this.ctx.save();var e=this.current;this.stateStack.push(e),this.current=e.clone()},restore:function(){var e=this.stateStack.pop();e&&(this.current=e,this.ctx.restore())},transform:function(e,t,i,n,r,s){this.ctx.transform(e,t,i,n,r,s)},moveTo:function(e,t){this.ctx.moveTo(e,t),this.current.setCurrentPoint(e,t)},lineTo:function(e,t){this.ctx.lineTo(e,t),this.current.setCurrentPoint(e,t)},curveTo:function(e,t,i,n,r,s){this.ctx.bezierCurveTo(e,t,i,n,r,s),this.current.setCurrentPoint(r,s)},curveTo2:function(e,t,i,n){var r=this.current;this.ctx.bezierCurveTo(r.x,r.y,e,t,i,n),r.setCurrentPoint(i,n)},curveTo3:function(e,t,i,n){this.curveTo(e,t,i,n,i,n),this.current.setCurrentPoint(i,n)},closePath:function(){this.ctx.closePath()},rectangle:function(e,t,i,n){this.ctx.rect(e,t,i,n)},stroke:function(e){e=void 0===e||e;var t=this.ctx,i=this.current.strokeColor;0===this.current.lineWidth&&(t.lineWidth=this.getSinglePixelWidth()),t.globalAlpha=this.current.strokeAlpha,i&&i.hasOwnProperty("type")&&"Pattern"===i.type?(t.save(),t.strokeStyle=i.getPattern(t,this),t.stroke(),t.restore()):t.stroke(),e&&this.consumePath(),t.globalAlpha=this.current.fillAlpha},closeStroke:function(){this.closePath(),this.stroke()},fill:function(e){e=void 0===e||e;var t=this.ctx,i=this.current.fillColor,n=!1;if(i&&i.hasOwnProperty("type")&&"Pattern"===i.type&&(t.save(),t.fillStyle=i.getPattern(t,this),n=!0),this.pendingEOFill){if("mozFillRule"in this.ctx)this.ctx.mozFillRule="evenodd",this.ctx.fill(),this.ctx.mozFillRule="nonzero";else try{this.ctx.fill("evenodd")}catch(e){this.ctx.fill()}this.pendingEOFill=!1}else this.ctx.fill();n&&t.restore(),e&&this.consumePath()},eoFill:function(){this.pendingEOFill=!0,this.fill()},fillStroke:function(){this.fill(!1),this.stroke(!1),this.consumePath()},eoFillStroke:function(){this.pendingEOFill=!0,this.fillStroke()},closeFillStroke:function(){this.closePath(),this.fillStroke()},closeEOFillStroke:function(){this.pendingEOFill=!0,this.closePath(),this.fillStroke()},endPath:function(){this.consumePath()},clip:function(){this.pendingClip=Qe},eoClip:function(){this.pendingClip=Je},beginText:function(){this.current.textMatrix=q,this.current.x=this.current.lineX=0,this.current.y=this.current.lineY=0},endText:function(){if("pendingTextPaths"in this){var e=this.pendingTextPaths,t=this.ctx;t.save(),t.beginPath();for(var i=0;i<e.length;i++){var n=e[i];t.setTransform.apply(t,n.transform),t.translate(n.x,n.y),n.addToPath(t,n.fontSize)}t.restore(),t.clip(),t.beginPath(),delete this.pendingTextPaths}else this.ctx.beginPath()},setCharSpacing:function(e){this.current.charSpacing=e},setWordSpacing:function(e){this.current.wordSpacing=e},setHScale:function(e){this.current.textHScale=e/100},setLeading:function(e){this.current.leading=-e},setFont:function(e,t){var i,n=this.commonObjs.get(e),r=this.current;n||k("Can't find font for "+e),r.fontMatrix=n.fontMatrix||A,0!==r.fontMatrix[0]&&0!==r.fontMatrix[3]||f("Invalid font matrix for font "+e),t<0?(t=-t,r.fontDirection=-1):r.fontDirection=1,this.current.font=n,this.current.fontSize=t,n.coded||(r=n.black?n.bold?"bolder":"bold":n.bold?"bold":"normal",e=n.italic?"italic":"normal",n='"'+(n.loadedName||"sans-serif")+'", '+n.fallbackName,this.current.fontSizeScale=16!=(i=16<=t?t:16)?1:t/16,this.ctx.font=e+" "+r+" "+i+"px "+n)},setTextRenderingMode:function(e){this.current.textRenderingMode=e},setTextRise:function(e){this.current.textRise=e},moveText:function(e,t){this.current.x=this.current.lineX+=e,this.current.y=this.current.lineY+=t},setLeadingMoveText:function(e,t){this.setLeading(-t),this.moveText(e,t)},setTextMatrix:function(e,t,i,n,r,s){this.current.textMatrix=[e,t,i,n,r,s],this.current.x=this.current.lineX=0,this.current.y=this.current.lineY=0},nextLine:function(){this.moveText(0,this.current.leading)},applyTextTransforms:function(){var e=this.ctx,t=this.current;e.transform.apply(e,t.textMatrix),e.translate(t.x,t.y+t.textRise),0<t.fontDirection?e.scale(t.textHScale,-1):e.scale(-t.textHScale,1)},createTextGeometry:function(){var e={},t=this.current.font,i=(o=this.ctx.mozCurrentTransform)[0],n=o[1],r=o[2],s=o[3],a=o[4],o=o[5],l=0<=i?Math.sqrt(i*i+n*n):-Math.sqrt(i*i+n*n),r=0<=s?Math.sqrt(r*r+s*s):-Math.sqrt(r*r+s*s),i=Math.atan2(n,i);return e.x=a,e.y=o,e.hScale=l,e.vScale=r,e.angle=i,e.spaceWidth=t.spaceWidth,e.fontName=t.loadedName,e.fontFamily=t.fallbackName,e.fontSize=this.current.fontSize,e},paintChar:function(e,t,i){var n,r=this.ctx,s=(o=this.current).font,a=o.fontSize/o.fontSizeScale,o=3&(l=o.textRenderingMode),l=!!(4&l);(s.disableFontFace||l)&&(n=s.getPathGenerator(this.commonObjs,e)),s.disableFontFace?(r.save(),r.translate(t,i),r.beginPath(),n(r,a),0!=o&&2!=o||r.fill(),1!=o&&2!=o||r.stroke(),r.restore()):(0!=o&&2!=o||r.fillText(e,t,i),1!=o&&2!=o||r.strokeText(e,t,i)),l&&(this.pendingTextPaths||(this.pendingTextPaths=[])).push({transform:r.mozCurrentTransform,x:t,y:i,fontSize:a,addToPath:n})},showText:function(e,t){var i,n=this.ctx,r=this.current,s=r.font,a=r.fontSize,o=r.fontSizeScale,l=r.charSpacing,c=r.wordSpacing,h=r.textHScale*r.fontDirection,u=r.fontMatrix||A,d=e.length,t=!(!this.textLayer||t),p=0,g=s.vertical,f=s.defaultVMetrics;if(s.coded){n.save(),n.transform.apply(n,r.textMatrix),n.translate(r.x,r.y),n.scale(h,1),t&&(this.save(),n.scale(1,-1),i=this.createTextGeometry(),this.restore());for(var m=0;m<d;++m){var y=e[m];null===y?(this.ctx.translate(c,0),r.x+=c*h):(this.processingType3=y,this.save(),n.scale(a,a),n.transform.apply(n,u),this.executeOperatorList(y.operatorList),this.restore(),w=(E.applyTransform([y.width,0],u)[0]*a+l)*r.fontDirection,n.translate(w,0),r.x+=w*h,p+=w)}n.restore(),this.processingType3=null}else{n.save(),this.applyTextTransforms();var b,v,x,w,k,T,S,_,m=r.lineWidth,u=r.textMatrix[0],C=r.textMatrix[1],m=0===(u=Math.sqrt(u*u+C*C))||0===m?this.getSinglePixelWidth():m/u;for(t&&(i=this.createTextGeometry()),1!=o&&(n.scale(o,o),m/=o),n.lineWidth=m,m=u=0;m<d;++m)null===(y=e[m])?u+=r.fontDirection*c:(C=!1,b=y.fontChar,k=y.vmetric||f,g&&(v=-(v=y.vmetric?k[1]:.5*y.width)*a*r.fontMatrix[0],x=k[2]*a*r.fontMatrix[0]),k=(w=k?-k[0]:y.width)*a*r.fontMatrix[0]+l*r.fontDirection,T=y.accent,y.disabled||(S=g?(y=v/o,(u+x)/o):(y=u/o,0),s.remeasure&&0<w&&(w/=C=1e3*n.measureText(b).width/r.fontSize*r.fontSizeScale,C=!0,n.save(),n.scale(w,1),y/=w,T)&&(_/=w),this.paintChar(b,y,S),T&&(_=y+T.offset.x/o,b=S-T.offset.y/o,this.paintChar(T.fontChar,_,b))),u+=k,p+=k,C&&n.restore());g?r.y-=u*h:r.x+=u*h,n.restore()}return t&&(i.canvasWidth=p,g&&(i.angle+=Math.PI/2),this.textLayer.appendText(i)),p},showSpacedText:function(e){var t,i=this.ctx,n=this.current,r=n.fontSize,s=.001*n.textHScale*n.fontDirection,a=e.length,o=0,l=!!this.textLayer,c=n.font.vertical,h=0;for(l&&(i.save(),this.applyTextTransforms(),t=this.createTextGeometry(),i.restore()),i=0;i<a;++i){var u=e[i];"number"==typeof u?(u=-u*r*s,c?n.y+=u:n.x+=u,l&&(h+=u)):(u=this.showText(u,!0),l&&(o+=h+u,h=0))}l&&(t.canvasWidth=o,c&&(t.angle+=Math.PI/2),this.textLayer.appendText(t))},nextLineShowText:function(e){this.nextLine(),this.showText(e)},nextLineSetSpacingShowText:function(e,t,i){this.setWordSpacing(e),this.setCharSpacing(t),this.nextLineShowText(i)},setCharWidth:function(){},setCharWidthAndBounds:function(e,t,i,n,r,s){this.rectangle(i,n,r-i,s-n),this.clip(),this.endPath()},setStrokeColorSpace:function(e){this.current.strokeColorSpace=S.fromIR(e)},setFillColorSpace:function(e){this.current.fillColorSpace=S.fromIR(e)},setStrokeColor:function(){var e=this.current.strokeColorSpace.getRgb(arguments,0),e=E.makeCssRgb(e);this.ctx.strokeStyle=e,this.current.strokeColor=e},getColorN_Pattern:function(e,t){var i,n;return"TilingPattern"==e[0]?(i=e[1],(t=t.base)&&(n=t.getRgb(i,0)),i=new ae(e,n,this.ctx,this.objs,this.commonObjs,this.baseTransform)):"RadialAxial"==e[0]||"Dummy"==e[0]?i=T.shadingFromIR(e):k("Unkown IR type "+e[0]),i},setStrokeColorN:function(){var e=this.current.strokeColorSpace;"Pattern"==e.name?this.current.strokeColor=this.getColorN_Pattern(arguments,e):this.setStrokeColor.apply(this,arguments)},setFillColor:function(){var e=this.current.fillColorSpace.getRgb(arguments,0),e=E.makeCssRgb(e);this.ctx.fillStyle=e,this.current.fillColor=e},setFillColorN:function(){var e=this.current.fillColorSpace;"Pattern"==e.name?this.current.fillColor=this.getColorN_Pattern(arguments,e):this.setFillColor.apply(this,arguments)},setStrokeGray:function(e){this.current.strokeColorSpace=S.singletons.gray;var t=this.current.strokeColorSpace.getRgb(arguments,0),t=E.makeCssRgb(t);this.ctx.strokeStyle=t,this.current.strokeColor=t},setFillGray:function(e){this.current.fillColorSpace=S.singletons.gray;var t=this.current.fillColorSpace.getRgb(arguments,0),t=E.makeCssRgb(t);this.ctx.fillStyle=t,this.current.fillColor=t},setStrokeRGBColor:function(e,t,i){this.current.strokeColorSpace=S.singletons.rgb;var n=this.current.strokeColorSpace.getRgb(arguments,0),n=E.makeCssRgb(n);this.ctx.strokeStyle=n,this.current.strokeColor=n},setFillRGBColor:function(e,t,i){this.current.fillColorSpace=S.singletons.rgb;var n=this.current.fillColorSpace.getRgb(arguments,0),n=E.makeCssRgb(n);this.ctx.fillStyle=n,this.current.fillColor=n},setStrokeCMYKColor:function(e,t,i,n){this.current.strokeColorSpace=S.singletons.cmyk;var r=E.makeCssCmyk(arguments);this.ctx.strokeStyle=r,this.current.strokeColor=r},setFillCMYKColor:function(e,t,i,n){this.current.fillColorSpace=S.singletons.cmyk;var r=E.makeCssCmyk(arguments);this.ctx.fillStyle=r,this.current.fillColor=r},shadingFill:function(e){var t,i,n,r,s=this.ctx,a=(this.save(),e=T.shadingFromIR(e),s.fillStyle=e.getPattern(s,this),s.mozCurrentTransformInverse);a?(n=(s=s.canvas).width,r=s.height,s=E.applyTransform([0,0],a),e=E.applyTransform([0,r],a),t=E.applyTransform([n,0],a),i=E.applyTransform([n,r],a),a=Math.min(s[0],e[0],t[0],i[0]),n=Math.min(s[1],e[1],t[1],i[1]),r=Math.max(s[0],e[0],t[0],i[0]),s=Math.max(s[1],e[1],t[1],i[1]),this.ctx.fillRect(a,n,r-a,s-n)):this.ctx.fillRect(-1e10,-1e10,2e10,2e10),this.restore()},beginInlineImage:function(){k("Should not call beginInlineImage")},beginImageData:function(){k("Should not call beginImageData")},paintFormXObjectBegin:function(e,t){this.save(),this.current.paintFormXObjectDepth++,this.baseTransformStack.push(this.baseTransform),e&&m(e)&&6==e.length&&this.transform.apply(this,e),this.baseTransform=this.ctx.mozCurrentTransform,t&&m(t)&&4==t.length&&(this.rectangle(t[0],t[1],t[2]-t[0],t[3]-t[1]),this.clip(),this.endPath())},paintFormXObjectEnd:function(){for(var e=this.current.paintFormXObjectDepth;this.restore(),this.current.paintFormXObjectDepth>=e;);this.baseTransform=this.baseTransformStack.pop()},beginGroup:function(e){this.save();var t=this.ctx,i=(e.isolated||g("TODO: Support non-isolated groups."),e.knockout&&b("Support knockout groups."),t.mozCurrentTransform),n=(e.matrix&&t.transform.apply(t,e.matrix),e.bbox||k("Bounding box is required."),E.getAxialAlignedBoundingBox(e.bbox,t.mozCurrentTransform)),r=(e=Math.max(Math.ceil(n[2]-n[0]),1),Math.max(Math.ceil(n[3]-n[1]),1));for(e=I.getCanvas("groupAt"+this.groupLevel,e,r,!0).context,r=n[0],n=n[1],e.translate(-r,-n),e.transform.apply(e,i),t.setTransform(1,0,0,1,0,0),t.translate(r,n),n=0,r=(i="strokeStyle fillStyle fillRule globalAlpha lineWidth lineCap lineJoin miterLimit globalCompositeOperation font".split(" ")).length;n<r;n++){var s=i[n];s in t&&(e[s]=t[s])}"setLineDash"in t?(e.setLineDash(t.getLineDash()),e.lineDashOffset=t.lineDashOffset):"mozDash"in t&&(e.mozDash=t.mozDash,e.mozDashOffset=t.mozDashOffset),this.ctx=e,this.setGState([["SMask","None"],["BM","Normal"],["ca",1],["CA",1]]),this.groupStack.push(t),this.groupLevel++},endGroup:function(){this.groupLevel--;var e=this.ctx;this.ctx=this.groupStack.pop(),"imageSmoothingEnabled"in this.ctx?this.ctx.imageSmoothingEnabled=!1:this.ctx.mozImageSmoothingEnabled=!1,this.ctx.drawImage(e.canvas,0,0),this.restore()},beginAnnotations:function(){this.save(),this.current=new We},endAnnotations:function(){this.restore()},beginAnnotation:function(e,t,i){this.save(),e&&m(e)&&4==e.length&&(this.rectangle(e[0],e[1],e[2]-e[0],e[3]-e[1]),this.clip(),this.endPath()),this.transform.apply(this,t),this.transform.apply(this,i)},endAnnotation:function(){this.restore()},paintJpegXObject:function(e,t,i){var n=this.objs.get(e),r=(n||k("Dependent image isn't ready yet"),this.save(),this.ctx);r.scale(1/t,-1/i),r.drawImage(n,0,0,n.width,n.height,0,-i,t,i),this.imageLayer&&(n=r.mozCurrentTransformInverse,r=this.getCanvasPosition(0,0),this.imageLayer.appendImage({objId:e,left:r[0],top:r[1],width:t/n[0],height:i/n[3]})),this.restore()},paintImageMaskXObject:function(e){var t=this.ctx,a=e.width,o=e.height,i=this.processingType3;if(i&&!("compiled"in i)){if(a<=1e3&&o<=1e3)e:{var n,r=e.data,s=a+1,l=new Uint8Array(s*(o+1)),c=new Uint8Array([0,2,4,0,1,0,5,4,8,10,0,8,0,2,1,0]),h=3,u=4*a,d=0;for(0!==r[3]&&(l[0]=1,++d),g=1;g<a;g++)r[h]!==r[h+4]&&(l[g]=r[h]?2:1,++d),h+=4;for(0!==r[h]&&(l[g]=2,++d),h+=4,m=1;m<o;m++){n=m*s,r[h-u]!==r[h]&&(l[n]=r[h]?1:8,++d);for(var p=(r[h]?4:0)+(r[h-u]?8:0),g=1;g<a;g++)c[p=(p>>2)+(r[h+4]?4:0)+(r[h-u+4]?8:0)]&&(l[n+g]=c[p],++d),h+=4;if(r[h-u]!==r[h]&&(l[n+g]=r[h]?2:4,++d),h+=4,1e3<d){m=null;break e}}for(n=m*s,0!==r[h-=u]&&(l[n]=8,++d),g=1;g<a;g++)r[h]!==r[h+4]&&(l[n+g]=r[h]?4:8,++d),h+=4;if(0!==r[h]&&(l[n+g]=4,++d),1e3<d)m=null;else{for(var r=new Int32Array([0,s,-1,0,-s,0,0,0,1]),f=[],m=0;d&&m<=o;m++){for(n=(g=m*s)+a;g<n&&!l[g];)g++;if(g!==n){n=[g%s,m],c=l[g],h=g;do{for(u=r[c];!l[g+=u];);}while(5!==(u=l[g])&&10!==u?(c=u,l[g]=0):l[g]&=(c=u&51*c>>4)>>2|c<<2,n.push(g%s),n.push(g/s|0),--d,h!==g);f.push(n),--m}}m=function(e){e.save(),e.scale(1/a,-1/o),e.translate(0,-o),e.beginPath();for(var t=0,i=f.length;t<i;t++){var n=f[t];e.moveTo(n[0],n[1]);for(var r=2,s=n.length;r<s;r+=2)e.lineTo(n[r],n[r+1])}e.fill(),e.beginPath(),e.restore()}}}else m=null;i.compiled=m}i&&i.compiled?i.compiled(t):((i=(t=I.getCanvas("maskCanvas",a,o)).context).save(),N(i,e),i.globalCompositeOperation="source-in",e=this.current.fillColor,i.fillStyle=e&&e.hasOwnProperty("type")&&"Pattern"===e.type?e.getPattern(i,this):e,i.fillRect(0,0,a,o),i.restore(),this.paintInlineImageXObject(t.canvas))},paintImageMaskXObjectGroup:function(e){for(var t=this.ctx,i=0,n=e.length;i<n;i++){var r=e[i],s=r.width,a=r.height,o=I.getCanvas("maskCanvas",s,a),l=o.context,c=(l.save(),N(l,r),l.globalCompositeOperation="source-in",this.current.fillColor);l.fillStyle=c&&c.hasOwnProperty("type")&&"Pattern"===c.type?c.getPattern(l,this):c,l.fillRect(0,0,s,a),l.restore(),t.save(),t.transform.apply(t,r.transform),t.scale(1,-1),t.drawImage(o.canvas,0,0,s,a,0,-1,1,1),t.restore()}},paintImageXObject:function(e){(e=this.objs.get(e))||k("Dependent image isn't ready yet"),this.paintInlineImageXObject(e)},paintInlineImageXObject:function(e){for(var t,i,n=e.width,r=e.height,s=this.ctx,a=(this.save(),s.scale(1/n,-1/r),s.mozCurrentTransformInverse),o=a[0],l=a[1],o=Math.max(Math.sqrt(o*o+l*l),1),l=a[2],c=a[3],l=Math.max(Math.sqrt(l*l+c*c),1),c=e instanceof HTMLElement?e:(i=(t=I.getCanvas("inlineImage",n,r)).context,N(i,e),t.canvas),h=n,u=r,d="prescale1";2<o&&1<h||2<l&&1<u;){var p=h,g=u;2<o&&1<h&&(o/=h/(p=Math.ceil(h/2))),2<l&&1<u&&(l/=u/(g=Math.ceil(u/2))),(i=(t=I.getCanvas(d,p,g)).context).clearRect(0,0,p,g),i.drawImage(c,0,0,h,u,0,0,p,g),c=t.canvas,h=p,u=g,d="prescale1"===d?"prescale2":"prescale1"}s.drawImage(c,0,0,h,u,0,-r,n,r),this.imageLayer&&(s=this.getCanvasPosition(0,-r),this.imageLayer.appendImage({imgData:e,left:s[0],top:s[1],width:n/a[0],height:r/a[3]})),this.restore()},paintInlineImageXObjectGroup:function(e,t){var i=this.ctx,n=e.width,r=e.height,s=I.getCanvas("inlineImage",n,r);N(s.context,e);for(var a=0,o=t.length;a<o;a++){var l=t[a];i.save(),i.transform.apply(i,l.transform),i.scale(1,-1),i.drawImage(s.canvas,l.x,l.y,l.w,l.h,0,-1,1,1),this.imageLayer&&(l=this.getCanvasPosition(l.x,l.y),this.imageLayer.appendImage({imgData:e,left:l[0],top:l[1],width:n,height:r})),i.restore()}},markPoint:function(){},markPointProps:function(){},beginMarkedContent:function(){},beginMarkedContentProps:function(){},endMarkedContent:function(){},beginCompat:function(){},endCompat:function(){},consumePath:function(){if(this.pendingClip){if(this.pendingClip==Je)if("mozFillRule"in this.ctx)this.ctx.mozFillRule="evenodd",this.ctx.clip(),this.ctx.mozFillRule="nonzero";else try{this.ctx.clip("evenodd")}catch(e){this.ctx.clip()}else this.ctx.clip();this.pendingClip=null}this.ctx.beginPath()},getSinglePixelWidth:function(){var e=this.ctx.mozCurrentTransformInverse;return Math.sqrt(Math.max(e[0]*e[0]+e[1]*e[1],e[2]*e[2]+e[3]*e[3]))},getCanvasPosition:function(e,t){var i=this.ctx.mozCurrentTransform;return[i[0]*e+i[2]*t+i[4],i[1]*e+i[3]*t+i[5]]}},Ye=Ve,PDFJS.disableFontFace=!1,i=!v&&!!((i=/Mozilla\/5.0.*?rv:(\d+).*? Gecko/.exec(window.navigator.userAgent))&&14<=i[1]),{insertRule:function(e){var t=document.getElementById("PDFJS_FONT_STYLE_TAG");t||((t=document.createElement("style")).id="PDFJS_FONT_STYLE_TAG",document.documentElement.getElementsByTagName("head")[0].appendChild(t)),(t=t.sheet).insertRule(e,t.cssRules.length)},get loadTestFont(){return e(this,"loadTestFont",atob("T1RUTwALAIAAAwAwQ0ZGIDHtZg4AAAOYAAAAgUZGVE1lkzZwAAAEHAAAABxHREVGABQAFQAABDgAAAAeT1MvMlYNYwkAAAEgAAAAYGNtYXABDQLUAAACNAAAAUJoZWFk/xVFDQAAALwAAAA2aGhlYQdkA+oAAAD0AAAAJGhtdHgD6AAAAAAEWAAAAAZtYXhwAAJQAAAAARgAAAAGbmFtZVjmdH4AAAGAAAAAsXBvc3T/hgAzAAADeAAAACAAAQAAAAEAALZRFsRfDzz1AAsD6AAAAADOBOTLAAAAAM4KHDwAAAAAA+gDIQAAAAgAAgAAAAAAAAABAAADIQAAAFoD6AAAAAAD6AABAAAAAAAAAAAAAAAAAAAAAQAAUAAAAgAAAAQD6AH0AAUAAAKKArwAAACMAooCvAAAAeAAMQECAAACAAYJAAAAAAAAAAAAAQAAAAAAAAAAAAAAAFBmRWQAwAAuAC4DIP84AFoDIQAAAAAAAQAAAAAAAAAAACAAIAABAAAADgCuAAEAAAAAAAAAAQAAAAEAAAAAAAEAAQAAAAEAAAAAAAIAAQAAAAEAAAAAAAMAAQAAAAEAAAAAAAQAAQAAAAEAAAAAAAUAAQAAAAEAAAAAAAYAAQAAAAMAAQQJAAAAAgABAAMAAQQJAAEAAgABAAMAAQQJAAIAAgABAAMAAQQJAAMAAgABAAMAAQQJAAQAAgABAAMAAQQJAAUAAgABAAMAAQQJAAYAAgABWABYAAAAAAAAAwAAAAMAAAAcAAEAAAAAADwAAwABAAAAHAAEACAAAAAEAAQAAQAAAC7//wAAAC7////TAAEAAAAAAAABBgAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAMAAAAAAAD/gwAyAAAAAQAAAAAAAAAAAAAAAAAAAAABAAQEAAEBAQJYAAEBASH4DwD4GwHEAvgcA/gXBIwMAYuL+nz5tQXkD5j3CBLnEQACAQEBIVhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYAAABAQAADwACAQEEE/t3Dov6fAH6fAT+fPp8+nwHDosMCvm1Cvm1DAz6fBQAAAAAAAABAAAAAMmJbzEAAAAAzgTjFQAAAADOBOQpAAEAAAAAAAAADAAUAAQAAAABAAAAAgABAAAAAAAAAAAD6AAAAAAAAA=="))},loadTestFontId:0,loadingContext:{requests:[],nextRequestId:0},isSyncFontLoadingSupported:i,bind:function(e,t){v&&k("bind() shall be called from main thread");for(var i=[],n=[],r=0,s=e.length;r<s;r++){var a,o=e[r];!o.attached&&!1!==o.loading&&(o.attached=!0,a=o.bindDOM())&&(i.push(a),n.push(o))}r=D.queueLoadingCallback(t),0<i.length&&!this.isSyncFontLoadingSupported?D.prepareFontLoadEvent(i,n,r):r.complete()},queueLoadingCallback:function(e){var t=D.loadingContext,i={id:"pdfjs-font-loading-"+t.nextRequestId++,complete:function(){for(i.end&&k("completeRequest() cannot be called twice"),i.end=Date.now();0<t.requests.length&&t.requests[0].end;){var e=t.requests.shift();setTimeout(e.callback,0)}},callback:e,started:Date.now()};return t.requests.push(i),i},prepareFontLoadEvent:function(e,t,i){function n(e,t){return e.charCodeAt(t)<<24|e.charCodeAt(t+1)<<16|e.charCodeAt(t+2)<<8|255&e.charCodeAt(t+3)}function r(e,t,i,n){return l.substr(0,t)+n+(t=l.substr(t+i))}function s(e,t){30<++o?(f("Load test font never loaded."),t()):(a.font="30px "+e,a.fillText(".",0,20),0<a.getImageData(0,0,1,1).data[3]?t():setTimeout(s.bind(null,e,t)))}(e=document.createElement("canvas")).width=1,e.height=1;for(var a=e.getContext("2d"),o=0,l=(e="lt"+Date.now()+this.loadTestFontId++,this.loadTestFont),c=n(l=r(0,976,e.length,e),16),h=0,u=e.length-3;h<u;h+=4)c=c-1482184792+n(e,h)|0;for(h<e.length&&(c=c-1482184792+n(e+"XXX",h)|0),l=r(0,16,4,String.fromCharCode(c>>24&255)+String.fromCharCode(c>>16&255)+String.fromCharCode(c>>8&255)+String.fromCharCode(255&c)),h="url(data:font/opentype;base64,"+btoa(l)+");",D.insertRule('@font-face { font-family:"'+e+'";src:'+h+"}"),c=[],h=0,u=t.length;h<u;h++)c.push(t[h].loadedName);c.push(e);var d=document.createElement("div");for(d.setAttribute("style","visibility: hidden;width: 10px; height: 10px;position: absolute; top: 0px; left: 0px;"),h=0,u=c.length;h<u;++h)(t=document.createElement("span")).textContent="Hi",t.style.fontFamily=c[h],d.appendChild(t);document.body.appendChild(d),s(e,function(){document.body.removeChild(d),i.complete()})}});Ge.prototype={bindDOM:function(){if(!this.data)return null;if(PDFJS.disableFontFace)return this.disableFontFace=!0,null;for(var e=this.data,t="",i=e.length,n=0;n<i;++n)t+=String.fromCharCode(e[n]);return e=this.loadedName,t="url(data:"+this.mimetype+";base64,"+window.btoa(t)+");",D.insertRule(e='@font-face { font-family:"'+e+'";src:'+t+"}"),PDFJS.pdfBug&&"FontInspector"in y&&y.FontInspector.enabled&&y.FontInspector.fontAdded(this,t),e},getPathGenerator:function(e,t){return t in this.compiledGlyphs||(e=e.get(this.loadedName+"_path_"+t),this.compiledGlyphs[t]=new Function("c","size",e)),this.compiledGlyphs[t]}},Xe=Ge}.call("undefined"==typeof window?this:window),PDFJS.workerSrc||"undefined"==typeof document||(PDFJS.workerSrc=function(){var e=(document.body||document.getElementsByTagName("head")[0]).lastChild.src;return e&&e.replace(/\.js$/i,".worker.js")}()),window.githubEmojis={"+1":"https://github.githubassets.com/images/icons/emoji/unicode/1f44d.png?v8","-1":"https://github.githubassets.com/images/icons/emoji/unicode/1f44e.png?v8",100:"https://github.githubassets.com/images/icons/emoji/unicode/1f4af.png?v8",1234:"https://github.githubassets.com/images/icons/emoji/unicode/1f522.png?v8","1st_place_medal":"https://github.githubassets.com/images/icons/emoji/unicode/1f947.png?v8","2nd_place_medal":"https://github.githubassets.com/images/icons/emoji/unicode/1f948.png?v8","3rd_place_medal":"https://github.githubassets.com/images/icons/emoji/unicode/1f949.png?v8","8ball":"https://github.githubassets.com/images/icons/emoji/unicode/1f3b1.png?v8",a:"https://github.githubassets.com/images/icons/emoji/unicode/1f170.png?v8",ab:"https://github.githubassets.com/images/icons/emoji/unicode/1f18e.png?v8",abacus:"https://github.githubassets.com/images/icons/emoji/unicode/1f9ee.png?v8",abc:"https://github.githubassets.com/images/icons/emoji/unicode/1f524.png?v8",abcd:"https://github.githubassets.com/images/icons/emoji/unicode/1f521.png?v8",accept:"https://github.githubassets.com/images/icons/emoji/unicode/1f251.png?v8",accessibility:"https://github.githubassets.com/images/icons/emoji/accessibility.png?v8",accordion:"https://github.githubassets.com/images/icons/emoji/unicode/1fa97.png?v8",adhesive_bandage:"https://github.githubassets.com/images/icons/emoji/unicode/1fa79.png?v8",adult:"https://github.githubassets.com/images/icons/emoji/unicode/1f9d1.png?v8",aerial_tramway:"https://github.githubassets.com/images/icons/emoji/unicode/1f6a1.png?v8",afghanistan:"https://github.githubassets.com/images/icons/emoji/unicode/1f1e6-1f1eb.png?v8",airplane:"https://github.githubassets.com/images/icons/emoji/unicode/2708.png?v8",aland_islands:"https://github.githubassets.com/images/icons/emoji/unicode/1f1e6-1f1fd.png?v8",alarm_clock:"https://github.githubassets.com/images/icons/emoji/unicode/23f0.png?v8",albania:"https://github.githubassets.com/images/icons/emoji/unicode/1f1e6-1f1f1.png?v8",alembic:"https://github.githubassets.com/images/icons/emoji/unicode/2697.png?v8",algeria:"https://github.githubassets.com/images/icons/emoji/unicode/1f1e9-1f1ff.png?v8",alien:"https://github.githubassets.com/images/icons/emoji/unicode/1f47d.png?v8",ambulance:"https://github.githubassets.com/images/icons/emoji/unicode/1f691.png?v8",american_samoa:"https://github.githubassets.com/images/icons/emoji/unicode/1f1e6-1f1f8.png?v8",amphora:"https://github.githubassets.com/images/icons/emoji/unicode/1f3fa.png?v8",anatomical_heart:"https://github.githubassets.com/images/icons/emoji/unicode/1fac0.png?v8",anchor:"https://github.githubassets.com/images/icons/emoji/unicode/2693.png?v8",andorra:"https://github.githubassets.com/images/icons/emoji/unicode/1f1e6-1f1e9.png?v8",angel:"https://github.githubassets.com/images/icons/emoji/unicode/1f47c.png?v8",anger:"https://github.githubassets.com/images/icons/emoji/unicode/1f4a2.png?v8",angola:"https://github.githubassets.com/images/icons/emoji/unicode/1f1e6-1f1f4.png?v8",angry:"https://github.githubassets.com/images/icons/emoji/unicode/1f620.png?v8",anguilla:"https://github.githubassets.com/images/icons/emoji/unicode/1f1e6-1f1ee.png?v8",anguished:"https://github.githubassets.com/images/icons/emoji/unicode/1f627.png?v8",ant:"https://github.githubassets.com/images/icons/emoji/unicode/1f41c.png?v8",antarctica:"https://github.githubassets.com/images/icons/emoji/unicode/1f1e6-1f1f6.png?v8",antigua_barbuda:"https://github.githubassets.com/images/icons/emoji/unicode/1f1e6-1f1ec.png?v8",apple:"https://github.githubassets.com/images/icons/emoji/unicode/1f34e.png?v8",aquarius:"https://github.githubassets.com/images/icons/emoji/unicode/2652.png?v8",argentina:"https://github.githubassets.com/images/icons/emoji/unicode/1f1e6-1f1f7.png?v8",aries:"https://github.githubassets.com/images/icons/emoji/unicode/2648.png?v8",armenia:"https://github.githubassets.com/images/icons/emoji/unicode/1f1e6-1f1f2.png?v8",arrow_backward:"https://github.githubassets.com/images/icons/emoji/unicode/25c0.png?v8",arrow_double_down:"https://github.githubassets.com/images/icons/emoji/unicode/23ec.png?v8",arrow_double_up:"https://github.githubassets.com/images/icons/emoji/unicode/23eb.png?v8",arrow_down:"https://github.githubassets.com/images/icons/emoji/unicode/2b07.png?v8",arrow_down_small:"https://github.githubassets.com/images/icons/emoji/unicode/1f53d.png?v8",arrow_forward:"https://github.githubassets.com/images/icons/emoji/unicode/25b6.png?v8",arrow_heading_down:"https://github.githubassets.com/images/icons/emoji/unicode/2935.png?v8",arrow_heading_up:"https://github.githubassets.com/images/icons/emoji/unicode/2934.png?v8",arrow_left:"https://github.githubassets.com/images/icons/emoji/unicode/2b05.png?v8",arrow_lower_left:"https://github.githubassets.com/images/icons/emoji/unicode/2199.png?v8",arrow_lower_right:"https://github.githubassets.com/images/icons/emoji/unicode/2198.png?v8",arrow_right:"https://github.githubassets.com/images/icons/emoji/unicode/27a1.png?v8",arrow_right_hook:"https://github.githubassets.com/images/icons/emoji/unicode/21aa.png?v8",arrow_up:"https://github.githubassets.com/images/icons/emoji/unicode/2b06.png?v8",arrow_up_down:"https://github.githubassets.com/images/icons/emoji/unicode/2195.png?v8",arrow_up_small:"https://github.githubassets.com/images/icons/emoji/unicode/1f53c.png?v8",arrow_upper_left:"https://github.githubassets.com/images/icons/emoji/unicode/2196.png?v8",arrow_upper_right:"https://github.githubassets.com/images/icons/emoji/unicode/2197.png?v8",arrows_clockwise:"https://github.githubassets.com/images/icons/emoji/unicode/1f503.png?v8",arrows_counterclockwise:"https://github.githubassets.com/images/icons/emoji/unicode/1f504.png?v8",art:"https://github.githubassets.com/images/icons/emoji/unicode/1f3a8.png?v8",articulated_lorry:"https://github.githubassets.com/images/icons/emoji/unicode/1f69b.png?v8",artificial_satellite:"https://github.githubassets.com/images/icons/emoji/unicode/1f6f0.png?v8",artist:"https://github.githubassets.com/images/icons/emoji/unicode/1f9d1-1f3a8.png?v8",aruba:"https://github.githubassets.com/images/icons/emoji/unicode/1f1e6-1f1fc.png?v8",ascension_island:"https://github.githubassets.com/images/icons/emoji/unicode/1f1e6-1f1e8.png?v8",asterisk:"https://github.githubassets.com/images/icons/emoji/unicode/002a-20e3.png?v8",astonished:"https://github.githubassets.com/images/icons/emoji/unicode/1f632.png?v8",astronaut:"https://github.githubassets.com/images/icons/emoji/unicode/1f9d1-1f680.png?v8",athletic_shoe:"https://github.githubassets.com/images/icons/emoji/unicode/1f45f.png?v8",atm:"https://github.githubassets.com/images/icons/emoji/unicode/1f3e7.png?v8",atom:"https://github.githubassets.com/images/icons/emoji/atom.png?v8",atom_symbol:"https://github.githubassets.com/images/icons/emoji/unicode/269b.png?v8",australia:"https://github.githubassets.com/images/icons/emoji/unicode/1f1e6-1f1fa.png?v8",austria:"https://github.githubassets.com/images/icons/emoji/unicode/1f1e6-1f1f9.png?v8",auto_rickshaw:"https://github.githubassets.com/images/icons/emoji/unicode/1f6fa.png?v8",avocado:"https://github.githubassets.com/images/icons/emoji/unicode/1f951.png?v8",axe:"https://github.githubassets.com/images/icons/emoji/unicode/1fa93.png?v8",azerbaijan:"https://github.githubassets.com/images/icons/emoji/unicode/1f1e6-1f1ff.png?v8",b:"https://github.githubassets.com/images/icons/emoji/unicode/1f171.png?v8",baby:"https://github.githubassets.com/images/icons/emoji/unicode/1f476.png?v8",baby_bottle:"https://github.githubassets.com/images/icons/emoji/unicode/1f37c.png?v8",baby_chick:"https://github.githubassets.com/images/icons/emoji/unicode/1f424.png?v8",baby_symbol:"https://github.githubassets.com/images/icons/emoji/unicode/1f6bc.png?v8",back:"https://github.githubassets.com/images/icons/emoji/unicode/1f519.png?v8",bacon:"https://github.githubassets.com/images/icons/emoji/unicode/1f953.png?v8",badger:"https://github.githubassets.com/images/icons/emoji/unicode/1f9a1.png?v8",badminton:"https://github.githubassets.com/images/icons/emoji/unicode/1f3f8.png?v8",bagel:"https://github.githubassets.com/images/icons/emoji/unicode/1f96f.png?v8",baggage_claim:"https://github.githubassets.com/images/icons/emoji/unicode/1f6c4.png?v8",baguette_bread:"https://github.githubassets.com/images/icons/emoji/unicode/1f956.png?v8",bahamas:"https://github.githubassets.com/images/icons/emoji/unicode/1f1e7-1f1f8.png?v8",bahrain:"https://github.githubassets.com/images/icons/emoji/unicode/1f1e7-1f1ed.png?v8",balance_scale:"https://github.githubassets.com/images/icons/emoji/unicode/2696.png?v8",bald_man:"https://github.githubassets.com/images/icons/emoji/unicode/1f468-1f9b2.png?v8",bald_woman:"https://github.githubassets.com/images/icons/emoji/unicode/1f469-1f9b2.png?v8",ballet_shoes:"https://github.githubassets.com/images/icons/emoji/unicode/1fa70.png?v8",balloon:"https://github.githubassets.com/images/icons/emoji/unicode/1f388.png?v8",ballot_box:"https://github.githubassets.com/images/icons/emoji/unicode/1f5f3.png?v8",ballot_box_with_check:"https://github.githubassets.com/images/icons/emoji/unicode/2611.png?v8",bamboo:"https://github.githubassets.com/images/icons/emoji/unicode/1f38d.png?v8",banana:"https://github.githubassets.com/images/icons/emoji/unicode/1f34c.png?v8",bangbang:"https://github.githubassets.com/images/icons/emoji/unicode/203c.png?v8",bangladesh:"https://github.githubassets.com/images/icons/emoji/unicode/1f1e7-1f1e9.png?v8",banjo:"https://github.githubassets.com/images/icons/emoji/unicode/1fa95.png?v8",bank:"https://github.githubassets.com/images/icons/emoji/unicode/1f3e6.png?v8",bar_chart:"https://github.githubassets.com/images/icons/emoji/unicode/1f4ca.png?v8",barbados:"https://github.githubassets.com/images/icons/emoji/unicode/1f1e7-1f1e7.png?v8",barber:"https://github.githubassets.com/images/icons/emoji/unicode/1f488.png?v8",baseball:"https://github.githubassets.com/images/icons/emoji/unicode/26be.png?v8",basecamp:"https://github.githubassets.com/images/icons/emoji/basecamp.png?v8",basecampy:"https://github.githubassets.com/images/icons/emoji/basecampy.png?v8",basket:"https://github.githubassets.com/images/icons/emoji/unicode/1f9fa.png?v8",basketball:"https://github.githubassets.com/images/icons/emoji/unicode/1f3c0.png?v8",basketball_man:"https://github.githubassets.com/images/icons/emoji/unicode/26f9-2642.png?v8",basketball_woman:"https://github.githubassets.com/images/icons/emoji/unicode/26f9-2640.png?v8",bat:"https://github.githubassets.com/images/icons/emoji/unicode/1f987.png?v8",bath:"https://github.githubassets.com/images/icons/emoji/unicode/1f6c0.png?v8",bathtub:"https://github.githubassets.com/images/icons/emoji/unicode/1f6c1.png?v8",battery:"https://github.githubassets.com/images/icons/emoji/unicode/1f50b.png?v8",beach_umbrella:"https://github.githubassets.com/images/icons/emoji/unicode/1f3d6.png?v8",bear:"https://github.githubassets.com/images/icons/emoji/unicode/1f43b.png?v8",bearded_person:"https://github.githubassets.com/images/icons/emoji/unicode/1f9d4.png?v8",beaver:"https://github.githubassets.com/images/icons/emoji/unicode/1f9ab.png?v8",bed:"https://github.githubassets.com/images/icons/emoji/unicode/1f6cf.png?v8",bee:"https://github.githubassets.com/images/icons/emoji/unicode/1f41d.png?v8",beer:"https://github.githubassets.com/images/icons/emoji/unicode/1f37a.png?v8",beers:"https://github.githubassets.com/images/icons/emoji/unicode/1f37b.png?v8",beetle:"https://github.githubassets.com/images/icons/emoji/unicode/1fab2.png?v8",beginner:"https://github.githubassets.com/images/icons/emoji/unicode/1f530.png?v8",belarus:"https://github.githubassets.com/images/icons/emoji/unicode/1f1e7-1f1fe.png?v8",belgium:"https://github.githubassets.com/images/icons/emoji/unicode/1f1e7-1f1ea.png?v8",belize:"https://github.githubassets.com/images/icons/emoji/unicode/1f1e7-1f1ff.png?v8",bell:"https://github.githubassets.com/images/icons/emoji/unicode/1f514.png?v8",bell_pepper:"https://github.githubassets.com/images/icons/emoji/unicode/1fad1.png?v8",bellhop_bell:"https://github.githubassets.com/images/icons/emoji/unicode/1f6ce.png?v8",benin:"https://github.githubassets.com/images/icons/emoji/unicode/1f1e7-1f1ef.png?v8",bento:"https://github.githubassets.com/images/icons/emoji/unicode/1f371.png?v8",bermuda:"https://github.githubassets.com/images/icons/emoji/unicode/1f1e7-1f1f2.png?v8",beverage_box:"https://github.githubassets.com/images/icons/emoji/unicode/1f9c3.png?v8",bhutan:"https://github.githubassets.com/images/icons/emoji/unicode/1f1e7-1f1f9.png?v8",bicyclist:"https://github.githubassets.com/images/icons/emoji/unicode/1f6b4.png?v8",bike:"https://github.githubassets.com/images/icons/emoji/unicode/1f6b2.png?v8",biking_man:"https://github.githubassets.com/images/icons/emoji/unicode/1f6b4-2642.png?v8",biking_woman:"https://github.githubassets.com/images/icons/emoji/unicode/1f6b4-2640.png?v8",bikini:"https://github.githubassets.com/images/icons/emoji/unicode/1f459.png?v8",billed_cap:"https://github.githubassets.com/images/icons/emoji/unicode/1f9e2.png?v8",biohazard:"https://github.githubassets.com/images/icons/emoji/unicode/2623.png?v8",bird:"https://github.githubassets.com/images/icons/emoji/unicode/1f426.png?v8",birthday:"https://github.githubassets.com/images/icons/emoji/unicode/1f382.png?v8",bison:"https://github.githubassets.com/images/icons/emoji/unicode/1f9ac.png?v8",black_cat:"https://github.githubassets.com/images/icons/emoji/unicode/1f408-2b1b.png?v8",black_circle:"https://github.githubassets.com/images/icons/emoji/unicode/26ab.png?v8",black_flag:"https://github.githubassets.com/images/icons/emoji/unicode/1f3f4.png?v8",black_heart:"https://github.githubassets.com/images/icons/emoji/unicode/1f5a4.png?v8",black_joker:"https://github.githubassets.com/images/icons/emoji/unicode/1f0cf.png?v8",black_large_square:"https://github.githubassets.com/images/icons/emoji/unicode/2b1b.png?v8",black_medium_small_square:"https://github.githubassets.com/images/icons/emoji/unicode/25fe.png?v8",black_medium_square:"https://github.githubassets.com/images/icons/emoji/unicode/25fc.png?v8",black_nib:"https://github.githubassets.com/images/icons/emoji/unicode/2712.png?v8",black_small_square:"https://github.githubassets.com/images/icons/emoji/unicode/25aa.png?v8",black_square_button:"https://github.githubassets.com/images/icons/emoji/unicode/1f532.png?v8",blond_haired_man:"https://github.githubassets.com/images/icons/emoji/unicode/1f471-2642.png?v8",blond_haired_person:"https://github.githubassets.com/images/icons/emoji/unicode/1f471.png?v8",blond_haired_woman:"https://github.githubassets.com/images/icons/emoji/unicode/1f471-2640.png?v8",blonde_woman:"https://github.githubassets.com/images/icons/emoji/unicode/1f471-2640.png?v8",blossom:"https://github.githubassets.com/images/icons/emoji/unicode/1f33c.png?v8",blowfish:"https://github.githubassets.com/images/icons/emoji/unicode/1f421.png?v8",blue_book:"https://github.githubassets.com/images/icons/emoji/unicode/1f4d8.png?v8",blue_car:"https://github.githubassets.com/images/icons/emoji/unicode/1f699.png?v8",blue_heart:"https://github.githubassets.com/images/icons/emoji/unicode/1f499.png?v8",blue_square:"https://github.githubassets.com/images/icons/emoji/unicode/1f7e6.png?v8",blueberries:"https://github.githubassets.com/images/icons/emoji/unicode/1fad0.png?v8",blush:"https://github.githubassets.com/images/icons/emoji/unicode/1f60a.png?v8",boar:"https://github.githubassets.com/images/icons/emoji/unicode/1f417.png?v8",boat:"https://github.githubassets.com/images/icons/emoji/unicode/26f5.png?v8",bolivia:"https://github.githubassets.com/images/icons/emoji/unicode/1f1e7-1f1f4.png?v8",bomb:"https://github.githubassets.com/images/icons/emoji/unicode/1f4a3.png?v8",bone:"https://github.githubassets.com/images/icons/emoji/unicode/1f9b4.png?v8",book:"https://github.githubassets.com/images/icons/emoji/unicode/1f4d6.png?v8",bookmark:"https://github.githubassets.com/images/icons/emoji/unicode/1f516.png?v8",bookmark_tabs:"https://github.githubassets.com/images/icons/emoji/unicode/1f4d1.png?v8",books:"https://github.githubassets.com/images/icons/emoji/unicode/1f4da.png?v8",boom:"https://github.githubassets.com/images/icons/emoji/unicode/1f4a5.png?v8",boomerang:"https://github.githubassets.com/images/icons/emoji/unicode/1fa83.png?v8",boot:"https://github.githubassets.com/images/icons/emoji/unicode/1f462.png?v8",bosnia_herzegovina:"https://github.githubassets.com/images/icons/emoji/unicode/1f1e7-1f1e6.png?v8",botswana:"https://github.githubassets.com/images/icons/emoji/unicode/1f1e7-1f1fc.png?v8",bouncing_ball_man:"https://github.githubassets.com/images/icons/emoji/unicode/26f9-2642.png?v8",bouncing_ball_person:"https://github.githubassets.com/images/icons/emoji/unicode/26f9.png?v8",bouncing_ball_woman:"https://github.githubassets.com/images/icons/emoji/unicode/26f9-2640.png?v8",bouquet:"https://github.githubassets.com/images/icons/emoji/unicode/1f490.png?v8",bouvet_island:"https://github.githubassets.com/images/icons/emoji/unicode/1f1e7-1f1fb.png?v8",bow:"https://github.githubassets.com/images/icons/emoji/unicode/1f647.png?v8",bow_and_arrow:"https://github.githubassets.com/images/icons/emoji/unicode/1f3f9.png?v8",bowing_man:"https://github.githubassets.com/images/icons/emoji/unicode/1f647-2642.png?v8",bowing_woman:"https://github.githubassets.com/images/icons/emoji/unicode/1f647-2640.png?v8",bowl_with_spoon:"https://github.githubassets.com/images/icons/emoji/unicode/1f963.png?v8",bowling:"https://github.githubassets.com/images/icons/emoji/unicode/1f3b3.png?v8",bowtie:"https://github.githubassets.com/images/icons/emoji/bowtie.png?v8",boxing_glove:"https://github.githubassets.com/images/icons/emoji/unicode/1f94a.png?v8",boy:"https://github.githubassets.com/images/icons/emoji/unicode/1f466.png?v8",brain:"https://github.githubassets.com/images/icons/emoji/unicode/1f9e0.png?v8",brazil:"https://github.githubassets.com/images/icons/emoji/unicode/1f1e7-1f1f7.png?v8",bread:"https://github.githubassets.com/images/icons/emoji/unicode/1f35e.png?v8",breast_feeding:"https://github.githubassets.com/images/icons/emoji/unicode/1f931.png?v8",bricks:"https://github.githubassets.com/images/icons/emoji/unicode/1f9f1.png?v8",bride_with_veil:"https://github.githubassets.com/images/icons/emoji/unicode/1f470-2640.png?v8",bridge_at_night:"https://github.githubassets.com/images/icons/emoji/unicode/1f309.png?v8",briefcase:"https://github.githubassets.com/images/icons/emoji/unicode/1f4bc.png?v8",british_indian_ocean_territory:"https://github.githubassets.com/images/icons/emoji/unicode/1f1ee-1f1f4.png?v8",british_virgin_islands:"https://github.githubassets.com/images/icons/emoji/unicode/1f1fb-1f1ec.png?v8",broccoli:"https://github.githubassets.com/images/icons/emoji/unicode/1f966.png?v8",broken_heart:"https://github.githubassets.com/images/icons/emoji/unicode/1f494.png?v8",broom:"https://github.githubassets.com/images/icons/emoji/unicode/1f9f9.png?v8",brown_circle:"https://github.githubassets.com/images/icons/emoji/unicode/1f7e4.png?v8",brown_heart:"https://github.githubassets.com/images/icons/emoji/unicode/1f90e.png?v8",brown_square:"https://github.githubassets.com/images/icons/emoji/unicode/1f7eb.png?v8",brunei:"https://github.githubassets.com/images/icons/emoji/unicode/1f1e7-1f1f3.png?v8",bubble_tea:"https://github.githubassets.com/images/icons/emoji/unicode/1f9cb.png?v8",bucket:"https://github.githubassets.com/images/icons/emoji/unicode/1faa3.png?v8",bug:"https://github.githubassets.com/images/icons/emoji/unicode/1f41b.png?v8",building_construction:"https://github.githubassets.com/images/icons/emoji/unicode/1f3d7.png?v8",bulb:"https://github.githubassets.com/images/icons/emoji/unicode/1f4a1.png?v8",bulgaria:"https://github.githubassets.com/images/icons/emoji/unicode/1f1e7-1f1ec.png?v8",bullettrain_front:"https://github.githubassets.com/images/icons/emoji/unicode/1f685.png?v8",bullettrain_side:"https://github.githubassets.com/images/icons/emoji/unicode/1f684.png?v8",burkina_faso:"https://github.githubassets.com/images/icons/emoji/unicode/1f1e7-1f1eb.png?v8",burrito:"https://github.githubassets.com/images/icons/emoji/unicode/1f32f.png?v8",burundi:"https://github.githubassets.com/images/icons/emoji/unicode/1f1e7-1f1ee.png?v8",bus:"https://github.githubassets.com/images/icons/emoji/unicode/1f68c.png?v8",business_suit_levitating:"https://github.githubassets.com/images/icons/emoji/unicode/1f574.png?v8",busstop:"https://github.githubassets.com/images/icons/emoji/unicode/1f68f.png?v8",bust_in_silhouette:"https://github.githubassets.com/images/icons/emoji/unicode/1f464.png?v8",busts_in_silhouette:"https://github.githubassets.com/images/icons/emoji/unicode/1f465.png?v8",butter:"https://github.githubassets.com/images/icons/emoji/unicode/1f9c8.png?v8",butterfly:"https://github.githubassets.com/images/icons/emoji/unicode/1f98b.png?v8",cactus:"https://github.githubassets.com/images/icons/emoji/unicode/1f335.png?v8",cake:"https://github.githubassets.com/images/icons/emoji/unicode/1f370.png?v8",calendar:"https://github.githubassets.com/images/icons/emoji/unicode/1f4c6.png?v8",call_me_hand:"https://github.githubassets.com/images/icons/emoji/unicode/1f919.png?v8",calling:"https://github.githubassets.com/images/icons/emoji/unicode/1f4f2.png?v8",cambodia:"https://github.githubassets.com/images/icons/emoji/unicode/1f1f0-1f1ed.png?v8",camel:"https://github.githubassets.com/images/icons/emoji/unicode/1f42b.png?v8",camera:"https://github.githubassets.com/images/icons/emoji/unicode/1f4f7.png?v8",camera_flash:"https://github.githubassets.com/images/icons/emoji/unicode/1f4f8.png?v8",cameroon:"https://github.githubassets.com/images/icons/emoji/unicode/1f1e8-1f1f2.png?v8",camping:"https://github.githubassets.com/images/icons/emoji/unicode/1f3d5.png?v8",canada:"https://github.githubassets.com/images/icons/emoji/unicode/1f1e8-1f1e6.png?v8",canary_islands:"https://github.githubassets.com/images/icons/emoji/unicode/1f1ee-1f1e8.png?v8",cancer:"https://github.githubassets.com/images/icons/emoji/unicode/264b.png?v8",candle:"https://github.githubassets.com/images/icons/emoji/unicode/1f56f.png?v8",candy:"https://github.githubassets.com/images/icons/emoji/unicode/1f36c.png?v8",canned_food:"https://github.githubassets.com/images/icons/emoji/unicode/1f96b.png?v8",canoe:"https://github.githubassets.com/images/icons/emoji/unicode/1f6f6.png?v8",cape_verde:"https://github.githubassets.com/images/icons/emoji/unicode/1f1e8-1f1fb.png?v8",capital_abcd:"https://github.githubassets.com/images/icons/emoji/unicode/1f520.png?v8",capricorn:"https://github.githubassets.com/images/icons/emoji/unicode/2651.png?v8",car:"https://github.githubassets.com/images/icons/emoji/unicode/1f697.png?v8",card_file_box:"https://github.githubassets.com/images/icons/emoji/unicode/1f5c3.png?v8",card_index:"https://github.githubassets.com/images/icons/emoji/unicode/1f4c7.png?v8",card_index_dividers:"https://github.githubassets.com/images/icons/emoji/unicode/1f5c2.png?v8",caribbean_netherlands:"https://github.githubassets.com/images/icons/emoji/unicode/1f1e7-1f1f6.png?v8",carousel_horse:"https://github.githubassets.com/images/icons/emoji/unicode/1f3a0.png?v8",carpentry_saw:"https://github.githubassets.com/images/icons/emoji/unicode/1fa9a.png?v8",carrot:"https://github.githubassets.com/images/icons/emoji/unicode/1f955.png?v8",cartwheeling:"https://github.githubassets.com/images/icons/emoji/unicode/1f938.png?v8",cat:"https://github.githubassets.com/images/icons/emoji/unicode/1f431.png?v8",cat2:"https://github.githubassets.com/images/icons/emoji/unicode/1f408.png?v8",cayman_islands:"https://github.githubassets.com/images/icons/emoji/unicode/1f1f0-1f1fe.png?v8",cd:"https://github.githubassets.com/images/icons/emoji/unicode/1f4bf.png?v8",central_african_republic:"https://github.githubassets.com/images/icons/emoji/unicode/1f1e8-1f1eb.png?v8",ceuta_melilla:"https://github.githubassets.com/images/icons/emoji/unicode/1f1ea-1f1e6.png?v8",chad:"https://github.githubassets.com/images/icons/emoji/unicode/1f1f9-1f1e9.png?v8",chains:"https://github.githubassets.com/images/icons/emoji/unicode/26d3.png?v8",chair:"https://github.githubassets.com/images/icons/emoji/unicode/1fa91.png?v8",champagne:"https://github.githubassets.com/images/icons/emoji/unicode/1f37e.png?v8",chart:"https://github.githubassets.com/images/icons/emoji/unicode/1f4b9.png?v8",chart_with_downwards_trend:"https://github.githubassets.com/images/icons/emoji/unicode/1f4c9.png?v8",chart_with_upwards_trend:"https://github.githubassets.com/images/icons/emoji/unicode/1f4c8.png?v8",checkered_flag:"https://github.githubassets.com/images/icons/emoji/unicode/1f3c1.png?v8",cheese:"https://github.githubassets.com/images/icons/emoji/unicode/1f9c0.png?v8",cherries:"https://github.githubassets.com/images/icons/emoji/unicode/1f352.png?v8",cherry_blossom:"https://github.githubassets.com/images/icons/emoji/unicode/1f338.png?v8",chess_pawn:"https://github.githubassets.com/images/icons/emoji/unicode/265f.png?v8",chestnut:"https://github.githubassets.com/images/icons/emoji/unicode/1f330.png?v8",chicken:"https://github.githubassets.com/images/icons/emoji/unicode/1f414.png?v8",child:"https://github.githubassets.com/images/icons/emoji/unicode/1f9d2.png?v8",children_crossing:"https://github.githubassets.com/images/icons/emoji/unicode/1f6b8.png?v8",chile:"https://github.githubassets.com/images/icons/emoji/unicode/1f1e8-1f1f1.png?v8",chipmunk:"https://github.githubassets.com/images/icons/emoji/unicode/1f43f.png?v8",chocolate_bar:"https://github.githubassets.com/images/icons/emoji/unicode/1f36b.png?v8",chopsticks:"https://github.githubassets.com/images/icons/emoji/unicode/1f962.png?v8",christmas_island:"https://github.githubassets.com/images/icons/emoji/unicode/1f1e8-1f1fd.png?v8",christmas_tree:"https://github.githubassets.com/images/icons/emoji/unicode/1f384.png?v8",church:"https://github.githubassets.com/images/icons/emoji/unicode/26ea.png?v8",cinema:"https://github.githubassets.com/images/icons/emoji/unicode/1f3a6.png?v8",circus_tent:"https://github.githubassets.com/images/icons/emoji/unicode/1f3aa.png?v8",city_sunrise:"https://github.githubassets.com/images/icons/emoji/unicode/1f307.png?v8",city_sunset:"https://github.githubassets.com/images/icons/emoji/unicode/1f306.png?v8",cityscape:"https://github.githubassets.com/images/icons/emoji/unicode/1f3d9.png?v8",cl:"https://github.githubassets.com/images/icons/emoji/unicode/1f191.png?v8",clamp:"https://github.githubassets.com/images/icons/emoji/unicode/1f5dc.png?v8",clap:"https://github.githubassets.com/images/icons/emoji/unicode/1f44f.png?v8",clapper:"https://github.githubassets.com/images/icons/emoji/unicode/1f3ac.png?v8",classical_building:"https://github.githubassets.com/images/icons/emoji/unicode/1f3db.png?v8",climbing:"https://github.githubassets.com/images/icons/emoji/unicode/1f9d7.png?v8",climbing_man:"https://github.githubassets.com/images/icons/emoji/unicode/1f9d7-2642.png?v8",climbing_woman:"https://github.githubassets.com/images/icons/emoji/unicode/1f9d7-2640.png?v8",clinking_glasses:"https://github.githubassets.com/images/icons/emoji/unicode/1f942.png?v8",clipboard:"https://github.githubassets.com/images/icons/emoji/unicode/1f4cb.png?v8",clipperton_island:"https://github.githubassets.com/images/icons/emoji/unicode/1f1e8-1f1f5.png?v8",clock1:"https://github.githubassets.com/images/icons/emoji/unicode/1f550.png?v8",clock10:"https://github.githubassets.com/images/icons/emoji/unicode/1f559.png?v8",clock1030:"https://github.githubassets.com/images/icons/emoji/unicode/1f565.png?v8",clock11:"https://github.githubassets.com/images/icons/emoji/unicode/1f55a.png?v8",clock1130:"https://github.githubassets.com/images/icons/emoji/unicode/1f566.png?v8",clock12:"https://github.githubassets.com/images/icons/emoji/unicode/1f55b.png?v8",clock1230:"https://github.githubassets.com/images/icons/emoji/unicode/1f567.png?v8",clock130:"https://github.githubassets.com/images/icons/emoji/unicode/1f55c.png?v8",clock2:"https://github.githubassets.com/images/icons/emoji/unicode/1f551.png?v8",clock230:"https://github.githubassets.com/images/icons/emoji/unicode/1f55d.png?v8",clock3:"https://github.githubassets.com/images/icons/emoji/unicode/1f552.png?v8",clock330:"https://github.githubassets.com/images/icons/emoji/unicode/1f55e.png?v8",clock4:"https://github.githubassets.com/images/icons/emoji/unicode/1f553.png?v8",clock430:"https://github.githubassets.com/images/icons/emoji/unicode/1f55f.png?v8",clock5:"https://github.githubassets.com/images/icons/emoji/unicode/1f554.png?v8",clock530:"https://github.githubassets.com/images/icons/emoji/unicode/1f560.png?v8",clock6:"https://github.githubassets.com/images/icons/emoji/unicode/1f555.png?v8",clock630:"https://github.githubassets.com/images/icons/emoji/unicode/1f561.png?v8",clock7:"https://github.githubassets.com/images/icons/emoji/unicode/1f556.png?v8",clock730:"https://github.githubassets.com/images/icons/emoji/unicode/1f562.png?v8",clock8:"https://github.githubassets.com/images/icons/emoji/unicode/1f557.png?v8",clock830:"https://github.githubassets.com/images/icons/emoji/unicode/1f563.png?v8",clock9:"https://github.githubassets.com/images/icons/emoji/unicode/1f558.png?v8",clock930:"https://github.githubassets.com/images/icons/emoji/unicode/1f564.png?v8",closed_book:"https://github.githubassets.com/images/icons/emoji/unicode/1f4d5.png?v8",closed_lock_with_key:"https://github.githubassets.com/images/icons/emoji/unicode/1f510.png?v8",closed_umbrella:"https://github.githubassets.com/images/icons/emoji/unicode/1f302.png?v8",cloud:"https://github.githubassets.com/images/icons/emoji/unicode/2601.png?v8",cloud_with_lightning:"https://github.githubassets.com/images/icons/emoji/unicode/1f329.png?v8",cloud_with_lightning_and_rain:"https://github.githubassets.com/images/icons/emoji/unicode/26c8.png?v8",cloud_with_rain:"https://github.githubassets.com/images/icons/emoji/unicode/1f327.png?v8",cloud_with_snow:"https://github.githubassets.com/images/icons/emoji/unicode/1f328.png?v8",clown_face:"https://github.githubassets.com/images/icons/emoji/unicode/1f921.png?v8",clubs:"https://github.githubassets.com/images/icons/emoji/unicode/2663.png?v8",cn:"https://github.githubassets.com/images/icons/emoji/unicode/1f1e8-1f1f3.png?v8",coat:"https://github.githubassets.com/images/icons/emoji/unicode/1f9e5.png?v8",cockroach:"https://github.githubassets.com/images/icons/emoji/unicode/1fab3.png?v8",cocktail:"https://github.githubassets.com/images/icons/emoji/unicode/1f378.png?v8",coconut:"https://github.githubassets.com/images/icons/emoji/unicode/1f965.png?v8",cocos_islands:"https://github.githubassets.com/images/icons/emoji/unicode/1f1e8-1f1e8.png?v8",coffee:"https://github.githubassets.com/images/icons/emoji/unicode/2615.png?v8",coffin:"https://github.githubassets.com/images/icons/emoji/unicode/26b0.png?v8",coin:"https://github.githubassets.com/images/icons/emoji/unicode/1fa99.png?v8",cold_face:"https://github.githubassets.com/images/icons/emoji/unicode/1f976.png?v8",cold_sweat:"https://github.githubassets.com/images/icons/emoji/unicode/1f630.png?v8",collision:"https://github.githubassets.com/images/icons/emoji/unicode/1f4a5.png?v8",colombia:"https://github.githubassets.com/images/icons/emoji/unicode/1f1e8-1f1f4.png?v8",comet:"https://github.githubassets.com/images/icons/emoji/unicode/2604.png?v8",comoros:"https://github.githubassets.com/images/icons/emoji/unicode/1f1f0-1f1f2.png?v8",compass:"https://github.githubassets.com/images/icons/emoji/unicode/1f9ed.png?v8",computer:"https://github.githubassets.com/images/icons/emoji/unicode/1f4bb.png?v8",computer_mouse:"https://github.githubassets.com/images/icons/emoji/unicode/1f5b1.png?v8",confetti_ball:"https://github.githubassets.com/images/icons/emoji/unicode/1f38a.png?v8",confounded:"https://github.githubassets.com/images/icons/emoji/unicode/1f616.png?v8",confused:"https://github.githubassets.com/images/icons/emoji/unicode/1f615.png?v8",congo_brazzaville:"https://github.githubassets.com/images/icons/emoji/unicode/1f1e8-1f1ec.png?v8",congo_kinshasa:"https://github.githubassets.com/images/icons/emoji/unicode/1f1e8-1f1e9.png?v8",congratulations:"https://github.githubassets.com/images/icons/emoji/unicode/3297.png?v8",construction:"https://github.githubassets.com/images/icons/emoji/unicode/1f6a7.png?v8",construction_worker:"https://github.githubassets.com/images/icons/emoji/unicode/1f477.png?v8",construction_worker_man:"https://github.githubassets.com/images/icons/emoji/unicode/1f477-2642.png?v8",construction_worker_woman:"https://github.githubassets.com/images/icons/emoji/unicode/1f477-2640.png?v8",control_knobs:"https://github.githubassets.com/images/icons/emoji/unicode/1f39b.png?v8",convenience_store:"https://github.githubassets.com/images/icons/emoji/unicode/1f3ea.png?v8",cook:"https://github.githubassets.com/images/icons/emoji/unicode/1f9d1-1f373.png?v8",cook_islands:"https://github.githubassets.com/images/icons/emoji/unicode/1f1e8-1f1f0.png?v8",cookie:"https://github.githubassets.com/images/icons/emoji/unicode/1f36a.png?v8",cool:"https://github.githubassets.com/images/icons/emoji/unicode/1f192.png?v8",cop:"https://github.githubassets.com/images/icons/emoji/unicode/1f46e.png?v8",copyright:"https://github.githubassets.com/images/icons/emoji/unicode/00a9.png?v8",corn:"https://github.githubassets.com/images/icons/emoji/unicode/1f33d.png?v8",costa_rica:"https://github.githubassets.com/images/icons/emoji/unicode/1f1e8-1f1f7.png?v8",cote_divoire:"https://github.githubassets.com/images/icons/emoji/unicode/1f1e8-1f1ee.png?v8",couch_and_lamp:"https://github.githubassets.com/images/icons/emoji/unicode/1f6cb.png?v8",couple:"https://github.githubassets.com/images/icons/emoji/unicode/1f46b.png?v8",couple_with_heart:"https://github.githubassets.com/images/icons/emoji/unicode/1f491.png?v8",couple_with_heart_man_man:"https://github.githubassets.com/images/icons/emoji/unicode/1f468-2764-1f468.png?v8",couple_with_heart_woman_man:"https://github.githubassets.com/images/icons/emoji/unicode/1f469-2764-1f468.png?v8",couple_with_heart_woman_woman:"https://github.githubassets.com/images/icons/emoji/unicode/1f469-2764-1f469.png?v8",couplekiss:"https://github.githubassets.com/images/icons/emoji/unicode/1f48f.png?v8",couplekiss_man_man:"https://github.githubassets.com/images/icons/emoji/unicode/1f468-2764-1f48b-1f468.png?v8",couplekiss_man_woman:"https://github.githubassets.com/images/icons/emoji/unicode/1f469-2764-1f48b-1f468.png?v8",couplekiss_woman_woman:"https://github.githubassets.com/images/icons/emoji/unicode/1f469-2764-1f48b-1f469.png?v8",cow:"https://github.githubassets.com/images/icons/emoji/unicode/1f42e.png?v8",cow2:"https://github.githubassets.com/images/icons/emoji/unicode/1f404.png?v8",cowboy_hat_face:"https://github.githubassets.com/images/icons/emoji/unicode/1f920.png?v8",crab:"https://github.githubassets.com/images/icons/emoji/unicode/1f980.png?v8",crayon:"https://github.githubassets.com/images/icons/emoji/unicode/1f58d.png?v8",credit_card:"https://github.githubassets.com/images/icons/emoji/unicode/1f4b3.png?v8",crescent_moon:"https://github.githubassets.com/images/icons/emoji/unicode/1f319.png?v8",cricket:"https://github.githubassets.com/images/icons/emoji/unicode/1f997.png?v8",cricket_game:"https://github.githubassets.com/images/icons/emoji/unicode/1f3cf.png?v8",croatia:"https://github.githubassets.com/images/icons/emoji/unicode/1f1ed-1f1f7.png?v8",crocodile:"https://github.githubassets.com/images/icons/emoji/unicode/1f40a.png?v8",croissant:"https://github.githubassets.com/images/icons/emoji/unicode/1f950.png?v8",crossed_fingers:"https://github.githubassets.com/images/icons/emoji/unicode/1f91e.png?v8",crossed_flags:"https://github.githubassets.com/images/icons/emoji/unicode/1f38c.png?v8",crossed_swords:"https://github.githubassets.com/images/icons/emoji/unicode/2694.png?v8",crown:"https://github.githubassets.com/images/icons/emoji/unicode/1f451.png?v8",cry:"https://github.githubassets.com/images/icons/emoji/unicode/1f622.png?v8",crying_cat_face:"https://github.githubassets.com/images/icons/emoji/unicode/1f63f.png?v8",crystal_ball:"https://github.githubassets.com/images/icons/emoji/unicode/1f52e.png?v8",cuba:"https://github.githubassets.com/images/icons/emoji/unicode/1f1e8-1f1fa.png?v8",cucumber:"https://github.githubassets.com/images/icons/emoji/unicode/1f952.png?v8",cup_with_straw:"https://github.githubassets.com/images/icons/emoji/unicode/1f964.png?v8",cupcake:"https://github.githubassets.com/images/icons/emoji/unicode/1f9c1.png?v8",cupid:"https://github.githubassets.com/images/icons/emoji/unicode/1f498.png?v8",curacao:"https://github.githubassets.com/images/icons/emoji/unicode/1f1e8-1f1fc.png?v8",curling_stone:"https://github.githubassets.com/images/icons/emoji/unicode/1f94c.png?v8",curly_haired_man:"https://github.githubassets.com/images/icons/emoji/unicode/1f468-1f9b1.png?v8",curly_haired_woman:"https://github.githubassets.com/images/icons/emoji/unicode/1f469-1f9b1.png?v8",curly_loop:"https://github.githubassets.com/images/icons/emoji/unicode/27b0.png?v8",currency_exchange:"https://github.githubassets.com/images/icons/emoji/unicode/1f4b1.png?v8",curry:"https://github.githubassets.com/images/icons/emoji/unicode/1f35b.png?v8",cursing_face:"https://github.githubassets.com/images/icons/emoji/unicode/1f92c.png?v8",custard:"https://github.githubassets.com/images/icons/emoji/unicode/1f36e.png?v8",customs:"https://github.githubassets.com/images/icons/emoji/unicode/1f6c3.png?v8",cut_of_meat:"https://github.githubassets.com/images/icons/emoji/unicode/1f969.png?v8",cyclone:"https://github.githubassets.com/images/icons/emoji/unicode/1f300.png?v8",cyprus:"https://github.githubassets.com/images/icons/emoji/unicode/1f1e8-1f1fe.png?v8",czech_republic:"https://github.githubassets.com/images/icons/emoji/unicode/1f1e8-1f1ff.png?v8",dagger:"https://github.githubassets.com/images/icons/emoji/unicode/1f5e1.png?v8",dancer:"https://github.githubassets.com/images/icons/emoji/unicode/1f483.png?v8",dancers:"https://github.githubassets.com/images/icons/emoji/unicode/1f46f.png?v8",dancing_men:"https://github.githubassets.com/images/icons/emoji/unicode/1f46f-2642.png?v8",dancing_women:"https://github.githubassets.com/images/icons/emoji/unicode/1f46f-2640.png?v8",dango:"https://github.githubassets.com/images/icons/emoji/unicode/1f361.png?v8",dark_sunglasses:"https://github.githubassets.com/images/icons/emoji/unicode/1f576.png?v8",dart:"https://github.githubassets.com/images/icons/emoji/unicode/1f3af.png?v8",dash:"https://github.githubassets.com/images/icons/emoji/unicode/1f4a8.png?v8",date:"https://github.githubassets.com/images/icons/emoji/unicode/1f4c5.png?v8",de:"https://github.githubassets.com/images/icons/emoji/unicode/1f1e9-1f1ea.png?v8",deaf_man:"https://github.githubassets.com/images/icons/emoji/unicode/1f9cf-2642.png?v8",deaf_person:"https://github.githubassets.com/images/icons/emoji/unicode/1f9cf.png?v8",deaf_woman:"https://github.githubassets.com/images/icons/emoji/unicode/1f9cf-2640.png?v8",deciduous_tree:"https://github.githubassets.com/images/icons/emoji/unicode/1f333.png?v8",deer:"https://github.githubassets.com/images/icons/emoji/unicode/1f98c.png?v8",denmark:"https://github.githubassets.com/images/icons/emoji/unicode/1f1e9-1f1f0.png?v8",department_store:"https://github.githubassets.com/images/icons/emoji/unicode/1f3ec.png?v8",dependabot:"https://github.githubassets.com/images/icons/emoji/dependabot.png?v8",derelict_house:"https://github.githubassets.com/images/icons/emoji/unicode/1f3da.png?v8",desert:"https://github.githubassets.com/images/icons/emoji/unicode/1f3dc.png?v8",desert_island:"https://github.githubassets.com/images/icons/emoji/unicode/1f3dd.png?v8",desktop_computer:"https://github.githubassets.com/images/icons/emoji/unicode/1f5a5.png?v8",detective:"https://github.githubassets.com/images/icons/emoji/unicode/1f575.png?v8",diamond_shape_with_a_dot_inside:"https://github.githubassets.com/images/icons/emoji/unicode/1f4a0.png?v8",diamonds:"https://github.githubassets.com/images/icons/emoji/unicode/2666.png?v8",diego_garcia:"https://github.githubassets.com/images/icons/emoji/unicode/1f1e9-1f1ec.png?v8",disappointed:"https://github.githubassets.com/images/icons/emoji/unicode/1f61e.png?v8",disappointed_relieved:"https://github.githubassets.com/images/icons/emoji/unicode/1f625.png?v8",disguised_face:"https://github.githubassets.com/images/icons/emoji/unicode/1f978.png?v8",diving_mask:"https://github.githubassets.com/images/icons/emoji/unicode/1f93f.png?v8",diya_lamp:"https://github.githubassets.com/images/icons/emoji/unicode/1fa94.png?v8",dizzy:"https://github.githubassets.com/images/icons/emoji/unicode/1f4ab.png?v8",dizzy_face:"https://github.githubassets.com/images/icons/emoji/unicode/1f635.png?v8",djibouti:"https://github.githubassets.com/images/icons/emoji/unicode/1f1e9-1f1ef.png?v8",dna:"https://github.githubassets.com/images/icons/emoji/unicode/1f9ec.png?v8",do_not_litter:"https://github.githubassets.com/images/icons/emoji/unicode/1f6af.png?v8",dodo:"https://github.githubassets.com/images/icons/emoji/unicode/1f9a4.png?v8",dog:"https://github.githubassets.com/images/icons/emoji/unicode/1f436.png?v8",dog2:"https://github.githubassets.com/images/icons/emoji/unicode/1f415.png?v8",dollar:"https://github.githubassets.com/images/icons/emoji/unicode/1f4b5.png?v8",dolls:"https://github.githubassets.com/images/icons/emoji/unicode/1f38e.png?v8",dolphin:"https://github.githubassets.com/images/icons/emoji/unicode/1f42c.png?v8",dominica:"https://github.githubassets.com/images/icons/emoji/unicode/1f1e9-1f1f2.png?v8",dominican_republic:"https://github.githubassets.com/images/icons/emoji/unicode/1f1e9-1f1f4.png?v8",door:"https://github.githubassets.com/images/icons/emoji/unicode/1f6aa.png?v8",doughnut:"https://github.githubassets.com/images/icons/emoji/unicode/1f369.png?v8",dove:"https://github.githubassets.com/images/icons/emoji/unicode/1f54a.png?v8",dragon:"https://github.githubassets.com/images/icons/emoji/unicode/1f409.png?v8",dragon_face:"https://github.githubassets.com/images/icons/emoji/unicode/1f432.png?v8",dress:"https://github.githubassets.com/images/icons/emoji/unicode/1f457.png?v8",dromedary_camel:"https://github.githubassets.com/images/icons/emoji/unicode/1f42a.png?v8",drooling_face:"https://github.githubassets.com/images/icons/emoji/unicode/1f924.png?v8",drop_of_blood:"https://github.githubassets.com/images/icons/emoji/unicode/1fa78.png?v8",droplet:"https://github.githubassets.com/images/icons/emoji/unicode/1f4a7.png?v8",drum:"https://github.githubassets.com/images/icons/emoji/unicode/1f941.png?v8",duck:"https://github.githubassets.com/images/icons/emoji/unicode/1f986.png?v8",dumpling:"https://github.githubassets.com/images/icons/emoji/unicode/1f95f.png?v8",dvd:"https://github.githubassets.com/images/icons/emoji/unicode/1f4c0.png?v8","e-mail":"https://github.githubassets.com/images/icons/emoji/unicode/1f4e7.png?v8",eagle:"https://github.githubassets.com/images/icons/emoji/unicode/1f985.png?v8",ear:"https://github.githubassets.com/images/icons/emoji/unicode/1f442.png?v8",ear_of_rice:"https://github.githubassets.com/images/icons/emoji/unicode/1f33e.png?v8",ear_with_hearing_aid:"https://github.githubassets.com/images/icons/emoji/unicode/1f9bb.png?v8",earth_africa:"https://github.githubassets.com/images/icons/emoji/unicode/1f30d.png?v8",earth_americas:"https://github.githubassets.com/images/icons/emoji/unicode/1f30e.png?v8",earth_asia:"https://github.githubassets.com/images/icons/emoji/unicode/1f30f.png?v8",ecuador:"https://github.githubassets.com/images/icons/emoji/unicode/1f1ea-1f1e8.png?v8",egg:"https://github.githubassets.com/images/icons/emoji/unicode/1f95a.png?v8",eggplant:"https://github.githubassets.com/images/icons/emoji/unicode/1f346.png?v8",egypt:"https://github.githubassets.com/images/icons/emoji/unicode/1f1ea-1f1ec.png?v8",eight:"https://github.githubassets.com/images/icons/emoji/unicode/0038-20e3.png?v8",eight_pointed_black_star:"https://github.githubassets.com/images/icons/emoji/unicode/2734.png?v8",eight_spoked_asterisk:"https://github.githubassets.com/images/icons/emoji/unicode/2733.png?v8",eject_button:"https://github.githubassets.com/images/icons/emoji/unicode/23cf.png?v8",el_salvador:"https://github.githubassets.com/images/icons/emoji/unicode/1f1f8-1f1fb.png?v8",electric_plug:"https://github.githubassets.com/images/icons/emoji/unicode/1f50c.png?v8",electron:"https://github.githubassets.com/images/icons/emoji/electron.png?v8",elephant:"https://github.githubassets.com/images/icons/emoji/unicode/1f418.png?v8",elevator:"https://github.githubassets.com/images/icons/emoji/unicode/1f6d7.png?v8",elf:"https://github.githubassets.com/images/icons/emoji/unicode/1f9dd.png?v8",elf_man:"https://github.githubassets.com/images/icons/emoji/unicode/1f9dd-2642.png?v8",elf_woman:"https://github.githubassets.com/images/icons/emoji/unicode/1f9dd-2640.png?v8",email:"https://github.githubassets.com/images/icons/emoji/unicode/1f4e7.png?v8",end:"https://github.githubassets.com/images/icons/emoji/unicode/1f51a.png?v8",england:"https://github.githubassets.com/images/icons/emoji/unicode/1f3f4-e0067-e0062-e0065-e006e-e0067-e007f.png?v8",envelope:"https://github.githubassets.com/images/icons/emoji/unicode/2709.png?v8",envelope_with_arrow:"https://github.githubassets.com/images/icons/emoji/unicode/1f4e9.png?v8",equatorial_guinea:"https://github.githubassets.com/images/icons/emoji/unicode/1f1ec-1f1f6.png?v8",eritrea:"https://github.githubassets.com/images/icons/emoji/unicode/1f1ea-1f1f7.png?v8",es:"https://github.githubassets.com/images/icons/emoji/unicode/1f1ea-1f1f8.png?v8",estonia:"https://github.githubassets.com/images/icons/emoji/unicode/1f1ea-1f1ea.png?v8",ethiopia:"https://github.githubassets.com/images/icons/emoji/unicode/1f1ea-1f1f9.png?v8",eu:"https://github.githubassets.com/images/icons/emoji/unicode/1f1ea-1f1fa.png?v8",euro:"https://github.githubassets.com/images/icons/emoji/unicode/1f4b6.png?v8",european_castle:"https://github.githubassets.com/images/icons/emoji/unicode/1f3f0.png?v8",european_post_office:"https://github.githubassets.com/images/icons/emoji/unicode/1f3e4.png?v8",european_union:"https://github.githubassets.com/images/icons/emoji/unicode/1f1ea-1f1fa.png?v8",evergreen_tree:"https://github.githubassets.com/images/icons/emoji/unicode/1f332.png?v8",exclamation:"https://github.githubassets.com/images/icons/emoji/unicode/2757.png?v8",exploding_head:"https://github.githubassets.com/images/icons/emoji/unicode/1f92f.png?v8",expressionless:"https://github.githubassets.com/images/icons/emoji/unicode/1f611.png?v8",eye:"https://github.githubassets.com/images/icons/emoji/unicode/1f441.png?v8",eye_speech_bubble:"https://github.githubassets.com/images/icons/emoji/unicode/1f441-1f5e8.png?v8",eyeglasses:"https://github.githubassets.com/images/icons/emoji/unicode/1f453.png?v8",eyes:"https://github.githubassets.com/images/icons/emoji/unicode/1f440.png?v8",face_exhaling:"https://github.githubassets.com/images/icons/emoji/unicode/1f62e-1f4a8.png?v8",face_in_clouds:"https://github.githubassets.com/images/icons/emoji/unicode/1f636-1f32b.png?v8",face_with_head_bandage:"https://github.githubassets.com/images/icons/emoji/unicode/1f915.png?v8",face_with_spiral_eyes:"https://github.githubassets.com/images/icons/emoji/unicode/1f635-1f4ab.png?v8",face_with_thermometer:"https://github.githubassets.com/images/icons/emoji/unicode/1f912.png?v8",facepalm:"https://github.githubassets.com/images/icons/emoji/unicode/1f926.png?v8",facepunch:"https://github.githubassets.com/images/icons/emoji/unicode/1f44a.png?v8",factory:"https://github.githubassets.com/images/icons/emoji/unicode/1f3ed.png?v8",factory_worker:"https://github.githubassets.com/images/icons/emoji/unicode/1f9d1-1f3ed.png?v8",fairy:"https://github.githubassets.com/images/icons/emoji/unicode/1f9da.png?v8",fairy_man:"https://github.githubassets.com/images/icons/emoji/unicode/1f9da-2642.png?v8",fairy_woman:"https://github.githubassets.com/images/icons/emoji/unicode/1f9da-2640.png?v8",falafel:"https://github.githubassets.com/images/icons/emoji/unicode/1f9c6.png?v8",falkland_islands:"https://github.githubassets.com/images/icons/emoji/unicode/1f1eb-1f1f0.png?v8",fallen_leaf:"https://github.githubassets.com/images/icons/emoji/unicode/1f342.png?v8",family:"https://github.githubassets.com/images/icons/emoji/unicode/1f46a.png?v8",family_man_boy:"https://github.githubassets.com/images/icons/emoji/unicode/1f468-1f466.png?v8",family_man_boy_boy:"https://github.githubassets.com/images/icons/emoji/unicode/1f468-1f466-1f466.png?v8",family_man_girl:"https://github.githubassets.com/images/icons/emoji/unicode/1f468-1f467.png?v8",family_man_girl_boy:"https://github.githubassets.com/images/icons/emoji/unicode/1f468-1f467-1f466.png?v8",family_man_girl_girl:"https://github.githubassets.com/images/icons/emoji/unicode/1f468-1f467-1f467.png?v8",family_man_man_boy:"https://github.githubassets.com/images/icons/emoji/unicode/1f468-1f468-1f466.png?v8",family_man_man_boy_boy:"https://github.githubassets.com/images/icons/emoji/unicode/1f468-1f468-1f466-1f466.png?v8",family_man_man_girl:"https://github.githubassets.com/images/icons/emoji/unicode/1f468-1f468-1f467.png?v8",family_man_man_girl_boy:"https://github.githubassets.com/images/icons/emoji/unicode/1f468-1f468-1f467-1f466.png?v8",family_man_man_girl_girl:"https://github.githubassets.com/images/icons/emoji/unicode/1f468-1f468-1f467-1f467.png?v8",family_man_woman_boy:"https://github.githubassets.com/images/icons/emoji/unicode/1f468-1f469-1f466.png?v8",family_man_woman_boy_boy:"https://github.githubassets.com/images/icons/emoji/unicode/1f468-1f469-1f466-1f466.png?v8",family_man_woman_girl:"https://github.githubassets.com/images/icons/emoji/unicode/1f468-1f469-1f467.png?v8",family_man_woman_girl_boy:"https://github.githubassets.com/images/icons/emoji/unicode/1f468-1f469-1f467-1f466.png?v8",family_man_woman_girl_girl:"https://github.githubassets.com/images/icons/emoji/unicode/1f468-1f469-1f467-1f467.png?v8",family_woman_boy:"https://github.githubassets.com/images/icons/emoji/unicode/1f469-1f466.png?v8",family_woman_boy_boy:"https://github.githubassets.com/images/icons/emoji/unicode/1f469-1f466-1f466.png?v8",family_woman_girl:"https://github.githubassets.com/images/icons/emoji/unicode/1f469-1f467.png?v8",family_woman_girl_boy:"https://github.githubassets.com/images/icons/emoji/unicode/1f469-1f467-1f466.png?v8",family_woman_girl_girl:"https://github.githubassets.com/images/icons/emoji/unicode/1f469-1f467-1f467.png?v8",family_woman_woman_boy:"https://github.githubassets.com/images/icons/emoji/unicode/1f469-1f469-1f466.png?v8",family_woman_woman_boy_boy:"https://github.githubassets.com/images/icons/emoji/unicode/1f469-1f469-1f466-1f466.png?v8",family_woman_woman_girl:"https://github.githubassets.com/images/icons/emoji/unicode/1f469-1f469-1f467.png?v8",family_woman_woman_girl_boy:"https://github.githubassets.com/images/icons/emoji/unicode/1f469-1f469-1f467-1f466.png?v8",family_woman_woman_girl_girl:"https://github.githubassets.com/images/icons/emoji/unicode/1f469-1f469-1f467-1f467.png?v8",farmer:"https://github.githubassets.com/images/icons/emoji/unicode/1f9d1-1f33e.png?v8",faroe_islands:"https://github.githubassets.com/images/icons/emoji/unicode/1f1eb-1f1f4.png?v8",fast_forward:"https://github.githubassets.com/images/icons/emoji/unicode/23e9.png?v8",fax:"https://github.githubassets.com/images/icons/emoji/unicode/1f4e0.png?v8",fearful:"https://github.githubassets.com/images/icons/emoji/unicode/1f628.png?v8",feather:"https://github.githubassets.com/images/icons/emoji/unicode/1fab6.png?v8",feelsgood:"https://github.githubassets.com/images/icons/emoji/feelsgood.png?v8",feet:"https://github.githubassets.com/images/icons/emoji/unicode/1f43e.png?v8",female_detective:"https://github.githubassets.com/images/icons/emoji/unicode/1f575-2640.png?v8",female_sign:"https://github.githubassets.com/images/icons/emoji/unicode/2640.png?v8",ferris_wheel:"https://github.githubassets.com/images/icons/emoji/unicode/1f3a1.png?v8",ferry:"https://github.githubassets.com/images/icons/emoji/unicode/26f4.png?v8",field_hockey:"https://github.githubassets.com/images/icons/emoji/unicode/1f3d1.png?v8",fiji:"https://github.githubassets.com/images/icons/emoji/unicode/1f1eb-1f1ef.png?v8",file_cabinet:"https://github.githubassets.com/images/icons/emoji/unicode/1f5c4.png?v8",file_folder:"https://github.githubassets.com/images/icons/emoji/unicode/1f4c1.png?v8",film_projector:"https://github.githubassets.com/images/icons/emoji/unicode/1f4fd.png?v8",film_strip:"https://github.githubassets.com/images/icons/emoji/unicode/1f39e.png?v8",finland:"https://github.githubassets.com/images/icons/emoji/unicode/1f1eb-1f1ee.png?v8",finnadie:"https://github.githubassets.com/images/icons/emoji/finnadie.png?v8",fire:"https://github.githubassets.com/images/icons/emoji/unicode/1f525.png?v8",fire_engine:"https://github.githubassets.com/images/icons/emoji/unicode/1f692.png?v8",fire_extinguisher:"https://github.githubassets.com/images/icons/emoji/unicode/1f9ef.png?v8",firecracker:"https://github.githubassets.com/images/icons/emoji/unicode/1f9e8.png?v8",firefighter:"https://github.githubassets.com/images/icons/emoji/unicode/1f9d1-1f692.png?v8",fireworks:"https://github.githubassets.com/images/icons/emoji/unicode/1f386.png?v8",first_quarter_moon:"https://github.githubassets.com/images/icons/emoji/unicode/1f313.png?v8",first_quarter_moon_with_face:"https://github.githubassets.com/images/icons/emoji/unicode/1f31b.png?v8",fish:"https://github.githubassets.com/images/icons/emoji/unicode/1f41f.png?v8",fish_cake:"https://github.githubassets.com/images/icons/emoji/unicode/1f365.png?v8",fishing_pole_and_fish:"https://github.githubassets.com/images/icons/emoji/unicode/1f3a3.png?v8",fishsticks:"https://github.githubassets.com/images/icons/emoji/fishsticks.png?v8",fist:"https://github.githubassets.com/images/icons/emoji/unicode/270a.png?v8",fist_left:"https://github.githubassets.com/images/icons/emoji/unicode/1f91b.png?v8",fist_oncoming:"https://github.githubassets.com/images/icons/emoji/unicode/1f44a.png?v8",fist_raised:"https://github.githubassets.com/images/icons/emoji/unicode/270a.png?v8",fist_right:"https://github.githubassets.com/images/icons/emoji/unicode/1f91c.png?v8",five:"https://github.githubassets.com/images/icons/emoji/unicode/0035-20e3.png?v8",flags:"https://github.githubassets.com/images/icons/emoji/unicode/1f38f.png?v8",flamingo:"https://github.githubassets.com/images/icons/emoji/unicode/1f9a9.png?v8",flashlight:"https://github.githubassets.com/images/icons/emoji/unicode/1f526.png?v8",flat_shoe:"https://github.githubassets.com/images/icons/emoji/unicode/1f97f.png?v8",flatbread:"https://github.githubassets.com/images/icons/emoji/unicode/1fad3.png?v8",fleur_de_lis:"https://github.githubassets.com/images/icons/emoji/unicode/269c.png?v8",flight_arrival:"https://github.githubassets.com/images/icons/emoji/unicode/1f6ec.png?v8",flight_departure:"https://github.githubassets.com/images/icons/emoji/unicode/1f6eb.png?v8",flipper:"https://github.githubassets.com/images/icons/emoji/unicode/1f42c.png?v8",floppy_disk:"https://github.githubassets.com/images/icons/emoji/unicode/1f4be.png?v8",flower_playing_cards:"https://github.githubassets.com/images/icons/emoji/unicode/1f3b4.png?v8",flushed:"https://github.githubassets.com/images/icons/emoji/unicode/1f633.png?v8",fly:"https://github.githubassets.com/images/icons/emoji/unicode/1fab0.png?v8",flying_disc:"https://github.githubassets.com/images/icons/emoji/unicode/1f94f.png?v8",flying_saucer:"https://github.githubassets.com/images/icons/emoji/unicode/1f6f8.png?v8",fog:"https://github.githubassets.com/images/icons/emoji/unicode/1f32b.png?v8",foggy:"https://github.githubassets.com/images/icons/emoji/unicode/1f301.png?v8",fondue:"https://github.githubassets.com/images/icons/emoji/unicode/1fad5.png?v8",foot:"https://github.githubassets.com/images/icons/emoji/unicode/1f9b6.png?v8",football:"https://github.githubassets.com/images/icons/emoji/unicode/1f3c8.png?v8",footprints:"https://github.githubassets.com/images/icons/emoji/unicode/1f463.png?v8",fork_and_knife:"https://github.githubassets.com/images/icons/emoji/unicode/1f374.png?v8",fortune_cookie:"https://github.githubassets.com/images/icons/emoji/unicode/1f960.png?v8",fountain:"https://github.githubassets.com/images/icons/emoji/unicode/26f2.png?v8",fountain_pen:"https://github.githubassets.com/images/icons/emoji/unicode/1f58b.png?v8",four:"https://github.githubassets.com/images/icons/emoji/unicode/0034-20e3.png?v8",four_leaf_clover:"https://github.githubassets.com/images/icons/emoji/unicode/1f340.png?v8",fox_face:"https://github.githubassets.com/images/icons/emoji/unicode/1f98a.png?v8",fr:"https://github.githubassets.com/images/icons/emoji/unicode/1f1eb-1f1f7.png?v8",framed_picture:"https://github.githubassets.com/images/icons/emoji/unicode/1f5bc.png?v8",free:"https://github.githubassets.com/images/icons/emoji/unicode/1f193.png?v8",french_guiana:"https://github.githubassets.com/images/icons/emoji/unicode/1f1ec-1f1eb.png?v8",french_polynesia:"https://github.githubassets.com/images/icons/emoji/unicode/1f1f5-1f1eb.png?v8",french_southern_territories:"https://github.githubassets.com/images/icons/emoji/unicode/1f1f9-1f1eb.png?v8",fried_egg:"https://github.githubassets.com/images/icons/emoji/unicode/1f373.png?v8",fried_shrimp:"https://github.githubassets.com/images/icons/emoji/unicode/1f364.png?v8",fries:"https://github.githubassets.com/images/icons/emoji/unicode/1f35f.png?v8",frog:"https://github.githubassets.com/images/icons/emoji/unicode/1f438.png?v8",frowning:"https://github.githubassets.com/images/icons/emoji/unicode/1f626.png?v8",frowning_face:"https://github.githubassets.com/images/icons/emoji/unicode/2639.png?v8",frowning_man:"https://github.githubassets.com/images/icons/emoji/unicode/1f64d-2642.png?v8",frowning_person:"https://github.githubassets.com/images/icons/emoji/unicode/1f64d.png?v8",frowning_woman:"https://github.githubassets.com/images/icons/emoji/unicode/1f64d-2640.png?v8",fu:"https://github.githubassets.com/images/icons/emoji/unicode/1f595.png?v8",fuelpump:"https://github.githubassets.com/images/icons/emoji/unicode/26fd.png?v8",full_moon:"https://github.githubassets.com/images/icons/emoji/unicode/1f315.png?v8",full_moon_with_face:"https://github.githubassets.com/images/icons/emoji/unicode/1f31d.png?v8",funeral_urn:"https://github.githubassets.com/images/icons/emoji/unicode/26b1.png?v8",gabon:"https://github.githubassets.com/images/icons/emoji/unicode/1f1ec-1f1e6.png?v8",gambia:"https://github.githubassets.com/images/icons/emoji/unicode/1f1ec-1f1f2.png?v8",game_die:"https://github.githubassets.com/images/icons/emoji/unicode/1f3b2.png?v8",garlic:"https://github.githubassets.com/images/icons/emoji/unicode/1f9c4.png?v8",gb:"https://github.githubassets.com/images/icons/emoji/unicode/1f1ec-1f1e7.png?v8",gear:"https://github.githubassets.com/images/icons/emoji/unicode/2699.png?v8",gem:"https://github.githubassets.com/images/icons/emoji/unicode/1f48e.png?v8",gemini:"https://github.githubassets.com/images/icons/emoji/unicode/264a.png?v8",genie:"https://github.githubassets.com/images/icons/emoji/unicode/1f9de.png?v8",genie_man:"https://github.githubassets.com/images/icons/emoji/unicode/1f9de-2642.png?v8",genie_woman:"https://github.githubassets.com/images/icons/emoji/unicode/1f9de-2640.png?v8",georgia:"https://github.githubassets.com/images/icons/emoji/unicode/1f1ec-1f1ea.png?v8",ghana:"https://github.githubassets.com/images/icons/emoji/unicode/1f1ec-1f1ed.png?v8",ghost:"https://github.githubassets.com/images/icons/emoji/unicode/1f47b.png?v8",gibraltar:"https://github.githubassets.com/images/icons/emoji/unicode/1f1ec-1f1ee.png?v8",gift:"https://github.githubassets.com/images/icons/emoji/unicode/1f381.png?v8",gift_heart:"https://github.githubassets.com/images/icons/emoji/unicode/1f49d.png?v8",giraffe:"https://github.githubassets.com/images/icons/emoji/unicode/1f992.png?v8",girl:"https://github.githubassets.com/images/icons/emoji/unicode/1f467.png?v8",globe_with_meridians:"https://github.githubassets.com/images/icons/emoji/unicode/1f310.png?v8",gloves:"https://github.githubassets.com/images/icons/emoji/unicode/1f9e4.png?v8",goal_net:"https://github.githubassets.com/images/icons/emoji/unicode/1f945.png?v8",goat:"https://github.githubassets.com/images/icons/emoji/unicode/1f410.png?v8",goberserk:"https://github.githubassets.com/images/icons/emoji/goberserk.png?v8",godmode:"https://github.githubassets.com/images/icons/emoji/godmode.png?v8",goggles:"https://github.githubassets.com/images/icons/emoji/unicode/1f97d.png?v8",golf:"https://github.githubassets.com/images/icons/emoji/unicode/26f3.png?v8",golfing:"https://github.githubassets.com/images/icons/emoji/unicode/1f3cc.png?v8",golfing_man:"https://github.githubassets.com/images/icons/emoji/unicode/1f3cc-2642.png?v8",golfing_woman:"https://github.githubassets.com/images/icons/emoji/unicode/1f3cc-2640.png?v8",gorilla:"https://github.githubassets.com/images/icons/emoji/unicode/1f98d.png?v8",grapes:"https://github.githubassets.com/images/icons/emoji/unicode/1f347.png?v8",greece:"https://github.githubassets.com/images/icons/emoji/unicode/1f1ec-1f1f7.png?v8",green_apple:"https://github.githubassets.com/images/icons/emoji/unicode/1f34f.png?v8",green_book:"https://github.githubassets.com/images/icons/emoji/unicode/1f4d7.png?v8",green_circle:"https://github.githubassets.com/images/icons/emoji/unicode/1f7e2.png?v8",green_heart:"https://github.githubassets.com/images/icons/emoji/unicode/1f49a.png?v8",green_salad:"https://github.githubassets.com/images/icons/emoji/unicode/1f957.png?v8",green_square:"https://github.githubassets.com/images/icons/emoji/unicode/1f7e9.png?v8",greenland:"https://github.githubassets.com/images/icons/emoji/unicode/1f1ec-1f1f1.png?v8",grenada:"https://github.githubassets.com/images/icons/emoji/unicode/1f1ec-1f1e9.png?v8",grey_exclamation:"https://github.githubassets.com/images/icons/emoji/unicode/2755.png?v8",grey_question:"https://github.githubassets.com/images/icons/emoji/unicode/2754.png?v8",grimacing:"https://github.githubassets.com/images/icons/emoji/unicode/1f62c.png?v8",grin:"https://github.githubassets.com/images/icons/emoji/unicode/1f601.png?v8",grinning:"https://github.githubassets.com/images/icons/emoji/unicode/1f600.png?v8",guadeloupe:"https://github.githubassets.com/images/icons/emoji/unicode/1f1ec-1f1f5.png?v8",guam:"https://github.githubassets.com/images/icons/emoji/unicode/1f1ec-1f1fa.png?v8",guard:"https://github.githubassets.com/images/icons/emoji/unicode/1f482.png?v8",guardsman:"https://github.githubassets.com/images/icons/emoji/unicode/1f482-2642.png?v8",guardswoman:"https://github.githubassets.com/images/icons/emoji/unicode/1f482-2640.png?v8",guatemala:"https://github.githubassets.com/images/icons/emoji/unicode/1f1ec-1f1f9.png?v8",guernsey:"https://github.githubassets.com/images/icons/emoji/unicode/1f1ec-1f1ec.png?v8",guide_dog:"https://github.githubassets.com/images/icons/emoji/unicode/1f9ae.png?v8",guinea:"https://github.githubassets.com/images/icons/emoji/unicode/1f1ec-1f1f3.png?v8",guinea_bissau:"https://github.githubassets.com/images/icons/emoji/unicode/1f1ec-1f1fc.png?v8",guitar:"https://github.githubassets.com/images/icons/emoji/unicode/1f3b8.png?v8",gun:"https://github.githubassets.com/images/icons/emoji/unicode/1f52b.png?v8",guyana:"https://github.githubassets.com/images/icons/emoji/unicode/1f1ec-1f1fe.png?v8",haircut:"https://github.githubassets.com/images/icons/emoji/unicode/1f487.png?v8",haircut_man:"https://github.githubassets.com/images/icons/emoji/unicode/1f487-2642.png?v8",haircut_woman:"https://github.githubassets.com/images/icons/emoji/unicode/1f487-2640.png?v8",haiti:"https://github.githubassets.com/images/icons/emoji/unicode/1f1ed-1f1f9.png?v8",hamburger:"https://github.githubassets.com/images/icons/emoji/unicode/1f354.png?v8",hammer:"https://github.githubassets.com/images/icons/emoji/unicode/1f528.png?v8",hammer_and_pick:"https://github.githubassets.com/images/icons/emoji/unicode/2692.png?v8",hammer_and_wrench:"https://github.githubassets.com/images/icons/emoji/unicode/1f6e0.png?v8",hamster:"https://github.githubassets.com/images/icons/emoji/unicode/1f439.png?v8",hand:"https://github.githubassets.com/images/icons/emoji/unicode/270b.png?v8",hand_over_mouth:"https://github.githubassets.com/images/icons/emoji/unicode/1f92d.png?v8",handbag:"https://github.githubassets.com/images/icons/emoji/unicode/1f45c.png?v8",handball_person:"https://github.githubassets.com/images/icons/emoji/unicode/1f93e.png?v8",handshake:"https://github.githubassets.com/images/icons/emoji/unicode/1f91d.png?v8",hankey:"https://github.githubassets.com/images/icons/emoji/unicode/1f4a9.png?v8",hash:"https://github.githubassets.com/images/icons/emoji/unicode/0023-20e3.png?v8",hatched_chick:"https://github.githubassets.com/images/icons/emoji/unicode/1f425.png?v8",hatching_chick:"https://github.githubassets.com/images/icons/emoji/unicode/1f423.png?v8",headphones:"https://github.githubassets.com/images/icons/emoji/unicode/1f3a7.png?v8",headstone:"https://github.githubassets.com/images/icons/emoji/unicode/1faa6.png?v8",health_worker:"https://github.githubassets.com/images/icons/emoji/unicode/1f9d1-2695.png?v8",hear_no_evil:"https://github.githubassets.com/images/icons/emoji/unicode/1f649.png?v8",heard_mcdonald_islands:"https://github.githubassets.com/images/icons/emoji/unicode/1f1ed-1f1f2.png?v8",heart:"https://github.githubassets.com/images/icons/emoji/unicode/2764.png?v8",heart_decoration:"https://github.githubassets.com/images/icons/emoji/unicode/1f49f.png?v8",heart_eyes:"https://github.githubassets.com/images/icons/emoji/unicode/1f60d.png?v8",heart_eyes_cat:"https://github.githubassets.com/images/icons/emoji/unicode/1f63b.png?v8",heart_on_fire:"https://github.githubassets.com/images/icons/emoji/unicode/2764-1f525.png?v8",heartbeat:"https://github.githubassets.com/images/icons/emoji/unicode/1f493.png?v8",heartpulse:"https://github.githubassets.com/images/icons/emoji/unicode/1f497.png?v8",hearts:"https://github.githubassets.com/images/icons/emoji/unicode/2665.png?v8",heavy_check_mark:"https://github.githubassets.com/images/icons/emoji/unicode/2714.png?v8",heavy_division_sign:"https://github.githubassets.com/images/icons/emoji/unicode/2797.png?v8",heavy_dollar_sign:"https://github.githubassets.com/images/icons/emoji/unicode/1f4b2.png?v8",heavy_exclamation_mark:"https://github.githubassets.com/images/icons/emoji/unicode/2757.png?v8",heavy_heart_exclamation:"https://github.githubassets.com/images/icons/emoji/unicode/2763.png?v8",heavy_minus_sign:"https://github.githubassets.com/images/icons/emoji/unicode/2796.png?v8",heavy_multiplication_x:"https://github.githubassets.com/images/icons/emoji/unicode/2716.png?v8",heavy_plus_sign:"https://github.githubassets.com/images/icons/emoji/unicode/2795.png?v8",hedgehog:"https://github.githubassets.com/images/icons/emoji/unicode/1f994.png?v8",helicopter:"https://github.githubassets.com/images/icons/emoji/unicode/1f681.png?v8",herb:"https://github.githubassets.com/images/icons/emoji/unicode/1f33f.png?v8",hibiscus:"https://github.githubassets.com/images/icons/emoji/unicode/1f33a.png?v8",high_brightness:"https://github.githubassets.com/images/icons/emoji/unicode/1f506.png?v8",high_heel:"https://github.githubassets.com/images/icons/emoji/unicode/1f460.png?v8",hiking_boot:"https://github.githubassets.com/images/icons/emoji/unicode/1f97e.png?v8",hindu_temple:"https://github.githubassets.com/images/icons/emoji/unicode/1f6d5.png?v8",hippopotamus:"https://github.githubassets.com/images/icons/emoji/unicode/1f99b.png?v8",hocho:"https://github.githubassets.com/images/icons/emoji/unicode/1f52a.png?v8",hole:"https://github.githubassets.com/images/icons/emoji/unicode/1f573.png?v8",honduras:"https://github.githubassets.com/images/icons/emoji/unicode/1f1ed-1f1f3.png?v8",honey_pot:"https://github.githubassets.com/images/icons/emoji/unicode/1f36f.png?v8",honeybee:"https://github.githubassets.com/images/icons/emoji/unicode/1f41d.png?v8",hong_kong:"https://github.githubassets.com/images/icons/emoji/unicode/1f1ed-1f1f0.png?v8",hook:"https://github.githubassets.com/images/icons/emoji/unicode/1fa9d.png?v8",horse:"https://github.githubassets.com/images/icons/emoji/unicode/1f434.png?v8",horse_racing:"https://github.githubassets.com/images/icons/emoji/unicode/1f3c7.png?v8",hospital:"https://github.githubassets.com/images/icons/emoji/unicode/1f3e5.png?v8",hot_face:"https://github.githubassets.com/images/icons/emoji/unicode/1f975.png?v8",hot_pepper:"https://github.githubassets.com/images/icons/emoji/unicode/1f336.png?v8",hotdog:"https://github.githubassets.com/images/icons/emoji/unicode/1f32d.png?v8",hotel:"https://github.githubassets.com/images/icons/emoji/unicode/1f3e8.png?v8",hotsprings:"https://github.githubassets.com/images/icons/emoji/unicode/2668.png?v8",hourglass:"https://github.githubassets.com/images/icons/emoji/unicode/231b.png?v8",hourglass_flowing_sand:"https://github.githubassets.com/images/icons/emoji/unicode/23f3.png?v8",house:"https://github.githubassets.com/images/icons/emoji/unicode/1f3e0.png?v8",house_with_garden:"https://github.githubassets.com/images/icons/emoji/unicode/1f3e1.png?v8",houses:"https://github.githubassets.com/images/icons/emoji/unicode/1f3d8.png?v8",hugs:"https://github.githubassets.com/images/icons/emoji/unicode/1f917.png?v8",hungary:"https://github.githubassets.com/images/icons/emoji/unicode/1f1ed-1f1fa.png?v8",hurtrealbad:"https://github.githubassets.com/images/icons/emoji/hurtrealbad.png?v8",hushed:"https://github.githubassets.com/images/icons/emoji/unicode/1f62f.png?v8",hut:"https://github.githubassets.com/images/icons/emoji/unicode/1f6d6.png?v8",ice_cream:"https://github.githubassets.com/images/icons/emoji/unicode/1f368.png?v8",ice_cube:"https://github.githubassets.com/images/icons/emoji/unicode/1f9ca.png?v8",ice_hockey:"https://github.githubassets.com/images/icons/emoji/unicode/1f3d2.png?v8",ice_skate:"https://github.githubassets.com/images/icons/emoji/unicode/26f8.png?v8",icecream:"https://github.githubassets.com/images/icons/emoji/unicode/1f366.png?v8",iceland:"https://github.githubassets.com/images/icons/emoji/unicode/1f1ee-1f1f8.png?v8",id:"https://github.githubassets.com/images/icons/emoji/unicode/1f194.png?v8",ideograph_advantage:"https://github.githubassets.com/images/icons/emoji/unicode/1f250.png?v8",imp:"https://github.githubassets.com/images/icons/emoji/unicode/1f47f.png?v8",inbox_tray:"https://github.githubassets.com/images/icons/emoji/unicode/1f4e5.png?v8",incoming_envelope:"https://github.githubassets.com/images/icons/emoji/unicode/1f4e8.png?v8",india:"https://github.githubassets.com/images/icons/emoji/unicode/1f1ee-1f1f3.png?v8",indonesia:"https://github.githubassets.com/images/icons/emoji/unicode/1f1ee-1f1e9.png?v8",infinity:"https://github.githubassets.com/images/icons/emoji/unicode/267e.png?v8",information_desk_person:"https://github.githubassets.com/images/icons/emoji/unicode/1f481.png?v8",information_source:"https://github.githubassets.com/images/icons/emoji/unicode/2139.png?v8",innocent:"https://github.githubassets.com/images/icons/emoji/unicode/1f607.png?v8",interrobang:"https://github.githubassets.com/images/icons/emoji/unicode/2049.png?v8",iphone:"https://github.githubassets.com/images/icons/emoji/unicode/1f4f1.png?v8",iran:"https://github.githubassets.com/images/icons/emoji/unicode/1f1ee-1f1f7.png?v8",iraq:"https://github.githubassets.com/images/icons/emoji/unicode/1f1ee-1f1f6.png?v8",ireland:"https://github.githubassets.com/images/icons/emoji/unicode/1f1ee-1f1ea.png?v8",isle_of_man:"https://github.githubassets.com/images/icons/emoji/unicode/1f1ee-1f1f2.png?v8",israel:"https://github.githubassets.com/images/icons/emoji/unicode/1f1ee-1f1f1.png?v8",it:"https://github.githubassets.com/images/icons/emoji/unicode/1f1ee-1f1f9.png?v8",izakaya_lantern:"https://github.githubassets.com/images/icons/emoji/unicode/1f3ee.png?v8",jack_o_lantern:"https://github.githubassets.com/images/icons/emoji/unicode/1f383.png?v8",jamaica:"https://github.githubassets.com/images/icons/emoji/unicode/1f1ef-1f1f2.png?v8",japan:"https://github.githubassets.com/images/icons/emoji/unicode/1f5fe.png?v8",japanese_castle:"https://github.githubassets.com/images/icons/emoji/unicode/1f3ef.png?v8",japanese_goblin:"https://github.githubassets.com/images/icons/emoji/unicode/1f47a.png?v8",japanese_ogre:"https://github.githubassets.com/images/icons/emoji/unicode/1f479.png?v8",jeans:"https://github.githubassets.com/images/icons/emoji/unicode/1f456.png?v8",jersey:"https://github.githubassets.com/images/icons/emoji/unicode/1f1ef-1f1ea.png?v8",jigsaw:"https://github.githubassets.com/images/icons/emoji/unicode/1f9e9.png?v8",jordan:"https://github.githubassets.com/images/icons/emoji/unicode/1f1ef-1f1f4.png?v8",joy:"https://github.githubassets.com/images/icons/emoji/unicode/1f602.png?v8",joy_cat:"https://github.githubassets.com/images/icons/emoji/unicode/1f639.png?v8",joystick:"https://github.githubassets.com/images/icons/emoji/unicode/1f579.png?v8",jp:"https://github.githubassets.com/images/icons/emoji/unicode/1f1ef-1f1f5.png?v8",judge:"https://github.githubassets.com/images/icons/emoji/unicode/1f9d1-2696.png?v8",juggling_person:"https://github.githubassets.com/images/icons/emoji/unicode/1f939.png?v8",kaaba:"https://github.githubassets.com/images/icons/emoji/unicode/1f54b.png?v8",kangaroo:"https://github.githubassets.com/images/icons/emoji/unicode/1f998.png?v8",kazakhstan:"https://github.githubassets.com/images/icons/emoji/unicode/1f1f0-1f1ff.png?v8",kenya:"https://github.githubassets.com/images/icons/emoji/unicode/1f1f0-1f1ea.png?v8",key:"https://github.githubassets.com/images/icons/emoji/unicode/1f511.png?v8",keyboard:"https://github.githubassets.com/images/icons/emoji/unicode/2328.png?v8",keycap_ten:"https://github.githubassets.com/images/icons/emoji/unicode/1f51f.png?v8",kick_scooter:"https://github.githubassets.com/images/icons/emoji/unicode/1f6f4.png?v8",kimono:"https://github.githubassets.com/images/icons/emoji/unicode/1f458.png?v8",kiribati:"https://github.githubassets.com/images/icons/emoji/unicode/1f1f0-1f1ee.png?v8",kiss:"https://github.githubassets.com/images/icons/emoji/unicode/1f48b.png?v8",kissing:"https://github.githubassets.com/images/icons/emoji/unicode/1f617.png?v8",kissing_cat:"https://github.githubassets.com/images/icons/emoji/unicode/1f63d.png?v8",kissing_closed_eyes:"https://github.githubassets.com/images/icons/emoji/unicode/1f61a.png?v8",kissing_heart:"https://github.githubassets.com/images/icons/emoji/unicode/1f618.png?v8",kissing_smiling_eyes:"https://github.githubassets.com/images/icons/emoji/unicode/1f619.png?v8",kite:"https://github.githubassets.com/images/icons/emoji/unicode/1fa81.png?v8",kiwi_fruit:"https://github.githubassets.com/images/icons/emoji/unicode/1f95d.png?v8",kneeling_man:"https://github.githubassets.com/images/icons/emoji/unicode/1f9ce-2642.png?v8",kneeling_person:"https://github.githubassets.com/images/icons/emoji/unicode/1f9ce.png?v8",kneeling_woman:"https://github.githubassets.com/images/icons/emoji/unicode/1f9ce-2640.png?v8",knife:"https://github.githubassets.com/images/icons/emoji/unicode/1f52a.png?v8",knot:"https://github.githubassets.com/images/icons/emoji/unicode/1faa2.png?v8",koala:"https://github.githubassets.com/images/icons/emoji/unicode/1f428.png?v8",koko:"https://github.githubassets.com/images/icons/emoji/unicode/1f201.png?v8",kosovo:"https://github.githubassets.com/images/icons/emoji/unicode/1f1fd-1f1f0.png?v8",kr:"https://github.githubassets.com/images/icons/emoji/unicode/1f1f0-1f1f7.png?v8",kuwait:"https://github.githubassets.com/images/icons/emoji/unicode/1f1f0-1f1fc.png?v8",kyrgyzstan:"https://github.githubassets.com/images/icons/emoji/unicode/1f1f0-1f1ec.png?v8",lab_coat:"https://github.githubassets.com/images/icons/emoji/unicode/1f97c.png?v8",label:"https://github.githubassets.com/images/icons/emoji/unicode/1f3f7.png?v8",lacrosse:"https://github.githubassets.com/images/icons/emoji/unicode/1f94d.png?v8",ladder:"https://github.githubassets.com/images/icons/emoji/unicode/1fa9c.png?v8",lady_beetle:"https://github.githubassets.com/images/icons/emoji/unicode/1f41e.png?v8",lantern:"https://github.githubassets.com/images/icons/emoji/unicode/1f3ee.png?v8",laos:"https://github.githubassets.com/images/icons/emoji/unicode/1f1f1-1f1e6.png?v8",large_blue_circle:"https://github.githubassets.com/images/icons/emoji/unicode/1f535.png?v8",large_blue_diamond:"https://github.githubassets.com/images/icons/emoji/unicode/1f537.png?v8",large_orange_diamond:"https://github.githubassets.com/images/icons/emoji/unicode/1f536.png?v8",last_quarter_moon:"https://github.githubassets.com/images/icons/emoji/unicode/1f317.png?v8",last_quarter_moon_with_face:"https://github.githubassets.com/images/icons/emoji/unicode/1f31c.png?v8",latin_cross:"https://github.githubassets.com/images/icons/emoji/unicode/271d.png?v8",latvia:"https://github.githubassets.com/images/icons/emoji/unicode/1f1f1-1f1fb.png?v8",laughing:"https://github.githubassets.com/images/icons/emoji/unicode/1f606.png?v8",leafy_green:"https://github.githubassets.com/images/icons/emoji/unicode/1f96c.png?v8",leaves:"https://github.githubassets.com/images/icons/emoji/unicode/1f343.png?v8",lebanon:"https://github.githubassets.com/images/icons/emoji/unicode/1f1f1-1f1e7.png?v8",ledger:"https://github.githubassets.com/images/icons/emoji/unicode/1f4d2.png?v8",left_luggage:"https://github.githubassets.com/images/icons/emoji/unicode/1f6c5.png?v8",left_right_arrow:"https://github.githubassets.com/images/icons/emoji/unicode/2194.png?v8",left_speech_bubble:"https://github.githubassets.com/images/icons/emoji/unicode/1f5e8.png?v8",leftwards_arrow_with_hook:"https://github.githubassets.com/images/icons/emoji/unicode/21a9.png?v8",leg:"https://github.githubassets.com/images/icons/emoji/unicode/1f9b5.png?v8",lemon:"https://github.githubassets.com/images/icons/emoji/unicode/1f34b.png?v8",leo:"https://github.githubassets.com/images/icons/emoji/unicode/264c.png?v8",leopard:"https://github.githubassets.com/images/icons/emoji/unicode/1f406.png?v8",lesotho:"https://github.githubassets.com/images/icons/emoji/unicode/1f1f1-1f1f8.png?v8",level_slider:"https://github.githubassets.com/images/icons/emoji/unicode/1f39a.png?v8",liberia:"https://github.githubassets.com/images/icons/emoji/unicode/1f1f1-1f1f7.png?v8",libra:"https://github.githubassets.com/images/icons/emoji/unicode/264e.png?v8",libya:"https://github.githubassets.com/images/icons/emoji/unicode/1f1f1-1f1fe.png?v8",liechtenstein:"https://github.githubassets.com/images/icons/emoji/unicode/1f1f1-1f1ee.png?v8",light_rail:"https://github.githubassets.com/images/icons/emoji/unicode/1f688.png?v8",link:"https://github.githubassets.com/images/icons/emoji/unicode/1f517.png?v8",lion:"https://github.githubassets.com/images/icons/emoji/unicode/1f981.png?v8",lips:"https://github.githubassets.com/images/icons/emoji/unicode/1f444.png?v8",lipstick:"https://github.githubassets.com/images/icons/emoji/unicode/1f484.png?v8",lithuania:"https://github.githubassets.com/images/icons/emoji/unicode/1f1f1-1f1f9.png?v8",lizard:"https://github.githubassets.com/images/icons/emoji/unicode/1f98e.png?v8",llama:"https://github.githubassets.com/images/icons/emoji/unicode/1f999.png?v8",lobster:"https://github.githubassets.com/images/icons/emoji/unicode/1f99e.png?v8",lock:"https://github.githubassets.com/images/icons/emoji/unicode/1f512.png?v8",lock_with_ink_pen:"https://github.githubassets.com/images/icons/emoji/unicode/1f50f.png?v8",lollipop:"https://github.githubassets.com/images/icons/emoji/unicode/1f36d.png?v8",long_drum:"https://github.githubassets.com/images/icons/emoji/unicode/1fa98.png?v8",loop:"https://github.githubassets.com/images/icons/emoji/unicode/27bf.png?v8",lotion_bottle:"https://github.githubassets.com/images/icons/emoji/unicode/1f9f4.png?v8",lotus_position:"https://github.githubassets.com/images/icons/emoji/unicode/1f9d8.png?v8",lotus_position_man:"https://github.githubassets.com/images/icons/emoji/unicode/1f9d8-2642.png?v8",lotus_position_woman:"https://github.githubassets.com/images/icons/emoji/unicode/1f9d8-2640.png?v8",loud_sound:"https://github.githubassets.com/images/icons/emoji/unicode/1f50a.png?v8",loudspeaker:"https://github.githubassets.com/images/icons/emoji/unicode/1f4e2.png?v8",love_hotel:"https://github.githubassets.com/images/icons/emoji/unicode/1f3e9.png?v8",love_letter:"https://github.githubassets.com/images/icons/emoji/unicode/1f48c.png?v8",love_you_gesture:"https://github.githubassets.com/images/icons/emoji/unicode/1f91f.png?v8",low_brightness:"https://github.githubassets.com/images/icons/emoji/unicode/1f505.png?v8",luggage:"https://github.githubassets.com/images/icons/emoji/unicode/1f9f3.png?v8",lungs:"https://github.githubassets.com/images/icons/emoji/unicode/1fac1.png?v8",luxembourg:"https://github.githubassets.com/images/icons/emoji/unicode/1f1f1-1f1fa.png?v8",lying_face:"https://github.githubassets.com/images/icons/emoji/unicode/1f925.png?v8",m:"https://github.githubassets.com/images/icons/emoji/unicode/24c2.png?v8",macau:"https://github.githubassets.com/images/icons/emoji/unicode/1f1f2-1f1f4.png?v8",macedonia:"https://github.githubassets.com/images/icons/emoji/unicode/1f1f2-1f1f0.png?v8",madagascar:"https://github.githubassets.com/images/icons/emoji/unicode/1f1f2-1f1ec.png?v8",mag:"https://github.githubassets.com/images/icons/emoji/unicode/1f50d.png?v8",mag_right:"https://github.githubassets.com/images/icons/emoji/unicode/1f50e.png?v8",mage:"https://github.githubassets.com/images/icons/emoji/unicode/1f9d9.png?v8",mage_man:"https://github.githubassets.com/images/icons/emoji/unicode/1f9d9-2642.png?v8",mage_woman:"https://github.githubassets.com/images/icons/emoji/unicode/1f9d9-2640.png?v8",magic_wand:"https://github.githubassets.com/images/icons/emoji/unicode/1fa84.png?v8",magnet:"https://github.githubassets.com/images/icons/emoji/unicode/1f9f2.png?v8",mahjong:"https://github.githubassets.com/images/icons/emoji/unicode/1f004.png?v8",mailbox:"https://github.githubassets.com/images/icons/emoji/unicode/1f4eb.png?v8",mailbox_closed:"https://github.githubassets.com/images/icons/emoji/unicode/1f4ea.png?v8",mailbox_with_mail:"https://github.githubassets.com/images/icons/emoji/unicode/1f4ec.png?v8",mailbox_with_no_mail:"https://github.githubassets.com/images/icons/emoji/unicode/1f4ed.png?v8",malawi:"https://github.githubassets.com/images/icons/emoji/unicode/1f1f2-1f1fc.png?v8",malaysia:"https://github.githubassets.com/images/icons/emoji/unicode/1f1f2-1f1fe.png?v8",maldives:"https://github.githubassets.com/images/icons/emoji/unicode/1f1f2-1f1fb.png?v8",male_detective:"https://github.githubassets.com/images/icons/emoji/unicode/1f575-2642.png?v8",male_sign:"https://github.githubassets.com/images/icons/emoji/unicode/2642.png?v8",mali:"https://github.githubassets.com/images/icons/emoji/unicode/1f1f2-1f1f1.png?v8",malta:"https://github.githubassets.com/images/icons/emoji/unicode/1f1f2-1f1f9.png?v8",mammoth:"https://github.githubassets.com/images/icons/emoji/unicode/1f9a3.png?v8",man:"https://github.githubassets.com/images/icons/emoji/unicode/1f468.png?v8",man_artist:"https://github.githubassets.com/images/icons/emoji/unicode/1f468-1f3a8.png?v8",man_astronaut:"https://github.githubassets.com/images/icons/emoji/unicode/1f468-1f680.png?v8",man_beard:"https://github.githubassets.com/images/icons/emoji/unicode/1f9d4-2642.png?v8",man_cartwheeling:"https://github.githubassets.com/images/icons/emoji/unicode/1f938-2642.png?v8",man_cook:"https://github.githubassets.com/images/icons/emoji/unicode/1f468-1f373.png?v8",man_dancing:"https://github.githubassets.com/images/icons/emoji/unicode/1f57a.png?v8",man_facepalming:"https://github.githubassets.com/images/icons/emoji/unicode/1f926-2642.png?v8",man_factory_worker:"https://github.githubassets.com/images/icons/emoji/unicode/1f468-1f3ed.png?v8",man_farmer:"https://github.githubassets.com/images/icons/emoji/unicode/1f468-1f33e.png?v8",man_feeding_baby:"https://github.githubassets.com/images/icons/emoji/unicode/1f468-1f37c.png?v8",man_firefighter:"https://github.githubassets.com/images/icons/emoji/unicode/1f468-1f692.png?v8",man_health_worker:"https://github.githubassets.com/images/icons/emoji/unicode/1f468-2695.png?v8",man_in_manual_wheelchair:"https://github.githubassets.com/images/icons/emoji/unicode/1f468-1f9bd.png?v8",man_in_motorized_wheelchair:"https://github.githubassets.com/images/icons/emoji/unicode/1f468-1f9bc.png?v8",man_in_tuxedo:"https://github.githubassets.com/images/icons/emoji/unicode/1f935-2642.png?v8",man_judge:"https://github.githubassets.com/images/icons/emoji/unicode/1f468-2696.png?v8",man_juggling:"https://github.githubassets.com/images/icons/emoji/unicode/1f939-2642.png?v8",man_mechanic:"https://github.githubassets.com/images/icons/emoji/unicode/1f468-1f527.png?v8",man_office_worker:"https://github.githubassets.com/images/icons/emoji/unicode/1f468-1f4bc.png?v8",man_pilot:"https://github.githubassets.com/images/icons/emoji/unicode/1f468-2708.png?v8",man_playing_handball:"https://github.githubassets.com/images/icons/emoji/unicode/1f93e-2642.png?v8",man_playing_water_polo:"https://github.githubassets.com/images/icons/emoji/unicode/1f93d-2642.png?v8",man_scientist:"https://github.githubassets.com/images/icons/emoji/unicode/1f468-1f52c.png?v8",man_shrugging:"https://github.githubassets.com/images/icons/emoji/unicode/1f937-2642.png?v8",man_singer:"https://github.githubassets.com/images/icons/emoji/unicode/1f468-1f3a4.png?v8",man_student:"https://github.githubassets.com/images/icons/emoji/unicode/1f468-1f393.png?v8",man_teacher:"https://github.githubassets.com/images/icons/emoji/unicode/1f468-1f3eb.png?v8",man_technologist:"https://github.githubassets.com/images/icons/emoji/unicode/1f468-1f4bb.png?v8",man_with_gua_pi_mao:"https://github.githubassets.com/images/icons/emoji/unicode/1f472.png?v8",man_with_probing_cane:"https://github.githubassets.com/images/icons/emoji/unicode/1f468-1f9af.png?v8",man_with_turban:"https://github.githubassets.com/images/icons/emoji/unicode/1f473-2642.png?v8",man_with_veil:"https://github.githubassets.com/images/icons/emoji/unicode/1f470-2642.png?v8",mandarin:"https://github.githubassets.com/images/icons/emoji/unicode/1f34a.png?v8",mango:"https://github.githubassets.com/images/icons/emoji/unicode/1f96d.png?v8",mans_shoe:"https://github.githubassets.com/images/icons/emoji/unicode/1f45e.png?v8",mantelpiece_clock:"https://github.githubassets.com/images/icons/emoji/unicode/1f570.png?v8",manual_wheelchair:"https://github.githubassets.com/images/icons/emoji/unicode/1f9bd.png?v8",maple_leaf:"https://github.githubassets.com/images/icons/emoji/unicode/1f341.png?v8",marshall_islands:"https://github.githubassets.com/images/icons/emoji/unicode/1f1f2-1f1ed.png?v8",martial_arts_uniform:"https://github.githubassets.com/images/icons/emoji/unicode/1f94b.png?v8",martinique:"https://github.githubassets.com/images/icons/emoji/unicode/1f1f2-1f1f6.png?v8",mask:"https://github.githubassets.com/images/icons/emoji/unicode/1f637.png?v8",massage:"https://github.githubassets.com/images/icons/emoji/unicode/1f486.png?v8",massage_man:"https://github.githubassets.com/images/icons/emoji/unicode/1f486-2642.png?v8",massage_woman:"https://github.githubassets.com/images/icons/emoji/unicode/1f486-2640.png?v8",mate:"https://github.githubassets.com/images/icons/emoji/unicode/1f9c9.png?v8",mauritania:"https://github.githubassets.com/images/icons/emoji/unicode/1f1f2-1f1f7.png?v8",mauritius:"https://github.githubassets.com/images/icons/emoji/unicode/1f1f2-1f1fa.png?v8",mayotte:"https://github.githubassets.com/images/icons/emoji/unicode/1f1fe-1f1f9.png?v8",meat_on_bone:"https://github.githubassets.com/images/icons/emoji/unicode/1f356.png?v8",mechanic:"https://github.githubassets.com/images/icons/emoji/unicode/1f9d1-1f527.png?v8",mechanical_arm:"https://github.githubassets.com/images/icons/emoji/unicode/1f9be.png?v8",mechanical_leg:"https://github.githubassets.com/images/icons/emoji/unicode/1f9bf.png?v8",medal_military:"https://github.githubassets.com/images/icons/emoji/unicode/1f396.png?v8",medal_sports:"https://github.githubassets.com/images/icons/emoji/unicode/1f3c5.png?v8",medical_symbol:"https://github.githubassets.com/images/icons/emoji/unicode/2695.png?v8",mega:"https://github.githubassets.com/images/icons/emoji/unicode/1f4e3.png?v8",melon:"https://github.githubassets.com/images/icons/emoji/unicode/1f348.png?v8",memo:"https://github.githubassets.com/images/icons/emoji/unicode/1f4dd.png?v8",men_wrestling:"https://github.githubassets.com/images/icons/emoji/unicode/1f93c-2642.png?v8",mending_heart:"https://github.githubassets.com/images/icons/emoji/unicode/2764-1fa79.png?v8",menorah:"https://github.githubassets.com/images/icons/emoji/unicode/1f54e.png?v8",mens:"https://github.githubassets.com/images/icons/emoji/unicode/1f6b9.png?v8",mermaid:"https://github.githubassets.com/images/icons/emoji/unicode/1f9dc-2640.png?v8",merman:"https://github.githubassets.com/images/icons/emoji/unicode/1f9dc-2642.png?v8",merperson:"https://github.githubassets.com/images/icons/emoji/unicode/1f9dc.png?v8",metal:"https://github.githubassets.com/images/icons/emoji/unicode/1f918.png?v8",metro:"https://github.githubassets.com/images/icons/emoji/unicode/1f687.png?v8",mexico:"https://github.githubassets.com/images/icons/emoji/unicode/1f1f2-1f1fd.png?v8",microbe:"https://github.githubassets.com/images/icons/emoji/unicode/1f9a0.png?v8",micronesia:"https://github.githubassets.com/images/icons/emoji/unicode/1f1eb-1f1f2.png?v8",microphone:"https://github.githubassets.com/images/icons/emoji/unicode/1f3a4.png?v8",microscope:"https://github.githubassets.com/images/icons/emoji/unicode/1f52c.png?v8",middle_finger:"https://github.githubassets.com/images/icons/emoji/unicode/1f595.png?v8",military_helmet:"https://github.githubassets.com/images/icons/emoji/unicode/1fa96.png?v8",milk_glass:"https://github.githubassets.com/images/icons/emoji/unicode/1f95b.png?v8",milky_way:"https://github.githubassets.com/images/icons/emoji/unicode/1f30c.png?v8",minibus:"https://github.githubassets.com/images/icons/emoji/unicode/1f690.png?v8",minidisc:"https://github.githubassets.com/images/icons/emoji/unicode/1f4bd.png?v8",mirror:"https://github.githubassets.com/images/icons/emoji/unicode/1fa9e.png?v8",mobile_phone_off:"https://github.githubassets.com/images/icons/emoji/unicode/1f4f4.png?v8",moldova:"https://github.githubassets.com/images/icons/emoji/unicode/1f1f2-1f1e9.png?v8",monaco:"https://github.githubassets.com/images/icons/emoji/unicode/1f1f2-1f1e8.png?v8",money_mouth_face:"https://github.githubassets.com/images/icons/emoji/unicode/1f911.png?v8",money_with_wings:"https://github.githubassets.com/images/icons/emoji/unicode/1f4b8.png?v8",moneybag:"https://github.githubassets.com/images/icons/emoji/unicode/1f4b0.png?v8",mongolia:"https://github.githubassets.com/images/icons/emoji/unicode/1f1f2-1f1f3.png?v8",monkey:"https://github.githubassets.com/images/icons/emoji/unicode/1f412.png?v8",monkey_face:"https://github.githubassets.com/images/icons/emoji/unicode/1f435.png?v8",monocle_face:"https://github.githubassets.com/images/icons/emoji/unicode/1f9d0.png?v8",monorail:"https://github.githubassets.com/images/icons/emoji/unicode/1f69d.png?v8",montenegro:"https://github.githubassets.com/images/icons/emoji/unicode/1f1f2-1f1ea.png?v8",montserrat:"https://github.githubassets.com/images/icons/emoji/unicode/1f1f2-1f1f8.png?v8",moon:"https://github.githubassets.com/images/icons/emoji/unicode/1f314.png?v8",moon_cake:"https://github.githubassets.com/images/icons/emoji/unicode/1f96e.png?v8",morocco:"https://github.githubassets.com/images/icons/emoji/unicode/1f1f2-1f1e6.png?v8",mortar_board:"https://github.githubassets.com/images/icons/emoji/unicode/1f393.png?v8",mosque:"https://github.githubassets.com/images/icons/emoji/unicode/1f54c.png?v8",mosquito:"https://github.githubassets.com/images/icons/emoji/unicode/1f99f.png?v8",motor_boat:"https://github.githubassets.com/images/icons/emoji/unicode/1f6e5.png?v8",motor_scooter:"https://github.githubassets.com/images/icons/emoji/unicode/1f6f5.png?v8",motorcycle:"https://github.githubassets.com/images/icons/emoji/unicode/1f3cd.png?v8",motorized_wheelchair:"https://github.githubassets.com/images/icons/emoji/unicode/1f9bc.png?v8",motorway:"https://github.githubassets.com/images/icons/emoji/unicode/1f6e3.png?v8",mount_fuji:"https://github.githubassets.com/images/icons/emoji/unicode/1f5fb.png?v8",mountain:"https://github.githubassets.com/images/icons/emoji/unicode/26f0.png?v8",mountain_bicyclist:"https://github.githubassets.com/images/icons/emoji/unicode/1f6b5.png?v8",mountain_biking_man:"https://github.githubassets.com/images/icons/emoji/unicode/1f6b5-2642.png?v8",mountain_biking_woman:"https://github.githubassets.com/images/icons/emoji/unicode/1f6b5-2640.png?v8",mountain_cableway:"https://github.githubassets.com/images/icons/emoji/unicode/1f6a0.png?v8",mountain_railway:"https://github.githubassets.com/images/icons/emoji/unicode/1f69e.png?v8",mountain_snow:"https://github.githubassets.com/images/icons/emoji/unicode/1f3d4.png?v8",mouse:"https://github.githubassets.com/images/icons/emoji/unicode/1f42d.png?v8",mouse2:"https://github.githubassets.com/images/icons/emoji/unicode/1f401.png?v8",mouse_trap:"https://github.githubassets.com/images/icons/emoji/unicode/1faa4.png?v8",movie_camera:"https://github.githubassets.com/images/icons/emoji/unicode/1f3a5.png?v8",moyai:"https://github.githubassets.com/images/icons/emoji/unicode/1f5ff.png?v8",mozambique:"https://github.githubassets.com/images/icons/emoji/unicode/1f1f2-1f1ff.png?v8",mrs_claus:"https://github.githubassets.com/images/icons/emoji/unicode/1f936.png?v8",muscle:"https://github.githubassets.com/images/icons/emoji/unicode/1f4aa.png?v8",mushroom:"https://github.githubassets.com/images/icons/emoji/unicode/1f344.png?v8",musical_keyboard:"https://github.githubassets.com/images/icons/emoji/unicode/1f3b9.png?v8",musical_note:"https://github.githubassets.com/images/icons/emoji/unicode/1f3b5.png?v8",musical_score:"https://github.githubassets.com/images/icons/emoji/unicode/1f3bc.png?v8",mute:"https://github.githubassets.com/images/icons/emoji/unicode/1f507.png?v8",mx_claus:"https://github.githubassets.com/images/icons/emoji/unicode/1f9d1-1f384.png?v8",myanmar:"https://github.githubassets.com/images/icons/emoji/unicode/1f1f2-1f1f2.png?v8",nail_care:"https://github.githubassets.com/images/icons/emoji/unicode/1f485.png?v8",name_badge:"https://github.githubassets.com/images/icons/emoji/unicode/1f4db.png?v8",namibia:"https://github.githubassets.com/images/icons/emoji/unicode/1f1f3-1f1e6.png?v8",national_park:"https://github.githubassets.com/images/icons/emoji/unicode/1f3de.png?v8",nauru:"https://github.githubassets.com/images/icons/emoji/unicode/1f1f3-1f1f7.png?v8",nauseated_face:"https://github.githubassets.com/images/icons/emoji/unicode/1f922.png?v8",nazar_amulet:"https://github.githubassets.com/images/icons/emoji/unicode/1f9ff.png?v8",neckbeard:"https://github.githubassets.com/images/icons/emoji/neckbeard.png?v8",necktie:"https://github.githubassets.com/images/icons/emoji/unicode/1f454.png?v8",negative_squared_cross_mark:"https://github.githubassets.com/images/icons/emoji/unicode/274e.png?v8",nepal:"https://github.githubassets.com/images/icons/emoji/unicode/1f1f3-1f1f5.png?v8",nerd_face:"https://github.githubassets.com/images/icons/emoji/unicode/1f913.png?v8",nesting_dolls:"https://github.githubassets.com/images/icons/emoji/unicode/1fa86.png?v8",netherlands:"https://github.githubassets.com/images/icons/emoji/unicode/1f1f3-1f1f1.png?v8",neutral_face:"https://github.githubassets.com/images/icons/emoji/unicode/1f610.png?v8",new:"https://github.githubassets.com/images/icons/emoji/unicode/1f195.png?v8",new_caledonia:"https://github.githubassets.com/images/icons/emoji/unicode/1f1f3-1f1e8.png?v8",new_moon:"https://github.githubassets.com/images/icons/emoji/unicode/1f311.png?v8",new_moon_with_face:"https://github.githubassets.com/images/icons/emoji/unicode/1f31a.png?v8",new_zealand:"https://github.githubassets.com/images/icons/emoji/unicode/1f1f3-1f1ff.png?v8",newspaper:"https://github.githubassets.com/images/icons/emoji/unicode/1f4f0.png?v8",newspaper_roll:"https://github.githubassets.com/images/icons/emoji/unicode/1f5de.png?v8",next_track_button:"https://github.githubassets.com/images/icons/emoji/unicode/23ed.png?v8",ng:"https://github.githubassets.com/images/icons/emoji/unicode/1f196.png?v8",ng_man:"https://github.githubassets.com/images/icons/emoji/unicode/1f645-2642.png?v8",ng_woman:"https://github.githubassets.com/images/icons/emoji/unicode/1f645-2640.png?v8",nicaragua:"https://github.githubassets.com/images/icons/emoji/unicode/1f1f3-1f1ee.png?v8",niger:"https://github.githubassets.com/images/icons/emoji/unicode/1f1f3-1f1ea.png?v8",nigeria:"https://github.githubassets.com/images/icons/emoji/unicode/1f1f3-1f1ec.png?v8",night_with_stars:"https://github.githubassets.com/images/icons/emoji/unicode/1f303.png?v8",nine:"https://github.githubassets.com/images/icons/emoji/unicode/0039-20e3.png?v8",ninja:"https://github.githubassets.com/images/icons/emoji/unicode/1f977.png?v8",niue:"https://github.githubassets.com/images/icons/emoji/unicode/1f1f3-1f1fa.png?v8",no_bell:"https://github.githubassets.com/images/icons/emoji/unicode/1f515.png?v8",no_bicycles:"https://github.githubassets.com/images/icons/emoji/unicode/1f6b3.png?v8",no_entry:"https://github.githubassets.com/images/icons/emoji/unicode/26d4.png?v8",no_entry_sign:"https://github.githubassets.com/images/icons/emoji/unicode/1f6ab.png?v8",no_good:"https://github.githubassets.com/images/icons/emoji/unicode/1f645.png?v8",no_good_man:"https://github.githubassets.com/images/icons/emoji/unicode/1f645-2642.png?v8",no_good_woman:"https://github.githubassets.com/images/icons/emoji/unicode/1f645-2640.png?v8",no_mobile_phones:"https://github.githubassets.com/images/icons/emoji/unicode/1f4f5.png?v8",no_mouth:"https://github.githubassets.com/images/icons/emoji/unicode/1f636.png?v8",no_pedestrians:"https://github.githubassets.com/images/icons/emoji/unicode/1f6b7.png?v8",no_smoking:"https://github.githubassets.com/images/icons/emoji/unicode/1f6ad.png?v8","non-potable_water":"https://github.githubassets.com/images/icons/emoji/unicode/1f6b1.png?v8",norfolk_island:"https://github.githubassets.com/images/icons/emoji/unicode/1f1f3-1f1eb.png?v8",north_korea:"https://github.githubassets.com/images/icons/emoji/unicode/1f1f0-1f1f5.png?v8",northern_mariana_islands:"https://github.githubassets.com/images/icons/emoji/unicode/1f1f2-1f1f5.png?v8",norway:"https://github.githubassets.com/images/icons/emoji/unicode/1f1f3-1f1f4.png?v8",nose:"https://github.githubassets.com/images/icons/emoji/unicode/1f443.png?v8",notebook:"https://github.githubassets.com/images/icons/emoji/unicode/1f4d3.png?v8",notebook_with_decorative_cover:"https://github.githubassets.com/images/icons/emoji/unicode/1f4d4.png?v8",notes:"https://github.githubassets.com/images/icons/emoji/unicode/1f3b6.png?v8",nut_and_bolt:"https://github.githubassets.com/images/icons/emoji/unicode/1f529.png?v8",o:"https://github.githubassets.com/images/icons/emoji/unicode/2b55.png?v8",o2:"https://github.githubassets.com/images/icons/emoji/unicode/1f17e.png?v8",ocean:"https://github.githubassets.com/images/icons/emoji/unicode/1f30a.png?v8",octocat:"https://github.githubassets.com/images/icons/emoji/octocat.png?v8",octopus:"https://github.githubassets.com/images/icons/emoji/unicode/1f419.png?v8",oden:"https://github.githubassets.com/images/icons/emoji/unicode/1f362.png?v8",office:"https://github.githubassets.com/images/icons/emoji/unicode/1f3e2.png?v8",office_worker:"https://github.githubassets.com/images/icons/emoji/unicode/1f9d1-1f4bc.png?v8",oil_drum:"https://github.githubassets.com/images/icons/emoji/unicode/1f6e2.png?v8",ok:"https://github.githubassets.com/images/icons/emoji/unicode/1f197.png?v8",ok_hand:"https://github.githubassets.com/images/icons/emoji/unicode/1f44c.png?v8",ok_man:"https://github.githubassets.com/images/icons/emoji/unicode/1f646-2642.png?v8",ok_person:"https://github.githubassets.com/images/icons/emoji/unicode/1f646.png?v8",ok_woman:"https://github.githubassets.com/images/icons/emoji/unicode/1f646-2640.png?v8",old_key:"https://github.githubassets.com/images/icons/emoji/unicode/1f5dd.png?v8",older_adult:"https://github.githubassets.com/images/icons/emoji/unicode/1f9d3.png?v8",older_man:"https://github.githubassets.com/images/icons/emoji/unicode/1f474.png?v8",older_woman:"https://github.githubassets.com/images/icons/emoji/unicode/1f475.png?v8",olive:"https://github.githubassets.com/images/icons/emoji/unicode/1fad2.png?v8",om:"https://github.githubassets.com/images/icons/emoji/unicode/1f549.png?v8",oman:"https://github.githubassets.com/images/icons/emoji/unicode/1f1f4-1f1f2.png?v8",on:"https://github.githubassets.com/images/icons/emoji/unicode/1f51b.png?v8",oncoming_automobile:"https://github.githubassets.com/images/icons/emoji/unicode/1f698.png?v8",oncoming_bus:"https://github.githubassets.com/images/icons/emoji/unicode/1f68d.png?v8",oncoming_police_car:"https://github.githubassets.com/images/icons/emoji/unicode/1f694.png?v8",oncoming_taxi:"https://github.githubassets.com/images/icons/emoji/unicode/1f696.png?v8",one:"https://github.githubassets.com/images/icons/emoji/unicode/0031-20e3.png?v8",one_piece_swimsuit:"https://github.githubassets.com/images/icons/emoji/unicode/1fa71.png?v8",onion:"https://github.githubassets.com/images/icons/emoji/unicode/1f9c5.png?v8",open_book:"https://github.githubassets.com/images/icons/emoji/unicode/1f4d6.png?v8",open_file_folder:"https://github.githubassets.com/images/icons/emoji/unicode/1f4c2.png?v8",open_hands:"https://github.githubassets.com/images/icons/emoji/unicode/1f450.png?v8",open_mouth:"https://github.githubassets.com/images/icons/emoji/unicode/1f62e.png?v8",open_umbrella:"https://github.githubassets.com/images/icons/emoji/unicode/2602.png?v8",ophiuchus:"https://github.githubassets.com/images/icons/emoji/unicode/26ce.png?v8",orange:"https://github.githubassets.com/images/icons/emoji/unicode/1f34a.png?v8",orange_book:"https://github.githubassets.com/images/icons/emoji/unicode/1f4d9.png?v8",orange_circle:"https://github.githubassets.com/images/icons/emoji/unicode/1f7e0.png?v8",orange_heart:"https://github.githubassets.com/images/icons/emoji/unicode/1f9e1.png?v8",orange_square:"https://github.githubassets.com/images/icons/emoji/unicode/1f7e7.png?v8",orangutan:"https://github.githubassets.com/images/icons/emoji/unicode/1f9a7.png?v8",orthodox_cross:"https://github.githubassets.com/images/icons/emoji/unicode/2626.png?v8",otter:"https://github.githubassets.com/images/icons/emoji/unicode/1f9a6.png?v8",outbox_tray:"https://github.githubassets.com/images/icons/emoji/unicode/1f4e4.png?v8",owl:"https://github.githubassets.com/images/icons/emoji/unicode/1f989.png?v8",ox:"https://github.githubassets.com/images/icons/emoji/unicode/1f402.png?v8",oyster:"https://github.githubassets.com/images/icons/emoji/unicode/1f9aa.png?v8",package:"https://github.githubassets.com/images/icons/emoji/unicode/1f4e6.png?v8",page_facing_up:"https://github.githubassets.com/images/icons/emoji/unicode/1f4c4.png?v8",page_with_curl:"https://github.githubassets.com/images/icons/emoji/unicode/1f4c3.png?v8",pager:"https://github.githubassets.com/images/icons/emoji/unicode/1f4df.png?v8",paintbrush:"https://github.githubassets.com/images/icons/emoji/unicode/1f58c.png?v8",pakistan:"https://github.githubassets.com/images/icons/emoji/unicode/1f1f5-1f1f0.png?v8",palau:"https://github.githubassets.com/images/icons/emoji/unicode/1f1f5-1f1fc.png?v8",palestinian_territories:"https://github.githubassets.com/images/icons/emoji/unicode/1f1f5-1f1f8.png?v8",palm_tree:"https://github.githubassets.com/images/icons/emoji/unicode/1f334.png?v8",palms_up_together:"https://github.githubassets.com/images/icons/emoji/unicode/1f932.png?v8",panama:"https://github.githubassets.com/images/icons/emoji/unicode/1f1f5-1f1e6.png?v8",pancakes:"https://github.githubassets.com/images/icons/emoji/unicode/1f95e.png?v8",panda_face:"https://github.githubassets.com/images/icons/emoji/unicode/1f43c.png?v8",paperclip:"https://github.githubassets.com/images/icons/emoji/unicode/1f4ce.png?v8",paperclips:"https://github.githubassets.com/images/icons/emoji/unicode/1f587.png?v8",papua_new_guinea:"https://github.githubassets.com/images/icons/emoji/unicode/1f1f5-1f1ec.png?v8",parachute:"https://github.githubassets.com/images/icons/emoji/unicode/1fa82.png?v8",paraguay:"https://github.githubassets.com/images/icons/emoji/unicode/1f1f5-1f1fe.png?v8",parasol_on_ground:"https://github.githubassets.com/images/icons/emoji/unicode/26f1.png?v8",parking:"https://github.githubassets.com/images/icons/emoji/unicode/1f17f.png?v8",parrot:"https://github.githubassets.com/images/icons/emoji/unicode/1f99c.png?v8",part_alternation_mark:"https://github.githubassets.com/images/icons/emoji/unicode/303d.png?v8",partly_sunny:"https://github.githubassets.com/images/icons/emoji/unicode/26c5.png?v8",partying_face:"https://github.githubassets.com/images/icons/emoji/unicode/1f973.png?v8",passenger_ship:"https://github.githubassets.com/images/icons/emoji/unicode/1f6f3.png?v8",passport_control:"https://github.githubassets.com/images/icons/emoji/unicode/1f6c2.png?v8",pause_button:"https://github.githubassets.com/images/icons/emoji/unicode/23f8.png?v8",paw_prints:"https://github.githubassets.com/images/icons/emoji/unicode/1f43e.png?v8",peace_symbol:"https://github.githubassets.com/images/icons/emoji/unicode/262e.png?v8",peach:"https://github.githubassets.com/images/icons/emoji/unicode/1f351.png?v8",peacock:"https://github.githubassets.com/images/icons/emoji/unicode/1f99a.png?v8",peanuts:"https://github.githubassets.com/images/icons/emoji/unicode/1f95c.png?v8",pear:"https://github.githubassets.com/images/icons/emoji/unicode/1f350.png?v8",pen:"https://github.githubassets.com/images/icons/emoji/unicode/1f58a.png?v8",pencil:"https://github.githubassets.com/images/icons/emoji/unicode/1f4dd.png?v8",pencil2:"https://github.githubassets.com/images/icons/emoji/unicode/270f.png?v8",penguin:"https://github.githubassets.com/images/icons/emoji/unicode/1f427.png?v8",pensive:"https://github.githubassets.com/images/icons/emoji/unicode/1f614.png?v8",people_holding_hands:"https://github.githubassets.com/images/icons/emoji/unicode/1f9d1-1f91d-1f9d1.png?v8",people_hugging:"https://github.githubassets.com/images/icons/emoji/unicode/1fac2.png?v8",performing_arts:"https://github.githubassets.com/images/icons/emoji/unicode/1f3ad.png?v8",persevere:"https://github.githubassets.com/images/icons/emoji/unicode/1f623.png?v8",person_bald:"https://github.githubassets.com/images/icons/emoji/unicode/1f9d1-1f9b2.png?v8",person_curly_hair:"https://github.githubassets.com/images/icons/emoji/unicode/1f9d1-1f9b1.png?v8",person_feeding_baby:"https://github.githubassets.com/images/icons/emoji/unicode/1f9d1-1f37c.png?v8",person_fencing:"https://github.githubassets.com/images/icons/emoji/unicode/1f93a.png?v8",person_in_manual_wheelchair:"https://github.githubassets.com/images/icons/emoji/unicode/1f9d1-1f9bd.png?v8",person_in_motorized_wheelchair:"https://github.githubassets.com/images/icons/emoji/unicode/1f9d1-1f9bc.png?v8",person_in_tuxedo:"https://github.githubassets.com/images/icons/emoji/unicode/1f935.png?v8",person_red_hair:"https://github.githubassets.com/images/icons/emoji/unicode/1f9d1-1f9b0.png?v8",person_white_hair:"https://github.githubassets.com/images/icons/emoji/unicode/1f9d1-1f9b3.png?v8",person_with_probing_cane:"https://github.githubassets.com/images/icons/emoji/unicode/1f9d1-1f9af.png?v8",person_with_turban:"https://github.githubassets.com/images/icons/emoji/unicode/1f473.png?v8",person_with_veil:"https://github.githubassets.com/images/icons/emoji/unicode/1f470.png?v8",peru:"https://github.githubassets.com/images/icons/emoji/unicode/1f1f5-1f1ea.png?v8",petri_dish:"https://github.githubassets.com/images/icons/emoji/unicode/1f9eb.png?v8",philippines:"https://github.githubassets.com/images/icons/emoji/unicode/1f1f5-1f1ed.png?v8",phone:"https://github.githubassets.com/images/icons/emoji/unicode/260e.png?v8",pick:"https://github.githubassets.com/images/icons/emoji/unicode/26cf.png?v8",pickup_truck:"https://github.githubassets.com/images/icons/emoji/unicode/1f6fb.png?v8",pie:"https://github.githubassets.com/images/icons/emoji/unicode/1f967.png?v8",pig:"https://github.githubassets.com/images/icons/emoji/unicode/1f437.png?v8",pig2:"https://github.githubassets.com/images/icons/emoji/unicode/1f416.png?v8",pig_nose:"https://github.githubassets.com/images/icons/emoji/unicode/1f43d.png?v8",pill:"https://github.githubassets.com/images/icons/emoji/unicode/1f48a.png?v8",pilot:"https://github.githubassets.com/images/icons/emoji/unicode/1f9d1-2708.png?v8",pinata:"https://github.githubassets.com/images/icons/emoji/unicode/1fa85.png?v8",pinched_fingers:"https://github.githubassets.com/images/icons/emoji/unicode/1f90c.png?v8",pinching_hand:"https://github.githubassets.com/images/icons/emoji/unicode/1f90f.png?v8",pineapple:"https://github.githubassets.com/images/icons/emoji/unicode/1f34d.png?v8",ping_pong:"https://github.githubassets.com/images/icons/emoji/unicode/1f3d3.png?v8",pirate_flag:"https://github.githubassets.com/images/icons/emoji/unicode/1f3f4-2620.png?v8",pisces:"https://github.githubassets.com/images/icons/emoji/unicode/2653.png?v8",pitcairn_islands:"https://github.githubassets.com/images/icons/emoji/unicode/1f1f5-1f1f3.png?v8",pizza:"https://github.githubassets.com/images/icons/emoji/unicode/1f355.png?v8",placard:"https://github.githubassets.com/images/icons/emoji/unicode/1faa7.png?v8",place_of_worship:"https://github.githubassets.com/images/icons/emoji/unicode/1f6d0.png?v8",plate_with_cutlery:"https://github.githubassets.com/images/icons/emoji/unicode/1f37d.png?v8",play_or_pause_button:"https://github.githubassets.com/images/icons/emoji/unicode/23ef.png?v8",pleading_face:"https://github.githubassets.com/images/icons/emoji/unicode/1f97a.png?v8",plunger:"https://github.githubassets.com/images/icons/emoji/unicode/1faa0.png?v8",point_down:"https://github.githubassets.com/images/icons/emoji/unicode/1f447.png?v8",point_left:"https://github.githubassets.com/images/icons/emoji/unicode/1f448.png?v8",point_right:"https://github.githubassets.com/images/icons/emoji/unicode/1f449.png?v8",point_up:"https://github.githubassets.com/images/icons/emoji/unicode/261d.png?v8",point_up_2:"https://github.githubassets.com/images/icons/emoji/unicode/1f446.png?v8",poland:"https://github.githubassets.com/images/icons/emoji/unicode/1f1f5-1f1f1.png?v8",polar_bear:"https://github.githubassets.com/images/icons/emoji/unicode/1f43b-2744.png?v8",police_car:"https://github.githubassets.com/images/icons/emoji/unicode/1f693.png?v8",police_officer:"https://github.githubassets.com/images/icons/emoji/unicode/1f46e.png?v8",policeman:"https://github.githubassets.com/images/icons/emoji/unicode/1f46e-2642.png?v8",policewoman:"https://github.githubassets.com/images/icons/emoji/unicode/1f46e-2640.png?v8",poodle:"https://github.githubassets.com/images/icons/emoji/unicode/1f429.png?v8",poop:"https://github.githubassets.com/images/icons/emoji/unicode/1f4a9.png?v8",popcorn:"https://github.githubassets.com/images/icons/emoji/unicode/1f37f.png?v8",portugal:"https://github.githubassets.com/images/icons/emoji/unicode/1f1f5-1f1f9.png?v8",post_office:"https://github.githubassets.com/images/icons/emoji/unicode/1f3e3.png?v8",postal_horn:"https://github.githubassets.com/images/icons/emoji/unicode/1f4ef.png?v8",postbox:"https://github.githubassets.com/images/icons/emoji/unicode/1f4ee.png?v8",potable_water:"https://github.githubassets.com/images/icons/emoji/unicode/1f6b0.png?v8",potato:"https://github.githubassets.com/images/icons/emoji/unicode/1f954.png?v8",potted_plant:"https://github.githubassets.com/images/icons/emoji/unicode/1fab4.png?v8",pouch:"https://github.githubassets.com/images/icons/emoji/unicode/1f45d.png?v8",poultry_leg:"https://github.githubassets.com/images/icons/emoji/unicode/1f357.png?v8",pound:"https://github.githubassets.com/images/icons/emoji/unicode/1f4b7.png?v8",pout:"https://github.githubassets.com/images/icons/emoji/unicode/1f621.png?v8",pouting_cat:"https://github.githubassets.com/images/icons/emoji/unicode/1f63e.png?v8",pouting_face:"https://github.githubassets.com/images/icons/emoji/unicode/1f64e.png?v8",pouting_man:"https://github.githubassets.com/images/icons/emoji/unicode/1f64e-2642.png?v8",pouting_woman:"https://github.githubassets.com/images/icons/emoji/unicode/1f64e-2640.png?v8",pray:"https://github.githubassets.com/images/icons/emoji/unicode/1f64f.png?v8",prayer_beads:"https://github.githubassets.com/images/icons/emoji/unicode/1f4ff.png?v8",pregnant_woman:"https://github.githubassets.com/images/icons/emoji/unicode/1f930.png?v8",pretzel:"https://github.githubassets.com/images/icons/emoji/unicode/1f968.png?v8",previous_track_button:"https://github.githubassets.com/images/icons/emoji/unicode/23ee.png?v8",prince:"https://github.githubassets.com/images/icons/emoji/unicode/1f934.png?v8",princess:"https://github.githubassets.com/images/icons/emoji/unicode/1f478.png?v8",printer:"https://github.githubassets.com/images/icons/emoji/unicode/1f5a8.png?v8",probing_cane:"https://github.githubassets.com/images/icons/emoji/unicode/1f9af.png?v8",puerto_rico:"https://github.githubassets.com/images/icons/emoji/unicode/1f1f5-1f1f7.png?v8",punch:"https://github.githubassets.com/images/icons/emoji/unicode/1f44a.png?v8",purple_circle:"https://github.githubassets.com/images/icons/emoji/unicode/1f7e3.png?v8",purple_heart:"https://github.githubassets.com/images/icons/emoji/unicode/1f49c.png?v8",purple_square:"https://github.githubassets.com/images/icons/emoji/unicode/1f7ea.png?v8",purse:"https://github.githubassets.com/images/icons/emoji/unicode/1f45b.png?v8",pushpin:"https://github.githubassets.com/images/icons/emoji/unicode/1f4cc.png?v8",put_litter_in_its_place:"https://github.githubassets.com/images/icons/emoji/unicode/1f6ae.png?v8",qatar:"https://github.githubassets.com/images/icons/emoji/unicode/1f1f6-1f1e6.png?v8",question:"https://github.githubassets.com/images/icons/emoji/unicode/2753.png?v8",rabbit:"https://github.githubassets.com/images/icons/emoji/unicode/1f430.png?v8",rabbit2:"https://github.githubassets.com/images/icons/emoji/unicode/1f407.png?v8",raccoon:"https://github.githubassets.com/images/icons/emoji/unicode/1f99d.png?v8",racehorse:"https://github.githubassets.com/images/icons/emoji/unicode/1f40e.png?v8",racing_car:"https://github.githubassets.com/images/icons/emoji/unicode/1f3ce.png?v8",radio:"https://github.githubassets.com/images/icons/emoji/unicode/1f4fb.png?v8",radio_button:"https://github.githubassets.com/images/icons/emoji/unicode/1f518.png?v8",radioactive:"https://github.githubassets.com/images/icons/emoji/unicode/2622.png?v8",rage:"https://github.githubassets.com/images/icons/emoji/unicode/1f621.png?v8",rage1:"https://github.githubassets.com/images/icons/emoji/rage1.png?v8",rage2:"https://github.githubassets.com/images/icons/emoji/rage2.png?v8",rage3:"https://github.githubassets.com/images/icons/emoji/rage3.png?v8",rage4:"https://github.githubassets.com/images/icons/emoji/rage4.png?v8",railway_car:"https://github.githubassets.com/images/icons/emoji/unicode/1f683.png?v8",railway_track:"https://github.githubassets.com/images/icons/emoji/unicode/1f6e4.png?v8",rainbow:"https://github.githubassets.com/images/icons/emoji/unicode/1f308.png?v8",rainbow_flag:"https://github.githubassets.com/images/icons/emoji/unicode/1f3f3-1f308.png?v8",raised_back_of_hand:"https://github.githubassets.com/images/icons/emoji/unicode/1f91a.png?v8",raised_eyebrow:"https://github.githubassets.com/images/icons/emoji/unicode/1f928.png?v8",raised_hand:"https://github.githubassets.com/images/icons/emoji/unicode/270b.png?v8",raised_hand_with_fingers_splayed:"https://github.githubassets.com/images/icons/emoji/unicode/1f590.png?v8",raised_hands:"https://github.githubassets.com/images/icons/emoji/unicode/1f64c.png?v8",raising_hand:"https://github.githubassets.com/images/icons/emoji/unicode/1f64b.png?v8",raising_hand_man:"https://github.githubassets.com/images/icons/emoji/unicode/1f64b-2642.png?v8",raising_hand_woman:"https://github.githubassets.com/images/icons/emoji/unicode/1f64b-2640.png?v8",ram:"https://github.githubassets.com/images/icons/emoji/unicode/1f40f.png?v8",ramen:"https://github.githubassets.com/images/icons/emoji/unicode/1f35c.png?v8",rat:"https://github.githubassets.com/images/icons/emoji/unicode/1f400.png?v8",razor:"https://github.githubassets.com/images/icons/emoji/unicode/1fa92.png?v8",receipt:"https://github.githubassets.com/images/icons/emoji/unicode/1f9fe.png?v8",record_button:"https://github.githubassets.com/images/icons/emoji/unicode/23fa.png?v8",recycle:"https://github.githubassets.com/images/icons/emoji/unicode/267b.png?v8",red_car:"https://github.githubassets.com/images/icons/emoji/unicode/1f697.png?v8",red_circle:"https://github.githubassets.com/images/icons/emoji/unicode/1f534.png?v8",red_envelope:"https://github.githubassets.com/images/icons/emoji/unicode/1f9e7.png?v8",red_haired_man:"https://github.githubassets.com/images/icons/emoji/unicode/1f468-1f9b0.png?v8",red_haired_woman:"https://github.githubassets.com/images/icons/emoji/unicode/1f469-1f9b0.png?v8",red_square:"https://github.githubassets.com/images/icons/emoji/unicode/1f7e5.png?v8",registered:"https://github.githubassets.com/images/icons/emoji/unicode/00ae.png?v8",relaxed:"https://github.githubassets.com/images/icons/emoji/unicode/263a.png?v8",relieved:"https://github.githubassets.com/images/icons/emoji/unicode/1f60c.png?v8",reminder_ribbon:"https://github.githubassets.com/images/icons/emoji/unicode/1f397.png?v8",repeat:"https://github.githubassets.com/images/icons/emoji/unicode/1f501.png?v8",repeat_one:"https://github.githubassets.com/images/icons/emoji/unicode/1f502.png?v8",rescue_worker_helmet:"https://github.githubassets.com/images/icons/emoji/unicode/26d1.png?v8",restroom:"https://github.githubassets.com/images/icons/emoji/unicode/1f6bb.png?v8",reunion:"https://github.githubassets.com/images/icons/emoji/unicode/1f1f7-1f1ea.png?v8",revolving_hearts:"https://github.githubassets.com/images/icons/emoji/unicode/1f49e.png?v8",rewind:"https://github.githubassets.com/images/icons/emoji/unicode/23ea.png?v8",rhinoceros:"https://github.githubassets.com/images/icons/emoji/unicode/1f98f.png?v8",ribbon:"https://github.githubassets.com/images/icons/emoji/unicode/1f380.png?v8",rice:"https://github.githubassets.com/images/icons/emoji/unicode/1f35a.png?v8",rice_ball:"https://github.githubassets.com/images/icons/emoji/unicode/1f359.png?v8",rice_cracker:"https://github.githubassets.com/images/icons/emoji/unicode/1f358.png?v8",rice_scene:"https://github.githubassets.com/images/icons/emoji/unicode/1f391.png?v8",right_anger_bubble:"https://github.githubassets.com/images/icons/emoji/unicode/1f5ef.png?v8",ring:"https://github.githubassets.com/images/icons/emoji/unicode/1f48d.png?v8",ringed_planet:"https://github.githubassets.com/images/icons/emoji/unicode/1fa90.png?v8",robot:"https://github.githubassets.com/images/icons/emoji/unicode/1f916.png?v8",rock:"https://github.githubassets.com/images/icons/emoji/unicode/1faa8.png?v8",rocket:"https://github.githubassets.com/images/icons/emoji/unicode/1f680.png?v8",rofl:"https://github.githubassets.com/images/icons/emoji/unicode/1f923.png?v8",roll_eyes:"https://github.githubassets.com/images/icons/emoji/unicode/1f644.png?v8",roll_of_paper:"https://github.githubassets.com/images/icons/emoji/unicode/1f9fb.png?v8",roller_coaster:"https://github.githubassets.com/images/icons/emoji/unicode/1f3a2.png?v8",roller_skate:"https://github.githubassets.com/images/icons/emoji/unicode/1f6fc.png?v8",romania:"https://github.githubassets.com/images/icons/emoji/unicode/1f1f7-1f1f4.png?v8",rooster:"https://github.githubassets.com/images/icons/emoji/unicode/1f413.png?v8",rose:"https://github.githubassets.com/images/icons/emoji/unicode/1f339.png?v8",rosette:"https://github.githubassets.com/images/icons/emoji/unicode/1f3f5.png?v8",rotating_light:"https://github.githubassets.com/images/icons/emoji/unicode/1f6a8.png?v8",round_pushpin:"https://github.githubassets.com/images/icons/emoji/unicode/1f4cd.png?v8",rowboat:"https://github.githubassets.com/images/icons/emoji/unicode/1f6a3.png?v8",rowing_man:"https://github.githubassets.com/images/icons/emoji/unicode/1f6a3-2642.png?v8",rowing_woman:"https://github.githubassets.com/images/icons/emoji/unicode/1f6a3-2640.png?v8",ru:"https://github.githubassets.com/images/icons/emoji/unicode/1f1f7-1f1fa.png?v8",rugby_football:"https://github.githubassets.com/images/icons/emoji/unicode/1f3c9.png?v8",runner:"https://github.githubassets.com/images/icons/emoji/unicode/1f3c3.png?v8",running:"https://github.githubassets.com/images/icons/emoji/unicode/1f3c3.png?v8",running_man:"https://github.githubassets.com/images/icons/emoji/unicode/1f3c3-2642.png?v8",running_shirt_with_sash:"https://github.githubassets.com/images/icons/emoji/unicode/1f3bd.png?v8",running_woman:"https://github.githubassets.com/images/icons/emoji/unicode/1f3c3-2640.png?v8",rwanda:"https://github.githubassets.com/images/icons/emoji/unicode/1f1f7-1f1fc.png?v8",sa:"https://github.githubassets.com/images/icons/emoji/unicode/1f202.png?v8",safety_pin:"https://github.githubassets.com/images/icons/emoji/unicode/1f9f7.png?v8",safety_vest:"https://github.githubassets.com/images/icons/emoji/unicode/1f9ba.png?v8",sagittarius:"https://github.githubassets.com/images/icons/emoji/unicode/2650.png?v8",sailboat:"https://github.githubassets.com/images/icons/emoji/unicode/26f5.png?v8",sake:"https://github.githubassets.com/images/icons/emoji/unicode/1f376.png?v8",salt:"https://github.githubassets.com/images/icons/emoji/unicode/1f9c2.png?v8",samoa:"https://github.githubassets.com/images/icons/emoji/unicode/1f1fc-1f1f8.png?v8",san_marino:"https://github.githubassets.com/images/icons/emoji/unicode/1f1f8-1f1f2.png?v8",sandal:"https://github.githubassets.com/images/icons/emoji/unicode/1f461.png?v8",sandwich:"https://github.githubassets.com/images/icons/emoji/unicode/1f96a.png?v8",santa:"https://github.githubassets.com/images/icons/emoji/unicode/1f385.png?v8",sao_tome_principe:"https://github.githubassets.com/images/icons/emoji/unicode/1f1f8-1f1f9.png?v8",sari:"https://github.githubassets.com/images/icons/emoji/unicode/1f97b.png?v8",sassy_man:"https://github.githubassets.com/images/icons/emoji/unicode/1f481-2642.png?v8",sassy_woman:"https://github.githubassets.com/images/icons/emoji/unicode/1f481-2640.png?v8",satellite:"https://github.githubassets.com/images/icons/emoji/unicode/1f4e1.png?v8",satisfied:"https://github.githubassets.com/images/icons/emoji/unicode/1f606.png?v8",saudi_arabia:"https://github.githubassets.com/images/icons/emoji/unicode/1f1f8-1f1e6.png?v8",sauna_man:"https://github.githubassets.com/images/icons/emoji/unicode/1f9d6-2642.png?v8",sauna_person:"https://github.githubassets.com/images/icons/emoji/unicode/1f9d6.png?v8",sauna_woman:"https://github.githubassets.com/images/icons/emoji/unicode/1f9d6-2640.png?v8",sauropod:"https://github.githubassets.com/images/icons/emoji/unicode/1f995.png?v8",saxophone:"https://github.githubassets.com/images/icons/emoji/unicode/1f3b7.png?v8",scarf:"https://github.githubassets.com/images/icons/emoji/unicode/1f9e3.png?v8",school:"https://github.githubassets.com/images/icons/emoji/unicode/1f3eb.png?v8",school_satchel:"https://github.githubassets.com/images/icons/emoji/unicode/1f392.png?v8",scientist:"https://github.githubassets.com/images/icons/emoji/unicode/1f9d1-1f52c.png?v8",scissors:"https://github.githubassets.com/images/icons/emoji/unicode/2702.png?v8",scorpion:"https://github.githubassets.com/images/icons/emoji/unicode/1f982.png?v8",scorpius:"https://github.githubassets.com/images/icons/emoji/unicode/264f.png?v8",scotland:"https://github.githubassets.com/images/icons/emoji/unicode/1f3f4-e0067-e0062-e0073-e0063-e0074-e007f.png?v8",scream:"https://github.githubassets.com/images/icons/emoji/unicode/1f631.png?v8",scream_cat:"https://github.githubassets.com/images/icons/emoji/unicode/1f640.png?v8",screwdriver:"https://github.githubassets.com/images/icons/emoji/unicode/1fa9b.png?v8",scroll:"https://github.githubassets.com/images/icons/emoji/unicode/1f4dc.png?v8",seal:"https://github.githubassets.com/images/icons/emoji/unicode/1f9ad.png?v8",seat:"https://github.githubassets.com/images/icons/emoji/unicode/1f4ba.png?v8",secret:"https://github.githubassets.com/images/icons/emoji/unicode/3299.png?v8",see_no_evil:"https://github.githubassets.com/images/icons/emoji/unicode/1f648.png?v8",seedling:"https://github.githubassets.com/images/icons/emoji/unicode/1f331.png?v8",selfie:"https://github.githubassets.com/images/icons/emoji/unicode/1f933.png?v8",senegal:"https://github.githubassets.com/images/icons/emoji/unicode/1f1f8-1f1f3.png?v8",serbia:"https://github.githubassets.com/images/icons/emoji/unicode/1f1f7-1f1f8.png?v8",service_dog:"https://github.githubassets.com/images/icons/emoji/unicode/1f415-1f9ba.png?v8",seven:"https://github.githubassets.com/images/icons/emoji/unicode/0037-20e3.png?v8",sewing_needle:"https://github.githubassets.com/images/icons/emoji/unicode/1faa1.png?v8",seychelles:"https://github.githubassets.com/images/icons/emoji/unicode/1f1f8-1f1e8.png?v8",shallow_pan_of_food:"https://github.githubassets.com/images/icons/emoji/unicode/1f958.png?v8",shamrock:"https://github.githubassets.com/images/icons/emoji/unicode/2618.png?v8",shark:"https://github.githubassets.com/images/icons/emoji/unicode/1f988.png?v8",shaved_ice:"https://github.githubassets.com/images/icons/emoji/unicode/1f367.png?v8",sheep:"https://github.githubassets.com/images/icons/emoji/unicode/1f411.png?v8",shell:"https://github.githubassets.com/images/icons/emoji/unicode/1f41a.png?v8",shield:"https://github.githubassets.com/images/icons/emoji/unicode/1f6e1.png?v8",shinto_shrine:"https://github.githubassets.com/images/icons/emoji/unicode/26e9.png?v8",ship:"https://github.githubassets.com/images/icons/emoji/unicode/1f6a2.png?v8",shipit:"https://github.githubassets.com/images/icons/emoji/shipit.png?v8",shirt:"https://github.githubassets.com/images/icons/emoji/unicode/1f455.png?v8",shit:"https://github.githubassets.com/images/icons/emoji/unicode/1f4a9.png?v8",shoe:"https://github.githubassets.com/images/icons/emoji/unicode/1f45e.png?v8",shopping:"https://github.githubassets.com/images/icons/emoji/unicode/1f6cd.png?v8",shopping_cart:"https://github.githubassets.com/images/icons/emoji/unicode/1f6d2.png?v8",shorts:"https://github.githubassets.com/images/icons/emoji/unicode/1fa73.png?v8",shower:"https://github.githubassets.com/images/icons/emoji/unicode/1f6bf.png?v8",shrimp:"https://github.githubassets.com/images/icons/emoji/unicode/1f990.png?v8",shrug:"https://github.githubassets.com/images/icons/emoji/unicode/1f937.png?v8",shushing_face:"https://github.githubassets.com/images/icons/emoji/unicode/1f92b.png?v8",sierra_leone:"https://github.githubassets.com/images/icons/emoji/unicode/1f1f8-1f1f1.png?v8",signal_strength:"https://github.githubassets.com/images/icons/emoji/unicode/1f4f6.png?v8",singapore:"https://github.githubassets.com/images/icons/emoji/unicode/1f1f8-1f1ec.png?v8",singer:"https://github.githubassets.com/images/icons/emoji/unicode/1f9d1-1f3a4.png?v8",sint_maarten:"https://github.githubassets.com/images/icons/emoji/unicode/1f1f8-1f1fd.png?v8",six:"https://github.githubassets.com/images/icons/emoji/unicode/0036-20e3.png?v8",six_pointed_star:"https://github.githubassets.com/images/icons/emoji/unicode/1f52f.png?v8",skateboard:"https://github.githubassets.com/images/icons/emoji/unicode/1f6f9.png?v8",ski:"https://github.githubassets.com/images/icons/emoji/unicode/1f3bf.png?v8",skier:"https://github.githubassets.com/images/icons/emoji/unicode/26f7.png?v8",skull:"https://github.githubassets.com/images/icons/emoji/unicode/1f480.png?v8",skull_and_crossbones:"https://github.githubassets.com/images/icons/emoji/unicode/2620.png?v8",skunk:"https://github.githubassets.com/images/icons/emoji/unicode/1f9a8.png?v8",sled:"https://github.githubassets.com/images/icons/emoji/unicode/1f6f7.png?v8",sleeping:"https://github.githubassets.com/images/icons/emoji/unicode/1f634.png?v8",sleeping_bed:"https://github.githubassets.com/images/icons/emoji/unicode/1f6cc.png?v8",sleepy:"https://github.githubassets.com/images/icons/emoji/unicode/1f62a.png?v8",slightly_frowning_face:"https://github.githubassets.com/images/icons/emoji/unicode/1f641.png?v8",slightly_smiling_face:"https://github.githubassets.com/images/icons/emoji/unicode/1f642.png?v8",slot_machine:"https://github.githubassets.com/images/icons/emoji/unicode/1f3b0.png?v8",sloth:"https://github.githubassets.com/images/icons/emoji/unicode/1f9a5.png?v8",slovakia:"https://github.githubassets.com/images/icons/emoji/unicode/1f1f8-1f1f0.png?v8",slovenia:"https://github.githubassets.com/images/icons/emoji/unicode/1f1f8-1f1ee.png?v8",small_airplane:"https://github.githubassets.com/images/icons/emoji/unicode/1f6e9.png?v8",small_blue_diamond:"https://github.githubassets.com/images/icons/emoji/unicode/1f539.png?v8",small_orange_diamond:"https://github.githubassets.com/images/icons/emoji/unicode/1f538.png?v8",small_red_triangle:"https://github.githubassets.com/images/icons/emoji/unicode/1f53a.png?v8",small_red_triangle_down:"https://github.githubassets.com/images/icons/emoji/unicode/1f53b.png?v8",smile:"https://github.githubassets.com/images/icons/emoji/unicode/1f604.png?v8",smile_cat:"https://github.githubassets.com/images/icons/emoji/unicode/1f638.png?v8",smiley:"https://github.githubassets.com/images/icons/emoji/unicode/1f603.png?v8",smiley_cat:"https://github.githubassets.com/images/icons/emoji/unicode/1f63a.png?v8",smiling_face_with_tear:"https://github.githubassets.com/images/icons/emoji/unicode/1f972.png?v8",smiling_face_with_three_hearts:"https://github.githubassets.com/images/icons/emoji/unicode/1f970.png?v8",smiling_imp:"https://github.githubassets.com/images/icons/emoji/unicode/1f608.png?v8",smirk:"https://github.githubassets.com/images/icons/emoji/unicode/1f60f.png?v8",smirk_cat:"https://github.githubassets.com/images/icons/emoji/unicode/1f63c.png?v8",smoking:"https://github.githubassets.com/images/icons/emoji/unicode/1f6ac.png?v8",snail:"https://github.githubassets.com/images/icons/emoji/unicode/1f40c.png?v8",snake:"https://github.githubassets.com/images/icons/emoji/unicode/1f40d.png?v8",sneezing_face:"https://github.githubassets.com/images/icons/emoji/unicode/1f927.png?v8",snowboarder:"https://github.githubassets.com/images/icons/emoji/unicode/1f3c2.png?v8",snowflake:"https://github.githubassets.com/images/icons/emoji/unicode/2744.png?v8",snowman:"https://github.githubassets.com/images/icons/emoji/unicode/26c4.png?v8",snowman_with_snow:"https://github.githubassets.com/images/icons/emoji/unicode/2603.png?v8",soap:"https://github.githubassets.com/images/icons/emoji/unicode/1f9fc.png?v8",sob:"https://github.githubassets.com/images/icons/emoji/unicode/1f62d.png?v8",soccer:"https://github.githubassets.com/images/icons/emoji/unicode/26bd.png?v8",socks:"https://github.githubassets.com/images/icons/emoji/unicode/1f9e6.png?v8",softball:"https://github.githubassets.com/images/icons/emoji/unicode/1f94e.png?v8",solomon_islands:"https://github.githubassets.com/images/icons/emoji/unicode/1f1f8-1f1e7.png?v8",somalia:"https://github.githubassets.com/images/icons/emoji/unicode/1f1f8-1f1f4.png?v8",soon:"https://github.githubassets.com/images/icons/emoji/unicode/1f51c.png?v8",sos:"https://github.githubassets.com/images/icons/emoji/unicode/1f198.png?v8",sound:"https://github.githubassets.com/images/icons/emoji/unicode/1f509.png?v8",south_africa:"https://github.githubassets.com/images/icons/emoji/unicode/1f1ff-1f1e6.png?v8",south_georgia_south_sandwich_islands:"https://github.githubassets.com/images/icons/emoji/unicode/1f1ec-1f1f8.png?v8",south_sudan:"https://github.githubassets.com/images/icons/emoji/unicode/1f1f8-1f1f8.png?v8",space_invader:"https://github.githubassets.com/images/icons/emoji/unicode/1f47e.png?v8",spades:"https://github.githubassets.com/images/icons/emoji/unicode/2660.png?v8",spaghetti:"https://github.githubassets.com/images/icons/emoji/unicode/1f35d.png?v8",sparkle:"https://github.githubassets.com/images/icons/emoji/unicode/2747.png?v8",sparkler:"https://github.githubassets.com/images/icons/emoji/unicode/1f387.png?v8",sparkles:"https://github.githubassets.com/images/icons/emoji/unicode/2728.png?v8",sparkling_heart:"https://github.githubassets.com/images/icons/emoji/unicode/1f496.png?v8",speak_no_evil:"https://github.githubassets.com/images/icons/emoji/unicode/1f64a.png?v8",speaker:"https://github.githubassets.com/images/icons/emoji/unicode/1f508.png?v8",speaking_head:"https://github.githubassets.com/images/icons/emoji/unicode/1f5e3.png?v8",speech_balloon:"https://github.githubassets.com/images/icons/emoji/unicode/1f4ac.png?v8",speedboat:"https://github.githubassets.com/images/icons/emoji/unicode/1f6a4.png?v8",spider:"https://github.githubassets.com/images/icons/emoji/unicode/1f577.png?v8",spider_web:"https://github.githubassets.com/images/icons/emoji/unicode/1f578.png?v8",spiral_calendar:"https://github.githubassets.com/images/icons/emoji/unicode/1f5d3.png?v8",spiral_notepad:"https://github.githubassets.com/images/icons/emoji/unicode/1f5d2.png?v8",sponge:"https://github.githubassets.com/images/icons/emoji/unicode/1f9fd.png?v8",spoon:"https://github.githubassets.com/images/icons/emoji/unicode/1f944.png?v8",squid:"https://github.githubassets.com/images/icons/emoji/unicode/1f991.png?v8",sri_lanka:"https://github.githubassets.com/images/icons/emoji/unicode/1f1f1-1f1f0.png?v8",st_barthelemy:"https://github.githubassets.com/images/icons/emoji/unicode/1f1e7-1f1f1.png?v8",st_helena:"https://github.githubassets.com/images/icons/emoji/unicode/1f1f8-1f1ed.png?v8",st_kitts_nevis:"https://github.githubassets.com/images/icons/emoji/unicode/1f1f0-1f1f3.png?v8",st_lucia:"https://github.githubassets.com/images/icons/emoji/unicode/1f1f1-1f1e8.png?v8",st_martin:"https://github.githubassets.com/images/icons/emoji/unicode/1f1f2-1f1eb.png?v8",st_pierre_miquelon:"https://github.githubassets.com/images/icons/emoji/unicode/1f1f5-1f1f2.png?v8",st_vincent_grenadines:"https://github.githubassets.com/images/icons/emoji/unicode/1f1fb-1f1e8.png?v8",stadium:"https://github.githubassets.com/images/icons/emoji/unicode/1f3df.png?v8",standing_man:"https://github.githubassets.com/images/icons/emoji/unicode/1f9cd-2642.png?v8",standing_person:"https://github.githubassets.com/images/icons/emoji/unicode/1f9cd.png?v8",standing_woman:"https://github.githubassets.com/images/icons/emoji/unicode/1f9cd-2640.png?v8",star:"https://github.githubassets.com/images/icons/emoji/unicode/2b50.png?v8",star2:"https://github.githubassets.com/images/icons/emoji/unicode/1f31f.png?v8",star_and_crescent:"https://github.githubassets.com/images/icons/emoji/unicode/262a.png?v8",star_of_david:"https://github.githubassets.com/images/icons/emoji/unicode/2721.png?v8",star_struck:"https://github.githubassets.com/images/icons/emoji/unicode/1f929.png?v8",stars:"https://github.githubassets.com/images/icons/emoji/unicode/1f320.png?v8",station:"https://github.githubassets.com/images/icons/emoji/unicode/1f689.png?v8",statue_of_liberty:"https://github.githubassets.com/images/icons/emoji/unicode/1f5fd.png?v8",steam_locomotive:"https://github.githubassets.com/images/icons/emoji/unicode/1f682.png?v8",stethoscope:"https://github.githubassets.com/images/icons/emoji/unicode/1fa7a.png?v8",stew:"https://github.githubassets.com/images/icons/emoji/unicode/1f372.png?v8",stop_button:"https://github.githubassets.com/images/icons/emoji/unicode/23f9.png?v8",stop_sign:"https://github.githubassets.com/images/icons/emoji/unicode/1f6d1.png?v8",stopwatch:"https://github.githubassets.com/images/icons/emoji/unicode/23f1.png?v8",straight_ruler:"https://github.githubassets.com/images/icons/emoji/unicode/1f4cf.png?v8",strawberry:"https://github.githubassets.com/images/icons/emoji/unicode/1f353.png?v8",stuck_out_tongue:"https://github.githubassets.com/images/icons/emoji/unicode/1f61b.png?v8",stuck_out_tongue_closed_eyes:"https://github.githubassets.com/images/icons/emoji/unicode/1f61d.png?v8",stuck_out_tongue_winking_eye:"https://github.githubassets.com/images/icons/emoji/unicode/1f61c.png?v8",student:"https://github.githubassets.com/images/icons/emoji/unicode/1f9d1-1f393.png?v8",studio_microphone:"https://github.githubassets.com/images/icons/emoji/unicode/1f399.png?v8",stuffed_flatbread:"https://github.githubassets.com/images/icons/emoji/unicode/1f959.png?v8",sudan:"https://github.githubassets.com/images/icons/emoji/unicode/1f1f8-1f1e9.png?v8",sun_behind_large_cloud:"https://github.githubassets.com/images/icons/emoji/unicode/1f325.png?v8",sun_behind_rain_cloud:"https://github.githubassets.com/images/icons/emoji/unicode/1f326.png?v8",sun_behind_small_cloud:"https://github.githubassets.com/images/icons/emoji/unicode/1f324.png?v8",sun_with_face:"https://github.githubassets.com/images/icons/emoji/unicode/1f31e.png?v8",sunflower:"https://github.githubassets.com/images/icons/emoji/unicode/1f33b.png?v8",sunglasses:"https://github.githubassets.com/images/icons/emoji/unicode/1f60e.png?v8",sunny:"https://github.githubassets.com/images/icons/emoji/unicode/2600.png?v8",sunrise:"https://github.githubassets.com/images/icons/emoji/unicode/1f305.png?v8",sunrise_over_mountains:"https://github.githubassets.com/images/icons/emoji/unicode/1f304.png?v8",superhero:"https://github.githubassets.com/images/icons/emoji/unicode/1f9b8.png?v8",superhero_man:"https://github.githubassets.com/images/icons/emoji/unicode/1f9b8-2642.png?v8",superhero_woman:"https://github.githubassets.com/images/icons/emoji/unicode/1f9b8-2640.png?v8",supervillain:"https://github.githubassets.com/images/icons/emoji/unicode/1f9b9.png?v8",supervillain_man:"https://github.githubassets.com/images/icons/emoji/unicode/1f9b9-2642.png?v8",supervillain_woman:"https://github.githubassets.com/images/icons/emoji/unicode/1f9b9-2640.png?v8",surfer:"https://github.githubassets.com/images/icons/emoji/unicode/1f3c4.png?v8",surfing_man:"https://github.githubassets.com/images/icons/emoji/unicode/1f3c4-2642.png?v8",surfing_woman:"https://github.githubassets.com/images/icons/emoji/unicode/1f3c4-2640.png?v8",suriname:"https://github.githubassets.com/images/icons/emoji/unicode/1f1f8-1f1f7.png?v8",sushi:"https://github.githubassets.com/images/icons/emoji/unicode/1f363.png?v8",suspect:"https://github.githubassets.com/images/icons/emoji/suspect.png?v8",suspension_railway:"https://github.githubassets.com/images/icons/emoji/unicode/1f69f.png?v8",svalbard_jan_mayen:"https://github.githubassets.com/images/icons/emoji/unicode/1f1f8-1f1ef.png?v8",swan:"https://github.githubassets.com/images/icons/emoji/unicode/1f9a2.png?v8",swaziland:"https://github.githubassets.com/images/icons/emoji/unicode/1f1f8-1f1ff.png?v8",sweat:"https://github.githubassets.com/images/icons/emoji/unicode/1f613.png?v8",sweat_drops:"https://github.githubassets.com/images/icons/emoji/unicode/1f4a6.png?v8",sweat_smile:"https://github.githubassets.com/images/icons/emoji/unicode/1f605.png?v8",sweden:"https://github.githubassets.com/images/icons/emoji/unicode/1f1f8-1f1ea.png?v8",sweet_potato:"https://github.githubassets.com/images/icons/emoji/unicode/1f360.png?v8",swim_brief:"https://github.githubassets.com/images/icons/emoji/unicode/1fa72.png?v8",swimmer:"https://github.githubassets.com/images/icons/emoji/unicode/1f3ca.png?v8",swimming_man:"https://github.githubassets.com/images/icons/emoji/unicode/1f3ca-2642.png?v8",swimming_woman:"https://github.githubassets.com/images/icons/emoji/unicode/1f3ca-2640.png?v8",switzerland:"https://github.githubassets.com/images/icons/emoji/unicode/1f1e8-1f1ed.png?v8",symbols:"https://github.githubassets.com/images/icons/emoji/unicode/1f523.png?v8",synagogue:"https://github.githubassets.com/images/icons/emoji/unicode/1f54d.png?v8",syria:"https://github.githubassets.com/images/icons/emoji/unicode/1f1f8-1f1fe.png?v8",syringe:"https://github.githubassets.com/images/icons/emoji/unicode/1f489.png?v8","t-rex":"https://github.githubassets.com/images/icons/emoji/unicode/1f996.png?v8",taco:"https://github.githubassets.com/images/icons/emoji/unicode/1f32e.png?v8",tada:"https://github.githubassets.com/images/icons/emoji/unicode/1f389.png?v8",taiwan:"https://github.githubassets.com/images/icons/emoji/unicode/1f1f9-1f1fc.png?v8",tajikistan:"https://github.githubassets.com/images/icons/emoji/unicode/1f1f9-1f1ef.png?v8",takeout_box:"https://github.githubassets.com/images/icons/emoji/unicode/1f961.png?v8",tamale:"https://github.githubassets.com/images/icons/emoji/unicode/1fad4.png?v8",tanabata_tree:"https://github.githubassets.com/images/icons/emoji/unicode/1f38b.png?v8",tangerine:"https://github.githubassets.com/images/icons/emoji/unicode/1f34a.png?v8",tanzania:"https://github.githubassets.com/images/icons/emoji/unicode/1f1f9-1f1ff.png?v8",taurus:"https://github.githubassets.com/images/icons/emoji/unicode/2649.png?v8",taxi:"https://github.githubassets.com/images/icons/emoji/unicode/1f695.png?v8",tea:"https://github.githubassets.com/images/icons/emoji/unicode/1f375.png?v8",teacher:"https://github.githubassets.com/images/icons/emoji/unicode/1f9d1-1f3eb.png?v8",teapot:"https://github.githubassets.com/images/icons/emoji/unicode/1fad6.png?v8",technologist:"https://github.githubassets.com/images/icons/emoji/unicode/1f9d1-1f4bb.png?v8",teddy_bear:"https://github.githubassets.com/images/icons/emoji/unicode/1f9f8.png?v8",telephone:"https://github.githubassets.com/images/icons/emoji/unicode/260e.png?v8",telephone_receiver:"https://github.githubassets.com/images/icons/emoji/unicode/1f4de.png?v8",telescope:"https://github.githubassets.com/images/icons/emoji/unicode/1f52d.png?v8",tennis:"https://github.githubassets.com/images/icons/emoji/unicode/1f3be.png?v8",tent:"https://github.githubassets.com/images/icons/emoji/unicode/26fa.png?v8",test_tube:"https://github.githubassets.com/images/icons/emoji/unicode/1f9ea.png?v8",thailand:"https://github.githubassets.com/images/icons/emoji/unicode/1f1f9-1f1ed.png?v8",thermometer:"https://github.githubassets.com/images/icons/emoji/unicode/1f321.png?v8",thinking:"https://github.githubassets.com/images/icons/emoji/unicode/1f914.png?v8",thong_sandal:"https://github.githubassets.com/images/icons/emoji/unicode/1fa74.png?v8",thought_balloon:"https://github.githubassets.com/images/icons/emoji/unicode/1f4ad.png?v8",thread:"https://github.githubassets.com/images/icons/emoji/unicode/1f9f5.png?v8",three:"https://github.githubassets.com/images/icons/emoji/unicode/0033-20e3.png?v8",thumbsdown:"https://github.githubassets.com/images/icons/emoji/unicode/1f44e.png?v8",thumbsup:"https://github.githubassets.com/images/icons/emoji/unicode/1f44d.png?v8",ticket:"https://github.githubassets.com/images/icons/emoji/unicode/1f3ab.png?v8",tickets:"https://github.githubassets.com/images/icons/emoji/unicode/1f39f.png?v8",tiger:"https://github.githubassets.com/images/icons/emoji/unicode/1f42f.png?v8",tiger2:"https://github.githubassets.com/images/icons/emoji/unicode/1f405.png?v8",timer_clock:"https://github.githubassets.com/images/icons/emoji/unicode/23f2.png?v8",timor_leste:"https://github.githubassets.com/images/icons/emoji/unicode/1f1f9-1f1f1.png?v8",tipping_hand_man:"https://github.githubassets.com/images/icons/emoji/unicode/1f481-2642.png?v8",tipping_hand_person:"https://github.githubassets.com/images/icons/emoji/unicode/1f481.png?v8",tipping_hand_woman:"https://github.githubassets.com/images/icons/emoji/unicode/1f481-2640.png?v8",tired_face:"https://github.githubassets.com/images/icons/emoji/unicode/1f62b.png?v8",tm:"https://github.githubassets.com/images/icons/emoji/unicode/2122.png?v8",togo:"https://github.githubassets.com/images/icons/emoji/unicode/1f1f9-1f1ec.png?v8",toilet:"https://github.githubassets.com/images/icons/emoji/unicode/1f6bd.png?v8",tokelau:"https://github.githubassets.com/images/icons/emoji/unicode/1f1f9-1f1f0.png?v8",tokyo_tower:"https://github.githubassets.com/images/icons/emoji/unicode/1f5fc.png?v8",tomato:"https://github.githubassets.com/images/icons/emoji/unicode/1f345.png?v8",tonga:"https://github.githubassets.com/images/icons/emoji/unicode/1f1f9-1f1f4.png?v8",tongue:"https://github.githubassets.com/images/icons/emoji/unicode/1f445.png?v8",toolbox:"https://github.githubassets.com/images/icons/emoji/unicode/1f9f0.png?v8",tooth:"https://github.githubassets.com/images/icons/emoji/unicode/1f9b7.png?v8",toothbrush:"https://github.githubassets.com/images/icons/emoji/unicode/1faa5.png?v8",top:"https://github.githubassets.com/images/icons/emoji/unicode/1f51d.png?v8",tophat:"https://github.githubassets.com/images/icons/emoji/unicode/1f3a9.png?v8",tornado:"https://github.githubassets.com/images/icons/emoji/unicode/1f32a.png?v8",tr:"https://github.githubassets.com/images/icons/emoji/unicode/1f1f9-1f1f7.png?v8",trackball:"https://github.githubassets.com/images/icons/emoji/unicode/1f5b2.png?v8",tractor:"https://github.githubassets.com/images/icons/emoji/unicode/1f69c.png?v8",traffic_light:"https://github.githubassets.com/images/icons/emoji/unicode/1f6a5.png?v8",train:"https://github.githubassets.com/images/icons/emoji/unicode/1f68b.png?v8",train2:"https://github.githubassets.com/images/icons/emoji/unicode/1f686.png?v8",tram:"https://github.githubassets.com/images/icons/emoji/unicode/1f68a.png?v8",transgender_flag:"https://github.githubassets.com/images/icons/emoji/unicode/1f3f3-26a7.png?v8",transgender_symbol:"https://github.githubassets.com/images/icons/emoji/unicode/26a7.png?v8",triangular_flag_on_post:"https://github.githubassets.com/images/icons/emoji/unicode/1f6a9.png?v8",triangular_ruler:"https://github.githubassets.com/images/icons/emoji/unicode/1f4d0.png?v8",trident:"https://github.githubassets.com/images/icons/emoji/unicode/1f531.png?v8",trinidad_tobago:"https://github.githubassets.com/images/icons/emoji/unicode/1f1f9-1f1f9.png?v8",tristan_da_cunha:"https://github.githubassets.com/images/icons/emoji/unicode/1f1f9-1f1e6.png?v8",triumph:"https://github.githubassets.com/images/icons/emoji/unicode/1f624.png?v8",trolleybus:"https://github.githubassets.com/images/icons/emoji/unicode/1f68e.png?v8",trollface:"https://github.githubassets.com/images/icons/emoji/trollface.png?v8",trophy:"https://github.githubassets.com/images/icons/emoji/unicode/1f3c6.png?v8",tropical_drink:"https://github.githubassets.com/images/icons/emoji/unicode/1f379.png?v8",tropical_fish:"https://github.githubassets.com/images/icons/emoji/unicode/1f420.png?v8",truck:"https://github.githubassets.com/images/icons/emoji/unicode/1f69a.png?v8",trumpet:"https://github.githubassets.com/images/icons/emoji/unicode/1f3ba.png?v8",tshirt:"https://github.githubassets.com/images/icons/emoji/unicode/1f455.png?v8",tulip:"https://github.githubassets.com/images/icons/emoji/unicode/1f337.png?v8",tumbler_glass:"https://github.githubassets.com/images/icons/emoji/unicode/1f943.png?v8",tunisia:"https://github.githubassets.com/images/icons/emoji/unicode/1f1f9-1f1f3.png?v8",turkey:"https://github.githubassets.com/images/icons/emoji/unicode/1f983.png?v8",turkmenistan:"https://github.githubassets.com/images/icons/emoji/unicode/1f1f9-1f1f2.png?v8",turks_caicos_islands:"https://github.githubassets.com/images/icons/emoji/unicode/1f1f9-1f1e8.png?v8",turtle:"https://github.githubassets.com/images/icons/emoji/unicode/1f422.png?v8",tuvalu:"https://github.githubassets.com/images/icons/emoji/unicode/1f1f9-1f1fb.png?v8",tv:"https://github.githubassets.com/images/icons/emoji/unicode/1f4fa.png?v8",twisted_rightwards_arrows:"https://github.githubassets.com/images/icons/emoji/unicode/1f500.png?v8",two:"https://github.githubassets.com/images/icons/emoji/unicode/0032-20e3.png?v8",two_hearts:"https://github.githubassets.com/images/icons/emoji/unicode/1f495.png?v8",two_men_holding_hands:"https://github.githubassets.com/images/icons/emoji/unicode/1f46c.png?v8",two_women_holding_hands:"https://github.githubassets.com/images/icons/emoji/unicode/1f46d.png?v8",u5272:"https://github.githubassets.com/images/icons/emoji/unicode/1f239.png?v8",u5408:"https://github.githubassets.com/images/icons/emoji/unicode/1f234.png?v8",u55b6:"https://github.githubassets.com/images/icons/emoji/unicode/1f23a.png?v8",u6307:"https://github.githubassets.com/images/icons/emoji/unicode/1f22f.png?v8",u6708:"https://github.githubassets.com/images/icons/emoji/unicode/1f237.png?v8",u6709:"https://github.githubassets.com/images/icons/emoji/unicode/1f236.png?v8",u6e80:"https://github.githubassets.com/images/icons/emoji/unicode/1f235.png?v8",u7121:"https://github.githubassets.com/images/icons/emoji/unicode/1f21a.png?v8",u7533:"https://github.githubassets.com/images/icons/emoji/unicode/1f238.png?v8",u7981:"https://github.githubassets.com/images/icons/emoji/unicode/1f232.png?v8",u7a7a:"https://github.githubassets.com/images/icons/emoji/unicode/1f233.png?v8",uganda:"https://github.githubassets.com/images/icons/emoji/unicode/1f1fa-1f1ec.png?v8",uk:"https://github.githubassets.com/images/icons/emoji/unicode/1f1ec-1f1e7.png?v8",ukraine:"https://github.githubassets.com/images/icons/emoji/unicode/1f1fa-1f1e6.png?v8",umbrella:"https://github.githubassets.com/images/icons/emoji/unicode/2614.png?v8",unamused:"https://github.githubassets.com/images/icons/emoji/unicode/1f612.png?v8",underage:"https://github.githubassets.com/images/icons/emoji/unicode/1f51e.png?v8",unicorn:"https://github.githubassets.com/images/icons/emoji/unicode/1f984.png?v8",united_arab_emirates:"https://github.githubassets.com/images/icons/emoji/unicode/1f1e6-1f1ea.png?v8",united_nations:"https://github.githubassets.com/images/icons/emoji/unicode/1f1fa-1f1f3.png?v8",unlock:"https://github.githubassets.com/images/icons/emoji/unicode/1f513.png?v8",up:"https://github.githubassets.com/images/icons/emoji/unicode/1f199.png?v8",upside_down_face:"https://github.githubassets.com/images/icons/emoji/unicode/1f643.png?v8",uruguay:"https://github.githubassets.com/images/icons/emoji/unicode/1f1fa-1f1fe.png?v8",us:"https://github.githubassets.com/images/icons/emoji/unicode/1f1fa-1f1f8.png?v8",us_outlying_islands:"https://github.githubassets.com/images/icons/emoji/unicode/1f1fa-1f1f2.png?v8",us_virgin_islands:"https://github.githubassets.com/images/icons/emoji/unicode/1f1fb-1f1ee.png?v8",uzbekistan:"https://github.githubassets.com/images/icons/emoji/unicode/1f1fa-1f1ff.png?v8",v:"https://github.githubassets.com/images/icons/emoji/unicode/270c.png?v8",vampire:"https://github.githubassets.com/images/icons/emoji/unicode/1f9db.png?v8",vampire_man:"https://github.githubassets.com/images/icons/emoji/unicode/1f9db-2642.png?v8",vampire_woman:"https://github.githubassets.com/images/icons/emoji/unicode/1f9db-2640.png?v8",vanuatu:"https://github.githubassets.com/images/icons/emoji/unicode/1f1fb-1f1fa.png?v8",vatican_city:"https://github.githubassets.com/images/icons/emoji/unicode/1f1fb-1f1e6.png?v8",venezuela:"https://github.githubassets.com/images/icons/emoji/unicode/1f1fb-1f1ea.png?v8",vertical_traffic_light:"https://github.githubassets.com/images/icons/emoji/unicode/1f6a6.png?v8",vhs:"https://github.githubassets.com/images/icons/emoji/unicode/1f4fc.png?v8",vibration_mode:"https://github.githubassets.com/images/icons/emoji/unicode/1f4f3.png?v8",video_camera:"https://github.githubassets.com/images/icons/emoji/unicode/1f4f9.png?v8",video_game:"https://github.githubassets.com/images/icons/emoji/unicode/1f3ae.png?v8",vietnam:"https://github.githubassets.com/images/icons/emoji/unicode/1f1fb-1f1f3.png?v8",violin:"https://github.githubassets.com/images/icons/emoji/unicode/1f3bb.png?v8",virgo:"https://github.githubassets.com/images/icons/emoji/unicode/264d.png?v8",volcano:"https://github.githubassets.com/images/icons/emoji/unicode/1f30b.png?v8",volleyball:"https://github.githubassets.com/images/icons/emoji/unicode/1f3d0.png?v8",vomiting_face:"https://github.githubassets.com/images/icons/emoji/unicode/1f92e.png?v8",vs:"https://github.githubassets.com/images/icons/emoji/unicode/1f19a.png?v8",vulcan_salute:"https://github.githubassets.com/images/icons/emoji/unicode/1f596.png?v8",waffle:"https://github.githubassets.com/images/icons/emoji/unicode/1f9c7.png?v8",wales:"https://github.githubassets.com/images/icons/emoji/unicode/1f3f4-e0067-e0062-e0077-e006c-e0073-e007f.png?v8",walking:"https://github.githubassets.com/images/icons/emoji/unicode/1f6b6.png?v8",walking_man:"https://github.githubassets.com/images/icons/emoji/unicode/1f6b6-2642.png?v8",walking_woman:"https://github.githubassets.com/images/icons/emoji/unicode/1f6b6-2640.png?v8",wallis_futuna:"https://github.githubassets.com/images/icons/emoji/unicode/1f1fc-1f1eb.png?v8",waning_crescent_moon:"https://github.githubassets.com/images/icons/emoji/unicode/1f318.png?v8",waning_gibbous_moon:"https://github.githubassets.com/images/icons/emoji/unicode/1f316.png?v8",warning:"https://github.githubassets.com/images/icons/emoji/unicode/26a0.png?v8",wastebasket:"https://github.githubassets.com/images/icons/emoji/unicode/1f5d1.png?v8",watch:"https://github.githubassets.com/images/icons/emoji/unicode/231a.png?v8",water_buffalo:"https://github.githubassets.com/images/icons/emoji/unicode/1f403.png?v8",water_polo:"https://github.githubassets.com/images/icons/emoji/unicode/1f93d.png?v8",watermelon:"https://github.githubassets.com/images/icons/emoji/unicode/1f349.png?v8",wave:"https://github.githubassets.com/images/icons/emoji/unicode/1f44b.png?v8",wavy_dash:"https://github.githubassets.com/images/icons/emoji/unicode/3030.png?v8",waxing_crescent_moon:"https://github.githubassets.com/images/icons/emoji/unicode/1f312.png?v8",waxing_gibbous_moon:"https://github.githubassets.com/images/icons/emoji/unicode/1f314.png?v8",wc:"https://github.githubassets.com/images/icons/emoji/unicode/1f6be.png?v8",weary:"https://github.githubassets.com/images/icons/emoji/unicode/1f629.png?v8",wedding:"https://github.githubassets.com/images/icons/emoji/unicode/1f492.png?v8",weight_lifting:"https://github.githubassets.com/images/icons/emoji/unicode/1f3cb.png?v8",weight_lifting_man:"https://github.githubassets.com/images/icons/emoji/unicode/1f3cb-2642.png?v8",weight_lifting_woman:"https://github.githubassets.com/images/icons/emoji/unicode/1f3cb-2640.png?v8",western_sahara:"https://github.githubassets.com/images/icons/emoji/unicode/1f1ea-1f1ed.png?v8",whale:"https://github.githubassets.com/images/icons/emoji/unicode/1f433.png?v8",whale2:"https://github.githubassets.com/images/icons/emoji/unicode/1f40b.png?v8",wheel_of_dharma:"https://github.githubassets.com/images/icons/emoji/unicode/2638.png?v8",wheelchair:"https://github.githubassets.com/images/icons/emoji/unicode/267f.png?v8",white_check_mark:"https://github.githubassets.com/images/icons/emoji/unicode/2705.png?v8",white_circle:"https://github.githubassets.com/images/icons/emoji/unicode/26aa.png?v8",white_flag:"https://github.githubassets.com/images/icons/emoji/unicode/1f3f3.png?v8",white_flower:"https://github.githubassets.com/images/icons/emoji/unicode/1f4ae.png?v8",white_haired_man:"https://github.githubassets.com/images/icons/emoji/unicode/1f468-1f9b3.png?v8",white_haired_woman:"https://github.githubassets.com/images/icons/emoji/unicode/1f469-1f9b3.png?v8",white_heart:"https://github.githubassets.com/images/icons/emoji/unicode/1f90d.png?v8",white_large_square:"https://github.githubassets.com/images/icons/emoji/unicode/2b1c.png?v8",white_medium_small_square:"https://github.githubassets.com/images/icons/emoji/unicode/25fd.png?v8",white_medium_square:"https://github.githubassets.com/images/icons/emoji/unicode/25fb.png?v8",white_small_square:"https://github.githubassets.com/images/icons/emoji/unicode/25ab.png?v8",white_square_button:"https://github.githubassets.com/images/icons/emoji/unicode/1f533.png?v8",wilted_flower:"https://github.githubassets.com/images/icons/emoji/unicode/1f940.png?v8",wind_chime:"https://github.githubassets.com/images/icons/emoji/unicode/1f390.png?v8",wind_face:"https://github.githubassets.com/images/icons/emoji/unicode/1f32c.png?v8",window:"https://github.githubassets.com/images/icons/emoji/unicode/1fa9f.png?v8",wine_glass:"https://github.githubassets.com/images/icons/emoji/unicode/1f377.png?v8",wink:"https://github.githubassets.com/images/icons/emoji/unicode/1f609.png?v8",wolf:"https://github.githubassets.com/images/icons/emoji/unicode/1f43a.png?v8",woman:"https://github.githubassets.com/images/icons/emoji/unicode/1f469.png?v8",woman_artist:"https://github.githubassets.com/images/icons/emoji/unicode/1f469-1f3a8.png?v8",woman_astronaut:"https://github.githubassets.com/images/icons/emoji/unicode/1f469-1f680.png?v8",woman_beard:"https://github.githubassets.com/images/icons/emoji/unicode/1f9d4-2640.png?v8",woman_cartwheeling:"https://github.githubassets.com/images/icons/emoji/unicode/1f938-2640.png?v8",woman_cook:"https://github.githubassets.com/images/icons/emoji/unicode/1f469-1f373.png?v8",woman_dancing:"https://github.githubassets.com/images/icons/emoji/unicode/1f483.png?v8",woman_facepalming:"https://github.githubassets.com/images/icons/emoji/unicode/1f926-2640.png?v8",woman_factory_worker:"https://github.githubassets.com/images/icons/emoji/unicode/1f469-1f3ed.png?v8",woman_farmer:"https://github.githubassets.com/images/icons/emoji/unicode/1f469-1f33e.png?v8",woman_feeding_baby:"https://github.githubassets.com/images/icons/emoji/unicode/1f469-1f37c.png?v8",woman_firefighter:"https://github.githubassets.com/images/icons/emoji/unicode/1f469-1f692.png?v8",woman_health_worker:"https://github.githubassets.com/images/icons/emoji/unicode/1f469-2695.png?v8",woman_in_manual_wheelchair:"https://github.githubassets.com/images/icons/emoji/unicode/1f469-1f9bd.png?v8",woman_in_motorized_wheelchair:"https://github.githubassets.com/images/icons/emoji/unicode/1f469-1f9bc.png?v8",woman_in_tuxedo:"https://github.githubassets.com/images/icons/emoji/unicode/1f935-2640.png?v8",woman_judge:"https://github.githubassets.com/images/icons/emoji/unicode/1f469-2696.png?v8",woman_juggling:"https://github.githubassets.com/images/icons/emoji/unicode/1f939-2640.png?v8",woman_mechanic:"https://github.githubassets.com/images/icons/emoji/unicode/1f469-1f527.png?v8",woman_office_worker:"https://github.githubassets.com/images/icons/emoji/unicode/1f469-1f4bc.png?v8",woman_pilot:"https://github.githubassets.com/images/icons/emoji/unicode/1f469-2708.png?v8",woman_playing_handball:"https://github.githubassets.com/images/icons/emoji/unicode/1f93e-2640.png?v8",woman_playing_water_polo:"https://github.githubassets.com/images/icons/emoji/unicode/1f93d-2640.png?v8",woman_scientist:"https://github.githubassets.com/images/icons/emoji/unicode/1f469-1f52c.png?v8",woman_shrugging:"https://github.githubassets.com/images/icons/emoji/unicode/1f937-2640.png?v8",woman_singer:"https://github.githubassets.com/images/icons/emoji/unicode/1f469-1f3a4.png?v8",woman_student:"https://github.githubassets.com/images/icons/emoji/unicode/1f469-1f393.png?v8",woman_teacher:"https://github.githubassets.com/images/icons/emoji/unicode/1f469-1f3eb.png?v8",woman_technologist:"https://github.githubassets.com/images/icons/emoji/unicode/1f469-1f4bb.png?v8",woman_with_headscarf:"https://github.githubassets.com/images/icons/emoji/unicode/1f9d5.png?v8",woman_with_probing_cane:"https://github.githubassets.com/images/icons/emoji/unicode/1f469-1f9af.png?v8",woman_with_turban:"https://github.githubassets.com/images/icons/emoji/unicode/1f473-2640.png?v8",woman_with_veil:"https://github.githubassets.com/images/icons/emoji/unicode/1f470-2640.png?v8",womans_clothes:"https://github.githubassets.com/images/icons/emoji/unicode/1f45a.png?v8",womans_hat:"https://github.githubassets.com/images/icons/emoji/unicode/1f452.png?v8",women_wrestling:"https://github.githubassets.com/images/icons/emoji/unicode/1f93c-2640.png?v8",womens:"https://github.githubassets.com/images/icons/emoji/unicode/1f6ba.png?v8",wood:"https://github.githubassets.com/images/icons/emoji/unicode/1fab5.png?v8",woozy_face:"https://github.githubassets.com/images/icons/emoji/unicode/1f974.png?v8",world_map:"https://github.githubassets.com/images/icons/emoji/unicode/1f5fa.png?v8",worm:"https://github.githubassets.com/images/icons/emoji/unicode/1fab1.png?v8",worried:"https://github.githubassets.com/images/icons/emoji/unicode/1f61f.png?v8",wrench:"https://github.githubassets.com/images/icons/emoji/unicode/1f527.png?v8",wrestling:"https://github.githubassets.com/images/icons/emoji/unicode/1f93c.png?v8",writing_hand:"https://github.githubassets.com/images/icons/emoji/unicode/270d.png?v8",x:"https://github.githubassets.com/images/icons/emoji/unicode/274c.png?v8",yarn:"https://github.githubassets.com/images/icons/emoji/unicode/1f9f6.png?v8",yawning_face:"https://github.githubassets.com/images/icons/emoji/unicode/1f971.png?v8",yellow_circle:"https://github.githubassets.com/images/icons/emoji/unicode/1f7e1.png?v8",yellow_heart:"https://github.githubassets.com/images/icons/emoji/unicode/1f49b.png?v8",yellow_square:"https://github.githubassets.com/images/icons/emoji/unicode/1f7e8.png?v8",yemen:"https://github.githubassets.com/images/icons/emoji/unicode/1f1fe-1f1ea.png?v8",yen:"https://github.githubassets.com/images/icons/emoji/unicode/1f4b4.png?v8",yin_yang:"https://github.githubassets.com/images/icons/emoji/unicode/262f.png?v8",yo_yo:"https://github.githubassets.com/images/icons/emoji/unicode/1fa80.png?v8",yum:"https://github.githubassets.com/images/icons/emoji/unicode/1f60b.png?v8",zambia:"https://github.githubassets.com/images/icons/emoji/unicode/1f1ff-1f1f2.png?v8",zany_face:"https://github.githubassets.com/images/icons/emoji/unicode/1f92a.png?v8",zap:"https://github.githubassets.com/images/icons/emoji/unicode/26a1.png?v8",zebra:"https://github.githubassets.com/images/icons/emoji/unicode/1f993.png?v8",zero:"https://github.githubassets.com/images/icons/emoji/unicode/0030-20e3.png?v8",zimbabwe:"https://github.githubassets.com/images/icons/emoji/unicode/1f1ff-1f1fc.png?v8",zipper_mouth_face:"https://github.githubassets.com/images/icons/emoji/unicode/1f910.png?v8",zombie:"https://github.githubassets.com/images/icons/emoji/unicode/1f9df.png?v8",zombie_man:"https://github.githubassets.com/images/icons/emoji/unicode/1f9df-2642.png?v8",zombie_woman:"https://github.githubassets.com/images/icons/emoji/unicode/1f9df-2640.png?v8",zzz:"https://github.githubassets.com/images/icons/emoji/unicode/1f4a4.png?v8"};const defaultOptions={unicode:!1};function markedEmoji(r){if((r={...defaultOptions,...r}).emojis)return{extensions:[{name:"emoji",level:"inline",start(e){return e.indexOf(":")},tokenizer(e,t){e=/^:(.+?):/.exec(e);if(e){var i=e[1],n=r.emojis[i];if(n)return{type:"emoji",raw:e[0],name:i,emoji:n}}},renderer(e){return r.unicode?e.emoji:`<img class="emoji" alt="${e.name}" src="${e.emoji}"${this.parser.options.xhtml?" /":""}>`}}]};throw new Error("Must provide emojis to markedEmoji")}function baseUrl(i){i=i.trim().replace(/\/+$/,"/");const n=/^[\w+]+:\/\//,r=n.test(i);var e="http://__dummy__";const s=new URL(i,e),a=e.length+(i.startsWith("/")?0:1);return{walkTokens(e){if(["link","image"].includes(e.type)&&!n.test(e.href)&&!e.href.startsWith("#"))if(r)try{e.href=new URL(e.href,i).href}catch(e){}else if(!e.href.startsWith("/"))try{var t=new URL(e.href,s).href;e.href=t.slice(a)}catch(e){}}}}!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).marked={})}(this,function(t){"use strict";function e(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}function i(e){t.defaults=e}t.defaults={async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null};const n=/[&<>"']/,O=new RegExp(n.source,"g"),r=/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,P=new RegExp(r.source,"g"),B={"&":"&","<":"<",">":">",'"':""","'":"'"},s=e=>B[e];function a(e,t){if(t){if(n.test(e))return e.replace(O,s)}else if(r.test(e))return e.replace(P,s);return e}const F=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi;const j=/(^|[^\[])\^/g;function o(e,t){let n="string"==typeof e?e:e.source;t=t||"";const r={replace:(e,t)=>{let i="string"==typeof t?t:t.source;return i=i.replace(j,"$1"),n=n.replace(e,i),r},getRegex:()=>new RegExp(n,t)};return r}function l(e){try{e=encodeURI(e).replace(/%25/g,"%")}catch(e){return null}return e}var c={exec:()=>null};function h(e,t){var i=e.replace(/\|/g,(e,t,i)=>{let n=!1,r=t;for(;0<=--r&&"\\"===i[r];)n=!n;return n?"|":" |"}).split(/ \|/);let n=0;if(i[0].trim()||i.shift(),0<i.length&&!i[i.length-1].trim()&&i.pop(),t)if(i.length>t)i.splice(t);else for(;i.length<t;)i.push("");for(;n<i.length;n++)i[n]=i[n].trim().replace(/\\\|/g,"|");return i}function u(e,t,i){var n=e.length;if(0===n)return"";let r=0;for(;r<n;){var s=e.charAt(n-r-1);if((s!==t||i)&&(s===t||!i))break;r++}return e.slice(0,n-r)}function d(e,t,i,n){var r=t.href,t=t.title?a(t.title):null,s=e[1].replace(/\\([\[\]])/g,"$1");if("!"===e[0].charAt(0))return{type:"image",raw:i,href:r,title:t,text:a(s)};{n.state.inLink=!0;const e={type:"link",raw:i,href:r,title:t,text:s,tokens:n.inlineTokens(s)};return n.state.inLink=!1,e}}class p{options;rules;lexer;constructor(e){this.options=e||t.defaults}space(e){e=this.rules.block.newline.exec(e);if(e&&0<e[0].length)return{type:"space",raw:e[0]}}code(e){var t=this.rules.block.code.exec(e);if(t){const e=t[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:t[0],codeBlockStyle:"indented",text:this.options.pedantic?e:u(e,"\n")}}}fences(e){var t=this.rules.block.fences.exec(e);if(t){const e=t[0],i=function(e,t){e=e.match(/^(\s+)(?:```)/);if(null===e)return t;const i=e[1];return t.split("\n").map(e=>{var t=e.match(/^\s+/);return null!==t&&([t]=t,t.length>=i.length)?e.slice(i.length):e}).join("\n")}(e,t[3]||"");return{type:"code",raw:e,lang:t[2]&&t[2].trim().replace(this.rules.inline.anyPunctuation,"$1"),text:i}}}heading(e){const t=this.rules.block.heading.exec(e);if(t){let e=t[2].trim();if(/#$/.test(e)){const t=u(e,"#");!this.options.pedantic&&t&&!/ $/.test(t)||(e=t.trim())}return{type:"heading",raw:t[0],depth:t[1].length,text:e,tokens:this.lexer.inline(e)}}}hr(e){e=this.rules.block.hr.exec(e);if(e)return{type:"hr",raw:e[0]}}blockquote(e){var t=this.rules.block.blockquote.exec(e);if(t){const e=u(t[0].replace(/^ *>[ \t]?/gm,""),"\n"),n=this.lexer.state.top;this.lexer.state.top=!0;var i=this.lexer.blockTokens(e);return this.lexer.state.top=n,{type:"blockquote",raw:t[0],tokens:i,text:e}}}list(h){let u=this.rules.block.list.exec(h);if(u){let e=u[1].trim();var t=1<e.length,d={type:"list",raw:"",ordered:t,start:t?+e.slice(0,-1):"",loose:!1,items:[]},p=(e=t?"\\d{1,9}\\"+e.slice(-1):"\\"+e,this.options.pedantic&&(e=t?e:"[*+-]"),new RegExp(`^( {0,3}${e})((?:[ ][^\\n]*)?(?:\\n|$))`));let o="",l="",c=!1;for(;h;){let e=!1;if(!(u=p.exec(h)))break;if(this.rules.block.hr.test(h))break;o=u[0],h=h.substring(o.length);let t=u[2].split("\n",1)[0].replace(/^\t+/,e=>" ".repeat(3*e.length)),i=h.split("\n",1)[0],n=0,r=(this.options.pedantic?(n=2,l=t.trimStart()):(n=4<(n=u[2].search(/[^ ]/))?1:n,l=t.slice(n),n+=u[1].length),!1);if(!t&&/^ *$/.test(i)&&(o+=i+"\n",h=h.substring(i.length+1),e=!0),!e){const u=new RegExp(`^ {0,${Math.min(3,n-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),f=new RegExp(`^ {0,${Math.min(3,n-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),m=new RegExp(`^ {0,${Math.min(3,n-1)}}(?:\`\`\`|~~~)`),y=new RegExp(`^ {0,${Math.min(3,n-1)}}#`);for(;h;){var g=h.split("\n",1)[0];if(i=g,this.options.pedantic&&(i=i.replace(/^ {1,4}(?=( {4})*[^ ])/g," ")),m.test(i))break;if(y.test(i))break;if(u.test(i))break;if(f.test(h))break;if(i.search(/[^ ]/)>=n||!i.trim())l+="\n"+i.slice(n);else{if(r)break;if(4<=t.search(/[^ ]/))break;if(m.test(t))break;if(y.test(t))break;if(f.test(t))break;l+="\n"+i}r||i.trim()||(r=!0),o+=g+"\n",h=h.substring(g.length+1),t=i.slice(n)}}d.loose||(c?d.loose=!0:/\n *\n *$/.test(o)&&(c=!0));let s,a=null;this.options.gfm&&(a=/^\[[ xX]\] /.exec(l))&&(s="[ ] "!==a[0],l=l.replace(/^\[[ xX]\] +/,"")),d.items.push({type:"list_item",raw:o,task:!!a,checked:s,loose:!1,text:l,tokens:[]}),d.raw+=o}d.items[d.items.length-1].raw=o.trimEnd(),d.items[d.items.length-1].text=l.trimEnd(),d.raw=d.raw.trimEnd();for(let e=0;e<d.items.length;e++)if(this.lexer.state.top=!1,d.items[e].tokens=this.lexer.blockTokens(d.items[e].text,[]),!d.loose){const u=d.items[e].tokens.filter(e=>"space"===e.type),i=0<u.length&&u.some(e=>/\n.*\n/.test(e.raw));d.loose=i}if(d.loose)for(let e=0;e<d.items.length;e++)d.items[e].loose=!0;return d}}html(e){e=this.rules.block.html.exec(e);if(e)return{type:"html",block:!0,raw:e[0],pre:"pre"===e[1]||"script"===e[1]||"style"===e[1],text:e[0]}}def(e){var t=this.rules.block.def.exec(e);if(t){const e=t[1].toLowerCase().replace(/\s+/g," "),i=t[2]?t[2].replace(/^<(.*)>$/,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",n=t[3]&&t[3].substring(1,t[3].length-1).replace(this.rules.inline.anyPunctuation,"$1");return{type:"def",tag:e,raw:t[0],href:i,title:n}}}table(e){e=this.rules.block.table.exec(e);if(e&&/[:|]/.test(e[2])){var t=h(e[1]),i=e[2].replace(/^\||\| *$/g,"").split("|"),n=e[3]&&e[3].trim()?e[3].replace(/\n[ \t]*$/,"").split("\n"):[],r={type:"table",raw:e[0],header:[],align:[],rows:[]};if(t.length===i.length){for(const e of i)/^ *-+: *$/.test(e)?r.align.push("right"):/^ *:-+: *$/.test(e)?r.align.push("center"):/^ *:-+ *$/.test(e)?r.align.push("left"):r.align.push(null);for(const e of t)r.header.push({text:e,tokens:this.lexer.inline(e)});for(const e of n)r.rows.push(h(e,r.header.length).map(e=>({text:e,tokens:this.lexer.inline(e)})));return r}}}lheading(e){e=this.rules.block.lheading.exec(e);if(e)return{type:"heading",raw:e[0],depth:"="===e[2].charAt(0)?1:2,text:e[1],tokens:this.lexer.inline(e[1])}}paragraph(e){var t=this.rules.block.paragraph.exec(e);if(t){const e="\n"===t[1].charAt(t[1].length-1)?t[1].slice(0,-1):t[1];return{type:"paragraph",raw:t[0],text:e,tokens:this.lexer.inline(e)}}}text(e){e=this.rules.block.text.exec(e);if(e)return{type:"text",raw:e[0],text:e[0],tokens:this.lexer.inline(e[0])}}escape(e){e=this.rules.inline.escape.exec(e);if(e)return{type:"escape",raw:e[0],text:a(e[1])}}tag(e){e=this.rules.inline.tag.exec(e);if(e)return!this.lexer.state.inLink&&/^<a /i.test(e[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&/^<\/a>/i.test(e[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(e[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(e[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:e[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:e[0]}}link(i){const n=this.rules.inline.link.exec(i);if(n){const i=n[2].trim();if(!this.options.pedantic&&/^</.test(i)){if(!/>$/.test(i))return;const n=u(i.slice(0,-1),"\\");if((i.length-n.length)%2==0)return}else{const i=function(i){if(-1!==i.indexOf("()"[1])){let t=0;for(let e=0;e<i.length;e++)if("\\"===i[e])e++;else if(i[e]==="()"[0])t++;else if(i[e]==="()"[1]&&--t<0)return e}return-1}(n[2]);var r;-1<i&&(r=(0===n[0].indexOf("!")?5:4)+n[1].length+i,n[2]=n[2].substring(0,i),n[0]=n[0].substring(0,r).trim(),n[3]="")}let e=n[2],t="";if(this.options.pedantic){const i=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(e);i&&(e=i[1],t=i[3])}else t=n[3]?n[3].slice(1,-1):"";return e=e.trim(),/^</.test(e)&&(e=this.options.pedantic&&!/>$/.test(i)?e.slice(1):e.slice(1,-1)),d(n,{href:e&&e.replace(this.rules.inline.anyPunctuation,"$1"),title:t&&t.replace(this.rules.inline.anyPunctuation,"$1")},n[0],this.lexer)}}reflink(e,t){let i;if(i=(i=this.rules.inline.reflink.exec(e))||this.rules.inline.nolink.exec(e)){const e=t[(i[2]||i[1]).replace(/\s+/g," ").toLowerCase()];if(e)return d(i,e,i[0],this.lexer);{const e=i[0].charAt(0);return{type:"text",raw:e,text:e}}}}emStrong(r,s,a=""){let o=this.rules.inline.emStrongLDelim.exec(r);if(o&&(!o[3]||!a.match(/[\p{L}\p{N}]/u))&&(!o[1]&&!o[2]||!a||this.rules.inline.punctuation.exec(a))){const a=[...o[0]].length-1;let e,t,i=a,n=0;var l="*"===o[0][0]?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(l.lastIndex=0,s=s.slice(-1*r.length+a);null!=(o=l.exec(s));)if(e=o[1]||o[2]||o[3]||o[4]||o[5]||o[6])if(t=[...e].length,o[3]||o[4])i+=t;else if((o[5]||o[6])&&a%3&&!((a+t)%3))n+=t;else if(!(0<(i-=t))){t=Math.min(t,t+i+n);const s=[...o[0]][0].length,h=r.slice(0,a+o.index+s+t);if(Math.min(a,t)%2){const r=h.slice(1,-1);return{type:"em",raw:h,text:r,tokens:this.lexer.inlineTokens(r)}}var c=h.slice(2,-2);return{type:"strong",raw:h,text:c,tokens:this.lexer.inlineTokens(c)}}}}codespan(t){t=this.rules.inline.code.exec(t);if(t){let e=t[2].replace(/\n/g," ");var i=/[^ ]/.test(e),n=/^ /.test(e)&&/ $/.test(e);return e=a(e=i&&n?e.substring(1,e.length-1):e,!0),{type:"codespan",raw:t[0],text:e}}}br(e){e=this.rules.inline.br.exec(e);if(e)return{type:"br",raw:e[0]}}del(e){e=this.rules.inline.del.exec(e);if(e)return{type:"del",raw:e[0],text:e[2],tokens:this.lexer.inlineTokens(e[2])}}autolink(i){i=this.rules.inline.autolink.exec(i);if(i){let e,t;return t="@"===i[2]?"mailto:"+(e=a(i[1])):e=a(i[1]),{type:"link",raw:i[0],text:e,href:t,tokens:[{type:"text",raw:e,text:e}]}}}url(e){var i,n;if(i=this.rules.inline.url.exec(e)){let e,t;if("@"===i[2])e=a(i[0]),t="mailto:"+e;else{for(;n=i[0],i[0]=this.rules.inline._backpedal.exec(i[0])?.[0]??"",n!==i[0];);e=a(i[0]),t="www."===i[1]?"http://"+i[0]:i[0]}return{type:"link",raw:i[0],text:e,href:t,tokens:[{type:"text",raw:e,text:e}]}}}inlineText(e){var t,e=this.rules.inline.text.exec(e);if(e)return t=this.lexer.state.inRawBlock?e[0]:a(e[0]),{type:"text",raw:e[0],text:t}}}const g=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,f=/(?:[*+-]|\d{1,9}[.)])/,m=o(/^(?!bull |blockCode|fences|blockquote|heading|html)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html))+?)\n {0,3}(=+|-+) *(?:\n+|$)/).replace(/bull/g,f).replace(/blockCode/g,/ {4}/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).getRegex(),y=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,b=/(?!\s*\])(?:\\.|[^\[\]\\])+/,z=o(/^ {0,3}\[(label)\]: *(?:\n *)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n *)?| *\n *)(title))? *(?:\n+|$)/).replace("label",b).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),H=o(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,f).getRegex(),v="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",x=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,U=o("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n *)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$))","i").replace("comment",x).replace("tag",v).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),w=o(y).replace("hr",g).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",v).getRegex(),k={blockquote:o(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",w).getRegex(),code:/^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/,def:z,fences:/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,hr:g,html:U,lheading:m,list:H,newline:/^(?: *(?:\n|$))+/,paragraph:w,table:c,text:/^[^\n]+/},q=o("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",g).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",v).getRegex(),W={...k,table:q,paragraph:o(y).replace("hr",g).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",q).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",v).getRegex()},V={...k,html:o("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:\"[^\"]*\"|'[^']*'|\\s[^'\"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",x).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:c,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:o(y).replace("hr",g).replace("heading"," *#{1,6} *[^\n]").replace("lheading",m).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},G=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,Y=/^( {2,}|\\)\n(?!\s*$)/,T="\\p{P}\\p{S}",X=o(/^((?![*_])[\spunctuation])/,"u").replace(/punctuation/g,T).getRegex(),K=o(/^(?:\*+(?:((?!\*)[punct])|[^\s*]))|^_+(?:((?!_)[punct])|([^\s_]))/,"u").replace(/punct/g,T).getRegex(),Z=o("^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)[punct](\\*+)(?=[\\s]|$)|[^punct\\s](\\*+)(?!\\*)(?=[punct\\s]|$)|(?!\\*)[punct\\s](\\*+)(?=[^punct\\s])|[\\s](\\*+)(?!\\*)(?=[punct])|(?!\\*)[punct](\\*+)(?!\\*)(?=[punct])|[^punct\\s](\\*+)(?=[^punct\\s])","gu").replace(/punct/g,T).getRegex(),Q=o("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)[punct](_+)(?=[\\s]|$)|[^punct\\s](_+)(?!_)(?=[punct\\s]|$)|(?!_)[punct\\s](_+)(?=[^punct\\s])|[\\s](_+)(?!_)(?=[punct])|(?!_)[punct](_+)(?!_)(?=[punct])","gu").replace(/punct/g,T).getRegex(),J=o(/\\([punct])/,"gu").replace(/punct/g,T).getRegex(),ee=o(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),te=o(x).replace("(?:--\x3e|$)","--\x3e").getRegex(),ie=o("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",te).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),S=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,ne=o(/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/).replace("label",S).replace("href",/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),re=o(/^!?\[(label)\]\[(ref)\]/).replace("label",S).replace("ref",b).getRegex(),se=o(/^!?\[(ref)\](?:\[\])?/).replace("ref",b).getRegex(),_={_backpedal:c,anyPunctuation:J,autolink:ee,blockSkip:/\[[^[\]]*?\]\([^\(\)]*?\)|`[^`]*?`|<[^<>]*?>/g,br:Y,code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,del:c,emStrongLDelim:K,emStrongRDelimAst:Z,emStrongRDelimUnd:Q,escape:G,link:ne,nolink:se,punctuation:X,reflink:re,reflinkSearch:o("reflink|nolink(?!\\()","g").replace("reflink",re).replace("nolink",se).getRegex(),tag:ie,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,url:c},ae={..._,link:o(/^!?\[(label)\]\((.*?)\)/).replace("label",S).getRegex(),reflink:o(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",S).getRegex()},C={..._,escape:o(G).replace("])","~|])").getRegex(),url:o(/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,"i").replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])([\s\S]*?[^\s~])\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/},oe={...C,br:o(Y).replace("{2,}","*").getRegex(),text:o(C.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},A={normal:k,gfm:W,pedantic:V},E={normal:_,gfm:C,breaks:oe,pedantic:ae};class ${tokens;options;state;tokenizer;inlineQueue;constructor(e){this.tokens=[],this.tokens.links=Object.create(null),this.options=e||t.defaults,this.options.tokenizer=this.options.tokenizer||new p,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,(this.tokenizer.lexer=this).inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};e={block:A.normal,inline:E.normal};this.options.pedantic?(e.block=A.pedantic,e.inline=E.pedantic):this.options.gfm&&(e.block=A.gfm,this.options.breaks?e.inline=E.breaks:e.inline=E.gfm),this.tokenizer.rules=e}static get rules(){return{block:A,inline:E}}static lex(e,t){return new $(t).lex(e)}static lexInline(e,t){return new $(t).inlineTokens(e)}lex(e){e=e.replace(/\r\n|\r/g,"\n"),this.blockTokens(e,this.tokens);for(let e=0;e<this.inlineQueue.length;e++){var t=this.inlineQueue[e];this.inlineTokens(t.src,t.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(n,t=[]){let r,e,s,i;for(n=this.options.pedantic?n.replace(/\t/g," ").replace(/^ +$/gm,""):n.replace(/^( *)(\t+)/gm,(e,t,i)=>t+" ".repeat(i.length));n;)if(!(this.options.extensions&&this.options.extensions.block&&this.options.extensions.block.some(e=>!!(r=e.call({lexer:this},n,t))&&(n=n.substring(r.raw.length),t.push(r),!0))))if(r=this.tokenizer.space(n))n=n.substring(r.raw.length),1===r.raw.length&&0<t.length?t[t.length-1].raw+="\n":t.push(r);else if(r=this.tokenizer.code(n))n=n.substring(r.raw.length),!(e=t[t.length-1])||"paragraph"!==e.type&&"text"!==e.type?t.push(r):(e.raw+="\n"+r.raw,e.text+="\n"+r.text,this.inlineQueue[this.inlineQueue.length-1].src=e.text);else if(r=this.tokenizer.fences(n))n=n.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.heading(n))n=n.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.hr(n))n=n.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.blockquote(n))n=n.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.list(n))n=n.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.html(n))n=n.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.def(n))n=n.substring(r.raw.length),!(e=t[t.length-1])||"paragraph"!==e.type&&"text"!==e.type?this.tokens.links[r.tag]||(this.tokens.links[r.tag]={href:r.href,title:r.title}):(e.raw+="\n"+r.raw,e.text+="\n"+r.raw,this.inlineQueue[this.inlineQueue.length-1].src=e.text);else if(r=this.tokenizer.table(n))n=n.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.lheading(n))n=n.substring(r.raw.length),t.push(r);else{if(s=n,this.options.extensions&&this.options.extensions.startBlock){let t=1/0;const r=n.slice(1);let i;this.options.extensions.startBlock.forEach(e=>{"number"==typeof(i=e.call({lexer:this},r))&&0<=i&&(t=Math.min(t,i))}),t<1/0&&0<=t&&(s=n.substring(0,t+1))}if(this.state.top&&(r=this.tokenizer.paragraph(s)))e=t[t.length-1],i&&"paragraph"===e.type?(e.raw+="\n"+r.raw,e.text+="\n"+r.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=e.text):t.push(r),i=s.length!==n.length,n=n.substring(r.raw.length);else if(r=this.tokenizer.text(n))n=n.substring(r.raw.length),(e=t[t.length-1])&&"text"===e.type?(e.raw+="\n"+r.raw,e.text+="\n"+r.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=e.text):t.push(r);else if(n){const t="Infinite loop on byte: "+n.charCodeAt(0);if(this.options.silent){console.error(t);break}throw new Error(t)}}return this.state.top=!0,t}inline(e,t=[]){return this.inlineQueue.push({src:e,tokens:t}),t}inlineTokens(n,t=[]){let r,e,s,i,a,o,l=n;if(this.tokens.links){const n=Object.keys(this.tokens.links);if(0<n.length)for(;null!=(i=this.tokenizer.rules.inline.reflinkSearch.exec(l));)n.includes(i[0].slice(i[0].lastIndexOf("[")+1,-1))&&(l=l.slice(0,i.index)+"["+"a".repeat(i[0].length-2)+"]"+l.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;null!=(i=this.tokenizer.rules.inline.blockSkip.exec(l));)l=l.slice(0,i.index)+"["+"a".repeat(i[0].length-2)+"]"+l.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;null!=(i=this.tokenizer.rules.inline.anyPunctuation.exec(l));)l=l.slice(0,i.index)+"++"+l.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);for(;n;)if(a||(o=""),a=!1,!(this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some(e=>!!(r=e.call({lexer:this},n,t))&&(n=n.substring(r.raw.length),t.push(r),!0))))if(r=this.tokenizer.escape(n))n=n.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.tag(n))n=n.substring(r.raw.length),(e=t[t.length-1])&&"text"===r.type&&"text"===e.type?(e.raw+=r.raw,e.text+=r.text):t.push(r);else if(r=this.tokenizer.link(n))n=n.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.reflink(n,this.tokens.links))n=n.substring(r.raw.length),(e=t[t.length-1])&&"text"===r.type&&"text"===e.type?(e.raw+=r.raw,e.text+=r.text):t.push(r);else if(r=this.tokenizer.emStrong(n,l,o))n=n.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.codespan(n))n=n.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.br(n))n=n.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.del(n))n=n.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.autolink(n))n=n.substring(r.raw.length),t.push(r);else if(this.state.inLink||!(r=this.tokenizer.url(n))){if(s=n,this.options.extensions&&this.options.extensions.startInline){let t=1/0;const r=n.slice(1);let i;this.options.extensions.startInline.forEach(e=>{"number"==typeof(i=e.call({lexer:this},r))&&0<=i&&(t=Math.min(t,i))}),t<1/0&&0<=t&&(s=n.substring(0,t+1))}if(r=this.tokenizer.inlineText(s))n=n.substring(r.raw.length),"_"!==r.raw.slice(-1)&&(o=r.raw.slice(-1)),a=!0,(e=t[t.length-1])&&"text"===e.type?(e.raw+=r.raw,e.text+=r.text):t.push(r);else if(n){const t="Infinite loop on byte: "+n.charCodeAt(0);if(this.options.silent){console.error(t);break}throw new Error(t)}}else n=n.substring(r.raw.length),t.push(r);return t}}class L{options;constructor(e){this.options=e||t.defaults}code(e,t,i){t=(t||"").match(/^\S*/)?.[0];return e=e.replace(/\n$/,"")+"\n",t?'<pre><code class="language-'+a(t)+'">'+(i?e:a(e,!0))+"</code></pre>\n":"<pre><code>"+(i?e:a(e,!0))+"</code></pre>\n"}blockquote(e){return`<blockquote>
|
||
${e}</blockquote>
|
||
`}html(e,t){return e}heading(e,t,i){return`<h${t}>${e}</h${t}>
|
||
`}hr(){return"<hr>\n"}list(e,t,i){var n=t?"ol":"ul";return"<"+n+(t&&1!==i?' start="'+i+'"':"")+">\n"+e+"</"+n+">\n"}listitem(e,t,i){return`<li>${e}</li>
|
||
`}checkbox(e){return"<input "+(e?'checked="" ':"")+'disabled="" type="checkbox">'}paragraph(e){return`<p>${e}</p>
|
||
`}table(e,t){return"<table>\n<thead>\n"+e+"</thead>\n"+(t=t&&`<tbody>${t}</tbody>`)+"</table>\n"}tablerow(e){return`<tr>
|
||
${e}</tr>
|
||
`}tablecell(e,t){var i=t.header?"th":"td";return(t.align?`<${i} align="${t.align}">`:`<${i}>`)+e+`</${i}>
|
||
`}strong(e){return`<strong>${e}</strong>`}em(e){return`<em>${e}</em>`}codespan(e){return`<code>${e}</code>`}br(){return"<br>"}del(e){return`<del>${e}</del>`}link(e,t,i){var n=l(e);if(null===n)return i;let r='<a href="'+(e=n)+'"';return t&&(r+=' title="'+t+'"'),r+=">"+i+"</a>"}image(e,t,i){var n=l(e);if(null===n)return i;let r=`<img src="${e=n}" alt="${i}"`;return t&&(r+=` title="${t}"`),r+=">"}text(e){return e}}class R{strong(e){return e}em(e){return e}codespan(e){return e}del(e){return e}html(e){return e}text(e){return e}link(e,t,i){return""+i}image(e,t,i){return""+i}br(){return""}}class M{options;renderer;textRenderer;constructor(e){this.options=e||t.defaults,this.options.renderer=this.options.renderer||new L,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new R}static parse(e,t){return new M(t).parse(e)}static parseInline(e,t){return new M(t).parseInline(e)}parse(n,r=!0){let s="";for(let i=0;i<n.length;i++){var a=n[i];if(this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[a.type]){const n=a,r=this.options.extensions.renderers[n.type].call({parser:this},n);if(!1!==r||!["space","hr","heading","code","table","blockquote","list","html","paragraph","text"].includes(n.type)){s+=r||"";continue}}switch(a.type){case"space":continue;case"hr":s+=this.renderer.hr();continue;case"heading":{const n=a;s+=this.renderer.heading(this.parseInline(n.tokens),n.depth,this.parseInline(n.tokens,this.textRenderer).replace(F,(e,t)=>"colon"===(t=t.toLowerCase())?":":"#"===t.charAt(0)?"x"===t.charAt(1)?String.fromCharCode(parseInt(t.substring(2),16)):String.fromCharCode(+t.substring(1)):""));continue}case"code":{const n=a;s+=this.renderer.code(n.text,n.lang,!!n.escaped);continue}case"table":{const n=a;let e="",t="";for(let e=0;e<n.header.length;e++)t+=this.renderer.tablecell(this.parseInline(n.header[e].tokens),{header:!0,align:n.align[e]});e+=this.renderer.tablerow(t);let i="";for(let e=0;e<n.rows.length;e++){const s=n.rows[e];t="";for(let e=0;e<s.length;e++)t+=this.renderer.tablecell(this.parseInline(s[e].tokens),{header:!1,align:n.align[e]});i+=this.renderer.tablerow(t)}s+=this.renderer.table(e,i);continue}case"blockquote":{const n=a,r=this.parse(n.tokens);s+=this.renderer.blockquote(r);continue}case"list":{const n=a,r=n.ordered,e=n.start,o=n.loose;let i="";for(let t=0;t<n.items.length;t++){const s=n.items[t],l=s.checked,c=s.task;let e="";if(s.task){const n=this.renderer.checkbox(!!l);o?0<s.tokens.length&&"paragraph"===s.tokens[0].type?(s.tokens[0].text=n+" "+s.tokens[0].text,s.tokens[0].tokens&&0<s.tokens[0].tokens.length&&"text"===s.tokens[0].tokens[0].type&&(s.tokens[0].tokens[0].text=n+" "+s.tokens[0].tokens[0].text)):s.tokens.unshift({type:"text",text:n+" "}):e+=n+" "}e+=this.parse(s.tokens,o),i+=this.renderer.listitem(e,c,!!l)}s+=this.renderer.list(i,r,e);continue}case"html":{const n=a;s+=this.renderer.html(n.text,n.block);continue}case"paragraph":{const n=a;s+=this.renderer.paragraph(this.parseInline(n.tokens));continue}case"text":{let e=a,t=e.tokens?this.parseInline(e.tokens):e.text;for(;i+1<n.length&&"text"===n[i+1].type;)e=n[++i],t+="\n"+(e.tokens?this.parseInline(e.tokens):e.text);s+=r?this.renderer.paragraph(t):t;continue}default:{const n='Token with "'+a.type+'" type was not found.';if(this.options.silent)return console.error(n),"";throw new Error(n)}}}return s}parseInline(t,i){i=i||this.renderer;let n="";for(let e=0;e<t.length;e++){var r=t[e];if(this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[r.type]){const t=this.options.extensions.renderers[r.type].call({parser:this},r);if(!1!==t||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(r.type)){n+=t||"";continue}}switch(r.type){case"escape":{const t=r;n+=i.text(t.text);break}case"html":{const t=r;n+=i.html(t.text);break}case"link":{const t=r;n+=i.link(t.href,t.title,this.parseInline(t.tokens,i));break}case"image":{const t=r;n+=i.image(t.href,t.title,t.text);break}case"strong":{const t=r;n+=i.strong(this.parseInline(t.tokens,i));break}case"em":{const t=r;n+=i.em(this.parseInline(t.tokens,i));break}case"codespan":{const t=r;n+=i.codespan(t.text);break}case"br":n+=i.br();break;case"del":{const t=r;n+=i.del(this.parseInline(t.tokens,i));break}case"text":{const t=r;n+=i.text(t.text);break}default:{const t='Token with "'+r.type+'" type was not found.';if(this.options.silent)return console.error(t),"";throw new Error(t)}}}return n}}class I{options;constructor(e){this.options=e||t.defaults}static passThroughHooks=new Set(["preprocess","postprocess","processAllTokens"]);preprocess(e){return e}postprocess(e){return e}processAllTokens(e){return e}}class le{defaults={async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null};options=this.setOptions;parse=this.#e($.lex,M.parse);parseInline=this.#e($.lexInline,M.parseInline);Parser=M;Renderer=L;TextRenderer=R;Lexer=$;Tokenizer=p;Hooks=I;constructor(...e){this.use(...e)}walkTokens(t,i){let n=[];for(const e of t)switch(n=n.concat(i.call(this,e)),e.type){case"table":{const t=e;for(const r of t.header)n=n.concat(this.walkTokens(r.tokens,i));for(const s of t.rows)for(const t of s)n=n.concat(this.walkTokens(t.tokens,i));break}case"list":{const t=e;n=n.concat(this.walkTokens(t.items,i));break}default:{const t=e;this.defaults.extensions?.childTokens?.[t.type]?this.defaults.extensions.childTokens[t.type].forEach(e=>{e=t[e].flat(1/0);n=n.concat(this.walkTokens(e,i))}):t.tokens&&(n=n.concat(this.walkTokens(t.tokens,i)))}}return n}use(...e){const d=this.defaults.extensions||{renderers:{},childTokens:{}};return e.forEach(e=>{const t={...e};if(t.async=this.defaults.async||t.async||!1,e.extensions&&(e.extensions.forEach(i=>{if(!i.name)throw new Error("extension name required");if("renderer"in i){const n=d.renderers[i.name];d.renderers[i.name]=n?function(...e){let t=i.renderer.apply(this,e);return t=!1===t?n.apply(this,e):t}:i.renderer}if("tokenizer"in i){if(!i.level||"block"!==i.level&&"inline"!==i.level)throw new Error("extension level must be 'block' or 'inline'");var e=d[i.level];e?e.unshift(i.tokenizer):d[i.level]=[i.tokenizer],i.start&&("block"===i.level?d.startBlock?d.startBlock.push(i.start):d.startBlock=[i.start]:"inline"===i.level&&(d.startInline?d.startInline.push(i.start):d.startInline=[i.start]))}"childTokens"in i&&i.childTokens&&(d.childTokens[i.name]=i.childTokens)}),t.extensions=d),e.renderer){const d=this.defaults.renderer||new L(this.defaults);for(const t in e.renderer){if(!(t in d))throw new Error(`renderer '${t}' does not exist`);if("options"!==t){const i=t,n=e.renderer[i],r=d[i];d[i]=(...e)=>{let t=n.apply(d,e);return(t=!1===t?r.apply(d,e):t)||""}}}t.renderer=d}if(e.tokenizer){const d=this.defaults.tokenizer||new p(this.defaults);for(const t in e.tokenizer){if(!(t in d))throw new Error(`tokenizer '${t}' does not exist`);if(!["options","rules","lexer"].includes(t)){const s=t,a=e.tokenizer[s],o=d[s];d[s]=(...e)=>{let t=a.apply(d,e);return t=!1===t?o.apply(d,e):t}}}t.tokenizer=d}if(e.hooks){const d=this.defaults.hooks||new I;for(const t in e.hooks){if(!(t in d))throw new Error(`hook '${t}' does not exist`);if("options"!==t){const l=t,c=e.hooks[l],h=d[l];I.passThroughHooks.has(t)?d[l]=e=>{return this.defaults.async?Promise.resolve(c.call(d,e)).then(e=>h.call(d,e)):(e=c.call(d,e),h.call(d,e))}:d[l]=(...e)=>{let t=c.apply(d,e);return t=!1===t?h.apply(d,e):t}}}t.hooks=d}if(e.walkTokens){const d=this.defaults.walkTokens,u=e.walkTokens;t.walkTokens=function(e){let t=[];return t.push(u.call(this,e)),t=d?t.concat(d.call(this,e)):t}}this.defaults={...this.defaults,...t}}),this}setOptions(e){return this.defaults={...this.defaults,...e},this}lexer(e,t){return $.lex(e,t??this.defaults)}parser(e,t){return M.parse(e,t??this.defaults)}#e(r,s){return(i,t)=>{const e={...t},n={...this.defaults,...e};!0===this.defaults.async&&!1===e.async&&(n.silent||console.warn("marked(): The async option was set to true by an extension. The async: false option sent to parse will be ignored."),n.async=!0);t=this.#t(!!n.silent,!!n.async);if(null==i)return t(new Error("marked(): input parameter is undefined or null"));if("string"!=typeof i)return t(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(i)+", string expected"));if(n.hooks&&(n.hooks.options=n),n.async)return Promise.resolve(n.hooks?n.hooks.preprocess(i):i).then(e=>r(e,n)).then(e=>n.hooks?n.hooks.processAllTokens(e):e).then(e=>n.walkTokens?Promise.all(this.walkTokens(e,n.walkTokens)).then(()=>e):e).then(e=>s(e,n)).then(e=>n.hooks?n.hooks.postprocess(e):e).catch(t);try{n.hooks&&(i=n.hooks.preprocess(i));let e=r(i,n),t=(n.hooks&&(e=n.hooks.processAllTokens(e)),n.walkTokens&&this.walkTokens(e,n.walkTokens),s(e,n));return t=n.hooks?n.hooks.postprocess(t):t}catch(e){return t(e)}}}#t(t,i){return e=>{if(e.message+="\nPlease report this to https://github.com/markedjs/marked.",t){const t="<p>An error occurred:</p><pre>"+a(e.message+"",!0)+"</pre>";return i?Promise.resolve(t):t}if(i)return Promise.reject(e);throw e}}}const N=new le;function D(e,t){return N.parse(e,t)}D.options=D.setOptions=function(e){return N.setOptions(e),i(D.defaults=N.defaults),D},D.getDefaults=e,D.defaults=t.defaults,D.use=function(...e){return N.use(...e),i(D.defaults=N.defaults),D},D.walkTokens=function(e,t){return N.walkTokens(e,t)},D.parseInline=N.parseInline,D.Parser=M,D.parser=M.parse,D.Renderer=L,D.TextRenderer=R,D.Lexer=$,D.lexer=$.lex,D.Tokenizer=p,D.Hooks=I;var c=(D.parse=D).options,ce=D.setOptions,he=D.use,ue=D.walkTokens,de=D.parseInline,pe=D,ge=M.parse,fe=$.lex;t.Hooks=I,t.Lexer=$,t.Marked=le,t.Parser=M,t.Renderer=L,t.TextRenderer=R,t.Tokenizer=p,t.getDefaults=e,t.lexer=fe,t.marked=D,t.options=c,t.parse=pe,t.parseInline=de,t.parser=ge,t.setOptions=ce,t.use=he,t.walkTokens=ue}),!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e=e||self).DOMPurify=t()}(this,function(){"use strict";function Ae(){for(var e=arguments.length,t=Array(e),i=0;i<e;i++)t[i]=arguments[i];return u(n,t)}var n,r=Object.hasOwnProperty,s=Object.setPrototypeOf,a=Object.isFrozen,o=Object.getPrototypeOf,l=Object.getOwnPropertyDescriptor,Ee=Object.freeze,e=Object.seal,c=Object.create,t="undefined"!=typeof Reflect&&Reflect,h=(h=t.apply)||function(e,t,i){return e.apply(t,i)},Ee=Ee||function(e){return e},e=e||function(e){return e},u=(u=t.construct)||function(e,t){return new(Function.prototype.bind.apply(e,[null].concat(function(e){if(Array.isArray(e)){for(var t=0,i=Array(e.length);t<e.length;t++)i[t]=e[t];return i}return Array.from(e)}(t))))},$e=d(Array.prototype.forEach),Le=d(Array.prototype.pop),Re=d(Array.prototype.push),Me=d(String.prototype.toLowerCase),Ie=d(String.prototype.match),Ne=d(String.prototype.replace),De=d(String.prototype.indexOf),Ze=d(String.prototype.trim),Oe=d(RegExp.prototype.test);n=TypeError;function d(r){return function(e){for(var t=arguments.length,i=Array(1<t?t-1:0),n=1;n<t;n++)i[n-1]=arguments[n];return h(r,e,i)}}function Pe(e,t){s&&s(e,null);for(var i=t.length;i--;){var n,r=t[i];"string"==typeof r&&(n=Me(r))!==r&&(a(t)||(t[i]=n),r=n),e[r]=!0}return e}function Be(e){var t=c(null),i=void 0;for(i in e)h(r,e,[i])&&(t[i]=e[i]);return t}function Fe(e,t){for(;null!==e;){var i=l(e,t);if(i){if(i.get)return d(i.get);if("function"==typeof i.value)return d(i.value)}e=o(e)}return null}var je=Ee(["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"]),ze=Ee(["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"]),He=Ee(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),Qe=Ee(["animate","color-profile","cursor","discard","fedropshadow","feimage","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"]),Ue=Ee(["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"]),Je=Ee(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),qe=Ee(["#text"]),We=Ee(["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","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"]),Ve=Ee(["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","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"]),Ge=Ee(["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"]),Ye=Ee(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),et=e(/\{\{[\s\S]*|[\s\S]*\}\}/gm),tt=e(/<%[\s\S]*|[\s\S]*%>/gm),it=e(/^data-[\-\w.\u00B7-\uFFFF]/),nt=e(/^aria-[\-\w]+$/),rt=e(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),st=e(/^(?:\w+script|data):/i),at=e(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Xe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};function Ke(e){if(Array.isArray(e)){for(var t=0,i=Array(e.length);t<e.length;t++)i[t]=e[t];return i}return Array.from(e)}return function D(){var o=0<arguments.length&&void 0!==arguments[0]?arguments[0]:"undefined"==typeof window?null:window,h=function(e){return D(e)};if(h.version="2.2.6",h.removed=[],o&&o.document&&9===o.document.nodeType){var l=o.document,s=o.document,O=o.DocumentFragment,e=o.HTMLTemplateElement,c=o.Node,P=o.Element,t=o.NodeFilter,i=o.NamedNodeMap,B=void 0===i?o.NamedNodeMap||o.MozNamedAttrMap:i,F=o.Text,j=o.Comment,z=o.DOMParser,i=o.trustedTypes,n=P.prototype,H=Fe(n,"cloneNode"),U=Fe(n,"nextSibling"),q=Fe(n,"childNodes"),W=Fe(n,"parentNode"),u=("function"==typeof e&&(n=s.createElement("template")).content&&n.content.ownerDocument&&(s=n.content.ownerDocument),function(e,t){if("object"!==(void 0===e?"undefined":Xe(e))||"function"!=typeof e.createPolicy)return null;var i=null,n="data-tt-policy-suffix",t="dompurify"+((i=t.currentScript&&t.currentScript.hasAttribute(n)?t.currentScript.getAttribute(n):i)?"#"+i:"");try{return e.createPolicy(t,{createHTML:function(e){return e}})}catch(e){return console.warn("TrustedTypes policy "+t+" could not be created."),null}}(i,l)),V=u&&_?u.createHTML(""):"",e=s,a=e.implementation,G=e.createNodeIterator,Y=e.getElementsByTagName,X=e.createDocumentFragment,K=l.importNode,n={};try{n=Be(s).documentMode?s.documentMode:{}}catch(D){}var r={},d=(h.isSupported=a&&void 0!==a.createHTMLDocument&&9!==n,et),p=tt,Z=it,Q=nt,J=st,ee=at,g=rt,f=null,te=Pe({},[].concat(Ke(je),Ke(ze),Ke(He),Ke(Ue),Ke(qe))),m=null,ie=Pe({},[].concat(Ke(We),Ke(Ve),Ke(Ge),Ke(Ye))),y=null,ne=null,re=!0,b=!0,se=!1,v=!1,x=!1,w=!1,k=!1,T=!1,S=!1,ae=!0,_=!1,oe=!0,C=!0,A=!1,E={},le=Pe({},["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"]),ce=null,he=Pe({},["audio","video","img","source","image","track"]),$=null,ue=Pe({},["alt","class","for","id","label","name","pattern","placeholder","summary","title","value","style","xmlns"]),L=null,de=s.createElement("form"),pe=function(e){L&&L===e||(e=Be(e=e&&"object"===(void 0===e?"undefined":Xe(e))?e:{}),f="ALLOWED_TAGS"in e?Pe({},e.ALLOWED_TAGS):te,m="ALLOWED_ATTR"in e?Pe({},e.ALLOWED_ATTR):ie,$="ADD_URI_SAFE_ATTR"in e?Pe(Be(ue),e.ADD_URI_SAFE_ATTR):ue,ce="ADD_DATA_URI_TAGS"in e?Pe(Be(he),e.ADD_DATA_URI_TAGS):he,y="FORBID_TAGS"in e?Pe({},e.FORBID_TAGS):{},ne="FORBID_ATTR"in e?Pe({},e.FORBID_ATTR):{},E="USE_PROFILES"in e&&e.USE_PROFILES,re=!1!==e.ALLOW_ARIA_ATTR,b=!1!==e.ALLOW_DATA_ATTR,se=e.ALLOW_UNKNOWN_PROTOCOLS||!1,v=e.SAFE_FOR_TEMPLATES||!1,x=e.WHOLE_DOCUMENT||!1,T=e.RETURN_DOM||!1,S=e.RETURN_DOM_FRAGMENT||!1,ae=!1!==e.RETURN_DOM_IMPORT,_=e.RETURN_TRUSTED_TYPE||!1,k=e.FORCE_BODY||!1,oe=!1!==e.SANITIZE_DOM,C=!1!==e.KEEP_CONTENT,A=e.IN_PLACE||!1,g=e.ALLOWED_URI_REGEXP||g,v&&(b=!1),S&&(T=!0),E&&(f=Pe({},[].concat(Ke(qe))),m=[],!0===E.html&&(Pe(f,je),Pe(m,We)),!0===E.svg&&(Pe(f,ze),Pe(m,Ve),Pe(m,Ye)),!0===E.svgFilters&&(Pe(f,He),Pe(m,Ve),Pe(m,Ye)),!0===E.mathMl)&&(Pe(f,Ue),Pe(m,Ge),Pe(m,Ye)),e.ADD_TAGS&&Pe(f=f===te?Be(f):f,e.ADD_TAGS),e.ADD_ATTR&&Pe(m=m===ie?Be(m):m,e.ADD_ATTR),e.ADD_URI_SAFE_ATTR&&Pe($,e.ADD_URI_SAFE_ATTR),C&&(f["#text"]=!0),x&&Pe(f,["html","head","body"]),f.table&&(Pe(f,["tbody"]),delete y.tbody),Ee&&Ee(e),L=e)},ge=Pe({},["mi","mo","mn","ms","mtext"]),fe=Pe({},["foreignobject","desc","title","annotation-xml"]),R=Pe({},ze),me=(Pe(R,He),Pe(R,Qe),Pe({},Ue)),ye=(Pe(me,Je),"http://www.w3.org/1998/Math/MathML"),be="http://www.w3.org/2000/svg",M="http://www.w3.org/1999/xhtml",ve=function(t){Re(h.removed,{element:t});try{t.parentNode.removeChild(t)}catch(e){try{t.outerHTML=V}catch(e){t.remove()}}},xe=function(e,t){try{Re(h.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){Re(h.removed,{attribute:null,from:t})}t.removeAttribute(e)},we=function(e){var t,i=void 0,n=void 0,r=(k?e="<remove></remove>"+e:n=(r=Ie(e,/^[\r\n\t ]+/))&&r[0],u?u.createHTML(e):e);try{i=(new z).parseFromString(r,"text/html")}catch(e){}return i&&i.documentElement||((t=(i=a.createHTMLDocument("")).body).parentNode.removeChild(t.parentNode.firstElementChild),t.outerHTML=r),e&&n&&i.body.insertBefore(s.createTextNode(n),i.body.childNodes[0]||null),Y.call(i,x?"html":"body")[0]},ke=function(e){return G.call(e.ownerDocument||e,e,t.SHOW_ELEMENT|t.SHOW_COMMENT|t.SHOW_TEXT,function(){return t.FILTER_ACCEPT},!1)},I=function(e){return"object"===(void 0===c?"undefined":Xe(c))?e instanceof c:e&&"object"===(void 0===e?"undefined":Xe(e))&&"number"==typeof e.nodeType&&"string"==typeof e.nodeName},N=function(e,t,i){r[e]&&$e(r[e],function(e){e.call(h,t,i,L)})},Te=function(e){if(N("beforeSanitizeElements",e,null),((a=e)instanceof F||a instanceof j||"string"==typeof a.nodeName&&"string"==typeof a.textContent&&"function"==typeof a.removeChild&&a.attributes instanceof B&&"function"==typeof a.removeAttribute&&"function"==typeof a.setAttribute&&"string"==typeof a.namespaceURI&&"function"==typeof a.insertBefore)&&!Ie(e.nodeName,/[\u0080-\uFFFF]/)){var t,i,n,r,s,a=Me(e.nodeName);if(N("uponSanitizeElement",e,{tagName:a,allowedTags:f}),I(e.firstElementChild)||I(e.content)&&I(e.content.firstElementChild)||!Oe(/<[/\w]/g,e.innerHTML)||!Oe(/<[/\w]/g,e.textContent)){if(f[a]&&!y[a])return(!(e instanceof P)||((n=W(t=e))&&n.tagName||(n={namespaceURI:M,tagName:"template"}),r=Me(t.tagName),s=Me(n.tagName),t.namespaceURI===be?n.namespaceURI===M?"svg"===r:n.namespaceURI===ye?"svg"===r&&("annotation-xml"===s||ge[s]):Boolean(R[r]):t.namespaceURI===ye?n.namespaceURI===M?"math"===r:n.namespaceURI===be?"math"===r&&fe[s]:Boolean(me[r]):t.namespaceURI===M&&!(n.namespaceURI===be&&!fe[s]||n.namespaceURI===ye&&!ge[s]||(i=Pe({},["title","style","font","a","script"]),me[r]))&&(i[r]||!R[r])))&&("noscript"!==a&&"noembed"!==a||!Oe(/<\/no(script|embed)/i,e.innerHTML))?(v&&3===e.nodeType&&(t=e.textContent,t=Ne(t,d," "),t=Ne(t,p," "),e.textContent!==t)&&(Re(h.removed,{element:e.cloneNode()}),e.textContent=t),N("afterSanitizeElements",e,null),!1):(ve(e),!0);if(C&&!le[a])for(var o=W(e),l=q(e),c=l.length-1;0<=c;--c)o.insertBefore(H(l[c],!0),U(e))}}return ve(e),!0},Se=function(e,t,i){if(oe&&("id"===t||"name"===t)&&(i in s||i in de))return!1;if(!(b&&Oe(Z,t)||re&&Oe(Q,t))){if(!m[t]||ne[t])return!1;if(!$[t]&&!Oe(g,Ne(i,ee,""))&&("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==De(i,"data:")||!ce[e])&&(!se||Oe(J,Ne(i,ee,"")))&&i)return!1}return!0},_e=function(e){var t=void 0,i=void 0,n=(N("beforeSanitizeAttributes",e,null),e.attributes);if(n){for(var r={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:m},i=n.length;i--;){o=n[i];var s=o.name,a=o.namespaceURI,t=Ze(o.value),o=Me(s);if(r.attrName=o,r.attrValue=t,r.keepAttr=!0,r.forceKeepAttr=void 0,N("uponSanitizeAttribute",e,r),t=r.attrValue,!r.forceKeepAttr&&(xe(s,e),r.keepAttr))if(Oe(/\/>/i,t))xe(s,e);else{v&&(t=Ne(t,d," "),t=Ne(t,p," "));var l=e.nodeName.toLowerCase();if(Se(l,o,t))try{a?e.setAttributeNS(a,s,t):e.setAttribute(s,t),Le(h.removed)}catch(e){}}}N("afterSanitizeAttributes",e,null)}},Ce=function e(t){var i,n=ke(t);for(N("beforeSanitizeShadowDOM",t,null);i=n.nextNode();)N("uponSanitizeShadowNode",i,null),Te(i)||(i.content instanceof O&&e(i.content),_e(i));N("afterSanitizeShadowDOM",t,null)};h.sanitize=function(e,t){var i,n=void 0,r=void 0,s=void 0;if("string"!=typeof(e=e||"\x3c!--\x3e")&&!I(e)){if("function"!=typeof e.toString)throw Ae("toString is not a function");if("string"!=typeof(e=e.toString()))throw Ae("dirty is not a string, aborting")}if(!h.isSupported){if("object"===Xe(o.toStaticHTML)||"function"==typeof o.toStaticHTML){if("string"==typeof e)return o.toStaticHTML(e);if(I(e))return o.toStaticHTML(e.outerHTML)}return e}if(w||pe(t),h.removed=[],!(A="string"==typeof e?!1:A))if(e instanceof c)1===(t=(n=we("\x3c!----\x3e")).ownerDocument.importNode(e,!0)).nodeType&&"BODY"===t.nodeName||"HTML"===t.nodeName?n=t:n.appendChild(t);else{if(!T&&!v&&!x&&-1===e.indexOf("<"))return u&&_?u.createHTML(e):e;if(!(n=we(e)))return T?null:V}n&&k&&ve(n.firstChild);for(var a=ke(A?e:n);i=a.nextNode();)3===i.nodeType&&i===r||Te(i)||(i.content instanceof O&&Ce(i.content),_e(i),r=i);if(r=null,A)return e;if(T){if(S)for(s=X.call(n.ownerDocument);n.firstChild;)s.appendChild(n.firstChild);else s=n;return s=ae?K.call(l,s,!0):s}t=x?n.outerHTML:n.innerHTML;return v&&(t=Ne(t,d," "),t=Ne(t,p," ")),u&&_?u.createHTML(t):t},h.setConfig=function(e){pe(e),w=!0},h.clearConfig=function(){L=null,w=!1},h.isValidAttribute=function(e,t,i){L||pe({});e=Me(e),t=Me(t);return Se(e,t,i)},h.addHook=function(e,t){"function"==typeof t&&(r[e]=r[e]||[],Re(r[e],t))},h.removeHook=function(e){r[e]&&Le(r[e])},h.removeHooks=function(e){r[e]&&(r[e]=[])},h.removeAllHooks=function(){r={}}}else h.isSupported=!1;return h}()}),!function(){function i(){this.fg=this.bg=null,this.bright=0}var e,t="undefined"!=typeof module,a=[[{color:"0, 0, 0",class:"ansi-black"},{color:"187, 0, 0",class:"ansi-red"},{color:"0, 187, 0",class:"ansi-green"},{color:"187, 187, 0",class:"ansi-yellow"},{color:"0, 0, 187",class:"ansi-blue"},{color:"187, 0, 187",class:"ansi-magenta"},{color:"0, 187, 187",class:"ansi-cyan"},{color:"255,255,255",class:"ansi-white"}],[{color:"85, 85, 85",class:"ansi-bright-black"},{color:"255, 85, 85",class:"ansi-bright-red"},{color:"0, 255, 0",class:"ansi-bright-green"},{color:"255, 255, 85",class:"ansi-bright-yellow"},{color:"85, 85, 255",class:"ansi-bright-blue"},{color:"255, 85, 255",class:"ansi-bright-magenta"},{color:"85, 255, 255",class:"ansi-bright-cyan"},{color:"255, 255, 255",class:"ansi-bright-white"}]];i.prototype.escape_for_html=function(e){return e.replace(/[&<>]/gm,function(e){return"&"==e?"&":"<"==e?"<":">"==e?">":void 0})},i.prototype.linkify=function(e){return e.replace(/(https?:\/\/[^\s]+)/gm,function(e){return'<a href="'+e+'">'+e+"</a>"})},i.prototype.ansi_to_html=function(e,t){var e=e.split(/\033\[/),i=e.shift(),n=this,e=e.map(function(e){return n.process_chunk(e,t)});return e.unshift(i),e.reduce(function(e,t){return Array.isArray(t)?e.concat(t):(e.push(t),e)},[]).join("")},i.prototype.process_chunk=function(e,t){var i,n,t=void 0!==(t=void 0===t?{}:t).use_classes&&t.use_classes,r=t?"class":"color",s=e.match(/([\d;]*)m([^]*)/m);return s?(i=s[2],s=s[1].split(";"),n=this,s.map(function(e){e=parseInt(e);isNaN(e)||0===e?(n.fg=n.bg=null,n.bright=0):1===e?n.bright=1:30<=e&&e<38?n.fg=a[n.bright][e%10][r]:40<=e&&e<48&&(n.bg=a[0][e%10][r])}),null===n.fg&&null===n.bg?i:(s=classes=[],n.fg&&(t?classes.push(n.fg+"-fg"):s.push("color:rgb("+n.fg+")")),n.bg&&(t?classes.push(n.bg+"-bg"):s.push("background-color:rgb("+n.bg+")")),t?['<span class="'+classes.join(" ")+'">',i,"</span>"]:['<span style="'+s.join(";")+'">',i,"</span>"])):e},e={escape_for_html:function(e){return(new i).escape_for_html(e)},linkify:function(e){return(new i).linkify(e)},ansi_to_html:function(e,t){return(new i).ansi_to_html(e,t)},ansi_to_html_obj:function(){return new i}},t&&(module.exports=e),"undefined"!=typeof window&&"undefined"==typeof ender&&(window.ansi_up=e),"function"==typeof define&&define.amd&&define("ansi_up",[],function(){return e})}(Date);var _self="undefined"!=typeof window?window:"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope?self:{},Prism=function(l){var e,t,c=/\blang(?:uage)?-([\w-]+)\b/i,i=0,D={manual:l.Prism&&l.Prism.manual,disableWorkerMessageHandler:l.Prism&&l.Prism.disableWorkerMessageHandler,util:{encode:function e(t){return t instanceof O?new O(t.type,e(t.content),t.alias):Array.isArray(t)?t.map(e):t.replace(/&/g,"&").replace(/</g,"<").replace(/\u00a0/g," ")},type:function(e){return Object.prototype.toString.call(e).slice(8,-1)},objId:function(e){return e.__id||Object.defineProperty(e,"__id",{value:++i}),e.__id},clone:function i(e,n){var r,t;switch(n=n||{},D.util.type(e)){case"Object":if(t=D.util.objId(e),n[t])return n[t];for(var s in r={},n[t]=r,e)e.hasOwnProperty(s)&&(r[s]=i(e[s],n));return r;case"Array":return t=D.util.objId(e),n[t]||(r=[],n[t]=r,e.forEach(function(e,t){r[t]=i(e,n)}),r);default:return e}},getLanguage:function(e){for(;e&&!c.test(e.className);)e=e.parentElement;return e?(e.className.match(c)||[,"none"])[1].toLowerCase():"none"},currentScript:function(){if("undefined"==typeof document)return null;if("currentScript"in document)return document.currentScript;try{throw new Error}catch(e){var t=(/at [^(\r\n]*\((.*):.+:.+\)$/i.exec(e.stack)||[])[1];if(t){var i,n=document.getElementsByTagName("script");for(i in n)if(n[i].src==t)return n[i]}return null}},isActive:function(e,t,i){for(var n="no-"+t;e;){var r=e.classList;if(r.contains(t))return!0;if(r.contains(n))return!1;e=e.parentElement}return!!i}},languages:{extend:function(e,t){var i,n=D.util.clone(D.languages[e]);for(i in t)n[i]=t[i];return n},insertBefore:function(i,e,t,n){var r,s=(n=n||D.languages)[i],a={};for(r in s)if(s.hasOwnProperty(r)){if(r==e)for(var o in t)t.hasOwnProperty(o)&&(a[o]=t[o]);t.hasOwnProperty(r)||(a[r]=s[r])}var l=n[i];return n[i]=a,D.languages.DFS(D.languages,function(e,t){t===l&&e!=i&&(this[e]=a)}),a},DFS:function e(t,i,n,r){r=r||{};var s,a,o,l=D.util.objId;for(s in t)t.hasOwnProperty(s)&&(i.call(t,s,t[s],n||s),a=t[s],"Object"!==(o=D.util.type(a))||r[l(a)]?"Array"!==o||r[l(a)]||(r[l(a)]=!0,e(a,i,s,r)):(r[l(a)]=!0,e(a,i,null,r)))}},plugins:{},highlightAll:function(e,t){D.highlightAllUnder(document,e,t)},highlightAllUnder:function(e,t,i){var n={callback:i,container:e,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};D.hooks.run("before-highlightall",n),n.elements=Array.prototype.slice.apply(n.container.querySelectorAll(n.selector)),D.hooks.run("before-all-elements-highlight",n);for(var r,s=0;r=n.elements[s++];)D.highlightElement(r,!0===t,n.callback)},highlightElement:function(e,t,i){var n=D.util.getLanguage(e),r=D.languages[n],s=(e.className=e.className.replace(c,"").replace(/\s+/g," ")+" language-"+n,e.parentElement),a=(s&&"pre"===s.nodeName.toLowerCase()&&(s.className=s.className.replace(c,"").replace(/\s+/g," ")+" language-"+n),{element:e,language:n,grammar:r,code:e.textContent});function o(e){a.highlightedCode=e,D.hooks.run("before-insert",a),a.element.innerHTML=a.highlightedCode,D.hooks.run("after-highlight",a),D.hooks.run("complete",a),i&&i.call(a.element)}D.hooks.run("before-sanity-check",a),a.code?(D.hooks.run("before-highlight",a),a.grammar?t&&l.Worker?((s=new Worker(D.filename)).onmessage=function(e){o(e.data)},s.postMessage(JSON.stringify({language:a.language,code:a.code,immediateClose:!0}))):o(D.highlight(a.code,a.grammar,a.language)):o(D.util.encode(a.code))):(D.hooks.run("complete",a),i&&i.call(a.element))},highlight:function(e,t,i){e={code:e,grammar:t,language:i};return D.hooks.run("before-tokenize",e),e.tokens=D.tokenize(e.code,e.grammar),D.hooks.run("after-tokenize",e),O.stringify(D.util.encode(e.tokens),e.language)},tokenize:function(e,t){var i=t.rest;if(i){for(var n in i)t[n]=i[n];delete t.rest}for(var r=new h,s=(P(r,r.head,e),function e(t,i,n,r,s,a){for(var o in n)if(n.hasOwnProperty(o)&&n[o])for(var l=n[o],l=Array.isArray(l)?l:[l],c=0;c<l.length;++c){if(a&&a.cause==o+","+c)return;var h,u=l[c],d=u.inside,p=!!u.lookbehind,g=!!u.greedy,f=0,m=u.alias;g&&!u.pattern.global&&(h=u.pattern.toString().match(/[imsuy]*$/)[0],u.pattern=RegExp(u.pattern.source,h+"g"));for(var y=u.pattern||u,b=r.next,v=s;b!==i.tail&&!(a&&v>=a.reach);v+=b.value.length,b=b.next){var x=b.value;if(i.length>t.length)return;if(!(x instanceof O)){var w=1;if(g&&b!=i.tail.prev){if(y.lastIndex=v,!(C=y.exec(t)))break;var k=C.index+(p&&C[1]?C[1].length:0),T=C.index+C[0].length,S=v;for(S+=b.value.length;S<=k;)S+=(b=b.next).value.length;if(v=S-=b.value.length,b.value instanceof O)continue;for(var _=b;_!==i.tail&&(S<T||"string"==typeof _.value);_=_.next)w++,S+=_.value.length;w--,x=t.slice(v,S),C.index-=v}else{y.lastIndex=0;var C=y.exec(x)}if(C){p&&(f=C[1]?C[1].length:0);for(var k=C.index+f,A=C[0].slice(f),T=k+A.length,E=x.slice(0,k),$=x.slice(T),x=v+x.length,L=(a&&x>a.reach&&(a.reach=x),b.prev),R=(E&&(L=P(i,L,E),v+=E.length),N=I=M=E=R=void 0,i),E=L,M=w,I=E.next,N=0;N<M&&I!==R.tail;N++)I=I.next;(E.next=I).prev=E,R.length-=N;b=P(i,L,new O(o,d?D.tokenize(A,d):A,m,A));$&&P(i,b,$),1<w&&e(t,i,n,b.prev,v,{cause:o+","+c,reach:x})}}}}}(e,r,t,r.head,0),r),a=[],o=s.head.next;o!==s.tail;)a.push(o.value),o=o.next;return a},hooks:{all:{},add:function(e,t){var i=D.hooks.all;i[e]=i[e]||[],i[e].push(t)},run:function(e,t){var i=D.hooks.all[e];if(i&&i.length)for(var n,r=0;n=i[r++];)n(t)}},Token:O};function O(e,t,i,n){this.type=e,this.content=t,this.alias=i,this.length=0|(n||"").length}function h(){var e={value:null,prev:null,next:null},t={value:null,prev:e,next:null};e.next=t,this.head=e,this.tail=t,this.length=0}function P(e,t,i){var n=t.next,i={value:i,prev:t,next:n};return t.next=i,n.prev=i,e.length++,i}return(l.Prism=D,O.stringify=function t(e,i){if("string"==typeof e)return e;var n;if(Array.isArray(e))return n="",e.forEach(function(e){n+=t(e,i)}),n;var r,s={type:e.type,content:t(e.content,i),tag:"span",classes:["token",e.type],attributes:{},language:i},e=e.alias,a=(e&&(Array.isArray(e)?Array.prototype.push.apply(s.classes,e):s.classes.push(e)),D.hooks.run("wrap",s),"");for(r in s.attributes)a+=" "+r+'="'+(s.attributes[r]||"").replace(/"/g,""")+'"';return"<"+s.tag+' class="'+s.classes.join(" ")+'"'+a+">"+s.content+"</"+s.tag+">"},l.document)?((e=D.util.currentScript())&&(D.filename=e.src,e.hasAttribute("data-manual"))&&(D.manual=!0),D.manual||("loading"===(t=document.readyState)||"interactive"===t&&e&&e.defer?document.addEventListener("DOMContentLoaded",n):window.requestAnimationFrame?window.requestAnimationFrame(n):window.setTimeout(n,16))):l.addEventListener&&!D.disableWorkerMessageHandler&&l.addEventListener("message",function(e){var e=JSON.parse(e.data),t=e.language,i=e.code,e=e.immediateClose;l.postMessage(D.highlight(i,D.languages[t],t)),e&&l.close()},!1),D;function n(){D.manual||D.highlightAll()}}(_self),__esbuild_esm_mermaid_nm;function markedMermaid(e){return{extensions:[{name:"mermaid",level:"block",start(e){return e.match(/^```mermaid/m)?.index},tokenizer(e,t){e=/^```mermaid\n([\s\S]*?)\n```/.exec(e);if(e)return{type:"mermaid",raw:e[0],text:e[1].trim()}},renderer(e){const t="mermaid-"+Math.random().toString(36).substr(2,9);"undefined"==typeof mermaid||window.mermaidInitialized||(mermaid.initialize({startOnLoad:!1,theme:"default",securityLevel:"loose"}),window.mermaidInitialized=!0);e=`<div class="mermaid" id="${t}">${e.text}</div>`;return setTimeout(()=>{if("undefined"!=typeof mermaid)try{var e=document.getElementById(t);e&&!e.getAttribute("data-processed")&&(mermaid.init(void 0,e),e.setAttribute("data-processed","true"))}catch(e){console.error("Mermaid rendering error:",e)}},0),e}}]}}"undefined"!=typeof module&&module.exports&&(module.exports=Prism),"undefined"!=typeof global&&(global.Prism=Prism),Prism.languages.markup={comment:/<!--[\s\S]*?-->/,prolog:/<\?[\s\S]+?\?>/,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/,name:/[^\s<>'"]+/}},cdata:/<!\[CDATA\[[\s\S]*?]]>/i,tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}},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(e){"entity"===e.type&&(e.attributes.title=e.content.replace(/&/,"&"))}),Object.defineProperty(Prism.languages.markup.tag,"addInlined",{value:function(e,t){var i={},i=(i["language-"+t]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:Prism.languages[t]},i.cdata=/^<!\[CDATA\[|\]\]>$/i,{"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:i}}),t=(i["language-"+t]={pattern:/[\s\S]+/,inside:Prism.languages[t]},{});t[e]={pattern:RegExp("(<__[^]*?>)(?:<!\\[CDATA\\[(?:[^\\]]|\\](?!\\]>))*\\]\\]>|(?!<!\\[CDATA\\[)[^])*?(?=</__>)".replace(/__/g,function(){return e}),"i"),lookbehind:!0,greedy:!0,inside:i},Prism.languages.insertBefore("markup","cdata",t)}}),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,Prism.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|interface|extends|implements|trait|instanceof|new)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:if|else|while|do|for|return|in|instanceof|function|new|try|throw|catch|finally|null|break|continue)\b/,boolean:/\b(?:true|false)\b/,function:/\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+\.?\d*|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/},Prism.languages.javascript=Prism.languages.extend("clike",{"class-name":[Prism.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])[_$A-Z\xA0-\uFFFF][$\w\xA0-\uFFFF]*(?=\.(?:prototype|constructor))/,lookbehind:!0}],keyword:[{pattern:/((?:^|})\s*)(?:catch|finally)\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|for|from|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}],number:/\b(?:(?:0[xX](?:[\dA-Fa-f](?:_[\dA-Fa-f])?)+|0[bB](?:[01](?:_[01])?)+|0[oO](?:[0-7](?:_[0-7])?)+)n?|(?:\d(?:_\d)?)+n|NaN|Infinity)\b|(?:\b(?:\d(?:_\d)?)+\.?(?:\d(?:_\d)?)*|\B\.(?:\d(?:_\d)?)+)(?:[Ee][+-]?(?:\d(?:_\d)?)+)?/,function:/#?[_$a-zA-Z\xA0-\uFFFF][$\w\xA0-\uFFFF]*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),Prism.languages.javascript["class-name"][0].pattern=/(\b(?:class|interface|extends|implements|instanceof|new)\s+)[\w.\\]+/,Prism.languages.insertBefore("javascript","keyword",{regex:{pattern:/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)\/(?:\[(?:[^\]\\\r\n]|\\.)*]|\\.|[^/\\\[\r\n])+\/[gimyus]{0,6}(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/,lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:Prism.languages.regex},"regex-flags":/[a-z]+$/,"regex-delimiter":/^\/|\/$/}},"function-variable":{pattern:/#?[_$a-zA-Z\xA0-\uFFFF][$\w\xA0-\uFFFF]*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|[_$a-zA-Z\xA0-\uFFFF][$\w\xA0-\uFFFF]*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+[_$A-Za-z\xA0-\uFFFF][$\w\xA0-\uFFFF]*)?\s*\(\s*)(?!\s)(?:[^()]|\([^()]*\))+?(?=\s*\))/,lookbehind:!0,inside:Prism.languages.javascript},{pattern:/[_$a-z\xA0-\uFFFF][$\w\xA0-\uFFFF]*(?=\s*=>)/i,inside:Prism.languages.javascript},{pattern:/(\(\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]))(?:[_$A-Za-z\xA0-\uFFFF][$\w\xA0-\uFFFF]*\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",{"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]+/}}}),Prism.languages.markup&&Prism.languages.markup.tag.addInlined("script","javascript"),Prism.languages.js=Prism.languages.javascript,Prism.languages.julia={comment:{pattern:/(^|[^\\])(?:#=(?:[^#=]|=(?!#)|#(?!=)|#=(?:[^#=]|=(?!#)|#(?!=))*=#)*=#|#.*)/,lookbehind:!0},regex:{pattern:/r"(?:\\.|[^"\\\r\n])*"[imsx]{0,4}/,greedy:!0},string:{pattern:/"""[\s\S]+?"""|\w*"(?:\\.|[^"\\\r\n])*"|(^|[^\w'])'(?:\\[^\r\n][^'\r\n]*|[^\\\r\n])'|`(?:[^\\`\r\n]|\\.)*`/,lookbehind:!0,greedy:!0},keyword:/\b(?:abstract|baremodule|begin|bitstype|break|catch|ccall|const|continue|do|else|elseif|end|export|finally|for|function|global|if|immutable|import|importall|in|let|local|macro|module|print|println|quote|return|struct|try|type|typealias|using|while)\b/,boolean:/\b(?:true|false)\b/,number:/(?:\b(?=\d)|\B(?=\.))(?:0[box])?(?:[\da-f]+(?:_[\da-f]+)*\.?(?:\d+(?:_\d+)*)?|\.\d+(?:_\d+)*)(?:[efp][+-]?\d+(?:_\d+)*)?j?/i,operator:/&&|\|\||[-+*^%÷⊻&$\\]=?|\/[\/=]?|!=?=?|\|[=>]?|<(?:<=?|[=:|])?|>(?:=|>>?=?)?|==?=?|[~≠≤≥'√∛]/,punctuation:/::?|[{}[\]();,.?]/,constant:/\b(?:(?:NaN|Inf)(?:16|32|64)?|im|pi|e|catalan|eulergamma|golden)\b|[πℯγφ]/},Prism.languages.python={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0},"string-interpolation":{pattern:/(?:f|rf|fr)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^{])(?:{{)*){(?!{)(?:[^{}]|{(?!{)(?:[^{}]|{(?!{)(?:[^{}])+})+})+}/,lookbehind:!0,inside:{"format-spec":{pattern:/(:)[^:(){}]+(?=}$)/,lookbehind:!0},"conversion-option":{pattern://,alias:"punctuation"},rest:null}},string:/[\s\S]+/}},"triple-quoted-string":{pattern:/(?:[rub]|rb|br)?("""|''')[\s\S]*?\1/i,greedy:!0,alias:"string"},string:{pattern:/(?:[rub]|rb|br)?("|')(?:\\.|(?!\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:/(^\s*)@\w+(?:\.\w+)*/im,lookbehind:!0,alias:["annotation","punctuation"],inside:{punctuation:/\./}},keyword:/\b(?:and|as|assert|async|await|break|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|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(?:True|False|None)\b/,number:/(?:\b(?=\d)|\B(?=\.))(?:0[bo])?(?:(?:\d|0x[\da-f])[\da-f]*\.?\d*|\.\d+)(?:e[+-]?\d+)?j?\b/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(?:TRUE|FALSE)\b/,ellipsis:/\.\.(?:\.|\d+)/,number:[/\b(?:NaN|Inf)\b/,/(?:\b0x[\dA-Fa-f]+(?:\.\d*)?|\b\d+\.?\d*|\B\.\d+)(?:[EePp][+-]?\d+)?[iL]?/],keyword:/\b(?:if|else|repeat|while|function|for|in|next|break|NULL|NA|NA_integer_|NA_real_|NA_complex_|NA_character_)\b/,operator:/->?>?|<(?:=|<?-)?|[>=!]=?|::?|&&?|\|\|?|[+*\/^$@~]/,punctuation:/[(){}\[\],;]/},!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.katex=t():e.katex=t()}("undefined"!=typeof self?self:this,function(){"use strict";var O={d:function(e,t){for(var i in t)O.o(t,i)&&!O.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},o:function(e,t){return Object.prototype.hasOwnProperty.call(e,t)}},t={};O.d(t,{default:function(){return _n}});class P{constructor(e,t){this.name=void 0,this.position=void 0,this.length=void 0,this.rawMessage=void 0;let i,n,r="KaTeX parse error: "+e;var s=t&&t.loc;if(s&&s.start<=s.end){const e=s.lexer.input,t=(i=s.start,n=s.end,i===e.length?r+=" at end of input: ":r+=" at position "+(i+1)+": ",e.slice(i,n).replace(/[^]/g,"$&̲"));var s=15<i?"…"+e.slice(i-15,i):e.slice(0,i),a=n+15<e.length?e.slice(n,n+15)+"…":e.slice(n);r+=s+t+a}t=new Error(r);return t.name="ParseError",t.__proto__=P.prototype,null!=(t.position=i)&&null!=n&&(t.length=n-i),t.rawMessage=e,t}}P.prototype.__proto__=Error.prototype;var _=P;function B(e){return"ordgroup"===e.type||"color"===e.type?1===e.body.length?B(e.body[0]):e:"font"===e.type?B(e.body):e}const F=/([A-Z])/g,j={"&":"&",">":">","<":"<",'"':""","'":"'"},z=/[&><"']/g;var C={contains:function(e,t){return-1!==e.indexOf(t)},deflt:function(e,t){return void 0===e?t:e},escape:function(e){return String(e).replace(z,e=>j[e])},hyphenate:function(e){return e.replace(F,"-$1").toLowerCase()},getBaseElem:B,isCharacterBox:function(e){e=B(e);return"mathord"===e.type||"textord"===e.type||"atom"===e.type},protocolFromUrl:function(e){e=/^[\x00-\x20]*([^\\/#?]*?)(:|�*58|�*3a|&colon)/i.exec(e);return e?":"===e[2]&&/^[a-zA-Z][a-zA-Z0-9+\-.]*$/.test(e[1])?e[1].toLowerCase():null:"_relative"}};const H={displayMode:{type:"boolean",description:"Render math in display mode, which puts the math in display style (so \\int and \\sum are large, for example), and centers the math on the page on its own line.",cli:"-d, --display-mode"},output:{type:{enum:["htmlAndMathml","html","mathml"]},description:"Determines the markup language of the output.",cli:"-F, --format <type>"},leqno:{type:"boolean",description:"Render display math in leqno style (left-justified tags)."},fleqn:{type:"boolean",description:"Render display math flush left."},throwOnError:{type:"boolean",default:!0,cli:"-t, --no-throw-on-error",cliDescription:"Render errors (in the color given by --error-color) instead of throwing a ParseError exception when encountering an error."},errorColor:{type:"string",default:"#cc0000",cli:"-c, --error-color <color>",cliDescription:"A color string given in the format 'rgb' or 'rrggbb' (no #). This option determines the color of errors rendered by the -t option.",cliProcessor:e=>"#"+e},macros:{type:"object",cli:"-m, --macro <def>",cliDescription:"Define custom macro of the form '\\foo:expansion' (use multiple -m arguments for multiple macros).",cliDefault:[],cliProcessor:(e,t)=>(t.push(e),t)},minRuleThickness:{type:"number",description:"Specifies a minimum thickness, in ems, for fraction lines, `\\sqrt` top lines, `{array}` vertical lines, `\\hline`, `\\hdashline`, `\\underline`, `\\overline`, and the borders of `\\fbox`, `\\boxed`, and `\\fcolorbox`.",processor:e=>Math.max(0,e),cli:"--min-rule-thickness <size>",cliProcessor:parseFloat},colorIsTextColor:{type:"boolean",description:"Makes \\color behave like LaTeX's 2-argument \\textcolor, instead of LaTeX's one-argument \\color mode change.",cli:"-b, --color-is-text-color"},strict:{type:[{enum:["warn","ignore","error"]},"boolean","function"],description:"Turn on strict / LaTeX faithfulness mode, which throws an error if the input uses features that are not supported by LaTeX.",cli:"-S, --strict",cliDefault:!1},trust:{type:["boolean","function"],description:"Trust the input, enabling all HTML features such as \\url.",cli:"-T, --trust"},maxSize:{type:"number",default:1/0,description:"If non-zero, all user-specified sizes, e.g. in \\rule{500em}{500em}, will be capped to maxSize ems. Otherwise, elements and spaces can be arbitrarily large",processor:e=>Math.max(0,e),cli:"-s, --max-size <n>",cliProcessor:parseInt},maxExpand:{type:"number",default:1e3,description:"Limit the number of macro expansions to the specified number, to prevent e.g. infinite macro loops. If set to Infinity, the macro expander will try to fully expand as in LaTeX.",processor:e=>Math.max(0,e),cli:"-e, --max-expand <n>",cliProcessor:e=>"Infinity"===e?1/0:parseInt(e)},globalGroup:{type:"boolean",cli:!1}};class U{constructor(e){this.displayMode=void 0,this.output=void 0,this.leqno=void 0,this.fleqn=void 0,this.throwOnError=void 0,this.errorColor=void 0,this.macros=void 0,this.minRuleThickness=void 0,this.colorIsTextColor=void 0,this.strict=void 0,this.trust=void 0,this.maxSize=void 0,this.maxExpand=void 0,this.globalGroup=void 0,e=e||{};for(const i in H){var t;H.hasOwnProperty(i)&&(t=H[i],this[i]=void 0!==e[i]?t.processor?t.processor(e[i]):e[i]:function(e){if(e.default)return e.default;if(e=e.type,"string"!=typeof(e=Array.isArray(e)?e[0]:e))return e.enum[0];switch(e){case"boolean":return!1;case"string":return"";case"number":return 0;case"object":return{}}}(t))}}reportNonstrict(e,t,i){let n=this.strict;if((n="function"==typeof n?n(e,t,i):n)&&"ignore"!==n){if(!0===n||"error"===n)throw new _("LaTeX-incompatible input and strict mode is set to 'error': "+t+" ["+e+"]",i);"warn"===n?"undefined"!=typeof console&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+t+" ["+e+"]"):"undefined"!=typeof console&&console.warn("LaTeX-incompatible input and strict mode is set to unrecognized '"+n+"': "+t+" ["+e+"]")}}useStrictBehavior(e,t,i){let n=this.strict;if("function"==typeof n)try{n=n(e,t,i)}catch(e){n="error"}return!(!n||"ignore"===n||!0!==n&&"error"!==n&&("warn"===n?"undefined"!=typeof console&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+t+" ["+e+"]"):"undefined"!=typeof console&&console.warn("LaTeX-incompatible input and strict mode is set to unrecognized '"+n+"': "+t+" ["+e+"]"),1))}isTrusted(e){if(e.url&&!e.protocol){const t=C.protocolFromUrl(e.url);if(null==t)return!1;e.protocol=t}const t="function"==typeof this.trust?this.trust(e):this.trust;return Boolean(t)}}class q{constructor(e,t,i){this.id=void 0,this.size=void 0,this.cramped=void 0,this.id=e,this.size=t,this.cramped=i}sup(){return W[V[this.id]]}sub(){return W[G[this.id]]}fracNum(){return W[Y[this.id]]}fracDen(){return W[X[this.id]]}cramp(){return W[K[this.id]]}text(){return W[Z[this.id]]}isTight(){return 2<=this.size}}const W=[new q(0,0,!1),new q(1,0,!0),new q(2,1,!1),new q(3,1,!0),new q(4,2,!1),new q(5,2,!0),new q(6,3,!1),new q(7,3,!0)],V=[4,5,4,5,6,7,6,7],G=[5,5,5,5,7,7,7,7],Y=[2,3,4,5,6,7,6,7],X=[3,3,5,5,7,7,7,7],K=[1,1,3,3,5,5,7,7],Z=[0,1,2,3,2,3,2,3];var A={DISPLAY:W[0],TEXT:W[2],SCRIPT:W[4],SCRIPTSCRIPT:W[6]};const Q=[{name:"latin",blocks:[[256,591],[768,879]]},{name:"cyrillic",blocks:[[1024,1279]]},{name:"armenian",blocks:[[1328,1423]]},{name:"brahmic",blocks:[[2304,4255]]},{name:"georgian",blocks:[[4256,4351]]},{name:"cjk",blocks:[[12288,12543],[19968,40879],[65280,65376]]},{name:"hangul",blocks:[[44032,55215]]}],J=[];function ee(t){for(let e=0;e<J.length;e+=2)if(t>=J[e]&&t<=J[e+1])return 1}Q.forEach(e=>e.blocks.forEach(e=>J.push(...e)));const te={doubleleftarrow:"M262 157\nl10-10c34-36 62.7-77 86-123 3.3-8 5-13.3 5-16 0-5.3-6.7-8-20-8-7.3\n 0-12.2.5-14.5 1.5-2.3 1-4.8 4.5-7.5 10.5-49.3 97.3-121.7 169.3-217 216-28\n 14-57.3 25-88 33-6.7 2-11 3.8-13 5.5-2 1.7-3 4.2-3 7.5s1 5.8 3 7.5\nc2 1.7 6.3 3.5 13 5.5 68 17.3 128.2 47.8 180.5 91.5 52.3 43.7 93.8 96.2 124.5\n 157.5 9.3 8 15.3 12.3 18 13h6c12-.7 18-4 18-10 0-2-1.7-7-5-15-23.3-46-52-87\n-86-123l-10-10h399738v-40H218c328 0 0 0 0 0l-10-8c-26.7-20-65.7-43-117-69 2.7\n-2 6-3.7 10-5 36.7-16 72.3-37.3 107-64l10-8h399782v-40z\nm8 0v40h399730v-40zm0 194v40h399730v-40z",doublerightarrow:"M399738 392l\n-10 10c-34 36-62.7 77-86 123-3.3 8-5 13.3-5 16 0 5.3 6.7 8 20 8 7.3 0 12.2-.5\n 14.5-1.5 2.3-1 4.8-4.5 7.5-10.5 49.3-97.3 121.7-169.3 217-216 28-14 57.3-25 88\n-33 6.7-2 11-3.8 13-5.5 2-1.7 3-4.2 3-7.5s-1-5.8-3-7.5c-2-1.7-6.3-3.5-13-5.5-68\n-17.3-128.2-47.8-180.5-91.5-52.3-43.7-93.8-96.2-124.5-157.5-9.3-8-15.3-12.3-18\n-13h-6c-12 .7-18 4-18 10 0 2 1.7 7 5 15 23.3 46 52 87 86 123l10 10H0v40h399782\nc-328 0 0 0 0 0l10 8c26.7 20 65.7 43 117 69-2.7 2-6 3.7-10 5-36.7 16-72.3 37.3\n-107 64l-10 8H0v40zM0 157v40h399730v-40zm0 194v40h399730v-40z",leftarrow:"M400000 241H110l3-3c68.7-52.7 113.7-120\n 135-202 4-14.7 6-23 6-25 0-7.3-7-11-21-11-8 0-13.2.8-15.5 2.5-2.3 1.7-4.2 5.8\n-5.5 12.5-1.3 4.7-2.7 10.3-4 17-12 48.7-34.8 92-68.5 130S65.3 228.3 18 247\nc-10 4-16 7.7-18 11 0 8.7 6 14.3 18 17 47.3 18.7 87.8 47 121.5 85S196 441.3 208\n 490c.7 2 1.3 5 2 9s1.2 6.7 1.5 8c.3 1.3 1 3.3 2 6s2.2 4.5 3.5 5.5c1.3 1 3.3\n 1.8 6 2.5s6 1 10 1c14 0 21-3.7 21-11 0-2-2-10.3-6-25-20-79.3-65-146.7-135-202\n l-3-3h399890zM100 241v40h399900v-40z",leftbrace:"M6 548l-6-6v-35l6-11c56-104 135.3-181.3 238-232 57.3-28.7 117\n-45 179-50h399577v120H403c-43.3 7-81 15-113 26-100.7 33-179.7 91-237 174-2.7\n 5-6 9-10 13-.7 1-7.3 1-20 1H6z",leftbraceunder:"M0 6l6-6h17c12.688 0 19.313.3 20 1 4 4 7.313 8.3 10 13\n 35.313 51.3 80.813 93.8 136.5 127.5 55.688 33.7 117.188 55.8 184.5 66.5.688\n 0 2 .3 4 1 18.688 2.7 76 4.3 172 5h399450v120H429l-6-1c-124.688-8-235-61.7\n-331-161C60.687 138.7 32.312 99.3 7 54L0 41V6z",leftgroup:"M400000 80\nH435C64 80 168.3 229.4 21 260c-5.9 1.2-18 0-18 0-2 0-3-1-3-3v-38C76 61 257 0\n 435 0h399565z",leftgroupunder:"M400000 262\nH435C64 262 168.3 112.6 21 82c-5.9-1.2-18 0-18 0-2 0-3 1-3 3v38c76 158 257 219\n 435 219h399565z",leftharpoon:"M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3\n-3.3 10.2-9.5 20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5\n-18.3 3-21-1.3-4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7\n-196 228-6.7 4.7-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40z",leftharpoonplus:"M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3-3.3 10.2-9.5\n 20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5-18.3 3-21-1.3\n-4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7-196 228-6.7 4.7\n-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40zM0 435v40h400000v-40z\nm0 0v40h400000v-40z",leftharpoondown:"M7 241c-4 4-6.333 8.667-7 14 0 5.333.667 9 2 11s5.333\n 5.333 12 10c90.667 54 156 130 196 228 3.333 10.667 6.333 16.333 9 17 2 .667 5\n 1 9 1h5c10.667 0 16.667-2 18-6 2-2.667 1-9.667-3-21-32-87.333-82.667-157.667\n-152-211l-3-3h399907v-40zM93 281 H400000 v-40L7 241z",leftharpoondownplus:"M7 435c-4 4-6.3 8.7-7 14 0 5.3.7 9 2 11s5.3 5.3 12\n 10c90.7 54 156 130 196 228 3.3 10.7 6.3 16.3 9 17 2 .7 5 1 9 1h5c10.7 0 16.7\n-2 18-6 2-2.7 1-9.7-3-21-32-87.3-82.7-157.7-152-211l-3-3h399907v-40H7zm93 0\nv40h399900v-40zM0 241v40h399900v-40zm0 0v40h399900v-40z",lefthook:"M400000 281 H103s-33-11.2-61-33.5S0 197.3 0 164s14.2-61.2 42.5\n-83.5C70.8 58.2 104 47 142 47 c16.7 0 25 6.7 25 20 0 12-8.7 18.7-26 20-40 3.3\n-68.7 15.7-86 37-10 12-15 25.3-15 40 0 22.7 9.8 40.7 29.5 54 19.7 13.3 43.5 21\n 71.5 23h399859zM103 281v-40h399897v40z",leftlinesegment:"M40 281 V428 H0 V94 H40 V241 H400000 v40z\nM40 281 V428 H0 V94 H40 V241 H400000 v40z",leftmapsto:"M40 281 V448H0V74H40V241H400000v40z\nM40 281 V448H0V74H40V241H400000v40z",leftToFrom:"M0 147h400000v40H0zm0 214c68 40 115.7 95.7 143 167h22c15.3 0 23\n-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69-70-101l-7-8h399905v-40H95l7-8\nc28.7-32 52-65.7 70-101 10.7-23.3 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 265.3\n 68 321 0 361zm0-174v-40h399900v40zm100 154v40h399900v-40z",longequal:"M0 50 h400000 v40H0z m0 194h40000v40H0z\nM0 50 h400000 v40H0z m0 194h40000v40H0z",midbrace:"M200428 334\nc-100.7-8.3-195.3-44-280-108-55.3-42-101.7-93-139-153l-9-14c-2.7 4-5.7 8.7-9 14\n-53.3 86.7-123.7 153-211 199-66.7 36-137.3 56.3-212 62H0V214h199568c178.3-11.7\n 311.7-78.3 403-201 6-8 9.7-12 11-12 .7-.7 6.7-1 18-1s17.3.3 18 1c1.3 0 5 4 11\n 12 44.7 59.3 101.3 106.3 170 141s145.3 54.3 229 60h199572v120z",midbraceunder:"M199572 214\nc100.7 8.3 195.3 44 280 108 55.3 42 101.7 93 139 153l9 14c2.7-4 5.7-8.7 9-14\n 53.3-86.7 123.7-153 211-199 66.7-36 137.3-56.3 212-62h199568v120H200432c-178.3\n 11.7-311.7 78.3-403 201-6 8-9.7 12-11 12-.7.7-6.7 1-18 1s-17.3-.3-18-1c-1.3 0\n-5-4-11-12-44.7-59.3-101.3-106.3-170-141s-145.3-54.3-229-60H0V214z",oiintSize1:"M512.6 71.6c272.6 0 320.3 106.8 320.3 178.2 0 70.8-47.7 177.6\n-320.3 177.6S193.1 320.6 193.1 249.8c0-71.4 46.9-178.2 319.5-178.2z\nm368.1 178.2c0-86.4-60.9-215.4-368.1-215.4-306.4 0-367.3 129-367.3 215.4 0 85.8\n60.9 214.8 367.3 214.8 307.2 0 368.1-129 368.1-214.8z",oiintSize2:"M757.8 100.1c384.7 0 451.1 137.6 451.1 230 0 91.3-66.4 228.8\n-451.1 228.8-386.3 0-452.7-137.5-452.7-228.8 0-92.4 66.4-230 452.7-230z\nm502.4 230c0-111.2-82.4-277.2-502.4-277.2s-504 166-504 277.2\nc0 110 84 276 504 276s502.4-166 502.4-276z",oiiintSize1:"M681.4 71.6c408.9 0 480.5 106.8 480.5 178.2 0 70.8-71.6 177.6\n-480.5 177.6S202.1 320.6 202.1 249.8c0-71.4 70.5-178.2 479.3-178.2z\nm525.8 178.2c0-86.4-86.8-215.4-525.7-215.4-437.9 0-524.7 129-524.7 215.4 0\n85.8 86.8 214.8 524.7 214.8 438.9 0 525.7-129 525.7-214.8z",oiiintSize2:"M1021.2 53c603.6 0 707.8 165.8 707.8 277.2 0 110-104.2 275.8\n-707.8 275.8-606 0-710.2-165.8-710.2-275.8C311 218.8 415.2 53 1021.2 53z\nm770.4 277.1c0-131.2-126.4-327.6-770.5-327.6S248.4 198.9 248.4 330.1\nc0 130 128.8 326.4 772.7 326.4s770.5-196.4 770.5-326.4z",rightarrow:"M0 241v40h399891c-47.3 35.3-84 78-110 128\n-16.7 32-27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20\n 11 8 0 13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7\n 39-84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85\n-40.5-119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5\n-12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67\n 151.7 139 205zm0 0v40h399900v-40z",rightbrace:"M400000 542l\n-6 6h-17c-12.7 0-19.3-.3-20-1-4-4-7.3-8.3-10-13-35.3-51.3-80.8-93.8-136.5-127.5\ns-117.2-55.8-184.5-66.5c-.7 0-2-.3-4-1-18.7-2.7-76-4.3-172-5H0V214h399571l6 1\nc124.7 8 235 61.7 331 161 31.3 33.3 59.7 72.7 85 118l7 13v35z",rightbraceunder:"M399994 0l6 6v35l-6 11c-56 104-135.3 181.3-238 232-57.3\n 28.7-117 45-179 50H-300V214h399897c43.3-7 81-15 113-26 100.7-33 179.7-91 237\n-174 2.7-5 6-9 10-13 .7-1 7.3-1 20-1h17z",rightgroup:"M0 80h399565c371 0 266.7 149.4 414 180 5.9 1.2 18 0 18 0 2 0\n 3-1 3-3v-38c-76-158-257-219-435-219H0z",rightgroupunder:"M0 262h399565c371 0 266.7-149.4 414-180 5.9-1.2 18 0 18\n 0 2 0 3 1 3 3v38c-76 158-257 219-435 219H0z",rightharpoon:"M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3\n-3.7-15.3-11-18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2\n-10.7 0-16.7 2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58\n 69.2 92 94.5zm0 0v40h399900v-40z",rightharpoonplus:"M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3-3.7-15.3-11\n-18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2-10.7 0-16.7\n 2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58 69.2 92 94.5z\nm0 0v40h399900v-40z m100 194v40h399900v-40zm0 0v40h399900v-40z",rightharpoondown:"M399747 511c0 7.3 6.7 11 20 11 8 0 13-.8 15-2.5s4.7-6.8\n 8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3 8.5-5.8 9.5\n-7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3-64.7 57-92 95\n-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 241v40h399900v-40z",rightharpoondownplus:"M399747 705c0 7.3 6.7 11 20 11 8 0 13-.8\n 15-2.5s4.7-6.8 8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3\n 8.5-5.8 9.5-7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3\n-64.7 57-92 95-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 435v40h399900v-40z\nm0-194v40h400000v-40zm0 0v40h400000v-40z",righthook:"M399859 241c-764 0 0 0 0 0 40-3.3 68.7-15.7 86-37 10-12 15-25.3\n 15-40 0-22.7-9.8-40.7-29.5-54-19.7-13.3-43.5-21-71.5-23-17.3-1.3-26-8-26-20 0\n-13.3 8.7-20 26-20 38 0 71 11.2 99 33.5 0 0 7 5.6 21 16.7 14 11.2 21 33.5 21\n 66.8s-14 61.2-42 83.5c-28 22.3-61 33.5-99 33.5L0 241z M0 281v-40h399859v40z",rightlinesegment:"M399960 241 V94 h40 V428 h-40 V281 H0 v-40z\nM399960 241 V94 h40 V428 h-40 V281 H0 v-40z",rightToFrom:"M400000 167c-70.7-42-118-97.7-142-167h-23c-15.3 0-23 .3-23\n 1 0 1.3 5.3 13.7 16 37 18 35.3 41.3 69 70 101l7 8H0v40h399905l-7 8c-28.7 32\n-52 65.7-70 101-10.7 23.3-16 35.7-16 37 0 .7 7.7 1 23 1h23c24-69.3 71.3-125 142\n-167z M100 147v40h399900v-40zM0 341v40h399900v-40z",twoheadleftarrow:"M0 167c68 40\n 115.7 95.7 143 167h22c15.3 0 23-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69\n-70-101l-7-8h125l9 7c50.7 39.3 85 86 103 140h46c0-4.7-6.3-18.7-19-42-18-35.3\n-40-67.3-66-96l-9-9h399716v-40H284l9-9c26-28.7 48-60.7 66-96 12.7-23.333 19\n-37.333 19-42h-46c-18 54-52.3 100.7-103 140l-9 7H95l7-8c28.7-32 52-65.7 70-101\n 10.7-23.333 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 71.3 68 127 0 167z",twoheadrightarrow:"M400000 167\nc-68-40-115.7-95.7-143-167h-22c-15.3 0-23 .3-23 1 0 1.3 5.3 13.7 16 37 18 35.3\n 41.3 69 70 101l7 8h-125l-9-7c-50.7-39.3-85-86-103-140h-46c0 4.7 6.3 18.7 19 42\n 18 35.3 40 67.3 66 96l9 9H0v40h399716l-9 9c-26 28.7-48 60.7-66 96-12.7 23.333\n-19 37.333-19 42h46c18-54 52.3-100.7 103-140l9-7h125l-7 8c-28.7 32-52 65.7-70\n 101-10.7 23.333-16 35.7-16 37 0 .7 7.7 1 23 1h22c27.3-71.3 75-127 143-167z",tilde1:"M200 55.538c-77 0-168 73.953-177 73.953-3 0-7\n-2.175-9-5.437L2 97c-1-2-2-4-2-6 0-4 2-7 5-9l20-12C116 12 171 0 207 0c86 0\n 114 68 191 68 78 0 168-68 177-68 4 0 7 2 9 5l12 19c1 2.175 2 4.35 2 6.525 0\n 4.35-2 7.613-5 9.788l-19 13.05c-92 63.077-116.937 75.308-183 76.128\n-68.267.847-113-73.952-191-73.952z",tilde2:"M344 55.266c-142 0-300.638 81.316-311.5 86.418\n-8.01 3.762-22.5 10.91-23.5 5.562L1 120c-1-2-1-3-1-4 0-5 3-9 8-10l18.4-9C160.9\n 31.9 283 0 358 0c148 0 188 122 331 122s314-97 326-97c4 0 8 2 10 7l7 21.114\nc1 2.14 1 3.21 1 4.28 0 5.347-3 9.626-7 10.696l-22.3 12.622C852.6 158.372 751\n 181.476 676 181.476c-149 0-189-126.21-332-126.21z",tilde3:"M786 59C457 59 32 175.242 13 175.242c-6 0-10-3.457\n-11-10.37L.15 138c-1-7 3-12 10-13l19.2-6.4C378.4 40.7 634.3 0 804.3 0c337 0\n 411.8 157 746.8 157 328 0 754-112 773-112 5 0 10 3 11 9l1 14.075c1 8.066-.697\n 16.595-6.697 17.492l-21.052 7.31c-367.9 98.146-609.15 122.696-778.15 122.696\n -338 0-409-156.573-744-156.573z",tilde4:"M786 58C457 58 32 177.487 13 177.487c-6 0-10-3.345\n-11-10.035L.15 143c-1-7 3-12 10-13l22-6.7C381.2 35 637.15 0 807.15 0c337 0 409\n 177 744 177 328 0 754-127 773-127 5 0 10 3 11 9l1 14.794c1 7.805-3 13.38-9\n 14.495l-20.7 5.574c-366.85 99.79-607.3 139.372-776.3 139.372-338 0-409\n -175.236-744-175.236z",vec:"M377 20c0-5.333 1.833-10 5.5-14S391 0 397 0c4.667 0 8.667 1.667 12 5\n3.333 2.667 6.667 9 10 19 6.667 24.667 20.333 43.667 41 57 7.333 4.667 11\n10.667 11 18 0 6-1 10-3 12s-6.667 5-14 9c-28.667 14.667-53.667 35.667-75 63\n-1.333 1.333-3.167 3.5-5.5 6.5s-4 4.833-5 5.5c-1 .667-2.5 1.333-4.5 2s-4.333 1\n-7 1c-4.667 0-9.167-1.833-13.5-5.5S337 184 337 178c0-12.667 15.667-32.333 47-59\nH213l-171-1c-8.667-6-13-12.333-13-19 0-4.667 4.333-11.333 13-20h359\nc-16-25.333-24-45-24-59z",widehat1:"M529 0h5l519 115c5 1 9 5 9 10 0 1-1 2-1 3l-4 22\nc-1 5-5 9-11 9h-2L532 67 19 159h-2c-5 0-9-4-11-9l-5-22c-1-6 2-12 8-13z",widehat2:"M1181 0h2l1171 176c6 0 10 5 10 11l-2 23c-1 6-5 10\n-11 10h-1L1182 67 15 220h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z",widehat3:"M1181 0h2l1171 236c6 0 10 5 10 11l-2 23c-1 6-5 10\n-11 10h-1L1182 67 15 280h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z",widehat4:"M1181 0h2l1171 296c6 0 10 5 10 11l-2 23c-1 6-5 10\n-11 10h-1L1182 67 15 340h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z",widecheck1:"M529,159h5l519,-115c5,-1,9,-5,9,-10c0,-1,-1,-2,-1,-3l-4,-22c-1,\n-5,-5,-9,-11,-9h-2l-512,92l-513,-92h-2c-5,0,-9,4,-11,9l-5,22c-1,6,2,12,8,13z",widecheck2:"M1181,220h2l1171,-176c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,\n-11,-10h-1l-1168,153l-1167,-153h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z",widecheck3:"M1181,280h2l1171,-236c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,\n-11,-10h-1l-1168,213l-1167,-213h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z",widecheck4:"M1181,340h2l1171,-296c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,\n-11,-10h-1l-1168,273l-1167,-273h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z",baraboveleftarrow:"M400000 620h-399890l3 -3c68.7 -52.7 113.7 -120 135 -202\nc4 -14.7 6 -23 6 -25c0 -7.3 -7 -11 -21 -11c-8 0 -13.2 0.8 -15.5 2.5\nc-2.3 1.7 -4.2 5.8 -5.5 12.5c-1.3 4.7 -2.7 10.3 -4 17c-12 48.7 -34.8 92 -68.5 130\ns-74.2 66.3 -121.5 85c-10 4 -16 7.7 -18 11c0 8.7 6 14.3 18 17c47.3 18.7 87.8 47\n121.5 85s56.5 81.3 68.5 130c0.7 2 1.3 5 2 9s1.2 6.7 1.5 8c0.3 1.3 1 3.3 2 6\ns2.2 4.5 3.5 5.5c1.3 1 3.3 1.8 6 2.5s6 1 10 1c14 0 21 -3.7 21 -11\nc0 -2 -2 -10.3 -6 -25c-20 -79.3 -65 -146.7 -135 -202l-3 -3h399890z\nM100 620v40h399900v-40z M0 241v40h399900v-40zM0 241v40h399900v-40z",rightarrowabovebar:"M0 241v40h399891c-47.3 35.3-84 78-110 128-16.7 32\n-27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20 11 8 0\n13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7 39\n-84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85-40.5\n-119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5\n-12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67\n151.7 139 205zm96 379h399894v40H0zm0 0h399904v40H0z",baraboveshortleftharpoon:"M507,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11\nc1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17\nc2,0.7,5,1,9,1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21\nc-32,-87.3,-82.7,-157.7,-152,-211c0,0,-3,-3,-3,-3l399351,0l0,-40\nc-398570,0,-399437,0,-399437,0z M593 435 v40 H399500 v-40z\nM0 281 v-40 H399908 v40z M0 281 v-40 H399908 v40z",rightharpoonaboveshortbar:"M0,241 l0,40c399126,0,399993,0,399993,0\nc4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199,\n-231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6\nc-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z\nM0 241 v40 H399908 v-40z M0 475 v-40 H399500 v40z M0 475 v-40 H399500 v40z",shortbaraboveleftharpoon:"M7,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11\nc1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17c2,0.7,5,1,9,\n1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21c-32,-87.3,-82.7,-157.7,\n-152,-211c0,0,-3,-3,-3,-3l399907,0l0,-40c-399126,0,-399993,0,-399993,0z\nM93 435 v40 H400000 v-40z M500 241 v40 H400000 v-40z M500 241 v40 H400000 v-40z",shortrightharpoonabovebar:"M53,241l0,40c398570,0,399437,0,399437,0\nc4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199,\n-231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6\nc-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z\nM500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z"};class ie{constructor(e){this.children=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.children=e,this.classes=[],this.height=0,this.depth=0,this.maxFontSize=0,this.style={}}hasClass(e){return C.contains(this.classes,e)}toNode(){var t=document.createDocumentFragment();for(let e=0;e<this.children.length;e++)t.appendChild(this.children[e].toNode());return t}toMarkup(){let t="";for(let e=0;e<this.children.length;e++)t+=this.children[e].toMarkup();return t}toText(){return this.children.map(e=>e.toText()).join("")}}var ne={"AMS-Regular":{32:[0,0,0,0,.25],65:[0,.68889,0,0,.72222],66:[0,.68889,0,0,.66667],67:[0,.68889,0,0,.72222],68:[0,.68889,0,0,.72222],69:[0,.68889,0,0,.66667],70:[0,.68889,0,0,.61111],71:[0,.68889,0,0,.77778],72:[0,.68889,0,0,.77778],73:[0,.68889,0,0,.38889],74:[.16667,.68889,0,0,.5],75:[0,.68889,0,0,.77778],76:[0,.68889,0,0,.66667],77:[0,.68889,0,0,.94445],78:[0,.68889,0,0,.72222],79:[.16667,.68889,0,0,.77778],80:[0,.68889,0,0,.61111],81:[.16667,.68889,0,0,.77778],82:[0,.68889,0,0,.72222],83:[0,.68889,0,0,.55556],84:[0,.68889,0,0,.66667],85:[0,.68889,0,0,.72222],86:[0,.68889,0,0,.72222],87:[0,.68889,0,0,1],88:[0,.68889,0,0,.72222],89:[0,.68889,0,0,.72222],90:[0,.68889,0,0,.66667],107:[0,.68889,0,0,.55556],160:[0,0,0,0,.25],165:[0,.675,.025,0,.75],174:[.15559,.69224,0,0,.94666],240:[0,.68889,0,0,.55556],295:[0,.68889,0,0,.54028],710:[0,.825,0,0,2.33334],732:[0,.9,0,0,2.33334],770:[0,.825,0,0,2.33334],771:[0,.9,0,0,2.33334],989:[.08167,.58167,0,0,.77778],1008:[0,.43056,.04028,0,.66667],8245:[0,.54986,0,0,.275],8463:[0,.68889,0,0,.54028],8487:[0,.68889,0,0,.72222],8498:[0,.68889,0,0,.55556],8502:[0,.68889,0,0,.66667],8503:[0,.68889,0,0,.44445],8504:[0,.68889,0,0,.66667],8513:[0,.68889,0,0,.63889],8592:[-.03598,.46402,0,0,.5],8594:[-.03598,.46402,0,0,.5],8602:[-.13313,.36687,0,0,1],8603:[-.13313,.36687,0,0,1],8606:[.01354,.52239,0,0,1],8608:[.01354,.52239,0,0,1],8610:[.01354,.52239,0,0,1.11111],8611:[.01354,.52239,0,0,1.11111],8619:[0,.54986,0,0,1],8620:[0,.54986,0,0,1],8621:[-.13313,.37788,0,0,1.38889],8622:[-.13313,.36687,0,0,1],8624:[0,.69224,0,0,.5],8625:[0,.69224,0,0,.5],8630:[0,.43056,0,0,1],8631:[0,.43056,0,0,1],8634:[.08198,.58198,0,0,.77778],8635:[.08198,.58198,0,0,.77778],8638:[.19444,.69224,0,0,.41667],8639:[.19444,.69224,0,0,.41667],8642:[.19444,.69224,0,0,.41667],8643:[.19444,.69224,0,0,.41667],8644:[.1808,.675,0,0,1],8646:[.1808,.675,0,0,1],8647:[.1808,.675,0,0,1],8648:[.19444,.69224,0,0,.83334],8649:[.1808,.675,0,0,1],8650:[.19444,.69224,0,0,.83334],8651:[.01354,.52239,0,0,1],8652:[.01354,.52239,0,0,1],8653:[-.13313,.36687,0,0,1],8654:[-.13313,.36687,0,0,1],8655:[-.13313,.36687,0,0,1],8666:[.13667,.63667,0,0,1],8667:[.13667,.63667,0,0,1],8669:[-.13313,.37788,0,0,1],8672:[-.064,.437,0,0,1.334],8674:[-.064,.437,0,0,1.334],8705:[0,.825,0,0,.5],8708:[0,.68889,0,0,.55556],8709:[.08167,.58167,0,0,.77778],8717:[0,.43056,0,0,.42917],8722:[-.03598,.46402,0,0,.5],8724:[.08198,.69224,0,0,.77778],8726:[.08167,.58167,0,0,.77778],8733:[0,.69224,0,0,.77778],8736:[0,.69224,0,0,.72222],8737:[0,.69224,0,0,.72222],8738:[.03517,.52239,0,0,.72222],8739:[.08167,.58167,0,0,.22222],8740:[.25142,.74111,0,0,.27778],8741:[.08167,.58167,0,0,.38889],8742:[.25142,.74111,0,0,.5],8756:[0,.69224,0,0,.66667],8757:[0,.69224,0,0,.66667],8764:[-.13313,.36687,0,0,.77778],8765:[-.13313,.37788,0,0,.77778],8769:[-.13313,.36687,0,0,.77778],8770:[-.03625,.46375,0,0,.77778],8774:[.30274,.79383,0,0,.77778],8776:[-.01688,.48312,0,0,.77778],8778:[.08167,.58167,0,0,.77778],8782:[.06062,.54986,0,0,.77778],8783:[.06062,.54986,0,0,.77778],8785:[.08198,.58198,0,0,.77778],8786:[.08198,.58198,0,0,.77778],8787:[.08198,.58198,0,0,.77778],8790:[0,.69224,0,0,.77778],8791:[.22958,.72958,0,0,.77778],8796:[.08198,.91667,0,0,.77778],8806:[.25583,.75583,0,0,.77778],8807:[.25583,.75583,0,0,.77778],8808:[.25142,.75726,0,0,.77778],8809:[.25142,.75726,0,0,.77778],8812:[.25583,.75583,0,0,.5],8814:[.20576,.70576,0,0,.77778],8815:[.20576,.70576,0,0,.77778],8816:[.30274,.79383,0,0,.77778],8817:[.30274,.79383,0,0,.77778],8818:[.22958,.72958,0,0,.77778],8819:[.22958,.72958,0,0,.77778],8822:[.1808,.675,0,0,.77778],8823:[.1808,.675,0,0,.77778],8828:[.13667,.63667,0,0,.77778],8829:[.13667,.63667,0,0,.77778],8830:[.22958,.72958,0,0,.77778],8831:[.22958,.72958,0,0,.77778],8832:[.20576,.70576,0,0,.77778],8833:[.20576,.70576,0,0,.77778],8840:[.30274,.79383,0,0,.77778],8841:[.30274,.79383,0,0,.77778],8842:[.13597,.63597,0,0,.77778],8843:[.13597,.63597,0,0,.77778],8847:[.03517,.54986,0,0,.77778],8848:[.03517,.54986,0,0,.77778],8858:[.08198,.58198,0,0,.77778],8859:[.08198,.58198,0,0,.77778],8861:[.08198,.58198,0,0,.77778],8862:[0,.675,0,0,.77778],8863:[0,.675,0,0,.77778],8864:[0,.675,0,0,.77778],8865:[0,.675,0,0,.77778],8872:[0,.69224,0,0,.61111],8873:[0,.69224,0,0,.72222],8874:[0,.69224,0,0,.88889],8876:[0,.68889,0,0,.61111],8877:[0,.68889,0,0,.61111],8878:[0,.68889,0,0,.72222],8879:[0,.68889,0,0,.72222],8882:[.03517,.54986,0,0,.77778],8883:[.03517,.54986,0,0,.77778],8884:[.13667,.63667,0,0,.77778],8885:[.13667,.63667,0,0,.77778],8888:[0,.54986,0,0,1.11111],8890:[.19444,.43056,0,0,.55556],8891:[.19444,.69224,0,0,.61111],8892:[.19444,.69224,0,0,.61111],8901:[0,.54986,0,0,.27778],8903:[.08167,.58167,0,0,.77778],8905:[.08167,.58167,0,0,.77778],8906:[.08167,.58167,0,0,.77778],8907:[0,.69224,0,0,.77778],8908:[0,.69224,0,0,.77778],8909:[-.03598,.46402,0,0,.77778],8910:[0,.54986,0,0,.76042],8911:[0,.54986,0,0,.76042],8912:[.03517,.54986,0,0,.77778],8913:[.03517,.54986,0,0,.77778],8914:[0,.54986,0,0,.66667],8915:[0,.54986,0,0,.66667],8916:[0,.69224,0,0,.66667],8918:[.0391,.5391,0,0,.77778],8919:[.0391,.5391,0,0,.77778],8920:[.03517,.54986,0,0,1.33334],8921:[.03517,.54986,0,0,1.33334],8922:[.38569,.88569,0,0,.77778],8923:[.38569,.88569,0,0,.77778],8926:[.13667,.63667,0,0,.77778],8927:[.13667,.63667,0,0,.77778],8928:[.30274,.79383,0,0,.77778],8929:[.30274,.79383,0,0,.77778],8934:[.23222,.74111,0,0,.77778],8935:[.23222,.74111,0,0,.77778],8936:[.23222,.74111,0,0,.77778],8937:[.23222,.74111,0,0,.77778],8938:[.20576,.70576,0,0,.77778],8939:[.20576,.70576,0,0,.77778],8940:[.30274,.79383,0,0,.77778],8941:[.30274,.79383,0,0,.77778],8994:[.19444,.69224,0,0,.77778],8995:[.19444,.69224,0,0,.77778],9416:[.15559,.69224,0,0,.90222],9484:[0,.69224,0,0,.5],9488:[0,.69224,0,0,.5],9492:[0,.37788,0,0,.5],9496:[0,.37788,0,0,.5],9585:[.19444,.68889,0,0,.88889],9586:[.19444,.74111,0,0,.88889],9632:[0,.675,0,0,.77778],9633:[0,.675,0,0,.77778],9650:[0,.54986,0,0,.72222],9651:[0,.54986,0,0,.72222],9654:[.03517,.54986,0,0,.77778],9660:[0,.54986,0,0,.72222],9661:[0,.54986,0,0,.72222],9664:[.03517,.54986,0,0,.77778],9674:[.11111,.69224,0,0,.66667],9733:[.19444,.69224,0,0,.94445],10003:[0,.69224,0,0,.83334],10016:[0,.69224,0,0,.83334],10731:[.11111,.69224,0,0,.66667],10846:[.19444,.75583,0,0,.61111],10877:[.13667,.63667,0,0,.77778],10878:[.13667,.63667,0,0,.77778],10885:[.25583,.75583,0,0,.77778],10886:[.25583,.75583,0,0,.77778],10887:[.13597,.63597,0,0,.77778],10888:[.13597,.63597,0,0,.77778],10889:[.26167,.75726,0,0,.77778],10890:[.26167,.75726,0,0,.77778],10891:[.48256,.98256,0,0,.77778],10892:[.48256,.98256,0,0,.77778],10901:[.13667,.63667,0,0,.77778],10902:[.13667,.63667,0,0,.77778],10933:[.25142,.75726,0,0,.77778],10934:[.25142,.75726,0,0,.77778],10935:[.26167,.75726,0,0,.77778],10936:[.26167,.75726,0,0,.77778],10937:[.26167,.75726,0,0,.77778],10938:[.26167,.75726,0,0,.77778],10949:[.25583,.75583,0,0,.77778],10950:[.25583,.75583,0,0,.77778],10955:[.28481,.79383,0,0,.77778],10956:[.28481,.79383,0,0,.77778],57350:[.08167,.58167,0,0,.22222],57351:[.08167,.58167,0,0,.38889],57352:[.08167,.58167,0,0,.77778],57353:[0,.43056,.04028,0,.66667],57356:[.25142,.75726,0,0,.77778],57357:[.25142,.75726,0,0,.77778],57358:[.41951,.91951,0,0,.77778],57359:[.30274,.79383,0,0,.77778],57360:[.30274,.79383,0,0,.77778],57361:[.41951,.91951,0,0,.77778],57366:[.25142,.75726,0,0,.77778],57367:[.25142,.75726,0,0,.77778],57368:[.25142,.75726,0,0,.77778],57369:[.25142,.75726,0,0,.77778],57370:[.13597,.63597,0,0,.77778],57371:[.13597,.63597,0,0,.77778]},"Caligraphic-Regular":{32:[0,0,0,0,.25],65:[0,.68333,0,.19445,.79847],66:[0,.68333,.03041,.13889,.65681],67:[0,.68333,.05834,.13889,.52653],68:[0,.68333,.02778,.08334,.77139],69:[0,.68333,.08944,.11111,.52778],70:[0,.68333,.09931,.11111,.71875],71:[.09722,.68333,.0593,.11111,.59487],72:[0,.68333,.00965,.11111,.84452],73:[0,.68333,.07382,0,.54452],74:[.09722,.68333,.18472,.16667,.67778],75:[0,.68333,.01445,.05556,.76195],76:[0,.68333,0,.13889,.68972],77:[0,.68333,0,.13889,1.2009],78:[0,.68333,.14736,.08334,.82049],79:[0,.68333,.02778,.11111,.79611],80:[0,.68333,.08222,.08334,.69556],81:[.09722,.68333,0,.11111,.81667],82:[0,.68333,0,.08334,.8475],83:[0,.68333,.075,.13889,.60556],84:[0,.68333,.25417,0,.54464],85:[0,.68333,.09931,.08334,.62583],86:[0,.68333,.08222,0,.61278],87:[0,.68333,.08222,.08334,.98778],88:[0,.68333,.14643,.13889,.7133],89:[.09722,.68333,.08222,.08334,.66834],90:[0,.68333,.07944,.13889,.72473],160:[0,0,0,0,.25]},"Fraktur-Regular":{32:[0,0,0,0,.25],33:[0,.69141,0,0,.29574],34:[0,.69141,0,0,.21471],38:[0,.69141,0,0,.73786],39:[0,.69141,0,0,.21201],40:[.24982,.74947,0,0,.38865],41:[.24982,.74947,0,0,.38865],42:[0,.62119,0,0,.27764],43:[.08319,.58283,0,0,.75623],44:[0,.10803,0,0,.27764],45:[.08319,.58283,0,0,.75623],46:[0,.10803,0,0,.27764],47:[.24982,.74947,0,0,.50181],48:[0,.47534,0,0,.50181],49:[0,.47534,0,0,.50181],50:[0,.47534,0,0,.50181],51:[.18906,.47534,0,0,.50181],52:[.18906,.47534,0,0,.50181],53:[.18906,.47534,0,0,.50181],54:[0,.69141,0,0,.50181],55:[.18906,.47534,0,0,.50181],56:[0,.69141,0,0,.50181],57:[.18906,.47534,0,0,.50181],58:[0,.47534,0,0,.21606],59:[.12604,.47534,0,0,.21606],61:[-.13099,.36866,0,0,.75623],63:[0,.69141,0,0,.36245],65:[0,.69141,0,0,.7176],66:[0,.69141,0,0,.88397],67:[0,.69141,0,0,.61254],68:[0,.69141,0,0,.83158],69:[0,.69141,0,0,.66278],70:[.12604,.69141,0,0,.61119],71:[0,.69141,0,0,.78539],72:[.06302,.69141,0,0,.7203],73:[0,.69141,0,0,.55448],74:[.12604,.69141,0,0,.55231],75:[0,.69141,0,0,.66845],76:[0,.69141,0,0,.66602],77:[0,.69141,0,0,1.04953],78:[0,.69141,0,0,.83212],79:[0,.69141,0,0,.82699],80:[.18906,.69141,0,0,.82753],81:[.03781,.69141,0,0,.82699],82:[0,.69141,0,0,.82807],83:[0,.69141,0,0,.82861],84:[0,.69141,0,0,.66899],85:[0,.69141,0,0,.64576],86:[0,.69141,0,0,.83131],87:[0,.69141,0,0,1.04602],88:[0,.69141,0,0,.71922],89:[.18906,.69141,0,0,.83293],90:[.12604,.69141,0,0,.60201],91:[.24982,.74947,0,0,.27764],93:[.24982,.74947,0,0,.27764],94:[0,.69141,0,0,.49965],97:[0,.47534,0,0,.50046],98:[0,.69141,0,0,.51315],99:[0,.47534,0,0,.38946],100:[0,.62119,0,0,.49857],101:[0,.47534,0,0,.40053],102:[.18906,.69141,0,0,.32626],103:[.18906,.47534,0,0,.5037],104:[.18906,.69141,0,0,.52126],105:[0,.69141,0,0,.27899],106:[0,.69141,0,0,.28088],107:[0,.69141,0,0,.38946],108:[0,.69141,0,0,.27953],109:[0,.47534,0,0,.76676],110:[0,.47534,0,0,.52666],111:[0,.47534,0,0,.48885],112:[.18906,.52396,0,0,.50046],113:[.18906,.47534,0,0,.48912],114:[0,.47534,0,0,.38919],115:[0,.47534,0,0,.44266],116:[0,.62119,0,0,.33301],117:[0,.47534,0,0,.5172],118:[0,.52396,0,0,.5118],119:[0,.52396,0,0,.77351],120:[.18906,.47534,0,0,.38865],121:[.18906,.47534,0,0,.49884],122:[.18906,.47534,0,0,.39054],160:[0,0,0,0,.25],8216:[0,.69141,0,0,.21471],8217:[0,.69141,0,0,.21471],58112:[0,.62119,0,0,.49749],58113:[0,.62119,0,0,.4983],58114:[.18906,.69141,0,0,.33328],58115:[.18906,.69141,0,0,.32923],58116:[.18906,.47534,0,0,.50343],58117:[0,.69141,0,0,.33301],58118:[0,.62119,0,0,.33409],58119:[0,.47534,0,0,.50073]},"Main-Bold":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.35],34:[0,.69444,0,0,.60278],35:[.19444,.69444,0,0,.95833],36:[.05556,.75,0,0,.575],37:[.05556,.75,0,0,.95833],38:[0,.69444,0,0,.89444],39:[0,.69444,0,0,.31944],40:[.25,.75,0,0,.44722],41:[.25,.75,0,0,.44722],42:[0,.75,0,0,.575],43:[.13333,.63333,0,0,.89444],44:[.19444,.15556,0,0,.31944],45:[0,.44444,0,0,.38333],46:[0,.15556,0,0,.31944],47:[.25,.75,0,0,.575],48:[0,.64444,0,0,.575],49:[0,.64444,0,0,.575],50:[0,.64444,0,0,.575],51:[0,.64444,0,0,.575],52:[0,.64444,0,0,.575],53:[0,.64444,0,0,.575],54:[0,.64444,0,0,.575],55:[0,.64444,0,0,.575],56:[0,.64444,0,0,.575],57:[0,.64444,0,0,.575],58:[0,.44444,0,0,.31944],59:[.19444,.44444,0,0,.31944],60:[.08556,.58556,0,0,.89444],61:[-.10889,.39111,0,0,.89444],62:[.08556,.58556,0,0,.89444],63:[0,.69444,0,0,.54305],64:[0,.69444,0,0,.89444],65:[0,.68611,0,0,.86944],66:[0,.68611,0,0,.81805],67:[0,.68611,0,0,.83055],68:[0,.68611,0,0,.88194],69:[0,.68611,0,0,.75555],70:[0,.68611,0,0,.72361],71:[0,.68611,0,0,.90416],72:[0,.68611,0,0,.9],73:[0,.68611,0,0,.43611],74:[0,.68611,0,0,.59444],75:[0,.68611,0,0,.90138],76:[0,.68611,0,0,.69166],77:[0,.68611,0,0,1.09166],78:[0,.68611,0,0,.9],79:[0,.68611,0,0,.86388],80:[0,.68611,0,0,.78611],81:[.19444,.68611,0,0,.86388],82:[0,.68611,0,0,.8625],83:[0,.68611,0,0,.63889],84:[0,.68611,0,0,.8],85:[0,.68611,0,0,.88472],86:[0,.68611,.01597,0,.86944],87:[0,.68611,.01597,0,1.18888],88:[0,.68611,0,0,.86944],89:[0,.68611,.02875,0,.86944],90:[0,.68611,0,0,.70277],91:[.25,.75,0,0,.31944],92:[.25,.75,0,0,.575],93:[.25,.75,0,0,.31944],94:[0,.69444,0,0,.575],95:[.31,.13444,.03194,0,.575],97:[0,.44444,0,0,.55902],98:[0,.69444,0,0,.63889],99:[0,.44444,0,0,.51111],100:[0,.69444,0,0,.63889],101:[0,.44444,0,0,.52708],102:[0,.69444,.10903,0,.35139],103:[.19444,.44444,.01597,0,.575],104:[0,.69444,0,0,.63889],105:[0,.69444,0,0,.31944],106:[.19444,.69444,0,0,.35139],107:[0,.69444,0,0,.60694],108:[0,.69444,0,0,.31944],109:[0,.44444,0,0,.95833],110:[0,.44444,0,0,.63889],111:[0,.44444,0,0,.575],112:[.19444,.44444,0,0,.63889],113:[.19444,.44444,0,0,.60694],114:[0,.44444,0,0,.47361],115:[0,.44444,0,0,.45361],116:[0,.63492,0,0,.44722],117:[0,.44444,0,0,.63889],118:[0,.44444,.01597,0,.60694],119:[0,.44444,.01597,0,.83055],120:[0,.44444,0,0,.60694],121:[.19444,.44444,.01597,0,.60694],122:[0,.44444,0,0,.51111],123:[.25,.75,0,0,.575],124:[.25,.75,0,0,.31944],125:[.25,.75,0,0,.575],126:[.35,.34444,0,0,.575],160:[0,0,0,0,.25],163:[0,.69444,0,0,.86853],168:[0,.69444,0,0,.575],172:[0,.44444,0,0,.76666],176:[0,.69444,0,0,.86944],177:[.13333,.63333,0,0,.89444],184:[.17014,0,0,0,.51111],198:[0,.68611,0,0,1.04166],215:[.13333,.63333,0,0,.89444],216:[.04861,.73472,0,0,.89444],223:[0,.69444,0,0,.59722],230:[0,.44444,0,0,.83055],247:[.13333,.63333,0,0,.89444],248:[.09722,.54167,0,0,.575],305:[0,.44444,0,0,.31944],338:[0,.68611,0,0,1.16944],339:[0,.44444,0,0,.89444],567:[.19444,.44444,0,0,.35139],710:[0,.69444,0,0,.575],711:[0,.63194,0,0,.575],713:[0,.59611,0,0,.575],714:[0,.69444,0,0,.575],715:[0,.69444,0,0,.575],728:[0,.69444,0,0,.575],729:[0,.69444,0,0,.31944],730:[0,.69444,0,0,.86944],732:[0,.69444,0,0,.575],733:[0,.69444,0,0,.575],915:[0,.68611,0,0,.69166],916:[0,.68611,0,0,.95833],920:[0,.68611,0,0,.89444],923:[0,.68611,0,0,.80555],926:[0,.68611,0,0,.76666],928:[0,.68611,0,0,.9],931:[0,.68611,0,0,.83055],933:[0,.68611,0,0,.89444],934:[0,.68611,0,0,.83055],936:[0,.68611,0,0,.89444],937:[0,.68611,0,0,.83055],8211:[0,.44444,.03194,0,.575],8212:[0,.44444,.03194,0,1.14999],8216:[0,.69444,0,0,.31944],8217:[0,.69444,0,0,.31944],8220:[0,.69444,0,0,.60278],8221:[0,.69444,0,0,.60278],8224:[.19444,.69444,0,0,.51111],8225:[.19444,.69444,0,0,.51111],8242:[0,.55556,0,0,.34444],8407:[0,.72444,.15486,0,.575],8463:[0,.69444,0,0,.66759],8465:[0,.69444,0,0,.83055],8467:[0,.69444,0,0,.47361],8472:[.19444,.44444,0,0,.74027],8476:[0,.69444,0,0,.83055],8501:[0,.69444,0,0,.70277],8592:[-.10889,.39111,0,0,1.14999],8593:[.19444,.69444,0,0,.575],8594:[-.10889,.39111,0,0,1.14999],8595:[.19444,.69444,0,0,.575],8596:[-.10889,.39111,0,0,1.14999],8597:[.25,.75,0,0,.575],8598:[.19444,.69444,0,0,1.14999],8599:[.19444,.69444,0,0,1.14999],8600:[.19444,.69444,0,0,1.14999],8601:[.19444,.69444,0,0,1.14999],8636:[-.10889,.39111,0,0,1.14999],8637:[-.10889,.39111,0,0,1.14999],8640:[-.10889,.39111,0,0,1.14999],8641:[-.10889,.39111,0,0,1.14999],8656:[-.10889,.39111,0,0,1.14999],8657:[.19444,.69444,0,0,.70277],8658:[-.10889,.39111,0,0,1.14999],8659:[.19444,.69444,0,0,.70277],8660:[-.10889,.39111,0,0,1.14999],8661:[.25,.75,0,0,.70277],8704:[0,.69444,0,0,.63889],8706:[0,.69444,.06389,0,.62847],8707:[0,.69444,0,0,.63889],8709:[.05556,.75,0,0,.575],8711:[0,.68611,0,0,.95833],8712:[.08556,.58556,0,0,.76666],8715:[.08556,.58556,0,0,.76666],8722:[.13333,.63333,0,0,.89444],8723:[.13333,.63333,0,0,.89444],8725:[.25,.75,0,0,.575],8726:[.25,.75,0,0,.575],8727:[-.02778,.47222,0,0,.575],8728:[-.02639,.47361,0,0,.575],8729:[-.02639,.47361,0,0,.575],8730:[.18,.82,0,0,.95833],8733:[0,.44444,0,0,.89444],8734:[0,.44444,0,0,1.14999],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.31944],8741:[.25,.75,0,0,.575],8743:[0,.55556,0,0,.76666],8744:[0,.55556,0,0,.76666],8745:[0,.55556,0,0,.76666],8746:[0,.55556,0,0,.76666],8747:[.19444,.69444,.12778,0,.56875],8764:[-.10889,.39111,0,0,.89444],8768:[.19444,.69444,0,0,.31944],8771:[.00222,.50222,0,0,.89444],8773:[.027,.638,0,0,.894],8776:[.02444,.52444,0,0,.89444],8781:[.00222,.50222,0,0,.89444],8801:[.00222,.50222,0,0,.89444],8804:[.19667,.69667,0,0,.89444],8805:[.19667,.69667,0,0,.89444],8810:[.08556,.58556,0,0,1.14999],8811:[.08556,.58556,0,0,1.14999],8826:[.08556,.58556,0,0,.89444],8827:[.08556,.58556,0,0,.89444],8834:[.08556,.58556,0,0,.89444],8835:[.08556,.58556,0,0,.89444],8838:[.19667,.69667,0,0,.89444],8839:[.19667,.69667,0,0,.89444],8846:[0,.55556,0,0,.76666],8849:[.19667,.69667,0,0,.89444],8850:[.19667,.69667,0,0,.89444],8851:[0,.55556,0,0,.76666],8852:[0,.55556,0,0,.76666],8853:[.13333,.63333,0,0,.89444],8854:[.13333,.63333,0,0,.89444],8855:[.13333,.63333,0,0,.89444],8856:[.13333,.63333,0,0,.89444],8857:[.13333,.63333,0,0,.89444],8866:[0,.69444,0,0,.70277],8867:[0,.69444,0,0,.70277],8868:[0,.69444,0,0,.89444],8869:[0,.69444,0,0,.89444],8900:[-.02639,.47361,0,0,.575],8901:[-.02639,.47361,0,0,.31944],8902:[-.02778,.47222,0,0,.575],8968:[.25,.75,0,0,.51111],8969:[.25,.75,0,0,.51111],8970:[.25,.75,0,0,.51111],8971:[.25,.75,0,0,.51111],8994:[-.13889,.36111,0,0,1.14999],8995:[-.13889,.36111,0,0,1.14999],9651:[.19444,.69444,0,0,1.02222],9657:[-.02778,.47222,0,0,.575],9661:[.19444,.69444,0,0,1.02222],9667:[-.02778,.47222,0,0,.575],9711:[.19444,.69444,0,0,1.14999],9824:[.12963,.69444,0,0,.89444],9825:[.12963,.69444,0,0,.89444],9826:[.12963,.69444,0,0,.89444],9827:[.12963,.69444,0,0,.89444],9837:[0,.75,0,0,.44722],9838:[.19444,.69444,0,0,.44722],9839:[.19444,.69444,0,0,.44722],10216:[.25,.75,0,0,.44722],10217:[.25,.75,0,0,.44722],10815:[0,.68611,0,0,.9],10927:[.19667,.69667,0,0,.89444],10928:[.19667,.69667,0,0,.89444],57376:[.19444,.69444,0,0,0]},"Main-BoldItalic":{32:[0,0,0,0,.25],33:[0,.69444,.11417,0,.38611],34:[0,.69444,.07939,0,.62055],35:[.19444,.69444,.06833,0,.94444],37:[.05556,.75,.12861,0,.94444],38:[0,.69444,.08528,0,.88555],39:[0,.69444,.12945,0,.35555],40:[.25,.75,.15806,0,.47333],41:[.25,.75,.03306,0,.47333],42:[0,.75,.14333,0,.59111],43:[.10333,.60333,.03306,0,.88555],44:[.19444,.14722,0,0,.35555],45:[0,.44444,.02611,0,.41444],46:[0,.14722,0,0,.35555],47:[.25,.75,.15806,0,.59111],48:[0,.64444,.13167,0,.59111],49:[0,.64444,.13167,0,.59111],50:[0,.64444,.13167,0,.59111],51:[0,.64444,.13167,0,.59111],52:[.19444,.64444,.13167,0,.59111],53:[0,.64444,.13167,0,.59111],54:[0,.64444,.13167,0,.59111],55:[.19444,.64444,.13167,0,.59111],56:[0,.64444,.13167,0,.59111],57:[0,.64444,.13167,0,.59111],58:[0,.44444,.06695,0,.35555],59:[.19444,.44444,.06695,0,.35555],61:[-.10889,.39111,.06833,0,.88555],63:[0,.69444,.11472,0,.59111],64:[0,.69444,.09208,0,.88555],65:[0,.68611,0,0,.86555],66:[0,.68611,.0992,0,.81666],67:[0,.68611,.14208,0,.82666],68:[0,.68611,.09062,0,.87555],69:[0,.68611,.11431,0,.75666],70:[0,.68611,.12903,0,.72722],71:[0,.68611,.07347,0,.89527],72:[0,.68611,.17208,0,.8961],73:[0,.68611,.15681,0,.47166],74:[0,.68611,.145,0,.61055],75:[0,.68611,.14208,0,.89499],76:[0,.68611,0,0,.69777],77:[0,.68611,.17208,0,1.07277],78:[0,.68611,.17208,0,.8961],79:[0,.68611,.09062,0,.85499],80:[0,.68611,.0992,0,.78721],81:[.19444,.68611,.09062,0,.85499],82:[0,.68611,.02559,0,.85944],83:[0,.68611,.11264,0,.64999],84:[0,.68611,.12903,0,.7961],85:[0,.68611,.17208,0,.88083],86:[0,.68611,.18625,0,.86555],87:[0,.68611,.18625,0,1.15999],88:[0,.68611,.15681,0,.86555],89:[0,.68611,.19803,0,.86555],90:[0,.68611,.14208,0,.70888],91:[.25,.75,.1875,0,.35611],93:[.25,.75,.09972,0,.35611],94:[0,.69444,.06709,0,.59111],95:[.31,.13444,.09811,0,.59111],97:[0,.44444,.09426,0,.59111],98:[0,.69444,.07861,0,.53222],99:[0,.44444,.05222,0,.53222],100:[0,.69444,.10861,0,.59111],101:[0,.44444,.085,0,.53222],102:[.19444,.69444,.21778,0,.4],103:[.19444,.44444,.105,0,.53222],104:[0,.69444,.09426,0,.59111],105:[0,.69326,.11387,0,.35555],106:[.19444,.69326,.1672,0,.35555],107:[0,.69444,.11111,0,.53222],108:[0,.69444,.10861,0,.29666],109:[0,.44444,.09426,0,.94444],110:[0,.44444,.09426,0,.64999],111:[0,.44444,.07861,0,.59111],112:[.19444,.44444,.07861,0,.59111],113:[.19444,.44444,.105,0,.53222],114:[0,.44444,.11111,0,.50167],115:[0,.44444,.08167,0,.48694],116:[0,.63492,.09639,0,.385],117:[0,.44444,.09426,0,.62055],118:[0,.44444,.11111,0,.53222],119:[0,.44444,.11111,0,.76777],120:[0,.44444,.12583,0,.56055],121:[.19444,.44444,.105,0,.56166],122:[0,.44444,.13889,0,.49055],126:[.35,.34444,.11472,0,.59111],160:[0,0,0,0,.25],168:[0,.69444,.11473,0,.59111],176:[0,.69444,0,0,.94888],184:[.17014,0,0,0,.53222],198:[0,.68611,.11431,0,1.02277],216:[.04861,.73472,.09062,0,.88555],223:[.19444,.69444,.09736,0,.665],230:[0,.44444,.085,0,.82666],248:[.09722,.54167,.09458,0,.59111],305:[0,.44444,.09426,0,.35555],338:[0,.68611,.11431,0,1.14054],339:[0,.44444,.085,0,.82666],567:[.19444,.44444,.04611,0,.385],710:[0,.69444,.06709,0,.59111],711:[0,.63194,.08271,0,.59111],713:[0,.59444,.10444,0,.59111],714:[0,.69444,.08528,0,.59111],715:[0,.69444,0,0,.59111],728:[0,.69444,.10333,0,.59111],729:[0,.69444,.12945,0,.35555],730:[0,.69444,0,0,.94888],732:[0,.69444,.11472,0,.59111],733:[0,.69444,.11472,0,.59111],915:[0,.68611,.12903,0,.69777],916:[0,.68611,0,0,.94444],920:[0,.68611,.09062,0,.88555],923:[0,.68611,0,0,.80666],926:[0,.68611,.15092,0,.76777],928:[0,.68611,.17208,0,.8961],931:[0,.68611,.11431,0,.82666],933:[0,.68611,.10778,0,.88555],934:[0,.68611,.05632,0,.82666],936:[0,.68611,.10778,0,.88555],937:[0,.68611,.0992,0,.82666],8211:[0,.44444,.09811,0,.59111],8212:[0,.44444,.09811,0,1.18221],8216:[0,.69444,.12945,0,.35555],8217:[0,.69444,.12945,0,.35555],8220:[0,.69444,.16772,0,.62055],8221:[0,.69444,.07939,0,.62055]},"Main-Italic":{32:[0,0,0,0,.25],33:[0,.69444,.12417,0,.30667],34:[0,.69444,.06961,0,.51444],35:[.19444,.69444,.06616,0,.81777],37:[.05556,.75,.13639,0,.81777],38:[0,.69444,.09694,0,.76666],39:[0,.69444,.12417,0,.30667],40:[.25,.75,.16194,0,.40889],41:[.25,.75,.03694,0,.40889],42:[0,.75,.14917,0,.51111],43:[.05667,.56167,.03694,0,.76666],44:[.19444,.10556,0,0,.30667],45:[0,.43056,.02826,0,.35778],46:[0,.10556,0,0,.30667],47:[.25,.75,.16194,0,.51111],48:[0,.64444,.13556,0,.51111],49:[0,.64444,.13556,0,.51111],50:[0,.64444,.13556,0,.51111],51:[0,.64444,.13556,0,.51111],52:[.19444,.64444,.13556,0,.51111],53:[0,.64444,.13556,0,.51111],54:[0,.64444,.13556,0,.51111],55:[.19444,.64444,.13556,0,.51111],56:[0,.64444,.13556,0,.51111],57:[0,.64444,.13556,0,.51111],58:[0,.43056,.0582,0,.30667],59:[.19444,.43056,.0582,0,.30667],61:[-.13313,.36687,.06616,0,.76666],63:[0,.69444,.1225,0,.51111],64:[0,.69444,.09597,0,.76666],65:[0,.68333,0,0,.74333],66:[0,.68333,.10257,0,.70389],67:[0,.68333,.14528,0,.71555],68:[0,.68333,.09403,0,.755],69:[0,.68333,.12028,0,.67833],70:[0,.68333,.13305,0,.65277],71:[0,.68333,.08722,0,.77361],72:[0,.68333,.16389,0,.74333],73:[0,.68333,.15806,0,.38555],74:[0,.68333,.14028,0,.525],75:[0,.68333,.14528,0,.76888],76:[0,.68333,0,0,.62722],77:[0,.68333,.16389,0,.89666],78:[0,.68333,.16389,0,.74333],79:[0,.68333,.09403,0,.76666],80:[0,.68333,.10257,0,.67833],81:[.19444,.68333,.09403,0,.76666],82:[0,.68333,.03868,0,.72944],83:[0,.68333,.11972,0,.56222],84:[0,.68333,.13305,0,.71555],85:[0,.68333,.16389,0,.74333],86:[0,.68333,.18361,0,.74333],87:[0,.68333,.18361,0,.99888],88:[0,.68333,.15806,0,.74333],89:[0,.68333,.19383,0,.74333],90:[0,.68333,.14528,0,.61333],91:[.25,.75,.1875,0,.30667],93:[.25,.75,.10528,0,.30667],94:[0,.69444,.06646,0,.51111],95:[.31,.12056,.09208,0,.51111],97:[0,.43056,.07671,0,.51111],98:[0,.69444,.06312,0,.46],99:[0,.43056,.05653,0,.46],100:[0,.69444,.10333,0,.51111],101:[0,.43056,.07514,0,.46],102:[.19444,.69444,.21194,0,.30667],103:[.19444,.43056,.08847,0,.46],104:[0,.69444,.07671,0,.51111],105:[0,.65536,.1019,0,.30667],106:[.19444,.65536,.14467,0,.30667],107:[0,.69444,.10764,0,.46],108:[0,.69444,.10333,0,.25555],109:[0,.43056,.07671,0,.81777],110:[0,.43056,.07671,0,.56222],111:[0,.43056,.06312,0,.51111],112:[.19444,.43056,.06312,0,.51111],113:[.19444,.43056,.08847,0,.46],114:[0,.43056,.10764,0,.42166],115:[0,.43056,.08208,0,.40889],116:[0,.61508,.09486,0,.33222],117:[0,.43056,.07671,0,.53666],118:[0,.43056,.10764,0,.46],119:[0,.43056,.10764,0,.66444],120:[0,.43056,.12042,0,.46389],121:[.19444,.43056,.08847,0,.48555],122:[0,.43056,.12292,0,.40889],126:[.35,.31786,.11585,0,.51111],160:[0,0,0,0,.25],168:[0,.66786,.10474,0,.51111],176:[0,.69444,0,0,.83129],184:[.17014,0,0,0,.46],198:[0,.68333,.12028,0,.88277],216:[.04861,.73194,.09403,0,.76666],223:[.19444,.69444,.10514,0,.53666],230:[0,.43056,.07514,0,.71555],248:[.09722,.52778,.09194,0,.51111],338:[0,.68333,.12028,0,.98499],339:[0,.43056,.07514,0,.71555],710:[0,.69444,.06646,0,.51111],711:[0,.62847,.08295,0,.51111],713:[0,.56167,.10333,0,.51111],714:[0,.69444,.09694,0,.51111],715:[0,.69444,0,0,.51111],728:[0,.69444,.10806,0,.51111],729:[0,.66786,.11752,0,.30667],730:[0,.69444,0,0,.83129],732:[0,.66786,.11585,0,.51111],733:[0,.69444,.1225,0,.51111],915:[0,.68333,.13305,0,.62722],916:[0,.68333,0,0,.81777],920:[0,.68333,.09403,0,.76666],923:[0,.68333,0,0,.69222],926:[0,.68333,.15294,0,.66444],928:[0,.68333,.16389,0,.74333],931:[0,.68333,.12028,0,.71555],933:[0,.68333,.11111,0,.76666],934:[0,.68333,.05986,0,.71555],936:[0,.68333,.11111,0,.76666],937:[0,.68333,.10257,0,.71555],8211:[0,.43056,.09208,0,.51111],8212:[0,.43056,.09208,0,1.02222],8216:[0,.69444,.12417,0,.30667],8217:[0,.69444,.12417,0,.30667],8220:[0,.69444,.1685,0,.51444],8221:[0,.69444,.06961,0,.51444],8463:[0,.68889,0,0,.54028]},"Main-Regular":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.27778],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.77778],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.19444,.10556,0,0,.27778],45:[0,.43056,0,0,.33333],46:[0,.10556,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.64444,0,0,.5],49:[0,.64444,0,0,.5],50:[0,.64444,0,0,.5],51:[0,.64444,0,0,.5],52:[0,.64444,0,0,.5],53:[0,.64444,0,0,.5],54:[0,.64444,0,0,.5],55:[0,.64444,0,0,.5],56:[0,.64444,0,0,.5],57:[0,.64444,0,0,.5],58:[0,.43056,0,0,.27778],59:[.19444,.43056,0,0,.27778],60:[.0391,.5391,0,0,.77778],61:[-.13313,.36687,0,0,.77778],62:[.0391,.5391,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.77778],65:[0,.68333,0,0,.75],66:[0,.68333,0,0,.70834],67:[0,.68333,0,0,.72222],68:[0,.68333,0,0,.76389],69:[0,.68333,0,0,.68056],70:[0,.68333,0,0,.65278],71:[0,.68333,0,0,.78472],72:[0,.68333,0,0,.75],73:[0,.68333,0,0,.36111],74:[0,.68333,0,0,.51389],75:[0,.68333,0,0,.77778],76:[0,.68333,0,0,.625],77:[0,.68333,0,0,.91667],78:[0,.68333,0,0,.75],79:[0,.68333,0,0,.77778],80:[0,.68333,0,0,.68056],81:[.19444,.68333,0,0,.77778],82:[0,.68333,0,0,.73611],83:[0,.68333,0,0,.55556],84:[0,.68333,0,0,.72222],85:[0,.68333,0,0,.75],86:[0,.68333,.01389,0,.75],87:[0,.68333,.01389,0,1.02778],88:[0,.68333,0,0,.75],89:[0,.68333,.025,0,.75],90:[0,.68333,0,0,.61111],91:[.25,.75,0,0,.27778],92:[.25,.75,0,0,.5],93:[.25,.75,0,0,.27778],94:[0,.69444,0,0,.5],95:[.31,.12056,.02778,0,.5],97:[0,.43056,0,0,.5],98:[0,.69444,0,0,.55556],99:[0,.43056,0,0,.44445],100:[0,.69444,0,0,.55556],101:[0,.43056,0,0,.44445],102:[0,.69444,.07778,0,.30556],103:[.19444,.43056,.01389,0,.5],104:[0,.69444,0,0,.55556],105:[0,.66786,0,0,.27778],106:[.19444,.66786,0,0,.30556],107:[0,.69444,0,0,.52778],108:[0,.69444,0,0,.27778],109:[0,.43056,0,0,.83334],110:[0,.43056,0,0,.55556],111:[0,.43056,0,0,.5],112:[.19444,.43056,0,0,.55556],113:[.19444,.43056,0,0,.52778],114:[0,.43056,0,0,.39167],115:[0,.43056,0,0,.39445],116:[0,.61508,0,0,.38889],117:[0,.43056,0,0,.55556],118:[0,.43056,.01389,0,.52778],119:[0,.43056,.01389,0,.72222],120:[0,.43056,0,0,.52778],121:[.19444,.43056,.01389,0,.52778],122:[0,.43056,0,0,.44445],123:[.25,.75,0,0,.5],124:[.25,.75,0,0,.27778],125:[.25,.75,0,0,.5],126:[.35,.31786,0,0,.5],160:[0,0,0,0,.25],163:[0,.69444,0,0,.76909],167:[.19444,.69444,0,0,.44445],168:[0,.66786,0,0,.5],172:[0,.43056,0,0,.66667],176:[0,.69444,0,0,.75],177:[.08333,.58333,0,0,.77778],182:[.19444,.69444,0,0,.61111],184:[.17014,0,0,0,.44445],198:[0,.68333,0,0,.90278],215:[.08333,.58333,0,0,.77778],216:[.04861,.73194,0,0,.77778],223:[0,.69444,0,0,.5],230:[0,.43056,0,0,.72222],247:[.08333,.58333,0,0,.77778],248:[.09722,.52778,0,0,.5],305:[0,.43056,0,0,.27778],338:[0,.68333,0,0,1.01389],339:[0,.43056,0,0,.77778],567:[.19444,.43056,0,0,.30556],710:[0,.69444,0,0,.5],711:[0,.62847,0,0,.5],713:[0,.56778,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.66786,0,0,.27778],730:[0,.69444,0,0,.75],732:[0,.66786,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.68333,0,0,.625],916:[0,.68333,0,0,.83334],920:[0,.68333,0,0,.77778],923:[0,.68333,0,0,.69445],926:[0,.68333,0,0,.66667],928:[0,.68333,0,0,.75],931:[0,.68333,0,0,.72222],933:[0,.68333,0,0,.77778],934:[0,.68333,0,0,.72222],936:[0,.68333,0,0,.77778],937:[0,.68333,0,0,.72222],8211:[0,.43056,.02778,0,.5],8212:[0,.43056,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5],8224:[.19444,.69444,0,0,.44445],8225:[.19444,.69444,0,0,.44445],8230:[0,.123,0,0,1.172],8242:[0,.55556,0,0,.275],8407:[0,.71444,.15382,0,.5],8463:[0,.68889,0,0,.54028],8465:[0,.69444,0,0,.72222],8467:[0,.69444,0,.11111,.41667],8472:[.19444,.43056,0,.11111,.63646],8476:[0,.69444,0,0,.72222],8501:[0,.69444,0,0,.61111],8592:[-.13313,.36687,0,0,1],8593:[.19444,.69444,0,0,.5],8594:[-.13313,.36687,0,0,1],8595:[.19444,.69444,0,0,.5],8596:[-.13313,.36687,0,0,1],8597:[.25,.75,0,0,.5],8598:[.19444,.69444,0,0,1],8599:[.19444,.69444,0,0,1],8600:[.19444,.69444,0,0,1],8601:[.19444,.69444,0,0,1],8614:[.011,.511,0,0,1],8617:[.011,.511,0,0,1.126],8618:[.011,.511,0,0,1.126],8636:[-.13313,.36687,0,0,1],8637:[-.13313,.36687,0,0,1],8640:[-.13313,.36687,0,0,1],8641:[-.13313,.36687,0,0,1],8652:[.011,.671,0,0,1],8656:[-.13313,.36687,0,0,1],8657:[.19444,.69444,0,0,.61111],8658:[-.13313,.36687,0,0,1],8659:[.19444,.69444,0,0,.61111],8660:[-.13313,.36687,0,0,1],8661:[.25,.75,0,0,.61111],8704:[0,.69444,0,0,.55556],8706:[0,.69444,.05556,.08334,.5309],8707:[0,.69444,0,0,.55556],8709:[.05556,.75,0,0,.5],8711:[0,.68333,0,0,.83334],8712:[.0391,.5391,0,0,.66667],8715:[.0391,.5391,0,0,.66667],8722:[.08333,.58333,0,0,.77778],8723:[.08333,.58333,0,0,.77778],8725:[.25,.75,0,0,.5],8726:[.25,.75,0,0,.5],8727:[-.03472,.46528,0,0,.5],8728:[-.05555,.44445,0,0,.5],8729:[-.05555,.44445,0,0,.5],8730:[.2,.8,0,0,.83334],8733:[0,.43056,0,0,.77778],8734:[0,.43056,0,0,1],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.27778],8741:[.25,.75,0,0,.5],8743:[0,.55556,0,0,.66667],8744:[0,.55556,0,0,.66667],8745:[0,.55556,0,0,.66667],8746:[0,.55556,0,0,.66667],8747:[.19444,.69444,.11111,0,.41667],8764:[-.13313,.36687,0,0,.77778],8768:[.19444,.69444,0,0,.27778],8771:[-.03625,.46375,0,0,.77778],8773:[-.022,.589,0,0,.778],8776:[-.01688,.48312,0,0,.77778],8781:[-.03625,.46375,0,0,.77778],8784:[-.133,.673,0,0,.778],8801:[-.03625,.46375,0,0,.77778],8804:[.13597,.63597,0,0,.77778],8805:[.13597,.63597,0,0,.77778],8810:[.0391,.5391,0,0,1],8811:[.0391,.5391,0,0,1],8826:[.0391,.5391,0,0,.77778],8827:[.0391,.5391,0,0,.77778],8834:[.0391,.5391,0,0,.77778],8835:[.0391,.5391,0,0,.77778],8838:[.13597,.63597,0,0,.77778],8839:[.13597,.63597,0,0,.77778],8846:[0,.55556,0,0,.66667],8849:[.13597,.63597,0,0,.77778],8850:[.13597,.63597,0,0,.77778],8851:[0,.55556,0,0,.66667],8852:[0,.55556,0,0,.66667],8853:[.08333,.58333,0,0,.77778],8854:[.08333,.58333,0,0,.77778],8855:[.08333,.58333,0,0,.77778],8856:[.08333,.58333,0,0,.77778],8857:[.08333,.58333,0,0,.77778],8866:[0,.69444,0,0,.61111],8867:[0,.69444,0,0,.61111],8868:[0,.69444,0,0,.77778],8869:[0,.69444,0,0,.77778],8872:[.249,.75,0,0,.867],8900:[-.05555,.44445,0,0,.5],8901:[-.05555,.44445,0,0,.27778],8902:[-.03472,.46528,0,0,.5],8904:[.005,.505,0,0,.9],8942:[.03,.903,0,0,.278],8943:[-.19,.313,0,0,1.172],8945:[-.1,.823,0,0,1.282],8968:[.25,.75,0,0,.44445],8969:[.25,.75,0,0,.44445],8970:[.25,.75,0,0,.44445],8971:[.25,.75,0,0,.44445],8994:[-.14236,.35764,0,0,1],8995:[-.14236,.35764,0,0,1],9136:[.244,.744,0,0,.412],9137:[.244,.745,0,0,.412],9651:[.19444,.69444,0,0,.88889],9657:[-.03472,.46528,0,0,.5],9661:[.19444,.69444,0,0,.88889],9667:[-.03472,.46528,0,0,.5],9711:[.19444,.69444,0,0,1],9824:[.12963,.69444,0,0,.77778],9825:[.12963,.69444,0,0,.77778],9826:[.12963,.69444,0,0,.77778],9827:[.12963,.69444,0,0,.77778],9837:[0,.75,0,0,.38889],9838:[.19444,.69444,0,0,.38889],9839:[.19444,.69444,0,0,.38889],10216:[.25,.75,0,0,.38889],10217:[.25,.75,0,0,.38889],10222:[.244,.744,0,0,.412],10223:[.244,.745,0,0,.412],10229:[.011,.511,0,0,1.609],10230:[.011,.511,0,0,1.638],10231:[.011,.511,0,0,1.859],10232:[.024,.525,0,0,1.609],10233:[.024,.525,0,0,1.638],10234:[.024,.525,0,0,1.858],10236:[.011,.511,0,0,1.638],10815:[0,.68333,0,0,.75],10927:[.13597,.63597,0,0,.77778],10928:[.13597,.63597,0,0,.77778],57376:[.19444,.69444,0,0,0]},"Math-BoldItalic":{32:[0,0,0,0,.25],48:[0,.44444,0,0,.575],49:[0,.44444,0,0,.575],50:[0,.44444,0,0,.575],51:[.19444,.44444,0,0,.575],52:[.19444,.44444,0,0,.575],53:[.19444,.44444,0,0,.575],54:[0,.64444,0,0,.575],55:[.19444,.44444,0,0,.575],56:[0,.64444,0,0,.575],57:[.19444,.44444,0,0,.575],65:[0,.68611,0,0,.86944],66:[0,.68611,.04835,0,.8664],67:[0,.68611,.06979,0,.81694],68:[0,.68611,.03194,0,.93812],69:[0,.68611,.05451,0,.81007],70:[0,.68611,.15972,0,.68889],71:[0,.68611,0,0,.88673],72:[0,.68611,.08229,0,.98229],73:[0,.68611,.07778,0,.51111],74:[0,.68611,.10069,0,.63125],75:[0,.68611,.06979,0,.97118],76:[0,.68611,0,0,.75555],77:[0,.68611,.11424,0,1.14201],78:[0,.68611,.11424,0,.95034],79:[0,.68611,.03194,0,.83666],80:[0,.68611,.15972,0,.72309],81:[.19444,.68611,0,0,.86861],82:[0,.68611,.00421,0,.87235],83:[0,.68611,.05382,0,.69271],84:[0,.68611,.15972,0,.63663],85:[0,.68611,.11424,0,.80027],86:[0,.68611,.25555,0,.67778],87:[0,.68611,.15972,0,1.09305],88:[0,.68611,.07778,0,.94722],89:[0,.68611,.25555,0,.67458],90:[0,.68611,.06979,0,.77257],97:[0,.44444,0,0,.63287],98:[0,.69444,0,0,.52083],99:[0,.44444,0,0,.51342],100:[0,.69444,0,0,.60972],101:[0,.44444,0,0,.55361],102:[.19444,.69444,.11042,0,.56806],103:[.19444,.44444,.03704,0,.5449],104:[0,.69444,0,0,.66759],105:[0,.69326,0,0,.4048],106:[.19444,.69326,.0622,0,.47083],107:[0,.69444,.01852,0,.6037],108:[0,.69444,.0088,0,.34815],109:[0,.44444,0,0,1.0324],110:[0,.44444,0,0,.71296],111:[0,.44444,0,0,.58472],112:[.19444,.44444,0,0,.60092],113:[.19444,.44444,.03704,0,.54213],114:[0,.44444,.03194,0,.5287],115:[0,.44444,0,0,.53125],116:[0,.63492,0,0,.41528],117:[0,.44444,0,0,.68102],118:[0,.44444,.03704,0,.56666],119:[0,.44444,.02778,0,.83148],120:[0,.44444,0,0,.65903],121:[.19444,.44444,.03704,0,.59028],122:[0,.44444,.04213,0,.55509],160:[0,0,0,0,.25],915:[0,.68611,.15972,0,.65694],916:[0,.68611,0,0,.95833],920:[0,.68611,.03194,0,.86722],923:[0,.68611,0,0,.80555],926:[0,.68611,.07458,0,.84125],928:[0,.68611,.08229,0,.98229],931:[0,.68611,.05451,0,.88507],933:[0,.68611,.15972,0,.67083],934:[0,.68611,0,0,.76666],936:[0,.68611,.11653,0,.71402],937:[0,.68611,.04835,0,.8789],945:[0,.44444,0,0,.76064],946:[.19444,.69444,.03403,0,.65972],947:[.19444,.44444,.06389,0,.59003],948:[0,.69444,.03819,0,.52222],949:[0,.44444,0,0,.52882],950:[.19444,.69444,.06215,0,.50833],951:[.19444,.44444,.03704,0,.6],952:[0,.69444,.03194,0,.5618],953:[0,.44444,0,0,.41204],954:[0,.44444,0,0,.66759],955:[0,.69444,0,0,.67083],956:[.19444,.44444,0,0,.70787],957:[0,.44444,.06898,0,.57685],958:[.19444,.69444,.03021,0,.50833],959:[0,.44444,0,0,.58472],960:[0,.44444,.03704,0,.68241],961:[.19444,.44444,0,0,.6118],962:[.09722,.44444,.07917,0,.42361],963:[0,.44444,.03704,0,.68588],964:[0,.44444,.13472,0,.52083],965:[0,.44444,.03704,0,.63055],966:[.19444,.44444,0,0,.74722],967:[.19444,.44444,0,0,.71805],968:[.19444,.69444,.03704,0,.75833],969:[0,.44444,.03704,0,.71782],977:[0,.69444,0,0,.69155],981:[.19444,.69444,0,0,.7125],982:[0,.44444,.03194,0,.975],1009:[.19444,.44444,0,0,.6118],1013:[0,.44444,0,0,.48333],57649:[0,.44444,0,0,.39352],57911:[.19444,.44444,0,0,.43889]},"Math-Italic":{32:[0,0,0,0,.25],48:[0,.43056,0,0,.5],49:[0,.43056,0,0,.5],50:[0,.43056,0,0,.5],51:[.19444,.43056,0,0,.5],52:[.19444,.43056,0,0,.5],53:[.19444,.43056,0,0,.5],54:[0,.64444,0,0,.5],55:[.19444,.43056,0,0,.5],56:[0,.64444,0,0,.5],57:[.19444,.43056,0,0,.5],65:[0,.68333,0,.13889,.75],66:[0,.68333,.05017,.08334,.75851],67:[0,.68333,.07153,.08334,.71472],68:[0,.68333,.02778,.05556,.82792],69:[0,.68333,.05764,.08334,.7382],70:[0,.68333,.13889,.08334,.64306],71:[0,.68333,0,.08334,.78625],72:[0,.68333,.08125,.05556,.83125],73:[0,.68333,.07847,.11111,.43958],74:[0,.68333,.09618,.16667,.55451],75:[0,.68333,.07153,.05556,.84931],76:[0,.68333,0,.02778,.68056],77:[0,.68333,.10903,.08334,.97014],78:[0,.68333,.10903,.08334,.80347],79:[0,.68333,.02778,.08334,.76278],80:[0,.68333,.13889,.08334,.64201],81:[.19444,.68333,0,.08334,.79056],82:[0,.68333,.00773,.08334,.75929],83:[0,.68333,.05764,.08334,.6132],84:[0,.68333,.13889,.08334,.58438],85:[0,.68333,.10903,.02778,.68278],86:[0,.68333,.22222,0,.58333],87:[0,.68333,.13889,0,.94445],88:[0,.68333,.07847,.08334,.82847],89:[0,.68333,.22222,0,.58056],90:[0,.68333,.07153,.08334,.68264],97:[0,.43056,0,0,.52859],98:[0,.69444,0,0,.42917],99:[0,.43056,0,.05556,.43276],100:[0,.69444,0,.16667,.52049],101:[0,.43056,0,.05556,.46563],102:[.19444,.69444,.10764,.16667,.48959],103:[.19444,.43056,.03588,.02778,.47697],104:[0,.69444,0,0,.57616],105:[0,.65952,0,0,.34451],106:[.19444,.65952,.05724,0,.41181],107:[0,.69444,.03148,0,.5206],108:[0,.69444,.01968,.08334,.29838],109:[0,.43056,0,0,.87801],110:[0,.43056,0,0,.60023],111:[0,.43056,0,.05556,.48472],112:[.19444,.43056,0,.08334,.50313],113:[.19444,.43056,.03588,.08334,.44641],114:[0,.43056,.02778,.05556,.45116],115:[0,.43056,0,.05556,.46875],116:[0,.61508,0,.08334,.36111],117:[0,.43056,0,.02778,.57246],118:[0,.43056,.03588,.02778,.48472],119:[0,.43056,.02691,.08334,.71592],120:[0,.43056,0,.02778,.57153],121:[.19444,.43056,.03588,.05556,.49028],122:[0,.43056,.04398,.05556,.46505],160:[0,0,0,0,.25],915:[0,.68333,.13889,.08334,.61528],916:[0,.68333,0,.16667,.83334],920:[0,.68333,.02778,.08334,.76278],923:[0,.68333,0,.16667,.69445],926:[0,.68333,.07569,.08334,.74236],928:[0,.68333,.08125,.05556,.83125],931:[0,.68333,.05764,.08334,.77986],933:[0,.68333,.13889,.05556,.58333],934:[0,.68333,0,.08334,.66667],936:[0,.68333,.11,.05556,.61222],937:[0,.68333,.05017,.08334,.7724],945:[0,.43056,.0037,.02778,.6397],946:[.19444,.69444,.05278,.08334,.56563],947:[.19444,.43056,.05556,0,.51773],948:[0,.69444,.03785,.05556,.44444],949:[0,.43056,0,.08334,.46632],950:[.19444,.69444,.07378,.08334,.4375],951:[.19444,.43056,.03588,.05556,.49653],952:[0,.69444,.02778,.08334,.46944],953:[0,.43056,0,.05556,.35394],954:[0,.43056,0,0,.57616],955:[0,.69444,0,0,.58334],956:[.19444,.43056,0,.02778,.60255],957:[0,.43056,.06366,.02778,.49398],958:[.19444,.69444,.04601,.11111,.4375],959:[0,.43056,0,.05556,.48472],960:[0,.43056,.03588,0,.57003],961:[.19444,.43056,0,.08334,.51702],962:[.09722,.43056,.07986,.08334,.36285],963:[0,.43056,.03588,0,.57141],964:[0,.43056,.1132,.02778,.43715],965:[0,.43056,.03588,.02778,.54028],966:[.19444,.43056,0,.08334,.65417],967:[.19444,.43056,0,.05556,.62569],968:[.19444,.69444,.03588,.11111,.65139],969:[0,.43056,.03588,0,.62245],977:[0,.69444,0,.08334,.59144],981:[.19444,.69444,0,.08334,.59583],982:[0,.43056,.02778,0,.82813],1009:[.19444,.43056,0,.08334,.51702],1013:[0,.43056,0,.05556,.4059],57649:[0,.43056,0,.02778,.32246],57911:[.19444,.43056,0,.08334,.38403]},"SansSerif-Bold":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.36667],34:[0,.69444,0,0,.55834],35:[.19444,.69444,0,0,.91667],36:[.05556,.75,0,0,.55],37:[.05556,.75,0,0,1.02912],38:[0,.69444,0,0,.83056],39:[0,.69444,0,0,.30556],40:[.25,.75,0,0,.42778],41:[.25,.75,0,0,.42778],42:[0,.75,0,0,.55],43:[.11667,.61667,0,0,.85556],44:[.10556,.13056,0,0,.30556],45:[0,.45833,0,0,.36667],46:[0,.13056,0,0,.30556],47:[.25,.75,0,0,.55],48:[0,.69444,0,0,.55],49:[0,.69444,0,0,.55],50:[0,.69444,0,0,.55],51:[0,.69444,0,0,.55],52:[0,.69444,0,0,.55],53:[0,.69444,0,0,.55],54:[0,.69444,0,0,.55],55:[0,.69444,0,0,.55],56:[0,.69444,0,0,.55],57:[0,.69444,0,0,.55],58:[0,.45833,0,0,.30556],59:[.10556,.45833,0,0,.30556],61:[-.09375,.40625,0,0,.85556],63:[0,.69444,0,0,.51945],64:[0,.69444,0,0,.73334],65:[0,.69444,0,0,.73334],66:[0,.69444,0,0,.73334],67:[0,.69444,0,0,.70278],68:[0,.69444,0,0,.79445],69:[0,.69444,0,0,.64167],70:[0,.69444,0,0,.61111],71:[0,.69444,0,0,.73334],72:[0,.69444,0,0,.79445],73:[0,.69444,0,0,.33056],74:[0,.69444,0,0,.51945],75:[0,.69444,0,0,.76389],76:[0,.69444,0,0,.58056],77:[0,.69444,0,0,.97778],78:[0,.69444,0,0,.79445],79:[0,.69444,0,0,.79445],80:[0,.69444,0,0,.70278],81:[.10556,.69444,0,0,.79445],82:[0,.69444,0,0,.70278],83:[0,.69444,0,0,.61111],84:[0,.69444,0,0,.73334],85:[0,.69444,0,0,.76389],86:[0,.69444,.01528,0,.73334],87:[0,.69444,.01528,0,1.03889],88:[0,.69444,0,0,.73334],89:[0,.69444,.0275,0,.73334],90:[0,.69444,0,0,.67223],91:[.25,.75,0,0,.34306],93:[.25,.75,0,0,.34306],94:[0,.69444,0,0,.55],95:[.35,.10833,.03056,0,.55],97:[0,.45833,0,0,.525],98:[0,.69444,0,0,.56111],99:[0,.45833,0,0,.48889],100:[0,.69444,0,0,.56111],101:[0,.45833,0,0,.51111],102:[0,.69444,.07639,0,.33611],103:[.19444,.45833,.01528,0,.55],104:[0,.69444,0,0,.56111],105:[0,.69444,0,0,.25556],106:[.19444,.69444,0,0,.28611],107:[0,.69444,0,0,.53056],108:[0,.69444,0,0,.25556],109:[0,.45833,0,0,.86667],110:[0,.45833,0,0,.56111],111:[0,.45833,0,0,.55],112:[.19444,.45833,0,0,.56111],113:[.19444,.45833,0,0,.56111],114:[0,.45833,.01528,0,.37222],115:[0,.45833,0,0,.42167],116:[0,.58929,0,0,.40417],117:[0,.45833,0,0,.56111],118:[0,.45833,.01528,0,.5],119:[0,.45833,.01528,0,.74445],120:[0,.45833,0,0,.5],121:[.19444,.45833,.01528,0,.5],122:[0,.45833,0,0,.47639],126:[.35,.34444,0,0,.55],160:[0,0,0,0,.25],168:[0,.69444,0,0,.55],176:[0,.69444,0,0,.73334],180:[0,.69444,0,0,.55],184:[.17014,0,0,0,.48889],305:[0,.45833,0,0,.25556],567:[.19444,.45833,0,0,.28611],710:[0,.69444,0,0,.55],711:[0,.63542,0,0,.55],713:[0,.63778,0,0,.55],728:[0,.69444,0,0,.55],729:[0,.69444,0,0,.30556],730:[0,.69444,0,0,.73334],732:[0,.69444,0,0,.55],733:[0,.69444,0,0,.55],915:[0,.69444,0,0,.58056],916:[0,.69444,0,0,.91667],920:[0,.69444,0,0,.85556],923:[0,.69444,0,0,.67223],926:[0,.69444,0,0,.73334],928:[0,.69444,0,0,.79445],931:[0,.69444,0,0,.79445],933:[0,.69444,0,0,.85556],934:[0,.69444,0,0,.79445],936:[0,.69444,0,0,.85556],937:[0,.69444,0,0,.79445],8211:[0,.45833,.03056,0,.55],8212:[0,.45833,.03056,0,1.10001],8216:[0,.69444,0,0,.30556],8217:[0,.69444,0,0,.30556],8220:[0,.69444,0,0,.55834],8221:[0,.69444,0,0,.55834]},"SansSerif-Italic":{32:[0,0,0,0,.25],33:[0,.69444,.05733,0,.31945],34:[0,.69444,.00316,0,.5],35:[.19444,.69444,.05087,0,.83334],36:[.05556,.75,.11156,0,.5],37:[.05556,.75,.03126,0,.83334],38:[0,.69444,.03058,0,.75834],39:[0,.69444,.07816,0,.27778],40:[.25,.75,.13164,0,.38889],41:[.25,.75,.02536,0,.38889],42:[0,.75,.11775,0,.5],43:[.08333,.58333,.02536,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,.01946,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,.13164,0,.5],48:[0,.65556,.11156,0,.5],49:[0,.65556,.11156,0,.5],50:[0,.65556,.11156,0,.5],51:[0,.65556,.11156,0,.5],52:[0,.65556,.11156,0,.5],53:[0,.65556,.11156,0,.5],54:[0,.65556,.11156,0,.5],55:[0,.65556,.11156,0,.5],56:[0,.65556,.11156,0,.5],57:[0,.65556,.11156,0,.5],58:[0,.44444,.02502,0,.27778],59:[.125,.44444,.02502,0,.27778],61:[-.13,.37,.05087,0,.77778],63:[0,.69444,.11809,0,.47222],64:[0,.69444,.07555,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,.08293,0,.66667],67:[0,.69444,.11983,0,.63889],68:[0,.69444,.07555,0,.72223],69:[0,.69444,.11983,0,.59722],70:[0,.69444,.13372,0,.56945],71:[0,.69444,.11983,0,.66667],72:[0,.69444,.08094,0,.70834],73:[0,.69444,.13372,0,.27778],74:[0,.69444,.08094,0,.47222],75:[0,.69444,.11983,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,.08094,0,.875],78:[0,.69444,.08094,0,.70834],79:[0,.69444,.07555,0,.73611],80:[0,.69444,.08293,0,.63889],81:[.125,.69444,.07555,0,.73611],82:[0,.69444,.08293,0,.64584],83:[0,.69444,.09205,0,.55556],84:[0,.69444,.13372,0,.68056],85:[0,.69444,.08094,0,.6875],86:[0,.69444,.1615,0,.66667],87:[0,.69444,.1615,0,.94445],88:[0,.69444,.13372,0,.66667],89:[0,.69444,.17261,0,.66667],90:[0,.69444,.11983,0,.61111],91:[.25,.75,.15942,0,.28889],93:[.25,.75,.08719,0,.28889],94:[0,.69444,.0799,0,.5],95:[.35,.09444,.08616,0,.5],97:[0,.44444,.00981,0,.48056],98:[0,.69444,.03057,0,.51667],99:[0,.44444,.08336,0,.44445],100:[0,.69444,.09483,0,.51667],101:[0,.44444,.06778,0,.44445],102:[0,.69444,.21705,0,.30556],103:[.19444,.44444,.10836,0,.5],104:[0,.69444,.01778,0,.51667],105:[0,.67937,.09718,0,.23889],106:[.19444,.67937,.09162,0,.26667],107:[0,.69444,.08336,0,.48889],108:[0,.69444,.09483,0,.23889],109:[0,.44444,.01778,0,.79445],110:[0,.44444,.01778,0,.51667],111:[0,.44444,.06613,0,.5],112:[.19444,.44444,.0389,0,.51667],113:[.19444,.44444,.04169,0,.51667],114:[0,.44444,.10836,0,.34167],115:[0,.44444,.0778,0,.38333],116:[0,.57143,.07225,0,.36111],117:[0,.44444,.04169,0,.51667],118:[0,.44444,.10836,0,.46111],119:[0,.44444,.10836,0,.68334],120:[0,.44444,.09169,0,.46111],121:[.19444,.44444,.10836,0,.46111],122:[0,.44444,.08752,0,.43472],126:[.35,.32659,.08826,0,.5],160:[0,0,0,0,.25],168:[0,.67937,.06385,0,.5],176:[0,.69444,0,0,.73752],184:[.17014,0,0,0,.44445],305:[0,.44444,.04169,0,.23889],567:[.19444,.44444,.04169,0,.26667],710:[0,.69444,.0799,0,.5],711:[0,.63194,.08432,0,.5],713:[0,.60889,.08776,0,.5],714:[0,.69444,.09205,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,.09483,0,.5],729:[0,.67937,.07774,0,.27778],730:[0,.69444,0,0,.73752],732:[0,.67659,.08826,0,.5],733:[0,.69444,.09205,0,.5],915:[0,.69444,.13372,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,.07555,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,.12816,0,.66667],928:[0,.69444,.08094,0,.70834],931:[0,.69444,.11983,0,.72222],933:[0,.69444,.09031,0,.77778],934:[0,.69444,.04603,0,.72222],936:[0,.69444,.09031,0,.77778],937:[0,.69444,.08293,0,.72222],8211:[0,.44444,.08616,0,.5],8212:[0,.44444,.08616,0,1],8216:[0,.69444,.07816,0,.27778],8217:[0,.69444,.07816,0,.27778],8220:[0,.69444,.14205,0,.5],8221:[0,.69444,.00316,0,.5]},"SansSerif-Regular":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.31945],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.75834],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,0,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.65556,0,0,.5],49:[0,.65556,0,0,.5],50:[0,.65556,0,0,.5],51:[0,.65556,0,0,.5],52:[0,.65556,0,0,.5],53:[0,.65556,0,0,.5],54:[0,.65556,0,0,.5],55:[0,.65556,0,0,.5],56:[0,.65556,0,0,.5],57:[0,.65556,0,0,.5],58:[0,.44444,0,0,.27778],59:[.125,.44444,0,0,.27778],61:[-.13,.37,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,0,0,.66667],67:[0,.69444,0,0,.63889],68:[0,.69444,0,0,.72223],69:[0,.69444,0,0,.59722],70:[0,.69444,0,0,.56945],71:[0,.69444,0,0,.66667],72:[0,.69444,0,0,.70834],73:[0,.69444,0,0,.27778],74:[0,.69444,0,0,.47222],75:[0,.69444,0,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,0,0,.875],78:[0,.69444,0,0,.70834],79:[0,.69444,0,0,.73611],80:[0,.69444,0,0,.63889],81:[.125,.69444,0,0,.73611],82:[0,.69444,0,0,.64584],83:[0,.69444,0,0,.55556],84:[0,.69444,0,0,.68056],85:[0,.69444,0,0,.6875],86:[0,.69444,.01389,0,.66667],87:[0,.69444,.01389,0,.94445],88:[0,.69444,0,0,.66667],89:[0,.69444,.025,0,.66667],90:[0,.69444,0,0,.61111],91:[.25,.75,0,0,.28889],93:[.25,.75,0,0,.28889],94:[0,.69444,0,0,.5],95:[.35,.09444,.02778,0,.5],97:[0,.44444,0,0,.48056],98:[0,.69444,0,0,.51667],99:[0,.44444,0,0,.44445],100:[0,.69444,0,0,.51667],101:[0,.44444,0,0,.44445],102:[0,.69444,.06944,0,.30556],103:[.19444,.44444,.01389,0,.5],104:[0,.69444,0,0,.51667],105:[0,.67937,0,0,.23889],106:[.19444,.67937,0,0,.26667],107:[0,.69444,0,0,.48889],108:[0,.69444,0,0,.23889],109:[0,.44444,0,0,.79445],110:[0,.44444,0,0,.51667],111:[0,.44444,0,0,.5],112:[.19444,.44444,0,0,.51667],113:[.19444,.44444,0,0,.51667],114:[0,.44444,.01389,0,.34167],115:[0,.44444,0,0,.38333],116:[0,.57143,0,0,.36111],117:[0,.44444,0,0,.51667],118:[0,.44444,.01389,0,.46111],119:[0,.44444,.01389,0,.68334],120:[0,.44444,0,0,.46111],121:[.19444,.44444,.01389,0,.46111],122:[0,.44444,0,0,.43472],126:[.35,.32659,0,0,.5],160:[0,0,0,0,.25],168:[0,.67937,0,0,.5],176:[0,.69444,0,0,.66667],184:[.17014,0,0,0,.44445],305:[0,.44444,0,0,.23889],567:[.19444,.44444,0,0,.26667],710:[0,.69444,0,0,.5],711:[0,.63194,0,0,.5],713:[0,.60889,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.67937,0,0,.27778],730:[0,.69444,0,0,.66667],732:[0,.67659,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.69444,0,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,0,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,0,0,.66667],928:[0,.69444,0,0,.70834],931:[0,.69444,0,0,.72222],933:[0,.69444,0,0,.77778],934:[0,.69444,0,0,.72222],936:[0,.69444,0,0,.77778],937:[0,.69444,0,0,.72222],8211:[0,.44444,.02778,0,.5],8212:[0,.44444,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5]},"Script-Regular":{32:[0,0,0,0,.25],65:[0,.7,.22925,0,.80253],66:[0,.7,.04087,0,.90757],67:[0,.7,.1689,0,.66619],68:[0,.7,.09371,0,.77443],69:[0,.7,.18583,0,.56162],70:[0,.7,.13634,0,.89544],71:[0,.7,.17322,0,.60961],72:[0,.7,.29694,0,.96919],73:[0,.7,.19189,0,.80907],74:[.27778,.7,.19189,0,1.05159],75:[0,.7,.31259,0,.91364],76:[0,.7,.19189,0,.87373],77:[0,.7,.15981,0,1.08031],78:[0,.7,.3525,0,.9015],79:[0,.7,.08078,0,.73787],80:[0,.7,.08078,0,1.01262],81:[0,.7,.03305,0,.88282],82:[0,.7,.06259,0,.85],83:[0,.7,.19189,0,.86767],84:[0,.7,.29087,0,.74697],85:[0,.7,.25815,0,.79996],86:[0,.7,.27523,0,.62204],87:[0,.7,.27523,0,.80532],88:[0,.7,.26006,0,.94445],89:[0,.7,.2939,0,.70961],90:[0,.7,.24037,0,.8212],160:[0,0,0,0,.25]},"Size1-Regular":{32:[0,0,0,0,.25],40:[.35001,.85,0,0,.45834],41:[.35001,.85,0,0,.45834],47:[.35001,.85,0,0,.57778],91:[.35001,.85,0,0,.41667],92:[.35001,.85,0,0,.57778],93:[.35001,.85,0,0,.41667],123:[.35001,.85,0,0,.58334],125:[.35001,.85,0,0,.58334],160:[0,0,0,0,.25],710:[0,.72222,0,0,.55556],732:[0,.72222,0,0,.55556],770:[0,.72222,0,0,.55556],771:[0,.72222,0,0,.55556],8214:[-99e-5,.601,0,0,.77778],8593:[1e-5,.6,0,0,.66667],8595:[1e-5,.6,0,0,.66667],8657:[1e-5,.6,0,0,.77778],8659:[1e-5,.6,0,0,.77778],8719:[.25001,.75,0,0,.94445],8720:[.25001,.75,0,0,.94445],8721:[.25001,.75,0,0,1.05556],8730:[.35001,.85,0,0,1],8739:[-.00599,.606,0,0,.33333],8741:[-.00599,.606,0,0,.55556],8747:[.30612,.805,.19445,0,.47222],8748:[.306,.805,.19445,0,.47222],8749:[.306,.805,.19445,0,.47222],8750:[.30612,.805,.19445,0,.47222],8896:[.25001,.75,0,0,.83334],8897:[.25001,.75,0,0,.83334],8898:[.25001,.75,0,0,.83334],8899:[.25001,.75,0,0,.83334],8968:[.35001,.85,0,0,.47222],8969:[.35001,.85,0,0,.47222],8970:[.35001,.85,0,0,.47222],8971:[.35001,.85,0,0,.47222],9168:[-99e-5,.601,0,0,.66667],10216:[.35001,.85,0,0,.47222],10217:[.35001,.85,0,0,.47222],10752:[.25001,.75,0,0,1.11111],10753:[.25001,.75,0,0,1.11111],10754:[.25001,.75,0,0,1.11111],10756:[.25001,.75,0,0,.83334],10758:[.25001,.75,0,0,.83334]},"Size2-Regular":{32:[0,0,0,0,.25],40:[.65002,1.15,0,0,.59722],41:[.65002,1.15,0,0,.59722],47:[.65002,1.15,0,0,.81111],91:[.65002,1.15,0,0,.47222],92:[.65002,1.15,0,0,.81111],93:[.65002,1.15,0,0,.47222],123:[.65002,1.15,0,0,.66667],125:[.65002,1.15,0,0,.66667],160:[0,0,0,0,.25],710:[0,.75,0,0,1],732:[0,.75,0,0,1],770:[0,.75,0,0,1],771:[0,.75,0,0,1],8719:[.55001,1.05,0,0,1.27778],8720:[.55001,1.05,0,0,1.27778],8721:[.55001,1.05,0,0,1.44445],8730:[.65002,1.15,0,0,1],8747:[.86225,1.36,.44445,0,.55556],8748:[.862,1.36,.44445,0,.55556],8749:[.862,1.36,.44445,0,.55556],8750:[.86225,1.36,.44445,0,.55556],8896:[.55001,1.05,0,0,1.11111],8897:[.55001,1.05,0,0,1.11111],8898:[.55001,1.05,0,0,1.11111],8899:[.55001,1.05,0,0,1.11111],8968:[.65002,1.15,0,0,.52778],8969:[.65002,1.15,0,0,.52778],8970:[.65002,1.15,0,0,.52778],8971:[.65002,1.15,0,0,.52778],10216:[.65002,1.15,0,0,.61111],10217:[.65002,1.15,0,0,.61111],10752:[.55001,1.05,0,0,1.51112],10753:[.55001,1.05,0,0,1.51112],10754:[.55001,1.05,0,0,1.51112],10756:[.55001,1.05,0,0,1.11111],10758:[.55001,1.05,0,0,1.11111]},"Size3-Regular":{32:[0,0,0,0,.25],40:[.95003,1.45,0,0,.73611],41:[.95003,1.45,0,0,.73611],47:[.95003,1.45,0,0,1.04445],91:[.95003,1.45,0,0,.52778],92:[.95003,1.45,0,0,1.04445],93:[.95003,1.45,0,0,.52778],123:[.95003,1.45,0,0,.75],125:[.95003,1.45,0,0,.75],160:[0,0,0,0,.25],710:[0,.75,0,0,1.44445],732:[0,.75,0,0,1.44445],770:[0,.75,0,0,1.44445],771:[0,.75,0,0,1.44445],8730:[.95003,1.45,0,0,1],8968:[.95003,1.45,0,0,.58334],8969:[.95003,1.45,0,0,.58334],8970:[.95003,1.45,0,0,.58334],8971:[.95003,1.45,0,0,.58334],10216:[.95003,1.45,0,0,.75],10217:[.95003,1.45,0,0,.75]},"Size4-Regular":{32:[0,0,0,0,.25],40:[1.25003,1.75,0,0,.79167],41:[1.25003,1.75,0,0,.79167],47:[1.25003,1.75,0,0,1.27778],91:[1.25003,1.75,0,0,.58334],92:[1.25003,1.75,0,0,1.27778],93:[1.25003,1.75,0,0,.58334],123:[1.25003,1.75,0,0,.80556],125:[1.25003,1.75,0,0,.80556],160:[0,0,0,0,.25],710:[0,.825,0,0,1.8889],732:[0,.825,0,0,1.8889],770:[0,.825,0,0,1.8889],771:[0,.825,0,0,1.8889],8730:[1.25003,1.75,0,0,1],8968:[1.25003,1.75,0,0,.63889],8969:[1.25003,1.75,0,0,.63889],8970:[1.25003,1.75,0,0,.63889],8971:[1.25003,1.75,0,0,.63889],9115:[.64502,1.155,0,0,.875],9116:[1e-5,.6,0,0,.875],9117:[.64502,1.155,0,0,.875],9118:[.64502,1.155,0,0,.875],9119:[1e-5,.6,0,0,.875],9120:[.64502,1.155,0,0,.875],9121:[.64502,1.155,0,0,.66667],9122:[-99e-5,.601,0,0,.66667],9123:[.64502,1.155,0,0,.66667],9124:[.64502,1.155,0,0,.66667],9125:[-99e-5,.601,0,0,.66667],9126:[.64502,1.155,0,0,.66667],9127:[1e-5,.9,0,0,.88889],9128:[.65002,1.15,0,0,.88889],9129:[.90001,0,0,0,.88889],9130:[0,.3,0,0,.88889],9131:[1e-5,.9,0,0,.88889],9132:[.65002,1.15,0,0,.88889],9133:[.90001,0,0,0,.88889],9143:[.88502,.915,0,0,1.05556],10216:[1.25003,1.75,0,0,.80556],10217:[1.25003,1.75,0,0,.80556],57344:[-.00499,.605,0,0,1.05556],57345:[-.00499,.605,0,0,1.05556],57680:[0,.12,0,0,.45],57681:[0,.12,0,0,.45],57682:[0,.12,0,0,.45],57683:[0,.12,0,0,.45]},"Typewriter-Regular":{32:[0,0,0,0,.525],33:[0,.61111,0,0,.525],34:[0,.61111,0,0,.525],35:[0,.61111,0,0,.525],36:[.08333,.69444,0,0,.525],37:[.08333,.69444,0,0,.525],38:[0,.61111,0,0,.525],39:[0,.61111,0,0,.525],40:[.08333,.69444,0,0,.525],41:[.08333,.69444,0,0,.525],42:[0,.52083,0,0,.525],43:[-.08056,.53055,0,0,.525],44:[.13889,.125,0,0,.525],45:[-.08056,.53055,0,0,.525],46:[0,.125,0,0,.525],47:[.08333,.69444,0,0,.525],48:[0,.61111,0,0,.525],49:[0,.61111,0,0,.525],50:[0,.61111,0,0,.525],51:[0,.61111,0,0,.525],52:[0,.61111,0,0,.525],53:[0,.61111,0,0,.525],54:[0,.61111,0,0,.525],55:[0,.61111,0,0,.525],56:[0,.61111,0,0,.525],57:[0,.61111,0,0,.525],58:[0,.43056,0,0,.525],59:[.13889,.43056,0,0,.525],60:[-.05556,.55556,0,0,.525],61:[-.19549,.41562,0,0,.525],62:[-.05556,.55556,0,0,.525],63:[0,.61111,0,0,.525],64:[0,.61111,0,0,.525],65:[0,.61111,0,0,.525],66:[0,.61111,0,0,.525],67:[0,.61111,0,0,.525],68:[0,.61111,0,0,.525],69:[0,.61111,0,0,.525],70:[0,.61111,0,0,.525],71:[0,.61111,0,0,.525],72:[0,.61111,0,0,.525],73:[0,.61111,0,0,.525],74:[0,.61111,0,0,.525],75:[0,.61111,0,0,.525],76:[0,.61111,0,0,.525],77:[0,.61111,0,0,.525],78:[0,.61111,0,0,.525],79:[0,.61111,0,0,.525],80:[0,.61111,0,0,.525],81:[.13889,.61111,0,0,.525],82:[0,.61111,0,0,.525],83:[0,.61111,0,0,.525],84:[0,.61111,0,0,.525],85:[0,.61111,0,0,.525],86:[0,.61111,0,0,.525],87:[0,.61111,0,0,.525],88:[0,.61111,0,0,.525],89:[0,.61111,0,0,.525],90:[0,.61111,0,0,.525],91:[.08333,.69444,0,0,.525],92:[.08333,.69444,0,0,.525],93:[.08333,.69444,0,0,.525],94:[0,.61111,0,0,.525],95:[.09514,0,0,0,.525],96:[0,.61111,0,0,.525],97:[0,.43056,0,0,.525],98:[0,.61111,0,0,.525],99:[0,.43056,0,0,.525],100:[0,.61111,0,0,.525],101:[0,.43056,0,0,.525],102:[0,.61111,0,0,.525],103:[.22222,.43056,0,0,.525],104:[0,.61111,0,0,.525],105:[0,.61111,0,0,.525],106:[.22222,.61111,0,0,.525],107:[0,.61111,0,0,.525],108:[0,.61111,0,0,.525],109:[0,.43056,0,0,.525],110:[0,.43056,0,0,.525],111:[0,.43056,0,0,.525],112:[.22222,.43056,0,0,.525],113:[.22222,.43056,0,0,.525],114:[0,.43056,0,0,.525],115:[0,.43056,0,0,.525],116:[0,.55358,0,0,.525],117:[0,.43056,0,0,.525],118:[0,.43056,0,0,.525],119:[0,.43056,0,0,.525],120:[0,.43056,0,0,.525],121:[.22222,.43056,0,0,.525],122:[0,.43056,0,0,.525],123:[.08333,.69444,0,0,.525],124:[.08333,.69444,0,0,.525],125:[.08333,.69444,0,0,.525],126:[0,.61111,0,0,.525],127:[0,.61111,0,0,.525],160:[0,0,0,0,.525],176:[0,.61111,0,0,.525],184:[.19445,0,0,0,.525],305:[0,.43056,0,0,.525],567:[.22222,.43056,0,0,.525],711:[0,.56597,0,0,.525],713:[0,.56555,0,0,.525],714:[0,.61111,0,0,.525],715:[0,.61111,0,0,.525],728:[0,.61111,0,0,.525],730:[0,.61111,0,0,.525],770:[0,.61111,0,0,.525],771:[0,.61111,0,0,.525],776:[0,.61111,0,0,.525],915:[0,.61111,0,0,.525],916:[0,.61111,0,0,.525],920:[0,.61111,0,0,.525],923:[0,.61111,0,0,.525],926:[0,.61111,0,0,.525],928:[0,.61111,0,0,.525],931:[0,.61111,0,0,.525],933:[0,.61111,0,0,.525],934:[0,.61111,0,0,.525],936:[0,.61111,0,0,.525],937:[0,.61111,0,0,.525],8216:[0,.61111,0,0,.525],8217:[0,.61111,0,0,.525],8242:[0,.61111,0,0,.525],9251:[.11111,.21944,0,0,.525]}};const re={slant:[.25,.25,.25],space:[0,0,0],stretch:[0,0,0],shrink:[0,0,0],xHeight:[.431,.431,.431],quad:[1,1.171,1.472],extraSpace:[0,0,0],num1:[.677,.732,.925],num2:[.394,.384,.387],num3:[.444,.471,.504],denom1:[.686,.752,1.025],denom2:[.345,.344,.532],sup1:[.413,.503,.504],sup2:[.363,.431,.404],sup3:[.289,.286,.294],sub1:[.15,.143,.2],sub2:[.247,.286,.4],supDrop:[.386,.353,.494],subDrop:[.05,.071,.1],delim1:[2.39,1.7,1.98],delim2:[1.01,1.157,1.42],axisHeight:[.25,.25,.25],defaultRuleThickness:[.04,.049,.049],bigOpSpacing1:[.111,.111,.111],bigOpSpacing2:[.166,.166,.166],bigOpSpacing3:[.2,.2,.2],bigOpSpacing4:[.6,.611,.611],bigOpSpacing5:[.1,.143,.143],sqrtRuleThickness:[.04,.04,.04],ptPerEm:[10,10,10],doubleRuleSep:[.2,.2,.2],arrayRuleWidth:[.04,.04,.04],fboxsep:[.3,.3,.3],fboxrule:[.04,.04,.04]},se={"Å":"A","Ð":"D","Þ":"o","å":"a","ð":"d","þ":"o","А":"A","Б":"B","В":"B","Г":"F","Д":"A","Е":"E","Ж":"K","З":"3","И":"N","Й":"N","К":"K","Л":"N","М":"M","Н":"H","О":"O","П":"N","Р":"P","С":"C","Т":"T","У":"y","Ф":"O","Х":"X","Ц":"U","Ч":"h","Ш":"W","Щ":"W","Ъ":"B","Ы":"X","Ь":"B","Э":"3","Ю":"X","Я":"R","а":"a","б":"b","в":"a","г":"r","д":"y","е":"e","ж":"m","з":"e","и":"n","й":"n","к":"n","л":"n","м":"m","н":"n","о":"o","п":"n","р":"p","с":"c","т":"o","у":"y","ф":"b","х":"x","ц":"n","ч":"n","ш":"w","щ":"w","ъ":"a","ы":"m","ь":"a","э":"e","ю":"m","я":"r"};function ae(e,t,i){if(!ne[t])throw new Error("Font metrics not found for font: "+t+".");let n=e.charCodeAt(0),r=ne[t][n];if(!r&&e[0]in se&&(n=se[e[0]].charCodeAt(0),r=ne[t][n]),r||"text"!==i||ee(n)&&(r=ne[t][77]),r)return{depth:r[0],height:r[1],italic:r[2],skew:r[3],width:r[4]}}function oe(e,t){return t.size<2?e:ce[e-1][t.size-1]}const le={},ce=[[1,1,1],[2,1,1],[3,1,1],[4,2,1],[5,2,1],[6,3,1],[7,4,2],[8,6,3],[9,7,6],[10,8,7],[11,10,9]],he=[.5,.6,.7,.8,.9,1,1.2,1.44,1.728,2.074,2.488];class ue{constructor(e){this.style=void 0,this.color=void 0,this.size=void 0,this.textSize=void 0,this.phantom=void 0,this.font=void 0,this.fontFamily=void 0,this.fontWeight=void 0,this.fontShape=void 0,this.sizeMultiplier=void 0,this.maxSize=void 0,this.minRuleThickness=void 0,this._fontMetrics=void 0,this.style=e.style,this.color=e.color,this.size=e.size||ue.BASESIZE,this.textSize=e.textSize||this.size,this.phantom=!!e.phantom,this.font=e.font||"",this.fontFamily=e.fontFamily||"",this.fontWeight=e.fontWeight||"",this.fontShape=e.fontShape||"",this.sizeMultiplier=he[this.size-1],this.maxSize=e.maxSize,this.minRuleThickness=e.minRuleThickness,this._fontMetrics=void 0}extend(e){var t={style:this.style,size:this.size,textSize:this.textSize,color:this.color,phantom:this.phantom,font:this.font,fontFamily:this.fontFamily,fontWeight:this.fontWeight,fontShape:this.fontShape,maxSize:this.maxSize,minRuleThickness:this.minRuleThickness};for(const i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);return new ue(t)}havingStyle(e){return this.style===e?this:this.extend({style:e,size:oe(this.textSize,e)})}havingCrampedStyle(){return this.havingStyle(this.style.cramp())}havingSize(e){return this.size===e&&this.textSize===e?this:this.extend({style:this.style.text(),size:e,textSize:e,sizeMultiplier:he[e-1]})}havingBaseStyle(e){e=e||this.style.text();var t=oe(ue.BASESIZE,e);return this.size===t&&this.textSize===ue.BASESIZE&&this.style===e?this:this.extend({style:e,size:t})}havingBaseSizing(){let e;switch(this.style.id){case 4:case 5:e=3;break;case 6:case 7:e=1;break;default:e=6}return this.extend({style:this.style.text(),size:e})}withColor(e){return this.extend({color:e})}withPhantom(){return this.extend({phantom:!0})}withFont(e){return this.extend({font:e})}withTextFontFamily(e){return this.extend({fontFamily:e,font:""})}withTextFontWeight(e){return this.extend({fontWeight:e,font:""})}withTextFontShape(e){return this.extend({fontShape:e,font:""})}sizingClasses(e){return e.size!==this.size?["sizing","reset-size"+e.size,"size"+this.size]:[]}baseSizingClasses(){return this.size!==ue.BASESIZE?["sizing","reset-size"+this.size,"size"+ue.BASESIZE]:[]}fontMetrics(){return this._fontMetrics||(this._fontMetrics=function(e){var t=5<=e?0:3<=e?1:2;if(!le[t]){const e=le[t]={cssEmPerMu:re.quad[t]/18};for(const i in re)re.hasOwnProperty(i)&&(e[i]=re[i][t])}return le[t]}(this.size)),this._fontMetrics}getColor(){return this.phantom?"transparent":this.color}}ue.BASESIZE=6;var de=ue;function pe(e){return(e="string"!=typeof e?e.unit:e)in be||e in ve||"ex"===e}function E(e,t){let i;if(e.unit in be)i=be[e.unit]/t.fontMetrics().ptPerEm/t.sizeMultiplier;else if("mu"===e.unit)i=t.fontMetrics().cssEmPerMu;else{var n=t.style.isTight()?t.havingStyle(t.style.text()):t;if("ex"===e.unit)i=n.fontMetrics().xHeight;else{if("em"!==e.unit)throw new _("Invalid unit: '"+e.unit+"'");i=n.fontMetrics().quad}n!==t&&(i*=n.sizeMultiplier/t.sizeMultiplier)}return Math.min(e.number*i,t.maxSize)}function ge(e){return e.filter(e=>e).join(" ")}function fe(e,t,i){if(this.classes=e||[],this.attributes={},this.height=0,this.depth=0,this.maxFontSize=0,this.style=i||{},t){t.style.isTight()&&this.classes.push("mtight");const e=t.getColor();e&&(this.style.color=e)}}function me(e){var t=document.createElement(e);t.className=ge(this.classes);for(const e in this.style)this.style.hasOwnProperty(e)&&(t.style[e]=this.style[e]);for(const e in this.attributes)this.attributes.hasOwnProperty(e)&&t.setAttribute(e,this.attributes[e]);for(let e=0;e<this.children.length;e++)t.appendChild(this.children[e].toNode());return t}function ye(e){let t="<"+e,i=(this.classes.length&&(t+=' class="'+C.escape(ge(this.classes))+'"'),"");for(const e in this.style)this.style.hasOwnProperty(e)&&(i+=C.hyphenate(e)+":"+this.style[e]+";");i&&(t+=' style="'+C.escape(i)+'"');for(const e in this.attributes)this.attributes.hasOwnProperty(e)&&(t+=" "+e+'="'+C.escape(this.attributes[e])+'"');t+=">";for(let e=0;e<this.children.length;e++)t+=this.children[e].toMarkup();return t+="</"+e+">"}const be={pt:1,mm:7227/2540,cm:7227/254,in:72.27,bp:1.00375,pc:12,dd:1238/1157,cc:14856/1157,nd:685/642,nc:1370/107,sp:1/65536,px:1.00375},ve={ex:!0,em:!0,mu:!0},$=function(e){return+e.toFixed(4)+"em"};class xe{constructor(e,t,i,n){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.width=void 0,this.maxFontSize=void 0,this.style=void 0,fe.call(this,e,i,n),this.children=t||[]}setAttribute(e,t){this.attributes[e]=t}hasClass(e){return C.contains(this.classes,e)}toNode(){return me.call(this,"span")}toMarkup(){return ye.call(this,"span")}}class we{constructor(e,t,i,n){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,fe.call(this,t,n),this.children=i||[],this.setAttribute("href",e)}setAttribute(e,t){this.attributes[e]=t}hasClass(e){return C.contains(this.classes,e)}toNode(){return me.call(this,"a")}toMarkup(){return ye.call(this,"a")}}class ke{constructor(e,t,i){this.src=void 0,this.alt=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.alt=t,this.src=e,this.classes=["mord"],this.style=i}hasClass(e){return C.contains(this.classes,e)}toNode(){var e=document.createElement("img");e.src=this.src,e.alt=this.alt,e.className="mord";for(const t in this.style)this.style.hasOwnProperty(t)&&(e.style[t]=this.style[t]);return e}toMarkup(){let e='<img src="'+C.escape(this.src)+'" alt="'+C.escape(this.alt)+'"',t="";for(const e in this.style)this.style.hasOwnProperty(e)&&(t+=C.hyphenate(e)+":"+this.style[e]+";");return t&&(e+=' style="'+C.escape(t)+'"'),e+="'/>"}}const Te={"î":"ı̂","ï":"ı̈","í":"ı́","ì":"ı̀"};class g{constructor(e,t,i,n,r,s,a,o){this.text=void 0,this.height=void 0,this.depth=void 0,this.italic=void 0,this.skew=void 0,this.width=void 0,this.maxFontSize=void 0,this.classes=void 0,this.style=void 0,this.text=e,this.height=t||0,this.depth=i||0,this.italic=n||0,this.skew=r||0,this.width=s||0,this.classes=a||[],this.style=o||{},this.maxFontSize=0;e=function(t){for(let e=0;e<Q.length;e++){var i=Q[e];for(let e=0;e<i.blocks.length;e++){var n=i.blocks[e];if(t>=n[0]&&t<=n[1])return i.name}}return null}(this.text.charCodeAt(0));e&&this.classes.push(e+"_fallback"),/[\xee\xef\xed\xec]/.test(this.text)&&(this.text=Te[this.text])}hasClass(e){return C.contains(this.classes,e)}toNode(){const e=document.createTextNode(this.text);let t=null;0<this.italic&&((t=document.createElement("span")).style.marginRight=$(this.italic)),0<this.classes.length&&((t=t||document.createElement("span")).className=ge(this.classes));for(const e in this.style)this.style.hasOwnProperty(e)&&(t=t||document.createElement("span"),t.style[e]=this.style[e]);return t?(t.appendChild(e),t):e}toMarkup(){let e=!1,t="<span",i=(this.classes.length&&(e=!0,t=(t+=' class="')+C.escape(ge(this.classes))+'"'),"");0<this.italic&&(i+="margin-right:"+this.italic+"em;");for(const e in this.style)this.style.hasOwnProperty(e)&&(i+=C.hyphenate(e)+":"+this.style[e]+";");i&&(e=!0,t+=' style="'+C.escape(i)+'"');var n=C.escape(this.text);return e?t=(t+=">")+n+"</span>":n}}class Se{constructor(e,t){this.children=void 0,this.attributes=void 0,this.children=e||[],this.attributes=t||{}}toNode(){var t=document.createElementNS("http://www.w3.org/2000/svg","svg");for(const e in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,e)&&t.setAttribute(e,this.attributes[e]);for(let e=0;e<this.children.length;e++)t.appendChild(this.children[e].toNode());return t}toMarkup(){let t='<svg xmlns="http://www.w3.org/2000/svg"';for(const e in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,e)&&(t+=" "+e+'="'+C.escape(this.attributes[e])+'"');t+=">";for(let e=0;e<this.children.length;e++)t+=this.children[e].toMarkup();return t+="</svg>"}}class _e{constructor(e,t){this.pathName=void 0,this.alternate=void 0,this.pathName=e,this.alternate=t}toNode(){var e=document.createElementNS("http://www.w3.org/2000/svg","path");return this.alternate?e.setAttribute("d",this.alternate):e.setAttribute("d",te[this.pathName]),e}toMarkup(){return this.alternate?'<path d="'+C.escape(this.alternate)+'"/>':'<path d="'+C.escape(te[this.pathName])+'"/>'}}class Ce{constructor(e){this.attributes=void 0,this.attributes=e||{}}toNode(){var e=document.createElementNS("http://www.w3.org/2000/svg","line");for(const t in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,t)&&e.setAttribute(t,this.attributes[t]);return e}toMarkup(){let e="<line";for(const t in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,t)&&(e+=" "+t+'="'+C.escape(this.attributes[t])+'"');return e+="/>"}}function Ae(e){if(e instanceof g)return e;throw new Error("Expected symbolNode but got "+String(e)+".")}const Ee={bin:1,close:1,inner:1,open:1,punct:1,rel:1},$e={"accent-token":1,mathord:1,"op-token":1,spacing:1,textord:1},Le={math:{},text:{}};var u=Le;function i(e,t,i,n,r,s){Le[e][r]={font:t,group:i,replace:n},s&&n&&(Le[e][n]=Le[e][r])}var n="math",r="text",s="main",e="ams",a="accent-token",o="bin",l="close",Re="inner",c="mathord",h="op-token",d="open",Me="punct",p="rel",f="spacing",m="textord";i(n,s,p,"≡","\\equiv",!0),i(n,s,p,"≺","\\prec",!0),i(n,s,p,"≻","\\succ",!0),i(n,s,p,"∼","\\sim",!0),i(n,s,p,"⊥","\\perp"),i(n,s,p,"⪯","\\preceq",!0),i(n,s,p,"⪰","\\succeq",!0),i(n,s,p,"≃","\\simeq",!0),i(n,s,p,"∣","\\mid",!0),i(n,s,p,"≪","\\ll",!0),i(n,s,p,"≫","\\gg",!0),i(n,s,p,"≍","\\asymp",!0),i(n,s,p,"∥","\\parallel"),i(n,s,p,"⋈","\\bowtie",!0),i(n,s,p,"⌣","\\smile",!0),i(n,s,p,"⊑","\\sqsubseteq",!0),i(n,s,p,"⊒","\\sqsupseteq",!0),i(n,s,p,"≐","\\doteq",!0),i(n,s,p,"⌢","\\frown",!0),i(n,s,p,"∋","\\ni",!0),i(n,s,p,"∝","\\propto",!0),i(n,s,p,"⊢","\\vdash",!0),i(n,s,p,"⊣","\\dashv",!0),i(n,s,p,"∋","\\owns"),i(n,s,Me,".","\\ldotp"),i(n,s,Me,"⋅","\\cdotp"),i(n,s,m,"#","\\#"),i(r,s,m,"#","\\#"),i(n,s,m,"&","\\&"),i(r,s,m,"&","\\&"),i(n,s,m,"ℵ","\\aleph",!0),i(n,s,m,"∀","\\forall",!0),i(n,s,m,"ℏ","\\hbar",!0),i(n,s,m,"∃","\\exists",!0),i(n,s,m,"∇","\\nabla",!0),i(n,s,m,"♭","\\flat",!0),i(n,s,m,"ℓ","\\ell",!0),i(n,s,m,"♮","\\natural",!0),i(n,s,m,"♣","\\clubsuit",!0),i(n,s,m,"℘","\\wp",!0),i(n,s,m,"♯","\\sharp",!0),i(n,s,m,"♢","\\diamondsuit",!0),i(n,s,m,"ℜ","\\Re",!0),i(n,s,m,"♡","\\heartsuit",!0),i(n,s,m,"ℑ","\\Im",!0),i(n,s,m,"♠","\\spadesuit",!0),i(n,s,m,"§","\\S",!0),i(r,s,m,"§","\\S"),i(n,s,m,"¶","\\P",!0),i(r,s,m,"¶","\\P"),i(n,s,m,"†","\\dag"),i(r,s,m,"†","\\dag"),i(r,s,m,"†","\\textdagger"),i(n,s,m,"‡","\\ddag"),i(r,s,m,"‡","\\ddag"),i(r,s,m,"‡","\\textdaggerdbl"),i(n,s,l,"⎱","\\rmoustache",!0),i(n,s,d,"⎰","\\lmoustache",!0),i(n,s,l,"⟯","\\rgroup",!0),i(n,s,d,"⟮","\\lgroup",!0),i(n,s,o,"∓","\\mp",!0),i(n,s,o,"⊖","\\ominus",!0),i(n,s,o,"⊎","\\uplus",!0),i(n,s,o,"⊓","\\sqcap",!0),i(n,s,o,"∗","\\ast"),i(n,s,o,"⊔","\\sqcup",!0),i(n,s,o,"◯","\\bigcirc",!0),i(n,s,o,"∙","\\bullet",!0),i(n,s,o,"‡","\\ddagger"),i(n,s,o,"≀","\\wr",!0),i(n,s,o,"⨿","\\amalg"),i(n,s,o,"&","\\And"),i(n,s,p,"⟵","\\longleftarrow",!0),i(n,s,p,"⇐","\\Leftarrow",!0),i(n,s,p,"⟸","\\Longleftarrow",!0),i(n,s,p,"⟶","\\longrightarrow",!0),i(n,s,p,"⇒","\\Rightarrow",!0),i(n,s,p,"⟹","\\Longrightarrow",!0),i(n,s,p,"↔","\\leftrightarrow",!0),i(n,s,p,"⟷","\\longleftrightarrow",!0),i(n,s,p,"⇔","\\Leftrightarrow",!0),i(n,s,p,"⟺","\\Longleftrightarrow",!0),i(n,s,p,"↦","\\mapsto",!0),i(n,s,p,"⟼","\\longmapsto",!0),i(n,s,p,"↗","\\nearrow",!0),i(n,s,p,"↩","\\hookleftarrow",!0),i(n,s,p,"↪","\\hookrightarrow",!0),i(n,s,p,"↘","\\searrow",!0),i(n,s,p,"↼","\\leftharpoonup",!0),i(n,s,p,"⇀","\\rightharpoonup",!0),i(n,s,p,"↙","\\swarrow",!0),i(n,s,p,"↽","\\leftharpoondown",!0),i(n,s,p,"⇁","\\rightharpoondown",!0),i(n,s,p,"↖","\\nwarrow",!0),i(n,s,p,"⇌","\\rightleftharpoons",!0),i(n,e,p,"≮","\\nless",!0),i(n,e,p,"","\\@nleqslant"),i(n,e,p,"","\\@nleqq"),i(n,e,p,"⪇","\\lneq",!0),i(n,e,p,"≨","\\lneqq",!0),i(n,e,p,"","\\@lvertneqq"),i(n,e,p,"⋦","\\lnsim",!0),i(n,e,p,"⪉","\\lnapprox",!0),i(n,e,p,"⊀","\\nprec",!0),i(n,e,p,"⋠","\\npreceq",!0),i(n,e,p,"⋨","\\precnsim",!0),i(n,e,p,"⪹","\\precnapprox",!0),i(n,e,p,"≁","\\nsim",!0),i(n,e,p,"","\\@nshortmid"),i(n,e,p,"∤","\\nmid",!0),i(n,e,p,"⊬","\\nvdash",!0),i(n,e,p,"⊭","\\nvDash",!0),i(n,e,p,"⋪","\\ntriangleleft"),i(n,e,p,"⋬","\\ntrianglelefteq",!0),i(n,e,p,"⊊","\\subsetneq",!0),i(n,e,p,"","\\@varsubsetneq"),i(n,e,p,"⫋","\\subsetneqq",!0),i(n,e,p,"","\\@varsubsetneqq"),i(n,e,p,"≯","\\ngtr",!0),i(n,e,p,"","\\@ngeqslant"),i(n,e,p,"","\\@ngeqq"),i(n,e,p,"⪈","\\gneq",!0),i(n,e,p,"≩","\\gneqq",!0),i(n,e,p,"","\\@gvertneqq"),i(n,e,p,"⋧","\\gnsim",!0),i(n,e,p,"⪊","\\gnapprox",!0),i(n,e,p,"⊁","\\nsucc",!0),i(n,e,p,"⋡","\\nsucceq",!0),i(n,e,p,"⋩","\\succnsim",!0),i(n,e,p,"⪺","\\succnapprox",!0),i(n,e,p,"≆","\\ncong",!0),i(n,e,p,"","\\@nshortparallel"),i(n,e,p,"∦","\\nparallel",!0),i(n,e,p,"⊯","\\nVDash",!0),i(n,e,p,"⋫","\\ntriangleright"),i(n,e,p,"⋭","\\ntrianglerighteq",!0),i(n,e,p,"","\\@nsupseteqq"),i(n,e,p,"⊋","\\supsetneq",!0),i(n,e,p,"","\\@varsupsetneq"),i(n,e,p,"⫌","\\supsetneqq",!0),i(n,e,p,"","\\@varsupsetneqq"),i(n,e,p,"⊮","\\nVdash",!0),i(n,e,p,"⪵","\\precneqq",!0),i(n,e,p,"⪶","\\succneqq",!0),i(n,e,p,"","\\@nsubseteqq"),i(n,e,o,"⊴","\\unlhd"),i(n,e,o,"⊵","\\unrhd"),i(n,e,p,"↚","\\nleftarrow",!0),i(n,e,p,"↛","\\nrightarrow",!0),i(n,e,p,"⇍","\\nLeftarrow",!0),i(n,e,p,"⇏","\\nRightarrow",!0),i(n,e,p,"↮","\\nleftrightarrow",!0),i(n,e,p,"⇎","\\nLeftrightarrow",!0),i(n,e,p,"△","\\vartriangle"),i(n,e,m,"ℏ","\\hslash"),i(n,e,m,"▽","\\triangledown"),i(n,e,m,"◊","\\lozenge"),i(n,e,m,"Ⓢ","\\circledS"),i(n,e,m,"®","\\circledR"),i(r,e,m,"®","\\circledR"),i(n,e,m,"∡","\\measuredangle",!0),i(n,e,m,"∄","\\nexists"),i(n,e,m,"℧","\\mho"),i(n,e,m,"Ⅎ","\\Finv",!0),i(n,e,m,"⅁","\\Game",!0),i(n,e,m,"‵","\\backprime"),i(n,e,m,"▲","\\blacktriangle"),i(n,e,m,"▼","\\blacktriangledown"),i(n,e,m,"■","\\blacksquare"),i(n,e,m,"⧫","\\blacklozenge"),i(n,e,m,"★","\\bigstar"),i(n,e,m,"∢","\\sphericalangle",!0),i(n,e,m,"∁","\\complement",!0),i(n,e,m,"ð","\\eth",!0),i(r,s,m,"ð","ð"),i(n,e,m,"╱","\\diagup"),i(n,e,m,"╲","\\diagdown"),i(n,e,m,"□","\\square"),i(n,e,m,"□","\\Box"),i(n,e,m,"◊","\\Diamond"),i(n,e,m,"¥","\\yen",!0),i(r,e,m,"¥","\\yen",!0),i(n,e,m,"✓","\\checkmark",!0),i(r,e,m,"✓","\\checkmark"),i(n,e,m,"ℶ","\\beth",!0),i(n,e,m,"ℸ","\\daleth",!0),i(n,e,m,"ℷ","\\gimel",!0),i(n,e,m,"ϝ","\\digamma",!0),i(n,e,m,"ϰ","\\varkappa"),i(n,e,d,"┌","\\@ulcorner",!0),i(n,e,l,"┐","\\@urcorner",!0),i(n,e,d,"└","\\@llcorner",!0),i(n,e,l,"┘","\\@lrcorner",!0),i(n,e,p,"≦","\\leqq",!0),i(n,e,p,"⩽","\\leqslant",!0),i(n,e,p,"⪕","\\eqslantless",!0),i(n,e,p,"≲","\\lesssim",!0),i(n,e,p,"⪅","\\lessapprox",!0),i(n,e,p,"≊","\\approxeq",!0),i(n,e,o,"⋖","\\lessdot"),i(n,e,p,"⋘","\\lll",!0),i(n,e,p,"≶","\\lessgtr",!0),i(n,e,p,"⋚","\\lesseqgtr",!0),i(n,e,p,"⪋","\\lesseqqgtr",!0),i(n,e,p,"≑","\\doteqdot"),i(n,e,p,"≓","\\risingdotseq",!0),i(n,e,p,"≒","\\fallingdotseq",!0),i(n,e,p,"∽","\\backsim",!0),i(n,e,p,"⋍","\\backsimeq",!0),i(n,e,p,"⫅","\\subseteqq",!0),i(n,e,p,"⋐","\\Subset",!0),i(n,e,p,"⊏","\\sqsubset",!0),i(n,e,p,"≼","\\preccurlyeq",!0),i(n,e,p,"⋞","\\curlyeqprec",!0),i(n,e,p,"≾","\\precsim",!0),i(n,e,p,"⪷","\\precapprox",!0),i(n,e,p,"⊲","\\vartriangleleft"),i(n,e,p,"⊴","\\trianglelefteq"),i(n,e,p,"⊨","\\vDash",!0),i(n,e,p,"⊪","\\Vvdash",!0),i(n,e,p,"⌣","\\smallsmile"),i(n,e,p,"⌢","\\smallfrown"),i(n,e,p,"≏","\\bumpeq",!0),i(n,e,p,"≎","\\Bumpeq",!0),i(n,e,p,"≧","\\geqq",!0),i(n,e,p,"⩾","\\geqslant",!0),i(n,e,p,"⪖","\\eqslantgtr",!0),i(n,e,p,"≳","\\gtrsim",!0),i(n,e,p,"⪆","\\gtrapprox",!0),i(n,e,o,"⋗","\\gtrdot"),i(n,e,p,"⋙","\\ggg",!0),i(n,e,p,"≷","\\gtrless",!0),i(n,e,p,"⋛","\\gtreqless",!0),i(n,e,p,"⪌","\\gtreqqless",!0),i(n,e,p,"≖","\\eqcirc",!0),i(n,e,p,"≗","\\circeq",!0),i(n,e,p,"≜","\\triangleq",!0),i(n,e,p,"∼","\\thicksim"),i(n,e,p,"≈","\\thickapprox"),i(n,e,p,"⫆","\\supseteqq",!0),i(n,e,p,"⋑","\\Supset",!0),i(n,e,p,"⊐","\\sqsupset",!0),i(n,e,p,"≽","\\succcurlyeq",!0),i(n,e,p,"⋟","\\curlyeqsucc",!0),i(n,e,p,"≿","\\succsim",!0),i(n,e,p,"⪸","\\succapprox",!0),i(n,e,p,"⊳","\\vartriangleright"),i(n,e,p,"⊵","\\trianglerighteq"),i(n,e,p,"⊩","\\Vdash",!0),i(n,e,p,"∣","\\shortmid"),i(n,e,p,"∥","\\shortparallel"),i(n,e,p,"≬","\\between",!0),i(n,e,p,"⋔","\\pitchfork",!0),i(n,e,p,"∝","\\varpropto"),i(n,e,p,"◀","\\blacktriangleleft"),i(n,e,p,"∴","\\therefore",!0),i(n,e,p,"∍","\\backepsilon"),i(n,e,p,"▶","\\blacktriangleright"),i(n,e,p,"∵","\\because",!0),i(n,e,p,"⋘","\\llless"),i(n,e,p,"⋙","\\gggtr"),i(n,e,o,"⊲","\\lhd"),i(n,e,o,"⊳","\\rhd"),i(n,e,p,"≂","\\eqsim",!0),i(n,s,p,"⋈","\\Join"),i(n,e,p,"≑","\\Doteq",!0),i(n,e,o,"∔","\\dotplus",!0),i(n,e,o,"∖","\\smallsetminus"),i(n,e,o,"⋒","\\Cap",!0),i(n,e,o,"⋓","\\Cup",!0),i(n,e,o,"⩞","\\doublebarwedge",!0),i(n,e,o,"⊟","\\boxminus",!0),i(n,e,o,"⊞","\\boxplus",!0),i(n,e,o,"⋇","\\divideontimes",!0),i(n,e,o,"⋉","\\ltimes",!0),i(n,e,o,"⋊","\\rtimes",!0),i(n,e,o,"⋋","\\leftthreetimes",!0),i(n,e,o,"⋌","\\rightthreetimes",!0),i(n,e,o,"⋏","\\curlywedge",!0),i(n,e,o,"⋎","\\curlyvee",!0),i(n,e,o,"⊝","\\circleddash",!0),i(n,e,o,"⊛","\\circledast",!0),i(n,e,o,"⋅","\\centerdot"),i(n,e,o,"⊺","\\intercal",!0),i(n,e,o,"⋒","\\doublecap"),i(n,e,o,"⋓","\\doublecup"),i(n,e,o,"⊠","\\boxtimes",!0),i(n,e,p,"⇢","\\dashrightarrow",!0),i(n,e,p,"⇠","\\dashleftarrow",!0),i(n,e,p,"⇇","\\leftleftarrows",!0),i(n,e,p,"⇆","\\leftrightarrows",!0),i(n,e,p,"⇚","\\Lleftarrow",!0),i(n,e,p,"↞","\\twoheadleftarrow",!0),i(n,e,p,"↢","\\leftarrowtail",!0),i(n,e,p,"↫","\\looparrowleft",!0),i(n,e,p,"⇋","\\leftrightharpoons",!0),i(n,e,p,"↶","\\curvearrowleft",!0),i(n,e,p,"↺","\\circlearrowleft",!0),i(n,e,p,"↰","\\Lsh",!0),i(n,e,p,"⇈","\\upuparrows",!0),i(n,e,p,"↿","\\upharpoonleft",!0),i(n,e,p,"⇃","\\downharpoonleft",!0),i(n,s,p,"⊶","\\origof",!0),i(n,s,p,"⊷","\\imageof",!0),i(n,e,p,"⊸","\\multimap",!0),i(n,e,p,"↭","\\leftrightsquigarrow",!0),i(n,e,p,"⇉","\\rightrightarrows",!0),i(n,e,p,"⇄","\\rightleftarrows",!0),i(n,e,p,"↠","\\twoheadrightarrow",!0),i(n,e,p,"↣","\\rightarrowtail",!0),i(n,e,p,"↬","\\looparrowright",!0),i(n,e,p,"↷","\\curvearrowright",!0),i(n,e,p,"↻","\\circlearrowright",!0),i(n,e,p,"↱","\\Rsh",!0),i(n,e,p,"⇊","\\downdownarrows",!0),i(n,e,p,"↾","\\upharpoonright",!0),i(n,e,p,"⇂","\\downharpoonright",!0),i(n,e,p,"⇝","\\rightsquigarrow",!0),i(n,e,p,"⇝","\\leadsto"),i(n,e,p,"⇛","\\Rrightarrow",!0),i(n,e,p,"↾","\\restriction"),i(n,s,m,"‘","`"),i(n,s,m,"$","\\$"),i(r,s,m,"$","\\$"),i(r,s,m,"$","\\textdollar"),i(n,s,m,"%","\\%"),i(r,s,m,"%","\\%"),i(n,s,m,"_","\\_"),i(r,s,m,"_","\\_"),i(r,s,m,"_","\\textunderscore"),i(n,s,m,"∠","\\angle",!0),i(n,s,m,"∞","\\infty",!0),i(n,s,m,"′","\\prime"),i(n,s,m,"△","\\triangle"),i(n,s,m,"Γ","\\Gamma",!0),i(n,s,m,"Δ","\\Delta",!0),i(n,s,m,"Θ","\\Theta",!0),i(n,s,m,"Λ","\\Lambda",!0),i(n,s,m,"Ξ","\\Xi",!0),i(n,s,m,"Π","\\Pi",!0),i(n,s,m,"Σ","\\Sigma",!0),i(n,s,m,"Υ","\\Upsilon",!0),i(n,s,m,"Φ","\\Phi",!0),i(n,s,m,"Ψ","\\Psi",!0),i(n,s,m,"Ω","\\Omega",!0),i(n,s,m,"A","Α"),i(n,s,m,"B","Β"),i(n,s,m,"E","Ε"),i(n,s,m,"Z","Ζ"),i(n,s,m,"H","Η"),i(n,s,m,"I","Ι"),i(n,s,m,"K","Κ"),i(n,s,m,"M","Μ"),i(n,s,m,"N","Ν"),i(n,s,m,"O","Ο"),i(n,s,m,"P","Ρ"),i(n,s,m,"T","Τ"),i(n,s,m,"X","Χ"),i(n,s,m,"¬","\\neg",!0),i(n,s,m,"¬","\\lnot"),i(n,s,m,"⊤","\\top"),i(n,s,m,"⊥","\\bot"),i(n,s,m,"∅","\\emptyset"),i(n,e,m,"∅","\\varnothing"),i(n,s,c,"α","\\alpha",!0),i(n,s,c,"β","\\beta",!0),i(n,s,c,"γ","\\gamma",!0),i(n,s,c,"δ","\\delta",!0),i(n,s,c,"ϵ","\\epsilon",!0),i(n,s,c,"ζ","\\zeta",!0),i(n,s,c,"η","\\eta",!0),i(n,s,c,"θ","\\theta",!0),i(n,s,c,"ι","\\iota",!0),i(n,s,c,"κ","\\kappa",!0),i(n,s,c,"λ","\\lambda",!0),i(n,s,c,"μ","\\mu",!0),i(n,s,c,"ν","\\nu",!0),i(n,s,c,"ξ","\\xi",!0),i(n,s,c,"ο","\\omicron",!0),i(n,s,c,"π","\\pi",!0),i(n,s,c,"ρ","\\rho",!0),i(n,s,c,"σ","\\sigma",!0),i(n,s,c,"τ","\\tau",!0),i(n,s,c,"υ","\\upsilon",!0),i(n,s,c,"ϕ","\\phi",!0),i(n,s,c,"χ","\\chi",!0),i(n,s,c,"ψ","\\psi",!0),i(n,s,c,"ω","\\omega",!0),i(n,s,c,"ε","\\varepsilon",!0),i(n,s,c,"ϑ","\\vartheta",!0),i(n,s,c,"ϖ","\\varpi",!0),i(n,s,c,"ϱ","\\varrho",!0),i(n,s,c,"ς","\\varsigma",!0),i(n,s,c,"φ","\\varphi",!0),i(n,s,o,"∗","*",!0),i(n,s,o,"+","+"),i(n,s,o,"−","-",!0),i(n,s,o,"⋅","\\cdot",!0),i(n,s,o,"∘","\\circ",!0),i(n,s,o,"÷","\\div",!0),i(n,s,o,"±","\\pm",!0),i(n,s,o,"×","\\times",!0),i(n,s,o,"∩","\\cap",!0),i(n,s,o,"∪","\\cup",!0),i(n,s,o,"∖","\\setminus",!0),i(n,s,o,"∧","\\land"),i(n,s,o,"∨","\\lor"),i(n,s,o,"∧","\\wedge",!0),i(n,s,o,"∨","\\vee",!0),i(n,s,m,"√","\\surd"),i(n,s,d,"⟨","\\langle",!0),i(n,s,d,"∣","\\lvert"),i(n,s,d,"∥","\\lVert"),i(n,s,l,"?","?"),i(n,s,l,"!","!"),i(n,s,l,"⟩","\\rangle",!0),i(n,s,l,"∣","\\rvert"),i(n,s,l,"∥","\\rVert"),i(n,s,p,"=","="),i(n,s,p,":",":"),i(n,s,p,"≈","\\approx",!0),i(n,s,p,"≅","\\cong",!0),i(n,s,p,"≥","\\ge"),i(n,s,p,"≥","\\geq",!0),i(n,s,p,"←","\\gets"),i(n,s,p,">","\\gt",!0),i(n,s,p,"∈","\\in",!0),i(n,s,p,"","\\@not"),i(n,s,p,"⊂","\\subset",!0),i(n,s,p,"⊃","\\supset",!0),i(n,s,p,"⊆","\\subseteq",!0),i(n,s,p,"⊇","\\supseteq",!0),i(n,e,p,"⊈","\\nsubseteq",!0),i(n,e,p,"⊉","\\nsupseteq",!0),i(n,s,p,"⊨","\\models"),i(n,s,p,"←","\\leftarrow",!0),i(n,s,p,"≤","\\le"),i(n,s,p,"≤","\\leq",!0),i(n,s,p,"<","\\lt",!0),i(n,s,p,"→","\\rightarrow",!0),i(n,s,p,"→","\\to"),i(n,e,p,"≱","\\ngeq",!0),i(n,e,p,"≰","\\nleq",!0),i(n,s,f," ","\\ "),i(n,s,f," ","\\space"),i(n,s,f," ","\\nobreakspace"),i(r,s,f," ","\\ "),i(r,s,f," "," "),i(r,s,f," ","\\space"),i(r,s,f," ","\\nobreakspace"),i(n,s,f,null,"\\nobreak"),i(n,s,f,null,"\\allowbreak"),i(n,s,Me,",",","),i(n,s,Me,";",";"),i(n,e,o,"⊼","\\barwedge",!0),i(n,e,o,"⊻","\\veebar",!0),i(n,s,o,"⊙","\\odot",!0),i(n,s,o,"⊕","\\oplus",!0),i(n,s,o,"⊗","\\otimes",!0),i(n,s,m,"∂","\\partial",!0),i(n,s,o,"⊘","\\oslash",!0),i(n,e,o,"⊚","\\circledcirc",!0),i(n,e,o,"⊡","\\boxdot",!0),i(n,s,o,"△","\\bigtriangleup"),i(n,s,o,"▽","\\bigtriangledown"),i(n,s,o,"†","\\dagger"),i(n,s,o,"⋄","\\diamond"),i(n,s,o,"⋆","\\star"),i(n,s,o,"◃","\\triangleleft"),i(n,s,o,"▹","\\triangleright"),i(n,s,d,"{","\\{"),i(r,s,m,"{","\\{"),i(r,s,m,"{","\\textbraceleft"),i(n,s,l,"}","\\}"),i(r,s,m,"}","\\}"),i(r,s,m,"}","\\textbraceright"),i(n,s,d,"{","\\lbrace"),i(n,s,l,"}","\\rbrace"),i(n,s,d,"[","\\lbrack",!0),i(r,s,m,"[","\\lbrack",!0),i(n,s,l,"]","\\rbrack",!0),i(r,s,m,"]","\\rbrack",!0),i(n,s,d,"(","\\lparen",!0),i(n,s,l,")","\\rparen",!0),i(r,s,m,"<","\\textless",!0),i(r,s,m,">","\\textgreater",!0),i(n,s,d,"⌊","\\lfloor",!0),i(n,s,l,"⌋","\\rfloor",!0),i(n,s,d,"⌈","\\lceil",!0),i(n,s,l,"⌉","\\rceil",!0),i(n,s,m,"\\","\\backslash"),i(n,s,m,"∣","|"),i(n,s,m,"∣","\\vert"),i(r,s,m,"|","\\textbar",!0),i(n,s,m,"∥","\\|"),i(n,s,m,"∥","\\Vert"),i(r,s,m,"∥","\\textbardbl"),i(r,s,m,"~","\\textasciitilde"),i(r,s,m,"\\","\\textbackslash"),i(r,s,m,"^","\\textasciicircum"),i(n,s,p,"↑","\\uparrow",!0),i(n,s,p,"⇑","\\Uparrow",!0),i(n,s,p,"↓","\\downarrow",!0),i(n,s,p,"⇓","\\Downarrow",!0),i(n,s,p,"↕","\\updownarrow",!0),i(n,s,p,"⇕","\\Updownarrow",!0),i(n,s,h,"∐","\\coprod"),i(n,s,h,"⋁","\\bigvee"),i(n,s,h,"⋀","\\bigwedge"),i(n,s,h,"⨄","\\biguplus"),i(n,s,h,"⋂","\\bigcap"),i(n,s,h,"⋃","\\bigcup"),i(n,s,h,"∫","\\int"),i(n,s,h,"∫","\\intop"),i(n,s,h,"∬","\\iint"),i(n,s,h,"∭","\\iiint"),i(n,s,h,"∏","\\prod"),i(n,s,h,"∑","\\sum"),i(n,s,h,"⨂","\\bigotimes"),i(n,s,h,"⨁","\\bigoplus"),i(n,s,h,"⨀","\\bigodot"),i(n,s,h,"∮","\\oint"),i(n,s,h,"∯","\\oiint"),i(n,s,h,"∰","\\oiiint"),i(n,s,h,"⨆","\\bigsqcup"),i(n,s,h,"∫","\\smallint"),i(r,s,Re,"…","\\textellipsis"),i(n,s,Re,"…","\\mathellipsis"),i(r,s,Re,"…","\\ldots",!0),i(n,s,Re,"…","\\ldots",!0),i(n,s,Re,"⋯","\\@cdots",!0),i(n,s,Re,"⋱","\\ddots",!0),i(n,s,m,"⋮","\\varvdots"),i(n,s,a,"ˊ","\\acute"),i(n,s,a,"ˋ","\\grave"),i(n,s,a,"¨","\\ddot"),i(n,s,a,"~","\\tilde"),i(n,s,a,"ˉ","\\bar"),i(n,s,a,"˘","\\breve"),i(n,s,a,"ˇ","\\check"),i(n,s,a,"^","\\hat"),i(n,s,a,"⃗","\\vec"),i(n,s,a,"˙","\\dot"),i(n,s,a,"˚","\\mathring"),i(n,s,c,"","\\@imath"),i(n,s,c,"","\\@jmath"),i(n,s,m,"ı","ı"),i(n,s,m,"ȷ","ȷ"),i(r,s,m,"ı","\\i",!0),i(r,s,m,"ȷ","\\j",!0),i(r,s,m,"ß","\\ss",!0),i(r,s,m,"æ","\\ae",!0),i(r,s,m,"œ","\\oe",!0),i(r,s,m,"ø","\\o",!0),i(r,s,m,"Æ","\\AE",!0),i(r,s,m,"Œ","\\OE",!0),i(r,s,m,"Ø","\\O",!0),i(r,s,a,"ˊ","\\'"),i(r,s,a,"ˋ","\\`"),i(r,s,a,"ˆ","\\^"),i(r,s,a,"˜","\\~"),i(r,s,a,"ˉ","\\="),i(r,s,a,"˘","\\u"),i(r,s,a,"˙","\\."),i(r,s,a,"¸","\\c"),i(r,s,a,"˚","\\r"),i(r,s,a,"ˇ","\\v"),i(r,s,a,"¨",'\\"'),i(r,s,a,"˝","\\H"),i(r,s,a,"◯","\\textcircled");const Ie={"--":!0,"---":!0,"``":!0,"''":!0};i(r,s,m,"–","--",!0),i(r,s,m,"–","\\textendash"),i(r,s,m,"—","---",!0),i(r,s,m,"—","\\textemdash"),i(r,s,m,"‘","`",!0),i(r,s,m,"‘","\\textquoteleft"),i(r,s,m,"’","'",!0),i(r,s,m,"’","\\textquoteright"),i(r,s,m,"“","``",!0),i(r,s,m,"“","\\textquotedblleft"),i(r,s,m,"”","''",!0),i(r,s,m,"”","\\textquotedblright"),i(n,s,m,"°","\\degree",!0),i(r,s,m,"°","\\degree"),i(r,s,m,"°","\\textdegree",!0),i(n,s,m,"£","\\pounds"),i(n,s,m,"£","\\mathsterling",!0),i(r,s,m,"£","\\pounds"),i(r,s,m,"£","\\textsterling",!0),i(n,e,m,"✠","\\maltese"),i(r,e,m,"✠","\\maltese");var Ne='0123456789/@."';for(let e=0;e<Ne.length;e++){const t=Ne.charAt(e);i(n,s,m,t,t)}var De='0123456789!@*()-=+";:?/.,';for(let e=0;e<De.length;e++){const t=De.charAt(e);i(r,s,m,t,t)}var Oe="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";for(let e=0;e<Oe.length;e++){const t=Oe.charAt(e);i(n,s,c,t,t),i(r,s,m,t,t)}i(n,e,m,"C","ℂ"),i(r,e,m,"C","ℂ"),i(n,e,m,"H","ℍ"),i(r,e,m,"H","ℍ"),i(n,e,m,"N","ℕ"),i(r,e,m,"N","ℕ"),i(n,e,m,"P","ℙ"),i(r,e,m,"P","ℙ"),i(n,e,m,"Q","ℚ"),i(r,e,m,"Q","ℚ"),i(n,e,m,"R","ℝ"),i(r,e,m,"R","ℝ"),i(n,e,m,"Z","ℤ"),i(r,e,m,"Z","ℤ"),i(n,s,c,"h","ℎ"),i(r,s,c,"h","ℎ");let y="";for(let e=0;e<Oe.length;e++){const t=Oe.charAt(e);i(n,s,c,t,y=String.fromCharCode(55349,56320+e)),i(r,s,m,t,y),i(n,s,c,t,y=String.fromCharCode(55349,56372+e)),i(r,s,m,t,y),i(n,s,c,t,y=String.fromCharCode(55349,56424+e)),i(r,s,m,t,y),i(n,s,c,t,y=String.fromCharCode(55349,56580+e)),i(r,s,m,t,y),i(n,s,c,t,y=String.fromCharCode(55349,56684+e)),i(r,s,m,t,y),i(n,s,c,t,y=String.fromCharCode(55349,56736+e)),i(r,s,m,t,y),i(n,s,c,t,y=String.fromCharCode(55349,56788+e)),i(r,s,m,t,y),i(n,s,c,t,y=String.fromCharCode(55349,56840+e)),i(r,s,m,t,y),i(n,s,c,t,y=String.fromCharCode(55349,56944+e)),i(r,s,m,t,y),e<26&&(i(n,s,c,t,y=String.fromCharCode(55349,56632+e)),i(r,s,m,t,y),i(n,s,c,t,y=String.fromCharCode(55349,56476+e)),i(r,s,m,t,y))}i(n,s,c,"k",y=String.fromCharCode(55349,56668)),i(r,s,m,"k",y);for(let e=0;e<10;e++){const t=e.toString();i(n,s,c,t,y=String.fromCharCode(55349,57294+e)),i(r,s,m,t,y),i(n,s,c,t,y=String.fromCharCode(55349,57314+e)),i(r,s,m,t,y),i(n,s,c,t,y=String.fromCharCode(55349,57324+e)),i(r,s,m,t,y),i(n,s,c,t,y=String.fromCharCode(55349,57334+e)),i(r,s,m,t,y)}for(let e=0;e<"ÐÞþ".length;e++){const t="ÐÞþ".charAt(e);i(n,s,c,t,t),i(r,s,m,t,t)}function Pe(e,t,i){return{value:e=u[i][e]&&u[i][e].replace?u[i][e].replace:e,metrics:ae(e,t,i)}}function Be(t,e,i,n,r){var s=Pe(t,e,i),a=s.metrics;let o;if(t=s.value,a){let e=a.italic;("text"===i||n&&"mathit"===n.font)&&(e=0),o=new g(t,a.height,a.depth,e,a.skew,a.width,r)}else"undefined"!=typeof console&&console.warn("No character metrics for '"+t+"' in style '"+e+"' and mode '"+i+"'"),o=new g(t,0,0,0,0,0,r);if(n){o.maxFontSize=n.sizeMultiplier,n.style.isTight()&&o.classes.push("mtight");const t=n.getColor();t&&(o.style.color=t)}return o}function Fe(t){let i=0,n=0,r=0;for(let e=0;e<t.children.length;e++){var s=t.children[e];s.height>i&&(i=s.height),s.depth>n&&(n=s.depth),s.maxFontSize>r&&(r=s.maxFontSize)}t.height=i,t.depth=n,t.maxFontSize=r}function b(e,t,i,n){return e=new xe(e,t,i,n),Fe(e),e}function je(e){return e=new ie(e),Fe(e),e}function ze(e,t,i){let n="";switch(e){case"amsrm":n="AMS";break;case"textrm":n="Main";break;case"textsf":n="SansSerif";break;case"texttt":n="Typewriter";break;default:n=e}return n+"-"+("textbf"===t&&"textit"===i?"BoldItalic":"textbf"===t?"Bold":"textit"===t?"Italic":"Regular")}const He=[["mathbf","textbf","Main-Bold"],["mathbf","textbf","Main-Bold"],["mathnormal","textit","Math-Italic"],["mathnormal","textit","Math-Italic"],["boldsymbol","boldsymbol","Main-BoldItalic"],["boldsymbol","boldsymbol","Main-BoldItalic"],["mathscr","textscr","Script-Regular"],["","",""],["","",""],["","",""],["mathfrak","textfrak","Fraktur-Regular"],["mathfrak","textfrak","Fraktur-Regular"],["mathbb","textbb","AMS-Regular"],["mathbb","textbb","AMS-Regular"],["mathboldfrak","textboldfrak","Fraktur-Regular"],["mathboldfrak","textboldfrak","Fraktur-Regular"],["mathsf","textsf","SansSerif-Regular"],["mathsf","textsf","SansSerif-Regular"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathitsf","textitsf","SansSerif-Italic"],["mathitsf","textitsf","SansSerif-Italic"],["","",""],["","",""],["mathtt","texttt","Typewriter-Regular"],["mathtt","texttt","Typewriter-Regular"]],Ue=[["mathbf","textbf","Main-Bold"],["","",""],["mathsf","textsf","SansSerif-Regular"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathtt","texttt","Typewriter-Regular"]],qe=(e,t,i,n)=>new xe(e,t,i,n),We={mathbf:{variant:"bold",fontName:"Main-Bold"},mathrm:{variant:"normal",fontName:"Main-Regular"},textit:{variant:"italic",fontName:"Main-Italic"},mathit:{variant:"italic",fontName:"Main-Italic"},mathnormal:{variant:"italic",fontName:"Math-Italic"},mathbb:{variant:"double-struck",fontName:"AMS-Regular"},mathcal:{variant:"script",fontName:"Caligraphic-Regular"},mathfrak:{variant:"fraktur",fontName:"Fraktur-Regular"},mathscr:{variant:"script",fontName:"Script-Regular"},mathsf:{variant:"sans-serif",fontName:"SansSerif-Regular"},mathtt:{variant:"monospace",fontName:"Typewriter-Regular"}},Ve={vec:["vec",.471,.714],oiintSize1:["oiintSize1",.957,.499],oiintSize2:["oiintSize2",1.472,.659],oiiintSize1:["oiiintSize1",1.304,.499],oiiintSize2:["oiiintSize2",1.98,.659]};var L={fontMap:We,makeSymbol:Be,mathsym:function(e,t,i,n){return void 0===n&&(n=[]),"boldsymbol"===i.font&&Pe(e,"Main-Bold",t).metrics?Be(e,"Main-Bold",t,i,n.concat(["mathbf"])):"\\"===e||"main"===u[t][e].font?Be(e,"Main-Regular",t,i,n):Be(e,"AMS-Regular",t,i,n.concat(["amsrm"]))},makeSpan:b,makeSvgSpan:qe,makeLineSpan:function(e,t,i){e=b([e],[],t);return e.height=Math.max(i||t.fontMetrics().defaultRuleThickness,t.minRuleThickness),e.style.borderBottomWidth=$(e.height),e.maxFontSize=1,e},makeAnchor:function(e,t,i,n){e=new we(e,t,i,n);return Fe(e),e},makeFragment:je,wrapFragment:function(e,t){return e instanceof ie?b([],[e],t):e},makeVList:function(t,i){const{children:n,depth:r}=function(i){if("individualShift"===i.positionType){const s=i.children,o=[s[0]],l=-s[0].shift-s[0].elem.depth;let t=l;for(let e=1;e<s.length;e++){var n=-s[e].shift-t-s[e].elem.depth,r=n-(s[e-1].elem.height+s[e-1].elem.depth);t+=n,o.push({type:"kern",size:r}),o.push(s[e])}return{children:o,depth:l}}let s;if("top"===i.positionType){let t=i.positionData;for(let e=0;e<i.children.length;e++){var a=i.children[e];t-="kern"===a.type?a.size:a.elem.height+a.elem.depth}s=t}else if("bottom"===i.positionType)s=-i.positionData;else{var e=i.children[0];if("elem"!==e.type)throw new Error('First child must have type "elem".');if("shift"===i.positionType)s=-e.elem.depth-i.positionData;else{if("firstBaseline"!==i.positionType)throw new Error("Invalid positionType "+i.positionType+".");s=-e.elem.depth}}return{children:i.children,depth:s}}(t);let s=0;for(let e=0;e<n.length;e++){const i=n[e];if("elem"===i.type){const t=i.elem;s=Math.max(s,t.maxFontSize,t.height)}}s+=2;var a=b(["pstrut"],[]),o=(a.style.height=$(s),[]);let l=r,c=r,h=r;for(let e=0;e<n.length;e++){const i=n[e];if("kern"===i.type)h+=i.size;else{const t=i.elem,n=i.wrapperClasses||[],r=i.wrapperStyle||{},l=b(n,[a,t],void 0,r);l.style.top=$(-s-h-t.depth),i.marginLeft&&(l.style.marginLeft=i.marginLeft),i.marginRight&&(l.style.marginRight=i.marginRight),o.push(l),h+=t.height+t.depth}l=Math.min(l,h),c=Math.max(c,h)}var e=b(["vlist"],o);let u;if(e.style.height=$(c),l<0){const t=b([],[]),i=b(["vlist"],[t]),n=(i.style.height=$(-l),b(["vlist-s"],[new g("")]));u=[b(["vlist-r"],[e,n]),b(["vlist-r"],[i])]}else u=[b(["vlist-r"],[e])];t=b(["vlist-t"],u);return 2===u.length&&t.classes.push("vlist-t2"),t.height=c,t.depth=-l,t},makeOrd:function(e,n,r){var s,a,o=e.mode,l=e.text,c=["mord"],e="math"===o||"text"===o&&n.font,h=e?n.font:n.fontFamily;let t="",i="";if(55349===l.charCodeAt(0)&&([t,i]=function(e,t){var i=1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320)+65536,t="math"===t?0:1;if(119808<=i&&i<120484){const e=Math.floor((i-119808)/26);return[He[e][2],He[e][t]]}if(120782<=i&&i<=120831){const e=Math.floor((i-120782)/10);return[Ue[e][2],Ue[e][t]]}if(120485==i||120486==i)return[He[0][2],He[0][t]];if(120486<i&&i<120782)return["",""];throw new _("Unsupported character: "+e)}(l,o)),0<t.length)return Be(l,t,o,n,c.concat(i));if(h){let t,i;if("boldsymbol"===h){s=l,a=o;const n="textord"!==r&&Pe(s,"Math-BoldItalic",a).metrics?{fontName:"Math-BoldItalic",fontClass:"boldsymbol"}:{fontName:"Main-Bold",fontClass:"mathbf"};t=n.fontName,i=[n.fontClass]}else i=e?(t=We[h].fontName,[h]):(t=ze(h,n.fontWeight,n.fontShape),[h,n.fontWeight,n.fontShape]);if(Pe(l,t,o).metrics)return Be(l,t,o,n,c.concat(i));if(Ie.hasOwnProperty(l)&&"Typewriter"===t.slice(0,10)){const r=[];for(let e=0;e<l.length;e++)r.push(Be(l[e],t,o,n,c.concat(i)));return je(r)}}if("mathord"===r)return Be(l,"Math-Italic",o,n,c.concat(["mathnormal"]));if("textord"!==r)throw new Error("unexpected type: "+r+" in makeOrd");{const e=u[o][l]&&u[o][l].font;if("ams"===e){const e=ze("amsrm",n.fontWeight,n.fontShape);return Be(l,e,o,n,c.concat("amsrm",n.fontWeight,n.fontShape))}if("main"!==e&&e){const r=ze(e,n.fontWeight,n.fontShape);return Be(l,r,o,n,c.concat(r,n.fontWeight,n.fontShape))}{const e=ze("textrm",n.fontWeight,n.fontShape);return Be(l,e,o,n,c.concat(n.fontWeight,n.fontShape))}}},makeGlue:(e,t)=>{var i=b(["mspace"],[],t),e=E(e,t);return i.style.marginRight=$(e),i},staticSvg:function(e,t){var[e,i,n]=Ve[e],e=new _e(e),e=new Se([e],{width:$(i),height:$(n),style:"width:"+$(i),viewBox:"0 0 "+1e3*i+" "+1e3*n,preserveAspectRatio:"xMinYMin"}),e=qe(["overlay"],[e],t);return e.height=n,e.style.height=$(n),e.style.width=$(i),e},svgData:Ve,tryCombineChars:t=>{for(let e=0;e<t.length-1;e++){var i=t[e],n=t[e+1];i instanceof g&&n instanceof g&&((e,t)=>{if(ge(e.classes)!==ge(t.classes)||e.skew!==t.skew||e.maxFontSize!==t.maxFontSize)return!1;if(1===e.classes.length){const t=e.classes[0];if("mbin"===t||"mord"===t)return!1}for(const i in e.style)if(e.style.hasOwnProperty(i)&&e.style[i]!==t.style[i])return!1;for(const n in t.style)if(t.style.hasOwnProperty(n)&&e.style[n]!==t.style[n])return!1;return!0})(i,n)&&(i.text+=n.text,i.height=Math.max(i.height,n.height),i.depth=Math.max(i.depth,n.depth),i.italic=n.italic,t.splice(e+1,1),e--)}return t}};const v={number:3,unit:"mu"},Ge={number:4,unit:"mu"},Ye={number:5,unit:"mu"},Xe={mord:{mop:v,mbin:Ge,mrel:Ye,minner:v},mop:{mord:v,mop:v,mrel:Ye,minner:v},mbin:{mord:Ge,mop:Ge,mopen:Ge,minner:Ge},mrel:{mord:Ye,mop:Ye,mopen:Ye,minner:Ye},mopen:{},mclose:{mop:v,mbin:Ge,mrel:Ye,minner:v},mpunct:{mord:v,mop:v,mrel:Ye,mopen:v,mclose:v,mpunct:v,minner:v},minner:{mord:v,mop:v,mbin:Ge,mrel:Ye,mopen:v,mpunct:v,minner:v}},Ke={mord:{mop:v},mop:{mord:v,mop:v},mbin:{},mrel:{},mopen:{},mclose:{mop:v},mpunct:{},minner:{mop:v}},Ze={},Qe={},Je={};function x(e){var{type:e,names:t,props:i,handler:n,htmlBuilder:r,mathmlBuilder:s}=e,a={type:e,numArgs:i.numArgs,argTypes:i.argTypes,allowedInArgument:!!i.allowedInArgument,allowedInText:!!i.allowedInText,allowedInMath:void 0===i.allowedInMath||i.allowedInMath,numOptionalArgs:i.numOptionalArgs||0,infix:!!i.infix,primitive:!!i.primitive,handler:n};for(let e=0;e<t.length;++e)Ze[t[e]]=a;e&&(r&&(Qe[e]=r),s)&&(Je[e]=s)}function et(e){var{type:e,htmlBuilder:t,mathmlBuilder:i}=e;x({type:e,names:[],props:{numArgs:0},handler(){throw new Error("Should never be called.")},htmlBuilder:t,mathmlBuilder:i})}function tt(e){return"ordgroup"===e.type&&1===e.body.length?e.body[0]:e}function w(e){return"ordgroup"===e.type?e.body:[e]}function R(t,i,e,r){void 0===r&&(r=[null,null]);var s=[];for(let e=0;e<t.length;e++){const r=M(t[e],i);if(r instanceof ie){const t=r.children;s.push(...t)}else s.push(r)}if(L.tryCombineChars(s),e){let n=i;if(1===t.length){const e=t[0];"sizing"===e.type?n=i.havingSize(e.size):"styling"===e.type&&(n=i.havingStyle(at[e.style]))}var a=nt([r[0]||"leftmost"],[],i),r=nt([r[1]||"rightmost"],[],i),e="root"===e;lt(s,(e,t)=>{var i=t.classes[0],n=e.classes[0];"mbin"===i&&C.contains(st,n)?t.classes[0]="mord":"mbin"===n&&C.contains(rt,i)&&(e.classes[0]="mord")},{node:a},r,e),lt(s,(e,t)=>{var t=ut(t),i=ut(e),e=t&&i?(e.hasClass("mtight")?Ke:Xe)[t][i]:null;if(e)return L.makeGlue(e,n)},{node:a},r,e)}return s}function it(e,t){return e=["nulldelimiter"].concat(e.baseSizingClasses()),nt(t.concat(e))}const nt=L.makeSpan,rt=["leftmost","mbin","mopen","mrel","mop","mpunct"],st=["rightmost","mrel","mclose","mpunct"],at={display:A.DISPLAY,text:A.TEXT,script:A.SCRIPT,scriptscript:A.SCRIPTSCRIPT},ot={mord:"mord",mop:"mop",mbin:"mbin",mrel:"mrel",mopen:"mopen",mclose:"mclose",mpunct:"mpunct",minner:"minner"},lt=function(i,e,t,n,r){n&&i.push(n);let s=0;for(;s<i.length;s++){const n=i[s],o=ct(n);if(o)lt(o.children,e,t,null,r);else{var a=!n.hasClass("mspace");if(a){const r=e(n,t.node);r&&(t.insertAfter?t.insertAfter(r):(i.unshift(r),s++))}a?t.node=n:r&&n.hasClass("newline")&&(t.node=nt(["leftmost"])),t.insertAfter=(t=>e=>{i.splice(t+1,0,e),s++})(s)}}n&&i.pop()},ct=function(e){return e instanceof ie||e instanceof we||e instanceof xe&&e.hasClass("enclosing")?e:null},ht=function(e,t){var i=ct(e);if(i){const e=i.children;if(e.length){if("right"===t)return ht(e[e.length-1],"right");if("left"===t)return ht(e[0],"left")}}return e},ut=function(e,t){return e&&(t&&(e=ht(e,t)),ot[e.classes[0]])||null},M=function(t,i,n){if(!t)return nt();if(Qe[t.type]){let e=Qe[t.type](t,i);if(n&&i.size!==n.size){e=nt(i.sizingClasses(n),[e],i);const t=i.sizeMultiplier/n.sizeMultiplier;e.height*=t,e.depth*=t}return e}throw new _("Got group of unknown type: '"+t.type+"'")};function dt(e,t){e=nt(["base"],e,t),t=nt(["strut"]);return t.style.height=$(e.height+e.depth),e.depth&&(t.style.verticalAlign=$(-e.depth)),e.children.unshift(t),e}function pt(e,i){let t=null;1===e.length&&"tag"===e[0].type&&(t=e[0].tag,e=e[0].body);var n=R(e,i,"root");let r;2===n.length&&n[1].hasClass("tag")&&(r=n.pop());var s=[];let a,o=[];for(let t=0;t<n.length;t++)if(o.push(n[t]),n[t].hasClass("mbin")||n[t].hasClass("mrel")||n[t].hasClass("allowbreak")){let e=!1;for(;t<n.length-1&&n[t+1].hasClass("mspace")&&!n[t+1].hasClass("newline");)t++,o.push(n[t]),n[t].hasClass("nobreak")&&(e=!0);e||(s.push(dt(o,i)),o=[])}else n[t].hasClass("newline")&&(o.pop(),0<o.length&&(s.push(dt(o,i)),o=[]),s.push(n[t]));0<o.length&&s.push(dt(o,i)),t?((a=dt(R(t,i,!0))).classes=["tag"],s.push(a)):r&&s.push(r);var l=nt(["katex-html"],s);if(l.setAttribute("aria-hidden","true"),a){const e=a.children[0];e.style.height=$(l.height+l.depth),l.depth&&(e.style.verticalAlign=$(-l.depth))}return l}function gt(e){return new ie(e)}class k{constructor(e,t,i){this.type=void 0,this.attributes=void 0,this.children=void 0,this.classes=void 0,this.type=e,this.attributes={},this.children=t||[],this.classes=i||[]}setAttribute(e,t){this.attributes[e]=t}getAttribute(e){return this.attributes[e]}toNode(){var t=document.createElementNS("http://www.w3.org/1998/Math/MathML",this.type);for(const e in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,e)&&t.setAttribute(e,this.attributes[e]);0<this.classes.length&&(t.className=ge(this.classes));for(let e=0;e<this.children.length;e++)t.appendChild(this.children[e].toNode());return t}toMarkup(){let t="<"+this.type;for(const e in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,e)&&(t+=" "+e+'="',t+=C.escape(this.attributes[e]),t+='"');0<this.classes.length&&(t+=' class ="'+C.escape(ge(this.classes))+'"'),t+=">";for(let e=0;e<this.children.length;e++)t+=this.children[e].toMarkup();return t+="</"+this.type+">"}toText(){return this.children.map(e=>e.toText()).join("")}}class ft{constructor(e){this.text=void 0,this.text=e}toNode(){return document.createTextNode(this.text)}toMarkup(){return C.escape(this.toText())}toText(){return this.text}}var T={MathNode:k,TextNode:ft,SpaceNode:class{constructor(e){this.width=void 0,this.character=void 0,this.width=e,this.character=.05555<=e&&e<=.05556?" ":.1666<=e&&e<=.1667?" ":.2222<=e&&e<=.2223?" ":.2777<=e&&e<=.2778?" ":-.05556<=e&&e<=-.05555?" ":-.1667<=e&&e<=-.1666?" ":-.2223<=e&&e<=-.2222?" ":-.2778<=e&&e<=-.2777?" ":null}toNode(){var e;return this.character?document.createTextNode(this.character):((e=document.createElementNS("http://www.w3.org/1998/Math/MathML","mspace")).setAttribute("width",$(this.width)),e)}toMarkup(){return this.character?"<mtext>"+this.character+"</mtext>":'<mspace width="'+$(this.width)+'"/>'}toText(){return this.character||" "}},newDocumentFragment:gt};function mt(e,t,i){return!u[t][e]||!u[t][e].replace||55349===e.charCodeAt(0)||Ie.hasOwnProperty(e)&&i&&(i.fontFamily&&"tt"===i.fontFamily.slice(4,6)||i.font&&"tt"===i.font.slice(4,6))||(e=u[t][e].replace),new T.TextNode(e)}function yt(e){return 1===e.length?e[0]:new T.MathNode("mrow",e)}function bt(e,t){if("texttt"===t.fontFamily)return"monospace";if("textsf"===t.fontFamily)return"textit"===t.fontShape&&"textbf"===t.fontWeight?"sans-serif-bold-italic":"textit"===t.fontShape?"sans-serif-italic":"textbf"===t.fontWeight?"bold-sans-serif":"sans-serif";if("textit"===t.fontShape&&"textbf"===t.fontWeight)return"bold-italic";if("textit"===t.fontShape)return"italic";if("textbf"===t.fontWeight)return"bold";if(!(t=t.font)||"mathnormal"===t)return null;var i=e.mode;if("mathit"===t)return"italic";if("boldsymbol"===t)return"textord"===e.type?"bold":"bold-italic";if("mathbf"===t)return"bold";if("mathbb"===t)return"double-struck";if("mathfrak"===t)return"fraktur";if("mathscr"===t||"mathcal"===t)return"script";if("mathsf"===t)return"sans-serif";if("mathtt"===t)return"monospace";let n=e.text;return!C.contains(["\\imath","\\jmath"],n)&&ae(n=u[i][n]&&u[i][n].replace?u[i][n].replace:n,L.fontMap[t].fontName,i)?L.fontMap[t].variant:null}function S(t,i,e){if(1===t.length){const n=I(t[0],i);return e&&n instanceof k&&"mo"===n.type&&(n.setAttribute("lspace","0em"),n.setAttribute("rspace","0em")),[n]}const n=[];let r;for(let e=0;e<t.length;e++){var s=I(t[e],i);if(s instanceof k&&r instanceof k){if("mtext"===s.type&&"mtext"===r.type&&s.getAttribute("mathvariant")===r.getAttribute("mathvariant")){r.children.push(...s.children);continue}if("mn"===s.type&&"mn"===r.type){r.children.push(...s.children);continue}if("mi"===s.type&&1===s.children.length&&"mn"===r.type){const t=s.children[0];if(t instanceof ft&&"."===t.text){r.children.push(...s.children);continue}}else if("mi"===r.type&&1===r.children.length){const t=r.children[0];if(t instanceof ft&&"̸"===t.text&&("mo"===s.type||"mi"===s.type||"mn"===s.type)){const t=s.children[0];t instanceof ft&&0<t.text.length&&(t.text=t.text.slice(0,1)+"̸"+t.text.slice(1),n.pop())}}}n.push(s),r=s}return n}function vt(e,t,i){return yt(S(e,t,i))}const I=function(e,t){if(!e)return new T.MathNode("mrow");if(Je[e.type])return Je[e.type](e,t);throw new _("Got group of unknown type: '"+e.type+"'")};function xt(e,t,i,n,r){e=S(e,i),i=1===e.length&&e[0]instanceof k&&C.contains(["mrow","mtable"],e[0].type)?e[0]:new T.MathNode("mrow",e),e=new T.MathNode("annotation",[new T.TextNode(t)]),e.setAttribute("encoding","application/x-tex"),t=new T.MathNode("semantics",[i,e]),i=new T.MathNode("math",[t]),i.setAttribute("xmlns","http://www.w3.org/1998/Math/MathML"),n&&i.setAttribute("display","block"),e=r?"katex":"katex-mathml";return L.makeSpan([e],[i])}const wt=function(e){return new de({style:e.displayMode?A.DISPLAY:A.TEXT,maxSize:e.maxSize,minRuleThickness:e.minRuleThickness})},kt=function(e,t){var i;return t.displayMode&&(i=["katex-display"],t.leqno&&i.push("leqno"),t.fleqn&&i.push("fleqn"),e=L.makeSpan(i,[e])),e},Tt={widehat:"^",widecheck:"ˇ",widetilde:"~",utilde:"~",overleftarrow:"←",underleftarrow:"←",xleftarrow:"←",overrightarrow:"→",underrightarrow:"→",xrightarrow:"→",underbrace:"⏟",overbrace:"⏞",overgroup:"⏠",undergroup:"⏡",overleftrightarrow:"↔",underleftrightarrow:"↔",xleftrightarrow:"↔",Overrightarrow:"⇒",xRightarrow:"⇒",overleftharpoon:"↼",xleftharpoonup:"↼",overrightharpoon:"⇀",xrightharpoonup:"⇀",xLeftarrow:"⇐",xLeftrightarrow:"⇔",xhookleftarrow:"↩",xhookrightarrow:"↪",xmapsto:"↦",xrightharpoondown:"⇁",xleftharpoondown:"↽",xrightleftharpoons:"⇌",xleftrightharpoons:"⇋",xtwoheadleftarrow:"↞",xtwoheadrightarrow:"↠",xlongequal:"=",xtofrom:"⇄",xrightleftarrows:"⇄",xrightequilibrium:"⇌",xleftequilibrium:"⇋","\\cdrightarrow":"→","\\cdleftarrow":"←","\\cdlongequal":"="},St={overrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],overleftarrow:[["leftarrow"],.888,522,"xMinYMin"],underrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],underleftarrow:[["leftarrow"],.888,522,"xMinYMin"],xrightarrow:[["rightarrow"],1.469,522,"xMaxYMin"],"\\cdrightarrow":[["rightarrow"],3,522,"xMaxYMin"],xleftarrow:[["leftarrow"],1.469,522,"xMinYMin"],"\\cdleftarrow":[["leftarrow"],3,522,"xMinYMin"],Overrightarrow:[["doublerightarrow"],.888,560,"xMaxYMin"],xRightarrow:[["doublerightarrow"],1.526,560,"xMaxYMin"],xLeftarrow:[["doubleleftarrow"],1.526,560,"xMinYMin"],overleftharpoon:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoonup:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoondown:[["leftharpoondown"],.888,522,"xMinYMin"],overrightharpoon:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoonup:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoondown:[["rightharpoondown"],.888,522,"xMaxYMin"],xlongequal:[["longequal"],.888,334,"xMinYMin"],"\\cdlongequal":[["longequal"],3,334,"xMinYMin"],xtwoheadleftarrow:[["twoheadleftarrow"],.888,334,"xMinYMin"],xtwoheadrightarrow:[["twoheadrightarrow"],.888,334,"xMaxYMin"],overleftrightarrow:[["leftarrow","rightarrow"],.888,522],overbrace:[["leftbrace","midbrace","rightbrace"],1.6,548],underbrace:[["leftbraceunder","midbraceunder","rightbraceunder"],1.6,548],underleftrightarrow:[["leftarrow","rightarrow"],.888,522],xleftrightarrow:[["leftarrow","rightarrow"],1.75,522],xLeftrightarrow:[["doubleleftarrow","doublerightarrow"],1.75,560],xrightleftharpoons:[["leftharpoondownplus","rightharpoonplus"],1.75,716],xleftrightharpoons:[["leftharpoonplus","rightharpoondownplus"],1.75,716],xhookleftarrow:[["leftarrow","righthook"],1.08,522],xhookrightarrow:[["lefthook","rightarrow"],1.08,522],overlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],underlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],overgroup:[["leftgroup","rightgroup"],.888,342],undergroup:[["leftgroupunder","rightgroupunder"],.888,342],xmapsto:[["leftmapsto","rightarrow"],1.5,522],xtofrom:[["leftToFrom","rightToFrom"],1.75,528],xrightleftarrows:[["baraboveleftarrow","rightarrowabovebar"],1.75,901],xrightequilibrium:[["baraboveshortleftharpoon","rightharpoonaboveshortbar"],1.75,716],xleftequilibrium:[["shortbaraboveleftharpoon","shortrightharpoonabovebar"],1.75,716]};function _t(e){return(e=new T.MathNode("mo",[new T.TextNode(Tt[e.replace(/^\\/,"")])])).setAttribute("stretchy","true"),e}function Ct(d,p){var{span:e,minWidth:t,height:i}=function(){let n=4e5;var r=d.label.slice(1);if(C.contains(["widehat","widecheck","widetilde","utilde"],r)){var s="ordgroup"===(s=d.base).type?s.body.length:1;let e,t,i;if(5<s)t="widehat"===r||"widecheck"===r?(e=420,n=2364,i=.42,r+"4"):(e=312,n=2340,i=.34,"tilde4");else{const d=[1,1,2,2,3,3][s];t="widehat"===r||"widecheck"===r?(n=[0,1062,2364,2364,2364][d],e=[0,239,300,360,420][d],i=[0,.24,.3,.3,.36,.42][d],r+d):(n=[0,600,1033,2339,2340][d],e=[0,260,286,306,312][d],i=[0,.26,.286,.3,.306,.34][d],"tilde"+d)}s=new _e(t),s=new Se([s],{width:"100%",height:$(i),viewBox:"0 0 "+n+" "+e,preserveAspectRatio:"none"});return{span:L.makeSvgSpan([],[s],p),minWidth:0,height:i}}{const d=[],s=St[r],[a,o,l]=s,C=l/1e3,c=a.length;let t,i;if(1===c)t=["hide-tail"],i=[s[3]];else if(2===c)t=["halfarrow-left","halfarrow-right"],i=["xMinYMin","xMaxYMin"];else{if(3!==c)throw new Error("Correct katexImagesData or update code here to support\n "+c+" children.");t=["brace-left","brace-center","brace-right"],i=["xMinYMin","xMidYMin","xMaxYMin"]}for(let e=0;e<c;e++){const s=new _e(a[e]),h=new Se([s],{width:"400em",height:$(C),viewBox:"0 0 "+n+" "+l,preserveAspectRatio:i[e]+" slice"}),u=L.makeSvgSpan([t[e]],[h],p);if(1===c)return{span:u,minWidth:o,height:C};u.style.height=$(C),d.push(u)}return{span:L.makeSpan(["stretchy"],d,p),minWidth:o,height:C}}}();return e.height=i,e.style.height=$(i),0<t&&(e.style.minWidth=$(t)),e}function N(e,t){if(e&&e.type===t)return e;throw new Error("Expected node of type "+t+", but got "+(e?"node of type "+e.type:String(e)))}function At(e){var t=Et(e);if(t)return t;throw new Error("Expected node of symbol group type, but got "+(e?"node of type "+e.type:String(e)))}function Et(e){return e&&("atom"===e.type||$e.hasOwnProperty(e.type))?e:null}const $t=(n,r)=>{let e,s,a;n&&"supsub"===n.type?(s=N(n.base,"accent"),e=s.base,n.base=e,a=function(e){if(e instanceof xe)return e;throw new Error("Expected span<HtmlDomNode> but got "+String(e)+".")}(M(n,r)),n.base=s):(s=N(n,"accent"),e=s.base);n=M(e,r.havingCrampedStyle());let o=0;if(s.isShifty&&C.isCharacterBox(e)){const n=C.getBaseElem(e);o=Ae(M(n,r.havingCrampedStyle())).skew}var l="\\c"===s.label;let c,h=l?n.height+n.depth:Math.min(n.height,r.fontMetrics().xHeight);if(s.isStretchy)c=Ct(s,r),c=L.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:n},{type:"elem",elem:c,wrapperClasses:["svg-align"],wrapperStyle:0<o?{width:"calc(100% - "+$(2*o)+")",marginLeft:$(2*o)}:void 0}]},r);else{let e,t;"\\vec"===s.label?(e=L.staticSvg("vec",r),t=L.svgData.vec[1]):((e=Ae(e=L.makeOrd({mode:s.mode,text:s.label},r,"textord"))).italic=0,t=e.width,l&&(h+=e.depth)),c=L.makeSpan(["accent-body"],[e]);const a="\\textcircled"===s.label;a&&(c.classes.push("accent-full"),h=n.height);let i=o;a||(i-=t/2),c.style.left=$(i),"\\textcircled"===s.label&&(c.style.top=".2em"),c=L.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:n},{type:"kern",size:-h},{type:"elem",elem:c}]},r)}l=L.makeSpan(["mord","accent"],[c],r);return a?(a.children[0]=l,a.height=Math.max(l.height,a.height),a.classes[0]="mord",a):l},Lt=(e,t)=>{var i=e.isStretchy?_t(e.label):new T.MathNode("mo",[mt(e.label,e.mode)]),e=new T.MathNode("mover",[I(e.base,t),i]);return e.setAttribute("accent","true"),e},Rt=new RegExp(["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring"].map(e=>"\\"+e).join("|")),Mt=(x({type:"accent",names:["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring","\\widecheck","\\widehat","\\widetilde","\\overrightarrow","\\overleftarrow","\\Overrightarrow","\\overleftrightarrow","\\overgroup","\\overlinesegment","\\overleftharpoon","\\overrightharpoon"],props:{numArgs:1},handler:(e,t)=>{var t=tt(t[0]),i=!Rt.test(e.funcName),n=!i||"\\widehat"===e.funcName||"\\widetilde"===e.funcName||"\\widecheck"===e.funcName;return{type:"accent",mode:e.parser.mode,label:e.funcName,isStretchy:i,isShifty:n,base:t}},htmlBuilder:$t,mathmlBuilder:Lt}),x({type:"accent",names:["\\'","\\`","\\^","\\~","\\=","\\u","\\.",'\\"',"\\c","\\r","\\H","\\v","\\textcircled"],props:{numArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:["primitive"]},handler:(e,t)=>{t=t[0];let i=e.parser.mode;return"math"===i&&(e.parser.settings.reportNonstrict("mathVsTextAccents","LaTeX's accent "+e.funcName+" works only in text mode"),i="text"),{type:"accent",mode:i,label:e.funcName,isStretchy:!1,isShifty:!0,base:t}},htmlBuilder:$t,mathmlBuilder:Lt}),x({type:"accentUnder",names:["\\underleftarrow","\\underrightarrow","\\underleftrightarrow","\\undergroup","\\underlinesegment","\\utilde"],props:{numArgs:1},handler:(e,t)=>{var{parser:e,funcName:i}=e,t=t[0];return{type:"accentUnder",mode:e.mode,label:i,base:t}},htmlBuilder:(e,t)=>{var i=M(e.base,t),n=Ct(e,t),e="\\utilde"===e.label?.12:0,n=L.makeVList({positionType:"top",positionData:i.height,children:[{type:"elem",elem:n,wrapperClasses:["svg-align"]},{type:"kern",size:e},{type:"elem",elem:i}]},t);return L.makeSpan(["mord","accentunder"],[n],t)},mathmlBuilder:(e,t)=>{var i=_t(e.label),e=new T.MathNode("munder",[I(e.base,t),i]);return e.setAttribute("accentunder","true"),e}}),e=>{e=new T.MathNode("mpadded",e?[e]:[]);return e.setAttribute("width","+0.6em"),e.setAttribute("lspace","0.3em"),e}),It=(x({type:"xArrow",names:["\\xleftarrow","\\xrightarrow","\\xLeftarrow","\\xRightarrow","\\xleftrightarrow","\\xLeftrightarrow","\\xhookleftarrow","\\xhookrightarrow","\\xmapsto","\\xrightharpoondown","\\xrightharpoonup","\\xleftharpoondown","\\xleftharpoonup","\\xrightleftharpoons","\\xleftrightharpoons","\\xlongequal","\\xtwoheadrightarrow","\\xtwoheadleftarrow","\\xtofrom","\\xrightleftarrows","\\xrightequilibrium","\\xleftequilibrium","\\\\cdrightarrow","\\\\cdleftarrow","\\\\cdlongequal"],props:{numArgs:1,numOptionalArgs:1},handler(e,t,i){var{parser:e,funcName:n}=e;return{type:"xArrow",mode:e.mode,label:n,body:t[0],below:i[0]}},htmlBuilder(e,t){var i=t.style,n=t.havingStyle(i.sup()),r=L.wrapFragment(M(e.body,n,t),t),s="\\x"===e.label.slice(0,2)?"x":"cd";let a;r.classes.push(s+"-arrow-pad"),e.below&&(n=t.havingStyle(i.sub()),(a=L.wrapFragment(M(e.below,n,t),t)).classes.push(s+"-arrow-pad"));i=Ct(e,t),n=-t.fontMetrics().axisHeight+.5*i.height;let o,l=-t.fontMetrics().axisHeight-.5*i.height-.111;if((.25<r.depth||"\\xleftequilibrium"===e.label)&&(l-=r.depth),a){const e=-t.fontMetrics().axisHeight+a.height+.5*i.height+.111;o=L.makeVList({positionType:"individualShift",children:[{type:"elem",elem:r,shift:l},{type:"elem",elem:i,shift:n},{type:"elem",elem:a,shift:e}]},t)}else o=L.makeVList({positionType:"individualShift",children:[{type:"elem",elem:r,shift:l},{type:"elem",elem:i,shift:n}]},t);return o.children[0].children[0].children[1].classes.push("svg-align"),L.makeSpan(["mrel","x-arrow"],[o],t)},mathmlBuilder(e,t){var i,n,r=_t(e.label);let s;return r.setAttribute("minsize","x"===e.label.charAt(0)?"1.75em":"3.0em"),s=e.body?(i=Mt(I(e.body,t)),e.below?(n=Mt(I(e.below,t)),new T.MathNode("munderover",[r,n,i])):new T.MathNode("mover",[r,i])):e.below?(n=Mt(I(e.below,t)),new T.MathNode("munder",[r,n])):(s=Mt(),new T.MathNode("mover",[r,s]))}}),L.makeSpan);function Nt(e,t){var i=R(e.body,t,!0);return It([e.mclass],i,t)}function Dt(e,t){let i;t=S(e.body,t);return"minner"===e.mclass?i=new T.MathNode("mpadded",t):"mord"===e.mclass?e.isCharacterBox?(i=t[0]).type="mi":i=new T.MathNode("mi",t):(e.isCharacterBox?(i=t[0]).type="mo":i=new T.MathNode("mo",t),"mbin"===e.mclass?(i.attributes.lspace="0.22em",i.attributes.rspace="0.22em"):"mpunct"===e.mclass?(i.attributes.lspace="0em",i.attributes.rspace="0.17em"):"mopen"===e.mclass||"mclose"===e.mclass?(i.attributes.lspace="0em",i.attributes.rspace="0em"):"minner"===e.mclass&&(i.attributes.lspace="0.0556em",i.attributes.width="+0.1111em")),i}x({type:"mclass",names:["\\mathord","\\mathbin","\\mathrel","\\mathopen","\\mathclose","\\mathpunct","\\mathinner"],props:{numArgs:1,primitive:!0},handler(e,t){var{parser:e,funcName:i}=e,t=t[0];return{type:"mclass",mode:e.mode,mclass:"m"+i.slice(5),body:w(t),isCharacterBox:C.isCharacterBox(t)}},htmlBuilder:Nt,mathmlBuilder:Dt});const Ot=e=>{e="ordgroup"===e.type&&e.body.length?e.body[0]:e;return"atom"!==e.type||"bin"!==e.family&&"rel"!==e.family?"mord":"m"+e.family},Pt=(x({type:"mclass",names:["\\@binrel"],props:{numArgs:2},handler(e,t){e=e.parser;return{type:"mclass",mode:e.mode,mclass:Ot(t[0]),body:w(t[1]),isCharacterBox:C.isCharacterBox(t[1])}}}),x({type:"mclass",names:["\\stackrel","\\overset","\\underset"],props:{numArgs:2},handler(e,t){var{parser:e,funcName:i}=e,n=t[1],t=t[0],r="\\stackrel"!==i?Ot(n):"mrel",n={type:"op",mode:n.mode,limits:!0,alwaysHandleSupSub:!0,parentIsSupSub:!1,symbol:!1,suppressBaseShift:"\\stackrel"!==i,body:w(n)},n={type:"supsub",mode:t.mode,base:n,sup:"\\underset"===i?null:t,sub:"\\underset"===i?t:null};return{type:"mclass",mode:e.mode,mclass:r,body:[n],isCharacterBox:C.isCharacterBox(n)}},htmlBuilder:Nt,mathmlBuilder:Dt}),x({type:"pmb",names:["\\pmb"],props:{numArgs:1,allowedInText:!0},handler(e,t){e=e.parser;return{type:"pmb",mode:e.mode,mclass:Ot(t[0]),body:w(t[0])}},htmlBuilder(e,t){var i=R(e.body,t,!0),e=L.makeSpan([e.mclass],i,t);return e.style.textShadow="0.02em 0.01em 0.04px",e},mathmlBuilder(e,t){e=S(e.body,t),t=new T.MathNode("mstyle",e);return t.setAttribute("style","text-shadow: 0.02em 0.01em 0.04px"),t}}),{">":"\\\\cdrightarrow","<":"\\\\cdleftarrow","=":"\\\\cdlongequal",A:"\\uparrow",V:"\\downarrow","|":"\\Vert",".":"no arrow"}),Bt=e=>"textord"===e.type&&"@"===e.text;x({type:"cdlabel",names:["\\\\cdleft","\\\\cdright"],props:{numArgs:1},handler(e,t){var{parser:e,funcName:i}=e;return{type:"cdlabel",mode:e.mode,side:i.slice(4),label:t[0]}},htmlBuilder(e,t){var i=t.havingStyle(t.style.sup()),i=L.wrapFragment(M(e.label,i,t),t);return i.classes.push("cd-label-"+e.side),i.style.bottom=$(.8-i.depth),i.height=0,i.depth=0,i},mathmlBuilder(e,t){let i=new T.MathNode("mrow",[I(e.label,t)]);return(i=new T.MathNode("mpadded",[i])).setAttribute("width","0"),"left"===e.side&&i.setAttribute("lspace","-1width"),i.setAttribute("voffset","0.7em"),(i=new T.MathNode("mstyle",[i])).setAttribute("displaystyle","false"),i.setAttribute("scriptlevel","1"),i}}),x({type:"cdlabelparent",names:["\\\\cdparent"],props:{numArgs:1},handler(e,t){e=e.parser;return{type:"cdlabelparent",mode:e.mode,fragment:t[0]}},htmlBuilder(e,t){e=L.wrapFragment(M(e.fragment,t),t);return e.classes.push("cd-vert-arrow"),e},mathmlBuilder(e,t){return new T.MathNode("mrow",[I(e.fragment,t)])}}),x({type:"textord",names:["\\@char"],props:{numArgs:1,allowedInText:!0},handler(e,t){var e=e["parser"],i=N(t[0],"ordgroup").body;let n="";for(let e=0;e<i.length;e++)n+=N(i[e],"textord").text;let r,s=parseInt(n);if(isNaN(s))throw new _("\\@char has non-numeric argument "+n);if(s<0||1114111<=s)throw new _("\\@char with invalid code point "+n);return r=s<=65535?String.fromCharCode(s):(s-=65536,String.fromCharCode(55296+(s>>10),56320+(1023&s))),{type:"textord",mode:e.mode,text:r}}});f=(e,t)=>{t=R(e.body,t.withColor(e.color),!1);return L.makeFragment(t)},Me=(e,t)=>{t=S(e.body,t.withColor(e.color)),t=new T.MathNode("mstyle",t);return t.setAttribute("mathcolor",e.color),t};x({type:"color",names:["\\textcolor"],props:{numArgs:2,allowedInText:!0,argTypes:["color","original"]},handler(e,t){var e=e["parser"],i=N(t[0],"color-token").color,t=t[1];return{type:"color",mode:e.mode,color:i,body:w(t)}},htmlBuilder:f,mathmlBuilder:Me}),x({type:"color",names:["\\color"],props:{numArgs:1,allowedInText:!0,argTypes:["color"]},handler(e,t){var{parser:e,breakOnTokenText:i}=e,t=N(t[0],"color-token").color,i=(e.gullet.macros.set("\\current@color",t),e.parseExpression(!0,i));return{type:"color",mode:e.mode,color:t,body:i}},htmlBuilder:f,mathmlBuilder:Me}),x({type:"cr",names:["\\\\"],props:{numArgs:0,numOptionalArgs:0,allowedInText:!0},handler(e,t,i){var e=e["parser"],n="["===e.gullet.future().text?e.parseSizeGroup(!0):null,r=!e.settings.displayMode||!e.settings.useStrictBehavior("newLineInDisplayMode","In LaTeX, \\\\ or \\newline does nothing in display mode");return{type:"cr",mode:e.mode,newLine:r,size:n&&N(n,"size").value}},htmlBuilder(e,t){var i=L.makeSpan(["mspace"],[],t);return e.newLine&&(i.classes.push("newline"),e.size)&&(i.style.marginTop=$(E(e.size,t))),i},mathmlBuilder(e,t){var i=new T.MathNode("mspace");return e.newLine&&(i.setAttribute("linebreak","newline"),e.size)&&i.setAttribute("height",$(E(e.size,t))),i}});function Ft(e,t,i){if(i=ae(u.math[e]&&u.math[e].replace||e,t,i))return i;throw new Error("Unsupported symbol "+e+" and font size "+t+".")}function jt(e,t,i,n){return t=i.havingBaseStyle(t),n=L.makeSpan(n.concat(t.sizingClasses(i)),[e],i),e=t.sizeMultiplier/i.sizeMultiplier,n.height*=e,n.depth*=e,n.maxFontSize=t.sizeMultiplier,n}function zt(e,t,i){i=t.havingBaseStyle(i),i=(1-t.sizeMultiplier/i.sizeMultiplier)*t.fontMetrics().axisHeight,e.classes.push("delimcenter"),e.style.top=$(i),e.height-=i,e.depth+=i}function Ht(e,t,i,n,r,s){return e=L.makeSymbol(e,"Size"+t+"-Regular",r,n),r=jt(L.makeSpan(["delimsizing","size"+t],[e],n),A.TEXT,n,s),i&&zt(r,n,A.TEXT),r}function Ut(e,t,i){return{type:"elem",elem:L.makeSpan(["delimsizinginner","Size1-Regular"===t?"delim-size1":"delim-size4"],[L.makeSpan([],[L.makeSymbol(e,t,i)])])}}function qt(e,t,i){var n=(ne["Size4-Regular"][e.charCodeAt(0)]?ne["Size4-Regular"]:ne["Size1-Regular"])[e.charCodeAt(0)][4],e=new _e("inner",function(e,t){switch(e){case"⎜":return"M291 0 H417 V"+t+" H291z M291 0 H417 V"+t+" H291z";case"∣":return"M145 0 H188 V"+t+" H145z M145 0 H188 V"+t+" H145z";case"∥":return"M145 0 H188 V"+t+" H145z M145 0 H188 V"+t+" H145zM367 0 H410 V"+t+" H367z M367 0 H410 V"+t+" H367z";case"⎟":return"M457 0 H583 V"+t+" H457z M457 0 H583 V"+t+" H457z";case"⎢":return"M319 0 H403 V"+t+" H319z M319 0 H403 V"+t+" H319z";case"⎥":return"M263 0 H347 V"+t+" H263z M263 0 H347 V"+t+" H263z";case"⎪":return"M384 0 H504 V"+t+" H384z M384 0 H504 V"+t+" H384z";case"⏐":return"M312 0 H355 V"+t+" H312z M312 0 H355 V"+t+" H312z";case"‖":return"M257 0 H300 V"+t+" H257z M257 0 H300 V"+t+" H257zM478 0 H521 V"+t+" H478z M478 0 H521 V"+t+" H478z";default:return""}}(e,Math.round(1e3*t))),e=new Se([e],{width:$(n),height:$(t),style:"width:"+$(n),viewBox:"0 0 "+1e3*n+" "+Math.round(1e3*t),preserveAspectRatio:"xMinYMin"});return(e=L.makeSvgSpan([],[e],i)).height=t,e.style.height=$(t),e.style.width=$(n),{type:"elem",elem:e}}function Wt(e,t,i,n,r,s){let a,o,l,c,h="",u=0,d=(a=l=c=e,o=null,"Size1-Regular");"\\uparrow"===e?l=c="⏐":"\\Uparrow"===e?l=c="‖":"\\downarrow"===e?a=l="⏐":"\\Downarrow"===e?a=l="‖":"\\updownarrow"===e?(a="\\uparrow",l="⏐",c="\\downarrow"):"\\Updownarrow"===e?(a="\\Uparrow",l="‖",c="\\Downarrow"):C.contains(Jt,e)?(l="∣",h="vert",u=333):C.contains(ei,e)?(l="∥",h="doublevert",u=556):"["===e||"\\lbrack"===e?(a="⎡",l="⎢",c="⎣",d="Size4-Regular",h="lbrack",u=667):"]"===e||"\\rbrack"===e?(a="⎤",l="⎥",c="⎦",d="Size4-Regular",h="rbrack",u=667):"\\lfloor"===e||"⌊"===e?(l=a="⎢",c="⎣",d="Size4-Regular",h="lfloor",u=667):"\\lceil"===e||"⌈"===e?(a="⎡",l=c="⎢",d="Size4-Regular",h="lceil",u=667):"\\rfloor"===e||"⌋"===e?(l=a="⎥",c="⎦",d="Size4-Regular",h="rfloor",u=667):"\\rceil"===e||"⌉"===e?(a="⎤",l=c="⎥",d="Size4-Regular",h="rceil",u=667):"("===e||"\\lparen"===e?(a="⎛",l="⎜",c="⎝",d="Size4-Regular",h="lparen",u=875):")"===e||"\\rparen"===e?(a="⎞",l="⎟",c="⎠",d="Size4-Regular",h="rparen",u=875):"\\{"===e||"\\lbrace"===e?(a="⎧",o="⎨",c="⎩",l="⎪",d="Size4-Regular"):"\\}"===e||"\\rbrace"===e?(a="⎫",o="⎬",c="⎭",l="⎪",d="Size4-Regular"):"\\lgroup"===e||"⟮"===e?(a="⎧",c="⎩",l="⎪",d="Size4-Regular"):"\\rgroup"===e||"⟯"===e?(a="⎫",c="⎭",l="⎪",d="Size4-Regular"):"\\lmoustache"===e||"⎰"===e?(a="⎧",c="⎭",l="⎪",d="Size4-Regular"):"\\rmoustache"!==e&&"⎱"!==e||(a="⎫",c="⎩",l="⎪",d="Size4-Regular");var e=Ft(a,d,r),p=e.height+e.depth,e=Ft(l,d,r),e=e.height+e.depth,g=(g=Ft(c,d,r)).height+g.depth;let f=0,m=1;if(null!==o){const e=Ft(o,d,r);f=e.height+e.depth,m=2}var y=(y=p+g+f)+Math.max(0,Math.ceil((t-y)/(m*e)))*m*e;let b=n.fontMetrics().axisHeight;i&&(b*=n.sizeMultiplier);var t=y/2-b,v=[];if(0<h.length){const e=y-p-g,t=Math.round(1e3*y),i=function(e,t){switch(e){case"lbrack":return"M403 1759 V84 H666 V0 H319 V1759 v"+t+" v1759 h347 v-84\nH403z M403 1759 V0 H319 V1759 v"+t+" v1759 h84z";case"rbrack":return"M347 1759 V0 H0 V84 H263 V1759 v"+t+" v1759 H0 v84 H347z\nM347 1759 V0 H263 V1759 v"+t+" v1759 h84z";case"vert":return"M145 15 v585 v"+t+" v585 c2.667,10,9.667,15,21,15\nc10,0,16.667,-5,20,-15 v-585 v"+-t+" v-585 c-2.667,-10,-9.667,-15,-21,-15\nc-10,0,-16.667,5,-20,15z M188 15 H145 v585 v"+t+" v585 h43z";case"doublevert":return"M145 15 v585 v"+t+" v585 c2.667,10,9.667,15,21,15\nc10,0,16.667,-5,20,-15 v-585 v"+-t+" v-585 c-2.667,-10,-9.667,-15,-21,-15\nc-10,0,-16.667,5,-20,15z M188 15 H145 v585 v"+t+" v585 h43z\nM367 15 v585 v"+t+" v585 c2.667,10,9.667,15,21,15\nc10,0,16.667,-5,20,-15 v-585 v"+-t+" v-585 c-2.667,-10,-9.667,-15,-21,-15\nc-10,0,-16.667,5,-20,15z M410 15 H367 v585 v"+t+" v585 h43z";case"lfloor":return"M319 602 V0 H403 V602 v"+t+" v1715 h263 v84 H319z\nMM319 602 V0 H403 V602 v"+t+" v1715 H319z";case"rfloor":return"M319 602 V0 H403 V602 v"+t+" v1799 H0 v-84 H319z\nMM319 602 V0 H403 V602 v"+t+" v1715 H319z";case"lceil":return"M403 1759 V84 H666 V0 H319 V1759 v"+t+" v602 h84z\nM403 1759 V0 H319 V1759 v"+t+" v602 h84z";case"rceil":return"M347 1759 V0 H0 V84 H263 V1759 v"+t+" v602 h84z\nM347 1759 V0 h-84 V1759 v"+t+" v602 h84z";case"lparen":return"M863,9c0,-2,-2,-5,-6,-9c0,0,-17,0,-17,0c-12.7,0,-19.3,0.3,-20,1\nc-5.3,5.3,-10.3,11,-15,17c-242.7,294.7,-395.3,682,-458,1162c-21.3,163.3,-33.3,349,\n-36,557 l0,"+(t+84)+"c0.2,6,0,26,0,60c2,159.3,10,310.7,24,454c53.3,528,210,\n949.7,470,1265c4.7,6,9.7,11.7,15,17c0.7,0.7,7,1,19,1c0,0,18,0,18,0c4,-4,6,-7,6,-9\nc0,-2.7,-3.3,-8.7,-10,-18c-135.3,-192.7,-235.5,-414.3,-300.5,-665c-65,-250.7,-102.5,\n-544.7,-112.5,-882c-2,-104,-3,-167,-3,-189\nl0,-"+(t+92)+"c0,-162.7,5.7,-314,17,-454c20.7,-272,63.7,-513,129,-723c65.3,\n-210,155.3,-396.3,270,-559c6.7,-9.3,10,-15.3,10,-18z";case"rparen":return"M76,0c-16.7,0,-25,3,-25,9c0,2,2,6.3,6,13c21.3,28.7,42.3,60.3,\n63,95c96.7,156.7,172.8,332.5,228.5,527.5c55.7,195,92.8,416.5,111.5,664.5\nc11.3,139.3,17,290.7,17,454c0,28,1.7,43,3.3,45l0,"+(t+9)+"\nc-3,4,-3.3,16.7,-3.3,38c0,162,-5.7,313.7,-17,455c-18.7,248,-55.8,469.3,-111.5,664\nc-55.7,194.7,-131.8,370.3,-228.5,527c-20.7,34.7,-41.7,66.3,-63,95c-2,3.3,-4,7,-6,11\nc0,7.3,5.7,11,17,11c0,0,11,0,11,0c9.3,0,14.3,-0.3,15,-1c5.3,-5.3,10.3,-11,15,-17\nc242.7,-294.7,395.3,-681.7,458,-1161c21.3,-164.7,33.3,-350.7,36,-558\nl0,-"+(t+144)+"c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7,\n-470,-1265c-4.7,-6,-9.7,-11.7,-15,-17c-0.7,-0.7,-6.7,-1,-18,-1z";default:throw new Error("Unknown stretchy delimiter.")}}(h,Math.round(1e3*e)),r=new _e(h,i),s=(u/1e3).toFixed(3)+"em",a=(t/1e3).toFixed(3)+"em",o=new Se([r],{width:s,height:a,viewBox:"0 0 "+u+" "+t}),C=L.makeSvgSpan([],[o],n);C.height=t/1e3,C.style.width=s,C.style.height=a,v.push({type:"elem",elem:C})}else{if(v.push(Ut(c,d,r)),v.push(Qt),null===o){const e=y-p-g+.016;v.push(qt(l,e,n))}else{const e=(y-p-g-f)/2+.016;v.push(qt(l,e,n)),v.push(Qt),v.push(Ut(o,d,r)),v.push(Qt),v.push(qt(l,e,n))}v.push(Qt),v.push(Ut(a,d,r))}return e=n.havingBaseStyle(A.TEXT),i=L.makeVList({positionType:"bottom",positionData:t,children:v},e),jt(L.makeSpan(["delimsizing","mult"],[i],e),A.TEXT,n,s)}function Vt(n,e,t,i,r){return i=function(e,t){e*=1e3;let i="";switch(n){case"sqrtMain":i="M95,"+(622+e+80)+"\nc-2.7,0,-7.17,-2.7,-13.5,-8c-5.8,-5.3,-9.5,-10,-9.5,-14\nc0,-2,0.3,-3.3,1,-4c1.3,-2.7,23.83,-20.7,67.5,-54\nc44.2,-33.3,65.8,-50.3,66.5,-51c1.3,-1.3,3,-2,5,-2c4.7,0,8.7,3.3,12,10\ns173,378,173,378c0.7,0,35.3,-71,104,-213c68.7,-142,137.5,-285,206.5,-429\nc69,-144,104.5,-217.7,106.5,-221\nl"+e/2.075+" -"+e+"\nc5.3,-9.3,12,-14,20,-14\nH400000v"+(40+e)+"H845.2724\ns-225.272,467,-225.272,467s-235,486,-235,486c-2.7,4.7,-9,7,-19,7\nc-6,0,-10,-1,-12,-3s-194,-422,-194,-422s-65,47,-65,47z\nM"+(834+e)+" 80h400000v"+(40+e)+"h-400000z";break;case"sqrtSize1":i="M263,"+(601+e+80)+"c0.7,0,18,39.7,52,119\nc34,79.3,68.167,158.7,102.5,238c34.3,79.3,51.8,119.3,52.5,120\nc340,-704.7,510.7,-1060.3,512,-1067\nl"+e/2.084+" -"+e+"\nc4.7,-7.3,11,-11,19,-11\nH40000v"+(40+e)+"H1012.3\ns-271.3,567,-271.3,567c-38.7,80.7,-84,175,-136,283c-52,108,-89.167,185.3,-111.5,232\nc-22.3,46.7,-33.8,70.3,-34.5,71c-4.7,4.7,-12.3,7,-23,7s-12,-1,-12,-1\ns-109,-253,-109,-253c-72.7,-168,-109.3,-252,-110,-252c-10.7,8,-22,16.7,-34,26\nc-22,17.3,-33.3,26,-34,26s-26,-26,-26,-26s76,-59,76,-59s76,-60,76,-60z\nM"+(1001+e)+" 80h400000v"+(40+e)+"h-400000z";break;case"sqrtSize2":i="M983 "+(10+e+80)+"\nl"+e/3.13+" -"+e+"\nc4,-6.7,10,-10,18,-10 H400000v"+(40+e)+"\nH1013.1s-83.4,268,-264.1,840c-180.7,572,-277,876.3,-289,913c-4.7,4.7,-12.7,7,-24,7\ns-12,0,-12,0c-1.3,-3.3,-3.7,-11.7,-7,-25c-35.3,-125.3,-106.7,-373.3,-214,-744\nc-10,12,-21,25,-33,39s-32,39,-32,39c-6,-5.3,-15,-14,-27,-26s25,-30,25,-30\nc26.7,-32.7,52,-63,76,-91s52,-60,52,-60s208,722,208,722\nc56,-175.3,126.3,-397.3,211,-666c84.7,-268.7,153.8,-488.2,207.5,-658.5\nc53.7,-170.3,84.5,-266.8,92.5,-289.5z\nM"+(1001+e)+" 80h400000v"+(40+e)+"h-400000z";break;case"sqrtSize3":i="M424,"+(2398+e+80)+"\nc-1.3,-0.7,-38.5,-172,-111.5,-514c-73,-342,-109.8,-513.3,-110.5,-514\nc0,-2,-10.7,14.3,-32,49c-4.7,7.3,-9.8,15.7,-15.5,25c-5.7,9.3,-9.8,16,-12.5,20\ns-5,7,-5,7c-4,-3.3,-8.3,-7.7,-13,-13s-13,-13,-13,-13s76,-122,76,-122s77,-121,77,-121\ns209,968,209,968c0,-2,84.7,-361.7,254,-1079c169.3,-717.3,254.7,-1077.7,256,-1081\nl"+e/4.223+" -"+e+"c4,-6.7,10,-10,18,-10 H400000\nv"+(40+e)+"H1014.6\ns-87.3,378.7,-272.6,1166c-185.3,787.3,-279.3,1182.3,-282,1185\nc-2,6,-10,9,-24,9\nc-8,0,-12,-0.7,-12,-2z M"+(1001+e)+" 80\nh400000v"+(40+e)+"h-400000z";break;case"sqrtSize4":i="M473,"+(2713+e+80)+"\nc339.3,-1799.3,509.3,-2700,510,-2702 l"+e/5.298+" -"+e+"\nc3.3,-7.3,9.3,-11,18,-11 H400000v"+(40+e)+"H1017.7\ns-90.5,478,-276.2,1466c-185.7,988,-279.5,1483,-281.5,1485c-2,6,-10,9,-24,9\nc-8,0,-12,-0.7,-12,-2c0,-1.3,-5.3,-32,-16,-92c-50.7,-293.3,-119.7,-693.3,-207,-1200\nc0,-1.3,-5.3,8.7,-16,30c-10.7,21.3,-21.3,42.7,-32,64s-16,33,-16,33s-26,-26,-26,-26\ns76,-153,76,-153s77,-151,77,-151c0.7,0.7,35.7,202,105,604c67.3,400.7,102,602.7,104,\n606zM"+(1001+e)+" 80h400000v"+(40+e)+"H1017.7z";break;case"sqrtTall":i="M702 "+(80+e)+"H400000"+(40+e)+"\nH742v"+(t-54-80-e)+"l-4 4-4 4c-.667.7 -2 1.5-4 2.5s-4.167 1.833-6.5 2.5-5.5 1-9.5 1\nh-12l-28-84c-16.667-52-96.667 -294.333-240-727l-212 -643 -85 170\nc-4-3.333-8.333-7.667-13 -13l-13-13l77-155 77-156c66 199.333 139 419.667\n219 661 l218 661zM702 80H400000v"+(40+e)+"H742z"}return i}(i,t),i=new _e(n,i),i=new Se([i],{width:"400em",height:$(e),viewBox:"0 0 400000 "+t,preserveAspectRatio:"xMinYMin slice"}),L.makeSvgSpan(["hide-tail"],[i],r)}function Gt(i,n,r,s){for(let t=Math.min(2,3-s.style.size);t<r.length&&"stack"!==r[t].type;t++){var a=Ft(i,function(e){if("small"===e.type)return"Main-Regular";if("large"===e.type)return"Size"+e.size+"-Regular";if("stack"===e.type)return"Size4-Regular";throw new Error("Add support for delim type '"+e.type+"' here.")}(r[t]),"math");let e=a.height+a.depth;if("small"===r[t].type&&(e*=s.havingBaseStyle(r[t].style).sizeMultiplier),e>n)return r[t]}return r[r.length-1]}function Yt(e,t,i,n,r,s){"<"===e||"\\lt"===e||"⟨"===e?e="\\langle":">"!==e&&"\\gt"!==e&&"⟩"!==e||(e="\\rangle"),u=C.contains(ni,e)?si:C.contains(ti,e)?oi:ai;var a,o,l,c,h,u=Gt(e,t,u,n);return"small"===u.type?(a=e,o=u.style,l=i,c=n,h=s,a=L.makeSymbol(a,"Main-Regular",r,c),a=jt(a,o,c,h),l&&zt(a,c,o),a):"large"===u.type?Ht(e,u.size,i,n,r,s):Wt(e,t,i,n,r,s)}const Xt={"\\global":"\\global","\\long":"\\\\globallong","\\\\globallong":"\\\\globallong","\\def":"\\gdef","\\gdef":"\\gdef","\\edef":"\\xdef","\\xdef":"\\xdef","\\let":"\\\\globallet","\\futurelet":"\\\\globalfuture"},Kt=e=>{var t=e.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(t))throw new _("Expected a control sequence",e);return t},Zt=(e,t,i,n)=>{let r=e.gullet.macros.get(i.text);null==r&&(i.noexpand=!0,r={tokens:[i],numArgs:0,unexpandable:!e.gullet.isExpandable(i.text)}),e.gullet.macros.set(t,r,n)},Qt=(x({type:"internal",names:["\\global","\\long","\\\\globallong"],props:{numArgs:0,allowedInText:!0},handler(e){var{parser:e,funcName:t}=e,i=(e.consumeSpaces(),e.fetch());if(Xt[i.text])return"\\global"!==t&&"\\\\globallong"!==t||(i.text=Xt[i.text]),N(e.parseFunction(),"internal");throw new _("Invalid token after macro prefix",i)}}),x({type:"internal",names:["\\def","\\gdef","\\edef","\\xdef"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){let{parser:t,funcName:i}=e,n=t.gullet.popToken();e=n.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(e))throw new _("Expected a control sequence",n);let r,s=0;for(var a=[[]];"{"!==t.gullet.future().text;)if("#"===(n=t.gullet.popToken()).text){if("{"===t.gullet.future().text){r=t.gullet.future(),a[s].push("{");break}if(n=t.gullet.popToken(),!/^[1-9]$/.test(n.text))throw new _('Invalid argument number "'+n.text+'"');if(parseInt(n.text)!==s+1)throw new _('Argument number "'+n.text+'" out of order');s++,a.push([])}else{if("EOF"===n.text)throw new _("Expected a macro definition");a[s].push(n.text)}let o=t.gullet.consumeArg()["tokens"];return r&&o.unshift(r),"\\edef"!==i&&"\\xdef"!==i||(o=t.gullet.expandTokens(o)).reverse(),t.gullet.macros.set(e,{tokens:o,numArgs:s,delimiters:a},i===Xt[i]),{type:"internal",mode:t.mode}}}),x({type:"internal",names:["\\let","\\\\globallet"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:e,funcName:t}=e,i=Kt(e.gullet.popToken()),n=(e.gullet.consumeSpaces(),(e=>{let t=e.gullet.popToken();return t="="===t.text&&" "===(t=e.gullet.popToken()).text?e.gullet.popToken():t})(e));return Zt(e,i,n,"\\\\globallet"===t),{type:"internal",mode:e.mode}}}),x({type:"internal",names:["\\futurelet","\\\\globalfuture"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:e,funcName:t}=e,i=Kt(e.gullet.popToken()),n=e.gullet.popToken(),r=e.gullet.popToken();return Zt(e,i,r,"\\\\globalfuture"===t),e.gullet.pushToken(r),e.gullet.pushToken(n),{type:"internal",mode:e.mode}}}),{type:"kern",size:-.008}),Jt=["|","\\lvert","\\rvert","\\vert"],ei=["\\|","\\lVert","\\rVert","\\Vert"],ti=["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","⌊","⌋","\\lceil","\\rceil","⌈","⌉","\\surd"],ii=["\\uparrow","\\downarrow","\\updownarrow","\\Uparrow","\\Downarrow","\\Updownarrow","|","\\|","\\vert","\\Vert","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","⟮","⟯","\\lmoustache","\\rmoustache","⎰","⎱"],ni=["<",">","\\langle","\\rangle","/","\\backslash","\\lt","\\gt"],ri=[0,1.2,1.8,2.4,3],si=[{type:"small",style:A.SCRIPTSCRIPT},{type:"small",style:A.SCRIPT},{type:"small",style:A.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4}],ai=[{type:"small",style:A.SCRIPTSCRIPT},{type:"small",style:A.SCRIPT},{type:"small",style:A.TEXT},{type:"stack"}],oi=[{type:"small",style:A.SCRIPTSCRIPT},{type:"small",style:A.SCRIPT},{type:"small",style:A.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4},{type:"stack"}];var li={sqrtImage:function(e,t){var i=t.havingBaseSizing(),n=Gt("\\surd",e*i.sizeMultiplier,oi,i);let r=i.sizeMultiplier;i=Math.max(0,t.minRuleThickness-t.fontMetrics().sqrtRuleThickness);let s,a,o=0,l=0,c=0;return a="small"===n.type?(c=1e3+1e3*i+80,e<1?r=1:e<1.4&&(r=.7),o=(1+i+.08)/r,l=(1+i)/r,(s=Vt("sqrtMain",o,c,i,t)).style.minWidth="0.853em",.833/r):"large"===n.type?(c=1080*ri[n.size],l=(ri[n.size]+i)/r,o=(ri[n.size]+i+.08)/r,(s=Vt("sqrtSize"+n.size,o,c,i,t)).style.minWidth="1.02em",1/r):(o=e+i+.08,l=e+i,c=Math.floor(1e3*e+i)+80,(s=Vt("sqrtTall",o,c,i,t)).style.minWidth="0.742em",1.056),s.height=l,s.style.height=$(o),{span:s,advanceWidth:a,ruleWidth:(t.fontMetrics().sqrtRuleThickness+i)*r}},sizedDelim:function(e,t,i,n,r){if("<"===e||"\\lt"===e||"⟨"===e?e="\\langle":">"!==e&&"\\gt"!==e&&"⟩"!==e||(e="\\rangle"),C.contains(ti,e)||C.contains(ni,e))return Ht(e,t,!1,i,n,r);if(C.contains(ii,e))return Wt(e,ri[t],!1,i,n,r);throw new _("Illegal delimiter: '"+e+"'")},sizeToMaxHeight:ri,customSizedDelim:Yt,leftRightDelim:function(e,t,i,n,r,s){var a=n.fontMetrics().axisHeight*n.sizeMultiplier,o=5/n.fontMetrics().ptPerEm,t=Math.max(t-a,i+a),i=Math.max(t/500*901,2*t-o);return Yt(e,i,!0,n,r,s)}};const ci={"\\bigl":{mclass:"mopen",size:1},"\\Bigl":{mclass:"mopen",size:2},"\\biggl":{mclass:"mopen",size:3},"\\Biggl":{mclass:"mopen",size:4},"\\bigr":{mclass:"mclose",size:1},"\\Bigr":{mclass:"mclose",size:2},"\\biggr":{mclass:"mclose",size:3},"\\Biggr":{mclass:"mclose",size:4},"\\bigm":{mclass:"mrel",size:1},"\\Bigm":{mclass:"mrel",size:2},"\\biggm":{mclass:"mrel",size:3},"\\Biggm":{mclass:"mrel",size:4},"\\big":{mclass:"mord",size:1},"\\Big":{mclass:"mord",size:2},"\\bigg":{mclass:"mord",size:3},"\\Bigg":{mclass:"mord",size:4}},hi=["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","⌊","⌋","\\lceil","\\rceil","⌈","⌉","<",">","\\langle","⟨","\\rangle","⟩","\\lt","\\gt","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","⟮","⟯","\\lmoustache","\\rmoustache","⎰","⎱","/","\\backslash","|","\\vert","\\|","\\Vert","\\uparrow","\\Uparrow","\\downarrow","\\Downarrow","\\updownarrow","\\Updownarrow","."];function ui(e,t){var i=Et(e);if(i&&C.contains(hi,i.text))return i;throw new _(i?"Invalid delimiter '"+i.text+"' after '"+t.funcName+"'":"Invalid delimiter type '"+e.type+"'",e)}function di(e){if(!e.body)throw new Error("Bug: The leftright ParseNode wasn't fully parsed.")}x({type:"delimsizing",names:["\\bigl","\\Bigl","\\biggl","\\Biggl","\\bigr","\\Bigr","\\biggr","\\Biggr","\\bigm","\\Bigm","\\biggm","\\Biggm","\\big","\\Big","\\bigg","\\Bigg"],props:{numArgs:1,argTypes:["primitive"]},handler:(e,t)=>{t=ui(t[0],e);return{type:"delimsizing",mode:e.parser.mode,size:ci[e.funcName].size,mclass:ci[e.funcName].mclass,delim:t.text}},htmlBuilder:(e,t)=>"."===e.delim?L.makeSpan([e.mclass]):li.sizedDelim(e.delim,e.size,t,e.mode,[e.mclass]),mathmlBuilder:e=>{var t=[],t=("."!==e.delim&&t.push(mt(e.delim,e.mode)),new T.MathNode("mo",t)),e=("mopen"===e.mclass||"mclose"===e.mclass?t.setAttribute("fence","true"):t.setAttribute("fence","false"),t.setAttribute("stretchy","true"),$(li.sizeToMaxHeight[e.size]));return t.setAttribute("minsize",e),t.setAttribute("maxsize",e),t}}),x({type:"leftright-right",names:["\\right"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var i=e.parser.gullet.macros.get("\\current@color");if(i&&"string"!=typeof i)throw new _("\\current@color set to non-string in \\right");return{type:"leftright-right",mode:e.parser.mode,delim:ui(t[0],e).text,color:i}}}),x({type:"leftright",names:["\\left"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var t=ui(t[0],e),e=e.parser,i=(++e.leftrightDepth,e.parseExpression(!1)),n=(--e.leftrightDepth,e.expect("\\right",!1),N(e.parseFunction(),"leftright-right"));return{type:"leftright",mode:e.mode,body:i,left:t.text,right:n.delim,rightColor:n.color}},htmlBuilder:(t,e)=>{di(t);const i=R(t.body,e,!0,["mopen","mclose"]);let n,r,s=0,a=0,o=!1;for(let e=0;e<i.length;e++)i[e].isMiddle?o=!0:(s=Math.max(i[e].height,s),a=Math.max(i[e].depth,a));if(s*=e.sizeMultiplier,a*=e.sizeMultiplier,n="."===t.left?it(e,["mopen"]):li.leftRightDelim(t.left,s,a,e,t.mode,["mopen"]),i.unshift(n),o)for(let e=1;e<i.length;e++){const n=i[e].isMiddle;n&&(i[e]=li.leftRightDelim(n.delim,s,a,n.options,t.mode,[]))}if("."===t.right)r=it(e,["mclose"]);else{const i=t.rightColor?e.withColor(t.rightColor):e;r=li.leftRightDelim(t.right,s,a,i,t.mode,["mclose"])}return i.push(r),L.makeSpan(["minner"],i,e)},mathmlBuilder:(e,t)=>{di(e);var i=S(e.body,t);if("."!==e.left){const t=new T.MathNode("mo",[mt(e.left,e.mode)]);t.setAttribute("fence","true"),i.unshift(t)}if("."!==e.right){const t=new T.MathNode("mo",[mt(e.right,e.mode)]);t.setAttribute("fence","true"),e.rightColor&&t.setAttribute("mathcolor",e.rightColor),i.push(t)}return yt(i)}}),x({type:"middle",names:["\\middle"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{t=ui(t[0],e);if(e.parser.leftrightDepth)return{type:"middle",mode:e.parser.mode,delim:t.text};throw new _("\\middle without preceding \\left",t)},htmlBuilder:(e,t)=>{let i;return"."===e.delim?i=it(t,[]):(i=li.sizedDelim(e.delim,1,t,e.mode,[]),e={delim:e.delim,options:t},i.isMiddle=e),i},mathmlBuilder:(e,t)=>{e="\\vert"===e.delim||"|"===e.delim?mt("|","text"):mt(e.delim,e.mode),e=new T.MathNode("mo",[e]);return e.setAttribute("fence","true"),e.setAttribute("lspace","0.05em"),e.setAttribute("rspace","0.05em"),e}});o=(n,r)=>{const s=L.wrapFragment(M(n.body,r),r),a=n.label.slice(1);let o,e=r.sizeMultiplier,l=0;const c=C.isCharacterBox(n.body);if("sout"===a)(o=L.makeSpan(["stretchy","sout"])).height=r.fontMetrics().defaultRuleThickness/e,l=-.5*r.fontMetrics().xHeight;else if("phase"===a){const n=E({number:.6,unit:"pt"},r),a=E({number:.35,unit:"ex"},r),c=(e/=r.havingBaseSizing().sizeMultiplier,s.height+s.depth+n+a),C=(s.style.paddingLeft=$(c/2+n),Math.floor(1e3*c*e)),t="M400000 "+C+" H0 L"+C/2+" 0 l65 45 L145 "+(C-80)+" H400000z",i=new Se([new _e("phase",t)],{width:"400em",height:$(C/1e3),viewBox:"0 0 400000 "+C,preserveAspectRatio:"xMinYMin slice"});(o=L.makeSvgSpan(["hide-tail"],[i],r)).style.height=$(c),l=s.depth+n+a}else{/cancel/.test(a)?c||s.classes.push("cancel-pad"):"angl"===a?s.classes.push("anglpad"):s.classes.push("boxpad");let e=0,t=0,i=0;t=/box/.test(a)?(i=Math.max(r.fontMetrics().fboxrule,r.minRuleThickness),e=r.fontMetrics().fboxsep+("colorbox"===a?0:i)):"angl"===a?(i=Math.max(r.fontMetrics().defaultRuleThickness,r.minRuleThickness),e=4*i,Math.max(0,.25-s.depth)):e=c?.2:0,o=function(e,t,i,n,r){let s;n=e.height+e.depth+i+n;if(/fbox|color|angl/.test(t)){if(s=L.makeSpan(["stretchy",t],[],r),"fbox"===t){const e=r.color&&r.getColor();e&&(s.style.borderColor=e)}}else{const e=[],i=(/^[bx]cancel$/.test(t)&&e.push(new Ce({x1:"0",y1:"0",x2:"100%",y2:"100%","stroke-width":"0.046em"})),/^x?cancel$/.test(t)&&e.push(new Ce({x1:"0",y1:"100%",x2:"100%",y2:"0","stroke-width":"0.046em"})),new Se(e,{width:"100%",height:$(n)}));s=L.makeSvgSpan([],[i],r)}return s.height=n,s.style.height=$(n),s}(s,a,e,t,r),/fbox|boxed|fcolorbox/.test(a)?(o.style.borderStyle="solid",o.style.borderWidth=$(i)):"angl"===a&&.049!==i&&(o.style.borderTopWidth=$(i),o.style.borderRightWidth=$(i)),l=s.depth+t,n.backgroundColor&&(o.style.backgroundColor=n.backgroundColor,n.borderColor)&&(o.style.borderColor=n.borderColor)}let t;if(n.backgroundColor)t=L.makeVList({positionType:"individualShift",children:[{type:"elem",elem:o,shift:l},{type:"elem",elem:s,shift:0}]},r);else{const n=/cancel|phase/.test(a)?["svg-align"]:[];t=L.makeVList({positionType:"individualShift",children:[{type:"elem",elem:s,shift:0},{type:"elem",elem:o,shift:l,wrapperClasses:n}]},r)}return/cancel/.test(a)&&(t.height=s.height,t.depth=s.depth),/cancel/.test(a)&&!c?L.makeSpan(["mord","cancel-lap"],[t],r):L.makeSpan(["mord"],[t],r)},d=(e,t)=>{let i=0;var n=new T.MathNode(-1<e.label.indexOf("colorbox")?"mpadded":"menclose",[I(e.body,t)]);switch(e.label){case"\\cancel":n.setAttribute("notation","updiagonalstrike");break;case"\\bcancel":n.setAttribute("notation","downdiagonalstrike");break;case"\\phase":n.setAttribute("notation","phasorangle");break;case"\\sout":n.setAttribute("notation","horizontalstrike");break;case"\\fbox":n.setAttribute("notation","box");break;case"\\angl":n.setAttribute("notation","actuarial");break;case"\\fcolorbox":case"\\colorbox":if(i=t.fontMetrics().fboxsep*t.fontMetrics().ptPerEm,n.setAttribute("width","+"+2*i+"pt"),n.setAttribute("height","+"+2*i+"pt"),n.setAttribute("lspace",i+"pt"),n.setAttribute("voffset",i+"pt"),"\\fcolorbox"===e.label){const i=Math.max(t.fontMetrics().fboxrule,t.minRuleThickness);n.setAttribute("style","border: "+i+"em solid "+String(e.borderColor))}break;case"\\xcancel":n.setAttribute("notation","updiagonalstrike downdiagonalstrike")}return e.backgroundColor&&n.setAttribute("mathbackground",e.backgroundColor),n};x({type:"enclose",names:["\\colorbox"],props:{numArgs:2,allowedInText:!0,argTypes:["color","text"]},handler(e,t,i){var{parser:e,funcName:n}=e,r=N(t[0],"color-token").color,t=t[1];return{type:"enclose",mode:e.mode,label:n,backgroundColor:r,body:t}},htmlBuilder:o,mathmlBuilder:d}),x({type:"enclose",names:["\\fcolorbox"],props:{numArgs:3,allowedInText:!0,argTypes:["color","color","text"]},handler(e,t,i){var{parser:e,funcName:n}=e,r=N(t[0],"color-token").color,s=N(t[1],"color-token").color,t=t[2];return{type:"enclose",mode:e.mode,label:n,backgroundColor:s,borderColor:r,body:t}},htmlBuilder:o,mathmlBuilder:d}),x({type:"enclose",names:["\\fbox"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!0},handler(e,t){e=e.parser;return{type:"enclose",mode:e.mode,label:"\\fbox",body:t[0]}}}),x({type:"enclose",names:["\\cancel","\\bcancel","\\xcancel","\\sout","\\phase"],props:{numArgs:1},handler(e,t){var{parser:e,funcName:i}=e,t=t[0];return{type:"enclose",mode:e.mode,label:i,body:t}},htmlBuilder:o,mathmlBuilder:d}),x({type:"enclose",names:["\\angl"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!1},handler(e,t){e=e.parser;return{type:"enclose",mode:e.mode,label:"\\angl",body:t[0]}}});const pi={};function gi(e){var{type:e,names:t,props:i,handler:n,htmlBuilder:r,mathmlBuilder:s}=e,a={type:e,numArgs:i.numArgs||0,allowedInText:!1,numOptionalArgs:0,handler:n};for(let e=0;e<t.length;++e)pi[t[e]]=a;r&&(Qe[e]=r),s&&(Je[e]=s)}const fi={};function D(e,t){fi[e]=t}class mi{constructor(e,t,i){this.lexer=void 0,this.start=void 0,this.end=void 0,this.lexer=e,this.start=t,this.end=i}static range(e,t){return t?e&&e.loc&&t.loc&&e.loc.lexer===t.loc.lexer?new mi(e.loc.lexer,e.loc.start,t.loc.end):null:e&&e.loc}}class yi{constructor(e,t){this.text=void 0,this.loc=void 0,this.noexpand=void 0,this.treatAsRelax=void 0,this.text=e,this.loc=t}range(e,t){return new yi(t,mi.range(this,e))}}function bi(e){var t=[];e.consumeSpaces();let i=e.fetch().text;for("\\relax"===i&&(e.consume(),e.consumeSpaces(),i=e.fetch().text);"\\hline"===i||"\\hdashline"===i;)e.consume(),t.push("\\hdashline"===i),e.consumeSpaces(),i=e.fetch().text;return t}const vi=e=>{if(!e.parser.settings.displayMode)throw new _("{"+e.envName+"} can be used only in display mode.")};function xi(e){if(-1===e.indexOf("ed"))return-1===e.indexOf("*")}function wi(t,e,i){let{hskipBeforeAndAfter:n,addJot:r,cols:s,arraystretch:a,colSeparationType:o,autoTag:l,singleRow:c,emptySingleRow:h,maxNumCols:u,leqno:d}=e;if(t.gullet.beginGroup(),c||t.gullet.macros.set("\\cr","\\\\\\relax"),!a){const e=t.gullet.expandMacroAsText("\\arraystretch");if(null==e)a=1;else if(!(a=parseFloat(e))||a<0)throw new _("Invalid \\arraystretch: "+e)}t.gullet.beginGroup();let p=[];const g=[p],f=[],m=[],y=null!=l?[]:void 0;function b(){l&&t.gullet.macros.set("\\@eqnsw","1",!0)}function v(){y&&(t.gullet.macros.get("\\df@tag")?(y.push(t.subparse([new yi("\\df@tag")])),t.gullet.macros.set("\\df@tag",void 0,!0)):y.push(Boolean(l)&&"1"===t.gullet.macros.get("\\@eqnsw")))}for(b(),m.push(bi(t));;){let e=t.parseExpression(!1,c?"\\end":"\\\\");t.gullet.endGroup(),t.gullet.beginGroup(),e={type:"ordgroup",mode:t.mode,body:e},i&&(e={type:"styling",mode:t.mode,style:i,body:[e]}),p.push(e);const n=t.fetch().text;if("&"===n){if(u&&p.length===u){if(c||o)throw new _("Too many tab characters: &",t.nextToken);t.settings.reportNonstrict("textEnv","Too few columns specified in the {array} column argument.")}t.consume()}else{if("\\end"===n){v(),1===p.length&&"styling"===e.type&&0===e.body[0].body.length&&(1<g.length||!h)&&g.pop(),m.length<g.length+1&&m.push([]);break}if("\\\\"!==n)throw new _("Expected & or \\\\ or \\cr or \\end",t.nextToken);{let e;t.consume()," "!==t.gullet.future().text&&(e=t.parseSizeGroup(!0)),f.push(e?e.value:null),v(),m.push(bi(t)),p=[],g.push(p),b()}}}return t.gullet.endGroup(),t.gullet.endGroup(),{type:"array",mode:t.mode,addJot:r,arraystretch:a,body:g,cols:s,rowGaps:f,hskipBeforeAndAfter:n,hLinesBeforeRow:m,colSeparationType:o,tags:y,leqno:d}}function ki(e){return"d"===e.slice(0,1)?"display":"text"}function Ti(n,r){let s,a;const o=n.body.length,l=n.hLinesBeforeRow;let c=0,h=new Array(o);const u=[],d=Math.max(r.fontMetrics().arrayRuleWidth,r.minRuleThickness),e=1/r.fontMetrics().ptPerEm;let p=5*e;n.colSeparationType&&"small"===n.colSeparationType&&(p=r.havingStyle(A.SCRIPT).sizeMultiplier/r.sizeMultiplier*.2778);var t="CD"===n.colSeparationType?E({number:3,unit:"ex"},r):12*e,g=3*e,f=.7*(t=n.arraystretch*t),m=.3*t;let y=0;function b(t){for(let e=0;e<t.length;++e)0<e&&(y+=.25),u.push({pos:y,isDashed:t[e]})}for(b(l[0]),s=0;s<n.body.length;++s){const _=n.body[s];let e=f,t=m;c<_.length&&(c=_.length);const u=new Array(_.length);for(a=0;a<_.length;++a){const n=M(_[a],r);t<n.depth&&(t=n.depth),e<n.height&&(e=n.height),u[a]=n}const d=n.rowGaps[s];let i=0;d&&0<(i=E(d,r))&&(i+=m,t<i&&(t=i),i=0),n.addJot&&(t+=g),u.height=e,u.depth=t,y+=e,u.pos=y,y+=t+i,h[s]=u,b(l[s+1])}var v=y/2+r.fontMetrics().axisHeight,x=n.cols||[],w=[];let k,T;var i=[];if(n.tags&&n.tags.some(e=>e))for(s=0;s<o;++s){const _=h[s],a=_.pos-v,o=n.tags[s];var S=!0===o?L.makeSpan(["eqn-num"],[],r):!1===o?L.makeSpan([],[],r):L.makeSpan([],R(o,r,!0),r);S.depth=_.depth,S.height=_.height,i.push({type:"elem",elem:S,shift:a})}for(a=0,T=0;a<c||T<x.length;++a,++T){let t,i=x[T]||{},e=!0;for(;"separator"===i.type;){if(e||((k=L.makeSpan(["arraycolsep"],[])).style.width=$(r.fontMetrics().doubleRuleSep),w.push(k)),"|"!==i.separator&&":"!==i.separator)throw new _("Invalid separator type: "+i.separator);{const n="|"===i.separator?"solid":"dashed",s=L.makeSpan(["vertical-separator"],[],r),_=(s.style.height=$(y),s.style.borderRightWidth=$(d),s.style.borderRightStyle=n,s.style.margin="0 "+$(-d/2),y-v);_&&(s.style.verticalAlign=$(-_)),w.push(s)}T++,i=x[T]||{},e=!1}if(!(a>=c)){(0<a||n.hskipBeforeAndAfter)&&0!==(t=C.deflt(i.pregap,p))&&((k=L.makeSpan(["arraycolsep"],[])).style.width=$(t),w.push(k));let e=[];for(s=0;s<o;++s){const n=h[s],r=n[a];if(r){const _=n.pos-v;r.depth=n.depth,r.height=n.height,e.push({type:"elem",elem:r,shift:_})}}e=L.makeVList({positionType:"individualShift",children:e},r),e=L.makeSpan(["col-align-"+(i.align||"c")],[e]),w.push(e),(a<c-1||n.hskipBeforeAndAfter)&&0!==(t=C.deflt(i.postgap,p))&&((k=L.makeSpan(["arraycolsep"],[])).style.width=$(t),w.push(k))}}if(h=L.makeSpan(["mtable"],w),0<u.length){const n=L.makeLineSpan("hline",r,d),s=L.makeLineSpan("hdashline",r,d),_=[{type:"elem",elem:h,shift:0}];for(;0<u.length;){const r=u.pop(),a=r.pos-v;r.isDashed?_.push({type:"elem",elem:s,shift:a}):_.push({type:"elem",elem:n,shift:a})}h=L.makeVList({positionType:"individualShift",children:_},r)}return 0===i.length?L.makeSpan(["mord"],[h],r):(t=L.makeVList({positionType:"individualShift",children:i},r),t=L.makeSpan(["tag"],[t],r),L.makeFragment([h,t]))}function Si(s,a){var t=[],i=new T.MathNode("mtd",[],["mtr-glue"]),n=new T.MathNode("mtd",[],["mml-eqn-num"]);for(let e=0;e<s.body.length;e++){const r=s.body[e],o=[];for(let e=0;e<r.length;e++)o.push(new T.MathNode("mtd",[I(r[e],a)]));s.tags&&s.tags[e]&&(o.unshift(i),o.push(i),s.leqno?o.unshift(n):o.push(n)),t.push(new T.MathNode("mtr",o))}let e=new T.MathNode("mtable",t);const r=.5===s.arraystretch?.1:.16+s.arraystretch-1+(s.addJot?.09:0);e.setAttribute("rowspacing",$(r));let o="",l="";if(s.cols&&0<s.cols.length){const a=s.cols;let t="",i=!1,n=0,r=a.length;"separator"===a[0].type&&(o+="top ",n=1),"separator"===a[a.length-1].type&&(o+="bottom ",--r);for(let e=n;e<r;e++)"align"===a[e].type?(l+=Ci[a[e].align],i&&(t+="none "),i=!0):"separator"===a[e].type&&i&&(t+="|"===a[e].separator?"solid ":"dashed ",i=!1);e.setAttribute("columnalign",l.trim()),/[sd]/.test(t)&&e.setAttribute("columnlines",t.trim())}if("align"===s.colSeparationType){const a=s.cols||[];let t="";for(let e=1;e<a.length;e++)t+=e%2?"0em ":"1em ";e.setAttribute("columnspacing",t.trim())}else"alignat"===s.colSeparationType||"gather"===s.colSeparationType?e.setAttribute("columnspacing","0em"):"small"===s.colSeparationType?e.setAttribute("columnspacing","0.2778em"):"CD"===s.colSeparationType?e.setAttribute("columnspacing","0.5em"):e.setAttribute("columnspacing","1em");let c="";var h=s.hLinesBeforeRow;o=(o+=0<h[0].length?"left ":"")+(0<h[h.length-1].length?"right ":"");for(let e=1;e<h.length-1;e++)c+=0===h[e].length?"none ":h[e][0]?"dashed ":"solid ";return/[sd]/.test(c)&&e.setAttribute("rowlines",c.trim()),""!==o&&(e=new T.MathNode("menclose",[e])).setAttribute("notation",o.trim()),s.arraystretch&&s.arraystretch<1&&(e=new T.MathNode("mstyle",[e])).setAttribute("scriptlevel","1"),e}function _i(e,i){-1===e.envName.indexOf("ed")&&vi(e);var n=[],t=-1<e.envName.indexOf("at")?"alignat":"align",r="split"===e.envName,t=wi(e.parser,{cols:n,addJot:!0,autoTag:r?void 0:xi(e.envName),emptySingleRow:!0,colSeparationType:t,maxNumCols:r?2:void 0,leqno:e.parser.settings.leqno},"display");let s,a=0;const o={type:"ordgroup",mode:e.mode,body:[]};if(i[0]&&"ordgroup"===i[0].type){let t="";for(let e=0;e<i[0].body.length;e++)t+=N(i[0].body[e],"textord").text;s=Number(t),a=2*s}const l=!a;t.body.forEach(function(t){for(let e=1;e<t.length;e+=2){var i=N(t[e],"styling");N(i.body[0],"ordgroup").body.unshift(o)}if(l)a<t.length&&(a=t.length);else{var e=t.length/2;if(s<e)throw new _("Too many math in a row: expected "+s+", but got "+e,t[0])}});for(let i=0;i<a;++i){let e="r",t=0;i%2==1?e="l":0<i&&l&&(t=1),n[i]={type:"align",align:e,pregap:t,postgap:0}}return t.colSeparationType=l?"align":"alignat",t}const Ci={c:"center ",l:"left ",r:"right "};gi({type:"array",names:["array","darray"],props:{numArgs:1},handler(e,t){t=(Et(t[0])?[t[0]]:N(t[0],"ordgroup").body).map(function(e){var t=At(e).text;if(-1!=="lcr".indexOf(t))return{type:"align",align:t};if("|"===t)return{type:"separator",separator:"|"};if(":"===t)return{type:"separator",separator:":"};throw new _("Unknown column alignment: "+t,e)}),t={cols:t,hskipBeforeAndAfter:!0,maxNumCols:t.length};return wi(e.parser,t,ki(e.envName))},htmlBuilder:Ti,mathmlBuilder:Si}),gi({type:"array",names:["matrix","pmatrix","bmatrix","Bmatrix","vmatrix","Vmatrix","matrix*","pmatrix*","bmatrix*","Bmatrix*","vmatrix*","Vmatrix*"],props:{numArgs:0},handler(e){const t={matrix:null,pmatrix:["(",")"],bmatrix:["[","]"],Bmatrix:["\\{","\\}"],vmatrix:["|","|"],Vmatrix:["\\Vert","\\Vert"]}[e.envName.replace("*","")];let i="c";var n={hskipBeforeAndAfter:!1,cols:[{type:"align",align:i}]};if("*"===e.envName.charAt(e.envName.length-1)){const t=e.parser;if(t.consumeSpaces(),"["===t.fetch().text){if(t.consume(),t.consumeSpaces(),i=t.fetch().text,-1==="lcr".indexOf(i))throw new _("Expected l or c or r",t.nextToken);t.consume(),t.consumeSpaces(),t.expect("]"),t.consume(),n.cols=[{type:"align",align:i}]}}var n=wi(e.parser,n,ki(e.envName)),r=Math.max(0,...n.body.map(e=>e.length));return n.cols=new Array(r).fill({type:"align",align:i}),t?{type:"leftright",mode:e.mode,body:[n],left:t[0],right:t[1],rightColor:void 0}:n},htmlBuilder:Ti,mathmlBuilder:Si}),gi({type:"array",names:["smallmatrix"],props:{numArgs:0},handler(e){e=wi(e.parser,{arraystretch:.5},"script");return e.colSeparationType="small",e},htmlBuilder:Ti,mathmlBuilder:Si}),gi({type:"array",names:["subarray"],props:{numArgs:1},handler(e,t){t=(Et(t[0])?[t[0]]:N(t[0],"ordgroup").body).map(function(e){var t=At(e).text;if(-1!=="lc".indexOf(t))return{type:"align",align:t};throw new _("Unknown column alignment: "+t,e)});if(1<t.length)throw new _("{subarray} can contain only one column");if(0<(e=wi(e.parser,{cols:t,hskipBeforeAndAfter:!1,arraystretch:.5},"script")).body.length&&1<e.body[0].length)throw new _("{subarray} can contain only one column");return e},htmlBuilder:Ti,mathmlBuilder:Si}),gi({type:"array",names:["cases","dcases","rcases","drcases"],props:{numArgs:0},handler(e){var t=wi(e.parser,{arraystretch:1.2,cols:[{type:"align",align:"l",pregap:0,postgap:1},{type:"align",align:"l",pregap:0,postgap:0}]},ki(e.envName));return{type:"leftright",mode:e.mode,body:[t],left:-1<e.envName.indexOf("r")?".":"\\{",right:-1<e.envName.indexOf("r")?"\\}":".",rightColor:void 0}},htmlBuilder:Ti,mathmlBuilder:Si}),gi({type:"array",names:["align","align*","aligned","split"],props:{numArgs:0},handler:_i,htmlBuilder:Ti,mathmlBuilder:Si}),gi({type:"array",names:["gathered","gather","gather*"],props:{numArgs:0},handler(e){C.contains(["gather","gather*"],e.envName)&&vi(e);var t={cols:[{type:"align",align:"c"}],addJot:!0,colSeparationType:"gather",autoTag:xi(e.envName),emptySingleRow:!0,leqno:e.parser.settings.leqno};return wi(e.parser,t,"display")},htmlBuilder:Ti,mathmlBuilder:Si}),gi({type:"array",names:["alignat","alignat*","alignedat"],props:{numArgs:1},handler:_i,htmlBuilder:Ti,mathmlBuilder:Si}),gi({type:"array",names:["equation","equation*"],props:{numArgs:0},handler(e){vi(e);var t={autoTag:xi(e.envName),emptySingleRow:!0,singleRow:!0,maxNumCols:1,leqno:e.parser.settings.leqno};return wi(e.parser,t,"display")},htmlBuilder:Ti,mathmlBuilder:Si}),gi({type:"array",names:["CD"],props:{numArgs:0},handler(e){vi(e);{var r=e.parser,s,a,n=[];for(r.gullet.beginGroup(),r.gullet.macros.set("\\cr","\\\\\\relax"),r.gullet.beginGroup();;){n.push(r.parseExpression(!1,"\\\\")),r.gullet.endGroup(),r.gullet.beginGroup();const e=r.fetch().text;if("&"!==e&&"\\\\"!==e){if("\\end"!==e)throw new _("Expected \\\\ or \\cr or \\end",r.nextToken);0===n[n.length-1].length&&n.pop();break}r.consume()}let i=[];const c=[i];for(let t=0;t<n.length;t++){var o=n[t];let e={type:"styling",body:[],mode:"math",style:"display"};for(let n=0;n<o.length;n++)if(Bt(o[n])){i.push(e);const c=At(o[n+=1]).text,h=new Array(2);if(h[0]={type:"ordgroup",mode:"math",body:[]},h[1]={type:"ordgroup",mode:"math",body:[]},!(-1<"=|.".indexOf(c))){if(!(-1<"<>AV".indexOf(c)))throw new _('Expected one of "<>AV=|." after @',o[n]);for(let i=0;i<2;i++){let t=!0;for(let e=n+1;e<o.length;e++){if(a=c,("mathord"===(s=o[e]).type||"atom"===s.type)&&s.text===a){t=!1,n=e;break}if(Bt(o[e]))throw new _("Missing a "+c+" character to complete a CD arrow.",o[e]);h[i].body.push(o[e])}if(t)throw new _("Missing a "+c+" character to complete a CD arrow.",o[n])}}var l={type:"styling",body:[function(e,t,i){var n=Pt[e];switch(n){case"\\\\cdrightarrow":case"\\\\cdleftarrow":return i.callFunction(n,[t[0]],[t[1]]);case"\\uparrow":case"\\downarrow":{const e={type:"atom",text:n,mode:"math",family:"rel"},r={type:"ordgroup",mode:"math",body:[i.callFunction("\\\\cdleft",[t[0]],[]),i.callFunction("\\Big",[e],[]),i.callFunction("\\\\cdright",[t[1]],[])]};return i.callFunction("\\\\cdparent",[r],[])}case"\\\\cdlongequal":return i.callFunction("\\\\cdlongequal",[],[]);case"\\Vert":{const e={type:"textord",text:"\\Vert",mode:"math"};return i.callFunction("\\Big",[e],[])}default:return{type:"textord",text:" ",mode:"math"}}}(c,h,r)],mode:"math",style:"display"};i.push(l),e={type:"styling",body:[],mode:"math",style:"display"}}else e.body.push(o[n]);t%2==0?i.push(e):i.shift(),i=[],c.push(i)}return r.gullet.endGroup(),r.gullet.endGroup(),{type:"array",mode:"math",body:c,arraystretch:1,addJot:!0,rowGaps:[null],cols:new Array(c[0].length).fill({type:"align",align:"c",pregap:.25,postgap:.25}),colSeparationType:"CD",hLinesBeforeRow:new Array(c.length+1).fill([])}}},htmlBuilder:Ti,mathmlBuilder:Si}),D("\\nonumber","\\gdef\\@eqnsw{0}"),D("\\notag","\\nonumber"),x({type:"text",names:["\\hline","\\hdashline"],props:{numArgs:0,allowedInText:!0,allowedInMath:!0},handler(e,t){throw new _(e.funcName+" valid only within array environment")}});var Ai=pi;x({type:"environment",names:["\\begin","\\end"],props:{numArgs:1,argTypes:["text"]},handler(e,t){let{parser:i,funcName:n}=e;var r=t[0];if("ordgroup"!==r.type)throw new _("Invalid environment name",r);let s="";for(let e=0;e<r.body.length;++e)s+=N(r.body[e],"textord").text;if("\\begin"!==n)return{type:"environment",mode:i.mode,name:s,nameGroup:r};{if(!Ai.hasOwnProperty(s))throw new _("No such environment: "+s,r);const e=Ai[s],{args:t,optArgs:n}=i.parseArguments("\\begin{"+s+"}",e),l={mode:i.mode,envName:s,parser:i},c=e.handler(l,t,n);i.expect("\\end",!1);var a=i.nextToken,o=N(i.parseFunction(),"environment");if(o.name!==s)throw new _("Mismatch: \\begin{"+s+"} matched by \\end{"+o.name+"}",a);return c}}});function Ei(e){let t=null;return t=0<e.length?"."===(t=e)?null:t:t}function $i(e){if(/^[-+]? *(\d+(\.\d*)?|\.\d+)$/.test(e))return{number:+e,unit:"bp"};var t=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(e);if(!t)throw new _("Invalid size: '"+e+"' in \\includegraphics");if(e={number:+(t[1]+t[2]),unit:t[3]},pe(e))return e;throw new _("Invalid unit: '"+e.unit+"' in \\includegraphics.")}const Li=(e,t)=>{var i=e.font,t=t.withFont(i);return M(e.body,t)},Ri=(e,t)=>{var i=e.font,t=t.withFont(i);return I(e.body,t)},Mi={"\\Bbb":"\\mathbb","\\bold":"\\mathbf","\\frak":"\\mathfrak","\\bm":"\\boldsymbol"},Ii=(x({type:"font",names:["\\mathrm","\\mathit","\\mathbf","\\mathnormal","\\mathbb","\\mathcal","\\mathfrak","\\mathscr","\\mathsf","\\mathtt","\\Bbb","\\bold","\\frak"],props:{numArgs:1,allowedInArgument:!0},handler:(e,t)=>{var{parser:e,funcName:i}=e,t=tt(t[0]);let n=i;return n in Mi&&(n=Mi[n]),{type:"font",mode:e.mode,font:n.slice(1),body:t}},htmlBuilder:Li,mathmlBuilder:Ri}),x({type:"mclass",names:["\\boldsymbol","\\bm"],props:{numArgs:1},handler:(e,t)=>{var e=e["parser"],t=t[0],i=C.isCharacterBox(t);return{type:"mclass",mode:e.mode,mclass:Ot(t),body:[{type:"font",mode:e.mode,font:"boldsymbol",body:t}],isCharacterBox:i}}}),x({type:"font",names:["\\rm","\\sf","\\tt","\\bf","\\it","\\cal"],props:{numArgs:0,allowedInText:!0},handler:(e,t)=>{var{parser:e,funcName:i,breakOnTokenText:n}=e,r=e["mode"],n=e.parseExpression(!0,n);return{type:"font",mode:r,font:"math"+i.slice(1),body:{type:"ordgroup",mode:e.mode,body:n}}},htmlBuilder:Li,mathmlBuilder:Ri}),(e,t)=>{let i=t;return"display"===e?i=i.id>=A.SCRIPT.id?i.text():A.DISPLAY:"text"===e&&i.size===A.DISPLAY.size?i=A.TEXT:"script"===e?i=A.SCRIPT:"scriptscript"===e&&(i=A.SCRIPTSCRIPT),i}),Ni=(e,t)=>{const i=Ii(e.size,t.style),n=i.fracNum(),r=i.fracDen();var s=t.havingStyle(n),a=M(e.numer,s,t);if(e.continued){const e=8.5/t.fontMetrics().ptPerEm,i=3.5/t.fontMetrics().ptPerEm;a.height=a.height<e?e:a.height,a.depth=a.depth<i?i:a.depth}s=t.havingStyle(r);var o=M(e.denom,s,t);let l,c,h,u,d,p,g,f,m,y;if(h=e.hasBarLine?(l=e.barSize?(c=E(e.barSize,t),L.makeLineSpan("frac-line",t,c)):L.makeLineSpan("frac-line",t),c=l.height,l.height):(l=null,c=0,t.fontMetrics().defaultRuleThickness),p=i.size===A.DISPLAY.size||"display"===e.size?(u=t.fontMetrics().num1,d=0<c?3*h:7*h,t.fontMetrics().denom1):(d=0<c?(u=t.fontMetrics().num2,h):(u=t.fontMetrics().num3,3*h),t.fontMetrics().denom2),l){const e=t.fontMetrics().axisHeight,i=(u-a.depth-(e+.5*c)<d&&(u+=d-(u-a.depth-(e+.5*c))),e-.5*c-(o.height-p)<d&&(p+=d-(e-.5*c-(o.height-p))),-(e-.5*c));g=L.makeVList({positionType:"individualShift",children:[{type:"elem",elem:o,shift:p},{type:"elem",elem:l,shift:i},{type:"elem",elem:a,shift:-u}]},t)}else{const e=u-a.depth-(o.height-p);e<d&&(u+=.5*(d-e),p+=.5*(d-e)),g=L.makeVList({positionType:"individualShift",children:[{type:"elem",elem:o,shift:p},{type:"elem",elem:a,shift:-u}]},t)}return s=t.havingStyle(i),g.height*=s.sizeMultiplier/t.sizeMultiplier,g.depth*=s.sizeMultiplier/t.sizeMultiplier,f=i.size===A.DISPLAY.size?t.fontMetrics().delim1:(i.size===A.SCRIPTSCRIPT.size?t.havingStyle(A.SCRIPT):t).fontMetrics().delim2,m=null==e.leftDelim?it(t,["mopen"]):li.customSizedDelim(e.leftDelim,f,!0,t.havingStyle(i),e.mode,["mopen"]),y=e.continued?L.makeSpan([]):null==e.rightDelim?it(t,["mclose"]):li.customSizedDelim(e.rightDelim,f,!0,t.havingStyle(i),e.mode,["mclose"]),L.makeSpan(["mord"].concat(s.sizingClasses(t)),[m,L.makeSpan(["mfrac"],[g]),y],t)},Di=(e,t)=>{let i=new T.MathNode("mfrac",[I(e.numer,t),I(e.denom,t)]);if(e.hasBarLine){if(e.barSize){const n=E(e.barSize,t);i.setAttribute("linethickness",$(n))}}else i.setAttribute("linethickness","0px");const n=Ii(e.size,t.style);if(n.size!==t.style.size){i=new T.MathNode("mstyle",[i]);const e=n.size===A.DISPLAY.size?"true":"false";i.setAttribute("displaystyle",e),i.setAttribute("scriptlevel","0")}if(null==e.leftDelim&&null==e.rightDelim)return i;{const t=[];if(null!=e.leftDelim){const i=new T.MathNode("mo",[new T.TextNode(e.leftDelim.replace("\\",""))]);i.setAttribute("fence","true"),t.push(i)}if(t.push(i),null!=e.rightDelim){const i=new T.MathNode("mo",[new T.TextNode(e.rightDelim.replace("\\",""))]);i.setAttribute("fence","true"),t.push(i)}return yt(t)}},Oi=(x({type:"genfrac",names:["\\dfrac","\\frac","\\tfrac","\\dbinom","\\binom","\\tbinom","\\\\atopfrac","\\\\bracefrac","\\\\brackfrac"],props:{numArgs:2,allowedInArgument:!0},handler:(e,t)=>{var{parser:e,funcName:i}=e,n=t[0],t=t[1];let r,s=null,a=null,o="auto";switch(i){case"\\dfrac":case"\\frac":case"\\tfrac":r=!0;break;case"\\\\atopfrac":r=!1;break;case"\\dbinom":case"\\binom":case"\\tbinom":r=!1,s="(",a=")";break;case"\\\\bracefrac":r=!1,s="\\{",a="\\}";break;case"\\\\brackfrac":r=!1,s="[",a="]";break;default:throw new Error("Unrecognized genfrac command")}switch(i){case"\\dfrac":case"\\dbinom":o="display";break;case"\\tfrac":case"\\tbinom":o="text"}return{type:"genfrac",mode:e.mode,continued:!1,numer:n,denom:t,hasBarLine:r,leftDelim:s,rightDelim:a,size:o,barSize:null}},htmlBuilder:Ni,mathmlBuilder:Di}),x({type:"genfrac",names:["\\cfrac"],props:{numArgs:2},handler:(e,t)=>{var e=e["parser"],i=t[0],t=t[1];return{type:"genfrac",mode:e.mode,continued:!0,numer:i,denom:t,hasBarLine:!0,leftDelim:null,rightDelim:null,size:"display",barSize:null}}}),x({type:"infix",names:["\\over","\\choose","\\atop","\\brace","\\brack"],props:{numArgs:0,infix:!0},handler(e){let t,{parser:i,funcName:n,token:r}=e;switch(n){case"\\over":t="\\frac";break;case"\\choose":t="\\binom";break;case"\\atop":t="\\\\atopfrac";break;case"\\brace":t="\\\\bracefrac";break;case"\\brack":t="\\\\brackfrac";break;default:throw new Error("Unrecognized infix genfrac command")}return{type:"infix",mode:i.mode,replaceWith:t,token:r}}}),["display","text","script","scriptscript"]),Pi=(x({type:"genfrac",names:["\\genfrac"],props:{numArgs:6,allowedInArgument:!0,argTypes:["math","math","size","text","math","math"]},handler(e,t){var e=e["parser"],i=t[4],n=t[5],r=tt(t[0]),r="atom"===r.type&&"open"===r.family?Ei(r.text):null,s=tt(t[1]),s="atom"===s.type&&"close"===s.family?Ei(s.text):null,a=N(t[2],"size");let o,l=null,c=(o=!!a.isBlank||0<(l=a.value).number,"auto"),h=t[3];if("ordgroup"===h.type){if(0<h.body.length){const e=N(h.body[0],"textord");c=Oi[Number(e.text)]}}else h=N(h,"textord"),c=Oi[Number(h.text)];return{type:"genfrac",mode:e.mode,numer:i,denom:n,continued:!1,hasBarLine:o,barSize:l,leftDelim:r,rightDelim:s,size:c}},htmlBuilder:Ni,mathmlBuilder:Di}),x({type:"infix",names:["\\above"],props:{numArgs:1,argTypes:["size"],infix:!0},handler(e,t){var{parser:e,token:i}=e;return{type:"infix",mode:e.mode,replaceWith:"\\\\abovefrac",size:N(t[0],"size").value,token:i}}}),x({type:"genfrac",names:["\\\\abovefrac"],props:{numArgs:3,argTypes:["math","size","math"]},handler:(e,t)=>{var e=e["parser"],i=t[0],n=function(e){if(e)return e;throw new Error("Expected non-null, but got "+String(e))}(N(t[1],"infix").size),t=t[2],r=0<n.number;return{type:"genfrac",mode:e.mode,numer:i,denom:t,continued:!1,hasBarLine:r,barSize:n,leftDelim:null,rightDelim:null,size:"auto"}},htmlBuilder:Ni,mathmlBuilder:Di}),(e,t)=>{var i=t.style;let n,r;r="supsub"===e.type?(n=e.sup?M(e.sup,t.havingStyle(i.sup()),t):M(e.sub,t.havingStyle(i.sub()),t),N(e.base,"horizBrace")):N(e,"horizBrace");i=M(r.base,t.havingBaseStyle(A.DISPLAY)),e=Ct(r,t);let s;if((r.isOver?(s=L.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:i},{type:"kern",size:.1},{type:"elem",elem:e}]},t)).children[0].children[0].children[1]:(s=L.makeVList({positionType:"bottom",positionData:i.depth+.1+e.height,children:[{type:"elem",elem:e},{type:"kern",size:.1},{type:"elem",elem:i}]},t)).children[0].children[0].children[0]).classes.push("svg-align"),n){const e=L.makeSpan(["mord",r.isOver?"mover":"munder"],[s],t);s=r.isOver?L.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:e},{type:"kern",size:.2},{type:"elem",elem:n}]},t):L.makeVList({positionType:"bottom",positionData:e.depth+.2+n.height+n.depth,children:[{type:"elem",elem:n},{type:"kern",size:.2},{type:"elem",elem:e}]},t)}return L.makeSpan(["mord",r.isOver?"mover":"munder"],[s],t)}),Bi=(x({type:"horizBrace",names:["\\overbrace","\\underbrace"],props:{numArgs:1},handler(e,t){var{parser:e,funcName:i}=e;return{type:"horizBrace",mode:e.mode,label:i,isOver:/^\\over/.test(i),base:t[0]}},htmlBuilder:Pi,mathmlBuilder:(e,t)=>{var i=_t(e.label);return new T.MathNode(e.isOver?"mover":"munder",[I(e.base,t),i])}}),x({type:"href",names:["\\href"],props:{numArgs:2,argTypes:["url","original"],allowedInText:!0},handler:(e,t)=>{var e=e["parser"],i=t[1],t=N(t[0],"url").url;return e.settings.isTrusted({command:"\\href",url:t})?{type:"href",mode:e.mode,href:t,body:w(i)}:e.formatUnsupportedCmd("\\href")},htmlBuilder:(e,t)=>{var i=R(e.body,t,!1);return L.makeAnchor(e.href,[],i,t)},mathmlBuilder:(e,t)=>{let i=vt(e.body,t);return(i=i instanceof k?i:new k("mrow",[i])).setAttribute("href",e.href),i}}),x({type:"href",names:["\\url"],props:{numArgs:1,argTypes:["url"],allowedInText:!0},handler:(e,t)=>{var e=e["parser"],i=N(t[0],"url").url;if(!e.settings.isTrusted({command:"\\url",url:i}))return e.formatUnsupportedCmd("\\url");var n=[];for(let t=0;t<i.length;t++){let e=i[t];"~"===e&&(e="\\textasciitilde"),n.push({type:"textord",mode:"text",text:e})}t={type:"text",mode:e.mode,font:"\\texttt",body:n};return{type:"href",mode:e.mode,href:i,body:w(t)}}}),x({type:"hbox",names:["\\hbox"],props:{numArgs:1,argTypes:["text"],allowedInText:!0,primitive:!0},handler(e,t){e=e.parser;return{type:"hbox",mode:e.mode,body:w(t[0])}},htmlBuilder(e,t){e=R(e.body,t,!1);return L.makeFragment(e)},mathmlBuilder(e,t){return new T.MathNode("mrow",S(e.body,t))}}),x({type:"html",names:["\\htmlClass","\\htmlId","\\htmlStyle","\\htmlData"],props:{numArgs:2,argTypes:["raw","original"],allowedInText:!0},handler:(t,e)=>{let{parser:i,funcName:n}=t;var r=N(e[0],"raw").string,t=e[1];let s;i.settings.strict&&i.settings.reportNonstrict("htmlExtension","HTML extension is disabled on strict mode");var a={};switch(n){case"\\htmlClass":a.class=r,s={command:"\\htmlClass",class:r};break;case"\\htmlId":a.id=r,s={command:"\\htmlId",id:r};break;case"\\htmlStyle":a.style=r,s={command:"\\htmlStyle",style:r};break;case"\\htmlData":{const t=r.split(",");for(let e=0;e<t.length;e++){const i=t[e].split("=");if(2!==i.length)throw new _("Error parsing key-value for \\htmlData");a["data-"+i[0].trim()]=i[1].trim()}s={command:"\\htmlData",attributes:a};break}default:throw new Error("Unrecognized html command")}return i.settings.isTrusted(s)?{type:"html",mode:i.mode,attributes:a,body:w(t)}:i.formatUnsupportedCmd(n)},htmlBuilder:(e,t)=>{var i=R(e.body,t,!1),n=["enclosing"],r=(e.attributes.class&&n.push(...e.attributes.class.trim().split(/\s+/)),L.makeSpan(n,i,t));for(const t in e.attributes)"class"!==t&&e.attributes.hasOwnProperty(t)&&r.setAttribute(t,e.attributes[t]);return r},mathmlBuilder:(e,t)=>vt(e.body,t)}),x({type:"htmlmathml",names:["\\html@mathml"],props:{numArgs:2,allowedInText:!0},handler:(e,t)=>{e=e.parser;return{type:"htmlmathml",mode:e.mode,html:w(t[0]),mathml:w(t[1])}},htmlBuilder:(e,t)=>{e=R(e.html,t,!1);return L.makeFragment(e)},mathmlBuilder:(e,t)=>vt(e.mathml,t)}),x({type:"includegraphics",names:["\\includegraphics"],props:{numArgs:1,numOptionalArgs:1,argTypes:["raw","url"],allowedInText:!1},handler:(t,e,i)=>{let n=t["parser"],r={number:0,unit:"em"},s={number:.9,unit:"em"},a={number:0,unit:"em"},o="";if(i[0]){const t=N(i[0],"raw").string.split(",");for(let e=0;e<t.length;e++){const i=t[e].split("=");if(2===i.length){const t=i[1].trim();switch(i[0].trim()){case"alt":o=t;break;case"width":r=$i(t);break;case"height":s=$i(t);break;case"totalheight":a=$i(t);break;default:throw new _("Invalid key: '"+i[0]+"' in \\includegraphics.")}}}}t=N(e[0],"url").url;return""===o&&(o=(o=(o=t).replace(/^.*[\\/]/,"")).substring(0,o.lastIndexOf("."))),n.settings.isTrusted({command:"\\includegraphics",url:t})?{type:"includegraphics",mode:n.mode,alt:o,width:r,height:s,totalheight:a,src:t}:n.formatUnsupportedCmd("\\includegraphics")},htmlBuilder:(e,t)=>{var i=E(e.height,t);let n=0,r=(0<e.totalheight.number&&(n=E(e.totalheight,t)-i),0);0<e.width.number&&(r=E(e.width,t));t={height:$(i+n)},0<r&&(t.width=$(r)),0<n&&(t.verticalAlign=$(-n)),e=new ke(e.src,e.alt,t);return e.height=i,e.depth=n,e},mathmlBuilder:(e,t)=>{var i=new T.MathNode("mglyph",[]);i.setAttribute("alt",e.alt);const n=E(e.height,t);let r=0;if(0<e.totalheight.number&&(r=E(e.totalheight,t)-n,i.setAttribute("valign",$(-r))),i.setAttribute("height",$(n+r)),0<e.width.number){const n=E(e.width,t);i.setAttribute("width",$(n))}return i.setAttribute("src",e.src),i}}),x({type:"kern",names:["\\kern","\\mkern","\\hskip","\\mskip"],props:{numArgs:1,argTypes:["size"],primitive:!0,allowedInText:!0},handler(e,t){var{parser:i,funcName:n}=e,r=N(t[0],"size");if(i.settings.strict){const e="m"===n[1],t="mu"===r.value.unit;e?(t||i.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+n+" supports only mu units, not "+r.value.unit+" units"),"math"!==i.mode&&i.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+n+" works only in math mode")):t&&i.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+n+" doesn't support mu units")}return{type:"kern",mode:i.mode,dimension:r.value}},htmlBuilder(e,t){return L.makeGlue(e.dimension,t)},mathmlBuilder(e,t){e=E(e.dimension,t);return new T.SpaceNode(e)}}),x({type:"lap",names:["\\mathllap","\\mathrlap","\\mathclap"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:e,funcName:i}=e,t=t[0];return{type:"lap",mode:e.mode,alignment:i.slice(5),body:t}},htmlBuilder:(e,t)=>{let i;i="clap"===e.alignment?(i=L.makeSpan([],[M(e.body,t)]),L.makeSpan(["inner"],[i],t)):L.makeSpan(["inner"],[M(e.body,t)]);var n=L.makeSpan(["fix"],[]);let r=L.makeSpan([e.alignment],[i,n],t);e=L.makeSpan(["strut"]);return e.style.height=$(r.height+r.depth),r.depth&&(e.style.verticalAlign=$(-r.depth)),r.children.unshift(e),r=L.makeSpan(["thinbox"],[r],t),L.makeSpan(["mord","vbox"],[r],t)},mathmlBuilder:(e,t)=>{var i=new T.MathNode("mpadded",[I(e.body,t)]);if("rlap"!==e.alignment){const t="llap"===e.alignment?"-1":"-0.5";i.setAttribute("lspace",t+"width")}return i.setAttribute("width","0px"),i}}),x({type:"styling",names:["\\(","$"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(e,t){var{funcName:e,parser:i}=e,n=i.mode,e=(i.switchMode("math"),"\\("===e?"\\)":"$"),r=i.parseExpression(!1,e);return i.expect(e),i.switchMode(n),{type:"styling",mode:i.mode,style:"text",body:r}}}),x({type:"text",names:["\\)","\\]"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(e,t){throw new _("Mismatched "+e.funcName)}}),(e,t)=>{switch(t.style.size){case A.DISPLAY.size:return e.display;case A.TEXT.size:return e.text;case A.SCRIPT.size:return e.script;case A.SCRIPTSCRIPT.size:return e.scriptscript;default:return e.text}}),Fi=(x({type:"mathchoice",names:["\\mathchoice"],props:{numArgs:4,primitive:!0},handler:(e,t)=>{e=e.parser;return{type:"mathchoice",mode:e.mode,display:w(t[0]),text:w(t[1]),script:w(t[2]),scriptscript:w(t[3])}},htmlBuilder:(e,t)=>{e=Bi(e,t),e=R(e,t,!1);return L.makeFragment(e)},mathmlBuilder:(e,t)=>{e=Bi(e,t);return vt(e,t)}}),(e,t,i,n,r,s,a)=>{e=L.makeSpan([],[e]);var o=i&&C.isCharacterBox(i);let l,c,h;if(t){const e=M(t,n.havingStyle(r.sup()),n);c={elem:e,kern:Math.max(n.fontMetrics().bigOpSpacing1,n.fontMetrics().bigOpSpacing3-e.depth)}}if(i){const e=M(i,n.havingStyle(r.sub()),n);l={elem:e,kern:Math.max(n.fontMetrics().bigOpSpacing2,n.fontMetrics().bigOpSpacing4-e.height)}}if(c&&l){const t=n.fontMetrics().bigOpSpacing5+l.elem.height+l.elem.depth+l.kern+e.depth+a;h=L.makeVList({positionType:"bottom",positionData:t,children:[{type:"kern",size:n.fontMetrics().bigOpSpacing5},{type:"elem",elem:l.elem,marginLeft:$(-s)},{type:"kern",size:l.kern},{type:"elem",elem:e},{type:"kern",size:c.kern},{type:"elem",elem:c.elem,marginLeft:$(s)},{type:"kern",size:n.fontMetrics().bigOpSpacing5}]},n)}else if(l){const t=e.height-a;h=L.makeVList({positionType:"top",positionData:t,children:[{type:"kern",size:n.fontMetrics().bigOpSpacing5},{type:"elem",elem:l.elem,marginLeft:$(-s)},{type:"kern",size:l.kern},{type:"elem",elem:e}]},n)}else{if(!c)return e;{const t=e.depth+a;h=L.makeVList({positionType:"bottom",positionData:t,children:[{type:"elem",elem:e},{type:"kern",size:c.kern},{type:"elem",elem:c.elem,marginLeft:$(s)},{type:"kern",size:n.fontMetrics().bigOpSpacing5}]},n)}}t=[h];if(l&&0!==s&&!o){const e=L.makeSpan(["mspace"],[],n);e.style.marginRight=$(s),t.unshift(e)}return L.makeSpan(["mop","op-limits"],t,n)}),ji=["\\smallint"],zi=(t,i)=>{let e,n,r,s=!1;"supsub"===t.type?(e=t.sup,n=t.sub,r=N(t.base,"op"),s=!0):r=N(t,"op");t=i.style;let a,o=!1;if(t.size===A.DISPLAY.size&&r.symbol&&!C.contains(ji,r.name)&&(o=!0),r.symbol){const t=o?"Size2-Regular":"Size1-Regular";let e="";if("\\oiint"!==r.name&&"\\oiiint"!==r.name||(e=r.name.slice(1),r.name="oiint"===e?"\\iint":"\\iiint"),a=L.makeSymbol(r.name,t,"math",i,["mop","op-symbol",o?"large-op":"small-op"]),0<e.length){const t=a.italic,n=L.staticSvg(e+"Size"+(o?"2":"1"),i);a=L.makeVList({positionType:"individualShift",children:[{type:"elem",elem:a,shift:0},{type:"elem",elem:n,shift:o?.08:0}]},i),r.name="\\"+e,a.classes.unshift("mop"),a.italic=t}}else if(r.body){const t=R(r.body,i,!0);1===t.length&&t[0]instanceof g?(a=t[0]).classes[0]="mop":a=L.makeSpan(["mop"],t,i)}else{const t=[];for(let e=1;e<r.name.length;e++)t.push(L.mathsym(r.name[e],r.mode,i));a=L.makeSpan(["mop"],t,i)}let l=0,c=0;return(a instanceof g||"\\oiint"===r.name||"\\oiiint"===r.name)&&!r.suppressBaseShift&&(l=(a.height-a.depth)/2-i.fontMetrics().axisHeight,c=a.italic),s?Fi(a,e,n,i,t,c,l):(l&&(a.style.position="relative",a.style.top=$(l)),a)},Hi=(e,t)=>{let i;if(e.symbol)i=new k("mo",[mt(e.name,e.mode)]),C.contains(ji,e.name)&&i.setAttribute("largeop","false");else if(e.body)i=new k("mo",S(e.body,t));else{i=new k("mi",[new ft(e.name.slice(1))]);const t=new k("mo",[mt("","text")]);i=e.parentIsSupSub?new k("mrow",[i,t]):gt([i,t])}return i},Ui={"∏":"\\prod","∐":"\\coprod","∑":"\\sum","⋀":"\\bigwedge","⋁":"\\bigvee","⋂":"\\bigcap","⋃":"\\bigcup","⨀":"\\bigodot","⨁":"\\bigoplus","⨂":"\\bigotimes","⨄":"\\biguplus","⨆":"\\bigsqcup"},qi=(x({type:"op",names:["\\coprod","\\bigvee","\\bigwedge","\\biguplus","\\bigcap","\\bigcup","\\intop","\\prod","\\sum","\\bigotimes","\\bigoplus","\\bigodot","\\bigsqcup","\\smallint","∏","∐","∑","⋀","⋁","⋂","⋃","⨀","⨁","⨂","⨄","⨆"],props:{numArgs:0},handler:(e,t)=>{let{parser:i,funcName:n}=e,r=n;return 1===r.length&&(r=Ui[r]),{type:"op",mode:i.mode,limits:!0,parentIsSupSub:!1,symbol:!0,name:r}},htmlBuilder:zi,mathmlBuilder:Hi}),x({type:"op",names:["\\mathop"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{e=e.parser,t=t[0];return{type:"op",mode:e.mode,limits:!1,parentIsSupSub:!1,symbol:!1,body:w(t)}},htmlBuilder:zi,mathmlBuilder:Hi}),{"∫":"\\int","∬":"\\iint","∭":"\\iiint","∮":"\\oint","∯":"\\oiint","∰":"\\oiiint"}),Wi=(x({type:"op",names:["\\arcsin","\\arccos","\\arctan","\\arctg","\\arcctg","\\arg","\\ch","\\cos","\\cosec","\\cosh","\\cot","\\cotg","\\coth","\\csc","\\ctg","\\cth","\\deg","\\dim","\\exp","\\hom","\\ker","\\lg","\\ln","\\log","\\sec","\\sin","\\sinh","\\sh","\\tan","\\tanh","\\tg","\\th"],props:{numArgs:0},handler(e){var{parser:e,funcName:t}=e;return{type:"op",mode:e.mode,limits:!1,parentIsSupSub:!1,symbol:!1,name:t}},htmlBuilder:zi,mathmlBuilder:Hi}),x({type:"op",names:["\\det","\\gcd","\\inf","\\lim","\\max","\\min","\\Pr","\\sup"],props:{numArgs:0},handler(e){var{parser:e,funcName:t}=e;return{type:"op",mode:e.mode,limits:!0,parentIsSupSub:!1,symbol:!1,name:t}},htmlBuilder:zi,mathmlBuilder:Hi}),x({type:"op",names:["\\int","\\iint","\\iiint","\\oint","\\oiint","\\oiiint","∫","∬","∭","∮","∯","∰"],props:{numArgs:0},handler(e){let{parser:t,funcName:i}=e,n=i;return 1===n.length&&(n=qi[n]),{type:"op",mode:t.mode,limits:!1,parentIsSupSub:!1,symbol:!0,name:n}},htmlBuilder:zi,mathmlBuilder:Hi}),(e,t)=>{let i,n,r,s,a=!1;if("supsub"===e.type?(i=e.sup,n=e.sub,r=N(e.base,"operatorname"),a=!0):r=N(e,"operatorname"),0<r.body.length){const e=r.body.map(e=>{var t=e.text;return"string"==typeof t?{type:"textord",mode:e.mode,text:t}:e}),i=R(e,t.withFont("mathrm"),!0);for(let e=0;e<i.length;e++){const t=i[e];t instanceof g&&(t.text=t.text.replace(/\u2212/,"-").replace(/\u2217/,"*"))}s=L.makeSpan(["mop"],i,t)}else s=L.makeSpan(["mop"],[],t);return a?Fi(s,i,n,t,t.style,0,0):s});function Vi(e,t,i){var n=R(e,t,!1),r=t.sizeMultiplier/i.sizeMultiplier;for(let e=0;e<n.length;e++){var s=n[e].classes.indexOf("sizing");s<0?Array.prototype.push.apply(n[e].classes,t.sizingClasses(i)):n[e].classes[s+1]==="reset-size"+t.size&&(n[e].classes[s+1]="reset-size"+i.size),n[e].height*=r,n[e].depth*=r}return L.makeFragment(n)}x({type:"operatorname",names:["\\operatorname@","\\operatornamewithlimits"],props:{numArgs:1},handler:(e,t)=>{var{parser:e,funcName:i}=e,t=t[0];return{type:"operatorname",mode:e.mode,body:w(t),alwaysHandleSupSub:"\\operatornamewithlimits"===i,limits:!1,parentIsSupSub:!1}},htmlBuilder:Wi,mathmlBuilder:(t,i)=>{let n=S(t.body,i.withFont("mathrm")),r=!0;for(let e=0;e<n.length;e++){const i=n[e];if(!(i instanceof T.SpaceNode))if(i instanceof T.MathNode)switch(i.type){case"mi":case"mn":case"ms":case"mspace":case"mtext":break;case"mo":{const t=i.children[0];1===i.children.length&&t instanceof T.TextNode?t.text=t.text.replace(/\u2212/,"-").replace(/\u2217/,"*"):r=!1;break}default:r=!1}else r=!1}if(r){const t=n.map(e=>e.toText()).join("");n=[new T.TextNode(t)]}var i=new T.MathNode("mi",n),e=(i.setAttribute("mathvariant","normal"),new T.MathNode("mo",[mt("","text")]));return t.parentIsSupSub?new T.MathNode("mrow",[i,e]):T.newDocumentFragment([i,e])}}),D("\\operatorname","\\@ifstar\\operatornamewithlimits\\operatorname@"),et({type:"ordgroup",htmlBuilder(e,t){return e.semisimple?L.makeFragment(R(e.body,t,!1)):L.makeSpan(["mord"],R(e.body,t,!0),t)},mathmlBuilder(e,t){return vt(e.body,t,!0)}}),x({type:"overline",names:["\\overline"],props:{numArgs:1},handler(e,t){e=e.parser,t=t[0];return{type:"overline",mode:e.mode,body:t}},htmlBuilder(e,t){var e=M(e.body,t.havingCrampedStyle()),i=L.makeLineSpan("overline-line",t),n=t.fontMetrics().defaultRuleThickness,e=L.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:e},{type:"kern",size:3*n},{type:"elem",elem:i},{type:"kern",size:n}]},t);return L.makeSpan(["mord","overline"],[e],t)},mathmlBuilder(e,t){var i=new T.MathNode("mo",[new T.TextNode("‾")]),e=(i.setAttribute("stretchy","true"),new T.MathNode("mover",[I(e.body,t),i]));return e.setAttribute("accent","true"),e}}),x({type:"phantom",names:["\\phantom"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{e=e.parser,t=t[0];return{type:"phantom",mode:e.mode,body:w(t)}},htmlBuilder:(e,t)=>{e=R(e.body,t.withPhantom(),!1);return L.makeFragment(e)},mathmlBuilder:(e,t)=>{e=S(e.body,t);return new T.MathNode("mphantom",e)}}),x({type:"hphantom",names:["\\hphantom"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{e=e.parser,t=t[0];return{type:"hphantom",mode:e.mode,body:t}},htmlBuilder:(e,t)=>{let i=L.makeSpan([],[M(e.body,t.withPhantom())]);if(i.height=0,i.depth=0,i.children)for(let e=0;e<i.children.length;e++)i.children[e].height=0,i.children[e].depth=0;return i=L.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:i}]},t),L.makeSpan(["mord"],[i],t)},mathmlBuilder:(e,t)=>{e=S(w(e.body),t),t=new T.MathNode("mphantom",e),e=new T.MathNode("mpadded",[t]);return e.setAttribute("height","0px"),e.setAttribute("depth","0px"),e}}),x({type:"vphantom",names:["\\vphantom"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{e=e.parser,t=t[0];return{type:"vphantom",mode:e.mode,body:t}},htmlBuilder:(e,t)=>{var e=L.makeSpan(["inner"],[M(e.body,t.withPhantom())]),i=L.makeSpan(["fix"],[]);return L.makeSpan(["mord","rlap"],[e,i],t)},mathmlBuilder:(e,t)=>{e=S(w(e.body),t),t=new T.MathNode("mphantom",e),e=new T.MathNode("mpadded",[t]);return e.setAttribute("width","0px"),e}}),x({type:"raisebox",names:["\\raisebox"],props:{numArgs:2,argTypes:["size","hbox"],allowedInText:!0},handler(e,t){var e=e["parser"],i=N(t[0],"size").value,t=t[1];return{type:"raisebox",mode:e.mode,dy:i,body:t}},htmlBuilder(e,t){var i=M(e.body,t),e=E(e.dy,t);return L.makeVList({positionType:"shift",positionData:-e,children:[{type:"elem",elem:i}]},t)},mathmlBuilder(e,t){t=new T.MathNode("mpadded",[I(e.body,t)]),e=e.dy.number+e.dy.unit;return t.setAttribute("voffset",e),t}}),x({type:"internal",names:["\\relax"],props:{numArgs:0,allowedInText:!0},handler(e){e=e.parser;return{type:"internal",mode:e.mode}}}),x({type:"rule",names:["\\rule"],props:{numArgs:2,numOptionalArgs:1,argTypes:["size","size","size"]},handler(e,t,i){var e=e["parser"],i=i[0],n=N(t[0],"size"),t=N(t[1],"size");return{type:"rule",mode:e.mode,shift:i&&N(i,"size").value,width:n.value,height:t.value}},htmlBuilder(e,t){var i=L.makeSpan(["mord","rule"],[],t),n=E(e.width,t),r=E(e.height,t),e=e.shift?E(e.shift,t):0;return i.style.borderRightWidth=$(n),i.style.borderTopWidth=$(r),i.style.bottom=$(e),i.width=n,i.height=r+e,i.depth=-e,i.maxFontSize=1.125*r*t.sizeMultiplier,i},mathmlBuilder(e,t){var i=E(e.width,t),n=E(e.height,t),e=e.shift?E(e.shift,t):0,t=t.color&&t.getColor()||"black",r=new T.MathNode("mspace"),t=(r.setAttribute("mathbackground",t),r.setAttribute("width",$(i)),r.setAttribute("height",$(n)),new T.MathNode("mpadded",[r]));return 0<=e?t.setAttribute("height",$(e)):(t.setAttribute("height",$(e)),t.setAttribute("depth",$(-e))),t.setAttribute("voffset",$(e)),t}});const Gi=["\\tiny","\\sixptsize","\\scriptsize","\\footnotesize","\\small","\\normalsize","\\large","\\Large","\\LARGE","\\huge","\\Huge"],Yi=(x({type:"sizing",names:Gi,props:{numArgs:0,allowedInText:!0},handler:(e,t)=>{var{breakOnTokenText:e,funcName:i,parser:n}=e,e=n.parseExpression(!1,e);return{type:"sizing",mode:n.mode,size:Gi.indexOf(i)+1,body:e}},htmlBuilder:(e,t)=>{var i=t.havingSize(e.size);return Vi(e.body,i,t)},mathmlBuilder:(e,t)=>{t=t.havingSize(e.size),e=S(e.body,t),e=new T.MathNode("mstyle",e);return e.setAttribute("mathsize",$(t.sizeMultiplier)),e}}),x({type:"smash",names:["\\smash"],props:{numArgs:1,numOptionalArgs:1,allowedInText:!0},handler:(e,t,i)=>{let n=e["parser"],r=!1,s=!1;var a=i[0]&&N(i[0],"ordgroup");if(a){var o;for(let e=0;e<a.body.length;++e)if("t"===(o=a.body[e].text))r=!0;else{if("b"!==o){r=!1,s=!1;break}s=!0}}else r=!0,s=!0;e=t[0];return{type:"smash",mode:n.mode,body:e,smashHeight:r,smashDepth:s}},htmlBuilder:(e,t)=>{var i=L.makeSpan([],[M(e.body,t)]);if(!e.smashHeight&&!e.smashDepth)return i;if(e.smashHeight&&(i.height=0,i.children))for(let e=0;e<i.children.length;e++)i.children[e].height=0;if(e.smashDepth&&(i.depth=0,i.children))for(let e=0;e<i.children.length;e++)i.children[e].depth=0;e=L.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:i}]},t);return L.makeSpan(["mord"],[e],t)},mathmlBuilder:(e,t)=>{t=new T.MathNode("mpadded",[I(e.body,t)]);return e.smashHeight&&t.setAttribute("height","0px"),e.smashDepth&&t.setAttribute("depth","0px"),t}}),x({type:"sqrt",names:["\\sqrt"],props:{numArgs:1,numOptionalArgs:1},handler(e,t,i){e=e.parser,i=i[0],t=t[0];return{type:"sqrt",mode:e.mode,body:t,index:i}},htmlBuilder(e,t){let i=M(e.body,t.havingCrampedStyle());0===i.height&&(i.height=t.fontMetrics().xHeight),i=L.wrapFragment(i,t);const n=t.fontMetrics().defaultRuleThickness;let r=n,s=(t.style.id<A.TEXT.id&&(r=t.fontMetrics().xHeight),n+r/4);const a=i.height+i.depth+s+n,{span:o,ruleWidth:l,advanceWidth:c}=li.sqrtImage(a,t),h=o.height-l;h>i.height+i.depth+s&&(s=(s+h-i.height-i.depth)/2);var u=o.height-i.height-s-l,u=(i.style.paddingLeft=$(c),L.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:i,wrapperClasses:["svg-align"]},{type:"kern",size:-(i.height+u)},{type:"elem",elem:o},{type:"kern",size:l}]},t));if(e.index){const i=t.havingStyle(A.SCRIPTSCRIPT),n=M(e.index,i,t),r=.6*(u.height-u.depth),s=L.makeVList({positionType:"shift",positionData:-r,children:[{type:"elem",elem:n}]},t),a=L.makeSpan(["root"],[s]);return L.makeSpan(["mord","sqrt"],[a,u],t)}return L.makeSpan(["mord","sqrt"],[u],t)},mathmlBuilder(e,t){var{body:e,index:i}=e;return i?new T.MathNode("mroot",[I(e,t),I(i,t)]):new T.MathNode("msqrt",[I(e,t)])}}),{display:A.DISPLAY,text:A.TEXT,script:A.SCRIPT,scriptscript:A.SCRIPTSCRIPT}),Xi=(x({type:"styling",names:["\\displaystyle","\\textstyle","\\scriptstyle","\\scriptscriptstyle"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e,t){var{breakOnTokenText:e,funcName:i,parser:n}=e,e=n.parseExpression(!0,e),i=i.slice(1,i.length-5);return{type:"styling",mode:n.mode,style:i,body:e}},htmlBuilder(e,t){var i=Yi[e.style],i=t.havingStyle(i).withFont("");return Vi(e.body,i,t)},mathmlBuilder(e,t){var i=Yi[e.style],t=t.havingStyle(i),i=S(e.body,t),t=new T.MathNode("mstyle",i),i={display:["0","true"],text:["0","false"],script:["1","false"],scriptscript:["2","false"]}[e.style];return t.setAttribute("scriptlevel",i[0]),t.setAttribute("displaystyle",i[1]),t}}),et({type:"supsub",htmlBuilder(e,t){n=t;const i=(s=(r=e).base)?"op"===s.type?s.limits&&(n.style.size===A.DISPLAY.size||s.alwaysHandleSupSub)?zi:null:"operatorname"===s.type?s.alwaysHandleSupSub&&(n.style.size===A.DISPLAY.size||s.limits)?Wi:null:"accent"===s.type?C.isCharacterBox(s.base)?$t:null:"horizBrace"===s.type&&!r.sub===s.isOver?Pi:null:null;if(i)return i(e,t);var{base:n,sup:r,sub:s}=e,a=M(n,t);let o,l;var c=t.fontMetrics();let h=0,u=0;n=n&&C.isCharacterBox(n);if(r){const e=t.havingStyle(t.style.sup());o=M(r,e,t),n||(h=a.height-e.fontMetrics().supDrop*e.sizeMultiplier/t.sizeMultiplier)}if(s){const e=t.havingStyle(t.style.sub());l=M(s,e,t),n||(u=a.depth+e.fontMetrics().subDrop*e.sizeMultiplier/t.sizeMultiplier)}r=t.style===A.DISPLAY?c.sup1:t.style.cramped?c.sup3:c.sup2,s=t.sizeMultiplier,n=$(.5/c.ptPerEm/s);let d,p=null;if(l){const t=e.base&&"op"===e.base.type&&e.base.name&&("\\oiint"===e.base.name||"\\oiiint"===e.base.name);(a instanceof g||t)&&(p=$(-a.italic))}if(o&&l){h=Math.max(h,r,o.depth+.25*c.xHeight),u=Math.max(u,c.sub2);const e=4*c.defaultRuleThickness;if(h-o.depth-(l.height-u)<e){u=e-(h-o.depth)+l.height;const t=.8*c.xHeight-(h-o.depth);0<t&&(h+=t,u-=t)}const i=[{type:"elem",elem:l,shift:u,marginRight:n,marginLeft:p},{type:"elem",elem:o,shift:-h,marginRight:n}];d=L.makeVList({positionType:"individualShift",children:i},t)}else if(l){u=Math.max(u,c.sub1,l.height-.8*c.xHeight);const e=[{type:"elem",elem:l,marginLeft:p,marginRight:n}];d=L.makeVList({positionType:"shift",positionData:u,children:e},t)}else{if(!o)throw new Error("supsub must have either sup or sub.");h=Math.max(h,r,o.depth+.25*c.xHeight),d=L.makeVList({positionType:"shift",positionData:-h,children:[{type:"elem",elem:o,marginRight:n}]},t)}s=ut(a,"right")||"mord";return L.makeSpan([s],[a,L.makeSpan(["msupsub"],[d])],t)},mathmlBuilder(e,t){let i,n=!1;e.base&&"horizBrace"===e.base.type&&!!e.sup===e.base.isOver&&(n=!0,i=e.base.isOver),!e.base||"op"!==e.base.type&&"operatorname"!==e.base.type||(e.base.parentIsSupSub=!0);var r=[I(e.base,t)];let s;if(e.sub&&r.push(I(e.sub,t)),e.sup&&r.push(I(e.sup,t)),n)s=i?"mover":"munder";else if(e.sub)if(e.sup){const i=e.base;s=i&&"op"===i.type&&i.limits&&t.style===A.DISPLAY||i&&"operatorname"===i.type&&i.alwaysHandleSupSub&&(t.style===A.DISPLAY||i.limits)?"munderover":"msubsup"}else{const i=e.base;s=i&&"op"===i.type&&i.limits&&(t.style===A.DISPLAY||i.alwaysHandleSupSub)||i&&"operatorname"===i.type&&i.alwaysHandleSupSub&&(i.limits||t.style===A.DISPLAY)?"munder":"msub"}else{const i=e.base;s=i&&"op"===i.type&&i.limits&&(t.style===A.DISPLAY||i.alwaysHandleSupSub)||i&&"operatorname"===i.type&&i.alwaysHandleSupSub&&(i.limits||t.style===A.DISPLAY)?"mover":"msup"}return new T.MathNode(s,r)}}),et({type:"atom",htmlBuilder(e,t){return L.mathsym(e.text,e.mode,t,["m"+e.family])},mathmlBuilder(e,t){var i=new T.MathNode("mo",[mt(e.text,e.mode)]);return"bin"===e.family?"bold-italic"===(t=bt(e,t))&&i.setAttribute("mathvariant",t):"punct"===e.family?i.setAttribute("separator","true"):"open"!==e.family&&"close"!==e.family||i.setAttribute("stretchy","false"),i}}),{mi:"italic",mn:"normal",mtext:"normal"}),Ki=(et({type:"mathord",htmlBuilder(e,t){return L.makeOrd(e,t,"mathord")},mathmlBuilder(e,t){var i=new T.MathNode("mi",[mt(e.text,e.mode,t)]),e=bt(e,t)||"italic";return e!==Xi[i.type]&&i.setAttribute("mathvariant",e),i}}),et({type:"textord",htmlBuilder(e,t){return L.makeOrd(e,t,"textord")},mathmlBuilder(e,t){var i=mt(e.text,e.mode,t),t=bt(e,t)||"normal",e="text"===e.mode?new T.MathNode("mtext",[i]):/[0-9]/.test(e.text)?new T.MathNode("mn",[i]):"\\prime"===e.text?new T.MathNode("mo",[i]):new T.MathNode("mi",[i]);return t!==Xi[e.type]&&e.setAttribute("mathvariant",t),e}}),{"\\nobreak":"nobreak","\\allowbreak":"allowbreak"}),Zi={" ":{},"\\ ":{},"~":{className:"nobreak"},"\\space":{},"\\nobreakspace":{className:"nobreak"}},Qi=(et({type:"spacing",htmlBuilder(e,t){if(Zi.hasOwnProperty(e.text)){var i=Zi[e.text].className||"";if("text"!==e.mode)return L.makeSpan(["mspace",i],[L.mathsym(e.text,e.mode,t)],t);{const _=L.makeOrd(e,t,"textord");return _.classes.push(i),_}}if(Ki.hasOwnProperty(e.text))return L.makeSpan(["mspace",Ki[e.text]],[],t);throw new _('Unknown type of space "'+e.text+'"')},mathmlBuilder(e,t){if(Zi.hasOwnProperty(e.text))return new T.MathNode("mtext",[new T.TextNode(" ")]);if(Ki.hasOwnProperty(e.text))return new T.MathNode("mspace");throw new _('Unknown type of space "'+e.text+'"')}}),()=>{var e=new T.MathNode("mtd",[]);return e.setAttribute("width","50%"),e}),Ji=(et({type:"tag",mathmlBuilder(e,t){e=new T.MathNode("mtable",[new T.MathNode("mtr",[Qi(),new T.MathNode("mtd",[vt(e.body,t)]),Qi(),new T.MathNode("mtd",[vt(e.tag,t)])])]);return e.setAttribute("width","100%"),e}}),{"\\text":void 0,"\\textrm":"textrm","\\textsf":"textsf","\\texttt":"texttt","\\textnormal":"textrm"}),en={"\\textbf":"textbf","\\textmd":"textmd"},tn={"\\textit":"textit","\\textup":"textup"},nn=(e,t)=>{e=e.font;return e?Ji[e]?t.withTextFontFamily(Ji[e]):en[e]?t.withTextFontWeight(en[e]):t.withTextFontShape(tn[e]):t},rn=(x({type:"text",names:["\\text","\\textrm","\\textsf","\\texttt","\\textnormal","\\textbf","\\textmd","\\textit","\\textup"],props:{numArgs:1,argTypes:["text"],allowedInArgument:!0,allowedInText:!0},handler(e,t){var{parser:e,funcName:i}=e,t=t[0];return{type:"text",mode:e.mode,body:w(t),font:i}},htmlBuilder(e,t){t=nn(e,t),e=R(e.body,t,!0);return L.makeSpan(["mord","text"],e,t)},mathmlBuilder(e,t){t=nn(e,t);return vt(e.body,t)}}),x({type:"underline",names:["\\underline"],props:{numArgs:1,allowedInText:!0},handler(e,t){e=e.parser;return{type:"underline",mode:e.mode,body:t[0]}},htmlBuilder(e,t){var e=M(e.body,t),i=L.makeLineSpan("underline-line",t),n=t.fontMetrics().defaultRuleThickness,i=L.makeVList({positionType:"top",positionData:e.height,children:[{type:"kern",size:n},{type:"elem",elem:i},{type:"kern",size:3*n},{type:"elem",elem:e}]},t);return L.makeSpan(["mord","underline"],[i],t)},mathmlBuilder(e,t){var i=new T.MathNode("mo",[new T.TextNode("‾")]),e=(i.setAttribute("stretchy","true"),new T.MathNode("munder",[I(e.body,t),i]));return e.setAttribute("accentunder","true"),e}}),x({type:"vcenter",names:["\\vcenter"],props:{numArgs:1,argTypes:["original"],allowedInText:!1},handler(e,t){e=e.parser;return{type:"vcenter",mode:e.mode,body:t[0]}},htmlBuilder(e,t){var e=M(e.body,t),i=t.fontMetrics().axisHeight,i=.5*(e.height-i-(e.depth+i));return L.makeVList({positionType:"shift",positionData:i,children:[{type:"elem",elem:e}]},t)},mathmlBuilder(e,t){return new T.MathNode("mpadded",[I(e.body,t)],["vcenter"])}}),x({type:"verb",names:["\\verb"],props:{numArgs:0,allowedInText:!0},handler(e,t,i){throw new _("\\verb ended by end of line instead of matching delimiter")},htmlBuilder(i,e){var n=rn(i),r=[],s=e.havingStyle(e.style.text());for(let t=0;t<n.length;t++){let e=n[t];"~"===e&&(e="\\textasciitilde"),r.push(L.makeSymbol(e,"Typewriter-Regular",i.mode,s,["mord","texttt"]))}return L.makeSpan(["mord","text"].concat(s.sizingClasses(e)),L.tryCombineChars(r),s)},mathmlBuilder(e,t){e=new T.TextNode(rn(e)),e=new T.MathNode("mtext",[e]);return e.setAttribute("mathvariant","monospace"),e}}),e=>e.body.replace(/ /g,e.star?"␣":" "));var sn=Ze;const an=new RegExp("[̀-ͯ]+$");class on{constructor(e,t){this.input=void 0,this.settings=void 0,this.tokenRegex=void 0,this.catcodes=void 0,this.input=e,this.settings=t,this.tokenRegex=new RegExp("([ \r\n\t]+)|\\\\(\n|[ \r\t]+\n?)[ \r\t]*|([!-\\[\\]-‧-豈-][̀-ͯ]*|[\ud800-\udbff][\udc00-\udfff][̀-ͯ]*|\\\\verb\\*([^]).*?\\4|\\\\verb([^*a-zA-Z]).*?\\5|(\\\\[a-zA-Z@]+)[ \r\n\t]*|\\\\[^\ud800-\udfff])","g"),this.catcodes={"%":14,"~":13}}setCatcode(e,t){this.catcodes[e]=t}lex(){const e=this.input,t=this.tokenRegex.lastIndex;if(t===e.length)return new yi("EOF",new mi(this,t,t));var i=this.tokenRegex.exec(e);if(null===i||i.index!==t)throw new _("Unexpected character: '"+e[t]+"'",new yi(e[t],new mi(this,t,t+1)));i=i[6]||i[3]||(i[2]?"\\ ":" ");if(14!==this.catcodes[i])return new yi(i,new mi(this,t,this.tokenRegex.lastIndex));{const t=e.indexOf("\n",this.tokenRegex.lastIndex);return-1===t?(this.tokenRegex.lastIndex=e.length,this.settings.reportNonstrict("commentAtEnd","% comment has no terminating newline; LaTeX would fail because of commenting the end of math mode (e.g. $)")):this.tokenRegex.lastIndex=t+1,this.lex()}}}class ln{constructor(e,t){void 0===e&&(e={}),void 0===t&&(t={}),this.current=void 0,this.builtins=void 0,this.undefStack=void 0,this.current=t,this.builtins=e,this.undefStack=[]}beginGroup(){this.undefStack.push({})}endGroup(){if(0===this.undefStack.length)throw new _("Unbalanced namespace destruction: attempt to pop global namespace; please report this as a bug");var e=this.undefStack.pop();for(const t in e)e.hasOwnProperty(t)&&(null==e[t]?delete this.current[t]:this.current[t]=e[t])}endGroups(){for(;0<this.undefStack.length;)this.endGroup()}has(e){return this.current.hasOwnProperty(e)||this.builtins.hasOwnProperty(e)}get(e){return(this.current.hasOwnProperty(e)?this.current:this.builtins)[e]}set(t,e,i){if(i=void 0===i?!1:i){for(let e=0;e<this.undefStack.length;e++)delete this.undefStack[e][t];0<this.undefStack.length&&(this.undefStack[this.undefStack.length-1][t]=e)}else{const e=this.undefStack[this.undefStack.length-1];e&&!e.hasOwnProperty(t)&&(e[t]=this.current[t])}null==e?delete this.current[t]:this.current[t]=e}}var cn=fi;D("\\noexpand",function(e){var t=e.popToken();return e.isExpandable(t.text)&&(t.noexpand=!0,t.treatAsRelax=!0),{tokens:[t],numArgs:0}}),D("\\expandafter",function(e){var t=e.popToken();return e.expandOnce(!0),{tokens:[t],numArgs:0}}),D("\\@firstoftwo",function(e){return{tokens:e.consumeArgs(2)[0],numArgs:0}}),D("\\@secondoftwo",function(e){return{tokens:e.consumeArgs(2)[1],numArgs:0}}),D("\\@ifnextchar",function(e){var t=e.consumeArgs(3),e=(e.consumeSpaces(),e.future());return 1===t[0].length&&t[0][0].text===e.text?{tokens:t[1],numArgs:0}:{tokens:t[2],numArgs:0}}),D("\\@ifstar","\\@ifnextchar *{\\@firstoftwo{#1}}"),D("\\TextOrMath",function(e){var t=e.consumeArgs(2);return"text"===e.mode?{tokens:t[0],numArgs:0}:{tokens:t[1],numArgs:0}});const hn={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,a:10,A:10,b:11,B:11,c:12,C:12,d:13,D:13,e:14,E:14,f:15,F:15},un=(D("\\char",function(e){let t,i=e.popToken(),n="";if("'"===i.text)t=8,i=e.popToken();else if('"'===i.text)t=16,i=e.popToken();else if("`"===i.text)if("\\"===(i=e.popToken()).text[0])n=i.text.charCodeAt(1);else{if("EOF"===i.text)throw new _("\\char` missing argument");n=i.text.charCodeAt(0)}else t=10;if(t){if(null==(n=hn[i.text])||n>=t)throw new _("Invalid base-"+t+" digit "+i.text);for(var r;null!=(r=hn[e.future().text])&&r<t;)n=n*t+r,e.popToken()}return"\\@char{"+n+"}"}),(i,e,t)=>{let n=i.consumeArg().tokens;if(1!==n.length)throw new _("\\newcommand's first argument must be a macro name");var r=n[0].text,s=i.isDefined(r);if(s&&!e)throw new _("\\newcommand{"+r+"} attempting to redefine "+r+"; use \\renewcommand");if(!s&&!t)throw new _("\\renewcommand{"+r+"} when command "+r+" does not yet exist; use \\newcommand");let a=0;if(1===(n=i.consumeArg().tokens).length&&"["===n[0].text){let e="",t=i.expandNextToken();for(;"]"!==t.text&&"EOF"!==t.text;)e+=t.text,t=i.expandNextToken();if(!e.match(/^\s*[0-9]+\s*$/))throw new _("Invalid number of arguments: "+e);a=parseInt(e),n=i.consumeArg().tokens}return i.macros.set(r,{tokens:n,numArgs:a}),""}),dn=(D("\\newcommand",e=>un(e,!1,!0)),D("\\renewcommand",e=>un(e,!0,!1)),D("\\providecommand",e=>un(e,!0,!0)),D("\\message",e=>{e=e.consumeArgs(1)[0];return console.log(e.reverse().map(e=>e.text).join("")),""}),D("\\errmessage",e=>{e=e.consumeArgs(1)[0];return console.error(e.reverse().map(e=>e.text).join("")),""}),D("\\show",e=>{var t=e.popToken(),i=t.text;return console.log(t,e.macros.get(i),sn[i],u.math[i],u.text[i]),""}),D("\\bgroup","{"),D("\\egroup","}"),D("~","\\nobreakspace"),D("\\lq","`"),D("\\rq","'"),D("\\aa","\\r a"),D("\\AA","\\r A"),D("\\textcopyright","\\html@mathml{\\textcircled{c}}{\\char`©}"),D("\\copyright","\\TextOrMath{\\textcopyright}{\\text{\\textcopyright}}"),D("\\textregistered","\\html@mathml{\\textcircled{\\scriptsize R}}{\\char`®}"),D("ℬ","\\mathscr{B}"),D("ℰ","\\mathscr{E}"),D("ℱ","\\mathscr{F}"),D("ℋ","\\mathscr{H}"),D("ℐ","\\mathscr{I}"),D("ℒ","\\mathscr{L}"),D("ℳ","\\mathscr{M}"),D("ℛ","\\mathscr{R}"),D("ℭ","\\mathfrak{C}"),D("ℌ","\\mathfrak{H}"),D("ℨ","\\mathfrak{Z}"),D("\\Bbbk","\\Bbb{k}"),D("·","\\cdotp"),D("\\llap","\\mathllap{\\textrm{#1}}"),D("\\rlap","\\mathrlap{\\textrm{#1}}"),D("\\clap","\\mathclap{\\textrm{#1}}"),D("\\mathstrut","\\vphantom{(}"),D("\\underbar","\\underline{\\text{#1}}"),D("\\not",'\\html@mathml{\\mathrel{\\mathrlap\\@not}}{\\char"338}'),D("\\neq","\\html@mathml{\\mathrel{\\not=}}{\\mathrel{\\char`≠}}"),D("\\ne","\\neq"),D("≠","\\neq"),D("\\notin","\\html@mathml{\\mathrel{{\\in}\\mathllap{/\\mskip1mu}}}{\\mathrel{\\char`∉}}"),D("∉","\\notin"),D("≘","\\html@mathml{\\mathrel{=\\kern{-1em}\\raisebox{0.4em}{$\\scriptsize\\frown$}}}{\\mathrel{\\char`≘}}"),D("≙","\\html@mathml{\\stackrel{\\tiny\\wedge}{=}}{\\mathrel{\\char`≘}}"),D("≚","\\html@mathml{\\stackrel{\\tiny\\vee}{=}}{\\mathrel{\\char`≚}}"),D("≛","\\html@mathml{\\stackrel{\\scriptsize\\star}{=}}{\\mathrel{\\char`≛}}"),D("≝","\\html@mathml{\\stackrel{\\tiny\\mathrm{def}}{=}}{\\mathrel{\\char`≝}}"),D("≞","\\html@mathml{\\stackrel{\\tiny\\mathrm{m}}{=}}{\\mathrel{\\char`≞}}"),D("≟","\\html@mathml{\\stackrel{\\tiny?}{=}}{\\mathrel{\\char`≟}}"),D("⟂","\\perp"),D("‼","\\mathclose{!\\mkern-0.8mu!}"),D("∌","\\notni"),D("⌜","\\ulcorner"),D("⌝","\\urcorner"),D("⌞","\\llcorner"),D("⌟","\\lrcorner"),D("©","\\copyright"),D("®","\\textregistered"),D("️","\\textregistered"),D("\\ulcorner",'\\html@mathml{\\@ulcorner}{\\mathop{\\char"231c}}'),D("\\urcorner",'\\html@mathml{\\@urcorner}{\\mathop{\\char"231d}}'),D("\\llcorner",'\\html@mathml{\\@llcorner}{\\mathop{\\char"231e}}'),D("\\lrcorner",'\\html@mathml{\\@lrcorner}{\\mathop{\\char"231f}}'),D("\\vdots","\\mathord{\\varvdots\\rule{0pt}{15pt}}"),D("⋮","\\vdots"),D("\\varGamma","\\mathit{\\Gamma}"),D("\\varDelta","\\mathit{\\Delta}"),D("\\varTheta","\\mathit{\\Theta}"),D("\\varLambda","\\mathit{\\Lambda}"),D("\\varXi","\\mathit{\\Xi}"),D("\\varPi","\\mathit{\\Pi}"),D("\\varSigma","\\mathit{\\Sigma}"),D("\\varUpsilon","\\mathit{\\Upsilon}"),D("\\varPhi","\\mathit{\\Phi}"),D("\\varPsi","\\mathit{\\Psi}"),D("\\varOmega","\\mathit{\\Omega}"),D("\\substack","\\begin{subarray}{c}#1\\end{subarray}"),D("\\colon","\\nobreak\\mskip2mu\\mathpunct{}\\mathchoice{\\mkern-3mu}{\\mkern-3mu}{}{}{:}\\mskip6mu\\relax"),D("\\boxed","\\fbox{$\\displaystyle{#1}$}"),D("\\iff","\\DOTSB\\;\\Longleftrightarrow\\;"),D("\\implies","\\DOTSB\\;\\Longrightarrow\\;"),D("\\impliedby","\\DOTSB\\;\\Longleftarrow\\;"),{",":"\\dotsc","\\not":"\\dotsb","+":"\\dotsb","=":"\\dotsb","<":"\\dotsb",">":"\\dotsb","-":"\\dotsb","*":"\\dotsb",":":"\\dotsb","\\DOTSB":"\\dotsb","\\coprod":"\\dotsb","\\bigvee":"\\dotsb","\\bigwedge":"\\dotsb","\\biguplus":"\\dotsb","\\bigcap":"\\dotsb","\\bigcup":"\\dotsb","\\prod":"\\dotsb","\\sum":"\\dotsb","\\bigotimes":"\\dotsb","\\bigoplus":"\\dotsb","\\bigodot":"\\dotsb","\\bigsqcup":"\\dotsb","\\And":"\\dotsb","\\longrightarrow":"\\dotsb","\\Longrightarrow":"\\dotsb","\\longleftarrow":"\\dotsb","\\Longleftarrow":"\\dotsb","\\longleftrightarrow":"\\dotsb","\\Longleftrightarrow":"\\dotsb","\\mapsto":"\\dotsb","\\longmapsto":"\\dotsb","\\hookrightarrow":"\\dotsb","\\doteq":"\\dotsb","\\mathbin":"\\dotsb","\\mathrel":"\\dotsb","\\relbar":"\\dotsb","\\Relbar":"\\dotsb","\\xrightarrow":"\\dotsb","\\xleftarrow":"\\dotsb","\\DOTSI":"\\dotsi","\\int":"\\dotsi","\\oint":"\\dotsi","\\iint":"\\dotsi","\\iiint":"\\dotsi","\\iiiint":"\\dotsi","\\idotsint":"\\dotsi","\\DOTSX":"\\dotsx"}),pn=(D("\\dots",function(e){let t="\\dotso";e=e.expandAfterFuture().text;return e in dn?t=dn[e]:("\\not"===e.slice(0,4)||e in u.math&&C.contains(["bin","rel"],u.math[e].group))&&(t="\\dotsb"),t}),{")":!0,"]":!0,"\\rbrack":!0,"\\}":!0,"\\rbrace":!0,"\\rangle":!0,"\\rceil":!0,"\\rfloor":!0,"\\rgroup":!0,"\\rmoustache":!0,"\\right":!0,"\\bigr":!0,"\\biggr":!0,"\\Bigr":!0,"\\Biggr":!0,$:!0,";":!0,".":!0,",":!0});D("\\dotso",function(e){return e.future().text in pn?"\\ldots\\,":"\\ldots"}),D("\\dotsc",function(e){e=e.future().text;return e in pn&&","!==e?"\\ldots\\,":"\\ldots"}),D("\\cdots",function(e){return e.future().text in pn?"\\@cdots\\,":"\\@cdots"}),D("\\dotsb","\\cdots"),D("\\dotsm","\\cdots"),D("\\dotsi","\\!\\cdots"),D("\\dotsx","\\ldots\\,"),D("\\DOTSI","\\relax"),D("\\DOTSB","\\relax"),D("\\DOTSX","\\relax"),D("\\tmspace","\\TextOrMath{\\kern#1#3}{\\mskip#1#2}\\relax"),D("\\,","\\tmspace+{3mu}{.1667em}"),D("\\thinspace","\\,"),D("\\>","\\mskip{4mu}"),D("\\:","\\tmspace+{4mu}{.2222em}"),D("\\medspace","\\:"),D("\\;","\\tmspace+{5mu}{.2777em}"),D("\\thickspace","\\;"),D("\\!","\\tmspace-{3mu}{.1667em}"),D("\\negthinspace","\\!"),D("\\negmedspace","\\tmspace-{4mu}{.2222em}"),D("\\negthickspace","\\tmspace-{5mu}{.277em}"),D("\\enspace","\\kern.5em "),D("\\enskip","\\hskip.5em\\relax"),D("\\quad","\\hskip1em\\relax"),D("\\qquad","\\hskip2em\\relax"),D("\\tag","\\@ifstar\\tag@literal\\tag@paren"),D("\\tag@paren","\\tag@literal{({#1})}"),D("\\tag@literal",e=>{if(e.macros.get("\\df@tag"))throw new _("Multiple \\tag");return"\\gdef\\df@tag{\\text{#1}}"}),D("\\bmod","\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}\\mathbin{\\rm mod}\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}"),D("\\pod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern8mu}{\\mkern8mu}{\\mkern8mu}(#1)"),D("\\pmod","\\pod{{\\rm mod}\\mkern6mu#1}"),D("\\mod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern12mu}{\\mkern12mu}{\\mkern12mu}{\\rm mod}\\,\\,#1"),D("\\newline","\\\\\\relax"),D("\\TeX","\\textrm{\\html@mathml{T\\kern-.1667em\\raisebox{-.5ex}{E}\\kern-.125emX}{TeX}}");l=$(ne["Main-Regular"]["T".charCodeAt(0)][1]-.7*ne["Main-Regular"]["A".charCodeAt(0)][1]),D("\\LaTeX","\\textrm{\\html@mathml{L\\kern-.36em\\raisebox{"+l+"}{\\scriptstyle A}\\kern-.15em\\TeX}{LaTeX}}"),D("\\KaTeX","\\textrm{\\html@mathml{K\\kern-.17em\\raisebox{"+l+"}{\\scriptstyle A}\\kern-.15em\\TeX}{KaTeX}}"),D("\\hspace","\\@ifstar\\@hspacer\\@hspace"),D("\\@hspace","\\hskip #1\\relax"),D("\\@hspacer","\\rule{0pt}{0pt}\\hskip #1\\relax"),D("\\ordinarycolon",":"),D("\\vcentcolon","\\mathrel{\\mathop\\ordinarycolon}"),D("\\dblcolon",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-.9mu}\\vcentcolon}}{\\mathop{\\char"2237}}'),D("\\coloneqq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2254}}'),D("\\Coloneqq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2237\\char"3d}}'),D("\\coloneq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"3a\\char"2212}}'),D("\\Coloneq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"2237\\char"2212}}'),D("\\eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2255}}'),D("\\Eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"3d\\char"2237}}'),D("\\eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2239}}'),D("\\Eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"2212\\char"2237}}'),D("\\colonapprox",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"3a\\char"2248}}'),D("\\Colonapprox",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"2237\\char"2248}}'),D("\\colonsim",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"3a\\char"223c}}'),D("\\Colonsim",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"2237\\char"223c}}'),D("∷","\\dblcolon"),D("∹","\\eqcolon"),D("≔","\\coloneqq"),D("≕","\\eqqcolon"),D("⩴","\\Coloneqq"),D("\\ratio","\\vcentcolon"),D("\\coloncolon","\\dblcolon"),D("\\colonequals","\\coloneqq"),D("\\coloncolonequals","\\Coloneqq"),D("\\equalscolon","\\eqqcolon"),D("\\equalscoloncolon","\\Eqqcolon"),D("\\colonminus","\\coloneq"),D("\\coloncolonminus","\\Coloneq"),D("\\minuscolon","\\eqcolon"),D("\\minuscoloncolon","\\Eqcolon"),D("\\coloncolonapprox","\\Colonapprox"),D("\\coloncolonsim","\\Colonsim"),D("\\simcolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\vcentcolon}"),D("\\simcoloncolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\dblcolon}"),D("\\approxcolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\vcentcolon}"),D("\\approxcoloncolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\dblcolon}"),D("\\notni","\\html@mathml{\\not\\ni}{\\mathrel{\\char`∌}}"),D("\\limsup","\\DOTSB\\operatorname*{lim\\,sup}"),D("\\liminf","\\DOTSB\\operatorname*{lim\\,inf}"),D("\\injlim","\\DOTSB\\operatorname*{inj\\,lim}"),D("\\projlim","\\DOTSB\\operatorname*{proj\\,lim}"),D("\\varlimsup","\\DOTSB\\operatorname*{\\overline{lim}}"),D("\\varliminf","\\DOTSB\\operatorname*{\\underline{lim}}"),D("\\varinjlim","\\DOTSB\\operatorname*{\\underrightarrow{lim}}"),D("\\varprojlim","\\DOTSB\\operatorname*{\\underleftarrow{lim}}"),D("\\gvertneqq","\\html@mathml{\\@gvertneqq}{≩}"),D("\\lvertneqq","\\html@mathml{\\@lvertneqq}{≨}"),D("\\ngeqq","\\html@mathml{\\@ngeqq}{≱}"),D("\\ngeqslant","\\html@mathml{\\@ngeqslant}{≱}"),D("\\nleqq","\\html@mathml{\\@nleqq}{≰}"),D("\\nleqslant","\\html@mathml{\\@nleqslant}{≰}"),D("\\nshortmid","\\html@mathml{\\@nshortmid}{∤}"),D("\\nshortparallel","\\html@mathml{\\@nshortparallel}{∦}"),D("\\nsubseteqq","\\html@mathml{\\@nsubseteqq}{⊈}"),D("\\nsupseteqq","\\html@mathml{\\@nsupseteqq}{⊉}"),D("\\varsubsetneq","\\html@mathml{\\@varsubsetneq}{⊊}"),D("\\varsubsetneqq","\\html@mathml{\\@varsubsetneqq}{⫋}"),D("\\varsupsetneq","\\html@mathml{\\@varsupsetneq}{⊋}"),D("\\varsupsetneqq","\\html@mathml{\\@varsupsetneqq}{⫌}"),D("\\imath","\\html@mathml{\\@imath}{ı}"),D("\\jmath","\\html@mathml{\\@jmath}{ȷ}"),D("\\llbracket","\\html@mathml{\\mathopen{[\\mkern-3.2mu[}}{\\mathopen{\\char`⟦}}"),D("\\rrbracket","\\html@mathml{\\mathclose{]\\mkern-3.2mu]}}{\\mathclose{\\char`⟧}}"),D("⟦","\\llbracket"),D("⟧","\\rrbracket"),D("\\lBrace","\\html@mathml{\\mathopen{\\{\\mkern-3.2mu[}}{\\mathopen{\\char`⦃}}"),D("\\rBrace","\\html@mathml{\\mathclose{]\\mkern-3.2mu\\}}}{\\mathclose{\\char`⦄}}"),D("⦃","\\lBrace"),D("⦄","\\rBrace"),D("\\minuso","\\mathbin{\\html@mathml{{\\mathrlap{\\mathchoice{\\kern{0.145em}}{\\kern{0.145em}}{\\kern{0.1015em}}{\\kern{0.0725em}}\\circ}{-}}}{\\char`⦵}}"),D("⦵","\\minuso"),D("\\darr","\\downarrow"),D("\\dArr","\\Downarrow"),D("\\Darr","\\Downarrow"),D("\\lang","\\langle"),D("\\rang","\\rangle"),D("\\uarr","\\uparrow"),D("\\uArr","\\Uparrow"),D("\\Uarr","\\Uparrow"),D("\\N","\\mathbb{N}"),D("\\R","\\mathbb{R}"),D("\\Z","\\mathbb{Z}"),D("\\alef","\\aleph"),D("\\alefsym","\\aleph"),D("\\Alpha","\\mathrm{A}"),D("\\Beta","\\mathrm{B}"),D("\\bull","\\bullet"),D("\\Chi","\\mathrm{X}"),D("\\clubs","\\clubsuit"),D("\\cnums","\\mathbb{C}"),D("\\Complex","\\mathbb{C}"),D("\\Dagger","\\ddagger"),D("\\diamonds","\\diamondsuit"),D("\\empty","\\emptyset"),D("\\Epsilon","\\mathrm{E}"),D("\\Eta","\\mathrm{H}"),D("\\exist","\\exists"),D("\\harr","\\leftrightarrow"),D("\\hArr","\\Leftrightarrow"),D("\\Harr","\\Leftrightarrow"),D("\\hearts","\\heartsuit"),D("\\image","\\Im"),D("\\infin","\\infty"),D("\\Iota","\\mathrm{I}"),D("\\isin","\\in"),D("\\Kappa","\\mathrm{K}"),D("\\larr","\\leftarrow"),D("\\lArr","\\Leftarrow"),D("\\Larr","\\Leftarrow"),D("\\lrarr","\\leftrightarrow"),D("\\lrArr","\\Leftrightarrow"),D("\\Lrarr","\\Leftrightarrow"),D("\\Mu","\\mathrm{M}"),D("\\natnums","\\mathbb{N}"),D("\\Nu","\\mathrm{N}"),D("\\Omicron","\\mathrm{O}"),D("\\plusmn","\\pm"),D("\\rarr","\\rightarrow"),D("\\rArr","\\Rightarrow"),D("\\Rarr","\\Rightarrow"),D("\\real","\\Re"),D("\\reals","\\mathbb{R}"),D("\\Reals","\\mathbb{R}"),D("\\Rho","\\mathrm{P}"),D("\\sdot","\\cdot"),D("\\sect","\\S"),D("\\spades","\\spadesuit"),D("\\sub","\\subset"),D("\\sube","\\subseteq"),D("\\supe","\\supseteq"),D("\\Tau","\\mathrm{T}"),D("\\thetasym","\\vartheta"),D("\\weierp","\\wp"),D("\\Zeta","\\mathrm{Z}"),D("\\argmin","\\DOTSB\\operatorname*{arg\\,min}"),D("\\argmax","\\DOTSB\\operatorname*{arg\\,max}"),D("\\plim","\\DOTSB\\mathop{\\operatorname{plim}}\\limits"),D("\\bra","\\mathinner{\\langle{#1}|}"),D("\\ket","\\mathinner{|{#1}\\rangle}"),D("\\braket","\\mathinner{\\langle{#1}\\rangle}"),D("\\Bra","\\left\\langle#1\\right|"),D("\\Ket","\\left|#1\\right\\rangle"),p=l=>e=>{const t=e.consumeArg().tokens,n=e.consumeArg().tokens,r=e.consumeArg().tokens,i=e.consumeArg().tokens,s=e.macros.get("|"),a=e.macros.get("\\|");e.macros.beginGroup();var o=i=>e=>{l&&(e.macros.set("|",s),r.length)&&e.macros.set("\\|",a);let t=i;return!i&&r.length&&"|"===e.future().text&&(e.popToken(),t=!0),{tokens:t?r:n,numArgs:0}},o=(e.macros.set("|",o(!1)),r.length&&e.macros.set("\\|",o(!0)),e.consumeArg().tokens),o=e.expandTokens([...i,...o,...t]);return e.macros.endGroup(),{tokens:o.reverse(),numArgs:0}};D("\\bra@ket",p(!1)),D("\\bra@set",p(!0)),D("\\Braket","\\bra@ket{\\left\\langle}{\\,\\middle\\vert\\,}{\\,\\middle\\vert\\,}{\\right\\rangle}"),D("\\Set","\\bra@set{\\left\\{\\:}{\\;\\middle\\vert\\;}{\\;\\middle\\Vert\\;}{\\:\\right\\}}"),D("\\set","\\bra@set{\\{\\,}{\\mid}{}{\\,\\}}"),D("\\angln","{\\angl n}"),D("\\blue","\\textcolor{##6495ed}{#1}"),D("\\orange","\\textcolor{##ffa500}{#1}"),D("\\pink","\\textcolor{##ff00af}{#1}"),D("\\red","\\textcolor{##df0030}{#1}"),D("\\green","\\textcolor{##28ae7b}{#1}"),D("\\gray","\\textcolor{gray}{#1}"),D("\\purple","\\textcolor{##9d38bd}{#1}"),D("\\blueA","\\textcolor{##ccfaff}{#1}"),D("\\blueB","\\textcolor{##80f6ff}{#1}"),D("\\blueC","\\textcolor{##63d9ea}{#1}"),D("\\blueD","\\textcolor{##11accd}{#1}"),D("\\blueE","\\textcolor{##0c7f99}{#1}"),D("\\tealA","\\textcolor{##94fff5}{#1}"),D("\\tealB","\\textcolor{##26edd5}{#1}"),D("\\tealC","\\textcolor{##01d1c1}{#1}"),D("\\tealD","\\textcolor{##01a995}{#1}"),D("\\tealE","\\textcolor{##208170}{#1}"),D("\\greenA","\\textcolor{##b6ffb0}{#1}"),D("\\greenB","\\textcolor{##8af281}{#1}"),D("\\greenC","\\textcolor{##74cf70}{#1}"),D("\\greenD","\\textcolor{##1fab54}{#1}"),D("\\greenE","\\textcolor{##0d923f}{#1}"),D("\\goldA","\\textcolor{##ffd0a9}{#1}"),D("\\goldB","\\textcolor{##ffbb71}{#1}"),D("\\goldC","\\textcolor{##ff9c39}{#1}"),D("\\goldD","\\textcolor{##e07d10}{#1}"),D("\\goldE","\\textcolor{##a75a05}{#1}"),D("\\redA","\\textcolor{##fca9a9}{#1}"),D("\\redB","\\textcolor{##ff8482}{#1}"),D("\\redC","\\textcolor{##f9685d}{#1}"),D("\\redD","\\textcolor{##e84d39}{#1}"),D("\\redE","\\textcolor{##bc2612}{#1}"),D("\\maroonA","\\textcolor{##ffbde0}{#1}"),D("\\maroonB","\\textcolor{##ff92c6}{#1}"),D("\\maroonC","\\textcolor{##ed5fa6}{#1}"),D("\\maroonD","\\textcolor{##ca337c}{#1}"),D("\\maroonE","\\textcolor{##9e034e}{#1}"),D("\\purpleA","\\textcolor{##ddd7ff}{#1}"),D("\\purpleB","\\textcolor{##c6b9fc}{#1}"),D("\\purpleC","\\textcolor{##aa87ff}{#1}"),D("\\purpleD","\\textcolor{##7854ab}{#1}"),D("\\purpleE","\\textcolor{##543b78}{#1}"),D("\\mintA","\\textcolor{##f5f9e8}{#1}"),D("\\mintB","\\textcolor{##edf2df}{#1}"),D("\\mintC","\\textcolor{##e0e5cc}{#1}"),D("\\grayA","\\textcolor{##f6f7f7}{#1}"),D("\\grayB","\\textcolor{##f0f1f2}{#1}"),D("\\grayC","\\textcolor{##e3e5e6}{#1}"),D("\\grayD","\\textcolor{##d6d8da}{#1}"),D("\\grayE","\\textcolor{##babec2}{#1}"),D("\\grayF","\\textcolor{##888d93}{#1}"),D("\\grayG","\\textcolor{##626569}{#1}"),D("\\grayH","\\textcolor{##3b3e40}{#1}"),D("\\grayI","\\textcolor{##21242c}{#1}"),D("\\kaBlue","\\textcolor{##314453}{#1}"),D("\\kaGreen","\\textcolor{##71B307}{#1}");const gn={"^":!0,_:!0,"\\limits":!0,"\\nolimits":!0};class fn{constructor(e,t,i){this.settings=void 0,this.expansionCount=void 0,this.lexer=void 0,this.macros=void 0,this.stack=void 0,this.mode=void 0,this.settings=t,this.expansionCount=0,this.feed(e),this.macros=new ln(cn,t.macros),this.mode=i,this.stack=[]}feed(e){this.lexer=new on(e,this.settings)}switchMode(e){this.mode=e}beginGroup(){this.macros.beginGroup()}endGroup(){this.macros.endGroup()}endGroups(){this.macros.endGroups()}future(){return 0===this.stack.length&&this.pushToken(this.lexer.lex()),this.stack[this.stack.length-1]}popToken(){return this.future(),this.stack.pop()}pushToken(e){this.stack.push(e)}pushTokens(e){this.stack.push(...e)}scanArgument(e){let t,i,n;if(e){if(this.consumeSpaces(),"["!==this.future().text)return null;t=this.popToken(),{tokens:n,end:i}=this.consumeArg(["]"])}else({tokens:n,start:t,end:i}=this.consumeArg());return this.pushToken(new yi("EOF",i.loc)),this.pushTokens(n),t.range(i,"")}consumeSpaces(){for(;" "===this.future().text;)this.stack.pop()}consumeArg(e){var t=[],i=e&&0<e.length,n=(i||this.consumeSpaces(),this.future());let r,s=0,a=0;do{if(r=this.popToken(),t.push(r),"{"===r.text)++s;else if("}"===r.text){if(-1===--s)throw new _("Extra }",r)}else if("EOF"===r.text)throw new _("Unexpected end of input in a macro argument, expected '"+(e&&i?e[a]:"}")+"'",r);if(e&&i)if((0===s||1===s&&"{"===e[a])&&r.text===e[a]){if(++a===e.length){t.splice(-a,a);break}}else a=0}while(0!==s||i);return"{"===n.text&&"}"===t[t.length-1].text&&(t.pop(),t.shift()),t.reverse(),{tokens:t,start:n,end:r}}consumeArgs(t,i){if(i){if(i.length!==t+1)throw new _("The length of delimiters doesn't match the number of args!");const n=i[0];for(let e=0;e<n.length;e++){const i=this.popToken();if(n[e]!==i.text)throw new _("Use of the macro doesn't match its definition",i)}}const n=[];for(let e=0;e<t;e++)n.push(this.consumeArg(i&&i[e+1]).tokens);return n}countExpansion(e){if(this.expansionCount+=e,this.expansionCount>this.settings.maxExpand)throw new _("Too many expansions: infinite loop or need to increase maxExpand setting")}expandOnce(e){var t=this.popToken(),i=t.text,n=t.noexpand?null:this._getExpansion(i);if(null==n||e&&n.unexpandable){if(e&&null==n&&"\\"===i[0]&&!this.isDefined(i))throw new _("Undefined control sequence: "+i);return this.pushToken(t),!1}this.countExpansion(1);let r=n.tokens;var s=this.consumeArgs(n.numArgs,n.delimiters);if(n.numArgs)for(let e=(r=r.slice()).length-1;0<=e;--e){var a=r[e];if("#"===a.text){if(0===e)throw new _("Incomplete placeholder at end of macro body",a);if("#"===(a=r[--e]).text)r.splice(e+1,1);else{if(!/^[1-9]$/.test(a.text))throw new _("Not a valid argument number",a);r.splice(e,2,...s[+a.text-1])}}}return this.pushTokens(r),r.length}expandAfterFuture(){return this.expandOnce(),this.future()}expandNextToken(){for(;;){var e;if(!1===this.expandOnce())return(e=this.stack.pop()).treatAsRelax&&(e.text="\\relax"),e}throw new Error}expandMacro(e){return this.macros.has(e)?this.expandTokens([new yi(e)]):void 0}expandTokens(e){var t=[],i=this.stack.length;for(this.pushTokens(e);this.stack.length>i;)if(!1===this.expandOnce(!0)){const e=this.stack.pop();e.treatAsRelax&&(e.noexpand=!1,e.treatAsRelax=!1),t.push(e)}return this.countExpansion(t.length),t}expandMacroAsText(e){e=this.expandMacro(e);return e&&e.map(e=>e.text).join("")}_getExpansion(i){const n=this.macros.get(i);if(null==n)return n;if(1===i.length){const n=this.lexer.catcodes[i];if(null!=n&&13!==n)return}i="function"==typeof n?n(this):n;if("string"!=typeof i)return i;{let e=0;if(-1!==i.indexOf("#")){const n=i.replace(/##/g,"");for(;-1!==n.indexOf("#"+(e+1));)++e}const n=new on(i,this.settings),r=[];let t=n.lex();for(;"EOF"!==t.text;)r.push(t),t=n.lex();return r.reverse(),{tokens:r,numArgs:e}}}isDefined(e){return this.macros.has(e)||sn.hasOwnProperty(e)||u.math.hasOwnProperty(e)||u.text.hasOwnProperty(e)||gn.hasOwnProperty(e)}isExpandable(e){var t=this.macros.get(e);return null!=t?"string"==typeof t||"function"==typeof t||!t.unexpandable:sn.hasOwnProperty(e)&&!sn[e].primitive}}const mn=/^[\u208a\u208b\u208c\u208d\u208e\u2080\u2081\u2082\u2083\u2084\u2085\u2086\u2087\u2088\u2089\u2090\u2091\u2095\u1d62\u2c7c\u2096\u2097\u2098\u2099\u2092\u209a\u1d63\u209b\u209c\u1d64\u1d65\u2093\u1d66\u1d67\u1d68\u1d69\u1d6a]/,yn=Object.freeze({"₊":"+","₋":"-","₌":"=","₍":"(","₎":")","₀":"0","₁":"1","₂":"2","₃":"3","₄":"4","₅":"5","₆":"6","₇":"7","₈":"8","₉":"9","ₐ":"a","ₑ":"e","ₕ":"h","ᵢ":"i","ⱼ":"j","ₖ":"k","ₗ":"l","ₘ":"m","ₙ":"n","ₒ":"o","ₚ":"p","ᵣ":"r","ₛ":"s","ₜ":"t","ᵤ":"u","ᵥ":"v","ₓ":"x","ᵦ":"β","ᵧ":"γ","ᵨ":"ρ","ᵩ":"ϕ","ᵪ":"χ","⁺":"+","⁻":"-","⁼":"=","⁽":"(","⁾":")","⁰":"0","¹":"1","²":"2","³":"3","⁴":"4","⁵":"5","⁶":"6","⁷":"7","⁸":"8","⁹":"9","ᴬ":"A","ᴮ":"B","ᴰ":"D","ᴱ":"E","ᴳ":"G","ᴴ":"H","ᴵ":"I","ᴶ":"J","ᴷ":"K","ᴸ":"L","ᴹ":"M","ᴺ":"N","ᴼ":"O","ᴾ":"P","ᴿ":"R","ᵀ":"T","ᵁ":"U","ⱽ":"V","ᵂ":"W","ᵃ":"a","ᵇ":"b","ᶜ":"c","ᵈ":"d","ᵉ":"e","ᶠ":"f","ᵍ":"g","ʰ":"h","ⁱ":"i","ʲ":"j","ᵏ":"k","ˡ":"l","ᵐ":"m","ⁿ":"n","ᵒ":"o","ᵖ":"p","ʳ":"r","ˢ":"s","ᵗ":"t","ᵘ":"u","ᵛ":"v","ʷ":"w","ˣ":"x","ʸ":"y","ᶻ":"z","ᵝ":"β","ᵞ":"γ","ᵟ":"δ","ᵠ":"ϕ","ᵡ":"χ","ᶿ":"θ"}),bn={"́":{text:"\\'",math:"\\acute"},"̀":{text:"\\`",math:"\\grave"},"̈":{text:'\\"',math:"\\ddot"},"̃":{text:"\\~",math:"\\tilde"},"̄":{text:"\\=",math:"\\bar"},"̆":{text:"\\u",math:"\\breve"},"̌":{text:"\\v",math:"\\check"},"̂":{text:"\\^",math:"\\hat"},"̇":{text:"\\.",math:"\\dot"},"̊":{text:"\\r",math:"\\mathring"},"̋":{text:"\\H"},"̧":{text:"\\c"}},vn={"á":"á","à":"à","ä":"ä","ǟ":"ǟ","ã":"ã","ā":"ā","ă":"ă","ắ":"ắ","ằ":"ằ","ẵ":"ẵ","ǎ":"ǎ","â":"â","ấ":"ấ","ầ":"ầ","ẫ":"ẫ","ȧ":"ȧ","ǡ":"ǡ","å":"å","ǻ":"ǻ","ḃ":"ḃ","ć":"ć","ḉ":"ḉ","č":"č","ĉ":"ĉ","ċ":"ċ","ç":"ç","ď":"ď","ḋ":"ḋ","ḑ":"ḑ","é":"é","è":"è","ë":"ë","ẽ":"ẽ","ē":"ē","ḗ":"ḗ","ḕ":"ḕ","ĕ":"ĕ","ḝ":"ḝ","ě":"ě","ê":"ê","ế":"ế","ề":"ề","ễ":"ễ","ė":"ė","ȩ":"ȩ","ḟ":"ḟ","ǵ":"ǵ","ḡ":"ḡ","ğ":"ğ","ǧ":"ǧ","ĝ":"ĝ","ġ":"ġ","ģ":"ģ","ḧ":"ḧ","ȟ":"ȟ","ĥ":"ĥ","ḣ":"ḣ","ḩ":"ḩ","í":"í","ì":"ì","ï":"ï","ḯ":"ḯ","ĩ":"ĩ","ī":"ī","ĭ":"ĭ","ǐ":"ǐ","î":"î","ǰ":"ǰ","ĵ":"ĵ","ḱ":"ḱ","ǩ":"ǩ","ķ":"ķ","ĺ":"ĺ","ľ":"ľ","ļ":"ļ","ḿ":"ḿ","ṁ":"ṁ","ń":"ń","ǹ":"ǹ","ñ":"ñ","ň":"ň","ṅ":"ṅ","ņ":"ņ","ó":"ó","ò":"ò","ö":"ö","ȫ":"ȫ","õ":"õ","ṍ":"ṍ","ṏ":"ṏ","ȭ":"ȭ","ō":"ō","ṓ":"ṓ","ṑ":"ṑ","ŏ":"ŏ","ǒ":"ǒ","ô":"ô","ố":"ố","ồ":"ồ","ỗ":"ỗ","ȯ":"ȯ","ȱ":"ȱ","ő":"ő","ṕ":"ṕ","ṗ":"ṗ","ŕ":"ŕ","ř":"ř","ṙ":"ṙ","ŗ":"ŗ","ś":"ś","ṥ":"ṥ","š":"š","ṧ":"ṧ","ŝ":"ŝ","ṡ":"ṡ","ş":"ş","ẗ":"ẗ","ť":"ť","ṫ":"ṫ","ţ":"ţ","ú":"ú","ù":"ù","ü":"ü","ǘ":"ǘ","ǜ":"ǜ","ǖ":"ǖ","ǚ":"ǚ","ũ":"ũ","ṹ":"ṹ","ū":"ū","ṻ":"ṻ","ŭ":"ŭ","ǔ":"ǔ","û":"û","ů":"ů","ű":"ű","ṽ":"ṽ","ẃ":"ẃ","ẁ":"ẁ","ẅ":"ẅ","ŵ":"ŵ","ẇ":"ẇ","ẘ":"ẘ","ẍ":"ẍ","ẋ":"ẋ","ý":"ý","ỳ":"ỳ","ÿ":"ÿ","ỹ":"ỹ","ȳ":"ȳ","ŷ":"ŷ","ẏ":"ẏ","ẙ":"ẙ","ź":"ź","ž":"ž","ẑ":"ẑ","ż":"ż","Á":"Á","À":"À","Ä":"Ä","Ǟ":"Ǟ","Ã":"Ã","Ā":"Ā","Ă":"Ă","Ắ":"Ắ","Ằ":"Ằ","Ẵ":"Ẵ","Ǎ":"Ǎ","Â":"Â","Ấ":"Ấ","Ầ":"Ầ","Ẫ":"Ẫ","Ȧ":"Ȧ","Ǡ":"Ǡ","Å":"Å","Ǻ":"Ǻ","Ḃ":"Ḃ","Ć":"Ć","Ḉ":"Ḉ","Č":"Č","Ĉ":"Ĉ","Ċ":"Ċ","Ç":"Ç","Ď":"Ď","Ḋ":"Ḋ","Ḑ":"Ḑ","É":"É","È":"È","Ë":"Ë","Ẽ":"Ẽ","Ē":"Ē","Ḗ":"Ḗ","Ḕ":"Ḕ","Ĕ":"Ĕ","Ḝ":"Ḝ","Ě":"Ě","Ê":"Ê","Ế":"Ế","Ề":"Ề","Ễ":"Ễ","Ė":"Ė","Ȩ":"Ȩ","Ḟ":"Ḟ","Ǵ":"Ǵ","Ḡ":"Ḡ","Ğ":"Ğ","Ǧ":"Ǧ","Ĝ":"Ĝ","Ġ":"Ġ","Ģ":"Ģ","Ḧ":"Ḧ","Ȟ":"Ȟ","Ĥ":"Ĥ","Ḣ":"Ḣ","Ḩ":"Ḩ","Í":"Í","Ì":"Ì","Ï":"Ï","Ḯ":"Ḯ","Ĩ":"Ĩ","Ī":"Ī","Ĭ":"Ĭ","Ǐ":"Ǐ","Î":"Î","İ":"İ","Ĵ":"Ĵ","Ḱ":"Ḱ","Ǩ":"Ǩ","Ķ":"Ķ","Ĺ":"Ĺ","Ľ":"Ľ","Ļ":"Ļ","Ḿ":"Ḿ","Ṁ":"Ṁ","Ń":"Ń","Ǹ":"Ǹ","Ñ":"Ñ","Ň":"Ň","Ṅ":"Ṅ","Ņ":"Ņ","Ó":"Ó","Ò":"Ò","Ö":"Ö","Ȫ":"Ȫ","Õ":"Õ","Ṍ":"Ṍ","Ṏ":"Ṏ","Ȭ":"Ȭ","Ō":"Ō","Ṓ":"Ṓ","Ṑ":"Ṑ","Ŏ":"Ŏ","Ǒ":"Ǒ","Ô":"Ô","Ố":"Ố","Ồ":"Ồ","Ỗ":"Ỗ","Ȯ":"Ȯ","Ȱ":"Ȱ","Ő":"Ő","Ṕ":"Ṕ","Ṗ":"Ṗ","Ŕ":"Ŕ","Ř":"Ř","Ṙ":"Ṙ","Ŗ":"Ŗ","Ś":"Ś","Ṥ":"Ṥ","Š":"Š","Ṧ":"Ṧ","Ŝ":"Ŝ","Ṡ":"Ṡ","Ş":"Ş","Ť":"Ť","Ṫ":"Ṫ","Ţ":"Ţ","Ú":"Ú","Ù":"Ù","Ü":"Ü","Ǘ":"Ǘ","Ǜ":"Ǜ","Ǖ":"Ǖ","Ǚ":"Ǚ","Ũ":"Ũ","Ṹ":"Ṹ","Ū":"Ū","Ṻ":"Ṻ","Ŭ":"Ŭ","Ǔ":"Ǔ","Û":"Û","Ů":"Ů","Ű":"Ű","Ṽ":"Ṽ","Ẃ":"Ẃ","Ẁ":"Ẁ","Ẅ":"Ẅ","Ŵ":"Ŵ","Ẇ":"Ẇ","Ẍ":"Ẍ","Ẋ":"Ẋ","Ý":"Ý","Ỳ":"Ỳ","Ÿ":"Ÿ","Ỹ":"Ỹ","Ȳ":"Ȳ","Ŷ":"Ŷ","Ẏ":"Ẏ","Ź":"Ź","Ž":"Ž","Ẑ":"Ẑ","Ż":"Ż","ά":"ά","ὰ":"ὰ","ᾱ":"ᾱ","ᾰ":"ᾰ","έ":"έ","ὲ":"ὲ","ή":"ή","ὴ":"ὴ","ί":"ί","ὶ":"ὶ","ϊ":"ϊ","ΐ":"ΐ","ῒ":"ῒ","ῑ":"ῑ","ῐ":"ῐ","ό":"ό","ὸ":"ὸ","ύ":"ύ","ὺ":"ὺ","ϋ":"ϋ","ΰ":"ΰ","ῢ":"ῢ","ῡ":"ῡ","ῠ":"ῠ","ώ":"ώ","ὼ":"ὼ","Ύ":"Ύ","Ὺ":"Ὺ","Ϋ":"Ϋ","Ῡ":"Ῡ","Ῠ":"Ῠ","Ώ":"Ώ","Ὼ":"Ὼ"};class xn{constructor(e,t){this.mode=void 0,this.gullet=void 0,this.settings=void 0,this.leftrightDepth=void 0,this.nextToken=void 0,this.mode="math",this.gullet=new fn(e,t,this.mode),this.settings=t,this.leftrightDepth=0}expect(e,t){if(void 0===t&&(t=!0),this.fetch().text!==e)throw new _("Expected '"+e+"', got '"+this.fetch().text+"'",this.fetch());t&&this.consume()}consume(){this.nextToken=null}fetch(){return null==this.nextToken&&(this.nextToken=this.gullet.expandNextToken()),this.nextToken}switchMode(e){this.mode=e,this.gullet.switchMode(e)}parse(){this.settings.globalGroup||this.gullet.beginGroup(),this.settings.colorIsTextColor&&this.gullet.macros.set("\\color","\\textcolor");try{var e=this.parseExpression(!1);return this.expect("EOF"),this.settings.globalGroup||this.gullet.endGroup(),e}finally{this.gullet.endGroups()}}subparse(e){var t=this.nextToken,e=(this.consume(),this.gullet.pushToken(new yi("}")),this.gullet.pushTokens(e),this.parseExpression(!1));return this.expect("}"),this.nextToken=t,e}parseExpression(e,t){for(var i=[];;){"math"===this.mode&&this.consumeSpaces();var n=this.fetch();if(-1!==xn.endOfExpression.indexOf(n.text))break;if(t&&n.text===t)break;if(e&&sn[n.text]&&sn[n.text].infix)break;n=this.parseAtom(t);if(!n)break;"internal"!==n.type&&i.push(n)}return"text"===this.mode&&this.formLigatures(i),this.handleInfixNodes(i)}handleInfixNodes(t){let i,n=-1;for(let e=0;e<t.length;e++)if("infix"===t[e].type){if(-1!==n)throw new _("only one infix operator per group",t[e].token);n=e,i=t[e].replaceWith}var e,r;return-1!==n&&i?(e=t.slice(0,n),r=t.slice(n+1),e=1===e.length&&"ordgroup"===e[0].type?e[0]:{type:"ordgroup",mode:this.mode,body:e},r=1===r.length&&"ordgroup"===r[0].type?r[0]:{type:"ordgroup",mode:this.mode,body:r},["\\\\abovefrac"===i?this.callFunction(i,[e,t[n],r],[]):this.callFunction(i,[e,r],[])]):t}handleSupSubscript(e){var t=this.fetch(),i=t.text,e=(this.consume(),this.consumeSpaces(),this.parseGroup(e));if(e)return e;throw new _("Expected group after '"+i+"'",t)}formatUnsupportedCmd(t){var i=[];for(let e=0;e<t.length;e++)i.push({type:"textord",mode:"text",text:t[e]});var e={type:"text",mode:this.mode,body:i};return{type:"color",mode:this.mode,color:this.settings.errorColor,body:[e]}}parseAtom(e){const t=this.parseGroup("atom",e);if("text"===this.mode)return t;let i,n;for(;;){this.consumeSpaces();const e=this.fetch();if("\\limits"===e.text||"\\nolimits"===e.text){if(t&&"op"===t.type){const i="\\limits"===e.text;t.limits=i,t.alwaysHandleSupSub=!0}else{if(!t||"operatorname"!==t.type)throw new _("Limit controls must follow a math operator",e);t.alwaysHandleSupSub&&(t.limits="\\limits"===e.text)}this.consume()}else if("^"===e.text){if(i)throw new _("Double superscript",e);i=this.handleSupSubscript("superscript")}else if("_"===e.text){if(n)throw new _("Double subscript",e);n=this.handleSupSubscript("subscript")}else if("'"===e.text){if(i)throw new _("Double superscript",e);const t={type:"textord",mode:this.mode,text:"\\prime"},n=[t];for(this.consume();"'"===this.fetch().text;)n.push(t),this.consume();"^"===this.fetch().text&&n.push(this.handleSupSubscript("superscript")),i={type:"ordgroup",mode:this.mode,body:n}}else{if(!yn[e.text])break;{const t=mn.test(e.text),_=[];for(_.push(new yi(yn[e.text])),this.consume();;){const e=this.fetch().text;if(!yn[e])break;if(mn.test(e)!==t)break;_.unshift(new yi(yn[e])),this.consume()}var r=this.subparse(_);t?n={type:"ordgroup",mode:"math",body:r}:i={type:"ordgroup",mode:"math",body:r}}}}return i||n?{type:"supsub",mode:this.mode,base:t,sup:i,sub:n}:t}parseFunction(e,t){var i=this.fetch(),n=i.text,r=sn[n];if(!r)return null;if(this.consume(),t&&"atom"!==t&&!r.allowedInArgument)throw new _("Got function '"+n+"' with no arguments"+(t?" as "+t:""),i);if("text"===this.mode&&!r.allowedInText)throw new _("Can't use function '"+n+"' in text mode",i);if("math"===this.mode&&!1===r.allowedInMath)throw new _("Can't use function '"+n+"' in math mode",i);var{args:t,optArgs:r}=this.parseArguments(n,r);return this.callFunction(n,t,r,i,e)}callFunction(e,t,i,n,r){var s=sn[e];if(s&&s.handler)return s.handler({funcName:e,parser:this,token:n,breakOnTokenText:r},t,i);throw new _("No function handler for "+e)}parseArguments(i,n){var e=n.numArgs+n.numOptionalArgs;if(0===e)return{args:[],optArgs:[]};var r=[],s=[];for(let t=0;t<e;t++){let e=n.argTypes&&n.argTypes[t];var a=t<n.numOptionalArgs,o=((n.primitive&&null==e||"sqrt"===n.type&&1===t&&null==s[0])&&(e="primitive"),this.parseGroupOfType("argument to '"+i+"'",e,a));if(a)s.push(o);else{if(null==o)throw new _("Null argument, please report this as a bug");r.push(o)}}return{args:r,optArgs:s}}parseGroupOfType(e,t,i){switch(t){case"color":return this.parseColorGroup(i);case"size":return this.parseSizeGroup(i);case"url":return this.parseUrlGroup(i);case"math":case"text":return this.parseArgumentGroup(i,t);case"hbox":{const e=this.parseArgumentGroup(i,"text");return null!=e?{type:"styling",mode:e.mode,body:[e],style:"text"}:null}case"raw":{const e=this.parseStringGroup("raw",i);return null!=e?{type:"raw",mode:"text",string:e.text}:null}case"primitive":{if(i)throw new _("A primitive argument cannot be optional");const t=this.parseGroup(e);if(null==t)throw new _("Expected group as "+e,this.fetch());return t}case"original":case null:case void 0:return this.parseArgumentGroup(i);default:throw new _("Unknown group type as "+e,this.fetch())}}consumeSpaces(){for(;" "===this.fetch().text;)this.consume()}parseStringGroup(e,t){t=this.gullet.scanArgument(t);if(null==t)return null;let i,n="";for(;"EOF"!==(i=this.fetch()).text;)n+=i.text,this.consume();return this.consume(),t.text=n,t}parseRegexGroup(e,t){var i=this.fetch();let n,r=i,s="";for(;"EOF"!==(n=this.fetch()).text&&e.test(s+n.text);)r=n,s+=r.text,this.consume();if(""===s)throw new _("Invalid "+t+": '"+i.text+"'",i);return i.range(r,s)}parseColorGroup(e){e=this.parseStringGroup("color",e);if(null==e)return null;var t=/^(#[a-f0-9]{3}|#?[a-f0-9]{6}|[a-z]+)$/i.exec(e.text);if(!t)throw new _("Invalid color: '"+e.text+"'",e);let i=t[0];return/^[0-9a-f]{6}$/i.test(i)&&(i="#"+i),{type:"color-token",mode:this.mode,color:i}}parseSizeGroup(e){let t,i=!1;if(this.gullet.consumeSpaces(),!(t=e||"{"===this.gullet.future().text?this.parseStringGroup("size",e):this.parseRegexGroup(/^[-+]? *(?:$|\d+|\d+\.\d*|\.\d*) *[a-z]{0,2} *$/,"size")))return null;e||0!==t.text.length||(t.text="0pt",i=!0);e=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(t.text);if(!e)throw new _("Invalid size: '"+t.text+"'",t);e={number:+(e[1]+e[2]),unit:e[3]};if(pe(e))return{type:"size",mode:this.mode,value:e,isBlank:i};throw new _("Invalid unit: '"+e.unit+"'",t)}parseUrlGroup(e){this.gullet.lexer.setCatcode("%",13),this.gullet.lexer.setCatcode("~",12);var e=this.parseStringGroup("url",e);return this.gullet.lexer.setCatcode("%",14),this.gullet.lexer.setCatcode("~",13),null==e?null:(e=e.text.replace(/\\([#$%&~_^{}])/g,"$1"),{type:"url",mode:this.mode,url:e})}parseArgumentGroup(e,t){var i,n,e=this.gullet.scanArgument(e);return null==e?null:(i=this.mode,t&&this.switchMode(t),this.gullet.beginGroup(),n=this.parseExpression(!1,"EOF"),this.expect("EOF"),this.gullet.endGroup(),e={type:"ordgroup",mode:this.mode,loc:e.loc,body:n},t&&this.switchMode(i),e)}parseGroup(e,t){var i=this.fetch(),n=i.text;let r;if("{"===n||"\\begingroup"===n){this.consume();const e="{"===n?"}":"\\endgroup",t=(this.gullet.beginGroup(),this.parseExpression(!1,e)),_=this.fetch();this.expect(e),this.gullet.endGroup(),r={type:"ordgroup",mode:this.mode,loc:mi.range(i,_),body:t,semisimple:"\\begingroup"===n||void 0}}else if(null==(r=this.parseFunction(t,e)||this.parseSymbol())&&"\\"===n[0]&&!gn.hasOwnProperty(n)){if(this.settings.throwOnError)throw new _("Undefined control sequence: "+n,i);r=this.formatUnsupportedCmd(n),this.consume()}return r}formLigatures(t){let i=t.length-1;for(let e=0;e<i;++e){var n=t[e],r=n.text;"-"===r&&"-"===t[e+1].text&&(e+1<i&&"-"===t[e+2].text?(t.splice(e,3,{type:"textord",mode:"text",loc:mi.range(n,t[e+2]),text:"---"}),i-=2):(t.splice(e,2,{type:"textord",mode:"text",loc:mi.range(n,t[e+1]),text:"--"}),--i)),"'"!==r&&"`"!==r||t[e+1].text!==r||(t.splice(e,2,{type:"textord",mode:"text",loc:mi.range(n,t[e+1]),text:r+r}),--i)}}parseSymbol(){const t=this.fetch();let i=t.text;if(/^\\verb[^a-zA-Z]/.test(i)){this.consume();let e=i.slice(5);const n="*"===e.charAt(0);if((e=n?e.slice(1):e).length<2||e.charAt(0)!==e.slice(-1))throw new _("\\verb assertion failed --\n please report what input caused this bug");return{type:"verb",mode:"text",body:e=e.slice(1,-1),star:n}}vn.hasOwnProperty(i[0])&&!u[this.mode][i[0]]&&(this.settings.strict&&"math"===this.mode&&this.settings.reportNonstrict("unicodeTextInMathMode",'Accented Unicode text character "'+i[0]+'" used in math mode',t),i=vn[i[0]]+i.slice(1));const n=an.exec(i);let r;if(n&&("i"===(i=i.substring(0,n.index))?i="ı":"j"===i&&(i="ȷ")),u[this.mode][i]){this.settings.strict&&"math"===this.mode&&0<="ÐÞþ".indexOf(i)&&this.settings.reportNonstrict("unicodeTextInMathMode",'Latin-1/Unicode text character "'+i[0]+'" used in math mode',t);const n=u[this.mode][i].group,_=mi.range(t);let e;if(Ee.hasOwnProperty(n)){const t=n;e={type:"atom",mode:this.mode,family:t,loc:_,text:i}}else e={type:n,mode:this.mode,loc:_,text:i};r=e}else{if(!(128<=i.charCodeAt(0)))return null;this.settings.strict&&(ee(i.charCodeAt(0))?"math"===this.mode&&this.settings.reportNonstrict("unicodeTextInMathMode",'Unicode text character "'+i[0]+'" used in math mode',t):this.settings.reportNonstrict("unknownSymbol",'Unrecognized Unicode character "'+i[0]+'" ('+i.charCodeAt(0)+")",t)),r={type:"textord",mode:"text",loc:mi.range(t),text:i}}if(this.consume(),n)for(let e=0;e<n[0].length;e++){var s=n[0][e];if(!bn[s])throw new _("Unknown accent ' "+s+"'",t);var a=bn[s][this.mode]||bn[s].text;if(!a)throw new _("Accent "+s+" unsupported in "+this.mode+" mode",t);r={type:"accent",mode:this.mode,loc:mi.range(t),label:a,isStretchy:!1,isShifty:!0,base:r}}return r}}xn.endOfExpression=["}","\\endgroup","\\end","\\right","&"];function wn(e,t){if(!("string"==typeof e||e instanceof String))throw new TypeError("KaTeX can only parse string typed expression");delete(e=new xn(e,t)).gullet.macros.current["\\df@tag"];let i=e.parse();if(delete e.gullet.macros.current["\\current@color"],delete e.gullet.macros.current["\\color"],e.gullet.macros.get("\\df@tag")){if(!t.displayMode)throw new _("\\tag works only in display equations");i=[{type:"tag",mode:"text",body:i,tag:e.subparse([new yi("\\df@tag")])}]}return i}let kn=function(e,t,i){t.textContent="";e=Sn(e,i).toNode();t.appendChild(e)};"undefined"!=typeof document&&"CSS1Compat"!==document.compatMode&&("undefined"!=typeof console&&console.warn("Warning: KaTeX doesn't work in quirks mode. Make sure your website has a suitable doctype."),kn=function(){throw new _("KaTeX doesn't work in quirks mode.")});function Tn(e,t,i){if(!i.throwOnError&&e instanceof _)return(t=L.makeSpan(["katex-error"],[new g(t)])).setAttribute("title",e.toString()),t.setAttribute("style","color:"+i.errorColor),t;throw e}function Sn(t,i){var n=new U(i);try{const i=wn(t,n);{var r=i;var s=t;var a=n;var o=wt(a);let e;if("mathml"===a.output)return xt(r,s,o,a.displayMode,!0);if("html"===a.output){const s=pt(r,o);e=L.makeSpan(["katex"],[s])}else{s=xt(r,s,o,a.displayMode,!1),r=pt(r,o);e=L.makeSpan(["katex"],[s,r])}return kt(e,a);return}}catch(i){return Tn(i,t,n)}}var _n={version:"0.16.10",render:kn,renderToString:function(e,t){return Sn(e,t).toMarkup()},ParseError:_,SETTINGS_SCHEMA:H,__parse:function(e,t){t=new U(t);return wn(e,t)},__renderToDomTree:Sn,__renderToHTMLTree:function(e,t){var i=new U(t);try{var n=wn(e,i),r=i;return n=pt(n,wt(r)),n=L.makeSpan(["katex"],[n]),kt(n,r)}catch(t){return Tn(t,e,i)}},__setFontMetrics:function(e,t){ne[e]=t},__defineSymbol:i,__defineFunction:x,__defineMacro:D,__domTree:{Span:xe,Anchor:we,SymbolNode:g,SvgNode:Se,PathNode:_e,LineNode:Ce}};return t.default}),!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("katex")):"function"==typeof define&&define.amd?define(["katex"],t):"object"==typeof exports?exports.renderMathInElement=t(require("katex")):e.renderMathInElement=t(e.katex)}("undefined"!=typeof self?self:this,function(h){return function(){"use strict";var i={771:function(e){e.exports=h}},n={};function r(e){var t=n[e];return void 0!==t||(t=n[e]={exports:{}},i[e](t,t.exports,r)),t.exports}r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,{a:t}),t},r.d=function(e,t){for(var i in t)r.o(t,i)&&!r.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)};var e={};{r.d(e,{default:function(){return s}});var t=r(771),a=r.n(t);const o=/^\\begin{/,l=function(e,i){var n=function(t,e){var i;const n=[],r=new RegExp("("+e.map(e=>e.left.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&")).join("|")+")");for(;-1!==(i=t.search(r));){0<i&&(n.push({type:"text",data:t.slice(0,i)}),t=t.slice(i));const r=e.findIndex(e=>t.startsWith(e.left));if(-1===(i=function(e,t,i){let n=i,r=0;for(var s=e.length;n<t.length;){const i=t[n];if(r<=0&&t.slice(n,n+s)===e)return n;"\\"===i?n++:"{"===i?r++:"}"===i&&r--,n++}return-1}(e[r].right,t,e[r].left.length)))break;var s=t.slice(0,i+e[r].right.length),a=o.test(s)?s:t.slice(e[r].left.length,i);n.push({type:"math",data:a,rawData:s,display:e[r].display}),t=t.slice(i+e[r].right.length)}return""!==t&&n.push({type:"text",data:t}),n}(e,i.delimiters);if(1===n.length&&"text"===n[0].type)return null;var r=document.createDocumentFragment();for(let t=0;t<n.length;t++)if("text"===n[t].type)r.appendChild(document.createTextNode(n[t].data));else{var s=document.createElement("span");let e=n[t].data;i.displayMode=n[t].display;try{i.preProcess&&(e=i.preProcess(e)),a().render(e,s,i)}catch(e){if(!(e instanceof a().ParseError))throw e;i.errorCallback("KaTeX auto-render: Failed to parse `"+n[t].data+"` with ",e),r.appendChild(document.createTextNode(n[t].rawData));continue}r.appendChild(s)}return r},c=function(r,s){for(let n=0;n<r.childNodes.length;n++){var a=r.childNodes[n];if(3===a.nodeType){let e=a.textContent,t=a.nextSibling,i=0;for(;t&&t.nodeType===Node.TEXT_NODE;)e+=t.textContent,t=t.nextSibling,i++;const c=l(e,s);if(c){for(let e=0;e<i;e++)a.nextSibling.remove();n+=c.childNodes.length-1,r.replaceChild(c,a)}else n+=i}else if(1===a.nodeType){const r=" "+a.className+" ";-1===s.ignoredTags.indexOf(a.nodeName.toLowerCase())&&s.ignoredClasses.every(e=>-1===r.indexOf(" "+e+" "))&&c(a,s)}}};var s=function(e,t){if(!e)throw new Error("No element provided to render");var i={};for(const e in t)t.hasOwnProperty(e)&&(i[e]=t[e]);i.delimiters=i.delimiters||[{left:"$$",right:"$$",display:!0},{left:"\\(",right:"\\)",display:!1},{left:"\\begin{equation}",right:"\\end{equation}",display:!0},{left:"\\begin{align}",right:"\\end{align}",display:!0},{left:"\\begin{alignat}",right:"\\end{alignat}",display:!0},{left:"\\begin{gather}",right:"\\end{gather}",display:!0},{left:"\\begin{CD}",right:"\\end{CD}",display:!0},{left:"\\[",right:"\\]",display:!0}],i.ignoredTags=i.ignoredTags||["script","noscript","style","textarea","pre","code","option"],i.ignoredClasses=i.ignoredClasses||[],i.errorCallback=i.errorCallback||console.error,i.macros=i.macros||{},c(e,i)}}return e.default}()}),!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("katex")):"function"==typeof define&&define.amd?define(["katex"],t):(e="undefined"!=typeof globalThis?globalThis:e||self).markedKatex=t(e.katex)}(this,function(n){"use strict";const r=/^(\${1,2})(?!\$)((?:\\.|[^\\\n])*?(?:\\.|[^\\\n\$]))\1(?=[\s?!\.,:?!。,:]|$)/,i=/^(\${1,2})\n((?:\\[^]|[^\\])+?)\n\1(?:\n|$)/;function t(t,i){return e=>n.renderToString(e.text,{...t,displayMode:e.displayMode})+(i?"\n":"")}return function(e={}){return{extensions:[{name:"inlineKatex",level:"inline",start(e){let t,i=e;for(;i;){if(-1===(t=i.indexOf("$")))return;if((0===t||" "===i.charAt(t-1))&&i.substring(t).match(r))return t;i=i.substring(t+1).replace(/^\$+/,"")}},tokenizer(e,t){e=e.match(r);if(e)return{type:"inlineKatex",raw:e[0],text:e[2].trim(),displayMode:2===e[1].length}},renderer:t(e,!1)},{name:"blockKatex",level:"block",tokenizer(e,t){e=e.match(i);if(e)return{type:"blockKatex",raw:e[0],text:e[2].trim(),displayMode:2===e[1].length}},renderer:t(e,!0)}]}}}),(__esbuild_esm_mermaid_nm||={}).mermaid=(()=>{var w,k,I,T,_,C,A,E,L,R,M,P,B,F=Object.create,j=Object.defineProperty,z=Object.getOwnPropertyDescriptor,H=Object.getOwnPropertyNames,U=Object.getPrototypeOf,q=Object.prototype.hasOwnProperty,mt=(e,t)=>j(e,"name",{value:t,configurable:!0}),e=(e,t)=>()=>t=e?e(e=0):t,W=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),V=(e,t)=>{for(var i in t)j(e,i,{get:t[i],enumerable:!0})},ee=(t,i,n,r)=>{if(i&&"object"==typeof i||"function"==typeof i)for(let e of H(i))q.call(t,e)||e===n||j(t,e,{get:()=>i[e],enumerable:!(r=z(i,e))||r.enumerable});return t},te=(e,t,i)=>(ee(e,t,"default"),i&&ee(i,t,"default")),ie=(e,t,i)=>(i=null!=e?F(U(e)):{},ee(!t&&e&&e.__esModule?i:j(i,"default",{value:e,enumerable:!0}),e)),ne=W((e,t)=>{"use strict";var i;i=function(){var r="millisecond",u="second",d="minute",p="hour",g="day",f="week",m="month",y="year",b="date",t="Invalid Date",a=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,v=/\[([^\]]+)]|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,e={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:mt(function(e){var t=["th","st","nd","rd"],i=e%100;return"["+e+(t[(i-20)%10]||t[i]||t[0])+"]"},"ordinal")},n=mt(function(e,t,i){var n=String(e);return!n||n.length>=t?e:""+Array(t+1-n.length).join(i)+e},"m"),i={s:n,z:mt(function(e){var e=-e.utcOffset(),t=Math.abs(e),i=Math.floor(t/60),t=t%60;return(e<=0?"+":"-")+n(i,2,"0")+":"+n(t,2,"0")},"z"),m:mt(function e(t,i){var n,r,s;return t.date()<i.date()?-e(i,t):(n=12*(i.year()-t.year())+(i.month()-t.month()),s=i-(r=t.clone().add(n,m))<0,t=t.clone().add(n+(s?-1:1),m),+(-(n+(i-r)/(s?r-t:t-r))||0))},"t"),a:mt(function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},"a"),p:mt(function(e){return{M:m,y:y,w:f,d:g,D:b,h:p,m:d,s:u,ms:r,Q:"quarter"}[e]||String(e||"").toLowerCase().replace(/s$/,"")},"p"),u:mt(function(e){return void 0===e},"u")},o="en",l={},s=(l[o]=e,"$isDayjsObject"),c=mt(function(e){return e instanceof k||!(!e||!e[s])},"S"),h=mt(function e(t,i,n){var r;if(!t)return o;if("string"==typeof t){var s=t.toLowerCase(),i=(l[s]&&(r=s),i&&(l[s]=i,r=s),t.split("-"));if(!r&&1<i.length)return e(i[0])}else{s=t.name;l[s]=t,r=s}return!n&&r&&(o=r),r||!n&&o},"t"),x=mt(function(e,t){return c(e)?e.clone():((t="object"==typeof t?t:{}).date=e,t.args=arguments,new k(t))},"O"),w=i,k=(w.l=h,w.i=c,w.w=function(e,t){return x(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})},mt(S,"M"),(e=S.prototype).parse=function(s){this.$d=function(){var e=s.date,t=s.utc;if(null===e)return new Date(NaN);if(w.u(e))return new Date;if(!(e instanceof Date||"string"!=typeof e||/Z$/i.test(e))){var i,n,r=e.match(a);if(r)return i=r[2]-1||0,n=(r[7]||"0").substring(0,3),t?new Date(Date.UTC(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,n)):new Date(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,n)}return new Date(e)}(),this.init()},e.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},e.$utils=function(){return w},e.isValid=function(){return this.$d.toString()!==t},e.isSame=function(e,t){e=x(e);return this.startOf(t)<=e&&e<=this.endOf(t)},e.isAfter=function(e,t){return x(e)<this.startOf(t)},e.isBefore=function(e,t){return this.endOf(t)<x(e)},e.$g=function(e,t,i){return w.u(e)?this[t]:this.set(i,e)},e.unix=function(){return Math.floor(this.valueOf()/1e3)},e.valueOf=function(){return this.$d.getTime()},e.startOf=function(e,t){var i=this,n=!!w.u(t)||t,t=w.p(e),r=mt(function(e,t){t=w.w(i.$u?Date.UTC(i.$y,t,e):new Date(i.$y,t,e),i);return n?t:t.endOf(g)},"l"),s=mt(function(e,t){return w.w(i.toDate()[e].apply(i.toDate("s"),(n?[0,0,0,0]:[23,59,59,999]).slice(t)),i)},"$"),a=this.$W,o=this.$M,l=this.$D,c="set"+(this.$u?"UTC":"");switch(t){case y:return n?r(1,0):r(31,11);case m:return n?r(1,o):r(0,o+1);case f:var h=this.$locale().weekStart||0,h=(a<h?a+7:a)-h;return r(n?l-h:l+(6-h),o);case g:case b:return s(c+"Hours",0);case p:return s(c+"Minutes",1);case d:return s(c+"Seconds",2);case u:return s(c+"Milliseconds",3);default:return this.clone()}},e.endOf=function(e){return this.startOf(e,!1)},e.$set=function(e,t){var e=w.p(e),i="set"+(this.$u?"UTC":""),i=((n={}).day=i+"Date",n.date=i+"Date",n[m]=i+"Month",n.year=i+"FullYear",n.hour=i+"Hours",n[d]=i+"Minutes",n[u]=i+"Seconds",n[r]=i+"Milliseconds",n[e]),n=e===g?this.$D+(t-this.$W):t;return e===m||e===y?((t=this.clone().set(b,1)).$d[i](n),t.init(),this.$d=t.set(b,Math.min(this.$D,t.daysInMonth())).$d):i&&this.$d[i](n),this.init(),this},e.set=function(e,t){return this.clone().$set(e,t)},e.get=function(e){return this[w.p(e)]()},e.add=function(i,e){var n=this,e=(i=Number(i),w.p(e)),t=mt(function(e){var t=x(n);return w.w(t.date(t.date()+Math.round(e*i)),n)},"y");return e===m?this.set(m,this.$M+i):e===y?this.set(y,this.$y+i):e===g?t(1):e===f?t(7):(t={minute:6e4,hour:36e5,second:1e3}[e]||1,e=this.$d.getTime()+i*t,w.w(e,this))},e.subtract=function(e,t){return this.add(-1*e,t)},e.format=function(e){var r,i,n,s,a,o,l,c,h,u,d=this,p=this.$locale();return this.isValid()?(r=e||"YYYY-MM-DDTHH:mm:ssZ",i=w.z(this),n=this.$H,s=this.$m,a=this.$M,o=p.weekdays,l=p.months,e=p.meridiem,c=mt(function(e,t,i,n){return e&&(e[t]||e(d,r))||i[t].slice(0,n)},"h"),h=mt(function(e){return w.s(n%12||12,e,"0")},"d"),u=e||function(e,t,i){e=e<12?"AM":"PM";return i?e.toLowerCase():e},r.replace(v,function(e,t){return t||function(){switch(e){case"YY":return String(d.$y).slice(-2);case"YYYY":return w.s(d.$y,4,"0");case"M":return a+1;case"MM":return w.s(a+1,2,"0");case"MMM":return c(p.monthsShort,a,l,3);case"MMMM":return c(l,a);case"D":return d.$D;case"DD":return w.s(d.$D,2,"0");case"d":return String(d.$W);case"dd":return c(p.weekdaysMin,d.$W,o,2);case"ddd":return c(p.weekdaysShort,d.$W,o,3);case"dddd":return o[d.$W];case"H":return String(n);case"HH":return w.s(n,2,"0");case"h":return h(1);case"hh":return h(2);case"a":return u(n,s,!0);case"A":return u(n,s,!1);case"m":return String(s);case"mm":return w.s(s,2,"0");case"s":return String(d.$s);case"ss":return w.s(d.$s,2,"0");case"SSS":return w.s(d.$ms,3,"0");case"Z":return i}return null}()||i.replace(":","")})):p.invalidDate||t},e.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},e.diff=function(e,t,i){var n,r=this,t=w.p(t),s=x(e),a=6e4*(s.utcOffset()-this.utcOffset()),o=this-s,l=mt(function(){return w.m(r,s)},"D");switch(t){case y:n=l()/12;break;case m:n=l();break;case"quarter":n=l()/3;break;case f:n=(o-a)/6048e5;break;case g:n=(o-a)/864e5;break;case p:n=o/36e5;break;case d:n=o/6e4;break;case u:n=o/1e3;break;default:n=o}return i?n:w.a(n)},e.daysInMonth=function(){return this.endOf(m).$D},e.$locale=function(){return l[this.$L]},e.locale=function(e,t){var i;return e?(i=this.clone(),(e=h(e,t,!0))&&(i.$L=e),i):this.$L},e.clone=function(){return w.w(this.$d,this)},e.toDate=function(){return new Date(this.valueOf())},e.toJSON=function(){return this.isValid()?this.toISOString():null},e.toISOString=function(){return this.$d.toISOString()},e.toString=function(){return this.$d.toUTCString()},S),T=k.prototype;function S(e){this.$L=h(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[s]=!0}return x.prototype=T,[["$ms",r],["$s",u],["$m",d],["$H",p],["$W",g],["$M",m],["$y",y],["$D",b]].forEach(function(t){T[t[1]]=function(e){return this.$g(e,t[0],t[1])}}),x.extend=function(e,t){return e.$i||(e(t,k,x),e.$i=!0),x},x.locale=h,x.isDayjs=c,x.unix=function(e){return x(1e3*e)},x.en=l[o],x.Ls=l,x.p={},x},"object"==typeof(e=e)&&typeof t<"u"?t.exports=i():"function"==typeof define&&define.amd?define(i):(e=typeof globalThis<"u"?globalThis:e||self).dayjs=i()}),t=e(()=>{"use strict";w=ie(ne(),1),k={trace:0,debug:1,info:2,warn:3,error:4,fatal:5},I={trace:mt(()=>{},"trace"),debug:mt(()=>{},"debug"),info:mt(()=>{},"info"),warn:mt(()=>{},"warn"),error:mt(()=>{},"error"),fatal:mt(()=>{},"fatal")},T=mt(function(e="fatal"){let t=k.fatal;"string"==typeof e?e.toLowerCase()in k&&(t=k[e]):"number"==typeof e&&(t=e),I.trace=()=>{},I.debug=()=>{},I.info=()=>{},I.warn=()=>{},I.error=()=>{},I.fatal=()=>{},t<=k.fatal&&(I.fatal=console.error?console.error.bind(console,_("FATAL"),"color: orange"):console.log.bind(console,"[35m",_("FATAL"))),t<=k.error&&(I.error=console.error?console.error.bind(console,_("ERROR"),"color: orange"):console.log.bind(console,"[31m",_("ERROR"))),t<=k.warn&&(I.warn=console.warn?console.warn.bind(console,_("WARN"),"color: orange"):console.log.bind(console,"[33m",_("WARN"))),t<=k.info&&(I.info=console.info?console.info.bind(console,_("INFO"),"color: lightblue"):console.log.bind(console,"[34m",_("INFO"))),t<=k.debug&&(I.debug=console.debug?console.debug.bind(console,_("DEBUG"),"color: lightgreen"):console.log.bind(console,"[32m",_("DEBUG"))),t<=k.trace&&(I.trace=console.debug?console.debug.bind(console,_("TRACE"),"color: lightgreen"):console.log.bind(console,"[32m",_("TRACE")))},"setLogLevel"),_=mt(e=>`%c${(0,w.default)().format("ss.SSS")} : ${e} : `,"format")}),re=e(()=>{"use strict";C=Object.freeze({left:0,top:0,width:16,height:16}),A=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),E=Object.freeze({...C,...A}),L=Object.freeze({...E,body:"",hidden:!1})}),ae=e(()=>{"use strict";re(),R=Object.freeze({width:null,height:null}),M=Object.freeze({...R,...A})}),oe=e(()=>{"use strict";P=mt((e,t,i,n="")=>{var r,s=e.split(":");if("@"===e.slice(0,1)){if(s.length<2||3<s.length)return null;n=s.shift().slice(1)}return 3<s.length||!s.length?null:1<s.length?(e=s.pop(),r=s.pop(),r={provider:0<s.length?s[0]:n,prefix:r,name:e},t&&!B(r)?null:r):1<(r=(e=s[0]).split("-")).length?(s={provider:n,prefix:r.shift(),name:r.join("-")},t&&!B(s)?null:s):!i||""!==n||(r={provider:n,prefix:"",name:e},t&&!B(r,i))?null:r},"stringToIcon"),B=mt((e,t)=>!!e&&!(!(t&&""===e.prefix||e.prefix)||!e.name),"validateIconName")});function le(e,t){var i={},e=(!e.hFlip!=!t.hFlip&&(i.hFlip=!0),!e.vFlip!=!t.vFlip&&(i.vFlip=!0),((e.rotate||0)+(t.rotate||0))%4);return e&&(i.rotate=e),i}var ce=e(()=>{"use strict";mt(le,"mergeIconTransformations")});function he(e,t){var i,n=le(e,t);for(i in L)i in A?i in e&&!(i in n)&&(n[i]=A[i]):i in t?n[i]=t[i]:i in e&&(n[i]=e[i]);return n}var ue=e(()=>{"use strict";re(),ce(),mt(he,"mergeIconData")});function de(e,t){let n=e.icons,r=e.aliases||Object.create(null),s=Object.create(null);function a(e){var t,i;return n[e]?s[e]=[]:(e in s||(s[e]=null,(i=(t=r[e]&&r[e].parent)&&a(t))&&(s[e]=[t].concat(i))),s[e])}return mt(a,"resolve"),(t||Object.keys(n).concat(Object.keys(r))).forEach(a),s}var pe=e(()=>{"use strict";mt(de,"getIconsTree")});function ge(e,t,i){let n=e.icons,r=e.aliases||Object.create(null),s={};function a(e){s=he(n[e]||r[e],s)}return mt(a,"parse"),a(t),i.forEach(a),he(e,s)}function fe(e,t){var i;return e.icons[t]?ge(e,t,[]):(i=de(e,[t])[t])?ge(e,t,i):null}var me=e(()=>{"use strict";ue(),pe(),mt(ge,"internalGetIconData"),mt(fe,"getIconData")});function ye(e,t,i){if(1===t)return e;if(i=i||100,"number"==typeof e)return Math.ceil(e*t*i)/i;if("string"!=typeof e)return e;var n,r=e.split(be);if(null===r||!r.length)return e;let s=[],a=r.shift(),o=ve.test(a);for(;;){if(!o||(n=parseFloat(a),isNaN(n))?s.push(a):s.push(Math.ceil(n*t*i)/i),void 0===(a=r.shift()))return s.join("");o=!o}}var be,ve,xe=e(()=>{"use strict";be=/(-?[0-9.]*[0-9]+[0-9.]*)/g,ve=/^-?[0-9.]*[0-9]+[0-9.]*$/g,mt(ye,"calculateSize")});function we(e,t="defs"){let i="",n=e.indexOf("<"+t);for(;0<=n;){var r=e.indexOf(">",n),s=e.indexOf("</"+t);if(-1===r||-1===s)break;var a=e.indexOf(">",s);if(-1===a)break;i+=e.slice(r+1,s).trim(),e=e.slice(0,n).trim()+e.slice(a+1)}return{defs:i,content:e}}function ke(e,t){return e?"<defs>"+e+"</defs>"+t:t}function Te(e,t,i){e=we(e);return ke(e.defs,t+e.content+i)}var Se=e(()=>{"use strict";mt(we,"splitSVGDefs"),mt(ke,"mergeDefsAndContent"),mt(Te,"wrapSVGContent")});function _e(e,t){let i={...E,...e},n={...M,...t},a={left:i.left,top:i.top,width:i.width,height:i.height},o=i.body,r=([i,n].forEach(e=>{let t=[],i=e.hFlip,n=e.vFlip,r=e.rotate;i?n?r+=2:(t.push("translate("+(a.width+a.left).toString()+" "+(0-a.top).toString()+")"),t.push("scale(-1 1)"),a.top=a.left=0):n&&(t.push("translate("+(0-a.left).toString()+" "+(a.height+a.top).toString()+")"),t.push("scale(1 -1)"),a.top=a.left=0);let s;switch(r<0&&(r-=4*Math.floor(r/4)),r%=4){case 1:s=a.height/2+a.top,t.unshift("rotate(90 "+s.toString()+" "+s.toString()+")");break;case 2:t.unshift("rotate(180 "+(a.width/2+a.left).toString()+" "+(a.height/2+a.top).toString()+")");break;case 3:s=a.width/2+a.left,t.unshift("rotate(-90 "+s.toString()+" "+s.toString()+")")}r%2==1&&(a.left!==a.top&&(s=a.left,a.left=a.top,a.top=s),a.width!==a.height)&&(s=a.width,a.width=a.height,a.height=s),t.length&&(o=Te(o,'<g transform="'+t.join(" ")+'">',"</g>"))}),n.width),s=n.height,l=a.width,c=a.height,h,u,d=(null===r?(u=null===s?"1em":"auto"===s?c:s,h=ye(u,l/c)):(h="auto"===r?l:r,u=null===s?ye(h,c/l):"auto"===s?c:s),{}),p=mt((e,t)=>{Ce(t)||(d[e]=t.toString())},"setAttr");p("width",h),p("height",u);e=[a.left,a.top,l,c];return d.viewBox=e.join(" "),{attributes:d,viewBox:e,body:o}}var Ce,Ae=e(()=>{"use strict";re(),ae(),xe(),Se(),Ce=mt(e=>"unset"===e||"undefined"===e||"none"===e,"isUnsetKeyword"),mt(_e,"iconToSVG")});function Ee(n,r=Le){for(var e,t=[];e=$e.exec(n);)t.push(e[1]);if(t.length){let i="suffix"+(16777216*Math.random()|Date.now()).toString(16);t.forEach(e=>{var t="function"==typeof r?r(e):r+(Re++).toString(),e=e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");n=n.replace(new RegExp('([#;"])('+e+')([")]|\\.[a-z])',"g"),"$1"+t+i+"$3")}),n=n.replace(new RegExp(i,"g"),"")}return n}var $e,Le,Re,Me=e(()=>{"use strict";$e=/\sid="(\S+)"/g,Le="IconifyId"+Date.now().toString(16)+(16777216*Math.random()|0).toString(16),Re=0,mt(Ee,"replaceIDs")});function Ie(e,t){let i=-1===e.indexOf("xlink:")?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(var n in t)i+=" "+n+'="'+t[n]+'"';return'<svg xmlns="http://www.w3.org/2000/svg"'+i+">"+e+"</svg>"}var Ne,De,Oe,Pe,Be,Fe,je,ze=e(()=>{"use strict";mt(Ie,"iconToHTML")}),He=W((e,t)=>{"use strict";var i=864e5;function n(e){if(!(100<(e=String(e)).length)){e=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(e){var t=parseFloat(e[1]);switch((e[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*t;case"weeks":case"week":case"w":return 6048e5*t;case"days":case"day":case"d":return t*i;case"hours":case"hour":case"hrs":case"hr":case"h":return 36e5*t;case"minutes":case"minute":case"mins":case"min":case"m":return 6e4*t;case"seconds":case"second":case"secs":case"sec":case"s":return 1e3*t;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return t;default:return}}}}function r(e){var t=Math.abs(e);return i<=t?Math.round(e/i)+"d":36e5<=t?Math.round(e/36e5)+"h":6e4<=t?Math.round(e/6e4)+"m":1e3<=t?Math.round(e/1e3)+"s":e+"ms"}function s(e){var t=Math.abs(e);return i<=t?a(e,t,i,"day"):36e5<=t?a(e,t,36e5,"hour"):6e4<=t?a(e,t,6e4,"minute"):1e3<=t?a(e,t,1e3,"second"):e+" ms"}function a(e,t,i,n){t=1.5*i<=t;return Math.round(e/i)+" "+n+(t?"s":"")}t.exports=function(e,t){t=t||{};var i=typeof e;if("string"==i&&0<e.length)return n(e);if("number"==i&&isFinite(e))return(t.long?s:r)(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))},mt(n,"parse"),mt(r,"fmtShort"),mt(s,"fmtLong"),mt(a,"plural")}),Ue=W((e,t)=>{"use strict";function i(t){function e(t){let i=0;for(let e=0;e<t.length;e++)i=(i<<5)-i+t.charCodeAt(e),i|=0;return o.colors[Math.abs(i)%o.colors.length]}function o(e){let i,t=null,n,r;function a(...s){if(a.enabled){let n=a,e=Number(new Date),t=e-(i||e),r=(n.diff=t,n.prev=i,n.curr=e,i=e,s[0]=o.coerce(s[0]),"string"!=typeof s[0]&&s.unshift("%O"),0);s[0]=s[0].replace(/%([a-zA-Z%])/g,(e,t)=>{if("%%"===e)return"%";r++;var i,t=o.formatters[t];return"function"==typeof t&&(i=s[r],e=t.call(n,i),s.splice(r,1),r--),e}),o.formatArgs.call(n,s),(n.log||o.log).apply(n,s)}}return mt(a,"debug"),a.namespace=e,a.useColors=o.useColors(),a.color=o.selectColor(e),a.extend=s,a.destroy=o.destroy,Object.defineProperty(a,"enabled",{enumerable:!0,configurable:!1,get:mt(()=>null!==t?t:(n!==o.namespaces&&(n=o.namespaces,r=o.enabled(e)),r),"get"),set:mt(e=>{t=e},"set")}),"function"==typeof o.init&&o.init(a),a}function s(e,t){t=o(this.namespace+("u"<typeof t?":":t)+e);return t.log=this.log,t}function i(e){var t;o.save(e),o.namespaces=e,o.names=[],o.skips=[];for(t of("string"==typeof e?e:"").trim().replace(" ",",").split(",").filter(Boolean))"-"===t[0]?o.skips.push(t.slice(1)):o.names.push(t)}function n(e,t){let i=0,n=0,r=-1,s=0;for(;i<e.length;)if(n<t.length&&(t[n]===e[i]||"*"===t[n]))"*"===t[n]?(r=n,s=i):i++,n++;else{if(-1===r)return!1;n=r+1,s++,i=s}for(;n<t.length&&"*"===t[n];)n++;return n===t.length}function r(){var e=[...o.names,...o.skips.map(e=>"-"+e)].join(",");return o.enable(""),e}function a(e){for(var t of o.skips)if(n(e,t))return!1;for(var i of o.names)if(n(e,i))return!0;return!1}function l(e){return e instanceof Error?e.stack||e.message:e}function c(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return((o.debug=o).default=o).coerce=l,o.disable=r,o.enable=i,o.enabled=a,o.humanize=He(),o.destroy=c,Object.keys(t).forEach(e=>{o[e]=t[e]}),o.names=[],o.skips=[],o.formatters={},mt(e,"selectColor"),o.selectColor=e,mt(o,"createDebug"),mt(s,"extend"),mt(i,"enable"),mt(n,"matchesTemplate"),mt(r,"disable"),mt(a,"enabled"),mt(l,"coerce"),mt(c,"destroy"),o.enable(o.load()),o}mt(i,"setup"),t.exports=i}),qe=W((t,i)=>{"use strict";function e(){if(typeof window<"u"&&window.process&&("renderer"===window.process.type||window.process.__nwjs))return!0;if(typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let e;return typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&(e=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&31<=parseInt(e[1],10)||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function n(e){if(e[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+e[0]+(this.useColors?"%c ":" ")+"+"+i.exports.humanize(this.diff),this.useColors){var n="color: "+this.color;e.splice(1,0,n,"color: inherit");let t=0,i=0;e[0].replace(/%[a-zA-Z%]/g,e=>{"%%"!==e&&(t++,"%c"===e)&&(i=t)}),e.splice(i,0,n)}}function r(e){try{e?t.storage.setItem("debug",e):t.storage.removeItem("debug")}catch{}}function s(){let e;try{e=t.storage.getItem("debug")}catch{}return e=!e&&typeof process<"u"&&"env"in process?process.env.DEBUG:e}function a(){try{return localStorage}catch{}}t.formatArgs=n,t.save=r,t.load=s,t.useColors=e,t.storage=a(),t.destroy=(()=>{let e=!1;return()=>{e||(e=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],mt(e,"useColors"),mt(n,"formatArgs"),t.log=console.debug||console.log||(()=>{}),mt(r,"save"),mt(s,"load"),mt(a,"localstorage"),i.exports=Ue()(t);var o=i.exports["formatters"];o.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}}),We=e(()=>{"use strict";oe(),me(),Ae(),Me(),ze(),ie(qe(),1)}),Ve=e(()=>{"use strict";t(),We(),Ne={body:'<g><rect width="80" height="80" style="fill: #087ebf; stroke-width: 0px;"/><text transform="translate(21.16 64.67)" style="fill: #fff; font-family: ArialMT, Arial; font-size: 67.75px;"><tspan x="0" y="0">?</tspan></text></g>',height:80,width:80},De=new Map,Oe=new Map,Pe=mt(e=>{for(var t of e){if(!t.name)throw new Error('Invalid icon loader. Must have a "name" property with non-empty string value.');if(I.debug("Registering icon pack:",t.name),"loader"in t)Oe.set(t.name,t.loader);else{if(!("icons"in t))throw I.error("Invalid icon loader:",t),new Error('Invalid icon loader. Must have either "icons" or "loader" property.');De.set(t.name,t.icons)}}},"registerIconPacks"),Be=mt(async(e,t)=>{var i=P(e,!0,void 0!==t);if(!i)throw new Error("Invalid icon name: "+e);t=i.prefix||t;if(!t)throw new Error("Icon name must contain a prefix: "+e);let n=De.get(t);if(!n){var r=Oe.get(t);if(!r)throw new Error("Icon set not found: "+i.prefix);try{n={...await r(),prefix:t},De.set(t,n)}catch(e){throw I.error(e),new Error("Failed to load icon set: "+i.prefix)}}r=fe(n,i.name);if(r)return r;throw new Error("Icon not found: "+e)},"getRegisteredIconData"),Fe=mt(async e=>{try{return await Be(e),!0}catch{return!1}},"isIconAvailable"),je=mt(async(e,t,i)=>{let n;try{n=await Be(e,t?.fallbackPrefix)}catch(e){I.error(e),n=Ne}e=_e(n,t);return Ie(Ee(e.body),{...e.attributes,...i})},"getIconSVG")});function Ge(e){for(var t=[],i=1;i<arguments.length;i++)t[i-1]=arguments[i];var n,r=Array.from("string"==typeof e?[e]:e),s=(r[r.length-1]=r[r.length-1].replace(/\r?\n([\t ]*)$/,""),r.reduce(function(e,t){t=t.match(/\n([\t ]+|(?!\s).)/g);return t?e.concat(t.map(function(e){return null!=(e=null==(e=e.match(/[\t ]/g))?void 0:e.length)?e:0})):e},[])),a=(s.length&&(n=new RegExp(`
|
||
[ ]{`+Math.min.apply(Math,s)+"}","g"),r=r.map(function(e){return e.replace(n,`
|
||
`)})),r[0]=r[0].replace(/^\r?\n/,""),r[0]);return t.forEach(function(e,t){var i=a.match(/(?:^|\n)( *)$/),n=i?i[1]:"",i=e;"string"==typeof e&&e.includes(`
|
||
`)&&(i=String(e).split(`
|
||
`).map(function(e,t){return 0===t?e:""+n+e}).join(`
|
||
`)),a+=i+r[t+1]}),a}var Ye,Xe,Ke,Ze,Qe,Je,et,tt,it,nt,rt,st,at,ot,lt,ct,ht,ut,dt,pt,gt,ft,bt,vt,xt,wt,kt,Tt,St,_t,Ct,At,Et,$t,Lt,Rt,Mt,It,Nt,Dt,Ot,Pt,Bt,Ft,jt,zt,Ht,Ut,qt,Wt,Vt,Gt,Yt,s,Xt,Kt,Zt,i,Qt,Jt,ei,n,ti,ii,ni,ri,si,ai,oi,li,ci,hi,ui,di,pi,gi,fi,mi,yi,bi,vi,xi,wi,ki,Ti,Si,_i,Ci,Ai,Ei,$i,Li,Ri,Mi,Ii,Ni,Di,Oi,Pi,Bi,Fi,ji,zi=e(()=>{"use strict";mt(Ge,"dedent")}),Hi=e(()=>{"use strict";Ye=/^-{3}\s*[\n\r](.*?)[\n\r]-{3}\s*[\n\r]+/s,Xe=/%{2}{\s*(?:(\w+)\s*:|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,Ke=/\s*%%.*\n/gm}),Ui=e(()=>{"use strict";Ze=class extends Error{static{mt(this,"UnknownDiagramError")}constructor(e){super(e),this.name="UnknownDiagramError"}}}),qi=e(()=>{"use strict";t(),Hi(),Ui(),Qe={},Je=mt(function(e,t){e=e.replace(Ye,"").replace(Xe,"").replace(Ke,`
|
||
`);for(var[i,{detector:n}]of Object.entries(Qe))if(n(e,t))return i;throw new Ze("No diagram type detected matching given configuration for text: "+e)},"detectType"),et=mt((...e)=>{for(var{id:t,detector:i,loader:n}of e)tt(t,i,n)},"registerLazyLoadedDiagrams"),tt=mt((e,t,i)=>{Qe[e]&&I.warn(`Detector with key ${e} already exists. Overwriting.`),Qe[e]={detector:t,loader:i},I.debug(`Detector with key ${e} added`+(i?" with loader":""))},"addDetector"),it=mt(e=>Qe[e].loader,"getDiagramLoader")}),Wi=e(()=>{"use strict";function P(){this.yy={}}var e,t,i,B,F,j,n,r,s,a,o,l,h,u,d,p,g,f,m,y,b,v,x,w,k,T,S,_,C,A,E,$,L,R,z,H,U,q,W,V,G,Y,X,K,Z,Q,J,M,I,N,D,O,ee,te,ie,ne;e=mt(function(e,t,i,n){for(i=i||{},n=e.length;n--;i[e[n]]=t);return i},"o"),t=[1,24],i=[1,25],B=[1,26],F=[1,27],j=[1,28],n=[1,63],r=[1,64],s=[1,65],a=[1,66],o=[1,67],l=[1,68],h=[1,69],u=[1,29],d=[1,30],p=[1,31],g=[1,32],f=[1,33],m=[1,34],y=[1,35],b=[1,36],v=[1,37],x=[1,38],w=[1,39],k=[1,40],T=[1,41],S=[1,42],_=[1,43],C=[1,44],A=[1,45],E=[1,46],$=[1,47],L=[1,48],R=[1,50],z=[1,51],H=[1,52],U=[1,53],q=[1,54],W=[1,55],V=[1,56],G=[1,57],Y=[1,58],X=[1,59],K=[1,60],Z=[14,42],Q=[14,34,36,37,38,39,40,41,42,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74],J=[12,14,34,36,37,38,39,40,41,42,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74],M=[1,82],I=[1,83],N=[1,84],D=[1,85],O=[12,14,42],ee=[12,14,33,42],te=[12,14,33,42,76,77,79,80],ie=[12,33],ne=[34,36,37,38,39,40,41,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74],t={trace:mt(function(){},"trace"),yy:{},symbols_:{error:2,start:3,mermaidDoc:4,direction:5,direction_tb:6,direction_bt:7,direction_rl:8,direction_lr:9,graphConfig:10,C4_CONTEXT:11,NEWLINE:12,statements:13,EOF:14,C4_CONTAINER:15,C4_COMPONENT:16,C4_DYNAMIC:17,C4_DEPLOYMENT:18,otherStatements:19,diagramStatements:20,otherStatement:21,title:22,accDescription:23,acc_title:24,acc_title_value:25,acc_descr:26,acc_descr_value:27,acc_descr_multiline_value:28,boundaryStatement:29,boundaryStartStatement:30,boundaryStopStatement:31,boundaryStart:32,LBRACE:33,ENTERPRISE_BOUNDARY:34,attributes:35,SYSTEM_BOUNDARY:36,BOUNDARY:37,CONTAINER_BOUNDARY:38,NODE:39,NODE_L:40,NODE_R:41,RBRACE:42,diagramStatement:43,PERSON:44,PERSON_EXT:45,SYSTEM:46,SYSTEM_DB:47,SYSTEM_QUEUE:48,SYSTEM_EXT:49,SYSTEM_EXT_DB:50,SYSTEM_EXT_QUEUE:51,CONTAINER:52,CONTAINER_DB:53,CONTAINER_QUEUE:54,CONTAINER_EXT:55,CONTAINER_EXT_DB:56,CONTAINER_EXT_QUEUE:57,COMPONENT:58,COMPONENT_DB:59,COMPONENT_QUEUE:60,COMPONENT_EXT:61,COMPONENT_EXT_DB:62,COMPONENT_EXT_QUEUE:63,REL:64,BIREL:65,REL_U:66,REL_D:67,REL_L:68,REL_R:69,REL_B:70,REL_INDEX:71,UPDATE_EL_STYLE:72,UPDATE_REL_STYLE:73,UPDATE_LAYOUT_CONFIG:74,attribute:75,STR:76,STR_KEY:77,STR_VALUE:78,ATTRIBUTE:79,ATTRIBUTE_EMPTY:80,$accept:0,$end:1},terminals_:{2:"error",6:"direction_tb",7:"direction_bt",8:"direction_rl",9:"direction_lr",11:"C4_CONTEXT",12:"NEWLINE",14:"EOF",15:"C4_CONTAINER",16:"C4_COMPONENT",17:"C4_DYNAMIC",18:"C4_DEPLOYMENT",22:"title",23:"accDescription",24:"acc_title",25:"acc_title_value",26:"acc_descr",27:"acc_descr_value",28:"acc_descr_multiline_value",33:"LBRACE",34:"ENTERPRISE_BOUNDARY",36:"SYSTEM_BOUNDARY",37:"BOUNDARY",38:"CONTAINER_BOUNDARY",39:"NODE",40:"NODE_L",41:"NODE_R",42:"RBRACE",44:"PERSON",45:"PERSON_EXT",46:"SYSTEM",47:"SYSTEM_DB",48:"SYSTEM_QUEUE",49:"SYSTEM_EXT",50:"SYSTEM_EXT_DB",51:"SYSTEM_EXT_QUEUE",52:"CONTAINER",53:"CONTAINER_DB",54:"CONTAINER_QUEUE",55:"CONTAINER_EXT",56:"CONTAINER_EXT_DB",57:"CONTAINER_EXT_QUEUE",58:"COMPONENT",59:"COMPONENT_DB",60:"COMPONENT_QUEUE",61:"COMPONENT_EXT",62:"COMPONENT_EXT_DB",63:"COMPONENT_EXT_QUEUE",64:"REL",65:"BIREL",66:"REL_U",67:"REL_D",68:"REL_L",69:"REL_R",70:"REL_B",71:"REL_INDEX",72:"UPDATE_EL_STYLE",73:"UPDATE_REL_STYLE",74:"UPDATE_LAYOUT_CONFIG",76:"STR",77:"STR_KEY",78:"STR_VALUE",79:"ATTRIBUTE",80:"ATTRIBUTE_EMPTY"},productions_:[0,[3,1],[3,1],[5,1],[5,1],[5,1],[5,1],[4,1],[10,4],[10,4],[10,4],[10,4],[10,4],[13,1],[13,1],[13,2],[19,1],[19,2],[19,3],[21,1],[21,1],[21,2],[21,2],[21,1],[29,3],[30,3],[30,3],[30,4],[32,2],[32,2],[32,2],[32,2],[32,2],[32,2],[32,2],[31,1],[20,1],[20,2],[20,3],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,1],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[35,1],[35,2],[75,1],[75,2],[75,1],[75,1]],performAction:mt(function(e,t,i,n,r,s,a){var o=s.length-1;switch(r){case 3:n.setDirection("TB");break;case 4:n.setDirection("BT");break;case 5:n.setDirection("RL");break;case 6:n.setDirection("LR");break;case 8:case 9:case 10:case 11:case 12:n.setC4Type(s[o-3]);break;case 19:n.setTitle(s[o].substring(6)),this.$=s[o].substring(6);break;case 20:n.setAccDescription(s[o].substring(15)),this.$=s[o].substring(15);break;case 21:this.$=s[o].trim(),n.setTitle(this.$);break;case 22:case 23:this.$=s[o].trim(),n.setAccDescription(this.$);break;case 28:s[o].splice(2,0,"ENTERPRISE"),n.addPersonOrSystemBoundary(...s[o]),this.$=s[o];break;case 29:s[o].splice(2,0,"SYSTEM"),n.addPersonOrSystemBoundary(...s[o]),this.$=s[o];break;case 30:n.addPersonOrSystemBoundary(...s[o]),this.$=s[o];break;case 31:s[o].splice(2,0,"CONTAINER"),n.addContainerBoundary(...s[o]),this.$=s[o];break;case 32:n.addDeploymentNode("node",...s[o]),this.$=s[o];break;case 33:n.addDeploymentNode("nodeL",...s[o]),this.$=s[o];break;case 34:n.addDeploymentNode("nodeR",...s[o]),this.$=s[o];break;case 35:n.popBoundaryParseStack();break;case 39:n.addPersonOrSystem("person",...s[o]),this.$=s[o];break;case 40:n.addPersonOrSystem("external_person",...s[o]),this.$=s[o];break;case 41:n.addPersonOrSystem("system",...s[o]),this.$=s[o];break;case 42:n.addPersonOrSystem("system_db",...s[o]),this.$=s[o];break;case 43:n.addPersonOrSystem("system_queue",...s[o]),this.$=s[o];break;case 44:n.addPersonOrSystem("external_system",...s[o]),this.$=s[o];break;case 45:n.addPersonOrSystem("external_system_db",...s[o]),this.$=s[o];break;case 46:n.addPersonOrSystem("external_system_queue",...s[o]),this.$=s[o];break;case 47:n.addContainer("container",...s[o]),this.$=s[o];break;case 48:n.addContainer("container_db",...s[o]),this.$=s[o];break;case 49:n.addContainer("container_queue",...s[o]),this.$=s[o];break;case 50:n.addContainer("external_container",...s[o]),this.$=s[o];break;case 51:n.addContainer("external_container_db",...s[o]),this.$=s[o];break;case 52:n.addContainer("external_container_queue",...s[o]),this.$=s[o];break;case 53:n.addComponent("component",...s[o]),this.$=s[o];break;case 54:n.addComponent("component_db",...s[o]),this.$=s[o];break;case 55:n.addComponent("component_queue",...s[o]),this.$=s[o];break;case 56:n.addComponent("external_component",...s[o]),this.$=s[o];break;case 57:n.addComponent("external_component_db",...s[o]),this.$=s[o];break;case 58:n.addComponent("external_component_queue",...s[o]),this.$=s[o];break;case 60:n.addRel("rel",...s[o]),this.$=s[o];break;case 61:n.addRel("birel",...s[o]),this.$=s[o];break;case 62:n.addRel("rel_u",...s[o]),this.$=s[o];break;case 63:n.addRel("rel_d",...s[o]),this.$=s[o];break;case 64:n.addRel("rel_l",...s[o]),this.$=s[o];break;case 65:n.addRel("rel_r",...s[o]),this.$=s[o];break;case 66:n.addRel("rel_b",...s[o]),this.$=s[o];break;case 67:s[o].splice(0,1),n.addRel("rel",...s[o]),this.$=s[o];break;case 68:n.updateElStyle("update_el_style",...s[o]),this.$=s[o];break;case 69:n.updateRelStyle("update_rel_style",...s[o]),this.$=s[o];break;case 70:n.updateLayoutConfig("update_layout_config",...s[o]),this.$=s[o];break;case 71:this.$=[s[o]];break;case 72:s[o].unshift(s[o-1]),this.$=s[o];break;case 73:case 75:this.$=s[o].trim();break;case 74:var l={};l[s[o-1].trim()]=s[o].trim(),this.$=l;break;case 76:this.$=""}},"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],7:[1,6],8:[1,7],9:[1,8],10:4,11:[1,9],15:[1,10],16:[1,11],17:[1,12],18:[1,13]},{1:[3]},{1:[2,1]},{1:[2,2]},{1:[2,7]},{1:[2,3]},{1:[2,4]},{1:[2,5]},{1:[2,6]},{12:[1,14]},{12:[1,15]},{12:[1,16]},{12:[1,17]},{12:[1,18]},{13:19,19:20,20:21,21:22,22:t,23:i,24:B,26:F,28:j,29:49,30:61,32:62,34:n,36:r,37:s,38:a,39:o,40:l,41:h,43:23,44:u,45:d,46:p,47:g,48:f,49:m,50:y,51:b,52:v,53:x,54:w,55:k,56:T,57:S,58:_,59:C,60:A,61:E,62:$,63:L,64:R,65:z,66:H,67:U,68:q,69:W,70:V,71:G,72:Y,73:X,74:K},{13:70,19:20,20:21,21:22,22:t,23:i,24:B,26:F,28:j,29:49,30:61,32:62,34:n,36:r,37:s,38:a,39:o,40:l,41:h,43:23,44:u,45:d,46:p,47:g,48:f,49:m,50:y,51:b,52:v,53:x,54:w,55:k,56:T,57:S,58:_,59:C,60:A,61:E,62:$,63:L,64:R,65:z,66:H,67:U,68:q,69:W,70:V,71:G,72:Y,73:X,74:K},{13:71,19:20,20:21,21:22,22:t,23:i,24:B,26:F,28:j,29:49,30:61,32:62,34:n,36:r,37:s,38:a,39:o,40:l,41:h,43:23,44:u,45:d,46:p,47:g,48:f,49:m,50:y,51:b,52:v,53:x,54:w,55:k,56:T,57:S,58:_,59:C,60:A,61:E,62:$,63:L,64:R,65:z,66:H,67:U,68:q,69:W,70:V,71:G,72:Y,73:X,74:K},{13:72,19:20,20:21,21:22,22:t,23:i,24:B,26:F,28:j,29:49,30:61,32:62,34:n,36:r,37:s,38:a,39:o,40:l,41:h,43:23,44:u,45:d,46:p,47:g,48:f,49:m,50:y,51:b,52:v,53:x,54:w,55:k,56:T,57:S,58:_,59:C,60:A,61:E,62:$,63:L,64:R,65:z,66:H,67:U,68:q,69:W,70:V,71:G,72:Y,73:X,74:K},{13:73,19:20,20:21,21:22,22:t,23:i,24:B,26:F,28:j,29:49,30:61,32:62,34:n,36:r,37:s,38:a,39:o,40:l,41:h,43:23,44:u,45:d,46:p,47:g,48:f,49:m,50:y,51:b,52:v,53:x,54:w,55:k,56:T,57:S,58:_,59:C,60:A,61:E,62:$,63:L,64:R,65:z,66:H,67:U,68:q,69:W,70:V,71:G,72:Y,73:X,74:K},{14:[1,74]},e(Z,[2,13],{43:23,29:49,30:61,32:62,20:75,34:n,36:r,37:s,38:a,39:o,40:l,41:h,44:u,45:d,46:p,47:g,48:f,49:m,50:y,51:b,52:v,53:x,54:w,55:k,56:T,57:S,58:_,59:C,60:A,61:E,62:$,63:L,64:R,65:z,66:H,67:U,68:q,69:W,70:V,71:G,72:Y,73:X,74:K}),e(Z,[2,14]),e(Q,[2,16],{12:[1,76]}),e(Z,[2,36],{12:[1,77]}),e(J,[2,19]),e(J,[2,20]),{25:[1,78]},{27:[1,79]},e(J,[2,23]),{35:80,75:81,76:M,77:I,79:N,80:D},{35:86,75:81,76:M,77:I,79:N,80:D},{35:87,75:81,76:M,77:I,79:N,80:D},{35:88,75:81,76:M,77:I,79:N,80:D},{35:89,75:81,76:M,77:I,79:N,80:D},{35:90,75:81,76:M,77:I,79:N,80:D},{35:91,75:81,76:M,77:I,79:N,80:D},{35:92,75:81,76:M,77:I,79:N,80:D},{35:93,75:81,76:M,77:I,79:N,80:D},{35:94,75:81,76:M,77:I,79:N,80:D},{35:95,75:81,76:M,77:I,79:N,80:D},{35:96,75:81,76:M,77:I,79:N,80:D},{35:97,75:81,76:M,77:I,79:N,80:D},{35:98,75:81,76:M,77:I,79:N,80:D},{35:99,75:81,76:M,77:I,79:N,80:D},{35:100,75:81,76:M,77:I,79:N,80:D},{35:101,75:81,76:M,77:I,79:N,80:D},{35:102,75:81,76:M,77:I,79:N,80:D},{35:103,75:81,76:M,77:I,79:N,80:D},{35:104,75:81,76:M,77:I,79:N,80:D},e(O,[2,59]),{35:105,75:81,76:M,77:I,79:N,80:D},{35:106,75:81,76:M,77:I,79:N,80:D},{35:107,75:81,76:M,77:I,79:N,80:D},{35:108,75:81,76:M,77:I,79:N,80:D},{35:109,75:81,76:M,77:I,79:N,80:D},{35:110,75:81,76:M,77:I,79:N,80:D},{35:111,75:81,76:M,77:I,79:N,80:D},{35:112,75:81,76:M,77:I,79:N,80:D},{35:113,75:81,76:M,77:I,79:N,80:D},{35:114,75:81,76:M,77:I,79:N,80:D},{35:115,75:81,76:M,77:I,79:N,80:D},{20:116,29:49,30:61,32:62,34:n,36:r,37:s,38:a,39:o,40:l,41:h,43:23,44:u,45:d,46:p,47:g,48:f,49:m,50:y,51:b,52:v,53:x,54:w,55:k,56:T,57:S,58:_,59:C,60:A,61:E,62:$,63:L,64:R,65:z,66:H,67:U,68:q,69:W,70:V,71:G,72:Y,73:X,74:K},{12:[1,118],33:[1,117]},{35:119,75:81,76:M,77:I,79:N,80:D},{35:120,75:81,76:M,77:I,79:N,80:D},{35:121,75:81,76:M,77:I,79:N,80:D},{35:122,75:81,76:M,77:I,79:N,80:D},{35:123,75:81,76:M,77:I,79:N,80:D},{35:124,75:81,76:M,77:I,79:N,80:D},{35:125,75:81,76:M,77:I,79:N,80:D},{14:[1,126]},{14:[1,127]},{14:[1,128]},{14:[1,129]},{1:[2,8]},e(Z,[2,15]),e(Q,[2,17],{21:22,19:130,22:t,23:i,24:B,26:F,28:j}),e(Z,[2,37],{19:20,20:21,21:22,43:23,29:49,30:61,32:62,13:131,22:t,23:i,24:B,26:F,28:j,34:n,36:r,37:s,38:a,39:o,40:l,41:h,44:u,45:d,46:p,47:g,48:f,49:m,50:y,51:b,52:v,53:x,54:w,55:k,56:T,57:S,58:_,59:C,60:A,61:E,62:$,63:L,64:R,65:z,66:H,67:U,68:q,69:W,70:V,71:G,72:Y,73:X,74:K}),e(J,[2,21]),e(J,[2,22]),e(O,[2,39]),e(ee,[2,71],{75:81,35:132,76:M,77:I,79:N,80:D}),e(te,[2,73]),{78:[1,133]},e(te,[2,75]),e(te,[2,76]),e(O,[2,40]),e(O,[2,41]),e(O,[2,42]),e(O,[2,43]),e(O,[2,44]),e(O,[2,45]),e(O,[2,46]),e(O,[2,47]),e(O,[2,48]),e(O,[2,49]),e(O,[2,50]),e(O,[2,51]),e(O,[2,52]),e(O,[2,53]),e(O,[2,54]),e(O,[2,55]),e(O,[2,56]),e(O,[2,57]),e(O,[2,58]),e(O,[2,60]),e(O,[2,61]),e(O,[2,62]),e(O,[2,63]),e(O,[2,64]),e(O,[2,65]),e(O,[2,66]),e(O,[2,67]),e(O,[2,68]),e(O,[2,69]),e(O,[2,70]),{31:134,42:[1,135]},{12:[1,136]},{33:[1,137]},e(ie,[2,28]),e(ie,[2,29]),e(ie,[2,30]),e(ie,[2,31]),e(ie,[2,32]),e(ie,[2,33]),e(ie,[2,34]),{1:[2,9]},{1:[2,10]},{1:[2,11]},{1:[2,12]},e(Q,[2,18]),e(Z,[2,38]),e(ee,[2,72]),e(te,[2,74]),e(O,[2,24]),e(O,[2,35]),e(ne,[2,25]),e(ne,[2,26],{12:[1,138]}),e(ne,[2,27])],defaultActions:{2:[2,1],3:[2,2],4:[2,7],5:[2,3],6:[2,4],7:[2,5],8:[2,6],74:[2,8],126:[2,9],127:[2,10],128:[2,11],129:[2,12]},parseError:mt(function(e,t){var i;if(!t.recoverable)throw(i=new Error(e)).hash=t,i;this.trace(e)},"parseError"),parse:mt(function(e){var t,i=this,n=[0],r=[],s=[null],a=[],o=this.table,l="",c=0,h=0,u=0,d=1,p=a.slice.call(arguments,1),g=Object.create(this.lexer),f={yy:{}};for(t in this.yy)Object.prototype.hasOwnProperty.call(this.yy,t)&&(f.yy[t]=this.yy[t]);g.setInput(e,f.yy),f.yy.lexer=g,f.yy.parser=this,"u"<typeof g.yylloc&&(g.yylloc={});var m=g.yylloc,y=(a.push(m),g.options&&g.options.ranges);function b(){var e=r.pop()||g.lex()||d;return"number"!=typeof e&&(e instanceof Array&&(e=(r=e).pop()),e=i.symbols_[e]||e),e}"function"==typeof f.yy.parseError?this.parseError=f.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError,mt(function(e){n.length=n.length-2*e,s.length=s.length-e,a.length=a.length-e},"popStack"),mt(b,"lex");for(var v,x,w,k,T,S,_,C={};;){if(w=n[n.length-1],"u"<typeof(k=this.defaultActions[w]||((null===v||"u"<typeof v)&&(v=b()),o[w]&&o[w][v]))||!k.length||!k[0]){var A="",E=[];for(T in o[w])this.terminals_[T]&&2<T&&E.push("'"+this.terminals_[T]+"'");A=g.showPosition?"Parse error on line "+(c+1)+`:
|
||
`+g.showPosition()+`
|
||
Expecting `+E.join(", ")+", got '"+(this.terminals_[v]||v)+"'":"Parse error on line "+(c+1)+": Unexpected "+(v==d?"end of input":"'"+(this.terminals_[v]||v)+"'"),this.parseError(A,{text:g.match,token:this.terminals_[v]||v,line:g.yylineno,loc:m,expected:E})}if(k[0]instanceof Array&&1<k.length)throw new Error("Parse Error: multiple actions possible at state: "+w+", token: "+v);switch(k[0]){case 1:n.push(v),s.push(g.yytext),a.push(g.yylloc),n.push(k[1]),v=null,x?(v=x,x=null):(h=g.yyleng,l=g.yytext,c=g.yylineno,m=g.yylloc,0<u&&u--);break;case 2:if(S=this.productions_[k[1]][1],C.$=s[s.length-S],C._$={first_line:a[a.length-(S||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(S||1)].first_column,last_column:a[a.length-1].last_column},y&&(C._$.range=[a[a.length-(S||1)].range[0],a[a.length-1].range[1]]),typeof(_=this.performAction.apply(C,[l,h,c,f.yy,k[1],s,a].concat(p)))<"u")return _;S&&(n=n.slice(0,-1*S*2),s=s.slice(0,-1*S),a=a.slice(0,-1*S)),n.push(this.productions_[k[1]][0]),s.push(C.$),a.push(C._$),_=o[n[n.length-2]][n[n.length-1]],n.push(_);break;case 3:return!0}}return!0},"parse")},i={EOF:1,parseError:mt(function(e,t){if(!this.yy.parser)throw new Error(e);this.yy.parser.parseError(e,t)},"parseError"),setInput:mt(function(e,t){return this.yy=t||this.yy||{},this._input=e,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:mt(function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.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),e},"input"),unput:mt(function(e){var t=e.length,i=e.split(/(?:\r\n?|\n)/g),e=(this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t,this.match.split(/(?:\r\n?|\n)/g)),n=(this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),i.length-1&&(this.yylineno-=i.length-1),this.yylloc.range);return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:i?(i.length===e.length?this.yylloc.first_column:0)+e[e.length-i.length].length-i[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[n[0],n[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},"unput"),more:mt(function(){return this._more=!0,this},"more"),reject:mt(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).
|
||
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"reject"),less:mt(function(e){this.unput(this.match.slice(e))},"less"),pastInput:mt(function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(20<e.length?"...":"")+e.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:mt(function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(20<e.length?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:mt(function(){var e=this.pastInput(),t=new Array(e.length+1).join("-");return e+this.upcomingInput()+`
|
||
`+t+"^"},"showPosition"),test_match:mt(function(e,t){var i,n;if(this.options.backtrack_lexer&&(n={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)&&(n.yylloc.range=this.yylloc.range.slice(0)),(i=e[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=i.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:i?i[i.length-1].length-i[i.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+e[0].length},this.yytext+=e[0],this.match+=e[0],this.matches=e,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(e[0].length),this.matched+=e[0],i=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),i)return i;if(this._backtrack)for(var r in n)this[r]=n[r];return!1},"test_match"),next:mt(function(){if(this.done)return this.EOF;var e,t,i,n;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var r=this._currentRules(),s=0;s<r.length;s++)if((i=this._input.match(this.rules[r[s]]))&&(!t||i[0].length>t[0].length)){if(t=i,n=s,this.options.backtrack_lexer){if(!1!==(e=this.test_match(i,r[s])))return e;if(this._backtrack){t=!1;continue}return!1}if(!this.options.flex)break}return t?!1!==(e=this.test_match(t,r[n]))&&e:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
|
||
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:mt(function(){return this.next()||this.lex()},"lex"),begin:mt(function(e){this.conditionStack.push(e)},"begin"),popState:mt(function(){return 0<this.conditionStack.length-1?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:mt(function(){return(this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]]:this.conditions.INITIAL).rules},"_currentRules"),topState:mt(function(e){return 0<=(e=this.conditionStack.length-1-Math.abs(e||0))?this.conditionStack[e]:"INITIAL"},"topState"),pushState:mt(function(e){this.begin(e)},"pushState"),stateStackSize:mt(function(){return this.conditionStack.length},"stateStackSize"),options:{},performAction:mt(function(e,t,i,n){switch(i){case 0:return 6;case 1:return 7;case 2:return 8;case 3:return 9;case 4:return 22;case 5:return 23;case 6:return this.begin("acc_title"),24;case 7:return this.popState(),"acc_title_value";case 8:return this.begin("acc_descr"),26;case 9:return this.popState(),"acc_descr_value";case 10:this.begin("acc_descr_multiline");break;case 11:this.popState();break;case 12:return"acc_descr_multiline_value";case 13:break;case 14:c;break;case 15:return 12;case 16:break;case 17:return 11;case 18:return 15;case 19:return 16;case 20:return 17;case 21:return 18;case 22:return this.begin("person_ext"),45;case 23:return this.begin("person"),44;case 24:return this.begin("system_ext_queue"),51;case 25:return this.begin("system_ext_db"),50;case 26:return this.begin("system_ext"),49;case 27:return this.begin("system_queue"),48;case 28:return this.begin("system_db"),47;case 29:return this.begin("system"),46;case 30:return this.begin("boundary"),37;case 31:return this.begin("enterprise_boundary"),34;case 32:return this.begin("system_boundary"),36;case 33:return this.begin("container_ext_queue"),57;case 34:return this.begin("container_ext_db"),56;case 35:return this.begin("container_ext"),55;case 36:return this.begin("container_queue"),54;case 37:return this.begin("container_db"),53;case 38:return this.begin("container"),52;case 39:return this.begin("container_boundary"),38;case 40:return this.begin("component_ext_queue"),63;case 41:return this.begin("component_ext_db"),62;case 42:return this.begin("component_ext"),61;case 43:return this.begin("component_queue"),60;case 44:return this.begin("component_db"),59;case 45:return this.begin("component"),58;case 46:case 47:return this.begin("node"),39;case 48:return this.begin("node_l"),40;case 49:return this.begin("node_r"),41;case 50:return this.begin("rel"),64;case 51:return this.begin("birel"),65;case 52:case 53:return this.begin("rel_u"),66;case 54:case 55:return this.begin("rel_d"),67;case 56:case 57:return this.begin("rel_l"),68;case 58:case 59:return this.begin("rel_r"),69;case 60:return this.begin("rel_b"),70;case 61:return this.begin("rel_index"),71;case 62:return this.begin("update_el_style"),72;case 63:return this.begin("update_rel_style"),73;case 64:return this.begin("update_layout_config"),74;case 65:return"EOF_IN_STRUCT";case 66:return this.begin("attribute"),"ATTRIBUTE_EMPTY";case 67:this.begin("attribute");break;case 68:this.popState(),this.popState();break;case 69:return 80;case 70:break;case 71:return 80;case 72:this.begin("string");break;case 73:this.popState();break;case 74:return"STR";case 75:this.begin("string_kv");break;case 76:return this.begin("string_kv_key"),"STR_KEY";case 77:this.popState(),this.begin("string_kv_value");break;case 78:return"STR_VALUE";case 79:this.popState(),this.popState();break;case 80:return"STR";case 81:return"LBRACE";case 82:return"RBRACE";case 83:return"SPACE";case 84:return"EOL";case 85:return 14}},"anonymous"),rules:[/^(?:.*direction\s+TB[^\n]*)/,/^(?:.*direction\s+BT[^\n]*)/,/^(?:.*direction\s+RL[^\n]*)/,/^(?:.*direction\s+LR[^\n]*)/,/^(?:title\s[^#\n;]+)/,/^(?:accDescription\s[^#\n;]+)/,/^(?:accTitle\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*\{\s*)/,/^(?:[\}])/,/^(?:[^\}]*)/,/^(?:%%(?!\{)*[^\n]*(\r?\n?)+)/,/^(?:%%[^\n]*(\r?\n)*)/,/^(?:\s*(\r?\n)+)/,/^(?:\s+)/,/^(?:C4Context\b)/,/^(?:C4Container\b)/,/^(?:C4Component\b)/,/^(?:C4Dynamic\b)/,/^(?:C4Deployment\b)/,/^(?:Person_Ext\b)/,/^(?:Person\b)/,/^(?:SystemQueue_Ext\b)/,/^(?:SystemDb_Ext\b)/,/^(?:System_Ext\b)/,/^(?:SystemQueue\b)/,/^(?:SystemDb\b)/,/^(?:System\b)/,/^(?:Boundary\b)/,/^(?:Enterprise_Boundary\b)/,/^(?:System_Boundary\b)/,/^(?:ContainerQueue_Ext\b)/,/^(?:ContainerDb_Ext\b)/,/^(?:Container_Ext\b)/,/^(?:ContainerQueue\b)/,/^(?:ContainerDb\b)/,/^(?:Container\b)/,/^(?:Container_Boundary\b)/,/^(?:ComponentQueue_Ext\b)/,/^(?:ComponentDb_Ext\b)/,/^(?:Component_Ext\b)/,/^(?:ComponentQueue\b)/,/^(?:ComponentDb\b)/,/^(?:Component\b)/,/^(?:Deployment_Node\b)/,/^(?:Node\b)/,/^(?:Node_L\b)/,/^(?:Node_R\b)/,/^(?:Rel\b)/,/^(?:BiRel\b)/,/^(?:Rel_Up\b)/,/^(?:Rel_U\b)/,/^(?:Rel_Down\b)/,/^(?:Rel_D\b)/,/^(?:Rel_Left\b)/,/^(?:Rel_L\b)/,/^(?:Rel_Right\b)/,/^(?:Rel_R\b)/,/^(?:Rel_Back\b)/,/^(?:RelIndex\b)/,/^(?:UpdateElementStyle\b)/,/^(?:UpdateRelStyle\b)/,/^(?:UpdateLayoutConfig\b)/,/^(?:$)/,/^(?:[(][ ]*[,])/,/^(?:[(])/,/^(?:[)])/,/^(?:,,)/,/^(?:,)/,/^(?:[ ]*["]["])/,/^(?:[ ]*["])/,/^(?:["])/,/^(?:[^"]*)/,/^(?:[ ]*[\$])/,/^(?:[^=]*)/,/^(?:[=][ ]*["])/,/^(?:[^"]+)/,/^(?:["])/,/^(?:[^,]+)/,/^(?:\{)/,/^(?:\})/,/^(?:[\s]+)/,/^(?:[\n\r]+)/,/^(?:$)/],conditions:{acc_descr_multiline:{rules:[11,12],inclusive:!1},acc_descr:{rules:[9],inclusive:!1},acc_title:{rules:[7],inclusive:!1},string_kv_value:{rules:[78,79],inclusive:!1},string_kv_key:{rules:[77],inclusive:!1},string_kv:{rules:[76],inclusive:!1},string:{rules:[73,74],inclusive:!1},attribute:{rules:[68,69,70,71,72,75,80],inclusive:!1},update_layout_config:{rules:[65,66,67,68],inclusive:!1},update_rel_style:{rules:[65,66,67,68],inclusive:!1},update_el_style:{rules:[65,66,67,68],inclusive:!1},rel_b:{rules:[65,66,67,68],inclusive:!1},rel_r:{rules:[65,66,67,68],inclusive:!1},rel_l:{rules:[65,66,67,68],inclusive:!1},rel_d:{rules:[65,66,67,68],inclusive:!1},rel_u:{rules:[65,66,67,68],inclusive:!1},rel_bi:{rules:[],inclusive:!1},rel:{rules:[65,66,67,68],inclusive:!1},node_r:{rules:[65,66,67,68],inclusive:!1},node_l:{rules:[65,66,67,68],inclusive:!1},node:{rules:[65,66,67,68],inclusive:!1},index:{rules:[],inclusive:!1},rel_index:{rules:[65,66,67,68],inclusive:!1},component_ext_queue:{rules:[],inclusive:!1},component_ext_db:{rules:[65,66,67,68],inclusive:!1},component_ext:{rules:[65,66,67,68],inclusive:!1},component_queue:{rules:[65,66,67,68],inclusive:!1},component_db:{rules:[65,66,67,68],inclusive:!1},component:{rules:[65,66,67,68],inclusive:!1},container_boundary:{rules:[65,66,67,68],inclusive:!1},container_ext_queue:{rules:[65,66,67,68],inclusive:!1},container_ext_db:{rules:[65,66,67,68],inclusive:!1},container_ext:{rules:[65,66,67,68],inclusive:!1},container_queue:{rules:[65,66,67,68],inclusive:!1},container_db:{rules:[65,66,67,68],inclusive:!1},container:{rules:[65,66,67,68],inclusive:!1},birel:{rules:[65,66,67,68],inclusive:!1},system_boundary:{rules:[65,66,67,68],inclusive:!1},enterprise_boundary:{rules:[65,66,67,68],inclusive:!1},boundary:{rules:[65,66,67,68],inclusive:!1},system_ext_queue:{rules:[65,66,67,68],inclusive:!1},system_ext_db:{rules:[65,66,67,68],inclusive:!1},system_ext:{rules:[65,66,67,68],inclusive:!1},system_queue:{rules:[65,66,67,68],inclusive:!1},system_db:{rules:[65,66,67,68],inclusive:!1},system:{rules:[65,66,67,68],inclusive:!1},person_ext:{rules:[65,66,67,68],inclusive:!1},person:{rules:[65,66,67,68],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,8,10,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,81,82,83,84,85],inclusive:!0}}},t.lexer=i,mt(P,"Parser"),(nt=new((P.prototype=t).Parser=P)).parser=nt,rt=nt}),Vi=e(()=>{"use strict";st=mt((t,i,{depth:n=2,clobber:r=!1}={})=>{let s={depth:n,clobber:r};return Array.isArray(i)&&!Array.isArray(t)?(i.forEach(e=>st(t,e,s)),t):Array.isArray(i)&&Array.isArray(t)?(i.forEach(e=>{t.includes(e)||t.push(e)}),t):void 0===t||n<=0?null!=t&&"object"==typeof t&&"object"==typeof i?Object.assign(t,i):i:(void 0!==i&&"object"==typeof t&&"object"==typeof i&&Object.keys(i).forEach(e=>{"object"!=typeof i[e]||void 0!==t[e]&&"object"!=typeof t[e]?(r||"object"!=typeof t[e]&&"object"!=typeof i[e])&&(t[e]=i[e]):(void 0===t[e]&&(t[e]=Array.isArray(i[e])?[]:{}),t[e]=st(t[e],i[e],{depth:n-1,clobber:r}))}),t)},"assignWithDepth"),at=st}),Gi=e(()=>{"use strict";ot={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:mt(e=>255<=e?255:e<0?0:e,"r"),g:mt(e=>255<=e?255:e<0?0:e,"g"),b:mt(e=>255<=e?255:e<0?0:e,"b"),h:mt(e=>e%360,"h"),s:mt(e=>100<=e?100:e<0?0:e,"s"),l:mt(e=>100<=e?100:e<0?0:e,"l"),a:mt(e=>1<=e?1:e<0?0:e,"a")},toLinear:mt(e=>{var t=e/255;return.03928<e?Math.pow((.055+t)/1.055,2.4):t/12.92},"toLinear"),hue2rgb:mt((e,t,i)=>(i<0&&(i+=1),1<i&&--i,i<.16666666666666666?e+6*(t-e)*i:i<.5?t:i<.6666666666666666?e+(t-e)*(.6666666666666666-i)*6:e),"hue2rgb"),hsl2rgb:mt(({h:e,s:t,l:i},n)=>{if(!t)return 2.55*i;e/=360,t/=100;var r=(i/=100)<.5?i*(1+t):i+t-i*t,s=2*i-r;switch(n){case"r":return 255*ot.hue2rgb(s,r,e+.3333333333333333);case"g":return 255*ot.hue2rgb(s,r,e);case"b":return 255*ot.hue2rgb(s,r,e-.3333333333333333)}},"hsl2rgb"),rgb2hsl:mt(({r:e,g:t,b:i},n)=>{e/=255,t/=255,i/=255;var r=Math.max(e,t,i),s=Math.min(e,t,i),a=(r+s)/2;if("l"===n)return 100*a;if(r===s)return 0;var o=r-s;if("s"===n)return 100*(.5<a?o/(2-r-s):o/(r+s));switch(r){case e:return 60*((t-i)/o+(t<i?6:0));case t:return 60*((i-e)/o+2);case i:return 60*((e-t)/o+4);default:return-1}},"rgb2hsl")},lt=ot}),Yi=e(()=>{"use strict";ct={clamp:mt((e,t,i)=>i<t?Math.min(t,Math.max(i,e)):Math.min(i,Math.max(t,e)),"clamp"),round:mt(e=>Math.round(1e10*e)/1e10,"round")},ht=ct}),Xi=e(()=>{"use strict";ut={dec2hex:mt(e=>{e=Math.round(e).toString(16);return 1<e.length?e:"0"+e},"dec2hex")},dt=ut}),Ki=e(()=>{"use strict";Gi(),Yi(),Xi(),pt={channel:lt,lang:ht,unit:dt}}),Zi=e(()=>{"use strict";Ki(),gt={};for(let e=0;e<=255;e++)gt[e]=pt.unit.dec2hex(e);ft={ALL:0,RGB:1,HSL:2}}),Qi=e(()=>{"use strict";Zi(),bt=class{static{mt(this,"Type")}constructor(){this.type=ft.ALL}get(){return this.type}set(e){if(this.type&&this.type!==e)throw new Error("Cannot change both RGB and HSL channels at the same time");this.type=e}reset(){this.type=ft.ALL}is(e){return this.type===e}},vt=bt}),Ji=e(()=>{"use strict";Ki(),Qi(),Zi(),xt=class{static{mt(this,"Channels")}constructor(e,t){this.color=t,this.changed=!1,this.data=e,this.type=new vt}set(e,t){return this.color=t,this.changed=!1,this.data=e,this.type.type=ft.ALL,this}_ensureHSL(){var e=this.data,{h:t,s:i,l:n}=e;void 0===t&&(e.h=pt.channel.rgb2hsl(e,"h")),void 0===i&&(e.s=pt.channel.rgb2hsl(e,"s")),void 0===n&&(e.l=pt.channel.rgb2hsl(e,"l"))}_ensureRGB(){var e=this.data,{r:t,g:i,b:n}=e;void 0===t&&(e.r=pt.channel.hsl2rgb(e,"r")),void 0===i&&(e.g=pt.channel.hsl2rgb(e,"g")),void 0===n&&(e.b=pt.channel.hsl2rgb(e,"b"))}get r(){var e=this.data,t=e.r;return this.type.is(ft.HSL)||void 0===t?(this._ensureHSL(),pt.channel.hsl2rgb(e,"r")):t}get g(){var e=this.data,t=e.g;return this.type.is(ft.HSL)||void 0===t?(this._ensureHSL(),pt.channel.hsl2rgb(e,"g")):t}get b(){var e=this.data,t=e.b;return this.type.is(ft.HSL)||void 0===t?(this._ensureHSL(),pt.channel.hsl2rgb(e,"b")):t}get h(){var e=this.data,t=e.h;return this.type.is(ft.RGB)||void 0===t?(this._ensureRGB(),pt.channel.rgb2hsl(e,"h")):t}get s(){var e=this.data,t=e.s;return this.type.is(ft.RGB)||void 0===t?(this._ensureRGB(),pt.channel.rgb2hsl(e,"s")):t}get l(){var e=this.data,t=e.l;return this.type.is(ft.RGB)||void 0===t?(this._ensureRGB(),pt.channel.rgb2hsl(e,"l")):t}get a(){return this.data.a}set r(e){this.type.set(ft.RGB),this.changed=!0,this.data.r=e}set g(e){this.type.set(ft.RGB),this.changed=!0,this.data.g=e}set b(e){this.type.set(ft.RGB),this.changed=!0,this.data.b=e}set h(e){this.type.set(ft.HSL),this.changed=!0,this.data.h=e}set s(e){this.type.set(ft.HSL),this.changed=!0,this.data.s=e}set l(e){this.type.set(ft.HSL),this.changed=!0,this.data.l=e}set a(e){this.changed=!0,this.data.a=e}},wt=xt}),en=e(()=>{"use strict";Ji(),kt=new wt({r:0,g:0,b:0,a:0},"transparent"),Tt=kt}),tn=e(()=>{"use strict";en(),Zi(),St={re:/^#((?:[a-f0-9]{2}){2,4}|[a-f0-9]{3})$/i,parse:mt(e=>{if(35===e.charCodeAt(0)){var t,i,n,r,s,a=e.match(St.re);if(a)return a=a[1],t=parseInt(a,16),a=a.length,Tt.set({r:(t>>(n=(i=4<a)?8:4)*(3+(r=(a=a%4==0)?0:-1))&(s=i?255:15))*(i=i?1:17),g:(t>>n*(2+r)&s)*i,b:(t>>n*(1+r)&s)*i,a:a?(t&s)*i/255:1},e)}},"parse"),stringify:mt(e=>{var{r:e,g:t,b:i,a:n}=e;return n<1?"#"+gt[Math.round(e)]+gt[Math.round(t)]+gt[Math.round(i)]+gt[Math.round(255*n)]:"#"+gt[Math.round(e)]+gt[Math.round(t)]+gt[Math.round(i)]},"stringify")},_t=St}),nn=e(()=>{"use strict";Ki(),en(),Ct={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:mt(e=>{var t=e.match(Ct.hueRe);if(t){var[,i,t]=t;switch(t){case"grad":return pt.channel.clamp.h(.9*parseFloat(i));case"rad":return pt.channel.clamp.h(180*parseFloat(i)/Math.PI);case"turn":return pt.channel.clamp.h(360*parseFloat(i))}}return pt.channel.clamp.h(parseFloat(e))},"_hue2deg"),parse:mt(e=>{var t=e.charCodeAt(0);if(104===t||72===t){var i,n,r,s,t=e.match(Ct.re);if(t)return[,t,i,n,r,s]=t,Tt.set({h:Ct._hue2deg(t),s:pt.channel.clamp.s(parseFloat(i)),l:pt.channel.clamp.l(parseFloat(n)),a:r?pt.channel.clamp.a(s?parseFloat(r)/100:parseFloat(r)):1},e)}},"parse"),stringify:mt(e=>{var{h:e,s:t,l:i,a:n}=e;return n<1?`hsla(${pt.lang.round(e)}, ${pt.lang.round(t)}%, ${pt.lang.round(i)}%, ${n})`:`hsl(${pt.lang.round(e)}, ${pt.lang.round(t)}%, ${pt.lang.round(i)}%)`},"stringify")},At=Ct}),rn=e(()=>{"use strict";tn(),Et={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:mt(e=>{e=e.toLowerCase();e=Et.colors[e];if(e)return _t.parse(e)},"parse"),stringify:mt(e=>{var t,i=_t.stringify(e);for(t in Et.colors)if(Et.colors[t]===i)return t},"stringify")},$t=Et}),sn=e(()=>{"use strict";Ki(),en(),Lt={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:mt(e=>{var t=e.charCodeAt(0);if(114===t||82===t){var i,n,r,s,a,o,l,t=e.match(Lt.re);if(t)return[,t,i,n,r,s,a,o,l]=t,Tt.set({r:pt.channel.clamp.r(i?2.55*parseFloat(t):parseFloat(t)),g:pt.channel.clamp.g(r?2.55*parseFloat(n):parseFloat(n)),b:pt.channel.clamp.b(a?2.55*parseFloat(s):parseFloat(s)),a:o?pt.channel.clamp.a(l?parseFloat(o)/100:parseFloat(o)):1},e)}},"parse"),stringify:mt(e=>{var{r:e,g:t,b:i,a:n}=e;return n<1?`rgba(${pt.lang.round(e)}, ${pt.lang.round(t)}, ${pt.lang.round(i)}, ${pt.lang.round(n)})`:`rgb(${pt.lang.round(e)}, ${pt.lang.round(t)}, ${pt.lang.round(i)})`},"stringify")},Rt=Lt}),an=e(()=>{"use strict";tn(),nn(),rn(),sn(),Zi(),Mt={format:{keyword:$t,hex:_t,rgb:Rt,rgba:Rt,hsl:At,hsla:At},parse:mt(e=>{if("string"!=typeof e)return e;var t=_t.parse(e)||Rt.parse(e)||At.parse(e)||$t.parse(e);if(t)return t;throw new Error(`Unsupported color format: "${e}"`)},"parse"),stringify:mt(e=>!e.changed&&e.color?e.color:(e.type.is(ft.HSL)||void 0===e.data.r?At:e.a<1||!Number.isInteger(e.r)||!Number.isInteger(e.g)||!Number.isInteger(e.b)?Rt:_t).stringify(e),"stringify")},It=Mt}),on=e(()=>{"use strict";Ki(),an(),Nt=mt((e,t)=>{var i,n=It.parse(e);for(i in t)n[i]=pt.channel.clamp[i](t[i]);return It.stringify(n)},"change"),Dt=Nt}),ln=e(()=>{"use strict";Ki(),en(),an(),on(),Ot=mt((e,t,i=0,n=1)=>{return"number"!=typeof e?Dt(e,{a:t}):(e=Tt.set({r:pt.channel.clamp.r(e),g:pt.channel.clamp.g(t),b:pt.channel.clamp.b(i),a:pt.channel.clamp.a(n)}),It.stringify(e))},"rgba"),Pt=Ot}),cn=e(()=>{"use strict";Ki(),an(),Bt=mt((e,t)=>pt.lang.round(It.parse(e)[t]),"channel"),Ft=Bt}),hn=e(()=>{"use strict";Ki(),an(),jt=mt(e=>{var{r:e,g:t,b:i}=It.parse(e),e=.2126*pt.channel.toLinear(e)+.7152*pt.channel.toLinear(t)+.0722*pt.channel.toLinear(i);return pt.lang.round(e)},"luminance"),zt=jt}),un=e(()=>{"use strict";hn(),Ht=mt(e=>.5<=zt(e),"isLight"),Ut=Ht}),dn=e(()=>{"use strict";un(),qt=mt(e=>!Ut(e),"isDark"),Wt=qt}),pn=e(()=>{"use strict";Ki(),an(),Vt=mt((e,t,i)=>{var e=It.parse(e),n=e[t],i=pt.channel.clamp[t](n+i);return n!==i&&(e[t]=i),It.stringify(e)},"adjustChannel"),Gt=Vt}),gn=e(()=>{"use strict";pn(),Yt=mt((e,t)=>Gt(e,"l",t),"lighten"),s=Yt}),fn=e(()=>{"use strict";pn(),Xt=mt((e,t)=>Gt(e,"l",-t),"darken"),Kt=Xt}),mn=e(()=>{"use strict";an(),on(),Zt=mt((e,t)=>{var i,n=It.parse(e),r={};for(i in t)t[i]&&(r[i]=n[i]+t[i]);return Dt(e,r)},"adjust"),i=Zt}),yn=e(()=>{"use strict";an(),ln(),Qt=mt((e,t,i=50)=>{var{r:e,g:n,b:r,a:s}=It.parse(e),{r:t,g:a,b:o,a:l}=It.parse(t),i=i/100,c=2*i-1,h=s-l,c=(1+(c*h==-1?c:(c+h)/(1+c*h)))/2,h=1-c;return Pt(e*c+t*h,n*c+a*h,r*c+o*h,s*i+l*(1-i))},"mix"),Jt=Qt}),bn=e(()=>{"use strict";an(),yn(),ei=mt((e,t=100)=>{var i=It.parse(e);return i.r=255-i.r,i.g=255-i.g,i.b=255-i.b,Jt(i,e,t)},"invert"),n=ei}),vn=e(()=>{"use strict";ln(),cn(),dn(),gn(),fn(),mn(),bn()}),xn=e(()=>{"use strict";vn()}),wn=e(()=>{"use strict";ti="#ffffff",ii="#f2f2f2"}),kn=e(()=>{"use strict";xn(),ni=mt((e,t)=>i(e,t?{s:-40,l:10}:{s:-40,l:-10}),"mkBorder")}),Tn=e(()=>{"use strict";xn(),wn(),kn(),ri=class{static{mt(this,"Theme")}constructor(){this.background="#f4f4f4",this.primaryColor="#fff4dd",this.noteBkgColor="#fff5ad",this.noteTextColor="#333",this.THEME_COLOR_LIMIT=12,this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px"}updateColors(){if(this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#333"),this.secondaryColor=this.secondaryColor||i(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||i(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||ni(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||ni(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||ni(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||ni(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#333",this.secondaryTextColor=this.secondaryTextColor||n(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||n(this.tertiaryColor),this.lineColor=this.lineColor||n(this.background),this.arrowheadColor=this.arrowheadColor||n(this.background),this.textColor=this.textColor||this.primaryTextColor,this.border2=this.border2||this.tertiaryBorderColor,this.nodeBkg=this.nodeBkg||this.primaryColor,this.mainBkg=this.mainBkg||this.primaryColor,this.nodeBorder=this.nodeBorder||this.primaryBorderColor,this.clusterBkg=this.clusterBkg||this.tertiaryColor,this.clusterBorder=this.clusterBorder||this.tertiaryBorderColor,this.defaultLinkColor=this.defaultLinkColor||this.lineColor,this.titleColor=this.titleColor||this.tertiaryTextColor,this.edgeLabelBackground=this.edgeLabelBackground||(this.darkMode?Kt(this.secondaryColor,30):this.secondaryColor),this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,this.actorBorder=this.actorBorder||this.primaryBorderColor,this.actorBkg=this.actorBkg||this.mainBkg,this.actorTextColor=this.actorTextColor||this.primaryTextColor,this.actorLineColor=this.actorLineColor||this.actorBorder,this.labelBoxBkgColor=this.labelBoxBkgColor||this.actorBkg,this.signalColor=this.signalColor||this.textColor,this.signalTextColor=this.signalTextColor||this.textColor,this.labelBoxBorderColor=this.labelBoxBorderColor||this.actorBorder,this.labelTextColor=this.labelTextColor||this.actorTextColor,this.loopTextColor=this.loopTextColor||this.actorTextColor,this.activationBorderColor=this.activationBorderColor||Kt(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||n(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||s(this.primaryColor,23),this.gridColor=this.gridColor||"lightgrey",this.doneTaskBkgColor=this.doneTaskBkgColor||"lightgrey",this.doneTaskBorderColor=this.doneTaskBorderColor||"grey",this.critBorderColor=this.critBorderColor||"#ff8888",this.critBkgColor=this.critBkgColor||"red",this.todayLineColor=this.todayLineColor||"red",this.vertLineColor=this.vertLineColor||"navy",this.taskTextColor=this.taskTextColor||this.textColor,this.taskTextOutsideColor=this.taskTextOutsideColor||this.textColor,this.taskTextLightColor=this.taskTextLightColor||this.textColor,this.taskTextColor=this.taskTextColor||this.primaryTextColor,this.taskTextDarkColor=this.taskTextDarkColor||this.textColor,this.taskTextClickableColor=this.taskTextClickableColor||"#003163",this.personBorder=this.personBorder||this.primaryBorderColor,this.personBkg=this.personBkg||this.mainBkg,this.darkMode?(this.rowOdd=this.rowOdd||Kt(this.mainBkg,5)||"#ffffff",this.rowEven=this.rowEven||Kt(this.mainBkg,10)):(this.rowOdd=this.rowOdd||s(this.mainBkg,75)||"#ffffff",this.rowEven=this.rowEven||s(this.mainBkg,5)),this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||this.tertiaryColor,this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.specialStateColor=this.lineColor,this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||i(this.primaryColor,{h:30}),this.cScale4=this.cScale4||i(this.primaryColor,{h:60}),this.cScale5=this.cScale5||i(this.primaryColor,{h:90}),this.cScale6=this.cScale6||i(this.primaryColor,{h:120}),this.cScale7=this.cScale7||i(this.primaryColor,{h:150}),this.cScale8=this.cScale8||i(this.primaryColor,{h:210,l:150}),this.cScale9=this.cScale9||i(this.primaryColor,{h:270}),this.cScale10=this.cScale10||i(this.primaryColor,{h:300}),this.cScale11=this.cScale11||i(this.primaryColor,{h:330}),this.darkMode)for(let e=0;e<this.THEME_COLOR_LIMIT;e++)this["cScale"+e]=Kt(this["cScale"+e],75);else for(let e=0;e<this.THEME_COLOR_LIMIT;e++)this["cScale"+e]=Kt(this["cScale"+e],25);for(let e=0;e<this.THEME_COLOR_LIMIT;e++)this["cScaleInv"+e]=this["cScaleInv"+e]||n(this["cScale"+e]);for(let e=0;e<this.THEME_COLOR_LIMIT;e++)this.darkMode?this["cScalePeer"+e]=this["cScalePeer"+e]||s(this["cScale"+e],10):this["cScalePeer"+e]=this["cScalePeer"+e]||Kt(this["cScale"+e],10);this.scaleLabelColor=this.scaleLabelColor||this.labelTextColor;for(let e=0;e<this.THEME_COLOR_LIMIT;e++)this["cScaleLabel"+e]=this["cScaleLabel"+e]||this.scaleLabelColor;var t=this.darkMode?-4:-1;for(let e=0;e<5;e++)this["surface"+e]=this["surface"+e]||i(this.mainBkg,{h:180,s:-15,l:t*(5+3*e)}),this["surfacePeer"+e]=this["surfacePeer"+e]||i(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||i(this.primaryColor,{h:64}),this.fillType3=this.fillType3||i(this.secondaryColor,{h:64}),this.fillType4=this.fillType4||i(this.primaryColor,{h:-64}),this.fillType5=this.fillType5||i(this.secondaryColor,{h:-64}),this.fillType6=this.fillType6||i(this.primaryColor,{h:128}),this.fillType7=this.fillType7||i(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||i(this.primaryColor,{l:-10}),this.pie5=this.pie5||i(this.secondaryColor,{l:-10}),this.pie6=this.pie6||i(this.tertiaryColor,{l:-10}),this.pie7=this.pie7||i(this.primaryColor,{h:60,l:-10}),this.pie8=this.pie8||i(this.primaryColor,{h:-60,l:-10}),this.pie9=this.pie9||i(this.primaryColor,{h:120,l:0}),this.pie10=this.pie10||i(this.primaryColor,{h:60,l:-20}),this.pie11=this.pie11||i(this.primaryColor,{h:-60,l:-20}),this.pie12=this.pie12||i(this.primaryColor,{h:120,l:-10}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.radar={axisColor:this.radar?.axisColor||this.lineColor,axisStrokeWidth:this.radar?.axisStrokeWidth||2,axisLabelFontSize:this.radar?.axisLabelFontSize||12,curveOpacity:this.radar?.curveOpacity||.5,curveStrokeWidth:this.radar?.curveStrokeWidth||2,graticuleColor:this.radar?.graticuleColor||"#DEDEDE",graticuleStrokeWidth:this.radar?.graticuleStrokeWidth||1,graticuleOpacity:this.radar?.graticuleOpacity||.3,legendBoxSize:this.radar?.legendBoxSize||12,legendFontSize:this.radar?.legendFontSize||12},this.archEdgeColor=this.archEdgeColor||"#777",this.archEdgeArrowColor=this.archEdgeArrowColor||"#777",this.archEdgeWidth=this.archEdgeWidth||"3",this.archGroupBorderColor=this.archGroupBorderColor||"#000",this.archGroupBorderWidth=this.archGroupBorderWidth||"2px",this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||i(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||i(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||i(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||i(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||i(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||i(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=(this.quadrantPointFill||Wt(this.quadrant1Fill)?s:Kt)(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:this.xyChart?.backgroundColor||this.background,titleColor:this.xyChart?.titleColor||this.primaryTextColor,xAxisTitleColor:this.xyChart?.xAxisTitleColor||this.primaryTextColor,xAxisLabelColor:this.xyChart?.xAxisLabelColor||this.primaryTextColor,xAxisTickColor:this.xyChart?.xAxisTickColor||this.primaryTextColor,xAxisLineColor:this.xyChart?.xAxisLineColor||this.primaryTextColor,yAxisTitleColor:this.xyChart?.yAxisTitleColor||this.primaryTextColor,yAxisLabelColor:this.xyChart?.yAxisLabelColor||this.primaryTextColor,yAxisTickColor:this.xyChart?.yAxisTickColor||this.primaryTextColor,yAxisLineColor:this.xyChart?.yAxisLineColor||this.primaryTextColor,plotColorPalette:this.xyChart?.plotColorPalette||"#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"},this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||(this.darkMode?Kt(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||i(this.primaryColor,{h:-30}),this.git4=this.git4||i(this.primaryColor,{h:-60}),this.git5=this.git5||i(this.primaryColor,{h:-90}),this.git6=this.git6||i(this.primaryColor,{h:60}),this.git7=this.git7||i(this.primaryColor,{h:120}),this.darkMode?(this.git0=s(this.git0,25),this.git1=s(this.git1,25),this.git2=s(this.git2,25),this.git3=s(this.git3,25),this.git4=s(this.git4,25),this.git5=s(this.git5,25),this.git6=s(this.git6,25),this.git7=s(this.git7,25)):(this.git0=Kt(this.git0,25),this.git1=Kt(this.git1,25),this.git2=Kt(this.git2,25),this.git3=Kt(this.git3,25),this.git4=Kt(this.git4,25),this.git5=Kt(this.git5,25),this.git6=Kt(this.git6,25),this.git7=Kt(this.git7,25)),this.gitInv0=this.gitInv0||n(this.git0),this.gitInv1=this.gitInv1||n(this.git1),this.gitInv2=this.gitInv2||n(this.git2),this.gitInv3=this.gitInv3||n(this.git3),this.gitInv4=this.gitInv4||n(this.git4),this.gitInv5=this.gitInv5||n(this.git5),this.gitInv6=this.gitInv6||n(this.git6),this.gitInv7=this.gitInv7||n(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||ti,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||ii}calculate(t){var e;"object"!=typeof t?this.updateColors():((e=Object.keys(t)).forEach(e=>{this[e]=t[e]}),this.updateColors(),e.forEach(e=>{this[e]=t[e]}))}},si=mt(e=>{var t=new ri;return t.calculate(e),t},"getThemeVariables")}),Sn=e(()=>{"use strict";xn(),kn(),ai=class{static{mt(this,"Theme")}constructor(){this.background="#333",this.primaryColor="#1f2020",this.secondaryColor=s(this.primaryColor,16),this.tertiaryColor=i(this.primaryColor,{h:-160}),this.primaryBorderColor=n(this.background),this.secondaryBorderColor=ni(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=ni(this.tertiaryColor,this.darkMode),this.primaryTextColor=n(this.primaryColor),this.secondaryTextColor=n(this.secondaryColor),this.tertiaryTextColor=n(this.tertiaryColor),this.lineColor=n(this.background),this.textColor=n(this.background),this.mainBkg="#1f2020",this.secondBkg="calculated",this.mainContrastColor="lightgrey",this.darkTextColor=s(n("#323D47"),10),this.lineColor="calculated",this.border1="#ccc",this.border2=Pt(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=Kt("#EAE8D9",30),this.altSectionBkgColor="calculated",this.sectionBkgColor2="#EAE8D9",this.excludeBkgColor=Kt(this.sectionBkgColor,10),this.taskBorderColor=Pt(255,255,255,70),this.taskBkgColor="calculated",this.taskTextColor="calculated",this.taskTextLightColor="calculated",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor=Pt(255,255,255,50),this.activeTaskBkgColor="#81B1DB",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="grey",this.critBorderColor="#E83737",this.critBkgColor="#E83737",this.taskTextDarkColor="calculated",this.todayLineColor="#DB5757",this.vertLineColor="#00BFFF",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.rowOdd=this.rowOdd||s(this.mainBkg,5)||"#ffffff",this.rowEven=this.rowEven||Kt(this.mainBkg,10),this.labelColor="calculated",this.errorBkgColor="#a44141",this.errorTextColor="#ddd"}updateColors(){this.secondBkg=s(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=s(this.labelBackground,25),this.actorBorder=this.border1,this.actorBkg=this.mainBkg,this.actorTextColor=this.mainContrastColor,this.actorLineColor=this.actorBorder,this.signalColor=this.mainContrastColor,this.signalTextColor=this.mainContrastColor,this.labelBoxBkgColor=this.actorBkg,this.labelBoxBorderColor=this.actorBorder,this.labelTextColor=this.mainContrastColor,this.loopTextColor=this.mainContrastColor,this.noteBorderColor=this.secondaryBorderColor,this.noteBkgColor=this.secondBkg,this.noteTextColor=this.secondaryTextColor,this.activationBorderColor=this.border1,this.activationBkgColor=this.secondBkg,this.altSectionBkgColor=this.background,this.taskBkgColor=s(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.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#555",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.primaryBorderColor,this.specialStateColor="#f4f4f4",this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=i(this.primaryColor,{h:64}),this.fillType3=i(this.secondaryColor,{h:64}),this.fillType4=i(this.primaryColor,{h:-64}),this.fillType5=i(this.secondaryColor,{h:-64}),this.fillType6=i(this.primaryColor,{h:128}),this.fillType7=i(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||i(this.primaryColor,{h:30}),this.cScale4=this.cScale4||i(this.primaryColor,{h:60}),this.cScale5=this.cScale5||i(this.primaryColor,{h:90}),this.cScale6=this.cScale6||i(this.primaryColor,{h:120}),this.cScale7=this.cScale7||i(this.primaryColor,{h:150}),this.cScale8=this.cScale8||i(this.primaryColor,{h:210}),this.cScale9=this.cScale9||i(this.primaryColor,{h:270}),this.cScale10=this.cScale10||i(this.primaryColor,{h:300}),this.cScale11=this.cScale11||i(this.primaryColor,{h:330});for(let e=0;e<this.THEME_COLOR_LIMIT;e++)this["cScaleInv"+e]=this["cScaleInv"+e]||n(this["cScale"+e]);for(let e=0;e<this.THEME_COLOR_LIMIT;e++)this["cScalePeer"+e]=this["cScalePeer"+e]||s(this["cScale"+e],10);for(let e=0;e<5;e++)this["surface"+e]=this["surface"+e]||i(this.mainBkg,{h:30,s:-30,l:-(4*e-10)}),this["surfacePeer"+e]=this["surfacePeer"+e]||i(this.mainBkg,{h:30,s:-30,l:-(4*e-7)});this.scaleLabelColor=this.scaleLabelColor||(this.darkMode?"black":this.labelTextColor);for(let e=0;e<this.THEME_COLOR_LIMIT;e++)this["cScaleLabel"+e]=this["cScaleLabel"+e]||this.scaleLabelColor;for(let e=0;e<this.THEME_COLOR_LIMIT;e++)this["pie"+e]=this["cScale"+e];this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||i(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||i(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||i(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||i(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||i(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||i(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=(this.quadrantPointFill||Wt(this.quadrant1Fill)?s:Kt)(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:this.xyChart?.backgroundColor||this.background,titleColor:this.xyChart?.titleColor||this.primaryTextColor,xAxisTitleColor:this.xyChart?.xAxisTitleColor||this.primaryTextColor,xAxisLabelColor:this.xyChart?.xAxisLabelColor||this.primaryTextColor,xAxisTickColor:this.xyChart?.xAxisTickColor||this.primaryTextColor,xAxisLineColor:this.xyChart?.xAxisLineColor||this.primaryTextColor,yAxisTitleColor:this.xyChart?.yAxisTitleColor||this.primaryTextColor,yAxisLabelColor:this.xyChart?.yAxisLabelColor||this.primaryTextColor,yAxisTickColor:this.xyChart?.yAxisTickColor||this.primaryTextColor,yAxisLineColor:this.xyChart?.yAxisLineColor||this.primaryTextColor,plotColorPalette:this.xyChart?.plotColorPalette||"#3498db,#2ecc71,#e74c3c,#f1c40f,#bdc3c7,#ffffff,#34495e,#9b59b6,#1abc9c,#e67e22"},this.packet={startByteColor:this.primaryTextColor,endByteColor:this.primaryTextColor,labelColor:this.primaryTextColor,titleColor:this.primaryTextColor,blockStrokeColor:this.primaryTextColor,blockFillColor:this.background},this.radar={axisColor:this.radar?.axisColor||this.lineColor,axisStrokeWidth:this.radar?.axisStrokeWidth||2,axisLabelFontSize:this.radar?.axisLabelFontSize||12,curveOpacity:this.radar?.curveOpacity||.5,curveStrokeWidth:this.radar?.curveStrokeWidth||2,graticuleColor:this.radar?.graticuleColor||"#DEDEDE",graticuleStrokeWidth:this.radar?.graticuleStrokeWidth||1,graticuleOpacity:this.radar?.graticuleOpacity||.3,legendBoxSize:this.radar?.legendBoxSize||12,legendFontSize:this.radar?.legendFontSize||12},this.classText=this.primaryTextColor,this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||(this.darkMode?Kt(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=s(this.secondaryColor,20),this.git1=s(this.pie2||this.secondaryColor,20),this.git2=s(this.pie3||this.tertiaryColor,20),this.git3=s(this.pie4||i(this.primaryColor,{h:-30}),20),this.git4=s(this.pie5||i(this.primaryColor,{h:-60}),20),this.git5=s(this.pie6||i(this.primaryColor,{h:-90}),10),this.git6=s(this.pie7||i(this.primaryColor,{h:60}),10),this.git7=s(this.pie8||i(this.primaryColor,{h:120}),20),this.gitInv0=this.gitInv0||n(this.git0),this.gitInv1=this.gitInv1||n(this.git1),this.gitInv2=this.gitInv2||n(this.git2),this.gitInv3=this.gitInv3||n(this.git3),this.gitInv4=this.gitInv4||n(this.git4),this.gitInv5=this.gitInv5||n(this.git5),this.gitInv6=this.gitInv6||n(this.git6),this.gitInv7=this.gitInv7||n(this.git7),this.gitBranchLabel0=this.gitBranchLabel0||n(this.labelTextColor),this.gitBranchLabel1=this.gitBranchLabel1||this.labelTextColor,this.gitBranchLabel2=this.gitBranchLabel2||this.labelTextColor,this.gitBranchLabel3=this.gitBranchLabel3||n(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||s(this.background,12),this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||s(this.background,2),this.nodeBorder=this.nodeBorder||"#999"}calculate(t){var e;"object"!=typeof t?this.updateColors():((e=Object.keys(t)).forEach(e=>{this[e]=t[e]}),this.updateColors(),e.forEach(e=>{this[e]=t[e]}))}},oi=mt(e=>{var t=new ai;return t.calculate(e),t},"getThemeVariables")}),_n=e(()=>{"use strict";xn(),kn(),wn(),li=class{static{mt(this,"Theme")}constructor(){this.background="#f4f4f4",this.primaryColor="#ECECFF",this.secondaryColor=i(this.primaryColor,{h:120}),this.secondaryColor="#ffffde",this.tertiaryColor=i(this.primaryColor,{h:-160}),this.primaryBorderColor=ni(this.primaryColor,this.darkMode),this.secondaryBorderColor=ni(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=ni(this.tertiaryColor,this.darkMode),this.primaryTextColor=n(this.primaryColor),this.secondaryTextColor=n(this.secondaryColor),this.tertiaryTextColor=n(this.tertiaryColor),this.lineColor=n(this.background),this.textColor=n(this.background),this.background="white",this.mainBkg="#ECECFF",this.secondBkg="#ffffde",this.lineColor="#333333",this.border1="#9370DB",this.border2="#aaaa33",this.arrowheadColor="#333333",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.labelBackground="rgba(232,232,232, 0.8)",this.textColor="#333",this.THEME_COLOR_LIMIT=12,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="calculated",this.edgeLabelBackground="calculated",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="black",this.actorLineColor="calculated",this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.sectionBkgColor="calculated",this.altSectionBkgColor="calculated",this.sectionBkgColor2="calculated",this.excludeBkgColor="#eeeeee",this.taskBorderColor="calculated",this.taskBkgColor="calculated",this.taskTextLightColor="calculated",this.taskTextColor=this.taskTextLightColor,this.taskTextDarkColor="calculated",this.taskTextOutsideColor=this.taskTextDarkColor,this.taskTextClickableColor="calculated",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="calculated",this.critBorderColor="calculated",this.critBkgColor="calculated",this.todayLineColor="calculated",this.vertLineColor="calculated",this.sectionBkgColor=Pt(102,102,255,.49),this.altSectionBkgColor="white",this.sectionBkgColor2="#fff400",this.taskBorderColor="#534fbc",this.taskBkgColor="#8a90dd",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="black",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="#534fbc",this.activeTaskBkgColor="#bfc7ff",this.gridColor="lightgrey",this.doneTaskBkgColor="lightgrey",this.doneTaskBorderColor="grey",this.critBorderColor="#ff8888",this.critBkgColor="red",this.todayLineColor="red",this.vertLineColor="navy",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.rowOdd="calculated",this.rowEven="calculated",this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222",this.updateColors()}updateColors(){this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||i(this.primaryColor,{h:30}),this.cScale4=this.cScale4||i(this.primaryColor,{h:60}),this.cScale5=this.cScale5||i(this.primaryColor,{h:90}),this.cScale6=this.cScale6||i(this.primaryColor,{h:120}),this.cScale7=this.cScale7||i(this.primaryColor,{h:150}),this.cScale8=this.cScale8||i(this.primaryColor,{h:210}),this.cScale9=this.cScale9||i(this.primaryColor,{h:270}),this.cScale10=this.cScale10||i(this.primaryColor,{h:300}),this.cScale11=this.cScale11||i(this.primaryColor,{h:330}),this.cScalePeer1=this.cScalePeer1||Kt(this.secondaryColor,45),this.cScalePeer2=this.cScalePeer2||Kt(this.tertiaryColor,40);for(let e=0;e<this.THEME_COLOR_LIMIT;e++)this["cScale"+e]=Kt(this["cScale"+e],10),this["cScalePeer"+e]=this["cScalePeer"+e]||Kt(this["cScale"+e],25);for(let e=0;e<this.THEME_COLOR_LIMIT;e++)this["cScaleInv"+e]=this["cScaleInv"+e]||i(this["cScale"+e],{h:180});for(let e=0;e<5;e++)this["surface"+e]=this["surface"+e]||i(this.mainBkg,{h:30,l:-(5+5*e)}),this["surfacePeer"+e]=this["surfacePeer"+e]||i(this.mainBkg,{h:30,l:-(7+5*e)});if(this.scaleLabelColor="calculated"!==this.scaleLabelColor&&this.scaleLabelColor?this.scaleLabelColor:this.labelTextColor,"calculated"!==this.labelTextColor){this.cScaleLabel0=this.cScaleLabel0||n(this.labelTextColor),this.cScaleLabel3=this.cScaleLabel3||n(this.labelTextColor);for(let e=0;e<this.THEME_COLOR_LIMIT;e++)this["cScaleLabel"+e]=this["cScaleLabel"+e]||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=s(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.actorLineColor=this.actorBorder,this.taskTextColor=this.taskTextLightColor,this.taskTextOutsideColor=this.taskTextDarkColor,this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.rowOdd=this.rowOdd||s(this.primaryColor,75)||"#ffffff",this.rowEven=this.rowEven||s(this.primaryColor,1),this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f0f0f0",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.specialStateColor=this.lineColor,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.classText=this.primaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=i(this.primaryColor,{h:64}),this.fillType3=i(this.secondaryColor,{h:64}),this.fillType4=i(this.primaryColor,{h:-64}),this.fillType5=i(this.secondaryColor,{h:-64}),this.fillType6=i(this.primaryColor,{h:128}),this.fillType7=i(this.secondaryColor,{h:128}),this.pie1=this.pie1||this.primaryColor,this.pie2=this.pie2||this.secondaryColor,this.pie3=this.pie3||i(this.tertiaryColor,{l:-40}),this.pie4=this.pie4||i(this.primaryColor,{l:-10}),this.pie5=this.pie5||i(this.secondaryColor,{l:-30}),this.pie6=this.pie6||i(this.tertiaryColor,{l:-20}),this.pie7=this.pie7||i(this.primaryColor,{h:60,l:-20}),this.pie8=this.pie8||i(this.primaryColor,{h:-60,l:-40}),this.pie9=this.pie9||i(this.primaryColor,{h:120,l:-40}),this.pie10=this.pie10||i(this.primaryColor,{h:60,l:-40}),this.pie11=this.pie11||i(this.primaryColor,{h:-90,l:-40}),this.pie12=this.pie12||i(this.primaryColor,{h:120,l:-30}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||i(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||i(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||i(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||i(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||i(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||i(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=(this.quadrantPointFill||Wt(this.quadrant1Fill)?s:Kt)(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.radar={axisColor:this.radar?.axisColor||this.lineColor,axisStrokeWidth:this.radar?.axisStrokeWidth||2,axisLabelFontSize:this.radar?.axisLabelFontSize||12,curveOpacity:this.radar?.curveOpacity||.5,curveStrokeWidth:this.radar?.curveStrokeWidth||2,graticuleColor:this.radar?.graticuleColor||"#DEDEDE",graticuleStrokeWidth:this.radar?.graticuleStrokeWidth||1,graticuleOpacity:this.radar?.graticuleOpacity||.3,legendBoxSize:this.radar?.legendBoxSize||12,legendFontSize:this.radar?.legendFontSize||12},this.xyChart={backgroundColor:this.xyChart?.backgroundColor||this.background,titleColor:this.xyChart?.titleColor||this.primaryTextColor,xAxisTitleColor:this.xyChart?.xAxisTitleColor||this.primaryTextColor,xAxisLabelColor:this.xyChart?.xAxisLabelColor||this.primaryTextColor,xAxisTickColor:this.xyChart?.xAxisTickColor||this.primaryTextColor,xAxisLineColor:this.xyChart?.xAxisLineColor||this.primaryTextColor,yAxisTitleColor:this.xyChart?.yAxisTitleColor||this.primaryTextColor,yAxisLabelColor:this.xyChart?.yAxisLabelColor||this.primaryTextColor,yAxisTickColor:this.xyChart?.yAxisTickColor||this.primaryTextColor,yAxisLineColor:this.xyChart?.yAxisLineColor||this.primaryTextColor,plotColorPalette:this.xyChart?.plotColorPalette||"#ECECFF,#8493A6,#FFC3A0,#DCDDE1,#B8E994,#D1A36F,#C3CDE6,#FFB6C1,#496078,#F8F3E3"},this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||this.labelBackground,this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=this.git0||this.primaryColor,this.git1=this.git1||this.secondaryColor,this.git2=this.git2||this.tertiaryColor,this.git3=this.git3||i(this.primaryColor,{h:-30}),this.git4=this.git4||i(this.primaryColor,{h:-60}),this.git5=this.git5||i(this.primaryColor,{h:-90}),this.git6=this.git6||i(this.primaryColor,{h:60}),this.git7=this.git7||i(this.primaryColor,{h:120}),this.darkMode?(this.git0=s(this.git0,25),this.git1=s(this.git1,25),this.git2=s(this.git2,25),this.git3=s(this.git3,25),this.git4=s(this.git4,25),this.git5=s(this.git5,25),this.git6=s(this.git6,25),this.git7=s(this.git7,25)):(this.git0=Kt(this.git0,25),this.git1=Kt(this.git1,25),this.git2=Kt(this.git2,25),this.git3=Kt(this.git3,25),this.git4=Kt(this.git4,25),this.git5=Kt(this.git5,25),this.git6=Kt(this.git6,25),this.git7=Kt(this.git7,25)),this.gitInv0=this.gitInv0||Kt(n(this.git0),25),this.gitInv1=this.gitInv1||n(this.git1),this.gitInv2=this.gitInv2||n(this.git2),this.gitInv3=this.gitInv3||n(this.git3),this.gitInv4=this.gitInv4||n(this.git4),this.gitInv5=this.gitInv5||n(this.git5),this.gitInv6=this.gitInv6||n(this.git6),this.gitInv7=this.gitInv7||n(this.git7),this.gitBranchLabel0=this.gitBranchLabel0||n(this.labelTextColor),this.gitBranchLabel1=this.gitBranchLabel1||this.labelTextColor,this.gitBranchLabel2=this.gitBranchLabel2||this.labelTextColor,this.gitBranchLabel3=this.gitBranchLabel3||n(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||ti,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||ii}calculate(t){var e;Object.keys(this).forEach(e=>{"calculated"===this[e]&&(this[e]=void 0)}),"object"!=typeof t?this.updateColors():((e=Object.keys(t)).forEach(e=>{this[e]=t[e]}),this.updateColors(),e.forEach(e=>{this[e]=t[e]}))}},ci=mt(e=>{var t=new li;return t.calculate(e),t},"getThemeVariables")}),Cn=e(()=>{"use strict";xn(),wn(),kn(),hi=class{static{mt(this,"Theme")}constructor(){this.background="#f4f4f4",this.primaryColor="#cde498",this.secondaryColor="#cdffb2",this.background="white",this.mainBkg="#cde498",this.secondBkg="#cdffb2",this.lineColor="green",this.border1="#13540c",this.border2="#6eaa49",this.arrowheadColor="green",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.tertiaryColor=s("#cde498",10),this.primaryBorderColor=ni(this.primaryColor,this.darkMode),this.secondaryBorderColor=ni(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=ni(this.tertiaryColor,this.darkMode),this.primaryTextColor=n(this.primaryColor),this.secondaryTextColor=n(this.secondaryColor),this.tertiaryTextColor=n(this.primaryColor),this.lineColor=n(this.background),this.textColor=n(this.background),this.THEME_COLOR_LIMIT=12,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="#333",this.edgeLabelBackground="#e8e8e8",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="black",this.actorLineColor="calculated",this.signalColor="#333",this.signalTextColor="#333",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="#326932",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.sectionBkgColor="#6eaa49",this.altSectionBkgColor="white",this.sectionBkgColor2="#6eaa49",this.excludeBkgColor="#eeeeee",this.taskBorderColor="calculated",this.taskBkgColor="#487e3a",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="black",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="lightgrey",this.doneTaskBkgColor="lightgrey",this.doneTaskBorderColor="grey",this.critBorderColor="#ff8888",this.critBkgColor="red",this.todayLineColor="red",this.vertLineColor="#00BFFF",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222"}updateColors(){this.actorBorder=Kt(this.mainBkg,20),this.actorBkg=this.mainBkg,this.labelBoxBkgColor=this.actorBkg,this.labelTextColor=this.actorTextColor,this.loopTextColor=this.actorTextColor,this.noteBorderColor=this.border2,this.noteTextColor=this.actorTextColor,this.actorLineColor=this.actorBorder,this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||i(this.primaryColor,{h:30}),this.cScale4=this.cScale4||i(this.primaryColor,{h:60}),this.cScale5=this.cScale5||i(this.primaryColor,{h:90}),this.cScale6=this.cScale6||i(this.primaryColor,{h:120}),this.cScale7=this.cScale7||i(this.primaryColor,{h:150}),this.cScale8=this.cScale8||i(this.primaryColor,{h:210}),this.cScale9=this.cScale9||i(this.primaryColor,{h:270}),this.cScale10=this.cScale10||i(this.primaryColor,{h:300}),this.cScale11=this.cScale11||i(this.primaryColor,{h:330}),this.cScalePeer1=this.cScalePeer1||Kt(this.secondaryColor,45),this.cScalePeer2=this.cScalePeer2||Kt(this.tertiaryColor,40);for(let e=0;e<this.THEME_COLOR_LIMIT;e++)this["cScale"+e]=Kt(this["cScale"+e],10),this["cScalePeer"+e]=this["cScalePeer"+e]||Kt(this["cScale"+e],25);for(let e=0;e<this.THEME_COLOR_LIMIT;e++)this["cScaleInv"+e]=this["cScaleInv"+e]||i(this["cScale"+e],{h:180});this.scaleLabelColor="calculated"!==this.scaleLabelColor&&this.scaleLabelColor?this.scaleLabelColor:this.labelTextColor;for(let e=0;e<this.THEME_COLOR_LIMIT;e++)this["cScaleLabel"+e]=this["cScaleLabel"+e]||this.scaleLabelColor;for(let e=0;e<5;e++)this["surface"+e]=this["surface"+e]||i(this.mainBkg,{h:30,s:-30,l:-(5+5*e)}),this["surfacePeer"+e]=this["surfacePeer"+e]||i(this.mainBkg,{h:30,s:-30,l:-(8+5*e)});this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.taskBorderColor=this.border1,this.taskTextColor=this.taskTextLightColor,this.taskTextOutsideColor=this.taskTextDarkColor,this.activeTaskBorderColor=this.taskBorderColor,this.activeTaskBkgColor=this.mainBkg,this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.rowOdd=this.rowOdd||s(this.mainBkg,75)||"#ffffff",this.rowEven=this.rowEven||s(this.mainBkg,20),this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.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=i(this.primaryColor,{h:64}),this.fillType3=i(this.secondaryColor,{h:64}),this.fillType4=i(this.primaryColor,{h:-64}),this.fillType5=i(this.secondaryColor,{h:-64}),this.fillType6=i(this.primaryColor,{h:128}),this.fillType7=i(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||i(this.primaryColor,{l:-30}),this.pie5=this.pie5||i(this.secondaryColor,{l:-30}),this.pie6=this.pie6||i(this.tertiaryColor,{h:40,l:-40}),this.pie7=this.pie7||i(this.primaryColor,{h:60,l:-10}),this.pie8=this.pie8||i(this.primaryColor,{h:-60,l:-10}),this.pie9=this.pie9||i(this.primaryColor,{h:120,l:0}),this.pie10=this.pie10||i(this.primaryColor,{h:60,l:-50}),this.pie11=this.pie11||i(this.primaryColor,{h:-60,l:-50}),this.pie12=this.pie12||i(this.primaryColor,{h:120,l:-50}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||i(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||i(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||i(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||i(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||i(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||i(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=(this.quadrantPointFill||Wt(this.quadrant1Fill)?s:Kt)(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.packet={startByteColor:this.primaryTextColor,endByteColor:this.primaryTextColor,labelColor:this.primaryTextColor,titleColor:this.primaryTextColor,blockStrokeColor:this.primaryTextColor,blockFillColor:this.mainBkg},this.radar={axisColor:this.radar?.axisColor||this.lineColor,axisStrokeWidth:this.radar?.axisStrokeWidth||2,axisLabelFontSize:this.radar?.axisLabelFontSize||12,curveOpacity:this.radar?.curveOpacity||.5,curveStrokeWidth:this.radar?.curveStrokeWidth||2,graticuleColor:this.radar?.graticuleColor||"#DEDEDE",graticuleStrokeWidth:this.radar?.graticuleStrokeWidth||1,graticuleOpacity:this.radar?.graticuleOpacity||.3,legendBoxSize:this.radar?.legendBoxSize||12,legendFontSize:this.radar?.legendFontSize||12},this.xyChart={backgroundColor:this.xyChart?.backgroundColor||this.background,titleColor:this.xyChart?.titleColor||this.primaryTextColor,xAxisTitleColor:this.xyChart?.xAxisTitleColor||this.primaryTextColor,xAxisLabelColor:this.xyChart?.xAxisLabelColor||this.primaryTextColor,xAxisTickColor:this.xyChart?.xAxisTickColor||this.primaryTextColor,xAxisLineColor:this.xyChart?.xAxisLineColor||this.primaryTextColor,yAxisTitleColor:this.xyChart?.yAxisTitleColor||this.primaryTextColor,yAxisLabelColor:this.xyChart?.yAxisLabelColor||this.primaryTextColor,yAxisTickColor:this.xyChart?.yAxisTickColor||this.primaryTextColor,yAxisLineColor:this.xyChart?.yAxisLineColor||this.primaryTextColor,plotColorPalette:this.xyChart?.plotColorPalette||"#CDE498,#FF6B6B,#A0D2DB,#D7BDE2,#F0F0F0,#FFC3A0,#7FD8BE,#FF9A8B,#FAF3E0,#FFF176"},this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||this.edgeLabelBackground,this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=this.git0||this.primaryColor,this.git1=this.git1||this.secondaryColor,this.git2=this.git2||this.tertiaryColor,this.git3=this.git3||i(this.primaryColor,{h:-30}),this.git4=this.git4||i(this.primaryColor,{h:-60}),this.git5=this.git5||i(this.primaryColor,{h:-90}),this.git6=this.git6||i(this.primaryColor,{h:60}),this.git7=this.git7||i(this.primaryColor,{h:120}),this.darkMode?(this.git0=s(this.git0,25),this.git1=s(this.git1,25),this.git2=s(this.git2,25),this.git3=s(this.git3,25),this.git4=s(this.git4,25),this.git5=s(this.git5,25),this.git6=s(this.git6,25),this.git7=s(this.git7,25)):(this.git0=Kt(this.git0,25),this.git1=Kt(this.git1,25),this.git2=Kt(this.git2,25),this.git3=Kt(this.git3,25),this.git4=Kt(this.git4,25),this.git5=Kt(this.git5,25),this.git6=Kt(this.git6,25),this.git7=Kt(this.git7,25)),this.gitInv0=this.gitInv0||n(this.git0),this.gitInv1=this.gitInv1||n(this.git1),this.gitInv2=this.gitInv2||n(this.git2),this.gitInv3=this.gitInv3||n(this.git3),this.gitInv4=this.gitInv4||n(this.git4),this.gitInv5=this.gitInv5||n(this.git5),this.gitInv6=this.gitInv6||n(this.git6),this.gitInv7=this.gitInv7||n(this.git7),this.gitBranchLabel0=this.gitBranchLabel0||n(this.labelTextColor),this.gitBranchLabel1=this.gitBranchLabel1||this.labelTextColor,this.gitBranchLabel2=this.gitBranchLabel2||this.labelTextColor,this.gitBranchLabel3=this.gitBranchLabel3||n(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||ti,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||ii}calculate(t){var e;"object"!=typeof t?this.updateColors():((e=Object.keys(t)).forEach(e=>{this[e]=t[e]}),this.updateColors(),e.forEach(e=>{this[e]=t[e]}))}},ui=mt(e=>{var t=new hi;return t.calculate(e),t},"getThemeVariables")}),An=e(()=>{"use strict";xn(),kn(),wn(),di=class{static{mt(this,"Theme")}constructor(){this.primaryColor="#eee",this.contrast="#707070",this.secondaryColor=s(this.contrast,55),this.background="#ffffff",this.tertiaryColor=i(this.primaryColor,{h:-160}),this.primaryBorderColor=ni(this.primaryColor,this.darkMode),this.secondaryBorderColor=ni(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=ni(this.tertiaryColor,this.darkMode),this.primaryTextColor=n(this.primaryColor),this.secondaryTextColor=n(this.secondaryColor),this.tertiaryTextColor=n(this.tertiaryColor),this.lineColor=n(this.background),this.textColor=n(this.background),this.mainBkg="#eee",this.secondBkg="calculated",this.lineColor="#666",this.border1="#999",this.border2="calculated",this.note="#ffa",this.text="#333",this.critical="#d42",this.done="#bbb",this.arrowheadColor="#333333",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.THEME_COLOR_LIMIT=12,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="calculated",this.edgeLabelBackground="white",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="calculated",this.actorLineColor=this.actorBorder,this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="calculated",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.sectionBkgColor="calculated",this.altSectionBkgColor="white",this.sectionBkgColor2="calculated",this.excludeBkgColor="#eeeeee",this.taskBorderColor="calculated",this.taskBkgColor="calculated",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="calculated",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="calculated",this.critBkgColor="calculated",this.critBorderColor="calculated",this.todayLineColor="calculated",this.vertLineColor="calculated",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.rowOdd=this.rowOdd||s(this.mainBkg,75)||"#ffffff",this.rowEven=this.rowEven||"#f4f4f4",this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222"}updateColors(){this.secondBkg=s(this.contrast,55),this.border2=this.contrast,this.actorBorder=s(this.border1,23),this.actorBkg=this.mainBkg,this.actorTextColor=this.text,this.actorLineColor=this.actorBorder,this.signalColor=this.text,this.signalTextColor=this.text,this.labelBoxBkgColor=this.actorBkg,this.labelBoxBorderColor=this.actorBorder,this.labelTextColor=this.text,this.loopTextColor=this.text,this.noteBorderColor="#999",this.noteBkgColor="#666",this.noteTextColor="#fff",this.cScale0=this.cScale0||"#555",this.cScale1=this.cScale1||"#F4F4F4",this.cScale2=this.cScale2||"#555",this.cScale3=this.cScale3||"#BBB",this.cScale4=this.cScale4||"#777",this.cScale5=this.cScale5||"#999",this.cScale6=this.cScale6||"#DDD",this.cScale7=this.cScale7||"#FFF",this.cScale8=this.cScale8||"#DDD",this.cScale9=this.cScale9||"#BBB",this.cScale10=this.cScale10||"#999",this.cScale11=this.cScale11||"#777";for(let e=0;e<this.THEME_COLOR_LIMIT;e++)this["cScaleInv"+e]=this["cScaleInv"+e]||n(this["cScale"+e]);for(let e=0;e<this.THEME_COLOR_LIMIT;e++)this.darkMode?this["cScalePeer"+e]=this["cScalePeer"+e]||s(this["cScale"+e],10):this["cScalePeer"+e]=this["cScalePeer"+e]||Kt(this["cScale"+e],10);this.scaleLabelColor=this.scaleLabelColor||(this.darkMode?"black":this.labelTextColor),this.cScaleLabel0=this.cScaleLabel0||this.cScale1,this.cScaleLabel2=this.cScaleLabel2||this.cScale1;for(let e=0;e<this.THEME_COLOR_LIMIT;e++)this["cScaleLabel"+e]=this["cScaleLabel"+e]||this.scaleLabelColor;for(let e=0;e<5;e++)this["surface"+e]=this["surface"+e]||i(this.mainBkg,{l:-(5+5*e)}),this["surfacePeer"+e]=this["surfacePeer"+e]||i(this.mainBkg,{l:-(8+5*e)});this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.titleColor=this.text,this.sectionBkgColor=s(this.contrast,30),this.sectionBkgColor2=s(this.contrast,30),this.taskBorderColor=Kt(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=s(this.border1,30),this.doneTaskBkgColor=this.done,this.doneTaskBorderColor=this.lineColor,this.critBkgColor=this.critical,this.critBorderColor=Kt(this.critBkgColor,10),this.todayLineColor=this.critBkgColor,this.vertLineColor=this.critBkgColor,this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.transitionColor=this.transitionColor||"#000",this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.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=i(this.primaryColor,{h:64}),this.fillType3=i(this.secondaryColor,{h:64}),this.fillType4=i(this.primaryColor,{h:-64}),this.fillType5=i(this.secondaryColor,{h:-64}),this.fillType6=i(this.primaryColor,{h:128}),this.fillType7=i(this.secondaryColor,{h:128});for(let e=0;e<this.THEME_COLOR_LIMIT;e++)this["pie"+e]=this["cScale"+e];this.pie12=this.pie0,this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||i(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||i(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||i(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||i(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||i(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||i(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=(this.quadrantPointFill||Wt(this.quadrant1Fill)?s:Kt)(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:this.xyChart?.backgroundColor||this.background,titleColor:this.xyChart?.titleColor||this.primaryTextColor,xAxisTitleColor:this.xyChart?.xAxisTitleColor||this.primaryTextColor,xAxisLabelColor:this.xyChart?.xAxisLabelColor||this.primaryTextColor,xAxisTickColor:this.xyChart?.xAxisTickColor||this.primaryTextColor,xAxisLineColor:this.xyChart?.xAxisLineColor||this.primaryTextColor,yAxisTitleColor:this.xyChart?.yAxisTitleColor||this.primaryTextColor,yAxisLabelColor:this.xyChart?.yAxisLabelColor||this.primaryTextColor,yAxisTickColor:this.xyChart?.yAxisTickColor||this.primaryTextColor,yAxisLineColor:this.xyChart?.yAxisLineColor||this.primaryTextColor,plotColorPalette:this.xyChart?.plotColorPalette||"#EEE,#6BB8E4,#8ACB88,#C7ACD6,#E8DCC2,#FFB2A8,#FFF380,#7E8D91,#FFD8B1,#FAF3E0"},this.radar={axisColor:this.radar?.axisColor||this.lineColor,axisStrokeWidth:this.radar?.axisStrokeWidth||2,axisLabelFontSize:this.radar?.axisLabelFontSize||12,curveOpacity:this.radar?.curveOpacity||.5,curveStrokeWidth:this.radar?.curveStrokeWidth||2,graticuleColor:this.radar?.graticuleColor||"#DEDEDE",graticuleStrokeWidth:this.radar?.graticuleStrokeWidth||1,graticuleOpacity:this.radar?.graticuleOpacity||.3,legendBoxSize:this.radar?.legendBoxSize||12,legendFontSize:this.radar?.legendFontSize||12},this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||this.edgeLabelBackground,this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=Kt(this.pie1,25)||this.primaryColor,this.git1=this.pie2||this.secondaryColor,this.git2=this.pie3||this.tertiaryColor,this.git3=this.pie4||i(this.primaryColor,{h:-30}),this.git4=this.pie5||i(this.primaryColor,{h:-60}),this.git5=this.pie6||i(this.primaryColor,{h:-90}),this.git6=this.pie7||i(this.primaryColor,{h:60}),this.git7=this.pie8||i(this.primaryColor,{h:120}),this.gitInv0=this.gitInv0||n(this.git0),this.gitInv1=this.gitInv1||n(this.git1),this.gitInv2=this.gitInv2||n(this.git2),this.gitInv3=this.gitInv3||n(this.git3),this.gitInv4=this.gitInv4||n(this.git4),this.gitInv5=this.gitInv5||n(this.git5),this.gitInv6=this.gitInv6||n(this.git6),this.gitInv7=this.gitInv7||n(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||ti,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||ii}calculate(t){var e;"object"!=typeof t?this.updateColors():((e=Object.keys(t)).forEach(e=>{this[e]=t[e]}),this.updateColors(),e.forEach(e=>{this[e]=t[e]}))}},pi=mt(e=>{var t=new di;return t.calculate(e),t},"getThemeVariables")}),En=e(()=>{"use strict";Tn(),Sn(),_n(),Cn(),An(),gi={base:{getThemeVariables:si},dark:{getThemeVariables:oi},default:{getThemeVariables:ci},forest:{getThemeVariables:ui},neutral:{getThemeVariables:pi}}}),$n=e(()=>{"use strict";fi={flowchart:{useMaxWidth:!0,titleTopMargin:25,subGraphTitleMargin:{top:0,bottom:0},diagramPadding:8,htmlLabels:!0,nodeSpacing:50,rankSpacing:50,curve:"basis",padding:15,defaultRenderer:"dagre-wrapper",wrappingWidth:200,inheritDir:!1},sequence:{useMaxWidth:!0,hideUnusedParticipants:!1,activationWidth:10,diagramMarginX:50,diagramMarginY:10,actorMargin:50,width:150,height:65,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",mirrorActors:!0,forceMenus:!1,bottomMarginAdj:1,rightAngles:!1,showSequenceNumbers:!1,actorFontSize:14,actorFontFamily:'"Open Sans", sans-serif',actorFontWeight:400,noteFontSize:14,noteFontFamily:'"trebuchet ms", verdana, arial, sans-serif',noteFontWeight:400,noteAlign:"center",messageFontSize:16,messageFontFamily:'"trebuchet ms", verdana, arial, sans-serif',messageFontWeight:400,wrap:!1,wrapPadding:10,labelBoxWidth:50,labelBoxHeight:20},gantt:{useMaxWidth:!0,titleTopMargin:25,barHeight:20,barGap:4,topPadding:50,rightPadding:75,leftPadding:75,gridLineStartPadding:35,fontSize:11,sectionFontSize:11,numberSectionStyles:4,axisFormat:"%Y-%m-%d",topAxis:!1,displayMode:"",weekday:"sunday"},journey:{useMaxWidth:!0,diagramMarginX:50,diagramMarginY:10,leftMargin:150,maxLabelWidth:360,width:150,height:50,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",bottomMarginAdj:1,rightAngles:!1,taskFontSize:14,taskFontFamily:'"Open Sans", sans-serif',taskMargin:50,activationWidth:10,textPlacement:"fo",actorColours:["#8FBC8F","#7CFC00","#00FFFF","#20B2AA","#B0E0E6","#FFFFE0"],sectionFills:["#191970","#8B008B","#4B0082","#2F4F4F","#800000","#8B4513","#00008B"],sectionColours:["#fff"],titleColor:"",titleFontFamily:'"trebuchet ms", verdana, arial, sans-serif',titleFontSize:"4ex"},class:{useMaxWidth:!0,titleTopMargin:25,arrowMarkerAbsolute:!1,dividerMargin:10,padding:5,textHeight:10,defaultRenderer:"dagre-wrapper",htmlLabels:!1,hideEmptyMembersBox:!1},state:{useMaxWidth:!0,titleTopMargin:25,dividerMargin:10,sizeUnit:5,padding:8,textHeight:10,titleShift:-15,noteMargin:10,forkWidth:70,forkHeight:7,miniPadding:2,fontSizeFactor:5.02,fontSize:24,labelHeight:16,edgeLengthFactor:"20",compositTitleSize:35,radius:5,defaultRenderer:"dagre-wrapper"},er:{useMaxWidth:!0,titleTopMargin:25,diagramPadding:20,layoutDirection:"TB",minEntityWidth:100,minEntityHeight:75,entityPadding:15,nodeSpacing:140,rankSpacing:80,stroke:"gray",fill:"honeydew",fontSize:12},pie:{useMaxWidth:!0,textPosition:.75},quadrantChart:{useMaxWidth:!0,chartWidth:500,chartHeight:500,titleFontSize:20,titlePadding:10,quadrantPadding:5,xAxisLabelPadding:5,yAxisLabelPadding:5,xAxisLabelFontSize:16,yAxisLabelFontSize:16,quadrantLabelFontSize:16,quadrantTextTopPadding:5,pointTextPadding:5,pointLabelFontSize:12,pointRadius:5,xAxisPosition:"top",yAxisPosition:"left",quadrantInternalBorderStrokeWidth:1,quadrantExternalBorderStrokeWidth:2},xyChart:{useMaxWidth:!0,width:700,height:500,titleFontSize:20,titlePadding:10,showDataLabel:!1,showTitle:!0,xAxis:{$ref:"#/$defs/XYChartAxisConfig",showLabel:!0,labelFontSize:14,labelPadding:5,showTitle:!0,titleFontSize:16,titlePadding:5,showTick:!0,tickLength:5,tickWidth:2,showAxisLine:!0,axisLineWidth:2},yAxis:{$ref:"#/$defs/XYChartAxisConfig",showLabel:!0,labelFontSize:14,labelPadding:5,showTitle:!0,titleFontSize:16,titlePadding:5,showTick:!0,tickLength:5,tickWidth:2,showAxisLine:!0,axisLineWidth:2},chartOrientation:"vertical",plotReservedSpacePercent:50},requirement:{useMaxWidth:!0,rect_fill:"#f9f9f9",text_color:"#333",rect_border_size:"0.5px",rect_border_color:"#bbb",rect_min_width:200,rect_min_height:200,fontSize:14,rect_padding:10,line_height:20},mindmap:{useMaxWidth:!0,padding:10,maxNodeWidth:200},kanban:{useMaxWidth:!0,padding:8,sectionWidth:200,ticketBaseUrl:""},timeline:{useMaxWidth:!0,diagramMarginX:50,diagramMarginY:10,leftMargin:150,width:150,height:50,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",bottomMarginAdj:1,rightAngles:!1,taskFontSize:14,taskFontFamily:'"Open Sans", sans-serif',taskMargin:50,activationWidth:10,textPlacement:"fo",actorColours:["#8FBC8F","#7CFC00","#00FFFF","#20B2AA","#B0E0E6","#FFFFE0"],sectionFills:["#191970","#8B008B","#4B0082","#2F4F4F","#800000","#8B4513","#00008B"],sectionColours:["#fff"],disableMulticolor:!1},gitGraph:{useMaxWidth:!0,titleTopMargin:25,diagramPadding:8,nodeLabel:{width:75,height:100,x:-25,y:0},mainBranchName:"main",mainBranchOrder:0,showCommitLabel:!0,showBranches:!0,rotateCommitLabel:!0,parallelCommits:!1,arrowMarkerAbsolute:!1},c4:{useMaxWidth:!0,diagramMarginX:50,diagramMarginY:10,c4ShapeMargin:50,c4ShapePadding:20,width:216,height:60,boxMargin:10,c4ShapeInRow:4,nextLinePaddingX:0,c4BoundaryInRow:2,personFontSize:14,personFontFamily:'"Open Sans", sans-serif',personFontWeight:"normal",external_personFontSize:14,external_personFontFamily:'"Open Sans", sans-serif',external_personFontWeight:"normal",systemFontSize:14,systemFontFamily:'"Open Sans", sans-serif',systemFontWeight:"normal",external_systemFontSize:14,external_systemFontFamily:'"Open Sans", sans-serif',external_systemFontWeight:"normal",system_dbFontSize:14,system_dbFontFamily:'"Open Sans", sans-serif',system_dbFontWeight:"normal",external_system_dbFontSize:14,external_system_dbFontFamily:'"Open Sans", sans-serif',external_system_dbFontWeight:"normal",system_queueFontSize:14,system_queueFontFamily:'"Open Sans", sans-serif',system_queueFontWeight:"normal",external_system_queueFontSize:14,external_system_queueFontFamily:'"Open Sans", sans-serif',external_system_queueFontWeight:"normal",boundaryFontSize:14,boundaryFontFamily:'"Open Sans", sans-serif',boundaryFontWeight:"normal",messageFontSize:12,messageFontFamily:'"Open Sans", sans-serif',messageFontWeight:"normal",containerFontSize:14,containerFontFamily:'"Open Sans", sans-serif',containerFontWeight:"normal",external_containerFontSize:14,external_containerFontFamily:'"Open Sans", sans-serif',external_containerFontWeight:"normal",container_dbFontSize:14,container_dbFontFamily:'"Open Sans", sans-serif',container_dbFontWeight:"normal",external_container_dbFontSize:14,external_container_dbFontFamily:'"Open Sans", sans-serif',external_container_dbFontWeight:"normal",container_queueFontSize:14,container_queueFontFamily:'"Open Sans", sans-serif',container_queueFontWeight:"normal",external_container_queueFontSize:14,external_container_queueFontFamily:'"Open Sans", sans-serif',external_container_queueFontWeight:"normal",componentFontSize:14,componentFontFamily:'"Open Sans", sans-serif',componentFontWeight:"normal",external_componentFontSize:14,external_componentFontFamily:'"Open Sans", sans-serif',external_componentFontWeight:"normal",component_dbFontSize:14,component_dbFontFamily:'"Open Sans", sans-serif',component_dbFontWeight:"normal",external_component_dbFontSize:14,external_component_dbFontFamily:'"Open Sans", sans-serif',external_component_dbFontWeight:"normal",component_queueFontSize:14,component_queueFontFamily:'"Open Sans", sans-serif',component_queueFontWeight:"normal",external_component_queueFontSize:14,external_component_queueFontFamily:'"Open Sans", sans-serif',external_component_queueFontWeight:"normal",wrap:!0,wrapPadding:10,person_bg_color:"#08427B",person_border_color:"#073B6F",external_person_bg_color:"#686868",external_person_border_color:"#8A8A8A",system_bg_color:"#1168BD",system_border_color:"#3C7FC0",system_db_bg_color:"#1168BD",system_db_border_color:"#3C7FC0",system_queue_bg_color:"#1168BD",system_queue_border_color:"#3C7FC0",external_system_bg_color:"#999999",external_system_border_color:"#8A8A8A",external_system_db_bg_color:"#999999",external_system_db_border_color:"#8A8A8A",external_system_queue_bg_color:"#999999",external_system_queue_border_color:"#8A8A8A",container_bg_color:"#438DD5",container_border_color:"#3C7FC0",container_db_bg_color:"#438DD5",container_db_border_color:"#3C7FC0",container_queue_bg_color:"#438DD5",container_queue_border_color:"#3C7FC0",external_container_bg_color:"#B3B3B3",external_container_border_color:"#A6A6A6",external_container_db_bg_color:"#B3B3B3",external_container_db_border_color:"#A6A6A6",external_container_queue_bg_color:"#B3B3B3",external_container_queue_border_color:"#A6A6A6",component_bg_color:"#85BBF0",component_border_color:"#78A8D8",component_db_bg_color:"#85BBF0",component_db_border_color:"#78A8D8",component_queue_bg_color:"#85BBF0",component_queue_border_color:"#78A8D8",external_component_bg_color:"#CCCCCC",external_component_border_color:"#BFBFBF",external_component_db_bg_color:"#CCCCCC",external_component_db_border_color:"#BFBFBF",external_component_queue_bg_color:"#CCCCCC",external_component_queue_border_color:"#BFBFBF"},sankey:{useMaxWidth:!0,width:600,height:400,linkColor:"gradient",nodeAlignment:"justify",showValues:!0,prefix:"",suffix:""},block:{useMaxWidth:!0,padding:8},packet:{useMaxWidth:!0,rowHeight:32,bitWidth:32,bitsPerRow:32,showBits:!0,paddingX:5,paddingY:5},architecture:{useMaxWidth:!0,padding:40,iconSize:80,fontSize:16},radar:{useMaxWidth:!0,width:600,height:600,marginTop:50,marginRight:50,marginBottom:50,marginLeft:50,axisScaleFactor:1,axisLabelFactor:1.05,curveTension:.17},theme:"default",look:"classic",handDrawnSeed:0,layout:"dagre",maxTextSize:5e4,maxEdges:500,darkMode:!1,fontFamily:'"trebuchet ms", verdana, arial, sans-serif;',logLevel:5,securityLevel:"strict",startOnLoad:!0,arrowMarkerAbsolute:!1,secure:["secure","securityLevel","startOnLoad","maxTextSize","suppressErrorRendering","maxEdges"],legacyMathML:!1,forceLegacyMathML:!1,deterministicIds:!1,fontSize:16,markdownAutoWrap:!0,suppressErrorRendering:!1}}),Ln=e(()=>{"use strict";En(),$n(),mi={...fi,deterministicIDSeed:void 0,elk:{mergeEdges:!1,nodePlacementStrategy:"BRANDES_KOEPF"},themeCSS:void 0,themeVariables:gi.default.getThemeVariables(),sequence:{...fi.sequence,messageFont:mt(function(){return{fontFamily:this.messageFontFamily,fontSize:this.messageFontSize,fontWeight:this.messageFontWeight}},"messageFont"),noteFont:mt(function(){return{fontFamily:this.noteFontFamily,fontSize:this.noteFontSize,fontWeight:this.noteFontWeight}},"noteFont"),actorFont:mt(function(){return{fontFamily:this.actorFontFamily,fontSize:this.actorFontSize,fontWeight:this.actorFontWeight}},"actorFont")},class:{hideEmptyMembersBox:!1},gantt:{...fi.gantt,tickInterval:void 0,useWidth:void 0},c4:{...fi.c4,useWidth:void 0,personFont:mt(function(){return{fontFamily:this.personFontFamily,fontSize:this.personFontSize,fontWeight:this.personFontWeight}},"personFont"),flowchart:{...fi.flowchart,inheritDir:!1},external_personFont:mt(function(){return{fontFamily:this.external_personFontFamily,fontSize:this.external_personFontSize,fontWeight:this.external_personFontWeight}},"external_personFont"),systemFont:mt(function(){return{fontFamily:this.systemFontFamily,fontSize:this.systemFontSize,fontWeight:this.systemFontWeight}},"systemFont"),external_systemFont:mt(function(){return{fontFamily:this.external_systemFontFamily,fontSize:this.external_systemFontSize,fontWeight:this.external_systemFontWeight}},"external_systemFont"),system_dbFont:mt(function(){return{fontFamily:this.system_dbFontFamily,fontSize:this.system_dbFontSize,fontWeight:this.system_dbFontWeight}},"system_dbFont"),external_system_dbFont:mt(function(){return{fontFamily:this.external_system_dbFontFamily,fontSize:this.external_system_dbFontSize,fontWeight:this.external_system_dbFontWeight}},"external_system_dbFont"),system_queueFont:mt(function(){return{fontFamily:this.system_queueFontFamily,fontSize:this.system_queueFontSize,fontWeight:this.system_queueFontWeight}},"system_queueFont"),external_system_queueFont:mt(function(){return{fontFamily:this.external_system_queueFontFamily,fontSize:this.external_system_queueFontSize,fontWeight:this.external_system_queueFontWeight}},"external_system_queueFont"),containerFont:mt(function(){return{fontFamily:this.containerFontFamily,fontSize:this.containerFontSize,fontWeight:this.containerFontWeight}},"containerFont"),external_containerFont:mt(function(){return{fontFamily:this.external_containerFontFamily,fontSize:this.external_containerFontSize,fontWeight:this.external_containerFontWeight}},"external_containerFont"),container_dbFont:mt(function(){return{fontFamily:this.container_dbFontFamily,fontSize:this.container_dbFontSize,fontWeight:this.container_dbFontWeight}},"container_dbFont"),external_container_dbFont:mt(function(){return{fontFamily:this.external_container_dbFontFamily,fontSize:this.external_container_dbFontSize,fontWeight:this.external_container_dbFontWeight}},"external_container_dbFont"),container_queueFont:mt(function(){return{fontFamily:this.container_queueFontFamily,fontSize:this.container_queueFontSize,fontWeight:this.container_queueFontWeight}},"container_queueFont"),external_container_queueFont:mt(function(){return{fontFamily:this.external_container_queueFontFamily,fontSize:this.external_container_queueFontSize,fontWeight:this.external_container_queueFontWeight}},"external_container_queueFont"),componentFont:mt(function(){return{fontFamily:this.componentFontFamily,fontSize:this.componentFontSize,fontWeight:this.componentFontWeight}},"componentFont"),external_componentFont:mt(function(){return{fontFamily:this.external_componentFontFamily,fontSize:this.external_componentFontSize,fontWeight:this.external_componentFontWeight}},"external_componentFont"),component_dbFont:mt(function(){return{fontFamily:this.component_dbFontFamily,fontSize:this.component_dbFontSize,fontWeight:this.component_dbFontWeight}},"component_dbFont"),external_component_dbFont:mt(function(){return{fontFamily:this.external_component_dbFontFamily,fontSize:this.external_component_dbFontSize,fontWeight:this.external_component_dbFontWeight}},"external_component_dbFont"),component_queueFont:mt(function(){return{fontFamily:this.component_queueFontFamily,fontSize:this.component_queueFontSize,fontWeight:this.component_queueFontWeight}},"component_queueFont"),external_component_queueFont:mt(function(){return{fontFamily:this.external_component_queueFontFamily,fontSize:this.external_component_queueFontSize,fontWeight:this.external_component_queueFontWeight}},"external_component_queueFont"),boundaryFont:mt(function(){return{fontFamily:this.boundaryFontFamily,fontSize:this.boundaryFontSize,fontWeight:this.boundaryFontWeight}},"boundaryFont"),messageFont:mt(function(){return{fontFamily:this.messageFontFamily,fontSize:this.messageFontSize,fontWeight:this.messageFontWeight}},"messageFont")},pie:{...fi.pie,useWidth:984},xyChart:{...fi.xyChart,useWidth:void 0},requirement:{...fi.requirement,useWidth:void 0},packet:{...fi.packet},radar:{...fi.radar},treemap:{useMaxWidth:!0,padding:10,diagramPadding:8,showValues:!0,nodeWidth:100,nodeHeight:40,borderWidth:1,valueFontSize:12,labelFontSize:14,valueFormat:","}},yi=mt((i,n="")=>Object.keys(i).reduce((e,t)=>Array.isArray(i[t])?e:"object"==typeof i[t]&&null!==i[t]?[...e,n+t,...yi(i[t],"")]:[...e,n+t],[]),"keyify"),bi=new Set(yi(mi,"")),vi=mi}),Rn=e(()=>{"use strict";Ln(),t(),xi=mt(e=>{if(I.debug("sanitizeDirective called with",e),"object"==typeof e&&null!=e)if(Array.isArray(e))e.forEach(e=>xi(e));else{for(var t of Object.keys(e)){var i;if(I.debug("Checking key",t),t.startsWith("__")||t.includes("proto")||t.includes("constr")||!bi.has(t)||null==e[t])I.debug("sanitize deleting key: ",t),delete e[t];else if("object"==typeof e[t])I.debug("sanitizing object",t),xi(e[t]);else for(i of["themeCSS","fontFamily","altFontFamily"])t.includes(i)&&(I.debug("sanitizing css option",t),e[t]=wi(e[t]))}if(e.themeVariables)for(var n of Object.keys(e.themeVariables)){var r=e.themeVariables[n];r?.match&&!r.match(/^[\d "#%(),.;A-Za-z]+$/)&&(e.themeVariables[n]="")}I.debug("After sanitization",e)}},"sanitizeDirective"),wi=mt(e=>{let t=0,i=0;for(var n of e){if(t<i)return"{ /* ERROR: Unbalanced CSS */ }";"{"===n?t++:"}"===n&&i++}return t!==i?"{ /* ERROR: Unbalanced CSS */ }":e},"sanitizeCss")}),Mn=e(()=>{"use strict";Vi(),t(),En(),Ln(),Rn(),ki=Object.freeze(vi),Ti=at({},ki),_i=[],Ci=at({},ki),Ai=mt((e,t)=>{let i=at({},e),n={};for(var r of t)Ni(r),n=at(n,r);return i=at(i,n),n.theme&&n.theme in gi&&(e=at({},Si),t=at(e.themeVariables||{},n.themeVariables),i.theme)&&i.theme in gi&&(i.themeVariables=gi[i.theme].getThemeVariables(t)),ji(Ci=i),Ci},"updateCurrentConfig"),Ei=mt(e=>(Ti=at({},ki),Ti=at(Ti,e),e.theme&&gi[e.theme]&&(Ti.themeVariables=gi[e.theme].getThemeVariables(e.themeVariables)),Ai(Ti,_i),Ti),"setSiteConfig"),$i=mt(e=>{Si=at({},e)},"saveConfigFromInitialize"),Li=mt(e=>(Ti=at(Ti,e),Ai(Ti,_i),Ti),"updateSiteConfig"),Ri=mt(()=>at({},Ti),"getSiteConfig"),Mi=mt(e=>(ji(e),at(Ci,e),Ii()),"setConfig"),Ii=mt(()=>at({},Ci),"getConfig"),Ni=mt(t=>{t&&(["secure",...Ti.secure??[]].forEach(e=>{Object.hasOwn(t,e)&&(I.debug("Denied attempt to modify a secure key "+e,t[e]),delete t[e])}),Object.keys(t).forEach(e=>{e.startsWith("__")&&delete t[e]}),Object.keys(t).forEach(e=>{"string"==typeof t[e]&&(t[e].includes("<")||t[e].includes(">")||t[e].includes("url(data:"))&&delete t[e],"object"==typeof t[e]&&Ni(t[e])}))},"sanitize"),Di=mt(e=>{xi(e),e.fontFamily&&!e.themeVariables?.fontFamily&&(e.themeVariables={...e.themeVariables,fontFamily:e.fontFamily}),_i.push(e),Ai(Ti,_i)},"addDirective"),Oi=mt((e=Ti)=>{Ai(e,_i=[])},"reset"),Pi={LAZY_LOAD_DEPRECATED:"The configuration options lazyLoadedDiagrams and loadExternalDiagramsAtStartup are deprecated. Please use registerExternalDiagrams instead."},Bi={},Fi=mt(e=>{Bi[e]||(I.warn(Pi[e]),Bi[e]=!0)},"issueWarning"),ji=mt(e=>{e&&(e.lazyLoadedDiagrams||e.loadExternalDiagramsAtStartup)&&Fi("LAZY_LOAD_DEPRECATED")},"checkConfig")});function In(r){return function(e){e instanceof RegExp&&(e.lastIndex=0);for(var t=arguments.length,i=new Array(1<t?t-1:0),n=1;n<t;n++)i[n-1]=arguments[n];return Gn(r,e,i)}}function Nn(n){return function(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];return Yn(n,t)}}function Dn(t,i){var n,r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:er;zn&&zn(t,null);let s=i.length;for(;s--;){let e=i[s];"string"==typeof e&&(n=r(e))!==e&&(Hn(i)||(i[s]=n),e=n),t[e]=!0}return t}function On(t){for(let e=0;e<t.length;e++)ar(t,e)||(t[e]=null);return t}function Pn(e){var t,i,n=Vn(null);for([t,i]of jn(e))ar(e,t)&&(Array.isArray(i)?n[t]=On(i):i&&"object"==typeof i&&i.constructor===Object?n[t]=Pn(i):n[t]=i);return n}function Bn(e,t){for(;null!==e;){var i=qn(e,t);if(i){if(i.get)return In(i.get);if("function"==typeof i.value)return In(i.value)}e=Un(e)}function n(){return null}return mt(n,"fallbackValue"),n}function Fn(){let e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:Mr(),u=mt(e=>Fn(e),"DOMPurify");if(u.version="3.2.5",u.removed=[],!e||!e.document||e.document.nodeType!==Rr.document||!e.Element)return u.isSupported=!1,u;let r=e["document"],c=r,D=c.currentScript,{DocumentFragment:O,HTMLTemplateElement:P,Node:B,Element:F,NodeFilter:t,NamedNodeMap:j=e.NamedNodeMap||e.MozNamedAttrMap,HTMLFormElement:z,DOMParser:H,trustedTypes:d}=e,i=F.prototype,U=Bn(i,"cloneNode"),q=Bn(i,"remove"),W=Bn(i,"nextSibling"),V=Bn(i,"childNodes"),a=Bn(i,"parentNode");var G;"function"==typeof P&&(G=r.createElement("template")).content&&G.content.ownerDocument&&(r=G.content.ownerDocument);let p,h="",{implementation:Y,createNodeIterator:X,createDocumentFragment:K,getElementsByTagName:Z}=r,Q=c["importNode"],g=Nr(),{MUSTACHE_EXPR:J,ERB_EXPR:ee,TMPLIT_EXPR:te,DATA_ATTR:ie,ARIA_ATTR:ne,IS_SCRIPT_OR_DATA:re,ATTR_WHITESPACE:se,CUSTOM_ELEMENT:ae}=(u.isSupported="function"==typeof jn&&"function"==typeof a&&Y&&void 0!==Y.createHTMLDocument,Lr),oe=Lr["IS_ALLOWED_URI"],f=null,le=Dn({},[...cr,...hr,...ur,...pr,...fr]),m=null,ce=Dn({},[...mr,...yr,...br,...vr]),o=Object.seal(Vn(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}})),y=null,he=null,ue=!0,de=!0,pe=!1,ge=!0,b=!1,fe=!0,v=!1,me=!1,ye=!1,x=!1,w=!1,k=!1,be=!0,ve=!1,xe=!0,T=!1,n,l=null,we=Dn({},["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"]),ke=null,Te=Dn({},["audio","video","img","source","image","track"]),Se=null,_e=Dn({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),s="http://www.w3.org/1998/Math/MathML",S="http://www.w3.org/2000/svg",_="http://www.w3.org/1999/xhtml",C=_,Ce=!1,Ae=null,Ee=Dn({},[s,S,_],tr),A=Dn({},["mi","mo","mn","ms","mtext"]),E=Dn({},["annotation-xml"]),$e=Dn({},["title","style","font","a","script"]),$=null,Le=["application/xhtml+xml","text/html"],L=null,R=null,Re=r.createElement("form"),Me=mt(function(e){return e instanceof RegExp||e instanceof Function},"isRegexOrFunction"),Ie=mt(function(){let e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};if(!R||R!==e){if(e=Pn(e=e&&"object"==typeof e?e:{}),$=-1===Le.indexOf(e.PARSER_MEDIA_TYPE)?"text/html":e.PARSER_MEDIA_TYPE,L="application/xhtml+xml"===$?tr:er,f=ar(e,"ALLOWED_TAGS")?Dn({},e.ALLOWED_TAGS,L):le,m=ar(e,"ALLOWED_ATTR")?Dn({},e.ALLOWED_ATTR,L):ce,Ae=ar(e,"ALLOWED_NAMESPACES")?Dn({},e.ALLOWED_NAMESPACES,tr):Ee,Se=ar(e,"ADD_URI_SAFE_ATTR")?Dn(Pn(_e),e.ADD_URI_SAFE_ATTR,L):_e,ke=ar(e,"ADD_DATA_URI_TAGS")?Dn(Pn(Te),e.ADD_DATA_URI_TAGS,L):Te,l=ar(e,"FORBID_CONTENTS")?Dn({},e.FORBID_CONTENTS,L):we,y=ar(e,"FORBID_TAGS")?Dn({},e.FORBID_TAGS,L):{},he=ar(e,"FORBID_ATTR")?Dn({},e.FORBID_ATTR,L):{},n=!!ar(e,"USE_PROFILES")&&e.USE_PROFILES,ue=!1!==e.ALLOW_ARIA_ATTR,de=!1!==e.ALLOW_DATA_ATTR,pe=e.ALLOW_UNKNOWN_PROTOCOLS||!1,ge=!1!==e.ALLOW_SELF_CLOSE_IN_ATTR,b=e.SAFE_FOR_TEMPLATES||!1,fe=!1!==e.SAFE_FOR_XML,v=e.WHOLE_DOCUMENT||!1,x=e.RETURN_DOM||!1,w=e.RETURN_DOM_FRAGMENT||!1,k=e.RETURN_TRUSTED_TYPE||!1,ye=e.FORCE_BODY||!1,be=!1!==e.SANITIZE_DOM,ve=e.SANITIZE_NAMED_PROPS||!1,xe=!1!==e.KEEP_CONTENT,T=e.IN_PLACE||!1,oe=e.ALLOWED_URI_REGEXP||_r,C=e.NAMESPACE||_,A=e.MATHML_TEXT_INTEGRATION_POINTS||A,E=e.HTML_INTEGRATION_POINTS||E,o=e.CUSTOM_ELEMENT_HANDLING||{},e.CUSTOM_ELEMENT_HANDLING&&Me(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(o.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&Me(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(o.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(o.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),b&&(de=!1),w&&(x=!0),n&&(f=Dn({},fr),m=[],!0===n.html&&(Dn(f,cr),Dn(m,mr)),!0===n.svg&&(Dn(f,hr),Dn(m,yr),Dn(m,vr)),!0===n.svgFilters&&(Dn(f,ur),Dn(m,yr),Dn(m,vr)),!0===n.mathMl)&&(Dn(f,pr),Dn(m,br),Dn(m,vr)),e.ADD_TAGS&&Dn(f=f===le?Pn(f):f,e.ADD_TAGS,L),e.ADD_ATTR&&Dn(m=m===ce?Pn(m):m,e.ADD_ATTR,L),e.ADD_URI_SAFE_ATTR&&Dn(Se,e.ADD_URI_SAFE_ATTR,L),e.FORBID_CONTENTS&&Dn(l=l===we?Pn(l):l,e.FORBID_CONTENTS,L),xe&&(f["#text"]=!0),v&&Dn(f,["html","head","body"]),f.table&&(Dn(f,["tbody"]),delete y.tbody),e.TRUSTED_TYPES_POLICY){if("function"!=typeof e.TRUSTED_TYPES_POLICY.createHTML)throw lr('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof e.TRUSTED_TYPES_POLICY.createScriptURL)throw lr('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');p=e.TRUSTED_TYPES_POLICY,h=p.createHTML("")}else null!==(p=void 0===p?Ir(d,D):p)&&"string"==typeof h&&(h=p.createHTML(""));Wn&&Wn(e),R=e}},"_parseConfig"),Ne=Dn({},[...hr,...ur,...dr]),De=Dn({},[...pr,...gr]),Oe=mt(function(e){let t=a(e);t&&t.tagName||(t={namespaceURI:C,tagName:"template"});var i=er(e.tagName),n=er(t.tagName);return!!Ae[e.namespaceURI]&&(e.namespaceURI===S?t.namespaceURI===_?"svg"===i:t.namespaceURI===s?"svg"===i&&("annotation-xml"===n||A[n]):!!Ne[i]:e.namespaceURI===s?t.namespaceURI===_?"math"===i:t.namespaceURI===S?"math"===i&&E[n]:!!De[i]:e.namespaceURI===_?!(t.namespaceURI===S&&!E[n]||t.namespaceURI===s&&!A[n]||De[i])&&($e[i]||!Ne[i]):!("application/xhtml+xml"!==$||!Ae[e.namespaceURI]))},"_checkValidNamespace"),M=mt(function(e){Qn(u.removed,{element:e});try{a(e).removeChild(e)}catch{q(e)}},"_forceRemove"),I=mt(function(e,t){try{Qn(u.removed,{attribute:t.getAttributeNode(e),from:t})}catch{Qn(u.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e)if(x||w)try{M(t)}catch{}else try{t.setAttribute(e,"")}catch{}},"_removeAttribute"),Pe=mt(function(e){let t=null,i=null;ye?e="<remove></remove>"+e:(n=ir(e,/^[\r\n\t ]+/),i=n&&n[0]),"application/xhtml+xml"===$&&C===_&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");var n=p?p.createHTML(e):e;if(C===_)try{t=(new H).parseFromString(n,$)}catch{}if(!t||!t.documentElement){t=Y.createDocument(C,"template",null);try{t.documentElement.innerHTML=Ce?h:n}catch{}}n=t.body||t.documentElement;return e&&i&&n.insertBefore(r.createTextNode(i),n.childNodes[0]||null),C===_?Z.call(t,v?"html":"body")[0]:v?t.documentElement:n},"_initDocument"),Be=mt(function(e){return X.call(e.ownerDocument||e,e,t.SHOW_ELEMENT|t.SHOW_COMMENT|t.SHOW_TEXT|t.SHOW_PROCESSING_INSTRUCTION|t.SHOW_CDATA_SECTION,null)},"_createNodeIterator"),Fe=mt(function(e){return e instanceof z&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||!(e.attributes instanceof j)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore||"function"!=typeof e.hasChildNodes)},"_isClobbered"),je=mt(function(e){return"function"==typeof B&&e instanceof B},"_isNode");function N(e,t,i){Xn(e,e=>{e.call(u,t,i,R)})}mt(N,"_executeHooks");let ze=mt(function(t){let i=null;if(N(g.beforeSanitizeElements,t,null),!Fe(t)){var e=L(t.nodeName);if(N(g.uponSanitizeElement,t,{tagName:e,allowedTags:f}),!(t.hasChildNodes()&&!je(t.firstElementChild)&&or(/<[/\w!]/g,t.innerHTML)&&or(/<[/\w!]/g,t.textContent)||t.nodeType===Rr.progressingInstruction||fe&&t.nodeType===Rr.comment&&or(/<[/\w]/g,t.data))){if(f[e]&&!y[e])return t instanceof F&&!Oe(t)||("noscript"===e||"noembed"===e||"noframes"===e)&&or(/<\/no(script|embed|frames)/i,t.innerHTML)?(M(t),!0):(b&&t.nodeType===Rr.text&&(i=t.textContent,Xn([J,ee,te],e=>{i=nr(i,e," ")}),t.textContent!==i)&&(Qn(u.removed,{element:t.cloneNode()}),t.textContent=i),N(g.afterSanitizeElements,t,null),!1);if(!y[e]&&Ue(e)&&(o.tagNameCheck instanceof RegExp&&or(o.tagNameCheck,e)||o.tagNameCheck instanceof Function&&o.tagNameCheck(e)))return!1;if(xe&&!l[e]){var n=a(t)||t.parentNode,r=V(t)||t.childNodes;if(r&&n)for(let e=r.length-1;0<=e;--e){var s=U(r[e],!0);s.__removalCount=(t.__removalCount||0)+1,n.insertBefore(s,W(t))}}}}return M(t),!0},"_sanitizeElements"),He=mt(function(e,t,i){if(be&&("id"===t||"name"===t)&&(i in r||i in Re))return!1;if((!de||he[t]||!or(ie,t))&&(!ue||!or(ne,t)))if(!m[t]||he[t]){if(!(Ue(e)&&(o.tagNameCheck instanceof RegExp&&or(o.tagNameCheck,e)||o.tagNameCheck instanceof Function&&o.tagNameCheck(e))&&(o.attributeNameCheck instanceof RegExp&&or(o.attributeNameCheck,t)||o.attributeNameCheck instanceof Function&&o.attributeNameCheck(t))||"is"===t&&o.allowCustomizedBuiltInElements&&(o.tagNameCheck instanceof RegExp&&or(o.tagNameCheck,i)||o.tagNameCheck instanceof Function&&o.tagNameCheck(i))))return!1}else if(!Se[t]&&!or(oe,nr(i,se,""))&&("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==rr(i,"data:")||!ke[e])&&(!pe||or(re,nr(i,se,"")))&&i)return!1;return!0},"_isValidAttribute"),Ue=mt(function(e){return"annotation-xml"!==e&&ir(e,ae)},"_isBasicCustomElement"),qe=mt(function(l){N(g.beforeSanitizeAttributes,l,null);var c=l["attributes"];if(c&&!Fe(l)){let a={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:m,forceKeepAttr:void 0},o=c.length;for(;o--;){let e=c[o],{name:t,namespaceURI:i,value:n}=e,r=L(t),s="value"===t?n:sr(n);if(a.attrName=r,a.attrValue=s,a.keepAttr=!0,a.forceKeepAttr=void 0,N(g.uponSanitizeAttribute,l,a),s=a.attrValue,!ve||"id"!==r&&"name"!==r||(I(t,l),s="user-content-"+s),fe&&or(/((--!?|])>)|<\/(style|title)/i,s))I(t,l);else if(!a.forceKeepAttr&&(I(t,l),a.keepAttr))if(!ge&&or(/\/>/i,s))I(t,l);else{b&&Xn([J,ee,te],e=>{s=nr(s,e," ")});var h=L(l.nodeName);if(He(h,r,s)){if(p&&"object"==typeof d&&"function"==typeof d.getAttributeType&&!i)switch(d.getAttributeType(h,r)){case"TrustedHTML":s=p.createHTML(s);break;case"TrustedScriptURL":s=p.createScriptURL(s)}try{i?l.setAttributeNS(i,t,s):l.setAttribute(t,s),Fe(l)?M(l):Zn(u.removed)}catch{}}}}N(g.afterSanitizeAttributes,l,null)}},"_sanitizeAttributes"),We=mt(function e(t){var i,n=Be(t);for(N(g.beforeSanitizeShadowDOM,t,null);i=n.nextNode();)N(g.uponSanitizeShadowNode,i,null),ze(i),qe(i),i.content instanceof O&&e(i.content);N(g.afterSanitizeShadowDOM,t,null)},"_sanitizeShadowDOM");return u.sanitize=function(e){let t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},i=null,n,r,s=null;if("string"!=typeof(e=(Ce=!e)?"\x3c!--\x3e":e)&&!je(e)){if("function"!=typeof e.toString)throw lr("toString is not a function");if("string"!=typeof(e=e.toString()))throw lr("dirty is not a string, aborting")}if(!u.isSupported)return e;if(me||Ie(t),u.removed=[],T="string"==typeof e?!1:T){if(e.nodeName){var a=L(e.nodeName);if(!f[a]||y[a])throw lr("root node is forbidden and cannot be sanitized in-place")}}else if(e instanceof B)(n=(i=Pe("\x3c!----\x3e")).ownerDocument.importNode(e,!0)).nodeType===Rr.element&&"BODY"===n.nodeName||"HTML"===n.nodeName?i=n:i.appendChild(n);else{if(!x&&!b&&!v&&-1===e.indexOf("<"))return p&&k?p.createHTML(e):e;if(!(i=Pe(e)))return x?null:k?h:""}i&&ye&&M(i.firstChild);for(var o=Be(T?e:i);r=o.nextNode();)ze(r),qe(r),r.content instanceof O&&We(r.content);if(T)return e;if(x){if(w)for(s=K.call(i.ownerDocument);i.firstChild;)s.appendChild(i.firstChild);else s=i;return s=m.shadowroot||m.shadowrootmode?Q.call(c,s,!0):s}let l=v?i.outerHTML:i.innerHTML;return v&&f["!doctype"]&&i.ownerDocument&&i.ownerDocument.doctype&&i.ownerDocument.doctype.name&&or(Er,i.ownerDocument.doctype.name)&&(l="<!DOCTYPE "+i.ownerDocument.doctype.name+`>
|
||
`+l),b&&Xn([J,ee,te],e=>{l=nr(l,e," ")}),p&&k?p.createHTML(l):l},u.setConfig=function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};Ie(e),me=!0},u.clearConfig=function(){R=null,me=!1},u.isValidAttribute=function(e,t,i){R||Ie({});e=L(e),t=L(t);return He(e,t,i)},u.addHook=function(e,t){"function"==typeof t&&Qn(g[e],t)},u.removeHook=function(e,t){return void 0!==t?-1===(t=Kn(g[e],t))?void 0:Jn(g[e],t,1)[0]:Zn(g[e])},u.removeHooks=function(e){g[e]=[]},u.removeAllHooks=function(){g=Nr()},u}var jn,zn,Hn,Un,qn,Wn,Vn,Gn,Yn,Xn,Kn,Zn,Qn,Jn,er,tr,ir,nr,rr,sr,ar,or,lr,cr,hr,ur,dr,pr,gr,fr,mr,yr,br,vr,xr,wr,kr,Tr,Sr,_r,Cr,Ar,Er,$r,Lr,Rr,Mr,Ir,Nr,Dr,Or=e(()=>{"use strict";({entries:jn,setPrototypeOf:zn,isFrozen:Hn,getPrototypeOf:Un,getOwnPropertyDescriptor:qn}=Object),{freeze:Wn,seal:$r,create:Vn}=Object,{apply:Gn,construct:Yn}=typeof Reflect<"u"&&Reflect,Wn=Wn||mt(function(e){return e},"freeze"),$r=$r||mt(function(e){return e},"seal"),Gn=Gn||mt(function(e,t,i){return e.apply(t,i)},"apply"),Yn=Yn||mt(function(e,t){return new e(...t)},"construct"),Xn=In(Array.prototype.forEach),Kn=In(Array.prototype.lastIndexOf),Zn=In(Array.prototype.pop),Qn=In(Array.prototype.push),Jn=In(Array.prototype.splice),er=In(String.prototype.toLowerCase),tr=In(String.prototype.toString),ir=In(String.prototype.match),nr=In(String.prototype.replace),rr=In(String.prototype.indexOf),sr=In(String.prototype.trim),ar=In(Object.prototype.hasOwnProperty),or=In(RegExp.prototype.test),lr=Nn(TypeError),mt(In,"unapply"),mt(Nn,"unconstruct"),mt(Dn,"addToSet"),mt(On,"cleanArray"),mt(Pn,"clone"),mt(Bn,"lookupGetter"),cr=Wn(["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"]),hr=Wn(["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"]),ur=Wn(["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"]),dr=Wn(["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"]),pr=Wn(["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"]),gr=Wn(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),fr=Wn(["#text"]),mr=Wn(["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"]),yr=Wn(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),br=Wn(["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"]),vr=Wn(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),xr=$r(/\{\{[\w\W]*|[\w\W]*\}\}/gm),wr=$r(/<%[\w\W]*|[\w\W]*%>/gm),kr=$r(/\$\{[\w\W]*/gm),Tr=$r(/^data-[\-\w.\u00B7-\uFFFF]+$/),Sr=$r(/^aria-[\-\w]+$/),_r=$r(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Cr=$r(/^(?:\w+script|data):/i),Ar=$r(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Er=$r(/^html$/i),$r=$r(/^[a-z][.\w]*(-[.\w]+)+$/i),Lr=Object.freeze({__proto__:null,ARIA_ATTR:Sr,ATTR_WHITESPACE:Ar,CUSTOM_ELEMENT:$r,DATA_ATTR:Tr,DOCTYPE_NAME:Er,ERB_EXPR:wr,IS_ALLOWED_URI:_r,IS_SCRIPT_OR_DATA:Cr,MUSTACHE_EXPR:xr,TMPLIT_EXPR:kr}),Rr={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,progressingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},Mr=mt(function(){return"u"<typeof window?null:window},"getGlobal"),Ir=mt(function(e,t){if("object"!=typeof e||"function"!=typeof e.createPolicy)return null;let i=null,n="data-tt-policy-suffix";t="dompurify"+((i=t&&t.hasAttribute(n)?t.getAttribute(n):i)?"#"+i:"");try{return e.createPolicy(t,{createHTML(e){return e},createScriptURL(e){return e}})}catch{return console.warn("TrustedTypes policy "+t+" could not be created."),null}},"_createTrustedTypesPolicy"),Nr=mt(function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},"_createHooksMap"),mt(Fn,"createDOMPurify"),Dr=Fn()}),Pr={};function Br(e){return String(e).replace(bs,e=>ys[e])}function Fr(e){if(e.default)return e.default;e=e.type,e=Array.isArray(e)?e[0]:e;if("string"!=typeof e)return e.enum[0];switch(e){case"boolean":return!1;case"string":return"";case"number":return 0;case"object":return{}}}function jr(e){for(var t=0;t<Ms.length;t++)for(var i=Ms[t],n=0;n<i.blocks.length;n++){var r=i.blocks[n];if(e>=r[0]&&e<=r[1])return i.name}return null}function zr(e){for(var t=0;t<Is.length;t+=2)if(Is[t]<=e&&e<=Is[t+1])return!0;return!1}function Hr(e,t){Vs[e]=t}function Ur(e,t,i){if(!Vs[t])throw new Error("Font metrics not found for font: "+t+".");var n=e.charCodeAt(0),r=Vs[t][n];if(!r&&e[0]in Ys&&(n=Ys[e[0]].charCodeAt(0),r=Vs[t][n]),r=!r&&"text"===i&&zr(n)?Vs[t][77]:r)return{depth:r[0],height:r[1],italic:r[2],skew:r[3],width:r[4]}}function qr(e){var t=5<=e?0:3<=e?1:2;if(!Xs[t]){var i,n=Xs[t]={cssEmPerMu:Gs.quad[t]/18};for(i in Gs)Gs.hasOwnProperty(i)&&(n[i]=Gs[i][t])}return Xs[t]}function Wr(e){if(e instanceof pa)return e;throw new Error("Expected symbolNode but got "+String(e)+".")}function Vr(e){if(e instanceof ca)return e;throw new Error("Expected span<HtmlDomNode> but got "+String(e)+".")}function o(e,t,i,n,r,s){va[e][r]={font:t,group:i,replace:n},s&&n&&(va[e][n]=va[e][r])}function l(e){for(var{type:e,names:t,props:i,handler:n,htmlBuilder:r,mathmlBuilder:s}=e,a={type:e,numArgs:i.numArgs,argTypes:i.argTypes,allowedInArgument:!!i.allowedInArgument,allowedInText:!!i.allowedInText,allowedInMath:void 0===i.allowedInMath||i.allowedInMath,numOptionalArgs:i.numOptionalArgs||0,infix:!!i.infix,primitive:!!i.primitive,handler:n},o=0;o<t.length;++o)io[t[o]]=a;e&&(r&&(no[e]=r),s)&&(ro[e]=s)}function Gr(e){var{type:e,htmlBuilder:t,mathmlBuilder:i}=e;l({type:e,names:[],props:{numArgs:0},handler(){throw new Error("Should never be called.")},htmlBuilder:t,mathmlBuilder:i})}function Yr(e,t){e=oo(["base"],e,t),t=oo(["strut"]);return t.style.height=K(e.height+e.depth),e.depth&&(t.style.verticalAlign=K(-e.depth)),e.children.unshift(t),e}function Xr(e,t){var i,n=null,r=(1===e.length&&"tag"===e[0].type&&(n=e[0].tag,e=e[0].body),po(e,t,"root"));2===r.length&&r[1].hasClass("tag")&&(i=r.pop());for(var s,a=[],o=[],l=0;l<r.length;l++)if(o.push(r[l]),r[l].hasClass("mbin")||r[l].hasClass("mrel")||r[l].hasClass("allowbreak")){for(var c=!1;l<r.length-1&&r[l+1].hasClass("mspace")&&!r[l+1].hasClass("newline");)l++,o.push(r[l]),r[l].hasClass("nobreak")&&(c=!0);c||(a.push(Yr(o,t)),o=[])}else r[l].hasClass("newline")&&(o.pop(),0<o.length&&(a.push(Yr(o,t)),o=[]),a.push(r[l]));0<o.length&&a.push(Yr(o,t)),n?((s=Yr(po(n,t,!0))).classes=["tag"],a.push(s)):i&&a.push(i);e=oo(["katex-html"],a);return e.setAttribute("aria-hidden","true"),s&&((n=s.children[0]).style.height=K(e.height+e.depth),e.depth)&&(n.style.verticalAlign=K(-e.depth)),e}function Kr(e){return new Ws(e)}function Zr(e){var t;return!!e&&("mi"===e.type&&1===e.children.length?(t=e.children[0])instanceof wo&&"."===t.text:"mo"===e.type&&1===e.children.length&&"true"===e.getAttribute("separator")&&"0em"===e.getAttribute("lspace")&&"0em"===e.getAttribute("rspace")&&(t=e.children[0])instanceof wo&&","===t.text)}function Qr(e,t,i,n,r){e=_o(e,i),i=1===e.length&&e[0]instanceof xo&&ws.contains(["mrow","mtable"],e[0].type)?e[0]:new S.MathNode("mrow",e),e=new S.MathNode("annotation",[new S.TextNode(t)]),e.setAttribute("encoding","application/x-tex"),t=new S.MathNode("semantics",[i,e]),i=new S.MathNode("math",[t]);return i.setAttribute("xmlns","http://www.w3.org/1998/Math/MathML"),n&&i.setAttribute("display","block"),Z.makeSpan([r?"katex":"katex-mathml"],[i])}function Jr(e,t){if(e&&e.type===t)return e;throw new Error("Expected node of type "+t+", but got "+(e?"node of type "+e.type:String(e)))}function es(e){var t=ts(e);if(t)return t;throw new Error("Expected node of symbol group type, but got "+(e?"node of type "+e.type:String(e)))}function ts(e){return e&&("atom"===e.type||ba.hasOwnProperty(e.type))?e:null}function is(e,t){var i=po(e.body,t,!0);return Fo([e.mclass],i,t)}function ns(e,t){var i,t=_o(e.body,t);return"minner"===e.mclass?i=new S.MathNode("mpadded",t):"mord"===e.mclass?e.isCharacterBox?(i=t[0]).type="mi":i=new S.MathNode("mi",t):(e.isCharacterBox?(i=t[0]).type="mo":i=new S.MathNode("mo",t),"mbin"===e.mclass?(i.attributes.lspace="0.22em",i.attributes.rspace="0.22em"):"mpunct"===e.mclass?(i.attributes.lspace="0em",i.attributes.rspace="0.17em"):"mopen"===e.mclass||"mclose"===e.mclass?(i.attributes.lspace="0em",i.attributes.rspace="0em"):"minner"===e.mclass&&(i.attributes.lspace="0.0556em",i.attributes.width="+0.1111em")),i}function rs(e,t,i){var n=zo[e];switch(n){case"\\\\cdrightarrow":case"\\\\cdleftarrow":return i.callFunction(n,[t[0]],[t[1]]);case"\\uparrow":case"\\downarrow":var r=i.callFunction("\\\\cdleft",[t[0]],[]),s=i.callFunction("\\Big",[{type:"atom",text:n,mode:"math",family:"rel"}],[]),a=i.callFunction("\\\\cdright",[t[1]],[]);return i.callFunction("\\\\cdparent",[{type:"ordgroup",mode:"math",body:[r,s,a]}],[]);case"\\\\cdlongequal":return i.callFunction("\\\\cdlongequal",[],[]);case"\\Vert":return i.callFunction("\\Big",[{type:"textord",text:"\\Vert",mode:"math"}],[]);default:return{type:"textord",text:" ",mode:"math"}}}function ss(e){var t=[];for(e.gullet.beginGroup(),e.gullet.macros.set("\\cr","\\\\\\relax"),e.gullet.beginGroup();;){t.push(e.parseExpression(!1,"\\\\")),e.gullet.endGroup(),e.gullet.beginGroup();var i=e.fetch().text;if("&"!==i&&"\\\\"!==i){if("\\end"!==i)throw new X("Expected \\\\ or \\cr or \\end",e.nextToken);0===t[t.length-1].length&&t.pop();break}e.consume()}for(var n=[],r=[n],s=0;s<t.length;s++){for(var a=t[s],o=Ho(),l=0;l<a.length;l++)if(Uo(a[l])){n.push(o);var c=es(a[l+=1]).text,h=new Array(2);if(h[0]={type:"ordgroup",mode:"math",body:[]},h[1]={type:"ordgroup",mode:"math",body:[]},!(-1<"=|.".indexOf(c))){if(!(-1<"<>AV".indexOf(c)))throw new X('Expected one of "<>AV=|." after @',a[l]);for(var u=0;u<2;u++){for(var d=!0,p=l+1;p<a.length;p++){if(qo(a[p],c)){d=!1,l=p;break}if(Uo(a[p]))throw new X("Missing a "+c+" character to complete a CD arrow.",a[p]);h[u].body.push(a[p])}if(d)throw new X("Missing a "+c+" character to complete a CD arrow.",a[l])}}var g=rs(c,h,e);n.push({type:"styling",body:[g],mode:"math",style:"display"}),o=Ho()}else o.body.push(a[l]);s%2==0?n.push(o):n.shift(),r.push(n=[])}return e.gullet.endGroup(),e.gullet.endGroup(),{type:"array",mode:"math",body:r,arraystretch:1,addJot:!0,rowGaps:[null],cols:new Array(r[0].length).fill({type:"align",align:"c",pregap:.25,postgap:.25}),colSeparationType:"CD",hLinesBeforeRow:new Array(r.length+1).fill([])}}function as(e,t){var i=ts(e);if(i&&ws.contains(xl,i.text))return i;throw new X(i?"Invalid delimiter '"+i.text+"' after '"+t.funcName+"'":"Invalid delimiter type '"+e.type+"'",e)}function os(e){if(!e.body)throw new Error("Bug: The leftright ParseNode wasn't fully parsed.")}function ls(e){for(var{type:e,names:t,props:i,handler:n,htmlBuilder:r,mathmlBuilder:s}=e,a={type:e,numArgs:i.numArgs||0,allowedInText:!1,numOptionalArgs:0,handler:n},o=0;o<t.length;++o)wl[t[o]]=a;r&&(no[e]=r),s&&(ro[e]=s)}function h(e,t){kl[e]=t}function cs(e){var t=[],i=(e.consumeSpaces(),e.fetch().text);for("\\relax"===i&&(e.consume(),e.consumeSpaces(),i=e.fetch().text);"\\hline"===i||"\\hdashline"===i;)e.consume(),t.push("\\hdashline"===i),e.consumeSpaces(),i=e.fetch().text;return t}function hs(e){if(-1===e.indexOf("ed"))return-1===e.indexOf("*")}function us(e,t,i){var{hskipBeforeAndAfter:t,addJot:n,cols:r,arraystretch:s,colSeparationType:a,autoTag:o,singleRow:l,emptySingleRow:c,maxNumCols:h,leqno:u}=t;if(e.gullet.beginGroup(),l||e.gullet.macros.set("\\cr","\\\\\\relax"),!s){var d=e.gullet.expandMacroAsText("\\arraystretch");if(null==d)s=1;else if(!(s=parseFloat(d))||s<0)throw new X("Invalid \\arraystretch: "+d)}e.gullet.beginGroup();var p=[],g=[p],f=[],m=[],y=null!=o?[]:void 0;function b(){o&&e.gullet.macros.set("\\@eqnsw","1",!0)}function v(){y&&(e.gullet.macros.get("\\df@tag")?(y.push(e.subparse([new fs("\\df@tag")])),e.gullet.macros.set("\\df@tag",void 0,!0)):y.push(!!o&&"1"===e.gullet.macros.get("\\@eqnsw")))}for(mt(b,"beginRow"),mt(v,"endRow"),b(),m.push(cs(e));;){var x=e.parseExpression(!1,l?"\\end":"\\\\"),w=(e.gullet.endGroup(),e.gullet.beginGroup(),x={type:"ordgroup",mode:e.mode,body:x},i&&(x={type:"styling",mode:e.mode,style:i,body:[x]}),p.push(x),e.fetch().text);if("&"===w){if(h&&p.length===h){if(l||a)throw new X("Too many tab characters: &",e.nextToken);e.settings.reportNonstrict("textEnv","Too few columns specified in the {array} column argument.")}e.consume()}else{if("\\end"===w){v(),1===p.length&&"styling"===x.type&&0===x.body[0].body.length&&(1<g.length||!c)&&g.pop(),m.length<g.length+1&&m.push([]);break}if("\\\\"!==w)throw new X("Expected & or \\\\ or \\cr or \\end",e.nextToken);e.consume();x=void 0;" "!==e.gullet.future().text&&(x=e.parseSizeGroup(!0)),f.push(x?x.value:null),v(),m.push(cs(e)),g.push(p=[]),b()}}return e.gullet.endGroup(),e.gullet.endGroup(),{type:"array",mode:e.mode,addJot:n,arraystretch:s,body:g,cols:r,rowGaps:f,hskipBeforeAndAfter:t,hLinesBeforeRow:m,colSeparationType:a,tags:y,leqno:u}}function ds(e){return"d"===e.slice(0,1)?"display":"text"}function ps(e,t,i){for(var n=po(e,t,!1),r=t.sizeMultiplier/i.sizeMultiplier,s=0;s<n.length;s++){var a=n[s].classes.indexOf("sizing");a<0?Array.prototype.push.apply(n[s].classes,t.sizingClasses(i)):n[s].classes[a+1]==="reset-size"+t.size&&(n[s].classes[a+1]="reset-size"+i.size),n[s].height*=r,n[s].depth*=r}return Z.makeFragment(n)}V(Pr,{ParseError:()=>X,SETTINGS_SCHEMA:()=>ks,__defineFunction:()=>l,__defineMacro:()=>h,__defineSymbol:()=>o,__domTree:()=>Ec,__parse:()=>Tc,__renderToDomTree:()=>_c,__renderToHTMLTree:()=>Cc,__setFontMetrics:()=>Hr,default:()=>$c,render:()=>wc,renderToString:()=>kc,version:()=>Ac});var gs,fs,X,ms,ys,bs,vs,xs,ws,ks,Ts,Ss,_s,Cs,As,Es,$s,Ls,Rs,Ms,Is,Ns,Ds,Os,Ps,Bs,Fs,js,zs,Hs,Us,qs,Ws,Vs,Gs,Ys,Xs,Ks,Zs,Qs,Js,ea,ta,ia,na,K,ra,sa,aa,oa,la,ca,ha,ua,da,pa,ga,fa,ma,ya,ba,va,u,d,p,xa,g,wa,ka,Ta,Sa,_a,Ca,Aa,Ea,$a,La,Ra,Ma,Ia,Na,Da,Oa,Pa,Ba,Fa,ja,za,Ha,Ua,qa,Wa,Va,Ga,Ya,Xa,Ka,Za,Qa,Ja,Z,eo,to,io,no,ro,so,ao,oo,lo,co,ho,uo,po,go,fo,mo,yo,bo,vo,xo,wo,S,ko,To,So,_o,Co,Ao,Eo,$o,Lo,Ro,Mo,Io,No,Do,Oo,Po,Bo,Fo,jo,zo,Ho,Uo,qo,Wo,Vo,Go,Yo,Xo,Ko,Zo,Qo,Jo,el,tl,il,nl,rl,sl,al,ol,ll,cl,hl,ul,dl,pl,gl,fl,ml,yl,bl,vl,xl,wl,kl,Tl,Sl,_l,Cl,f,Al,El,$l,Ll,Rl,Ml,Il,m,Nl,Dl,Ol,Pl,Bl,Fl,jl,zl,Hl,Ul,ql,Wl,Vl,Gl,Yl,Xl,Kl,Zl,Ql,Jl,ec,tc,ic,nc,rc,sc,ac,oc,lc,cc,hc,uc,y,dc,pc,gc,fc,mc,yc,bc,vc,xc,wc,kc,Tc,Sc,_c,Cc,Ac,Ec,$c,Lc=e(()=>{"use strict";for(gs=class i{static{mt(this,"SourceLocation")}constructor(e,t,i){this.lexer=void 0,this.start=void 0,this.end=void 0,this.lexer=e,this.start=t,this.end=i}static range(e,t){return t?e&&e.loc&&t.loc&&e.loc.lexer===t.loc.lexer?new i(e.loc.lexer,e.loc.start,t.loc.end):null:e&&e.loc}},fs=class n{static{mt(this,"Token")}constructor(e,t){this.text=void 0,this.loc=void 0,this.noexpand=void 0,this.treatAsRelax=void 0,this.text=e,this.loc=t}range(e,t){return new n(t,gs.range(this,e))}},(X=class a{static{mt(this,"ParseError")}constructor(e,t){this.name=void 0,this.position=void 0,this.length=void 0,this.rawMessage=void 0;var i,n,r,s="KaTeX parse error: "+e,t=t&&t.loc,t=(t&&t.start<=t.end&&(i=t.lexer.input,n=t.start,r=t.end,n===i.length?s+=" at end of input: ":s+=" at position "+(n+1)+": ",t=i.slice(n,r).replace(/[^]/g,"$&̲"),s+=(15<n?"…"+i.slice(n-15,n):i.slice(0,n))+t+(r+15<i.length?i.slice(r,r+15)+"…":i.slice(r))),new Error(s));return t.name="ParseError",t.__proto__=a.prototype,null!=(t.position=n)&&null!=r&&(t.length=r-n),t.rawMessage=e,t}}).prototype.__proto__=Error.prototype,Wl=mt(function(e,t){return-1!==e.indexOf(t)},"contains"),m=mt(function(e,t){return void 0===e?t:e},"deflt"),ms=/([A-Z])/g,Cl=mt(function(e){return e.replace(ms,"-$1").toLowerCase()},"hyphenate"),ys={"&":"&",">":">","<":"<",'"':""","'":"'"},bs=/[&><"']/g,mt(Br,"escape"),vs=mt(function e(t){return"ordgroup"===t.type||"color"===t.type?1===t.body.length?e(t.body[0]):t:"font"===t.type?e(t.body):t},"getBaseElem"),f=mt(function(e){e=vs(e);return"mathord"===e.type||"textord"===e.type||"atom"===e.type},"isCharacterBox"),xs=mt(function(e){if(e)return e;throw new Error("Expected non-null, but got "+String(e))},"assert"),Fl=mt(function(e){e=/^[\x00-\x20]*([^\\/#?]*?)(:|�*58|�*3a|&colon)/i.exec(e);return e?":"===e[2]&&/^[a-zA-Z][a-zA-Z0-9+\-.]*$/.test(e[1])?e[1].toLowerCase():null:"_relative"},"protocolFromUrl"),ws={contains:Wl,deflt:m,escape:Br,hyphenate:Cl,getBaseElem:vs,isCharacterBox:f,protocolFromUrl:Fl},ks={displayMode:{type:"boolean",description:"Render math in display mode, which puts the math in display style (so \\int and \\sum are large, for example), and centers the math on the page on its own line.",cli:"-d, --display-mode"},output:{type:{enum:["htmlAndMathml","html","mathml"]},description:"Determines the markup language of the output.",cli:"-F, --format <type>"},leqno:{type:"boolean",description:"Render display math in leqno style (left-justified tags)."},fleqn:{type:"boolean",description:"Render display math flush left."},throwOnError:{type:"boolean",default:!0,cli:"-t, --no-throw-on-error",cliDescription:"Render errors (in the color given by --error-color) instead of throwing a ParseError exception when encountering an error."},errorColor:{type:"string",default:"#cc0000",cli:"-c, --error-color <color>",cliDescription:"A color string given in the format 'rgb' or 'rrggbb' (no #). This option determines the color of errors rendered by the -t option.",cliProcessor:mt(e=>"#"+e,"cliProcessor")},macros:{type:"object",cli:"-m, --macro <def>",cliDescription:"Define custom macro of the form '\\foo:expansion' (use multiple -m arguments for multiple macros).",cliDefault:[],cliProcessor:mt((e,t)=>(t.push(e),t),"cliProcessor")},minRuleThickness:{type:"number",description:"Specifies a minimum thickness, in ems, for fraction lines, `\\sqrt` top lines, `{array}` vertical lines, `\\hline`, `\\hdashline`, `\\underline`, `\\overline`, and the borders of `\\fbox`, `\\boxed`, and `\\fcolorbox`.",processor:mt(e=>Math.max(0,e),"processor"),cli:"--min-rule-thickness <size>",cliProcessor:parseFloat},colorIsTextColor:{type:"boolean",description:"Makes \\color behave like LaTeX's 2-argument \\textcolor, instead of LaTeX's one-argument \\color mode change.",cli:"-b, --color-is-text-color"},strict:{type:[{enum:["warn","ignore","error"]},"boolean","function"],description:"Turn on strict / LaTeX faithfulness mode, which throws an error if the input uses features that are not supported by LaTeX.",cli:"-S, --strict",cliDefault:!1},trust:{type:["boolean","function"],description:"Trust the input, enabling all HTML features such as \\url.",cli:"-T, --trust"},maxSize:{type:"number",default:1/0,description:"If non-zero, all user-specified sizes, e.g. in \\rule{500em}{500em}, will be capped to maxSize ems. Otherwise, elements and spaces can be arbitrarily large",processor:mt(e=>Math.max(0,e),"processor"),cli:"-s, --max-size <n>",cliProcessor:parseInt},maxExpand:{type:"number",default:1e3,description:"Limit the number of macro expansions to the specified number, to prevent e.g. infinite macro loops. If set to Infinity, the macro expander will try to fully expand as in LaTeX.",processor:mt(e=>Math.max(0,e),"processor"),cli:"-e, --max-expand <n>",cliProcessor:mt(e=>"Infinity"===e?1/0:parseInt(e),"cliProcessor")},globalGroup:{type:"boolean",cli:!1}},mt(Fr,"getDefaultValue"),Ts=class{static{mt(this,"Settings")}constructor(e){for(var t in this.displayMode=void 0,this.output=void 0,this.leqno=void 0,this.fleqn=void 0,this.throwOnError=void 0,this.errorColor=void 0,this.macros=void 0,this.minRuleThickness=void 0,this.colorIsTextColor=void 0,this.strict=void 0,this.trust=void 0,this.maxSize=void 0,this.maxExpand=void 0,this.globalGroup=void 0,e=e||{},ks){var i;ks.hasOwnProperty(t)&&(i=ks[t],this[t]=void 0!==e[t]?i.processor?i.processor(e[t]):e[t]:Fr(i))}}reportNonstrict(e,t,i){var n=this.strict;if((n="function"==typeof n?n(e,t,i):n)&&"ignore"!==n){if(!0===n||"error"===n)throw new X("LaTeX-incompatible input and strict mode is set to 'error': "+t+" ["+e+"]",i);"warn"===n?typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+t+" ["+e+"]"):typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to unrecognized '"+n+"': "+t+" ["+e+"]")}}useStrictBehavior(e,t,i){var n=this.strict;if("function"==typeof n)try{n=n(e,t,i)}catch{n="error"}return!(!n||"ignore"===n||!0!==n&&"error"!==n&&("warn"===n?typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+t+" ["+e+"]"):typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to unrecognized '"+n+"': "+t+" ["+e+"]"),1))}isTrusted(e){if(e.url&&!e.protocol){var t=ws.protocolFromUrl(e.url);if(null==t)return!1;e.protocol=t}return!!("function"==typeof this.trust?this.trust(e):this.trust)}},Wl=class{static{mt(this,"Style")}constructor(e,t,i){this.id=void 0,this.size=void 0,this.cramped=void 0,this.id=e,this.size=t,this.cramped=i}sup(){return Ss[_s[this.id]]}sub(){return Ss[Cs[this.id]]}fracNum(){return Ss[As[this.id]]}fracDen(){return Ss[Es[this.id]]}cramp(){return Ss[$s[this.id]]}text(){return Ss[Ls[this.id]]}isTight(){return 2<=this.size}},Ss=[new Wl(0,0,!7),new Wl(1,0,!0),new Wl(2,1,!1),new Wl(3,1,!0),new Wl(4,2,!1),new Wl(5,2,!0),new Wl(6,3,!1),new Wl(7,3,!0)],_s=[4,5,4,5,6,7,6,7],Cs=[5,5,5,5,7,7,7,7],As=[2,3,4,5,6,7,6,7],Es=[3,3,5,5,7,7,7,7],$s=[1,1,3,3,5,5,7,7],Ls=[0,1,2,3,2,3,2,3],Rs={DISPLAY:Ss[0],TEXT:Ss[2],SCRIPT:Ss[4],SCRIPTSCRIPT:Ss[6]},Ms=[{name:"latin",blocks:[[256,591],[768,879]]},{name:"cyrillic",blocks:[[1024,1279]]},{name:"armenian",blocks:[[1328,1423]]},{name:"brahmic",blocks:[[2304,4255]]},{name:"georgian",blocks:[[4256,4351]]},{name:"cjk",blocks:[[12288,12543],[19968,40879],[65280,65376]]},{name:"hangul",blocks:[[44032,55215]]}],mt(jr,"scriptFromCodepoint"),Is=[],Ms.forEach(e=>e.blocks.forEach(e=>Is.push(...e))),mt(zr,"supportedCodepoint"),Ns=mt(function(e,t){return"M95,"+(622+e+t)+`
|
||
c-2.7,0,-7.17,-2.7,-13.5,-8c-5.8,-5.3,-9.5,-10,-9.5,-14
|
||
c0,-2,0.3,-3.3,1,-4c1.3,-2.7,23.83,-20.7,67.5,-54
|
||
c44.2,-33.3,65.8,-50.3,66.5,-51c1.3,-1.3,3,-2,5,-2c4.7,0,8.7,3.3,12,10
|
||
s173,378,173,378c0.7,0,35.3,-71,104,-213c68.7,-142,137.5,-285,206.5,-429
|
||
c69,-144,104.5,-217.7,106.5,-221
|
||
l`+e/2.075+" -"+e+`
|
||
c5.3,-9.3,12,-14,20,-14
|
||
H400000v`+(40+e)+`H845.2724
|
||
s-225.272,467,-225.272,467s-235,486,-235,486c-2.7,4.7,-9,7,-19,7
|
||
c-6,0,-10,-1,-12,-3s-194,-422,-194,-422s-65,47,-65,47z
|
||
M`+(834+e)+" "+t+"h400000v"+(40+e)+"h-400000z"},"sqrtMain"),Ds=mt(function(e,t){return"M263,"+(601+e+t)+`c0.7,0,18,39.7,52,119
|
||
c34,79.3,68.167,158.7,102.5,238c34.3,79.3,51.8,119.3,52.5,120
|
||
c340,-704.7,510.7,-1060.3,512,-1067
|
||
l`+e/2.084+" -"+e+`
|
||
c4.7,-7.3,11,-11,19,-11
|
||
H40000v`+(40+e)+`H1012.3
|
||
s-271.3,567,-271.3,567c-38.7,80.7,-84,175,-136,283c-52,108,-89.167,185.3,-111.5,232
|
||
c-22.3,46.7,-33.8,70.3,-34.5,71c-4.7,4.7,-12.3,7,-23,7s-12,-1,-12,-1
|
||
s-109,-253,-109,-253c-72.7,-168,-109.3,-252,-110,-252c-10.7,8,-22,16.7,-34,26
|
||
c-22,17.3,-33.3,26,-34,26s-26,-26,-26,-26s76,-59,76,-59s76,-60,76,-60z
|
||
M`+(1001+e)+" "+t+"h400000v"+(40+e)+"h-400000z"},"sqrtSize1"),Os=mt(function(e,t){return"M983 "+(10+e+t)+`
|
||
l`+e/3.13+" -"+e+`
|
||
c4,-6.7,10,-10,18,-10 H400000v`+(40+e)+`
|
||
H1013.1s-83.4,268,-264.1,840c-180.7,572,-277,876.3,-289,913c-4.7,4.7,-12.7,7,-24,7
|
||
s-12,0,-12,0c-1.3,-3.3,-3.7,-11.7,-7,-25c-35.3,-125.3,-106.7,-373.3,-214,-744
|
||
c-10,12,-21,25,-33,39s-32,39,-32,39c-6,-5.3,-15,-14,-27,-26s25,-30,25,-30
|
||
c26.7,-32.7,52,-63,76,-91s52,-60,52,-60s208,722,208,722
|
||
c56,-175.3,126.3,-397.3,211,-666c84.7,-268.7,153.8,-488.2,207.5,-658.5
|
||
c53.7,-170.3,84.5,-266.8,92.5,-289.5z
|
||
M`+(1001+e)+" "+t+"h400000v"+(40+e)+"h-400000z"},"sqrtSize2"),Ps=mt(function(e,t){return"M424,"+(2398+e+t)+`
|
||
c-1.3,-0.7,-38.5,-172,-111.5,-514c-73,-342,-109.8,-513.3,-110.5,-514
|
||
c0,-2,-10.7,14.3,-32,49c-4.7,7.3,-9.8,15.7,-15.5,25c-5.7,9.3,-9.8,16,-12.5,20
|
||
s-5,7,-5,7c-4,-3.3,-8.3,-7.7,-13,-13s-13,-13,-13,-13s76,-122,76,-122s77,-121,77,-121
|
||
s209,968,209,968c0,-2,84.7,-361.7,254,-1079c169.3,-717.3,254.7,-1077.7,256,-1081
|
||
l`+e/4.223+" -"+e+`c4,-6.7,10,-10,18,-10 H400000
|
||
v`+(40+e)+`H1014.6
|
||
s-87.3,378.7,-272.6,1166c-185.3,787.3,-279.3,1182.3,-282,1185
|
||
c-2,6,-10,9,-24,9
|
||
c-8,0,-12,-0.7,-12,-2z M`+(1001+e)+" "+t+`
|
||
h400000v`+(40+e)+"h-400000z"},"sqrtSize3"),Bs=mt(function(e,t){return"M473,"+(2713+e+t)+`
|
||
c339.3,-1799.3,509.3,-2700,510,-2702 l`+e/5.298+" -"+e+`
|
||
c3.3,-7.3,9.3,-11,18,-11 H400000v`+(40+e)+`H1017.7
|
||
s-90.5,478,-276.2,1466c-185.7,988,-279.5,1483,-281.5,1485c-2,6,-10,9,-24,9
|
||
c-8,0,-12,-0.7,-12,-2c0,-1.3,-5.3,-32,-16,-92c-50.7,-293.3,-119.7,-693.3,-207,-1200
|
||
c0,-1.3,-5.3,8.7,-16,30c-10.7,21.3,-21.3,42.7,-32,64s-16,33,-16,33s-26,-26,-26,-26
|
||
s76,-153,76,-153s77,-151,77,-151c0.7,0.7,35.7,202,105,604c67.3,400.7,102,602.7,104,
|
||
606zM`+(1001+e)+" "+t+"h400000v"+(40+e)+"H1017.7z"},"sqrtSize4"),Fs=mt(function(e){return"M400000 "+e+" H0 L"+e/2+" 0 l65 45 L145 "+(e-80)+" H400000z"},"phasePath"),js=mt(function(e,t,i){return"M702 "+(e+t)+"H400000"+(40+e)+`
|
||
H742v`+(i-54-t-e)+`l-4 4-4 4c-.667.7 -2 1.5-4 2.5s-4.167 1.833-6.5 2.5-5.5 1-9.5 1
|
||
h-12l-28-84c-16.667-52-96.667 -294.333-240-727l-212 -643 -85 170
|
||
c-4-3.333-8.333-7.667-13 -13l-13-13l77-155 77-156c66 199.333 139 419.667
|
||
219 661 l218 661zM702 `+t+"H400000v"+(40+e)+"H742z"},"sqrtTall"),zs=mt(function(e,t,i){t*=1e3;var n="";switch(e){case"sqrtMain":n=Ns(t,80);break;case"sqrtSize1":n=Ds(t,80);break;case"sqrtSize2":n=Os(t,80);break;case"sqrtSize3":n=Ps(t,80);break;case"sqrtSize4":n=Bs(t,80);break;case"sqrtTall":n=js(t,80,i)}return n},"sqrtPath"),Hs=mt(function(e,t){switch(e){case"⎜":return"M291 0 H417 V"+t+" H291z M291 0 H417 V"+t+" H291z";case"∣":return"M145 0 H188 V"+t+" H145z M145 0 H188 V"+t+" H145z";case"∥":return"M145 0 H188 V"+t+" H145z M145 0 H188 V"+t+" H145zM367 0 H410 V"+t+" H367z M367 0 H410 V"+t+" H367z";case"⎟":return"M457 0 H583 V"+t+" H457z M457 0 H583 V"+t+" H457z";case"⎢":return"M319 0 H403 V"+t+" H319z M319 0 H403 V"+t+" H319z";case"⎥":return"M263 0 H347 V"+t+" H263z M263 0 H347 V"+t+" H263z";case"⎪":return"M384 0 H504 V"+t+" H384z M384 0 H504 V"+t+" H384z";case"⏐":return"M312 0 H355 V"+t+" H312z M312 0 H355 V"+t+" H312z";case"‖":return"M257 0 H300 V"+t+" H257z M257 0 H300 V"+t+" H257zM478 0 H521 V"+t+" H478z M478 0 H521 V"+t+" H478z";default:return""}},"innerPath"),Us={doubleleftarrow:`M262 157
|
||
l10-10c34-36 62.7-77 86-123 3.3-8 5-13.3 5-16 0-5.3-6.7-8-20-8-7.3
|
||
0-12.2.5-14.5 1.5-2.3 1-4.8 4.5-7.5 10.5-49.3 97.3-121.7 169.3-217 216-28
|
||
14-57.3 25-88 33-6.7 2-11 3.8-13 5.5-2 1.7-3 4.2-3 7.5s1 5.8 3 7.5
|
||
c2 1.7 6.3 3.5 13 5.5 68 17.3 128.2 47.8 180.5 91.5 52.3 43.7 93.8 96.2 124.5
|
||
157.5 9.3 8 15.3 12.3 18 13h6c12-.7 18-4 18-10 0-2-1.7-7-5-15-23.3-46-52-87
|
||
-86-123l-10-10h399738v-40H218c328 0 0 0 0 0l-10-8c-26.7-20-65.7-43-117-69 2.7
|
||
-2 6-3.7 10-5 36.7-16 72.3-37.3 107-64l10-8h399782v-40z
|
||
m8 0v40h399730v-40zm0 194v40h399730v-40z`,doublerightarrow:`M399738 392l
|
||
-10 10c-34 36-62.7 77-86 123-3.3 8-5 13.3-5 16 0 5.3 6.7 8 20 8 7.3 0 12.2-.5
|
||
14.5-1.5 2.3-1 4.8-4.5 7.5-10.5 49.3-97.3 121.7-169.3 217-216 28-14 57.3-25 88
|
||
-33 6.7-2 11-3.8 13-5.5 2-1.7 3-4.2 3-7.5s-1-5.8-3-7.5c-2-1.7-6.3-3.5-13-5.5-68
|
||
-17.3-128.2-47.8-180.5-91.5-52.3-43.7-93.8-96.2-124.5-157.5-9.3-8-15.3-12.3-18
|
||
-13h-6c-12 .7-18 4-18 10 0 2 1.7 7 5 15 23.3 46 52 87 86 123l10 10H0v40h399782
|
||
c-328 0 0 0 0 0l10 8c26.7 20 65.7 43 117 69-2.7 2-6 3.7-10 5-36.7 16-72.3 37.3
|
||
-107 64l-10 8H0v40zM0 157v40h399730v-40zm0 194v40h399730v-40z`,leftarrow:`M400000 241H110l3-3c68.7-52.7 113.7-120
|
||
135-202 4-14.7 6-23 6-25 0-7.3-7-11-21-11-8 0-13.2.8-15.5 2.5-2.3 1.7-4.2 5.8
|
||
-5.5 12.5-1.3 4.7-2.7 10.3-4 17-12 48.7-34.8 92-68.5 130S65.3 228.3 18 247
|
||
c-10 4-16 7.7-18 11 0 8.7 6 14.3 18 17 47.3 18.7 87.8 47 121.5 85S196 441.3 208
|
||
490c.7 2 1.3 5 2 9s1.2 6.7 1.5 8c.3 1.3 1 3.3 2 6s2.2 4.5 3.5 5.5c1.3 1 3.3
|
||
1.8 6 2.5s6 1 10 1c14 0 21-3.7 21-11 0-2-2-10.3-6-25-20-79.3-65-146.7-135-202
|
||
l-3-3h399890zM100 241v40h399900v-40z`,leftbrace:`M6 548l-6-6v-35l6-11c56-104 135.3-181.3 238-232 57.3-28.7 117
|
||
-45 179-50h399577v120H403c-43.3 7-81 15-113 26-100.7 33-179.7 91-237 174-2.7
|
||
5-6 9-10 13-.7 1-7.3 1-20 1H6z`,leftbraceunder:`M0 6l6-6h17c12.688 0 19.313.3 20 1 4 4 7.313 8.3 10 13
|
||
35.313 51.3 80.813 93.8 136.5 127.5 55.688 33.7 117.188 55.8 184.5 66.5.688
|
||
0 2 .3 4 1 18.688 2.7 76 4.3 172 5h399450v120H429l-6-1c-124.688-8-235-61.7
|
||
-331-161C60.687 138.7 32.312 99.3 7 54L0 41V6z`,leftgroup:`M400000 80
|
||
H435C64 80 168.3 229.4 21 260c-5.9 1.2-18 0-18 0-2 0-3-1-3-3v-38C76 61 257 0
|
||
435 0h399565z`,leftgroupunder:`M400000 262
|
||
H435C64 262 168.3 112.6 21 82c-5.9-1.2-18 0-18 0-2 0-3 1-3 3v38c76 158 257 219
|
||
435 219h399565z`,leftharpoon:`M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3
|
||
-3.3 10.2-9.5 20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5
|
||
-18.3 3-21-1.3-4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7
|
||
-196 228-6.7 4.7-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40z`,leftharpoonplus:`M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3-3.3 10.2-9.5
|
||
20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5-18.3 3-21-1.3
|
||
-4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7-196 228-6.7 4.7
|
||
-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40zM0 435v40h400000v-40z
|
||
m0 0v40h400000v-40z`,leftharpoondown:`M7 241c-4 4-6.333 8.667-7 14 0 5.333.667 9 2 11s5.333
|
||
5.333 12 10c90.667 54 156 130 196 228 3.333 10.667 6.333 16.333 9 17 2 .667 5
|
||
1 9 1h5c10.667 0 16.667-2 18-6 2-2.667 1-9.667-3-21-32-87.333-82.667-157.667
|
||
-152-211l-3-3h399907v-40zM93 281 H400000 v-40L7 241z`,leftharpoondownplus:`M7 435c-4 4-6.3 8.7-7 14 0 5.3.7 9 2 11s5.3 5.3 12
|
||
10c90.7 54 156 130 196 228 3.3 10.7 6.3 16.3 9 17 2 .7 5 1 9 1h5c10.7 0 16.7
|
||
-2 18-6 2-2.7 1-9.7-3-21-32-87.3-82.7-157.7-152-211l-3-3h399907v-40H7zm93 0
|
||
v40h399900v-40zM0 241v40h399900v-40zm0 0v40h399900v-40z`,lefthook:`M400000 281 H103s-33-11.2-61-33.5S0 197.3 0 164s14.2-61.2 42.5
|
||
-83.5C70.8 58.2 104 47 142 47 c16.7 0 25 6.7 25 20 0 12-8.7 18.7-26 20-40 3.3
|
||
-68.7 15.7-86 37-10 12-15 25.3-15 40 0 22.7 9.8 40.7 29.5 54 19.7 13.3 43.5 21
|
||
71.5 23h399859zM103 281v-40h399897v40z`,leftlinesegment:`M40 281 V428 H0 V94 H40 V241 H400000 v40z
|
||
M40 281 V428 H0 V94 H40 V241 H400000 v40z`,leftmapsto:`M40 281 V448H0V74H40V241H400000v40z
|
||
M40 281 V448H0V74H40V241H400000v40z`,leftToFrom:`M0 147h400000v40H0zm0 214c68 40 115.7 95.7 143 167h22c15.3 0 23
|
||
-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69-70-101l-7-8h399905v-40H95l7-8
|
||
c28.7-32 52-65.7 70-101 10.7-23.3 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 265.3
|
||
68 321 0 361zm0-174v-40h399900v40zm100 154v40h399900v-40z`,longequal:`M0 50 h400000 v40H0z m0 194h40000v40H0z
|
||
M0 50 h400000 v40H0z m0 194h40000v40H0z`,midbrace:`M200428 334
|
||
c-100.7-8.3-195.3-44-280-108-55.3-42-101.7-93-139-153l-9-14c-2.7 4-5.7 8.7-9 14
|
||
-53.3 86.7-123.7 153-211 199-66.7 36-137.3 56.3-212 62H0V214h199568c178.3-11.7
|
||
311.7-78.3 403-201 6-8 9.7-12 11-12 .7-.7 6.7-1 18-1s17.3.3 18 1c1.3 0 5 4 11
|
||
12 44.7 59.3 101.3 106.3 170 141s145.3 54.3 229 60h199572v120z`,midbraceunder:`M199572 214
|
||
c100.7 8.3 195.3 44 280 108 55.3 42 101.7 93 139 153l9 14c2.7-4 5.7-8.7 9-14
|
||
53.3-86.7 123.7-153 211-199 66.7-36 137.3-56.3 212-62h199568v120H200432c-178.3
|
||
11.7-311.7 78.3-403 201-6 8-9.7 12-11 12-.7.7-6.7 1-18 1s-17.3-.3-18-1c-1.3 0
|
||
-5-4-11-12-44.7-59.3-101.3-106.3-170-141s-145.3-54.3-229-60H0V214z`,oiintSize1:`M512.6 71.6c272.6 0 320.3 106.8 320.3 178.2 0 70.8-47.7 177.6
|
||
-320.3 177.6S193.1 320.6 193.1 249.8c0-71.4 46.9-178.2 319.5-178.2z
|
||
m368.1 178.2c0-86.4-60.9-215.4-368.1-215.4-306.4 0-367.3 129-367.3 215.4 0 85.8
|
||
60.9 214.8 367.3 214.8 307.2 0 368.1-129 368.1-214.8z`,oiintSize2:`M757.8 100.1c384.7 0 451.1 137.6 451.1 230 0 91.3-66.4 228.8
|
||
-451.1 228.8-386.3 0-452.7-137.5-452.7-228.8 0-92.4 66.4-230 452.7-230z
|
||
m502.4 230c0-111.2-82.4-277.2-502.4-277.2s-504 166-504 277.2
|
||
c0 110 84 276 504 276s502.4-166 502.4-276z`,oiiintSize1:`M681.4 71.6c408.9 0 480.5 106.8 480.5 178.2 0 70.8-71.6 177.6
|
||
-480.5 177.6S202.1 320.6 202.1 249.8c0-71.4 70.5-178.2 479.3-178.2z
|
||
m525.8 178.2c0-86.4-86.8-215.4-525.7-215.4-437.9 0-524.7 129-524.7 215.4 0
|
||
85.8 86.8 214.8 524.7 214.8 438.9 0 525.7-129 525.7-214.8z`,oiiintSize2:`M1021.2 53c603.6 0 707.8 165.8 707.8 277.2 0 110-104.2 275.8
|
||
-707.8 275.8-606 0-710.2-165.8-710.2-275.8C311 218.8 415.2 53 1021.2 53z
|
||
m770.4 277.1c0-131.2-126.4-327.6-770.5-327.6S248.4 198.9 248.4 330.1
|
||
c0 130 128.8 326.4 772.7 326.4s770.5-196.4 770.5-326.4z`,rightarrow:`M0 241v40h399891c-47.3 35.3-84 78-110 128
|
||
-16.7 32-27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20
|
||
11 8 0 13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7
|
||
39-84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85
|
||
-40.5-119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5
|
||
-12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67
|
||
151.7 139 205zm0 0v40h399900v-40z`,rightbrace:`M400000 542l
|
||
-6 6h-17c-12.7 0-19.3-.3-20-1-4-4-7.3-8.3-10-13-35.3-51.3-80.8-93.8-136.5-127.5
|
||
s-117.2-55.8-184.5-66.5c-.7 0-2-.3-4-1-18.7-2.7-76-4.3-172-5H0V214h399571l6 1
|
||
c124.7 8 235 61.7 331 161 31.3 33.3 59.7 72.7 85 118l7 13v35z`,rightbraceunder:`M399994 0l6 6v35l-6 11c-56 104-135.3 181.3-238 232-57.3
|
||
28.7-117 45-179 50H-300V214h399897c43.3-7 81-15 113-26 100.7-33 179.7-91 237
|
||
-174 2.7-5 6-9 10-13 .7-1 7.3-1 20-1h17z`,rightgroup:`M0 80h399565c371 0 266.7 149.4 414 180 5.9 1.2 18 0 18 0 2 0
|
||
3-1 3-3v-38c-76-158-257-219-435-219H0z`,rightgroupunder:`M0 262h399565c371 0 266.7-149.4 414-180 5.9-1.2 18 0 18
|
||
0 2 0 3 1 3 3v38c-76 158-257 219-435 219H0z`,rightharpoon:`M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3
|
||
-3.7-15.3-11-18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2
|
||
-10.7 0-16.7 2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58
|
||
69.2 92 94.5zm0 0v40h399900v-40z`,rightharpoonplus:`M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3-3.7-15.3-11
|
||
-18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2-10.7 0-16.7
|
||
2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58 69.2 92 94.5z
|
||
m0 0v40h399900v-40z m100 194v40h399900v-40zm0 0v40h399900v-40z`,rightharpoondown:`M399747 511c0 7.3 6.7 11 20 11 8 0 13-.8 15-2.5s4.7-6.8
|
||
8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3 8.5-5.8 9.5
|
||
-7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3-64.7 57-92 95
|
||
-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 241v40h399900v-40z`,rightharpoondownplus:`M399747 705c0 7.3 6.7 11 20 11 8 0 13-.8
|
||
15-2.5s4.7-6.8 8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3
|
||
8.5-5.8 9.5-7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3
|
||
-64.7 57-92 95-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 435v40h399900v-40z
|
||
m0-194v40h400000v-40zm0 0v40h400000v-40z`,righthook:`M399859 241c-764 0 0 0 0 0 40-3.3 68.7-15.7 86-37 10-12 15-25.3
|
||
15-40 0-22.7-9.8-40.7-29.5-54-19.7-13.3-43.5-21-71.5-23-17.3-1.3-26-8-26-20 0
|
||
-13.3 8.7-20 26-20 38 0 71 11.2 99 33.5 0 0 7 5.6 21 16.7 14 11.2 21 33.5 21
|
||
66.8s-14 61.2-42 83.5c-28 22.3-61 33.5-99 33.5L0 241z M0 281v-40h399859v40z`,rightlinesegment:`M399960 241 V94 h40 V428 h-40 V281 H0 v-40z
|
||
M399960 241 V94 h40 V428 h-40 V281 H0 v-40z`,rightToFrom:`M400000 167c-70.7-42-118-97.7-142-167h-23c-15.3 0-23 .3-23
|
||
1 0 1.3 5.3 13.7 16 37 18 35.3 41.3 69 70 101l7 8H0v40h399905l-7 8c-28.7 32
|
||
-52 65.7-70 101-10.7 23.3-16 35.7-16 37 0 .7 7.7 1 23 1h23c24-69.3 71.3-125 142
|
||
-167z M100 147v40h399900v-40zM0 341v40h399900v-40z`,twoheadleftarrow:`M0 167c68 40
|
||
115.7 95.7 143 167h22c15.3 0 23-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69
|
||
-70-101l-7-8h125l9 7c50.7 39.3 85 86 103 140h46c0-4.7-6.3-18.7-19-42-18-35.3
|
||
-40-67.3-66-96l-9-9h399716v-40H284l9-9c26-28.7 48-60.7 66-96 12.7-23.333 19
|
||
-37.333 19-42h-46c-18 54-52.3 100.7-103 140l-9 7H95l7-8c28.7-32 52-65.7 70-101
|
||
10.7-23.333 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 71.3 68 127 0 167z`,twoheadrightarrow:`M400000 167
|
||
c-68-40-115.7-95.7-143-167h-22c-15.3 0-23 .3-23 1 0 1.3 5.3 13.7 16 37 18 35.3
|
||
41.3 69 70 101l7 8h-125l-9-7c-50.7-39.3-85-86-103-140h-46c0 4.7 6.3 18.7 19 42
|
||
18 35.3 40 67.3 66 96l9 9H0v40h399716l-9 9c-26 28.7-48 60.7-66 96-12.7 23.333
|
||
-19 37.333-19 42h46c18-54 52.3-100.7 103-140l9-7h125l-7 8c-28.7 32-52 65.7-70
|
||
101-10.7 23.333-16 35.7-16 37 0 .7 7.7 1 23 1h22c27.3-71.3 75-127 143-167z`,tilde1:`M200 55.538c-77 0-168 73.953-177 73.953-3 0-7
|
||
-2.175-9-5.437L2 97c-1-2-2-4-2-6 0-4 2-7 5-9l20-12C116 12 171 0 207 0c86 0
|
||
114 68 191 68 78 0 168-68 177-68 4 0 7 2 9 5l12 19c1 2.175 2 4.35 2 6.525 0
|
||
4.35-2 7.613-5 9.788l-19 13.05c-92 63.077-116.937 75.308-183 76.128
|
||
-68.267.847-113-73.952-191-73.952z`,tilde2:`M344 55.266c-142 0-300.638 81.316-311.5 86.418
|
||
-8.01 3.762-22.5 10.91-23.5 5.562L1 120c-1-2-1-3-1-4 0-5 3-9 8-10l18.4-9C160.9
|
||
31.9 283 0 358 0c148 0 188 122 331 122s314-97 326-97c4 0 8 2 10 7l7 21.114
|
||
c1 2.14 1 3.21 1 4.28 0 5.347-3 9.626-7 10.696l-22.3 12.622C852.6 158.372 751
|
||
181.476 676 181.476c-149 0-189-126.21-332-126.21z`,tilde3:`M786 59C457 59 32 175.242 13 175.242c-6 0-10-3.457
|
||
-11-10.37L.15 138c-1-7 3-12 10-13l19.2-6.4C378.4 40.7 634.3 0 804.3 0c337 0
|
||
411.8 157 746.8 157 328 0 754-112 773-112 5 0 10 3 11 9l1 14.075c1 8.066-.697
|
||
16.595-6.697 17.492l-21.052 7.31c-367.9 98.146-609.15 122.696-778.15 122.696
|
||
-338 0-409-156.573-744-156.573z`,tilde4:`M786 58C457 58 32 177.487 13 177.487c-6 0-10-3.345
|
||
-11-10.035L.15 143c-1-7 3-12 10-13l22-6.7C381.2 35 637.15 0 807.15 0c337 0 409
|
||
177 744 177 328 0 754-127 773-127 5 0 10 3 11 9l1 14.794c1 7.805-3 13.38-9
|
||
14.495l-20.7 5.574c-366.85 99.79-607.3 139.372-776.3 139.372-338 0-409
|
||
-175.236-744-175.236z`,vec:`M377 20c0-5.333 1.833-10 5.5-14S391 0 397 0c4.667 0 8.667 1.667 12 5
|
||
3.333 2.667 6.667 9 10 19 6.667 24.667 20.333 43.667 41 57 7.333 4.667 11
|
||
10.667 11 18 0 6-1 10-3 12s-6.667 5-14 9c-28.667 14.667-53.667 35.667-75 63
|
||
-1.333 1.333-3.167 3.5-5.5 6.5s-4 4.833-5 5.5c-1 .667-2.5 1.333-4.5 2s-4.333 1
|
||
-7 1c-4.667 0-9.167-1.833-13.5-5.5S337 184 337 178c0-12.667 15.667-32.333 47-59
|
||
H213l-171-1c-8.667-6-13-12.333-13-19 0-4.667 4.333-11.333 13-20h359
|
||
c-16-25.333-24-45-24-59z`,widehat1:`M529 0h5l519 115c5 1 9 5 9 10 0 1-1 2-1 3l-4 22
|
||
c-1 5-5 9-11 9h-2L532 67 19 159h-2c-5 0-9-4-11-9l-5-22c-1-6 2-12 8-13z`,widehat2:`M1181 0h2l1171 176c6 0 10 5 10 11l-2 23c-1 6-5 10
|
||
-11 10h-1L1182 67 15 220h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widehat3:`M1181 0h2l1171 236c6 0 10 5 10 11l-2 23c-1 6-5 10
|
||
-11 10h-1L1182 67 15 280h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widehat4:`M1181 0h2l1171 296c6 0 10 5 10 11l-2 23c-1 6-5 10
|
||
-11 10h-1L1182 67 15 340h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widecheck1:`M529,159h5l519,-115c5,-1,9,-5,9,-10c0,-1,-1,-2,-1,-3l-4,-22c-1,
|
||
-5,-5,-9,-11,-9h-2l-512,92l-513,-92h-2c-5,0,-9,4,-11,9l-5,22c-1,6,2,12,8,13z`,widecheck2:`M1181,220h2l1171,-176c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,
|
||
-11,-10h-1l-1168,153l-1167,-153h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,widecheck3:`M1181,280h2l1171,-236c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,
|
||
-11,-10h-1l-1168,213l-1167,-213h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,widecheck4:`M1181,340h2l1171,-296c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,
|
||
-11,-10h-1l-1168,273l-1167,-273h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,baraboveleftarrow:`M400000 620h-399890l3 -3c68.7 -52.7 113.7 -120 135 -202
|
||
c4 -14.7 6 -23 6 -25c0 -7.3 -7 -11 -21 -11c-8 0 -13.2 0.8 -15.5 2.5
|
||
c-2.3 1.7 -4.2 5.8 -5.5 12.5c-1.3 4.7 -2.7 10.3 -4 17c-12 48.7 -34.8 92 -68.5 130
|
||
s-74.2 66.3 -121.5 85c-10 4 -16 7.7 -18 11c0 8.7 6 14.3 18 17c47.3 18.7 87.8 47
|
||
121.5 85s56.5 81.3 68.5 130c0.7 2 1.3 5 2 9s1.2 6.7 1.5 8c0.3 1.3 1 3.3 2 6
|
||
s2.2 4.5 3.5 5.5c1.3 1 3.3 1.8 6 2.5s6 1 10 1c14 0 21 -3.7 21 -11
|
||
c0 -2 -2 -10.3 -6 -25c-20 -79.3 -65 -146.7 -135 -202l-3 -3h399890z
|
||
M100 620v40h399900v-40z M0 241v40h399900v-40zM0 241v40h399900v-40z`,rightarrowabovebar:`M0 241v40h399891c-47.3 35.3-84 78-110 128-16.7 32
|
||
-27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20 11 8 0
|
||
13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7 39
|
||
-84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85-40.5
|
||
-119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5
|
||
-12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67
|
||
151.7 139 205zm96 379h399894v40H0zm0 0h399904v40H0z`,baraboveshortleftharpoon:`M507,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11
|
||
c1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17
|
||
c2,0.7,5,1,9,1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21
|
||
c-32,-87.3,-82.7,-157.7,-152,-211c0,0,-3,-3,-3,-3l399351,0l0,-40
|
||
c-398570,0,-399437,0,-399437,0z M593 435 v40 H399500 v-40z
|
||
M0 281 v-40 H399908 v40z M0 281 v-40 H399908 v40z`,rightharpoonaboveshortbar:`M0,241 l0,40c399126,0,399993,0,399993,0
|
||
c4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199,
|
||
-231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6
|
||
c-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z
|
||
M0 241 v40 H399908 v-40z M0 475 v-40 H399500 v40z M0 475 v-40 H399500 v40z`,shortbaraboveleftharpoon:`M7,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11
|
||
c1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17c2,0.7,5,1,9,
|
||
1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21c-32,-87.3,-82.7,-157.7,
|
||
-152,-211c0,0,-3,-3,-3,-3l399907,0l0,-40c-399126,0,-399993,0,-399993,0z
|
||
M93 435 v40 H400000 v-40z M500 241 v40 H400000 v-40z M500 241 v40 H400000 v-40z`,shortrightharpoonabovebar:`M53,241l0,40c398570,0,399437,0,399437,0
|
||
c4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199,
|
||
-231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6
|
||
c-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z
|
||
M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`},qs=mt(function(e,t){switch(e){case"lbrack":return"M403 1759 V84 H666 V0 H319 V1759 v"+t+` v1759 h347 v-84
|
||
H403z M403 1759 V0 H319 V1759 v`+t+" v1759 h84z";case"rbrack":return"M347 1759 V0 H0 V84 H263 V1759 v"+t+` v1759 H0 v84 H347z
|
||
M347 1759 V0 H263 V1759 v`+t+" v1759 h84z";case"vert":return"M145 15 v585 v"+t+` v585 c2.667,10,9.667,15,21,15
|
||
c10,0,16.667,-5,20,-15 v-585 v`+-t+` v-585 c-2.667,-10,-9.667,-15,-21,-15
|
||
c-10,0,-16.667,5,-20,15z M188 15 H145 v585 v`+t+" v585 h43z";case"doublevert":return"M145 15 v585 v"+t+` v585 c2.667,10,9.667,15,21,15
|
||
c10,0,16.667,-5,20,-15 v-585 v`+-t+` v-585 c-2.667,-10,-9.667,-15,-21,-15
|
||
c-10,0,-16.667,5,-20,15z M188 15 H145 v585 v`+t+` v585 h43z
|
||
M367 15 v585 v`+t+` v585 c2.667,10,9.667,15,21,15
|
||
c10,0,16.667,-5,20,-15 v-585 v`+-t+` v-585 c-2.667,-10,-9.667,-15,-21,-15
|
||
c-10,0,-16.667,5,-20,15z M410 15 H367 v585 v`+t+" v585 h43z";case"lfloor":return"M319 602 V0 H403 V602 v"+t+` v1715 h263 v84 H319z
|
||
MM319 602 V0 H403 V602 v`+t+" v1715 H319z";case"rfloor":return"M319 602 V0 H403 V602 v"+t+` v1799 H0 v-84 H319z
|
||
MM319 602 V0 H403 V602 v`+t+" v1715 H319z";case"lceil":return"M403 1759 V84 H666 V0 H319 V1759 v"+t+` v602 h84z
|
||
M403 1759 V0 H319 V1759 v`+t+" v602 h84z";case"rceil":return"M347 1759 V0 H0 V84 H263 V1759 v"+t+` v602 h84z
|
||
M347 1759 V0 h-84 V1759 v`+t+" v602 h84z";case"lparen":return`M863,9c0,-2,-2,-5,-6,-9c0,0,-17,0,-17,0c-12.7,0,-19.3,0.3,-20,1
|
||
c-5.3,5.3,-10.3,11,-15,17c-242.7,294.7,-395.3,682,-458,1162c-21.3,163.3,-33.3,349,
|
||
-36,557 l0,`+(t+84)+`c0.2,6,0,26,0,60c2,159.3,10,310.7,24,454c53.3,528,210,
|
||
949.7,470,1265c4.7,6,9.7,11.7,15,17c0.7,0.7,7,1,19,1c0,0,18,0,18,0c4,-4,6,-7,6,-9
|
||
c0,-2.7,-3.3,-8.7,-10,-18c-135.3,-192.7,-235.5,-414.3,-300.5,-665c-65,-250.7,-102.5,
|
||
-544.7,-112.5,-882c-2,-104,-3,-167,-3,-189
|
||
l0,-`+(t+92)+`c0,-162.7,5.7,-314,17,-454c20.7,-272,63.7,-513,129,-723c65.3,
|
||
-210,155.3,-396.3,270,-559c6.7,-9.3,10,-15.3,10,-18z`;case"rparen":return`M76,0c-16.7,0,-25,3,-25,9c0,2,2,6.3,6,13c21.3,28.7,42.3,60.3,
|
||
63,95c96.7,156.7,172.8,332.5,228.5,527.5c55.7,195,92.8,416.5,111.5,664.5
|
||
c11.3,139.3,17,290.7,17,454c0,28,1.7,43,3.3,45l0,`+(t+9)+`
|
||
c-3,4,-3.3,16.7,-3.3,38c0,162,-5.7,313.7,-17,455c-18.7,248,-55.8,469.3,-111.5,664
|
||
c-55.7,194.7,-131.8,370.3,-228.5,527c-20.7,34.7,-41.7,66.3,-63,95c-2,3.3,-4,7,-6,11
|
||
c0,7.3,5.7,11,17,11c0,0,11,0,11,0c9.3,0,14.3,-0.3,15,-1c5.3,-5.3,10.3,-11,15,-17
|
||
c242.7,-294.7,395.3,-681.7,458,-1161c21.3,-164.7,33.3,-350.7,36,-558
|
||
l0,-`+(t+144)+`c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7,
|
||
-470,-1265c-4.7,-6,-9.7,-11.7,-15,-17c-0.7,-0.7,-6.7,-1,-18,-1z`;default:throw new Error("Unknown stretchy delimiter.")}},"tallDelim"),Ws=class{static{mt(this,"DocumentFragment")}constructor(e){this.children=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.children=e,this.classes=[],this.height=0,this.depth=0,this.maxFontSize=0,this.style={}}hasClass(e){return ws.contains(this.classes,e)}toNode(){for(var e=document.createDocumentFragment(),t=0;t<this.children.length;t++)e.appendChild(this.children[t].toNode());return e}toMarkup(){for(var e="",t=0;t<this.children.length;t++)e+=this.children[t].toMarkup();return e}toText(){var e=mt(e=>e.toText(),"toText");return this.children.map(e).join("")}},Vs={"AMS-Regular":{32:[0,0,0,0,.25],65:[0,.68889,0,0,.72222],66:[0,.68889,0,0,.66667],67:[0,.68889,0,0,.72222],68:[0,.68889,0,0,.72222],69:[0,.68889,0,0,.66667],70:[0,.68889,0,0,.61111],71:[0,.68889,0,0,.77778],72:[0,.68889,0,0,.77778],73:[0,.68889,0,0,.38889],74:[.16667,.68889,0,0,.5],75:[0,.68889,0,0,.77778],76:[0,.68889,0,0,.66667],77:[0,.68889,0,0,.94445],78:[0,.68889,0,0,.72222],79:[.16667,.68889,0,0,.77778],80:[0,.68889,0,0,.61111],81:[.16667,.68889,0,0,.77778],82:[0,.68889,0,0,.72222],83:[0,.68889,0,0,.55556],84:[0,.68889,0,0,.66667],85:[0,.68889,0,0,.72222],86:[0,.68889,0,0,.72222],87:[0,.68889,0,0,1],88:[0,.68889,0,0,.72222],89:[0,.68889,0,0,.72222],90:[0,.68889,0,0,.66667],107:[0,.68889,0,0,.55556],160:[0,0,0,0,.25],165:[0,.675,.025,0,.75],174:[.15559,.69224,0,0,.94666],240:[0,.68889,0,0,.55556],295:[0,.68889,0,0,.54028],710:[0,.825,0,0,2.33334],732:[0,.9,0,0,2.33334],770:[0,.825,0,0,2.33334],771:[0,.9,0,0,2.33334],989:[.08167,.58167,0,0,.77778],1008:[0,.43056,.04028,0,.66667],8245:[0,.54986,0,0,.275],8463:[0,.68889,0,0,.54028],8487:[0,.68889,0,0,.72222],8498:[0,.68889,0,0,.55556],8502:[0,.68889,0,0,.66667],8503:[0,.68889,0,0,.44445],8504:[0,.68889,0,0,.66667],8513:[0,.68889,0,0,.63889],8592:[-.03598,.46402,0,0,.5],8594:[-.03598,.46402,0,0,.5],8602:[-.13313,.36687,0,0,1],8603:[-.13313,.36687,0,0,1],8606:[.01354,.52239,0,0,1],8608:[.01354,.52239,0,0,1],8610:[.01354,.52239,0,0,1.11111],8611:[.01354,.52239,0,0,1.11111],8619:[0,.54986,0,0,1],8620:[0,.54986,0,0,1],8621:[-.13313,.37788,0,0,1.38889],8622:[-.13313,.36687,0,0,1],8624:[0,.69224,0,0,.5],8625:[0,.69224,0,0,.5],8630:[0,.43056,0,0,1],8631:[0,.43056,0,0,1],8634:[.08198,.58198,0,0,.77778],8635:[.08198,.58198,0,0,.77778],8638:[.19444,.69224,0,0,.41667],8639:[.19444,.69224,0,0,.41667],8642:[.19444,.69224,0,0,.41667],8643:[.19444,.69224,0,0,.41667],8644:[.1808,.675,0,0,1],8646:[.1808,.675,0,0,1],8647:[.1808,.675,0,0,1],8648:[.19444,.69224,0,0,.83334],8649:[.1808,.675,0,0,1],8650:[.19444,.69224,0,0,.83334],8651:[.01354,.52239,0,0,1],8652:[.01354,.52239,0,0,1],8653:[-.13313,.36687,0,0,1],8654:[-.13313,.36687,0,0,1],8655:[-.13313,.36687,0,0,1],8666:[.13667,.63667,0,0,1],8667:[.13667,.63667,0,0,1],8669:[-.13313,.37788,0,0,1],8672:[-.064,.437,0,0,1.334],8674:[-.064,.437,0,0,1.334],8705:[0,.825,0,0,.5],8708:[0,.68889,0,0,.55556],8709:[.08167,.58167,0,0,.77778],8717:[0,.43056,0,0,.42917],8722:[-.03598,.46402,0,0,.5],8724:[.08198,.69224,0,0,.77778],8726:[.08167,.58167,0,0,.77778],8733:[0,.69224,0,0,.77778],8736:[0,.69224,0,0,.72222],8737:[0,.69224,0,0,.72222],8738:[.03517,.52239,0,0,.72222],8739:[.08167,.58167,0,0,.22222],8740:[.25142,.74111,0,0,.27778],8741:[.08167,.58167,0,0,.38889],8742:[.25142,.74111,0,0,.5],8756:[0,.69224,0,0,.66667],8757:[0,.69224,0,0,.66667],8764:[-.13313,.36687,0,0,.77778],8765:[-.13313,.37788,0,0,.77778],8769:[-.13313,.36687,0,0,.77778],8770:[-.03625,.46375,0,0,.77778],8774:[.30274,.79383,0,0,.77778],8776:[-.01688,.48312,0,0,.77778],8778:[.08167,.58167,0,0,.77778],8782:[.06062,.54986,0,0,.77778],8783:[.06062,.54986,0,0,.77778],8785:[.08198,.58198,0,0,.77778],8786:[.08198,.58198,0,0,.77778],8787:[.08198,.58198,0,0,.77778],8790:[0,.69224,0,0,.77778],8791:[.22958,.72958,0,0,.77778],8796:[.08198,.91667,0,0,.77778],8806:[.25583,.75583,0,0,.77778],8807:[.25583,.75583,0,0,.77778],8808:[.25142,.75726,0,0,.77778],8809:[.25142,.75726,0,0,.77778],8812:[.25583,.75583,0,0,.5],8814:[.20576,.70576,0,0,.77778],8815:[.20576,.70576,0,0,.77778],8816:[.30274,.79383,0,0,.77778],8817:[.30274,.79383,0,0,.77778],8818:[.22958,.72958,0,0,.77778],8819:[.22958,.72958,0,0,.77778],8822:[.1808,.675,0,0,.77778],8823:[.1808,.675,0,0,.77778],8828:[.13667,.63667,0,0,.77778],8829:[.13667,.63667,0,0,.77778],8830:[.22958,.72958,0,0,.77778],8831:[.22958,.72958,0,0,.77778],8832:[.20576,.70576,0,0,.77778],8833:[.20576,.70576,0,0,.77778],8840:[.30274,.79383,0,0,.77778],8841:[.30274,.79383,0,0,.77778],8842:[.13597,.63597,0,0,.77778],8843:[.13597,.63597,0,0,.77778],8847:[.03517,.54986,0,0,.77778],8848:[.03517,.54986,0,0,.77778],8858:[.08198,.58198,0,0,.77778],8859:[.08198,.58198,0,0,.77778],8861:[.08198,.58198,0,0,.77778],8862:[0,.675,0,0,.77778],8863:[0,.675,0,0,.77778],8864:[0,.675,0,0,.77778],8865:[0,.675,0,0,.77778],8872:[0,.69224,0,0,.61111],8873:[0,.69224,0,0,.72222],8874:[0,.69224,0,0,.88889],8876:[0,.68889,0,0,.61111],8877:[0,.68889,0,0,.61111],8878:[0,.68889,0,0,.72222],8879:[0,.68889,0,0,.72222],8882:[.03517,.54986,0,0,.77778],8883:[.03517,.54986,0,0,.77778],8884:[.13667,.63667,0,0,.77778],8885:[.13667,.63667,0,0,.77778],8888:[0,.54986,0,0,1.11111],8890:[.19444,.43056,0,0,.55556],8891:[.19444,.69224,0,0,.61111],8892:[.19444,.69224,0,0,.61111],8901:[0,.54986,0,0,.27778],8903:[.08167,.58167,0,0,.77778],8905:[.08167,.58167,0,0,.77778],8906:[.08167,.58167,0,0,.77778],8907:[0,.69224,0,0,.77778],8908:[0,.69224,0,0,.77778],8909:[-.03598,.46402,0,0,.77778],8910:[0,.54986,0,0,.76042],8911:[0,.54986,0,0,.76042],8912:[.03517,.54986,0,0,.77778],8913:[.03517,.54986,0,0,.77778],8914:[0,.54986,0,0,.66667],8915:[0,.54986,0,0,.66667],8916:[0,.69224,0,0,.66667],8918:[.0391,.5391,0,0,.77778],8919:[.0391,.5391,0,0,.77778],8920:[.03517,.54986,0,0,1.33334],8921:[.03517,.54986,0,0,1.33334],8922:[.38569,.88569,0,0,.77778],8923:[.38569,.88569,0,0,.77778],8926:[.13667,.63667,0,0,.77778],8927:[.13667,.63667,0,0,.77778],8928:[.30274,.79383,0,0,.77778],8929:[.30274,.79383,0,0,.77778],8934:[.23222,.74111,0,0,.77778],8935:[.23222,.74111,0,0,.77778],8936:[.23222,.74111,0,0,.77778],8937:[.23222,.74111,0,0,.77778],8938:[.20576,.70576,0,0,.77778],8939:[.20576,.70576,0,0,.77778],8940:[.30274,.79383,0,0,.77778],8941:[.30274,.79383,0,0,.77778],8994:[.19444,.69224,0,0,.77778],8995:[.19444,.69224,0,0,.77778],9416:[.15559,.69224,0,0,.90222],9484:[0,.69224,0,0,.5],9488:[0,.69224,0,0,.5],9492:[0,.37788,0,0,.5],9496:[0,.37788,0,0,.5],9585:[.19444,.68889,0,0,.88889],9586:[.19444,.74111,0,0,.88889],9632:[0,.675,0,0,.77778],9633:[0,.675,0,0,.77778],9650:[0,.54986,0,0,.72222],9651:[0,.54986,0,0,.72222],9654:[.03517,.54986,0,0,.77778],9660:[0,.54986,0,0,.72222],9661:[0,.54986,0,0,.72222],9664:[.03517,.54986,0,0,.77778],9674:[.11111,.69224,0,0,.66667],9733:[.19444,.69224,0,0,.94445],10003:[0,.69224,0,0,.83334],10016:[0,.69224,0,0,.83334],10731:[.11111,.69224,0,0,.66667],10846:[.19444,.75583,0,0,.61111],10877:[.13667,.63667,0,0,.77778],10878:[.13667,.63667,0,0,.77778],10885:[.25583,.75583,0,0,.77778],10886:[.25583,.75583,0,0,.77778],10887:[.13597,.63597,0,0,.77778],10888:[.13597,.63597,0,0,.77778],10889:[.26167,.75726,0,0,.77778],10890:[.26167,.75726,0,0,.77778],10891:[.48256,.98256,0,0,.77778],10892:[.48256,.98256,0,0,.77778],10901:[.13667,.63667,0,0,.77778],10902:[.13667,.63667,0,0,.77778],10933:[.25142,.75726,0,0,.77778],10934:[.25142,.75726,0,0,.77778],10935:[.26167,.75726,0,0,.77778],10936:[.26167,.75726,0,0,.77778],10937:[.26167,.75726,0,0,.77778],10938:[.26167,.75726,0,0,.77778],10949:[.25583,.75583,0,0,.77778],10950:[.25583,.75583,0,0,.77778],10955:[.28481,.79383,0,0,.77778],10956:[.28481,.79383,0,0,.77778],57350:[.08167,.58167,0,0,.22222],57351:[.08167,.58167,0,0,.38889],57352:[.08167,.58167,0,0,.77778],57353:[0,.43056,.04028,0,.66667],57356:[.25142,.75726,0,0,.77778],57357:[.25142,.75726,0,0,.77778],57358:[.41951,.91951,0,0,.77778],57359:[.30274,.79383,0,0,.77778],57360:[.30274,.79383,0,0,.77778],57361:[.41951,.91951,0,0,.77778],57366:[.25142,.75726,0,0,.77778],57367:[.25142,.75726,0,0,.77778],57368:[.25142,.75726,0,0,.77778],57369:[.25142,.75726,0,0,.77778],57370:[.13597,.63597,0,0,.77778],57371:[.13597,.63597,0,0,.77778]},"Caligraphic-Regular":{32:[0,0,0,0,.25],65:[0,.68333,0,.19445,.79847],66:[0,.68333,.03041,.13889,.65681],67:[0,.68333,.05834,.13889,.52653],68:[0,.68333,.02778,.08334,.77139],69:[0,.68333,.08944,.11111,.52778],70:[0,.68333,.09931,.11111,.71875],71:[.09722,.68333,.0593,.11111,.59487],72:[0,.68333,.00965,.11111,.84452],73:[0,.68333,.07382,0,.54452],74:[.09722,.68333,.18472,.16667,.67778],75:[0,.68333,.01445,.05556,.76195],76:[0,.68333,0,.13889,.68972],77:[0,.68333,0,.13889,1.2009],78:[0,.68333,.14736,.08334,.82049],79:[0,.68333,.02778,.11111,.79611],80:[0,.68333,.08222,.08334,.69556],81:[.09722,.68333,0,.11111,.81667],82:[0,.68333,0,.08334,.8475],83:[0,.68333,.075,.13889,.60556],84:[0,.68333,.25417,0,.54464],85:[0,.68333,.09931,.08334,.62583],86:[0,.68333,.08222,0,.61278],87:[0,.68333,.08222,.08334,.98778],88:[0,.68333,.14643,.13889,.7133],89:[.09722,.68333,.08222,.08334,.66834],90:[0,.68333,.07944,.13889,.72473],160:[0,0,0,0,.25]},"Fraktur-Regular":{32:[0,0,0,0,.25],33:[0,.69141,0,0,.29574],34:[0,.69141,0,0,.21471],38:[0,.69141,0,0,.73786],39:[0,.69141,0,0,.21201],40:[.24982,.74947,0,0,.38865],41:[.24982,.74947,0,0,.38865],42:[0,.62119,0,0,.27764],43:[.08319,.58283,0,0,.75623],44:[0,.10803,0,0,.27764],45:[.08319,.58283,0,0,.75623],46:[0,.10803,0,0,.27764],47:[.24982,.74947,0,0,.50181],48:[0,.47534,0,0,.50181],49:[0,.47534,0,0,.50181],50:[0,.47534,0,0,.50181],51:[.18906,.47534,0,0,.50181],52:[.18906,.47534,0,0,.50181],53:[.18906,.47534,0,0,.50181],54:[0,.69141,0,0,.50181],55:[.18906,.47534,0,0,.50181],56:[0,.69141,0,0,.50181],57:[.18906,.47534,0,0,.50181],58:[0,.47534,0,0,.21606],59:[.12604,.47534,0,0,.21606],61:[-.13099,.36866,0,0,.75623],63:[0,.69141,0,0,.36245],65:[0,.69141,0,0,.7176],66:[0,.69141,0,0,.88397],67:[0,.69141,0,0,.61254],68:[0,.69141,0,0,.83158],69:[0,.69141,0,0,.66278],70:[.12604,.69141,0,0,.61119],71:[0,.69141,0,0,.78539],72:[.06302,.69141,0,0,.7203],73:[0,.69141,0,0,.55448],74:[.12604,.69141,0,0,.55231],75:[0,.69141,0,0,.66845],76:[0,.69141,0,0,.66602],77:[0,.69141,0,0,1.04953],78:[0,.69141,0,0,.83212],79:[0,.69141,0,0,.82699],80:[.18906,.69141,0,0,.82753],81:[.03781,.69141,0,0,.82699],82:[0,.69141,0,0,.82807],83:[0,.69141,0,0,.82861],84:[0,.69141,0,0,.66899],85:[0,.69141,0,0,.64576],86:[0,.69141,0,0,.83131],87:[0,.69141,0,0,1.04602],88:[0,.69141,0,0,.71922],89:[.18906,.69141,0,0,.83293],90:[.12604,.69141,0,0,.60201],91:[.24982,.74947,0,0,.27764],93:[.24982,.74947,0,0,.27764],94:[0,.69141,0,0,.49965],97:[0,.47534,0,0,.50046],98:[0,.69141,0,0,.51315],99:[0,.47534,0,0,.38946],100:[0,.62119,0,0,.49857],101:[0,.47534,0,0,.40053],102:[.18906,.69141,0,0,.32626],103:[.18906,.47534,0,0,.5037],104:[.18906,.69141,0,0,.52126],105:[0,.69141,0,0,.27899],106:[0,.69141,0,0,.28088],107:[0,.69141,0,0,.38946],108:[0,.69141,0,0,.27953],109:[0,.47534,0,0,.76676],110:[0,.47534,0,0,.52666],111:[0,.47534,0,0,.48885],112:[.18906,.52396,0,0,.50046],113:[.18906,.47534,0,0,.48912],114:[0,.47534,0,0,.38919],115:[0,.47534,0,0,.44266],116:[0,.62119,0,0,.33301],117:[0,.47534,0,0,.5172],118:[0,.52396,0,0,.5118],119:[0,.52396,0,0,.77351],120:[.18906,.47534,0,0,.38865],121:[.18906,.47534,0,0,.49884],122:[.18906,.47534,0,0,.39054],160:[0,0,0,0,.25],8216:[0,.69141,0,0,.21471],8217:[0,.69141,0,0,.21471],58112:[0,.62119,0,0,.49749],58113:[0,.62119,0,0,.4983],58114:[.18906,.69141,0,0,.33328],58115:[.18906,.69141,0,0,.32923],58116:[.18906,.47534,0,0,.50343],58117:[0,.69141,0,0,.33301],58118:[0,.62119,0,0,.33409],58119:[0,.47534,0,0,.50073]},"Main-Bold":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.35],34:[0,.69444,0,0,.60278],35:[.19444,.69444,0,0,.95833],36:[.05556,.75,0,0,.575],37:[.05556,.75,0,0,.95833],38:[0,.69444,0,0,.89444],39:[0,.69444,0,0,.31944],40:[.25,.75,0,0,.44722],41:[.25,.75,0,0,.44722],42:[0,.75,0,0,.575],43:[.13333,.63333,0,0,.89444],44:[.19444,.15556,0,0,.31944],45:[0,.44444,0,0,.38333],46:[0,.15556,0,0,.31944],47:[.25,.75,0,0,.575],48:[0,.64444,0,0,.575],49:[0,.64444,0,0,.575],50:[0,.64444,0,0,.575],51:[0,.64444,0,0,.575],52:[0,.64444,0,0,.575],53:[0,.64444,0,0,.575],54:[0,.64444,0,0,.575],55:[0,.64444,0,0,.575],56:[0,.64444,0,0,.575],57:[0,.64444,0,0,.575],58:[0,.44444,0,0,.31944],59:[.19444,.44444,0,0,.31944],60:[.08556,.58556,0,0,.89444],61:[-.10889,.39111,0,0,.89444],62:[.08556,.58556,0,0,.89444],63:[0,.69444,0,0,.54305],64:[0,.69444,0,0,.89444],65:[0,.68611,0,0,.86944],66:[0,.68611,0,0,.81805],67:[0,.68611,0,0,.83055],68:[0,.68611,0,0,.88194],69:[0,.68611,0,0,.75555],70:[0,.68611,0,0,.72361],71:[0,.68611,0,0,.90416],72:[0,.68611,0,0,.9],73:[0,.68611,0,0,.43611],74:[0,.68611,0,0,.59444],75:[0,.68611,0,0,.90138],76:[0,.68611,0,0,.69166],77:[0,.68611,0,0,1.09166],78:[0,.68611,0,0,.9],79:[0,.68611,0,0,.86388],80:[0,.68611,0,0,.78611],81:[.19444,.68611,0,0,.86388],82:[0,.68611,0,0,.8625],83:[0,.68611,0,0,.63889],84:[0,.68611,0,0,.8],85:[0,.68611,0,0,.88472],86:[0,.68611,.01597,0,.86944],87:[0,.68611,.01597,0,1.18888],88:[0,.68611,0,0,.86944],89:[0,.68611,.02875,0,.86944],90:[0,.68611,0,0,.70277],91:[.25,.75,0,0,.31944],92:[.25,.75,0,0,.575],93:[.25,.75,0,0,.31944],94:[0,.69444,0,0,.575],95:[.31,.13444,.03194,0,.575],97:[0,.44444,0,0,.55902],98:[0,.69444,0,0,.63889],99:[0,.44444,0,0,.51111],100:[0,.69444,0,0,.63889],101:[0,.44444,0,0,.52708],102:[0,.69444,.10903,0,.35139],103:[.19444,.44444,.01597,0,.575],104:[0,.69444,0,0,.63889],105:[0,.69444,0,0,.31944],106:[.19444,.69444,0,0,.35139],107:[0,.69444,0,0,.60694],108:[0,.69444,0,0,.31944],109:[0,.44444,0,0,.95833],110:[0,.44444,0,0,.63889],111:[0,.44444,0,0,.575],112:[.19444,.44444,0,0,.63889],113:[.19444,.44444,0,0,.60694],114:[0,.44444,0,0,.47361],115:[0,.44444,0,0,.45361],116:[0,.63492,0,0,.44722],117:[0,.44444,0,0,.63889],118:[0,.44444,.01597,0,.60694],119:[0,.44444,.01597,0,.83055],120:[0,.44444,0,0,.60694],121:[.19444,.44444,.01597,0,.60694],122:[0,.44444,0,0,.51111],123:[.25,.75,0,0,.575],124:[.25,.75,0,0,.31944],125:[.25,.75,0,0,.575],126:[.35,.34444,0,0,.575],160:[0,0,0,0,.25],163:[0,.69444,0,0,.86853],168:[0,.69444,0,0,.575],172:[0,.44444,0,0,.76666],176:[0,.69444,0,0,.86944],177:[.13333,.63333,0,0,.89444],184:[.17014,0,0,0,.51111],198:[0,.68611,0,0,1.04166],215:[.13333,.63333,0,0,.89444],216:[.04861,.73472,0,0,.89444],223:[0,.69444,0,0,.59722],230:[0,.44444,0,0,.83055],247:[.13333,.63333,0,0,.89444],248:[.09722,.54167,0,0,.575],305:[0,.44444,0,0,.31944],338:[0,.68611,0,0,1.16944],339:[0,.44444,0,0,.89444],567:[.19444,.44444,0,0,.35139],710:[0,.69444,0,0,.575],711:[0,.63194,0,0,.575],713:[0,.59611,0,0,.575],714:[0,.69444,0,0,.575],715:[0,.69444,0,0,.575],728:[0,.69444,0,0,.575],729:[0,.69444,0,0,.31944],730:[0,.69444,0,0,.86944],732:[0,.69444,0,0,.575],733:[0,.69444,0,0,.575],915:[0,.68611,0,0,.69166],916:[0,.68611,0,0,.95833],920:[0,.68611,0,0,.89444],923:[0,.68611,0,0,.80555],926:[0,.68611,0,0,.76666],928:[0,.68611,0,0,.9],931:[0,.68611,0,0,.83055],933:[0,.68611,0,0,.89444],934:[0,.68611,0,0,.83055],936:[0,.68611,0,0,.89444],937:[0,.68611,0,0,.83055],8211:[0,.44444,.03194,0,.575],8212:[0,.44444,.03194,0,1.14999],8216:[0,.69444,0,0,.31944],8217:[0,.69444,0,0,.31944],8220:[0,.69444,0,0,.60278],8221:[0,.69444,0,0,.60278],8224:[.19444,.69444,0,0,.51111],8225:[.19444,.69444,0,0,.51111],8242:[0,.55556,0,0,.34444],8407:[0,.72444,.15486,0,.575],8463:[0,.69444,0,0,.66759],8465:[0,.69444,0,0,.83055],8467:[0,.69444,0,0,.47361],8472:[.19444,.44444,0,0,.74027],8476:[0,.69444,0,0,.83055],8501:[0,.69444,0,0,.70277],8592:[-.10889,.39111,0,0,1.14999],8593:[.19444,.69444,0,0,.575],8594:[-.10889,.39111,0,0,1.14999],8595:[.19444,.69444,0,0,.575],8596:[-.10889,.39111,0,0,1.14999],8597:[.25,.75,0,0,.575],8598:[.19444,.69444,0,0,1.14999],8599:[.19444,.69444,0,0,1.14999],8600:[.19444,.69444,0,0,1.14999],8601:[.19444,.69444,0,0,1.14999],8636:[-.10889,.39111,0,0,1.14999],8637:[-.10889,.39111,0,0,1.14999],8640:[-.10889,.39111,0,0,1.14999],8641:[-.10889,.39111,0,0,1.14999],8656:[-.10889,.39111,0,0,1.14999],8657:[.19444,.69444,0,0,.70277],8658:[-.10889,.39111,0,0,1.14999],8659:[.19444,.69444,0,0,.70277],8660:[-.10889,.39111,0,0,1.14999],8661:[.25,.75,0,0,.70277],8704:[0,.69444,0,0,.63889],8706:[0,.69444,.06389,0,.62847],8707:[0,.69444,0,0,.63889],8709:[.05556,.75,0,0,.575],8711:[0,.68611,0,0,.95833],8712:[.08556,.58556,0,0,.76666],8715:[.08556,.58556,0,0,.76666],8722:[.13333,.63333,0,0,.89444],8723:[.13333,.63333,0,0,.89444],8725:[.25,.75,0,0,.575],8726:[.25,.75,0,0,.575],8727:[-.02778,.47222,0,0,.575],8728:[-.02639,.47361,0,0,.575],8729:[-.02639,.47361,0,0,.575],8730:[.18,.82,0,0,.95833],8733:[0,.44444,0,0,.89444],8734:[0,.44444,0,0,1.14999],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.31944],8741:[.25,.75,0,0,.575],8743:[0,.55556,0,0,.76666],8744:[0,.55556,0,0,.76666],8745:[0,.55556,0,0,.76666],8746:[0,.55556,0,0,.76666],8747:[.19444,.69444,.12778,0,.56875],8764:[-.10889,.39111,0,0,.89444],8768:[.19444,.69444,0,0,.31944],8771:[.00222,.50222,0,0,.89444],8773:[.027,.638,0,0,.894],8776:[.02444,.52444,0,0,.89444],8781:[.00222,.50222,0,0,.89444],8801:[.00222,.50222,0,0,.89444],8804:[.19667,.69667,0,0,.89444],8805:[.19667,.69667,0,0,.89444],8810:[.08556,.58556,0,0,1.14999],8811:[.08556,.58556,0,0,1.14999],8826:[.08556,.58556,0,0,.89444],8827:[.08556,.58556,0,0,.89444],8834:[.08556,.58556,0,0,.89444],8835:[.08556,.58556,0,0,.89444],8838:[.19667,.69667,0,0,.89444],8839:[.19667,.69667,0,0,.89444],8846:[0,.55556,0,0,.76666],8849:[.19667,.69667,0,0,.89444],8850:[.19667,.69667,0,0,.89444],8851:[0,.55556,0,0,.76666],8852:[0,.55556,0,0,.76666],8853:[.13333,.63333,0,0,.89444],8854:[.13333,.63333,0,0,.89444],8855:[.13333,.63333,0,0,.89444],8856:[.13333,.63333,0,0,.89444],8857:[.13333,.63333,0,0,.89444],8866:[0,.69444,0,0,.70277],8867:[0,.69444,0,0,.70277],8868:[0,.69444,0,0,.89444],8869:[0,.69444,0,0,.89444],8900:[-.02639,.47361,0,0,.575],8901:[-.02639,.47361,0,0,.31944],8902:[-.02778,.47222,0,0,.575],8968:[.25,.75,0,0,.51111],8969:[.25,.75,0,0,.51111],8970:[.25,.75,0,0,.51111],8971:[.25,.75,0,0,.51111],8994:[-.13889,.36111,0,0,1.14999],8995:[-.13889,.36111,0,0,1.14999],9651:[.19444,.69444,0,0,1.02222],9657:[-.02778,.47222,0,0,.575],9661:[.19444,.69444,0,0,1.02222],9667:[-.02778,.47222,0,0,.575],9711:[.19444,.69444,0,0,1.14999],9824:[.12963,.69444,0,0,.89444],9825:[.12963,.69444,0,0,.89444],9826:[.12963,.69444,0,0,.89444],9827:[.12963,.69444,0,0,.89444],9837:[0,.75,0,0,.44722],9838:[.19444,.69444,0,0,.44722],9839:[.19444,.69444,0,0,.44722],10216:[.25,.75,0,0,.44722],10217:[.25,.75,0,0,.44722],10815:[0,.68611,0,0,.9],10927:[.19667,.69667,0,0,.89444],10928:[.19667,.69667,0,0,.89444],57376:[.19444,.69444,0,0,0]},"Main-BoldItalic":{32:[0,0,0,0,.25],33:[0,.69444,.11417,0,.38611],34:[0,.69444,.07939,0,.62055],35:[.19444,.69444,.06833,0,.94444],37:[.05556,.75,.12861,0,.94444],38:[0,.69444,.08528,0,.88555],39:[0,.69444,.12945,0,.35555],40:[.25,.75,.15806,0,.47333],41:[.25,.75,.03306,0,.47333],42:[0,.75,.14333,0,.59111],43:[.10333,.60333,.03306,0,.88555],44:[.19444,.14722,0,0,.35555],45:[0,.44444,.02611,0,.41444],46:[0,.14722,0,0,.35555],47:[.25,.75,.15806,0,.59111],48:[0,.64444,.13167,0,.59111],49:[0,.64444,.13167,0,.59111],50:[0,.64444,.13167,0,.59111],51:[0,.64444,.13167,0,.59111],52:[.19444,.64444,.13167,0,.59111],53:[0,.64444,.13167,0,.59111],54:[0,.64444,.13167,0,.59111],55:[.19444,.64444,.13167,0,.59111],56:[0,.64444,.13167,0,.59111],57:[0,.64444,.13167,0,.59111],58:[0,.44444,.06695,0,.35555],59:[.19444,.44444,.06695,0,.35555],61:[-.10889,.39111,.06833,0,.88555],63:[0,.69444,.11472,0,.59111],64:[0,.69444,.09208,0,.88555],65:[0,.68611,0,0,.86555],66:[0,.68611,.0992,0,.81666],67:[0,.68611,.14208,0,.82666],68:[0,.68611,.09062,0,.87555],69:[0,.68611,.11431,0,.75666],70:[0,.68611,.12903,0,.72722],71:[0,.68611,.07347,0,.89527],72:[0,.68611,.17208,0,.8961],73:[0,.68611,.15681,0,.47166],74:[0,.68611,.145,0,.61055],75:[0,.68611,.14208,0,.89499],76:[0,.68611,0,0,.69777],77:[0,.68611,.17208,0,1.07277],78:[0,.68611,.17208,0,.8961],79:[0,.68611,.09062,0,.85499],80:[0,.68611,.0992,0,.78721],81:[.19444,.68611,.09062,0,.85499],82:[0,.68611,.02559,0,.85944],83:[0,.68611,.11264,0,.64999],84:[0,.68611,.12903,0,.7961],85:[0,.68611,.17208,0,.88083],86:[0,.68611,.18625,0,.86555],87:[0,.68611,.18625,0,1.15999],88:[0,.68611,.15681,0,.86555],89:[0,.68611,.19803,0,.86555],90:[0,.68611,.14208,0,.70888],91:[.25,.75,.1875,0,.35611],93:[.25,.75,.09972,0,.35611],94:[0,.69444,.06709,0,.59111],95:[.31,.13444,.09811,0,.59111],97:[0,.44444,.09426,0,.59111],98:[0,.69444,.07861,0,.53222],99:[0,.44444,.05222,0,.53222],100:[0,.69444,.10861,0,.59111],101:[0,.44444,.085,0,.53222],102:[.19444,.69444,.21778,0,.4],103:[.19444,.44444,.105,0,.53222],104:[0,.69444,.09426,0,.59111],105:[0,.69326,.11387,0,.35555],106:[.19444,.69326,.1672,0,.35555],107:[0,.69444,.11111,0,.53222],108:[0,.69444,.10861,0,.29666],109:[0,.44444,.09426,0,.94444],110:[0,.44444,.09426,0,.64999],111:[0,.44444,.07861,0,.59111],112:[.19444,.44444,.07861,0,.59111],113:[.19444,.44444,.105,0,.53222],114:[0,.44444,.11111,0,.50167],115:[0,.44444,.08167,0,.48694],116:[0,.63492,.09639,0,.385],117:[0,.44444,.09426,0,.62055],118:[0,.44444,.11111,0,.53222],119:[0,.44444,.11111,0,.76777],120:[0,.44444,.12583,0,.56055],121:[.19444,.44444,.105,0,.56166],122:[0,.44444,.13889,0,.49055],126:[.35,.34444,.11472,0,.59111],160:[0,0,0,0,.25],168:[0,.69444,.11473,0,.59111],176:[0,.69444,0,0,.94888],184:[.17014,0,0,0,.53222],198:[0,.68611,.11431,0,1.02277],216:[.04861,.73472,.09062,0,.88555],223:[.19444,.69444,.09736,0,.665],230:[0,.44444,.085,0,.82666],248:[.09722,.54167,.09458,0,.59111],305:[0,.44444,.09426,0,.35555],338:[0,.68611,.11431,0,1.14054],339:[0,.44444,.085,0,.82666],567:[.19444,.44444,.04611,0,.385],710:[0,.69444,.06709,0,.59111],711:[0,.63194,.08271,0,.59111],713:[0,.59444,.10444,0,.59111],714:[0,.69444,.08528,0,.59111],715:[0,.69444,0,0,.59111],728:[0,.69444,.10333,0,.59111],729:[0,.69444,.12945,0,.35555],730:[0,.69444,0,0,.94888],732:[0,.69444,.11472,0,.59111],733:[0,.69444,.11472,0,.59111],915:[0,.68611,.12903,0,.69777],916:[0,.68611,0,0,.94444],920:[0,.68611,.09062,0,.88555],923:[0,.68611,0,0,.80666],926:[0,.68611,.15092,0,.76777],928:[0,.68611,.17208,0,.8961],931:[0,.68611,.11431,0,.82666],933:[0,.68611,.10778,0,.88555],934:[0,.68611,.05632,0,.82666],936:[0,.68611,.10778,0,.88555],937:[0,.68611,.0992,0,.82666],8211:[0,.44444,.09811,0,.59111],8212:[0,.44444,.09811,0,1.18221],8216:[0,.69444,.12945,0,.35555],8217:[0,.69444,.12945,0,.35555],8220:[0,.69444,.16772,0,.62055],8221:[0,.69444,.07939,0,.62055]},"Main-Italic":{32:[0,0,0,0,.25],33:[0,.69444,.12417,0,.30667],34:[0,.69444,.06961,0,.51444],35:[.19444,.69444,.06616,0,.81777],37:[.05556,.75,.13639,0,.81777],38:[0,.69444,.09694,0,.76666],39:[0,.69444,.12417,0,.30667],40:[.25,.75,.16194,0,.40889],41:[.25,.75,.03694,0,.40889],42:[0,.75,.14917,0,.51111],43:[.05667,.56167,.03694,0,.76666],44:[.19444,.10556,0,0,.30667],45:[0,.43056,.02826,0,.35778],46:[0,.10556,0,0,.30667],47:[.25,.75,.16194,0,.51111],48:[0,.64444,.13556,0,.51111],49:[0,.64444,.13556,0,.51111],50:[0,.64444,.13556,0,.51111],51:[0,.64444,.13556,0,.51111],52:[.19444,.64444,.13556,0,.51111],53:[0,.64444,.13556,0,.51111],54:[0,.64444,.13556,0,.51111],55:[.19444,.64444,.13556,0,.51111],56:[0,.64444,.13556,0,.51111],57:[0,.64444,.13556,0,.51111],58:[0,.43056,.0582,0,.30667],59:[.19444,.43056,.0582,0,.30667],61:[-.13313,.36687,.06616,0,.76666],63:[0,.69444,.1225,0,.51111],64:[0,.69444,.09597,0,.76666],65:[0,.68333,0,0,.74333],66:[0,.68333,.10257,0,.70389],67:[0,.68333,.14528,0,.71555],68:[0,.68333,.09403,0,.755],69:[0,.68333,.12028,0,.67833],70:[0,.68333,.13305,0,.65277],71:[0,.68333,.08722,0,.77361],72:[0,.68333,.16389,0,.74333],73:[0,.68333,.15806,0,.38555],74:[0,.68333,.14028,0,.525],75:[0,.68333,.14528,0,.76888],76:[0,.68333,0,0,.62722],77:[0,.68333,.16389,0,.89666],78:[0,.68333,.16389,0,.74333],79:[0,.68333,.09403,0,.76666],80:[0,.68333,.10257,0,.67833],81:[.19444,.68333,.09403,0,.76666],82:[0,.68333,.03868,0,.72944],83:[0,.68333,.11972,0,.56222],84:[0,.68333,.13305,0,.71555],85:[0,.68333,.16389,0,.74333],86:[0,.68333,.18361,0,.74333],87:[0,.68333,.18361,0,.99888],88:[0,.68333,.15806,0,.74333],89:[0,.68333,.19383,0,.74333],90:[0,.68333,.14528,0,.61333],91:[.25,.75,.1875,0,.30667],93:[.25,.75,.10528,0,.30667],94:[0,.69444,.06646,0,.51111],95:[.31,.12056,.09208,0,.51111],97:[0,.43056,.07671,0,.51111],98:[0,.69444,.06312,0,.46],99:[0,.43056,.05653,0,.46],100:[0,.69444,.10333,0,.51111],101:[0,.43056,.07514,0,.46],102:[.19444,.69444,.21194,0,.30667],103:[.19444,.43056,.08847,0,.46],104:[0,.69444,.07671,0,.51111],105:[0,.65536,.1019,0,.30667],106:[.19444,.65536,.14467,0,.30667],107:[0,.69444,.10764,0,.46],108:[0,.69444,.10333,0,.25555],109:[0,.43056,.07671,0,.81777],110:[0,.43056,.07671,0,.56222],111:[0,.43056,.06312,0,.51111],112:[.19444,.43056,.06312,0,.51111],113:[.19444,.43056,.08847,0,.46],114:[0,.43056,.10764,0,.42166],115:[0,.43056,.08208,0,.40889],116:[0,.61508,.09486,0,.33222],117:[0,.43056,.07671,0,.53666],118:[0,.43056,.10764,0,.46],119:[0,.43056,.10764,0,.66444],120:[0,.43056,.12042,0,.46389],121:[.19444,.43056,.08847,0,.48555],122:[0,.43056,.12292,0,.40889],126:[.35,.31786,.11585,0,.51111],160:[0,0,0,0,.25],168:[0,.66786,.10474,0,.51111],176:[0,.69444,0,0,.83129],184:[.17014,0,0,0,.46],198:[0,.68333,.12028,0,.88277],216:[.04861,.73194,.09403,0,.76666],223:[.19444,.69444,.10514,0,.53666],230:[0,.43056,.07514,0,.71555],248:[.09722,.52778,.09194,0,.51111],338:[0,.68333,.12028,0,.98499],339:[0,.43056,.07514,0,.71555],710:[0,.69444,.06646,0,.51111],711:[0,.62847,.08295,0,.51111],713:[0,.56167,.10333,0,.51111],714:[0,.69444,.09694,0,.51111],715:[0,.69444,0,0,.51111],728:[0,.69444,.10806,0,.51111],729:[0,.66786,.11752,0,.30667],730:[0,.69444,0,0,.83129],732:[0,.66786,.11585,0,.51111],733:[0,.69444,.1225,0,.51111],915:[0,.68333,.13305,0,.62722],916:[0,.68333,0,0,.81777],920:[0,.68333,.09403,0,.76666],923:[0,.68333,0,0,.69222],926:[0,.68333,.15294,0,.66444],928:[0,.68333,.16389,0,.74333],931:[0,.68333,.12028,0,.71555],933:[0,.68333,.11111,0,.76666],934:[0,.68333,.05986,0,.71555],936:[0,.68333,.11111,0,.76666],937:[0,.68333,.10257,0,.71555],8211:[0,.43056,.09208,0,.51111],8212:[0,.43056,.09208,0,1.02222],8216:[0,.69444,.12417,0,.30667],8217:[0,.69444,.12417,0,.30667],8220:[0,.69444,.1685,0,.51444],8221:[0,.69444,.06961,0,.51444],8463:[0,.68889,0,0,.54028]},"Main-Regular":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.27778],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.77778],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.19444,.10556,0,0,.27778],45:[0,.43056,0,0,.33333],46:[0,.10556,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.64444,0,0,.5],49:[0,.64444,0,0,.5],50:[0,.64444,0,0,.5],51:[0,.64444,0,0,.5],52:[0,.64444,0,0,.5],53:[0,.64444,0,0,.5],54:[0,.64444,0,0,.5],55:[0,.64444,0,0,.5],56:[0,.64444,0,0,.5],57:[0,.64444,0,0,.5],58:[0,.43056,0,0,.27778],59:[.19444,.43056,0,0,.27778],60:[.0391,.5391,0,0,.77778],61:[-.13313,.36687,0,0,.77778],62:[.0391,.5391,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.77778],65:[0,.68333,0,0,.75],66:[0,.68333,0,0,.70834],67:[0,.68333,0,0,.72222],68:[0,.68333,0,0,.76389],69:[0,.68333,0,0,.68056],70:[0,.68333,0,0,.65278],71:[0,.68333,0,0,.78472],72:[0,.68333,0,0,.75],73:[0,.68333,0,0,.36111],74:[0,.68333,0,0,.51389],75:[0,.68333,0,0,.77778],76:[0,.68333,0,0,.625],77:[0,.68333,0,0,.91667],78:[0,.68333,0,0,.75],79:[0,.68333,0,0,.77778],80:[0,.68333,0,0,.68056],81:[.19444,.68333,0,0,.77778],82:[0,.68333,0,0,.73611],83:[0,.68333,0,0,.55556],84:[0,.68333,0,0,.72222],85:[0,.68333,0,0,.75],86:[0,.68333,.01389,0,.75],87:[0,.68333,.01389,0,1.02778],88:[0,.68333,0,0,.75],89:[0,.68333,.025,0,.75],90:[0,.68333,0,0,.61111],91:[.25,.75,0,0,.27778],92:[.25,.75,0,0,.5],93:[.25,.75,0,0,.27778],94:[0,.69444,0,0,.5],95:[.31,.12056,.02778,0,.5],97:[0,.43056,0,0,.5],98:[0,.69444,0,0,.55556],99:[0,.43056,0,0,.44445],100:[0,.69444,0,0,.55556],101:[0,.43056,0,0,.44445],102:[0,.69444,.07778,0,.30556],103:[.19444,.43056,.01389,0,.5],104:[0,.69444,0,0,.55556],105:[0,.66786,0,0,.27778],106:[.19444,.66786,0,0,.30556],107:[0,.69444,0,0,.52778],108:[0,.69444,0,0,.27778],109:[0,.43056,0,0,.83334],110:[0,.43056,0,0,.55556],111:[0,.43056,0,0,.5],112:[.19444,.43056,0,0,.55556],113:[.19444,.43056,0,0,.52778],114:[0,.43056,0,0,.39167],115:[0,.43056,0,0,.39445],116:[0,.61508,0,0,.38889],117:[0,.43056,0,0,.55556],118:[0,.43056,.01389,0,.52778],119:[0,.43056,.01389,0,.72222],120:[0,.43056,0,0,.52778],121:[.19444,.43056,.01389,0,.52778],122:[0,.43056,0,0,.44445],123:[.25,.75,0,0,.5],124:[.25,.75,0,0,.27778],125:[.25,.75,0,0,.5],126:[.35,.31786,0,0,.5],160:[0,0,0,0,.25],163:[0,.69444,0,0,.76909],167:[.19444,.69444,0,0,.44445],168:[0,.66786,0,0,.5],172:[0,.43056,0,0,.66667],176:[0,.69444,0,0,.75],177:[.08333,.58333,0,0,.77778],182:[.19444,.69444,0,0,.61111],184:[.17014,0,0,0,.44445],198:[0,.68333,0,0,.90278],215:[.08333,.58333,0,0,.77778],216:[.04861,.73194,0,0,.77778],223:[0,.69444,0,0,.5],230:[0,.43056,0,0,.72222],247:[.08333,.58333,0,0,.77778],248:[.09722,.52778,0,0,.5],305:[0,.43056,0,0,.27778],338:[0,.68333,0,0,1.01389],339:[0,.43056,0,0,.77778],567:[.19444,.43056,0,0,.30556],710:[0,.69444,0,0,.5],711:[0,.62847,0,0,.5],713:[0,.56778,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.66786,0,0,.27778],730:[0,.69444,0,0,.75],732:[0,.66786,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.68333,0,0,.625],916:[0,.68333,0,0,.83334],920:[0,.68333,0,0,.77778],923:[0,.68333,0,0,.69445],926:[0,.68333,0,0,.66667],928:[0,.68333,0,0,.75],931:[0,.68333,0,0,.72222],933:[0,.68333,0,0,.77778],934:[0,.68333,0,0,.72222],936:[0,.68333,0,0,.77778],937:[0,.68333,0,0,.72222],8211:[0,.43056,.02778,0,.5],8212:[0,.43056,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5],8224:[.19444,.69444,0,0,.44445],8225:[.19444,.69444,0,0,.44445],8230:[0,.123,0,0,1.172],8242:[0,.55556,0,0,.275],8407:[0,.71444,.15382,0,.5],8463:[0,.68889,0,0,.54028],8465:[0,.69444,0,0,.72222],8467:[0,.69444,0,.11111,.41667],8472:[.19444,.43056,0,.11111,.63646],8476:[0,.69444,0,0,.72222],8501:[0,.69444,0,0,.61111],8592:[-.13313,.36687,0,0,1],8593:[.19444,.69444,0,0,.5],8594:[-.13313,.36687,0,0,1],8595:[.19444,.69444,0,0,.5],8596:[-.13313,.36687,0,0,1],8597:[.25,.75,0,0,.5],8598:[.19444,.69444,0,0,1],8599:[.19444,.69444,0,0,1],8600:[.19444,.69444,0,0,1],8601:[.19444,.69444,0,0,1],8614:[.011,.511,0,0,1],8617:[.011,.511,0,0,1.126],8618:[.011,.511,0,0,1.126],8636:[-.13313,.36687,0,0,1],8637:[-.13313,.36687,0,0,1],8640:[-.13313,.36687,0,0,1],8641:[-.13313,.36687,0,0,1],8652:[.011,.671,0,0,1],8656:[-.13313,.36687,0,0,1],8657:[.19444,.69444,0,0,.61111],8658:[-.13313,.36687,0,0,1],8659:[.19444,.69444,0,0,.61111],8660:[-.13313,.36687,0,0,1],8661:[.25,.75,0,0,.61111],8704:[0,.69444,0,0,.55556],8706:[0,.69444,.05556,.08334,.5309],8707:[0,.69444,0,0,.55556],8709:[.05556,.75,0,0,.5],8711:[0,.68333,0,0,.83334],8712:[.0391,.5391,0,0,.66667],8715:[.0391,.5391,0,0,.66667],8722:[.08333,.58333,0,0,.77778],8723:[.08333,.58333,0,0,.77778],8725:[.25,.75,0,0,.5],8726:[.25,.75,0,0,.5],8727:[-.03472,.46528,0,0,.5],8728:[-.05555,.44445,0,0,.5],8729:[-.05555,.44445,0,0,.5],8730:[.2,.8,0,0,.83334],8733:[0,.43056,0,0,.77778],8734:[0,.43056,0,0,1],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.27778],8741:[.25,.75,0,0,.5],8743:[0,.55556,0,0,.66667],8744:[0,.55556,0,0,.66667],8745:[0,.55556,0,0,.66667],8746:[0,.55556,0,0,.66667],8747:[.19444,.69444,.11111,0,.41667],8764:[-.13313,.36687,0,0,.77778],8768:[.19444,.69444,0,0,.27778],8771:[-.03625,.46375,0,0,.77778],8773:[-.022,.589,0,0,.778],8776:[-.01688,.48312,0,0,.77778],8781:[-.03625,.46375,0,0,.77778],8784:[-.133,.673,0,0,.778],8801:[-.03625,.46375,0,0,.77778],8804:[.13597,.63597,0,0,.77778],8805:[.13597,.63597,0,0,.77778],8810:[.0391,.5391,0,0,1],8811:[.0391,.5391,0,0,1],8826:[.0391,.5391,0,0,.77778],8827:[.0391,.5391,0,0,.77778],8834:[.0391,.5391,0,0,.77778],8835:[.0391,.5391,0,0,.77778],8838:[.13597,.63597,0,0,.77778],8839:[.13597,.63597,0,0,.77778],8846:[0,.55556,0,0,.66667],8849:[.13597,.63597,0,0,.77778],8850:[.13597,.63597,0,0,.77778],8851:[0,.55556,0,0,.66667],8852:[0,.55556,0,0,.66667],8853:[.08333,.58333,0,0,.77778],8854:[.08333,.58333,0,0,.77778],8855:[.08333,.58333,0,0,.77778],8856:[.08333,.58333,0,0,.77778],8857:[.08333,.58333,0,0,.77778],8866:[0,.69444,0,0,.61111],8867:[0,.69444,0,0,.61111],8868:[0,.69444,0,0,.77778],8869:[0,.69444,0,0,.77778],8872:[.249,.75,0,0,.867],8900:[-.05555,.44445,0,0,.5],8901:[-.05555,.44445,0,0,.27778],8902:[-.03472,.46528,0,0,.5],8904:[.005,.505,0,0,.9],8942:[.03,.903,0,0,.278],8943:[-.19,.313,0,0,1.172],8945:[-.1,.823,0,0,1.282],8968:[.25,.75,0,0,.44445],8969:[.25,.75,0,0,.44445],8970:[.25,.75,0,0,.44445],8971:[.25,.75,0,0,.44445],8994:[-.14236,.35764,0,0,1],8995:[-.14236,.35764,0,0,1],9136:[.244,.744,0,0,.412],9137:[.244,.745,0,0,.412],9651:[.19444,.69444,0,0,.88889],9657:[-.03472,.46528,0,0,.5],9661:[.19444,.69444,0,0,.88889],9667:[-.03472,.46528,0,0,.5],9711:[.19444,.69444,0,0,1],9824:[.12963,.69444,0,0,.77778],9825:[.12963,.69444,0,0,.77778],9826:[.12963,.69444,0,0,.77778],9827:[.12963,.69444,0,0,.77778],9837:[0,.75,0,0,.38889],9838:[.19444,.69444,0,0,.38889],9839:[.19444,.69444,0,0,.38889],10216:[.25,.75,0,0,.38889],10217:[.25,.75,0,0,.38889],10222:[.244,.744,0,0,.412],10223:[.244,.745,0,0,.412],10229:[.011,.511,0,0,1.609],10230:[.011,.511,0,0,1.638],10231:[.011,.511,0,0,1.859],10232:[.024,.525,0,0,1.609],10233:[.024,.525,0,0,1.638],10234:[.024,.525,0,0,1.858],10236:[.011,.511,0,0,1.638],10815:[0,.68333,0,0,.75],10927:[.13597,.63597,0,0,.77778],10928:[.13597,.63597,0,0,.77778],57376:[.19444,.69444,0,0,0]},"Math-BoldItalic":{32:[0,0,0,0,.25],48:[0,.44444,0,0,.575],49:[0,.44444,0,0,.575],50:[0,.44444,0,0,.575],51:[.19444,.44444,0,0,.575],52:[.19444,.44444,0,0,.575],53:[.19444,.44444,0,0,.575],54:[0,.64444,0,0,.575],55:[.19444,.44444,0,0,.575],56:[0,.64444,0,0,.575],57:[.19444,.44444,0,0,.575],65:[0,.68611,0,0,.86944],66:[0,.68611,.04835,0,.8664],67:[0,.68611,.06979,0,.81694],68:[0,.68611,.03194,0,.93812],69:[0,.68611,.05451,0,.81007],70:[0,.68611,.15972,0,.68889],71:[0,.68611,0,0,.88673],72:[0,.68611,.08229,0,.98229],73:[0,.68611,.07778,0,.51111],74:[0,.68611,.10069,0,.63125],75:[0,.68611,.06979,0,.97118],76:[0,.68611,0,0,.75555],77:[0,.68611,.11424,0,1.14201],78:[0,.68611,.11424,0,.95034],79:[0,.68611,.03194,0,.83666],80:[0,.68611,.15972,0,.72309],81:[.19444,.68611,0,0,.86861],82:[0,.68611,.00421,0,.87235],83:[0,.68611,.05382,0,.69271],84:[0,.68611,.15972,0,.63663],85:[0,.68611,.11424,0,.80027],86:[0,.68611,.25555,0,.67778],87:[0,.68611,.15972,0,1.09305],88:[0,.68611,.07778,0,.94722],89:[0,.68611,.25555,0,.67458],90:[0,.68611,.06979,0,.77257],97:[0,.44444,0,0,.63287],98:[0,.69444,0,0,.52083],99:[0,.44444,0,0,.51342],100:[0,.69444,0,0,.60972],101:[0,.44444,0,0,.55361],102:[.19444,.69444,.11042,0,.56806],103:[.19444,.44444,.03704,0,.5449],104:[0,.69444,0,0,.66759],105:[0,.69326,0,0,.4048],106:[.19444,.69326,.0622,0,.47083],107:[0,.69444,.01852,0,.6037],108:[0,.69444,.0088,0,.34815],109:[0,.44444,0,0,1.0324],110:[0,.44444,0,0,.71296],111:[0,.44444,0,0,.58472],112:[.19444,.44444,0,0,.60092],113:[.19444,.44444,.03704,0,.54213],114:[0,.44444,.03194,0,.5287],115:[0,.44444,0,0,.53125],116:[0,.63492,0,0,.41528],117:[0,.44444,0,0,.68102],118:[0,.44444,.03704,0,.56666],119:[0,.44444,.02778,0,.83148],120:[0,.44444,0,0,.65903],121:[.19444,.44444,.03704,0,.59028],122:[0,.44444,.04213,0,.55509],160:[0,0,0,0,.25],915:[0,.68611,.15972,0,.65694],916:[0,.68611,0,0,.95833],920:[0,.68611,.03194,0,.86722],923:[0,.68611,0,0,.80555],926:[0,.68611,.07458,0,.84125],928:[0,.68611,.08229,0,.98229],931:[0,.68611,.05451,0,.88507],933:[0,.68611,.15972,0,.67083],934:[0,.68611,0,0,.76666],936:[0,.68611,.11653,0,.71402],937:[0,.68611,.04835,0,.8789],945:[0,.44444,0,0,.76064],946:[.19444,.69444,.03403,0,.65972],947:[.19444,.44444,.06389,0,.59003],948:[0,.69444,.03819,0,.52222],949:[0,.44444,0,0,.52882],950:[.19444,.69444,.06215,0,.50833],951:[.19444,.44444,.03704,0,.6],952:[0,.69444,.03194,0,.5618],953:[0,.44444,0,0,.41204],954:[0,.44444,0,0,.66759],955:[0,.69444,0,0,.67083],956:[.19444,.44444,0,0,.70787],957:[0,.44444,.06898,0,.57685],958:[.19444,.69444,.03021,0,.50833],959:[0,.44444,0,0,.58472],960:[0,.44444,.03704,0,.68241],961:[.19444,.44444,0,0,.6118],962:[.09722,.44444,.07917,0,.42361],963:[0,.44444,.03704,0,.68588],964:[0,.44444,.13472,0,.52083],965:[0,.44444,.03704,0,.63055],966:[.19444,.44444,0,0,.74722],967:[.19444,.44444,0,0,.71805],968:[.19444,.69444,.03704,0,.75833],969:[0,.44444,.03704,0,.71782],977:[0,.69444,0,0,.69155],981:[.19444,.69444,0,0,.7125],982:[0,.44444,.03194,0,.975],1009:[.19444,.44444,0,0,.6118],1013:[0,.44444,0,0,.48333],57649:[0,.44444,0,0,.39352],57911:[.19444,.44444,0,0,.43889]},"Math-Italic":{32:[0,0,0,0,.25],48:[0,.43056,0,0,.5],49:[0,.43056,0,0,.5],50:[0,.43056,0,0,.5],51:[.19444,.43056,0,0,.5],52:[.19444,.43056,0,0,.5],53:[.19444,.43056,0,0,.5],54:[0,.64444,0,0,.5],55:[.19444,.43056,0,0,.5],56:[0,.64444,0,0,.5],57:[.19444,.43056,0,0,.5],65:[0,.68333,0,.13889,.75],66:[0,.68333,.05017,.08334,.75851],67:[0,.68333,.07153,.08334,.71472],68:[0,.68333,.02778,.05556,.82792],69:[0,.68333,.05764,.08334,.7382],70:[0,.68333,.13889,.08334,.64306],71:[0,.68333,0,.08334,.78625],72:[0,.68333,.08125,.05556,.83125],73:[0,.68333,.07847,.11111,.43958],74:[0,.68333,.09618,.16667,.55451],75:[0,.68333,.07153,.05556,.84931],76:[0,.68333,0,.02778,.68056],77:[0,.68333,.10903,.08334,.97014],78:[0,.68333,.10903,.08334,.80347],79:[0,.68333,.02778,.08334,.76278],80:[0,.68333,.13889,.08334,.64201],81:[.19444,.68333,0,.08334,.79056],82:[0,.68333,.00773,.08334,.75929],83:[0,.68333,.05764,.08334,.6132],84:[0,.68333,.13889,.08334,.58438],85:[0,.68333,.10903,.02778,.68278],86:[0,.68333,.22222,0,.58333],87:[0,.68333,.13889,0,.94445],88:[0,.68333,.07847,.08334,.82847],89:[0,.68333,.22222,0,.58056],90:[0,.68333,.07153,.08334,.68264],97:[0,.43056,0,0,.52859],98:[0,.69444,0,0,.42917],99:[0,.43056,0,.05556,.43276],100:[0,.69444,0,.16667,.52049],101:[0,.43056,0,.05556,.46563],102:[.19444,.69444,.10764,.16667,.48959],103:[.19444,.43056,.03588,.02778,.47697],104:[0,.69444,0,0,.57616],105:[0,.65952,0,0,.34451],106:[.19444,.65952,.05724,0,.41181],107:[0,.69444,.03148,0,.5206],108:[0,.69444,.01968,.08334,.29838],109:[0,.43056,0,0,.87801],110:[0,.43056,0,0,.60023],111:[0,.43056,0,.05556,.48472],112:[.19444,.43056,0,.08334,.50313],113:[.19444,.43056,.03588,.08334,.44641],114:[0,.43056,.02778,.05556,.45116],115:[0,.43056,0,.05556,.46875],116:[0,.61508,0,.08334,.36111],117:[0,.43056,0,.02778,.57246],118:[0,.43056,.03588,.02778,.48472],119:[0,.43056,.02691,.08334,.71592],120:[0,.43056,0,.02778,.57153],121:[.19444,.43056,.03588,.05556,.49028],122:[0,.43056,.04398,.05556,.46505],160:[0,0,0,0,.25],915:[0,.68333,.13889,.08334,.61528],916:[0,.68333,0,.16667,.83334],920:[0,.68333,.02778,.08334,.76278],923:[0,.68333,0,.16667,.69445],926:[0,.68333,.07569,.08334,.74236],928:[0,.68333,.08125,.05556,.83125],931:[0,.68333,.05764,.08334,.77986],933:[0,.68333,.13889,.05556,.58333],934:[0,.68333,0,.08334,.66667],936:[0,.68333,.11,.05556,.61222],937:[0,.68333,.05017,.08334,.7724],945:[0,.43056,.0037,.02778,.6397],946:[.19444,.69444,.05278,.08334,.56563],947:[.19444,.43056,.05556,0,.51773],948:[0,.69444,.03785,.05556,.44444],949:[0,.43056,0,.08334,.46632],950:[.19444,.69444,.07378,.08334,.4375],951:[.19444,.43056,.03588,.05556,.49653],952:[0,.69444,.02778,.08334,.46944],953:[0,.43056,0,.05556,.35394],954:[0,.43056,0,0,.57616],955:[0,.69444,0,0,.58334],956:[.19444,.43056,0,.02778,.60255],957:[0,.43056,.06366,.02778,.49398],958:[.19444,.69444,.04601,.11111,.4375],959:[0,.43056,0,.05556,.48472],960:[0,.43056,.03588,0,.57003],961:[.19444,.43056,0,.08334,.51702],962:[.09722,.43056,.07986,.08334,.36285],963:[0,.43056,.03588,0,.57141],964:[0,.43056,.1132,.02778,.43715],965:[0,.43056,.03588,.02778,.54028],966:[.19444,.43056,0,.08334,.65417],967:[.19444,.43056,0,.05556,.62569],968:[.19444,.69444,.03588,.11111,.65139],969:[0,.43056,.03588,0,.62245],977:[0,.69444,0,.08334,.59144],981:[.19444,.69444,0,.08334,.59583],982:[0,.43056,.02778,0,.82813],1009:[.19444,.43056,0,.08334,.51702],1013:[0,.43056,0,.05556,.4059],57649:[0,.43056,0,.02778,.32246],57911:[.19444,.43056,0,.08334,.38403]},"SansSerif-Bold":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.36667],34:[0,.69444,0,0,.55834],35:[.19444,.69444,0,0,.91667],36:[.05556,.75,0,0,.55],37:[.05556,.75,0,0,1.02912],38:[0,.69444,0,0,.83056],39:[0,.69444,0,0,.30556],40:[.25,.75,0,0,.42778],41:[.25,.75,0,0,.42778],42:[0,.75,0,0,.55],43:[.11667,.61667,0,0,.85556],44:[.10556,.13056,0,0,.30556],45:[0,.45833,0,0,.36667],46:[0,.13056,0,0,.30556],47:[.25,.75,0,0,.55],48:[0,.69444,0,0,.55],49:[0,.69444,0,0,.55],50:[0,.69444,0,0,.55],51:[0,.69444,0,0,.55],52:[0,.69444,0,0,.55],53:[0,.69444,0,0,.55],54:[0,.69444,0,0,.55],55:[0,.69444,0,0,.55],56:[0,.69444,0,0,.55],57:[0,.69444,0,0,.55],58:[0,.45833,0,0,.30556],59:[.10556,.45833,0,0,.30556],61:[-.09375,.40625,0,0,.85556],63:[0,.69444,0,0,.51945],64:[0,.69444,0,0,.73334],65:[0,.69444,0,0,.73334],66:[0,.69444,0,0,.73334],67:[0,.69444,0,0,.70278],68:[0,.69444,0,0,.79445],69:[0,.69444,0,0,.64167],70:[0,.69444,0,0,.61111],71:[0,.69444,0,0,.73334],72:[0,.69444,0,0,.79445],73:[0,.69444,0,0,.33056],74:[0,.69444,0,0,.51945],75:[0,.69444,0,0,.76389],76:[0,.69444,0,0,.58056],77:[0,.69444,0,0,.97778],78:[0,.69444,0,0,.79445],79:[0,.69444,0,0,.79445],80:[0,.69444,0,0,.70278],81:[.10556,.69444,0,0,.79445],82:[0,.69444,0,0,.70278],83:[0,.69444,0,0,.61111],84:[0,.69444,0,0,.73334],85:[0,.69444,0,0,.76389],86:[0,.69444,.01528,0,.73334],87:[0,.69444,.01528,0,1.03889],88:[0,.69444,0,0,.73334],89:[0,.69444,.0275,0,.73334],90:[0,.69444,0,0,.67223],91:[.25,.75,0,0,.34306],93:[.25,.75,0,0,.34306],94:[0,.69444,0,0,.55],95:[.35,.10833,.03056,0,.55],97:[0,.45833,0,0,.525],98:[0,.69444,0,0,.56111],99:[0,.45833,0,0,.48889],100:[0,.69444,0,0,.56111],101:[0,.45833,0,0,.51111],102:[0,.69444,.07639,0,.33611],103:[.19444,.45833,.01528,0,.55],104:[0,.69444,0,0,.56111],105:[0,.69444,0,0,.25556],106:[.19444,.69444,0,0,.28611],107:[0,.69444,0,0,.53056],108:[0,.69444,0,0,.25556],109:[0,.45833,0,0,.86667],110:[0,.45833,0,0,.56111],111:[0,.45833,0,0,.55],112:[.19444,.45833,0,0,.56111],113:[.19444,.45833,0,0,.56111],114:[0,.45833,.01528,0,.37222],115:[0,.45833,0,0,.42167],116:[0,.58929,0,0,.40417],117:[0,.45833,0,0,.56111],118:[0,.45833,.01528,0,.5],119:[0,.45833,.01528,0,.74445],120:[0,.45833,0,0,.5],121:[.19444,.45833,.01528,0,.5],122:[0,.45833,0,0,.47639],126:[.35,.34444,0,0,.55],160:[0,0,0,0,.25],168:[0,.69444,0,0,.55],176:[0,.69444,0,0,.73334],180:[0,.69444,0,0,.55],184:[.17014,0,0,0,.48889],305:[0,.45833,0,0,.25556],567:[.19444,.45833,0,0,.28611],710:[0,.69444,0,0,.55],711:[0,.63542,0,0,.55],713:[0,.63778,0,0,.55],728:[0,.69444,0,0,.55],729:[0,.69444,0,0,.30556],730:[0,.69444,0,0,.73334],732:[0,.69444,0,0,.55],733:[0,.69444,0,0,.55],915:[0,.69444,0,0,.58056],916:[0,.69444,0,0,.91667],920:[0,.69444,0,0,.85556],923:[0,.69444,0,0,.67223],926:[0,.69444,0,0,.73334],928:[0,.69444,0,0,.79445],931:[0,.69444,0,0,.79445],933:[0,.69444,0,0,.85556],934:[0,.69444,0,0,.79445],936:[0,.69444,0,0,.85556],937:[0,.69444,0,0,.79445],8211:[0,.45833,.03056,0,.55],8212:[0,.45833,.03056,0,1.10001],8216:[0,.69444,0,0,.30556],8217:[0,.69444,0,0,.30556],8220:[0,.69444,0,0,.55834],8221:[0,.69444,0,0,.55834]},"SansSerif-Italic":{32:[0,0,0,0,.25],33:[0,.69444,.05733,0,.31945],34:[0,.69444,.00316,0,.5],35:[.19444,.69444,.05087,0,.83334],36:[.05556,.75,.11156,0,.5],37:[.05556,.75,.03126,0,.83334],38:[0,.69444,.03058,0,.75834],39:[0,.69444,.07816,0,.27778],40:[.25,.75,.13164,0,.38889],41:[.25,.75,.02536,0,.38889],42:[0,.75,.11775,0,.5],43:[.08333,.58333,.02536,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,.01946,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,.13164,0,.5],48:[0,.65556,.11156,0,.5],49:[0,.65556,.11156,0,.5],50:[0,.65556,.11156,0,.5],51:[0,.65556,.11156,0,.5],52:[0,.65556,.11156,0,.5],53:[0,.65556,.11156,0,.5],54:[0,.65556,.11156,0,.5],55:[0,.65556,.11156,0,.5],56:[0,.65556,.11156,0,.5],57:[0,.65556,.11156,0,.5],58:[0,.44444,.02502,0,.27778],59:[.125,.44444,.02502,0,.27778],61:[-.13,.37,.05087,0,.77778],63:[0,.69444,.11809,0,.47222],64:[0,.69444,.07555,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,.08293,0,.66667],67:[0,.69444,.11983,0,.63889],68:[0,.69444,.07555,0,.72223],69:[0,.69444,.11983,0,.59722],70:[0,.69444,.13372,0,.56945],71:[0,.69444,.11983,0,.66667],72:[0,.69444,.08094,0,.70834],73:[0,.69444,.13372,0,.27778],74:[0,.69444,.08094,0,.47222],75:[0,.69444,.11983,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,.08094,0,.875],78:[0,.69444,.08094,0,.70834],79:[0,.69444,.07555,0,.73611],80:[0,.69444,.08293,0,.63889],81:[.125,.69444,.07555,0,.73611],82:[0,.69444,.08293,0,.64584],83:[0,.69444,.09205,0,.55556],84:[0,.69444,.13372,0,.68056],85:[0,.69444,.08094,0,.6875],86:[0,.69444,.1615,0,.66667],87:[0,.69444,.1615,0,.94445],88:[0,.69444,.13372,0,.66667],89:[0,.69444,.17261,0,.66667],90:[0,.69444,.11983,0,.61111],91:[.25,.75,.15942,0,.28889],93:[.25,.75,.08719,0,.28889],94:[0,.69444,.0799,0,.5],95:[.35,.09444,.08616,0,.5],97:[0,.44444,.00981,0,.48056],98:[0,.69444,.03057,0,.51667],99:[0,.44444,.08336,0,.44445],100:[0,.69444,.09483,0,.51667],101:[0,.44444,.06778,0,.44445],102:[0,.69444,.21705,0,.30556],103:[.19444,.44444,.10836,0,.5],104:[0,.69444,.01778,0,.51667],105:[0,.67937,.09718,0,.23889],106:[.19444,.67937,.09162,0,.26667],107:[0,.69444,.08336,0,.48889],108:[0,.69444,.09483,0,.23889],109:[0,.44444,.01778,0,.79445],110:[0,.44444,.01778,0,.51667],111:[0,.44444,.06613,0,.5],112:[.19444,.44444,.0389,0,.51667],113:[.19444,.44444,.04169,0,.51667],114:[0,.44444,.10836,0,.34167],115:[0,.44444,.0778,0,.38333],116:[0,.57143,.07225,0,.36111],117:[0,.44444,.04169,0,.51667],118:[0,.44444,.10836,0,.46111],119:[0,.44444,.10836,0,.68334],120:[0,.44444,.09169,0,.46111],121:[.19444,.44444,.10836,0,.46111],122:[0,.44444,.08752,0,.43472],126:[.35,.32659,.08826,0,.5],160:[0,0,0,0,.25],168:[0,.67937,.06385,0,.5],176:[0,.69444,0,0,.73752],184:[.17014,0,0,0,.44445],305:[0,.44444,.04169,0,.23889],567:[.19444,.44444,.04169,0,.26667],710:[0,.69444,.0799,0,.5],711:[0,.63194,.08432,0,.5],713:[0,.60889,.08776,0,.5],714:[0,.69444,.09205,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,.09483,0,.5],729:[0,.67937,.07774,0,.27778],730:[0,.69444,0,0,.73752],732:[0,.67659,.08826,0,.5],733:[0,.69444,.09205,0,.5],915:[0,.69444,.13372,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,.07555,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,.12816,0,.66667],928:[0,.69444,.08094,0,.70834],931:[0,.69444,.11983,0,.72222],933:[0,.69444,.09031,0,.77778],934:[0,.69444,.04603,0,.72222],936:[0,.69444,.09031,0,.77778],937:[0,.69444,.08293,0,.72222],8211:[0,.44444,.08616,0,.5],8212:[0,.44444,.08616,0,1],8216:[0,.69444,.07816,0,.27778],8217:[0,.69444,.07816,0,.27778],8220:[0,.69444,.14205,0,.5],8221:[0,.69444,.00316,0,.5]},"SansSerif-Regular":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.31945],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.75834],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,0,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.65556,0,0,.5],49:[0,.65556,0,0,.5],50:[0,.65556,0,0,.5],51:[0,.65556,0,0,.5],52:[0,.65556,0,0,.5],53:[0,.65556,0,0,.5],54:[0,.65556,0,0,.5],55:[0,.65556,0,0,.5],56:[0,.65556,0,0,.5],57:[0,.65556,0,0,.5],58:[0,.44444,0,0,.27778],59:[.125,.44444,0,0,.27778],61:[-.13,.37,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,0,0,.66667],67:[0,.69444,0,0,.63889],68:[0,.69444,0,0,.72223],69:[0,.69444,0,0,.59722],70:[0,.69444,0,0,.56945],71:[0,.69444,0,0,.66667],72:[0,.69444,0,0,.70834],73:[0,.69444,0,0,.27778],74:[0,.69444,0,0,.47222],75:[0,.69444,0,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,0,0,.875],78:[0,.69444,0,0,.70834],79:[0,.69444,0,0,.73611],80:[0,.69444,0,0,.63889],81:[.125,.69444,0,0,.73611],82:[0,.69444,0,0,.64584],83:[0,.69444,0,0,.55556],84:[0,.69444,0,0,.68056],85:[0,.69444,0,0,.6875],86:[0,.69444,.01389,0,.66667],87:[0,.69444,.01389,0,.94445],88:[0,.69444,0,0,.66667],89:[0,.69444,.025,0,.66667],90:[0,.69444,0,0,.61111],91:[.25,.75,0,0,.28889],93:[.25,.75,0,0,.28889],94:[0,.69444,0,0,.5],95:[.35,.09444,.02778,0,.5],97:[0,.44444,0,0,.48056],98:[0,.69444,0,0,.51667],99:[0,.44444,0,0,.44445],100:[0,.69444,0,0,.51667],101:[0,.44444,0,0,.44445],102:[0,.69444,.06944,0,.30556],103:[.19444,.44444,.01389,0,.5],104:[0,.69444,0,0,.51667],105:[0,.67937,0,0,.23889],106:[.19444,.67937,0,0,.26667],107:[0,.69444,0,0,.48889],108:[0,.69444,0,0,.23889],109:[0,.44444,0,0,.79445],110:[0,.44444,0,0,.51667],111:[0,.44444,0,0,.5],112:[.19444,.44444,0,0,.51667],113:[.19444,.44444,0,0,.51667],114:[0,.44444,.01389,0,.34167],115:[0,.44444,0,0,.38333],116:[0,.57143,0,0,.36111],117:[0,.44444,0,0,.51667],118:[0,.44444,.01389,0,.46111],119:[0,.44444,.01389,0,.68334],120:[0,.44444,0,0,.46111],121:[.19444,.44444,.01389,0,.46111],122:[0,.44444,0,0,.43472],126:[.35,.32659,0,0,.5],160:[0,0,0,0,.25],168:[0,.67937,0,0,.5],176:[0,.69444,0,0,.66667],184:[.17014,0,0,0,.44445],305:[0,.44444,0,0,.23889],567:[.19444,.44444,0,0,.26667],710:[0,.69444,0,0,.5],711:[0,.63194,0,0,.5],713:[0,.60889,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.67937,0,0,.27778],730:[0,.69444,0,0,.66667],732:[0,.67659,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.69444,0,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,0,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,0,0,.66667],928:[0,.69444,0,0,.70834],931:[0,.69444,0,0,.72222],933:[0,.69444,0,0,.77778],934:[0,.69444,0,0,.72222],936:[0,.69444,0,0,.77778],937:[0,.69444,0,0,.72222],8211:[0,.44444,.02778,0,.5],8212:[0,.44444,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5]},"Script-Regular":{32:[0,0,0,0,.25],65:[0,.7,.22925,0,.80253],66:[0,.7,.04087,0,.90757],67:[0,.7,.1689,0,.66619],68:[0,.7,.09371,0,.77443],69:[0,.7,.18583,0,.56162],70:[0,.7,.13634,0,.89544],71:[0,.7,.17322,0,.60961],72:[0,.7,.29694,0,.96919],73:[0,.7,.19189,0,.80907],74:[.27778,.7,.19189,0,1.05159],75:[0,.7,.31259,0,.91364],76:[0,.7,.19189,0,.87373],77:[0,.7,.15981,0,1.08031],78:[0,.7,.3525,0,.9015],79:[0,.7,.08078,0,.73787],80:[0,.7,.08078,0,1.01262],81:[0,.7,.03305,0,.88282],82:[0,.7,.06259,0,.85],83:[0,.7,.19189,0,.86767],84:[0,.7,.29087,0,.74697],85:[0,.7,.25815,0,.79996],86:[0,.7,.27523,0,.62204],87:[0,.7,.27523,0,.80532],88:[0,.7,.26006,0,.94445],89:[0,.7,.2939,0,.70961],90:[0,.7,.24037,0,.8212],160:[0,0,0,0,.25]},"Size1-Regular":{32:[0,0,0,0,.25],40:[.35001,.85,0,0,.45834],41:[.35001,.85,0,0,.45834],47:[.35001,.85,0,0,.57778],91:[.35001,.85,0,0,.41667],92:[.35001,.85,0,0,.57778],93:[.35001,.85,0,0,.41667],123:[.35001,.85,0,0,.58334],125:[.35001,.85,0,0,.58334],160:[0,0,0,0,.25],710:[0,.72222,0,0,.55556],732:[0,.72222,0,0,.55556],770:[0,.72222,0,0,.55556],771:[0,.72222,0,0,.55556],8214:[-99e-5,.601,0,0,.77778],8593:[1e-5,.6,0,0,.66667],8595:[1e-5,.6,0,0,.66667],8657:[1e-5,.6,0,0,.77778],8659:[1e-5,.6,0,0,.77778],8719:[.25001,.75,0,0,.94445],8720:[.25001,.75,0,0,.94445],8721:[.25001,.75,0,0,1.05556],8730:[.35001,.85,0,0,1],8739:[-.00599,.606,0,0,.33333],8741:[-.00599,.606,0,0,.55556],8747:[.30612,.805,.19445,0,.47222],8748:[.306,.805,.19445,0,.47222],8749:[.306,.805,.19445,0,.47222],8750:[.30612,.805,.19445,0,.47222],8896:[.25001,.75,0,0,.83334],8897:[.25001,.75,0,0,.83334],8898:[.25001,.75,0,0,.83334],8899:[.25001,.75,0,0,.83334],8968:[.35001,.85,0,0,.47222],8969:[.35001,.85,0,0,.47222],8970:[.35001,.85,0,0,.47222],8971:[.35001,.85,0,0,.47222],9168:[-99e-5,.601,0,0,.66667],10216:[.35001,.85,0,0,.47222],10217:[.35001,.85,0,0,.47222],10752:[.25001,.75,0,0,1.11111],10753:[.25001,.75,0,0,1.11111],10754:[.25001,.75,0,0,1.11111],10756:[.25001,.75,0,0,.83334],10758:[.25001,.75,0,0,.83334]},"Size2-Regular":{32:[0,0,0,0,.25],40:[.65002,1.15,0,0,.59722],41:[.65002,1.15,0,0,.59722],47:[.65002,1.15,0,0,.81111],91:[.65002,1.15,0,0,.47222],92:[.65002,1.15,0,0,.81111],93:[.65002,1.15,0,0,.47222],123:[.65002,1.15,0,0,.66667],125:[.65002,1.15,0,0,.66667],160:[0,0,0,0,.25],710:[0,.75,0,0,1],732:[0,.75,0,0,1],770:[0,.75,0,0,1],771:[0,.75,0,0,1],8719:[.55001,1.05,0,0,1.27778],8720:[.55001,1.05,0,0,1.27778],8721:[.55001,1.05,0,0,1.44445],8730:[.65002,1.15,0,0,1],8747:[.86225,1.36,.44445,0,.55556],8748:[.862,1.36,.44445,0,.55556],8749:[.862,1.36,.44445,0,.55556],8750:[.86225,1.36,.44445,0,.55556],8896:[.55001,1.05,0,0,1.11111],8897:[.55001,1.05,0,0,1.11111],8898:[.55001,1.05,0,0,1.11111],8899:[.55001,1.05,0,0,1.11111],8968:[.65002,1.15,0,0,.52778],8969:[.65002,1.15,0,0,.52778],8970:[.65002,1.15,0,0,.52778],8971:[.65002,1.15,0,0,.52778],10216:[.65002,1.15,0,0,.61111],10217:[.65002,1.15,0,0,.61111],10752:[.55001,1.05,0,0,1.51112],10753:[.55001,1.05,0,0,1.51112],10754:[.55001,1.05,0,0,1.51112],10756:[.55001,1.05,0,0,1.11111],10758:[.55001,1.05,0,0,1.11111]},"Size3-Regular":{32:[0,0,0,0,.25],40:[.95003,1.45,0,0,.73611],41:[.95003,1.45,0,0,.73611],47:[.95003,1.45,0,0,1.04445],91:[.95003,1.45,0,0,.52778],92:[.95003,1.45,0,0,1.04445],93:[.95003,1.45,0,0,.52778],123:[.95003,1.45,0,0,.75],125:[.95003,1.45,0,0,.75],160:[0,0,0,0,.25],710:[0,.75,0,0,1.44445],732:[0,.75,0,0,1.44445],770:[0,.75,0,0,1.44445],771:[0,.75,0,0,1.44445],8730:[.95003,1.45,0,0,1],8968:[.95003,1.45,0,0,.58334],8969:[.95003,1.45,0,0,.58334],8970:[.95003,1.45,0,0,.58334],8971:[.95003,1.45,0,0,.58334],10216:[.95003,1.45,0,0,.75],10217:[.95003,1.45,0,0,.75]},"Size4-Regular":{32:[0,0,0,0,.25],40:[1.25003,1.75,0,0,.79167],41:[1.25003,1.75,0,0,.79167],47:[1.25003,1.75,0,0,1.27778],91:[1.25003,1.75,0,0,.58334],92:[1.25003,1.75,0,0,1.27778],93:[1.25003,1.75,0,0,.58334],123:[1.25003,1.75,0,0,.80556],125:[1.25003,1.75,0,0,.80556],160:[0,0,0,0,.25],710:[0,.825,0,0,1.8889],732:[0,.825,0,0,1.8889],770:[0,.825,0,0,1.8889],771:[0,.825,0,0,1.8889],8730:[1.25003,1.75,0,0,1],8968:[1.25003,1.75,0,0,.63889],8969:[1.25003,1.75,0,0,.63889],8970:[1.25003,1.75,0,0,.63889],8971:[1.25003,1.75,0,0,.63889],9115:[.64502,1.155,0,0,.875],9116:[1e-5,.6,0,0,.875],9117:[.64502,1.155,0,0,.875],9118:[.64502,1.155,0,0,.875],9119:[1e-5,.6,0,0,.875],9120:[.64502,1.155,0,0,.875],9121:[.64502,1.155,0,0,.66667],9122:[-99e-5,.601,0,0,.66667],9123:[.64502,1.155,0,0,.66667],9124:[.64502,1.155,0,0,.66667],9125:[-99e-5,.601,0,0,.66667],9126:[.64502,1.155,0,0,.66667],9127:[1e-5,.9,0,0,.88889],9128:[.65002,1.15,0,0,.88889],9129:[.90001,0,0,0,.88889],9130:[0,.3,0,0,.88889],9131:[1e-5,.9,0,0,.88889],9132:[.65002,1.15,0,0,.88889],9133:[.90001,0,0,0,.88889],9143:[.88502,.915,0,0,1.05556],10216:[1.25003,1.75,0,0,.80556],10217:[1.25003,1.75,0,0,.80556],57344:[-.00499,.605,0,0,1.05556],57345:[-.00499,.605,0,0,1.05556],57680:[0,.12,0,0,.45],57681:[0,.12,0,0,.45],57682:[0,.12,0,0,.45],57683:[0,.12,0,0,.45]},"Typewriter-Regular":{32:[0,0,0,0,.525],33:[0,.61111,0,0,.525],34:[0,.61111,0,0,.525],35:[0,.61111,0,0,.525],36:[.08333,.69444,0,0,.525],37:[.08333,.69444,0,0,.525],38:[0,.61111,0,0,.525],39:[0,.61111,0,0,.525],40:[.08333,.69444,0,0,.525],41:[.08333,.69444,0,0,.525],42:[0,.52083,0,0,.525],43:[-.08056,.53055,0,0,.525],44:[.13889,.125,0,0,.525],45:[-.08056,.53055,0,0,.525],46:[0,.125,0,0,.525],47:[.08333,.69444,0,0,.525],48:[0,.61111,0,0,.525],49:[0,.61111,0,0,.525],50:[0,.61111,0,0,.525],51:[0,.61111,0,0,.525],52:[0,.61111,0,0,.525],53:[0,.61111,0,0,.525],54:[0,.61111,0,0,.525],55:[0,.61111,0,0,.525],56:[0,.61111,0,0,.525],57:[0,.61111,0,0,.525],58:[0,.43056,0,0,.525],59:[.13889,.43056,0,0,.525],60:[-.05556,.55556,0,0,.525],61:[-.19549,.41562,0,0,.525],62:[-.05556,.55556,0,0,.525],63:[0,.61111,0,0,.525],64:[0,.61111,0,0,.525],65:[0,.61111,0,0,.525],66:[0,.61111,0,0,.525],67:[0,.61111,0,0,.525],68:[0,.61111,0,0,.525],69:[0,.61111,0,0,.525],70:[0,.61111,0,0,.525],71:[0,.61111,0,0,.525],72:[0,.61111,0,0,.525],73:[0,.61111,0,0,.525],74:[0,.61111,0,0,.525],75:[0,.61111,0,0,.525],76:[0,.61111,0,0,.525],77:[0,.61111,0,0,.525],78:[0,.61111,0,0,.525],79:[0,.61111,0,0,.525],80:[0,.61111,0,0,.525],81:[.13889,.61111,0,0,.525],82:[0,.61111,0,0,.525],83:[0,.61111,0,0,.525],84:[0,.61111,0,0,.525],85:[0,.61111,0,0,.525],86:[0,.61111,0,0,.525],87:[0,.61111,0,0,.525],88:[0,.61111,0,0,.525],89:[0,.61111,0,0,.525],90:[0,.61111,0,0,.525],91:[.08333,.69444,0,0,.525],92:[.08333,.69444,0,0,.525],93:[.08333,.69444,0,0,.525],94:[0,.61111,0,0,.525],95:[.09514,0,0,0,.525],96:[0,.61111,0,0,.525],97:[0,.43056,0,0,.525],98:[0,.61111,0,0,.525],99:[0,.43056,0,0,.525],100:[0,.61111,0,0,.525],101:[0,.43056,0,0,.525],102:[0,.61111,0,0,.525],103:[.22222,.43056,0,0,.525],104:[0,.61111,0,0,.525],105:[0,.61111,0,0,.525],106:[.22222,.61111,0,0,.525],107:[0,.61111,0,0,.525],108:[0,.61111,0,0,.525],109:[0,.43056,0,0,.525],110:[0,.43056,0,0,.525],111:[0,.43056,0,0,.525],112:[.22222,.43056,0,0,.525],113:[.22222,.43056,0,0,.525],114:[0,.43056,0,0,.525],115:[0,.43056,0,0,.525],116:[0,.55358,0,0,.525],117:[0,.43056,0,0,.525],118:[0,.43056,0,0,.525],119:[0,.43056,0,0,.525],120:[0,.43056,0,0,.525],121:[.22222,.43056,0,0,.525],122:[0,.43056,0,0,.525],123:[.08333,.69444,0,0,.525],124:[.08333,.69444,0,0,.525],125:[.08333,.69444,0,0,.525],126:[0,.61111,0,0,.525],127:[0,.61111,0,0,.525],160:[0,0,0,0,.525],176:[0,.61111,0,0,.525],184:[.19445,0,0,0,.525],305:[0,.43056,0,0,.525],567:[.22222,.43056,0,0,.525],711:[0,.56597,0,0,.525],713:[0,.56555,0,0,.525],714:[0,.61111,0,0,.525],715:[0,.61111,0,0,.525],728:[0,.61111,0,0,.525],730:[0,.61111,0,0,.525],770:[0,.61111,0,0,.525],771:[0,.61111,0,0,.525],776:[0,.61111,0,0,.525],915:[0,.61111,0,0,.525],916:[0,.61111,0,0,.525],920:[0,.61111,0,0,.525],923:[0,.61111,0,0,.525],926:[0,.61111,0,0,.525],928:[0,.61111,0,0,.525],931:[0,.61111,0,0,.525],933:[0,.61111,0,0,.525],934:[0,.61111,0,0,.525],936:[0,.61111,0,0,.525],937:[0,.61111,0,0,.525],8216:[0,.61111,0,0,.525],8217:[0,.61111,0,0,.525],8242:[0,.61111,0,0,.525],9251:[.11111,.21944,0,0,.525]}},Gs={slant:[.25,.25,.25],space:[0,0,0],stretch:[0,0,0],shrink:[0,0,0],xHeight:[.431,.431,.431],quad:[1,1.171,1.472],extraSpace:[0,0,0],num1:[.677,.732,.925],num2:[.394,.384,.387],num3:[.444,.471,.504],denom1:[.686,.752,1.025],denom2:[.345,.344,.532],sup1:[.413,.503,.504],sup2:[.363,.431,.404],sup3:[.289,.286,.294],sub1:[.15,.143,.2],sub2:[.247,.286,.4],supDrop:[.386,.353,.494],subDrop:[.05,.071,.1],delim1:[2.39,1.7,1.98],delim2:[1.01,1.157,1.42],axisHeight:[.25,.25,.25],defaultRuleThickness:[.04,.049,.049],bigOpSpacing1:[.111,.111,.111],bigOpSpacing2:[.166,.166,.166],bigOpSpacing3:[.2,.2,.2],bigOpSpacing4:[.6,.611,.611],bigOpSpacing5:[.1,.143,.143],sqrtRuleThickness:[.04,.04,.04],ptPerEm:[10,10,10],doubleRuleSep:[.2,.2,.2],arrayRuleWidth:[.04,.04,.04],fboxsep:[.3,.3,.3],fboxrule:[.04,.04,.04]},Ys={"Å":"A","Ð":"D","Þ":"o","å":"a","ð":"d","þ":"o","А":"A","Б":"B","В":"B","Г":"F","Д":"A","Е":"E","Ж":"K","З":"3","И":"N","Й":"N","К":"K","Л":"N","М":"M","Н":"H","О":"O","П":"N","Р":"P","С":"C","Т":"T","У":"y","Ф":"O","Х":"X","Ц":"U","Ч":"h","Ш":"W","Щ":"W","Ъ":"B","Ы":"X","Ь":"B","Э":"3","Ю":"X","Я":"R","а":"a","б":"b","в":"a","г":"r","д":"y","е":"e","ж":"m","з":"e","и":"n","й":"n","к":"n","л":"n","м":"m","н":"n","о":"o","п":"n","р":"p","с":"c","т":"o","у":"y","ф":"b","х":"x","ц":"n","ч":"n","ш":"w","щ":"w","ъ":"a","ы":"m","ь":"a","э":"e","ю":"m","я":"r"},mt(Hr,"setFontMetrics"),mt(Ur,"getCharacterMetrics"),Xs={},mt(qr,"getGlobalMetrics"),Ks=[[1,1,1],[2,1,1],[3,1,1],[4,2,1],[5,2,1],[6,3,1],[7,4,2],[8,6,3],[9,7,6],[10,8,7],[11,10,9]],Zs=[.5,.6,.7,.8,.9,1,1.2,1.44,1.728,2.074,2.488],Qs=mt(function(e,t){return t.size<2?e:Ks[e-1][t.size-1]},"sizeAtStyle"),(Js=class r{static{mt(this,"Options")}constructor(e){this.style=void 0,this.color=void 0,this.size=void 0,this.textSize=void 0,this.phantom=void 0,this.font=void 0,this.fontFamily=void 0,this.fontWeight=void 0,this.fontShape=void 0,this.sizeMultiplier=void 0,this.maxSize=void 0,this.minRuleThickness=void 0,this._fontMetrics=void 0,this.style=e.style,this.color=e.color,this.size=e.size||r.BASESIZE,this.textSize=e.textSize||this.size,this.phantom=!!e.phantom,this.font=e.font||"",this.fontFamily=e.fontFamily||"",this.fontWeight=e.fontWeight||"",this.fontShape=e.fontShape||"",this.sizeMultiplier=Zs[this.size-1],this.maxSize=e.maxSize,this.minRuleThickness=e.minRuleThickness,this._fontMetrics=void 0}extend(e){var t,i={style:this.style,size:this.size,textSize:this.textSize,color:this.color,phantom:this.phantom,font:this.font,fontFamily:this.fontFamily,fontWeight:this.fontWeight,fontShape:this.fontShape,maxSize:this.maxSize,minRuleThickness:this.minRuleThickness};for(t in e)e.hasOwnProperty(t)&&(i[t]=e[t]);return new r(i)}havingStyle(e){return this.style===e?this:this.extend({style:e,size:Qs(this.textSize,e)})}havingCrampedStyle(){return this.havingStyle(this.style.cramp())}havingSize(e){return this.size===e&&this.textSize===e?this:this.extend({style:this.style.text(),size:e,textSize:e,sizeMultiplier:Zs[e-1]})}havingBaseStyle(e){e=e||this.style.text();var t=Qs(r.BASESIZE,e);return this.size===t&&this.textSize===r.BASESIZE&&this.style===e?this:this.extend({style:e,size:t})}havingBaseSizing(){var e;switch(this.style.id){case 4:case 5:e=3;break;case 6:case 7:e=1;break;default:e=6}return this.extend({style:this.style.text(),size:e})}withColor(e){return this.extend({color:e})}withPhantom(){return this.extend({phantom:!0})}withFont(e){return this.extend({font:e})}withTextFontFamily(e){return this.extend({fontFamily:e,font:""})}withTextFontWeight(e){return this.extend({fontWeight:e,font:""})}withTextFontShape(e){return this.extend({fontShape:e,font:""})}sizingClasses(e){return e.size!==this.size?["sizing","reset-size"+e.size,"size"+this.size]:[]}baseSizingClasses(){return this.size!==r.BASESIZE?["sizing","reset-size"+this.size,"size"+r.BASESIZE]:[]}fontMetrics(){return this._fontMetrics||(this._fontMetrics=qr(this.size)),this._fontMetrics}getColor(){return this.phantom?"transparent":this.color}}).BASESIZE=6,ea={pt:1,mm:7227/2540,cm:7227/254,in:72.27,bp:1.00375,pc:12,dd:1238/1157,cc:14856/1157,nd:685/642,nc:1370/107,sp:1/65536,px:1.00375},ta={ex:!0,em:!0,mu:!0},ia=mt(function(e){return(e="string"!=typeof e?e.unit:e)in ea||e in ta||"ex"===e},"validUnit"),na=mt(function(e,t){var i;if(e.unit in ea)i=ea[e.unit]/t.fontMetrics().ptPerEm/t.sizeMultiplier;else if("mu"===e.unit)i=t.fontMetrics().cssEmPerMu;else{var n=t.style.isTight()?t.havingStyle(t.style.text()):t;if("ex"===e.unit)i=n.fontMetrics().xHeight;else{if("em"!==e.unit)throw new X("Invalid unit: '"+e.unit+"'");i=n.fontMetrics().quad}n!==t&&(i*=n.sizeMultiplier/t.sizeMultiplier)}return Math.min(e.number*i,t.maxSize)},"calculateSize"),K=mt(function(e){return+e.toFixed(4)+"em"},"makeEm"),ra=mt(function(e){return e.filter(e=>e).join(" ")},"createClass"),sa=mt(function(e,t,i){this.classes=e||[],this.attributes={},this.height=0,this.depth=0,this.maxFontSize=0,this.style=i||{},t&&(t.style.isTight()&&this.classes.push("mtight"),e=t.getColor())&&(this.style.color=e)},"initNode"),aa=mt(function(e){var t,i,n=document.createElement(e);for(t in n.className=ra(this.classes),this.style)this.style.hasOwnProperty(t)&&(n.style[t]=this.style[t]);for(i in this.attributes)this.attributes.hasOwnProperty(i)&&n.setAttribute(i,this.attributes[i]);for(var r=0;r<this.children.length;r++)n.appendChild(this.children[r].toNode());return n},"toNode"),oa=/[\s"'>/=\x00-\x1f]/,la=mt(function(e){var t,i,n="<"+e,r=(this.classes.length&&(n+=' class="'+ws.escape(ra(this.classes))+'"'),"");for(t in this.style)this.style.hasOwnProperty(t)&&(r+=ws.hyphenate(t)+":"+this.style[t]+";");for(i in r&&(n+=' style="'+ws.escape(r)+'"'),this.attributes)if(this.attributes.hasOwnProperty(i)){if(oa.test(i))throw new X("Invalid attribute name '"+i+"'");n+=" "+i+'="'+ws.escape(this.attributes[i])+'"'}n+=">";for(var s=0;s<this.children.length;s++)n+=this.children[s].toMarkup();return n+="</"+e+">"},"toMarkup"),ca=class{static{mt(this,"Span")}constructor(e,t,i,n){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.width=void 0,this.maxFontSize=void 0,this.style=void 0,sa.call(this,e,i,n),this.children=t||[]}setAttribute(e,t){this.attributes[e]=t}hasClass(e){return ws.contains(this.classes,e)}toNode(){return aa.call(this,"span")}toMarkup(){return la.call(this,"span")}},ha=class{static{mt(this,"Anchor")}constructor(e,t,i,n){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,sa.call(this,t,n),this.children=i||[],this.setAttribute("href",e)}setAttribute(e,t){this.attributes[e]=t}hasClass(e){return ws.contains(this.classes,e)}toNode(){return aa.call(this,"a")}toMarkup(){return la.call(this,"a")}},ua=class{static{mt(this,"Img")}constructor(e,t,i){this.src=void 0,this.alt=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.alt=t,this.src=e,this.classes=["mord"],this.style=i}hasClass(e){return ws.contains(this.classes,e)}toNode(){var e,t=document.createElement("img");for(e in t.src=this.src,t.alt=this.alt,t.className="mord",this.style)this.style.hasOwnProperty(e)&&(t.style[e]=this.style[e]);return t}toMarkup(){var e,t='<img src="'+ws.escape(this.src)+'" alt="'+ws.escape(this.alt)+'"',i="";for(e in this.style)this.style.hasOwnProperty(e)&&(i+=ws.hyphenate(e)+":"+this.style[e]+";");return i&&(t+=' style="'+ws.escape(i)+'"'),t+="'/>"}},da={"î":"ı̂","ï":"ı̈","í":"ı́","ì":"ı̀"},pa=class{static{mt(this,"SymbolNode")}constructor(e,t,i,n,r,s,a,o){this.text=void 0,this.height=void 0,this.depth=void 0,this.italic=void 0,this.skew=void 0,this.width=void 0,this.maxFontSize=void 0,this.classes=void 0,this.style=void 0,this.text=e,this.height=t||0,this.depth=i||0,this.italic=n||0,this.skew=r||0,this.width=s||0,this.classes=a||[],this.style=o||{},this.maxFontSize=0;e=jr(this.text.charCodeAt(0));e&&this.classes.push(e+"_fallback"),/[îïíì]/.test(this.text)&&(this.text=da[this.text])}hasClass(e){return ws.contains(this.classes,e)}toNode(){var e,t=document.createTextNode(this.text),i=null;for(e in 0<this.italic&&((i=document.createElement("span")).style.marginRight=K(this.italic)),0<this.classes.length&&((i=i||document.createElement("span")).className=ra(this.classes)),this.style)this.style.hasOwnProperty(e)&&(i=i||document.createElement("span"),i.style[e]=this.style[e]);return i?(i.appendChild(t),i):t}toMarkup(){var e,t=!1,i="<span",n=(this.classes.length&&(t=!0,i=(i+=' class="')+ws.escape(ra(this.classes))+'"'),"");for(e in 0<this.italic&&(n+="margin-right:"+this.italic+"em;"),this.style)this.style.hasOwnProperty(e)&&(n+=ws.hyphenate(e)+":"+this.style[e]+";");n&&(t=!0,i+=' style="'+ws.escape(n)+'"');var r=ws.escape(this.text);return t?i=(i+=">")+r+"</span>":r}},ga=class{static{mt(this,"SvgNode")}constructor(e,t){this.children=void 0,this.attributes=void 0,this.children=e||[],this.attributes=t||{}}toNode(){var e,t=document.createElementNS("http://www.w3.org/2000/svg","svg");for(e in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,e)&&t.setAttribute(e,this.attributes[e]);for(var i=0;i<this.children.length;i++)t.appendChild(this.children[i].toNode());return t}toMarkup(){var e,t='<svg xmlns="http://www.w3.org/2000/svg"';for(e in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,e)&&(t+=" "+e+'="'+ws.escape(this.attributes[e])+'"');t+=">";for(var i=0;i<this.children.length;i++)t+=this.children[i].toMarkup();return t+="</svg>"}},fa=class{static{mt(this,"PathNode")}constructor(e,t){this.pathName=void 0,this.alternate=void 0,this.pathName=e,this.alternate=t}toNode(){var e=document.createElementNS("http://www.w3.org/2000/svg","path");return this.alternate?e.setAttribute("d",this.alternate):e.setAttribute("d",Us[this.pathName]),e}toMarkup(){return this.alternate?'<path d="'+ws.escape(this.alternate)+'"/>':'<path d="'+ws.escape(Us[this.pathName])+'"/>'}},ma=class{static{mt(this,"LineNode")}constructor(e){this.attributes=void 0,this.attributes=e||{}}toNode(){var e,t=document.createElementNS("http://www.w3.org/2000/svg","line");for(e in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,e)&&t.setAttribute(e,this.attributes[e]);return t}toMarkup(){var e,t="<line";for(e in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,e)&&(t+=" "+e+'="'+ws.escape(this.attributes[e])+'"');return t+="/>"}},mt(Wr,"assertSymbolDomNode"),mt(Vr,"assertSpan"),ya={bin:1,close:1,inner:1,open:1,punct:1,rel:1},ba={"accent-token":1,mathord:1,"op-token":1,spacing:1,textord:1},va={math:{},text:{}},mt(o,"defineSymbol"),d="text",m="ams",Cl="accent-token",f="bin",Fl="close",Wl="inner",xa="mathord",dc="op-token",Ll="open",Ul="punct",$l="spacing",g="textord",o(u="math",p="main",y="rel","≡","\\equiv",!0),o(u,p,y,"≺","\\prec",!0),o(u,p,y,"≻","\\succ",!0),o(u,p,y,"∼","\\sim",!0),o(u,p,y,"⊥","\\perp"),o(u,p,y,"⪯","\\preceq",!0),o(u,p,y,"⪰","\\succeq",!0),o(u,p,y,"≃","\\simeq",!0),o(u,p,y,"∣","\\mid",!0),o(u,p,y,"≪","\\ll",!0),o(u,p,y,"≫","\\gg",!0),o(u,p,y,"≍","\\asymp",!0),o(u,p,y,"∥","\\parallel"),o(u,p,y,"⋈","\\bowtie",!0),o(u,p,y,"⌣","\\smile",!0),o(u,p,y,"⊑","\\sqsubseteq",!0),o(u,p,y,"⊒","\\sqsupseteq",!0),o(u,p,y,"≐","\\doteq",!0),o(u,p,y,"⌢","\\frown",!0),o(u,p,y,"∋","\\ni",!0),o(u,p,y,"∝","\\propto",!0),o(u,p,y,"⊢","\\vdash",!0),o(u,p,y,"⊣","\\dashv",!0),o(u,p,y,"∋","\\owns"),o(u,p,Ul,".","\\ldotp"),o(u,p,Ul,"⋅","\\cdotp"),o(u,p,g,"#","\\#"),o(d,p,g,"#","\\#"),o(u,p,g,"&","\\&"),o(d,p,g,"&","\\&"),o(u,p,g,"ℵ","\\aleph",!0),o(u,p,g,"∀","\\forall",!0),o(u,p,g,"ℏ","\\hbar",!0),o(u,p,g,"∃","\\exists",!0),o(u,p,g,"∇","\\nabla",!0),o(u,p,g,"♭","\\flat",!0),o(u,p,g,"ℓ","\\ell",!0),o(u,p,g,"♮","\\natural",!0),o(u,p,g,"♣","\\clubsuit",!0),o(u,p,g,"℘","\\wp",!0),o(u,p,g,"♯","\\sharp",!0),o(u,p,g,"♢","\\diamondsuit",!0),o(u,p,g,"ℜ","\\Re",!0),o(u,p,g,"♡","\\heartsuit",!0),o(u,p,g,"ℑ","\\Im",!0),o(u,p,g,"♠","\\spadesuit",!0),o(u,p,g,"§","\\S",!0),o(d,p,g,"§","\\S"),o(u,p,g,"¶","\\P",!0),o(d,p,g,"¶","\\P"),o(u,p,g,"†","\\dag"),o(d,p,g,"†","\\dag"),o(d,p,g,"†","\\textdagger"),o(u,p,g,"‡","\\ddag"),o(d,p,g,"‡","\\ddag"),o(d,p,g,"‡","\\textdaggerdbl"),o(u,p,Fl,"⎱","\\rmoustache",!0),o(u,p,Ll,"⎰","\\lmoustache",!0),o(u,p,Fl,"⟯","\\rgroup",!0),o(u,p,Ll,"⟮","\\lgroup",!0),o(u,p,f,"∓","\\mp",!0),o(u,p,f,"⊖","\\ominus",!0),o(u,p,f,"⊎","\\uplus",!0),o(u,p,f,"⊓","\\sqcap",!0),o(u,p,f,"∗","\\ast"),o(u,p,f,"⊔","\\sqcup",!0),o(u,p,f,"◯","\\bigcirc",!0),o(u,p,f,"∙","\\bullet",!0),o(u,p,f,"‡","\\ddagger"),o(u,p,f,"≀","\\wr",!0),o(u,p,f,"⨿","\\amalg"),o(u,p,f,"&","\\And"),o(u,p,y,"⟵","\\longleftarrow",!0),o(u,p,y,"⇐","\\Leftarrow",!0),o(u,p,y,"⟸","\\Longleftarrow",!0),o(u,p,y,"⟶","\\longrightarrow",!0),o(u,p,y,"⇒","\\Rightarrow",!0),o(u,p,y,"⟹","\\Longrightarrow",!0),o(u,p,y,"↔","\\leftrightarrow",!0),o(u,p,y,"⟷","\\longleftrightarrow",!0),o(u,p,y,"⇔","\\Leftrightarrow",!0),o(u,p,y,"⟺","\\Longleftrightarrow",!0),o(u,p,y,"↦","\\mapsto",!0),o(u,p,y,"⟼","\\longmapsto",!0),o(u,p,y,"↗","\\nearrow",!0),o(u,p,y,"↩","\\hookleftarrow",!0),o(u,p,y,"↪","\\hookrightarrow",!0),o(u,p,y,"↘","\\searrow",!0),o(u,p,y,"↼","\\leftharpoonup",!0),o(u,p,y,"⇀","\\rightharpoonup",!0),o(u,p,y,"↙","\\swarrow",!0),o(u,p,y,"↽","\\leftharpoondown",!0),o(u,p,y,"⇁","\\rightharpoondown",!0),o(u,p,y,"↖","\\nwarrow",!0),o(u,p,y,"⇌","\\rightleftharpoons",!0),o(u,m,y,"≮","\\nless",!0),o(u,m,y,"","\\@nleqslant"),o(u,m,y,"","\\@nleqq"),o(u,m,y,"⪇","\\lneq",!0),o(u,m,y,"≨","\\lneqq",!0),o(u,m,y,"","\\@lvertneqq"),o(u,m,y,"⋦","\\lnsim",!0),o(u,m,y,"⪉","\\lnapprox",!0),o(u,m,y,"⊀","\\nprec",!0),o(u,m,y,"⋠","\\npreceq",!0),o(u,m,y,"⋨","\\precnsim",!0),o(u,m,y,"⪹","\\precnapprox",!0),o(u,m,y,"≁","\\nsim",!0),o(u,m,y,"","\\@nshortmid"),o(u,m,y,"∤","\\nmid",!0),o(u,m,y,"⊬","\\nvdash",!0),o(u,m,y,"⊭","\\nvDash",!0),o(u,m,y,"⋪","\\ntriangleleft"),o(u,m,y,"⋬","\\ntrianglelefteq",!0),o(u,m,y,"⊊","\\subsetneq",!0),o(u,m,y,"","\\@varsubsetneq"),o(u,m,y,"⫋","\\subsetneqq",!0),o(u,m,y,"","\\@varsubsetneqq"),o(u,m,y,"≯","\\ngtr",!0),o(u,m,y,"","\\@ngeqslant"),o(u,m,y,"","\\@ngeqq"),o(u,m,y,"⪈","\\gneq",!0),o(u,m,y,"≩","\\gneqq",!0),o(u,m,y,"","\\@gvertneqq"),o(u,m,y,"⋧","\\gnsim",!0),o(u,m,y,"⪊","\\gnapprox",!0),o(u,m,y,"⊁","\\nsucc",!0),o(u,m,y,"⋡","\\nsucceq",!0),o(u,m,y,"⋩","\\succnsim",!0),o(u,m,y,"⪺","\\succnapprox",!0),o(u,m,y,"≆","\\ncong",!0),o(u,m,y,"","\\@nshortparallel"),o(u,m,y,"∦","\\nparallel",!0),o(u,m,y,"⊯","\\nVDash",!0),o(u,m,y,"⋫","\\ntriangleright"),o(u,m,y,"⋭","\\ntrianglerighteq",!0),o(u,m,y,"","\\@nsupseteqq"),o(u,m,y,"⊋","\\supsetneq",!0),o(u,m,y,"","\\@varsupsetneq"),o(u,m,y,"⫌","\\supsetneqq",!0),o(u,m,y,"","\\@varsupsetneqq"),o(u,m,y,"⊮","\\nVdash",!0),o(u,m,y,"⪵","\\precneqq",!0),o(u,m,y,"⪶","\\succneqq",!0),o(u,m,y,"","\\@nsubseteqq"),o(u,m,f,"⊴","\\unlhd"),o(u,m,f,"⊵","\\unrhd"),o(u,m,y,"↚","\\nleftarrow",!0),o(u,m,y,"↛","\\nrightarrow",!0),o(u,m,y,"⇍","\\nLeftarrow",!0),o(u,m,y,"⇏","\\nRightarrow",!0),o(u,m,y,"↮","\\nleftrightarrow",!0),o(u,m,y,"⇎","\\nLeftrightarrow",!0),o(u,m,y,"△","\\vartriangle"),o(u,m,g,"ℏ","\\hslash"),o(u,m,g,"▽","\\triangledown"),o(u,m,g,"◊","\\lozenge"),o(u,m,g,"Ⓢ","\\circledS"),o(u,m,g,"®","\\circledR"),o(d,m,g,"®","\\circledR"),o(u,m,g,"∡","\\measuredangle",!0),o(u,m,g,"∄","\\nexists"),o(u,m,g,"℧","\\mho"),o(u,m,g,"Ⅎ","\\Finv",!0),o(u,m,g,"⅁","\\Game",!0),o(u,m,g,"‵","\\backprime"),o(u,m,g,"▲","\\blacktriangle"),o(u,m,g,"▼","\\blacktriangledown"),o(u,m,g,"■","\\blacksquare"),o(u,m,g,"⧫","\\blacklozenge"),o(u,m,g,"★","\\bigstar"),o(u,m,g,"∢","\\sphericalangle",!0),o(u,m,g,"∁","\\complement",!0),o(u,m,g,"ð","\\eth",!0),o(d,p,g,"ð","ð"),o(u,m,g,"╱","\\diagup"),o(u,m,g,"╲","\\diagdown"),o(u,m,g,"□","\\square"),o(u,m,g,"□","\\Box"),o(u,m,g,"◊","\\Diamond"),o(u,m,g,"¥","\\yen",!0),o(d,m,g,"¥","\\yen",!0),o(u,m,g,"✓","\\checkmark",!0),o(d,m,g,"✓","\\checkmark"),o(u,m,g,"ℶ","\\beth",!0),o(u,m,g,"ℸ","\\daleth",!0),o(u,m,g,"ℷ","\\gimel",!0),o(u,m,g,"ϝ","\\digamma",!0),o(u,m,g,"ϰ","\\varkappa"),o(u,m,Ll,"┌","\\@ulcorner",!0),o(u,m,Fl,"┐","\\@urcorner",!0),o(u,m,Ll,"└","\\@llcorner",!0),o(u,m,Fl,"┘","\\@lrcorner",!0),o(u,m,y,"≦","\\leqq",!0),o(u,m,y,"⩽","\\leqslant",!0),o(u,m,y,"⪕","\\eqslantless",!0),o(u,m,y,"≲","\\lesssim",!0),o(u,m,y,"⪅","\\lessapprox",!0),o(u,m,y,"≊","\\approxeq",!0),o(u,m,f,"⋖","\\lessdot"),o(u,m,y,"⋘","\\lll",!0),o(u,m,y,"≶","\\lessgtr",!0),o(u,m,y,"⋚","\\lesseqgtr",!0),o(u,m,y,"⪋","\\lesseqqgtr",!0),o(u,m,y,"≑","\\doteqdot"),o(u,m,y,"≓","\\risingdotseq",!0),o(u,m,y,"≒","\\fallingdotseq",!0),o(u,m,y,"∽","\\backsim",!0),o(u,m,y,"⋍","\\backsimeq",!0),o(u,m,y,"⫅","\\subseteqq",!0),o(u,m,y,"⋐","\\Subset",!0),o(u,m,y,"⊏","\\sqsubset",!0),o(u,m,y,"≼","\\preccurlyeq",!0),o(u,m,y,"⋞","\\curlyeqprec",!0),o(u,m,y,"≾","\\precsim",!0),o(u,m,y,"⪷","\\precapprox",!0),o(u,m,y,"⊲","\\vartriangleleft"),o(u,m,y,"⊴","\\trianglelefteq"),o(u,m,y,"⊨","\\vDash",!0),o(u,m,y,"⊪","\\Vvdash",!0),o(u,m,y,"⌣","\\smallsmile"),o(u,m,y,"⌢","\\smallfrown"),o(u,m,y,"≏","\\bumpeq",!0),o(u,m,y,"≎","\\Bumpeq",!0),o(u,m,y,"≧","\\geqq",!0),o(u,m,y,"⩾","\\geqslant",!0),o(u,m,y,"⪖","\\eqslantgtr",!0),o(u,m,y,"≳","\\gtrsim",!0),o(u,m,y,"⪆","\\gtrapprox",!0),o(u,m,f,"⋗","\\gtrdot"),o(u,m,y,"⋙","\\ggg",!0),o(u,m,y,"≷","\\gtrless",!0),o(u,m,y,"⋛","\\gtreqless",!0),o(u,m,y,"⪌","\\gtreqqless",!0),o(u,m,y,"≖","\\eqcirc",!0),o(u,m,y,"≗","\\circeq",!0),o(u,m,y,"≜","\\triangleq",!0),o(u,m,y,"∼","\\thicksim"),o(u,m,y,"≈","\\thickapprox"),o(u,m,y,"⫆","\\supseteqq",!0),o(u,m,y,"⋑","\\Supset",!0),o(u,m,y,"⊐","\\sqsupset",!0),o(u,m,y,"≽","\\succcurlyeq",!0),o(u,m,y,"⋟","\\curlyeqsucc",!0),o(u,m,y,"≿","\\succsim",!0),o(u,m,y,"⪸","\\succapprox",!0),o(u,m,y,"⊳","\\vartriangleright"),o(u,m,y,"⊵","\\trianglerighteq"),o(u,m,y,"⊩","\\Vdash",!0),o(u,m,y,"∣","\\shortmid"),o(u,m,y,"∥","\\shortparallel"),o(u,m,y,"≬","\\between",!0),o(u,m,y,"⋔","\\pitchfork",!0),o(u,m,y,"∝","\\varpropto"),o(u,m,y,"◀","\\blacktriangleleft"),o(u,m,y,"∴","\\therefore",!0),o(u,m,y,"∍","\\backepsilon"),o(u,m,y,"▶","\\blacktriangleright"),o(u,m,y,"∵","\\because",!0),o(u,m,y,"⋘","\\llless"),o(u,m,y,"⋙","\\gggtr"),o(u,m,f,"⊲","\\lhd"),o(u,m,f,"⊳","\\rhd"),o(u,m,y,"≂","\\eqsim",!0),o(u,p,y,"⋈","\\Join"),o(u,m,y,"≑","\\Doteq",!0),o(u,m,f,"∔","\\dotplus",!0),o(u,m,f,"∖","\\smallsetminus"),o(u,m,f,"⋒","\\Cap",!0),o(u,m,f,"⋓","\\Cup",!0),o(u,m,f,"⩞","\\doublebarwedge",!0),o(u,m,f,"⊟","\\boxminus",!0),o(u,m,f,"⊞","\\boxplus",!0),o(u,m,f,"⋇","\\divideontimes",!0),o(u,m,f,"⋉","\\ltimes",!0),o(u,m,f,"⋊","\\rtimes",!0),o(u,m,f,"⋋","\\leftthreetimes",!0),o(u,m,f,"⋌","\\rightthreetimes",!0),o(u,m,f,"⋏","\\curlywedge",!0),o(u,m,f,"⋎","\\curlyvee",!0),o(u,m,f,"⊝","\\circleddash",!0),o(u,m,f,"⊛","\\circledast",!0),o(u,m,f,"⋅","\\centerdot"),o(u,m,f,"⊺","\\intercal",!0),o(u,m,f,"⋒","\\doublecap"),o(u,m,f,"⋓","\\doublecup"),o(u,m,f,"⊠","\\boxtimes",!0),o(u,m,y,"⇢","\\dashrightarrow",!0),o(u,m,y,"⇠","\\dashleftarrow",!0),o(u,m,y,"⇇","\\leftleftarrows",!0),o(u,m,y,"⇆","\\leftrightarrows",!0),o(u,m,y,"⇚","\\Lleftarrow",!0),o(u,m,y,"↞","\\twoheadleftarrow",!0),o(u,m,y,"↢","\\leftarrowtail",!0),o(u,m,y,"↫","\\looparrowleft",!0),o(u,m,y,"⇋","\\leftrightharpoons",!0),o(u,m,y,"↶","\\curvearrowleft",!0),o(u,m,y,"↺","\\circlearrowleft",!0),o(u,m,y,"↰","\\Lsh",!0),o(u,m,y,"⇈","\\upuparrows",!0),o(u,m,y,"↿","\\upharpoonleft",!0),o(u,m,y,"⇃","\\downharpoonleft",!0),o(u,p,y,"⊶","\\origof",!0),o(u,p,y,"⊷","\\imageof",!0),o(u,m,y,"⊸","\\multimap",!0),o(u,m,y,"↭","\\leftrightsquigarrow",!0),o(u,m,y,"⇉","\\rightrightarrows",!0),o(u,m,y,"⇄","\\rightleftarrows",!0),o(u,m,y,"↠","\\twoheadrightarrow",!0),o(u,m,y,"↣","\\rightarrowtail",!0),o(u,m,y,"↬","\\looparrowright",!0),o(u,m,y,"↷","\\curvearrowright",!0),o(u,m,y,"↻","\\circlearrowright",!0),o(u,m,y,"↱","\\Rsh",!0),o(u,m,y,"⇊","\\downdownarrows",!0),o(u,m,y,"↾","\\upharpoonright",!0),o(u,m,y,"⇂","\\downharpoonright",!0),o(u,m,y,"⇝","\\rightsquigarrow",!0),o(u,m,y,"⇝","\\leadsto"),o(u,m,y,"⇛","\\Rrightarrow",!0),o(u,m,y,"↾","\\restriction"),o(u,p,g,"‘","`"),o(u,p,g,"$","\\$"),o(d,p,g,"$","\\$"),o(d,p,g,"$","\\textdollar"),o(u,p,g,"%","\\%"),o(d,p,g,"%","\\%"),o(u,p,g,"_","\\_"),o(d,p,g,"_","\\_"),o(d,p,g,"_","\\textunderscore"),o(u,p,g,"∠","\\angle",!0),o(u,p,g,"∞","\\infty",!0),o(u,p,g,"′","\\prime"),o(u,p,g,"△","\\triangle"),o(u,p,g,"Γ","\\Gamma",!0),o(u,p,g,"Δ","\\Delta",!0),o(u,p,g,"Θ","\\Theta",!0),o(u,p,g,"Λ","\\Lambda",!0),o(u,p,g,"Ξ","\\Xi",!0),o(u,p,g,"Π","\\Pi",!0),o(u,p,g,"Σ","\\Sigma",!0),o(u,p,g,"Υ","\\Upsilon",!0),o(u,p,g,"Φ","\\Phi",!0),o(u,p,g,"Ψ","\\Psi",!0),o(u,p,g,"Ω","\\Omega",!0),o(u,p,g,"A","Α"),o(u,p,g,"B","Β"),o(u,p,g,"E","Ε"),o(u,p,g,"Z","Ζ"),o(u,p,g,"H","Η"),o(u,p,g,"I","Ι"),o(u,p,g,"K","Κ"),o(u,p,g,"M","Μ"),o(u,p,g,"N","Ν"),o(u,p,g,"O","Ο"),o(u,p,g,"P","Ρ"),o(u,p,g,"T","Τ"),o(u,p,g,"X","Χ"),o(u,p,g,"¬","\\neg",!0),o(u,p,g,"¬","\\lnot"),o(u,p,g,"⊤","\\top"),o(u,p,g,"⊥","\\bot"),o(u,p,g,"∅","\\emptyset"),o(u,m,g,"∅","\\varnothing"),o(u,p,xa,"α","\\alpha",!0),o(u,p,xa,"β","\\beta",!0),o(u,p,xa,"γ","\\gamma",!0),o(u,p,xa,"δ","\\delta",!0),o(u,p,xa,"ϵ","\\epsilon",!0),o(u,p,xa,"ζ","\\zeta",!0),o(u,p,xa,"η","\\eta",!0),o(u,p,xa,"θ","\\theta",!0),o(u,p,xa,"ι","\\iota",!0),o(u,p,xa,"κ","\\kappa",!0),o(u,p,xa,"λ","\\lambda",!0),o(u,p,xa,"μ","\\mu",!0),o(u,p,xa,"ν","\\nu",!0),o(u,p,xa,"ξ","\\xi",!0),o(u,p,xa,"ο","\\omicron",!0),o(u,p,xa,"π","\\pi",!0),o(u,p,xa,"ρ","\\rho",!0),o(u,p,xa,"σ","\\sigma",!0),o(u,p,xa,"τ","\\tau",!0),o(u,p,xa,"υ","\\upsilon",!0),o(u,p,xa,"ϕ","\\phi",!0),o(u,p,xa,"χ","\\chi",!0),o(u,p,xa,"ψ","\\psi",!0),o(u,p,xa,"ω","\\omega",!0),o(u,p,xa,"ε","\\varepsilon",!0),o(u,p,xa,"ϑ","\\vartheta",!0),o(u,p,xa,"ϖ","\\varpi",!0),o(u,p,xa,"ϱ","\\varrho",!0),o(u,p,xa,"ς","\\varsigma",!0),o(u,p,xa,"φ","\\varphi",!0),o(u,p,f,"∗","*",!0),o(u,p,f,"+","+"),o(u,p,f,"−","-",!0),o(u,p,f,"⋅","\\cdot",!0),o(u,p,f,"∘","\\circ",!0),o(u,p,f,"÷","\\div",!0),o(u,p,f,"±","\\pm",!0),o(u,p,f,"×","\\times",!0),o(u,p,f,"∩","\\cap",!0),o(u,p,f,"∪","\\cup",!0),o(u,p,f,"∖","\\setminus",!0),o(u,p,f,"∧","\\land"),o(u,p,f,"∨","\\lor"),o(u,p,f,"∧","\\wedge",!0),o(u,p,f,"∨","\\vee",!0),o(u,p,g,"√","\\surd"),o(u,p,Ll,"⟨","\\langle",!0),o(u,p,Ll,"∣","\\lvert"),o(u,p,Ll,"∥","\\lVert"),o(u,p,Fl,"?","?"),o(u,p,Fl,"!","!"),o(u,p,Fl,"⟩","\\rangle",!0),o(u,p,Fl,"∣","\\rvert"),o(u,p,Fl,"∥","\\rVert"),o(u,p,y,"=","="),o(u,p,y,":",":"),o(u,p,y,"≈","\\approx",!0),o(u,p,y,"≅","\\cong",!0),o(u,p,y,"≥","\\ge"),o(u,p,y,"≥","\\geq",!0),o(u,p,y,"←","\\gets"),o(u,p,y,">","\\gt",!0),o(u,p,y,"∈","\\in",!0),o(u,p,y,"","\\@not"),o(u,p,y,"⊂","\\subset",!0),o(u,p,y,"⊃","\\supset",!0),o(u,p,y,"⊆","\\subseteq",!0),o(u,p,y,"⊇","\\supseteq",!0),o(u,m,y,"⊈","\\nsubseteq",!0),o(u,m,y,"⊉","\\nsupseteq",!0),o(u,p,y,"⊨","\\models"),o(u,p,y,"←","\\leftarrow",!0),o(u,p,y,"≤","\\le"),o(u,p,y,"≤","\\leq",!0),o(u,p,y,"<","\\lt",!0),o(u,p,y,"→","\\rightarrow",!0),o(u,p,y,"→","\\to"),o(u,m,y,"≱","\\ngeq",!0),o(u,m,y,"≰","\\nleq",!0),o(u,p,$l," ","\\ "),o(u,p,$l," ","\\space"),o(u,p,$l," ","\\nobreakspace"),o(d,p,$l," ","\\ "),o(d,p,$l," "," "),o(d,p,$l," ","\\space"),o(d,p,$l," ","\\nobreakspace"),o(u,p,$l,null,"\\nobreak"),o(u,p,$l,null,"\\allowbreak"),o(u,p,Ul,",",","),o(u,p,Ul,";",";"),o(u,m,f,"⊼","\\barwedge",!0),o(u,m,f,"⊻","\\veebar",!0),o(u,p,f,"⊙","\\odot",!0),o(u,p,f,"⊕","\\oplus",!0),o(u,p,f,"⊗","\\otimes",!0),o(u,p,g,"∂","\\partial",!0),o(u,p,f,"⊘","\\oslash",!0),o(u,m,f,"⊚","\\circledcirc",!0),o(u,m,f,"⊡","\\boxdot",!0),o(u,p,f,"△","\\bigtriangleup"),o(u,p,f,"▽","\\bigtriangledown"),o(u,p,f,"†","\\dagger"),o(u,p,f,"⋄","\\diamond"),o(u,p,f,"⋆","\\star"),o(u,p,f,"◃","\\triangleleft"),o(u,p,f,"▹","\\triangleright"),o(u,p,Ll,"{","\\{"),o(d,p,g,"{","\\{"),o(d,p,g,"{","\\textbraceleft"),o(u,p,Fl,"}","\\}"),o(d,p,g,"}","\\}"),o(d,p,g,"}","\\textbraceright"),o(u,p,Ll,"{","\\lbrace"),o(u,p,Fl,"}","\\rbrace"),o(u,p,Ll,"[","\\lbrack",!0),o(d,p,g,"[","\\lbrack",!0),o(u,p,Fl,"]","\\rbrack",!0),o(d,p,g,"]","\\rbrack",!0),o(u,p,Ll,"(","\\lparen",!0),o(u,p,Fl,")","\\rparen",!0),o(d,p,g,"<","\\textless",!0),o(d,p,g,">","\\textgreater",!0),o(u,p,Ll,"⌊","\\lfloor",!0),o(u,p,Fl,"⌋","\\rfloor",!0),o(u,p,Ll,"⌈","\\lceil",!0),o(u,p,Fl,"⌉","\\rceil",!0),o(u,p,g,"\\","\\backslash"),o(u,p,g,"∣","|"),o(u,p,g,"∣","\\vert"),o(d,p,g,"|","\\textbar",!0),o(u,p,g,"∥","\\|"),o(u,p,g,"∥","\\Vert"),o(d,p,g,"∥","\\textbardbl"),o(d,p,g,"~","\\textasciitilde"),o(d,p,g,"\\","\\textbackslash"),o(d,p,g,"^","\\textasciicircum"),o(u,p,y,"↑","\\uparrow",!0),o(u,p,y,"⇑","\\Uparrow",!0),o(u,p,y,"↓","\\downarrow",!0),o(u,p,y,"⇓","\\Downarrow",!0),o(u,p,y,"↕","\\updownarrow",!0),o(u,p,y,"⇕","\\Updownarrow",!0),o(u,p,dc,"∐","\\coprod"),o(u,p,dc,"⋁","\\bigvee"),o(u,p,dc,"⋀","\\bigwedge"),o(u,p,dc,"⨄","\\biguplus"),o(u,p,dc,"⋂","\\bigcap"),o(u,p,dc,"⋃","\\bigcup"),o(u,p,dc,"∫","\\int"),o(u,p,dc,"∫","\\intop"),o(u,p,dc,"∬","\\iint"),o(u,p,dc,"∭","\\iiint"),o(u,p,dc,"∏","\\prod"),o(u,p,dc,"∑","\\sum"),o(u,p,dc,"⨂","\\bigotimes"),o(u,p,dc,"⨁","\\bigoplus"),o(u,p,dc,"⨀","\\bigodot"),o(u,p,dc,"∮","\\oint"),o(u,p,dc,"∯","\\oiint"),o(u,p,dc,"∰","\\oiiint"),o(u,p,dc,"⨆","\\bigsqcup"),o(u,p,dc,"∫","\\smallint"),o(d,p,Wl,"…","\\textellipsis"),o(u,p,Wl,"…","\\mathellipsis"),o(d,p,Wl,"…","\\ldots",!0),o(u,p,Wl,"…","\\ldots",!0),o(u,p,Wl,"⋯","\\@cdots",!0),o(u,p,Wl,"⋱","\\ddots",!0),o(u,p,g,"⋮","\\varvdots"),o(d,p,g,"⋮","\\varvdots"),o(u,p,Cl,"ˊ","\\acute"),o(u,p,Cl,"ˋ","\\grave"),o(u,p,Cl,"¨","\\ddot"),o(u,p,Cl,"~","\\tilde"),o(u,p,Cl,"ˉ","\\bar"),o(u,p,Cl,"˘","\\breve"),o(u,p,Cl,"ˇ","\\check"),o(u,p,Cl,"^","\\hat"),o(u,p,Cl,"⃗","\\vec"),o(u,p,Cl,"˙","\\dot"),o(u,p,Cl,"˚","\\mathring"),o(u,p,xa,"","\\@imath"),o(u,p,xa,"","\\@jmath"),o(u,p,g,"ı","ı"),o(u,p,g,"ȷ","ȷ"),o(d,p,g,"ı","\\i",!0),o(d,p,g,"ȷ","\\j",!0),o(d,p,g,"ß","\\ss",!0),o(d,p,g,"æ","\\ae",!0),o(d,p,g,"œ","\\oe",!0),o(d,p,g,"ø","\\o",!0),o(d,p,g,"Æ","\\AE",!0),o(d,p,g,"Œ","\\OE",!0),o(d,p,g,"Ø","\\O",!0),o(d,p,Cl,"ˊ","\\'"),o(d,p,Cl,"ˋ","\\`"),o(d,p,Cl,"ˆ","\\^"),o(d,p,Cl,"˜","\\~"),o(d,p,Cl,"ˉ","\\="),o(d,p,Cl,"˘","\\u"),o(d,p,Cl,"˙","\\."),o(d,p,Cl,"¸","\\c"),o(d,p,Cl,"˚","\\r"),o(d,p,Cl,"ˇ","\\v"),o(d,p,Cl,"¨",'\\"'),o(d,p,Cl,"˝","\\H"),o(d,p,Cl,"◯","\\textcircled"),wa={"--":!0,"---":!0,"``":!0,"''":!0},o(d,p,g,"–","--",!0),o(d,p,g,"–","\\textendash"),o(d,p,g,"—","---",!0),o(d,p,g,"—","\\textemdash"),o(d,p,g,"‘","`",!0),o(d,p,g,"‘","\\textquoteleft"),o(d,p,g,"’","'",!0),o(d,p,g,"’","\\textquoteright"),o(d,p,g,"“","``",!0),o(d,p,g,"“","\\textquotedblleft"),o(d,p,g,"”","''",!0),o(d,p,g,"”","\\textquotedblright"),o(u,p,g,"°","\\degree",!0),o(d,p,g,"°","\\degree"),o(d,p,g,"°","\\textdegree",!0),o(u,p,g,"£","\\pounds"),o(u,p,g,"£","\\mathsterling",!0),o(d,p,g,"£","\\pounds"),o(d,p,g,"£","\\textsterling",!0),o(u,m,g,"✠","\\maltese"),o(d,m,g,"✠","\\maltese"),ka='0123456789/@."',Sa=0;Sa<ka.length;Sa++)Ta=ka.charAt(Sa),o(u,p,g,Ta,Ta);for(_a='0123456789!@*()-=+";:?/.,',Aa=0;Aa<_a.length;Aa++)Ca=_a.charAt(Aa),o(d,p,g,Ca,Ca);for(Ea="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",La=0;La<Ea.length;La++)$a=Ea.charAt(La),o(u,p,xa,$a,$a),o(d,p,g,$a,$a);for(o(u,m,g,"C","ℂ"),o(d,m,g,"C","ℂ"),o(u,m,g,"H","ℍ"),o(d,m,g,"H","ℍ"),o(u,m,g,"N","ℕ"),o(d,m,g,"N","ℕ"),o(u,m,g,"P","ℙ"),o(d,m,g,"P","ℙ"),o(u,m,g,"Q","ℚ"),o(d,m,g,"Q","ℚ"),o(u,m,g,"R","ℝ"),o(d,m,g,"R","ℝ"),o(u,m,g,"Z","ℤ"),o(d,m,g,"Z","ℤ"),o(u,p,xa,"h","ℎ"),o(d,p,xa,"h","ℎ"),Ra="",Ia=0;Ia<Ea.length;Ia++)Ma=Ea.charAt(Ia),Ra=String.fromCharCode(55349,56320+Ia),o(u,p,xa,Ma,Ra),o(d,p,g,Ma,Ra),Ra=String.fromCharCode(55349,56372+Ia),o(u,p,xa,Ma,Ra),o(d,p,g,Ma,Ra),Ra=String.fromCharCode(55349,56424+Ia),o(u,p,xa,Ma,Ra),o(d,p,g,Ma,Ra),Ra=String.fromCharCode(55349,56580+Ia),o(u,p,xa,Ma,Ra),o(d,p,g,Ma,Ra),Ra=String.fromCharCode(55349,56684+Ia),o(u,p,xa,Ma,Ra),o(d,p,g,Ma,Ra),Ra=String.fromCharCode(55349,56736+Ia),o(u,p,xa,Ma,Ra),o(d,p,g,Ma,Ra),Ra=String.fromCharCode(55349,56788+Ia),o(u,p,xa,Ma,Ra),o(d,p,g,Ma,Ra),Ra=String.fromCharCode(55349,56840+Ia),o(u,p,xa,Ma,Ra),o(d,p,g,Ma,Ra),Ra=String.fromCharCode(55349,56944+Ia),o(u,p,xa,Ma,Ra),o(d,p,g,Ma,Ra),Ia<26&&(Ra=String.fromCharCode(55349,56632+Ia),o(u,p,xa,Ma,Ra),o(d,p,g,Ma,Ra),Ra=String.fromCharCode(55349,56476+Ia),o(u,p,xa,Ma,Ra),o(d,p,g,Ma,Ra));for(o(u,p,xa,"k",Ra="𝕜"),o(d,p,g,"k",Ra),Da=0;Da<10;Da++)Na=Da.toString(),Ra=String.fromCharCode(55349,57294+Da),o(u,p,xa,Na,Ra),o(d,p,g,Na,Ra),Ra=String.fromCharCode(55349,57314+Da),o(u,p,xa,Na,Ra),o(d,p,g,Na,Ra),Ra=String.fromCharCode(55349,57324+Da),o(u,p,xa,Na,Ra),o(d,p,g,Na,Ra),Ra=String.fromCharCode(55349,57334+Da),o(u,p,xa,Na,Ra),o(d,p,g,Na,Ra);for(Oa="ÐÞþ",Ba=0;Ba<Oa.length;Ba++)Pa=Oa.charAt(Ba),o(u,p,xa,Pa,Pa),o(d,p,g,Pa,Pa);Fa=[["mathbf","textbf","Main-Bold"],["mathbf","textbf","Main-Bold"],["mathnormal","textit","Math-Italic"],["mathnormal","textit","Math-Italic"],["boldsymbol","boldsymbol","Main-BoldItalic"],["boldsymbol","boldsymbol","Main-BoldItalic"],["mathscr","textscr","Script-Regular"],["","",""],["","",""],["","",""],["mathfrak","textfrak","Fraktur-Regular"],["mathfrak","textfrak","Fraktur-Regular"],["mathbb","textbb","AMS-Regular"],["mathbb","textbb","AMS-Regular"],["mathboldfrak","textboldfrak","Fraktur-Regular"],["mathboldfrak","textboldfrak","Fraktur-Regular"],["mathsf","textsf","SansSerif-Regular"],["mathsf","textsf","SansSerif-Regular"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathitsf","textitsf","SansSerif-Italic"],["mathitsf","textitsf","SansSerif-Italic"],["","",""],["","",""],["mathtt","texttt","Typewriter-Regular"],["mathtt","texttt","Typewriter-Regular"]],ja=[["mathbf","textbf","Main-Bold"],["","",""],["mathsf","textsf","SansSerif-Regular"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathtt","texttt","Typewriter-Regular"]],za=mt(function(e,t){var i,n=1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320)+65536,t="math"===t?0:1;if(119808<=n&&n<120484)return i=Math.floor((n-119808)/26),[Fa[i][2],Fa[i][t]];if(120782<=n&&n<=120831)return i=Math.floor((n-120782)/10),[ja[i][2],ja[i][t]];if(120485==n||120486==n)return[Fa[0][2],Fa[0][t]];if(120486<n&&n<120782)return["",""];throw new X("Unsupported character: "+e)},"wideCharacterFont"),Ha=mt(function(e,t,i){return{value:e=va[i][e]&&va[i][e].replace?va[i][e].replace:e,metrics:Ur(e,t,i)}},"lookupSymbol"),Ua=mt(function(e,t,i,n,r){var s=Ha(e,t,i),a=s.metrics;return e=s.value,s=a?(s=a.italic,("text"===i||n&&"mathit"===n.font)&&(s=0),new pa(e,a.height,a.depth,s,a.skew,a.width,r)):(typeof console<"u"&&console.warn("No character metrics for '"+e+"' in style '"+t+"' and mode '"+i+"'"),new pa(e,0,0,0,0,0,r)),n&&(s.maxFontSize=n.sizeMultiplier,n.style.isTight()&&s.classes.push("mtight"),a=n.getColor())&&(s.style.color=a),s},"makeSymbol"),$l=mt(function(e,t,i,n){return void 0===n&&(n=[]),"boldsymbol"===i.font&&Ha(e,"Main-Bold",t).metrics?Ua(e,"Main-Bold",t,i,n.concat(["mathbf"])):"\\"===e||"main"===va[t][e].font?Ua(e,"Main-Regular",t,i,n):Ua(e,"AMS-Regular",t,i,n.concat(["amsrm"]))},"mathsym"),qa=mt(function(e,t,i,n,r){return"textord"!==r&&Ha(e,"Math-BoldItalic",t).metrics?{fontName:"Math-BoldItalic",fontClass:"boldsymbol"}:{fontName:"Main-Bold",fontClass:"mathbf"}},"boldsymbol"),Ul=mt(function(e,t,i){var n,r,s=e.mode,a=e.text,o=["mord"],e="math"===s||"text"===s&&t.font,l=e?t.font:t.fontFamily,c="",h="";if(55349===a.charCodeAt(0)&&([c,h]=za(a,s)),0<c.length)return Ua(a,c,s,t,o.concat(h));if(l){if(r="boldsymbol"===l?(n=(c=qa(a,s,t,o,i)).fontName,[c.fontClass]):e?(n=Qa[l].fontName,[l]):(n=Za(l,t.fontWeight,t.fontShape),[l,t.fontWeight,t.fontShape]),Ha(a,n,s).metrics)return Ua(a,n,s,t,o.concat(r));if(wa.hasOwnProperty(a)&&"Typewriter"===n.slice(0,10)){for(var u=[],d=0;d<a.length;d++)u.push(Ua(a[d],n,s,t,o.concat(r)));return Xa(u)}}if("mathord"===i)return Ua(a,"Math-Italic",s,t,o.concat(["mathnormal"]));if("textord"===i)return"ams"===(h=va[s][a]&&va[s][a].font)?(c=Za("amsrm",t.fontWeight,t.fontShape),Ua(a,c,s,t,o.concat("amsrm",t.fontWeight,t.fontShape))):"main"!==h&&h?(e=Za(h,t.fontWeight,t.fontShape),Ua(a,e,s,t,o.concat(e,t.fontWeight,t.fontShape))):(l=Za("textrm",t.fontWeight,t.fontShape),Ua(a,l,s,t,o.concat(t.fontWeight,t.fontShape)));throw new Error("unexpected type: "+i+" in makeOrd")},"makeOrd"),Wa=mt((e,t)=>{if(ra(e.classes)!==ra(t.classes)||e.skew!==t.skew||e.maxFontSize!==t.maxFontSize)return!1;if(1===e.classes.length){var i=e.classes[0];if("mbin"===i||"mord"===i)return!1}for(var n in e.style)if(e.style.hasOwnProperty(n)&&e.style[n]!==t.style[n])return!1;for(var r in t.style)if(t.style.hasOwnProperty(r)&&e.style[r]!==t.style[r])return!1;return!0},"canCombine"),f=mt(e=>{for(var t=0;t<e.length-1;t++){var i=e[t],n=e[t+1];i instanceof pa&&n instanceof pa&&Wa(i,n)&&(i.text+=n.text,i.height=Math.max(i.height,n.height),i.depth=Math.max(i.depth,n.depth),i.italic=n.italic,e.splice(t+1,1),t--)}return e},"tryCombineChars"),Va=mt(function(e){for(var t=0,i=0,n=0,r=0;r<e.children.length;r++){var s=e.children[r];s.height>t&&(t=s.height),s.depth>i&&(i=s.depth),s.maxFontSize>n&&(n=s.maxFontSize)}e.height=t,e.depth=i,e.maxFontSize=n},"sizeElementFromChildren"),Ga=mt(function(e,t,i,n){e=new ca(e,t,i,n);return Va(e),e},"makeSpan"),Ya=mt((e,t,i,n)=>new ca(e,t,i,n),"makeSvgSpan"),Ll=mt(function(e,t,i){e=Ga([e],[],t);return e.height=Math.max(i||t.fontMetrics().defaultRuleThickness,t.minRuleThickness),e.style.borderBottomWidth=K(e.height),e.maxFontSize=1,e},"makeLineSpan"),Fl=mt(function(e,t,i,n){e=new ha(e,t,i,n);return Va(e),e},"makeAnchor"),Xa=mt(function(e){e=new Ws(e);return Va(e),e},"makeFragment"),y=mt(function(e,t){return e instanceof Ws?Ga([],[e],t):e},"wrapFragment"),Ka=mt(function(e){if("individualShift"===e.positionType){for(var t=e.children,i=[t[0]],n=-t[0].shift-t[0].elem.depth,r=n,s=1;s<t.length;s++){var a=-t[s].shift-r-t[s].elem.depth,o=a-(t[s-1].elem.height+t[s-1].elem.depth);r+=a,i.push({type:"kern",size:o}),i.push(t[s])}return{children:i,depth:n}}var l;if("top"===e.positionType){for(var c=e.positionData,h=0;h<e.children.length;h++){var u=e.children[h];c-="kern"===u.type?u.size:u.elem.height+u.elem.depth}l=c}else if("bottom"===e.positionType)l=-e.positionData;else{n=e.children[0];if("elem"!==n.type)throw new Error('First child must have type "elem".');if("shift"===e.positionType)l=-n.elem.depth-e.positionData;else{if("firstBaseline"!==e.positionType)throw new Error("Invalid positionType "+e.positionType+".");l=-n.elem.depth}}return{children:e.children,depth:l}},"getVListChildrenAndDepth"),dc=mt(function(e,t){for(var{children:i,depth:e}=Ka(e),n=0,r=0;r<i.length;r++){var s=i[r];"elem"===s.type&&(s=s.elem,n=Math.max(n,s.maxFontSize,s.height))}n+=2;var a=Ga(["pstrut"],[]);a.style.height=K(n);for(var o=[],l=e,c=e,h=e,u=0;u<i.length;u++){var d,p,g,f=i[u];"kern"===f.type?h+=f.size:(d=f.elem,g=f.wrapperClasses||[],p=f.wrapperStyle||{},(g=Ga(g,[a,d],void 0,p)).style.top=K(-n-h-d.depth),f.marginLeft&&(g.style.marginLeft=f.marginLeft),f.marginRight&&(g.style.marginRight=f.marginRight),o.push(g),h+=d.height+d.depth),l=Math.min(l,h),c=Math.max(c,h)}var m,e=Ga(["vlist"],o),y=(e.style.height=K(c),m=l<0?(y=Ga([],[]),(y=Ga(["vlist"],[y])).style.height=K(-l),m=Ga(["vlist-s"],[new pa("")]),[Ga(["vlist-r"],[e,m]),Ga(["vlist-r"],[y])]):[Ga(["vlist-r"],[e])],Ga(["vlist-t"],m));return 2===m.length&&y.classes.push("vlist-t2"),y.height=c,y.depth=-l,y},"makeVList"),Wl=mt((e,t)=>{var i=Ga(["mspace"],[],t),e=na(e,t);return i.style.marginRight=K(e),i},"makeGlue"),Za=mt(function(e,t,i){var n="";switch(e){case"amsrm":n="AMS";break;case"textrm":n="Main";break;case"textsf":n="SansSerif";break;case"texttt":n="Typewriter";break;default:n=e}return n+"-"+("textbf"===t&&"textit"===i?"BoldItalic":"textbf"===t?"Bold":"textit"===t?"Italic":"Regular")},"retrieveTextFontName"),Qa={mathbf:{variant:"bold",fontName:"Main-Bold"},mathrm:{variant:"normal",fontName:"Main-Regular"},textit:{variant:"italic",fontName:"Main-Italic"},mathit:{variant:"italic",fontName:"Main-Italic"},mathnormal:{variant:"italic",fontName:"Math-Italic"},mathsfit:{variant:"sans-serif-italic",fontName:"SansSerif-Italic"},mathbb:{variant:"double-struck",fontName:"AMS-Regular"},mathcal:{variant:"script",fontName:"Caligraphic-Regular"},mathfrak:{variant:"fraktur",fontName:"Fraktur-Regular"},mathscr:{variant:"script",fontName:"Script-Regular"},mathsf:{variant:"sans-serif",fontName:"SansSerif-Regular"},mathtt:{variant:"monospace",fontName:"Typewriter-Regular"}},Ja={vec:["vec",.471,.714],oiintSize1:["oiintSize1",.957,.499],oiintSize2:["oiintSize2",1.472,.659],oiiintSize1:["oiiintSize1",1.304,.499],oiiintSize2:["oiiintSize2",1.98,.659]},Cl=mt(function(e,t){var[e,i,n]=Ja[e],e=new fa(e),e=new ga([e],{width:K(i),height:K(n),style:"width:"+K(i),viewBox:"0 0 "+1e3*i+" "+1e3*n,preserveAspectRatio:"xMinYMin"}),e=Ya(["overlay"],[e],t);return e.height=n,e.style.height=K(n),e.style.width=K(i),e},"staticSvg"),Z={fontMap:Qa,makeSymbol:Ua,mathsym:$l,makeSpan:Ga,makeSvgSpan:Ya,makeLineSpan:Ll,makeAnchor:Fl,makeFragment:Xa,wrapFragment:y,makeVList:dc,makeOrd:Ul,makeGlue:Wl,staticSvg:Cl,svgData:Ja,tryCombineChars:f},eo={mord:{mop:m={number:3,unit:"mu"},mbin:$l={number:4,unit:"mu"},mrel:Ll={number:5,unit:"mu"},minner:m},mop:{mord:m,mop:m,mrel:Ll,minner:m},mbin:{mord:$l,mop:$l,mopen:$l,minner:$l},mrel:{mord:Ll,mop:Ll,mopen:Ll,minner:Ll},mopen:{},mclose:{mop:m,mbin:$l,mrel:Ll,minner:m},mpunct:{mord:m,mop:m,mrel:Ll,mopen:m,mclose:m,mpunct:m,minner:m},minner:{mord:m,mop:m,mbin:$l,mrel:Ll,mopen:m,mpunct:m,minner:m}},to={mord:{mop:m},mop:{mord:m,mop:m},mbin:{},mrel:{},mopen:{},mclose:{mop:m},mpunct:{},minner:{mop:m}},io={},no={},ro={},mt(l,"defineFunction"),mt(Gr,"defineFunctionBuilders"),so=mt(function(e){return"ordgroup"===e.type&&1===e.body.length?e.body[0]:e},"normalizeArgument"),ao=mt(function(e){return"ordgroup"===e.type?e.body:[e]},"ordargument"),oo=Z.makeSpan,lo=["leftmost","mbin","mopen","mrel","mop","mpunct"],co=["rightmost","mrel","mclose","mpunct"],ho={display:Rs.DISPLAY,text:Rs.TEXT,script:Rs.SCRIPT,scriptscript:Rs.SCRIPTSCRIPT},uo={mord:"mord",mop:"mop",mbin:"mbin",mrel:"mrel",mopen:"mopen",mclose:"mclose",mpunct:"mpunct",minner:"minner"},po=mt(function(e,t,i,n){void 0===n&&(n=[null,null]);for(var r,s,a=[],o=0;o<e.length;o++){var l,c=vo(e[o],t);c instanceof Ws?(l=c.children,a.push(...l)):a.push(c)}return Z.tryCombineChars(a),i&&(r=t,1===e.length&&("sizing"===(s=e[0]).type?r=t.havingSize(s.size):"styling"===s.type&&(r=t.havingStyle(ho[s.style]))),s=oo([n[0]||"leftmost"],[],t),n=oo([n[1]||"rightmost"],[],t),go(a,(e,t)=>{var i=t.classes[0],n=e.classes[0];"mbin"===i&&ws.contains(co,n)?t.classes[0]="mord":"mbin"===n&&ws.contains(lo,i)&&(e.classes[0]="mord")},{node:s},n,i="root"===i),go(a,(e,t)=>{var t=yo(t),i=yo(e),e=t&&i?(e.hasClass("mtight")?to:eo)[t][i]:null;if(e)return Z.makeGlue(e,r)},{node:s},n,i)),a},"buildExpression"),go=mt(function e(i,t,n,r,s){r&&i.push(r);for(var a=0;a<i.length;a++){var o,l=i[a],c=fo(l);c?e(c.children,t,n,null,s):((c=!l.hasClass("mspace"))&&(o=t(l,n.node))&&(n.insertAfter?n.insertAfter(o):(i.unshift(o),a++)),c?n.node=l:s&&l.hasClass("newline")&&(n.node=oo(["leftmost"])),n.insertAfter=(t=>e=>{i.splice(t+1,0,e),a++})(a))}r&&i.pop()},"traverseNonSpaceNodes"),fo=mt(function(e){return e instanceof Ws||e instanceof ha||e instanceof ca&&e.hasClass("enclosing")?e:null},"checkPartialGroup"),mo=mt(function e(t,i){var n=fo(t);if(n){n=n.children;if(n.length){if("right"===i)return e(n[n.length-1],"right");if("left"===i)return e(n[0],"left")}}return t},"getOutermostNode"),yo=mt(function(e,t){return e&&(t&&(e=mo(e,t)),uo[e.classes[0]])||null},"getTypeOfDomTree"),bo=mt(function(e,t){e=["nulldelimiter"].concat(e.baseSizingClasses());return oo(t.concat(e))},"makeNullDelimiter"),vo=mt(function(e,t,i){if(!e)return oo();var n;if(no[e.type])return n=no[e.type](e,t),i&&t.size!==i.size&&(n=oo(t.sizingClasses(i),[n],t),t=t.sizeMultiplier/i.sizeMultiplier,n.height*=t,n.depth*=t),n;throw new X("Got group of unknown type: '"+e.type+"'")},"buildGroup"),mt(Yr,"buildHTMLUnbreakable"),mt(Xr,"buildHTML"),mt(Kr,"newDocumentFragment"),xo=class{static{mt(this,"MathNode")}constructor(e,t,i){this.type=void 0,this.attributes=void 0,this.children=void 0,this.classes=void 0,this.type=e,this.attributes={},this.children=t||[],this.classes=i||[]}setAttribute(e,t){this.attributes[e]=t}getAttribute(e){return this.attributes[e]}toNode(){var e,t=document.createElementNS("http://www.w3.org/1998/Math/MathML",this.type);for(e in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,e)&&t.setAttribute(e,this.attributes[e]);0<this.classes.length&&(t.className=ra(this.classes));for(var i=0;i<this.children.length;i++)if(this.children[i]instanceof wo&&this.children[i+1]instanceof wo){for(var n=this.children[i].toText()+this.children[++i].toText();this.children[i+1]instanceof wo;)n+=this.children[++i].toText();t.appendChild(new wo(n).toNode())}else t.appendChild(this.children[i].toNode());return t}toMarkup(){var e,t="<"+this.type;for(e in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,e)&&(t+=" "+e+'="',t+=ws.escape(this.attributes[e]),t+='"');0<this.classes.length&&(t+=' class ="'+ws.escape(ra(this.classes))+'"'),t+=">";for(var i=0;i<this.children.length;i++)t+=this.children[i].toMarkup();return t+="</"+this.type+">"}toText(){return this.children.map(e=>e.toText()).join("")}},wo=class{static{mt(this,"TextNode")}constructor(e){this.text=void 0,this.text=e}toNode(){return document.createTextNode(this.text)}toMarkup(){return ws.escape(this.toText())}toText(){return this.text}},Fl=class{static{mt(this,"SpaceNode")}constructor(e){this.width=void 0,this.character=void 0,this.width=e,this.character=.05555<=e&&e<=.05556?" ":.1666<=e&&e<=.1667?" ":.2222<=e&&e<=.2223?" ":.2777<=e&&e<=.2778?" ":-.05556<=e&&e<=-.05555?" ":-.1667<=e&&e<=-.1666?" ":-.2223<=e&&e<=-.2222?" ":-.2778<=e&&e<=-.2777?" ":null}toNode(){var e;return this.character?document.createTextNode(this.character):((e=document.createElementNS("http://www.w3.org/1998/Math/MathML","mspace")).setAttribute("width",K(this.width)),e)}toMarkup(){return this.character?"<mtext>"+this.character+"</mtext>":'<mspace width="'+K(this.width)+'"/>'}toText(){return this.character||" "}},S={MathNode:xo,TextNode:wo,SpaceNode:Fl,newDocumentFragment:Kr},ko=mt(function(e,t,i){return!va[t][e]||!va[t][e].replace||55349===e.charCodeAt(0)||wa.hasOwnProperty(e)&&i&&(i.fontFamily&&"tt"===i.fontFamily.slice(4,6)||i.font&&"tt"===i.font.slice(4,6))||(e=va[t][e].replace),new S.TextNode(e)},"makeText"),To=mt(function(e){return 1===e.length?e[0]:new S.MathNode("mrow",e)},"makeRow"),So=mt(function(e,t){var i;return"texttt"===t.fontFamily?"monospace":"textsf"===t.fontFamily?"textit"===t.fontShape&&"textbf"===t.fontWeight?"sans-serif-bold-italic":"textit"===t.fontShape?"sans-serif-italic":"textbf"===t.fontWeight?"bold-sans-serif":"sans-serif":"textit"===t.fontShape&&"textbf"===t.fontWeight?"bold-italic":"textit"===t.fontShape?"italic":"textbf"===t.fontWeight?"bold":(t=t.font)&&"mathnormal"!==t?(i=e.mode,"mathit"===t?"italic":"boldsymbol"===t?"textord"===e.type?"bold":"bold-italic":"mathbf"===t?"bold":"mathbb"===t?"double-struck":"mathsfit"===t?"sans-serif-italic":"mathfrak"===t?"fraktur":"mathscr"===t||"mathcal"===t?"script":"mathsf"===t?"sans-serif":"mathtt"===t?"monospace":(e=e.text,!ws.contains(["\\imath","\\jmath"],e)&&Ur(e=va[i][e]&&va[i][e].replace?va[i][e].replace:e,Z.fontMap[t].fontName,i)?Z.fontMap[t].variant:null)):null},"getVariant"),mt(Zr,"isNumberPunctuation"),_o=mt(function(e,t,i){var n;if(1===e.length)return n=Ao(e[0],t),i&&n instanceof xo&&"mo"===n.type&&(n.setAttribute("lspace","0em"),n.setAttribute("rspace","0em")),[n];for(var r,s=[],a=0;a<e.length;a++){var o,l,c=Ao(e[a],t);if(c instanceof xo&&r instanceof xo){if("mtext"===c.type&&"mtext"===r.type&&c.getAttribute("mathvariant")===r.getAttribute("mathvariant")){r.children.push(...c.children);continue}if("mn"===c.type&&"mn"===r.type){r.children.push(...c.children);continue}if(Zr(c)&&"mn"===r.type){r.children.push(...c.children);continue}"mn"===c.type&&Zr(r)?(c.children=[...r.children,...c.children],s.pop()):("msup"===c.type||"msub"===c.type)&&1<=c.children.length&&("mn"===r.type||Zr(r))?(o=c.children[0])instanceof xo&&"mn"===o.type&&(o.children=[...r.children,...o.children],s.pop()):"mi"===r.type&&1===r.children.length&&(o=r.children[0])instanceof wo&&"̸"===o.text&&("mo"===c.type||"mi"===c.type||"mn"===c.type)&&(l=c.children[0])instanceof wo&&0<l.text.length&&(l.text=l.text.slice(0,1)+"̸"+l.text.slice(1),s.pop())}s.push(c),r=c}return s},"buildExpression"),Co=mt(function(e,t,i){return To(_o(e,t,i))},"buildExpressionRow"),Ao=mt(function(e,t){if(!e)return new S.MathNode("mrow");if(ro[e.type])return ro[e.type](e,t);throw new X("Got group of unknown type: '"+e.type+"'")},"buildGroup"),mt(Qr,"buildMathML"),Eo=mt(function(e){return new Js({style:e.displayMode?Rs.DISPLAY:Rs.TEXT,maxSize:e.maxSize,minRuleThickness:e.minRuleThickness})},"optionsFromSettings"),$o=mt(function(e,t){var i;return t.displayMode&&(i=["katex-display"],t.leqno&&i.push("leqno"),t.fleqn&&i.push("fleqn"),e=Z.makeSpan(i,[e])),e},"displayWrap"),Lo=mt(function(e,t,i){var n,r=Eo(i);return"mathml"===i.output?Qr(e,t,r,i.displayMode,!0):(e="html"===i.output?(n=Xr(e,r),Z.makeSpan(["katex"],[n])):(n=Qr(e,t,r,i.displayMode,!1),t=Xr(e,r),Z.makeSpan(["katex"],[n,t])),$o(e,i))},"buildTree"),Ro=mt(function(e,t,i){e=Xr(e,Eo(i)),e=Z.makeSpan(["katex"],[e]);return $o(e,i)},"buildHTMLTree"),Mo={widehat:"^",widecheck:"ˇ",widetilde:"~",utilde:"~",overleftarrow:"←",underleftarrow:"←",xleftarrow:"←",overrightarrow:"→",underrightarrow:"→",xrightarrow:"→",underbrace:"⏟",overbrace:"⏞",overgroup:"⏠",undergroup:"⏡",overleftrightarrow:"↔",underleftrightarrow:"↔",xleftrightarrow:"↔",Overrightarrow:"⇒",xRightarrow:"⇒",overleftharpoon:"↼",xleftharpoonup:"↼",overrightharpoon:"⇀",xrightharpoonup:"⇀",xLeftarrow:"⇐",xLeftrightarrow:"⇔",xhookleftarrow:"↩",xhookrightarrow:"↪",xmapsto:"↦",xrightharpoondown:"⇁",xleftharpoondown:"↽",xrightleftharpoons:"⇌",xleftrightharpoons:"⇋",xtwoheadleftarrow:"↞",xtwoheadrightarrow:"↠",xlongequal:"=",xtofrom:"⇄",xrightleftarrows:"⇄",xrightequilibrium:"⇌",xleftequilibrium:"⇋","\\cdrightarrow":"→","\\cdleftarrow":"←","\\cdlongequal":"="},y=mt(function(e){e=new S.MathNode("mo",[new S.TextNode(Mo[e.replace(/^\\/,"")])]);return e.setAttribute("stretchy","true"),e},"mathMLnode"),Io={overrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],overleftarrow:[["leftarrow"],.888,522,"xMinYMin"],underrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],underleftarrow:[["leftarrow"],.888,522,"xMinYMin"],xrightarrow:[["rightarrow"],1.469,522,"xMaxYMin"],"\\cdrightarrow":[["rightarrow"],3,522,"xMaxYMin"],xleftarrow:[["leftarrow"],1.469,522,"xMinYMin"],"\\cdleftarrow":[["leftarrow"],3,522,"xMinYMin"],Overrightarrow:[["doublerightarrow"],.888,560,"xMaxYMin"],xRightarrow:[["doublerightarrow"],1.526,560,"xMaxYMin"],xLeftarrow:[["doubleleftarrow"],1.526,560,"xMinYMin"],overleftharpoon:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoonup:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoondown:[["leftharpoondown"],.888,522,"xMinYMin"],overrightharpoon:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoonup:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoondown:[["rightharpoondown"],.888,522,"xMaxYMin"],xlongequal:[["longequal"],.888,334,"xMinYMin"],"\\cdlongequal":[["longequal"],3,334,"xMinYMin"],xtwoheadleftarrow:[["twoheadleftarrow"],.888,334,"xMinYMin"],xtwoheadrightarrow:[["twoheadrightarrow"],.888,334,"xMaxYMin"],overleftrightarrow:[["leftarrow","rightarrow"],.888,522],overbrace:[["leftbrace","midbrace","rightbrace"],1.6,548],underbrace:[["leftbraceunder","midbraceunder","rightbraceunder"],1.6,548],underleftrightarrow:[["leftarrow","rightarrow"],.888,522],xleftrightarrow:[["leftarrow","rightarrow"],1.75,522],xLeftrightarrow:[["doubleleftarrow","doublerightarrow"],1.75,560],xrightleftharpoons:[["leftharpoondownplus","rightharpoonplus"],1.75,716],xleftrightharpoons:[["leftharpoonplus","rightharpoondownplus"],1.75,716],xhookleftarrow:[["leftarrow","righthook"],1.08,522],xhookrightarrow:[["lefthook","rightarrow"],1.08,522],overlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],underlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],overgroup:[["leftgroup","rightgroup"],.888,342],undergroup:[["leftgroupunder","rightgroupunder"],.888,342],xmapsto:[["leftmapsto","rightarrow"],1.5,522],xtofrom:[["leftToFrom","rightToFrom"],1.75,528],xrightleftarrows:[["baraboveleftarrow","rightarrowabovebar"],1.75,901],xrightequilibrium:[["baraboveshortleftharpoon","rightharpoonaboveshortbar"],1.75,716],xleftequilibrium:[["shortbaraboveleftharpoon","shortrightharpoonabovebar"],1.75,716]},No=mt(function(e){return"ordgroup"===e.type?e.body.length:1},"groupLength"),dc=mt(function(f,m){function e(){var e,t,i=4e5,n=f.label.slice(1);if(ws.contains(["widehat","widecheck","widetilde","utilde"],n))return t=5<(t=No(f.base))?"widehat"===n||"widecheck"===n?(s=420,i=2364,e=.42,n+"4"):(s=312,i=2340,e=.34,"tilde4"):(t=[1,1,2,2,3,3][t],"widehat"===n||"widecheck"===n?(i=[0,1062,2364,2364,2364][t],s=[0,239,300,360,420][t],e=[0,.24,.3,.3,.36,.42][t],n+t):(i=[0,600,1033,2339,2340][t],s=[0,260,286,306,312][t],e=[0,.26,.286,.3,.306,.34][t],"tilde"+t)),t=new fa(t),t=new ga([t],{width:"100%",height:K(e),viewBox:"0 0 "+i+" "+s,preserveAspectRatio:"none"}),{span:Z.makeSvgSpan([],[t],m),minWidth:0,height:e};var r=[],s=Io[n],[a,o,l]=s,c=l/1e3,h=a.length;if(1===h)var u=["hide-tail"],d=[s[3]];else if(2===h)u=["halfarrow-left","halfarrow-right"],d=["xMinYMin","xMaxYMin"];else{if(3!==h)throw new Error(`Correct katexImagesData or update code here to support
|
||
`+h+" children.");u=["brace-left","brace-center","brace-right"],d=["xMinYMin","xMidYMin","xMaxYMin"]}for(var p=0;p<h;p++){var g=new fa(a[p]),g=new ga([g],{width:"400em",height:K(c),viewBox:"0 0 "+i+" "+l,preserveAspectRatio:d[p]+" slice"}),g=Z.makeSvgSpan([u[p]],[g],m);if(1===h)return{span:g,minWidth:o,height:c};g.style.height=K(c),r.push(g)}return{span:Z.makeSpan(["stretchy"],r,m),minWidth:o,height:c}}mt(e,"buildSvgSpan_");var{span:t,minWidth:i,height:n}=e();return t.height=n,t.style.height=K(n),0<i&&(t.style.minWidth=K(i)),t},"svgSpan"),Ul=mt(function(e,t,i,n,r){var s,e=e.height+e.depth+i+n;return/fbox|color|angl/.test(t)?(s=Z.makeSpan(["stretchy",t],[],r),"fbox"===t&&(i=r.color&&r.getColor())&&(s.style.borderColor=i)):(n=[],/^[bx]cancel$/.test(t)&&n.push(new ma({x1:"0",y1:"0",x2:"100%",y2:"100%","stroke-width":"0.046em"})),/^x?cancel$/.test(t)&&n.push(new ma({x1:"0",y1:"100%",x2:"100%",y2:"0","stroke-width":"0.046em"})),i=new ga(n,{width:"100%",height:K(e)}),s=Z.makeSvgSpan([],[i],r)),s.height=e,s.style.height=K(e),s},"encloseSpan"),Do={encloseSpan:Ul,mathMLnode:y,svgSpan:dc},mt(Jr,"assertNodeType"),mt(es,"assertSymbolNodeType"),mt(ts,"checkSymbolNodeType"),Oo=mt((e,t)=>{e&&"supsub"===e.type?(o=(i=Jr(e.base,"accent")).base,e.base=o,n=Vr(vo(e,t)),e.base=i):o=(i=Jr(e,"accent")).base;var i,n,r,s,e=vo(o,t.havingCrampedStyle()),a=0,o=(i.isShifty&&ws.isCharacterBox(o)&&(o=ws.getBaseElem(o),a=Wr(vo(o,t.havingCrampedStyle())).skew),"\\c"===i.label),l=o?e.height+e.depth:Math.min(e.height,t.fontMetrics().xHeight),c=i.isStretchy?(c=Do.svgSpan(i,t),Z.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:e},{type:"elem",elem:c,wrapperClasses:["svg-align"],wrapperStyle:0<a?{width:"calc(100% - "+K(2*a)+")",marginLeft:K(2*a)}:void 0}]},t)):("\\vec"===i.label?(s=Z.staticSvg("vec",t),r=Z.svgData.vec[1]):((s=Wr(s=Z.makeOrd({mode:i.mode,text:i.label},t,"textord"))).italic=0,r=s.width,o&&(l+=s.depth)),c=Z.makeSpan(["accent-body"],[s]),(o="\\textcircled"===i.label)&&(c.classes.push("accent-full"),l=e.height),s=a,o||(s-=r/2),c.style.left=K(s),"\\textcircled"===i.label&&(c.style.top=".2em"),Z.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:e},{type:"kern",size:-l},{type:"elem",elem:c}]},t)),a=Z.makeSpan(["mord","accent"],[c],t);return n?(n.children[0]=a,n.height=Math.max(a.height,n.height),n.classes[0]="mord",n):a},"htmlBuilder$a"),Wl=mt((e,t)=>{var i=e.isStretchy?Do.mathMLnode(e.label):new S.MathNode("mo",[ko(e.label,e.mode)]),e=new S.MathNode("mover",[Ao(e.base,t),i]);return e.setAttribute("accent","true"),e},"mathmlBuilder$9"),Po=new RegExp(["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring"].map(e=>"\\"+e).join("|")),l({type:"accent",names:["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring","\\widecheck","\\widehat","\\widetilde","\\overrightarrow","\\overleftarrow","\\Overrightarrow","\\overleftrightarrow","\\overgroup","\\overlinesegment","\\overleftharpoon","\\overrightharpoon"],props:{numArgs:1},handler:mt((e,t)=>{var t=so(t[0]),i=!Po.test(e.funcName),n=!i||"\\widehat"===e.funcName||"\\widetilde"===e.funcName||"\\widecheck"===e.funcName;return{type:"accent",mode:e.parser.mode,label:e.funcName,isStretchy:i,isShifty:n,base:t}},"handler"),htmlBuilder:Oo,mathmlBuilder:Wl}),l({type:"accent",names:["\\'","\\`","\\^","\\~","\\=","\\u","\\.",'\\"',"\\c","\\r","\\H","\\v","\\textcircled"],props:{numArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:["primitive"]},handler:mt((e,t)=>{var t=t[0],i=e.parser.mode;return"math"===i&&(e.parser.settings.reportNonstrict("mathVsTextAccents","LaTeX's accent "+e.funcName+" works only in text mode"),i="text"),{type:"accent",mode:i,label:e.funcName,isStretchy:!1,isShifty:!0,base:t}},"handler"),htmlBuilder:Oo,mathmlBuilder:Wl}),l({type:"accentUnder",names:["\\underleftarrow","\\underrightarrow","\\underleftrightarrow","\\undergroup","\\underlinesegment","\\utilde"],props:{numArgs:1},handler:mt((e,t)=>{var{parser:e,funcName:i}=e,t=t[0];return{type:"accentUnder",mode:e.mode,label:i,base:t}},"handler"),htmlBuilder:mt((e,t)=>{var i=vo(e.base,t),n=Do.svgSpan(e,t),e="\\utilde"===e.label?.12:0,n=Z.makeVList({positionType:"top",positionData:i.height,children:[{type:"elem",elem:n,wrapperClasses:["svg-align"]},{type:"kern",size:e},{type:"elem",elem:i}]},t);return Z.makeSpan(["mord","accentunder"],[n],t)},"htmlBuilder"),mathmlBuilder:mt((e,t)=>{var i=Do.mathMLnode(e.label),e=new S.MathNode("munder",[Ao(e.base,t),i]);return e.setAttribute("accentunder","true"),e},"mathmlBuilder")}),Bo=mt(e=>{e=new S.MathNode("mpadded",e?[e]:[]);return e.setAttribute("width","+0.6em"),e.setAttribute("lspace","0.3em"),e},"paddedNode"),l({type:"xArrow",names:["\\xleftarrow","\\xrightarrow","\\xLeftarrow","\\xRightarrow","\\xleftrightarrow","\\xLeftrightarrow","\\xhookleftarrow","\\xhookrightarrow","\\xmapsto","\\xrightharpoondown","\\xrightharpoonup","\\xleftharpoondown","\\xleftharpoonup","\\xrightleftharpoons","\\xleftrightharpoons","\\xlongequal","\\xtwoheadrightarrow","\\xtwoheadleftarrow","\\xtofrom","\\xrightleftarrows","\\xrightequilibrium","\\xleftequilibrium","\\\\cdrightarrow","\\\\cdleftarrow","\\\\cdlongequal"],props:{numArgs:1,numOptionalArgs:1},handler(e,t,i){var{parser:e,funcName:n}=e;return{type:"xArrow",mode:e.mode,label:n,body:t[0],below:i[0]}},htmlBuilder(e,t){var i,n=t.style,r=t.havingStyle(n.sup()),s=Z.wrapFragment(vo(e.body,r,t),t),a="\\x"===e.label.slice(0,2)?"x":"cd",n=(s.classes.push(a+"-arrow-pad"),e.below&&(r=t.havingStyle(n.sub()),(i=Z.wrapFragment(vo(e.below,r,t),t)).classes.push(a+"-arrow-pad")),Do.svgSpan(e,t)),r=-t.fontMetrics().axisHeight+.5*n.height,a=-t.fontMetrics().axisHeight-.5*n.height-.111;return(.25<s.depth||"\\xleftequilibrium"===e.label)&&(a-=s.depth),(i=i?(e=-t.fontMetrics().axisHeight+i.height+.5*n.height+.111,Z.makeVList({positionType:"individualShift",children:[{type:"elem",elem:s,shift:a},{type:"elem",elem:n,shift:r},{type:"elem",elem:i,shift:e}]},t)):Z.makeVList({positionType:"individualShift",children:[{type:"elem",elem:s,shift:a},{type:"elem",elem:n,shift:r}]},t)).children[0].children[0].children[1].classes.push("svg-align"),Z.makeSpan(["mrel","x-arrow"],[i],t)},mathmlBuilder(e,t){var i,n,r,s=Do.mathMLnode(e.label);return s.setAttribute("minsize","x"===e.label.charAt(0)?"1.75em":"3.0em"),n=e.body?(i=Bo(Ao(e.body,t)),e.below?(r=Bo(Ao(e.below,t)),new S.MathNode("munderover",[s,r,i])):new S.MathNode("mover",[s,i])):e.below?(r=Bo(Ao(e.below,t)),new S.MathNode("munder",[s,r])):(n=Bo(),new S.MathNode("mover",[s,n]))}}),Fo=Z.makeSpan,mt(is,"htmlBuilder$9"),mt(ns,"mathmlBuilder$8"),l({type:"mclass",names:["\\mathord","\\mathbin","\\mathrel","\\mathopen","\\mathclose","\\mathpunct","\\mathinner"],props:{numArgs:1,primitive:!0},handler(e,t){var{parser:e,funcName:i}=e,t=t[0];return{type:"mclass",mode:e.mode,mclass:"m"+i.slice(5),body:ao(t),isCharacterBox:ws.isCharacterBox(t)}},htmlBuilder:is,mathmlBuilder:ns}),jo=mt(e=>{e="ordgroup"===e.type&&e.body.length?e.body[0]:e;return"atom"!==e.type||"bin"!==e.family&&"rel"!==e.family?"mord":"m"+e.family},"binrelClass"),l({type:"mclass",names:["\\@binrel"],props:{numArgs:2},handler(e,t){e=e.parser;return{type:"mclass",mode:e.mode,mclass:jo(t[0]),body:ao(t[1]),isCharacterBox:ws.isCharacterBox(t[1])}}}),l({type:"mclass",names:["\\stackrel","\\overset","\\underset"],props:{numArgs:2},handler(e,t){var{parser:e,funcName:i}=e,n=t[1],t=t[0],r="\\stackrel"!==i?jo(n):"mrel",n={type:"op",mode:n.mode,limits:!0,alwaysHandleSupSub:!0,parentIsSupSub:!1,symbol:!1,suppressBaseShift:"\\stackrel"!==i,body:ao(n)},n={type:"supsub",mode:t.mode,base:n,sup:"\\underset"===i?null:t,sub:"\\underset"===i?t:null};return{type:"mclass",mode:e.mode,mclass:r,body:[n],isCharacterBox:ws.isCharacterBox(n)}},htmlBuilder:is,mathmlBuilder:ns}),l({type:"pmb",names:["\\pmb"],props:{numArgs:1,allowedInText:!0},handler(e,t){e=e.parser;return{type:"pmb",mode:e.mode,mclass:jo(t[0]),body:ao(t[0])}},htmlBuilder(e,t){var i=po(e.body,t,!0),e=Z.makeSpan([e.mclass],i,t);return e.style.textShadow="0.02em 0.01em 0.04px",e},mathmlBuilder(e,t){e=_o(e.body,t),t=new S.MathNode("mstyle",e);return t.setAttribute("style","text-shadow: 0.02em 0.01em 0.04px"),t}}),zo={">":"\\\\cdrightarrow","<":"\\\\cdleftarrow","=":"\\\\cdlongequal",A:"\\uparrow",V:"\\downarrow","|":"\\Vert",".":"no arrow"},Ho=mt(()=>({type:"styling",body:[],mode:"math",style:"display"}),"newCell"),Uo=mt(e=>"textord"===e.type&&"@"===e.text,"isStartOfArrow"),qo=mt((e,t)=>("mathord"===e.type||"atom"===e.type)&&e.text===t,"isLabelEnd"),mt(rs,"cdArrow"),mt(ss,"parseCD"),l({type:"cdlabel",names:["\\\\cdleft","\\\\cdright"],props:{numArgs:1},handler(e,t){var{parser:e,funcName:i}=e;return{type:"cdlabel",mode:e.mode,side:i.slice(4),label:t[0]}},htmlBuilder(e,t){var i=t.havingStyle(t.style.sup()),i=Z.wrapFragment(vo(e.label,i,t),t);return i.classes.push("cd-label-"+e.side),i.style.bottom=K(.8-i.depth),i.height=0,i.depth=0,i},mathmlBuilder(e,t){t=new S.MathNode("mrow",[Ao(e.label,t)]);return(t=new S.MathNode("mpadded",[t])).setAttribute("width","0"),"left"===e.side&&t.setAttribute("lspace","-1width"),t.setAttribute("voffset","0.7em"),(t=new S.MathNode("mstyle",[t])).setAttribute("displaystyle","false"),t.setAttribute("scriptlevel","1"),t}}),l({type:"cdlabelparent",names:["\\\\cdparent"],props:{numArgs:1},handler(e,t){e=e.parser;return{type:"cdlabelparent",mode:e.mode,fragment:t[0]}},htmlBuilder(e,t){e=Z.wrapFragment(vo(e.fragment,t),t);return e.classes.push("cd-vert-arrow"),e},mathmlBuilder(e,t){return new S.MathNode("mrow",[Ao(e.fragment,t)])}}),l({type:"textord",names:["\\@char"],props:{numArgs:1,allowedInText:!0},handler(e,t){for(var e=e["parser"],i=Jr(t[0],"ordgroup").body,n="",r=0;r<i.length;r++)n+=Jr(i[r],"textord").text;var t=parseInt(n);if(isNaN(t))throw new X("\\@char has non-numeric argument "+n);if(t<0||1114111<=t)throw new X("\\@char with invalid code point "+n);return t=t<=65535?String.fromCharCode(t):(t-=65536,String.fromCharCode(55296+(t>>10),56320+(1023&t))),{type:"textord",mode:e.mode,text:t}}}),Cl=mt((e,t)=>{t=po(e.body,t.withColor(e.color),!1);return Z.makeFragment(t)},"htmlBuilder$8"),f=mt((e,t)=>{t=_o(e.body,t.withColor(e.color)),t=new S.MathNode("mstyle",t);return t.setAttribute("mathcolor",e.color),t},"mathmlBuilder$7"),l({type:"color",names:["\\textcolor"],props:{numArgs:2,allowedInText:!0,argTypes:["color","original"]},handler(e,t){var e=e["parser"],i=Jr(t[0],"color-token").color,t=t[1];return{type:"color",mode:e.mode,color:i,body:ao(t)}},htmlBuilder:Cl,mathmlBuilder:f}),l({type:"color",names:["\\color"],props:{numArgs:1,allowedInText:!0,argTypes:["color"]},handler(e,t){var{parser:e,breakOnTokenText:i}=e,t=Jr(t[0],"color-token").color,i=(e.gullet.macros.set("\\current@color",t),e.parseExpression(!0,i));return{type:"color",mode:e.mode,color:t,body:i}},htmlBuilder:Cl,mathmlBuilder:f}),l({type:"cr",names:["\\\\"],props:{numArgs:0,numOptionalArgs:0,allowedInText:!0},handler(e,t,i){var e=e["parser"],n="["===e.gullet.future().text?e.parseSizeGroup(!0):null,r=!e.settings.displayMode||!e.settings.useStrictBehavior("newLineInDisplayMode","In LaTeX, \\\\ or \\newline does nothing in display mode");return{type:"cr",mode:e.mode,newLine:r,size:n&&Jr(n,"size").value}},htmlBuilder(e,t){var i=Z.makeSpan(["mspace"],[],t);return e.newLine&&(i.classes.push("newline"),e.size)&&(i.style.marginTop=K(na(e.size,t))),i},mathmlBuilder(e,t){var i=new S.MathNode("mspace");return e.newLine&&(i.setAttribute("linebreak","newline"),e.size)&&i.setAttribute("height",K(na(e.size,t))),i}}),Wo={"\\global":"\\global","\\long":"\\\\globallong","\\\\globallong":"\\\\globallong","\\def":"\\gdef","\\gdef":"\\gdef","\\edef":"\\xdef","\\xdef":"\\xdef","\\let":"\\\\globallet","\\futurelet":"\\\\globalfuture"},Vo=mt(e=>{var t=e.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(t))throw new X("Expected a control sequence",e);return t},"checkControlSequence"),Go=mt(e=>{var t=e.gullet.popToken();return t="="===t.text&&" "===(t=e.gullet.popToken()).text?e.gullet.popToken():t},"getRHS"),Yo=mt((e,t,i,n)=>{var r=e.gullet.macros.get(i.text);null==r&&(i.noexpand=!0,r={tokens:[i],numArgs:0,unexpandable:!e.gullet.isExpandable(i.text)}),e.gullet.macros.set(t,r,n)},"letCommand"),l({type:"internal",names:["\\global","\\long","\\\\globallong"],props:{numArgs:0,allowedInText:!0},handler(e){var{parser:e,funcName:t}=e,i=(e.consumeSpaces(),e.fetch());if(Wo[i.text])return"\\global"!==t&&"\\\\globallong"!==t||(i.text=Wo[i.text]),Jr(e.parseFunction(),"internal");throw new X("Invalid token after macro prefix",i)}}),l({type:"internal",names:["\\def","\\gdef","\\edef","\\xdef"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:e}=e,i=t.gullet.popToken(),n=i.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(n))throw new X("Expected a control sequence",i);for(var r,s=0,a=[[]];"{"!==t.gullet.future().text;)if("#"===(i=t.gullet.popToken()).text){if("{"===t.gullet.future().text){r=t.gullet.future(),a[s].push("{");break}if(i=t.gullet.popToken(),!/^[1-9]$/.test(i.text))throw new X('Invalid argument number "'+i.text+'"');if(parseInt(i.text)!==s+1)throw new X('Argument number "'+i.text+'" out of order');s++,a.push([])}else{if("EOF"===i.text)throw new X("Expected a macro definition");a[s].push(i.text)}var o=t.gullet.consumeArg()["tokens"];return r&&o.unshift(r),"\\edef"!==e&&"\\xdef"!==e||(o=t.gullet.expandTokens(o)).reverse(),t.gullet.macros.set(n,{tokens:o,numArgs:s,delimiters:a},e===Wo[e]),{type:"internal",mode:t.mode}}}),l({type:"internal",names:["\\let","\\\\globallet"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:e,funcName:t}=e,i=Vo(e.gullet.popToken()),n=(e.gullet.consumeSpaces(),Go(e));return Yo(e,i,n,"\\\\globallet"===t),{type:"internal",mode:e.mode}}}),l({type:"internal",names:["\\futurelet","\\\\globalfuture"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:e,funcName:t}=e,i=Vo(e.gullet.popToken()),n=e.gullet.popToken(),r=e.gullet.popToken();return Yo(e,i,r,"\\\\globalfuture"===t),e.gullet.pushToken(r),e.gullet.pushToken(n),{type:"internal",mode:e.mode}}}),Xo=mt(function(e,t,i){i=Ur(va.math[e]&&va.math[e].replace||e,t,i);if(i)return i;throw new Error("Unsupported symbol "+e+" and font size "+t+".")},"getMetrics"),Ko=mt(function(e,t,i,n){t=i.havingBaseStyle(t),n=Z.makeSpan(n.concat(t.sizingClasses(i)),[e],i),e=t.sizeMultiplier/i.sizeMultiplier;return n.height*=e,n.depth*=e,n.maxFontSize=t.sizeMultiplier,n},"styleWrap"),Zo=mt(function(e,t,i){i=t.havingBaseStyle(i),i=(1-t.sizeMultiplier/i.sizeMultiplier)*t.fontMetrics().axisHeight;e.classes.push("delimcenter"),e.style.top=K(i),e.height-=i,e.depth+=i},"centerSpan"),Qo=mt(function(e,t,i,n,r,s){e=Z.makeSymbol(e,"Main-Regular",r,n),r=Ko(e,t,n,s);return i&&Zo(r,n,t),r},"makeSmallDelim"),Jo=mt(function(e,t,i,n){return Z.makeSymbol(e,"Size"+t+"-Regular",i,n)},"mathrmSize"),el=mt(function(e,t,i,n,r,s){e=Jo(e,t,r,n),r=Ko(Z.makeSpan(["delimsizing","size"+t],[e],n),Rs.TEXT,n,s);return i&&Zo(r,n,Rs.TEXT),r},"makeLargeDelim"),tl=mt(function(e,t,i){var n="Size1-Regular"===t?"delim-size1":"delim-size4";return{type:"elem",elem:Z.makeSpan(["delimsizinginner",n],[Z.makeSpan([],[Z.makeSymbol(e,t,i)])])}},"makeGlyphSpan"),il=mt(function(e,t,i){var n=(Vs["Size4-Regular"][e.charCodeAt(0)]?Vs["Size4-Regular"]:Vs["Size1-Regular"])[e.charCodeAt(0)][4],e=new fa("inner",Hs(e,Math.round(1e3*t))),e=new ga([e],{width:K(n),height:K(t),style:"width:"+K(n),viewBox:"0 0 "+1e3*n+" "+Math.round(1e3*t),preserveAspectRatio:"xMinYMin"}),e=Z.makeSvgSpan([],[e],i);return e.height=t,e.style.height=K(t),e.style.width=K(n),{type:"elem",elem:e}},"makeInner"),nl={type:"kern",size:-.008},rl=["|","\\lvert","\\rvert","\\vert"],sl=["\\|","\\lVert","\\rVert","\\Vert"],al=mt(function(e,t,i,n,r,s){var a,o,l,c="",h=0,u=a=o=e,d=null,p="Size1-Regular",e=("\\uparrow"===e?a=o="⏐":"\\Uparrow"===e?a=o="‖":"\\downarrow"===e?u=a="⏐":"\\Downarrow"===e?u=a="‖":"\\updownarrow"===e?(u="\\uparrow",a="⏐",o="\\downarrow"):"\\Updownarrow"===e?(u="\\Uparrow",a="‖",o="\\Downarrow"):ws.contains(rl,e)?(a="∣",c="vert",h=333):ws.contains(sl,e)?(a="∥",c="doublevert",h=556):"["===e||"\\lbrack"===e?(u="⎡",a="⎢",o="⎣",p="Size4-Regular",c="lbrack",h=667):"]"===e||"\\rbrack"===e?(u="⎤",a="⎥",o="⎦",p="Size4-Regular",c="rbrack",h=667):"\\lfloor"===e||"⌊"===e?(a=u="⎢",o="⎣",p="Size4-Regular",c="lfloor",h=667):"\\lceil"===e||"⌈"===e?(u="⎡",a=o="⎢",p="Size4-Regular",c="lceil",h=667):"\\rfloor"===e||"⌋"===e?(a=u="⎥",o="⎦",p="Size4-Regular",c="rfloor",h=667):"\\rceil"===e||"⌉"===e?(u="⎤",a=o="⎥",p="Size4-Regular",c="rceil",h=667):"("===e||"\\lparen"===e?(u="⎛",a="⎜",o="⎝",p="Size4-Regular",c="lparen",h=875):")"===e||"\\rparen"===e?(u="⎞",a="⎟",o="⎠",p="Size4-Regular",c="rparen",h=875):"\\{"===e||"\\lbrace"===e?(u="⎧",d="⎨",o="⎩",a="⎪",p="Size4-Regular"):"\\}"===e||"\\rbrace"===e?(u="⎫",d="⎬",o="⎭",a="⎪",p="Size4-Regular"):"\\lgroup"===e||"⟮"===e?(u="⎧",o="⎩",a="⎪",p="Size4-Regular"):"\\rgroup"===e||"⟯"===e?(u="⎫",o="⎭",a="⎪",p="Size4-Regular"):"\\lmoustache"===e||"⎰"===e?(u="⎧",o="⎭",a="⎪",p="Size4-Regular"):"\\rmoustache"!==e&&"⎱"!==e||(u="⎫",o="⎩",a="⎪",p="Size4-Regular"),Xo(u,p,r)),e=e.height+e.depth,g=Xo(a,p,r),g=g.height+g.depth,f=Xo(o,p,r),f=f.height+f.depth,m=0,y=1,b=(null!==d&&(m=(b=Xo(d,p,r)).height+b.depth,y=2),e+f+m),t=b+Math.max(0,Math.ceil((t-b)/(y*g)))*y*g,b=n.fontMetrics().axisHeight,y=(i&&(b*=n.sizeMultiplier),t/2-b),g=[],b=(0<c.length?(i=t-e-f,b=Math.round(1e3*t),i=qs(c,Math.round(1e3*i)),c=new fa(c,i),i=(h/1e3).toFixed(3)+"em",l=(b/1e3).toFixed(3)+"em",c=new ga([c],{width:i,height:l,viewBox:"0 0 "+h+" "+b}),(h=Z.makeSvgSpan([],[c],n)).height=b/1e3,h.style.width=i,h.style.height=l,g.push({type:"elem",elem:h})):(g.push(tl(o,p,r)),g.push(nl),null===d?g.push(il(a,t-e-f+.016,n)):(g.push(il(a,c=(t-e-f-m)/2+.016,n)),g.push(nl),g.push(tl(d,p,r)),g.push(nl),g.push(il(a,c,n))),g.push(nl),g.push(tl(u,p,r))),n.havingBaseStyle(Rs.TEXT)),i=Z.makeVList({positionType:"bottom",positionData:y,children:g},b);return Ko(Z.makeSpan(["delimsizing","mult"],[i],b),Rs.TEXT,n,s)},"makeStackedDelim"),ol=mt(function(e,t,i,n,r){n=zs(e,n,i),e=new fa(e,n),n=new ga([e],{width:"400em",height:K(t),viewBox:"0 0 400000 "+i,preserveAspectRatio:"xMinYMin slice"});return Z.makeSvgSpan(["hide-tail"],[n],r)},"sqrtSvg"),$l=mt(function(e,t){var i,n=t.havingBaseSizing(),r=ml("\\surd",e*n.sizeMultiplier,gl,n),n=n.sizeMultiplier,s=Math.max(0,t.minRuleThickness-t.fontMetrics().sqrtRuleThickness),a=0,o=0,l=0,r="small"===r.type?(e<1?n=1:e<1.4&&(n=.7),o=(1+s)/n,(i=ol("sqrtMain",a=(1+s+.08)/n,l=1e3+1e3*s+80,s,t)).style.minWidth="0.853em",.833/n):"large"===r.type?(l=1080*ul[r.size],o=(ul[r.size]+s)/n,a=(ul[r.size]+s+.08)/n,(i=ol("sqrtSize"+r.size,a,l,s,t)).style.minWidth="1.02em",1/n):(a=e+s+.08,o=e+s,l=Math.floor(1e3*e+s)+80,(i=ol("sqrtTall",a,l,s,t)).style.minWidth="0.742em",1.056);return i.height=o,i.style.height=K(a),{span:i,advanceWidth:r,ruleWidth:(t.fontMetrics().sqrtRuleThickness+s)*n}},"makeSqrtImage"),ll=["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","⌊","⌋","\\lceil","\\rceil","⌈","⌉","\\surd"],cl=["\\uparrow","\\downarrow","\\updownarrow","\\Uparrow","\\Downarrow","\\Updownarrow","|","\\|","\\vert","\\Vert","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","⟮","⟯","\\lmoustache","\\rmoustache","⎰","⎱"],hl=["<",">","\\langle","\\rangle","/","\\backslash","\\lt","\\gt"],ul=[0,1.2,1.8,2.4,3],Ll=mt(function(e,t,i,n,r){if("<"===e||"\\lt"===e||"⟨"===e?e="\\langle":">"!==e&&"\\gt"!==e&&"⟩"!==e||(e="\\rangle"),ws.contains(ll,e)||ws.contains(hl,e))return el(e,t,!1,i,n,r);if(ws.contains(cl,e))return al(e,ul[t],!1,i,n,r);throw new X("Illegal delimiter: '"+e+"'")},"makeSizedDelim"),dl=[{type:"small",style:Rs.SCRIPTSCRIPT},{type:"small",style:Rs.SCRIPT},{type:"small",style:Rs.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4}],pl=[{type:"small",style:Rs.SCRIPTSCRIPT},{type:"small",style:Rs.SCRIPT},{type:"small",style:Rs.TEXT},{type:"stack"}],gl=[{type:"small",style:Rs.SCRIPTSCRIPT},{type:"small",style:Rs.SCRIPT},{type:"small",style:Rs.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4},{type:"stack"}],fl=mt(function(e){if("small"===e.type)return"Main-Regular";if("large"===e.type)return"Size"+e.size+"-Regular";if("stack"===e.type)return"Size4-Regular";throw new Error("Add support for delim type '"+e.type+"' here.")},"delimTypeToFont"),ml=mt(function(e,t,i,n){for(var r=Math.min(2,3-n.style.size);r<i.length&&"stack"!==i[r].type;r++){var s=Xo(e,fl(i[r]),"math"),s=s.height+s.depth;if("small"===i[r].type&&(s*=n.havingBaseStyle(i[r].style).sizeMultiplier),t<s)return i[r]}return i[i.length-1]},"traverseSequence"),yl=mt(function(e,t,i,n,r,s){"<"===e||"\\lt"===e||"⟨"===e?e="\\langle":">"!==e&&"\\gt"!==e&&"⟩"!==e||(e="\\rangle"),a=ws.contains(hl,e)?dl:ws.contains(ll,e)?gl:pl;var a=ml(e,t,a,n);return"small"===a.type?Qo(e,a.style,i,n,r,s):"large"===a.type?el(e,a.size,i,n,r,s):al(e,t,i,n,r,s)},"makeCustomSizedDelim"),m=mt(function(e,t,i,n,r,s){var a=n.fontMetrics().axisHeight*n.sizeMultiplier,o=5/n.fontMetrics().ptPerEm,t=Math.max(t-a,i+a),i=Math.max(t/500*901,2*t-o);return yl(e,i,!0,n,r,s)},"makeLeftRightDelim"),bl={sqrtImage:$l,sizedDelim:Ll,sizeToMaxHeight:ul,customSizedDelim:yl,leftRightDelim:m},vl={"\\bigl":{mclass:"mopen",size:1},"\\Bigl":{mclass:"mopen",size:2},"\\biggl":{mclass:"mopen",size:3},"\\Biggl":{mclass:"mopen",size:4},"\\bigr":{mclass:"mclose",size:1},"\\Bigr":{mclass:"mclose",size:2},"\\biggr":{mclass:"mclose",size:3},"\\Biggr":{mclass:"mclose",size:4},"\\bigm":{mclass:"mrel",size:1},"\\Bigm":{mclass:"mrel",size:2},"\\biggm":{mclass:"mrel",size:3},"\\Biggm":{mclass:"mrel",size:4},"\\big":{mclass:"mord",size:1},"\\Big":{mclass:"mord",size:2},"\\bigg":{mclass:"mord",size:3},"\\Bigg":{mclass:"mord",size:4}},xl=["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","⌊","⌋","\\lceil","\\rceil","⌈","⌉","<",">","\\langle","⟨","\\rangle","⟩","\\lt","\\gt","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","⟮","⟯","\\lmoustache","\\rmoustache","⎰","⎱","/","\\backslash","|","\\vert","\\|","\\Vert","\\uparrow","\\Uparrow","\\downarrow","\\Downarrow","\\updownarrow","\\Updownarrow","."],mt(as,"checkDelimiter"),l({type:"delimsizing",names:["\\bigl","\\Bigl","\\biggl","\\Biggl","\\bigr","\\Bigr","\\biggr","\\Biggr","\\bigm","\\Bigm","\\biggm","\\Biggm","\\big","\\Big","\\bigg","\\Bigg"],props:{numArgs:1,argTypes:["primitive"]},handler:mt((e,t)=>{t=as(t[0],e);return{type:"delimsizing",mode:e.parser.mode,size:vl[e.funcName].size,mclass:vl[e.funcName].mclass,delim:t.text}},"handler"),htmlBuilder:mt((e,t)=>"."===e.delim?Z.makeSpan([e.mclass]):bl.sizedDelim(e.delim,e.size,t,e.mode,[e.mclass]),"htmlBuilder"),mathmlBuilder:mt(e=>{var t=[],t=("."!==e.delim&&t.push(ko(e.delim,e.mode)),new S.MathNode("mo",t)),e=("mopen"===e.mclass||"mclose"===e.mclass?t.setAttribute("fence","true"):t.setAttribute("fence","false"),t.setAttribute("stretchy","true"),K(bl.sizeToMaxHeight[e.size]));return t.setAttribute("minsize",e),t.setAttribute("maxsize",e),t},"mathmlBuilder")}),mt(os,"assertParsed"),l({type:"leftright-right",names:["\\right"],props:{numArgs:1,primitive:!0},handler:mt((e,t)=>{var i=e.parser.gullet.macros.get("\\current@color");if(i&&"string"!=typeof i)throw new X("\\current@color set to non-string in \\right");return{type:"leftright-right",mode:e.parser.mode,delim:as(t[0],e).text,color:i}},"handler")}),l({type:"leftright",names:["\\left"],props:{numArgs:1,primitive:!0},handler:mt((e,t)=>{var t=as(t[0],e),e=e.parser,i=(++e.leftrightDepth,e.parseExpression(!1)),n=(--e.leftrightDepth,e.expect("\\right",!1),Jr(e.parseFunction(),"leftright-right"));return{type:"leftright",mode:e.mode,body:i,left:t.text,right:n.delim,rightColor:n.color}},"handler"),htmlBuilder:mt((e,t)=>{os(e);for(var i,n=po(e.body,t,!0,["mopen","mclose"]),r=0,s=0,a=!1,o=0;o<n.length;o++)n[o].isMiddle?a=!0:(r=Math.max(n[o].height,r),s=Math.max(n[o].depth,s));if(r*=t.sizeMultiplier,s*=t.sizeMultiplier,i="."===e.left?bo(t,["mopen"]):bl.leftRightDelim(e.left,r,s,t,e.mode,["mopen"]),n.unshift(i),a)for(var l=1;l<n.length;l++){var c=n[l].isMiddle;c&&(n[l]=bl.leftRightDelim(c.delim,r,s,c.options,e.mode,[]))}return i="."===e.right?bo(t,["mclose"]):(i=e.rightColor?t.withColor(e.rightColor):t,bl.leftRightDelim(e.right,r,s,i,e.mode,["mclose"])),n.push(i),Z.makeSpan(["minner"],n,t)},"htmlBuilder"),mathmlBuilder:mt((e,t)=>{os(e);var i,t=_o(e.body,t);return"."!==e.left&&((i=new S.MathNode("mo",[ko(e.left,e.mode)])).setAttribute("fence","true"),t.unshift(i)),"."!==e.right&&((i=new S.MathNode("mo",[ko(e.right,e.mode)])).setAttribute("fence","true"),e.rightColor&&i.setAttribute("mathcolor",e.rightColor),t.push(i)),To(t)},"mathmlBuilder")}),l({type:"middle",names:["\\middle"],props:{numArgs:1,primitive:!0},handler:mt((e,t)=>{t=as(t[0],e);if(e.parser.leftrightDepth)return{type:"middle",mode:e.parser.mode,delim:t.text};throw new X("\\middle without preceding \\left",t)},"handler"),htmlBuilder:mt((e,t)=>{var i;return"."===e.delim?i=bo(t,[]):(i=bl.sizedDelim(e.delim,1,t,e.mode,[]),e={delim:e.delim,options:t},i.isMiddle=e),i},"htmlBuilder"),mathmlBuilder:mt((e,t)=>{e="\\vert"===e.delim||"|"===e.delim?ko("|","text"):ko(e.delim,e.mode),e=new S.MathNode("mo",[e]);return e.setAttribute("fence","true"),e.setAttribute("lspace","0.05em"),e.setAttribute("rspace","0.05em"),e},"mathmlBuilder")}),Fl=mt((e,t)=>{var i,n,r,s,a,o=Z.wrapFragment(vo(e.body,t),t),l=e.label.slice(1),c=t.sizeMultiplier,h=0,u=ws.isCharacterBox(e.body);return"sout"===l?((i=Z.makeSpan(["stretchy","sout"])).height=t.fontMetrics().defaultRuleThickness/c,h=-.5*t.fontMetrics().xHeight):"phase"===l?(s=na({number:.6,unit:"pt"},t),a=na({number:.35,unit:"ex"},t),c/=t.havingBaseSizing().sizeMultiplier,n=o.height+o.depth+s+a,o.style.paddingLeft=K(n/2+s),c=Math.floor(1e3*n*c),r=Fs(c),r=new ga([new fa("phase",r)],{width:"400em",height:K(c/1e3),viewBox:"0 0 400000 "+c,preserveAspectRatio:"xMinYMin slice"}),(i=Z.makeSvgSpan(["hide-tail"],[r],t)).style.height=K(n),h=o.depth+s+a):(/cancel/.test(l)?u||o.classes.push("cancel-pad"):"angl"===l?o.classes.push("anglpad"):o.classes.push("boxpad"),n=r=c=0,r=/box/.test(l)?(n=Math.max(t.fontMetrics().fboxrule,t.minRuleThickness),c=t.fontMetrics().fboxsep+("colorbox"===l?0:n)):"angl"===l?(c=4*(n=Math.max(t.fontMetrics().defaultRuleThickness,t.minRuleThickness)),Math.max(0,.25-o.depth)):c=u?.2:0,i=Do.encloseSpan(o,l,c,r,t),/fbox|boxed|fcolorbox/.test(l)?(i.style.borderStyle="solid",i.style.borderWidth=K(n)):"angl"===l&&.049!==n&&(i.style.borderTopWidth=K(n),i.style.borderRightWidth=K(n)),h=o.depth+r,e.backgroundColor&&(i.style.backgroundColor=e.backgroundColor,e.borderColor)&&(i.style.borderColor=e.borderColor)),a=e.backgroundColor?Z.makeVList({positionType:"individualShift",children:[{type:"elem",elem:i,shift:h},{type:"elem",elem:o,shift:0}]},t):(s=/cancel|phase/.test(l)?["svg-align"]:[],Z.makeVList({positionType:"individualShift",children:[{type:"elem",elem:o,shift:0},{type:"elem",elem:i,shift:h,wrapperClasses:s}]},t)),/cancel/.test(l)&&(a.height=o.height,a.depth=o.depth),/cancel/.test(l)&&!u?Z.makeSpan(["mord","cancel-lap"],[a],t):Z.makeSpan(["mord"],[a],t)},"htmlBuilder$7"),Ul=mt((e,t)=>{var i=new S.MathNode(-1<e.label.indexOf("colorbox")?"mpadded":"menclose",[Ao(e.body,t)]);switch(e.label){case"\\cancel":i.setAttribute("notation","updiagonalstrike");break;case"\\bcancel":i.setAttribute("notation","downdiagonalstrike");break;case"\\phase":i.setAttribute("notation","phasorangle");break;case"\\sout":i.setAttribute("notation","horizontalstrike");break;case"\\fbox":i.setAttribute("notation","box");break;case"\\angl":i.setAttribute("notation","actuarial");break;case"\\fcolorbox":case"\\colorbox":var n=t.fontMetrics().fboxsep*t.fontMetrics().ptPerEm;i.setAttribute("width","+"+2*n+"pt"),i.setAttribute("height","+"+2*n+"pt"),i.setAttribute("lspace",n+"pt"),i.setAttribute("voffset",n+"pt"),"\\fcolorbox"===e.label&&(n=Math.max(t.fontMetrics().fboxrule,t.minRuleThickness),i.setAttribute("style","border: "+n+"em solid "+String(e.borderColor)));break;case"\\xcancel":i.setAttribute("notation","updiagonalstrike downdiagonalstrike")}return e.backgroundColor&&i.setAttribute("mathbackground",e.backgroundColor),i},"mathmlBuilder$6"),l({type:"enclose",names:["\\colorbox"],props:{numArgs:2,allowedInText:!0,argTypes:["color","text"]},handler(e,t,i){var{parser:e,funcName:n}=e,r=Jr(t[0],"color-token").color,t=t[1];return{type:"enclose",mode:e.mode,label:n,backgroundColor:r,body:t}},htmlBuilder:Fl,mathmlBuilder:Ul}),l({type:"enclose",names:["\\fcolorbox"],props:{numArgs:3,allowedInText:!0,argTypes:["color","color","text"]},handler(e,t,i){var{parser:e,funcName:n}=e,r=Jr(t[0],"color-token").color,s=Jr(t[1],"color-token").color,t=t[2];return{type:"enclose",mode:e.mode,label:n,backgroundColor:s,borderColor:r,body:t}},htmlBuilder:Fl,mathmlBuilder:Ul}),l({type:"enclose",names:["\\fbox"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!0},handler(e,t){e=e.parser;return{type:"enclose",mode:e.mode,label:"\\fbox",body:t[0]}}}),l({type:"enclose",names:["\\cancel","\\bcancel","\\xcancel","\\sout","\\phase"],props:{numArgs:1},handler(e,t){var{parser:e,funcName:i}=e,t=t[0];return{type:"enclose",mode:e.mode,label:i,body:t}},htmlBuilder:Fl,mathmlBuilder:Ul}),l({type:"enclose",names:["\\angl"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!1},handler(e,t){e=e.parser;return{type:"enclose",mode:e.mode,label:"\\angl",body:t[0]}}}),wl={},mt(ls,"defineEnvironment"),kl={},mt(h,"defineMacro"),mt(cs,"getHLines"),Tl=mt(e=>{if(!e.parser.settings.displayMode)throw new X("{"+e.envName+"} can be used only in display mode.")},"validateAmsEnvironmentContext"),mt(hs,"getAutoTag"),mt(us,"parseArray"),mt(ds,"dCellStyle"),y=mt(function(e,t){var i=e.body.length,O=e.hLinesBeforeRow,n=0,r=new Array(i),s=[],a=Math.max(t.fontMetrics().arrayRuleWidth,t.minRuleThickness),o=1/t.fontMetrics().ptPerEm,l=5*o,c=(e.colSeparationType&&"small"===e.colSeparationType&&(l=t.havingStyle(Rs.SCRIPT).sizeMultiplier/t.sizeMultiplier*.2778),"CD"===e.colSeparationType?na({number:3,unit:"ex"},t):12*o),P=3*o,o=e.arraystretch*c,B=.7*o,F=.3*o,h=0;function u(e){for(var t=0;t<e.length;++t)0<t&&(h+=.25),s.push({pos:h,isDashed:e[t]})}for(mt(u,"setHLinePos"),u(O[0]),I=0;I<e.body.length;++I){for(var d=e.body[I],p=B,g=F,f=(n<d.length&&(n=d.length),new Array(d.length)),m=0;m<d.length;++m){var y=vo(d[m],t);g<y.depth&&(g=y.depth),p<y.height&&(p=y.height),f[m]=y}var j=e.rowGaps[I],b=0;j&&0<(b=na(j,t))&&(g<(b+=F)&&(g=b),b=0),e.addJot&&(g+=P),f.height=p,f.depth=g,h+=p,f.pos=h,h+=g+b,r[I]=f,u(O[I+1])}var v,x,w=h/2+t.fontMetrics().axisHeight,k=e.cols||[],T=[],S=[];if(e.tags&&e.tags.some(e=>e))for(I=0;I<i;++I){var _=r[I],z=_.pos-w,C=e.tags[I],A=void 0;(A=!0===C?Z.makeSpan(["eqn-num"],[],t):!1===C?Z.makeSpan([],[],t):Z.makeSpan([],po(C,t,!0),t)).depth=_.depth,A.height=_.height,S.push({type:"elem",elem:A,shift:z})}for(x=m=0;m<n||x<k.length;++m,++x){for(var E=k[x]||{},H=!0;"separator"===E.type;){if(H||((v=Z.makeSpan(["arraycolsep"],[])).style.width=K(t.fontMetrics().doubleRuleSep),T.push(v)),"|"!==E.separator&&":"!==E.separator)throw new X("Invalid separator type: "+E.separator);var $="|"===E.separator?"solid":"dashed",L=Z.makeSpan(["vertical-separator"],[],t),$=(L.style.height=K(h),L.style.borderRightWidth=K(a),L.style.borderRightStyle=$,L.style.margin="0 "+K(-a/2),h-w);$&&(L.style.verticalAlign=K(-$)),T.push(L),E=k[++x]||{},H=!1}if(!(n<=m)){for(var R=void 0,M=((0<m||e.hskipBeforeAndAfter)&&0!==(R=ws.deflt(E.pregap,l))&&((v=Z.makeSpan(["arraycolsep"],[])).style.width=K(R),T.push(v)),[]),I=0;I<i;++I){var U,N=r[I],D=N[m];D&&(U=N.pos-w,D.depth=N.depth,D.height=N.height,M.push({type:"elem",elem:D,shift:U}))}M=Z.makeVList({positionType:"individualShift",children:M},t),M=Z.makeSpan(["col-align-"+(E.align||"c")],[M]),T.push(M),(m<n-1||e.hskipBeforeAndAfter)&&0!==(R=ws.deflt(E.postgap,l))&&((v=Z.makeSpan(["arraycolsep"],[])).style.width=K(R),T.push(v))}}if(r=Z.makeSpan(["mtable"],T),0<s.length){for(var q=Z.makeLineSpan("hline",t,a),W=Z.makeLineSpan("hdashline",t,a),V=[{type:"elem",elem:r,shift:0}];0<s.length;){var G=s.pop(),Y=G.pos-w;G.isDashed?V.push({type:"elem",elem:W,shift:Y}):V.push({type:"elem",elem:q,shift:Y})}r=Z.makeVList({positionType:"individualShift",children:V},t)}return 0===S.length?Z.makeSpan(["mord"],[r],t):(c=Z.makeVList({positionType:"individualShift",children:S},t),c=Z.makeSpan(["tag"],[c],t),Z.makeFragment([r,c]))},"htmlBuilder"),Sl={c:"center ",l:"left ",r:"right "},dc=mt(function(e,t){for(var i=[],n=new S.MathNode("mtd",[],["mtr-glue"]),r=new S.MathNode("mtd",[],["mml-eqn-num"]),s=0;s<e.body.length;s++){for(var a=e.body[s],o=[],l=0;l<a.length;l++)o.push(new S.MathNode("mtd",[Ao(a[l],t)]));e.tags&&e.tags[s]&&(o.unshift(n),o.push(n),e.leqno?o.unshift(r):o.push(r)),i.push(new S.MathNode("mtr",o))}var c=new S.MathNode("mtable",i),h=.5===e.arraystretch?.1:.16+e.arraystretch-1+(e.addJot?.09:0),h=(c.setAttribute("rowspacing",K(h)),""),u="";if(e.cols&&0<e.cols.length){var d=e.cols,p="",g=!1,f=0,m=d.length;"separator"===d[0].type&&(h+="top ",f=1),"separator"===d[d.length-1].type&&(h+="bottom ",--m);for(var y=f;y<m;y++)"align"===d[y].type?(u+=Sl[d[y].align],g&&(p+="none "),g=!0):"separator"===d[y].type&&g&&(p+="|"===d[y].separator?"solid ":"dashed ",g=!1);c.setAttribute("columnalign",u.trim()),/[sd]/.test(p)&&c.setAttribute("columnlines",p.trim())}if("align"===e.colSeparationType){for(var b=e.cols||[],v="",x=1;x<b.length;x++)v+=x%2?"0em ":"1em ";c.setAttribute("columnspacing",v.trim())}else"alignat"===e.colSeparationType||"gather"===e.colSeparationType?c.setAttribute("columnspacing","0em"):"small"===e.colSeparationType?c.setAttribute("columnspacing","0.2778em"):"CD"===e.colSeparationType?c.setAttribute("columnspacing","0.5em"):c.setAttribute("columnspacing","1em");for(var w="",k=e.hLinesBeforeRow,h=(h+=0<k[0].length?"left ":"")+(0<k[k.length-1].length?"right ":""),T=1;T<k.length-1;T++)w+=0===k[T].length?"none ":k[T][0]?"dashed ":"solid ";return/[sd]/.test(w)&&c.setAttribute("rowlines",w.trim()),""!==h&&(c=new S.MathNode("menclose",[c])).setAttribute("notation",h.trim()),e.arraystretch&&e.arraystretch<1&&(c=new S.MathNode("mstyle",[c])).setAttribute("scriptlevel","1"),c},"mathmlBuilder"),Wl=mt(function(e,t){-1===e.envName.indexOf("ed")&&Tl(e);var r,i=[],n=-1<e.envName.indexOf("at")?"alignat":"align",s="split"===e.envName,n=us(e.parser,{cols:i,addJot:!0,autoTag:s?void 0:hs(e.envName),emptySingleRow:!0,colSeparationType:n,maxNumCols:s?2:void 0,leqno:e.parser.settings.leqno},"display"),a=0,o={type:"ordgroup",mode:e.mode,body:[]};if(t[0]&&"ordgroup"===t[0].type){for(var l="",c=0;c<t[0].body.length;c++)l+=Jr(t[0].body[c],"textord").text;r=Number(l),a=2*r}var h=!a;n.body.forEach(function(e){for(var t=1;t<e.length;t+=2){var i=Jr(e[t],"styling");Jr(i.body[0],"ordgroup").body.unshift(o)}if(h)a<e.length&&(a=e.length);else{var n=e.length/2;if(r<n)throw new X("Too many math in a row: expected "+r+", but got "+n,e[0])}});for(var u=0;u<a;++u){var d="r",p=0;u%2==1?d="l":0<u&&h&&(p=1),i[u]={type:"align",align:d,pregap:p,postgap:0}}return n.colSeparationType=h?"align":"alignat",n},"alignedHandler"),ls({type:"array",names:["array","darray"],props:{numArgs:1},handler(e,t){t=(ts(t[0])?[t[0]]:Jr(t[0],"ordgroup").body).map(function(e){var t=es(e).text;if(-1!=="lcr".indexOf(t))return{type:"align",align:t};if("|"===t)return{type:"separator",separator:"|"};if(":"===t)return{type:"separator",separator:":"};throw new X("Unknown column alignment: "+t,e)}),t={cols:t,hskipBeforeAndAfter:!0,maxNumCols:t.length};return us(e.parser,t,ds(e.envName))},htmlBuilder:y,mathmlBuilder:dc}),ls({type:"array",names:["matrix","pmatrix","bmatrix","Bmatrix","vmatrix","Vmatrix","matrix*","pmatrix*","bmatrix*","Bmatrix*","vmatrix*","Vmatrix*"],props:{numArgs:0},handler(e){var t={matrix:null,pmatrix:["(",")"],bmatrix:["[","]"],Bmatrix:["\\{","\\}"],vmatrix:["|","|"],Vmatrix:["\\Vert","\\Vert"]}[e.envName.replace("*","")],i="c",n={hskipBeforeAndAfter:!1,cols:[{type:"align",align:i}]};if("*"===e.envName.charAt(e.envName.length-1)){var r=e.parser;if(r.consumeSpaces(),"["===r.fetch().text){if(r.consume(),r.consumeSpaces(),i=r.fetch().text,-1==="lcr".indexOf(i))throw new X("Expected l or c or r",r.nextToken);r.consume(),r.consumeSpaces(),r.expect("]"),r.consume(),n.cols=[{type:"align",align:i}]}}r=us(e.parser,n,ds(e.envName)),n=Math.max(0,...r.body.map(e=>e.length));return r.cols=new Array(n).fill({type:"align",align:i}),t?{type:"leftright",mode:e.mode,body:[r],left:t[0],right:t[1],rightColor:void 0}:r},htmlBuilder:y,mathmlBuilder:dc}),ls({type:"array",names:["smallmatrix"],props:{numArgs:0},handler(e){e=us(e.parser,{arraystretch:.5},"script");return e.colSeparationType="small",e},htmlBuilder:y,mathmlBuilder:dc}),ls({type:"array",names:["subarray"],props:{numArgs:1},handler(e,t){t=(ts(t[0])?[t[0]]:Jr(t[0],"ordgroup").body).map(function(e){var t=es(e).text;if(-1!=="lc".indexOf(t))return{type:"align",align:t};throw new X("Unknown column alignment: "+t,e)});if(1<t.length)throw new X("{subarray} can contain only one column");if(0<(e=us(e.parser,{cols:t,hskipBeforeAndAfter:!1,arraystretch:.5},"script")).body.length&&1<e.body[0].length)throw new X("{subarray} can contain only one column");return e},htmlBuilder:y,mathmlBuilder:dc}),ls({type:"array",names:["cases","dcases","rcases","drcases"],props:{numArgs:0},handler(e){var t=us(e.parser,{arraystretch:1.2,cols:[{type:"align",align:"l",pregap:0,postgap:1},{type:"align",align:"l",pregap:0,postgap:0}]},ds(e.envName));return{type:"leftright",mode:e.mode,body:[t],left:-1<e.envName.indexOf("r")?".":"\\{",right:-1<e.envName.indexOf("r")?"\\}":".",rightColor:void 0}},htmlBuilder:y,mathmlBuilder:dc}),ls({type:"array",names:["align","align*","aligned","split"],props:{numArgs:0},handler:Wl,htmlBuilder:y,mathmlBuilder:dc}),ls({type:"array",names:["gathered","gather","gather*"],props:{numArgs:0},handler(e){ws.contains(["gather","gather*"],e.envName)&&Tl(e);var t={cols:[{type:"align",align:"c"}],addJot:!0,colSeparationType:"gather",autoTag:hs(e.envName),emptySingleRow:!0,leqno:e.parser.settings.leqno};return us(e.parser,t,"display")},htmlBuilder:y,mathmlBuilder:dc}),ls({type:"array",names:["alignat","alignat*","alignedat"],props:{numArgs:1},handler:Wl,htmlBuilder:y,mathmlBuilder:dc}),ls({type:"array",names:["equation","equation*"],props:{numArgs:0},handler(e){Tl(e);var t={autoTag:hs(e.envName),emptySingleRow:!0,singleRow:!0,maxNumCols:1,leqno:e.parser.settings.leqno};return us(e.parser,t,"display")},htmlBuilder:y,mathmlBuilder:dc}),ls({type:"array",names:["CD"],props:{numArgs:0},handler(e){return Tl(e),ss(e.parser)},htmlBuilder:y,mathmlBuilder:dc}),h("\\nonumber","\\gdef\\@eqnsw{0}"),h("\\notag","\\nonumber"),l({type:"text",names:["\\hline","\\hdashline"],props:{numArgs:0,allowedInText:!0,allowedInMath:!0},handler(e,t){throw new X(e.funcName+" valid only within array environment")}}),_l=wl,l({type:"environment",names:["\\begin","\\end"],props:{numArgs:1,argTypes:["text"]},handler(e,t){var{parser:e,funcName:i}=e,n=t[0];if("ordgroup"!==n.type)throw new X("Invalid environment name",n);for(var r="",s=0;s<n.body.length;++s)r+=Jr(n.body[s],"textord").text;if("\\begin"!==i)return{type:"environment",mode:e.mode,name:r,nameGroup:n};if(!_l.hasOwnProperty(r))throw new X("No such environment: "+r,n);var t=_l[r],{args:i,optArgs:a}=e.parseArguments("\\begin{"+r+"}",t),o={mode:e.mode,envName:r,parser:e},t=t.handler(o,i,a),o=(e.expect("\\end",!1),e.nextToken),i=Jr(e.parseFunction(),"environment");if(i.name!==r)throw new X("Mismatch: \\begin{"+r+"} matched by \\end{"+i.name+"}",o);return t}}),Cl=mt((e,t)=>{var i=e.font,t=t.withFont(i);return vo(e.body,t)},"htmlBuilder$5"),f=mt((e,t)=>{var i=e.font,t=t.withFont(i);return Ao(e.body,t)},"mathmlBuilder$4"),Al={"\\Bbb":"\\mathbb","\\bold":"\\mathbf","\\frak":"\\mathfrak","\\bm":"\\boldsymbol"},l({type:"font",names:["\\mathrm","\\mathit","\\mathbf","\\mathnormal","\\mathsfit","\\mathbb","\\mathcal","\\mathfrak","\\mathscr","\\mathsf","\\mathtt","\\Bbb","\\bold","\\frak"],props:{numArgs:1,allowedInArgument:!0},handler:mt((e,t)=>{var{parser:e,funcName:i}=e,t=so(t[0]);return{type:"font",mode:e.mode,font:(i=i in Al?Al[i]:i).slice(1),body:t}},"handler"),htmlBuilder:Cl,mathmlBuilder:f}),l({type:"mclass",names:["\\boldsymbol","\\bm"],props:{numArgs:1},handler:mt((e,t)=>{var e=e["parser"],t=t[0],i=ws.isCharacterBox(t);return{type:"mclass",mode:e.mode,mclass:jo(t),body:[{type:"font",mode:e.mode,font:"boldsymbol",body:t}],isCharacterBox:i}},"handler")}),l({type:"font",names:["\\rm","\\sf","\\tt","\\bf","\\it","\\cal"],props:{numArgs:0,allowedInText:!0},handler:mt((e,t)=>{var{parser:e,funcName:i,breakOnTokenText:n}=e,r=e["mode"],n=e.parseExpression(!0,n);return{type:"font",mode:r,font:"math"+i.slice(1),body:{type:"ordgroup",mode:e.mode,body:n}}},"handler"),htmlBuilder:Cl,mathmlBuilder:f}),El=mt((e,t)=>{return"display"===e?t=t.id>=Rs.SCRIPT.id?t.text():Rs.DISPLAY:"text"===e&&t.size===Rs.DISPLAY.size?t=Rs.TEXT:"script"===e?t=Rs.SCRIPT:"scriptscript"===e&&(t=Rs.SCRIPTSCRIPT),t},"adjustStyle"),$l=mt((e,t)=>{var i,n,r,s,a=El(e.size,t.style),o=a.fracNum(),l=a.fracDen(),o=t.havingStyle(o),c=vo(e.numer,o,t),h=(e.continued&&(h=8.5/t.fontMetrics().ptPerEm,u=3.5/t.fontMetrics().ptPerEm,c.height=c.height<h?h:c.height,c.depth=c.depth<u?u:c.depth),o=t.havingStyle(l),vo(e.denom,o,t)),u=e.hasBarLine?(n=(s=e.barSize?(n=na(e.barSize,t),Z.makeLineSpan("frac-line",t,n)):Z.makeLineSpan("frac-line",t)).height,s.height):(s=null,n=0,t.fontMetrics().defaultRuleThickness),l=a.size===Rs.DISPLAY.size||"display"===e.size?(i=t.fontMetrics().num1,r=0<n?3*u:7*u,t.fontMetrics().denom1):(r=0<n?(i=t.fontMetrics().num2,u):(i=t.fontMetrics().num3,3*u),t.fontMetrics().denom2);return u=s?(u=t.fontMetrics().axisHeight,i-c.depth-(u+.5*n)<r&&(i+=r-(i-c.depth-(u+.5*n))),u-.5*n-(h.height-l)<r&&(l+=r-(u-.5*n-(h.height-l))),Z.makeVList({positionType:"individualShift",children:[{type:"elem",elem:h,shift:l},{type:"elem",elem:s,shift:-(u-.5*n)},{type:"elem",elem:c,shift:-i}]},t)):((s=i-c.depth-(h.height-l))<r&&(i+=.5*(r-s),l+=.5*(r-s)),Z.makeVList({positionType:"individualShift",children:[{type:"elem",elem:h,shift:l},{type:"elem",elem:c,shift:-i}]},t)),o=t.havingStyle(a),u.height*=o.sizeMultiplier/t.sizeMultiplier,u.depth*=o.sizeMultiplier/t.sizeMultiplier,n=a.size===Rs.DISPLAY.size?t.fontMetrics().delim1:(a.size===Rs.SCRIPTSCRIPT.size?t.havingStyle(Rs.SCRIPT):t).fontMetrics().delim2,r=null==e.leftDelim?bo(t,["mopen"]):bl.customSizedDelim(e.leftDelim,n,!0,t.havingStyle(a),e.mode,["mopen"]),s=e.continued?Z.makeSpan([]):null==e.rightDelim?bo(t,["mclose"]):bl.customSizedDelim(e.rightDelim,n,!0,t.havingStyle(a),e.mode,["mclose"]),Z.makeSpan(["mord"].concat(o.sizingClasses(t)),[r,Z.makeSpan(["mfrac"],[u]),s],t)},"htmlBuilder$4"),Ll=mt((e,t)=>{var i=new S.MathNode("mfrac",[Ao(e.numer,t),Ao(e.denom,t)]),n=(e.hasBarLine?e.barSize&&(n=na(e.barSize,t),i.setAttribute("linethickness",K(n))):i.setAttribute("linethickness","0px"),El(e.size,t.style));return n.size!==t.style.size&&(i=new S.MathNode("mstyle",[i]),t=n.size===Rs.DISPLAY.size?"true":"false",i.setAttribute("displaystyle",t),i.setAttribute("scriptlevel","0")),null!=e.leftDelim||null!=e.rightDelim?(n=[],null!=e.leftDelim&&((t=new S.MathNode("mo",[new S.TextNode(e.leftDelim.replace("\\",""))])).setAttribute("fence","true"),n.push(t)),n.push(i),null!=e.rightDelim&&((t=new S.MathNode("mo",[new S.TextNode(e.rightDelim.replace("\\",""))])).setAttribute("fence","true"),n.push(t)),To(n)):i},"mathmlBuilder$3"),l({type:"genfrac",names:["\\dfrac","\\frac","\\tfrac","\\dbinom","\\binom","\\tbinom","\\\\atopfrac","\\\\bracefrac","\\\\brackfrac"],props:{numArgs:2,allowedInArgument:!0},handler:mt((e,t)=>{var i,{parser:e,funcName:n}=e,r=t[0],t=t[1],s=null,a=null,o="auto";switch(n){case"\\dfrac":case"\\frac":case"\\tfrac":i=!0;break;case"\\\\atopfrac":i=!1;break;case"\\dbinom":case"\\binom":case"\\tbinom":i=!1,s="(",a=")";break;case"\\\\bracefrac":i=!1,s="\\{",a="\\}";break;case"\\\\brackfrac":i=!1,s="[",a="]";break;default:throw new Error("Unrecognized genfrac command")}switch(n){case"\\dfrac":case"\\dbinom":o="display";break;case"\\tfrac":case"\\tbinom":o="text"}return{type:"genfrac",mode:e.mode,continued:!1,numer:r,denom:t,hasBarLine:i,leftDelim:s,rightDelim:a,size:o,barSize:null}},"handler"),htmlBuilder:$l,mathmlBuilder:Ll}),l({type:"genfrac",names:["\\cfrac"],props:{numArgs:2},handler:mt((e,t)=>{var e=e["parser"],i=t[0],t=t[1];return{type:"genfrac",mode:e.mode,continued:!0,numer:i,denom:t,hasBarLine:!0,leftDelim:null,rightDelim:null,size:"display",barSize:null}},"handler")}),l({type:"infix",names:["\\over","\\choose","\\atop","\\brace","\\brack"],props:{numArgs:0,infix:!0},handler(e){var t,{parser:e,funcName:i,token:n}=e;switch(i){case"\\over":t="\\frac";break;case"\\choose":t="\\binom";break;case"\\atop":t="\\\\atopfrac";break;case"\\brace":t="\\\\bracefrac";break;case"\\brack":t="\\\\brackfrac";break;default:throw new Error("Unrecognized infix genfrac command")}return{type:"infix",mode:e.mode,replaceWith:t,token:n}}}),Rl=["display","text","script","scriptscript"],Ml=mt(function(e){var t=null;return t=0<e.length?"."===(t=e)?null:e:t},"delimFromValue"),l({type:"genfrac",names:["\\genfrac"],props:{numArgs:6,allowedInArgument:!0,argTypes:["math","math","size","text","math","math"]},handler(e,t){var i,e=e["parser"],n=t[4],r=t[5],s=so(t[0]),s="atom"===s.type&&"open"===s.family?Ml(s.text):null,a=so(t[1]),a="atom"===a.type&&"close"===a.family?Ml(a.text):null,o=Jr(t[2],"size"),l=null,o=!!o.isBlank||0<(l=o.value).number,c="auto",t=t[3];return"ordgroup"===t.type?0<t.body.length&&(i=Jr(t.body[0],"textord"),c=Rl[Number(i.text)]):(t=Jr(t,"textord"),c=Rl[Number(t.text)]),{type:"genfrac",mode:e.mode,numer:n,denom:r,continued:!1,hasBarLine:o,barSize:l,leftDelim:s,rightDelim:a,size:c}},htmlBuilder:$l,mathmlBuilder:Ll}),l({type:"infix",names:["\\above"],props:{numArgs:1,argTypes:["size"],infix:!0},handler(e,t){var{parser:e,token:i}=e;return{type:"infix",mode:e.mode,replaceWith:"\\\\abovefrac",size:Jr(t[0],"size").value,token:i}}}),l({type:"genfrac",names:["\\\\abovefrac"],props:{numArgs:3,argTypes:["math","size","math"]},handler:mt((e,t)=>{var e=e["parser"],i=t[0],n=xs(Jr(t[1],"infix").size),t=t[2],r=0<n.number;return{type:"genfrac",mode:e.mode,numer:i,denom:t,continued:!1,hasBarLine:r,barSize:n,leftDelim:null,rightDelim:null,size:"auto"}},"handler"),htmlBuilder:$l,mathmlBuilder:Ll}),Il=mt((e,t)=>{var i,n,r=t.style,r="supsub"===e.type?(i=e.sup?vo(e.sup,t.havingStyle(r.sup()),t):vo(e.sub,t.havingStyle(r.sub()),t),Jr(e.base,"horizBrace")):Jr(e,"horizBrace"),e=vo(r.base,t.havingBaseStyle(Rs.DISPLAY)),s=Do.svgSpan(r,t);return(r.isOver?(n=Z.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:e},{type:"kern",size:.1},{type:"elem",elem:s}]},t)).children[0].children[0].children[1]:(n=Z.makeVList({positionType:"bottom",positionData:e.depth+.1+s.height,children:[{type:"elem",elem:s},{type:"kern",size:.1},{type:"elem",elem:e}]},t)).children[0].children[0].children[0]).classes.push("svg-align"),i&&(s=Z.makeSpan(["mord",r.isOver?"mover":"munder"],[n],t),n=r.isOver?Z.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:s},{type:"kern",size:.2},{type:"elem",elem:i}]},t):Z.makeVList({positionType:"bottom",positionData:s.depth+.2+i.height+i.depth,children:[{type:"elem",elem:i},{type:"kern",size:.2},{type:"elem",elem:s}]},t)),Z.makeSpan(["mord",r.isOver?"mover":"munder"],[n],t)},"htmlBuilder$3"),m=mt((e,t)=>{var i=Do.mathMLnode(e.label);return new S.MathNode(e.isOver?"mover":"munder",[Ao(e.base,t),i])},"mathmlBuilder$2"),l({type:"horizBrace",names:["\\overbrace","\\underbrace"],props:{numArgs:1},handler(e,t){var{parser:e,funcName:i}=e;return{type:"horizBrace",mode:e.mode,label:i,isOver:/^\\over/.test(i),base:t[0]}},htmlBuilder:Il,mathmlBuilder:m}),l({type:"href",names:["\\href"],props:{numArgs:2,argTypes:["url","original"],allowedInText:!0},handler:mt((e,t)=>{var e=e["parser"],i=t[1],t=Jr(t[0],"url").url;return e.settings.isTrusted({command:"\\href",url:t})?{type:"href",mode:e.mode,href:t,body:ao(i)}:e.formatUnsupportedCmd("\\href")},"handler"),htmlBuilder:mt((e,t)=>{var i=po(e.body,t,!1);return Z.makeAnchor(e.href,[],i,t)},"htmlBuilder"),mathmlBuilder:mt((e,t)=>{t=Co(e.body,t);return(t=t instanceof xo?t:new xo("mrow",[t])).setAttribute("href",e.href),t},"mathmlBuilder")}),l({type:"href",names:["\\url"],props:{numArgs:1,argTypes:["url"],allowedInText:!0},handler:mt((e,t)=>{var e=e["parser"],i=Jr(t[0],"url").url;if(!e.settings.isTrusted({command:"\\url",url:i}))return e.formatUnsupportedCmd("\\url");for(var n=[],r=0;r<i.length;r++){var s=i[r];n.push({type:"textord",mode:"text",text:s="~"===s?"\\textasciitilde":s})}t={type:"text",mode:e.mode,font:"\\texttt",body:n};return{type:"href",mode:e.mode,href:i,body:ao(t)}},"handler")}),l({type:"hbox",names:["\\hbox"],props:{numArgs:1,argTypes:["text"],allowedInText:!0,primitive:!0},handler(e,t){e=e.parser;return{type:"hbox",mode:e.mode,body:ao(t[0])}},htmlBuilder(e,t){e=po(e.body,t,!1);return Z.makeFragment(e)},mathmlBuilder(e,t){return new S.MathNode("mrow",_o(e.body,t))}}),l({type:"html",names:["\\htmlClass","\\htmlId","\\htmlStyle","\\htmlData"],props:{numArgs:2,argTypes:["raw","original"],allowedInText:!0},handler:mt((e,t)=>{var{parser:e,funcName:i}=e,n=Jr(t[0],"raw").string,t=t[1];e.settings.strict&&e.settings.reportNonstrict("htmlExtension","HTML extension is disabled on strict mode");var r,s={};switch(i){case"\\htmlClass":r={command:"\\htmlClass",class:s.class=n};break;case"\\htmlId":r={command:"\\htmlId",id:s.id=n};break;case"\\htmlStyle":r={command:"\\htmlStyle",style:s.style=n};break;case"\\htmlData":for(var a=n.split(","),o=0;o<a.length;o++){var l=a[o].split("=");if(2!==l.length)throw new X("Error parsing key-value for \\htmlData");s["data-"+l[0].trim()]=l[1].trim()}r={command:"\\htmlData",attributes:s};break;default:throw new Error("Unrecognized html command")}return e.settings.isTrusted(r)?{type:"html",mode:e.mode,attributes:s,body:ao(t)}:e.formatUnsupportedCmd(i)},"handler"),htmlBuilder:mt((e,t)=>{var i,n=po(e.body,t,!1),r=["enclosing"],s=(e.attributes.class&&r.push(...e.attributes.class.trim().split(/\s+/)),Z.makeSpan(r,n,t));for(i in e.attributes)"class"!==i&&e.attributes.hasOwnProperty(i)&&s.setAttribute(i,e.attributes[i]);return s},"htmlBuilder"),mathmlBuilder:mt((e,t)=>Co(e.body,t),"mathmlBuilder")}),l({type:"htmlmathml",names:["\\html@mathml"],props:{numArgs:2,allowedInText:!0},handler:mt((e,t)=>{e=e.parser;return{type:"htmlmathml",mode:e.mode,html:ao(t[0]),mathml:ao(t[1])}},"handler"),htmlBuilder:mt((e,t)=>{e=po(e.html,t,!1);return Z.makeFragment(e)},"htmlBuilder"),mathmlBuilder:mt((e,t)=>Co(e.mathml,t),"mathmlBuilder")}),Nl=mt(function(e){if(/^[-+]? *(\d+(\.\d*)?|\.\d+)$/.test(e))return{number:+e,unit:"bp"};var t=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(e);if(!t)throw new X("Invalid size: '"+e+"' in \\includegraphics");e={number:+(t[1]+t[2]),unit:t[3]};if(ia(e))return e;throw new X("Invalid unit: '"+e.unit+"' in \\includegraphics.")},"sizeData"),l({type:"includegraphics",names:["\\includegraphics"],props:{numArgs:1,numOptionalArgs:1,argTypes:["raw","url"],allowedInText:!1},handler:mt((e,t,i)=>{var e=e["parser"],n={number:0,unit:"em"},r={number:.9,unit:"em"},s={number:0,unit:"em"},a="";if(i[0])for(var o=Jr(i[0],"raw").string.split(","),l=0;l<o.length;l++){var c=o[l].split("=");if(2===c.length){var h=c[1].trim();switch(c[0].trim()){case"alt":a=h;break;case"width":n=Nl(h);break;case"height":r=Nl(h);break;case"totalheight":s=Nl(h);break;default:throw new X("Invalid key: '"+c[0]+"' in \\includegraphics.")}}}i=Jr(t[0],"url").url;return""===a&&(a=(a=(a=i).replace(/^.*[\\/]/,"")).substring(0,a.lastIndexOf("."))),e.settings.isTrusted({command:"\\includegraphics",url:i})?{type:"includegraphics",mode:e.mode,alt:a,width:n,height:r,totalheight:s,src:i}:e.formatUnsupportedCmd("\\includegraphics")},"handler"),htmlBuilder:mt((e,t)=>{var i=na(e.height,t),n=0,r=(0<e.totalheight.number&&(n=na(e.totalheight,t)-i),0),t=(0<e.width.number&&(r=na(e.width,t)),{height:K(i+n)}),r=(0<r&&(t.width=K(r)),0<n&&(t.verticalAlign=K(-n)),new ua(e.src,e.alt,t));return r.height=i,r.depth=n,r},"htmlBuilder"),mathmlBuilder:mt((e,t)=>{var i=new S.MathNode("mglyph",[]),n=(i.setAttribute("alt",e.alt),na(e.height,t)),r=0;return 0<e.totalheight.number&&(r=na(e.totalheight,t)-n,i.setAttribute("valign",K(-r))),i.setAttribute("height",K(n+r)),0<e.width.number&&(n=na(e.width,t),i.setAttribute("width",K(n))),i.setAttribute("src",e.src),i},"mathmlBuilder")}),l({type:"kern",names:["\\kern","\\mkern","\\hskip","\\mskip"],props:{numArgs:1,argTypes:["size"],primitive:!0,allowedInText:!0},handler(e,t){var i,n,{parser:e,funcName:r}=e,t=Jr(t[0],"size");return e.settings.strict&&(i="m"===r[1],n="mu"===t.value.unit,i?(n||e.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+r+" supports only mu units, not "+t.value.unit+" units"),"math"!==e.mode&&e.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+r+" works only in math mode")):n&&e.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+r+" doesn't support mu units")),{type:"kern",mode:e.mode,dimension:t.value}},htmlBuilder(e,t){return Z.makeGlue(e.dimension,t)},mathmlBuilder(e,t){e=na(e.dimension,t);return new S.SpaceNode(e)}}),l({type:"lap",names:["\\mathllap","\\mathrlap","\\mathclap"],props:{numArgs:1,allowedInText:!0},handler:mt((e,t)=>{var{parser:e,funcName:i}=e,t=t[0];return{type:"lap",mode:e.mode,alignment:i.slice(5),body:t}},"handler"),htmlBuilder:mt((e,t)=>{var i="clap"===e.alignment?(i=Z.makeSpan([],[vo(e.body,t)]),Z.makeSpan(["inner"],[i],t)):Z.makeSpan(["inner"],[vo(e.body,t)]),n=Z.makeSpan(["fix"],[]),e=Z.makeSpan([e.alignment],[i,n],t),i=Z.makeSpan(["strut"]);return i.style.height=K(e.height+e.depth),e.depth&&(i.style.verticalAlign=K(-e.depth)),e.children.unshift(i),e=Z.makeSpan(["thinbox"],[e],t),Z.makeSpan(["mord","vbox"],[e],t)},"htmlBuilder"),mathmlBuilder:mt((e,t)=>{t=new S.MathNode("mpadded",[Ao(e.body,t)]);return"rlap"!==e.alignment&&(e="llap"===e.alignment?"-1":"-0.5",t.setAttribute("lspace",e+"width")),t.setAttribute("width","0px"),t},"mathmlBuilder")}),l({type:"styling",names:["\\(","$"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(e,t){var{funcName:e,parser:i}=e,n=i.mode,e=(i.switchMode("math"),"\\("===e?"\\)":"$"),r=i.parseExpression(!1,e);return i.expect(e),i.switchMode(n),{type:"styling",mode:i.mode,style:"text",body:r}}}),l({type:"text",names:["\\)","\\]"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(e,t){throw new X("Mismatched "+e.funcName)}}),Dl=mt((e,t)=>{switch(t.style.size){case Rs.DISPLAY.size:return e.display;case Rs.TEXT.size:return e.text;case Rs.SCRIPT.size:return e.script;case Rs.SCRIPTSCRIPT.size:return e.scriptscript;default:return e.text}},"chooseMathStyle"),l({type:"mathchoice",names:["\\mathchoice"],props:{numArgs:4,primitive:!0},handler:mt((e,t)=>{e=e.parser;return{type:"mathchoice",mode:e.mode,display:ao(t[0]),text:ao(t[1]),script:ao(t[2]),scriptscript:ao(t[3])}},"handler"),htmlBuilder:mt((e,t)=>{e=Dl(e,t),e=po(e,t,!1);return Z.makeFragment(e)},"htmlBuilder"),mathmlBuilder:mt((e,t)=>{e=Dl(e,t);return Co(e,t)},"mathmlBuilder")}),Ol=mt((e,t,i,n,r,s,a)=>{e=Z.makeSpan([],[e]);var o,l,c=i&&ws.isCharacterBox(i);if(t&&(o={elem:t=vo(t,n.havingStyle(r.sup()),n),kern:Math.max(n.fontMetrics().bigOpSpacing1,n.fontMetrics().bigOpSpacing3-t.depth)}),i&&(l={elem:t=vo(i,n.havingStyle(r.sub()),n),kern:Math.max(n.fontMetrics().bigOpSpacing2,n.fontMetrics().bigOpSpacing4-t.height)}),o&&l)var i=n.fontMetrics().bigOpSpacing5+l.elem.height+l.elem.depth+l.kern+e.depth+a,h=Z.makeVList({positionType:"bottom",positionData:i,children:[{type:"kern",size:n.fontMetrics().bigOpSpacing5},{type:"elem",elem:l.elem,marginLeft:K(-s)},{type:"kern",size:l.kern},{type:"elem",elem:e},{type:"kern",size:o.kern},{type:"elem",elem:o.elem,marginLeft:K(s)},{type:"kern",size:n.fontMetrics().bigOpSpacing5}]},n);else if(l){r=e.height-a;h=Z.makeVList({positionType:"top",positionData:r,children:[{type:"kern",size:n.fontMetrics().bigOpSpacing5},{type:"elem",elem:l.elem,marginLeft:K(-s)},{type:"kern",size:l.kern},{type:"elem",elem:e}]},n)}else{if(!o)return e;t=e.depth+a;h=Z.makeVList({positionType:"bottom",positionData:t,children:[{type:"elem",elem:e},{type:"kern",size:o.kern},{type:"elem",elem:o.elem,marginLeft:K(s)},{type:"kern",size:n.fontMetrics().bigOpSpacing5}]},n)}i=[h];return l&&0!==s&&!c&&((r=Z.makeSpan(["mspace"],[],n)).style.marginRight=K(s),i.unshift(r)),Z.makeSpan(["mop","op-limits"],i,n)},"assembleSupSub"),Pl=["\\smallint"],Bl=mt((e,t)=>{var i,n,r,s=!1,e=("supsub"===e.type?(i=e.sup,n=e.sub,r=Jr(e.base,"op"),s=!0):r=Jr(e,"op"),t.style),a=!1;if(e.size===Rs.DISPLAY.size&&r.symbol&&!ws.contains(Pl,r.name)&&(a=!0),r.symbol){var o,l=a?"Size2-Regular":"Size1-Regular",c="";"\\oiint"!==r.name&&"\\oiiint"!==r.name||(c=r.name.slice(1),r.name="oiint"===c?"\\iint":"\\iiint"),l=Z.makeSymbol(r.name,l,"math",t,["mop","op-symbol",a?"large-op":"small-op"]),0<c.length&&(o=l.italic,h=Z.staticSvg(c+"Size"+(a?"2":"1"),t),l=Z.makeVList({positionType:"individualShift",children:[{type:"elem",elem:l,shift:0},{type:"elem",elem:h,shift:a?.08:0}]},t),r.name="\\"+c,l.classes.unshift("mop"),l.italic=o)}else if(r.body){var h=po(r.body,t,!0);1===h.length&&h[0]instanceof pa?(l=h[0]).classes[0]="mop":l=Z.makeSpan(["mop"],h,t)}else{for(var u=[],d=1;d<r.name.length;d++)u.push(Z.mathsym(r.name[d],r.mode,t));l=Z.makeSpan(["mop"],u,t)}a=0,c=0;return(l instanceof pa||"\\oiint"===r.name||"\\oiiint"===r.name)&&!r.suppressBaseShift&&(a=(l.height-l.depth)/2-t.fontMetrics().axisHeight,c=l.italic),s?Ol(l,i,n,t,e,c,a):(a&&(l.style.position="relative",l.style.top=K(a)),l)},"htmlBuilder$2"),Fl=mt((e,t)=>{var i;return e.symbol?(i=new xo("mo",[ko(e.name,e.mode)]),ws.contains(Pl,e.name)&&i.setAttribute("largeop","false")):i=e.body?new xo("mo",_o(e.body,t)):(i=new xo("mi",[new wo(e.name.slice(1))]),t=new xo("mo",[ko("","text")]),e.parentIsSupSub?new xo("mrow",[i,t]):Kr([i,t])),i},"mathmlBuilder$1"),jl={"∏":"\\prod","∐":"\\coprod","∑":"\\sum","⋀":"\\bigwedge","⋁":"\\bigvee","⋂":"\\bigcap","⋃":"\\bigcup","⨀":"\\bigodot","⨁":"\\bigoplus","⨂":"\\bigotimes","⨄":"\\biguplus","⨆":"\\bigsqcup"},l({type:"op",names:["\\coprod","\\bigvee","\\bigwedge","\\biguplus","\\bigcap","\\bigcup","\\intop","\\prod","\\sum","\\bigotimes","\\bigoplus","\\bigodot","\\bigsqcup","\\smallint","∏","∐","∑","⋀","⋁","⋂","⋃","⨀","⨁","⨂","⨄","⨆"],props:{numArgs:0},handler:mt((e,t)=>{var{parser:e,funcName:i}=e;return 1===i.length&&(i=jl[i]),{type:"op",mode:e.mode,limits:!0,parentIsSupSub:!1,symbol:!0,name:i}},"handler"),htmlBuilder:Bl,mathmlBuilder:Fl}),l({type:"op",names:["\\mathop"],props:{numArgs:1,primitive:!0},handler:mt((e,t)=>{e=e.parser,t=t[0];return{type:"op",mode:e.mode,limits:!1,parentIsSupSub:!1,symbol:!1,body:ao(t)}},"handler"),htmlBuilder:Bl,mathmlBuilder:Fl}),zl={"∫":"\\int","∬":"\\iint","∭":"\\iiint","∮":"\\oint","∯":"\\oiint","∰":"\\oiiint"},l({type:"op",names:["\\arcsin","\\arccos","\\arctan","\\arctg","\\arcctg","\\arg","\\ch","\\cos","\\cosec","\\cosh","\\cot","\\cotg","\\coth","\\csc","\\ctg","\\cth","\\deg","\\dim","\\exp","\\hom","\\ker","\\lg","\\ln","\\log","\\sec","\\sin","\\sinh","\\sh","\\tan","\\tanh","\\tg","\\th"],props:{numArgs:0},handler(e){var{parser:e,funcName:t}=e;return{type:"op",mode:e.mode,limits:!1,parentIsSupSub:!1,symbol:!1,name:t}},htmlBuilder:Bl,mathmlBuilder:Fl}),l({type:"op",names:["\\det","\\gcd","\\inf","\\lim","\\max","\\min","\\Pr","\\sup"],props:{numArgs:0},handler(e){var{parser:e,funcName:t}=e;return{type:"op",mode:e.mode,limits:!0,parentIsSupSub:!1,symbol:!1,name:t}},htmlBuilder:Bl,mathmlBuilder:Fl}),l({type:"op",names:["\\int","\\iint","\\iiint","\\oint","\\oiint","\\oiiint","∫","∬","∭","∮","∯","∰"],props:{numArgs:0},handler(e){var{parser:e,funcName:t}=e;return 1===t.length&&(t=zl[t]),{type:"op",mode:e.mode,limits:!1,parentIsSupSub:!1,symbol:!0,name:t}},htmlBuilder:Bl,mathmlBuilder:Fl}),Hl=mt((e,t)=>{var i,n,r,s,a=!1;if("supsub"===e.type?(i=e.sup,n=e.sub,r=Jr(e.base,"operatorname"),a=!0):r=Jr(e,"operatorname"),0<r.body.length){for(var e=r.body.map(e=>{var t=e.text;return"string"==typeof t?{type:"textord",mode:e.mode,text:t}:e}),o=po(e,t.withFont("mathrm"),!0),l=0;l<o.length;l++){var c=o[l];c instanceof pa&&(c.text=c.text.replace(/\u2212/,"-").replace(/\u2217/,"*"))}s=Z.makeSpan(["mop"],o,t)}else s=Z.makeSpan(["mop"],[],t);return a?Ol(s,i,n,t,t.style,0,0):s},"htmlBuilder$1"),Ul=mt((e,t)=>{for(var i=_o(e.body,t.withFont("mathrm")),n=!0,r=0;r<i.length;r++){var s=i[r];if(!(s instanceof S.SpaceNode))if(s instanceof S.MathNode)switch(s.type){case"mi":case"mn":case"ms":case"mspace":case"mtext":break;case"mo":var a=s.children[0];1===s.children.length&&a instanceof S.TextNode?a.text=a.text.replace(/\u2212/,"-").replace(/\u2217/,"*"):n=!1;break;default:n=!1}else n=!1}n&&(t=i.map(e=>e.toText()).join(""),i=[new S.TextNode(t)]);var t=new S.MathNode("mi",i),o=(t.setAttribute("mathvariant","normal"),new S.MathNode("mo",[ko("","text")]));return e.parentIsSupSub?new S.MathNode("mrow",[t,o]):S.newDocumentFragment([t,o])},"mathmlBuilder"),l({type:"operatorname",names:["\\operatorname@","\\operatornamewithlimits"],props:{numArgs:1},handler:mt((e,t)=>{var{parser:e,funcName:i}=e,t=t[0];return{type:"operatorname",mode:e.mode,body:ao(t),alwaysHandleSupSub:"\\operatornamewithlimits"===i,limits:!1,parentIsSupSub:!1}},"handler"),htmlBuilder:Hl,mathmlBuilder:Ul}),h("\\operatorname","\\@ifstar\\operatornamewithlimits\\operatorname@"),Gr({type:"ordgroup",htmlBuilder(e,t){return e.semisimple?Z.makeFragment(po(e.body,t,!1)):Z.makeSpan(["mord"],po(e.body,t,!0),t)},mathmlBuilder(e,t){return Co(e.body,t,!0)}}),l({type:"overline",names:["\\overline"],props:{numArgs:1},handler(e,t){e=e.parser,t=t[0];return{type:"overline",mode:e.mode,body:t}},htmlBuilder(e,t){var e=vo(e.body,t.havingCrampedStyle()),i=Z.makeLineSpan("overline-line",t),n=t.fontMetrics().defaultRuleThickness,e=Z.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:e},{type:"kern",size:3*n},{type:"elem",elem:i},{type:"kern",size:n}]},t);return Z.makeSpan(["mord","overline"],[e],t)},mathmlBuilder(e,t){var i=new S.MathNode("mo",[new S.TextNode("‾")]),e=(i.setAttribute("stretchy","true"),new S.MathNode("mover",[Ao(e.body,t),i]));return e.setAttribute("accent","true"),e}}),l({type:"phantom",names:["\\phantom"],props:{numArgs:1,allowedInText:!0},handler:mt((e,t)=>{e=e.parser,t=t[0];return{type:"phantom",mode:e.mode,body:ao(t)}},"handler"),htmlBuilder:mt((e,t)=>{e=po(e.body,t.withPhantom(),!1);return Z.makeFragment(e)},"htmlBuilder"),mathmlBuilder:mt((e,t)=>{e=_o(e.body,t);return new S.MathNode("mphantom",e)},"mathmlBuilder")}),l({type:"hphantom",names:["\\hphantom"],props:{numArgs:1,allowedInText:!0},handler:mt((e,t)=>{e=e.parser,t=t[0];return{type:"hphantom",mode:e.mode,body:t}},"handler"),htmlBuilder:mt((e,t)=>{var i=Z.makeSpan([],[vo(e.body,t.withPhantom())]);if(i.height=0,i.depth=0,i.children)for(var n=0;n<i.children.length;n++)i.children[n].height=0,i.children[n].depth=0;return i=Z.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:i}]},t),Z.makeSpan(["mord"],[i],t)},"htmlBuilder"),mathmlBuilder:mt((e,t)=>{e=_o(ao(e.body),t),t=new S.MathNode("mphantom",e),e=new S.MathNode("mpadded",[t]);return e.setAttribute("height","0px"),e.setAttribute("depth","0px"),e},"mathmlBuilder")}),l({type:"vphantom",names:["\\vphantom"],props:{numArgs:1,allowedInText:!0},handler:mt((e,t)=>{e=e.parser,t=t[0];return{type:"vphantom",mode:e.mode,body:t}},"handler"),htmlBuilder:mt((e,t)=>{var e=Z.makeSpan(["inner"],[vo(e.body,t.withPhantom())]),i=Z.makeSpan(["fix"],[]);return Z.makeSpan(["mord","rlap"],[e,i],t)},"htmlBuilder"),mathmlBuilder:mt((e,t)=>{e=_o(ao(e.body),t),t=new S.MathNode("mphantom",e),e=new S.MathNode("mpadded",[t]);return e.setAttribute("width","0px"),e},"mathmlBuilder")}),l({type:"raisebox",names:["\\raisebox"],props:{numArgs:2,argTypes:["size","hbox"],allowedInText:!0},handler(e,t){var e=e["parser"],i=Jr(t[0],"size").value,t=t[1];return{type:"raisebox",mode:e.mode,dy:i,body:t}},htmlBuilder(e,t){var i=vo(e.body,t),e=na(e.dy,t);return Z.makeVList({positionType:"shift",positionData:-e,children:[{type:"elem",elem:i}]},t)},mathmlBuilder(e,t){t=new S.MathNode("mpadded",[Ao(e.body,t)]),e=e.dy.number+e.dy.unit;return t.setAttribute("voffset",e),t}}),l({type:"internal",names:["\\relax"],props:{numArgs:0,allowedInText:!0,allowedInArgument:!0},handler(e){e=e.parser;return{type:"internal",mode:e.mode}}}),l({type:"rule",names:["\\rule"],props:{numArgs:2,numOptionalArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:["size","size","size"]},handler(e,t,i){var e=e["parser"],i=i[0],n=Jr(t[0],"size"),t=Jr(t[1],"size");return{type:"rule",mode:e.mode,shift:i&&Jr(i,"size").value,width:n.value,height:t.value}},htmlBuilder(e,t){var i=Z.makeSpan(["mord","rule"],[],t),n=na(e.width,t),r=na(e.height,t),e=e.shift?na(e.shift,t):0;return i.style.borderRightWidth=K(n),i.style.borderTopWidth=K(r),i.style.bottom=K(e),i.width=n,i.height=r+e,i.depth=-e,i.maxFontSize=1.125*r*t.sizeMultiplier,i},mathmlBuilder(e,t){var i=na(e.width,t),n=na(e.height,t),e=e.shift?na(e.shift,t):0,t=t.color&&t.getColor()||"black",r=new S.MathNode("mspace"),t=(r.setAttribute("mathbackground",t),r.setAttribute("width",K(i)),r.setAttribute("height",K(n)),new S.MathNode("mpadded",[r]));return 0<=e?t.setAttribute("height",K(e)):(t.setAttribute("height",K(e)),t.setAttribute("depth",K(-e))),t.setAttribute("voffset",K(e)),t}}),mt(ps,"sizingGroup"),ql=["\\tiny","\\sixptsize","\\scriptsize","\\footnotesize","\\small","\\normalsize","\\large","\\Large","\\LARGE","\\huge","\\Huge"],Wl=mt((e,t)=>{var i=t.havingSize(e.size);return ps(e.body,i,t)},"htmlBuilder"),l({type:"sizing",names:ql,props:{numArgs:0,allowedInText:!0},handler:mt((e,t)=>{var{breakOnTokenText:e,funcName:i,parser:n}=e,e=n.parseExpression(!1,e);return{type:"sizing",mode:n.mode,size:ql.indexOf(i)+1,body:e}},"handler"),htmlBuilder:Wl,mathmlBuilder:mt((e,t)=>{t=t.havingSize(e.size),e=_o(e.body,t),e=new S.MathNode("mstyle",e);return e.setAttribute("mathsize",K(t.sizeMultiplier)),e},"mathmlBuilder")}),l({type:"smash",names:["\\smash"],props:{numArgs:1,numOptionalArgs:1,allowedInText:!0},handler:mt((e,t,i)=>{var e=e["parser"],n=!1,r=!1,s=i[0]&&Jr(i[0],"ordgroup");if(s)for(var a,o=0;o<s.body.length;++o)if("t"===(a=s.body[o].text))n=!0;else{if("b"!==a){r=n=!1;break}r=!0}else r=n=!0;i=t[0];return{type:"smash",mode:e.mode,body:i,smashHeight:n,smashDepth:r}},"handler"),htmlBuilder:mt((e,t)=>{var i=Z.makeSpan([],[vo(e.body,t)]);if(!e.smashHeight&&!e.smashDepth)return i;if(e.smashHeight&&(i.height=0,i.children))for(var n=0;n<i.children.length;n++)i.children[n].height=0;if(e.smashDepth&&(i.depth=0,i.children))for(var r=0;r<i.children.length;r++)i.children[r].depth=0;e=Z.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:i}]},t);return Z.makeSpan(["mord"],[e],t)},"htmlBuilder"),mathmlBuilder:mt((e,t)=>{t=new S.MathNode("mpadded",[Ao(e.body,t)]);return e.smashHeight&&t.setAttribute("height","0px"),e.smashDepth&&t.setAttribute("depth","0px"),t},"mathmlBuilder")}),l({type:"sqrt",names:["\\sqrt"],props:{numArgs:1,numOptionalArgs:1},handler(e,t,i){e=e.parser,i=i[0],t=t[0];return{type:"sqrt",mode:e.mode,body:t,index:i}},htmlBuilder(e,t){0===(i=vo(e.body,t.havingCrampedStyle())).height&&(i.height=t.fontMetrics().xHeight);var i=Z.wrapFragment(i,t),n=t.fontMetrics().defaultRuleThickness,r=n,r=n+(r=t.style.id<Rs.TEXT.id?t.fontMetrics().xHeight:r)/4,n=i.height+i.depth+r+n,{span:n,ruleWidth:s,advanceWidth:a}=bl.sqrtImage(n,t),o=n.height-s,o=(o>i.height+i.depth+r&&(r=(r+o-i.height-i.depth)/2),n.height-i.height-r-s),r=(i.style.paddingLeft=K(a),Z.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:i,wrapperClasses:["svg-align"]},{type:"kern",size:-(i.height+o)},{type:"elem",elem:n},{type:"kern",size:s}]},t));return e.index?(a=t.havingStyle(Rs.SCRIPTSCRIPT),i=vo(e.index,a,t),o=.6*(r.height-r.depth),n=Z.makeVList({positionType:"shift",positionData:-o,children:[{type:"elem",elem:i}]},t),s=Z.makeSpan(["root"],[n]),Z.makeSpan(["mord","sqrt"],[s,r],t)):Z.makeSpan(["mord","sqrt"],[r],t)},mathmlBuilder(e,t){var{body:e,index:i}=e;return i?new S.MathNode("mroot",[Ao(e,t),Ao(i,t)]):new S.MathNode("msqrt",[Ao(e,t)])}}),Vl={display:Rs.DISPLAY,text:Rs.TEXT,script:Rs.SCRIPT,scriptscript:Rs.SCRIPTSCRIPT},l({type:"styling",names:["\\displaystyle","\\textstyle","\\scriptstyle","\\scriptscriptstyle"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e,t){var{breakOnTokenText:e,funcName:i,parser:n}=e,e=n.parseExpression(!0,e),i=i.slice(1,i.length-5);return{type:"styling",mode:n.mode,style:i,body:e}},htmlBuilder(e,t){var i=Vl[e.style],i=t.havingStyle(i).withFont("");return ps(e.body,i,t)},mathmlBuilder(e,t){var i=Vl[e.style],t=t.havingStyle(i),i=_o(e.body,t),t=new S.MathNode("mstyle",i),i={display:["0","true"],text:["0","false"],script:["1","false"],scriptscript:["2","false"]}[e.style];return t.setAttribute("scriptlevel",i[0]),t.setAttribute("displaystyle",i[1]),t}}),Gl=mt(function(e,t){var i=e.base;return i?"op"===i.type?i.limits&&(t.style.size===Rs.DISPLAY.size||i.alwaysHandleSupSub)?Bl:null:"operatorname"===i.type?i.alwaysHandleSupSub&&(t.style.size===Rs.DISPLAY.size||i.limits)?Hl:null:"accent"===i.type?ws.isCharacterBox(i.base)?Oo:null:"horizBrace"===i.type&&!e.sub===i.isOver?Il:null:null},"htmlBuilderDelegate"),Gr({type:"supsub",htmlBuilder(e,t){var i=Gl(e,t);if(i)return i(e,t);var n,r,s,{base:i,sup:a,sub:o}=e,l=vo(i,t),c=t.fontMetrics(),h=0,u=0,i=i&&ws.isCharacterBox(i),o=(a&&(s=t.havingStyle(t.style.sup()),n=vo(a,s,t),i||(h=l.height-s.fontMetrics().supDrop*s.sizeMultiplier/t.sizeMultiplier)),o&&(a=t.havingStyle(t.style.sub()),r=vo(o,a,t),i||(u=l.depth+a.fontMetrics().subDrop*a.sizeMultiplier/t.sizeMultiplier)),s=t.style===Rs.DISPLAY?c.sup1:t.style.cramped?c.sup3:c.sup2,t.sizeMultiplier),i=K(.5/c.ptPerEm/o),a=null;if(r&&(o=e.base&&"op"===e.base.type&&e.base.name&&("\\oiint"===e.base.name||"\\oiiint"===e.base.name),l instanceof pa||o)&&(a=K(-l.italic)),n&&r){h=Math.max(h,s,n.depth+.25*c.xHeight),u=Math.max(u,c.sub2);e=4*c.defaultRuleThickness;h-n.depth-(r.height-u)<e&&(u=e-(h-n.depth)+r.height,0<(o=.8*c.xHeight-(h-n.depth)))&&(h+=o,u-=o);var d=Z.makeVList({positionType:"individualShift",children:[{type:"elem",elem:r,shift:u,marginRight:i,marginLeft:a},{type:"elem",elem:n,shift:-h,marginRight:i}]},t)}else if(r)u=Math.max(u,c.sub1,r.height-.8*c.xHeight),d=Z.makeVList({positionType:"shift",positionData:u,children:[{type:"elem",elem:r,marginLeft:a,marginRight:i}]},t);else{if(!n)throw new Error("supsub must have either sup or sub.");h=Math.max(h,s,n.depth+.25*c.xHeight),d=Z.makeVList({positionType:"shift",positionData:-h,children:[{type:"elem",elem:n,marginRight:i}]},t)}e=yo(l,"right")||"mord";return Z.makeSpan([e],[l,Z.makeSpan(["msupsub"],[d])],t)},mathmlBuilder(e,t){var i,n=!1,r=(e.base&&"horizBrace"===e.base.type&&!!e.sup===e.base.isOver&&(n=!0,i=e.base.isOver),!e.base||"op"!==e.base.type&&"operatorname"!==e.base.type||(e.base.parentIsSupSub=!0),[Ao(e.base,t)]);return e.sub&&r.push(Ao(e.sub,t)),e.sup&&r.push(Ao(e.sup,t)),i=n?i?"mover":"munder":e.sub?e.sup?(n=e.base)&&"op"===n.type&&n.limits&&t.style===Rs.DISPLAY||n&&"operatorname"===n.type&&n.alwaysHandleSupSub&&(t.style===Rs.DISPLAY||n.limits)?"munderover":"msubsup":(i=e.base)&&"op"===i.type&&i.limits&&(t.style===Rs.DISPLAY||i.alwaysHandleSupSub)||i&&"operatorname"===i.type&&i.alwaysHandleSupSub&&(i.limits||t.style===Rs.DISPLAY)?"munder":"msub":(n=e.base)&&"op"===n.type&&n.limits&&(t.style===Rs.DISPLAY||n.alwaysHandleSupSub)||n&&"operatorname"===n.type&&n.alwaysHandleSupSub&&(n.limits||t.style===Rs.DISPLAY)?"mover":"msup",new S.MathNode(i,r)}}),Gr({type:"atom",htmlBuilder(e,t){return Z.mathsym(e.text,e.mode,t,["m"+e.family])},mathmlBuilder(e,t){var i=new S.MathNode("mo",[ko(e.text,e.mode)]);return"bin"===e.family?"bold-italic"===(t=So(e,t))&&i.setAttribute("mathvariant",t):"punct"===e.family?i.setAttribute("separator","true"):"open"!==e.family&&"close"!==e.family||i.setAttribute("stretchy","false"),i}}),Yl={mi:"italic",mn:"normal",mtext:"normal"},Gr({type:"mathord",htmlBuilder(e,t){return Z.makeOrd(e,t,"mathord")},mathmlBuilder(e,t){var i=new S.MathNode("mi",[ko(e.text,e.mode,t)]),e=So(e,t)||"italic";return e!==Yl[i.type]&&i.setAttribute("mathvariant",e),i}}),Gr({type:"textord",htmlBuilder(e,t){return Z.makeOrd(e,t,"textord")},mathmlBuilder(e,t){var i=ko(e.text,e.mode,t),t=So(e,t)||"normal",e="text"===e.mode?new S.MathNode("mtext",[i]):/[0-9]/.test(e.text)?new S.MathNode("mn",[i]):"\\prime"===e.text?new S.MathNode("mo",[i]):new S.MathNode("mi",[i]);return t!==Yl[e.type]&&e.setAttribute("mathvariant",t),e}}),Xl={"\\nobreak":"nobreak","\\allowbreak":"allowbreak"},Kl={" ":{},"\\ ":{},"~":{className:"nobreak"},"\\space":{},"\\nobreakspace":{className:"nobreak"}},Gr({type:"spacing",htmlBuilder(e,t){var i,n;if(Kl.hasOwnProperty(e.text))return i=Kl[e.text].className||"","text"===e.mode?((n=Z.makeOrd(e,t,"textord")).classes.push(i),n):Z.makeSpan(["mspace",i],[Z.mathsym(e.text,e.mode,t)],t);if(Xl.hasOwnProperty(e.text))return Z.makeSpan(["mspace",Xl[e.text]],[],t);throw new X('Unknown type of space "'+e.text+'"')},mathmlBuilder(e,t){if(Kl.hasOwnProperty(e.text))return new S.MathNode("mtext",[new S.TextNode(" ")]);if(Xl.hasOwnProperty(e.text))return new S.MathNode("mspace");throw new X('Unknown type of space "'+e.text+'"')}}),Zl=mt(()=>{var e=new S.MathNode("mtd",[]);return e.setAttribute("width","50%"),e},"pad"),Gr({type:"tag",mathmlBuilder(e,t){e=new S.MathNode("mtable",[new S.MathNode("mtr",[Zl(),new S.MathNode("mtd",[Co(e.body,t)]),Zl(),new S.MathNode("mtd",[Co(e.tag,t)])])]);return e.setAttribute("width","100%"),e}}),Ql={"\\text":void 0,"\\textrm":"textrm","\\textsf":"textsf","\\texttt":"texttt","\\textnormal":"textrm"},Jl={"\\textbf":"textbf","\\textmd":"textmd"},ec={"\\textit":"textit","\\textup":"textup"},tc=mt((e,t)=>{e=e.font;return e?Ql[e]?t.withTextFontFamily(Ql[e]):Jl[e]?t.withTextFontWeight(Jl[e]):"\\emph"===e?"textit"===t.fontShape?t.withTextFontShape("textup"):t.withTextFontShape("textit"):t.withTextFontShape(ec[e]):t},"optionsWithFont"),l({type:"text",names:["\\text","\\textrm","\\textsf","\\texttt","\\textnormal","\\textbf","\\textmd","\\textit","\\textup","\\emph"],props:{numArgs:1,argTypes:["text"],allowedInArgument:!0,allowedInText:!0},handler(e,t){var{parser:e,funcName:i}=e,t=t[0];return{type:"text",mode:e.mode,body:ao(t),font:i}},htmlBuilder(e,t){t=tc(e,t),e=po(e.body,t,!0);return Z.makeSpan(["mord","text"],e,t)},mathmlBuilder(e,t){t=tc(e,t);return Co(e.body,t)}}),l({type:"underline",names:["\\underline"],props:{numArgs:1,allowedInText:!0},handler(e,t){e=e.parser;return{type:"underline",mode:e.mode,body:t[0]}},htmlBuilder(e,t){var e=vo(e.body,t),i=Z.makeLineSpan("underline-line",t),n=t.fontMetrics().defaultRuleThickness,i=Z.makeVList({positionType:"top",positionData:e.height,children:[{type:"kern",size:n},{type:"elem",elem:i},{type:"kern",size:3*n},{type:"elem",elem:e}]},t);return Z.makeSpan(["mord","underline"],[i],t)},mathmlBuilder(e,t){var i=new S.MathNode("mo",[new S.TextNode("‾")]),e=(i.setAttribute("stretchy","true"),new S.MathNode("munder",[Ao(e.body,t),i]));return e.setAttribute("accentunder","true"),e}}),l({type:"vcenter",names:["\\vcenter"],props:{numArgs:1,argTypes:["original"],allowedInText:!1},handler(e,t){e=e.parser;return{type:"vcenter",mode:e.mode,body:t[0]}},htmlBuilder(e,t){var e=vo(e.body,t),i=t.fontMetrics().axisHeight,i=.5*(e.height-i-(e.depth+i));return Z.makeVList({positionType:"shift",positionData:i,children:[{type:"elem",elem:e}]},t)},mathmlBuilder(e,t){return new S.MathNode("mpadded",[Ao(e.body,t)],["vcenter"])}}),l({type:"verb",names:["\\verb"],props:{numArgs:0,allowedInText:!0},handler(e,t,i){throw new X("\\verb ended by end of line instead of matching delimiter")},htmlBuilder(e,t){for(var i=ic(e),n=[],r=t.havingStyle(t.style.text()),s=0;s<i.length;s++){var a=i[s];"~"===a&&(a="\\textasciitilde"),n.push(Z.makeSymbol(a,"Typewriter-Regular",e.mode,r,["mord","texttt"]))}return Z.makeSpan(["mord","text"].concat(r.sizingClasses(t)),Z.tryCombineChars(n),r)},mathmlBuilder(e,t){e=new S.TextNode(ic(e)),e=new S.MathNode("mtext",[e]);return e.setAttribute("mathvariant","monospace"),e}}),ic=mt(e=>e.body.replace(/ /g,e.star?"␣":" "),"makeVerb"),nc=io,rc=new RegExp("[̀-ͯ]+$"),sc=class{static{mt(this,"Lexer")}constructor(e,t){this.input=void 0,this.settings=void 0,this.tokenRegex=void 0,this.catcodes=void 0,this.input=e,this.settings=t,this.tokenRegex=new RegExp("([ \r\n\t]+)|\\\\(\n|[ \r\t]+\n?)[ \r\t]*|([!-\\[\\]-‧-豈-][̀-ͯ]*|[\ud800-\udbff][\udc00-\udfff][̀-ͯ]*|\\\\verb\\*([^]).*?\\4|\\\\verb([^*a-zA-Z]).*?\\5|(\\\\[a-zA-Z@]+)[ \r\n\t]*|\\\\[^\ud800-\udfff])","g"),this.catcodes={"%":14,"~":13}}setCatcode(e,t){this.catcodes[e]=t}lex(){var e=this.input,t=this.tokenRegex.lastIndex;if(t===e.length)return new fs("EOF",new gs(this,t,t));var i=this.tokenRegex.exec(e);if(null===i||i.index!==t)throw new X("Unexpected character: '"+e[t]+"'",new fs(e[t],new gs(this,t,t+1)));var n,i=i[6]||i[3]||(i[2]?"\\ ":" ");return 14===this.catcodes[i]?(-1===(n=e.indexOf(`
|
||
`,this.tokenRegex.lastIndex))?(this.tokenRegex.lastIndex=e.length,this.settings.reportNonstrict("commentAtEnd","% comment has no terminating newline; LaTeX would fail because of commenting the end of math mode (e.g. $)")):this.tokenRegex.lastIndex=n+1,this.lex()):new fs(i,new gs(this,t,this.tokenRegex.lastIndex))}},ac=class{static{mt(this,"Namespace")}constructor(e,t){void 0===e&&(e={}),void 0===t&&(t={}),this.current=void 0,this.builtins=void 0,this.undefStack=void 0,this.current=t,this.builtins=e,this.undefStack=[]}beginGroup(){this.undefStack.push({})}endGroup(){if(0===this.undefStack.length)throw new X("Unbalanced namespace destruction: attempt to pop global namespace; please report this as a bug");var e,t=this.undefStack.pop();for(e in t)t.hasOwnProperty(e)&&(null==t[e]?delete this.current[e]:this.current[e]=t[e])}endGroups(){for(;0<this.undefStack.length;)this.endGroup()}has(e){return this.current.hasOwnProperty(e)||this.builtins.hasOwnProperty(e)}get(e){return(this.current.hasOwnProperty(e)?this.current:this.builtins)[e]}set(e,t,i){if(i=void 0===i?!1:i){for(var n=0;n<this.undefStack.length;n++)delete this.undefStack[n][e];0<this.undefStack.length&&(this.undefStack[this.undefStack.length-1][e]=t)}else{i=this.undefStack[this.undefStack.length-1];i&&!i.hasOwnProperty(e)&&(i[e]=this.current[e])}null==t?delete this.current[e]:this.current[e]=t}},oc=kl,h("\\noexpand",function(e){var t=e.popToken();return e.isExpandable(t.text)&&(t.noexpand=!0,t.treatAsRelax=!0),{tokens:[t],numArgs:0}}),h("\\expandafter",function(e){var t=e.popToken();return e.expandOnce(!0),{tokens:[t],numArgs:0}}),h("\\@firstoftwo",function(e){return{tokens:e.consumeArgs(2)[0],numArgs:0}}),h("\\@secondoftwo",function(e){return{tokens:e.consumeArgs(2)[1],numArgs:0}}),h("\\@ifnextchar",function(e){var t=e.consumeArgs(3),e=(e.consumeSpaces(),e.future());return 1===t[0].length&&t[0][0].text===e.text?{tokens:t[1],numArgs:0}:{tokens:t[2],numArgs:0}}),h("\\@ifstar","\\@ifnextchar *{\\@firstoftwo{#1}}"),h("\\TextOrMath",function(e){var t=e.consumeArgs(2);return"text"===e.mode?{tokens:t[0],numArgs:0}:{tokens:t[1],numArgs:0}}),lc={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,a:10,A:10,b:11,B:11,c:12,C:12,d:13,D:13,e:14,E:14,f:15,F:15},h("\\char",function(e){var t,i,n=e.popToken(),r="";if("'"===n.text)t=8,n=e.popToken();else if('"'===n.text)t=16,n=e.popToken();else if("`"===n.text)if("\\"===(n=e.popToken()).text[0])r=n.text.charCodeAt(1);else{if("EOF"===n.text)throw new X("\\char` missing argument");r=n.text.charCodeAt(0)}else t=10;if(t){if(null==(r=lc[n.text])||t<=r)throw new X("Invalid base-"+t+" digit "+n.text);for(;null!=(i=lc[e.future().text])&&i<t;)r=r*t+i,e.popToken()}return"\\@char{"+r+"}"}),cc=mt((e,t,i,n)=>{var r=e.consumeArg().tokens;if(1!==r.length)throw new X("\\newcommand's first argument must be a macro name");var s=r[0].text,a=e.isDefined(s);if(a&&!t)throw new X("\\newcommand{"+s+"} attempting to redefine "+s+"; use \\renewcommand");if(!a&&!i)throw new X("\\renewcommand{"+s+"} when command "+s+" does not yet exist; use \\newcommand");t=0;if(1===(r=e.consumeArg().tokens).length&&"["===r[0].text){for(var o="",l=e.expandNextToken();"]"!==l.text&&"EOF"!==l.text;)o+=l.text,l=e.expandNextToken();if(!o.match(/^\s*[0-9]+\s*$/))throw new X("Invalid number of arguments: "+o);t=parseInt(o),r=e.consumeArg().tokens}return a&&n||e.macros.set(s,{tokens:r,numArgs:t}),""},"newcommand"),h("\\newcommand",e=>cc(e,!1,!0,!1)),h("\\renewcommand",e=>cc(e,!0,!1,!1)),h("\\providecommand",e=>cc(e,!0,!0,!0)),h("\\message",e=>{e=e.consumeArgs(1)[0];return console.log(e.reverse().map(e=>e.text).join("")),""}),h("\\errmessage",e=>{e=e.consumeArgs(1)[0];return console.error(e.reverse().map(e=>e.text).join("")),""}),h("\\show",e=>{var t=e.popToken(),i=t.text;return console.log(t,e.macros.get(i),nc[i],va.math[i],va.text[i]),""}),h("\\bgroup","{"),h("\\egroup","}"),h("~","\\nobreakspace"),h("\\lq","`"),h("\\rq","'"),h("\\aa","\\r a"),h("\\AA","\\r A"),h("\\textcopyright","\\html@mathml{\\textcircled{c}}{\\char`©}"),h("\\copyright","\\TextOrMath{\\textcopyright}{\\text{\\textcopyright}}"),h("\\textregistered","\\html@mathml{\\textcircled{\\scriptsize R}}{\\char`®}"),h("ℬ","\\mathscr{B}"),h("ℰ","\\mathscr{E}"),h("ℱ","\\mathscr{F}"),h("ℋ","\\mathscr{H}"),h("ℐ","\\mathscr{I}"),h("ℒ","\\mathscr{L}"),h("ℳ","\\mathscr{M}"),h("ℛ","\\mathscr{R}"),h("ℭ","\\mathfrak{C}"),h("ℌ","\\mathfrak{H}"),h("ℨ","\\mathfrak{Z}"),h("\\Bbbk","\\Bbb{k}"),h("·","\\cdotp"),h("\\llap","\\mathllap{\\textrm{#1}}"),h("\\rlap","\\mathrlap{\\textrm{#1}}"),h("\\clap","\\mathclap{\\textrm{#1}}"),h("\\mathstrut","\\vphantom{(}"),h("\\underbar","\\underline{\\text{#1}}"),h("\\not",'\\html@mathml{\\mathrel{\\mathrlap\\@not}}{\\char"338}'),h("\\neq","\\html@mathml{\\mathrel{\\not=}}{\\mathrel{\\char`≠}}"),h("\\ne","\\neq"),h("≠","\\neq"),h("\\notin","\\html@mathml{\\mathrel{{\\in}\\mathllap{/\\mskip1mu}}}{\\mathrel{\\char`∉}}"),h("∉","\\notin"),h("≘","\\html@mathml{\\mathrel{=\\kern{-1em}\\raisebox{0.4em}{$\\scriptsize\\frown$}}}{\\mathrel{\\char`≘}}"),h("≙","\\html@mathml{\\stackrel{\\tiny\\wedge}{=}}{\\mathrel{\\char`≘}}"),h("≚","\\html@mathml{\\stackrel{\\tiny\\vee}{=}}{\\mathrel{\\char`≚}}"),h("≛","\\html@mathml{\\stackrel{\\scriptsize\\star}{=}}{\\mathrel{\\char`≛}}"),h("≝","\\html@mathml{\\stackrel{\\tiny\\mathrm{def}}{=}}{\\mathrel{\\char`≝}}"),h("≞","\\html@mathml{\\stackrel{\\tiny\\mathrm{m}}{=}}{\\mathrel{\\char`≞}}"),h("≟","\\html@mathml{\\stackrel{\\tiny?}{=}}{\\mathrel{\\char`≟}}"),h("⟂","\\perp"),h("‼","\\mathclose{!\\mkern-0.8mu!}"),h("∌","\\notni"),h("⌜","\\ulcorner"),h("⌝","\\urcorner"),h("⌞","\\llcorner"),h("⌟","\\lrcorner"),h("©","\\copyright"),h("®","\\textregistered"),h("️","\\textregistered"),h("\\ulcorner",'\\html@mathml{\\@ulcorner}{\\mathop{\\char"231c}}'),h("\\urcorner",'\\html@mathml{\\@urcorner}{\\mathop{\\char"231d}}'),h("\\llcorner",'\\html@mathml{\\@llcorner}{\\mathop{\\char"231e}}'),h("\\lrcorner",'\\html@mathml{\\@lrcorner}{\\mathop{\\char"231f}}'),h("\\vdots","{\\varvdots\\rule{0pt}{15pt}}"),h("⋮","\\vdots"),h("\\varGamma","\\mathit{\\Gamma}"),h("\\varDelta","\\mathit{\\Delta}"),h("\\varTheta","\\mathit{\\Theta}"),h("\\varLambda","\\mathit{\\Lambda}"),h("\\varXi","\\mathit{\\Xi}"),h("\\varPi","\\mathit{\\Pi}"),h("\\varSigma","\\mathit{\\Sigma}"),h("\\varUpsilon","\\mathit{\\Upsilon}"),h("\\varPhi","\\mathit{\\Phi}"),h("\\varPsi","\\mathit{\\Psi}"),h("\\varOmega","\\mathit{\\Omega}"),h("\\substack","\\begin{subarray}{c}#1\\end{subarray}"),h("\\colon","\\nobreak\\mskip2mu\\mathpunct{}\\mathchoice{\\mkern-3mu}{\\mkern-3mu}{}{}{:}\\mskip6mu\\relax"),h("\\boxed","\\fbox{$\\displaystyle{#1}$}"),h("\\iff","\\DOTSB\\;\\Longleftrightarrow\\;"),h("\\implies","\\DOTSB\\;\\Longrightarrow\\;"),h("\\impliedby","\\DOTSB\\;\\Longleftarrow\\;"),h("\\dddot","{\\overset{\\raisebox{-0.1ex}{\\normalsize ...}}{#1}}"),h("\\ddddot","{\\overset{\\raisebox{-0.1ex}{\\normalsize ....}}{#1}}"),hc={",":"\\dotsc","\\not":"\\dotsb","+":"\\dotsb","=":"\\dotsb","<":"\\dotsb",">":"\\dotsb","-":"\\dotsb","*":"\\dotsb",":":"\\dotsb","\\DOTSB":"\\dotsb","\\coprod":"\\dotsb","\\bigvee":"\\dotsb","\\bigwedge":"\\dotsb","\\biguplus":"\\dotsb","\\bigcap":"\\dotsb","\\bigcup":"\\dotsb","\\prod":"\\dotsb","\\sum":"\\dotsb","\\bigotimes":"\\dotsb","\\bigoplus":"\\dotsb","\\bigodot":"\\dotsb","\\bigsqcup":"\\dotsb","\\And":"\\dotsb","\\longrightarrow":"\\dotsb","\\Longrightarrow":"\\dotsb","\\longleftarrow":"\\dotsb","\\Longleftarrow":"\\dotsb","\\longleftrightarrow":"\\dotsb","\\Longleftrightarrow":"\\dotsb","\\mapsto":"\\dotsb","\\longmapsto":"\\dotsb","\\hookrightarrow":"\\dotsb","\\doteq":"\\dotsb","\\mathbin":"\\dotsb","\\mathrel":"\\dotsb","\\relbar":"\\dotsb","\\Relbar":"\\dotsb","\\xrightarrow":"\\dotsb","\\xleftarrow":"\\dotsb","\\DOTSI":"\\dotsi","\\int":"\\dotsi","\\oint":"\\dotsi","\\iint":"\\dotsi","\\iiint":"\\dotsi","\\iiiint":"\\dotsi","\\idotsint":"\\dotsi","\\DOTSX":"\\dotsx"},h("\\dots",function(e){var t="\\dotso",e=e.expandAfterFuture().text;return e in hc?t=hc[e]:("\\not"===e.slice(0,4)||e in va.math&&ws.contains(["bin","rel"],va.math[e].group))&&(t="\\dotsb"),t}),uc={")":!0,"]":!0,"\\rbrack":!0,"\\}":!0,"\\rbrace":!0,"\\rangle":!0,"\\rceil":!0,"\\rfloor":!0,"\\rgroup":!0,"\\rmoustache":!0,"\\right":!0,"\\bigr":!0,"\\biggr":!0,"\\Bigr":!0,"\\Biggr":!0,$:!0,";":!0,".":!0,",":!0},h("\\dotso",function(e){return e.future().text in uc?"\\ldots\\,":"\\ldots"}),h("\\dotsc",function(e){e=e.future().text;return e in uc&&","!==e?"\\ldots\\,":"\\ldots"}),h("\\cdots",function(e){return e.future().text in uc?"\\@cdots\\,":"\\@cdots"}),h("\\dotsb","\\cdots"),h("\\dotsm","\\cdots"),h("\\dotsi","\\!\\cdots"),h("\\dotsx","\\ldots\\,"),h("\\DOTSI","\\relax"),h("\\DOTSB","\\relax"),h("\\DOTSX","\\relax"),h("\\tmspace","\\TextOrMath{\\kern#1#3}{\\mskip#1#2}\\relax"),h("\\,","\\tmspace+{3mu}{.1667em}"),h("\\thinspace","\\,"),h("\\>","\\mskip{4mu}"),h("\\:","\\tmspace+{4mu}{.2222em}"),h("\\medspace","\\:"),h("\\;","\\tmspace+{5mu}{.2777em}"),h("\\thickspace","\\;"),h("\\!","\\tmspace-{3mu}{.1667em}"),h("\\negthinspace","\\!"),h("\\negmedspace","\\tmspace-{4mu}{.2222em}"),h("\\negthickspace","\\tmspace-{5mu}{.277em}"),h("\\enspace","\\kern.5em "),h("\\enskip","\\hskip.5em\\relax"),h("\\quad","\\hskip1em\\relax"),h("\\qquad","\\hskip2em\\relax"),h("\\tag","\\@ifstar\\tag@literal\\tag@paren"),h("\\tag@paren","\\tag@literal{({#1})}"),h("\\tag@literal",e=>{if(e.macros.get("\\df@tag"))throw new X("Multiple \\tag");return"\\gdef\\df@tag{\\text{#1}}"}),h("\\bmod","\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}\\mathbin{\\rm mod}\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}"),h("\\pod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern8mu}{\\mkern8mu}{\\mkern8mu}(#1)"),h("\\pmod","\\pod{{\\rm mod}\\mkern6mu#1}"),h("\\mod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern12mu}{\\mkern12mu}{\\mkern12mu}{\\rm mod}\\,\\,#1"),h("\\newline","\\\\\\relax"),h("\\TeX","\\textrm{\\html@mathml{T\\kern-.1667em\\raisebox{-.5ex}{E}\\kern-.125emX}{TeX}}"),h("\\LaTeX","\\textrm{\\html@mathml{L\\kern-.36em\\raisebox{"+(y=K(Vs["Main-Regular"][84][1]-.7*Vs["Main-Regular"][65][1]))+"}{\\scriptstyle A}\\kern-.15em\\TeX}{LaTeX}}"),h("\\KaTeX","\\textrm{\\html@mathml{K\\kern-.17em\\raisebox{"+y+"}{\\scriptstyle A}\\kern-.15em\\TeX}{KaTeX}}"),h("\\hspace","\\@ifstar\\@hspacer\\@hspace"),h("\\@hspace","\\hskip #1\\relax"),h("\\@hspacer","\\rule{0pt}{0pt}\\hskip #1\\relax"),h("\\ordinarycolon",":"),h("\\vcentcolon","\\mathrel{\\mathop\\ordinarycolon}"),h("\\dblcolon",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-.9mu}\\vcentcolon}}{\\mathop{\\char"2237}}'),h("\\coloneqq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2254}}'),h("\\Coloneqq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2237\\char"3d}}'),h("\\coloneq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"3a\\char"2212}}'),h("\\Coloneq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"2237\\char"2212}}'),h("\\eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2255}}'),h("\\Eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"3d\\char"2237}}'),h("\\eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2239}}'),h("\\Eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"2212\\char"2237}}'),h("\\colonapprox",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"3a\\char"2248}}'),h("\\Colonapprox",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"2237\\char"2248}}'),h("\\colonsim",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"3a\\char"223c}}'),h("\\Colonsim",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"2237\\char"223c}}'),h("∷","\\dblcolon"),h("∹","\\eqcolon"),h("≔","\\coloneqq"),h("≕","\\eqqcolon"),h("⩴","\\Coloneqq"),h("\\ratio","\\vcentcolon"),h("\\coloncolon","\\dblcolon"),h("\\colonequals","\\coloneqq"),h("\\coloncolonequals","\\Coloneqq"),h("\\equalscolon","\\eqqcolon"),h("\\equalscoloncolon","\\Eqqcolon"),h("\\colonminus","\\coloneq"),h("\\coloncolonminus","\\Coloneq"),h("\\minuscolon","\\eqcolon"),h("\\minuscoloncolon","\\Eqcolon"),h("\\coloncolonapprox","\\Colonapprox"),h("\\coloncolonsim","\\Colonsim"),h("\\simcolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\vcentcolon}"),h("\\simcoloncolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\dblcolon}"),h("\\approxcolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\vcentcolon}"),h("\\approxcoloncolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\dblcolon}"),h("\\notni","\\html@mathml{\\not\\ni}{\\mathrel{\\char`∌}}"),h("\\limsup","\\DOTSB\\operatorname*{lim\\,sup}"),h("\\liminf","\\DOTSB\\operatorname*{lim\\,inf}"),h("\\injlim","\\DOTSB\\operatorname*{inj\\,lim}"),h("\\projlim","\\DOTSB\\operatorname*{proj\\,lim}"),h("\\varlimsup","\\DOTSB\\operatorname*{\\overline{lim}}"),h("\\varliminf","\\DOTSB\\operatorname*{\\underline{lim}}"),h("\\varinjlim","\\DOTSB\\operatorname*{\\underrightarrow{lim}}"),h("\\varprojlim","\\DOTSB\\operatorname*{\\underleftarrow{lim}}"),h("\\gvertneqq","\\html@mathml{\\@gvertneqq}{≩}"),h("\\lvertneqq","\\html@mathml{\\@lvertneqq}{≨}"),h("\\ngeqq","\\html@mathml{\\@ngeqq}{≱}"),h("\\ngeqslant","\\html@mathml{\\@ngeqslant}{≱}"),h("\\nleqq","\\html@mathml{\\@nleqq}{≰}"),h("\\nleqslant","\\html@mathml{\\@nleqslant}{≰}"),h("\\nshortmid","\\html@mathml{\\@nshortmid}{∤}"),h("\\nshortparallel","\\html@mathml{\\@nshortparallel}{∦}"),h("\\nsubseteqq","\\html@mathml{\\@nsubseteqq}{⊈}"),h("\\nsupseteqq","\\html@mathml{\\@nsupseteqq}{⊉}"),h("\\varsubsetneq","\\html@mathml{\\@varsubsetneq}{⊊}"),h("\\varsubsetneqq","\\html@mathml{\\@varsubsetneqq}{⫋}"),h("\\varsupsetneq","\\html@mathml{\\@varsupsetneq}{⊋}"),h("\\varsupsetneqq","\\html@mathml{\\@varsupsetneqq}{⫌}"),h("\\imath","\\html@mathml{\\@imath}{ı}"),h("\\jmath","\\html@mathml{\\@jmath}{ȷ}"),h("\\llbracket","\\html@mathml{\\mathopen{[\\mkern-3.2mu[}}{\\mathopen{\\char`⟦}}"),h("\\rrbracket","\\html@mathml{\\mathclose{]\\mkern-3.2mu]}}{\\mathclose{\\char`⟧}}"),h("⟦","\\llbracket"),h("⟧","\\rrbracket"),h("\\lBrace","\\html@mathml{\\mathopen{\\{\\mkern-3.2mu[}}{\\mathopen{\\char`⦃}}"),h("\\rBrace","\\html@mathml{\\mathclose{]\\mkern-3.2mu\\}}}{\\mathclose{\\char`⦄}}"),h("⦃","\\lBrace"),h("⦄","\\rBrace"),h("\\minuso","\\mathbin{\\html@mathml{{\\mathrlap{\\mathchoice{\\kern{0.145em}}{\\kern{0.145em}}{\\kern{0.1015em}}{\\kern{0.0725em}}\\circ}{-}}}{\\char`⦵}}"),h("⦵","\\minuso"),h("\\darr","\\downarrow"),h("\\dArr","\\Downarrow"),h("\\Darr","\\Downarrow"),h("\\lang","\\langle"),h("\\rang","\\rangle"),h("\\uarr","\\uparrow"),h("\\uArr","\\Uparrow"),h("\\Uarr","\\Uparrow"),h("\\N","\\mathbb{N}"),h("\\R","\\mathbb{R}"),h("\\Z","\\mathbb{Z}"),h("\\alef","\\aleph"),h("\\alefsym","\\aleph"),h("\\Alpha","\\mathrm{A}"),h("\\Beta","\\mathrm{B}"),h("\\bull","\\bullet"),h("\\Chi","\\mathrm{X}"),h("\\clubs","\\clubsuit"),h("\\cnums","\\mathbb{C}"),h("\\Complex","\\mathbb{C}"),h("\\Dagger","\\ddagger"),h("\\diamonds","\\diamondsuit"),h("\\empty","\\emptyset"),h("\\Epsilon","\\mathrm{E}"),h("\\Eta","\\mathrm{H}"),h("\\exist","\\exists"),h("\\harr","\\leftrightarrow"),h("\\hArr","\\Leftrightarrow"),h("\\Harr","\\Leftrightarrow"),h("\\hearts","\\heartsuit"),h("\\image","\\Im"),h("\\infin","\\infty"),h("\\Iota","\\mathrm{I}"),h("\\isin","\\in"),h("\\Kappa","\\mathrm{K}"),h("\\larr","\\leftarrow"),h("\\lArr","\\Leftarrow"),h("\\Larr","\\Leftarrow"),h("\\lrarr","\\leftrightarrow"),h("\\lrArr","\\Leftrightarrow"),h("\\Lrarr","\\Leftrightarrow"),h("\\Mu","\\mathrm{M}"),h("\\natnums","\\mathbb{N}"),h("\\Nu","\\mathrm{N}"),h("\\Omicron","\\mathrm{O}"),h("\\plusmn","\\pm"),h("\\rarr","\\rightarrow"),h("\\rArr","\\Rightarrow"),h("\\Rarr","\\Rightarrow"),h("\\real","\\Re"),h("\\reals","\\mathbb{R}"),h("\\Reals","\\mathbb{R}"),h("\\Rho","\\mathrm{P}"),h("\\sdot","\\cdot"),h("\\sect","\\S"),h("\\spades","\\spadesuit"),h("\\sub","\\subset"),h("\\sube","\\subseteq"),h("\\supe","\\supseteq"),h("\\Tau","\\mathrm{T}"),h("\\thetasym","\\vartheta"),h("\\weierp","\\wp"),h("\\Zeta","\\mathrm{Z}"),h("\\argmin","\\DOTSB\\operatorname*{arg\\,min}"),h("\\argmax","\\DOTSB\\operatorname*{arg\\,max}"),h("\\plim","\\DOTSB\\mathop{\\operatorname{plim}}\\limits"),h("\\bra","\\mathinner{\\langle{#1}|}"),h("\\ket","\\mathinner{|{#1}\\rangle}"),h("\\braket","\\mathinner{\\langle{#1}\\rangle}"),h("\\Bra","\\left\\langle#1\\right|"),h("\\Ket","\\left|#1\\right\\rangle"),h("\\bra@ket",(dc=mt(l=>e=>{var t=e.consumeArg().tokens,n=e.consumeArg().tokens,r=e.consumeArg().tokens,i=e.consumeArg().tokens,s=e.macros.get("|"),a=e.macros.get("\\|"),o=(e.macros.beginGroup(),mt(i=>e=>{l&&(e.macros.set("|",s),r.length)&&e.macros.set("\\|",a);var t=i;return!i&&r.length&&"|"===e.future().text&&(e.popToken(),t=!0),{tokens:t?r:n,numArgs:0}},"midMacro")),o=(e.macros.set("|",o(!1)),r.length&&e.macros.set("\\|",o(!0)),e.consumeArg().tokens),i=e.expandTokens([...i,...o,...t]);return e.macros.endGroup(),{tokens:i.reverse(),numArgs:0}},"braketHelper"))(!1)),h("\\bra@set",dc(!0)),h("\\Braket","\\bra@ket{\\left\\langle}{\\,\\middle\\vert\\,}{\\,\\middle\\vert\\,}{\\right\\rangle}"),h("\\Set","\\bra@set{\\left\\{\\:}{\\;\\middle\\vert\\;}{\\;\\middle\\Vert\\;}{\\:\\right\\}}"),h("\\set","\\bra@set{\\{\\,}{\\mid}{}{\\,\\}}"),h("\\angln","{\\angl n}"),h("\\blue","\\textcolor{##6495ed}{#1}"),h("\\orange","\\textcolor{##ffa500}{#1}"),h("\\pink","\\textcolor{##ff00af}{#1}"),h("\\red","\\textcolor{##df0030}{#1}"),h("\\green","\\textcolor{##28ae7b}{#1}"),h("\\gray","\\textcolor{gray}{#1}"),h("\\purple","\\textcolor{##9d38bd}{#1}"),h("\\blueA","\\textcolor{##ccfaff}{#1}"),h("\\blueB","\\textcolor{##80f6ff}{#1}"),h("\\blueC","\\textcolor{##63d9ea}{#1}"),h("\\blueD","\\textcolor{##11accd}{#1}"),h("\\blueE","\\textcolor{##0c7f99}{#1}"),h("\\tealA","\\textcolor{##94fff5}{#1}"),h("\\tealB","\\textcolor{##26edd5}{#1}"),h("\\tealC","\\textcolor{##01d1c1}{#1}"),h("\\tealD","\\textcolor{##01a995}{#1}"),h("\\tealE","\\textcolor{##208170}{#1}"),h("\\greenA","\\textcolor{##b6ffb0}{#1}"),h("\\greenB","\\textcolor{##8af281}{#1}"),h("\\greenC","\\textcolor{##74cf70}{#1}"),h("\\greenD","\\textcolor{##1fab54}{#1}"),h("\\greenE","\\textcolor{##0d923f}{#1}"),h("\\goldA","\\textcolor{##ffd0a9}{#1}"),h("\\goldB","\\textcolor{##ffbb71}{#1}"),h("\\goldC","\\textcolor{##ff9c39}{#1}"),h("\\goldD","\\textcolor{##e07d10}{#1}"),h("\\goldE","\\textcolor{##a75a05}{#1}"),h("\\redA","\\textcolor{##fca9a9}{#1}"),h("\\redB","\\textcolor{##ff8482}{#1}"),h("\\redC","\\textcolor{##f9685d}{#1}"),h("\\redD","\\textcolor{##e84d39}{#1}"),h("\\redE","\\textcolor{##bc2612}{#1}"),h("\\maroonA","\\textcolor{##ffbde0}{#1}"),h("\\maroonB","\\textcolor{##ff92c6}{#1}"),h("\\maroonC","\\textcolor{##ed5fa6}{#1}"),h("\\maroonD","\\textcolor{##ca337c}{#1}"),h("\\maroonE","\\textcolor{##9e034e}{#1}"),h("\\purpleA","\\textcolor{##ddd7ff}{#1}"),h("\\purpleB","\\textcolor{##c6b9fc}{#1}"),h("\\purpleC","\\textcolor{##aa87ff}{#1}"),h("\\purpleD","\\textcolor{##7854ab}{#1}"),h("\\purpleE","\\textcolor{##543b78}{#1}"),h("\\mintA","\\textcolor{##f5f9e8}{#1}"),h("\\mintB","\\textcolor{##edf2df}{#1}"),h("\\mintC","\\textcolor{##e0e5cc}{#1}"),h("\\grayA","\\textcolor{##f6f7f7}{#1}"),h("\\grayB","\\textcolor{##f0f1f2}{#1}"),h("\\grayC","\\textcolor{##e3e5e6}{#1}"),h("\\grayD","\\textcolor{##d6d8da}{#1}"),h("\\grayE","\\textcolor{##babec2}{#1}"),h("\\grayF","\\textcolor{##888d93}{#1}"),h("\\grayG","\\textcolor{##626569}{#1}"),h("\\grayH","\\textcolor{##3b3e40}{#1}"),h("\\grayI","\\textcolor{##21242c}{#1}"),h("\\kaBlue","\\textcolor{##314453}{#1}"),h("\\kaGreen","\\textcolor{##71B307}{#1}"),pc={"^":!0,_:!0,"\\limits":!0,"\\nolimits":!0},gc=class{static{mt(this,"MacroExpander")}constructor(e,t,i){this.settings=void 0,this.expansionCount=void 0,this.lexer=void 0,this.macros=void 0,this.stack=void 0,this.mode=void 0,this.settings=t,this.expansionCount=0,this.feed(e),this.macros=new ac(oc,t.macros),this.mode=i,this.stack=[]}feed(e){this.lexer=new sc(e,this.settings)}switchMode(e){this.mode=e}beginGroup(){this.macros.beginGroup()}endGroup(){this.macros.endGroup()}endGroups(){this.macros.endGroups()}future(){return 0===this.stack.length&&this.pushToken(this.lexer.lex()),this.stack[this.stack.length-1]}popToken(){return this.future(),this.stack.pop()}pushToken(e){this.stack.push(e)}pushTokens(e){this.stack.push(...e)}scanArgument(e){var t,i,n;if(e){if(this.consumeSpaces(),"["!==this.future().text)return null;t=this.popToken(),{tokens:n,end:i}=this.consumeArg(["]"])}else({tokens:n,start:t,end:i}=this.consumeArg());return this.pushToken(new fs("EOF",i.loc)),this.pushTokens(n),t.range(i,"")}consumeSpaces(){for(;;){if(" "!==this.future().text)break;this.stack.pop()}}consumeArg(e){var t,i=[],n=e&&0<e.length,r=(n||this.consumeSpaces(),this.future()),s=0,a=0;do{if(t=this.popToken(),i.push(t),"{"===t.text)++s;else if("}"===t.text){if(-1===--s)throw new X("Extra }",t)}else if("EOF"===t.text)throw new X("Unexpected end of input in a macro argument, expected '"+(e&&n?e[a]:"}")+"'",t);if(e&&n)if((0===s||1===s&&"{"===e[a])&&t.text===e[a]){if(++a===e.length){i.splice(-a,a);break}}else a=0}while(0!==s||n);return"{"===r.text&&"}"===i[i.length-1].text&&(i.pop(),i.shift()),i.reverse(),{tokens:i,start:r,end:t}}consumeArgs(e,t){if(t){if(t.length!==e+1)throw new X("The length of delimiters doesn't match the number of args!");for(var i=t[0],n=0;n<i.length;n++){var r=this.popToken();if(i[n]!==r.text)throw new X("Use of the macro doesn't match its definition",r)}}for(var s=[],a=0;a<e;a++)s.push(this.consumeArg(t&&t[a+1]).tokens);return s}countExpansion(e){if(this.expansionCount+=e,this.expansionCount>this.settings.maxExpand)throw new X("Too many expansions: infinite loop or need to increase maxExpand setting")}expandOnce(e){var t=this.popToken(),i=t.text,n=t.noexpand?null:this._getExpansion(i);if(null==n||e&&n.unexpandable){if(e&&null==n&&"\\"===i[0]&&!this.isDefined(i))throw new X("Undefined control sequence: "+i);return this.pushToken(t),!1}this.countExpansion(1);var r=n.tokens,s=this.consumeArgs(n.numArgs,n.delimiters);if(n.numArgs)for(var a=(r=r.slice()).length-1;0<=a;--a){var o=r[a];if("#"===o.text){if(0===a)throw new X("Incomplete placeholder at end of macro body",o);if("#"===(o=r[--a]).text)r.splice(a+1,1);else{if(!/^[1-9]$/.test(o.text))throw new X("Not a valid argument number",o);r.splice(a,2,...s[+o.text-1])}}}return this.pushTokens(r),r.length}expandAfterFuture(){return this.expandOnce(),this.future()}expandNextToken(){for(;;){var e;if(!1===this.expandOnce())return(e=this.stack.pop()).treatAsRelax&&(e.text="\\relax"),e}throw new Error}expandMacro(e){return this.macros.has(e)?this.expandTokens([new fs(e)]):void 0}expandTokens(e){var t,i=[],n=this.stack.length;for(this.pushTokens(e);this.stack.length>n;)!1===this.expandOnce(!0)&&((t=this.stack.pop()).treatAsRelax&&(t.noexpand=!1,t.treatAsRelax=!1),i.push(t));return this.countExpansion(i.length),i}expandMacroAsText(e){e=this.expandMacro(e);return e&&e.map(e=>e.text).join("")}_getExpansion(e){var t=this.macros.get(e);if(null==t)return t;if(1===e.length){e=this.lexer.catcodes[e];if(null!=e&&13!==e)return}e="function"==typeof t?t(this):t;if("string"!=typeof e)return e;var i=0;if(-1!==e.indexOf("#"))for(var n=e.replace(/##/g,"");-1!==n.indexOf("#"+(i+1));)++i;for(var r=new sc(e,this.settings),s=[],a=r.lex();"EOF"!==a.text;)s.push(a),a=r.lex();return s.reverse(),{tokens:s,numArgs:i}}isDefined(e){return this.macros.has(e)||nc.hasOwnProperty(e)||va.math.hasOwnProperty(e)||va.text.hasOwnProperty(e)||pc.hasOwnProperty(e)}isExpandable(e){var t=this.macros.get(e);return null!=t?"string"==typeof t||"function"==typeof t||!t.unexpandable:nc.hasOwnProperty(e)&&!nc[e].primitive}},fc=/^[₊₋₌₍₎₀₁₂₃₄₅₆₇₈₉ₐₑₕᵢⱼₖₗₘₙₒₚᵣₛₜᵤᵥₓᵦᵧᵨᵩᵪ]/,mc=Object.freeze({"₊":"+","₋":"-","₌":"=","₍":"(","₎":")","₀":"0","₁":"1","₂":"2","₃":"3","₄":"4","₅":"5","₆":"6","₇":"7","₈":"8","₉":"9","ₐ":"a","ₑ":"e","ₕ":"h","ᵢ":"i","ⱼ":"j","ₖ":"k","ₗ":"l","ₘ":"m","ₙ":"n","ₒ":"o","ₚ":"p","ᵣ":"r","ₛ":"s","ₜ":"t","ᵤ":"u","ᵥ":"v","ₓ":"x","ᵦ":"β","ᵧ":"γ","ᵨ":"ρ","ᵩ":"ϕ","ᵪ":"χ","⁺":"+","⁻":"-","⁼":"=","⁽":"(","⁾":")","⁰":"0","¹":"1","²":"2","³":"3","⁴":"4","⁵":"5","⁶":"6","⁷":"7","⁸":"8","⁹":"9","ᴬ":"A","ᴮ":"B","ᴰ":"D","ᴱ":"E","ᴳ":"G","ᴴ":"H","ᴵ":"I","ᴶ":"J","ᴷ":"K","ᴸ":"L","ᴹ":"M","ᴺ":"N","ᴼ":"O","ᴾ":"P","ᴿ":"R","ᵀ":"T","ᵁ":"U","ⱽ":"V","ᵂ":"W","ᵃ":"a","ᵇ":"b","ᶜ":"c","ᵈ":"d","ᵉ":"e","ᶠ":"f","ᵍ":"g","ʰ":"h","ⁱ":"i","ʲ":"j","ᵏ":"k","ˡ":"l","ᵐ":"m","ⁿ":"n","ᵒ":"o","ᵖ":"p","ʳ":"r","ˢ":"s","ᵗ":"t","ᵘ":"u","ᵛ":"v","ʷ":"w","ˣ":"x","ʸ":"y","ᶻ":"z","ᵝ":"β","ᵞ":"γ","ᵟ":"δ","ᵠ":"ϕ","ᵡ":"χ","ᶿ":"θ"}),yc={"́":{text:"\\'",math:"\\acute"},"̀":{text:"\\`",math:"\\grave"},"̈":{text:'\\"',math:"\\ddot"},"̃":{text:"\\~",math:"\\tilde"},"̄":{text:"\\=",math:"\\bar"},"̆":{text:"\\u",math:"\\breve"},"̌":{text:"\\v",math:"\\check"},"̂":{text:"\\^",math:"\\hat"},"̇":{text:"\\.",math:"\\dot"},"̊":{text:"\\r",math:"\\mathring"},"̋":{text:"\\H"},"̧":{text:"\\c"}},bc={"á":"á","à":"à","ä":"ä","ǟ":"ǟ","ã":"ã","ā":"ā","ă":"ă","ắ":"ắ","ằ":"ằ","ẵ":"ẵ","ǎ":"ǎ","â":"â","ấ":"ấ","ầ":"ầ","ẫ":"ẫ","ȧ":"ȧ","ǡ":"ǡ","å":"å","ǻ":"ǻ","ḃ":"ḃ","ć":"ć","ḉ":"ḉ","č":"č","ĉ":"ĉ","ċ":"ċ","ç":"ç","ď":"ď","ḋ":"ḋ","ḑ":"ḑ","é":"é","è":"è","ë":"ë","ẽ":"ẽ","ē":"ē","ḗ":"ḗ","ḕ":"ḕ","ĕ":"ĕ","ḝ":"ḝ","ě":"ě","ê":"ê","ế":"ế","ề":"ề","ễ":"ễ","ė":"ė","ȩ":"ȩ","ḟ":"ḟ","ǵ":"ǵ","ḡ":"ḡ","ğ":"ğ","ǧ":"ǧ","ĝ":"ĝ","ġ":"ġ","ģ":"ģ","ḧ":"ḧ","ȟ":"ȟ","ĥ":"ĥ","ḣ":"ḣ","ḩ":"ḩ","í":"í","ì":"ì","ï":"ï","ḯ":"ḯ","ĩ":"ĩ","ī":"ī","ĭ":"ĭ","ǐ":"ǐ","î":"î","ǰ":"ǰ","ĵ":"ĵ","ḱ":"ḱ","ǩ":"ǩ","ķ":"ķ","ĺ":"ĺ","ľ":"ľ","ļ":"ļ","ḿ":"ḿ","ṁ":"ṁ","ń":"ń","ǹ":"ǹ","ñ":"ñ","ň":"ň","ṅ":"ṅ","ņ":"ņ","ó":"ó","ò":"ò","ö":"ö","ȫ":"ȫ","õ":"õ","ṍ":"ṍ","ṏ":"ṏ","ȭ":"ȭ","ō":"ō","ṓ":"ṓ","ṑ":"ṑ","ŏ":"ŏ","ǒ":"ǒ","ô":"ô","ố":"ố","ồ":"ồ","ỗ":"ỗ","ȯ":"ȯ","ȱ":"ȱ","ő":"ő","ṕ":"ṕ","ṗ":"ṗ","ŕ":"ŕ","ř":"ř","ṙ":"ṙ","ŗ":"ŗ","ś":"ś","ṥ":"ṥ","š":"š","ṧ":"ṧ","ŝ":"ŝ","ṡ":"ṡ","ş":"ş","ẗ":"ẗ","ť":"ť","ṫ":"ṫ","ţ":"ţ","ú":"ú","ù":"ù","ü":"ü","ǘ":"ǘ","ǜ":"ǜ","ǖ":"ǖ","ǚ":"ǚ","ũ":"ũ","ṹ":"ṹ","ū":"ū","ṻ":"ṻ","ŭ":"ŭ","ǔ":"ǔ","û":"û","ů":"ů","ű":"ű","ṽ":"ṽ","ẃ":"ẃ","ẁ":"ẁ","ẅ":"ẅ","ŵ":"ŵ","ẇ":"ẇ","ẘ":"ẘ","ẍ":"ẍ","ẋ":"ẋ","ý":"ý","ỳ":"ỳ","ÿ":"ÿ","ỹ":"ỹ","ȳ":"ȳ","ŷ":"ŷ","ẏ":"ẏ","ẙ":"ẙ","ź":"ź","ž":"ž","ẑ":"ẑ","ż":"ż","Á":"Á","À":"À","Ä":"Ä","Ǟ":"Ǟ","Ã":"Ã","Ā":"Ā","Ă":"Ă","Ắ":"Ắ","Ằ":"Ằ","Ẵ":"Ẵ","Ǎ":"Ǎ","Â":"Â","Ấ":"Ấ","Ầ":"Ầ","Ẫ":"Ẫ","Ȧ":"Ȧ","Ǡ":"Ǡ","Å":"Å","Ǻ":"Ǻ","Ḃ":"Ḃ","Ć":"Ć","Ḉ":"Ḉ","Č":"Č","Ĉ":"Ĉ","Ċ":"Ċ","Ç":"Ç","Ď":"Ď","Ḋ":"Ḋ","Ḑ":"Ḑ","É":"É","È":"È","Ë":"Ë","Ẽ":"Ẽ","Ē":"Ē","Ḗ":"Ḗ","Ḕ":"Ḕ","Ĕ":"Ĕ","Ḝ":"Ḝ","Ě":"Ě","Ê":"Ê","Ế":"Ế","Ề":"Ề","Ễ":"Ễ","Ė":"Ė","Ȩ":"Ȩ","Ḟ":"Ḟ","Ǵ":"Ǵ","Ḡ":"Ḡ","Ğ":"Ğ","Ǧ":"Ǧ","Ĝ":"Ĝ","Ġ":"Ġ","Ģ":"Ģ","Ḧ":"Ḧ","Ȟ":"Ȟ","Ĥ":"Ĥ","Ḣ":"Ḣ","Ḩ":"Ḩ","Í":"Í","Ì":"Ì","Ï":"Ï","Ḯ":"Ḯ","Ĩ":"Ĩ","Ī":"Ī","Ĭ":"Ĭ","Ǐ":"Ǐ","Î":"Î","İ":"İ","Ĵ":"Ĵ","Ḱ":"Ḱ","Ǩ":"Ǩ","Ķ":"Ķ","Ĺ":"Ĺ","Ľ":"Ľ","Ļ":"Ļ","Ḿ":"Ḿ","Ṁ":"Ṁ","Ń":"Ń","Ǹ":"Ǹ","Ñ":"Ñ","Ň":"Ň","Ṅ":"Ṅ","Ņ":"Ņ","Ó":"Ó","Ò":"Ò","Ö":"Ö","Ȫ":"Ȫ","Õ":"Õ","Ṍ":"Ṍ","Ṏ":"Ṏ","Ȭ":"Ȭ","Ō":"Ō","Ṓ":"Ṓ","Ṑ":"Ṑ","Ŏ":"Ŏ","Ǒ":"Ǒ","Ô":"Ô","Ố":"Ố","Ồ":"Ồ","Ỗ":"Ỗ","Ȯ":"Ȯ","Ȱ":"Ȱ","Ő":"Ő","Ṕ":"Ṕ","Ṗ":"Ṗ","Ŕ":"Ŕ","Ř":"Ř","Ṙ":"Ṙ","Ŗ":"Ŗ","Ś":"Ś","Ṥ":"Ṥ","Š":"Š","Ṧ":"Ṧ","Ŝ":"Ŝ","Ṡ":"Ṡ","Ş":"Ş","Ť":"Ť","Ṫ":"Ṫ","Ţ":"Ţ","Ú":"Ú","Ù":"Ù","Ü":"Ü","Ǘ":"Ǘ","Ǜ":"Ǜ","Ǖ":"Ǖ","Ǚ":"Ǚ","Ũ":"Ũ","Ṹ":"Ṹ","Ū":"Ū","Ṻ":"Ṻ","Ŭ":"Ŭ","Ǔ":"Ǔ","Û":"Û","Ů":"Ů","Ű":"Ű","Ṽ":"Ṽ","Ẃ":"Ẃ","Ẁ":"Ẁ","Ẅ":"Ẅ","Ŵ":"Ŵ","Ẇ":"Ẇ","Ẍ":"Ẍ","Ẋ":"Ẋ","Ý":"Ý","Ỳ":"Ỳ","Ÿ":"Ÿ","Ỹ":"Ỹ","Ȳ":"Ȳ","Ŷ":"Ŷ","Ẏ":"Ẏ","Ź":"Ź","Ž":"Ž","Ẑ":"Ẑ","Ż":"Ż","ά":"ά","ὰ":"ὰ","ᾱ":"ᾱ","ᾰ":"ᾰ","έ":"έ","ὲ":"ὲ","ή":"ή","ὴ":"ὴ","ί":"ί","ὶ":"ὶ","ϊ":"ϊ","ΐ":"ΐ","ῒ":"ῒ","ῑ":"ῑ","ῐ":"ῐ","ό":"ό","ὸ":"ὸ","ύ":"ύ","ὺ":"ὺ","ϋ":"ϋ","ΰ":"ΰ","ῢ":"ῢ","ῡ":"ῡ","ῠ":"ῠ","ώ":"ώ","ὼ":"ὼ","Ύ":"Ύ","Ὺ":"Ὺ","Ϋ":"Ϋ","Ῡ":"Ῡ","Ῠ":"Ῠ","Ώ":"Ώ","Ὼ":"Ὼ"},(vc=class s{static{mt(this,"Parser")}constructor(e,t){this.mode=void 0,this.gullet=void 0,this.settings=void 0,this.leftrightDepth=void 0,this.nextToken=void 0,this.mode="math",this.gullet=new gc(e,t,this.mode),this.settings=t,this.leftrightDepth=0}expect(e,t){if(void 0===t&&(t=!0),this.fetch().text!==e)throw new X("Expected '"+e+"', got '"+this.fetch().text+"'",this.fetch());t&&this.consume()}consume(){this.nextToken=null}fetch(){return null==this.nextToken&&(this.nextToken=this.gullet.expandNextToken()),this.nextToken}switchMode(e){this.mode=e,this.gullet.switchMode(e)}parse(){this.settings.globalGroup||this.gullet.beginGroup(),this.settings.colorIsTextColor&&this.gullet.macros.set("\\color","\\textcolor");try{var e=this.parseExpression(!1);return this.expect("EOF"),this.settings.globalGroup||this.gullet.endGroup(),e}finally{this.gullet.endGroups()}}subparse(e){var t=this.nextToken,e=(this.consume(),this.gullet.pushToken(new fs("}")),this.gullet.pushTokens(e),this.parseExpression(!1));return this.expect("}"),this.nextToken=t,e}parseExpression(e,t){for(var i=[];;){"math"===this.mode&&this.consumeSpaces();var n=this.fetch();if(-1!==s.endOfExpression.indexOf(n.text)||t&&n.text===t||e&&nc[n.text]&&nc[n.text].infix)break;n=this.parseAtom(t);if(!n)break;"internal"!==n.type&&i.push(n)}return"text"===this.mode&&this.formLigatures(i),this.handleInfixNodes(i)}handleInfixNodes(e){for(var t,i,n,r=-1,s=0;s<e.length;s++)if("infix"===e[s].type){if(-1!==r)throw new X("only one infix operator per group",e[s].token);t=e[r=s].replaceWith}return-1!==r&&t?(i=e.slice(0,r),n=e.slice(r+1),i=1===i.length&&"ordgroup"===i[0].type?i[0]:{type:"ordgroup",mode:this.mode,body:i},n=1===n.length&&"ordgroup"===n[0].type?n[0]:{type:"ordgroup",mode:this.mode,body:n},["\\\\abovefrac"===t?this.callFunction(t,[i,e[r],n],[]):this.callFunction(t,[i,n],[])]):e}handleSupSubscript(e){var t=this.fetch(),i=t.text;this.consume(),this.consumeSpaces();do{var n=this.parseGroup(e)}while("internal"===(null==n?void 0:n.type));if(n)return n;throw new X("Expected group after '"+i+"'",t)}formatUnsupportedCmd(e){for(var t=[],i=0;i<e.length;i++)t.push({type:"textord",mode:"text",text:e[i]});var n={type:"text",mode:this.mode,body:t};return{type:"color",mode:this.mode,color:this.settings.errorColor,body:[n]}}parseAtom(e){var t,i,n=this.parseGroup("atom",e);if("internal"===n?.type||"text"===this.mode)return n;for(;;){this.consumeSpaces();var r=this.fetch();if("\\limits"===r.text||"\\nolimits"===r.text){if(n&&"op"===n.type){var s="\\limits"===r.text;n.limits=s,n.alwaysHandleSupSub=!0}else{if(!n||"operatorname"!==n.type)throw new X("Limit controls must follow a math operator",r);n.alwaysHandleSupSub&&(n.limits="\\limits"===r.text)}this.consume()}else if("^"===r.text){if(t)throw new X("Double superscript",r);t=this.handleSupSubscript("superscript")}else if("_"===r.text){if(i)throw new X("Double subscript",r);i=this.handleSupSubscript("subscript")}else if("'"===r.text){if(t)throw new X("Double superscript",r);var a={type:"textord",mode:this.mode,text:"\\prime"},o=[a];for(this.consume();"'"===this.fetch().text;)o.push(a),this.consume();"^"===this.fetch().text&&o.push(this.handleSupSubscript("superscript")),t={type:"ordgroup",mode:this.mode,body:o}}else{if(!mc[r.text])break;var l=fc.test(r.text),c=[];for(c.push(new fs(mc[r.text])),this.consume();;){var h=this.fetch().text;if(!mc[h]||fc.test(h)!==l)break;c.unshift(new fs(mc[h])),this.consume()}s=this.subparse(c);l?i={type:"ordgroup",mode:"math",body:s}:t={type:"ordgroup",mode:"math",body:s}}}return t||i?{type:"supsub",mode:this.mode,base:n,sup:t,sub:i}:n}parseFunction(e,t){var i=this.fetch(),n=i.text,r=nc[n];if(!r)return null;if(this.consume(),t&&"atom"!==t&&!r.allowedInArgument)throw new X("Got function '"+n+"' with no arguments"+(t?" as "+t:""),i);if("text"===this.mode&&!r.allowedInText)throw new X("Can't use function '"+n+"' in text mode",i);if("math"===this.mode&&!1===r.allowedInMath)throw new X("Can't use function '"+n+"' in math mode",i);var{args:t,optArgs:r}=this.parseArguments(n,r);return this.callFunction(n,t,r,i,e)}callFunction(e,t,i,n,r){var s=nc[e];if(s&&s.handler)return s.handler({funcName:e,parser:this,token:n,breakOnTokenText:r},t,i);throw new X("No function handler for "+e)}parseArguments(e,t){var i=t.numArgs+t.numOptionalArgs;if(0===i)return{args:[],optArgs:[]};for(var n=[],r=[],s=0;s<i;s++){var a=t.argTypes&&t.argTypes[s],o=s<t.numOptionalArgs,a=((t.primitive&&null==a||"sqrt"===t.type&&1===s&&null==r[0])&&(a="primitive"),this.parseGroupOfType("argument to '"+e+"'",a,o));if(o)r.push(a);else{if(null==a)throw new X("Null argument, please report this as a bug");n.push(a)}}return{args:n,optArgs:r}}parseGroupOfType(e,t,i){switch(t){case"color":return this.parseColorGroup(i);case"size":return this.parseSizeGroup(i);case"url":return this.parseUrlGroup(i);case"math":case"text":return this.parseArgumentGroup(i,t);case"hbox":var n=this.parseArgumentGroup(i,"text");return null!=n?{type:"styling",mode:n.mode,body:[n],style:"text"}:null;case"raw":n=this.parseStringGroup("raw",i);return null!=n?{type:"raw",mode:"text",string:n.text}:null;case"primitive":if(i)throw new X("A primitive argument cannot be optional");n=this.parseGroup(e);if(null==n)throw new X("Expected group as "+e,this.fetch());return n;case"original":case null:case void 0:return this.parseArgumentGroup(i);default:throw new X("Unknown group type as "+e,this.fetch())}}consumeSpaces(){for(;" "===this.fetch().text;)this.consume()}parseStringGroup(e,t){t=this.gullet.scanArgument(t);if(null==t)return null;for(var i,n="";"EOF"!==(i=this.fetch()).text;)n+=i.text,this.consume();return this.consume(),t.text=n,t}parseRegexGroup(e,t){for(var i,n=this.fetch(),r=n,s="";"EOF"!==(i=this.fetch()).text&&e.test(s+i.text);)s+=(r=i).text,this.consume();if(""===s)throw new X("Invalid "+t+": '"+n.text+"'",n);return n.range(r,s)}parseColorGroup(e){e=this.parseStringGroup("color",e);if(null==e)return null;var t=/^(#[a-f0-9]{3}|#?[a-f0-9]{6}|[a-z]+)$/i.exec(e.text);if(t)return t=t[0],/^[0-9a-f]{6}$/i.test(t)&&(t="#"+t),{type:"color-token",mode:this.mode,color:t};throw new X("Invalid color: '"+e.text+"'",e)}parseSizeGroup(e){var t,i=!1;if(this.gullet.consumeSpaces(),!(t=e||"{"===this.gullet.future().text?this.parseStringGroup("size",e):this.parseRegexGroup(/^[-+]? *(?:$|\d+|\d+\.\d*|\.\d*) *[a-z]{0,2} *$/,"size")))return null;e||0!==t.text.length||(t.text="0pt",i=!0);e=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(t.text);if(!e)throw new X("Invalid size: '"+t.text+"'",t);e={number:+(e[1]+e[2]),unit:e[3]};if(ia(e))return{type:"size",mode:this.mode,value:e,isBlank:i};throw new X("Invalid unit: '"+e.unit+"'",t)}parseUrlGroup(e){this.gullet.lexer.setCatcode("%",13),this.gullet.lexer.setCatcode("~",12);var e=this.parseStringGroup("url",e);return this.gullet.lexer.setCatcode("%",14),this.gullet.lexer.setCatcode("~",13),null==e?null:(e=e.text.replace(/\\([#$%&~_^{}])/g,"$1"),{type:"url",mode:this.mode,url:e})}parseArgumentGroup(e,t){var i,n,e=this.gullet.scanArgument(e);return null==e?null:(i=this.mode,t&&this.switchMode(t),this.gullet.beginGroup(),n=this.parseExpression(!1,"EOF"),this.expect("EOF"),this.gullet.endGroup(),e={type:"ordgroup",mode:this.mode,loc:e.loc,body:n},t&&this.switchMode(i),e)}parseGroup(e,t){var i=this.fetch(),n=i.text;if("{"===n||"\\begingroup"===n){this.consume();var r="{"===n?"}":"\\endgroup",s=(this.gullet.beginGroup(),this.parseExpression(!1,r)),a=this.fetch();this.expect(r),this.gullet.endGroup(),r={type:"ordgroup",mode:this.mode,loc:gs.range(i,a),body:s,semisimple:"\\begingroup"===n||void 0}}else if(null==(r=this.parseFunction(t,e)||this.parseSymbol())&&"\\"===n[0]&&!pc.hasOwnProperty(n)){if(this.settings.throwOnError)throw new X("Undefined control sequence: "+n,i);r=this.formatUnsupportedCmd(n),this.consume()}return r}formLigatures(e){for(var t=e.length-1,i=0;i<t;++i){var n=e[i],r=n.text;"-"===r&&"-"===e[i+1].text&&(i+1<t&&"-"===e[i+2].text?(e.splice(i,3,{type:"textord",mode:"text",loc:gs.range(n,e[i+2]),text:"---"}),t-=2):(e.splice(i,2,{type:"textord",mode:"text",loc:gs.range(n,e[i+1]),text:"--"}),--t)),"'"!==r&&"`"!==r||e[i+1].text!==r||(e.splice(i,2,{type:"textord",mode:"text",loc:gs.range(n,e[i+1]),text:r+r}),--t)}}parseSymbol(){var e=this.fetch(),t=e.text;if(/^\\verb[^a-zA-Z]/.test(t)){this.consume();var i=t.slice(5),n="*"===i.charAt(0);if((i=n?i.slice(1):i).length<2||i.charAt(0)!==i.slice(-1))throw new X(`\\verb assertion failed --
|
||
please report what input caused this bug`);return{type:"verb",mode:"text",body:i=i.slice(1,-1),star:n}}bc.hasOwnProperty(t[0])&&!va[this.mode][t[0]]&&(this.settings.strict&&"math"===this.mode&&this.settings.reportNonstrict("unicodeTextInMathMode",'Accented Unicode text character "'+t[0]+'" used in math mode',e),t=bc[t[0]]+t.slice(1));var r=rc.exec(t);if(r&&("i"===(t=t.substring(0,r.index))?t="ı":"j"===t&&(t="ȷ")),va[this.mode][t]){this.settings.strict&&"math"===this.mode&&0<=Oa.indexOf(t)&&this.settings.reportNonstrict("unicodeTextInMathMode",'Latin-1/Unicode text character "'+t[0]+'" used in math mode',e);var i=va[this.mode][t].group,n=gs.range(e),s=ya.hasOwnProperty(i)?{type:"atom",mode:this.mode,family:i,loc:n,text:t}:{type:i,mode:this.mode,loc:n,text:t}}else{if(!(128<=t.charCodeAt(0)))return null;this.settings.strict&&(zr(t.charCodeAt(0))?"math"===this.mode&&this.settings.reportNonstrict("unicodeTextInMathMode",'Unicode text character "'+t[0]+'" used in math mode',e):this.settings.reportNonstrict("unknownSymbol",'Unrecognized Unicode character "'+t[0]+'" ('+t.charCodeAt(0)+")",e)),s={type:"textord",mode:"text",loc:gs.range(e),text:t}}if(this.consume(),r)for(var a=0;a<r[0].length;a++){var o=r[0][a];if(!yc[o])throw new X("Unknown accent ' "+o+"'",e);var l=yc[o][this.mode]||yc[o].text;if(!l)throw new X("Accent "+o+" unsupported in "+this.mode+" mode",e);s={type:"accent",mode:this.mode,loc:gs.range(e),label:l,isStretchy:!1,isShifty:!0,base:s}}return s}}).endOfExpression=["}","\\endgroup","\\end","\\right","&"],xc=mt(function(e,t){if(!("string"==typeof e||e instanceof String))throw new TypeError("KaTeX can only parse string typed expression");var e=new vc(e,t),i=(delete e.gullet.macros.current["\\df@tag"],e.parse());if(delete e.gullet.macros.current["\\current@color"],delete e.gullet.macros.current["\\color"],e.gullet.macros.get("\\df@tag")){if(!t.displayMode)throw new X("\\tag works only in display equations");i=[{type:"tag",mode:"text",body:i,tag:e.subparse([new fs("\\df@tag")])}]}return i},"parseTree"),wc=mt(function(e,t,i){t.textContent="";e=_c(e,i).toNode();t.appendChild(e)},"render"),typeof document<"u"&&"CSS1Compat"!==document.compatMode&&(typeof console<"u"&&console.warn("Warning: KaTeX doesn't work in quirks mode. Make sure your website has a suitable doctype."),wc=mt(function(){throw new X("KaTeX doesn't work in quirks mode.")},"render")),kc=mt(function(e,t){return _c(e,t).toMarkup()},"renderToString"),Tc=mt(function(e,t){t=new Ts(t);return xc(e,t)},"generateParseTree"),Sc=mt(function(e,t,i){if(!i.throwOnError&&e instanceof X)return(t=Z.makeSpan(["katex-error"],[new pa(t)])).setAttribute("title",e.toString()),t.setAttribute("style","color:"+i.errorColor),t;throw e},"renderError"),_c=mt(function(t,i){i=new Ts(i);try{var e=xc(t,i);return Lo(e,t,i)}catch(e){return Sc(e,t,i)}},"renderToDomTree"),Cc=mt(function(t,i){i=new Ts(i);try{var e=xc(t,i);return Ro(e,t,i)}catch(e){return Sc(e,t,i)}},"renderToHTMLTree"),$c={version:Ac="0.16.22",render:wc,renderToString:kc,ParseError:X,SETTINGS_SCHEMA:ks,__parse:Tc,__renderToDomTree:_c,__renderToHTMLTree:Cc,__setFontMetrics:Hr,__defineSymbol:o,__defineFunction:l,__defineMacro:h,__domTree:Ec={Span:ca,Anchor:ha,SymbolNode:pa,SvgNode:ga,PathNode:fa,LineNode:ma}}});function Rc(){let t="data-temp-href-target";Dr.addHook("beforeSanitizeAttributes",e=>{e instanceof Element&&"A"===e.tagName&&e.hasAttribute("target")&&e.setAttribute(t,e.getAttribute("target")??"")}),Dr.addHook("afterSanitizeAttributes",e=>{e instanceof Element&&"A"===e.tagName&&e.hasAttribute(t)&&(e.setAttribute("target",e.getAttribute(t)??""),e.removeAttribute(t),"_blank"===e.getAttribute("target"))&&e.setAttribute("rel","noopener")})}var Mc,Ic,Nc,Dc,Oc,Pc,Bc,Fc,jc,zc,Hc,Uc,qc,Wc,Vc,Gc,Yc,Xc,Kc,Zc,Qc,Jc,eh,th,$,ih,nh,rh,sh,ah,oh,lh,ch,hh=e(()=>{"use strict";Or(),Mc=/<br\s*\/?>/gi,Ic=mt(e=>e?Hc(e).replace(/\\n/g,"#br#").split("#br#"):[""],"getRows"),Nc=(()=>{let e=!1;return()=>{e||(Rc(),e=!0)}})(),mt(Rc,"setupDompurifyHooks"),Dc=mt(e=>(Nc(),Dr.sanitize(e)),"removeScript"),Oc=mt((e,t)=>{return!1!==t.flowchart?.htmlLabels&&("antiscript"===(t=t.securityLevel)||"strict"===t?e=Dc(e):"loose"!==t&&(e=(e=(e=Hc(e)).replace(/</g,"<").replace(/>/g,">")).replace(/=/g,"="),e=zc(e))),e},"sanitizeMore"),Pc=mt((e,t)=>e&&(e=(t.dompurifyConfig?Dr.sanitize(Oc(e,t),t.dompurifyConfig):Dr.sanitize(Oc(e,t),{FORBID_TAGS:["style"]})).toString()),"sanitizeText"),Bc=mt((e,t)=>"string"==typeof e?Pc(e,t):e.flat().map(e=>Pc(e,t)),"sanitizeTextOrArray"),Fc=mt(e=>Mc.test(e),"hasBreaks"),jc=mt(e=>e.split(Mc),"splitBreaks"),zc=mt(e=>e.replace(/#br#/g,"<br/>"),"placeholderToBreak"),Hc=mt(e=>e.replace(Mc,"#br#"),"breakToPlaceholder"),Uc=mt(e=>{let t="";return e&&(t=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,t=CSS.escape(t)),t},"getUrl"),qc=mt(e=>!(!1===e||["false","null","0"].includes(String(e).trim().toLowerCase())),"evaluate"),Wc=mt(function(...e){e=e.filter(e=>!isNaN(e));return Math.max(...e)},"getMax"),Vc=mt(function(...e){e=e.filter(e=>!isNaN(e));return Math.min(...e)},"getMin"),Gc=mt(function(e){var i,n,r=e.split(/(,)/),s=[];for(let t=0;t<r.length;t++){let e=r[t];","===e&&0<t&&t+1<r.length&&(i=r[t-1],n=r[t+1],Xc(i,n))&&(e=i+","+n,t++,s.pop()),s.push(Kc(e))}return s.join("")},"parseGenericTypes"),Yc=mt((e,t)=>Math.max(0,e.split(t).length-1),"countOccurrence"),Xc=mt((e,t)=>{e=Yc(e,"~"),t=Yc(t,"~");return 1===e&&1===t},"shouldCombineSets"),Kc=mt(e=>{let t=Yc(e,"~"),i=!1;if(t<=1)return e;t%2!=0&&e.startsWith("~")&&(e=e.substring(1),i=!0);let n=[...e],r=n.indexOf("~"),s=n.lastIndexOf("~");for(;-1!==r&&-1!==s&&r!==s;)n[r]="<",n[s]=">",r=n.indexOf("~"),s=n.lastIndexOf("~");return i&&n.unshift("~"),n.join("")},"processSet"),Zc=mt(()=>void 0!==window.MathMLElement,"isMathMLSupported"),Qc=/\$\$(.*)\$\$/g,Jc=mt(e=>0<(e.match(Qc)?.length??0),"hasKatex"),eh=mt(async(e,t)=>{e=await th(e,t);t=document.createElement("div"),t.innerHTML=e,t.id="katex-temp",t.style.visibility="hidden",t.style.position="absolute",t.style.top="0",document.querySelector("body")?.insertAdjacentElement("beforeend",t),e={width:t.clientWidth,height:t.clientHeight};return t.remove(),e},"calculateMathMLDimensions"),th=mt(async(e,t)=>{if(!Jc(e))return e;if(!(Zc()||t.legacyMathML||t.forceLegacyMathML))return e.replace(Qc,"MathML is unsupported in this environment.");{let i=(await Promise.resolve().then(()=>(Lc(),Pr)))["default"],n=t.forceLegacyMathML||!Zc()&&t.legacyMathML?"htmlAndMathml":"mathml";return e.split(Mc).map(e=>Jc(e)?`<div style="display: flex; align-items: center; justify-content: center; white-space: nowrap;">${e}</div>`:`<div>${e}</div>`).join("").replace(Qc,(e,t)=>i.renderToString(t,{throwOnError:!0,displayMode:!0,output:n}).replace(/\n/g," ").replace(/<annotation.*<\/annotation>/g,""))}},"renderKatex"),$={getRows:Ic,sanitizeText:Pc,sanitizeTextOrArray:Bc,hasBreaks:Fc,splitBreaks:jc,lineBreakRegex:Mc,removeScript:Dc,getUrl:Uc,evaluate:qc,getMax:Wc,getMin:Vc}}),uh=e(()=>{"use strict";t(),ih=mt(function(e,t){for(var i of t)e.attr(i[0],i[1])},"d3Attrs"),nh=mt(function(e,t,i){var n=new Map;return i?(n.set("width","100%"),n.set("style",`max-width: ${t}px;`)):(n.set("height",e),n.set("width",t)),n},"calculateSvgSizeAttrs"),rh=mt(function(e,t,i,n){t=nh(t,i,n);ih(e,t)},"configureSvgSize"),sh=mt(function(e,t,i,n){var r=t.node().getBBox(),s=r.width,a=r.height,a=(I.info(`SVG bounds: ${s}x`+a,r),I.info("Graph bounds: 0x0",e),I.info(`Calculated bounds: ${e=s+2*i}x`+(s=a+2*i)),rh(t,s,e,n),`${r.x-i} ${r.y-i} ${r.width+2*i} `+(r.height+2*i));t.attr("viewBox",a)},"setupGraphViewbox")}),dh=e(()=>{"use strict";t(),ah={},oh=mt((e,t,i)=>{let n="";return e in ah&&ah[e]?n=ah[e](i):I.warn("No theme found for "+e),` & {
|
||
font-family: ${i.fontFamily};
|
||
font-size: ${i.fontSize};
|
||
fill: ${i.textColor}
|
||
}
|
||
@keyframes edge-animation-frame {
|
||
from {
|
||
stroke-dashoffset: 0;
|
||
}
|
||
}
|
||
@keyframes dash {
|
||
to {
|
||
stroke-dashoffset: 0;
|
||
}
|
||
}
|
||
& .edge-animation-slow {
|
||
stroke-dasharray: 9,5 !important;
|
||
stroke-dashoffset: 900;
|
||
animation: dash 50s linear infinite;
|
||
stroke-linecap: round;
|
||
}
|
||
& .edge-animation-fast {
|
||
stroke-dasharray: 9,5 !important;
|
||
stroke-dashoffset: 900;
|
||
animation: dash 20s linear infinite;
|
||
stroke-linecap: round;
|
||
}
|
||
/* Classes common for multiple diagrams */
|
||
|
||
& .error-icon {
|
||
fill: ${i.errorBkgColor};
|
||
}
|
||
& .error-text {
|
||
fill: ${i.errorTextColor};
|
||
stroke: ${i.errorTextColor};
|
||
}
|
||
|
||
& .edge-thickness-normal {
|
||
stroke-width: 1px;
|
||
}
|
||
& .edge-thickness-thick {
|
||
stroke-width: 3.5px
|
||
}
|
||
& .edge-pattern-solid {
|
||
stroke-dasharray: 0;
|
||
}
|
||
& .edge-thickness-invisible {
|
||
stroke-width: 0;
|
||
fill: none;
|
||
}
|
||
& .edge-pattern-dashed{
|
||
stroke-dasharray: 3;
|
||
}
|
||
.edge-pattern-dotted {
|
||
stroke-dasharray: 2;
|
||
}
|
||
|
||
& .marker {
|
||
fill: ${i.lineColor};
|
||
stroke: ${i.lineColor};
|
||
}
|
||
& .marker.cross {
|
||
stroke: ${i.lineColor};
|
||
}
|
||
|
||
& svg {
|
||
font-family: ${i.fontFamily};
|
||
font-size: ${i.fontSize};
|
||
}
|
||
& p {
|
||
margin: 0
|
||
}
|
||
|
||
${n}
|
||
|
||
${t}
|
||
`},"getStyles"),lh=mt((e,t)=>{void 0!==t&&(ah[e]=t)},"addStylesForDiagram"),ch=oh}),ph={};V(ph,{clear:()=>bh,getAccDescription:()=>kh,getAccTitle:()=>xh,getDiagramTitle:()=>Sh,setAccDescription:()=>wh,setAccTitle:()=>vh,setDiagramTitle:()=>Th});var gh,fh,mh,yh,bh,vh,xh,wh,kh,Th,Sh,_h,Ch,N,Ah,Eh,$h,Lh,Rh,Mh,Ih,Nh,Dh,Oh,Ph,Bh,Fh,jh,zh,Hh,Uh,qh,Wh,Vh,Gh,Yh,Xh,Kh,Zh,Qh,Jh,eu,tu,iu,nu,ru,su,au,ou,lu,cu,hu,uu,du,pu,gu,fu,mu,yu,bu,vu,xu,wu,ku,Tu,Su,_u=e(()=>{"use strict";hh(),Mn(),mh=fh=gh="",yh=mt(e=>Pc(e,Ii()),"sanitizeText"),bh=mt(()=>{fh=mh=gh=""},"clear"),vh=mt(e=>{gh=yh(e).replace(/^\s+/g,"")},"setAccTitle"),xh=mt(()=>gh,"getAccTitle"),wh=mt(e=>{mh=yh(e).replace(/\n\s+/g,`
|
||
`)},"setAccDescription"),kh=mt(()=>mh,"getAccDescription"),Th=mt(e=>{fh=yh(e)},"setDiagramTitle"),Sh=mt(()=>fh,"getDiagramTitle")}),Cu=e(()=>{"use strict";qi(),t(),Mn(),hh(),uh(),dh(),_u(),_h=I,Ch=T,N=Ii,Ah=Mi,Eh=ki,$h=mt(e=>Pc(e,N()),"sanitizeText"),Lh=sh,Rh=mt(()=>ph,"getCommonDb"),Mh={},Ih=mt((e,t,i)=>{Mh[e]&&_h.warn(`Diagram with id ${e} already registered. Overwriting.`),Mh[e]=t,i&&tt(e,i),lh(e,t.styles),t.injectUtils?.(_h,Ch,N,$h,Lh,Rh(),()=>{})},"registerDiagram"),Nh=mt(e=>{if(e in Mh)return Mh[e];throw new Dh(e)},"getDiagram"),Dh=class extends Error{static{mt(this,"DiagramNotFoundError")}constructor(e){super(`Diagram ${e} not found.`)}}}),Au=e(()=>{"use strict";Cu(),hh(),_u(),Oh=[],Ph=[""],jh=[{alias:Bh="global",label:{text:"global"},type:{text:"global"},tags:null,link:null,parentBoundary:Fh=""}],Hh="",Uh=!(zh=[]),qh=4,Wh=2,Gh=mt(function(){return Vh},"getC4Type"),Yh=mt(function(e){Vh=Pc(e,N())},"setC4Type"),Xh=mt(function(i,n,r,s,a,o,l,c,h){if(null!=i&&null!=n&&null!=r&&null!=s){let e={},t=zh.find(e=>e.from===n&&e.to===r);t?e=t:zh.push(e),e.type=i,e.from=n,e.to=r,e.label={text:s},null==a?e.techn={text:""}:"object"==typeof a?([i,s]=Object.entries(a)[0],e[i]={text:s}):e.techn={text:a},null==o?e.descr={text:""}:"object"==typeof o?([i,s]=Object.entries(o)[0],e[i]={text:s}):e.descr={text:o},"object"==typeof l?([a,i]=Object.entries(l)[0],e[a]=i):e.sprite=l,"object"==typeof c?([s,o]=Object.entries(c)[0],e[s]=o):e.tags=c,"object"==typeof h?([a,i]=Object.entries(h)[0],e[a]=i):e.link=h,e.wrap=bu()}},"addRel"),Kh=mt(function(i,n,r,s,a,o,l){if(null!==n&&null!==r){let e={},t=Oh.find(e=>e.alias===n);var c;t&&n===t.alias?e=t:(e.alias=n,Oh.push(e)),e.label=null==r?{text:""}:{text:r},null==s?e.descr={text:""}:"object"==typeof s?([r,c]=Object.entries(s)[0],e[r]={text:c}):e.descr={text:s},"object"==typeof a?([r,c]=Object.entries(a)[0],e[r]=c):e.sprite=a,"object"==typeof o?([s,r]=Object.entries(o)[0],e[s]=r):e.tags=o,"object"==typeof l?([c,a]=Object.entries(l)[0],e[c]=a):e.link=l,e.typeC4Shape={text:i},e.parentBoundary=Bh,e.wrap=bu()}},"addPersonOrSystem"),Zh=mt(function(i,n,r,s,a,o,l,c){if(null!==n&&null!==r){let e={},t=Oh.find(e=>e.alias===n);var h;t&&n===t.alias?e=t:(e.alias=n,Oh.push(e)),e.label=null==r?{text:""}:{text:r},null==s?e.techn={text:""}:"object"==typeof s?([r,h]=Object.entries(s)[0],e[r]={text:h}):e.techn={text:s},null==a?e.descr={text:""}:"object"==typeof a?([r,h]=Object.entries(a)[0],e[r]={text:h}):e.descr={text:a},"object"==typeof o?([s,r]=Object.entries(o)[0],e[s]=r):e.sprite=o,"object"==typeof l?([h,a]=Object.entries(l)[0],e[h]=a):e.tags=l,"object"==typeof c?([s,r]=Object.entries(c)[0],e[s]=r):e.link=c,e.wrap=bu(),e.typeC4Shape={text:i},e.parentBoundary=Bh}},"addContainer"),Qh=mt(function(i,n,r,s,a,o,l,c){if(null!==n&&null!==r){let e={},t=Oh.find(e=>e.alias===n);var h;t&&n===t.alias?e=t:(e.alias=n,Oh.push(e)),e.label=null==r?{text:""}:{text:r},null==s?e.techn={text:""}:"object"==typeof s?([r,h]=Object.entries(s)[0],e[r]={text:h}):e.techn={text:s},null==a?e.descr={text:""}:"object"==typeof a?([r,h]=Object.entries(a)[0],e[r]={text:h}):e.descr={text:a},"object"==typeof o?([s,r]=Object.entries(o)[0],e[s]=r):e.sprite=o,"object"==typeof l?([h,a]=Object.entries(l)[0],e[h]=a):e.tags=l,"object"==typeof c?([s,r]=Object.entries(c)[0],e[s]=r):e.link=c,e.wrap=bu(),e.typeC4Shape={text:i},e.parentBoundary=Bh}},"addComponent"),Jh=mt(function(i,n,r,s,a){if(null!==i&&null!==n){let e={},t=jh.find(e=>e.alias===i);var o;t&&i===t.alias?e=t:(e.alias=i,jh.push(e)),e.label=null==n?{text:""}:{text:n},null==r?e.type={text:"system"}:"object"==typeof r?([n,o]=Object.entries(r)[0],e[n]={text:o}):e.type={text:r},"object"==typeof s?([n,o]=Object.entries(s)[0],e[n]=o):e.tags=s,"object"==typeof a?([r,n]=Object.entries(a)[0],e[r]=n):e.link=a,e.parentBoundary=Bh,e.wrap=bu(),Fh=Bh,Bh=i,Ph.push(Fh)}},"addPersonOrSystemBoundary"),eu=mt(function(i,n,r,s,a){if(null!==i&&null!==n){let e={},t=jh.find(e=>e.alias===i);var o;t&&i===t.alias?e=t:(e.alias=i,jh.push(e)),e.label=null==n?{text:""}:{text:n},null==r?e.type={text:"container"}:"object"==typeof r?([n,o]=Object.entries(r)[0],e[n]={text:o}):e.type={text:r},"object"==typeof s?([n,o]=Object.entries(s)[0],e[n]=o):e.tags=s,"object"==typeof a?([r,n]=Object.entries(a)[0],e[r]=n):e.link=a,e.parentBoundary=Bh,e.wrap=bu(),Fh=Bh,Bh=i,Ph.push(Fh)}},"addContainerBoundary"),tu=mt(function(i,n,r,s,a,e,o,l){if(null!==n&&null!==r){let e={},t=jh.find(e=>e.alias===n);var c;t&&n===t.alias?e=t:(e.alias=n,jh.push(e)),e.label=null==r?{text:""}:{text:r},null==s?e.type={text:"node"}:"object"==typeof s?([r,c]=Object.entries(s)[0],e[r]={text:c}):e.type={text:s},null==a?e.descr={text:""}:"object"==typeof a?([r,c]=Object.entries(a)[0],e[r]={text:c}):e.descr={text:a},"object"==typeof o?([s,r]=Object.entries(o)[0],e[s]=r):e.tags=o,"object"==typeof l?([c,a]=Object.entries(l)[0],e[c]=a):e.link=l,e.nodeType=i,e.parentBoundary=Bh,e.wrap=bu(),Fh=Bh,Bh=n,Ph.push(Fh)}},"addDeploymentNode"),iu=mt(function(){Bh=Fh,Ph.pop(),Fh=Ph.pop(),Ph.push(Fh)},"popBoundaryParseStack"),nu=mt(function(e,t,i,n,r,s,a,o,l,c,h){let u=Oh.find(e=>e.alias===t);var d,p;void 0===u&&void 0===(u=jh.find(e=>e.alias===t))||(null!=i&&("object"==typeof i?([p,d]=Object.entries(i)[0],u[p]=d):u.bgColor=i),null!=n&&("object"==typeof n?([p,d]=Object.entries(n)[0],u[p]=d):u.fontColor=n),null!=r&&("object"==typeof r?([i,p]=Object.entries(r)[0],u[i]=p):u.borderColor=r),null!=s&&("object"==typeof s?([d,n]=Object.entries(s)[0],u[d]=n):u.shadowing=s),null!=a&&("object"==typeof a?([i,p]=Object.entries(a)[0],u[i]=p):u.shape=a),null!=o&&("object"==typeof o?([r,d]=Object.entries(o)[0],u[r]=d):u.sprite=o),null!=l&&("object"==typeof l?([n,s]=Object.entries(l)[0],u[n]=s):u.techn=l),null!=c&&("object"==typeof c?([i,p]=Object.entries(c)[0],u[i]=p):u.legendText=c),null!=h&&("object"==typeof h?([a,r]=Object.entries(h)[0],u[a]=r):u.legendSprite=h))},"updateElStyle"),ru=mt(function(e,t,i,n,r,s,a){var o,l,c=zh.find(e=>e.from===t&&e.to===i);void 0!==c&&(null!=n&&("object"==typeof n?([o,l]=Object.entries(n)[0],c[o]=l):c.textColor=n),null!=r&&("object"==typeof r?([o,l]=Object.entries(r)[0],c[o]=l):c.lineColor=r),null!=s&&("object"==typeof s?([n,o]=Object.entries(s)[0],c[n]=parseInt(o)):c.offsetX=parseInt(s)),null!=a)&&("object"==typeof a?([l,r]=Object.entries(a)[0],c[l]=parseInt(r)):c.offsetY=parseInt(a))},"updateRelStyle"),su=mt(function(e,t,i){let n=qh,r=Wh;var s;n="object"==typeof t?(s=Object.values(t)[0],parseInt(s)):parseInt(t),r="object"==typeof i?(s=Object.values(i)[0],parseInt(s)):parseInt(i),1<=n&&(qh=n),1<=r&&(Wh=r)},"updateLayoutConfig"),au=mt(function(){return qh},"getC4ShapeInRow"),ou=mt(function(){return Wh},"getC4BoundaryInRow"),lu=mt(function(){return Bh},"getCurrentBoundaryParse"),cu=mt(function(){return Fh},"getParentBoundaryParse"),hu=mt(function(t){return null==t?Oh:Oh.filter(e=>e.parentBoundary===t)},"getC4ShapeArray"),uu=mt(function(t){return Oh.find(e=>e.alias===t)},"getC4Shape"),du=mt(function(e){return Object.keys(hu(e))},"getC4ShapeKeys"),pu=mt(function(t){return null==t?jh:jh.filter(e=>e.parentBoundary===t)},"getBoundaries"),gu=pu,fu=mt(function(){return zh},"getRels"),mu=mt(function(){return Hh},"getTitle"),yu=mt(function(e){Uh=e},"setWrap"),bu=mt(function(){return Uh},"autoWrap"),vu=mt(function(){Oh=[],jh=[{alias:"global",label:{text:"global"},type:{text:"global"},tags:null,link:null,parentBoundary:""}],Bh="global",Ph=[Fh=""],zh=[],Uh=!(Ph=[Hh=""]),qh=4,Wh=2},"clear"),xu={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},wu={FILLED:0,OPEN:1},ku={LEFTOF:0,RIGHTOF:1,OVER:2},Tu=mt(function(e){Hh=Pc(e,N())},"setTitle"),Su={addPersonOrSystem:Kh,addPersonOrSystemBoundary:Jh,addContainer:Zh,addContainerBoundary:eu,addComponent:Qh,addDeploymentNode:tu,popBoundaryParseStack:iu,addRel:Xh,updateElStyle:nu,updateRelStyle:ru,updateLayoutConfig:su,autoWrap:bu,setWrap:yu,getC4ShapeArray:hu,getC4Shape:uu,getC4ShapeKeys:du,getBoundaries:pu,getBoundarys:gu,getCurrentBoundaryParse:lu,getParentBoundaryParse:cu,getRels:fu,getTitle:mu,getC4Type:Gh,getC4ShapeInRow:au,getC4BoundaryInRow:ou,setAccTitle:vh,getAccTitle:xh,getAccDescription:kh,setAccDescription:wh,getConfig:mt(()=>N().c4,"getConfig"),clear:vu,LINETYPE:xu,ARROWTYPE:wu,PLACEMENT:ku,setTitle:Tu,setC4Type:Yh}});function Eu(e,t){return null==e||null==t?NaN:e<t?-1:t<e?1:t<=e?0:NaN}var $u=e(()=>{"use strict";mt(Eu,"ascending")});function Lu(e,t){return null==e||null==t?NaN:t<e?-1:e<t?1:e<=t?0:NaN}var Ru=e(()=>{"use strict";mt(Lu,"descending")});function Mu(i){let s,a,r;function o(e,t,i=0,n=e.length){if(i<n){if(0!==s(t,t))return n;do{var r=i+n>>>1;a(e[r],t)<0?i=1+r:n=r}while(i<n)}return i}function e(e,t,i=0,n=e.length){if(i<n){if(0!==s(t,t))return n;do{var r=i+n>>>1;a(e[r],t)<=0?i=1+r:n=r}while(i<n)}return i}function t(e,t,i=0,n=e.length){n=o(e,t,i,n-1);return i<n&&r(e[n-1],t)>-r(e[n],t)?n-1:n}return r=2!==i.length?(s=Eu,a=mt((e,t)=>Eu(i(e),t),"compare2"),mt((e,t)=>i(e)-t,"delta")):(s=i===Eu||i===Lu?i:Iu,a=i),mt(o,"left"),mt(e,"right"),mt(t,"center"),{left:o,center:t,right:e}}function Iu(){return 0}var Nu=e(()=>{"use strict";$u(),Ru(),mt(Mu,"bisector"),mt(Iu,"zero")});function Du(e){return null===e?NaN:+e}var Ou,Pu,Bu,Fu=e(()=>{"use strict";mt(Du,"number")}),ju=e(()=>{"use strict";$u(),Nu(),Fu(),Ou=Mu(Eu),Pu=Ou.right,Ou.left,Mu(Du).center,Bu=Pu});function zu({_intern:e,_key:t},i){t=t(i);return e.has(t)?e.get(t):i}function Hu({_intern:e,_key:t},i){t=t(i);return e.has(t)?e.get(t):(e.set(t,i),i)}function Uu({_intern:e,_key:t},i){t=t(i);return e.has(t)&&(i=e.get(t),e.delete(t)),i}function qu(e){return null!==e&&"object"==typeof e?e.valueOf():e}var Wu,Vu=e(()=>{"use strict";Wu=class extends Map{static{mt(this,"InternMap")}constructor(e,t=qu){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:t}}),null!=e)for(var[i,n]of e)this.set(i,n)}get(e){return super.get(zu(this,e))}has(e){return super.has(zu(this,e))}set(e,t){return super.set(Hu(this,e),t)}delete(e){return super.delete(Uu(this,e))}},mt(zu,"intern_get"),mt(Hu,"intern_set"),mt(Uu,"intern_delete"),mt(qu,"keyof")});function Gu(e,t,i){let n=(t-e)/Math.max(0,i),r=Math.floor(Math.log10(n)),s=n/Math.pow(10,r),a=Zu<=s?10:Qu<=s?5:Ju<=s?2:1,o,l,c;return r<0?(c=Math.pow(10,-r)/a,o=Math.round(e*c),l=Math.round(t*c),o/c<e&&++o,l/c>t&&--l,c=-c):(c=Math.pow(10,r)*a,o=Math.round(e/c),l=Math.round(t/c),o*c<e&&++o,l*c>t&&--l),l<o&&.5<=i&&i<2?Gu(e,t,2*i):[o,l,c]}function Yu(e,t,i){if(!(0<(i=+i)))return[];if((e=+e)===(t=+t))return[e];var n=t<e,[r,s,a]=n?Gu(t,e,i):Gu(e,t,i);if(!(r<=s))return[];var o=s-r+1,l=new Array(o);if(n)if(a<0)for(let e=0;e<o;++e)l[e]=(s-e)/-a;else for(let e=0;e<o;++e)l[e]=(s-e)*a;else if(a<0)for(let e=0;e<o;++e)l[e]=(r+e)/-a;else for(let e=0;e<o;++e)l[e]=(r+e)*a;return l}function Xu(e,t,i){return Gu(e=+e,t=+t,i=+i)[2]}function Ku(e,t,i){i=+i;var n=(t=+t)<(e=+e),e=n?Xu(t,e,i):Xu(e,t,i);return(n?-1:1)*(e<0?1/-e:e)}var Zu,Qu,Ju,ed=e(()=>{"use strict";Zu=Math.sqrt(50),Qu=Math.sqrt(10),Ju=Math.sqrt(2),mt(Gu,"tickSpec"),mt(Yu,"ticks"),mt(Xu,"tickIncrement"),mt(Ku,"tickStep")});function td(t,i){let n;if(void 0===i)for(var e of t)null!=e&&(n<e||void 0===n&&e>=e)&&(n=e);else{let e=-1;for(var r of t)null!=(r=i(r,++e,t))&&(n<r||void 0===n&&r>=r)&&(n=r)}return n}var id=e(()=>{"use strict";mt(td,"max")});function nd(t,i){let n;if(void 0===i)for(var e of t)null!=e&&(n>e||void 0===n&&e>=e)&&(n=e);else{let e=-1;for(var r of t)null!=(r=i(r,++e,t))&&(n>r||void 0===n&&r>=r)&&(n=r)}return n}var rd=e(()=>{"use strict";mt(nd,"min")});function sd(e,t,i){e=+e,t=+t,i=(r=arguments.length)<2?(t=e,e=0,1):r<3?1:+i;for(var n=-1,r=0|Math.max(0,Math.ceil((t-e)/i)),s=new Array(r);++n<r;)s[n]=e+n*i;return s}var ad=e(()=>{"use strict";mt(sd,"range")}),od=e(()=>{"use strict";ju(),Nu(),id(),rd(),ad(),ed(),Vu()});function ld(e){return e}var cd=e(()=>{"use strict";mt(ld,"default")});function hd(e){return"translate("+e+",0)"}function ud(e){return"translate(0,"+e+")"}function dd(t){return e=>+t(e)}function pd(t,i){return i=Math.max(0,t.bandwidth()-2*i)/2,t.round()&&(i=Math.round(i)),e=>+t(e)+i}function gd(){return!this.__axis}function fd(p,g){var f=[],m=null,y=null,b=6,v=6,x=3,w=typeof window<"u"&&1<window.devicePixelRatio?0:.5,k=p===bd||4===p?-1:1,T=4===p||2===p?"x":"y",S=p===bd||p===vd?hd:ud;function t(e){var t=m??(g.ticks?g.ticks.apply(g,f):g.domain()),i=y??(g.tickFormat?g.tickFormat.apply(g,f):ld),n=Math.max(b,0)+x,r=g.range(),s=+r[0]+w,r=+r[r.length-1]+w,a=(g.bandwidth?pd:dd)(g.copy(),w),o=e.selection?e.selection():e,l=o.selectAll(".domain").data([null]),c=(t=o.selectAll(".tick").data(t,g).order()).exit(),h=t.enter().append("g").attr("class","tick"),u=t.select("line"),d=t.select("text"),l=l.merge(l.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),t=t.merge(h),u=u.merge(h.append("line").attr("stroke","currentColor").attr(T+"2",k*b)),d=d.merge(h.append("text").attr("fill","currentColor").attr(T,k*n).attr("dy",p===bd?"0em":p===vd?"0.71em":"0.32em"));e!==o&&(l=l.transition(e),t=t.transition(e),u=u.transition(e),d=d.transition(e),c=c.transition(e).attr("opacity",1e-6).attr("transform",function(e){return isFinite(e=a(e))?S(e+w):this.getAttribute("transform")}),h.attr("opacity",1e-6).attr("transform",function(e){var t=this.parentNode.__axis;return S((t&&isFinite(t=t(e))?t:a(e))+w)})),c.remove(),l.attr("d",4===p||2===p?v?"M"+k*v+","+s+"H"+w+"V"+r+"H"+k*v:"M"+w+","+s+"V"+r:v?"M"+s+","+k*v+"V"+w+"H"+r+"V"+k*v:"M"+s+","+w+"H"+r),t.attr("opacity",1).attr("transform",function(e){return S(a(e)+w)}),u.attr(T+"2",k*b),d.attr(T,k*n).text(i),o.filter(gd).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",2===p?"start":4===p?"end":"middle"),o.each(function(){this.__axis=a})}return mt(t,"axis"),t.scale=function(e){return arguments.length?(g=e,t):g},t.ticks=function(){return f=Array.from(arguments),t},t.tickArguments=function(e){return arguments.length?(f=null==e?[]:Array.from(e),t):f.slice()},t.tickValues=function(e){return arguments.length?(m=null==e?null:Array.from(e),t):m&&m.slice()},t.tickFormat=function(e){return arguments.length?(y=e,t):y},t.tickSize=function(e){return arguments.length?(b=v=+e,t):b},t.tickSizeInner=function(e){return arguments.length?(b=+e,t):b},t.tickSizeOuter=function(e){return arguments.length?(v=+e,t):v},t.tickPadding=function(e){return arguments.length?(x=+e,t):x},t.offset=function(e){return arguments.length?(w=+e,t):w},t}function md(e){return fd(bd,e)}function yd(e){return fd(vd,e)}var bd,vd,xd=e(()=>{"use strict";cd(),bd=1,vd=3,mt(hd,"translateX"),mt(ud,"translateY"),mt(dd,"number"),mt(pd,"center"),mt(gd,"entering"),mt(fd,"axis"),mt(md,"axisTop"),mt(yd,"axisBottom")}),wd=e(()=>{"use strict";xd()});function kd(){for(var e,t=0,i=arguments.length,n={};t<i;++t){if(!(e=arguments[t]+"")||e in n||/[\s.]/.test(e))throw new Error("illegal type: "+e);n[e]=[]}return new Td(n)}function Td(e){this._=e}function Sd(e,n){return e.trim().split(/^|\s+/).map(function(e){var t="",i=e.indexOf(".");if(0<=i&&(t=e.slice(i+1),e=e.slice(0,i)),e&&!n.hasOwnProperty(e))throw new Error("unknown type: "+e);return{type:e,name:t}})}function _d(e,t){for(var i,n=0,r=e.length;n<r;++n)if((i=e[n]).name===t)return i.value}function Cd(e,t,i){for(var n=0,r=e.length;n<r;++n)if(e[n].name===t){e[n]=Ad,e=e.slice(0,n).concat(e.slice(n+1));break}return null!=i&&e.push({name:t,value:i}),e}var Ad,Ed,$d,Ld,Rd=e(()=>{"use strict";Ad={value:mt(()=>{},"value")},mt(kd,"dispatch"),mt(Td,"Dispatch"),mt(Sd,"parseTypenames"),Td.prototype=kd.prototype={constructor:Td,on:mt(function(e,t){var i,n=this._,r=Sd(e+"",n),s=-1,a=r.length;if(!(arguments.length<2)){if(null!=t&&"function"!=typeof t)throw new Error("invalid callback: "+t);for(;++s<a;)if(i=(e=r[s]).type)n[i]=Cd(n[i],e.name,t);else if(null==t)for(i in n)n[i]=Cd(n[i],e.name,null);return this}for(;++s<a;)if(i=(i=(e=r[s]).type)&&_d(n[i],e.name))return i},"on"),copy:mt(function(){var e,t={},i=this._;for(e in i)t[e]=i[e].slice();return new Td(t)},"copy"),call:mt(function(e,t){if(0<(i=arguments.length-2))for(var i,n,r=new Array(i),s=0;s<i;++s)r[s]=arguments[s+2];if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(s=0,i=(n=this._[e]).length;s<i;++s)n[s].value.apply(t,r)},"call"),apply:mt(function(e,t,i){if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(var n=this._[e],r=0,s=n.length;r<s;++r)n[r].value.apply(t,i)},"apply")},mt(_d,"get"),mt(Cd,"set"),Ed=kd}),Md=e(()=>{"use strict";Rd()}),Id=e(()=>{"use strict";Ld={svg:"http://www.w3.org/2000/svg",xhtml:$d="http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"}});function Nd(e){var t=e+="",i=t.indexOf(":");return 0<=i&&"xmlns"!==(t=e.slice(0,i))&&(e=e.slice(i+1)),Ld.hasOwnProperty(t)?{space:Ld[t],local:e}:e}var Dd=e(()=>{"use strict";Id(),mt(Nd,"default")});function Od(i){return function(){var e=this.ownerDocument,t=this.namespaceURI;return t===$d&&e.documentElement.namespaceURI===$d?e.createElement(i):e.createElementNS(t,i)}}function Pd(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function Bd(e){e=Nd(e);return(e.local?Pd:Od)(e)}var Fd=e(()=>{"use strict";Dd(),Id(),mt(Od,"creatorInherit"),mt(Pd,"creatorFixed"),mt(Bd,"default")});function jd(){}function zd(e){return null==e?jd:function(){return this.querySelector(e)}}var Hd=e(()=>{"use strict";mt(jd,"none"),mt(zd,"default")});function Ud(e){"function"!=typeof e&&(e=zd(e));for(var t=this._groups,i=t.length,n=new Array(i),r=0;r<i;++r)for(var s,a,o=t[r],l=o.length,c=n[r]=new Array(l),h=0;h<l;++h)(s=o[h])&&(a=e.call(s,s.__data__,h,o))&&("__data__"in s&&(a.__data__=s.__data__),c[h]=a);return new m0(n,this._parents)}var qd=e(()=>{"use strict";w0(),Hd(),mt(Ud,"default")});function Wd(e){return null==e?[]:Array.isArray(e)?e:Array.from(e)}var Vd=e(()=>{"use strict";mt(Wd,"array")});function Gd(){return[]}function Yd(e){return null==e?Gd:function(){return this.querySelectorAll(e)}}var Xd=e(()=>{"use strict";mt(Gd,"empty"),mt(Yd,"default")});function Kd(e){return function(){return Wd(e.apply(this,arguments))}}function Zd(e){e=("function"==typeof e?Kd:Yd)(e);for(var t=this._groups,i=t.length,n=[],r=[],s=0;s<i;++s)for(var a,o=t[s],l=o.length,c=0;c<l;++c)(a=o[c])&&(n.push(e.call(a,a.__data__,c,o)),r.push(a));return new m0(n,r)}var Qd=e(()=>{"use strict";w0(),Vd(),Xd(),mt(Kd,"arrayAll"),mt(Zd,"default")});function Jd(e){return function(){return this.matches(e)}}function ep(t){return function(e){return e.matches(t)}}var tp=e(()=>{"use strict";mt(Jd,"default"),mt(ep,"childMatcher")});function ip(e){return function(){return sp.call(this.children,e)}}function np(){return this.firstElementChild}function rp(e){return this.select(null==e?np:ip("function"==typeof e?e:ep(e)))}var sp,ap=e(()=>{"use strict";tp(),sp=Array.prototype.find,mt(ip,"childFind"),mt(np,"childFirst"),mt(rp,"default")});function op(){return Array.from(this.children)}function lp(e){return function(){return hp.call(this.children,e)}}function cp(e){return this.selectAll(null==e?op:lp("function"==typeof e?e:ep(e)))}var hp,up=e(()=>{"use strict";tp(),hp=Array.prototype.filter,mt(op,"children"),mt(lp,"childrenFilter"),mt(cp,"default")});function dp(e){"function"!=typeof e&&(e=Jd(e));for(var t=this._groups,i=t.length,n=new Array(i),r=0;r<i;++r)for(var s,a=t[r],o=a.length,l=n[r]=[],c=0;c<o;++c)(s=a[c])&&e.call(s,s.__data__,c,a)&&l.push(s);return new m0(n,this._parents)}var pp=e(()=>{"use strict";w0(),tp(),mt(dp,"default")});function gp(e){return new Array(e.length)}var fp=e(()=>{"use strict";mt(gp,"default")});function mp(){return new m0(this._enter||this._groups.map(gp),this._parents)}function yp(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}var bp=e(()=>{"use strict";fp(),w0(),mt(mp,"default"),mt(yp,"EnterNode"),yp.prototype={constructor:yp,appendChild:mt(function(e){return this._parent.insertBefore(e,this._next)},"appendChild"),insertBefore:mt(function(e,t){return this._parent.insertBefore(e,t)},"insertBefore"),querySelector:mt(function(e){return this._parent.querySelector(e)},"querySelector"),querySelectorAll:mt(function(e){return this._parent.querySelectorAll(e)},"querySelectorAll")}});function vp(e){return function(){return e}}var xp=e(()=>{"use strict";mt(vp,"default")});function wp(e,t,i,n,r,s){for(var a,o=0,l=t.length,c=s.length;o<c;++o)(a=t[o])?(a.__data__=s[o],n[o]=a):i[o]=new yp(e,s[o]);for(;o<l;++o)(a=t[o])&&(r[o]=a)}function kp(e,t,i,n,r,s,a){for(var o,l,c=new Map,h=t.length,u=s.length,d=new Array(h),p=0;p<h;++p)(o=t[p])&&(d[p]=l=a.call(o,o.__data__,p,t)+"",c.has(l)?r[p]=o:c.set(l,o));for(p=0;p<u;++p)l=a.call(e,s[p],p,s)+"",(o=c.get(l))?((n[p]=o).__data__=s[p],c.delete(l)):i[p]=new yp(e,s[p]);for(p=0;p<h;++p)(o=t[p])&&c.get(d[p])===o&&(r[p]=o)}function Tp(e){return e.__data__}function Sp(e,t){if(!arguments.length)return Array.from(this,Tp);var i=t?kp:wp,n=this._parents,r=this._groups;"function"!=typeof e&&(e=vp(e));for(var s=r.length,a=new Array(s),o=new Array(s),l=new Array(s),c=0;c<s;++c){var h=n[c],u=r[c],d=u.length,p=_p(e.call(h,h&&h.__data__,c,n)),g=p.length,f=o[c]=new Array(g),m=a[c]=new Array(g);i(h,u,f,m,l[c]=new Array(d),p,t);for(var y,b,v=0,x=0;v<g;++v)if(y=f[v]){for(x<=v&&(x=v+1);!(b=m[x])&&++x<g;);y._next=b||null}}return(a=new m0(a,n))._enter=o,a._exit=l,a}function _p(e){return"object"==typeof e&&"length"in e?e:Array.from(e)}var Cp=e(()=>{"use strict";w0(),bp(),xp(),mt(wp,"bindIndex"),mt(kp,"bindKey"),mt(Tp,"datum"),mt(Sp,"default"),mt(_p,"arraylike")});function Ap(){return new m0(this._exit||this._groups.map(gp),this._parents)}var Ep=e(()=>{"use strict";fp(),w0(),mt(Ap,"default")});function $p(e,t,i){var n=this.enter(),r=this,s=this.exit(),n="function"==typeof e?(n=e(n))&&n.selection():n.append(e+"");return null!=t&&(r=(r=t(r))&&r.selection()),null==i?s.remove():i(s),n&&r?n.merge(r).order():r}var Lp=e(()=>{"use strict";mt($p,"default")});function Rp(e){for(var e=e.selection?e.selection():e,t=this._groups,i=e._groups,n=t.length,e=i.length,r=Math.min(n,e),s=new Array(n),a=0;a<r;++a)for(var o,l=t[a],c=i[a],h=l.length,u=s[a]=new Array(h),d=0;d<h;++d)(o=l[d]||c[d])&&(u[d]=o);for(;a<n;++a)s[a]=t[a];return new m0(s,this._parents)}var Mp=e(()=>{"use strict";w0(),mt(Rp,"default")});function Ip(){for(var e=this._groups,t=-1,i=e.length;++t<i;)for(var n,r=e[t],s=r.length-1,a=r[s];0<=--s;)(n=r[s])&&(a&&4^n.compareDocumentPosition(a)&&a.parentNode.insertBefore(n,a),a=n);return this}var Np=e(()=>{"use strict";mt(Ip,"default")});function Dp(i){function e(e,t){return e&&t?i(e.__data__,t.__data__):!e-!t}i=i||Op,mt(e,"compareNode");for(var t=this._groups,n=t.length,r=new Array(n),s=0;s<n;++s){for(var a,o=t[s],l=o.length,c=r[s]=new Array(l),h=0;h<l;++h)(a=o[h])&&(c[h]=a);c.sort(e)}return new m0(r,this._parents).order()}function Op(e,t){return e<t?-1:t<e?1:t<=e?0:NaN}var Pp=e(()=>{"use strict";w0(),mt(Dp,"default"),mt(Op,"ascending")});function Bp(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this}var Fp=e(()=>{"use strict";mt(Bp,"default")});function jp(){return Array.from(this)}var zp=e(()=>{"use strict";mt(jp,"default")});function Hp(){for(var e=this._groups,t=0,i=e.length;t<i;++t)for(var n=e[t],r=0,s=n.length;r<s;++r){var a=n[r];if(a)return a}return null}var Up=e(()=>{"use strict";mt(Hp,"default")});function qp(){let e=0;for(var t of this)++e;return e}var Wp=e(()=>{"use strict";mt(qp,"default")});function Vp(){return!this.node()}var Gp=e(()=>{"use strict";mt(Vp,"default")});function Yp(e){for(var t=this._groups,i=0,n=t.length;i<n;++i)for(var r,s=t[i],a=0,o=s.length;a<o;++a)(r=s[a])&&e.call(r,r.__data__,a,s);return this}var Xp=e(()=>{"use strict";mt(Yp,"default")});function Kp(e){return function(){this.removeAttribute(e)}}function Zp(e){return function(){this.removeAttributeNS(e.space,e.local)}}function Qp(e,t){return function(){this.setAttribute(e,t)}}function Jp(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function eg(t,i){return function(){var e=i.apply(this,arguments);null==e?this.removeAttribute(t):this.setAttribute(t,e)}}function tg(t,i){return function(){var e=i.apply(this,arguments);null==e?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,e)}}function ig(e,t){var i,n=Nd(e);return arguments.length<2?(i=this.node(),n.local?i.getAttributeNS(n.space,n.local):i.getAttribute(n)):this.each((null==t?n.local?Zp:Kp:"function"==typeof t?n.local?tg:eg:n.local?Jp:Qp)(n,t))}var ng=e(()=>{"use strict";Dd(),mt(Kp,"attrRemove"),mt(Zp,"attrRemoveNS"),mt(Qp,"attrConstant"),mt(Jp,"attrConstantNS"),mt(eg,"attrFunction"),mt(tg,"attrFunctionNS"),mt(ig,"default")});function rg(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}var sg=e(()=>{"use strict";mt(rg,"default")});function ag(e){return function(){this.style.removeProperty(e)}}function og(e,t,i){return function(){this.style.setProperty(e,t,i)}}function lg(t,i,n){return function(){var e=i.apply(this,arguments);null==e?this.style.removeProperty(t):this.style.setProperty(t,e,n)}}function cg(e,t,i){return 1<arguments.length?this.each((null==t?ag:"function"==typeof t?lg:og)(e,t,i??"")):hg(this.node(),e)}function hg(e,t){return e.style.getPropertyValue(t)||rg(e).getComputedStyle(e,null).getPropertyValue(t)}var ug=e(()=>{"use strict";sg(),mt(ag,"styleRemove"),mt(og,"styleConstant"),mt(lg,"styleFunction"),mt(cg,"default"),mt(hg,"styleValue")});function dg(e){return function(){delete this[e]}}function pg(e,t){return function(){this[e]=t}}function gg(t,i){return function(){var e=i.apply(this,arguments);null==e?delete this[t]:this[t]=e}}function fg(e,t){return 1<arguments.length?this.each((null==t?dg:"function"==typeof t?gg:pg)(e,t)):this.node()[e]}var mg=e(()=>{"use strict";mt(dg,"propertyRemove"),mt(pg,"propertyConstant"),mt(gg,"propertyFunction"),mt(fg,"default")});function yg(e){return e.trim().split(/^|\s+/)}function bg(e){return e.classList||new vg(e)}function vg(e){this._node=e,this._names=yg(e.getAttribute("class")||"")}function xg(e,t){for(var i=bg(e),n=-1,r=t.length;++n<r;)i.add(t[n])}function wg(e,t){for(var i=bg(e),n=-1,r=t.length;++n<r;)i.remove(t[n])}function kg(e){return function(){xg(this,e)}}function Tg(e){return function(){wg(this,e)}}function Sg(e,t){return function(){(t.apply(this,arguments)?xg:wg)(this,e)}}function _g(e,t){var i=yg(e+"");if(arguments.length<2){for(var n=bg(this.node()),r=-1,s=i.length;++r<s;)if(!n.contains(i[r]))return!1;return!0}return this.each(("function"==typeof t?Sg:t?kg:Tg)(i,t))}var Cg=e(()=>{"use strict";mt(yg,"classArray"),mt(bg,"classList"),mt(vg,"ClassList"),vg.prototype={add:mt(function(e){this._names.indexOf(e)<0&&(this._names.push(e),this._node.setAttribute("class",this._names.join(" ")))},"add"),remove:mt(function(e){e=this._names.indexOf(e);0<=e&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},"remove"),contains:mt(function(e){return 0<=this._names.indexOf(e)},"contains")},mt(xg,"classedAdd"),mt(wg,"classedRemove"),mt(kg,"classedTrue"),mt(Tg,"classedFalse"),mt(Sg,"classedFunction"),mt(_g,"default")});function Ag(){this.textContent=""}function Eg(e){return function(){this.textContent=e}}function $g(t){return function(){var e=t.apply(this,arguments);this.textContent=e??""}}function Lg(e){return arguments.length?this.each(null==e?Ag:("function"==typeof e?$g:Eg)(e)):this.node().textContent}var Rg=e(()=>{"use strict";mt(Ag,"textRemove"),mt(Eg,"textConstant"),mt($g,"textFunction"),mt(Lg,"default")});function Mg(){this.innerHTML=""}function Ig(e){return function(){this.innerHTML=e}}function Ng(t){return function(){var e=t.apply(this,arguments);this.innerHTML=e??""}}function Dg(e){return arguments.length?this.each(null==e?Mg:("function"==typeof e?Ng:Ig)(e)):this.node().innerHTML}var Og=e(()=>{"use strict";mt(Mg,"htmlRemove"),mt(Ig,"htmlConstant"),mt(Ng,"htmlFunction"),mt(Dg,"default")});function Pg(){this.nextSibling&&this.parentNode.appendChild(this)}function Bg(){return this.each(Pg)}var Fg=e(()=>{"use strict";mt(Pg,"raise"),mt(Bg,"default")});function jg(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function zg(){return this.each(jg)}var Hg=e(()=>{"use strict";mt(jg,"lower"),mt(zg,"default")});function Ug(e){var t="function"==typeof e?e:Bd(e);return this.select(function(){return this.appendChild(t.apply(this,arguments))})}var qg=e(()=>{"use strict";Fd(),mt(Ug,"default")});function Wg(){return null}function Vg(e,t){var i="function"==typeof e?e:Bd(e),n=null==t?Wg:"function"==typeof t?t:zd(t);return this.select(function(){return this.insertBefore(i.apply(this,arguments),n.apply(this,arguments)||null)})}var Gg=e(()=>{"use strict";Fd(),Hd(),mt(Wg,"constantNull"),mt(Vg,"default")});function Yg(){var e=this.parentNode;e&&e.removeChild(this)}function Xg(){return this.each(Yg)}var Kg=e(()=>{"use strict";mt(Yg,"remove"),mt(Xg,"default")});function Zg(){var e=this.cloneNode(!1),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function Qg(){var e=this.cloneNode(!0),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function Jg(e){return this.select(e?Qg:Zg)}var e0=e(()=>{"use strict";mt(Zg,"selection_cloneShallow"),mt(Qg,"selection_cloneDeep"),mt(Jg,"default")});function t0(e){return arguments.length?this.property("__data__",e):this.node().__data__}var i0=e(()=>{"use strict";mt(t0,"default")});function n0(t){return function(e){t.call(this,e,this.__data__)}}function r0(e){return e.trim().split(/^|\s+/).map(function(e){var t="",i=e.indexOf(".");return 0<=i&&(t=e.slice(i+1),e=e.slice(0,i)),{type:e,name:t}})}function s0(s){return function(){var e=this.__on;if(e){for(var t,i=0,n=-1,r=e.length;i<r;++i)t=e[i],s.type&&t.type!==s.type||t.name!==s.name?e[++n]=t:this.removeEventListener(t.type,t.listener,t.options);++n?e.length=n:delete this.__on}}}function a0(s,a,o){return function(){var e,t=this.__on,i=n0(a);if(t)for(var n=0,r=t.length;n<r;++n)if((e=t[n]).type===s.type&&e.name===s.name)return this.removeEventListener(e.type,e.listener,e.options),this.addEventListener(e.type,e.listener=i,e.options=o),void(e.value=a);this.addEventListener(s.type,i,o),e={type:s.type,name:s.name,value:a,listener:i,options:o},t?t.push(e):this.__on=[e]}}function o0(e,t,i){var n,r,s=r0(e+""),a=s.length;if(!(arguments.length<2)){for(o=t?a0:s0,n=0;n<a;++n)this.each(o(s[n],t,i));return this}var o=this.node().__on;if(o)for(var l,c=0,h=o.length;c<h;++c)for(n=0,l=o[c];n<a;++n)if((r=s[n]).type===l.type&&r.name===l.name)return l.value}var l0=e(()=>{"use strict";mt(n0,"contextListener"),mt(r0,"parseTypenames"),mt(s0,"onRemove"),mt(a0,"onAdd"),mt(o0,"default")});function c0(e,t,i){var n=rg(e),r=n.CustomEvent;"function"==typeof r?r=new r(t,i):(r=n.document.createEvent("Event"),i?(r.initEvent(t,i.bubbles,i.cancelable),r.detail=i.detail):r.initEvent(t,!1,!1)),e.dispatchEvent(r)}function h0(e,t){return function(){return c0(this,e,t)}}function u0(e,t){return function(){return c0(this,e,t.apply(this,arguments))}}function d0(e,t){return this.each(("function"==typeof t?u0:h0)(e,t))}var p0=e(()=>{"use strict";sg(),mt(c0,"dispatchEvent"),mt(h0,"dispatchConstant"),mt(u0,"dispatchFunction"),mt(d0,"default")});function*g0(){for(var e=this._groups,t=0,i=e.length;t<i;++t)for(var n,r=e[t],s=0,a=r.length;s<a;++s)(n=r[s])&&(yield n)}var f0=e(()=>{"use strict";mt(g0,"default")});function m0(e,t){this._groups=e,this._parents=t}function y0(){return new m0([[document.documentElement]],v0)}function b0(){return this}var v0,x0,w0=e(()=>{"use strict";qd(),Qd(),ap(),up(),pp(),Cp(),bp(),Ep(),Lp(),Mp(),Np(),Pp(),Fp(),zp(),Up(),Wp(),Gp(),Xp(),ng(),ug(),mg(),Cg(),Rg(),Og(),Fg(),Hg(),qg(),Gg(),Kg(),e0(),i0(),l0(),p0(),f0(),v0=[null],mt(m0,"Selection"),mt(y0,"selection"),mt(b0,"selection_selection"),m0.prototype=y0.prototype={constructor:m0,select:Ud,selectAll:Zd,selectChild:rp,selectChildren:cp,filter:dp,data:Sp,enter:mp,exit:Ap,join:$p,merge:Rp,selection:b0,order:Ip,sort:Dp,call:Bp,nodes:jp,node:Hp,size:qp,empty:Vp,each:Yp,attr:ig,style:cg,property:fg,classed:_g,text:Lg,html:Dg,raise:Bg,lower:zg,append:Ug,insert:Vg,remove:Xg,clone:Jg,datum:t0,on:o0,dispatch:d0,[Symbol.iterator]:g0},x0=y0});function G(e){return"string"==typeof e?new m0([[document.querySelector(e)]],[document.documentElement]):new m0([[e]],v0)}var k0=e(()=>{"use strict";w0(),mt(G,"default")}),T0=e(()=>{"use strict";tp(),Dd(),k0(),w0(),Hd(),Xd(),ug()}),S0=e(()=>{});function _0(e,t,i){(e.prototype=t.prototype=i).constructor=e}function C0(e,t){var i,n=Object.create(e.prototype);for(i in t)n[i]=t[i];return n}var A0=e(()=>{"use strict";mt(_0,"default"),mt(C0,"extend")});function E0(){}function $0(){return this.rgb().formatHex()}function L0(){return this.rgb().formatHex8()}function R0(){return V0(this).formatHsl()}function M0(){return this.rgb().formatRgb()}function I0(e){var t,i;return e=(e+"").trim().toLowerCase(),(t=tf.exec(e))?(i=t[1].length,t=parseInt(t[1],16),6===i?N0(t):3===i?new B0(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===i?D0(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===i?D0(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=nf.exec(e))?new B0(t[1],t[2],t[3],1):(t=rf.exec(e))?new B0(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=sf.exec(e))?D0(t[1],t[2],t[3],t[4]):(t=af.exec(e))?D0(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=of.exec(e))?W0(t[1],t[2]/100,t[3]/100,1):(t=lf.exec(e))?W0(t[1],t[2]/100,t[3]/100,t[4]):cf.hasOwnProperty(e)?N0(cf[e]):"transparent"===e?new B0(NaN,NaN,NaN,0):null}function N0(e){return new B0(e>>16&255,e>>8&255,255&e,1)}function D0(e,t,i,n){return new B0(e=n<=0?t=i=NaN:e,t,i,n)}function O0(e){return(e=e instanceof E0?e:I0(e))?new B0((e=e.rgb()).r,e.g,e.b,e.opacity):new B0}function P0(e,t,i,n){return 1===arguments.length?O0(e):new B0(e,t,i,n??1)}function B0(e,t,i,n){this.r=+e,this.g=+t,this.b=+i,this.opacity=+n}function F0(){return"#"+q0(this.r)+q0(this.g)+q0(this.b)}function j0(){return"#"+q0(this.r)+q0(this.g)+q0(this.b)+q0(255*(isNaN(this.opacity)?1:this.opacity))}function z0(){var e=H0(this.opacity);return(1===e?"rgb(":"rgba(")+U0(this.r)+`, ${U0(this.g)}, `+U0(this.b)+(1===e?")":`, ${e})`)}function H0(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function U0(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function q0(e){return((e=U0(e))<16?"0":"")+e.toString(16)}function W0(e,t,i,n){return n<=0?e=t=i=NaN:i<=0||1<=i?e=t=NaN:t<=0&&(e=NaN),new Y0(e,t,i,n)}function V0(e){var t,i,n,r,s,a,o,l;return e instanceof Y0?new Y0(e.h,e.s,e.l,e.opacity):(e=e instanceof E0?e:I0(e))?e instanceof Y0?e:(t=(e=e.rgb()).r/255,i=e.g/255,n=e.b/255,r=Math.min(t,i,n),a=NaN,l=((s=Math.max(t,i,n))+r)/2,(o=s-r)?(a=t===s?(i-n)/o+6*(i<n):i===s?(n-t)/o+2:(t-i)/o+4,o/=l<.5?s+r:2-s-r,a*=60):o=0<l&&l<1?0:a,new Y0(a,o,l,e.opacity)):new Y0}function G0(e,t,i,n){return 1===arguments.length?V0(e):new Y0(e,t,i,n??1)}function Y0(e,t,i,n){this.h=+e,this.s=+t,this.l=+i,this.opacity=+n}function X0(e){return(e=(e||0)%360)<0?e+360:e}function K0(e){return Math.max(0,Math.min(1,e||0))}function Z0(e,t,i){return 255*(e<60?t+(i-t)*e/60:e<180?i:e<240?t+(i-t)*(240-e)/60:t)}var Q0,J0,ef,tf,nf,rf,sf,af,of,lf,cf,hf,uf,df=e(()=>{"use strict";A0(),mt(E0,"Color"),0,Q0="\\s*([+-]?\\d+)\\s*",J0="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",ef="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",tf=/^#([0-9a-f]{3,8})$/,nf=new RegExp(`^rgb\\(${Q0},${Q0},${Q0}\\)$`),rf=new RegExp(`^rgb\\(${ef},${ef},${ef}\\)$`),sf=new RegExp(`^rgba\\(${Q0},${Q0},${Q0},${J0}\\)$`),af=new RegExp(`^rgba\\(${ef},${ef},${ef},${J0}\\)$`),of=new RegExp(`^hsl\\(${J0},${ef},${ef}\\)$`),lf=new RegExp(`^hsla\\(${J0},${ef},${ef},${J0}\\)$`),cf={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},_0(E0,I0,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:$0,formatHex:$0,formatHex8:L0,formatHsl:R0,formatRgb:M0,toString:M0}),mt($0,"color_formatHex"),mt(L0,"color_formatHex8"),mt(R0,"color_formatHsl"),mt(M0,"color_formatRgb"),mt(I0,"color"),mt(N0,"rgbn"),mt(D0,"rgba"),mt(O0,"rgbConvert"),mt(P0,"rgb"),mt(B0,"Rgb"),_0(B0,P0,C0(E0,{brighter(e){return e=null==e?1/.7:Math.pow(1/.7,e),new B0(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new B0(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new B0(U0(this.r),U0(this.g),U0(this.b),H0(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:F0,formatHex:F0,formatHex8:j0,formatRgb:z0,toString:z0})),mt(F0,"rgb_formatHex"),mt(j0,"rgb_formatHex8"),mt(z0,"rgb_formatRgb"),mt(H0,"clampa"),mt(U0,"clampi"),mt(q0,"hex"),mt(W0,"hsla"),mt(V0,"hslConvert"),mt(G0,"hsl"),mt(Y0,"Hsl"),_0(Y0,G0,C0(E0,{brighter(e){return e=null==e?1/.7:Math.pow(1/.7,e),new Y0(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new Y0(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,i=this.l,t=i+(i<.5?i:1-i)*t,i=2*i-t;return new B0(Z0(240<=e?e-240:120+e,i,t),Z0(e,i,t),Z0(e<120?240+e:e-120,i,t),this.opacity)},clamp(){return new Y0(X0(this.h),K0(this.s),K0(this.l),H0(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){var e=H0(this.opacity);return(1===e?"hsl(":"hsla(")+X0(this.h)+`, ${100*K0(this.s)}%, ${100*K0(this.l)}%`+(1===e?")":`, ${e})`)}})),mt(X0,"clamph"),mt(K0,"clampt"),mt(Z0,"hsl2rgb")}),pf=e(()=>{"use strict";hf=Math.PI/180,uf=180/Math.PI});function gf(e){var t,i,n,r,s,a;return e instanceof mf?new mf(e.l,e.a,e.b,e.opacity):e instanceof Tf?Sf(e):(r=yf(.2225045*(t=xf((e=e instanceof B0?e:O0(e)).r))+.7168786*(i=xf(e.g))+.0606169*(n=xf(e.b))),t===i&&i===n?s=a=r:(s=yf((.4360747*t+.3850649*i+.1430804*n)/.96422),a=yf((.0139322*t+.0971045*i+.7141733*n)/.82521)),new mf(116*r-16,500*(s-r),200*(r-a),e.opacity))}function ff(e,t,i,n){return 1===arguments.length?gf(e):new mf(e,t,i,n??1)}function mf(e,t,i,n){this.l=+e,this.a=+t,this.b=+i,this.opacity=+n}function yf(e){return Af<e?Math.pow(e,1/3):e/Cf+_f}function bf(e){return 6/29<e?e*e*e:Cf*(e-_f)}function vf(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function xf(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function wf(e){var t;return e instanceof Tf?new Tf(e.h,e.c,e.l,e.opacity):0===(e=e instanceof mf?e:gf(e)).a&&0===e.b?new Tf(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity):new Tf((t=Math.atan2(e.b,e.a)*uf)<0?360+t:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}function kf(e,t,i,n){return 1===arguments.length?wf(e):new Tf(e,t,i,n??1)}function Tf(e,t,i,n){this.h=+e,this.c=+t,this.l=+i,this.opacity=+n}function Sf(e){var t;return isNaN(e.h)?new mf(e.l,0,0,e.opacity):(t=e.h*hf,new mf(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity))}var _f,Cf,Af,Ef=e(()=>{"use strict";A0(),df(),pf(),_f=4/29,Cf=6/29*3*(6/29),Af=6/29*(6/29)*(6/29),mt(gf,"labConvert"),mt(ff,"lab"),mt(mf,"Lab"),_0(mf,ff,C0(E0,{brighter(e){return new mf(this.l+18*(e??1),this.a,this.b,this.opacity)},darker(e){return new mf(this.l-18*(e??1),this.a,this.b,this.opacity)},rgb(){var e=(this.l+16)/116,t=isNaN(this.a)?e:e+this.a/500,i=isNaN(this.b)?e:e-this.b/200;return new B0(vf(3.1338561*(t=.96422*bf(t))-1.6168667*(e=+bf(e))-.4906146*(i=.82521*bf(i))),vf(-.9787684*t+1.9161415*e+.033454*i),vf(.0719453*t-.2289914*e+1.4052427*i),this.opacity)}})),mt(yf,"xyz2lab"),mt(bf,"lab2xyz"),mt(vf,"lrgb2rgb"),mt(xf,"rgb2lrgb"),mt(wf,"hclConvert"),mt(kf,"hcl"),mt(Tf,"Hcl"),mt(Sf,"hcl2lab"),_0(Tf,kf,C0(E0,{brighter(e){return new Tf(this.h,this.c,this.l+18*(e??1),this.opacity)},darker(e){return new Tf(this.h,this.c,this.l-18*(e??1),this.opacity)},rgb(){return Sf(this).rgb()}}))}),$f=e(()=>{"use strict";df(),Ef()});function Lf(e,t,i,n,r){var s=e*e,a=s*e;return((1-3*e+3*s-a)*t+(4-6*s+3*a)*i+(1+3*e+3*s-3*a)*n+a*r)/6}function Rf(a){var o=a.length-1;return function(e){var t=e<=0?e=0:1<=e?o-(e=1):Math.floor(e*o),i=a[t],n=a[t+1],r=0<t?a[t-1]:2*i-n,s=t<o-1?a[t+2]:2*n-i;return Lf((e-t/o)*o,r,i,n,s)}}var Mf=e(()=>{"use strict";mt(Lf,"basis"),mt(Rf,"default")});function If(a){var o=a.length;return function(e){var t=Math.floor(((e%=1)<0?++e:e)*o),i=a[(t+o-1)%o],n=a[t%o],r=a[(t+1)%o],s=a[(t+2)%o];return Lf((e-t/o)*o,i,n,r,s)}}var Nf,Df=e(()=>{"use strict";Mf(),mt(If,"default")}),Of=e(()=>{"use strict";Nf=mt(e=>()=>e,"default")});function Pf(t,i){return function(e){return t+e*i}}function Bf(t,i,n){return t=Math.pow(t,n),i=Math.pow(i,n)-t,n=1/n,function(e){return Math.pow(t+e*i,n)}}function Ff(e,t){var i=t-e;return i?Pf(e,180<i||i<-180?i-360*Math.round(i/360):i):Nf(isNaN(e)?t:e)}function jf(i){return 1==(i=+i)?zf:function(e,t){return t-e?Bf(e,t,i):Nf(isNaN(e)?t:e)}}function zf(e,t){var i=t-e;return i?Pf(e,i):Nf(isNaN(e)?t:e)}var Hf=e(()=>{"use strict";Of(),mt(Pf,"linear"),mt(Bf,"exponential"),mt(Ff,"hue"),mt(jf,"gamma"),mt(zf,"nogamma")});function Uf(o){return function(e){for(var t,i=e.length,n=new Array(i),r=new Array(i),s=new Array(i),a=0;a<i;++a)t=P0(e[a]),n[a]=t.r||0,r[a]=t.g||0,s[a]=t.b||0;return n=o(n),r=o(r),s=o(s),t.opacity=1,function(e){return t.r=n(e),t.g=r(e),t.b=s(e),t+""}}}var qf,Wf=e(()=>{"use strict";$f(),Mf(),Df(),Hf(),qf=mt(function e(t){var a=jf(t);function i(t,e){var i=a((t=P0(t)).r,(e=P0(e)).r),n=a(t.g,e.g),r=a(t.b,e.b),s=zf(t.opacity,e.opacity);return function(e){return t.r=i(e),t.g=n(e),t.b=r(e),t.opacity=s(e),t+""}}return mt(i,"rgb"),i.gamma=e,i},"rgbGamma")(1),mt(Uf,"rgbSpline"),Uf(Rf),Uf(If)});function Vf(t,i){i=i||[];var n,r=t?Math.min(i.length,t.length):0,s=i.slice();return function(e){for(n=0;n<r;++n)s[n]=t[n]*(1-e)+i[n]*e;return s}}function Gf(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}var Yf=e(()=>{"use strict";mt(Vf,"default"),mt(Gf,"isNumberArray")});function Xf(e,t){for(var i=t?t.length:0,n=e?Math.min(i,e.length):0,r=new Array(n),s=new Array(i),a=0;a<n;++a)r[a]=cm(e[a],t[a]);for(;a<i;++a)s[a]=t[a];return function(e){for(a=0;a<n;++a)s[a]=r[a](e);return s}}var Kf=e(()=>{"use strict";hm(),mt(Xf,"genericArray")});function Zf(t,i){var n=new Date;return t=+t,i=+i,function(e){return n.setTime(t*(1-e)+i*e),n}}var Qf=e(()=>{"use strict";mt(Zf,"default")});function Jf(t,i){return t=+t,i=+i,function(e){return t*(1-e)+i*e}}var em=e(()=>{"use strict";mt(Jf,"default")});function tm(e,t){var i,n={},r={};for(i in null!==e&&"object"==typeof e||(e={}),t=null!==t&&"object"==typeof t?t:{})i in e?n[i]=cm(e[i],t[i]):r[i]=t[i];return function(e){for(i in n)r[i]=n[i](e);return r}}var im=e(()=>{"use strict";hm(),mt(tm,"default")});function nm(e){return function(){return e}}function rm(t){return function(e){return t(e)+""}}function sm(e,n){var t,i,r,s=am.lastIndex=om.lastIndex=0,a=-1,o=[],l=[];for(e+="",n+="";(t=am.exec(e))&&(i=om.exec(n));)(r=i.index)>s&&(r=n.slice(s,r),o[a]?o[a]+=r:o[++a]=r),(t=t[0])===(i=i[0])?o[a]?o[a]+=i:o[++a]=i:(o[++a]=null,l.push({i:a,x:Jf(t,i)})),s=om.lastIndex;return s<n.length&&(r=n.slice(s),o[a]?o[a]+=r:o[++a]=r),o.length<2?l[0]?rm(l[0].x):nm(n):(n=l.length,function(e){for(var t,i=0;i<n;++i)o[(t=l[i]).i]=t.x(e);return o.join("")})}var am,om,lm=e(()=>{"use strict";em(),am=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,om=new RegExp(am.source,"g"),mt(nm,"zero"),mt(rm,"one"),mt(sm,"default")});function cm(e,t){var i=typeof t;return null==t||"boolean"==i?Nf(t):("number"==i?Jf:"string"==i?(i=I0(t))?(t=i,qf):sm:t instanceof I0?qf:t instanceof Date?Zf:Gf(t)?Vf:Array.isArray(t)?Xf:"function"!=typeof t.valueOf&&"function"!=typeof t.toString||isNaN(t)?tm:Jf)(e,t)}var hm=e(()=>{"use strict";$f(),Wf(),Kf(),Qf(),em(),im(),lm(),Of(),Yf(),mt(cm,"default")});function um(t,i){return t=+t,i=+i,function(e){return Math.round(t*(1-e)+i*e)}}var dm=e(()=>{"use strict";mt(um,"default")});function pm(e,t,i,n,r,s){var a,o,l;return(a=Math.sqrt(e*e+t*t))&&(e/=a,t/=a),(l=e*i+t*n)&&(i-=e*l,n-=t*l),(o=Math.sqrt(i*i+n*n))&&(i/=o,n/=o,l/=o),e*n<t*i&&(e=-e,t=-t,l=-l,a=-a),{translateX:r,translateY:s,rotate:Math.atan2(t,e)*gm,skewX:Math.atan(l)*gm,scaleX:a,scaleY:o}}var gm,fm,mm=e(()=>{"use strict";gm=180/Math.PI,fm={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1},mt(pm,"default")});function ym(e){e=new("function"==typeof DOMMatrix?DOMMatrix:WebKitCSSMatrix)(e+"");return e.isIdentity?fm:pm(e.a,e.b,e.c,e.d,e.e,e.f)}function bm(e){return null!=e&&((vm=vm||document.createElementNS("http://www.w3.org/2000/svg","g")).setAttribute("transform",e),e=vm.transform.baseVal.consolidate())?pm((e=e.matrix).a,e.b,e.c,e.d,e.e,e.f):fm}var vm,xm=e(()=>{"use strict";mm(),mt(ym,"parseCss"),mt(bm,"parseSvg")});function wm(i,o,l,r){function c(e){return e.length?e.pop()+" ":""}function n(e,t,i,n,r,s){var a;e!==i||t!==n?(a=r.push("translate(",null,o,null,l),s.push({i:a-4,x:Jf(e,i)},{i:a-2,x:Jf(t,n)})):(i||n)&&r.push("translate("+i+o+n+l)}function a(e,t,i,n){e!==t?(180<e-t?t+=360:180<t-e&&(e+=360),n.push({i:i.push(c(i)+"rotate(",null,r)-2,x:Jf(e,t)})):t&&i.push(c(i)+"rotate("+t+r)}function h(e,t,i,n){e!==t?n.push({i:i.push(c(i)+"skewX(",null,r)-2,x:Jf(e,t)}):t&&i.push(c(i)+"skewX("+t+r)}function u(e,t,i,n,r,s){var a;e!==i||t!==n?(a=r.push(c(r)+"scale(",null,",",null,")"),s.push({i:a-4,x:Jf(e,i)},{i:a-2,x:Jf(t,n)})):1===i&&1===n||r.push(c(r)+"scale("+i+","+n+")")}return mt(c,"pop"),mt(n,"translate"),mt(a,"rotate"),mt(h,"skewX"),mt(u,"scale"),function(e,t){var r=[],s=[];return e=i(e),t=i(t),n(e.translateX,e.translateY,t.translateX,t.translateY,r,s),a(e.rotate,t.rotate,r,s),h(e.skewX,t.skewX,r,s),u(e.scaleX,e.scaleY,t.scaleX,t.scaleY,r,s),function(e){for(var t,i=-1,n=s.length;++i<n;)r[(t=s[i]).i]=t.x(e);return r.join("")}}}var km,Tm,Sm=e(()=>{"use strict";em(),xm(),mt(wm,"interpolateTransform"),km=wm(ym,"px, ","px)","deg)"),Tm=wm(bm,", ",")",")")});function _m(a){return function(t,e){var i=a((t=kf(t)).h,(e=kf(e)).h),n=zf(t.c,e.c),r=zf(t.l,e.l),s=zf(t.opacity,e.opacity);return function(e){return t.h=i(e),t.c=n(e),t.l=r(e),t.opacity=s(e),t+""}}}var Cm,Am=e(()=>{"use strict";$f(),Hf(),mt(_m,"hcl"),Cm=_m(Ff),_m(zf)}),Em=e(()=>{"use strict";hm(),em(),dm(),lm(),Sm(),Wf(),Am()});function $m(){return Wm||(Ym(Lm),Wm=Gm.now()+Vm)}function Lm(){Wm=0}function Rm(){this._call=this._time=this._next=null}function Mm(e,t,i){var n=new Rm;return n.restart(e,t,i),n}function Im(){$m(),++Bm;for(var e,t=Hm;t;)0<=(e=Wm-t._time)&&t._call.call(void 0,e),t=t._next;--Bm}function Nm(){Wm=(qm=Gm.now())+Vm,Bm=Fm=0;try{Im()}finally{Bm=0,Om(),Wm=0}}function Dm(){var e=Gm.now(),t=e-qm;zm<t&&(Vm-=t,qm=e)}function Om(){for(var e,t,i=Hm,n=1/0;i;)i=i._call?(n>i._time&&(n=i._time),(e=i)._next):(t=i._next,i._next=null,e?e._next=t:Hm=t);Um=e,Pm(n)}function Pm(e){Bm||(Fm=Fm&&clearTimeout(Fm),24<e-Wm?(e<1/0&&(Fm=setTimeout(Nm,e-Gm.now()-Vm)),jm=jm&&clearInterval(jm)):(jm||(qm=Gm.now(),jm=setInterval(Dm,zm)),Bm=1,Ym(Nm)))}var Bm,Fm,jm,zm,Hm,Um,qm,Wm,Vm,Gm,Ym,Xm=e(()=>{"use strict";zm=1e3,Vm=Wm=qm=jm=Fm=Bm=0,Gm="object"==typeof performance&&performance.now?performance:Date,Ym="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)},mt($m,"now"),mt(Lm,"clearNow"),mt(Rm,"Timer"),Rm.prototype=Mm.prototype={constructor:Rm,restart:mt(function(e,t,i){if("function"!=typeof e)throw new TypeError("callback is not a function");i=(null==i?$m():+i)+(null==t?0:+t),this._next||Um===this||(Um?Um._next=this:Hm=this,Um=this),this._call=e,this._time=i,Pm()},"restart"),stop:mt(function(){this._call&&(this._call=null,this._time=1/0,Pm())},"stop")},mt(Mm,"timer"),mt(Im,"timerFlush"),mt(Nm,"wake"),mt(Dm,"poke"),mt(Om,"nap"),mt(Pm,"sleep")});function Km(t,i,e){var n=new Rm;return i=null==i?0:+i,n.restart(e=>{n.stop(),t(e+i)},i,e),n}var Zm=e(()=>{"use strict";Xm(),mt(Km,"default")}),Qm=e(()=>{"use strict";Xm(),Zm()});function Jm(e,t,i,n,r,s){var a=e.__transition;if(a){if(i in a)return}else e.__transition={};n1(e,i,{name:t,index:n,group:r,on:r1,tween:s1,time:s.time,delay:s.delay,duration:s.duration,ease:s.ease,timer:null,state:a1})}function e1(e,t){e=i1(e,t);if(e.state>a1)throw new Error("too late; already scheduled");return e}function t1(e,t){e=i1(e,t);if(e.state>c1)throw new Error("too late; already running");return e}function i1(e,t){e=e.__transition;if(e=e&&e[t])return e;throw new Error("transition not found")}function n1(s,a,o){var l,c=s.__transition;function e(e){o.state=o1,o.timer.restart(h,o.delay,o.time),o.delay<=e&&h(e-o.delay)}function h(e){var t,i,n,r;if(o.state!==o1)return d();for(t in c)if(r=c[t],r.name===o.name){if(r.state===c1)return Km(h);r.state===h1?(r.state=d1,r.timer.stop(),r.on.call("interrupt",s,s.__data__,r.index,r.group),delete c[t]):+t<a&&(r.state=d1,r.timer.stop(),r.on.call("cancel",s,s.__data__,r.index,r.group),delete c[t])}if(Km(function(){o.state===c1&&(o.state=h1,o.timer.restart(u,o.delay,o.time),u(e))}),o.state=l1,o.on.call("start",s,s.__data__,o.index,o.group),o.state===l1){for(o.state=c1,l=new Array(n=o.tween.length),t=0,i=-1;t<n;++t)(r=o.tween[t].value.call(s,s.__data__,o.index,o.group))&&(l[++i]=r);l.length=i+1}}function u(e){for(var t=e<o.duration?o.ease.call(null,e/o.duration):(o.timer.restart(d),o.state=u1,1),i=-1,n=l.length;++i<n;)l[i].call(s,t);o.state===u1&&(o.on.call("end",s,s.__data__,o.index,o.group),d())}function d(){for(var e in o.state=d1,o.timer.stop(),delete c[a],c)return;delete s.__transition}(c[a]=o).timer=Mm(e,0,o.time),mt(e,"schedule"),mt(h,"start"),mt(u,"tick"),mt(d,"stop")}var r1,s1,a1,o1,l1,c1,h1,u1,d1,p1=e(()=>{"use strict";Md(),Qm(),r1=Ed("start","end","cancel","interrupt"),s1=[],a1=0,o1=1,l1=2,c1=3,h1=4,u1=5,d1=6,mt(Jm,"default"),mt(e1,"init"),mt(t1,"set"),mt(i1,"get"),mt(n1,"create")});function g1(e,t){var i,n,r,s=e.__transition,a=!0;if(s){for(r in t=null==t?null:t+"",s)(i=s[r]).name!==t?a=!1:(n=i.state>l1&&i.state<u1,i.state=d1,i.timer.stop(),i.on.call(n?"interrupt":"cancel",e,e.__data__,i.index,i.group),delete s[r]);a&&delete e.__transition}}var f1=e(()=>{"use strict";p1(),mt(g1,"default")});function m1(e){return this.each(function(){g1(this,e)})}var y1=e(()=>{"use strict";f1(),mt(m1,"default")});function b1(r,s){var a,o;return function(){var e=t1(this,r),t=e.tween;if(t!==a)for(var i=0,n=(o=a=t).length;i<n;++i)if(o[i].name===s){(o=o.slice()).splice(i,1);break}e.tween=o}}function v1(s,a,o){var l,c;if("function"!=typeof o)throw new Error;return function(){var e=t1(this,s),t=e.tween;if(t!==l){c=(l=t).slice();for(var i={name:a,value:o},n=0,r=c.length;n<r;++n)if(c[n].name===a){c[n]=i;break}n===r&&c.push(i)}e.tween=c}}function x1(e,t){var i=this._id;if(e+="",arguments.length<2){for(var n,r=i1(this.node(),i).tween,s=0,a=r.length;s<a;++s)if((n=r[s]).name===e)return n.value;return null}return this.each((null==t?b1:v1)(i,e,t))}function w1(e,t,i){var n=e._id;return e.each(function(){var e=t1(this,n);(e.value||(e.value={}))[t]=i.apply(this,arguments)}),function(e){return i1(e,n).value[t]}}var k1=e(()=>{"use strict";p1(),mt(b1,"tweenRemove"),mt(v1,"tweenFunction"),mt(x1,"default"),mt(w1,"tweenValue")});function T1(e,t){var i;return("number"==typeof t?Jf:t instanceof I0?qf:(i=I0(t))?(t=i,qf):sm)(e,t)}var S1=e(()=>{"use strict";$f(),Em(),mt(T1,"default")});function _1(e){return function(){this.removeAttribute(e)}}function C1(e){return function(){this.removeAttributeNS(e.space,e.local)}}function A1(t,i,n){var r,s,a=n+"";return function(){var e=this.getAttribute(t);return e===a?null:e===r?s:s=i(r=e,n)}}function E1(t,i,n){var r,s,a=n+"";return function(){var e=this.getAttributeNS(t.space,t.local);return e===a?null:e===r?s:s=i(r=e,n)}}function $1(n,r,s){var a,o,l;return function(){var e,t,i=s(this);return null==i?void this.removeAttribute(n):(e=this.getAttribute(n))===(t=i+"")?null:e===a&&t===o?l:(o=t,l=r(a=e,i))}}function L1(n,r,s){var a,o,l;return function(){var e,t,i=s(this);return null==i?void this.removeAttributeNS(n.space,n.local):(e=this.getAttributeNS(n.space,n.local))===(t=i+"")?null:e===a&&t===o?l:(o=t,l=r(a=e,i))}}function R1(e,t){var i=Nd(e),n="transform"===i?Tm:T1;return this.attrTween(e,"function"==typeof t?(i.local?L1:$1)(i,n,w1(this,"attr."+e,t)):null==t?(i.local?C1:_1)(i):(i.local?E1:A1)(i,n,t))}var M1=e(()=>{"use strict";Em(),T0(),k1(),S1(),mt(_1,"attrRemove"),mt(C1,"attrRemoveNS"),mt(A1,"attrConstant"),mt(E1,"attrConstantNS"),mt($1,"attrFunction"),mt(L1,"attrFunctionNS"),mt(R1,"default")});function I1(t,i){return function(e){this.setAttribute(t,i.call(this,e))}}function N1(t,i){return function(e){this.setAttributeNS(t.space,t.local,i.call(this,e))}}function D1(t,i){var n,r;function e(){var e=i.apply(this,arguments);return n=e!==r?(r=e)&&N1(t,e):n}return mt(e,"tween"),e._value=i,e}function O1(t,i){var n,r;function e(){var e=i.apply(this,arguments);return n=e!==r?(r=e)&&I1(t,e):n}return mt(e,"tween"),e._value=i,e}function P1(e,t){var i="attr."+e;if(arguments.length<2)return(i=this.tween(i))&&i._value;if(null==t)return this.tween(i,null);if("function"!=typeof t)throw new Error;var n=Nd(e);return this.tween(i,(n.local?D1:O1)(n,t))}var B1=e(()=>{"use strict";T0(),mt(I1,"attrInterpolate"),mt(N1,"attrInterpolateNS"),mt(D1,"attrTweenNS"),mt(O1,"attrTween"),mt(P1,"default")});function F1(e,t){return function(){e1(this,e).delay=+t.apply(this,arguments)}}function j1(e,t){return t=+t,function(){e1(this,e).delay=t}}function z1(e){var t=this._id;return arguments.length?this.each(("function"==typeof e?F1:j1)(t,e)):i1(this.node(),t).delay}var H1=e(()=>{"use strict";p1(),mt(F1,"delayFunction"),mt(j1,"delayConstant"),mt(z1,"default")});function U1(e,t){return function(){t1(this,e).duration=+t.apply(this,arguments)}}function q1(e,t){return t=+t,function(){t1(this,e).duration=t}}function W1(e){var t=this._id;return arguments.length?this.each(("function"==typeof e?U1:q1)(t,e)):i1(this.node(),t).duration}var V1=e(()=>{"use strict";p1(),mt(U1,"durationFunction"),mt(q1,"durationConstant"),mt(W1,"default")});function G1(e,t){if("function"!=typeof t)throw new Error;return function(){t1(this,e).ease=t}}function Y1(e){var t=this._id;return arguments.length?this.each(G1(t,e)):i1(this.node(),t).ease}var X1=e(()=>{"use strict";p1(),mt(G1,"easeConstant"),mt(Y1,"default")});function K1(t,i){return function(){var e=i.apply(this,arguments);if("function"!=typeof e)throw new Error;t1(this,t).ease=e}}function Z1(e){if("function"!=typeof e)throw new Error;return this.each(K1(this._id,e))}var Q1=e(()=>{"use strict";p1(),mt(K1,"easeVarying"),mt(Z1,"default")});function J1(e){"function"!=typeof e&&(e=Jd(e));for(var t=this._groups,i=t.length,n=new Array(i),r=0;r<i;++r)for(var s,a=t[r],o=a.length,l=n[r]=[],c=0;c<o;++c)(s=a[c])&&e.call(s,s.__data__,c,a)&&l.push(s);return new jy(n,this._parents,this._name,this._id)}var ey=e(()=>{"use strict";T0(),Wy(),mt(J1,"default")});function ty(e){if(e._id!==this._id)throw new Error;for(var t=this._groups,i=e._groups,n=t.length,e=i.length,r=Math.min(n,e),s=new Array(n),a=0;a<r;++a)for(var o,l=t[a],c=i[a],h=l.length,u=s[a]=new Array(h),d=0;d<h;++d)(o=l[d]||c[d])&&(u[d]=o);for(;a<n;++a)s[a]=t[a];return new jy(s,this._parents,this._name,this._id)}var iy=e(()=>{"use strict";Wy(),mt(ty,"default")});function ny(e){return(e+"").trim().split(/^|\s+/).every(function(e){var t=e.indexOf(".");return!(e=0<=t?e.slice(0,t):e)||"start"===e})}function ry(i,n,r){var s,a,o=ny(n)?e1:t1;return function(){var e=o(this,i),t=e.on;t!==s&&(a=(s=t).copy()).on(n,r),e.on=a}}function sy(e,t){var i=this._id;return arguments.length<2?i1(this.node(),i).on.on(e):this.each(ry(i,e,t))}var ay=e(()=>{"use strict";p1(),mt(ny,"start"),mt(ry,"onFunction"),mt(sy,"default")});function oy(i){return function(){var e,t=this.parentNode;for(e in this.__transition)if(+e!==i)return;t&&t.removeChild(this)}}function ly(){return this.on("end.remove",oy(this._id))}var cy=e(()=>{"use strict";mt(oy,"removeFunction"),mt(ly,"default")});function hy(e){var t=this._name,i=this._id;"function"!=typeof e&&(e=zd(e));for(var n=this._groups,r=n.length,s=new Array(r),a=0;a<r;++a)for(var o,l,c=n[a],h=c.length,u=s[a]=new Array(h),d=0;d<h;++d)(o=c[d])&&(l=e.call(o,o.__data__,d,c))&&("__data__"in o&&(l.__data__=o.__data__),u[d]=l,Jm(u[d],t,i,d,u,i1(o,i)));return new jy(s,this._parents,t,i)}var uy=e(()=>{"use strict";T0(),Wy(),p1(),mt(hy,"default")});function dy(e){var t=this._name,i=this._id;"function"!=typeof e&&(e=Yd(e));for(var n=this._groups,r=n.length,s=[],a=[],o=0;o<r;++o)for(var l,c=n[o],h=c.length,u=0;u<h;++u)if(l=c[u]){for(var d,p=e.call(l,l.__data__,u,c),g=i1(l,i),f=0,m=p.length;f<m;++f)(d=p[f])&&Jm(d,t,i,f,p,g);s.push(p),a.push(l)}return new jy(s,a,t,i)}var py=e(()=>{"use strict";T0(),Wy(),p1(),mt(dy,"default")});function gy(){return new fy(this._groups,this._parents)}var fy,my=e(()=>{"use strict";T0(),fy=x0.prototype.constructor,mt(gy,"default")});function yy(i,n){var r,s,a;return function(){var e=hg(this,i),t=(this.style.removeProperty(i),hg(this,i));return e===t?null:e===r&&t===s?a:a=n(r=e,s=t)}}function by(e){return function(){this.style.removeProperty(e)}}function vy(t,i,n){var r,s,a=n+"";return function(){var e=hg(this,t);return e===a?null:e===r?s:s=i(r=e,n)}}function xy(n,r,s){var a,o,l;return function(){var e=hg(this,n),t=s(this),i=t+"";return null==t&&(this.style.removeProperty(n),i=t=hg(this,n)),e===i?null:e===a&&i===o?l:(o=i,l=r(a=e,t))}}function wy(n,r){var s,a,o,l,c="style."+r,h="end."+c;return function(){var e=t1(this,n),t=e.on,i=null==e.value[c]?l=l||by(r):void 0;t===s&&o===i||(a=(s=t).copy()).on(h,o=i),e.on=a}}function ky(e,t,i){var n="transform"==(e+="")?km:T1;return null==t?this.styleTween(e,yy(e,n)).on("end.style."+e,by(e)):"function"==typeof t?this.styleTween(e,xy(e,n,w1(this,"style."+e,t))).each(wy(this._id,e)):this.styleTween(e,vy(e,n,t),i).on("end.style."+e,null)}var Ty=e(()=>{"use strict";Em(),T0(),p1(),k1(),S1(),mt(yy,"styleNull"),mt(by,"styleRemove"),mt(vy,"styleConstant"),mt(xy,"styleFunction"),mt(wy,"styleMaybeRemove"),mt(ky,"default")});function Sy(t,i,n){return function(e){this.style.setProperty(t,i.call(this,e),n)}}function _y(t,i,n){var r,s;function e(){var e=i.apply(this,arguments);return r=e!==s?(s=e)&&Sy(t,e,n):r}return mt(e,"tween"),e._value=i,e}function Cy(e,t,i){var n="style."+(e+="");if(arguments.length<2)return(n=this.tween(n))&&n._value;if(null==t)return this.tween(n,null);if("function"!=typeof t)throw new Error;return this.tween(n,_y(e,t,i??""))}var Ay=e(()=>{"use strict";mt(Sy,"styleInterpolate"),mt(_y,"styleTween"),mt(Cy,"default")});function Ey(e){return function(){this.textContent=e}}function $y(t){return function(){var e=t(this);this.textContent=e??""}}function Ly(e){return this.tween("text","function"==typeof e?$y(w1(this,"text",e)):Ey(null==e?"":e+""))}var Ry=e(()=>{"use strict";k1(),mt(Ey,"textConstant"),mt($y,"textFunction"),mt(Ly,"default")});function My(t){return function(e){this.textContent=t.call(this,e)}}function Iy(t){var i,n;function e(){var e=t.apply(this,arguments);return i=e!==n?(n=e)&&My(e):i}return mt(e,"tween"),e._value=t,e}function Ny(e){var t="text";if(arguments.length<1)return(t=this.tween(t))&&t._value;if(null==e)return this.tween(t,null);if("function"!=typeof e)throw new Error;return this.tween(t,Iy(e))}var Dy=e(()=>{"use strict";mt(My,"textInterpolate"),mt(Iy,"textTween"),mt(Ny,"default")});function Oy(){for(var e=this._name,t=this._id,i=++Uy,n=this._groups,r=n.length,s=0;s<r;++s)for(var a,o=n[s],l=o.length,c=0;c<l;++c)(a=o[c])&&Jm(a,e,i,c,o,{time:(a=i1(a,t)).time+a.delay+a.duration,delay:0,duration:a.duration,ease:a.ease});return new jy(n,this._parents,e,i)}var Py=e(()=>{"use strict";Wy(),p1(),mt(Oy,"default")});function By(){var r,s,a=this,o=a._id,l=a.size();return new Promise(function(e,t){var i={value:t},n={value:mt(function(){0==--l&&e()},"value")};a.each(function(){var e=t1(this,o),t=e.on;t!==r&&((s=(r=t).copy())._.cancel.push(i),s._.interrupt.push(i),s._.end.push(n)),e.on=s}),0===l&&e()})}var Fy=e(()=>{"use strict";p1(),mt(By,"default")});function jy(e,t,i,n){this._groups=e,this._parents=t,this._name=i,this._id=n}function zy(e){return x0().transition(e)}function Hy(){return++Uy}var Uy,qy,Wy=e(()=>{"use strict";T0(),M1(),B1(),H1(),V1(),X1(),Q1(),ey(),iy(),ay(),cy(),uy(),py(),my(),Ty(),Ay(),Ry(),Dy(),Py(),k1(),Fy(),Uy=0,mt(jy,"Transition"),mt(zy,"transition"),mt(Hy,"newId"),qy=x0.prototype,jy.prototype=zy.prototype={constructor:jy,select:hy,selectAll:dy,selectChild:qy.selectChild,selectChildren:qy.selectChildren,filter:J1,merge:ty,selection:gy,transition:Oy,call:qy.call,nodes:qy.nodes,node:qy.node,size:qy.size,empty:qy.empty,each:qy.each,on:sy,attr:R1,attrTween:P1,style:ky,styleTween:Cy,text:Ly,textTween:Ny,remove:ly,tween:x1,delay:z1,duration:W1,ease:Y1,easeVarying:Z1,end:By,[Symbol.iterator]:qy[Symbol.iterator]}});function Vy(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}var Gy=e(()=>{"use strict";mt(Vy,"cubicInOut")}),Yy=e(()=>{"use strict";Gy()});function Xy(e,t){for(var i;!(i=e.__transition)||!(i=i[t]);)if(!(e=e.parentNode))throw new Error(`transition ${t} not found`);return i}function Ky(e){var t,i;e=e instanceof jy?(t=e._id,e._name):(t=++Uy,(i=Zy).time=$m(),null==e?null:e+"");for(var n=this._groups,r=n.length,s=0;s<r;++s)for(var a,o=n[s],l=o.length,c=0;c<l;++c)(a=o[c])&&Jm(a,e,t,c,o,i||Xy(a,t));return new jy(n,this._parents,e,t)}var Zy,Qy=e(()=>{"use strict";Wy(),p1(),Yy(),Qm(),Zy={time:null,delay:0,duration:250,ease:Vy},mt(Xy,"inherit"),mt(Ky,"default")}),Jy=e(()=>{"use strict";T0(),y1(),Qy(),x0.prototype.interrupt=m1,x0.prototype.transition=Ky}),eb=e(()=>{"use strict";Jy()}),tb=e(()=>{}),ib=e(()=>{}),nb=e(()=>{});function rb(e){return[+e[0],+e[1]]}function sb(e){return[rb(e[0]),rb(e[1])]}function ab(e){return{type:e}}var ob,lb,cb,hb=e(()=>{"use strict";eb(),tb(),ib(),nb(),{abs:ob,max:lb,min:cb}=Math,mt(rb,"number1"),mt(sb,"number2"),["w","e"].map(ab),mt(function(e,t){return null==e?null:[[+e[0],t[0][1]],[+e[1],t[1][1]]]},"input"),mt(function(e){return e&&[e[0][0],e[1][0]]},"output"),["n","s"].map(ab),mt(function(e,t){return null==e?null:[[t[0][0],+e[0]],[t[1][0],+e[1]]]},"input"),mt(function(e){return e&&[e[0][1],e[1][1]]},"output"),["n","w","e","s","nw","ne","sw","se"].map(ab),mt(function(e){return null==e?null:sb(e)},"input"),mt(function(e){return e},"output"),mt(ab,"type")}),ub=e(()=>{"use strict";hb()});function db(i){this._+=i[0];for(let e=1,t=i.length;e<t;++e)this._+=arguments[e]+i[e]}function pb(e){var t=Math.floor(e);if(!(0<=t))throw new Error("invalid digits: "+e);if(15<t)return db;let n=10**t;return function(i){this._+=i[0];for(let e=1,t=i.length;e<t;++e)this._+=Math.round(arguments[e]*n)/n+i[e]}}function gb(){return new bb}var fb,mb,yb,bb,vb=e(()=>{"use strict";fb=Math.PI,yb=(mb=2*fb)-1e-6,mt(db,"append"),mt(pb,"appendRound"),bb=class{static{mt(this,"Path")}constructor(e){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=null==e?db:pb(e)}moveTo(e,t){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+t}`}closePath(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(e,t){this._append`L${this._x1=+e},${this._y1=+t}`}quadraticCurveTo(e,t,i,n){this._append`Q${+e},${+t},${this._x1=+i},${this._y1=+n}`}bezierCurveTo(e,t,i,n,r,s){this._append`C${+e},${+t},${+i},${+n},${this._x1=+r},${this._y1=+s}`}arcTo(e,t,i,n,r){if(e=+e,t=+t,i=+i,n=+n,(r=+r)<0)throw new Error("negative radius: "+r);var s,a,o=this._x1,l=this._y1,c=i-e,h=n-t,u=o-e,d=l-t,p=u*u+d*d;null===this._x1?this._append`M${this._x1=e},${this._y1=t}`:1e-6<p&&(1e-6<Math.abs(d*c-h*u)&&r?(a=c*c+h*h,n=(i=i-o)*i+(o=n-l)*o,l=Math.sqrt(a),s=Math.sqrt(p),p=(a=r*Math.tan((fb-Math.acos((a+p-n)/(2*l*s)))/2))/s,n=a/l,1e-6<Math.abs(p-1)&&this._append`L${e+p*u},${t+p*d}`,this._append`A${r},${r},0,0,${+(u*o<d*i)},${this._x1=e+n*c},${this._y1=t+n*h}`):this._append`L${this._x1=e},${this._y1=t}`)}arc(e,t,i,n,r,s){if(e=+e,t=+t,s=!!s,(i=+i)<0)throw new Error("negative radius: "+i);let a=i*Math.cos(n),o=i*Math.sin(n),l=e+a,c=t+o,h=1^s,u=s?n-r:r-n;null===this._x1?this._append`M${l},${c}`:(1e-6<Math.abs(this._x1-l)||1e-6<Math.abs(this._y1-c))&&this._append`L${l},${c}`,i&&((u=u<0?u%mb+mb:u)>yb?this._append`A${i},${i},0,1,${h},${e-a},${t-o}A${i},${i},0,1,${h},${this._x1=l},${this._y1=c}`:1e-6<u&&this._append`A${i},${i},0,${+(u>=fb)},${h},${this._x1=e+i*Math.cos(r)},${this._y1=t+i*Math.sin(r)}`)}rect(e,t,i,n){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+t}h${i=+i}v${+n}h${-i}Z`}toString(){return this._}},mt(gb,"path"),gb.prototype=bb.prototype}),xb=e(()=>{"use strict";vb()}),wb=e(()=>{}),kb=e(()=>{}),Tb=e(()=>{}),Sb=e(()=>{}),_b=e(()=>{}),Cb=e(()=>{}),Ab=e(()=>{});function Eb(e){return 1e21<=Math.abs(e=Math.round(e))?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function $b(e,t){var i;return(t=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0?null:[1<(i=e.slice(0,t)).length?i[0]+i.slice(2):i,+e.slice(t+1)]}var Lb=e(()=>{"use strict";mt(Eb,"default"),mt($b,"formatDecimalParts")});function Rb(e){return(e=$b(Math.abs(e)))?e[1]:NaN}var Mb=e(()=>{"use strict";Lb(),mt(Rb,"default")});function Ib(o,l){return function(e,t){for(var i=e.length,n=[],r=0,s=o[0],a=0;0<i&&0<s&&(t<a+s+1&&(s=Math.max(1,t-a)),n.push(e.substring(i-=s,i+s)),!((a+=s+1)>t));)s=o[r=(r+1)%o.length];return n.reverse().join(l)}}var Nb=e(()=>{"use strict";mt(Ib,"default")});function Db(t){return function(e){return e.replace(/[0-9]/g,function(e){return t[+e]})}}var Ob=e(()=>{"use strict";mt(Db,"default")});function Pb(e){var t;if(t=Fb.exec(e))return new Bb({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]});throw new Error("invalid format: "+e)}function Bb(e){this.fill=void 0===e.fill?" ":e.fill+"",this.align=void 0===e.align?">":e.align+"",this.sign=void 0===e.sign?"-":e.sign+"",this.symbol=void 0===e.symbol?"":e.symbol+"",this.zero=!!e.zero,this.width=void 0===e.width?void 0:+e.width,this.comma=!!e.comma,this.precision=void 0===e.precision?void 0:+e.precision,this.trim=!!e.trim,this.type=void 0===e.type?"":e.type+""}var Fb,jb=e(()=>{"use strict";Fb=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i,mt(Pb,"formatSpecifier"),Pb.prototype=Bb.prototype,mt(Bb,"FormatSpecifier"),Bb.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type}});function zb(e){e:for(var t,i=e.length,n=1,r=-1;n<i;++n)switch(e[n]){case".":r=t=n;break;case"0":0===r&&(r=n),t=n;break;default:if(!+e[n])break e;0<r&&(r=0)}return 0<r?e.slice(0,r)+e.slice(t+1):e}var Hb=e(()=>{"use strict";mt(zb,"default")});function Ub(e,t){var i,n,r=$b(e,t);return r?(i=r[0],(r=(r=r[1])-(qb=3*Math.max(-8,Math.min(8,Math.floor(r/3))))+1)===(n=i.length)?i:n<r?i+new Array(r-n+1).join("0"):0<r?i.slice(0,r)+"."+i.slice(r):"0."+new Array(1-r).join("0")+$b(e,Math.max(0,t+r-1))[0]):e+""}var qb,Wb=e(()=>{"use strict";Lb(),mt(Ub,"default")});function Vb(e,t){var i,t=$b(e,t);return t?(i=t[0],(t=t[1])<0?"0."+new Array(-t).join("0")+i:i.length>t+1?i.slice(0,t+1)+"."+i.slice(t+1):i+new Array(t-i.length+2).join("0")):e+""}var Gb,Yb=e(()=>{"use strict";Lb(),mt(Vb,"default")}),Xb=e(()=>{"use strict";Lb(),Wb(),Yb(),Gb={"%":mt((e,t)=>(100*e).toFixed(t),"%"),b:mt(e=>Math.round(e).toString(2),"b"),c:mt(e=>e+"","c"),d:Eb,e:mt((e,t)=>e.toExponential(t),"e"),f:mt((e,t)=>e.toFixed(t),"f"),g:mt((e,t)=>e.toPrecision(t),"g"),o:mt(e=>Math.round(e).toString(8),"o"),p:mt((e,t)=>Vb(100*e,t),"p"),r:Vb,s:Ub,X:mt(e=>Math.round(e).toString(16).toUpperCase(),"X"),x:mt(e=>Math.round(e).toString(16),"x")}});function Kb(e){return e}var Zb=e(()=>{"use strict";mt(Kb,"default")});function Qb(e){var k=void 0===e.grouping||void 0===e.thousands?Kb:Ib(Jb.call(e.grouping,Number),e.thousands+""),n=void 0===e.currency?"":e.currency[0]+"",r=void 0===e.currency?"":e.currency[1]+"",T=void 0===e.decimal?".":e.decimal+"",S=void 0===e.numerals?Kb:Db(Jb.call(e.numerals,String)),s=void 0===e.percent?"%":e.percent+"",_=void 0===e.minus?"−":e.minus+"",C=void 0===e.nan?"NaN":e.nan+"";function a(e){var c=(e=Pb(e)).fill,h=e.align,u=e.sign,t=e.symbol,d=e.zero,p=e.width,g=e.comma,f=e.precision,m=e.trim,y=e.type,b=("n"===y?(g=!0,y="g"):Gb[y]||(void 0===f&&(f=12),m=!0,y="g"),(d||"0"===c&&"="===h)&&(d=!0,c="0",h="="),"$"===t?n:"#"===t&&/[boxX]/.test(y)?"0"+y.toLowerCase():""),v="$"===t?r:/[%p]/.test(y)?s:"",x=Gb[y],w=/[defgprs%]/.test(y);function i(e){var t,i,n,r=b,s=v;if("c"===y)s=x(e)+s,e="";else{var a=(e=+e)<0||1/e<0;if(e=isNaN(e)?C:x(Math.abs(e),f),m&&(e=zb(e)),r=((a=a&&0==+e&&"+"!==u?!1:a)?"("===u?u:_:"-"===u||"("===u?"":u)+r,s=("s"===y?ev[8+qb/3]:"")+s+(a&&"("===u?")":""),w)for(t=-1,i=e.length;++t<i;)if((n=e.charCodeAt(t))<48||57<n){s=(46===n?T+e.slice(t+1):e.slice(t))+s,e=e.slice(0,t);break}}g&&!d&&(e=k(e,1/0));var o=r.length+e.length+s.length,l=o<p?new Array(p-o+1).join(c):"";switch(g&&d&&(e=k(l+e,l.length?p-s.length:1/0),l=""),h){case"<":e=r+e+s+l;break;case"=":e=r+l+e+s;break;case"^":e=l.slice(0,o=l.length>>1)+r+e+s+l.slice(o);break;default:e=l+r+e+s}return S(e)}return f=void 0===f?6:/[gprs]/.test(y)?Math.max(1,Math.min(21,f)):Math.max(0,Math.min(20,f)),mt(i,"format"),i.toString=function(){return e+""},i}function t(e,t){var i=a(((e=Pb(e)).type="f",e)),e=3*Math.max(-8,Math.min(8,Math.floor(Rb(t)/3))),n=Math.pow(10,-e),r=ev[8+e/3];return function(e){return i(n*e)+r}}return mt(a,"newFormat"),mt(t,"formatPrefix"),{format:a,formatPrefix:t}}var Jb,ev,tv=e(()=>{"use strict";Mb(),Nb(),Ob(),jb(),Hb(),Xb(),Wb(),Zb(),Jb=Array.prototype.map,ev=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"],mt(Qb,"default")});function iv(e){return nv=Qb(e),rv=nv.format,sv=nv.formatPrefix,nv}var nv,rv,sv,av=e(()=>{"use strict";tv(),iv({thousands:",",grouping:[3],currency:["$",""]}),mt(iv,"defaultLocale")});function ov(e){return Math.max(0,-Rb(Math.abs(e)))}var lv=e(()=>{"use strict";Mb(),mt(ov,"default")});function cv(e,t){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(Rb(t)/3)))-Rb(Math.abs(e)))}var hv=e(()=>{"use strict";Mb(),mt(cv,"default")});function uv(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,Rb(t)-Rb(e))+1}var dv=e(()=>{"use strict";Mb(),mt(uv,"default")}),pv=e(()=>{"use strict";av(),jb(),lv(),hv(),dv()}),gv=e(()=>{});function fv(e){var t=0,i=e.children,n=i&&i.length;if(n)for(;0<=--n;)t+=i[n].value;else t=1;e.value=t}function mv(){return this.eachAfter(fv)}var yv=e(()=>{"use strict";mt(fv,"count"),mt(mv,"default")});function bv(e,t){let i=-1;for(var n of this)e.call(t,n,++i,this);return this}var vv=e(()=>{"use strict";mt(bv,"default")});function xv(e,t){for(var i,n,r,s=[this],a=-1;i=s.pop();)if(e.call(t,i,++a,this),n=i.children)for(r=n.length-1;0<=r;--r)s.push(n[r]);return this}var wv=e(()=>{"use strict";mt(xv,"default")});function kv(e,t){for(var i,n,r,s=this,a=[s],o=[],l=-1;s=a.pop();)if(o.push(s),i=s.children)for(n=0,r=i.length;n<r;++n)a.push(i[n]);for(;s=o.pop();)e.call(t,s,++l,this);return this}var Tv=e(()=>{"use strict";mt(kv,"default")});function Sv(e,t){let i=-1;for(var n of this)if(e.call(t,n,++i,this))return n}var _v=e(()=>{"use strict";mt(Sv,"default")});function Cv(r){return this.eachAfter(function(e){for(var t=+r(e.data)||0,i=e.children,n=i&&i.length;0<=--n;)t+=i[n].value;e.value=t})}var Av=e(()=>{"use strict";mt(Cv,"default")});function Ev(t){return this.eachBefore(function(e){e.children&&e.children.sort(t)})}var $v=e(()=>{"use strict";mt(Ev,"default")});function Lv(e){for(var t=this,i=Rv(t,e),n=[t];t!==i;)t=t.parent,n.push(t);for(var r=n.length;e!==i;)n.splice(r,0,e),e=e.parent;return n}function Rv(e,t){if(e===t)return e;var i=e.ancestors(),n=t.ancestors(),r=null;for(e=i.pop(),t=n.pop();e===t;)r=e,e=i.pop(),t=n.pop();return r}var Mv=e(()=>{"use strict";mt(Lv,"default"),mt(Rv,"leastCommonAncestor")});function Iv(){for(var e=this,t=[e];e=e.parent;)t.push(e);return t}var Nv=e(()=>{"use strict";mt(Iv,"default")});function Dv(){return Array.from(this)}var Ov=e(()=>{"use strict";mt(Dv,"default")});function Pv(){var t=[];return this.eachBefore(function(e){e.children||t.push(e)}),t}var Bv=e(()=>{"use strict";mt(Pv,"default")});function Fv(){var t=this,i=[];return t.each(function(e){e!==t&&i.push({source:e.parent,target:e})}),i}var jv=e(()=>{"use strict";mt(Fv,"default")});function*zv(){var e,t,i,n,r,s=[this];do{for(t=s.reverse(),s=[];e=t.pop();)if(yield e,i=e.children)for(n=0,r=i.length;n<r;++n)s.push(i[n])}while(s.length)}var Hv=e(()=>{"use strict";mt(zv,"default")});function Uv(e,t){e instanceof Map?(e=[void 0,e],void 0===t&&(t=Vv)):void 0===t&&(t=Wv);for(var i,n,r,s,a,e=new Xv(e),o=[e];i=o.pop();)if((r=t(i.data))&&(a=(r=Array.from(r)).length))for(i.children=r,s=a-1;0<=s;--s)o.push(n=r[s]=new Xv(r[s])),n.parent=i,n.depth=i.depth+1;return e.eachBefore(Yv)}function qv(){return Uv(this).eachBefore(Gv)}function Wv(e){return e.children}function Vv(e){return Array.isArray(e)?e[1]:null}function Gv(e){void 0!==e.data.value&&(e.value=e.data.value),e.data=e.data.data}function Yv(e){for(var t=0;e.height=t,(e=e.parent)&&e.height<++t;);}function Xv(e){this.data=e,this.depth=this.height=0,this.parent=null}var Kv=e(()=>{"use strict";yv(),vv(),wv(),Tv(),_v(),Av(),$v(),Mv(),Nv(),Ov(),Bv(),jv(),Hv(),mt(Uv,"hierarchy"),mt(qv,"node_copy"),mt(Wv,"objectChildren"),mt(Vv,"mapChildren"),mt(Gv,"copyData"),mt(Yv,"computeHeight"),mt(Xv,"Node"),Xv.prototype=Uv.prototype={constructor:Xv,count:mv,each:bv,eachAfter:kv,eachBefore:xv,find:Sv,sum:Cv,sort:Ev,path:Lv,ancestors:Iv,descendants:Dv,leaves:Pv,links:Fv,copy:qv,[Symbol.iterator]:zv}});function Zv(e){if("function"!=typeof e)throw new Error;return e}var Qv=e(()=>{"use strict";mt(Zv,"required")});function Jv(){return 0}function e2(e){return function(){return e}}var t2=e(()=>{"use strict";mt(Jv,"constantZero"),mt(e2,"default")});function i2(e){e.x0=Math.round(e.x0),e.y0=Math.round(e.y0),e.x1=Math.round(e.x1),e.y1=Math.round(e.y1)}var n2=e(()=>{"use strict";mt(i2,"default")});function r2(e,t,i,n,r){for(var s,a=e.children,o=-1,l=a.length,c=e.value&&(n-t)/e.value;++o<l;)(s=a[o]).y0=i,s.y1=r,s.x0=t,s.x1=t+=s.value*c}var s2=e(()=>{"use strict";mt(r2,"default")});function a2(e,t,i,n,r){for(var s,a=e.children,o=-1,l=a.length,c=e.value&&(r-i)/e.value;++o<l;)(s=a[o]).x0=t,s.x1=n,s.y0=i,s.y1=i+=s.value*c}var o2=e(()=>{"use strict";mt(a2,"default")});function l2(e,t,i,n,r,s){for(var a,o,l,c,h,u,d,p,g,f,m,y=[],b=t.children,v=0,x=0,w=b.length,k=t.value;v<w;){for(l=r-i,c=s-n;!(h=b[x++].value)&&x<w;);for(m=(u=d=h)*h*(f=Math.max(c/l,l/c)/(k*e)),g=Math.max(d/m,m/u);x<w;++x){if(h+=o=b[x].value,o<u&&(u=o),d<o&&(d=o),m=h*h*f,g<(p=Math.max(d/m,m/u))){h-=o;break}g=p}y.push(a={value:h,dice:l<c,children:b.slice(v,x)}),a.dice?r2(a,i,n,r,k?n+=c*h/k:s):a2(a,i,n,k?i+=l*h/k:r,s),k-=h,v=x}return y}var c2,h2,u2=e(()=>{"use strict";s2(),o2(),c2=(1+Math.sqrt(5))/2,mt(l2,"squarifyRatio"),h2=mt(function t(s){function e(e,t,i,n,r){l2(s,e,t,i,n,r)}return mt(e,"squarify"),e.ratio=function(e){return t(1<(e=+e)?e:1)},e},"custom")(c2)});function d2(){var a=h2,t=!1,i=1,n=1,o=[0],l=Jv,c=Jv,h=Jv,u=Jv,d=Jv;function r(e){return e.x0=e.y0=0,e.x1=i,e.y1=n,e.eachBefore(s),o=[0],t&&e.eachBefore(i2),e}function s(e){var t=o[e.depth],i=e.x0+t,n=e.y0+t,r=e.x1-t,s=e.y1-t;r<i&&(i=r=(i+r)/2),s<n&&(n=s=(n+s)/2),e.x0=i,e.y0=n,e.x1=r,e.y1=s,e.children&&(t=o[e.depth+1]=l(e)/2,i+=d(e)-t,n+=c(e)-t,(r-=h(e)-t)<i&&(i=r=(i+r)/2),(s-=u(e)-t)<n&&(n=s=(n+s)/2),a(e,i,n,r,s))}return mt(r,"treemap"),mt(s,"positionNode"),r.round=function(e){return arguments.length?(t=!!e,r):t},r.size=function(e){return arguments.length?(i=+e[0],n=+e[1],r):[i,n]},r.tile=function(e){return arguments.length?(a=Zv(e),r):a},r.padding=function(e){return arguments.length?r.paddingInner(e).paddingOuter(e):r.paddingInner()},r.paddingInner=function(e){return arguments.length?(l="function"==typeof e?e:e2(+e),r):l},r.paddingOuter=function(e){return arguments.length?r.paddingTop(e).paddingRight(e).paddingBottom(e).paddingLeft(e):r.paddingTop()},r.paddingTop=function(e){return arguments.length?(c="function"==typeof e?e:e2(+e),r):c},r.paddingRight=function(e){return arguments.length?(h="function"==typeof e?e:e2(+e),r):h},r.paddingBottom=function(e){return arguments.length?(u="function"==typeof e?e:e2(+e),r):u},r.paddingLeft=function(e){return arguments.length?(d="function"==typeof e?e:e2(+e),r):d},r}var p2=e(()=>{"use strict";n2(),u2(),Qv(),t2(),mt(d2,"default")}),g2=e(()=>{"use strict";Kv(),p2()}),f2=e(()=>{}),m2=e(()=>{});function y2(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e)}return this}var b2=e(()=>{"use strict";mt(y2,"initRange")});function v2(){var i=new Wu,n=[],r=[],s=x2;function a(e){let t=i.get(e);if(void 0===t){if(s!==x2)return s;i.set(e,t=n.push(e)-1)}return r[t%r.length]}return mt(a,"scale"),a.domain=function(e){if(!arguments.length)return n.slice();n=[],i=new Wu;for(var t of e)i.has(t)||i.set(t,n.push(t)-1);return a},a.range=function(e){return arguments.length?(r=Array.from(e),a):r.slice()},a.unknown=function(e){return arguments.length?(s=e,a):s},a.copy=function(){return v2(n,r).unknown(s)},y2.apply(a,arguments),a}var x2,w2=e(()=>{"use strict";od(),b2(),x2=Symbol("implicit"),mt(v2,"ordinal")});function k2(){var r,s,e=v2().unknown(void 0),a=e.domain,o=e.range,l=0,c=1,h=!1,u=0,d=0,p=.5;function t(){var e=a().length,t=c<l,i=t?c:l,n=t?l:c,n=(r=(n-i)/Math.max(1,e-u+2*d),h&&(r=Math.floor(r)),i+=(n-i-r*(e-u))*p,s=r*(1-u),h&&(i=Math.round(i),s=Math.round(s)),sd(e).map(function(e){return i+r*e}));return o(t?n.reverse():n)}return delete e.unknown,mt(t,"rescale"),e.domain=function(e){return(arguments.length?(a(e),t):a)()},e.range=function(e){return arguments.length?([l,c]=e,l=+l,c=+c,t()):[l,c]},e.rangeRound=function(e){return[l,c]=e,l=+l,c=+c,h=!0,t()},e.bandwidth=function(){return s},e.step=function(){return r},e.round=function(e){return arguments.length?(h=!!e,t()):h},e.padding=function(e){return arguments.length?(u=Math.min(1,d=+e),t()):u},e.paddingInner=function(e){return arguments.length?(u=Math.min(1,e),t()):u},e.paddingOuter=function(e){return arguments.length?(d=+e,t()):d},e.align=function(e){return arguments.length?(p=Math.max(0,Math.min(1,e)),t()):p},e.copy=function(){return k2(a(),[l,c]).round(h).paddingInner(u).paddingOuter(d).align(p)},y2.apply(t(),arguments)}var T2=e(()=>{"use strict";od(),b2(),w2(),mt(k2,"band")});function S2(e){return function(){return e}}var _2=e(()=>{"use strict";mt(S2,"constants")});function C2(e){return+e}var A2=e(()=>{"use strict";mt(C2,"number")});function E2(e){return e}function $2(t,i){return(i-=t=+t)?function(e){return(e-t)/i}:S2(isNaN(i)?NaN:.5)}function L2(t,i){var e;return i<t&&(e=t,t=i,i=e),function(e){return Math.max(t,Math.min(i,e))}}function R2(e,t,i){var n=e[0],e=e[1],r=t[0],t=t[1],r=e<n?(n=$2(e,n),i(t,r)):(n=$2(n,e),i(r,t));return function(e){return r(n(e))}}function M2(i,e,t){var n=Math.min(i.length,e.length)-1,r=new Array(n),s=new Array(n),a=-1;for(i[n]<i[0]&&(i=i.slice().reverse(),e=e.slice().reverse());++a<n;)r[a]=$2(i[a],i[a+1]),s[a]=t(e[a],e[a+1]);return function(e){var t=Bu(i,e,1,n)-1;return s[t](r[t](e))}}function I2(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function N2(){var i,n,t,r,s,a,o=O2,l=O2,c=cm,h=E2;function u(){var e=Math.min(o.length,l.length);return h!==E2&&(h=L2(o[0],o[e-1])),r=2<e?M2:R2,s=a=null,d}function d(e){return null==e||isNaN(e=+e)?t:(s=s||r(o.map(i),l,c))(i(h(e)))}return mt(u,"rescale"),mt(d,"scale"),d.invert=function(e){return h(n((a=a||r(l,o.map(i),Jf))(e)))},d.domain=function(e){return arguments.length?(o=Array.from(e,C2),u()):o.slice()},d.range=function(e){return arguments.length?(l=Array.from(e),u()):l.slice()},d.rangeRound=function(e){return l=Array.from(e),c=um,u()},d.clamp=function(e){return arguments.length?(h=!!e||E2,u()):h!==E2},d.interpolate=function(e){return arguments.length?(c=e,u()):c},d.unknown=function(e){return arguments.length?(t=e,d):t},function(e,t){return i=e,n=t,u()}}function D2(){return N2()(E2,E2)}var O2,P2=e(()=>{"use strict";od(),Em(),_2(),A2(),O2=[0,1],mt(E2,"identity"),mt($2,"normalize"),mt(L2,"clamper"),mt(R2,"bimap"),mt(M2,"polymap"),mt(I2,"copy"),mt(N2,"transformer"),mt(D2,"continuous")});function B2(e,t,i,n){var r,s=Ku(e,t,i);switch((n=Pb(n??",f")).type){case"s":var a=Math.max(Math.abs(e),Math.abs(t));return null!=n.precision||isNaN(r=cv(s,a))||(n.precision=r),sv(n,a);case"":case"e":case"g":case"p":case"r":null!=n.precision||isNaN(r=uv(s,Math.max(Math.abs(e),Math.abs(t))))||(n.precision=r-("e"===n.type));break;case"f":case"%":null!=n.precision||isNaN(r=ov(s))||(n.precision=r-2*("%"===n.type))}return rv(n)}var F2=e(()=>{"use strict";od(),pv(),mt(B2,"tickFormat")});function j2(c){var h=c.domain;return c.ticks=function(e){var t=h();return Yu(t[0],t[t.length-1],e??10)},c.tickFormat=function(e,t){var i=h();return B2(i[0],i[i.length-1],e??10,t)},c.nice=function(e){null==e&&(e=10);var t,i,n=h(),r=0,s=n.length-1,a=n[r],o=n[s],l=10;for(o<a&&(i=a,a=o,o=i,i=r,r=s,s=i);0<l--;){if((i=Xu(a,o,e))===t)return n[r]=a,n[s]=o,h(n);if(0<i)a=Math.floor(a/i)*i,o=Math.ceil(o/i)*i;else{if(!(i<0))break;a=Math.ceil(a*i)/i,o=Math.floor(o*i)/i}t=i}return c},c}function z2(){var e=D2();return e.copy=function(){return I2(e,z2())},y2.apply(e,arguments),j2(e)}var H2=e(()=>{"use strict";od(),P2(),b2(),F2(),mt(j2,"linearish"),mt(z2,"linear")});function U2(e,t){var i,n=0,r=(e=e.slice()).length-1,s=e[n],a=e[r];return a<s&&(i=n,n=r,r=i,i=s,s=a,a=i),e[n]=t.floor(s),e[r]=t.ceil(a),e}var q2=e(()=>{"use strict";mt(U2,"nice")});function W2(s,a,i,n){function o(e){return s(e=0===arguments.length?new Date:new Date(+e)),e}return mt(o,"interval"),o.floor=e=>(s(e=new Date(+e)),e),o.ceil=e=>(s(e=new Date(e-1)),a(e,1),s(e),e),o.round=e=>{var t=o(e),i=o.ceil(e);return e-t<i-e?t:i},o.offset=(e,t)=>(a(e=new Date(+e),null==t?1:Math.floor(t)),e),o.range=(e,t,i)=>{var n,r=[];if(e=o.ceil(e),i=null==i?1:Math.floor(i),e<t&&0<i)for(;r.push(n=new Date(+e)),a(e,i),s(e),n<e&&e<t;);return r},o.filter=i=>W2(e=>{if(e<=e)for(;s(e),!i(e);)e.setTime(e-1)},(e,t)=>{if(e<=e)if(t<0)for(;++t<=0;)for(;a(e,-1),!i(e););else for(;0<=--t;)for(;a(e,1),!i(e););}),i&&(o.count=(e,t)=>(V2.setTime(+e),G2.setTime(+t),s(V2),s(G2),Math.floor(i(V2,G2))),o.every=t=>(t=Math.floor(t),isFinite(t)&&0<t?1<t?o.filter(n?e=>n(e)%t==0:e=>o.count(0,e)%t==0):o:null)),o}var V2,G2,Y2,X2,K2,Z2,Q2,J2,e4,t4,i4,n4=e(()=>{"use strict";V2=new Date,G2=new Date,mt(W2,"timeInterval")}),r4=e(()=>{"use strict";n4(),(Y2=W2(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e)).every=i=>(i=Math.floor(i),isFinite(i)&&0<i?1<i?W2(e=>{e.setTime(Math.floor(e/i)*i)},(e,t)=>{e.setTime(+e+t*i)},(e,t)=>(t-e)/i):Y2:null),Y2.range}),s4=e(()=>{"use strict";n4(),X2=W2(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+1e3*t)},(e,t)=>(t-e)/1e3,e=>e.getUTCSeconds()),X2.range}),a4=e(()=>{"use strict";n4(),K2=W2(e=>{e.setTime(e-e.getMilliseconds()-1e3*e.getSeconds())},(e,t)=>{e.setTime(+e+6e4*t)},(e,t)=>(t-e)/6e4,e=>e.getMinutes()),K2.range,Z2=W2(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+6e4*t)},(e,t)=>(t-e)/6e4,e=>e.getUTCMinutes()),Z2.range}),o4=e(()=>{"use strict";n4(),Q2=W2(e=>{e.setTime(e-e.getMilliseconds()-1e3*e.getSeconds()-6e4*e.getMinutes())},(e,t)=>{e.setTime(+e+36e5*t)},(e,t)=>(t-e)/36e5,e=>e.getHours()),Q2.range,J2=W2(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+36e5*t)},(e,t)=>(t-e)/36e5,e=>e.getUTCHours()),J2.range}),l4=e(()=>{"use strict";n4(),e4=W2(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-6e4*(t.getTimezoneOffset()-e.getTimezoneOffset()))/864e5,e=>e.getDate()-1),e4.range,t4=W2(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/864e5,e=>e.getUTCDate()-1),t4.range,i4=W2(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/864e5,e=>Math.floor(e/864e5)),i4.range});function c4(t){return W2(e=>{e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)},(e,t)=>{e.setDate(e.getDate()+7*t)},(e,t)=>(t-e-6e4*(t.getTimezoneOffset()-e.getTimezoneOffset()))/6048e5)}function h4(t){return W2(e=>{e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+7*t)},(e,t)=>(t-e)/6048e5)}var u4,d4,p4,g4,f4,m4,y4,b4,v4,x4,w4,k4,T4,S4,_4,C4,A4,E4,$4=e(()=>{"use strict";n4(),mt(c4,"timeWeekday"),u4=c4(0),d4=c4(1),p4=c4(2),g4=c4(3),f4=c4(4),m4=c4(5),y4=c4(6),u4.range,d4.range,p4.range,g4.range,f4.range,m4.range,y4.range,mt(h4,"utcWeekday"),b4=h4(0),v4=h4(1),x4=h4(2),w4=h4(3),k4=h4(4),T4=h4(5),S4=h4(6),b4.range,v4.range,x4.range,w4.range,k4.range,T4.range,S4.range}),L4=e(()=>{"use strict";n4(),_4=W2(e=>{e.setDate(1),e.setHours(0,0,0,0)},(e,t)=>{e.setMonth(e.getMonth()+t)},(e,t)=>t.getMonth()-e.getMonth()+12*(t.getFullYear()-e.getFullYear()),e=>e.getMonth()),_4.range,C4=W2(e=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCMonth(e.getUTCMonth()+t)},(e,t)=>t.getUTCMonth()-e.getUTCMonth()+12*(t.getUTCFullYear()-e.getUTCFullYear()),e=>e.getUTCMonth()),C4.range}),R4=e(()=>{"use strict";n4(),(A4=W2(e=>{e.setMonth(0,1),e.setHours(0,0,0,0)},(e,t)=>{e.setFullYear(e.getFullYear()+t)},(e,t)=>t.getFullYear()-e.getFullYear(),e=>e.getFullYear())).every=i=>isFinite(i=Math.floor(i))&&0<i?W2(e=>{e.setFullYear(Math.floor(e.getFullYear()/i)*i),e.setMonth(0,1),e.setHours(0,0,0,0)},(e,t)=>{e.setFullYear(e.getFullYear()+t*i)}):null,A4.range,(E4=W2(e=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCFullYear(e.getUTCFullYear()+t)},(e,t)=>t.getUTCFullYear()-e.getUTCFullYear(),e=>e.getUTCFullYear())).every=i=>isFinite(i=Math.floor(i))&&0<i?W2(e=>{e.setUTCFullYear(Math.floor(e.getUTCFullYear()/i)*i),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCFullYear(e.getUTCFullYear()+t*i)}):null,E4.range});function M4(s,e,t,i,n,r){let a=[[X2,1,1e3],[X2,5,5e3],[X2,15,15e3],[X2,30,3e4],[r,1,6e4],[r,5,3e5],[r,15,9e5],[r,30,18e5],[n,1,36e5],[n,3,108e5],[n,6,216e5],[n,12,432e5],[i,1,864e5],[i,2,1728e5],[t,1,6048e5],[e,1,2592e6],[e,3,7776e6],[s,1,31536e6]];function o(e,t,i){var n=t<e,i=(n&&([e,t]=[t,e]),i&&"function"==typeof i.range?i:l(e,t,i)),i=i?i.range(e,+t+1):[];return n?i.reverse():i}function l(e,t,i){var n=Math.abs(t-e)/i,r=Mu(([,,e])=>e).right(a,n);return r===a.length?s.every(Ku(e/31536e6,t/31536e6,i)):0===r?Y2.every(Math.max(Ku(e,t,i),1)):([e,t]=a[n/a[r-1][2]<a[r][2]/n?r-1:r],e.every(t))}return mt(o,"ticks"),mt(l,"tickInterval"),[o,l]}var I4,N4,D4,O4,P4=e(()=>{"use strict";od(),r4(),s4(),a4(),o4(),l4(),$4(),L4(),R4(),mt(M4,"ticker"),[I4,N4]=M4(E4,C4,b4,i4,J2,Z2),[D4,O4]=M4(A4,_4,u4,e4,Q2,K2)}),B4=e(()=>{"use strict";r4(),s4(),a4(),o4(),l4(),$4(),L4(),R4(),P4()});function F4(e){var t;return 0<=e.y&&e.y<100?((t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L)).setFullYear(e.y),t):new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function j4(e){var t;return 0<=e.y&&e.y<100?((t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L))).setUTCFullYear(e.y),t):new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function z4(e,t,i){return{y:e,m:t,d:i,H:0,M:0,S:0,L:0}}function H4(e){var n=e.dateTime,r=e.date,s=e.time,t=e.periods,i=e.days,a=e.shortDays,o=e.months,l=e.shortMonths,c=W4(t),h=V4(t),O=W4(i),P=V4(i),B=W4(a),F=V4(a),j=W4(o),z=V4(o),H=W4(l),U=V4(l),u={a:S,A:_,b:C,B:A,c:null,d:px,e:px,f:bx,g:$x,G:Rx,H:gx,I:fx,j:mx,L:yx,m:vx,M:xx,p:E,q:$,Q:e3,s:t3,S:wx,u:kx,U:Tx,V:_x,w:Cx,W:Ax,x:null,X:null,y:Ex,Y:Lx,Z:Mx,"%":Jx},d={a:L,A:R,b:M,B:I,c:null,d:Ix,e:Ix,f:Bx,g:Xx,G:Zx,H:Nx,I:Dx,j:Ox,L:Px,m:Fx,M:jx,p:N,q:D,Q:e3,s:t3,S:zx,u:Hx,U:Ux,V:Wx,w:Vx,W:Gx,x:null,X:null,y:Yx,Y:Kx,Z:Qx,"%":Jx},q={a:y,A:b,b:v,B:x,c:w,d:nx,e:nx,f:cx,g:J4,G:Q4,H:sx,I:sx,j:rx,L:lx,m:ix,M:ax,p:m,q:tx,Q:ux,s:dx,S:ox,u:Y4,U:X4,V:K4,w:G4,W:Z4,x:k,X:T,y:J4,Y:Q4,Z:ex,"%":hx};function p(l,c){return function(e){var t,i,n,r=[],s=-1,a=0,o=l.length;for(e instanceof Date||(e=new Date(+e));++s<o;)37===l.charCodeAt(s)&&(r.push(l.slice(a,s)),null!=(i=i3[t=l.charAt(++s)])?t=l.charAt(++s):i="e"===t?" ":"0",(n=c[t])&&(t=n(e,i)),r.push(t),a=s+1);return r.push(l.slice(a,s)),r.join("")}}function g(r,s){return function(e){var t,i,n=z4(1900,void 0,1);if(f(n,r,e+="",0)!=e.length)return null;if("Q"in n)return new Date(n.Q);if("s"in n)return new Date(1e3*n.s+("L"in n?n.L:0));if(!s||"Z"in n||(n.Z=0),"p"in n&&(n.H=n.H%12+12*n.p),void 0===n.m&&(n.m="q"in n?n.q:0),"V"in n){if(n.V<1||53<n.V)return null;"w"in n||(n.w=1),"Z"in n?(t=4<(i=(t=j4(z4(n.y,0,1))).getUTCDay())||0===i?v4.ceil(t):v4(t),t=t4.offset(t,7*(n.V-1)),n.y=t.getUTCFullYear(),n.m=t.getUTCMonth(),n.d=t.getUTCDate()+(n.w+6)%7):(t=4<(i=(t=F4(z4(n.y,0,1))).getDay())||0===i?d4.ceil(t):d4(t),t=e4.offset(t,7*(n.V-1)),n.y=t.getFullYear(),n.m=t.getMonth(),n.d=t.getDate()+(n.w+6)%7)}else("W"in n||"U"in n)&&("w"in n||(n.w="u"in n?n.u%7:"W"in n?1:0),i="Z"in n?j4(z4(n.y,0,1)).getUTCDay():F4(z4(n.y,0,1)).getDay(),n.m=0,n.d="W"in n?(n.w+6)%7+7*n.W-(i+5)%7:n.w+7*n.U-(i+6)%7);return("Z"in n?(n.H+=n.Z/100|0,n.M+=n.Z%100,j4):F4)(n)}}function f(e,t,i,n){for(var r,s,a=0,o=t.length,l=i.length;a<o;){if(l<=n)return-1;if(37===(r=t.charCodeAt(a++))){if(r=t.charAt(a++),!(s=q[r in i3?t.charAt(a++):r])||(n=s(e,i,n))<0)return-1}else if(r!=i.charCodeAt(n++))return-1}return n}function m(e,t,i){t=c.exec(t.slice(i));return t?(e.p=h.get(t[0].toLowerCase()),i+t[0].length):-1}function y(e,t,i){t=B.exec(t.slice(i));return t?(e.w=F.get(t[0].toLowerCase()),i+t[0].length):-1}function b(e,t,i){t=O.exec(t.slice(i));return t?(e.w=P.get(t[0].toLowerCase()),i+t[0].length):-1}function v(e,t,i){t=H.exec(t.slice(i));return t?(e.m=U.get(t[0].toLowerCase()),i+t[0].length):-1}function x(e,t,i){t=j.exec(t.slice(i));return t?(e.m=z.get(t[0].toLowerCase()),i+t[0].length):-1}function w(e,t,i){return f(e,n,t,i)}function k(e,t,i){return f(e,r,t,i)}function T(e,t,i){return f(e,s,t,i)}function S(e){return a[e.getDay()]}function _(e){return i[e.getDay()]}function C(e){return l[e.getMonth()]}function A(e){return o[e.getMonth()]}function E(e){return t[+(12<=e.getHours())]}function $(e){return 1+~~(e.getMonth()/3)}function L(e){return a[e.getUTCDay()]}function R(e){return i[e.getUTCDay()]}function M(e){return l[e.getUTCMonth()]}function I(e){return o[e.getUTCMonth()]}function N(e){return t[+(12<=e.getUTCHours())]}function D(e){return 1+~~(e.getUTCMonth()/3)}return u.x=p(r,u),u.X=p(s,u),u.c=p(n,u),d.x=p(r,d),d.X=p(s,d),d.c=p(n,d),mt(p,"newFormat"),mt(g,"newParse"),mt(f,"parseSpecifier"),mt(m,"parsePeriod"),mt(y,"parseShortWeekday"),mt(b,"parseWeekday"),mt(v,"parseShortMonth"),mt(x,"parseMonth"),mt(w,"parseLocaleDateTime"),mt(k,"parseLocaleDate"),mt(T,"parseLocaleTime"),mt(S,"formatShortWeekday"),mt(_,"formatWeekday"),mt(C,"formatShortMonth"),mt(A,"formatMonth"),mt(E,"formatPeriod"),mt($,"formatQuarter"),mt(L,"formatUTCShortWeekday"),mt(R,"formatUTCWeekday"),mt(M,"formatUTCShortMonth"),mt(I,"formatUTCMonth"),mt(N,"formatUTCPeriod"),mt(D,"formatUTCQuarter"),{format:mt(function(e){var t=p(e+="",u);return t.toString=function(){return e},t},"format"),parse:mt(function(e){var t=g(e+="",!1);return t.toString=function(){return e},t},"parse"),utcFormat:mt(function(e){var t=p(e+="",d);return t.toString=function(){return e},t},"utcFormat"),utcParse:mt(function(e){var t=g(e+="",!0);return t.toString=function(){return e},t},"utcParse")}}function U4(e,t,i){var n=e<0?"-":"",e=(n?-e:e)+"",r=e.length;return n+(r<i?new Array(i-r+1).join(t)+e:e)}function q4(e){return e.replace(s3,"\\$&")}function W4(e){return new RegExp("^(?:"+e.map(q4).join("|")+")","i")}function V4(e){return new Map(e.map((e,t)=>[e.toLowerCase(),t]))}function G4(e,t,i){t=n3.exec(t.slice(i,i+1));return t?(e.w=+t[0],i+t[0].length):-1}function Y4(e,t,i){t=n3.exec(t.slice(i,i+1));return t?(e.u=+t[0],i+t[0].length):-1}function X4(e,t,i){t=n3.exec(t.slice(i,i+2));return t?(e.U=+t[0],i+t[0].length):-1}function K4(e,t,i){t=n3.exec(t.slice(i,i+2));return t?(e.V=+t[0],i+t[0].length):-1}function Z4(e,t,i){t=n3.exec(t.slice(i,i+2));return t?(e.W=+t[0],i+t[0].length):-1}function Q4(e,t,i){t=n3.exec(t.slice(i,i+4));return t?(e.y=+t[0],i+t[0].length):-1}function J4(e,t,i){t=n3.exec(t.slice(i,i+2));return t?(e.y=+t[0]+(68<+t[0]?1900:2e3),i+t[0].length):-1}function ex(e,t,i){t=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(i,i+6));return t?(e.Z=t[1]?0:-(t[2]+(t[3]||"00")),i+t[0].length):-1}function tx(e,t,i){t=n3.exec(t.slice(i,i+1));return t?(e.q=3*t[0]-3,i+t[0].length):-1}function ix(e,t,i){t=n3.exec(t.slice(i,i+2));return t?(e.m=t[0]-1,i+t[0].length):-1}function nx(e,t,i){t=n3.exec(t.slice(i,i+2));return t?(e.d=+t[0],i+t[0].length):-1}function rx(e,t,i){t=n3.exec(t.slice(i,i+3));return t?(e.m=0,e.d=+t[0],i+t[0].length):-1}function sx(e,t,i){t=n3.exec(t.slice(i,i+2));return t?(e.H=+t[0],i+t[0].length):-1}function ax(e,t,i){t=n3.exec(t.slice(i,i+2));return t?(e.M=+t[0],i+t[0].length):-1}function ox(e,t,i){t=n3.exec(t.slice(i,i+2));return t?(e.S=+t[0],i+t[0].length):-1}function lx(e,t,i){t=n3.exec(t.slice(i,i+3));return t?(e.L=+t[0],i+t[0].length):-1}function cx(e,t,i){t=n3.exec(t.slice(i,i+6));return t?(e.L=Math.floor(t[0]/1e3),i+t[0].length):-1}function hx(e,t,i){t=r3.exec(t.slice(i,i+1));return t?i+t[0].length:-1}function ux(e,t,i){t=n3.exec(t.slice(i));return t?(e.Q=+t[0],i+t[0].length):-1}function dx(e,t,i){t=n3.exec(t.slice(i));return t?(e.s=+t[0],i+t[0].length):-1}function px(e,t){return U4(e.getDate(),t,2)}function gx(e,t){return U4(e.getHours(),t,2)}function fx(e,t){return U4(e.getHours()%12||12,t,2)}function mx(e,t){return U4(1+e4.count(A4(e),e),t,3)}function yx(e,t){return U4(e.getMilliseconds(),t,3)}function bx(e,t){return yx(e,t)+"000"}function vx(e,t){return U4(e.getMonth()+1,t,2)}function xx(e,t){return U4(e.getMinutes(),t,2)}function wx(e,t){return U4(e.getSeconds(),t,2)}function kx(e){e=e.getDay();return 0===e?7:e}function Tx(e,t){return U4(u4.count(A4(e)-1,e),t,2)}function Sx(e){var t=e.getDay();return 4<=t||0===t?f4(e):f4.ceil(e)}function _x(e,t){return e=Sx(e),U4(f4.count(A4(e),e)+(4===A4(e).getDay()),t,2)}function Cx(e){return e.getDay()}function Ax(e,t){return U4(d4.count(A4(e)-1,e),t,2)}function Ex(e,t){return U4(e.getFullYear()%100,t,2)}function $x(e,t){return U4((e=Sx(e)).getFullYear()%100,t,2)}function Lx(e,t){return U4(e.getFullYear()%1e4,t,4)}function Rx(e,t){var i=e.getDay();return U4((e=4<=i||0===i?f4(e):f4.ceil(e)).getFullYear()%1e4,t,4)}function Mx(e){e=e.getTimezoneOffset();return(0<e?"-":(e*=-1,"+"))+U4(e/60|0,"0",2)+U4(e%60,"0",2)}function Ix(e,t){return U4(e.getUTCDate(),t,2)}function Nx(e,t){return U4(e.getUTCHours(),t,2)}function Dx(e,t){return U4(e.getUTCHours()%12||12,t,2)}function Ox(e,t){return U4(1+t4.count(E4(e),e),t,3)}function Px(e,t){return U4(e.getUTCMilliseconds(),t,3)}function Bx(e,t){return Px(e,t)+"000"}function Fx(e,t){return U4(e.getUTCMonth()+1,t,2)}function jx(e,t){return U4(e.getUTCMinutes(),t,2)}function zx(e,t){return U4(e.getUTCSeconds(),t,2)}function Hx(e){e=e.getUTCDay();return 0===e?7:e}function Ux(e,t){return U4(b4.count(E4(e)-1,e),t,2)}function qx(e){var t=e.getUTCDay();return 4<=t||0===t?k4(e):k4.ceil(e)}function Wx(e,t){return e=qx(e),U4(k4.count(E4(e),e)+(4===E4(e).getUTCDay()),t,2)}function Vx(e){return e.getUTCDay()}function Gx(e,t){return U4(v4.count(E4(e)-1,e),t,2)}function Yx(e,t){return U4(e.getUTCFullYear()%100,t,2)}function Xx(e,t){return U4((e=qx(e)).getUTCFullYear()%100,t,2)}function Kx(e,t){return U4(e.getUTCFullYear()%1e4,t,4)}function Zx(e,t){var i=e.getUTCDay();return U4((e=4<=i||0===i?k4(e):k4.ceil(e)).getUTCFullYear()%1e4,t,4)}function Qx(){return"+0000"}function Jx(){return"%"}function e3(e){return+e}function t3(e){return Math.floor(+e/1e3)}var i3,n3,r3,s3,a3=e(()=>{"use strict";B4(),mt(F4,"localDate"),mt(j4,"utcDate"),mt(z4,"newDate"),mt(H4,"formatLocale"),i3={"-":"",_:" ",0:"0"},n3=/^\s*\d+/,r3=/^%/,s3=/[\\^$*+?|[\]().{}]/g,mt(U4,"pad"),mt(q4,"requote"),mt(W4,"formatRe"),mt(V4,"formatLookup"),mt(G4,"parseWeekdayNumberSunday"),mt(Y4,"parseWeekdayNumberMonday"),mt(X4,"parseWeekNumberSunday"),mt(K4,"parseWeekNumberISO"),mt(Z4,"parseWeekNumberMonday"),mt(Q4,"parseFullYear"),mt(J4,"parseYear"),mt(ex,"parseZone"),mt(tx,"parseQuarter"),mt(ix,"parseMonthNumber"),mt(nx,"parseDayOfMonth"),mt(rx,"parseDayOfYear"),mt(sx,"parseHour24"),mt(ax,"parseMinutes"),mt(ox,"parseSeconds"),mt(lx,"parseMilliseconds"),mt(cx,"parseMicroseconds"),mt(hx,"parseLiteralPercent"),mt(ux,"parseUnixTimestamp"),mt(dx,"parseUnixTimestampSeconds"),mt(px,"formatDayOfMonth"),mt(gx,"formatHour24"),mt(fx,"formatHour12"),mt(mx,"formatDayOfYear"),mt(yx,"formatMilliseconds"),mt(bx,"formatMicroseconds"),mt(vx,"formatMonthNumber"),mt(xx,"formatMinutes"),mt(wx,"formatSeconds"),mt(kx,"formatWeekdayNumberMonday"),mt(Tx,"formatWeekNumberSunday"),mt(Sx,"dISO"),mt(_x,"formatWeekNumberISO"),mt(Cx,"formatWeekdayNumberSunday"),mt(Ax,"formatWeekNumberMonday"),mt(Ex,"formatYear"),mt($x,"formatYearISO"),mt(Lx,"formatFullYear"),mt(Rx,"formatFullYearISO"),mt(Mx,"formatZone"),mt(Ix,"formatUTCDayOfMonth"),mt(Nx,"formatUTCHour24"),mt(Dx,"formatUTCHour12"),mt(Ox,"formatUTCDayOfYear"),mt(Px,"formatUTCMilliseconds"),mt(Bx,"formatUTCMicroseconds"),mt(Fx,"formatUTCMonthNumber"),mt(jx,"formatUTCMinutes"),mt(zx,"formatUTCSeconds"),mt(Hx,"formatUTCWeekdayNumberMonday"),mt(Ux,"formatUTCWeekNumberSunday"),mt(qx,"UTCdISO"),mt(Wx,"formatUTCWeekNumberISO"),mt(Vx,"formatUTCWeekdayNumberSunday"),mt(Gx,"formatUTCWeekNumberMonday"),mt(Yx,"formatUTCYear"),mt(Xx,"formatUTCYearISO"),mt(Kx,"formatUTCFullYear"),mt(Zx,"formatUTCFullYearISO"),mt(Qx,"formatUTCZone"),mt(Jx,"formatLiteralPercent"),mt(e3,"formatUnixTimestamp"),mt(t3,"formatUnixTimestampSeconds")});function o3(e){return l3=H4(e),c3=l3.format,l3.parse,l3.utcFormat,l3.utcParse,l3}var l3,c3,h3=e(()=>{"use strict";a3(),o3({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"]}),mt(o3,"defaultLocale")}),u3=e(()=>{"use strict";h3()});function d3(e){return new Date(e)}function p3(e){return e instanceof Date?+e:+new Date(+e)}function g3(i,n,t,r,s,a,o,l,c,h){var u=D2(),d=u.invert,p=u.domain,g=h(".%L"),f=h(":%S"),m=h("%I:%M"),y=h("%I %p"),b=h("%a %d"),v=h("%b %d"),x=h("%B"),w=h("%Y");function k(e){return(c(e)<e?g:l(e)<e?f:o(e)<e?m:a(e)<e?y:r(e)<e?s(e)<e?b:v:t(e)<e?x:w)(e)}return mt(k,"tickFormat"),u.invert=function(e){return new Date(d(e))},u.domain=function(e){return arguments.length?p(Array.from(e,p3)):p().map(d3)},u.ticks=function(e){var t=p();return i(t[0],t[t.length-1],e??10)},u.tickFormat=function(e,t){return null==t?k:h(t)},u.nice=function(e){var t=p();return(e=e&&"function"==typeof e.range?e:n(t[0],t[t.length-1],e??10))?p(U2(t,e)):u},u.copy=function(){return I2(u,g3(i,n,t,r,s,a,o,l,c,h))},u}function f3(){return y2.apply(g3(D4,O4,A4,_4,u4,e4,Q2,K2,X2,c3).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}var m3=e(()=>{"use strict";B4(),u3(),P2(),b2(),q2(),mt(d3,"date"),mt(p3,"number"),mt(g3,"calendar"),mt(f3,"time")}),y3=e(()=>{"use strict";T2(),H2(),w2(),m3()});function b3(e){for(var t=e.length/6|0,i=new Array(t),n=0;n<t;)i[n]="#"+e.slice(6*n,6*++n);return i}var v3,x3=e(()=>{"use strict";mt(b3,"default")}),w3=e(()=>{"use strict";x3(),v3=b3("4e79a7f28e2ce1575976b7b259a14fedc949af7aa1ff9da79c755fbab0ab")}),k3=e(()=>{"use strict";w3()});function T3(e){return mt(function(){return e},"constant")}var S3=e(()=>{"use strict";mt(T3,"default")});function _3(e){return 1<e?0:e<-1?D3:Math.acos(e)}function C3(e){return 1<=e?O3:e<=-1?-O3:Math.asin(e)}var A3,E3,$3,L3,R3,M3,I3,N3,D3,O3,P3,B3=e(()=>{"use strict";A3=Math.abs,E3=Math.atan2,$3=Math.cos,L3=Math.max,R3=Math.min,M3=Math.sin,I3=Math.sqrt,N3=1e-12,D3=Math.PI,O3=D3/2,P3=2*D3,mt(_3,"acos"),mt(C3,"asin")});function F3(i){let n=3;return i.digits=function(e){if(!arguments.length)return n;if(null==e)n=null;else{var t=Math.floor(e);if(!(0<=t))throw new RangeError("invalid digits: "+e);n=t}return i},()=>new bb(n)}var j3=e(()=>{"use strict";xb(),mt(F3,"withPath")});function z3(e){return e.innerRadius}function H3(e){return e.outerRadius}function U3(e){return e.startAngle}function q3(e){return e.endAngle}function W3(e){return e&&e.padAngle}function V3(e,t,i,n,r,s,a,o){var i=i-e,n=n-t,a=a-r,o=o-s,l=o*i-a*n;if(!(l*l<N3))return[e+(l=(a*(t-s)-o*(e-r))/l)*i,t+l*n]}function G3(e,t,i,n,r,s,a){var o=e-i,l=t-n,a=(a?s:-s)/I3(o*o+l*l),l=a*l,a=-a*o,o=e+l,e=t+a,t=i+l,i=n+a,n=(o+t)/2,c=(e+i)/2,h=t-o,u=i-e,d=h*h+u*u,s=r-s,o=o*i-t*e,i=(u<0?-1:1)*I3(L3(0,s*s*d-o*o)),t=(o*u-h*i)/d,e=(-o*h-u*i)/d,p=(o*u+h*i)/d,o=(-o*h+u*i)/d,h=t-n,u=e-c,i=p-n,d=o-c;return i*i+d*d<h*h+u*u&&(t=p,e=o),{cx:t,cy:e,x01:-l,y01:-a,x11:t*(r/s-1),y11:e*(r/s-1)}}function Y3(){var E=z3,$=H3,L=T3(0),R=null,M=U3,I=q3,N=W3,D=null,O=F3(t);function t(){var e,t,i,n,r,s,a,o,l,c,h,u,d,p,g,f,m,y,b,v,x,w,k=+E.apply(this,arguments),T=+$.apply(this,arguments),S=M.apply(this,arguments)-O3,_=I.apply(this,arguments)-O3,C=A3(_-S),A=S<_;if(D=D||(e=O()),T<k&&(t=T,T=k,k=t),N3<T?P3-N3<C?(D.moveTo(T*$3(S),T*M3(S)),D.arc(0,0,T,S,_,!A),N3<k&&(D.moveTo(k*$3(_),k*M3(_)),D.arc(0,0,k,_,S,A))):(n=t=S,r=i=_,a=s=C,h=N.apply(this,arguments)/2,d=N3<h&&(R?+R.apply(this,arguments):I3(k*k+T*T)),w=x=o=R3(A3(T-k)/2,+L.apply(this,arguments)),N3<d&&(u=C3(d/k*M3(h)),d=C3(d/T*M3(h)),(s-=2*u)>N3?(n+=u*=A?1:-1,r-=u):(s=0,n=r=(S+_)/2),(a-=2*d)>N3?(t+=d*=A?1:-1,i-=d):(a=0,t=i=(S+_)/2)),h=T*$3(t),u=T*M3(t),d=k*$3(r),S=k*M3(r),N3<o&&(p=T*$3(i),g=T*M3(i),f=k*$3(n),m=k*M3(n),C<D3)&&((_=V3(h,u,f,m,p,g,d,S))?(C=h-_[0],v=u-_[1],y=p-_[0],b=g-_[1],C=1/M3(_3((C*y+v*b)/(I3(C*C+v*v)*I3(y*y+b*b)))/2),v=I3(_[0]*_[0]+_[1]*_[1]),x=R3(o,(k-v)/(C-1)),w=R3(o,(T-v)/(1+C))):x=w=0),N3<a?N3<w?(l=G3(f,m,h,u,T,w,A),c=G3(p,g,d,S,T,w,A),D.moveTo(l.cx+l.x01,l.cy+l.y01),w<o?D.arc(l.cx,l.cy,w,E3(l.y01,l.x01),E3(c.y01,c.x01),!A):(D.arc(l.cx,l.cy,w,E3(l.y01,l.x01),E3(l.y11,l.x11),!A),D.arc(0,0,T,E3(l.cy+l.y11,l.cx+l.x11),E3(c.cy+c.y11,c.cx+c.x11),!A),D.arc(c.cx,c.cy,w,E3(c.y11,c.x11),E3(c.y01,c.x01),!A))):(D.moveTo(h,u),D.arc(0,0,T,t,i,!A)):D.moveTo(h,u),N3<k&&N3<s?N3<x?(l=G3(d,S,p,g,k,-x,A),c=G3(h,u,f,m,k,-x,A),D.lineTo(l.cx+l.x01,l.cy+l.y01),x<o?D.arc(l.cx,l.cy,x,E3(l.y01,l.x01),E3(c.y01,c.x01),!A):(D.arc(l.cx,l.cy,x,E3(l.y01,l.x01),E3(l.y11,l.x11),!A),D.arc(0,0,k,E3(l.cy+l.y11,l.cx+l.x11),E3(c.cy+c.y11,c.cx+c.x11),A),D.arc(c.cx,c.cy,x,E3(c.y11,c.x11),E3(c.y01,c.x01),!A))):D.arc(0,0,k,r,n,A):D.lineTo(d,S)):D.moveTo(0,0),D.closePath(),e)return D=null,e+""||null}return mt(t,"arc"),t.centroid=function(){var e=(+E.apply(this,arguments)+ +$.apply(this,arguments))/2,t=(+M.apply(this,arguments)+ +I.apply(this,arguments))/2-D3/2;return[$3(t)*e,M3(t)*e]},t.innerRadius=function(e){return arguments.length?(E="function"==typeof e?e:T3(+e),t):E},t.outerRadius=function(e){return arguments.length?($="function"==typeof e?e:T3(+e),t):$},t.cornerRadius=function(e){return arguments.length?(L="function"==typeof e?e:T3(+e),t):L},t.padRadius=function(e){return arguments.length?(R=null==e?null:"function"==typeof e?e:T3(+e),t):R},t.startAngle=function(e){return arguments.length?(M="function"==typeof e?e:T3(+e),t):M},t.endAngle=function(e){return arguments.length?(I="function"==typeof e?e:T3(+e),t):I},t.padAngle=function(e){return arguments.length?(N="function"==typeof e?e:T3(+e),t):N},t.context=function(e){return arguments.length?(D=e??null,t):D},t}var X3=e(()=>{"use strict";S3(),B3(),j3(),mt(z3,"arcInnerRadius"),mt(H3,"arcOuterRadius"),mt(U3,"arcStartAngle"),mt(q3,"arcEndAngle"),mt(W3,"arcPadAngle"),mt(V3,"intersect"),mt(G3,"cornerTangents"),mt(Y3,"default")});function K3(e){return"object"==typeof e&&"length"in e?e:Array.from(e)}var Z3=e(()=>{"use strict";Array.prototype.slice,mt(K3,"default")});function Q3(e){this._context=e}function J3(e){return new Q3(e)}var e5=e(()=>{"use strict";mt(Q3,"Linear"),Q3.prototype={areaStart:mt(function(){this._line=0},"areaStart"),areaEnd:mt(function(){this._line=NaN},"areaEnd"),lineStart:mt(function(){this._point=0},"lineStart"),lineEnd:mt(function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},"lineEnd"),point:mt(function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t)}},"point")},mt(J3,"default")});function t5(e){return e[0]}function i5(e){return e[1]}var n5=e(()=>{"use strict";mt(t5,"x"),mt(i5,"y")});function r5(a,o){var l=T3(!0),c=null,h=J3,u=null,d=F3(t);function t(e){var t,i,n,r=(e=K3(e)).length,s=!1;for(null==c&&(u=h(n=d())),t=0;t<=r;++t)!(t<r&&l(i=e[t],t,e))===s&&((s=!s)?u.lineStart():u.lineEnd()),s&&u.point(+a(i,t,e),+o(i,t,e));if(n)return u=null,n+""||null}return a="function"==typeof a?a:void 0===a?t5:T3(a),o="function"==typeof o?o:void 0===o?i5:T3(o),mt(t,"line"),t.x=function(e){return arguments.length?(a="function"==typeof e?e:T3(+e),t):a},t.y=function(e){return arguments.length?(o="function"==typeof e?e:T3(+e),t):o},t.defined=function(e){return arguments.length?(l="function"==typeof e?e:T3(!!e),t):l},t.curve=function(e){return arguments.length?(h=e,null!=c&&(u=h(c)),t):h},t.context=function(e){return arguments.length?(null==e?c=u=null:u=h(c=e),t):c},t}var s5=e(()=>{"use strict";Z3(),S3(),e5(),j3(),n5(),mt(r5,"default")});function a5(e,t){return t<e?-1:e<t?1:e<=t?0:NaN}var o5=e(()=>{"use strict";mt(a5,"default")});function l5(e){return e}var c5=e(()=>{"use strict";mt(l5,"default")});function h5(){var p=l5,g=a5,f=null,m=T3(0),y=T3(P3),b=T3(0);function t(i){for(var e,t,n,r=(i=K3(i)).length,s=0,a=new Array(r),o=new Array(r),l=+m.apply(this,arguments),c=Math.min(P3,Math.max(-P3,y.apply(this,arguments)-l)),h=Math.min(Math.abs(c)/r,b.apply(this,arguments)),u=h*(c<0?-1:1),d=0;d<r;++d)0<(n=o[a[d]=d]=+p(i[d],d,i))&&(s+=n);for(null!=g?a.sort(function(e,t){return g(o[e],o[t])}):null!=f&&a.sort(function(e,t){return f(i[e],i[t])}),d=0,e=s?(c-r*u)/s:0;d<r;++d,l=t)t=a[d],n=o[t],o[t]={data:i[t],index:d,value:n,startAngle:l,endAngle:t=l+(0<n?n*e:0)+u,padAngle:h};return o}return mt(t,"pie"),t.value=function(e){return arguments.length?(p="function"==typeof e?e:T3(+e),t):p},t.sortValues=function(e){return arguments.length?(g=e,f=null,t):g},t.sort=function(e){return arguments.length?(f=e,g=null,t):f},t.startAngle=function(e){return arguments.length?(m="function"==typeof e?e:T3(+e),t):m},t.endAngle=function(e){return arguments.length?(y="function"==typeof e?e:T3(+e),t):y},t.padAngle=function(e){return arguments.length?(b="function"==typeof e?e:T3(+e),t):b},t}var u5=e(()=>{"use strict";Z3(),S3(),o5(),c5(),B3(),mt(h5,"default")});function d5(e){return new g5(e,!0)}function p5(e){return new g5(e,!1)}var g5,f5=e(()=>{"use strict";g5=class{static{mt(this,"Bump")}constructor(e,t){this._context=e,this._x=t}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line}point(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._x?this._context.bezierCurveTo(this._x0=(this._x0+e)/2,this._y0,this._x0,t,e,t):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+t)/2,e,this._y0,e,t)}this._x0=e,this._y0=t}},mt(d5,"bumpX"),mt(p5,"bumpY")});function m5(){}var y5=e(()=>{"use strict";mt(m5,"default")});function b5(e,t,i){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+i)/6)}function v5(e){this._context=e}function x5(e){return new v5(e)}var w5=e(()=>{"use strict";mt(b5,"point"),mt(v5,"Basis"),v5.prototype={areaStart:mt(function(){this._line=0},"areaStart"),areaEnd:mt(function(){this._line=NaN},"areaEnd"),lineStart:mt(function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},"lineStart"),lineEnd:mt(function(){switch(this._point){case 3:b5(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},"lineEnd"),point:mt(function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:b5(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t},"point")},mt(x5,"default")});function k5(e){this._context=e}function T5(e){return new k5(e)}var S5=e(()=>{"use strict";y5(),w5(),mt(k5,"BasisClosed"),k5.prototype={areaStart:m5,areaEnd:m5,lineStart:mt(function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},"lineStart"),lineEnd:mt(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)}},"lineEnd"),point:mt(function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:b5(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t},"point")},mt(T5,"default")});function _5(e){this._context=e}function C5(e){return new _5(e)}var A5=e(()=>{"use strict";w5(),mt(_5,"BasisOpen"),_5.prototype={areaStart:mt(function(){this._line=0},"areaStart"),areaEnd:mt(function(){this._line=NaN},"areaEnd"),lineStart:mt(function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},"lineStart"),lineEnd:mt(function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},"lineEnd"),point:mt(function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var i=(this._x0+4*this._x1+e)/6,n=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(i,n):this._context.moveTo(i,n);break;case 3:this._point=4;default:b5(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t},"point")},mt(C5,"default")});function E5(e,t){this._basis=new v5(e),this._beta=t}var $5,L5=e(()=>{"use strict";w5(),mt(E5,"Bundle"),E5.prototype={lineStart:mt(function(){this._x=[],this._y=[],this._basis.lineStart()},"lineStart"),lineEnd:mt(function(){var e=this._x,t=this._y,i=e.length-1;if(0<i)for(var n,r=e[0],s=t[0],a=e[i]-r,o=t[i]-s,l=-1;++l<=i;)this._basis.point(this._beta*e[l]+(1-this._beta)*(r+(n=l/i)*a),this._beta*t[l]+(1-this._beta)*(s+n*o));this._x=this._y=null,this._basis.lineEnd()},"lineEnd"),point:mt(function(e,t){this._x.push(+e),this._y.push(+t)},"point")},$5=mt(function t(i){function e(e){return 1===i?new v5(e):new E5(e,i)}return mt(e,"bundle"),e.beta=function(e){return t(+e)},e},"custom")(.85)});function R5(e,t,i){e._context.bezierCurveTo(e._x1+e._k*(e._x2-e._x0),e._y1+e._k*(e._y2-e._y0),e._x2+e._k*(e._x1-t),e._y2+e._k*(e._y1-i),e._x2,e._y2)}function M5(e,t){this._context=e,this._k=(1-t)/6}var I5,N5=e(()=>{"use strict";mt(R5,"point"),mt(M5,"Cardinal"),M5.prototype={areaStart:mt(function(){this._line=0},"areaStart"),areaEnd:mt(function(){this._line=NaN},"areaEnd"),lineStart:mt(function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},"lineStart"),lineEnd:mt(function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:R5(this,this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},"lineEnd"),point:mt(function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2,this._x1=e,this._y1=t;break;case 2:this._point=3;default:R5(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t},"point")},I5=mt(function t(i){function e(e){return new M5(e,i)}return mt(e,"cardinal"),e.tension=function(e){return t(+e)},e},"custom")(0)});function D5(e,t){this._context=e,this._k=(1-t)/6}var O5,P5=e(()=>{"use strict";y5(),N5(),mt(D5,"CardinalClosed"),D5.prototype={areaStart:m5,areaEnd:m5,lineStart:mt(function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},"lineStart"),lineEnd:mt(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)}},"lineEnd"),point:mt(function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:R5(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t},"point")},O5=mt(function t(i){function e(e){return new D5(e,i)}return mt(e,"cardinal"),e.tension=function(e){return t(+e)},e},"custom")(0)});function B5(e,t){this._context=e,this._k=(1-t)/6}var F5,j5=e(()=>{"use strict";N5(),mt(B5,"CardinalOpen"),B5.prototype={areaStart:mt(function(){this._line=0},"areaStart"),areaEnd:mt(function(){this._line=NaN},"areaEnd"),lineStart:mt(function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},"lineStart"),lineEnd:mt(function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},"lineEnd"),point:mt(function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:R5(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t},"point")},F5=mt(function t(i){function e(e){return new B5(e,i)}return mt(e,"cardinal"),e.tension=function(e){return t(+e)},e},"custom")(0)});function z5(e,t,i){var n,r,s=e._x1,a=e._y1,o=e._x2,l=e._y2;e._l01_a>N3&&(n=2*e._l01_2a+3*e._l01_a*e._l12_a+e._l12_2a,r=3*e._l01_a*(e._l01_a+e._l12_a),s=(s*n-e._x0*e._l12_2a+e._x2*e._l01_2a)/r,a=(a*n-e._y0*e._l12_2a+e._y2*e._l01_2a)/r),e._l23_a>N3&&(n=2*e._l23_2a+3*e._l23_a*e._l12_a+e._l12_2a,r=3*e._l23_a*(e._l23_a+e._l12_a),o=(o*n+e._x1*e._l23_2a-t*e._l12_2a)/r,l=(l*n+e._y1*e._l23_2a-i*e._l12_2a)/r),e._context.bezierCurveTo(s,a,o,l,e._x2,e._y2)}function H5(e,t){this._context=e,this._alpha=t}var U5,q5=e(()=>{"use strict";B3(),N5(),mt(z5,"point"),mt(H5,"CatmullRom"),H5.prototype={areaStart:mt(function(){this._line=0},"areaStart"),areaEnd:mt(function(){this._line=NaN},"areaEnd"),lineStart:mt(function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},"lineStart"),lineEnd:mt(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},"lineEnd"),point:mt(function(e,t){var i,n;switch(e=+e,t=+t,this._point&&(i=this._x2-e,n=this._y2-t,this._l23_a=Math.sqrt(this._l23_2a=Math.pow(i*i+n*n,this._alpha))),this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3;default:z5(this,e,t)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t},"point")},U5=mt(function t(i){function e(e){return i?new H5(e,i):new M5(e,0)}return mt(e,"catmullRom"),e.alpha=function(e){return t(+e)},e},"custom")(.5)});function W5(e,t){this._context=e,this._alpha=t}var V5,G5=e(()=>{"use strict";P5(),y5(),q5(),mt(W5,"CatmullRomClosed"),W5.prototype={areaStart:m5,areaEnd:m5,lineStart:mt(function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},"lineStart"),lineEnd:mt(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)}},"lineEnd"),point:mt(function(e,t){var i,n;switch(e=+e,t=+t,this._point&&(i=this._x2-e,n=this._y2-t,this._l23_a=Math.sqrt(this._l23_2a=Math.pow(i*i+n*n,this._alpha))),this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:z5(this,e,t)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t},"point")},V5=mt(function t(i){function e(e){return i?new W5(e,i):new D5(e,0)}return mt(e,"catmullRom"),e.alpha=function(e){return t(+e)},e},"custom")(.5)});function Y5(e,t){this._context=e,this._alpha=t}var X5,K5=e(()=>{"use strict";j5(),q5(),mt(Y5,"CatmullRomOpen"),Y5.prototype={areaStart:mt(function(){this._line=0},"areaStart"),areaEnd:mt(function(){this._line=NaN},"areaEnd"),lineStart:mt(function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},"lineStart"),lineEnd:mt(function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},"lineEnd"),point:mt(function(e,t){var i,n;switch(e=+e,t=+t,this._point&&(i=this._x2-e,n=this._y2-t,this._l23_a=Math.sqrt(this._l23_2a=Math.pow(i*i+n*n,this._alpha))),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:z5(this,e,t)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t},"point")},X5=mt(function t(i){function e(e){return i?new Y5(e,i):new B5(e,0)}return mt(e,"catmullRom"),e.alpha=function(e){return t(+e)},e},"custom")(.5)});function Z5(e){this._context=e}function Q5(e){return new Z5(e)}var J5=e(()=>{"use strict";y5(),mt(Z5,"LinearClosed"),Z5.prototype={areaStart:m5,areaEnd:m5,lineStart:mt(function(){this._point=0},"lineStart"),lineEnd:mt(function(){this._point&&this._context.closePath()},"lineEnd"),point:mt(function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))},"point")},mt(Q5,"default")});function ew(e){return e<0?-1:1}function tw(e,t,i){var n=e._x1-e._x0,t=t-e._x1,r=(e._y1-e._y0)/(n||t<0&&-0),i=(i-e._y1)/(t||n<0&&-0),e=(r*t+i*n)/(n+t);return(ew(r)+ew(i))*Math.min(Math.abs(r),Math.abs(i),.5*Math.abs(e))||0}function iw(e,t){var i=e._x1-e._x0;return i?(3*(e._y1-e._y0)/i-t)/2:t}function nw(e,t,i){var n=e._x0,r=e._y0,s=e._x1,a=e._y1,o=(s-n)/3;e._context.bezierCurveTo(n+o,r+o*t,s-o,a-o*i,s,a)}function rw(e){this._context=e}function sw(e){this._context=new aw(e)}function aw(e){this._context=e}function ow(e){return new rw(e)}function lw(e){return new sw(e)}var cw=e(()=>{"use strict";mt(ew,"sign"),mt(tw,"slope3"),mt(iw,"slope2"),mt(nw,"point"),mt(rw,"MonotoneX"),rw.prototype={areaStart:mt(function(){this._line=0},"areaStart"),areaEnd:mt(function(){this._line=NaN},"areaEnd"),lineStart:mt(function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},"lineStart"),lineEnd:mt(function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:nw(this,this._t0,iw(this,this._t0))}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},"lineEnd"),point:mt(function(e,t){var i=NaN;if(t=+t,(e=+e)!==this._x1||t!==this._y1){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,nw(this,iw(this,i=tw(this,e,t)),i);break;default:nw(this,this._t0,i=tw(this,e,t))}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=i}},"point")},mt(sw,"MonotoneY"),(sw.prototype=Object.create(rw.prototype)).point=function(e,t){rw.prototype.point.call(this,t,e)},mt(aw,"ReflectContext"),aw.prototype={moveTo:mt(function(e,t){this._context.moveTo(t,e)},"moveTo"),closePath:mt(function(){this._context.closePath()},"closePath"),lineTo:mt(function(e,t){this._context.lineTo(t,e)},"lineTo"),bezierCurveTo:mt(function(e,t,i,n,r,s){this._context.bezierCurveTo(t,e,n,i,s,r)},"bezierCurveTo")},mt(ow,"monotoneX"),mt(lw,"monotoneY")});function hw(e){this._context=e}function uw(e){var t,i,n=e.length-1,r=new Array(n),s=new Array(n),a=new Array(n);for(s[r[0]=0]=2,a[0]=e[0]+2*e[1],t=1;t<n-1;++t)r[t]=1,s[t]=4,a[t]=4*e[t]+2*e[t+1];for(r[n-1]=2,s[n-1]=7,a[n-1]=8*e[n-1]+e[n],t=1;t<n;++t)i=r[t]/s[t-1],s[t]-=i,a[t]-=i*a[t-1];for(r[n-1]=a[n-1]/s[n-1],t=n-2;0<=t;--t)r[t]=(a[t]-r[t+1])/s[t];for(s[n-1]=(e[n]+r[n-1])/2,t=0;t<n-1;++t)s[t]=2*e[t+1]-r[t+1];return[r,s]}function dw(e){return new hw(e)}var pw=e(()=>{"use strict";mt(hw,"Natural"),hw.prototype={areaStart:mt(function(){this._line=0},"areaStart"),areaEnd:mt(function(){this._line=NaN},"areaEnd"),lineStart:mt(function(){this._x=[],this._y=[]},"lineStart"),lineEnd:mt(function(){var e=this._x,t=this._y,i=e.length;if(i)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),2===i)this._context.lineTo(e[1],t[1]);else for(var n=uw(e),r=uw(t),s=0,a=1;a<i;++s,++a)this._context.bezierCurveTo(n[0][s],r[0][s],n[1][s],r[1][s],e[a],t[a]);(this._line||0!==this._line&&1===i)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},"lineEnd"),point:mt(function(e,t){this._x.push(+e),this._y.push(+t)},"point")},mt(uw,"controlPoints"),mt(dw,"default")});function gw(e,t){this._context=e,this._t=t}function fw(e){return new gw(e,.5)}function mw(e){return new gw(e,0)}function yw(e){return new gw(e,1)}var bw=e(()=>{"use strict";mt(gw,"Step"),gw.prototype={areaStart:mt(function(){this._line=0},"areaStart"),areaEnd:mt(function(){this._line=NaN},"areaEnd"),lineStart:mt(function(){this._x=this._y=NaN,this._point=0},"lineStart"),lineEnd:mt(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(),0<=this._line&&(this._t=1-this._t,this._line=1-this._line)},"lineEnd"),point:mt(function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:var i;this._t<=0?(this._context.lineTo(this._x,t),this._context.lineTo(e,t)):(i=this._x*(1-this._t)+e*this._t,this._context.lineTo(i,this._y),this._context.lineTo(i,t))}this._x=e,this._y=t},"point")},mt(fw,"default"),mt(mw,"stepBefore"),mt(yw,"stepAfter")}),vw=e(()=>{"use strict";X3(),s5(),u5(),S5(),A5(),w5(),f5(),L5(),P5(),j5(),N5(),G5(),K5(),q5(),J5(),e5(),cw(),pw(),bw()}),xw=e(()=>{}),ww=e(()=>{});function kw(e,t,i){this.k=e,this.x=t,this.y=i}function Tw(e){for(;!e.__zoom;)if(!(e=e.parentNode))return Sw;return e.__zoom}var Sw,_w,Cw,Aw,Ew,$w,Lw,Rw,Mw,Iw,Nw,Dw,Ow,Pw,Bw,Fw,jw,zw,Hw,Uw,qw,Ww,Vw,Gw,Yw,Xw,Kw,Zw,Qw,Jw,e6,t6,i6=e(()=>{"use strict";mt(kw,"Transform"),kw.prototype={constructor:kw,scale:mt(function(e){return 1===e?this:new kw(this.k*e,this.x,this.y)},"scale"),translate:mt(function(e,t){return 0===e&0===t?this:new kw(this.k,this.x+this.k*e,this.y+this.k*t)},"translate"),apply:mt(function(e){return[e[0]*this.k+this.x,e[1]*this.k+this.y]},"apply"),applyX:mt(function(e){return e*this.k+this.x},"applyX"),applyY:mt(function(e){return e*this.k+this.y},"applyY"),invert:mt(function(e){return[(e[0]-this.x)/this.k,(e[1]-this.y)/this.k]},"invert"),invertX:mt(function(e){return(e-this.x)/this.k},"invertX"),invertY:mt(function(e){return(e-this.y)/this.k},"invertY"),rescaleX:mt(function(e){return e.copy().domain(e.range().map(this.invertX,this).map(e.invert,e))},"rescaleX"),rescaleY:mt(function(e){return e.copy().domain(e.range().map(this.invertY,this).map(e.invert,e))},"rescaleY"),toString:mt(function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"},"toString")},Sw=new kw(1,0,0),Tw.prototype=kw.prototype,mt(Tw,"transform")}),n6=e(()=>{}),r6=e(()=>{"use strict";eb(),xw(),ww(),i6(),n6()}),s6=e(()=>{"use strict";r6(),i6()}),a6=e(()=>{"use strict";od(),wd(),ub(),wb(),$f(),kb(),Tb(),Md(),S0(),Sb(),Yy(),_b(),Ab(),pv(),gv(),g2(),Em(),xb(),f2(),Cb(),m2(),y3(),k3(),T0(),vw(),B4(),u3(),Qm(),eb(),s6()}),o6=W(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.BLANK_URL=e.relativeFirstCharacters=e.whitespaceEscapeCharsRegex=e.urlSchemeRegex=e.ctrlCharactersRegex=e.htmlCtrlEntityRegex=e.htmlEntitiesRegex=e.invalidProtocolRegex=void 0,e.invalidProtocolRegex=/^([^\w]*)(javascript|data|vbscript)/im,e.htmlEntitiesRegex=/&#(\w+)(^\w|;)?/g,e.htmlCtrlEntityRegex=/&(newline|tab);/gi,e.ctrlCharactersRegex=/[\u0000-\u001F\u007F-\u009F\u2000-\u200D\uFEFF]/gim,e.urlSchemeRegex=/^.+(:|:)/gim,e.whitespaceEscapeCharsRegex=/(\\|%5[cC])((%(6[eE]|72|74))|[nrt])/g,e.relativeFirstCharacters=[".","/"],e.BLANK_URL="about:blank"}),l6=W(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.sanitizeUrl=void 0;var s=o6();function a(e){return-1<s.relativeFirstCharacters.indexOf(e[0])}function o(e){return e.replace(s.ctrlCharactersRegex,"").replace(s.htmlEntitiesRegex,function(e,t){return String.fromCharCode(t)})}function l(e){return URL.canParse(e)}function c(e){try{return decodeURIComponent(e)}catch{return e}}function t(e){if(!e)return s.BLANK_URL;for(var t,i=c(e.trim());(t=(i=c(i=o(i).replace(s.htmlCtrlEntityRegex,"").replace(s.ctrlCharactersRegex,"").replace(s.whitespaceEscapeCharsRegex,"").trim())).match(s.ctrlCharactersRegex)||i.match(s.htmlEntitiesRegex)||i.match(s.htmlCtrlEntityRegex)||i.match(s.whitespaceEscapeCharsRegex))&&0<t.length;);var n,r,e=i;return e?!a(e)&&(r=(n=e.trimStart()).match(s.urlSchemeRegex))?(r=r[0].toLowerCase().trim(),s.invalidProtocolRegex.test(r)?s.BLANK_URL:(n=n.replace(/\\/g,"/"),"mailto:"!==r&&!r.includes("://")&&("http:"===r||"https:"===r)?l(n)?((r=new URL(n)).protocol=r.protocol.toLowerCase(),r.hostname=r.hostname.toLowerCase(),r.toString()):s.BLANK_URL:n)):e:s.BLANK_URL}mt(a,"isRelativeUrlWithoutProtocol"),mt(o,"decodeHtmlCharacters"),mt(l,"isValidUrl"),mt(c,"decodeURI"),mt(t,"sanitizeUrl"),e.sanitizeUrl=t}),c6=e(()=>{"use strict";_w=ie(l6(),1),hh(),Cw=mt((e,t)=>{var i=e.append("rect");if(i.attr("x",t.x),i.attr("y",t.y),i.attr("fill",t.fill),i.attr("stroke",t.stroke),i.attr("width",t.width),i.attr("height",t.height),t.name&&i.attr("name",t.name),t.rx&&i.attr("rx",t.rx),t.ry&&i.attr("ry",t.ry),void 0!==t.attrs)for(var n in t.attrs)i.attr(n,t.attrs[n]);return t.class&&i.attr("class",t.class),i},"drawRect"),Aw=mt((e,t)=>{t={x:t.startx,y:t.starty,width:t.stopx-t.startx,height:t.stopy-t.starty,fill:t.fill,stroke:t.stroke,class:"rect"};Cw(e,t).lower()},"drawBackgroundRect"),Ew=mt((e,t)=>{var i=t.text.replace(Mc," "),e=e.append("text"),n=(e.attr("x",t.x),e.attr("y",t.y),e.attr("class","legend"),e.style("text-anchor",t.anchor),t.class&&e.attr("class",t.class),e.append("tspan"));return n.attr("x",t.x+2*t.textMargin),n.text(i),e},"drawText"),$w=mt((e,t,i,n)=>{e=e.append("image"),e.attr("x",t),e.attr("y",i),t=(0,_w.sanitizeUrl)(n);e.attr("xlink:href",t)},"drawImage"),Lw=mt((e,t,i,n)=>{e=e.append("use"),e.attr("x",t),e.attr("y",i),t=(0,_w.sanitizeUrl)(n);e.attr("xlink:href","#"+t)},"drawEmbeddedImage"),Rw=mt(()=>({x:0,y:0,width:100,height:100,fill:"#EDF2AE",stroke:"#666",anchor:"start",rx:0,ry:0}),"getNoteRect"),Mw=mt(()=>({x:0,y:0,width:100,height:100,"text-anchor":"start",style:"#666",textMargin:0,rx:0,ry:0,tspan:!0}),"getTextObj")}),h6=e(()=>{"use strict";function t(e,t,i,n,r,s,a){g(t.append("text").attr("x",i+r/2).attr("y",n+s/2+5).style("text-anchor","middle").text(e),a)}function l(e,t,i,n,r,s,a,o){var{fontSize:l,fontFamily:c,fontWeight:h}=o,u=e.split($.lineBreakRegex);for(let e=0;e<u.length;e++){var d=e*l-l*(u.length-1)/2,p=t.append("text").attr("x",i+r/2).attr("y",n).style("text-anchor","middle").attr("dominant-baseline","middle").style("font-size",l).style("font-weight",h).style("font-family",c);p.append("tspan").attr("dy",d).text(u[e]).attr("alignment-baseline","mathematical"),g(p,a)}}function i(e,t,i,n,r,s,a,o){t=t.append("switch"),s=t.append("foreignObject").attr("x",i).attr("y",n).attr("width",r).attr("height",s).append("xhtml:div").style("display","table").style("height","100%").style("width","100%");s.append("div").style("display","table-cell").style("text-align","center").style("vertical-align","middle").text(e),l(e,t,i,n,r,0,a,o),g(s,a)}function g(e,t){for(var i in t)t.hasOwnProperty(i)&&e.attr(i,t[i])}hh(),c6(),Iw=ie(l6(),1),Nw=mt(function(e,t){return Cw(e,t)},"drawRect"),Dw=mt(function(e,t,i,n,r,s){e=e.append("image"),e.attr("width",t),e.attr("height",i),e.attr("x",n),e.attr("y",r),t=s.startsWith("data:image/png;base64")?s:(0,Iw.sanitizeUrl)(s);e.attr("xlink:href",t)},"drawImage"),Ow=mt((e,t,i)=>{let n=e.append("g"),r=0;for(var s of t){var a,o=s.textColor||"#444444",l=s.lineColor||"#444444",c=s.offsetX?parseInt(s.offsetX):0,h=s.offsetY?parseInt(s.offsetY):0,l=(0===r?((a=n.append("line")).attr("x1",s.startPoint.x),a.attr("y1",s.startPoint.y),a.attr("x2",s.endPoint.x),a.attr("y2",s.endPoint.y),a.attr("stroke-width","1"),a.attr("stroke",l),a.style("fill","none"),"rel_b"!==s.type&&a.attr("marker-end","url(#arrowhead)"),"birel"!==s.type&&"rel_b"!==s.type||a.attr("marker-start","url(#arrowend)"),r=-1):((a=n.append("path")).attr("fill","none").attr("stroke-width","1").attr("stroke",l).attr("d","Mstartx,starty Qcontrolx,controly stopx,stopy ".replaceAll("startx",s.startPoint.x).replaceAll("starty",s.startPoint.y).replaceAll("controlx",s.startPoint.x+(s.endPoint.x-s.startPoint.x)/2-(s.endPoint.x-s.startPoint.x)/4).replaceAll("controly",s.startPoint.y+(s.endPoint.y-s.startPoint.y)/2).replaceAll("stopx",s.endPoint.x).replaceAll("stopy",s.endPoint.y)),"rel_b"!==s.type&&a.attr("marker-end","url(#arrowhead)"),"birel"!==s.type&&"rel_b"!==s.type||a.attr("marker-start","url(#arrowend)")),i.messageFont());Yw(i)(s.label.text,n,Math.min(s.startPoint.x,s.endPoint.x)+Math.abs(s.endPoint.x-s.startPoint.x)/2+c,Math.min(s.startPoint.y,s.endPoint.y)+Math.abs(s.endPoint.y-s.startPoint.y)/2+h,s.label.width,s.label.height,{fill:o},l),s.techn&&""!==s.techn.text&&(l=i.messageFont(),Yw(i)("["+s.techn.text+"]",n,Math.min(s.startPoint.x,s.endPoint.x)+Math.abs(s.endPoint.x-s.startPoint.x)/2+c,Math.min(s.startPoint.y,s.endPoint.y)+Math.abs(s.endPoint.y-s.startPoint.y)/2+i.messageFontSize+5+h,Math.max(s.label.width,s.techn.width),s.techn.height,{fill:o,"font-style":"italic"},l))}},"drawRels"),Pw=mt(function(e,t,i){let n=e.append("g"),r=t.bgColor||"none",s=t.borderColor||"#444444",a=t.fontColor||"black",o={"stroke-width":1,"stroke-dasharray":"7.0,7.0"};t.nodeType&&(o={"stroke-width":1});e={x:t.x,y:t.y,fill:r,stroke:s,width:t.width,height:t.height,rx:2.5,ry:2.5,attrs:o};Nw(n,e);let l=i.boundaryFont();l.fontWeight="bold",l.fontSize=l.fontSize+2,l.fontColor=a,Yw(i)(t.label.text,n,t.x,t.y+t.label.Y,t.width,t.height,{fill:"#444444"},l),t.type&&""!==t.type.text&&((l=i.boundaryFont()).fontColor=a,Yw(i)(t.type.text,n,t.x,t.y+t.type.Y,t.width,t.height,{fill:"#444444"},l)),t.descr&&""!==t.descr.text&&((l=i.boundaryFont()).fontSize=l.fontSize-2,l.fontColor=a,Yw(i)(t.descr.text,n,t.x,t.y+t.descr.Y,t.width,t.height,{fill:"#444444"},l))},"drawBoundary"),Bw=mt(function(e,t,i){let n=t.bgColor||i[t.typeC4Shape.text+"_bg_color"],r=t.borderColor||i[t.typeC4Shape.text+"_border_color"],s=t.fontColor||"#FFFFFF",a="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAIAAADYYG7QAAACD0lEQVR4Xu2YoU4EMRCGT+4j8Ai8AhaH4QHgAUjQuFMECUgMIUgwJAgMhgQsAYUiJCiQIBBY+EITsjfTdme6V24v4c8vyGbb+ZjOtN0bNcvjQXmkH83WvYBWto6PLm6v7p7uH1/w2fXD+PBycX1Pv2l3IdDm/vn7x+dXQiAubRzoURa7gRZWd0iGRIiJbOnhnfYBQZNJjNbuyY2eJG8fkDE3bbG4ep6MHUAsgYxmE3nVs6VsBWJSGccsOlFPmLIViMzLOB7pCVO2AtHJMohH7Fh6zqitQK7m0rJvAVYgGcEpe//PLdDz65sM4pF9N7ICcXDKIB5Nv6j7tD0NoSdM2QrU9Gg0ewE1LqBhHR3BBdvj2vapnidjHxD/q6vd7Pvhr31AwcY8eXMTXAKECZZJFXuEq27aLgQK5uLMohCenGGuGewOxSjBvYBqeG6B+Nqiblggdjnc+ZXDy+FNFpFzw76O3UBAROuXh6FoiAcf5g9eTvUgzy0nWg6I8cXHRUpg5bOVBCo+KDpFajOf23GgPme7RSQ+lacIENUgJ6gg1k6HjgOlqnLqip4tEuhv0hNEMXUD0clyXE3p6pZA0S2nnvTlXwLJEZWlb7cTQH1+USgTN4VhAenm/wea1OCAOmqo6fE1WCb9WSKBah+rbUWPWAmE2Rvk0ApiB45eOyNAzU8xcTvj8KvkKEoOaIYeHNA3ZuygAvFMUO0AAAAASUVORK5CYII=";switch(t.typeC4Shape.text){case"person":a="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":a="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAIAAADYYG7QAAAB6ElEQVR4Xu2YLY+EMBCG9+dWr0aj0Wg0Go1Go0+j8Xdv2uTCvv1gpt0ebHKPuhDaeW4605Z9mJvx4AdXUyTUdd08z+u6flmWZRnHsWkafk9DptAwDPu+f0eAYtu2PEaGWuj5fCIZrBAC2eLBAnRCsEkkxmeaJp7iDJ2QMDdHsLg8SxKFEJaAo8lAXnmuOFIhTMpxxKATebo4UiFknuNo4OniSIXQyRxEA3YsnjGCVEjVXD7yLUAqxBGUyPv/Y4W2beMgGuS7kVQIBycH0fD+oi5pezQETxdHKmQKGk1eQEYldK+jw5GxPfZ9z7Mk0Qnhf1W1m3w//EUn5BDmSZsbR44QQLBEqrBHqOrmSKaQAxdnLArCrxZcM7A7ZKs4ioRq8LFC+NpC3WCBJsvpVw5edm9iEXFuyNfxXAgSwfrFQ1c0iNda8AdejvUgnktOtJQQxmcfFzGglc5WVCj7oDgFqU18boeFSs52CUh8LE8BIVQDT1ABrB0HtgSEYlX5doJnCwv9TXocKCaKbnwhdDKPq4lf3SwU3HLq4V/+WYhHVMa/3b4IlfyikAduCkcBc7mQ3/z/Qq/cTuikhkzB12Ae/mcJC9U+Vo8Ej1gWAtgbeGgFsAMHr50BIWOLCbezvhpBFUdY6EJuJ/QDW0XoMX60zZ0AAAAASUVORK5CYII="}var o=e.append("g"),l=(o.attr("class","person-man"),Rw());switch(t.typeC4Shape.text){case"person":case"external_person":case"system":case"external_system":case"container":case"external_container":case"component":case"external_component":l.x=t.x,l.y=t.y,l.fill=n,l.width=t.width,l.height=t.height,l.stroke=r,l.rx=2.5,l.ry=2.5,l.attrs={"stroke-width":.5},Nw(o,l);break;case"system_db":case"external_system_db":case"container_db":case"external_container_db":case"component_db":case"external_component_db":o.append("path").attr("fill",n).attr("stroke-width","0.5").attr("stroke",r).attr("d","Mstartx,startyc0,-10 half,-10 half,-10c0,0 half,0 half,10l0,heightc0,10 -half,10 -half,10c0,0 -half,0 -half,-10l0,-height".replaceAll("startx",t.x).replaceAll("starty",t.y).replaceAll("half",t.width/2).replaceAll("height",t.height)),o.append("path").attr("fill","none").attr("stroke-width","0.5").attr("stroke",r).attr("d","Mstartx,startyc0,10 half,10 half,10c0,0 half,0 half,-10".replaceAll("startx",t.x).replaceAll("starty",t.y).replaceAll("half",t.width/2));break;case"system_queue":case"external_system_queue":case"container_queue":case"external_container_queue":case"component_queue":case"external_component_queue":o.append("path").attr("fill",n).attr("stroke-width","0.5").attr("stroke",r).attr("d","Mstartx,startylwidth,0c5,0 5,half 5,halfc0,0 0,half -5,halfl-width,0c-5,0 -5,-half -5,-halfc0,0 0,-half 5,-half".replaceAll("startx",t.x).replaceAll("starty",t.y).replaceAll("width",t.width).replaceAll("half",t.height/2)),o.append("path").attr("fill","none").attr("stroke-width","0.5").attr("stroke",r).attr("d","Mstartx,startyc-5,0 -5,half -5,halfc0,half 5,half 5,half".replaceAll("startx",t.x+t.width).replaceAll("starty",t.y).replaceAll("half",t.height/2))}e=Gw(i,t.typeC4Shape.text);switch(o.append("text").attr("fill",s).attr("font-family",e.fontFamily).attr("font-size",e.fontSize-2).attr("font-style","italic").attr("lengthAdjust","spacing").attr("textLength",t.typeC4Shape.width).attr("x",t.x+t.width/2-t.typeC4Shape.width/2).attr("y",t.y+t.typeC4Shape.Y).text("<<"+t.typeC4Shape.text+">>"),t.typeC4Shape.text){case"person":case"external_person":Dw(o,48,48,t.x+t.width/2-24,t.y+t.image.Y,a)}let c=i[t.typeC4Shape.text+"Font"]();return c.fontWeight="bold",c.fontSize=c.fontSize+2,c.fontColor=s,Yw(i)(t.label.text,o,t.x,t.y+t.label.Y,t.width,t.height,{fill:s},c),(c=i[t.typeC4Shape.text+"Font"]()).fontColor=s,t.techn&&""!==t.techn?.text?Yw(i)(t.techn.text,o,t.x,t.y+t.techn.Y,t.width,t.height,{fill:s,"font-style":"italic"},c):t.type&&""!==t.type.text&&Yw(i)(t.type.text,o,t.x,t.y+t.type.Y,t.width,t.height,{fill:s,"font-style":"italic"},c),t.descr&&""!==t.descr.text&&((c=i.personFont()).fontColor=s,Yw(i)(t.descr.text,o,t.x,t.y+t.descr.Y,t.width,t.height,{fill:s},c)),t.height},"drawC4Shape"),Fw=mt(function(e){e.append("defs").append("symbol").attr("id","database").attr("fill-rule","evenodd").attr("clip-rule","evenodd").append("path").attr("transform","scale(.5)").attr("d","M12.258.001l.256.004.255.005.253.008.251.01.249.012.247.015.246.016.242.019.241.02.239.023.236.024.233.027.231.028.229.031.225.032.223.034.22.036.217.038.214.04.211.041.208.043.205.045.201.046.198.048.194.05.191.051.187.053.183.054.18.056.175.057.172.059.168.06.163.061.16.063.155.064.15.066.074.033.073.033.071.034.07.034.069.035.068.035.067.035.066.035.064.036.064.036.062.036.06.036.06.037.058.037.058.037.055.038.055.038.053.038.052.038.051.039.05.039.048.039.047.039.045.04.044.04.043.04.041.04.04.041.039.041.037.041.036.041.034.041.033.042.032.042.03.042.029.042.027.042.026.043.024.043.023.043.021.043.02.043.018.044.017.043.015.044.013.044.012.044.011.045.009.044.007.045.006.045.004.045.002.045.001.045v17l-.001.045-.002.045-.004.045-.006.045-.007.045-.009.044-.011.045-.012.044-.013.044-.015.044-.017.043-.018.044-.02.043-.021.043-.023.043-.024.043-.026.043-.027.042-.029.042-.03.042-.032.042-.033.042-.034.041-.036.041-.037.041-.039.041-.04.041-.041.04-.043.04-.044.04-.045.04-.047.039-.048.039-.05.039-.051.039-.052.038-.053.038-.055.038-.055.038-.058.037-.058.037-.06.037-.06.036-.062.036-.064.036-.064.036-.066.035-.067.035-.068.035-.069.035-.07.034-.071.034-.073.033-.074.033-.15.066-.155.064-.16.063-.163.061-.168.06-.172.059-.175.057-.18.056-.183.054-.187.053-.191.051-.194.05-.198.048-.201.046-.205.045-.208.043-.211.041-.214.04-.217.038-.22.036-.223.034-.225.032-.229.031-.231.028-.233.027-.236.024-.239.023-.241.02-.242.019-.246.016-.247.015-.249.012-.251.01-.253.008-.255.005-.256.004-.258.001-.258-.001-.256-.004-.255-.005-.253-.008-.251-.01-.249-.012-.247-.015-.245-.016-.243-.019-.241-.02-.238-.023-.236-.024-.234-.027-.231-.028-.228-.031-.226-.032-.223-.034-.22-.036-.217-.038-.214-.04-.211-.041-.208-.043-.204-.045-.201-.046-.198-.048-.195-.05-.19-.051-.187-.053-.184-.054-.179-.056-.176-.057-.172-.059-.167-.06-.164-.061-.159-.063-.155-.064-.151-.066-.074-.033-.072-.033-.072-.034-.07-.034-.069-.035-.068-.035-.067-.035-.066-.035-.064-.036-.063-.036-.062-.036-.061-.036-.06-.037-.058-.037-.057-.037-.056-.038-.055-.038-.053-.038-.052-.038-.051-.039-.049-.039-.049-.039-.046-.039-.046-.04-.044-.04-.043-.04-.041-.04-.04-.041-.039-.041-.037-.041-.036-.041-.034-.041-.033-.042-.032-.042-.03-.042-.029-.042-.027-.042-.026-.043-.024-.043-.023-.043-.021-.043-.02-.043-.018-.044-.017-.043-.015-.044-.013-.044-.012-.044-.011-.045-.009-.044-.007-.045-.006-.045-.004-.045-.002-.045-.001-.045v-17l.001-.045.002-.045.004-.045.006-.045.007-.045.009-.044.011-.045.012-.044.013-.044.015-.044.017-.043.018-.044.02-.043.021-.043.023-.043.024-.043.026-.043.027-.042.029-.042.03-.042.032-.042.033-.042.034-.041.036-.041.037-.041.039-.041.04-.041.041-.04.043-.04.044-.04.046-.04.046-.039.049-.039.049-.039.051-.039.052-.038.053-.038.055-.038.056-.038.057-.037.058-.037.06-.037.061-.036.062-.036.063-.036.064-.036.066-.035.067-.035.068-.035.069-.035.07-.034.072-.034.072-.033.074-.033.151-.066.155-.064.159-.063.164-.061.167-.06.172-.059.176-.057.179-.056.184-.054.187-.053.19-.051.195-.05.198-.048.201-.046.204-.045.208-.043.211-.041.214-.04.217-.038.22-.036.223-.034.226-.032.228-.031.231-.028.234-.027.236-.024.238-.023.241-.02.243-.019.245-.016.247-.015.249-.012.251-.01.253-.008.255-.005.256-.004.258-.001.258.001zm-9.258 20.499v.01l.001.021.003.021.004.022.005.021.006.022.007.022.009.023.01.022.011.023.012.023.013.023.015.023.016.024.017.023.018.024.019.024.021.024.022.025.023.024.024.025.052.049.056.05.061.051.066.051.07.051.075.051.079.052.084.052.088.052.092.052.097.052.102.051.105.052.11.052.114.051.119.051.123.051.127.05.131.05.135.05.139.048.144.049.147.047.152.047.155.047.16.045.163.045.167.043.171.043.176.041.178.041.183.039.187.039.19.037.194.035.197.035.202.033.204.031.209.03.212.029.216.027.219.025.222.024.226.021.23.02.233.018.236.016.24.015.243.012.246.01.249.008.253.005.256.004.259.001.26-.001.257-.004.254-.005.25-.008.247-.011.244-.012.241-.014.237-.016.233-.018.231-.021.226-.021.224-.024.22-.026.216-.027.212-.028.21-.031.205-.031.202-.034.198-.034.194-.036.191-.037.187-.039.183-.04.179-.04.175-.042.172-.043.168-.044.163-.045.16-.046.155-.046.152-.047.148-.048.143-.049.139-.049.136-.05.131-.05.126-.05.123-.051.118-.052.114-.051.11-.052.106-.052.101-.052.096-.052.092-.052.088-.053.083-.051.079-.052.074-.052.07-.051.065-.051.06-.051.056-.05.051-.05.023-.024.023-.025.021-.024.02-.024.019-.024.018-.024.017-.024.015-.023.014-.024.013-.023.012-.023.01-.023.01-.022.008-.022.006-.022.006-.022.004-.022.004-.021.001-.021.001-.021v-4.127l-.077.055-.08.053-.083.054-.085.053-.087.052-.09.052-.093.051-.095.05-.097.05-.1.049-.102.049-.105.048-.106.047-.109.047-.111.046-.114.045-.115.045-.118.044-.12.043-.122.042-.124.042-.126.041-.128.04-.13.04-.132.038-.134.038-.135.037-.138.037-.139.035-.142.035-.143.034-.144.033-.147.032-.148.031-.15.03-.151.03-.153.029-.154.027-.156.027-.158.026-.159.025-.161.024-.162.023-.163.022-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.011-.178.01-.179.008-.179.008-.181.006-.182.005-.182.004-.184.003-.184.002h-.37l-.184-.002-.184-.003-.182-.004-.182-.005-.181-.006-.179-.008-.179-.008-.178-.01-.176-.011-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.022-.162-.023-.161-.024-.159-.025-.157-.026-.156-.027-.155-.027-.153-.029-.151-.03-.15-.03-.148-.031-.146-.032-.145-.033-.143-.034-.141-.035-.14-.035-.137-.037-.136-.037-.134-.038-.132-.038-.13-.04-.128-.04-.126-.041-.124-.042-.122-.042-.12-.044-.117-.043-.116-.045-.113-.045-.112-.046-.109-.047-.106-.047-.105-.048-.102-.049-.1-.049-.097-.05-.095-.05-.093-.052-.09-.051-.087-.052-.085-.053-.083-.054-.08-.054-.077-.054v4.127zm0-5.654v.011l.001.021.003.021.004.021.005.022.006.022.007.022.009.022.01.022.011.023.012.023.013.023.015.024.016.023.017.024.018.024.019.024.021.024.022.024.023.025.024.024.052.05.056.05.061.05.066.051.07.051.075.052.079.051.084.052.088.052.092.052.097.052.102.052.105.052.11.051.114.051.119.052.123.05.127.051.131.05.135.049.139.049.144.048.147.048.152.047.155.046.16.045.163.045.167.044.171.042.176.042.178.04.183.04.187.038.19.037.194.036.197.034.202.033.204.032.209.03.212.028.216.027.219.025.222.024.226.022.23.02.233.018.236.016.24.014.243.012.246.01.249.008.253.006.256.003.259.001.26-.001.257-.003.254-.006.25-.008.247-.01.244-.012.241-.015.237-.016.233-.018.231-.02.226-.022.224-.024.22-.025.216-.027.212-.029.21-.03.205-.032.202-.033.198-.035.194-.036.191-.037.187-.039.183-.039.179-.041.175-.042.172-.043.168-.044.163-.045.16-.045.155-.047.152-.047.148-.048.143-.048.139-.05.136-.049.131-.05.126-.051.123-.051.118-.051.114-.052.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.051.07-.052.065-.051.06-.05.056-.051.051-.049.023-.025.023-.024.021-.025.02-.024.019-.024.018-.024.017-.024.015-.023.014-.023.013-.024.012-.022.01-.023.01-.023.008-.022.006-.022.006-.022.004-.021.004-.022.001-.021.001-.021v-4.139l-.077.054-.08.054-.083.054-.085.052-.087.053-.09.051-.093.051-.095.051-.097.05-.1.049-.102.049-.105.048-.106.047-.109.047-.111.046-.114.045-.115.044-.118.044-.12.044-.122.042-.124.042-.126.041-.128.04-.13.039-.132.039-.134.038-.135.037-.138.036-.139.036-.142.035-.143.033-.144.033-.147.033-.148.031-.15.03-.151.03-.153.028-.154.028-.156.027-.158.026-.159.025-.161.024-.162.023-.163.022-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.011-.178.009-.179.009-.179.007-.181.007-.182.005-.182.004-.184.003-.184.002h-.37l-.184-.002-.184-.003-.182-.004-.182-.005-.181-.007-.179-.007-.179-.009-.178-.009-.176-.011-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.022-.162-.023-.161-.024-.159-.025-.157-.026-.156-.027-.155-.028-.153-.028-.151-.03-.15-.03-.148-.031-.146-.033-.145-.033-.143-.033-.141-.035-.14-.036-.137-.036-.136-.037-.134-.038-.132-.039-.13-.039-.128-.04-.126-.041-.124-.042-.122-.043-.12-.043-.117-.044-.116-.044-.113-.046-.112-.046-.109-.046-.106-.047-.105-.048-.102-.049-.1-.049-.097-.05-.095-.051-.093-.051-.09-.051-.087-.053-.085-.052-.083-.054-.08-.054-.077-.054v4.139zm0-5.666v.011l.001.02.003.022.004.021.005.022.006.021.007.022.009.023.01.022.011.023.012.023.013.023.015.023.016.024.017.024.018.023.019.024.021.025.022.024.023.024.024.025.052.05.056.05.061.05.066.051.07.051.075.052.079.051.084.052.088.052.092.052.097.052.102.052.105.051.11.052.114.051.119.051.123.051.127.05.131.05.135.05.139.049.144.048.147.048.152.047.155.046.16.045.163.045.167.043.171.043.176.042.178.04.183.04.187.038.19.037.194.036.197.034.202.033.204.032.209.03.212.028.216.027.219.025.222.024.226.021.23.02.233.018.236.017.24.014.243.012.246.01.249.008.253.006.256.003.259.001.26-.001.257-.003.254-.006.25-.008.247-.01.244-.013.241-.014.237-.016.233-.018.231-.02.226-.022.224-.024.22-.025.216-.027.212-.029.21-.03.205-.032.202-.033.198-.035.194-.036.191-.037.187-.039.183-.039.179-.041.175-.042.172-.043.168-.044.163-.045.16-.045.155-.047.152-.047.148-.048.143-.049.139-.049.136-.049.131-.051.126-.05.123-.051.118-.052.114-.051.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.052.07-.051.065-.051.06-.051.056-.05.051-.049.023-.025.023-.025.021-.024.02-.024.019-.024.018-.024.017-.024.015-.023.014-.024.013-.023.012-.023.01-.022.01-.023.008-.022.006-.022.006-.022.004-.022.004-.021.001-.021.001-.021v-4.153l-.077.054-.08.054-.083.053-.085.053-.087.053-.09.051-.093.051-.095.051-.097.05-.1.049-.102.048-.105.048-.106.048-.109.046-.111.046-.114.046-.115.044-.118.044-.12.043-.122.043-.124.042-.126.041-.128.04-.13.039-.132.039-.134.038-.135.037-.138.036-.139.036-.142.034-.143.034-.144.033-.147.032-.148.032-.15.03-.151.03-.153.028-.154.028-.156.027-.158.026-.159.024-.161.024-.162.023-.163.023-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.01-.178.01-.179.009-.179.007-.181.006-.182.006-.182.004-.184.003-.184.001-.185.001-.185-.001-.184-.001-.184-.003-.182-.004-.182-.006-.181-.006-.179-.007-.179-.009-.178-.01-.176-.01-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.023-.162-.023-.161-.024-.159-.024-.157-.026-.156-.027-.155-.028-.153-.028-.151-.03-.15-.03-.148-.032-.146-.032-.145-.033-.143-.034-.141-.034-.14-.036-.137-.036-.136-.037-.134-.038-.132-.039-.13-.039-.128-.041-.126-.041-.124-.041-.122-.043-.12-.043-.117-.044-.116-.044-.113-.046-.112-.046-.109-.046-.106-.048-.105-.048-.102-.048-.1-.05-.097-.049-.095-.051-.093-.051-.09-.052-.087-.052-.085-.053-.083-.053-.08-.054-.077-.054v4.153zm8.74-8.179l-.257.004-.254.005-.25.008-.247.011-.244.012-.241.014-.237.016-.233.018-.231.021-.226.022-.224.023-.22.026-.216.027-.212.028-.21.031-.205.032-.202.033-.198.034-.194.036-.191.038-.187.038-.183.04-.179.041-.175.042-.172.043-.168.043-.163.045-.16.046-.155.046-.152.048-.148.048-.143.048-.139.049-.136.05-.131.05-.126.051-.123.051-.118.051-.114.052-.11.052-.106.052-.101.052-.096.052-.092.052-.088.052-.083.052-.079.052-.074.051-.07.052-.065.051-.06.05-.056.05-.051.05-.023.025-.023.024-.021.024-.02.025-.019.024-.018.024-.017.023-.015.024-.014.023-.013.023-.012.023-.01.023-.01.022-.008.022-.006.023-.006.021-.004.022-.004.021-.001.021-.001.021.001.021.001.021.004.021.004.022.006.021.006.023.008.022.01.022.01.023.012.023.013.023.014.023.015.024.017.023.018.024.019.024.02.025.021.024.023.024.023.025.051.05.056.05.06.05.065.051.07.052.074.051.079.052.083.052.088.052.092.052.096.052.101.052.106.052.11.052.114.052.118.051.123.051.126.051.131.05.136.05.139.049.143.048.148.048.152.048.155.046.16.046.163.045.168.043.172.043.175.042.179.041.183.04.187.038.191.038.194.036.198.034.202.033.205.032.21.031.212.028.216.027.22.026.224.023.226.022.231.021.233.018.237.016.241.014.244.012.247.011.25.008.254.005.257.004.26.001.26-.001.257-.004.254-.005.25-.008.247-.011.244-.012.241-.014.237-.016.233-.018.231-.021.226-.022.224-.023.22-.026.216-.027.212-.028.21-.031.205-.032.202-.033.198-.034.194-.036.191-.038.187-.038.183-.04.179-.041.175-.042.172-.043.168-.043.163-.045.16-.046.155-.046.152-.048.148-.048.143-.048.139-.049.136-.05.131-.05.126-.051.123-.051.118-.051.114-.052.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.051.07-.052.065-.051.06-.05.056-.05.051-.05.023-.025.023-.024.021-.024.02-.025.019-.024.018-.024.017-.023.015-.024.014-.023.013-.023.012-.023.01-.023.01-.022.008-.022.006-.023.006-.021.004-.022.004-.021.001-.021.001-.021-.001-.021-.001-.021-.004-.021-.004-.022-.006-.021-.006-.023-.008-.022-.01-.022-.01-.023-.012-.023-.013-.023-.014-.023-.015-.024-.017-.023-.018-.024-.019-.024-.02-.025-.021-.024-.023-.024-.023-.025-.051-.05-.056-.05-.06-.05-.065-.051-.07-.052-.074-.051-.079-.052-.083-.052-.088-.052-.092-.052-.096-.052-.101-.052-.106-.052-.11-.052-.114-.052-.118-.051-.123-.051-.126-.051-.131-.05-.136-.05-.139-.049-.143-.048-.148-.048-.152-.048-.155-.046-.16-.046-.163-.045-.168-.043-.172-.043-.175-.042-.179-.041-.183-.04-.187-.038-.191-.038-.194-.036-.198-.034-.202-.033-.205-.032-.21-.031-.212-.028-.216-.027-.22-.026-.224-.023-.226-.022-.231-.021-.233-.018-.237-.016-.241-.014-.244-.012-.247-.011-.25-.008-.254-.005-.257-.004-.26-.001-.26.001z")},"insertDatabaseIcon"),jw=mt(function(e){e.append("defs").append("symbol").attr("id","computer").attr("width","24").attr("height","24").append("path").attr("transform","scale(.5)").attr("d","M2 2v13h20v-13h-20zm18 11h-16v-9h16v9zm-10.228 6l.466-1h3.524l.467 1h-4.457zm14.228 3h-24l2-6h2.104l-1.33 4h18.45l-1.297-4h2.073l2 6zm-5-10h-14v-7h14v7z")},"insertComputerIcon"),zw=mt(function(e){e.append("defs").append("symbol").attr("id","clock").attr("width","24").attr("height","24").append("path").attr("transform","scale(.5)").attr("d","M12 2c5.514 0 10 4.486 10 10s-4.486 10-10 10-10-4.486-10-10 4.486-10 10-10zm0-2c-6.627 0-12 5.373-12 12s5.373 12 12 12 12-5.373 12-12-5.373-12-12-12zm5.848 12.459c.202.038.202.333.001.372-1.907.361-6.045 1.111-6.547 1.111-.719 0-1.301-.582-1.301-1.301 0-.512.77-5.447 1.125-7.445.034-.192.312-.181.343.014l.985 6.238 5.394 1.011z")},"insertClockIcon"),Hw=mt(function(e){e.append("defs").append("marker").attr("id","arrowhead").attr("refX",9).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 z")},"insertArrowHead"),Uw=mt(function(e){e.append("defs").append("marker").attr("id","arrowend").attr("refX",1).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 10 0 L 0 5 L 10 10 z")},"insertArrowEnd"),qw=mt(function(e){e.append("defs").append("marker").attr("id","filled-head").attr("refX",18).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L14,7 L9,1 Z")},"insertArrowFilledHead"),Ww=mt(function(e){e.append("defs").append("marker").attr("id","sequencenumber").attr("refX",15).attr("refY",15).attr("markerWidth",60).attr("markerHeight",40).attr("orient","auto").append("circle").attr("cx",15).attr("cy",15).attr("r",6)},"insertDynamicNumber"),Vw=mt(function(e){e=e.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")},"insertArrowCrossHead"),Gw=mt((e,t)=>({fontFamily:e[t+"FontFamily"],fontSize:e[t+"FontSize"],fontWeight:e[t+"FontWeight"]}),"getC4ShapeFont"),mt(t,"byText"),mt(l,"byTspan"),mt(i,"byFo"),mt(g,"_setTextAttrs"),Yw=function(e){return"fo"===e.textPlacement?i:"old"===e.textPlacement?t:l},Xw={drawRect:Nw,drawBoundary:Pw,drawC4Shape:Bw,drawRels:Ow,drawImage:Dw,insertArrowHead:Hw,insertArrowEnd:Uw,insertArrowFilledHead:qw,insertDynamicNumber:Ww,insertArrowCrossHead:Vw,insertDatabaseIcon:Fw,insertComputerIcon:jw,insertClockIcon:zw}}),u6=e(()=>{"use strict";Kw="object"==typeof global&&global&&global.Object===Object&&global,Zw=Kw}),d6=e(()=>{"use strict";u6(),Qw="object"==typeof self&&self&&self.Object===Object&&self,Qw=Zw||Qw||Function("return this")(),Jw=Qw}),p6=e(()=>{"use strict";d6(),e6=Jw.Symbol,t6=e6});function g6(e){var t=m6.call(e,b6),i=e[b6];try{var n=!(e[b6]=void 0)}catch{}var r=y6.call(e);return n&&(t?e[b6]=i:delete e[b6]),r}var f6,m6,y6,b6,v6,x6=e(()=>{"use strict";p6(),f6=Object.prototype,m6=f6.hasOwnProperty,y6=f6.toString,b6=t6?t6.toStringTag:void 0,mt(g6,"getRawTag"),v6=g6});function w6(e){return T6.call(e)}var k6,T6,S6,_6=e(()=>{"use strict";k6=Object.prototype,T6=k6.toString,mt(w6,"objectToString"),S6=w6});function C6(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":(A6&&A6 in Object(e)?v6:S6)(e)}var A6,E6,$6=e(()=>{"use strict";p6(),x6(),_6(),A6=t6?t6.toStringTag:void 0,mt(C6,"baseGetTag"),E6=C6});function L6(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}var R6,M6=e(()=>{"use strict";mt(L6,"isObject"),R6=L6});function I6(e){return!!R6(e)&&("[object Function]"==(e=E6(e))||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e)}var N6,D6,O6,P6=e(()=>{"use strict";$6(),M6(),mt(I6,"isFunction"),N6=I6}),B6=e(()=>{"use strict";d6(),D6=Jw["__core-js_shared__"],O6=D6});function F6(e){return!!j6&&j6 in e}var j6,z6,H6=e(()=>{"use strict";var e;B6(),e=/[^.]+$/.exec(O6&&O6.keys&&O6.keys.IE_PROTO||""),j6=e?"Symbol(src)_1."+e:"",mt(F6,"isMasked"),z6=F6});function U6(e){if(null!=e){try{return W6.call(e)}catch{}try{return e+""}catch{}}return""}var q6,W6,V6,G6=e(()=>{"use strict";q6=Function.prototype,W6=q6.toString,mt(U6,"toSource"),V6=U6});function Y6(e){return!(!R6(e)||z6(e))&&(N6(e)?J6:K6).test(V6(e))}var X6,K6,Z6,Q6,J6,e8,t8=e(()=>{"use strict";P6(),H6(),M6(),G6(),X6=/[\\^$.*+?()[\]{}|]/g,K6=/^\[object .+?Constructor\]$/,Z6=Function.prototype,Q6=Object.prototype,Z6=Z6.toString,Q6=Q6.hasOwnProperty,J6=RegExp("^"+Z6.call(Q6).replace(X6,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),mt(Y6,"baseIsNative"),e8=Y6});function i8(e,t){return e?.[t]}var n8,r8=e(()=>{"use strict";mt(i8,"getValue"),n8=i8});function s8(e,t){e=n8(e,t);return e8(e)?e:void 0}var a8,o8,l8,c8=e(()=>{"use strict";t8(),r8(),mt(s8,"getNative"),a8=s8}),h8=e(()=>{"use strict";c8(),o8=a8(Object,"create"),l8=o8});function u8(){this.__data__=l8?l8(null):{},this.size=0}var d8,p8=e(()=>{"use strict";h8(),mt(u8,"hashClear"),d8=u8});function g8(e){e=this.has(e)&&delete this.__data__[e];return this.size-=e?1:0,e}var f8,m8=e(()=>{"use strict";mt(g8,"hashDelete"),f8=g8});function y8(e){var t,i=this.__data__;return l8?"__lodash_hash_undefined__"===(t=i[e])?void 0:t:v8.call(i,e)?i[e]:void 0}var b8,v8,x8,w8=e(()=>{"use strict";h8(),b8=Object.prototype,v8=b8.hasOwnProperty,mt(y8,"hashGet"),x8=y8});function k8(e){var t=this.__data__;return l8?void 0!==t[e]:S8.call(t,e)}var T8,S8,_8,C8=e(()=>{"use strict";h8(),T8=Object.prototype,S8=T8.hasOwnProperty,mt(k8,"hashHas"),_8=k8});function A8(e,t){var i=this.__data__;return this.size+=this.has(e)?0:1,i[e]=l8&&void 0===t?"__lodash_hash_undefined__":t,this}var E8,$8=e(()=>{"use strict";h8(),mt(A8,"hashSet"),E8=A8});function L8(e){var t=-1,i=null==e?0:e.length;for(this.clear();++t<i;){var n=e[t];this.set(n[0],n[1])}}var R8,M8=e(()=>{"use strict";p8(),m8(),w8(),C8(),$8(),mt(L8,"Hash"),L8.prototype.clear=d8,L8.prototype.delete=f8,L8.prototype.get=x8,L8.prototype.has=_8,L8.prototype.set=E8,R8=L8});function I8(){this.__data__=[],this.size=0}var N8,D8=e(()=>{"use strict";mt(I8,"listCacheClear"),N8=I8});function O8(e,t){return e===t||e!=e&&t!=t}var P8,B8=e(()=>{"use strict";mt(O8,"eq"),P8=O8});function F8(e,t){for(var i=e.length;i--;)if(P8(e[i][0],t))return i;return-1}var j8,z8=e(()=>{"use strict";B8(),mt(F8,"assocIndexOf"),j8=F8});function H8(e){var t=this.__data__,e=j8(t,e);return!(e<0||(e==t.length-1?t.pop():q8.call(t,e,1),--this.size,0))}var U8,q8,W8,V8=e(()=>{"use strict";z8(),U8=Array.prototype,q8=U8.splice,mt(H8,"listCacheDelete"),W8=H8});function G8(e){var t=this.__data__,e=j8(t,e);return e<0?void 0:t[e][1]}var Y8,X8=e(()=>{"use strict";z8(),mt(G8,"listCacheGet"),Y8=G8});function K8(e){return-1<j8(this.__data__,e)}var Z8,Q8=e(()=>{"use strict";z8(),mt(K8,"listCacheHas"),Z8=K8});function J8(e,t){var i=this.__data__,n=j8(i,e);return n<0?(++this.size,i.push([e,t])):i[n][1]=t,this}var e7,t7=e(()=>{"use strict";z8(),mt(J8,"listCacheSet"),e7=J8});function i7(e){var t=-1,i=null==e?0:e.length;for(this.clear();++t<i;){var n=e[t];this.set(n[0],n[1])}}var n7,r7,s7,a7=e(()=>{"use strict";D8(),V8(),X8(),Q8(),t7(),mt(i7,"ListCache"),i7.prototype.clear=N8,i7.prototype.delete=W8,i7.prototype.get=Y8,i7.prototype.has=Z8,i7.prototype.set=e7,n7=i7}),o7=e(()=>{"use strict";c8(),d6(),r7=a8(Jw,"Map"),s7=r7});function l7(){this.size=0,this.__data__={hash:new R8,map:new(s7||n7),string:new R8}}var c7,h7=e(()=>{"use strict";M8(),a7(),o7(),mt(l7,"mapCacheClear"),c7=l7});function u7(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}var d7,p7=e(()=>{"use strict";mt(u7,"isKeyable"),d7=u7});function g7(e,t){e=e.__data__;return d7(t)?e["string"==typeof t?"string":"hash"]:e.map}var f7,m7=e(()=>{"use strict";p7(),mt(g7,"getMapData"),f7=g7});function y7(e){e=f7(this,e).delete(e);return this.size-=e?1:0,e}var b7,v7=e(()=>{"use strict";m7(),mt(y7,"mapCacheDelete"),b7=y7});function x7(e){return f7(this,e).get(e)}var w7,k7=e(()=>{"use strict";m7(),mt(x7,"mapCacheGet"),w7=x7});function T7(e){return f7(this,e).has(e)}var S7,_7=e(()=>{"use strict";m7(),mt(T7,"mapCacheHas"),S7=T7});function C7(e,t){var i=f7(this,e),n=i.size;return i.set(e,t),this.size+=i.size==n?0:1,this}var A7,E7=e(()=>{"use strict";m7(),mt(C7,"mapCacheSet"),A7=C7});function $7(e){var t=-1,i=null==e?0:e.length;for(this.clear();++t<i;){var n=e[t];this.set(n[0],n[1])}}var L7,R7=e(()=>{"use strict";h7(),v7(),k7(),_7(),E7(),mt($7,"MapCache"),$7.prototype.clear=c7,$7.prototype.delete=b7,$7.prototype.get=w7,$7.prototype.has=S7,$7.prototype.set=A7,L7=$7});function M7(n,r){if("function"!=typeof n||null!=r&&"function"!=typeof r)throw new TypeError(I7);var s=mt(function(){var e=arguments,t=r?r.apply(this,e):e[0],i=s.cache;return i.has(t)?i.get(t):(e=n.apply(this,e),s.cache=i.set(t,e)||i,e)},"memoized");return s.cache=new(M7.Cache||L7),s}var I7,N7,D7=e(()=>{"use strict";R7(),I7="Expected a function",mt(M7,"memoize"),M7.Cache=L7,N7=M7});function O7(){this.__data__=new n7,this.size=0}var P7,B7=e(()=>{"use strict";a7(),mt(O7,"stackClear"),P7=O7});function F7(e){var t=this.__data__,e=t.delete(e);return this.size=t.size,e}var j7,z7=e(()=>{"use strict";mt(F7,"stackDelete"),j7=F7});function H7(e){return this.__data__.get(e)}var U7,q7=e(()=>{"use strict";mt(H7,"stackGet"),U7=H7});function W7(e){return this.__data__.has(e)}var V7,G7=e(()=>{"use strict";mt(W7,"stackHas"),V7=W7});function Y7(e,t){var i=this.__data__;if(i instanceof n7){var n=i.__data__;if(!s7||n.length<199)return n.push([e,t]),this.size=++i.size,this;i=this.__data__=new L7(n)}return i.set(e,t),this.size=i.size,this}var X7,K7=e(()=>{"use strict";a7(),o7(),R7(),mt(Y7,"stackSet"),X7=Y7});function Z7(e){e=this.__data__=new n7(e);this.size=e.size}var Q7,J7,ek,tk=e(()=>{"use strict";a7(),B7(),z7(),q7(),G7(),K7(),mt(Z7,"Stack"),Z7.prototype.clear=P7,Z7.prototype.delete=j7,Z7.prototype.get=U7,Z7.prototype.has=V7,Z7.prototype.set=X7,Q7=Z7}),ik=e(()=>{"use strict";c8(),J7=function(){try{var e=a8(Object,"defineProperty");return e({},"",{}),e}catch{}}(),ek=J7});function nk(e,t,i){"__proto__"==t&&ek?ek(e,t,{configurable:!0,enumerable:!0,value:i,writable:!0}):e[t]=i}var rk,sk=e(()=>{"use strict";ik(),mt(nk,"baseAssignValue"),rk=nk});function ak(e,t,i){(void 0===i||P8(e[t],i))&&(void 0!==i||t in e)||rk(e,t,i)}var ok,lk=e(()=>{"use strict";sk(),B8(),mt(ak,"assignMergeValue"),ok=ak});function ck(l){return function(e,t,i){for(var n=-1,r=Object(e),s=i(e),a=s.length;a--;){var o=s[l?a:++n];if(!1===t(r[o],o,r))break}return e}}var hk,uk,dk,pk=e(()=>{"use strict";mt(ck,"createBaseFor"),hk=ck}),gk=e(()=>{"use strict";pk(),uk=hk(),dk=uk});function fk(e,t){return t?e.slice():(t=e.length,t=bk?bk(t):new e.constructor(t),e.copy(t),t)}var mk,yk,bk,vk,xk,wk,kk=e(()=>{"use strict";d6(),mk="object"==typeof exports&&exports&&!exports.nodeType&&exports,yk=mk&&"object"==typeof module&&module&&!module.nodeType&&module,yk=yk&&yk.exports===mk?Jw.Buffer:void 0,bk=yk?yk.allocUnsafe:void 0,mt(fk,"cloneBuffer"),vk=fk}),Tk=e(()=>{"use strict";d6(),xk=Jw.Uint8Array,wk=xk});function Sk(e){var t=new e.constructor(e.byteLength);return new wk(t).set(new wk(e)),t}var _k,Ck=e(()=>{"use strict";Tk(),mt(Sk,"cloneArrayBuffer"),_k=Sk});function Ak(e,t){t=t?_k(e.buffer):e.buffer;return new e.constructor(t,e.byteOffset,e.length)}var Ek,$k=e(()=>{"use strict";Ck(),mt(Ak,"cloneTypedArray"),Ek=Ak});function Lk(e,t){var i=-1,n=e.length;for(t=t||Array(n);++i<n;)t[i]=e[i];return t}var Rk,Mk,Ik,Nk=e(()=>{"use strict";mt(Lk,"copyArray"),Rk=Lk}),Dk=e(()=>{"use strict";function t(){}M6(),Mk=Object.create,mt(t,"object"),Ik=function(e){if(!R6(e))return{};if(Mk)return Mk(e);t.prototype=e;e=new t;return t.prototype=void 0,e}});function Ok(t,i){return function(e){return t(i(e))}}var Pk,Bk,Fk,jk=e(()=>{"use strict";mt(Ok,"overArg"),Pk=Ok}),zk=e(()=>{"use strict";jk(),Bk=Pk(Object.getPrototypeOf,Object),Fk=Bk});function Hk(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Uk)}var Uk,qk,Wk=e(()=>{"use strict";Uk=Object.prototype,mt(Hk,"isPrototype"),qk=Hk});function Vk(e){return"function"!=typeof e.constructor||qk(e)?{}:Ik(Fk(e))}var Gk,Yk=e(()=>{"use strict";Dk(),zk(),Wk(),mt(Vk,"initCloneObject"),Gk=Vk});function Xk(e){return null!=e&&"object"==typeof e}var Kk,Zk=e(()=>{"use strict";mt(Xk,"isObjectLike"),Kk=Xk});function Qk(e){return Kk(e)&&"[object Arguments]"==E6(e)}var Jk,eT,tT,iT,nT,rT,sT,aT=e(()=>{"use strict";$6(),Zk(),mt(Qk,"baseIsArguments"),Jk=Qk}),oT=e(()=>{"use strict";aT(),Zk(),iT=Object.prototype,eT=iT.hasOwnProperty,tT=iT.propertyIsEnumerable,iT=Jk(function(){return arguments}())?Jk:function(e){return Kk(e)&&eT.call(e,"callee")&&!tT.call(e,"callee")},nT=iT}),lT=e(()=>{"use strict";rT=Array.isArray,sT=rT});function cT(e){return"number"==typeof e&&-1<e&&e%1==0&&e<=9007199254740991}var hT,uT=e(()=>{"use strict";mt(cT,"isLength"),hT=cT});function dT(e){return null!=e&&hT(e.length)&&!N6(e)}var pT,gT=e(()=>{"use strict";P6(),uT(),mt(dT,"isArrayLike"),pT=dT});function fT(e){return Kk(e)&&pT(e)}var mT,yT=e(()=>{"use strict";gT(),Zk(),mt(fT,"isArrayLikeObject"),mT=fT});function bT(){return!1}var vT,xT,wT,kT,TT=e(()=>{"use strict";mt(bT,"stubFalse"),vT=bT}),ST=e(()=>{"use strict";d6(),TT(),wT="object"==typeof exports&&exports&&!exports.nodeType&&exports,xT=wT&&"object"==typeof module&&module&&!module.nodeType&&module,xT=xT&&xT.exports===wT?Jw.Buffer:void 0,wT=xT?xT.isBuffer:void 0,kT=wT||vT});function _T(e){return!(!Kk(e)||"[object Object]"!=E6(e))&&(null===(e=Fk(e))||"function"==typeof(e=$T.call(e,"constructor")&&e.constructor)&&e instanceof e&&ET.call(e)==LT)}var CT,AT,ET,$T,LT,RT,MT=e(()=>{"use strict";$6(),zk(),Zk(),CT=Function.prototype,AT=Object.prototype,ET=CT.toString,$T=AT.hasOwnProperty,LT=ET.call(Object),mt(_T,"isPlainObject"),RT=_T});function IT(e){return Kk(e)&&hT(e.length)&&!!NT[E6(e)]}var NT,DT,OT=e(()=>{"use strict";$6(),uT(),Zk(),(NT={})["[object Float32Array]"]=NT["[object Float64Array]"]=NT["[object Int8Array]"]=NT["[object Int16Array]"]=NT["[object Int32Array]"]=NT["[object Uint8Array]"]=NT["[object Uint8ClampedArray]"]=NT["[object Uint16Array]"]=NT["[object Uint32Array]"]=!0,NT["[object Arguments]"]=NT["[object Array]"]=NT["[object ArrayBuffer]"]=NT["[object Boolean]"]=NT["[object DataView]"]=NT["[object Date]"]=NT["[object Error]"]=NT["[object Function]"]=NT["[object Map]"]=NT["[object Number]"]=NT["[object Object]"]=NT["[object RegExp]"]=NT["[object Set]"]=NT["[object String]"]=NT["[object WeakMap]"]=!1,mt(IT,"baseIsTypedArray"),DT=IT});function PT(t){return function(e){return t(e)}}var BT,FT,jT,zT,HT,UT,qT,WT=e(()=>{"use strict";mt(PT,"baseUnary"),BT=PT}),VT=e(()=>{"use strict";u6(),zT="object"==typeof exports&&exports&&!exports.nodeType&&exports,FT=zT&&"object"==typeof module&&module&&!module.nodeType&&module,zT=FT&&FT.exports===zT,jT=zT&&Zw.process,zT=function(){try{return FT&&FT.require&&FT.require("util").types||jT&&jT.binding&&jT.binding("util")}catch{}}(),HT=zT}),GT=e(()=>{"use strict";OT(),WT(),VT(),UT=HT&&HT.isTypedArray,UT=UT?BT(UT):DT,qT=UT});function YT(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}var XT,KT=e(()=>{"use strict";mt(YT,"safeGet"),XT=YT});function ZT(e,t,i){var n=e[t];JT.call(e,t)&&P8(n,i)&&(void 0!==i||t in e)||rk(e,t,i)}var QT,JT,eS,tS=e(()=>{"use strict";sk(),B8(),QT=Object.prototype,JT=QT.hasOwnProperty,mt(ZT,"assignValue"),eS=ZT});function iS(e,t,i,n){var r=!i;i=i||{};for(var s=-1,a=t.length;++s<a;){var o=t[s],l=n?n(i[o],e[o],o,i,e):void 0;void 0===l&&(l=e[o]),(r?rk:eS)(i,o,l)}return i}var nS,rS=e(()=>{"use strict";tS(),sk(),mt(iS,"copyObject"),nS=iS});function sS(e,t){for(var i=-1,n=Array(e);++i<e;)n[i]=t(i);return n}var aS,oS=e(()=>{"use strict";mt(sS,"baseTimes"),aS=sS});function lS(e,t){var i=typeof e;return!!(t=t??9007199254740991)&&("number"==i||"symbol"!=i&&cS.test(e))&&-1<e&&e%1==0&&e<t}var cS,hS,uS=e(()=>{"use strict";cS=/^(?:0|[1-9]\d*)$/,mt(lS,"isIndex"),hS=lS});function dS(e,t){var i,n=sT(e),r=!n&&nT(e),s=!n&&!r&&kT(e),a=!n&&!r&&!s&&qT(e),o=n||r||s||a,l=o?aS(e.length,String):[],c=l.length;for(i in e)!t&&!gS.call(e,i)||o&&("length"==i||s&&("offset"==i||"parent"==i)||a&&("buffer"==i||"byteLength"==i||"byteOffset"==i)||hS(i,c))||l.push(i);return l}var pS,gS,fS,mS=e(()=>{"use strict";oS(),oT(),lT(),ST(),uS(),GT(),pS=Object.prototype,gS=pS.hasOwnProperty,mt(dS,"arrayLikeKeys"),fS=dS});function yS(e){var t=[];if(null!=e)for(var i in Object(e))t.push(i);return t}var bS,vS=e(()=>{"use strict";mt(yS,"nativeKeysIn"),bS=yS});function xS(e){if(!R6(e))return bS(e);var t,i=qk(e),n=[];for(t in e)("constructor"!=t||!i&&kS.call(e,t))&&n.push(t);return n}var wS,kS,TS,SS=e(()=>{"use strict";M6(),Wk(),vS(),wS=Object.prototype,kS=wS.hasOwnProperty,mt(xS,"baseKeysIn"),TS=xS});function _S(e){return pT(e)?fS(e,!0):TS(e)}var CS,AS=e(()=>{"use strict";mS(),SS(),gT(),mt(_S,"keysIn"),CS=_S});function ES(e){return nS(e,CS(e))}var $S,LS=e(()=>{"use strict";rS(),AS(),mt(ES,"toPlainObject"),$S=ES});function RS(e,t,i,n,r,s,a){var o,l,c,h=XT(e,i),u=XT(t,i),d=a.get(u);d||((t=void 0===(d=s?s(h,u,i+"",e,t,a):void 0))&&(l=!(o=sT(u))&&kT(u),c=!o&&!l&&qT(u),d=u,o||l||c?d=sT(h)?h:mT(h)?Rk(h):l?vk(u,!(t=!1)):c?Ek(u,!(t=!1)):[]:RT(u)||nT(u)?nT(d=h)?d=$S(h):R6(h)&&!N6(h)||(d=Gk(u)):t=!1),t&&(a.set(u,d),r(d,u,n,s,a),a.delete(u))),ok(e,i,d)}var MS,IS=e(()=>{"use strict";lk(),kk(),$k(),Nk(),Yk(),oT(),lT(),yT(),ST(),P6(),M6(),MT(),GT(),KT(),LS(),mt(RS,"baseMergeDeep"),MS=RS});function NS(n,r,s,a,o){n!==r&&dk(r,function(e,t){var i;o=o||new Q7,R6(e)?MS(n,r,t,s,NS,a,o):(i=a?a(XT(n,t),e,t+"",n,r,o):void 0,ok(n,t,i=void 0===i?e:i))},CS)}var DS,OS=e(()=>{"use strict";tk(),lk(),gk(),IS(),M6(),AS(),KT(),mt(NS,"baseMerge"),DS=NS});function PS(e){return e}var BS,FS=e(()=>{"use strict";mt(PS,"identity"),BS=PS});function jS(e,t,i){switch(i.length){case 0:return e.call(t);case 1:return e.call(t,i[0]);case 2:return e.call(t,i[0],i[1]);case 3:return e.call(t,i[0],i[1],i[2])}return e.apply(t,i)}var zS,HS=e(()=>{"use strict";mt(jS,"apply"),zS=jS});function US(s,a,o){return a=qS(void 0===a?s.length-1:a,0),function(){for(var e=arguments,t=-1,i=qS(e.length-a,0),n=Array(i);++t<i;)n[t]=e[a+t];for(var t=-1,r=Array(a+1);++t<a;)r[t]=e[t];return r[a]=o(n),zS(s,this,r)}}var qS,WS,VS=e(()=>{"use strict";HS(),qS=Math.max,mt(US,"overRest"),WS=US});function GS(e){return function(){return e}}var YS,XS,KS=e(()=>{"use strict";mt(GS,"constant"),YS=GS}),ZS=e(()=>{"use strict";KS(),ik(),FS(),XS=ek?function(e,t){return ek(e,"toString",{configurable:!0,enumerable:!1,value:YS(t),writable:!0})}:BS});function QS(i){var n=0,r=0;return function(){var e=JS(),t=16-(e-r);if(r=e,0<t){if(800<=++n)return arguments[0]}else n=0;return i.apply(void 0,arguments)}}var JS,e_,t_,i_,n_=e(()=>{"use strict";JS=Date.now,mt(QS,"shortOut"),e_=QS}),r_=e(()=>{"use strict";ZS(),n_(),t_=e_(XS),i_=t_});function s_(e,t){return i_(WS(e,t,BS),e+"")}var a_,o_=e(()=>{"use strict";FS(),VS(),r_(),mt(s_,"baseRest"),a_=s_});function l_(e,t,i){var n;return!!R6(i)&&!!("number"==(n=typeof t)?pT(i)&&hS(t,i.length):"string"==n&&t in i)&&P8(i[t],e)}var c_,h_=e(()=>{"use strict";B8(),gT(),uS(),M6(),mt(l_,"isIterateeCall"),c_=l_});function u_(o){return a_(function(e,t){var i=-1,n=t.length,r=1<n?t[n-1]:void 0,s=2<n?t[2]:void 0,r=3<o.length&&"function"==typeof r?(n--,r):void 0;for(s&&c_(t[0],t[1],s)&&(r=n<3?void 0:r,n=1),e=Object(e);++i<n;){var a=t[i];a&&o(e,a,i,r)}return e})}var d_,p_,g_,f_=e(()=>{"use strict";o_(),h_(),mt(u_,"createAssigner"),d_=u_}),m_=e(()=>{"use strict";OS(),f_(),p_=d_(function(e,t,i){DS(e,t,i)}),g_=p_});function y_(e,t){return e?(e="curve"+(e.charAt(0).toUpperCase()+e.slice(1)),M_[e]??t):t}function b_(e,t){e=e.trim();if(e)return"loose"!==t.securityLevel?(0,L_.sanitizeUrl)(e):e}function v_(e,t){return e&&t?Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2)):0}function x_(e){let t,i=0;e.forEach(e=>{i+=v_(e,t),t=e});var n=i/2;return j_(e,n)}function w_(e){return 1===e.length?e[0]:x_(e)}function k_(e,t,i){var i=structuredClone(i),n=(I.info("our points",i),"start_left"!==t&&"start_right"!==t&&i.reverse(),25+e),n=j_(i,n),e=10+.5*e,r=Math.atan2(i[0].y-n.y,i[0].x-n.x),s={x:0,y:0};return"start_left"===t?(s.x=Math.sin(r+Math.PI)*e+(i[0].x+n.x)/2,s.y=-Math.cos(r+Math.PI)*e+(i[0].y+n.y)/2):"end_right"===t?(s.x=Math.sin(r-Math.PI)*e+(i[0].x+n.x)/2-5,s.y=-Math.cos(r-Math.PI)*e+(i[0].y+n.y)/2-5):"end_left"===t?(s.x=Math.sin(r)*e+(i[0].x+n.x)/2-5,s.y=-Math.cos(r)*e+(i[0].y+n.y)/2-5):(s.x=Math.sin(r)*e+(i[0].x+n.x)/2,s.y=-Math.cos(r)*e+(i[0].y+n.y)/2),s}function T_(e){let t="",i="";for(var n of e)void 0!==n&&(n.startsWith("color:")||n.startsWith("text-align:")?i=i+n+";":t=t+n+";");return{style:t,labelStyle:i}}function S_(t){let i="",n="0123456789abcdef",r=n.length;for(let e=0;e<t;e++)i+=n.charAt(Math.floor(Math.random()*r));return i}function __(e,t){return X_(e,t).height}function C_(e,t){return X_(e,t).width}function A_(e){return"str"in e}function E_(e,t){return g_({},e,t)}function $_(e){return e??null}var L_,R_,M_,I_,N_,D_,O_,P_,B_,F_,j_,z_,H_,U_,q_,W_,V_,G_,Y_,X_,K_,Z_,Q_,J_,eC,tC,iC,nC,rC,sC=e(()=>{"use strict";L_=ie(l6(),1),a6(),hh(),Rn(),t(),qi(),Vi(),D7(),m_(),Hi(),R_="",M_={curveBasis:x5,curveBasisClosed:T5,curveBasisOpen:C5,curveBumpX:d5,curveBumpY:p5,curveBundle:$5,curveCardinalClosed:O5,curveCardinalOpen:F5,curveCardinal:I5,curveCatmullRomClosed:V5,curveCatmullRomOpen:X5,curveCatmullRom:U5,curveLinear:J3,curveLinearClosed:Q5,curveMonotoneX:ow,curveMonotoneY:lw,curveNatural:dw,curveStep:fw,curveStepAfter:yw,curveStepBefore:mw},I_=/\s*(?:(\w+)(?=:):|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,N_=mt(function(i,n){let e=D_(i,/(?:init\b)|(?:initialize\b)/),r={};var t;if(r=Array.isArray(e)?(t=e.map(e=>e.args),xi(t),at(r,[...t])):e.args){let e=Je(i,n),t="config";return void 0!==r[t]&&("flowchart-v2"===e&&(e="flowchart"),r[e]=r[t],delete r[t]),r}},"detectInit"),D_=mt(function(t,i=null){try{var e=new RegExp(`[%]{2}(?![{]${I_.source})(?=[}][%]{2}).*
|
||
`,"ig");t=t.trim().replace(e,"").replace(/'/gm,'"'),I.debug(`Detecting diagram directive${null!==i?" type:"+i:""} based on the text:`+t);for(var n,r,s,a=[];null!==(n=Xe.exec(t));)n.index===Xe.lastIndex&&Xe.lastIndex++,(n&&!i||i&&n[1]?.match(i)||i&&n[2]?.match(i))&&(r=n[1]||n[2],s=n[3]?n[3].trim():n[4]?JSON.parse(n[4].trim()):null,a.push({type:r,args:s}));return 0===a.length?{type:t,args:null}:1===a.length?a[0]:a}catch(e){return I.error(`ERROR: ${e.message} - Unable to parse directive type: '${i}' based on the text: '${t}'`),{type:void 0,args:null}}},"detectDirective"),O_=mt(function(e){return e.replace(Xe,"")},"removeDirectives"),P_=mt(function(e,t){for(var[i,n]of t.entries())if(n.match(e))return i;return-1},"isSubstringInArray"),mt(y_,"interpolateToCurve"),mt(b_,"formatUrl"),B_=mt((t,...e)=>{let i=t.split("."),n=i.length-1,r=i[n],s=window;for(let e=0;e<n;e++)if(!(s=s[i[e]]))return void I.error(`Function name: ${t} not found in window`);s[r](...e)},"runFunc"),mt(v_,"distance"),mt(x_,"traverseEdge"),mt(w_,"calcLabelPosition"),F_=mt((e,t=2)=>{t=Math.pow(10,t);return Math.round(e*t)/t},"roundNumber"),j_=mt((e,t)=>{let i,n=t;for(var r of e){if(i){var s=v_(r,i);if(0===s)return i;if(s<n)n-=s;else{s=n/s;if(s<=0)return i;if(1<=s)return{x:r.x,y:r.y};if(0<s&&s<1)return{x:F_((1-s)*i.x+s*r.x,5),y:F_((1-s)*i.y+s*r.y,5)}}}i=r}throw new Error("Could not find a suitable point for the given distance")},"calculatePoint"),z_=mt((e,t,i)=>{I.info("our points "+JSON.stringify(t)),t[0]!==i&&(t=t.reverse());var i=j_(t,25),e=e?10:5,n=Math.atan2(t[0].y-i.y,t[0].x-i.x),r={x:0,y:0};return r.x=Math.sin(n)*e+(t[0].x+i.x)/2,r.y=-Math.cos(n)*e+(t[0].y+i.y)/2,r},"calcCardinalityPosition"),mt(k_,"calcTerminalLabelPosition"),mt(T_,"getStylesFromArray"),H_=0,U_=mt(()=>(H_++,"id-"+Math.random().toString(36).substr(2,12)+"-"+H_),"generateId"),mt(S_,"makeRandomHex"),q_=mt(e=>S_(e.length),"random"),W_=mt(function(){return{x:0,y:0,fill:void 0,anchor:"start",style:"#666",width:100,height:100,textMargin:0,rx:0,ry:0,valign:void 0,text:""}},"getTextObj"),V_=mt(function(e,t){var i=t.text.replace($.lineBreakRegex," "),[,n]=eC(t.fontSize),e=e.append("text"),n=(e.attr("x",t.x),e.attr("y",t.y),e.style("text-anchor",t.anchor),e.style("font-family",t.fontFamily),e.style("font-size",n),e.style("font-weight",t.fontWeight),e.attr("fill",t.fill),void 0!==t.class&&e.attr("class",t.class),e.append("tspan"));return n.attr("x",t.x+2*t.textMargin),n.attr("fill",t.fill),n.text(i),e},"drawSimpleText"),G_=N7((e,a,o)=>{if(!e||(o=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",joinWith:"<br/>"},o),$.lineBreakRegex.test(e)))return e;let l=e.split(" ").filter(Boolean),c=[],h="";return l.forEach((e,t)=>{var i,n,r=C_(e+" ",o),s=C_(h,o);h=a<r?({hyphenatedStrings:i,remainingWord:n}=Y_(e,a,"-",o),c.push(h,...i),n):a<=s+r?(c.push(h),e):[h,e].filter(Boolean).join(" "),t+1===l.length&&c.push(h)}),c.filter(e=>""!==e).join(o.joinWith)},(e,t,i)=>""+e+t+i.fontSize+i.fontWeight+i.fontFamily+i.joinWith),Y_=N7((e,n,r="-",s)=>{s=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",margin:0},s);let a=[...e],o=[],l="";return a.forEach((e,t)=>{var i,e=""+l+e;l=C_(e,s)>=n?(t=t+1,t=a.length===t,i=e+r,o.push(t?e:i),""):e}),{hyphenatedStrings:o,remainingWord:l}},(e,t,i="-",n)=>""+e+t+i+n.fontSize+n.fontWeight+n.fontFamily),mt(__,"calculateTextHeight"),mt(C_,"calculateTextWidth"),X_=N7((e,t)=>{var{fontSize:t=12,fontFamily:i="Arial",fontWeight:n=400}=t;if(!e)return{width:0,height:0};var[,r]=eC(t),t=["sans-serif",i],s=e.split($.lineBreakRegex),a=[],i=G("body");if(!i.remove)return{width:0,height:0,lineHeight:0};var o,l=i.append("svg");for(o of t){var c,h={width:0,height:0,lineHeight:0};for(c of s){var u=W_(),u=(u.text=c||R_,V_(l,u).style("font-size",r).style("font-weight",n).style("font-family",o)),u=(u._groups||u)[0][0].getBBox();if(0===u.width&&0===u.height)throw new Error("svg element not in render tree");h.width=Math.round(Math.max(h.width,u.width)),u=Math.round(u.height),h.height+=u,h.lineHeight=Math.round(Math.max(h.lineHeight,u))}a.push(h)}return l.remove(),a[isNaN(a[1].height)||isNaN(a[1].width)||isNaN(a[1].lineHeight)||a[0].height>a[1].height&&a[0].width>a[1].width&&a[0].lineHeight>a[1].lineHeight?0:1]},(e,t)=>""+e+t.fontSize+t.fontWeight+t.fontFamily),K_=class{constructor(e=!1,t){this.count=0,this.count=t?t.length:0,this.next=e?()=>this.count++:()=>Date.now()}static{mt(this,"InitIDGenerator")}},Q_=mt(function(e){return Z_=Z_||document.createElement("div"),e=escape(e).replace(/%26/g,"&").replace(/%23/g,"#").replace(/%3B/g,";"),Z_.innerHTML=e,unescape(Z_.textContent)},"entityDecode"),mt(A_,"isDetailedError"),J_=mt((e,t,i,n)=>{var r;n&&(r=e.node()?.getBBox())&&e.append("text").text(n).attr("text-anchor","middle").attr("x",r.x+r.width/2).attr("y",-i).attr("class",t)},"insertTitle"),eC=mt(e=>{var t;return"number"==typeof e?[e,e+"px"]:(t=parseInt(e??"",10),Number.isNaN(t)?[void 0,void 0]:e===String(t)?[t,e+"px"]:[t,e])},"parseFontSize"),mt(E_,"cleanAndMerge"),tC={assignWithDepth:at,wrapLabel:G_,calculateTextHeight:__,calculateTextWidth:C_,calculateTextDimensions:X_,cleanAndMerge:E_,detectInit:N_,detectDirective:D_,isSubstringInArray:P_,interpolateToCurve:y_,calcLabelPosition:w_,calcCardinalityPosition:z_,calcTerminalLabelPosition:k_,formatUrl:b_,getStylesFromArray:T_,generateId:U_,random:q_,runFunc:B_,entityDecode:Q_,insertTitle:J_,parseFontSize:eC,InitIDGenerator:K_},iC=mt(function(e){let t=e;return t=(t=(t=t.replace(/style.*:\S*#.*;/g,function(e){return e.substring(0,e.length-1)})).replace(/classDef.*:\S*#.*;/g,function(e){return e.substring(0,e.length-1)})).replace(/#\w+;/g,function(e){e=e.substring(1,e.length-1);return/^\+?\d+$/.test(e)?"fl°°"+e+"¶ß":"fl°"+e+"¶ß"})},"encodeEntities"),nC=mt(function(e){return e.replace(/fl°°/g,"&#").replace(/fl°/g,"&").replace(/¶ß/g,";")},"decodeEntities"),rC=mt((e,t,{counter:i=0,prefix:n,suffix:r},s)=>s||(n?n+"_":"")+e+`_${t}_`+i+(r?"_"+r:""),"getEdgeId"),mt($_,"handleUndefinedAttr")});function aC(e,t,i,n,r){if(!t[e].width)if(i)t[e].text=G_(t[e].text,r,n),t[e].textLines=t[e].text.split($.lineBreakRegex).length,t[e].width=r,t[e].height=__(t[e].text,n);else{var s,a,i=t[e].text.split($.lineBreakRegex);t[e].textLines=i.length;t[e].height=0,t[e].width=0;for(a of i)t[e].width=Math.max(C_(a,n),t[e].width),s=__(a,n),t[e].height=t[e].height+s}}function oC(t,i,n,e,r){var s,a,o=new pC(r);o.data.widthLimit=n.data.widthLimit/Math.min(uC,e.length);for([s,a]of e.entries()){let e=0;a.image={width:0,height:0,Y:0},a.sprite&&(a.image.width=48,a.image.height=48,a.image.Y=e,e=a.image.Y+a.image.height);var l=a.wrap&&dC.wrap,c=mC(dC),l=(c.fontSize=c.fontSize+2,c.fontWeight="bold",aC("label",a,l,c,o.data.widthLimit),a.label.Y=e+8,e=a.label.Y+a.label.height,a.type&&""!==a.type.text&&(a.type.text="["+a.type.text+"]",c=mC(dC),aC("type",a,l,c,o.data.widthLimit),a.type.Y=e+5,e=a.type.Y+a.type.height),a.descr&&""!==a.descr.text&&((c=mC(dC)).fontSize=c.fontSize-2,aC("descr",a,l,c,o.data.widthLimit),a.descr.Y=e+20,e=a.descr.Y+a.descr.height),0==s||s%uC==0?(l=n.data.startx+dC.diagramMarginX,c=n.data.stopy+dC.diagramMarginY+e,o.setData(l,l,c,c)):(l=o.data.stopx!==o.data.startx?o.data.stopx+dC.diagramMarginX:o.data.startx,c=o.data.starty,o.setData(l,l,c,c)),o.name=a.alias,r.db.getC4ShapeArray(a.alias)),c=r.db.getC4ShapeKeys(a.alias),l=(0<c.length&&vC(o,t,l,c),i=a.alias,r.db.getBoundaries(i));0<l.length&&oC(t,0,o,l,r),"global"!==a.alias&&bC(t,a,o),n.data.stopy=Math.max(o.data.stopy+dC.c4ShapeMargin,n.data.stopy),n.data.stopx=Math.max(o.data.stopx+dC.c4ShapeMargin,n.data.stopx),lC=Math.max(lC,n.data.stopx),cC=Math.max(cC,n.data.stopy)}}var lC,cC,hC,uC,dC,pC,gC,fC,mC,yC,bC,vC,xC,wC,kC,TC,SC,_C,CC,AC,EC=e(()=>{"use strict";a6(),h6(),t(),Wi(),hh(),Au(),Cu(),Vi(),sC(),uh(),cC=lC=0,hC=4,uC=2,nt.yy=Su,dC={},pC=class{static{mt(this,"Bounds")}constructor(e){this.name="",this.data={},this.data.startx=void 0,this.data.stopx=void 0,this.data.starty=void 0,this.data.stopy=void 0,this.data.widthLimit=void 0,this.nextData={},this.nextData.startx=void 0,this.nextData.stopx=void 0,this.nextData.starty=void 0,this.nextData.stopy=void 0,this.nextData.cnt=0,gC(e.db.getConfig())}setData(e,t,i,n){this.nextData.startx=this.data.startx=e,this.nextData.stopx=this.data.stopx=t,this.nextData.starty=this.data.starty=i,this.nextData.stopy=this.data.stopy=n}updateVal(e,t,i,n){void 0===e[t]?e[t]=i:e[t]=n(i,e[t])}insert(e){this.nextData.cnt=this.nextData.cnt+1;let t=this.nextData.startx===this.nextData.stopx?this.nextData.stopx+e.margin:this.nextData.stopx+2*e.margin,i=t+e.width,n=this.nextData.starty+2*e.margin,r=n+e.height;(t>=this.data.widthLimit||i>=this.data.widthLimit||this.nextData.cnt>hC)&&(t=this.nextData.startx+e.margin+dC.nextLinePaddingX,n=this.nextData.stopy+2*e.margin,this.nextData.stopx=i=t+e.width,this.nextData.starty=this.nextData.stopy,this.nextData.stopy=r=n+e.height,this.nextData.cnt=1),e.x=t,e.y=n,this.updateVal(this.data,"startx",t,Math.min),this.updateVal(this.data,"starty",n,Math.min),this.updateVal(this.data,"stopx",i,Math.max),this.updateVal(this.data,"stopy",r,Math.max),this.updateVal(this.nextData,"startx",t,Math.min),this.updateVal(this.nextData,"starty",n,Math.min),this.updateVal(this.nextData,"stopx",i,Math.max),this.updateVal(this.nextData,"stopy",r,Math.max)}init(e){this.name="",this.data={startx:void 0,stopx:void 0,starty:void 0,stopy:void 0,widthLimit:void 0},this.nextData={startx:void 0,stopx:void 0,starty:void 0,stopy:void 0,cnt:0},gC(e.db.getConfig())}bumpLastMargin(e){this.data.stopx+=e,this.data.stopy+=e}},gC=mt(function(e){at(dC,e),e.fontFamily&&(dC.personFontFamily=dC.systemFontFamily=dC.messageFontFamily=e.fontFamily),e.fontSize&&(dC.personFontSize=dC.systemFontSize=dC.messageFontSize=e.fontSize),e.fontWeight&&(dC.personFontWeight=dC.systemFontWeight=dC.messageFontWeight=e.fontWeight)},"setConf"),fC=mt((e,t)=>({fontFamily:e[t+"FontFamily"],fontSize:e[t+"FontSize"],fontWeight:e[t+"FontWeight"]}),"c4ShapeFont"),mC=mt(e=>({fontFamily:e.boundaryFontFamily,fontSize:e.boundaryFontSize,fontWeight:e.boundaryFontWeight}),"boundaryFont"),yC=mt(e=>({fontFamily:e.messageFontFamily,fontSize:e.messageFontSize,fontWeight:e.messageFontWeight}),"messageFont"),mt(aC,"calcC4ShapeTextWH"),bC=mt(function(e,t,i){t.x=i.data.startx,t.y=i.data.starty,t.width=i.data.stopx-i.data.startx,t.height=i.data.stopy-i.data.starty,t.label.y=dC.c4ShapeMargin-35;var i=t.wrap&&dC.wrap,n=mC(dC),r=(n.fontSize=n.fontSize+2,n.fontWeight="bold",C_(t.label.text,n));aC("label",t,i,n,r),Xw.drawBoundary(e,t,dC)},"drawBoundary"),vC=mt(function(i,n,r,e){let s=0;for(var a of e){s=0;var o=r[a],a=fC(dC,o.typeC4Shape.text);switch(a.fontSize=a.fontSize-2,o.typeC4Shape.width=C_("«"+o.typeC4Shape.text+"»",a),o.typeC4Shape.height=a.fontSize+2,o.typeC4Shape.Y=dC.c4ShapePadding,s=o.typeC4Shape.Y+o.typeC4Shape.height-4,o.image={width:0,height:0,Y:0},o.typeC4Shape.text){case"person":case"external_person":o.image.width=48,o.image.height=48,o.image.Y=s,s=o.image.Y+o.image.height}o.sprite&&(o.image.width=48,o.image.height=48,o.image.Y=s,s=o.image.Y+o.image.height);var a=o.wrap&&dC.wrap,l=dC.width-2*dC.c4ShapePadding,c=fC(dC,o.typeC4Shape.text);c.fontSize=c.fontSize+2,c.fontWeight="bold",aC("label",o,a,c,l),o.label.Y=s+8,s=o.label.Y+o.label.height,o.type&&""!==o.type.text?(o.type.text="["+o.type.text+"]",aC("type",o,a,fC(dC,o.typeC4Shape.text),l),o.type.Y=s+5,s=o.type.Y+o.type.height):o.techn&&""!==o.techn.text&&(o.techn.text="["+o.techn.text+"]",aC("techn",o,a,fC(dC,o.techn.text),l),o.techn.Y=s+5,s=o.techn.Y+o.techn.height);let e=s,t=o.label.width;o.descr&&""!==o.descr.text&&(aC("descr",o,a,fC(dC,o.typeC4Shape.text),l),o.descr.Y=s+20,s=o.descr.Y+o.descr.height,t=Math.max(o.label.width,o.descr.width),e=s-5*o.descr.textLines),t+=dC.c4ShapePadding,o.width=Math.max(o.width||dC.width,t,dC.width),o.height=Math.max(o.height||dC.height,e,dC.height),o.margin=o.margin||dC.c4ShapeMargin,i.insert(o),Xw.drawC4Shape(n,o,dC)}i.bumpLastMargin(dC.c4ShapeMargin)},"drawC4ShapeArray"),xC=class{static{mt(this,"Point")}constructor(e,t){this.x=e,this.y=t}},wC=mt(function(e,t){let i=e.x,n=e.y,r=t.x,s=t.y,a=i+e.width/2,o=n+e.height/2,l=Math.abs(i-r),c=Math.abs(n-s),h=c/l,u=e.height/e.width,d=null;return n==s&&i<r?d=new xC(i+e.width,o):n==s&&r<i?d=new xC(i,o):i==r&&n<s?d=new xC(a,n+e.height):i==r&&s<n&&(d=new xC(a,n)),r<i&&n<s?d=h<=u?new xC(i,o+h*e.width/2):new xC(a-l/c*e.height/2,n+e.height):i<r&&n<s?d=h<=u?new xC(i+e.width,o+h*e.width/2):new xC(a+l/c*e.height/2,n+e.height):i<r&&s<n?d=h<=u?new xC(i+e.width,o-h*e.width/2):new xC(a+e.height/2*l/c,n):r<i&&s<n&&(d=h<=u?new xC(i,o-e.width/2*h):new xC(a-e.height/2*l/c,n)),d},"getIntersectPoint"),kC=mt(function(e,t){var i={x:0,y:0},n=(i.x=t.x+t.width/2,i.y=t.y+t.height/2,wC(e,i)),e=(i.x=e.x+e.width/2,i.y=e.y+e.height/2,wC(t,i));return{startPoint:n,endPoint:e}},"getIntersectPoints"),TC=mt(function(e,t,i,n){let r=0;for(var s of t){r+=1;var a=s.wrap&&dC.wrap,o=yC(dC);"C4Dynamic"===n.db.getC4Type()&&(s.label.text=r+": "+s.label.text);let e=C_(s.label.text,o);aC("label",s,a,o,e),s.techn&&""!==s.techn.text&&(e=C_(s.techn.text,o),aC("techn",s,a,o,e)),s.descr&&""!==s.descr.text&&(e=C_(s.descr.text,o),aC("descr",s,a,o,e));a=i(s.from),o=i(s.to),a=kC(a,o);s.startPoint=a.startPoint,s.endPoint=a.endPoint}Xw.drawRels(e,t,dC)},"drawRels"),mt(oC,"drawInsideBoundary"),SC=mt(function(e,t,i,n){dC=N().c4;let r=N().securityLevel,s;"sandbox"===r&&(s=G("#i"+t));var a=G("sandbox"===r?s.nodes()[0].contentDocument.body:"body"),o=n.db,o=(n.db.setWrap(dC.wrap),hC=o.getC4ShapeInRow(),uC=o.getC4BoundaryInRow(),I.debug("C:"+JSON.stringify(dC,null,2)),"sandbox"===r?a.select(`[id="${t}"]`):G(`[id="${t}"]`)),a=(Xw.insertComputerIcon(o),Xw.insertDatabaseIcon(o),Xw.insertClockIcon(o),new pC(n)),t=(a.setData(dC.diagramMarginX,dC.diagramMarginX,dC.diagramMarginY,dC.diagramMarginY),a.data.widthLimit=screen.availWidth,lC=dC.diagramMarginX,cC=dC.diagramMarginY,n.db.getTitle()),n=(oC(o,0,a,n.db.getBoundaries(""),n),Xw.insertArrowHead(o),Xw.insertArrowEnd(o),Xw.insertArrowCrossHead(o),Xw.insertArrowFilledHead(o),TC(o,n.db.getRels(),n.db.getC4Shape,n),a.data.stopx=lC,a.data.stopy=cC,a.data),a=n.stopy-n.starty+2*dC.diagramMarginY,l=n.stopx-n.startx+2*dC.diagramMarginX,t=(t&&o.append("text").text(t).attr("x",(n.stopx-n.startx)/2-4*dC.diagramMarginX).attr("y",n.starty+dC.diagramMarginY),rh(o,a,l,dC.useMaxWidth),t?60:0);o.attr("viewBox",n.startx-dC.diagramMarginX+" -"+(dC.diagramMarginY+t)+" "+l+" "+(a+t)),I.debug("models:",n)},"draw"),_C={drawPersonOrSystemArray:vC,drawBoundary:bC,setConf:gC,draw:SC}}),$C=e(()=>{"use strict";CC=mt(e=>`.person {
|
||
stroke: ${e.personBorder};
|
||
fill: ${e.personBkg};
|
||
}
|
||
`,"getStyles"),AC=CC}),LC={};V(LC,{diagram:()=>RC});var RC,MC=e(()=>{"use strict";Wi(),Au(),EC(),$C(),RC={parser:rt,db:Su,renderer:_C,styles:AC,init:mt(({c4:e,wrap:t})=>{_C.setConf(e),Su.setWrap(t)},"init")}});function IC(e){return"u"<typeof e||null===e}function NC(e){return"object"==typeof e&&null!==e}function DC(e){return Array.isArray(e)?e:IC(e)?[]:[e]}function OC(e,t){var i,n,r,s;if(t)for(i=0,n=(s=Object.keys(t)).length;i<n;i+=1)e[r=s[i]]=t[r];return e}function PC(e,t){for(var i="",n=0;n<t;n+=1)i+=e;return i}function BC(e){return 0===e&&Number.NEGATIVE_INFINITY===1/e}function FC(e,t){var i="",n=e.reason||"(unknown reason)";return e.mark?(e.mark.name&&(i+='in "'+e.mark.name+'" '),i+="("+(e.mark.line+1)+":"+(e.mark.column+1)+")",!t&&e.mark.snippet&&(i+=`
|
||
|
||
`+e.mark.snippet),n+" "+i):n}function jC(e,t){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=t,this.message=FC(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack||""}function zC(e,t,i,n,r){var s="",a="",r=Math.floor(r/2)-1;return r<n-t&&(t=n-r+(s=" ... ").length),r<i-n&&(i=n+r-(a=" ...").length),{str:s+e.slice(t,i).replace(/\t/g,"→")+a,pos:n-t+s.length}}function HC(e,t){return B9.repeat(" ",t-e.length)+e}function UC(e,t){if(t=Object.create(t||null),!e.buffer)return null;t.maxLength||(t.maxLength=79),"number"!=typeof t.indent&&(t.indent=1),"number"!=typeof t.linesBefore&&(t.linesBefore=3),"number"!=typeof t.linesAfter&&(t.linesAfter=2);for(var i,n=/\r?\n|\r|\0/g,r=[0],s=[],a=-1;i=n.exec(e.buffer);)s.push(i.index),r.push(i.index+i[0].length),e.position<=i.index&&a<0&&(a=r.length-2);a<0&&(a=r.length-1);for(var o,l="",c=Math.min(e.line+t.linesAfter,s.length).toString().length,h=t.maxLength-(t.indent+c+3),u=1;u<=t.linesBefore&&!(a-u<0);u++)o=zC(e.buffer,r[a-u],s[a-u],e.position-(r[a]-r[a-u]),h),l=B9.repeat(" ",t.indent)+HC((e.line-u+1).toString(),c)+" | "+o.str+`
|
||
`+l;for(o=zC(e.buffer,r[a],s[a],e.position,h),l=(l+=B9.repeat(" ",t.indent)+HC((e.line+1).toString(),c)+" | "+o.str+`
|
||
`)+(B9.repeat("-",t.indent+c+3+o.pos)+`^
|
||
`),u=1;u<=t.linesAfter&&!(s.length<=a+u);u++)o=zC(e.buffer,r[a+u],s[a+u],e.position-(r[a]-r[a+u]),h),l+=B9.repeat(" ",t.indent)+HC((e.line+u+1).toString(),c)+" | "+o.str+`
|
||
`;return l.replace(/\n$/,"")}function qC(e){var i={};return null!==e&&Object.keys(e).forEach(function(t){e[t].forEach(function(e){i[String(e)]=t})}),i}function WC(t,e){if(e=e||{},Object.keys(e).forEach(function(e){if(-1===z9.indexOf(e))throw new F9('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(e){return e},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=qC(e.styleAliases||null),-1===H9.indexOf(this.kind))throw new F9('Unknown kind "'+this.kind+'" is specified for "'+t+'" YAML type.')}function VC(e,t){var r=[];return e[t].forEach(function(i){var n=r.length;r.forEach(function(e,t){e.tag===i.tag&&e.kind===i.kind&&e.multi===i.multi&&(n=t)}),r[n]=i}),r}function GC(){var e,t,i={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}};function n(e){e.multi?(i.multi[e.kind].push(e),i.multi.fallback.push(e)):i[e.kind][e.tag]=i.fallback[e.tag]=e}for(mt(n,"collectType"),e=0,t=arguments.length;e<t;e+=1)arguments[e].forEach(n);return i}function YC(e){return this.extend(e)}function XC(e){var t;return null===e||1===(t=e.length)&&"~"===e||4===t&&("null"===e||"Null"===e||"NULL"===e)}function KC(){return null}function ZC(e){return null===e}function QC(e){var t;return null!==e&&(4===(t=e.length)&&("true"===e||"True"===e||"TRUE"===e)||5===t&&("false"===e||"False"===e||"FALSE"===e))}function JC(e){return"true"===e||"True"===e||"TRUE"===e}function eA(e){return"[object Boolean]"===Object.prototype.toString.call(e)}function tA(e){return 48<=e&&e<=57||65<=e&&e<=70||97<=e&&e<=102}function iA(e){return 48<=e&&e<=55}function nA(e){return 48<=e&&e<=57}function rA(e){if(null===e)return!1;var t,i=e.length,n=0,r=!1;if(!i)return!1;if("0"===(t="-"!==(t=e[n])&&"+"!==t?t:e[++n])){if(n+1===i)return!0;if("b"===(t=e[++n])){for(n++;n<i;n++)if("_"!==(t=e[n])){if("0"!==t&&"1"!==t)return!1;r=!0}return r&&"_"!==t}if("x"===t){for(n++;n<i;n++)if("_"!==(t=e[n])){if(!tA(e.charCodeAt(n)))return!1;r=!0}return r&&"_"!==t}if("o"===t){for(n++;n<i;n++)if("_"!==(t=e[n])){if(!iA(e.charCodeAt(n)))return!1;r=!0}return r&&"_"!==t}}if("_"===t)return!1;for(;n<i;n++)if("_"!==(t=e[n])){if(!nA(e.charCodeAt(n)))return!1;r=!0}return!(!r||"_"===t)}function sA(e){var t,i=1;if("-"!==(t=(e=-1!==e.indexOf("_")?e.replace(/_/g,""):e)[0])&&"+"!==t||("-"===t&&(i=-1),t=(e=e.slice(1))[0]),"0"===e)return 0;if("0"===t){if("b"===e[1])return i*parseInt(e.slice(2),2);if("x"===e[1])return i*parseInt(e.slice(2),16);if("o"===e[1])return i*parseInt(e.slice(2),8)}return i*parseInt(e,10)}function aA(e){return"[object Number]"===Object.prototype.toString.call(e)&&e%1==0&&!B9.isNegativeZero(e)}function oA(e){return!(null===e||!q9.test(e)||"_"===e[e.length-1])}function lA(e){var e=e.replace(/_/g,"").toLowerCase(),t="-"===e[0]?-1:1;return".inf"===(e=0<="+-".indexOf(e[0])?e.slice(1):e)?1==t?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:".nan"===e?NaN:t*parseFloat(e,10)}function cA(e,t){if(isNaN(e))switch(t){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===e)switch(t){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===e)switch(t){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(B9.isNegativeZero(e))return"-0.0";return t=e.toString(10),W9.test(t)?t.replace("e",".e"):t}function hA(e){return"[object Number]"===Object.prototype.toString.call(e)&&(e%1!=0||B9.isNegativeZero(e))}function uA(e){return null!==e&&(null!==G9.exec(e)||null!==Y9.exec(e))}function dA(e){var t,i,n,r,s,a=0,o=null,l=G9.exec(e);if(null===(l=null===l?Y9.exec(e):l))throw new Error("Date resolve error");if(e=+l[1],t=+l[2]-1,i=+l[3],!l[4])return new Date(Date.UTC(e,t,i));if(n=+l[4],r=+l[5],s=+l[6],l[7]){for(a=l[7].slice(0,3);a.length<3;)a+="0";a=+a}return l[9]&&(o=6e4*(60*+l[10]+ +(l[11]||0)),"-"===l[9])&&(o=-o),l=new Date(Date.UTC(e,t,i,n,r,s,a)),o&&l.setTime(l.getTime()-o),l}function pA(e){return e.toISOString()}function gA(e){return"<<"===e||null===e}function fA(e){if(null===e)return!1;for(var t,i=0,n=e.length,r=Z9,s=0;s<n;s++)if(!(64<(t=r.indexOf(e.charAt(s))))){if(t<0)return!1;i+=6}return i%8==0}function mA(e){for(var t=e.replace(/[\r\n=]/g,""),i=t.length,n=Z9,r=0,s=[],a=0;a<i;a++)a%4==0&&a&&(s.push(r>>16&255),s.push(r>>8&255),s.push(255&r)),r=r<<6|n.indexOf(t.charAt(a));return 0==(e=i%4*6)?(s.push(r>>16&255),s.push(r>>8&255),s.push(255&r)):18==e?(s.push(r>>10&255),s.push(r>>2&255)):12==e&&s.push(r>>4&255),new Uint8Array(s)}function yA(e){for(var t,i="",n=0,r=e.length,s=Z9,a=0;a<r;a++)a%3==0&&a&&(i=(i=(i=(i+=s[n>>18&63])+s[n>>12&63])+s[n>>6&63])+s[63&n]),n=(n<<8)+e[a];return 0==(t=r%3)?i=(i=(i=(i+=s[n>>18&63])+s[n>>12&63])+s[n>>6&63])+s[63&n]:2==t?i=(i=(i=(i+=s[n>>10&63])+s[n>>4&63])+s[n<<2&63])+s[64]:1==t&&(i=(i=(i=(i+=s[n>>2&63])+s[n<<4&63])+s[64])+s[64]),i}function bA(e){return"[object Uint8Array]"===Object.prototype.toString.call(e)}function vA(e){if(null!==e)for(var t,i,n,r=[],s=e,a=0,o=s.length;a<o;a+=1){if(t=s[a],n=!1,"[object Object]"!==eE.call(t))return!1;for(i in t)if(J9.call(t,i)){if(n)return!1;n=!0}if(!n)return!1;if(-1!==r.indexOf(i))return!1;r.push(i)}return!0}function xA(e){return null!==e?e:[]}function wA(e){if(null!==e)for(var t,i,n=e,r=new Array(n.length),s=0,a=n.length;s<a;s+=1){if(t=n[s],"[object Object]"!==iE.call(t)||1!==(i=Object.keys(t)).length)return!1;r[s]=[i[0],t[i[0]]]}return!0}function kA(e){if(null===e)return[];for(var t,i,n=e,r=new Array(n.length),s=0,a=n.length;s<a;s+=1)t=n[s],i=Object.keys(t),r[s]=[i[0],t[i[0]]];return r}function TA(e){if(null!==e){var t,i=e;for(t in i)if(rE.call(i,t)&&null!==i[t])return!1}return!0}function SA(e){return null!==e?e:{}}function _A(e){return Object.prototype.toString.call(e)}function CA(e){return 10===e||13===e}function AA(e){return 9===e||32===e}function EA(e){return 9===e||32===e||10===e||13===e}function $A(e){return 44===e||91===e||93===e||123===e||125===e}function LA(e){return 48<=e&&e<=57?e-48:97<=(e=32|e)&&e<=102?e-97+10:-1}function RA(e){return 120===e?2:117===e?4:85===e?8:0}function MA(e){return 48<=e&&e<=57?e-48:-1}function IA(e){return 48===e?"\0":97===e?"":98===e?"\b":116===e||9===e?"\t":110===e?`
|
||
`:118===e?"\v":102===e?"\f":114===e?"\r":101===e?"":32===e?" ":34===e?'"':47===e?"/":92===e?"\\":78===e?"
":95===e?" ":76===e?"\u2028":80===e?"\u2029":""}function NA(e){return e<=65535?String.fromCharCode(e):String.fromCharCode(55296+(e-65536>>10),56320+(e-65536&1023))}function DA(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||aE,this.onWarning=t.onWarning||null,this.legacy=t.legacy||!1,this.json=t.json||!1,this.listener=t.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=e.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}function OA(e,t){e={name:e.filename,buffer:e.input.slice(0,-1),position:e.position,line:e.line,column:e.position-e.lineStart};return e.snippet=j9(e),new F9(t,e)}function PA(e,t){throw OA(e,t)}function BA(e,t){e.onWarning&&e.onWarning.call(null,OA(e,t))}function FA(e,t,i,n){var r,s,a,o;if(t<i){if(o=e.input.slice(t,i),n)for(r=0,s=o.length;r<s;r+=1)9===(a=o.charCodeAt(r))||32<=a&&a<=1114111||PA(e,"expected valid JSON character");else fE.test(o)&&PA(e,"the stream contains non-printable characters");e.result+=o}}function jA(e,t,i,n){var r,s,a,o;for(B9.isObject(i)||PA(e,"cannot merge mappings; the provided source object is unacceptable"),a=0,o=(r=Object.keys(i)).length;a<o;a+=1)s=r[a],oE.call(t,s)||(t[s]=i[s],n[s]=!0)}function zA(e,t,i,n,r,s,a,o,l){var c,h;if(Array.isArray(r))for(c=0,h=(r=Array.prototype.slice.call(r)).length;c<h;c+=1)Array.isArray(r[c])&&PA(e,"nested arrays are not supported inside keys"),"object"==typeof r&&"[object Object]"===_A(r[c])&&(r[c]="[object Object]");if("object"==typeof r&&"[object Object]"===_A(r)&&(r="[object Object]"),r=String(r),null===t&&(t={}),"tag:yaml.org,2002:merge"===n)if(Array.isArray(s))for(c=0,h=s.length;c<h;c+=1)jA(e,t,s[c],i);else jA(e,t,s,i);else e.json||oE.call(i,r)||!oE.call(t,r)||(e.line=a||e.line,e.lineStart=o||e.lineStart,e.position=l||e.position,PA(e,"duplicated mapping key")),"__proto__"===r?Object.defineProperty(t,r,{configurable:!0,enumerable:!0,writable:!0,value:s}):t[r]=s,delete i[r];return t}function HA(e){var t=e.input.charCodeAt(e.position);10===t?e.position++:13===t?(e.position++,10===e.input.charCodeAt(e.position)&&e.position++):PA(e,"a line break is expected"),e.line+=1,e.lineStart=e.position,e.firstTabInLine=-1}function UA(e,t,i){for(var n=0,r=e.input.charCodeAt(e.position);0!==r;){for(;AA(r);)9===r&&-1===e.firstTabInLine&&(e.firstTabInLine=e.position),r=e.input.charCodeAt(++e.position);if(t&&35===r)for(;10!==(r=e.input.charCodeAt(++e.position))&&13!==r&&0!==r;);if(!CA(r))break;for(HA(e),r=e.input.charCodeAt(e.position),n++,e.lineIndent=0;32===r;)e.lineIndent++,r=e.input.charCodeAt(++e.position)}return-1!==i&&0!==n&&e.lineIndent<i&&BA(e,"deficient indentation"),n}function qA(e){var t=e.position,i=e.input.charCodeAt(t);return!(45!==i&&46!==i||i!==e.input.charCodeAt(t+1)||i!==e.input.charCodeAt(t+2)||0!==(i=e.input.charCodeAt(t+=3))&&!EA(i))}function WA(e,t){1===t?e.result+=" ":1<t&&(e.result+=B9.repeat(`
|
||
`,t-1))}function VA(e,t,i){var n,r,s,a,o,l,c,h=e.kind,u=e.result,d=e.input.charCodeAt(e.position);if(EA(d)||$A(d)||35===d||38===d||42===d||33===d||124===d||62===d||39===d||34===d||37===d||64===d||96===d||(63===d||45===d)&&(EA(n=e.input.charCodeAt(e.position+1))||i&&$A(n)))return!1;for(e.kind="scalar",e.result="",r=s=e.position,a=!1;0!==d;){if(58===d){if(EA(n=e.input.charCodeAt(e.position+1))||i&&$A(n))break}else if(35===d){if(EA(e.input.charCodeAt(e.position-1)))break}else{if(e.position===e.lineStart&&qA(e)||i&&$A(d))break;if(CA(d)){if(o=e.line,l=e.lineStart,c=e.lineIndent,UA(e,!1,-1),e.lineIndent>=t){a=!0,d=e.input.charCodeAt(e.position);continue}e.position=s,e.line=o,e.lineStart=l,e.lineIndent=c;break}}a&&(FA(e,r,s,!1),WA(e,e.line-o),r=s=e.position,a=!1),AA(d)||(s=e.position+1),d=e.input.charCodeAt(++e.position)}return FA(e,r,s,!1),!!e.result||(e.kind=h,e.result=u,!1)}function GA(e,t){var i,n,r=e.input.charCodeAt(e.position);if(39!==r)return!1;for(e.kind="scalar",e.result="",e.position++,i=n=e.position;0!==(r=e.input.charCodeAt(e.position));)if(39===r){if(FA(e,i,e.position,!0),39!==(r=e.input.charCodeAt(++e.position)))return!0;i=e.position,e.position++,n=e.position}else CA(r)?(FA(e,i,n,!0),WA(e,UA(e,!1,t)),i=n=e.position):e.position===e.lineStart&&qA(e)?PA(e,"unexpected end of the document within a single quoted scalar"):(e.position++,n=e.position);PA(e,"unexpected end of the stream within a single quoted scalar")}function YA(e,t){var i,n,r,s,a,o=e.input.charCodeAt(e.position);if(34!==o)return!1;for(e.kind="scalar",e.result="",e.position++,i=n=e.position;0!==(o=e.input.charCodeAt(e.position));){if(34===o)return FA(e,i,e.position,!0),e.position++,!0;if(92===o){if(FA(e,i,e.position,!0),CA(o=e.input.charCodeAt(++e.position)))UA(e,!1,t);else if(o<256&&xE[o])e.result+=wE[o],e.position++;else if(0<(a=RA(o))){for(r=a,s=0;0<r;r--)0<=(a=LA(o=e.input.charCodeAt(++e.position)))?s=(s<<4)+a:PA(e,"expected hexadecimal character");e.result+=NA(s),e.position++}else PA(e,"unknown escape sequence");i=n=e.position}else CA(o)?(FA(e,i,n,!0),WA(e,UA(e,!1,t)),i=n=e.position):e.position===e.lineStart&&qA(e)?PA(e,"unexpected end of the document within a double quoted scalar"):(e.position++,n=e.position)}PA(e,"unexpected end of the stream within a double quoted scalar")}function XA(e,t){var i,n,r,s,a,o,l,c,h,u,d,p=!0,g=e.tag,f=e.anchor,m=Object.create(null),y=e.input.charCodeAt(e.position);if(91===y)c=!(a=93),s=[];else{if(123!==y)return!1;a=125,c=!0,s={}}for(null!==e.anchor&&(e.anchorMap[e.anchor]=s),y=e.input.charCodeAt(++e.position);0!==y;){if(UA(e,!0,t),(y=e.input.charCodeAt(e.position))===a)return e.position++,e.tag=g,e.anchor=f,e.kind=c?"mapping":"sequence",e.result=s,!0;p?44===y&&PA(e,"expected the node content, but found ','"):PA(e,"missed comma between flow collection entries"),d=null,o=l=!1,63===y&&EA(e.input.charCodeAt(e.position+1))&&(o=l=!0,e.position++,UA(e,!0,t)),i=e.line,n=e.lineStart,r=e.position,i9(e,t,lE,!1,!0),u=e.tag,h=e.result,UA(e,!0,t),y=e.input.charCodeAt(e.position),!l&&e.line!==i||58!==y||(o=!0,y=e.input.charCodeAt(++e.position),UA(e,!0,t),i9(e,t,lE,!1,!0),d=e.result),c?zA(e,s,m,u,h,d,i,n,r):o?s.push(zA(e,null,m,u,h,d,i,n,r)):s.push(h),UA(e,!0,t),44===(y=e.input.charCodeAt(e.position))?(p=!0,y=e.input.charCodeAt(++e.position)):p=!1}PA(e,"unexpected end of the stream within a flow collection")}function KA(e,t){var i,n,r,s=dE,a=!1,o=!1,l=t,c=0,h=!1,u=e.input.charCodeAt(e.position);if(124===u)n=!1;else{if(62!==u)return!1;n=!0}for(e.kind="scalar",e.result="";0!==u;)if(43===(u=e.input.charCodeAt(++e.position))||45===u)dE===s?s=43===u?gE:pE:PA(e,"repeat of a chomping mode identifier");else{if(!(0<=(r=MA(u))))break;0===r?PA(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):o?PA(e,"repeat of an indentation width identifier"):(l=t+r-1,o=!0)}if(AA(u)){for(;AA(u=e.input.charCodeAt(++e.position)););if(35===u)for(;!CA(u=e.input.charCodeAt(++e.position))&&0!==u;);}for(;0!==u;){for(HA(e),e.lineIndent=0,u=e.input.charCodeAt(e.position);(!o||e.lineIndent<l)&&32===u;)e.lineIndent++,u=e.input.charCodeAt(++e.position);if(!o&&e.lineIndent>l&&(l=e.lineIndent),CA(u))c++;else{if(e.lineIndent<l){s===gE?e.result+=B9.repeat(`
|
||
`,a?1+c:c):s===dE&&a&&(e.result+=`
|
||
`);break}for(n?AA(u)?(h=!0,e.result+=B9.repeat(`
|
||
`,a?1+c:c)):h?(h=!1,e.result+=B9.repeat(`
|
||
`,c+1)):0===c?a&&(e.result+=" "):e.result+=B9.repeat(`
|
||
`,c):e.result+=B9.repeat(`
|
||
`,a?1+c:c),o=a=!0,c=0,i=e.position;!CA(u)&&0!==u;)u=e.input.charCodeAt(++e.position);FA(e,i,e.position,!1)}}return!0}function ZA(e,t){var i,n,r=e.tag,s=e.anchor,a=[],o=!1;if(-1!==e.firstTabInLine)return!1;for(null!==e.anchor&&(e.anchorMap[e.anchor]=a),n=e.input.charCodeAt(e.position);0!==n&&(-1!==e.firstTabInLine&&(e.position=e.firstTabInLine,PA(e,"tab characters must not be used in indentation")),45===n)&&EA(e.input.charCodeAt(e.position+1));)if(o=!0,e.position++,UA(e,!0,-1)&&e.lineIndent<=t)a.push(null),n=e.input.charCodeAt(e.position);else if(i=e.line,i9(e,t,hE,!1,!0),a.push(e.result),UA(e,!0,-1),n=e.input.charCodeAt(e.position),(e.line===i||e.lineIndent>t)&&0!==n)PA(e,"bad indentation of a sequence entry");else if(e.lineIndent<t)break;return!!o&&(e.tag=r,e.anchor=s,e.kind="sequence",e.result=a,!0)}function QA(e,t,i){var n,r,s,a,o,l,c,h=e.tag,u=e.anchor,d={},p=Object.create(null),g=null,f=null,m=null,y=!1,b=!1;if(-1!==e.firstTabInLine)return!1;for(null!==e.anchor&&(e.anchorMap[e.anchor]=d),c=e.input.charCodeAt(e.position);0!==c;){if(y||-1===e.firstTabInLine||(e.position=e.firstTabInLine,PA(e,"tab characters must not be used in indentation")),n=e.input.charCodeAt(e.position+1),s=e.line,63!==c&&58!==c||!EA(n)){if(a=e.line,o=e.lineStart,l=e.position,!i9(e,i,cE,!1,!0))break;if(e.line===s){for(c=e.input.charCodeAt(e.position);AA(c);)c=e.input.charCodeAt(++e.position);if(58===c)EA(c=e.input.charCodeAt(++e.position))||PA(e,"a whitespace character is expected after the key-value separator within a block mapping"),y&&(zA(e,d,p,g,f,null,a,o,l),g=f=m=null),r=y=!(b=!0),g=e.tag,f=e.result;else{if(!b)return e.tag=h,e.anchor=u,!0;PA(e,"can not read an implicit mapping pair; a colon is missed")}}else{if(!b)return e.tag=h,e.anchor=u,!0;PA(e,"can not read a block mapping entry; a multiline key may not be an implicit key")}}else 63===c?(y&&(zA(e,d,p,g,f,null,a,o,l),g=f=m=null),r=y=b=!0):y?r=!(y=!1):PA(e,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),e.position+=1,c=n;if((e.line===s||e.lineIndent>t)&&(y&&(a=e.line,o=e.lineStart,l=e.position),i9(e,t,uE,!0,r)&&(y?f=e.result:m=e.result),y||(zA(e,d,p,g,f,m,a,o,l),g=f=m=null),UA(e,!0,-1),c=e.input.charCodeAt(e.position)),(e.line===s||e.lineIndent>t)&&0!==c)PA(e,"bad indentation of a mapping entry");else if(e.lineIndent<t)break}return y&&zA(e,d,p,g,f,null,a,o,l),b&&(e.tag=h,e.anchor=u,e.kind="mapping",e.result=d),b}function JA(e){var t,i,n,r=!1,s=!1,a=e.input.charCodeAt(e.position);if(33!==a)return!1;if(null!==e.tag&&PA(e,"duplication of a tag property"),60===(a=e.input.charCodeAt(++e.position))?(r=!0,a=e.input.charCodeAt(++e.position)):33===a?(s=!0,i="!!",a=e.input.charCodeAt(++e.position)):i="!",t=e.position,r){for(;0!==(a=e.input.charCodeAt(++e.position))&&62!==a;);e.position<e.length?(n=e.input.slice(t,e.position),a=e.input.charCodeAt(++e.position)):PA(e,"unexpected end of the stream within a verbatim tag")}else{for(;0!==a&&!EA(a);)33===a&&(s?PA(e,"tag suffix cannot contain exclamation marks"):(i=e.input.slice(t-1,e.position+1),bE.test(i)||PA(e,"named tag handle cannot contain such characters"),s=!0,t=e.position+1)),a=e.input.charCodeAt(++e.position);n=e.input.slice(t,e.position),yE.test(n)&&PA(e,"tag suffix cannot contain flow indicator characters")}n&&!vE.test(n)&&PA(e,"tag name cannot contain such characters: "+n);try{n=decodeURIComponent(n)}catch{PA(e,"tag name is malformed: "+n)}return r?e.tag=n:oE.call(e.tagMap,i)?e.tag=e.tagMap[i]+n:"!"===i?e.tag="!"+n:"!!"===i?e.tag="tag:yaml.org,2002:"+n:PA(e,'undeclared tag handle "'+i+'"'),!0}function e9(e){var t,i=e.input.charCodeAt(e.position);if(38!==i)return!1;for(null!==e.anchor&&PA(e,"duplication of an anchor property"),i=e.input.charCodeAt(++e.position),t=e.position;0!==i&&!EA(i)&&!$A(i);)i=e.input.charCodeAt(++e.position);return e.position===t&&PA(e,"name of an anchor node must contain at least one character"),e.anchor=e.input.slice(t,e.position),!0}function t9(e){var t,i=e.input.charCodeAt(e.position);if(42!==i)return!1;for(i=e.input.charCodeAt(++e.position),t=e.position;0!==i&&!EA(i)&&!$A(i);)i=e.input.charCodeAt(++e.position);return e.position===t&&PA(e,"name of an alias node must contain at least one character"),t=e.input.slice(t,e.position),oE.call(e.anchorMap,t)||PA(e,'unidentified alias "'+t+'"'),e.result=e.anchorMap[t],UA(e,!0,-1),!0}function i9(e,t,i,n,r){var s,a,o,l,c,h,u,d=1,p=!1,g=!1;if(null!==e.listener&&e.listener("open",e),e.tag=null,e.anchor=null,e.kind=null,e.result=null,s=a=o=uE===i||hE===i,n&&UA(e,!0,-1)&&(p=!0,e.lineIndent>t?d=1:e.lineIndent===t?d=0:e.lineIndent<t&&(d=-1)),1===d)for(;JA(e)||e9(e);)UA(e,!0,-1)?(p=!0,o=s,e.lineIndent>t?d=1:e.lineIndent===t?d=0:e.lineIndent<t&&(d=-1)):o=!1;if(o=o&&(p||r),1!==d&&uE!==i||(n=lE===i||cE===i?t:t+1,r=e.position-e.lineStart,1===d?o&&(ZA(e,r)||QA(e,r,n))||XA(e,n)?g=!0:(a&&KA(e,n)||GA(e,n)||YA(e,n)?g=!0:t9(e)?(g=!0,null===e.tag&&null===e.anchor||PA(e,"alias node should not have any properties")):VA(e,n,lE===i)&&(g=!0,null===e.tag)&&(e.tag="?"),null!==e.anchor&&(e.anchorMap[e.anchor]=e.result)):0===d&&(g=o&&ZA(e,r))),null===e.tag)null!==e.anchor&&(e.anchorMap[e.anchor]=e.result);else if("?"===e.tag){for(null!==e.result&&"scalar"!==e.kind&&PA(e,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+e.kind+'"'),l=0,c=e.implicitTypes.length;l<c;l+=1)if((u=e.implicitTypes[l]).resolve(e.result)){e.result=u.construct(e.result),e.tag=u.tag,null!==e.anchor&&(e.anchorMap[e.anchor]=e.result);break}}else if("!"!==e.tag){if(oE.call(e.typeMap[e.kind||"fallback"],e.tag))u=e.typeMap[e.kind||"fallback"][e.tag];else for(u=null,l=0,c=(h=e.typeMap.multi[e.kind||"fallback"]).length;l<c;l+=1)if(e.tag.slice(0,h[l].tag.length)===h[l].tag){u=h[l];break}u||PA(e,"unknown tag !<"+e.tag+">"),null!==e.result&&u.kind!==e.kind&&PA(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+u.kind+'", not "'+e.kind+'"'),u.resolve(e.result,e.tag)?(e.result=u.construct(e.result,e.tag),null!==e.anchor&&(e.anchorMap[e.anchor]=e.result)):PA(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")}return null!==e.listener&&e.listener("close",e),null!==e.tag||null!==e.anchor||g}function n9(e){var t,i,n,r,s=e.position,a=!1;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap=Object.create(null),e.anchorMap=Object.create(null);0!==(r=e.input.charCodeAt(e.position))&&(UA(e,!0,-1),r=e.input.charCodeAt(e.position),!(0<e.lineIndent||37!==r));){for(a=!0,r=e.input.charCodeAt(++e.position),t=e.position;0!==r&&!EA(r);)r=e.input.charCodeAt(++e.position);for(n=[],(i=e.input.slice(t,e.position)).length<1&&PA(e,"directive name must not be less than one character in length");0!==r;){for(;AA(r);)r=e.input.charCodeAt(++e.position);if(35===r){for(;0!==(r=e.input.charCodeAt(++e.position))&&!CA(r););break}if(CA(r))break;for(t=e.position;0!==r&&!EA(r);)r=e.input.charCodeAt(++e.position);n.push(e.input.slice(t,e.position))}0!==r&&HA(e),oE.call(TE,i)?TE[i](e,i,n):BA(e,'unknown document directive "'+i+'"')}UA(e,!0,-1),0===e.lineIndent&&45===e.input.charCodeAt(e.position)&&45===e.input.charCodeAt(e.position+1)&&45===e.input.charCodeAt(e.position+2)?(e.position+=3,UA(e,!0,-1)):a&&PA(e,"directives end mark is expected"),i9(e,e.lineIndent-1,uE,!1,!0),UA(e,!0,-1),e.checkLineBreaks&&mE.test(e.input.slice(s,e.position))&&BA(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&qA(e)?46===e.input.charCodeAt(e.position)&&(e.position+=3,UA(e,!0,-1)):e.position<e.length-1&&PA(e,"end of the stream or a document separator is expected")}function r9(e,t){t=t||{};var i=new DA(e=0!==(e=String(e)).length&&(10!==e.charCodeAt(e.length-1)&&13!==e.charCodeAt(e.length-1)&&(e+=`
|
||
`),65279===e.charCodeAt(0))?e.slice(1):e,t),t=e.indexOf("\0");for(-1!==t&&(i.position=t,PA(i,"null byte is not allowed in input")),i.input+="\0";32===i.input.charCodeAt(i.position);)i.lineIndent+=1,i.position+=1;for(;i.position<i.length-1;)n9(i);return i.documents}function s9(e,t,i){null!==t&&"object"==typeof t&&"u"<typeof i&&(i=t,t=null);var n=r9(e,i);if("function"!=typeof t)return n;for(var r=0,s=n.length;r<s;r+=1)t(n[r])}function a9(e,t){e=r9(e,t);if(0!==e.length){if(1===e.length)return e[0];throw new F9("expected a single document in the stream, but found more")}}function o9(e,t){var i,n,r,s,a,o,l;if(null===t)return{};for(i={},r=0,s=(n=Object.keys(t)).length;r<s;r+=1)a=n[r],o=String(t[a]),"!!"===a.slice(0,2)&&(a="tag:yaml.org,2002:"+a.slice(2)),(l=e.compiledTypeMap.fallback[a])&&CE.call(l.styleAliases,o)&&(o=l.styleAliases[o]),i[a]=o;return i}function l9(e){var t,i,n=e.toString(16).toUpperCase();if(e<=255)t="x",i=2;else if(e<=65535)t="u",i=4;else{if(!(e<=4294967295))throw new F9("code point within a string may not be greater than 0xFFFFFFFF");t="U",i=8}return"\\"+t+B9.repeat("0",i-n.length)+n}function c9(e){this.schema=e.schema||aE,this.indent=Math.max(1,e.indent||2),this.noArrayIndent=e.noArrayIndent||!1,this.skipInvalid=e.skipInvalid||!1,this.flowLevel=B9.isNothing(e.flowLevel)?-1:e.flowLevel,this.styleMap=o9(this.schema,e.styles||null),this.sortKeys=e.sortKeys||!1,this.lineWidth=e.lineWidth||80,this.noRefs=e.noRefs||!1,this.noCompatMode=e.noCompatMode||!1,this.condenseFlow=e.condenseFlow||!1,this.quotingType='"'===e.quotingType?ME:1,this.forceQuotes=e.forceQuotes||!1,this.replacer="function"==typeof e.replacer?e.replacer:null,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}function h9(e,t){for(var i,n,r=B9.repeat(" ",t),s=0,a="",o=e.length;s<o;)s=-1===(i=e.indexOf(`
|
||
`,s))?(n=e.slice(s),o):(n=e.slice(s,i+1),i+1),n.length&&n!==`
|
||
`&&(a+=r),a+=n;return a}function u9(e,t){return`
|
||
`+B9.repeat(" ",e.indent*t)}function d9(e,t){for(var i=0,n=e.implicitTypes.length;i<n;i+=1)if(e.implicitTypes[i].resolve(t))return!0;return!1}function p9(e){return 32===e||9===e}function g9(e){return 32<=e&&e<=126||161<=e&&e<=55295&&8232!==e&&8233!==e||57344<=e&&e<=65533&&e!==AE||65536<=e&&e<=1114111}function f9(e){return g9(e)&&e!==AE&&13!==e&&e!==EE}function m9(e,t,i){var n=f9(e),r=n&&!p9(e);return(i?n:n&&44!==e&&91!==e&&93!==e&&123!==e&&125!==e)&&35!==e&&!(58===t&&!r)||f9(t)&&!p9(t)&&35===e||58===t&&r}function y9(e){return g9(e)&&e!==AE&&!p9(e)&&45!==e&&63!==e&&58!==e&&44!==e&&91!==e&&93!==e&&123!==e&&125!==e&&35!==e&&38!==e&&42!==e&&33!==e&&124!==e&&61!==e&&62!==e&&39!==e&&34!==e&&37!==e&&64!==e&&96!==e}function b9(e){return!p9(e)&&58!==e}function v9(e,t){var i=e.charCodeAt(t);return 55296<=i&&i<=56319&&t+1<e.length&&56320<=(e=e.charCodeAt(t+1))&&e<=57343?1024*(i-55296)+e-56320+65536:i}function x9(e){return/^\n* /.test(e)}function w9(e,t,i,n,r,s,a,o){var l,c=0,h=null,u=!1,d=!1,p=-1!==n,g=-1,f=y9(v9(e,0))&&b9(v9(e,e.length-1));if(t||a)for(l=0;l<e.length;65536<=c?l+=2:l++){if(!g9(c=v9(e,l)))return PE;f=f&&m9(c,h,o),h=c}else{for(l=0;l<e.length;65536<=c?l+=2:l++){if((c=v9(e,l))===EE)u=!0,p&&(d=d||n<l-g-1&&" "!==e[g+1],g=l);else if(!g9(c))return PE;f=f&&m9(c,h,o),h=c}d=d||p&&n<l-g-1&&" "!==e[g+1]}return u||d?9<i&&x9(e)?PE:a?s===ME?PE:NE:d?OE:DE:!f||a||r(e)?s===ME?PE:NE:IE}function k9(r,s,a,o,l){r.dump=function(){if(0===s.length)return r.quotingType===ME?'""':"''";if(!r.noCompatMode&&(-1!==LE.indexOf(s)||RE.test(s)))return r.quotingType===ME?'"'+s+'"':"'"+s+"'";var e=r.indent*Math.max(1,a),t=-1===r.lineWidth?-1:Math.max(Math.min(r.lineWidth,40),r.lineWidth-e),i=o||-1<r.flowLevel&&a>=r.flowLevel;function n(e){return d9(r,e)}switch(mt(n,"testAmbiguity"),w9(s,i,r.indent,t,n,r.quotingType,r.forceQuotes&&!o,l)){case IE:return s;case NE:return"'"+s.replace(/'/g,"''")+"'";case DE:return"|"+T9(s,r.indent)+S9(h9(s,e));case OE:return">"+T9(s,r.indent)+S9(h9(_9(s,t),e));case PE:return'"'+A9(s)+'"';default:throw new F9("impossible error: invalid scalar style")}}()}function T9(e,t){var t=x9(e)?String(t):"",i=e[e.length-1]===`
|
||
`;return t+(i&&(e[e.length-2]===`
|
||
`||e===`
|
||
`)?"+":i?"":"-")+`
|
||
`}function S9(e){return e[e.length-1]===`
|
||
`?e.slice(0,-1):e}function _9(e,t){for(var i,n=/(\n+)([^\n]*)/g,r=(i=-1!==(i=e.indexOf(`
|
||
`))?i:e.length,n.lastIndex=i,C9(e.slice(0,i),t)),s=e[0]===`
|
||
`||" "===e[0];o=n.exec(e);){var a=o[1],o=o[2],l=" "===o[0];r+=a+(s||l||""===o?"":`
|
||
`)+C9(o,t),s=l}return r}function C9(e,t){if(""===e||" "===e[0])return e;for(var i,n,r=/ [^ ]/g,s=0,a=0,o="";n=r.exec(e);)t<(n=n.index)-s&&(o+=`
|
||
`+e.slice(s,i=s<a?a:n),s=i+1),a=n;return o+=`
|
||
`,e.length-s>t&&s<a?o+=e.slice(s,a)+`
|
||
`+e.slice(a+1):o+=e.slice(s),o.slice(1)}function A9(e){for(var t,i,n="",r=0;r<e.length;65536<=t?r+=2:r++)t=v9(e,r),!(i=$E[t])&&g9(t)?(n+=e[r],65536<=t&&(n+=e[r+1])):n+=i||l9(t);return n}function E9(e,t,i){for(var n,r="",s=e.tag,a=0,o=i.length;a<o;a+=1)n=i[a],e.replacer&&(n=e.replacer.call(i,String(a),n)),(I9(e,t,n,!1,!1)||"u"<typeof n&&I9(e,t,null,!1,!1))&&(""!==r&&(r+=","+(e.condenseFlow?"":" ")),r+=e.dump);e.tag=s,e.dump="["+r+"]"}function $9(e,t,i,n){for(var r,s="",a=e.tag,o=0,l=i.length;o<l;o+=1)r=i[o],e.replacer&&(r=e.replacer.call(i,String(o),r)),(I9(e,t+1,r,!0,!0,!1,!0)||"u"<typeof r&&I9(e,t+1,null,!0,!0,!1,!0))&&(n&&""===s||(s+=u9(e,t)),e.dump&&EE===e.dump.charCodeAt(0)?s+="-":s+="- ",s+=e.dump);e.tag=a,e.dump=s||"[]"}function L9(e,t,i){for(var n,r,s,a="",o=e.tag,l=Object.keys(i),c=0,h=l.length;c<h;c+=1)(s="")!==a&&(s+=", "),e.condenseFlow&&(s+='"'),r=i[n=l[c]],e.replacer&&(r=e.replacer.call(i,n,r)),I9(e,t,n,!1,!1)&&(1024<e.dump.length&&(s+="? "),s+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),I9(e,t,r,!1,!1))&&(a+=s+=e.dump);e.tag=o,e.dump="{"+a+"}"}function R9(e,t,i,n){var r,s,a,o,l,c="",h=e.tag,u=Object.keys(i);if(!0===e.sortKeys)u.sort();else if("function"==typeof e.sortKeys)u.sort(e.sortKeys);else if(e.sortKeys)throw new F9("sortKeys must be a boolean or a function");for(r=0,s=u.length;r<s;r+=1)l="",n&&""===c||(l+=u9(e,t)),a=i[o=u[r]],e.replacer&&(a=e.replacer.call(i,o,a)),I9(e,t+1,o,!0,!0,!0)&&((o=null!==e.tag&&"?"!==e.tag||e.dump&&1024<e.dump.length)&&(e.dump&&EE===e.dump.charCodeAt(0)?l+="?":l+="? "),l+=e.dump,o&&(l+=u9(e,t)),I9(e,t+1,a,!0,o))&&(e.dump&&EE===e.dump.charCodeAt(0)?l+=":":l+=": ",c+=l+=e.dump);e.tag=h,e.dump=c||"{}"}function M9(e,t,i){for(var n,r,s,a=i?e.explicitTypes:e.implicitTypes,o=0,l=a.length;o<l;o+=1)if(((r=a[o]).instanceOf||r.predicate)&&(!r.instanceOf||"object"==typeof t&&t instanceof r.instanceOf)&&(!r.predicate||r.predicate(t))){if(i?r.multi&&r.representName?e.tag=r.representName(t):e.tag=r.tag:e.tag="?",r.represent){if(s=e.styleMap[r.tag]||r.defaultStyle,"[object Function]"===_E.call(r.represent))n=r.represent(t,s);else{if(!CE.call(r.represent,s))throw new F9("!<"+r.tag+'> tag resolver accepts not "'+s+'" style');n=r.represent[s](t,s)}e.dump=n}return!0}return!1}function I9(e,t,i,n,r,s,a){e.tag=null,e.dump=i,M9(e,i,!1)||M9(e,i,!0);var o,l,c=_E.call(e.dump),h=n,u=(n=n&&(e.flowLevel<0||e.flowLevel>t),"[object Object]"===c||"[object Array]"===c);if(u&&(l=-1!==(o=e.duplicates.indexOf(i))),(null!==e.tag&&"?"!==e.tag||l||2!==e.indent&&0<t)&&(r=!1),l&&e.usedDuplicates[o])e.dump="*ref_"+o;else{if(u&&l&&!e.usedDuplicates[o]&&(e.usedDuplicates[o]=!0),"[object Object]"===c)n&&0!==Object.keys(e.dump).length?(R9(e,t,e.dump,r),l&&(e.dump="&ref_"+o+e.dump)):(L9(e,t,e.dump),l&&(e.dump="&ref_"+o+" "+e.dump));else if("[object Array]"===c)n&&0!==e.dump.length?(e.noArrayIndent&&!a&&0<t?$9(e,t-1,e.dump,r):$9(e,t,e.dump,r),l&&(e.dump="&ref_"+o+e.dump)):(E9(e,t,e.dump),l&&(e.dump="&ref_"+o+" "+e.dump));else{if("[object String]"!==c){if("[object Undefined]"===c)return!1;if(e.skipInvalid)return!1;throw new F9("unacceptable kind of an object to dump "+c)}"?"!==e.tag&&k9(e,e.dump,t,s,h)}null!==e.tag&&"?"!==e.tag&&(i=encodeURI("!"===e.tag[0]?e.tag.slice(1):e.tag).replace(/!/g,"%21"),i="!"===e.tag[0]?"!"+i:"tag:yaml.org,2002:"===i.slice(0,18)?"!!"+i.slice(18):"!<"+i+">",e.dump=i+" "+e.dump)}return!0}function N9(e,t){var i,n,r=[],s=[];for(D9(e,r,s),i=0,n=s.length;i<n;i+=1)t.duplicates.push(r[s[i]]);t.usedDuplicates=new Array(n)}function D9(e,t,i){var n,r,s;if(null!==e&&"object"==typeof e)if(-1!==(r=t.indexOf(e)))-1===i.indexOf(r)&&i.push(r);else if(t.push(e),Array.isArray(e))for(r=0,s=e.length;r<s;r+=1)D9(e[r],t,i);else for(r=0,s=(n=Object.keys(e)).length;r<s;r+=1)D9(e[n[r]],t,i)}function O9(e,t){t=new c9(t=t||{}),t.noRefs||N9(e,t);return t.replacer&&(e=t.replacer.call({"":e},"",e)),I9(t,0,e,!0,!0)?t.dump+`
|
||
`:""}function P9(e,t){return function(){throw new Error("Function yaml."+e+" is removed in js-yaml 4. Use yaml."+t+" instead, which is now safe by default.")}}var B9,F9,j9,z9,H9,U9,q9,W9,V9,G9,Y9,X9,K9,Z9,Q9,J9,eE,tE,iE,nE,rE,sE,aE,oE,lE,cE,hE,uE,dE,pE,gE,fE,mE,yE,bE,vE,xE,wE,kE,TE,SE,_E,CE,AE,EE,$E,LE,RE,ME,IE,NE,DE,OE,PE,BE,FE,jE=e(()=>{"use strict";for(mt(IC,"isNothing"),mt(NC,"isObject"),mt(DC,"toArray"),mt(OC,"extend"),mt(PC,"repeat"),mt(BC,"isNegativeZero"),B9={isNothing:IC,isObject:NC,toArray:DC,repeat:PC,isNegativeZero:BC,extend:OC},mt(FC,"formatError"),mt(jC,"YAMLException$1"),((jC.prototype=Object.create(Error.prototype)).constructor=jC).prototype.toString=mt(function(e){return this.name+": "+FC(this,e)},"toString"),F9=jC,mt(zC,"getLine"),mt(HC,"padStart"),mt(UC,"makeSnippet"),j9=UC,z9=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],H9=["scalar","sequence","mapping"],mt(qC,"compileStyleAliases"),mt(WC,"Type$1"),U9=WC,mt(VC,"compileList"),mt(GC,"compileMap"),mt(YC,"Schema$1"),YC.prototype.extend=mt(function(e){var t=[],i=[];if(e instanceof U9)i.push(e);else if(Array.isArray(e))i=i.concat(e);else{if(!e||!Array.isArray(e.implicit)&&!Array.isArray(e.explicit))throw new F9("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");e.implicit&&(t=t.concat(e.implicit)),e.explicit&&(i=i.concat(e.explicit))}t.forEach(function(e){if(!(e instanceof U9))throw new F9("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(e.loadKind&&"scalar"!==e.loadKind)throw new F9("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(e.multi)throw new F9("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),i.forEach(function(e){if(!(e instanceof U9))throw new F9("Specified list of YAML types (or a single Type object) contains a non-Type object.")});e=Object.create(YC.prototype);return e.implicit=(this.implicit||[]).concat(t),e.explicit=(this.explicit||[]).concat(i),e.compiledImplicit=VC(e,"implicit"),e.compiledExplicit=VC(e,"explicit"),e.compiledTypeMap=GC(e.compiledImplicit,e.compiledExplicit),e},"extend"),V9=YC,SE=new U9("tag:yaml.org,2002:str",{kind:"scalar",construct:mt(function(e){return null!==e?e:""},"construct")}),X9=new U9("tag:yaml.org,2002:seq",{kind:"sequence",construct:mt(function(e){return null!==e?e:[]},"construct")}),K9=new U9("tag:yaml.org,2002:map",{kind:"mapping",construct:mt(function(e){return null!==e?e:{}},"construct")}),V9=new V9({explicit:[SE,X9,K9]}),mt(XC,"resolveYamlNull"),mt(KC,"constructYamlNull"),mt(ZC,"isNull"),SE=new U9("tag:yaml.org,2002:null",{kind:"scalar",resolve:XC,construct:KC,predicate:ZC,represent:{canonical:mt(function(){return"~"},"canonical"),lowercase:mt(function(){return"null"},"lowercase"),uppercase:mt(function(){return"NULL"},"uppercase"),camelcase:mt(function(){return"Null"},"camelcase"),empty:mt(function(){return""},"empty")},defaultStyle:"lowercase"}),mt(QC,"resolveYamlBoolean"),mt(JC,"constructYamlBoolean"),mt(eA,"isBoolean"),X9=new U9("tag:yaml.org,2002:bool",{kind:"scalar",resolve:QC,construct:JC,predicate:eA,represent:{lowercase:mt(function(e){return e?"true":"false"},"lowercase"),uppercase:mt(function(e){return e?"TRUE":"FALSE"},"uppercase"),camelcase:mt(function(e){return e?"True":"False"},"camelcase")},defaultStyle:"lowercase"}),mt(tA,"isHexCode"),mt(iA,"isOctCode"),mt(nA,"isDecCode"),mt(rA,"resolveYamlInteger"),mt(sA,"constructYamlInteger"),mt(aA,"isInteger"),K9=new U9("tag:yaml.org,2002:int",{kind:"scalar",resolve:rA,construct:sA,predicate:aA,represent:{binary:mt(function(e){return 0<=e?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1)},"binary"),octal:mt(function(e){return 0<=e?"0o"+e.toString(8):"-0o"+e.toString(8).slice(1)},"octal"),decimal:mt(function(e){return e.toString(10)},"decimal"),hexadecimal:mt(function(e){return 0<=e?"0x"+e.toString(16).toUpperCase():"-0x"+e.toString(16).toUpperCase().slice(1)},"hexadecimal")},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),q9=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$"),mt(oA,"resolveYamlFloat"),mt(lA,"constructYamlFloat"),W9=/^[-+]?[0-9]+e/,mt(cA,"representYamlFloat"),mt(hA,"isFloat"),Q9=new U9("tag:yaml.org,2002:float",{kind:"scalar",resolve:oA,construct:lA,predicate:hA,represent:cA,defaultStyle:"lowercase"}),V9=V9.extend({implicit:[SE,X9,K9,Q9]}),SE=V9,G9=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),Y9=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]))?))?$"),mt(uA,"resolveYamlTimestamp"),mt(dA,"constructYamlTimestamp"),mt(pA,"representYamlTimestamp"),X9=new U9("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:uA,construct:dA,instanceOf:Date,represent:pA}),mt(gA,"resolveYamlMerge"),K9=new U9("tag:yaml.org,2002:merge",{kind:"scalar",resolve:gA}),Z9=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
|
||
\r`,mt(fA,"resolveYamlBinary"),mt(mA,"constructYamlBinary"),mt(yA,"representYamlBinary"),mt(bA,"isBinary"),Q9=new U9("tag:yaml.org,2002:binary",{kind:"scalar",resolve:fA,construct:mA,predicate:bA,represent:yA}),J9=Object.prototype.hasOwnProperty,eE=Object.prototype.toString,mt(vA,"resolveYamlOmap"),mt(xA,"constructYamlOmap"),tE=new U9("tag:yaml.org,2002:omap",{kind:"sequence",resolve:vA,construct:xA}),iE=Object.prototype.toString,mt(wA,"resolveYamlPairs"),mt(kA,"constructYamlPairs"),nE=new U9("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:wA,construct:kA}),rE=Object.prototype.hasOwnProperty,mt(TA,"resolveYamlSet"),mt(SA,"constructYamlSet"),sE=new U9("tag:yaml.org,2002:set",{kind:"mapping",resolve:TA,construct:SA}),aE=SE.extend({implicit:[X9,K9],explicit:[Q9,tE,nE,sE]}),oE=Object.prototype.hasOwnProperty,uE=4,dE=lE=1,pE=cE=2,gE=hE=3,fE=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,mE=/[\x85\u2028\u2029]/,yE=/[,\[\]\{\}]/,bE=/^(?:!|!!|![a-z\-]+!)$/i,vE=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i,mt(_A,"_class"),mt(CA,"is_EOL"),mt(AA,"is_WHITE_SPACE"),mt(EA,"is_WS_OR_EOL"),mt($A,"is_FLOW_INDICATOR"),mt(LA,"fromHexCode"),mt(RA,"escapedHexLen"),mt(MA,"fromDecimalCode"),mt(IA,"simpleEscapeSequence"),mt(NA,"charFromCodepoint"),xE=new Array(256),wE=new Array(256),kE=0;kE<256;kE++)xE[kE]=IA(kE)?1:0,wE[kE]=IA(kE);mt(DA,"State$1"),mt(OA,"generateError"),mt(PA,"throwError"),mt(BA,"throwWarning"),TE={YAML:mt(function(e,t,i){var n,r;null!==e.version&&PA(e,"duplication of %YAML directive"),1!==i.length&&PA(e,"YAML directive accepts exactly one argument"),null===(r=/^([0-9]+)\.([0-9]+)$/.exec(i[0]))&&PA(e,"ill-formed argument of the YAML directive"),n=parseInt(r[1],10),r=parseInt(r[2],10),1!==n&&PA(e,"unacceptable YAML version of the document"),e.version=i[0],e.checkLineBreaks=r<2,1!==r&&2!==r&&BA(e,"unsupported YAML version of the document")},"handleYamlDirective"),TAG:mt(function(e,t,i){var n;2!==i.length&&PA(e,"TAG directive accepts exactly two arguments"),n=i[0],i=i[1],bE.test(n)||PA(e,"ill-formed tag handle (first argument) of the TAG directive"),oE.call(e.tagMap,n)&&PA(e,'there is a previously declared suffix for "'+n+'" tag handle'),vE.test(i)||PA(e,"ill-formed tag prefix (second argument) of the TAG directive");try{i=decodeURIComponent(i)}catch{PA(e,"tag prefix is malformed: "+i)}e.tagMap[n]=i},"handleTagDirective")},mt(FA,"captureSegment"),mt(jA,"mergeMappings"),mt(zA,"storeMappingPair"),mt(HA,"readLineBreak"),mt(UA,"skipSeparationSpace"),mt(qA,"testDocumentSeparator"),mt(WA,"writeFoldedLines"),mt(VA,"readPlainScalar"),mt(GA,"readSingleQuotedScalar"),mt(YA,"readDoubleQuotedScalar"),mt(XA,"readFlowCollection"),mt(KA,"readBlockScalar"),mt(ZA,"readBlockSequence"),mt(QA,"readBlockMapping"),mt(JA,"readTagProperty"),mt(e9,"readAnchorProperty"),mt(t9,"readAlias"),mt(i9,"composeNode"),mt(n9,"readDocument"),mt(r9,"loadDocuments"),mt(s9,"loadAll$1"),mt(a9,"load$1"),SE={loadAll:s9,load:a9},_E=Object.prototype.toString,CE=Object.prototype.hasOwnProperty,AE=65279,EE=10,$E={0:"\\0",7:"\\a",8:"\\b",9:"\\t",10:"\\n",11:"\\v",12:"\\f",13:"\\r",27:"\\e",34:'\\"',92:"\\\\",133:"\\N",160:"\\_",8232:"\\L",8233:"\\P"},LE=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],RE=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/,mt(o9,"compileStyleMap"),mt(l9,"encodeHex"),ME=2,mt(c9,"State"),mt(h9,"indentString"),mt(u9,"generateNextLine"),mt(d9,"testImplicitResolving"),mt(p9,"isWhitespace"),mt(g9,"isPrintable"),mt(f9,"isNsCharOrWhitespace"),mt(m9,"isPlainSafe"),mt(y9,"isPlainSafeFirst"),mt(b9,"isPlainSafeLast"),mt(v9,"codePointAt"),mt(x9,"needIndentIndicator"),IE=1,NE=2,DE=3,OE=4,PE=5,mt(w9,"chooseScalarStyle"),mt(k9,"writeScalar"),mt(T9,"blockHeader"),mt(S9,"dropEndingNewline"),mt(_9,"foldString"),mt(C9,"foldLine"),mt(A9,"escapeString"),mt(E9,"writeFlowSequence"),mt($9,"writeBlockSequence"),mt(L9,"writeFlowMapping"),mt(R9,"writeBlockMapping"),mt(M9,"detectType"),mt(I9,"writeNode"),mt(N9,"getDuplicateReferences"),mt(D9,"inspectNode"),mt(O9,"dump$1"),mt(P9,"renamed"),BE=V9,FE=SE.load,P9("safeLoad","load"),P9("safeLoadAll","loadAll"),P9("safeDump","dump")});function zE(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}function HE(e){QE=e}function UE(e,t=""){let n="string"==typeof e?e:e.source,r={replace:mt((e,t)=>{let i="string"==typeof t?t:t.source;return i=i.replace(e$.caret,"$1"),n=n.replace(e,i),r},"replace"),getRegex:mt(()=>new RegExp(n,t),"getRegex")};return r}function qE(e,t){if(t){if(e$.escapeTest.test(e))return e.replace(e$.escapeReplace,_$)}else if(e$.escapeTestNoEncode.test(e))return e.replace(e$.escapeReplaceNoEncode,_$);return e}function WE(e){try{e=encodeURI(e).replace(e$.percentDecode,"%")}catch{return null}return e}function VE(e,t){let i=e.replace(e$.findPipe,(e,t,i)=>{let n=!1,r=t;for(;0<=--r&&"\\"===i[r];)n=!n;return n?"|":" |"}),n=i.split(e$.splitPipe),r=0;if(n[0].trim()||n.shift(),0<n.length&&!n.at(-1)?.trim()&&n.pop(),t)if(n.length>t)n.splice(t);else for(;n.length<t;)n.push("");for(;r<n.length;r++)n[r]=n[r].trim().replace(e$.slashPipe,"|");return n}function GE(e,t,i){var n=e.length;if(0===n)return"";let r=0;for(;r<n;){var s=e.charAt(n-r-1);if((s!==t||i)&&(s===t||!i))break;r++}return e.slice(0,n-r)}function YE(t,i){if(-1===t.indexOf(i[1]))return-1;let n=0;for(let e=0;e<t.length;e++)if("\\"===t[e])e++;else if(t[e]===i[0])n++;else if(t[e]===i[1]&&--n<0)return e;return 0<n?-2:-1}function XE(e,t,i,n,r){var s=t.href,t=t.title||null,r=e[1].replace(r.other.outputLinkReplace,"$1"),e=(n.state.inLink=!0,{type:"!"===e[0].charAt(0)?"image":"link",raw:i,href:s,title:t,text:r,tokens:n.inlineTokens(r)});return n.state.inLink=!1,e}function KE(e,t,i){e=e.match(i.other.indentCodeCompensation);if(null===e)return t;let n=e[1];return t.split(`
|
||
`).map(e=>{var t=e.match(i.other.beginningSpace);return null!==t&&([t]=t,t.length>=n.length)?e.slice(n.length):e}).join(`
|
||
`)}function ZE(e,t){return I$.parse(e,t)}var QE,JE,e$,t$,i$,n$,r$,s$,a$,o$,l$,c$,h$,u$,d$,p$,g$,f$,m$,y$,b$,v$,x$,w$,k$,T$,S$,_$,C$,A$,E$,$$,L$,R$,M$,I$,N$=e(()=>{"use strict";mt(zE,"M"),QE=zE(),mt(HE,"H"),JE={exec:mt(()=>null,"exec")},mt(UE,"h"),e$={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceTabs:/^\t+/,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] /,listReplaceTask:/^\[[ xX]\] +/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,unescapeTest:/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:mt(e=>new RegExp(`^( {0,3}${e})((?:[ ][^\\n]*)?(?:\\n|$))`),"listItemRegex"),nextBulletRegex:mt(e=>new RegExp(`^ {0,${Math.min(3,e-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),"nextBulletRegex"),hrRegex:mt(e=>new RegExp(`^ {0,${Math.min(3,e-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),"hrRegex"),fencesBeginRegex:mt(e=>new RegExp(`^ {0,${Math.min(3,e-1)}}(?:\`\`\`|~~~)`),"fencesBeginRegex"),headingBeginRegex:mt(e=>new RegExp(`^ {0,${Math.min(3,e-1)}}#`),"headingBeginRegex"),htmlBeginRegex:mt(e=>new RegExp(`^ {0,${Math.min(3,e-1)}}<(?:[a-z].*>|!--)`,"i"),"htmlBeginRegex")},a$=/^(?:[ \t]*(?:\n|$))+/,o$=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,n$=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,u$=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,r$=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,s$=/(?:[*+-]|\d{1,9}[.)])/,x$=UE(f$=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/).replace(/bull/g,s$).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),f$=UE(f$).replace(/bull/g,s$).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),b$=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,d$=/^[^\n]+/,m$=/(?!\s*\])(?:\\.|[^\[\]\\])+/,i$=UE(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",m$).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),s$=UE(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,s$).getRegex(),v$="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",g$=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,w$=UE("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ \t]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ \t]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ \t]*)+\\n|$))","i").replace("comment",g$).replace("tag",v$).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),p$=UE(b$).replace("hr",u$).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",v$).getRegex(),t$=UE(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",p$).getRegex(),t$={blockquote:t$,code:o$,def:i$,fences:n$,heading:r$,hr:u$,html:w$,lheading:x$,list:s$,newline:a$,paragraph:p$,table:JE,text:d$},o$=UE("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",u$).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3}\t)[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",v$).getRegex(),i$={...t$,lheading:f$,table:o$,paragraph:UE(b$).replace("hr",u$).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",o$).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",v$).getRegex()},n$={...t$,html:UE(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",g$).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:JE,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:UE(b$).replace("hr",u$).replace("heading",` *#{1,6} *[^
|
||
]`).replace("lheading",x$).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},r$=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,w$=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,s$=/^( {2,}|\\)\n(?!\s*$)/,a$=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,p$=/[\p{P}\p{S}]/u,d$=/[\s\p{P}\p{S}]/u,f$=/[^\s\p{P}\p{S}]/u,o$=UE(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,d$).getRegex(),v$=/(?!~)[\p{P}\p{S}]/u,b$=/(?!~)[\s\p{P}\p{S}]/u,u$=/(?:[^\s\p{P}\p{S}]|~)/u,x$=/\[[^[\]]*?\]\((?:\\.|[^\\\(\)]|\((?:\\.|[^\\\(\)])*\))*\)|`[^`]*?`|<[^<>]*?>/g,M$=UE(l$=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,"u").replace(/punct/g,p$).getRegex(),l$=UE(l$,"u").replace(/punct/g,v$).getRegex(),c$=UE(h$="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)","gu").replace(/notPunctSpace/g,f$).replace(/punctSpace/g,d$).replace(/punct/g,p$).getRegex(),h$=UE(h$,"gu").replace(/notPunctSpace/g,u$).replace(/punctSpace/g,b$).replace(/punct/g,v$).getRegex(),u$=UE("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,f$).replace(/punctSpace/g,d$).replace(/punct/g,p$).getRegex(),b$=UE(/\\(punct)/,"gu").replace(/punct/g,p$).getRegex(),v$=UE(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),f$=UE(g$).replace("(?:--\x3e|$)","--\x3e").getRegex(),d$=UE("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",f$).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),p$=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,g$=UE(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label",p$).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),f$=UE(/^!?\[(label)\]\[(ref)\]/).replace("label",p$).replace("ref",m$).getRegex(),m$=UE(/^!?\[(ref)\](?:\[\])?/).replace("ref",m$).getRegex(),y$=UE("reflink|nolink(?!\\()","g").replace("reflink",f$).replace("nolink",m$).getRegex(),v$={...b$={_backpedal:JE,anyPunctuation:b$,autolink:v$,blockSkip:x$,br:s$,code:w$,del:JE,emStrongLDelim:M$,emStrongRDelimAst:c$,emStrongRDelimUnd:u$,escape:r$,link:g$,nolink:m$,punctuation:o$,reflink:f$,reflinkSearch:y$,tag:d$,text:a$,url:JE},link:UE(/^!?\[(label)\]\((.*?)\)/).replace("label",p$).getRegex(),reflink:UE(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",p$).getRegex()},x$={...b$,emStrongRDelimAst:h$,emStrongLDelim:l$,url:UE(/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,"i").replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\.|[^\\])*?(?:\\.|[^\s~\\]))\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/},w$={...x$,br:UE(s$).replace("{2,}","*").getRegex(),text:UE(x$.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},k$={normal:t$,gfm:i$,pedantic:n$},T$={normal:b$,gfm:x$,breaks:w$,pedantic:v$},S$={"&":"&","<":"<",">":">",'"':""","'":"'"},_$=mt(e=>S$[e],"ge"),mt(qE,"R"),mt(WE,"J"),mt(VE,"V"),mt(GE,"A"),mt(YE,"fe"),mt(XE,"de"),mt(KE,"Je"),C$=class{static{mt(this,"S")}options;rules;lexer;constructor(e){this.options=e||QE}space(e){e=this.rules.block.newline.exec(e);if(e&&0<e[0].length)return{type:"space",raw:e[0]}}code(e){var t,e=this.rules.block.code.exec(e);if(e)return t=e[0].replace(this.rules.other.codeRemoveIndent,""),{type:"code",raw:e[0],codeBlockStyle:"indented",text:this.options.pedantic?t:GE(t,`
|
||
`)}}fences(e){var t,i,e=this.rules.block.fences.exec(e);if(e)return i=KE(t=e[0],e[3]||"",this.rules),{type:"code",raw:t,lang:e[2]&&e[2].trim().replace(this.rules.inline.anyPunctuation,"$1"),text:i}}heading(t){var i,t=this.rules.block.heading.exec(t);if(t){let e=t[2].trim();return this.rules.other.endingHash.test(e)&&(i=GE(e,"#"),!this.options.pedantic&&i&&!this.rules.other.endingSpaceChar.test(i)||(e=i.trim())),{type:"heading",raw:t[0],depth:t[1].length,text:e,tokens:this.lexer.inline(e)}}}hr(e){e=this.rules.block.hr.exec(e);if(e)return{type:"hr",raw:GE(e[0],`
|
||
`)}}blockquote(e){e=this.rules.block.blockquote.exec(e);if(e){let n=GE(e[0],`
|
||
`).split(`
|
||
`),r="",s="",a=[];for(;0<n.length;){let e=!1,t=[],i;for(i=0;i<n.length;i++)if(this.rules.other.blockquoteStart.test(n[i]))t.push(n[i]),e=!0;else{if(e)break;t.push(n[i])}n=n.slice(i);var o=t.join(`
|
||
`),l=o.replace(this.rules.other.blockquoteSetextReplace,`
|
||
$1`).replace(this.rules.other.blockquoteSetextReplace2,""),o=(r=r?r+`
|
||
`+o:o,s=s?s+`
|
||
`+l:l,this.lexer.state.top);if(this.lexer.state.top=!0,this.lexer.blockTokens(l,a,!0),this.lexer.state.top=o,0===n.length)break;var c,l=a.at(-1);if("code"===l?.type)break;if("blockquote"===l?.type){var o=l,h=o.raw+`
|
||
`+n.join(`
|
||
`),h=this.blockquote(h);a[a.length-1]=h,r=r.substring(0,r.length-o.raw.length)+h.raw,s=s.substring(0,s.length-o.text.length)+h.text;break}"list"===l?.type&&(h=(o=l).raw+`
|
||
`+n.join(`
|
||
`),c=this.list(h),a[a.length-1]=c,r=r.substring(0,r.length-l.raw.length)+c.raw,s=s.substring(0,s.length-o.raw.length)+c.raw,n=h.substring(a.at(-1).raw.length).split(`
|
||
`))}return{type:"blockquote",raw:r,tokens:a,text:s}}}list(d){let p=this.rules.block.list.exec(d);if(p){let e=p[1].trim(),t=1<e.length,c={type:"list",raw:"",ordered:t,start:t?+e.slice(0,-1):"",loose:!1,items:[]},h=(e=t?"\\d{1,9}\\"+e.slice(-1):"\\"+e,this.options.pedantic&&(e=t?e:"[*+-]"),this.rules.other.listItemRegex(e)),u=!1;for(;d;){let e=!1,i="",n="";if(!(p=h.exec(d))||this.rules.block.hr.test(d))break;i=p[0],d=d.substring(i.length);let r=p[2].split(`
|
||
`,1)[0].replace(this.rules.other.listReplaceTabs,e=>" ".repeat(3*e.length)),s=d.split(`
|
||
`,1)[0],a=!r.trim(),o=0;if(this.options.pedantic?(o=2,n=r.trimStart()):a?o=p[1].length+1:(o=4<(o=p[2].search(this.rules.other.nonSpaceChar))?1:o,n=r.slice(o),o+=p[1].length),a&&this.rules.other.blankLine.test(s)&&(i+=s+`
|
||
`,d=d.substring(s.length+1),e=!0),!e)for(var g=this.rules.other.nextBulletRegex(o),f=this.rules.other.hrRegex(o),m=this.rules.other.fencesBeginRegex(o),y=this.rules.other.headingBeginRegex(o),b=this.rules.other.htmlBeginRegex(o);d;){let e=d.split(`
|
||
`,1)[0],t;if(s=e,t=this.options.pedantic?s=s.replace(this.rules.other.listReplaceNesting," "):s.replace(this.rules.other.tabCharGlobal," "),m.test(s)||y.test(s)||b.test(s)||g.test(s)||f.test(s))break;if(t.search(this.rules.other.nonSpaceChar)>=o||!s.trim())n+=`
|
||
`+t.slice(o);else{if(a||4<=r.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)||m.test(r)||y.test(r)||f.test(r))break;n+=`
|
||
`+s}a||s.trim()||(a=!0),i+=e+`
|
||
`,d=d.substring(e.length+1),r=t.slice(o)}c.loose||(u?c.loose=!0:this.rules.other.doubleBlankLine.test(i)&&(u=!0));let t=null,l;this.options.gfm&&(t=this.rules.other.listIsTask.exec(n))&&(l="[ ] "!==t[0],n=n.replace(this.rules.other.listReplaceTask,"")),c.items.push({type:"list_item",raw:i,task:!!t,checked:l,loose:!1,text:n,tokens:[]}),c.raw+=i}var i,n=c.items.at(-1);if(n){n.raw=n.raw.trimEnd(),n.text=n.text.trimEnd(),c.raw=c.raw.trimEnd();for(let e=0;e<c.items.length;e++)this.lexer.state.top=!1,c.items[e].tokens=this.lexer.blockTokens(c.items[e].text,[]),c.loose||(i=0<(i=c.items[e].tokens.filter(e=>"space"===e.type)).length&&i.some(e=>this.rules.other.anyLine.test(e.raw)),c.loose=i);if(c.loose)for(let e=0;e<c.items.length;e++)c.items[e].loose=!0;return c}}}html(e){e=this.rules.block.html.exec(e);if(e)return{type:"html",block:!0,raw:e[0],pre:"pre"===e[1]||"script"===e[1]||"style"===e[1],text:e[0]}}def(e){var t,i,n,e=this.rules.block.def.exec(e);if(e)return t=e[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),i=e[2]?e[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",n=e[3]&&e[3].substring(1,e[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"),{type:"def",tag:t,raw:e[0],href:i,title:n}}table(r){r=this.rules.block.table.exec(r);if(r&&this.rules.other.tableDelimiter.test(r[2])){let t=VE(r[1]),e=r[2].replace(this.rules.other.tableAlignChars,"").split("|"),i=r[3]?.trim()?r[3].replace(this.rules.other.tableRowBlankLine,"").split(`
|
||
`):[],n={type:"table",raw:r[0],header:[],align:[],rows:[]};if(t.length===e.length){for(var s of e)this.rules.other.tableAlignRight.test(s)?n.align.push("right"):this.rules.other.tableAlignCenter.test(s)?n.align.push("center"):this.rules.other.tableAlignLeft.test(s)?n.align.push("left"):n.align.push(null);for(let e=0;e<t.length;e++)n.header.push({text:t[e],tokens:this.lexer.inline(t[e]),header:!0,align:n.align[e]});for(var a of i)n.rows.push(VE(a,n.header.length).map((e,t)=>({text:e,tokens:this.lexer.inline(e),header:!1,align:n.align[t]})));return n}}}lheading(e){e=this.rules.block.lheading.exec(e);if(e)return{type:"heading",raw:e[0],depth:"="===e[2].charAt(0)?1:2,text:e[1],tokens:this.lexer.inline(e[1])}}paragraph(e){var t,e=this.rules.block.paragraph.exec(e);if(e)return t=e[1].charAt(e[1].length-1)===`
|
||
`?e[1].slice(0,-1):e[1],{type:"paragraph",raw:e[0],text:t,tokens:this.lexer.inline(t)}}text(e){e=this.rules.block.text.exec(e);if(e)return{type:"text",raw:e[0],text:e[0],tokens:this.lexer.inline(e[0])}}escape(e){e=this.rules.inline.escape.exec(e);if(e)return{type:"escape",raw:e[0],text:e[1]}}tag(e){e=this.rules.inline.tag.exec(e);if(e)return!this.lexer.state.inLink&&this.rules.other.startATag.test(e[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(e[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(e[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(e[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:e[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:e[0]}}link(i){i=this.rules.inline.link.exec(i);if(i){var n=i[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(n)){if(!this.rules.other.endAngleBracket.test(n))return;var r=GE(n.slice(0,-1),"\\");if((n.length-r.length)%2==0)return}else{var s,r=YE(i[2],"()");if(-2===r)return;-1<r&&(s=(0===i[0].indexOf("!")?5:4)+i[1].length+r,i[2]=i[2].substring(0,r),i[0]=i[0].substring(0,s).trim(),i[3]="")}let e=i[2],t="";return this.options.pedantic?(r=this.rules.other.pedanticHrefTitle.exec(e))&&(e=r[1],t=r[3]):t=i[3]?i[3].slice(1,-1):"",e=e.trim(),XE(i,{href:(e=this.rules.other.startAngleBracket.test(e)?this.options.pedantic&&!this.rules.other.endAngleBracket.test(n)?e.slice(1):e.slice(1,-1):e)&&e.replace(this.rules.inline.anyPunctuation,"$1"),title:t&&t.replace(this.rules.inline.anyPunctuation,"$1")},i[0],this.lexer,this.rules)}}reflink(e,t){let i;if(i=(i=this.rules.inline.reflink.exec(e))||this.rules.inline.nolink.exec(e))return(e=t[(i[2]||i[1]).replace(this.rules.other.multipleSpaceGlobal," ").toLowerCase()])?XE(i,e,i[0],this.lexer,this.rules):{type:"text",raw:t=i[0].charAt(0),text:t}}emStrong(a,o,e=""){let l=this.rules.inline.emStrongLDelim.exec(a);if(!(!l||l[3]&&e.match(this.rules.other.unicodeAlphaNumeric))&&(!l[1]&&!l[2]||!e||this.rules.inline.punctuation.exec(e))){let e=[...l[0]].length-1,t,i,n=e,r=0,s="*"===l[0][0]?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(s.lastIndex=0,o=o.slice(-1*a.length+e);null!=(l=s.exec(o));){var c,h;if(t=l[1]||l[2]||l[3]||l[4]||l[5]||l[6])if(i=[...t].length,l[3]||l[4])n+=i;else if((l[5]||l[6])&&e%3&&!((e+i)%3))r+=i;else if(!(0<(n-=i)))return i=Math.min(i,i+n+r),c=[...l[0]][0].length,c=a.slice(0,e+l.index+c+i),Math.min(e,i)%2?(h=c.slice(1,-1),{type:"em",raw:c,text:h,tokens:this.lexer.inlineTokens(h)}):(h=c.slice(2,-2),{type:"strong",raw:c,text:h,tokens:this.lexer.inlineTokens(h)})}}}codespan(n){n=this.rules.inline.code.exec(n);if(n){let e=n[2].replace(this.rules.other.newLineCharGlobal," "),t=this.rules.other.nonSpaceChar.test(e),i=this.rules.other.startingSpaceChar.test(e)&&this.rules.other.endingSpaceChar.test(e);return t&&i&&(e=e.substring(1,e.length-1)),{type:"codespan",raw:n[0],text:e}}}br(e){e=this.rules.inline.br.exec(e);if(e)return{type:"br",raw:e[0]}}del(e){e=this.rules.inline.del.exec(e);if(e)return{type:"del",raw:e[0],text:e[2],tokens:this.lexer.inlineTokens(e[2])}}autolink(i){i=this.rules.inline.autolink.exec(i);if(i){let e,t;return t="@"===i[2]?"mailto:"+(e=i[1]):e=i[1],{type:"link",raw:i[0],text:e,href:t,tokens:[{type:"text",raw:e,text:e}]}}}url(e){var i,n;if(i=this.rules.inline.url.exec(e)){let e,t;if("@"===i[2])e=i[0],t="mailto:"+e;else{for(;n=i[0],i[0]=this.rules.inline._backpedal.exec(i[0])?.[0]??"",n!==i[0];);e=i[0],t="www."===i[1]?"http://"+i[0]:i[0]}return{type:"link",raw:i[0],text:e,href:t,tokens:[{type:"text",raw:e,text:e}]}}}inlineText(e){var t,e=this.rules.inline.text.exec(e);if(e)return t=this.lexer.state.inRawBlock,{type:"text",raw:e[0],text:e[0],escaped:t}}},A$=class i{static{mt(this,"a")}tokens;options;state;tokenizer;inlineQueue;constructor(e){this.tokens=[],this.tokens.links=Object.create(null),this.options=e||QE,this.options.tokenizer=this.options.tokenizer||new C$,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,(this.tokenizer.lexer=this).inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};e={other:e$,block:k$.normal,inline:T$.normal};this.options.pedantic?(e.block=k$.pedantic,e.inline=T$.pedantic):this.options.gfm&&(e.block=k$.gfm,this.options.breaks?e.inline=T$.breaks:e.inline=T$.gfm),this.tokenizer.rules=e}static get rules(){return{block:k$,inline:T$}}static lex(e,t){return new i(t).lex(e)}static lexInline(e,t){return new i(t).inlineTokens(e)}lex(e){e=e.replace(e$.carriageReturn,`
|
||
`),this.blockTokens(e,this.tokens);for(let e=0;e<this.inlineQueue.length;e++){var t=this.inlineQueue[e];this.inlineTokens(t.src,t.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(r,i=[],n=!1){for(this.options.pedantic&&(r=r.replace(e$.tabCharGlobal," ").replace(e$.spaceLine,""));r;){let t;if(!this.options.extensions?.block?.some(e=>!!(t=e.call({lexer:this},r,i))&&(r=r.substring(t.raw.length),i.push(t),!0)))if(t=this.tokenizer.space(r)){r=r.substring(t.raw.length);var e=i.at(-1);1===t.raw.length&&void 0!==e?e.raw+=`
|
||
`:i.push(t)}else if(t=this.tokenizer.code(r)){r=r.substring(t.raw.length);e=i.at(-1);"paragraph"===e?.type||"text"===e?.type?(e.raw+=`
|
||
`+t.raw,e.text+=`
|
||
`+t.text,this.inlineQueue.at(-1).src=e.text):i.push(t)}else if(t=this.tokenizer.fences(r))r=r.substring(t.raw.length),i.push(t);else if(t=this.tokenizer.heading(r))r=r.substring(t.raw.length),i.push(t);else if(t=this.tokenizer.hr(r))r=r.substring(t.raw.length),i.push(t);else if(t=this.tokenizer.blockquote(r))r=r.substring(t.raw.length),i.push(t);else if(t=this.tokenizer.list(r))r=r.substring(t.raw.length),i.push(t);else if(t=this.tokenizer.html(r))r=r.substring(t.raw.length),i.push(t);else if(t=this.tokenizer.def(r)){r=r.substring(t.raw.length);var s=i.at(-1);"paragraph"===s?.type||"text"===s?.type?(s.raw+=`
|
||
`+t.raw,s.text+=`
|
||
`+t.raw,this.inlineQueue.at(-1).src=s.text):this.tokens.links[t.tag]||(this.tokens.links[t.tag]={href:t.href,title:t.title})}else if(t=this.tokenizer.table(r))r=r.substring(t.raw.length),i.push(t);else if(t=this.tokenizer.lheading(r))r=r.substring(t.raw.length),i.push(t);else{let e=r;if(this.options.extensions?.startBlock){let t=1/0,i=r.slice(1),n;this.options.extensions.startBlock.forEach(e=>{"number"==typeof(n=e.call({lexer:this},i))&&0<=n&&(t=Math.min(t,n))}),t<1/0&&0<=t&&(e=r.substring(0,t+1))}if(this.state.top&&(t=this.tokenizer.paragraph(e))){s=i.at(-1);n&&"paragraph"===s?.type?(s.raw+=`
|
||
`+t.raw,s.text+=`
|
||
`+t.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=s.text):i.push(t),n=e.length!==r.length,r=r.substring(t.raw.length)}else if(t=this.tokenizer.text(r)){r=r.substring(t.raw.length);var a=i.at(-1);"text"===a?.type?(a.raw+=`
|
||
`+t.raw,a.text+=`
|
||
`+t.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=a.text):i.push(t)}else if(r){a="Infinite loop on byte: "+r.charCodeAt(0);if(this.options.silent){console.error(a);break}throw new Error(a)}}}return this.state.top=!0,i}inline(e,t=[]){return this.inlineQueue.push({src:e,tokens:t}),t}inlineTokens(r,i=[]){let e=r,t=null;if(this.tokens.links){var n=Object.keys(this.tokens.links);if(0<n.length)for(;null!=(t=this.tokenizer.rules.inline.reflinkSearch.exec(e));)n.includes(t[0].slice(t[0].lastIndexOf("[")+1,-1))&&(e=e.slice(0,t.index)+"["+"a".repeat(t[0].length-2)+"]"+e.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;null!=(t=this.tokenizer.rules.inline.anyPunctuation.exec(e));)e=e.slice(0,t.index)+"++"+e.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);for(;null!=(t=this.tokenizer.rules.inline.blockSkip.exec(e));)e=e.slice(0,t.index)+"["+"a".repeat(t[0].length-2)+"]"+e.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);let s=!1,a="";for(;r;){s||(a=""),s=!1;let t;if(!this.options.extensions?.inline?.some(e=>!!(t=e.call({lexer:this},r,i))&&(r=r.substring(t.raw.length),i.push(t),!0)))if(t=this.tokenizer.escape(r))r=r.substring(t.raw.length),i.push(t);else if(t=this.tokenizer.tag(r))r=r.substring(t.raw.length),i.push(t);else if(t=this.tokenizer.link(r))r=r.substring(t.raw.length),i.push(t);else if(t=this.tokenizer.reflink(r,this.tokens.links)){r=r.substring(t.raw.length);var o=i.at(-1);"text"===t.type&&"text"===o?.type?(o.raw+=t.raw,o.text+=t.text):i.push(t)}else if(t=this.tokenizer.emStrong(r,e,a))r=r.substring(t.raw.length),i.push(t);else if(t=this.tokenizer.codespan(r))r=r.substring(t.raw.length),i.push(t);else if(t=this.tokenizer.br(r))r=r.substring(t.raw.length),i.push(t);else if(t=this.tokenizer.del(r))r=r.substring(t.raw.length),i.push(t);else if(t=this.tokenizer.autolink(r))r=r.substring(t.raw.length),i.push(t);else if(!this.state.inLink&&(t=this.tokenizer.url(r)))r=r.substring(t.raw.length),i.push(t);else{let e=r;if(this.options.extensions?.startInline){let t=1/0,i=r.slice(1),n;this.options.extensions.startInline.forEach(e=>{"number"==typeof(n=e.call({lexer:this},i))&&0<=n&&(t=Math.min(t,n))}),t<1/0&&0<=t&&(e=r.substring(0,t+1))}if(t=this.tokenizer.inlineText(e)){r=r.substring(t.raw.length),"_"!==t.raw.slice(-1)&&(a=t.raw.slice(-1)),s=!0;o=i.at(-1);"text"===o?.type?(o.raw+=t.raw,o.text+=t.text):i.push(t)}else if(r){var l="Infinite loop on byte: "+r.charCodeAt(0);if(this.options.silent){console.error(l);break}throw new Error(l)}}}return i}},E$=class{static{mt(this,"$")}options;parser;constructor(e){this.options=e||QE}space(e){return""}code({text:e,lang:t,escaped:i}){t=(t||"").match(e$.notSpaceStart)?.[0],e=e.replace(e$.endingNewline,"")+`
|
||
`;return t?'<pre><code class="language-'+qE(t)+'">'+(i?e:qE(e,!0))+`</code></pre>
|
||
`:"<pre><code>"+(i?e:qE(e,!0))+`</code></pre>
|
||
`}blockquote({tokens:e}){return`<blockquote>
|
||
${this.parser.parse(e)}</blockquote>
|
||
`}html({text:e}){return e}heading({tokens:e,depth:t}){return`<h${t}>${this.parser.parseInline(e)}</h${t}>
|
||
`}hr(e){return`<hr>
|
||
`}list(t){let e=t.ordered,i=t.start,n="";for(let e=0;e<t.items.length;e++){var r=t.items[e];n+=this.listitem(r)}var s=e?"ol":"ul";return"<"+s+(e&&1!==i?' start="'+i+'"':"")+`>
|
||
`+n+"</"+s+`>
|
||
`}listitem(e){let t="";var i;return e.task&&(i=this.checkbox({checked:!!e.checked}),e.loose?"paragraph"===e.tokens[0]?.type?(e.tokens[0].text=i+" "+e.tokens[0].text,e.tokens[0].tokens&&0<e.tokens[0].tokens.length&&"text"===e.tokens[0].tokens[0].type&&(e.tokens[0].tokens[0].text=i+" "+qE(e.tokens[0].tokens[0].text),e.tokens[0].tokens[0].escaped=!0)):e.tokens.unshift({type:"text",raw:i+" ",text:i+" ",escaped:!0}):t+=i+" "),`<li>${t+=this.parser.parse(e.tokens,!!e.loose)}</li>
|
||
`}checkbox({checked:e}){return"<input "+(e?'checked="" ':"")+'disabled="" type="checkbox">'}paragraph({tokens:e}){return`<p>${this.parser.parseInline(e)}</p>
|
||
`}table(t){let e="",i="";for(let e=0;e<t.header.length;e++)i+=this.tablecell(t.header[e]);e+=this.tablerow({text:i});let n="";for(let e=0;e<t.rows.length;e++){var r=t.rows[e];i="";for(let e=0;e<r.length;e++)i+=this.tablecell(r[e]);n+=this.tablerow({text:i})}return`<table>
|
||
<thead>
|
||
`+e+`</thead>
|
||
`+(n=n&&`<tbody>${n}</tbody>`)+`</table>
|
||
`}tablerow({text:e}){return`<tr>
|
||
${e}</tr>
|
||
`}tablecell(e){var t=this.parser.parseInline(e.tokens),i=e.header?"th":"td";return(e.align?`<${i} align="${e.align}">`:`<${i}>`)+t+`</${i}>
|
||
`}strong({tokens:e}){return`<strong>${this.parser.parseInline(e)}</strong>`}em({tokens:e}){return`<em>${this.parser.parseInline(e)}</em>`}codespan({text:e}){return`<code>${qE(e,!0)}</code>`}br(e){return"<br>"}del({tokens:e}){return`<del>${this.parser.parseInline(e)}</del>`}link({href:e,title:t,tokens:i}){var i=this.parser.parseInline(i),n=WE(e);if(null===n)return i;let r='<a href="'+(e=n)+'"';return t&&(r+=' title="'+qE(t)+'"'),r+=">"+i+"</a>"}image({href:e,title:t,text:i,tokens:n}){n&&(i=this.parser.parseInline(n,this.parser.textRenderer));n=WE(e);if(null===n)return qE(i);let r=`<img src="${e=n}" alt="${i}"`;return t&&(r+=` title="${qE(t)}"`),r+=">"}text(e){return"tokens"in e&&e.tokens?this.parser.parseInline(e.tokens):"escaped"in e&&e.escaped?e.text:qE(e.text)}},$$=class{static{mt(this,"_")}strong({text:e}){return e}em({text:e}){return e}codespan({text:e}){return e}del({text:e}){return e}html({text:e}){return e}text({text:e}){return e}link({text:e}){return""+e}image({text:e}){return""+e}br(){return""}},L$=class n{static{mt(this,"a")}options;renderer;textRenderer;constructor(e){this.options=e||QE,this.options.renderer=this.options.renderer||new E$,this.renderer=this.options.renderer,this.renderer.options=this.options,(this.renderer.parser=this).textRenderer=new $$}static parse(e,t){return new n(t).parse(e)}static parseInline(e,t){return new n(t).parseInline(e)}parse(n,r=!0){let s="";for(let i=0;i<n.length;i++){var e=n[i];if(this.options.extensions?.renderers?.[e.type]){var t=e,a=this.options.extensions.renderers[t.type].call({parser:this},t);if(!1!==a||!["space","hr","heading","code","table","blockquote","list","html","paragraph","text"].includes(t.type)){s+=a||"";continue}}var o=e;switch(o.type){case"space":s+=this.renderer.space(o);continue;case"hr":s+=this.renderer.hr(o);continue;case"heading":s+=this.renderer.heading(o);continue;case"code":s+=this.renderer.code(o);continue;case"table":s+=this.renderer.table(o);continue;case"blockquote":s+=this.renderer.blockquote(o);continue;case"list":s+=this.renderer.list(o);continue;case"html":s+=this.renderer.html(o);continue;case"paragraph":s+=this.renderer.paragraph(o);continue;case"text":{let e=o,t=this.renderer.text(e);for(;i+1<n.length&&"text"===n[i+1].type;)e=n[++i],t+=`
|
||
`+this.renderer.text(e);s+=r?this.renderer.paragraph({type:"paragraph",raw:t,text:t,tokens:[{type:"text",raw:t,text:t,escaped:!0}]}):t;continue}default:var l='Token with "'+o.type+'" type was not found.';if(this.options.silent)return console.error(l),"";throw new Error(l)}}return s}parseInline(t,i=this.renderer){let n="";for(let e=0;e<t.length;e++){var r=t[e];if(this.options.extensions?.renderers?.[r.type]){var s=this.options.extensions.renderers[r.type].call({parser:this},r);if(!1!==s||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(r.type)){n+=s||"";continue}}var a=r;switch(a.type){case"escape":n+=i.text(a);break;case"html":n+=i.html(a);break;case"link":n+=i.link(a);break;case"image":n+=i.image(a);break;case"strong":n+=i.strong(a);break;case"em":n+=i.em(a);break;case"codespan":n+=i.codespan(a);break;case"br":n+=i.br(a);break;case"del":n+=i.del(a);break;case"text":n+=i.text(a);break;default:var o='Token with "'+a.type+'" type was not found.';if(this.options.silent)return console.error(o),"";throw new Error(o)}}return n}},R$=class{static{mt(this,"L")}options;block;constructor(e){this.options=e||QE}static passThroughHooks=new Set(["preprocess","postprocess","processAllTokens"]);preprocess(e){return e}postprocess(e){return e}processAllTokens(e){return e}provideLexer(){return this.block?A$.lex:A$.lexInline}provideParser(){return this.block?L$.parse:L$.parseInline}},M$=class{static{mt(this,"B")}defaults=zE();options=this.setOptions;parse=this.parseMarkdown(!0);parseInline=this.parseMarkdown(!1);Parser=L$;Renderer=E$;TextRenderer=$$;Lexer=A$;Tokenizer=C$;Hooks=R$;constructor(...e){this.use(...e)}walkTokens(e,i){let n=[];for(var r of e)switch(n=n.concat(i.call(this,r)),r.type){case"table":var t,s,a=r;for(t of a.header)n=n.concat(this.walkTokens(t.tokens,i));for(s of a.rows)for(var o of s)n=n.concat(this.walkTokens(o.tokens,i));break;case"list":a=r;n=n.concat(this.walkTokens(a.items,i));break;default:{let t=r;this.defaults.extensions?.childTokens?.[t.type]?this.defaults.extensions.childTokens[t.type].forEach(e=>{e=t[e].flat(1/0);n=n.concat(this.walkTokens(e,i))}):t.tokens&&(n=n.concat(this.walkTokens(t.tokens,i)))}}return n}use(...e){let r=this.defaults.extensions||{renderers:{},childTokens:{}};return e.forEach(t=>{var e={...t};if(e.async=this.defaults.async||e.async||!1,t.extensions&&(t.extensions.forEach(n=>{if(!n.name)throw new Error("extension name required");if("renderer"in n){let i=r.renderers[n.name];i?r.renderers[n.name]=function(...e){let t=n.renderer.apply(this,e);return t=!1===t?i.apply(this,e):t}:r.renderers[n.name]=n.renderer}if("tokenizer"in n){if(!n.level||"block"!==n.level&&"inline"!==n.level)throw new Error("extension level must be 'block' or 'inline'");var e=r[n.level];e?e.unshift(n.tokenizer):r[n.level]=[n.tokenizer],n.start&&("block"===n.level?r.startBlock?r.startBlock.push(n.start):r.startBlock=[n.start]:"inline"===n.level&&(r.startInline?r.startInline.push(n.start):r.startInline=[n.start]))}"childTokens"in n&&n.childTokens&&(r.childTokens[n.name]=n.childTokens)}),e.extensions=r),t.renderer){let r=this.defaults.renderer||new E$(this.defaults);for(var s in t.renderer){if(!(s in r))throw new Error(`renderer '${s}' does not exist`);if(!["options","parser"].includes(s)){let e=s,i=t.renderer[e],n=r[e];r[e]=(...e)=>{let t=i.apply(r,e);return(t=!1===t?n.apply(r,e):t)||""}}}e.renderer=r}if(t.tokenizer){let r=this.defaults.tokenizer||new C$(this.defaults);for(var a in t.tokenizer){if(!(a in r))throw new Error(`tokenizer '${a}' does not exist`);if(!["options","rules","lexer"].includes(a)){let e=a,i=t.tokenizer[e],n=r[e];r[e]=(...e)=>{let t=i.apply(r,e);return t=!1===t?n.apply(r,e):t}}}e.tokenizer=r}if(t.hooks){let r=this.defaults.hooks||new R$;for(var o in t.hooks){if(!(o in r))throw new Error(`hook '${o}' does not exist`);if(!["options","block"].includes(o)){let e=o,i=t.hooks[e],n=r[e];R$.passThroughHooks.has(o)?r[e]=e=>{return this.defaults.async?Promise.resolve(i.call(r,e)).then(e=>n.call(r,e)):(e=i.call(r,e),n.call(r,e))}:r[e]=(...e)=>{let t=i.apply(r,e);return t=!1===t?n.apply(r,e):t}}}e.hooks=r}if(t.walkTokens){let i=this.defaults.walkTokens,n=t.walkTokens;e.walkTokens=function(e){let t=[];return t.push(n.call(this,e)),t=i?t.concat(i.call(this,e)):t}}this.defaults={...this.defaults,...e}}),this}setOptions(e){return this.defaults={...this.defaults,...e},this}lexer(e,t){return A$.lex(e,t??this.defaults)}parser(e,t){return L$.parse(e,t??this.defaults)}parseMarkdown(o){return(i,e)=>{let t={...e},n={...this.defaults,...t},r=this.onError(!!n.silent,!!n.async);if(!0===this.defaults.async&&!1===t.async)return r(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if("u"<typeof i||null===i)return r(new Error("marked(): input parameter is undefined or null"));if("string"!=typeof i)return r(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(i)+", string expected"));n.hooks&&((n.hooks.options=n).hooks.block=o);let s=n.hooks?n.hooks.provideLexer():o?A$.lex:A$.lexInline,a=n.hooks?n.hooks.provideParser():o?L$.parse:L$.parseInline;if(n.async)return Promise.resolve(n.hooks?n.hooks.preprocess(i):i).then(e=>s(e,n)).then(e=>n.hooks?n.hooks.processAllTokens(e):e).then(e=>n.walkTokens?Promise.all(this.walkTokens(e,n.walkTokens)).then(()=>e):e).then(e=>a(e,n)).then(e=>n.hooks?n.hooks.postprocess(e):e).catch(r);try{n.hooks&&(i=n.hooks.preprocess(i));let e=s(i,n),t=(n.hooks&&(e=n.hooks.processAllTokens(e)),n.walkTokens&&this.walkTokens(e,n.walkTokens),a(e,n));return t=n.hooks?n.hooks.postprocess(t):t}catch(e){return r(e)}}}onError(i,n){return e=>{var t;if(e.message+=`
|
||
Please report this to https://github.com/markedjs/marked.`,i)return t="<p>An error occurred:</p><pre>"+qE(e.message+"",!0)+"</pre>",n?Promise.resolve(t):t;if(n)return Promise.reject(e);throw e}}},I$=new M$,mt(ZE,"k"),ZE.options=ZE.setOptions=function(e){return I$.setOptions(e),HE(ZE.defaults=I$.defaults),ZE},ZE.getDefaults=zE,ZE.defaults=QE,ZE.use=function(...e){return I$.use(...e),HE(ZE.defaults=I$.defaults),ZE},ZE.walkTokens=function(e,t){return I$.walkTokens(e,t)},ZE.parseInline=I$.parseInline,ZE.Parser=L$,ZE.parser=L$.parse,ZE.Renderer=E$,ZE.TextRenderer=$$,ZE.Lexer=A$,ZE.lexer=A$.lex,ZE.Tokenizer=C$,ZE.Hooks=R$,ZE.parse=ZE,A$.lex});function D$(e,{markdownAutoWrap:t}){e=Ge(e.replace(/<br\/>/g,`
|
||
`).replace(/\n{2,}/g,`
|
||
`));return!1===t?e.replace(/ /g," "):e}function O$(e,t={}){let i=D$(e,t),n=ZE.lexer(i),r=[[]],s=0;function a(t,i="normal"){"text"===t.type?t.text.split(`
|
||
`).forEach((e,t)=>{0!==t&&(s++,r.push([])),e.split(" ").forEach(e=>{(e=e.replace(/'/g,"'"))&&r[s].push({content:e,type:i})})}):"strong"===t.type||"em"===t.type?t.tokens.forEach(e=>{a(e,t.type)}):"html"===t.type&&r[s].push({content:t.text,type:"normal"})}return mt(a,"processNode"),n.forEach(e=>{"paragraph"===e.type?e.tokens?.forEach(e=>{a(e)}):"html"===e.type&&r[s].push({content:e.text,type:"normal"})}),r}function P$(e,{markdownAutoWrap:t}={}){e=ZE.lexer(e);function i(e){return"text"===e.type?!1===t?e.text.replace(/\n */g,"<br/>").replace(/ /g," "):e.text.replace(/\n */g,"<br/>"):"strong"===e.type?`<strong>${e.tokens?.map(i).join("")}</strong>`:"em"===e.type?`<em>${e.tokens?.map(i).join("")}</em>`:"paragraph"===e.type?`<p>${e.tokens?.map(i).join("")}</p>`:"space"===e.type?"":"html"===e.type?""+e.text:"escape"===e.type?e.text:"Unsupported markdown: "+e.type}return mt(i,"output"),e.map(i).join("")}var B$=e(()=>{"use strict";N$(),zi(),mt(D$,"preprocessMarkdown"),mt(O$,"markdownToLines"),mt(P$,"markdownToHTML")});function F$(e){return Intl.Segmenter?[...(new Intl.Segmenter).segment(e)].map(e=>e.segment):[...e]}function j$(e,t){return z$(e,[],F$(t.content),t.type)}function z$(e,t,i,n){var r,s,a;return 0===i.length?[{content:t.join(""),type:n},{content:"",type:n}]:([r,...s]=i,e([{content:(a=[...t,r]).join(""),type:n}])?z$(e,a,s,n):(0===t.length&&r&&(t.push(r),i.shift()),[{content:t.join(""),type:n},{content:i.join(""),type:n}]))}function H$(e,t){if(e.some(({content:e})=>e.includes(`
|
||
`)))throw new Error("splitLineToFitWidth does not support newlines in the line");return U$(e,t)}function U$(e,t,i=[],n=[]){if(0===e.length)return 0<n.length&&i.push(n),0<i.length?i:[];let r="";" "===e[0].content&&(r=" ",e.shift());var s=e.shift()??{content:" ",type:"normal"},a=[...n];return""!==r&&a.push({content:r,type:"normal"}),a.push(s),t(a)?U$(e,t,i,a):(0<n.length?(i.push(n),e.unshift(s)):s.content&&([a,n]=j$(t,s),i.push([a]),n.content)&&e.unshift(n),U$(e,t,i))}var q$=e(()=>{"use strict";mt(F$,"splitTextToChars"),mt(j$,"splitWordToFitWidth"),mt(z$,"splitWordToFitWidthRecursion"),mt(H$,"splitLineToFitWidth"),mt(U$,"splitLineToFitWidthRecursion")});function W$(e,t){t&&e.attr("style",t)}async function V$(e,t,i,n,r=!1){e=e.append("foreignObject");e.attr("width",10*i+"px"),e.attr("height",10*i+"px");let s=e.append("xhtml:div"),a=t.label;t.label&&Jc(t.label)&&(a=await th(t.label.replace($.lineBreakRegex,`
|
||
`),N()));var o=t.isNode?"nodeLabel":"edgeLabel",l=s.append("span"),l=(l.html(a),W$(l,t.labelStyle),l.attr("class",o+" "+n),W$(s,t.labelStyle),s.style("display","table-cell"),s.style("white-space","nowrap"),s.style("line-height","1.5"),s.style("max-width",i+"px"),s.style("text-align","center"),s.attr("xmlns","http://www.w3.org/1999/xhtml"),r&&s.attr("class","labelBkg"),s.node().getBoundingClientRect());return l.width===i&&(s.style("display","table"),s.style("white-space","break-spaces"),s.style("width",i+"px"),l=s.node().getBoundingClientRect()),e.node()}function G$(e,t,i){return e.append("tspan").attr("class","text-outer-tspan").attr("x",0).attr("y",t*i-.1+"em").attr("dy",i+"em")}function Y$(e,t,i){e=e.append("text"),t=G$(e,1,t),Z$(t,i),i=t.node().getComputedTextLength();return e.remove(),i}function X$(e,t,i){e=e.append("text"),t=G$(e,1,t),Z$(t,[{content:i,type:"normal"}]),i=t.node()?.getBoundingClientRect();return i&&e.remove(),i}function K$(t,e,i,n=!1){let r=e.append("g"),s=r.insert("rect").attr("class","background").attr("style","stroke: none"),a=r.append("text").attr("y","-10.1"),o=0;for(var l of i){var c,h=mt(e=>Y$(r,1.1,e)<=t,"checkWidth");for(c of h(l)?[l]:H$(l,h))Z$(G$(a,o,1.1),c),o++}return(n?(e=a.node().getBBox(),s.attr("x",e.x-2).attr("y",e.y-2).attr("width",e.width+4).attr("height",e.height+4),r):a).node()}function Z$(n,e){n.text(""),e.forEach((e,t)=>{var i=n.append("tspan").attr("font-style","em"===e.type?"italic":"normal").attr("class","text-inner-tspan").attr("font-weight","strong"===e.type?"bold":"normal");0===t?i.text(e.content):i.text(" "+e.content)})}async function Q$(e){let r=[],t=(e.replace(/(fa[bklrs]?):fa-([\w-]+)/g,(t,i,n)=>(r.push((async()=>{var e=i+":"+n;return await Fe(e)?await je(e,void 0,{class:"label-icon"}):`<i class='${$h(t).replace(":"," ")}'></i>`})()),t)),await Promise.all(r));return e.replace(/(fa[bklrs]?):fa-([\w-]+)/g,()=>t.shift()??"")}var J$,eL=e(()=>{"use strict";a6(),Cu(),hh(),t(),B$(),sC(),Ve(),q$(),mt(W$,"applyStyle"),mt(V$,"addHtmlSpan"),mt(G$,"createTspan"),mt(Y$,"computeWidthOfText"),mt(X$,"computeDimensionOfText"),mt(K$,"createFormattedText"),mt(Z$,"updateTextContentAndStyles"),mt(Q$,"replaceIconSubstring"),J$=mt(async(e,t="",{style:i="",isTitle:n=!1,classes:r="",useHtmlLabels:s=!0,isNode:a=!0,width:o=200,addSvgBackground:l=!1}={},c)=>{return I.debug("XYZ createText",t,i,n,r,s,a,"addSvgBackground: ",l),s?(n=P$(t,c),s=await Q$(nC(n)),n=t.replace(/\\\\/g,"\\"),V$(e,{isNode:a,label:Jc(t)?n:s,labelStyle:i.replace("fill:","color:")},o,r,l)):(n=K$(o,e,O$(t.replace(/<br\s*\/?>/g,"<br/>").replace("<br>","<br/>"),c),!!t&&l),a?(s=(i=/stroke:/.exec(i)?i.replace("stroke:","lineColor:"):i).replace(/stroke:[^;]+;?/g,"").replace(/stroke-width:[^;]+;?/g,"").replace(/fill:[^;]+;?/g,"").replace(/color:/g,"fill:"),G(n).attr("style",s)):(r=i.replace(/stroke:[^;]+;?/g,"").replace(/stroke-width:[^;]+;?/g,"").replace(/fill:[^;]+;?/g,"").replace(/background:/g,"fill:"),G(n).select("rect").attr("style",r.replace(/background:/g,"fill:")),o=i.replace(/stroke:[^;]+;?/g,"").replace(/stroke-width:[^;]+;?/g,"").replace(/fill:[^;]+;?/g,"").replace(/color:/g,"fill:"),G(n).select("text").attr("style",o)),n)},"createText")});function tL(e){e=e.map((e,t)=>(0===t?"M":"L")+e.x+","+e.y);return e.push("Z"),e.join(" ")}function iL(t,e,i,n,r,s){var a=[],o=i-t,l=2*Math.PI/(o/s),c=e+(n-e)/2;for(let e=0;e<=50;e++){var h=t+e/50*o,u=c+r*Math.sin(l*(h-t));a.push({x:h,y:u})}return a}function nL(t,i,n,r,e,s){var a=[],o=e*Math.PI/180,l=(s*Math.PI/180-o)/(r-1);for(let e=0;e<r;e++){var c=o+e*l,h=t+n*Math.cos(c),c=i+n*Math.sin(c);a.push({x:-h,y:-c})}return a}var rL,sL,aL,oL,r=e(()=>{"use strict";eL(),Cu(),a6(),Ln(),hh(),sC(),rL=mt(async(e,t,i)=>{let n,r=t.useHtmlLabels||qc(N()?.htmlLabels),s=(n=i||"node default",e.insert("g").attr("class",n).attr("id",t.domId||t.id)),a=s.insert("g").attr("class","label").attr("style",$_(t.labelStyle)),o,l=(o=void 0===t.label?"":"string"==typeof t.label?t.label:t.label[0],await J$(a,Pc(nC(o),N()),{useHtmlLabels:r,width:t.width||N().flowchart?.wrappingWidth,cssClasses:"markdown-node-label",style:t.labelStyle,addSvgBackground:!!t.icon||!!t.img})),c=l.getBBox(),h=(t?.padding??0)/2;if(r){var i=l.children[0],e=G(l),u=i.getElementsByTagName("img");if(u){let n=""===o.replace(/<img[^>]*>/g,"").trim();await Promise.all([...u].map(i=>new Promise(t=>{function e(){var e;i.style.display="flex",i.style.flexDirection="column",n?(e=(N().fontSize?N():window.getComputedStyle(document.body)).fontSize,[e=vi.fontSize]=eC(e),i.style.minWidth=e=5*e+"px",i.style.maxWidth=e):i.style.width="100%",t(i)}mt(e,"setupImage"),setTimeout(()=>{i.complete&&e()}),i.addEventListener("error",e),i.addEventListener("load",e)})))}c=i.getBoundingClientRect(),e.attr("width",c.width),e.attr("height",c.height)}return r?a.attr("transform","translate("+-c.width/2+", "+-c.height/2+")"):a.attr("transform","translate(0, "+-c.height/2+")"),t.centerLabel&&a.attr("transform","translate("+-c.width/2+", "+-c.height/2+")"),a.insert("rect",":first-child"),{shapeSvg:s,bbox:c,halfPadding:h,label:a}},"labelHelper"),sL=mt(async(e,t,i)=>{let n=i.useHtmlLabels||qc(N()?.flowchart?.htmlLabels),r=e.insert("g").attr("class","label").attr("style",i.labelStyle||""),s=await J$(r,Pc(nC(t),N()),{useHtmlLabels:n,width:i.width||N()?.flowchart?.wrappingWidth,style:i.labelStyle,addSvgBackground:!!i.icon||!!i.img}),a=s.getBBox(),o=i.padding/2;var l;return qc(N()?.flowchart?.htmlLabels)&&(t=s.children[0],l=G(s),a=t.getBoundingClientRect(),l.attr("width",a.width),l.attr("height",a.height)),n?r.attr("transform","translate("+-a.width/2+", "+-a.height/2+")"):r.attr("transform","translate(0, "+-a.height/2+")"),i.centerLabel&&r.attr("transform","translate("+-a.width/2+", "+-a.height/2+")"),r.insert("rect",":first-child"),{shapeSvg:e,bbox:a,halfPadding:o,label:r}},"insertLabel"),aL=mt((e,t)=>{t=t.node().getBBox();e.width=t.width,e.height=t.height},"updateNodeBounds"),oL=mt((e,t)=>("handDrawn"===e.look?"rough-node":"node")+" "+e.cssClasses+" "+(t||""),"getNodeClasses"),mt(tL,"createPathFromPoints"),mt(iL,"generateFullSineWavePoints"),mt(nL,"generateCirclePoints")});function lL(e,t){return e.intersect(t)}var cL,hL=e(()=>{"use strict";mt(lL,"intersectNode"),cL=lL});function uL(e,t,i,n){var r=e.x,e=e.y,s=r-n.x,a=e-n.y,o=Math.sqrt(t*t*a*a+i*i*s*s),s=Math.abs(t*i*s/o),t=(n.x<r&&(s=-s),Math.abs(t*i*a/o));return{x:r+s,y:e+(t=n.y<e?-t:t)}}var dL,pL=e(()=>{"use strict";mt(uL,"intersectEllipse"),dL=uL});function gL(e,t,i){return dL(e,t,t,i)}var fL,mL=e(()=>{"use strict";pL(),mt(gL,"intersectCircle"),fL=gL});function yL(e,t,i,n){var r,s,a,o,l=t.y-e.y,c=e.x-t.x,h=t.x*e.y-e.x*t.y,u=l*i.x+c*i.y+h,d=l*n.x+c*n.y+h;if(!(0!=u&&0!=d&&0<u*d||(r=n.y-i.y,s=i.x-n.x,a=n.x*i.y-i.x*n.y,u=r*e.x+s*e.y+a,d=r*t.x+s*t.y+a,0!==u&&0!==d&&0<u*d)||0===(o=l*s-r*c)))return i=Math.abs(o/2),{x:(n=c*a-s*h)<0?(n-i)/o:(n+i)/o,y:(n=r*h-l*a)<0?(n-i)/o:(n+i)/o}}function bL(e,t){return 0<e*t}var vL,xL=e(()=>{"use strict";mt(yL,"intersectLine"),mt(bL,"sameSign"),vL=yL});function wL(t,i,n){let e=t.x,r=t.y,s=[],a=Number.POSITIVE_INFINITY,o=Number.POSITIVE_INFINITY;"function"==typeof i.forEach?i.forEach(function(e){a=Math.min(a,e.x),o=Math.min(o,e.y)}):(a=Math.min(a,i.x),o=Math.min(o,i.y));var l=e-t.width/2-a,c=r-t.height/2-o;for(let e=0;e<i.length;e++){var h=i[e],u=i[e<i.length-1?e+1:0],h=vL(t,n,{x:l+h.x,y:c+h.y},{x:l+u.x,y:c+u.y});h&&s.push(h)}return s.length?(1<s.length&&s.sort(function(e,t){var i=e.x-n.x,e=e.y-n.y,i=Math.sqrt(i*i+e*e),e=t.x-n.x,t=t.y-n.y,e=Math.sqrt(e*e+t*t);return i<e?-1:i===e?0:1}),s[0]):t}var kL,TL,SL,_L,CL,AL,EL,$L,LL,RL,ML=e(()=>{"use strict";xL(),mt(wL,"intersectPolygon"),kL=wL}),IL=e(()=>{"use strict";TL=mt((e,t)=>{var i,n=e.x,r=e.y,s=t.x-n,t=t.y-r,a=e.width/2,e=e.height/2,e=Math.abs(t)*a>Math.abs(s)*e?(t<0&&(e=-e),i=0==t?0:e*s/t,e):(i=a=s<0?-a:a,0==s?0:a*t/s);return{x:n+i,y:r+e}},"intersectRect"),SL=TL}),NL=e(()=>{"use strict";hL(),mL(),pL(),ML(),IL(),_L={node:cL,circle:fL,ellipse:dL,polygon:kL,rect:SL}}),DL=e(()=>{"use strict";Cu(),CL=mt(e=>{var t=N()["handDrawnSeed"];return{fill:e,hachureAngle:120,hachureGap:4,fillWeight:2,roughness:.7,stroke:e,seed:t}},"solidStateFill"),AL=mt(e=>{e=EL([...e.cssCompiledStyles||[],...e.cssStyles||[]]);return{stylesMap:e,stylesArray:[...e]}},"compileStyles"),EL=mt(e=>{let i=new Map;return e.forEach(e=>{var[e,t]=e.split(":");i.set(e.trim(),t?.trim())}),i},"styles2Map"),$L=mt(e=>"color"===e||"font-size"===e||"font-family"===e||"font-weight"===e||"font-style"===e||"text-decoration"===e||"text-align"===e||"text-transform"===e||"line-height"===e||"letter-spacing"===e||"word-spacing"===e||"text-shadow"===e||"text-overflow"===e||"white-space"===e||"word-wrap"===e||"word-break"===e||"overflow-wrap"===e||"hyphens"===e,"isLabelStyle"),LL=mt(e=>{let t=AL(e)["stylesArray"],i=[],n=[],r=[],s=[];return t.forEach(e=>{var t=e[0];$L(t)?i.push(e.join(":")+" !important"):(n.push(e.join(":")+" !important"),t.includes("stroke")&&r.push(e.join(":")+" !important"),"fill"===t&&s.push(e.join(":")+" !important"))}),{labelStyles:i.join(";"),nodeStyles:n.join(";"),stylesArray:t,borderStyles:r,backgroundStyles:s}},"styles2String"),RL=mt((e,t)=>{var{themeVariables:i,handDrawnSeed:n}=N(),{nodeBorder:i,mainBkg:r}=i,e=AL(e)["stylesMap"];return Object.assign({roughness:.7,fill:e.get("fill")||r,fillStyle:"hachure",fillWeight:4,hachureGap:5.2,stroke:e.get("stroke")||i,seed:n,strokeWidth:e.get("stroke-width")?.replace("px","")||1.3,fillLineDash:[0,0]},t)},"userNodeOverrides")});function OL(e,t,i){if(e&&e.length){var n,[r,s]=t,t=Math.PI/180*i,a=Math.cos(t),o=Math.sin(t);for(n of e){var[l,c]=n;n[0]=(l-r)*a-(c-s)*o+r,n[1]=(l-r)*o+(c-s)*a+s}}}function PL(e,t){return e[0]===t[0]&&e[1]===t[1]}function BL(e,i,n,t=1){var r=n,n=Math.max(i,.1),p=e[0]&&e[0][0]&&"number"==typeof e[0][0]?[e]:e,s=[0,0];if(r)for(var a of p)OL(a,s,r);i=function(t,r){var e,i=[];for(e of p){var n=[...e];PL(n[0],n[n.length-1])||n.push([n[0][0],n[0][1]]),2<n.length&&i.push(n)}var s,a=[],o=(t=Math.max(t,.1),[]);for(s of i)for(let e=0;e<s.length-1;e++){var l,c=s[e],h=s[e+1];c[1]!==h[1]&&(l=Math.min(c[1],h[1]),o.push({ymin:l,ymax:Math.max(c[1],h[1]),x:(l===c[1]?c:h)[0],islope:(h[0]-c[0])/(h[1]-c[1])}))}if(o.sort((e,t)=>e.ymin<t.ymin?-1:e.ymin>t.ymin?1:e.x<t.x?-1:e.x>t.x?1:e.ymax===t.ymax?0:(e.ymax-t.ymax)/Math.abs(e.ymax-t.ymax)),o.length){let i=[],n=o[0].ymin,e=0;for(;i.length||o.length;){if(o.length){let t=-1;for(let e=0;e<o.length&&!(o[e].ymin>n);e++)t=e;o.splice(0,t+1).forEach(e=>{i.push({s:n,edge:e})})}if((i=i.filter(e=>!(e.edge.ymax<=n))).sort((e,t)=>e.edge.x===t.edge.x?0:(e.edge.x-t.edge.x)/Math.abs(e.edge.x-t.edge.x)),(1!==r||e%t==0)&&1<i.length)for(let e=0;e<i.length;e+=2){var u=e+1;if(u>=i.length)break;var d=i[e].edge,u=i[u].edge;a.push([[Math.round(d.x),n],[Math.round(u.x),n]])}n+=r,i.forEach(e=>{e.edge.x=e.edge.x+r*e.edge.islope}),e++}}return a}(n,t);if(r){for(var o of p)OL(o,s,-r);{e=s;n=-r;let t=[];i.forEach(e=>t.push(...e)),OL(t,e,n)}}return i}function FL(e,t){let i=t.hachureAngle+90,n=t.hachureGap,r=(n<0&&(n=4*t.strokeWidth),n=Math.round(Math.max(n,.1)),1);return 1<=t.roughness&&.7<((null==(t=t.randomizer)?void 0:t.next())||Math.random())&&(r=n),BL(e,n,i,r||1)}function jL(e){var t=e[0],e=e[1];return Math.sqrt(Math.pow(t[0]-e[0],2)+Math.pow(t[1]-e[1],2))}function zL(e,t){return e.type===t}function HL(e){let n=[],r=function(e){for(var t=new Array;""!==e;){if(!e.match(/^([ \t\r\n,]+)/))if(e.match(/^([aAcChHlLmMqQsStTvVzZ])/))t[t.length]={type:RR,text:RegExp.$1};else{if(!e.match(/^(([-+]?[0-9]+(\.[0-9]*)?|[-+]?\.[0-9]+)([eE][-+]?[0-9]+)?)/))return[];t[t.length]={type:MR,text:""+parseFloat(RegExp.$1)}}e=e.substr(RegExp.$1.length)}return t[t.length]={type:IR,text:""},t}(e),s="BOD",a=0,o=r[a];for(;!zL(o,IR);){let t=0,i=[];if("BOD"===s){if("M"!==o.text&&"m"!==o.text)return HL("M0,0"+e);a++,t=NR[o.text],s=o.text}else zL(o,MR)?t=NR[s]:(a++,t=NR[o.text],s=o.text);if(!(a+t<r.length))throw new Error("Path data ended short");for(let e=a;e<a+t;e++){var l=r[e];if(!zL(l,MR))throw new Error("Param not a number: "+s+","+l.text);i[i.length]=+l.text}if("number"!=typeof NR[s])throw new Error("Bad segment: "+s);var c={key:s,data:i};n.push(c),a+=t,o=r[a],"m"===(s="M"===s?"L":s)&&(s="l")}return n}function UL(e){let i=0,n=0,t=0,r=0,s=[];for(var{key:a,data:o}of e)switch(a){case"M":s.push({key:"M",data:[...o]}),[i,n]=o,[t,r]=o;break;case"m":i+=o[0],n+=o[1],s.push({key:"M",data:[i,n]}),t=i,r=n;break;case"L":s.push({key:"L",data:[...o]}),[i,n]=o;break;case"l":i+=o[0],n+=o[1],s.push({key:"L",data:[i,n]});break;case"C":s.push({key:"C",data:[...o]}),i=o[4],n=o[5];break;case"c":var l=o.map((e,t)=>t%2?e+n:e+i);s.push({key:"C",data:l}),i=l[4],n=l[5];break;case"Q":s.push({key:"Q",data:[...o]}),i=o[2],n=o[3];break;case"q":l=o.map((e,t)=>t%2?e+n:e+i);s.push({key:"Q",data:l}),i=l[2],n=l[3];break;case"A":s.push({key:"A",data:[...o]}),i=o[5],n=o[6];break;case"a":i+=o[5],n+=o[6],s.push({key:"A",data:[o[0],o[1],o[2],o[3],o[4],i,n]});break;case"H":s.push({key:"H",data:[...o]}),i=o[0];break;case"h":i+=o[0],s.push({key:"H",data:[i]});break;case"V":s.push({key:"V",data:[...o]}),n=o[0];break;case"v":n+=o[0],s.push({key:"V",data:[n]});break;case"S":s.push({key:"S",data:[...o]}),i=o[2],n=o[3];break;case"s":var c=o.map((e,t)=>t%2?e+n:e+i);s.push({key:"S",data:c}),i=c[2],n=c[3];break;case"T":s.push({key:"T",data:[...o]}),i=o[0],n=o[1];break;case"t":i+=o[0],n+=o[1],s.push({key:"T",data:[i,n]});break;case"Z":case"z":s.push({key:"Z",data:[]}),i=t,n=r}return s}function qL(e){let r=[],s="",a=0,o=0,t=0,i=0,l=0,c=0;for(var{key:n,data:h}of e){switch(n){case"M":r.push({key:"M",data:[...h]}),[a,o]=h,[t,i]=h;break;case"C":r.push({key:"C",data:[...h]}),a=h[4],o=h[5],l=h[2],c=h[3];break;case"L":r.push({key:"L",data:[...h]}),[a,o]=h;break;case"H":a=h[0],r.push({key:"L",data:[a,o]});break;case"V":o=h[0],r.push({key:"L",data:[a,o]});break;case"S":{let e=0,t=0;t="C"===s||"S"===s?(e=a+(a-l),o+(o-c)):(e=a,o),r.push({key:"C",data:[e,t,...h]}),l=h[0],c=h[1],a=h[2],o=h[3];break}case"T":{let[e,t]=h,i=0,n=0;n="Q"===s||"T"===s?(i=a+(a-l),o+(o-c)):(i=a,o);var u=a+2*(i-a)/3,d=o+2*(n-o)/3,p=e+2*(i-e)/3,g=t+2*(n-t)/3;r.push({key:"C",data:[u,d,p,g,e,t]}),l=i,c=n,a=e,o=t;break}case"Q":var[u,d,p,g]=h,f=a+2*(u-a)/3,m=o+2*(d-o)/3;r.push({key:"C",data:[f,m,p+2*(u-p)/3,g+2*(d-g)/3,p,g]}),l=u,c=d,a=p,o=g;break;case"A":var f=Math.abs(h[0]),m=Math.abs(h[1]),y=h[2],b=h[3],v=h[4],x=h[5],w=h[6];0===f||0===m?(r.push({key:"C",data:[a,o,x,w,x,w]}),a=x,o=w):a===x&&o===w||(VL(a,o,x,w,f,m,y,b,v).forEach(function(e){r.push({key:"C",data:e})}),a=x,o=w);break;case"Z":r.push({key:"Z",data:[]}),a=t,o=i}s=n}return r}function WL(e,t,i){return[e*Math.cos(i)-t*Math.sin(i),e*Math.sin(i)+t*Math.cos(i)]}function VL(e,t,i,n,r,s,a,o,l,c){var h=Math.PI*a/180;let u=[],d=0,p=0,g=0,f=0;c?[d,p,g,f]=c:([e,t]=WL(e,t,-h),[i,n]=WL(i,n,-h),1<(m=(y=(e-i)/2)*y/(r*r)+(b=(t-n)/2)*b/(s*s))&&(r*=m=Math.sqrt(m),s*=m),m=r*r,v=s*s,o=(o===l?-1:1)*Math.sqrt(Math.abs((m*v-m*b*b-v*y*y)/(m*b*b+v*y*y))),g=o*r*b/s+(e+i)/2,f=o*-s*y/r+(t+n)/2,d=Math.asin(parseFloat(((t-f)/s).toFixed(9))),p=Math.asin(parseFloat(((n-f)/s).toFixed(9))),e<g&&(d=Math.PI-d),i<g&&(p=Math.PI-p),d<0&&(d=2*Math.PI+d),p<0&&(p=2*Math.PI+p),l&&d>p&&(d-=2*Math.PI),!l&&p>d&&(p-=2*Math.PI));var m=p-d,y=(Math.abs(m)>120*Math.PI/180&&(v=p,b=i,o=n,p=l&&p>d?d+120*Math.PI/180*1:d+120*Math.PI/180*-1,u=VL(i=g+r*Math.cos(p),n=f+s*Math.sin(p),b,o,r,s,a,0,l,[p,v,g,f])),m=p-d,Math.cos(d)),b=Math.sin(d),o=Math.cos(p),a=Math.sin(p),l=Math.tan(m/4),v=4/3*r*l,m=4/3*s*l,r=[e,t],s=[e+v*b,t-m*y],l=[i+v*a,n-m*o],e=[i,n];if(s[0]=2*r[0]-s[0],s[1]=2*r[1]-s[1],c)return[s,l,e].concat(u);u=[s,l,e].concat(u);var x=[];for(let e=0;e<u.length;e+=3){var w=WL(u[e][0],u[e][1],h),k=WL(u[e+1][0],u[e+1][1],h),T=WL(u[e+2][0],u[e+2][1],h);x.push([w[0],w[1],k[0],k[1],T[0],T[1]])}return x}function GL(e,t,i,n,r){return{type:"path",ops:oR(e,t,i,n,r)}}function YL(t,e,i){var n=(t||[]).length;if(2<n){var r=[];for(let e=0;e<n-1;e++)r.push(...oR(t[e][0],t[e][1],t[e+1][0],t[e+1][1],i));return e&&r.push(...oR(t[n-1][0],t[n-1][1],t[0][0],t[0][1],i)),{type:"path",ops:r}}return 2===n?GL(t[0][0],t[0][1],t[1][0],t[1][1],i):{type:"path",ops:[]}}function XL(e,t,i,n,r){return YL([[e,t],[e+i,t],[e+i,t+n],[e,t+n]],!0,r)}function KL(e,t){if(e.length){var i="number"==typeof e[0][0]?[e]:e,n=cR(i[0],1+.2*t.roughness,t),r=t.disableMultiStroke?[]:cR(i[0],1.5*(1+.22*t.roughness),nR(t));for(let e=1;e<i.length;e++){var s=i[e];if(s.length){var a,o,l=cR(s,1+.2*t.roughness,t),s=t.disableMultiStroke?[]:cR(s,1.5*(1+.22*t.roughness),nR(t));for(a of l)"move"!==a.op&&n.push(a);for(o of s)"move"!==o.op&&r.push(o)}}return{type:"path",ops:n.concat(r)}}return{type:"path",ops:[]}}function ZL(e,t,i){var n=Math.sqrt(2*Math.PI*Math.sqrt((Math.pow(e/2,2)+Math.pow(t/2,2))/2)),n=Math.ceil(Math.max(i.curveStepCount,i.curveStepCount/Math.sqrt(200)*n)),n=2*Math.PI/n,e=Math.abs(e/2),t=Math.abs(t/2),r=1-i.curveFitting;return{increment:n,rx:e+=aR(e*r,i),ry:t+=aR(t*r,i)}}function QL(e,t,i,n){let[r,s]=uR(n.increment,e,t,n.rx,n.ry,1,n.increment*sR(.1,sR(.4,1,i),i),i),a=hR(r,null,i);return i.disableMultiStroke||0===i.roughness||([e]=uR(n.increment,e,t,n.rx,n.ry,1.5,0,i),t=hR(e,null,i),a=a.concat(t)),{estimatedPoints:s,opset:{type:"path",ops:a}}}function JL(e,t,i,n,r,s,a,o,l){i=Math.abs(i/2),n=Math.abs(n/2);i+=aR(.01*i,l),n+=aR(.01*n,l);let c=r,h=s;for(;c<0;)c+=2*Math.PI,h+=2*Math.PI;h-c>2*Math.PI&&(c=0,h=2*Math.PI);var r=2*Math.PI/l.curveStepCount,s=Math.min(r/2,(h-c)/2),r=dR(s,e,t,i,n,c,h,1,l);return l.disableMultiStroke||(s=dR(s,e,t,i,n,c,h,1.5,l),r.push(...s)),a&&(o?r.push(...oR(e,t,e+i*Math.cos(c),t+n*Math.sin(c),l),...oR(e,t,e+i*Math.cos(h),t+n*Math.sin(h),l)):r.push({op:"lineTo",data:[e,t]},{op:"lineTo",data:[e+i*Math.cos(c),t+n*Math.sin(c)]})),{type:"path",ops:r}}function eR(e,t){let i=qL(UL(HL(e))),n=[],r=[0,0],s=[0,0];for(var{key:a,data:o}of i)switch(a){case"M":s=[o[0],o[1]],r=[o[0],o[1]];break;case"L":n.push(...oR(s[0],s[1],o[0],o[1],t)),s=[o[0],o[1]];break;case"C":var[l,c,h,u,d,p]=o;n.push(...pR(l,c,h,u,d,p,s,t)),s=[d,p];break;case"Z":n.push(...oR(s[0],s[1],r[0],r[1],t)),s=[r[0],r[1]]}return{type:"path",ops:n}}function tR(e,t){var i,n=[];for(i of e)if(i.length){var r=t.maxRandomnessOffset||0,s=i.length;if(2<s){n.push({op:"move",data:[i[0][0]+aR(r,t),i[0][1]+aR(r,t)]});for(let e=1;e<s;e++)n.push({op:"lineTo",data:[i[e][0]+aR(r,t),i[e][1]+aR(r,t)]})}}return{type:"fillPath",ops:n}}function iR(e,i){return function(e){let t=i.fillStyle||"hachure";if(!$R[t])switch(t){case"zigzag":$R[t]||($R[t]=new SR(e));break;case"cross-hatch":$R[t]||($R[t]=new _R(e));break;case"dots":$R[t]||($R[t]=new CR(e));break;case"dashed":$R[t]||($R[t]=new AR(e));break;case"zigzag-line":$R[t]||($R[t]=new ER(e));break;default:t="hachure",$R[t]||($R[t]=new TR(e))}return $R[t]}(DR).fillPolygons(e,i)}function nR(e){var t=Object.assign({},e);return t.randomizer=void 0,e.seed&&(t.seed=e.seed+1),t}function rR(e){return e.randomizer||(e.randomizer=new LR(e.seed||0)),e.randomizer.next()}function sR(e,t,i,n=1){return i.roughness*n*(rR(i)*(t-e)+e)}function aR(e,t,i=1){return sR(-e,e,t,i)}function oR(e,t,i,n,r,s=!1){var s=s?r.disableMultiStrokeFill:r.disableMultiStroke,a=lR(e,t,i,n,r,!0,!1);return s?a:(s=lR(e,t,i,n,r,!0,!0),a.concat(s))}function lR(e,t,i,n,r,s,a){let o=Math.pow(e-i,2)+Math.pow(t-n,2),l=Math.sqrt(o),c,h=(c=l<200?1:500<l?.4:-.0016668*l+1.233334,r.maxRandomnessOffset||0),u=(h=h*h*100>o?l/10:h)/2,d=.2+.2*rR(r),p=r.bowing*r.maxRandomnessOffset*(n-t)/200,g=r.bowing*r.maxRandomnessOffset*(e-i)/200;p=aR(p,r,c),g=aR(g,r,c);var f=[],m=mt(()=>aR(u,r,c),"M"),y=mt(()=>aR(h,r,c),"k"),b=r.preserveVertices;return s&&f.push(a?{op:"move",data:[e+(b?0:m()),t+(b?0:m())]}:{op:"move",data:[e+(b?0:aR(h,r,c)),t+(b?0:aR(h,r,c))]}),f.push(a?{op:"bcurveTo",data:[p+e+(i-e)*d+m(),g+t+(n-t)*d+m(),p+e+2*(i-e)*d+m(),g+t+2*(n-t)*d+m(),i+(b?0:m()),n+(b?0:m())]}:{op:"bcurveTo",data:[p+e+(i-e)*d+y(),g+t+(n-t)*d+y(),p+e+2*(i-e)*d+y(),g+t+2*(n-t)*d+y(),i+(b?0:y()),n+(b?0:y())]}),f}function cR(t,i,n){if(!t.length)return[];var r=[];r.push([t[0][0]+aR(i,n),t[0][1]+aR(i,n)]),r.push([t[0][0]+aR(i,n),t[0][1]+aR(i,n)]);for(let e=1;e<t.length;e++)r.push([t[e][0]+aR(i,n),t[e][1]+aR(i,n)]),e===t.length-1&&r.push([t[e][0]+aR(i,n),t[e][1]+aR(i,n)]);return hR(r,null,n)}function hR(t,e,i){var n=t.length,r=[];if(3<n){var s,a=[],o=1-i.curveTightness;r.push({op:"move",data:[t[1][0],t[1][1]]});for(let e=1;e+2<n;e++){var l=t[e];a[0]=[l[0],l[1]],a[1]=[l[0]+(o*t[e+1][0]-o*t[e-1][0])/6,l[1]+(o*t[e+1][1]-o*t[e-1][1])/6],a[2]=[t[e+1][0]+(o*t[e][0]-o*t[e+2][0])/6,t[e+1][1]+(o*t[e][1]-o*t[e+2][1])/6],a[3]=[t[e+1][0],t[e+1][1]],r.push({op:"bcurveTo",data:[a[1][0],a[1][1],a[2][0],a[2][1],a[3][0],a[3][1]]})}e&&2===e.length&&(s=i.maxRandomnessOffset,r.push({op:"lineTo",data:[e[0]+aR(s,i),e[1]+aR(s,i)]}))}else 3===n?(r.push({op:"move",data:[t[1][0],t[1][1]]}),r.push({op:"bcurveTo",data:[t[1][0],t[1][1],t[2][0],t[2][1],t[2][0],t[2][1]]})):2===n&&r.push(...lR(t[0][0],t[0][1],t[1][0],t[1][1],i,!0,!0));return r}function uR(t,i,n,r,s,a,e,o){var l=[],c=[];if(0===o.roughness){t/=4,c.push([i+r*Math.cos(-t),n+s*Math.sin(-t)]);for(let e=0;e<=2*Math.PI;e+=t){var h=[i+r*Math.cos(e),n+s*Math.sin(e)];l.push(h),c.push(h)}c.push([i+r*Math.cos(0),n+s*Math.sin(0)]),c.push([i+r*Math.cos(t),n+s*Math.sin(t)])}else{var u=aR(.5,o)-Math.PI/2,d=(c.push([aR(a,o)+i+.9*r*Math.cos(u-t),aR(a,o)+n+.9*s*Math.sin(u-t)]),2*Math.PI+u-.01);for(let e=u;e<d;e+=t){var p=[aR(a,o)+i+r*Math.cos(e),aR(a,o)+n+s*Math.sin(e)];l.push(p),c.push(p)}c.push([aR(a,o)+i+r*Math.cos(u+2*Math.PI+.5*e),aR(a,o)+n+s*Math.sin(u+2*Math.PI+.5*e)]),c.push([aR(a,o)+i+.98*r*Math.cos(u+e),aR(a,o)+n+.98*s*Math.sin(u+e)]),c.push([aR(a,o)+i+.9*r*Math.cos(u+.5*e),aR(a,o)+n+.9*s*Math.sin(u+.5*e)])}return[c,l]}function dR(t,i,n,r,s,a,o,l,c){var a=a+aR(.1,c),h=[];h.push([aR(l,c)+i+.9*r*Math.cos(a-t),aR(l,c)+n+.9*s*Math.sin(a-t)]);for(let e=a;e<=o;e+=t)h.push([aR(l,c)+i+r*Math.cos(e),aR(l,c)+n+s*Math.sin(e)]);return h.push([i+r*Math.cos(o),n+s*Math.sin(o)]),h.push([i+r*Math.cos(o),n+s*Math.sin(o)]),hR(h,null,c)}function pR(t,i,n,r,s,a,o,l){var c,h=[],u=[l.maxRandomnessOffset||1,(l.maxRandomnessOffset||1)+.3],d=l.disableMultiStroke?1:2,p=l.preserveVertices;for(let e=0;e<d;e++)0===e?h.push({op:"move",data:[o[0],o[1]]}):h.push({op:"move",data:[o[0]+(p?0:aR(u[0],l)),o[1]+(p?0:aR(u[0],l))]}),c=p?[s,a]:[s+aR(u[e],l),a+aR(u[e],l)],h.push({op:"bcurveTo",data:[t+aR(u[e],l),i+aR(u[e],l),n+aR(u[e],l),r+aR(u[e],l),c[0],c[1]]});return h}function gR(e){return[...e]}function fR(t,e=0){var i=t.length;if(i<3)throw new Error("A curve must have at least three points.");var n=[];if(3===i)n.push([...t[0]],[...t[1]],[...t[2]],[...t[2]]);else{var r=[];r.push(t[0],t[0]);for(let e=1;e<t.length;e++)r.push(t[e]),e===t.length-1&&r.push(t[e]);var s=[],a=1-e;n.push([...r[0]]);for(let e=1;e+2<r.length;e++){var o=r[e];s[0]=[o[0],o[1]],s[1]=[o[0]+(a*r[e+1][0]-a*r[e-1][0])/6,o[1]+(a*r[e+1][1]-a*r[e-1][1])/6],s[2]=[r[e+1][0]+(a*r[e][0]-a*r[e+2][0])/6,r[e+1][1]+(a*r[e][1]-a*r[e+2][1])/6],s[3]=[r[e+1][0],r[e+1][1]],n.push(s[1],s[2],s[3])}}return n}function mR(e,t){return Math.pow(e[0]-t[0],2)+Math.pow(e[1]-t[1],2)}function yR(e,t,i){var n=mR(t,i);return 0===n?mR(e,t):(n=((e[0]-t[0])*(i[0]-t[0])+(e[1]-t[1])*(i[1]-t[1]))/n,mR(e,bR(t,i,n=Math.max(0,Math.min(1,n)))))}function bR(e,t,i){return[e[0]+(t[0]-e[0])*i,e[1]+(t[1]-e[1])*i]}function vR(l,c,e,t){var i,n,r,s,a,o,t=t||[];return function(){let e=l[c+0],t=l[c+1],i=l[c+2],n=l[c+3],r=3*t[0]-2*e[0]-n[0],s=(r*=r,3*t[1]-2*e[1]-n[1]);s*=s;var a=3*i[0]-2*n[0]-e[0],o=(a*=a,3*i[1]-2*n[1]-e[1]);return o*=o,r<a&&(r=a),s<o&&(s=o),r+s}()<e?(a=l[c+0],(!t.length||(o=t[t.length-1],1<Math.sqrt(mR(o,a))))&&t.push(a),t.push(l[c+3])):(o=l[c+0],a=l[c+1],r=l[c+2],i=l[c+3],n=bR(o,a,.5),a=bR(a,r,.5),r=bR(r,i,.5),s=bR(n,a,.5),a=bR(a,r,.5),vR([o,n,s,o=bR(s,a,.5)],0,e,t),vR([o,a,r,i],0,e,t)),t}function xR(e,t){return wR(e,0,e.length,t)}function wR(t,i,n,e,r){let s=r||[],a=t[i],o=t[n-1],l=0,c=1;for(let e=i+1;e<n-1;++e){var h=yR(t[e],a,o);h>l&&(l=h,c=e)}return Math.sqrt(l)>e?(wR(t,i,c+1,e,s),wR(t,c,n,e,s)):(s.length||s.push(a),s.push(o)),s}function kR(t,i=.15,e){var n=[],r=(t.length-1)/3;for(let e=0;e<r;e++)vR(t,3*e,i,n);return e&&0<e?wR(n,0,n.length,e):n}var TR,SR,_R,CR,AR,ER,$R,LR,RR,MR,IR,NR,DR,OR,PR,BR,FR,jR,zR,HR=e(()=>{"use strict";mt(OL,"t"),mt(PL,"e"),mt(BL,"s"),mt(FL,"n"),TR=class{static{mt(this,"o")}constructor(e){this.helper=e}fillPolygons(e,t){return this._fillPolygons(e,t)}_fillPolygons(e,t){e=FL(e,t);return{type:"fillSketch",ops:this.renderLines(e,t)}}renderLines(e,t){var i,n=[];for(i of e)n.push(...this.helper.doubleLineOps(i[0][0],i[0][1],i[1][0],i[1][1],t));return n}},mt(jL,"a"),SR=class extends TR{static{mt(this,"h")}fillPolygons(e,t){let i=t.hachureGap;i<0&&(i=4*t.strokeWidth),i=Math.max(i,.1);var n,r,e=FL(e,Object.assign({},t,{hachureGap:i})),s=Math.PI/180*t.hachureAngle,a=[],o=.5*i*Math.cos(s),l=.5*i*Math.sin(s);for([n,r]of e)jL([n,r])&&a.push([[n[0]-o,n[1]+l],[...r]],[[n[0]+o,n[1]-l],[...r]]);return{type:"fillSketch",ops:this.renderLines(a,t)}}},_R=class extends TR{static{mt(this,"r")}fillPolygons(e,t){var i=this._fillPolygons(e,t),t=Object.assign({},t,{hachureAngle:t.hachureAngle+90}),e=this._fillPolygons(e,t);return i.ops=i.ops.concat(e.ops),i}},CR=class{static{mt(this,"i")}constructor(e){this.helper=e}fillPolygons(e,t){e=FL(e,t=Object.assign({},t,{hachureAngle:0}));return this.dotsOnLines(e,t)}dotsOnLines(e,t){let i=[],n=t.hachureGap,r=(n<0&&(n=4*t.strokeWidth),n=Math.max(n,.1),t.fillWeight);r<0&&(r=t.strokeWidth/2);var s,a=n/4;for(s of e){var o=jL(s),l=o/n,c=Math.ceil(l)-1,h=o-c*n,u=(s[0][0]+s[1][0])/2-n/4,d=Math.min(s[0][1],s[1][1]);for(let e=0;e<c;e++){var p=d+h+e*n,g=u-a+2*Math.random()*a,p=p-a+2*Math.random()*a,g=this.helper.ellipse(g,p,r,r,t);i.push(...g.ops)}}return{type:"fillSketch",ops:i}}},AR=class{static{mt(this,"c")}constructor(e){this.helper=e}fillPolygons(e,t){e=FL(e,t);return{type:"fillSketch",ops:this.dashedLine(e,t)}}dashedLine(e,c){let h=c.dashOffset<0?c.hachureGap<0?4*c.strokeWidth:c.hachureGap:c.dashOffset,u=c.dashGap<0?c.hachureGap<0?4*c.strokeWidth:c.hachureGap:c.dashGap,d=[];return e.forEach(e=>{let t=jL(e),i=Math.floor(t/(h+u)),n=(t+u-i*(h+u))/2,r=e[0],s=e[1];r[0]>s[0]&&(r=e[1],s=e[0]);var a=Math.atan((s[1]-r[1])/(s[0]-r[0]));for(let e=0;e<i;e++){var o=e*(h+u),l=o+h,o=[r[0]+o*Math.cos(a)+n*Math.cos(a),r[1]+o*Math.sin(a)+n*Math.sin(a)],l=[r[0]+l*Math.cos(a)+n*Math.cos(a),r[1]+l*Math.sin(a)+n*Math.sin(a)];d.push(...this.helper.doubleLineOps(o[0],o[1],l[0],l[1],c))}}),d}},ER=class{static{mt(this,"l")}constructor(e){this.helper=e}fillPolygons(e,t){var i=t.hachureGap<0?4*t.strokeWidth:t.hachureGap,n=t.zigzagOffset<0?i:t.zigzagOffset,e=FL(e,t=Object.assign({},t,{hachureGap:i+n}));return{type:"fillSketch",ops:this.zigzagLines(e,n,t)}}zigzagLines(e,c,h){let u=[];return e.forEach(e=>{let t=jL(e),i=Math.round(t/(2*c)),n=e[0],r=e[1];n[0]>r[0]&&(n=e[1],r=e[0]);var s=Math.atan((r[1]-n[1])/(r[0]-n[0]));for(let e=0;e<i;e++){var a=2*e*c,o=2*(e+1)*c,l=Math.sqrt(2*Math.pow(c,2)),a=[n[0]+a*Math.cos(s),n[1]+a*Math.sin(s)],o=[n[0]+o*Math.cos(s),n[1]+o*Math.sin(s)],l=[a[0]+l*Math.cos(s+Math.PI/4),a[1]+l*Math.sin(s+Math.PI/4)];u.push(...this.helper.doubleLineOps(a[0],a[1],l[0],l[1],h),...this.helper.doubleLineOps(l[0],l[1],o[0],o[1],h))}}),u}},$R={},LR=class{static{mt(this,"p")}constructor(e){this.seed=e}next(){return this.seed?(2**31-1&(this.seed=Math.imul(48271,this.seed)))/2**31:Math.random()}},NR={A:7,a:7,C:6,c:6,H:MR=1,h:1,L:IR=2,l:2,M:2,m:2,Q:4,q:4,S:4,s:4,T:2,t:2,V:1,v:1,Z:RR=0,z:0},mt(zL,"k"),mt(HL,"b"),mt(UL,"y"),mt(qL,"m"),mt(WL,"w"),mt(VL,"x"),DR={randOffset:mt(function(e,t){return aR(e,t)},"randOffset"),randOffsetWithRange:mt(function(e,t,i){return sR(e,t,i)},"randOffsetWithRange"),ellipse:mt(function(e,t,i,n,r){return QL(e,t,r,ZL(i,n,r)).opset},"ellipse"),doubleLineOps:mt(function(e,t,i,n,r){return oR(e,t,i,n,r,!0)},"doubleLineOps")},mt(GL,"v"),mt(YL,"S"),mt(XL,"O"),mt(KL,"L"),mt(ZL,"T"),mt(QL,"D"),mt(JL,"A"),mt(eR,"_"),mt(tR,"I"),mt(iR,"C"),mt(nR,"z"),mt(rR,"W"),mt(sR,"E"),mt(aR,"G"),mt(oR,"$"),mt(lR,"R"),mt(cR,"j"),mt(hR,"q"),mt(uR,"F"),mt(dR,"V"),mt(pR,"Z"),mt(gR,"Q"),mt(fR,"H"),mt(mR,"N"),mt(yR,"B"),mt(bR,"J"),mt(vR,"K"),mt(xR,"U"),mt(wR,"X"),mt(kR,"Y"),OR="none",PR=class{static{mt(this,"et")}constructor(e){this.defaultOptions={maxRandomnessOffset:2,roughness:1,bowing:1,stroke:"#000",strokeWidth:1,curveTightness:0,curveFitting:.95,curveStepCount:9,fillStyle:"hachure",fillWeight:-1,hachureAngle:-41,hachureGap:-1,dashOffset:-1,dashGap:-1,zigzagOffset:-1,seed:0,disableMultiStroke:!1,disableMultiStrokeFill:!1,preserveVertices:!1,fillShapeRoughnessGain:.8},this.config=e||{},this.config.options&&(this.defaultOptions=this._o(this.config.options))}static newSeed(){return Math.floor(Math.random()*2**31)}_o(e){return e?Object.assign({},this.defaultOptions,e):this.defaultOptions}_d(e,t,i){return{shape:e,sets:t||[],options:i||this.defaultOptions}}line(e,t,i,n,r){r=this._o(r);return this._d("line",[GL(e,t,i,n,r)],r)}rectangle(e,t,i,n,r){var r=this._o(r),s=[],a=XL(e,t,i,n,r);return r.fill&&(i=[[e,t],[e+i,t],[e+i,t+n],[e,t+n]],"solid"===r.fillStyle?s.push(tR([i],r)):s.push(iR([i],r))),r.stroke!==OR&&s.push(a),this._d("rectangle",s,r)}ellipse(e,t,i,n,r){var r=this._o(r),s=[],i=ZL(i,n,r),n=QL(e,t,r,i);return r.fill&&("solid"===r.fillStyle?((e=QL(e,t,r,i).opset).type="fillPath",s.push(e)):s.push(iR([n.estimatedPoints],r))),r.stroke!==OR&&s.push(n.opset),this._d("ellipse",s,r)}circle(e,t,i,n){e=this.ellipse(e,t,i,i,n);return e.shape="circle",e}linearPath(e,t){t=this._o(t);return this._d("linearPath",[YL(e,!1,t)],t)}arc(d,p,g,e,t,i,n=!1,r){var r=this._o(r),s=[],a=JL(d,p,g,e,t,i,n,!0,r);return n&&r.fill&&("solid"===r.fillStyle?(n=Object.assign({},r),(n=JL(d,p,g,e,t,i,n.disableMultiStroke=!0,!1,n)).type="fillPath",s.push(n)):s.push(function(e,t,i,n){var r=d,s=p,a=Math.abs(g/2),o=Math.abs(e/2);a+=aR(.01*a,n),o+=aR(.01*o,n);let l=t,c=i;for(;l<0;)l+=2*Math.PI,c+=2*Math.PI;c-l>2*Math.PI&&(l=0,c=2*Math.PI);var h=(c-l)/n.curveStepCount,u=[];for(let e=l;e<=c;e+=h)u.push([r+a*Math.cos(e),s+o*Math.sin(e)]);return u.push([r+a*Math.cos(c),s+o*Math.sin(c)]),u.push([r,s]),iR([u],n)}(e,t,i,r))),r.stroke!==OR&&s.push(a),this._d("arc",s,r)}curve(e,t){var i=this._o(t),t=[],n=KL(e,i);if(i.fill&&i.fill!==OR)if("solid"===i.fillStyle){var r=KL(e,Object.assign(Object.assign({},i),{disableMultiStroke:!0,roughness:i.roughness?i.roughness+i.fillShapeRoughnessGain:0}));t.push({type:"fillPath",ops:this._mergedShape(r.ops)})}else{var s,a=[],r=e;if(r.length)for(s of"number"==typeof r[0][0]?[r]:r)s.length<3?a.push(...s):3===s.length?a.push(...kR(fR([s[0],s[0],s[1],s[2]]),10,(1+i.roughness)/2)):a.push(...kR(fR(s),10,(1+i.roughness)/2));a.length&&t.push(iR([a],i))}return i.stroke!==OR&&t.push(n),this._d("curve",t,i)}polygon(e,t){var t=this._o(t),i=[],n=YL(e,!0,t);return t.fill&&("solid"===t.fillStyle?i.push(tR([e],t)):i.push(iR([e],t))),t.stroke!==OR&&i.push(n),this._d("polygon",i,t)}path(e,t){let i=this._o(t),n=[];var r,s,a,o;return e&&(e=(e||"").replace(/\n/g," ").replace(/(-\s)/g,"-").replace("/(ss)/g"," "),t=i.fill&&"transparent"!==i.fill&&i.fill!==OR,r=i.stroke!==OR,a=function(e,t){let i=qL(UL(HL(e))),n=[],r=[],s=[0,0],a=[],o=mt(()=>{4<=a.length&&r.push(...kR(a,1)),a=[]},"i"),l=mt(()=>{o(),r.length&&(n.push(r),r=[])},"c");for(var{key:c,data:h}of i)switch(c){case"M":l(),s=[h[0],h[1]],r.push(s);break;case"L":o(),r.push([h[0],h[1]]);break;case"C":var u;a.length||(u=r.length?r[r.length-1]:s,a.push([u[0],u[1]])),a.push([h[0],h[1]]),a.push([h[2],h[3]]),a.push([h[4],h[5]]);break;case"Z":o(),r.push([s[0],s[1]])}if(l(),!t)return n;var d,p=[];for(d of n){var g=xR(d,t);g.length&&p.push(g)}return p}(e,(s=!!(i.simplification&&i.simplification<1))?4-4*(i.simplification||1):(1+i.roughness)/2),o=eR(e,i),t&&("solid"===i.fillStyle?1===a.length?(t=eR(e,Object.assign(Object.assign({},i),{disableMultiStroke:!0,roughness:i.roughness?i.roughness+i.fillShapeRoughnessGain:0})),n.push({type:"fillPath",ops:this._mergedShape(t.ops)})):n.push(tR(a,i)):n.push(iR(a,i))),r)&&(s?a.forEach(e=>{n.push(YL(e,!1,i))}):n.push(o)),this._d("path",n,i)}opsToPath(e,t){let i="";for(var n of e.ops){var r="number"==typeof t&&0<=t?n.data.map(e=>+e.toFixed(t)):n.data;switch(n.op){case"move":i+=`M${r[0]} ${r[1]} `;break;case"bcurveTo":i+=`C${r[0]} ${r[1]}, ${r[2]} ${r[3]}, ${r[4]} ${r[5]} `;break;case"lineTo":i+=`L${r[0]} ${r[1]} `}}return i.trim()}toPaths(e){var t,i=e.sets||[],n=e.options||this.defaultOptions,r=[];for(t of i){let e=null;switch(t.type){case"path":e={d:this.opsToPath(t),stroke:n.stroke,strokeWidth:n.strokeWidth,fill:OR};break;case"fillPath":e={d:this.opsToPath(t),stroke:OR,strokeWidth:0,fill:n.fill||OR};break;case"fillSketch":e=this.fillSketch(t,n)}e&&r.push(e)}return r}fillSketch(e,t){let i=t.fillWeight;return i<0&&(i=t.strokeWidth/2),{d:this.opsToPath(e),stroke:t.fill||OR,strokeWidth:i,fill:OR}}_mergedShape(e){return e.filter((e,t)=>0===t||"move"!==e.op)}},BR=class{static{mt(this,"st")}constructor(e,t){this.canvas=e,this.ctx=this.canvas.getContext("2d"),this.gen=new PR(t)}draw(e){var t,i=e.sets||[],n=e.options||this.getDefaultOptions(),r=this.ctx,s=e.options.fixedDecimalPlaceDigits;for(t of i)switch(t.type){case"path":r.save(),r.strokeStyle="none"===n.stroke?"transparent":n.stroke,r.lineWidth=n.strokeWidth,n.strokeLineDash&&r.setLineDash(n.strokeLineDash),n.strokeLineDashOffset&&(r.lineDashOffset=n.strokeLineDashOffset),this._drawToContext(r,t,s),r.restore();break;case"fillPath":r.save(),r.fillStyle=n.fill||"";var a="curve"===e.shape||"polygon"===e.shape||"path"===e.shape?"evenodd":"nonzero";this._drawToContext(r,t,s,a),r.restore();break;case"fillSketch":this.fillSketch(r,t,n)}}fillSketch(e,t,i){let n=i.fillWeight;n<0&&(n=i.strokeWidth/2),e.save(),i.fillLineDash&&e.setLineDash(i.fillLineDash),i.fillLineDashOffset&&(e.lineDashOffset=i.fillLineDashOffset),e.strokeStyle=i.fill||"",e.lineWidth=n,this._drawToContext(e,t,i.fixedDecimalPlaceDigits),e.restore()}_drawToContext(e,t,i,n="nonzero"){e.beginPath();for(var r of t.ops){var s="number"==typeof i&&0<=i?r.data.map(e=>+e.toFixed(i)):r.data;switch(r.op){case"move":e.moveTo(s[0],s[1]);break;case"bcurveTo":e.bezierCurveTo(s[0],s[1],s[2],s[3],s[4],s[5]);break;case"lineTo":e.lineTo(s[0],s[1])}}"fillPath"===t.type?e.fill(n):e.stroke()}get generator(){return this.gen}getDefaultOptions(){return this.gen.defaultOptions}line(e,t,i,n,r){e=this.gen.line(e,t,i,n,r);return this.draw(e),e}rectangle(e,t,i,n,r){e=this.gen.rectangle(e,t,i,n,r);return this.draw(e),e}ellipse(e,t,i,n,r){e=this.gen.ellipse(e,t,i,n,r);return this.draw(e),e}circle(e,t,i,n){e=this.gen.circle(e,t,i,n);return this.draw(e),e}linearPath(e,t){e=this.gen.linearPath(e,t);return this.draw(e),e}polygon(e,t){e=this.gen.polygon(e,t);return this.draw(e),e}arc(e,t,i,n,r,s,a=!1,o){e=this.gen.arc(e,t,i,n,r,s,a,o);return this.draw(e),e}curve(e,t){e=this.gen.curve(e,t);return this.draw(e),e}path(e,t){e=this.gen.path(e,t);return this.draw(e),e}},FR="http://www.w3.org/2000/svg",jR=class{static{mt(this,"ot")}constructor(e,t){this.svg=e,this.gen=new PR(t)}draw(t){var i,e=t.sets||[],n=t.options||this.getDefaultOptions(),r=this.svg.ownerDocument||window.document,s=r.createElementNS(FR,"g"),a=t.options.fixedDecimalPlaceDigits;for(i of e){let e=null;switch(i.type){case"path":(e=r.createElementNS(FR,"path")).setAttribute("d",this.opsToPath(i,a)),e.setAttribute("stroke",n.stroke),e.setAttribute("stroke-width",n.strokeWidth+""),e.setAttribute("fill","none"),n.strokeLineDash&&e.setAttribute("stroke-dasharray",n.strokeLineDash.join(" ").trim()),n.strokeLineDashOffset&&e.setAttribute("stroke-dashoffset",""+n.strokeLineDashOffset);break;case"fillPath":(e=r.createElementNS(FR,"path")).setAttribute("d",this.opsToPath(i,a)),e.setAttribute("stroke","none"),e.setAttribute("stroke-width","0"),e.setAttribute("fill",n.fill||""),"curve"!==t.shape&&"polygon"!==t.shape||e.setAttribute("fill-rule","evenodd");break;case"fillSketch":e=this.fillSketch(r,i,n)}e&&s.appendChild(e)}return s}fillSketch(e,t,i){let n=i.fillWeight;n<0&&(n=i.strokeWidth/2);e=e.createElementNS(FR,"path");return e.setAttribute("d",this.opsToPath(t,i.fixedDecimalPlaceDigits)),e.setAttribute("stroke",i.fill||""),e.setAttribute("stroke-width",n+""),e.setAttribute("fill","none"),i.fillLineDash&&e.setAttribute("stroke-dasharray",i.fillLineDash.join(" ").trim()),i.fillLineDashOffset&&e.setAttribute("stroke-dashoffset",""+i.fillLineDashOffset),e}get generator(){return this.gen}getDefaultOptions(){return this.gen.defaultOptions}opsToPath(e,t){return this.gen.opsToPath(e,t)}line(e,t,i,n,r){e=this.gen.line(e,t,i,n,r);return this.draw(e)}rectangle(e,t,i,n,r){e=this.gen.rectangle(e,t,i,n,r);return this.draw(e)}ellipse(e,t,i,n,r){e=this.gen.ellipse(e,t,i,n,r);return this.draw(e)}circle(e,t,i,n){e=this.gen.circle(e,t,i,n);return this.draw(e)}linearPath(e,t){e=this.gen.linearPath(e,t);return this.draw(e)}polygon(e,t){e=this.gen.polygon(e,t);return this.draw(e)}arc(e,t,i,n,r,s,a=!1,o){e=this.gen.arc(e,t,i,n,r,s,a,o);return this.draw(e)}curve(e,t){e=this.gen.curve(e,t);return this.draw(e)}path(e,t){e=this.gen.path(e,t);return this.draw(e)}},zR={canvas:mt((e,t)=>new BR(e,t),"canvas"),svg:mt((e,t)=>new jR(e,t),"svg"),generator:mt(e=>new PR(e),"generator"),newSeed:mt(()=>PR.newSeed(),"newSeed")}});function UR(e,t){var i=LL(t)["labelStyles"];t.labelStyle=i;let n=oL(t),r=n,s=(n||(r="anchor"),e.insert("g").attr("class",r).attr("id",t.domId||t.id)),a=t["cssStyles"],o=zR.svg(s),l=RL(t,{fill:"black",stroke:"none",fillStyle:"solid"}),c=("handDrawn"!==t.look&&(l.roughness=0),o.circle(0,0,2,l)),h=s.insert(()=>c,":first-child");return h.attr("class","anchor").attr("style",$_(a)),aL(t,h),t.intersect=function(e){return I.info("Circle intersect",t,1,e),_L.circle(t,1,e)},s}var qR=e(()=>{"use strict";t(),r(),NL(),DL(),HR(),sC(),mt(UR,"anchor")});function WR(e,t,i,n,r,s,a){var o=(e+i)/2,l=(t+n)/2,c=Math.atan2(n-t,i-e),h=Math.sqrt(((i-e)/2/r)**2+((n-t)/2/s)**2);if(1<h)throw new Error("The given radii are too small to create an arc between the points.");let u=Math.sqrt(1-h**2),d=o+u*s*Math.sin(c)*(a?-1:1),p=l-u*r*Math.cos(c)*(a?-1:1),g=Math.atan2((t-p)/s,(e-d)/r),f=Math.atan2((n-p)/s,(i-d)/r)-g;a&&f<0&&(f+=2*Math.PI),!a&&0<f&&(f-=2*Math.PI);var m=[];for(let e=0;e<20;e++){var y=g+e/19*f,b=d+r*Math.cos(y),y=p+s*Math.sin(y);m.push({x:b,y:y})}return m}async function VR(e,t){var{labelStyles:i,nodeStyles:n}=LL(t);t.labelStyle=i;let{shapeSvg:r,bbox:s}=await rL(e,t,oL(t)),a=s.width+t.padding+20,o=s.height+t.padding,l=o/2,c=l/(2.5+o/50),h=t["cssStyles"],u=[{x:a/2,y:-o/2},{x:-a/2,y:-o/2},...WR(-a/2,-o/2,-a/2,o/2,c,l,!1),{x:a/2,y:o/2},...WR(a/2,o/2,a/2,-o/2,c,l,!0)],d=zR.svg(r),p=RL(t,{}),g=("handDrawn"!==t.look&&(p.roughness=0,p.fillStyle="solid"),tL(u)),f=d.path(g,p),m=r.insert(()=>f,":first-child");return m.attr("class","basic label-container"),h&&"handDrawn"!==t.look&&m.selectAll("path").attr("style",h),n&&"handDrawn"!==t.look&&m.selectAll("path").attr("style",n),m.attr("transform",`translate(${c/2}, 0)`),aL(t,m),t.intersect=function(e){return _L.polygon(t,u,e)},r}var GR=e(()=>{"use strict";r(),NL(),DL(),HR(),mt(WR,"generateArcPoints"),mt(VR,"bowTieRect")});function YR(e,t,i,n){return e.insert("polygon",":first-child").attr("points",n.map(function(e){return e.x+","+e.y}).join(" ")).attr("class","label-container").attr("transform","translate("+-t/2+","+i/2+")")}var XR=e(()=>{"use strict";mt(YR,"insertPolygonShape")});async function KR(e,r){var{labelStyles:t,nodeStyles:i}=LL(r);r.labelStyle=t;let{shapeSvg:s,bbox:n}=await rL(e,r,oL(r)),a=n.height+r.padding,o=n.width+r.padding+12,l=o,c=-a,h=[{x:12,y:c},{x:l,y:c},{x:l,y:0},{x:0,y:0},{x:0,y:12+c},{x:12,y:c}],u,d=r["cssStyles"];if("handDrawn"===r.look){let e=zR.svg(s),t=RL(r,{}),i=tL(h),n=e.path(i,t);u=s.insert(()=>n,":first-child").attr("transform",`translate(${-o/2}, ${a/2})`),d&&u.attr("style",d)}else u=YR(s,o,a,h);return i&&u.attr("style",i),aL(r,u),r.intersect=function(e){return _L.polygon(r,h,e)},s}var ZR=e(()=>{"use strict";r(),NL(),DL(),HR(),XR(),r(),mt(KR,"card")});function QR(e,t){var i=LL(t)["nodeStyles"];t.label="";let n=e.insert("g").attr("class",oL(t)).attr("id",t.domId??t.id),r=t["cssStyles"],s=Math.max(28,t.width??0),a=[{x:0,y:s/2},{x:s/2,y:0},{x:0,y:-s/2},{x:-s/2,y:0}],o=zR.svg(n),l=RL(t,{}),c=("handDrawn"!==t.look&&(l.roughness=0,l.fillStyle="solid"),tL(a)),h=o.path(c,l),u=n.insert(()=>h,":first-child");return r&&"handDrawn"!==t.look&&u.selectAll("path").attr("style",r),i&&"handDrawn"!==t.look&&u.selectAll("path").attr("style",i),t.width=28,t.height=28,t.intersect=function(e){return _L.polygon(t,a,e)},n}var JR=e(()=>{"use strict";NL(),HR(),DL(),r(),mt(QR,"choice")});async function eM(e,n){var{labelStyles:t,nodeStyles:i}=LL(n);n.labelStyle=t;let{shapeSvg:r,bbox:s,halfPadding:a}=await rL(e,n,oL(n)),o=s.width/2+a,l,c=n["cssStyles"];if("handDrawn"===n.look){let e=zR.svg(r),t=RL(n,{}),i=e.circle(0,0,2*o,t);(l=r.insert(()=>i,":first-child")).attr("class","basic label-container").attr("style",$_(c))}else l=r.insert("circle",":first-child").attr("class","basic label-container").attr("style",i).attr("r",o).attr("cx",0).attr("cy",0);return aL(n,l),n.intersect=function(e){return I.info("Circle intersect",n,o,e),_L.circle(n,o,e)},r}var tM=e(()=>{"use strict";t(),r(),NL(),DL(),HR(),sC(),mt(eM,"circle")});function iM(e){let t=Math.cos(Math.PI/4),i=Math.sin(Math.PI/4),n=2*e,r=n/2*t,s=n/2*i,a=-n/2*t,o=n/2*i,l=-n/2*t,c=-n/2*i,h=n/2*t,u=-n/2*i;return`M ${a},${o} L ${h},${u}
|
||
M ${r},${s} L ${l},`+c}function nM(e,t){var{labelStyles:i,nodeStyles:n}=LL(t);t.labelStyle=i,t.label="";let r=e.insert("g").attr("class",oL(t)).attr("id",t.domId??t.id),s=Math.max(30,t?.width??0),a=t["cssStyles"],o=zR.svg(r),l=RL(t,{}),c=("handDrawn"!==t.look&&(l.roughness=0,l.fillStyle="solid"),o.circle(0,0,2*s,l)),h=iM(s),u=o.path(h,l),d=r.insert(()=>c,":first-child");return d.insert(()=>u),a&&"handDrawn"!==t.look&&d.selectAll("path").attr("style",a),n&&"handDrawn"!==t.look&&d.selectAll("path").attr("style",n),aL(t,d),t.intersect=function(e){return I.info("crossedCircle intersect",t,{radius:s,point:e}),_L.circle(t,s,e)},r}var rM=e(()=>{"use strict";t(),r(),DL(),HR(),NL(),mt(iM,"createLine"),mt(nM,"crossedCircle")});function sM(t,i,n,r=100,e=0,s=180){var a=[],o=e*Math.PI/180,l=(s*Math.PI/180-o)/(r-1);for(let e=0;e<r;e++){var c=o+e*l,h=t+n*Math.cos(c),c=i+n*Math.sin(c);a.push({x:-h,y:-c})}return a}async function aM(e,t){var{labelStyles:i,nodeStyles:n}=LL(t);t.labelStyle=i;let{shapeSvg:r,bbox:s,label:a}=await rL(e,t,oL(t)),o=s.width+(t.padding??0),l=s.height+(t.padding??0),c=Math.max(5,.1*l),h=t["cssStyles"],u=[...sM(o/2,-l/2,c,30,-90,0),{x:-o/2-c,y:c},...sM(o/2+2*c,-c,c,20,-180,-270),...sM(o/2+2*c,c,c,20,-90,-180),{x:-o/2-c,y:-l/2},...sM(o/2,l/2,c,20,0,90)],d=[{x:o/2,y:-l/2-c},{x:-o/2,y:-l/2-c},...sM(o/2,-l/2,c,20,-90,0),{x:-o/2-c,y:-c},...sM(o/2+.1*o,-c,c,20,-180,-270),...sM(o/2+.1*o,c,c,20,-90,-180),{x:-o/2-c,y:l/2},...sM(o/2,l/2,c,20,0,90),{x:-o/2,y:l/2+c},{x:o/2,y:l/2+c}],p=zR.svg(r),g=RL(t,{fill:"none"}),f=("handDrawn"!==t.look&&(g.roughness=0,g.fillStyle="solid"),tL(u).replace("Z","")),m=p.path(f,g),y=tL(d),b=p.path(y,{...g}),v=r.insert("g",":first-child");return v.insert(()=>b,":first-child").attr("stroke-opacity",0),v.insert(()=>m,":first-child"),v.attr("class","text"),h&&"handDrawn"!==t.look&&v.selectAll("path").attr("style",h),n&&"handDrawn"!==t.look&&v.selectAll("path").attr("style",n),v.attr("transform",`translate(${c}, 0)`),a.attr("transform",`translate(${-o/2+c-(s.x-(s.left??0))},${-l/2+(t.padding??0)/2-(s.y-(s.top??0))})`),aL(t,v),t.intersect=function(e){return _L.polygon(t,d,e)},r}var oM=e(()=>{"use strict";r(),NL(),DL(),HR(),mt(sM,"generateCirclePoints"),mt(aM,"curlyBraceLeft")});function lM(t,i,n,r=100,e=0,s=180){var a=[],o=e*Math.PI/180,l=(s*Math.PI/180-o)/(r-1);for(let e=0;e<r;e++){var c=o+e*l,h=t+n*Math.cos(c),c=i+n*Math.sin(c);a.push({x:h,y:c})}return a}async function cM(e,t){var{labelStyles:i,nodeStyles:n}=LL(t);t.labelStyle=i;let{shapeSvg:r,bbox:s,label:a}=await rL(e,t,oL(t)),o=s.width+(t.padding??0),l=s.height+(t.padding??0),c=Math.max(5,.1*l),h=t["cssStyles"],u=[...lM(o/2,-l/2,c,20,-90,0),{x:o/2+c,y:-c},...lM(o/2+2*c,-c,c,20,-180,-270),...lM(o/2+2*c,c,c,20,-90,-180),{x:o/2+c,y:l/2},...lM(o/2,l/2,c,20,0,90)],d=[{x:-o/2,y:-l/2-c},{x:o/2,y:-l/2-c},...lM(o/2,-l/2,c,20,-90,0),{x:o/2+c,y:-c},...lM(o/2+2*c,-c,c,20,-180,-270),...lM(o/2+2*c,c,c,20,-90,-180),{x:o/2+c,y:l/2},...lM(o/2,l/2,c,20,0,90),{x:o/2,y:l/2+c},{x:-o/2,y:l/2+c}],p=zR.svg(r),g=RL(t,{fill:"none"}),f=("handDrawn"!==t.look&&(g.roughness=0,g.fillStyle="solid"),tL(u).replace("Z","")),m=p.path(f,g),y=tL(d),b=p.path(y,{...g}),v=r.insert("g",":first-child");return v.insert(()=>b,":first-child").attr("stroke-opacity",0),v.insert(()=>m,":first-child"),v.attr("class","text"),h&&"handDrawn"!==t.look&&v.selectAll("path").attr("style",h),n&&"handDrawn"!==t.look&&v.selectAll("path").attr("style",n),v.attr("transform",`translate(${-c}, 0)`),a.attr("transform",`translate(${-o/2+(t.padding??0)/2-(s.x-(s.left??0))},${-l/2+(t.padding??0)/2-(s.y-(s.top??0))})`),aL(t,v),t.intersect=function(e){return _L.polygon(t,d,e)},r}var hM=e(()=>{"use strict";r(),NL(),DL(),HR(),mt(lM,"generateCirclePoints"),mt(cM,"curlyBraceRight")});function uM(t,i,n,r=100,e=0,s=180){var a=[],o=e*Math.PI/180,l=(s*Math.PI/180-o)/(r-1);for(let e=0;e<r;e++){var c=o+e*l,h=t+n*Math.cos(c),c=i+n*Math.sin(c);a.push({x:-h,y:-c})}return a}async function dM(e,t){var{labelStyles:i,nodeStyles:n}=LL(t);t.labelStyle=i;let{shapeSvg:r,bbox:s,label:a}=await rL(e,t,oL(t)),o=s.width+(t.padding??0),l=s.height+(t.padding??0),c=Math.max(5,.1*l),h=t["cssStyles"],u=[...uM(o/2,-l/2,c,30,-90,0),{x:-o/2-c,y:c},...uM(o/2+2*c,-c,c,20,-180,-270),...uM(o/2+2*c,c,c,20,-90,-180),{x:-o/2-c,y:-l/2},...uM(o/2,l/2,c,20,0,90)],d=[...uM(-o/2+c+c/2,-l/2,c,20,-90,-180),{x:o/2-c/2,y:c},...uM(-o/2-c/2,-c,c,20,0,90),...uM(-o/2-c/2,c,c,20,-90,0),{x:o/2-c/2,y:-c},...uM(-o/2+c+c/2,l/2,c,30,-180,-270)],p=[{x:o/2,y:-l/2-c},{x:-o/2,y:-l/2-c},...uM(o/2,-l/2,c,20,-90,0),{x:-o/2-c,y:-c},...uM(o/2+2*c,-c,c,20,-180,-270),...uM(o/2+2*c,c,c,20,-90,-180),{x:-o/2-c,y:l/2},...uM(o/2,l/2,c,20,0,90),{x:-o/2,y:l/2+c},{x:o/2-c-c/2,y:l/2+c},...uM(-o/2+c+c/2,-l/2,c,20,-90,-180),{x:o/2-c/2,y:c},...uM(-o/2-c/2,-c,c,20,0,90),...uM(-o/2-c/2,c,c,20,-90,0),{x:o/2-c/2,y:-c},...uM(-o/2+c+c/2,l/2,c,30,-180,-270)],g=zR.svg(r),f=RL(t,{fill:"none"}),m=("handDrawn"!==t.look&&(f.roughness=0,f.fillStyle="solid"),tL(u).replace("Z","")),y=g.path(m,f),b=tL(d).replace("Z",""),v=g.path(b,f),x=tL(p),w=g.path(x,{...f}),k=r.insert("g",":first-child");return k.insert(()=>w,":first-child").attr("stroke-opacity",0),k.insert(()=>y,":first-child"),k.insert(()=>v,":first-child"),k.attr("class","text"),h&&"handDrawn"!==t.look&&k.selectAll("path").attr("style",h),n&&"handDrawn"!==t.look&&k.selectAll("path").attr("style",n),k.attr("transform",`translate(${c-c/4}, 0)`),a.attr("transform",`translate(${-o/2+(t.padding??0)/2-(s.x-(s.left??0))},${-l/2+(t.padding??0)/2-(s.y-(s.top??0))})`),aL(t,k),t.intersect=function(e){return _L.polygon(t,p,e)},r}var pM=e(()=>{"use strict";r(),NL(),DL(),HR(),mt(uM,"generateCirclePoints"),mt(dM,"curlyBraces")});async function gM(e,t){var{labelStyles:i,nodeStyles:n}=LL(t),{shapeSvg:i,bbox:e}=(t.labelStyle=i,await rL(e,t,oL(t))),r=Math.max(80,1.25*(e.width+2*(t.padding??0)),t?.width??0),e=Math.max(20,e.height+2*(t.padding??0),t?.height??0),s=e/2,a=t["cssStyles"],o=zR.svg(i),l=RL(t,{});"handDrawn"!==t.look&&(l.roughness=0,l.fillStyle="solid");let c=r,h=e,u=c-s,d=h/4,p=[{x:u,y:0},{x:d,y:0},{x:0,y:h/2},{x:d,y:h},{x:u,y:h},...nL(-u,-h/2,s,50,270,90)],g=tL(p),f=o.path(g,l),m=i.insert(()=>f,":first-child");return m.attr("class","basic label-container"),a&&"handDrawn"!==t.look&&m.selectChildren("path").attr("style",a),n&&"handDrawn"!==t.look&&m.selectChildren("path").attr("style",n),m.attr("transform",`translate(${-r/2}, ${-e/2})`),aL(t,m),t.intersect=function(e){return _L.polygon(t,p,e)},i}var fM=e(()=>{"use strict";r(),NL(),DL(),HR(),mt(gM,"curvedTrapezoid")});async function mM(e,s){var{labelStyles:t,nodeStyles:i}=LL(s);s.labelStyle=t;let{shapeSvg:a,bbox:n,label:r}=await rL(e,s,oL(s)),o=Math.max(n.width+s.padding,s.width??0),l=o/2,c=l/(2.5+o/50),h=Math.max(n.height+c+s.padding,s.height??0),u,d=s["cssStyles"];if("handDrawn"===s.look){let e=zR.svg(a),t=bM(0,0,o,h,l,c),i=vM(0,c,o,h,l,c),n=e.path(t,RL(s,{})),r=e.path(i,RL(s,{fill:"none"}));u=a.insert(()=>r,":first-child"),(u=a.insert(()=>n,":first-child")).attr("class","basic label-container"),d&&u.attr("style",d)}else{t=yM(0,0,o,h,l,c);u=a.insert("path",":first-child").attr("d",t).attr("class","basic label-container").attr("style",$_(d)).attr("style",i)}return u.attr("label-offset-y",c),u.attr("transform",`translate(${-o/2}, ${-(h/2+c)})`),aL(s,u),r.attr("transform",`translate(${-n.width/2-(n.x-(n.left??0))}, ${-n.height/2+(s.padding??0)/1.5-(n.y-(n.top??0))})`),s.intersect=function(t){var i=_L.rect(s,t),n=i.x-(s.x??0);if(0!=l&&(Math.abs(n)<(s.width??0)/2||Math.abs(n)==(s.width??0)/2&&Math.abs(i.y-(s.y??0))>(s.height??0)/2-c)){let e=c*c*(1-n*n/(l*l));0<e&&(e=Math.sqrt(e)),e=c-e,0<t.y-(s.y??0)&&(e=-e),i.y+=e}return i},a}var yM,bM,vM,xM=e(()=>{"use strict";r(),NL(),DL(),HR(),sC(),yM=mt((e,t,i,n,r,s)=>[`M${e},`+(t+s),`a${r},${s} 0,0,0 ${i},0`,`a${r},${s} 0,0,0 ${-i},0`,"l0,"+n,`a${r},${s} 0,0,0 ${i},0`,"l0,"+-n].join(" "),"createCylinderPathD"),bM=mt((e,t,i,n,r,s)=>[`M${e},`+(t+s),`M${e+i},`+(t+s),`a${r},${s} 0,0,0 ${-i},0`,"l0,"+n,`a${r},${s} 0,0,0 ${i},0`,"l0,"+-n].join(" "),"createOuterCylinderPathD"),vM=mt((e,t,i,n,r,s)=>[`M${e-i/2},`+-n/2,`a${r},${s} 0,0,0 ${i},0`].join(" "),"createInnerCylinderPathD"),mt(mM,"cylinder")});async function wM(e,t){var{labelStyles:i,nodeStyles:n}=LL(t),{shapeSvg:i,bbox:e,label:r}=(t.labelStyle=i,await rL(e,t,oL(t))),s=e.width+t.padding,a=e.height+t.padding,o=.2*a,s=-s/2,a=-a/2-o/2,l=t["cssStyles"],c=zR.svg(i),h=RL(t,{});"handDrawn"!==t.look&&(h.roughness=0,h.fillStyle="solid");let u=[{x:s,y:a+o},{x:-s,y:a+o},{x:-s,y:-a},{x:s,y:-a},{x:s,y:a},{x:-s,y:a},{x:-s,y:a+o}],d=c.polygon(u.map(e=>[e.x,e.y]),h),p=i.insert(()=>d,":first-child");return p.attr("class","basic label-container"),l&&"handDrawn"!==t.look&&p.selectAll("path").attr("style",l),n&&"handDrawn"!==t.look&&p.selectAll("path").attr("style",n),r.attr("transform",`translate(${s+(t.padding??0)/2-(e.x-(e.left??0))}, ${a+o+(t.padding??0)/2-(e.y-(e.top??0))})`),aL(t,p),t.intersect=function(e){return _L.rect(t,e)},i}var kM=e(()=>{"use strict";r(),NL(),DL(),HR(),mt(wM,"dividedRectangle")});async function TM(e,t){var i,{labelStyles:n,nodeStyles:r}=LL(t);t.labelStyle=n;let{shapeSvg:s,bbox:a,halfPadding:o}=await rL(e,t,oL(t)),l=a.width/2+o+5,c=a.width/2+o,h,u=t["cssStyles"];return"handDrawn"===t.look?(n=zR.svg(s),e=RL(t,{roughness:.2,strokeWidth:2.5}),i=RL(t,{roughness:.2,strokeWidth:1.5}),e=n.circle(0,0,2*l,e),n=n.circle(0,0,2*c,i),(h=s.insert("g",":first-child")).attr("class",$_(t.cssClasses)).attr("style",$_(u)),h.node()?.appendChild(e),h.node()?.appendChild(n)):(i=(h=s.insert("g",":first-child")).insert("circle",":first-child"),e=h.insert("circle"),h.attr("class","basic label-container").attr("style",r),i.attr("class","outer-circle").attr("style",r).attr("r",l).attr("cx",0).attr("cy",0),e.attr("class","inner-circle").attr("style",r).attr("r",c).attr("cx",0).attr("cy",0)),aL(t,h),t.intersect=function(e){return I.info("DoubleCircle intersect",t,l,e),_L.circle(t,l,e)},s}var SM=e(()=>{"use strict";t(),r(),NL(),DL(),HR(),sC(),mt(TM,"doublecircle")});function _M(e,t,{config:{themeVariables:i}}){var{labelStyles:n,nodeStyles:r}=LL(t);t.label="",t.labelStyle=n;let s=e.insert("g").attr("class",oL(t)).attr("id",t.domId??t.id),a=t["cssStyles"],o=zR.svg(s),l=i["nodeBorder"],c=RL(t,{fillStyle:"solid"}),h=("handDrawn"!==t.look&&(c.roughness=0),o.circle(0,0,14,c)),u=s.insert(()=>h,":first-child");return u.selectAll("path").attr("style",`fill: ${l} !important;`),a&&0<a.length&&"handDrawn"!==t.look&&u.selectAll("path").attr("style",a),r&&"handDrawn"!==t.look&&u.selectAll("path").attr("style",r),aL(t,u),t.intersect=function(e){return I.info("filledCircle intersect",t,{radius:7,point:e}),_L.circle(t,7,e)},s}var CM=e(()=>{"use strict";HR(),t(),NL(),DL(),r(),mt(_M,"filledCircle")});async function AM(e,t){var{labelStyles:i,nodeStyles:n}=LL(t);t.labelStyle=i;let{shapeSvg:r,bbox:s,label:a}=await rL(e,t,oL(t)),o=s.width+(t.padding??0),l=o+s.height,c=o+s.height,h=[{x:0,y:-l},{x:c,y:-l},{x:c/2,y:0}],u=t["cssStyles"],d=zR.svg(r),p=RL(t,{}),g=("handDrawn"!==t.look&&(p.roughness=0,p.fillStyle="solid"),tL(h)),f=d.path(g,p),m=r.insert(()=>f,":first-child").attr("transform",`translate(${-l/2}, ${l/2})`);return u&&"handDrawn"!==t.look&&m.selectChildren("path").attr("style",u),n&&"handDrawn"!==t.look&&m.selectChildren("path").attr("style",n),t.width=o,t.height=l,aL(t,m),a.attr("transform",`translate(${-s.width/2-(s.x-(s.left??0))}, ${-l/2+(t.padding??0)/2+(s.y-(s.top??0))})`),t.intersect=function(e){return I.info("Triangle intersect",t,h,e),_L.polygon(t,h,e)},r}var EM=e(()=>{"use strict";t(),r(),NL(),DL(),HR(),r(),mt(AM,"flippedTriangle")});function $M(e,t,{dir:i,config:{state:n,themeVariables:r}}){var s=LL(t)["nodeStyles"];t.label="";let a=e.insert("g").attr("class",oL(t)).attr("id",t.domId??t.id),o=t["cssStyles"],l=Math.max(70,t?.width??0),c=Math.max(10,t?.height??0);"LR"===i&&(l=Math.max(10,t?.width??0),c=Math.max(70,t?.height??0));var e=-1*l/2,i=-1*c/2,h=zR.svg(a),r=RL(t,{stroke:r.lineColor,fill:r.lineColor});"handDrawn"!==t.look&&(r.roughness=0,r.fillStyle="solid");let u=h.rectangle(e,i,l,c,r),d=a.insert(()=>u,":first-child");o&&"handDrawn"!==t.look&&d.selectAll("path").attr("style",o),s&&"handDrawn"!==t.look&&d.selectAll("path").attr("style",s),aL(t,d);h=n?.padding??0;return t.width&&t.height&&(t.width+=h/2||0,t.height+=h/2||0),t.intersect=function(e){return _L.rect(t,e)},a}var LM=e(()=>{"use strict";HR(),NL(),DL(),r(),mt($M,"forkJoin")});async function RM(e,t){var{labelStyles:i,nodeStyles:n}=LL(t);t.labelStyle=i;let{shapeSvg:r,bbox:s}=await rL(e,t,oL(t)),a=Math.max(80,s.width+2*(t.padding??0),t?.width??0),o=Math.max(50,s.height+2*(t.padding??0),t?.height??0),l=o/2,c=t["cssStyles"],h=zR.svg(r),u=RL(t,{}),d=("handDrawn"!==t.look&&(u.roughness=0,u.fillStyle="solid"),[{x:-a/2,y:-o/2},{x:a/2-l,y:-o/2},...nL(-a/2+l,0,l,50,90,270),{x:a/2-l,y:o/2},{x:-a/2,y:o/2}]),p=tL(d),g=h.path(p,u),f=r.insert(()=>g,":first-child");return f.attr("class","basic label-container"),c&&"handDrawn"!==t.look&&f.selectChildren("path").attr("style",c),n&&"handDrawn"!==t.look&&f.selectChildren("path").attr("style",n),aL(t,f),t.intersect=function(e){return I.info("Pill intersect",t,{radius:l,point:e}),_L.polygon(t,d,e)},r}var MM=e(()=>{"use strict";t(),r(),NL(),DL(),HR(),mt(RM,"halfRoundedRectangle")});async function IM(e,r){var{labelStyles:t,nodeStyles:i}=LL(r);r.labelStyle=t;let{shapeSvg:s,bbox:n}=await rL(e,r,oL(r)),a=n.height+r.padding,o=a/4,l=n.width+2*o+r.padding,c=[{x:o,y:0},{x:l-o,y:0},{x:l,y:-a/2},{x:l-o,y:-a},{x:o,y:-a},{x:0,y:-a/2}],h,u=r["cssStyles"];if("handDrawn"===r.look){let e=zR.svg(s),t=RL(r,{}),i=NM(0,0,l,a,o),n=e.path(i,t);h=s.insert(()=>n,":first-child").attr("transform",`translate(${-l/2}, ${a/2})`),u&&h.attr("style",u)}else h=YR(s,l,a,c);return i&&h.attr("style",i),r.width=l,r.height=a,aL(r,h),r.intersect=function(e){return _L.polygon(r,c,e)},s}var NM,DM=e(()=>{"use strict";r(),NL(),DL(),HR(),XR(),NM=mt((e,t,i,n,r)=>[`M${e+r},`+t,`L${e+i-r},`+t,`L${e+i},`+(t-n/2),`L${e+i-r},`+(t-n),`L${e+r},`+(t-n),`L${e},`+(t-n/2),"Z"].join(" "),"createHexagonPathD"),mt(IM,"hexagon")});async function OM(e,t){var{labelStyles:i,nodeStyles:n}=LL(t),i=(t.label="",t.labelStyle=i,await rL(e,t,oL(t)))["shapeSvg"],e=Math.max(30,t?.width??0),r=Math.max(30,t?.height??0),s=t["cssStyles"],a=zR.svg(i),o=RL(t,{});"handDrawn"!==t.look&&(o.roughness=0,o.fillStyle="solid");let l=[{x:0,y:0},{x:e,y:0},{x:0,y:r},{x:e,y:r}],c=tL(l),h=a.path(c,o),u=i.insert(()=>h,":first-child");return u.attr("class","basic label-container"),s&&"handDrawn"!==t.look&&u.selectChildren("path").attr("style",s),n&&"handDrawn"!==t.look&&u.selectChildren("path").attr("style",n),u.attr("transform",`translate(${-e/2}, ${-r/2})`),aL(t,u),t.intersect=function(e){return I.info("Pill intersect",t,{points:l}),_L.polygon(t,l,e)},i}var PM=e(()=>{"use strict";t(),r(),NL(),DL(),HR(),mt(OM,"hourglass")});async function BM(e,s,{config:{themeVariables:t,flowchart:i}}){var n=LL(s)["labelStyles"],n=(s.labelStyle=n,s.assetHeight??48),r=s.assetWidth??48,n=Math.max(n,r),r=i?.wrappingWidth;s.width=Math.max(n,r??0);let{shapeSvg:a,bbox:o,label:l}=await rL(e,s,"icon-shape default"),c="t"===s.pos,h=n,u=n,d=t["nodeBorder"],p=AL(s)["stylesMap"],g=-u/2,f=-h/2,m=s.label?8:0,y=zR.svg(a),b=RL(s,{stroke:"none",fill:"none"}),v=("handDrawn"!==s.look&&(b.roughness=0,b.fillStyle="solid"),y.rectangle(g,f,u,h,b)),x=Math.max(u,o.width),w=h+o.height+m,k=y.rectangle(-x/2,-w/2,x,w,{...b,fill:"transparent",stroke:"none"}),T=a.insert(()=>v,":first-child"),S=a.insert(()=>k);return s.icon&&((i=a.append("g")).html(`<g>${await je(s.icon,{height:n,width:n,fallbackPrefix:""})}</g>`),e=(r=i.node().getBBox()).width,t=r.height,n=r.x,r=r.y,i.attr("transform",`translate(${-e/2-n},${c?o.height/2+m/2-t/2-r:-o.height/2-m/2-t/2-r})`),i.attr("style",`color: ${p.get("stroke")??d};`)),l.attr("transform",`translate(${-o.width/2-(o.x-(o.left??0))},${c?-w/2:w/2-o.height})`),T.attr("transform",`translate(0,${c?o.height/2+m/2:-o.height/2-m/2})`),aL(s,S),s.intersect=function(e){if(I.info("iconSquare intersect",s,e),!s.label)return _L.rect(s,e);let t=s.x??0,i=s.y??0,n=s.height??0,r=[];return r=c?[{x:t-o.width/2,y:i-n/2},{x:t+o.width/2,y:i-n/2},{x:t+o.width/2,y:i-n/2+o.height+m},{x:t+u/2,y:i-n/2+o.height+m},{x:t+u/2,y:i+n/2},{x:t-u/2,y:i+n/2},{x:t-u/2,y:i-n/2+o.height+m},{x:t-o.width/2,y:i-n/2+o.height+m}]:[{x:t-u/2,y:i-n/2},{x:t+u/2,y:i-n/2},{x:t+u/2,y:i-n/2+h},{x:t+o.width/2,y:i-n/2+h},{x:t+o.width/2/2,y:i+n/2},{x:t-o.width/2,y:i+n/2},{x:t-o.width/2,y:i-n/2+h},{x:t-u/2,y:i-n/2+h}],_L.polygon(s,r,e)},a}var FM=e(()=>{"use strict";HR(),t(),Ve(),NL(),DL(),r(),mt(BM,"icon")});async function jM(e,t,{config:{themeVariables:i,flowchart:n}}){var r=LL(t)["labelStyles"],r=(t.labelStyle=r,t.assetHeight??48),s=t.assetWidth??48,r=Math.max(r,s),s=n?.wrappingWidth,{shapeSvg:n,bbox:s,label:e}=(t.width=Math.max(r,s??0),await rL(e,t,"icon-shape default")),a=t.label?8:0,o="t"===t.pos,{nodeBorder:i,mainBkg:l}=i,c=AL(t)["stylesMap"],h=zR.svg(n),u=RL(t,{}),d=("handDrawn"!==t.look&&(u.roughness=0,u.fillStyle="solid"),c.get("fill")),d=(u.stroke=d??l,n.append("g"));t.icon&&d.html(`<g>${await je(t.icon,{height:r,width:r,fallbackPrefix:""})}</g>`);let p=d.node().getBBox(),g=p.width,f=p.height,m=p.x,y=p.y,b=Math.max(g,f)*Math.SQRT2+40,v=h.circle(0,0,b,u),x=Math.max(b,s.width),w=b+s.height+a,k=h.rectangle(-x/2,-w/2,x,w,{...u,fill:"transparent",stroke:"none"}),T=n.insert(()=>v,":first-child"),S=n.insert(()=>k);return d.attr("transform",`translate(${-g/2-m},${o?s.height/2+a/2-f/2-y:-s.height/2-a/2-f/2-y})`),d.attr("style",`color: ${c.get("stroke")??i};`),e.attr("transform",`translate(${-s.width/2-(s.x-(s.left??0))},${o?-w/2:w/2-s.height})`),T.attr("transform",`translate(0,${o?s.height/2+a/2:-s.height/2-a/2})`),aL(t,S),t.intersect=function(e){return I.info("iconSquare intersect",t,e),_L.rect(t,e)},n}var zM,HM=e(()=>{"use strict";HR(),t(),Ve(),NL(),DL(),r(),mt(jM,"iconCircle")}),UM=e(()=>{"use strict";zM=mt((e,t,i,n,r)=>["M",e+r,t,"H",e+i-r,"A",r,r,0,0,1,e+i,t+r,"V",t+n-r,"A",r,r,0,0,1,e+i-r,t+n,"H",e+r,"A",r,r,0,0,1,e,t+n-r,"V",t+r,"A",r,r,0,0,1,e+r,t,"Z"].join(" "),"createRoundedRectPathD")});async function qM(e,s,{config:{themeVariables:t,flowchart:i}}){var n=LL(s)["labelStyles"],n=(s.labelStyle=n,s.assetHeight??48),r=s.assetWidth??48,n=Math.max(n,r),r=i?.wrappingWidth;s.width=Math.max(n,r??0);let{shapeSvg:a,bbox:o,halfPadding:l,label:c}=await rL(e,s,"icon-shape default"),h="t"===s.pos,u=n+2*l,d=n+2*l,{nodeBorder:p,mainBkg:g}=t,f=AL(s)["stylesMap"],m=-d/2,y=-u/2,b=s.label?8:0,v=zR.svg(a),x=RL(s,{});"handDrawn"!==s.look&&(x.roughness=0,x.fillStyle="solid");var i=f.get("fill");x.stroke=i??g;let w=v.path(zM(m,y,d,u,5),x),k=Math.max(d,o.width),T=u+o.height+b,S=v.rectangle(-k/2,-T/2,k,T,{...x,fill:"transparent",stroke:"none"}),_=a.insert(()=>w,":first-child").attr("class","icon-shape2"),C=a.insert(()=>S);return s.icon&&((r=a.append("g")).html(`<g>${await je(s.icon,{height:n,width:n,fallbackPrefix:""})}</g>`),t=(e=r.node().getBBox()).width,i=e.height,n=e.x,e=e.y,r.attr("transform",`translate(${-t/2-n},${h?o.height/2+b/2-i/2-e:-o.height/2-b/2-i/2-e})`),r.attr("style",`color: ${f.get("stroke")??p};`)),c.attr("transform",`translate(${-o.width/2-(o.x-(o.left??0))},${h?-T/2:T/2-o.height})`),_.attr("transform",`translate(0,${h?o.height/2+b/2:-o.height/2-b/2})`),aL(s,C),s.intersect=function(e){if(I.info("iconSquare intersect",s,e),!s.label)return _L.rect(s,e);let t=s.x??0,i=s.y??0,n=s.height??0,r=[];return r=h?[{x:t-o.width/2,y:i-n/2},{x:t+o.width/2,y:i-n/2},{x:t+o.width/2,y:i-n/2+o.height+b},{x:t+d/2,y:i-n/2+o.height+b},{x:t+d/2,y:i+n/2},{x:t-d/2,y:i+n/2},{x:t-d/2,y:i-n/2+o.height+b},{x:t-o.width/2,y:i-n/2+o.height+b}]:[{x:t-d/2,y:i-n/2},{x:t+d/2,y:i-n/2},{x:t+d/2,y:i-n/2+u},{x:t+o.width/2,y:i-n/2+u},{x:t+o.width/2/2,y:i+n/2},{x:t-o.width/2,y:i+n/2},{x:t-o.width/2,y:i-n/2+u},{x:t-d/2,y:i-n/2+u}],_L.polygon(s,r,e)},a}var WM=e(()=>{"use strict";HR(),t(),Ve(),NL(),DL(),UM(),r(),mt(qM,"iconRounded")});async function VM(e,s,{config:{themeVariables:t,flowchart:i}}){var n=LL(s)["labelStyles"],n=(s.labelStyle=n,s.assetHeight??48),r=s.assetWidth??48,n=Math.max(n,r),r=i?.wrappingWidth;s.width=Math.max(n,r??0);let{shapeSvg:a,bbox:o,halfPadding:l,label:c}=await rL(e,s,"icon-shape default"),h="t"===s.pos,u=n+2*l,d=n+2*l,{nodeBorder:p,mainBkg:g}=t,f=AL(s)["stylesMap"],m=-d/2,y=-u/2,b=s.label?8:0,v=zR.svg(a),x=RL(s,{});"handDrawn"!==s.look&&(x.roughness=0,x.fillStyle="solid");var i=f.get("fill");x.stroke=i??g;let w=v.path(zM(m,y,d,u,.1),x),k=Math.max(d,o.width),T=u+o.height+b,S=v.rectangle(-k/2,-T/2,k,T,{...x,fill:"transparent",stroke:"none"}),_=a.insert(()=>w,":first-child"),C=a.insert(()=>S);return s.icon&&((r=a.append("g")).html(`<g>${await je(s.icon,{height:n,width:n,fallbackPrefix:""})}</g>`),t=(e=r.node().getBBox()).width,i=e.height,n=e.x,e=e.y,r.attr("transform",`translate(${-t/2-n},${h?o.height/2+b/2-i/2-e:-o.height/2-b/2-i/2-e})`),r.attr("style",`color: ${f.get("stroke")??p};`)),c.attr("transform",`translate(${-o.width/2-(o.x-(o.left??0))},${h?-T/2:T/2-o.height})`),_.attr("transform",`translate(0,${h?o.height/2+b/2:-o.height/2-b/2})`),aL(s,C),s.intersect=function(e){if(I.info("iconSquare intersect",s,e),!s.label)return _L.rect(s,e);let t=s.x??0,i=s.y??0,n=s.height??0,r=[];return r=h?[{x:t-o.width/2,y:i-n/2},{x:t+o.width/2,y:i-n/2},{x:t+o.width/2,y:i-n/2+o.height+b},{x:t+d/2,y:i-n/2+o.height+b},{x:t+d/2,y:i+n/2},{x:t-d/2,y:i+n/2},{x:t-d/2,y:i-n/2+o.height+b},{x:t-o.width/2,y:i-n/2+o.height+b}]:[{x:t-d/2,y:i-n/2},{x:t+d/2,y:i-n/2},{x:t+d/2,y:i-n/2+u},{x:t+o.width/2,y:i-n/2+u},{x:t+o.width/2/2,y:i+n/2},{x:t-o.width/2,y:i+n/2},{x:t-o.width/2,y:i-n/2+u},{x:t-d/2,y:i-n/2+u}],_L.polygon(s,r,e)},a}var GM=e(()=>{"use strict";HR(),t(),Ve(),NL(),UM(),DL(),r(),mt(VM,"iconSquare")});async function YM(e,s,{config:{flowchart:t}}){var i=new Image,n=(i.src=s?.img??"",await i.decode(),Number(i.naturalWidth.toString().replace("px",""))),i=Number(i.naturalHeight.toString().replace("px","")),r=(s.imageAspectRatio=n/i,LL(s))["labelStyles"],r=(s.labelStyle=r,t?.wrappingWidth);s.defaultWidth=t?.wrappingWidth;let a=Math.max(s.label?r??0:0,s?.assetWidth??n),o="on"===s.constraint&&s?.assetHeight?s.assetHeight*s.imageAspectRatio:a,l="on"===s.constraint?o/s.imageAspectRatio:s?.assetHeight??i,{shapeSvg:c,bbox:h,label:u}=(s.width=Math.max(o,r??0),await rL(e,s,"image-shape default")),d="t"===s.pos,p=-o/2,g=-l/2,f=s.label?8:0,m=zR.svg(c),y=RL(s,{}),b=("handDrawn"!==s.look&&(y.roughness=0,y.fillStyle="solid"),m.rectangle(p,g,o,l,y)),v=Math.max(o,h.width),x=l+h.height+f,w=m.rectangle(-v/2,-x/2,v,x,{...y,fill:"none",stroke:"none"}),k=c.insert(()=>b,":first-child"),T=c.insert(()=>w);return s.img&&((t=c.append("image")).attr("href",s.img),t.attr("width",o),t.attr("height",l),t.attr("preserveAspectRatio","none"),t.attr("transform",`translate(${-o/2},${d?x/2-l:-x/2})`)),u.attr("transform",`translate(${-h.width/2-(h.x-(h.left??0))},${d?-l/2-h.height/2-f/2:l/2-h.height/2+f/2})`),k.attr("transform",`translate(0,${d?h.height/2+f/2:-h.height/2-f/2})`),aL(s,T),s.intersect=function(e){if(I.info("iconSquare intersect",s,e),!s.label)return _L.rect(s,e);let t=s.x??0,i=s.y??0,n=s.height??0,r=[];return r=d?[{x:t-h.width/2,y:i-n/2},{x:t+h.width/2,y:i-n/2},{x:t+h.width/2,y:i-n/2+h.height+f},{x:t+o/2,y:i-n/2+h.height+f},{x:t+o/2,y:i+n/2},{x:t-o/2,y:i+n/2},{x:t-o/2,y:i-n/2+h.height+f},{x:t-h.width/2,y:i-n/2+h.height+f}]:[{x:t-o/2,y:i-n/2},{x:t+o/2,y:i-n/2},{x:t+o/2,y:i-n/2+l},{x:t+h.width/2,y:i-n/2+l},{x:t+h.width/2/2,y:i+n/2},{x:t-h.width/2,y:i+n/2},{x:t-h.width/2,y:i-n/2+l},{x:t-o/2,y:i-n/2+l}],_L.polygon(s,r,e)},c}var XM=e(()=>{"use strict";HR(),t(),NL(),DL(),r(),mt(YM,"imageSquare")});async function KM(e,r){var{labelStyles:t,nodeStyles:i}=LL(r);r.labelStyle=t;let{shapeSvg:s,bbox:n}=await rL(e,r,oL(r)),a=Math.max(n.width+2*(r.padding??0),r?.width??0),o=Math.max(n.height+2*(r.padding??0),r?.height??0),l=[{x:0,y:0},{x:a,y:0},{x:a+3*o/6,y:-o},{x:-3*o/6,y:-o}],c,h=r["cssStyles"];if("handDrawn"===r.look){let e=zR.svg(s),t=RL(r,{}),i=tL(l),n=e.path(i,t);c=s.insert(()=>n,":first-child").attr("transform",`translate(${-a/2}, ${o/2})`),h&&c.attr("style",h)}else c=YR(s,a,o,l);return i&&c.attr("style",i),r.width=a,r.height=o,aL(r,c),r.intersect=function(e){return _L.polygon(r,l,e)},s}var ZM=e(()=>{"use strict";r(),NL(),DL(),HR(),XR(),mt(KM,"inv_trapezoid")});async function QM(e,n,t){var{labelStyles:i,nodeStyles:r}=LL(n);n.labelStyle=i;let{shapeSvg:s,bbox:a}=await rL(e,n,oL(n)),o=Math.max(a.width+2*t.labelPaddingX,n?.width||0),l=Math.max(a.height+2*t.labelPaddingY,n?.height||0),c=-o/2,h=-l/2,u,{rx:d,ry:p}=n,g=n["cssStyles"];if(t?.rx&&t.ry&&(d=t.rx,p=t.ry),"handDrawn"===n.look){let e=zR.svg(s),t=RL(n,{}),i=d||p?e.path(zM(c,h,o,l,d||0),t):e.rectangle(c,h,o,l,t);(u=s.insert(()=>i,":first-child")).attr("class","basic label-container").attr("style",$_(g))}else(u=s.insert("rect",":first-child")).attr("class","basic label-container").attr("style",r).attr("rx",$_(d)).attr("ry",$_(p)).attr("x",c).attr("y",h).attr("width",o).attr("height",l);return aL(n,u),n.intersect=function(e){return _L.rect(n,e)},s}var JM=e(()=>{"use strict";r(),NL(),UM(),DL(),HR(),sC(),mt(QM,"drawRect")});async function eI(e,t){var{shapeSvg:e,bbox:i,label:n}=await rL(e,t,"label"),r=e.insert("rect",":first-child");return r.attr("width",.1).attr("height",.1),e.attr("class","label edgeLabel"),n.attr("transform",`translate(${-i.width/2-(i.x-(i.left??0))}, ${-i.height/2-(i.y-(i.top??0))})`),aL(t,r),t.intersect=function(e){return _L.rect(t,e)},e}var tI=e(()=>{"use strict";JM(),r(),NL(),mt(eI,"labelRect")});async function iI(e,r){var{labelStyles:t,nodeStyles:i}=LL(r);r.labelStyle=t;let{shapeSvg:s,bbox:n}=await rL(e,r,oL(r)),a=Math.max(n.width+(r.padding??0),r?.width??0),o=Math.max(n.height+(r.padding??0),r?.height??0),l=[{x:0,y:0},{x:a+3*o/6,y:0},{x:a,y:-o},{x:-3*o/6,y:-o}],c,h=r["cssStyles"];if("handDrawn"===r.look){let e=zR.svg(s),t=RL(r,{}),i=tL(l),n=e.path(i,t);c=s.insert(()=>n,":first-child").attr("transform",`translate(${-a/2}, ${o/2})`),h&&c.attr("style",h)}else c=YR(s,a,o,l);return i&&c.attr("style",i),r.width=a,r.height=o,aL(r,c),r.intersect=function(e){return _L.polygon(r,l,e)},s}var nI=e(()=>{"use strict";r(),NL(),DL(),HR(),XR(),mt(iI,"lean_left")});async function rI(e,r){var{labelStyles:t,nodeStyles:i}=LL(r);r.labelStyle=t;let{shapeSvg:s,bbox:n}=await rL(e,r,oL(r)),a=Math.max(n.width+(r.padding??0),r?.width??0),o=Math.max(n.height+(r.padding??0),r?.height??0),l=[{x:-3*o/6,y:0},{x:a,y:0},{x:a+3*o/6,y:-o},{x:0,y:-o}],c,h=r["cssStyles"];if("handDrawn"===r.look){let e=zR.svg(s),t=RL(r,{}),i=tL(l),n=e.path(i,t);c=s.insert(()=>n,":first-child").attr("transform",`translate(${-a/2}, ${o/2})`),h&&c.attr("style",h)}else c=YR(s,a,o,l);return i&&c.attr("style",i),r.width=a,r.height=o,aL(r,c),r.intersect=function(e){return _L.polygon(r,l,e)},s}var sI=e(()=>{"use strict";r(),NL(),DL(),HR(),XR(),mt(rI,"lean_right")});function aI(e,t){var{labelStyles:i,nodeStyles:n}=LL(t);t.label="",t.labelStyle=i;let r=e.insert("g").attr("class",oL(t)).attr("id",t.domId??t.id),s=t["cssStyles"],a=Math.max(35,t?.width??0),o=Math.max(35,t?.height??0),l=[{x:a,y:0},{x:0,y:o+3.5},{x:a-14,y:o+3.5},{x:0,y:2*o},{x:a,y:o-3.5},{x:14,y:o-3.5}],c=zR.svg(r),h=RL(t,{}),u=("handDrawn"!==t.look&&(h.roughness=0,h.fillStyle="solid"),tL(l)),d=c.path(u,h),p=r.insert(()=>d,":first-child");return s&&"handDrawn"!==t.look&&p.selectAll("path").attr("style",s),n&&"handDrawn"!==t.look&&p.selectAll("path").attr("style",n),p.attr("transform",`translate(-${a/2},${-o})`),aL(t,p),t.intersect=function(e){return I.info("lightningBolt intersect",t,e),_L.polygon(t,l,e)},r}var oI=e(()=>{"use strict";t(),r(),DL(),HR(),NL(),r(),mt(aI,"lightningBolt")});async function lI(e,a){var{labelStyles:t,nodeStyles:i}=LL(a);a.labelStyle=t;let{shapeSvg:o,bbox:n,label:r}=await rL(e,a,oL(a)),l=Math.max(n.width+(a.padding??0),a.width??0),c=l/2,h=c/(2.5+l/50),u=Math.max(n.height+h+(a.padding??0),a.height??0),d=.1*u,p,g=a["cssStyles"];if("handDrawn"===a.look){let e=zR.svg(o),t=hI(0,0,l,u,c,h,d),i=uI(0,h,l,u,c,h),n=RL(a,{}),r=e.path(t,n),s=e.path(i,n);o.insert(()=>s,":first-child").attr("class","line"),(p=o.insert(()=>r,":first-child")).attr("class","basic label-container"),g&&p.attr("style",g)}else{t=cI(0,0,l,u,c,h,d);p=o.insert("path",":first-child").attr("d",t).attr("class","basic label-container").attr("style",$_(g)).attr("style",i)}return p.attr("label-offset-y",h),p.attr("transform",`translate(${-l/2}, ${-(u/2+h)})`),aL(a,p),r.attr("transform",`translate(${-n.width/2-(n.x-(n.left??0))}, ${-n.height/2+h-(n.y-(n.top??0))})`),a.intersect=function(t){var i=_L.rect(a,t),n=i.x-(a.x??0);if(0!=c&&(Math.abs(n)<(a.width??0)/2||Math.abs(n)==(a.width??0)/2&&Math.abs(i.y-(a.y??0))>(a.height??0)/2-h)){let e=h*h*(1-n*n/(c*c));0<e&&(e=Math.sqrt(e)),e=h-e,0<t.y-(a.y??0)&&(e=-e),i.y+=e}return i},o}var cI,hI,uI,dI=e(()=>{"use strict";r(),NL(),DL(),HR(),sC(),cI=mt((e,t,i,n,r,s,a)=>[`M${e},`+(t+s),`a${r},${s} 0,0,0 ${i},0`,`a${r},${s} 0,0,0 ${-i},0`,"l0,"+n,`a${r},${s} 0,0,0 ${i},0`,"l0,"+-n,`M${e},`+(t+s+a),`a${r},${s} 0,0,0 ${i},0`].join(" "),"createCylinderPathD"),hI=mt((e,t,i,n,r,s,a)=>[`M${e},`+(t+s),`M${e+i},`+(t+s),`a${r},${s} 0,0,0 ${-i},0`,"l0,"+n,`a${r},${s} 0,0,0 ${i},0`,"l0,"+-n,`M${e},`+(t+s+a),`a${r},${s} 0,0,0 ${i},0`].join(" "),"createOuterCylinderPathD"),uI=mt((e,t,i,n,r,s)=>[`M${e-i/2},`+-n/2,`a${r},${s} 0,0,0 ${i},0`].join(" "),"createInnerCylinderPathD"),mt(lI,"linedCylinder")});async function pI(e,t){var{labelStyles:i,nodeStyles:n}=LL(t),{shapeSvg:i,bbox:e,label:r}=(t.labelStyle=i,await rL(e,t,oL(t))),s=Math.max(e.width+2*(t.padding??0),t?.width??0),a=Math.max(e.height+2*(t.padding??0),t?.height??0),o=a/4,l=a+o,c=t["cssStyles"],h=zR.svg(i),u=RL(t,{});"handDrawn"!==t.look&&(u.roughness=0,u.fillStyle="solid");let d=[{x:-s/2-s/2*.1,y:-l/2},{x:-s/2-s/2*.1,y:l/2},...iL(-s/2-s/2*.1,l/2,s/2+s/2*.1,l/2,o,.8),{x:s/2+s/2*.1,y:-l/2},{x:-s/2-s/2*.1,y:-l/2},{x:-s/2,y:-l/2},{x:-s/2,y:l/2*1.1},{x:-s/2,y:-l/2}],p=h.polygon(d.map(e=>[e.x,e.y]),u),g=i.insert(()=>p,":first-child");return g.attr("class","basic label-container"),c&&"handDrawn"!==t.look&&g.selectAll("path").attr("style",c),n&&"handDrawn"!==t.look&&g.selectAll("path").attr("style",n),g.attr("transform",`translate(0,${-o/2})`),r.attr("transform",`translate(${-s/2+(t.padding??0)+s/2*.1/2-(e.x-(e.left??0))},${-a/2+(t.padding??0)-o/2-(e.y-(e.top??0))})`),aL(t,g),t.intersect=function(e){return _L.polygon(t,d,e)},i}var gI=e(()=>{"use strict";r(),NL(),HR(),DL(),mt(pI,"linedWaveEdgedRect")});async function fI(e,t){var{labelStyles:i,nodeStyles:n}=LL(t);t.labelStyle=i;let{shapeSvg:r,bbox:s,label:a}=await rL(e,t,oL(t)),o=Math.max(s.width+2*(t.padding??0),t?.width??0),l=Math.max(s.height+2*(t.padding??0),t?.height??0),c=-o/2,h=-l/2,u=t["cssStyles"],d=zR.svg(r),p=RL(t,{}),g=[{x:c-5,y:5+h},{x:c-5,y:h+l+5},{x:c+o-5,y:h+l+5},{x:c+o-5,y:h+l},{x:c+o,y:h+l},{x:c+o,y:h+l-5},{x:c+o+5,y:h+l-5},{x:c+o+5,y:h-5},{x:5+c,y:h-5},{x:5+c,y:h},{x:c,y:h},{x:c,y:5+h}],f=[{x:c,y:5+h},{x:c+o-5,y:5+h},{x:c+o-5,y:h+l},{x:c+o,y:h+l},{x:c+o,y:h},{x:c,y:h}],m=("handDrawn"!==t.look&&(p.roughness=0,p.fillStyle="solid"),tL(g)),y=d.path(m,p),b=tL(f),v=d.path(b,{...p,fill:"none"}),x=r.insert(()=>v,":first-child");return x.insert(()=>y,":first-child"),x.attr("class","basic label-container"),u&&"handDrawn"!==t.look&&x.selectAll("path").attr("style",u),n&&"handDrawn"!==t.look&&x.selectAll("path").attr("style",n),a.attr("transform",`translate(${-s.width/2-5-(s.x-(s.left??0))}, ${-s.height/2+5-(s.y-(s.top??0))})`),aL(t,x),t.intersect=function(e){return _L.polygon(t,g,e)},r}var mI=e(()=>{"use strict";r(),DL(),HR(),NL(),mt(fI,"multiRect")});async function yI(e,t){var{labelStyles:i,nodeStyles:n}=LL(t);t.labelStyle=i;let{shapeSvg:r,bbox:s,label:a}=await rL(e,t,oL(t)),o=Math.max(s.width+2*(t.padding??0),t?.width??0),l=Math.max(s.height+2*(t.padding??0),t?.height??0),c=l/4,h=l+c,u=-o/2,d=-h/2,p=t["cssStyles"],g=iL(u-5,d+h+5,u+o-5,d+h+5,c,.8),f=g?.[g.length-1],m=[{x:u-5,y:5+d},{x:u-5,y:d+h+5},...g,{x:u+o-5,y:f.y-5},{x:u+o,y:f.y-5},{x:u+o,y:f.y-10},{x:u+o+5,y:f.y-10},{x:u+o+5,y:d-5},{x:5+u,y:d-5},{x:5+u,y:d},{x:u,y:d},{x:u,y:5+d}],y=[{x:u,y:5+d},{x:u+o-5,y:5+d},{x:u+o-5,y:f.y-5},{x:u+o,y:f.y-5},{x:u+o,y:d},{x:u,y:d}],b=zR.svg(r),v=RL(t,{}),x=("handDrawn"!==t.look&&(v.roughness=0,v.fillStyle="solid"),tL(m)),w=b.path(x,v),k=tL(y),T=b.path(k,v),S=r.insert(()=>w,":first-child");return S.insert(()=>T),S.attr("class","basic label-container"),p&&"handDrawn"!==t.look&&S.selectAll("path").attr("style",p),n&&"handDrawn"!==t.look&&S.selectAll("path").attr("style",n),S.attr("transform",`translate(0,${-c/2})`),a.attr("transform",`translate(${-s.width/2-5-(s.x-(s.left??0))}, ${-s.height/2+5-c/2-(s.y-(s.top??0))})`),aL(t,S),t.intersect=function(e){return _L.polygon(t,m,e)},r}var bI=e(()=>{"use strict";r(),NL(),HR(),DL(),mt(yI,"multiWaveEdgedRectangle")});async function vI(e,t,{config:{themeVariables:i}}){var{labelStyles:n,nodeStyles:r}=LL(t),{shapeSvg:n,bbox:e,label:s}=(t.labelStyle=n,t.useHtmlLabels||!1!==Ii().flowchart?.htmlLabels||(t.centerLabel=!0),await rL(e,t,oL(t))),a=Math.max(e.width+2*(t.padding??0),t?.width??0),o=Math.max(e.height+2*(t.padding??0),t?.height??0),l=-a/2,c=-o/2,h=t["cssStyles"],u=zR.svg(n),i=RL(t,{fill:i.noteBkgColor,stroke:i.noteBorderColor});"handDrawn"!==t.look&&(i.roughness=0,i.fillStyle="solid");let d=u.rectangle(l,c,a,o,i),p=n.insert(()=>d,":first-child");return p.attr("class","basic label-container"),h&&"handDrawn"!==t.look&&p.selectAll("path").attr("style",h),r&&"handDrawn"!==t.look&&p.selectAll("path").attr("style",r),s.attr("transform",`translate(${-e.width/2-(e.x-(e.left??0))}, ${-e.height/2-(e.y-(e.top??0))})`),aL(t,p),t.intersect=function(e){return _L.rect(t,e)},n}var xI=e(()=>{"use strict";HR(),NL(),DL(),r(),Mn(),mt(vI,"note")});async function wI(e,r){var{labelStyles:t,nodeStyles:i}=LL(r);r.labelStyle=t;let{shapeSvg:s,bbox:n}=await rL(e,r,oL(r)),a=n.width+r.padding,o=n.height+r.padding,l=a+o,c=[{x:l/2,y:0},{x:l,y:-l/2},{x:l/2,y:-l},{x:0,y:-l/2}],h,u=r["cssStyles"];if("handDrawn"===r.look){let e=zR.svg(s),t=RL(r,{}),i=kI(0,0,l),n=e.path(i,t);h=s.insert(()=>n,":first-child").attr("transform",`translate(${-l/2}, ${l/2})`),u&&h.attr("style",u)}else h=YR(s,l,l,c);return i&&h.attr("style",i),aL(r,h),r.intersect=function(e){return I.debug(`APA12 Intersect called SPLIT
|
||
point:`,e,`
|
||
node:
|
||
`,r,`
|
||
res:`,_L.polygon(r,c,e)),_L.polygon(r,c,e)},s}var kI,TI=e(()=>{"use strict";t(),r(),NL(),DL(),HR(),XR(),kI=mt((e,t,i)=>[`M${e+i/2},`+t,`L${e+i},`+(t-i/2),`L${e+i/2},`+(t-i),`L${e},`+(t-i/2),"Z"].join(" "),"createDecisionBoxPathD"),mt(wI,"question")});async function SI(e,t){var{labelStyles:i,nodeStyles:n}=LL(t);t.labelStyle=i;let{shapeSvg:r,bbox:s,label:a}=await rL(e,t,oL(t)),o=Math.max(s.width+(t.padding??0),t?.width??0),l=Math.max(s.height+(t.padding??0),t?.height??0),c=-o/2,h=-l/2,u=h/2,d=[{x:c+u,y:h},{x:c,y:0},{x:c+u,y:-h},{x:-c,y:-h},{x:-c,y:h}],p=t["cssStyles"],g=zR.svg(r),f=RL(t,{}),m=("handDrawn"!==t.look&&(f.roughness=0,f.fillStyle="solid"),tL(d)),y=g.path(m,f),b=r.insert(()=>y,":first-child");return b.attr("class","basic label-container"),p&&"handDrawn"!==t.look&&b.selectAll("path").attr("style",p),n&&"handDrawn"!==t.look&&b.selectAll("path").attr("style",n),b.attr("transform",`translate(${-u/2},0)`),a.attr("transform",`translate(${-u/2-s.width/2-(s.x-(s.left??0))}, ${-s.height/2-(s.y-(s.top??0))})`),aL(t,b),t.intersect=function(e){return _L.polygon(t,d,e)},r}var _I=e(()=>{"use strict";r(),NL(),DL(),HR(),mt(SI,"rect_left_inv_arrow")});function CI(e,t){t&&e.attr("style",t)}async function AI(e){let t=G(document.createElementNS("http://www.w3.org/2000/svg","foreignObject")),i=t.append("xhtml:div"),n=e.label;e.label&&Jc(e.label)&&(n=await th(e.label.replace($.lineBreakRegex,`
|
||
`),N()));var r=e.isNode?"nodeLabel":"edgeLabel";return i.html('<span class="'+r+'" '+(e.labelStyle?'style="'+e.labelStyle+'"':"")+">"+n+"</span>"),CI(i,e.labelStyle),i.style("display","inline-block"),i.style("padding-right","1px"),i.style("white-space","nowrap"),i.attr("xmlns","http://www.w3.org/1999/xhtml"),t.node()}var EI,$I,LI=e(()=>{"use strict";a6(),t(),Cu(),hh(),sC(),mt(CI,"applyStyle"),mt(AI,"addHtmlLabel"),EI=mt(async(e,t,i,n)=>{let r=e||"";if("object"==typeof r&&(r=r[0]),qc(N().flowchart.htmlLabels))return r=r.replace(/\\n|\n/g,"<br />"),I.info("vertexText"+r),AI({isNode:n,label:nC(r).replace(/fa[blrs]?:fa-[\w-]+/g,e=>`<i class='${e.replace(":"," ")}'></i>`),labelStyle:t&&t.replace("fill:","color:")});{var s,a=document.createElementNS("http://www.w3.org/2000/svg","text");a.setAttribute("style",t.replace("color:","fill:"));let e=[];for(s of e="string"==typeof r?r.split(/\\n|\n|<br\s*\/?>/gi):Array.isArray(r)?r:[]){var o=document.createElementNS("http://www.w3.org/2000/svg","tspan");o.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),o.setAttribute("dy","1em"),o.setAttribute("x","0"),i?o.setAttribute("class","title-row"):o.setAttribute("class","row"),o.textContent=s.trim(),a.appendChild(o)}return a}},"createLabel"),$I=EI});async function RI(r,s){var{labelStyles:e,nodeStyles:t}=LL(s);s.labelStyle=e;let i,a=(i=s.cssClasses?"node "+s.cssClasses:"node default",r.insert("g").attr("class",i).attr("id",s.domId||s.id)),n=a.insert("g"),o=a.insert("g").attr("class","label").attr("style",t),l=s.description,c=s.label,h=o.node().appendChild(await $I(c,s.labelStyle,!0,!0)),u={width:0,height:0};qc(N()?.flowchart?.htmlLabels)&&(e=h.children[0],r=G(h),u=e.getBoundingClientRect(),r.attr("width",u.width),r.attr("height",u.height)),I.info("Text 2",l);var e=l||[],r=h.getBBox(),e=o.node().appendChild(await $I(e.join?e.join("<br/>"):e,s.labelStyle,!0,!0)),d=e.children[0],p=G(e),d=(u=d.getBoundingClientRect(),p.attr("width",u.width),p.attr("height",u.height),(s.padding||0)/2);G(e).attr("transform","translate( "+(u.width>r.width?0:(r.width-u.width)/2)+", "+(r.height+d+5)+")"),G(h).attr("transform","translate( "+(u.width<r.width?0:-(r.width-u.width)/2)+", 0)"),u=o.node().getBBox(),o.attr("transform","translate("+-u.width/2+", "+(-u.height/2-d+3)+")");let g=u.width+(s.padding||0),f=u.height+(s.padding||0),m=-u.width/2-d,y=-u.height/2-d,b,v;if("handDrawn"===s.look){let e=zR.svg(a),t=RL(s,{}),i=e.path(zM(m,y,g,f,s.rx||0),t),n=e.line(-u.width/2-d,-u.height/2-d+r.height+d,u.width/2+d,-u.height/2-d+r.height+d,t);v=a.insert(()=>(I.debug("Rough node insert CXC",i),n),":first-child"),b=a.insert(()=>(I.debug("Rough node insert CXC",i),i),":first-child")}else b=n.insert("rect",":first-child"),v=n.insert("line"),b.attr("class","outer title-state").attr("style",t).attr("x",-u.width/2-d).attr("y",-u.height/2-d).attr("width",u.width+(s.padding||0)).attr("height",u.height+(s.padding||0)),v.attr("class","divider").attr("x1",-u.width/2-d).attr("x2",u.width/2+d).attr("y1",-u.height/2-d+r.height+d).attr("y2",-u.height/2-d+r.height+d);return aL(s,b),s.intersect=function(e){return _L.rect(s,e)},a}var MI=e(()=>{"use strict";a6(),hh(),r(),LI(),NL(),DL(),HR(),Cu(),UM(),t(),mt(RI,"rectWithTitle")});async function II(e,t){return QM(e,t,{rx:5,ry:5,classes:"",labelPaddingX:+(t?.padding||0),labelPaddingY:+(t?.padding||0)})}var NI=e(()=>{"use strict";JM(),mt(II,"roundedRect")});async function DI(e,t){var{labelStyles:i,nodeStyles:n}=LL(t),{shapeSvg:i,bbox:e,label:r}=(t.labelStyle=i,await rL(e,t,oL(t))),s=t?.padding??0,a=Math.max(e.width+2*(t.padding??0),t?.width??0),o=Math.max(e.height+2*(t.padding??0),t?.height??0),l=-e.width/2-s,s=-e.height/2-s,c=t["cssStyles"],h=zR.svg(i),u=RL(t,{});"handDrawn"!==t.look&&(u.roughness=0,u.fillStyle="solid");let d=[{x:l,y:s},{x:l+a+8,y:s},{x:l+a+8,y:s+o},{x:l-8,y:s+o},{x:l-8,y:s},{x:l,y:s},{x:l,y:s+o}],p=h.polygon(d.map(e=>[e.x,e.y]),u),g=i.insert(()=>p,":first-child");return g.attr("class","basic label-container").attr("style",$_(c)),n&&"handDrawn"!==t.look&&g.selectAll("path").attr("style",n),c&&"handDrawn"!==t.look&&g.selectAll("path").attr("style",n),r.attr("transform",`translate(${-a/2+4+(t.padding??0)-(e.x-(e.left??0))},${-o/2+(t.padding??0)-(e.y-(e.top??0))})`),aL(t,g),t.intersect=function(e){return _L.rect(t,e)},i}var OI=e(()=>{"use strict";r(),NL(),DL(),HR(),sC(),mt(DI,"shadedProcess")});async function PI(e,t){var{labelStyles:i,nodeStyles:n}=LL(t),{shapeSvg:i,bbox:e,label:r}=(t.labelStyle=i,await rL(e,t,oL(t))),s=Math.max(e.width+2*(t.padding??0),t?.width??0),a=Math.max(e.height+2*(t.padding??0),t?.height??0),o=-s/2,l=-a/2,c=t["cssStyles"],h=zR.svg(i),u=RL(t,{});"handDrawn"!==t.look&&(u.roughness=0,u.fillStyle="solid");let d=[{x:o,y:l},{x:o,y:l+a},{x:o+s,y:l+a},{x:o+s,y:l-a/2}],p=tL(d),g=h.path(p,u),f=i.insert(()=>g,":first-child");return f.attr("class","basic label-container"),c&&"handDrawn"!==t.look&&f.selectChildren("path").attr("style",c),n&&"handDrawn"!==t.look&&f.selectChildren("path").attr("style",n),f.attr("transform",`translate(0, ${a/4})`),r.attr("transform",`translate(${-s/2+(t.padding??0)-(e.x-(e.left??0))}, ${-a/4+(t.padding??0)-(e.y-(e.top??0))})`),aL(t,f),t.intersect=function(e){return _L.polygon(t,d,e)},i}var BI=e(()=>{"use strict";r(),NL(),DL(),HR(),mt(PI,"slopedRect")});async function FI(e,t){return QM(e,t,{rx:0,ry:0,classes:"",labelPaddingX:2*(t?.padding||0),labelPaddingY:+(t?.padding||0)})}var jI=e(()=>{"use strict";JM(),mt(FI,"squareRect")});async function zI(e,r){var{labelStyles:t,nodeStyles:i}=LL(r);r.labelStyle=t;let{shapeSvg:s,bbox:n}=await rL(e,r,oL(r)),a=n.height+r.padding,o=n.width+a/4+r.padding,l,c=r["cssStyles"];if("handDrawn"===r.look){let e=zR.svg(s),t=RL(r,{}),i=zM(-o/2,-a/2,o,a,a/2),n=e.path(i,t);(l=s.insert(()=>n,":first-child")).attr("class","basic label-container").attr("style",$_(c))}else(l=s.insert("rect",":first-child")).attr("class","basic label-container").attr("style",i).attr("rx",a/2).attr("ry",a/2).attr("x",-o/2).attr("y",-a/2).attr("width",o).attr("height",a);return aL(r,l),r.intersect=function(e){return _L.rect(r,e)},s}var HI=e(()=>{"use strict";r(),NL(),DL(),HR(),UM(),sC(),mt(zI,"stadium")});async function UI(e,t){return QM(e,t,{rx:5,ry:5,classes:"flowchart-node"})}var qI=e(()=>{"use strict";JM(),mt(UI,"state")});function WI(e,t,{config:{themeVariables:i}}){var{labelStyles:n,nodeStyles:r}=LL(t),n=(t.labelStyle=n,t)["cssStyles"],{lineColor:i,stateBorder:s,nodeBorder:a}=i,e=e.insert("g").attr("class","node default").attr("id",t.domId||t.id),o=zR.svg(e),l=RL(t,{});"handDrawn"!==t.look&&(l.roughness=0,l.fillStyle="solid");let c=o.circle(0,0,14,{...l,stroke:i,strokeWidth:2}),h=s??a,u=o.circle(0,0,5,{...l,fill:h,stroke:h,strokeWidth:2,fillStyle:"solid"}),d=e.insert(()=>c,":first-child");return d.insert(()=>u),n&&d.selectAll("path").attr("style",n),r&&d.selectAll("path").attr("style",r),aL(t,d),t.intersect=function(e){return _L.circle(t,7,e)},e}var VI=e(()=>{"use strict";HR(),NL(),DL(),r(),mt(WI,"stateEnd")});function GI(e,t,{config:{themeVariables:i}}){let n=i["lineColor"],r=e.insert("g").attr("class","node default").attr("id",t.domId||t.id),s;if("handDrawn"===t.look){let e=zR.svg(r).circle(0,0,14,CL(n));(s=r.insert(()=>e)).attr("class","state-start").attr("r",7).attr("width",14).attr("height",14)}else(s=r.insert("circle",":first-child")).attr("class","state-start").attr("r",7).attr("width",14).attr("height",14);return aL(t,s),t.intersect=function(e){return _L.circle(t,7,e)},r}var YI=e(()=>{"use strict";HR(),NL(),DL(),r(),mt(GI,"stateStart")});async function XI(s,a){var{labelStyles:o,nodeStyles:e}=LL(a);a.labelStyle=o;let{shapeSvg:l,bbox:t}=await rL(s,a,oL(a)),i=(a?.padding||0)/2,c=t.width+a.padding,h=t.height+a.padding,u=-t.width/2-i,d=-t.height/2-i,n=[{x:0,y:0},{x:c,y:0},{x:c,y:-h},{x:0,y:-h},{x:0,y:0},{x:-8,y:0},{x:c+8,y:0},{x:c+8,y:-h},{x:-8,y:-h},{x:-8,y:0}];if("handDrawn"===a.look){let e=zR.svg(l),t=RL(a,{}),i=e.rectangle(u-8,d,c+16,h,t),n=e.line(u,d,u,d+h,t),r=e.line(u+c,d,u+c,d+h,t);l.insert(()=>n,":first-child"),l.insert(()=>r,":first-child");o=l.insert(()=>i,":first-child"),s=a["cssStyles"];o.attr("class","basic label-container").attr("style",$_(s)),aL(a,o)}else{s=YR(l,c,h,n);e&&s.attr("style",e),aL(a,s)}return a.intersect=function(e){return _L.polygon(a,n,e)},l}var KI=e(()=>{"use strict";r(),NL(),DL(),HR(),XR(),sC(),mt(XI,"subroutine")});async function ZI(e,t){var{labelStyles:i,nodeStyles:n}=LL(t);t.labelStyle=i;let{shapeSvg:r,bbox:s}=await rL(e,t,oL(t)),a=Math.max(s.width+2*(t.padding??0),t?.width??0),o=Math.max(s.height+2*(t.padding??0),t?.height??0),l=-a/2,c=-o/2,h=.2*o,u=.2*o,d=t["cssStyles"],p=zR.svg(r),g=RL(t,{}),f=[{x:l-h/2,y:c},{x:l+a+h/2,y:c},{x:l+a+h/2,y:c+o},{x:l-h/2,y:c+o}],m=[{x:l+a-h/2,y:c+o},{x:l+a+h/2,y:c+o},{x:l+a+h/2,y:c+o-u}],y=("handDrawn"!==t.look&&(g.roughness=0,g.fillStyle="solid"),tL(f)),b=p.path(y,g),v=tL(m),x=p.path(v,{...g,fillStyle:"solid"}),w=r.insert(()=>x,":first-child");return w.insert(()=>b,":first-child"),w.attr("class","basic label-container"),d&&"handDrawn"!==t.look&&w.selectAll("path").attr("style",d),n&&"handDrawn"!==t.look&&w.selectAll("path").attr("style",n),aL(t,w),t.intersect=function(e){return _L.polygon(t,f,e)},r}var QI=e(()=>{"use strict";r(),DL(),HR(),NL(),mt(ZI,"taggedRect")});async function JI(e,t){var{labelStyles:i,nodeStyles:n}=LL(t),{shapeSvg:i,bbox:e,label:r}=(t.labelStyle=i,await rL(e,t,oL(t))),s=Math.max(e.width+2*(t.padding??0),t?.width??0),a=Math.max(e.height+2*(t.padding??0),t?.height??0),o=a/4,l=.2*s,c=.2*a,h=a+o,u=t["cssStyles"],d=zR.svg(i),p=RL(t,{});"handDrawn"!==t.look&&(p.roughness=0,p.fillStyle="solid");let g=[{x:-s/2-s/2*.1,y:h/2},...iL(-s/2-s/2*.1,h/2,s/2+s/2*.1,h/2,o,.8),{x:s/2+s/2*.1,y:-h/2},{x:-s/2-s/2*.1,y:-h/2}],f=-s/2+s/2*.1,m=-h/2-.4*c,y=[{x:f+s-l,y:1.4*(m+a)},{x:f+s,y:m+a-c},{x:f+s,y:.9*(m+a)},...iL(f+s,1.3*(m+a),f+s-l,1.5*(m+a),.03*-a,.5)],b=tL(g),v=d.path(b,p),x=tL(y),w=d.path(x,{...p,fillStyle:"solid"}),k=i.insert(()=>w,":first-child");return k.insert(()=>v,":first-child"),k.attr("class","basic label-container"),u&&"handDrawn"!==t.look&&k.selectAll("path").attr("style",u),n&&"handDrawn"!==t.look&&k.selectAll("path").attr("style",n),k.attr("transform",`translate(0,${-o/2})`),r.attr("transform",`translate(${-s/2+(t.padding??0)-(e.x-(e.left??0))},${-a/2+(t.padding??0)-o/2-(e.y-(e.top??0))})`),aL(t,k),t.intersect=function(e){return _L.polygon(t,g,e)},i}var eN=e(()=>{"use strict";r(),NL(),HR(),DL(),mt(JI,"taggedWaveEdgedRectangle")});async function tN(e,t){var{labelStyles:i,nodeStyles:n}=LL(t),{shapeSvg:i,bbox:e}=(t.labelStyle=i,await rL(e,t,oL(t))),r=Math.max(e.width+t.padding,t?.width||0),e=Math.max(e.height+t.padding,t?.height||0),s=-r/2,a=-e/2,o=i.insert("rect",":first-child");return o.attr("class","text").attr("style",n).attr("rx",0).attr("ry",0).attr("x",s).attr("y",a).attr("width",r).attr("height",e),aL(t,o),t.intersect=function(e){return _L.rect(t,e)},i}var iN=e(()=>{"use strict";r(),NL(),DL(),mt(tN,"text")});async function nN(e,s){var{labelStyles:t,nodeStyles:i}=LL(s);s.labelStyle=t;let{shapeSvg:a,bbox:n,label:r,halfPadding:o}=await rL(e,s,oL(s)),l="neo"===s.look?2*o:o,c=n.height+l,h=c/2,u=h/(2.5+c/50),d=n.width+u+l,p=s["cssStyles"],g;if("handDrawn"===s.look){let e=zR.svg(a),t=sN(0,0,d,c,u,h),i=aN(0,0,d,c,u,h),n=e.path(t,RL(s,{})),r=e.path(i,RL(s,{fill:"none"}));g=a.insert(()=>r,":first-child"),(g=a.insert(()=>n,":first-child")).attr("class","basic label-container"),p&&g.attr("style",p)}else{t=rN(0,0,d,c,u,h);(g=a.insert("path",":first-child").attr("d",t).attr("class","basic label-container").attr("style",$_(p)).attr("style",i)).attr("class","basic label-container"),p&&g.selectAll("path").attr("style",p),i&&g.selectAll("path").attr("style",i)}return g.attr("label-offset-x",u),g.attr("transform",`translate(${-d/2}, ${c/2} )`),r.attr("transform",`translate(${-n.width/2-u-(n.x-(n.left??0))}, ${-n.height/2-(n.y-(n.top??0))})`),aL(s,g),s.intersect=function(t){var i=_L.rect(s,t),n=i.y-(s.y??0);if(0!=h&&(Math.abs(n)<(s.height??0)/2||Math.abs(n)==(s.height??0)/2&&Math.abs(i.x-(s.x??0))>(s.width??0)/2-u)){let e=u*u*(1-n*n/(h*h));0!=e&&(e=Math.sqrt(Math.abs(e))),e=u-e,0<t.x-(s.x??0)&&(e=-e),i.x+=e}return i},a}var rN,sN,aN,oN=e(()=>{"use strict";r(),DL(),HR(),NL(),sC(),rN=mt((e,t,i,n,r,s)=>`M${e},${t}
|
||
a${r},${s} 0,0,1 0,${-n}
|
||
l${i},0
|
||
a${r},${s} 0,0,1 0,${n}
|
||
M${i},${-n}
|
||
a${r},${s} 0,0,0 0,${n}
|
||
l${-i},0`,"createCylinderPathD"),sN=mt((e,t,i,n,r,s)=>[`M${e},`+t,`M${e+i},`+t,`a${r},${s} 0,0,0 0,`+-n,`l${-i},0`,`a${r},${s} 0,0,0 0,`+n,`l${i},0`].join(" "),"createOuterCylinderPathD"),aN=mt((e,t,i,n,r,s)=>[`M${e+i/2},`+-n/2,`a${r},${s} 0,0,0 0,`+n].join(" "),"createInnerCylinderPathD"),mt(nN,"tiltedCylinder")});async function lN(e,r){var{labelStyles:t,nodeStyles:i}=LL(r);r.labelStyle=t;let{shapeSvg:s,bbox:n}=await rL(e,r,oL(r)),a=n.width+r.padding,o=n.height+r.padding,l=[{x:-3*o/6,y:0},{x:a+3*o/6,y:0},{x:a,y:-o},{x:0,y:-o}],c,h=r["cssStyles"];if("handDrawn"===r.look){let e=zR.svg(s),t=RL(r,{}),i=tL(l),n=e.path(i,t);c=s.insert(()=>n,":first-child").attr("transform",`translate(${-a/2}, ${o/2})`),h&&c.attr("style",h)}else c=YR(s,a,o,l);return i&&c.attr("style",i),r.width=a,r.height=o,aL(r,c),r.intersect=function(e){return _L.polygon(r,l,e)},s}var cN=e(()=>{"use strict";r(),NL(),DL(),HR(),XR(),mt(lN,"trapezoid")});async function hN(e,t){var{labelStyles:i,nodeStyles:n}=LL(t),{shapeSvg:i,bbox:e}=(t.labelStyle=i,await rL(e,t,oL(t))),r=Math.max(60,e.width+2*(t.padding??0),t?.width??0),e=Math.max(20,e.height+2*(t.padding??0),t?.height??0),s=t["cssStyles"],a=zR.svg(i),o=RL(t,{});"handDrawn"!==t.look&&(o.roughness=0,o.fillStyle="solid");let l=[{x:-r/2*.8,y:-e/2},{x:r/2*.8,y:-e/2},{x:r/2,y:-e/2*.6},{x:r/2,y:e/2},{x:-r/2,y:e/2},{x:-r/2,y:-e/2*.6}],c=tL(l),h=a.path(c,o),u=i.insert(()=>h,":first-child");return u.attr("class","basic label-container"),s&&"handDrawn"!==t.look&&u.selectChildren("path").attr("style",s),n&&"handDrawn"!==t.look&&u.selectChildren("path").attr("style",n),aL(t,u),t.intersect=function(e){return _L.polygon(t,l,e)},i}var uN=e(()=>{"use strict";r(),NL(),DL(),HR(),mt(hN,"trapezoidalPentagon")});async function dN(e,t){var{labelStyles:i,nodeStyles:n}=LL(t);t.labelStyle=i;let{shapeSvg:r,bbox:s,label:a}=await rL(e,t,oL(t)),o=qc(N().flowchart?.htmlLabels),l=s.width+(t.padding??0),c=l+s.height,h=l+s.height,u=[{x:0,y:0},{x:h,y:0},{x:h/2,y:-c}],d=t["cssStyles"],p=zR.svg(r),g=RL(t,{}),f=("handDrawn"!==t.look&&(g.roughness=0,g.fillStyle="solid"),tL(u)),m=p.path(f,g),y=r.insert(()=>m,":first-child").attr("transform",`translate(${-c/2}, ${c/2})`);return d&&"handDrawn"!==t.look&&y.selectChildren("path").attr("style",d),n&&"handDrawn"!==t.look&&y.selectChildren("path").attr("style",n),t.width=l,t.height=c,aL(t,y),a.attr("transform",`translate(${-s.width/2-(s.x-(s.left??0))}, ${c/2-(s.height+(t.padding??0)/(o?2:1)-(s.y-(s.top??0)))})`),t.intersect=function(e){return I.info("Triangle intersect",t,u,e),_L.polygon(t,u,e)},r}var pN=e(()=>{"use strict";t(),r(),NL(),DL(),HR(),r(),hh(),Cu(),mt(dN,"triangle")});async function gN(e,t){var{labelStyles:i,nodeStyles:n}=LL(t),{shapeSvg:i,bbox:e,label:r}=(t.labelStyle=i,await rL(e,t,oL(t))),s=Math.max(e.width+2*(t.padding??0),t?.width??0),a=Math.max(e.height+2*(t.padding??0),t?.height??0),o=a/8,l=a+o,c=t["cssStyles"],h=70-s,h=0<h?h/2:0,u=zR.svg(i),d=RL(t,{});"handDrawn"!==t.look&&(d.roughness=0,d.fillStyle="solid");let p=[{x:-s/2-h,y:l/2},...iL(-s/2-h,l/2,s/2+h,l/2,o,.8),{x:s/2+h,y:-l/2},{x:-s/2-h,y:-l/2}],g=tL(p),f=u.path(g,d),m=i.insert(()=>f,":first-child");return m.attr("class","basic label-container"),c&&"handDrawn"!==t.look&&m.selectAll("path").attr("style",c),n&&"handDrawn"!==t.look&&m.selectAll("path").attr("style",n),m.attr("transform",`translate(0,${-o/2})`),r.attr("transform",`translate(${-s/2+(t.padding??0)-(e.x-(e.left??0))},${-a/2+(t.padding??0)-o-(e.y-(e.top??0))})`),aL(t,m),t.intersect=function(e){return _L.polygon(t,p,e)},i}var fN=e(()=>{"use strict";r(),NL(),HR(),DL(),mt(gN,"waveEdgedRectangle")});async function mN(e,t){var{labelStyles:i,nodeStyles:n}=LL(t);t.labelStyle=i;let{shapeSvg:r,bbox:s}=await rL(e,t,oL(t)),a=Math.max(s.width+2*(t.padding??0),t?.width??0),o=Math.max(s.height+2*(t.padding??0),t?.height??0),l=a/o,c=a,h=o;c>h*l?h=c/l:c=h*l,c=Math.max(c,100),h=Math.max(h,50);var i=Math.min(.2*h,h/4),e=h+2*i,u=t["cssStyles"],d=zR.svg(r),p=RL(t,{});"handDrawn"!==t.look&&(p.roughness=0,p.fillStyle="solid");let g=[{x:-c/2,y:e/2},...iL(-c/2,e/2,c/2,e/2,i,1),{x:c/2,y:-e/2},...iL(c/2,-e/2,-c/2,-e/2,i,-1)],f=tL(g),m=d.path(f,p),y=r.insert(()=>m,":first-child");return y.attr("class","basic label-container"),u&&"handDrawn"!==t.look&&y.selectAll("path").attr("style",u),n&&"handDrawn"!==t.look&&y.selectAll("path").attr("style",n),aL(t,y),t.intersect=function(e){return _L.polygon(t,g,e)},r}var yN=e(()=>{"use strict";r(),NL(),DL(),HR(),mt(mN,"waveRectangle")});async function bN(e,t){var{labelStyles:i,nodeStyles:n}=LL(t);t.labelStyle=i;let{shapeSvg:r,bbox:s,label:a}=await rL(e,t,oL(t)),o=Math.max(s.width+2*(t.padding??0),t?.width??0),l=Math.max(s.height+2*(t.padding??0),t?.height??0),c=-o/2,h=-l/2,u=t["cssStyles"],d=zR.svg(r),p=RL(t,{}),g=[{x:c-5,y:h-5},{x:c-5,y:h+l},{x:c+o,y:h+l},{x:c+o,y:h-5}],f=`M${c-5},${h-5} L${c+o},${h-5} L${c+o},${h+l} L${c-5},${h+l} L${c-5},${h-5}
|
||
M${c-5},${h} L${c+o},${h}
|
||
M${c},${h-5} L${c},`+(h+l),m=("handDrawn"!==t.look&&(p.roughness=0,p.fillStyle="solid"),d.path(f,p)),y=r.insert(()=>m,":first-child");return y.attr("transform","translate(2.5, 2.5)"),y.attr("class","basic label-container"),u&&"handDrawn"!==t.look&&y.selectAll("path").attr("style",u),n&&"handDrawn"!==t.look&&y.selectAll("path").attr("style",n),a.attr("transform",`translate(${-s.width/2+2.5-(s.x-(s.left??0))}, ${-s.height/2+2.5-(s.y-(s.top??0))})`),aL(t,y),t.intersect=function(e){return _L.polygon(t,g,e)},r}var vN=e(()=>{"use strict";r(),DL(),HR(),NL(),mt(bN,"windowPane")});async function xN(e,t){var i,n=t,r=(n.alias&&(t.label=n.alias),"handDrawn"===t.look&&(E=Ii()["themeVariables"],E=E["background"],await xN(e,{...t,id:t.id+"-background",look:"default",cssStyles:["stroke: none","fill: "+E]})),Ii());t.useHtmlLabels=r.htmlLabels;let o=r.er?.diagramPadding??10,l=r.er?.entityPadding??6,s=t["cssStyles"],{labelStyles:a,nodeStyles:c}=LL(t);if(0===n.attributes.length&&t.label)return E={rx:0,ry:0,labelPaddingX:o,labelPaddingY:1.5*o,classes:""},C_(t.label,r)+2*E.labelPaddingX<r.er.minEntityWidth&&(t.width=r.er.minEntityWidth),E=await QM(e,t,E),qc(r.htmlLabels)||(S=(A=E.select("text")).node()?.getBBox(),A.attr("transform",`translate(${-S.width/2}, 0)`)),E;r.htmlLabels||(o*=1.25,l*=1.25);let h=oL(t),u=(h=h||"node default",e.insert("g").attr("class",h).attr("id",t.domId||t.id)),d=await wN(u,t.label??"",r,0,0,["name"],a),p=(d.height+=l,0),g=[],f=[],m=0,y=0,b=0,v=0,x=!0,w=!0;for(i of n.attributes){var k=await wN(u,i.type,r,0,p,["attribute-type"],a),O=(m=Math.max(m,k.width+o),await wN(u,i.name,r,0,p,["attribute-name"],a)),P=(y=Math.max(y,O.width+o),await wN(u,i.keys.join(),r,0,p,["attribute-keys"],a)),B=(b=Math.max(b,P.width+o),await wN(u,i.comment,r,0,p,["attribute-comment"],a)),k=(v=Math.max(v,B.width+o),Math.max(k.height,O.height,P.height,B.height)+l);f.push({yOffset:p,rowHeight:k}),p+=k}let T=4;b<=o&&(x=!1,b=0,T--),v<=o&&(w=!1,v=0,T--);var S,F,_,C,A=u.node().getBBox(),E=(0<d.width+2*o-(m+y+b+v)&&(S=d.width+2*o-(m+y+b+v),m+=S/T,y+=S/T,0<b&&(b+=S/T),0<v)&&(v+=S/T),m+y+b+v),$=zR.svg(u),L=RL(t,{});"handDrawn"!==t.look&&(L.roughness=0,L.fillStyle="solid");let j=0,R=(0<f.length&&(j=f.reduce((e,t)=>e+(t?.rowHeight??0),0)),Math.max(A.width+2*o,t?.width||0,E)),M=Math.max((j??0)+d.height,t?.height||0),I=-R/2,N=-M/2,z=(u.selectAll("g:not(:first-child)").each((e,t,i)=>{let n=G(i[t]),r=n.attr("transform"),s=0,a=0;r&&(i=RegExp(/translate\(([^,]+),([^)]+)\)/).exec(r))&&(s=parseFloat(i[1]),a=parseFloat(i[2]),n.attr("class").includes("attribute-name")?s+=m:n.attr("class").includes("attribute-keys")?s+=m+y:n.attr("class").includes("attribute-comment")&&(s+=m+y+b)),n.attr("transform",`translate(${I+o/2+s}, ${a+N+d.height+l/2})`)}),u.select(".name").attr("transform","translate("+-d.width/2+", "+(N+l/2)+")"),$.rectangle(I,N,R,M,L)),H=u.insert(()=>z,":first-child").attr("style",s.join("")),U=Ii()["themeVariables"],{rowEven:q,rowOdd:W,nodeBorder:V}=U;g.push(0);for([F,_]of f.entries()){let e=(F+1)%2==0&&0!==_.yOffset,t=$.rectangle(I,d.height+N+_?.yOffset,R,_?.rowHeight,{...L,fill:e?q:W,stroke:V});u.insert(()=>t,"g.label").attr("style",s.join("")).attr("class","row-rect-"+(e?"even":"odd"))}let D=$.line(I,d.height+N,R+I,d.height+N,L);u.insert(()=>D).attr("class","divider"),D=$.line(m+I,d.height+N,m+I,M+N,L),u.insert(()=>D).attr("class","divider"),x&&(D=$.line(m+y+I,d.height+N,m+y+I,M+N,L),u.insert(()=>D).attr("class","divider")),w&&(D=$.line(m+y+b+I,d.height+N,m+y+b+I,M+N,L),u.insert(()=>D).attr("class","divider"));for(C of g)D=$.line(I,d.height+N+C,R+I,d.height+N+C,L),u.insert(()=>D).attr("class","divider");return aL(t,H),c&&"handDrawn"!==t.look&&(e=c.split(";")?.filter(e=>e.includes("stroke"))?.map(e=>""+e).join("; "),u.selectAll("path").attr("style",e??""),u.selectAll(".row-rect-even path").attr("style",c)),t.intersect=function(e){return _L.rect(t,e)},u}async function wN(e,t,i,n=0,r=0,s=[],a=""){e=e.insert("g").attr("class","label "+s.join(" ")).attr("transform",`translate(${n}, ${r})`).attr("style",a),t!==Gc(t)&&(t=(t=Gc(t)).replaceAll("<","<").replaceAll(">",">")),s=e.node().appendChild(await J$(e,t,{width:C_(t,i)+100,style:a,useHtmlLabels:i.htmlLabels},i));if(t.includes("<")||t.includes(">")){let e=s.children[0];for(e.textContent=e.textContent.replaceAll("<","<").replaceAll(">",">");e.childNodes[0];)(e=e.childNodes[0]).textContent=e.textContent.replaceAll("<","<").replaceAll(">",">")}let o=s.getBBox();return qc(i.htmlLabels)&&((n=s.children[0]).style.textAlign="start",r=G(s),o=n.getBoundingClientRect(),r.attr("width",o.width),r.attr("height",o.height)),o}var kN=e(()=>{"use strict";r(),NL(),DL(),HR(),JM(),Mn(),eL(),hh(),a6(),sC(),mt(xN,"erBox"),mt(wN,"addText")});async function TN(e,t,i,n,r=i.class.padding??12){let s=n?0:3,a=e.insert("g").attr("class",oL(t)).attr("id",t.domId||t.id),o=null,l=null,c=null,h=null,u=0,d,p=0;o=a.insert("g").attr("class","annotation-group text"),0<t.annotations.length&&(n=t.annotations[0],await SN(o,{text:`«${n}»`},0),u=o.node().getBBox().height),await SN(l=a.insert("g").attr("class","label-group text"),t,0,["font-weight: bolder"]);var g,f,e=l.node().getBBox();d=e.height,c=a.insert("g").attr("class","members-group text");let m=0;for(g of t.members){var y=await SN(c,g,m,[g.parseClassifier()]);m+=y+s}(p=c.node().getBBox().height)<=0&&(p=r/2),h=a.insert("g").attr("class","methods-group text");let b=0;for(f of t.methods){var v=await SN(h,f,b,[f.parseClassifier()]);b+=v+s}a.node().getBBox();return null!==o&&(n=o.node().getBBox(),o.attr("transform",`translate(${-n.width/2})`)),l.attr("transform",`translate(${-e.width/2}, ${u})`),a.node().getBBox(),c.attr("transform",`translate(0, ${u+d+2*r})`),a.node().getBBox(),h.attr("transform",`translate(0, ${u+d+(p?p+4*r:2*r)})`),t=a.node().getBBox(),{shapeSvg:a,bbox:t}}async function SN(e,t,i,n=[]){let r=e.insert("g").attr("class","label").attr("style",n.join("; ")),s=Ii(),a="useHtmlLabels"in t?t.useHtmlLabels:qc(s.htmlLabels)??!0,o="",l=(o="text"in t?t.text:t.label,!a&&o.startsWith("\\")&&(o=o.substring(1)),Jc(o)&&(a=!0),await J$(r,$h(nC(o)),{width:C_(o,s)+50,classes:"markdown-node-label",useHtmlLabels:a},s)),c,h=1;if(a){var e=l.children[0],t=G(l),u=(h=e.innerHTML.split("<br>").length,e.innerHTML.includes("</math>")&&(h+=e.innerHTML.split("<mrow>").length-1),e.getElementsByTagName("img"));if(u){let n=""===o.replace(/<img[^>]*>/g,"").trim();await Promise.all([...u].map(i=>new Promise(t=>{function e(){var e;i.style.display="flex",i.style.flexDirection="column",n?(e=s.fontSize?.toString()??window.getComputedStyle(document.body).fontSize,e=5*parseInt(e,10)+"px",i.style.minWidth=e,i.style.maxWidth=e):i.style.width="100%",t(i)}mt(e,"setupImage"),setTimeout(()=>{i.complete&&e()}),i.addEventListener("error",e),i.addEventListener("load",e)})))}c=e.getBoundingClientRect(),t.attr("width",c.width),t.attr("height",c.height)}else{n.includes("font-weight: bolder")&&G(l).selectAll("tspan").attr("font-weight",""),h=l.children.length;u=l.children[0];""!==l.textContent&&!l.textContent.includes(">")||(u.textContent=o[0]+o.substring(1).replaceAll(">",">").replaceAll("<","<").trim()," "!==o[1])||(u.textContent=u.textContent[0]+" "+u.textContent.substring(1)),"undefined"===u.textContent&&(u.textContent=""),c=l.getBBox()}return r.attr("transform","translate(0,"+(-c.height/(2*h)+i)+")"),c.height}var _N=e(()=>{"use strict";a6(),Mn(),r(),sC(),Cu(),eL(),hh(),mt(TN,"textHelper"),mt(SN,"addText")});async function CN(t,i){let e=N(),l=e.class.padding??12,n=l,c=i.useHtmlLabels??qc(e.htmlLabels)??!0,h=i,{shapeSvg:u,bbox:r}=(h.annotations=h.annotations??[],h.members=h.members??[],h.methods=h.methods??[],await TN(t,i,e,c,n)),{labelStyles:s,nodeStyles:a}=LL(i);i.labelStyle=s,i.cssStyles=h.styles||"";t=h.styles?.join(";")||a||"";i.cssStyles||(i.cssStyles=t.replaceAll("!important","").split(";"));let d=0===h.members.length&&0===h.methods.length&&!e.class?.hideEmptyMembersBox,o=zR.svg(u),p=RL(i,{}),g=("handDrawn"!==i.look&&(p.roughness=0,p.fillStyle="solid"),r.width),f=r.height,m=(0===h.members.length&&0===h.methods.length?f+=n:0<h.members.length&&0===h.methods.length&&(f+=2*n),-g/2),y=-f/2,b=o.rectangle(m-l,y-l-(d?l:0===h.members.length&&0===h.methods.length?-l/2:0),g+2*l,f+2*l+(d?2*l:0===h.members.length&&0===h.methods.length?-l:0),p),v=u.insert(()=>b,":first-child");v.attr("class","basic label-container");var x=v.node().getBBox(),w=(u.selectAll(".text").each((e,t,i)=>{let n=G(i[t]),r=n.attr("transform"),s=0;let a=(s=r&&(i=RegExp(/translate\(([^,]+),([^)]+)\)/).exec(r))?parseFloat(i[2]):s)+y+l-(d?l:0===h.members.length&&0===h.methods.length?-l/2:0),o=(c||(a-=4),m);(n.attr("class").includes("label-group")||n.attr("class").includes("annotation-group"))&&(o=-n.node()?.getBBox().width/2||0,u.selectAll("text").each(function(e,t,i){"middle"===window.getComputedStyle(i[t]).textAnchor&&(o=0)})),n.attr("transform",`translate(${o}, ${a})`)}),u.select(".annotation-group").node().getBBox().height-(d?l/2:0)||0),k=u.select(".label-group").node().getBBox().height-(d?l/2:0)||0,T=u.select(".members-group").node().getBBox().height-(d?l/2:0)||0;if(0<h.members.length||0<h.methods.length||d){let e=o.line(x.x,w+k+y+l,x.x+x.width,w+k+y+l,p);u.insert(()=>e).attr("class","divider").attr("style",t)}if(d||0<h.members.length||0<h.methods.length){let e=o.line(x.x,w+k+T+y+2*n+l,x.x+x.width,w+k+T+y+l+2*n,p);u.insert(()=>e).attr("class","divider").attr("style",t)}return"handDrawn"!==h.look&&u.selectAll("path").attr("style",t),v.select(":nth-child(2)").attr("style",t),u.selectAll(".divider").select("path").attr("style",t),i.labelStyle?u.selectAll("span").attr("style",i.labelStyle):u.selectAll("span").attr("style",t),c||((w=(x=RegExp(/color\s*:\s*([^;]*)/)).exec(t))?(k=w[0].replace("color","fill"),u.selectAll("tspan").attr("style",k)):s&&(T=x.exec(s))&&(t=T[0].replace("color","fill"),u.selectAll("tspan").attr("style",t))),aL(i,v),i.intersect=function(e){return _L.rect(i,e)},u}var AN=e(()=>{"use strict";r(),Cu(),a6(),HR(),DL(),NL(),_N(),hh(),mt(CN,"classBox")});async function EN(e,t){var{labelStyles:i,nodeStyles:n}=LL(t);t.labelStyle=i;let r=t,s=t,a="verifyMethod"in t,o=oL(t),l=e.insert("g").attr("class",o).attr("id",t.domId??t.id),c,h=c=a?await $N(l,`<<${r.type}>>`,0,t.labelStyle):await $N(l,"<<Element>>",0,t.labelStyle),u=await $N(l,r.name,h,t.labelStyle+"; font-weight: bold;"),d=(h+=u+20,a?(i=await $N(l,r.requirementId?"id: "+r.requirementId:"",h,t.labelStyle),h+=i,e=await $N(l,r.text?"Text: "+r.text:"",h,t.labelStyle),h+=e,i=await $N(l,r.risk?"Risk: "+r.risk:"",h,t.labelStyle),h+=i,await $N(l,r.verifyMethod?"Verification: "+r.verifyMethod:"",h,t.labelStyle)):(e=await $N(l,s.type?"Type: "+s.type:"",h,t.labelStyle),h+=e,await $N(l,s.docRef?"Doc Ref: "+s.docRef:"",h,t.labelStyle)),(l.node()?.getBBox().width??200)+20),p=(l.node()?.getBBox().height??200)+20,g=-d/2,f=-p/2,m=zR.svg(l),y=RL(t,{}),b=("handDrawn"!==t.look&&(y.roughness=0,y.fillStyle="solid"),m.rectangle(g,f,d,p,y)),v=l.insert(()=>b,":first-child");if(v.attr("class","basic label-container").attr("style",n),l.selectAll(".label").each((e,t,i)=>{let n=G(i[t]),r=n.attr("transform"),s=0,a=0;r&&(i=RegExp(/translate\(([^,]+),([^)]+)\)/).exec(r))&&(s=parseFloat(i[1]),a=parseFloat(i[2]));let o=a-p/2,l=10+g;0!==t&&1!==t||(l=s),n.attr("transform",`translate(${l}, ${20+o})`)}),h>c+u+20){let e=m.line(g,f+c+u+20,g+d,f+c+u+20,y);l.insert(()=>e).attr("style",n)}return aL(t,v),t.intersect=function(e){return _L.rect(t,e)},l}async function $N(e,t,i,n=""){if(""===t)return 0;let r=e.insert("g").attr("class","label").attr("style",n),s=N(),a=s.htmlLabels??!0,o=await J$(r,$h(nC(t)),{width:C_(t,s)+50,classes:"markdown-node-label",useHtmlLabels:a,style:n},s),l;if(a){e=o.children[0],t=G(o);l=e.getBoundingClientRect(),t.attr("width",l.width),t.attr("height",l.height)}else{var c;for(c of o.children[0].children)c.textContent=c.textContent.replaceAll(">",">").replaceAll("<","<"),n&&c.setAttribute("style",n);(l=o.getBBox()).height+=6}return r.attr("transform",`translate(${-l.width/2},${-l.height/2+i})`),l.height}var LN=e(()=>{"use strict";r(),NL(),DL(),HR(),sC(),Cu(),eL(),a6(),mt(EN,"requirementBox"),mt($N,"addText")});async function RN(e,n,{config:t}){var{labelStyles:r,nodeStyles:i}=LL(n),r=(n.labelStyle=r||"",n.width);n.width=(n.width??200)-10;let{shapeSvg:s,bbox:a,label:o}=await rL(e,n,oL(n)),l=n.padding||10,c,h,u=("ticket"in n&&n.ticket&&t?.kanban?.ticketBaseUrl&&(c=t?.kanban?.ticketBaseUrl.replace("#TICKET#",n.ticket),h=s.insert("svg:a",":first-child").attr("class","kanban-ticket-link").attr("xlink:href",c).attr("target","_blank")),{useHtmlLabels:n.useHtmlLabels,labelStyle:n.labelStyle||"",width:n.width,img:n.img,padding:n.padding||8,centerLabel:!1}),d,p;h?{label:d,bbox:p}=await sL(h,"ticket"in n&&n.ticket||"",u):{label:d,bbox:p}=await sL(s,"ticket"in n&&n.ticket||"",u);var{label:e,bbox:t}=await sL(s,"assigned"in n&&n.assigned||"",u),r=(n.width=r,n?.width||0),g=Math.max(p.height,t.height)/2,f=Math.max(a.height+20,n?.height||0)+g,m=-r/2,y=-f/2;o.attr("transform","translate("+(l-r/2)+", "+(-g-a.height/2)+")"),d.attr("transform","translate("+(l-r/2)+", "+(-g+a.height/2)+")"),e.attr("transform","translate("+(l+r/2-t.width-20)+", "+(-g+a.height/2)+")");let b,{rx:v,ry:x}=n,w=n["cssStyles"];if("handDrawn"===n.look){let e=zR.svg(s),t=RL(n,{}),i=v||x?e.path(zM(m,y,r,f,v||0),t):e.rectangle(m,y,r,f,t);(b=s.insert(()=>i,":first-child")).attr("class","basic label-container").attr("style",w||null)}else{(b=s.insert("rect",":first-child")).attr("class","basic label-container __APA__").attr("style",i).attr("rx",v??5).attr("ry",x??5).attr("x",m).attr("y",y).attr("width",r).attr("height",f);e="priority"in n&&n.priority;e&&(t=s.append("line"),g=2+m,i=y+Math.floor((v??0)/2),r=y+f-Math.floor((v??0)/2),t.attr("x1",g).attr("y1",i).attr("x2",g).attr("y2",r).attr("stroke-width","4").attr("stroke",MN(e)))}return aL(n,b),n.height=f,n.intersect=function(e){return _L.rect(n,e)},s}var MN,IN=e(()=>{"use strict";r(),NL(),UM(),DL(),HR(),MN=mt(e=>{switch(e){case"Very High":return"red";case"High":return"orange";case"Medium":return null;case"Low":return"blue";case"Very Low":return"lightblue"}},"colorFromPriority"),mt(RN,"kanbanItem")});function NN(e){return e in PN}var DN,ON,PN,BN,FN,jN,zN,HN,UN,qN,WN,VN,GN,YN,XN,KN=e(()=>{"use strict";qR(),GR(),ZR(),JR(),tM(),rM(),oM(),hM(),pM(),fM(),xM(),kM(),SM(),CM(),EM(),LM(),MM(),DM(),PM(),FM(),HM(),WM(),GM(),XM(),ZM(),tI(),nI(),sI(),oI(),dI(),gI(),mI(),bI(),xI(),TI(),_I(),MI(),NI(),OI(),BI(),jI(),HI(),qI(),VI(),YI(),KI(),QI(),eN(),iN(),oN(),cN(),uN(),pN(),fN(),yN(),vN(),kN(),AN(),LN(),IN(),DN=[{semanticName:"Process",name:"Rectangle",shortName:"rect",description:"Standard process shape",aliases:["proc","process","rectangle"],internalAliases:["squareRect"],handler:FI},{semanticName:"Event",name:"Rounded Rectangle",shortName:"rounded",description:"Represents an event",aliases:["event"],internalAliases:["roundedRect"],handler:II},{semanticName:"Terminal Point",name:"Stadium",shortName:"stadium",description:"Terminal point",aliases:["terminal","pill"],handler:zI},{semanticName:"Subprocess",name:"Framed Rectangle",shortName:"fr-rect",description:"Subprocess",aliases:["subprocess","subproc","framed-rectangle","subroutine"],handler:XI},{semanticName:"Database",name:"Cylinder",shortName:"cyl",description:"Database storage",aliases:["db","database","cylinder"],handler:mM},{semanticName:"Start",name:"Circle",shortName:"circle",description:"Starting point",aliases:["circ"],handler:eM},{semanticName:"Decision",name:"Diamond",shortName:"diam",description:"Decision-making step",aliases:["decision","diamond","question"],handler:wI},{semanticName:"Prepare Conditional",name:"Hexagon",shortName:"hex",description:"Preparation or condition step",aliases:["hexagon","prepare"],handler:IM},{semanticName:"Data Input/Output",name:"Lean Right",shortName:"lean-r",description:"Represents input or output",aliases:["lean-right","in-out"],internalAliases:["lean_right"],handler:rI},{semanticName:"Data Input/Output",name:"Lean Left",shortName:"lean-l",description:"Represents output or input",aliases:["lean-left","out-in"],internalAliases:["lean_left"],handler:iI},{semanticName:"Priority Action",name:"Trapezoid Base Bottom",shortName:"trap-b",description:"Priority action",aliases:["priority","trapezoid-bottom","trapezoid"],handler:lN},{semanticName:"Manual Operation",name:"Trapezoid Base Top",shortName:"trap-t",description:"Represents a manual task",aliases:["manual","trapezoid-top","inv-trapezoid"],internalAliases:["inv_trapezoid"],handler:KM},{semanticName:"Stop",name:"Double Circle",shortName:"dbl-circ",description:"Represents a stop point",aliases:["double-circle"],internalAliases:["doublecircle"],handler:TM},{semanticName:"Text Block",name:"Text Block",shortName:"text",description:"Text block",handler:tN},{semanticName:"Card",name:"Notched Rectangle",shortName:"notch-rect",description:"Represents a card",aliases:["card","notched-rectangle"],handler:KR},{semanticName:"Lined/Shaded Process",name:"Lined Rectangle",shortName:"lin-rect",description:"Lined process shape",aliases:["lined-rectangle","lined-process","lin-proc","shaded-process"],handler:DI},{semanticName:"Start",name:"Small Circle",shortName:"sm-circ",description:"Small starting point",aliases:["start","small-circle"],internalAliases:["stateStart"],handler:GI},{semanticName:"Stop",name:"Framed Circle",shortName:"fr-circ",description:"Stop point",aliases:["stop","framed-circle"],internalAliases:["stateEnd"],handler:WI},{semanticName:"Fork/Join",name:"Filled Rectangle",shortName:"fork",description:"Fork or join in process flow",aliases:["join"],internalAliases:["forkJoin"],handler:$M},{semanticName:"Collate",name:"Hourglass",shortName:"hourglass",description:"Represents a collate operation",aliases:["hourglass","collate"],handler:OM},{semanticName:"Comment",name:"Curly Brace",shortName:"brace",description:"Adds a comment",aliases:["comment","brace-l"],handler:aM},{semanticName:"Comment Right",name:"Curly Brace",shortName:"brace-r",description:"Adds a comment",handler:cM},{semanticName:"Comment with braces on both sides",name:"Curly Braces",shortName:"braces",description:"Adds a comment",handler:dM},{semanticName:"Com Link",name:"Lightning Bolt",shortName:"bolt",description:"Communication link",aliases:["com-link","lightning-bolt"],handler:aI},{semanticName:"Document",name:"Document",shortName:"doc",description:"Represents a document",aliases:["doc","document"],handler:gN},{semanticName:"Delay",name:"Half-Rounded Rectangle",shortName:"delay",description:"Represents a delay",aliases:["half-rounded-rectangle"],handler:RM},{semanticName:"Direct Access Storage",name:"Horizontal Cylinder",shortName:"h-cyl",description:"Direct access storage",aliases:["das","horizontal-cylinder"],handler:nN},{semanticName:"Disk Storage",name:"Lined Cylinder",shortName:"lin-cyl",description:"Disk storage",aliases:["disk","lined-cylinder"],handler:lI},{semanticName:"Display",name:"Curved Trapezoid",shortName:"curv-trap",description:"Represents a display",aliases:["curved-trapezoid","display"],handler:gM},{semanticName:"Divided Process",name:"Divided Rectangle",shortName:"div-rect",description:"Divided process shape",aliases:["div-proc","divided-rectangle","divided-process"],handler:wM},{semanticName:"Extract",name:"Triangle",shortName:"tri",description:"Extraction process",aliases:["extract","triangle"],handler:dN},{semanticName:"Internal Storage",name:"Window Pane",shortName:"win-pane",description:"Internal storage",aliases:["internal-storage","window-pane"],handler:bN},{semanticName:"Junction",name:"Filled Circle",shortName:"f-circ",description:"Junction point",aliases:["junction","filled-circle"],handler:_M},{semanticName:"Loop Limit",name:"Trapezoidal Pentagon",shortName:"notch-pent",description:"Loop limit step",aliases:["loop-limit","notched-pentagon"],handler:hN},{semanticName:"Manual File",name:"Flipped Triangle",shortName:"flip-tri",description:"Manual file operation",aliases:["manual-file","flipped-triangle"],handler:AM},{semanticName:"Manual Input",name:"Sloped Rectangle",shortName:"sl-rect",description:"Manual input step",aliases:["manual-input","sloped-rectangle"],handler:PI},{semanticName:"Multi-Document",name:"Stacked Document",shortName:"docs",description:"Multiple documents",aliases:["documents","st-doc","stacked-document"],handler:yI},{semanticName:"Multi-Process",name:"Stacked Rectangle",shortName:"st-rect",description:"Multiple processes",aliases:["procs","processes","stacked-rectangle"],handler:fI},{semanticName:"Stored Data",name:"Bow Tie Rectangle",shortName:"bow-rect",description:"Stored data",aliases:["stored-data","bow-tie-rectangle"],handler:VR},{semanticName:"Summary",name:"Crossed Circle",shortName:"cross-circ",description:"Summary",aliases:["summary","crossed-circle"],handler:nM},{semanticName:"Tagged Document",name:"Tagged Document",shortName:"tag-doc",description:"Tagged document",aliases:["tag-doc","tagged-document"],handler:JI},{semanticName:"Tagged Process",name:"Tagged Rectangle",shortName:"tag-rect",description:"Tagged process",aliases:["tagged-rectangle","tag-proc","tagged-process"],handler:ZI},{semanticName:"Paper Tape",name:"Flag",shortName:"flag",description:"Paper tape",aliases:["paper-tape"],handler:mN},{semanticName:"Odd",name:"Odd",shortName:"odd",description:"Odd shape",internalAliases:["rect_left_inv_arrow"],handler:SI},{semanticName:"Lined Document",name:"Lined Document",shortName:"lin-doc",description:"Lined document",aliases:["lined-document"],handler:pI}],ON=mt(()=>{var e=[...Object.entries({state:UI,choice:QR,note:vI,rectWithTitle:RI,labelRect:eI,iconSquare:VM,iconCircle:jM,icon:BM,iconRounded:qM,imageSquare:YM,anchor:UR,kanbanItem:RN,classBox:CN,erBox:xN,requirementBox:EN}),...DN.flatMap(t=>[t.shortName,..."aliases"in t?t.aliases:[],..."internalAliases"in t?t.internalAliases:[]].map(e=>[e,t.handler]))];return Object.fromEntries(e)},"generateShapeMap"),PN=ON(),mt(NN,"isValidShape")}),ZN=e(()=>{"use strict";a6(),jE(),Cu(),t(),KN(),sC(),hh(),_u(),BN=class{constructor(){this.vertexCounter=0,this.config=N(),this.vertices=new Map,this.edges=[],this.classes=new Map,this.subGraphs=[],this.subGraphLookup=new Map,this.tooltips=new Map,this.subCount=0,this.firstGraphFlag=!0,this.secCount=-1,this.posCrossRef=[],this.funs=[],this.setAccTitle=vh,this.setAccDescription=wh,this.setDiagramTitle=Th,this.getAccTitle=xh,this.getAccDescription=kh,this.getDiagramTitle=Sh,this.funs.push(this.setupToolTips.bind(this)),this.addVertex=this.addVertex.bind(this),this.firstGraph=this.firstGraph.bind(this),this.setDirection=this.setDirection.bind(this),this.addSubGraph=this.addSubGraph.bind(this),this.addLink=this.addLink.bind(this),this.setLink=this.setLink.bind(this),this.updateLink=this.updateLink.bind(this),this.addClass=this.addClass.bind(this),this.setClass=this.setClass.bind(this),this.destructLink=this.destructLink.bind(this),this.setClickEvent=this.setClickEvent.bind(this),this.setTooltip=this.setTooltip.bind(this),this.updateLinkInterpolate=this.updateLinkInterpolate.bind(this),this.setClickFun=this.setClickFun.bind(this),this.bindFunctions=this.bindFunctions.bind(this),this.lex={firstGraph:this.firstGraph.bind(this)},this.clear(),this.setGen("gen-2")}static{mt(this,"FlowDB")}sanitizeText(e){return $.sanitizeText(e,this.config)}lookUpDomId(e){for(var t of this.vertices.values())if(t.id===e)return t.domId;return e}addVertex(n,r,s,a,o,l,c={},t){if(n&&0!==n.trim().length){let i;if(void 0!==t){let e;e=t.includes(`
|
||
`)?t+`
|
||
`:`{
|
||
`+t+`
|
||
}`,i=FE(e,{schema:BE})}var e,t=this.edges.find(e=>e.id===n);if(t)void 0!==(e=i)?.animate&&(t.animate=e.animate),void 0!==e?.animation&&(t.animation=e.animation);else{let e,t=this.vertices.get(n);if(void 0===t&&(t={id:n,labelType:"text",domId:"flowchart-"+n+"-"+this.vertexCounter,styles:[],classes:[]},this.vertices.set(n,t)),this.vertexCounter++,void 0!==r?(this.config=N(),e=this.sanitizeText(r.text.trim()),t.labelType=r.type,e.startsWith('"')&&e.endsWith('"')&&(e=e.substring(1,e.length-1)),t.text=e):void 0===t.text&&(t.text=n),void 0!==s&&(t.type=s),a?.forEach(e=>{t.styles.push(e)}),o?.forEach(e=>{t.classes.push(e)}),void 0!==l&&(t.dir=l),void 0===t.props?t.props=c:void 0!==c&&Object.assign(t.props,c),void 0!==i){if(i.shape){if(i.shape!==i.shape.toLowerCase()||i.shape.includes("_"))throw new Error(`No such shape: ${i.shape}. Shape names should be lowercase.`);if(!NN(i.shape))throw new Error(`No such shape: ${i.shape}.`);t.type=i?.shape}i?.label&&(t.text=i?.label),i?.icon&&(t.icon=i?.icon,!i.label?.trim())&&t.text===n&&(t.text=""),i?.form&&(t.form=i?.form),i?.pos&&(t.pos=i?.pos),i?.img&&(t.img=i?.img,!i.label?.trim())&&t.text===n&&(t.text=""),i?.constraint&&(t.constraint=i.constraint),i.w&&(t.assetWidth=Number(i.w)),i.h&&(t.assetHeight=Number(i.h))}}}}addSingleLink(e,t,i,n){let r={start:e,end:t,type:void 0,text:"",labelType:"text",classes:[],isUserDefinedId:!1,interpolate:this.edges.defaultInterpolate};I.info("abc78 Got edge...",r);e=i.text;if(void 0!==e&&(r.text=this.sanitizeText(e.text.trim()),r.text.startsWith('"')&&r.text.endsWith('"')&&(r.text=r.text.substring(1,r.text.length-1)),r.labelType=e.type),void 0!==i&&(r.type=i.type,r.stroke=i.stroke,r.length=10<i.length?10:i.length),n&&!this.edges.some(e=>e.id===n)?(r.id=n,r.isUserDefinedId=!0):0===(t=this.edges.filter(e=>e.start===r.start&&e.end===r.end)).length?r.id=rC(r.start,r.end,{counter:0,prefix:"L"}):r.id=rC(r.start,r.end,{counter:t.length+1,prefix:"L"}),!(this.edges.length<(this.config.maxEdges??500)))throw new Error(`Edge limit exceeded. ${this.edges.length} edges found, but the limit is ${this.config.maxEdges}.
|
||
|
||
Initialize mermaid with maxEdges set to a higher number to allow more edges.
|
||
You cannot set this config via configuration inside the diagram as it is a secure config.
|
||
You have to call mermaid.initialize.`);I.info("Pushing edge..."),this.edges.push(r)}isLinkData(e){return null!==e&&"object"==typeof e&&"id"in e&&"string"==typeof e.id}addLink(e,t,i){var n,r=this.isLinkData(i)?i.id.replace("@",""):void 0;I.info("addLink",e,t,r);for(n of e)for(var s of t){var a=n===e[e.length-1],o=s===t[0];a&&o?this.addSingleLink(n,s,i,r):this.addSingleLink(n,s,i,void 0)}}updateLinkInterpolate(e,t){e.forEach(e=>{"default"===e?this.edges.defaultInterpolate=t:this.edges[e].interpolate=t})}updateLink(e,t){e.forEach(e=>{if("number"==typeof e&&e>=this.edges.length)throw new Error(`The index ${e} for linkStyle is out of bounds. Valid indices for linkStyle are between 0 and ${this.edges.length-1}. (Help: Ensure that the index is within the range of existing edges.)`);"default"===e?this.edges.defaultStyle=t:(this.edges[e].style=t,0<(this.edges[e]?.style?.length??0)&&!this.edges[e]?.style?.some(e=>e?.startsWith("fill"))&&this.edges[e]?.style?.push("fill:none"))})}addClass(e,t){let n=t.join().replace(/\\,/g,"§§§").replace(/,/g,";").replace(/§§§/g,",").split(";");e.split(",").forEach(e=>{let i=this.classes.get(e);void 0===i&&(i={id:e,styles:[],textStyles:[]},this.classes.set(e,i)),n?.forEach(e=>{var t;/color/.exec(e)&&(t=e.replace("fill","bgFill"),i.textStyles.push(t)),i.styles.push(e)})})}setDirection(e){this.direction=e,/.*</.exec(this.direction)&&(this.direction="RL"),/.*\^/.exec(this.direction)&&(this.direction="BT"),/.*>/.exec(this.direction)&&(this.direction="LR"),/.*v/.exec(this.direction)&&(this.direction="TB"),"TD"===this.direction&&(this.direction="TB")}setClass(e,i){for(let t of e.split(",")){var n=this.vertices.get(t),n=(n&&n.classes.push(i),this.edges.find(e=>e.id===t)),n=(n&&n.classes.push(i),this.subGraphLookup.get(t));n&&n.classes.push(i)}}setTooltip(e,t){if(void 0!==t){t=this.sanitizeText(t);for(var i of e.split(","))this.tooltips.set("gen-1"===this.version?this.lookUpDomId(i):i,t)}}setClickFun(e,t,n){let r=this.lookUpDomId(e);if("loose"===N().securityLevel&&void 0!==t){let i=[];if("string"==typeof n){i=n.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(let t=0;t<i.length;t++){let e=i[t].trim();e.startsWith('"')&&e.endsWith('"')&&(e=e.substr(1,e.length-2)),i[t]=e}}0===i.length&&i.push(e);n=this.vertices.get(e);n&&(n.haveCallback=!0,this.funs.push(()=>{var e=document.querySelector(`[id="${r}"]`);null!==e&&e.addEventListener("click",()=>{tC.runFunc(t,...i)},!1)}))}}setLink(e,t,i){e.split(",").forEach(e=>{e=this.vertices.get(e);void 0!==e&&(e.link=tC.formatUrl(t,this.config),e.linkTarget=i)}),this.setClass(e,"clickable")}getTooltip(e){return this.tooltips.get(e)}setClickEvent(e,t,i){e.split(",").forEach(e=>{this.setClickFun(e,t,i)}),this.setClass(e,"clickable")}bindFunctions(t){this.funs.forEach(e=>{e(t)})}getDirection(){return this.direction?.trim()}getVertices(){return this.vertices}getEdges(){return this.edges}getClasses(){return this.classes}setupToolTips(e){let i=G(".mermaidTooltip");null===(i._groups||i)[0][0]&&(i=G("body").append("div").attr("class","mermaidTooltip").style("opacity",0)),G(e).select("svg").selectAll("g.node").on("mouseover",e=>{var t=G(e.currentTarget);null!==t.attr("title")&&(e=e.currentTarget?.getBoundingClientRect(),i.transition().duration(200).style("opacity",".9"),i.text(t.attr("title")).style("left",window.scrollX+e.left+(e.right-e.left)/2+"px").style("top",window.scrollY+e.bottom+"px"),i.html(i.html().replace(/<br\/>/g,"<br/>")),t.classed("hover",!0))}).on("mouseout",e=>{i.transition().duration(500).style("opacity",0),G(e.currentTarget).classed("hover",!1)})}clear(e="gen-2"){this.vertices=new Map,this.classes=new Map,this.edges=[],this.funs=[this.setupToolTips.bind(this)],this.subGraphs=[],this.subGraphLookup=new Map,this.subCount=0,this.tooltips=new Map,this.firstGraphFlag=!0,this.version=e,this.config=N(),bh()}setGen(e){this.version=e||"gen-2"}defaultStyle(){return"fill:#ffa;stroke: #f66; stroke-width: 3px; stroke-dasharray: 5, 5;fill:#ffa;stroke: #666;"}addSubGraph(e,t,i){let n=e.text.trim(),r=i.text;e===i&&/\s/.exec(i.text)&&(n=void 0);var e=mt(e=>{let i={boolean:{},number:{},string:{}},n=[],r;return{nodeList:e.filter(function(e){var t=typeof e;return e.stmt&&"dir"===e.stmt?(r=e.value,!1):""!==e.trim()&&(t in i?!i[t].hasOwnProperty(e)&&(i[t][e]=!0):!n.includes(e)&&n.push(e))}),dir:r}},"uniq")(t.flat()),s=e.nodeList,t=e.dir,e=N().flowchart??{},t=t??(e.inheritDir?this.getDirection()??N().direction??void 0:void 0);if("gen-1"===this.version)for(let e=0;e<s.length;e++)s[e]=this.lookUpDomId(s[e]);n=n??"subGraph"+this.subCount,r=this.sanitizeText(r=r||""),this.subCount=this.subCount+1;e={id:n,nodes:s,title:r.trim(),classes:[],dir:t,labelType:i.type};return I.info("Adding",e.id,e.nodes,e.dir),e.nodes=this.makeUniq(e,this.subGraphs).nodes,this.subGraphs.push(e),this.subGraphLookup.set(n,e),n}getPosForId(e){for(var[t,i]of this.subGraphs.entries())if(i.id===e)return t;return-1}indexNodes2(e,t){var i=this.subGraphs[t].nodes;if(this.secCount=this.secCount+1,2e3<this.secCount)return{result:!1,count:0};if(this.posCrossRef[this.secCount]=t,this.subGraphs[t].id===e)return{result:!0,count:0};let n=0,r=1;for(;n<i.length;){var s=this.getPosForId(i[n]);if(0<=s){s=this.indexNodes2(e,s);if(s.result)return{result:!0,count:r+s.count};r+=s.count}n+=1}return{result:!1,count:r}}getDepthFirstPos(e){return this.posCrossRef[e]}indexNodes(){this.secCount=-1,0<this.subGraphs.length&&this.indexNodes2("none",this.subGraphs.length-1)}getSubGraphs(){return this.subGraphs}firstGraph(){return!!this.firstGraphFlag&&!(this.firstGraphFlag=!1)}destructStartLink(e){let t=e.trim(),i="arrow_open";switch(t[0]){case"<":i="arrow_point",t=t.slice(1);break;case"x":i="arrow_cross",t=t.slice(1);break;case"o":i="arrow_circle",t=t.slice(1)}let n="normal";return t.includes("=")&&(n="thick"),t.includes(".")&&(n="dotted"),{type:i,stroke:n}}countChar(t,i){let n=i.length,r=0;for(let e=0;e<n;++e)i[e]===t&&++r;return r}destructEndLink(e){let t=e.trim(),i=t.slice(0,-1),n="arrow_open";switch(t.slice(-1)){case"x":n="arrow_cross",t.startsWith("x")&&(n="double_"+n,i=i.slice(1));break;case">":n="arrow_point",t.startsWith("<")&&(n="double_"+n,i=i.slice(1));break;case"o":n="arrow_circle",t.startsWith("o")&&(n="double_"+n,i=i.slice(1))}let r="normal",s=i.length-1;i.startsWith("=")&&(r="thick"),i.startsWith("~")&&(r="invisible");e=this.countChar(".",i);return e&&(r="dotted",s=e),{type:n,stroke:r,length:s}}destructLink(e,t){e=this.destructEndLink(e);if(t){if((t=this.destructStartLink(t)).stroke!==e.stroke)return{type:"INVALID",stroke:"INVALID"};if("arrow_open"===t.type)t.type=e.type;else{if(t.type!==e.type)return{type:"INVALID",stroke:"INVALID"};t.type="double_"+t.type}return"double_arrow"===t.type&&(t.type="double_arrow_point"),t.length=e.length,t}return e}exists(e,t){for(var i of e)if(i.nodes.includes(t))return!0;return!1}makeUniq(i,n){let r=[];return i.nodes.forEach((e,t)=>{this.exists(n,e)||r.push(i.nodes[t])}),{nodes:r}}getTypeFromVertex(e){if(e.img)return"imageSquare";if(e.icon)return"circle"===e.form?"iconCircle":"square"===e.form?"iconSquare":"rounded"===e.form?"iconRounded":"icon";switch(e.type){case"square":case void 0:return"squareRect";case"round":return"roundedRect";case"ellipse":return"ellipse";default:return e.type}}findNode(e,t){return e.find(e=>e.id===t)}destructEdgeType(e){let t="none",i="arrow_point";switch(e){case"arrow_point":case"arrow_circle":case"arrow_cross":i=e;break;case"double_arrow_point":case"double_arrow_circle":case"double_arrow_cross":t=e.replace("double_",""),i=t}return{arrowTypeStart:t,arrowTypeEnd:i}}addNodeFromVertex(e,t,i,n,r,s){var i=i.get(e.id),n=n.get(e.id)??!1,a=this.findNode(t,e.id);a?(a.cssStyles=e.styles,a.cssCompiledStyles=this.getCompiledStyles(e.classes),a.cssClasses=e.classes.join(" ")):(a={id:e.id,label:e.text,labelStyle:"",parentId:i,padding:r.flowchart?.padding||8,cssStyles:e.styles,cssCompiledStyles:this.getCompiledStyles(["default","node",...e.classes]),cssClasses:"default "+e.classes.join(" "),dir:e.dir,domId:e.domId,look:s,link:e.link,linkTarget:e.linkTarget,tooltip:this.getTooltip(e.id),icon:e.icon,pos:e.pos,img:e.img,assetWidth:e.assetWidth,assetHeight:e.assetHeight,constraint:e.constraint},n?t.push({...a,isGroup:!0,shape:"rect"}):t.push({...a,isGroup:!1,shape:this.getTypeFromVertex(e)}))}getCompiledStyles(e){let t=[];for(var i of e){i=this.classes.get(i);i?.styles&&(t=[...t,...i.styles??[]].map(e=>e.trim())),i?.textStyles&&(t=[...t,...i.textStyles??[]].map(e=>e.trim()))}return t}getData(){let s=N(),t=[],a=[],i=this.getSubGraphs(),n=new Map,r=new Map;for(let e=i.length-1;0<=e;e--){var o,l=i[e];0<l.nodes.length&&r.set(l.id,!0);for(o of l.nodes)n.set(o,l.id)}for(let e=i.length-1;0<=e;e--){var c=i[e];t.push({id:c.id,label:c.title,labelStyle:"",parentId:n.get(c.id),padding:8,cssCompiledStyles:this.getCompiledStyles(c.classes),cssClasses:c.classes.join(" "),shape:"rect",dir:c.dir,isGroup:!0,look:s.look})}this.getVertices().forEach(e=>{this.addNodeFromVertex(e,t,n,r,s,s.look||"classic")});let h=this.getEdges();return h.forEach((e,t)=>{var{arrowTypeStart:i,arrowTypeEnd:n}=this.destructEdgeType(e.type),r=[...h.defaultStyle??[]],t=(e.style&&r.push(...e.style),{id:rC(e.start,e.end,{counter:t,prefix:"L"},e.id),isUserDefinedId:e.isUserDefinedId,start:e.start,end:e.end,type:e.type??"normal",label:e.text,labelpos:"c",thickness:e.stroke,minlen:e.length,classes:"invisible"===e?.stroke?"":"edge-thickness-normal edge-pattern-solid flowchart-link",arrowTypeStart:"invisible"===e?.stroke||"arrow_open"===e?.type?"none":i,arrowTypeEnd:"invisible"===e?.stroke||"arrow_open"===e?.type?"none":n,arrowheadStyle:"fill: #333",cssCompiledStyles:this.getCompiledStyles(e.classes),labelStyle:r,style:r,pattern:e.stroke,look:s.look,animate:e.animate,animation:e.animation,curve:e.interpolate||this.edges.defaultInterpolate||s.flowchart?.curve});a.push(t)}),{nodes:t,edges:a,other:{},config:s}}defaultConfig(){return Eh.flowchart}}}),QN=e(()=>{"use strict";a6(),FN=mt((e,t)=>{let i;return"sandbox"===t&&(i=G("#i"+e)),G("sandbox"===t?i.nodes()[0].contentDocument.body:"body").select(`[id="${e}"]`)},"getDiagramElement")}),JN=e(()=>{"use strict";jN=mt(({flowchart:e})=>{var t=e?.subGraphTitleMargin?.top??0,e=e?.subGraphTitleMargin?.bottom??0;return{subGraphTitleTopMargin:t,subGraphTitleBottomMargin:e,subGraphTitleTotalMargin:t+e}},"getSubGraphTitleMargins")}),eD=e(()=>{"use strict";Cu(),hh(),t(),JN(),a6(),HR(),eL(),IL(),LI(),UM(),DL(),zN=mt(async(n,r)=>{I.info("Creating subgraph rect for ",r.id,r);let e=N(),{themeVariables:t,handDrawnSeed:s}=e,{clusterBkg:a,clusterBorder:o}=t,{labelStyles:i,nodeStyles:l,borderStyles:c,backgroundStyles:h}=LL(r),u=n.insert("g").attr("class","cluster "+r.cssClasses).attr("id",r.id).attr("data-look",r.look),d=qc(e.flowchart.htmlLabels),p=u.insert("g").attr("class","cluster-label "),g=await J$(p,r.label,{style:r.labelStyle,useHtmlLabels:d,isNode:!0}),f=g.getBBox();qc(e.flowchart.htmlLabels)&&(n=g.children[0],m=G(g),f=n.getBoundingClientRect(),m.attr("width",f.width),m.attr("height",f.height));var n=r.width<=f.width+r.padding?f.width+r.padding:r.width,m=(r.width<=f.width+r.padding?r.diff=(n-r.width)/2-r.padding:r.diff=-r.padding,r.height),y=r.x-n/2,b=r.y-m/2;I.trace("Data ",r,JSON.stringify(r));let v;if("handDrawn"===r.look){let e=zR.svg(u),t=RL(r,{roughness:.7,fill:a,stroke:o,fillWeight:3,seed:s}),i=e.path(zM(y,b,n,m,0),t);(v=u.insert(()=>(I.debug("Rough node insert CXC",i),i),":first-child")).select("path:nth-child(2)").attr("style",c.join(";")),v.select("path").attr("style",h.join(";").replace("fill","stroke"))}else(v=u.insert("rect",":first-child")).attr("style",l).attr("rx",r.rx).attr("ry",r.ry).attr("x",y).attr("y",b).attr("width",n).attr("height",m);y=jN(e).subGraphTitleTopMargin,p.attr("transform",`translate(${r.x-f.width/2}, ${r.y-r.height/2+y})`),i&&(b=p.select("span"))&&b.attr("style",i),n=v.node().getBBox();return r.offsetX=0,r.width=n.width,r.height=n.height,r.offsetY=f.height-r.padding/2,r.intersect=function(e){return SL(r,e)},{cluster:u,labelBBox:f}},"rect"),HN=mt((e,t)=>{var e=e.insert("g").attr("class","note-cluster").attr("id",t.id),i=e.insert("rect",":first-child"),n=0*t.padding,r=n/2,r=(i.attr("rx",t.rx).attr("ry",t.ry).attr("x",t.x-t.width/2-r).attr("y",t.y-t.height/2-r).attr("width",t.width+n).attr("height",t.height+n).attr("fill","none"),i.node().getBBox());return t.width=r.width,t.height=r.height,t.intersect=function(e){return SL(t,e)},{cluster:e,labelBBox:{width:0,height:0}}},"noteGroup"),UN=mt(async(r,s)=>{let e=N(),{themeVariables:t,handDrawnSeed:a}=e,{altBackground:o,compositeBackground:l,compositeTitleBackground:c,nodeBorder:h}=t,u=r.insert("g").attr("class",s.cssClasses).attr("id",s.id).attr("data-id",s.id).attr("data-look",s.look),i=u.insert("g",":first-child"),n=u.insert("g").attr("class","cluster-label"),d=u.append("rect"),p=n.node().appendChild(await $I(s.label,s.labelStyle,void 0,!0)),g=p.getBBox();qc(e.flowchart.htmlLabels)&&(r=p.children[0],f=G(p),g=r.getBoundingClientRect(),f.attr("width",g.width),f.attr("height",g.height));var r=0*s.padding,f=r/2,m=(s.width<=g.width+s.padding?g.width+s.padding:s.width)+r,y=(s.width<=g.width+s.padding?s.diff=(m-s.width)/2-s.padding:s.diff=-s.padding,s.height+r),r=s.height+r-g.height-6,b=s.x-m/2,v=s.y-y/2;s.width=m;let x=s.y-s.height/2-f+g.height+2,w;if("handDrawn"===s.look){let e=s.cssClasses.includes("statediagram-cluster-alt"),t=zR.svg(u),i=s.rx||s.ry?t.path(zM(b,v,m,y,10),{roughness:.7,fill:c,fillStyle:"solid",stroke:h,seed:a}):t.rectangle(b,v,m,y,{seed:a}),n=(w=u.insert(()=>i,":first-child"),t.rectangle(b,x,m,r,{fill:e?o:l,fillStyle:e?"hachure":"solid",stroke:h,seed:a}));w=u.insert(()=>i,":first-child"),d=u.insert(()=>n)}else(w=i.insert("rect",":first-child")).attr("class","outer").attr("x",b).attr("y",v).attr("width",m).attr("height",y).attr("data-look",s.look),d.attr("class","inner").attr("x",b).attr("y",x).attr("width",m).attr("height",r);n.attr("transform",`translate(${s.x-g.width/2}, ${1+v-(qc(e.flowchart.htmlLabels)?0:3)})`);f=w.node().getBBox();return s.height=f.height,s.offsetX=0,s.offsetY=g.height-s.padding/2,s.labelBBox=g,s.intersect=function(e){return SL(s,e)},{cluster:u,labelBBox:g}},"roundedWithTitle"),qN=mt(async(n,r)=>{I.info("Creating subgraph rect for ",r.id,r);let e=N(),{themeVariables:t,handDrawnSeed:s}=e,{clusterBkg:a,clusterBorder:o}=t,{labelStyles:i,nodeStyles:l,borderStyles:c,backgroundStyles:h}=LL(r),u=n.insert("g").attr("class","cluster "+r.cssClasses).attr("id",r.id).attr("data-look",r.look),d=qc(e.flowchart.htmlLabels),p=u.insert("g").attr("class","cluster-label "),g=await J$(p,r.label,{style:r.labelStyle,useHtmlLabels:d,isNode:!0,width:r.width}),f=g.getBBox();qc(e.flowchart.htmlLabels)&&(n=g.children[0],m=G(g),f=n.getBoundingClientRect(),m.attr("width",f.width),m.attr("height",f.height));var n=r.width<=f.width+r.padding?f.width+r.padding:r.width,m=(r.width<=f.width+r.padding?r.diff=(n-r.width)/2-r.padding:r.diff=-r.padding,r.height),y=r.x-n/2,b=r.y-m/2;I.trace("Data ",r,JSON.stringify(r));let v;if("handDrawn"===r.look){let e=zR.svg(u),t=RL(r,{roughness:.7,fill:a,stroke:o,fillWeight:4,seed:s}),i=e.path(zM(y,b,n,m,r.rx),t);(v=u.insert(()=>(I.debug("Rough node insert CXC",i),i),":first-child")).select("path:nth-child(2)").attr("style",c.join(";")),v.select("path").attr("style",h.join(";").replace("fill","stroke"))}else(v=u.insert("rect",":first-child")).attr("style",l).attr("rx",r.rx).attr("ry",r.ry).attr("x",y).attr("y",b).attr("width",n).attr("height",m);y=jN(e).subGraphTitleTopMargin,p.attr("transform",`translate(${r.x-f.width/2}, ${r.y-r.height/2+y})`),i&&(b=p.select("span"))&&b.attr("style",i),n=v.node().getBBox();return r.offsetX=0,r.width=n.width,r.height=n.height,r.offsetY=f.height-r.padding/2,r.intersect=function(e){return SL(r,e)},{cluster:u,labelBBox:f}},"kanbanSection"),WN=mt((t,i)=>{var{themeVariables:n,handDrawnSeed:r}=N(),n=n["nodeBorder"],t=t.insert("g").attr("class",i.cssClasses).attr("id",i.id).attr("data-look",i.look),e=t.insert("g",":first-child"),s=0*i.padding,a=i.width+s,s=(i.diff=-i.padding,i.height+s),o=i.x-a/2,l=i.y-s/2;i.width=a;let c;if("handDrawn"===i.look){let e=zR.svg(t).rectangle(o,l,a,s,{fill:"lightgrey",roughness:.5,strokeLineDash:[5],stroke:n,seed:r});c=t.insert(()=>e,":first-child")}else(c=e.insert("rect",":first-child")).attr("class","divider").attr("x",o).attr("y",l).attr("width",a).attr("height",s).attr("data-look",i.look);n=c.node().getBBox();return i.height=n.height,i.offsetX=0,i.offsetY=0,i.intersect=function(e){return SL(i,e)},{cluster:t,labelBBox:{}}},"divider"),VN={rect:zN,squareRect:zN,roundedWithTitle:UN,noteGroup:HN,divider:WN,kanbanSection:qN},GN=new Map,YN=mt(async(e,t)=>{var i=t.shape||"rect",i=await VN[i](e,t);return GN.set(t.id,i),i},"insertCluster"),XN=mt(()=>{GN=new Map},"clear")});function tD(e,t){if(void 0===e||void 0===t)return{angle:0,deltaX:0,deltaY:0};e=nD(e),t=nD(t);var[e,i]=[e.x,e.y],[t,n]=[t.x,t.y],t=t-e,e=n-i;return{angle:Math.atan(e/t),deltaX:t,deltaY:e}}var iD,nD,rD,sD,aD,oD,lD=e(()=>{"use strict";iD={aggregation:18,extension:18,composition:18,dependency:6,lollipop:13.5,arrow_point:4},mt(tD,"calculateDeltaAndAngle"),nD=mt(e=>Array.isArray(e)?{x:e[0],y:e[1]}:e,"pointTransformer"),rD=mt(c=>({x:mt(function(e,t,i){let n=0,r=nD(i[0]).x<nD(i[i.length-1]).x?"left":"right";0===t&&Object.hasOwn(iD,c.arrowTypeStart)?({angle:s,deltaX:a}=tD(i[0],i[1]),n=iD[c.arrowTypeStart]*Math.cos(s)*(0<=a?1:-1)):t===i.length-1&&Object.hasOwn(iD,c.arrowTypeEnd)&&({angle:s,deltaX:a}=tD(i[i.length-1],i[i.length-2]),n=iD[c.arrowTypeEnd]*Math.cos(s)*(0<=a?1:-1));var t=Math.abs(nD(e).x-nD(i[i.length-1]).x),s=Math.abs(nD(e).y-nD(i[i.length-1]).y),a=Math.abs(nD(e).x-nD(i[0]).x),i=Math.abs(nD(e).y-nD(i[0]).y),o=iD[c.arrowTypeStart],l=iD[c.arrowTypeEnd];return t<l&&0<t&&s<l&&(s=l+1-t,s*="right"==r?-1:1,n-=s),a<o&&0<a&&i<o&&(l=o+1-a,l*="right"==r?-1:1,n+=l),nD(e).x+n},"x"),y:mt(function(e,t,i){let n=0,r=nD(i[0]).y<nD(i[i.length-1]).y?"down":"up";0===t&&Object.hasOwn(iD,c.arrowTypeStart)?({angle:s,deltaY:a}=tD(i[0],i[1]),n=iD[c.arrowTypeStart]*Math.abs(Math.sin(s))*(0<=a?1:-1)):t===i.length-1&&Object.hasOwn(iD,c.arrowTypeEnd)&&({angle:s,deltaY:a}=tD(i[i.length-1],i[i.length-2]),n=iD[c.arrowTypeEnd]*Math.abs(Math.sin(s))*(0<=a?1:-1));var t=Math.abs(nD(e).y-nD(i[i.length-1]).y),s=Math.abs(nD(e).x-nD(i[i.length-1]).x),a=Math.abs(nD(e).y-nD(i[0]).y),i=Math.abs(nD(e).x-nD(i[0]).x),o=iD[c.arrowTypeStart],l=iD[c.arrowTypeEnd];return t<l&&0<t&&s<l&&(s=l+1-t,s*="up"==r?-1:1,n-=s),a<o&&0<a&&i<o&&(l=o+1-a,l*="up"==r?-1:1,n+=l),nD(e).y+n},"y")}),"getLineFunctionsWithOffset")}),cD=e(()=>{"use strict";t(),sD=mt((e,t,i,n,r,s)=>{t.arrowTypeStart&&oD(e,"start",t.arrowTypeStart,i,n,r,s),t.arrowTypeEnd&&oD(e,"end",t.arrowTypeEnd,i,n,r,s)},"addEdgeMarkers"),aD={arrow_cross:{type:"cross",fill:!1},arrow_point:{type:"point",fill:!0},arrow_barb:{type:"barb",fill:!0},arrow_circle:{type:"circle",fill:!1},aggregation:{type:"aggregation",fill:!1},extension:{type:"extension",fill:!1},composition:{type:"composition",fill:!0},dependency:{type:"dependency",fill:!0},lollipop:{type:"lollipop",fill:!1},only_one:{type:"onlyOne",fill:!1},zero_or_one:{type:"zeroOrOne",fill:!1},one_or_more:{type:"oneOrMore",fill:!1},zero_or_more:{type:"zeroOrMore",fill:!1},requirement_arrow:{type:"requirement_arrow",fill:!1},requirement_contains:{type:"requirement_contains",fill:!1}},oD=mt((e,t,i,n,r,s,a)=>{let o=aD[i];var l,c;o?(r=r+`_${s}-`+o.type+("start"===t?"Start":"End"),a&&""!==a.trim()?(s=r+"_"+a.replace(/[^\dA-Za-z]/g,"_"),document.getElementById(s)||(l=document.getElementById(r))&&((c=l.cloneNode(!0)).id=s,c.querySelectorAll("path, circle, line").forEach(e=>{e.setAttribute("stroke",a),o.fill&&e.setAttribute("fill",a)}),l.parentNode?.appendChild(c)),e.attr("marker-"+t,`url(${n}#${s})`)):e.attr("marker-"+t,`url(${n}#${r})`)):I.warn("Unknown arrow type: "+i)},"addEdgeMarker")});function hD(e,t){N().flowchart.htmlLabels&&e&&(e.style.width=9*t.length+"px",e.style.height="12px")}function uD(t){var i=[],n=[];for(let e=1;e<t.length-1;e++){var r=t[e-1],s=t[e],a=t[e+1];(r.x===s.x&&s.y===a.y&&5<Math.abs(s.x-a.x)&&5<Math.abs(s.y-r.y)||r.y===s.y&&s.x===a.x&&5<Math.abs(s.x-r.x)&&5<Math.abs(s.y-a.y))&&(i.push(s),n.push(e))}return{cornerPoints:i,cornerPointPositions:n}}var dD,pD,gD,fD,mD,yD,bD,vD,xD,wD,kD,TD,SD,_D,CD,AD,ED,$D,LD,RD,MD,ID,ND,DD,OD,PD,BD,FD,jD,zD,HD=e(()=>{"use strict";Cu(),hh(),t(),eL(),sC(),lD(),JN(),a6(),HR(),LI(),cD(),DL(),dD=new Map,pD=new Map,gD=mt(()=>{dD.clear(),pD.clear()},"clear"),fD=mt(e=>e?e.reduce((e,t)=>e+";"+t,""):"","getLabelStyles"),mD=mt(async(e,t)=>{var i,n=qc(N().flowchart.htmlLabels),r=await J$(e,t.label,{style:fD(t.labelStyle),useHtmlLabels:n,addSvgBackground:!0,isNode:!1}),s=(I.info("abc82",t,t.labelType),e.insert("g").attr("class","edgeLabel")),a=s.insert("g").attr("class","label");a.node().appendChild(r);let o=r.getBBox();n&&(n=r.children[0],i=G(r),o=n.getBoundingClientRect(),i.attr("width",o.width),i.attr("height",o.height)),a.attr("transform","translate("+-o.width/2+", "+-o.height/2+")"),dD.set(t.id,s),t.width=o.width,t.height=o.height;let l;return t.startLabelLeft&&(n=await $I(t.startLabelLeft,fD(t.labelStyle)),a=(i=e.insert("g").attr("class","edgeTerminals")).insert("g").attr("class","inner"),l=a.node().appendChild(n),s=n.getBBox(),a.attr("transform","translate("+-s.width/2+", "+-s.height/2+")"),pD.get(t.id)||pD.set(t.id,{}),pD.get(t.id).startLeft=i,hD(l,t.startLabelLeft)),t.startLabelRight&&(n=await $I(t.startLabelRight,fD(t.labelStyle)),s=(a=e.insert("g").attr("class","edgeTerminals")).insert("g").attr("class","inner"),l=a.node().appendChild(n),s.node().appendChild(n),i=n.getBBox(),s.attr("transform","translate("+-i.width/2+", "+-i.height/2+")"),pD.get(t.id)||pD.set(t.id,{}),pD.get(t.id).startRight=a,hD(l,t.startLabelRight)),t.endLabelLeft&&(n=await $I(t.endLabelLeft,fD(t.labelStyle)),i=(s=e.insert("g").attr("class","edgeTerminals")).insert("g").attr("class","inner"),l=i.node().appendChild(n),a=n.getBBox(),i.attr("transform","translate("+-a.width/2+", "+-a.height/2+")"),s.node().appendChild(n),pD.get(t.id)||pD.set(t.id,{}),pD.get(t.id).endLeft=s,hD(l,t.endLabelLeft)),t.endLabelRight&&(i=await $I(t.endLabelRight,fD(t.labelStyle)),n=(a=e.insert("g").attr("class","edgeTerminals")).insert("g").attr("class","inner"),l=n.node().appendChild(i),s=i.getBBox(),n.attr("transform","translate("+-s.width/2+", "+-s.height/2+")"),a.node().appendChild(i),pD.get(t.id)||pD.set(t.id,{}),pD.get(t.id).endRight=a,hD(l,t.endLabelRight)),r},"insertEdgeLabel"),mt(hD,"setTerminalWidth"),yD=mt((n,r)=>{I.debug("Moving label abc88 ",n.id,n.label,dD.get(n.id),r);var s,a=r.updatedPath||r.originalPath,o=N(),o=jN(o)["subGraphTitleTotalMargin"];if(n.label){let e=dD.get(n.id),t=n.x,i=n.y;a&&(s=tC.calcLabelPosition(a),I.debug("Moving label "+n.label+" from (",t,",",i,") to (",s.x,",",s.y,") abc88"),r.updatedPath)&&(t=s.x,i=s.y),e.attr("transform",`translate(${t}, ${i+o/2})`)}if(n.startLabelLeft){let e=pD.get(n.id).startLeft,t=n.x,i=n.y;a&&(r=tC.calcTerminalLabelPosition(n.arrowTypeStart?10:0,"start_left",a),t=r.x,i=r.y),e.attr("transform",`translate(${t}, ${i})`)}if(n.startLabelRight){let e=pD.get(n.id).startRight,t=n.x,i=n.y;a&&(s=tC.calcTerminalLabelPosition(n.arrowTypeStart?10:0,"start_right",a),t=s.x,i=s.y),e.attr("transform",`translate(${t}, ${i})`)}if(n.endLabelLeft){let e=pD.get(n.id).endLeft,t=n.x,i=n.y;a&&(o=tC.calcTerminalLabelPosition(n.arrowTypeEnd?10:0,"end_left",a),t=o.x,i=o.y),e.attr("transform",`translate(${t}, ${i})`)}if(n.endLabelRight){let e=pD.get(n.id).endRight,t=n.x,i=n.y;a&&(r=tC.calcTerminalLabelPosition(n.arrowTypeEnd?10:0,"end_right",a),t=r.x,i=r.y),e.attr("transform",`translate(${t}, ${i})`)}},"positionEdgeLabel"),bD=mt((e,t)=>{var i=e.x,n=e.y,i=Math.abs(t.x-i),t=Math.abs(t.y-n),n=e.width/2,e=e.height/2;return n<=i||e<=t},"outsideNode"),vD=mt((e,n,r)=>{I.debug(`intersection calc abc89:
|
||
outsidePoint: ${JSON.stringify(n)}
|
||
insidePoint : ${JSON.stringify(r)}
|
||
node : x:${e.x} y:${e.y} w:${e.width} h:`+e.height);let s=e.x,t=e.y,i=Math.abs(s-r.x),a=e.width/2,o=r.x<n.x?a-i:a+i,l=e.height/2,c=Math.abs(n.y-r.y),h=Math.abs(n.x-r.x);var u;if(Math.abs(t-n.y)*a>Math.abs(s-n.x)*l)return e=r.y<n.y?n.y-l-t:t-l-n.y,o=h*e/c,u={x:r.x<n.x?r.x+o:r.x-h+o,y:r.y<n.y?r.y+c-e:r.y-c+e},0===o&&(u.x=n.x,u.y=n.y),0===h&&(u.x=n.x),0===c&&(u.y=n.y),I.debug(`abc89 top/bottom calc, Q ${c}, q ${e}, R ${h}, r `+o,u),u;{let e=c*(o=r.x<n.x?n.x-a-s:s-a-n.x)/h,t=r.x<n.x?r.x+h-o:r.x-h+o,i=r.y<n.y?r.y+e:r.y-e;return I.debug(`sides calc abc89, Q ${c}, q ${e}, R ${h}, r `+o,{_x:t,_y:i}),0===o&&(t=n.x,i=n.y),0===h&&(t=n.x),0===c&&(i=n.y),{x:t,y:i}}},"intersection"),xD=mt((e,n)=>{I.warn("abc88 cutPathAtIntersect",e,n);let r=[],s=e[0],a=!1;return e.forEach(e=>{if(I.info("abc88 checking point",e,n),bD(n,e)||a)I.warn("abc88 outside",e,s),s=e,a||r.push(e);else{let t=vD(n,s,e),i=(I.debug("abc88 inside",e,s,t),I.debug("abc88 intersection",t,n),!1);r.forEach(e=>{i=i||e.x===t.x&&e.y===t.y}),r.some(e=>e.x===t.x&&e.y===t.y)?I.warn("abc88 no intersect",t,r):r.push(t),a=!0}}),I.debug("returning points",r),r},"cutPathAtIntersect"),mt(uD,"extractCornerPoints"),wD=mt(function(e,t,i){var n=t.x-e.x,e=t.y-e.y,i=i/Math.sqrt(n*n+e*e);return{x:t.x-i*n,y:t.y-i*e}},"findAdjacentPoint"),kD=mt(function(n){var e=uD(n)["cornerPointPositions"],r=[];for(let i=0;i<n.length;i++)if(e.includes(i)){var s=n[i-1],a=n[i+1],o=n[i],l=wD(s,o,5),c=wD(a,o,5),h=c.x-l.x,u=c.y-l.y;r.push(l);let e=2*Math.sqrt(2),t={x:o.x,y:o.y};10<Math.abs(a.x-s.x)&&10<=Math.abs(a.y-s.y)?(I.debug("Corner point fixing",Math.abs(a.x-s.x),Math.abs(a.y-s.y)),t=o.x===l.x?{x:h<0?l.x-5+e:l.x+5-e,y:u<0?l.y-e:l.y+e}:{x:h<0?l.x-e:l.x+e,y:u<0?l.y-5+e:l.y+5-e}):I.debug("Corner point skipping fixing",Math.abs(a.x-s.x),Math.abs(a.y-s.y)),r.push(t,c)}else r.push(n[i]);return r},"fixCorners"),TD=mt(function(n,r,e,t,s,i,a){let o=N()["handDrawnSeed"],l=r.points,c=!1,h=s;var u,s=i,d=[];for(u in r.cssCompiledStyles)$L(u)||d.push(r.cssCompiledStyles[u]);s.intersect&&h.intersect&&((l=l.slice(1,r.points.length-1)).unshift(h.intersect(l[0])),I.debug("Last point APA12",r.start,"--\x3e",r.end,l[l.length-1],s,s.intersect(l[l.length-1])),l.push(s.intersect(l[l.length-1]))),r.toCluster&&(I.info("to cluster abc88",e.get(r.toCluster)),l=xD(r.points,e.get(r.toCluster).node),c=!0),r.fromCluster&&(I.debug("from cluster abc88",e.get(r.fromCluster),JSON.stringify(l,null,2)),l=xD(l.reverse(),e.get(r.fromCluster).node).reverse(),c=!0);i=l.filter(e=>!Number.isNaN(e.y)),i=kD(i);let p=x5;switch(p=J3,r.curve){case"linear":p=J3;break;case"basis":p=x5;break;case"cardinal":p=I5;break;case"bumpX":p=d5;break;case"bumpY":p=p5;break;case"catmullRom":p=U5;break;case"monotoneX":p=ow;break;case"monotoneY":p=lw;break;case"natural":p=dw;break;case"step":p=fw;break;case"stepAfter":p=yw;break;case"stepBefore":p=mw;break;default:p=x5}let{x:g,y:f}=rD(r),m=r5().x(g).y(f).curve(p),y;switch(r.thickness){case"normal":y="edge-thickness-normal";break;case"thick":y="edge-thickness-thick";break;case"invisible":y="edge-thickness-invisible";break;default:y="edge-thickness-normal"}switch(r.pattern){case"solid":y+=" edge-pattern-solid";break;case"dotted":y+=" edge-pattern-dotted";break;case"dashed":y+=" edge-pattern-dashed";break;default:y+=" edge-pattern-solid"}let b,v=m(i),x=Array.isArray(r.style)?r.style:r.style?[r.style]:[],w=x.find(e=>e?.startsWith("stroke:"));if("handDrawn"===r.look){s=zR.svg(n),e=(Object.assign([],i),s.path(v,{roughness:.3,seed:o})),i=(y+=" transition",(b=G(e).select("path").attr("id",r.id).attr("class"," "+y+(r.classes?" "+r.classes:"")).attr("style",x?x.reduce((e,t)=>e+";"+t,""):"")).attr("d"));b.attr("d",i),n.node().appendChild(b.node())}else{let e=d.join(";"),t=x?x.reduce((e,t)=>e+t+";",""):"",i="";r.animate&&(i=" edge-animation-fast"),r.animation&&(i=" edge-animation-"+r.animation);s=e?e+";"+t+";":t;b=n.append("path").attr("d",v).attr("id",r.id).attr("class"," "+y+(r.classes?" "+r.classes:"")+(i??"")).attr("style",s),w=s.match(/stroke:([^;]+)/)?.[1]}let k="";(N().flowchart.arrowMarkerAbsolute||N().state.arrowMarkerAbsolute)&&(k=Uc(!0)),I.info("arrowTypeStart",r.arrowTypeStart),I.info("arrowTypeEnd",r.arrowTypeEnd),sD(b,r,k,a,t,w);e={};return c&&(e.updatedPath=l),e.originalPath=r.points,e},"insertEdge")}),UD=e(()=>{"use strict";t(),SD=mt((t,e,i,n)=>{e.forEach(e=>{jD[e](t,i,n)})},"insertMarkers"),_D=mt((e,t,i)=>{I.trace("Making markers for ",i),e.append("defs").append("marker").attr("id",i+"_"+t+"-extensionStart").attr("class","marker extension "+t).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 1,7 L18,13 V 1 Z"),e.append("defs").append("marker").attr("id",i+"_"+t+"-extensionEnd").attr("class","marker extension "+t).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 1,1 V 13 L18,7 Z")},"extension"),CD=mt((e,t,i)=>{e.append("defs").append("marker").attr("id",i+"_"+t+"-compositionStart").attr("class","marker composition "+t).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),e.append("defs").append("marker").attr("id",i+"_"+t+"-compositionEnd").attr("class","marker composition "+t).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z")},"composition"),AD=mt((e,t,i)=>{e.append("defs").append("marker").attr("id",i+"_"+t+"-aggregationStart").attr("class","marker aggregation "+t).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),e.append("defs").append("marker").attr("id",i+"_"+t+"-aggregationEnd").attr("class","marker aggregation "+t).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z")},"aggregation"),ED=mt((e,t,i)=>{e.append("defs").append("marker").attr("id",i+"_"+t+"-dependencyStart").attr("class","marker dependency "+t).attr("refX",6).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 5,7 L9,13 L1,7 L9,1 Z"),e.append("defs").append("marker").attr("id",i+"_"+t+"-dependencyEnd").attr("class","marker dependency "+t).attr("refX",13).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L14,7 L9,1 Z")},"dependency"),$D=mt((e,t,i)=>{e.append("defs").append("marker").attr("id",i+"_"+t+"-lollipopStart").attr("class","marker lollipop "+t).attr("refX",13).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("circle").attr("stroke","black").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6),e.append("defs").append("marker").attr("id",i+"_"+t+"-lollipopEnd").attr("class","marker lollipop "+t).attr("refX",1).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("circle").attr("stroke","black").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6)},"lollipop"),LD=mt((e,t,i)=>{e.append("marker").attr("id",i+"_"+t+"-pointEnd").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",5).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",8).attr("markerHeight",8).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 z").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),e.append("marker").attr("id",i+"_"+t+"-pointStart").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",4.5).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",8).attr("markerHeight",8).attr("orient","auto").append("path").attr("d","M 0 5 L 10 10 L 10 0 z").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0")},"point"),RD=mt((e,t,i)=>{e.append("marker").attr("id",i+"_"+t+"-circleEnd").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",11).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),e.append("marker").attr("id",i+"_"+t+"-circleStart").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",-1).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0")},"circle"),MD=mt((e,t,i)=>{e.append("marker").attr("id",i+"_"+t+"-crossEnd").attr("class","marker cross "+t).attr("viewBox","0 0 11 11").attr("refX",12).attr("refY",5.2).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("path").attr("d","M 1,1 l 9,9 M 10,1 l -9,9").attr("class","arrowMarkerPath").style("stroke-width",2).style("stroke-dasharray","1,0"),e.append("marker").attr("id",i+"_"+t+"-crossStart").attr("class","marker cross "+t).attr("viewBox","0 0 11 11").attr("refX",-1).attr("refY",5.2).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("path").attr("d","M 1,1 l 9,9 M 10,1 l -9,9").attr("class","arrowMarkerPath").style("stroke-width",2).style("stroke-dasharray","1,0")},"cross"),ID=mt((e,t,i)=>{e.append("defs").append("marker").attr("id",i+"_"+t+"-barbEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",14).attr("markerUnits","userSpaceOnUse").attr("orient","auto").append("path").attr("d","M 19,7 L9,13 L14,7 L9,1 Z")},"barb"),ND=mt((e,t,i)=>{e.append("defs").append("marker").attr("id",i+"_"+t+"-onlyOneStart").attr("class","marker onlyOne "+t).attr("refX",0).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").append("path").attr("d","M9,0 L9,18 M15,0 L15,18"),e.append("defs").append("marker").attr("id",i+"_"+t+"-onlyOneEnd").attr("class","marker onlyOne "+t).attr("refX",18).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").append("path").attr("d","M3,0 L3,18 M9,0 L9,18")},"only_one"),DD=mt((e,t,i)=>{var n=e.append("defs").append("marker").attr("id",i+"_"+t+"-zeroOrOneStart").attr("class","marker zeroOrOne "+t).attr("refX",0).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("orient","auto"),n=(n.append("circle").attr("fill","white").attr("cx",21).attr("cy",9).attr("r",6),n.append("path").attr("d","M9,0 L9,18"),e.append("defs").append("marker").attr("id",i+"_"+t+"-zeroOrOneEnd").attr("class","marker zeroOrOne "+t).attr("refX",30).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("orient","auto"));n.append("circle").attr("fill","white").attr("cx",9).attr("cy",9).attr("r",6),n.append("path").attr("d","M21,0 L21,18")},"zero_or_one"),OD=mt((e,t,i)=>{e.append("defs").append("marker").attr("id",i+"_"+t+"-oneOrMoreStart").attr("class","marker oneOrMore "+t).attr("refX",18).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("orient","auto").append("path").attr("d","M0,18 Q 18,0 36,18 Q 18,36 0,18 M42,9 L42,27"),e.append("defs").append("marker").attr("id",i+"_"+t+"-oneOrMoreEnd").attr("class","marker oneOrMore "+t).attr("refX",27).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("orient","auto").append("path").attr("d","M3,9 L3,27 M9,18 Q27,0 45,18 Q27,36 9,18")},"one_or_more"),PD=mt((e,t,i)=>{var n=e.append("defs").append("marker").attr("id",i+"_"+t+"-zeroOrMoreStart").attr("class","marker zeroOrMore "+t).attr("refX",18).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("orient","auto"),n=(n.append("circle").attr("fill","white").attr("cx",48).attr("cy",18).attr("r",6),n.append("path").attr("d","M0,18 Q18,0 36,18 Q18,36 0,18"),e.append("defs").append("marker").attr("id",i+"_"+t+"-zeroOrMoreEnd").attr("class","marker zeroOrMore "+t).attr("refX",39).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("orient","auto"));n.append("circle").attr("fill","white").attr("cx",9).attr("cy",18).attr("r",6),n.append("path").attr("d","M21,18 Q39,0 57,18 Q39,36 21,18")},"zero_or_more"),BD=mt((e,t,i)=>{e.append("defs").append("marker").attr("id",i+"_"+t+"-requirement_arrowEnd").attr("refX",20).attr("refY",10).attr("markerWidth",20).attr("markerHeight",20).attr("orient","auto").append("path").attr("d",`M0,0
|
||
L20,10
|
||
M20,10
|
||
L0,20`)},"requirement_arrow"),FD=mt((e,t,i)=>{e=e.append("defs").append("marker").attr("id",i+"_"+t+"-requirement_containsStart").attr("refX",0).attr("refY",10).attr("markerWidth",20).attr("markerHeight",20).attr("orient","auto").append("g");e.append("circle").attr("cx",10).attr("cy",10).attr("r",9).attr("fill","none"),e.append("line").attr("x1",1).attr("x2",19).attr("y1",10).attr("y2",10),e.append("line").attr("y1",1).attr("y2",19).attr("x1",10).attr("x2",10)},"requirement_contains"),jD={extension:_D,composition:CD,aggregation:AD,dependency:ED,lollipop:$D,point:LD,circle:RD,cross:MD,barb:ID,only_one:ND,zero_or_one:DD,one_or_more:OD,zero_or_more:PD,requirement_arrow:BD,requirement_contains:FD},zD=SD});async function qD(t,i,n){let r,s;"rect"===i.shape&&(i.rx&&i.ry?i.shape="roundedRect":i.shape="squareRect");var a=i.shape?PN[i.shape]:void 0;if(!a)throw new Error(`No such shape: ${i.shape}. Please check your syntax.`);if(i.link){let e;"sandbox"===n.config.securityLevel?e="_top":i.linkTarget&&(e=i.linkTarget||"_blank"),r=t.insert("svg:a").attr("xlink:href",i.link).attr("target",e??null),s=await a(r,i,n)}else s=await a(t,i,n),r=s;return i.tooltip&&s.attr("title",i.tooltip),WD.set(i.id,r),i.haveCallback&&r.attr("class",r.attr("class")+" clickable"),r}var WD,VD,GD,YD,XD,KD=e(()=>{"use strict";t(),KN(),WD=new Map,mt(qD,"insertNode"),VD=mt((e,t)=>{WD.set(t.id,e)},"setNodeElem"),GD=mt(()=>{WD.clear()},"clear"),YD=mt(e=>{var t=WD.get(e.id),i=(I.trace("Transforming node",e.diff,e,"translate("+(e.x-e.width/2-5)+", "+e.width/2+")"),e.diff||0);return e.clusterNode?t.attr("transform","translate("+(e.x+i-e.width/2)+", "+(e.y-e.height/2-8)+")"):t.attr("transform","translate("+e.x+", "+e.y+")"),i},"positionNode")}),ZD=e(()=>{"use strict";Mn(),hh(),t(),eD(),HD(),UD(),KD(),r(),sC(),XD={common:$,getConfig:Ii,insertCluster:YN,insertEdge:TD,insertEdgeLabel:mD,insertMarkers:zD,insertNode:qD,interpolateToCurve:y_,labelHelper:rL,log:I,positionEdgeLabel:yD}});function QD(e){return"symbol"==typeof e||Kk(e)&&"[object Symbol]"==E6(e)}var JD,eO=e(()=>{"use strict";$6(),Zk(),mt(QD,"isSymbol"),JD=QD});function tO(e,t){for(var i=-1,n=null==e?0:e.length,r=Array(n);++i<n;)r[i]=t(e[i],i,e);return r}var iO,nO=e(()=>{"use strict";mt(tO,"arrayMap"),iO=tO});function rO(e){var t;return"string"==typeof e?e:sT(e)?iO(e,rO)+"":JD(e)?oO?oO.call(e):"":"0"==(t=e+"")&&1/e==-sO?"-0":t}var sO,aO,oO,lO,cO=e(()=>{"use strict";p6(),nO(),lT(),eO(),sO=1/0,aO=t6?t6.prototype:void 0,oO=aO?aO.toString:void 0,mt(rO,"baseToString"),lO=rO});function hO(e){for(var t=e.length;t--&&uO.test(e.charAt(t)););return t}var uO,dO,pO=e(()=>{"use strict";uO=/\s/,mt(hO,"trimmedEndIndex"),dO=hO});function gO(e){return e&&e.slice(0,dO(e)+1).replace(fO,"")}var fO,mO,yO=e(()=>{"use strict";pO(),fO=/^\s+/,mt(gO,"baseTrim"),mO=gO});function bO(e){if("number"==typeof e)return e;if(JD(e))return vO;if(R6(e)&&(t="function"==typeof e.valueOf?e.valueOf():e,e=R6(t)?t+"":t),"string"!=typeof e)return 0===e?e:+e;e=mO(e);var t=wO.test(e);return t||kO.test(e)?TO(e.slice(2),t?2:8):xO.test(e)?vO:+e}var vO,xO,wO,kO,TO,SO,_O=e(()=>{"use strict";yO(),M6(),eO(),vO=NaN,xO=/^[-+]0x[0-9a-f]+$/i,wO=/^0b[01]+$/i,kO=/^0o[0-7]+$/i,TO=parseInt,mt(bO,"toNumber"),SO=bO});function CO(e){return e?(e=SO(e))===1/0||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}var AO,EO=e(()=>{"use strict";_O(),mt(CO,"toFinite"),AO=CO});function $O(e){var e=AO(e),t=e%1;return e==e?t?e-t:e:0}var LO,RO,MO,IO=e(()=>{"use strict";EO(),mt($O,"toInteger"),LO=$O}),NO=e(()=>{"use strict";c8(),d6(),RO=a8(Jw,"WeakMap"),MO=RO});function DO(){}var OO,PO=e(()=>{"use strict";mt(DO,"noop"),OO=DO});function BO(e,t){for(var i=-1,n=null==e?0:e.length;++i<n&&!1!==t(e[i],i,e););return e}var FO,jO=e(()=>{"use strict";mt(BO,"arrayEach"),FO=BO});function zO(e,t,i,n){for(var r=e.length,s=i+(n?1:-1);n?s--:++s<r;)if(t(e[s],s,e))return s;return-1}var HO,UO=e(()=>{"use strict";mt(zO,"baseFindIndex"),HO=zO});function qO(e){return e!=e}var WO,VO=e(()=>{"use strict";mt(qO,"baseIsNaN"),WO=qO});function GO(e,t,i){for(var n=i-1,r=e.length;++n<r;)if(e[n]===t)return n;return-1}var YO,XO=e(()=>{"use strict";mt(GO,"strictIndexOf"),YO=GO});function KO(e,t,i){return t==t?YO(e,t,i):HO(e,WO,i)}var ZO,QO=e(()=>{"use strict";UO(),VO(),XO(),mt(KO,"baseIndexOf"),ZO=KO});function JO(e,t){return!!(null==e?0:e.length)&&-1<ZO(e,t,0)}var eP,tP,iP,nP=e(()=>{"use strict";QO(),mt(JO,"arrayIncludes"),eP=JO}),rP=e(()=>{"use strict";jk(),tP=Pk(Object.keys,Object),iP=tP});function sP(e){if(!qk(e))return iP(e);var t,i=[];for(t in Object(e))oP.call(e,t)&&"constructor"!=t&&i.push(t);return i}var aP,oP,lP,cP=e(()=>{"use strict";Wk(),rP(),aP=Object.prototype,oP=aP.hasOwnProperty,mt(sP,"baseKeys"),lP=sP});function hP(e){return(pT(e)?fS:lP)(e)}var uP,dP,pP,gP,fP=e(()=>{"use strict";mS(),cP(),gT(),mt(hP,"keys"),uP=hP}),mP=e(()=>{"use strict";tS(),rS(),f_(),gT(),Wk(),fP(),pP=Object.prototype,dP=pP.hasOwnProperty,pP=d_(function(e,t){if(qk(t)||pT(t))nS(t,uP(t),e);else for(var i in t)dP.call(t,i)&&eS(e,i,t[i])}),gP=pP});function yP(e,t){var i;return!sT(e)&&(!("number"!=(i=typeof e)&&"symbol"!=i&&"boolean"!=i&&null!=e&&!JD(e))||vP.test(e)||!bP.test(e)||null!=t&&e in Object(t))}var bP,vP,xP,wP=e(()=>{"use strict";lT(),eO(),bP=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,vP=/^\w*$/,mt(yP,"isKey"),xP=yP});function kP(e){var e=N7(e,function(e){return 500===t.size&&t.clear(),e}),t=e.cache;return e}var TP,SP,_P,CP,AP,EP=e(()=>{"use strict";D7(),mt(kP,"memoizeCapped"),TP=kP}),$P=e(()=>{"use strict";EP(),SP=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,_P=/\\(\\)?/g,CP=TP(function(e){var r=[];return 46===e.charCodeAt(0)&&r.push(""),e.replace(SP,function(e,t,i,n){r.push(i?n.replace(_P,"$1"):t||e)}),r}),AP=CP});function LP(e){return null==e?"":lO(e)}var RP,MP=e(()=>{"use strict";cO(),mt(LP,"toString"),RP=LP});function IP(e,t){return sT(e)?e:xP(e,t)?[e]:AP(RP(e))}var NP,DP=e(()=>{"use strict";lT(),wP(),$P(),MP(),mt(IP,"castPath"),NP=IP});function OP(e){var t;return"string"==typeof e||JD(e)?e:"0"==(t=e+"")&&1/e==-1/0?"-0":t}var PP,BP=e(()=>{"use strict";eO(),mt(OP,"toKey"),PP=OP});function FP(e,t){for(var i=0,n=(t=NP(t,e)).length;null!=e&&i<n;)e=e[PP(t[i++])];return i&&i==n?e:void 0}var jP,zP=e(()=>{"use strict";DP(),BP(),mt(FP,"baseGet"),jP=FP});function HP(e,t,i){e=null==e?void 0:jP(e,t);return void 0===e?i:e}var UP,qP=e(()=>{"use strict";zP(),mt(HP,"get"),UP=HP});function WP(e,t){for(var i=-1,n=t.length,r=e.length;++i<n;)e[r+i]=t[i];return e}var VP,GP=e(()=>{"use strict";mt(WP,"arrayPush"),VP=WP});function YP(e){return sT(e)||nT(e)||!!(XP&&e&&e[XP])}var XP,KP,ZP=e(()=>{"use strict";p6(),oT(),lT(),XP=t6?t6.isConcatSpreadable:void 0,mt(YP,"isFlattenable"),KP=YP});function QP(e,t,i,n,r){var s=-1,a=e.length;for(i=i||KP,r=r||[];++s<a;){var o=e[s];0<t&&i(o)?1<t?QP(o,t-1,i,n,r):VP(r,o):n||(r[r.length]=o)}return r}var JP,eB=e(()=>{"use strict";GP(),ZP(),mt(QP,"baseFlatten"),JP=QP});function tB(e){return(null==e?0:e.length)?JP(e,1):[]}var iB,nB=e(()=>{"use strict";eB(),mt(tB,"flatten"),iB=tB});function rB(e){return i_(WS(e,void 0,iB),e+"")}var sB,aB=e(()=>{"use strict";nB(),VS(),r_(),mt(rB,"flatRest"),sB=rB});function oB(e,t,i){var n=-1,r=e.length;(i=r<i?r:i)<0&&(i+=r),r=i<(t=t<0?r<-t?0:r+t:t)?0:i-t>>>0,t>>>=0;for(var s=Array(r);++n<r;)s[n]=e[n+t];return s}var lB,cB=e(()=>{"use strict";mt(oB,"baseSlice"),lB=oB});function hB(e){return uB.test(e)}var uB,dB,pB=e(()=>{"use strict";uB=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]"),mt(hB,"hasUnicode"),dB=hB});function gB(e,t,i,n){var r=-1,s=null==e?0:e.length;for(n&&s&&(i=e[++r]);++r<s;)i=t(i,e[r],r,e);return i}var fB,mB=e(()=>{"use strict";mt(gB,"arrayReduce"),fB=gB});function yB(e,t){return e&&nS(t,uP(t),e)}var bB,vB=e(()=>{"use strict";rS(),fP(),mt(yB,"baseAssign"),bB=yB});function xB(e,t){return e&&nS(t,CS(t),e)}var wB,kB=e(()=>{"use strict";rS(),AS(),mt(xB,"baseAssignIn"),wB=xB});function TB(e,t){for(var i=-1,n=null==e?0:e.length,r=0,s=[];++i<n;){var a=e[i];t(a,i,e)&&(s[r++]=a)}return s}var SB,_B=e(()=>{"use strict";mt(TB,"arrayFilter"),SB=TB});function CB(){return[]}var AB,EB,$B,LB,RB,MB=e(()=>{"use strict";mt(CB,"stubArray"),AB=CB}),IB=e(()=>{"use strict";_B(),MB(),EB=Object.prototype,$B=EB.propertyIsEnumerable,LB=Object.getOwnPropertySymbols,RB=LB?function(t){return null==t?[]:(t=Object(t),SB(LB(t),function(e){return $B.call(t,e)}))}:AB});function NB(e,t){return nS(e,RB(e),t)}var DB,OB,PB,BB=e(()=>{"use strict";rS(),IB(),mt(NB,"copySymbols"),DB=NB}),FB=e(()=>{"use strict";GP(),zk(),IB(),MB(),OB=Object.getOwnPropertySymbols,PB=OB?function(e){for(var t=[];e;)VP(t,RB(e)),e=Fk(e);return t}:AB});function jB(e,t){return nS(e,PB(e),t)}var zB,HB=e(()=>{"use strict";rS(),FB(),mt(jB,"copySymbolsIn"),zB=jB});function UB(e,t,i){t=t(e);return sT(e)?t:VP(t,i(e))}var qB,WB=e(()=>{"use strict";GP(),lT(),mt(UB,"baseGetAllKeys"),qB=UB});function VB(e){return qB(e,uP,RB)}var GB,YB=e(()=>{"use strict";WB(),IB(),fP(),mt(VB,"getAllKeys"),GB=VB});function XB(e){return qB(e,CS,PB)}var KB,ZB,QB,JB,eF,tF,iF,nF,rF,sF,aF,oF,lF,cF,hF,uF,dF,pF,gF,fF=e(()=>{"use strict";WB(),FB(),AS(),mt(XB,"getAllKeysIn"),KB=XB}),mF=e(()=>{"use strict";c8(),d6(),ZB=a8(Jw,"DataView"),QB=ZB}),yF=e(()=>{"use strict";c8(),d6(),JB=a8(Jw,"Promise"),eF=JB}),bF=e(()=>{"use strict";c8(),d6(),tF=a8(Jw,"Set"),iF=tF}),vF=e(()=>{"use strict";mF(),o7(),yF(),bF(),NO(),$6(),G6(),nF="[object Map]",rF="[object Promise]",sF="[object Set]",aF="[object WeakMap]",oF="[object DataView]",lF=V6(QB),cF=V6(s7),hF=V6(eF),uF=V6(iF),dF=V6(MO),pF=E6,(QB&&pF(new QB(new ArrayBuffer(1)))!=oF||s7&&pF(new s7)!=nF||eF&&pF(eF.resolve())!=rF||iF&&pF(new iF)!=sF||MO&&pF(new MO)!=aF)&&(pF=mt(function(e){var t=E6(e),e="[object Object]"==t?e.constructor:void 0,e=e?V6(e):"";if(e)switch(e){case lF:return oF;case cF:return nF;case hF:return rF;case uF:return sF;case dF:return aF}return t},"getTag")),gF=pF});function xF(e){var t=e.length,i=new e.constructor(t);return t&&"string"==typeof e[0]&&kF.call(e,"index")&&(i.index=e.index,i.input=e.input),i}var wF,kF,TF,SF=e(()=>{"use strict";wF=Object.prototype,kF=wF.hasOwnProperty,mt(xF,"initCloneArray"),TF=xF});function _F(e,t){t=t?_k(e.buffer):e.buffer;return new e.constructor(t,e.byteOffset,e.byteLength)}var CF,AF=e(()=>{"use strict";Ck(),mt(_F,"cloneDataView"),CF=_F});function EF(e){var t=new e.constructor(e.source,$F.exec(e));return t.lastIndex=e.lastIndex,t}var $F,LF,RF=e(()=>{"use strict";$F=/\w*$/,mt(EF,"cloneRegExp"),LF=EF});function MF(e){return NF?Object(NF.call(e)):{}}var IF,NF,DF,OF=e(()=>{"use strict";p6(),IF=t6?t6.prototype:void 0,NF=IF?IF.valueOf:void 0,mt(MF,"cloneSymbol"),DF=MF});function PF(e,t,i){var n=e.constructor;switch(t){case"[object ArrayBuffer]":return _k(e);case"[object Boolean]":case"[object Date]":return new n(+e);case"[object DataView]":return CF(e,i);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 Ek(e,i);case"[object Map]":return new n;case"[object Number]":case"[object String]":return new n(e);case"[object RegExp]":return LF(e);case"[object Set]":return new n;case"[object Symbol]":return DF(e)}}var BF,FF=e(()=>{"use strict";Ck(),AF(),RF(),OF(),$k(),mt(PF,"initCloneByTag"),BF=PF});function jF(e){return Kk(e)&&"[object Map]"==gF(e)}var zF,HF,UF,qF=e(()=>{"use strict";vF(),Zk(),mt(jF,"baseIsMap"),zF=jF}),WF=e(()=>{"use strict";qF(),WT(),VT(),HF=HT&&HT.isMap,HF=HF?BT(HF):zF,UF=HF});function VF(e){return Kk(e)&&"[object Set]"==gF(e)}var GF,YF,XF,KF=e(()=>{"use strict";vF(),Zk(),mt(VF,"baseIsSet"),GF=VF}),ZF=e(()=>{"use strict";KF(),WT(),VT(),YF=HT&&HT.isSet,YF=YF?BT(YF):GF,XF=YF});function QF(i,n,r,e,t,s){var a,o=n&JF,l=n&ej,c=n&tj;if(void 0===(a=r?t?r(i,e,t,s):r(i):a)){if(!R6(i))return i;e=sT(i);if(e){if(a=TF(i),!o)return Rk(i,a)}else{var h=gF(i),u=h==nj||h==rj;if(kT(i))return vk(i,o);if(h==sj||h==ij||u&&!t){if(a=l||u?{}:Gk(i),!o)return l?zB(i,wB(a,i)):DB(i,bB(a,i))}else{if(!aj[h])return t?i:{};a=BF(i,h,o)}}u=(s=s||new Q7).get(i);if(u)return u;s.set(i,a),XF(i)?i.forEach(function(e){a.add(QF(e,n,r,e,i,s))}):UF(i)&&i.forEach(function(e,t){a.set(t,QF(e,n,r,t,i,s))});var d=e?void 0:(c?l?KB:GB:l?CS:uP)(i);FO(d||i,function(e,t){d&&(e=i[t=e]),eS(a,t,QF(e,n,r,t,i,s))})}return a}var JF,ej,tj,ij,nj,rj,sj,aj,oj,lj=e(()=>{"use strict";tk(),jO(),tS(),vB(),kB(),kk(),Nk(),BB(),HB(),YB(),fF(),vF(),SF(),FF(),Yk(),lT(),ST(),WF(),M6(),ZF(),fP(),AS(),JF=1,ej=2,tj=4,nj="[object Function]",rj="[object GeneratorFunction]",sj="[object Object]",(aj={})[ij="[object Arguments]"]=aj["[object Array]"]=aj["[object ArrayBuffer]"]=aj["[object DataView]"]=aj["[object Boolean]"]=aj["[object Date]"]=aj["[object Float32Array]"]=aj["[object Float64Array]"]=aj["[object Int8Array]"]=aj["[object Int16Array]"]=aj["[object Int32Array]"]=aj["[object Map]"]=aj["[object Number]"]=aj[sj]=aj["[object RegExp]"]=aj["[object Set]"]=aj["[object String]"]=aj["[object Symbol]"]=aj["[object Uint8Array]"]=aj["[object Uint8ClampedArray]"]=aj["[object Uint16Array]"]=aj["[object Uint32Array]"]=!0,aj["[object Error]"]=aj[nj]=aj["[object WeakMap]"]=!1,mt(QF,"baseClone"),oj=QF});function cj(e){return oj(e,4)}var hj,uj=e(()=>{"use strict";lj(),mt(cj,"clone"),hj=cj});function dj(e){return oj(e,5)}var pj,gj=e(()=>{"use strict";lj(),mt(dj,"cloneDeep"),pj=dj});function fj(e){for(var t=-1,i=null==e?0:e.length,n=0,r=[];++t<i;){var s=e[t];s&&(r[n++]=s)}return r}var mj,yj=e(()=>{"use strict";mt(fj,"compact"),mj=fj});function bj(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}var vj,xj=e(()=>{"use strict";mt(bj,"setCacheAdd"),vj=bj});function wj(e){return this.__data__.has(e)}var kj,Tj=e(()=>{"use strict";mt(wj,"setCacheHas"),kj=wj});function Sj(e){var t=-1,i=null==e?0:e.length;for(this.__data__=new L7;++t<i;)this.add(e[t])}var _j,Cj=e(()=>{"use strict";R7(),xj(),Tj(),mt(Sj,"SetCache"),Sj.prototype.add=Sj.prototype.push=vj,Sj.prototype.has=kj,_j=Sj});function Aj(e,t){for(var i=-1,n=null==e?0:e.length;++i<n;)if(t(e[i],i,e))return!0;return!1}var Ej,$j=e(()=>{"use strict";mt(Aj,"arraySome"),Ej=Aj});function Lj(e,t){return e.has(t)}var Rj,Mj=e(()=>{"use strict";mt(Lj,"cacheHas"),Rj=Lj});function Ij(e,t,i,n,r,s){var a=1&i,o=e.length,l=t.length;if(o!=l&&!(a&&o<l))return!1;var l=s.get(e),c=s.get(t);if(l&&c)return l==t&&c==e;var h=-1,u=!0,d=2&i?new _j:void 0;for(s.set(e,t),s.set(t,e);++h<o;){var p,g=e[h],f=t[h];if(void 0!==(p=n?a?n(f,g,h,t,e,s):n(g,f,h,e,t,s):p)){if(p)continue;u=!1;break}if(d){if(!Ej(t,function(e,t){if(!Rj(d,t)&&(g===e||r(g,e,i,n,s)))return d.push(t)})){u=!1;break}}else if(g!==f&&!r(g,f,i,n,s)){u=!1;break}}return s.delete(e),s.delete(t),u}var Nj,Dj=e(()=>{"use strict";Cj(),$j(),Mj(),mt(Ij,"equalArrays"),Nj=Ij});function Oj(e){var i=-1,n=Array(e.size);return e.forEach(function(e,t){n[++i]=[t,e]}),n}var Pj,Bj=e(()=>{"use strict";mt(Oj,"mapToArray"),Pj=Oj});function Fj(e){var t=-1,i=Array(e.size);return e.forEach(function(e){i[++t]=e}),i}var jj,zj=e(()=>{"use strict";mt(Fj,"setToArray"),jj=Fj});function Hj(e,t,i,n,r,s,a){switch(i){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!s(new wk(e),new wk(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return P8(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var o=Pj;case"[object Set]":o=o||jj;if(e.size!=t.size&&!(1&n))return!1;var l=a.get(e);if(l)return l==t;n|=2,a.set(e,t);l=Nj(o(e),o(t),n,r,s,a);return a.delete(e),l;case"[object Symbol]":if(qj)return qj.call(e)==qj.call(t)}return!1}var Uj,qj,Wj,Vj=e(()=>{"use strict";p6(),Tk(),B8(),Dj(),Bj(),zj(),Uj=t6?t6.prototype:void 0,qj=Uj?Uj.valueOf:void 0,mt(Hj,"equalByTag"),Wj=Hj});function Gj(e,t,i,n,r,s){var a=1&i,o=GB(e),l=o.length;if(l!=GB(t).length&&!a)return!1;for(var c=l;c--;){var h=o[c];if(!(a?h in t:Xj.call(t,h)))return!1}var u=s.get(e),d=s.get(t);if(u&&d)return u==t&&d==e;var p=!0;s.set(e,t),s.set(t,e);for(var g=a;++c<l;){var f,m=e[h=o[c]],y=t[h];if(!(void 0===(f=n?a?n(y,m,h,t,e,s):n(m,y,h,e,t,s):f)?m===y||r(m,y,i,n,s):f)){p=!1;break}g=g||"constructor"==h}return p&&!g&&(u=e.constructor)!=(d=t.constructor)&&"constructor"in e&&"constructor"in t&&!("function"==typeof u&&u instanceof u&&"function"==typeof d&&d instanceof d)&&(p=!1),s.delete(e),s.delete(t),p}var Yj,Xj,Kj,Zj=e(()=>{"use strict";YB(),Yj=Object.prototype,Xj=Yj.hasOwnProperty,mt(Gj,"equalObjects"),Kj=Gj});function Qj(e,t,i,n,r,s){var a=sT(e),o=sT(t),l=a?ez:gF(e),o=o?ez:gF(t),c=(l=l==Jj?tz:l)==tz,h=(o=o==Jj?tz:o)==tz,o=l==o;if(o&&kT(e)){if(!kT(t))return!1;c=!(a=!0)}if(o&&!c)return s=s||new Q7,a||qT(e)?Nj(e,t,i,n,r,s):Wj(e,t,l,i,n,r,s);if(!(1&i)){a=c&&nz.call(e,"__wrapped__"),l=h&&nz.call(t,"__wrapped__");if(a||l)return r(a?e.value():e,l?t.value():t,i,n,s=s||new Q7)}return o&&(s=s||new Q7,Kj(e,t,i,n,r,s))}var Jj,ez,tz,iz,nz,rz,sz=e(()=>{"use strict";tk(),Dj(),Vj(),Zj(),vF(),lT(),ST(),GT(),Jj="[object Arguments]",ez="[object Array]",tz="[object Object]",iz=Object.prototype,nz=iz.hasOwnProperty,mt(Qj,"baseIsEqualDeep"),rz=Qj});function az(e,t,i,n,r){return e===t||(null==e||null==t||!Kk(e)&&!Kk(t)?e!=e&&t!=t:rz(e,t,i,n,az,r))}var oz,lz=e(()=>{"use strict";sz(),Zk(),mt(az,"baseIsEqual"),oz=az});function cz(e,t,i,n){var r=i.length,s=r,a=!n;if(null==e)return!s;for(e=Object(e);r--;){var o=i[r];if(a&&o[2]?o[1]!==e[o[0]]:!(o[0]in e))return!1}for(;++r<s;){var l=(o=i[r])[0],c=e[l],h=o[1];if(a&&o[2]){if(void 0===c&&!(l in e))return!1}else{var u,d=new Q7;if(!(void 0===(u=n?n(c,h,l,e,t,d):u)?oz(h,c,3,n,d):u))return!1}}return!0}var hz,uz=e(()=>{"use strict";tk(),lz(),mt(cz,"baseIsMatch"),hz=cz});function dz(e){return e==e&&!R6(e)}var pz,gz=e(()=>{"use strict";M6(),mt(dz,"isStrictComparable"),pz=dz});function fz(e){for(var t=uP(e),i=t.length;i--;){var n=t[i],r=e[n];t[i]=[n,r,pz(r)]}return t}var mz,yz=e(()=>{"use strict";gz(),fP(),mt(fz,"getMatchData"),mz=fz});function bz(t,i){return function(e){return null!=e&&e[t]===i&&(void 0!==i||t in Object(e))}}var vz,xz=e(()=>{"use strict";mt(bz,"matchesStrictComparable"),vz=bz});function wz(t){var i=mz(t);return 1==i.length&&i[0][2]?vz(i[0][0],i[0][1]):function(e){return e===t||hz(e,t,i)}}var kz,Tz=e(()=>{"use strict";uz(),yz(),xz(),mt(wz,"baseMatches"),kz=wz});function Sz(e,t){return null!=e&&t in Object(e)}var _z,Cz=e(()=>{"use strict";mt(Sz,"baseHasIn"),_z=Sz});function Az(e,t,i){for(var n=-1,r=(t=NP(t,e)).length,s=!1;++n<r;){var a=PP(t[n]);if(!(s=null!=e&&i(e,a)))break;e=e[a]}return s||++n!=r?s:!!(r=null==e?0:e.length)&&hT(r)&&hS(a,r)&&(sT(e)||nT(e))}var Ez,$z=e(()=>{"use strict";DP(),oT(),lT(),uS(),uT(),BP(),mt(Az,"hasPath"),Ez=Az});function Lz(e,t){return null!=e&&Ez(e,t,_z)}var Rz,Mz=e(()=>{"use strict";Cz(),$z(),mt(Lz,"hasIn"),Rz=Lz});function Iz(i,n){return xP(i)&&pz(n)?vz(PP(i),n):function(e){var t=UP(e,i);return void 0===t&&t===n?Rz(e,i):oz(n,t,3)}}var Nz,Dz=e(()=>{"use strict";lz(),qP(),Mz(),wP(),gz(),xz(),BP(),mt(Iz,"baseMatchesProperty"),Nz=Iz});function Oz(t){return function(e){return e?.[t]}}var Pz,Bz=e(()=>{"use strict";mt(Oz,"baseProperty"),Pz=Oz});function Fz(t){return function(e){return jP(e,t)}}var jz,zz=e(()=>{"use strict";zP(),mt(Fz,"basePropertyDeep"),jz=Fz});function Hz(e){return xP(e)?Pz(PP(e)):jz(e)}var Uz,qz=e(()=>{"use strict";Bz(),zz(),wP(),BP(),mt(Hz,"property"),Uz=Hz});function Wz(e){return"function"==typeof e?e:null==e?BS:"object"==typeof e?sT(e)?Nz(e[0],e[1]):kz(e):Uz(e)}var Vz,Gz=e(()=>{"use strict";Tz(),Dz(),FS(),lT(),qz(),mt(Wz,"baseIteratee"),Vz=Wz});function Yz(e,t,i,n){for(var r=-1,s=null==e?0:e.length;++r<s;){var a=e[r];t(n,a,i(a),e)}return n}var Xz,Kz=e(()=>{"use strict";mt(Yz,"arrayAggregator"),Xz=Yz});function Zz(e,t){return e&&dk(e,t,uP)}var Qz,Jz=e(()=>{"use strict";gk(),fP(),mt(Zz,"baseForOwn"),Qz=Zz});function eH(s,a){return function(e,t){if(null!=e){if(!pT(e))return s(e,t);for(var i=e.length,n=a?i:-1,r=Object(e);(a?n--:++n<i)&&!1!==t(r[n],n,r););}return e}}var tH,iH,nH,rH=e(()=>{"use strict";gT(),mt(eH,"createBaseEach"),tH=eH}),sH=e(()=>{"use strict";Jz(),rH(),iH=tH(Qz),nH=iH});function aH(e,n,r,s){return nH(e,function(e,t,i){n(s,e,r(e),i)}),s}var oH,lH=e(()=>{"use strict";sH(),mt(aH,"baseAggregator"),oH=aH});function cH(r,s){return function(e,t){var i=sT(e)?Xz:oH,n=s?s():{};return i(e,r,Vz(t,2),n)}}var hH,uH,dH,pH,gH,fH,mH,yH=e(()=>{"use strict";Kz(),lH(),Gz(),lT(),mt(cH,"createAggregator"),hH=cH}),bH=e(()=>{"use strict";d6(),uH=mt(function(){return Jw.Date.now()},"now"),dH=uH}),vH=e(()=>{"use strict";o_(),B8(),h_(),AS(),pH=Object.prototype,gH=pH.hasOwnProperty,fH=a_(function(e,t){e=Object(e);var i=-1,n=t.length,r=2<n?t[2]:void 0;for(r&&c_(t[0],t[1],r)&&(n=1);++i<n;)for(var s=t[i],a=CS(s),o=-1,l=a.length;++o<l;){var c=a[o],h=e[c];(void 0===h||P8(h,pH[c])&&!gH.call(e,c))&&(e[c]=s[c])}return e}),mH=fH});function xH(e,t,i){for(var n=-1,r=null==e?0:e.length;++n<r;)if(i(t,e[n]))return!0;return!1}var wH,kH=e(()=>{"use strict";mt(xH,"arrayIncludesWith"),wH=xH});function TH(e,t,i,n){var r=-1,s=eP,a=!0,o=e.length,l=[],c=t.length;if(o){i&&(t=iO(t,BT(i))),n?(s=wH,a=!1):200<=t.length&&(s=Rj,a=!1,t=new _j(t));e:for(;++r<o;){var h=e[r],u=null==i?h:i(h),h=n||0!==h?h:0;if(a&&u==u){for(var d=c;d--;)if(t[d]===u)continue e;l.push(h)}else s(t,u,n)||l.push(h)}}return l}var SH,_H,CH,AH=e(()=>{"use strict";Cj(),nP(),kH(),nO(),WT(),Mj(),mt(TH,"baseDifference"),SH=TH}),EH=e(()=>{"use strict";AH(),eB(),o_(),yT(),_H=a_(function(e,t){return mT(e)?SH(e,JP(t,1,mT,!0)):[]}),CH=_H});function $H(e){var t=null==e?0:e.length;return t?e[t-1]:void 0}var LH,RH=e(()=>{"use strict";mt($H,"last"),LH=$H});function MH(e,t,i){var n=null==e?0:e.length;return n?(t=i||void 0===t?1:LO(t),lB(e,t<0?0:t,n)):[]}var IH,NH=e(()=>{"use strict";cB(),IO(),mt(MH,"drop"),IH=MH});function DH(e,t,i){var n=null==e?0:e.length;return n?(t=i||void 0===t?1:LO(t),lB(e,0,(t=n-t)<0?0:t)):[]}var OH,PH=e(()=>{"use strict";cB(),IO(),mt(DH,"dropRight"),OH=DH});function BH(e){return"function"==typeof e?e:BS}var FH,jH=e(()=>{"use strict";FS(),mt(BH,"castFunction"),FH=BH});function zH(e,t){return(sT(e)?FO:nH)(e,FH(t))}var b,HH=e(()=>{"use strict";jO(),sH(),jH(),lT(),mt(zH,"forEach"),b=zH}),UH=e(()=>{"use strict";HH()});function qH(e,t){for(var i=-1,n=null==e?0:e.length;++i<n;)if(!t(e[i],i,e))return!1;return!0}var WH,VH=e(()=>{"use strict";mt(qH,"arrayEvery"),WH=qH});function GH(e,n){var r=!0;return nH(e,function(e,t,i){return r=!!n(e,t,i)}),r}var YH,XH=e(()=>{"use strict";sH(),mt(GH,"baseEvery"),YH=GH});function KH(e,t,i){var n=sT(e)?WH:YH;return i&&c_(e,t,i)&&(t=void 0),n(e,Vz(t,3))}var ZH,QH=e(()=>{"use strict";VH(),XH(),Gz(),lT(),h_(),mt(KH,"every"),ZH=KH});function JH(e,n){var r=[];return nH(e,function(e,t,i){n(e,t,i)&&r.push(e)}),r}var eU,tU=e(()=>{"use strict";sH(),mt(JH,"baseFilter"),eU=JH});function iU(e,t){return(sT(e)?SB:eU)(e,Vz(t,3))}var nU,rU=e(()=>{"use strict";_B(),tU(),Gz(),lT(),mt(iU,"filter"),nU=iU});function sU(s){return function(e,t,i){var n,r=Object(e),t=(pT(e)||(n=Vz(t,3),e=uP(e),t=mt(function(e){return n(r[e],e,r)},"predicate")),s(e,t,i));return-1<t?r[n?e[t]:t]:void 0}}var aU,oU=e(()=>{"use strict";Gz(),gT(),fP(),mt(sU,"createFind"),aU=sU});function lU(e,t,i){var n=null==e?0:e.length;return n?((i=null==i?0:LO(i))<0&&(i=cU(n+i,0)),HO(e,Vz(t,3),i)):-1}var cU,hU,uU,dU,pU=e(()=>{"use strict";UO(),Gz(),IO(),cU=Math.max,mt(lU,"findIndex"),hU=lU}),gU=e(()=>{"use strict";oU(),pU(),uU=aU(hU),dU=uU});function fU(e){return e&&e.length?e[0]:void 0}var mU,yU=e(()=>{"use strict";mt(fU,"head"),mU=fU}),bU=e(()=>{"use strict";yU()});function vU(e,n){var r=-1,s=pT(e)?Array(e.length):[];return nH(e,function(e,t,i){s[++r]=n(e,t,i)}),s}var xU,wU=e(()=>{"use strict";sH(),gT(),mt(vU,"baseMap"),xU=vU});function kU(e,t){return(sT(e)?iO:xU)(e,Vz(t,3))}var v,TU=e(()=>{"use strict";nO(),Gz(),wU(),lT(),mt(kU,"map"),v=kU});function SU(e,t){return JP(v(e,t),1)}var _U,CU=e(()=>{"use strict";eB(),TU(),mt(SU,"flatMap"),_U=SU});function AU(e,t){return null==e?e:dk(e,FH(t),CS)}var EU,$U=e(()=>{"use strict";gk(),jH(),AS(),mt(AU,"forIn"),EU=AU});function LU(e,t){return e&&Qz(e,FH(t))}var RU,MU,IU,NU,DU=e(()=>{"use strict";Jz(),jH(),mt(LU,"forOwn"),RU=LU}),OU=e(()=>{"use strict";sk(),yH(),IU=Object.prototype,MU=IU.hasOwnProperty,IU=hH(function(e,t,i){MU.call(e,i)?e[i].push(t):rk(e,i,[t])}),NU=IU});function PU(e,t){return t<e}var BU,FU=e(()=>{"use strict";mt(PU,"baseGt"),BU=PU});function jU(e,t){return null!=e&&HU.call(e,t)}var zU,HU,UU,qU=e(()=>{"use strict";zU=Object.prototype,HU=zU.hasOwnProperty,mt(jU,"baseHas"),UU=jU});function WU(e,t){return null!=e&&Ez(e,t,UU)}var VU,GU=e(()=>{"use strict";qU(),$z(),mt(WU,"has"),VU=WU});function YU(e){return"string"==typeof e||!sT(e)&&Kk(e)&&"[object String]"==E6(e)}var XU,KU=e(()=>{"use strict";$6(),lT(),Zk(),mt(YU,"isString"),XU=YU});function ZU(t,e){return iO(e,function(e){return t[e]})}var QU,JU=e(()=>{"use strict";nO(),mt(ZU,"baseValues"),QU=ZU});function eq(e){return null==e?[]:QU(e,uP(e))}var tq,iq=e(()=>{"use strict";JU(),fP(),mt(eq,"values"),tq=eq});function nq(e,t,i,n){e=pT(e)?e:tq(e),i=i&&!n?LO(i):0;n=e.length;return i<0&&(i=rq(n+i,0)),XU(e)?i<=n&&-1<e.indexOf(t,i):!!n&&-1<ZO(e,t,i)}var rq,sq,aq=e(()=>{"use strict";QO(),gT(),KU(),IO(),iq(),rq=Math.max,mt(nq,"includes"),sq=nq});function oq(e,t,i){var n=null==e?0:e.length;return n?((i=null==i?0:LO(i))<0&&(i=lq(n+i,0)),ZO(e,t,i)):-1}var lq,cq,hq=e(()=>{"use strict";QO(),IO(),lq=Math.max,mt(oq,"indexOf"),cq=oq});function uq(e){if(null!=e){if(pT(e)&&(sT(e)||"string"==typeof e||"function"==typeof e.splice||kT(e)||qT(e)||nT(e)))return!e.length;var t,i=gF(e);if("[object Map]"==i||"[object Set]"==i)return!e.size;if(qk(e))return!lP(e).length;for(t in e)if(pq.call(e,t))return!1}return!0}var dq,pq,gq,fq=e(()=>{"use strict";cP(),vF(),oT(),lT(),gT(),ST(),Wk(),GT(),dq=Object.prototype,pq=dq.hasOwnProperty,mt(uq,"isEmpty"),gq=uq});function mq(e){return Kk(e)&&"[object RegExp]"==E6(e)}var yq,bq,vq,xq=e(()=>{"use strict";$6(),Zk(),mt(mq,"baseIsRegExp"),yq=mq}),wq=e(()=>{"use strict";xq(),WT(),VT(),bq=HT&&HT.isRegExp,bq=bq?BT(bq):yq,vq=bq});function kq(e){return void 0===e}var Tq,Sq=e(()=>{"use strict";mt(kq,"isUndefined"),Tq=kq});function _q(e,t){return e<t}var Cq,Aq=e(()=>{"use strict";mt(_q,"baseLt"),Cq=_q});function Eq(e,n){var r={};return n=Vz(n,3),Qz(e,function(e,t,i){rk(r,t,n(e,t,i))}),r}var $q,Lq=e(()=>{"use strict";sk(),Jz(),Gz(),mt(Eq,"mapValues"),$q=Eq});function Rq(e,t,i){for(var n=-1,r=e.length;++n<r;){var s,a,o=e[n],l=t(o);null!=l&&(void 0===s?l==l&&!JD(l):i(l,s))&&(s=l,a=o)}return a}var Mq,Iq=e(()=>{"use strict";eO(),mt(Rq,"baseExtremum"),Mq=Rq});function Nq(e){return e&&e.length?Mq(e,BS,BU):void 0}var Dq,Oq=e(()=>{"use strict";Iq(),FU(),FS(),mt(Nq,"max"),Dq=Nq});function Pq(e){return e&&e.length?Mq(e,BS,Cq):void 0}var Bq,Fq=e(()=>{"use strict";Iq(),Aq(),FS(),mt(Pq,"min"),Bq=Pq});function jq(e,t){return e&&e.length?Mq(e,Vz(t,2),Cq):void 0}var zq,Hq=e(()=>{"use strict";Iq(),Gz(),Aq(),mt(jq,"minBy"),zq=jq});function Uq(t){if("function"!=typeof t)throw new TypeError("Expected a function");return function(){var e=arguments;switch(e.length){case 0:return!t.call(this);case 1:return!t.call(this,e[0]);case 2:return!t.call(this,e[0],e[1]);case 3:return!t.call(this,e[0],e[1],e[2])}return!t.apply(this,e)}}var qq,Wq=e(()=>{"use strict";mt(Uq,"negate"),qq=Uq});function Vq(e,t,i,n){if(R6(e))for(var r=-1,s=(t=NP(t,e)).length,a=s-1,o=e;null!=o&&++r<s;){var l,c=PP(t[r]),h=i;if("__proto__"===c||"constructor"===c||"prototype"===c)return e;r!=a&&(l=o[c],void 0===(h=n?n(l,c,o):void 0))&&(h=R6(l)?l:hS(t[r+1])?[]:{}),eS(o,c,h),o=o[c]}return e}var Gq,Yq=e(()=>{"use strict";tS(),DP(),uS(),M6(),BP(),mt(Vq,"baseSet"),Gq=Vq});function Xq(e,t,i){for(var n=-1,r=t.length,s={};++n<r;){var a=t[n],o=jP(e,a);i(o,a)&&Gq(s,NP(a,e),o)}return s}var Kq,Zq=e(()=>{"use strict";zP(),Yq(),DP(),mt(Xq,"basePickBy"),Kq=Xq});function Qq(e,i){var t;return null==e?{}:(t=iO(KB(e),function(e){return[e]}),i=Vz(i),Kq(e,t,function(e,t){return i(e,t[0])}))}var Jq,eW=e(()=>{"use strict";nO(),Gz(),Zq(),fF(),mt(Qq,"pickBy"),Jq=Qq});function tW(e,t){var i=e.length;for(e.sort(t);i--;)e[i]=e[i].value;return e}var iW,nW=e(()=>{"use strict";mt(tW,"baseSortBy"),iW=tW});function rW(e,t){if(e!==t){var i=void 0!==e,n=null===e,r=e==e,s=JD(e),a=void 0!==t,o=null===t,l=t==t,c=JD(t);if(!o&&!c&&!s&&t<e||s&&a&&l&&!o&&!c||n&&a&&l||!i&&l||!r)return 1;if(!n&&!s&&!c&&e<t||c&&i&&r&&!n&&!s||o&&i&&r||!a&&r||!l)return-1}return 0}var sW,aW=e(()=>{"use strict";eO(),mt(rW,"compareAscending"),sW=rW});function oW(e,t,i){for(var n=-1,r=e.criteria,s=t.criteria,a=r.length,o=i.length;++n<a;){var l=sW(r[n],s[n]);if(l)return o<=n?l:l*("desc"==i[n]?-1:1)}return e.index-t.index}var lW,cW=e(()=>{"use strict";aW(),mt(oW,"compareMultiple"),lW=oW});function hW(e,n,i){n=n.length?iO(n,function(t){return sT(t)?function(e){return jP(e,1===t.length?t[0]:t)}:t}):[BS];var r=-1,e=(n=iO(n,BT(Vz)),xU(e,function(t,e,i){return{criteria:iO(n,function(e){return e(t)}),index:++r,value:t}}));return iW(e,function(e,t){return lW(e,t,i)})}var uW,dW,pW,gW=e(()=>{"use strict";nO(),zP(),Gz(),wU(),nW(),WT(),cW(),FS(),lT(),mt(hW,"baseOrderBy"),uW=hW}),fW=e(()=>{"use strict";Bz(),dW=Pz("length"),pW=dW});function mW(e){for(var t=CW.lastIndex=0;CW.test(e);)++t;return t}var yW,bW,vW,xW,wW,kW,TW,SW,_W,CW,AW,EW=e(()=>{"use strict";yW="["+(xW="\\ud800-\\udfff")+"]",bW="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",vW="\\ud83c[\\udffb-\\udfff]",_W="(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\\ud83c[\\udffb-\\udfff])?",SW="[\\ufe0e\\ufe0f]?",TW="(?:\\u200d(?:"+[xW="[^"+xW+"]",wW="(?:\\ud83c[\\udde6-\\uddff]){2}",kW="[\\ud800-\\udbff][\\udc00-\\udfff]"].join("|")+")"+SW+_W+")*",SW=SW+_W+TW,_W="(?:"+[xW+bW+"?",bW,wW,kW,yW].join("|")+")",CW=RegExp(vW+"(?="+vW+")|"+_W+SW,"g"),mt(mW,"unicodeSize"),AW=mW});function $W(e){return(dB(e)?AW:pW)(e)}var LW,RW=e(()=>{"use strict";fW(),pB(),EW(),mt($W,"stringSize"),LW=$W});function MW(i,e){return Kq(i,e,function(e,t){return Rz(i,t)})}var IW,NW,DW,OW=e(()=>{"use strict";Zq(),Mz(),mt(MW,"basePick"),IW=MW}),PW=e(()=>{"use strict";OW(),aB(),NW=sB(function(e,t){return null==e?{}:IW(e,t)}),DW=NW});function BW(e,t,i,n){for(var r=-1,s=jW(FW((t-e)/(i||1)),0),a=Array(s);s--;)a[n?s:++r]=e,e+=i;return a}var FW,jW,zW,HW=e(()=>{"use strict";FW=Math.ceil,jW=Math.max,mt(BW,"baseRange"),zW=BW});function UW(n){return function(e,t,i){return i&&"number"!=typeof i&&c_(e,t,i)&&(t=i=void 0),e=AO(e),void 0===t?(t=e,e=0):t=AO(t),i=void 0===i?e<t?1:-1:AO(i),zW(e,t,i,n)}}var qW,WW,VW,GW=e(()=>{"use strict";HW(),h_(),EO(),mt(UW,"createRange"),qW=UW}),YW=e(()=>{"use strict";GW(),WW=qW(),VW=WW});function XW(e,n,r,s,t){return t(e,function(e,t,i){r=s?(s=!1,e):n(r,e,t,i)}),r}var KW,ZW=e(()=>{"use strict";mt(XW,"baseReduce"),KW=XW});function QW(e,t,i){var n=sT(e)?fB:KW,r=arguments.length<3;return n(e,Vz(t,4),i,r,nH)}var JW,eV=e(()=>{"use strict";mB(),sH(),Gz(),ZW(),lT(),mt(QW,"reduce"),JW=QW});function tV(e,t){return(sT(e)?SB:eU)(e,qq(Vz(t,3)))}var iV,nV=e(()=>{"use strict";_B(),tU(),Gz(),lT(),Wq(),mt(tV,"reject"),iV=tV});function rV(e){var t;return null==e?0:pT(e)?XU(e)?LW(e):e.length:"[object Map]"==(t=gF(e))||"[object Set]"==t?e.size:lP(e).length}var sV,aV=e(()=>{"use strict";cP(),vF(),gT(),KU(),RW(),mt(rV,"size"),sV=rV});function oV(e,n){var r;return nH(e,function(e,t,i){return!(r=n(e,t,i))}),!!r}var lV,cV=e(()=>{"use strict";sH(),mt(oV,"baseSome"),lV=oV});function hV(e,t,i){var n=sT(e)?Ej:lV;return i&&c_(e,t,i)&&(t=void 0),n(e,Vz(t,3))}var uV,dV,pV,gV,fV,mV=e(()=>{"use strict";$j(),Gz(),cV(),lT(),h_(),mt(hV,"some"),uV=hV}),yV=e(()=>{"use strict";eB(),gW(),o_(),h_(),dV=a_(function(e,t){var i;return null==e?[]:(1<(i=t.length)&&c_(e,t[0],t[1])?t=[]:2<i&&c_(t[0],t[1],t[2])&&(t=[t[0]]),uW(e,JP(t,1),[]))}),pV=dV}),bV=e(()=>{"use strict";bF(),PO(),zj(),gV=iF&&1/jj(new iF([,-0]))[1]==1/0?function(e){return new iF(e)}:OO,fV=gV});function vV(e,t,i){var n=-1,r=eP,s=e.length,a=!0,o=[],l=o;if(i)a=!1,r=wH;else if(200<=s){var c=t?null:fV(e);if(c)return jj(c);a=!1,r=Rj,l=new _j}else l=t?[]:o;e:for(;++n<s;){var h=e[n],u=t?t(h):h,h=i||0!==h?h:0;if(a&&u==u){for(var d=l.length;d--;)if(l[d]===u)continue e;t&&l.push(u),o.push(h)}else r(l,u,i)||(l!==o&&l.push(u),o.push(h))}return o}var xV,wV,kV,TV=e(()=>{"use strict";Cj(),nP(),kH(),Mj(),bV(),zj(),mt(vV,"baseUniq"),xV=vV}),SV=e(()=>{"use strict";eB(),o_(),TV(),yT(),wV=a_(function(e){return xV(JP(e,1,mT,!0))}),kV=wV});function _V(e){return e&&e.length?xV(e):[]}var CV,AV=e(()=>{"use strict";TV(),mt(_V,"uniq"),CV=_V});function EV(e,t){return e&&e.length?xV(e,Vz(t,2)):[]}var $V,LV=e(()=>{"use strict";Gz(),TV(),mt(EV,"uniqBy"),$V=EV});function RV(e){var t=++MV;return RP(e)+t}var MV,IV,NV=e(()=>{"use strict";MP(),MV=0,mt(RV,"uniqueId"),IV=RV});function DV(e,t,i){for(var n=-1,r=e.length,s=t.length,a={};++n<r;){var o=n<s?t[n]:void 0;i(a,e[n],o)}return a}var OV,PV=e(()=>{"use strict";mt(DV,"baseZipObject"),OV=DV});function BV(e,t){return OV(e||[],t||[],eS)}var FV,jV=e(()=>{"use strict";tS(),PV(),mt(BV,"zipObject"),FV=BV}),zV=e(()=>{"use strict";mP(),uj(),gj(),yj(),KS(),vH(),EH(),NH(),PH(),UH(),QH(),rU(),gU(),bU(),CU(),nB(),HH(),$U(),DU(),OU(),GU(),FS(),aq(),hq(),lT(),fq(),P6(),M6(),wq(),KU(),Sq(),fP(),RH(),TU(),Lq(),Oq(),m_(),Fq(),Hq(),PO(),bH(),PW(),eW(),YW(),eV(),nV(),aV(),mV(),yV(),SV(),AV(),NV(),iq(),jV()});function HV(e,t){e[t]?e[t]++:e[t]=1}function UV(e,t){--e[t]||delete e[t]}function qV(e,t,i,n){t=""+t,i=""+i;return!e&&i<t&&(e=t,t=i,i=e),t+""+i+""+(Tq(n)?"\0":n)}function WV(e,t,i,n){t=""+t,i=""+i,!e&&i<t&&(e=t,t=i,i=e),e={v:t,w:i};return n&&(e.name=n),e}function VV(e,t){return qV(e,t.v,t.w,t.name)}var GV,YV=e(()=>{"use strict";zV(),0,(GV=class{static{mt(this,"Graph")}constructor(e={}){this._isDirected=!Object.prototype.hasOwnProperty.call(e,"directed")||e.directed,this._isMultigraph=!!Object.prototype.hasOwnProperty.call(e,"multigraph")&&e.multigraph,this._isCompound=!!Object.prototype.hasOwnProperty.call(e,"compound")&&e.compound,this._label=void 0,this._defaultNodeLabelFn=YS(void 0),this._defaultEdgeLabelFn=YS(void 0),this._nodes={},this._isCompound&&(this._parent={},this._children={},this._children["\0"]={}),this._in={},this._preds={},this._out={},this._sucs={},this._edgeObjs={},this._edgeLabels={}}isDirected(){return this._isDirected}isMultigraph(){return this._isMultigraph}isCompound(){return this._isCompound}setGraph(e){return this._label=e,this}graph(){return this._label}setDefaultNodeLabel(e){return N6(e)||(e=YS(e)),this._defaultNodeLabelFn=e,this}nodeCount(){return this._nodeCount}nodes(){return uP(this._nodes)}sources(){var t=this;return nU(this.nodes(),function(e){return gq(t._in[e])})}sinks(){var t=this;return nU(this.nodes(),function(e){return gq(t._out[e])})}setNodes(e,t){var i=arguments,n=this;return b(e,function(e){1<i.length?n.setNode(e,t):n.setNode(e)}),this}setNode(e,t){return Object.prototype.hasOwnProperty.call(this._nodes,e)?1<arguments.length&&(this._nodes[e]=t):(this._nodes[e]=1<arguments.length?t:this._defaultNodeLabelFn(e),this._isCompound&&(this._parent[e]="\0",this._children[e]={},this._children["\0"][e]=!0),this._in[e]={},this._preds[e]={},this._out[e]={},this._sucs[e]={},++this._nodeCount),this}node(e){return this._nodes[e]}hasNode(e){return Object.prototype.hasOwnProperty.call(this._nodes,e)}removeNode(e){var t;return Object.prototype.hasOwnProperty.call(this._nodes,e)&&(t=mt(e=>this.removeEdge(this._edgeObjs[e]),"removeEdge"),delete this._nodes[e],this._isCompound&&(this._removeFromParentsChildList(e),delete this._parent[e],b(this.children(e),e=>{this.setParent(e)}),delete this._children[e]),b(uP(this._in[e]),t),delete this._in[e],delete this._preds[e],b(uP(this._out[e]),t),delete this._out[e],delete this._sucs[e],--this._nodeCount),this}setParent(e,t){if(!this._isCompound)throw new Error("Cannot set parent in a non-compound graph");if(Tq(t))t="\0";else{for(var i=t+="";!Tq(i);i=this.parent(i))if(i===e)throw new Error("Setting "+t+" as parent of "+e+" would create a cycle");this.setNode(t)}return this.setNode(e),this._removeFromParentsChildList(e),this._parent[e]=t,this._children[t][e]=!0,this}_removeFromParentsChildList(e){delete this._children[this._parent[e]][e]}parent(e){if(this._isCompound){e=this._parent[e];if("\0"!==e)return e}}children(e){var t;return Tq(e)&&(e="\0"),this._isCompound?(t=this._children[e])?uP(t):void 0:"\0"===e?this.nodes():this.hasNode(e)?[]:void 0}predecessors(e){e=this._preds[e];if(e)return uP(e)}successors(e){e=this._sucs[e];if(e)return uP(e)}neighbors(e){var t=this.predecessors(e);if(t)return kV(t,this.successors(e))}isLeaf(e){e=this.isDirected()?this.successors(e):this.neighbors(e);return 0===e.length}filterNodes(i){var n=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound}),r=(n.setGraph(this.graph()),this),s=(b(this._nodes,function(e,t){i(t)&&n.setNode(t,e)}),b(this._edgeObjs,function(e){n.hasNode(e.v)&&n.hasNode(e.w)&&n.setEdge(e,r.edge(e))}),{});function a(e){var t=r.parent(e);return void 0===t||n.hasNode(t)?s[e]=t:t in s?s[t]:a(t)}return mt(a,"findParent"),this._isCompound&&b(n.nodes(),function(e){n.setParent(e,a(e))}),n}setDefaultEdgeLabel(e){return N6(e)||(e=YS(e)),this._defaultEdgeLabelFn=e,this}edgeCount(){return this._edgeCount}edges(){return tq(this._edgeObjs)}setPath(e,i){var n=this,r=arguments;return JW(e,function(e,t){return 1<r.length?n.setEdge(e,t,i):n.setEdge(e,t),t}),this}setEdge(){var e,t,i=!1,n=arguments[0],n=("object"==typeof n&&null!==n&&"v"in n?(r=n.v,s=n.w,e=n.name,2===arguments.length&&(t=arguments[1],i=!0)):(r=n,s=arguments[1],e=arguments[3],2<arguments.length&&(t=arguments[2],i=!0)),r=""+r,s=""+s,Tq(e)||(e=""+e),qV(this._isDirected,r,s,e));if(Object.prototype.hasOwnProperty.call(this._edgeLabels,n))i&&(this._edgeLabels[n]=t);else{if(!Tq(e)&&!this._isMultigraph)throw new Error("Cannot set a named edge when isMultigraph = false");this.setNode(r),this.setNode(s),this._edgeLabels[n]=i?t:this._defaultEdgeLabelFn(r,s,e);var i=WV(this._isDirected,r,s,e),r=i.v,s=i.w;Object.freeze(i),this._edgeObjs[n]=i,HV(this._preds[s],r),HV(this._sucs[r],s),this._in[s][n]=i,this._out[r][n]=i,this._edgeCount++}return this}edge(e,t,i){e=1===arguments.length?VV(this._isDirected,e):qV(this._isDirected,e,t,i);return this._edgeLabels[e]}hasEdge(e,t,i){e=1===arguments.length?VV(this._isDirected,e):qV(this._isDirected,e,t,i);return Object.prototype.hasOwnProperty.call(this._edgeLabels,e)}removeEdge(e,t,i){var i=1===arguments.length?VV(this._isDirected,arguments[0]):qV(this._isDirected,e,t,i),n=this._edgeObjs[i];return n&&(e=n.v,t=n.w,delete this._edgeLabels[i],delete this._edgeObjs[i],UV(this._preds[t],e),UV(this._sucs[e],t),delete this._in[t][i],delete this._out[e][i],this._edgeCount--),this}inEdges(e,t){var e=this._in[e];if(e)return e=tq(e),t?nU(e,function(e){return e.v===t}):e}outEdges(e,t){var e=this._out[e];if(e)return e=tq(e),t?nU(e,function(e){return e.w===t}):e}nodeEdges(e,t){var i=this.inEdges(e,t);if(i)return i.concat(this.outEdges(e,t))}}).prototype._nodeCount=0,GV.prototype._edgeCount=0,mt(HV,"incrementOrInitEntry"),mt(UV,"decrementOrRemoveEntry"),mt(qV,"edgeArgsToId"),mt(WV,"edgeArgsToObj"),mt(VV,"edgeObjToId")}),XV=e(()=>{"use strict";YV()});function KV(e){e._prev._next=e._next,e._next._prev=e._prev,delete e._next,delete e._prev}function ZV(e,t){if("_next"!==e&&"_prev"!==e)return t}var QV,JV=e(()=>{"use strict";QV=class{static{mt(this,"List")}constructor(){var e={};e._next=e._prev=e,this._sentinel=e}dequeue(){var e=this._sentinel,t=e._prev;if(t!==e)return KV(t),t}enqueue(e){var t=this._sentinel;e._prev&&e._next&&KV(e),e._next=t._next,t._next._prev=e,(t._next=e)._prev=t}toString(){for(var e=[],t=this._sentinel,i=t._prev;i!==t;)e.push(JSON.stringify(i,ZV)),i=i._prev;return"["+e.join(", ")+"]"}},mt(KV,"unlink"),mt(ZV,"filterOutLinks")});function eG(t,e){return t.nodeCount()<=1?[]:(e=tG((e=nG(t,e||sG)).graph,e.buckets,e.zeroIdx),iB(v(e,function(e){return t.outEdges(e.v,e.w)})))}function tG(e,t,i){for(var n,r=[],s=t[t.length-1],a=t[0];e.nodeCount();){for(;n=a.dequeue();)iG(e,t,i,n);for(;n=s.dequeue();)iG(e,t,i,n);if(e.nodeCount())for(var o=t.length-2;0<o;--o)if(n=t[o].dequeue()){r=r.concat(iG(e,t,i,n,!0));break}}return r}function iG(n,r,s,e,a){var o=a?[]:void 0;return b(n.inEdges(e.v),function(e){var t=n.edge(e),i=n.node(e.v);a&&o.push({v:e.v,w:e.w}),i.out-=t,rG(r,s,i)}),b(n.outEdges(e.v),function(e){var t=n.edge(e),e=e.w,e=n.node(e);e.in-=t,rG(r,s,e)}),n.removeNode(e.v),o}function nG(e,n){var r=new GV,s=0,a=0,t=(b(e.nodes(),function(e){r.setNode(e,{v:e,in:0,out:0})}),b(e.edges(),function(e){var t=r.edge(e.v,e.w)||0,i=n(e);r.setEdge(e.v,e.w,t+i),a=Math.max(a,r.node(e.v).out+=i),s=Math.max(s,r.node(e.w).in+=i)}),VW(a+s+3).map(function(){return new QV})),i=s+1;return b(r.nodes(),function(e){rG(t,i,r.node(e))}),{graph:r,buckets:t,zeroIdx:i}}function rG(e,t,i){(i.out?i.in?e[i.out-i.in+t]:e[e.length-1]:e[0]).enqueue(i)}var sG,aG=e(()=>{"use strict";zV(),XV(),JV(),sG=YS(1),mt(eG,"greedyFAS"),mt(tG,"doGreedyFAS"),mt(iG,"removeNode"),mt(nG,"buildState"),mt(rG,"assignBucket")});function oG(i){var e="greedy"===i.graph().acyclicer?eG(i,t(i)):lG(i);function t(t){return function(e){return t.edge(e).weight}}b(e,function(e){var t=i.edge(e);i.removeEdge(e),t.forwardName=e.name,t.reversed=!0,i.setEdge(e.w,e.v,t,IV("rev"))}),mt(t,"weightFn")}function lG(t){var i=[],n={},r={};function s(e){Object.prototype.hasOwnProperty.call(r,e)||(r[e]=!0,n[e]=!0,b(t.outEdges(e),function(e){Object.prototype.hasOwnProperty.call(n,e.w)?i.push(e):s(e.w)}),delete n[e])}return mt(s,"dfs"),b(t.nodes(),s),i}function cG(n){b(n.edges(),function(e){var t,i=n.edge(e);i.reversed&&(n.removeEdge(e),t=i.forwardName,delete i.reversed,delete i.forwardName,n.setEdge(e.w,e.v,i,t))})}var hG=e(()=>{"use strict";zV(),aG(),mt(oG,"run"),mt(lG,"dfsFAS"),mt(cG,"undo")});function uG(e,t,i,n){for(var r;r=IV(n),e.hasNode(r););return i.dummy=t,e.setNode(r,i),r}function dG(n){var r=(new GV).setGraph(n.graph());return b(n.nodes(),function(e){r.setNode(e,n.node(e))}),b(n.edges(),function(e){var t=r.edge(e.v,e.w)||{weight:0,minlen:1},i=n.edge(e);r.setEdge(e.v,e.w,{weight:t.weight+i.weight,minlen:Math.max(t.minlen,i.minlen)})}),r}function pG(t){var i=new GV({multigraph:t.isMultigraph()}).setGraph(t.graph());return b(t.nodes(),function(e){t.children(e).length||i.setNode(e,t.node(e))}),b(t.edges(),function(e){i.setEdge(e,t.edge(e))}),i}function gG(e,t){var i,n=e.x,r=e.y,s=t.x-n,t=t.y-r,a=e.width/2,e=e.height/2;if(s||t)return e=Math.abs(t)*a>Math.abs(s)*e?(i=(e=t<0?-e:e)*s/t,e):(i=a=s<0?-a:a)*t/s,{x:n+i,y:r+e};throw new Error("Not possible to find intersection inside of the rectangle")}function fG(n){var r=v(VW(vG(n)+1),function(){return[]});return b(n.nodes(),function(e){var t=n.node(e),i=t.rank;Tq(i)||(r[i][t.order]=e)}),r}function mG(t){var i=Bq(v(t.nodes(),function(e){return t.node(e).rank}));b(t.nodes(),function(e){e=t.node(e);VU(e,"rank")&&(e.rank-=i)})}function yG(i){var n=Bq(v(i.nodes(),function(e){return i.node(e).rank})),r=[],s=(b(i.nodes(),function(e){var t=i.node(e).rank-n;r[t]||(r[t]=[]),r[t].push(e)}),0),a=i.graph().nodeRankFactor;b(r,function(e,t){Tq(e)&&t%a!=0?--s:s&&b(e,function(e){i.node(e).rank+=s})})}function bG(e,t,i,n){var r={width:0,height:0};return 4<=arguments.length&&(r.rank=i,r.order=n),uG(e,"border",r,t)}function vG(t){return Dq(v(t.nodes(),function(e){e=t.node(e).rank;if(!Tq(e))return e}))}function xG(e,t){var i={lhs:[],rhs:[]};return b(e,function(e){(t(e)?i.lhs:i.rhs).push(e)}),i}function wG(e,t){var i=dH();try{return t()}finally{console.log(e+" time: "+(dH()-i)+"ms")}}function kG(e,t){return t()}var TG=e(()=>{"use strict";zV(),XV(),mt(uG,"addDummyNode"),mt(dG,"simplify"),mt(pG,"asNonCompoundGraph"),mt(gG,"intersectRect"),mt(fG,"buildLayerMatrix"),mt(mG,"normalizeRanks"),mt(yG,"removeEmptyRanks"),mt(bG,"addBorderNode"),mt(vG,"maxRank"),mt(xG,"partition"),mt(wG,"time"),mt(kG,"notime")});function SG(s){function a(e){var t=s.children(e),i=s.node(e);if(t.length&&b(t,a),Object.prototype.hasOwnProperty.call(i,"minRank")){i.borderLeft=[],i.borderRight=[];for(var n=i.minRank,r=i.maxRank+1;n<r;++n)_G(s,"borderLeft","_bl",e,i,n),_G(s,"borderRight","_br",e,i,n)}}mt(a,"dfs"),b(s.children(),a)}function _G(e,t,i,n,r,s){var a=r[t][s-1],i=uG(e,"border",{width:0,height:0,rank:s,borderType:t},i);r[t][s]=i,e.setParent(i,n),a&&e.setEdge(a,i,{weight:1})}var CG=e(()=>{"use strict";zV(),TG(),mt(SG,"addBorderSegments"),mt(_G,"addBorderNode")});function AG(e){var t=e.graph().rankdir.toLowerCase();"lr"!==t&&"rl"!==t||$G(e)}function EG(e){var t=e.graph().rankdir.toLowerCase();"bt"!==t&&"rl"!==t||RG(e),"lr"!==t&&"rl"!==t||(IG(e),$G(e))}function $G(t){b(t.nodes(),function(e){LG(t.node(e))}),b(t.edges(),function(e){LG(t.edge(e))})}function LG(e){var t=e.width;e.width=e.height,e.height=t}function RG(t){b(t.nodes(),function(e){MG(t.node(e))}),b(t.edges(),function(e){e=t.edge(e);b(e.points,MG),Object.prototype.hasOwnProperty.call(e,"y")&&MG(e)})}function MG(e){e.y=-e.y}function IG(t){b(t.nodes(),function(e){NG(t.node(e))}),b(t.edges(),function(e){e=t.edge(e);b(e.points,NG),Object.prototype.hasOwnProperty.call(e,"x")&&NG(e)})}function NG(e){var t=e.x;e.x=e.y,e.y=t}var DG=e(()=>{"use strict";zV(),mt(AG,"adjust"),mt(EG,"undo"),mt($G,"swapWidthHeight"),mt(LG,"swapWidthHeightOne"),mt(RG,"reverseY"),mt(MG,"reverseYOne"),mt(IG,"swapXY"),mt(NG,"swapXYOne")});function OG(t){t.graph().dummyChains=[],b(t.edges(),function(e){PG(t,e)})}function PG(e,t){var i=t.v,n=e.node(i).rank,r=t.w,s=e.node(r).rank,a=t.name,o=e.edge(t),l=o.labelRank;if(s!==n+1){e.removeEdge(t);var c,h=void 0,u=0;for(++n;n<s;++u,++n)o.points=[],c=uG(e,"edge",h={width:0,height:0,edgeLabel:o,edgeObj:t,rank:n},"_d"),n===l&&(h.width=o.width,h.height=o.height,h.dummy="edge-label",h.labelpos=o.labelpos),e.setEdge(i,c,{weight:o.weight},a),0===u&&e.graph().dummyChains.push(c),i=c;e.setEdge(i,r,{weight:o.weight},a)}}function BG(r){b(r.graph().dummyChains,function(e){var t,i=r.node(e),n=i.edgeLabel;for(r.setEdge(i.edgeObj,n);i.dummy;)t=r.successors(e)[0],r.removeNode(e),n.points.push({x:i.x,y:i.y}),"edge-label"===i.dummy&&(n.x=i.x,n.y=i.y,n.width=i.width,n.height=i.height),i=r.node(e=t)})}var FG=e(()=>{"use strict";zV(),TG(),mt(OG,"run"),mt(PG,"normalizeEdge"),mt(BG,"undo")});function jG(i){var n={};function r(e){var t=i.node(e);if(Object.prototype.hasOwnProperty.call(n,e))return t.rank;n[e]=!0;e=Bq(v(i.outEdges(e),function(e){return r(e.w)-i.edge(e).minlen}));return e!==Number.POSITIVE_INFINITY&&null!=e||(e=0),t.rank=e}mt(r,"dfs"),b(i.sources(),r)}function zG(e,t){return e.node(t.w).rank-e.node(t.v).rank-e.edge(t).minlen}var HG=e(()=>{"use strict";zV(),mt(jG,"longestPath"),mt(zG,"slack")});function UG(e){var t,i=new GV({directed:!1}),n=e.nodes()[0],r=e.nodeCount();for(i.setNode(n,{});qG(i,e)<r;)t=WG(i,e),t=i.hasNode(t.v)?zG(e,t):-zG(e,t),VG(i,e,t);return i}function qG(n,r){function s(i){b(r.nodeEdges(i),function(e){var t=e.v,t=i===t?e.w:t;n.hasNode(t)||zG(r,e)||(n.setNode(t,{}),n.setEdge(i,t,{}),s(t))})}return mt(s,"dfs"),b(n.nodes(),s),n.nodeCount()}function WG(t,i){return zq(i.edges(),function(e){if(t.hasNode(e.v)!==t.hasNode(e.w))return zG(i,e)})}function VG(e,t,i){b(e.nodes(),function(e){t.node(e).rank+=i})}var GG=e(()=>{"use strict";zV(),XV(),HG(),mt(UG,"feasibleTree"),mt(qG,"tightTree"),mt(WG,"findMinSlackEdge"),mt(VG,"shiftRanks")}),YG=e(()=>{}),XG=e(()=>{}),KG=e(()=>{"use strict";zV(),XG(),YS(1)}),ZG=e(()=>{"use strict";KG()}),QG=e(()=>{}),JG=e(()=>{"use strict";QG()}),eY=e(()=>{"use strict";zV(),YS(1)});function tY(t){var i={},n={},r=[];function s(e){if(Object.prototype.hasOwnProperty.call(n,e))throw new iY;Object.prototype.hasOwnProperty.call(i,e)||(n[e]=!0,i[e]=!0,b(t.predecessors(e),s),delete n[e],r.push(e))}if(mt(s,"visit"),b(t.sinks(),s),sV(i)!==t.nodeCount())throw new iY;return r}function iY(){}var nY=e(()=>{"use strict";zV(),tY.CycleException=iY,mt(tY,"topsort"),mt(iY,"CycleException"),iY.prototype=new Error}),rY=e(()=>{"use strict";nY()});function sY(t,e,i){sT(e)||(e=[e]);var n=(t.isDirected()?t.successors:t.neighbors).bind(t),r=[],s={};return b(e,function(e){if(!t.hasNode(e))throw new Error("Graph does not have node: "+e);aY(t,e,"post"===i,s,n,r)}),r}function aY(t,e,i,n,r,s){Object.prototype.hasOwnProperty.call(n,e)||(n[e]=!0,i||s.push(e),b(r(e),function(e){aY(t,e,i,n,r,s)}),i&&s.push(e))}var oY=e(()=>{"use strict";zV(),mt(sY,"dfs"),mt(aY,"doDfs")});function lY(e,t){return sY(e,t,"post")}var cY=e(()=>{"use strict";oY(),mt(lY,"postorder")});function hY(e,t){return sY(e,t,"pre")}var uY=e(()=>{"use strict";oY(),mt(hY,"preorder")}),dY=e(()=>{"use strict";XG(),YV()}),pY=e(()=>{"use strict";YG(),KG(),ZG(),JG(),eY(),rY(),cY(),uY(),dY(),QG(),nY()});function gY(e){jG(e=dG(e));var t,i=UG(e);for(bY(i),fY(i,e);t=xY(i);)kY(i,e,t,wY(i,e,t))}function fY(t,i){var e=(e=lY(t,t.nodes())).slice(0,e.length-1);b(e,function(e){mY(t,i,e)})}function mY(e,t,i){var n=e.node(i).parent;e.edge(i,n).cutvalue=yY(e,t,i)}function yY(n,r,s){var a=n.node(s).parent,o=!0,e=r.edge(s,a),l=0;return e||(o=!1,e=r.edge(a,s)),l=e.weight,b(r.nodeEdges(s),function(e){var t=e.v===s,i=t?e.w:e.v;i!==a&&(t=t===o,e=r.edge(e).weight,l+=t?e:-e,SY(n,s,i))&&(e=n.edge(s,i).cutvalue,l+=t?-e:e)}),l}function bY(e,t){arguments.length<2&&(t=e.nodes()[0]),vY(e,{},1,t)}function vY(t,i,n,r,e){var s=n,a=t.node(r);return i[r]=!0,b(t.neighbors(r),function(e){Object.prototype.hasOwnProperty.call(i,e)||(n=vY(t,i,n,e,r))}),a.low=s,a.lim=n++,e?a.parent=e:delete a.parent,n}function xY(t){return dU(t.edges(),function(e){return t.edge(e).cutvalue<0})}function wY(t,i,e){var n=e.v,r=e.w,e=(i.hasEdge(n,r)||(n=e.w,r=e.v),t.node(n)),n=t.node(r),s=e,a=!1,r=(e.lim>n.lim&&(s=n,a=!0),nU(i.edges(),function(e){return a===_Y(0,t.node(e.v),s)&&a!==_Y(0,t.node(e.w),s)}));return zq(r,function(e){return zG(i,e)})}function kY(e,t,i,n){var r=i.v,i=i.w;e.removeEdge(r,i),e.setEdge(n.v,n.w,{}),bY(e),fY(e,t),TY(e,t)}function TY(r,s){var e=dU(r.nodes(),function(e){return!s.node(e).parent}),e=(e=hY(r,e)).slice(1);b(e,function(e){var t=r.node(e).parent,i=s.edge(e,t),n=!1;i||(i=s.edge(t,e),n=!0),s.node(e).rank=s.node(t).rank+(n?i.minlen:-i.minlen)})}function SY(e,t,i){return e.hasEdge(t,i)}function _Y(e,t,i){return i.low<=t.lim&&t.lim<=i.lim}var CY=e(()=>{"use strict";zV(),pY(),TG(),GG(),HG(),gY.initLowLimValues=bY,gY.initCutValues=fY,gY.calcCutValue=yY,gY.leaveEdge=xY,gY.enterEdge=wY,gY.exchangeEdges=kY,mt(gY,"networkSimplex"),mt(fY,"initCutValues"),mt(mY,"assignCutValue"),mt(yY,"calcCutValue"),mt(bY,"initLowLimValues"),mt(vY,"dfsAssignLowLim"),mt(xY,"leaveEdge"),mt(wY,"enterEdge"),mt(kY,"exchangeEdges"),mt(TY,"updateRanks"),mt(SY,"isTreeEdge"),mt(_Y,"isDescendant")});function AY(e){switch(e.graph().ranker){case"network-simplex":$Y(e);break;case"tight-tree":EY(e);break;case"longest-path":LY(e);break;default:$Y(e)}}function EY(e){jG(e),UG(e)}function $Y(e){gY(e)}var LY,RY=e(()=>{"use strict";GG(),CY(),HG(),mt(AY,"rank"),LY=jG,mt(EY,"tightTreeRanker"),mt($Y,"networkSimplexRanker")});function MY(t){var i=uG(t,"root",{},"_root"),n=NY(t),r=Dq(tq(n))-1,s=2*r+1,a=(t.graph().nestingRoot=i,b(t.edges(),function(e){t.edge(e).minlen*=s}),DY(t)+1);b(t.children(),function(e){IY(t,i,s,a,r,n,e)}),t.graph().nodeRankFactor=s}function IY(r,s,a,o,l,c,h){var u,d,e,t=r.children(h);t.length?(u=bG(r,"_bt"),d=bG(r,"_bb"),e=r.node(h),r.setParent(u,h),e.borderTop=u,r.setParent(d,h),e.borderBottom=d,b(t,function(e){IY(r,s,a,o,l,c,e);var t=r.node(e),i=t.borderTop||e,e=t.borderBottom||e,t=t.borderTop?o:2*o,n=i!==e?1:l-c[h]+1;r.setEdge(u,i,{weight:t,minlen:n,nestingEdge:!0}),r.setEdge(e,d,{weight:t,minlen:n,nestingEdge:!0})}),r.parent(h)||r.setEdge(s,u,{weight:0,minlen:l+c[h]})):h!==s&&r.setEdge(s,h,{weight:0,minlen:a})}function NY(n){var r={};function s(e,t){var i=n.children(e);i&&i.length&&b(i,function(e){s(e,t+1)}),r[e]=t}return mt(s,"dfs"),b(n.children(),function(e){s(e,1)}),r}function DY(i){return JW(i.edges(),function(e,t){return e+i.edge(t).weight},0)}function OY(t){var e=t.graph();t.removeNode(e.nestingRoot),delete e.nestingRoot,b(t.edges(),function(e){t.edge(e).nestingEdge&&t.removeEdge(e)})}var PY=e(()=>{"use strict";zV(),TG(),mt(MY,"run"),mt(IY,"dfs"),mt(NY,"treeDepths"),mt(DY,"sumWeights"),mt(OY,"cleanup")});function BY(r,s,e){var a,o={};b(e,function(e){for(var t,i,n=r.parent(e);n;){if((t=r.parent(n))?(i=o[t],o[t]=n):(i=a,a=n),i&&i!==n)return void s.setEdge(i,n);n=t}})}var FY=e(()=>{"use strict";zV(),mt(BY,"addSubgraphConstraints")});function jY(r,i,s){var a=zY(r),o=new GV({compound:!0}).setGraph({root:a}).setDefaultNodeLabel(function(e){return r.node(e)});return b(r.nodes(),function(n){var e=r.node(n),t=r.parent(n);(e.rank===i||e.minRank<=i&&i<=e.maxRank)&&(o.setNode(n),o.setParent(n,t||a),b(r[s](n),function(e){var t=e.v===n?e.w:e.v,i=o.edge(t,n),i=Tq(i)?0:i.weight;o.setEdge(t,n,{weight:r.edge(e).weight+i})}),Object.prototype.hasOwnProperty.call(e,"minRank"))&&o.setNode(n,{borderLeft:e.borderLeft[i],borderRight:e.borderRight[i]})}),o}function zY(e){for(var t;e.hasNode(t=IV("_root")););return t}var HY=e(()=>{"use strict";zV(),XV(),mt(jY,"buildLayerGraph"),mt(zY,"createRootNode")});function UY(e,t){for(var i=0,n=1;n<t.length;++n)i+=qY(e,t[n-1],t[n]);return i}function qY(t,e,i){for(var n=FV(i,v(i,function(e,t){return t})),e=iB(v(e,function(e){return pV(v(t.outEdges(e),function(e){return{pos:n[e.w],weight:t.edge(e).weight}}),"pos")})),r=1;r<i.length;)r<<=1;var s=2*r-1,a=(--r,v(new Array(s),function(){return 0})),o=0;return b(e.forEach(function(e){var t=e.pos+r;a[t]+=e.weight;for(var i=0;0<t;)t%2&&(i+=a[t+1]),a[t=t-1>>1]+=e.weight;o+=e.weight*i})),o}var WY=e(()=>{"use strict";zV(),mt(UY,"crossCount"),mt(qY,"twoLayerCrossCount")});function VY(i){var n={},e=nU(i.nodes(),function(e){return!i.children(e).length}),t=Dq(v(e,function(e){return i.node(e).rank})),r=v(VW(t+1),function(){return[]});function s(e){var t;VU(n,e)||(n[e]=!0,t=i.node(e),r[t.rank].push(e),b(i.successors(e),s))}mt(s,"dfs");t=pV(e,function(e){return i.node(e).rank});return b(t,s),r}var GY=e(()=>{"use strict";zV(),mt(VY,"initOrder")});function YY(n,e){return v(e,function(e){var t=n.inEdges(e);return t.length?{v:e,barycenter:(t=JW(t,function(e,t){var i=n.edge(t),t=n.node(t.v);return{sum:e.sum+i.weight*t.order,weight:e.weight+i.weight}},{sum:0,weight:0})).sum/t.weight,weight:t.weight}:{v:e}})}var XY=e(()=>{"use strict";zV(),mt(YY,"barycenter")});function KY(e,t){var n={};return b(e,function(e,t){t=n[e.v]={indegree:0,in:[],out:[],vs:[e.v],i:t};Tq(e.barycenter)||(t.barycenter=e.barycenter,t.weight=e.weight)}),b(t.edges(),function(e){var t=n[e.v],i=n[e.w];Tq(t)||Tq(i)||(i.indegree++,t.out.push(n[e.w]))}),ZY(nU(n,function(e){return!e.indegree}))}function ZY(i){var e=[];function t(t){return function(e){e.merged||(Tq(e.barycenter)||Tq(t.barycenter)||e.barycenter>=t.barycenter)&&QY(t,e)}}function n(t){return function(e){e.in.push(t),0==--e.indegree&&i.push(e)}}for(mt(t,"handleIn"),mt(n,"handleOut");i.length;){var r=i.pop();e.push(r),b(r.in.reverse(),t(r)),b(r.out,n(r))}return v(nU(e,function(e){return!e.merged}),function(e){return DW(e,["vs","i","barycenter","weight"])})}function QY(e,t){var i=0,n=0;e.weight&&(i+=e.barycenter*e.weight,n+=e.weight),t.weight&&(i+=t.barycenter*t.weight,n+=t.weight),e.vs=t.vs.concat(e.vs),e.barycenter=i/n,e.weight=n,e.i=Math.min(t.i,e.i),t.merged=!0}var JY=e(()=>{"use strict";zV(),mt(KY,"resolveConflicts"),mt(ZY,"doResolveConflicts"),mt(QY,"mergeEntries")});function eX(e,t){var e=xG(e,function(e){return Object.prototype.hasOwnProperty.call(e,"barycenter")}),i=e.lhs,n=pV(e.rhs,function(e){return-e.i}),r=[],s=0,a=0,o=0,e=(i.sort(iX(!!t)),o=tX(r,n,o),b(i,function(e){o+=e.vs.length,r.push(e.vs),s+=e.barycenter*e.weight,a+=e.weight,o=tX(r,n,o)}),{vs:iB(r)});return a&&(e.barycenter=s/a,e.weight=a),e}function tX(e,t,i){for(var n;t.length&&(n=LH(t)).i<=i;)t.pop(),e.push(n.vs),i++;return i}function iX(i){return function(e,t){return e.barycenter<t.barycenter?-1:e.barycenter>t.barycenter?1:i?t.i-e.i:e.i-t.i}}var nX=e(()=>{"use strict";zV(),TG(),mt(eX,"sort"),mt(tX,"consumeUnsortable"),mt(iX,"compareWithBias")});function rX(i,e,n,r){var t,s=i.children(e),e=i.node(e),a=e?e.borderLeft:void 0,o=e?e.borderRight:void 0,l={},e=(a&&(s=nU(s,function(e){return e!==a&&e!==o})),YY(i,s)),s=(b(e,function(e){var t;i.children(e.v).length&&(t=rX(i,e.v,n,r),l[e.v]=t,Object.prototype.hasOwnProperty.call(t,"barycenter"))&&aX(e,t)}),KY(e,n)),e=(sX(s,l),eX(s,r));return a&&(e.vs=iB([a,e.vs,o]),i.predecessors(a).length)&&(s=i.node(i.predecessors(a)[0]),t=i.node(i.predecessors(o)[0]),Object.prototype.hasOwnProperty.call(e,"barycenter")||(e.barycenter=0,e.weight=0),e.barycenter=(e.barycenter*e.weight+s.order+t.order)/(e.weight+2),e.weight+=2),e}function sX(e,t){b(e,function(e){e.vs=iB(e.vs.map(function(e){return t[e]?t[e].vs:e}))})}function aX(e,t){Tq(e.barycenter)?(e.barycenter=t.barycenter,e.weight=t.weight):(e.barycenter=(e.barycenter*e.weight+t.barycenter*t.weight)/(e.weight+t.weight),e.weight+=t.weight)}var oX=e(()=>{"use strict";zV(),XY(),JY(),nX(),mt(rX,"sortSubgraph"),mt(sX,"expandSubgraphs"),mt(aX,"mergeBarycenters")});function lX(e){var t=vG(e),i=cX(e,VW(1,t+1),"inEdges"),n=cX(e,VW(t-1,-1,-1),"outEdges");uX(e,VY(e));for(var r,s=Number.POSITIVE_INFINITY,a=0,o=0;o<4;++a,++o){hX(a%2?i:n,2<=a%4);var l,c=UY(e,l=fG(e));c<s&&(o=0,r=pj(l),s=c)}uX(e,r)}function cX(t,e,i){return v(e,function(e){return jY(t,e,i)})}function hX(e,t){var n=new GV;b(e,function(i){var e=i.graph().root,e=rX(i,e,n,t);b(e.vs,function(e,t){i.node(e).order=t}),BY(i,n,e.vs)})}function uX(i,e){b(e,function(e){b(e,function(e,t){i.node(e).order=t})})}var dX=e(()=>{"use strict";zV(),XV(),TG(),FY(),HY(),WY(),GY(),oX(),mt(lX,"order"),mt(cX,"buildLayerGraphs"),mt(hX,"sweepLayerGraphs"),mt(uX,"assignOrder")});function pX(c){var h=fX(c);b(c.graph().dummyChains,function(e){for(var t,i=c.node(e).edgeObj,n=gX(c,h,i.v,i.w),r=n.path,s=n.lca,a=0,o=r[a],l=!0;e!==i.w;){if(t=c.node(e),l){for(;(o=r[a])!==s&&c.node(o).maxRank<t.rank;)a++;o===s&&(l=!1)}if(!l){for(;a<r.length-1&&c.node(o=r[a+1]).minRank<=t.rank;)a++;o=r[a]}c.setParent(e,o),e=c.successors(e)[0]}})}function gX(e,t,i,n){for(var r,s=[],a=[],o=Math.min(t[i].low,t[n].low),l=Math.max(t[i].lim,t[n].lim),c=i;c=e.parent(c),s.push(c),c&&(t[c].low>o||l>t[c].lim););for(r=c,c=n;(c=e.parent(c))!==r;)a.push(c);return{path:s.concat(a.reverse()),lca:r}}function fX(i){var n={},r=0;function s(e){var t=r;b(i.children(e),s),n[e]={low:t,lim:r++}}return mt(s,"dfs"),b(i.children(),s),n}var mX=e(()=>{"use strict";zV(),mt(pX,"parentDummyChains"),mt(gX,"findPath"),mt(fX,"postorder")});function yX(c,e){var h={};function t(e,n){var s=0,a=0,o=e.length,l=LH(n);return b(n,function(e,t){var i=vX(c,e),r=i?c.node(i).order:o;!i&&e!==l||(b(n.slice(a,t+1),function(n){b(c.predecessors(n),function(e){var t=c.node(e),i=t.order;!(i<s||r<i)||t.dummy&&c.node(n).dummy||xX(h,e,n)})}),a=t+1,s=r)}),n}return mt(t,"visitLayer"),JW(e,t),h}function bX(o,e){var a={};function l(t,e,i,n,r){var s;b(VW(e,i),function(e){s=t[e],o.node(s).dummy&&b(o.predecessors(s),function(e){var t=o.node(e);t.dummy&&(t.order<n||t.order>r)&&xX(a,e,s)})})}function t(i,n){var r,s=-1,a=0;return b(n,function(e,t){"border"===o.node(e).dummy&&(e=o.predecessors(e)).length&&(r=o.node(e[0]).order,l(n,a,t,s,r),a=t,s=r),l(n,a,n.length,r,i.length)}),n}return mt(l,"scan"),mt(t,"visitLayer"),JW(e,t),a}function vX(t,e){if(t.node(e).dummy)return dU(t.predecessors(e),function(e){return t.node(e).dummy})}function xX(e,t,i){i<t&&(n=t,t=i,i=n);var n=e[t];n||(e[t]=n={}),n[i]=!0}function wX(e,t,i){var n;return i<t&&(n=t,t=i,i=n),!!e[t]&&Object.prototype.hasOwnProperty.call(e[t],i)}function kX(e,t,o,l){var c={},h={},u={};return b(t,function(e){b(e,function(e,t){u[h[c[e]=e]=e]=t})}),b(t,function(e){var a=-1;b(e,function(e){var t=l(e);if(t.length)for(var i=((t=pV(t,function(e){return u[e]})).length-1)/2,n=Math.floor(i),r=Math.ceil(i);n<=r;++n){var s=t[n];h[e]===e&&a<u[s]&&!wX(o,e,s)&&(h[s]=e,h[e]=c[e]=c[s],a=u[s])}})}),{root:c,align:h}}function TX(n,e,t,i,r){var s={},a=SX(n,e,t,r),o=r?"borderLeft":"borderRight";function l(e,t){for(var i=a.nodes(),n=i.pop(),r={};n;)r[n]?e(n):(r[n]=!0,i.push(n),i=i.concat(t(n))),n=i.pop()}function c(e){s[e]=a.inEdges(e).reduce(function(e,t){return Math.max(e,s[t.v]+a.edge(t))},0)}function h(e){var t=a.outEdges(e).reduce(function(e,t){return Math.min(e,s[t.w]-a.edge(t))},Number.POSITIVE_INFINITY),i=n.node(e);t!==Number.POSITIVE_INFINITY&&i.borderType!==o&&(s[e]=Math.max(s[e],t))}return mt(l,"iterate"),mt(c,"pass1"),mt(h,"pass2"),l(c,a.predecessors.bind(a)),l(h,a.successors.bind(a)),b(i,function(e){s[e]=s[t[e]]}),s}function SX(s,e,a,t){var o=new GV,i=s.graph(),l=$X(i.nodesep,i.edgesep,t);return b(e,function(e){var r;b(e,function(e){var t,i,n=a[e];o.setNode(n),r&&(t=a[r],i=o.edge(t,n),o.setEdge(t,n,Math.max(l(s,e,r),i||0))),r=e})}),o}function _X(r,e){return zq(tq(e),function(e){var i=Number.NEGATIVE_INFINITY,n=Number.POSITIVE_INFINITY;return EU(e,function(e,t){t=LX(r,t)/2;i=Math.max(e+t,i),n=Math.min(e-t,n)}),i-n})}function CX(a,o){var e=tq(o),l=Bq(e),c=Dq(e);b(["u","d"],function(s){b(["l","r"],function(e){var t,i,n=s+e,r=a[n];r!==o&&(t=tq(r),i="l"===e?l-Bq(t):c-Dq(t))&&(a[n]=$q(r,function(e){return e+i}))})})}function AX(i,n){return $q(i.ul,function(e,t){return n?i[n.toLowerCase()][t]:((t=pV(v(i,t)))[1]+t[2])/2})}function EX(n){var r,e=fG(n),s=g_(yX(n,e),bX(n,e)),a={},t=(b(["u","d"],function(i){r="u"===i?e:tq(e).reverse(),b(["l","r"],function(e){"r"===e&&(r=v(r,function(e){return tq(e).reverse()}));var t=("u"===i?n.predecessors:n.successors).bind(n),t=kX(0,r,s,t),t=TX(n,r,t.root,t.align,"r"===e);"r"===e&&(t=$q(t,function(e){return-e})),a[i+e]=t})}),_X(n,a));return CX(a,t),AX(a,n.graph().align)}function $X(a,o,l){return function(e,t,i){var n,r=e.node(t),s=e.node(i),t=0;if(t+=r.width/2,Object.prototype.hasOwnProperty.call(r,"labelpos"))switch(r.labelpos.toLowerCase()){case"l":n=-r.width/2;break;case"r":n=r.width/2}if(n&&(t+=l?n:-n),n=0,t=(t=(t+=(r.dummy?o:a)/2)+(s.dummy?o:a)/2)+s.width/2,Object.prototype.hasOwnProperty.call(s,"labelpos"))switch(s.labelpos.toLowerCase()){case"l":n=s.width/2;break;case"r":n=-s.width/2}return n&&(t+=l?n:-n),n=0,t}}function LX(e,t){return e.node(t).width}var RX=e(()=>{"use strict";zV(),XV(),TG(),mt(yX,"findType1Conflicts"),mt(bX,"findType2Conflicts"),mt(vX,"findOtherInnerSegmentNode"),mt(xX,"addConflict"),mt(wX,"hasConflict"),mt(kX,"verticalAlignment"),mt(TX,"horizontalCompaction"),mt(SX,"buildBlockGraph"),mt(_X,"findSmallestWidthAlignment"),mt(CX,"alignCoordinates"),mt(AX,"balance"),mt(EX,"positionX"),mt($X,"sep"),mt(LX,"width")});function MX(i){IX(i=pG(i)),RU(EX(i),function(e,t){i.node(t).x=e})}function IX(i){var e=fG(i),n=i.graph().ranksep,r=0;b(e,function(e){var t=Dq(v(e,function(e){return i.node(e).height}));b(e,function(e){i.node(e).y=r+t/2}),r+=t+n})}var NX=e(()=>{"use strict";zV(),TG(),RX(),mt(MX,"position"),mt(IX,"positionY")});function DX(t,e){var i=e&&e.debugTiming?wG:kG;i("layout",()=>{var e=i(" buildLayoutGraph",()=>BX(t));i(" runLayout",()=>OX(e,i)),i(" updateInputGraph",()=>PX(t,e))})}function OX(e,t){t(" makeSpaceForEdgeLabels",()=>FX(e)),t(" removeSelfEdges",()=>YX(e)),t(" acyclic",()=>oG(e)),t(" nestingGraph.run",()=>MY(e)),t(" rank",()=>AY(pG(e))),t(" injectEdgeLabelProxies",()=>jX(e)),t(" removeEmptyRanks",()=>yG(e)),t(" nestingGraph.cleanup",()=>OY(e)),t(" normalizeRanks",()=>mG(e)),t(" assignRankMinMax",()=>zX(e)),t(" removeEdgeLabelProxies",()=>HX(e)),t(" normalize.run",()=>OG(e)),t(" parentDummyChains",()=>pX(e)),t(" addBorderSegments",()=>SG(e)),t(" order",()=>lX(e)),t(" insertSelfEdges",()=>XX(e)),t(" adjustCoordinateSystem",()=>AG(e)),t(" position",()=>MX(e)),t(" positionSelfEdges",()=>KX(e)),t(" removeBorderNodes",()=>GX(e)),t(" normalize.undo",()=>BG(e)),t(" fixupEdgeLabelCoords",()=>WX(e)),t(" undoCoordinateSystem",()=>EG(e)),t(" translateGraph",()=>UX(e)),t(" assignNodeIntersects",()=>qX(e)),t(" reversePoints",()=>VX(e)),t(" acyclic.undo",()=>cG(e))}function PX(n,r){b(n.nodes(),function(e){var t=n.node(e),i=r.node(e);t&&(t.x=i.x,t.y=i.y,r.children(e).length)&&(t.width=i.width,t.height=i.height)}),b(n.edges(),function(e){var t=n.edge(e),e=r.edge(e);t.points=e.points,Object.prototype.hasOwnProperty.call(e,"x")&&(t.x=e.x,t.y=e.y)}),n.graph().width=r.graph().width,n.graph().height=r.graph().height}function BX(i){var n=new GV({multigraph:!0,compound:!0}),e=QX(i.graph());return n.setGraph(g_({},eK,ZX(e,JX),DW(e,tK))),b(i.nodes(),function(e){var t=QX(i.node(e));n.setNode(e,mH(ZX(t,iK),nK)),n.setParent(e,i.parent(e))}),b(i.edges(),function(e){var t=QX(i.edge(e));n.setEdge(e,g_({},sK,ZX(t,rK),DW(t,aK)))}),n}function FX(t){var i=t.graph();i.ranksep/=2,b(t.edges(),function(e){e=t.edge(e);e.minlen*=2,"c"!==e.labelpos.toLowerCase()&&("TB"===i.rankdir||"BT"===i.rankdir?e.width+=e.labeloffset:e.height+=e.labeloffset)})}function jX(i){b(i.edges(),function(e){var t=i.edge(e);t.width&&t.height&&(t=i.node(e.v),t={rank:(i.node(e.w).rank-t.rank)/2+t.rank,e:e},uG(i,"edge-proxy",t,"_ep"))})}function zX(t){var i=0;b(t.nodes(),function(e){e=t.node(e);e.borderTop&&(e.minRank=t.node(e.borderTop).rank,e.maxRank=t.node(e.borderBottom).rank,i=Dq(i,e.maxRank))}),t.graph().maxRank=i}function HX(i){b(i.nodes(),function(e){var t=i.node(e);"edge-proxy"===t.dummy&&(i.edge(t.e).labelRank=t.rank,i.removeNode(e))})}function UX(t){var r=Number.POSITIVE_INFINITY,s=0,a=Number.POSITIVE_INFINITY,o=0,e=t.graph(),i=e.marginx||0,n=e.marginy||0;function l(e){var t=e.x,i=e.y,n=e.width,e=e.height;r=Math.min(r,t-n/2),s=Math.max(s,t+n/2),a=Math.min(a,i-e/2),o=Math.max(o,i+e/2)}mt(l,"getExtremes"),b(t.nodes(),function(e){l(t.node(e))}),b(t.edges(),function(e){e=t.edge(e);Object.prototype.hasOwnProperty.call(e,"x")&&l(e)}),r-=i,a-=n,b(t.nodes(),function(e){e=t.node(e);e.x-=r,e.y-=a}),b(t.edges(),function(e){e=t.edge(e);b(e.points,function(e){e.x-=r,e.y-=a}),Object.prototype.hasOwnProperty.call(e,"x")&&(e.x-=r),Object.prototype.hasOwnProperty.call(e,"y")&&(e.y-=a)}),e.width=s-r+i,e.height=o-a+n}function qX(s){b(s.edges(),function(e){var t,i=s.edge(e),n=s.node(e.v),e=s.node(e.w),r=i.points?(t=i.points[0],i.points[i.points.length-1]):(i.points=[],t=e,n);i.points.unshift(gG(n,t)),i.points.push(gG(e,r))})}function WX(i){b(i.edges(),function(e){var t=i.edge(e);if(Object.prototype.hasOwnProperty.call(t,"x"))switch("l"!==t.labelpos&&"r"!==t.labelpos||(t.width-=t.labeloffset),t.labelpos){case"l":t.x-=t.width/2+t.labeloffset;break;case"r":t.x+=t.width/2+t.labeloffset}})}function VX(t){b(t.edges(),function(e){e=t.edge(e);e.reversed&&e.points.reverse()})}function GX(s){b(s.nodes(),function(e){var t,i,n,r;s.children(e).length&&(e=s.node(e),t=s.node(e.borderTop),i=s.node(e.borderBottom),n=s.node(LH(e.borderLeft)),r=s.node(LH(e.borderRight)),e.width=Math.abs(r.x-n.x),e.height=Math.abs(i.y-t.y),e.x=n.x+e.width/2,e.y=t.y+e.height/2)}),b(s.nodes(),function(e){"border"===s.node(e).dummy&&s.removeNode(e)})}function YX(i){b(i.edges(),function(e){var t;e.v===e.w&&((t=i.node(e.v)).selfEdges||(t.selfEdges=[]),t.selfEdges.push({e:e,label:i.edge(e)}),i.removeEdge(e))})}function XX(r){var e=fG(r);b(e,function(e){var n=0;b(e,function(e,t){var i=r.node(e);i.order=t+n,b(i.selfEdges,function(e){uG(r,"selfedge",{width:e.label.width,height:e.label.height,rank:i.rank,order:t+ ++n,e:e.e,label:e.label},"_se")}),delete i.selfEdges})})}function KX(a){b(a.nodes(),function(e){var t,i,n,r,s=a.node(e);"selfedge"===s.dummy&&(t=(r=a.node(s.e.v)).x+r.width/2,i=r.y,n=s.x-t,r=r.height/2,a.setEdge(s.e,s.label),a.removeNode(e),s.label.points=[{x:t+2*n/3,y:i-r},{x:t+5*n/6,y:i-r},{x:t+n,y:i},{x:t+5*n/6,y:i+r},{x:t+2*n/3,y:i+r}],s.label.x=s.x,s.label.y=s.y)})}function ZX(e,t){return $q(DW(e,t),Number)}function QX(e){var i={};return b(e,function(e,t){i[t.toLowerCase()]=e}),i}var JX,eK,tK,iK,nK,rK,sK,aK,oK=e(()=>{"use strict";zV(),XV(),CG(),DG(),hG(),FG(),RY(),PY(),dX(),mX(),NX(),TG(),mt(DX,"layout"),mt(OX,"runLayout"),mt(PX,"updateInputGraph"),JX=["nodesep","edgesep","ranksep","marginx","marginy"],eK={ranksep:50,edgesep:20,nodesep:50,rankdir:"tb"},tK=["acyclicer","ranker","rankdir","align"],iK=["width","height"],nK={width:0,height:0},rK=["minlen","weight","width","height","labeloffset"],sK={minlen:1,weight:1,width:0,height:0,labeloffset:10,labelpos:"r"},aK=["labelpos"],mt(BX,"buildLayoutGraph"),mt(FX,"makeSpaceForEdgeLabels"),mt(jX,"injectEdgeLabelProxies"),mt(zX,"assignRankMinMax"),mt(HX,"removeEdgeLabelProxies"),mt(UX,"translateGraph"),mt(qX,"assignNodeIntersects"),mt(WX,"fixupEdgeLabelCoords"),mt(VX,"reversePointsForReversedEdges"),mt(GX,"removeBorderNodes"),mt(YX,"removeSelfEdges"),mt(XX,"insertSelfEdges"),mt(KX,"positionSelfEdges"),mt(ZX,"selectNumberAttrs"),mt(QX,"canonicalize")}),lK=e(()=>{"use strict";hG(),oK(),FG(),RY()});function cK(e){var t={options:{directed:e.isDirected(),multigraph:e.isMultigraph(),compound:e.isCompound()},nodes:hK(e),edges:uK(e)};return Tq(e.graph())||(t.value=hj(e.graph())),t}function hK(n){return v(n.nodes(),function(e){var t=n.node(e),i=n.parent(e),e={v:e};return Tq(t)||(e.value=t),Tq(i)||(e.parent=i),e})}function uK(n){return v(n.edges(),function(e){var t=n.edge(e),i={v:e.v,w:e.w};return Tq(e.name)||(i.name=e.name),Tq(t)||(i.value=t),i})}var dK,pK,gK,fK,mK,yK,bK,vK,xK,wK,kK,TK,SK,_K,CK,AK=e(()=>{"use strict";zV(),YV(),mt(cK,"write"),mt(hK,"writeNodes"),mt(uK,"writeEdges")}),EK=e(()=>{"use strict";t(),XV(),AK(),dK=new Map,pK=new Map,gK=new Map,fK=mt(()=>{pK.clear(),gK.clear(),dK.clear()},"clear"),mK=mt((e,t)=>{var i=pK.get(t)||[];return I.trace("In isDescendant",t," ",e," = ",i.includes(e)),i.includes(e)},"isDescendant"),yK=mt((e,t)=>{var i=pK.get(t)||[];return I.info("Descendants of ",t," is ",i),I.info("Edge is ",e),e.v!==t&&e.w!==t&&(i?i.includes(e.v)||mK(e.v,t)||mK(e.w,t)||i.includes(e.w):(I.debug("Tilt, ",t,",not in descendants"),!1))},"edgeInCluster"),bK=mt((i,n,r,s)=>{I.warn("Copying children of ",i,"root",s,"data",n.node(i),s);var e=n.children(i)||[];i!==s&&e.push(i),I.warn("Copying (nodes) clusterId",i,"nodes",e),e.forEach(e=>{var t;0<n.children(e).length?bK(e,n,r,s):(t=n.node(e),I.info("cp ",e," to ",s," with parent ",i),r.setNode(e,t),s!==n.parent(e)&&(I.warn("Setting parent",e,n.parent(e)),r.setParent(e,n.parent(e))),i!==s&&e!==i?(I.debug("Setting parent",e,i),r.setParent(e,i)):(I.info("In copy ",i,"root",s,"data",n.node(i),s),I.debug("Not Setting parent for node=",e,"cluster!==rootId",i!==s,"node!==clusterId",e!==i)),t=n.edges(e),I.debug("Copying Edges",t),t.forEach(e=>{I.info("Edge",e);var t=n.edge(e.v,e.w,e.name);I.info("Edge data",t,s);try{yK(e,s)?(I.info("Copying as ",e.v,e.w,t,e.name),r.setEdge(e.v,e.w,t,e.name),I.info("newGraph edges ",r.edges(),r.edge(r.edges()[0]))):I.info("Skipping copy of edge ",e.v,"--\x3e",e.w," rootId: ",s," clusterId:",i)}catch(e){I.error(e)}})),I.debug("Removing node",e),n.removeNode(e)})},"copy"),vK=mt((e,t)=>{let i=t.children(e),n=[...i];for(var r of i)gK.set(r,e),n=[...n,...vK(r,t)];return n},"extractDescendants"),xK=mt((e,t,i)=>{let n=e.edges().filter(e=>e.v===t||e.w===t),r=e.edges().filter(e=>e.v===i||e.w===i),s=n.map(e=>({v:e.v===t?i:e.v,w:e.w===t?t:e.w})),a=r.map(e=>({v:e.v,w:e.w}));return s.filter(t=>a.some(e=>t.v===e.v&&t.w===e.w))},"findCommonEdges"),wK=mt((e,t,i)=>{var n,r=t.children(e);if(I.trace("Searching children of id ",e,r),r.length<1)return e;let s;for(n of r){var a=wK(n,t,i),o=xK(t,i,a);if(a){if(!(0<o.length))return a;s=a}}return s},"findNonClusterChild"),kK=mt(e=>dK.has(e)&&dK.get(e).externalConnections&&dK.has(e)?dK.get(e).id:e,"getAnchorId"),TK=mt((s,e)=>{if(!s||10<e)I.debug("Opting out, no graph ");else{I.debug("Opting in, graph "),s.nodes().forEach(function(e){0<s.children(e).length&&(I.warn("Cluster identified",e," Replacement id in edges: ",wK(e,s,e)),pK.set(e,vK(e,s)),dK.set(e,{id:wK(e,s,e),clusterData:s.node(e)}))}),s.nodes().forEach(function(t){var e=s.children(t),i=s.edges();0<e.length?(I.debug("Cluster identified",t,pK),i.forEach(e=>{mK(e.v,t)^mK(e.w,t)&&(I.warn("Edge: ",e," leaves cluster ",t),I.warn("Descendants of XXX ",t,": ",pK.get(t)),dK.get(t).externalConnections=!0)})):I.debug("Not a cluster ",t,pK)});for(var t of dK.keys()){var i=dK.get(t).id,i=s.parent(i);i!==t&&dK.has(i)&&!dK.get(i).externalConnections&&(dK.get(t).id=i)}s.edges().forEach(function(e){var t,i,n,r=s.edge(e);I.warn("Edge "+e.v+" -> "+e.w+": "+JSON.stringify(e)),I.warn("Edge "+e.v+" -> "+e.w+": "+JSON.stringify(s.edge(e))),e.v,e.w;I.warn("Fix XXX",dK,"ids:",e.v,e.w,"Translating: ",dK.get(e.v)," --- ",dK.get(e.w)),(dK.get(e.v)||dK.get(e.w))&&(I.warn("Fixing and trying - removing XXX",e.v,e.w,e.name),t=kK(e.v),i=kK(e.w),s.removeEdge(e.v,e.w,e.name),t!==e.v&&(n=s.parent(t),dK.get(n).externalConnections=!0,r.fromCluster=e.v),i!==e.w&&(n=s.parent(i),dK.get(n).externalConnections=!0,r.toCluster=e.w),I.warn("Fix Replacing with XXX",t,i,e.name),s.setEdge(t,i,r,e.name))}),I.warn("Adjusted Graph",cK(s)),SK(s,0),I.trace(dK)}},"adjustClustersAndEdges"),SK=mt((i,n)=>{if(I.warn("extractor - ",n,cK(i),i.children("D")),10<n)I.error("Bailing out");else{let e=i.nodes(),t=!1;for(var r of e){r=i.children(r);t=t||0<r.length}if(t){I.debug("Nodes = ",e,n);for(var s of e)if(I.debug("Extracting node",s,dK,dK.has(s)&&!dK.get(s).externalConnections,!i.parent(s),i.node(s),i.children("D")," Depth ",n),dK.has(s))if(!dK.get(s).externalConnections&&i.children(s)&&0<i.children(s).length){I.warn("Cluster without external connections, without a parent and with children",s,n);let e="TB"===i.graph().rankdir?"LR":"TB";dK.get(s)?.clusterData?.dir&&(e=dK.get(s).clusterData.dir,I.warn("Fixing dir",dK.get(s).clusterData.dir,e));var a=new GV({multigraph:!0,compound:!0}).setGraph({rankdir:e,nodesep:50,ranksep:50,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}});I.warn("Old graph before copy",cK(i)),bK(s,i,a,s),i.setNode(s,{clusterNode:!0,id:s,clusterData:dK.get(s).clusterData,label:dK.get(s).label,graph:a}),I.warn("New graph after copy node: (",s,")",cK(a)),I.debug("Old graph after copy",cK(i))}else I.warn("Cluster ** ",s," **not meeting the criteria !externalConnections:",!dK.get(s).externalConnections," no parent: ",!i.parent(s)," children ",i.children(s)&&0<i.children(s).length,i.children("D"),n),I.debug(dK);else I.debug("Not a cluster",s,n);e=i.nodes(),I.warn("New list of nodes",e);for(var o of e){var l=i.node(o);I.warn(" Now next level",o,l),l?.clusterNode&&SK(l.graph,n+1)}}else I.debug("Done, no node has children",i.nodes())}},"extractor"),_K=mt((t,e)=>{if(0===e.length)return[];let i=Object.assign([],e);return e.forEach(e=>{e=t.children(e),e=_K(t,e);i=[...i,...e]}),i},"sorter"),CK=mt(e=>_K(e,e.children()),"sortNodesByHierarchy")}),$K={};V($K,{render:()=>RK});var LK,RK,MK,IK,NK,DK,OK,PK,BK,FK,jK,zK,HK,UK,qK,WK,VK,GK,YK,XK,KK=e(()=>{"use strict";lK(),AK(),XV(),UD(),r(),EK(),KD(),eD(),HD(),t(),JN(),Cu(),LK=mt(async(e,r,s,a,o,l)=>{I.warn("Graph in recursive render:XAX",cK(r),o);let c=r.graph().rankdir;I.trace("Dir in recursive render - dir:",c);e=e.insert("g").attr("class","root");r.nodes()?I.info("Recursive render XXX",r.nodes()):I.info("No nodes found for",r),0<r.edges().length&&I.info("Recursive edges",r.edge(r.edges()[0]));let n=e.insert("g").attr("class","clusters"),h=e.insert("g").attr("class","edgePaths"),i=e.insert("g").attr("class","edgeLabels"),u=e.insert("g").attr("class","nodes"),d=(await Promise.all(r.nodes().map(async function(e){var t,i,n=r.node(e);void 0!==o&&(t=JSON.parse(JSON.stringify(o.clusterData)),I.trace(`Setting data for parent cluster XXX
|
||
Node.id = `,e,`
|
||
data=`,t.height,`
|
||
Parent cluster`,o.height),r.setNode(o.id,t),r.parent(e)||(I.trace("Setting parent",e,o.id),r.setParent(e,o.id,t))),I.info("(Insert) Node XXX"+e+": "+JSON.stringify(r.node(e))),n?.clusterNode?(I.info("Cluster identified XBX",e,n.width,r.node(e)),{ranksep:t,nodesep:i}=r.graph(),n.graph.setGraph({...n.graph.graph(),ranksep:t+25,nodesep:i}),i=(t=await LK(u,n.graph,s,a,r.node(e),l)).elem,aL(n,i),n.diff=t.diff||0,I.info("New compound node after recursive render XAX",e,"width",n.width,"height",n.height),VD(i,n)):0<r.children(e).length?(I.trace("Cluster - the non recursive path XBX",e,n.id,n,n.width,"Graph:",r),I.trace(wK(n.id,r)),dK.set(n.id,{id:wK(n.id,r),node:n})):(I.trace("Node - the non recursive path XAX",e,u,r.node(e),c),await qD(u,r.node(e),{config:l,dir:c}))})),await mt(async()=>{var e=r.edges().map(async function(e){var t=r.edge(e.v,e.w,e.name);I.info("Edge "+e.v+" -> "+e.w+": "+JSON.stringify(e)),I.info("Edge "+e.v+" -> "+e.w+": ",e," ",JSON.stringify(r.edge(e))),I.info("Fix",dK,"ids:",e.v,e.w,"Translating: ",dK.get(e.v),dK.get(e.w)),await mD(i,t)});await Promise.all(e)},"processEdges")(),I.info("Graph before layout:",JSON.stringify(cK(r))),I.info("############################################# XXX"),I.info("### Layout ### XXX"),I.info("############################################# XXX"),DX(r),I.info("Graph after layout:",JSON.stringify(cK(r))),0),p=jN(l)["subGraphTitleTotalMargin"];return await Promise.all(CK(r).map(async function(e){var t,i=r.node(e);I.info("Position XBX => "+e+": ("+i.x,","+i.y,") width: ",i.width," height: ",i.height),i?.clusterNode?(i.y+=p,I.info("A tainted cluster node XBX1",e,i.id,i.width,i.height,i.x,i.y,r.parent(e)),dK.get(i.id).node=i,YD(i)):0<r.children(e).length?(I.info("A pure cluster node XBX1",e,i.id,i.x,i.y,i.width,i.height,r.parent(e)),i.height+=p,r.node(i.parentId),e=i?.padding/2||0,t=i?.labelBBox?.height||0,I.debug("OffsetY",t-e||0,"labelHeight",t,"halfPadding",e),await YN(n,i),dK.get(i.id).node=i):(t=r.node(i.parentId),i.y+=p/2,I.info("A regular node XBX1 - using the padding",i.id,"parent",i.parentId,i.width,i.height,i.x,i.y,"offsetY",i.offsetY,"parent",t,t?.offsetY,i),YD(i))})),r.edges().forEach(function(e){var t=r.edge(e),i=(I.info("Edge "+e.v+" -> "+e.w+": "+JSON.stringify(t),t),t.points.forEach(e=>e.y+=p/2),r.node(e.v)),e=r.node(e.w),i=TD(h,t,dK,s,i,e,a);yD(t,i)}),r.nodes().forEach(function(e){var t=r.node(e);I.info(e,t.type,t.diff),t.isGroup&&(d=t.diff)}),I.warn("Returning from recursive render XAX",e,d),{elem:e,diff:d}},"recursiveRender"),RK=mt(async(e,t)=>{let l=new GV({multigraph:!0,compound:!0}).setGraph({rankdir:e.direction,nodesep:e.config?.nodeSpacing||e.config?.flowchart?.nodeSpacing||e.nodeSpacing,ranksep:e.config?.rankSpacing||e.config?.flowchart?.rankSpacing||e.rankSpacing,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}}),i=t.select("g");zD(i,e.markers,e.type,e.diagramId),GD(),gD(),XN(),fK(),e.nodes.forEach(e=>{l.setNode(e.id,{...e}),e.parentId&&l.setParent(e.id,e.parentId)}),I.debug("Edges:",e.edges),e.edges.forEach(e=>{var t,i,n,r,s,a,o;e.start===e.end?(i=(t=e.start)+"---"+t+"---1",n=t+"---"+t+"---2",r=l.node(t),l.setNode(i,{domId:i,id:i,parentId:r.parentId,labelStyle:"",label:"",padding:0,shape:"labelRect",style:"",width:10,height:10}),l.setParent(i,r.parentId),l.setNode(n,{domId:n,id:n,parentId:r.parentId,labelStyle:"",padding:0,shape:"labelRect",label:"",style:"",width:10,height:10}),l.setParent(n,r.parentId),s=structuredClone(e),a=structuredClone(e),o=structuredClone(e),s.label="",s.arrowTypeEnd="none",s.id=t+"-cyclic-special-1",a.arrowTypeStart="none",a.arrowTypeEnd="none",a.id=t+"-cyclic-special-mid",o.label="",r.isGroup&&(s.fromCluster=t,o.toCluster=t),o.id=t+"-cyclic-special-2",o.arrowTypeStart="none",l.setEdge(t,i,s,t+"-cyclic-special-0"),l.setEdge(i,n,a,t+"-cyclic-special-1"),l.setEdge(n,t,o,t+"-cyc<lic-special-2")):l.setEdge(e.start,e.end,{...e},e.id)}),I.warn("Graph at first:",JSON.stringify(cK(l))),TK(l),I.warn("Graph after XAX:",JSON.stringify(cK(l)));t=N();await LK(i,l,e.type,e.diagramId,void 0,t)},"render")}),ZK=e(()=>{"use strict";ZD(),t(),MK={},IK=mt(e=>{for(var t of e)MK[t.name]=t},"registerLayoutLoaders"),mt(()=>{IK([{name:"dagre",loader:mt(async()=>Promise.resolve().then(()=>(KK(),$K)),"loader")}])},"registerDefaultLayoutLoaders")(),NK=mt(async(e,t)=>{var i;if(e.layoutAlgorithm in MK)return(await(i=MK[e.layoutAlgorithm]).loader()).render(e,t,XD,{algorithm:i.algorithm});throw new Error("Unknown layout algorithm: "+e.layoutAlgorithm)},"render"),DK=mt((e="",{fallback:t="dagre"}={})=>{if(e in MK)return e;if(t in MK)return I.warn(`Layout algorithm ${e} is not registered. Using ${t} as fallback.`),t;throw new Error(`Both layout algorithms ${e} and ${t} are not registered.`)},"getRegisteredLayoutAlgorithm")}),QK=e(()=>{"use strict";uh(),t(),OK=mt((e,t,i,n)=>{e.attr("class",i);var{width:i,height:r,x:s,y:a}=PK(e,t),n=(rh(e,r,i,n),BK(s,a,i,r,t));e.attr("viewBox",n),I.debug(`viewBox configured: ${n} with padding: `+t)},"setupViewPortForSVG"),PK=mt((e,t)=>{e=e.node()?.getBBox()||{width:0,height:0,x:0,y:0};return{width:e.width+2*t,height:e.height+2*t,x:e.x,y:e.y}},"calculateDimensionsWithPadding"),BK=mt((e,t,i,n,r)=>e-r+` ${t-r} ${i} `+n,"createViewBox")}),JK=e(()=>{"use strict";a6(),Cu(),t(),QN(),ZK(),QK(),sC(),FK=mt(function(e,t){return t.db.getClasses()},"getClasses"),jK=mt(async function(e,t,i,n){I.info("REF0:"),I.info("Drawing state diagram (v2)",t);let{securityLevel:r,flowchart:s,layout:a}=N(),o;"sandbox"===r&&(o=G("#i"+t));var l,c="sandbox"===r?o.nodes()[0].contentDocument:document,h=(I.debug("Before getData: "),n.db.getData()),u=(I.debug("Data: ",h),FN(t,r)),d=n.db.getDirection(),d=(h.type=n.type,h.layoutAlgorithm=DK(a),"dagre"===h.layoutAlgorithm&&"elk"===a&&I.warn("flowchart-elk was moved to an external package in Mermaid v11. Please refer [release notes](https://github.com/mermaid-js/mermaid/releases/tag/v11.0.0) for more details. This diagram will be rendered using `dagre` layout as a fallback."),h.direction=d,h.nodeSpacing=s?.nodeSpacing||50,h.rankSpacing=s?.rankSpacing||50,h.markers=["point","circle","cross"],h.diagramId=t,I.debug("REF1:",h),await NK(h,u),h.config.flowchart?.diagramPadding??8);tC.insertTitle(u,"flowchartTitleText",s?.titleTopMargin||0,n.db.getDiagramTitle()),OK(u,d,"flowchart",s?.useMaxWidth||!1);for(l of h.nodes){var p=G(`#${t} [id="${l.id}"]`);if(p&&l.link){let e=c.createElementNS("http://www.w3.org/2000/svg","a"),t=(e.setAttributeNS("http://www.w3.org/2000/svg","class",l.cssClasses),e.setAttributeNS("http://www.w3.org/2000/svg","rel","noopener"),"sandbox"===r?e.setAttributeNS("http://www.w3.org/2000/svg","target","_top"):l.linkTarget&&e.setAttributeNS("http://www.w3.org/2000/svg","target",l.linkTarget),p.insert(function(){return e},":first-child")),i=p.select(".label-container"),n=(i&&t.append(function(){return i.node()}),p.select(".label"));n&&t.append(function(){return n.node()})}}},"draw"),zK={getClasses:FK,draw:jK}}),eZ=e(()=>{"use strict";function O(){this.yy={}}var e,P,B,F,j,z,H,U,q,W,V,G,Y,X,t,i,K,Z,Q,J,ee,n,r,s,a,o,l,c,h,u,te,ie,ne,re,se,d,p,g,f,ae,oe,le,ce,he,ue,de,pe,ge,fe,me,ye,be,ve,m,y,xe,we,ke,Te,Se,_e,Ce,Ae,Ee,$e,Le,Re,Me,Ie,Ne,De,Oe,Pe,Be,Fe,je,ze,He,Ue,qe,We,Ve,Ge,Ye,Xe,Ke,b,v,x,w,k,T,S,_,Ze,C,Qe,Je,A,E,$,L,R,M,I,N,et,tt,D;e=mt(function(e,t,i,n){for(i=i||{},n=e.length;n--;i[e[n]]=t);return i},"o"),P=[1,4],B=[1,3],F=[1,5],j=[1,8,9,10,11,27,34,36,38,44,60,84,85,86,87,88,89,102,105,106,109,111,114,115,116,121,122,123,124],z=[2,2],H=[1,13],U=[1,14],q=[1,15],W=[1,16],V=[1,23],G=[1,25],Y=[1,26],X=[1,27],t=[1,49],i=[1,48],K=[1,29],Z=[1,30],Q=[1,31],J=[1,32],ee=[1,33],n=[1,44],r=[1,46],s=[1,42],a=[1,47],o=[1,43],l=[1,50],c=[1,45],h=[1,51],u=[1,52],te=[1,34],ie=[1,35],ne=[1,36],re=[1,37],se=[1,57],d=[1,8,9,10,11,27,32,34,36,38,44,60,84,85,86,87,88,89,102,105,106,109,111,114,115,116,121,122,123,124],p=[1,61],g=[1,60],f=[1,62],ae=[8,9,11,75,77,78],oe=[1,78],le=[1,91],ce=[1,96],he=[1,95],ue=[1,92],de=[1,88],pe=[1,94],ge=[1,90],fe=[1,97],me=[1,93],ye=[1,98],be=[1,89],ve=[8,9,10,11,40,75,77,78],m=[8,9,10,11,40,46,75,77,78],y=[8,9,10,11,29,40,44,46,48,50,52,54,56,58,60,63,65,67,68,70,75,77,78,89,102,105,106,109,111,114,115,116],xe=[8,9,11,44,60,75,77,78,89,102,105,106,109,111,114,115,116],we=[44,60,89,102,105,106,109,111,114,115,116],ke=[1,121],Te=[1,122],Se=[1,124],_e=[1,123],Ce=[44,60,62,74,89,102,105,106,109,111,114,115,116],Ae=[1,133],Ee=[1,147],$e=[1,148],Le=[1,149],Re=[1,150],Me=[1,135],Ie=[1,137],Ne=[1,141],De=[1,142],Oe=[1,143],Pe=[1,144],Be=[1,145],Fe=[1,146],je=[1,151],ze=[1,152],He=[1,131],Ue=[1,132],qe=[1,139],We=[1,134],Ve=[1,138],Ge=[1,136],Ye=[8,9,10,11,27,32,34,36,38,44,60,84,85,86,87,88,89,102,105,106,109,111,114,115,116,121,122,123,124],Xe=[1,154],Ke=[1,156],b=[8,9,11],v=[8,9,10,11,14,44,60,89,105,106,109,111,114,115,116],x=[1,176],w=[1,172],k=[1,173],T=[1,177],S=[1,174],_=[1,175],Ze=[77,116,119],C=[8,9,10,11,12,14,27,29,32,44,60,75,84,85,86,87,88,89,90,105,109,111,114,115,116],Qe=[10,106],Je=[31,49,51,53,55,57,62,64,66,67,69,71,116,117,118],A=[1,247],E=[1,245],$=[1,249],L=[1,243],R=[1,244],M=[1,246],I=[1,248],N=[1,250],et=[1,268],tt=[8,9,11,106],D=[8,9,10,11,60,84,105,106,109,110,111,112],P={trace:mt(function(){},"trace"),yy:{},symbols_:{error:2,start:3,graphConfig:4,document:5,line:6,statement:7,SEMI:8,NEWLINE:9,SPACE:10,EOF:11,GRAPH:12,NODIR:13,DIR:14,FirstStmtSeparator:15,ending:16,endToken:17,spaceList:18,spaceListNewline:19,vertexStatement:20,separator:21,styleStatement:22,linkStyleStatement:23,classDefStatement:24,classStatement:25,clickStatement:26,subgraph:27,textNoTags:28,SQS:29,text:30,SQE:31,end:32,direction:33,acc_title:34,acc_title_value:35,acc_descr:36,acc_descr_value:37,acc_descr_multiline_value:38,shapeData:39,SHAPE_DATA:40,link:41,node:42,styledVertex:43,AMP:44,vertex:45,STYLE_SEPARATOR:46,idString:47,DOUBLECIRCLESTART:48,DOUBLECIRCLEEND:49,PS:50,PE:51,"(-":52,"-)":53,STADIUMSTART:54,STADIUMEND:55,SUBROUTINESTART:56,SUBROUTINEEND:57,VERTEX_WITH_PROPS_START:58,"NODE_STRING[field]":59,COLON:60,"NODE_STRING[value]":61,PIPE:62,CYLINDERSTART:63,CYLINDEREND:64,DIAMOND_START:65,DIAMOND_STOP:66,TAGEND:67,TRAPSTART:68,TRAPEND:69,INVTRAPSTART:70,INVTRAPEND:71,linkStatement:72,arrowText:73,TESTSTR:74,START_LINK:75,edgeText:76,LINK:77,LINK_ID:78,edgeTextToken:79,STR:80,MD_STR:81,textToken:82,keywords:83,STYLE:84,LINKSTYLE:85,CLASSDEF:86,CLASS:87,CLICK:88,DOWN:89,UP:90,textNoTagsToken:91,stylesOpt:92,"idString[vertex]":93,"idString[class]":94,CALLBACKNAME:95,CALLBACKARGS:96,HREF:97,LINK_TARGET:98,"STR[link]":99,"STR[tooltip]":100,alphaNum:101,DEFAULT:102,numList:103,INTERPOLATE:104,NUM:105,COMMA:106,style:107,styleComponent:108,NODE_STRING:109,UNIT:110,BRKT:111,PCT:112,idStringToken:113,MINUS:114,MULT:115,UNICODE_TEXT:116,TEXT:117,TAGSTART:118,EDGE_TEXT:119,alphaNumToken:120,direction_tb:121,direction_bt:122,direction_rl:123,direction_lr:124,$accept:0,$end:1},terminals_:{2:"error",8:"SEMI",9:"NEWLINE",10:"SPACE",11:"EOF",12:"GRAPH",13:"NODIR",14:"DIR",27:"subgraph",29:"SQS",31:"SQE",32:"end",34:"acc_title",35:"acc_title_value",36:"acc_descr",37:"acc_descr_value",38:"acc_descr_multiline_value",40:"SHAPE_DATA",44:"AMP",46:"STYLE_SEPARATOR",48:"DOUBLECIRCLESTART",49:"DOUBLECIRCLEEND",50:"PS",51:"PE",52:"(-",53:"-)",54:"STADIUMSTART",55:"STADIUMEND",56:"SUBROUTINESTART",57:"SUBROUTINEEND",58:"VERTEX_WITH_PROPS_START",59:"NODE_STRING[field]",60:"COLON",61:"NODE_STRING[value]",62:"PIPE",63:"CYLINDERSTART",64:"CYLINDEREND",65:"DIAMOND_START",66:"DIAMOND_STOP",67:"TAGEND",68:"TRAPSTART",69:"TRAPEND",70:"INVTRAPSTART",71:"INVTRAPEND",74:"TESTSTR",75:"START_LINK",77:"LINK",78:"LINK_ID",80:"STR",81:"MD_STR",84:"STYLE",85:"LINKSTYLE",86:"CLASSDEF",87:"CLASS",88:"CLICK",89:"DOWN",90:"UP",93:"idString[vertex]",94:"idString[class]",95:"CALLBACKNAME",96:"CALLBACKARGS",97:"HREF",98:"LINK_TARGET",99:"STR[link]",100:"STR[tooltip]",102:"DEFAULT",104:"INTERPOLATE",105:"NUM",106:"COMMA",109:"NODE_STRING",110:"UNIT",111:"BRKT",112:"PCT",114:"MINUS",115:"MULT",116:"UNICODE_TEXT",117:"TEXT",118:"TAGSTART",119:"EDGE_TEXT",121:"direction_tb",122:"direction_bt",123:"direction_rl",124:"direction_lr"},productions_:[0,[3,2],[5,0],[5,2],[6,1],[6,1],[6,1],[6,1],[6,1],[4,2],[4,2],[4,2],[4,3],[16,2],[16,1],[17,1],[17,1],[17,1],[15,1],[15,1],[15,2],[19,2],[19,2],[19,1],[19,1],[18,2],[18,1],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[7,9],[7,6],[7,4],[7,1],[7,2],[7,2],[7,1],[21,1],[21,1],[21,1],[39,2],[39,1],[20,4],[20,3],[20,4],[20,2],[20,2],[20,1],[42,1],[42,6],[42,5],[43,1],[43,3],[45,4],[45,4],[45,6],[45,4],[45,4],[45,4],[45,8],[45,4],[45,4],[45,4],[45,6],[45,4],[45,4],[45,4],[45,4],[45,4],[45,1],[41,2],[41,3],[41,3],[41,1],[41,3],[41,4],[76,1],[76,2],[76,1],[76,1],[72,1],[72,2],[73,3],[30,1],[30,2],[30,1],[30,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[28,1],[28,2],[28,1],[28,1],[24,5],[25,5],[26,2],[26,4],[26,3],[26,5],[26,3],[26,5],[26,5],[26,7],[26,2],[26,4],[26,2],[26,4],[26,4],[26,6],[22,5],[23,5],[23,5],[23,9],[23,9],[23,7],[23,7],[103,1],[103,3],[92,1],[92,3],[107,1],[107,2],[108,1],[108,1],[108,1],[108,1],[108,1],[108,1],[108,1],[108,1],[113,1],[113,1],[113,1],[113,1],[113,1],[113,1],[113,1],[113,1],[113,1],[113,1],[113,1],[82,1],[82,1],[82,1],[82,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[79,1],[79,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[47,1],[47,2],[101,1],[101,2],[33,1],[33,1],[33,1],[33,1]],performAction:mt(function(e,t,i,n,r,s,a){var o=s.length-1;switch(r){case 2:this.$=[];break;case 3:(!Array.isArray(s[o])||0<s[o].length)&&s[o-1].push(s[o]),this.$=s[o-1];break;case 4:case 183:this.$=s[o];break;case 11:n.setDirection("TB"),this.$="TB";break;case 12:n.setDirection(s[o-1]),this.$=s[o-1];break;case 27:this.$=s[o-1].nodes;break;case 28:case 29:case 30:case 31:case 32:this.$=[];break;case 33:this.$=n.addSubGraph(s[o-6],s[o-1],s[o-4]);break;case 34:this.$=n.addSubGraph(s[o-3],s[o-1],s[o-3]);break;case 35:this.$=n.addSubGraph(void 0,s[o-1],void 0);break;case 37:this.$=s[o].trim(),n.setAccTitle(this.$);break;case 38:case 39:this.$=s[o].trim(),n.setAccDescription(this.$);break;case 43:this.$=s[o-1]+s[o];break;case 44:this.$=s[o];break;case 45:n.addVertex(s[o-1][s[o-1].length-1],void 0,void 0,void 0,void 0,void 0,void 0,s[o]),n.addLink(s[o-3].stmt,s[o-1],s[o-2]),this.$={stmt:s[o-1],nodes:s[o-1].concat(s[o-3].nodes)};break;case 46:n.addLink(s[o-2].stmt,s[o],s[o-1]),this.$={stmt:s[o],nodes:s[o].concat(s[o-2].nodes)};break;case 47:n.addLink(s[o-3].stmt,s[o-1],s[o-2]),this.$={stmt:s[o-1],nodes:s[o-1].concat(s[o-3].nodes)};break;case 48:this.$={stmt:s[o-1],nodes:s[o-1]};break;case 49:n.addVertex(s[o-1][s[o-1].length-1],void 0,void 0,void 0,void 0,void 0,void 0,s[o]),this.$={stmt:s[o-1],nodes:s[o-1],shapeData:s[o]};break;case 50:this.$={stmt:s[o],nodes:s[o]};break;case 51:this.$=[s[o]];break;case 52:n.addVertex(s[o-5][s[o-5].length-1],void 0,void 0,void 0,void 0,void 0,void 0,s[o-4]),this.$=s[o-5].concat(s[o]);break;case 53:this.$=s[o-4].concat(s[o]);break;case 54:this.$=s[o];break;case 55:this.$=s[o-2],n.setClass(s[o-2],s[o]);break;case 56:this.$=s[o-3],n.addVertex(s[o-3],s[o-1],"square");break;case 57:this.$=s[o-3],n.addVertex(s[o-3],s[o-1],"doublecircle");break;case 58:this.$=s[o-5],n.addVertex(s[o-5],s[o-2],"circle");break;case 59:this.$=s[o-3],n.addVertex(s[o-3],s[o-1],"ellipse");break;case 60:this.$=s[o-3],n.addVertex(s[o-3],s[o-1],"stadium");break;case 61:this.$=s[o-3],n.addVertex(s[o-3],s[o-1],"subroutine");break;case 62:this.$=s[o-7],n.addVertex(s[o-7],s[o-1],"rect",void 0,void 0,void 0,Object.fromEntries([[s[o-5],s[o-3]]]));break;case 63:this.$=s[o-3],n.addVertex(s[o-3],s[o-1],"cylinder");break;case 64:this.$=s[o-3],n.addVertex(s[o-3],s[o-1],"round");break;case 65:this.$=s[o-3],n.addVertex(s[o-3],s[o-1],"diamond");break;case 66:this.$=s[o-5],n.addVertex(s[o-5],s[o-2],"hexagon");break;case 67:this.$=s[o-3],n.addVertex(s[o-3],s[o-1],"odd");break;case 68:this.$=s[o-3],n.addVertex(s[o-3],s[o-1],"trapezoid");break;case 69:this.$=s[o-3],n.addVertex(s[o-3],s[o-1],"inv_trapezoid");break;case 70:this.$=s[o-3],n.addVertex(s[o-3],s[o-1],"lean_right");break;case 71:this.$=s[o-3],n.addVertex(s[o-3],s[o-1],"lean_left");break;case 72:this.$=s[o],n.addVertex(s[o]);break;case 73:s[o-1].text=s[o],this.$=s[o-1];break;case 74:case 75:s[o-2].text=s[o-1],this.$=s[o-2];break;case 76:this.$=s[o];break;case 77:var l=n.destructLink(s[o],s[o-2]);this.$={type:l.type,stroke:l.stroke,length:l.length,text:s[o-1]};break;case 78:l=n.destructLink(s[o],s[o-2]);this.$={type:l.type,stroke:l.stroke,length:l.length,text:s[o-1],id:s[o-3]};break;case 79:this.$={text:s[o],type:"text"};break;case 80:this.$={text:s[o-1].text+""+s[o],type:s[o-1].type};break;case 81:this.$={text:s[o],type:"string"};break;case 82:this.$={text:s[o],type:"markdown"};break;case 83:l=n.destructLink(s[o]);this.$={type:l.type,stroke:l.stroke,length:l.length};break;case 84:l=n.destructLink(s[o]);this.$={type:l.type,stroke:l.stroke,length:l.length,id:s[o-1]};break;case 85:this.$=s[o-1];break;case 86:this.$={text:s[o],type:"text"};break;case 87:this.$={text:s[o-1].text+""+s[o],type:s[o-1].type};break;case 88:this.$={text:s[o],type:"string"};break;case 89:case 104:this.$={text:s[o],type:"markdown"};break;case 101:this.$={text:s[o],type:"text"};break;case 102:this.$={text:s[o-1].text+""+s[o],type:s[o-1].type};break;case 103:this.$={text:s[o],type:"text"};break;case 105:this.$=s[o-4],n.addClass(s[o-2],s[o]);break;case 106:this.$=s[o-4],n.setClass(s[o-2],s[o]);break;case 107:case 115:this.$=s[o-1],n.setClickEvent(s[o-1],s[o]);break;case 108:case 116:this.$=s[o-3],n.setClickEvent(s[o-3],s[o-2]),n.setTooltip(s[o-3],s[o]);break;case 109:this.$=s[o-2],n.setClickEvent(s[o-2],s[o-1],s[o]);break;case 110:this.$=s[o-4],n.setClickEvent(s[o-4],s[o-3],s[o-2]),n.setTooltip(s[o-4],s[o]);break;case 111:this.$=s[o-2],n.setLink(s[o-2],s[o]);break;case 112:this.$=s[o-4],n.setLink(s[o-4],s[o-2]),n.setTooltip(s[o-4],s[o]);break;case 113:this.$=s[o-4],n.setLink(s[o-4],s[o-2],s[o]);break;case 114:this.$=s[o-6],n.setLink(s[o-6],s[o-4],s[o]),n.setTooltip(s[o-6],s[o-2]);break;case 117:this.$=s[o-1],n.setLink(s[o-1],s[o]);break;case 118:this.$=s[o-3],n.setLink(s[o-3],s[o-2]),n.setTooltip(s[o-3],s[o]);break;case 119:this.$=s[o-3],n.setLink(s[o-3],s[o-2],s[o]);break;case 120:this.$=s[o-5],n.setLink(s[o-5],s[o-4],s[o]),n.setTooltip(s[o-5],s[o-2]);break;case 121:this.$=s[o-4],n.addVertex(s[o-2],void 0,void 0,s[o]);break;case 122:this.$=s[o-4],n.updateLink([s[o-2]],s[o]);break;case 123:this.$=s[o-4],n.updateLink(s[o-2],s[o]);break;case 124:this.$=s[o-8],n.updateLinkInterpolate([s[o-6]],s[o-2]),n.updateLink([s[o-6]],s[o]);break;case 125:this.$=s[o-8],n.updateLinkInterpolate(s[o-6],s[o-2]),n.updateLink(s[o-6],s[o]);break;case 126:this.$=s[o-6],n.updateLinkInterpolate([s[o-4]],s[o]);break;case 127:this.$=s[o-6],n.updateLinkInterpolate(s[o-4],s[o]);break;case 128:case 130:this.$=[s[o]];break;case 129:case 131:s[o-2].push(s[o]),this.$=s[o-2];break;case 133:this.$=s[o-1]+s[o];break;case 181:this.$=s[o];break;case 182:case 184:this.$=s[o-1]+""+s[o];break;case 185:this.$={stmt:"dir",value:"TB"};break;case 186:this.$={stmt:"dir",value:"BT"};break;case 187:this.$={stmt:"dir",value:"RL"};break;case 188:this.$={stmt:"dir",value:"LR"}}},"anonymous"),table:[{3:1,4:2,9:P,10:B,12:F},{1:[3]},e(j,z,{5:6}),{4:7,9:P,10:B,12:F},{4:8,9:P,10:B,12:F},{13:[1,9],14:[1,10]},{1:[2,1],6:11,7:12,8:H,9:U,10:q,11:W,20:17,22:18,23:19,24:20,25:21,26:22,27:V,33:24,34:G,36:Y,38:X,42:28,43:38,44:t,45:39,47:40,60:i,84:K,85:Z,86:Q,87:J,88:ee,89:n,102:r,105:s,106:a,109:o,111:l,113:41,114:c,115:h,116:u,121:te,122:ie,123:ne,124:re},e(j,[2,9]),e(j,[2,10]),e(j,[2,11]),{8:[1,54],9:[1,55],10:se,15:53,18:56},e(d,[2,3]),e(d,[2,4]),e(d,[2,5]),e(d,[2,6]),e(d,[2,7]),e(d,[2,8]),{8:p,9:g,11:f,21:58,41:59,72:63,75:[1,64],77:[1,66],78:[1,65]},{8:p,9:g,11:f,21:67},{8:p,9:g,11:f,21:68},{8:p,9:g,11:f,21:69},{8:p,9:g,11:f,21:70},{8:p,9:g,11:f,21:71},{8:p,9:g,10:[1,72],11:f,21:73},e(d,[2,36]),{35:[1,74]},{37:[1,75]},e(d,[2,39]),e(ae,[2,50],{18:76,39:77,10:se,40:oe}),{10:[1,79]},{10:[1,80]},{10:[1,81]},{10:[1,82]},{14:le,44:ce,60:he,80:[1,86],89:ue,95:[1,83],97:[1,84],101:85,105:de,106:pe,109:ge,111:fe,114:me,115:ye,116:be,120:87},e(d,[2,185]),e(d,[2,186]),e(d,[2,187]),e(d,[2,188]),e(ve,[2,51]),e(ve,[2,54],{46:[1,99]}),e(m,[2,72],{113:112,29:[1,100],44:t,48:[1,101],50:[1,102],52:[1,103],54:[1,104],56:[1,105],58:[1,106],60:i,63:[1,107],65:[1,108],67:[1,109],68:[1,110],70:[1,111],89:n,102:r,105:s,106:a,109:o,111:l,114:c,115:h,116:u}),e(y,[2,181]),e(y,[2,142]),e(y,[2,143]),e(y,[2,144]),e(y,[2,145]),e(y,[2,146]),e(y,[2,147]),e(y,[2,148]),e(y,[2,149]),e(y,[2,150]),e(y,[2,151]),e(y,[2,152]),e(j,[2,12]),e(j,[2,18]),e(j,[2,19]),{9:[1,113]},e(xe,[2,26],{18:114,10:se}),e(d,[2,27]),{42:115,43:38,44:t,45:39,47:40,60:i,89:n,102:r,105:s,106:a,109:o,111:l,113:41,114:c,115:h,116:u},e(d,[2,40]),e(d,[2,41]),e(d,[2,42]),e(we,[2,76],{73:116,62:[1,118],74:[1,117]}),{76:119,79:120,80:ke,81:Te,116:Se,119:_e},{75:[1,125],77:[1,126]},e(Ce,[2,83]),e(d,[2,28]),e(d,[2,29]),e(d,[2,30]),e(d,[2,31]),e(d,[2,32]),{10:Ae,12:Ee,14:$e,27:Le,28:127,32:Re,44:Me,60:Ie,75:Ne,80:[1,129],81:[1,130],83:140,84:De,85:Oe,86:Pe,87:Be,88:Fe,89:je,90:ze,91:128,105:He,109:Ue,111:qe,114:We,115:Ve,116:Ge},e(Ye,z,{5:153}),e(d,[2,37]),e(d,[2,38]),e(ae,[2,48],{44:Xe}),e(ae,[2,49],{18:155,10:se,40:Ke}),e(ve,[2,44]),{44:t,47:157,60:i,89:n,102:r,105:s,106:a,109:o,111:l,113:41,114:c,115:h,116:u},{102:[1,158],103:159,105:[1,160]},{44:t,47:161,60:i,89:n,102:r,105:s,106:a,109:o,111:l,113:41,114:c,115:h,116:u},{44:t,47:162,60:i,89:n,102:r,105:s,106:a,109:o,111:l,113:41,114:c,115:h,116:u},e(b,[2,107],{10:[1,163],96:[1,164]}),{80:[1,165]},e(b,[2,115],{120:167,10:[1,166],14:le,44:ce,60:he,89:ue,105:de,106:pe,109:ge,111:fe,114:me,115:ye,116:be}),e(b,[2,117],{10:[1,168]}),e(v,[2,183]),e(v,[2,170]),e(v,[2,171]),e(v,[2,172]),e(v,[2,173]),e(v,[2,174]),e(v,[2,175]),e(v,[2,176]),e(v,[2,177]),e(v,[2,178]),e(v,[2,179]),e(v,[2,180]),{44:t,47:169,60:i,89:n,102:r,105:s,106:a,109:o,111:l,113:41,114:c,115:h,116:u},{30:170,67:x,80:w,81:k,82:171,116:T,117:S,118:_},{30:178,67:x,80:w,81:k,82:171,116:T,117:S,118:_},{30:180,50:[1,179],67:x,80:w,81:k,82:171,116:T,117:S,118:_},{30:181,67:x,80:w,81:k,82:171,116:T,117:S,118:_},{30:182,67:x,80:w,81:k,82:171,116:T,117:S,118:_},{30:183,67:x,80:w,81:k,82:171,116:T,117:S,118:_},{109:[1,184]},{30:185,67:x,80:w,81:k,82:171,116:T,117:S,118:_},{30:186,65:[1,187],67:x,80:w,81:k,82:171,116:T,117:S,118:_},{30:188,67:x,80:w,81:k,82:171,116:T,117:S,118:_},{30:189,67:x,80:w,81:k,82:171,116:T,117:S,118:_},{30:190,67:x,80:w,81:k,82:171,116:T,117:S,118:_},e(y,[2,182]),e(j,[2,20]),e(xe,[2,25]),e(ae,[2,46],{39:191,18:192,10:se,40:oe}),e(we,[2,73],{10:[1,193]}),{10:[1,194]},{30:195,67:x,80:w,81:k,82:171,116:T,117:S,118:_},{77:[1,196],79:197,116:Se,119:_e},e(Ze,[2,79]),e(Ze,[2,81]),e(Ze,[2,82]),e(Ze,[2,168]),e(Ze,[2,169]),{76:198,79:120,80:ke,81:Te,116:Se,119:_e},e(Ce,[2,84]),{8:p,9:g,10:Ae,11:f,12:Ee,14:$e,21:200,27:Le,29:[1,199],32:Re,44:Me,60:Ie,75:Ne,83:140,84:De,85:Oe,86:Pe,87:Be,88:Fe,89:je,90:ze,91:201,105:He,109:Ue,111:qe,114:We,115:Ve,116:Ge},e(C,[2,101]),e(C,[2,103]),e(C,[2,104]),e(C,[2,157]),e(C,[2,158]),e(C,[2,159]),e(C,[2,160]),e(C,[2,161]),e(C,[2,162]),e(C,[2,163]),e(C,[2,164]),e(C,[2,165]),e(C,[2,166]),e(C,[2,167]),e(C,[2,90]),e(C,[2,91]),e(C,[2,92]),e(C,[2,93]),e(C,[2,94]),e(C,[2,95]),e(C,[2,96]),e(C,[2,97]),e(C,[2,98]),e(C,[2,99]),e(C,[2,100]),{6:11,7:12,8:H,9:U,10:q,11:W,20:17,22:18,23:19,24:20,25:21,26:22,27:V,32:[1,202],33:24,34:G,36:Y,38:X,42:28,43:38,44:t,45:39,47:40,60:i,84:K,85:Z,86:Q,87:J,88:ee,89:n,102:r,105:s,106:a,109:o,111:l,113:41,114:c,115:h,116:u,121:te,122:ie,123:ne,124:re},{10:se,18:203},{44:[1,204]},e(ve,[2,43]),{10:[1,205],44:t,60:i,89:n,102:r,105:s,106:a,109:o,111:l,113:112,114:c,115:h,116:u},{10:[1,206]},{10:[1,207],106:[1,208]},e(Qe,[2,128]),{10:[1,209],44:t,60:i,89:n,102:r,105:s,106:a,109:o,111:l,113:112,114:c,115:h,116:u},{10:[1,210],44:t,60:i,89:n,102:r,105:s,106:a,109:o,111:l,113:112,114:c,115:h,116:u},{80:[1,211]},e(b,[2,109],{10:[1,212]}),e(b,[2,111],{10:[1,213]}),{80:[1,214]},e(v,[2,184]),{80:[1,215],98:[1,216]},e(ve,[2,55],{113:112,44:t,60:i,89:n,102:r,105:s,106:a,109:o,111:l,114:c,115:h,116:u}),{31:[1,217],67:x,82:218,116:T,117:S,118:_},e(Je,[2,86]),e(Je,[2,88]),e(Je,[2,89]),e(Je,[2,153]),e(Je,[2,154]),e(Je,[2,155]),e(Je,[2,156]),{49:[1,219],67:x,82:218,116:T,117:S,118:_},{30:220,67:x,80:w,81:k,82:171,116:T,117:S,118:_},{51:[1,221],67:x,82:218,116:T,117:S,118:_},{53:[1,222],67:x,82:218,116:T,117:S,118:_},{55:[1,223],67:x,82:218,116:T,117:S,118:_},{57:[1,224],67:x,82:218,116:T,117:S,118:_},{60:[1,225]},{64:[1,226],67:x,82:218,116:T,117:S,118:_},{66:[1,227],67:x,82:218,116:T,117:S,118:_},{30:228,67:x,80:w,81:k,82:171,116:T,117:S,118:_},{31:[1,229],67:x,82:218,116:T,117:S,118:_},{67:x,69:[1,230],71:[1,231],82:218,116:T,117:S,118:_},{67:x,69:[1,233],71:[1,232],82:218,116:T,117:S,118:_},e(ae,[2,45],{18:155,10:se,40:Ke}),e(ae,[2,47],{44:Xe}),e(we,[2,75]),e(we,[2,74]),{62:[1,234],67:x,82:218,116:T,117:S,118:_},e(we,[2,77]),e(Ze,[2,80]),{77:[1,235],79:197,116:Se,119:_e},{30:236,67:x,80:w,81:k,82:171,116:T,117:S,118:_},e(Ye,z,{5:237}),e(C,[2,102]),e(d,[2,35]),{43:238,44:t,45:39,47:40,60:i,89:n,102:r,105:s,106:a,109:o,111:l,113:41,114:c,115:h,116:u},{10:se,18:239},{10:A,60:E,84:$,92:240,105:L,107:241,108:242,109:R,110:M,111:I,112:N},{10:A,60:E,84:$,92:251,104:[1,252],105:L,107:241,108:242,109:R,110:M,111:I,112:N},{10:A,60:E,84:$,92:253,104:[1,254],105:L,107:241,108:242,109:R,110:M,111:I,112:N},{105:[1,255]},{10:A,60:E,84:$,92:256,105:L,107:241,108:242,109:R,110:M,111:I,112:N},{44:t,47:257,60:i,89:n,102:r,105:s,106:a,109:o,111:l,113:41,114:c,115:h,116:u},e(b,[2,108]),{80:[1,258]},{80:[1,259],98:[1,260]},e(b,[2,116]),e(b,[2,118],{10:[1,261]}),e(b,[2,119]),e(m,[2,56]),e(Je,[2,87]),e(m,[2,57]),{51:[1,262],67:x,82:218,116:T,117:S,118:_},e(m,[2,64]),e(m,[2,59]),e(m,[2,60]),e(m,[2,61]),{109:[1,263]},e(m,[2,63]),e(m,[2,65]),{66:[1,264],67:x,82:218,116:T,117:S,118:_},e(m,[2,67]),e(m,[2,68]),e(m,[2,70]),e(m,[2,69]),e(m,[2,71]),e([10,44,60,89,102,105,106,109,111,114,115,116],[2,85]),e(we,[2,78]),{31:[1,265],67:x,82:218,116:T,117:S,118:_},{6:11,7:12,8:H,9:U,10:q,11:W,20:17,22:18,23:19,24:20,25:21,26:22,27:V,32:[1,266],33:24,34:G,36:Y,38:X,42:28,43:38,44:t,45:39,47:40,60:i,84:K,85:Z,86:Q,87:J,88:ee,89:n,102:r,105:s,106:a,109:o,111:l,113:41,114:c,115:h,116:u,121:te,122:ie,123:ne,124:re},e(ve,[2,53]),{43:267,44:t,45:39,47:40,60:i,89:n,102:r,105:s,106:a,109:o,111:l,113:41,114:c,115:h,116:u},e(b,[2,121],{106:et}),e(tt,[2,130],{108:269,10:A,60:E,84:$,105:L,109:R,110:M,111:I,112:N}),e(D,[2,132]),e(D,[2,134]),e(D,[2,135]),e(D,[2,136]),e(D,[2,137]),e(D,[2,138]),e(D,[2,139]),e(D,[2,140]),e(D,[2,141]),e(b,[2,122],{106:et}),{10:[1,270]},e(b,[2,123],{106:et}),{10:[1,271]},e(Qe,[2,129]),e(b,[2,105],{106:et}),e(b,[2,106],{113:112,44:t,60:i,89:n,102:r,105:s,106:a,109:o,111:l,114:c,115:h,116:u}),e(b,[2,110]),e(b,[2,112],{10:[1,272]}),e(b,[2,113]),{98:[1,273]},{51:[1,274]},{62:[1,275]},{66:[1,276]},{8:p,9:g,11:f,21:277},e(d,[2,34]),e(ve,[2,52]),{10:A,60:E,84:$,105:L,107:278,108:242,109:R,110:M,111:I,112:N},e(D,[2,133]),{14:le,44:ce,60:he,89:ue,101:279,105:de,106:pe,109:ge,111:fe,114:me,115:ye,116:be,120:87},{14:le,44:ce,60:he,89:ue,101:280,105:de,106:pe,109:ge,111:fe,114:me,115:ye,116:be,120:87},{98:[1,281]},e(b,[2,120]),e(m,[2,58]),{30:282,67:x,80:w,81:k,82:171,116:T,117:S,118:_},e(m,[2,66]),e(Ye,z,{5:283}),e(tt,[2,131],{108:269,10:A,60:E,84:$,105:L,109:R,110:M,111:I,112:N}),e(b,[2,126],{120:167,10:[1,284],14:le,44:ce,60:he,89:ue,105:de,106:pe,109:ge,111:fe,114:me,115:ye,116:be}),e(b,[2,127],{120:167,10:[1,285],14:le,44:ce,60:he,89:ue,105:de,106:pe,109:ge,111:fe,114:me,115:ye,116:be}),e(b,[2,114]),{31:[1,286],67:x,82:218,116:T,117:S,118:_},{6:11,7:12,8:H,9:U,10:q,11:W,20:17,22:18,23:19,24:20,25:21,26:22,27:V,32:[1,287],33:24,34:G,36:Y,38:X,42:28,43:38,44:t,45:39,47:40,60:i,84:K,85:Z,86:Q,87:J,88:ee,89:n,102:r,105:s,106:a,109:o,111:l,113:41,114:c,115:h,116:u,121:te,122:ie,123:ne,124:re},{10:A,60:E,84:$,92:288,105:L,107:241,108:242,109:R,110:M,111:I,112:N},{10:A,60:E,84:$,92:289,105:L,107:241,108:242,109:R,110:M,111:I,112:N},e(m,[2,62]),e(d,[2,33]),e(b,[2,124],{106:et}),e(b,[2,125],{106:et})],defaultActions:{},parseError:mt(function(e,t){var i;if(!t.recoverable)throw(i=new Error(e)).hash=t,i;this.trace(e)},"parseError"),parse:mt(function(e){var t,i=this,n=[0],r=[],s=[null],a=[],o=this.table,l="",c=0,h=0,u=0,d=1,p=a.slice.call(arguments,1),g=Object.create(this.lexer),f={yy:{}};for(t in this.yy)Object.prototype.hasOwnProperty.call(this.yy,t)&&(f.yy[t]=this.yy[t]);g.setInput(e,f.yy),f.yy.lexer=g,f.yy.parser=this,"u"<typeof g.yylloc&&(g.yylloc={});var m=g.yylloc,y=(a.push(m),g.options&&g.options.ranges);function b(){var e=r.pop()||g.lex()||d;return"number"!=typeof e&&(e instanceof Array&&(e=(r=e).pop()),e=i.symbols_[e]||e),e}"function"==typeof f.yy.parseError?this.parseError=f.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError,mt(function(e){n.length=n.length-2*e,s.length=s.length-e,a.length=a.length-e},"popStack"),mt(b,"lex");for(var v,x,w,k,T,S,_,C={};;){if(w=n[n.length-1],"u"<typeof(k=this.defaultActions[w]||((null===v||"u"<typeof v)&&(v=b()),o[w]&&o[w][v]))||!k.length||!k[0]){var A="",E=[];for(T in o[w])this.terminals_[T]&&2<T&&E.push("'"+this.terminals_[T]+"'");A=g.showPosition?"Parse error on line "+(c+1)+`:
|
||
`+g.showPosition()+`
|
||
Expecting `+E.join(", ")+", got '"+(this.terminals_[v]||v)+"'":"Parse error on line "+(c+1)+": Unexpected "+(v==d?"end of input":"'"+(this.terminals_[v]||v)+"'"),this.parseError(A,{text:g.match,token:this.terminals_[v]||v,line:g.yylineno,loc:m,expected:E})}if(k[0]instanceof Array&&1<k.length)throw new Error("Parse Error: multiple actions possible at state: "+w+", token: "+v);switch(k[0]){case 1:n.push(v),s.push(g.yytext),a.push(g.yylloc),n.push(k[1]),v=null,x?(v=x,x=null):(h=g.yyleng,l=g.yytext,c=g.yylineno,m=g.yylloc,0<u&&u--);break;case 2:if(S=this.productions_[k[1]][1],C.$=s[s.length-S],C._$={first_line:a[a.length-(S||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(S||1)].first_column,last_column:a[a.length-1].last_column},y&&(C._$.range=[a[a.length-(S||1)].range[0],a[a.length-1].range[1]]),typeof(_=this.performAction.apply(C,[l,h,c,f.yy,k[1],s,a].concat(p)))<"u")return _;S&&(n=n.slice(0,-1*S*2),s=s.slice(0,-1*S),a=a.slice(0,-1*S)),n.push(this.productions_[k[1]][0]),s.push(C.$),a.push(C._$),_=o[n[n.length-2]][n[n.length-1]],n.push(_);break;case 3:return!0}}return!0},"parse")},B={EOF:1,parseError:mt(function(e,t){if(!this.yy.parser)throw new Error(e);this.yy.parser.parseError(e,t)},"parseError"),setInput:mt(function(e,t){return this.yy=t||this.yy||{},this._input=e,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:mt(function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.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),e},"input"),unput:mt(function(e){var t=e.length,i=e.split(/(?:\r\n?|\n)/g),e=(this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t,this.match.split(/(?:\r\n?|\n)/g)),n=(this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),i.length-1&&(this.yylineno-=i.length-1),this.yylloc.range);return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:i?(i.length===e.length?this.yylloc.first_column:0)+e[e.length-i.length].length-i[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[n[0],n[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},"unput"),more:mt(function(){return this._more=!0,this},"more"),reject:mt(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).
|
||
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"reject"),less:mt(function(e){this.unput(this.match.slice(e))},"less"),pastInput:mt(function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(20<e.length?"...":"")+e.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:mt(function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(20<e.length?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:mt(function(){var e=this.pastInput(),t=new Array(e.length+1).join("-");return e+this.upcomingInput()+`
|
||
`+t+"^"},"showPosition"),test_match:mt(function(e,t){var i,n;if(this.options.backtrack_lexer&&(n={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)&&(n.yylloc.range=this.yylloc.range.slice(0)),(i=e[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=i.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:i?i[i.length-1].length-i[i.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+e[0].length},this.yytext+=e[0],this.match+=e[0],this.matches=e,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(e[0].length),this.matched+=e[0],i=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),i)return i;if(this._backtrack)for(var r in n)this[r]=n[r];return!1},"test_match"),next:mt(function(){if(this.done)return this.EOF;var e,t,i,n;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var r=this._currentRules(),s=0;s<r.length;s++)if((i=this._input.match(this.rules[r[s]]))&&(!t||i[0].length>t[0].length)){if(t=i,n=s,this.options.backtrack_lexer){if(!1!==(e=this.test_match(i,r[s])))return e;if(this._backtrack){t=!1;continue}return!1}if(!this.options.flex)break}return t?!1!==(e=this.test_match(t,r[n]))&&e:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
|
||
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:mt(function(){return this.next()||this.lex()},"lex"),begin:mt(function(e){this.conditionStack.push(e)},"begin"),popState:mt(function(){return 0<this.conditionStack.length-1?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:mt(function(){return(this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]]:this.conditions.INITIAL).rules},"_currentRules"),topState:mt(function(e){return 0<=(e=this.conditionStack.length-1-Math.abs(e||0))?this.conditionStack[e]:"INITIAL"},"topState"),pushState:mt(function(e){this.begin(e)},"pushState"),stateStackSize:mt(function(){return this.conditionStack.length},"stateStackSize"),options:{},performAction:mt(function(e,t,i,n){switch(i){case 0:return this.begin("acc_title"),34;case 1:return this.popState(),"acc_title_value";case 2:return this.begin("acc_descr"),36;case 3:return this.popState(),"acc_descr_value";case 4:this.begin("acc_descr_multiline");break;case 5:this.popState();break;case 6:return"acc_descr_multiline_value";case 7:return this.pushState("shapeData"),t.yytext="",40;case 8:return this.pushState("shapeDataStr"),40;case 9:return this.popState(),40;case 10:return t.yytext=t.yytext.replace(/\n\s*/g,"<br/>"),40;case 11:return 40;case 12:this.popState();break;case 13:this.begin("callbackname");break;case 14:this.popState();break;case 15:this.popState(),this.begin("callbackargs");break;case 16:return 95;case 17:this.popState();break;case 18:return 96;case 19:return"MD_STR";case 20:this.popState();break;case 21:this.begin("md_string");break;case 22:return"STR";case 23:this.popState();break;case 24:this.pushState("string");break;case 25:return 84;case 26:return 102;case 27:return 85;case 28:return 104;case 29:return 86;case 30:return 87;case 31:return 97;case 32:this.begin("click");break;case 33:this.popState();break;case 34:return 88;case 35:case 36:case 37:return e.lex.firstGraph()&&this.begin("dir"),12;case 38:return 27;case 39:return 32;case 40:case 41:case 42:case 43:return 98;case 44:return this.popState(),13;case 45:case 46:case 47:case 48:case 49:case 50:case 51:case 52:case 53:case 54:return this.popState(),14;case 55:return 121;case 56:return 122;case 57:return 123;case 58:return 124;case 59:return 78;case 60:return 105;case 61:return 111;case 62:return 46;case 63:return 60;case 64:return 44;case 65:return 8;case 66:return 106;case 67:return 115;case 68:return this.popState(),77;case 69:return this.pushState("edgeText"),75;case 70:return 119;case 71:return this.popState(),77;case 72:return this.pushState("thickEdgeText"),75;case 73:return 119;case 74:return this.popState(),77;case 75:return this.pushState("dottedEdgeText"),75;case 76:return 119;case 77:return 77;case 78:return this.popState(),53;case 79:return"TEXT";case 80:return this.pushState("ellipseText"),52;case 81:return this.popState(),55;case 82:return this.pushState("text"),54;case 83:return this.popState(),57;case 84:return this.pushState("text"),56;case 85:return 58;case 86:return this.pushState("text"),67;case 87:return this.popState(),64;case 88:return this.pushState("text"),63;case 89:return this.popState(),49;case 90:return this.pushState("text"),48;case 91:return this.popState(),69;case 92:return this.popState(),71;case 93:return 117;case 94:return this.pushState("trapText"),68;case 95:return this.pushState("trapText"),70;case 96:return 118;case 97:return 67;case 98:return 90;case 99:return"SEP";case 100:return 89;case 101:return 115;case 102:return 111;case 103:return 44;case 104:return 109;case 105:return 114;case 106:return 116;case 107:return this.popState(),62;case 108:return this.pushState("text"),62;case 109:return this.popState(),51;case 110:return this.pushState("text"),50;case 111:return this.popState(),31;case 112:return this.pushState("text"),29;case 113:return this.popState(),66;case 114:return this.pushState("text"),65;case 115:return"TEXT";case 116:return"QUOTE";case 117:return 9;case 118:return 10;case 119:return 11}},"anonymous"),rules:[/^(?:accTitle\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*\{\s*)/,/^(?:[\}])/,/^(?:[^\}]*)/,/^(?:@\{)/,/^(?:["])/,/^(?:["])/,/^(?:[^\"]+)/,/^(?:[^}^"]+)/,/^(?:\})/,/^(?:call[\s]+)/,/^(?:\([\s]*\))/,/^(?:\()/,/^(?:[^(]*)/,/^(?:\))/,/^(?:[^)]*)/,/^(?:[^`"]+)/,/^(?:[`]["])/,/^(?:["][`])/,/^(?:[^"]+)/,/^(?:["])/,/^(?:["])/,/^(?:style\b)/,/^(?:default\b)/,/^(?:linkStyle\b)/,/^(?:interpolate\b)/,/^(?:classDef\b)/,/^(?:class\b)/,/^(?:href[\s])/,/^(?:click[\s]+)/,/^(?:[\s\n])/,/^(?:[^\s\n]*)/,/^(?:flowchart-elk\b)/,/^(?:graph\b)/,/^(?:flowchart\b)/,/^(?:subgraph\b)/,/^(?:end\b\s*)/,/^(?:_self\b)/,/^(?:_blank\b)/,/^(?:_parent\b)/,/^(?:_top\b)/,/^(?:(\r?\n)*\s*\n)/,/^(?:\s*LR\b)/,/^(?:\s*RL\b)/,/^(?:\s*TB\b)/,/^(?:\s*BT\b)/,/^(?:\s*TD\b)/,/^(?:\s*BR\b)/,/^(?:\s*<)/,/^(?:\s*>)/,/^(?:\s*\^)/,/^(?:\s*v\b)/,/^(?:.*direction\s+TB[^\n]*)/,/^(?:.*direction\s+BT[^\n]*)/,/^(?:.*direction\s+RL[^\n]*)/,/^(?:.*direction\s+LR[^\n]*)/,/^(?:[^\s\"]+@(?=[^\{\"]))/,/^(?:[0-9]+)/,/^(?:#)/,/^(?::::)/,/^(?::)/,/^(?:&)/,/^(?:;)/,/^(?:,)/,/^(?:\*)/,/^(?:\s*[xo<]?--+[-xo>]\s*)/,/^(?:\s*[xo<]?--\s*)/,/^(?:[^-]|-(?!-)+)/,/^(?:\s*[xo<]?==+[=xo>]\s*)/,/^(?:\s*[xo<]?==\s*)/,/^(?:[^=]|=(?!))/,/^(?:\s*[xo<]?-?\.+-[xo>]?\s*)/,/^(?:\s*[xo<]?-\.\s*)/,/^(?:[^\.]|\.(?!))/,/^(?:\s*~~[\~]+\s*)/,/^(?:[-/\)][\)])/,/^(?:[^\(\)\[\]\{\}]|!\)+)/,/^(?:\(-)/,/^(?:\]\))/,/^(?:\(\[)/,/^(?:\]\])/,/^(?:\[\[)/,/^(?:\[\|)/,/^(?:>)/,/^(?:\)\])/,/^(?:\[\()/,/^(?:\)\)\))/,/^(?:\(\(\()/,/^(?:[\\(?=\])][\]])/,/^(?:\/(?=\])\])/,/^(?:\/(?!\])|\\(?!\])|[^\\\[\]\(\)\{\}\/]+)/,/^(?:\[\/)/,/^(?:\[\\)/,/^(?:<)/,/^(?:>)/,/^(?:\^)/,/^(?:\\\|)/,/^(?:v\b)/,/^(?:\*)/,/^(?:#)/,/^(?:&)/,/^(?:([A-Za-z0-9!"\#$%&'*+\.`?\\_\/]|-(?=[^\>\-\.])|(?!))+)/,/^(?:-)/,/^(?:[\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6]|[\u00F8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377]|[\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5]|[\u03F7-\u0481\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA]|[\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE]|[\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA]|[\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0]|[\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0977]|[\u0979-\u097F\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2]|[\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A]|[\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39]|[\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8]|[\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C]|[\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C]|[\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99]|[\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0]|[\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D]|[\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3]|[\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10]|[\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1]|[\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81]|[\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3]|[\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6]|[\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A]|[\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081]|[\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D]|[\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0]|[\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310]|[\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C]|[\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u1700-\u170C\u170E-\u1711]|[\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7]|[\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C]|[\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16]|[\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF]|[\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC]|[\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D]|[\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D]|[\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3]|[\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F]|[\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128]|[\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184]|[\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3]|[\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6]|[\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE]|[\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C]|[\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D]|[\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC]|[\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B]|[\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788]|[\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805]|[\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB]|[\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28]|[\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5]|[\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4]|[\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E]|[\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D]|[\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36]|[\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D]|[\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC]|[\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF]|[\uFFD2-\uFFD7\uFFDA-\uFFDC])/,/^(?:\|)/,/^(?:\|)/,/^(?:\))/,/^(?:\()/,/^(?:\])/,/^(?:\[)/,/^(?:(\}))/,/^(?:\{)/,/^(?:[^\[\]\(\)\{\}\|\"]+)/,/^(?:")/,/^(?:(\r?\n)+)/,/^(?:\s)/,/^(?:$)/],conditions:{shapeDataEndBracket:{rules:[21,24,77,80,82,84,88,90,94,95,108,110,112,114],inclusive:!1},shapeDataStr:{rules:[9,10,21,24,77,80,82,84,88,90,94,95,108,110,112,114],inclusive:!1},shapeData:{rules:[8,11,12,21,24,77,80,82,84,88,90,94,95,108,110,112,114],inclusive:!1},callbackargs:{rules:[17,18,21,24,77,80,82,84,88,90,94,95,108,110,112,114],inclusive:!1},callbackname:{rules:[14,15,16,21,24,77,80,82,84,88,90,94,95,108,110,112,114],inclusive:!1},href:{rules:[21,24,77,80,82,84,88,90,94,95,108,110,112,114],inclusive:!1},click:{rules:[21,24,33,34,77,80,82,84,88,90,94,95,108,110,112,114],inclusive:!1},dottedEdgeText:{rules:[21,24,74,76,77,80,82,84,88,90,94,95,108,110,112,114],inclusive:!1},thickEdgeText:{rules:[21,24,71,73,77,80,82,84,88,90,94,95,108,110,112,114],inclusive:!1},edgeText:{rules:[21,24,68,70,77,80,82,84,88,90,94,95,108,110,112,114],inclusive:!1},trapText:{rules:[21,24,77,80,82,84,88,90,91,92,93,94,95,108,110,112,114],inclusive:!1},ellipseText:{rules:[21,24,77,78,79,80,82,84,88,90,94,95,108,110,112,114],inclusive:!1},text:{rules:[21,24,77,80,81,82,83,84,87,88,89,90,94,95,107,108,109,110,111,112,113,114,115],inclusive:!1},vertex:{rules:[21,24,77,80,82,84,88,90,94,95,108,110,112,114],inclusive:!1},dir:{rules:[21,24,44,45,46,47,48,49,50,51,52,53,54,77,80,82,84,88,90,94,95,108,110,112,114],inclusive:!1},acc_descr_multiline:{rules:[5,6,21,24,77,80,82,84,88,90,94,95,108,110,112,114],inclusive:!1},acc_descr:{rules:[3,21,24,77,80,82,84,88,90,94,95,108,110,112,114],inclusive:!1},acc_title:{rules:[1,21,24,77,80,82,84,88,90,94,95,108,110,112,114],inclusive:!1},md_string:{rules:[19,20,21,24,77,80,82,84,88,90,94,95,108,110,112,114],inclusive:!1},string:{rules:[21,22,23,24,77,80,82,84,88,90,94,95,108,110,112,114],inclusive:!1},INITIAL:{rules:[0,2,4,7,13,21,24,25,26,27,28,29,30,31,32,35,36,37,38,39,40,41,42,43,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,71,72,74,75,77,80,82,84,85,86,88,90,94,95,96,97,98,99,100,101,102,103,104,105,106,108,110,112,114,116,117,118,119],inclusive:!0}}},P.lexer=B,mt(O,"Parser"),(HK=new((O.prototype=P).Parser=O)).parser=HK,UK=HK}),tZ=e(()=>{"use strict";eZ(),(qK=Object.assign({},UK)).parse=e=>{e=e.replace(/}\s*\n/g,`}
|
||
`);return UK.parse(e)},WK=qK}),iZ=e(()=>{"use strict";VK=mt(()=>`
|
||
/* Font Awesome icon styling - consolidated */
|
||
.label-icon {
|
||
display: inline-block;
|
||
height: 1em;
|
||
overflow: visible;
|
||
vertical-align: -0.125em;
|
||
}
|
||
|
||
.node .label-icon path {
|
||
fill: currentColor;
|
||
stroke: revert;
|
||
stroke-width: revert;
|
||
}
|
||
`,"getIconStyles")}),nZ=e(()=>{"use strict";xn(),iZ(),GK=mt((e,t)=>{var i=Ft,n=i(e,"r"),r=i(e,"g"),i=i(e,"b");return Pt(n,r,i,t)},"fade"),YK=mt(e=>`.label {
|
||
font-family: ${e.fontFamily};
|
||
color: ${e.nodeTextColor||e.textColor};
|
||
}
|
||
.cluster-label text {
|
||
fill: ${e.titleColor};
|
||
}
|
||
.cluster-label span {
|
||
color: ${e.titleColor};
|
||
}
|
||
.cluster-label span p {
|
||
background-color: transparent;
|
||
}
|
||
|
||
.label text,span {
|
||
fill: ${e.nodeTextColor||e.textColor};
|
||
color: ${e.nodeTextColor||e.textColor};
|
||
}
|
||
|
||
.node rect,
|
||
.node circle,
|
||
.node ellipse,
|
||
.node polygon,
|
||
.node path {
|
||
fill: ${e.mainBkg};
|
||
stroke: ${e.nodeBorder};
|
||
stroke-width: 1px;
|
||
}
|
||
.rough-node .label text , .node .label text, .image-shape .label, .icon-shape .label {
|
||
text-anchor: middle;
|
||
}
|
||
// .flowchart-label .text-outer-tspan {
|
||
// text-anchor: middle;
|
||
// }
|
||
// .flowchart-label .text-inner-tspan {
|
||
// text-anchor: start;
|
||
// }
|
||
|
||
.node .katex path {
|
||
fill: #000;
|
||
stroke: #000;
|
||
stroke-width: 1px;
|
||
}
|
||
|
||
.rough-node .label,.node .label, .image-shape .label, .icon-shape .label {
|
||
text-align: center;
|
||
}
|
||
.node.clickable {
|
||
cursor: pointer;
|
||
}
|
||
|
||
|
||
.root .anchor path {
|
||
fill: ${e.lineColor} !important;
|
||
stroke-width: 0;
|
||
stroke: ${e.lineColor};
|
||
}
|
||
|
||
.arrowheadPath {
|
||
fill: ${e.arrowheadColor};
|
||
}
|
||
|
||
.edgePath .path {
|
||
stroke: ${e.lineColor};
|
||
stroke-width: 2.0px;
|
||
}
|
||
|
||
.flowchart-link {
|
||
stroke: ${e.lineColor};
|
||
fill: none;
|
||
}
|
||
|
||
.edgeLabel {
|
||
background-color: ${e.edgeLabelBackground};
|
||
p {
|
||
background-color: ${e.edgeLabelBackground};
|
||
}
|
||
rect {
|
||
opacity: 0.5;
|
||
background-color: ${e.edgeLabelBackground};
|
||
fill: ${e.edgeLabelBackground};
|
||
}
|
||
text-align: center;
|
||
}
|
||
|
||
/* For html labels only */
|
||
.labelBkg {
|
||
background-color: ${GK(e.edgeLabelBackground,.5)};
|
||
// background-color:
|
||
}
|
||
|
||
.cluster rect {
|
||
fill: ${e.clusterBkg};
|
||
stroke: ${e.clusterBorder};
|
||
stroke-width: 1px;
|
||
}
|
||
|
||
.cluster text {
|
||
fill: ${e.titleColor};
|
||
}
|
||
|
||
.cluster span {
|
||
color: ${e.titleColor};
|
||
}
|
||
/* .cluster div {
|
||
color: ${e.titleColor};
|
||
} */
|
||
|
||
div.mermaidTooltip {
|
||
position: absolute;
|
||
text-align: center;
|
||
max-width: 200px;
|
||
padding: 2px;
|
||
font-family: ${e.fontFamily};
|
||
font-size: 12px;
|
||
background: ${e.tertiaryColor};
|
||
border: 1px solid ${e.border2};
|
||
border-radius: 2px;
|
||
pointer-events: none;
|
||
z-index: 100;
|
||
}
|
||
|
||
.flowchartTitleText {
|
||
text-anchor: middle;
|
||
font-size: 18px;
|
||
fill: ${e.textColor};
|
||
}
|
||
|
||
rect.text {
|
||
fill: none;
|
||
stroke-width: 0;
|
||
}
|
||
|
||
.icon-shape, .image-shape {
|
||
background-color: ${e.edgeLabelBackground};
|
||
p {
|
||
background-color: ${e.edgeLabelBackground};
|
||
padding: 2px;
|
||
}
|
||
rect {
|
||
opacity: 0.5;
|
||
background-color: ${e.edgeLabelBackground};
|
||
fill: ${e.edgeLabelBackground};
|
||
}
|
||
text-align: center;
|
||
}
|
||
${VK()}
|
||
`,"getStyles"),XK=YK}),rZ={};V(rZ,{diagram:()=>sZ});var sZ,aZ,oZ,lZ,cZ=e(()=>{"use strict";Cu(),ZN(),JK(),tZ(),nZ(),sZ={parser:WK,get db(){return new BN},renderer:zK,styles:XK,init:mt(e=>{e.flowchart||(e.flowchart={}),e.layout&&Ah({layout:e.layout}),e.flowchart.arrowMarkerAbsolute=e.arrowMarkerAbsolute,Ah({flowchart:{arrowMarkerAbsolute:e.arrowMarkerAbsolute}})},"init")}}),hZ=e(()=>{"use strict";function e(){this.yy={}}var t,i,n,r,s,a,o,l,c,h,u,d,p,O,g,f,m,y,b,v,P,x,w,k,T,S,_,C,A,E,$,B,F,j,z,H,U,L,R,M,I,N,q,W,D;t=mt(function(e,t,i,n){for(i=i||{},n=e.length;n--;i[e[n]]=t);return i},"o"),i=[6,8,10,22,24,26,28,33,34,35,36,37,40,43,44,50],n=[1,10],r=[1,11],s=[1,12],a=[1,13],o=[1,20],l=[1,21],c=[1,22],h=[1,23],u=[1,24],d=[1,19],p=[1,25],O=[1,26],g=[1,18],f=[1,33],m=[1,34],y=[1,35],b=[1,36],v=[1,37],P=[6,8,10,13,15,17,20,21,22,24,26,28,33,34,35,36,37,40,43,44,50,63,64,65,66,67],x=[1,42],w=[1,43],k=[1,52],T=[40,50,68,69],S=[1,63],_=[1,61],C=[1,58],A=[1,62],E=[1,64],$=[6,8,10,13,17,22,24,26,28,33,34,35,36,37,40,41,42,43,44,48,49,50,63,64,65,66,67],B=[63,64,65,66,67],F=[1,81],j=[1,80],z=[1,78],H=[1,79],U=[6,10,42,47],L=[6,10,13,41,42,47,48,49],R=[1,89],M=[1,88],I=[1,87],N=[19,56],q=[1,98],W=[1,97],D=[19,56,58,60],n={trace:mt(function(){},"trace"),yy:{},symbols_:{error:2,start:3,ER_DIAGRAM:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NEWLINE:10,entityName:11,relSpec:12,COLON:13,role:14,STYLE_SEPARATOR:15,idList:16,BLOCK_START:17,attributes:18,BLOCK_STOP:19,SQS:20,SQE:21,title:22,title_value:23,acc_title:24,acc_title_value:25,acc_descr:26,acc_descr_value:27,acc_descr_multiline_value:28,direction:29,classDefStatement:30,classStatement:31,styleStatement:32,direction_tb:33,direction_bt:34,direction_rl:35,direction_lr:36,CLASSDEF:37,stylesOpt:38,separator:39,UNICODE_TEXT:40,STYLE_TEXT:41,COMMA:42,CLASS:43,STYLE:44,style:45,styleComponent:46,SEMI:47,NUM:48,BRKT:49,ENTITY_NAME:50,attribute:51,attributeType:52,attributeName:53,attributeKeyTypeList:54,attributeComment:55,ATTRIBUTE_WORD:56,attributeKeyType:57,",":58,ATTRIBUTE_KEY:59,COMMENT:60,cardinality:61,relType:62,ZERO_OR_ONE:63,ZERO_OR_MORE:64,ONE_OR_MORE:65,ONLY_ONE:66,MD_PARENT:67,NON_IDENTIFYING:68,IDENTIFYING:69,WORD:70,$accept:0,$end:1},terminals_:{2:"error",4:"ER_DIAGRAM",6:"EOF",8:"SPACE",10:"NEWLINE",13:"COLON",15:"STYLE_SEPARATOR",17:"BLOCK_START",19:"BLOCK_STOP",20:"SQS",21:"SQE",22:"title",23:"title_value",24:"acc_title",25:"acc_title_value",26:"acc_descr",27:"acc_descr_value",28:"acc_descr_multiline_value",33:"direction_tb",34:"direction_bt",35:"direction_rl",36:"direction_lr",37:"CLASSDEF",40:"UNICODE_TEXT",41:"STYLE_TEXT",42:"COMMA",43:"CLASS",44:"STYLE",47:"SEMI",48:"NUM",49:"BRKT",50:"ENTITY_NAME",56:"ATTRIBUTE_WORD",58:",",59:"ATTRIBUTE_KEY",60:"COMMENT",63:"ZERO_OR_ONE",64:"ZERO_OR_MORE",65:"ONE_OR_MORE",66:"ONLY_ONE",67:"MD_PARENT",68:"NON_IDENTIFYING",69:"IDENTIFYING",70:"WORD"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[9,5],[9,9],[9,7],[9,7],[9,4],[9,6],[9,3],[9,5],[9,1],[9,3],[9,7],[9,9],[9,6],[9,8],[9,4],[9,6],[9,2],[9,2],[9,2],[9,1],[9,1],[9,1],[9,1],[9,1],[29,1],[29,1],[29,1],[29,1],[30,4],[16,1],[16,1],[16,3],[16,3],[31,3],[32,4],[38,1],[38,3],[45,1],[45,2],[39,1],[39,1],[39,1],[46,1],[46,1],[46,1],[46,1],[11,1],[11,1],[18,1],[18,2],[51,2],[51,3],[51,3],[51,4],[52,1],[53,1],[54,1],[54,3],[57,1],[55,1],[12,3],[61,1],[61,1],[61,1],[61,1],[61,1],[62,1],[62,1],[14,1],[14,1],[14,1]],performAction:mt(function(e,t,i,n,r,s,a){var o=s.length-1;switch(r){case 1:break;case 2:this.$=[];break;case 3:s[o-1].push(s[o]),this.$=s[o-1];break;case 4:case 5:this.$=s[o];break;case 6:case 7:this.$=[];break;case 8:n.addEntity(s[o-4]),n.addEntity(s[o-2]),n.addRelationship(s[o-4],s[o],s[o-2],s[o-3]);break;case 9:n.addEntity(s[o-8]),n.addEntity(s[o-4]),n.addRelationship(s[o-8],s[o],s[o-4],s[o-5]),n.setClass([s[o-8]],s[o-6]),n.setClass([s[o-4]],s[o-2]);break;case 10:n.addEntity(s[o-6]),n.addEntity(s[o-2]),n.addRelationship(s[o-6],s[o],s[o-2],s[o-3]),n.setClass([s[o-6]],s[o-4]);break;case 11:n.addEntity(s[o-6]),n.addEntity(s[o-4]),n.addRelationship(s[o-6],s[o],s[o-4],s[o-5]),n.setClass([s[o-4]],s[o-2]);break;case 12:n.addEntity(s[o-3]),n.addAttributes(s[o-3],s[o-1]);break;case 13:n.addEntity(s[o-5]),n.addAttributes(s[o-5],s[o-1]),n.setClass([s[o-5]],s[o-3]);break;case 14:n.addEntity(s[o-2]);break;case 15:n.addEntity(s[o-4]),n.setClass([s[o-4]],s[o-2]);break;case 16:n.addEntity(s[o]);break;case 17:n.addEntity(s[o-2]),n.setClass([s[o-2]],s[o]);break;case 18:n.addEntity(s[o-6],s[o-4]),n.addAttributes(s[o-6],s[o-1]);break;case 19:n.addEntity(s[o-8],s[o-6]),n.addAttributes(s[o-8],s[o-1]),n.setClass([s[o-8]],s[o-3]);break;case 20:n.addEntity(s[o-5],s[o-3]);break;case 21:n.addEntity(s[o-7],s[o-5]),n.setClass([s[o-7]],s[o-2]);break;case 22:n.addEntity(s[o-3],s[o-1]);break;case 23:n.addEntity(s[o-5],s[o-3]),n.setClass([s[o-5]],s[o]);break;case 24:case 25:this.$=s[o].trim(),n.setAccTitle(this.$);break;case 26:case 27:this.$=s[o].trim(),n.setAccDescription(this.$);break;case 32:n.setDirection("TB");break;case 33:n.setDirection("BT");break;case 34:n.setDirection("RL");break;case 35:n.setDirection("LR");break;case 36:this.$=s[o-3],n.addClass(s[o-2],s[o-1]);break;case 37:case 38:case 56:case 64:this.$=[s[o]];break;case 39:case 40:this.$=s[o-2].concat([s[o]]);break;case 41:this.$=s[o-2],n.setClass(s[o-1],s[o]);break;case 42:this.$=s[o-3],n.addCssStyles(s[o-2],s[o-1]);break;case 43:this.$=[s[o]];break;case 44:s[o-2].push(s[o]),this.$=s[o-2];break;case 46:this.$=s[o-1]+s[o];break;case 54:case 76:case 77:this.$=s[o].replace(/"/g,"");break;case 55:case 78:this.$=s[o];break;case 57:s[o].push(s[o-1]),this.$=s[o];break;case 58:this.$={type:s[o-1],name:s[o]};break;case 59:this.$={type:s[o-2],name:s[o-1],keys:s[o]};break;case 60:this.$={type:s[o-2],name:s[o-1],comment:s[o]};break;case 61:this.$={type:s[o-3],name:s[o-2],keys:s[o-1],comment:s[o]};break;case 62:case 63:case 66:this.$=s[o];break;case 65:s[o-2].push(s[o]),this.$=s[o-2];break;case 67:this.$=s[o].replace(/"/g,"");break;case 68:this.$={cardA:s[o],relType:s[o-1],cardB:s[o-2]};break;case 69:this.$=n.Cardinality.ZERO_OR_ONE;break;case 70:this.$=n.Cardinality.ZERO_OR_MORE;break;case 71:this.$=n.Cardinality.ONE_OR_MORE;break;case 72:this.$=n.Cardinality.ONLY_ONE;break;case 73:this.$=n.Cardinality.MD_PARENT;break;case 74:this.$=n.Identification.NON_IDENTIFYING;break;case 75:this.$=n.Identification.IDENTIFYING}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},t(i,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:9,22:n,24:r,26:s,28:a,29:14,30:15,31:16,32:17,33:o,34:l,35:c,36:h,37:u,40:d,43:p,44:O,50:g},t(i,[2,7],{1:[2,1]}),t(i,[2,3]),{9:27,11:9,22:n,24:r,26:s,28:a,29:14,30:15,31:16,32:17,33:o,34:l,35:c,36:h,37:u,40:d,43:p,44:O,50:g},t(i,[2,5]),t(i,[2,6]),t(i,[2,16],{12:28,61:32,15:[1,29],17:[1,30],20:[1,31],63:f,64:m,65:y,66:b,67:v}),{23:[1,38]},{25:[1,39]},{27:[1,40]},t(i,[2,27]),t(i,[2,28]),t(i,[2,29]),t(i,[2,30]),t(i,[2,31]),t(P,[2,54]),t(P,[2,55]),t(i,[2,32]),t(i,[2,33]),t(i,[2,34]),t(i,[2,35]),{16:41,40:x,41:w},{16:44,40:x,41:w},{16:45,40:x,41:w},t(i,[2,4]),{11:46,40:d,50:g},{16:47,40:x,41:w},{18:48,19:[1,49],51:50,52:51,56:k},{11:53,40:d,50:g},{62:54,68:[1,55],69:[1,56]},t(T,[2,69]),t(T,[2,70]),t(T,[2,71]),t(T,[2,72]),t(T,[2,73]),t(i,[2,24]),t(i,[2,25]),t(i,[2,26]),{13:S,38:57,41:_,42:C,45:59,46:60,48:A,49:E},t($,[2,37]),t($,[2,38]),{16:65,40:x,41:w,42:C},{13:S,38:66,41:_,42:C,45:59,46:60,48:A,49:E},{13:[1,67],15:[1,68]},t(i,[2,17],{61:32,12:69,17:[1,70],42:C,63:f,64:m,65:y,66:b,67:v}),{19:[1,71]},t(i,[2,14]),{18:72,19:[2,56],51:50,52:51,56:k},{53:73,56:[1,74]},{56:[2,62]},{21:[1,75]},{61:76,63:f,64:m,65:y,66:b,67:v},t(B,[2,74]),t(B,[2,75]),{6:F,10:j,39:77,42:z,47:H},{40:[1,82],41:[1,83]},t(U,[2,43],{46:84,13:S,41:_,48:A,49:E}),t(L,[2,45]),t(L,[2,50]),t(L,[2,51]),t(L,[2,52]),t(L,[2,53]),t(i,[2,41],{42:C}),{6:F,10:j,39:85,42:z,47:H},{14:86,40:R,50:M,70:I},{16:90,40:x,41:w},{11:91,40:d,50:g},{18:92,19:[1,93],51:50,52:51,56:k},t(i,[2,12]),{19:[2,57]},t(N,[2,58],{54:94,55:95,57:96,59:q,60:W}),t([19,56,59,60],[2,63]),t(i,[2,22],{15:[1,100],17:[1,99]}),t([40,50],[2,68]),t(i,[2,36]),{13:S,41:_,45:101,46:60,48:A,49:E},t(i,[2,47]),t(i,[2,48]),t(i,[2,49]),t($,[2,39]),t($,[2,40]),t(L,[2,46]),t(i,[2,42]),t(i,[2,8]),t(i,[2,76]),t(i,[2,77]),t(i,[2,78]),{13:[1,102],42:C},{13:[1,104],15:[1,103]},{19:[1,105]},t(i,[2,15]),t(N,[2,59],{55:106,58:[1,107],60:W}),t(N,[2,60]),t(D,[2,64]),t(N,[2,67]),t(D,[2,66]),{18:108,19:[1,109],51:50,52:51,56:k},{16:110,40:x,41:w},t(U,[2,44],{46:84,13:S,41:_,48:A,49:E}),{14:111,40:R,50:M,70:I},{16:112,40:x,41:w},{14:113,40:R,50:M,70:I},t(i,[2,13]),t(N,[2,61]),{57:114,59:q},{19:[1,115]},t(i,[2,20]),t(i,[2,23],{17:[1,116],42:C}),t(i,[2,11]),{13:[1,117],42:C},t(i,[2,10]),t(D,[2,65]),t(i,[2,18]),{18:118,19:[1,119],51:50,52:51,56:k},{14:120,40:R,50:M,70:I},{19:[1,121]},t(i,[2,21]),t(i,[2,9]),t(i,[2,19])],defaultActions:{52:[2,62],72:[2,57]},parseError:mt(function(e,t){var i;if(!t.recoverable)throw(i=new Error(e)).hash=t,i;this.trace(e)},"parseError"),parse:mt(function(e){var t,i=this,n=[0],r=[],s=[null],a=[],o=this.table,l="",c=0,h=0,u=0,d=1,p=a.slice.call(arguments,1),g=Object.create(this.lexer),f={yy:{}};for(t in this.yy)Object.prototype.hasOwnProperty.call(this.yy,t)&&(f.yy[t]=this.yy[t]);g.setInput(e,f.yy),f.yy.lexer=g,f.yy.parser=this,"u"<typeof g.yylloc&&(g.yylloc={});var m=g.yylloc,y=(a.push(m),g.options&&g.options.ranges);function b(){var e=r.pop()||g.lex()||d;return"number"!=typeof e&&(e instanceof Array&&(e=(r=e).pop()),e=i.symbols_[e]||e),e}"function"==typeof f.yy.parseError?this.parseError=f.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError,mt(function(e){n.length=n.length-2*e,s.length=s.length-e,a.length=a.length-e},"popStack"),mt(b,"lex");for(var v,x,w,k,T,S,_,C={};;){if(w=n[n.length-1],"u"<typeof(k=this.defaultActions[w]||((null===v||"u"<typeof v)&&(v=b()),o[w]&&o[w][v]))||!k.length||!k[0]){var A="",E=[];for(T in o[w])this.terminals_[T]&&2<T&&E.push("'"+this.terminals_[T]+"'");A=g.showPosition?"Parse error on line "+(c+1)+`:
|
||
`+g.showPosition()+`
|
||
Expecting `+E.join(", ")+", got '"+(this.terminals_[v]||v)+"'":"Parse error on line "+(c+1)+": Unexpected "+(v==d?"end of input":"'"+(this.terminals_[v]||v)+"'"),this.parseError(A,{text:g.match,token:this.terminals_[v]||v,line:g.yylineno,loc:m,expected:E})}if(k[0]instanceof Array&&1<k.length)throw new Error("Parse Error: multiple actions possible at state: "+w+", token: "+v);switch(k[0]){case 1:n.push(v),s.push(g.yytext),a.push(g.yylloc),n.push(k[1]),v=null,x?(v=x,x=null):(h=g.yyleng,l=g.yytext,c=g.yylineno,m=g.yylloc,0<u&&u--);break;case 2:if(S=this.productions_[k[1]][1],C.$=s[s.length-S],C._$={first_line:a[a.length-(S||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(S||1)].first_column,last_column:a[a.length-1].last_column},y&&(C._$.range=[a[a.length-(S||1)].range[0],a[a.length-1].range[1]]),typeof(_=this.performAction.apply(C,[l,h,c,f.yy,k[1],s,a].concat(p)))<"u")return _;S&&(n=n.slice(0,-1*S*2),s=s.slice(0,-1*S),a=a.slice(0,-1*S)),n.push(this.productions_[k[1]][0]),s.push(C.$),a.push(C._$),_=o[n[n.length-2]][n[n.length-1]],n.push(_);break;case 3:return!0}}return!0},"parse")},r={EOF:1,parseError:mt(function(e,t){if(!this.yy.parser)throw new Error(e);this.yy.parser.parseError(e,t)},"parseError"),setInput:mt(function(e,t){return this.yy=t||this.yy||{},this._input=e,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:mt(function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.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),e},"input"),unput:mt(function(e){var t=e.length,i=e.split(/(?:\r\n?|\n)/g),e=(this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t,this.match.split(/(?:\r\n?|\n)/g)),n=(this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),i.length-1&&(this.yylineno-=i.length-1),this.yylloc.range);return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:i?(i.length===e.length?this.yylloc.first_column:0)+e[e.length-i.length].length-i[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[n[0],n[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},"unput"),more:mt(function(){return this._more=!0,this},"more"),reject:mt(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).
|
||
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"reject"),less:mt(function(e){this.unput(this.match.slice(e))},"less"),pastInput:mt(function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(20<e.length?"...":"")+e.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:mt(function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(20<e.length?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:mt(function(){var e=this.pastInput(),t=new Array(e.length+1).join("-");return e+this.upcomingInput()+`
|
||
`+t+"^"},"showPosition"),test_match:mt(function(e,t){var i,n;if(this.options.backtrack_lexer&&(n={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)&&(n.yylloc.range=this.yylloc.range.slice(0)),(i=e[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=i.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:i?i[i.length-1].length-i[i.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+e[0].length},this.yytext+=e[0],this.match+=e[0],this.matches=e,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(e[0].length),this.matched+=e[0],i=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),i)return i;if(this._backtrack)for(var r in n)this[r]=n[r];return!1},"test_match"),next:mt(function(){if(this.done)return this.EOF;var e,t,i,n;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var r=this._currentRules(),s=0;s<r.length;s++)if((i=this._input.match(this.rules[r[s]]))&&(!t||i[0].length>t[0].length)){if(t=i,n=s,this.options.backtrack_lexer){if(!1!==(e=this.test_match(i,r[s])))return e;if(this._backtrack){t=!1;continue}return!1}if(!this.options.flex)break}return t?!1!==(e=this.test_match(t,r[n]))&&e:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
|
||
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:mt(function(){return this.next()||this.lex()},"lex"),begin:mt(function(e){this.conditionStack.push(e)},"begin"),popState:mt(function(){return 0<this.conditionStack.length-1?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:mt(function(){return(this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]]:this.conditions.INITIAL).rules},"_currentRules"),topState:mt(function(e){return 0<=(e=this.conditionStack.length-1-Math.abs(e||0))?this.conditionStack[e]:"INITIAL"},"topState"),pushState:mt(function(e){this.begin(e)},"pushState"),stateStackSize:mt(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:mt(function(e,t,i,n){switch(i){case 0:return this.begin("acc_title"),24;case 1:return this.popState(),"acc_title_value";case 2:return this.begin("acc_descr"),26;case 3:return this.popState(),"acc_descr_value";case 4:this.begin("acc_descr_multiline");break;case 5:this.popState();break;case 6:return"acc_descr_multiline_value";case 7:return 33;case 8:return 34;case 9:return 35;case 10:return 36;case 11:return 10;case 12:break;case 13:return 8;case 14:return 50;case 15:return 70;case 16:return 4;case 17:return this.begin("block"),17;case 18:case 19:return 49;case 20:return 42;case 21:return 15;case 22:return 13;case 23:break;case 24:return 59;case 25:case 26:return 56;case 27:return 60;case 28:break;case 29:return this.popState(),19;case 30:return t.yytext[0];case 31:return 20;case 32:return 21;case 33:return this.begin("style"),44;case 34:return this.popState(),10;case 35:break;case 36:return 13;case 37:return 42;case 38:return 49;case 39:return this.begin("style"),37;case 40:return 43;case 41:return 63;case 42:case 43:case 44:return 65;case 45:case 46:return 63;case 47:case 48:case 49:case 50:case 51:return 64;case 52:return 65;case 53:return 64;case 54:return 65;case 55:case 56:case 57:case 58:return 66;case 59:return 63;case 60:return 64;case 61:return 65;case 62:return 67;case 63:return 68;case 64:case 65:return 69;case 66:case 67:case 68:return 68;case 69:return 41;case 70:return 47;case 71:return 40;case 72:return 48;case 73:return t.yytext[0];case 74:return 6}},"anonymous"),rules:[/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:.*direction\s+TB[^\n]*)/i,/^(?:.*direction\s+BT[^\n]*)/i,/^(?:.*direction\s+RL[^\n]*)/i,/^(?:.*direction\s+LR[^\n]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:[\s]+)/i,/^(?:"[^"%\r\n\v\b\\]+")/i,/^(?:"[^"]*")/i,/^(?:erDiagram\b)/i,/^(?:\{)/i,/^(?:#)/i,/^(?:#)/i,/^(?:,)/i,/^(?::::)/i,/^(?::)/i,/^(?:\s+)/i,/^(?:\b((?:PK)|(?:FK)|(?:UK))\b)/i,/^(?:([^\s]*)[~].*[~]([^\s]*))/i,/^(?:([\*A-Za-z_\u00C0-\uFFFF][A-Za-z0-9\-\_\[\]\(\)\u00C0-\uFFFF\*]*))/i,/^(?:"[^"]*")/i,/^(?:[\n]+)/i,/^(?:\})/i,/^(?:.)/i,/^(?:\[)/i,/^(?:\])/i,/^(?:style\b)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?::)/i,/^(?:,)/i,/^(?:#)/i,/^(?:classDef\b)/i,/^(?:class\b)/i,/^(?:one or zero\b)/i,/^(?:one or more\b)/i,/^(?:one or many\b)/i,/^(?:1\+)/i,/^(?:\|o\b)/i,/^(?:zero or one\b)/i,/^(?:zero or more\b)/i,/^(?:zero or many\b)/i,/^(?:0\+)/i,/^(?:\}o\b)/i,/^(?:many\(0\))/i,/^(?:many\(1\))/i,/^(?:many\b)/i,/^(?:\}\|)/i,/^(?:one\b)/i,/^(?:only one\b)/i,/^(?:1\b)/i,/^(?:\|\|)/i,/^(?:o\|)/i,/^(?:o\{)/i,/^(?:\|\{)/i,/^(?:\s*u\b)/i,/^(?:\.\.)/i,/^(?:--)/i,/^(?:to\b)/i,/^(?:optionally to\b)/i,/^(?:\.-)/i,/^(?:-\.)/i,/^(?:([^\x00-\x7F]|\w|-|\*)+)/i,/^(?:;)/i,/^(?:([^\x00-\x7F]|\w|-|\*)+)/i,/^(?:[0-9])/i,/^(?:.)/i,/^(?:$)/i],conditions:{style:{rules:[34,35,36,37,38,69,70],inclusive:!1},acc_descr_multiline:{rules:[5,6],inclusive:!1},acc_descr:{rules:[3],inclusive:!1},acc_title:{rules:[1],inclusive:!1},block:{rules:[23,24,25,26,27,28,29,30],inclusive:!1},INITIAL:{rules:[0,2,4,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,31,32,33,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,71,72,73,74],inclusive:!0}}},n.lexer=r,mt(e,"Parser"),(aZ=new((e.prototype=n).Parser=e)).parser=aZ,oZ=aZ}),uZ=e(()=>{"use strict";t(),Cu(),_u(),sC(),lZ=class{constructor(){this.entities=new Map,this.relationships=[],this.classes=new Map,this.direction="TB",this.Cardinality={ZERO_OR_ONE:"ZERO_OR_ONE",ZERO_OR_MORE:"ZERO_OR_MORE",ONE_OR_MORE:"ONE_OR_MORE",ONLY_ONE:"ONLY_ONE",MD_PARENT:"MD_PARENT"},this.Identification={NON_IDENTIFYING:"NON_IDENTIFYING",IDENTIFYING:"IDENTIFYING"},this.setAccTitle=vh,this.getAccTitle=xh,this.setAccDescription=wh,this.getAccDescription=kh,this.setDiagramTitle=Th,this.getDiagramTitle=Sh,this.getConfig=mt(()=>N().er,"getConfig"),this.clear(),this.addEntity=this.addEntity.bind(this),this.addAttributes=this.addAttributes.bind(this),this.addRelationship=this.addRelationship.bind(this),this.setDirection=this.setDirection.bind(this),this.addCssStyles=this.addCssStyles.bind(this),this.addClass=this.addClass.bind(this),this.setClass=this.setClass.bind(this),this.setAccTitle=this.setAccTitle.bind(this),this.setAccDescription=this.setAccDescription.bind(this)}static{mt(this,"ErDB")}addEntity(e,t=""){return this.entities.has(e)?!this.entities.get(e)?.alias&&t&&(this.entities.get(e).alias=t,I.info(`Add alias '${t}' to entity '${e}'`)):(this.entities.set(e,{id:`entity-${e}-`+this.entities.size,label:e,attributes:[],alias:t,shape:"erBox",look:N().look??"default",cssClasses:"default",cssStyles:[]}),I.info("Added new entity :",e)),this.entities.get(e)}getEntity(e){return this.entities.get(e)}getEntities(){return this.entities}getClasses(){return this.classes}addAttributes(e,t){let i=this.addEntity(e),n;for(n=t.length-1;0<=n;n--)t[n].keys||(t[n].keys=[]),t[n].comment||(t[n].comment=""),i.attributes.push(t[n]),I.debug("Added attribute ",t[n].name)}addRelationship(e,t,i,n){var e=this.entities.get(e),i=this.entities.get(i);e&&i&&(e={entityA:e.id,roleA:t,entityB:i.id,relSpec:n},this.relationships.push(e),I.debug("Added new relationship :",e))}getRelationships(){return this.relationships}getDirection(){return this.direction}setDirection(e){this.direction=e}getCompiledStyles(e){let t=[];for(var i of e){i=this.classes.get(i);i?.styles&&(t=[...t,...i.styles??[]].map(e=>e.trim())),i?.textStyles&&(t=[...t,...i.textStyles??[]].map(e=>e.trim()))}return t}addCssStyles(e,t){for(var i of e){var n,r=this.entities.get(i);if(!t||!r)return;for(n of t)r.cssStyles.push(n)}}addClass(e,t){e.forEach(e=>{let i=this.classes.get(e);void 0===i&&(i={id:e,styles:[],textStyles:[]},this.classes.set(e,i)),t&&t.forEach(function(e){var t;/color/.exec(e)&&(t=e.replace("fill","bgFill"),i.textStyles.push(t)),i.styles.push(e)})})}setClass(e,t){for(var i of e){var n=this.entities.get(i);if(n)for(var r of t)n.cssClasses+=" "+r}}clear(){this.entities=new Map,this.classes=new Map,this.relationships=[],bh()}getData(){var e,t,i=[],n=[],r=N();for(e of this.entities.keys()){var s=this.entities.get(e);s&&(s.cssCompiledStyles=this.getCompiledStyles(s.cssClasses.split(" ")),i.push(s))}let a=0;for(t of this.relationships){var o={id:rC(t.entityA,t.entityB,{prefix:"id",counter:a++}),type:"normal",curve:"basis",start:t.entityA,end:t.entityB,label:t.roleA,labelpos:"c",thickness:"normal",classes:"relationshipLine",arrowTypeStart:t.relSpec.cardB.toLowerCase(),arrowTypeEnd:t.relSpec.cardA.toLowerCase(),pattern:"IDENTIFYING"==t.relSpec.relType?"solid":"dashed",look:r.look};n.push(o)}return{nodes:i,edges:n,other:{},config:r,direction:"TB"}}}}),dZ={};V(dZ,{draw:()=>pZ});var pZ,gZ,fZ,mZ,yZ=e(()=>{"use strict";Cu(),t(),QN(),ZK(),QK(),sC(),a6(),pZ=mt(async function(e,t,i,n){I.info("REF0:"),I.info("Drawing er diagram (unified)",t);let{securityLevel:r,er:s,layout:a}=N(),o=n.db.getData(),l=FN(t,r);o.type=n.type,o.layoutAlgorithm=DK(a),o.config.flowchart.nodeSpacing=s?.nodeSpacing||140,o.config.flowchart.rankSpacing=s?.rankSpacing||80,o.direction=n.db.getDirection(),o.markers=["only_one","zero_or_one","one_or_more","zero_or_more"],o.diagramId=t,await NK(o,l),"elk"===o.layoutAlgorithm&&l.select(".edges").lower();t=l.selectAll('[id*="-background"]');0<Array.from(t).length&&t.each(function(){var e=G(this),t=e.attr("id").replace("-background",""),t=l.select("#"+CSS.escape(t));t.empty()||(t=t.attr("transform"),e.attr("transform",t))});tC.insertTitle(l,"erDiagramTitleText",s?.titleTopMargin??25,n.db.getDiagramTitle()),OK(l,8,"erDiagram",s?.useMaxWidth??!0)},"draw")}),bZ=e(()=>{"use strict";xn(),gZ=mt((e,t)=>{var i=Ft,n=i(e,"r"),r=i(e,"g"),i=i(e,"b");return Pt(n,r,i,t)},"fade"),fZ=mt(e=>`
|
||
.entityBox {
|
||
fill: ${e.mainBkg};
|
||
stroke: ${e.nodeBorder};
|
||
}
|
||
|
||
.relationshipLabelBox {
|
||
fill: ${e.tertiaryColor};
|
||
opacity: 0.7;
|
||
background-color: ${e.tertiaryColor};
|
||
rect {
|
||
opacity: 0.5;
|
||
}
|
||
}
|
||
|
||
.labelBkg {
|
||
background-color: ${gZ(e.tertiaryColor,.5)};
|
||
}
|
||
|
||
.edgeLabel .label {
|
||
fill: ${e.nodeBorder};
|
||
font-size: 14px;
|
||
}
|
||
|
||
.label {
|
||
font-family: ${e.fontFamily};
|
||
color: ${e.nodeTextColor||e.textColor};
|
||
}
|
||
|
||
.edge-pattern-dashed {
|
||
stroke-dasharray: 8,8;
|
||
}
|
||
|
||
.node rect,
|
||
.node circle,
|
||
.node ellipse,
|
||
.node polygon
|
||
{
|
||
fill: ${e.mainBkg};
|
||
stroke: ${e.nodeBorder};
|
||
stroke-width: 1px;
|
||
}
|
||
|
||
.relationshipLine {
|
||
stroke: ${e.lineColor};
|
||
stroke-width: 1;
|
||
fill: none;
|
||
}
|
||
|
||
.marker {
|
||
fill: none !important;
|
||
stroke: ${e.lineColor} !important;
|
||
stroke-width: 1;
|
||
}
|
||
`,"getStyles"),mZ=fZ}),vZ={};V(vZ,{diagram:()=>xZ});var xZ,wZ=e(()=>{"use strict";hZ(),uZ(),yZ(),bZ(),xZ={parser:oZ,get db(){return new lZ},renderer:dZ,styles:mZ}});function kZ(e){return"object"==typeof e&&null!==e&&"string"==typeof e.$type}function TZ(e){return"object"==typeof e&&null!==e&&"string"==typeof e.$refText}function SZ(e){return"object"==typeof e&&null!==e&&"string"==typeof e.name&&"string"==typeof e.type&&"string"==typeof e.path}function _Z(e){return"object"==typeof e&&null!==e&&kZ(e.container)&&TZ(e.reference)&&"string"==typeof e.message}function CZ(e){return"object"==typeof e&&null!==e&&Array.isArray(e.content)}function AZ(e){return"object"==typeof e&&null!==e&&"object"==typeof e.tokenType}function EZ(e){return CZ(e)&&"string"==typeof e.fullText}var $Z,LZ=e(()=>{"use strict";mt(kZ,"isAstNode"),mt(TZ,"isReference"),mt(SZ,"isAstNodeDescription"),mt(_Z,"isLinkingError"),$Z=class{static{mt(this,"AbstractAstReflection")}constructor(){this.subtypes={},this.allSubtypes={}}isInstance(e,t){return kZ(e)&&this.isSubtype(e.$type,t)}isSubtype(e,t){if(e===t)return!0;let i=this.subtypes[e];var n=(i=i||(this.subtypes[e]={}))[t];return void 0!==n?n:(n=this.computeIsSubtype(e,t),i[t]=n)}getAllSubTypes(e){var t=this.allSubtypes[e];if(t)return t;var i,n=[];for(i of this.getAllTypes())this.isSubtype(i,e)&&n.push(i);return this.allSubtypes[e]=n}},mt(CZ,"isCompositeCstNode"),mt(AZ,"isLeafCstNode"),mt(EZ,"isRootCstNode")});function RZ(e){return"string"==typeof e?e:"u"<typeof e?"undefined":"function"==typeof e.toString?e.toString():Object.prototype.toString.call(e)}function MZ(e){return!!e&&"function"==typeof e[Symbol.iterator]}function IZ(...i){if(1===i.length){let t=i[0];if(t instanceof NZ)return t;if(MZ(t))return new NZ(()=>t[Symbol.iterator](),e=>e.next());if("number"==typeof t.length)return new NZ(()=>({index:0}),e=>e.index<t.length?{done:!1,value:t[e.index++]}:OZ)}return 1<i.length?new NZ(()=>({collIndex:0,arrIndex:0}),e=>{do{if(e.iterator){var t=e.iterator.next();if(!t.done)return t;e.iterator=void 0}if(e.array){if(e.arrIndex<e.array.length)return{done:!1,value:e.array[e.arrIndex++]};e.array=void 0,e.arrIndex=0}e.collIndex<i.length&&(MZ(t=i[e.collIndex++])?e.iterator=t[Symbol.iterator]():t&&"number"==typeof t.length&&(e.array=t))}while(e.iterator||e.array||e.collIndex<i.length);return OZ}):DZ}var NZ,DZ,OZ,PZ,BZ,FZ=e(()=>{"use strict";function e(e){return e.reduce((e,t)=>e+t,0)}function t(e){return e.reduce((e,t)=>e*t,0)}function i(e){return e.reduce((e,t)=>Math.min(e,t))}function n(e){return e.reduce((e,t)=>Math.max(e,t))}var r;NZ=class s{static{mt(this,"StreamImpl")}constructor(e,t){this.startFn=e,this.nextFn=t}iterator(){let e={state:this.startFn(),next:mt(()=>this.nextFn(e.state),"next"),[Symbol.iterator]:()=>e};return e}[Symbol.iterator](){return this.iterator()}isEmpty(){return!!this.iterator().next().done}count(){let e=this.iterator(),t=0,i=e.next();for(;!i.done;)t++,i=e.next();return t}toArray(){for(var e,t=[],i=this.iterator();void 0!==(e=i.next()).value&&t.push(e.value),!e.done;);return t}toSet(){return new Set(this)}toMap(t,i){var e=this.map(e=>[t?t(e):e,i?i(e):e]);return new Map(e)}toString(){return this.join()}concat(e){return new s(()=>({first:this.startFn(),firstDone:!1,iterator:e[Symbol.iterator]()}),e=>{let t;if(!e.firstDone){do{if(!(t=this.nextFn(e.first)).done)return t}while(!t.done);e.firstDone=!0}do{if(!(t=e.iterator.next()).done)return t}while(!t.done);return OZ})}join(e=","){let t=this.iterator(),i="",n,r=!1;for(;(n=t.next()).done||(r&&(i+=e),i+=RZ(n.value)),r=!0,!n.done;);return i}indexOf(e,t=0){let i=this.iterator(),n=0,r=i.next();for(;!r.done;){if(n>=t&&r.value===e)return n;r=i.next(),n++}return-1}every(e){let t=this.iterator(),i=t.next();for(;!i.done;){if(!e(i.value))return!1;i=t.next()}return!0}some(e){let t=this.iterator(),i=t.next();for(;!i.done;){if(e(i.value))return!0;i=t.next()}return!1}forEach(e){let t=this.iterator(),i=0,n=t.next();for(;!n.done;)e(n.value,i),n=t.next(),i++}map(i){return new s(this.startFn,e=>{var{done:e,value:t}=this.nextFn(e);return e?OZ:{done:!1,value:i(t)}})}filter(i){return new s(this.startFn,e=>{var t;do{if(!(t=this.nextFn(e)).done&&i(t.value))return t}while(!t.done);return OZ})}nonNullable(){return this.filter(e=>null!=e)}reduce(e,t){let i=this.iterator(),n=t,r=i.next();for(;!r.done;)n=void 0===n?r.value:e(n,r.value),r=i.next();return n}reduceRight(e,t){return this.recursiveReduce(this.iterator(),e,t)}recursiveReduce(e,t,i){var n=e.next();return n.done?i:void 0===(e=this.recursiveReduce(e,t,i))?n.value:t(e,n.value)}find(e){let t=this.iterator(),i=t.next();for(;!i.done;){if(e(i.value))return i.value;i=t.next()}}findIndex(e){let t=this.iterator(),i=0,n=t.next();for(;!n.done;){if(e(n.value))return i;n=t.next(),i++}return-1}includes(e){let t=this.iterator(),i=t.next();for(;!i.done;){if(i.value===e)return!0;i=t.next()}return!1}flatMap(n){return new s(()=>({this:this.startFn()}),e=>{do{if(e.iterator){var t=e.iterator.next();if(!t.done)return t;e.iterator=void 0}var{done:t,value:i}=this.nextFn(e.this);if(!t){i=n(i);if(!MZ(i))return{done:!1,value:i};e.iterator=i[Symbol.iterator]()}}while(e.iterator);return OZ})}flat(e){if((e=void 0===e?1:e)<=0)return this;let n=1<e?this.flat(e-1):this;return new s(()=>({this:n.startFn()}),e=>{do{if(e.iterator){var t=e.iterator.next();if(!t.done)return t;e.iterator=void 0}var{done:t,value:i}=n.nextFn(e.this);if(!t){if(!MZ(i))return{done:!1,value:i};e.iterator=i[Symbol.iterator]()}}while(e.iterator);return OZ})}head(){var e=this.iterator().next();if(!e.done)return e.value}tail(i=1){return new s(()=>{var t=this.startFn();for(let e=0;e<i;e++)if(this.nextFn(t).done)return t;return t},this.nextFn)}limit(t){return new s(()=>({size:0,state:this.startFn()}),e=>(e.size++,e.size>t?OZ:this.nextFn(e.state)))}distinct(n){return new s(()=>({set:new Set,internalState:this.startFn()}),e=>{var t;do{if(!(t=this.nextFn(e.internalState)).done){var i=n?n(t.value):t.value;if(!e.set.has(i))return e.set.add(i),t}}while(!t.done);return OZ})}exclude(e,t){let i=new Set;for(var n of e){n=t?t(n):n;i.add(n)}return this.filter(e=>{e=t?t(e):e;return!i.has(e)})}},mt(RZ,"toString"),mt(MZ,"isIterable"),DZ=new NZ(()=>{},()=>OZ),OZ=Object.freeze({done:!0,value:void 0}),mt(IZ,"stream"),PZ=class extends NZ{static{mt(this,"TreeStreamImpl")}constructor(e,i,t){super(()=>({iterators:t?.includeRoot?[[e][Symbol.iterator]()]:[i(e)[Symbol.iterator]()],pruned:!1}),e=>{for(e.pruned&&(e.iterators.pop(),e.pruned=!1);0<e.iterators.length;){var t=e.iterators[e.iterators.length-1].next();if(!t.done)return e.iterators.push(i(t.value)[Symbol.iterator]()),t;e.iterators.pop()}return OZ})}iterator(){let e={state:this.startFn(),next:mt(()=>this.nextFn(e.state),"next"),prune:mt(()=>{e.state.pruned=!0},"prune"),[Symbol.iterator]:()=>e};return e}},r=BZ=BZ||{},mt(e,"sum"),r.sum=e,mt(t,"product"),r.product=t,mt(i,"min"),r.min=i,mt(n,"max"),r.max=n}),jZ={};function zZ(e){return new PZ(e,e=>CZ(e)?e.content:[],{includeRoot:!0})}function HZ(e){return zZ(e).filter(AZ)}function UZ(e,t){for(;e.container;)if((e=e.container)===t)return!0;return!1}function qZ(e){return{start:{character:e.startColumn-1,line:e.startLine-1},end:{character:e.endColumn,line:e.endLine-1}}}function WZ(e){var t,i;if(e)return{offset:e,end:t,range:i}=e,{range:i,offset:e,end:t,length:t-e}}function VZ(e,t){var i;return e.end.line<t.start.line||e.end.line===t.start.line&&e.end.character<=t.start.character?aQ.Before:e.start.line>t.end.line||e.start.line===t.end.line&&e.start.character>=t.end.character?aQ.After:(i=e.start.line>t.start.line||e.start.line===t.start.line&&e.start.character>=t.start.character,e=e.end.line<t.end.line||e.end.line===t.end.line&&e.end.character<=t.end.character,i&&e?aQ.Inside:i?aQ.OverlapBack:e?aQ.OverlapFront:aQ.Outside)}function GZ(e,t){return VZ(e,t)>aQ.After}function YZ(e,t,i=oQ){var n;if(e)return 0<t&&(n=t-e.offset,n=e.text.charAt(n),i.test(n)||t--),ZZ(e,t)}function XZ(t,i){if(t){var e=eQ(t,!0);if(e&&KZ(e,i))return e;if(EZ(t))for(let e=t.content.findIndex(e=>!e.hidden)-1;0<=e;e--){var n=t.content[e];if(KZ(n,i))return n}}}function KZ(e,t){return AZ(e)&&t.includes(e.tokenType.name)}function ZZ(e,t){if(AZ(e))return e;if(CZ(e)){e=JZ(e,t,!1);if(e)return ZZ(e,t)}}function QZ(e,t){if(AZ(e))return e;if(CZ(e)){e=JZ(e,t,!0);if(e)return QZ(e,t)}}function JZ(e,t,i){let n=0,r=e.content.length-1,s;for(;n<=r;){var a=Math.floor((n+r)/2),o=e.content[a];if(o.offset<=t&&o.end>t)return o;o.end<=t?(s=i?o:void 0,n=a+1):r=a-1}return s}function eQ(i,n=!0){for(;i.container;){let e=i.container,t=e.content.indexOf(i);for(;0<t;){t--;var r=e.content[t];if(n||!r.hidden)return r}i=e}}function tQ(n,r=!0){for(;n.container;){let e=n.container,t=e.content.indexOf(n),i=e.content.length-1;for(;t<i;){t++;var s=e.content[t];if(r||!s.hidden)return s}n=e}}function iQ(e){if(0===e.range.start.character)return e;let t=e.range.start.line,i=e,n;for(;e.container;){var r=e.container,s=n??r.content.indexOf(e);if(0===s?(e=r,n=void 0):(n=s-1,e=r.content[n]),e.range.start.line!==t)break;i=e}return i}function nQ(e,t){e=rQ(e,t);return e?e.parent.content.slice(e.a+1,e.b):[]}function rQ(e,t){let i=sQ(e),n=sQ(t),r;for(let e=0;e<i.length&&e<n.length;e++){var s=i[e],a=n[e];if(s.parent!==a.parent)break;r={parent:s.parent,a:s.index,b:a.index}}return r}function sQ(e){for(var t=[];e.container;){var i=e.container,n=i.content.indexOf(e);t.push({parent:i,index:n}),e=i}return t.reverse()}V(jZ,{DefaultNameRegexp:()=>oQ,RangeComparison:()=>aQ,compareRange:()=>VZ,findCommentNode:()=>XZ,findDeclarationNodeAtOffset:()=>YZ,findLeafNodeAtOffset:()=>ZZ,findLeafNodeBeforeOffset:()=>QZ,flattenCst:()=>HZ,getInteriorNodes:()=>nQ,getNextNode:()=>tQ,getPreviousNode:()=>eQ,getStartlineNode:()=>iQ,inRange:()=>GZ,isChildNode:()=>UZ,isCommentNode:()=>KZ,streamCst:()=>zZ,toDocumentSegment:()=>WZ,tokenToRange:()=>qZ});var aQ,oQ,lQ=e(()=>{"use strict";var e;LZ(),FZ(),mt(zZ,"streamCst"),mt(HZ,"flattenCst"),mt(UZ,"isChildNode"),mt(qZ,"tokenToRange"),mt(WZ,"toDocumentSegment"),(e=aQ=aQ||{})[e.Before=0]="Before",e[e.After=1]="After",e[e.OverlapFront=2]="OverlapFront",e[e.OverlapBack=3]="OverlapBack",e[e.Inside=4]="Inside",e[e.Outside=5]="Outside",mt(VZ,"compareRange"),mt(GZ,"inRange"),oQ=/^[\w\p{L}]$/u,mt(YZ,"findDeclarationNodeAtOffset"),mt(XZ,"findCommentNode"),mt(KZ,"isCommentNode"),mt(ZZ,"findLeafNodeAtOffset"),mt(QZ,"findLeafNodeBeforeOffset"),mt(JZ,"binarySearch"),mt(eQ,"getPreviousNode"),mt(tQ,"getNextNode"),mt(iQ,"getStartlineNode"),mt(nQ,"getInteriorNodes"),mt(rQ,"getCommonParent"),mt(sQ,"getParentChain")});function cQ(e){throw new Error("Error! The input value was not handled.")}var hQ,uQ=e(()=>{"use strict";hQ=class extends Error{static{mt(this,"ErrorWithLocation")}constructor(e,t){super(e?`${t} at ${e.range.start.line}:`+e.range.start.character:t)}},mt(cQ,"assertUnreachable")}),dQ={};function pQ(e){return tee.isInstance(e,lJ)}function gQ(e){return tee.isInstance(e,cJ)}function fQ(e){return tee.isInstance(e,hJ)}function mQ(e){return yQ(e)||"current"===e||"entry"===e||"extends"===e||"false"===e||"fragment"===e||"grammar"===e||"hidden"===e||"import"===e||"interface"===e||"returns"===e||"terminal"===e||"true"===e||"type"===e||"infer"===e||"infers"===e||"with"===e||"string"==typeof e&&/\^?[_a-zA-Z][\w_]*/.test(e)}function yQ(e){return"string"===e||"number"===e||"boolean"===e||"Date"===e||"bigint"===e}function bQ(e){return tee.isInstance(e,uJ)}function vQ(e){return tee.isInstance(e,dJ)}function xQ(e){return tee.isInstance(e,pJ)}function wQ(e){return tee.isInstance(e,gJ)}function kQ(e){return tee.isInstance(e,fJ)}function TQ(e){return tee.isInstance(e,mJ)}function SQ(e){return tee.isInstance(e,yJ)}function _Q(e){return tee.isInstance(e,bJ)}function CQ(e){return tee.isInstance(e,vJ)}function AQ(e){return tee.isInstance(e,xJ)}function EQ(e){return tee.isInstance(e,wJ)}function $Q(e){return tee.isInstance(e,kJ)}function LQ(e){return tee.isInstance(e,TJ)}function RQ(e){return tee.isInstance(e,SJ)}function MQ(e){return tee.isInstance(e,_J)}function IQ(e){return tee.isInstance(e,CJ)}function NQ(e){return tee.isInstance(e,AJ)}function DQ(e){return tee.isInstance(e,EJ)}function OQ(e){return tee.isInstance(e,$J)}function PQ(e){return tee.isInstance(e,LJ)}function BQ(e){return tee.isInstance(e,RJ)}function FQ(e){return tee.isInstance(e,MJ)}function jQ(e){return tee.isInstance(e,IJ)}function zQ(e){return tee.isInstance(e,NJ)}function HQ(e){return tee.isInstance(e,DJ)}function UQ(e){return tee.isInstance(e,OJ)}function qQ(e){return tee.isInstance(e,PJ)}function WQ(e){return tee.isInstance(e,BJ)}function VQ(e){return tee.isInstance(e,FJ)}function GQ(e){return tee.isInstance(e,jJ)}function YQ(e){return tee.isInstance(e,zJ)}function XQ(e){return tee.isInstance(e,HJ)}function KQ(e){return tee.isInstance(e,UJ)}function ZQ(e){return tee.isInstance(e,qJ)}function QQ(e){return tee.isInstance(e,WJ)}function JQ(e){return tee.isInstance(e,VJ)}function eJ(e){return tee.isInstance(e,GJ)}function tJ(e){return tee.isInstance(e,YJ)}function iJ(e){return tee.isInstance(e,XJ)}function nJ(e){return tee.isInstance(e,KJ)}function rJ(e){return tee.isInstance(e,ZJ)}function sJ(e){return tee.isInstance(e,QJ)}function aJ(e){return tee.isInstance(e,JJ)}V(dQ,{AbstractElement:()=>pJ,AbstractRule:()=>lJ,AbstractType:()=>cJ,Action:()=>PJ,Alternatives:()=>BJ,ArrayLiteral:()=>gJ,ArrayType:()=>fJ,Assignment:()=>FJ,BooleanLiteral:()=>mJ,CharacterRange:()=>jJ,Condition:()=>hJ,Conjunction:()=>yJ,CrossReference:()=>zJ,Disjunction:()=>bJ,EndOfFile:()=>HJ,Grammar:()=>vJ,GrammarImport:()=>xJ,Group:()=>UJ,InferredType:()=>wJ,Interface:()=>kJ,Keyword:()=>qJ,LangiumGrammarAstReflection:()=>eee,LangiumGrammarTerminals:()=>oJ,NamedArgument:()=>TJ,NegatedToken:()=>WJ,Negation:()=>SJ,NumberLiteral:()=>_J,Parameter:()=>CJ,ParameterReference:()=>AJ,ParserRule:()=>EJ,ReferenceType:()=>$J,RegexToken:()=>VJ,ReturnType:()=>LJ,RuleCall:()=>GJ,SimpleType:()=>RJ,StringLiteral:()=>MJ,TerminalAlternatives:()=>YJ,TerminalGroup:()=>XJ,TerminalRule:()=>IJ,TerminalRuleCall:()=>KJ,Type:()=>NJ,TypeAttribute:()=>DJ,TypeDefinition:()=>uJ,UnionType:()=>OJ,UnorderedGroup:()=>ZJ,UntilToken:()=>QJ,ValueLiteral:()=>dJ,Wildcard:()=>JJ,isAbstractElement:()=>xQ,isAbstractRule:()=>pQ,isAbstractType:()=>gQ,isAction:()=>qQ,isAlternatives:()=>WQ,isArrayLiteral:()=>wQ,isArrayType:()=>kQ,isAssignment:()=>VQ,isBooleanLiteral:()=>TQ,isCharacterRange:()=>GQ,isCondition:()=>fQ,isConjunction:()=>SQ,isCrossReference:()=>YQ,isDisjunction:()=>_Q,isEndOfFile:()=>XQ,isFeatureName:()=>mQ,isGrammar:()=>CQ,isGrammarImport:()=>AQ,isGroup:()=>KQ,isInferredType:()=>EQ,isInterface:()=>$Q,isKeyword:()=>ZQ,isNamedArgument:()=>LQ,isNegatedToken:()=>QQ,isNegation:()=>RQ,isNumberLiteral:()=>MQ,isParameter:()=>IQ,isParameterReference:()=>NQ,isParserRule:()=>DQ,isPrimitiveType:()=>yQ,isReferenceType:()=>OQ,isRegexToken:()=>JQ,isReturnType:()=>PQ,isRuleCall:()=>eJ,isSimpleType:()=>BQ,isStringLiteral:()=>FQ,isTerminalAlternatives:()=>tJ,isTerminalGroup:()=>iJ,isTerminalRule:()=>jQ,isTerminalRuleCall:()=>nJ,isType:()=>zQ,isTypeAttribute:()=>HQ,isTypeDefinition:()=>bQ,isUnionType:()=>UQ,isUnorderedGroup:()=>rJ,isUntilToken:()=>sJ,isValueLiteral:()=>vQ,isWildcard:()=>aJ,reflection:()=>tee});var oJ,lJ,cJ,hJ,uJ,dJ,pJ,gJ,fJ,mJ,yJ,bJ,vJ,xJ,wJ,kJ,TJ,SJ,_J,CJ,AJ,EJ,$J,LJ,RJ,MJ,IJ,NJ,DJ,OJ,PJ,BJ,FJ,jJ,zJ,HJ,UJ,qJ,WJ,VJ,GJ,YJ,XJ,KJ,ZJ,QJ,JJ,eee,tee,iee=e(()=>{"use strict";LZ(),oJ={ID:/\^?[_a-zA-Z][\w_]*/,STRING:/"(\\.|[^"\\])*"|'(\\.|[^'\\])*'/,NUMBER:/NaN|-?((\d*\.\d+|\d+)([Ee][+-]?\d+)?|Infinity)/,RegexLiteral:/\/(?![*+?])(?:[^\r\n\[/\\]|\\.|\[(?:[^\r\n\]\\]|\\.)*\])+\/[a-z]*/,WS:/\s+/,ML_COMMENT:/\/\*[\s\S]*?\*\//,SL_COMMENT:/\/\/[^\n\r]*/},lJ="AbstractRule",mt(pQ,"isAbstractRule"),cJ="AbstractType",mt(gQ,"isAbstractType"),hJ="Condition",mt(fQ,"isCondition"),mt(mQ,"isFeatureName"),mt(yQ,"isPrimitiveType"),uJ="TypeDefinition",mt(bQ,"isTypeDefinition"),dJ="ValueLiteral",mt(vQ,"isValueLiteral"),pJ="AbstractElement",mt(xQ,"isAbstractElement"),gJ="ArrayLiteral",mt(wQ,"isArrayLiteral"),fJ="ArrayType",mt(kQ,"isArrayType"),mJ="BooleanLiteral",mt(TQ,"isBooleanLiteral"),yJ="Conjunction",mt(SQ,"isConjunction"),bJ="Disjunction",mt(_Q,"isDisjunction"),vJ="Grammar",mt(CQ,"isGrammar"),xJ="GrammarImport",mt(AQ,"isGrammarImport"),wJ="InferredType",mt(EQ,"isInferredType"),kJ="Interface",mt($Q,"isInterface"),TJ="NamedArgument",mt(LQ,"isNamedArgument"),SJ="Negation",mt(RQ,"isNegation"),_J="NumberLiteral",mt(MQ,"isNumberLiteral"),CJ="Parameter",mt(IQ,"isParameter"),AJ="ParameterReference",mt(NQ,"isParameterReference"),EJ="ParserRule",mt(DQ,"isParserRule"),$J="ReferenceType",mt(OQ,"isReferenceType"),LJ="ReturnType",mt(PQ,"isReturnType"),RJ="SimpleType",mt(BQ,"isSimpleType"),MJ="StringLiteral",mt(FQ,"isStringLiteral"),IJ="TerminalRule",mt(jQ,"isTerminalRule"),NJ="Type",mt(zQ,"isType"),DJ="TypeAttribute",mt(HQ,"isTypeAttribute"),OJ="UnionType",mt(UQ,"isUnionType"),PJ="Action",mt(qQ,"isAction"),BJ="Alternatives",mt(WQ,"isAlternatives"),FJ="Assignment",mt(VQ,"isAssignment"),jJ="CharacterRange",mt(GQ,"isCharacterRange"),zJ="CrossReference",mt(YQ,"isCrossReference"),HJ="EndOfFile",mt(XQ,"isEndOfFile"),UJ="Group",mt(KQ,"isGroup"),qJ="Keyword",mt(ZQ,"isKeyword"),WJ="NegatedToken",mt(QQ,"isNegatedToken"),VJ="RegexToken",mt(JQ,"isRegexToken"),GJ="RuleCall",mt(eJ,"isRuleCall"),YJ="TerminalAlternatives",mt(tJ,"isTerminalAlternatives"),XJ="TerminalGroup",mt(iJ,"isTerminalGroup"),KJ="TerminalRuleCall",mt(nJ,"isTerminalRuleCall"),ZJ="UnorderedGroup",mt(rJ,"isUnorderedGroup"),QJ="UntilToken",mt(sJ,"isUntilToken"),JJ="Wildcard",mt(aJ,"isWildcard"),eee=class extends $Z{static{mt(this,"LangiumGrammarAstReflection")}getAllTypes(){return[pJ,lJ,cJ,PJ,BJ,gJ,fJ,FJ,mJ,jJ,hJ,yJ,zJ,bJ,HJ,vJ,xJ,UJ,wJ,kJ,qJ,TJ,WJ,SJ,_J,CJ,AJ,EJ,$J,VJ,LJ,GJ,RJ,MJ,YJ,XJ,IJ,KJ,NJ,DJ,uJ,OJ,ZJ,QJ,dJ,JJ]}computeIsSubtype(e,t){switch(e){case PJ:case BJ:case FJ:case jJ:case zJ:case HJ:case UJ:case qJ:case WJ:case VJ:case GJ:case YJ:case XJ:case KJ:case ZJ:case QJ:case JJ:return this.isSubtype(pJ,t);case gJ:case _J:case MJ:return this.isSubtype(dJ,t);case fJ:case $J:case RJ:case OJ:return this.isSubtype(uJ,t);case mJ:return this.isSubtype(hJ,t)||this.isSubtype(dJ,t);case yJ:case bJ:case SJ:case AJ:return this.isSubtype(hJ,t);case wJ:case kJ:case NJ:return this.isSubtype(cJ,t);case EJ:return this.isSubtype(lJ,t)||this.isSubtype(cJ,t);case IJ:return this.isSubtype(lJ,t);default:return!1}}getReferenceType(e){var t=e.container.$type+":"+e.property;switch(t){case"Action:type":case"CrossReference:type":case"Interface:superTypes":case"ParserRule:returnType":case"SimpleType:typeRef":return cJ;case"Grammar:hiddenTokens":case"ParserRule:hiddenTokens":case"RuleCall:rule":return lJ;case"Grammar:usedGrammars":return vJ;case"NamedArgument:parameter":case"ParameterReference:parameter":return CJ;case"TerminalRuleCall:rule":return IJ;default:throw new Error(t+" is not a valid reference id.")}}getTypeMetaData(e){switch(e){case pJ:return{name:pJ,properties:[{name:"cardinality"},{name:"lookahead"}]};case gJ:return{name:gJ,properties:[{name:"elements",defaultValue:[]}]};case fJ:return{name:fJ,properties:[{name:"elementType"}]};case mJ:return{name:mJ,properties:[{name:"true",defaultValue:!1}]};case yJ:return{name:yJ,properties:[{name:"left"},{name:"right"}]};case bJ:return{name:bJ,properties:[{name:"left"},{name:"right"}]};case vJ:return{name:vJ,properties:[{name:"definesHiddenTokens",defaultValue:!1},{name:"hiddenTokens",defaultValue:[]},{name:"imports",defaultValue:[]},{name:"interfaces",defaultValue:[]},{name:"isDeclared",defaultValue:!1},{name:"name"},{name:"rules",defaultValue:[]},{name:"types",defaultValue:[]},{name:"usedGrammars",defaultValue:[]}]};case xJ:return{name:xJ,properties:[{name:"path"}]};case wJ:return{name:wJ,properties:[{name:"name"}]};case kJ:return{name:kJ,properties:[{name:"attributes",defaultValue:[]},{name:"name"},{name:"superTypes",defaultValue:[]}]};case TJ:return{name:TJ,properties:[{name:"calledByName",defaultValue:!1},{name:"parameter"},{name:"value"}]};case SJ:return{name:SJ,properties:[{name:"value"}]};case _J:return{name:_J,properties:[{name:"value"}]};case CJ:return{name:CJ,properties:[{name:"name"}]};case AJ:return{name:AJ,properties:[{name:"parameter"}]};case EJ:return{name:EJ,properties:[{name:"dataType"},{name:"definesHiddenTokens",defaultValue:!1},{name:"definition"},{name:"entry",defaultValue:!1},{name:"fragment",defaultValue:!1},{name:"hiddenTokens",defaultValue:[]},{name:"inferredType"},{name:"name"},{name:"parameters",defaultValue:[]},{name:"returnType"},{name:"wildcard",defaultValue:!1}]};case $J:return{name:$J,properties:[{name:"referenceType"}]};case LJ:return{name:LJ,properties:[{name:"name"}]};case RJ:return{name:RJ,properties:[{name:"primitiveType"},{name:"stringType"},{name:"typeRef"}]};case MJ:return{name:MJ,properties:[{name:"value"}]};case IJ:return{name:IJ,properties:[{name:"definition"},{name:"fragment",defaultValue:!1},{name:"hidden",defaultValue:!1},{name:"name"},{name:"type"}]};case NJ:return{name:NJ,properties:[{name:"name"},{name:"type"}]};case DJ:return{name:DJ,properties:[{name:"defaultValue"},{name:"isOptional",defaultValue:!1},{name:"name"},{name:"type"}]};case OJ:return{name:OJ,properties:[{name:"types",defaultValue:[]}]};case PJ:return{name:PJ,properties:[{name:"cardinality"},{name:"feature"},{name:"inferredType"},{name:"lookahead"},{name:"operator"},{name:"type"}]};case BJ:return{name:BJ,properties:[{name:"cardinality"},{name:"elements",defaultValue:[]},{name:"lookahead"}]};case FJ:return{name:FJ,properties:[{name:"cardinality"},{name:"feature"},{name:"lookahead"},{name:"operator"},{name:"terminal"}]};case jJ:return{name:jJ,properties:[{name:"cardinality"},{name:"left"},{name:"lookahead"},{name:"right"}]};case zJ:return{name:zJ,properties:[{name:"cardinality"},{name:"deprecatedSyntax",defaultValue:!1},{name:"lookahead"},{name:"terminal"},{name:"type"}]};case HJ:return{name:HJ,properties:[{name:"cardinality"},{name:"lookahead"}]};case UJ:return{name:UJ,properties:[{name:"cardinality"},{name:"elements",defaultValue:[]},{name:"guardCondition"},{name:"lookahead"}]};case qJ:return{name:qJ,properties:[{name:"cardinality"},{name:"lookahead"},{name:"value"}]};case WJ:return{name:WJ,properties:[{name:"cardinality"},{name:"lookahead"},{name:"terminal"}]};case VJ:return{name:VJ,properties:[{name:"cardinality"},{name:"lookahead"},{name:"regex"}]};case GJ:return{name:GJ,properties:[{name:"arguments",defaultValue:[]},{name:"cardinality"},{name:"lookahead"},{name:"rule"}]};case YJ:return{name:YJ,properties:[{name:"cardinality"},{name:"elements",defaultValue:[]},{name:"lookahead"}]};case XJ:return{name:XJ,properties:[{name:"cardinality"},{name:"elements",defaultValue:[]},{name:"lookahead"}]};case KJ:return{name:KJ,properties:[{name:"cardinality"},{name:"lookahead"},{name:"rule"}]};case ZJ:return{name:ZJ,properties:[{name:"cardinality"},{name:"elements",defaultValue:[]},{name:"lookahead"}]};case QJ:return{name:QJ,properties:[{name:"cardinality"},{name:"lookahead"},{name:"terminal"}]};case JJ:return{name:JJ,properties:[{name:"cardinality"},{name:"lookahead"}]};default:return{name:e,properties:[]}}}},tee=new eee}),nee={};function ree(n){for(let[i,e]of Object.entries(n))i.startsWith("$")||(Array.isArray(e)?e.forEach((e,t)=>{kZ(e)&&(e.$container=n,e.$containerProperty=i,e.$containerIndex=t)}):kZ(e)&&(e.$container=n,e.$containerProperty=i))}function see(e,t){let i=e;for(;i;){if(t(i))return i;i=i.$container}}function aee(e,t){let i=e;for(;i;){if(t(i))return!0;i=i.$container}return!1}function oee(e){e=lee(e).$document;if(e)return e;throw new Error("AST node has no document.")}function lee(e){for(;e.$container;)e=e.$container;return e}function cee(r,e){if(!r)throw new Error("Node must be an AstNode.");let s=e?.range;return new NZ(()=>({keys:Object.keys(r),keyIndex:0,arrayIndex:0}),e=>{for(;e.keyIndex<e.keys.length;){var t=e.keys[e.keyIndex];if(!t.startsWith("$")){var i=r[t];if(kZ(i)){if(e.keyIndex++,dee(i,s))return{done:!1,value:i}}else if(Array.isArray(i)){for(;e.arrayIndex<i.length;){var n=i[e.arrayIndex++];if(kZ(n)&&dee(n,s))return{done:!1,value:n}}e.arrayIndex=0}}e.keyIndex++}return OZ})}function hee(e,t){if(e)return new PZ(e,e=>cee(e,t));throw new Error("Root node must be an AstNode.")}function uee(e,t){if(e)return t?.range&&!dee(e,t.range)?new PZ(e,()=>[]):new PZ(e,e=>cee(e,t),{includeRoot:!0});throw new Error("Root node must be an AstNode.")}function dee(e,t){return!t||!!(e=null==(e=e.$cstNode)?void 0:e.range)&&GZ(e,t)}function pee(s){return new NZ(()=>({keys:Object.keys(s),keyIndex:0,arrayIndex:0}),e=>{for(;e.keyIndex<e.keys.length;){var t=e.keys[e.keyIndex];if(!t.startsWith("$")){var i=s[t];if(TZ(i))return e.keyIndex++,{done:!1,value:{reference:i,container:s,property:t}};if(Array.isArray(i)){for(;e.arrayIndex<i.length;){var n=e.arrayIndex++,r=i[n];if(TZ(r))return{done:!1,value:{reference:r,container:s,property:t,index:n}}}e.arrayIndex=0}}e.keyIndex++}return OZ})}function gee(t,e=oee(t).parseResult.value){let i=[];return uee(e).forEach(e=>{pee(e).forEach(e=>{e.reference.ref===t&&i.push(e.reference)})}),IZ(i)}function fee(e,t){var i,n=t;for(i of e.getTypeMetaData(t.$type).properties)void 0!==i.defaultValue&&void 0===n[i.name]&&(n[i.name]=mee(i.defaultValue))}function mee(e){return Array.isArray(e)?[...e.map(mee)]:e}function yee(e,t){var i,n,r={$type:e.$type};for([i,n]of Object.entries(e))if(!i.startsWith("$"))if(kZ(n))r[i]=yee(n,t);else if(TZ(n))r[i]=t(r,i,n.$refNode,n.$refText);else if(Array.isArray(n)){var s,a=[];for(s of n)kZ(s)?a.push(yee(s,t)):TZ(s)?a.push(t(r,i,s.$refNode,s.$refText)):a.push(s);r[i]=a}else r[i]=n;return ree(r),r}V(nee,{assignMandatoryProperties:()=>fee,copyAstNode:()=>yee,findLocalReferences:()=>gee,findRootNode:()=>lee,getContainerOfType:()=>see,getDocument:()=>oee,hasContainerOfType:()=>aee,linkContentToContainer:()=>ree,streamAllContents:()=>hee,streamAst:()=>uee,streamContents:()=>cee,streamReferences:()=>pee});var bee=e(()=>{"use strict";LZ(),FZ(),lQ(),mt(ree,"linkContentToContainer"),mt(see,"getContainerOfType"),mt(aee,"hasContainerOfType"),mt(oee,"getDocument"),mt(lee,"findRootNode"),mt(cee,"streamContents"),mt(hee,"streamAllContents"),mt(uee,"streamAst"),mt(dee,"isAstNodeInRange"),mt(pee,"streamReferences"),mt(gee,"findLocalReferences"),mt(fee,"assignMandatoryProperties"),mt(mee,"copyDefaultValue"),mt(yee,"copyAstNode")});function vee(e){return e.charCodeAt(0)}function xee(e,t){Array.isArray(e)?e.forEach(function(e){t.push(e)}):t.push(e)}function wee(e,t){if(!0===e[t])throw"duplicate flag "+t;e[t];e[t]=!0}function kee(e){if(void 0===e)throw Error("Internal Error - Should never get here!");return!0}function Tee(){throw Error("Internal Error - Should never get here!")}function See(e){return"Character"===e.type}var _ee,Cee,Aee,Eee,$ee,Lee,Ree,Mee,Iee=e(()=>{"use strict";mt(vee,"cc"),mt(xee,"insertToSet"),mt(wee,"addFlag"),mt(kee,"ASSERT_EXISTS"),mt(Tee,"ASSERT_NEVER_REACH_HERE"),mt(See,"isCharacter")}),Nee=e(()=>{"use strict";Iee(),_ee=[];for(let e=vee("0");e<=vee("9");e++)_ee.push(e);Cee=[vee("_")].concat(_ee);for(let e=vee("a");e<=vee("z");e++)Cee.push(e);for(let e=vee("A");e<=vee("Z");e++)Cee.push(e);Aee=[vee(" "),vee("\f"),vee(`
|
||
`),vee("\r"),vee("\t"),vee("\v"),vee("\t"),vee(" "),vee(" "),vee(" "),vee(" "),vee(" "),vee(" "),vee(" "),vee(" "),vee(" "),vee(" "),vee(" "),vee(" "),vee(" "),vee("\u2028"),vee("\u2029"),vee(" "),vee(" "),vee(" "),vee("\ufeff")]}),Dee=e(()=>{"use strict";Iee(),Nee(),Eee=/[0-9a-fA-F]/,$ee=/[0-9]/,Lee=/[1-9]/,Ree=class{static{mt(this,"RegExpParser")}constructor(){this.idx=0,this.input="",this.groupIdx=0}saveState(){return{idx:this.idx,input:this.input,groupIdx:this.groupIdx}}restoreState(e){this.idx=e.idx,this.input=e.input,this.groupIdx=e.groupIdx}pattern(e){this.idx=0,this.input=e,this.groupIdx=0,this.consumeChar("/");for(var t=this.disjunction(),i=(this.consumeChar("/"),{type:"Flags",loc:{begin:this.idx,end:e.length},global:!1,ignoreCase:!1,multiLine:!1,unicode:!1,sticky:!1});this.isRegExpFlag();)switch(this.popChar()){case"g":wee(i,"global");break;case"i":wee(i,"ignoreCase");break;case"m":wee(i,"multiLine");break;case"u":wee(i,"unicode");break;case"y":wee(i,"sticky")}if(this.idx!==this.input.length)throw Error("Redundant input: "+this.input.substring(this.idx));return{type:"Pattern",flags:i,value:t,loc:this.loc(0)}}disjunction(){var e=[],t=this.idx;for(e.push(this.alternative());"|"===this.peekChar();)this.consumeChar("|"),e.push(this.alternative());return{type:"Disjunction",value:e,loc:this.loc(t)}}alternative(){for(var e=[],t=this.idx;this.isTerm();)e.push(this.term());return{type:"Alternative",value:e,loc:this.loc(t)}}term(){return this.isAssertion()?this.assertion():this.atom()}assertion(){var t=this.idx;switch(this.popChar()){case"^":return{type:"StartAnchor",loc:this.loc(t)};case"$":return{type:"EndAnchor",loc:this.loc(t)};case"\\":switch(this.popChar()){case"b":return{type:"WordBoundary",loc:this.loc(t)};case"B":return{type:"NonWordBoundary",loc:this.loc(t)}}throw Error("Invalid Assertion Escape");case"(":this.consumeChar("?");let e;switch(this.popChar()){case"=":e="Lookahead";break;case"!":e="NegativeLookahead"}kee(e);var i=this.disjunction();return this.consumeChar(")"),{type:e,value:i,loc:this.loc(t)}}return Tee()}quantifier(e=!1){let t,i=this.idx;switch(this.popChar()){case"*":t={atLeast:0,atMost:1/0};break;case"+":t={atLeast:1,atMost:1/0};break;case"?":t={atLeast:0,atMost:1};break;case"{":var n=this.integerIncludingZero();switch(this.popChar()){case"}":t={atLeast:n,atMost:n};break;case",":t=this.isDigit()?{atLeast:n,atMost:this.integerIncludingZero()}:{atLeast:n,atMost:1/0},this.consumeChar("}")}if(!0===e&&void 0===t)return;kee(t)}if((!0!==e||void 0!==t)&&kee(t))return"?"===this.peekChar(0)?(this.consumeChar("?"),t.greedy=!1):t.greedy=!0,t.type="Quantifier",t.loc=this.loc(i),t}atom(){let e,t=this.idx;switch(this.peekChar()){case".":e=this.dotAll();break;case"\\":e=this.atomEscape();break;case"[":e=this.characterClass();break;case"(":e=this.group()}return kee(e=void 0===e&&this.isPatternCharacter()?this.patternCharacter():e)?(e.loc=this.loc(t),this.isQuantifier()&&(e.quantifier=this.quantifier()),e):Tee()}dotAll(){return this.consumeChar("."),{type:"Set",complement:!0,value:[vee(`
|
||
`),vee("\r"),vee("\u2028"),vee("\u2029")]}}atomEscape(){switch(this.consumeChar("\\"),this.peekChar()){case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":return this.decimalEscapeAtom();case"d":case"D":case"s":case"S":case"w":case"W":return this.characterClassEscape();case"f":case"n":case"r":case"t":case"v":return this.controlEscapeAtom();case"c":return this.controlLetterEscapeAtom();case"0":return this.nulCharacterAtom();case"x":return this.hexEscapeSequenceAtom();case"u":return this.regExpUnicodeEscapeSequenceAtom();default:return this.identityEscapeAtom()}}decimalEscapeAtom(){return{type:"GroupBackReference",value:this.positiveInteger()}}characterClassEscape(){let e,t=!1;switch(this.popChar()){case"d":e=_ee;break;case"D":e=_ee,t=!0;break;case"s":e=Aee;break;case"S":e=Aee,t=!0;break;case"w":e=Cee;break;case"W":e=Cee,t=!0}return kee(e)?{type:"Set",value:e,complement:t}:Tee()}controlEscapeAtom(){let e;switch(this.popChar()){case"f":e=vee("\f");break;case"n":e=vee(`
|
||
`);break;case"r":e=vee("\r");break;case"t":e=vee("\t");break;case"v":e=vee("\v")}return kee(e)?{type:"Character",value:e}:Tee()}controlLetterEscapeAtom(){this.consumeChar("c");var e=this.popChar();if(!1===/[a-zA-Z]/.test(e))throw Error("Invalid ");return{type:"Character",value:e.toUpperCase().charCodeAt(0)-64}}nulCharacterAtom(){return this.consumeChar("0"),{type:"Character",value:vee("\0")}}hexEscapeSequenceAtom(){return this.consumeChar("x"),this.parseHexDigits(2)}regExpUnicodeEscapeSequenceAtom(){return this.consumeChar("u"),this.parseHexDigits(4)}identityEscapeAtom(){return{type:"Character",value:vee(this.popChar())}}classPatternCharacterAtom(){switch(this.peekChar()){case`
|
||
`:case"\r":case"\u2028":case"\u2029":case"\\":case"]":throw Error("TBD");default:return{type:"Character",value:vee(this.popChar())}}}characterClass(){let e=[],t=!1;for(this.consumeChar("["),"^"===this.peekChar(0)&&(this.consumeChar("^"),t=!0);this.isClassAtom();){var i=this.classAtom();i.type;if(See(i)&&this.isRangeDash()){this.consumeChar("-");var n=this.classAtom();n.type;if(See(n)){if(n.value<i.value)throw Error("Range out of order in character class");e.push({from:i.value,to:n.value})}else xee(i.value,e),e.push(vee("-")),xee(n.value,e)}else xee(i.value,e)}return this.consumeChar("]"),{type:"Set",complement:t,value:e}}classAtom(){switch(this.peekChar()){case"]":case`
|
||
`:case"\r":case"\u2028":case"\u2029":throw Error("TBD");case"\\":return this.classEscape();default:return this.classPatternCharacterAtom()}}classEscape(){switch(this.consumeChar("\\"),this.peekChar()){case"b":return this.consumeChar("b"),{type:"Character",value:vee("\b")};case"d":case"D":case"s":case"S":case"w":case"W":return this.characterClassEscape();case"f":case"n":case"r":case"t":case"v":return this.controlEscapeAtom();case"c":return this.controlLetterEscapeAtom();case"0":return this.nulCharacterAtom();case"x":return this.hexEscapeSequenceAtom();case"u":return this.regExpUnicodeEscapeSequenceAtom();default:return this.identityEscapeAtom()}}group(){let e=!0;"?"===(this.consumeChar("("),this.peekChar(0))?(this.consumeChar("?"),this.consumeChar(":"),e=!1):this.groupIdx++;var t=this.disjunction(),t=(this.consumeChar(")"),{type:"Group",capturing:e,value:t});return e&&(t.idx=this.groupIdx),t}positiveInteger(){let e=this.popChar();if(!1===Lee.test(e))throw Error("Expecting a positive integer");for(;$ee.test(this.peekChar(0));)e+=this.popChar();return parseInt(e,10)}integerIncludingZero(){let e=this.popChar();if(!1===$ee.test(e))throw Error("Expecting an integer");for(;$ee.test(this.peekChar(0));)e+=this.popChar();return parseInt(e,10)}patternCharacter(){var e=this.popChar();switch(e){case`
|
||
`:case"\r":case"\u2028":case"\u2029":case"^":case"$":case"\\":case".":case"*":case"+":case"?":case"(":case")":case"[":case"|":throw Error("TBD");default:return{type:"Character",value:vee(e)}}}isRegExpFlag(){switch(this.peekChar(0)){case"g":case"i":case"m":case"u":case"y":return!0;default:return!1}}isRangeDash(){return"-"===this.peekChar()&&this.isClassAtom(1)}isDigit(){return $ee.test(this.peekChar(0))}isClassAtom(e=0){switch(this.peekChar(e)){case"]":case`
|
||
`:case"\r":case"\u2028":case"\u2029":return!1;default:return!0}}isTerm(){return this.isAtom()||this.isAssertion()}isAtom(){if(this.isPatternCharacter())return!0;switch(this.peekChar(0)){case".":case"\\":case"[":case"(":return!0;default:return!1}}isAssertion(){switch(this.peekChar(0)){case"^":case"$":return!0;case"\\":switch(this.peekChar(1)){case"b":case"B":return!0;default:return!1}case"(":return"?"===this.peekChar(1)&&("="===this.peekChar(2)||"!"===this.peekChar(2));default:return!1}}isQuantifier(){var e=this.saveState();try{return void 0!==this.quantifier(!0)}catch{return!1}finally{this.restoreState(e)}}isPatternCharacter(){switch(this.peekChar()){case"^":case"$":case"\\":case".":case"*":case"+":case"?":case"(":case")":case"[":case"|":case"/":case`
|
||
`:case"\r":case"\u2028":case"\u2029":return!1;default:return!0}}parseHexDigits(t){let i="";for(let e=0;e<t;e++){var n=this.popChar();if(!1===Eee.test(n))throw Error("Expecting a HexDecimal digits");i+=n}return{type:"Character",value:parseInt(i,16)}}peekChar(e=0){return this.input[this.idx+e]}popChar(){var e=this.peekChar(0);return this.consumeChar(void 0),e}consumeChar(e){if(void 0!==e&&this.input[this.idx]!==e)throw Error("Expected: '"+e+"' but found: '"+this.input[this.idx]+"' at offset: "+this.idx);if(this.idx>=this.input.length)throw Error("Unexpected end of input");this.idx++}loc(e){return{begin:e,end:this.idx}}}}),Oee=e(()=>{"use strict";Mee=class{static{mt(this,"BaseRegExpVisitor")}visitChildren(e){for(var t in e){var i=e[t];e.hasOwnProperty(t)&&(void 0!==i.type?this.visit(i):Array.isArray(i)&&i.forEach(e=>{this.visit(e)},this))}}visit(e){switch(e.type){case"Pattern":this.visitPattern(e);break;case"Flags":this.visitFlags(e);break;case"Disjunction":this.visitDisjunction(e);break;case"Alternative":this.visitAlternative(e);break;case"StartAnchor":this.visitStartAnchor(e);break;case"EndAnchor":this.visitEndAnchor(e);break;case"WordBoundary":this.visitWordBoundary(e);break;case"NonWordBoundary":this.visitNonWordBoundary(e);break;case"Lookahead":this.visitLookahead(e);break;case"NegativeLookahead":this.visitNegativeLookahead(e);break;case"Character":this.visitCharacter(e);break;case"Set":this.visitSet(e);break;case"Group":this.visitGroup(e);break;case"GroupBackReference":this.visitGroupBackReference(e);break;case"Quantifier":this.visitQuantifier(e)}this.visitChildren(e)}visitPattern(e){}visitFlags(e){}visitDisjunction(e){}visitAlternative(e){}visitStartAnchor(e){}visitEndAnchor(e){}visitWordBoundary(e){}visitNonWordBoundary(e){}visitLookahead(e){}visitNegativeLookahead(e){}visitCharacter(e){}visitSet(e){}visitGroup(e){}visitGroupBackReference(e){}visitQuantifier(e){}}}),Pee=e(()=>{"use strict";Dee(),Oee()}),Bee={};function Fee(e){try{e=`/${e="string"!=typeof e?e.source:e}/`;var t,i=Gee.pattern(e),n=[];for(t of i.value.value)Xee.reset(e),Xee.visit(t),n.push({start:Xee.startRegexp,end:Xee.endRegex});return n}catch{return[]}}function jee(e){try{return e=(e="string"==typeof e?new RegExp(e):e).toString(),Xee.reset(e),Xee.visit(Gee.pattern(e)),Xee.multiline}catch{return!1}}function zee(e){let t="string"==typeof e?new RegExp(e):e;return Kee.some(e=>t.test(e))}function Hee(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Uee(e){return Array.prototype.map.call(e,e=>/\w/.test(e)?`[${e.toLowerCase()}${e.toUpperCase()}]`:Hee(e)).join("")}function qee(e,t){e=Wee(e),t=t.match(e);return!!t&&0<t[0].length}function Wee(e){let r=e="string"==typeof e?new RegExp(e):e,s=e.source,a=0;function o(){let t="",e;function i(e){t+=s.substr(a,e),a+=e}function n(e){t+="(?:"+s.substr(a,e)+"|$)",a+=e}for(mt(i,"appendRaw"),mt(n,"appendOptional");a<s.length;)switch(s[a]){case"\\":switch(s[a+1]){case"c":n(3);break;case"x":n(4);break;case"u":r.unicode?"{"===s[a+2]?n(s.indexOf("}",a)-a+1):n(6):n(2);break;case"p":case"P":r.unicode?n(s.indexOf("}",a)-a+1):n(2);break;case"k":n(s.indexOf(">",a)-a+1);break;default:n(2)}break;case"[":(e=/\[(?:\\.|.)*?\]/g).lastIndex=a,n((e=e.exec(s)||[])[0].length);break;case"|":case"^":case"$":case"*":case"+":case"?":i(1);break;case"{":(e=/\{\d+,?\d*\}/g).lastIndex=a,(e=e.exec(s))?i(e[0].length):n(1);break;case"(":if("?"===s[a+1])switch(s[a+2]){case":":t+="(?:",a+=3,t+=o()+"|$)";break;case"=":t+="(?=",a+=3,t+=o()+")";break;case"!":e=a,a+=3,o(),t+=s.substr(e,a-e);break;case"<":switch(s[a+3]){case"=":case"!":e=a,a+=4,o(),t+=s.substr(e,a-e);break;default:i(s.indexOf(">",a)-a+1),t+=o()+"|$)"}}else i(1),t+=o()+"|$)";break;case")":return++a,t;default:n(1)}return t}return mt(o,"process"),new RegExp(o(),e.flags)}V(Bee,{NEWLINE_REGEXP:()=>Vee,escapeRegExp:()=>Hee,getCaseInsensitivePattern:()=>Uee,getTerminalParts:()=>Fee,isMultilineComment:()=>jee,isWhitespace:()=>zee,partialMatches:()=>qee,partialRegExp:()=>Wee,whitespaceCharacters:()=>Kee});var Vee,Gee,Yee,Xee,Kee,Zee=e(()=>{"use strict";Pee(),Vee=/\r?\n/gm,Gee=new Ree,Yee=class extends Mee{static{mt(this,"TerminalRegExpVisitor")}constructor(){super(...arguments),this.isStarting=!0,this.endRegexpStack=[],this.multiline=!1}get endRegex(){return this.endRegexpStack.join("")}reset(e){this.multiline=!1,this.regex=e,this.startRegexp="",this.isStarting=!0,this.endRegexpStack=[]}visitGroup(e){e.quantifier&&(this.isStarting=!1,this.endRegexpStack=[])}visitCharacter(e){var t=String.fromCharCode(e.value);this.multiline||t!==`
|
||
`||(this.multiline=!0),e.quantifier?(this.isStarting=!1,this.endRegexpStack=[]):(e=Hee(t),this.endRegexpStack.push(e),this.isStarting&&(this.startRegexp+=e))}visitSet(e){var t;this.multiline||(t=this.regex.substring(e.loc.begin,e.loc.end),t=new RegExp(t),this.multiline=!!`
|
||
`.match(t)),e.quantifier?(this.isStarting=!1,this.endRegexpStack=[]):(t=this.regex.substring(e.loc.begin,e.loc.end),this.endRegexpStack.push(t),this.isStarting&&(this.startRegexp+=t))}visitChildren(e){"Group"===e.type&&e.quantifier||super.visitChildren(e)}},Xee=new Yee,mt(Fee,"getTerminalParts"),mt(jee,"isMultilineComment"),Kee=`
|
||
\r
`.split(""),mt(zee,"isWhitespace"),mt(Hee,"escapeRegExp"),mt(Uee,"getCaseInsensitivePattern"),mt(qee,"partialMatches"),mt(Wee,"partialRegExp")}),Qee={};function Jee(e){return e.rules.find(e=>DQ(e)&&e.entry)}function ete(e){return e.rules.filter(e=>jQ(e)&&e.hidden)}function tte(e,t){var i,n=new Set,r=Jee(e);if(!r)return new Set(e.rules);for(i of[r].concat(ete(e)))ite(i,n,t);var s,a=new Set;for(s of e.rules)(n.has(s.name)||jQ(s)&&s.hidden)&&a.add(s);return a}function ite(e,t,i){t.add(e.name),hee(e).forEach(e=>{(eJ(e)||i&&nJ(e))&&(e=e.rule.ref)&&!t.has(e.name)&&ite(e,t,i)})}function nte(e){return e.terminal||(e.type.ref?dte(e.type.ref)?.terminal:void 0)}function rte(e){return e.hidden&&!zee(Ate(e))}function ste(e,t){return e&&t?ote(e,t,e.astNode,!0):[]}function ate(e,t,i){return e&&t&&0!==(t=ote(e,t,e.astNode,!0)).length?t[i=void 0!==i?Math.max(0,Math.min(i,t.length-1)):0]:void 0}function ote(e,t,i,n){if(!n){n=see(e.grammarSource,VQ);if(n&&n.feature===t)return[e]}return CZ(e)&&e.astNode===i?e.content.flatMap(e=>ote(e,t,i,!1)):[]}function lte(e,t){return e?hte(e,t,e?.astNode):[]}function cte(e,t,i){return e&&0!==(t=hte(e,t,e?.astNode)).length?t[i=void 0!==i?Math.max(0,Math.min(i,t.length-1)):0]:void 0}function hte(e,t,i){if(e.astNode!==i)return[];if(ZQ(e.grammarSource)&&e.grammarSource.value===t)return[e];var n,r,s=zZ(e).iterator(),a=[];do{(r=s.next()).done||((n=r.value).astNode===i?ZQ(n.grammarSource)&&n.grammarSource.value===t&&a.push(n):s.prune())}while(!r.done);return a}function ute(e){for(var t=e.astNode;t===(null==(i=e.container)?void 0:i.astNode);){var i=see(e.grammarSource,VQ);if(i)return i;e=e.container}}function dte(e){let t=e;return EQ(t)&&(qQ(t.$container)?t=t.$container.$container:DQ(t.$container)?t=t.$container:cQ(t.$container)),pte(e,t,new Map)}function pte(n,e,r){var t,i;function s(e,t){let i;return see(e,VQ)||(i=pte(t,t,r)),r.set(n,i),i}if(mt(s,"go"),r.has(n))return r.get(n);r.set(n,void 0);for(i of hee(e)){if(VQ(i)&&"name"===i.feature.toLowerCase())return r.set(n,i),i;if(eJ(i)&&DQ(i.rule.ref))return s(i,i.rule.ref);if(BQ(i)&&null!=(t=i.typeRef)&&t.ref)return s(i,i.typeRef.ref)}}function gte(t){var e=t.$container;if(KQ(e)){var i=e.elements;for(let e=i.indexOf(t)-1;0<=e;e--){var n=i[e];if(qQ(n))return n;n=hee(i[e]).find(qQ);if(n)return n}}if(xQ(e))return gte(e)}function fte(e,t){return"?"===e||"*"===e||KQ(t)&&!!t.guardCondition}function mte(e){return"*"===e||"+"===e}function yte(e){return"+="===e}function bte(e){return vte(e,new Set)}function vte(e,t){if(t.has(e))return!0;t.add(e);for(var i of hee(e))if(eJ(i)){if(!i.rule.ref||DQ(i.rule.ref)&&!vte(i.rule.ref,t))return!1}else{if(VQ(i))return!1;if(qQ(i))return!1}return!!e.definition}function xte(e){return wte(e.type,new Set)}function wte(e,t){return!!t.has(e)||(t.add(e),!kQ(e)&&!OQ(e)&&(UQ(e)?e.types.every(e=>wte(e,t)):!!BQ(e)&&(void 0!==e.primitiveType||void 0!==e.stringType||void 0!==e.typeRef&&!!zQ(e=e.typeRef.ref)&&wte(e.type,t))))}function kte(e){return e.inferredType?e.inferredType.name:e.dataType||(e.returnType&&(e=e.returnType.ref)&&(DQ(e)||$Q(e)||zQ(e))?e.name:void 0)}function Tte(e){if(DQ(e))return!bte(e)&&null!=(t=kte(e))?t:e.name;if($Q(e)||zQ(e)||PQ(e))return e.name;if(qQ(e)){var t=Ste(e);if(t)return t}else if(EQ(e))return e.name;throw new Error("Cannot get name of Unknown Type")}function Ste(e){var t;return e.inferredType?e.inferredType.name:null!=(t=e.type)&&t.ref?Tte(e.type.ref):void 0}function _te(e){var t;return jQ(e)?null!=(t=null==(t=e.type)?void 0:t.name)?t:"string":!bte(e)&&null!=(t=kte(e))?t:e.name}function Cte(e){var t;return jQ(e)?null!=(t=null==(t=e.type)?void 0:t.name)?t:"string":null!=(t=kte(e))?t:e.name}function Ate(e){var t={s:!1,i:!1,u:!1},e=Ete(e.definition,t),t=Object.entries(t).filter(([,e])=>e).map(([e])=>e).join("");return new RegExp(e,t)}function Ete(e,t){if(tJ(e))return $te(e);if(iJ(e))return Lte(e);if(GQ(e))return Ite(e);if(nJ(e)){var i=e.rule.ref;if(i)return Dte(Ete(i.definition),{cardinality:e.cardinality,lookahead:e.lookahead});throw new Error("Missing rule reference.")}if(QQ(e))return Mte(e);if(sJ(e))return Rte(e);var n;if(JQ(e))return i=e.regex.lastIndexOf("/"),n=e.regex.substring(1,i),i=e.regex.substring(i+1),t&&(t.i=i.includes("i"),t.s=i.includes("s"),t.u=i.includes("u")),Dte(n,{cardinality:e.cardinality,lookahead:e.lookahead,wrap:!1});if(aJ(e))return Dte(Ote,{cardinality:e.cardinality,lookahead:e.lookahead});throw new Error("Invalid terminal element: "+e?.$type)}function $te(e){return Dte(e.elements.map(e=>Ete(e)).join("|"),{cardinality:e.cardinality,lookahead:e.lookahead})}function Lte(e){return Dte(e.elements.map(e=>Ete(e)).join(""),{cardinality:e.cardinality,lookahead:e.lookahead})}function Rte(e){return Dte(Ote+"*?"+Ete(e.terminal),{cardinality:e.cardinality,lookahead:e.lookahead})}function Mte(e){return Dte(`(?!${Ete(e.terminal)})${Ote}*?`,{cardinality:e.cardinality,lookahead:e.lookahead})}function Ite(e){return e.right?Dte(`[${Nte(e.left)}-${Nte(e.right)}]`,{cardinality:e.cardinality,lookahead:e.lookahead,wrap:!1}):Dte(Nte(e.left),{cardinality:e.cardinality,lookahead:e.lookahead,wrap:!1})}function Nte(e){return Hee(e.value)}function Dte(e,t){var i;return!1===t.wrap&&!t.lookahead||(e=`(${null!=(i=t.lookahead)?i:""}${e})`),t.cardinality?""+e+t.cardinality:e}V(Qee,{findAssignment:()=>ute,findNameAssignment:()=>dte,findNodeForKeyword:()=>cte,findNodeForProperty:()=>ate,findNodesForKeyword:()=>lte,findNodesForKeywordInternal:()=>hte,findNodesForProperty:()=>ste,getActionAtElement:()=>gte,getActionType:()=>Ste,getAllReachableRules:()=>tte,getCrossReferenceTerminal:()=>nte,getEntryRule:()=>Jee,getExplicitRuleType:()=>kte,getHiddenRules:()=>ete,getRuleType:()=>Cte,getRuleTypeName:()=>_te,getTypeName:()=>Tte,isArrayCardinality:()=>mte,isArrayOperator:()=>yte,isCommentTerminal:()=>rte,isDataType:()=>xte,isDataTypeRule:()=>bte,isOptionalCardinality:()=>fte,terminalRegex:()=>Ate});var Ote,Pte=e(()=>{"use strict";uQ(),iee(),LZ(),bee(),lQ(),Zee(),mt(Jee,"getEntryRule"),mt(ete,"getHiddenRules"),mt(tte,"getAllReachableRules"),mt(ite,"ruleDfs"),mt(nte,"getCrossReferenceTerminal"),mt(rte,"isCommentTerminal"),mt(ste,"findNodesForProperty"),mt(ate,"findNodeForProperty"),mt(ote,"findNodesForPropertyInternal"),mt(lte,"findNodesForKeyword"),mt(cte,"findNodeForKeyword"),mt(hte,"findNodesForKeywordInternal"),mt(ute,"findAssignment"),mt(dte,"findNameAssignment"),mt(pte,"findNameAssignmentInternal"),mt(gte,"getActionAtElement"),mt(fte,"isOptionalCardinality"),mt(mte,"isArrayCardinality"),mt(yte,"isArrayOperator"),mt(bte,"isDataTypeRule"),mt(vte,"isDataTypeRuleInternal"),mt(xte,"isDataType"),mt(wte,"isDataTypeInternal"),mt(kte,"getExplicitRuleType"),mt(Tte,"getTypeName"),mt(Ste,"getActionType"),mt(_te,"getRuleTypeName"),mt(Cte,"getRuleType"),mt(Ate,"terminalRegex"),Ote=/[\s\S]/.source,mt(Ete,"abstractElementToRegex"),mt($te,"terminalAlternativesToRegex"),mt(Lte,"terminalGroupToRegex"),mt(Rte,"untilTokenToRegex"),mt(Mte,"negateTokenToRegex"),mt(Ite,"characterRangeToRegex"),mt(Nte,"keywordToRegex"),mt(Dte,"withCardinality")});function Bte(e){var t,i=[];for(t of e.Grammar.rules)jQ(t)&&rte(t)&&jee(Ate(t))&&i.push(t.name);return{multilineCommentRules:i,nameRegexp:oQ}}var Fte=e(()=>{"use strict";lQ(),Pte(),Zee(),iee(),mt(Bte,"createGrammarConfig")}),jte=e(()=>{});function zte(e){console&&console.error&&console.error("Error: "+e)}function Hte(e){console&&console.warn&&console.warn("Warning: "+e)}var Ute=e(()=>{"use strict";mt(zte,"PRINT_ERROR"),mt(Hte,"PRINT_WARNING")});function qte(e){var t=(new Date).getTime(),e=e();return{time:(new Date).getTime()-t,value:e}}var Wte=e(()=>{"use strict";mt(qte,"timer")});function Vte(e){function t(){}mt(t,"FakeConstructor"),t.prototype=e;let i=new t;function n(){return typeof i.bar}return mt(n,"fakeAccess"),n(),n(),e}var Gte=e(()=>{"use strict";mt(Vte,"toFastProperties")}),Yte=e(()=>{"use strict";Ute(),Wte(),Gte()});function Xte(e){return Kte(e)?e.LABEL:e.name}function Kte(e){return XU(e.LABEL)&&""!==e.LABEL}function Zte(e){return v(e,Qte)}function Qte(e){function t(e){return v(e,Qte)}var i,n;if(mt(t,"convertDefinition"),e instanceof eie)return i={type:"NonTerminal",name:e.nonTerminalName,idx:e.idx},XU(e.label)&&(i.label=e.label),i;if(e instanceof iie)return{type:"Alternative",definition:t(e.definition)};if(e instanceof nie)return{type:"Option",idx:e.idx,definition:t(e.definition)};if(e instanceof rie)return{type:"RepetitionMandatory",idx:e.idx,definition:t(e.definition)};if(e instanceof sie)return{type:"RepetitionMandatoryWithSeparator",idx:e.idx,separator:Qte(new cie({terminalType:e.separator})),definition:t(e.definition)};if(e instanceof oie)return{type:"RepetitionWithSeparator",idx:e.idx,separator:Qte(new cie({terminalType:e.separator})),definition:t(e.definition)};if(e instanceof aie)return{type:"Repetition",idx:e.idx,definition:t(e.definition)};if(e instanceof lie)return{type:"Alternation",idx:e.idx,definition:t(e.definition)};if(e instanceof cie)return i={type:"Terminal",name:e.terminalType.name,label:Xte(e.terminalType),idx:e.idx},XU(e.label)&&(i.terminalLabel=e.label),n=e.terminalType.PATTERN,e.terminalType.PATTERN&&(i.pattern=vq(n)?n.source:n),i;if(e instanceof tie)return{type:"Rule",name:e.name,orgText:e.orgText,definition:t(e.definition)};throw Error("non exhaustive match")}var Jte,eie,tie,iie,nie,rie,sie,aie,oie,lie,cie,hie,uie=e(()=>{"use strict";zV(),mt(Xte,"tokenLabel"),mt(Kte,"hasTokenLabel"),Jte=class{static{mt(this,"AbstractProduction")}get definition(){return this._definition}set definition(e){this._definition=e}constructor(e){this._definition=e}accept(t){t.visit(this),b(this.definition,e=>{e.accept(t)})}},eie=class extends Jte{static{mt(this,"NonTerminal")}constructor(e){super([]),this.idx=1,gP(this,Jq(e,e=>void 0!==e))}set definition(e){}get definition(){return void 0!==this.referencedRule?this.referencedRule.definition:[]}accept(e){e.visit(this)}},tie=class extends Jte{static{mt(this,"Rule")}constructor(e){super(e.definition),this.orgText="",gP(this,Jq(e,e=>void 0!==e))}},iie=class extends Jte{static{mt(this,"Alternative")}constructor(e){super(e.definition),this.ignoreAmbiguities=!1,gP(this,Jq(e,e=>void 0!==e))}},nie=class extends Jte{static{mt(this,"Option")}constructor(e){super(e.definition),this.idx=1,gP(this,Jq(e,e=>void 0!==e))}},rie=class extends Jte{static{mt(this,"RepetitionMandatory")}constructor(e){super(e.definition),this.idx=1,gP(this,Jq(e,e=>void 0!==e))}},sie=class extends Jte{static{mt(this,"RepetitionMandatoryWithSeparator")}constructor(e){super(e.definition),this.idx=1,gP(this,Jq(e,e=>void 0!==e))}},aie=class extends Jte{static{mt(this,"Repetition")}constructor(e){super(e.definition),this.idx=1,gP(this,Jq(e,e=>void 0!==e))}},oie=class extends Jte{static{mt(this,"RepetitionWithSeparator")}constructor(e){super(e.definition),this.idx=1,gP(this,Jq(e,e=>void 0!==e))}},lie=class extends Jte{static{mt(this,"Alternation")}get definition(){return this._definition}set definition(e){this._definition=e}constructor(e){super(e.definition),this.idx=1,this.ignoreAmbiguities=!1,this.hasPredicates=!1,gP(this,Jq(e,e=>void 0!==e))}},cie=class{static{mt(this,"Terminal")}constructor(e){this.idx=1,gP(this,Jq(e,e=>void 0!==e))}accept(e){e.visit(this)}},mt(Zte,"serializeGrammar"),mt(Qte,"serializeProduction")}),die=e(()=>{"use strict";uie(),hie=class{static{mt(this,"GAstVisitor")}visit(e){var t=e;switch(t.constructor){case eie:return this.visitNonTerminal(t);case iie:return this.visitAlternative(t);case nie:return this.visitOption(t);case rie:return this.visitRepetitionMandatory(t);case sie:return this.visitRepetitionMandatoryWithSeparator(t);case oie:return this.visitRepetitionWithSeparator(t);case aie:return this.visitRepetition(t);case lie:return this.visitAlternation(t);case cie:return this.visitTerminal(t);case tie:return this.visitRule(t);default:throw Error("non exhaustive match")}}visitNonTerminal(e){}visitAlternative(e){}visitOption(e){}visitRepetition(e){}visitRepetitionMandatory(e){}visitRepetitionMandatoryWithSeparator(e){}visitRepetitionWithSeparator(e){}visitAlternation(e){}visitTerminal(e){}visitRule(e){}}});function pie(e){return e instanceof iie||e instanceof nie||e instanceof aie||e instanceof rie||e instanceof sie||e instanceof oie||e instanceof cie||e instanceof tie}function gie(e,t=[]){return e instanceof nie||e instanceof aie||e instanceof oie||(e instanceof lie?uV(e.definition,e=>gie(e,t)):!(e instanceof eie&&sq(t,e))&&e instanceof Jte&&(e instanceof eie&&t.push(e),ZH(e.definition,e=>gie(e,t))))}function fie(e){return e instanceof lie}function mie(e){if(e instanceof eie)return"SUBRULE";if(e instanceof nie)return"OPTION";if(e instanceof lie)return"OR";if(e instanceof rie)return"AT_LEAST_ONE";if(e instanceof sie)return"AT_LEAST_ONE_SEP";if(e instanceof oie)return"MANY_SEP";if(e instanceof aie)return"MANY";if(e instanceof cie)return"CONSUME";throw Error("non exhaustive match")}var yie=e(()=>{"use strict";zV(),uie(),mt(pie,"isSequenceProd"),mt(gie,"isOptionalProd"),mt(fie,"isBranchingProd"),mt(mie,"getProductionDslName")}),bie=e(()=>{"use strict";uie(),die(),yie()});function vie(e,t,i){return[new nie({definition:[new cie({terminalType:e.separator})].concat(e.definition)})].concat(t,i)}var xie,wie=e(()=>{"use strict";zV(),bie(),xie=class{static{mt(this,"RestWalker")}walk(i,n=[]){b(i.definition,(e,t)=>{t=IH(i.definition,t+1);if(e instanceof eie)this.walkProdRef(e,t,n);else if(e instanceof cie)this.walkTerminal(e,t,n);else if(e instanceof iie)this.walkFlat(e,t,n);else if(e instanceof nie)this.walkOption(e,t,n);else if(e instanceof rie)this.walkAtLeastOne(e,t,n);else if(e instanceof sie)this.walkAtLeastOneSep(e,t,n);else if(e instanceof oie)this.walkManySep(e,t,n);else if(e instanceof aie)this.walkMany(e,t,n);else{if(!(e instanceof lie))throw Error("non exhaustive match");this.walkOr(e,t,n)}})}walkTerminal(e,t,i){}walkProdRef(e,t,i){}walkFlat(e,t,i){t=t.concat(i);this.walk(e,t)}walkOption(e,t,i){t=t.concat(i);this.walk(e,t)}walkAtLeastOne(e,t,i){t=[new nie({definition:e.definition})].concat(t,i);this.walk(e,t)}walkAtLeastOneSep(e,t,i){t=vie(e,t,i);this.walk(e,t)}walkMany(e,t,i){t=[new nie({definition:e.definition})].concat(t,i);this.walk(e,t)}walkManySep(e,t,i){t=vie(e,t,i);this.walk(e,t)}walkOr(e,t,i){let n=t.concat(i);b(e.definition,e=>{e=new iie({definition:[e]});this.walk(e,n)})}},mt(vie,"restForRepetitionWithSeparator")});function kie(e){if(e instanceof eie)return kie(e.referencedRule);if(e instanceof cie)return _ie(e);if(pie(e))return Tie(e);if(fie(e))return Sie(e);throw Error("non exhaustive match")}function Tie(e){let t=[],i=e.definition,n=0,r=i.length>n,s,a=!0;for(;r&&a;)s=i[n],a=gie(s),t=t.concat(kie(s)),n+=1,r=i.length>n;return CV(t)}function Sie(e){e=v(e.definition,e=>kie(e));return CV(iB(e))}function _ie(e){return[e.terminalType]}var Cie,Aie=e(()=>{"use strict";zV(),bie(),mt(kie,"first"),mt(Tie,"firstForSequence"),mt(Sie,"firstForBranching"),mt(_ie,"firstForTerminal")}),Eie=e(()=>{"use strict";Cie="_~IN~_"});function $ie(e){let t={};return b(e,e=>{e=new Rie(e).startWalking();gP(t,e)}),t}function Lie(e,t){return e.name+t+Cie}var Rie,Mie=e(()=>{"use strict";wie(),Aie(),zV(),Eie(),bie(),Rie=class extends xie{static{mt(this,"ResyncFollowsWalker")}constructor(e){super(),this.topProd=e,this.follows={}}startWalking(){return this.walk(this.topProd),this.follows}walkTerminal(e,t,i){}walkProdRef(e,t,i){e=Lie(e.referencedRule,e.idx)+this.topProd.name,t=t.concat(i),i=kie(new iie({definition:t}));this.follows[e]=i}},mt($ie,"computeAllProdsFollows"),mt(Lie,"buildBetweenProdsFollowPrefix")});function Iie(e){var t,e=e.toString();return Die.hasOwnProperty(e)?Die[e]:(t=Oie.pattern(e),Die[e]=t)}function Nie(){Die={}}var Die,Oie,Pie=e(()=>{"use strict";Pee(),Die={},Oie=new Ree,mt(Iie,"getRegExpAst"),mt(Nie,"clearRegExpParserCache")});function Bie(t,i=!1){try{var e=Iie(t);return Fie(e.value,{},e.flags.ignoreCase)}catch(e){if(e.message===Wie)i&&Hte(`${Vie} Unable to optimize: < ${t.toString()} >
|
||
Complement Sets cannot be automatically optimized.
|
||
This will disable the lexer's first char optimizations.
|
||
See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#COMPLEMENT for details.`);else{let e=i?`
|
||
This will disable the lexer's first char optimizations.
|
||
See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#REGEXP_PARSING for details.`:"";zte(`${Vie}
|
||
Failed parsing: < ${t.toString()} >
|
||
Using the @chevrotain/regexp-to-ast library
|
||
Please open an issue at: https://github.com/chevrotain/chevrotain/issues`+e)}}return[]}function Fie(t,r,s){switch(t.type){case"Disjunction":for(let e=0;e<t.value.length;e++)Fie(t.value[e],r,s);break;case"Alternative":var i=t.value;for(let e=0;e<i.length;e++){var n=i[e];switch(n.type){case"EndAnchor":case"GroupBackReference":case"Lookahead":case"NegativeLookahead":case"StartAnchor":case"WordBoundary":case"NonWordBoundary":continue}var a=n;switch(a.type){case"Character":jie(a.value,r,s);break;case"Set":if(!0===a.complement)throw Error(Wie);b(a.value,t=>{if("number"==typeof t)jie(t,r,s);else{var i=t;if(!0===s)for(let e=i.from;e<=i.to;e++)jie(e,r,s);else{for(let e=i.from;e<=i.to&&e<Lne;e++)jie(e,r,s);if(i.to>=Lne){var t=i.from>=Lne?i.from:Lne,e=i.to,t=wne(t),n=wne(e);for(let e=t;e<=n;e++)r[e]=e}}}});break;case"Group":Fie(a.value,r,s);break;default:throw Error("Non Exhaustive Match")}n=void 0!==a.quantifier&&0===a.quantifier.atLeast;if("Group"===a.type&&!1===Uie(a)||"Group"!==a.type&&!1==n)break}break;default:throw Error("non exhaustive match!")}return tq(r)}function jie(e,t,i){var n=wne(e);t[n]=n,!0===i&&zie(e,t)}function zie(e,t){var e=String.fromCharCode(e),i=e.toUpperCase();i!==e?t[i=wne(i.charCodeAt(0))]=i:(i=e.toLowerCase())!==e&&(t[e=wne(i.charCodeAt(0))]=e)}function Hie(e,i){return dU(e.value,e=>{if("number"==typeof e)return sq(i,e);{let t=e;return void 0!==dU(i,e=>t.from<=e&&e<=t.to)}})}function Uie(e){var t=e.quantifier;return!(!t||0!==t.atLeast)||!!e.value&&(sT(e.value)?ZH(e.value,Uie):Uie(e.value))}function qie(t,e){var i,n;return e instanceof RegExp?(i=Iie(e),(n=new Gie(t)).visit(i),n.found):void 0!==dU(e,e=>sq(t,e.charCodeAt(0)))}var Wie,Vie,Gie,Yie=e(()=>{"use strict";Pee(),zV(),Yte(),Pie(),Mne(),Wie="Complement Sets are not supported for first char optimization",Vie=`Unable to use "first char" lexer optimizations:
|
||
`,mt(Bie,"getOptimizedStartCodesIndices"),mt(Fie,"firstCharOptimizedIndices"),mt(jie,"addOptimizedIdxToResult"),mt(zie,"handleIgnoreCase"),mt(Hie,"findCode"),mt(Uie,"isWholeOptional"),Gie=class extends Mee{static{mt(this,"CharCodeFinder")}constructor(e){super(),this.targetCharCodes=e,this.found=!1}visitChildren(e){if(!0!==this.found){switch(e.type){case"Lookahead":return void this.visitLookahead(e);case"NegativeLookahead":return void this.visitNegativeLookahead(e)}super.visitChildren(e)}}visitCharacter(e){sq(this.targetCharCodes,e.value)&&(this.found=!0)}visitSet(e){e.complement?void 0===Hie(e,this.targetCharCodes)&&(this.found=!0):void 0!==Hie(e,this.targetCharCodes)&&(this.found=!0)}},mt(qie,"canMatchCharCode")});function Xie(e,r){var t=(r=mH(r,{useSticky:Cne,debug:!1,safeMode:!1,positionTracking:"full",lineTerminatorCharacters:["\r",`
|
||
`],tracer:mt((e,t)=>t(),"tracer")})).tracer;t("initCharCodeToOptimizedIndexMap",()=>{kne()});let i,n=(t("Reject Lexer.NA",()=>{i=iV(e,e=>e[Tne]===Zne.NA)}),!1),s;t("Transform Patterns",()=>{n=!1,s=v(i,e=>{var t,e=e[Tne];if(vq(e))return 1!==(t=e.source).length||"^"===t||"$"===t||"."===t||e.ignoreCase?2!==t.length||"\\"!==t[0]||sq(["d","D","s","S","t","r","n","t","0","c","b","B","f","v","w","W"],t[1])?(r.useSticky?une:hne)(e):t[1]:t;if(N6(e))return n=!0,{exec:e};if("object"==typeof e)return n=!0,e;if("string"==typeof e)return 1===e.length?e:(t=e.replace(/[\\^$.*+?()[\]{}|]/g,"\\$&"),e=new RegExp(t),(r.useSticky?une:hne)(e));throw Error("non exhaustive match")})});let a,o,l,c,h;t("misc mapping",()=>{a=v(i,e=>e.tokenTypeIdx),o=v(i,e=>{e=e.GROUP;if(e!==Zne.SKIPPED){if(XU(e))return e;if(Tq(e))return!1;throw Error("non exhaustive match")}}),l=v(i,e=>{e=e.LONGER_ALT;if(e)return sT(e)?v(e,e=>cq(i,e)):[cq(i,e)]}),c=v(i,e=>e.PUSH_MODE),h=v(i,e=>VU(e,"POP_MODE"))});let u;t("Line Terminator Handling",()=>{let t=vne(r.lineTerminatorCharacters);u=v(i,e=>!1),"onlyOffset"!==r.positionTracking&&(u=v(i,e=>VU(e,"LINE_BREAKS")?!!e.LINE_BREAKS:!1===yne(e,t)&&qie(t,e.PATTERN)))});let d,p,g,f,m=(t("Misc Mapping #2",()=>{d=v(i,fne),p=v(s,mne),g=JW(i,(e,t)=>{t=t.GROUP;return XU(t)&&t!==Zne.SKIPPED&&(e[t]=[]),e},{}),f=v(s,(e,t)=>({pattern:s[t],longerAlt:l[t],canLineTerminator:u[t],isCustom:d[t],short:p[t],group:o[t],push:c[t],pop:h[t],tokenTypeIdx:a[t],tokenType:i[t]}))}),!0),y=[];return r.safeMode||t("First Char Optimization",()=>{y=JW(i,(i,e,n)=>{if("string"==typeof e.PATTERN){var t=wne(e.PATTERN.charCodeAt(0));xne(i,t,f[n])}else if(sT(e.START_CHARS_HINT)){let t;b(e.START_CHARS_HINT,e=>{e=wne("string"==typeof e?e.charCodeAt(0):e);t!==e&&(t=e,xne(i,e,f[n]))})}else vq(e.PATTERN)?e.PATTERN.unicode?(m=!1,r.ensureOptimizations&&zte(`${Vie} Unable to analyze < ${e.PATTERN.toString()} > pattern.
|
||
The regexp unicode flag is not currently supported by the regexp-to-ast library.
|
||
This will disable the lexer's first char optimizations.
|
||
For details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#UNICODE_OPTIMIZE`)):(t=Bie(e.PATTERN,r.ensureOptimizations),gq(t)&&(m=!1),b(t,e=>{xne(i,e,f[n])})):(r.ensureOptimizations&&zte(`${Vie} TokenType: <${e.name}> is using a custom token pattern without providing <start_chars_hint> parameter.
|
||
This will disable the lexer's first char optimizations.
|
||
For details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#CUSTOM_OPTIMIZE`),m=!1);return i},[])}),{emptyGroups:g,patternIdxToConfig:f,charCodeToPatternIdxToConfig:y,hasCustom:n,canBeOptimized:m}}function Kie(e,t){let i=[],n=Qie(e);i=i.concat(n.errors);var e=Jie(n.valid),r=e.valid;return i=(i=(i=(i=(i=i.concat(e.errors)).concat(Zie(r))).concat(sne(r))).concat(ane(r,t))).concat(one(r))}function Zie(e){let t=[],i=nU(e,e=>vq(e[Tne]));return t=(t=(t=(t=(t=t.concat(ene(i))).concat(ine(i))).concat(nne(i))).concat(rne(i))).concat(tne(i))}function Qie(e){var t=nU(e,e=>!VU(e,Tne));return{errors:v(t,e=>({message:"Token Type: ->"+e.name+"<- missing static 'PATTERN' property",type:Xne.MISSING_PATTERN,tokenTypes:[e]})),valid:CH(e,t)}}function Jie(e){var t=nU(e,e=>{e=e[Tne];return!(vq(e)||N6(e)||VU(e,"exec")||XU(e))});return{errors:v(t,e=>({message:"Token Type: ->"+e.name+"<- static 'PATTERN' can only be a RegExp, a Function matching the {CustomPatternMatcherFunc} type or an Object matching the {ICustomPattern} interface.",type:Xne.INVALID_PATTERN,tokenTypes:[e]})),valid:CH(e,t)}}function ene(e){class n extends Mee{static{mt(this,"EndAnchorFinder")}constructor(){super(...arguments),this.found=!1}visitEndAnchor(e){this.found=!0}}e=nU(e,e=>{e=e.PATTERN;try{var t=Iie(e),i=new n;return i.visit(t),i.found}catch{return Ane.test(e.source)}});return v(e,e=>({message:`Unexpected RegExp Anchor Error:
|
||
Token Type: ->`+e.name+`<- static 'PATTERN' cannot contain end of input anchor '$'
|
||
See chevrotain.io/docs/guide/resolving_lexer_errors.html#ANCHORS for details.`,type:Xne.EOI_ANCHOR_FOUND,tokenTypes:[e]}))}function tne(e){e=nU(e,e=>e.PATTERN.test(""));return v(e,e=>({message:"Token Type: ->"+e.name+"<- static 'PATTERN' must not match an empty string",type:Xne.EMPTY_MATCH_PATTERN,tokenTypes:[e]}))}function ine(e){class n extends Mee{static{mt(this,"StartAnchorFinder")}constructor(){super(...arguments),this.found=!1}visitStartAnchor(e){this.found=!0}}e=nU(e,e=>{e=e.PATTERN;try{var t=Iie(e),i=new n;return i.visit(t),i.found}catch{return Ene.test(e.source)}});return v(e,e=>({message:`Unexpected RegExp Anchor Error:
|
||
Token Type: ->`+e.name+`<- static 'PATTERN' cannot contain start of input anchor '^'
|
||
See https://chevrotain.io/docs/guide/resolving_lexer_errors.html#ANCHORS for details.`,type:Xne.SOI_ANCHOR_FOUND,tokenTypes:[e]}))}function nne(e){e=nU(e,e=>{e=e[Tne];return e instanceof RegExp&&(e.multiline||e.global)});return v(e,e=>({message:"Token Type: ->"+e.name+"<- static 'PATTERN' may NOT contain global('g') or multiline('m')",type:Xne.UNSUPPORTED_FLAGS_FOUND,tokenTypes:[e]}))}function rne(e){let n=[],t=v(e,i=>JW(e,(e,t)=>(i.PATTERN.source!==t.PATTERN.source||sq(n,t)||t.PATTERN===Zne.NA||(n.push(t),e.push(t)),e),[]));t=mj(t);var i=nU(t,e=>1<e.length);return v(i,e=>{var t=v(e,e=>e.name);return{message:`The same RegExp pattern ->${mU(e).PATTERN}<-has been used in all of the following Token Types: ${t.join(", ")} <-`,type:Xne.DUPLICATE_PATTERNS_FOUND,tokenTypes:e}})}function sne(e){e=nU(e,e=>{return!!VU(e,"GROUP")&&(e=e.GROUP)!==Zne.SKIPPED&&e!==Zne.NA&&!XU(e)});return v(e,e=>({message:"Token Type: ->"+e.name+"<- static 'GROUP' can only be Lexer.SKIPPED/Lexer.NA/A String",type:Xne.INVALID_GROUP_TYPE_FOUND,tokenTypes:[e]}))}function ane(e,t){e=nU(e,e=>void 0!==e.PUSH_MODE&&!sq(t,e.PUSH_MODE));return v(e,e=>({message:`Token Type: ->${e.name}<- static 'PUSH_MODE' value cannot refer to a Lexer Mode ->${e.PUSH_MODE}<-which does not exist`,type:Xne.PUSH_MODE_DOES_NOT_EXIST,tokenTypes:[e]}))}function one(e){let s=[],t=JW(e,(e,t,i)=>{var n=t.PATTERN;return n!==Zne.NA&&(XU(n)?e.push({str:n,idx:i,tokenType:t}):vq(n)&&cne(n)&&e.push({str:n.source,idx:i,tokenType:t})),e},[]);return b(e,(n,r)=>{b(t,({str:e,idx:t,tokenType:i})=>{r<t&&lne(e,n.PATTERN)&&(t=`Token: ->${i.name}<- can never be matched.
|
||
Because it appears AFTER the Token Type ->${n.name}<-in the lexer's definition.
|
||
See https://chevrotain.io/docs/guide/resolving_lexer_errors.html#UNREACHABLE`,s.push({message:t,type:Xne.UNREACHABLE_PATTERN,tokenTypes:[n,i]}))})}),s}function lne(e,t){var i;if(vq(t))return null!==(i=t.exec(e))&&0===i.index;if(N6(t))return t(e,0,[],{});if(VU(t,"exec"))return t.exec(e,0,[],{});if("string"==typeof t)return t===e;throw Error("non exhaustive match")}function cne(t){return void 0===dU([".","\\","[","]","|","^","$","(",")","?","*","+","{"],e=>-1!==t.source.indexOf(e))}function hne(e){var t=e.ignoreCase?"i":"";return new RegExp(`^(?:${e.source})`,t)}function une(e){var t=e.ignoreCase?"iy":"y";return new RegExp(""+e.source,t)}function dne(e,t,i){let r=[];return VU(e,Sne)||r.push({message:"A MultiMode Lexer cannot be initialized without a <"+Sne+`> property in its definition
|
||
`,type:Xne.MULTI_MODE_LEXER_WITHOUT_DEFAULT_MODE}),VU(e,_ne)||r.push({message:"A MultiMode Lexer cannot be initialized without a <"+_ne+`> property in its definition
|
||
`,type:Xne.MULTI_MODE_LEXER_WITHOUT_MODES_PROPERTY}),VU(e,_ne)&&VU(e,Sne)&&!VU(e.modes,e.defaultMode)&&r.push({message:`A MultiMode Lexer cannot be initialized with a ${Sne}: <${e.defaultMode}>which does not exist
|
||
`,type:Xne.MULTI_MODE_LEXER_DEFAULT_MODE_VALUE_DOES_NOT_EXIST}),VU(e,_ne)&&b(e.modes,(i,n)=>{b(i,(t,e)=>{Tq(t)?r.push({message:`A Lexer cannot be initialized using an undefined Token Type. Mode:<${n}> at index: <${e}>
|
||
`,type:Xne.LEXER_DEFINITION_CANNOT_CONTAIN_UNDEFINED}):VU(t,"LONGER_ALT")&&(e=sT(t.LONGER_ALT)?t.LONGER_ALT:[t.LONGER_ALT],b(e,e=>{Tq(e)||sq(i,e)||r.push({message:`A MultiMode Lexer cannot be initialized with a longer_alt <${e.name}> on token <${t.name}> outside of mode <${n}>
|
||
`,type:Xne.MULTI_MODE_LEXER_LONGER_ALT_NOT_IN_CURRENT_MODE})}))})}),r}function pne(e,t,i){let n=[],r=!1,s=mj(iB(tq(e.modes))),a=iV(s,e=>e[Tne]===Zne.NA),o=vne(i);return t&&b(a,e=>{var t=yne(e,o);!1!==t?(t={message:bne(e,t),type:t.issue,tokenType:e},n.push(t)):VU(e,"LINE_BREAKS")?!0===e.LINE_BREAKS&&(r=!0):qie(o,e.PATTERN)&&(r=!0)}),t&&!r&&n.push({message:`Warning: No LINE_BREAKS Found.
|
||
This Lexer has been defined to track line and column information,
|
||
But none of the Token Types can be identified as matching a line terminator.
|
||
See https://chevrotain.io/docs/guide/resolving_lexer_errors.html#LINE_BREAKS
|
||
for details.`,type:Xne.NO_LINE_BREAKS_FLAGS}),n}function gne(i){let n={},e=uP(i);return b(e,e=>{var t=i[e];if(!sT(t))throw Error("non exhaustive match");n[e]=[]}),n}function fne(e){e=e.PATTERN;if(vq(e))return!1;if(N6(e))return!0;if(VU(e,"exec"))return!0;if(XU(e))return!1;throw Error("non exhaustive match")}function mne(e){return!(!XU(e)||1!==e.length)&&e.charCodeAt(0)}function yne(e,t){if(VU(e,"LINE_BREAKS"))return!1;if(vq(e.PATTERN)){try{qie(t,e.PATTERN)}catch(e){return{issue:Xne.IDENTIFY_TERMINATOR,errMsg:e.message}}return!1}if(XU(e.PATTERN))return!1;if(fne(e))return{issue:Xne.CUSTOM_LINE_BREAK};throw Error("non exhaustive match")}function bne(e,t){if(t.issue===Xne.IDENTIFY_TERMINATOR)return`Warning: unable to identify line terminator usage in pattern.
|
||
The problem is in the <${e.name}> Token Type
|
||
Root cause: ${t.errMsg}.
|
||
For details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#IDENTIFY_TERMINATOR`;if(t.issue===Xne.CUSTOM_LINE_BREAK)return`Warning: A Custom Token Pattern should specify the <line_breaks> option.
|
||
The problem is in the <${e.name}> Token Type
|
||
For details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#CUSTOM_LINE_BREAK`;throw Error("non exhaustive match")}function vne(e){return v(e,e=>XU(e)?e.charCodeAt(0):e)}function xne(e,t,i){void 0===e[t]?e[t]=[i]:e[t].push(i)}function wne(e){return e<Lne?e:Rne[e]}function kne(){if(gq(Rne)){Rne=new Array(65536);for(let e=0;e<65536;e++)Rne[e]=255<e?255+~~(e/255):e}}var Tne,Sne,_ne,Cne,Ane,Ene,$ne,Lne,Rne,Mne=e(()=>{"use strict";Pee(),ere(),zV(),Yte(),Yie(),Pie(),Tne="PATTERN",Sne="defaultMode",_ne="modes",Cne="boolean"==typeof new RegExp("(?:)").sticky,mt(Xie,"analyzeTokenTypes"),mt(Kie,"validatePatterns"),mt(Zie,"validateRegExpPattern"),mt(Qie,"findMissingPatterns"),mt(Jie,"findInvalidPatterns"),Ane=/[^\\][$]/,mt(ene,"findEndOfInputAnchor"),mt(tne,"findEmptyMatchRegExps"),Ene=/[^\\[][\^]|^\^/,mt(ine,"findStartOfInputAnchor"),mt(nne,"findUnsupportedFlags"),mt(rne,"findDuplicatePatterns"),mt(sne,"findInvalidGroupType"),mt(ane,"findModesThatDoNotExist"),mt(one,"findUnreachablePatterns"),mt(lne,"testTokenType"),mt(cne,"noMetaChar"),mt(hne,"addStartOfInput"),mt(une,"addStickyFlag"),mt(dne,"performRuntimeChecks"),mt(pne,"performWarningRuntimeChecks"),mt(gne,"cloneEmptyGroups"),mt(fne,"isCustomPattern"),mt(mne,"isShortPattern"),$ne={test:mt(function(t){var i=t.length;for(let e=this.lastIndex;e<i;e++){var n=t.charCodeAt(e);if(10===n)return this.lastIndex=e+1,!0;if(13===n)return 10===t.charCodeAt(e+1)?this.lastIndex=e+2:this.lastIndex=e+1,!0}return!1},"test"),lastIndex:0},mt(yne,"checkLineBreaksIssues"),mt(bne,"buildLineBreakIssueMessage"),mt(vne,"getCharCodes"),mt(xne,"addToMapOfArrays"),Lne=256,Rne=[],mt(wne,"charCodeToOptimizedIndex"),mt(kne,"initCharCodeToOptimizedIndexMap")});function Ine(e,t){e=e.tokenTypeIdx;return e===t.tokenTypeIdx||!0===t.isParent&&!0===t.categoryMatchesMap[e]}function Nne(e,t){return e.tokenTypeIdx===t.tokenTypeIdx}function Dne(e){e=One(e);Pne(e),Fne(e),Bne(e),b(e,e=>{e.isParent=0<e.categoryMatches.length})}function One(e){let t=hj(e),i=e,n=!0;for(;n;){i=mj(iB(v(i,e=>e.CATEGORIES)));var r=CH(i,t);t=t.concat(r),gq(r)?n=!1:i=r}return t}function Pne(e){b(e,e=>{zne(e)||((Gne[Vne]=e).tokenTypeIdx=Vne++),Hne(e)&&!sT(e.CATEGORIES)&&(e.CATEGORIES=[e.CATEGORIES]),Hne(e)||(e.CATEGORIES=[]),Une(e)||(e.categoryMatches=[]),qne(e)||(e.categoryMatchesMap={})})}function Bne(e){b(e,i=>{i.categoryMatches=[],b(i.categoryMatchesMap,(e,t)=>{i.categoryMatches.push(Gne[t].tokenTypeIdx)})})}function Fne(e){b(e,e=>{jne([],e)})}function jne(i,n){b(i,e=>{n.categoryMatchesMap[e.tokenTypeIdx]=!0}),b(n.CATEGORIES,e=>{var t=i.concat(n);sq(t,e)||jne(t,e)})}function zne(e){return VU(e,"tokenTypeIdx")}function Hne(e){return VU(e,"CATEGORIES")}function Une(e){return VU(e,"categoryMatches")}function qne(e){return VU(e,"categoryMatchesMap")}function Wne(e){return VU(e,"tokenTypeIdx")}var Vne,Gne,Yne,Xne,Kne,Zne,Qne=e(()=>{"use strict";zV(),mt(Ine,"tokenStructuredMatcher"),mt(Nne,"tokenStructuredMatcherNoCategories"),Vne=1,Gne={},mt(Dne,"augmentTokenTypes"),mt(One,"expandCategories"),mt(Pne,"assignTokenDefaultProps"),mt(Bne,"assignCategoriesTokensProp"),mt(Fne,"assignCategoriesMapProp"),mt(jne,"singleAssignCategoriesToksMap"),mt(zne,"hasShortKeyProperty"),mt(Hne,"hasCategoriesProperty"),mt(Une,"hasExtendingTokensTypesProperty"),mt(qne,"hasExtendingTokensTypesMapProperty"),mt(Wne,"isTokenType")}),Jne=e(()=>{"use strict";Yne={buildUnableToPopLexerModeMessage(e){return`Unable to pop Lexer Mode after encountering Token ->${e.image}<- The Mode Stack is empty`},buildUnexpectedCharactersMessage(e,t,i,n,r){return`unexpected character: ->${e.charAt(t)}<- at offset: ${t}, skipped ${i} characters.`}}}),ere=e(()=>{"use strict";var e;Mne(),zV(),Yte(),Qne(),Jne(),Pie(),(e=Xne=Xne||{})[e.MISSING_PATTERN=0]="MISSING_PATTERN",e[e.INVALID_PATTERN=1]="INVALID_PATTERN",e[e.EOI_ANCHOR_FOUND=2]="EOI_ANCHOR_FOUND",e[e.UNSUPPORTED_FLAGS_FOUND=3]="UNSUPPORTED_FLAGS_FOUND",e[e.DUPLICATE_PATTERNS_FOUND=4]="DUPLICATE_PATTERNS_FOUND",e[e.INVALID_GROUP_TYPE_FOUND=5]="INVALID_GROUP_TYPE_FOUND",e[e.PUSH_MODE_DOES_NOT_EXIST=6]="PUSH_MODE_DOES_NOT_EXIST",e[e.MULTI_MODE_LEXER_WITHOUT_DEFAULT_MODE=7]="MULTI_MODE_LEXER_WITHOUT_DEFAULT_MODE",e[e.MULTI_MODE_LEXER_WITHOUT_MODES_PROPERTY=8]="MULTI_MODE_LEXER_WITHOUT_MODES_PROPERTY",e[e.MULTI_MODE_LEXER_DEFAULT_MODE_VALUE_DOES_NOT_EXIST=9]="MULTI_MODE_LEXER_DEFAULT_MODE_VALUE_DOES_NOT_EXIST",e[e.LEXER_DEFINITION_CANNOT_CONTAIN_UNDEFINED=10]="LEXER_DEFINITION_CANNOT_CONTAIN_UNDEFINED",e[e.SOI_ANCHOR_FOUND=11]="SOI_ANCHOR_FOUND",e[e.EMPTY_MATCH_PATTERN=12]="EMPTY_MATCH_PATTERN",e[e.NO_LINE_BREAKS_FLAGS=13]="NO_LINE_BREAKS_FLAGS",e[e.UNREACHABLE_PATTERN=14]="UNREACHABLE_PATTERN",e[e.IDENTIFY_TERMINATOR=15]="IDENTIFY_TERMINATOR",e[e.CUSTOM_LINE_BREAK=16]="CUSTOM_LINE_BREAK",e[e.MULTI_MODE_LEXER_LONGER_ALT_NOT_IN_CURRENT_MODE=17]="MULTI_MODE_LEXER_LONGER_ALT_NOT_IN_CURRENT_MODE",Kne={deferDefinitionErrorsHandling:!1,positionTracking:"full",lineTerminatorsPattern:/\n|\r\n?/g,lineTerminatorCharacters:[`
|
||
`,"\r"],ensureOptimizations:!1,safeMode:!1,errorMessageProvider:Yne,traceInitPerf:!1,skipValidations:!1,recoveryEnabled:!0},Object.freeze(Kne),(Zne=class{static{mt(this,"Lexer")}constructor(r,s=Kne){if(this.lexerDefinition=r,this.lexerDefinitionErrors=[],this.lexerDefinitionWarning=[],this.patternIdxToConfig={},this.charCodeToPatternIdxToConfig={},this.modes=[],this.emptyGroups={},this.trackStartLines=!0,this.trackEndLines=!0,this.hasCustom=!1,this.canModeBeOptimized={},this.TRACE_INIT=(e,t)=>{var i,n,r,s;return!0===this.traceInitPerf?(this.traceInitIndent++,i=new Array(this.traceInitIndent+1).join("\t"),{time:n,value:r}=(this.traceInitIndent<this.traceInitMaxIdent&&console.log(i+`--> <${e}>`),qte(t)),s=10<n?console.warn:console.log,this.traceInitIndent<this.traceInitMaxIdent&&s(i+`<-- <${e}> time: ${n}ms`),this.traceInitIndent--,r):t()},"boolean"==typeof s)throw Error(`The second argument to the Lexer constructor is now an ILexerConfig Object.
|
||
a boolean 2nd argument is no longer supported`);this.config=gP({},Kne,s);var e=this.config.traceInitPerf;!0===e?(this.traceInitMaxIdent=1/0,this.traceInitPerf=!0):"number"==typeof e&&(this.traceInitMaxIdent=e,this.traceInitPerf=!0),this.traceInitIndent=-1,this.TRACE_INIT("Lexer Constructor",()=>{let i,e=!0,n=(this.TRACE_INIT("Lexer Config handling",()=>{if(this.config.lineTerminatorsPattern===Kne.lineTerminatorsPattern)this.config.lineTerminatorsPattern=$ne;else if(this.config.lineTerminatorCharacters===Kne.lineTerminatorCharacters)throw Error(`Error: Missing <lineTerminatorCharacters> property on the Lexer config.
|
||
For details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#MISSING_LINE_TERM_CHARS`);if(s.safeMode&&s.ensureOptimizations)throw Error('"safeMode" and "ensureOptimizations" flags are mutually exclusive.');this.trackStartLines=/full|onlyStart/i.test(this.config.positionTracking),this.trackEndLines=/full/i.test(this.config.positionTracking),i=sT(r)?{modes:{defaultMode:hj(r)},defaultMode:Sne}:(e=!1,hj(r))}),!1===this.config.skipValidations&&(this.TRACE_INIT("performRuntimeChecks",()=>{this.lexerDefinitionErrors=this.lexerDefinitionErrors.concat(dne(i,this.trackStartLines,this.config.lineTerminatorCharacters))}),this.TRACE_INIT("performWarningRuntimeChecks",()=>{this.lexerDefinitionWarning=this.lexerDefinitionWarning.concat(pne(i,this.trackStartLines,this.config.lineTerminatorCharacters))})),i.modes=i.modes||{},b(i.modes,(e,t)=>{i.modes[t]=iV(e,e=>Tq(e))}),uP(i.modes));var t;if(b(i.modes,(t,i)=>{this.TRACE_INIT(`Mode: <${i}> processing`,()=>{if(this.modes.push(i),!1===this.config.skipValidations&&this.TRACE_INIT("validatePatterns",()=>{this.lexerDefinitionErrors=this.lexerDefinitionErrors.concat(Kie(t,n))}),gq(this.lexerDefinitionErrors)){Dne(t);let e;this.TRACE_INIT("analyzeTokenTypes",()=>{e=Xie(t,{lineTerminatorCharacters:this.config.lineTerminatorCharacters,positionTracking:s.positionTracking,ensureOptimizations:s.ensureOptimizations,safeMode:s.safeMode,tracer:this.TRACE_INIT})}),this.patternIdxToConfig[i]=e.patternIdxToConfig,this.charCodeToPatternIdxToConfig[i]=e.charCodeToPatternIdxToConfig,this.emptyGroups=gP({},this.emptyGroups,e.emptyGroups),this.hasCustom=e.hasCustom||this.hasCustom,this.canModeBeOptimized[i]=e.canBeOptimized}})}),this.defaultMode=i.defaultMode,!gq(this.lexerDefinitionErrors)&&!this.config.deferDefinitionErrorsHandling)throw t=v(this.lexerDefinitionErrors,e=>e.message).join(`-----------------------
|
||
`),new Error(`Errors detected in definition of Lexer:
|
||
`+t);b(this.lexerDefinitionWarning,e=>{Hte(e.message)}),this.TRACE_INIT("Choosing sub-methods implementations",()=>{if(Cne?(this.chopInput=BS,this.match=this.matchWithTest):(this.updateLastIndex=OO,this.match=this.matchWithExec),e&&(this.handleModes=OO),!1===this.trackStartLines&&(this.computeNewColumn=BS),!1===this.trackEndLines&&(this.updateTokenEndLineColumnLocation=OO),/full/i.test(this.config.positionTracking))this.createTokenInstance=this.createFullToken;else if(/onlyStart/i.test(this.config.positionTracking))this.createTokenInstance=this.createStartOnlyToken;else{if(!/onlyOffset/i.test(this.config.positionTracking))throw Error(`Invalid <positionTracking> config option: "${this.config.positionTracking}"`);this.createTokenInstance=this.createOffsetOnlyToken}this.hasCustom?(this.addToken=this.addTokenUsingPush,this.handlePayload=this.handlePayloadWithCustom):(this.addToken=this.addTokenUsingMemberAccess,this.handlePayload=this.handlePayloadNoCustom)}),this.TRACE_INIT("Failed Optimization Warnings",()=>{var e=JW(this.canModeBeOptimized,(e,t,i)=>(!1===t&&e.push(i),e),[]);if(s.ensureOptimizations&&!gq(e))throw Error(`Lexer Modes: < ${e.join(", ")} > cannot be optimized.
|
||
Disable the "ensureOptimizations" lexer config flag to silently ignore this and run the lexer in an un-optimized mode.
|
||
Or inspect the console log for details on how to resolve these issues.`)}),this.TRACE_INIT("clearRegExpParserCache",()=>{Nie()}),this.TRACE_INIT("toFastProperties",()=>{Vte(this)})})}tokenize(e,t=this.defaultMode){if(gq(this.lexerDefinitionErrors))return this.tokenizeInternal(e,t);throw e=v(this.lexerDefinitionErrors,e=>e.message).join(`-----------------------
|
||
`),new Error(`Unable to Tokenize because Errors detected in definition of Lexer:
|
||
`+e)}tokenizeInternal(r,O){let e,s,t,i,n,a,o,l,c,h,P,u,d,B,p,g=r,F=g.length,f=0,m=0,j=this.hasCustom?0:Math.floor(r.length/10),y=new Array(j),b=[],v=this.trackStartLines?1:void 0,x=this.trackStartLines?1:void 0,w=gne(this.emptyGroups),z=this.trackStartLines,k=this.config.lineTerminatorsPattern,T=0,S=[],_=[],C=[],H=[];Object.freeze(H);let A;function E(){return S}function $(e){e=wne(e),e=_[e];return void 0===e?H:e}mt(E,"getPossiblePatternsSlow"),mt($,"getPossiblePatternsOptimized");var U=mt(e=>{var t;1===C.length&&void 0===e.tokenType.PUSH_MODE?(t=this.config.errorMessageProvider.buildUnableToPopLexerModeMessage(e),b.push({offset:e.startOffset,line:e.startLine,column:e.startColumn,length:e.image.length,message:t})):(C.pop(),e=LH(C),S=this.patternIdxToConfig[e],_=this.charCodeToPatternIdxToConfig[e],T=S.length,t=this.canModeBeOptimized[e]&&!1===this.config.safeMode,A=_&&t?$:E)},"pop_mode");function L(e){C.push(e),_=this.charCodeToPatternIdxToConfig[e],S=this.patternIdxToConfig[e],T=S.length,T=S.length;e=this.canModeBeOptimized[e]&&!1===this.config.safeMode;A=_&&e?$:E}mt(L,"push_mode"),L.call(this,O);let R,q=this.config.recoveryEnabled;for(;f<F;){a=null;var W=g.charCodeAt(f),V=A(W),G=V.length;for(e=0;e<G;e++){var M=(R=V[e]).pattern,Y=(o=null,R.short);if(!1!==Y?W===Y&&(a=M):!0===R.isCustom?null!==(p=M.exec(g,f,y,w))?(a=p[0],void 0!==p.payload&&(o=p.payload)):a=null:(this.updateLastIndex(M,f),a=this.match(M,r,f)),null!==a){if(void 0!==(n=R.longerAlt)){var X=n.length;for(t=0;t<X;t++){var I=S[n[t]],N=I.pattern;if(!(l=null)===I.isCustom?null!==(p=N.exec(g,f,y,w))?(i=p[0],void 0!==p.payload&&(l=p.payload)):i=null:(this.updateLastIndex(N,f),i=this.match(N,r,f)),i&&i.length>a.length){a=i,o=l,R=I;break}}}break}}if(null!==a){if(c=a.length,void 0!==(h=R.group)&&(P=R.tokenTypeIdx,u=this.createTokenInstance(a,f,P,R.tokenType,v,x,c),this.handlePayload(u,o),!1===h?m=this.addToken(y,m,u):w[h].push(u)),r=this.chopInput(r,c),f+=c,x=this.computeNewColumn(x,c),!0===z&&!0===R.canLineTerminator){let e=0,t,i;for(k.lastIndex=0;!0===(t=k.test(a))&&(i=k.lastIndex-1,e++),!0===t;);0!==e&&(v+=e,x=c-i,this.updateTokenEndLineColumnLocation(u,h,i,e,v,x,c))}this.handleModes(R,U,L,u)}else{let e=f,t=v,i=x,n=!1===q;for(;!1===n&&f<F;)for(r=this.chopInput(r,1),f++,s=0;s<T;s++){var D=S[s],K=D.pattern,Z=D.short;if(!1!==Z?g.charCodeAt(f)===Z&&(n=!0):n=!0===D.isCustom?null!==K.exec(g,f,y,w):(this.updateLastIndex(K,f),null!==K.exec(r)),!0===n)break}if(d=f-e,x=this.computeNewColumn(x,d),B=this.config.errorMessageProvider.buildUnexpectedCharactersMessage(g,e,d,t,i),b.push({offset:e,line:t,column:i,length:d,message:B}),!1===q)break}}return this.hasCustom||(y.length=m),{tokens:y,groups:w,errors:b}}handleModes(e,t,i,n){var r;!0===e.pop?(r=e.push,t(n),void 0!==r&&i.call(this,r)):void 0!==e.push&&i.call(this,e.push)}chopInput(e,t){return e.substring(t)}updateLastIndex(e,t){e.lastIndex=t}updateTokenEndLineColumnLocation(e,t,i,n,r,s,a){void 0!==t&&(i=(t=i===a-1)?-1:0,1===n&&!0==t||(e.endLine=r+i,e.endColumn=s-1-i))}computeNewColumn(e,t){return e+t}createOffsetOnlyToken(e,t,i,n){return{image:e,startOffset:t,tokenTypeIdx:i,tokenType:n}}createStartOnlyToken(e,t,i,n,r,s){return{image:e,startOffset:t,startLine:r,startColumn:s,tokenTypeIdx:i,tokenType:n}}createFullToken(e,t,i,n,r,s,a){return{image:e,startOffset:t,endOffset:t+a-1,startLine:r,endLine:r,startColumn:s,endColumn:s+a-1,tokenTypeIdx:i,tokenType:n}}addTokenUsingPush(e,t,i){return e.push(i),t}addTokenUsingMemberAccess(e,t,i){return e[t]=i,++t}handlePayloadNoCustom(e,t){}handlePayloadWithCustom(e,t){null!==t&&(e.payload=t)}matchWithTest(e,t,i){return!0===e.test(t)?t.substring(i,e.lastIndex):null}matchWithExec(e,t){e=e.exec(t);return null!==e?e[0]:null}}).SKIPPED="This marks a skipped Token pattern, this means each token identified by it willbe consumed and then thrown into oblivion, this can be used to for example to completely ignore whitespace.",Zne.NA=/NOT_APPLICABLE/});function tre(e){return ire(e)?e.LABEL:e.name}function ire(e){return XU(e.LABEL)&&""!==e.LABEL}function nre(e){return rre(e)}function rre(e){var t=e.pattern,i={};if(i.name=e.name,Tq(t)||(i.PATTERN=t),VU(e,ore))throw`The parent property is no longer supported.
|
||
See: https://github.com/chevrotain/chevrotain/issues/564#issuecomment-349062346 for details.`;return VU(e,lre)&&(i.CATEGORIES=e[lre]),Dne([i]),VU(e,cre)&&(i.LABEL=e[cre]),VU(e,hre)&&(i.GROUP=e[hre]),VU(e,dre)&&(i.POP_MODE=e[dre]),VU(e,ure)&&(i.PUSH_MODE=e[ure]),VU(e,pre)&&(i.LONGER_ALT=e[pre]),VU(e,gre)&&(i.LINE_BREAKS=e[gre]),VU(e,fre)&&(i.START_CHARS_HINT=e[fre]),i}function sre(e,t,i,n,r,s,a,o){return{image:t,startOffset:i,endOffset:n,startLine:r,endLine:s,startColumn:a,endColumn:o,tokenTypeIdx:e.tokenTypeIdx,tokenType:e}}function are(e,t){return Ine(e,t)}var ore,lre,cre,hre,ure,dre,pre,gre,fre,mre,yre,bre,vre,xre=e(()=>{"use strict";zV(),ere(),Qne(),mt(tre,"tokenLabel"),mt(ire,"hasTokenLabel"),ore="parent",lre="categories",cre="label",hre="group",ure="push_mode",dre="pop_mode",pre="longer_alt",gre="line_breaks",fre="start_chars_hint",mt(nre,"createToken"),mt(rre,"createTokenInternal"),Dne([mre=nre({name:"EOF",pattern:Zne.NA})]),mt(sre,"createTokenInstance"),mt(are,"tokenMatcher")}),wre=e(()=>{"use strict";xre(),zV(),bie(),yre={buildMismatchTokenMessage({expected:e,actual:t}){return`Expecting ${ire(e)?`--> ${tre(e)} <--`:`token of type --> ${e.name} <--`} but found --> '${t.image}' <--`},buildNotAllInputParsedMessage({firstRedundant:e}){return"Redundant input, expecting EOF but found: "+e.image},buildNoViableAltMessage({expectedPathsPerAlt:e,actual:t,customUserDescription:i}){var n="Expecting: ",t=`
|
||
but found: '`+mU(t).image+"'";return i?n+i+t:(i=JW(e,(e,t)=>e.concat(t),[]),e=v(i,e=>`[${v(e,e=>tre(e)).join(", ")}]`),n+(`one of these possible Token sequences:
|
||
`+v(e,(e,t)=>` ${t+1}. `+e).join(`
|
||
`))+t)},buildEarlyExitMessage({expectedIterationPaths:e,actual:t,customUserDescription:i}){var n="Expecting: ",t=`
|
||
but found: '`+mU(t).image+"'";return i?n+i+t:n+`expecting at least one iteration which starts with one of these possible Token sequences::
|
||
<${v(e,e=>`[${v(e,e=>tre(e)).join(",")}]`).join(" ,")}>`+t}},Object.freeze(yre),bre={buildRuleNotFoundError(e,t){return"Invalid grammar, reference to a rule which is not defined: ->"+t.nonTerminalName+`<-
|
||
inside top level rule: ->`+e.name+"<-"}},vre={buildDuplicateFoundError(e,t){function i(e){return e instanceof cie?e.terminalType.name:e instanceof eie?e.nonTerminalName:""}mt(i,"getExtraProductionArgument");let n=e.name,r=mU(t),s=r.idx,a=mie(r),o=i(r),l=0<s,c=`->${a}${l?s:""}<- ${o?`with argument: ->${o}<-`:""}
|
||
appears more than once (${t.length} times) in the top level rule: ->${n}<-.
|
||
For further details see: https://chevrotain.io/docs/FAQ.html#NUMERICAL_SUFFIXES
|
||
`;return c=(c=c.replace(/[ \t]+/g," ")).replace(/\s\s+/g,`
|
||
`)},buildNamespaceConflictError(e){return`Namespace conflict found in grammar.
|
||
The grammar has both a Terminal(Token) and a Non-Terminal(Rule) named: <${e.name}>.
|
||
To resolve this make sure each Terminal and Non-Terminal names are unique
|
||
This is easy to accomplish by using the convention that Terminal names start with an uppercase letter
|
||
and Non-Terminal names start with a lower case letter.`},buildAlternationPrefixAmbiguityError(e){var t=v(e.prefixPath,e=>tre(e)).join(", "),i=0===e.alternation.idx?"":e.alternation.idx;return`Ambiguous alternatives: <${e.ambiguityIndices.join(" ,")}> due to common lookahead prefix
|
||
in <OR${i}> inside <${e.topLevelRule.name}> Rule,
|
||
<${t}> may appears as a prefix path in all these alternatives.
|
||
See: https://chevrotain.io/docs/guide/resolving_grammar_errors.html#COMMON_PREFIX
|
||
For Further details.`},buildAlternationAmbiguityError(e){var t=v(e.prefixPath,e=>tre(e)).join(", "),i=0===e.alternation.idx?"":e.alternation.idx,i=`Ambiguous Alternatives Detected: <${e.ambiguityIndices.join(" ,")}> in <OR${i}> inside <${e.topLevelRule.name}> Rule,
|
||
<${t}> may appears as a prefix path in all these alternatives.
|
||
`;return i+=`See: https://chevrotain.io/docs/guide/resolving_grammar_errors.html#AMBIGUOUS_ALTERNATIVES
|
||
For Further details.`},buildEmptyRepetitionError(e){let t=mie(e.repetition);return 0!==e.repetition.idx&&(t+=e.repetition.idx),`The repetition <${t}> within Rule <${e.topLevelRule.name}> can never consume any tokens.
|
||
This could lead to an infinite loop.`},buildTokenNameError(e){return"deprecated"},buildEmptyAlternationError(e){return`Ambiguous empty alternative: <${e.emptyChoiceIdx+1}> in <OR${e.alternation.idx}> inside <${e.topLevelRule.name}> Rule.
|
||
Only the last alternative may be an empty alternative.`},buildTooManyAlternativesError(e){return`An Alternation cannot have more than 256 alternatives:
|
||
<OR${e.alternation.idx}> inside <${e.topLevelRule.name}> Rule.
|
||
has ${e.alternation.definition.length+1} alternatives.`},buildLeftRecursionError(e){var t=e.topLevelRule.name;return`Left Recursion found in grammar.
|
||
rule: <${t}> can be invoked from itself (directly or indirectly)
|
||
without consuming any Tokens. The grammar path that causes this is:
|
||
${t+" --\x3e "+v(e.leftRecursionPath,e=>e.name).concat([t]).join(" --\x3e ")}
|
||
To fix this refactor your grammar to remove the left recursion.
|
||
see: https://en.wikipedia.org/wiki/LL_parser#Left_factoring.`},buildInvalidRuleNameError(e){return"deprecated"},buildDuplicateRuleNameError(e){let t;return`Duplicate definition, rule: ->${t=e.topLevelRule instanceof tie?e.topLevelRule.name:e.topLevelRule}<- is already defined in the grammar: ->${e.grammarName}<-`}}});function kre(e,t){e=new Tre(e,t);return e.resolveRefs(),e.errors}var Tre,Sre=e(()=>{"use strict";Wae(),zV(),bie(),mt(kre,"resolveGrammar"),Tre=class extends hie{static{mt(this,"GastRefResolverVisitor")}constructor(e,t){super(),this.nameToTopRule=e,this.errMsgProvider=t,this.errors=[]}resolveRefs(){b(tq(this.nameToTopRule),e=>{(this.currTopLevel=e).accept(this)})}visitNonTerminal(e){var t=this.nameToTopRule[e.nonTerminalName];t?e.referencedRule=t:(t=this.errMsgProvider.buildRuleNotFoundError(this.currTopLevel,e),this.errors.push({message:t,type:Hae.UNRESOLVED_SUBRULE_REF,ruleName:this.currTopLevel.name,unresolvedRefName:e.nonTerminalName}))}}});function _re(t,i,n=[]){n=hj(n);let r=[],s=0;function a(e){return e.concat(IH(t,s+1))}function o(e){e=_re(a(e),i,n);return r.concat(e)}for(mt(a,"remainingPathWith"),mt(o,"getAlternativesForProd");n.length<i&&s<t.length;){var e=t[s];if(e instanceof iie)return o(e.definition);if(e instanceof eie)return o(e.definition);if(e instanceof nie)r=o(e.definition);else{if(e instanceof rie)return o(e.definition.concat([new aie({definition:e.definition})]));if(e instanceof sie)return o([new iie({definition:e.definition}),new aie({definition:[new cie({terminalType:e.separator})].concat(e.definition)})]);if(e instanceof oie){var l=e.definition.concat([new aie({definition:[new cie({terminalType:e.separator})].concat(e.definition)})]);r=o(l)}else if(e instanceof aie){l=e.definition.concat([new aie({definition:e.definition})]);r=o(l)}else{if(e instanceof lie)return b(e.definition,e=>{!1===gq(e.definition)&&(r=o(e.definition))}),r;if(!(e instanceof cie))throw Error("non exhaustive match");n.push(e.terminalType)}}s++}return r.push({partialPath:n,suffixDef:IH(t,s)}),r}function Cre(e,t,i,n){let r="EXIT_NONE_TERMINAL",s=[r],a="EXIT_ALTERNATIVE",o=!1,l=t.length,c=l-n-1,h=[],u=[];for(u.push({idx:-1,def:e,ruleStack:[],occurrenceStack:[]});!gq(u);){var d=u.pop();if(d===a)o&&LH(u).idx<=c&&u.pop();else{var p=d.def,g=d.idx,f=d.ruleStack,m=d.occurrenceStack;if(!gq(p)){var y=p[0];if(y===r){d={idx:g,def:IH(p),ruleStack:OH(f),occurrenceStack:OH(m)};u.push(d)}else if(y instanceof cie)if(g<l-1){var d=g+1;i(t[d],y.terminalType)&&(d={idx:d,def:IH(p),ruleStack:f,occurrenceStack:m},u.push(d))}else{if(g!==l-1)throw Error("non exhaustive match");h.push({nextTokenType:y.terminalType,nextTokenOccurrence:y.idx,ruleStack:f,occurrenceStack:m}),o=!0}else if(y instanceof eie){var d=hj(f),b=(d.push(y.nonTerminalName),hj(m)),d=(b.push(y.idx),{idx:g,def:y.definition.concat(s,IH(p)),ruleStack:d,occurrenceStack:b});u.push(d)}else if(y instanceof nie){b={idx:g,def:IH(p),ruleStack:f,occurrenceStack:m},d=(u.push(b),u.push(a),{idx:g,def:y.definition.concat(IH(p)),ruleStack:f,occurrenceStack:m});u.push(d)}else if(y instanceof rie){d=new aie({definition:y.definition,idx:y.idx}),d=y.definition.concat([d],IH(p));u.push({idx:g,def:d,ruleStack:f,occurrenceStack:m})}else if(y instanceof sie){d=new cie({terminalType:y.separator}),d=new aie({definition:[d].concat(y.definition),idx:y.idx}),d=y.definition.concat([d],IH(p));u.push({idx:g,def:d,ruleStack:f,occurrenceStack:m})}else if(y instanceof oie){d={idx:g,def:IH(p),ruleStack:f,occurrenceStack:m},d=(u.push(d),u.push(a),new cie({terminalType:y.separator})),d=new aie({definition:[d].concat(y.definition),idx:y.idx}),d=y.definition.concat([d],IH(p));u.push({idx:g,def:d,ruleStack:f,occurrenceStack:m})}else if(y instanceof aie){d={idx:g,def:IH(p),ruleStack:f,occurrenceStack:m},d=(u.push(d),u.push(a),new aie({definition:y.definition,idx:y.idx})),d=y.definition.concat([d],IH(p));u.push({idx:g,def:d,ruleStack:f,occurrenceStack:m})}else if(y instanceof lie)for(let e=y.definition.length-1;0<=e;e--){var v={idx:g,def:y.definition[e].definition.concat(IH(p)),ruleStack:f,occurrenceStack:m};u.push(v),u.push(a)}else if(y instanceof iie)u.push({idx:g,def:y.definition.concat(IH(p)),ruleStack:f,occurrenceStack:m});else{if(!(y instanceof tie))throw Error("non exhaustive match");u.push(Are(y,g,f,m))}}}}return h}function Are(e,t,i,n){i=hj(i),i.push(e.name),n=hj(n);return n.push(1),{idx:t,def:e.definition,ruleStack:i,occurrenceStack:n}}var Ere,$re,Lre,Rre,Mre,Ire,Nre=e(()=>{"use strict";zV(),Aie(),wie(),bie(),$re=class extends xie{static{mt(this,"AbstractNextPossibleTokensWalker")}constructor(e,t){super(),this.topProd=e,this.path=t,this.possibleTokTypes=[],this.nextProductionName="",this.nextProductionOccurrence=0,this.found=!1,this.isAtEndOfPath=!1}startWalking(){if(this.found=!1,this.path.ruleStack[0]!==this.topProd.name)throw Error("The path does not start with the walker's top Rule!");return this.ruleStack=hj(this.path.ruleStack).reverse(),this.occurrenceStack=hj(this.path.occurrenceStack).reverse(),this.ruleStack.pop(),this.occurrenceStack.pop(),this.updateExpectedNext(),this.walk(this.topProd),this.possibleTokTypes}walk(e,t=[]){this.found||super.walk(e,t)}walkProdRef(e,t,i){e.referencedRule.name===this.nextProductionName&&e.idx===this.nextProductionOccurrence&&(t=t.concat(i),this.updateExpectedNext(),this.walk(e.referencedRule,t))}updateExpectedNext(){gq(this.ruleStack)?(this.nextProductionName="",this.nextProductionOccurrence=0,this.isAtEndOfPath=!0):(this.nextProductionName=this.ruleStack.pop(),this.nextProductionOccurrence=this.occurrenceStack.pop())}},Ere=class extends $re{static{mt(this,"NextAfterTokenWalker")}constructor(e,t){super(e,t),this.path=t,this.nextTerminalName="",this.nextTerminalOccurrence=0,this.nextTerminalName=this.path.lastTok.name,this.nextTerminalOccurrence=this.path.lastTokOccurrence}walkTerminal(e,t,i){this.isAtEndOfPath&&e.terminalType.name===this.nextTerminalName&&e.idx===this.nextTerminalOccurrence&&!this.found&&(e=t.concat(i),t=new iie({definition:e}),this.possibleTokTypes=kie(t),this.found=!0)}},$re=class extends xie{static{mt(this,"AbstractNextTerminalAfterProductionWalker")}constructor(e,t){super(),this.topRule=e,this.occurrence=t,this.result={token:void 0,occurrence:void 0,isEndOfRule:void 0}}startWalking(){return this.walk(this.topRule),this.result}},Lre=class extends $re{static{mt(this,"NextTerminalAfterManyWalker")}walkMany(e,t,i){var n;e.idx===this.occurrence?(n=mU(t.concat(i)),this.result.isEndOfRule=void 0===n,n instanceof cie&&(this.result.token=n.terminalType,this.result.occurrence=n.idx)):super.walkMany(e,t,i)}},Rre=class extends $re{static{mt(this,"NextTerminalAfterManySepWalker")}walkManySep(e,t,i){var n;e.idx===this.occurrence?(n=mU(t.concat(i)),this.result.isEndOfRule=void 0===n,n instanceof cie&&(this.result.token=n.terminalType,this.result.occurrence=n.idx)):super.walkManySep(e,t,i)}},Mre=class extends $re{static{mt(this,"NextTerminalAfterAtLeastOneWalker")}walkAtLeastOne(e,t,i){var n;e.idx===this.occurrence?(n=mU(t.concat(i)),this.result.isEndOfRule=void 0===n,n instanceof cie&&(this.result.token=n.terminalType,this.result.occurrence=n.idx)):super.walkAtLeastOne(e,t,i)}},Ire=class extends $re{static{mt(this,"NextTerminalAfterAtLeastOneSepWalker")}walkAtLeastOneSep(e,t,i){var n;e.idx===this.occurrence?(n=mU(t.concat(i)),this.result.isEndOfRule=void 0===n,n instanceof cie&&(this.result.token=n.terminalType,this.result.occurrence=n.idx)):super.walkAtLeastOneSep(e,t,i)}},mt(_re,"possiblePathsFrom"),mt(Cre,"nextPossibleTokensAfter"),mt(Are,"expandTopLevelRule")});function Dre(e){if(e instanceof nie||"Option"===e)return Kre.OPTION;if(e instanceof aie||"Repetition"===e)return Kre.REPETITION;if(e instanceof rie||"RepetitionMandatory"===e)return Kre.REPETITION_MANDATORY;if(e instanceof sie||"RepetitionMandatoryWithSeparator"===e)return Kre.REPETITION_MANDATORY_WITH_SEPARATOR;if(e instanceof oie||"RepetitionWithSeparator"===e)return Kre.REPETITION_WITH_SEPARATOR;if(e instanceof lie||"Alternation"===e)return Kre.ALTERNATION;throw Error("non exhaustive match")}function Ore(e){var{occurrence:e,rule:t,prodType:i,maxLookahead:n}=e,i=Dre(i);return i===Kre.ALTERNATION?Wre(e,t,n):Vre(e,t,i,n)}function Pre(e,t,i,n,r,s){e=Wre(e,t,i);return s(e,n,Xre(e)?Nne:Ine,r)}function Bre(e,t,i,n,r,s){e=Vre(e,t,r,i),t=Xre(e)?Nne:Ine;return s(e[0],t,n)}function Fre(c,e,h,t){let u=c.length,i=ZH(c,e=>ZH(e,e=>1===e.length));if(e)return function(e){var i=v(e,e=>e.GATE);for(let t=0;t<u;t++){var n=c[t],r=n.length,s=i[t];if(void 0===s||!1!==s.call(this))e:for(let e=0;e<r;e++){var a=n[e],o=a.length;for(let e=0;e<o;e++){var l=this.LA(e+1);if(!1===h(l,a[e]))continue e}return t}}};if(!i||t)return function(){for(let t=0;t<u;t++){var i=c[t],n=i.length;e:for(let e=0;e<n;e++){var r=i[e],s=r.length;for(let e=0;e<s;e++){var a=this.LA(e+1);if(!1===h(a,r[e]))continue e}return t}}};{let e=v(c,e=>iB(e)),t=JW(e,(t,e,i)=>(b(e,e=>{VU(t,e.tokenTypeIdx)||(t[e.tokenTypeIdx]=i),b(e.categoryMatches,e=>{VU(t,e)||(t[e]=i)})}),t),{});return function(){var e=this.LA(1);return t[e.tokenTypeIdx]}}}function jre(r,s,i){let e=ZH(r,e=>1===e.length),a=r.length;if(!e||i)return function(){e:for(let e=0;e<a;e++){var t=r[e],i=t.length;for(let e=0;e<i;e++){var n=this.LA(e+1);if(!1===s(n,t[e]))continue e}return!0}return!1};i=iB(r);if(1===i.length&&gq(i[0].categoryMatches)){let e=i[0].tokenTypeIdx;return function(){return this.LA(1).tokenTypeIdx===e}}{let t=JW(i,(t,e,i)=>(t[e.tokenTypeIdx]=!0,b(e.categoryMatches,e=>{t[e]=!0}),t),[]);return function(){var e=this.LA(1);return!0===t[e.tokenTypeIdx]}}}function zre(t){var i=new Array(t);for(let e=0;e<t;e++)i[e]=[];return i}function Hre(t){let i=[""];for(let e=0;e<t.length;e++){var n=t[e],r=[];for(let e=0;e<i.length;e++){var s=i[e];r.push(s+"_"+n.tokenTypeIdx);for(let e=0;e<n.categoryMatches.length;e++){var a="_"+n.categoryMatches[e];r.push(s+a)}}i=r}return i}function Ure(t,i,n){for(let e=0;e<t.length;e++)if(e!==n){var r=t[e];for(let e=0;e<i.length;e++)if(!0===r[i[e]])return!1}return!0}function qre(e,n){let t=v(e,e=>_re([e],1)),r=zre(t.length),s=v(t,e=>{let t={};return b(e,e=>{e=Hre(e.partialPath);b(e,e=>{t[e]=!0})}),t}),a=t;for(let i=1;i<=n;i++){var o=a;a=zre(o.length);for(let t=0;t<o.length;t++){var l=o[t];for(let e=0;e<l.length;e++){var c=l[e].partialPath,h=l[e].suffixDef,u=Hre(c);if(Ure(s,u,t)||gq(h)||c.length===n){var d=r[t];if(!1===Gre(d,c)){d.push(c);for(let e=0;e<u.length;e++){var p=u[e];s[t][p]=!0}}}else{d=_re(h,i+1,c);a[t]=a[t].concat(d),b(d,e=>{e=Hre(e.partialPath);b(e,e=>{s[t][e]=!0})})}}}}return r}function Wre(e,t,i,n){e=new Qre(e,Kre.ALTERNATION,n);return t.accept(e),qre(e.result,i)}function Vre(e,t,i,n){var r=new Qre(e,i),r=(t.accept(r),r.result),t=new Zre(t,e,i).startWalking();return qre([new iie({definition:r}),new iie({definition:t})],n)}function Gre(t,i){e:for(let e=0;e<t.length;e++){var n=t[e];if(n.length===i.length){for(let e=0;e<n.length;e++){var r=i[e],s=n[e];if(!1==(r===s||void 0!==s.categoryMatchesMap[r.tokenTypeIdx]))continue e}return!0}}return!1}function Yre(e,i){return e.length<i.length&&ZH(e,(e,t)=>{t=i[t];return e===t||t.categoryMatchesMap[e.tokenTypeIdx]})}function Xre(e){return ZH(e,e=>ZH(e,e=>ZH(e,e=>gq(e.categoryMatches))))}var Kre,Zre,Qre,Jre=e(()=>{"use strict";var e;zV(),Nre(),wie(),Qne(),bie(),(e=Kre=Kre||{})[e.OPTION=0]="OPTION",e[e.REPETITION=1]="REPETITION",e[e.REPETITION_MANDATORY=2]="REPETITION_MANDATORY",e[e.REPETITION_MANDATORY_WITH_SEPARATOR=3]="REPETITION_MANDATORY_WITH_SEPARATOR",e[e.REPETITION_WITH_SEPARATOR=4]="REPETITION_WITH_SEPARATOR",e[e.ALTERNATION=5]="ALTERNATION",mt(Dre,"getProdType"),mt(Ore,"getLookaheadPaths"),mt(Pre,"buildLookaheadFuncForOr"),mt(Bre,"buildLookaheadFuncForOptionalProd"),mt(Fre,"buildAlternativesLookAheadFunc"),mt(jre,"buildSingleAlternativeLookaheadFunction"),Zre=class extends xie{static{mt(this,"RestDefinitionFinderWalker")}constructor(e,t,i){super(),this.topProd=e,this.targetOccurrence=t,this.targetProdType=i}startWalking(){return this.walk(this.topProd),this.restDef}checkIsTarget(e,t,i,n){return e.idx===this.targetOccurrence&&this.targetProdType===t&&(this.restDef=i.concat(n),!0)}walkOption(e,t,i){this.checkIsTarget(e,Kre.OPTION,t,i)||super.walkOption(e,t,i)}walkAtLeastOne(e,t,i){this.checkIsTarget(e,Kre.REPETITION_MANDATORY,t,i)||super.walkOption(e,t,i)}walkAtLeastOneSep(e,t,i){this.checkIsTarget(e,Kre.REPETITION_MANDATORY_WITH_SEPARATOR,t,i)||super.walkOption(e,t,i)}walkMany(e,t,i){this.checkIsTarget(e,Kre.REPETITION,t,i)||super.walkOption(e,t,i)}walkManySep(e,t,i){this.checkIsTarget(e,Kre.REPETITION_WITH_SEPARATOR,t,i)||super.walkOption(e,t,i)}},Qre=class extends hie{static{mt(this,"InsideDefinitionFinderVisitor")}constructor(e,t,i){super(),this.targetOccurrence=e,this.targetProdType=t,this.targetRef=i,this.result=[]}checkIsTarget(e,t){e.idx!==this.targetOccurrence||this.targetProdType!==t||void 0!==this.targetRef&&e!==this.targetRef||(this.result=e.definition)}visitOption(e){this.checkIsTarget(e,Kre.OPTION)}visitRepetition(e){this.checkIsTarget(e,Kre.REPETITION)}visitRepetitionMandatory(e){this.checkIsTarget(e,Kre.REPETITION_MANDATORY)}visitRepetitionMandatoryWithSeparator(e){this.checkIsTarget(e,Kre.REPETITION_MANDATORY_WITH_SEPARATOR)}visitRepetitionWithSeparator(e){this.checkIsTarget(e,Kre.REPETITION_WITH_SEPARATOR)}visitAlternation(e){this.checkIsTarget(e,Kre.ALTERNATION)}},mt(zre,"initializeArrayOfArrays"),mt(Hre,"pathToHashKeys"),mt(Ure,"isUniquePrefixHash"),mt(qre,"lookAheadSequenceFromAlternatives"),mt(Wre,"getLookaheadPathsForOr"),mt(Vre,"getLookaheadPathsForOptionalProd"),mt(Gre,"containsPath"),mt(Yre,"isStrictPrefixOfPath"),mt(Xre,"areTokenCategoriesNotUsed")});function ese(e){e=e.lookaheadStrategy.validate({rules:e.rules,tokenTypes:e.tokenTypes,grammarName:e.grammarName});return v(e,e=>Object.assign({type:Hae.CUSTOM_LOOKAHEAD_VALIDATION},e))}function tse(t,e,i,n){var r=_U(t,e=>ise(e,i)),e=fse(t,e,i),s=_U(t,e=>use(e,i)),a=_U(t,e=>sse(e,t,n,i));return r.concat(e,s,a)}function ise(n,r){var e=new mse,e=(n.accept(e),e.allProductions),e=NU(e,nse),e=Jq(e,e=>1<e.length);return v(tq(e),e=>{var t=mU(e),e=r.buildDuplicateFoundError(n,e),i=mie(t),e={message:e,type:Hae.DUPLICATE_PRODUCTIONS,ruleName:n.name,dslName:i,occurrence:t.idx},i=rse(t);return i&&(e.parameter=i),e})}function nse(e){return`${mie(e)}_#_${e.idx}_#_`+rse(e)}function rse(e){return e instanceof cie?e.terminalType.name:e instanceof eie?e.nonTerminalName:""}function sse(i,e,t,n){var r=[];return 1<JW(e,(e,t)=>t.name===i.name?e+1:e,0)&&(e=n.buildDuplicateRuleNameError({topLevelRule:i,grammarName:t}),r.push({message:e,type:Hae.DUPLICATE_RULE_NAME,ruleName:i.name})),r}function ase(e,t,i){var n=[];return sq(t,e)||n.push({message:`Invalid rule override, rule: ->${e}<- cannot be overridden in the grammar: ->${i}<-as it is not defined in any of the super grammars `,type:Hae.INVALID_RULE_OVERRIDE,ruleName:e}),n}function ose(i,e,n,r=[]){var t,s=[],e=lse(e.definition);return gq(e)?[]:(t=i.name,sq(e,i)&&s.push({message:n.buildLeftRecursionError({topLevelRule:i,leftRecursionPath:r}),type:Hae.LEFT_RECURSION,ruleName:t}),t=CH(e,r.concat([i])),e=_U(t,e=>{var t=hj(r);return t.push(e),ose(i,e,n,t)}),s.concat(e))}function lse(e){let t=[];if(gq(e))return t;var i=mU(e);if(i instanceof eie)t.push(i.referencedRule);else if(i instanceof iie||i instanceof nie||i instanceof rie||i instanceof sie||i instanceof oie||i instanceof aie)t=t.concat(lse(i.definition));else if(i instanceof lie)t=iB(v(i.definition,e=>lse(e.definition)));else if(!(i instanceof cie))throw Error("non exhaustive match");var i=gie(i),n=1<e.length;return i&&n?(i=IH(e),t.concat(lse(i))):t}function cse(n,r){var e=new yse,e=(n.accept(e),e.alternations);return _U(e,i=>{var e=OH(i.definition);return _U(e,(e,t)=>{e=Cre([e],[],Ine,1);return gq(e)?[{message:r.buildEmptyAlternationError({topLevelRule:n,alternation:i,emptyChoiceIdx:t}),type:Hae.NONE_LAST_EMPTY_ALT,ruleName:n.name,occurrence:i.idx,alternative:t+1}]:[]})})}function hse(n,r,s){var e=new yse,e=(n.accept(e),e.alternations),e=iV(e,e=>!0===e.ignoreAmbiguities);return _U(e,e=>{var t=e.idx,i=e.maxLookahead||r,t=Wre(t,n,i,e),i=pse(t,e,n,s),t=gse(t,e,n,s);return i.concat(t)})}function use(t,i){var e=new yse,e=(t.accept(e),e.alternations);return _U(e,e=>255<e.definition.length?[{message:i.buildTooManyAlternativesError({topLevelRule:t,alternation:e}),type:Hae.TOO_MANY_ALTS,ruleName:t.name,occurrence:e.idx}]:[])}function dse(e,r,s){let a=[];return b(e,n=>{var e=new bse,e=(n.accept(e),e.allProductions);b(e,e=>{var t=Dre(e),i=e.maxLookahead||r,t=Vre(e.idx,n,t,i)[0];gq(iB(t))&&(i=s.buildEmptyRepetitionError({topLevelRule:n,repetition:e}),a.push({message:i,type:Hae.NO_NON_EMPTY_LOOKAHEAD,ruleName:n.name}))})}),a}function pse(s,a,i,n){let o=[],e=JW(s,(e,t,r)=>(!0!==a.definition[r].ignoreAmbiguities&&b(t,i=>{let n=[r];b(s,(e,t)=>{r!==t&&Gre(e,i)&&!0!==a.definition[t].ignoreAmbiguities&&n.push(t)}),1<n.length&&!Gre(o,i)&&(o.push(i),e.push({alts:n,path:i}))}),e),[]);return v(e,e=>{var t=v(e.alts,e=>e+1);return{message:n.buildAlternationAmbiguityError({topLevelRule:i,alternation:a,ambiguityIndices:t,prefixPath:e.path}),type:Hae.AMBIGUOUS_ALTS,ruleName:i.name,occurrence:a.idx,alternatives:e.alts}})}function gse(e,r,s,a){let o=JW(e,(e,t,i)=>{t=v(t,e=>({idx:i,path:e}));return e.concat(t)},[]);return mj(_U(o,e=>{if(!0===r.definition[e.idx].ignoreAmbiguities)return[];let n=e.idx,t=e.path,i=nU(o,e=>!0!==r.definition[e.idx].ignoreAmbiguities&&e.idx<n&&Yre(e.path,t));return v(i,e=>{var t=[e.idx+1,n+1],i=0===r.idx?"":r.idx;return{message:a.buildAlternationPrefixAmbiguityError({topLevelRule:s,alternation:r,ambiguityIndices:t,prefixPath:e.path}),type:Hae.AMBIGUOUS_PREFIX_ALTS,ruleName:s.name,occurrence:i,alternatives:t}})}))}function fse(e,t,i){let n=[],r=v(t,e=>e.name);return b(e,e=>{var t=e.name;sq(r,t)&&(e=i.buildNamespaceConflictError(e),n.push({message:e,type:Hae.CONFLICT_TOKENS_RULES_NAMESPACE,ruleName:t}))}),n}var mse,yse,bse,vse=e(()=>{"use strict";zV(),Wae(),bie(),Jre(),Nre(),Qne(),mt(ese,"validateLookahead"),mt(tse,"validateGrammar"),mt(ise,"validateDuplicateProductions"),mt(nse,"identifyProductionForDuplicates"),mt(rse,"getExtraProductionArgument"),mse=class extends hie{static{mt(this,"OccurrenceValidationCollector")}constructor(){super(...arguments),this.allProductions=[]}visitNonTerminal(e){this.allProductions.push(e)}visitOption(e){this.allProductions.push(e)}visitRepetitionWithSeparator(e){this.allProductions.push(e)}visitRepetitionMandatory(e){this.allProductions.push(e)}visitRepetitionMandatoryWithSeparator(e){this.allProductions.push(e)}visitRepetition(e){this.allProductions.push(e)}visitAlternation(e){this.allProductions.push(e)}visitTerminal(e){this.allProductions.push(e)}},mt(sse,"validateRuleDoesNotAlreadyExist"),mt(ase,"validateRuleIsOverridden"),mt(ose,"validateNoLeftRecursion"),mt(lse,"getFirstNoneTerminal"),yse=class extends hie{static{mt(this,"OrCollector")}constructor(){super(...arguments),this.alternations=[]}visitAlternation(e){this.alternations.push(e)}},mt(cse,"validateEmptyOrAlternative"),mt(hse,"validateAmbiguousAlternationAlternatives"),bse=class extends hie{static{mt(this,"RepetitionCollector")}constructor(){super(...arguments),this.allProductions=[]}visitRepetitionWithSeparator(e){this.allProductions.push(e)}visitRepetitionMandatory(e){this.allProductions.push(e)}visitRepetitionMandatoryWithSeparator(e){this.allProductions.push(e)}visitRepetition(e){this.allProductions.push(e)}},mt(use,"validateTooManyAlts"),mt(dse,"validateSomeNonEmptyLookaheadPath"),mt(pse,"checkAlternativesAmbiguities"),mt(gse,"checkPrefixAlternativesAmbiguities"),mt(fse,"checkTerminalAndNoneTerminalsNameSpace")});function xse(e){let t=mH(e,{errMsgProvider:bre}),i={};return b(e.rules,e=>{i[e.name]=e}),kre(i,t.errMsgProvider)}function wse(e){return tse((e=mH(e,{errMsgProvider:vre})).rules,e.tokenTypes,e.errMsgProvider,e.grammarName)}var kse=e(()=>{"use strict";zV(),Sre(),vse(),wre(),mt(xse,"resolveGrammar"),mt(wse,"validateGrammar")});function Tse(e){return sq(Ese,e.name)}var Sse,_se,Cse,Ase,Ese,$se,Lse,Rse,Mse,Ise,Nse=e(()=>{"use strict";zV(),Ese=[Sse="MismatchedTokenException",_se="NoViableAltException",Cse="EarlyExitException",Ase="NotAllInputParsedException"],Object.freeze(Ese),mt(Tse,"isRecognitionException"),$se=class extends Error{static{mt(this,"RecognitionException")}constructor(e,t){super(e),this.token=t,this.resyncedTokens=[],Object.setPrototypeOf(this,new.target.prototype),Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)}},Lse=class extends $se{static{mt(this,"MismatchedTokenException")}constructor(e,t,i){super(e,t),this.previousToken=i,this.name=Sse}},Rse=class extends $se{static{mt(this,"NoViableAltException")}constructor(e,t,i){super(e,t),this.previousToken=i,this.name=_se}},Mse=class extends $se{static{mt(this,"NotAllInputParsedException")}constructor(e,t){super(e,t),this.name=Ase}},Ise=class extends $se{static{mt(this,"EarlyExitException")}constructor(e,t,i){super(e,t),this.previousToken=i,this.name=Cse}}});function Dse(e,t,i,n,r,s,a){let o=this.getKeyForAutomaticLookahead(n,r),l=this.firstAfterRepMap[o];void 0===l&&(n=this.getCurrRuleFullName(),n=this.getGAstProductions()[n],l=new s(n,r).startWalking(),this.firstAfterRepMap[o]=l);let c=l.token,h=l.occurrence,u=l.isEndOfRule;1===this.RULE_STACK.length&&u&&void 0===c&&(c=mre,h=1),void 0!==c&&void 0!==h&&this.shouldInRepetitionRecoveryBeTried(c,h,a)&&this.tryInRepetitionRecovery(e,t,i,c)}var Ose,Pse,Bse,Fse,jse=e(()=>{"use strict";xre(),zV(),Nse(),Eie(),Wae(),Ose={},Pse="InRuleRecoveryException",Bse=class extends Error{static{mt(this,"InRuleRecoveryException")}constructor(e){super(e),this.name=Pse}},Fse=class{static{mt(this,"Recoverable")}initRecoverable(e){this.firstAfterRepMap={},this.resyncFollows={},this.recoveryEnabled=(VU(e,"recoveryEnabled")?e:jae).recoveryEnabled,this.recoveryEnabled&&(this.attemptInRepetitionRecovery=Dse)}getTokenToInsert(e){e=sre(e,"",NaN,NaN,NaN,NaN,NaN,NaN);return e.isInsertedInRecovery=!0,e}canTokenTypeBeInsertedInRecovery(e){return!0}canTokenTypeBeDeletedInRecovery(e){return!0}tryInRepetitionRecovery(e,t,i,n){let r=this.findReSyncTokenType(),s=this.exportLexerState(),a=[],o=!1,l=this.LA(1),c=this.LA(1),h=mt(()=>{var e=this.LA(0),e=this.errorMessageProvider.buildMismatchTokenMessage({expected:n,actual:l,previous:e,ruleName:this.getCurrRuleFullName()}),e=new Lse(e,l,this.LA(0));e.resyncedTokens=OH(a),this.SAVE_ERROR(e)},"generateErrorMessage");for(;!o;){if(this.tokenMatcher(c,n))return void h();if(i.call(this))return h(),void e.apply(this,t);this.tokenMatcher(c,r)?o=!0:(c=this.SKIP_TOKEN(),this.addToResyncTokens(c,a))}this.importLexerState(s)}shouldInRepetitionRecoveryBeTried(e,t,i){return!(!1===i||this.tokenMatcher(this.LA(1),e)||this.isBackTracking()||this.canPerformInRuleRecovery(e,this.getFollowsForInRuleRecovery(e,t)))}getFollowsForInRuleRecovery(e,t){e=this.getCurrentGrammarPath(e,t);return this.getNextPossibleTokenTypes(e)}tryInRuleRecovery(e,t){if(this.canRecoverWithSingleTokenInsertion(e,t))return this.getTokenToInsert(e);if(this.canRecoverWithSingleTokenDeletion(e))return t=this.SKIP_TOKEN(),this.consumeToken(),t;throw new Bse("sad sad panda")}canPerformInRuleRecovery(e,t){return this.canRecoverWithSingleTokenInsertion(e,t)||this.canRecoverWithSingleTokenDeletion(e)}canRecoverWithSingleTokenInsertion(e,t){if(!this.canTokenTypeBeInsertedInRecovery(e)||gq(t))return!1;let i=this.LA(1);return void 0!==dU(t,e=>this.tokenMatcher(i,e))}canRecoverWithSingleTokenDeletion(e){return!!this.canTokenTypeBeDeletedInRecovery(e)&&this.tokenMatcher(this.LA(2),e)}isInCurrentRuleReSyncSet(e){var t=this.getCurrFollowKey(),t=this.getFollowSetFromFollowKey(t);return sq(t,e)}findReSyncTokenType(){let e=this.flattenFollowSet(),t=this.LA(1),i=2;for(;;){var n=dU(e,e=>are(t,e));if(void 0!==n)return n;t=this.LA(i),i++}}getCurrFollowKey(){var e,t,i;return 1===this.RULE_STACK.length?Ose:(e=this.getLastExplicitRuleShortName(),t=this.getLastExplicitRuleOccurrenceIndex(),i=this.getPreviousExplicitRuleShortName(),{ruleName:this.shortRuleNameToFullName(e),idxInCallingRule:t,inRule:this.shortRuleNameToFullName(i)})}buildFullFollowKeyStack(){let i=this.RULE_STACK,n=this.RULE_OCCURRENCE_STACK;return v(i,(e,t)=>0===t?Ose:{ruleName:this.shortRuleNameToFullName(e),idxInCallingRule:n[t],inRule:this.shortRuleNameToFullName(i[t-1])})}flattenFollowSet(){var e=v(this.buildFullFollowKeyStack(),e=>this.getFollowSetFromFollowKey(e));return iB(e)}getFollowSetFromFollowKey(e){return e===Ose?[mre]:(e=e.ruleName+e.idxInCallingRule+Cie+e.inRule,this.resyncFollows[e])}addToResyncTokens(e,t){return this.tokenMatcher(e,mre)||t.push(e),t}reSyncTo(e){let t=[],i=this.LA(1);for(;!1===this.tokenMatcher(i,e);)i=this.SKIP_TOKEN(),this.addToResyncTokens(i,t);return OH(t)}attemptInRepetitionRecovery(e,t,i,n,r,s,a){}getCurrentGrammarPath(e,t){return{ruleStack:this.getHumanReadableRuleStack(),occurrenceStack:hj(this.RULE_OCCURRENCE_STACK),lastTok:e,lastTokOccurrence:t}}getHumanReadableRuleStack(){return v(this.RULE_STACK,e=>this.shortRuleNameToFullName(e))}},mt(Dse,"attemptInRepetitionRecovery")});function zse(e,t,i){return i|t|e}var Hse,Use=e(()=>{"use strict";mt(zse,"getKeyForAutomaticLookahead")}),qse=e(()=>{"use strict";zV(),wre(),Wae(),vse(),Jre(),Hse=class{static{mt(this,"LLkLookaheadStrategy")}constructor(e){this.maxLookahead=null!=(e=e?.maxLookahead)?e:jae.maxLookahead}validate(e){var t,i,n=this.validateNoLeftRecursion(e.rules);return gq(n)?(t=this.validateEmptyOrAlternatives(e.rules),i=this.validateAmbiguousAlternationAlternatives(e.rules,this.maxLookahead),e=this.validateSomeNonEmptyLookaheadPath(e.rules,this.maxLookahead),[...n,...t,...i,...e]):n}validateNoLeftRecursion(e){return _U(e,e=>ose(e,e,vre))}validateEmptyOrAlternatives(e){return _U(e,e=>cse(e,vre))}validateAmbiguousAlternationAlternatives(e,t){return _U(e,e=>hse(e,t,vre))}validateSomeNonEmptyLookaheadPath(e,t){return dse(e,t,vre)}buildLookaheadForAlternation(e){return Pre(e.prodOccurrence,e.rule,e.maxLookahead,e.hasPredicates,e.dynamicTokensEnabled,Fre)}buildLookaheadForOptional(e){return Bre(e.prodOccurrence,e.rule,e.maxLookahead,e.dynamicTokensEnabled,Dre(e.prodType),jre)}}});function Wse(e){Yse.reset(),e.accept(Yse);e=Yse.dslMethods;return Yse.reset(),e}var Vse,Gse,Yse,Xse=e(()=>{"use strict";zV(),Wae(),Use(),bie(),qse(),Vse=class{static{mt(this,"LooksAhead")}initLooksAhead(e){this.dynamicTokensEnabled=(VU(e,"dynamicTokensEnabled")?e:jae).dynamicTokensEnabled,this.maxLookahead=(VU(e,"maxLookahead")?e:jae).maxLookahead,this.lookaheadStrategy=VU(e,"lookaheadStrategy")?e.lookaheadStrategy:new Hse({maxLookahead:this.maxLookahead}),this.lookAheadFuncsCache=new Map}preComputeLookaheadFunctions(e){b(e,a=>{this.TRACE_INIT(a.name+" Rule Lookahead",()=>{var{alternation:e,repetition:t,option:i,repetitionMandatory:n,repetitionMandatoryWithSeparator:r,repetitionWithSeparator:s}=Wse(a);b(e,i=>{var e=0===i.idx?"":i.idx;this.TRACE_INIT(""+mie(i)+e,()=>{var e=this.lookaheadStrategy.buildLookaheadForAlternation({prodOccurrence:i.idx,rule:a,maxLookahead:i.maxLookahead||this.maxLookahead,hasPredicates:i.hasPredicates,dynamicTokensEnabled:this.dynamicTokensEnabled}),t=zse(this.fullRuleNameToShort[a.name],256,i.idx);this.setLaFuncCache(t,e)})}),b(t,e=>{this.computeLookaheadFunc(a,e.idx,768,"Repetition",e.maxLookahead,mie(e))}),b(i,e=>{this.computeLookaheadFunc(a,e.idx,512,"Option",e.maxLookahead,mie(e))}),b(n,e=>{this.computeLookaheadFunc(a,e.idx,1024,"RepetitionMandatory",e.maxLookahead,mie(e))}),b(r,e=>{this.computeLookaheadFunc(a,e.idx,1536,"RepetitionMandatoryWithSeparator",e.maxLookahead,mie(e))}),b(s,e=>{this.computeLookaheadFunc(a,e.idx,1280,"RepetitionWithSeparator",e.maxLookahead,mie(e))})})})}computeLookaheadFunc(i,n,r,s,a,e){this.TRACE_INIT(""+e+(0===n?"":n),()=>{var e=this.lookaheadStrategy.buildLookaheadForOptional({prodOccurrence:n,rule:i,maxLookahead:a||this.maxLookahead,dynamicTokensEnabled:this.dynamicTokensEnabled,prodType:s}),t=zse(this.fullRuleNameToShort[i.name],r,n);this.setLaFuncCache(t,e)})}getKeyForAutomaticLookahead(e,t){return zse(this.getLastExplicitRuleShortName(),e,t)}getLaFuncFromCache(e){return this.lookAheadFuncsCache.get(e)}setLaFuncCache(e,t){this.lookAheadFuncsCache.set(e,t)}},Gse=class extends hie{static{mt(this,"DslMethodsCollectorVisitor")}constructor(){super(...arguments),this.dslMethods={option:[],alternation:[],repetition:[],repetitionWithSeparator:[],repetitionMandatory:[],repetitionMandatoryWithSeparator:[]}}reset(){this.dslMethods={option:[],alternation:[],repetition:[],repetitionWithSeparator:[],repetitionMandatory:[],repetitionMandatoryWithSeparator:[]}}visitOption(e){this.dslMethods.option.push(e)}visitRepetitionWithSeparator(e){this.dslMethods.repetitionWithSeparator.push(e)}visitRepetitionMandatory(e){this.dslMethods.repetitionMandatory.push(e)}visitRepetitionMandatoryWithSeparator(e){this.dslMethods.repetitionMandatoryWithSeparator.push(e)}visitRepetition(e){this.dslMethods.repetition.push(e)}visitAlternation(e){this.dslMethods.alternation.push(e)}},Yse=new Gse,mt(Wse,"collectMethods")});function Kse(e,t){!0===isNaN(e.startOffset)?(e.startOffset=t.startOffset,e.endOffset=t.endOffset):e.endOffset<t.endOffset&&(e.endOffset=t.endOffset)}function Zse(e,t){!0===isNaN(e.startOffset)?(e.startOffset=t.startOffset,e.startColumn=t.startColumn,e.startLine=t.startLine,e.endOffset=t.endOffset,e.endColumn=t.endColumn,e.endLine=t.endLine):e.endOffset<t.endOffset&&(e.endOffset=t.endOffset,e.endColumn=t.endColumn,e.endLine=t.endLine)}function Qse(e,t,i){void 0===e.children[i]?e.children[i]=[t]:e.children[i].push(t)}function Jse(e,t,i){void 0===e.children[t]?e.children[t]=[i]:e.children[t].push(i)}var eae=e(()=>{"use strict";mt(Kse,"setNodeLocationOnlyOffset"),mt(Zse,"setNodeLocationFull"),mt(Qse,"addTerminalToCst"),mt(Jse,"addNoneTerminalToCst")});function tae(e,t){Object.defineProperty(e,iae,{enumerable:!1,configurable:!0,writable:!1,value:t})}var iae,nae=e(()=>{"use strict";iae="name",mt(tae,"defineNameProp")});function rae(t,i){var n=uP(t),r=n.length;for(let e=0;e<r;e++){var s=t[n[e]],a=s.length;for(let e=0;e<a;e++){var o=s[e];void 0===o.tokenTypeIdx&&this[o.name](o.children,i)}}}function sae(e,t){var i=mt(function(){},"derivedConstructor"),e=(tae(i,e+"BaseSemantics"),{visit:mt(function(e,t){if(sT(e)&&(e=e[0]),!Tq(e))return this[e.name](e.children,t)},"visit"),validateVisitor:mt(function(){var e=oae(this,t);if(!gq(e))throw e=v(e,e=>e.msg),Error(`Errors Detected in CST Visitor <${this.constructor.name}>:
|
||
`+e.join(`
|
||
|
||
`).replace(/\n/g,`
|
||
`))},"validateVisitor")});return i.prototype=e,(i.prototype.constructor=i)._RULE_NAMES=t,i}function aae(e,t,i){var n=mt(function(){},"derivedConstructor");tae(n,e+"BaseSemanticsWithDefaults");let r=Object.create(i.prototype);return b(t,e=>{r[e]=rae}),n.prototype=r,n.prototype.constructor=n}function oae(e,t){return lae(e,t)}function lae(t,e){e=nU(e,e=>!1===N6(t[e])),e=v(e,e=>({msg:`Missing visitor method: <${e}> on ${t.constructor.name} CST Visitor.`,type:cae.MISSING_METHOD,methodName:e}));return mj(e)}var cae,hae,uae,dae,pae,gae,fae,mae=e(()=>{"use strict";var e;zV(),nae(),mt(rae,"defaultVisit"),mt(sae,"createBaseSemanticVisitorConstructor"),mt(aae,"createBaseVisitorConstructorWithDefaults"),(e=cae=cae||{})[e.REDUNDANT_METHOD=0]="REDUNDANT_METHOD",e[e.MISSING_METHOD=1]="MISSING_METHOD",mt(oae,"validateVisitor"),mt(lae,"validateMissingCstMethods")}),yae=e(()=>{"use strict";eae(),zV(),mae(),Wae(),hae=class{static{mt(this,"TreeBuilder")}initTreeBuilder(e){if(this.CST_STACK=[],this.outputCst=e.outputCst,this.nodeLocationTracking=(VU(e,"nodeLocationTracking")?e:jae).nodeLocationTracking,this.outputCst)if(/full/i.test(this.nodeLocationTracking))this.recoveryEnabled?(this.setNodeLocationFromToken=Zse,this.setNodeLocationFromNode=Zse,this.cstPostRule=OO,this.setInitialNodeLocation=this.setInitialNodeLocationFullRecovery):(this.setNodeLocationFromToken=OO,this.setNodeLocationFromNode=OO,this.cstPostRule=this.cstPostRuleFull,this.setInitialNodeLocation=this.setInitialNodeLocationFullRegular);else if(/onlyOffset/i.test(this.nodeLocationTracking))this.recoveryEnabled?(this.setNodeLocationFromToken=Kse,this.setNodeLocationFromNode=Kse,this.cstPostRule=OO,this.setInitialNodeLocation=this.setInitialNodeLocationOnlyOffsetRecovery):(this.setNodeLocationFromToken=OO,this.setNodeLocationFromNode=OO,this.cstPostRule=this.cstPostRuleOnlyOffset,this.setInitialNodeLocation=this.setInitialNodeLocationOnlyOffsetRegular);else{if(!/none/i.test(this.nodeLocationTracking))throw Error(`Invalid <nodeLocationTracking> config option: "${e.nodeLocationTracking}"`);this.setNodeLocationFromToken=OO,this.setNodeLocationFromNode=OO,this.cstPostRule=OO,this.setInitialNodeLocation=OO}else this.cstInvocationStateUpdate=OO,this.cstFinallyStateUpdate=OO,this.cstPostTerminal=OO,this.cstPostNonTerminal=OO,this.cstPostRule=OO}setInitialNodeLocationOnlyOffsetRecovery(e){e.location={startOffset:NaN,endOffset:NaN}}setInitialNodeLocationOnlyOffsetRegular(e){e.location={startOffset:this.LA(1).startOffset,endOffset:NaN}}setInitialNodeLocationFullRecovery(e){e.location={startOffset:NaN,startLine:NaN,startColumn:NaN,endOffset:NaN,endLine:NaN,endColumn:NaN}}setInitialNodeLocationFullRegular(e){var t=this.LA(1);e.location={startOffset:t.startOffset,startLine:t.startLine,startColumn:t.startColumn,endOffset:NaN,endLine:NaN,endColumn:NaN}}cstInvocationStateUpdate(e){e={name:e,children:Object.create(null)};this.setInitialNodeLocation(e),this.CST_STACK.push(e)}cstFinallyStateUpdate(){this.CST_STACK.pop()}cstPostRuleFull(e){var t=this.LA(0),e=e.location;e.startOffset<=t.startOffset?(e.endOffset=t.endOffset,e.endLine=t.endLine,e.endColumn=t.endColumn):(e.startOffset=NaN,e.startLine=NaN,e.startColumn=NaN)}cstPostRuleOnlyOffset(e){var t=this.LA(0),e=e.location;e.startOffset<=t.startOffset?e.endOffset=t.endOffset:e.startOffset=NaN}cstPostTerminal(e,t){var i=this.CST_STACK[this.CST_STACK.length-1];Qse(i,t,e),this.setNodeLocationFromToken(i.location,t)}cstPostNonTerminal(e,t){var i=this.CST_STACK[this.CST_STACK.length-1];Jse(i,t,e),this.setNodeLocationFromNode(i.location,e.location)}getBaseCstVisitorConstructor(){var e;return Tq(this.baseCstVisitorConstructor)?(e=sae(this.className,uP(this.gastProductionsCache)),this.baseCstVisitorConstructor=e):this.baseCstVisitorConstructor}getBaseCstVisitorConstructorWithDefaults(){var e;return Tq(this.baseCstVisitorWithDefaultsConstructor)?(e=aae(this.className,uP(this.gastProductionsCache),this.getBaseCstVisitorConstructor()),this.baseCstVisitorWithDefaultsConstructor=e):this.baseCstVisitorWithDefaultsConstructor}getLastExplicitRuleShortName(){var e=this.RULE_STACK;return e[e.length-1]}getPreviousExplicitRuleShortName(){var e=this.RULE_STACK;return e[e.length-2]}getLastExplicitRuleOccurrenceIndex(){var e=this.RULE_OCCURRENCE_STACK;return e[e.length-1]}}}),bae=e(()=>{"use strict";Wae(),uae=class{static{mt(this,"LexerAdapter")}initLexerAdapter(){this.tokVector=[],this.tokVectorLength=0,this.currIdx=-1}set input(e){if(!0!==this.selfAnalysisDone)throw Error("Missing <performSelfAnalysis> invocation at the end of the Parser's constructor.");this.reset(),this.tokVector=e,this.tokVectorLength=e.length}get input(){return this.tokVector}SKIP_TOKEN(){return this.currIdx<=this.tokVector.length-2?(this.consumeToken(),this.LA(1)):Fae}LA(e){e=this.currIdx+e;return e<0||this.tokVectorLength<=e?Fae:this.tokVector[e]}consumeToken(){this.currIdx++}exportLexerState(){return this.currIdx}importLexerState(e){this.currIdx=e}resetLexerState(){this.currIdx=-1}moveToTerminatedState(){this.currIdx=this.tokVector.length-1}getLexerPosition(){return this.exportLexerState()}}}),vae=e(()=>{"use strict";zV(),Nse(),Wae(),wre(),vse(),bie(),dae=class{static{mt(this,"RecognizerApi")}ACTION(e){return e.call(this)}consume(e,t,i){return this.consumeInternal(t,e,i)}subrule(e,t,i){return this.subruleInternal(t,e,i)}option(e,t){return this.optionInternal(t,e)}or(e,t){return this.orInternal(t,e)}many(e,t){return this.manyInternal(e,t)}atLeastOne(e,t){return this.atLeastOneInternal(e,t)}CONSUME(e,t){return this.consumeInternal(e,0,t)}CONSUME1(e,t){return this.consumeInternal(e,1,t)}CONSUME2(e,t){return this.consumeInternal(e,2,t)}CONSUME3(e,t){return this.consumeInternal(e,3,t)}CONSUME4(e,t){return this.consumeInternal(e,4,t)}CONSUME5(e,t){return this.consumeInternal(e,5,t)}CONSUME6(e,t){return this.consumeInternal(e,6,t)}CONSUME7(e,t){return this.consumeInternal(e,7,t)}CONSUME8(e,t){return this.consumeInternal(e,8,t)}CONSUME9(e,t){return this.consumeInternal(e,9,t)}SUBRULE(e,t){return this.subruleInternal(e,0,t)}SUBRULE1(e,t){return this.subruleInternal(e,1,t)}SUBRULE2(e,t){return this.subruleInternal(e,2,t)}SUBRULE3(e,t){return this.subruleInternal(e,3,t)}SUBRULE4(e,t){return this.subruleInternal(e,4,t)}SUBRULE5(e,t){return this.subruleInternal(e,5,t)}SUBRULE6(e,t){return this.subruleInternal(e,6,t)}SUBRULE7(e,t){return this.subruleInternal(e,7,t)}SUBRULE8(e,t){return this.subruleInternal(e,8,t)}SUBRULE9(e,t){return this.subruleInternal(e,9,t)}OPTION(e){return this.optionInternal(e,0)}OPTION1(e){return this.optionInternal(e,1)}OPTION2(e){return this.optionInternal(e,2)}OPTION3(e){return this.optionInternal(e,3)}OPTION4(e){return this.optionInternal(e,4)}OPTION5(e){return this.optionInternal(e,5)}OPTION6(e){return this.optionInternal(e,6)}OPTION7(e){return this.optionInternal(e,7)}OPTION8(e){return this.optionInternal(e,8)}OPTION9(e){return this.optionInternal(e,9)}OR(e){return this.orInternal(e,0)}OR1(e){return this.orInternal(e,1)}OR2(e){return this.orInternal(e,2)}OR3(e){return this.orInternal(e,3)}OR4(e){return this.orInternal(e,4)}OR5(e){return this.orInternal(e,5)}OR6(e){return this.orInternal(e,6)}OR7(e){return this.orInternal(e,7)}OR8(e){return this.orInternal(e,8)}OR9(e){return this.orInternal(e,9)}MANY(e){this.manyInternal(0,e)}MANY1(e){this.manyInternal(1,e)}MANY2(e){this.manyInternal(2,e)}MANY3(e){this.manyInternal(3,e)}MANY4(e){this.manyInternal(4,e)}MANY5(e){this.manyInternal(5,e)}MANY6(e){this.manyInternal(6,e)}MANY7(e){this.manyInternal(7,e)}MANY8(e){this.manyInternal(8,e)}MANY9(e){this.manyInternal(9,e)}MANY_SEP(e){this.manySepFirstInternal(0,e)}MANY_SEP1(e){this.manySepFirstInternal(1,e)}MANY_SEP2(e){this.manySepFirstInternal(2,e)}MANY_SEP3(e){this.manySepFirstInternal(3,e)}MANY_SEP4(e){this.manySepFirstInternal(4,e)}MANY_SEP5(e){this.manySepFirstInternal(5,e)}MANY_SEP6(e){this.manySepFirstInternal(6,e)}MANY_SEP7(e){this.manySepFirstInternal(7,e)}MANY_SEP8(e){this.manySepFirstInternal(8,e)}MANY_SEP9(e){this.manySepFirstInternal(9,e)}AT_LEAST_ONE(e){this.atLeastOneInternal(0,e)}AT_LEAST_ONE1(e){return this.atLeastOneInternal(1,e)}AT_LEAST_ONE2(e){this.atLeastOneInternal(2,e)}AT_LEAST_ONE3(e){this.atLeastOneInternal(3,e)}AT_LEAST_ONE4(e){this.atLeastOneInternal(4,e)}AT_LEAST_ONE5(e){this.atLeastOneInternal(5,e)}AT_LEAST_ONE6(e){this.atLeastOneInternal(6,e)}AT_LEAST_ONE7(e){this.atLeastOneInternal(7,e)}AT_LEAST_ONE8(e){this.atLeastOneInternal(8,e)}AT_LEAST_ONE9(e){this.atLeastOneInternal(9,e)}AT_LEAST_ONE_SEP(e){this.atLeastOneSepFirstInternal(0,e)}AT_LEAST_ONE_SEP1(e){this.atLeastOneSepFirstInternal(1,e)}AT_LEAST_ONE_SEP2(e){this.atLeastOneSepFirstInternal(2,e)}AT_LEAST_ONE_SEP3(e){this.atLeastOneSepFirstInternal(3,e)}AT_LEAST_ONE_SEP4(e){this.atLeastOneSepFirstInternal(4,e)}AT_LEAST_ONE_SEP5(e){this.atLeastOneSepFirstInternal(5,e)}AT_LEAST_ONE_SEP6(e){this.atLeastOneSepFirstInternal(6,e)}AT_LEAST_ONE_SEP7(e){this.atLeastOneSepFirstInternal(7,e)}AT_LEAST_ONE_SEP8(e){this.atLeastOneSepFirstInternal(8,e)}AT_LEAST_ONE_SEP9(e){this.atLeastOneSepFirstInternal(9,e)}RULE(e,t,i=zae){sq(this.definedRulesNames,e)&&(n={message:vre.buildDuplicateRuleNameError({topLevelRule:e,grammarName:this.className}),type:Hae.DUPLICATE_RULE_NAME,ruleName:e},this.definitionErrors.push(n)),this.definedRulesNames.push(e);var n=this.defineRule(e,t,i);return this[e]=n}OVERRIDE_RULE(e,t,i=zae){var n=ase(e,this.definedRulesNames,this.className),n=(this.definitionErrors=this.definitionErrors.concat(n),this.defineRule(e,t,i));return this[e]=n}BACKTRACK(t,i){return function(){this.isBackTrackingStack.push(1);var e=this.saveRecogState();try{return t.apply(this,i),!0}catch(e){if(Tse(e))return!1;throw e}finally{this.reloadRecogState(e),this.isBackTrackingStack.pop()}}}getGAstProductions(){return this.gastProductionsCache}getSerializedGastProductions(){return Zte(tq(this.gastProductionsCache))}}}),xae=e(()=>{"use strict";zV(),Use(),Nse(),Jre(),Nre(),Wae(),jse(),xre(),Qne(),pae=class{static{mt(this,"RecognizerEngine")}initRecognizerEngine(e,t){if(this.className=this.constructor.name,this.shortRuleNameToFull={},this.fullRuleNameToShort={},this.ruleShortNameIdx=256,this.tokenMatcher=Nne,this.subruleIdx=0,this.definedRulesNames=[],this.tokensMap={},this.isBackTrackingStack=[],this.RULE_STACK=[],this.RULE_OCCURRENCE_STACK=[],this.gastProductionsCache={},VU(t,"serializedGrammar"))throw Error(`The Parser's configuration can no longer contain a <serializedGrammar> property.
|
||
See: https://chevrotain.io/docs/changes/BREAKING_CHANGES.html#_6-0-0
|
||
For Further details.`);if(sT(e)){if(gq(e))throw Error(`A Token Vocabulary cannot be empty.
|
||
Note that the first argument for the parser constructor
|
||
is no longer a Token vector (since v4.0).`);if("number"==typeof e[0].startOffset)throw Error(`The Parser constructor no longer accepts a token vector as the first argument.
|
||
See: https://chevrotain.io/docs/changes/BREAKING_CHANGES.html#_4-0-0
|
||
For Further details.`)}if(sT(e))this.tokensMap=JW(e,(e,t)=>(e[t.name]=t,e),{});else if(VU(e,"modes")&&ZH(iB(tq(e.modes)),Wne)){t=iB(tq(e.modes)),t=CV(t);this.tokensMap=JW(t,(e,t)=>(e[t.name]=t,e),{})}else{if(!R6(e))throw new Error("<tokensDictionary> argument must be An Array of Token constructors, A dictionary of Token constructors or an IMultiModeLexerDefinition");this.tokensMap=hj(e)}this.tokensMap.EOF=mre;t=VU(e,"modes")?iB(tq(e.modes)):tq(e),e=ZH(t,e=>gq(e.categoryMatches));this.tokenMatcher=e?Nne:Ine,Dne(tq(this.tokensMap))}defineRule(i,n,e){if(this.selfAnalysisDone)throw Error(`Grammar rule <${i}> may not be defined after the 'performSelfAnalysis' method has been called'
|
||
Make sure that all grammar rule definitions are done before 'performSelfAnalysis' is called.`);let r=(VU(e,"resyncEnabled")?e:zae).resyncEnabled,s=(VU(e,"recoveryValueFunc")?e:zae).recoveryValueFunc,a=this.ruleShortNameIdx<<12;this.ruleShortNameIdx++,this.shortRuleNameToFull[a]=i,this.fullRuleNameToShort[i]=a;let t;return t=!0===this.outputCst?mt(function(...e){try{this.ruleInvocationStateUpdate(a,i,this.subruleIdx),n.apply(this,e);var t=this.CST_STACK[this.CST_STACK.length-1];return this.cstPostRule(t),t}catch(e){return this.invokeRuleCatch(e,r,s)}finally{this.ruleFinallyStateUpdate()}},"invokeRuleWithTry"):mt(function(...e){try{return this.ruleInvocationStateUpdate(a,i,this.subruleIdx),n.apply(this,e)}catch(e){return this.invokeRuleCatch(e,r,s)}finally{this.ruleFinallyStateUpdate()}},"invokeRuleWithTryCst"),Object.assign(t,{ruleName:i,originalGrammarAction:n})}invokeRuleCatch(e,t,i){var n=1===this.RULE_STACK.length,t=t&&!this.isBackTracking()&&this.recoveryEnabled;if(Tse(e)){var r=e;if(t){var t=this.findReSyncTokenType();if(this.isInCurrentRuleReSyncSet(t))return r.resyncedTokens=this.reSyncTo(t),this.outputCst?((t=this.CST_STACK[this.CST_STACK.length-1]).recoveredNode=!0,t):i(e);this.outputCst&&((t=this.CST_STACK[this.CST_STACK.length-1]).recoveredNode=!0,r.partialCstResult=t)}else if(n)return this.moveToTerminatedState(),i(e);throw r}throw e}optionInternal(e,t){var i=this.getKeyForAutomaticLookahead(512,t);return this.optionInternalLogic(e,t,i)}optionInternalLogic(e,t,i){let n=this.getLaFuncFromCache(i),r;if("function"!=typeof e){r=e.DEF;let t=e.GATE;if(void 0!==t){let e=n;n=mt(()=>t.call(this)&&e.call(this),"lookAheadFunc")}}else r=e;if(!0===n.call(this))return r.call(this)}atLeastOneInternal(e,t){var i=this.getKeyForAutomaticLookahead(1024,e);return this.atLeastOneInternalLogic(e,t,i)}atLeastOneInternalLogic(e,i,t){let n=this.getLaFuncFromCache(t),r;if("function"!=typeof i){r=i.DEF;let t=i.GATE;if(void 0!==t){let e=n;n=mt(()=>t.call(this)&&e.call(this),"lookAheadFunc")}}else r=i;if(!0!==n.call(this))throw this.raiseEarlyExitException(e,Kre.REPETITION_MANDATORY,i.ERR_MSG);{let e=this.doSingleRepetition(r);for(;!0===n.call(this)&&!0===e;)e=this.doSingleRepetition(r)}this.attemptInRepetitionRecovery(this.atLeastOneInternal,[e,i],n,1024,e,Mre)}atLeastOneSepFirstInternal(e,t){var i=this.getKeyForAutomaticLookahead(1536,e);this.atLeastOneSepFirstInternalLogic(e,t,i)}atLeastOneSepFirstInternalLogic(e,t,i){let n=t.DEF,r=t.SEP;if(!0!==this.getLaFuncFromCache(i).call(this))throw this.raiseEarlyExitException(e,Kre.REPETITION_MANDATORY_WITH_SEPARATOR,t.ERR_MSG);n.call(this);for(i=mt(()=>this.tokenMatcher(this.LA(1),r),"separatorLookAheadFunc");!0===this.tokenMatcher(this.LA(1),r);)this.CONSUME(r),n.call(this);this.attemptInRepetitionRecovery(this.repetitionSepSecondInternal,[e,r,i,n,Ire],i,1536,e,Ire)}manyInternal(e,t){var i=this.getKeyForAutomaticLookahead(768,e);return this.manyInternalLogic(e,t,i)}manyInternalLogic(e,i,t){let n=this.getLaFuncFromCache(t),r;if("function"!=typeof i){r=i.DEF;let t=i.GATE;if(void 0!==t){let e=n;n=mt(()=>t.call(this)&&e.call(this),"lookaheadFunction")}}else r=i;let s=!0;for(;!0===n.call(this)&&!0===s;)s=this.doSingleRepetition(r);this.attemptInRepetitionRecovery(this.manyInternal,[e,i],n,768,e,Lre,s)}manySepFirstInternal(e,t){var i=this.getKeyForAutomaticLookahead(1280,e);this.manySepFirstInternalLogic(e,t,i)}manySepFirstInternalLogic(e,t,i){let n=t.DEF,r=t.SEP;if(!0===this.getLaFuncFromCache(i).call(this)){n.call(this);for(t=mt(()=>this.tokenMatcher(this.LA(1),r),"separatorLookAheadFunc");!0===this.tokenMatcher(this.LA(1),r);)this.CONSUME(r),n.call(this);this.attemptInRepetitionRecovery(this.repetitionSepSecondInternal,[e,r,t,n,Rre],t,1280,e,Rre)}}repetitionSepSecondInternal(e,t,i,n,r){for(;i();)this.CONSUME(t),n.call(this);this.attemptInRepetitionRecovery(this.repetitionSepSecondInternal,[e,t,i,n,r],i,1536,e,r)}doSingleRepetition(e){var t=this.getLexerPosition();return e.call(this),this.getLexerPosition()>t}orInternal(e,t){var i=this.getKeyForAutomaticLookahead(256,t),n=sT(e)?e:e.DEF,i=this.getLaFuncFromCache(i).call(this,n);if(void 0!==i)return n[i].ALT.call(this);this.raiseNoAltException(t,e.ERR_MSG)}ruleFinallyStateUpdate(){var e,t;this.RULE_STACK.pop(),this.RULE_OCCURRENCE_STACK.pop(),this.cstFinallyStateUpdate(),0===this.RULE_STACK.length&&!1===this.isAtEndOfInput()&&(e=this.LA(1),t=this.errorMessageProvider.buildNotAllInputParsedMessage({firstRedundant:e,ruleName:this.getCurrRuleFullName()}),this.SAVE_ERROR(new Mse(t,e)))}subruleInternal(t,e,i){var n;try{var r=void 0!==i?i.ARGS:void 0;return this.subruleIdx=e,n=t.apply(this,r),this.cstPostNonTerminal(n,void 0!==i&&void 0!==i.LABEL?i.LABEL:t.ruleName),n}catch(e){throw this.subruleInternalError(e,i,t.ruleName)}}subruleInternalError(e,t,i){throw Tse(e)&&void 0!==e.partialCstResult&&(this.cstPostNonTerminal(e.partialCstResult,void 0!==t&&void 0!==t.LABEL?t.LABEL:i),delete e.partialCstResult),e}consumeInternal(t,i,e){let n;try{var r=this.LA(1);!0===this.tokenMatcher(r,t)?(this.consumeToken(),n=r):this.consumeInternalError(t,r,e)}catch(e){n=this.consumeInternalRecovery(t,i,e)}return this.cstPostTerminal(void 0!==e&&void 0!==e.LABEL?e.LABEL:t.name,n),n}consumeInternalError(e,t,i){let n,r=this.LA(0);throw n=void 0!==i&&i.ERR_MSG?i.ERR_MSG:this.errorMessageProvider.buildMismatchTokenMessage({expected:e,actual:t,previous:r,ruleName:this.getCurrRuleFullName()}),this.SAVE_ERROR(new Lse(n,t,r))}consumeInternalRecovery(e,t,i){if(!this.recoveryEnabled||"MismatchedTokenException"!==i.name||this.isBackTracking())throw i;t=this.getFollowsForInRuleRecovery(e,t);try{return this.tryInRuleRecovery(e,t)}catch(e){throw e.name===Pse?i:e}}saveRecogState(){var e=this.errors,t=hj(this.RULE_STACK);return{errors:e,lexerState:this.exportLexerState(),RULE_STACK:t,CST_STACK:this.CST_STACK}}reloadRecogState(e){this.errors=e.errors,this.importLexerState(e.lexerState),this.RULE_STACK=e.RULE_STACK}ruleInvocationStateUpdate(e,t,i){this.RULE_OCCURRENCE_STACK.push(i),this.RULE_STACK.push(e),this.cstInvocationStateUpdate(t)}isBackTracking(){return 0!==this.isBackTrackingStack.length}getCurrRuleFullName(){var e=this.getLastExplicitRuleShortName();return this.shortRuleNameToFull[e]}shortRuleNameToFullName(e){return this.shortRuleNameToFull[e]}isAtEndOfInput(){return this.tokenMatcher(this.LA(1),mre)}reset(){this.resetLexerState(),this.subruleIdx=0,this.isBackTrackingStack=[],this.errors=[],this.RULE_STACK=[],this.CST_STACK=[],this.RULE_OCCURRENCE_STACK=[]}}}),wae=e(()=>{"use strict";Nse(),zV(),Jre(),Wae(),gae=class{static{mt(this,"ErrorHandler")}initErrorHandler(e){this._errors=[],this.errorMessageProvider=(VU(e,"errorMessageProvider")?e:jae).errorMessageProvider}SAVE_ERROR(e){if(Tse(e))return e.context={ruleStack:this.getHumanReadableRuleStack(),ruleOccurrenceStack:hj(this.RULE_OCCURRENCE_STACK)},this._errors.push(e),e;throw Error("Trying to save an Error which is not a RecognitionException")}get errors(){return hj(this._errors)}set errors(e){this._errors=e}raiseEarlyExitException(e,t,i){var n=this.getCurrRuleFullName(),e=Vre(e,this.getGAstProductions()[n],t,this.maxLookahead)[0],r=[];for(let e=1;e<=this.maxLookahead;e++)r.push(this.LA(e));t=this.errorMessageProvider.buildEarlyExitMessage({expectedIterationPaths:e,actual:r,previous:this.LA(0),customUserDescription:i,ruleName:n});throw this.SAVE_ERROR(new Ise(t,this.LA(1),this.LA(0)))}raiseNoAltException(e,t){var i=this.getCurrRuleFullName(),e=Wre(e,this.getGAstProductions()[i],this.maxLookahead),n=[];for(let e=1;e<=this.maxLookahead;e++)n.push(this.LA(e));i=this.LA(0),e=this.errorMessageProvider.buildNoViableAltMessage({expectedPathsPerAlt:e,actual:n,previous:i,customUserDescription:t,ruleName:this.getCurrRuleFullName()});throw this.SAVE_ERROR(new Rse(e,this.LA(1),i))}}}),kae=e(()=>{"use strict";Nre(),zV(),fae=class{static{mt(this,"ContentAssist")}initContentAssist(){}computeContentAssist(e,t){var i=this.gastProductionsCache[e];if(Tq(i))throw Error(`Rule ->${e}<- does not exist in this grammar.`);return Cre([i],t,this.tokenMatcher,this.maxLookahead)}getNextPossibleTokenTypes(e){var t=mU(e.ruleStack),t=this.getGAstProductions()[t];return new Ere(t,e).startWalking()}}});function Tae(e,t,i,n=!1){Cae(i);var r=LH(this.recordingProdStack),s=N6(t)?t:t.DEF,e=new e({definition:[],idx:i});return n&&(e.separator=t.SEP),VU(t,"MAX_LOOKAHEAD")&&(e.maxLookahead=t.MAX_LOOKAHEAD),this.recordingProdStack.push(e),s.call(this),r.definition.push(e),this.recordingProdStack.pop(),Aae}function Sae(e,t){Cae(t);let i=LH(this.recordingProdStack),n=!1===sT(e),r=!1==n?e:e.DEF,s=new lie({definition:[],idx:t,ignoreAmbiguities:n&&!0===e.IGNORE_AMBIGUITIES});VU(e,"MAX_LOOKAHEAD")&&(s.maxLookahead=e.MAX_LOOKAHEAD);t=uV(r,e=>N6(e.GATE));return s.hasPredicates=t,i.definition.push(s),b(r,e=>{var t=new iie({definition:[]});s.definition.push(t),VU(e,"IGNORE_AMBIGUITIES")?t.ignoreAmbiguities=e.IGNORE_AMBIGUITIES:VU(e,"GATE")&&(t.ignoreAmbiguities=!0),this.recordingProdStack.push(t),e.ALT.call(this),this.recordingProdStack.pop()}),Aae}function _ae(e){return 0===e?"":""+e}function Cae(e){if(e<0||Eae<e)throw(e=new Error(`Invalid DSL Method idx value: <${e}>
|
||
Idx value must be a none negative value smaller than `+(Eae+1))).KNOWN_RECORDER_ERROR=!0,e}var Aae,Eae,$ae,Lae,Rae,Mae,Iae,Nae=e(()=>{"use strict";zV(),bie(),ere(),Qne(),xre(),Wae(),Use(),Aae={description:"This Object indicates the Parser is during Recording Phase"},Object.freeze(Aae),Eae=Math.pow(2,8)-1,Dne([$ae=nre({name:"RECORDING_PHASE_TOKEN",pattern:Zne.NA})]),Lae=sre($ae,`This IToken indicates the Parser is in Recording Phase
|
||
See: https://chevrotain.io/docs/guide/internals.html#grammar-recording for details`,-1,-1,-1,-1,-1,-1),Object.freeze(Lae),Rae={name:`This CSTNode indicates the Parser is in Recording Phase
|
||
See: https://chevrotain.io/docs/guide/internals.html#grammar-recording for details`,children:{}},Mae=class{static{mt(this,"GastRecorder")}initGastRecorder(e){this.recordingProdStack=[],this.RECORDING_PHASE=!1}enableRecording(){this.RECORDING_PHASE=!0,this.TRACE_INIT("Enable Recording",()=>{for(let i=0;i<10;i++){var e=0<i?i:"";this["CONSUME"+e]=function(e,t){return this.consumeInternalRecord(e,i,t)},this["SUBRULE"+e]=function(e,t){return this.subruleInternalRecord(e,i,t)},this["OPTION"+e]=function(e){return this.optionInternalRecord(e,i)},this["OR"+e]=function(e){return this.orInternalRecord(e,i)},this["MANY"+e]=function(e){this.manyInternalRecord(i,e)},this["MANY_SEP"+e]=function(e){this.manySepFirstInternalRecord(i,e)},this["AT_LEAST_ONE"+e]=function(e){this.atLeastOneInternalRecord(i,e)},this["AT_LEAST_ONE_SEP"+e]=function(e){this.atLeastOneSepFirstInternalRecord(i,e)}}this.consume=function(e,t,i){return this.consumeInternalRecord(t,e,i)},this.subrule=function(e,t,i){return this.subruleInternalRecord(t,e,i)},this.option=function(e,t){return this.optionInternalRecord(t,e)},this.or=function(e,t){return this.orInternalRecord(t,e)},this.many=function(e,t){this.manyInternalRecord(e,t)},this.atLeastOne=function(e,t){this.atLeastOneInternalRecord(e,t)},this.ACTION=this.ACTION_RECORD,this.BACKTRACK=this.BACKTRACK_RECORD,this.LA=this.LA_RECORD})}disableRecording(){this.RECORDING_PHASE=!1,this.TRACE_INIT("Deleting Recording methods",()=>{var t=this;for(let e=0;e<10;e++){var i=0<e?e:"";delete t["CONSUME"+i],delete t["SUBRULE"+i],delete t["OPTION"+i],delete t["OR"+i],delete t["MANY"+i],delete t["MANY_SEP"+i],delete t["AT_LEAST_ONE"+i],delete t["AT_LEAST_ONE_SEP"+i]}delete t.consume,delete t.subrule,delete t.option,delete t.or,delete t.many,delete t.atLeastOne,delete t.ACTION,delete t.BACKTRACK,delete t.LA})}ACTION_RECORD(e){}BACKTRACK_RECORD(e,t){return()=>!0}LA_RECORD(e){return Fae}topLevelRuleRecord(e,t){try{var i=new tie({definition:[],name:e});return i.name=e,this.recordingProdStack.push(i),t.call(this),this.recordingProdStack.pop(),i}catch(e){if(!0!==e.KNOWN_RECORDER_ERROR)try{e.message=e.message+`
|
||
This error was thrown during the "grammar recording phase" For more info see:
|
||
https://chevrotain.io/docs/guide/internals.html#grammar-recording`}catch{}throw e}}optionInternalRecord(e,t){return Tae.call(this,nie,e,t)}atLeastOneInternalRecord(e,t){Tae.call(this,rie,t,e)}atLeastOneSepFirstInternalRecord(e,t){Tae.call(this,sie,t,e,!0)}manyInternalRecord(e,t){Tae.call(this,aie,t,e)}manySepFirstInternalRecord(e,t){Tae.call(this,oie,t,e,!0)}orInternalRecord(e,t){return Sae.call(this,e,t)}subruleInternalRecord(e,t,i){var n,r;if(Cae(t),e&&!1!==VU(e,"ruleName"))return n=LH(this.recordingProdStack),r=e.ruleName,r=new eie({idx:t,nonTerminalName:r,label:i?.LABEL,referencedRule:void 0}),n.definition.push(r),this.outputCst?Rae:Aae;throw(i=new Error(`<SUBRULE${_ae(t)}> argument is invalid expecting a Parser method reference but got: <${JSON.stringify(e)}>
|
||
inside top level rule: <${this.recordingProdStack[0].name}>`)).KNOWN_RECORDER_ERROR=!0,i}consumeInternalRecord(e,t,i){var n;if(Cae(t),zne(e))return n=LH(this.recordingProdStack),i=new cie({idx:t,terminalType:e,label:i?.LABEL}),n.definition.push(i),Lae;throw(n=new Error(`<CONSUME${_ae(t)}> argument is invalid expecting a TokenType reference but got: <${JSON.stringify(e)}>
|
||
inside top level rule: <${this.recordingProdStack[0].name}>`)).KNOWN_RECORDER_ERROR=!0,n}},mt(Tae,"recordProd"),mt(Sae,"recordOrProd"),mt(_ae,"getIdxSuffix"),mt(Cae,"assertMethodIdxIsValid")}),Dae=e(()=>{"use strict";zV(),Yte(),Wae(),Iae=class{static{mt(this,"PerformanceTracer")}initPerformanceTracer(e){var t;VU(e,"traceInitPerf")?(e=e.traceInitPerf,this.traceInitMaxIdent=(t="number"==typeof e)?e:1/0,this.traceInitPerf=t?0<e:e):(this.traceInitMaxIdent=0,this.traceInitPerf=jae.traceInitPerf),this.traceInitIndent=-1}TRACE_INIT(e,t){var i,n,r,s;return!0===this.traceInitPerf?(this.traceInitIndent++,i=new Array(this.traceInitIndent+1).join("\t"),{time:n,value:r}=(this.traceInitIndent<this.traceInitMaxIdent&&console.log(i+`--> <${e}>`),qte(t)),s=10<n?console.warn:console.log,this.traceInitIndent<this.traceInitMaxIdent&&s(i+`<-- <${e}> time: ${n}ms`),this.traceInitIndent--,r):t()}}});function Oae(r,e){e.forEach(i=>{let n=i.prototype;Object.getOwnPropertyNames(n).forEach(e=>{var t;"constructor"!==e&&((t=Object.getOwnPropertyDescriptor(n,e))&&(t.get||t.set)?Object.defineProperty(r.prototype,e,t):r.prototype[e]=i.prototype[e])})})}var Pae=e(()=>{"use strict";mt(Oae,"applyMixins")});function Bae(e=void 0){return function(){return e}}var Fae,jae,zae,Hae,Uae,qae,Wae=e(()=>{"use strict";var e;zV(),Yte(),Mie(),xre(),wre(),kse(),jse(),Xse(),yae(),bae(),vae(),xae(),wae(),kae(),Nae(),Dae(),Pae(),vse(),Fae=sre(mre,"",NaN,NaN,NaN,NaN,NaN,NaN),Object.freeze(Fae),jae=Object.freeze({recoveryEnabled:!1,maxLookahead:3,dynamicTokensEnabled:!1,outputCst:!0,errorMessageProvider:yre,nodeLocationTracking:"none",traceInitPerf:!1,skipValidations:!1}),zae=Object.freeze({recoveryValueFunc:mt(()=>{},"recoveryValueFunc"),resyncEnabled:!0}),(e=Hae=Hae||{})[e.INVALID_RULE_NAME=0]="INVALID_RULE_NAME",e[e.DUPLICATE_RULE_NAME=1]="DUPLICATE_RULE_NAME",e[e.INVALID_RULE_OVERRIDE=2]="INVALID_RULE_OVERRIDE",e[e.DUPLICATE_PRODUCTIONS=3]="DUPLICATE_PRODUCTIONS",e[e.UNRESOLVED_SUBRULE_REF=4]="UNRESOLVED_SUBRULE_REF",e[e.LEFT_RECURSION=5]="LEFT_RECURSION",e[e.NONE_LAST_EMPTY_ALT=6]="NONE_LAST_EMPTY_ALT",e[e.AMBIGUOUS_ALTS=7]="AMBIGUOUS_ALTS",e[e.CONFLICT_TOKENS_RULES_NAMESPACE=8]="CONFLICT_TOKENS_RULES_NAMESPACE",e[e.INVALID_TOKEN_NAME=9]="INVALID_TOKEN_NAME",e[e.NO_NON_EMPTY_LOOKAHEAD=10]="NO_NON_EMPTY_LOOKAHEAD",e[e.AMBIGUOUS_PREFIX_ALTS=11]="AMBIGUOUS_PREFIX_ALTS",e[e.TOO_MANY_ALTS=12]="TOO_MANY_ALTS",e[e.CUSTOM_LOOKAHEAD_VALIDATION=13]="CUSTOM_LOOKAHEAD_VALIDATION",mt(Bae,"EMPTY_ALT"),(Uae=class t{static{mt(this,"Parser")}static performSelfAnalysis(e){throw Error("The **static** `performSelfAnalysis` method has been deprecated.\t\nUse the **instance** method with the same name instead.")}performSelfAnalysis(){this.TRACE_INIT("performSelfAnalysis",()=>{var e;this.selfAnalysisDone=!0;let i=this.className,n=(this.TRACE_INIT("toFastProps",()=>{Vte(this)}),this.TRACE_INIT("Grammar Recording",()=>{try{this.enableRecording(),b(this.definedRulesNames,e=>{let t=this[e].originalGrammarAction,i;this.TRACE_INIT(e+" Rule",()=>{i=this.topLevelRuleRecord(e,t)}),this.gastProductionsCache[e]=i})}finally{this.disableRecording()}}),[]);if(this.TRACE_INIT("Grammar Resolving",()=>{n=xse({rules:tq(this.gastProductionsCache)}),this.definitionErrors=this.definitionErrors.concat(n)}),this.TRACE_INIT("Grammar Validations",()=>{var e,t;gq(n)&&!1===this.skipValidations&&(e=wse({rules:tq(this.gastProductionsCache),tokenTypes:tq(this.tokensMap),errMsgProvider:vre,grammarName:i}),t=ese({lookaheadStrategy:this.lookaheadStrategy,rules:tq(this.gastProductionsCache),tokenTypes:tq(this.tokensMap),grammarName:i}),this.definitionErrors=this.definitionErrors.concat(e,t))}),gq(this.definitionErrors)&&(this.recoveryEnabled&&this.TRACE_INIT("computeAllProdsFollows",()=>{var e=$ie(tq(this.gastProductionsCache));this.resyncFollows=e}),this.TRACE_INIT("ComputeLookaheadFunctions",()=>{var e,t;null!=(t=(e=this.lookaheadStrategy).initialize)&&t.call(e,{rules:tq(this.gastProductionsCache)}),this.preComputeLookaheadFunctions(tq(this.gastProductionsCache))})),!t.DEFER_DEFINITION_ERRORS_HANDLING&&!gq(this.definitionErrors))throw e=v(this.definitionErrors,e=>e.message),new Error(`Parser Definition Errors detected:
|
||
`+e.join(`
|
||
-------------------------------
|
||
`))})}constructor(e,t){this.definitionErrors=[],this.selfAnalysisDone=!1;if(this.initErrorHandler(t),this.initLexerAdapter(),this.initLooksAhead(t),this.initRecognizerEngine(e,t),this.initRecoverable(t),this.initTreeBuilder(t),this.initContentAssist(),this.initGastRecorder(t),this.initPerformanceTracer(t),VU(t,"ignoredIssues"))throw new Error(`The <ignoredIssues> IParserConfig property has been deprecated.
|
||
Please use the <IGNORE_AMBIGUITIES> flag on the relevant DSL method instead.
|
||
See: https://chevrotain.io/docs/guide/resolving_grammar_errors.html#IGNORING_AMBIGUITIES
|
||
For further details.`);this.skipValidations=(VU(t,"skipValidations")?t:jae).skipValidations}}).DEFER_DEFINITION_ERRORS_HANDLING=!1,Oae(Uae,[Fse,Vse,hae,uae,pae,dae,gae,fae,Mae,Iae]),qae=class extends Uae{static{mt(this,"EmbeddedActionsParser")}constructor(e,t=jae){t=hj(t);t.outputCst=!1,super(e,t)}}}),Vae=e(()=>{"use strict";bie()}),Gae=e(()=>{}),Yae=e(()=>{"use strict";Vae(),Gae()}),Xae=e(()=>{"use strict";jte()}),Kae=e(()=>{"use strict";jte(),Wae(),ere(),xre(),Jre(),qse(),wre(),Nse(),Jne(),bie(),bie(),Yae(),Xae()});function Zae(e,t,i){return e.name+`_${t}_`+i}function Qae(t){var i={decisionMap:{},decisionStates:[],ruleToStartState:new Map,ruleToStopState:new Map,states:[]},n=(Jae(i,t),t.length);for(let e=0;e<n;e++){var r=t[e],s=ooe(i,r,r);void 0!==s&&yoe(i,r,s)}return i}function Jae(t,i){var n=i.length;for(let e=0;e<n;e++){var r=i[e],s=voe(t,r,void 0,{type:Toe}),a=voe(t,r,void 0,{type:Coe});s.stop=a,t.ruleToStartState.set(r,s),t.ruleToStopState.set(r,a)}}function eoe(e,t,i){return i instanceof cie?foe(e,t,i.terminalType,i):(i instanceof eie?moe:i instanceof lie?soe:i instanceof nie?aoe:i instanceof aie?toe:i instanceof oie?ioe:i instanceof rie?noe:i instanceof sie?roe:ooe)(e,t,i)}function toe(e,t,i){var n=voe(e,t,i,{type:_oe}),n=(uoe(e,n),doe(e,t,n,i,ooe(e,t,i)));return coe(e,t,i,n)}function ioe(e,t,i){var n=voe(e,t,i,{type:_oe}),n=(uoe(e,n),doe(e,t,n,i,ooe(e,t,i)));return coe(e,t,i,n,foe(e,t,i.separator,i))}function noe(e,t,i){var n=voe(e,t,i,{type:Soe}),n=(uoe(e,n),doe(e,t,n,i,ooe(e,t,i)));return loe(e,t,i,n)}function roe(e,t,i){var n=voe(e,t,i,{type:Soe}),n=(uoe(e,n),doe(e,t,n,i,ooe(e,t,i)));return loe(e,t,i,n,foe(e,t,i.separator,i))}function soe(t,i,e){var n=voe(t,i,e,{type:koe}),r=(uoe(t,n),v(e.definition,e=>eoe(t,i,e)));return doe(t,i,n,e,...r)}function aoe(e,t,i){var n=voe(e,t,i,{type:koe}),n=(uoe(e,n),doe(e,t,n,i,ooe(e,t,i)));return hoe(e,t,i,n)}function ooe(t,i,e){e=nU(v(e.definition,e=>eoe(t,i,e)),e=>void 0!==e);return 1===e.length?e[0]:0===e.length?void 0:goe(t,e)}function loe(e,t,i,n,r){var s=n.left,n=n.right,a=voe(e,t,i,{type:Loe}),o=(uoe(e,a),voe(e,t,i,{type:Roe}));return s.loopback=a,o.loopback=a,boe(n,e.decisionMap[Zae(t,r?"RepetitionMandatoryWithSeparator":"RepetitionMandatory",i.idx)]=a),void 0===r?(boe(a,s),boe(a,o)):(boe(a,o),boe(a,r.left),boe(r.right,s)),{left:s,right:o}}function coe(e,t,i,n,r){var s=n.left,n=n.right,a=voe(e,t,i,{type:$oe}),o=(uoe(e,a),voe(e,t,i,{type:Roe})),l=voe(e,t,i,{type:Eoe});return a.loopback=l,o.loopback=l,boe(a,s),boe(a,o),boe(n,l),void 0!==r?(boe(l,o),boe(l,r.left),boe(r.right,s)):boe(l,a),{left:e.decisionMap[Zae(t,r?"RepetitionWithSeparator":"Repetition",i.idx)]=a,right:o}}function hoe(e,t,i,n){var r=n.left;return boe(r,n.right),e.decisionMap[Zae(t,"Option",i.idx)]=r,n}function uoe(e,t){return e.decisionStates.push(t),t.decision=e.decisionStates.length-1,t.decision}function doe(e,t,i,n,...r){var s,a=voe(e,t,n,{type:Aoe,start:i});i.end=a;for(s of r)void 0!==s?(boe(i,s.left),boe(s.right,a)):boe(i,a);r={left:i,right:a};return e.decisionMap[Zae(t,poe(n),n.idx)]=i,r}function poe(e){if(e instanceof lie)return"Alternation";if(e instanceof nie)return"Option";if(e instanceof aie)return"Repetition";if(e instanceof oie)return"RepetitionWithSeparator";if(e instanceof rie)return"RepetitionMandatory";if(e instanceof sie)return"RepetitionMandatoryWithSeparator";throw new Error("Invalid production type encountered")}function goe(n,r){var e=r.length;for(let i=0;i<e-1;i++){let e=r[i],t;var s=(t=1===e.left.transitions.length?e.left.transitions[0]:t)instanceof Doe,a=t,o=r[i+1].left;e.left.type===koe&&e.right.type===koe&&void 0!==t&&(s&&a.followState===e.right||t.target===e.right)?(s?a.followState=o:t.target=o,woe(n,e.right)):boe(e.right,o)}var t=r[0],i=r[e-1];return{left:t.left,right:i.right}}function foe(e,t,i,n){var r=voe(e,t,n,{type:koe}),e=voe(e,t,n,{type:koe});return xoe(r,new Ioe(e,i)),{left:r,right:e}}function moe(e,t,i){var n=i.referencedRule,r=e.ruleToStartState.get(n),s=voe(e,t,i,{type:koe}),e=voe(e,t,i,{type:koe});return xoe(s,new Doe(r,n,e)),{left:s,right:e}}function yoe(e,t,i){var n=e.ruleToStartState.get(t),e=(boe(n,i.left),e.ruleToStopState.get(t));return boe(i.right,e),{left:n,right:e}}function boe(e,t){xoe(e,new Noe(t))}function voe(e,t,i,n){i=Object.assign({atn:e,production:i,epsilonOnlyTransitions:!1,rule:t,transitions:[],nextTokenWithinRule:[],stateNumber:e.states.length},n);return e.states.push(i),i}function xoe(e,t){0===e.transitions.length&&(e.epsilonOnlyTransitions=t.isEpsilon()),e.transitions.push(t)}function woe(e,t){e.states.splice(e.states.indexOf(t),1)}var koe,Toe,Soe,_oe,Coe,Aoe,Eoe,$oe,Loe,Roe,Moe,Ioe,Noe,Doe,Ooe=e(()=>{"use strict";TU(),rU(),Kae(),mt(Zae,"buildATNKey"),koe=1,Toe=2,Soe=4,_oe=5,Coe=7,Aoe=8,Eoe=9,$oe=10,Loe=11,Roe=12,Moe=class{static{mt(this,"AbstractTransition")}constructor(e){this.target=e}isEpsilon(){return!1}},Ioe=class extends Moe{static{mt(this,"AtomTransition")}constructor(e,t){super(e),this.tokenType=t}},Noe=class extends Moe{static{mt(this,"EpsilonTransition")}constructor(e){super(e)}isEpsilon(){return!0}},Doe=class extends Moe{static{mt(this,"RuleTransition")}constructor(e,t,i){super(e),this.rule=t,this.followState=i}isEpsilon(){return!0}},mt(Qae,"createATN"),mt(Jae,"createRuleStartAndStopATNStates"),mt(eoe,"atom"),mt(toe,"repetition"),mt(ioe,"repetitionSep"),mt(noe,"repetitionMandatory"),mt(roe,"repetitionMandatorySep"),mt(soe,"alternation"),mt(aoe,"option"),mt(ooe,"block"),mt(loe,"plus"),mt(coe,"star"),mt(hoe,"optional"),mt(uoe,"defineDecisionState"),mt(doe,"makeAlts"),mt(poe,"getProdType"),mt(goe,"makeBlock"),mt(foe,"tokenRef"),mt(moe,"ruleRef"),mt(yoe,"buildRuleHandle"),mt(boe,"epsilon"),mt(voe,"newState"),mt(xoe,"addTransition"),mt(woe,"removeState")});function Poe(e,t=!0){return`${t?"a"+e.alt:""}s${e.state.stateNumber}:`+e.stack.map(e=>e.stateNumber.toString()).join("_")}var Boe,Foe,joe=e(()=>{"use strict";TU(),Boe={},Foe=class{static{mt(this,"ATNConfigSet")}constructor(){this.map={},this.configs=[]}get size(){return this.configs.length}finalize(){this.map={}}add(e){var t=Poe(e);t in this.map||(this.map[t]=this.configs.length,this.configs.push(e))}get elements(){return this.configs}get alts(){return v(this.configs,e=>e.alt)}get key(){let e="";for(var t in this.map)e+=t+":";return e}},mt(Poe,"getATNConfigKey")});function zoe(n,r){let s={};return e=>{let t=e.toString(),i=s[t];return void 0===i&&(i={atnStartState:n,decision:r,states:{}},s[t]=i),i}}function Hoe(e,t=!0){var i,n=new Set;for(i of e){var r,s,a=new Set;for(r of i){if(void 0===r){if(t)break;return!1}for(s of[r.tokenTypeIdx].concat(r.categoryMatches))if(n.has(s)){if(!a.has(s))return!1}else n.add(s),a.add(s)}}return!0}function Uoe(t){var i=t.decisionStates.length,n=Array(i);for(let e=0;e<i;e++)n[e]=zoe(t.decisionStates[e],e);return n}function qoe(e,t,i,n){let r=e[t](i),s=r.start;return void 0===s&&(e=rle(r.atnStartState),s=nle(r,tle(e)),r.start=s),Woe.apply(this,[r,s,i,n])}function Woe(t,e,i,n){let r=e,s=1,a=[],o=this.LA(s++);for(;;){let e=Zoe(r,o);if((e=void 0===e?Voe.apply(this,[t,r,o,s,i,n]):e)===Boe)return Koe(a,r,o);if(!0===e.isAcceptState)return e.prediction;r=e,a.push(o),o=this.LA(s++)}}function Voe(e,t,i,n,r,s){var a=Qoe(t.configs,i,r);if(0===a.size)return ile(e,t,i,Boe),Boe;let o=tle(a),l=ele(a,r);return void 0!==l?(o.isAcceptState=!0,o.prediction=l,o.configs.uniqueAlt=l):cle(a)&&(r=Bq(a.alts),o.isAcceptState=!0,o.prediction=r,o.configs.uniqueAlt=r,Goe.apply(this,[e,n,a.alts,s])),o=ile(e,t,i,o)}function Goe(e,t,i,n){var r=[];for(let e=1;e<=t;e++)r.push(this.LA(e).tokenType);e=e.atnStartState;n(Yoe({topLevelRule:e.rule,ambiguityIndices:i,production:e.production,prefixPath:r}))}function Yoe(e){var t=v(e.prefixPath,e=>tre(e)).join(", "),i=0===e.production.idx?"":e.production.idx,i=`Ambiguous Alternatives Detected: <${e.ambiguityIndices.join(", ")}> in <${Xoe(e.production)}${i}> inside <${e.topLevelRule.name}> Rule,
|
||
<${t}> may appears as a prefix path in all these alternatives.
|
||
`;return i+=`See: https://chevrotain.io/docs/guide/resolving_grammar_errors.html#AMBIGUOUS_ALTERNATIVES
|
||
For Further details.`}function Xoe(e){if(e instanceof eie)return"SUBRULE";if(e instanceof nie)return"OPTION";if(e instanceof lie)return"OR";if(e instanceof rie)return"AT_LEAST_ONE";if(e instanceof sie)return"AT_LEAST_ONE_SEP";if(e instanceof oie)return"MANY_SEP";if(e instanceof aie)return"MANY";if(e instanceof cie)return"CONSUME";throw Error("non exhaustive match")}function Koe(e,t,i){t=_U(t.configs.elements,e=>e.state.transitions);return{actualToken:i,possibleTokenTypes:$V(t.filter(e=>e instanceof Ioe).map(e=>e.tokenType),e=>e.tokenTypeIdx),tokenPath:e}}function Zoe(e,t){return e.edges[t.tokenTypeIdx]}function Qoe(e,t,i){var n,r=new Foe,s=[];for(n of e.elements)if(!1!==i.is(n.alt))if(n.state.type===Coe)s.push(n);else{var a=n.state.transitions.length;for(let e=0;e<a;e++){var o=Joe(n.state.transitions[e],t);void 0!==o&&r.add({state:o,alt:n.alt,stack:n.stack})}}let l;if(void 0===(l=0===s.length&&1===r.size?r:l)){l=new Foe;for(var c of r.elements)sle(c,l)}if(0<s.length&&!ole(l))for(var h of s)l.add(h);return l}function Joe(e,t){if(e instanceof Ioe&&are(t,e.tokenType))return e.target}function ele(e,t){let i;for(var n of e.elements)if(!0===t.is(n.alt))if(void 0===i)i=n.alt;else if(i!==n.alt)return;return i}function tle(e){return{configs:e,edges:{},isAcceptState:!1,prediction:-1}}function ile(e,t,i,n){return n=nle(e,n),t.edges[i.tokenTypeIdx]=n}function nle(e,t){var i,n;return t===Boe?t:(i=t.configs.key,void 0!==(n=e.states[i])?n:(t.configs.finalize(),e.states[i]=t))}function rle(t){var i=new Foe,n=t.transitions.length;for(let e=0;e<n;e++)sle({state:t.transitions[e].target,alt:e,stack:[]},i);return i}function sle(t,i){var e,n=t.state;if(n.type===Coe)0<t.stack.length?sle({state:(e=[...t.stack]).pop(),alt:t.alt,stack:e},i):i.add(t);else{n.epsilonOnlyTransitions||i.add(t);var r=n.transitions.length;for(let e=0;e<r;e++){var s=ale(t,n.transitions[e]);void 0!==s&&sle(s,i)}}}function ale(e,t){var i;return t instanceof Noe?{state:t.target,alt:e.alt,stack:e.stack}:t instanceof Doe?(i=[...e.stack,t.followState],{state:t.target,alt:e.alt,stack:i}):void 0}function ole(e){for(var t of e.elements)if(t.state.type===Coe)return!0;return!1}function lle(e){for(var t of e.elements)if(t.state.type!==Coe)return!1;return!0}function cle(e){return!!lle(e)||ule(e=hle(e.elements))&&!dle(e)}function hle(e){var i,n=new Map;for(i of e){let e=Poe(i,!1),t=n.get(e);void 0===t&&(t={},n.set(e,t)),t[i.alt]=!0}return n}function ule(e){for(var t of Array.from(e.values()))if(1<Object.keys(t).length)return!0;return!1}function dle(e){for(var t of Array.from(e.values()))if(1===Object.keys(t).length)return!0;return!1}var ple,gle,fle,mle,yle,ble,vle,xle,wle,kle,Tle,Sle,_le,Cle,Ale,Ele,$le,Lle,Rle,Mle,Ile,Nle,Dle,Ole,Ple,Ble,Fle,jle,zle,Hle,Ule,qle,Wle,Vle,Gle,Yle,Xle,Kle,Zle,Qle,Jle,ece,tce,ice,nce,rce,sce,ace,oce,lce,cce,hce,uce,dce,pce,gce,fce,mce,yce,bce,vce,xce,wce,kce,Tce,Sce,_ce,Cce,Ace,Ece,$ce,Lce,Rce,Mce,Ice,Nce,Dce,Oce,Pce,Bce,Fce,yt,jce,zce,Hce,Uce,qce,Wce,Vce=e(()=>{"use strict";Kae(),Ooe(),joe(),Fq(),CU(),LV(),TU(),nB(),HH(),fq(),eV(),mt(zoe,"createDFACache"),ple=class{static{mt(this,"PredicateSet")}constructor(){this.predicates=[]}is(e){return e>=this.predicates.length||this.predicates[e]}set(e,t){this.predicates[e]=t}toString(){let t="",i=this.predicates.length;for(let e=0;e<i;e++)t+=!0===this.predicates[e]?"1":"0";return t}},gle=new ple,fle=class extends Hse{static{mt(this,"LLStarLookaheadStrategy")}constructor(e){super(),this.logging=null!=(e=e?.logging)?e:e=>console.log(e)}initialize(e){this.atn=Qae(e.rules),this.dfas=Uoe(this.atn)}validateAmbiguousAlternationAlternatives(){return[]}validateEmptyOrAlternatives(){return[]}buildLookaheadForAlternation(e){let{prodOccurrence:t,rule:i,hasPredicates:n,dynamicTokensEnabled:r}=e,s=this.dfas,a=this.logging,o=Zae(i,"Alternation",t),l=this.atn.decisionMap[o].decision,c=v(Ore({maxLookahead:1,occurrence:t,prodType:"Alternation",rule:i}),e=>v(e,e=>e[0]));if(!Hoe(c,!1)||r)return n?function(t){var i=new ple,n=void 0===t?0:t.length;for(let e=0;e<n;e++){var r=t?.[e].GATE;i.set(e,void 0===r||r.call(this))}var e=qoe.call(this,s,l,i,a);return"number"==typeof e?e:void 0}:function(){var e=qoe.call(this,s,l,gle,a);return"number"==typeof e?e:void 0};{let i=JW(c,(t,e,i)=>(b(e,e=>{e&&(t[e.tokenTypeIdx]=i,b(e.categoryMatches,e=>{t[e]=i}))}),t),{});return n?function(e){var t=this.LA(1),t=i[t.tokenTypeIdx];if(void 0!==e&&void 0!==t){e=null==(e=e[t])?void 0:e.GATE;if(void 0!==e&&!1===e.call(this))return}return t}:function(){var e=this.LA(1);return i[e.tokenTypeIdx]}}}buildLookaheadForOptional(i){let{prodOccurrence:e,rule:t,prodType:n,dynamicTokensEnabled:r}=i,s=this.dfas,a=this.logging,o=Zae(t,n,e),l=this.atn.decisionMap[o].decision,c=v(Ore({maxLookahead:1,occurrence:e,prodType:n,rule:t}),e=>v(e,e=>e[0]));if(Hoe(c)&&c[0][0]&&!r){i=c[0],i=iB(i);if(1===i.length&&gq(i[0].categoryMatches)){let e=i[0].tokenTypeIdx;return function(){return this.LA(1).tokenTypeIdx===e}}{let t=JW(i,(t,e)=>(void 0!==e&&(t[e.tokenTypeIdx]=!0,b(e.categoryMatches,e=>{t[e]=!0})),t),{});return function(){var e=this.LA(1);return!0===t[e.tokenTypeIdx]}}}return function(){var e=qoe.call(this,s,l,gle,a);return"object"!=typeof e&&0===e}}},mt(Hoe,"isLL1Sequence"),mt(Uoe,"initATNSimulator"),mt(qoe,"adaptivePredict"),mt(Woe,"performLookahead"),mt(Voe,"computeLookaheadTarget"),mt(Goe,"reportLookaheadAmbiguity"),mt(Yoe,"buildAmbiguityError"),mt(Xoe,"getProductionDslName"),mt(Koe,"buildAdaptivePredictError"),mt(Zoe,"getExistingTargetState"),mt(Qoe,"computeReachSet"),mt(Joe,"getReachableTarget"),mt(ele,"getUniqueAlt"),mt(tle,"newDFAState"),mt(ile,"addDFAEdge"),mt(nle,"addDFAState"),mt(rle,"computeStartState"),mt(sle,"closure"),mt(ale,"getEpsilonTarget"),mt(ole,"hasConfigInRuleStopState"),mt(lle,"allConfigsInRuleStopStates"),mt(cle,"hasConflictTerminatingPrediction"),mt(hle,"getConflictingAltSets"),mt(ule,"hasConflictingAltSet"),mt(dle,"hasStateAssociatedWithOneAlt")}),Gce=e(()=>{"use strict";Vce()}),Yce=e(()=>{"use strict";function e(e){return"string"==typeof e}var t,i,n,r;function s(e){return"string"==typeof e}function a(e){return"number"==typeof e&&t.MIN_VALUE<=e&&e<=t.MAX_VALUE}function o(e){return"number"==typeof e&&i.MIN_VALUE<=e&&e<=i.MAX_VALUE}function l(e,t){return{line:e=e===Number.MAX_VALUE?vle.MAX_VALUE:e,character:t=t===Number.MAX_VALUE?vle.MAX_VALUE:t}}function c(e){return yt.objectLiteral(e)&&yt.uinteger(e.line)&&yt.uinteger(e.character)}function h(e,t,i,n){if(yt.uinteger(e)&&yt.uinteger(t)&&yt.uinteger(i)&&yt.uinteger(n))return{start:xle.create(e,t),end:xle.create(i,n)};if(xle.is(e)&&xle.is(t))return{start:e,end:t};throw new Error(`Range#create called with invalid arguments[${e}, ${t}, ${i}, ${n}]`)}function u(e){return yt.objectLiteral(e)&&xle.is(e.start)&&xle.is(e.end)}function d(e,t){return{uri:e,range:t}}function p(e){return yt.objectLiteral(e)&&wle.is(e.range)&&(yt.string(e.uri)||yt.undefined(e.uri))}function g(e,t,i,n){return{targetUri:e,targetRange:t,targetSelectionRange:i,originSelectionRange:n}}function f(e){return yt.objectLiteral(e)&&wle.is(e.targetRange)&&yt.string(e.targetUri)&&wle.is(e.targetSelectionRange)&&(wle.is(e.originSelectionRange)||yt.undefined(e.originSelectionRange))}function m(e,t,i,n){return{red:e,green:t,blue:i,alpha:n}}function y(e){return yt.objectLiteral(e)&&yt.numberRange(e.red,0,1)&&yt.numberRange(e.green,0,1)&&yt.numberRange(e.blue,0,1)&&yt.numberRange(e.alpha,0,1)}function b(e,t){return{range:e,color:t}}function v(e){return yt.objectLiteral(e)&&wle.is(e.range)&&Sle.is(e.color)}function x(e,t,i){return{label:e,textEdit:t,additionalTextEdits:i}}function w(e){return yt.objectLiteral(e)&&yt.string(e.label)&&(yt.undefined(e.textEdit)||Dle.is(e))&&(yt.undefined(e.additionalTextEdits)||yt.typedArray(e.additionalTextEdits,Dle.is))}function k(e,t,i,n,r,s){e={startLine:e,endLine:t};return yt.defined(i)&&(e.startCharacter=i),yt.defined(n)&&(e.endCharacter=n),yt.defined(r)&&(e.kind=r),yt.defined(s)&&(e.collapsedText=s),e}function T(e){return yt.objectLiteral(e)&&yt.uinteger(e.startLine)&&yt.uinteger(e.startLine)&&(yt.undefined(e.startCharacter)||yt.uinteger(e.startCharacter))&&(yt.undefined(e.endCharacter)||yt.uinteger(e.endCharacter))&&(yt.undefined(e.kind)||yt.string(e.kind))}function S(e,t){return{location:e,message:t}}function _(e){return yt.defined(e)&&kle.is(e.location)&&yt.string(e.message)}function C(e){return yt.objectLiteral(e)&&yt.string(e.href)}function A(e,t,i,n,r,s){e={range:e,message:t};return yt.defined(i)&&(e.severity=i),yt.defined(n)&&(e.code=n),yt.defined(r)&&(e.source=r),yt.defined(s)&&(e.relatedInformation=s),e}function E(e){var t;return yt.defined(e)&&wle.is(e.range)&&yt.string(e.message)&&(yt.number(e.severity)||yt.undefined(e.severity))&&(yt.integer(e.code)||yt.string(e.code)||yt.undefined(e.code))&&(yt.undefined(e.codeDescription)||yt.string(null==(t=e.codeDescription)?void 0:t.href))&&(yt.string(e.source)||yt.undefined(e.source))&&(yt.undefined(e.relatedInformation)||yt.typedArray(e.relatedInformation,$le.is))}function $(e,t,...i){e={title:e,command:t};return yt.defined(i)&&0<i.length&&(e.arguments=i),e}function L(e){return yt.defined(e)&&yt.string(e.title)&&yt.string(e.command)}function R(e,t){return{range:e,newText:t}}function M(e,t){return{range:{start:e,end:e},newText:t}}function I(e){return{range:e,newText:""}}function O(e){return yt.objectLiteral(e)&&yt.string(e.newText)&&wle.is(e.range)}function P(e,t,i){e={label:e};return void 0!==t&&(e.needsConfirmation=t),void 0!==i&&(e.description=i),e}function B(e){return yt.objectLiteral(e)&&yt.string(e.label)&&(yt.boolean(e.needsConfirmation)||void 0===e.needsConfirmation)&&(yt.string(e.description)||void 0===e.description)}function F(e){return yt.string(e)}function j(e,t,i){return{range:e,newText:t,annotationId:i}}function z(e,t,i){return{range:{start:e,end:e},newText:t,annotationId:i}}function H(e,t){return{range:e,newText:"",annotationId:t}}function U(e){return Dle.is(e)&&(Ole.is(e.annotationId)||Ple.is(e.annotationId))}function q(e,t){return{textDocument:e,edits:t}}function W(e){return yt.defined(e)&&Vle.is(e.textDocument)&&Array.isArray(e.edits)}function V(e,t,i){e={kind:"create",uri:e};return void 0===t||void 0===t.overwrite&&void 0===t.ignoreIfExists||(e.options=t),void 0!==i&&(e.annotationId=i),e}function G(e){return e&&"create"===e.kind&&yt.string(e.uri)&&(void 0===e.options||(void 0===e.options.overwrite||yt.boolean(e.options.overwrite))&&(void 0===e.options.ignoreIfExists||yt.boolean(e.options.ignoreIfExists)))&&(void 0===e.annotationId||Ple.is(e.annotationId))}function Y(e,t,i,n){e={kind:"rename",oldUri:e,newUri:t};return void 0===i||void 0===i.overwrite&&void 0===i.ignoreIfExists||(e.options=i),void 0!==n&&(e.annotationId=n),e}function X(e){return e&&"rename"===e.kind&&yt.string(e.oldUri)&&yt.string(e.newUri)&&(void 0===e.options||(void 0===e.options.overwrite||yt.boolean(e.options.overwrite))&&(void 0===e.options.ignoreIfExists||yt.boolean(e.options.ignoreIfExists)))&&(void 0===e.annotationId||Ple.is(e.annotationId))}function K(e,t,i){e={kind:"delete",uri:e};return void 0===t||void 0===t.recursive&&void 0===t.ignoreIfNotExists||(e.options=t),void 0!==i&&(e.annotationId=i),e}function Z(e){return e&&"delete"===e.kind&&yt.string(e.uri)&&(void 0===e.options||(void 0===e.options.recursive||yt.boolean(e.options.recursive))&&(void 0===e.options.ignoreIfNotExists||yt.boolean(e.options.ignoreIfNotExists)))&&(void 0===e.annotationId||Ple.is(e.annotationId))}function Q(e){return e&&(void 0!==e.changes||void 0!==e.documentChanges)&&(void 0===e.documentChanges||e.documentChanges.every(e=>yt.string(e.kind)?jle.is(e)||zle.is(e)||Hle.is(e):Fle.is(e)))}function J(e){return{uri:e}}function ee(e){return yt.defined(e)&&yt.string(e.uri)}function te(e,t){return{uri:e,version:t}}function ie(e){return yt.defined(e)&&yt.string(e.uri)&&yt.integer(e.version)}function ne(e,t){return{uri:e,version:t}}function re(e){return yt.defined(e)&&yt.string(e.uri)&&(null===e.version||yt.integer(e.version))}function se(e,t,i,n){return{uri:e,languageId:t,version:i,text:n}}function ae(e){return yt.defined(e)&&yt.string(e.uri)&&yt.string(e.languageId)&&yt.integer(e.version)&&yt.string(e.text)}function oe(e){return e===n.PlainText||e===n.Markdown}function le(e){var t=e;return yt.objectLiteral(e)&&Yle.is(t.kind)&&yt.string(t.value)}function ce(e,t,i){return{newText:e,insert:t,replace:i}}function he(e){return e&&yt.string(e.newText)&&wle.is(e.insert)&&wle.is(e.replace)}function ue(e){return e&&(yt.string(e.detail)||void 0===e.detail)&&(yt.string(e.description)||void 0===e.description)}function de(e){return{label:e}}function pe(e,t){return{items:e||[],isIncomplete:!!t}}function ge(e){return e.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}function fe(e){return yt.string(e)||yt.objectLiteral(e)&&yt.string(e.language)&&yt.string(e.value)}function me(e){var t=e;return!!t&&yt.objectLiteral(t)&&(Xle.is(t.contents)||nce.is(t.contents)||yt.typedArray(t.contents,nce.is))&&(void 0===e.range||wle.is(e.range))}function ye(e,t){return t?{label:e,documentation:t}:{label:e}}function be(e,t,...i){e={label:e};return yt.defined(t)&&(e.documentation=t),yt.defined(i)?e.parameters=i:e.parameters=[],e}function ve(e,t){e={range:e};return yt.number(t)&&(e.kind=t),e}function xe(e,t,i,n,r){e={name:e,kind:t,location:{uri:n,range:i}};return r&&(e.containerName=r),e}function we(e,t,i,n){return void 0!==n?{name:e,kind:t,location:{uri:i,range:n}}:{name:e,kind:t,location:{uri:i}}}function ke(e,t,i,n,r,s){e={name:e,detail:t,kind:i,range:n,selectionRange:r};return void 0!==s&&(e.children=s),e}function Te(e){return e&&yt.string(e.name)&&yt.number(e.kind)&&wle.is(e.range)&&wle.is(e.selectionRange)&&(void 0===e.detail||yt.string(e.detail))&&(void 0===e.deprecated||yt.boolean(e.deprecated))&&(void 0===e.children||Array.isArray(e.children))&&(void 0===e.tags||Array.isArray(e.tags))}function Se(e,t,i){e={diagnostics:e};return null!=t&&(e.only=t),null!=i&&(e.triggerKind=i),e}function _e(e){return yt.defined(e)&&yt.typedArray(e.diagnostics,Ile.is)&&(void 0===e.only||yt.typedArray(e.only,yt.string))&&(void 0===e.triggerKind||e.triggerKind===gce.Invoked||e.triggerKind===gce.Automatic)}function Ce(e,t,i){let n={title:e},r=!0;return"string"==typeof t?(r=!1,n.kind=t):Nle.is(t)?n.command=t:n.edit=t,r&&void 0!==i&&(n.kind=i),n}function Ae(e){return e&&yt.string(e.title)&&(void 0===e.diagnostics||yt.typedArray(e.diagnostics,Ile.is))&&(void 0===e.kind||yt.string(e.kind))&&(void 0!==e.edit||void 0!==e.command)&&(void 0===e.command||Nle.is(e.command))&&(void 0===e.isPreferred||yt.boolean(e.isPreferred))&&(void 0===e.edit||Ule.is(e.edit))}function Ee(e,t){e={range:e};return yt.defined(t)&&(e.data=t),e}function $e(e){return yt.defined(e)&&wle.is(e.range)&&(yt.undefined(e.command)||Nle.is(e.command))}function Le(e,t){return{tabSize:e,insertSpaces:t}}function Re(e){return yt.defined(e)&&yt.uinteger(e.tabSize)&&yt.boolean(e.insertSpaces)}function Me(e,t,i){return{range:e,target:t,data:i}}function Ie(e){return yt.defined(e)&&wle.is(e.range)&&(yt.undefined(e.target)||yt.string(e.target))}function Ne(e,t){return{range:e,parent:t}}function De(e){return yt.objectLiteral(e)&&wle.is(e.range)&&(void 0===e.parent||r.is(e.parent))}function Oe(e){return yt.objectLiteral(e)&&(void 0===e.resultId||"string"==typeof e.resultId)&&Array.isArray(e.data)&&(0===e.data.length||"number"==typeof e.data[0])}function Pe(e,t){return{range:e,text:t}}function Be(e){return null!=e&&wle.is(e.range)&&yt.string(e.text)}function Fe(e,t,i){return{range:e,variableName:t,caseSensitiveLookup:i}}function je(e){return null!=e&&wle.is(e.range)&&yt.boolean(e.caseSensitiveLookup)&&(yt.string(e.variableName)||void 0===e.variableName)}function ze(e,t){return{range:e,expression:t}}function He(e){return null!=e&&wle.is(e.range)&&(yt.string(e.expression)||void 0===e.expression)}function Ue(e,t){return{frameId:e,stoppedLocation:t}}function qe(e){return yt.defined(e)&&wle.is(e.stoppedLocation)}function We(e){return 1===e||2===e}function Ve(e){return{value:e}}function Ge(e){return yt.objectLiteral(e)&&(void 0===e.tooltip||yt.string(e.tooltip)||Xle.is(e.tooltip))&&(void 0===e.location||kle.is(e.location))&&(void 0===e.command||Nle.is(e.command))}function Ye(e,t,i){e={position:e,label:t};return void 0!==i&&(e.kind=i),e}function Xe(e){return yt.objectLiteral(e)&&xle.is(e.position)&&(yt.string(e.label)||yt.typedArray(e.label,$ce.is))&&(void 0===e.kind||Ece.is(e.kind))&&void 0===e.textEdits||yt.typedArray(e.textEdits,Dle.is)&&(void 0===e.tooltip||yt.string(e.tooltip)||Xle.is(e.tooltip))&&(void 0===e.paddingLeft||yt.boolean(e.paddingLeft))&&(void 0===e.paddingRight||yt.boolean(e.paddingRight))}function Ke(e){return{kind:"snippet",value:e}}function Ze(e,t,i,n){return{insertText:e,filterText:t,range:i,command:n}}function Qe(e){return{items:e}}function Je(e,t){return{range:e,text:t}}function et(e,t){return{triggerKind:e,selectedCompletionInfo:t}}function tt(e){return yt.objectLiteral(e)&&yle.is(e.uri)&&yt.string(e.name)}function it(e,t,i,n){return new Fce(e,t,i,n)}function nt(e){return!!(yt.defined(e)&&yt.string(e.uri)&&(yt.undefined(e.languageId)||yt.string(e.languageId))&&yt.uinteger(e.lineCount)&&yt.func(e.getText)&&yt.func(e.positionAt)&&yt.func(e.offsetAt))}function rt(t,e){let i=t.getText(),n=N(e,(e,t)=>{var i=e.range.start.line-t.range.start.line;return 0==i?e.range.start.character-t.range.start.character:i}),r=i.length;for(let e=n.length-1;0<=e;e--){var s=n[e],a=t.offsetAt(s.range.start),o=t.offsetAt(s.range.end);if(!(o<=r))throw new Error("Overlapping edit");i=i.substring(0,a)+s.newText+i.substring(o,i.length),r=a}return i}function N(n,r){if(!(n.length<=1)){var s=n.length/2|0,a=n.slice(0,s),o=n.slice(s);N(a,r),N(o,r);let e=0,t=0,i=0;for(;e<a.length&&t<o.length;)r(a[e],o[t])<=0?n[i++]=a[e++]:n[i++]=o[t++];for(;e<a.length;)n[i++]=a[e++];for(;t<o.length;)n[i++]=o[t++]}return n}D=mle=mle||{},mt(e,"is"),D.is=e,D=yle=yle||{},mt(s,"is"),D.is=s,(t=ble=ble||{}).MIN_VALUE=-2147483648,t.MAX_VALUE=2147483647,mt(a,"is"),t.is=a,(i=vle=vle||{}).MIN_VALUE=0,i.MAX_VALUE=2147483647,mt(o,"is"),i.is=o,D=xle=xle||{},mt(l,"create"),D.create=l,mt(c,"is"),D.is=c,D=wle=wle||{},mt(h,"create"),D.create=h,mt(u,"is"),D.is=u,D=kle=kle||{},mt(d,"create"),D.create=d,mt(p,"is"),D.is=p,D=Tle=Tle||{},mt(g,"create"),D.create=g,mt(f,"is"),D.is=f,D=Sle=Sle||{},mt(m,"create"),D.create=m,mt(y,"is"),D.is=y,D=_le=_le||{},mt(b,"create"),D.create=b,mt(v,"is"),D.is=v,D=Cle=Cle||{},mt(x,"create"),D.create=x,mt(w,"is"),D.is=w,(D=Ale=Ale||{}).Comment="comment",D.Imports="imports",D.Region="region",D=Ele=Ele||{},mt(k,"create"),D.create=k,mt(T,"is"),D.is=T,D=$le=$le||{},mt(S,"create"),D.create=S,mt(_,"is"),D.is=_,(D=Lle=Lle||{}).Error=1,D.Warning=2,D.Information=3,D.Hint=4,(D=Rle=Rle||{}).Unnecessary=1,D.Deprecated=2,D=Mle=Mle||{},mt(C,"is"),D.is=C,D=Ile=Ile||{},mt(A,"create"),D.create=A,mt(E,"is"),D.is=E,D=Nle=Nle||{},mt($,"create"),D.create=$,mt(L,"is"),D.is=L,D=Dle=Dle||{},mt(R,"replace"),D.replace=R,mt(M,"insert"),D.insert=M,mt(I,"del"),D.del=I,mt(O,"is"),D.is=O,D=Ole=Ole||{},mt(P,"create"),D.create=P,mt(B,"is"),D.is=B,D=Ple=Ple||{},mt(F,"is"),D.is=F,D=Ble=Ble||{},mt(j,"replace"),D.replace=j,mt(z,"insert"),D.insert=z,mt(H,"del"),D.del=H,mt(U,"is"),D.is=U,D=Fle=Fle||{},mt(q,"create"),D.create=q,mt(W,"is"),D.is=W,D=jle=jle||{},mt(V,"create"),D.create=V,mt(G,"is"),D.is=G,D=zle=zle||{},mt(Y,"create"),D.create=Y,mt(X,"is"),D.is=X,D=Hle=Hle||{},mt(K,"create"),D.create=K,mt(Z,"is"),D.is=Z,D=Ule=Ule||{},mt(Q,"is"),D.is=Q,D=qle=qle||{},mt(J,"create"),D.create=J,mt(ee,"is"),D.is=ee,D=Wle=Wle||{},mt(te,"create"),D.create=te,mt(ie,"is"),D.is=ie,D=Vle=Vle||{},mt(ne,"create"),D.create=ne,mt(re,"is"),D.is=re,D=Gle=Gle||{},mt(se,"create"),D.create=se,mt(ae,"is"),D.is=ae,(n=Yle=Yle||{}).PlainText="plaintext",n.Markdown="markdown",mt(oe,"is"),n.is=oe,D=Xle=Xle||{},mt(le,"is"),D.is=le,(D=Kle=Kle||{}).Text=1,D.Method=2,D.Function=3,D.Constructor=4,D.Field=5,D.Variable=6,D.Class=7,D.Interface=8,D.Module=9,D.Property=10,D.Unit=11,D.Value=12,D.Enum=13,D.Keyword=14,D.Snippet=15,D.Color=16,D.File=17,D.Reference=18,D.Folder=19,D.EnumMember=20,D.Constant=21,D.Struct=22,D.Event=23,D.Operator=24,D.TypeParameter=25,(D=Zle=Zle||{}).PlainText=1,D.Snippet=2,0,D=Qle=Qle||{},mt(ce,"create"),D.create=ce,mt(he,"is"),D.is=he,(D=Jle=Jle||{}).asIs=1,D.adjustIndentation=2,D=ece=ece||{},mt(ue,"is"),D.is=ue,D=tce=tce||{},mt(de,"create"),D.create=de,D=ice=ice||{},mt(pe,"create"),D.create=pe,D=nce=nce||{},mt(ge,"fromPlainText"),D.fromPlainText=ge,mt(fe,"is"),D.is=fe,D=rce=rce||{},mt(me,"is"),D.is=me,D=sce=sce||{},mt(ye,"create"),D.create=ye,D=ace=ace||{},mt(be,"create"),D.create=be,(D=oce=oce||{}).Text=1,D.Read=2,D.Write=3,D=lce=lce||{},mt(ve,"create"),D.create=ve,(D=cce=cce||{}).File=1,D.Module=2,D.Namespace=3,D.Package=4,D.Class=5,D.Method=6,D.Property=7,D.Field=8,D.Constructor=9,D.Enum=10,D.Interface=11,D.Function=12,D.Variable=13,D.Constant=14,D.String=15,D.Number=16,D.Boolean=17,D.Array=18,D.Object=19,D.Key=20,D.Null=21,D.EnumMember=22,D.Struct=23,D.Event=24,D.Operator=25,D.TypeParameter=26,0,D=hce=hce||{},mt(xe,"create"),D.create=xe,D=uce=uce||{},mt(we,"create"),D.create=we,D=dce=dce||{},mt(ke,"create"),D.create=ke,mt(Te,"is"),D.is=Te,(D=pce=pce||{}).Empty="",D.QuickFix="quickfix",D.Refactor="refactor",D.RefactorExtract="refactor.extract",D.RefactorInline="refactor.inline",D.RefactorRewrite="refactor.rewrite",D.Source="source",D.SourceOrganizeImports="source.organizeImports",D.SourceFixAll="source.fixAll",(D=gce=gce||{}).Invoked=1,D.Automatic=2,D=fce=fce||{},mt(Se,"create"),D.create=Se,mt(_e,"is"),D.is=_e,D=mce=mce||{},mt(Ce,"create"),D.create=Ce,mt(Ae,"is"),D.is=Ae,D=yce=yce||{},mt(Ee,"create"),D.create=Ee,mt($e,"is"),D.is=$e,D=bce=bce||{},mt(Le,"create"),D.create=Le,mt(Re,"is"),D.is=Re,D=vce=vce||{},mt(Me,"create"),D.create=Me,mt(Ie,"is"),D.is=Ie,r=xce=xce||{},mt(Ne,"create"),r.create=Ne,mt(De,"is"),r.is=De,(D=wce=wce||{}).namespace="namespace",D.type="type",D.class="class",D.enum="enum",D.interface="interface",D.struct="struct",D.typeParameter="typeParameter",D.parameter="parameter",D.variable="variable",D.property="property",D.enumMember="enumMember",D.event="event",D.function="function",D.method="method",D.macro="macro",D.keyword="keyword",D.modifier="modifier",D.comment="comment",D.string="string",D.number="number",D.regexp="regexp",D.operator="operator",D.decorator="decorator",(D=kce=kce||{}).declaration="declaration",D.definition="definition",D.readonly="readonly",D.static="static",D.deprecated="deprecated",D.abstract="abstract",D.async="async",D.modification="modification",D.documentation="documentation",D.defaultLibrary="defaultLibrary",D=Tce=Tce||{},mt(Oe,"is"),D.is=Oe,D=Sce=Sce||{},mt(Pe,"create"),D.create=Pe,mt(Be,"is"),D.is=Be,D=_ce=_ce||{},mt(Fe,"create"),D.create=Fe,mt(je,"is"),D.is=je,D=Cce=Cce||{},mt(ze,"create"),D.create=ze,mt(He,"is"),D.is=He,D=Ace=Ace||{},mt(Ue,"create"),D.create=Ue,mt(qe,"is"),D.is=qe,(D=Ece=Ece||{}).Type=1,D.Parameter=2,mt(We,"is"),D.is=We,D=$ce=$ce||{},mt(Ve,"create"),D.create=Ve,mt(Ge,"is"),D.is=Ge,D=Lce=Lce||{},mt(Ye,"create"),D.create=Ye,mt(Xe,"is"),D.is=Xe,D=Rce=Rce||{},mt(Ke,"createSnippet"),D.createSnippet=Ke,D=Mce=Mce||{},mt(Ze,"create"),D.create=Ze,D=Ice=Ice||{},mt(Qe,"create"),D.create=Qe,(D=Nce=Nce||{}).Invoked=0,D.Automatic=1,D=Dce=Dce||{},mt(Je,"create"),D.create=Je,D=Oce=Oce||{},mt(et,"create"),D.create=et,D=Pce=Pce||{},mt(tt,"is"),D.is=tt,D=Bce=Bce||{},mt(it,"create"),D.create=it,mt(nt,"is"),D.is=nt,mt(rt,"applyEdits"),D.applyEdits=rt,mt(N,"mergeSort"),Fce=class{static{mt(this,"FullTextDocument")}constructor(e,t,i,n){this._uri=e,this._languageId=t,this._version=i,this._content=n,this._lineOffsets=void 0}get uri(){return this._uri}get languageId(){return this._languageId}get version(){return this._version}getText(e){var t;return e?(t=this.offsetAt(e.start),e=this.offsetAt(e.end),this._content.substring(t,e)):this._content}update(e,t){this._content=e.text,this._version=t,this._lineOffsets=void 0}getLineOffsets(){if(void 0===this._lineOffsets){let t=[],i=this._content,n=!0;for(let e=0;e<i.length;e++){n&&(t.push(e),n=!1);var r=i.charAt(e);n="\r"===r||r===`
|
||
`,"\r"===r&&e+1<i.length&&i.charAt(e+1)===`
|
||
`&&e++}n&&0<i.length&&t.push(i.length),this._lineOffsets=t}return this._lineOffsets}positionAt(e){e=Math.max(Math.min(e,this._content.length),0);let t=this.getLineOffsets(),i=0,n=t.length;if(0===n)return xle.create(0,e);for(;i<n;){var r=Math.floor((i+n)/2);t[r]>e?n=r:i=r+1}var s=i-1;return xle.create(s,e-t[s])}offsetAt(e){var t,i=this.getLineOffsets();return e.line>=i.length?this._content.length:e.line<0?0:(t=i[e.line],i=e.line+1<i.length?i[e.line+1]:this._content.length,Math.max(Math.min(t+e.character,i),t))}get lineCount(){return this.getLineOffsets().length}};{var D=yt=yt||{};let n=Object.prototype.toString;function st(e){return typeof e<"u"}function at(e){return"u"<typeof e}function ot(e){return!0===e||!1===e}function lt(e){return"[object String]"===n.call(e)}function ct(e){return"[object Number]"===n.call(e)}function ht(e,t,i){return"[object Number]"===n.call(e)&&t<=e&&e<=i}function ut(e){return"[object Number]"===n.call(e)&&-2147483648<=e&&e<=2147483647}function dt(e){return"[object Number]"===n.call(e)&&0<=e&&e<=2147483647}function pt(e){return"[object Function]"===n.call(e)}function gt(e){return null!==e&&"object"==typeof e}function ft(e,t){return Array.isArray(e)&&e.every(t)}mt(st,"defined"),D.defined=st,mt(at,"undefined"),D.undefined=at,mt(ot,"boolean"),D.boolean=ot,mt(lt,"string"),D.string=lt,mt(ct,"number"),D.number=ct,mt(ht,"numberRange"),D.numberRange=ht,mt(ut,"integer"),D.integer=ut,mt(dt,"uinteger"),D.uinteger=dt,mt(pt,"func"),D.func=pt,mt(gt,"objectLiteral"),D.objectLiteral=gt,mt(ft,"typedArray"),D.typedArray=ft}}),Xce=e(()=>{"use strict";Yce(),lQ(),jce=class{static{mt(this,"CstNodeBuilder")}constructor(){this.nodeStack=[]}get current(){var e;return null!=(e=this.nodeStack[this.nodeStack.length-1])?e:this.rootNode}buildRootNode(e){return this.rootNode=new Wce(e),this.rootNode.root=this.rootNode,this.nodeStack=[this.rootNode],this.rootNode}buildCompositeNode(e){var t=new Uce;return t.grammarSource=e,t.root=this.rootNode,this.current.content.push(t),this.nodeStack.push(t),t}buildLeafNode(e,t){e=new Hce(e.startOffset,e.image.length,qZ(e),e.tokenType,!t);return e.grammarSource=t,e.root=this.rootNode,this.current.content.push(e),e}removeNode(e){var t=e.container;t&&0<=(e=t.content.indexOf(e))&&t.content.splice(e,1)}addHiddenNodes(e){var t,i=[];for(t of e){var n=new Hce(t.startOffset,t.image.length,qZ(t),t.tokenType,!0);n.root=this.rootNode,i.push(n)}let r=this.current,s=!1;if(0<r.content.length)r.content.push(...i);else{for(;r.container;){var a=r.container.content.indexOf(r);if(0<a){r.container.content.splice(a,0,...i),s=!0;break}r=r.container}s||this.rootNode.content.unshift(...i)}}construct(e){var t=this.current,e=("string"==typeof e.$type&&(this.current.astNode=e),e.$cstNode=t,this.nodeStack.pop());0===e?.content.length&&this.removeNode(e)}},zce=class{static{mt(this,"AbstractCstNode")}get parent(){return this.container}get feature(){return this.grammarSource}get hidden(){return!1}get astNode(){var e="string"==typeof(null==(e=this._astNode)?void 0:e.$type)?this._astNode:null==(e=this.container)?void 0:e.astNode;if(e)return e;throw new Error("This node has no associated AST element")}set astNode(e){this._astNode=e}get element(){return this.astNode}get text(){return this.root.fullText.substring(this.offset,this.end)}},Hce=class extends zce{static{mt(this,"LeafCstNodeImpl")}get offset(){return this._offset}get length(){return this._length}get end(){return this._offset+this._length}get hidden(){return this._hidden}get tokenType(){return this._tokenType}get range(){return this._range}constructor(e,t,i,n,r=!1){super(),this._hidden=r,this._offset=e,this._tokenType=n,this._length=t,this._range=i}},Uce=class extends zce{static{mt(this,"CompositeCstNodeImpl")}constructor(){super(...arguments),this.content=new qce(this)}get children(){return this.content}get offset(){var e;return null!=(e=null==(e=this.firstNonHiddenNode)?void 0:e.offset)?e:0}get length(){return this.end-this.offset}get end(){var e;return null!=(e=null==(e=this.lastNonHiddenNode)?void 0:e.end)?e:0}get range(){var e=this.firstNonHiddenNode,t=this.lastNonHiddenNode;return e&&t?(void 0===this._rangeCache&&(e=e["range"],t=t["range"],this._rangeCache={start:e.start,end:t.end.line<e.start.line?e.start:t.end}),this._rangeCache):{start:xle.create(0,0),end:xle.create(0,0)}}get firstNonHiddenNode(){for(var e of this.content)if(!e.hidden)return e;return this.content[0]}get lastNonHiddenNode(){for(let e=this.content.length-1;0<=e;e--){var t=this.content[e];if(!t.hidden)return t}return this.content[this.content.length-1]}},qce=class t extends Array{static{mt(this,"CstNodeContainer")}constructor(e){super(),this.parent=e,Object.setPrototypeOf(this,t.prototype)}push(...e){return this.addParents(e),super.push(...e)}unshift(...e){return this.addParents(e),super.unshift(...e)}splice(e,t,...i){return this.addParents(i),super.splice(e,t,...i)}addParents(e){for(var t of e)t.container=this.parent}},Wce=class extends Uce{static{mt(this,"RootCstNodeImpl")}get text(){return this._text.substring(this.offset,this.end)}get fullText(){return this._text}constructor(e){super(),this._text="",this._text=e??""}}});function Kce(e){return e.$type===Zce}var Zce,Qce,Jce,ehe,the,ihe,nhe,rhe,she,ahe=e(()=>{"use strict";Kae(),Gce(),iee(),Pte(),bee(),Xce(),Zce=Symbol("Datatype"),mt(Kce,"isDataTypeNode"),Qce=mt(e=>e.endsWith("")?e:e+"","withRuleSuffix"),Jce=class{static{mt(this,"AbstractLangiumParser")}constructor(e){this._unorderedGroups=new Map,this.allRules=new Map,this.lexer=e.parser.Lexer;var t=this.lexer.definition,i="production"===e.LanguageMetaData.mode;this.wrapper=new she(t,Object.assign(Object.assign({},e.parser.ParserConfig),{skipValidations:i,errorMessageProvider:e.parser.ParserErrorMessageProvider}))}alternatives(e,t){this.wrapper.wrapOr(e,t)}optional(e,t){this.wrapper.wrapOption(e,t)}many(e,t){this.wrapper.wrapMany(e,t)}atLeastOne(e,t){this.wrapper.wrapAtLeastOne(e,t)}getRule(e){return this.allRules.get(e)}isRecording(){return this.wrapper.IS_RECORDING}get unorderedGroups(){return this._unorderedGroups}getRuleStack(){return this.wrapper.RULE_STACK}finalize(){this.wrapper.wrapSelfAnalysis()}},ehe=class extends Jce{static{mt(this,"LangiumParser")}get current(){return this.stack[this.stack.length-1]}constructor(e){super(e),this.nodeBuilder=new jce,this.stack=[],this.assignmentMap=new Map,this.linker=e.references.Linker,this.converter=e.parser.ValueConverter,this.astReflection=e.shared.AstReflection}rule(e,t){var i=this.computeRuleType(e),i=this.wrapper.DEFINE_RULE(Qce(e.name),this.startImplementation(i,t).bind(this));return this.allRules.set(e.name,i),e.entry&&(this.mainRule=i),i}computeRuleType(e){if(!e.fragment)return bte(e)?Zce:kte(e)??e.name}parse(e,t={}){this.nodeBuilder.buildRootNode(e);var e=this.lexerResult=this.lexer.tokenize(e),i=(this.wrapper.input=e.tokens,t.rule?this.allRules.get(t.rule):this.mainRule);if(i)return i=i.call(this.wrapper,{}),this.nodeBuilder.addHiddenNodes(e.hidden),this.unorderedGroups.clear(),this.lexerResult=void 0,{value:i,lexerErrors:e.errors,lexerReport:e.report,parserErrors:this.wrapper.errors};throw new Error(t.rule?`No rule found with name '${t.rule}'`:"No main rule available.")}startImplementation(r,s){return e=>{var t,i=!this.isRecording()&&void 0!==r;i&&(this.stack.push(t={$type:r}),r===Zce)&&(t.value="");let n;try{n=s(e)}catch{n=void 0}return n=void 0===n&&i?this.construct():n}}extractHiddenTokens(e){var t=this.lexerResult.hidden;if(!t.length)return[];var i=e.startOffset;for(let e=0;e<t.length;e++)if(t[e].startOffset>i)return t.splice(0,e);return t.splice(0,t.length)}consume(t,i,n){t=this.wrapper.wrapConsume(t,i);if(!this.isRecording()&&this.isValidToken(t)){var i=this.extractHiddenTokens(t),i=(this.nodeBuilder.addHiddenNodes(i),this.nodeBuilder.buildLeafNode(t,n)),{assignment:e,isCrossRef:r}=this.getAssignment(n),s=this.current;if(e){var a=ZQ(n)?t.image:this.converter.convert(t.image,i);this.assign(e.operator,e.feature,a,i,r)}else if(Kce(s)){let e=t.image;ZQ(n)||(e=this.converter.convert(e,i).toString()),s.value+=e}}}isValidToken(e){return!e.isInsertedInRecovery&&!isNaN(e.startOffset)&&"number"==typeof e.endOffset&&!isNaN(e.endOffset)}subrule(e,t,i,n,r){let s;this.isRecording()||i||(s=this.nodeBuilder.buildCompositeNode(n));i=this.wrapper.wrapSubrule(e,t,r);!this.isRecording()&&s&&0<s.length&&this.performSubruleAssignment(i,n,s)}performSubruleAssignment(e,t,i){var{assignment:t,isCrossRef:n}=this.getAssignment(t);t?this.assign(t.operator,t.feature,e,i,n):Kce(t=this.current)?t.value+=e.toString():"object"==typeof e&&e&&(i=this.assignWithoutOverride(e,t),this.stack.pop(),this.stack.push(i))}action(t,i){if(!this.isRecording()){let e=this.current;i.feature&&i.operator?(e=this.construct(),this.nodeBuilder.removeNode(e.$cstNode),this.nodeBuilder.buildCompositeNode(i).content.push(e.$cstNode),this.stack.push({$type:t}),this.assign(i.operator,i.feature,e,e.$cstNode,!1)):e.$type=t}}construct(){var e;if(!this.isRecording())return ree(e=this.current),this.nodeBuilder.construct(e),this.stack.pop(),Kce(e)?this.converter.convert(e.value,e.$cstNode):(fee(this.astReflection,e),e)}getAssignment(e){var t;return this.assignmentMap.has(e)||(t=see(e,VQ),this.assignmentMap.set(e,{assignment:t,isCrossRef:!!t&&YQ(t.terminal)})),this.assignmentMap.get(e)}assign(e,t,i,n,r){let s=this.current,a;switch(a=r&&"string"==typeof i?this.linker.buildReference(s,t,n,i):i,e){case"=":s[t]=a;break;case"?=":s[t]=!0;break;case"+=":Array.isArray(s[t])||(s[t]=[]),s[t].push(a)}}assignWithoutOverride(e,t){for(var[i,n]of Object.entries(t)){var r=e[i];void 0===r?e[i]=n:Array.isArray(r)&&Array.isArray(n)&&(n.push(...r),e[i]=n)}t=e.$cstNode;return t&&(t.astNode=void 0,e.$cstNode=void 0),e}get definitionErrors(){return this.wrapper.definitionErrors}},the=class{static{mt(this,"AbstractParserErrorMessageProvider")}buildMismatchTokenMessage(e){return yre.buildMismatchTokenMessage(e)}buildNotAllInputParsedMessage(e){return yre.buildNotAllInputParsedMessage(e)}buildNoViableAltMessage(e){return yre.buildNoViableAltMessage(e)}buildEarlyExitMessage(e){return yre.buildEarlyExitMessage(e)}},ihe=class extends the{static{mt(this,"LangiumParserErrorMessageProvider")}buildMismatchTokenMessage({expected:e,actual:t}){return`Expecting ${e.LABEL?"`"+e.LABEL+"`":e.name.endsWith(":KW")?`keyword '${e.name.substring(0,e.name.length-3)}'`:`token of type '${e.name}'`} but found \`${t.image}\`.`}buildNotAllInputParsedMessage({firstRedundant:e}){return`Expecting end of file but found \`${e.image}\`.`}},nhe=class extends Jce{static{mt(this,"LangiumCompletionParser")}constructor(){super(...arguments),this.tokens=[],this.elementStack=[],this.lastElementStack=[],this.nextTokenIndex=0,this.stackSize=0}action(){}construct(){}parse(e){this.resetState();e=this.lexer.tokenize(e,{mode:"partial"});return this.tokens=e.tokens,this.wrapper.input=[...this.tokens],this.mainRule.call(this.wrapper,{}),this.unorderedGroups.clear(),{tokens:this.tokens,elementStack:[...this.lastElementStack],tokenIndex:this.nextTokenIndex}}rule(e,t){t=this.wrapper.DEFINE_RULE(Qce(e.name),this.startImplementation(t).bind(this));return this.allRules.set(e.name,t),e.entry&&(this.mainRule=t),t}resetState(){this.elementStack=[],this.lastElementStack=[],this.nextTokenIndex=0,this.stackSize=0}startImplementation(i){return e=>{var t=this.keepStackSize();try{i(e)}finally{this.resetStackSize(t)}}}removeUnexpectedElements(){this.elementStack.splice(this.stackSize)}keepStackSize(){var e=this.elementStack.length;return this.stackSize=e}resetStackSize(e){this.removeUnexpectedElements(),this.stackSize=e}consume(e,t,i){this.wrapper.wrapConsume(e,t),this.isRecording()||(this.lastElementStack=[...this.elementStack,i],this.nextTokenIndex=this.currIdx+1)}subrule(e,t,i,n,r){this.before(n),this.wrapper.wrapSubrule(e,t,r),this.after(n)}before(e){this.isRecording()||this.elementStack.push(e)}after(e){this.isRecording()||0<=(e=this.elementStack.lastIndexOf(e))&&this.elementStack.splice(e)}get currIdx(){return this.wrapper.currIdx}},rhe={recoveryEnabled:!0,nodeLocationTracking:"full",skipValidations:!0,errorMessageProvider:new ihe},she=class extends qae{static{mt(this,"ChevrotainWrapper")}constructor(e,t){var i=t&&"maxLookahead"in t;super(e,Object.assign(Object.assign(Object.assign({},rhe),{lookaheadStrategy:i?new Hse({maxLookahead:t.maxLookahead}):new fle({logging:t.skipValidations?()=>{}:void 0})}),t))}get IS_RECORDING(){return this.RECORDING_PHASE}DEFINE_RULE(e,t){return this.RULE(e,t)}wrapSelfAnalysis(){this.performSelfAnalysis()}wrapConsume(e,t){return this.consume(e,t)}wrapSubrule(e,t,i){return this.subrule(e,t,{ARGS:[i]})}wrapOr(e,t){this.or(e,t)}wrapOption(e,t){this.option(e,t)}wrapMany(e,t){this.many(e,t)}wrapAtLeastOne(e,t){this.atLeastOne(e,t)}}});function ohe(e,t,i){return lhe({parser:t,tokens:i,ruleNames:new Map},e),t}function lhe(e,t){let i=tte(t,!1),n=IZ(t.rules).filter(DQ).filter(e=>i.has(e));for(var r of n){var s=Object.assign(Object.assign({},e),{consume:1,optional:1,subrule:1,many:1,or:1});e.parser.rule(r,che(s,r.definition))}}function che(t,i,e=!1){let n;if(ZQ(i))n=vhe(t,i);else if(qQ(i))n=hhe(t,i);else if(VQ(i))n=che(t,i.terminal);else if(YQ(i))n=bhe(t,i);else if(eJ(i))n=uhe(t,i);else if(WQ(i))n=ghe(t,i);else if(rJ(i))n=fhe(t,i);else if(KQ(i))n=mhe(t,i);else{if(!XQ(i))throw new hQ(i.$cstNode,"Unexpected element type: "+i.$type);{let e=t.consume++;n=mt(()=>t.parser.consume(e,mre,i),"method")}}return xhe(t,e?void 0:yhe(i),n,i.cardinality)}function hhe(e,t){let i=Tte(t);return()=>e.parser.action(i,t)}function uhe(r,s){let a=s.rule.ref;if(DQ(a)){let t=r.subrule++,i=a.fragment,n=0<s.arguments.length?dhe(a,s.arguments):()=>({});return e=>r.parser.subrule(t,whe(r,a),i,s,n(e))}if(jQ(a)){let e=r.consume++,t=The(r,a.name);return()=>r.parser.consume(e,t,s)}if(!a)throw new hQ(s.$cstNode,"Undefined rule: "+s.rule.$refText);cQ(a)}function dhe(s,e){let a=e.map(e=>phe(e.value));return t=>{var i={};for(let e=0;e<a.length;e++){var n=s.parameters[e],r=a[e];i[n.name]=r(t)}return i}}function phe(n){if(_Q(n)){let t=phe(n.left),i=phe(n.right);return e=>t(e)||i(e)}if(SQ(n)){let t=phe(n.left),i=phe(n.right);return e=>t(e)&&i(e)}if(RQ(n)){let t=phe(n.value);return e=>!t(e)}if(NQ(n)){let t=n.parameter.ref.name;return e=>void 0!==e&&!0===e[t]}if(TQ(n)){let e=!!n.true;return()=>e}cQ()}function ghe(i,n){if(1===n.elements.length)return che(i,n.elements[0]);{let e=[];for(var r of n.elements){var s={ALT:che(i,r,!0)},r=yhe(r);r&&(s.GATE=phe(r)),e.push(s)}let t=i.or++;return n=>i.parser.alternatives(t,e.map(e=>{let t={ALT:mt(()=>e.ALT(n),"ALT")},i=e.GATE;return i&&(t.GATE=()=>i(n)),t}))}}function fhe(a,e){if(1===e.elements.length)return che(a,e.elements[0]);let t=[];for(var i of e.elements){var n={ALT:che(a,i,!0)},i=yhe(i);i&&(n.GATE=phe(i)),t.push(n)}let o=a.or++,l=mt((e,t)=>{return`uGroup_${e}_`+t.getRuleStack().join("-")},"idFunc"),r=mt(s=>a.parser.alternatives(o,t.map((t,i)=>{let e={ALT:mt(()=>!0,"ALT")},n=a.parser,r=(e.ALT=()=>{var e;t.ALT(s),n.isRecording()||(e=l(o,n),n.unorderedGroups.get(e)||n.unorderedGroups.set(e,[]),"u"<typeof(e=n.unorderedGroups.get(e))?.[i]&&(e[i]=!0))},t.GATE);return r?e.GATE=()=>r(s):e.GATE=()=>{return!n.unorderedGroups.get(l(o,n))?.[i]},e})),"alternatives"),s=xhe(a,yhe(e),r,"*");return e=>{s(e),a.parser.isRecording()||a.parser.unorderedGroups.delete(l(o,a.parser))}}function mhe(t,e){let i=e.elements.map(e=>che(t,e));return t=>i.forEach(e=>e(t))}function yhe(e){if(KQ(e))return e.guardCondition}function bhe(n,r,s=r.terminal){if(s){if(eJ(s)&&DQ(s.rule.ref)){let t=s.rule.ref,i=n.subrule++;return e=>n.parser.subrule(i,whe(n,t),!1,r,e)}if(eJ(s)&&jQ(s.rule.ref)){let e=n.consume++,t=The(n,s.rule.ref.name);return()=>n.parser.consume(e,t,r)}if(ZQ(s)){let e=n.consume++,t=The(n,s.value);return()=>n.parser.consume(e,t,r)}throw new Error("Could not build cross reference parser")}if(!r.type.ref)throw new Error("Could not resolve reference to type: "+r.type.$refText);s=dte(r.type.ref)?.terminal;if(s)return bhe(n,r,s);throw new Error("Could not find name assignment for type: "+Tte(r.type.ref))}function vhe(e,t){let i=e.consume++,n=e.tokens[t.value];if(n)return()=>e.parser.consume(i,n,t);throw new Error("Could not find token for keyword: "+t.value)}function xhe(n,e,r,t){let s=e&&phe(e);if(!t){if(s){let t=n.or++;return e=>n.parser.alternatives(t,[{ALT:mt(()=>r(e),"ALT"),GATE:mt(()=>s(e),"GATE")},{ALT:Bae(),GATE:mt(()=>!s(e),"GATE")}])}return r}if("*"===t){let t=n.many++;return e=>n.parser.many(t,{DEF:mt(()=>r(e),"DEF"),GATE:s?()=>s(e):void 0})}if("+"===t){let i=n.many++;if(s){let t=n.or++;return e=>n.parser.alternatives(t,[{ALT:mt(()=>n.parser.atLeastOne(i,{DEF:mt(()=>r(e),"DEF")}),"ALT"),GATE:mt(()=>s(e),"GATE")},{ALT:Bae(),GATE:mt(()=>!s(e),"GATE")}])}return e=>n.parser.atLeastOne(i,{DEF:mt(()=>r(e),"DEF")})}if("?"===t){let t=n.optional++;return e=>n.parser.optional(t,{DEF:mt(()=>r(e),"DEF"),GATE:s?()=>s(e):void 0})}cQ()}function whe(e,t){t=khe(e,t),e=e.parser.getRule(t);if(e)return e;throw new Error(`Rule "${t}" not found."`)}function khe(n,r){if(DQ(r))return r.name;if(n.ruleNames.has(r))return n.ruleNames.get(r);{let e=r,t=e.$container,i=r.$type;for(;!DQ(t);)(KQ(t)||WQ(t)||rJ(t))&&(i=t.elements.indexOf(e).toString()+":"+i),t=(e=t).$container;return i=t.name+":"+i,n.ruleNames.set(r,i),i}}function The(e,t){e=e.tokens[t];if(e)return e;throw new Error(`Token "${t}" not found."`)}var She=e(()=>{"use strict";Kae(),iee(),uQ(),FZ(),Pte(),mt(ohe,"createParser"),mt(lhe,"buildRules"),mt(che,"buildElement"),mt(hhe,"buildAction"),mt(uhe,"buildRuleCall"),mt(dhe,"buildRuleCallPredicate"),mt(phe,"buildPredicate"),mt(ghe,"buildAlternatives"),mt(fhe,"buildUnorderedGroup"),mt(mhe,"buildGroup"),mt(yhe,"getGuardCondition"),mt(bhe,"buildCrossReference"),mt(vhe,"buildKeyword"),mt(xhe,"wrap"),mt(whe,"getRule"),mt(khe,"getRuleName"),mt(The,"getToken")});function _he(e){var t=e.Grammar,i=e.parser.Lexer,e=new nhe(e);return ohe(t,e,i.definition),e.finalize(),e}var Che=e(()=>{"use strict";ahe(),She(),mt(_he,"createCompletionParser")});function Ahe(e){e=Ehe(e);return e.finalize(),e}function Ehe(e){var t=e.Grammar,i=e.parser.Lexer;return ohe(t,new ehe(e),i.definition)}var $he,Lhe,Rhe,Mhe=e(()=>{"use strict";ahe(),She(),mt(Ahe,"createLangiumParser"),mt(Ehe,"prepareLangiumParser")}),Ihe=e(()=>{"use strict";Kae(),iee(),bee(),Pte(),Zee(),FZ(),$he=class{static{mt(this,"DefaultTokenBuilder")}constructor(){this.diagnostics=[]}buildTokens(e,t){let i=IZ(tte(e,!1)),n=this.buildTerminalTokens(i),r=this.buildKeywordTokens(i,n,t);return n.forEach(e=>{var t=e.PATTERN;"object"==typeof t&&t&&"test"in t&&zee(t)?r.unshift(e):r.push(e)}),r}flushLexingReport(e){return{diagnostics:this.popDiagnostics()}}popDiagnostics(){var e=[...this.diagnostics];return this.diagnostics=[],e}buildTerminalTokens(e){return e.filter(jQ).filter(e=>!e.fragment).map(e=>this.buildTerminalToken(e)).toArray()}buildTerminalToken(e){var t=Ate(e),i=this.requiresCustomPattern(t)?this.regexPatternFunction(t):t,n={name:e.name,PATTERN:i};return"function"==typeof i&&(n.LINE_BREAKS=!0),e.hidden&&(n.GROUP=zee(t)?Zne.SKIPPED:"hidden"),n}requiresCustomPattern(e){return!!(e.flags.includes("u")||e.flags.includes("s")||e.source.includes("?<=")||e.source.includes("?<!"))}regexPatternFunction(e){let i=new RegExp(e,e.flags+"y");return(e,t)=>(i.lastIndex=t,i.exec(e))}buildKeywordTokens(e,t,i){return e.filter(DQ).flatMap(e=>hee(e).filter(ZQ)).distinct(e=>e.value).toArray().sort((e,t)=>t.value.length-e.value.length).map(e=>this.buildKeywordToken(e,t,!!i?.caseInsensitive))}buildKeywordToken(e,t,i){i=this.buildKeywordPattern(e,i),e={name:e.value,PATTERN:i,LONGER_ALT:this.findLongerAlt(e,t)};return"function"==typeof i&&(e.LINE_BREAKS=!0),e}buildKeywordPattern(e,t){return t?new RegExp(Uee(e.value)):e.value}findLongerAlt(n,e){return e.reduce((e,t)=>{var i=t?.PATTERN;return i?.source&&qee("^"+i.source+"$",n.value)&&e.push(t),e},[])}}}),Nhe=e(()=>{"use strict";function e(t){let i="";for(let e=1;e<t.length-1;e++){var n,r=t.charAt(e);"\\"===r?(n=t.charAt(++e),i+=s(n)):i+=r}return i}function s(e){switch(e){case"b":return"\b";case"f":return"\f";case"n":return`
|
||
`;case"r":return"\r";case"t":return"\t";case"v":return"\v";case"0":return"\0";default:return e}}function t(e){return"^"===e.charAt(0)?e.substring(1):e}function i(e){return parseInt(e)}function n(e){return BigInt(e)}function r(e){return new Date(e)}function a(e){return Number(e)}function o(e){return"true"===e.toLowerCase()}var l;iee(),Pte(),Lhe=class{static{mt(this,"DefaultValueConverter")}convert(e,t){let i=t.grammarSource;if(eJ(i=YQ(i)?nte(i):i)){var n=i.rule.ref;if(n)return this.runConverter(n,e,t);throw new Error("This cst node was not parsed by a rule.")}return e}runConverter(e,t,i){switch(e.name.toUpperCase()){case"INT":return Rhe.convertInt(t);case"STRING":return Rhe.convertString(t);case"ID":return Rhe.convertID(t)}switch(null==(e=Cte(e))?void 0:e.toLowerCase()){case"number":return Rhe.convertNumber(t);case"boolean":return Rhe.convertBoolean(t);case"bigint":return Rhe.convertBigint(t);case"date":return Rhe.convertDate(t);default:return t}}},l=Rhe=Rhe||{},mt(e,"convertString"),l.convertString=e,mt(s,"convertEscapeCharacter"),mt(t,"convertID"),l.convertID=t,mt(i,"convertInt"),l.convertInt=i,mt(n,"convertBigint"),l.convertBigint=n,mt(r,"convertDate"),l.convertDate=r,mt(a,"convertNumber"),l.convertNumber=a,mt(o,"convertBoolean"),l.convertBoolean=o}),Dhe=W(e=>{"use strict";var t,i;function n(){if(void 0===t)throw new Error("No runtime abstraction layer installed");return t}function r(e){if(void 0===e)throw new Error("No runtime abstraction layer provided");t=e}Object.defineProperty(e,"__esModule",{value:!0}),mt(n,"RAL"),i=n=n||{},mt(r,"install"),i.install=r,e.default=n}),Ohe=W(e=>{"use strict";function t(e){return!0===e||!1===e}function i(e){return"string"==typeof e||e instanceof String}function n(e){return"number"==typeof e||e instanceof Number}function r(e){return e instanceof Error}function s(e){return"function"==typeof e}function a(e){return Array.isArray(e)}function o(e){return a(e)&&e.every(e=>i(e))}Object.defineProperty(e,"__esModule",{value:!0}),e.stringArray=e.array=e.func=e.error=e.number=e.string=e.boolean=void 0,mt(t,"boolean"),e.boolean=t,mt(i,"string"),e.string=i,mt(n,"number"),e.number=n,mt(r,"error"),e.error=r,mt(s,"func"),e.func=s,mt(a,"array"),e.array=a,mt(o,"stringArray"),e.stringArray=o}),Phe=W(t=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Emitter=t.Event=void 0;var a=Dhe();{var i=t.Event={};let e={dispose(){}};i.None=function(){return e}}var r=class{static{mt(this,"CallbackList")}add(e,t=null,i){this._callbacks||(this._callbacks=[],this._contexts=[]),this._callbacks.push(e),this._contexts.push(t),Array.isArray(i)&&i.push({dispose:mt(()=>this.remove(e,t),"dispose")})}remove(n,r=null){if(this._callbacks){let i=!1;for(let e=0,t=this._callbacks.length;e<t;e++)if(this._callbacks[e]===n){if(this._contexts[e]===r)return this._callbacks.splice(e,1),void this._contexts.splice(e,1);i=!0}if(i)throw new Error("When adding a listener with a context, you should remove it with the same context")}}invoke(...i){if(!this._callbacks)return[];var n=[],r=this._callbacks.slice(0),s=this._contexts.slice(0);for(let e=0,t=r.length;e<t;e++)try{n.push(r[e].apply(s[e],i))}catch(e){(0,a.default)().console.error(e)}return n}isEmpty(){return!this._callbacks||0===this._callbacks.length}dispose(){this._callbacks=void 0,this._contexts=void 0}},i=class s{static{mt(this,"Emitter")}constructor(e){this._options=e}get event(){return this._event||(this._event=(e,t,i)=>{this._callbacks||(this._callbacks=new r),this._options&&this._options.onFirstListenerAdd&&this._callbacks.isEmpty()&&this._options.onFirstListenerAdd(this),this._callbacks.add(e,t);let n={dispose:mt(()=>{this._callbacks&&(this._callbacks.remove(e,t),n.dispose=s._noop,this._options)&&this._options.onLastListenerRemove&&this._callbacks.isEmpty()&&this._options.onLastListenerRemove(this)},"dispose")};return Array.isArray(i)&&i.push(n),n}),this._event}fire(e){this._callbacks&&this._callbacks.invoke.call(this._callbacks,e)}dispose(){this._callbacks&&(this._callbacks.dispose(),this._callbacks=void 0)}};(t.Emitter=i)._noop=function(){}}),Bhe=W(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CancellationTokenSource=e.CancellationToken=void 0;var t,i,n=Dhe(),r=Ohe(),s=Phe();function a(e){return e&&(e===i.None||e===i.Cancelled||r.boolean(e.isCancellationRequested)&&!!e.onCancellationRequested)}(i=t||(e.CancellationToken=t={})).None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:s.Event.None}),i.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:s.Event.None}),mt(a,"is"),i.is=a;var o=Object.freeze(function(e,t){let i=(0,n.default)().timer.setTimeout(e.bind(t),0);return{dispose(){i.dispose()}}}),l=class{static{mt(this,"MutableToken")}constructor(){this._isCancelled=!1}cancel(){this._isCancelled||(this._isCancelled=!0,this._emitter&&(this._emitter.fire(void 0),this.dispose()))}get isCancellationRequested(){return this._isCancelled}get onCancellationRequested(){return this._isCancelled?o:(this._emitter||(this._emitter=new s.Emitter),this._emitter.event)}dispose(){this._emitter&&(this._emitter.dispose(),this._emitter=void 0)}},c=class{static{mt(this,"CancellationTokenSource")}get token(){return this._token||(this._token=new l),this._token}cancel(){this._token?this._token.cancel():this._token=t.Cancelled}dispose(){this._token?this._token instanceof l&&this._token.dispose():this._token=t.None}};e.CancellationTokenSource=c}),Fhe={},jhe=e(()=>{"use strict";te(Fhe,ie(Bhe(),1))});function zhe(){return new Promise(e=>{"u"<typeof setImmediate?setTimeout(e,0):setImmediate(e)})}function Hhe(){return Vhe=performance.now(),new Fhe.CancellationTokenSource}function Uhe(e){Ghe=e}function qhe(e){return e===Yhe}async function Whe(e){if(e!==Fhe.CancellationToken.None){var t=performance.now();if(Ghe<=t-Vhe&&(Vhe=t,await zhe(),Vhe=performance.now()),e.isCancellationRequested)throw Yhe}}var Vhe,Ghe,Yhe,Xhe,Khe=e(()=>{"use strict";jhe(),mt(zhe,"delayNextTick"),Vhe=0,Ghe=10,mt(Hhe,"startCancelableOperation"),mt(Uhe,"setInterruptionPeriod"),Yhe=Symbol("OperationCancelled"),mt(qhe,"isOperationCancelled"),mt(Whe,"interruptAndCheck"),Xhe=class{static{mt(this,"Deferred")}constructor(){this.promise=new Promise((t,i)=>{this.resolve=e=>(t(e),this),this.reject=e=>(i(e),this)})}}});function Zhe(n,r){if(!(n.length<=1)){var s=n.length/2|0,a=n.slice(0,s),o=n.slice(s);Zhe(a,r),Zhe(o,r);let e=0,t=0,i=0;for(;e<a.length&&t<o.length;)r(a[e],o[t])<=0?n[i++]=a[e++]:n[i++]=o[t++];for(;e<a.length;)n[i++]=a[e++];for(;t<o.length;)n[i++]=o[t++]}return n}function Qhe(t,e,i=0){var n=e?[i]:[];for(let e=0;e<t.length;e++){var r=t.charCodeAt(e);Jhe(r)&&(13===r&&e+1<t.length&&10===t.charCodeAt(e+1)&&e++,n.push(i+e+1))}return n}function Jhe(e){return 13===e||10===e}function eue(e){var t=e.start,i=e.end;return t.line>i.line||t.line===i.line&&t.character>i.character?{start:i,end:t}:e}function tue(e){var t=eue(e.range);return t!==e.range?{newText:e.newText,range:t}:e}var iue,nue,rue,sue,aue,oue,lue,cue,hue,uue,due=e(()=>{"use strict";function e(e,t,i,n){return new iue(e,t,i,n)}function t(e,t,i){if(e instanceof iue)return e.update(t,i),e;throw new Error("TextDocument.update: document must be created by TextDocument.create")}function i(e,t){let i=e.getText(),n=Zhe(t.map(tue),(e,t)=>{var i=e.range.start.line-t.range.start.line;return 0==i?e.range.start.character-t.range.start.character:i}),r=0,s=[];for(var a of n){var o=e.offsetAt(a.range.start);if(o<r)throw new Error("Overlapping edit");o>r&&s.push(i.substring(r,o)),a.newText.length&&s.push(a.newText),r=e.offsetAt(a.range.end)}return s.push(i.substr(r)),s.join("")}var n;iue=class r{static{mt(this,"FullTextDocument")}constructor(e,t,i,n){this._uri=e,this._languageId=t,this._version=i,this._content=n,this._lineOffsets=void 0}get uri(){return this._uri}get languageId(){return this._languageId}get version(){return this._version}getText(e){var t;return e?(t=this.offsetAt(e.start),e=this.offsetAt(e.end),this._content.substring(t,e)):this._content}update(e,t){for(var s of e)if(r.isIncremental(s)){var a=eue(s.range),o=this.offsetAt(a.start),l=this.offsetAt(a.end);this._content=this._content.substring(0,o)+s.text+this._content.substring(l,this._content.length);let i=Math.max(a.start.line,0),e=Math.max(a.end.line,0),n=this._lineOffsets,r=Qhe(s.text,!1,o);if(e-i===r.length)for(let e=0,t=r.length;e<t;e++)n[e+i+1]=r[e];else r.length<1e4?n.splice(i+1,e-i,...r):this._lineOffsets=n=n.slice(0,i+1).concat(r,n.slice(e+1));var c=s.text.length-(l-o);if(0!=c)for(let e=i+1+r.length,t=n.length;e<t;e++)n[e]=n[e]+c}else{if(!r.isFull(s))throw new Error("Unknown change event received");this._content=s.text,this._lineOffsets=void 0}this._version=t}getLineOffsets(){return void 0===this._lineOffsets&&(this._lineOffsets=Qhe(this._content,!0)),this._lineOffsets}positionAt(e){e=Math.max(Math.min(e,this._content.length),0);let t=this.getLineOffsets(),i=0,n=t.length;if(0===n)return{line:0,character:e};for(;i<n;){var r=Math.floor((i+n)/2);t[r]>e?n=r:i=r+1}var s=i-1;return{line:s,character:(e=this.ensureBeforeEOL(e,t[s]))-t[s]}}offsetAt(e){var t,i=this.getLineOffsets();return e.line>=i.length?this._content.length:e.line<0?0:(t=i[e.line],e.character<=0?t:(i=e.line+1<i.length?i[e.line+1]:this._content.length,e=Math.min(t+e.character,i),this.ensureBeforeEOL(e,t)))}ensureBeforeEOL(e,t){for(;t<e&&Jhe(this._content.charCodeAt(e-1));)e--;return e}get lineCount(){return this.getLineOffsets().length}static isIncremental(e){return null!=e&&"string"==typeof e.text&&void 0!==e.range&&(void 0===e.rangeLength||"number"==typeof e.rangeLength)}static isFull(e){return null!=e&&"string"==typeof e.text&&void 0===e.range&&void 0===e.rangeLength}},n=nue=nue||{},mt(e,"create"),n.create=e,mt(t,"update"),n.update=t,mt(i,"applyEdits"),n.applyEdits=i,mt(Zhe,"mergeSort"),mt(Qhe,"computeLineOffsets"),mt(Jhe,"isEOL"),mt(eue,"getWellformedRange"),mt(tue,"getWellformedEdit")}),pue=e(()=>{"use strict";var i={470:e=>{function d(e){if("string"!=typeof e)throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}function s(e,t){for(var i,n="",r=0,s=-1,a=0,o=0;o<=e.length;++o){if(o<e.length)i=e.charCodeAt(o);else{if(47===i)break;i=47}if(47===i){if(s!==o-1&&1!==a)if(s!==o-1&&2===a){if(n.length<2||2!==r||46!==n.charCodeAt(n.length-1)||46!==n.charCodeAt(n.length-2))if(2<n.length){var l=n.lastIndexOf("/");if(l!==n.length-1){r=-1===l?(n="",0):(n=n.slice(0,l)).length-1-n.lastIndexOf("/"),s=o,a=0;continue}}else if(2===n.length||1===n.length){n="",s=o,a=r=0;continue}t&&(0<n.length?n+="/..":n="..",r=2)}else 0<n.length?n+="/"+e.slice(s+1,o):n=e.slice(s+1,o),r=o-s-1;s=o,a=0}else 46===i&&-1!==a?++a:a=-1}return n}mt(d,"e"),mt(s,"r");var p={resolve:mt(function(){for(var e,t="",i=!1,n=arguments.length-1;-1<=n&&!i;n--){var r=0<=n?arguments[n]:e=void 0===e?process.cwd():e;d(r),0!==r.length&&(t=r+"/"+t,i=47===r.charCodeAt(0))}return t=s(t,!i),i?0<t.length?"/"+t:"/":0<t.length?t:"."},"resolve"),normalize:mt(function(e){var t,i;return d(e),0===e.length?".":(t=47===e.charCodeAt(0),i=47===e.charCodeAt(e.length-1),0<(e=0!==(e=s(e,!t)).length||t?e:".").length&&i&&(e+="/"),t?"/"+e:e)},"normalize"),isAbsolute:mt(function(e){return d(e),0<e.length&&47===e.charCodeAt(0)},"isAbsolute"),join:mt(function(){if(0===arguments.length)return".";for(var e,t=0;t<arguments.length;++t){var i=arguments[t];d(i),0<i.length&&(void 0===e?e=i:e+="/"+i)}return void 0===e?".":p.normalize(e)},"join"),relative:mt(function(e,t){if(d(e),d(t),e===t||(e=p.resolve(e))===(t=p.resolve(t)))return"";for(var i=1;i<e.length&&47===e.charCodeAt(i);++i);for(var n=e.length,r=n-i,s=1;s<t.length&&47===t.charCodeAt(s);++s);for(var a=t.length-s,o=r<a?r:a,l=-1,c=0;c<=o;++c){if(c===o){if(o<a){if(47===t.charCodeAt(s+c))return t.slice(s+c+1);if(0===c)return t.slice(s+c)}else o<r&&(47===e.charCodeAt(i+c)?l=c:0===c&&(l=0));break}var h=e.charCodeAt(i+c);if(h!==t.charCodeAt(s+c))break;47===h&&(l=c)}for(var u="",c=i+l+1;c<=n;++c)c!==n&&47!==e.charCodeAt(c)||(0===u.length?u+="..":u+="/..");return 0<u.length?u+t.slice(s+l):(47===t.charCodeAt(s+=l)&&++s,t.slice(s))},"relative"),_makeLong:mt(function(e){return e},"_makeLong"),dirname:mt(function(e){if(d(e),0===e.length)return".";for(var t=47===e.charCodeAt(0),i=-1,n=!0,r=e.length-1;1<=r;--r)if(47===e.charCodeAt(r)){if(!n){i=r;break}}else n=!1;return-1===i?t?"/":".":t&&1===i?"//":e.slice(0,i)},"dirname"),basename:mt(function(e,t){if(void 0!==t&&"string"!=typeof t)throw new TypeError('"ext" argument must be a string');d(e);var i=0,n=-1,r=!0;if(void 0!==t&&0<t.length&&t.length<=e.length){if(t.length===e.length&&t===e)return"";for(var s=t.length-1,a=-1,o=e.length-1;0<=o;--o){var l=e.charCodeAt(o);if(47===l){if(!r){i=o+1;break}}else-1===a&&(r=!1,a=o+1),0<=s&&(l===t.charCodeAt(s)?-1==--s&&(n=o):(s=-1,n=a))}return i===n?n=a:-1===n&&(n=e.length),e.slice(i,n)}for(o=e.length-1;0<=o;--o)if(47===e.charCodeAt(o)){if(!r){i=o+1;break}}else-1===n&&(r=!1,n=o+1);return-1===n?"":e.slice(i,n)},"basename"),extname:mt(function(e){d(e);for(var t=-1,i=0,n=-1,r=!0,s=0,a=e.length-1;0<=a;--a){var o=e.charCodeAt(a);if(47!==o)-1===n&&(r=!1,n=a+1),46===o?-1===t?t=a:1!==s&&(s=1):-1!==t&&(s=-1);else if(!r){i=a+1;break}}return-1===t||-1===n||0===s||1===s&&t===n-1&&t===i+1?"":e.slice(t,n)},"extname"),format:mt(function(e){if(null===e||"object"!=typeof e)throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof e);return t=e.dir||e.root,i=e.base||(e.name||"")+(e.ext||""),t?t===e.root?t+i:t+"/"+i:i;var t,i},"format"),parse:mt(function(e){d(e);var t={root:"",dir:"",base:"",ext:"",name:""};if(0!==e.length){for(var i,n=47===e.charCodeAt(0),r=n?(t.root="/",1):0,s=-1,a=0,o=-1,l=!0,c=e.length-1,h=0;r<=c;--c)if(47!==(i=e.charCodeAt(c)))-1===o&&(l=!1,o=c+1),46===i?-1===s?s=c:1!==h&&(h=1):-1!==s&&(h=-1);else if(!l){a=c+1;break}-1===s||-1===o||0===h||1===h&&s===o-1&&s===a+1?-1!==o&&(t.base=t.name=0===a&&n?e.slice(1,o):e.slice(a,o)):(0===a&&n?(t.name=e.slice(1,s),t.base=e.slice(1,o)):(t.name=e.slice(a,s),t.base=e.slice(a,o)),t.ext=e.slice(s,o)),0<a?t.dir=e.slice(0,a-1):n&&(t.dir="/")}return t},"parse"),sep:"/",delimiter:":",win32:null,posix:null};p.posix=p,e.exports=p}},n={};function h(e){var t=n[e];return void 0!==t||(t=n[e]={exports:{}},i[e](t,t.exports,h)),t.exports}mt(h,"r"),h.d=(e,t)=>{for(var i in t)h.o(t,i)&&!h.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},h.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),h.r=e=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var e={};{let n,i=(h.r(e),h.d(e,{URI:mt(()=>x,"URI"),Utils:mt(()=>b,"Utils")}),"object"==typeof process?n="win32"===process.platform:"object"==typeof navigator&&(n=0<=navigator.userAgent.indexOf("Windows")),/^\w[\w\d+.-]*$/),r=/^\//,s=/^\/\//;function u(e,t){if(!e.scheme&&t)throw new Error(`[UriError]: Scheme is missing: {scheme: "", authority: "${e.authority}", path: "${e.path}", query: "${e.query}", fragment: "${e.fragment}"}`);if(e.scheme&&!i.test(e.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(e.path)if(e.authority){if(!r.test(e.path))throw new Error('[UriError]: If a URI contains an authority component, then the path component must either be empty or begin with a slash ("/") character')}else if(s.test(e.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}mt(u,"s");let a=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/;class x{static{mt(this,"f")}static isUri(e){return e instanceof x||!!e&&"string"==typeof e.authority&&"string"==typeof e.fragment&&"string"==typeof e.path&&"string"==typeof e.query&&"string"==typeof e.scheme&&"string"==typeof e.fsPath&&"function"==typeof e.with&&"function"==typeof e.toString}scheme;authority;path;query;fragment;constructor(e,t,i,n,r,s=!1){"object"==typeof e?(this.scheme=e.scheme||"",this.authority=e.authority||"",this.path=e.path||"",this.query=e.query||"",this.fragment=e.fragment||""):(this.scheme=e||s?e:"file",this.authority=t||"",this.path=function(e,t){switch(e){case"https":case"http":case"file":t?"/"!==t[0]&&(t="/"+t):t="/"}return t}(this.scheme,i||""),this.query=n||"",this.fragment=r||"",u(this,s))}get fsPath(){return g(this,!1)}with(e){if(!e)return this;let{scheme:t,authority:i,path:n,query:r,fragment:s}=e;return void 0===t?t=this.scheme:null===t&&(t=""),void 0===i?i=this.authority:null===i&&(i=""),void 0===n?n=this.path:null===n&&(n=""),void 0===r?r=this.query:null===r&&(r=""),void 0===s?s=this.fragment:null===s&&(s=""),t===this.scheme&&i===this.authority&&n===this.path&&r===this.query&&s===this.fragment?this:new w(t,i,n,r,s)}static parse(e,t=!1){e=a.exec(e);return e?new w(e[2]||"",y(e[4]||""),y(e[5]||""),y(e[7]||""),y(e[9]||""),t):new w("","","","","")}static file(e){let t="";var i;return"/"===(e=n?e.replace(/\\/g,"/"):e)[0]&&"/"===e[1]&&(e=-1===(i=e.indexOf("/",2))?(t=e.substring(2),"/"):(t=e.substring(2,i),e.substring(i)||"/")),new w("file",t,e,"","")}static from(e){e=new w(e.scheme,e.authority,e.path,e.query,e.fragment);return u(e,!0),e}toString(e=!1){return f(this,e)}toJSON(){return this}static revive(e){var t;return e&&(e instanceof x?e:((t=new w(e))._formatted=e.external,t._fsPath=e._sep===o?e.fsPath:null,t))}}let o=n?1:void 0;class w extends x{static{mt(this,"l")}_formatted=null;_fsPath=null;get fsPath(){return this._fsPath||(this._fsPath=g(this,!1)),this._fsPath}toString(e=!1){return e?f(this,!0):(this._formatted||(this._formatted=f(this,!1)),this._formatted)}toJSON(){var e={$mid:1};return this._fsPath&&(e.fsPath=this._fsPath,e._sep=o),this._formatted&&(e.external=this._formatted),this.path&&(e.path=this.path),this.scheme&&(e.scheme=this.scheme),this.authority&&(e.authority=this.authority),this.query&&(e.query=this.query),this.fragment&&(e.fragment=this.fragment),e}}let l={58:"%3A",47:"%2F",63:"%3F",35:"%23",91:"%5B",93:"%5D",64:"%40",33:"%21",36:"%24",38:"%26",39:"%27",40:"%28",41:"%29",42:"%2A",43:"%2B",44:"%2C",59:"%3B",61:"%3D",32:"%20"};function d(t,i,n){let r,s=-1;for(let e=0;e<t.length;e++){var a=t.charCodeAt(e);97<=a&&a<=122||65<=a&&a<=90||48<=a&&a<=57||45===a||46===a||95===a||126===a||i&&47===a||n&&91===a||n&&93===a||n&&58===a?(-1!==s&&(r+=encodeURIComponent(t.substring(s,e)),s=-1),void 0!==r&&(r+=t.charAt(e))):(void 0===r&&(r=t.substr(0,e)),void 0!==(a=l[a])?(-1!==s&&(r+=encodeURIComponent(t.substring(s,e)),s=-1),r+=a):-1===s&&(s=e))}return-1!==s&&(r+=encodeURIComponent(t.substring(s))),void 0!==r?r:t}function p(t){let i;for(let e=0;e<t.length;e++){var n=t.charCodeAt(e);35===n||63===n?(void 0===i&&(i=t.substr(0,e)),i+=l[n]):void 0!==i&&(i+=t[e])}return void 0!==i?i:t}function g(e,t){let i;return i=e.authority&&1<e.path.length&&"file"===e.scheme?"//"+e.authority+e.path:47===e.path.charCodeAt(0)&&(65<=e.path.charCodeAt(1)&&e.path.charCodeAt(1)<=90||97<=e.path.charCodeAt(1)&&e.path.charCodeAt(1)<=122)&&58===e.path.charCodeAt(2)?t?e.path.substr(1):e.path[1].toLowerCase()+e.path.substr(2):e.path,i=n?i.replace(/\//g,"\\"):i}function f(t,e){let i=e?p:d,n="",{scheme:r,authority:s,path:a,query:o,fragment:l}=t;if(r&&(n=n+r+":"),!s&&"file"!==r||(n=n+"/"+"/"),s){let e=s.indexOf("@");-1!==e&&(t=s.substr(0,e),s=s.substr(e+1),-1===(e=t.lastIndexOf(":"))?n+=i(t,!1,!1):n=(n=n+i(t.substr(0,e),!1,!1)+":")+i(t.substr(e+1),!1,!0),n+="@"),s=s.toLowerCase(),-1===(e=s.lastIndexOf(":"))?n+=i(s,!1,!0):n=(n+=i(s.substr(0,e),!1,!0))+s.substr(e)}return a&&(3<=a.length&&47===a.charCodeAt(0)&&58===a.charCodeAt(2)?65<=(t=a.charCodeAt(1))&&t<=90&&(a=`/${String.fromCharCode(t+32)}:`+a.substr(3)):2<=a.length&&58===a.charCodeAt(1)&&65<=(t=a.charCodeAt(0))&&t<=90&&(a=String.fromCharCode(t+32)+":"+a.substr(2)),n+=i(a,!0,!1)),o&&(n=(n+="?")+i(o,!1,!1)),n=l?(n+="#")+(e?l:d(l,!1,!1)):n}function m(e){try{return decodeURIComponent(e)}catch{return 3<e.length?e.substr(0,3)+m(e.substr(3)):e}}mt(d,"d"),mt(p,"p"),mt(g,"m"),mt(f,"y"),mt(m,"v");let t=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function y(e){return e.match(t)?e.replace(t,e=>m(e)):e}mt(y,"C");var b,v=h(470);let c=v.posix||v;(v=b=b||{}).joinPath=function(e,...t){return e.with({path:c.join(e.path,...t)})},v.resolvePath=function(e,...t){let i=e.path,n=!1,r=("/"!==i[0]&&(i="/"+i,n=!0),c.resolve(i,...t));return n&&"/"===r[0]&&!e.authority&&(r=r.substring(1)),e.with({path:r})},v.dirname=function(e){if(0===e.path.length||"/"===e.path)return e;let t=c.dirname(e.path);return 1===t.length&&46===t.charCodeAt(0)&&(t=""),e.with({path:t})},v.basename=function(e){return c.basename(e.path)},v.extname=function(e){return c.extname(e.path)}}({URI:rue,Utils:sue}=e)}),gue=e(()=>{"use strict";function e(e,t){return e?.toString()===t?.toString()}function t(e,t){let i="string"==typeof e?e:e.path,n="string"==typeof t?t:t.path,r=i.split("/").filter(e=>0<e.length),s=n.split("/").filter(e=>0<e.length),a=0;for(;a<r.length&&r[a]===s[a];a++);return"../".repeat(r.length-a)+s.slice(a).join("/")}function i(e){return rue.parse(e.toString()).toString()}var n;pue(),(n=aue=aue||{}).basename=sue.basename,n.dirname=sue.dirname,n.extname=sue.extname,n.joinPath=sue.joinPath,n.resolvePath=sue.resolvePath,mt(e,"equals"),n.equals=e,mt(t,"relative"),n.relative=t,mt(i,"normalize"),n.normalize=i}),fue=e(()=>{"use strict";var e;due(),fue(),jhe(),FZ(),gue(),(e=oue=oue||{})[e.Changed=0]="Changed",e[e.Parsed=1]="Parsed",e[e.IndexedContent=2]="IndexedContent",e[e.ComputedScopes=3]="ComputedScopes",e[e.Linked=4]="Linked",e[e.IndexedReferences=5]="IndexedReferences",e[e.Validated=6]="Validated",lue=class{static{mt(this,"DefaultLangiumDocumentFactory")}constructor(e){this.serviceRegistry=e.ServiceRegistry,this.textDocuments=e.workspace.TextDocuments,this.fileSystemProvider=e.workspace.FileSystemProvider}async fromUri(e,t=Fhe.CancellationToken.None){var i=await this.fileSystemProvider.readFile(e);return this.createAsync(e,i,t)}fromTextDocument(e,t,i){return t=t??rue.parse(e.uri),Fhe.CancellationToken.is(i)?this.createAsync(t,e,i):this.create(t,e,i)}fromString(e,t,i){return Fhe.CancellationToken.is(i)?this.createAsync(t,e,i):this.create(t,e,i)}fromModel(e,t){return this.create(t,{$model:e})}create(e,t,i){var n;return"string"==typeof t?(n=this.parse(e,t,i),this.createLangiumDocument(n,e,void 0,t)):"$model"in t?(n={value:t.$model,parserErrors:[],lexerErrors:[]},this.createLangiumDocument(n,e)):(n=this.parse(e,t.getText(),i),this.createLangiumDocument(n,e,t))}async createAsync(e,t,i){var n;return"string"==typeof t?(n=await this.parseAsync(e,t,i),this.createLangiumDocument(n,e,void 0,t)):(n=await this.parseAsync(e,t.getText(),i),this.createLangiumDocument(n,e,t))}createLangiumDocument(t,i,e,n){let r;if(e)r={parseResult:t,uri:i,state:oue.Parsed,references:[],textDocument:e};else{let e=this.createTextDocumentGetter(i,n);r={parseResult:t,uri:i,state:oue.Parsed,references:[],get textDocument(){return e()}}}return t.value.$document=r}async update(e,t){var i=null==(i=e.parseResult.value.$cstNode)?void 0:i.root.fullText,n=null==(n=this.textDocuments)?void 0:n.get(e.uri.toString()),r=n?n.getText():await this.fileSystemProvider.readFile(e.uri);return n?Object.defineProperty(e,"textDocument",{value:n}):(n=this.createTextDocumentGetter(e.uri,r),Object.defineProperty(e,"textDocument",{get:n})),i!==r&&(e.parseResult=await this.parseAsync(e.uri,r,t),e.parseResult.value.$document=e),e.state=oue.Parsed,e}parse(e,t,i){return this.serviceRegistry.getServices(e).parser.LangiumParser.parse(t,i)}parseAsync(e,t,i){return this.serviceRegistry.getServices(e).parser.AsyncParser.parse(t,i)}createTextDocumentGetter(e,t){let i=this.serviceRegistry,n;return()=>n=n??nue.create(e.toString(),i.getServices(e).LanguageMetaData.languageId,0,t??"")}},cue=class{static{mt(this,"DefaultLangiumDocuments")}constructor(e){this.documentMap=new Map,this.langiumDocumentFactory=e.workspace.LangiumDocumentFactory,this.serviceRegistry=e.ServiceRegistry}get all(){return IZ(this.documentMap.values())}addDocument(e){var t=e.uri.toString();if(this.documentMap.has(t))throw new Error(`A document with the URI '${t}' is already present.`);this.documentMap.set(t,e)}getDocument(e){e=e.toString();return this.documentMap.get(e)}async getOrCreateDocument(e,t){return this.getDocument(e)||(e=await this.langiumDocumentFactory.fromUri(e,t),this.addDocument(e),e)}createDocument(e,t,i){return i?this.langiumDocumentFactory.fromString(t,e,i).then(e=>(this.addDocument(e),e)):(i=this.langiumDocumentFactory.fromString(t,e),this.addDocument(i),i)}hasDocument(e){return this.documentMap.has(e.toString())}invalidateDocument(e){var t=e.toString(),t=this.documentMap.get(t);return t&&(this.serviceRegistry.getServices(e).references.Linker.unlink(t),t.state=oue.Changed,t.precomputedScopes=void 0,t.diagnostics=void 0),t}deleteDocument(e){var e=e.toString(),t=this.documentMap.get(e);return t&&(t.state=oue.Changed,this.documentMap.delete(e)),t}}}),mue=e(()=>{"use strict";jhe(),LZ(),bee(),Khe(),fue(),hue=Symbol("ref_resolving"),uue=class{static{mt(this,"DefaultLinker")}constructor(e){this.reflection=e.shared.AstReflection,this.langiumDocuments=()=>e.shared.workspace.LangiumDocuments,this.scopeProvider=e.references.ScopeProvider,this.astNodeLocator=e.workspace.AstNodeLocator}async link(t,e=Fhe.CancellationToken.None){for(var i of uee(t.parseResult.value))await Whe(e),pee(i).forEach(e=>this.doLink(e,t))}doLink(t,e){var i=t.reference;if(void 0===i._ref){i._ref=hue;try{var n,r=this.getCandidate(t);_Z(r)?i._ref=r:(i._nodeDescription=r,this.langiumDocuments().hasDocument(r.documentUri)?(n=this.loadAstNode(r),i._ref=n??this.createLinkingError(t,r)):i._ref=void 0)}catch(e){console.error(`An error occurred while resolving reference to '${i.$refText}':`,e);r=null!=(n=e.message)?n:String(e);i._ref=Object.assign(Object.assign({},t),{message:`An error occurred while resolving reference to '${i.$refText}': `+r})}e.references.push(i)}}unlink(e){for(var t of e.references)delete t._ref,delete t._nodeDescription;e.references=[]}getCandidate(e){return this.scopeProvider.getScope(e).getElement(e.reference.$refText)??this.createLinkingError(e)}buildReference(n,r,e,s){let a=this,o={$refNode:e,$refText:s,get ref(){var e;if(kZ(this._ref))return this._ref;if(SZ(this._nodeDescription)){var t=a.loadAstNode(this._nodeDescription);this._ref=t??a.createLinkingError({reference:o,container:n,property:r},this._nodeDescription)}else if(void 0===this._ref){this._ref=hue;var t=lee(n).$document,i=a.getLinkedNode({reference:o,container:n,property:r});if(i.error&&t&&t.state<oue.ComputedScopes)return this._ref=void 0;this._ref=null!=(e=i.node)?e:i.error,this._nodeDescription=i.descr,t?.references.push(this)}else if(this._ref===hue)throw new Error(`Cyclic reference resolution detected: ${a.astNodeLocator.getAstNodePath(n)}/${r} (symbol '${s}')`);return kZ(this._ref)?this._ref:void 0},get $nodeDescription(){return this._nodeDescription},get error(){return _Z(this._ref)?this._ref:void 0}};return o}getLinkedNode(t){try{var i,n=this.getCandidate(t);return _Z(n)?{error:n}:(i=this.loadAstNode(n))?{node:i,descr:n}:{descr:n,error:this.createLinkingError(t,n)}}catch(e){console.error(`An error occurred while resolving reference to '${t.reference.$refText}':`,e);n=null!=(i=e.message)?i:String(e);return{error:Object.assign(Object.assign({},t),{message:`An error occurred while resolving reference to '${t.reference.$refText}': `+n})}}}loadAstNode(e){var t;return e.node||((t=this.langiumDocuments().getDocument(e.documentUri))?this.astNodeLocator.getAstNode(t.parseResult.value,e.path):void 0)}createLinkingError(e,t){var i=lee(e.container).$document,i=(i&&i.state<oue.ComputedScopes&&console.warn(`Attempted reference resolution before document reached ComputedScopes state (${i.uri}).`),this.reflection.getReferenceType(e));return Object.assign(Object.assign({},e),{message:`Could not resolve reference to ${i} named '${e.reference.$refText}'.`,targetDescription:t})}}});function yue(e){return"string"==typeof e.name}var bue,vue,xue,wue,kue,Tue,Sue,_ue,Cue,Aue,Eue,$ue,Lue,Rue,Mue=e(()=>{"use strict";Pte(),mt(yue,"isNamed"),bue=class{static{mt(this,"DefaultNameProvider")}getName(e){if(yue(e))return e.name}getNameNode(e){return ate(e.$cstNode,"name")}}}),Iue=e(()=>{"use strict";Pte(),LZ(),bee(),lQ(),FZ(),gue(),vue=class{static{mt(this,"DefaultReferences")}constructor(e){this.nameProvider=e.references.NameProvider,this.index=e.shared.workspace.IndexManager,this.nodeLocator=e.workspace.AstNodeLocator}findDeclaration(e){if(e){var t=ute(e),i=e.astNode;if(t&&i){t=i[t.feature];if(TZ(t))return t.ref;if(Array.isArray(t))for(var n of t)if(TZ(n)&&n.$refNode&&n.$refNode.offset<=e.offset&&n.$refNode.end>=e.end)return n.ref}if(i){t=this.nameProvider.getNameNode(i);if(t&&(t===e||UZ(e,t)))return i}}}findDeclarationNode(e){e=this.findDeclaration(e);if(e?.$cstNode)return this.nameProvider.getNameNode(e)??e.$cstNode}findReferences(e,t){var i,n=[];t.includeDeclaration&&(i=this.getReferenceToSelf(e))&&n.push(i);let r=this.index.findAllReferences(e,this.nodeLocator.getAstNodePath(e));return t.documentUri&&(r=r.filter(e=>aue.equals(e.sourceUri,t.documentUri))),n.push(...r),IZ(n)}getReferenceToSelf(e){var t,i=this.nameProvider.getNameNode(e);if(i)return t=oee(e),e=this.nodeLocator.getAstNodePath(e),{sourceUri:t.uri,sourcePath:e,targetUri:t.uri,targetPath:e,segment:WZ(i),local:!0}}}}),Nue=e(()=>{"use strict";FZ(),xue=class{static{mt(this,"MultiMap")}constructor(e){if(this.map=new Map,e)for(var[t,i]of e)this.add(t,i)}get size(){return BZ.sum(IZ(this.map.values()).map(e=>e.length))}clear(){this.map.clear()}delete(e,t){if(void 0===t)return this.map.delete(e);var i=this.map.get(e);if(i){t=i.indexOf(t);if(0<=t)return 1===i.length?this.map.delete(e):i.splice(t,1),!0}return!1}get(e){return null!=(e=this.map.get(e))?e:[]}has(e,t){return void 0===t?this.map.has(e):!!(e=this.map.get(e))&&0<=e.indexOf(t)}add(e,t){return this.map.has(e)?this.map.get(e).push(t):this.map.set(e,[t]),this}addAll(e,t){return this.map.has(e)?this.map.get(e).push(...t):this.map.set(e,Array.from(t)),this}forEach(i){this.map.forEach((e,t)=>e.forEach(e=>i(e,t,this)))}[Symbol.iterator](){return this.entries().iterator()}entries(){return IZ(this.map.entries()).flatMap(([t,e])=>e.map(e=>[t,e]))}keys(){return IZ(this.map.keys())}values(){return IZ(this.map.values()).flat()}entriesGroupedByKey(){return IZ(this.map.entries())}},wue=class{static{mt(this,"BiMap")}get size(){return this.map.size}constructor(e){if(this.map=new Map,this.inverse=new Map,e)for(var[t,i]of e)this.set(t,i)}clear(){this.map.clear(),this.inverse.clear()}set(e,t){return this.map.set(e,t),this.inverse.set(t,e),this}get(e){return this.map.get(e)}getKey(e){return this.inverse.get(e)}delete(e){var t=this.map.get(e);return void 0!==t&&(this.map.delete(e),this.inverse.delete(t),!0)}}}),Due=e(()=>{"use strict";jhe(),bee(),Nue(),Khe(),kue=class{static{mt(this,"DefaultScopeComputation")}constructor(e){this.nameProvider=e.references.NameProvider,this.descriptions=e.workspace.AstNodeDescriptionProvider}async computeExports(e,t=Fhe.CancellationToken.None){return this.computeExportsForNode(e.parseResult.value,e,void 0,t)}async computeExportsForNode(e,t,i=cee,n=Fhe.CancellationToken.None){var r,s=[];this.exportNode(e,s,t);for(r of i(e))await Whe(n),this.exportNode(r,s,t);return s}exportNode(e,t,i){var n=this.nameProvider.getName(e);n&&t.push(this.descriptions.createDescription(e,n,i))}async computeLocalScopes(e,t=Fhe.CancellationToken.None){var i,n=e.parseResult.value,r=new xue;for(i of hee(n))await Whe(t),this.processNode(i,e,r);return r}processNode(e,t,i){var n,r=e.$container;r&&(n=this.nameProvider.getName(e))&&i.add(r,this.descriptions.createDescription(e,n,t))}}}),Oue=e(()=>{"use strict";FZ(),Tue=class{static{mt(this,"StreamScope")}constructor(e,t,i){this.elements=e,this.outerScope=t,this.caseInsensitive=null!=(e=i?.caseInsensitive)&&e}getAllElements(){return this.outerScope?this.elements.concat(this.outerScope.getAllElements()):this.elements}getElement(t){var e=this.caseInsensitive?this.elements.find(e=>e.name.toLowerCase()===t.toLowerCase()):this.elements.find(e=>e.name===t);return e||(this.outerScope?this.outerScope.getElement(t):void 0)}},Sue=class{static{mt(this,"MapScope")}constructor(e,t,i){var n;this.elements=new Map,this.caseInsensitive=null!=(i=i?.caseInsensitive)&&i;for(n of e){var r=this.caseInsensitive?n.name.toLowerCase():n.name;this.elements.set(r,n)}this.outerScope=t}getElement(e){var t=this.caseInsensitive?e.toLowerCase():e,t=this.elements.get(t);return t||(this.outerScope?this.outerScope.getElement(e):void 0)}getAllElements(){let e=IZ(this.elements.values());return e=this.outerScope?e.concat(this.outerScope.getAllElements()):e}},_ue={getElement(){},getAllElements(){return DZ}}}),Pue=e(()=>{"use strict";Cue=class{static{mt(this,"DisposableCache")}constructor(){this.toDispose=[],this.isDisposed=!1}onDispose(e){this.toDispose.push(e)}dispose(){this.throwIfDisposed(),this.clear(),this.isDisposed=!0,this.toDispose.forEach(e=>e.dispose())}throwIfDisposed(){if(this.isDisposed)throw new Error("This cache has already been disposed")}},Aue=class extends Cue{static{mt(this,"SimpleCache")}constructor(){super(...arguments),this.cache=new Map}has(e){return this.throwIfDisposed(),this.cache.has(e)}set(e,t){this.throwIfDisposed(),this.cache.set(e,t)}get(e,t){return this.throwIfDisposed(),this.cache.has(e)?this.cache.get(e):t?(t=t(),this.cache.set(e,t),t):void 0}delete(e){return this.throwIfDisposed(),this.cache.delete(e)}clear(){this.throwIfDisposed(),this.cache.clear()}},Eue=class extends Cue{static{mt(this,"ContextCache")}constructor(e){super(),this.cache=new Map,this.converter=e??(e=>e)}has(e,t){return this.throwIfDisposed(),this.cacheForContext(e).has(t)}set(e,t,i){this.throwIfDisposed(),this.cacheForContext(e).set(t,i)}get(e,t,i){this.throwIfDisposed();e=this.cacheForContext(e);return e.has(t)?e.get(t):i?(i=i(),e.set(t,i),i):void 0}delete(e,t){return this.throwIfDisposed(),this.cacheForContext(e).delete(t)}clear(e){this.throwIfDisposed(),e?(e=this.converter(e),this.cache.delete(e)):this.cache.clear()}cacheForContext(e){let t=this.converter(e),i=this.cache.get(t);return i||(i=new Map,this.cache.set(t,i)),i}},$ue=class extends Eue{static{mt(this,"DocumentCache")}constructor(e,t){super(e=>e.toString()),t?(this.toDispose.push(e.workspace.DocumentBuilder.onDocumentPhase(t,e=>{this.clear(e.uri.toString())})),this.toDispose.push(e.workspace.DocumentBuilder.onUpdate((e,t)=>{for(var i of t)this.clear(i)}))):this.toDispose.push(e.workspace.DocumentBuilder.onUpdate((e,t)=>{var i;for(i of e.concat(t))this.clear(i)}))}},Lue=class extends Aue{static{mt(this,"WorkspaceCache")}constructor(e,t){super(),t?(this.toDispose.push(e.workspace.DocumentBuilder.onBuildPhase(t,()=>{this.clear()})),this.toDispose.push(e.workspace.DocumentBuilder.onUpdate((e,t)=>{0<t.length&&this.clear()}))):this.toDispose.push(e.workspace.DocumentBuilder.onUpdate(()=>{this.clear()}))}}}),Bue=e(()=>{"use strict";Oue(),bee(),FZ(),Pue(),Rue=class{static{mt(this,"DefaultScopeProvider")}constructor(e){this.reflection=e.shared.AstReflection,this.nameProvider=e.references.NameProvider,this.descriptions=e.workspace.AstNodeDescriptionProvider,this.indexManager=e.shared.workspace.IndexManager,this.globalScopeCache=new Lue(e.shared)}getScope(t){let i=[],n=this.reflection.getReferenceType(t),r=oee(t.container).precomputedScopes;if(r){let e=t.container;do{var s=r.get(e);0<s.length&&i.push(IZ(s).filter(e=>this.reflection.isSubtype(e.type,n))),e=e.$container}while(e)}let a=this.getGlobalScope(n,t);for(let e=i.length-1;0<=e;e--)a=this.createScope(i[e],a);return a}createScope(e,t,i){return new Tue(IZ(e),t,i)}createScopeForNodes(e,t,i){e=IZ(e).map(e=>{var t=this.nameProvider.getName(e);if(t)return this.descriptions.createDescription(e,t)}).nonNullable();return new Tue(e,t,i)}getGlobalScope(e,t){return this.globalScopeCache.get(e,()=>new Sue(this.indexManager.allElements(e)))}}});function Fue(e){return"string"==typeof e.$comment}function jue(e){return"object"==typeof e&&!!e&&("$ref"in e||"$error"in e)}var zue,Hue,Uue=e(()=>{"use strict";pue(),LZ(),bee(),Pte(),mt(Fue,"isAstNodeWithComment"),mt(jue,"isIntermediateReference"),zue=class{static{mt(this,"DefaultJsonSerializer")}constructor(e){this.ignoreProperties=new Set(["$container","$containerProperty","$containerIndex","$document","$cstNode"]),this.langiumDocuments=e.shared.workspace.LangiumDocuments,this.astNodeLocator=e.workspace.AstNodeLocator,this.nameProvider=e.references.NameProvider,this.commentProvider=e.documentation.CommentProvider}serialize(e,t){let i=t??{},n=t?.replacer,r=mt((e,t)=>this.replacer(e,t,i),"defaultReplacer"),s=n?(e,t)=>n(e,t,r):r;try{return this.currentDocument=oee(e),JSON.stringify(e,s,t?.space)}finally{this.currentDocument=void 0}}deserialize(e,t){t=t??{},e=JSON.parse(e);return this.linkNode(e,e,t),e}replacer(t,i,{refText:n,sourceText:r,textRegions:s,comments:a,uriConverter:o}){if(!this.ignoreProperties.has(t)){if(TZ(i)){var l=i.ref,n=n?i.$refText:void 0;if(l){let e=oee(l),t="";this.currentDocument&&this.currentDocument!==e&&(t=o?o(e.uri,i):e.uri.toString());var o=this.astNodeLocator.getAstNodePath(l);return{$ref:t+"#"+o,$refText:n}}return{$error:null!=(o=null==(l=i.error)?void 0:l.message)?o:"Could not resolve reference",$refText:n}}if(kZ(i)){let e;return s&&(e=this.addAstNodeRegionWithAssignmentsTo(Object.assign({},i)),!t||i.$document)&&e?.$textRegion&&(e.$textRegion.documentURI=null==(l=this.currentDocument)?void 0:l.uri.toString()),r&&!t&&((e=e??Object.assign({},i)).$sourceText=null==(o=i.$cstNode)?void 0:o.text),a&&(e=e??Object.assign({},i),n=this.commentProvider.getComment(i))&&(e.$comment=n.replace(/\r/g,"")),e??i}return i}}addAstNodeRegionWithAssignmentsTo(n){let r=mt(e=>({offset:e.offset,end:e.end,length:e.length,range:e.range}),"createDocumentSegment");if(n.$cstNode){let e=n.$textRegion=r(n.$cstNode),i=e.assignments={};return Object.keys(n).filter(e=>!e.startsWith("$")).forEach(e=>{var t=ste(n.$cstNode,e).map(r);0!==t.length&&(i[e]=t)}),n}}linkNode(t,i,n,e,r,s){for(var[a,o]of Object.entries(t))if(Array.isArray(o))for(let e=0;e<o.length;e++){var l=o[e];jue(l)?o[e]=this.reviveReference(t,a,i,l,n):kZ(l)&&this.linkNode(l,i,n,t,a,e)}else jue(o)?t[a]=this.reviveReference(t,a,i,o,n):kZ(o)&&this.linkNode(o,i,n,t,a);var c=t;c.$container=e,c.$containerProperty=r,c.$containerIndex=s}reviveReference(e,t,i,n,r){let s=n.$refText,a=n.$error;if(n.$ref){i=this.getRefNode(i,n.$ref,r.uriConverter);if(kZ(i))return{$refText:(s=s||this.nameProvider.getName(i))??"",ref:i};a=i}return a?((n={$refText:s??""}).error={container:e,property:t,message:a,reference:n},n):void 0}getRefNode(e,t,i){try{var n,r,s,a,o=t.indexOf("#");return 0===o?this.astNodeLocator.getAstNode(e,t.substring(1))||"Could not resolve path: "+t:o<0?(n=i?i(t):rue.parse(t),(r=this.langiumDocuments.getDocument(n))?r.parseResult.value:"Could not find document for URI: "+t):(s=i?i(t.substring(0,o)):rue.parse(t.substring(0,o)),(a=this.langiumDocuments.getDocument(s))?o===t.length-1?a.parseResult.value:this.astNodeLocator.getAstNode(a.parseResult.value,t.substring(o+1))||"Could not resolve URI: "+t:"Could not find document for URI: "+t)}catch(e){return String(e)}}}}),que=e(()=>{"use strict";gue(),Hue=class{static{mt(this,"DefaultServiceRegistry")}get map(){return this.fileExtensionMap}constructor(e){this.languageIdMap=new Map,this.fileExtensionMap=new Map,this.textDocuments=e?.workspace.TextDocuments}register(e){var t,i=e.LanguageMetaData;for(t of i.fileExtensions)this.fileExtensionMap.has(t)&&console.warn(`The file extension ${t} is used by multiple languages. It is now assigned to '${i.languageId}'.`),this.fileExtensionMap.set(t,e);this.languageIdMap.set(i.languageId,e),1===this.languageIdMap.size?this.singleton=e:this.singleton=void 0}getServices(e){if(void 0!==this.singleton)return this.singleton;if(0===this.languageIdMap.size)throw new Error("The service registry is empty. Use `register` to register the services of a language.");var t=null==(t=null==(t=this.textDocuments)?void 0:t.get(e))?void 0:t.languageId;if(void 0!==t){var i=this.languageIdMap.get(t);if(i)return i}i=aue.extname(e),e=this.fileExtensionMap.get(i);if(e)return e;throw t?new Error(`The service registry contains no services for the extension '${i}' for language '${t}'.`):new Error(`The service registry contains no services for the extension '${i}'.`)}hasServices(e){try{return this.getServices(e),!0}catch{return!1}}get all(){return Array.from(this.languageIdMap.values())}}});function Wue(e){return{code:e}}var Vue,Gue,Yue=e(()=>{"use strict";Xpe(),Nue(),Khe(),FZ(),mt(Wue,"diagnosticData"),(Vue=Vue||{}).all=["fast","slow","built-in"],Gue=class{static{mt(this,"ValidationRegistry")}constructor(e){this.entries=new xue,this.entriesBefore=[],this.entriesAfter=[],this.reflection=e.shared.AstReflection}register(e,t=this,i="fast"){if("built-in"===i)throw new Error("The 'built-in' category is reserved for lexer, parser, and linker errors.");for(var[n,r]of Object.entries(e))if(Array.isArray(r))for(var s of r){s={check:this.wrapValidationException(s,t),category:i};this.addEntry(n,s)}else"function"==typeof r?(r={check:this.wrapValidationException(r,t),category:i},this.addEntry(n,r)):cQ()}wrapValidationException(n,r){return async(e,t,i)=>{await this.handleException(()=>n.call(r,e,t,i),"An error occurred during validation",t,e)}}async handleException(e,t,i,n){try{await e()}catch(e){if(qhe(e))throw e;console.error(t+":",e),e instanceof Error&&e.stack&&console.error(e.stack),i("error",t+": "+(e instanceof Error?e.message:String(e)),{node:n})}}addEntry(e,t){if("AstNode"===e)this.entries.add("AstNode",t);else for(var i of this.reflection.getAllSubTypes(e))this.entries.add(i,t)}getChecks(e,t){let i=IZ(this.entries.get(e)).concat(this.entries.get("AstNode"));return(i=t?i.filter(e=>t.includes(e.category)):i).map(e=>e.check)}registerBeforeDocument(e,t=this){this.entriesBefore.push(this.wrapPreparationException(e,"An error occurred during set-up of the validation",t))}registerAfterDocument(e,t=this){this.entriesAfter.push(this.wrapPreparationException(e,"An error occurred during tear-down of the validation",t))}wrapPreparationException(r,s,a){return async(e,t,i,n)=>{await this.handleException(()=>r.call(a,e,t,i,n),s,t,e)}}get checksBefore(){return this.entriesBefore}get checksAfter(){return this.entriesAfter}}});function Xue(e){if(e.range)return e.range;let t;return"string"==typeof e.property?t=ate(e.node.$cstNode,e.property,e.index):"string"==typeof e.keyword&&(t=cte(e.node.$cstNode,e.keyword,e.index)),(t=t??e.node.$cstNode)?t.range:{start:{line:0,character:0},end:{line:0,character:0}}}function Kue(e){switch(e){case"error":return 1;case"warning":return 2;case"info":return 3;case"hint":return 4;default:throw new Error("Invalid diagnostic severity: "+e)}}function Zue(e){switch(e){case"error":return Wue(Jue.LexingError);case"warning":return Wue(Jue.LexingWarning);case"info":return Wue(Jue.LexingInfo);case"hint":return Wue(Jue.LexingHint);default:throw new Error("Invalid diagnostic severity: "+e)}}var Que,Jue,ede,tde,ide,nde,rde,sde,ade,ode,lde=e(()=>{"use strict";var e;jhe(),Pte(),bee(),lQ(),Khe(),Yue(),Que=class{static{mt(this,"DefaultDocumentValidator")}constructor(e){this.validationRegistry=e.validation.ValidationRegistry,this.metadata=e.LanguageMetaData}async validateDocument(e,t={},i=Fhe.CancellationToken.None){var n=e.parseResult,r=[];if(await Whe(i),t.categories&&!t.categories.includes("built-in")||(this.processLexingErrors(n,r,t),!(t.stopAfterLexingErrors&&r.some(e=>{return(null==(e=e.data)?void 0:e.code)===Jue.LexingError})||(this.processParsingErrors(n,r,t),t.stopAfterParsingErrors&&r.some(e=>{return(null==(e=e.data)?void 0:e.code)===Jue.ParsingError}))||(this.processLinkingErrors(e,r,t),t.stopAfterLinkingErrors&&r.some(e=>{return(null==(e=e.data)?void 0:e.code)===Jue.LinkingError}))))){try{r.push(...await this.validateAst(n.value,t,i))}catch(e){if(qhe(e))throw e;console.error("An error occurred during validation:",e)}await Whe(i)}return r}processLexingErrors(e,t,i){var n;for(n of[...e.lexerErrors,...null!=(e=null==(e=e.lexerReport)?void 0:e.diagnostics)?e:[]]){var r=null!=(r=n.severity)?r:"error",r={severity:Kue(r),range:{start:{line:n.line-1,character:n.column-1},end:{line:n.line-1,character:n.column+n.length-1}},message:n.message,data:Zue(r),source:this.getSource()};t.push(r)}}processParsingErrors(e,t,i){for(var n of e.parserErrors){let e;var r,s;isNaN(n.token.startOffset)?"previousToken"in n&&(s=n.previousToken,e=isNaN(s.startOffset)?{start:r={line:0,character:0},end:r}:{start:r={line:s.endLine-1,character:s.endColumn},end:r}):e=qZ(n.token),e&&(s={severity:Kue("error"),range:e,message:n.message,data:Wue(Jue.ParsingError),source:this.getSource()},t.push(s))}}processLinkingErrors(e,t,i){for(var n of e.references){var r,n=n.error;n&&(r={node:n.container,property:n.property,index:n.index,data:{code:Jue.LinkingError,containerType:n.container.$type,property:n.property,refText:n.reference.$refText}},t.push(this.toDiagnostic("error",n.message,r)))}}async validateAst(e,t,i=Fhe.CancellationToken.None){let n=[],r=mt((e,t,i)=>{n.push(this.toDiagnostic(e,t,i))},"acceptor");return await this.validateAstBefore(e,t,r,i),await this.validateAstNodes(e,t,r,i),await this.validateAstAfter(e,t,r,i),n}async validateAstBefore(e,t,i,n=Fhe.CancellationToken.None){var r,s;for(s of this.validationRegistry.checksBefore)await Whe(n),await s(e,i,null!=(r=t.categories)?r:[],n)}async validateAstNodes(e,i,n,r=Fhe.CancellationToken.None){await Promise.all(uee(e).map(async e=>{var t;await Whe(r);for(t of this.validationRegistry.getChecks(e.$type,i.categories))await t(e,n,r)}))}async validateAstAfter(e,t,i,n=Fhe.CancellationToken.None){var r,s;for(s of this.validationRegistry.checksAfter)await Whe(n),await s(e,i,null!=(r=t.categories)?r:[],n)}toDiagnostic(e,t,i){return{message:t,range:Xue(i),severity:Kue(e),code:i.code,codeDescription:i.codeDescription,tags:i.tags,relatedInformation:i.relatedInformation,data:i.data,source:this.getSource()}}getSource(){return this.metadata.languageId}},mt(Xue,"getDiagnosticRange"),mt(Kue,"toDiagnosticSeverity"),mt(Zue,"toDiagnosticData"),(e=Jue=Jue||{}).LexingError="lexing-error",e.LexingWarning="lexing-warning",e.LexingInfo="lexing-info",e.LexingHint="lexing-hint",e.ParsingError="parsing-error",e.LinkingError="linking-error"}),cde=e(()=>{"use strict";jhe(),LZ(),bee(),lQ(),Khe(),gue(),ede=class{static{mt(this,"DefaultAstNodeDescriptionProvider")}constructor(e){this.astNodeLocator=e.workspace.AstNodeLocator,this.nameProvider=e.references.NameProvider}createDescription(t,e,i){var i=i??oee(t),n=(e=e??this.nameProvider.getName(t),this.astNodeLocator.getAstNodePath(t));if(!e)throw new Error(`Node at path ${n} has no name.`);let r,s=mt(()=>{var e;return r=r??WZ(null!=(e=this.nameProvider.getNameNode(t))?e:t.$cstNode)},"nameSegmentGetter");return{node:t,name:e,get nameSegment(){return s()},selectionSegment:WZ(t.$cstNode),type:t.$type,documentUri:i.uri,path:n}}},tde=class{static{mt(this,"DefaultReferenceDescriptionProvider")}constructor(e){this.nodeLocator=e.workspace.AstNodeLocator}async createDescriptions(e,t=Fhe.CancellationToken.None){let i=[],n=e.parseResult.value;for(var r of uee(n))await Whe(t),pee(r).filter(e=>!_Z(e)).forEach(e=>{e=this.createDescription(e);e&&i.push(e)});return i}createDescription(e){var t,i=e.reference.$nodeDescription,n=e.reference.$refNode;if(i&&n)return{sourceUri:t=oee(e.container).uri,sourcePath:this.nodeLocator.getAstNodePath(e.container),targetUri:i.documentUri,targetPath:i.path,segment:WZ(n),local:aue.equals(i.documentUri,t)}}}}),hde=e(()=>{"use strict";ide=class{static{mt(this,"DefaultAstNodeLocator")}constructor(){this.segmentSeparator="/",this.indexSeparator="@"}getAstNodePath(e){var t;return e.$container?(t=this.getAstNodePath(e.$container),e=this.getPathSegment(e),t+this.segmentSeparator+e):""}getPathSegment({$containerProperty:e,$containerIndex:t}){if(e)return void 0!==t?e+this.indexSeparator+t:e;throw new Error("Missing '$containerProperty' in AST node.")}getAstNode(e,t){return t.split(this.segmentSeparator).reduce((e,t)=>{var i,n;return e&&0!==t.length?0<(n=t.indexOf(this.indexSeparator))?(i=t.substring(0,n),n=parseInt(t.substring(n+1)),e[i]?.[n]):e[t]:e},e)}}}),ude={},dde=e(()=>{"use strict";te(ude,ie(Phe(),1))}),pde=e(()=>{"use strict";dde(),Khe(),nde=class{static{mt(this,"DefaultConfigurationProvider")}constructor(e){this._ready=new Xhe,this.settings={},this.workspaceConfig=!1,this.onConfigurationSectionUpdateEmitter=new ude.Emitter,this.serviceRegistry=e.ServiceRegistry}get ready(){return this._ready.promise}initialize(e){this.workspaceConfig=null!=(e=null==(e=e.capabilities.workspace)?void 0:e.configuration)&&e}async initialized(t){var e;if(this.workspaceConfig&&(t.register&&(e=this.serviceRegistry.all,t.register({section:e.map(e=>this.toSectionName(e.LanguageMetaData.languageId))})),t.fetchConfiguration)){let e=this.serviceRegistry.all.map(e=>({section:this.toSectionName(e.LanguageMetaData.languageId)})),i=await t.fetchConfiguration(e);e.forEach((e,t)=>{this.updateSectionConfiguration(e.section,i[t])})}this._ready.resolve()}updateConfiguration(i){i.settings&&Object.keys(i.settings).forEach(e=>{var t=i.settings[e];this.updateSectionConfiguration(e,t),this.onConfigurationSectionUpdateEmitter.fire({section:e,configuration:t})})}updateSectionConfiguration(e,t){this.settings[e]=t}async getConfiguration(e,t){await this.ready;e=this.toSectionName(e);if(this.settings[e])return this.settings[e][t]}toSectionName(e){return""+e}get onConfigurationSectionUpdate(){return this.onConfigurationSectionUpdateEmitter.event}}}),gde=e(()=>{"use strict";function e(e){return{dispose:mt(async()=>e(),"dispose")}}var t;t=rde=rde||{},mt(e,"create"),t.create=e}),fde=e(()=>{"use strict";jhe(),gde(),Nue(),Khe(),FZ(),Yue(),fue(),sde=class{static{mt(this,"DefaultDocumentBuilder")}constructor(e){this.updateBuildOptions={validation:{categories:["built-in","fast"]}},this.updateListeners=[],this.buildPhaseListeners=new xue,this.documentPhaseListeners=new xue,this.buildState=new Map,this.documentBuildWaiters=new Map,this.currentState=oue.Changed,this.langiumDocuments=e.workspace.LangiumDocuments,this.langiumDocumentFactory=e.workspace.LangiumDocumentFactory,this.textDocuments=e.workspace.TextDocuments,this.indexManager=e.workspace.IndexManager,this.serviceRegistry=e.ServiceRegistry}async build(e,i={},t=Fhe.CancellationToken.None){var n;for(n of e){var r,s=n.uri.toString();if(n.state===oue.Validated){if("boolean"==typeof i.validation&&i.validation)n.state=oue.IndexedReferences,n.diagnostics=void 0,this.buildState.delete(s);else if("object"==typeof i.validation){let e=this.buildState.get(s),t=null==(r=e?.result)?void 0:r.validationChecks;t&&0<(r=(null!=(r=i.validation.categories)?r:Vue.all).filter(e=>!t.includes(e))).length&&(this.buildState.set(s,{completed:!1,options:{validation:Object.assign(Object.assign({},i.validation),{categories:r})},result:e.result}),n.state=oue.IndexedReferences)}}else this.buildState.delete(s)}this.currentState=oue.Changed,await this.emitUpdate(e.map(e=>e.uri),[]),await this.buildDocuments(e,i,t)}async update(e,t,i=Fhe.CancellationToken.None){this.currentState=oue.Changed;for(var n of t)this.langiumDocuments.deleteDocument(n),this.buildState.delete(n.toString()),this.indexManager.remove(n);for(var r of e){var s;this.langiumDocuments.invalidateDocument(r)||((s=this.langiumDocumentFactory.fromModel({$type:"INVALID"},r)).state=oue.Changed,this.langiumDocuments.addDocument(s)),this.buildState.delete(r.toString())}let a=IZ(e).concat(t).map(e=>e.toString()).toSet();this.langiumDocuments.all.filter(e=>!a.has(e.uri.toString())&&this.shouldRelink(e,a)).forEach(e=>{this.serviceRegistry.getServices(e.uri).references.Linker.unlink(e),e.state=Math.min(e.state,oue.ComputedScopes),e.diagnostics=void 0}),await this.emitUpdate(e,t),await Whe(i);e=this.sortDocuments(this.langiumDocuments.all.filter(e=>{return e.state<oue.Linked||!(null!=(e=this.buildState.get(e.uri.toString()))&&e.completed)}).toArray());await this.buildDocuments(e,this.updateBuildOptions,i)}async emitUpdate(t,i){await Promise.all(this.updateListeners.map(e=>e(t,i)))}sortDocuments(e){let t=0,i=e.length-1;for(;t<i;){for(;t<e.length&&this.hasTextDocument(e[t]);)t++;for(;0<=i&&!this.hasTextDocument(e[i]);)i--;t<i&&([e[t],e[i]]=[e[i],e[t]])}return e}hasTextDocument(e){var t;return!(null==(t=this.textDocuments)||!t.get(e.uri))}shouldRelink(e,t){return!!e.references.some(e=>void 0!==e.error)||this.indexManager.isAffected(e,t)}onUpdate(t){return this.updateListeners.push(t),rde.create(()=>{var e=this.updateListeners.indexOf(t);0<=e&&this.updateListeners.splice(e,1)})}async buildDocuments(e,t,i){this.prepareBuild(e,t),await this.runCancelable(e,oue.Parsed,i,e=>this.langiumDocumentFactory.update(e,i)),await this.runCancelable(e,oue.IndexedContent,i,e=>this.indexManager.updateContent(e,i)),await this.runCancelable(e,oue.ComputedScopes,i,async e=>{var t=this.serviceRegistry.getServices(e.uri).references.ScopeComputation;e.precomputedScopes=await t.computeLocalScopes(e,i)}),await this.runCancelable(e,oue.Linked,i,e=>this.serviceRegistry.getServices(e.uri).references.Linker.link(e,i)),await this.runCancelable(e,oue.IndexedReferences,i,e=>this.indexManager.updateReferences(e,i));var n,t=e.filter(e=>this.shouldValidate(e));await this.runCancelable(t,oue.Validated,i,e=>this.validate(e,i));for(n of e){var r=this.buildState.get(n.uri.toString());r&&(r.completed=!0)}}prepareBuild(e,t){for(var i of e){var i=i.uri.toString(),n=this.buildState.get(i);n&&!n.completed||this.buildState.set(i,{completed:!1,options:t,result:n?.result})}}async runCancelable(e,t,i,n){var r;for(r of e.filter(e=>e.state<t))await Whe(i),await n(r),r.state=t,await this.notifyDocumentPhase(r,t,i);e=e.filter(e=>e.state===t);await this.notifyBuildPhase(e,t,i),this.currentState=t}onBuildPhase(e,t){return this.buildPhaseListeners.add(e,t),rde.create(()=>{this.buildPhaseListeners.delete(e,t)})}onDocumentPhase(e,t){return this.documentPhaseListeners.add(e,t),rde.create(()=>{this.documentPhaseListeners.delete(e,t)})}waitUntil(r,e,s){let a;if(e&&"path"in e?a=e:s=e,s=s??Fhe.CancellationToken.None,a){e=this.langiumDocuments.getDocument(a);if(e&&e.state>r)return Promise.resolve(a)}return this.currentState>=r?Promise.resolve(void 0):s.isCancellationRequested?Promise.reject(Yhe):new Promise((t,e)=>{let i=this.onBuildPhase(r,()=>{var e;i.dispose(),n.dispose(),a?(e=this.langiumDocuments.getDocument(a),t(e?.uri)):t(void 0)}),n=s.onCancellationRequested(()=>{i.dispose(),n.dispose(),e(Yhe)})})}async notifyDocumentPhase(e,t,i){var n;for(n of this.documentPhaseListeners.get(t).slice())try{await n(e,i)}catch(e){if(!qhe(e))throw e}}async notifyBuildPhase(e,t,i){var n;if(0!==e.length)for(n of this.buildPhaseListeners.get(t).slice())await Whe(i),await n(e,i)}shouldValidate(e){return!!this.getBuildOptions(e).validation}async validate(e,t){var i=this.serviceRegistry.getServices(e.uri).validation.DocumentValidator,n=this.getBuildOptions(e).validation,n="object"==typeof n?n:void 0,i=await i.validateDocument(e,n,t),t=(e.diagnostics?e.diagnostics.push(...i):e.diagnostics=i,this.buildState.get(e.uri.toString()));t&&(null==t.result&&(t.result={}),e=null!=(i=n?.categories)?i:Vue.all,t.result.validationChecks?t.result.validationChecks.push(...e):t.result.validationChecks=[...e])}getBuildOptions(e){return null!=(e=null==(e=this.buildState.get(e.uri.toString()))?void 0:e.options)?e:{}}}}),mde=e(()=>{"use strict";bee(),Pue(),jhe(),FZ(),gue(),ade=class{static{mt(this,"DefaultIndexManager")}constructor(e){this.symbolIndex=new Map,this.symbolByTypeIndex=new Eue,this.referenceIndex=new Map,this.documents=e.workspace.LangiumDocuments,this.serviceRegistry=e.ServiceRegistry,this.astReflection=e.AstReflection}findAllReferences(e,t){let i=oee(e).uri,n=[];return this.referenceIndex.forEach(e=>{e.forEach(e=>{aue.equals(e.targetUri,i)&&e.targetPath===t&&n.push(e)})}),IZ(n)}allElements(t,i){let e=IZ(this.symbolIndex.keys());return(e=i?e.filter(e=>!i||i.has(e)):e).map(e=>this.getFileDescriptions(e,t)).flat()}getFileDescriptions(t,i){var e;return i?this.symbolByTypeIndex.get(t,i,()=>{var e;return(null!=(e=this.symbolIndex.get(t))?e:[]).filter(e=>this.astReflection.isSubtype(e.type,i))}):null!=(e=this.symbolIndex.get(t))?e:[]}remove(e){e=e.toString();this.symbolIndex.delete(e),this.symbolByTypeIndex.clear(e),this.referenceIndex.delete(e)}async updateContent(e,t=Fhe.CancellationToken.None){t=await this.serviceRegistry.getServices(e.uri).references.ScopeComputation.computeExports(e,t),e=e.uri.toString();this.symbolIndex.set(e,t),this.symbolByTypeIndex.clear(e)}async updateReferences(e,t=Fhe.CancellationToken.None){t=await this.serviceRegistry.getServices(e.uri).workspace.ReferenceDescriptionProvider.createDescriptions(e,t);this.referenceIndex.set(e.uri.toString(),t)}isAffected(e,t){e=this.referenceIndex.get(e.uri.toString());return!!e&&e.some(e=>!e.local&&t.has(e.targetUri.toString()))}}}),yde=e(()=>{"use strict";jhe(),Khe(),gue(),ode=class{static{mt(this,"DefaultWorkspaceManager")}constructor(e){this.initialBuildOptions={},this._ready=new Xhe,this.serviceRegistry=e.ServiceRegistry,this.langiumDocuments=e.workspace.LangiumDocuments,this.documentBuilder=e.workspace.DocumentBuilder,this.fileSystemProvider=e.workspace.FileSystemProvider,this.mutex=e.workspace.WorkspaceLock}get ready(){return this._ready.promise}get workspaceFolders(){return this.folders}initialize(e){this.folders=null!=(e=e.workspaceFolders)?e:void 0}initialized(e){return this.mutex.write(e=>{var t;return this.initializeWorkspace(null!=(t=this.folders)?t:[],e)})}async initializeWorkspace(e,t=Fhe.CancellationToken.None){e=await this.performStartup(e);await Whe(t),await this.documentBuilder.build(e,this.initialBuildOptions,t)}async performStartup(e){let t=this.serviceRegistry.all.flatMap(e=>e.LanguageMetaData.fileExtensions),i=[],n=mt(e=>{i.push(e),this.langiumDocuments.hasDocument(e.uri)||this.langiumDocuments.addDocument(e)},"collector");return await this.loadAdditionalDocuments(e,n),await Promise.all(e.map(e=>[e,this.getRootFolder(e)]).map(async e=>this.traverseFolder(...e,t,n))),this._ready.resolve(),i}loadAdditionalDocuments(e,t){return Promise.resolve()}getRootFolder(e){return rue.parse(e.uri)}async traverseFolder(t,e,i,n){e=await this.fileSystemProvider.readDirectory(e);await Promise.all(e.map(async e=>{this.includeEntry(t,e,i)&&(e.isDirectory?await this.traverseFolder(t,e.uri,i,n):e.isFile&&(e=await this.langiumDocuments.getOrCreateDocument(e.uri),n(e)))}))}includeEntry(e,t,i){var n=aue.basename(t.uri);return!n.startsWith(".")&&(t.isDirectory?"node_modules"!==n&&"out"!==n:!!t.isFile&&(n=aue.extname(t.uri),i.includes(n)))}}});function bde(e){return Array.isArray(e)&&(0===e.length||"name"in e[0])}function vde(e){return e&&"modes"in e&&"defaultMode"in e}function xde(e){return!bde(e)&&!vde(e)}var wde,kde,Tde,Sde=e(()=>{"use strict";Kae(),wde=class{static{mt(this,"DefaultLexerErrorMessageProvider")}buildUnexpectedCharactersMessage(e,t,i,n,r){return Yne.buildUnexpectedCharactersMessage(e,t,i,n,r)}buildUnableToPopLexerModeMessage(e){return Yne.buildUnableToPopLexerModeMessage(e)}},kde={mode:"full"},Tde=class{static{mt(this,"DefaultLexer")}constructor(e){this.errorMessageProvider=e.parser.LexerErrorMessageProvider,this.tokenBuilder=e.parser.TokenBuilder;var t=this.tokenBuilder.buildTokens(e.Grammar,{caseInsensitive:e.LanguageMetaData.caseInsensitive}),t=(this.tokenTypes=this.toTokenTypeDictionary(t),xde(t)?Object.values(t):t),e="production"===e.LanguageMetaData.mode;this.chevrotainLexer=new Zne(t,{positionTracking:"full",skipValidations:e,errorMessageProvider:this.errorMessageProvider})}get definition(){return this.tokenTypes}tokenize(e,t=0){var i,n=this.chevrotainLexer.tokenize(e);return{tokens:n.tokens,errors:n.errors,hidden:null!=(n=n.groups.hidden)?n:[],report:null==(i=(n=this.tokenBuilder).flushLexingReport)?void 0:i.call(n,e)}}toTokenTypeDictionary(e){if(xde(e))return e;let t=vde(e)?Object.values(e.modes).flat():e,i={};return t.forEach(e=>i[e.name]=e),i}},mt(bde,"isTokenTypeArray"),mt(vde,"isIMultiModeLexerDefinition"),mt(xde,"isTokenTypeDictionary")});function _de(e,t,i){let n,r;n="string"==typeof e?(r=t,i):(r=e.range.start,t),r=r||xle.create(0,0);i=Ade(e),t=Fde(n);return Mde({index:0,tokens:Ede({lines:i,position:r,options:t}),position:r})}function Cde(e,t){var i,n,t=Fde(t),e=Ade(e);return 0!==e.length&&(i=e[0],e=e[e.length-1],n=t.start,t=t.end,!!n?.exec(i))&&!!t?.exec(e)}function Ade(e){let t="";return(t="string"==typeof e?e:e.text).split(Vee)}function Ede(s){var a,o,l,c,h,u,d;let p=[],g=s.position.line,f=s.position.character;for(let r=0;r<s.lines.length;r++){let e=0===r,t=r===s.lines.length-1,i=s.lines[r],n=0;e&&s.options.start?(a=null==(a=s.options.start)?void 0:a.exec(i))&&(n=a.index+a[0].length):(o=null==(a=s.options.line)?void 0:a.exec(i))&&(n=o.index+o[0].length),Lde(i=(i=t&&(l=null==(o=s.options.end)?void 0:o.exec(i))?i.substring(0,l.index):i).substring(0,Rde(i)),n)>=i.length?0<p.length&&(l=xle.create(g,f),p.push({type:"break",content:"",range:wle.create(l,l)})):(qde.lastIndex=n,(u=qde.exec(i))&&(c=u[0],u=u[1],d=xle.create(g,f+n),h=xle.create(g,f+n+c.length),p.push({type:"tag",content:u,range:wle.create(d,h)}),n+=c.length,n=Lde(i,n)),n<i.length&&(u=i.substring(n),d=Array.from(u.matchAll(Wde)),p.push(...$de(d,u,g,f+n)))),g++,f=0}return 0<p.length&&"break"===p[p.length-1].type?p.slice(0,-1):p}function $de(e,n,r,s){var a=[];if(0===e.length){var t=xle.create(r,s),i=xle.create(r,s+n.length);a.push({type:"text",content:n,range:wle.create(t,i)})}else{let i=0;for(var o of e){var l=o.index,c=n.substring(i,l);0<c.length&&a.push({type:"text",content:n.substring(i,l),range:wle.create(xle.create(r,i+s),xle.create(r,l+s))});let e=c.length+1,t=o[1];a.push({type:"inline-tag",content:t,range:wle.create(xle.create(r,i+e+s),xle.create(r,i+e+t.length+s))}),e+=t.length,4===o.length?(e+=o[2].length,c=o[3],a.push({type:"text",content:c,range:wle.create(xle.create(r,i+e+s),xle.create(r,i+e+c.length+s))})):a.push({type:"text",content:"",range:wle.create(xle.create(r,i+e+s),xle.create(r,i+e+s))}),i=l+o[0].length}t=n.substring(i);0<t.length&&a.push({type:"text",content:t,range:wle.create(xle.create(r,i+s),xle.create(r,i+s+t.length))})}return a}function Lde(e,t){var i=e.substring(t).match(Vde);return i?t+i.index:e.length}function Rde(e){e=e.match(Gde);if(e&&"number"==typeof e.index)return e.index}function Mde(e){var t=xle.create(e.position.line,e.position.character);if(0===e.tokens.length)return new Yde([],wle.create(t,t));for(var i=[];e.index<e.tokens.length;){var n=Ide(e,i[i.length-1]);n&&i.push(n)}var r=null!=(r=null==(r=i[0])?void 0:r.range.start)?r:t,s=null!=(s=null==(s=i[i.length-1])?void 0:s.range.end)?s:t;return new Yde(i,wle.create(r,s))}function Ide(e,t){var i=e.tokens[e.index];return"tag"===i.type?Pde(e,!1):"text"===i.type||"inline-tag"===i.type?Dde(e):(Nde(i,t),void e.index++)}function Nde(e,t){t&&(e=new Zde("",e.range),("inlines"in t?t:t.content).inlines.push(e))}function Dde(e){let t=e.tokens[e.index],i=t,n=t,r=[];for(;t&&"break"!==t.type&&"tag"!==t.type;)r.push(Ode(e)),n=t,t=e.tokens[e.index];return new Kde(r,wle.create(i.range.start,n.range.end))}function Ode(e){return"inline-tag"===e.tokens[e.index].type?Pde(e,!0):Bde(e)}function Pde(e,t){var i,n=e.tokens[e.index++],r=n.content.substring(1);return"text"===e.tokens[e.index]?.type?t?(i=Bde(e),new Xde(r,new Kde([i],i.range),t,wle.create(n.range.start,i.range.end))):(i=Dde(e),new Xde(r,i,t,wle.create(n.range.start,i.range.end))):(e=n.range,new Xde(r,new Kde([],e),t,e))}function Bde(e){e=e.tokens[e.index++];return new Zde(e.content,e.range)}function Fde(e){var t,i;return e?({start:e,end:t,line:i}=e,{start:jde(e,!0),end:jde(t,!1),line:jde(i,!0)}):Fde({start:"/**",end:"*/",line:"*"})}function jde(e,t){var i;return"string"==typeof e||"object"==typeof e?(i="string"==typeof e?Hee(e):e.source,t?new RegExp("^\\s*"+i):new RegExp(`\\s*${i}\\s*$`)):e}function zde(i,n,r){var s;if("linkplain"===i||"linkcode"===i||"link"===i){let e=n.indexOf(" "),t=n;return 0<e&&(s=Lde(n,e),t=n.substring(s),n=n.substring(0,e)),("linkcode"===i||"link"===i&&"code"===r.link)&&(t=`\`${t}\``),null!=(i=null==(s=r.renderLink)?void 0:s.call(r,n,t))?i:Hde(n,t)}}function Hde(e,t){try{return rue.parse(e,!0),`[${t}](${e})`}catch{return e}}function Ude(e){return e.endsWith(`
|
||
`)?`
|
||
`:`
|
||
|
||
`}var qde,Wde,Vde,Gde,Yde,Xde,Kde,Zde,Qde,Jde,epe,tpe,ipe,npe,rpe,spe=e(()=>{"use strict";Yce(),Zee(),gue(),mt(_de,"parseJSDoc"),mt(Cde,"isJSDoc"),mt(Ade,"getLines"),qde=/\s*(@([\p{L}][\p{L}\p{N}]*)?)/uy,Wde=/\{(@[\p{L}][\p{L}\p{N}]*)(\s*)([^\r\n}]+)?\}/gu,mt(Ede,"tokenize"),mt($de,"buildInlineTokens"),Vde=/\S/,Gde=/\s*$/,mt(Lde,"skipWhitespace"),mt(Rde,"lastCharacter"),mt(Mde,"parseJSDocComment"),mt(Ide,"parseJSDocElement"),mt(Nde,"appendEmptyLine"),mt(Dde,"parseJSDocText"),mt(Ode,"parseJSDocInline"),mt(Pde,"parseJSDocTag"),mt(Bde,"parseJSDocLine"),mt(Fde,"normalizeOptions"),mt(jde,"normalizeOption"),Yde=class{static{mt(this,"JSDocCommentImpl")}constructor(e,t){this.elements=e,this.range=t}getTag(t){return this.getAllTags().find(e=>e.name===t)}getTags(t){return this.getAllTags().filter(e=>e.name===t)}getAllTags(){return this.elements.filter(e=>"name"in e)}toString(){let e="";for(var t of this.elements)0===e.length?e=t.toString():(t=t.toString(),e+=Ude(e)+t);return e.trim()}toMarkdown(e){let t="";for(var i of this.elements)0===t.length?t=i.toMarkdown(e):(i=i.toMarkdown(e),t+=Ude(t)+i);return t.trim()}},Xde=class{static{mt(this,"JSDocTagImpl")}constructor(e,t,i,n){this.name=e,this.content=t,this.inline=i,this.range=n}toString(){let e="@"+this.name,t=this.content.toString();return 1===this.content.inlines.length?e=e+" "+t:1<this.content.inlines.length&&(e=e+`
|
||
`+t),this.inline?`{${e}}`:e}toMarkdown(e){var t;return null!=(t=null==(t=e?.renderTag)?void 0:t.call(e,this))?t:this.toMarkdownDefault(e)}toMarkdownDefault(e){var t=this.content.toMarkdown(e);if(this.inline){var i=zde(this.name,t,e??{});if("string"==typeof i)return i}let n="",r=("italic"===e?.tag||void 0===e?.tag?n="*":"bold"===e?.tag?n="**":"bold-italic"===e?.tag&&(n="***"),n+"@"+this.name+n);return 1===this.content.inlines.length?r=r+" — "+t:1<this.content.inlines.length&&(r=r+`
|
||
`+t),this.inline?`{${r}}`:r}},mt(zde,"renderInlineTag"),mt(Hde,"renderLinkDefault"),Kde=class{static{mt(this,"JSDocTextImpl")}constructor(e,t){this.inlines=e,this.range=t}toString(){let t="";for(let e=0;e<this.inlines.length;e++){var i=this.inlines[e],n=this.inlines[e+1];t+=i.toString(),n&&n.range.start.line>i.range.start.line&&(t+=`
|
||
`)}return t}toMarkdown(t){let i="";for(let e=0;e<this.inlines.length;e++){var n=this.inlines[e],r=this.inlines[e+1];i+=n.toMarkdown(t),r&&r.range.start.line>n.range.start.line&&(i+=`
|
||
`)}return i}},Zde=class{static{mt(this,"JSDocLineImpl")}constructor(e,t){this.text=e,this.range=t}toString(){return this.text}toMarkdown(){return this.text}},mt(Ude,"fillNewlines")}),ape=e(()=>{"use strict";bee(),spe(),Qde=class{static{mt(this,"JSDocDocumentationProvider")}constructor(e){this.indexManager=e.shared.workspace.IndexManager,this.commentProvider=e.documentation.CommentProvider}getDocumentation(i){var e=this.commentProvider.getComment(i);if(e&&Cde(e))return _de(e).toMarkdown({renderLink:mt((e,t)=>this.documentationLinkRenderer(i,e,t),"renderLink"),renderTag:mt(e=>this.documentationTagRenderer(i,e),"renderTag")})}documentationLinkRenderer(e,t,i){var n=null!=(n=this.findNameInPrecomputedScopes(e,t))?n:this.findNameInGlobalScope(e,t);return n&&n.nameSegment?(e=n.nameSegment.range.start.line+1,t=n.nameSegment.range.start.character+1,`[${i}](${n.documentUri.with({fragment:`L${e},`+t}).toString()})`):void 0}documentationTagRenderer(e,t){}findNameInPrecomputedScopes(t,i){var n=oee(t).precomputedScopes;if(n){let e=t;do{var r=n.get(e).find(e=>e.name===i);if(r)return r}while(e=e.$container)}}findNameInGlobalScope(e,t){return this.indexManager.allElements().find(e=>e.name===t)}}}),ope=e(()=>{"use strict";Uue(),lQ(),Jde=class{static{mt(this,"DefaultCommentProvider")}constructor(e){this.grammarConfig=()=>e.parser.GrammarConfig}getComment(e){return Fue(e)?e.$comment:null==(e=XZ(e.$cstNode,this.grammarConfig().multilineCommentRules))?void 0:e.text}}}),lpe=e(()=>{"use strict";Khe(),dde(),epe=class{static{mt(this,"DefaultAsyncParser")}constructor(e){this.syncParser=e.parser.LangiumParser}parse(e,t){return Promise.resolve(this.syncParser.parse(e))}},tpe=class{static{mt(this,"AbstractThreadedAsyncParser")}constructor(e){this.threadCount=8,this.terminationDelay=200,this.workerPool=[],this.queue=[],this.hydrator=e.serializer.Hydrator}initializeWorkers(){for(;this.workerPool.length<this.threadCount;){let t=this.createWorker();t.onReady(()=>{var e;0<this.queue.length&&(e=this.queue.shift())&&(t.lock(),e.resolve(t))}),this.workerPool.push(t)}}async parse(e,t){let i=await this.acquireParserWorker(t),n=new Xhe,r,s=t.onCancellationRequested(()=>{r=setTimeout(()=>{this.terminateWorker(i)},this.terminationDelay)});return i.parse(e).then(e=>{e=this.hydrator.hydrate(e);n.resolve(e)}).catch(e=>{n.reject(e)}).finally(()=>{s.dispose(),clearTimeout(r)}),n.promise}terminateWorker(e){e.terminate();e=this.workerPool.indexOf(e);0<=e&&this.workerPool.splice(e,1)}async acquireParserWorker(e){this.initializeWorkers();for(var t of this.workerPool)if(t.ready)return t.lock(),t;let i=new Xhe;return e.onCancellationRequested(()=>{var e=this.queue.indexOf(i);0<=e&&this.queue.splice(e,1),i.reject(Yhe)}),this.queue.push(i),i.promise}},ipe=class{static{mt(this,"ParserWorker")}get ready(){return this._ready}get onReady(){return this.onReadyEmitter.event}constructor(e,t,i,n){this.onReadyEmitter=new ude.Emitter,this.deferred=new Xhe,this._ready=!0,this._parsing=!1,this.sendMessage=e,this._terminate=n,t(e=>{this.deferred.resolve(e),this.unlock()}),i(e=>{this.deferred.reject(e),this.unlock()})}terminate(){this.deferred.reject(Yhe),this._terminate()}lock(){this._ready=!1}unlock(){this._parsing=!1,this._ready=!0,this.onReadyEmitter.fire()}parse(e){if(this._parsing)throw new Error("Parser worker is busy");return this._parsing=!0,this.deferred=new Xhe,this.sendMessage(e),this.deferred.promise}}}),cpe=e(()=>{"use strict";jhe(),Khe(),npe=class{static{mt(this,"DefaultWorkspaceLock")}constructor(){this.previousTokenSource=new Fhe.CancellationTokenSource,this.writeQueue=[],this.readQueue=[],this.done=!0}write(e){this.cancelWrite();var t=Hhe();return this.previousTokenSource=t,this.enqueue(this.writeQueue,e,t.token)}read(e){return this.enqueue(this.readQueue,e)}enqueue(e,t,i=Fhe.CancellationToken.None){var n=new Xhe;return e.push({action:t,deferred:n,cancellationToken:i}),this.performNextOperation(),n.promise}async performNextOperation(){if(this.done){var e=[];if(0<this.writeQueue.length)e.push(this.writeQueue.shift());else{if(!(0<this.readQueue.length))return;e.push(...this.readQueue.splice(0,this.readQueue.length))}this.done=!1,await Promise.all(e.map(async({action:e,deferred:t,cancellationToken:i})=>{try{var n=await Promise.resolve().then(()=>e(i));t.resolve(n)}catch(e){qhe(e)?t.resolve(void 0):t.reject(e)}})),this.done=!0,this.performNextOperation()}}cancelWrite(){this.previousTokenSource.cancel()}}}),hpe=e(()=>{"use strict";Xce(),iee(),LZ(),bee(),Nue(),lQ(),rpe=class{static{mt(this,"DefaultHydrator")}constructor(e){this.grammarElementIdMap=new wue,this.tokenTypeIdMap=new wue,this.grammar=e.Grammar,this.lexer=e.parser.Lexer,this.linker=e.references.Linker}dehydrate(e){return{lexerErrors:e.lexerErrors,lexerReport:e.lexerReport?this.dehydrateLexerReport(e.lexerReport):void 0,parserErrors:e.parserErrors.map(e=>Object.assign(Object.assign({},e),{message:e.message})),value:this.dehydrateAstNode(e.value,this.createDehyrationContext(e.value))}}dehydrateLexerReport(e){return e}createDehyrationContext(e){var t,i=new Map,n=new Map;for(t of uee(e))i.set(t,{});if(e.$cstNode)for(var r of zZ(e.$cstNode))n.set(r,{});return{astNodes:i,cstNodes:n}}dehydrateAstNode(e,t){var i,n,r=t.astNodes.get(e);r.$type=e.$type,r.$containerIndex=e.$containerIndex,r.$containerProperty=e.$containerProperty,void 0!==e.$cstNode&&(r.$cstNode=this.dehydrateCstNode(e.$cstNode,t));for([i,n]of Object.entries(e))if(!i.startsWith("$"))if(Array.isArray(n)){var s,a=[];r[i]=a;for(s of n)kZ(s)?a.push(this.dehydrateAstNode(s,t)):TZ(s)?a.push(this.dehydrateReference(s,t)):a.push(s)}else kZ(n)?r[i]=this.dehydrateAstNode(n,t):TZ(n)?r[i]=this.dehydrateReference(n,t):void 0!==n&&(r[i]=n);return r}dehydrateReference(e,t){var i={};return i.$refText=e.$refText,e.$refNode&&(i.$refNode=t.cstNodes.get(e.$refNode)),i}dehydrateCstNode(e,t){var i=t.cstNodes.get(e);return EZ(e)?i.fullText=e.fullText:i.grammarSource=this.getGrammarElementId(e.grammarSource),i.hidden=e.hidden,i.astNode=t.astNodes.get(e.astNode),CZ(e)?i.content=e.content.map(e=>this.dehydrateCstNode(e,t)):AZ(e)&&(i.tokenType=e.tokenType.name,i.offset=e.offset,i.length=e.length,i.startLine=e.range.start.line,i.startColumn=e.range.start.character,i.endLine=e.range.end.line,i.endColumn=e.range.end.character),i}hydrate(e){var t=e.value,i=this.createHydrationContext(t);return"$cstNode"in t&&this.hydrateCstNode(t.$cstNode,i),{lexerErrors:e.lexerErrors,lexerReport:e.lexerReport,parserErrors:e.parserErrors,value:this.hydrateAstNode(t,i)}}createHydrationContext(e){var t,i=new Map,n=new Map;for(t of uee(e))i.set(t,{});let r;if(e.$cstNode)for(var s of zZ(e.$cstNode)){let e;"fullText"in s?(e=new Wce(s.fullText),r=e):"content"in s?e=new Uce:"tokenType"in s&&(e=this.hydrateCstLeafNode(s)),e&&(n.set(s,e),e.root=r)}return{astNodes:i,cstNodes:n}}hydrateAstNode(e,t){var i,n,r=t.astNodes.get(e);r.$type=e.$type,r.$containerIndex=e.$containerIndex,r.$containerProperty=e.$containerProperty,e.$cstNode&&(r.$cstNode=t.cstNodes.get(e.$cstNode));for([i,n]of Object.entries(e))if(!i.startsWith("$"))if(Array.isArray(n)){var s,a=[];r[i]=a;for(s of n)kZ(s)?a.push(this.setParent(this.hydrateAstNode(s,t),r)):TZ(s)?a.push(this.hydrateReference(s,r,i,t)):a.push(s)}else kZ(n)?r[i]=this.setParent(this.hydrateAstNode(n,t),r):TZ(n)?r[i]=this.hydrateReference(n,r,i,t):void 0!==n&&(r[i]=n);return r}setParent(e,t){return e.$container=t,e}hydrateReference(e,t,i,n){return this.linker.buildReference(t,i,n.cstNodes.get(e.$refNode),e.$refText)}hydrateCstNode(e,t,i=0){var n=t.cstNodes.get(e);if("number"==typeof e.grammarSource&&(n.grammarSource=this.getGrammarElement(e.grammarSource)),n.astNode=t.astNodes.get(e.astNode),CZ(n))for(var r of e.content){r=this.hydrateCstNode(r,t,i++);n.content.push(r)}return n}hydrateCstLeafNode(e){var t=this.getTokenType(e.tokenType),i=e.offset,n=e.length,r=e.startLine,s=e.startColumn,a=e.endLine,o=e.endColumn,e=e.hidden;return new Hce(i,n,{start:{line:r,character:s},end:{line:a,character:o}},t,e)}getTokenType(e){return this.lexer.definition[e]}getGrammarElementId(e){if(e)return 0===this.grammarElementIdMap.size&&this.createGrammarElementIdMap(),this.grammarElementIdMap.get(e)}getGrammarElement(e){return 0===this.grammarElementIdMap.size&&this.createGrammarElementIdMap(),this.grammarElementIdMap.getKey(e)}createGrammarElementIdMap(){let e=0;for(var t of uee(this.grammar))xQ(t)&&this.grammarElementIdMap.set(t,e++)}}});function upe(e){return{documentation:{CommentProvider:mt(e=>new Jde(e),"CommentProvider"),DocumentationProvider:mt(e=>new Qde(e),"DocumentationProvider")},parser:{AsyncParser:mt(e=>new epe(e),"AsyncParser"),GrammarConfig:mt(e=>Bte(e),"GrammarConfig"),LangiumParser:mt(e=>Ahe(e),"LangiumParser"),CompletionParser:mt(e=>_he(e),"CompletionParser"),ValueConverter:mt(()=>new Lhe,"ValueConverter"),TokenBuilder:mt(()=>new $he,"TokenBuilder"),Lexer:mt(e=>new Tde(e),"Lexer"),ParserErrorMessageProvider:mt(()=>new ihe,"ParserErrorMessageProvider"),LexerErrorMessageProvider:mt(()=>new wde,"LexerErrorMessageProvider")},workspace:{AstNodeLocator:mt(()=>new ide,"AstNodeLocator"),AstNodeDescriptionProvider:mt(e=>new ede(e),"AstNodeDescriptionProvider"),ReferenceDescriptionProvider:mt(e=>new tde(e),"ReferenceDescriptionProvider")},references:{Linker:mt(e=>new uue(e),"Linker"),NameProvider:mt(()=>new bue,"NameProvider"),ScopeProvider:mt(e=>new Rue(e),"ScopeProvider"),ScopeComputation:mt(e=>new kue(e),"ScopeComputation"),References:mt(e=>new vue(e),"References")},serializer:{Hydrator:mt(e=>new rpe(e),"Hydrator"),JsonSerializer:mt(e=>new zue(e),"JsonSerializer")},validation:{DocumentValidator:mt(e=>new Que(e),"DocumentValidator"),ValidationRegistry:mt(e=>new Gue(e),"ValidationRegistry")},shared:mt(()=>e.shared,"shared")}}function dpe(t){return{ServiceRegistry:mt(e=>new Hue(e),"ServiceRegistry"),workspace:{LangiumDocuments:mt(e=>new cue(e),"LangiumDocuments"),LangiumDocumentFactory:mt(e=>new lue(e),"LangiumDocumentFactory"),DocumentBuilder:mt(e=>new sde(e),"DocumentBuilder"),IndexManager:mt(e=>new ade(e),"IndexManager"),WorkspaceManager:mt(e=>new ode(e),"WorkspaceManager"),FileSystemProvider:mt(e=>t.fileSystemProvider(e),"FileSystemProvider"),WorkspaceLock:mt(()=>new npe,"WorkspaceLock"),ConfigurationProvider:mt(e=>new nde(e),"ConfigurationProvider")}}}var ppe=e(()=>{"use strict";Fte(),Che(),Mhe(),Ihe(),Nhe(),mue(),Mue(),Iue(),Due(),Bue(),Uue(),que(),lde(),Yue(),cde(),hde(),pde(),fde(),fue(),mde(),yde(),Sde(),ape(),ope(),ahe(),lpe(),cpe(),hpe(),mt(upe,"createDefaultCoreModule"),mt(dpe,"createDefaultSharedCoreModule")});function gpe(e,t,i,n,r,s,a,o,l){return mpe([e,t,i,n,r,s,a,o,l].reduce(bpe,{}))}function fpe(e){if(e&&e[xpe])for(var t of Object.values(e))fpe(t);return e}function mpe(i,n){let r=new Proxy({},{deleteProperty:mt(()=>!1,"deleteProperty"),set:mt(()=>{throw new Error("Cannot set property on injected service container")},"set"),get:mt((e,t)=>t===xpe||ype(e,t,i,n||r),"get"),getOwnPropertyDescriptor:mt((e,t)=>(ype(e,t,i,n||r),Object.getOwnPropertyDescriptor(e,t)),"getOwnPropertyDescriptor"),has:mt((e,t)=>t in i,"has"),ownKeys:mt(()=>[...Object.getOwnPropertyNames(i)],"ownKeys")});return r}function ype(t,i,e,n){if(i in t){if(t[i]instanceof Error)throw new Error("Construction failure. Please make sure that your dependencies are constructable.",{cause:t[i]});if(t[i]===wpe)throw new Error('Cycle detected. Please make "'+String(i)+'" lazy. Visit https://langium.org/docs/reference/configuration-services/#resolving-cyclic-dependencies');return t[i]}if(i in e){e=e[i];t[i]=wpe;try{t[i]="function"==typeof e?e(n):mpe(e,n)}catch(e){throw t[i]=e instanceof Error?e:void 0,e}return t[i]}}function bpe(e,t){if(t)for(var[i,n]of Object.entries(t)){var r;void 0!==n&&(null!==(r=e[i])&&null!==n&&"object"==typeof r&&"object"==typeof n?e[i]=bpe(r,n):e[i]=n)}return e}var vpe,xpe,wpe,kpe,Tpe,Spe,_pe,Cpe,Ape,Epe=e(()=>{"use strict";(vpe||(vpe={})).merge=(e,t)=>bpe(bpe({},e),t),mt(gpe,"inject"),xpe=Symbol("isProxy"),mt(fpe,"eagerLoad"),mt(mpe,"_inject"),wpe=Symbol(),mt(ype,"_resolve"),mt(bpe,"_merge")}),$pe=e(()=>{}),Lpe=e(()=>{"use strict";ope(),ape(),spe()}),Rpe=e(()=>{}),Mpe=e(()=>{"use strict";Fte(),Rpe()}),Ipe=e(()=>{"use strict";var e;Kae(),Ihe(),Sde(),kpe={indentTokenName:"INDENT",dedentTokenName:"DEDENT",whitespaceTokenName:"WS",ignoreIndentationDelimiters:[]},(e=Tpe=Tpe||{}).REGULAR="indentation-sensitive",e.IGNORE_INDENTATION="ignore-indentation",Spe=class extends $he{static{mt(this,"IndentationAwareTokenBuilder")}constructor(e=kpe){super(),this.indentationStack=[0],this.whitespaceRegExp=/[ \t]+/y,this.options=Object.assign(Object.assign({},kpe),e),this.indentTokenType=nre({name:this.options.indentTokenName,pattern:this.indentMatcher.bind(this),line_breaks:!1}),this.dedentTokenType=nre({name:this.options.dedentTokenName,pattern:this.dedentMatcher.bind(this),line_breaks:!1})}buildTokens(e,t){var i,e=super.buildTokens(e,t);if(!bde(e))throw new Error("Invalid tokens built by default builder");let{indentTokenName:n,dedentTokenName:r,whitespaceTokenName:s,ignoreIndentationDelimiters:a}=this.options,o,l,c,h=[];for(i of e){for(var[u,d]of a)i.name===u?i.PUSH_MODE=Tpe.IGNORE_INDENTATION:i.name===d&&(i.POP_MODE=!0);i.name===r?o=i:i.name===n?l=i:i.name===s?c=i:h.push(i)}if(o&&l&&c)return 0<a.length?{modes:{[Tpe.REGULAR]:[o,l,...h,c],[Tpe.IGNORE_INDENTATION]:[...h,c]},defaultMode:Tpe.REGULAR}:[o,l,c,...h];throw new Error("Some indentation/whitespace tokens not found!")}flushLexingReport(e){var t=super.flushLexingReport(e);return Object.assign(Object.assign({},t),{remainingDedents:this.flushRemainingDedents(e)})}isStartOfLine(e,t){return 0===t||`\r
|
||
`.includes(e[t-1])}matchWhitespace(e,t,i,n){this.whitespaceRegExp.lastIndex=t;t=this.whitespaceRegExp.exec(e);return{currIndentLevel:null!=(e=t?.[0].length)?e:0,prevIndentLevel:this.indentationStack.at(-1),match:t}}createIndentationTokenInstance(e,t,i,n){t=this.getLineNumber(t,n);return sre(e,i,n,n+i.length,t,t,1,i.length)}getLineNumber(e,t){return e.substring(0,t).split(/\r\n|\r|\n/).length}indentMatcher(e,t,i,n){return!this.isStartOfLine(e,t)||({currIndentLevel:e,prevIndentLevel:t,match:i}=this.matchWhitespace(e,t,i,n),e<=t)?null:(this.indentationStack.push(e),i)}dedentMatcher(t,i,n,e){if(this.isStartOfLine(t,i)){var{currIndentLevel:e,prevIndentLevel:r,match:s}=this.matchWhitespace(t,i,n,e);if(!(r<=e)){r=this.indentationStack.lastIndexOf(e);if(-1===r)this.diagnostics.push({severity:"error",message:`Invalid dedent level ${e} at offset: ${i}. Current indentation stack: `+this.indentationStack,offset:i,length:null!=(s=null==(e=s?.[0])?void 0:e.length)?s:0,line:this.getLineNumber(t,i),column:1});else{var a=this.indentationStack.length-r-1,o=null!=(s=null==(e=t.substring(0,i).match(/[\r\n]+$/))?void 0:e[0].length)?s:1;for(let e=0;e<a;e++){var l=this.createIndentationTokenInstance(this.dedentTokenType,t,"",i-(o-1));n.push(l),this.indentationStack.pop()}}}}return null}buildTerminalToken(e){var e=super.buildTerminalToken(e),{indentTokenName:t,dedentTokenName:i,whitespaceTokenName:n}=this.options;return e.name===t?this.indentTokenType:e.name===i?this.dedentTokenType:e.name===n?nre({name:n,pattern:this.whitespaceRegExp,group:Zne.SKIPPED}):e}flushRemainingDedents(e){for(var t=[];1<this.indentationStack.length;)t.push(this.createIndentationTokenInstance(this.dedentTokenType,e,"",e.length)),this.indentationStack.pop();return this.indentationStack=[0],t}},_pe=class extends Tde{static{mt(this,"IndentationAwareLexer")}constructor(e){if(super(e),!(e.parser.TokenBuilder instanceof Spe))throw new Error("IndentationAwareLexer requires an accompanying IndentationAwareTokenBuilder");this.indentationTokenBuilder=e.parser.TokenBuilder}tokenize(e,t=kde){var i=super.tokenize(e),e=i.report,{indentTokenType:t,dedentTokenType:e}=("full"===t?.mode&&i.tokens.push(...e.remainingDedents),e.remainingDedents=[],this.indentationTokenBuilder),n=t.tokenTypeIdx,r=e.tokenTypeIdx,s=[],a=i.tokens.length-1;for(let e=0;e<a;e++){var o=i.tokens[e],l=i.tokens[e+1];o.tokenTypeIdx===n&&l.tokenTypeIdx===r?e++:s.push(o)}return 0<=a&&s.push(i.tokens[a]),i.tokens=s,i}}}),Npe=e(()=>{}),Dpe=e(()=>{"use strict";lpe(),Che(),Xce(),Ipe(),Mhe(),ahe(),Sde(),She(),Npe(),Ihe(),Nhe()}),Ope=e(()=>{"use strict";mue(),Mue(),Iue(),Oue(),Due(),Bue()}),Ppe=e(()=>{"use strict";hpe(),Uue()}),Bpe=e(()=>{"use strict";Cpe=class{static{mt(this,"EmptyFileSystemProvider")}readFile(){throw new Error("No file system is available.")}async readDirectory(){return[]}},Ape={fileSystemProvider:mt(()=>new Cpe,"fileSystemProvider")}});function Fpe(){var e=gpe(dpe(Ape),Hpe),t=gpe(upe({shared:e}),zpe);return e.ServiceRegistry.register(t),t}function jpe(e){var t=Fpe(),e=t.serializer.JsonSerializer.deserialize(e);return t.shared.workspace.LangiumDocumentFactory.fromModel(e,rue.parse(`memory://${null!=(t=e.name)?t:"grammar"}.langium`)),e}var zpe,Hpe,Upe=e(()=>{"use strict";ppe(),Epe(),iee(),Bpe(),gue(),zpe={Grammar:mt(()=>{},"Grammar"),LanguageMetaData:mt(()=>({caseInsensitive:!1,fileExtensions:[".langium"],languageId:"langium"}),"LanguageMetaData")},Hpe={AstReflection:mt(()=>new eee,"AstReflection")},mt(Fpe,"createMinimalGrammarServices"),mt(jpe,"loadGrammarFromJson")}),qpe={},Wpe=(V(qpe,{AstUtils:()=>nee,BiMap:()=>wue,Cancellation:()=>Fhe,ContextCache:()=>Eue,CstUtils:()=>jZ,DONE_RESULT:()=>OZ,Deferred:()=>Xhe,Disposable:()=>rde,DisposableCache:()=>Cue,DocumentCache:()=>$ue,EMPTY_STREAM:()=>DZ,ErrorWithLocation:()=>hQ,GrammarUtils:()=>Qee,MultiMap:()=>xue,OperationCancelled:()=>Yhe,Reduction:()=>BZ,RegExpUtils:()=>Bee,SimpleCache:()=>Aue,StreamImpl:()=>NZ,TreeStreamImpl:()=>PZ,URI:()=>rue,UriUtils:()=>aue,WorkspaceCache:()=>Lue,assertUnreachable:()=>cQ,delayNextTick:()=>zhe,interruptAndCheck:()=>Whe,isOperationCancelled:()=>qhe,loadGrammarFromJson:()=>jpe,setInterruptionPeriod:()=>Uhe,startCancelableOperation:()=>Hhe,stream:()=>IZ}),e(()=>{"use strict";Pue(),dde(),te(qpe,ude),Nue(),gde(),uQ(),Upe(),Khe(),FZ(),gue(),bee(),jhe(),lQ(),Pte(),Zee()})),Vpe=e(()=>{"use strict";lde(),Yue()}),Gpe=e(()=>{"use strict";cde(),hde(),pde(),fde(),fue(),Bpe(),mde(),cpe(),yde()}),Ype={},Xpe=(V(Ype,{AbstractAstReflection:()=>$Z,AbstractCstNode:()=>zce,AbstractLangiumParser:()=>Jce,AbstractParserErrorMessageProvider:()=>the,AbstractThreadedAsyncParser:()=>tpe,AstUtils:()=>nee,BiMap:()=>wue,Cancellation:()=>Fhe,CompositeCstNodeImpl:()=>Uce,ContextCache:()=>Eue,CstNodeBuilder:()=>jce,CstUtils:()=>jZ,DEFAULT_TOKENIZE_OPTIONS:()=>kde,DONE_RESULT:()=>OZ,DatatypeSymbol:()=>Zce,DefaultAstNodeDescriptionProvider:()=>ede,DefaultAstNodeLocator:()=>ide,DefaultAsyncParser:()=>epe,DefaultCommentProvider:()=>Jde,DefaultConfigurationProvider:()=>nde,DefaultDocumentBuilder:()=>sde,DefaultDocumentValidator:()=>Que,DefaultHydrator:()=>rpe,DefaultIndexManager:()=>ade,DefaultJsonSerializer:()=>zue,DefaultLangiumDocumentFactory:()=>lue,DefaultLangiumDocuments:()=>cue,DefaultLexer:()=>Tde,DefaultLexerErrorMessageProvider:()=>wde,DefaultLinker:()=>uue,DefaultNameProvider:()=>bue,DefaultReferenceDescriptionProvider:()=>tde,DefaultReferences:()=>vue,DefaultScopeComputation:()=>kue,DefaultScopeProvider:()=>Rue,DefaultServiceRegistry:()=>Hue,DefaultTokenBuilder:()=>$he,DefaultValueConverter:()=>Lhe,DefaultWorkspaceLock:()=>npe,DefaultWorkspaceManager:()=>ode,Deferred:()=>Xhe,Disposable:()=>rde,DisposableCache:()=>Cue,DocumentCache:()=>$ue,DocumentState:()=>oue,DocumentValidator:()=>Jue,EMPTY_SCOPE:()=>_ue,EMPTY_STREAM:()=>DZ,EmptyFileSystem:()=>Ape,EmptyFileSystemProvider:()=>Cpe,ErrorWithLocation:()=>hQ,GrammarAST:()=>dQ,GrammarUtils:()=>Qee,IndentationAwareLexer:()=>_pe,IndentationAwareTokenBuilder:()=>Spe,JSDocDocumentationProvider:()=>Qde,LangiumCompletionParser:()=>nhe,LangiumParser:()=>ehe,LangiumParserErrorMessageProvider:()=>ihe,LeafCstNodeImpl:()=>Hce,LexingMode:()=>Tpe,MapScope:()=>Sue,Module:()=>vpe,MultiMap:()=>xue,OperationCancelled:()=>Yhe,ParserWorker:()=>ipe,Reduction:()=>BZ,RegExpUtils:()=>Bee,RootCstNodeImpl:()=>Wce,SimpleCache:()=>Aue,StreamImpl:()=>NZ,StreamScope:()=>Tue,TextDocument:()=>nue,TreeStreamImpl:()=>PZ,URI:()=>rue,UriUtils:()=>aue,ValidationCategory:()=>Vue,ValidationRegistry:()=>Gue,ValueConverter:()=>Rhe,WorkspaceCache:()=>Lue,assertUnreachable:()=>cQ,createCompletionParser:()=>_he,createDefaultCoreModule:()=>upe,createDefaultSharedCoreModule:()=>dpe,createGrammarConfig:()=>Bte,createLangiumParser:()=>Ahe,createParser:()=>ohe,delayNextTick:()=>zhe,diagnosticData:()=>Wue,eagerLoad:()=>fpe,getDiagnosticRange:()=>Xue,indentationBuilderDefaultOptions:()=>kpe,inject:()=>gpe,interruptAndCheck:()=>Whe,isAstNode:()=>kZ,isAstNodeDescription:()=>SZ,isAstNodeWithComment:()=>Fue,isCompositeCstNode:()=>CZ,isIMultiModeLexerDefinition:()=>vde,isJSDoc:()=>Cde,isLeafCstNode:()=>AZ,isLinkingError:()=>_Z,isNamed:()=>yue,isOperationCancelled:()=>qhe,isReference:()=>TZ,isRootCstNode:()=>EZ,isTokenTypeArray:()=>bde,isTokenTypeDictionary:()=>xde,loadGrammarFromJson:()=>jpe,parseJSDoc:()=>_de,prepareLangiumParser:()=>Ehe,setInterruptionPeriod:()=>Uhe,startCancelableOperation:()=>Hhe,stream:()=>IZ,toDiagnosticData:()=>Zue,toDiagnosticSeverity:()=>Kue}),e(()=>{"use strict";ppe(),Epe(),que(),$pe(),LZ(),Lpe(),Mpe(),Dpe(),Ope(),Ppe(),Wpe(),te(Ype,qpe),Vpe(),Gpe(),iee()}));function Kpe(e){return Rge.isInstance(e,lge)}function Zpe(e){return Rge.isInstance(e,hge)}function Qpe(e){return Rge.isInstance(e,gge)}function Jpe(e){return Rge.isInstance(e,fge)}function ege(e){return Rge.isInstance(e,mge)}function tge(e){return Rge.isInstance(e,vge)}function ige(e){return Rge.isInstance(e,wge)}function nge(e){return Rge.isInstance(e,kge)}function rge(e){return Rge.isInstance(e,"Pie")}function sge(e){return Rge.isInstance(e,Tge)}function age(e){return Rge.isInstance(e,_ge)}var oge,a,lge,cge,hge,uge,dge,pge,gge,fge,mge,yge,bge,vge,xge,wge,kge,Tge,Sge,_ge,Cge,Age,Ege,$ge,Lge,Rge,Mge,Ige,Nge,Dge,Oge,Pge,Bge,Fge,jge,zge,Hge,Uge,qge,Wge,Vge,Gge,Yge,Xge,Kge,Zge,Qge,Jge,e0e,t0e,i0e,n0e,r0e,s0e,a0e,o0e,l0e,c0e,h0e,u0e=e(()=>{"use strict";Xpe(),Xpe(),Xpe(),Xpe(),oge=Object.defineProperty,a=mt((e,t)=>oge(e,"name",{value:t,configurable:!0}),"__name"),lge="Architecture",mt(Kpe,"isArchitecture"),a(Kpe,"isArchitecture"),cge="Axis",hge="Branch",mt(Zpe,"isBranch"),a(Zpe,"isBranch"),uge="Checkout",dge="CherryPicking",pge="ClassDefStatement",gge="Commit",mt(Qpe,"isCommit"),a(Qpe,"isCommit"),fge="GitGraph",mt(Jpe,"isGitGraph"),a(Jpe,"isGitGraph"),mge="Info",mt(ege,"isInfo"),a(ege,"isInfo"),yge="Item",bge="Junction",vge="Merge",mt(tge,"isMerge"),a(tge,"isMerge"),xge="Option",wge="Packet",mt(ige,"isPacket"),a(ige,"isPacket"),kge="PacketBlock",mt(nge,"isPacketBlock"),a(nge,"isPacketBlock"),mt(rge,"isPie"),a(rge,"isPie"),Tge="PieSection",mt(sge,"isPieSection"),a(sge,"isPieSection"),Sge="Service",_ge="Treemap",mt(age,"isTreemap"),a(age,"isTreemap"),Cge="TreemapRow",Age="Direction",Ege="Leaf",$ge="Section",Lge=class extends $Z{static{mt(this,"MermaidAstReflection")}static{a(this,"MermaidAstReflection")}getAllTypes(){return[lge,cge,hge,uge,dge,pge,gge,"Curve",Age,"Edge","Entry",fge,"Group",mge,yge,bge,Ege,vge,xge,wge,kge,"Pie",Tge,"Radar",$ge,Sge,"Statement",_ge,Cge]}computeIsSubtype(e,t){switch(e){case hge:case uge:case dge:case gge:case vge:return this.isSubtype("Statement",t);case Age:return this.isSubtype(fge,t);case Ege:case $ge:return this.isSubtype(yge,t);default:return!1}}getReferenceType(e){e=e.container.$type+":"+e.property;if("Entry:axis"!=e)throw new Error(e+" is not a valid reference id.");return cge}getTypeMetaData(e){switch(e){case lge:return{name:lge,properties:[{name:"accDescr"},{name:"accTitle"},{name:"edges",defaultValue:[]},{name:"groups",defaultValue:[]},{name:"junctions",defaultValue:[]},{name:"services",defaultValue:[]},{name:"title"}]};case cge:return{name:cge,properties:[{name:"label"},{name:"name"}]};case hge:return{name:hge,properties:[{name:"name"},{name:"order"}]};case uge:return{name:uge,properties:[{name:"branch"}]};case dge:return{name:dge,properties:[{name:"id"},{name:"parent"},{name:"tags",defaultValue:[]}]};case pge:return{name:pge,properties:[{name:"className"},{name:"styleText"}]};case gge:return{name:gge,properties:[{name:"id"},{name:"message"},{name:"tags",defaultValue:[]},{name:"type"}]};case"Curve":return{name:"Curve",properties:[{name:"entries",defaultValue:[]},{name:"label"},{name:"name"}]};case"Edge":return{name:"Edge",properties:[{name:"lhsDir"},{name:"lhsGroup",defaultValue:!1},{name:"lhsId"},{name:"lhsInto",defaultValue:!1},{name:"rhsDir"},{name:"rhsGroup",defaultValue:!1},{name:"rhsId"},{name:"rhsInto",defaultValue:!1},{name:"title"}]};case"Entry":return{name:"Entry",properties:[{name:"axis"},{name:"value"}]};case fge:return{name:fge,properties:[{name:"accDescr"},{name:"accTitle"},{name:"statements",defaultValue:[]},{name:"title"}]};case"Group":return{name:"Group",properties:[{name:"icon"},{name:"id"},{name:"in"},{name:"title"}]};case mge:return{name:mge,properties:[{name:"accDescr"},{name:"accTitle"},{name:"title"}]};case yge:return{name:yge,properties:[{name:"classSelector"},{name:"name"}]};case bge:return{name:bge,properties:[{name:"id"},{name:"in"}]};case vge:return{name:vge,properties:[{name:"branch"},{name:"id"},{name:"tags",defaultValue:[]},{name:"type"}]};case xge:return{name:xge,properties:[{name:"name"},{name:"value",defaultValue:!1}]};case wge:return{name:wge,properties:[{name:"accDescr"},{name:"accTitle"},{name:"blocks",defaultValue:[]},{name:"title"}]};case kge:return{name:kge,properties:[{name:"bits"},{name:"end"},{name:"label"},{name:"start"}]};case"Pie":return{name:"Pie",properties:[{name:"accDescr"},{name:"accTitle"},{name:"sections",defaultValue:[]},{name:"showData",defaultValue:!1},{name:"title"}]};case Tge:return{name:Tge,properties:[{name:"label"},{name:"value"}]};case"Radar":return{name:"Radar",properties:[{name:"accDescr"},{name:"accTitle"},{name:"axes",defaultValue:[]},{name:"curves",defaultValue:[]},{name:"options",defaultValue:[]},{name:"title"}]};case Sge:return{name:Sge,properties:[{name:"icon"},{name:"iconText"},{name:"id"},{name:"in"},{name:"title"}]};case _ge:return{name:_ge,properties:[{name:"accDescr"},{name:"accTitle"},{name:"title"},{name:"TreemapRows",defaultValue:[]}]};case Cge:return{name:Cge,properties:[{name:"indent"},{name:"item"}]};case Age:return{name:Age,properties:[{name:"accDescr"},{name:"accTitle"},{name:"dir"},{name:"statements",defaultValue:[]},{name:"title"}]};case Ege:return{name:Ege,properties:[{name:"classSelector"},{name:"name"},{name:"value"}]};case $ge:return{name:$ge,properties:[{name:"classSelector"},{name:"name"}]};default:return{name:e,properties:[]}}}},Rge=new Lge,Ige=a(()=>Mge=Mge??jpe(`{"$type":"Grammar","isDeclared":true,"name":"Info","imports":[],"rules":[{"$type":"ParserRule","entry":true,"name":"Info","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[],"cardinality":"*"},{"$type":"Keyword","value":"info"},{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[],"cardinality":"*"},{"$type":"Group","elements":[{"$type":"Keyword","value":"showInfo"},{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[],"cardinality":"*"}],"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[],"cardinality":"?"}]},"definesHiddenTokens":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","fragment":true,"name":"EOL","dataType":"string","definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[],"cardinality":"+"},{"$type":"EndOfFile"}]},"definesHiddenTokens":false,"entry":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","fragment":true,"name":"TitleAndAccessibilities","definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]}},{"$type":"Assignment","feature":"accTitle","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[]}}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]}],"cardinality":"+"},"definesHiddenTokens":false,"entry":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"TerminalRule","name":"BOOLEAN","type":{"$type":"ReturnType","name":"boolean"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"true"}},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"false"}}]},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_DESCR","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"FLOAT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/[0-9]+\\\\.[0-9]+(?!\\\\.)/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"INT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/0|[1-9][0-9]*(?!\\\\.)/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NUMBER","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@7"}},{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@8"}}]},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"STRING","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\"|'([^'\\\\\\\\]|\\\\\\\\.)*'/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ID","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/[\\\\w]([-\\\\w]*\\\\w)?/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NEWLINE","definition":{"$type":"RegexToken","regex":"/\\\\r?\\\\n/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"WHITESPACE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]+/"},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"YAML","definition":{"$type":"RegexToken","regex":"/---[\\\\t ]*\\\\r?\\\\n(?:[\\\\S\\\\s]*?\\\\r?\\\\n)?---(?:\\\\r?\\\\n|(?!\\\\S))/"},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"DIRECTIVE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%{[\\\\S\\\\s]*?}%%(?:\\\\r?\\\\n|(?!\\\\S))/"},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"SINGLE_LINE_COMMENT","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%[^\\\\n\\\\r]*/"},"fragment":false}],"definesHiddenTokens":false,"hiddenTokens":[],"interfaces":[],"types":[],"usedGrammars":[]}`),"InfoGrammar"),Dge=a(()=>Nge=Nge??jpe(`{"$type":"Grammar","isDeclared":true,"name":"Packet","imports":[],"rules":[{"$type":"ParserRule","entry":true,"name":"Packet","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[],"cardinality":"*"},{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"packet"},{"$type":"Keyword","value":"packet-beta"}]},{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[]},{"$type":"Assignment","feature":"blocks","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[]}],"cardinality":"*"}]},"definesHiddenTokens":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"PacketBlock","definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Group","elements":[{"$type":"Assignment","feature":"start","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@9"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"Keyword","value":"-"},{"$type":"Assignment","feature":"end","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@9"},"arguments":[]}}],"cardinality":"?"}]},{"$type":"Group","elements":[{"$type":"Keyword","value":"+"},{"$type":"Assignment","feature":"bits","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@9"},"arguments":[]}}]}]},{"$type":"Keyword","value":":"},{"$type":"Assignment","feature":"label","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@11"},"arguments":[]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]}]},"definesHiddenTokens":false,"entry":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","fragment":true,"name":"EOL","dataType":"string","definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[],"cardinality":"+"},{"$type":"EndOfFile"}]},"definesHiddenTokens":false,"entry":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","fragment":true,"name":"TitleAndAccessibilities","definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}},{"$type":"Assignment","feature":"accTitle","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[]}},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@7"},"arguments":[]}}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]}],"cardinality":"+"},"definesHiddenTokens":false,"entry":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"TerminalRule","name":"BOOLEAN","type":{"$type":"ReturnType","name":"boolean"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"true"}},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"false"}}]},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_DESCR","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"FLOAT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/[0-9]+\\\\.[0-9]+(?!\\\\.)/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"INT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/0|[1-9][0-9]*(?!\\\\.)/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NUMBER","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@8"}},{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@9"}}]},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"STRING","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\"|'([^'\\\\\\\\]|\\\\\\\\.)*'/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ID","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/[\\\\w]([-\\\\w]*\\\\w)?/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NEWLINE","definition":{"$type":"RegexToken","regex":"/\\\\r?\\\\n/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"WHITESPACE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]+/"},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"YAML","definition":{"$type":"RegexToken","regex":"/---[\\\\t ]*\\\\r?\\\\n(?:[\\\\S\\\\s]*?\\\\r?\\\\n)?---(?:\\\\r?\\\\n|(?!\\\\S))/"},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"DIRECTIVE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%{[\\\\S\\\\s]*?}%%(?:\\\\r?\\\\n|(?!\\\\S))/"},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"SINGLE_LINE_COMMENT","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%[^\\\\n\\\\r]*/"},"fragment":false}],"definesHiddenTokens":false,"hiddenTokens":[],"interfaces":[],"types":[],"usedGrammars":[]}`),"PacketGrammar"),Pge=a(()=>Oge=Oge??jpe(`{"$type":"Grammar","isDeclared":true,"name":"Pie","imports":[],"rules":[{"$type":"ParserRule","entry":true,"name":"Pie","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[],"cardinality":"*"},{"$type":"Keyword","value":"pie"},{"$type":"Assignment","feature":"showData","operator":"?=","terminal":{"$type":"Keyword","value":"showData"},"cardinality":"?"},{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[]},{"$type":"Assignment","feature":"sections","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[]}],"cardinality":"*"}]},"definesHiddenTokens":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"PieSection","definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"label","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@11"},"arguments":[]}},{"$type":"Keyword","value":":"},{"$type":"Assignment","feature":"value","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@10"},"arguments":[]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]}]},"definesHiddenTokens":false,"entry":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","fragment":true,"name":"EOL","dataType":"string","definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[],"cardinality":"+"},{"$type":"EndOfFile"}]},"definesHiddenTokens":false,"entry":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","fragment":true,"name":"TitleAndAccessibilities","definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}},{"$type":"Assignment","feature":"accTitle","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[]}},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@7"},"arguments":[]}}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]}],"cardinality":"+"},"definesHiddenTokens":false,"entry":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"TerminalRule","name":"BOOLEAN","type":{"$type":"ReturnType","name":"boolean"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"true"}},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"false"}}]},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_DESCR","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"FLOAT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/[0-9]+\\\\.[0-9]+(?!\\\\.)/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"INT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/0|[1-9][0-9]*(?!\\\\.)/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NUMBER","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@8"}},{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@9"}}]},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"STRING","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\"|'([^'\\\\\\\\]|\\\\\\\\.)*'/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ID","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/[\\\\w]([-\\\\w]*\\\\w)?/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NEWLINE","definition":{"$type":"RegexToken","regex":"/\\\\r?\\\\n/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"WHITESPACE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]+/"},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"YAML","definition":{"$type":"RegexToken","regex":"/---[\\\\t ]*\\\\r?\\\\n(?:[\\\\S\\\\s]*?\\\\r?\\\\n)?---(?:\\\\r?\\\\n|(?!\\\\S))/"},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"DIRECTIVE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%{[\\\\S\\\\s]*?}%%(?:\\\\r?\\\\n|(?!\\\\S))/"},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"SINGLE_LINE_COMMENT","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%[^\\\\n\\\\r]*/"},"fragment":false}],"definesHiddenTokens":false,"hiddenTokens":[],"interfaces":[],"types":[],"usedGrammars":[]}`),"PieGrammar"),Fge=a(()=>Bge=Bge??jpe(`{"$type":"Grammar","isDeclared":true,"name":"Architecture","imports":[],"rules":[{"$type":"ParserRule","entry":true,"name":"Architecture","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@23"},"arguments":[],"cardinality":"*"},{"$type":"Keyword","value":"architecture-beta"},{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@23"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]}],"cardinality":"*"}]},"definesHiddenTokens":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","fragment":true,"name":"Statement","definition":{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"groups","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}},{"$type":"Assignment","feature":"services","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[]}},{"$type":"Assignment","feature":"junctions","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@7"},"arguments":[]}},{"$type":"Assignment","feature":"edges","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]}}]},"definesHiddenTokens":false,"entry":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","fragment":true,"name":"LeftPort","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":":"},{"$type":"Assignment","feature":"lhsDir","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@9"},"arguments":[]}}]},"definesHiddenTokens":false,"entry":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","fragment":true,"name":"RightPort","definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"rhsDir","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@9"},"arguments":[]}},{"$type":"Keyword","value":":"}]},"definesHiddenTokens":false,"entry":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","fragment":true,"name":"Arrow","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]},{"$type":"Assignment","feature":"lhsInto","operator":"?=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@11"},"arguments":[]},"cardinality":"?"},{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"--"},{"$type":"Group","elements":[{"$type":"Keyword","value":"-"},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@29"},"arguments":[]}},{"$type":"Keyword","value":"-"}]}]},{"$type":"Assignment","feature":"rhsInto","operator":"?=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@11"},"arguments":[]},"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[]}]},"definesHiddenTokens":false,"entry":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"Group","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"group"},{"$type":"Assignment","feature":"id","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@22"},"arguments":[]}},{"$type":"Assignment","feature":"icon","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@28"},"arguments":[]},"cardinality":"?"},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@29"},"arguments":[]},"cardinality":"?"},{"$type":"Group","elements":[{"$type":"Keyword","value":"in"},{"$type":"Assignment","feature":"in","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@22"},"arguments":[]}}],"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[]}]},"definesHiddenTokens":false,"entry":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"Service","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"service"},{"$type":"Assignment","feature":"id","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@22"},"arguments":[]}},{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"iconText","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@21"},"arguments":[]}},{"$type":"Assignment","feature":"icon","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@28"},"arguments":[]}}],"cardinality":"?"},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@29"},"arguments":[]},"cardinality":"?"},{"$type":"Group","elements":[{"$type":"Keyword","value":"in"},{"$type":"Assignment","feature":"in","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@22"},"arguments":[]}}],"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[]}]},"definesHiddenTokens":false,"entry":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"Junction","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"junction"},{"$type":"Assignment","feature":"id","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@22"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"Keyword","value":"in"},{"$type":"Assignment","feature":"in","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@22"},"arguments":[]}}],"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[]}]},"definesHiddenTokens":false,"entry":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"Edge","definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"lhsId","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@22"},"arguments":[]}},{"$type":"Assignment","feature":"lhsGroup","operator":"?=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@10"},"arguments":[]},"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]},{"$type":"Assignment","feature":"rhsId","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@22"},"arguments":[]}},{"$type":"Assignment","feature":"rhsGroup","operator":"?=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@10"},"arguments":[]},"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[]}]},"definesHiddenTokens":false,"entry":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"TerminalRule","name":"ARROW_DIRECTION","definition":{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"L"}},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"R"}}]},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"T"}}]},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"B"}}]},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ARROW_GROUP","definition":{"$type":"RegexToken","regex":"/\\\\{group\\\\}/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ARROW_INTO","definition":{"$type":"RegexToken","regex":"/<|>/"},"fragment":false,"hidden":false},{"$type":"ParserRule","fragment":true,"name":"EOL","dataType":"string","definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@23"},"arguments":[],"cardinality":"+"},{"$type":"EndOfFile"}]},"definesHiddenTokens":false,"entry":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","fragment":true,"name":"TitleAndAccessibilities","definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@15"},"arguments":[]}},{"$type":"Assignment","feature":"accTitle","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[]}},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[]}],"cardinality":"+"},"definesHiddenTokens":false,"entry":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"TerminalRule","name":"BOOLEAN","type":{"$type":"ReturnType","name":"boolean"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"true"}},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"false"}}]},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_DESCR","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"FLOAT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/[0-9]+\\\\.[0-9]+(?!\\\\.)/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"INT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/0|[1-9][0-9]*(?!\\\\.)/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NUMBER","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@18"}},{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@19"}}]},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"STRING","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\"|'([^'\\\\\\\\]|\\\\\\\\.)*'/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ID","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/[\\\\w]([-\\\\w]*\\\\w)?/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NEWLINE","definition":{"$type":"RegexToken","regex":"/\\\\r?\\\\n/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"WHITESPACE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]+/"},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"YAML","definition":{"$type":"RegexToken","regex":"/---[\\\\t ]*\\\\r?\\\\n(?:[\\\\S\\\\s]*?\\\\r?\\\\n)?---(?:\\\\r?\\\\n|(?!\\\\S))/"},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"DIRECTIVE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%{[\\\\S\\\\s]*?}%%(?:\\\\r?\\\\n|(?!\\\\S))/"},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"SINGLE_LINE_COMMENT","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%[^\\\\n\\\\r]*/"},"fragment":false},{"$type":"TerminalRule","name":"ARCH_ICON","definition":{"$type":"RegexToken","regex":"/\\\\([\\\\w-:]+\\\\)/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ARCH_TITLE","definition":{"$type":"RegexToken","regex":"/\\\\[[\\\\w ]+\\\\]/"},"fragment":false,"hidden":false}],"definesHiddenTokens":false,"hiddenTokens":[],"interfaces":[],"types":[],"usedGrammars":[]}`),"ArchitectureGrammar"),zge=a(()=>jge=jge??jpe(`{"$type":"Grammar","isDeclared":true,"name":"GitGraph","imports":[],"rules":[{"$type":"ParserRule","entry":true,"name":"GitGraph","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[],"cardinality":"*"},{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"gitGraph"},{"$type":"Group","elements":[{"$type":"Keyword","value":"gitGraph"},{"$type":"Keyword","value":":"}]},{"$type":"Keyword","value":"gitGraph:"},{"$type":"Group","elements":[{"$type":"Keyword","value":"gitGraph"},{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]},{"$type":"Keyword","value":":"}]}]},{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@9"},"arguments":[]},{"$type":"Assignment","feature":"statements","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]}}],"cardinality":"*"}]},"definesHiddenTokens":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"Statement","definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@7"},"arguments":[]}]},"definesHiddenTokens":false,"entry":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"Direction","definition":{"$type":"Assignment","feature":"dir","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"LR"},{"$type":"Keyword","value":"TB"},{"$type":"Keyword","value":"BT"}]}},"definesHiddenTokens":false,"entry":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"Commit","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"commit"},{"$type":"Alternatives","elements":[{"$type":"Group","elements":[{"$type":"Keyword","value":"id:"},{"$type":"Assignment","feature":"id","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Keyword","value":"msg:","cardinality":"?"},{"$type":"Assignment","feature":"message","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Keyword","value":"tag:"},{"$type":"Assignment","feature":"tags","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Keyword","value":"type:"},{"$type":"Assignment","feature":"type","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"NORMAL"},{"$type":"Keyword","value":"REVERSE"},{"$type":"Keyword","value":"HIGHLIGHT"}]}}]}],"cardinality":"*"},{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]}]},"definesHiddenTokens":false,"entry":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"Branch","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"branch"},{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@24"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}]}},{"$type":"Group","elements":[{"$type":"Keyword","value":"order:"},{"$type":"Assignment","feature":"order","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@15"},"arguments":[]}}],"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]}]},"definesHiddenTokens":false,"entry":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"Merge","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"merge"},{"$type":"Assignment","feature":"branch","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@24"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}]}},{"$type":"Alternatives","elements":[{"$type":"Group","elements":[{"$type":"Keyword","value":"id:"},{"$type":"Assignment","feature":"id","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Keyword","value":"tag:"},{"$type":"Assignment","feature":"tags","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Keyword","value":"type:"},{"$type":"Assignment","feature":"type","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"NORMAL"},{"$type":"Keyword","value":"REVERSE"},{"$type":"Keyword","value":"HIGHLIGHT"}]}}]}],"cardinality":"*"},{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]}]},"definesHiddenTokens":false,"entry":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"Checkout","definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"checkout"},{"$type":"Keyword","value":"switch"}]},{"$type":"Assignment","feature":"branch","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@24"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]}]},"definesHiddenTokens":false,"entry":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"CherryPicking","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"cherry-pick"},{"$type":"Alternatives","elements":[{"$type":"Group","elements":[{"$type":"Keyword","value":"id:"},{"$type":"Assignment","feature":"id","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Keyword","value":"tag:"},{"$type":"Assignment","feature":"tags","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Keyword","value":"parent:"},{"$type":"Assignment","feature":"parent","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}}]}],"cardinality":"*"},{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]}]},"definesHiddenTokens":false,"entry":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","fragment":true,"name":"EOL","dataType":"string","definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[],"cardinality":"+"},{"$type":"EndOfFile"}]},"definesHiddenTokens":false,"entry":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","fragment":true,"name":"TitleAndAccessibilities","definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@11"},"arguments":[]}},{"$type":"Assignment","feature":"accTitle","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[]}},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[]}}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]}],"cardinality":"+"},"definesHiddenTokens":false,"entry":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"TerminalRule","name":"BOOLEAN","type":{"$type":"ReturnType","name":"boolean"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"true"}},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"false"}}]},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_DESCR","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"FLOAT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/[0-9]+\\\\.[0-9]+(?!\\\\.)/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"INT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/0|[1-9][0-9]*(?!\\\\.)/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NUMBER","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@14"}},{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@15"}}]},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"STRING","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\"|'([^'\\\\\\\\]|\\\\\\\\.)*'/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ID","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/[\\\\w]([-\\\\w]*\\\\w)?/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NEWLINE","definition":{"$type":"RegexToken","regex":"/\\\\r?\\\\n/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"WHITESPACE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]+/"},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"YAML","definition":{"$type":"RegexToken","regex":"/---[\\\\t ]*\\\\r?\\\\n(?:[\\\\S\\\\s]*?\\\\r?\\\\n)?---(?:\\\\r?\\\\n|(?!\\\\S))/"},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"DIRECTIVE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%{[\\\\S\\\\s]*?}%%(?:\\\\r?\\\\n|(?!\\\\S))/"},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"SINGLE_LINE_COMMENT","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%[^\\\\n\\\\r]*/"},"fragment":false},{"$type":"TerminalRule","name":"REFERENCE","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/\\\\w([-\\\\./\\\\w]*[-\\\\w])?/"},"fragment":false,"hidden":false}],"definesHiddenTokens":false,"hiddenTokens":[],"interfaces":[],"types":[],"usedGrammars":[]}`),"GitGraphGrammar"),Uge=a(()=>Hge=Hge??jpe(`{"$type":"Grammar","isDeclared":true,"name":"Radar","imports":[],"rules":[{"$type":"ParserRule","entry":true,"name":"Radar","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[],"cardinality":"*"},{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"radar-beta"},{"$type":"Keyword","value":"radar-beta:"},{"$type":"Group","elements":[{"$type":"Keyword","value":"radar-beta"},{"$type":"Keyword","value":":"}]}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[],"cardinality":"*"},{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@10"},"arguments":[]},{"$type":"Group","elements":[{"$type":"Keyword","value":"axis"},{"$type":"Assignment","feature":"axes","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"Keyword","value":","},{"$type":"Assignment","feature":"axes","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]}}],"cardinality":"*"}]},{"$type":"Group","elements":[{"$type":"Keyword","value":"curve"},{"$type":"Assignment","feature":"curves","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"Keyword","value":","},{"$type":"Assignment","feature":"curves","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[]}}],"cardinality":"*"}]},{"$type":"Group","elements":[{"$type":"Assignment","feature":"options","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@7"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"Keyword","value":","},{"$type":"Assignment","feature":"options","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@7"},"arguments":[]}}],"cardinality":"*"}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[]}],"cardinality":"*"}]},"definesHiddenTokens":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","fragment":true,"name":"Label","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"["},{"$type":"Assignment","feature":"label","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@18"},"arguments":[]}},{"$type":"Keyword","value":"]"}]},"definesHiddenTokens":false,"entry":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"Axis","definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[],"cardinality":"?"}]},"definesHiddenTokens":false,"entry":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"Curve","definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[],"cardinality":"?"},{"$type":"Keyword","value":"{"},{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]},{"$type":"Keyword","value":"}"}]},"definesHiddenTokens":false,"entry":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","fragment":true,"name":"Entries","definition":{"$type":"Alternatives","elements":[{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[],"cardinality":"*"},{"$type":"Assignment","feature":"entries","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"Keyword","value":","},{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[],"cardinality":"*"},{"$type":"Assignment","feature":"entries","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[]}}],"cardinality":"*"},{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[],"cardinality":"*"}]},{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[],"cardinality":"*"},{"$type":"Assignment","feature":"entries","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"Keyword","value":","},{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[],"cardinality":"*"},{"$type":"Assignment","feature":"entries","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}}],"cardinality":"*"},{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[],"cardinality":"*"}]}]},"definesHiddenTokens":false,"entry":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"DetailedEntry","returnType":{"$ref":"#/interfaces@0"},"definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"axis","operator":"=","terminal":{"$type":"CrossReference","type":{"$ref":"#/rules@2"},"terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]},"deprecatedSyntax":false}},{"$type":"Keyword","value":":","cardinality":"?"},{"$type":"Assignment","feature":"value","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}}]},"definesHiddenTokens":false,"entry":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"NumberEntry","returnType":{"$ref":"#/interfaces@0"},"definition":{"$type":"Assignment","feature":"value","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}},"definesHiddenTokens":false,"entry":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"Option","definition":{"$type":"Alternatives","elements":[{"$type":"Group","elements":[{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"Keyword","value":"showLegend"}},{"$type":"Assignment","feature":"value","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@11"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"Keyword","value":"ticks"}},{"$type":"Assignment","feature":"value","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"Keyword","value":"max"}},{"$type":"Assignment","feature":"value","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"Keyword","value":"min"}},{"$type":"Assignment","feature":"value","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"Keyword","value":"graticule"}},{"$type":"Assignment","feature":"value","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]}}]}]},"definesHiddenTokens":false,"entry":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"TerminalRule","name":"GRATICULE","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"circle"}},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"polygon"}}]},"fragment":false,"hidden":false},{"$type":"ParserRule","fragment":true,"name":"EOL","dataType":"string","definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[],"cardinality":"+"},{"$type":"EndOfFile"}]},"definesHiddenTokens":false,"entry":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","fragment":true,"name":"TitleAndAccessibilities","definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[]}},{"$type":"Assignment","feature":"accTitle","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[]}},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@14"},"arguments":[]}}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@9"},"arguments":[]}],"cardinality":"+"},"definesHiddenTokens":false,"entry":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"TerminalRule","name":"BOOLEAN","type":{"$type":"ReturnType","name":"boolean"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"true"}},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"false"}}]},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_DESCR","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"FLOAT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/[0-9]+\\\\.[0-9]+(?!\\\\.)/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"INT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/0|[1-9][0-9]*(?!\\\\.)/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NUMBER","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@15"}},{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@16"}}]},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"STRING","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\"|'([^'\\\\\\\\]|\\\\\\\\.)*'/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ID","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/[\\\\w]([-\\\\w]*\\\\w)?/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NEWLINE","definition":{"$type":"RegexToken","regex":"/\\\\r?\\\\n/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"WHITESPACE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]+/"},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"YAML","definition":{"$type":"RegexToken","regex":"/---[\\\\t ]*\\\\r?\\\\n(?:[\\\\S\\\\s]*?\\\\r?\\\\n)?---(?:\\\\r?\\\\n|(?!\\\\S))/"},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"DIRECTIVE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%{[\\\\S\\\\s]*?}%%(?:\\\\r?\\\\n|(?!\\\\S))/"},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"SINGLE_LINE_COMMENT","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%[^\\\\n\\\\r]*/"},"fragment":false}],"interfaces":[{"$type":"Interface","name":"Entry","attributes":[{"$type":"TypeAttribute","name":"axis","isOptional":true,"type":{"$type":"ReferenceType","referenceType":{"$type":"SimpleType","typeRef":{"$ref":"#/rules@2"}}}},{"$type":"TypeAttribute","name":"value","type":{"$type":"SimpleType","primitiveType":"number"},"isOptional":false}],"superTypes":[]}],"definesHiddenTokens":false,"hiddenTokens":[],"types":[],"usedGrammars":[]}`),"RadarGrammar"),Wge=a(()=>qge=qge??jpe(`{"$type":"Grammar","isDeclared":true,"name":"Treemap","rules":[{"$type":"ParserRule","fragment":true,"name":"TitleAndAccessibilities","definition":{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]}},{"$type":"Assignment","feature":"accTitle","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[]}},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]}}],"cardinality":"+"},"definesHiddenTokens":false,"entry":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"TerminalRule","name":"BOOLEAN","type":{"$type":"ReturnType","name":"boolean"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"true"}},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"false"}}]},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_DESCR","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/"},"fragment":false,"hidden":false},{"$type":"ParserRule","entry":true,"name":"Treemap","returnType":{"$ref":"#/interfaces@4"},"definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[]},{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@0"},"arguments":[]},{"$type":"Assignment","feature":"TreemapRows","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@14"},"arguments":[]}}],"cardinality":"*"}]},"definesHiddenTokens":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"TerminalRule","name":"TREEMAP_KEYWORD","definition":{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"treemap-beta"}},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"treemap"}}]},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"CLASS_DEF","definition":{"$type":"RegexToken","regex":"/classDef\\\\s+([a-zA-Z_][a-zA-Z0-9_]+)(?:\\\\s+([^;\\\\r\\\\n]*))?(?:;)?/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"STYLE_SEPARATOR","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":":::"}},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"SEPARATOR","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":":"}},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"COMMA","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":","}},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"WS","definition":{"$type":"RegexToken","regex":"/[ \\\\t]+/"},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"ML_COMMENT","definition":{"$type":"RegexToken","regex":"/\\\\%\\\\%[^\\\\n]*/"},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"NL","definition":{"$type":"RegexToken","regex":"/\\\\r?\\\\n/"},"fragment":false},{"$type":"ParserRule","name":"TreemapRow","definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"indent","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]},"cardinality":"?"},{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"item","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@15"},"arguments":[]}]}]},"definesHiddenTokens":false,"entry":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"ClassDef","dataType":"string","definition":{"$type":"RuleCall","rule":{"$ref":"#/rules@7"},"arguments":[]},"definesHiddenTokens":false,"entry":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"Item","returnType":{"$ref":"#/interfaces@0"},"definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@18"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}]},"definesHiddenTokens":false,"entry":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"Section","returnType":{"$ref":"#/interfaces@1"},"definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@23"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]},{"$type":"Assignment","feature":"classSelector","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[]}}],"cardinality":"?"}]},"definesHiddenTokens":false,"entry":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"Leaf","returnType":{"$ref":"#/interfaces@2"},"definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@23"},"arguments":[]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[],"cardinality":"?"},{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@9"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@10"},"arguments":[]}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[],"cardinality":"?"},{"$type":"Assignment","feature":"value","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@22"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]},{"$type":"Assignment","feature":"classSelector","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[]}}],"cardinality":"?"}]},"definesHiddenTokens":false,"entry":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"TerminalRule","name":"INDENTATION","definition":{"$type":"RegexToken","regex":"/[ \\\\t]{1,}/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ID2","definition":{"$type":"RegexToken","regex":"/[a-zA-Z_][a-zA-Z0-9_]*/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NUMBER2","definition":{"$type":"RegexToken","regex":"/[0-9_\\\\.\\\\,]+/"},"fragment":false,"hidden":false},{"$type":"ParserRule","name":"MyNumber","dataType":"number","definition":{"$type":"RuleCall","rule":{"$ref":"#/rules@21"},"arguments":[]},"definesHiddenTokens":false,"entry":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"TerminalRule","name":"STRING2","definition":{"$type":"RegexToken","regex":"/\\"[^\\"]*\\"|'[^']*'/"},"fragment":false,"hidden":false}],"interfaces":[{"$type":"Interface","name":"Item","attributes":[{"$type":"TypeAttribute","name":"name","type":{"$type":"SimpleType","primitiveType":"string"},"isOptional":false},{"$type":"TypeAttribute","name":"classSelector","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}}],"superTypes":[]},{"$type":"Interface","name":"Section","superTypes":[{"$ref":"#/interfaces@0"}],"attributes":[]},{"$type":"Interface","name":"Leaf","superTypes":[{"$ref":"#/interfaces@0"}],"attributes":[{"$type":"TypeAttribute","name":"value","type":{"$type":"SimpleType","primitiveType":"number"},"isOptional":false}]},{"$type":"Interface","name":"ClassDefStatement","attributes":[{"$type":"TypeAttribute","name":"className","type":{"$type":"SimpleType","primitiveType":"string"},"isOptional":false},{"$type":"TypeAttribute","name":"styleText","type":{"$type":"SimpleType","primitiveType":"string"},"isOptional":false}],"superTypes":[]},{"$type":"Interface","name":"Treemap","attributes":[{"$type":"TypeAttribute","name":"TreemapRows","type":{"$type":"ArrayType","elementType":{"$type":"SimpleType","typeRef":{"$ref":"#/rules@14"}}},"isOptional":false},{"$type":"TypeAttribute","name":"title","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"accTitle","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"accDescr","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}}],"superTypes":[]}],"definesHiddenTokens":false,"hiddenTokens":[],"imports":[],"types":[],"usedGrammars":[],"$comment":"/**\\n * Treemap grammar for Langium\\n * Converted from mindmap grammar\\n *\\n * The ML_COMMENT and NL hidden terminals handle whitespace, comments, and newlines\\n * before the treemap keyword, allowing for empty lines and comments before the\\n * treemap declaration.\\n */"}`),"TreemapGrammar"),Qge={languageId:"treemap",fileExtensions:[".mmd",".mermaid"],caseInsensitive:!(Zge={languageId:"radar",fileExtensions:[".mmd",".mermaid"],caseInsensitive:!(Kge={languageId:"gitGraph",fileExtensions:[".mmd",".mermaid"],caseInsensitive:!(Xge={languageId:"architecture",fileExtensions:[".mmd",".mermaid"],caseInsensitive:!(Yge={languageId:"pie",fileExtensions:[".mmd",".mermaid"],caseInsensitive:!(Gge={languageId:"packet",fileExtensions:[".mmd",".mermaid"],caseInsensitive:!(Vge={languageId:"info",fileExtensions:[".mmd",".mermaid"],caseInsensitive:!1,mode:"production"}),mode:"production"}),mode:"production"}),mode:"production"}),mode:"production"}),mode:"production"}),mode:"production"},Jge={AstReflection:a(()=>new Lge,"AstReflection")},e0e={Grammar:a(()=>Ige(),"Grammar"),LanguageMetaData:a(()=>Vge,"LanguageMetaData"),parser:{}},t0e={Grammar:a(()=>Dge(),"Grammar"),LanguageMetaData:a(()=>Gge,"LanguageMetaData"),parser:{}},i0e={Grammar:a(()=>Pge(),"Grammar"),LanguageMetaData:a(()=>Yge,"LanguageMetaData"),parser:{}},n0e={Grammar:a(()=>Fge(),"Grammar"),LanguageMetaData:a(()=>Xge,"LanguageMetaData"),parser:{}},r0e={Grammar:a(()=>zge(),"Grammar"),LanguageMetaData:a(()=>Kge,"LanguageMetaData"),parser:{}},s0e={Grammar:a(()=>Uge(),"Grammar"),LanguageMetaData:a(()=>Zge,"LanguageMetaData"),parser:{}},a0e={Grammar:a(()=>Wge(),"Grammar"),LanguageMetaData:a(()=>Qge,"LanguageMetaData"),parser:{}},o0e={ACC_DESCR:/accDescr(?:[\t ]*:([^\n\r]*)|\s*{([^}]*)})/,ACC_TITLE:/accTitle[\t ]*:([^\n\r]*)/,TITLE:/title([\t ][^\n\r]*|)/},l0e=class extends Lhe{static{mt(this,"AbstractMermaidValueConverter")}static{a(this,"AbstractMermaidValueConverter")}runConverter(e,t,i){let n=this.runCommonConverter(e,t,i);return void 0===(n=void 0===n?this.runCustomConverter(e,t,i):n)?super.runConverter(e,t,i):n}runCommonConverter(e,t,i){var e=o0e[e.name];return void 0!==e&&null!==(e=e.exec(t))?void 0!==e[1]?e[1].trim().replace(/[\t ]{2,}/gm," "):void 0!==e[2]?e[2].replace(/^\s*/gm,"").replace(/\s+$/gm,"").replace(/[\t ]{2,}/gm," ").replace(/[\n\r]{2,}/gm,`
|
||
`):void 0:void 0}},c0e=class extends l0e{static{mt(this,"CommonValueConverter")}static{a(this,"CommonValueConverter")}runCustomConverter(e,t,i){}},h0e=class extends $he{static{mt(this,"AbstractMermaidTokenBuilder")}static{a(this,"AbstractMermaidTokenBuilder")}constructor(e){super(),this.keywords=new Set(e)}buildKeywordTokens(e,t,i){e=super.buildKeywordTokens(e,t,i);return e.forEach(e=>{this.keywords.has(e.name)&&void 0!==e.PATTERN&&(e.PATTERN=new RegExp(e.PATTERN.toString()+"(?:(?=%%)|(?!\\S))"))}),e}},class extends h0e{static{mt(this,"CommonTokenBuilder")}static{a(this,"CommonTokenBuilder")}}});function d0e(e=Ape){var e=gpe(dpe(e),Jge),t=gpe(upe({shared:e}),r0e,g0e);return e.ServiceRegistry.register(t),{shared:e,GitGraph:t}}var p0e,g0e,f0e=e(()=>{"use strict";u0e(),Xpe(),p0e=class extends h0e{static{mt(this,"GitGraphTokenBuilder")}static{a(this,"GitGraphTokenBuilder")}constructor(){super(["gitGraph"])}},g0e={parser:{TokenBuilder:a(()=>new p0e,"TokenBuilder"),ValueConverter:a(()=>new c0e,"ValueConverter")}},mt(d0e,"createGitGraphServices"),a(d0e,"createGitGraphServices")});function m0e(e=Ape){var e=gpe(dpe(e),Jge),t=gpe(upe({shared:e}),e0e,b0e);return e.ServiceRegistry.register(t),{shared:e,Info:t}}var y0e,b0e,v0e=e(()=>{"use strict";u0e(),Xpe(),y0e=class extends h0e{static{mt(this,"InfoTokenBuilder")}static{a(this,"InfoTokenBuilder")}constructor(){super(["info","showInfo"])}},b0e={parser:{TokenBuilder:a(()=>new y0e,"TokenBuilder"),ValueConverter:a(()=>new c0e,"ValueConverter")}},mt(m0e,"createInfoServices"),a(m0e,"createInfoServices")});function x0e(e=Ape){var e=gpe(dpe(e),Jge),t=gpe(upe({shared:e}),t0e,k0e);return e.ServiceRegistry.register(t),{shared:e,Packet:t}}var w0e,k0e,T0e=e(()=>{"use strict";u0e(),Xpe(),w0e=class extends h0e{static{mt(this,"PacketTokenBuilder")}static{a(this,"PacketTokenBuilder")}constructor(){super(["packet"])}},k0e={parser:{TokenBuilder:a(()=>new w0e,"TokenBuilder"),ValueConverter:a(()=>new c0e,"ValueConverter")}},mt(x0e,"createPacketServices"),a(x0e,"createPacketServices")});function S0e(e=Ape){var e=gpe(dpe(e),Jge),t=gpe(upe({shared:e}),i0e,A0e);return e.ServiceRegistry.register(t),{shared:e,Pie:t}}var _0e,C0e,A0e,E0e=e(()=>{"use strict";u0e(),Xpe(),_0e=class extends h0e{static{mt(this,"PieTokenBuilder")}static{a(this,"PieTokenBuilder")}constructor(){super(["pie","showData"])}},C0e=class extends l0e{static{mt(this,"PieValueConverter")}static{a(this,"PieValueConverter")}runCustomConverter(e,t,i){if("PIE_SECTION_LABEL"===e.name)return t.replace(/"/g,"").trim()}},A0e={parser:{TokenBuilder:a(()=>new _0e,"TokenBuilder"),ValueConverter:a(()=>new C0e,"ValueConverter")}},mt(S0e,"createPieServices"),a(S0e,"createPieServices")});function $0e(e=Ape){var e=gpe(dpe(e),Jge),t=gpe(upe({shared:e}),n0e,M0e);return e.ServiceRegistry.register(t),{shared:e,Architecture:t}}var L0e,R0e,M0e,I0e=e(()=>{"use strict";u0e(),Xpe(),L0e=class extends h0e{static{mt(this,"ArchitectureTokenBuilder")}static{a(this,"ArchitectureTokenBuilder")}constructor(){super(["architecture"])}},R0e=class extends l0e{static{mt(this,"ArchitectureValueConverter")}static{a(this,"ArchitectureValueConverter")}runCustomConverter(e,t,i){return"ARCH_ICON"===e.name?t.replace(/[()]/g,"").trim():"ARCH_TEXT_ICON"===e.name?t.replace(/["()]/g,""):"ARCH_TITLE"===e.name?t.replace(/[[\]]/g,"").trim():void 0}},M0e={parser:{TokenBuilder:a(()=>new L0e,"TokenBuilder"),ValueConverter:a(()=>new R0e,"ValueConverter")}},mt($0e,"createArchitectureServices"),a($0e,"createArchitectureServices")});function N0e(e=Ape){var e=gpe(dpe(e),Jge),t=gpe(upe({shared:e}),s0e,O0e);return e.ServiceRegistry.register(t),{shared:e,Radar:t}}var D0e,O0e,P0e=e(()=>{"use strict";u0e(),Xpe(),D0e=class extends h0e{static{mt(this,"RadarTokenBuilder")}static{a(this,"RadarTokenBuilder")}constructor(){super(["radar-beta"])}},O0e={parser:{TokenBuilder:a(()=>new D0e,"TokenBuilder"),ValueConverter:a(()=>new c0e,"ValueConverter")}},mt(N0e,"createRadarServices"),a(N0e,"createRadarServices")});function B0e(e){var t,i=e.validation.TreemapValidator,e=e.validation.ValidationRegistry;e&&(t={Treemap:i.checkSingleRoot.bind(i)},e.register(t,i))}function F0e(e=Ape){var e=gpe(dpe(e),Jge),t=gpe(upe({shared:e}),a0e,q0e);return e.ServiceRegistry.register(t),B0e(t),{shared:e,Treemap:t}}var j0e,z0e,H0e,U0e,q0e,W0e=e(()=>{"use strict";u0e(),Xpe(),j0e=class extends h0e{static{mt(this,"TreemapTokenBuilder")}static{a(this,"TreemapTokenBuilder")}constructor(){super(["treemap"])}},z0e=/classDef\s+([A-Z_a-z]\w+)(?:\s+([^\n\r;]*))?;?/,H0e=class extends l0e{static{mt(this,"TreemapValueConverter")}static{a(this,"TreemapValueConverter")}runCustomConverter(e,t,i){return"NUMBER2"===e.name?parseFloat(t.replace(/,/g,"")):"SEPARATOR"===e.name||"STRING2"===e.name?t.substring(1,t.length-1):"INDENTATION"===e.name?t.length:"ClassDef"===e.name?"string"!=typeof t?t:(e=z0e.exec(t))?{$type:"ClassDefStatement",className:e[1],styleText:e[2]||void 0}:void 0:void 0}},mt(B0e,"registerValidationChecks"),a(B0e,"registerValidationChecks"),U0e=class{static{mt(this,"TreemapValidator")}static{a(this,"TreemapValidator")}checkSingleRoot(e,t){let i;for(var n of e.TreemapRows)n.item&&(void 0===i&&void 0===n.indent?i=0:(void 0===n.indent||void 0!==i&&i>=parseInt(n.indent,10))&&t("error","Multiple root nodes are not allowed in a treemap.",{node:n,property:"item"}))}},q0e={parser:{TokenBuilder:a(()=>new j0e,"TokenBuilder"),ValueConverter:a(()=>new H0e,"ValueConverter")},validation:{TreemapValidator:a(()=>new U0e,"TreemapValidator")}},mt(F0e,"createTreemapServices"),a(F0e,"createTreemapServices")}),V0e={},G0e=(V(V0e,{InfoModule:()=>b0e,createInfoServices:()=>m0e}),e(()=>{"use strict";v0e(),u0e()})),Y0e={},X0e=(V(Y0e,{PacketModule:()=>k0e,createPacketServices:()=>x0e}),e(()=>{"use strict";T0e(),u0e()})),K0e={},Z0e=(V(K0e,{PieModule:()=>A0e,createPieServices:()=>S0e}),e(()=>{"use strict";E0e(),u0e()})),Q0e={},J0e=(V(Q0e,{ArchitectureModule:()=>M0e,createArchitectureServices:()=>$0e}),e(()=>{"use strict";I0e(),u0e()})),efe={},tfe=(V(efe,{GitGraphModule:()=>g0e,createGitGraphServices:()=>d0e}),e(()=>{"use strict";f0e(),u0e()})),ife={},nfe=(V(ife,{RadarModule:()=>O0e,createRadarServices:()=>N0e}),e(()=>{"use strict";P0e(),u0e()})),rfe={},sfe=(V(rfe,{TreemapModule:()=>q0e,createTreemapServices:()=>F0e}),e(()=>{"use strict";W0e(),u0e()}));async function afe(e,t){var i=lfe[e];if(!i)throw new Error("Unknown diagram type: "+e);ofe[e]||await i();i=ofe[e].parse(t);if(0<i.lexerErrors.length||0<i.parserErrors.length)throw new cfe(i);return i.value}var ofe,lfe,cfe,hfe=e(()=>{"use strict";f0e(),v0e(),T0e(),E0e(),I0e(),P0e(),W0e(),u0e(),ofe={},lfe={info:a(async()=>{var e=(await Promise.resolve().then(()=>(G0e(),V0e)))["createInfoServices"],e=e().Info.parser.LangiumParser;ofe.info=e},"info"),packet:a(async()=>{var e=(await Promise.resolve().then(()=>(X0e(),Y0e)))["createPacketServices"],e=e().Packet.parser.LangiumParser;ofe.packet=e},"packet"),pie:a(async()=>{var e=(await Promise.resolve().then(()=>(Z0e(),K0e)))["createPieServices"],e=e().Pie.parser.LangiumParser;ofe.pie=e},"pie"),architecture:a(async()=>{var e=(await Promise.resolve().then(()=>(J0e(),Q0e)))["createArchitectureServices"],e=e().Architecture.parser.LangiumParser;ofe.architecture=e},"architecture"),gitGraph:a(async()=>{var e=(await Promise.resolve().then(()=>(tfe(),efe)))["createGitGraphServices"],e=e().GitGraph.parser.LangiumParser;ofe.gitGraph=e},"gitGraph"),radar:a(async()=>{var e=(await Promise.resolve().then(()=>(nfe(),ife)))["createRadarServices"],e=e().Radar.parser.LangiumParser;ofe.radar=e},"radar"),treemap:a(async()=>{var e=(await Promise.resolve().then(()=>(sfe(),rfe)))["createTreemapServices"],e=e().Treemap.parser.LangiumParser;ofe.treemap=e},"treemap")},mt(afe,"parse"),a(afe,"parse"),cfe=class extends Error{static{mt(this,"MermaidParseError")}constructor(e){super(`Parsing failed: ${e.lexerErrors.map(e=>e.message).join(`
|
||
`)} `+e.parserErrors.map(e=>e.message).join(`
|
||
`)),this.result=e}static{a(this,"MermaidParseError")}}});function ufe(e,t){e.accDescr&&t.setAccDescription?.(e.accDescr),e.accTitle&&t.setAccTitle?.(e.accTitle),e.title&&t.setDiagramTitle?.(e.title)}var dfe,pfe,gfe=e(()=>{"use strict";mt(ufe,"populateCommonDb")}),ffe=e(()=>{"use strict";dfe={NORMAL:0,REVERSE:1,HIGHLIGHT:2,MERGE:3,CHERRY_PICK:4}}),mfe=e(()=>{"use strict";pfe=class{constructor(e){this.init=e,this.records=this.init()}static{mt(this,"ImperativeState")}reset(){this.records=this.init()}}});function yfe(){return q_({length:7})}function bfe(e,n){let r=Object.create(null);return e.reduce((e,t)=>{var i=n(t);return r[i]||(r[i]=!0,e.push(t)),e},[])}function vfe(e,t,i){t=e.indexOf(t);-1===t?e.push(i):e.splice(t,1,i)}function xfe(e){let t=e.reduce((e,t)=>e.seq>t.seq?e:t,e[0]),i="";e.forEach(function(e){e===t?i+="\t*":i+="\t|"});var n,r=[i,t.id,t.seq];for(n in x.records.branches)x.records.branches.get(n)===t.id&&r.push(n);if(I.debug(r.join(" ")),t.parents&&2==t.parents.length&&t.parents[0]&&t.parents[1]){var s=x.records.commits.get(t.parents[0]);vfe(e,t,s),t.parents[1]&&e.push(x.records.commits.get(t.parents[1]))}else{if(0==t.parents.length)return;t.parents[0]&&(s=x.records.commits.get(t.parents[0]),vfe(e,t,s))}xfe(e=bfe(e,e=>e.id))}var wfe,kfe,x,Tfe,Sfe,_fe,Cfe,Afe,Efe,$fe,Lfe,Rfe,Mfe,Ife,Nfe,Dfe,Ofe,Pfe,Bfe,Ffe,jfe,zfe,Hfe,Ufe,qfe,Wfe,Vfe,Gfe,Yfe,Xfe,Kfe,Zfe,Qfe,Jfe,eme,tme,ime,nme,rme,sme,ame,ome,lme,cme,hme,ume,dme,pme,gme,fme,mme,yme,bme,vme,xme,wme,kme,Tme,Sme,_me,Cme,Ame,Eme=e(()=>{"use strict";t(),sC(),Mn(),hh(),_u(),ffe(),mfe(),Ln(),wfe=vi.gitGraph,kfe=mt(()=>E_({...wfe,...Ii().gitGraph}),"getConfig"),x=new pfe(()=>{var e=kfe(),t=e.mainBranchName,e=e.mainBranchOrder;return{mainBranchName:t,commits:new Map,head:null,branchConfig:new Map([[t,{name:t,order:e}]]),branches:new Map([[t,null]]),currBranch:t,direction:"LR",seq:0,options:{}}}),mt(yfe,"getID"),mt(bfe,"uniqBy"),Tfe=mt(function(e){x.records.direction=e},"setDirection"),Sfe=mt(function(e){I.debug("options str",e),e=(e=e?.trim())||"{}";try{x.records.options=JSON.parse(e)}catch(e){I.error("error while parsing gitGraph options",e.message)}},"setOptions"),_fe=mt(function(){return x.records.options},"getOptions"),Cfe=mt(function(e){let t=e.msg,i=e.id,n=e.type,r=e.tags,s=(I.info("commit",t,i,n,r),I.debug("Entering commit:",t,i,n,r),kfe());i=$.sanitizeText(i,s),t=$.sanitizeText(t,s),r=r?.map(e=>$.sanitizeText(e,s));e={id:i||x.records.seq+"-"+yfe(),message:t,seq:x.records.seq++,type:n??dfe.NORMAL,tags:r??[],parents:null==x.records.head?[]:[x.records.head.id],branch:x.records.currBranch};x.records.head=e,I.info("main branch",s.mainBranchName),x.records.commits.has(e.id)&&I.warn(`Commit ID ${e.id} already exists`),x.records.commits.set(e.id,e),x.records.branches.set(x.records.currBranch,e.id),I.debug("in pushCommit "+e.id)},"commit"),Afe=mt(function(e){var t=e.name,e=e.order,t=$.sanitizeText(t,kfe());if(x.records.branches.has(t))throw new Error(`Trying to create an existing branch. (Help: Either use a new name if you want create a new branch or try using "checkout ${t}")`);x.records.branches.set(t,null!=x.records.head?x.records.head.id:null),x.records.branchConfig.set(t,{name:t,order:e}),Lfe(t),I.debug("in createBranch")},"branch"),Efe=mt(e=>{let t=e.branch,i=e.id,n=e.type,r=e.tags,s=kfe();t=$.sanitizeText(t,s),i=i&&$.sanitizeText(i,s);var e=x.records.branches.get(x.records.currBranch),a=x.records.branches.get(t),e=e?x.records.commits.get(e):void 0,o=a?x.records.commits.get(a):void 0;if(e&&o&&e.branch===t)throw new Error(`Cannot merge branch '${t}' into itself.`);if(x.records.currBranch===t)throw(l=new Error('Incorrect usage of "merge". Cannot merge a branch to itself')).hash={text:"merge "+t,token:"merge "+t,expected:["branch abc"]},l;if(void 0===e||!e)throw(l=new Error(`Incorrect usage of "merge". Current branch (${x.records.currBranch})has no commits`)).hash={text:"merge "+t,token:"merge "+t,expected:["commit"]},l;if(!x.records.branches.has(t))throw(l=new Error('Incorrect usage of "merge". Branch to be merged ('+t+") does not exist")).hash={text:"merge "+t,token:"merge "+t,expected:["branch "+t]},l;if(void 0===o||!o)throw(l=new Error('Incorrect usage of "merge". Branch to be merged ('+t+") has no commits")).hash={text:"merge "+t,token:"merge "+t,expected:['"commit"']},l;if(e===o)throw(l=new Error('Incorrect usage of "merge". Both branches have same head')).hash={text:"merge "+t,token:"merge "+t,expected:["branch abc"]},l;if(i&&x.records.commits.has(i))throw(e=new Error('Incorrect usage of "merge". Commit with id:'+i+" already exists, use different custom id")).hash={text:`merge ${t} ${i} ${n} `+r?.join(" "),token:`merge ${t} ${i} ${n} `+r?.join(" "),expected:[`merge ${t} ${i}_UNIQUE ${n} `+r?.join(" ")]},e;var o=a||"",l={id:i||x.records.seq+"-"+yfe(),message:`merged branch ${t} into `+x.records.currBranch,seq:x.records.seq++,parents:null==x.records.head?[]:[x.records.head.id,o],branch:x.records.currBranch,type:dfe.MERGE,customType:n,customId:!!i,tags:r??[]};x.records.head=l,x.records.commits.set(l.id,l),x.records.branches.set(x.records.currBranch,l.id),I.debug(x.records.branches),I.debug("in mergeBranch")},"merge"),$fe=mt(function(e){let t=e.id,i=e.targetId,n=e.tags,r=e.parent,s=(I.debug("Entering cherryPick:",t,i,n),kfe());if(t=$.sanitizeText(t,s),i=$.sanitizeText(i,s),n=n?.map(e=>$.sanitizeText(e,s)),r=$.sanitizeText(r,s),!t||!x.records.commits.has(t))throw(e=new Error('Incorrect usage of "cherryPick". Source commit id should exist and provided')).hash={text:`cherryPick ${t} `+i,token:`cherryPick ${t} `+i,expected:["cherry-pick abc"]},e;e=x.records.commits.get(t);if(void 0===e||!e)throw new Error('Incorrect usage of "cherryPick". Source commit id should exist and provided');if(r&&(!Array.isArray(e.parents)||!e.parents.includes(r)))throw new Error("Invalid operation: The specified parent commit is not an immediate parent of the cherry-picked commit.");var a=e.branch;if(e.type===dfe.MERGE&&!r)throw new Error("Incorrect usage of cherry-pick: If the source commit is a merge commit, an immediate parent commit must be specified.");if(!i||!x.records.commits.has(i)){if(a===x.records.currBranch)throw(a=new Error('Incorrect usage of "cherryPick". Source commit is already on current branch')).hash={text:`cherryPick ${t} `+i,token:`cherryPick ${t} `+i,expected:["cherry-pick abc"]},a;a=x.records.branches.get(x.records.currBranch);if(void 0===a||!a)throw(o=new Error(`Incorrect usage of "cherry-pick". Current branch (${x.records.currBranch})has no commits`)).hash={text:`cherryPick ${t} `+i,token:`cherryPick ${t} `+i,expected:["cherry-pick abc"]},o;var o=x.records.commits.get(a);if(void 0===o||!o)throw(a=new Error(`Incorrect usage of "cherry-pick". Current branch (${x.records.currBranch})has no commits`)).hash={text:`cherryPick ${t} `+i,token:`cherryPick ${t} `+i,expected:["cherry-pick abc"]},a;o={id:x.records.seq+"-"+yfe(),message:`cherry-picked ${e?.message} into `+x.records.currBranch,seq:x.records.seq++,parents:null==x.records.head?[]:[x.records.head.id,e.id],branch:x.records.currBranch,type:dfe.CHERRY_PICK,tags:n?n.filter(Boolean):["cherry-pick:"+e.id+(e.type===dfe.MERGE?"|parent:"+r:"")]};x.records.head=o,x.records.commits.set(o.id,o),x.records.branches.set(x.records.currBranch,o.id),I.debug(x.records.branches),I.debug("in cherryPick")}},"cherryPick"),Lfe=mt(function(e){var t;if(e=$.sanitizeText(e,kfe()),!x.records.branches.has(e))throw(t=new Error(`Trying to checkout branch which is not yet created. (Help try using "branch ${e}")`)).hash={text:"checkout "+e,token:"checkout "+e,expected:["branch "+e]},t;x.records.currBranch=e,t=x.records.branches.get(x.records.currBranch),x.records.head=void 0!==t&&t?x.records.commits.get(t)??null:null},"checkout"),mt(vfe,"upsert"),mt(xfe,"prettyPrintCommitHistory"),Rfe=mt(function(){I.debug(x.records.commits),xfe([Ofe()[0]])},"prettyPrint"),Mfe=mt(function(){x.reset(),bh()},"clear"),Ife=mt(function(){return[...x.records.branchConfig.values()].map((e,t)=>null!==e.order&&void 0!==e.order?e:{...e,order:parseFloat("0."+t)}).sort((e,t)=>(e.order??0)-(t.order??0)).map(({name:e})=>({name:e}))},"getBranchesAsObjArray"),Nfe=mt(function(){return x.records.branches},"getBranches"),Dfe=mt(function(){return x.records.commits},"getCommits"),Ofe=mt(function(){var e=[...x.records.commits.values()];return e.forEach(function(e){I.debug(e.id)}),e.sort((e,t)=>e.seq-t.seq),e},"getCommitsArray"),Pfe=mt(function(){return x.records.currBranch},"getCurrentBranch"),Bfe=mt(function(){return x.records.direction},"getDirection"),Ffe=mt(function(){return x.records.head},"getHead"),jfe={commitType:dfe,getConfig:kfe,setDirection:Tfe,setOptions:Sfe,getOptions:_fe,commit:Cfe,branch:Afe,merge:Efe,cherryPick:$fe,checkout:Lfe,prettyPrint:Rfe,clear:Mfe,getBranchesAsObjArray:Ife,getBranches:Nfe,getCommits:Dfe,getCommitsArray:Ofe,getCurrentBranch:Pfe,getDirection:Bfe,getHead:Ffe,setAccTitle:vh,getAccTitle:xh,getAccDescription:kh,setAccDescription:wh,setDiagramTitle:Th,getDiagramTitle:Sh}}),$me=e(()=>{"use strict";hfe(),t(),gfe(),Eme(),ffe(),zfe=mt((e,t)=>{ufe(e,t),e.dir&&t.setDirection(e.dir);for(var i of e.statements)Hfe(i,t)},"populate"),Hfe=mt((e,t)=>{var i={Commit:mt(e=>t.commit(Ufe(e)),"Commit"),Branch:mt(e=>t.branch(qfe(e)),"Branch"),Merge:mt(e=>t.merge(Wfe(e)),"Merge"),Checkout:mt(e=>t.checkout(Vfe(e)),"Checkout"),CherryPicking:mt(e=>t.cherryPick(Gfe(e)),"CherryPicking")}[e.$type];i?i(e):I.error("Unknown statement type: "+e.$type)},"parseStatement"),Ufe=mt(e=>({id:e.id,msg:e.message??"",type:void 0!==e.type?dfe[e.type]:dfe.NORMAL,tags:e.tags??void 0}),"parseCommit"),qfe=mt(e=>({name:e.name,order:e.order??0}),"parseBranch"),Wfe=mt(e=>({branch:e.branch,id:e.id??"",type:void 0!==e.type?dfe[e.type]:void 0,tags:e.tags??void 0}),"parseMerge"),Vfe=mt(e=>e.branch,"parseCheckout"),Gfe=mt(e=>({id:e.id,targetId:"",tags:0===e.tags?.length?void 0:e.tags,parent:e.parent}),"parseCherryPicking"),Yfe={parse:mt(async e=>{e=await afe("gitGraph",e);I.debug(e),zfe(e,jfe)},"parse")}}),Lme=e(()=>{"use strict";a6(),Cu(),t(),sC(),ffe(),Sme=N(),Xfe=Sme?.gitGraph,Kfe=new Map,Zfe=new Map,Qfe=new Map,Jfe=[],eme=0,tme="LR",ime=mt(()=>{Kfe.clear(),Zfe.clear(),Qfe.clear(),eme=0,Jfe=[],tme="LR"},"clear"),nme=mt(e=>{let i=document.createElementNS("http://www.w3.org/2000/svg","text");return("string"==typeof e?e.split(/\\n|\n|<br\s*\/?>/gi):e).forEach(e=>{var t=document.createElementNS("http://www.w3.org/2000/svg","tspan");t.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),t.setAttribute("dy","1em"),t.setAttribute("x","0"),t.setAttribute("class","row"),t.textContent=e.trim(),i.appendChild(t)}),i},"drawText"),rme=mt(e=>{let i,n,r;return r="BT"===tme?(n=mt((e,t)=>e<=t,"comparisonFunc"),1/0):(n=mt((e,t)=>t<=e,"comparisonFunc"),0),e.forEach(e=>{var t="TB"===tme||"BT"==tme?Zfe.get(e)?.y:Zfe.get(e)?.x;void 0!==t&&n(t,r)&&(i=e,r=t)}),i},"findClosestParent"),sme=mt(e=>{let i="",n=1/0;return e.forEach(e=>{var t=Zfe.get(e).y;t<=n&&(i=e,n=t)}),i||void 0},"findClosestParentBT"),ame=mt((e,n,t)=>{let r=t,s=t,i=[];e.forEach(e=>{var t=n.get(e);if(!t)throw new Error("Commit not found for key "+e);t.parents.length?(r=lme(t),s=Math.max(r,s)):i.push(t),cme(t,r)}),r=s,i.forEach(e=>{hme(e,r,t)}),e.forEach(e=>{var t,i,e=n.get(e);e?.parents.length&&(t=sme(e.parents),(r=Zfe.get(t).y-40)<=s&&(s=r),t=Kfe.get(e.branch).pos,i=r-10,Zfe.set(e.id,{x:t,y:i}))})},"setParallelBTPos"),ome=mt(e=>{var t=rme(e.parents.filter(e=>null!==e));if(!t)throw new Error("Closest parent not found for commit "+e.id);t=Zfe.get(t)?.y;if(void 0===t)throw new Error("Closest parent position not found for commit "+e.id);return t},"findClosestParentPos"),lme=mt(e=>ome(e)+40,"calculateCommitPosition"),cme=mt((e,t)=>{var i=Kfe.get(e.branch);if(i)return i=i.pos,Zfe.set(e.id,{x:i,y:t=t+10}),{x:i,y:t};throw new Error("Branch not found for commit "+e.id)},"setCommitPosition"),hme=mt((e,t,i)=>{var n=Kfe.get(e.branch);if(!n)throw new Error("Branch not found for commit "+e.id);n=n.pos;Zfe.set(e.id,{x:n,y:t+i})},"setRootPosition"),ume=mt((e,t,i,n,r,s)=>{var a;s===dfe.HIGHLIGHT?(e.append("rect").attr("x",i.x-10).attr("y",i.y-10).attr("width",20).attr("height",20).attr("class",`commit ${t.id} commit-highlight${r%8} ${n}-outer`),e.append("rect").attr("x",i.x-6).attr("y",i.y-6).attr("width",12).attr("height",12).attr("class",`commit ${t.id} commit${r%8} ${n}-inner`)):s===dfe.CHERRY_PICK?(e.append("circle").attr("cx",i.x).attr("cy",i.y).attr("r",10).attr("class",`commit ${t.id} `+n),e.append("circle").attr("cx",i.x-3).attr("cy",i.y+2).attr("r",2.75).attr("fill","#fff").attr("class",`commit ${t.id} `+n),e.append("circle").attr("cx",i.x+3).attr("cy",i.y+2).attr("r",2.75).attr("fill","#fff").attr("class",`commit ${t.id} `+n),e.append("line").attr("x1",i.x+3).attr("y1",i.y+1).attr("x2",i.x).attr("y2",i.y-5).attr("stroke","#fff").attr("class",`commit ${t.id} `+n),e.append("line").attr("x1",i.x-3).attr("y1",i.y+1).attr("x2",i.x).attr("y2",i.y-5).attr("stroke","#fff").attr("class",`commit ${t.id} `+n)):((a=e.append("circle")).attr("cx",i.x),a.attr("cy",i.y),a.attr("r",t.type===dfe.MERGE?9:10),a.attr("class",`commit ${t.id} commit`+r%8),s===dfe.MERGE&&((a=e.append("circle")).attr("cx",i.x),a.attr("cy",i.y),a.attr("r",6),a.attr("class",`commit ${n} ${t.id} commit`+r%8)),s===dfe.REVERSE&&e.append("path").attr("d",`M ${i.x-5},${i.y-5}L${i.x+5},${i.y+5}M${i.x-5},${i.y+5}L${i.x+5},`+(i.y-5)).attr("class",`commit ${n} ${t.id} commit`+r%8))},"drawCommitBullet"),dme=mt((e,t,i,n)=>{var r,s;t.type!==dfe.CHERRY_PICK&&(t.customId&&t.type===dfe.MERGE||t.type!==dfe.MERGE)&&Xfe?.showCommitLabel&&(s=(e=e.append("g")).insert("rect").attr("class","commit-label-bkg"),r=(t=e.append("text").attr("x",n).attr("y",i.y+25).attr("class","commit-label").text(t.id)).node()?.getBBox())&&(s.attr("x",i.posWithOffset-r.width/2-2).attr("y",i.y+13.5).attr("width",r.width+4).attr("height",r.height+4),"TB"===tme||"BT"===tme?(s.attr("x",i.x-(r.width+16+5)).attr("y",i.y-12),t.attr("x",i.x-(r.width+16)).attr("y",i.y+r.height-12)):t.attr("x",i.posWithOffset-r.width/2),Xfe.rotateCommitLabel)&&("TB"===tme||"BT"===tme?(t.attr("transform","rotate(-45, "+i.x+", "+i.y+")"),s.attr("transform","rotate(-45, "+i.x+", "+i.y+")")):(t=-7.5-(r.width+10)/25*9.5,s=10+r.width/25*8.5,e.attr("transform","translate("+t+", "+s+") rotate(-45, "+n+", "+i.y+")")))},"drawCommitLabel"),pme=mt((r,s,a,o)=>{if(0<s.tags.length){let e=0,t=0,i=0,n=[];for(var l of s.tags.reverse()){var c=r.insert("polygon"),h=r.append("circle"),l=r.append("text").attr("y",a.y-16-e).attr("class","tag-label").text(l),u=l.node()?.getBBox();if(!u)throw new Error("Tag bbox not found");t=Math.max(t,u.width),i=Math.max(i,u.height),l.attr("x",a.posWithOffset-u.width/2),n.push({tag:l,hole:h,rect:c,yOffset:e}),e+=20}for(var{tag:d,hole:p,rect:g,yOffset:f}of n){var m=i/2,y=a.y-19.2-f;g.attr("class","tag-label-bkg").attr("points",`
|
||
${o-t/2-2},${2+y}
|
||
${o-t/2-2},${y-2}
|
||
${a.posWithOffset-t/2-4},${y-m-2}
|
||
${a.posWithOffset+t/2+4},${y-m-2}
|
||
${a.posWithOffset+t/2+4},${y+m+2}
|
||
${a.posWithOffset-t/2-4},`+(y+m+2)),p.attr("cy",y).attr("cx",o-t/2+2).attr("r",1.5).attr("class","tag-hole"),"TB"!==tme&&"BT"!==tme||(y=o+f,g.attr("class","tag-label-bkg").attr("points",`
|
||
${a.x},${y+2}
|
||
${a.x},${y-2}
|
||
${a.x+10},${y-m-2}
|
||
${a.x+10+t+4},${y-m-2}
|
||
${a.x+10+t+4},${y+m+2}
|
||
${a.x+10},`+(y+m+2)).attr("transform","translate(12,12) rotate(45, "+a.x+","+o+")"),p.attr("cx",a.x+2).attr("cy",y).attr("transform","translate(12,12) rotate(45, "+a.x+","+o+")"),d.attr("x",a.x+5).attr("y",y+3).attr("transform","translate(14,14) rotate(45, "+a.x+","+o+")"))}}},"drawCommitTags"),gme=mt(e=>{switch(e.customType??e.type){case dfe.NORMAL:return"commit-normal";case dfe.REVERSE:return"commit-reverse";case dfe.HIGHLIGHT:return"commit-highlight";case dfe.MERGE:return"commit-merge";case dfe.CHERRY_PICK:return"commit-cherry-pick";default:return"commit-normal"}},"getCommitClassType"),fme=mt((e,t,i,n)=>{var r,s={x:0,y:0};return 0<e.parents.length?(r=rme(e.parents))?(r=n.get(r)??s,"TB"===t?r.y+40:"BT"===t?(n.get(e.id)??s).y-40:r.x+40):0:"TB"===t?30:"BT"===t?(n.get(e.id)??s).y-40:0},"calculatePosition"),mme=mt((e,t,i)=>{var i="BT"===tme&&i?t:t+10,t="TB"===tme||"BT"===tme?i:Kfe.get(e.branch)?.pos,n="TB"===tme||"BT"===tme?Kfe.get(e.branch)?.pos:i;if(void 0===n||void 0===t)throw new Error("Position were undefined for commit "+e.id);return{x:n,y:t,posWithOffset:i}},"getCommitPosition"),yme=mt((e,s,a)=>{if(!Xfe)throw new Error("GitGraph config not found");let o=e.append("g").attr("class","commit-bullets"),l=e.append("g").attr("class","commit-labels"),c="TB"===tme||"BT"===tme?30:0,t=[...s.keys()],h=Xfe?.parallelCommits??!1,i=mt((e,t)=>{e=s.get(e)?.seq,t=s.get(t)?.seq;return void 0!==e&&void 0!==t?e-t:0},"sortKeys"),n=t.sort(i);"BT"===tme&&(h&&ame(n,s,c),n=n.reverse()),n.forEach(e=>{var t=s.get(e);if(!t)throw new Error("Commit not found for key "+e);h&&(c=fme(t,tme,c,Zfe));var i,n,r,e=mme(t,c,h);a&&(i=gme(t),n=t.customType??t.type,r=Kfe.get(t.branch)?.index??0,ume(o,t,e,i,r,n),dme(l,t,e,c),pme(l,t,e,c)),"TB"===tme||"BT"===tme?Zfe.set(t.id,{x:e.x,y:e.posWithOffset}):Zfe.set(t.id,{x:e.posWithOffset,y:e.y}),(c="BT"===tme&&h?c+40:c+40+10)>eme&&(eme=c)})},"drawCommits"),bme=mt((t,i,e,n,r)=>{let s=(("TB"===tme||"BT"===tme?e.x<n.x:e.y<n.y)?i:t).branch,a=mt(e=>e.branch===s,"isOnBranchToGetCurve"),o=mt(e=>e.seq>t.seq&&e.seq<i.seq,"isBetweenCommits");return[...r.values()].some(e=>o(e)&&a(e))},"shouldRerouteArrow"),vme=mt((e,t,i=0)=>{let n=e+Math.abs(e-t)/2;var r;return 5<i?n:Jfe.every(e=>10<=Math.abs(e-n))?(Jfe.push(n),n):(r=Math.abs(e-t),vme(e,t-r/5,i+1))},"findLane"),xme=mt((e,t,i,n)=>{var r,s=Zfe.get(t.id),a=Zfe.get(i.id);if(void 0===s||void 0===a)throw new Error(`Commit positions not found for commits ${t.id} and `+i.id);let o=bme(t,i,s,a,n),l="",c="",h=0,u=0,d=Kfe.get(i.branch)?.index;i.type===dfe.MERGE&&t.id!==i.parents[0]&&(d=Kfe.get(t.branch)?.index);let p;if(o?(l="A 10 10, 0, 0, 0,",c="A 10 10, 0, 0, 1,",h=10,u=10,n=s.y<a.y?vme(s.y,a.y):vme(a.y,s.y),r=s.x<a.x?vme(s.x,a.x):vme(a.x,s.x),p="TB"===tme?s.x<a.x?`M ${s.x} ${s.y} L ${r-h} ${s.y} ${c} ${r} ${s.y+u} L ${r} ${a.y-h} ${l} ${r+u} ${a.y} L ${a.x} `+a.y:(d=Kfe.get(t.branch)?.index,`M ${s.x} ${s.y} L ${r+h} ${s.y} ${l} ${r} ${s.y+u} L ${r} ${a.y-h} ${c} ${r-u} ${a.y} L ${a.x} `+a.y):"BT"===tme?s.x<a.x?`M ${s.x} ${s.y} L ${r-h} ${s.y} ${l} ${r} ${s.y-u} L ${r} ${a.y+h} ${c} ${r+u} ${a.y} L ${a.x} `+a.y:(d=Kfe.get(t.branch)?.index,`M ${s.x} ${s.y} L ${r+h} ${s.y} ${c} ${r} ${s.y-u} L ${r} ${a.y+h} ${l} ${r-u} ${a.y} L ${a.x} `+a.y):s.y<a.y?`M ${s.x} ${s.y} L ${s.x} ${n-h} ${l} ${s.x+u} ${n} L ${a.x-h} ${n} ${c} ${a.x} ${n+u} L ${a.x} `+a.y:(d=Kfe.get(t.branch)?.index,`M ${s.x} ${s.y} L ${s.x} ${n+h} ${c} ${s.x+u} ${n} L ${a.x-h} ${n} ${l} ${a.x} ${n-u} L ${a.x} `+a.y)):(l="A 20 20, 0, 0, 0,",c="A 20 20, 0, 0, 1,",h=20,u=20,"TB"===tme?(s.x<a.x&&(p=i.type===dfe.MERGE&&t.id!==i.parents[0]?`M ${s.x} ${s.y} L ${s.x} ${a.y-h} ${l} ${s.x+u} ${a.y} L ${a.x} `+a.y:`M ${s.x} ${s.y} L ${a.x-h} ${s.y} ${c} ${a.x} ${s.y+u} L ${a.x} `+a.y),s.x>a.x&&(l="A 20 20, 0, 0, 0,",c="A 20 20, 0, 0, 1,",h=20,u=20,p=i.type===dfe.MERGE&&t.id!==i.parents[0]?`M ${s.x} ${s.y} L ${s.x} ${a.y-h} ${c} ${s.x-u} ${a.y} L ${a.x} `+a.y:`M ${s.x} ${s.y} L ${a.x+h} ${s.y} ${l} ${a.x} ${s.y+u} L ${a.x} `+a.y),s.x===a.x&&(p=`M ${s.x} ${s.y} L ${a.x} `+a.y)):"BT"===tme?(s.x<a.x&&(p=i.type===dfe.MERGE&&t.id!==i.parents[0]?`M ${s.x} ${s.y} L ${s.x} ${a.y+h} ${c} ${s.x+u} ${a.y} L ${a.x} `+a.y:`M ${s.x} ${s.y} L ${a.x-h} ${s.y} ${l} ${a.x} ${s.y-u} L ${a.x} `+a.y),s.x>a.x&&(l="A 20 20, 0, 0, 0,",c="A 20 20, 0, 0, 1,",h=20,u=20,p=i.type===dfe.MERGE&&t.id!==i.parents[0]?`M ${s.x} ${s.y} L ${s.x} ${a.y+h} ${l} ${s.x-u} ${a.y} L ${a.x} `+a.y:`M ${s.x} ${s.y} L ${a.x-h} ${s.y} ${l} ${a.x} ${s.y-u} L ${a.x} `+a.y),s.x===a.x&&(p=`M ${s.x} ${s.y} L ${a.x} `+a.y)):(s.y<a.y&&(p=i.type===dfe.MERGE&&t.id!==i.parents[0]?`M ${s.x} ${s.y} L ${a.x-h} ${s.y} ${c} ${a.x} ${s.y+u} L ${a.x} `+a.y:`M ${s.x} ${s.y} L ${s.x} ${a.y-h} ${l} ${s.x+u} ${a.y} L ${a.x} `+a.y),s.y>a.y&&(p=i.type===dfe.MERGE&&t.id!==i.parents[0]?`M ${s.x} ${s.y} L ${a.x-h} ${s.y} ${l} ${a.x} ${s.y-u} L ${a.x} `+a.y:`M ${s.x} ${s.y} L ${s.x} ${a.y+h} ${c} ${s.x+u} ${a.y} L ${a.x} `+a.y),s.y===a.y&&(p=`M ${s.x} ${s.y} L ${a.x} `+a.y))),void 0===p)throw new Error("Line definition not found");e.append("path").attr("d",p).attr("class","arrow arrow"+d%8)},"drawArrow"),wme=mt((e,i)=>{let n=e.append("g").attr("class","commit-arrows");[...i.keys()].forEach(e=>{let t=i.get(e);t.parents&&0<t.parents.length&&t.parents.forEach(e=>{xme(n,i.get(e),t,i)})})},"drawArrows"),kme=mt((e,t)=>{let s=e.append("g");t.forEach((e,t)=>{var t=t%8,i=Kfe.get(e.name)?.pos;if(void 0===i)throw new Error("Position not found for branch "+e.name);var n=s.append("line"),n=(n.attr("x1",0),n.attr("y1",i),n.attr("x2",eme),n.attr("y2",i),n.attr("class","branch branch"+t),"TB"===tme?(n.attr("y1",30),n.attr("x1",i),n.attr("y2",eme),n.attr("x2",i)):"BT"===tme&&(n.attr("y1",eme),n.attr("x1",i),n.attr("y2",30),n.attr("x2",i)),Jfe.push(i),e.name),e=nme(n),n=s.insert("rect"),r=s.insert("g").attr("class","branchLabel").insert("g").attr("class","label branch-label"+t),e=(r.node().appendChild(e),e.getBBox());n.attr("class","branchLabelBkg label"+t).attr("rx",4).attr("ry",4).attr("x",-e.width-4-(!0===Xfe?.rotateCommitLabel?30:0)).attr("y",-e.height/2+8).attr("width",e.width+18).attr("height",e.height+4),r.attr("transform","translate("+(-e.width-14-(!0===Xfe?.rotateCommitLabel?30:0))+", "+(i-e.height/2-1)+")"),"TB"===tme?(n.attr("x",i-e.width/2-10).attr("y",0),r.attr("transform","translate("+(i-e.width/2-5)+", 0)")):"BT"===tme?(n.attr("x",i-e.width/2-10).attr("y",eme),r.attr("transform","translate("+(i-e.width/2-5)+", "+eme+")")):n.attr("transform","translate(-19, "+(i-e.height/2)+")")})},"drawBranches"),Tme=mt(function(e,t,i,n,r){return Kfe.set(e,{pos:t,index:i}),t+=50+(r?40:0)+("TB"===tme||"BT"===tme?n.width/2:0)},"setBranchPosition"),Sme=mt(function(e,t,i,n){if(ime(),I.debug("in gitgraph renderer",e+`
|
||
`,"id:",t,i),!Xfe)throw new Error("GitGraph config not found");let a=Xfe.rotateCommitLabel??!1,r=n.db;Qfe=r.getCommits();e=r.getBranchesAsObjArray();tme=r.getDirection();let o=G(`[id="${t}"]`),l=0;e.forEach((e,t)=>{var i=nme(e.name),n=o.append("g"),r=n.insert("g").attr("class","branchLabel"),s=r.insert("g").attr("class","label branch-label"),i=(s.node()?.appendChild(i),i.getBBox());l=Tme(e.name,l,t,i,a),s.remove(),r.remove(),n.remove()}),yme(o,Qfe,!1),Xfe.showBranches&&kme(o,e),wme(o,Qfe),yme(o,Qfe,!0),tC.insertTitle(o,"gitTitleText",Xfe.titleTopMargin??0,r.getDiagramTitle()),Lh(void 0,o,Xfe.diagramPadding,Xfe.useMaxWidth)},"draw"),_me={draw:Sme}}),Rme=e(()=>{"use strict";Cme=mt(t=>`
|
||
.commit-id,
|
||
.commit-msg,
|
||
.branch-label {
|
||
fill: lightgrey;
|
||
color: lightgrey;
|
||
font-family: 'trebuchet ms', verdana, arial, sans-serif;
|
||
font-family: var(--mermaid-font-family);
|
||
}
|
||
${[0,1,2,3,4,5,6,7].map(e=>`
|
||
.branch-label${e} { fill: ${t["gitBranchLabel"+e]}; }
|
||
.commit${e} { stroke: ${t["git"+e]}; fill: ${t["git"+e]}; }
|
||
.commit-highlight${e} { stroke: ${t["gitInv"+e]}; fill: ${t["gitInv"+e]}; }
|
||
.label${e} { fill: ${t["git"+e]}; }
|
||
.arrow${e} { stroke: ${t["git"+e]}; }
|
||
`).join(`
|
||
`)}
|
||
|
||
.branch {
|
||
stroke-width: 1;
|
||
stroke: ${t.lineColor};
|
||
stroke-dasharray: 2;
|
||
}
|
||
.commit-label { font-size: ${t.commitLabelFontSize}; fill: ${t.commitLabelColor};}
|
||
.commit-label-bkg { font-size: ${t.commitLabelFontSize}; fill: ${t.commitLabelBackground}; opacity: 0.5; }
|
||
.tag-label { font-size: ${t.tagLabelFontSize}; fill: ${t.tagLabelColor};}
|
||
.tag-label-bkg { fill: ${t.tagLabelBackground}; stroke: ${t.tagLabelBorder}; }
|
||
.tag-hole { fill: ${t.textColor}; }
|
||
|
||
.commit-merge {
|
||
stroke: ${t.primaryColor};
|
||
fill: ${t.primaryColor};
|
||
}
|
||
.commit-reverse {
|
||
stroke: ${t.primaryColor};
|
||
fill: ${t.primaryColor};
|
||
stroke-width: 3;
|
||
}
|
||
.commit-highlight-outer {
|
||
}
|
||
.commit-highlight-inner {
|
||
stroke: ${t.primaryColor};
|
||
fill: ${t.primaryColor};
|
||
}
|
||
|
||
.arrow { stroke-width: 8; stroke-linecap: round; fill: none}
|
||
.gitTitleText {
|
||
text-anchor: middle;
|
||
font-size: 18px;
|
||
fill: ${t.textColor};
|
||
}
|
||
`,"getStyles"),Ame=Cme}),Mme={};V(Mme,{diagram:()=>Ime});var Ime,Nme,Dme,Ome=e(()=>{"use strict";$me(),Eme(),Lme(),Rme(),Ime={parser:Yfe,db:jfe,renderer:_me,styles:Ame}}),Pme=e(()=>{"use strict";function e(){this.yy={}}var t,i,n,r,s,a,o,l,c,h,u,d,p,g,f,m,y,b,v,x,w,k,T,S,_,C;t=mt(function(e,t,i,n){for(i=i||{},n=e.length;n--;i[e[n]]=t);return i},"o"),i=[6,8,10,12,13,14,15,16,17,18,20,21,22,23,24,25,26,27,28,29,30,31,33,35,36,38,40],n=[1,26],r=[1,27],s=[1,28],a=[1,29],o=[1,30],l=[1,31],c=[1,32],h=[1,33],u=[1,34],d=[1,9],p=[1,10],g=[1,11],f=[1,12],m=[1,13],y=[1,14],b=[1,15],v=[1,16],x=[1,19],w=[1,20],k=[1,21],T=[1,22],S=[1,23],_=[1,25],C=[1,35],n={trace:mt(function(){},"trace"),yy:{},symbols_:{error:2,start:3,gantt:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NL:10,weekday:11,weekday_monday:12,weekday_tuesday:13,weekday_wednesday:14,weekday_thursday:15,weekday_friday:16,weekday_saturday:17,weekday_sunday:18,weekend:19,weekend_friday:20,weekend_saturday:21,dateFormat:22,inclusiveEndDates:23,topAxis:24,axisFormat:25,tickInterval:26,excludes:27,includes:28,todayMarker:29,title:30,acc_title:31,acc_title_value:32,acc_descr:33,acc_descr_value:34,acc_descr_multiline_value:35,section:36,clickStatement:37,taskTxt:38,taskData:39,click:40,callbackname:41,callbackargs:42,href:43,clickStatementDebug:44,$accept:0,$end:1},terminals_:{2:"error",4:"gantt",6:"EOF",8:"SPACE",10:"NL",12:"weekday_monday",13:"weekday_tuesday",14:"weekday_wednesday",15:"weekday_thursday",16:"weekday_friday",17:"weekday_saturday",18:"weekday_sunday",20:"weekend_friday",21:"weekend_saturday",22:"dateFormat",23:"inclusiveEndDates",24:"topAxis",25:"axisFormat",26:"tickInterval",27:"excludes",28:"includes",29:"todayMarker",30:"title",31:"acc_title",32:"acc_title_value",33:"acc_descr",34:"acc_descr_value",35:"acc_descr_multiline_value",36:"section",38:"taskTxt",39:"taskData",40:"click",41:"callbackname",42:"callbackargs",43:"href"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[11,1],[11,1],[11,1],[11,1],[11,1],[11,1],[11,1],[19,1],[19,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,2],[9,2],[9,1],[9,1],[9,1],[9,2],[37,2],[37,3],[37,3],[37,4],[37,3],[37,4],[37,2],[44,2],[44,3],[44,3],[44,4],[44,3],[44,4],[44,2]],performAction:mt(function(e,t,i,n,r,s,a){var o=s.length-1;switch(r){case 1:return s[o-1];case 2:this.$=[];break;case 3:s[o-1].push(s[o]),this.$=s[o-1];break;case 4:case 5:this.$=s[o];break;case 6:case 7:this.$=[];break;case 8:n.setWeekday("monday");break;case 9:n.setWeekday("tuesday");break;case 10:n.setWeekday("wednesday");break;case 11:n.setWeekday("thursday");break;case 12:n.setWeekday("friday");break;case 13:n.setWeekday("saturday");break;case 14:n.setWeekday("sunday");break;case 15:n.setWeekend("friday");break;case 16:n.setWeekend("saturday");break;case 17:n.setDateFormat(s[o].substr(11)),this.$=s[o].substr(11);break;case 18:n.enableInclusiveEndDates(),this.$=s[o].substr(18);break;case 19:n.TopAxis(),this.$=s[o].substr(8);break;case 20:n.setAxisFormat(s[o].substr(11)),this.$=s[o].substr(11);break;case 21:n.setTickInterval(s[o].substr(13)),this.$=s[o].substr(13);break;case 22:n.setExcludes(s[o].substr(9)),this.$=s[o].substr(9);break;case 23:n.setIncludes(s[o].substr(9)),this.$=s[o].substr(9);break;case 24:n.setTodayMarker(s[o].substr(12)),this.$=s[o].substr(12);break;case 27:n.setDiagramTitle(s[o].substr(6)),this.$=s[o].substr(6);break;case 28:this.$=s[o].trim(),n.setAccTitle(this.$);break;case 29:case 30:this.$=s[o].trim(),n.setAccDescription(this.$);break;case 31:n.addSection(s[o].substr(8)),this.$=s[o].substr(8);break;case 33:n.addTask(s[o-1],s[o]),this.$="task";break;case 34:this.$=s[o-1],n.setClickEvent(s[o-1],s[o],null);break;case 35:this.$=s[o-2],n.setClickEvent(s[o-2],s[o-1],s[o]);break;case 36:this.$=s[o-2],n.setClickEvent(s[o-2],s[o-1],null),n.setLink(s[o-2],s[o]);break;case 37:this.$=s[o-3],n.setClickEvent(s[o-3],s[o-2],s[o-1]),n.setLink(s[o-3],s[o]);break;case 38:this.$=s[o-2],n.setClickEvent(s[o-2],s[o],null),n.setLink(s[o-2],s[o-1]);break;case 39:this.$=s[o-3],n.setClickEvent(s[o-3],s[o-1],s[o]),n.setLink(s[o-3],s[o-2]);break;case 40:this.$=s[o-1],n.setLink(s[o-1],s[o]);break;case 41:case 47:this.$=s[o-1]+" "+s[o];break;case 42:case 43:case 45:this.$=s[o-2]+" "+s[o-1]+" "+s[o];break;case 44:case 46:this.$=s[o-3]+" "+s[o-2]+" "+s[o-1]+" "+s[o]}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},t(i,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:17,12:n,13:r,14:s,15:a,16:o,17:l,18:c,19:18,20:h,21:u,22:d,23:p,24:g,25:f,26:m,27:y,28:b,29:v,30:x,31:w,33:k,35:T,36:S,37:24,38:_,40:C},t(i,[2,7],{1:[2,1]}),t(i,[2,3]),{9:36,11:17,12:n,13:r,14:s,15:a,16:o,17:l,18:c,19:18,20:h,21:u,22:d,23:p,24:g,25:f,26:m,27:y,28:b,29:v,30:x,31:w,33:k,35:T,36:S,37:24,38:_,40:C},t(i,[2,5]),t(i,[2,6]),t(i,[2,17]),t(i,[2,18]),t(i,[2,19]),t(i,[2,20]),t(i,[2,21]),t(i,[2,22]),t(i,[2,23]),t(i,[2,24]),t(i,[2,25]),t(i,[2,26]),t(i,[2,27]),{32:[1,37]},{34:[1,38]},t(i,[2,30]),t(i,[2,31]),t(i,[2,32]),{39:[1,39]},t(i,[2,8]),t(i,[2,9]),t(i,[2,10]),t(i,[2,11]),t(i,[2,12]),t(i,[2,13]),t(i,[2,14]),t(i,[2,15]),t(i,[2,16]),{41:[1,40],43:[1,41]},t(i,[2,4]),t(i,[2,28]),t(i,[2,29]),t(i,[2,33]),t(i,[2,34],{42:[1,42],43:[1,43]}),t(i,[2,40],{41:[1,44]}),t(i,[2,35],{43:[1,45]}),t(i,[2,36]),t(i,[2,38],{42:[1,46]}),t(i,[2,37]),t(i,[2,39])],defaultActions:{},parseError:mt(function(e,t){var i;if(!t.recoverable)throw(i=new Error(e)).hash=t,i;this.trace(e)},"parseError"),parse:mt(function(e){var t,i=this,n=[0],r=[],s=[null],a=[],o=this.table,l="",c=0,h=0,u=0,d=1,p=a.slice.call(arguments,1),g=Object.create(this.lexer),f={yy:{}};for(t in this.yy)Object.prototype.hasOwnProperty.call(this.yy,t)&&(f.yy[t]=this.yy[t]);g.setInput(e,f.yy),f.yy.lexer=g,f.yy.parser=this,"u"<typeof g.yylloc&&(g.yylloc={});var m=g.yylloc,y=(a.push(m),g.options&&g.options.ranges);function b(){var e=r.pop()||g.lex()||d;return"number"!=typeof e&&(e instanceof Array&&(e=(r=e).pop()),e=i.symbols_[e]||e),e}"function"==typeof f.yy.parseError?this.parseError=f.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError,mt(function(e){n.length=n.length-2*e,s.length=s.length-e,a.length=a.length-e},"popStack"),mt(b,"lex");for(var v,x,w,k,T,S,_,C={};;){if(w=n[n.length-1],"u"<typeof(k=this.defaultActions[w]||((null===v||"u"<typeof v)&&(v=b()),o[w]&&o[w][v]))||!k.length||!k[0]){var A="",E=[];for(T in o[w])this.terminals_[T]&&2<T&&E.push("'"+this.terminals_[T]+"'");A=g.showPosition?"Parse error on line "+(c+1)+`:
|
||
`+g.showPosition()+`
|
||
Expecting `+E.join(", ")+", got '"+(this.terminals_[v]||v)+"'":"Parse error on line "+(c+1)+": Unexpected "+(v==d?"end of input":"'"+(this.terminals_[v]||v)+"'"),this.parseError(A,{text:g.match,token:this.terminals_[v]||v,line:g.yylineno,loc:m,expected:E})}if(k[0]instanceof Array&&1<k.length)throw new Error("Parse Error: multiple actions possible at state: "+w+", token: "+v);switch(k[0]){case 1:n.push(v),s.push(g.yytext),a.push(g.yylloc),n.push(k[1]),v=null,x?(v=x,x=null):(h=g.yyleng,l=g.yytext,c=g.yylineno,m=g.yylloc,0<u&&u--);break;case 2:if(S=this.productions_[k[1]][1],C.$=s[s.length-S],C._$={first_line:a[a.length-(S||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(S||1)].first_column,last_column:a[a.length-1].last_column},y&&(C._$.range=[a[a.length-(S||1)].range[0],a[a.length-1].range[1]]),typeof(_=this.performAction.apply(C,[l,h,c,f.yy,k[1],s,a].concat(p)))<"u")return _;S&&(n=n.slice(0,-1*S*2),s=s.slice(0,-1*S),a=a.slice(0,-1*S)),n.push(this.productions_[k[1]][0]),s.push(C.$),a.push(C._$),_=o[n[n.length-2]][n[n.length-1]],n.push(_);break;case 3:return!0}}return!0},"parse")},r={EOF:1,parseError:mt(function(e,t){if(!this.yy.parser)throw new Error(e);this.yy.parser.parseError(e,t)},"parseError"),setInput:mt(function(e,t){return this.yy=t||this.yy||{},this._input=e,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:mt(function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.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),e},"input"),unput:mt(function(e){var t=e.length,i=e.split(/(?:\r\n?|\n)/g),e=(this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t,this.match.split(/(?:\r\n?|\n)/g)),n=(this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),i.length-1&&(this.yylineno-=i.length-1),this.yylloc.range);return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:i?(i.length===e.length?this.yylloc.first_column:0)+e[e.length-i.length].length-i[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[n[0],n[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},"unput"),more:mt(function(){return this._more=!0,this},"more"),reject:mt(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).
|
||
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"reject"),less:mt(function(e){this.unput(this.match.slice(e))},"less"),pastInput:mt(function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(20<e.length?"...":"")+e.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:mt(function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(20<e.length?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:mt(function(){var e=this.pastInput(),t=new Array(e.length+1).join("-");return e+this.upcomingInput()+`
|
||
`+t+"^"},"showPosition"),test_match:mt(function(e,t){var i,n;if(this.options.backtrack_lexer&&(n={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)&&(n.yylloc.range=this.yylloc.range.slice(0)),(i=e[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=i.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:i?i[i.length-1].length-i[i.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+e[0].length},this.yytext+=e[0],this.match+=e[0],this.matches=e,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(e[0].length),this.matched+=e[0],i=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),i)return i;if(this._backtrack)for(var r in n)this[r]=n[r];return!1},"test_match"),next:mt(function(){if(this.done)return this.EOF;var e,t,i,n;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var r=this._currentRules(),s=0;s<r.length;s++)if((i=this._input.match(this.rules[r[s]]))&&(!t||i[0].length>t[0].length)){if(t=i,n=s,this.options.backtrack_lexer){if(!1!==(e=this.test_match(i,r[s])))return e;if(this._backtrack){t=!1;continue}return!1}if(!this.options.flex)break}return t?!1!==(e=this.test_match(t,r[n]))&&e:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
|
||
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:mt(function(){return this.next()||this.lex()},"lex"),begin:mt(function(e){this.conditionStack.push(e)},"begin"),popState:mt(function(){return 0<this.conditionStack.length-1?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:mt(function(){return(this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]]:this.conditions.INITIAL).rules},"_currentRules"),topState:mt(function(e){return 0<=(e=this.conditionStack.length-1-Math.abs(e||0))?this.conditionStack[e]:"INITIAL"},"topState"),pushState:mt(function(e){this.begin(e)},"pushState"),stateStackSize:mt(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:mt(function(e,t,i,n){switch(i){case 0:return this.begin("open_directive"),"open_directive";case 1:return this.begin("acc_title"),31;case 2:return this.popState(),"acc_title_value";case 3:return this.begin("acc_descr"),33;case 4:return this.popState(),"acc_descr_value";case 5:this.begin("acc_descr_multiline");break;case 6:this.popState();break;case 7:return"acc_descr_multiline_value";case 8:case 9:case 10:break;case 11:return 10;case 12:case 13:break;case 14:this.begin("href");break;case 15:this.popState();break;case 16:return 43;case 17:this.begin("callbackname");break;case 18:this.popState();break;case 19:this.popState(),this.begin("callbackargs");break;case 20:return 41;case 21:this.popState();break;case 22:return 42;case 23:this.begin("click");break;case 24:this.popState();break;case 25:return 40;case 26:return 4;case 27:return 22;case 28:return 23;case 29:return 24;case 30:return 25;case 31:return 26;case 32:return 28;case 33:return 27;case 34:return 29;case 35:return 12;case 36:return 13;case 37:return 14;case 38:return 15;case 39:return 16;case 40:return 17;case 41:return 18;case 42:return 20;case 43:return 21;case 44:return"date";case 45:return 30;case 46:return"accDescription";case 47:return 36;case 48:return 38;case 49:return 39;case 50:return":";case 51:return 6;case 52:return"INVALID"}},"anonymous"),rules:[/^(?:%%\{)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:%%(?!\{)*[^\n]*)/i,/^(?:[^\}]%%*[^\n]*)/i,/^(?:%%*[^\n]*[\n]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:%[^\n]*)/i,/^(?:href[\s]+["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:call[\s]+)/i,/^(?:\([\s]*\))/i,/^(?:\()/i,/^(?:[^(]*)/i,/^(?:\))/i,/^(?:[^)]*)/i,/^(?:click[\s]+)/i,/^(?:[\s\n])/i,/^(?:[^\s\n]*)/i,/^(?:gantt\b)/i,/^(?:dateFormat\s[^#\n;]+)/i,/^(?:inclusiveEndDates\b)/i,/^(?:topAxis\b)/i,/^(?:axisFormat\s[^#\n;]+)/i,/^(?:tickInterval\s[^#\n;]+)/i,/^(?:includes\s[^#\n;]+)/i,/^(?:excludes\s[^#\n;]+)/i,/^(?:todayMarker\s[^\n;]+)/i,/^(?:weekday\s+monday\b)/i,/^(?:weekday\s+tuesday\b)/i,/^(?:weekday\s+wednesday\b)/i,/^(?:weekday\s+thursday\b)/i,/^(?:weekday\s+friday\b)/i,/^(?:weekday\s+saturday\b)/i,/^(?:weekday\s+sunday\b)/i,/^(?:weekend\s+friday\b)/i,/^(?:weekend\s+saturday\b)/i,/^(?:\d\d\d\d-\d\d-\d\d\b)/i,/^(?:title\s[^\n]+)/i,/^(?:accDescription\s[^#\n;]+)/i,/^(?:section\s[^\n]+)/i,/^(?:[^:\n]+)/i,/^(?::[^#\n;]+)/i,/^(?::)/i,/^(?:$)/i,/^(?:.)/i],conditions:{acc_descr_multiline:{rules:[6,7],inclusive:!1},acc_descr:{rules:[4],inclusive:!1},acc_title:{rules:[2],inclusive:!1},callbackargs:{rules:[21,22],inclusive:!1},callbackname:{rules:[18,19,20],inclusive:!1},href:{rules:[15,16],inclusive:!1},click:{rules:[24,25],inclusive:!1},INITIAL:{rules:[0,1,3,5,8,9,10,11,12,13,14,17,23,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52],inclusive:!0}}},n.lexer=r,mt(e,"Parser"),(Nme=new((e.prototype=n).Parser=e)).parser=Nme,Dme=Nme}),Bme=W((e,t)=>{"use strict";var i;i=function(){return function(e,t,r){var s=mt(function(e){return e.add(4-e.isoWeekday(),"day")},"a"),t=t.prototype,a=(t.isoWeekYear=function(){return s(this).year()},t.isoWeek=function(e){var t,i,n;return this.$utils().u(e)?(i=s(this),n=this.isoWeekYear(),t=4-(n=(this.$u?r.utc:r)().year(n).startOf("year")).isoWeekday(),4<n.isoWeekday()&&(t+=7),n=n.add(t,"day"),i.diff(n,"week")+1):this.add(7*(e-this.isoWeek()),"day")},t.isoWeekday=function(e){return this.$utils().u(e)?this.day()||7:this.day(this.day()%7?e:e-7)},t.startOf);t.startOf=function(e,t){var i=this.$utils(),n=!!i.u(t)||t;return"isoweek"===i.p(e)?n?this.date(this.date()-(this.isoWeekday()-1)).startOf("day"):this.date(this.date()-1-(this.isoWeekday()-1)+7).endOf("day"):a.bind(this)(e,t)}}},"object"==typeof(e=e)&&typeof t<"u"?t.exports=i():"function"==typeof define&&define.amd?define(i):(e=typeof globalThis<"u"?globalThis:e||self).dayjs_plugin_isoWeek=i()}),Fme=W((e,t)=>{"use strict";var i;i=function(){var o={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"},l=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,e=/\d/,t=/\d\d/,i=/\d\d?/,n=/\d*[^-_:/,()\s\d]+/,g={},r=mt(function(e){return(e=+e)+(68<e?1900:2e3)},"a"),s=mt(function(t){return function(e){this[t]=+e}},"f"),a=[/[+-]\d\d:?(\d\d)?|Z/,function(e){var t;(this.zone||(this.zone={})).offset=!e||"Z"===e||0===(t=60*(e=e.match(/([+-]|\d\d)/g))[1]+(+e[2]||0))?0:"+"===e[0]?-t:t}],c=mt(function(e){e=g[e];return e&&(e.indexOf?e:e.s.concat(e.f))},"u"),h=mt(function(e,t){var i,n=g.meridiem;if(n){for(var r=1;r<=24;r+=1)if(-1<e.indexOf(n(r,0,t))){i=12<r;break}}else i=e===(t?"pm":"PM");return i},"d"),d={A:[n,function(e){this.afternoon=h(e,!1)}],a:[n,function(e){this.afternoon=h(e,!0)}],Q:[e,function(e){this.month=3*(e-1)+1}],S:[e,function(e){this.milliseconds=100*+e}],SS:[t,function(e){this.milliseconds=10*+e}],SSS:[/\d{3}/,function(e){this.milliseconds=+e}],s:[i,s("seconds")],ss:[i,s("seconds")],m:[i,s("minutes")],mm:[i,s("minutes")],H:[i,s("hours")],h:[i,s("hours")],HH:[i,s("hours")],hh:[i,s("hours")],D:[i,s("day")],DD:[t,s("day")],Do:[n,function(e){var t=g.ordinal,i=e.match(/\d+/);if(this.day=i[0],t)for(var n=1;n<=31;n+=1)t(n).replace(/\[|\]/g,"")===e&&(this.day=n)}],w:[i,s("week")],ww:[t,s("week")],M:[i,s("month")],MM:[t,s("month")],MMM:[n,function(e){var t=c("months"),t=(c("monthsShort")||t.map(function(e){return e.slice(0,3)})).indexOf(e)+1;if(t<1)throw new Error;this.month=t%12||t}],MMMM:[n,function(e){e=c("months").indexOf(e)+1;if(e<1)throw new Error;this.month=e%12||e}],Y:[/[+-]?\d+/,s("year")],YY:[t,function(e){this.year=r(e)}],YYYY:[/\d{4}/,s("year")],Z:a,ZZ:a};function T(e){for(var t=e,r=g&&g.formats,h=(e=t.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(e,t,i){var n=i&&i.toUpperCase();return t||r[i]||o[i]||r[n].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(e,t,i){return t||i.slice(1)})})).match(l),u=h.length,i=0;i<u;i+=1){var n=h[i],s=d[n],a=s&&s[0],s=s&&s[1];h[i]=s?{regex:a,parser:s}:n.replace(/^\[|\]$/g,"")}return function(e){for(var t,i,n,r={},s=0,a=0;s<u;s+=1){var o,l,c=h[s];"string"==typeof c?a+=c.length:(l=c.regex,c=c.parser,o=e.slice(a),l=l.exec(o)[0],c.call(r,l),e=e.replace(l,""))}return void 0!==(n=(t=r).afternoon)&&(i=t.hours,n?i<12&&(t.hours+=12):12===i&&(t.hours=0),delete t.afternoon),r}}return mt(T,"l"),function(e,t,d){d.p.customParseFormat=!0,e&&e.parseTwoDigitYear&&(r=e.parseTwoDigitYear);var e=t.prototype,p=e.parse;e.parse=function(e){var t=e.date,i=e.utc,n=e.args,r=(this.$u=i,n[1]);if("string"==typeof r){var s=!0===n[2],a=!0===n[3],o=s||a,l=n[2];a&&(l=n[2]),g=this.$locale(),!s&&l&&(g=d.Ls[l]),this.$d=function(e,t,i,n){try{if(-1<["x","X"].indexOf(t))return new Date(("X"===t?1e3:1)*e);var r=T(t)(e),s=r.year,a=r.month,o=r.day,l=r.hours,c=r.minutes,h=r.seconds,u=r.milliseconds,d=r.zone,p=r.week,g=new Date,f=o||(s||a?1:g.getDate()),m=s||g.getFullYear(),y=0;s&&!a||(y=0<a?a-1:g.getMonth());var b,v=l||0,x=c||0,w=h||0,k=u||0;return d?new Date(Date.UTC(m,y,f,v,x,w,k+60*d.offset*1e3)):i?new Date(Date.UTC(m,y,f,v,x,w,k)):(b=new Date(m,y,f,v,x,w,k),b=p?n(b).week(p).toDate():b)}catch{return new Date("")}}(t,r,i,d),this.init(),l&&!0!==l&&(this.$L=this.locale(l).$L),o&&t!=this.format(r)&&(this.$d=new Date("")),g={}}else if(r instanceof Array)for(var c=r.length,h=1;h<=c;h+=1){n[1]=r[h-1];var u=d.apply(this,n);if(u.isValid()){this.$d=u.$d,this.$L=u.$L,this.init();break}h===c&&(this.$d=new Date(""))}else p.call(this,e)}}},"object"==typeof(e=e)&&typeof t<"u"?t.exports=i():"function"==typeof define&&define.amd?define(i):(e=typeof globalThis<"u"?globalThis:e||self).dayjs_plugin_customParseFormat=i()}),jme=W((e,t)=>{"use strict";var i;i=function(){return function(e,t){var t=t.prototype,s=t.format;t.format=function(e){var t,i,n=this,r=this.$locale();return this.isValid()?(t=this.$utils(),i=(e||"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(e){switch(e){case"Q":return Math.ceil((n.$M+1)/3);case"Do":return r.ordinal(n.$D);case"gggg":return n.weekYear();case"GGGG":return n.isoWeekYear();case"wo":return r.ordinal(n.week(),"W");case"w":case"ww":return t.s(n.week(),"w"===e?1:2,"0");case"W":case"WW":return t.s(n.isoWeek(),"W"===e?1:2,"0");case"k":case"kk":return t.s(String(0===n.$H?24:n.$H),"k"===e?1:2,"0");case"X":return Math.floor(n.$d.getTime()/1e3);case"x":return n.$d.getTime();case"z":return"["+n.offsetName()+"]";case"zzz":return"["+n.offsetName("long")+"]";default:return e}}),s.bind(this)(i)):s.bind(this)(e)}}},"object"==typeof(e=e)&&typeof t<"u"?t.exports=i():"function"==typeof define&&define.amd?define(i):(e=typeof globalThis<"u"?globalThis:e||self).dayjs_plugin_advancedFormat=i()});function zme(i,n,e){let r=!0;for(;r;)r=!1,e.forEach(function(e){var t=new RegExp("^\\s*"+e+"\\s*$");i[0].match(t)&&(n[e]=!0,i.shift(1),r=!0)})}var Hme,Ume,qme,Wme,Vme,Gme,Yme,Xme,Kme,Zme,Qme,Jme,e1e,t1e,i1e,n1e,r1e,s1e,a1e,o1e,l1e,c1e,h1e,u1e,d1e,p1e,g1e,f1e,m1e,y1e,b1e,v1e,x1e,w1e,k1e,T1e,S1e,_1e,C1e,A1e,E1e,$1e,L1e,R1e,M1e,I1e,N1e,D1e,O1e,P1e,B1e,F1e,j1e,z1e,H1e,U1e,q1e,W1e,V1e,G1e,Y1e,X1e,K1e,Z1e,Q1e,J1e,eye,tye,iye,nye,rye,sye,aye,oye,lye,cye,hye,uye,dye,pye,gye,fye=e(()=>{"use strict";Hme=ie(l6(),1),Ume=ie(ne(),1),c1e=ie(Bme(),1),h1e=ie(Fme(),1),u1e=ie(jme(),1),t(),Cu(),sC(),_u(),Ume.default.extend(c1e.default),Ume.default.extend(h1e.default),Ume.default.extend(u1e.default),qme={friday:5,saturday:6},Yme=Vme=Wme="",Xme=[],Kme=[],Zme=new Map,Qme=[],Jme=[],t1e=e1e="",i1e=["active","done","crit","milestone","vert"],s1e=r1e=!(n1e=[]),a1e="sunday",o1e="saturday",l1e=0,c1e=mt(function(){Qme=[],Jme=[],n1e=[],G1e=[],Gme=V1e=W1e=void(z1e=0),Yme=t1e=Vme=Wme=e1e="",Xme=[],s1e=r1e=!(Kme=[]),l1e=0,Zme=new Map,bh(),a1e="sunday",o1e="saturday"},"clear"),h1e=mt(function(e){Vme=e},"setAxisFormat"),u1e=mt(function(){return Vme},"getAxisFormat"),d1e=mt(function(e){Gme=e},"setTickInterval"),p1e=mt(function(){return Gme},"getTickInterval"),g1e=mt(function(e){Yme=e},"setTodayMarker"),f1e=mt(function(){return Yme},"getTodayMarker"),m1e=mt(function(e){Wme=e},"setDateFormat"),y1e=mt(function(){r1e=!0},"enableInclusiveEndDates"),b1e=mt(function(){return r1e},"endDatesAreInclusive"),v1e=mt(function(){s1e=!0},"enableTopAxis"),x1e=mt(function(){return s1e},"topAxisEnabled"),w1e=mt(function(e){t1e=e},"setDisplayMode"),k1e=mt(function(){return t1e},"getDisplayMode"),T1e=mt(function(){return Wme},"getDateFormat"),S1e=mt(function(e){Xme=e.toLowerCase().split(/[\s,]+/)},"setIncludes"),_1e=mt(function(){return Xme},"getIncludes"),C1e=mt(function(e){Kme=e.toLowerCase().split(/[\s,]+/)},"setExcludes"),A1e=mt(function(){return Kme},"getExcludes"),E1e=mt(function(){return Zme},"getLinks"),$1e=mt(function(e){e1e=e,Qme.push(e)},"addSection"),L1e=mt(function(){return Qme},"getSections"),R1e=mt(function(){let e=Q1e(),t=0;for(;!e&&t<10;)e=Q1e(),t++;return Jme=G1e},"getTasks"),M1e=mt(function(e,t,i,n){return!n.includes(e.format(t.trim()))&&(!((!i.includes("weekends")||e.isoWeekday()!==qme[o1e]&&e.isoWeekday()!==qme[o1e]+1)&&!i.includes(e.format("dddd").toLowerCase()))||i.includes(e.format(t.trim())))},"isInvalidDate"),I1e=mt(function(e){a1e=e},"setWeekday"),N1e=mt(function(){return a1e},"getWeekday"),D1e=mt(function(e){o1e=e},"setWeekend"),O1e=mt(function(i,n,r,s){if(r.length&&!i.manualEndTime){let e;e=(e=i.startTime instanceof Date?(0,Ume.default)(i.startTime):(0,Ume.default)(i.startTime,n,!0)).add(1,"d");let t;t=i.endTime instanceof Date?(0,Ume.default)(i.endTime):(0,Ume.default)(i.endTime,n,!0);var[n,r]=P1e(e,t,n,r,s);i.endTime=n.toDate(),i.renderEndTime=r}},"checkTaskDates"),P1e=mt(function(e,t,i,n,r){let s=!1,a=null;for(;e<=t;)s||(a=t.toDate()),(s=M1e(e,i,n,r))&&(t=t.add(1,"d")),e=e.add(1,"d");return[t,a]},"fixTaskDates"),B1e=mt(function(e,t,i){i=i.trim();var n=/^after\s+(?<ids>[\d\w- ]+)/.exec(i);if(null!==n){let e=null;for(var r of n.groups.ids.split(" ")){r=K1e(r);void 0!==r&&(!e||r.endTime>e.endTime)&&(e=r)}return e?e.endTime:((n=new Date).setHours(0,0,0,0),n)}n=(0,Ume.default)(i,t.trim(),!0);if(n.isValid())return n.toDate();I.debug("Invalid date:"+i),I.debug("With date format:"+t.trim());n=new Date(i);if(void 0===n||isNaN(n.getTime())||n.getFullYear()<-1e4||1e4<n.getFullYear())throw new Error("Invalid date:"+i);return n},"getStartDate"),F1e=mt(function(e){e=/^(\d+(?:\.\d+)?)([Mdhmswy]|ms)$/.exec(e.trim());return null!==e?[Number.parseFloat(e[1]),e[2]]:[NaN,"ms"]},"parseDuration"),j1e=mt(function(e,t,i,n=!1){i=i.trim();var r=/^until\s+(?<ids>[\d\w- ]+)/.exec(i);if(null!==r){let e=null;for(var s of r.groups.ids.split(" ")){s=K1e(s);void 0!==s&&(!e||s.startTime<e.startTime)&&(e=s)}return e?e.startTime:((r=new Date).setHours(0,0,0,0),r)}let a=(0,Ume.default)(i,t.trim(),!0);if(a.isValid())return(a=n?a.add(1,"d"):a).toDate();let o=(0,Ume.default)(e),[l,c]=F1e(i);return Number.isNaN(l)||(r=o.add(l,c)).isValid()&&(o=r),o.toDate()},"getEndDate"),z1e=0,H1e=mt(function(e){return void 0===e?"task"+(z1e+=1):e},"parseId"),U1e=mt(function(e,t){let i;var n=(i=":"===t.substr(0,1)?t.substr(1,t.length):t).split(","),r={};zme(n,r,i1e);for(let e=0;e<n.length;e++)n[e]=n[e].trim();let s="";switch(n.length){case 1:r.id=H1e(),r.startTime=e.endTime,s=n[0];break;case 2:r.id=H1e(),r.startTime=B1e(void 0,Wme,n[0]),s=n[1];break;case 3:r.id=H1e(n[0]),r.startTime=B1e(void 0,Wme,n[1]),s=n[2]}return s&&(r.endTime=j1e(r.startTime,Wme,s,r1e),r.manualEndTime=(0,Ume.default)(s,"YYYY-MM-DD",!0).isValid(),O1e(r,Wme,Kme,Xme)),r},"compileData"),q1e=mt(function(e,t){let i;var n=(i=":"===t.substr(0,1)?t.substr(1,t.length):t).split(","),r={};zme(n,r,i1e);for(let e=0;e<n.length;e++)n[e]=n[e].trim();switch(n.length){case 1:r.id=H1e(),r.startTime={type:"prevTaskEnd",id:e},r.endTime={data:n[0]};break;case 2:r.id=H1e(),r.startTime={type:"getStartDate",startData:n[0]},r.endTime={data:n[1]};break;case 3:r.id=H1e(n[0]),r.startTime={type:"getStartDate",startData:n[1]},r.endTime={data:n[2]}}return r},"parseData"),G1e=[],Y1e={},X1e=mt(function(e,t){e={section:e1e,type:e1e,processed:!1,manualEndTime:!1,renderEndTime:null,raw:{data:t},task:e,classes:[]},t=q1e(V1e,t),e.raw.startTime=t.startTime,e.raw.endTime=t.endTime,e.id=t.id,e.prevTaskId=V1e,e.active=t.active,e.done=t.done,e.crit=t.crit,e.milestone=t.milestone,e.vert=t.vert,e.order=l1e,l1e++,t=G1e.push(e);Y1e[V1e=e.id]=t-1},"addTask"),K1e=mt(function(e){return G1e[Y1e[e]]},"findTaskById"),Z1e=mt(function(e,t){e={section:e1e,type:e1e,description:e,task:e,classes:[]},t=U1e(W1e,t);e.startTime=t.startTime,e.endTime=t.endTime,e.id=t.id,e.active=t.active,e.done=t.done,e.crit=t.crit,e.milestone=t.milestone,e.vert=t.vert,W1e=e,Jme.push(e)},"addTaskOrg"),Q1e=mt(function(){let e=mt(function(e){var t=G1e[e];switch(G1e[e].raw.startTime.type){case"prevTaskEnd":var i=K1e(t.prevTaskId);t.startTime=i.endTime;break;case"getStartDate":(i=B1e(void 0,Wme,G1e[e].raw.startTime.startData))&&(G1e[e].startTime=i)}return G1e[e].startTime&&(G1e[e].endTime=j1e(G1e[e].startTime,Wme,G1e[e].raw.endTime.data,r1e),G1e[e].endTime)&&(G1e[e].processed=!0,G1e[e].manualEndTime=(0,Ume.default)(G1e[e].raw.endTime.data,"YYYY-MM-DD",!0).isValid(),O1e(G1e[e],Wme,Kme,Xme)),G1e[e].processed},"compileTask"),t=!0;for(var[i,n]of G1e.entries())e(i),t=t&&n.processed;return t},"compileTasks"),J1e=mt(function(e,t){let i=t;"loose"!==N().securityLevel&&(i=(0,Hme.sanitizeUrl)(t)),e.split(",").forEach(function(e){void 0!==K1e(e)&&(iye(e,()=>{window.open(i,"_self")}),Zme.set(e,i))}),eye(e,"clickable")},"setLink"),eye=mt(function(e,t){e.split(",").forEach(function(e){e=K1e(e);void 0!==e&&e.classes.push(t)})},"setClass"),tye=mt(function(e,t,n){if("loose"===N().securityLevel&&void 0!==t){let i=[];if("string"==typeof n){i=n.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(let t=0;t<i.length;t++){let e=i[t].trim();e.startsWith('"')&&e.endsWith('"')&&(e=e.substr(1,e.length-2)),i[t]=e}}0===i.length&&i.push(e),void 0!==K1e(e)&&iye(e,()=>{tC.runFunc(t,...i)})}},"setClickFun"),iye=mt(function(t,i){n1e.push(function(){var e=document.querySelector(`[id="${t}"]`);null!==e&&e.addEventListener("click",function(){i()})},function(){var e=document.querySelector(`[id="${t}-text"]`);null!==e&&e.addEventListener("click",function(){i()})})},"pushFun"),nye=mt(function(e,t,i){e.split(",").forEach(function(e){tye(e,t,i)}),eye(e,"clickable")},"setClickEvent"),rye=mt(function(t){n1e.forEach(function(e){e(t)})},"bindFunctions"),sye={getConfig:mt(()=>N().gantt,"getConfig"),clear:c1e,setDateFormat:m1e,getDateFormat:T1e,enableInclusiveEndDates:y1e,endDatesAreInclusive:b1e,enableTopAxis:v1e,topAxisEnabled:x1e,setAxisFormat:h1e,getAxisFormat:u1e,setTickInterval:d1e,getTickInterval:p1e,setTodayMarker:g1e,getTodayMarker:f1e,setAccTitle:vh,getAccTitle:xh,setDiagramTitle:Th,getDiagramTitle:Sh,setDisplayMode:w1e,getDisplayMode:k1e,setAccDescription:wh,getAccDescription:kh,addSection:$1e,getSections:L1e,getTasks:R1e,addTask:X1e,findTaskById:K1e,addTaskOrg:Z1e,setIncludes:S1e,getIncludes:_1e,setExcludes:C1e,getExcludes:A1e,setClickEvent:nye,setLink:J1e,getLinks:E1e,bindFunctions:rye,parseDuration:F1e,isInvalidDate:M1e,setWeekday:I1e,getWeekday:N1e,setWeekend:D1e},mt(zme,"getTaskTags")}),mye=e(()=>{"use strict";aye=ie(ne(),1),t(),a6(),hh(),Cu(),uh(),oye=mt(function(){I.debug("Something is calling, setConf, remove the call")},"setConf"),lye={monday:d4,tuesday:p4,wednesday:g4,thursday:f4,friday:m4,saturday:y4,sunday:u4},cye=mt((e,t)=>{let i=[...e].map(()=>-1/0),n=[...e].sort((e,t)=>e.startTime-t.startTime||e.order-t.order),r=0;for(var s of n)for(let e=0;e<i.length;e++)if(s.startTime>=i[e]){i[e]=s.endTime,s.order=e+t,e>r&&(r=e);break}return r},"getMaxIntersections"),uye=mt(function(e,l,t,d){let p=N().gantt,i=N().securityLevel,n,r=("sandbox"===i&&(n=G("#i"+l)),G("sandbox"===i?n.nodes()[0].contentDocument.body:"body")),o="sandbox"===i?n.nodes()[0].contentDocument:document,s=o.getElementById(l),u=(void 0===(hye=s.parentElement.offsetWidth)&&(hye=1200),void 0!==p.useWidth&&(hye=p.useWidth),d.db.getTasks()),g=[];for(var a of u)g.push(a.type);g=E(g);let c={},h=2*p.topPadding;if("compact"===d.db.getDisplayMode()||"compact"===p.displayMode){var f,m,y={};for(f of u)void 0===y[f.section]?y[f.section]=[f]:y[f.section].push(f);let e=0;for(m of Object.keys(y)){var b=cye(y[m],e)+1;e+=b,h+=b*(p.barHeight+p.barGap),c[m]=b}}else{h+=u.length*(p.barHeight+p.barGap);for(let t of g)c[t]=u.filter(e=>e.type===t).length}s.setAttribute("viewBox","0 0 "+hye+" "+h);let v=r.select(`[id="${l}"]`),x=f3().domain([nd(u,function(e){return e.startTime}),td(u,function(e){return e.endTime})]).rangeRound([0,hye-p.leftPadding-p.rightPadding]);function w(e,t){let i=e.startTime,n=t.startTime,r=0;return n<i?r=1:i<n&&(r=-1),r}function k(e,t,i){var n=p.barHeight,r=n+p.barGap,s=p.topPadding,a=p.leftPadding,o=z2().domain([0,g.length]).range(["#00B9FA","#F95002"]).interpolate(Cm);S(r,s,a,0,i,e,d.db.getExcludes(),d.db.getIncludes()),_(a,s,0,i),T(e,r,s,a,n,0,t),C(r,s),A(a,0,0,i)}function T(e,i,n,r,c,t,h){e.sort((e,t)=>e.vert===t.vert?0:e.vert?1:-1);var s=[...new Set(e.map(e=>e.order))].map(t=>e.find(e=>e.order===t));v.append("g").selectAll("rect").data(s).enter().append("rect").attr("x",0).attr("y",function(e,t){return e.order*i+n-2}).attr("width",function(){return h-p.rightPadding/2}).attr("height",i).attr("class",function(e){for(var[t,i]of g.entries())if(e.type===i)return"section section"+t%p.numberSectionStyles;return"section section0"}).enter();let a=v.append("g").selectAll("rect").data(e).enter(),o=d.db.getLinks();if(a.append("rect").attr("id",function(e){return e.id}).attr("rx",3).attr("ry",3).attr("x",function(e){return e.milestone?x(e.startTime)+r+.5*(x(e.endTime)-x(e.startTime))-.5*c:x(e.startTime)+r}).attr("y",function(e,t){return t=e.order,e.vert?p.gridLineStartPadding:t*i+n}).attr("width",function(e){return e.milestone?c:e.vert?.08*c:x(e.renderEndTime||e.endTime)-x(e.startTime)}).attr("height",function(e){return e.vert?u.length*(p.barHeight+p.barGap)+2*p.barHeight:c}).attr("transform-origin",function(e,t){return t=e.order,(x(e.startTime)+r+.5*(x(e.endTime)-x(e.startTime))).toString()+"px "+(t*i+n+.5*c).toString()+"px"}).attr("class",function(e){let t="",i=(0<e.classes.length&&(t=e.classes.join(" ")),0);for(var[n,r]of g.entries())e.type===r&&(i=n%p.numberSectionStyles);let s="";return e.active?e.crit?s+=" activeCrit":s=" active":e.done?s=e.crit?" doneCrit":" done":e.crit&&(s+=" crit"),0===s.length&&(s=" task"),e.milestone&&(s=" milestone "+s),e.vert&&(s=" vert "+s),"task"+(s=(s+=i)+(" "+t))}),a.append("text").attr("id",function(e){return e.id+"-text"}).text(function(e){return e.task}).attr("font-size",p.fontSize).attr("x",function(e){let t=x(e.startTime),i=x(e.renderEndTime||e.endTime);return e.milestone&&(t+=.5*(x(e.endTime)-x(e.startTime))-.5*c,i=t+c),e.vert?x(e.startTime)+r:(e=this.getBBox().width)>i-t?i+e+1.5*p.leftPadding>h?t+r-5:i+r+5:(i-t)/2+t+r}).attr("y",function(e,t){return e.vert?p.gridLineStartPadding+u.length*(p.barHeight+p.barGap)+60:e.order*i+p.barHeight/2+(p.fontSize/2-2)+n}).attr("text-height",c).attr("class",function(e){let t=x(e.startTime),i=x(e.endTime),n=(e.milestone&&(i=t+c),this.getBBox().width),r="",s=(0<e.classes.length&&(r=e.classes.join(" ")),0);for(var[a,o]of g.entries())e.type===o&&(s=a%p.numberSectionStyles);let l="";return e.active&&(l=e.crit?"activeCritText"+s:"activeText"+s),e.done?l=e.crit?l+" doneCritText"+s:l+" doneText"+s:e.crit&&(l=l+" critText"+s),e.milestone&&(l+=" milestoneText"),e.vert&&(l+=" vertText"),n>i-t?i+n+1.5*p.leftPadding>h?r+" taskTextOutsideLeft taskTextOutside"+s+" "+l:r+" taskTextOutsideRight taskTextOutside"+s+" "+l+" width-"+n:r+" taskText taskText"+s+" "+l+" width-"+n}),"sandbox"===N().securityLevel){let s=G("#i"+l).nodes()[0].contentDocument;a.filter(function(e){return o.has(e.id)}).each(function(e){var t=s.querySelector("#"+e.id),i=s.querySelector("#"+e.id+"-text"),n=t.parentNode,r=s.createElement("a");r.setAttribute("xlink:href",o.get(e.id)),r.setAttribute("target","_top"),n.appendChild(r),r.appendChild(t),r.appendChild(i)})}}function S(a,o,l,e,c,t,h,u){if(0!==h.length||0!==u.length){let r,s;for(var{startTime:i,endTime:n}of t)(void 0===r||i<r)&&(r=i),(void 0===s||n>s)&&(s=n);if(r&&s)if(5<(0,aye.default)(s).diff((0,aye.default)(r),"year"))I.warn("The difference between the min and max time is more than 5 years. This will cause performance issues. Skipping drawing exclude days.");else{let e=d.db.getDateFormat(),t=[],i=null,n=(0,aye.default)(r);for(;n.valueOf()<=s;)d.db.isInvalidDate(n,e,h,u)?i?i.end=n:i={start:n,end:n}:i&&(t.push(i),i=null),n=n.add(1,"d");v.append("g").selectAll("rect").data(t).enter().append("rect").attr("id",function(e){return"exclude-"+e.start.format("YYYY-MM-DD")}).attr("x",function(e){return x(e.start)+l}).attr("y",p.gridLineStartPadding).attr("width",function(e){var t=e.end.add(1,"day");return x(t)-x(e.start)}).attr("height",c-o-p.gridLineStartPadding).attr("transform-origin",function(e,t){return(x(e.start)+l+.5*(x(e.end)-x(e.start))).toString()+"px "+(t*a+.5*c).toString()+"px"}).attr("class","exclude-range")}}}function _(e,t,i,n){var r=yd(x).tickSize(-n+t+p.gridLineStartPadding).tickFormat(c3(d.db.getAxisFormat()||p.axisFormat||"%Y-%m-%d")),s=/^([1-9]\d*)(millisecond|second|minute|hour|day|week|month)$/.exec(d.db.getTickInterval()||p.tickInterval);if(null!==s){var a=s[1],o=s[2],l=d.db.getWeekday()||p.weekday;switch(o){case"millisecond":r.ticks(Y2.every(a));break;case"second":r.ticks(X2.every(a));break;case"minute":r.ticks(K2.every(a));break;case"hour":r.ticks(Q2.every(a));break;case"day":r.ticks(e4.every(a));break;case"week":r.ticks(lye[l].every(a));break;case"month":r.ticks(_4.every(a))}}if(v.append("g").attr("class","grid").attr("transform","translate("+e+", "+(n-50)+")").call(r).selectAll("text").style("text-anchor","middle").attr("fill","#000").attr("stroke","none").attr("font-size",10).attr("dy","1em"),d.db.topAxisEnabled()||p.topAxis){var c=md(x).tickSize(-n+t+p.gridLineStartPadding).tickFormat(c3(d.db.getAxisFormat()||p.axisFormat||"%Y-%m-%d"));if(null!==s){var h=s[1],o=s[2],u=d.db.getWeekday()||p.weekday;switch(o){case"millisecond":c.ticks(Y2.every(h));break;case"second":c.ticks(X2.every(h));break;case"minute":c.ticks(K2.every(h));break;case"hour":c.ticks(Q2.every(h));break;case"day":c.ticks(e4.every(h));break;case"week":c.ticks(lye[u].every(h));break;case"month":c.ticks(_4.every(h))}}v.append("g").attr("class","grid").attr("transform","translate("+e+", "+t+")").call(c).selectAll("text").style("text-anchor","middle").attr("fill","#000").attr("stroke","none").attr("font-size",10)}}function C(n,r){let s=0,a=Object.keys(c).map(e=>[e,c[e]]);v.append("g").selectAll("text").data(a).enter().append(function(e){var t,i,e=e[0].split($.lineBreakRegex),n=-(e.length-1)/2,r=o.createElementNS("http://www.w3.org/2000/svg","text");r.setAttribute("dy",n+"em");for([t,i]of e.entries()){var s=o.createElementNS("http://www.w3.org/2000/svg","tspan");s.setAttribute("alignment-baseline","central"),s.setAttribute("x","10"),0<t&&s.setAttribute("dy","1em"),s.textContent=i,r.appendChild(s)}return r}).attr("x",10).attr("y",function(t,i){if(!(0<i))return t[1]*n/2+r;{let e=0;if(e<i)return s+=a[i-1][1],t[1]*n/2+s*n+r}}).attr("font-size",p.sectionFontSize).attr("class",function(e){for(var[t,i]of g.entries())if(e[0]===i)return"sectionTitle sectionTitle"+t%p.numberSectionStyles;return"sectionTitle"})}function A(e,t,i,n){var r,s,a=d.db.getTodayMarker();"off"!==a&&(s=v.append("g").attr("class","today"),r=new Date,(s=s.append("line")).attr("x1",x(r)+e).attr("x2",x(r)+e).attr("y1",p.titleTopMargin).attr("y2",n-p.titleTopMargin).attr("class","today"),""!==a)&&s.attr("style",a.replace(/,/g,";"))}function E(i){var n={},r=[];for(let e=0,t=i.length;e<t;++e)Object.prototype.hasOwnProperty.call(n,i[e])||(n[i[e]]=!0,r.push(i[e]));return r}mt(w,"taskCompare"),u.sort(w),k(u,hye,h),rh(v,h,hye,p.useMaxWidth),v.append("text").text(d.db.getDiagramTitle()).attr("x",hye/2).attr("y",p.titleTopMargin).attr("class","titleText"),mt(k,"makeGantt"),mt(T,"drawRects"),mt(S,"drawExcludeDays"),mt(_,"makeGrid"),mt(C,"vertLabels"),mt(A,"drawToday"),mt(E,"checkUnique")},"draw"),dye={setConf:oye,draw:uye}}),yye=e(()=>{"use strict";pye=mt(e=>`
|
||
.mermaid-main-font {
|
||
font-family: ${e.fontFamily};
|
||
}
|
||
|
||
.exclude-range {
|
||
fill: ${e.excludeBkgColor};
|
||
}
|
||
|
||
.section {
|
||
stroke: none;
|
||
opacity: 0.2;
|
||
}
|
||
|
||
.section0 {
|
||
fill: ${e.sectionBkgColor};
|
||
}
|
||
|
||
.section2 {
|
||
fill: ${e.sectionBkgColor2};
|
||
}
|
||
|
||
.section1,
|
||
.section3 {
|
||
fill: ${e.altSectionBkgColor};
|
||
opacity: 0.2;
|
||
}
|
||
|
||
.sectionTitle0 {
|
||
fill: ${e.titleColor};
|
||
}
|
||
|
||
.sectionTitle1 {
|
||
fill: ${e.titleColor};
|
||
}
|
||
|
||
.sectionTitle2 {
|
||
fill: ${e.titleColor};
|
||
}
|
||
|
||
.sectionTitle3 {
|
||
fill: ${e.titleColor};
|
||
}
|
||
|
||
.sectionTitle {
|
||
text-anchor: start;
|
||
font-family: ${e.fontFamily};
|
||
}
|
||
|
||
|
||
/* Grid and axis */
|
||
|
||
.grid .tick {
|
||
stroke: ${e.gridColor};
|
||
opacity: 0.8;
|
||
shape-rendering: crispEdges;
|
||
}
|
||
|
||
.grid .tick text {
|
||
font-family: ${e.fontFamily};
|
||
fill: ${e.textColor};
|
||
}
|
||
|
||
.grid path {
|
||
stroke-width: 0;
|
||
}
|
||
|
||
|
||
/* Today line */
|
||
|
||
.today {
|
||
fill: none;
|
||
stroke: ${e.todayLineColor};
|
||
stroke-width: 2px;
|
||
}
|
||
|
||
|
||
/* Task styling */
|
||
|
||
/* Default task */
|
||
|
||
.task {
|
||
stroke-width: 2;
|
||
}
|
||
|
||
.taskText {
|
||
text-anchor: middle;
|
||
font-family: ${e.fontFamily};
|
||
}
|
||
|
||
.taskTextOutsideRight {
|
||
fill: ${e.taskTextDarkColor};
|
||
text-anchor: start;
|
||
font-family: ${e.fontFamily};
|
||
}
|
||
|
||
.taskTextOutsideLeft {
|
||
fill: ${e.taskTextDarkColor};
|
||
text-anchor: end;
|
||
}
|
||
|
||
|
||
/* Special case clickable */
|
||
|
||
.task.clickable {
|
||
cursor: pointer;
|
||
}
|
||
|
||
.taskText.clickable {
|
||
cursor: pointer;
|
||
fill: ${e.taskTextClickableColor} !important;
|
||
font-weight: bold;
|
||
}
|
||
|
||
.taskTextOutsideLeft.clickable {
|
||
cursor: pointer;
|
||
fill: ${e.taskTextClickableColor} !important;
|
||
font-weight: bold;
|
||
}
|
||
|
||
.taskTextOutsideRight.clickable {
|
||
cursor: pointer;
|
||
fill: ${e.taskTextClickableColor} !important;
|
||
font-weight: bold;
|
||
}
|
||
|
||
|
||
/* Specific task settings for the sections*/
|
||
|
||
.taskText0,
|
||
.taskText1,
|
||
.taskText2,
|
||
.taskText3 {
|
||
fill: ${e.taskTextColor};
|
||
}
|
||
|
||
.task0,
|
||
.task1,
|
||
.task2,
|
||
.task3 {
|
||
fill: ${e.taskBkgColor};
|
||
stroke: ${e.taskBorderColor};
|
||
}
|
||
|
||
.taskTextOutside0,
|
||
.taskTextOutside2
|
||
{
|
||
fill: ${e.taskTextOutsideColor};
|
||
}
|
||
|
||
.taskTextOutside1,
|
||
.taskTextOutside3 {
|
||
fill: ${e.taskTextOutsideColor};
|
||
}
|
||
|
||
|
||
/* Active task */
|
||
|
||
.active0,
|
||
.active1,
|
||
.active2,
|
||
.active3 {
|
||
fill: ${e.activeTaskBkgColor};
|
||
stroke: ${e.activeTaskBorderColor};
|
||
}
|
||
|
||
.activeText0,
|
||
.activeText1,
|
||
.activeText2,
|
||
.activeText3 {
|
||
fill: ${e.taskTextDarkColor} !important;
|
||
}
|
||
|
||
|
||
/* Completed task */
|
||
|
||
.done0,
|
||
.done1,
|
||
.done2,
|
||
.done3 {
|
||
stroke: ${e.doneTaskBorderColor};
|
||
fill: ${e.doneTaskBkgColor};
|
||
stroke-width: 2;
|
||
}
|
||
|
||
.doneText0,
|
||
.doneText1,
|
||
.doneText2,
|
||
.doneText3 {
|
||
fill: ${e.taskTextDarkColor} !important;
|
||
}
|
||
|
||
|
||
/* Tasks on the critical line */
|
||
|
||
.crit0,
|
||
.crit1,
|
||
.crit2,
|
||
.crit3 {
|
||
stroke: ${e.critBorderColor};
|
||
fill: ${e.critBkgColor};
|
||
stroke-width: 2;
|
||
}
|
||
|
||
.activeCrit0,
|
||
.activeCrit1,
|
||
.activeCrit2,
|
||
.activeCrit3 {
|
||
stroke: ${e.critBorderColor};
|
||
fill: ${e.activeTaskBkgColor};
|
||
stroke-width: 2;
|
||
}
|
||
|
||
.doneCrit0,
|
||
.doneCrit1,
|
||
.doneCrit2,
|
||
.doneCrit3 {
|
||
stroke: ${e.critBorderColor};
|
||
fill: ${e.doneTaskBkgColor};
|
||
stroke-width: 2;
|
||
cursor: pointer;
|
||
shape-rendering: crispEdges;
|
||
}
|
||
|
||
.milestone {
|
||
transform: rotate(45deg) scale(0.8,0.8);
|
||
}
|
||
|
||
.milestoneText {
|
||
font-style: italic;
|
||
}
|
||
.doneCritText0,
|
||
.doneCritText1,
|
||
.doneCritText2,
|
||
.doneCritText3 {
|
||
fill: ${e.taskTextDarkColor} !important;
|
||
}
|
||
|
||
.vert {
|
||
stroke: ${e.vertLineColor};
|
||
}
|
||
|
||
.vertText {
|
||
font-size: 15px;
|
||
text-anchor: middle;
|
||
fill: ${e.vertLineColor} !important;
|
||
}
|
||
|
||
.activeCritText0,
|
||
.activeCritText1,
|
||
.activeCritText2,
|
||
.activeCritText3 {
|
||
fill: ${e.taskTextDarkColor} !important;
|
||
}
|
||
|
||
.titleText {
|
||
text-anchor: middle;
|
||
font-size: 18px;
|
||
fill: ${e.titleColor||e.textColor};
|
||
font-family: ${e.fontFamily};
|
||
}
|
||
`,"getStyles"),gye=pye}),bye={};V(bye,{diagram:()=>vye});var vye,xye,wye,kye,Tye,Sye,_ye,Cye,Aye,Eye=e(()=>{"use strict";Pme(),fye(),mye(),yye(),vye={parser:Dme,db:sye,renderer:dye,styles:gye}}),$ye=e(()=>{"use strict";hfe(),t(),xye={parse:mt(async e=>{e=await afe("info",e);I.debug(e)},"parse")}}),Lye=e(()=>{wye={name:"mermaid",version:"11.9.0",description:"Markdown-ish syntax for generating flowcharts, mindmaps, sequence diagrams, class diagrams, gantt charts, git graphs and more.",type:"module",module:"./dist/mermaid.core.mjs",types:"./dist/mermaid.d.ts",exports:{".":{types:"./dist/mermaid.d.ts",import:"./dist/mermaid.core.mjs",default:"./dist/mermaid.core.mjs"},"./*":"./*"},keywords:["diagram","markdown","flowchart","sequence diagram","gantt","class diagram","git graph","mindmap","packet diagram","c4 diagram","er diagram","pie chart","pie diagram","quadrant chart","requirement diagram","graph"],scripts:{clean:"rimraf dist",dev:"pnpm -w dev","docs:code":"typedoc src/defaultConfig.ts src/config.ts src/mermaid.ts && prettier --write ./src/docs/config/setup","docs:build":"rimraf ../../docs && pnpm docs:code && pnpm docs:spellcheck && tsx scripts/docs.cli.mts","docs:verify":"pnpm docs:code && pnpm docs:spellcheck && tsx scripts/docs.cli.mts --verify","docs:pre:vitepress":"pnpm --filter ./src/docs prefetch && rimraf src/vitepress && pnpm docs:code && tsx scripts/docs.cli.mts --vitepress && pnpm --filter ./src/vitepress install --no-frozen-lockfile --ignore-scripts","docs:build:vitepress":"pnpm docs:pre:vitepress && (cd src/vitepress && pnpm run build) && cpy --flat src/docs/landing/ ./src/vitepress/.vitepress/dist/landing","docs:dev":'pnpm docs:pre:vitepress && concurrently "pnpm --filter ./src/vitepress dev" "tsx scripts/docs.cli.mts --watch --vitepress"',"docs:dev:docker":'pnpm docs:pre:vitepress && concurrently "pnpm --filter ./src/vitepress dev:docker" "tsx scripts/docs.cli.mts --watch --vitepress"',"docs:serve":"pnpm docs:build:vitepress && vitepress serve src/vitepress","docs:spellcheck":'cspell "src/docs/**/*.md"',"docs:release-version":"tsx scripts/update-release-version.mts","docs:verify-version":"tsx scripts/update-release-version.mts --verify","types:build-config":"tsx scripts/create-types-from-json-schema.mts","types:verify-config":"tsx scripts/create-types-from-json-schema.mts --verify",checkCircle:"npx madge --circular ./src",prepublishOnly:"pnpm docs:verify-version"},repository:{type:"git",url:"https://github.com/mermaid-js/mermaid"},author:"Knut Sveidqvist",license:"MIT",standard:{ignore:["**/parser/*.js","dist/**/*.js","cypress/**/*.js"],globals:["page"]},dependencies:{"@braintree/sanitize-url":"^7.0.4","@iconify/utils":"^2.1.33","@mermaid-js/parser":"workspace:^","@types/d3":"^7.4.3",cytoscape:"^3.29.3","cytoscape-cose-bilkent":"^4.1.0","cytoscape-fcose":"^2.2.0",d3:"^7.9.0","d3-sankey":"^0.12.3","dagre-d3-es":"7.0.11",dayjs:"^1.11.13",dompurify:"^3.2.5",katex:"^0.16.22",khroma:"^2.1.0","lodash-es":"^4.17.21",marked:"^16.0.0",roughjs:"^4.6.6",stylis:"^4.3.6","ts-dedent":"^2.2.0",uuid:"^11.1.0"},devDependencies:{"@adobe/jsonschema2md":"^8.0.2","@iconify/types":"^2.0.0","@types/cytoscape":"^3.21.9","@types/cytoscape-fcose":"^2.2.4","@types/d3-sankey":"^0.12.4","@types/d3-scale":"^4.0.9","@types/d3-scale-chromatic":"^3.1.0","@types/d3-selection":"^3.0.11","@types/d3-shape":"^3.1.7","@types/jsdom":"^21.1.7","@types/katex":"^0.16.7","@types/lodash-es":"^4.17.12","@types/micromatch":"^4.0.9","@types/stylis":"^4.2.7","@types/uuid":"^10.0.0",ajv:"^8.17.1",canvas:"^3.1.0",chokidar:"3.6.0",concurrently:"^9.1.2","csstree-validator":"^4.0.1",globby:"^14.0.2",jison:"^0.4.18","js-base64":"^3.7.7",jsdom:"^26.1.0","json-schema-to-typescript":"^15.0.4",micromatch:"^4.0.8","path-browserify":"^1.0.1",prettier:"^3.5.2",remark:"^15.0.1","remark-frontmatter":"^5.0.0","remark-gfm":"^4.0.1",rimraf:"^6.0.1","start-server-and-test":"^2.0.10","type-fest":"^4.35.0",typedoc:"^0.27.8","typedoc-plugin-markdown":"^4.4.2",typescript:"~5.7.3","unist-util-flatmap":"^1.0.0","unist-util-visit":"^5.0.0",vitepress:"^1.0.2","vitepress-plugin-search":"1.0.4-alpha.22"},files:["dist/","README.md"],publishConfig:{access:"public"}}}),Rye=e(()=>{"use strict";Lye(),kye={version:wye.version+""},Tye=mt(()=>kye.version,"getVersion"),Sye={getVersion:Tye}}),Mye=e(()=>{"use strict";a6(),Cu(),_ye=mt(e=>{let t=N()["securityLevel"],i=G("body");var n;return"sandbox"===t&&(n=G("#i"+e).node()?.contentDocument??document,i=G(n.body)),i.select("#"+e)},"selectSvgElement")}),Iye=e(()=>{"use strict";t(),Mye(),uh(),Cye=mt((e,t,i)=>{I.debug(`rendering info diagram
|
||
`+e);e=_ye(t);rh(e,100,400,!0),e.append("g").append("text").attr("x",100).attr("y",40).attr("class","version").attr("font-size",32).style("text-anchor","middle").text("v"+i)},"draw"),Aye={draw:Cye}}),Nye={};V(Nye,{diagram:()=>Dye});var Dye,Oye,Pye,Bye,Fye,jye,zye,Hye,Uye,qye,Wye,Vye,Gye,Yye,Xye,Kye,Zye,Qye,Jye,ebe=e(()=>{"use strict";$ye(),Rye(),Iye(),Dye={parser:xye,db:Sye,renderer:Aye}}),tbe=e(()=>{"use strict";t(),_u(),Ln(),jye=vi.pie,Oye={sections:new Map,showData:!1,config:jye},Pye=Oye.sections,Bye=Oye.showData,Fye=structuredClone(jye),jye=mt(()=>structuredClone(Fye),"getConfig"),zye=mt(()=>{Pye=new Map,Bye=Oye.showData,bh()},"clear"),Hye=mt(({label:e,value:t})=>{Pye.has(e)||(Pye.set(e,t),I.debug(`added new section: ${e}, with value: `+t))},"addSection"),Uye=mt(()=>Pye,"getSections"),qye=mt(e=>{Bye=e},"setShowData"),Wye=mt(()=>Bye,"getShowData"),Vye={getConfig:jye,clear:zye,setDiagramTitle:Th,getDiagramTitle:Sh,setAccTitle:vh,getAccTitle:xh,setAccDescription:wh,getAccDescription:kh,addSection:Hye,getSections:Uye,setShowData:qye,getShowData:Wye}}),ibe=e(()=>{"use strict";hfe(),t(),gfe(),tbe(),Gye=mt((e,t)=>{ufe(e,t),t.setShowData(e.showData),e.sections.map(t.addSection)},"populateDb"),Yye={parse:mt(async e=>{e=await afe("pie",e);I.debug(e),Gye(e,Vye)},"parse")}}),nbe=e(()=>{"use strict";Xye=mt(e=>`
|
||
.pieCircle{
|
||
stroke: ${e.pieStrokeColor};
|
||
stroke-width : ${e.pieStrokeWidth};
|
||
opacity : ${e.pieOpacity};
|
||
}
|
||
.pieOuterCircle{
|
||
stroke: ${e.pieOuterStrokeColor};
|
||
stroke-width: ${e.pieOuterStrokeWidth};
|
||
fill: none;
|
||
}
|
||
.pieTitleText {
|
||
text-anchor: middle;
|
||
font-size: ${e.pieTitleTextSize};
|
||
fill: ${e.pieTitleTextColor};
|
||
font-family: ${e.fontFamily};
|
||
}
|
||
.slice {
|
||
font-family: ${e.fontFamily};
|
||
fill: ${e.pieSectionTextColor};
|
||
font-size:${e.pieSectionTextSize};
|
||
// fill: white;
|
||
}
|
||
.legend text {
|
||
fill: ${e.pieLegendTextColor};
|
||
font-family: ${e.fontFamily};
|
||
font-size: ${e.pieLegendTextSize};
|
||
}
|
||
`,"getStyles"),Kye=Xye}),rbe=e(()=>{"use strict";a6(),Cu(),t(),Mye(),uh(),sC(),Zye=mt(e=>{e=[...e.entries()].map(e=>({label:e[0],value:e[1]})).sort((e,t)=>t.value-e.value);return h5().value(e=>e.value)(e)},"createPieArcs"),Qye=mt((e,t,i,n)=>{I.debug(`rendering pie chart
|
||
`+e);let r=n.db,s=N(),a=E_(r.getConfig(),s.pie),o=_ye(t),l=o.append("g");l.attr("transform","translate(225,225)");var e=s["themeVariables"],[n]=eC(e.pieOuterStrokeWidth);n??=2;let c=a.textPosition,h=Math.min(450,450)/2-40,u=Y3().innerRadius(0).outerRadius(h),d=Y3().innerRadius(h*c).outerRadius(h*c),p=(l.append("circle").attr("cx",0).attr("cy",0).attr("r",h+n/2).attr("class","pieOuterCircle"),r.getSections()),g=Zye(p),f=[e.pie1,e.pie2,e.pie3,e.pie4,e.pie5,e.pie6,e.pie7,e.pie8,e.pie9,e.pie10,e.pie11,e.pie12],m=v2(f),y=(l.selectAll("mySlices").data(g).enter().append("path").attr("d",u).attr("fill",e=>m(e.data.label)).attr("class","pieCircle"),0);p.forEach(e=>{y+=e}),l.selectAll("mySlices").data(g).enter().append("text").text(e=>(e.data.value/y*100).toFixed(0)+"%").attr("transform",e=>"translate("+d.centroid(e)+")").style("text-anchor","middle").attr("class","slice"),l.append("text").text(r.getDiagramTitle()).attr("x",0).attr("y",-200).attr("class","pieTitleText");t=l.selectAll(".legend").data(m.domain()).enter().append("g").attr("class","legend").attr("transform",(e,t)=>{return"translate(216,"+(22*t-22*m.domain().length/2)+")"}),t.append("rect").attr("width",18).attr("height",18).style("fill",m).style("stroke",m),t.data(g).append("text").attr("x",22).attr("y",14).text(e=>{var{label:e,value:t}=e.data;return r.getShowData()?e+` [${t}]`:e}),n=Math.max(...t.selectAll("text").nodes().map(e=>e?.getBoundingClientRect().width??0)),e=512+n;o.attr("viewBox",`0 0 ${e} 450`),rh(o,450,e,a.useMaxWidth)},"draw"),Jye={draw:Qye}}),sbe={};V(sbe,{diagram:()=>abe});var abe,obe,lbe,cbe,hbe,ube=e(()=>{"use strict";ibe(),tbe(),nbe(),rbe(),abe={parser:Yye,db:Vye,renderer:Jye,styles:Kye}}),dbe=e(()=>{"use strict";function O(){this.yy={}}var e,t,i,n,r,s,a,P,o,B,l,c,h,u,d,p,F,j,z,H,U,q,W,V,G,Y,X,K,Z,g,f,m,y,b,v,x,w,k,T,Q,J,ee,te,ie,ne,re,se,ae,oe,le,ce,S,_,C,A,E,$,L,R,M,I,N,he,ue,D;e=mt(function(e,t,i,n){for(i=i||{},n=e.length;n--;i[e[n]]=t);return i},"o"),t=[1,3],i=[1,4],n=[1,5],r=[1,6],s=[1,7],a=[1,4,5,10,12,13,14,18,25,35,37,39,41,42,48,50,51,52,53,54,55,56,57,60,61,63,64,65,66,67],P=[1,4,5,10,12,13,14,18,25,28,35,37,39,41,42,48,50,51,52,53,54,55,56,57,60,61,63,64,65,66,67],o=[55,56,57],B=[2,36],l=[1,37],c=[1,36],h=[1,38],u=[1,35],d=[1,43],p=[1,41],F=[1,14],j=[1,23],z=[1,18],H=[1,19],U=[1,20],q=[1,21],W=[1,22],V=[1,24],G=[1,25],Y=[1,26],X=[1,27],K=[1,28],Z=[1,29],g=[1,32],f=[1,33],m=[1,34],y=[1,39],b=[1,40],v=[1,42],x=[1,44],w=[1,62],k=[1,61],T=[4,5,8,10,12,13,14,18,44,47,49,55,56,57,63,64,65,66,67],Q=[1,65],J=[1,66],ee=[1,67],te=[1,68],ie=[1,69],ne=[1,70],re=[1,71],se=[1,72],ae=[1,73],oe=[1,74],le=[1,75],ce=[1,76],S=[4,5,6,7,8,9,10,11,12,13,14,15,18],_=[1,90],C=[1,91],A=[1,92],E=[1,99],$=[1,93],L=[1,96],R=[1,94],M=[1,95],I=[1,97],N=[1,98],he=[1,102],ue=[10,55,56,57],D=[4,5,6,8,10,11,13,17,18,19,20,55,56,57],t={trace:mt(function(){},"trace"),yy:{},symbols_:{error:2,idStringToken:3,ALPHA:4,NUM:5,NODE_STRING:6,DOWN:7,MINUS:8,DEFAULT:9,COMMA:10,COLON:11,AMP:12,BRKT:13,MULT:14,UNICODE_TEXT:15,styleComponent:16,UNIT:17,SPACE:18,STYLE:19,PCT:20,idString:21,style:22,stylesOpt:23,classDefStatement:24,CLASSDEF:25,start:26,eol:27,QUADRANT:28,document:29,line:30,statement:31,axisDetails:32,quadrantDetails:33,points:34,title:35,title_value:36,acc_title:37,acc_title_value:38,acc_descr:39,acc_descr_value:40,acc_descr_multiline_value:41,section:42,text:43,point_start:44,point_x:45,point_y:46,class_name:47,"X-AXIS":48,"AXIS-TEXT-DELIMITER":49,"Y-AXIS":50,QUADRANT_1:51,QUADRANT_2:52,QUADRANT_3:53,QUADRANT_4:54,NEWLINE:55,SEMI:56,EOF:57,alphaNumToken:58,textNoTagsToken:59,STR:60,MD_STR:61,alphaNum:62,PUNCTUATION:63,PLUS:64,EQUALS:65,DOT:66,UNDERSCORE:67,$accept:0,$end:1},terminals_:{2:"error",4:"ALPHA",5:"NUM",6:"NODE_STRING",7:"DOWN",8:"MINUS",9:"DEFAULT",10:"COMMA",11:"COLON",12:"AMP",13:"BRKT",14:"MULT",15:"UNICODE_TEXT",17:"UNIT",18:"SPACE",19:"STYLE",20:"PCT",25:"CLASSDEF",28:"QUADRANT",35:"title",36:"title_value",37:"acc_title",38:"acc_title_value",39:"acc_descr",40:"acc_descr_value",41:"acc_descr_multiline_value",42:"section",44:"point_start",45:"point_x",46:"point_y",47:"class_name",48:"X-AXIS",49:"AXIS-TEXT-DELIMITER",50:"Y-AXIS",51:"QUADRANT_1",52:"QUADRANT_2",53:"QUADRANT_3",54:"QUADRANT_4",55:"NEWLINE",56:"SEMI",57:"EOF",60:"STR",61:"MD_STR",63:"PUNCTUATION",64:"PLUS",65:"EQUALS",66:"DOT",67:"UNDERSCORE"},productions_:[0,[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[21,1],[21,2],[22,1],[22,2],[23,1],[23,3],[24,5],[26,2],[26,2],[26,2],[29,0],[29,2],[30,2],[31,0],[31,1],[31,2],[31,1],[31,1],[31,1],[31,2],[31,2],[31,2],[31,1],[31,1],[34,4],[34,5],[34,5],[34,6],[32,4],[32,3],[32,2],[32,4],[32,3],[32,2],[33,2],[33,2],[33,2],[33,2],[27,1],[27,1],[27,1],[43,1],[43,2],[43,1],[43,1],[62,1],[62,2],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[59,1],[59,1],[59,1]],performAction:mt(function(e,t,i,n,r,s,a){var o=s.length-1;switch(r){case 23:this.$=s[o];break;case 24:this.$=s[o-1]+""+s[o];break;case 26:this.$=s[o-1]+s[o];break;case 27:this.$=[s[o].trim()];break;case 28:s[o-2].push(s[o].trim()),this.$=s[o-2];break;case 29:this.$=s[o-4],n.addClass(s[o-2],s[o]);break;case 37:this.$=[];break;case 42:this.$=s[o].trim(),n.setDiagramTitle(this.$);break;case 43:this.$=s[o].trim(),n.setAccTitle(this.$);break;case 44:case 45:this.$=s[o].trim(),n.setAccDescription(this.$);break;case 46:n.addSection(s[o].substr(8)),this.$=s[o].substr(8);break;case 47:n.addPoint(s[o-3],"",s[o-1],s[o],[]);break;case 48:n.addPoint(s[o-4],s[o-3],s[o-1],s[o],[]);break;case 49:n.addPoint(s[o-4],"",s[o-2],s[o-1],s[o]);break;case 50:n.addPoint(s[o-5],s[o-4],s[o-2],s[o-1],s[o]);break;case 51:n.setXAxisLeftText(s[o-2]),n.setXAxisRightText(s[o]);break;case 52:s[o-1].text+=" ⟶ ",n.setXAxisLeftText(s[o-1]);break;case 53:n.setXAxisLeftText(s[o]);break;case 54:n.setYAxisBottomText(s[o-2]),n.setYAxisTopText(s[o]);break;case 55:s[o-1].text+=" ⟶ ",n.setYAxisBottomText(s[o-1]);break;case 56:n.setYAxisBottomText(s[o]);break;case 57:n.setQuadrant1Text(s[o]);break;case 58:n.setQuadrant2Text(s[o]);break;case 59:n.setQuadrant3Text(s[o]);break;case 60:n.setQuadrant4Text(s[o]);break;case 64:this.$={text:s[o],type:"text"};break;case 65:this.$={text:s[o-1].text+""+s[o],type:s[o-1].type};break;case 66:this.$={text:s[o],type:"text"};break;case 67:this.$={text:s[o],type:"markdown"};break;case 68:this.$=s[o];break;case 69:this.$=s[o-1]+""+s[o]}},"anonymous"),table:[{18:t,26:1,27:2,28:i,55:n,56:r,57:s},{1:[3]},{18:t,26:8,27:2,28:i,55:n,56:r,57:s},{18:t,26:9,27:2,28:i,55:n,56:r,57:s},e(a,[2,33],{29:10}),e(P,[2,61]),e(P,[2,62]),e(P,[2,63]),{1:[2,30]},{1:[2,31]},e(o,B,{30:11,31:12,24:13,32:15,33:16,34:17,43:30,58:31,1:[2,32],4:l,5:c,10:h,12:u,13:d,14:p,18:F,25:j,35:z,37:H,39:U,41:q,42:W,48:V,50:G,51:Y,52:X,53:K,54:Z,60:g,61:f,63:m,64:y,65:b,66:v,67:x}),e(a,[2,34]),{27:45,55:n,56:r,57:s},e(o,[2,37]),e(o,B,{24:13,32:15,33:16,34:17,43:30,58:31,31:46,4:l,5:c,10:h,12:u,13:d,14:p,18:F,25:j,35:z,37:H,39:U,41:q,42:W,48:V,50:G,51:Y,52:X,53:K,54:Z,60:g,61:f,63:m,64:y,65:b,66:v,67:x}),e(o,[2,39]),e(o,[2,40]),e(o,[2,41]),{36:[1,47]},{38:[1,48]},{40:[1,49]},e(o,[2,45]),e(o,[2,46]),{18:[1,50]},{4:l,5:c,10:h,12:u,13:d,14:p,43:51,58:31,60:g,61:f,63:m,64:y,65:b,66:v,67:x},{4:l,5:c,10:h,12:u,13:d,14:p,43:52,58:31,60:g,61:f,63:m,64:y,65:b,66:v,67:x},{4:l,5:c,10:h,12:u,13:d,14:p,43:53,58:31,60:g,61:f,63:m,64:y,65:b,66:v,67:x},{4:l,5:c,10:h,12:u,13:d,14:p,43:54,58:31,60:g,61:f,63:m,64:y,65:b,66:v,67:x},{4:l,5:c,10:h,12:u,13:d,14:p,43:55,58:31,60:g,61:f,63:m,64:y,65:b,66:v,67:x},{4:l,5:c,10:h,12:u,13:d,14:p,43:56,58:31,60:g,61:f,63:m,64:y,65:b,66:v,67:x},{4:l,5:c,8:w,10:h,12:u,13:d,14:p,18:k,44:[1,57],47:[1,58],58:60,59:59,63:m,64:y,65:b,66:v,67:x},e(T,[2,64]),e(T,[2,66]),e(T,[2,67]),e(T,[2,70]),e(T,[2,71]),e(T,[2,72]),e(T,[2,73]),e(T,[2,74]),e(T,[2,75]),e(T,[2,76]),e(T,[2,77]),e(T,[2,78]),e(T,[2,79]),e(T,[2,80]),e(a,[2,35]),e(o,[2,38]),e(o,[2,42]),e(o,[2,43]),e(o,[2,44]),{3:64,4:Q,5:J,6:ee,7:te,8:ie,9:ne,10:re,11:se,12:ae,13:oe,14:le,15:ce,21:63},e(o,[2,53],{59:59,58:60,4:l,5:c,8:w,10:h,12:u,13:d,14:p,18:k,49:[1,77],63:m,64:y,65:b,66:v,67:x}),e(o,[2,56],{59:59,58:60,4:l,5:c,8:w,10:h,12:u,13:d,14:p,18:k,49:[1,78],63:m,64:y,65:b,66:v,67:x}),e(o,[2,57],{59:59,58:60,4:l,5:c,8:w,10:h,12:u,13:d,14:p,18:k,63:m,64:y,65:b,66:v,67:x}),e(o,[2,58],{59:59,58:60,4:l,5:c,8:w,10:h,12:u,13:d,14:p,18:k,63:m,64:y,65:b,66:v,67:x}),e(o,[2,59],{59:59,58:60,4:l,5:c,8:w,10:h,12:u,13:d,14:p,18:k,63:m,64:y,65:b,66:v,67:x}),e(o,[2,60],{59:59,58:60,4:l,5:c,8:w,10:h,12:u,13:d,14:p,18:k,63:m,64:y,65:b,66:v,67:x}),{45:[1,79]},{44:[1,80]},e(T,[2,65]),e(T,[2,81]),e(T,[2,82]),e(T,[2,83]),{3:82,4:Q,5:J,6:ee,7:te,8:ie,9:ne,10:re,11:se,12:ae,13:oe,14:le,15:ce,18:[1,81]},e(S,[2,23]),e(S,[2,1]),e(S,[2,2]),e(S,[2,3]),e(S,[2,4]),e(S,[2,5]),e(S,[2,6]),e(S,[2,7]),e(S,[2,8]),e(S,[2,9]),e(S,[2,10]),e(S,[2,11]),e(S,[2,12]),e(o,[2,52],{58:31,43:83,4:l,5:c,10:h,12:u,13:d,14:p,60:g,61:f,63:m,64:y,65:b,66:v,67:x}),e(o,[2,55],{58:31,43:84,4:l,5:c,10:h,12:u,13:d,14:p,60:g,61:f,63:m,64:y,65:b,66:v,67:x}),{46:[1,85]},{45:[1,86]},{4:_,5:C,6:A,8:E,11:$,13:L,16:89,17:R,18:M,19:I,20:N,22:88,23:87},e(S,[2,24]),e(o,[2,51],{59:59,58:60,4:l,5:c,8:w,10:h,12:u,13:d,14:p,18:k,63:m,64:y,65:b,66:v,67:x}),e(o,[2,54],{59:59,58:60,4:l,5:c,8:w,10:h,12:u,13:d,14:p,18:k,63:m,64:y,65:b,66:v,67:x}),e(o,[2,47],{22:88,16:89,23:100,4:_,5:C,6:A,8:E,11:$,13:L,17:R,18:M,19:I,20:N}),{46:[1,101]},e(o,[2,29],{10:he}),e(ue,[2,27],{16:103,4:_,5:C,6:A,8:E,11:$,13:L,17:R,18:M,19:I,20:N}),e(D,[2,25]),e(D,[2,13]),e(D,[2,14]),e(D,[2,15]),e(D,[2,16]),e(D,[2,17]),e(D,[2,18]),e(D,[2,19]),e(D,[2,20]),e(D,[2,21]),e(D,[2,22]),e(o,[2,49],{10:he}),e(o,[2,48],{22:88,16:89,23:104,4:_,5:C,6:A,8:E,11:$,13:L,17:R,18:M,19:I,20:N}),{4:_,5:C,6:A,8:E,11:$,13:L,16:89,17:R,18:M,19:I,20:N,22:105},e(D,[2,26]),e(o,[2,50],{10:he}),e(ue,[2,28],{16:103,4:_,5:C,6:A,8:E,11:$,13:L,17:R,18:M,19:I,20:N})],defaultActions:{8:[2,30],9:[2,31]},parseError:mt(function(e,t){var i;if(!t.recoverable)throw(i=new Error(e)).hash=t,i;this.trace(e)},"parseError"),parse:mt(function(e){var t,i=this,n=[0],r=[],s=[null],a=[],o=this.table,l="",c=0,h=0,u=0,d=1,p=a.slice.call(arguments,1),g=Object.create(this.lexer),f={yy:{}};for(t in this.yy)Object.prototype.hasOwnProperty.call(this.yy,t)&&(f.yy[t]=this.yy[t]);g.setInput(e,f.yy),f.yy.lexer=g,f.yy.parser=this,"u"<typeof g.yylloc&&(g.yylloc={});var m=g.yylloc,y=(a.push(m),g.options&&g.options.ranges);function b(){var e=r.pop()||g.lex()||d;return"number"!=typeof e&&(e instanceof Array&&(e=(r=e).pop()),e=i.symbols_[e]||e),e}"function"==typeof f.yy.parseError?this.parseError=f.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError,mt(function(e){n.length=n.length-2*e,s.length=s.length-e,a.length=a.length-e},"popStack"),mt(b,"lex");for(var v,x,w,k,T,S,_,C={};;){if(w=n[n.length-1],"u"<typeof(k=this.defaultActions[w]||((null===v||"u"<typeof v)&&(v=b()),o[w]&&o[w][v]))||!k.length||!k[0]){var A="",E=[];for(T in o[w])this.terminals_[T]&&2<T&&E.push("'"+this.terminals_[T]+"'");A=g.showPosition?"Parse error on line "+(c+1)+`:
|
||
`+g.showPosition()+`
|
||
Expecting `+E.join(", ")+", got '"+(this.terminals_[v]||v)+"'":"Parse error on line "+(c+1)+": Unexpected "+(v==d?"end of input":"'"+(this.terminals_[v]||v)+"'"),this.parseError(A,{text:g.match,token:this.terminals_[v]||v,line:g.yylineno,loc:m,expected:E})}if(k[0]instanceof Array&&1<k.length)throw new Error("Parse Error: multiple actions possible at state: "+w+", token: "+v);switch(k[0]){case 1:n.push(v),s.push(g.yytext),a.push(g.yylloc),n.push(k[1]),v=null,x?(v=x,x=null):(h=g.yyleng,l=g.yytext,c=g.yylineno,m=g.yylloc,0<u&&u--);break;case 2:if(S=this.productions_[k[1]][1],C.$=s[s.length-S],C._$={first_line:a[a.length-(S||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(S||1)].first_column,last_column:a[a.length-1].last_column},y&&(C._$.range=[a[a.length-(S||1)].range[0],a[a.length-1].range[1]]),typeof(_=this.performAction.apply(C,[l,h,c,f.yy,k[1],s,a].concat(p)))<"u")return _;S&&(n=n.slice(0,-1*S*2),s=s.slice(0,-1*S),a=a.slice(0,-1*S)),n.push(this.productions_[k[1]][0]),s.push(C.$),a.push(C._$),_=o[n[n.length-2]][n[n.length-1]],n.push(_);break;case 3:return!0}}return!0},"parse")},i={EOF:1,parseError:mt(function(e,t){if(!this.yy.parser)throw new Error(e);this.yy.parser.parseError(e,t)},"parseError"),setInput:mt(function(e,t){return this.yy=t||this.yy||{},this._input=e,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:mt(function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.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),e},"input"),unput:mt(function(e){var t=e.length,i=e.split(/(?:\r\n?|\n)/g),e=(this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t,this.match.split(/(?:\r\n?|\n)/g)),n=(this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),i.length-1&&(this.yylineno-=i.length-1),this.yylloc.range);return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:i?(i.length===e.length?this.yylloc.first_column:0)+e[e.length-i.length].length-i[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[n[0],n[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},"unput"),more:mt(function(){return this._more=!0,this},"more"),reject:mt(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).
|
||
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"reject"),less:mt(function(e){this.unput(this.match.slice(e))},"less"),pastInput:mt(function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(20<e.length?"...":"")+e.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:mt(function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(20<e.length?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:mt(function(){var e=this.pastInput(),t=new Array(e.length+1).join("-");return e+this.upcomingInput()+`
|
||
`+t+"^"},"showPosition"),test_match:mt(function(e,t){var i,n;if(this.options.backtrack_lexer&&(n={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)&&(n.yylloc.range=this.yylloc.range.slice(0)),(i=e[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=i.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:i?i[i.length-1].length-i[i.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+e[0].length},this.yytext+=e[0],this.match+=e[0],this.matches=e,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(e[0].length),this.matched+=e[0],i=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),i)return i;if(this._backtrack)for(var r in n)this[r]=n[r];return!1},"test_match"),next:mt(function(){if(this.done)return this.EOF;var e,t,i,n;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var r=this._currentRules(),s=0;s<r.length;s++)if((i=this._input.match(this.rules[r[s]]))&&(!t||i[0].length>t[0].length)){if(t=i,n=s,this.options.backtrack_lexer){if(!1!==(e=this.test_match(i,r[s])))return e;if(this._backtrack){t=!1;continue}return!1}if(!this.options.flex)break}return t?!1!==(e=this.test_match(t,r[n]))&&e:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
|
||
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:mt(function(){return this.next()||this.lex()},"lex"),begin:mt(function(e){this.conditionStack.push(e)},"begin"),popState:mt(function(){return 0<this.conditionStack.length-1?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:mt(function(){return(this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]]:this.conditions.INITIAL).rules},"_currentRules"),topState:mt(function(e){return 0<=(e=this.conditionStack.length-1-Math.abs(e||0))?this.conditionStack[e]:"INITIAL"},"topState"),pushState:mt(function(e){this.begin(e)},"pushState"),stateStackSize:mt(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:mt(function(e,t,i,n){switch(i){case 0:case 1:break;case 2:return 55;case 3:break;case 4:return this.begin("title"),35;case 5:return this.popState(),"title_value";case 6:return this.begin("acc_title"),37;case 7:return this.popState(),"acc_title_value";case 8:return this.begin("acc_descr"),39;case 9:return this.popState(),"acc_descr_value";case 10:this.begin("acc_descr_multiline");break;case 11:this.popState();break;case 12:return"acc_descr_multiline_value";case 13:return 48;case 14:return 50;case 15:return 49;case 16:return 51;case 17:return 52;case 18:return 53;case 19:return 54;case 20:return 25;case 21:this.begin("md_string");break;case 22:return"MD_STR";case 23:this.popState();break;case 24:this.begin("string");break;case 25:this.popState();break;case 26:return"STR";case 27:this.begin("class_name");break;case 28:return this.popState(),47;case 29:return this.begin("point_start"),44;case 30:return this.begin("point_x"),45;case 31:this.popState();break;case 32:this.popState(),this.begin("point_y");break;case 33:return this.popState(),46;case 34:return 28;case 35:return 4;case 36:return 11;case 37:return 64;case 38:return 10;case 39:case 40:return 65;case 41:return 14;case 42:return 13;case 43:return 67;case 44:return 66;case 45:return 12;case 46:return 8;case 47:return 5;case 48:return 18;case 49:return 56;case 50:return 63;case 51:return 57}},"anonymous"),rules:[/^(?:%%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n\r]+)/i,/^(?:%%[^\n]*)/i,/^(?:title\b)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?: *x-axis *)/i,/^(?: *y-axis *)/i,/^(?: *--+> *)/i,/^(?: *quadrant-1 *)/i,/^(?: *quadrant-2 *)/i,/^(?: *quadrant-3 *)/i,/^(?: *quadrant-4 *)/i,/^(?:classDef\b)/i,/^(?:["][`])/i,/^(?:[^`"]+)/i,/^(?:[`]["])/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?::::)/i,/^(?:^\w+)/i,/^(?:\s*:\s*\[\s*)/i,/^(?:(1)|(0(.\d+)?))/i,/^(?:\s*\] *)/i,/^(?:\s*,\s*)/i,/^(?:(1)|(0(.\d+)?))/i,/^(?: *quadrantChart *)/i,/^(?:[A-Za-z]+)/i,/^(?::)/i,/^(?:\+)/i,/^(?:,)/i,/^(?:=)/i,/^(?:=)/i,/^(?:\*)/i,/^(?:#)/i,/^(?:[\_])/i,/^(?:\.)/i,/^(?:&)/i,/^(?:-)/i,/^(?:[0-9]+)/i,/^(?:\s)/i,/^(?:;)/i,/^(?:[!"#$%&'*+,-.`?\\_/])/i,/^(?:$)/i],conditions:{class_name:{rules:[28],inclusive:!1},point_y:{rules:[33],inclusive:!1},point_x:{rules:[32],inclusive:!1},point_start:{rules:[30,31],inclusive:!1},acc_descr_multiline:{rules:[11,12],inclusive:!1},acc_descr:{rules:[9],inclusive:!1},acc_title:{rules:[7],inclusive:!1},title:{rules:[5],inclusive:!1},md_string:{rules:[22,23],inclusive:!1},string:{rules:[25,26],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,6,8,10,13,14,15,16,17,18,19,20,21,24,27,29,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51],inclusive:!0}}},t.lexer=i,mt(O,"Parser"),(obe=new((O.prototype=t).Parser=O)).parser=obe,lbe=obe}),pbe=e(()=>{"use strict";a6(),Ln(),t(),_n(),cbe=ci(),hbe=class{constructor(){this.classes=new Map,this.config=this.getDefaultConfig(),this.themeConfig=this.getDefaultThemeConfig(),this.data=this.getDefaultData()}static{mt(this,"QuadrantBuilder")}getDefaultData(){return{titleText:"",quadrant1Text:"",quadrant2Text:"",quadrant3Text:"",quadrant4Text:"",xAxisLeftText:"",xAxisRightText:"",yAxisBottomText:"",yAxisTopText:"",points:[]}}getDefaultConfig(){return{showXAxis:!0,showYAxis:!0,showTitle:!0,chartHeight:vi.quadrantChart?.chartWidth||500,chartWidth:vi.quadrantChart?.chartHeight||500,titlePadding:vi.quadrantChart?.titlePadding||10,titleFontSize:vi.quadrantChart?.titleFontSize||20,quadrantPadding:vi.quadrantChart?.quadrantPadding||5,xAxisLabelPadding:vi.quadrantChart?.xAxisLabelPadding||5,yAxisLabelPadding:vi.quadrantChart?.yAxisLabelPadding||5,xAxisLabelFontSize:vi.quadrantChart?.xAxisLabelFontSize||16,yAxisLabelFontSize:vi.quadrantChart?.yAxisLabelFontSize||16,quadrantLabelFontSize:vi.quadrantChart?.quadrantLabelFontSize||16,quadrantTextTopPadding:vi.quadrantChart?.quadrantTextTopPadding||5,pointTextPadding:vi.quadrantChart?.pointTextPadding||5,pointLabelFontSize:vi.quadrantChart?.pointLabelFontSize||12,pointRadius:vi.quadrantChart?.pointRadius||5,xAxisPosition:vi.quadrantChart?.xAxisPosition||"top",yAxisPosition:vi.quadrantChart?.yAxisPosition||"left",quadrantInternalBorderStrokeWidth:vi.quadrantChart?.quadrantInternalBorderStrokeWidth||1,quadrantExternalBorderStrokeWidth:vi.quadrantChart?.quadrantExternalBorderStrokeWidth||2}}getDefaultThemeConfig(){return{quadrant1Fill:cbe.quadrant1Fill,quadrant2Fill:cbe.quadrant2Fill,quadrant3Fill:cbe.quadrant3Fill,quadrant4Fill:cbe.quadrant4Fill,quadrant1TextFill:cbe.quadrant1TextFill,quadrant2TextFill:cbe.quadrant2TextFill,quadrant3TextFill:cbe.quadrant3TextFill,quadrant4TextFill:cbe.quadrant4TextFill,quadrantPointFill:cbe.quadrantPointFill,quadrantPointTextFill:cbe.quadrantPointTextFill,quadrantXAxisTextFill:cbe.quadrantXAxisTextFill,quadrantYAxisTextFill:cbe.quadrantYAxisTextFill,quadrantTitleFill:cbe.quadrantTitleFill,quadrantInternalBorderStrokeFill:cbe.quadrantInternalBorderStrokeFill,quadrantExternalBorderStrokeFill:cbe.quadrantExternalBorderStrokeFill}}clear(){this.config=this.getDefaultConfig(),this.themeConfig=this.getDefaultThemeConfig(),this.data=this.getDefaultData(),this.classes=new Map,I.info("clear called")}setData(e){this.data={...this.data,...e}}addPoints(e){this.data.points=[...e,...this.data.points]}addClass(e,t){this.classes.set(e,t)}setConfig(e){I.trace("setConfig called with: ",e),this.config={...this.config,...e}}setThemeConfig(e){I.trace("setThemeConfig called with: ",e),this.themeConfig={...this.themeConfig,...e}}calculateSpace(e,t,i,n){var r=2*this.config.xAxisLabelPadding+this.config.xAxisLabelFontSize,e={top:"top"===e&&t?r:0,bottom:"bottom"===e&&t?r:0},t=2*this.config.yAxisLabelPadding+this.config.yAxisLabelFontSize,r={left:"left"===this.config.yAxisPosition&&i?t:0,right:"right"===this.config.yAxisPosition&&i?t:0},i=this.config.titleFontSize+2*this.config.titlePadding,t={top:n?i:0},n=this.config.quadrantPadding+r.left,i=this.config.quadrantPadding+e.top+t.top,s=this.config.chartWidth-2*this.config.quadrantPadding-r.left-r.right,a=this.config.chartHeight-2*this.config.quadrantPadding-e.top-e.bottom-t.top;return{xAxisSpace:e,yAxisSpace:r,titleSpace:t,quadrantSpace:{quadrantLeft:n,quadrantTop:i,quadrantWidth:s,quadrantHalfWidth:s/2,quadrantHeight:a,quadrantHalfHeight:a/2}}}getAxisLabels(e,t,i,n){var{quadrantSpace:n,titleSpace:r}=n,{quadrantHalfHeight:n,quadrantHeight:s,quadrantLeft:a,quadrantHalfWidth:o,quadrantTop:l,quadrantWidth:c}=n,h=!!this.data.xAxisRightText,u=!!this.data.yAxisTopText,d=[];return this.data.xAxisLeftText&&t&&d.push({text:this.data.xAxisLeftText,fill:this.themeConfig.quadrantXAxisTextFill,x:a+(h?o/2:0),y:"top"===e?this.config.xAxisLabelPadding+r.top:this.config.xAxisLabelPadding+l+s+this.config.quadrantPadding,fontSize:this.config.xAxisLabelFontSize,verticalPos:h?"center":"left",horizontalPos:"top",rotation:0}),this.data.xAxisRightText&&t&&d.push({text:this.data.xAxisRightText,fill:this.themeConfig.quadrantXAxisTextFill,x:a+o+(h?o/2:0),y:"top"===e?this.config.xAxisLabelPadding+r.top:this.config.xAxisLabelPadding+l+s+this.config.quadrantPadding,fontSize:this.config.xAxisLabelFontSize,verticalPos:h?"center":"left",horizontalPos:"top",rotation:0}),this.data.yAxisBottomText&&i&&d.push({text:this.data.yAxisBottomText,fill:this.themeConfig.quadrantYAxisTextFill,x:"left"===this.config.yAxisPosition?this.config.yAxisLabelPadding:this.config.yAxisLabelPadding+a+c+this.config.quadrantPadding,y:l+s-(u?n/2:0),fontSize:this.config.yAxisLabelFontSize,verticalPos:u?"center":"left",horizontalPos:"top",rotation:-90}),this.data.yAxisTopText&&i&&d.push({text:this.data.yAxisTopText,fill:this.themeConfig.quadrantYAxisTextFill,x:"left"===this.config.yAxisPosition?this.config.yAxisLabelPadding:this.config.yAxisLabelPadding+a+c+this.config.quadrantPadding,y:l+n-(u?n/2:0),fontSize:this.config.yAxisLabelFontSize,verticalPos:u?"center":"left",horizontalPos:"top",rotation:-90}),d}getQuadrants(e){var t,e=e["quadrantSpace"],{quadrantHalfHeight:e,quadrantLeft:i,quadrantHalfWidth:n,quadrantTop:r}=e,i=[{text:{text:this.data.quadrant1Text,fill:this.themeConfig.quadrant1TextFill,x:0,y:0,fontSize:this.config.quadrantLabelFontSize,verticalPos:"center",horizontalPos:"middle",rotation:0},x:i+n,y:r,width:n,height:e,fill:this.themeConfig.quadrant1Fill},{text:{text:this.data.quadrant2Text,fill:this.themeConfig.quadrant2TextFill,x:0,y:0,fontSize:this.config.quadrantLabelFontSize,verticalPos:"center",horizontalPos:"middle",rotation:0},x:i,y:r,width:n,height:e,fill:this.themeConfig.quadrant2Fill},{text:{text:this.data.quadrant3Text,fill:this.themeConfig.quadrant3TextFill,x:0,y:0,fontSize:this.config.quadrantLabelFontSize,verticalPos:"center",horizontalPos:"middle",rotation:0},x:i,y:r+e,width:n,height:e,fill:this.themeConfig.quadrant3Fill},{text:{text:this.data.quadrant4Text,fill:this.themeConfig.quadrant4TextFill,x:0,y:0,fontSize:this.config.quadrantLabelFontSize,verticalPos:"center",horizontalPos:"middle",rotation:0},x:i+n,y:r+e,width:n,height:e,fill:this.themeConfig.quadrant4Fill}];for(t of i)t.text.x=t.x+t.width/2,0===this.data.points.length?(t.text.y=t.y+t.height/2,t.text.horizontalPos="middle"):(t.text.y=t.y+this.config.quadrantTextTopPadding,t.text.horizontalPos="top");return i}getQuadrantPoints(e){let t=e["quadrantSpace"],{quadrantHeight:i,quadrantLeft:n,quadrantTop:r,quadrantWidth:s}=t,a=z2().domain([0,1]).range([n,s+n]),o=z2().domain([0,1]).range([i+r,r]);return this.data.points.map(e=>{var t=this.classes.get(e.className);return t&&(e={...t,...e}),{x:a(e.x),y:o(e.y),fill:e.color??this.themeConfig.quadrantPointFill,radius:e.radius??this.config.pointRadius,text:{text:e.text,fill:this.themeConfig.quadrantPointTextFill,x:a(e.x),y:o(e.y)+this.config.pointTextPadding,verticalPos:"center",horizontalPos:"top",fontSize:this.config.pointLabelFontSize,rotation:0},strokeColor:e.strokeColor??this.themeConfig.quadrantPointFill,strokeWidth:e.strokeWidth??"0px"}})}getBorders(e){var t=this.config.quadrantExternalBorderStrokeWidth/2,e=e["quadrantSpace"],{quadrantHalfHeight:e,quadrantHeight:i,quadrantLeft:n,quadrantHalfWidth:r,quadrantTop:s,quadrantWidth:a}=e;return[{strokeFill:this.themeConfig.quadrantExternalBorderStrokeFill,strokeWidth:this.config.quadrantExternalBorderStrokeWidth,x1:n-t,y1:s,x2:n+a+t,y2:s},{strokeFill:this.themeConfig.quadrantExternalBorderStrokeFill,strokeWidth:this.config.quadrantExternalBorderStrokeWidth,x1:n+a,y1:s+t,x2:n+a,y2:s+i-t},{strokeFill:this.themeConfig.quadrantExternalBorderStrokeFill,strokeWidth:this.config.quadrantExternalBorderStrokeWidth,x1:n-t,y1:s+i,x2:n+a+t,y2:s+i},{strokeFill:this.themeConfig.quadrantExternalBorderStrokeFill,strokeWidth:this.config.quadrantExternalBorderStrokeWidth,x1:n,y1:s+t,x2:n,y2:s+i-t},{strokeFill:this.themeConfig.quadrantInternalBorderStrokeFill,strokeWidth:this.config.quadrantInternalBorderStrokeWidth,x1:n+r,y1:s+t,x2:n+r,y2:s+i-t},{strokeFill:this.themeConfig.quadrantInternalBorderStrokeFill,strokeWidth:this.config.quadrantInternalBorderStrokeWidth,x1:n+t,y1:s+e,x2:n+a-t,y2:s+e}]}getTitle(e){if(e)return{text:this.data.titleText,fill:this.themeConfig.quadrantTitleFill,fontSize:this.config.titleFontSize,horizontalPos:"top",verticalPos:"center",rotation:0,y:this.config.titlePadding,x:this.config.chartWidth/2}}build(){var e=this.config.showXAxis&&!(!this.data.xAxisLeftText&&!this.data.xAxisRightText),t=this.config.showYAxis&&!(!this.data.yAxisTopText&&!this.data.yAxisBottomText),i=this.config.showTitle&&!!this.data.titleText,n=0<this.data.points.length?"bottom":this.config.xAxisPosition,r=this.calculateSpace(n,e,t,i);return{points:this.getQuadrantPoints(r),quadrants:this.getQuadrants(r),axisLabels:this.getAxisLabels(n,e,t,r),borderLines:this.getBorders(r),title:this.getTitle(i)}}}});function gbe(e){return!/^#?([\dA-Fa-f]{6}|[\dA-Fa-f]{3})$/.test(e)}function fbe(e){return!/^\d+$/.test(e)}function mbe(e){return!/^\d+px$/.test(e)}var ybe,bbe=e(()=>{"use strict";ybe=class extends Error{static{mt(this,"InvalidStyleError")}constructor(e,t,i){super(`value for ${e} ${t} is invalid, please use a valid `+i),this.name="InvalidStyleError"}},mt(gbe,"validateHexCode"),mt(fbe,"validateNumber"),mt(mbe,"validateSizeInPixels")});function vbe(e){return Pc(e.trim(),Nbe)}function xbe(e){Dbe.setData({quadrant1Text:vbe(e.text)})}function wbe(e){Dbe.setData({quadrant2Text:vbe(e.text)})}function kbe(e){Dbe.setData({quadrant3Text:vbe(e.text)})}function Tbe(e){Dbe.setData({quadrant4Text:vbe(e.text)})}function Sbe(e){Dbe.setData({xAxisLeftText:vbe(e.text)})}function _be(e){Dbe.setData({xAxisRightText:vbe(e.text)})}function Cbe(e){Dbe.setData({yAxisTopText:vbe(e.text)})}function Abe(e){Dbe.setData({yAxisBottomText:vbe(e.text)})}function Ebe(e){var t,i={};for(t of e){var[n,r]=t.trim().split(/\s*:\s*/);if("radius"===n){if(fbe(r))throw new ybe(n,r,"number");i.radius=parseInt(r)}else if("color"===n){if(gbe(r))throw new ybe(n,r,"hex code");i.color=r}else if("stroke-color"===n){if(gbe(r))throw new ybe(n,r,"hex code");i.strokeColor=r}else{if("stroke-width"!==n)throw new Error(`style named ${n} is not supported.`);if(mbe(r))throw new ybe(n,r,"number of pixels (eg. 10px)");i.strokeWidth=r}}return i}function $be(e,t,i,n,r){r=Ebe(r);Dbe.addPoints([{x:i,y:n,text:vbe(e.text),className:t,...r}])}function Lbe(e,t){Dbe.addClass(e,Ebe(t))}function Rbe(e){Dbe.setConfig({chartWidth:e})}function Mbe(e){Dbe.setConfig({chartHeight:e})}function Ibe(){var{themeVariables:e,quadrantChart:t}=N();return t&&Dbe.setConfig(t),Dbe.setThemeConfig({quadrant1Fill:e.quadrant1Fill,quadrant2Fill:e.quadrant2Fill,quadrant3Fill:e.quadrant3Fill,quadrant4Fill:e.quadrant4Fill,quadrant1TextFill:e.quadrant1TextFill,quadrant2TextFill:e.quadrant2TextFill,quadrant3TextFill:e.quadrant3TextFill,quadrant4TextFill:e.quadrant4TextFill,quadrantPointFill:e.quadrantPointFill,quadrantPointTextFill:e.quadrantPointTextFill,quadrantXAxisTextFill:e.quadrantXAxisTextFill,quadrantYAxisTextFill:e.quadrantYAxisTextFill,quadrantExternalBorderStrokeFill:e.quadrantExternalBorderStrokeFill,quadrantInternalBorderStrokeFill:e.quadrantInternalBorderStrokeFill,quadrantTitleFill:e.quadrantTitleFill}),Dbe.setData({titleText:Sh()}),Dbe.build()}var Nbe,Dbe,Obe,Pbe,Bbe,Fbe,jbe=e(()=>{"use strict";Cu(),hh(),_u(),pbe(),bbe(),Nbe=N(),mt(vbe,"textSanitizer"),Dbe=new hbe,mt(xbe,"setQuadrant1Text"),mt(wbe,"setQuadrant2Text"),mt(kbe,"setQuadrant3Text"),mt(Tbe,"setQuadrant4Text"),mt(Sbe,"setXAxisLeftText"),mt(_be,"setXAxisRightText"),mt(Cbe,"setYAxisTopText"),mt(Abe,"setYAxisBottomText"),mt(Ebe,"parseStyles"),mt($be,"addPoint"),mt(Lbe,"addClass"),mt(Rbe,"setWidth"),mt(Mbe,"setHeight"),mt(Ibe,"getQuadrantData"),Obe=mt(function(){Dbe.clear(),bh()},"clear"),Pbe={setWidth:Rbe,setHeight:Mbe,setQuadrant1Text:xbe,setQuadrant2Text:wbe,setQuadrant3Text:kbe,setQuadrant4Text:Tbe,setXAxisLeftText:Sbe,setXAxisRightText:_be,setYAxisTopText:Cbe,setYAxisBottomText:Abe,parseStyles:Ebe,addPoint:$be,addClass:Lbe,getQuadrantData:Ibe,clear:Obe,setAccTitle:vh,getAccTitle:xh,setDiagramTitle:Th,getDiagramTitle:Sh,getAccDescription:kh,setAccDescription:wh}}),zbe=e(()=>{"use strict";a6(),Cu(),t(),uh(),Bbe=mt((e,t,i,n)=>{function r(e){return"top"===e?"hanging":"middle"}function s(e){return"left"===e?"start":"middle"}function a(e){return`translate(${e.x}, ${e.y}) rotate(${e.rotation||0})`}mt(r,"getDominantBaseLine"),mt(s,"getTextAnchor"),mt(a,"getTransformation");var o=N();I.debug(`Rendering quadrant chart
|
||
`+e);let l=o.securityLevel,c;"sandbox"===l&&(c=G("#i"+t));var e=G("sandbox"===l?c.nodes()[0].contentDocument.body:"body").select(`[id="${t}"]`),t=e.append("g").attr("class","main"),h=o.quadrantChart?.chartWidth??500,u=o.quadrantChart?.chartHeight??500,o=(rh(e,u,h,o.quadrantChart?.useMaxWidth??!0),e.attr("viewBox","0 0 "+h+" "+u),n.db.setHeight(u),n.db.setWidth(h),n.db.getQuadrantData()),e=t.append("g").attr("class","quadrants"),u=t.append("g").attr("class","border"),h=t.append("g").attr("class","data-points"),n=t.append("g").attr("class","labels"),t=t.append("g").attr("class","title"),t=(o.title&&t.append("text").attr("x",0).attr("y",0).attr("fill",o.title.fill).attr("font-size",o.title.fontSize).attr("dominant-baseline",r(o.title.horizontalPos)).attr("text-anchor",s(o.title.verticalPos)).attr("transform",a(o.title)).text(o.title.text),o.borderLines&&u.selectAll("line").data(o.borderLines).enter().append("line").attr("x1",e=>e.x1).attr("y1",e=>e.y1).attr("x2",e=>e.x2).attr("y2",e=>e.y2).style("stroke",e=>e.strokeFill).style("stroke-width",e=>e.strokeWidth),e.selectAll("g.quadrant").data(o.quadrants).enter().append("g").attr("class","quadrant")),u=(t.append("rect").attr("x",e=>e.x).attr("y",e=>e.y).attr("width",e=>e.width).attr("height",e=>e.height).attr("fill",e=>e.fill),t.append("text").attr("x",0).attr("y",0).attr("fill",e=>e.text.fill).attr("font-size",e=>e.text.fontSize).attr("dominant-baseline",e=>r(e.text.horizontalPos)).attr("text-anchor",e=>s(e.text.verticalPos)).attr("transform",e=>a(e.text)).text(e=>e.text.text),n.selectAll("g.label").data(o.axisLabels).enter().append("g").attr("class","label").append("text").attr("x",0).attr("y",0).text(e=>e.text).attr("fill",e=>e.fill).attr("font-size",e=>e.fontSize).attr("dominant-baseline",e=>r(e.horizontalPos)).attr("text-anchor",e=>s(e.verticalPos)).attr("transform",e=>a(e)),h.selectAll("g.data-point").data(o.points).enter().append("g").attr("class","data-point"));u.append("circle").attr("cx",e=>e.x).attr("cy",e=>e.y).attr("r",e=>e.radius).attr("fill",e=>e.fill).attr("stroke",e=>e.strokeColor).attr("stroke-width",e=>e.strokeWidth),u.append("text").attr("x",0).attr("y",0).text(e=>e.text.text).attr("fill",e=>e.text.fill).attr("font-size",e=>e.text.fontSize).attr("dominant-baseline",e=>r(e.text.horizontalPos)).attr("text-anchor",e=>s(e.text.verticalPos)).attr("transform",e=>a(e.text))},"draw"),Fbe={draw:Bbe}}),Hbe={};V(Hbe,{diagram:()=>Ube});var Ube,qbe,Wbe,Vbe=e(()=>{"use strict";dbe(),jbe(),zbe(),Ube={parser:lbe,db:Pbe,renderer:Fbe,styles:mt(()=>"","styles")}}),Gbe=e(()=>{"use strict";function e(){this.yy={}}var t,i,n,r,s,a,o,l,c,h,u,d,p,g,f,m,y,b,v,x,w,k,T,S,_,C,A,E;t=mt(function(e,t,i,n){for(i=i||{},n=e.length;n--;i[e[n]]=t);return i},"o"),i=[1,10,12,14,16,18,19,21,23],n=[2,6],r=[1,3],s=[1,5],a=[1,6],o=[1,7],l=[1,5,10,12,14,16,18,19,21,23,34,35,36],c=[1,25],h=[1,26],u=[1,28],d=[1,29],p=[1,30],g=[1,31],f=[1,32],m=[1,33],y=[1,34],b=[1,35],v=[1,36],x=[1,37],w=[1,43],k=[1,42],T=[1,47],S=[1,50],_=[1,10,12,14,16,18,19,21,23,34,35,36],C=[1,10,12,14,16,18,19,21,23,24,26,27,28,34,35,36],A=[1,10,12,14,16,18,19,21,23,24,26,27,28,34,35,36,41,42,43,44,45,46,47,48,49,50],E=[1,64],n={trace:mt(function(){},"trace"),yy:{},symbols_:{error:2,start:3,eol:4,XYCHART:5,chartConfig:6,document:7,CHART_ORIENTATION:8,statement:9,title:10,text:11,X_AXIS:12,parseXAxis:13,Y_AXIS:14,parseYAxis:15,LINE:16,plotData:17,BAR:18,acc_title:19,acc_title_value:20,acc_descr:21,acc_descr_value:22,acc_descr_multiline_value:23,SQUARE_BRACES_START:24,commaSeparatedNumbers:25,SQUARE_BRACES_END:26,NUMBER_WITH_DECIMAL:27,COMMA:28,xAxisData:29,bandData:30,ARROW_DELIMITER:31,commaSeparatedTexts:32,yAxisData:33,NEWLINE:34,SEMI:35,EOF:36,alphaNum:37,STR:38,MD_STR:39,alphaNumToken:40,AMP:41,NUM:42,ALPHA:43,PLUS:44,EQUALS:45,MULT:46,DOT:47,BRKT:48,MINUS:49,UNDERSCORE:50,$accept:0,$end:1},terminals_:{2:"error",5:"XYCHART",8:"CHART_ORIENTATION",10:"title",12:"X_AXIS",14:"Y_AXIS",16:"LINE",18:"BAR",19:"acc_title",20:"acc_title_value",21:"acc_descr",22:"acc_descr_value",23:"acc_descr_multiline_value",24:"SQUARE_BRACES_START",26:"SQUARE_BRACES_END",27:"NUMBER_WITH_DECIMAL",28:"COMMA",31:"ARROW_DELIMITER",34:"NEWLINE",35:"SEMI",36:"EOF",38:"STR",39:"MD_STR",41:"AMP",42:"NUM",43:"ALPHA",44:"PLUS",45:"EQUALS",46:"MULT",47:"DOT",48:"BRKT",49:"MINUS",50:"UNDERSCORE"},productions_:[0,[3,2],[3,3],[3,2],[3,1],[6,1],[7,0],[7,2],[9,2],[9,2],[9,2],[9,2],[9,2],[9,3],[9,2],[9,3],[9,2],[9,2],[9,1],[17,3],[25,3],[25,1],[13,1],[13,2],[13,1],[29,1],[29,3],[30,3],[32,3],[32,1],[15,1],[15,2],[15,1],[33,3],[4,1],[4,1],[4,1],[11,1],[11,1],[11,1],[37,1],[37,2],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1]],performAction:mt(function(e,t,i,n,r,s,a){var o=s.length-1;switch(r){case 5:n.setOrientation(s[o]);break;case 9:n.setDiagramTitle(s[o].text.trim());break;case 12:n.setLineData({text:"",type:"text"},s[o]);break;case 13:n.setLineData(s[o-1],s[o]);break;case 14:n.setBarData({text:"",type:"text"},s[o]);break;case 15:n.setBarData(s[o-1],s[o]);break;case 16:this.$=s[o].trim(),n.setAccTitle(this.$);break;case 17:case 18:this.$=s[o].trim(),n.setAccDescription(this.$);break;case 19:this.$=s[o-1];break;case 20:this.$=[Number(s[o-2]),...s[o]];break;case 21:this.$=[Number(s[o])];break;case 22:n.setXAxisTitle(s[o]);break;case 23:n.setXAxisTitle(s[o-1]);break;case 24:n.setXAxisTitle({type:"text",text:""});break;case 25:n.setXAxisBand(s[o]);break;case 26:n.setXAxisRangeData(Number(s[o-2]),Number(s[o]));break;case 27:this.$=s[o-1];break;case 28:this.$=[s[o-2],...s[o]];break;case 29:this.$=[s[o]];break;case 30:n.setYAxisTitle(s[o]);break;case 31:n.setYAxisTitle(s[o-1]);break;case 32:n.setYAxisTitle({type:"text",text:""});break;case 33:n.setYAxisRangeData(Number(s[o-2]),Number(s[o]));break;case 37:case 38:this.$={text:s[o],type:"text"};break;case 39:this.$={text:s[o],type:"markdown"};break;case 40:this.$=s[o];break;case 41:this.$=s[o-1]+""+s[o]}},"anonymous"),table:[t(i,n,{3:1,4:2,7:4,5:r,34:s,35:a,36:o}),{1:[3]},t(i,n,{4:2,7:4,3:8,5:r,34:s,35:a,36:o}),t(i,n,{4:2,7:4,6:9,3:10,5:r,8:[1,11],34:s,35:a,36:o}),{1:[2,4],9:12,10:[1,13],12:[1,14],14:[1,15],16:[1,16],18:[1,17],19:[1,18],21:[1,19],23:[1,20]},t(l,[2,34]),t(l,[2,35]),t(l,[2,36]),{1:[2,1]},t(i,n,{4:2,7:4,3:21,5:r,34:s,35:a,36:o}),{1:[2,3]},t(l,[2,5]),t(i,[2,7],{4:22,34:s,35:a,36:o}),{11:23,37:24,38:c,39:h,40:27,41:u,42:d,43:p,44:g,45:f,46:m,47:y,48:b,49:v,50:x},{11:39,13:38,24:w,27:k,29:40,30:41,37:24,38:c,39:h,40:27,41:u,42:d,43:p,44:g,45:f,46:m,47:y,48:b,49:v,50:x},{11:45,15:44,27:T,33:46,37:24,38:c,39:h,40:27,41:u,42:d,43:p,44:g,45:f,46:m,47:y,48:b,49:v,50:x},{11:49,17:48,24:S,37:24,38:c,39:h,40:27,41:u,42:d,43:p,44:g,45:f,46:m,47:y,48:b,49:v,50:x},{11:52,17:51,24:S,37:24,38:c,39:h,40:27,41:u,42:d,43:p,44:g,45:f,46:m,47:y,48:b,49:v,50:x},{20:[1,53]},{22:[1,54]},t(_,[2,18]),{1:[2,2]},t(_,[2,8]),t(_,[2,9]),t(C,[2,37],{40:55,41:u,42:d,43:p,44:g,45:f,46:m,47:y,48:b,49:v,50:x}),t(C,[2,38]),t(C,[2,39]),t(A,[2,40]),t(A,[2,42]),t(A,[2,43]),t(A,[2,44]),t(A,[2,45]),t(A,[2,46]),t(A,[2,47]),t(A,[2,48]),t(A,[2,49]),t(A,[2,50]),t(A,[2,51]),t(_,[2,10]),t(_,[2,22],{30:41,29:56,24:w,27:k}),t(_,[2,24]),t(_,[2,25]),{31:[1,57]},{11:59,32:58,37:24,38:c,39:h,40:27,41:u,42:d,43:p,44:g,45:f,46:m,47:y,48:b,49:v,50:x},t(_,[2,11]),t(_,[2,30],{33:60,27:T}),t(_,[2,32]),{31:[1,61]},t(_,[2,12]),{17:62,24:S},{25:63,27:E},t(_,[2,14]),{17:65,24:S},t(_,[2,16]),t(_,[2,17]),t(A,[2,41]),t(_,[2,23]),{27:[1,66]},{26:[1,67]},{26:[2,29],28:[1,68]},t(_,[2,31]),{27:[1,69]},t(_,[2,13]),{26:[1,70]},{26:[2,21],28:[1,71]},t(_,[2,15]),t(_,[2,26]),t(_,[2,27]),{11:59,32:72,37:24,38:c,39:h,40:27,41:u,42:d,43:p,44:g,45:f,46:m,47:y,48:b,49:v,50:x},t(_,[2,33]),t(_,[2,19]),{25:73,27:E},{26:[2,28]},{26:[2,20]}],defaultActions:{8:[2,1],10:[2,3],21:[2,2],72:[2,28],73:[2,20]},parseError:mt(function(e,t){var i;if(!t.recoverable)throw(i=new Error(e)).hash=t,i;this.trace(e)},"parseError"),parse:mt(function(e){var t,i=this,n=[0],r=[],s=[null],a=[],o=this.table,l="",c=0,h=0,u=0,d=1,p=a.slice.call(arguments,1),g=Object.create(this.lexer),f={yy:{}};for(t in this.yy)Object.prototype.hasOwnProperty.call(this.yy,t)&&(f.yy[t]=this.yy[t]);g.setInput(e,f.yy),f.yy.lexer=g,f.yy.parser=this,"u"<typeof g.yylloc&&(g.yylloc={});var m=g.yylloc,y=(a.push(m),g.options&&g.options.ranges);function b(){var e=r.pop()||g.lex()||d;return"number"!=typeof e&&(e instanceof Array&&(e=(r=e).pop()),e=i.symbols_[e]||e),e}"function"==typeof f.yy.parseError?this.parseError=f.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError,mt(function(e){n.length=n.length-2*e,s.length=s.length-e,a.length=a.length-e},"popStack"),mt(b,"lex");for(var v,x,w,k,T,S,_,C={};;){if(w=n[n.length-1],"u"<typeof(k=this.defaultActions[w]||((null===v||"u"<typeof v)&&(v=b()),o[w]&&o[w][v]))||!k.length||!k[0]){var A="",E=[];for(T in o[w])this.terminals_[T]&&2<T&&E.push("'"+this.terminals_[T]+"'");A=g.showPosition?"Parse error on line "+(c+1)+`:
|
||
`+g.showPosition()+`
|
||
Expecting `+E.join(", ")+", got '"+(this.terminals_[v]||v)+"'":"Parse error on line "+(c+1)+": Unexpected "+(v==d?"end of input":"'"+(this.terminals_[v]||v)+"'"),this.parseError(A,{text:g.match,token:this.terminals_[v]||v,line:g.yylineno,loc:m,expected:E})}if(k[0]instanceof Array&&1<k.length)throw new Error("Parse Error: multiple actions possible at state: "+w+", token: "+v);switch(k[0]){case 1:n.push(v),s.push(g.yytext),a.push(g.yylloc),n.push(k[1]),v=null,x?(v=x,x=null):(h=g.yyleng,l=g.yytext,c=g.yylineno,m=g.yylloc,0<u&&u--);break;case 2:if(S=this.productions_[k[1]][1],C.$=s[s.length-S],C._$={first_line:a[a.length-(S||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(S||1)].first_column,last_column:a[a.length-1].last_column},y&&(C._$.range=[a[a.length-(S||1)].range[0],a[a.length-1].range[1]]),typeof(_=this.performAction.apply(C,[l,h,c,f.yy,k[1],s,a].concat(p)))<"u")return _;S&&(n=n.slice(0,-1*S*2),s=s.slice(0,-1*S),a=a.slice(0,-1*S)),n.push(this.productions_[k[1]][0]),s.push(C.$),a.push(C._$),_=o[n[n.length-2]][n[n.length-1]],n.push(_);break;case 3:return!0}}return!0},"parse")},r={EOF:1,parseError:mt(function(e,t){if(!this.yy.parser)throw new Error(e);this.yy.parser.parseError(e,t)},"parseError"),setInput:mt(function(e,t){return this.yy=t||this.yy||{},this._input=e,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:mt(function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.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),e},"input"),unput:mt(function(e){var t=e.length,i=e.split(/(?:\r\n?|\n)/g),e=(this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t,this.match.split(/(?:\r\n?|\n)/g)),n=(this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),i.length-1&&(this.yylineno-=i.length-1),this.yylloc.range);return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:i?(i.length===e.length?this.yylloc.first_column:0)+e[e.length-i.length].length-i[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[n[0],n[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},"unput"),more:mt(function(){return this._more=!0,this},"more"),reject:mt(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).
|
||
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"reject"),less:mt(function(e){this.unput(this.match.slice(e))},"less"),pastInput:mt(function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(20<e.length?"...":"")+e.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:mt(function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(20<e.length?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:mt(function(){var e=this.pastInput(),t=new Array(e.length+1).join("-");return e+this.upcomingInput()+`
|
||
`+t+"^"},"showPosition"),test_match:mt(function(e,t){var i,n;if(this.options.backtrack_lexer&&(n={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)&&(n.yylloc.range=this.yylloc.range.slice(0)),(i=e[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=i.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:i?i[i.length-1].length-i[i.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+e[0].length},this.yytext+=e[0],this.match+=e[0],this.matches=e,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(e[0].length),this.matched+=e[0],i=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),i)return i;if(this._backtrack)for(var r in n)this[r]=n[r];return!1},"test_match"),next:mt(function(){if(this.done)return this.EOF;var e,t,i,n;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var r=this._currentRules(),s=0;s<r.length;s++)if((i=this._input.match(this.rules[r[s]]))&&(!t||i[0].length>t[0].length)){if(t=i,n=s,this.options.backtrack_lexer){if(!1!==(e=this.test_match(i,r[s])))return e;if(this._backtrack){t=!1;continue}return!1}if(!this.options.flex)break}return t?!1!==(e=this.test_match(t,r[n]))&&e:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
|
||
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:mt(function(){return this.next()||this.lex()},"lex"),begin:mt(function(e){this.conditionStack.push(e)},"begin"),popState:mt(function(){return 0<this.conditionStack.length-1?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:mt(function(){return(this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]]:this.conditions.INITIAL).rules},"_currentRules"),topState:mt(function(e){return 0<=(e=this.conditionStack.length-1-Math.abs(e||0))?this.conditionStack[e]:"INITIAL"},"topState"),pushState:mt(function(e){this.begin(e)},"pushState"),stateStackSize:mt(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:mt(function(e,t,i,n){switch(i){case 0:case 1:break;case 2:case 3:return this.popState(),34;case 4:return 34;case 5:break;case 6:return 10;case 7:return this.pushState("acc_title"),19;case 8:return this.popState(),"acc_title_value";case 9:return this.pushState("acc_descr"),21;case 10:return this.popState(),"acc_descr_value";case 11:this.pushState("acc_descr_multiline");break;case 12:this.popState();break;case 13:return"acc_descr_multiline_value";case 14:return 5;case 15:return 8;case 16:return this.pushState("axis_data"),"X_AXIS";case 17:return this.pushState("axis_data"),"Y_AXIS";case 18:return this.pushState("axis_band_data"),24;case 19:return 31;case 20:return this.pushState("data"),16;case 21:return this.pushState("data"),18;case 22:return this.pushState("data_inner"),24;case 23:return 27;case 24:return this.popState(),26;case 25:this.popState();break;case 26:this.pushState("string");break;case 27:this.popState();break;case 28:return"STR";case 29:return 24;case 30:return 26;case 31:return 43;case 32:return"COLON";case 33:return 44;case 34:return 28;case 35:return 45;case 36:return 46;case 37:return 48;case 38:return 50;case 39:return 47;case 40:return 41;case 41:return 49;case 42:return 42;case 43:break;case 44:return 35;case 45:return 36}},"anonymous"),rules:[/^(?:%%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:(\r?\n))/i,/^(?:(\r?\n))/i,/^(?:[\n\r]+)/i,/^(?:%%[^\n]*)/i,/^(?:title\b)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:\{)/i,/^(?:[^\}]*)/i,/^(?:xychart-beta\b)/i,/^(?:(?:vertical|horizontal))/i,/^(?:x-axis\b)/i,/^(?:y-axis\b)/i,/^(?:\[)/i,/^(?:-->)/i,/^(?:line\b)/i,/^(?:bar\b)/i,/^(?:\[)/i,/^(?:[+-]?(?:\d+(?:\.\d+)?|\.\d+))/i,/^(?:\])/i,/^(?:(?:`\) \{ this\.pushState\(md_string\); \}\n<md_string>\(\?:\(\?!`"\)\.\)\+ \{ return MD_STR; \}\n<md_string>\(\?:`))/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:\[)/i,/^(?:\])/i,/^(?:[A-Za-z]+)/i,/^(?::)/i,/^(?:\+)/i,/^(?:,)/i,/^(?:=)/i,/^(?:\*)/i,/^(?:#)/i,/^(?:[\_])/i,/^(?:\.)/i,/^(?:&)/i,/^(?:-)/i,/^(?:[0-9]+)/i,/^(?:\s+)/i,/^(?:;)/i,/^(?:$)/i],conditions:{data_inner:{rules:[0,1,4,5,6,7,9,11,14,15,16,17,20,21,23,24,25,26,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45],inclusive:!0},data:{rules:[0,1,3,4,5,6,7,9,11,14,15,16,17,20,21,22,25,26,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45],inclusive:!0},axis_band_data:{rules:[0,1,4,5,6,7,9,11,14,15,16,17,20,21,24,25,26,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45],inclusive:!0},axis_data:{rules:[0,1,2,4,5,6,7,9,11,14,15,16,17,18,19,20,21,23,25,26,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45],inclusive:!0},acc_descr_multiline:{rules:[12,13],inclusive:!1},acc_descr:{rules:[10],inclusive:!1},acc_title:{rules:[8],inclusive:!1},title:{rules:[],inclusive:!1},md_string:{rules:[],inclusive:!1},string:{rules:[27,28],inclusive:!1},INITIAL:{rules:[0,1,4,5,6,7,9,11,14,15,16,17,20,21,25,26,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45],inclusive:!0}}},n.lexer=r,mt(e,"Parser"),(qbe=new((e.prototype=n).Parser=e)).parser=qbe,Wbe=qbe});function Ybe(e){return"bar"===e.type}function Xbe(e){return"band"===e.type}function Kbe(e){return"linear"===e.type}var Zbe,Qbe,Jbe,eve,tve=e(()=>{"use strict";mt(Ybe,"isBarPlot"),mt(Xbe,"isBandAxisData"),mt(Kbe,"isLinearAxisData")}),ive=e(()=>{"use strict";eL(),Zbe=class{constructor(e){this.parentGroup=e}static{mt(this,"TextDimensionCalculatorWithFont")}getMaxDimension(e,t){if(!this.parentGroup)return{width:e.reduce((e,t)=>Math.max(t.length,e),0)*t,height:t};var i,n={width:0,height:0},r=this.parentGroup.append("g").attr("visibility","hidden").attr("font-size",t);for(i of e){var s=X$(r,1,i),a=s?s.width:i.length*t,s=s?s.height:t;n.width=Math.max(n.width,a),n.height=Math.max(n.height,s)}return r.remove(),n}}}),nve=e(()=>{"use strict";Qbe=class{constructor(e,t,i,n){this.axisConfig=e,this.title=t,this.textDimensionCalculator=i,this.axisThemeConfig=n,this.boundingRect={x:0,y:0,width:0,height:0},this.axisPosition="left",this.showTitle=!1,this.showLabel=!1,this.showTick=!1,this.showAxisLine=!1,this.outerPadding=0,this.titleTextHeight=0,this.labelTextHeight=0,this.range=[0,10],this.boundingRect={x:0,y:0,width:0,height:0},this.axisPosition="left"}static{mt(this,"BaseAxis")}setRange(e){this.range=e,"left"===this.axisPosition||"right"===this.axisPosition?this.boundingRect.height=e[1]-e[0]:this.boundingRect.width=e[1]-e[0],this.recalculateScale()}getRange(){return[this.range[0]+this.outerPadding,this.range[1]-this.outerPadding]}setAxisPosition(e){this.axisPosition=e,this.setRange(this.range)}getTickDistance(){var e=this.getRange();return Math.abs(e[0]-e[1])/this.getTickValues().length}getAxisOuterPadding(){return this.outerPadding}getLabelDimension(){return this.textDimensionCalculator.getMaxDimension(this.getTickValues().map(e=>e.toString()),this.axisConfig.labelFontSize)}recalculateOuterPaddingToDrawBar(){.7*this.getTickDistance()>2*this.outerPadding&&(this.outerPadding=Math.floor(.7*this.getTickDistance()/2)),this.recalculateScale()}calculateSpaceIfDrawnHorizontally(e){let t=e.height;var i,n;this.axisConfig.showAxisLine&&t>this.axisConfig.axisLineWidth&&(t-=this.axisConfig.axisLineWidth,this.showAxisLine=!0),this.axisConfig.showLabel&&(i=this.getLabelDimension(),n=.2*e.width,this.outerPadding=Math.min(i.width/2,n),n=i.height+2*this.axisConfig.labelPadding,this.labelTextHeight=i.height,n<=t)&&(t-=n,this.showLabel=!0),this.axisConfig.showTick&&t>=this.axisConfig.tickLength&&(this.showTick=!0,t-=this.axisConfig.tickLength),this.axisConfig.showTitle&&this.title&&(n=(i=this.textDimensionCalculator.getMaxDimension([this.title],this.axisConfig.titleFontSize)).height+2*this.axisConfig.titlePadding,this.titleTextHeight=i.height,n<=t)&&(t-=n,this.showTitle=!0),this.boundingRect.width=e.width,this.boundingRect.height=e.height-t}calculateSpaceIfDrawnVertical(e){let t=e.width;var i,n;this.axisConfig.showAxisLine&&t>this.axisConfig.axisLineWidth&&(t-=this.axisConfig.axisLineWidth,this.showAxisLine=!0),this.axisConfig.showLabel&&(i=this.getLabelDimension(),n=.2*e.height,this.outerPadding=Math.min(i.height/2,n),(n=i.width+2*this.axisConfig.labelPadding)<=t)&&(t-=n,this.showLabel=!0),this.axisConfig.showTick&&t>=this.axisConfig.tickLength&&(this.showTick=!0,t-=this.axisConfig.tickLength),this.axisConfig.showTitle&&this.title&&(n=(i=this.textDimensionCalculator.getMaxDimension([this.title],this.axisConfig.titleFontSize)).height+2*this.axisConfig.titlePadding,this.titleTextHeight=i.height,n<=t)&&(t-=n,this.showTitle=!0),this.boundingRect.width=e.width-t,this.boundingRect.height=e.height}calculateSpace(e){return"left"===this.axisPosition||"right"===this.axisPosition?this.calculateSpaceIfDrawnVertical(e):this.calculateSpaceIfDrawnHorizontally(e),this.recalculateScale(),{width:this.boundingRect.width,height:this.boundingRect.height}}setBoundingBoxXY(e){this.boundingRect.x=e.x,this.boundingRect.y=e.y}getDrawableElementsForLeftAxis(){var e,i=[];if(this.showAxisLine&&(e=this.boundingRect.x+this.boundingRect.width-this.axisConfig.axisLineWidth/2,i.push({type:"path",groupTexts:["left-axis","axisl-line"],data:[{path:`M ${e},${this.boundingRect.y} L ${e},${this.boundingRect.y+this.boundingRect.height} `,strokeFill:this.axisThemeConfig.axisLineColor,strokeWidth:this.axisConfig.axisLineWidth}]})),this.showLabel&&i.push({type:"text",groupTexts:["left-axis","label"],data:this.getTickValues().map(e=>({text:e.toString(),x:this.boundingRect.x+this.boundingRect.width-(this.showLabel?this.axisConfig.labelPadding:0)-(this.showTick?this.axisConfig.tickLength:0)-(this.showAxisLine?this.axisConfig.axisLineWidth:0),y:this.getScaleValue(e),fill:this.axisThemeConfig.labelColor,fontSize:this.axisConfig.labelFontSize,rotation:0,verticalPos:"middle",horizontalPos:"right"}))}),this.showTick){let t=this.boundingRect.x+this.boundingRect.width-(this.showAxisLine?this.axisConfig.axisLineWidth:0);i.push({type:"path",groupTexts:["left-axis","ticks"],data:this.getTickValues().map(e=>({path:`M ${t},${this.getScaleValue(e)} L ${t-this.axisConfig.tickLength},`+this.getScaleValue(e),strokeFill:this.axisThemeConfig.tickColor,strokeWidth:this.axisConfig.tickWidth}))})}return this.showTitle&&i.push({type:"text",groupTexts:["left-axis","title"],data:[{text:this.title,x:this.boundingRect.x+this.axisConfig.titlePadding,y:this.boundingRect.y+this.boundingRect.height/2,fill:this.axisThemeConfig.titleColor,fontSize:this.axisConfig.titleFontSize,rotation:270,verticalPos:"top",horizontalPos:"center"}]}),i}getDrawableElementsForBottomAxis(){var e,i=[];if(this.showAxisLine&&(e=this.boundingRect.y+this.axisConfig.axisLineWidth/2,i.push({type:"path",groupTexts:["bottom-axis","axis-line"],data:[{path:`M ${this.boundingRect.x},${e} L ${this.boundingRect.x+this.boundingRect.width},`+e,strokeFill:this.axisThemeConfig.axisLineColor,strokeWidth:this.axisConfig.axisLineWidth}]})),this.showLabel&&i.push({type:"text",groupTexts:["bottom-axis","label"],data:this.getTickValues().map(e=>({text:e.toString(),x:this.getScaleValue(e),y:this.boundingRect.y+this.axisConfig.labelPadding+(this.showTick?this.axisConfig.tickLength:0)+(this.showAxisLine?this.axisConfig.axisLineWidth:0),fill:this.axisThemeConfig.labelColor,fontSize:this.axisConfig.labelFontSize,rotation:0,verticalPos:"top",horizontalPos:"center"}))}),this.showTick){let t=this.boundingRect.y+(this.showAxisLine?this.axisConfig.axisLineWidth:0);i.push({type:"path",groupTexts:["bottom-axis","ticks"],data:this.getTickValues().map(e=>({path:`M ${this.getScaleValue(e)},${t} L ${this.getScaleValue(e)},`+(t+this.axisConfig.tickLength),strokeFill:this.axisThemeConfig.tickColor,strokeWidth:this.axisConfig.tickWidth}))})}return this.showTitle&&i.push({type:"text",groupTexts:["bottom-axis","title"],data:[{text:this.title,x:this.range[0]+(this.range[1]-this.range[0])/2,y:this.boundingRect.y+this.boundingRect.height-this.axisConfig.titlePadding-this.titleTextHeight,fill:this.axisThemeConfig.titleColor,fontSize:this.axisConfig.titleFontSize,rotation:0,verticalPos:"top",horizontalPos:"center"}]}),i}getDrawableElementsForTopAxis(){var e,i=[];if(this.showAxisLine&&(e=this.boundingRect.y+this.boundingRect.height-this.axisConfig.axisLineWidth/2,i.push({type:"path",groupTexts:["top-axis","axis-line"],data:[{path:`M ${this.boundingRect.x},${e} L ${this.boundingRect.x+this.boundingRect.width},`+e,strokeFill:this.axisThemeConfig.axisLineColor,strokeWidth:this.axisConfig.axisLineWidth}]})),this.showLabel&&i.push({type:"text",groupTexts:["top-axis","label"],data:this.getTickValues().map(e=>({text:e.toString(),x:this.getScaleValue(e),y:this.boundingRect.y+(this.showTitle?this.titleTextHeight+2*this.axisConfig.titlePadding:0)+this.axisConfig.labelPadding,fill:this.axisThemeConfig.labelColor,fontSize:this.axisConfig.labelFontSize,rotation:0,verticalPos:"top",horizontalPos:"center"}))}),this.showTick){let t=this.boundingRect.y;i.push({type:"path",groupTexts:["top-axis","ticks"],data:this.getTickValues().map(e=>({path:`M ${this.getScaleValue(e)},${t+this.boundingRect.height-(this.showAxisLine?this.axisConfig.axisLineWidth:0)} L ${this.getScaleValue(e)},`+(t+this.boundingRect.height-this.axisConfig.tickLength-(this.showAxisLine?this.axisConfig.axisLineWidth:0)),strokeFill:this.axisThemeConfig.tickColor,strokeWidth:this.axisConfig.tickWidth}))})}return this.showTitle&&i.push({type:"text",groupTexts:["top-axis","title"],data:[{text:this.title,x:this.boundingRect.x+this.boundingRect.width/2,y:this.boundingRect.y+this.axisConfig.titlePadding,fill:this.axisThemeConfig.titleColor,fontSize:this.axisConfig.titleFontSize,rotation:0,verticalPos:"top",horizontalPos:"center"}]}),i}getDrawableElements(){if("left"===this.axisPosition)return this.getDrawableElementsForLeftAxis();if("right"===this.axisPosition)throw Error("Drawing of right axis is not implemented");return"bottom"===this.axisPosition?this.getDrawableElementsForBottomAxis():"top"===this.axisPosition?this.getDrawableElementsForTopAxis():[]}}}),rve=e(()=>{"use strict";a6(),t(),nve(),Jbe=class extends Qbe{static{mt(this,"BandAxis")}constructor(e,t,i,n,r){super(e,n,r,t),this.categories=i,this.scale=k2().domain(this.categories).range(this.getRange())}setRange(e){super.setRange(e)}recalculateScale(){this.scale=k2().domain(this.categories).range(this.getRange()).paddingInner(1).paddingOuter(0).align(.5),I.trace("BandAxis axis final categories, range: ",this.categories,this.getRange())}getTickValues(){return this.categories}getScaleValue(e){return this.scale(e)??this.getRange()[0]}}}),sve=e(()=>{"use strict";a6(),nve(),eve=class extends Qbe{static{mt(this,"LinearAxis")}constructor(e,t,i,n,r){super(e,n,r,t),this.domain=i,this.scale=z2().domain(this.domain).range(this.getRange())}getTickValues(){return this.scale.ticks()}recalculateScale(){var e=[...this.domain];"left"===this.axisPosition&&e.reverse(),this.scale=z2().domain(e).range(this.getRange())}getScaleValue(e){return this.scale(e)}}});function ave(e,t,i,n){n=new Zbe(n);return Xbe(e)?new Jbe(t,i,e.categories,e.title,n):new eve(t,i,[e.min,e.max],e.title,n)}var ove=e(()=>{"use strict";tve(),ive(),rve(),sve(),mt(ave,"getAxis")});function lve(e,t,i,n){n=new Zbe(n);return new cve(n,e,t,i)}var cve,hve,uve,dve=e(()=>{"use strict";ive(),cve=class{constructor(e,t,i,n){this.textDimensionCalculator=e,this.chartConfig=t,this.chartData=i,this.chartThemeConfig=n,this.boundingRect={x:0,y:0,width:0,height:0},this.showChartTitle=!1}static{mt(this,"ChartTitle")}setBoundingBoxXY(e){this.boundingRect.x=e.x,this.boundingRect.y=e.y}calculateSpace(e){var t=this.textDimensionCalculator.getMaxDimension([this.chartData.title],this.chartConfig.titleFontSize),e=Math.max(t.width,e.width),i=t.height+2*this.chartConfig.titlePadding;return t.width<=e&&t.height<=i&&this.chartConfig.showTitle&&this.chartData.title&&(this.boundingRect.width=e,this.boundingRect.height=i,this.showChartTitle=!0),{width:this.boundingRect.width,height:this.boundingRect.height}}getDrawableElements(){var e=[];return this.showChartTitle&&e.push({groupTexts:["chart-title"],type:"text",data:[{fontSize:this.chartConfig.titleFontSize,text:this.chartData.title,verticalPos:"middle",horizontalPos:"center",x:this.boundingRect.x+this.boundingRect.width/2,y:this.boundingRect.y+this.boundingRect.height/2,fill:this.chartThemeConfig.titleColor,rotation:0}]}),e}},mt(lve,"getChartTitleComponent")}),pve=e(()=>{"use strict";a6(),hve=class{constructor(e,t,i,n,r){this.plotData=e,this.xAxis=t,this.yAxis=i,this.orientation=n,this.plotIndex=r}static{mt(this,"LinePlot")}getDrawableElement(){let e=this.plotData.data.map(e=>[this.xAxis.getScaleValue(e[0]),this.yAxis.getScaleValue(e[1])]),t;return(t=("horizontal"===this.orientation?r5().y(e=>e[0]).x(e=>e[1]):r5().x(e=>e[0]).y(e=>e[1]))(e))?[{groupTexts:["plot","line-plot-"+this.plotIndex],type:"path",data:[{path:t,strokeFill:this.plotData.strokeFill,strokeWidth:this.plotData.strokeWidth}]}]:[]}}}),gve=e(()=>{"use strict";uve=class{constructor(e,t,i,n,r,s){this.barData=e,this.boundingRect=t,this.xAxis=i,this.yAxis=n,this.orientation=r,this.plotIndex=s}static{mt(this,"BarPlot")}getDrawableElement(){let e=this.barData.data.map(e=>[this.xAxis.getScaleValue(e[0]),this.yAxis.getScaleValue(e[1])]),t=.95*Math.min(2*this.xAxis.getAxisOuterPadding(),this.xAxis.getTickDistance()),i=t/2;return"horizontal"===this.orientation?[{groupTexts:["plot","bar-plot-"+this.plotIndex],type:"rect",data:e.map(e=>({x:this.boundingRect.x,y:e[0]-i,height:t,width:e[1]-this.boundingRect.x,fill:this.barData.fill,strokeWidth:0,strokeFill:this.barData.fill}))}]:[{groupTexts:["plot","bar-plot-"+this.plotIndex],type:"rect",data:e.map(e=>({x:e[0]-i,y:e[1],width:t,height:this.boundingRect.y+this.boundingRect.height-e[1],fill:this.barData.fill,strokeWidth:0,strokeFill:this.barData.fill}))}]}}});function fve(e,t,i){return new mve(e,t,i)}var mve,yve,bve,vve=e(()=>{"use strict";pve(),gve(),mve=class{constructor(e,t,i){this.chartConfig=e,this.chartData=t,this.chartThemeConfig=i,this.boundingRect={x:0,y:0,width:0,height:0}}static{mt(this,"BasePlot")}setAxes(e,t){this.xAxis=e,this.yAxis=t}setBoundingBoxXY(e){this.boundingRect.x=e.x,this.boundingRect.y=e.y}calculateSpace(e){return this.boundingRect.width=e.width,this.boundingRect.height=e.height,{width:this.boundingRect.width,height:this.boundingRect.height}}getDrawableElements(){if(!this.xAxis||!this.yAxis)throw Error("Axes must be passed to render Plots");var e,t,i=[];for([e,t]of this.chartData.plots.entries())switch(t.type){case"line":var n=new hve(t,this.xAxis,this.yAxis,this.chartConfig.chartOrientation,e);i.push(...n.getDrawableElement());break;case"bar":n=new uve(t,this.boundingRect,this.xAxis,this.yAxis,this.chartConfig.chartOrientation,e);i.push(...n.getDrawableElement())}return i}},mt(fve,"getPlotComponent")}),xve=e(()=>{"use strict";ove(),dve(),vve(),tve(),yve=class{constructor(e,t,i,n){this.chartConfig=e,this.chartData=t,this.componentStore={title:lve(e,t,i,n),plot:fve(e,t,i),xAxis:ave(t.xAxis,e.xAxis,{titleColor:i.xAxisTitleColor,labelColor:i.xAxisLabelColor,tickColor:i.xAxisTickColor,axisLineColor:i.xAxisLineColor},n),yAxis:ave(t.yAxis,e.yAxis,{titleColor:i.yAxisTitleColor,labelColor:i.yAxisLabelColor,tickColor:i.yAxisTickColor,axisLineColor:i.yAxisLineColor},n)}}static{mt(this,"Orchestrator")}calculateVerticalSpace(){let e=this.chartConfig.width,t=this.chartConfig.height,i,n,r=Math.floor(e*this.chartConfig.plotReservedSpacePercent/100),s=Math.floor(t*this.chartConfig.plotReservedSpacePercent/100),a=this.componentStore.plot.calculateSpace({width:r,height:s});e-=a.width,t-=a.height,n=(a=this.componentStore.title.calculateSpace({width:this.chartConfig.width,height:t})).height,t-=a.height,this.componentStore.xAxis.setAxisPosition("bottom"),t-=this.componentStore.xAxis.calculateSpace({width:e,height:t}).height,this.componentStore.yAxis.setAxisPosition("left"),i=(a=this.componentStore.yAxis.calculateSpace({width:e,height:t})).width,0<(e-=a.width)&&(r+=e),0<t&&(s+=t),this.componentStore.plot.calculateSpace({width:r,height:s}),this.componentStore.plot.setBoundingBoxXY({x:i,y:n}),this.componentStore.xAxis.setRange([i,i+r]),this.componentStore.xAxis.setBoundingBoxXY({x:i,y:n+s}),this.componentStore.yAxis.setRange([n,n+s]),this.componentStore.yAxis.setBoundingBoxXY({x:0,y:n}),this.chartData.plots.some(e=>Ybe(e))&&this.componentStore.xAxis.recalculateOuterPaddingToDrawBar()}calculateHorizontalSpace(){let e=this.chartConfig.width,t=this.chartConfig.height,i,n,r,s=Math.floor(e*this.chartConfig.plotReservedSpacePercent/100),a=Math.floor(t*this.chartConfig.plotReservedSpacePercent/100),o=this.componentStore.plot.calculateSpace({width:s,height:a});e-=o.width,t-=o.height,i=(o=this.componentStore.title.calculateSpace({width:this.chartConfig.width,height:t})).height,t-=o.height,this.componentStore.xAxis.setAxisPosition("left"),e-=(o=this.componentStore.xAxis.calculateSpace({width:e,height:t})).width,n=o.width,this.componentStore.yAxis.setAxisPosition("top"),t-=(o=this.componentStore.yAxis.calculateSpace({width:e,height:t})).height,r=i+o.height,0<e&&(s+=e),0<t&&(a+=t),this.componentStore.plot.calculateSpace({width:s,height:a}),this.componentStore.plot.setBoundingBoxXY({x:n,y:r}),this.componentStore.yAxis.setRange([n,n+s]),this.componentStore.yAxis.setBoundingBoxXY({x:n,y:i}),this.componentStore.xAxis.setRange([r,r+a]),this.componentStore.xAxis.setBoundingBoxXY({x:0,y:r}),this.chartData.plots.some(e=>Ybe(e))&&this.componentStore.xAxis.recalculateOuterPaddingToDrawBar()}calculateSpace(){"horizontal"===this.chartConfig.chartOrientation?this.calculateHorizontalSpace():this.calculateVerticalSpace()}getDrawableElement(){this.calculateSpace();var e,t=[];this.componentStore.plot.setAxes(this.componentStore.xAxis,this.componentStore.yAxis);for(e of Object.values(this.componentStore))t.push(...e.getDrawableElements());return t}}}),wve=e(()=>{"use strict";xve(),bve=class{static{mt(this,"XYChartBuilder")}static build(e,t,i,n){return new yve(e,t,i,n).getDrawableElement()}}});function kve(){var e=ci(),t=Ii();return E_(e.xyChart,t.themeVariables.xyChart)}function Tve(){var e=Ii();return E_(vi.xyChart,e.xyChart)}function Sve(){return{yAxis:{type:"linear",title:"",min:1/0,max:-1/0},xAxis:{type:"band",title:"",categories:[]},title:"",plots:[]}}function _ve(e){var t=Ii();return Pc(e.trim(),t)}function Cve(e){Uve=e}function Ave(e){qve.chartOrientation="horizontal"===e?"horizontal":"vertical"}function Eve(e){Vve.xAxis.title=_ve(e.text)}function $ve(e,t){Vve.xAxis={type:"linear",title:Vve.xAxis.title,min:e,max:t},Yve=!0}function Lve(e){Vve.xAxis={type:"band",title:Vve.xAxis.title,categories:e.map(e=>_ve(e.text))},Yve=!0}function Rve(e){Vve.yAxis.title=_ve(e.text)}function Mve(e,t){Vve.yAxis={type:"linear",title:Vve.yAxis.title,min:e,max:t},Xve=!0}function Ive(e){var t=Math.min(...e),e=Math.max(...e),i=Kbe(Vve.yAxis)?Vve.yAxis.min:1/0,n=Kbe(Vve.yAxis)?Vve.yAxis.max:-1/0;Vve.yAxis={type:"linear",title:Vve.yAxis.title,min:Math.min(i,t),max:Math.max(n,e)}}function Nve(i){let e=[];var t;if(0!==i.length&&(Yve||(n=Kbe(Vve.xAxis)?Vve.xAxis.min:1/0,t=Kbe(Vve.xAxis)?Vve.xAxis.max:-1/0,$ve(Math.min(n,1),Math.max(t,i.length))),Xve||Ive(i),Xbe(Vve.xAxis)&&(e=Vve.xAxis.categories.map((e,t)=>[e,i[t]])),Kbe(Vve.xAxis))){var n=Vve.xAxis.min,r=Vve.xAxis.max,s=(r-n)/(i.length-1),a=[];for(let e=n;e<=r;e+=s)a.push(""+e);e=a.map((e,t)=>[e,i[t]])}return e}function Dve(e){return Gve[0===e?0:e%Gve.length]}function Ove(e,t){t=Nve(t);Vve.plots.push({type:"line",strokeFill:Dve(Hve),strokeWidth:2,data:t}),Hve++}function Pve(e,t){t=Nve(t);Vve.plots.push({type:"bar",fill:Dve(Hve),data:t}),Hve++}function Bve(){if(0===Vve.plots.length)throw Error("No Plot to render, please provide a plot with some data");return Vve.title=Sh(),bve.build(qve,Vve,Wve,Uve)}function Fve(){return Wve}function jve(){return qve}function zve(){return Vve}var Hve,Uve,qve,Wve,Vve,Gve,Yve,Xve,Kve,Zve,Qve,Jve,e2e=e(()=>{"use strict";Mn(),Ln(),_n(),sC(),hh(),_u(),wve(),tve(),Hve=0,qve=Tve(),Wve=kve(),Vve=Sve(),Gve=Wve.plotColorPalette.split(",").map(e=>e.trim()),Xve=Yve=!1,mt(kve,"getChartDefaultThemeConfig"),mt(Tve,"getChartDefaultConfig"),mt(Sve,"getChartDefaultData"),mt(_ve,"textSanitizer"),mt(Cve,"setTmpSVGG"),mt(Ave,"setOrientation"),mt(Eve,"setXAxisTitle"),mt($ve,"setXAxisRangeData"),mt(Lve,"setXAxisBand"),mt(Rve,"setYAxisTitle"),mt(Mve,"setYAxisRangeData"),mt(Ive,"setYAxisRangeFromPlotData"),mt(Nve,"transformDataWithoutCategory"),mt(Dve,"getPlotColorFromPalette"),mt(Ove,"setLineData"),mt(Pve,"setBarData"),mt(Bve,"getDrawableElem"),mt(Fve,"getChartThemeConfig"),mt(jve,"getChartConfig"),mt(zve,"getXYChartData"),Kve=mt(function(){bh(),Hve=0,qve=Tve(),Vve=Sve(),Wve=kve(),Gve=Wve.plotColorPalette.split(",").map(e=>e.trim()),Xve=Yve=!1},"clear"),Zve={getDrawableElem:Bve,clear:Kve,setAccTitle:vh,getAccTitle:xh,setDiagramTitle:Th,getDiagramTitle:Sh,getAccDescription:kh,setAccDescription:wh,setOrientation:Ave,setXAxisTitle:Eve,setXAxisRangeData:$ve,setXAxisBand:Lve,setYAxisTitle:Rve,setYAxisRangeData:Mve,setLineData:Ove,setBarData:Pve,setTmpSVGG:Cve,getChartThemeConfig:Fve,getChartConfig:jve,getXYChartData:zve}}),t2e=e(()=>{"use strict";t(),Mye(),uh(),Qve=mt((e,t,i,n)=>{let r=n.db,s=r.getChartThemeConfig(),a=r.getChartConfig(),o=r.getXYChartData().plots[0].data.map(e=>e[1]);function l(e){return"top"===e?"text-before-edge":"middle"}function c(e){return"left"===e?"start":"right"===e?"end":"middle"}function h(e){return`translate(${e.x}, ${e.y}) rotate(${e.rotation||0})`}mt(l,"getDominantBaseLine"),mt(c,"getTextAnchor"),mt(h,"getTextTransformation"),I.debug(`Rendering xychart chart
|
||
`+e);let u=_ye(t),d=u.append("g").attr("class","main"),p=d.append("rect").attr("width",a.width).attr("height",a.height).attr("class","background"),g=(rh(u,a.height,a.width,!0),u.attr("viewBox",`0 0 ${a.width} `+a.height),p.attr("fill",s.backgroundColor),r.setTmpSVGG(u.append("g").attr("class","mermaid-tmp-group")),r.getDrawableElem()),f={};function m(t){let i=d,n="";for(var[r]of t.entries()){let e=d;0<r&&f[n]&&(e=f[n]),n+=t[r],i=(i=f[n])||(f[n]=e.append("g").attr("class",t[r]))}return i}mt(m,"getGroup");for(var y of g)if(0!==y.data.length){var b=m(y.groupTexts);switch(y.type){case"rect":if(b.selectAll("rect").data(y.data).enter().append("rect").attr("x",e=>e.x).attr("y",e=>e.y).attr("width",e=>e.width).attr("height",e=>e.height).attr("fill",e=>e.fill).attr("stroke",e=>e.strokeFill).attr("stroke-width",e=>e.strokeWidth),a.showDataLabel)if("horizontal"===a.chartOrientation){let n=function(e,t){var{data:e,label:i}=e;return t*i.length*.7<=e.width-10};n,mt(n,"fitsHorizontally");var v=y.data.map((e,t)=>({data:e,label:o[t].toString()})).filter(e=>0<e.data.width&&0<e.data.height),x=v.map(e=>{let t=e["data"],i=.7*t.height;for(;!n(e,i)&&0<i;)--i;return i}),x=Math.floor(Math.min(...x));b.selectAll("text").data(v).enter().append("text").attr("x",e=>e.data.x+e.data.width-10).attr("y",e=>e.data.y+e.data.height/2).attr("text-anchor","end").attr("dominant-baseline","middle").attr("fill","black").attr("font-size",x+"px").text(e=>e.label)}else{let r=function(e,t,i){var{data:e,label:n}=e,n=t*n.length*.7,r=e.x+e.width/2,r=r-n/2>=e.x&&r+n/2<=e.x+e.width,n=e.y+i+t<=e.y+e.height;return r&&n};r,mt(r,"fitsInBar");var v=y.data.map((e,t)=>({data:e,label:o[t].toString()})).filter(e=>0<e.data.width&&0<e.data.height),x=v.map(e=>{let{data:t,label:i}=e,n=t.width/(.7*i.length);for(;!r(e,n,10)&&0<n;)--n;return n}),w=Math.floor(Math.min(...x));b.selectAll("text").data(v).enter().append("text").attr("x",e=>e.data.x+e.data.width/2).attr("y",e=>e.data.y+10).attr("text-anchor","middle").attr("dominant-baseline","hanging").attr("fill","black").attr("font-size",w+"px").text(e=>e.label)}break;case"text":b.selectAll("text").data(y.data).enter().append("text").attr("x",0).attr("y",0).attr("fill",e=>e.fill).attr("font-size",e=>e.fontSize).attr("dominant-baseline",e=>l(e.verticalPos)).attr("text-anchor",e=>c(e.horizontalPos)).attr("transform",e=>h(e)).text(e=>e.text);break;case"path":b.selectAll("path").data(y.data).enter().append("path").attr("d",e=>e.path).attr("fill",e=>e.fill||"none").attr("stroke",e=>e.strokeFill).attr("stroke-width",e=>e.strokeWidth)}}},"draw"),Jve={draw:Qve}}),i2e={};V(i2e,{diagram:()=>n2e});var n2e,r2e,s2e,a2e,o2e,l2e,c2e=e(()=>{"use strict";Gbe(),e2e(),t2e(),n2e={parser:Wbe,db:Zve,renderer:Jve}}),h2e=e(()=>{"use strict";function O(){this.yy={}}var e,t,i,n,r,s,a,o,l,c,h,u,d,p,g,f,m,y,b,v,x,w,k,T,S,_,C,P,B,F,j,z,H,U,q,W,V,A,G,Y,X,K,Z,Q,J,ee,te,ie,E,ne,re,$,L,R,M,I,N,D,se,ae,oe,le;e=mt(function(e,t,i,n){for(i=i||{},n=e.length;n--;i[e[n]]=t);return i},"o"),t=[1,3],i=[1,4],n=[1,5],r=[1,6],s=[5,6,8,9,11,13,21,22,23,24,41,42,43,44,45,46,54,72,74,77,89,90],a=[1,22],o=[2,7],l=[1,26],c=[1,27],h=[1,28],u=[1,29],d=[1,33],p=[1,34],g=[1,35],f=[1,36],m=[1,37],y=[1,38],b=[1,24],v=[1,31],x=[1,32],w=[1,30],k=[1,39],T=[1,40],S=[5,8,9,11,13,21,22,23,24,41,42,43,44,45,46,54,72,74,77,89,90],_=[1,61],C=[89,90],P=[5,8,9,11,13,21,22,23,24,27,29,41,42,43,44,45,46,54,61,63,72,74,75,76,77,80,81,82,83,84,85,86,87,88,89,90],B=[27,29],F=[1,70],j=[1,71],z=[1,72],H=[1,73],U=[1,74],q=[1,75],W=[1,76],V=[1,83],A=[1,80],G=[1,84],Y=[1,85],X=[1,86],K=[1,87],Z=[1,88],Q=[1,89],J=[1,90],ee=[1,91],te=[1,92],ie=[5,8,9,11,13,21,22,23,24,27,41,42,43,44,45,46,54,72,74,75,76,77,80,81,82,83,84,85,86,87,88,89,90],E=[63,64],ne=[1,101],re=[5,8,9,11,13,21,22,23,24,41,42,43,44,45,46,54,72,74,76,77,89,90],$=[5,8,9,11,13,21,22,23,24,41,42,43,44,45,46,54,72,74,75,76,77,80,81,82,83,84,85,86,87,88,89,90],L=[1,110],R=[1,106],M=[1,107],I=[1,108],N=[1,109],D=[1,111],se=[1,116],ae=[1,117],oe=[1,114],le=[1,115],t={trace:mt(function(){},"trace"),yy:{},symbols_:{error:2,start:3,directive:4,NEWLINE:5,RD:6,diagram:7,EOF:8,acc_title:9,acc_title_value:10,acc_descr:11,acc_descr_value:12,acc_descr_multiline_value:13,requirementDef:14,elementDef:15,relationshipDef:16,direction:17,styleStatement:18,classDefStatement:19,classStatement:20,direction_tb:21,direction_bt:22,direction_rl:23,direction_lr:24,requirementType:25,requirementName:26,STRUCT_START:27,requirementBody:28,STYLE_SEPARATOR:29,idList:30,ID:31,COLONSEP:32,id:33,TEXT:34,text:35,RISK:36,riskLevel:37,VERIFYMTHD:38,verifyType:39,STRUCT_STOP:40,REQUIREMENT:41,FUNCTIONAL_REQUIREMENT:42,INTERFACE_REQUIREMENT:43,PERFORMANCE_REQUIREMENT:44,PHYSICAL_REQUIREMENT:45,DESIGN_CONSTRAINT:46,LOW_RISK:47,MED_RISK:48,HIGH_RISK:49,VERIFY_ANALYSIS:50,VERIFY_DEMONSTRATION:51,VERIFY_INSPECTION:52,VERIFY_TEST:53,ELEMENT:54,elementName:55,elementBody:56,TYPE:57,type:58,DOCREF:59,ref:60,END_ARROW_L:61,relationship:62,LINE:63,END_ARROW_R:64,CONTAINS:65,COPIES:66,DERIVES:67,SATISFIES:68,VERIFIES:69,REFINES:70,TRACES:71,CLASSDEF:72,stylesOpt:73,CLASS:74,ALPHA:75,COMMA:76,STYLE:77,style:78,styleComponent:79,NUM:80,COLON:81,UNIT:82,SPACE:83,BRKT:84,PCT:85,MINUS:86,LABEL:87,SEMICOLON:88,unqString:89,qString:90,$accept:0,$end:1},terminals_:{2:"error",5:"NEWLINE",6:"RD",8:"EOF",9:"acc_title",10:"acc_title_value",11:"acc_descr",12:"acc_descr_value",13:"acc_descr_multiline_value",21:"direction_tb",22:"direction_bt",23:"direction_rl",24:"direction_lr",27:"STRUCT_START",29:"STYLE_SEPARATOR",31:"ID",32:"COLONSEP",34:"TEXT",36:"RISK",38:"VERIFYMTHD",40:"STRUCT_STOP",41:"REQUIREMENT",42:"FUNCTIONAL_REQUIREMENT",43:"INTERFACE_REQUIREMENT",44:"PERFORMANCE_REQUIREMENT",45:"PHYSICAL_REQUIREMENT",46:"DESIGN_CONSTRAINT",47:"LOW_RISK",48:"MED_RISK",49:"HIGH_RISK",50:"VERIFY_ANALYSIS",51:"VERIFY_DEMONSTRATION",52:"VERIFY_INSPECTION",53:"VERIFY_TEST",54:"ELEMENT",57:"TYPE",59:"DOCREF",61:"END_ARROW_L",63:"LINE",64:"END_ARROW_R",65:"CONTAINS",66:"COPIES",67:"DERIVES",68:"SATISFIES",69:"VERIFIES",70:"REFINES",71:"TRACES",72:"CLASSDEF",74:"CLASS",75:"ALPHA",76:"COMMA",77:"STYLE",80:"NUM",81:"COLON",82:"UNIT",83:"SPACE",84:"BRKT",85:"PCT",86:"MINUS",87:"LABEL",88:"SEMICOLON",89:"unqString",90:"qString"},productions_:[0,[3,3],[3,2],[3,4],[4,2],[4,2],[4,1],[7,0],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[17,1],[17,1],[17,1],[17,1],[14,5],[14,7],[28,5],[28,5],[28,5],[28,5],[28,2],[28,1],[25,1],[25,1],[25,1],[25,1],[25,1],[25,1],[37,1],[37,1],[37,1],[39,1],[39,1],[39,1],[39,1],[15,5],[15,7],[56,5],[56,5],[56,2],[56,1],[16,5],[16,5],[62,1],[62,1],[62,1],[62,1],[62,1],[62,1],[62,1],[19,3],[20,3],[20,3],[30,1],[30,3],[30,1],[30,3],[18,3],[73,1],[73,3],[78,1],[78,2],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[26,1],[26,1],[33,1],[33,1],[35,1],[35,1],[55,1],[55,1],[58,1],[58,1],[60,1],[60,1]],performAction:mt(function(e,t,i,n,r,s,a){var o=s.length-1;switch(r){case 4:this.$=s[o].trim(),n.setAccTitle(this.$);break;case 5:case 6:this.$=s[o].trim(),n.setAccDescription(this.$);break;case 7:this.$=[];break;case 17:n.setDirection("TB");break;case 18:n.setDirection("BT");break;case 19:n.setDirection("RL");break;case 20:n.setDirection("LR");break;case 21:n.addRequirement(s[o-3],s[o-4]);break;case 22:n.addRequirement(s[o-5],s[o-6]),n.setClass([s[o-5]],s[o-3]);break;case 23:n.setNewReqId(s[o-2]);break;case 24:n.setNewReqText(s[o-2]);break;case 25:n.setNewReqRisk(s[o-2]);break;case 26:n.setNewReqVerifyMethod(s[o-2]);break;case 29:this.$=n.RequirementType.REQUIREMENT;break;case 30:this.$=n.RequirementType.FUNCTIONAL_REQUIREMENT;break;case 31:this.$=n.RequirementType.INTERFACE_REQUIREMENT;break;case 32:this.$=n.RequirementType.PERFORMANCE_REQUIREMENT;break;case 33:this.$=n.RequirementType.PHYSICAL_REQUIREMENT;break;case 34:this.$=n.RequirementType.DESIGN_CONSTRAINT;break;case 35:this.$=n.RiskLevel.LOW_RISK;break;case 36:this.$=n.RiskLevel.MED_RISK;break;case 37:this.$=n.RiskLevel.HIGH_RISK;break;case 38:this.$=n.VerifyType.VERIFY_ANALYSIS;break;case 39:this.$=n.VerifyType.VERIFY_DEMONSTRATION;break;case 40:this.$=n.VerifyType.VERIFY_INSPECTION;break;case 41:this.$=n.VerifyType.VERIFY_TEST;break;case 42:n.addElement(s[o-3]);break;case 43:n.addElement(s[o-5]),n.setClass([s[o-5]],s[o-3]);break;case 44:n.setNewElementType(s[o-2]);break;case 45:n.setNewElementDocRef(s[o-2]);break;case 48:n.addRelationship(s[o-2],s[o],s[o-4]);break;case 49:n.addRelationship(s[o-2],s[o-4],s[o]);break;case 50:this.$=n.Relationships.CONTAINS;break;case 51:this.$=n.Relationships.COPIES;break;case 52:this.$=n.Relationships.DERIVES;break;case 53:this.$=n.Relationships.SATISFIES;break;case 54:this.$=n.Relationships.VERIFIES;break;case 55:this.$=n.Relationships.REFINES;break;case 56:this.$=n.Relationships.TRACES;break;case 57:this.$=s[o-2],n.defineClass(s[o-1],s[o]);break;case 58:n.setClass(s[o-1],s[o]);break;case 59:n.setClass([s[o-2]],s[o]);break;case 60:case 62:this.$=[s[o]];break;case 61:case 63:this.$=s[o-2].concat([s[o]]);break;case 64:this.$=s[o-2],n.setCssStyle(s[o-1],s[o]);break;case 65:this.$=[s[o]];break;case 66:s[o-2].push(s[o]),this.$=s[o-2];break;case 68:this.$=s[o-1]+s[o]}},"anonymous"),table:[{3:1,4:2,6:t,9:i,11:n,13:r},{1:[3]},{3:8,4:2,5:[1,7],6:t,9:i,11:n,13:r},{5:[1,9]},{10:[1,10]},{12:[1,11]},e(s,[2,6]),{3:12,4:2,6:t,9:i,11:n,13:r},{1:[2,2]},{4:17,5:a,7:13,8:o,9:i,11:n,13:r,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:l,22:c,23:h,24:u,25:23,33:25,41:d,42:p,43:g,44:f,45:m,46:y,54:b,72:v,74:x,77:w,89:k,90:T},e(s,[2,4]),e(s,[2,5]),{1:[2,1]},{8:[1,41]},{4:17,5:a,7:42,8:o,9:i,11:n,13:r,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:l,22:c,23:h,24:u,25:23,33:25,41:d,42:p,43:g,44:f,45:m,46:y,54:b,72:v,74:x,77:w,89:k,90:T},{4:17,5:a,7:43,8:o,9:i,11:n,13:r,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:l,22:c,23:h,24:u,25:23,33:25,41:d,42:p,43:g,44:f,45:m,46:y,54:b,72:v,74:x,77:w,89:k,90:T},{4:17,5:a,7:44,8:o,9:i,11:n,13:r,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:l,22:c,23:h,24:u,25:23,33:25,41:d,42:p,43:g,44:f,45:m,46:y,54:b,72:v,74:x,77:w,89:k,90:T},{4:17,5:a,7:45,8:o,9:i,11:n,13:r,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:l,22:c,23:h,24:u,25:23,33:25,41:d,42:p,43:g,44:f,45:m,46:y,54:b,72:v,74:x,77:w,89:k,90:T},{4:17,5:a,7:46,8:o,9:i,11:n,13:r,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:l,22:c,23:h,24:u,25:23,33:25,41:d,42:p,43:g,44:f,45:m,46:y,54:b,72:v,74:x,77:w,89:k,90:T},{4:17,5:a,7:47,8:o,9:i,11:n,13:r,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:l,22:c,23:h,24:u,25:23,33:25,41:d,42:p,43:g,44:f,45:m,46:y,54:b,72:v,74:x,77:w,89:k,90:T},{4:17,5:a,7:48,8:o,9:i,11:n,13:r,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:l,22:c,23:h,24:u,25:23,33:25,41:d,42:p,43:g,44:f,45:m,46:y,54:b,72:v,74:x,77:w,89:k,90:T},{4:17,5:a,7:49,8:o,9:i,11:n,13:r,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:l,22:c,23:h,24:u,25:23,33:25,41:d,42:p,43:g,44:f,45:m,46:y,54:b,72:v,74:x,77:w,89:k,90:T},{4:17,5:a,7:50,8:o,9:i,11:n,13:r,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:l,22:c,23:h,24:u,25:23,33:25,41:d,42:p,43:g,44:f,45:m,46:y,54:b,72:v,74:x,77:w,89:k,90:T},{26:51,89:[1,52],90:[1,53]},{55:54,89:[1,55],90:[1,56]},{29:[1,59],61:[1,57],63:[1,58]},e(S,[2,17]),e(S,[2,18]),e(S,[2,19]),e(S,[2,20]),{30:60,33:62,75:_,89:k,90:T},{30:63,33:62,75:_,89:k,90:T},{30:64,33:62,75:_,89:k,90:T},e(C,[2,29]),e(C,[2,30]),e(C,[2,31]),e(C,[2,32]),e(C,[2,33]),e(C,[2,34]),e(P,[2,81]),e(P,[2,82]),{1:[2,3]},{8:[2,8]},{8:[2,9]},{8:[2,10]},{8:[2,11]},{8:[2,12]},{8:[2,13]},{8:[2,14]},{8:[2,15]},{8:[2,16]},{27:[1,65],29:[1,66]},e(B,[2,79]),e(B,[2,80]),{27:[1,67],29:[1,68]},e(B,[2,85]),e(B,[2,86]),{62:69,65:F,66:j,67:z,68:H,69:U,70:q,71:W},{62:77,65:F,66:j,67:z,68:H,69:U,70:q,71:W},{30:78,33:62,75:_,89:k,90:T},{73:79,75:V,76:A,78:81,79:82,80:G,81:Y,82:X,83:K,84:Z,85:Q,86:J,87:ee,88:te},e(ie,[2,60]),e(ie,[2,62]),{73:93,75:V,76:A,78:81,79:82,80:G,81:Y,82:X,83:K,84:Z,85:Q,86:J,87:ee,88:te},{30:94,33:62,75:_,76:A,89:k,90:T},{5:[1,95]},{30:96,33:62,75:_,89:k,90:T},{5:[1,97]},{30:98,33:62,75:_,89:k,90:T},{63:[1,99]},e(E,[2,50]),e(E,[2,51]),e(E,[2,52]),e(E,[2,53]),e(E,[2,54]),e(E,[2,55]),e(E,[2,56]),{64:[1,100]},e(S,[2,59],{76:A}),e(S,[2,64],{76:ne}),{33:103,75:[1,102],89:k,90:T},e(re,[2,65],{79:104,75:V,80:G,81:Y,82:X,83:K,84:Z,85:Q,86:J,87:ee,88:te}),e($,[2,67]),e($,[2,69]),e($,[2,70]),e($,[2,71]),e($,[2,72]),e($,[2,73]),e($,[2,74]),e($,[2,75]),e($,[2,76]),e($,[2,77]),e($,[2,78]),e(S,[2,57],{76:ne}),e(S,[2,58],{76:A}),{5:L,28:105,31:R,34:M,36:I,38:N,40:D},{27:[1,112],76:A},{5:se,40:ae,56:113,57:oe,59:le},{27:[1,118],76:A},{33:119,89:k,90:T},{33:120,89:k,90:T},{75:V,78:121,79:82,80:G,81:Y,82:X,83:K,84:Z,85:Q,86:J,87:ee,88:te},e(ie,[2,61]),e(ie,[2,63]),e($,[2,68]),e(S,[2,21]),{32:[1,122]},{32:[1,123]},{32:[1,124]},{32:[1,125]},{5:L,28:126,31:R,34:M,36:I,38:N,40:D},e(S,[2,28]),{5:[1,127]},e(S,[2,42]),{32:[1,128]},{32:[1,129]},{5:se,40:ae,56:130,57:oe,59:le},e(S,[2,47]),{5:[1,131]},e(S,[2,48]),e(S,[2,49]),e(re,[2,66],{79:104,75:V,80:G,81:Y,82:X,83:K,84:Z,85:Q,86:J,87:ee,88:te}),{33:132,89:k,90:T},{35:133,89:[1,134],90:[1,135]},{37:136,47:[1,137],48:[1,138],49:[1,139]},{39:140,50:[1,141],51:[1,142],52:[1,143],53:[1,144]},e(S,[2,27]),{5:L,28:145,31:R,34:M,36:I,38:N,40:D},{58:146,89:[1,147],90:[1,148]},{60:149,89:[1,150],90:[1,151]},e(S,[2,46]),{5:se,40:ae,56:152,57:oe,59:le},{5:[1,153]},{5:[1,154]},{5:[2,83]},{5:[2,84]},{5:[1,155]},{5:[2,35]},{5:[2,36]},{5:[2,37]},{5:[1,156]},{5:[2,38]},{5:[2,39]},{5:[2,40]},{5:[2,41]},e(S,[2,22]),{5:[1,157]},{5:[2,87]},{5:[2,88]},{5:[1,158]},{5:[2,89]},{5:[2,90]},e(S,[2,43]),{5:L,28:159,31:R,34:M,36:I,38:N,40:D},{5:L,28:160,31:R,34:M,36:I,38:N,40:D},{5:L,28:161,31:R,34:M,36:I,38:N,40:D},{5:L,28:162,31:R,34:M,36:I,38:N,40:D},{5:se,40:ae,56:163,57:oe,59:le},{5:se,40:ae,56:164,57:oe,59:le},e(S,[2,23]),e(S,[2,24]),e(S,[2,25]),e(S,[2,26]),e(S,[2,44]),e(S,[2,45])],defaultActions:{8:[2,2],12:[2,1],41:[2,3],42:[2,8],43:[2,9],44:[2,10],45:[2,11],46:[2,12],47:[2,13],48:[2,14],49:[2,15],50:[2,16],134:[2,83],135:[2,84],137:[2,35],138:[2,36],139:[2,37],141:[2,38],142:[2,39],143:[2,40],144:[2,41],147:[2,87],148:[2,88],150:[2,89],151:[2,90]},parseError:mt(function(e,t){var i;if(!t.recoverable)throw(i=new Error(e)).hash=t,i;this.trace(e)},"parseError"),parse:mt(function(e){var t,i=this,n=[0],r=[],s=[null],a=[],o=this.table,l="",c=0,h=0,u=0,d=1,p=a.slice.call(arguments,1),g=Object.create(this.lexer),f={yy:{}};for(t in this.yy)Object.prototype.hasOwnProperty.call(this.yy,t)&&(f.yy[t]=this.yy[t]);g.setInput(e,f.yy),f.yy.lexer=g,f.yy.parser=this,"u"<typeof g.yylloc&&(g.yylloc={});var m=g.yylloc,y=(a.push(m),g.options&&g.options.ranges);function b(){var e=r.pop()||g.lex()||d;return"number"!=typeof e&&(e instanceof Array&&(e=(r=e).pop()),e=i.symbols_[e]||e),e}"function"==typeof f.yy.parseError?this.parseError=f.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError,mt(function(e){n.length=n.length-2*e,s.length=s.length-e,a.length=a.length-e},"popStack"),mt(b,"lex");for(var v,x,w,k,T,S,_,C={};;){if(w=n[n.length-1],"u"<typeof(k=this.defaultActions[w]||((null===v||"u"<typeof v)&&(v=b()),o[w]&&o[w][v]))||!k.length||!k[0]){var A="",E=[];for(T in o[w])this.terminals_[T]&&2<T&&E.push("'"+this.terminals_[T]+"'");A=g.showPosition?"Parse error on line "+(c+1)+`:
|
||
`+g.showPosition()+`
|
||
Expecting `+E.join(", ")+", got '"+(this.terminals_[v]||v)+"'":"Parse error on line "+(c+1)+": Unexpected "+(v==d?"end of input":"'"+(this.terminals_[v]||v)+"'"),this.parseError(A,{text:g.match,token:this.terminals_[v]||v,line:g.yylineno,loc:m,expected:E})}if(k[0]instanceof Array&&1<k.length)throw new Error("Parse Error: multiple actions possible at state: "+w+", token: "+v);switch(k[0]){case 1:n.push(v),s.push(g.yytext),a.push(g.yylloc),n.push(k[1]),v=null,x?(v=x,x=null):(h=g.yyleng,l=g.yytext,c=g.yylineno,m=g.yylloc,0<u&&u--);break;case 2:if(S=this.productions_[k[1]][1],C.$=s[s.length-S],C._$={first_line:a[a.length-(S||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(S||1)].first_column,last_column:a[a.length-1].last_column},y&&(C._$.range=[a[a.length-(S||1)].range[0],a[a.length-1].range[1]]),typeof(_=this.performAction.apply(C,[l,h,c,f.yy,k[1],s,a].concat(p)))<"u")return _;S&&(n=n.slice(0,-1*S*2),s=s.slice(0,-1*S),a=a.slice(0,-1*S)),n.push(this.productions_[k[1]][0]),s.push(C.$),a.push(C._$),_=o[n[n.length-2]][n[n.length-1]],n.push(_);break;case 3:return!0}}return!0},"parse")},s={EOF:1,parseError:mt(function(e,t){if(!this.yy.parser)throw new Error(e);this.yy.parser.parseError(e,t)},"parseError"),setInput:mt(function(e,t){return this.yy=t||this.yy||{},this._input=e,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:mt(function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.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),e},"input"),unput:mt(function(e){var t=e.length,i=e.split(/(?:\r\n?|\n)/g),e=(this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t,this.match.split(/(?:\r\n?|\n)/g)),n=(this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),i.length-1&&(this.yylineno-=i.length-1),this.yylloc.range);return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:i?(i.length===e.length?this.yylloc.first_column:0)+e[e.length-i.length].length-i[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[n[0],n[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},"unput"),more:mt(function(){return this._more=!0,this},"more"),reject:mt(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).
|
||
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"reject"),less:mt(function(e){this.unput(this.match.slice(e))},"less"),pastInput:mt(function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(20<e.length?"...":"")+e.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:mt(function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(20<e.length?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:mt(function(){var e=this.pastInput(),t=new Array(e.length+1).join("-");return e+this.upcomingInput()+`
|
||
`+t+"^"},"showPosition"),test_match:mt(function(e,t){var i,n;if(this.options.backtrack_lexer&&(n={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)&&(n.yylloc.range=this.yylloc.range.slice(0)),(i=e[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=i.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:i?i[i.length-1].length-i[i.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+e[0].length},this.yytext+=e[0],this.match+=e[0],this.matches=e,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(e[0].length),this.matched+=e[0],i=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),i)return i;if(this._backtrack)for(var r in n)this[r]=n[r];return!1},"test_match"),next:mt(function(){if(this.done)return this.EOF;var e,t,i,n;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var r=this._currentRules(),s=0;s<r.length;s++)if((i=this._input.match(this.rules[r[s]]))&&(!t||i[0].length>t[0].length)){if(t=i,n=s,this.options.backtrack_lexer){if(!1!==(e=this.test_match(i,r[s])))return e;if(this._backtrack){t=!1;continue}return!1}if(!this.options.flex)break}return t?!1!==(e=this.test_match(t,r[n]))&&e:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
|
||
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:mt(function(){return this.next()||this.lex()},"lex"),begin:mt(function(e){this.conditionStack.push(e)},"begin"),popState:mt(function(){return 0<this.conditionStack.length-1?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:mt(function(){return(this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]]:this.conditions.INITIAL).rules},"_currentRules"),topState:mt(function(e){return 0<=(e=this.conditionStack.length-1-Math.abs(e||0))?this.conditionStack[e]:"INITIAL"},"topState"),pushState:mt(function(e){this.begin(e)},"pushState"),stateStackSize:mt(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:mt(function(e,t,i,n){switch(i){case 0:return"title";case 1:return this.begin("acc_title"),9;case 2:return this.popState(),"acc_title_value";case 3:return this.begin("acc_descr"),11;case 4:return this.popState(),"acc_descr_value";case 5:this.begin("acc_descr_multiline");break;case 6:this.popState();break;case 7:return"acc_descr_multiline_value";case 8:return 21;case 9:return 22;case 10:return 23;case 11:return 24;case 12:return 5;case 13:case 14:case 15:break;case 16:return 8;case 17:return 6;case 18:return 27;case 19:return 40;case 20:return 29;case 21:return 32;case 22:return 31;case 23:return 34;case 24:return 36;case 25:return 38;case 26:return 41;case 27:return 42;case 28:return 43;case 29:return 44;case 30:return 45;case 31:return 46;case 32:return 47;case 33:return 48;case 34:return 49;case 35:return 50;case 36:return 51;case 37:return 52;case 38:return 53;case 39:return 54;case 40:return 65;case 41:return 66;case 42:return 67;case 43:return 68;case 44:return 69;case 45:return 70;case 46:return 71;case 47:return 57;case 48:return 59;case 49:return this.begin("style"),77;case 50:return 75;case 51:return 81;case 52:return 88;case 53:return"PERCENT";case 54:return 86;case 55:return 84;case 56:break;case 57:this.begin("string");break;case 58:this.popState();break;case 59:return this.begin("style"),72;case 60:return this.begin("style"),74;case 61:return 61;case 62:return 64;case 63:return 63;case 64:this.begin("string");break;case 65:this.popState();break;case 66:return"qString";case 67:return t.yytext=t.yytext.trim(),89;case 68:return 75;case 69:return 80;case 70:return 76}},"anonymous"),rules:[/^(?:title\s[^#\n;]+)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:.*direction\s+TB[^\n]*)/i,/^(?:.*direction\s+BT[^\n]*)/i,/^(?:.*direction\s+RL[^\n]*)/i,/^(?:.*direction\s+LR[^\n]*)/i,/^(?:(\r?\n)+)/i,/^(?:\s+)/i,/^(?:#[^\n]*)/i,/^(?:%[^\n]*)/i,/^(?:$)/i,/^(?:requirementDiagram\b)/i,/^(?:\{)/i,/^(?:\})/i,/^(?::{3})/i,/^(?::)/i,/^(?:id\b)/i,/^(?:text\b)/i,/^(?:risk\b)/i,/^(?:verifyMethod\b)/i,/^(?:requirement\b)/i,/^(?:functionalRequirement\b)/i,/^(?:interfaceRequirement\b)/i,/^(?:performanceRequirement\b)/i,/^(?:physicalRequirement\b)/i,/^(?:designConstraint\b)/i,/^(?:low\b)/i,/^(?:medium\b)/i,/^(?:high\b)/i,/^(?:analysis\b)/i,/^(?:demonstration\b)/i,/^(?:inspection\b)/i,/^(?:test\b)/i,/^(?:element\b)/i,/^(?:contains\b)/i,/^(?:copies\b)/i,/^(?:derives\b)/i,/^(?:satisfies\b)/i,/^(?:verifies\b)/i,/^(?:refines\b)/i,/^(?:traces\b)/i,/^(?:type\b)/i,/^(?:docref\b)/i,/^(?:style\b)/i,/^(?:\w+)/i,/^(?::)/i,/^(?:;)/i,/^(?:%)/i,/^(?:-)/i,/^(?:#)/i,/^(?: )/i,/^(?:["])/i,/^(?:\n)/i,/^(?:classDef\b)/i,/^(?:class\b)/i,/^(?:<-)/i,/^(?:->)/i,/^(?:-)/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:[\w][^:,\r\n\{\<\>\-\=]*)/i,/^(?:\w+)/i,/^(?:[0-9]+)/i,/^(?:,)/i],conditions:{acc_descr_multiline:{rules:[6,7,68,69,70],inclusive:!1},acc_descr:{rules:[4,68,69,70],inclusive:!1},acc_title:{rules:[2,68,69,70],inclusive:!1},style:{rules:[50,51,52,53,54,55,56,57,58,68,69,70],inclusive:!1},unqString:{rules:[68,69,70],inclusive:!1},token:{rules:[68,69,70],inclusive:!1},string:{rules:[65,66,68,69,70],inclusive:!1},INITIAL:{rules:[0,1,3,5,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,59,60,61,62,63,64,67,68,69,70],inclusive:!0}}},t.lexer=s,mt(O,"Parser"),(r2e=new((O.prototype=t).Parser=O)).parser=r2e,s2e=r2e}),u2e=e(()=>{"use strict";Cu(),t(),_u(),a2e=class{constructor(){this.relations=[],this.latestRequirement=this.getInitialRequirement(),this.requirements=new Map,this.latestElement=this.getInitialElement(),this.elements=new Map,this.classes=new Map,this.direction="TB",this.RequirementType={REQUIREMENT:"Requirement",FUNCTIONAL_REQUIREMENT:"Functional Requirement",INTERFACE_REQUIREMENT:"Interface Requirement",PERFORMANCE_REQUIREMENT:"Performance Requirement",PHYSICAL_REQUIREMENT:"Physical Requirement",DESIGN_CONSTRAINT:"Design Constraint"},this.RiskLevel={LOW_RISK:"Low",MED_RISK:"Medium",HIGH_RISK:"High"},this.VerifyType={VERIFY_ANALYSIS:"Analysis",VERIFY_DEMONSTRATION:"Demonstration",VERIFY_INSPECTION:"Inspection",VERIFY_TEST:"Test"},this.Relationships={CONTAINS:"contains",COPIES:"copies",DERIVES:"derives",SATISFIES:"satisfies",VERIFIES:"verifies",REFINES:"refines",TRACES:"traces"},this.setAccTitle=vh,this.getAccTitle=xh,this.setAccDescription=wh,this.getAccDescription=kh,this.setDiagramTitle=Th,this.getDiagramTitle=Sh,this.getConfig=mt(()=>N().requirement,"getConfig"),this.clear(),this.setDirection=this.setDirection.bind(this),this.addRequirement=this.addRequirement.bind(this),this.setNewReqId=this.setNewReqId.bind(this),this.setNewReqRisk=this.setNewReqRisk.bind(this),this.setNewReqText=this.setNewReqText.bind(this),this.setNewReqVerifyMethod=this.setNewReqVerifyMethod.bind(this),this.addElement=this.addElement.bind(this),this.setNewElementType=this.setNewElementType.bind(this),this.setNewElementDocRef=this.setNewElementDocRef.bind(this),this.addRelationship=this.addRelationship.bind(this),this.setCssStyle=this.setCssStyle.bind(this),this.setClass=this.setClass.bind(this),this.defineClass=this.defineClass.bind(this),this.setAccTitle=this.setAccTitle.bind(this),this.setAccDescription=this.setAccDescription.bind(this)}static{mt(this,"RequirementDB")}getDirection(){return this.direction}setDirection(e){this.direction=e}resetLatestRequirement(){this.latestRequirement=this.getInitialRequirement()}resetLatestElement(){this.latestElement=this.getInitialElement()}getInitialRequirement(){return{requirementId:"",text:"",risk:"",verifyMethod:"",name:"",type:"",cssStyles:[],classes:["default"]}}getInitialElement(){return{name:"",type:"",docRef:"",cssStyles:[],classes:["default"]}}addRequirement(e,t){return this.requirements.has(e)||this.requirements.set(e,{name:e,type:t,requirementId:this.latestRequirement.requirementId,text:this.latestRequirement.text,risk:this.latestRequirement.risk,verifyMethod:this.latestRequirement.verifyMethod,cssStyles:[],classes:["default"]}),this.resetLatestRequirement(),this.requirements.get(e)}getRequirements(){return this.requirements}setNewReqId(e){void 0!==this.latestRequirement&&(this.latestRequirement.requirementId=e)}setNewReqText(e){void 0!==this.latestRequirement&&(this.latestRequirement.text=e)}setNewReqRisk(e){void 0!==this.latestRequirement&&(this.latestRequirement.risk=e)}setNewReqVerifyMethod(e){void 0!==this.latestRequirement&&(this.latestRequirement.verifyMethod=e)}addElement(e){return this.elements.has(e)||(this.elements.set(e,{name:e,type:this.latestElement.type,docRef:this.latestElement.docRef,cssStyles:[],classes:["default"]}),I.info("Added new element: ",e)),this.resetLatestElement(),this.elements.get(e)}getElements(){return this.elements}setNewElementType(e){void 0!==this.latestElement&&(this.latestElement.type=e)}setNewElementDocRef(e){void 0!==this.latestElement&&(this.latestElement.docRef=e)}addRelationship(e,t,i){this.relations.push({type:e,src:t,dst:i})}getRelationships(){return this.relations}clear(){this.relations=[],this.resetLatestRequirement(),this.requirements=new Map,this.resetLatestElement(),this.elements=new Map,this.classes=new Map,bh()}setCssStyle(e,t){for(var i of e){var n,r=this.requirements.get(i)??this.elements.get(i);if(!t||!r)return;for(n of t)n.includes(",")?r.cssStyles.push(...n.split(",")):r.cssStyles.push(n)}}setClass(e,t){for(var i of e){var n=this.requirements.get(i)??this.elements.get(i);if(n)for(var r of t){n.classes.push(r);r=this.classes.get(r)?.styles;r&&n.cssStyles.push(...r)}}}defineClass(e,n){for(let t of e){let i=this.classes.get(t);void 0===i&&(i={id:t,styles:[],textStyles:[]},this.classes.set(t,i)),n&&n.forEach(function(e){var t;/color/.exec(e)&&(t=e.replace("fill","bgFill"),i.textStyles.push(t)),i.styles.push(e)}),this.requirements.forEach(e=>{e.classes.includes(t)&&e.cssStyles.push(...n.flatMap(e=>e.split(",")))}),this.elements.forEach(e=>{e.classes.includes(t)&&e.cssStyles.push(...n.flatMap(e=>e.split(",")))})}}getClasses(){return this.classes}getData(){var e,t,i,n=N(),r=[],s=[];for(e of this.requirements.values()){var a=e;a.id=e.name,a.cssStyles=e.cssStyles,a.cssClasses=e.classes.join(" "),a.shape="requirementBox",a.look=n.look,r.push(a)}for(t of this.elements.values()){var o=t;o.shape="requirementBox",o.look=n.look,o.id=t.name,o.cssStyles=t.cssStyles,o.cssClasses=t.classes.join(" "),r.push(o)}for(i of this.relations){var l=i.type===this.Relationships.CONTAINS,l={id:""+i.src+`-${i.dst}-0`,start:this.requirements.get(i.src)?.name??this.elements.get(i.src)?.name,end:this.requirements.get(i.dst)?.name??this.elements.get(i.dst)?.name,label:`<<${i.type}>>`,classes:"relationshipLine",style:["fill:none",l?"":"stroke-dasharray: 10,7"],labelpos:"c",thickness:"normal",type:"normal",pattern:l?"normal":"dashed",arrowTypeStart:l?"requirement_contains":"",arrowTypeEnd:l?"":"requirement_arrow",look:n.look};s.push(l)}return{nodes:r,edges:s,other:{},config:n,direction:this.getDirection()}}}}),d2e=e(()=>{"use strict";o2e=mt(e=>`
|
||
|
||
marker {
|
||
fill: ${e.relationColor};
|
||
stroke: ${e.relationColor};
|
||
}
|
||
|
||
marker.cross {
|
||
stroke: ${e.lineColor};
|
||
}
|
||
|
||
svg {
|
||
font-family: ${e.fontFamily};
|
||
font-size: ${e.fontSize};
|
||
}
|
||
|
||
.reqBox {
|
||
fill: ${e.requirementBackground};
|
||
fill-opacity: 1.0;
|
||
stroke: ${e.requirementBorderColor};
|
||
stroke-width: ${e.requirementBorderSize};
|
||
}
|
||
|
||
.reqTitle, .reqLabel{
|
||
fill: ${e.requirementTextColor};
|
||
}
|
||
.reqLabelBox {
|
||
fill: ${e.relationLabelBackground};
|
||
fill-opacity: 1.0;
|
||
}
|
||
|
||
.req-title-line {
|
||
stroke: ${e.requirementBorderColor};
|
||
stroke-width: ${e.requirementBorderSize};
|
||
}
|
||
.relationshipLine {
|
||
stroke: ${e.relationColor};
|
||
stroke-width: 1;
|
||
}
|
||
.relationshipLabel {
|
||
fill: ${e.relationLabelColor};
|
||
}
|
||
.divider {
|
||
stroke: ${e.nodeBorder};
|
||
stroke-width: 1;
|
||
}
|
||
.label {
|
||
font-family: ${e.fontFamily};
|
||
color: ${e.nodeTextColor||e.textColor};
|
||
}
|
||
.label text,span {
|
||
fill: ${e.nodeTextColor||e.textColor};
|
||
color: ${e.nodeTextColor||e.textColor};
|
||
}
|
||
.labelBkg {
|
||
background-color: ${e.edgeLabelBackground};
|
||
}
|
||
|
||
`,"getStyles"),l2e=o2e}),p2e={};V(p2e,{draw:()=>g2e});var g2e,f2e=e(()=>{"use strict";Cu(),t(),QN(),ZK(),QK(),sC(),g2e=mt(async function(e,t,i,n){I.info("REF0:"),I.info("Drawing requirement diagram (unified)",t);var{securityLevel:r,state:s,layout:a}=N(),o=n.db.getData(),r=FN(t,r);o.type=n.type,o.layoutAlgorithm=DK(a),o.nodeSpacing=s?.nodeSpacing??50,o.rankSpacing=s?.rankSpacing??50,o.markers=["requirement_contains","requirement_arrow"],o.diagramId=t,await NK(o,r);tC.insertTitle(r,"requirementDiagramTitleText",s?.titleTopMargin??25,n.db.getDiagramTitle()),OK(r,8,"requirementDiagram",s?.useMaxWidth??!0)},"draw")}),m2e={};V(m2e,{diagram:()=>y2e});var y2e,b2e,v2e,x2e,w2e,k2e,T2e,S2e,_2e,C2e,A2e,E2e,$2e,L2e,R2e,M2e,I2e,N2e,D2e,O2e,P2e,B2e,F2e,j2e,z2e,H2e,U2e,q2e,W2e,V2e,G2e,Y2e,X2e,K2e,Z2e,Q2e,J2e,e4e,t4e,i4e,n4e=e(()=>{"use strict";h2e(),u2e(),d2e(),f2e(),y2e={parser:s2e,get db(){return new a2e},renderer:p2e,styles:l2e}}),r4e=e(()=>{"use strict";function O(){this.yy={}}var e,t,i,P,n,r,s,a,o,l,c,h,u,d,p,g,f,m,y,b,v,x,w,k,T,S,_,C,A,E,$,L,R,M,I,B,F,j,z,H,N,D;e=mt(function(e,t,i,n){for(i=i||{},n=e.length;n--;i[e[n]]=t);return i},"o"),t=[1,2],i=[1,3],P=[1,4],n=[2,4],r=[1,9],s=[1,11],a=[1,13],o=[1,14],l=[1,16],c=[1,17],h=[1,18],u=[1,24],d=[1,25],p=[1,26],g=[1,27],f=[1,28],m=[1,29],y=[1,30],b=[1,31],v=[1,32],x=[1,33],w=[1,34],k=[1,35],T=[1,36],S=[1,37],_=[1,38],C=[1,39],A=[1,41],E=[1,42],$=[1,43],L=[1,44],R=[1,45],M=[1,46],I=[1,4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,47,48,49,50,52,53,54,59,60,61,62,70],B=[4,5,16,50,52,53],F=[4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,50,52,53,54,59,60,61,62,70],j=[4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,49,50,52,53,54,59,60,61,62,70],z=[4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,48,50,52,53,54,59,60,61,62,70],H=[4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,47,50,52,53,54,59,60,61,62,70],N=[68,69,70],D=[1,122],t={trace:mt(function(){},"trace"),yy:{},symbols_:{error:2,start:3,SPACE:4,NEWLINE:5,SD:6,document:7,line:8,statement:9,box_section:10,box_line:11,participant_statement:12,create:13,box:14,restOfLine:15,end:16,signal:17,autonumber:18,NUM:19,off:20,activate:21,actor:22,deactivate:23,note_statement:24,links_statement:25,link_statement:26,properties_statement:27,details_statement:28,title:29,legacy_title:30,acc_title:31,acc_title_value:32,acc_descr:33,acc_descr_value:34,acc_descr_multiline_value:35,loop:36,rect:37,opt:38,alt:39,else_sections:40,par:41,par_sections:42,par_over:43,critical:44,option_sections:45,break:46,option:47,and:48,else:49,participant:50,AS:51,participant_actor:52,destroy:53,note:54,placement:55,text2:56,over:57,actor_pair:58,links:59,link:60,properties:61,details:62,spaceList:63,",":64,left_of:65,right_of:66,signaltype:67,"+":68,"-":69,ACTOR:70,SOLID_OPEN_ARROW:71,DOTTED_OPEN_ARROW:72,SOLID_ARROW:73,BIDIRECTIONAL_SOLID_ARROW:74,DOTTED_ARROW:75,BIDIRECTIONAL_DOTTED_ARROW:76,SOLID_CROSS:77,DOTTED_CROSS:78,SOLID_POINT:79,DOTTED_POINT:80,TXT:81,$accept:0,$end:1},terminals_:{2:"error",4:"SPACE",5:"NEWLINE",6:"SD",13:"create",14:"box",15:"restOfLine",16:"end",18:"autonumber",19:"NUM",20:"off",21:"activate",23:"deactivate",29:"title",30:"legacy_title",31:"acc_title",32:"acc_title_value",33:"acc_descr",34:"acc_descr_value",35:"acc_descr_multiline_value",36:"loop",37:"rect",38:"opt",39:"alt",41:"par",43:"par_over",44:"critical",46:"break",47:"option",48:"and",49:"else",50:"participant",51:"AS",52:"participant_actor",53:"destroy",54:"note",57:"over",59:"links",60:"link",61:"properties",62:"details",64:",",65:"left_of",66:"right_of",68:"+",69:"-",70:"ACTOR",71:"SOLID_OPEN_ARROW",72:"DOTTED_OPEN_ARROW",73:"SOLID_ARROW",74:"BIDIRECTIONAL_SOLID_ARROW",75:"DOTTED_ARROW",76:"BIDIRECTIONAL_DOTTED_ARROW",77:"SOLID_CROSS",78:"DOTTED_CROSS",79:"SOLID_POINT",80:"DOTTED_POINT",81:"TXT"},productions_:[0,[3,2],[3,2],[3,2],[7,0],[7,2],[8,2],[8,1],[8,1],[10,0],[10,2],[11,2],[11,1],[11,1],[9,1],[9,2],[9,4],[9,2],[9,4],[9,3],[9,3],[9,2],[9,3],[9,3],[9,2],[9,2],[9,2],[9,2],[9,2],[9,1],[9,1],[9,2],[9,2],[9,1],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[45,1],[45,4],[42,1],[42,4],[40,1],[40,4],[12,5],[12,3],[12,5],[12,3],[12,3],[24,4],[24,4],[25,3],[26,3],[27,3],[28,3],[63,2],[63,1],[58,3],[58,1],[55,1],[55,1],[17,5],[17,5],[17,4],[22,1],[67,1],[67,1],[67,1],[67,1],[67,1],[67,1],[67,1],[67,1],[67,1],[67,1],[56,1]],performAction:mt(function(e,t,i,n,r,s,a){var o=s.length-1;switch(r){case 3:return n.apply(s[o]),s[o];case 4:case 9:this.$=[];break;case 5:case 10:s[o-1].push(s[o]),this.$=s[o-1];break;case 6:case 7:case 11:case 12:this.$=s[o];break;case 8:case 13:this.$=[];break;case 15:s[o].type="createParticipant",this.$=s[o];break;case 16:s[o-1].unshift({type:"boxStart",boxData:n.parseBoxData(s[o-2])}),s[o-1].push({type:"boxEnd",boxText:s[o-2]}),this.$=s[o-1];break;case 18:this.$={type:"sequenceIndex",sequenceIndex:Number(s[o-2]),sequenceIndexStep:Number(s[o-1]),sequenceVisible:!0,signalType:n.LINETYPE.AUTONUMBER};break;case 19:this.$={type:"sequenceIndex",sequenceIndex:Number(s[o-1]),sequenceIndexStep:1,sequenceVisible:!0,signalType:n.LINETYPE.AUTONUMBER};break;case 20:this.$={type:"sequenceIndex",sequenceVisible:!1,signalType:n.LINETYPE.AUTONUMBER};break;case 21:this.$={type:"sequenceIndex",sequenceVisible:!0,signalType:n.LINETYPE.AUTONUMBER};break;case 22:this.$={type:"activeStart",signalType:n.LINETYPE.ACTIVE_START,actor:s[o-1].actor};break;case 23:this.$={type:"activeEnd",signalType:n.LINETYPE.ACTIVE_END,actor:s[o-1].actor};break;case 29:n.setDiagramTitle(s[o].substring(6)),this.$=s[o].substring(6);break;case 30:n.setDiagramTitle(s[o].substring(7)),this.$=s[o].substring(7);break;case 31:this.$=s[o].trim(),n.setAccTitle(this.$);break;case 32:case 33:this.$=s[o].trim(),n.setAccDescription(this.$);break;case 34:s[o-1].unshift({type:"loopStart",loopText:n.parseMessage(s[o-2]),signalType:n.LINETYPE.LOOP_START}),s[o-1].push({type:"loopEnd",loopText:s[o-2],signalType:n.LINETYPE.LOOP_END}),this.$=s[o-1];break;case 35:s[o-1].unshift({type:"rectStart",color:n.parseMessage(s[o-2]),signalType:n.LINETYPE.RECT_START}),s[o-1].push({type:"rectEnd",color:n.parseMessage(s[o-2]),signalType:n.LINETYPE.RECT_END}),this.$=s[o-1];break;case 36:s[o-1].unshift({type:"optStart",optText:n.parseMessage(s[o-2]),signalType:n.LINETYPE.OPT_START}),s[o-1].push({type:"optEnd",optText:n.parseMessage(s[o-2]),signalType:n.LINETYPE.OPT_END}),this.$=s[o-1];break;case 37:s[o-1].unshift({type:"altStart",altText:n.parseMessage(s[o-2]),signalType:n.LINETYPE.ALT_START}),s[o-1].push({type:"altEnd",signalType:n.LINETYPE.ALT_END}),this.$=s[o-1];break;case 38:s[o-1].unshift({type:"parStart",parText:n.parseMessage(s[o-2]),signalType:n.LINETYPE.PAR_START}),s[o-1].push({type:"parEnd",signalType:n.LINETYPE.PAR_END}),this.$=s[o-1];break;case 39:s[o-1].unshift({type:"parStart",parText:n.parseMessage(s[o-2]),signalType:n.LINETYPE.PAR_OVER_START}),s[o-1].push({type:"parEnd",signalType:n.LINETYPE.PAR_END}),this.$=s[o-1];break;case 40:s[o-1].unshift({type:"criticalStart",criticalText:n.parseMessage(s[o-2]),signalType:n.LINETYPE.CRITICAL_START}),s[o-1].push({type:"criticalEnd",signalType:n.LINETYPE.CRITICAL_END}),this.$=s[o-1];break;case 41:s[o-1].unshift({type:"breakStart",breakText:n.parseMessage(s[o-2]),signalType:n.LINETYPE.BREAK_START}),s[o-1].push({type:"breakEnd",optText:n.parseMessage(s[o-2]),signalType:n.LINETYPE.BREAK_END}),this.$=s[o-1];break;case 43:this.$=s[o-3].concat([{type:"option",optionText:n.parseMessage(s[o-1]),signalType:n.LINETYPE.CRITICAL_OPTION},s[o]]);break;case 45:this.$=s[o-3].concat([{type:"and",parText:n.parseMessage(s[o-1]),signalType:n.LINETYPE.PAR_AND},s[o]]);break;case 47:this.$=s[o-3].concat([{type:"else",altText:n.parseMessage(s[o-1]),signalType:n.LINETYPE.ALT_ELSE},s[o]]);break;case 48:s[o-3].draw="participant",s[o-3].type="addParticipant",s[o-3].description=n.parseMessage(s[o-1]),this.$=s[o-3];break;case 49:s[o-1].draw="participant",s[o-1].type="addParticipant",this.$=s[o-1];break;case 50:s[o-3].draw="actor",s[o-3].type="addParticipant",s[o-3].description=n.parseMessage(s[o-1]),this.$=s[o-3];break;case 51:s[o-1].draw="actor",s[o-1].type="addParticipant",this.$=s[o-1];break;case 52:s[o-1].type="destroyParticipant",this.$=s[o-1];break;case 53:this.$=[s[o-1],{type:"addNote",placement:s[o-2],actor:s[o-1].actor,text:s[o]}];break;case 54:s[o-2]=[].concat(s[o-1],s[o-1]).slice(0,2),s[o-2][0]=s[o-2][0].actor,s[o-2][1]=s[o-2][1].actor,this.$=[s[o-1],{type:"addNote",placement:n.PLACEMENT.OVER,actor:s[o-2].slice(0,2),text:s[o]}];break;case 55:this.$=[s[o-1],{type:"addLinks",actor:s[o-1].actor,text:s[o]}];break;case 56:this.$=[s[o-1],{type:"addALink",actor:s[o-1].actor,text:s[o]}];break;case 57:this.$=[s[o-1],{type:"addProperties",actor:s[o-1].actor,text:s[o]}];break;case 58:this.$=[s[o-1],{type:"addDetails",actor:s[o-1].actor,text:s[o]}];break;case 61:this.$=[s[o-2],s[o]];break;case 62:this.$=s[o];break;case 63:this.$=n.PLACEMENT.LEFTOF;break;case 64:this.$=n.PLACEMENT.RIGHTOF;break;case 65:this.$=[s[o-4],s[o-1],{type:"addMessage",from:s[o-4].actor,to:s[o-1].actor,signalType:s[o-3],msg:s[o],activate:!0},{type:"activeStart",signalType:n.LINETYPE.ACTIVE_START,actor:s[o-1].actor}];break;case 66:this.$=[s[o-4],s[o-1],{type:"addMessage",from:s[o-4].actor,to:s[o-1].actor,signalType:s[o-3],msg:s[o]},{type:"activeEnd",signalType:n.LINETYPE.ACTIVE_END,actor:s[o-4].actor}];break;case 67:this.$=[s[o-3],s[o-1],{type:"addMessage",from:s[o-3].actor,to:s[o-1].actor,signalType:s[o-2],msg:s[o]}];break;case 68:this.$={type:"addParticipant",actor:s[o]};break;case 69:this.$=n.LINETYPE.SOLID_OPEN;break;case 70:this.$=n.LINETYPE.DOTTED_OPEN;break;case 71:this.$=n.LINETYPE.SOLID;break;case 72:this.$=n.LINETYPE.BIDIRECTIONAL_SOLID;break;case 73:this.$=n.LINETYPE.DOTTED;break;case 74:this.$=n.LINETYPE.BIDIRECTIONAL_DOTTED;break;case 75:this.$=n.LINETYPE.SOLID_CROSS;break;case 76:this.$=n.LINETYPE.DOTTED_CROSS;break;case 77:this.$=n.LINETYPE.SOLID_POINT;break;case 78:this.$=n.LINETYPE.DOTTED_POINT;break;case 79:this.$=n.parseMessage(s[o].trim().substring(1))}},"anonymous"),table:[{3:1,4:t,5:i,6:P},{1:[3]},{3:5,4:t,5:i,6:P},{3:6,4:t,5:i,6:P},e([1,4,5,13,14,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,50,52,53,54,59,60,61,62,70],n,{7:7}),{1:[2,1]},{1:[2,2]},{1:[2,3],4:r,5:s,8:8,9:10,12:12,13:a,14:o,17:15,18:l,21:c,22:40,23:h,24:19,25:20,26:21,27:22,28:23,29:u,30:d,31:p,33:g,35:f,36:m,37:y,38:b,39:v,41:x,43:w,44:k,46:T,50:S,52:_,53:C,54:A,59:E,60:$,61:L,62:R,70:M},e(I,[2,5]),{9:47,12:12,13:a,14:o,17:15,18:l,21:c,22:40,23:h,24:19,25:20,26:21,27:22,28:23,29:u,30:d,31:p,33:g,35:f,36:m,37:y,38:b,39:v,41:x,43:w,44:k,46:T,50:S,52:_,53:C,54:A,59:E,60:$,61:L,62:R,70:M},e(I,[2,7]),e(I,[2,8]),e(I,[2,14]),{12:48,50:S,52:_,53:C},{15:[1,49]},{5:[1,50]},{5:[1,53],19:[1,51],20:[1,52]},{22:54,70:M},{22:55,70:M},{5:[1,56]},{5:[1,57]},{5:[1,58]},{5:[1,59]},{5:[1,60]},e(I,[2,29]),e(I,[2,30]),{32:[1,61]},{34:[1,62]},e(I,[2,33]),{15:[1,63]},{15:[1,64]},{15:[1,65]},{15:[1,66]},{15:[1,67]},{15:[1,68]},{15:[1,69]},{15:[1,70]},{22:71,70:M},{22:72,70:M},{22:73,70:M},{67:74,71:[1,75],72:[1,76],73:[1,77],74:[1,78],75:[1,79],76:[1,80],77:[1,81],78:[1,82],79:[1,83],80:[1,84]},{55:85,57:[1,86],65:[1,87],66:[1,88]},{22:89,70:M},{22:90,70:M},{22:91,70:M},{22:92,70:M},e([5,51,64,71,72,73,74,75,76,77,78,79,80,81],[2,68]),e(I,[2,6]),e(I,[2,15]),e(B,[2,9],{10:93}),e(I,[2,17]),{5:[1,95],19:[1,94]},{5:[1,96]},e(I,[2,21]),{5:[1,97]},{5:[1,98]},e(I,[2,24]),e(I,[2,25]),e(I,[2,26]),e(I,[2,27]),e(I,[2,28]),e(I,[2,31]),e(I,[2,32]),e(F,n,{7:99}),e(F,n,{7:100}),e(F,n,{7:101}),e(j,n,{40:102,7:103}),e(z,n,{42:104,7:105}),e(z,n,{7:105,42:106}),e(H,n,{45:107,7:108}),e(F,n,{7:109}),{5:[1,111],51:[1,110]},{5:[1,113],51:[1,112]},{5:[1,114]},{22:117,68:[1,115],69:[1,116],70:M},e(N,[2,69]),e(N,[2,70]),e(N,[2,71]),e(N,[2,72]),e(N,[2,73]),e(N,[2,74]),e(N,[2,75]),e(N,[2,76]),e(N,[2,77]),e(N,[2,78]),{22:118,70:M},{22:120,58:119,70:M},{70:[2,63]},{70:[2,64]},{56:121,81:D},{56:123,81:D},{56:124,81:D},{56:125,81:D},{4:[1,128],5:[1,130],11:127,12:129,16:[1,126],50:S,52:_,53:C},{5:[1,131]},e(I,[2,19]),e(I,[2,20]),e(I,[2,22]),e(I,[2,23]),{4:r,5:s,8:8,9:10,12:12,13:a,14:o,16:[1,132],17:15,18:l,21:c,22:40,23:h,24:19,25:20,26:21,27:22,28:23,29:u,30:d,31:p,33:g,35:f,36:m,37:y,38:b,39:v,41:x,43:w,44:k,46:T,50:S,52:_,53:C,54:A,59:E,60:$,61:L,62:R,70:M},{4:r,5:s,8:8,9:10,12:12,13:a,14:o,16:[1,133],17:15,18:l,21:c,22:40,23:h,24:19,25:20,26:21,27:22,28:23,29:u,30:d,31:p,33:g,35:f,36:m,37:y,38:b,39:v,41:x,43:w,44:k,46:T,50:S,52:_,53:C,54:A,59:E,60:$,61:L,62:R,70:M},{4:r,5:s,8:8,9:10,12:12,13:a,14:o,16:[1,134],17:15,18:l,21:c,22:40,23:h,24:19,25:20,26:21,27:22,28:23,29:u,30:d,31:p,33:g,35:f,36:m,37:y,38:b,39:v,41:x,43:w,44:k,46:T,50:S,52:_,53:C,54:A,59:E,60:$,61:L,62:R,70:M},{16:[1,135]},{4:r,5:s,8:8,9:10,12:12,13:a,14:o,16:[2,46],17:15,18:l,21:c,22:40,23:h,24:19,25:20,26:21,27:22,28:23,29:u,30:d,31:p,33:g,35:f,36:m,37:y,38:b,39:v,41:x,43:w,44:k,46:T,49:[1,136],50:S,52:_,53:C,54:A,59:E,60:$,61:L,62:R,70:M},{16:[1,137]},{4:r,5:s,8:8,9:10,12:12,13:a,14:o,16:[2,44],17:15,18:l,21:c,22:40,23:h,24:19,25:20,26:21,27:22,28:23,29:u,30:d,31:p,33:g,35:f,36:m,37:y,38:b,39:v,41:x,43:w,44:k,46:T,48:[1,138],50:S,52:_,53:C,54:A,59:E,60:$,61:L,62:R,70:M},{16:[1,139]},{16:[1,140]},{4:r,5:s,8:8,9:10,12:12,13:a,14:o,16:[2,42],17:15,18:l,21:c,22:40,23:h,24:19,25:20,26:21,27:22,28:23,29:u,30:d,31:p,33:g,35:f,36:m,37:y,38:b,39:v,41:x,43:w,44:k,46:T,47:[1,141],50:S,52:_,53:C,54:A,59:E,60:$,61:L,62:R,70:M},{4:r,5:s,8:8,9:10,12:12,13:a,14:o,16:[1,142],17:15,18:l,21:c,22:40,23:h,24:19,25:20,26:21,27:22,28:23,29:u,30:d,31:p,33:g,35:f,36:m,37:y,38:b,39:v,41:x,43:w,44:k,46:T,50:S,52:_,53:C,54:A,59:E,60:$,61:L,62:R,70:M},{15:[1,143]},e(I,[2,49]),{15:[1,144]},e(I,[2,51]),e(I,[2,52]),{22:145,70:M},{22:146,70:M},{56:147,81:D},{56:148,81:D},{56:149,81:D},{64:[1,150],81:[2,62]},{5:[2,55]},{5:[2,79]},{5:[2,56]},{5:[2,57]},{5:[2,58]},e(I,[2,16]),e(B,[2,10]),{12:151,50:S,52:_,53:C},e(B,[2,12]),e(B,[2,13]),e(I,[2,18]),e(I,[2,34]),e(I,[2,35]),e(I,[2,36]),e(I,[2,37]),{15:[1,152]},e(I,[2,38]),{15:[1,153]},e(I,[2,39]),e(I,[2,40]),{15:[1,154]},e(I,[2,41]),{5:[1,155]},{5:[1,156]},{56:157,81:D},{56:158,81:D},{5:[2,67]},{5:[2,53]},{5:[2,54]},{22:159,70:M},e(B,[2,11]),e(j,n,{7:103,40:160}),e(z,n,{7:105,42:161}),e(H,n,{7:108,45:162}),e(I,[2,48]),e(I,[2,50]),{5:[2,65]},{5:[2,66]},{81:[2,61]},{16:[2,47]},{16:[2,45]},{16:[2,43]}],defaultActions:{5:[2,1],6:[2,2],87:[2,63],88:[2,64],121:[2,55],122:[2,79],123:[2,56],124:[2,57],125:[2,58],147:[2,67],148:[2,53],149:[2,54],157:[2,65],158:[2,66],159:[2,61],160:[2,47],161:[2,45],162:[2,43]},parseError:mt(function(e,t){var i;if(!t.recoverable)throw(i=new Error(e)).hash=t,i;this.trace(e)},"parseError"),parse:mt(function(e){var t,i=this,n=[0],r=[],s=[null],a=[],o=this.table,l="",c=0,h=0,u=0,d=1,p=a.slice.call(arguments,1),g=Object.create(this.lexer),f={yy:{}};for(t in this.yy)Object.prototype.hasOwnProperty.call(this.yy,t)&&(f.yy[t]=this.yy[t]);g.setInput(e,f.yy),f.yy.lexer=g,f.yy.parser=this,"u"<typeof g.yylloc&&(g.yylloc={});var m=g.yylloc,y=(a.push(m),g.options&&g.options.ranges);function b(){var e=r.pop()||g.lex()||d;return"number"!=typeof e&&(e instanceof Array&&(e=(r=e).pop()),e=i.symbols_[e]||e),e}"function"==typeof f.yy.parseError?this.parseError=f.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError,mt(function(e){n.length=n.length-2*e,s.length=s.length-e,a.length=a.length-e},"popStack"),mt(b,"lex");for(var v,x,w,k,T,S,_,C={};;){if(w=n[n.length-1],"u"<typeof(k=this.defaultActions[w]||((null===v||"u"<typeof v)&&(v=b()),o[w]&&o[w][v]))||!k.length||!k[0]){var A="",E=[];for(T in o[w])this.terminals_[T]&&2<T&&E.push("'"+this.terminals_[T]+"'");A=g.showPosition?"Parse error on line "+(c+1)+`:
|
||
`+g.showPosition()+`
|
||
Expecting `+E.join(", ")+", got '"+(this.terminals_[v]||v)+"'":"Parse error on line "+(c+1)+": Unexpected "+(v==d?"end of input":"'"+(this.terminals_[v]||v)+"'"),this.parseError(A,{text:g.match,token:this.terminals_[v]||v,line:g.yylineno,loc:m,expected:E})}if(k[0]instanceof Array&&1<k.length)throw new Error("Parse Error: multiple actions possible at state: "+w+", token: "+v);switch(k[0]){case 1:n.push(v),s.push(g.yytext),a.push(g.yylloc),n.push(k[1]),v=null,x?(v=x,x=null):(h=g.yyleng,l=g.yytext,c=g.yylineno,m=g.yylloc,0<u&&u--);break;case 2:if(S=this.productions_[k[1]][1],C.$=s[s.length-S],C._$={first_line:a[a.length-(S||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(S||1)].first_column,last_column:a[a.length-1].last_column},y&&(C._$.range=[a[a.length-(S||1)].range[0],a[a.length-1].range[1]]),typeof(_=this.performAction.apply(C,[l,h,c,f.yy,k[1],s,a].concat(p)))<"u")return _;S&&(n=n.slice(0,-1*S*2),s=s.slice(0,-1*S),a=a.slice(0,-1*S)),n.push(this.productions_[k[1]][0]),s.push(C.$),a.push(C._$),_=o[n[n.length-2]][n[n.length-1]],n.push(_);break;case 3:return!0}}return!0},"parse")},i={EOF:1,parseError:mt(function(e,t){if(!this.yy.parser)throw new Error(e);this.yy.parser.parseError(e,t)},"parseError"),setInput:mt(function(e,t){return this.yy=t||this.yy||{},this._input=e,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:mt(function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.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),e},"input"),unput:mt(function(e){var t=e.length,i=e.split(/(?:\r\n?|\n)/g),e=(this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t,this.match.split(/(?:\r\n?|\n)/g)),n=(this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),i.length-1&&(this.yylineno-=i.length-1),this.yylloc.range);return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:i?(i.length===e.length?this.yylloc.first_column:0)+e[e.length-i.length].length-i[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[n[0],n[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},"unput"),more:mt(function(){return this._more=!0,this},"more"),reject:mt(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).
|
||
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"reject"),less:mt(function(e){this.unput(this.match.slice(e))},"less"),pastInput:mt(function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(20<e.length?"...":"")+e.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:mt(function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(20<e.length?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:mt(function(){var e=this.pastInput(),t=new Array(e.length+1).join("-");return e+this.upcomingInput()+`
|
||
`+t+"^"},"showPosition"),test_match:mt(function(e,t){var i,n;if(this.options.backtrack_lexer&&(n={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)&&(n.yylloc.range=this.yylloc.range.slice(0)),(i=e[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=i.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:i?i[i.length-1].length-i[i.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+e[0].length},this.yytext+=e[0],this.match+=e[0],this.matches=e,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(e[0].length),this.matched+=e[0],i=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),i)return i;if(this._backtrack)for(var r in n)this[r]=n[r];return!1},"test_match"),next:mt(function(){if(this.done)return this.EOF;var e,t,i,n;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var r=this._currentRules(),s=0;s<r.length;s++)if((i=this._input.match(this.rules[r[s]]))&&(!t||i[0].length>t[0].length)){if(t=i,n=s,this.options.backtrack_lexer){if(!1!==(e=this.test_match(i,r[s])))return e;if(this._backtrack){t=!1;continue}return!1}if(!this.options.flex)break}return t?!1!==(e=this.test_match(t,r[n]))&&e:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
|
||
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:mt(function(){return this.next()||this.lex()},"lex"),begin:mt(function(e){this.conditionStack.push(e)},"begin"),popState:mt(function(){return 0<this.conditionStack.length-1?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:mt(function(){return(this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]]:this.conditions.INITIAL).rules},"_currentRules"),topState:mt(function(e){return 0<=(e=this.conditionStack.length-1-Math.abs(e||0))?this.conditionStack[e]:"INITIAL"},"topState"),pushState:mt(function(e){this.begin(e)},"pushState"),stateStackSize:mt(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:mt(function(e,t,i,n){switch(i){case 0:return 5;case 1:case 2:case 3:case 4:case 5:break;case 6:return 19;case 7:return this.begin("LINE"),14;case 8:return this.begin("ID"),50;case 9:return this.begin("ID"),52;case 10:return 13;case 11:return this.begin("ID"),53;case 12:return t.yytext=t.yytext.trim(),this.begin("ALIAS"),70;case 13:return this.popState(),this.popState(),this.begin("LINE"),51;case 14:return this.popState(),this.popState(),5;case 15:return this.begin("LINE"),36;case 16:return this.begin("LINE"),37;case 17:return this.begin("LINE"),38;case 18:return this.begin("LINE"),39;case 19:return this.begin("LINE"),49;case 20:return this.begin("LINE"),41;case 21:return this.begin("LINE"),43;case 22:return this.begin("LINE"),48;case 23:return this.begin("LINE"),44;case 24:return this.begin("LINE"),47;case 25:return this.begin("LINE"),46;case 26:return this.popState(),15;case 27:return 16;case 28:return 65;case 29:return 66;case 30:return 59;case 31:return 60;case 32:return 61;case 33:return 62;case 34:return 57;case 35:return 54;case 36:return this.begin("ID"),21;case 37:return this.begin("ID"),23;case 38:return 29;case 39:return 30;case 40:return this.begin("acc_title"),31;case 41:return this.popState(),"acc_title_value";case 42:return this.begin("acc_descr"),33;case 43:return this.popState(),"acc_descr_value";case 44:this.begin("acc_descr_multiline");break;case 45:this.popState();break;case 46:return"acc_descr_multiline_value";case 47:return 6;case 48:return 18;case 49:return 20;case 50:return 64;case 51:return 5;case 52:return t.yytext=t.yytext.trim(),70;case 53:return 73;case 54:return 74;case 55:return 75;case 56:return 76;case 57:return 71;case 58:return 72;case 59:return 77;case 60:return 78;case 61:return 79;case 62:return 80;case 63:case 64:return 81;case 65:return 68;case 66:return 69;case 67:return 5;case 68:return"INVALID"}},"anonymous"),rules:[/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:((?!\n)\s)+)/i,/^(?:#[^\n]*)/i,/^(?:%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[0-9]+(?=[ \n]+))/i,/^(?:box\b)/i,/^(?:participant\b)/i,/^(?:actor\b)/i,/^(?:create\b)/i,/^(?:destroy\b)/i,/^(?:[^\<->\->:\n,;]+?([\-]*[^\<->\->:\n,;]+?)*?(?=((?!\n)\s)+as(?!\n)\s|[#\n;]|$))/i,/^(?:as\b)/i,/^(?:(?:))/i,/^(?:loop\b)/i,/^(?:rect\b)/i,/^(?:opt\b)/i,/^(?:alt\b)/i,/^(?:else\b)/i,/^(?:par\b)/i,/^(?:par_over\b)/i,/^(?:and\b)/i,/^(?:critical\b)/i,/^(?:option\b)/i,/^(?:break\b)/i,/^(?:(?:[:]?(?:no)?wrap)?[^#\n;]*)/i,/^(?:end\b)/i,/^(?:left of\b)/i,/^(?:right of\b)/i,/^(?:links\b)/i,/^(?:link\b)/i,/^(?:properties\b)/i,/^(?:details\b)/i,/^(?:over\b)/i,/^(?:note\b)/i,/^(?:activate\b)/i,/^(?:deactivate\b)/i,/^(?:title\s[^#\n;]+)/i,/^(?:title:\s[^#\n;]+)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:sequenceDiagram\b)/i,/^(?:autonumber\b)/i,/^(?:off\b)/i,/^(?:,)/i,/^(?:;)/i,/^(?:[^\+\<->\->:\n,;]+((?!(-x|--x|-\)|--\)))[\-]*[^\+\<->\->:\n,;]+)*)/i,/^(?:->>)/i,/^(?:<<->>)/i,/^(?:-->>)/i,/^(?:<<-->>)/i,/^(?:->)/i,/^(?:-->)/i,/^(?:-[x])/i,/^(?:--[x])/i,/^(?:-[\)])/i,/^(?:--[\)])/i,/^(?::(?:(?:no)?wrap)?[^#\n;]*)/i,/^(?::)/i,/^(?:\+)/i,/^(?:-)/i,/^(?:$)/i,/^(?:.)/i],conditions:{acc_descr_multiline:{rules:[45,46],inclusive:!1},acc_descr:{rules:[43],inclusive:!1},acc_title:{rules:[41],inclusive:!1},ID:{rules:[2,3,12],inclusive:!1},ALIAS:{rules:[2,3,13,14],inclusive:!1},LINE:{rules:[2,3,26],inclusive:!1},INITIAL:{rules:[0,1,3,4,5,6,7,8,9,10,11,15,16,17,18,19,20,21,22,23,24,25,27,28,29,30,31,32,33,34,35,36,37,38,39,40,42,44,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68],inclusive:!0}}},t.lexer=i,mt(O,"Parser"),(b2e=new((O.prototype=t).Parser=O)).parser=b2e,v2e=b2e}),s4e=e(()=>{"use strict";Cu(),t(),mfe(),hh(),_u(),x2e={SOLID:0,DOTTED:1,NOTE:2,SOLID_CROSS:3,DOTTED_CROSS:4,SOLID_OPEN:5,DOTTED_OPEN:6,LOOP_START:10,LOOP_END:11,ALT_START:12,ALT_ELSE:13,ALT_END:14,OPT_START:15,OPT_END:16,ACTIVE_START:17,ACTIVE_END:18,PAR_START:19,PAR_AND:20,PAR_END:21,RECT_START:22,RECT_END:23,SOLID_POINT:24,DOTTED_POINT:25,AUTONUMBER:26,CRITICAL_START:27,CRITICAL_OPTION:28,CRITICAL_END:29,BREAK_START:30,BREAK_END:31,PAR_OVER_START:32,BIDIRECTIONAL_SOLID:33,BIDIRECTIONAL_DOTTED:34},w2e={FILLED:0,OPEN:1},k2e={LEFTOF:0,RIGHTOF:1,OVER:2},T2e=class{constructor(){this.state=new pfe(()=>({prevActor:void 0,actors:new Map,createdActors:new Map,destroyedActors:new Map,boxes:[],messages:[],notes:[],sequenceNumbersEnabled:!1,wrapEnabled:void 0,currentBox:void 0,lastCreated:void 0,lastDestroyed:void 0})),this.setAccTitle=vh,this.setAccDescription=wh,this.setDiagramTitle=Th,this.getAccTitle=xh,this.getAccDescription=kh,this.getDiagramTitle=Sh,this.apply=this.apply.bind(this),this.parseBoxData=this.parseBoxData.bind(this),this.parseMessage=this.parseMessage.bind(this),this.clear(),this.setWrap(N().wrap),this.LINETYPE=x2e,this.ARROWTYPE=w2e,this.PLACEMENT=k2e}static{mt(this,"SequenceDB")}addBox(e){this.state.records.boxes.push({name:e.text,wrap:e.wrap??this.autoWrap(),fill:e.color,actorKeys:[]}),this.state.records.currentBox=this.state.records.boxes.slice(-1)[0]}addActor(e,t,i,n){let r=this.state.records.currentBox,s=this.state.records.actors.get(e);if(s){if(this.state.records.currentBox&&s.box&&this.state.records.currentBox!==s.box)throw new Error(`A same participant should only be defined in one Box: ${s.name} can't be in '${s.box.name}' and in '${this.state.records.currentBox.name}' at the same time.`);if(r=s.box||this.state.records.currentBox,s.box=r,s&&t===s.name&&null==i)return}null==i?.text&&(i={text:t,type:n}),null!=n&&null!=i.text||(i={text:t,type:n}),this.state.records.actors.set(e,{box:r,name:t,description:i.text,wrap:i.wrap??this.autoWrap(),prevActor:this.state.records.prevActor,links:{},properties:{},actorCnt:null,rectData:null,type:n??"participant"}),this.state.records.prevActor&&(t=this.state.records.actors.get(this.state.records.prevActor))&&(t.nextActor=e),this.state.records.currentBox&&this.state.records.currentBox.actorKeys.push(e),this.state.records.prevActor=e}activationCount(e){let t,i=0;if(!e)return 0;for(t=0;t<this.state.records.messages.length;t++)this.state.records.messages[t].type===this.LINETYPE.ACTIVE_START&&this.state.records.messages[t].from===e&&i++,this.state.records.messages[t].type===this.LINETYPE.ACTIVE_END&&this.state.records.messages[t].from===e&&i--;return i}addMessage(e,t,i,n){this.state.records.messages.push({id:this.state.records.messages.length.toString(),from:e,to:t,message:i.text,wrap:i.wrap??this.autoWrap(),answer:n})}addSignal(e,t,i,n,r=!1){var s;if(n===this.LINETYPE.ACTIVE_END&&this.activationCount(e??"")<1)throw(s=new Error("Trying to inactivate an inactive participant ("+e+")")).hash={text:"->>-",token:"->>-",line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["'ACTIVE_PARTICIPANT'"]},s;return this.state.records.messages.push({id:this.state.records.messages.length.toString(),from:e,to:t,message:i?.text??"",wrap:i?.wrap??this.autoWrap(),type:n,activate:r}),!0}hasAtLeastOneBox(){return 0<this.state.records.boxes.length}hasAtLeastOneBoxWithTitle(){return this.state.records.boxes.some(e=>e.name)}getMessages(){return this.state.records.messages}getBoxes(){return this.state.records.boxes}getActors(){return this.state.records.actors}getCreatedActors(){return this.state.records.createdActors}getDestroyedActors(){return this.state.records.destroyedActors}getActor(e){return this.state.records.actors.get(e)}getActorKeys(){return[...this.state.records.actors.keys()]}enableSequenceNumbers(){this.state.records.sequenceNumbersEnabled=!0}disableSequenceNumbers(){this.state.records.sequenceNumbersEnabled=!1}showSequenceNumbers(){return this.state.records.sequenceNumbersEnabled}setWrap(e){this.state.records.wrapEnabled=e}extractWrap(e){if(void 0===e)return{};e=e.trim();var t=null!==/^:?wrap:/.exec(e)||null===/^:?nowrap:/.exec(e)&&void 0;return{cleanedText:(void 0===t?e:e.replace(/^:?(?:no)?wrap:/,"")).trim(),wrap:t}}autoWrap(){return void 0!==this.state.records.wrapEnabled?this.state.records.wrapEnabled:N().sequence?.wrap??!1}clear(){this.state.reset(),bh()}parseMessage(e){var e=e.trim(),{wrap:e,cleanedText:t}=this.extractWrap(e),t={text:t,wrap:e};return I.debug("parseMessage: "+JSON.stringify(t)),t}parseBoxData(e){let t=/^((?:rgba?|hsla?)\s*\(.*\)|\w*)(.*)$/.exec(e),i=t?.[1]?t[1].trim():"transparent",n=t?.[2]?t[2].trim():void 0;window?.CSS?window.CSS.supports("color",i)||(i="transparent",n=e.trim()):((r=(new Option).style).color=i,r.color!==i&&(i="transparent",n=e.trim()));var{wrap:r,cleanedText:e}=this.extractWrap(n);return{text:e?Pc(e,N()):void 0,color:i,wrap:r}}addNote(e,t,i){var n={actor:e,placement:t,message:i.text,wrap:i.wrap??this.autoWrap()},e=[].concat(e,e);this.state.records.notes.push(n),this.state.records.messages.push({id:this.state.records.messages.length.toString(),from:e[0],to:e[1],message:i.text,wrap:i.wrap??this.autoWrap(),type:this.LINETYPE.NOTE,placement:t})}addLinks(t,i){t=this.getActor(t);try{let e=Pc(i.text,N());e=(e=e.replace(/=/g,"=")).replace(/&/g,"&");var n=JSON.parse(e);this.insertLinks(t,n)}catch(e){I.error("error while parsing actor link text",e)}}addALink(n,r){n=this.getActor(n);try{let e={},t=Pc(r.text,N()),i=t.indexOf("@");var s=(t=(t=t.replace(/=/g,"=")).replace(/&/g,"&")).slice(0,i-1).trim(),a=t.slice(i+1).trim();e[s]=a,this.insertLinks(n,e)}catch(e){I.error("error while parsing actor link text",e)}}insertLinks(e,t){if(null==e.links)e.links=t;else for(var i in t)e.links[i]=t[i]}addProperties(e,t){e=this.getActor(e);try{var i=Pc(t.text,N()),n=JSON.parse(i);this.insertProperties(e,n)}catch(e){I.error("error while parsing actor properties text",e)}}insertProperties(e,t){if(null==e.properties)e.properties=t;else for(var i in t)e.properties[i]=t[i]}boxEnd(){this.state.records.currentBox=void 0}addDetails(e,t){e=this.getActor(e),t=document.getElementById(t.text);try{var i=t.innerHTML,n=JSON.parse(i);n.properties&&this.insertProperties(e,n.properties),n.links&&this.insertLinks(e,n.links)}catch(e){I.error("error while parsing actor details text",e)}}getActorProperty(e,t){if(void 0!==e?.properties)return e.properties[t]}apply(e){if(Array.isArray(e))e.forEach(e=>{this.apply(e)});else switch(e.type){case"sequenceIndex":this.state.records.messages.push({id:this.state.records.messages.length.toString(),from:void 0,to:void 0,message:{start:e.sequenceIndex,step:e.sequenceIndexStep,visible:e.sequenceVisible},wrap:!1,type:e.signalType});break;case"addParticipant":this.addActor(e.actor,e.actor,e.description,e.draw);break;case"createParticipant":if(this.state.records.actors.has(e.actor))throw new Error("It is not possible to have actors with the same id, even if one is destroyed before the next is created. Use 'AS' aliases to simulate the behavior");this.state.records.lastCreated=e.actor,this.addActor(e.actor,e.actor,e.description,e.draw),this.state.records.createdActors.set(e.actor,this.state.records.messages.length);break;case"destroyParticipant":this.state.records.lastDestroyed=e.actor,this.state.records.destroyedActors.set(e.actor,this.state.records.messages.length);break;case"activeStart":case"activeEnd":this.addSignal(e.actor,void 0,void 0,e.signalType);break;case"addNote":this.addNote(e.actor,e.placement,e.text);break;case"addLinks":this.addLinks(e.actor,e.text);break;case"addALink":this.addALink(e.actor,e.text);break;case"addProperties":this.addProperties(e.actor,e.text);break;case"addDetails":this.addDetails(e.actor,e.text);break;case"addMessage":if(this.state.records.lastCreated){if(e.to!==this.state.records.lastCreated)throw new Error("The created participant "+this.state.records.lastCreated.name+" does not have an associated creating message after its declaration. Please check the sequence diagram.");this.state.records.lastCreated=void 0}else if(this.state.records.lastDestroyed){if(e.to!==this.state.records.lastDestroyed&&e.from!==this.state.records.lastDestroyed)throw new Error("The destroyed participant "+this.state.records.lastDestroyed.name+" does not have an associated destroying message after its declaration. Please check the sequence diagram.");this.state.records.lastDestroyed=void 0}this.addSignal(e.from,e.to,e.msg,e.signalType,e.activate);break;case"boxStart":this.addBox(e.boxData);break;case"boxEnd":this.boxEnd();break;case"loopStart":this.addSignal(void 0,void 0,e.loopText,e.signalType);break;case"loopEnd":this.addSignal(void 0,void 0,void 0,e.signalType);break;case"rectStart":this.addSignal(void 0,void 0,e.color,e.signalType);break;case"rectEnd":this.addSignal(void 0,void 0,void 0,e.signalType);break;case"optStart":this.addSignal(void 0,void 0,e.optText,e.signalType);break;case"optEnd":this.addSignal(void 0,void 0,void 0,e.signalType);break;case"altStart":case"else":this.addSignal(void 0,void 0,e.altText,e.signalType);break;case"altEnd":this.addSignal(void 0,void 0,void 0,e.signalType);break;case"setAccTitle":vh(e.text);break;case"parStart":case"and":this.addSignal(void 0,void 0,e.parText,e.signalType);break;case"parEnd":this.addSignal(void 0,void 0,void 0,e.signalType);break;case"criticalStart":this.addSignal(void 0,void 0,e.criticalText,e.signalType);break;case"option":this.addSignal(void 0,void 0,e.optionText,e.signalType);break;case"criticalEnd":this.addSignal(void 0,void 0,void 0,e.signalType);break;case"breakStart":this.addSignal(void 0,void 0,e.breakText,e.signalType);break;case"breakEnd":this.addSignal(void 0,void 0,void 0,e.signalType)}}getConfig(){return N().sequence}}}),a4e=e(()=>{"use strict";S2e=mt(e=>`.actor {
|
||
stroke: ${e.actorBorder};
|
||
fill: ${e.actorBkg};
|
||
}
|
||
|
||
text.actor > tspan {
|
||
fill: ${e.actorTextColor};
|
||
stroke: none;
|
||
}
|
||
|
||
.actor-line {
|
||
stroke: ${e.actorLineColor};
|
||
}
|
||
|
||
.messageLine0 {
|
||
stroke-width: 1.5;
|
||
stroke-dasharray: none;
|
||
stroke: ${e.signalColor};
|
||
}
|
||
|
||
.messageLine1 {
|
||
stroke-width: 1.5;
|
||
stroke-dasharray: 2, 2;
|
||
stroke: ${e.signalColor};
|
||
}
|
||
|
||
#arrowhead path {
|
||
fill: ${e.signalColor};
|
||
stroke: ${e.signalColor};
|
||
}
|
||
|
||
.sequenceNumber {
|
||
fill: ${e.sequenceNumberColor};
|
||
}
|
||
|
||
#sequencenumber {
|
||
fill: ${e.signalColor};
|
||
}
|
||
|
||
#crosshead path {
|
||
fill: ${e.signalColor};
|
||
stroke: ${e.signalColor};
|
||
}
|
||
|
||
.messageText {
|
||
fill: ${e.signalTextColor};
|
||
stroke: none;
|
||
}
|
||
|
||
.labelBox {
|
||
stroke: ${e.labelBoxBorderColor};
|
||
fill: ${e.labelBoxBkgColor};
|
||
}
|
||
|
||
.labelText, .labelText > tspan {
|
||
fill: ${e.labelTextColor};
|
||
stroke: none;
|
||
}
|
||
|
||
.loopText, .loopText > tspan {
|
||
fill: ${e.loopTextColor};
|
||
stroke: none;
|
||
}
|
||
|
||
.loopLine {
|
||
stroke-width: 2px;
|
||
stroke-dasharray: 2, 2;
|
||
stroke: ${e.labelBoxBorderColor};
|
||
fill: ${e.labelBoxBorderColor};
|
||
}
|
||
|
||
.note {
|
||
//stroke: #decc93;
|
||
stroke: ${e.noteBorderColor};
|
||
fill: ${e.noteBkgColor};
|
||
}
|
||
|
||
.noteText, .noteText > tspan {
|
||
fill: ${e.noteTextColor};
|
||
stroke: none;
|
||
}
|
||
|
||
.activation0 {
|
||
fill: ${e.activationBkgColor};
|
||
stroke: ${e.activationBorderColor};
|
||
}
|
||
|
||
.activation1 {
|
||
fill: ${e.activationBkgColor};
|
||
stroke: ${e.activationBorderColor};
|
||
}
|
||
|
||
.activation2 {
|
||
fill: ${e.activationBkgColor};
|
||
stroke: ${e.activationBorderColor};
|
||
}
|
||
|
||
.actorPopupMenu {
|
||
position: absolute;
|
||
}
|
||
|
||
.actorPopupMenuPanel {
|
||
position: absolute;
|
||
fill: ${e.actorBkg};
|
||
box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
|
||
filter: drop-shadow(3px 5px 2px rgb(0 0 0 / 0.4));
|
||
}
|
||
.actor-man line {
|
||
stroke: ${e.actorBorder};
|
||
fill: ${e.actorBkg};
|
||
}
|
||
.actor-man circle, line {
|
||
stroke: ${e.actorBorder};
|
||
fill: ${e.actorBkg};
|
||
stroke-width: 2px;
|
||
}
|
||
`,"getStyles"),_2e=S2e}),o4e=e(()=>{"use strict";function t(e,t,i,n,r,s,a){g(t.append("text").attr("x",i).attr("y",n).style("text-anchor","start").text(e),a)}function l(e,t,i,n,r,s,a,o){var{actorFontSize:l,actorFontFamily:c,actorFontWeight:h}=o,u=e.split($.lineBreakRegex);for(let e=0;e<u.length;e++){var d=e*l-l*(u.length-1)/2,p=t.append("text").attr("x",i).attr("y",n).style("text-anchor","start").style("font-size",l).style("font-weight",h).style("font-family",c);p.append("tspan").attr("x",i).attr("dy",d).text(u[e]),p.attr("y",n+s/2).attr("dominant-baseline","central").attr("alignment-baseline","central"),g(p,a)}}function i(e,t,i,n,r,s,a,o){t=t.append("switch"),r=t.append("foreignObject").attr("x",i).attr("y",n).attr("width",r).attr("height",s).append("xhtml:div").style("display","table").style("height","100%").style("width","100%");r.append("div").style("display","table-cell").style("text-align","center").style("vertical-align","middle").text(e),l(e,t,i,n,0,s,a,o),g(r,a)}function g(e,t){for(var i in t)t.hasOwnProperty(i)&&e.attr(i,t[i])}function n(e,t,i,n,r,s,a){f(t.append("text").attr("x",i+r/2).attr("y",n+s/2+5).style("text-anchor","middle").text(e),a)}function c(e,t,i,n,r,s,a,o){var{actorFontSize:o,actorFontFamily:l,actorFontWeight:c}=o,[h,u]=eC(o),d=e.split($.lineBreakRegex);for(let e=0;e<d.length;e++){var p=e*h-h*(d.length-1)/2,g=t.append("text").attr("x",i+r/2).attr("y",n).style("text-anchor","middle").style("font-size",u).style("font-weight",c).style("font-family",l);g.append("tspan").attr("x",i+r/2).attr("dy",p).text(d[e]),g.attr("y",n+s/2).attr("dominant-baseline","central").attr("alignment-baseline","central"),f(g,a)}}function r(e,t,i,n,r,s,a,o){var t=t.append("switch"),l=t.append("foreignObject").attr("x",i).attr("y",n).attr("width",r).attr("height",s).append("xhtml:div").style("display","table").style("height","100%").style("width","100%");l.append("div").style("display","table-cell").style("text-align","center").style("vertical-align","middle").text(e),c(e,t,i,n,r,s,a,o),f(l,a)}async function s(e,t,i,n,r,s,a,o){var l=await eh(e,Ii()),t=t.append("switch"),l=t.append("foreignObject").attr("x",i+r/2-l.width/2).attr("y",n+s/2-l.height/2).attr("width",l.width).attr("height",l.height).append("xhtml:div").style("height","100%").style("width","100%");l.append("div").style("text-align","center").style("vertical-align","middle").html(await th(e,Ii())),c(e,t,i,n,r,s,a,o),f(l,a)}function f(e,t){for(var i in t)t.hasOwnProperty(i)&&e.attr(i,t[i])}hh(),c6(),sC(),C2e=ie(l6(),1),Mn(),A2e=36,E2e="actor-bottom",$2e=mt(function(e,t){return Cw(e,t)},"drawRect"),L2e=mt(function(e,t,i,n,r){if(void 0===t.links||null===t.links||0===Object.keys(t.links).length)return{height:0,width:0};var s=t.links,a=t.actorCnt,o=t.rectData,t="none",l=(r&&(t="block !important"),e.append("g")),r=(l.attr("id","actor"+a+"_popup"),l.attr("class","actorPopupMenu"),l.attr("display",t),""),c=(void 0!==o.class&&(r=" "+o.class),o.width>i?o.width:i),e=l.append("rect");if(e.attr("class","actorPopupMenuPanel"+r),e.attr("x",o.x),e.attr("y",o.height),e.attr("fill",o.fill),e.attr("stroke",o.stroke),e.attr("width",c),e.attr("height",o.height),e.attr("rx",o.rx),e.attr("ry",o.ry),null!=s){var h,u=20;for(h in s){var d=l.append("a"),p=(0,C2e.sanitizeUrl)(s[h]);d.attr("xlink:href",p),d.attr("target","_blank"),t4e(n)(h,d,o.x+10,o.height+u,c,20,{class:"actor"},n),u+=30}}return e.attr("height",u),{height:o.height+u,width:c}},"drawPopup"),R2e=mt(function(e){return"var pu = document.getElementById('"+e+"'); if (pu != null) { pu.style.display = pu.style.display == 'block' ? 'none' : 'block'; }"},"popupMenuToggle"),M2e=mt(async function(n,r,s=null){var a=n.append("foreignObject"),o=await th(r.text,Ii()),o=a.append("xhtml:div").attr("style","width: fit-content;").attr("xmlns","http://www.w3.org/1999/xhtml").html(o).node().getBoundingClientRect();if(a.attr("height",Math.round(o.height)).attr("width",Math.round(o.width)),"noteText"===r.class){var n=n.node().firstChild,n=(n.setAttribute("height",o.height+2*r.textMargin),n.getBBox());a.attr("x",Math.round(n.x+n.width/2-o.width/2)).attr("y",Math.round(n.y+n.height/2-o.height/2))}else if(s){let{startx:e,stopx:t,starty:i}=s;e>t&&(n=e,e=t,t=n),a.attr("x",Math.round(e+Math.abs(e-t)/2-o.width/2)),"loopText"===r.class?a.attr("y",Math.round(i)):a.attr("y",Math.round(i-o.height))}return[a]},"drawKatex"),I2e=mt(function(e,t){let i=0,n=0,r=t.text.split($.lineBreakRegex),[s,a]=eC(t.fontSize),o=[],l=0,c=mt(()=>t.y,"yfunc");if(void 0!==t.valign&&void 0!==t.textMargin&&0<t.textMargin)switch(t.valign){case"top":case"start":c=mt(()=>Math.round(t.y+t.textMargin),"yfunc");break;case"middle":case"center":c=mt(()=>Math.round(t.y+(i+n+t.textMargin)/2),"yfunc");break;case"bottom":case"end":c=mt(()=>Math.round(t.y+(i+n+2*t.textMargin)-t.textMargin),"yfunc")}if(void 0!==t.anchor&&void 0!==t.textMargin&&void 0!==t.width)switch(t.anchor){case"left":case"start":t.x=Math.round(t.x+t.textMargin),t.anchor="start",t.dominantBaseline="middle",t.alignmentBaseline="middle";break;case"middle":case"center":t.x=Math.round(t.x+t.width/2),t.anchor="middle",t.dominantBaseline="middle",t.alignmentBaseline="middle";break;case"right":case"end":t.x=Math.round(t.x+t.width-t.textMargin),t.anchor="end",t.dominantBaseline="middle",t.alignmentBaseline="middle"}for(var[h,u]of r.entries()){void 0!==t.textMargin&&0===t.textMargin&&void 0!==s&&(l=h*s);var d,h=e.append("text"),u=(h.attr("x",t.x),h.attr("y",c()),void 0!==t.anchor&&h.attr("text-anchor",t.anchor).attr("dominant-baseline",t.dominantBaseline).attr("alignment-baseline",t.alignmentBaseline),void 0!==t.fontFamily&&h.style("font-family",t.fontFamily),void 0!==a&&h.style("font-size",a),void 0!==t.fontWeight&&h.style("font-weight",t.fontWeight),void 0!==t.fill&&h.attr("fill",t.fill),void 0!==t.class&&h.attr("class",t.class),void 0!==t.dy?h.attr("dy",t.dy):0!==l&&h.attr("dy",l),u||R_);(t.tspan?((d=h.append("tspan")).attr("x",t.x),void 0!==t.fill&&d.attr("fill",t.fill),d):h).text(u),void 0!==t.valign&&void 0!==t.textMargin&&0<t.textMargin&&(n+=(h._groups||h)[0][0].getBBox().height,i=n),o.push(h)}return o},"drawText"),N2e=mt(function(e,t){function i(e,t,i,n,r){return e+","+t+" "+(e+i)+","+t+" "+(e+i)+","+(t+n-r)+" "+(e+i-1.2*r)+","+(t+n)+" "+e+","+(t+n)}mt(i,"genPoints");var n=e.append("polygon");return n.attr("points",i(t.x,t.y,t.width,t.height,7)),n.attr("class","labelBox"),t.y=t.y+t.height/2,I2e(e,t),n},"drawLabel"),D2e=-1,O2e=mt((i,n,e,r)=>{i.select&&e.forEach(e=>{var e=n.get(e),t=i.select("#actor"+e.actorCnt);!r.mirrorActors&&e.stopy?t.attr("y2",e.stopy+e.height/2):r.mirrorActors&&t.attr("y2",e.stopy)})},"fixLifeLineHeights"),P2e=mt(function(e,t,i,n){var r=n?t.stopy:t.starty,s=t.x+t.width/2,a=r+t.height,e=e.append("g").lower(),o=e,a=(n||(D2e++,Object.keys(t.links||{}).length&&!i.forceMenus&&o.attr("onclick",R2e(`actor${D2e}_popup`)).attr("cursor","pointer"),o.append("line").attr("id","actor"+D2e).attr("x1",s).attr("y1",a).attr("x2",s).attr("y2",2e3).attr("class","actor-line 200").attr("stroke-width","0.5px").attr("stroke","#999").attr("name",t.name),o=e.append("g"),t.actorCnt=D2e,null!=t.links&&o.attr("id","root-"+D2e)),Rw()),s="actor",e=(t.properties?.class?s=t.properties.class:a.fill="#eaeaea",s+=n?" "+E2e:" actor-top",a.x=t.x,a.y=r,a.width=t.width,a.height=t.height,a.class=s,a.rx=3,a.ry=3,a.name=t.name,$2e(o,a));t.rectData=a,t.properties?.icon&&("@"===(n=t.properties.icon.trim()).charAt(0)?Lw(o,a.x+a.width-20,a.y+10,n.substr(1)):$w(o,a.x+a.width-20,a.y+10,n)),e4e(i,Jc(t.description))(t.description,o,a.x,a.y,a.width,a.height,{class:"actor actor-box"},i);let l=t.height;return e.node&&(r=e.node().getBBox(),t.height=r.height,l=r.height),l},"drawActorTypeParticipant"),B2e=mt(function(e,t,i,n){var r=n?t.stopy:t.starty,s=t.x+t.width/2,a=r+80,o=e.append("g").lower();n||(D2e++,o.append("line").attr("id","actor"+D2e).attr("x1",s).attr("y1",a).attr("x2",s).attr("y2",2e3).attr("class","actor-line 200").attr("stroke-width","0.5px").attr("stroke","#999").attr("name",t.name),t.actorCnt=D2e);let l=e.append("g"),c="actor-man";c+=n?" "+E2e:" actor-top",l.attr("class",c),l.attr("name",t.name);o=Rw(),o.x=t.x,o.y=r,o.fill="#eaeaea",o.width=t.width,o.height=t.height,o.class="actor",o.rx=3,o.ry=3,l.append("line").attr("id","actor-man-torso"+D2e).attr("x1",s).attr("y1",r+25).attr("x2",s).attr("y2",r+45),l.append("line").attr("id","actor-man-arms"+D2e).attr("x1",s-A2e/2).attr("y1",r+33).attr("x2",s+A2e/2).attr("y2",r+33),l.append("line").attr("x1",s-A2e/2).attr("y1",r+60).attr("x2",s).attr("y2",r+45),l.append("line").attr("x1",s).attr("y1",r+45).attr("x2",s+A2e/2-2).attr("y2",r+60),a=l.append("circle"),a.attr("cx",t.x+t.width/2),a.attr("cy",r+10),a.attr("r",15),a.attr("width",t.width),a.attr("height",t.height),e=l.node().getBBox();return t.height=e.height,e4e(i,Jc(t.description))(t.description,l,o.x,o.y+35,o.width,o.height,{class:"actor actor-man"},i),t.height},"drawActorTypeActor"),F2e=mt(async function(e,t,i,n){switch(t.type){case"actor":return B2e(e,t,i,n);case"participant":return P2e(e,t,i,n)}},"drawActor"),j2e=mt(function(e,t,i){e=e.append("g");q2e(e,t),t.name&&e4e(i)(t.name,e,t.x,t.y+i.boxTextMargin+(t.textMaxHeight||0)/2,t.width,0,{class:"text"},i),e.lower()},"drawBox"),z2e=mt(function(e){return e.append("g")},"anchorElement"),H2e=mt(function(e,t,i,n,r){var s=Rw(),a=t.anchored;s.x=t.startx,s.y=t.starty,s.class="activation"+r%3,s.width=t.stopx-t.startx,s.height=i-t.starty,$2e(a,s)},"drawActivation"),U2e=mt(async function(e,t,i,n){let{boxMargin:r,boxTextMargin:s,labelBoxHeight:a,labelBoxWidth:o,messageFontFamily:l,messageFontSize:c,messageFontWeight:h}=n,u=e.append("g"),d=mt(function(e,t,i,n){return u.append("line").attr("x1",e).attr("y1",t).attr("x2",i).attr("y2",n).attr("class","loopLine")},"drawLoopLine"),p=(d(t.startx,t.starty,t.stopx,t.starty),d(t.stopx,t.starty,t.stopx,t.stopy),d(t.startx,t.stopy,t.stopx,t.stopy),d(t.startx,t.starty,t.startx,t.stopy),void 0!==t.sections&&t.sections.forEach(function(e){d(t.startx,e.y,t.stopx,e.y).style("stroke-dasharray","3, 3")}),Mw());p.text=i,p.x=t.startx,p.y=t.starty,p.fontFamily=l,p.fontSize=c,p.fontWeight=h,p.anchor="middle",p.valign="middle",p.tspan=!1,p.width=o||50,p.height=a||20,p.textMargin=s,p.class="labelText",N2e(u,p),(p=Q2e()).text=t.title,p.x=t.startx+o/2+(t.stopx-t.startx)/2,p.y=t.starty+r+s,p.anchor="middle",p.valign="middle",p.textMargin=s,p.class="loopText",p.fontFamily=l,p.fontSize=c,p.fontWeight=h,p.wrap=!0;var g=Jc(p.text)?await M2e(u,p,t):I2e(u,p);if(void 0!==t.sectionTitles)for(var[f,m]of Object.entries(t.sectionTitles))m.message&&(p.text=m.message,p.x=t.startx+(t.stopx-t.startx)/2,p.y=t.sections[f].y+r+s,p.class="loopText",p.anchor="middle",p.valign="middle",p.tspan=!1,p.fontFamily=l,p.fontSize=c,p.fontWeight=h,p.wrap=t.wrap,Jc(p.text)?(t.starty=t.sections[f].y,await M2e(u,p,t)):I2e(u,p),m=Math.round(g.map(e=>(e._groups||e)[0][0].getBBox().height).reduce((e,t)=>e+t)),t.sections[f].height+=m-(r+s));return t.height=Math.round(t.stopy-t.starty),u},"drawLoop"),q2e=mt(function(e,t){Aw(e,t)},"drawBackgroundRect"),W2e=mt(function(e){e.append("defs").append("symbol").attr("id","database").attr("fill-rule","evenodd").attr("clip-rule","evenodd").append("path").attr("transform","scale(.5)").attr("d","M12.258.001l.256.004.255.005.253.008.251.01.249.012.247.015.246.016.242.019.241.02.239.023.236.024.233.027.231.028.229.031.225.032.223.034.22.036.217.038.214.04.211.041.208.043.205.045.201.046.198.048.194.05.191.051.187.053.183.054.18.056.175.057.172.059.168.06.163.061.16.063.155.064.15.066.074.033.073.033.071.034.07.034.069.035.068.035.067.035.066.035.064.036.064.036.062.036.06.036.06.037.058.037.058.037.055.038.055.038.053.038.052.038.051.039.05.039.048.039.047.039.045.04.044.04.043.04.041.04.04.041.039.041.037.041.036.041.034.041.033.042.032.042.03.042.029.042.027.042.026.043.024.043.023.043.021.043.02.043.018.044.017.043.015.044.013.044.012.044.011.045.009.044.007.045.006.045.004.045.002.045.001.045v17l-.001.045-.002.045-.004.045-.006.045-.007.045-.009.044-.011.045-.012.044-.013.044-.015.044-.017.043-.018.044-.02.043-.021.043-.023.043-.024.043-.026.043-.027.042-.029.042-.03.042-.032.042-.033.042-.034.041-.036.041-.037.041-.039.041-.04.041-.041.04-.043.04-.044.04-.045.04-.047.039-.048.039-.05.039-.051.039-.052.038-.053.038-.055.038-.055.038-.058.037-.058.037-.06.037-.06.036-.062.036-.064.036-.064.036-.066.035-.067.035-.068.035-.069.035-.07.034-.071.034-.073.033-.074.033-.15.066-.155.064-.16.063-.163.061-.168.06-.172.059-.175.057-.18.056-.183.054-.187.053-.191.051-.194.05-.198.048-.201.046-.205.045-.208.043-.211.041-.214.04-.217.038-.22.036-.223.034-.225.032-.229.031-.231.028-.233.027-.236.024-.239.023-.241.02-.242.019-.246.016-.247.015-.249.012-.251.01-.253.008-.255.005-.256.004-.258.001-.258-.001-.256-.004-.255-.005-.253-.008-.251-.01-.249-.012-.247-.015-.245-.016-.243-.019-.241-.02-.238-.023-.236-.024-.234-.027-.231-.028-.228-.031-.226-.032-.223-.034-.22-.036-.217-.038-.214-.04-.211-.041-.208-.043-.204-.045-.201-.046-.198-.048-.195-.05-.19-.051-.187-.053-.184-.054-.179-.056-.176-.057-.172-.059-.167-.06-.164-.061-.159-.063-.155-.064-.151-.066-.074-.033-.072-.033-.072-.034-.07-.034-.069-.035-.068-.035-.067-.035-.066-.035-.064-.036-.063-.036-.062-.036-.061-.036-.06-.037-.058-.037-.057-.037-.056-.038-.055-.038-.053-.038-.052-.038-.051-.039-.049-.039-.049-.039-.046-.039-.046-.04-.044-.04-.043-.04-.041-.04-.04-.041-.039-.041-.037-.041-.036-.041-.034-.041-.033-.042-.032-.042-.03-.042-.029-.042-.027-.042-.026-.043-.024-.043-.023-.043-.021-.043-.02-.043-.018-.044-.017-.043-.015-.044-.013-.044-.012-.044-.011-.045-.009-.044-.007-.045-.006-.045-.004-.045-.002-.045-.001-.045v-17l.001-.045.002-.045.004-.045.006-.045.007-.045.009-.044.011-.045.012-.044.013-.044.015-.044.017-.043.018-.044.02-.043.021-.043.023-.043.024-.043.026-.043.027-.042.029-.042.03-.042.032-.042.033-.042.034-.041.036-.041.037-.041.039-.041.04-.041.041-.04.043-.04.044-.04.046-.04.046-.039.049-.039.049-.039.051-.039.052-.038.053-.038.055-.038.056-.038.057-.037.058-.037.06-.037.061-.036.062-.036.063-.036.064-.036.066-.035.067-.035.068-.035.069-.035.07-.034.072-.034.072-.033.074-.033.151-.066.155-.064.159-.063.164-.061.167-.06.172-.059.176-.057.179-.056.184-.054.187-.053.19-.051.195-.05.198-.048.201-.046.204-.045.208-.043.211-.041.214-.04.217-.038.22-.036.223-.034.226-.032.228-.031.231-.028.234-.027.236-.024.238-.023.241-.02.243-.019.245-.016.247-.015.249-.012.251-.01.253-.008.255-.005.256-.004.258-.001.258.001zm-9.258 20.499v.01l.001.021.003.021.004.022.005.021.006.022.007.022.009.023.01.022.011.023.012.023.013.023.015.023.016.024.017.023.018.024.019.024.021.024.022.025.023.024.024.025.052.049.056.05.061.051.066.051.07.051.075.051.079.052.084.052.088.052.092.052.097.052.102.051.105.052.11.052.114.051.119.051.123.051.127.05.131.05.135.05.139.048.144.049.147.047.152.047.155.047.16.045.163.045.167.043.171.043.176.041.178.041.183.039.187.039.19.037.194.035.197.035.202.033.204.031.209.03.212.029.216.027.219.025.222.024.226.021.23.02.233.018.236.016.24.015.243.012.246.01.249.008.253.005.256.004.259.001.26-.001.257-.004.254-.005.25-.008.247-.011.244-.012.241-.014.237-.016.233-.018.231-.021.226-.021.224-.024.22-.026.216-.027.212-.028.21-.031.205-.031.202-.034.198-.034.194-.036.191-.037.187-.039.183-.04.179-.04.175-.042.172-.043.168-.044.163-.045.16-.046.155-.046.152-.047.148-.048.143-.049.139-.049.136-.05.131-.05.126-.05.123-.051.118-.052.114-.051.11-.052.106-.052.101-.052.096-.052.092-.052.088-.053.083-.051.079-.052.074-.052.07-.051.065-.051.06-.051.056-.05.051-.05.023-.024.023-.025.021-.024.02-.024.019-.024.018-.024.017-.024.015-.023.014-.024.013-.023.012-.023.01-.023.01-.022.008-.022.006-.022.006-.022.004-.022.004-.021.001-.021.001-.021v-4.127l-.077.055-.08.053-.083.054-.085.053-.087.052-.09.052-.093.051-.095.05-.097.05-.1.049-.102.049-.105.048-.106.047-.109.047-.111.046-.114.045-.115.045-.118.044-.12.043-.122.042-.124.042-.126.041-.128.04-.13.04-.132.038-.134.038-.135.037-.138.037-.139.035-.142.035-.143.034-.144.033-.147.032-.148.031-.15.03-.151.03-.153.029-.154.027-.156.027-.158.026-.159.025-.161.024-.162.023-.163.022-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.011-.178.01-.179.008-.179.008-.181.006-.182.005-.182.004-.184.003-.184.002h-.37l-.184-.002-.184-.003-.182-.004-.182-.005-.181-.006-.179-.008-.179-.008-.178-.01-.176-.011-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.022-.162-.023-.161-.024-.159-.025-.157-.026-.156-.027-.155-.027-.153-.029-.151-.03-.15-.03-.148-.031-.146-.032-.145-.033-.143-.034-.141-.035-.14-.035-.137-.037-.136-.037-.134-.038-.132-.038-.13-.04-.128-.04-.126-.041-.124-.042-.122-.042-.12-.044-.117-.043-.116-.045-.113-.045-.112-.046-.109-.047-.106-.047-.105-.048-.102-.049-.1-.049-.097-.05-.095-.05-.093-.052-.09-.051-.087-.052-.085-.053-.083-.054-.08-.054-.077-.054v4.127zm0-5.654v.011l.001.021.003.021.004.021.005.022.006.022.007.022.009.022.01.022.011.023.012.023.013.023.015.024.016.023.017.024.018.024.019.024.021.024.022.024.023.025.024.024.052.05.056.05.061.05.066.051.07.051.075.052.079.051.084.052.088.052.092.052.097.052.102.052.105.052.11.051.114.051.119.052.123.05.127.051.131.05.135.049.139.049.144.048.147.048.152.047.155.046.16.045.163.045.167.044.171.042.176.042.178.04.183.04.187.038.19.037.194.036.197.034.202.033.204.032.209.03.212.028.216.027.219.025.222.024.226.022.23.02.233.018.236.016.24.014.243.012.246.01.249.008.253.006.256.003.259.001.26-.001.257-.003.254-.006.25-.008.247-.01.244-.012.241-.015.237-.016.233-.018.231-.02.226-.022.224-.024.22-.025.216-.027.212-.029.21-.03.205-.032.202-.033.198-.035.194-.036.191-.037.187-.039.183-.039.179-.041.175-.042.172-.043.168-.044.163-.045.16-.045.155-.047.152-.047.148-.048.143-.048.139-.05.136-.049.131-.05.126-.051.123-.051.118-.051.114-.052.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.051.07-.052.065-.051.06-.05.056-.051.051-.049.023-.025.023-.024.021-.025.02-.024.019-.024.018-.024.017-.024.015-.023.014-.023.013-.024.012-.022.01-.023.01-.023.008-.022.006-.022.006-.022.004-.021.004-.022.001-.021.001-.021v-4.139l-.077.054-.08.054-.083.054-.085.052-.087.053-.09.051-.093.051-.095.051-.097.05-.1.049-.102.049-.105.048-.106.047-.109.047-.111.046-.114.045-.115.044-.118.044-.12.044-.122.042-.124.042-.126.041-.128.04-.13.039-.132.039-.134.038-.135.037-.138.036-.139.036-.142.035-.143.033-.144.033-.147.033-.148.031-.15.03-.151.03-.153.028-.154.028-.156.027-.158.026-.159.025-.161.024-.162.023-.163.022-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.011-.178.009-.179.009-.179.007-.181.007-.182.005-.182.004-.184.003-.184.002h-.37l-.184-.002-.184-.003-.182-.004-.182-.005-.181-.007-.179-.007-.179-.009-.178-.009-.176-.011-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.022-.162-.023-.161-.024-.159-.025-.157-.026-.156-.027-.155-.028-.153-.028-.151-.03-.15-.03-.148-.031-.146-.033-.145-.033-.143-.033-.141-.035-.14-.036-.137-.036-.136-.037-.134-.038-.132-.039-.13-.039-.128-.04-.126-.041-.124-.042-.122-.043-.12-.043-.117-.044-.116-.044-.113-.046-.112-.046-.109-.046-.106-.047-.105-.048-.102-.049-.1-.049-.097-.05-.095-.051-.093-.051-.09-.051-.087-.053-.085-.052-.083-.054-.08-.054-.077-.054v4.139zm0-5.666v.011l.001.02.003.022.004.021.005.022.006.021.007.022.009.023.01.022.011.023.012.023.013.023.015.023.016.024.017.024.018.023.019.024.021.025.022.024.023.024.024.025.052.05.056.05.061.05.066.051.07.051.075.052.079.051.084.052.088.052.092.052.097.052.102.052.105.051.11.052.114.051.119.051.123.051.127.05.131.05.135.05.139.049.144.048.147.048.152.047.155.046.16.045.163.045.167.043.171.043.176.042.178.04.183.04.187.038.19.037.194.036.197.034.202.033.204.032.209.03.212.028.216.027.219.025.222.024.226.021.23.02.233.018.236.017.24.014.243.012.246.01.249.008.253.006.256.003.259.001.26-.001.257-.003.254-.006.25-.008.247-.01.244-.013.241-.014.237-.016.233-.018.231-.02.226-.022.224-.024.22-.025.216-.027.212-.029.21-.03.205-.032.202-.033.198-.035.194-.036.191-.037.187-.039.183-.039.179-.041.175-.042.172-.043.168-.044.163-.045.16-.045.155-.047.152-.047.148-.048.143-.049.139-.049.136-.049.131-.051.126-.05.123-.051.118-.052.114-.051.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.052.07-.051.065-.051.06-.051.056-.05.051-.049.023-.025.023-.025.021-.024.02-.024.019-.024.018-.024.017-.024.015-.023.014-.024.013-.023.012-.023.01-.022.01-.023.008-.022.006-.022.006-.022.004-.022.004-.021.001-.021.001-.021v-4.153l-.077.054-.08.054-.083.053-.085.053-.087.053-.09.051-.093.051-.095.051-.097.05-.1.049-.102.048-.105.048-.106.048-.109.046-.111.046-.114.046-.115.044-.118.044-.12.043-.122.043-.124.042-.126.041-.128.04-.13.039-.132.039-.134.038-.135.037-.138.036-.139.036-.142.034-.143.034-.144.033-.147.032-.148.032-.15.03-.151.03-.153.028-.154.028-.156.027-.158.026-.159.024-.161.024-.162.023-.163.023-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.01-.178.01-.179.009-.179.007-.181.006-.182.006-.182.004-.184.003-.184.001-.185.001-.185-.001-.184-.001-.184-.003-.182-.004-.182-.006-.181-.006-.179-.007-.179-.009-.178-.01-.176-.01-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.023-.162-.023-.161-.024-.159-.024-.157-.026-.156-.027-.155-.028-.153-.028-.151-.03-.15-.03-.148-.032-.146-.032-.145-.033-.143-.034-.141-.034-.14-.036-.137-.036-.136-.037-.134-.038-.132-.039-.13-.039-.128-.041-.126-.041-.124-.041-.122-.043-.12-.043-.117-.044-.116-.044-.113-.046-.112-.046-.109-.046-.106-.048-.105-.048-.102-.048-.1-.05-.097-.049-.095-.051-.093-.051-.09-.052-.087-.052-.085-.053-.083-.053-.08-.054-.077-.054v4.153zm8.74-8.179l-.257.004-.254.005-.25.008-.247.011-.244.012-.241.014-.237.016-.233.018-.231.021-.226.022-.224.023-.22.026-.216.027-.212.028-.21.031-.205.032-.202.033-.198.034-.194.036-.191.038-.187.038-.183.04-.179.041-.175.042-.172.043-.168.043-.163.045-.16.046-.155.046-.152.048-.148.048-.143.048-.139.049-.136.05-.131.05-.126.051-.123.051-.118.051-.114.052-.11.052-.106.052-.101.052-.096.052-.092.052-.088.052-.083.052-.079.052-.074.051-.07.052-.065.051-.06.05-.056.05-.051.05-.023.025-.023.024-.021.024-.02.025-.019.024-.018.024-.017.023-.015.024-.014.023-.013.023-.012.023-.01.023-.01.022-.008.022-.006.023-.006.021-.004.022-.004.021-.001.021-.001.021.001.021.001.021.004.021.004.022.006.021.006.023.008.022.01.022.01.023.012.023.013.023.014.023.015.024.017.023.018.024.019.024.02.025.021.024.023.024.023.025.051.05.056.05.06.05.065.051.07.052.074.051.079.052.083.052.088.052.092.052.096.052.101.052.106.052.11.052.114.052.118.051.123.051.126.051.131.05.136.05.139.049.143.048.148.048.152.048.155.046.16.046.163.045.168.043.172.043.175.042.179.041.183.04.187.038.191.038.194.036.198.034.202.033.205.032.21.031.212.028.216.027.22.026.224.023.226.022.231.021.233.018.237.016.241.014.244.012.247.011.25.008.254.005.257.004.26.001.26-.001.257-.004.254-.005.25-.008.247-.011.244-.012.241-.014.237-.016.233-.018.231-.021.226-.022.224-.023.22-.026.216-.027.212-.028.21-.031.205-.032.202-.033.198-.034.194-.036.191-.038.187-.038.183-.04.179-.041.175-.042.172-.043.168-.043.163-.045.16-.046.155-.046.152-.048.148-.048.143-.048.139-.049.136-.05.131-.05.126-.051.123-.051.118-.051.114-.052.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.051.07-.052.065-.051.06-.05.056-.05.051-.05.023-.025.023-.024.021-.024.02-.025.019-.024.018-.024.017-.023.015-.024.014-.023.013-.023.012-.023.01-.023.01-.022.008-.022.006-.023.006-.021.004-.022.004-.021.001-.021.001-.021-.001-.021-.001-.021-.004-.021-.004-.022-.006-.021-.006-.023-.008-.022-.01-.022-.01-.023-.012-.023-.013-.023-.014-.023-.015-.024-.017-.023-.018-.024-.019-.024-.02-.025-.021-.024-.023-.024-.023-.025-.051-.05-.056-.05-.06-.05-.065-.051-.07-.052-.074-.051-.079-.052-.083-.052-.088-.052-.092-.052-.096-.052-.101-.052-.106-.052-.11-.052-.114-.052-.118-.051-.123-.051-.126-.051-.131-.05-.136-.05-.139-.049-.143-.048-.148-.048-.152-.048-.155-.046-.16-.046-.163-.045-.168-.043-.172-.043-.175-.042-.179-.041-.183-.04-.187-.038-.191-.038-.194-.036-.198-.034-.202-.033-.205-.032-.21-.031-.212-.028-.216-.027-.22-.026-.224-.023-.226-.022-.231-.021-.233-.018-.237-.016-.241-.014-.244-.012-.247-.011-.25-.008-.254-.005-.257-.004-.26-.001-.26.001z")},"insertDatabaseIcon"),V2e=mt(function(e){e.append("defs").append("symbol").attr("id","computer").attr("width","24").attr("height","24").append("path").attr("transform","scale(.5)").attr("d","M2 2v13h20v-13h-20zm18 11h-16v-9h16v9zm-10.228 6l.466-1h3.524l.467 1h-4.457zm14.228 3h-24l2-6h2.104l-1.33 4h18.45l-1.297-4h2.073l2 6zm-5-10h-14v-7h14v7z")},"insertComputerIcon"),G2e=mt(function(e){e.append("defs").append("symbol").attr("id","clock").attr("width","24").attr("height","24").append("path").attr("transform","scale(.5)").attr("d","M12 2c5.514 0 10 4.486 10 10s-4.486 10-10 10-10-4.486-10-10 4.486-10 10-10zm0-2c-6.627 0-12 5.373-12 12s5.373 12 12 12 12-5.373 12-12-5.373-12-12-12zm5.848 12.459c.202.038.202.333.001.372-1.907.361-6.045 1.111-6.547 1.111-.719 0-1.301-.582-1.301-1.301 0-.512.77-5.447 1.125-7.445.034-.192.312-.181.343.014l.985 6.238 5.394 1.011z")},"insertClockIcon"),Y2e=mt(function(e){e.append("defs").append("marker").attr("id","arrowhead").attr("refX",7.9).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto-start-reverse").append("path").attr("d","M -1 0 L 10 5 L 0 10 z")},"insertArrowHead"),X2e=mt(function(e){e.append("defs").append("marker").attr("id","filled-head").attr("refX",15.5).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L14,7 L9,1 Z")},"insertArrowFilledHead"),K2e=mt(function(e){e.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)},"insertSequenceNumber"),Z2e=mt(function(e){e.append("defs").append("marker").attr("id","crosshead").attr("markerWidth",15).attr("markerHeight",8).attr("orient","auto").attr("refX",4).attr("refY",4.5).append("path").attr("fill","none").attr("stroke","#000000").style("stroke-dasharray","0, 0").attr("stroke-width","1pt").attr("d","M 1,2 L 6,7 M 6,2 L 1,7")},"insertArrowCrossHead"),Q2e=mt(function(){return{x:0,y:0,fill:void 0,anchor:void 0,style:"#666",width:void 0,height:void 0,textMargin:0,rx:0,ry:0,tspan:!0,valign:void 0}},"getTextObj"),J2e=mt(function(){return{x:0,y:0,fill:"#EDF2AE",stroke:"#666",width:100,anchor:"start",height:100,rx:0,ry:0}},"getNoteRect"),mt(n,"byText"),mt(c,"byTspan"),mt(r,"byFo"),mt(s,"byKatex"),mt(f,"_setTextAttrs"),e4e=function(e,t=!1){return t?s:"fo"===e.textPlacement?r:"old"===e.textPlacement?n:c},mt(t,"byText"),mt(l,"byTspan"),mt(i,"byFo"),mt(g,"_setTextAttrs"),t4e=function(e){return"fo"===e.textPlacement?i:"old"===e.textPlacement?t:l},i4e={drawRect:$2e,drawText:I2e,drawLabel:N2e,drawActor:F2e,drawBox:j2e,drawPopup:L2e,anchorElement:z2e,drawActivation:H2e,drawLoop:U2e,drawBackgroundRect:q2e,insertArrowHead:Y2e,insertArrowFilledHead:X2e,insertSequenceNumber:K2e,insertArrowCrossHead:Z2e,insertDatabaseIcon:W2e,insertComputerIcon:V2e,insertClockIcon:G2e,getTextObj:Q2e,getNoteRect:J2e,fixLifeLineHeights:O2e,sanitizeUrl:C2e.sanitizeUrl}});async function l4e(e,t){O.bumpVerticalPos(10);var{startx:i,stopx:n,message:r}=t,s=$.splitBreaks(r).length,a=Jc(r),r=a?await eh(r,N()):tC.calculateTextDimensions(r,g4e(D));a||(a=r.height/s,t.height+=a,O.bumpVerticalPos(a));let o,l=r.height-10,c=r.width;return i===n?(o=O.getVerticalPos()+l,D.rightAngles||(l+=D.boxMargin,o=O.getVerticalPos()+l),l+=30,s=$.getMax(c/2,D.width/2),O.insert(i-s,O.getVerticalPos()-10+l,n+s,O.getVerticalPos()+30+l)):(l+=D.boxMargin,o=O.getVerticalPos()+l,O.insert(i,o-10,n,o)),O.bumpVerticalPos(l),t.height+=l,t.stopy=t.starty+t.height,O.insert(t.fromBounds,t.starty,t.toBounds,t.stopy),o}function c4e(e,t,i,n,r){O.bumpVerticalPos(i);let s=n;t.id&&t.message&&e[t.id]&&(i=e[t.id].width,e=g4e(D),t.message=tC.wrapLabel(`[${t.message}]`,i-2*D.wrapPadding,e),t.width=i,t.wrap=!0,i=tC.calculateTextDimensions(t.message,e),e=$.getMax(i.height,D.labelBoxHeight),s=n+e,I.debug(e+" - "+t.message)),r(t),O.bumpVerticalPos(s)}function h4e(i,n,e,t,r,s,a){function o(e,t){e.x<r.get(i.from).x?(O.insert(n.stopx-t,n.starty,n.startx,n.stopy+e.height/2+D.noteMargin),n.stopx=n.stopx+t):(O.insert(n.startx,n.starty,n.stopx+t,n.stopy+e.height/2+D.noteMargin),n.stopx=n.stopx-t)}function l(e,t){e.x<r.get(i.to).x?(O.insert(n.startx-t,n.starty,n.stopx,n.stopy+e.height/2+D.noteMargin),n.startx=n.startx+t):(O.insert(n.stopx,n.starty,n.startx+t,n.stopy+e.height/2+D.noteMargin),n.startx=n.startx-t)}mt(o,"receiverAdjustment"),mt(l,"senderAdjustment"),s.get(i.to)==t?(o(s=r.get(i.to),"actor"==s.type?A2e/2+3:s.width/2+3),s.starty=e-s.height/2,O.bumpVerticalPos(s.height/2)):a.get(i.from)==t?(s=r.get(i.from),D.mirrorActors&&l(s,"actor"==s.type?A2e/2:s.width/2),s.stopy=e-s.height/2,O.bumpVerticalPos(s.height/2)):a.get(i.to)==t&&(s=r.get(i.to),D.mirrorActors&&o(s,"actor"==s.type?A2e/2+3:s.width/2+3),s.stopy=e-s.height/2,O.bumpVerticalPos(s.height/2))}async function u4e(e,t,i){var n,r={};for(n of t)if(e.get(n.to)&&e.get(n.from)){var s=e.get(n.to);if(n.placement===i.db.PLACEMENT.LEFTOF&&!s.prevActor||n.placement===i.db.PLACEMENT.RIGHTOF&&!s.nextActor)continue;var a=void 0!==n.placement,o=!a,a=(a?f4e:g4e)(D),l=n.wrap?tC.wrapLabel(n.message,D.width-2*D.wrapPadding,a):n.message,l=(Jc(l)?await eh(n.message,N()):tC.calculateTextDimensions(l,a)).width+2*D.wrapPadding;o&&n.from===s.nextActor?r[n.to]=$.getMax(r[n.to]||0,l):o&&n.from===s.prevActor?r[n.from]=$.getMax(r[n.from]||0,l):o&&n.from===n.to?(r[n.from]=$.getMax(r[n.from]||0,l/2),r[n.to]=$.getMax(r[n.to]||0,l/2)):n.placement===i.db.PLACEMENT.RIGHTOF?r[n.from]=$.getMax(r[n.from]||0,l):n.placement===i.db.PLACEMENT.LEFTOF?r[s.prevActor]=$.getMax(r[s.prevActor]||0,l):n.placement===i.db.PLACEMENT.OVER&&(s.prevActor&&(r[s.prevActor]=$.getMax(r[s.prevActor]||0,l/2)),s.nextActor)&&(r[n.from]=$.getMax(r[n.from]||0,l/2))}return I.debug("maxMessageWidthPerActor:",r),r}async function d4e(n,e,t){let i=0;for(var r of n.keys()){var r=n.get(r),s=(r.wrap&&(r.description=tC.wrapLabel(r.description,D.width-2*D.wrapPadding,m4e(D))),Jc(r.description)?await eh(r.description,N()):tC.calculateTextDimensions(r.description,m4e(D)));r.width=r.wrap?D.width:$.getMax(D.width,s.width+2*D.wrapPadding),r.height=r.wrap?$.getMax(s.height,D.height):D.height,i=$.getMax(i,r.height)}for(var a in e){var o,l=n.get(a);l&&((o=n.get(l.nextActor))?(o=e[a]+D.actorMargin-l.width/2-o.width/2,l.margin=$.getMax(o,D.actorMargin)):(o=e[a]+D.actorMargin-l.width/2,l.margin=$.getMax(o,D.actorMargin)))}let c=0;return t.forEach(e=>{var t=g4e(D),i=e.actorKeys.reduce((e,t)=>e+(n.get(t).width+(n.get(t).margin||0)),0),t=(i-=2*D.boxTextMargin,e.wrap&&(e.name=tC.wrapLabel(e.name,i-2*D.wrapPadding,t)),tC.calculateTextDimensions(e.name,t)),t=(c=$.getMax(t.height,c),$.getMax(i,t.width+2*D.wrapPadding));e.margin=D.boxTextMargin,i<t&&(e.margin+=(t-i)/2)}),t.forEach(e=>e.textMaxHeight=c),$.getMax(i,D.height)}var D,O,p4e,g4e,f4e,m4e,y4e,b4e,v4e,x4e,w4e,k4e,T4e,S4e,_4e,C4e,A4e,E4e,$4e,L4e=e(()=>{"use strict";a6(),o4e(),t(),hh(),hh(),c6(),Cu(),Vi(),sC(),uh(),D={},O={data:{startx:void 0,stopx:void 0,starty:void 0,stopy:void 0},verticalPos:0,sequenceItems:[],activations:[],models:{getHeight:mt(function(){return Math.max.apply(null,0===this.actors.length?[0]:this.actors.map(e=>e.height||0))+(0===this.loops.length?0:this.loops.map(e=>e.height||0).reduce((e,t)=>e+t))+(0===this.messages.length?0:this.messages.map(e=>e.height||0).reduce((e,t)=>e+t))+(0===this.notes.length?0:this.notes.map(e=>e.height||0).reduce((e,t)=>e+t))},"getHeight"),clear:mt(function(){this.actors=[],this.boxes=[],this.loops=[],this.messages=[],this.notes=[]},"clear"),addBox:mt(function(e){this.boxes.push(e)},"addBox"),addActor:mt(function(e){this.actors.push(e)},"addActor"),addLoop:mt(function(e){this.loops.push(e)},"addLoop"),addMessage:mt(function(e){this.messages.push(e)},"addMessage"),addNote:mt(function(e){this.notes.push(e)},"addNote"),lastActor:mt(function(){return this.actors[this.actors.length-1]},"lastActor"),lastLoop:mt(function(){return this.loops[this.loops.length-1]},"lastLoop"),lastMessage:mt(function(){return this.messages[this.messages.length-1]},"lastMessage"),lastNote:mt(function(){return this.notes[this.notes.length-1]},"lastNote"),actors:[],boxes:[],loops:[],messages:[],notes:[]},init:mt(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,w4e(N())},"init"),updateVal:mt(function(e,t,i,n){void 0===e[t]?e[t]=i:e[t]=n(i,e[t])},"updateVal"),updateBounds:mt(function(n,r,s,a){let o=this,l=0;function e(i){return mt(function(e){l++;var t=o.sequenceItems.length-l+1;o.updateVal(e,"starty",r-t*D.boxMargin,Math.min),o.updateVal(e,"stopy",a+t*D.boxMargin,Math.max),o.updateVal(O.data,"startx",n-t*D.boxMargin,Math.min),o.updateVal(O.data,"stopx",s+t*D.boxMargin,Math.max),"activation"!==i&&(o.updateVal(e,"startx",n-t*D.boxMargin,Math.min),o.updateVal(e,"stopx",s+t*D.boxMargin,Math.max),o.updateVal(O.data,"starty",r-t*D.boxMargin,Math.min),o.updateVal(O.data,"stopy",a+t*D.boxMargin,Math.max))},"updateItemBounds")}mt(e,"updateFn"),this.sequenceItems.forEach(e()),this.activations.forEach(e("activation"))},"updateBounds"),insert:mt(function(e,t,i,n){var r=$.getMin(e,i),e=$.getMax(e,i),i=$.getMin(t,n),t=$.getMax(t,n);this.updateVal(O.data,"startx",r,Math.min),this.updateVal(O.data,"starty",i,Math.min),this.updateVal(O.data,"stopx",e,Math.max),this.updateVal(O.data,"stopy",t,Math.max),this.updateBounds(r,i,e,t)},"insert"),newActivation:mt(function(e,t,i){var i=i.get(e.from),n=k4e(e.from).length||0,i=i.x+i.width/2+(n-1)*D.activationWidth/2;this.activations.push({startx:i,starty:this.verticalPos+2,stopx:i+D.activationWidth,stopy:void 0,actor:e.from,anchored:i4e.anchorElement(t)})},"newActivation"),endActivation:mt(function(e){e=this.activations.map(function(e){return e.actor}).lastIndexOf(e.from);return this.activations.splice(e,1)[0]},"endActivation"),createLoop:mt(function(e={message:void 0,wrap:!1,width:void 0},t){return{startx:void 0,starty:this.verticalPos,stopx:void 0,stopy:void 0,title:e.message,wrap:e.wrap,width:e.width,height:0,fill:t}},"createLoop"),newLoop:mt(function(e={message:void 0,wrap:!1,width:void 0},t){this.sequenceItems.push(this.createLoop(e,t))},"newLoop"),endLoop:mt(function(){return this.sequenceItems.pop()},"endLoop"),isLoopOverlap:mt(function(){return!!this.sequenceItems.length&&this.sequenceItems[this.sequenceItems.length-1].overlap},"isLoopOverlap"),addSectionToLoop:mt(function(e){var t=this.sequenceItems.pop();t.sections=t.sections||[],t.sectionTitles=t.sectionTitles||[],t.sections.push({y:O.getVerticalPos(),height:0}),t.sectionTitles.push(e),this.sequenceItems.push(t)},"addSectionToLoop"),saveVerticalPos:mt(function(){this.isLoopOverlap()&&(this.savedVerticalPos=this.verticalPos)},"saveVerticalPos"),resetVerticalPos:mt(function(){this.isLoopOverlap()&&(this.verticalPos=this.savedVerticalPos)},"resetVerticalPos"),bumpVerticalPos:mt(function(e){this.verticalPos=this.verticalPos+e,this.data.stopy=$.getMax(this.data.stopy,this.verticalPos)},"bumpVerticalPos"),getVerticalPos:mt(function(){return this.verticalPos},"getVerticalPos"),getBounds:mt(function(){return{bounds:this.data,models:this.models}},"getBounds")},p4e=mt(async function(e,t){O.bumpVerticalPos(D.boxMargin),t.height=D.boxMargin,t.starty=O.getVerticalPos();var i=Rw(),e=(i.x=t.startx,i.y=t.starty,i.width=t.width||D.width,i.class="note",e.append("g")),n=i4e.drawRect(e,i),r=Mw(),e=(r.x=t.startx,r.y=t.starty,r.width=i.width,r.dy="1em",r.text=t.message,r.class="noteText",r.fontFamily=D.noteFontFamily,r.fontSize=D.noteFontSize,r.fontWeight=D.noteFontWeight,r.anchor=D.noteAlign,r.textMargin=D.noteMargin,r.valign="center",Jc(r.text)?await M2e(e,r):I2e(e,r)),r=Math.round(e.map(e=>(e._groups||e)[0][0].getBBox().height).reduce((e,t)=>e+t));n.attr("height",r+2*D.noteMargin),t.height+=r+2*D.noteMargin,O.bumpVerticalPos(r+2*D.noteMargin),t.stopy=t.starty+r+2*D.noteMargin,t.stopx=t.startx+i.width,O.insert(t.startx,t.starty,t.stopx,t.stopy),O.models.addNote(t)},"drawNote"),g4e=mt(e=>({fontFamily:e.messageFontFamily,fontSize:e.messageFontSize,fontWeight:e.messageFontWeight}),"messageFont"),f4e=mt(e=>({fontFamily:e.noteFontFamily,fontSize:e.noteFontSize,fontWeight:e.noteFontWeight}),"noteFont"),m4e=mt(e=>({fontFamily:e.actorFontFamily,fontSize:e.actorFontSize,fontWeight:e.actorFontWeight}),"actorFont"),mt(l4e,"boundMessage"),y4e=mt(async function(e,t,i,n){var{startx:t,stopx:r,starty:s,message:a,type:o,sequenceIndex:l,sequenceVisible:c}=t,h=tC.calculateTextDimensions(a,g4e(D)),u=Mw();u.x=t,u.y=s+10,u.width=r-t,u.class="messageText",u.dy="1em",u.text=a,u.fontFamily=D.messageFontFamily,u.fontSize=D.messageFontSize,u.fontWeight=D.messageFontWeight,u.anchor=D.messageAlign,u.valign="center",u.textMargin=D.wrapPadding,u.tspan=!1,Jc(u.text)?await M2e(e,u,{startx:t,stopx:r,starty:i}):I2e(e,u);let d=h.width,p,g=(t===r?p=D.rightAngles?e.append("path").attr("d",`M ${t},${i} H ${t+$.getMax(D.width/2,d/2)} V ${i+25} H `+t):e.append("path").attr("d","M "+t+","+i+" C "+(t+60)+","+(i-10)+" "+(t+60)+","+(i+30)+" "+t+","+(i+20)):((p=e.append("line")).attr("x1",t),p.attr("y1",i),p.attr("x2",r),p.attr("y2",i)),o===n.db.LINETYPE.DOTTED||o===n.db.LINETYPE.DOTTED_CROSS||o===n.db.LINETYPE.DOTTED_POINT||o===n.db.LINETYPE.DOTTED_OPEN||o===n.db.LINETYPE.BIDIRECTIONAL_DOTTED?(p.style("stroke-dasharray","3, 3"),p.attr("class","messageLine1")):p.attr("class","messageLine0"),"");D.arrowMarkerAbsolute&&(g=Uc(!0)),p.attr("stroke-width",2),p.attr("stroke","none"),p.style("fill","none"),o!==n.db.LINETYPE.SOLID&&o!==n.db.LINETYPE.DOTTED||p.attr("marker-end","url("+g+"#arrowhead)"),o!==n.db.LINETYPE.BIDIRECTIONAL_SOLID&&o!==n.db.LINETYPE.BIDIRECTIONAL_DOTTED||(p.attr("marker-start","url("+g+"#arrowhead)"),p.attr("marker-end","url("+g+"#arrowhead)")),o!==n.db.LINETYPE.SOLID_POINT&&o!==n.db.LINETYPE.DOTTED_POINT||p.attr("marker-end","url("+g+"#filled-head)"),o!==n.db.LINETYPE.SOLID_CROSS&&o!==n.db.LINETYPE.DOTTED_CROSS||p.attr("marker-end","url("+g+"#crosshead)"),(c||D.showSequenceNumbers)&&(p.attr("marker-start","url("+g+"#sequencenumber)"),e.append("text").attr("x",t).attr("y",i+4).attr("font-family","sans-serif").attr("font-size","12px").attr("text-anchor","middle").attr("class","sequenceNumber").text(l))},"drawMessage"),b4e=mt(function(e,t,i,n,r,s,a){let o=0,l=0,c,h=0;for(var u of n){var u=t.get(u),d=u.box;c&&c!=d&&(a||O.models.addBox(c),l+=D.boxMargin+c.margin),d&&d!=c&&(a||(d.x=o+l,d.y=r),l+=d.margin),u.width=u.width||D.width,u.height=$.getMax(u.height||D.height,D.height),u.margin=u.margin||D.actorMargin,h=$.getMax(h,u.height),i.get(u.name)&&(l+=u.width/2),u.x=o+l,u.starty=O.getVerticalPos(),O.insert(u.x,r,u.x+u.width,u.height),o+=u.width+l,u.box&&(u.box.width=o+d.margin-u.box.x),l=u.margin,c=u.box,O.models.addActor(u)}c&&!a&&O.models.addBox(c),O.bumpVerticalPos(h)},"addActorRenderingData"),v4e=mt(async function(t,i,n,e){if(e){let e=0;O.bumpVerticalPos(2*D.boxMargin);for(var r of n){r=i.get(r),r=(r.stopy||(r.stopy=O.getVerticalPos()),await i4e.drawActor(t,r,D,!0));e=$.getMax(e,r)}O.bumpVerticalPos(e+D.boxMargin)}else for(var s of n){s=i.get(s);await i4e.drawActor(t,s,D,!1)}},"drawActors"),x4e=mt(function(e,t,i,n){let r=0,s=0;for(var a of i){var a=t.get(a),o=_4e(a),o=i4e.drawPopup(e,a,o,D,D.forceMenus,n);o.height>r&&(r=o.height),o.width+a.x>s&&(s=o.width+a.x)}return{maxHeight:r,maxWidth:s}},"drawActorsPopup"),w4e=mt(function(e){at(D,e),e.fontFamily&&(D.actorFontFamily=D.noteFontFamily=D.messageFontFamily=e.fontFamily),e.fontSize&&(D.actorFontSize=D.noteFontSize=D.messageFontSize=e.fontSize),e.fontWeight&&(D.actorFontWeight=D.noteFontWeight=D.messageFontWeight=e.fontWeight)},"setConf"),k4e=mt(function(t){return O.activations.filter(function(e){return e.actor===t})},"actorActivations"),T4e=mt(function(e,t){t=t.get(e),e=k4e(e);return[e.reduce(function(e,t){return $.getMin(e,t.startx)},t.x+t.width/2-1),e.reduce(function(e,t){return $.getMax(e,t.stopx)},t.x+t.width/2+1)]},"activationBounds"),mt(c4e,"adjustLoopHeightForWrap"),mt(h4e,"adjustCreatedDestroyedData"),S4e=mt(async function(e,t,i,n){var{securityLevel:r,sequence:s}=N();D=s;let a;"sandbox"===r&&(a=G("#i"+t));var s=G("sandbox"===r?a.nodes()[0].contentDocument.body:"body"),o="sandbox"===r?a.nodes()[0].contentDocument:document;O.init(),I.debug(n.db);let l="sandbox"===r?s.select(`[id="${t}"]`):G(`[id="${t}"]`),c=n.db.getActors(),h=n.db.getCreatedActors(),u=n.db.getDestroyedActors(),d=n.db.getBoxes(),p=n.db.getActorKeys(),g=n.db.getMessages(),f=n.db.getDiagramTitle(),m=n.db.hasAtLeastOneBox(),y=n.db.hasAtLeastOneBoxWithTitle(),b=await u4e(c,g,n);if(D.height=await d4e(c,b,d),i4e.insertComputerIcon(l),i4e.insertDatabaseIcon(l),i4e.insertClockIcon(l),m&&(O.bumpVerticalPos(D.boxMargin),y)&&O.bumpVerticalPos(d[0].textMaxHeight),!0===D.hideUnusedParticipants){let t=new Set;g.forEach(e=>{t.add(e.from),t.add(e.to)}),p=p.filter(e=>t.has(e))}b4e(l,c,h,p,0,g,!1);var v,x,w,k=await E4e(g,c,b,n);function T(e,t){var i=O.endActivation(e);i.starty+18>t&&(i.starty=t-6,t+=12),i4e.drawActivation(l,i,t,D,k4e(e.from).length),O.insert(i.startx,t-10,i.stopx,t)}i4e.insertArrowHead(l),i4e.insertArrowCrossHead(l),i4e.insertArrowFilledHead(l),i4e.insertSequenceNumber(l),mt(T,"activeEnd");let S=1,_=1,C=[],A=[],E=0;for(v of g){let e,t,i;switch(v.type){case n.db.LINETYPE.NOTE:O.resetVerticalPos(),t=v.noteModel,await p4e(l,t);break;case n.db.LINETYPE.ACTIVE_START:O.newActivation(v,l,c);break;case n.db.LINETYPE.ACTIVE_END:T(v,O.getVerticalPos());break;case n.db.LINETYPE.LOOP_START:c4e(k,v,D.boxMargin,D.boxMargin+D.boxTextMargin,e=>O.newLoop(e));break;case n.db.LINETYPE.LOOP_END:e=O.endLoop(),await i4e.drawLoop(l,e,"loop",D),O.bumpVerticalPos(e.stopy-O.getVerticalPos()),O.models.addLoop(e);break;case n.db.LINETYPE.RECT_START:c4e(k,v,D.boxMargin,D.boxMargin,e=>O.newLoop(void 0,e.message));break;case n.db.LINETYPE.RECT_END:e=O.endLoop(),A.push(e),O.models.addLoop(e),O.bumpVerticalPos(e.stopy-O.getVerticalPos());break;case n.db.LINETYPE.OPT_START:c4e(k,v,D.boxMargin,D.boxMargin+D.boxTextMargin,e=>O.newLoop(e));break;case n.db.LINETYPE.OPT_END:e=O.endLoop(),await i4e.drawLoop(l,e,"opt",D),O.bumpVerticalPos(e.stopy-O.getVerticalPos()),O.models.addLoop(e);break;case n.db.LINETYPE.ALT_START:c4e(k,v,D.boxMargin,D.boxMargin+D.boxTextMargin,e=>O.newLoop(e));break;case n.db.LINETYPE.ALT_ELSE:c4e(k,v,D.boxMargin+D.boxTextMargin,D.boxMargin,e=>O.addSectionToLoop(e));break;case n.db.LINETYPE.ALT_END:e=O.endLoop(),await i4e.drawLoop(l,e,"alt",D),O.bumpVerticalPos(e.stopy-O.getVerticalPos()),O.models.addLoop(e);break;case n.db.LINETYPE.PAR_START:case n.db.LINETYPE.PAR_OVER_START:c4e(k,v,D.boxMargin,D.boxMargin+D.boxTextMargin,e=>O.newLoop(e)),O.saveVerticalPos();break;case n.db.LINETYPE.PAR_AND:c4e(k,v,D.boxMargin+D.boxTextMargin,D.boxMargin,e=>O.addSectionToLoop(e));break;case n.db.LINETYPE.PAR_END:e=O.endLoop(),await i4e.drawLoop(l,e,"par",D),O.bumpVerticalPos(e.stopy-O.getVerticalPos()),O.models.addLoop(e);break;case n.db.LINETYPE.AUTONUMBER:S=v.message.start||S,_=v.message.step||_,v.message.visible?n.db.enableSequenceNumbers():n.db.disableSequenceNumbers();break;case n.db.LINETYPE.CRITICAL_START:c4e(k,v,D.boxMargin,D.boxMargin+D.boxTextMargin,e=>O.newLoop(e));break;case n.db.LINETYPE.CRITICAL_OPTION:c4e(k,v,D.boxMargin+D.boxTextMargin,D.boxMargin,e=>O.addSectionToLoop(e));break;case n.db.LINETYPE.CRITICAL_END:e=O.endLoop(),await i4e.drawLoop(l,e,"critical",D),O.bumpVerticalPos(e.stopy-O.getVerticalPos()),O.models.addLoop(e);break;case n.db.LINETYPE.BREAK_START:c4e(k,v,D.boxMargin,D.boxMargin+D.boxTextMargin,e=>O.newLoop(e));break;case n.db.LINETYPE.BREAK_END:e=O.endLoop(),await i4e.drawLoop(l,e,"break",D),O.bumpVerticalPos(e.stopy-O.getVerticalPos()),O.models.addLoop(e);break;default:try{(i=v.msgModel).starty=O.getVerticalPos(),i.sequenceIndex=S,i.sequenceVisible=n.db.showSequenceNumbers();var $=await l4e(l,i);h4e(v,i,$,E,c,h,u),C.push({messageModel:i,lineStartY:$}),O.models.addMessage(i)}catch(e){I.error("error while drawing message",e)}}[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,n.db.LINETYPE.BIDIRECTIONAL_SOLID,n.db.LINETYPE.BIDIRECTIONAL_DOTTED].includes(v.type)&&(S+=_),E++}I.debug("createdActors",h),I.debug("destroyedActors",u),await v4e(l,c,p,!1);for(x of C)await y4e(l,x.messageModel,x.lineStartY,n);D.mirrorActors&&await v4e(l,c,p,!0),A.forEach(e=>i4e.drawBackgroundRect(l,e)),O2e(l,c,p,D);for(w of O.models.boxes)w.height=O.getVerticalPos()-w.y,O.insert(w.x,w.y,w.x+w.width,w.height),w.startx=w.x,w.starty=w.y,w.stopx=w.startx+w.width,w.stopy=w.starty+w.height,w.stroke="rgb(0,0,0, 0.5)",i4e.drawBox(l,w,D);m&&O.bumpVerticalPos(D.boxMargin);r=x4e(l,c,p,o),s=O.getBounds().bounds;void 0===s.startx&&(s.startx=0),void 0===s.starty&&(s.starty=0),void 0===s.stopx&&(s.stopx=0),void 0===s.stopy&&(s.stopy=0);let L=s.stopy-s.starty,R=(L=L<r.maxHeight?r.maxHeight:L)+2*D.diagramMarginY,M=(D.mirrorActors&&(R=R-D.boxMargin+D.bottomMarginAdj),s.stopx-s.startx);t=(M=M<r.maxWidth?r.maxWidth:M)+2*D.diagramMarginX,f&&l.append("text").text(f).attr("x",(s.stopx-s.startx)/2-2*D.diagramMarginX).attr("y",-25),rh(l,R,t,D.useMaxWidth),o=f?40:0;l.attr("viewBox",s.startx-D.diagramMarginX+" -"+(D.diagramMarginY+o)+" "+t+" "+(R+o)),I.debug("models:",O.models)},"draw"),mt(u4e,"getMaxMessageWidthPerActor"),_4e=mt(function(e){let t=0,i=m4e(D);for(var n in e.links){n=tC.calculateTextDimensions(n,i).width+2*D.wrapPadding+2*D.boxMargin;t<n&&(t=n)}return t},"getRequiredPopupWidth"),mt(d4e,"calculateActorMargins"),C4e=mt(async function(e,t,i){var n=t.get(e.from),t=t.get(e.to),r=n.x,s=t.x,a=e.wrap&&e.message,o=Jc(e.message)?await eh(e.message,N()):tC.calculateTextDimensions(a?tC.wrapLabel(e.message,D.width,f4e(D)):e.message,f4e(D)),l={width:a?D.width:$.getMax(D.width,o.width+2*D.noteMargin),height:0,startx:n.x,stopx:0,starty:0,stopy:0,message:e.message};return e.placement===i.db.PLACEMENT.RIGHTOF?(l.width=a?$.getMax(D.width,o.width):$.getMax(n.width/2+t.width/2,o.width+2*D.noteMargin),l.startx=r+(n.width+D.actorMargin)/2):e.placement===i.db.PLACEMENT.LEFTOF?(l.width=a?$.getMax(D.width,o.width+2*D.noteMargin):$.getMax(n.width/2+t.width/2,o.width+2*D.noteMargin),l.startx=r-l.width+(n.width-D.actorMargin)/2):e.to===e.from?(o=tC.calculateTextDimensions(a?tC.wrapLabel(e.message,$.getMax(D.width,n.width),f4e(D)):e.message,f4e(D)),l.width=a?$.getMax(D.width,n.width):$.getMax(n.width,D.width,o.width+2*D.noteMargin),l.startx=r+(n.width-l.width)/2):(l.width=Math.abs(r+n.width/2-(s+t.width/2))+D.actorMargin,l.startx=r<s?r+n.width/2-D.actorMargin/2:s+t.width/2-D.actorMargin/2),a&&(l.message=tC.wrapLabel(e.message,l.width-2*D.wrapPadding,f4e(D))),I.debug(`NM:[${l.startx},${l.stopx},${l.starty},${l.stopy}:${l.width},${l.height}=${e.message}]`),l},"buildNoteModel"),A4e=mt(function(e,t,i){if(![i.db.LINETYPE.SOLID_OPEN,i.db.LINETYPE.DOTTED_OPEN,i.db.LINETYPE.SOLID,i.db.LINETYPE.DOTTED,i.db.LINETYPE.SOLID_CROSS,i.db.LINETYPE.DOTTED_CROSS,i.db.LINETYPE.SOLID_POINT,i.db.LINETYPE.DOTTED_POINT,i.db.LINETYPE.BIDIRECTIONAL_SOLID,i.db.LINETYPE.BIDIRECTIONAL_DOTTED].includes(e.type))return{};let[n,r]=T4e(e.from,t),[s,a]=T4e(e.to,t),o=n<=s,l=o?r:n,c=o?s:a,h=2<Math.abs(s-a),u=mt(e=>o?-e:e,"adjustValue");e.from===e.to?c=l:(e.activate&&!h&&(c+=u(D.activationWidth/2-1)),[i.db.LINETYPE.SOLID_OPEN,i.db.LINETYPE.DOTTED_OPEN].includes(e.type)||(c+=u(3)),[i.db.LINETYPE.BIDIRECTIONAL_SOLID,i.db.LINETYPE.BIDIRECTIONAL_DOTTED].includes(e.type)&&(l-=u(3)));var t=[n,r,s,a],i=Math.abs(l-c),d=(e.wrap&&e.message&&(e.message=tC.wrapLabel(e.message,$.getMax(i+2*D.wrapPadding,D.width),g4e(D))),tC.calculateTextDimensions(e.message,g4e(D)));return{width:$.getMax(e.wrap?0:d.width+2*D.wrapPadding,i+2*D.wrapPadding,D.width),height:0,startx:l,stopx:c,starty:0,stopy:0,message:e.message,type:e.type,wrap:e.wrap,fromBounds:Math.min.apply(null,t),toBounds:Math.max.apply(null,t)}},"buildMessageModel"),E4e=mt(async function(e,n,t,r){let s={},a=[],o,l,c;for(let i of e){switch(i.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.PAR_OVER_START:case r.db.LINETYPE.CRITICAL_START:case r.db.LINETYPE.BREAK_START:a.push({id:i.id,msg:i.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:i.message&&(o=a.pop(),s[o.id]=o,s[i.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(),s[o.id]=o;break;case r.db.LINETYPE.ACTIVE_START:var h=n.get(i.from||i.to.actor),u=k4e(i.from||i.to.actor).length,h=h.x+h.width/2+(u-1)*D.activationWidth/2,u={startx:h,stopx:h+D.activationWidth,actor:i.from,enabled:!0};O.activations.push(u);break;case r.db.LINETYPE.ACTIVE_END:h=O.activations.map(e=>e.actor).lastIndexOf(i.from);O.activations.splice(h,1).splice(0,1)}void 0!==i.placement?(l=await C4e(i,n,r),i.noteModel=l,a.forEach(e=>{(o=e).from=$.getMin(o.from,l.startx),o.to=$.getMax(o.to,l.startx+l.width),o.width=$.getMax(o.width,Math.abs(o.from-o.to))-D.labelBoxWidth})):(c=A4e(i,n,r),(i.msgModel=c).startx&&c.stopx&&0<a.length&&a.forEach(e=>{var t;o=e,c.startx===c.stopx?(e=n.get(i.from),t=n.get(i.to),o.from=$.getMin(e.x-c.width/2,e.x-e.width/2,o.from),o.to=$.getMax(t.x+c.width/2,t.x+e.width/2,o.to),o.width=$.getMax(o.width,Math.abs(o.to-o.from))-D.labelBoxWidth):(o.from=$.getMin(c.startx,o.from),o.to=$.getMax(c.stopx,o.to),o.width=$.getMax(o.width,c.width)-D.labelBoxWidth)}))}return O.activations=[],I.debug("Loop type widths:",s),s},"calculateLoopBounds"),$4e={bounds:O,drawActors:v4e,drawActorsPopup:x4e,setConf:w4e,draw:S4e}}),R4e={};V(R4e,{diagram:()=>M4e});var M4e,I4e,N4e,D4e,O4e,P4e,B4e,F4e,j4e,z4e,H4e,U4e,q4e,W4e,V4e,G4e=e(()=>{"use strict";r4e(),s4e(),a4e(),Cu(),L4e(),M4e={parser:v2e,get db(){return new T2e},renderer:$4e,styles:_2e,init:mt(e=>{e.sequence||(e.sequence={}),e.wrap&&(e.sequence.wrap=e.wrap,Ah({sequence:{wrap:e.wrap}}))},"init")}}),Y4e=e(()=>{"use strict";function O(){this.yy={}}var e,t,i,n,r,s,a,o,l,P,B,F,c,j,z,H,U,q,W,V,G,Y,h,u,d,p,X,g,f,m,y,b,v,K,Z,x,Q,w,k,T,S,J,ee,_,C,A,E,$,L,R,M,I,te,ie,N,ne,re,D;e=mt(function(e,t,i,n){for(i=i||{},n=e.length;n--;i[e[n]]=t);return i},"o"),t=[1,18],i=[1,19],n=[1,20],r=[1,41],s=[1,42],a=[1,26],o=[1,24],l=[1,25],P=[1,32],B=[1,33],F=[1,34],c=[1,45],j=[1,35],z=[1,36],H=[1,37],U=[1,38],q=[1,27],W=[1,28],V=[1,29],G=[1,30],Y=[1,31],h=[1,44],u=[1,46],d=[1,43],p=[1,47],X=[1,9],g=[1,8,9],f=[1,58],m=[1,59],y=[1,60],b=[1,61],v=[1,62],K=[1,63],Z=[1,64],x=[1,8,9,41],Q=[1,76],w=[1,8,9,12,13,22,39,41,44,66,67,68,69,70,71,72,77,79],k=[1,8,9,12,13,17,20,22,39,41,44,48,58,66,67,68,69,70,71,72,77,79,84,99,101,102],T=[13,58,84,99,101,102],S=[13,58,71,72,84,99,101,102],J=[13,58,66,67,68,69,70,84,99,101,102],ee=[1,98],_=[1,115],C=[1,107],A=[1,113],E=[1,108],$=[1,109],L=[1,110],R=[1,111],M=[1,112],I=[1,114],te=[22,58,59,80,84,85,86,87,88,89],ie=[1,8,9,39,41,44],N=[1,8,9,22],ne=[1,143],re=[1,8,9,59],D=[1,8,9,22,58,59,80,84,85,86,87,88,89],k={trace:mt(function(){},"trace"),yy:{},symbols_:{error:2,start:3,mermaidDoc:4,statements:5,graphConfig:6,CLASS_DIAGRAM:7,NEWLINE:8,EOF:9,statement:10,classLabel:11,SQS:12,STR:13,SQE:14,namespaceName:15,alphaNumToken:16,DOT:17,className:18,classLiteralName:19,GENERICTYPE:20,relationStatement:21,LABEL:22,namespaceStatement:23,classStatement:24,memberStatement:25,annotationStatement:26,clickStatement:27,styleStatement:28,cssClassStatement:29,noteStatement:30,classDefStatement:31,direction:32,acc_title:33,acc_title_value:34,acc_descr:35,acc_descr_value:36,acc_descr_multiline_value:37,namespaceIdentifier:38,STRUCT_START:39,classStatements:40,STRUCT_STOP:41,NAMESPACE:42,classIdentifier:43,STYLE_SEPARATOR:44,members:45,CLASS:46,ANNOTATION_START:47,ANNOTATION_END:48,MEMBER:49,SEPARATOR:50,relation:51,NOTE_FOR:52,noteText:53,NOTE:54,CLASSDEF:55,classList:56,stylesOpt:57,ALPHA:58,COMMA:59,direction_tb:60,direction_bt:61,direction_rl:62,direction_lr:63,relationType:64,lineType:65,AGGREGATION:66,EXTENSION:67,COMPOSITION:68,DEPENDENCY:69,LOLLIPOP:70,LINE:71,DOTTED_LINE:72,CALLBACK:73,LINK:74,LINK_TARGET:75,CLICK:76,CALLBACK_NAME:77,CALLBACK_ARGS:78,HREF:79,STYLE:80,CSSCLASS:81,style:82,styleComponent:83,NUM:84,COLON:85,UNIT:86,SPACE:87,BRKT:88,PCT:89,commentToken:90,textToken:91,graphCodeTokens:92,textNoTagsToken:93,TAGSTART:94,TAGEND:95,"==":96,"--":97,DEFAULT:98,MINUS:99,keywords:100,UNICODE_TEXT:101,BQUOTE_STR:102,$accept:0,$end:1},terminals_:{2:"error",7:"CLASS_DIAGRAM",8:"NEWLINE",9:"EOF",12:"SQS",13:"STR",14:"SQE",17:"DOT",20:"GENERICTYPE",22:"LABEL",33:"acc_title",34:"acc_title_value",35:"acc_descr",36:"acc_descr_value",37:"acc_descr_multiline_value",39:"STRUCT_START",41:"STRUCT_STOP",42:"NAMESPACE",44:"STYLE_SEPARATOR",46:"CLASS",47:"ANNOTATION_START",48:"ANNOTATION_END",49:"MEMBER",50:"SEPARATOR",52:"NOTE_FOR",54:"NOTE",55:"CLASSDEF",58:"ALPHA",59:"COMMA",60:"direction_tb",61:"direction_bt",62:"direction_rl",63:"direction_lr",66:"AGGREGATION",67:"EXTENSION",68:"COMPOSITION",69:"DEPENDENCY",70:"LOLLIPOP",71:"LINE",72:"DOTTED_LINE",73:"CALLBACK",74:"LINK",75:"LINK_TARGET",76:"CLICK",77:"CALLBACK_NAME",78:"CALLBACK_ARGS",79:"HREF",80:"STYLE",81:"CSSCLASS",84:"NUM",85:"COLON",86:"UNIT",87:"SPACE",88:"BRKT",89:"PCT",92:"graphCodeTokens",94:"TAGSTART",95:"TAGEND",96:"==",97:"--",98:"DEFAULT",99:"MINUS",100:"keywords",101:"UNICODE_TEXT",102:"BQUOTE_STR"},productions_:[0,[3,1],[3,1],[4,1],[6,4],[5,1],[5,2],[5,3],[11,3],[15,1],[15,3],[15,2],[18,1],[18,3],[18,1],[18,2],[18,2],[18,2],[10,1],[10,2],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,2],[10,2],[10,1],[23,4],[23,5],[38,2],[40,1],[40,2],[40,3],[24,1],[24,3],[24,4],[24,6],[43,2],[43,3],[26,4],[45,1],[45,2],[25,1],[25,2],[25,1],[25,1],[21,3],[21,4],[21,4],[21,5],[30,3],[30,2],[31,3],[56,1],[56,3],[32,1],[32,1],[32,1],[32,1],[51,3],[51,2],[51,2],[51,1],[64,1],[64,1],[64,1],[64,1],[64,1],[65,1],[65,1],[27,3],[27,4],[27,3],[27,4],[27,4],[27,5],[27,3],[27,4],[27,4],[27,5],[27,4],[27,5],[27,5],[27,6],[28,3],[29,3],[57,1],[57,3],[82,1],[82,2],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[90,1],[90,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[93,1],[93,1],[93,1],[93,1],[16,1],[16,1],[16,1],[16,1],[19,1],[53,1]],performAction:mt(function(e,t,i,n,r,s,a){var o=s.length-1;switch(r){case 8:this.$=s[o-1];break;case 9:case 12:case 14:this.$=s[o];break;case 10:case 13:this.$=s[o-2]+"."+s[o];break;case 11:case 15:this.$=s[o-1]+s[o];break;case 16:case 17:this.$=s[o-1]+"~"+s[o]+"~";break;case 18:n.addRelation(s[o]);break;case 19:s[o-1].title=n.cleanupLabel(s[o]),n.addRelation(s[o-1]);break;case 30:this.$=s[o].trim(),n.setAccTitle(this.$);break;case 31:case 32:this.$=s[o].trim(),n.setAccDescription(this.$);break;case 33:n.addClassesToNamespace(s[o-3],s[o-1]);break;case 34:n.addClassesToNamespace(s[o-4],s[o-1]);break;case 35:this.$=s[o],n.addNamespace(s[o]);break;case 36:this.$=[s[o]];break;case 37:this.$=[s[o-1]];break;case 38:s[o].unshift(s[o-2]),this.$=s[o];break;case 40:n.setCssClass(s[o-2],s[o]);break;case 41:n.addMembers(s[o-3],s[o-1]);break;case 42:n.setCssClass(s[o-5],s[o-3]),n.addMembers(s[o-5],s[o-1]);break;case 43:this.$=s[o],n.addClass(s[o]);break;case 44:this.$=s[o-1],n.addClass(s[o-1]),n.setClassLabel(s[o-1],s[o]);break;case 45:n.addAnnotation(s[o],s[o-2]);break;case 46:case 59:this.$=[s[o]];break;case 47:s[o].push(s[o-1]),this.$=s[o];break;case 48:break;case 49:n.addMember(s[o-1],n.cleanupLabel(s[o]));break;case 50:case 51:break;case 52:this.$={id1:s[o-2],id2:s[o],relation:s[o-1],relationTitle1:"none",relationTitle2:"none"};break;case 53:this.$={id1:s[o-3],id2:s[o],relation:s[o-1],relationTitle1:s[o-2],relationTitle2:"none"};break;case 54:this.$={id1:s[o-3],id2:s[o],relation:s[o-2],relationTitle1:"none",relationTitle2:s[o-1]};break;case 55:this.$={id1:s[o-4],id2:s[o],relation:s[o-2],relationTitle1:s[o-3],relationTitle2:s[o-1]};break;case 56:n.addNote(s[o],s[o-1]);break;case 57:n.addNote(s[o]);break;case 58:this.$=s[o-2],n.defineClass(s[o-1],s[o]);break;case 60:this.$=s[o-2].concat([s[o]]);break;case 61:n.setDirection("TB");break;case 62:n.setDirection("BT");break;case 63:n.setDirection("RL");break;case 64:n.setDirection("LR");break;case 65:this.$={type1:s[o-2],type2:s[o],lineType:s[o-1]};break;case 66:this.$={type1:"none",type2:s[o],lineType:s[o-1]};break;case 67:this.$={type1:s[o-1],type2:"none",lineType:s[o]};break;case 68:this.$={type1:"none",type2:"none",lineType:s[o]};break;case 69:this.$=n.relationType.AGGREGATION;break;case 70:this.$=n.relationType.EXTENSION;break;case 71:this.$=n.relationType.COMPOSITION;break;case 72:this.$=n.relationType.DEPENDENCY;break;case 73:this.$=n.relationType.LOLLIPOP;break;case 74:this.$=n.lineType.LINE;break;case 75:this.$=n.lineType.DOTTED_LINE;break;case 76:case 82:this.$=s[o-2],n.setClickEvent(s[o-1],s[o]);break;case 77:case 83:this.$=s[o-3],n.setClickEvent(s[o-2],s[o-1]),n.setTooltip(s[o-2],s[o]);break;case 78:this.$=s[o-2],n.setLink(s[o-1],s[o]);break;case 79:this.$=s[o-3],n.setLink(s[o-2],s[o-1],s[o]);break;case 80:this.$=s[o-3],n.setLink(s[o-2],s[o-1]),n.setTooltip(s[o-2],s[o]);break;case 81:this.$=s[o-4],n.setLink(s[o-3],s[o-2],s[o]),n.setTooltip(s[o-3],s[o-1]);break;case 84:this.$=s[o-3],n.setClickEvent(s[o-2],s[o-1],s[o]);break;case 85:this.$=s[o-4],n.setClickEvent(s[o-3],s[o-2],s[o-1]),n.setTooltip(s[o-3],s[o]);break;case 86:this.$=s[o-3],n.setLink(s[o-2],s[o]);break;case 87:this.$=s[o-4],n.setLink(s[o-3],s[o-1],s[o]);break;case 88:this.$=s[o-4],n.setLink(s[o-3],s[o-1]),n.setTooltip(s[o-3],s[o]);break;case 89:this.$=s[o-5],n.setLink(s[o-4],s[o-2],s[o]),n.setTooltip(s[o-4],s[o-1]);break;case 90:this.$=s[o-2],n.setCssStyle(s[o-1],s[o]);break;case 91:n.setCssClass(s[o-1],s[o]);break;case 92:this.$=[s[o]];break;case 93:s[o-2].push(s[o]),this.$=s[o-2];break;case 95:this.$=s[o-1]+s[o]}},"anonymous"),table:[{3:1,4:2,5:3,6:4,7:[1,6],10:5,16:39,18:21,19:40,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,33:t,35:i,37:n,38:22,42:r,43:23,46:s,47:a,49:o,50:l,52:P,54:B,55:F,58:c,60:j,61:z,62:H,63:U,73:q,74:W,76:V,80:G,81:Y,84:h,99:u,101:d,102:p},{1:[3]},{1:[2,1]},{1:[2,2]},{1:[2,3]},e(X,[2,5],{8:[1,48]}),{8:[1,49]},e(g,[2,18],{22:[1,50]}),e(g,[2,20]),e(g,[2,21]),e(g,[2,22]),e(g,[2,23]),e(g,[2,24]),e(g,[2,25]),e(g,[2,26]),e(g,[2,27]),e(g,[2,28]),e(g,[2,29]),{34:[1,51]},{36:[1,52]},e(g,[2,32]),e(g,[2,48],{51:53,64:56,65:57,13:[1,54],22:[1,55],66:f,67:m,68:y,69:b,70:v,71:K,72:Z}),{39:[1,65]},e(x,[2,39],{39:[1,67],44:[1,66]}),e(g,[2,50]),e(g,[2,51]),{16:68,58:c,84:h,99:u,101:d},{16:39,18:69,19:40,58:c,84:h,99:u,101:d,102:p},{16:39,18:70,19:40,58:c,84:h,99:u,101:d,102:p},{16:39,18:71,19:40,58:c,84:h,99:u,101:d,102:p},{58:[1,72]},{13:[1,73]},{16:39,18:74,19:40,58:c,84:h,99:u,101:d,102:p},{13:Q,53:75},{56:77,58:[1,78]},e(g,[2,61]),e(g,[2,62]),e(g,[2,63]),e(g,[2,64]),e(w,[2,12],{16:39,19:40,18:80,17:[1,79],20:[1,81],58:c,84:h,99:u,101:d,102:p}),e(w,[2,14],{20:[1,82]}),{15:83,16:84,58:c,84:h,99:u,101:d},{16:39,18:85,19:40,58:c,84:h,99:u,101:d,102:p},e(k,[2,118]),e(k,[2,119]),e(k,[2,120]),e(k,[2,121]),e([1,8,9,12,13,20,22,39,41,44,66,67,68,69,70,71,72,77,79],[2,122]),e(X,[2,6],{10:5,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,18:21,38:22,43:23,16:39,19:40,5:86,33:t,35:i,37:n,42:r,46:s,47:a,49:o,50:l,52:P,54:B,55:F,58:c,60:j,61:z,62:H,63:U,73:q,74:W,76:V,80:G,81:Y,84:h,99:u,101:d,102:p}),{5:87,10:5,16:39,18:21,19:40,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,33:t,35:i,37:n,38:22,42:r,43:23,46:s,47:a,49:o,50:l,52:P,54:B,55:F,58:c,60:j,61:z,62:H,63:U,73:q,74:W,76:V,80:G,81:Y,84:h,99:u,101:d,102:p},e(g,[2,19]),e(g,[2,30]),e(g,[2,31]),{13:[1,89],16:39,18:88,19:40,58:c,84:h,99:u,101:d,102:p},{51:90,64:56,65:57,66:f,67:m,68:y,69:b,70:v,71:K,72:Z},e(g,[2,49]),{65:91,71:K,72:Z},e(T,[2,68],{64:92,66:f,67:m,68:y,69:b,70:v}),e(S,[2,69]),e(S,[2,70]),e(S,[2,71]),e(S,[2,72]),e(S,[2,73]),e(J,[2,74]),e(J,[2,75]),{8:[1,94],24:95,40:93,43:23,46:s},{16:96,58:c,84:h,99:u,101:d},{45:97,49:ee},{48:[1,99]},{13:[1,100]},{13:[1,101]},{77:[1,102],79:[1,103]},{22:_,57:104,58:C,80:A,82:105,83:106,84:E,85:$,86:L,87:R,88:M,89:I},{58:[1,116]},{13:Q,53:117},e(g,[2,57]),e(g,[2,123]),{22:_,57:118,58:C,59:[1,119],80:A,82:105,83:106,84:E,85:$,86:L,87:R,88:M,89:I},e(te,[2,59]),{16:39,18:120,19:40,58:c,84:h,99:u,101:d,102:p},e(w,[2,15]),e(w,[2,16]),e(w,[2,17]),{39:[2,35]},{15:122,16:84,17:[1,121],39:[2,9],58:c,84:h,99:u,101:d},e(ie,[2,43],{11:123,12:[1,124]}),e(X,[2,7]),{9:[1,125]},e(N,[2,52]),{16:39,18:126,19:40,58:c,84:h,99:u,101:d,102:p},{13:[1,128],16:39,18:127,19:40,58:c,84:h,99:u,101:d,102:p},e(T,[2,67],{64:129,66:f,67:m,68:y,69:b,70:v}),e(T,[2,66]),{41:[1,130]},{24:95,40:131,43:23,46:s},{8:[1,132],41:[2,36]},e(x,[2,40],{39:[1,133]}),{41:[1,134]},{41:[2,46],45:135,49:ee},{16:39,18:136,19:40,58:c,84:h,99:u,101:d,102:p},e(g,[2,76],{13:[1,137]}),e(g,[2,78],{13:[1,139],75:[1,138]}),e(g,[2,82],{13:[1,140],78:[1,141]}),{13:[1,142]},e(g,[2,90],{59:ne}),e(re,[2,92],{83:144,22:_,58:C,80:A,84:E,85:$,86:L,87:R,88:M,89:I}),e(D,[2,94]),e(D,[2,96]),e(D,[2,97]),e(D,[2,98]),e(D,[2,99]),e(D,[2,100]),e(D,[2,101]),e(D,[2,102]),e(D,[2,103]),e(D,[2,104]),e(g,[2,91]),e(g,[2,56]),e(g,[2,58],{59:ne}),{58:[1,145]},e(w,[2,13]),{15:146,16:84,58:c,84:h,99:u,101:d},{39:[2,11]},e(ie,[2,44]),{13:[1,147]},{1:[2,4]},e(N,[2,54]),e(N,[2,53]),{16:39,18:148,19:40,58:c,84:h,99:u,101:d,102:p},e(T,[2,65]),e(g,[2,33]),{41:[1,149]},{24:95,40:150,41:[2,37],43:23,46:s},{45:151,49:ee},e(x,[2,41]),{41:[2,47]},e(g,[2,45]),e(g,[2,77]),e(g,[2,79]),e(g,[2,80],{75:[1,152]}),e(g,[2,83]),e(g,[2,84],{13:[1,153]}),e(g,[2,86],{13:[1,155],75:[1,154]}),{22:_,58:C,80:A,82:156,83:106,84:E,85:$,86:L,87:R,88:M,89:I},e(D,[2,95]),e(te,[2,60]),{39:[2,10]},{14:[1,157]},e(N,[2,55]),e(g,[2,34]),{41:[2,38]},{41:[1,158]},e(g,[2,81]),e(g,[2,85]),e(g,[2,87]),e(g,[2,88],{75:[1,159]}),e(re,[2,93],{83:144,22:_,58:C,80:A,84:E,85:$,86:L,87:R,88:M,89:I}),e(ie,[2,8]),e(x,[2,42]),e(g,[2,89])],defaultActions:{2:[2,1],3:[2,2],4:[2,3],83:[2,35],122:[2,11],125:[2,4],135:[2,47],146:[2,10],150:[2,38]},parseError:mt(function(e,t){var i;if(!t.recoverable)throw(i=new Error(e)).hash=t,i;this.trace(e)},"parseError"),parse:mt(function(e){var t,i=this,n=[0],r=[],s=[null],a=[],o=this.table,l="",c=0,h=0,u=0,d=1,p=a.slice.call(arguments,1),g=Object.create(this.lexer),f={yy:{}};for(t in this.yy)Object.prototype.hasOwnProperty.call(this.yy,t)&&(f.yy[t]=this.yy[t]);g.setInput(e,f.yy),f.yy.lexer=g,f.yy.parser=this,"u"<typeof g.yylloc&&(g.yylloc={});var m=g.yylloc,y=(a.push(m),g.options&&g.options.ranges);function b(){var e=r.pop()||g.lex()||d;return"number"!=typeof e&&(e instanceof Array&&(e=(r=e).pop()),e=i.symbols_[e]||e),e}"function"==typeof f.yy.parseError?this.parseError=f.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError,mt(function(e){n.length=n.length-2*e,s.length=s.length-e,a.length=a.length-e},"popStack"),mt(b,"lex");for(var v,x,w,k,T,S,_,C={};;){if(w=n[n.length-1],"u"<typeof(k=this.defaultActions[w]||((null===v||"u"<typeof v)&&(v=b()),o[w]&&o[w][v]))||!k.length||!k[0]){var A="",E=[];for(T in o[w])this.terminals_[T]&&2<T&&E.push("'"+this.terminals_[T]+"'");A=g.showPosition?"Parse error on line "+(c+1)+`:
|
||
`+g.showPosition()+`
|
||
Expecting `+E.join(", ")+", got '"+(this.terminals_[v]||v)+"'":"Parse error on line "+(c+1)+": Unexpected "+(v==d?"end of input":"'"+(this.terminals_[v]||v)+"'"),this.parseError(A,{text:g.match,token:this.terminals_[v]||v,line:g.yylineno,loc:m,expected:E})}if(k[0]instanceof Array&&1<k.length)throw new Error("Parse Error: multiple actions possible at state: "+w+", token: "+v);switch(k[0]){case 1:n.push(v),s.push(g.yytext),a.push(g.yylloc),n.push(k[1]),v=null,x?(v=x,x=null):(h=g.yyleng,l=g.yytext,c=g.yylineno,m=g.yylloc,0<u&&u--);break;case 2:if(S=this.productions_[k[1]][1],C.$=s[s.length-S],C._$={first_line:a[a.length-(S||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(S||1)].first_column,last_column:a[a.length-1].last_column},y&&(C._$.range=[a[a.length-(S||1)].range[0],a[a.length-1].range[1]]),typeof(_=this.performAction.apply(C,[l,h,c,f.yy,k[1],s,a].concat(p)))<"u")return _;S&&(n=n.slice(0,-1*S*2),s=s.slice(0,-1*S),a=a.slice(0,-1*S)),n.push(this.productions_[k[1]][0]),s.push(C.$),a.push(C._$),_=o[n[n.length-2]][n[n.length-1]],n.push(_);break;case 3:return!0}}return!0},"parse")},t={EOF:1,parseError:mt(function(e,t){if(!this.yy.parser)throw new Error(e);this.yy.parser.parseError(e,t)},"parseError"),setInput:mt(function(e,t){return this.yy=t||this.yy||{},this._input=e,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:mt(function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.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),e},"input"),unput:mt(function(e){var t=e.length,i=e.split(/(?:\r\n?|\n)/g),e=(this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t,this.match.split(/(?:\r\n?|\n)/g)),n=(this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),i.length-1&&(this.yylineno-=i.length-1),this.yylloc.range);return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:i?(i.length===e.length?this.yylloc.first_column:0)+e[e.length-i.length].length-i[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[n[0],n[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},"unput"),more:mt(function(){return this._more=!0,this},"more"),reject:mt(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).
|
||
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"reject"),less:mt(function(e){this.unput(this.match.slice(e))},"less"),pastInput:mt(function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(20<e.length?"...":"")+e.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:mt(function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(20<e.length?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:mt(function(){var e=this.pastInput(),t=new Array(e.length+1).join("-");return e+this.upcomingInput()+`
|
||
`+t+"^"},"showPosition"),test_match:mt(function(e,t){var i,n;if(this.options.backtrack_lexer&&(n={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)&&(n.yylloc.range=this.yylloc.range.slice(0)),(i=e[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=i.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:i?i[i.length-1].length-i[i.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+e[0].length},this.yytext+=e[0],this.match+=e[0],this.matches=e,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(e[0].length),this.matched+=e[0],i=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),i)return i;if(this._backtrack)for(var r in n)this[r]=n[r];return!1},"test_match"),next:mt(function(){if(this.done)return this.EOF;var e,t,i,n;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var r=this._currentRules(),s=0;s<r.length;s++)if((i=this._input.match(this.rules[r[s]]))&&(!t||i[0].length>t[0].length)){if(t=i,n=s,this.options.backtrack_lexer){if(!1!==(e=this.test_match(i,r[s])))return e;if(this._backtrack){t=!1;continue}return!1}if(!this.options.flex)break}return t?!1!==(e=this.test_match(t,r[n]))&&e:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
|
||
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:mt(function(){return this.next()||this.lex()},"lex"),begin:mt(function(e){this.conditionStack.push(e)},"begin"),popState:mt(function(){return 0<this.conditionStack.length-1?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:mt(function(){return(this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]]:this.conditions.INITIAL).rules},"_currentRules"),topState:mt(function(e){return 0<=(e=this.conditionStack.length-1-Math.abs(e||0))?this.conditionStack[e]:"INITIAL"},"topState"),pushState:mt(function(e){this.begin(e)},"pushState"),stateStackSize:mt(function(){return this.conditionStack.length},"stateStackSize"),options:{},performAction:mt(function(e,t,i,n){switch(i){case 0:return 60;case 1:return 61;case 2:return 62;case 3:return 63;case 4:case 5:break;case 6:return this.begin("acc_title"),33;case 7:return this.popState(),"acc_title_value";case 8:return this.begin("acc_descr"),35;case 9:return this.popState(),"acc_descr_value";case 10:this.begin("acc_descr_multiline");break;case 11:this.popState();break;case 12:return"acc_descr_multiline_value";case 13:return 8;case 14:break;case 15:case 16:return 7;case 17:return"EDGE_STATE";case 18:this.begin("callback_name");break;case 19:this.popState();break;case 20:this.popState(),this.begin("callback_args");break;case 21:return 77;case 22:this.popState();break;case 23:return 78;case 24:this.popState();break;case 25:return"STR";case 26:this.begin("string");break;case 27:return 80;case 28:return 55;case 29:return this.begin("namespace"),42;case 30:return this.popState(),8;case 31:break;case 32:return this.begin("namespace-body"),39;case 33:return this.popState(),41;case 34:return"EOF_IN_STRUCT";case 35:return 8;case 36:break;case 37:return"EDGE_STATE";case 38:return this.begin("class"),46;case 39:return this.popState(),8;case 40:break;case 41:return this.popState(),this.popState(),41;case 42:return this.begin("class-body"),39;case 43:return this.popState(),41;case 44:return"EOF_IN_STRUCT";case 45:return"EDGE_STATE";case 46:return"OPEN_IN_STRUCT";case 47:break;case 48:return"MEMBER";case 49:return 81;case 50:return 73;case 51:return 74;case 52:return 76;case 53:return 52;case 54:return 54;case 55:return 47;case 56:return 48;case 57:return 79;case 58:this.popState();break;case 59:return"GENERICTYPE";case 60:this.begin("generic");break;case 61:this.popState();break;case 62:return"BQUOTE_STR";case 63:this.begin("bqstring");break;case 64:case 65:case 66:case 67:return 75;case 68:case 69:return 67;case 70:case 71:return 69;case 72:return 68;case 73:return 66;case 74:return 70;case 75:return 71;case 76:return 72;case 77:return 22;case 78:return 44;case 79:return 99;case 80:return 17;case 81:return"PLUS";case 82:return 85;case 83:return 59;case 84:case 85:return 88;case 86:return 89;case 87:case 88:return"EQUALS";case 89:return 58;case 90:return 12;case 91:return 14;case 92:return"PUNCTUATION";case 93:return 84;case 94:return 101;case 95:case 96:return 87;case 97:return 9}},"anonymous"),rules:[/^(?:.*direction\s+TB[^\n]*)/,/^(?:.*direction\s+BT[^\n]*)/,/^(?:.*direction\s+RL[^\n]*)/,/^(?:.*direction\s+LR[^\n]*)/,/^(?:%%(?!\{)*[^\n]*(\r?\n?)+)/,/^(?:%%[^\n]*(\r?\n)*)/,/^(?:accTitle\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*\{\s*)/,/^(?:[\}])/,/^(?:[^\}]*)/,/^(?:\s*(\r?\n)+)/,/^(?:\s+)/,/^(?:classDiagram-v2\b)/,/^(?:classDiagram\b)/,/^(?:\[\*\])/,/^(?:call[\s]+)/,/^(?:\([\s]*\))/,/^(?:\()/,/^(?:[^(]*)/,/^(?:\))/,/^(?:[^)]*)/,/^(?:["])/,/^(?:[^"]*)/,/^(?:["])/,/^(?:style\b)/,/^(?:classDef\b)/,/^(?:namespace\b)/,/^(?:\s*(\r?\n)+)/,/^(?:\s+)/,/^(?:[{])/,/^(?:[}])/,/^(?:$)/,/^(?:\s*(\r?\n)+)/,/^(?:\s+)/,/^(?:\[\*\])/,/^(?:class\b)/,/^(?:\s*(\r?\n)+)/,/^(?:\s+)/,/^(?:[}])/,/^(?:[{])/,/^(?:[}])/,/^(?:$)/,/^(?:\[\*\])/,/^(?:[{])/,/^(?:[\n])/,/^(?:[^{}\n]*)/,/^(?:cssClass\b)/,/^(?:callback\b)/,/^(?:link\b)/,/^(?:click\b)/,/^(?:note for\b)/,/^(?:note\b)/,/^(?:<<)/,/^(?:>>)/,/^(?:href\b)/,/^(?:[~])/,/^(?:[^~]*)/,/^(?:~)/,/^(?:[`])/,/^(?:[^`]+)/,/^(?:[`])/,/^(?:_self\b)/,/^(?:_blank\b)/,/^(?:_parent\b)/,/^(?:_top\b)/,/^(?:\s*<\|)/,/^(?:\s*\|>)/,/^(?:\s*>)/,/^(?:\s*<)/,/^(?:\s*\*)/,/^(?:\s*o\b)/,/^(?:\s*\(\))/,/^(?:--)/,/^(?:\.\.)/,/^(?::{1}[^:\n;]+)/,/^(?::{3})/,/^(?:-)/,/^(?:\.)/,/^(?:\+)/,/^(?::)/,/^(?:,)/,/^(?:#)/,/^(?:#)/,/^(?:%)/,/^(?:=)/,/^(?:=)/,/^(?:\w+)/,/^(?:\[)/,/^(?:\])/,/^(?:[!"#$%&'*+,-.`?\\/])/,/^(?:[0-9]+)/,/^(?:[\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6]|[\u00F8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377]|[\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5]|[\u03F7-\u0481\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA]|[\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE]|[\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA]|[\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0]|[\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0977]|[\u0979-\u097F\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2]|[\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A]|[\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39]|[\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8]|[\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C]|[\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C]|[\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99]|[\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0]|[\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D]|[\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3]|[\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10]|[\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1]|[\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81]|[\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3]|[\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6]|[\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A]|[\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081]|[\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D]|[\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0]|[\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310]|[\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C]|[\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u1700-\u170C\u170E-\u1711]|[\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7]|[\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C]|[\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16]|[\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF]|[\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC]|[\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D]|[\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D]|[\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3]|[\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F]|[\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128]|[\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184]|[\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3]|[\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6]|[\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE]|[\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C]|[\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D]|[\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC]|[\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B]|[\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788]|[\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805]|[\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB]|[\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28]|[\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5]|[\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4]|[\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E]|[\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D]|[\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36]|[\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D]|[\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC]|[\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF]|[\uFFD2-\uFFD7\uFFDA-\uFFDC])/,/^(?:\s)/,/^(?:\s)/,/^(?:$)/],conditions:{"namespace-body":{rules:[26,33,34,35,36,37,38,49,50,51,52,53,54,55,56,57,60,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,86,87,88,89,90,91,92,93,94,95,97],inclusive:!1},namespace:{rules:[26,29,30,31,32,49,50,51,52,53,54,55,56,57,60,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,86,87,88,89,90,91,92,93,94,95,97],inclusive:!1},"class-body":{rules:[26,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,60,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,86,87,88,89,90,91,92,93,94,95,97],inclusive:!1},class:{rules:[26,39,40,41,42,49,50,51,52,53,54,55,56,57,60,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,86,87,88,89,90,91,92,93,94,95,97],inclusive:!1},acc_descr_multiline:{rules:[11,12,26,49,50,51,52,53,54,55,56,57,60,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,86,87,88,89,90,91,92,93,94,95,97],inclusive:!1},acc_descr:{rules:[9,26,49,50,51,52,53,54,55,56,57,60,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,86,87,88,89,90,91,92,93,94,95,97],inclusive:!1},acc_title:{rules:[7,26,49,50,51,52,53,54,55,56,57,60,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,86,87,88,89,90,91,92,93,94,95,97],inclusive:!1},callback_args:{rules:[22,23,26,49,50,51,52,53,54,55,56,57,60,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,86,87,88,89,90,91,92,93,94,95,97],inclusive:!1},callback_name:{rules:[19,20,21,26,49,50,51,52,53,54,55,56,57,60,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,86,87,88,89,90,91,92,93,94,95,97],inclusive:!1},href:{rules:[26,49,50,51,52,53,54,55,56,57,60,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,86,87,88,89,90,91,92,93,94,95,97],inclusive:!1},struct:{rules:[26,49,50,51,52,53,54,55,56,57,60,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,86,87,88,89,90,91,92,93,94,95,97],inclusive:!1},generic:{rules:[26,49,50,51,52,53,54,55,56,57,58,59,60,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,86,87,88,89,90,91,92,93,94,95,97],inclusive:!1},bqstring:{rules:[26,49,50,51,52,53,54,55,56,57,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,86,87,88,89,90,91,92,93,94,95,97],inclusive:!1},string:{rules:[24,25,26,49,50,51,52,53,54,55,56,57,60,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,86,87,88,89,90,91,92,93,94,95,97],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,8,10,13,14,15,16,17,18,26,27,28,29,38,49,50,51,52,53,54,55,56,57,60,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97],inclusive:!0}}},k.lexer=t,mt(O,"Parser"),(I4e=new((O.prototype=k).Parser=O)).parser=I4e,N4e=I4e}),X4e=e(()=>{"use strict";Cu(),hh(),D4e=["#","+","~","-",""],O4e=class{static{mt(this,"ClassMember")}constructor(e,t){this.memberType=t,this.visibility="",this.classifier="",this.text="";t=Pc(e,N());this.parseMember(t)}getDisplayDetails(){let e=this.visibility+Gc(this.id);"method"===this.memberType&&(e+=`(${Gc(this.parameters.trim())})`,this.returnType)&&(e+=" : "+Gc(this.returnType)),e=e.trim();var t=this.parseClassifier();return{displayText:e,cssStyle:t}}parseMember(e){let t="";"method"===this.memberType?(i=/([#+~-])?(.+)\((.*)\)([\s$*])?(.*)([$*])?/.exec(e))&&(r=i[1]?i[1].trim():"",D4e.includes(r)&&(this.visibility=r),this.id=i[2],this.parameters=i[3]?i[3].trim():"",t=i[4]?i[4].trim():"",this.returnType=i[5]?i[5].trim():"",""===t)&&(r=this.returnType.substring(this.returnType.length-1),/[$*]/.exec(r))&&(t=r,this.returnType=this.returnType.substring(0,this.returnType.length-1)):(i=e.length,r=e.substring(0,1),n=e.substring(i-1),D4e.includes(r)&&(this.visibility=r),/[$*]/.exec(n)&&(t=n),this.id=e.substring(""===this.visibility?0:1,""===t?i:i-1)),this.classifier=t,this.id=this.id.startsWith(" ")?" "+this.id.trim():this.id.trim();var i,n,r=(this.visibility?"\\"+this.visibility:"")+Gc(this.id)+("method"===this.memberType?`(${Gc(this.parameters)})`+(this.returnType?" : "+Gc(this.returnType):""):"");this.text=r.replaceAll("<","<").replaceAll(">",">"),this.text.startsWith("\\<")&&(this.text=this.text.replace("\\<","~"))}parseClassifier(){switch(this.classifier){case"*":return"font-style:italic;";case"$":return"text-decoration:underline;";default:return""}}}}),K4e=e(()=>{"use strict";a6(),t(),Cu(),hh(),sC(),_u(),X4e(),P4e="classId-",B4e=0,F4e=mt(e=>$.sanitizeText(e,N()),"sanitizeText"),j4e=class{constructor(){this.relations=[],this.classes=new Map,this.styleClasses=new Map,this.notes=[],this.interfaces=[],this.namespaces=new Map,this.namespaceCounter=0,this.functions=[],this.lineType={LINE:0,DOTTED_LINE:1},this.relationType={AGGREGATION:0,EXTENSION:1,COMPOSITION:2,DEPENDENCY:3,LOLLIPOP:4},this.setupToolTips=mt(e=>{let i=G(".mermaidTooltip");null===(i._groups||i)[0][0]&&(i=G("body").append("div").attr("class","mermaidTooltip").style("opacity",0)),G(e).select("svg").selectAll("g.node").on("mouseover",e=>{var t,e=G(e.currentTarget);null!==e.attr("title")&&(t=this.getBoundingClientRect(),i.transition().duration(200).style("opacity",".9"),i.text(e.attr("title")).style("left",window.scrollX+t.left+(t.right-t.left)/2+"px").style("top",window.scrollY+t.top-14+document.body.scrollTop+"px"),i.html(i.html().replace(/<br\/>/g,"<br/>")),e.classed("hover",!0))}).on("mouseout",e=>{i.transition().duration(500).style("opacity",0),G(e.currentTarget).classed("hover",!1)})},"setupToolTips"),this.direction="TB",this.setAccTitle=vh,this.getAccTitle=xh,this.setAccDescription=wh,this.getAccDescription=kh,this.setDiagramTitle=Th,this.getDiagramTitle=Sh,this.getConfig=mt(()=>N().class,"getConfig"),this.functions.push(this.setupToolTips.bind(this)),this.clear(),this.addRelation=this.addRelation.bind(this),this.addClassesToNamespace=this.addClassesToNamespace.bind(this),this.addNamespace=this.addNamespace.bind(this),this.setCssClass=this.setCssClass.bind(this),this.addMembers=this.addMembers.bind(this),this.addClass=this.addClass.bind(this),this.setClassLabel=this.setClassLabel.bind(this),this.addAnnotation=this.addAnnotation.bind(this),this.addMember=this.addMember.bind(this),this.cleanupLabel=this.cleanupLabel.bind(this),this.addNote=this.addNote.bind(this),this.defineClass=this.defineClass.bind(this),this.setDirection=this.setDirection.bind(this),this.setLink=this.setLink.bind(this),this.bindFunctions=this.bindFunctions.bind(this),this.clear=this.clear.bind(this),this.setTooltip=this.setTooltip.bind(this),this.setClickEvent=this.setClickEvent.bind(this),this.setCssStyle=this.setCssStyle.bind(this)}static{mt(this,"ClassDB")}splitClassNameAndType(e){let t=$.sanitizeText(e,N()),i="",n=t;return 0<t.indexOf("~")&&(e=t.split("~"),n=F4e(e[0]),i=F4e(e[1])),{className:n,type:i}}setClassLabel(e,t){e=$.sanitizeText(e,N()),t=t&&F4e(t),e=this.splitClassNameAndType(e).className;this.classes.get(e).label=t,this.classes.get(e).text=""+t+(this.classes.get(e).type?`<${this.classes.get(e).type}>`:"")}addClass(e){var e=$.sanitizeText(e,N()),{className:e,type:t}=this.splitClassNameAndType(e);this.classes.has(e)||(e=$.sanitizeText(e,N()),this.classes.set(e,{id:e,type:t,label:e,text:e+(t?`<${t}>`:""),shape:"classBox",cssClasses:"default",methods:[],members:[],annotations:[],styles:[],domId:P4e+e+"-"+B4e}),B4e++)}addInterface(e,t){e={id:"interface"+this.interfaces.length,label:e,classId:t};this.interfaces.push(e)}lookUpDomId(e){e=$.sanitizeText(e,N());if(this.classes.has(e))return this.classes.get(e).domId;throw new Error("Class not found: "+e)}clear(){this.relations=[],this.classes=new Map,this.notes=[],this.interfaces=[],this.functions=[],this.functions.push(this.setupToolTips.bind(this)),this.namespaces=new Map,this.namespaceCounter=0,this.direction="TB",bh()}getClass(e){return this.classes.get(e)}getClasses(){return this.classes}getRelations(){return this.relations}getNotes(){return this.notes}addRelation(e){I.debug("Adding relation: "+JSON.stringify(e));var t=[this.relationType.LOLLIPOP,this.relationType.AGGREGATION,this.relationType.COMPOSITION,this.relationType.DEPENDENCY,this.relationType.EXTENSION];e.relation.type1!==this.relationType.LOLLIPOP||t.includes(e.relation.type2)?e.relation.type2!==this.relationType.LOLLIPOP||t.includes(e.relation.type1)?(this.addClass(e.id1),this.addClass(e.id2)):(this.addClass(e.id1),this.addInterface(e.id2,e.id1),e.id2="interface"+(this.interfaces.length-1)):(this.addClass(e.id2),this.addInterface(e.id1,e.id2),e.id1="interface"+(this.interfaces.length-1)),e.id1=this.splitClassNameAndType(e.id1).className,e.id2=this.splitClassNameAndType(e.id2).className,e.relationTitle1=$.sanitizeText(e.relationTitle1.trim(),N()),e.relationTitle2=$.sanitizeText(e.relationTitle2.trim(),N()),this.relations.push(e)}addAnnotation(e,t){e=this.splitClassNameAndType(e).className;this.classes.get(e).annotations.push(t)}addMember(e,t){this.addClass(e);e=this.splitClassNameAndType(e).className,e=this.classes.get(e);"string"==typeof t&&((t=t.trim()).startsWith("<<")&&t.endsWith(">>")?e.annotations.push(F4e(t.substring(2,t.length-2))):0<t.indexOf(")")?e.methods.push(new O4e(t,"method")):t&&e.members.push(new O4e(t,"attribute")))}addMembers(t,e){Array.isArray(e)&&(e.reverse(),e.forEach(e=>this.addMember(t,e)))}addNote(e,t){t={id:"note"+this.notes.length,class:t,text:e};this.notes.push(t)}cleanupLabel(e){return e.startsWith(":")&&(e=e.substring(1)),F4e(e.trim())}setCssClass(e,i){e.split(",").forEach(e=>{let t=e;/\d/.exec(e[0])&&(t=P4e+t);e=this.classes.get(t);e&&(e.cssClasses+=" "+i)})}defineClass(e,n){for(let t of e){let i=this.styleClasses.get(t);void 0===i&&(i={id:t,styles:[],textStyles:[]},this.styleClasses.set(t,i)),n&&n.forEach(e=>{var t;/color/.exec(e)&&(t=e.replace("fill","bgFill"),i.textStyles.push(t)),i.styles.push(e)}),this.classes.forEach(e=>{e.cssClasses.includes(t)&&e.styles.push(...n.flatMap(e=>e.split(",")))})}}setTooltip(e,t){e.split(",").forEach(e=>{void 0!==t&&(this.classes.get(e).tooltip=F4e(t))})}getTooltip(e,t){return(t&&this.namespaces.has(t)?this.namespaces.get(t):this).classes.get(e).tooltip}setLink(e,i,n){let r=N();e.split(",").forEach(e=>{let t=e;/\d/.exec(e[0])&&(t=P4e+t);e=this.classes.get(t);e&&(e.link=tC.formatUrl(i,r),"sandbox"===r.securityLevel?e.linkTarget="_top":e.linkTarget="string"==typeof n?F4e(n):"_blank")}),this.setCssClass(e,"clickable")}setClickEvent(e,t,i){e.split(",").forEach(e=>{this.setClickFunc(e,t,i),this.classes.get(e).haveCallback=!0}),this.setCssClass(e,"clickable")}setClickFunc(e,n,r){e=$.sanitizeText(e,N());if("loose"===N().securityLevel&&void 0!==n)if(this.classes.has(e)){let t=this.lookUpDomId(e),i=[];if("string"==typeof r){i=r.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(let t=0;t<i.length;t++){let e=i[t].trim();e.startsWith('"')&&e.endsWith('"')&&(e=e.substr(1,e.length-2)),i[t]=e}}0===i.length&&i.push(t),this.functions.push(()=>{var e=document.querySelector(`[id="${t}"]`);null!==e&&e.addEventListener("click",()=>{tC.runFunc(n,...i)},!1)})}}bindFunctions(t){this.functions.forEach(e=>{e(t)})}getDirection(){return this.direction}setDirection(e){this.direction=e}addNamespace(e){this.namespaces.has(e)||(this.namespaces.set(e,{id:e,classes:new Map,children:{},domId:P4e+e+"-"+this.namespaceCounter}),this.namespaceCounter++)}getNamespace(e){return this.namespaces.get(e)}getNamespaces(){return this.namespaces}addClassesToNamespace(e,t){if(this.namespaces.has(e))for(var i of t){i=this.splitClassNameAndType(i)["className"];this.classes.get(i).parent=e,this.namespaces.get(e).classes.set(i,this.classes.get(i))}}setCssStyle(e,t){var i=this.classes.get(e);if(t&&i)for(var n of t)n.includes(",")?i.styles.push(...n.split(",")):i.styles.push(n)}getArrowMarker(e){let t;switch(e){case 0:t="aggregation";break;case 1:t="extension";break;case 2:t="composition";break;case 3:t="dependency";break;case 4:t="lollipop";break;default:t="none"}return t}getData(){var e,t,i,n,r,s=[],a=[],o=N();for(e of this.namespaces.keys()){var l=this.namespaces.get(e);l&&(l={id:l.id,label:l.id,isGroup:!0,padding:o.class.padding??16,shape:"rect",cssStyles:["fill: none","stroke: black"],look:o.look},s.push(l))}for(t of this.classes.keys()){var c,h=this.classes.get(t);h&&((c=h).parentId=h.parent,c.look=o.look,s.push(c))}let u=0;for(i of this.notes){u++;var d={id:i.id,label:i.text,isGroup:!1,shape:"note",padding:o.class.padding??6,cssStyles:["text-align: left","white-space: nowrap","fill: "+o.themeVariables.noteBkgColor,"stroke: "+o.themeVariables.noteBorderColor],look:o.look},d=(s.push(d),this.classes.get(i.class)?.id??"");d&&(d={id:"edgeNote"+u,start:i.id,end:d,type:"normal",thickness:"normal",classes:"relation",arrowTypeStart:"none",arrowTypeEnd:"none",arrowheadStyle:"",labelStyle:[""],style:["fill: none"],pattern:"dotted",look:o.look},a.push(d))}for(n of this.interfaces){var p={id:n.id,label:n.label,isGroup:!1,shape:"rect",cssStyles:["opacity: 0;"],look:o.look};s.push(p)}u=0;for(r of this.relations){u++;var g={id:rC(r.id1,r.id2,{prefix:"id",counter:u}),start:r.id1,end:r.id2,type:"normal",label:r.title,labelpos:"c",thickness:"normal",classes:"relation",arrowTypeStart:this.getArrowMarker(r.relation.type1),arrowTypeEnd:this.getArrowMarker(r.relation.type2),startLabelRight:"none"===r.relationTitle1?"":r.relationTitle1,endLabelLeft:"none"===r.relationTitle2?"":r.relationTitle2,arrowheadStyle:"",labelStyle:["display: inline-block"],style:r.style||"",pattern:1==r.relation.lineType?"dashed":"solid",look:o.look};a.push(g)}return{nodes:s,edges:a,other:{},config:o,direction:this.getDirection()}}}}),Z4e=e(()=>{"use strict";iZ(),z4e=mt(e=>`g.classGroup text {
|
||
fill: ${e.nodeBorder||e.classText};
|
||
stroke: none;
|
||
font-family: ${e.fontFamily};
|
||
font-size: 10px;
|
||
|
||
.title {
|
||
font-weight: bolder;
|
||
}
|
||
|
||
}
|
||
|
||
.nodeLabel, .edgeLabel {
|
||
color: ${e.classText};
|
||
}
|
||
.edgeLabel .label rect {
|
||
fill: ${e.mainBkg};
|
||
}
|
||
.label text {
|
||
fill: ${e.classText};
|
||
}
|
||
|
||
.labelBkg {
|
||
background: ${e.mainBkg};
|
||
}
|
||
.edgeLabel .label span {
|
||
background: ${e.mainBkg};
|
||
}
|
||
|
||
.classTitle {
|
||
font-weight: bolder;
|
||
}
|
||
.node rect,
|
||
.node circle,
|
||
.node ellipse,
|
||
.node polygon,
|
||
.node path {
|
||
fill: ${e.mainBkg};
|
||
stroke: ${e.nodeBorder};
|
||
stroke-width: 1px;
|
||
}
|
||
|
||
|
||
.divider {
|
||
stroke: ${e.nodeBorder};
|
||
stroke-width: 1;
|
||
}
|
||
|
||
g.clickable {
|
||
cursor: pointer;
|
||
}
|
||
|
||
g.classGroup rect {
|
||
fill: ${e.mainBkg};
|
||
stroke: ${e.nodeBorder};
|
||
}
|
||
|
||
g.classGroup line {
|
||
stroke: ${e.nodeBorder};
|
||
stroke-width: 1;
|
||
}
|
||
|
||
.classLabel .box {
|
||
stroke: none;
|
||
stroke-width: 0;
|
||
fill: ${e.mainBkg};
|
||
opacity: 0.5;
|
||
}
|
||
|
||
.classLabel .label {
|
||
fill: ${e.nodeBorder};
|
||
font-size: 10px;
|
||
}
|
||
|
||
.relation {
|
||
stroke: ${e.lineColor};
|
||
stroke-width: 1;
|
||
fill: none;
|
||
}
|
||
|
||
.dashed-line{
|
||
stroke-dasharray: 3;
|
||
}
|
||
|
||
.dotted-line{
|
||
stroke-dasharray: 1 2;
|
||
}
|
||
|
||
#compositionStart, .composition {
|
||
fill: ${e.lineColor} !important;
|
||
stroke: ${e.lineColor} !important;
|
||
stroke-width: 1;
|
||
}
|
||
|
||
#compositionEnd, .composition {
|
||
fill: ${e.lineColor} !important;
|
||
stroke: ${e.lineColor} !important;
|
||
stroke-width: 1;
|
||
}
|
||
|
||
#dependencyStart, .dependency {
|
||
fill: ${e.lineColor} !important;
|
||
stroke: ${e.lineColor} !important;
|
||
stroke-width: 1;
|
||
}
|
||
|
||
#dependencyStart, .dependency {
|
||
fill: ${e.lineColor} !important;
|
||
stroke: ${e.lineColor} !important;
|
||
stroke-width: 1;
|
||
}
|
||
|
||
#extensionStart, .extension {
|
||
fill: transparent !important;
|
||
stroke: ${e.lineColor} !important;
|
||
stroke-width: 1;
|
||
}
|
||
|
||
#extensionEnd, .extension {
|
||
fill: transparent !important;
|
||
stroke: ${e.lineColor} !important;
|
||
stroke-width: 1;
|
||
}
|
||
|
||
#aggregationStart, .aggregation {
|
||
fill: transparent !important;
|
||
stroke: ${e.lineColor} !important;
|
||
stroke-width: 1;
|
||
}
|
||
|
||
#aggregationEnd, .aggregation {
|
||
fill: transparent !important;
|
||
stroke: ${e.lineColor} !important;
|
||
stroke-width: 1;
|
||
}
|
||
|
||
#lollipopStart, .lollipop {
|
||
fill: ${e.mainBkg} !important;
|
||
stroke: ${e.lineColor} !important;
|
||
stroke-width: 1;
|
||
}
|
||
|
||
#lollipopEnd, .lollipop {
|
||
fill: ${e.mainBkg} !important;
|
||
stroke: ${e.lineColor} !important;
|
||
stroke-width: 1;
|
||
}
|
||
|
||
.edgeTerminals {
|
||
font-size: 11px;
|
||
line-height: initial;
|
||
}
|
||
|
||
.classTitleText {
|
||
text-anchor: middle;
|
||
font-size: 18px;
|
||
fill: ${e.textColor};
|
||
}
|
||
${VK()}
|
||
`,"getStyles"),H4e=z4e}),Q4e=e(()=>{"use strict";Cu(),t(),QN(),ZK(),QK(),sC(),U4e=mt((e,t="TB")=>{if(!e.doc)return t;let i=t;for(var n of e.doc)"dir"===n.stmt&&(i=n.value);return i},"getDir"),q4e=mt(function(e,t){return t.db.getClasses()},"getClasses"),W4e=mt(async function(e,t,i,n){I.info("REF0:"),I.info("Drawing class diagram (v3)",t);var{securityLevel:r,state:s,layout:a}=N(),o=n.db.getData(),r=FN(t,r);o.type=n.type,o.layoutAlgorithm=DK(a),o.nodeSpacing=s?.nodeSpacing||50,o.rankSpacing=s?.rankSpacing||50,o.markers=["aggregation","extension","composition","dependency","lollipop"],o.diagramId=t,await NK(o,r);tC.insertTitle(r,"classDiagramTitleText",s?.titleTopMargin??25,n.db.getDiagramTitle()),OK(r,8,"classDiagram",s?.useMaxWidth??!0)},"draw"),V4e={getClasses:q4e,draw:W4e,getDir:U4e}}),J4e={};V(J4e,{diagram:()=>exe});var exe,txe=e(()=>{"use strict";Y4e(),K4e(),Z4e(),Q4e(),exe={parser:N4e,get db(){return new j4e},renderer:V4e,styles:H4e,init:mt(e=>{e.class||(e.class={}),e.class.arrowMarkerAbsolute=e.arrowMarkerAbsolute},"init")}}),ixe={};V(ixe,{diagram:()=>nxe});var nxe,rxe,sxe,axe,oxe,lxe,cxe,hxe,uxe,dxe,pxe,gxe,fxe,mxe,yxe,bxe,vxe,xxe,wxe,kxe,Txe,Sxe,_xe,Cxe,Axe,Exe,$xe,Lxe,Rxe,Mxe,Ixe,Nxe,Dxe,Oxe,Pxe,Bxe,Fxe,jxe,zxe,Hxe,Uxe=e(()=>{"use strict";Y4e(),K4e(),Z4e(),Q4e(),nxe={parser:N4e,get db(){return new j4e},renderer:V4e,styles:H4e,init:mt(e=>{e.class||(e.class={}),e.class.arrowMarkerAbsolute=e.arrowMarkerAbsolute},"init")}}),qxe=e(()=>{"use strict";function e(){this.yy={}}var t,i,n,r,s,a,o,l,c,h,u,d,p,g,f,m,y,b,v,x,w,k,T,S,_,C,A,E,$,L,R,M;t=mt(function(e,t,i,n){for(i=i||{},n=e.length;n--;i[e[n]]=t);return i},"o"),i=[1,2],n=[1,3],r=[1,4],s=[2,4],a=[1,9],o=[1,11],l=[1,16],c=[1,17],h=[1,18],u=[1,19],d=[1,33],p=[1,20],g=[1,21],f=[1,22],m=[1,23],y=[1,24],b=[1,26],v=[1,27],x=[1,28],w=[1,29],k=[1,30],T=[1,31],S=[1,32],_=[1,35],C=[1,36],A=[1,37],E=[1,38],$=[1,34],L=[1,4,5,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,41,45,48,51,52,53,54,57],R=[1,4,5,14,15,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,39,40,41,45,48,51,52,53,54,57],M=[4,5,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,41,45,48,51,52,53,54,57],i={trace:mt(function(){},"trace"),yy:{},symbols_:{error:2,start:3,SPACE:4,NL:5,SD:6,document:7,line:8,statement:9,classDefStatement:10,styleStatement:11,cssClassStatement:12,idStatement:13,DESCR:14,"--\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,CLICK:38,STRING:39,HREF:40,classDef:41,CLASSDEF_ID:42,CLASSDEF_STYLEOPTS:43,DEFAULT:44,style:45,STYLE_IDS:46,STYLEDEF_STYLEOPTS:47,class:48,CLASSENTITY_IDS:49,STYLECLASS:50,direction_tb:51,direction_bt:52,direction_rl:53,direction_lr:54,eol:55,";":56,EDGE_STATE:57,STYLE_SEPARATOR:58,left_of:59,right_of:60,$accept:0,$end:1},terminals_:{2:"error",4:"SPACE",5:"NL",6:"SD",14:"DESCR",15:"--\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:"CLICK",39:"STRING",40:"HREF",41:"classDef",42:"CLASSDEF_ID",43:"CLASSDEF_STYLEOPTS",44:"DEFAULT",45:"style",46:"STYLE_IDS",47:"STYLEDEF_STYLEOPTS",48:"class",49:"CLASSENTITY_IDS",50:"STYLECLASS",51:"direction_tb",52:"direction_bt",53:"direction_rl",54:"direction_lr",56:";",57:"EDGE_STATE",58:"STYLE_SEPARATOR",59:"left_of",60:"right_of"},productions_:[0,[3,2],[3,2],[3,2],[7,0],[7,2],[8,2],[8,1],[8,1],[9,1],[9,1],[9,1],[9,1],[9,2],[9,3],[9,4],[9,1],[9,2],[9,1],[9,4],[9,3],[9,6],[9,1],[9,1],[9,1],[9,1],[9,4],[9,4],[9,1],[9,2],[9,2],[9,1],[9,5],[9,5],[10,3],[10,3],[11,3],[12,3],[32,1],[32,1],[32,1],[32,1],[55,1],[55,1],[13,1],[13,1],[13,3],[13,3],[30,1],[30,1]],performAction:mt(function(e,t,i,n,r,s,a){var o=s.length-1;switch(r){case 3:return n.setRootDoc(s[o]),s[o];case 4:this.$=[];break;case 5:"nl"!=s[o]&&(s[o-1].push(s[o]),this.$=s[o-1]);break;case 6:case 7:this.$=s[o];break;case 8:this.$="nl";break;case 12:this.$=s[o];break;case 13:var l=s[o-1];l.description=n.trimColon(s[o]),this.$=l;break;case 14:this.$={stmt:"relation",state1:s[o-2],state2:s[o]};break;case 15:l=n.trimColon(s[o]);this.$={stmt:"relation",state1:s[o-3],state2:s[o-1],description:l};break;case 19:this.$={stmt:"state",id:s[o-3],type:"default",description:"",doc:s[o-1]};break;case 20:var c,l=s[o],h=s[o-2].trim();s[o].match(":")&&(l=(c=s[o].split(":"))[0],h=[h,c[1]]),this.$={stmt:"state",id:l,type:"default",description:h};break;case 21:this.$={stmt:"state",id:s[o-3],type:"default",description:s[o-5],doc:s[o-1]};break;case 22:this.$={stmt:"state",id:s[o],type:"fork"};break;case 23:this.$={stmt:"state",id:s[o],type:"join"};break;case 24:this.$={stmt:"state",id:s[o],type:"choice"};break;case 25:this.$={stmt:"state",id:n.getDividerId(),type:"divider"};break;case 26:this.$={stmt:"state",id:s[o-1].trim(),note:{position:s[o-2].trim(),text:s[o].trim()}};break;case 29:this.$=s[o].trim(),n.setAccTitle(this.$);break;case 30:case 31:this.$=s[o].trim(),n.setAccDescription(this.$);break;case 32:this.$={stmt:"click",id:s[o-3],url:s[o-2],tooltip:s[o-1]};break;case 33:this.$={stmt:"click",id:s[o-3],url:s[o-1],tooltip:""};break;case 34:case 35:this.$={stmt:"classDef",id:s[o-1].trim(),classes:s[o].trim()};break;case 36:this.$={stmt:"style",id:s[o-1].trim(),styleClass:s[o].trim()};break;case 37:this.$={stmt:"applyClass",id:s[o-1].trim(),styleClass:s[o].trim()};break;case 38:n.setDirection("TB"),this.$={stmt:"dir",value:"TB"};break;case 39:n.setDirection("BT"),this.$={stmt:"dir",value:"BT"};break;case 40:n.setDirection("RL"),this.$={stmt:"dir",value:"RL"};break;case 41:n.setDirection("LR"),this.$={stmt:"dir",value:"LR"};break;case 44:case 45:this.$={stmt:"state",id:s[o].trim(),type:"default",description:""};break;case 46:case 47:this.$={stmt:"state",id:s[o-2].trim(),classes:[s[o].trim()],type:"default",description:""}}},"anonymous"),table:[{3:1,4:i,5:n,6:r},{1:[3]},{3:5,4:i,5:n,6:r},{3:6,4:i,5:n,6:r},t([1,4,5,16,17,19,22,24,25,26,27,28,29,33,35,37,38,41,45,48,51,52,53,54,57],s,{7:7}),{1:[2,1]},{1:[2,2]},{1:[2,3],4:a,5:o,8:8,9:10,10:12,11:13,12:14,13:15,16:l,17:c,19:h,22:u,24:d,25:p,26:g,27:f,28:m,29:y,32:25,33:b,35:v,37:x,38:w,41:k,45:T,48:S,51:_,52:C,53:A,54:E,57:$},t(L,[2,5]),{9:39,10:12,11:13,12:14,13:15,16:l,17:c,19:h,22:u,24:d,25:p,26:g,27:f,28:m,29:y,32:25,33:b,35:v,37:x,38:w,41:k,45:T,48:S,51:_,52:C,53:A,54:E,57:$},t(L,[2,7]),t(L,[2,8]),t(L,[2,9]),t(L,[2,10]),t(L,[2,11]),t(L,[2,12],{14:[1,40],15:[1,41]}),t(L,[2,16]),{18:[1,42]},t(L,[2,18],{20:[1,43]}),{23:[1,44]},t(L,[2,22]),t(L,[2,23]),t(L,[2,24]),t(L,[2,25]),{30:45,31:[1,46],59:[1,47],60:[1,48]},t(L,[2,28]),{34:[1,49]},{36:[1,50]},t(L,[2,31]),{13:51,24:d,57:$},{42:[1,52],44:[1,53]},{46:[1,54]},{49:[1,55]},t(R,[2,44],{58:[1,56]}),t(R,[2,45],{58:[1,57]}),t(L,[2,38]),t(L,[2,39]),t(L,[2,40]),t(L,[2,41]),t(L,[2,6]),t(L,[2,13]),{13:58,24:d,57:$},t(L,[2,17]),t(M,s,{7:59}),{24:[1,60]},{24:[1,61]},{23:[1,62]},{24:[2,48]},{24:[2,49]},t(L,[2,29]),t(L,[2,30]),{39:[1,63],40:[1,64]},{43:[1,65]},{43:[1,66]},{47:[1,67]},{50:[1,68]},{24:[1,69]},{24:[1,70]},t(L,[2,14],{14:[1,71]}),{4:a,5:o,8:8,9:10,10:12,11:13,12:14,13:15,16:l,17:c,19:h,21:[1,72],22:u,24:d,25:p,26:g,27:f,28:m,29:y,32:25,33:b,35:v,37:x,38:w,41:k,45:T,48:S,51:_,52:C,53:A,54:E,57:$},t(L,[2,20],{20:[1,73]}),{31:[1,74]},{24:[1,75]},{39:[1,76]},{39:[1,77]},t(L,[2,34]),t(L,[2,35]),t(L,[2,36]),t(L,[2,37]),t(R,[2,46]),t(R,[2,47]),t(L,[2,15]),t(L,[2,19]),t(M,s,{7:78}),t(L,[2,26]),t(L,[2,27]),{5:[1,79]},{5:[1,80]},{4:a,5:o,8:8,9:10,10:12,11:13,12:14,13:15,16:l,17:c,19:h,21:[1,81],22:u,24:d,25:p,26:g,27:f,28:m,29:y,32:25,33:b,35:v,37:x,38:w,41:k,45:T,48:S,51:_,52:C,53:A,54:E,57:$},t(L,[2,32]),t(L,[2,33]),t(L,[2,21])],defaultActions:{5:[2,1],6:[2,2],47:[2,48],48:[2,49]},parseError:mt(function(e,t){var i;if(!t.recoverable)throw(i=new Error(e)).hash=t,i;this.trace(e)},"parseError"),parse:mt(function(e){var t,i=this,n=[0],r=[],s=[null],a=[],o=this.table,l="",c=0,h=0,u=0,d=1,p=a.slice.call(arguments,1),g=Object.create(this.lexer),f={yy:{}};for(t in this.yy)Object.prototype.hasOwnProperty.call(this.yy,t)&&(f.yy[t]=this.yy[t]);g.setInput(e,f.yy),f.yy.lexer=g,f.yy.parser=this,"u"<typeof g.yylloc&&(g.yylloc={});var m=g.yylloc,y=(a.push(m),g.options&&g.options.ranges);function b(){var e=r.pop()||g.lex()||d;return"number"!=typeof e&&(e instanceof Array&&(e=(r=e).pop()),e=i.symbols_[e]||e),e}"function"==typeof f.yy.parseError?this.parseError=f.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError,mt(function(e){n.length=n.length-2*e,s.length=s.length-e,a.length=a.length-e},"popStack"),mt(b,"lex");for(var v,x,w,k,T,S,_,C={};;){if(w=n[n.length-1],"u"<typeof(k=this.defaultActions[w]||((null===v||"u"<typeof v)&&(v=b()),o[w]&&o[w][v]))||!k.length||!k[0]){var A="",E=[];for(T in o[w])this.terminals_[T]&&2<T&&E.push("'"+this.terminals_[T]+"'");A=g.showPosition?"Parse error on line "+(c+1)+`:
|
||
`+g.showPosition()+`
|
||
Expecting `+E.join(", ")+", got '"+(this.terminals_[v]||v)+"'":"Parse error on line "+(c+1)+": Unexpected "+(v==d?"end of input":"'"+(this.terminals_[v]||v)+"'"),this.parseError(A,{text:g.match,token:this.terminals_[v]||v,line:g.yylineno,loc:m,expected:E})}if(k[0]instanceof Array&&1<k.length)throw new Error("Parse Error: multiple actions possible at state: "+w+", token: "+v);switch(k[0]){case 1:n.push(v),s.push(g.yytext),a.push(g.yylloc),n.push(k[1]),v=null,x?(v=x,x=null):(h=g.yyleng,l=g.yytext,c=g.yylineno,m=g.yylloc,0<u&&u--);break;case 2:if(S=this.productions_[k[1]][1],C.$=s[s.length-S],C._$={first_line:a[a.length-(S||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(S||1)].first_column,last_column:a[a.length-1].last_column},y&&(C._$.range=[a[a.length-(S||1)].range[0],a[a.length-1].range[1]]),typeof(_=this.performAction.apply(C,[l,h,c,f.yy,k[1],s,a].concat(p)))<"u")return _;S&&(n=n.slice(0,-1*S*2),s=s.slice(0,-1*S),a=a.slice(0,-1*S)),n.push(this.productions_[k[1]][0]),s.push(C.$),a.push(C._$),_=o[n[n.length-2]][n[n.length-1]],n.push(_);break;case 3:return!0}}return!0},"parse")},n={EOF:1,parseError:mt(function(e,t){if(!this.yy.parser)throw new Error(e);this.yy.parser.parseError(e,t)},"parseError"),setInput:mt(function(e,t){return this.yy=t||this.yy||{},this._input=e,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:mt(function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.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),e},"input"),unput:mt(function(e){var t=e.length,i=e.split(/(?:\r\n?|\n)/g),e=(this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t,this.match.split(/(?:\r\n?|\n)/g)),n=(this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),i.length-1&&(this.yylineno-=i.length-1),this.yylloc.range);return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:i?(i.length===e.length?this.yylloc.first_column:0)+e[e.length-i.length].length-i[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[n[0],n[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},"unput"),more:mt(function(){return this._more=!0,this},"more"),reject:mt(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).
|
||
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"reject"),less:mt(function(e){this.unput(this.match.slice(e))},"less"),pastInput:mt(function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(20<e.length?"...":"")+e.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:mt(function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(20<e.length?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:mt(function(){var e=this.pastInput(),t=new Array(e.length+1).join("-");return e+this.upcomingInput()+`
|
||
`+t+"^"},"showPosition"),test_match:mt(function(e,t){var i,n;if(this.options.backtrack_lexer&&(n={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)&&(n.yylloc.range=this.yylloc.range.slice(0)),(i=e[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=i.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:i?i[i.length-1].length-i[i.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+e[0].length},this.yytext+=e[0],this.match+=e[0],this.matches=e,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(e[0].length),this.matched+=e[0],i=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),i)return i;if(this._backtrack)for(var r in n)this[r]=n[r];return!1},"test_match"),next:mt(function(){if(this.done)return this.EOF;var e,t,i,n;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var r=this._currentRules(),s=0;s<r.length;s++)if((i=this._input.match(this.rules[r[s]]))&&(!t||i[0].length>t[0].length)){if(t=i,n=s,this.options.backtrack_lexer){if(!1!==(e=this.test_match(i,r[s])))return e;if(this._backtrack){t=!1;continue}return!1}if(!this.options.flex)break}return t?!1!==(e=this.test_match(t,r[n]))&&e:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
|
||
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:mt(function(){return this.next()||this.lex()},"lex"),begin:mt(function(e){this.conditionStack.push(e)},"begin"),popState:mt(function(){return 0<this.conditionStack.length-1?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:mt(function(){return(this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]]:this.conditions.INITIAL).rules},"_currentRules"),topState:mt(function(e){return 0<=(e=this.conditionStack.length-1-Math.abs(e||0))?this.conditionStack[e]:"INITIAL"},"topState"),pushState:mt(function(e){this.begin(e)},"pushState"),stateStackSize:mt(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:mt(function(e,t,i,n){switch(i){case 0:return 38;case 1:return 40;case 2:return 39;case 3:return 44;case 4:return 51;case 5:return 52;case 6:return 53;case 7:return 54;case 8:case 9:break;case 10:return 5;case 11:case 12:case 13:case 14:break;case 15:return this.pushState("SCALE"),17;case 16:return 18;case 17:this.popState();break;case 18:return this.begin("acc_title"),33;case 19:return this.popState(),"acc_title_value";case 20:return this.begin("acc_descr"),35;case 21:return this.popState(),"acc_descr_value";case 22:this.begin("acc_descr_multiline");break;case 23:this.popState();break;case 24:return"acc_descr_multiline_value";case 25:return this.pushState("CLASSDEF"),41;case 26:return this.popState(),this.pushState("CLASSDEFID"),"DEFAULT_CLASSDEF_ID";case 27:return this.popState(),this.pushState("CLASSDEFID"),42;case 28:return this.popState(),43;case 29:return this.pushState("CLASS"),48;case 30:return this.popState(),this.pushState("CLASS_STYLE"),49;case 31:return this.popState(),50;case 32:return this.pushState("STYLE"),45;case 33:return this.popState(),this.pushState("STYLEDEF_STYLES"),46;case 34:return this.popState(),47;case 35:return this.pushState("SCALE"),17;case 36:return 18;case 37:this.popState();break;case 38:this.pushState("STATE");break;case 39:return this.popState(),t.yytext=t.yytext.slice(0,-8).trim(),25;case 40:return this.popState(),t.yytext=t.yytext.slice(0,-8).trim(),26;case 41:return this.popState(),t.yytext=t.yytext.slice(0,-10).trim(),27;case 42:return this.popState(),t.yytext=t.yytext.slice(0,-8).trim(),25;case 43:return this.popState(),t.yytext=t.yytext.slice(0,-8).trim(),26;case 44:return this.popState(),t.yytext=t.yytext.slice(0,-10).trim(),27;case 45:return 51;case 46:return 52;case 47:return 53;case 48:return 54;case 49:this.pushState("STATE_STRING");break;case 50:return this.pushState("STATE_ID"),"AS";case 51:return this.popState(),"ID";case 52:this.popState();break;case 53:return"STATE_DESCR";case 54:return 19;case 55:this.popState();break;case 56:return this.popState(),this.pushState("struct"),20;case 57:break;case 58:return this.popState(),21;case 59:break;case 60:return this.begin("NOTE"),29;case 61:return this.popState(),this.pushState("NOTE_ID"),59;case 62:return this.popState(),this.pushState("NOTE_ID"),60;case 63:this.popState(),this.pushState("FLOATING_NOTE");break;case 64:return this.popState(),this.pushState("FLOATING_NOTE_ID"),"AS";case 65:break;case 66:return"NOTE_TEXT";case 67:return this.popState(),"ID";case 68:return this.popState(),this.pushState("NOTE_TEXT"),24;case 69:return this.popState(),t.yytext=t.yytext.substr(2).trim(),31;case 70:return this.popState(),t.yytext=t.yytext.slice(0,-8).trim(),31;case 71:case 72:return 6;case 73:return 16;case 74:return 57;case 75:return 24;case 76:return t.yytext=t.yytext.trim(),14;case 77:return 15;case 78:return 28;case 79:return 58;case 80:return 5;case 81:return"INVALID"}},"anonymous"),rules:[/^(?:click\b)/i,/^(?:href\b)/i,/^(?:"[^"]*")/i,/^(?:default\b)/i,/^(?:.*direction\s+TB[^\n]*)/i,/^(?:.*direction\s+BT[^\n]*)/i,/^(?:.*direction\s+RL[^\n]*)/i,/^(?:.*direction\s+LR[^\n]*)/i,/^(?:%%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n]+)/i,/^(?:[\s]+)/i,/^(?:((?!\n)\s)+)/i,/^(?:#[^\n]*)/i,/^(?:%[^\n]*)/i,/^(?:scale\s+)/i,/^(?:\d+)/i,/^(?:\s+width\b)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:classDef\s+)/i,/^(?:DEFAULT\s+)/i,/^(?:\w+\s+)/i,/^(?:[^\n]*)/i,/^(?:class\s+)/i,/^(?:(\w+)+((,\s*\w+)*))/i,/^(?:[^\n]*)/i,/^(?:style\s+)/i,/^(?:[\w,]+\s+)/i,/^(?:[^\n]*)/i,/^(?:scale\s+)/i,/^(?:\d+)/i,/^(?:\s+width\b)/i,/^(?:state\s+)/i,/^(?:.*<<fork>>)/i,/^(?:.*<<join>>)/i,/^(?:.*<<choice>>)/i,/^(?:.*\[\[fork\]\])/i,/^(?:.*\[\[join\]\])/i,/^(?:.*\[\[choice\]\])/i,/^(?:.*direction\s+TB[^\n]*)/i,/^(?:.*direction\s+BT[^\n]*)/i,/^(?:.*direction\s+RL[^\n]*)/i,/^(?:.*direction\s+LR[^\n]*)/i,/^(?:["])/i,/^(?:\s*as\s+)/i,/^(?:[^\n\{]*)/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:[^\n\s\{]+)/i,/^(?:\n)/i,/^(?:\{)/i,/^(?:%%(?!\{)[^\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:[12,13],inclusive:!1},struct:{rules:[12,13,25,29,32,38,45,46,47,48,57,58,59,60,74,75,76,77,78],inclusive:!1},FLOATING_NOTE_ID:{rules:[67],inclusive:!1},FLOATING_NOTE:{rules:[64,65,66],inclusive:!1},NOTE_TEXT:{rules:[69,70],inclusive:!1},NOTE_ID:{rules:[68],inclusive:!1},NOTE:{rules:[61,62,63],inclusive:!1},STYLEDEF_STYLEOPTS:{rules:[],inclusive:!1},STYLEDEF_STYLES:{rules:[34],inclusive:!1},STYLE_IDS:{rules:[],inclusive:!1},STYLE:{rules:[33],inclusive:!1},CLASS_STYLE:{rules:[31],inclusive:!1},CLASS:{rules:[30],inclusive:!1},CLASSDEFID:{rules:[28],inclusive:!1},CLASSDEF:{rules:[26,27],inclusive:!1},acc_descr_multiline:{rules:[23,24],inclusive:!1},acc_descr:{rules:[21],inclusive:!1},acc_title:{rules:[19],inclusive:!1},SCALE:{rules:[16,17,36,37],inclusive:!1},ALIAS:{rules:[],inclusive:!1},STATE_ID:{rules:[51],inclusive:!1},STATE_STRING:{rules:[52,53],inclusive:!1},FORK_STATE:{rules:[],inclusive:!1},STATE:{rules:[12,13,39,40,41,42,43,44,49,50,54,55,56],inclusive:!1},ID:{rules:[12,13],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,7,8,9,10,11,13,14,15,18,20,22,25,29,32,35,38,56,60,71,72,73,74,75,76,77,79,80,81],inclusive:!0}}},i.lexer=n,mt(e,"Parser"),(rxe=new((e.prototype=i).Parser=e)).parser=rxe,sxe=rxe}),Wxe=e(()=>{"use strict";oxe=axe="TB",lxe="dir",hxe="root",uxe="relation",dxe="classDef",pxe="style",gxe="applyClass",fxe="default",yxe="fill:none",bxe="fill: #333",vxe="c",xxe="text",wxe="normal",kxe="rect",Txe="rectWithTitle",Sxe="stateStart",_xe="stateEnd",Cxe=mxe="divider",Axe="roundedWithTitle",$xe="noteGroup",Rxe=(Lxe="statediagram")+"-state",Ixe=(Mxe="transition")+" note-edge",Nxe=Lxe+"-note",Dxe=Lxe+"-cluster",Oxe=Lxe+"-cluster-alt",Fxe=cxe="state",zxe=""+(jxe="----")+(Bxe=Exe="note"),Hxe=""+jxe+(Pxe="parent")});function Vxe(e="",t=0,i="",n=jxe){n=null!==i&&0<i.length?""+n+i:"";return Fxe+`-${e}${n}-`+t}function Gxe(e,t,i){var n;t.id&&"</join></fork>"!==t.id&&"</choice>"!==t.id&&(t.cssClasses&&(Array.isArray(t.cssCompiledStyles)||(t.cssCompiledStyles=[]),t.cssClasses.split(" ").forEach(e=>{e=i.get(e);e&&(t.cssCompiledStyles=[...t.cssCompiledStyles??[],...e.styles])})),(n=e.find(e=>e.id===t.id))?Object.assign(n,t):e.push(t))}function Yxe(e){return e?.classes?.join(" ")??""}function Xxe(e){return e?.styles??[]}var Kxe,Zxe,Qxe,Jxe,e3e,t3e,i3e,n3e,r3e,s3e,a3e,o3e,l3e,c3e,h3e,u3e,d3e,p3e,g3e,f3e,m3e,y3e,b3e,v3e,x3e,w3e,k3e,T3e,S3e,_3e,C3e,A3e,E3e,$3e,L3e,R3e,M3e,I3e=e(()=>{"use strict";Cu(),t(),hh(),Wxe(),Kxe=new Map,Zxe=0,mt(Vxe,"stateDomId"),Qxe=mt((i,e,n,r,s,a,o,l)=>{I.trace("items",e),e.forEach(e=>{switch(e.stmt){case cxe:case fxe:e3e(i,e,n,r,s,a,o,l);break;case uxe:e3e(i,e.state1,n,r,s,a,o,l),e3e(i,e.state2,n,r,s,a,o,l);var t={id:"edge"+Zxe,start:e.state1.id,end:e.state2.id,arrowhead:"normal",arrowTypeEnd:"arrow_barb",style:yxe,labelStyle:"",label:$.sanitizeText(e.description??"",N()),arrowheadStyle:bxe,labelpos:vxe,labelType:xxe,thickness:wxe,classes:Mxe,look:o};s.push(t),Zxe++}})},"setupDoc"),Jxe=mt((e,t=oxe)=>{let i=t;if(e.doc)for(var n of e.doc)"dir"===n.stmt&&(i=n.value);return i},"getDir"),mt(Gxe,"insertOrUpdateNode"),mt(Yxe,"getClassesFromDbInfo"),mt(Xxe,"getStylesFromDbInfo"),e3e=mt((i,n,e,r,s,t,a,o)=>{var l=n.id,c=e.get(l),h=Yxe(c),u=Xxe(c),d=N();if(I.info("dataFetcher parsedItem",n,c,u),"root"!==l){let e=kxe;!0===n.start?e=Sxe:!1===n.start&&(e=_xe),n.type!==fxe&&(e=n.type),Kxe.get(l)||Kxe.set(l,{id:l,shape:e,description:$.sanitizeText(l,d),cssClasses:h+" "+Rxe,cssStyles:u});c=Kxe.get(l),h=(n.description&&(Array.isArray(c.description)?(c.shape=Txe,c.description.push(n.description)):c.description?.length&&0<c.description.length?(c.shape=Txe,c.description===l?c.description=[n.description]:c.description=[c.description,n.description]):(c.shape=kxe,c.description=n.description),c.description=$.sanitizeTextOrArray(c.description,d)),1===c.description?.length&&c.shape===Txe&&("group"===c.type?c.shape=Axe:c.shape=kxe),!c.type&&n.doc&&(I.info("Setting cluster for XCX",l,Jxe(n)),c.type="group",c.isGroup=!0,c.dir=Jxe(n),c.shape=n.type===mxe?Cxe:Axe,c.cssClasses=c.cssClasses+` ${Dxe} `+(t?Oxe:"")),{labelStyle:"",shape:c.shape,label:c.description,cssClasses:c.cssClasses,cssCompiledStyles:[],cssStyles:c.cssStyles,id:l,dir:c.dir,domId:Vxe(l,Zxe),type:c.type,isGroup:"group"===c.type,padding:8,rx:10,ry:10,look:a});if(h.shape===Cxe&&(h.label=""),i&&"root"!==i.id&&(I.trace("Setting node ",l," to be child of its parent ",i.id),h.parentId=i.id),h.centerLabel=!0,n.note){u={labelStyle:"",shape:Exe,label:n.note.text,cssClasses:Nxe,cssStyles:[],cssCompiledStyles:[],id:l+zxe+"-"+Zxe,domId:Vxe(l,Zxe,Bxe),type:c.type,isGroup:"group"===c.type,padding:d.flowchart?.padding,look:a,position:n.note.position},i=l+Hxe,d={labelStyle:"",shape:$xe,label:n.note.text,cssClasses:c.cssClasses,cssStyles:[],id:l+Hxe,domId:Vxe(l,Zxe,Pxe),type:"group",isGroup:!0,padding:16,look:a,position:n.note.position};Zxe++,u.parentId=d.id=i,Gxe(r,d,o),Gxe(r,u,o),Gxe(r,h,o);let e=l,t=u.id;"left of"===n.note.position&&(e=u.id,t=l),s.push({id:e+"-"+t,start:e,end:t,arrowhead:"none",arrowTypeEnd:"",style:yxe,labelStyle:"",classes:Ixe,arrowheadStyle:bxe,labelpos:vxe,labelType:xxe,thickness:wxe,look:a})}else Gxe(r,h,o)}n.doc&&(I.trace("Adding nodes children "),Qxe(n,n.doc,e,r,s,!t,a,o))},"dataFetcher"),t3e=mt(()=>{Kxe.clear(),Zxe=0},"reset")}),N3e=e(()=>{"use strict";Cu(),t(),QN(),ZK(),QK(),sC(),Wxe(),i3e=mt((e,t=oxe)=>{if(!e.doc)return t;let i=t;for(var n of e.doc)"dir"===n.stmt&&(i=n.value);return i},"getDir"),n3e=mt(function(e,t){return t.db.getClasses()},"getClasses"),r3e=mt(async function(e,t,i,n){I.info("REF0:"),I.info("Drawing state diagram (v2)",t);var{securityLevel:r,state:s,layout:a}=N();n.db.extract(n.db.getRootDocV2());let o=n.db.getData(),l=FN(t,r);o.type=n.type,o.layoutAlgorithm=a,o.nodeSpacing=s?.nodeSpacing||50,o.rankSpacing=s?.rankSpacing||50,o.markers=["barb"],o.diagramId=t,await NK(o,l);try{("function"==typeof n.db.getLinks?n.db.getLinks():new Map).forEach((i,e)=>{let n="string"==typeof e?e:"string"==typeof e?.id?e.id:"";if(n){let e=l.node()?.querySelectorAll("g"),t;var r,s,a;e?.forEach(e=>{e.textContent?.trim()===n&&(t=e)}),t?(r=t.parentNode)?(s=document.createElementNS("http://www.w3.org/2000/svg","a"),a=i.url.replace(/^"+|"+$/g,""),s.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",a),s.setAttribute("target","_blank"),i.tooltip&&(a=i.tooltip.replace(/^"+|"+$/g,""),s.setAttribute("title",a)),r.replaceChild(s,t),s.appendChild(t),I.info("🔗 Wrapped node in <a> tag for:",n,i.url)):I.warn("⚠️ Node has no parent, cannot wrap:",n):I.warn("⚠️ Could not find node matching text:",n)}else I.warn("⚠️ Invalid or missing stateId from key:",JSON.stringify(e))})}catch(e){I.error("❌ Error injecting clickable links:",e)}tC.insertTitle(l,"statediagramTitleText",s?.titleTopMargin??25,n.db.getDiagramTitle()),OK(l,8,Lxe,s?.useMaxWidth??!0)},"draw"),s3e={getClasses:n3e,draw:r3e,getDir:i3e}}),D3e=e(()=>{"use strict";Cu(),t(),sC(),hh(),_u(),I3e(),N3e(),Wxe(),a3e={START_NODE:"[*]",START_TYPE:"start",END_NODE:"[*]",END_TYPE:"end",COLOR_KEYWORD:"color",FILL_KEYWORD:"fill",BG_FILL:"bgFill",STYLECLASS_SEP:","},o3e=mt(()=>new Map,"newClassesList"),l3e=mt(()=>({relations:[],states:new Map,documents:{}}),"newDoc"),c3e=mt(e=>JSON.parse(JSON.stringify(e)),"clone"),h3e=class{constructor(e){this.version=e,this.nodes=[],this.edges=[],this.rootDoc=[],this.classes=o3e(),this.documents={root:l3e()},this.currentDocument=this.documents.root,this.startEndCount=0,this.dividerCnt=0,this.links=new Map,this.getAccTitle=xh,this.setAccTitle=vh,this.getAccDescription=kh,this.setAccDescription=wh,this.setDiagramTitle=Th,this.getDiagramTitle=Sh,this.clear(),this.setRootDoc=this.setRootDoc.bind(this),this.getDividerId=this.getDividerId.bind(this),this.setDirection=this.setDirection.bind(this),this.trimColon=this.trimColon.bind(this)}static{mt(this,"StateDB")}static{this.relationType={AGGREGATION:0,EXTENSION:1,COMPOSITION:2,DEPENDENCY:3}}extract(e){this.clear(!0);for(var t of Array.isArray(e)?e:e.doc)switch(t.stmt){case cxe:this.addState(t.id.trim(),t.type,t.doc,t.description,t.note);break;case uxe:this.addRelation(t.state1,t.state2,t.description);break;case dxe:this.addStyleClass(t.id.trim(),t.classes);break;case pxe:this.handleStyleDef(t);break;case gxe:this.setCssClass(t.id.trim(),t.styleClass);break;case"click":this.addLink(t.id,t.url,t.tooltip)}var i,e=this.getStates(),n=N();t3e(),e3e(void 0,this.getRootDocV2(),e,this.nodes,this.edges,!0,n.look,this.classes);for(i of this.nodes)if(Array.isArray(i.label)){if(i.description=i.label.slice(1),i.isGroup&&0<i.description.length)throw new Error(`Group nodes can only have label. Remove the additional description for node [${i.id}]`);i.label=i.label[0]}}handleStyleDef(e){var t,i,n=e.id.trim().split(","),r=e.styleClass.split(",");for(t of n){let e=this.getState(t);e||(i=t.trim(),this.addState(i),e=this.getState(i)),e&&(e.styles=r.map(e=>e.replace(/;/g,"")?.trim()))}}setRootDoc(e){I.info("Setting root doc",e),this.rootDoc=e,1===this.version?this.extract(e):this.extract(this.getRootDocV2())}docTranslator(i,n,e){if(n.stmt===uxe)this.docTranslator(i,n.state1,!0),this.docTranslator(i,n.state2,!1);else if(n.stmt===cxe&&(n.id===a3e.START_NODE?(n.id=i.id+(e?"_start":"_end"),n.start=e):n.id=n.id.trim()),(n.stmt===hxe||n.stmt===cxe)&&n.doc){let e=[],t=[];for(var r of n.doc){var s;r.type===mxe?((s=c3e(r)).doc=c3e(t),e.push(s),t=[]):t.push(r)}0<e.length&&0<t.length&&(i={stmt:cxe,id:U_(),type:"divider",doc:c3e(t)},e.push(c3e(i)),n.doc=e),n.doc.forEach(e=>this.docTranslator(n,e,!0))}}getRootDocV2(){return this.docTranslator({id:hxe,stmt:hxe},{id:hxe,stmt:hxe,doc:this.rootDoc},!0),{id:hxe,doc:this.rootDoc}}addState(e,t=fxe,i=void 0,n=void 0,r=void 0,s=void 0,a=void 0,o=void 0){let l=e?.trim();if(this.currentDocument.states.has(l)){e=this.currentDocument.states.get(l);if(!e)throw new Error("State not found: "+l);e.doc||(e.doc=i),e.type||(e.type=t)}else I.info("Adding state ",l,n),this.currentDocument.states.set(l,{stmt:cxe,id:l,descriptions:[],type:t,doc:i,note:r,classes:[],styles:[],textStyles:[]});if(n&&(I.info("Setting state description",l,n),(Array.isArray(n)?n:[n]).forEach(e=>this.addDescription(l,e.trim()))),r){e=this.currentDocument.states.get(l);if(!e)throw new Error("State not found: "+l);e.note=r,e.note.text=$.sanitizeText(e.note.text,N())}s&&(I.info("Setting state classes",l,s),(Array.isArray(s)?s:[s]).forEach(e=>this.setCssClass(l,e.trim()))),a&&(I.info("Setting state styles",l,a),(Array.isArray(a)?a:[a]).forEach(e=>this.setStyle(l,e.trim()))),o&&(I.info("Setting state styles",l,a),(Array.isArray(o)?o:[o]).forEach(e=>this.setTextStyle(l,e.trim())))}clear(e){this.nodes=[],this.edges=[],this.documents={root:l3e()},this.currentDocument=this.documents.root,this.startEndCount=0,this.classes=o3e(),e||(this.links=new Map,bh())}getState(e){return this.currentDocument.states.get(e)}getStates(){return this.currentDocument.states}logDocuments(){I.info("Documents = ",this.documents)}getRelations(){return this.currentDocument.relations}addLink(e,t,i){this.links.set(e,{url:t,tooltip:i}),I.warn("Adding link",e,t,i)}getLinks(){return this.links}startIdIfNeeded(e=""){return e===a3e.START_NODE?(this.startEndCount++,""+a3e.START_TYPE+this.startEndCount):e}startTypeIfNeeded(e="",t=fxe){return e===a3e.START_NODE?a3e.START_TYPE:t}endIdIfNeeded(e=""){return e===a3e.END_NODE?(this.startEndCount++,""+a3e.END_TYPE+this.startEndCount):e}endTypeIfNeeded(e="",t=fxe){return e===a3e.END_NODE?a3e.END_TYPE:t}addRelationObjs(e,t,i=""){var n=this.startIdIfNeeded(e.id.trim()),r=this.startTypeIfNeeded(e.id.trim(),e.type),s=this.startIdIfNeeded(t.id.trim()),a=this.startTypeIfNeeded(t.id.trim(),t.type);this.addState(n,r,e.doc,e.description,e.note,e.classes,e.styles,e.textStyles),this.addState(s,a,t.doc,t.description,t.note,t.classes,t.styles,t.textStyles),this.currentDocument.relations.push({id1:n,id2:s,relationTitle:$.sanitizeText(i,N())})}addRelation(e,t,i){var n,r;"object"==typeof e&&"object"==typeof t?this.addRelationObjs(e,t,i):"string"==typeof e&&"string"==typeof t&&(n=this.startIdIfNeeded(e.trim()),e=this.startTypeIfNeeded(e),r=this.endIdIfNeeded(t.trim()),t=this.endTypeIfNeeded(t),this.addState(n,e),this.addState(r,t),this.currentDocument.relations.push({id1:n,id2:r,relationTitle:i?$.sanitizeText(i,N()):void 0}))}addDescription(e,t){e=this.currentDocument.states.get(e),t=t.startsWith(":")?t.replace(":","").trim():t;e?.descriptions?.push($.sanitizeText(t,N()))}cleanupLabel(e){return(e.startsWith(":")?e.slice(2):e).trim()}getDividerId(){return this.dividerCnt++,"divider-id-"+this.dividerCnt}addStyleClass(e,t=""){this.classes.has(e)||this.classes.set(e,{id:e,styles:[],textStyles:[]});let i=this.classes.get(e);t&&i&&t.split(a3e.STYLECLASS_SEP).forEach(e=>{var t=e.replace(/([^;]*);/,"$1").trim();RegExp(a3e.COLOR_KEYWORD).exec(e)&&(e=t.replace(a3e.FILL_KEYWORD,a3e.BG_FILL).replace(a3e.COLOR_KEYWORD,a3e.FILL_KEYWORD),i.textStyles.push(e)),i.styles.push(t)})}getClasses(){return this.classes}setCssClass(e,i){e.split(",").forEach(e=>{let t=this.getState(e);t||(e=e.trim(),this.addState(e),t=this.getState(e)),t?.classes?.push(i)})}setStyle(e,t){this.getState(e)?.styles?.push(t)}setTextStyle(e,t){this.getState(e)?.textStyles?.push(t)}getDirectionStatement(){return this.rootDoc.find(e=>e.stmt===lxe)}getDirection(){return this.getDirectionStatement()?.value??axe}setDirection(e){var t=this.getDirectionStatement();t?t.value=e:this.rootDoc.unshift({stmt:lxe,value:e})}trimColon(e){return(e.startsWith(":")?e.slice(1):e).trim()}getData(){var e=N();return{nodes:this.nodes,edges:this.edges,other:{},config:e,direction:i3e(this.getRootDocV2())}}getConfig(){return N().state}}}),O3e=e(()=>{"use strict";u3e=mt(e=>`
|
||
defs #statediagram-barbEnd {
|
||
fill: ${e.transitionColor};
|
||
stroke: ${e.transitionColor};
|
||
}
|
||
g.stateGroup text {
|
||
fill: ${e.nodeBorder};
|
||
stroke: none;
|
||
font-size: 10px;
|
||
}
|
||
g.stateGroup text {
|
||
fill: ${e.textColor};
|
||
stroke: none;
|
||
font-size: 10px;
|
||
|
||
}
|
||
g.stateGroup .state-title {
|
||
font-weight: bolder;
|
||
fill: ${e.stateLabelColor};
|
||
}
|
||
|
||
g.stateGroup rect {
|
||
fill: ${e.mainBkg};
|
||
stroke: ${e.nodeBorder};
|
||
}
|
||
|
||
g.stateGroup line {
|
||
stroke: ${e.lineColor};
|
||
stroke-width: 1;
|
||
}
|
||
|
||
.transition {
|
||
stroke: ${e.transitionColor};
|
||
stroke-width: 1;
|
||
fill: none;
|
||
}
|
||
|
||
.stateGroup .composit {
|
||
fill: ${e.background};
|
||
border-bottom: 1px
|
||
}
|
||
|
||
.stateGroup .alt-composit {
|
||
fill: #e0e0e0;
|
||
border-bottom: 1px
|
||
}
|
||
|
||
.state-note {
|
||
stroke: ${e.noteBorderColor};
|
||
fill: ${e.noteBkgColor};
|
||
|
||
text {
|
||
fill: ${e.noteTextColor};
|
||
stroke: none;
|
||
font-size: 10px;
|
||
}
|
||
}
|
||
|
||
.stateLabel .box {
|
||
stroke: none;
|
||
stroke-width: 0;
|
||
fill: ${e.mainBkg};
|
||
opacity: 0.5;
|
||
}
|
||
|
||
.edgeLabel .label rect {
|
||
fill: ${e.labelBackgroundColor};
|
||
opacity: 0.5;
|
||
}
|
||
.edgeLabel {
|
||
background-color: ${e.edgeLabelBackground};
|
||
p {
|
||
background-color: ${e.edgeLabelBackground};
|
||
}
|
||
rect {
|
||
opacity: 0.5;
|
||
background-color: ${e.edgeLabelBackground};
|
||
fill: ${e.edgeLabelBackground};
|
||
}
|
||
text-align: center;
|
||
}
|
||
.edgeLabel .label text {
|
||
fill: ${e.transitionLabelColor||e.tertiaryTextColor};
|
||
}
|
||
.label div .edgeLabel {
|
||
color: ${e.transitionLabelColor||e.tertiaryTextColor};
|
||
}
|
||
|
||
.stateLabel text {
|
||
fill: ${e.stateLabelColor};
|
||
font-size: 10px;
|
||
font-weight: bold;
|
||
}
|
||
|
||
.node circle.state-start {
|
||
fill: ${e.specialStateColor};
|
||
stroke: ${e.specialStateColor};
|
||
}
|
||
|
||
.node .fork-join {
|
||
fill: ${e.specialStateColor};
|
||
stroke: ${e.specialStateColor};
|
||
}
|
||
|
||
.node circle.state-end {
|
||
fill: ${e.innerEndBackground};
|
||
stroke: ${e.background};
|
||
stroke-width: 1.5
|
||
}
|
||
.end-state-inner {
|
||
fill: ${e.compositeBackground||e.background};
|
||
// stroke: ${e.background};
|
||
stroke-width: 1.5
|
||
}
|
||
|
||
.node rect {
|
||
fill: ${e.stateBkg||e.mainBkg};
|
||
stroke: ${e.stateBorder||e.nodeBorder};
|
||
stroke-width: 1px;
|
||
}
|
||
.node polygon {
|
||
fill: ${e.mainBkg};
|
||
stroke: ${e.stateBorder||e.nodeBorder};;
|
||
stroke-width: 1px;
|
||
}
|
||
#statediagram-barbEnd {
|
||
fill: ${e.lineColor};
|
||
}
|
||
|
||
.statediagram-cluster rect {
|
||
fill: ${e.compositeTitleBackground};
|
||
stroke: ${e.stateBorder||e.nodeBorder};
|
||
stroke-width: 1px;
|
||
}
|
||
|
||
.cluster-label, .nodeLabel {
|
||
color: ${e.stateLabelColor};
|
||
// line-height: 1;
|
||
}
|
||
|
||
.statediagram-cluster rect.outer {
|
||
rx: 5px;
|
||
ry: 5px;
|
||
}
|
||
.statediagram-state .divider {
|
||
stroke: ${e.stateBorder||e.nodeBorder};
|
||
}
|
||
|
||
.statediagram-state .title-state {
|
||
rx: 5px;
|
||
ry: 5px;
|
||
}
|
||
.statediagram-cluster.statediagram-cluster .inner {
|
||
fill: ${e.compositeBackground||e.background};
|
||
}
|
||
.statediagram-cluster.statediagram-cluster-alt .inner {
|
||
fill: ${e.altBackground||"#efefef"};
|
||
}
|
||
|
||
.statediagram-cluster .inner {
|
||
rx:0;
|
||
ry:0;
|
||
}
|
||
|
||
.statediagram-state rect.basic {
|
||
rx: 5px;
|
||
ry: 5px;
|
||
}
|
||
.statediagram-state rect.divider {
|
||
stroke-dasharray: 10,10;
|
||
fill: ${e.altBackground||"#efefef"};
|
||
}
|
||
|
||
.note-edge {
|
||
stroke-dasharray: 5;
|
||
}
|
||
|
||
.statediagram-note rect {
|
||
fill: ${e.noteBkgColor};
|
||
stroke: ${e.noteBorderColor};
|
||
stroke-width: 1px;
|
||
rx: 0;
|
||
ry: 0;
|
||
}
|
||
.statediagram-note rect {
|
||
fill: ${e.noteBkgColor};
|
||
stroke: ${e.noteBorderColor};
|
||
stroke-width: 1px;
|
||
rx: 0;
|
||
ry: 0;
|
||
}
|
||
|
||
.statediagram-note text {
|
||
fill: ${e.noteTextColor};
|
||
}
|
||
|
||
.statediagram-note .nodeLabel {
|
||
color: ${e.noteTextColor};
|
||
}
|
||
.statediagram .edgeLabel {
|
||
color: red; // ${e.noteTextColor};
|
||
}
|
||
|
||
#dependencyStart, #dependencyEnd {
|
||
fill: ${e.lineColor};
|
||
stroke: ${e.lineColor};
|
||
stroke-width: 1;
|
||
}
|
||
|
||
.statediagramTitleText {
|
||
text-anchor: middle;
|
||
font-size: 18px;
|
||
fill: ${e.textColor};
|
||
}
|
||
`,"getStyles"),d3e=u3e}),P3e=e(()=>{"use strict";a6(),D3e(),sC(),hh(),Cu(),t(),p3e=mt(e=>e.append("circle").attr("class","start-state").attr("r",N().state.sizeUnit).attr("cx",N().state.padding+N().state.sizeUnit).attr("cy",N().state.padding+N().state.sizeUnit),"drawStartState"),g3e=mt(e=>e.append("line").style("stroke","grey").style("stroke-dasharray","3").attr("x1",N().state.textHeight).attr("class","divider").attr("x2",2*N().state.textHeight).attr("y1",0).attr("y2",0),"drawDivider"),f3e=mt((e,t)=>{var t=e.append("text").attr("x",2*N().state.padding).attr("y",N().state.textHeight+2*N().state.padding).attr("font-size",N().state.fontSize).attr("class","state-title").text(t.id),i=t.node().getBBox();return e.insert("rect",":first-child").attr("x",N().state.padding).attr("y",N().state.padding).attr("width",i.width+2*N().state.padding).attr("height",i.height+2*N().state.padding).attr("rx",N().state.radius),t},"drawSimpleState"),m3e=mt((e,t)=>{let i=mt(function(e,t,i){e=e.append("tspan").attr("x",2*N().state.padding).text(t);i||e.attr("dy",N().state.textHeight)},"addTspan"),n=e.append("text").attr("x",2*N().state.padding).attr("y",N().state.textHeight+1.3*N().state.padding).attr("font-size",N().state.fontSize).attr("class","state-title").text(t.descriptions[0]).node().getBBox(),r=n.height,s=e.append("text").attr("x",N().state.padding).attr("y",r+.4*N().state.padding+N().state.dividerMargin+N().state.textHeight).attr("class","state-description"),a=!0,o=!0;t.descriptions.forEach(function(e){a||(i(s,e,o),o=!1),a=!1});var t=e.append("line").attr("x1",N().state.padding).attr("y1",N().state.padding+r+N().state.dividerMargin/2).attr("y2",N().state.padding+r+N().state.dividerMargin/2).attr("class","descr-divider"),l=s.node().getBBox(),c=Math.max(l.width,n.width);return t.attr("x2",c+3*N().state.padding),e.insert("rect",":first-child").attr("x",N().state.padding).attr("y",N().state.padding).attr("width",c+2*N().state.padding).attr("height",l.height+r+2*N().state.padding).attr("rx",N().state.radius),e},"drawDescrState"),y3e=mt((e,t,i)=>{let n=N().state.padding,r=2*N().state.padding,s=e.node().getBBox(),a=s.width,o=s.x,l=e.append("text").attr("x",0).attr("y",N().state.titleShift).attr("font-size",N().state.fontSize).attr("class","state-title").text(t.id),c=l.node().getBBox().width+r,h=Math.max(c,a);h===a&&(h+=r);let u,d=e.node().getBBox();t.doc,u=o-n,a<c&&(u=(a-h)/2+n),Math.abs(o-d.x)<n&&a<c&&(u=o-(c-a)/2);t=1-N().state.textHeight;return e.insert("rect",":first-child").attr("x",u).attr("y",t).attr("class",i?"alt-composit":"composit").attr("width",h).attr("height",d.height+N().state.textHeight+N().state.titleShift+1).attr("rx","0"),l.attr("x",u+n),c<=a&&l.attr("x",o+(h-r)/2-c/2+n),e.insert("rect",":first-child").attr("x",u).attr("y",N().state.titleShift-N().state.textHeight-N().state.padding).attr("width",h).attr("height",3*N().state.textHeight).attr("rx",N().state.radius),e.insert("rect",":first-child").attr("x",u).attr("y",N().state.titleShift-N().state.textHeight-N().state.padding).attr("width",h).attr("height",d.height+3+2*N().state.textHeight).attr("rx",N().state.radius),e},"addTitleAndBox"),b3e=mt(e=>(e.append("circle").attr("class","end-state-outer").attr("r",N().state.sizeUnit+N().state.miniPadding).attr("cx",N().state.padding+N().state.sizeUnit+N().state.miniPadding).attr("cy",N().state.padding+N().state.sizeUnit+N().state.miniPadding),e.append("circle").attr("class","end-state-inner").attr("r",N().state.sizeUnit).attr("cx",N().state.padding+N().state.sizeUnit+2).attr("cy",N().state.padding+N().state.sizeUnit+2)),"drawEndState"),v3e=mt((e,t)=>{let i=N().state.forkWidth,n=N().state.forkHeight;return t.parentId&&(t=i,i=n,n=t),e.append("rect").style("stroke","black").style("fill","black").attr("width",i).attr("height",n).attr("x",N().state.padding).attr("y",N().state.padding)},"drawForkJoinState"),x3e=mt((e,t,i,n)=>{let r=0,s=n.append("text"),a=(s.style("text-anchor","start"),s.attr("class","noteText"),e.replace(/\r\n/g,"<br/>")),o=(a=a.replace(/\n/g,"<br/>")).split($.lineBreakRegex),l=1.25*N().state.noteMargin;for(var c of o){var h,c=c.trim();0<c.length&&((h=s.append("tspan")).text(c),0===l&&(c=h.node().getBBox(),l+=c.height),r+=l,h.attr("x",t+N().state.noteMargin),h.attr("y",i+r+1.25*N().state.noteMargin))}return{textWidth:s.node().getBBox().width,textHeight:r}},"_drawLongText"),w3e=mt((e,t)=>{t.attr("class","state-note");var i=t.append("rect").attr("x",0).attr("y",N().state.padding),t=t.append("g"),{textWidth:e,textHeight:t}=x3e(e,0,0,t);return i.attr("height",t+2*N().state.noteMargin),i.attr("width",e+2*N().state.noteMargin),i},"drawNote"),k3e=mt(function(e,t){var i=t.id,n={id:i,label:t.id,width:0,height:0},e=e.append("g").attr("id",i).attr("class","stateGroup"),i=("start"===t.type&&p3e(e),"end"===t.type&&b3e(e),"fork"!==t.type&&"join"!==t.type||v3e(e,t),"note"===t.type&&w3e(t.note.text,e),"divider"===t.type&&g3e(e),"default"===t.type&&0===t.descriptions.length&&f3e(e,t),"default"===t.type&&0<t.descriptions.length&&m3e(e,t),e.node().getBBox());return n.width=i.width+2*N().state.padding,n.height=i.height+2*N().state.padding,n},"drawState"),T3e=0,S3e=mt(function(c,h,u){var d=mt(function(e){switch(e){case h3e.relationType.AGGREGATION:return"aggregation";case h3e.relationType.EXTENSION:return"extension";case h3e.relationType.COMPOSITION:return"composition";case h3e.relationType.DEPENDENCY:return"dependency"}},"getRelationType");h.points=h.points.filter(e=>!Number.isNaN(e.y));let e=h.points,t=r5().x(function(e){return e.x}).y(function(e){return e.y}).curve(x5),i=c.append("path").attr("d",t(e)).attr("id","edge"+T3e).attr("class","transition"),n="";if(N().state.arrowMarkerAbsolute&&(n=Uc(!0)),i.attr("marker-end","url("+n+"#"+d(h3e.relationType.DEPENDENCY)+"End)"),void 0!==u.title){let t=c.append("g").attr("class","stateLabel"),{x:i,y:n}=tC.calcLabelPosition(h.points),r=$.getRows(u.title),s=0,a=[],o=0,l=0;for(let e=0;e<=r.length;e++){var p=t.append("text").attr("text-anchor","middle").text(r[e]).attr("x",i).attr("y",n+s),g=p.node().getBBox();o=Math.max(o,g.width),l=Math.min(l,g.x),I.info(g.x,i,n+s),0===s&&(s=p.node().getBBox().height,I.info("Title height",s,n)),a.push(p)}let e=s*r.length;if(1<r.length){let i=(r.length-1)*s*.5;a.forEach((e,t)=>e.attr("y",n+t*s-i)),e=s*r.length}d=t.node().getBBox();t.insert("rect",":first-child").attr("class","box").attr("x",i-o/2-N().state.padding/2).attr("y",n-e/2-N().state.padding/2-3.5).attr("width",o+N().state.padding).attr("height",e+N().state.padding),I.info(d)}T3e++},"drawEdge")}),B3e=e(()=>{"use strict";a6(),lK(),XV(),t(),hh(),P3e(),Cu(),uh(),C3e={},A3e=mt(function(){},"setConf"),E3e=mt(function(e){e.append("defs").append("marker").attr("id","dependencyEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 19,7 L9,13 L14,7 L9,1 Z")},"insertMarkers"),$3e=mt(function(e,t,i,n){_3e=N().state;let r=N().securityLevel,s;"sandbox"===r&&(s=G("#i"+t));var a=G("sandbox"===r?s.nodes()[0].contentDocument.body:"body"),o="sandbox"===r?s.nodes()[0].contentDocument:document,e=(I.debug("Rendering diagram "+e),a.select(`[id='${t}']`)),t=(E3e(e),n.db.getRootDoc()),t=(R3e(t,e,void 0,!1,a,o,n),_3e.padding),a=e.node().getBBox(),o=a.width+2*t,n=a.height+2*t;rh(e,n,1.75*o,_3e.useMaxWidth),e.attr("viewBox",`${a.x-_3e.padding} ${a.y-_3e.padding} `+o+" "+n)},"draw"),L3e=mt(e=>e?e.length*_3e.fontSizeFactor:1,"getLabelWidth"),R3e=mt((e,i,n,r,s,a,o)=>{let l=new GV({compound:!0,multigraph:!0}),t,c=!0;for(t=0;t<e.length;t++)if("relation"===e[t].stmt){c=!1;break}n?l.setGraph({rankdir:"LR",multigraph:!0,compound:!0,ranker:"tight-tree",ranksep:c?1:_3e.edgeLengthFactor,nodeSep:c?1:50,isMultiGraph:!0}):l.setGraph({rankdir:"TB",multigraph:!0,compound:!0,ranksep:c?1:_3e.edgeLengthFactor,nodeSep:c?1:50,ranker:"tight-tree",isMultiGraph:!0}),l.setDefaultEdgeLabel(function(){return{}});var h,u=o.db.getStates(),d=o.db.getRelations();for(h of Object.keys(u)){var p,g=u[h];n&&(g.parentId=n);let t;if(g.doc){let e=i.append("g").attr("id",g.id).attr("class","stateGroup");t=R3e(g.doc,e,g.id,!r,s,a,o);var f=(e=y3e(e,g,r)).node().getBBox();t.width=f.width,t.height=f.height+_3e.padding/2,C3e[g.id]={y:_3e.compositTitleSize}}else t=k3e(i,g,l);g.note?(f={descriptions:[],id:g.id+"-note",note:g.note,type:"note"},p=k3e(i,f,l),"left of"===g.note.position?(l.setNode(t.id+"-note",p),l.setNode(t.id,t)):(l.setNode(t.id,t),l.setNode(t.id+"-note",p)),l.setParent(t.id,t.id+"-group"),l.setParent(t.id+"-note",t.id+"-group")):l.setNode(t.id,t)}I.debug("Count=",l.nodeCount(),l);let m=0,y=(d.forEach(function(e){m++,I.debug("Setting edge",e),l.setEdge(e.id1,e.id2,{relation:e,width:L3e(e.title),height:_3e.labelHeight*$.getRows(e.title).length,labelpos:"c"},"id"+m)}),DX(l),I.debug("Graph after layout",l.nodes()),i.node());l.nodes().forEach(function(e){void 0!==e&&void 0!==l.node(e)?(I.warn("Node "+e+": "+JSON.stringify(l.node(e))),s.select("#"+y.id+" #"+e).attr("transform","translate("+(l.node(e).x-l.node(e).width/2)+","+(l.node(e).y+(C3e[e]?C3e[e].y:0)-l.node(e).height/2)+" )"),s.select("#"+y.id+" #"+e).attr("data-x-shift",l.node(e).x-l.node(e).width/2),a.querySelectorAll("#"+y.id+" #"+e+" .divider").forEach(e=>{let t=e.parentElement,i=0,n=0;t&&(t.parentElement&&(i=t.parentElement.getBBox().width),n=parseInt(t.getAttribute("data-x-shift"),10),Number.isNaN(n))&&(n=0),e.setAttribute("x1",0-n+8),e.setAttribute("x2",i-n-8)})):I.debug("No Node "+e+": "+JSON.stringify(l.node(e)))});y.getBBox();l.edges().forEach(function(e){void 0!==e&&void 0!==l.edge(e)&&(I.debug("Edge "+e.v+" -> "+e.w+": "+JSON.stringify(l.edge(e))),S3e(i,l.edge(e),l.edge(e).relation))}),d=y.getBBox();var b={id:n||"root",label:n||"root",width:0,height:0};return b.width=d.width+2*_3e.padding,b.height=d.height+2*_3e.padding,I.debug("Doc rendered",b,l),b},"renderDoc"),M3e={setConf:A3e,draw:$3e}}),F3e={};V(F3e,{diagram:()=>j3e});var j3e,z3e=e(()=>{"use strict";qxe(),D3e(),O3e(),B3e(),j3e={parser:sxe,get db(){return new h3e(1)},renderer:M3e,styles:d3e,init:mt(e=>{e.state||(e.state={}),e.state.arrowMarkerAbsolute=e.arrowMarkerAbsolute},"init")}}),H3e={};V(H3e,{diagram:()=>U3e});var U3e,q3e,W3e,V3e,G3e,Y3e,X3e,K3e,Z3e,Q3e,J3e,e5e,t5e,i5e,n5e,r5e,s5e,a5e,o5e,l5e,c5e,h5e,u5e,d5e,p5e,g5e,f5e,m5e,y5e,b5e,v5e,x5e=e(()=>{"use strict";qxe(),D3e(),O3e(),N3e(),U3e={parser:sxe,get db(){return new h3e(2)},renderer:s3e,styles:d3e,init:mt(e=>{e.state||(e.state={}),e.state.arrowMarkerAbsolute=e.arrowMarkerAbsolute},"init")}}),w5e=e(()=>{"use strict";function e(){this.yy={}}var t,i,n,r,s,a,o,l;t=mt(function(e,t,i,n){for(i=i||{},n=e.length;n--;i[e[n]]=t);return i},"o"),i=[6,8,10,11,12,14,16,17,18],n=[1,9],r=[1,10],s=[1,11],a=[1,12],o=[1,13],l=[1,14],n={trace:mt(function(){},"trace"),yy:{},symbols_:{error:2,start:3,journey:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NEWLINE:10,title:11,acc_title:12,acc_title_value:13,acc_descr:14,acc_descr_value:15,acc_descr_multiline_value:16,section:17,taskName:18,taskData:19,$accept:0,$end:1},terminals_:{2:"error",4:"journey",6:"EOF",8:"SPACE",10:"NEWLINE",11:"title",12:"acc_title",13:"acc_title_value",14:"acc_descr",15:"acc_descr_value",16:"acc_descr_multiline_value",17:"section",18:"taskName",19:"taskData"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[9,1],[9,2],[9,2],[9,1],[9,1],[9,2]],performAction:mt(function(e,t,i,n,r,s,a){var o=s.length-1;switch(r){case 1:return s[o-1];case 2:this.$=[];break;case 3:s[o-1].push(s[o]),this.$=s[o-1];break;case 4:case 5:this.$=s[o];break;case 6:case 7:this.$=[];break;case 8:n.setDiagramTitle(s[o].substr(6)),this.$=s[o].substr(6);break;case 9:this.$=s[o].trim(),n.setAccTitle(this.$);break;case 10:case 11:this.$=s[o].trim(),n.setAccDescription(this.$);break;case 12:n.addSection(s[o].substr(8)),this.$=s[o].substr(8);break;case 13:n.addTask(s[o-1],s[o]),this.$="task"}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},t(i,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:n,12:r,14:s,16:a,17:o,18:l},t(i,[2,7],{1:[2,1]}),t(i,[2,3]),{9:15,11:n,12:r,14:s,16:a,17:o,18:l},t(i,[2,5]),t(i,[2,6]),t(i,[2,8]),{13:[1,16]},{15:[1,17]},t(i,[2,11]),t(i,[2,12]),{19:[1,18]},t(i,[2,4]),t(i,[2,9]),t(i,[2,10]),t(i,[2,13])],defaultActions:{},parseError:mt(function(e,t){var i;if(!t.recoverable)throw(i=new Error(e)).hash=t,i;this.trace(e)},"parseError"),parse:mt(function(e){var t,i=this,n=[0],r=[],s=[null],a=[],o=this.table,l="",c=0,h=0,u=0,d=1,p=a.slice.call(arguments,1),g=Object.create(this.lexer),f={yy:{}};for(t in this.yy)Object.prototype.hasOwnProperty.call(this.yy,t)&&(f.yy[t]=this.yy[t]);g.setInput(e,f.yy),f.yy.lexer=g,f.yy.parser=this,"u"<typeof g.yylloc&&(g.yylloc={});var m=g.yylloc,y=(a.push(m),g.options&&g.options.ranges);function b(){var e=r.pop()||g.lex()||d;return"number"!=typeof e&&(e instanceof Array&&(e=(r=e).pop()),e=i.symbols_[e]||e),e}"function"==typeof f.yy.parseError?this.parseError=f.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError,mt(function(e){n.length=n.length-2*e,s.length=s.length-e,a.length=a.length-e},"popStack"),mt(b,"lex");for(var v,x,w,k,T,S,_,C={};;){if(w=n[n.length-1],"u"<typeof(k=this.defaultActions[w]||((null===v||"u"<typeof v)&&(v=b()),o[w]&&o[w][v]))||!k.length||!k[0]){var A="",E=[];for(T in o[w])this.terminals_[T]&&2<T&&E.push("'"+this.terminals_[T]+"'");A=g.showPosition?"Parse error on line "+(c+1)+`:
|
||
`+g.showPosition()+`
|
||
Expecting `+E.join(", ")+", got '"+(this.terminals_[v]||v)+"'":"Parse error on line "+(c+1)+": Unexpected "+(v==d?"end of input":"'"+(this.terminals_[v]||v)+"'"),this.parseError(A,{text:g.match,token:this.terminals_[v]||v,line:g.yylineno,loc:m,expected:E})}if(k[0]instanceof Array&&1<k.length)throw new Error("Parse Error: multiple actions possible at state: "+w+", token: "+v);switch(k[0]){case 1:n.push(v),s.push(g.yytext),a.push(g.yylloc),n.push(k[1]),v=null,x?(v=x,x=null):(h=g.yyleng,l=g.yytext,c=g.yylineno,m=g.yylloc,0<u&&u--);break;case 2:if(S=this.productions_[k[1]][1],C.$=s[s.length-S],C._$={first_line:a[a.length-(S||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(S||1)].first_column,last_column:a[a.length-1].last_column},y&&(C._$.range=[a[a.length-(S||1)].range[0],a[a.length-1].range[1]]),typeof(_=this.performAction.apply(C,[l,h,c,f.yy,k[1],s,a].concat(p)))<"u")return _;S&&(n=n.slice(0,-1*S*2),s=s.slice(0,-1*S),a=a.slice(0,-1*S)),n.push(this.productions_[k[1]][0]),s.push(C.$),a.push(C._$),_=o[n[n.length-2]][n[n.length-1]],n.push(_);break;case 3:return!0}}return!0},"parse")},r={EOF:1,parseError:mt(function(e,t){if(!this.yy.parser)throw new Error(e);this.yy.parser.parseError(e,t)},"parseError"),setInput:mt(function(e,t){return this.yy=t||this.yy||{},this._input=e,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:mt(function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.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),e},"input"),unput:mt(function(e){var t=e.length,i=e.split(/(?:\r\n?|\n)/g),e=(this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t,this.match.split(/(?:\r\n?|\n)/g)),n=(this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),i.length-1&&(this.yylineno-=i.length-1),this.yylloc.range);return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:i?(i.length===e.length?this.yylloc.first_column:0)+e[e.length-i.length].length-i[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[n[0],n[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},"unput"),more:mt(function(){return this._more=!0,this},"more"),reject:mt(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).
|
||
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"reject"),less:mt(function(e){this.unput(this.match.slice(e))},"less"),pastInput:mt(function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(20<e.length?"...":"")+e.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:mt(function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(20<e.length?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:mt(function(){var e=this.pastInput(),t=new Array(e.length+1).join("-");return e+this.upcomingInput()+`
|
||
`+t+"^"},"showPosition"),test_match:mt(function(e,t){var i,n;if(this.options.backtrack_lexer&&(n={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)&&(n.yylloc.range=this.yylloc.range.slice(0)),(i=e[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=i.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:i?i[i.length-1].length-i[i.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+e[0].length},this.yytext+=e[0],this.match+=e[0],this.matches=e,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(e[0].length),this.matched+=e[0],i=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),i)return i;if(this._backtrack)for(var r in n)this[r]=n[r];return!1},"test_match"),next:mt(function(){if(this.done)return this.EOF;var e,t,i,n;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var r=this._currentRules(),s=0;s<r.length;s++)if((i=this._input.match(this.rules[r[s]]))&&(!t||i[0].length>t[0].length)){if(t=i,n=s,this.options.backtrack_lexer){if(!1!==(e=this.test_match(i,r[s])))return e;if(this._backtrack){t=!1;continue}return!1}if(!this.options.flex)break}return t?!1!==(e=this.test_match(t,r[n]))&&e:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
|
||
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:mt(function(){return this.next()||this.lex()},"lex"),begin:mt(function(e){this.conditionStack.push(e)},"begin"),popState:mt(function(){return 0<this.conditionStack.length-1?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:mt(function(){return(this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]]:this.conditions.INITIAL).rules},"_currentRules"),topState:mt(function(e){return 0<=(e=this.conditionStack.length-1-Math.abs(e||0))?this.conditionStack[e]:"INITIAL"},"topState"),pushState:mt(function(e){this.begin(e)},"pushState"),stateStackSize:mt(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:mt(function(e,t,i,n){switch(i){case 0:case 1:break;case 2:return 10;case 3:case 4:break;case 5:return 4;case 6:return 11;case 7:return this.begin("acc_title"),12;case 8:return this.popState(),"acc_title_value";case 9:return this.begin("acc_descr"),14;case 10:return this.popState(),"acc_descr_value";case 11:this.begin("acc_descr_multiline");break;case 12:this.popState();break;case 13:return"acc_descr_multiline_value";case 14:return 17;case 15:return 18;case 16:return 19;case 17:return":";case 18:return 6;case 19:return"INVALID"}},"anonymous"),rules:[/^(?:%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:#[^\n]*)/i,/^(?:journey\b)/i,/^(?:title\s[^#\n;]+)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:section\s[^#:\n;]+)/i,/^(?:[^#:\n;]+)/i,/^(?::[^#\n;]+)/i,/^(?::)/i,/^(?:$)/i,/^(?:.)/i],conditions:{acc_descr_multiline:{rules:[12,13],inclusive:!1},acc_descr:{rules:[10],inclusive:!1},acc_title:{rules:[8],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,7,9,11,14,15,16,17,18,19],inclusive:!0}}},n.lexer=r,mt(e,"Parser"),(q3e=new((e.prototype=n).Parser=e)).parser=q3e,W3e=q3e}),k5e=e(()=>{"use strict";Cu(),_u(),V3e="",G3e=[],Y3e=[],X3e=[],K3e=mt(function(){G3e.length=0,Y3e.length=0,V3e="",X3e.length=0,bh()},"clear"),Z3e=mt(function(e){V3e=e,G3e.push(e)},"addSection"),Q3e=mt(function(){return G3e},"getSections"),J3e=mt(function(){let e=n5e(),t=0;for(;!e&&t<100;)e=n5e(),t++;return Y3e.push(...X3e),Y3e},"getTasks"),e5e=mt(function(){let t=[];return Y3e.forEach(e=>{e.people&&t.push(...e.people)}),[...new Set(t)].sort()},"updateActors"),t5e=mt(function(e,t){let i=t.substr(1).split(":"),n=0,r=[];t=(r=1===i.length?(n=Number(i[0]),[]):(n=Number(i[0]),i[1].split(","))).map(e=>e.trim()),t={section:V3e,type:V3e,people:t,task:e,score:n};X3e.push(t)},"addTask"),i5e=mt(function(e){e={section:V3e,type:V3e,description:e,task:e,classes:[]};Y3e.push(e)},"addTaskOrg"),n5e=mt(function(){let e=mt(function(e){return X3e[e].processed},"compileTask"),t=!0;for(var[i,n]of X3e.entries())e(i),t=t&&n.processed;return t},"compileTasks"),r5e=mt(function(){return e5e()},"getActors"),s5e={getConfig:mt(()=>N().journey,"getConfig"),clear:K3e,setDiagramTitle:Th,getDiagramTitle:Sh,setAccTitle:vh,getAccTitle:xh,setAccDescription:wh,getAccDescription:kh,addSection:Z3e,getSections:Q3e,getTasks:J3e,addTask:t5e,addTaskOrg:i5e,getActors:r5e}}),T5e=e(()=>{"use strict";iZ(),a5e=mt(e=>`.label {
|
||
font-family: ${e.fontFamily};
|
||
color: ${e.textColor};
|
||
}
|
||
.mouth {
|
||
stroke: #666;
|
||
}
|
||
|
||
line {
|
||
stroke: ${e.textColor}
|
||
}
|
||
|
||
.legend {
|
||
fill: ${e.textColor};
|
||
font-family: ${e.fontFamily};
|
||
}
|
||
|
||
.label text {
|
||
fill: #333;
|
||
}
|
||
.label {
|
||
color: ${e.textColor}
|
||
}
|
||
|
||
.face {
|
||
${e.faceColor?"fill: "+e.faceColor:"fill: #FFF8DC"};
|
||
stroke: #999;
|
||
}
|
||
|
||
.node rect,
|
||
.node circle,
|
||
.node ellipse,
|
||
.node polygon,
|
||
.node path {
|
||
fill: ${e.mainBkg};
|
||
stroke: ${e.nodeBorder};
|
||
stroke-width: 1px;
|
||
}
|
||
|
||
.node .label {
|
||
text-align: center;
|
||
}
|
||
.node.clickable {
|
||
cursor: pointer;
|
||
}
|
||
|
||
.arrowheadPath {
|
||
fill: ${e.arrowheadColor};
|
||
}
|
||
|
||
.edgePath .path {
|
||
stroke: ${e.lineColor};
|
||
stroke-width: 1.5px;
|
||
}
|
||
|
||
.flowchart-link {
|
||
stroke: ${e.lineColor};
|
||
fill: none;
|
||
}
|
||
|
||
.edgeLabel {
|
||
background-color: ${e.edgeLabelBackground};
|
||
rect {
|
||
opacity: 0.5;
|
||
}
|
||
text-align: center;
|
||
}
|
||
|
||
.cluster rect {
|
||
}
|
||
|
||
.cluster text {
|
||
fill: ${e.titleColor};
|
||
}
|
||
|
||
div.mermaidTooltip {
|
||
position: absolute;
|
||
text-align: center;
|
||
max-width: 200px;
|
||
padding: 2px;
|
||
font-family: ${e.fontFamily};
|
||
font-size: 12px;
|
||
background: ${e.tertiaryColor};
|
||
border: 1px solid ${e.border2};
|
||
border-radius: 2px;
|
||
pointer-events: none;
|
||
z-index: 100;
|
||
}
|
||
|
||
.task-type-0, .section-type-0 {
|
||
${e.fillType0?"fill: "+e.fillType0:""};
|
||
}
|
||
.task-type-1, .section-type-1 {
|
||
${e.fillType0?"fill: "+e.fillType1:""};
|
||
}
|
||
.task-type-2, .section-type-2 {
|
||
${e.fillType0?"fill: "+e.fillType2:""};
|
||
}
|
||
.task-type-3, .section-type-3 {
|
||
${e.fillType0?"fill: "+e.fillType3:""};
|
||
}
|
||
.task-type-4, .section-type-4 {
|
||
${e.fillType0?"fill: "+e.fillType4:""};
|
||
}
|
||
.task-type-5, .section-type-5 {
|
||
${e.fillType0?"fill: "+e.fillType5:""};
|
||
}
|
||
.task-type-6, .section-type-6 {
|
||
${e.fillType0?"fill: "+e.fillType6:""};
|
||
}
|
||
.task-type-7, .section-type-7 {
|
||
${e.fillType0?"fill: "+e.fillType7:""};
|
||
}
|
||
|
||
.actor-0 {
|
||
${e.actor0?"fill: "+e.actor0:""};
|
||
}
|
||
.actor-1 {
|
||
${e.actor1?"fill: "+e.actor1:""};
|
||
}
|
||
.actor-2 {
|
||
${e.actor2?"fill: "+e.actor2:""};
|
||
}
|
||
.actor-3 {
|
||
${e.actor3?"fill: "+e.actor3:""};
|
||
}
|
||
.actor-4 {
|
||
${e.actor4?"fill: "+e.actor4:""};
|
||
}
|
||
.actor-5 {
|
||
${e.actor5?"fill: "+e.actor5:""};
|
||
}
|
||
${VK()}
|
||
`,"getStyles"),o5e=a5e}),S5e=e(()=>{"use strict";function t(e,t,i,n,r,s,a,o){g(t.append("text").attr("x",i+r/2).attr("y",n+s/2+5).style("font-color",o).style("text-anchor","middle").text(e),a)}function c(e,t,i,n,r,s,a,o,l){var{taskFontSize:c,taskFontFamily:h}=o,u=e.split(/<br\s*\/?>/gi);for(let e=0;e<u.length;e++){var d=e*c-c*(u.length-1)/2,p=t.append("text").attr("x",i+r/2).attr("y",n).attr("fill",l).style("text-anchor","middle").style("font-size",c).style("font-family",h);p.append("tspan").attr("x",i+r/2).attr("dy",d).text(u[e]),p.attr("y",n+s/2).attr("dominant-baseline","central").attr("alignment-baseline","central"),g(p,a)}}function i(e,t,i,n,r,s,a,o){var t=t.append("switch"),l=t.append("foreignObject").attr("x",i).attr("y",n).attr("width",r).attr("height",s).attr("position","fixed").append("xhtml:div").style("display","table").style("height","100%").style("width","100%");l.append("div").attr("class","label").style("display","table-cell").style("text-align","center").style("vertical-align","middle").text(e),c(e,t,i,n,r,s,a,o),g(l,a)}function g(e,t){for(var i in t)i in t&&e.attr(i,t[i])}a6(),c6(),l5e=mt(function(e,t){return Cw(e,t)},"drawRect"),c5e=mt(function(e,i){var t=e.append("circle").attr("cx",i.cx).attr("cy",i.cy).attr("class","face").attr("r",15).attr("stroke-width",2).attr("overflow","visible"),e=e.append("g");function n(e){var t=Y3().startAngle(Math.PI/2).endAngle(Math.PI/2*3).innerRadius(7.5).outerRadius(6.8181818181818175);e.append("path").attr("class","mouth").attr("d",t).attr("transform","translate("+i.cx+","+(i.cy+2)+")")}function r(e){var t=Y3().startAngle(3*Math.PI/2).endAngle(Math.PI/2*5).innerRadius(7.5).outerRadius(6.8181818181818175);e.append("path").attr("class","mouth").attr("d",t).attr("transform","translate("+i.cx+","+(i.cy+7)+")")}function s(e){e.append("line").attr("class","mouth").attr("stroke",2).attr("x1",i.cx-5).attr("y1",i.cy+7).attr("x2",i.cx+5).attr("y2",i.cy+7).attr("class","mouth").attr("stroke-width","1px").attr("stroke","#666")}return e.append("circle").attr("cx",i.cx-5).attr("cy",i.cy-5).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666"),e.append("circle").attr("cx",i.cx+5).attr("cy",i.cy-5).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666"),mt(n,"smile"),mt(r,"sad"),mt(s,"ambivalent"),(3<i.score?n:i.score<3?r:s)(e),t},"drawFace"),h5e=mt(function(e,t){e=e.append("circle");return e.attr("cx",t.cx),e.attr("cy",t.cy),e.attr("class","actor-"+t.pos),e.attr("fill",t.fill),e.attr("stroke",t.stroke),e.attr("r",t.r),void 0!==e.class&&e.attr("class",e.class),void 0!==t.title&&e.append("title").text(t.title),e},"drawCircle"),u5e=mt(function(e,t){return Ew(e,t)},"drawText"),d5e=mt(function(e,t){function i(e,t,i,n,r){return e+","+t+" "+(e+i)+","+t+" "+(e+i)+","+(t+n-r)+" "+(e+i-1.2*r)+","+(t+n)+" "+e+","+(t+n)}mt(i,"genPoints");var n=e.append("polygon");n.attr("points",i(t.x,t.y,50,20,7)),n.attr("class","labelBox"),t.y=t.y+t.labelMargin,t.x=t.x+.5*t.labelMargin,u5e(e,t)},"drawLabel"),p5e=mt(function(e,t,i){var e=e.append("g"),n=Rw();n.x=t.x,n.y=t.y,n.fill=t.fill,n.width=i.width*t.taskCount+i.diagramMarginX*(t.taskCount-1),n.height=i.height,n.class="journey-section section-type-"+t.num,n.rx=3,n.ry=3,l5e(e,n),y5e(i)(t.text,e,n.x,n.y,n.width,n.height,{class:"journey-section section-type-"+t.num},i,t.colour)},"drawSection"),g5e=-1,f5e=mt(function(e,i,t){let n=i.x+t.width/2,r=e.append("g");g5e++;r.append("line").attr("id","task"+g5e).attr("x1",n).attr("y1",i.y).attr("x2",n).attr("y2",450).attr("class","task-line").attr("stroke-width","1px").attr("stroke-dasharray","4 2").attr("stroke","#666"),c5e(r,{cx:n,cy:300+30*(5-i.score),score:i.score});e=Rw();e.x=i.x,e.y=i.y,e.fill=i.fill,e.width=t.width,e.height=t.height,e.class="task task-type-"+i.num,e.rx=3,e.ry=3,l5e(r,e);let s=i.x+14;i.people.forEach(e=>{var t=i.actors[e].color,t={cx:s,cy:i.y,r:7,fill:t,stroke:"#000",title:e,pos:i.actors[e].position};h5e(r,t),s+=10}),y5e(t)(i.task,r,e.x,e.y,e.width,e.height,{class:"task"},t,i.colour)},"drawTask"),m5e=mt(function(e,t){Aw(e,t)},"drawBackgroundRect"),mt(t,"byText"),mt(c,"byTspan"),mt(i,"byFo"),mt(g,"_setTextAttrs"),y5e=function(e){return"fo"===e.textPlacement?i:"old"===e.textPlacement?t:c},b5e=mt(function(e){e.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")},"initGraphics"),v5e={drawRect:l5e,drawCircle:h5e,drawSection:p5e,drawText:u5e,drawLabel:d5e,drawTask:f5e,drawBackgroundRect:m5e,initGraphics:b5e}});function _5e(a){let n=N().journey,o=n.maxLabelWidth,l=(E5e=0,60);Object.keys(A5e).forEach(t=>{var e=A5e[t].color,e={cx:20,cy:l,r:7,fill:e,stroke:"#000",pos:A5e[t].position};v5e.drawCircle(a,e);let r=a.append("text").attr("visibility","hidden").text(t),i=r.node().getBoundingClientRect().width,s=(r.remove(),[]);if(i<=o)s=[t];else{let e=t.split(" "),n="";r=a.append("text").attr("visibility","hidden"),e.forEach(t=>{var e=n?n+" "+t:t;if(r.text(e),r.node().getBoundingClientRect().width>o){if(n&&s.push(n),n=t,r.text(t),r.node().getBoundingClientRect().width>o){let e="";for(var i of t)e+=i,r.text(e+"-"),r.node().getBoundingClientRect().width>o&&(s.push(e.slice(0,-1)+"-"),e=i);n=e}}else n=e}),n&&s.push(n),r.remove()}s.forEach((e,t)=>{t={x:40,y:l+7+20*t,fill:"#666",text:e,textMargin:n.boxTextMargin??5},e=v5e.drawText(a,t).node().getBoundingClientRect().width;E5e<e&&e>n.leftMargin-e&&(E5e=e)}),l+=Math.max(20,20*s.length)})}var C5e,A5e,E5e,$5e,L5e,R5e,M5e,I5e,N5e,D5e,O5e,P5e=e(()=>{"use strict";a6(),S5e(),Cu(),uh(),C5e=mt(function(t){Object.keys(t).forEach(function(e){$5e[e]=t[e]})},"setConf"),A5e={},E5e=0,mt(_5e,"drawActorLegend"),$5e=N().journey,L5e=0,R5e=mt(function(e,t,i,n){let r=N(),s=r.journey.titleColor,a=r.journey.titleFontSize,o=r.journey.titleFontFamily,l=r.securityLevel,c;"sandbox"===l&&(c=G("#i"+t));var h,u=G("sandbox"===l?c.nodes()[0].contentDocument.body:"body"),u=(M5e.init(),u.select("#"+t)),t=(v5e.initGraphics(u),n.db.getTasks()),d=n.db.getDiagramTitle(),n=n.db.getActors();for(h in A5e)delete A5e[h];let p=0;n.forEach(e=>{A5e[e]={color:$5e.actorColours[p%$5e.actorColours.length],position:p},p++}),_5e(u),L5e=$5e.leftMargin+E5e,M5e.insert(0,0,L5e,50*Object.keys(A5e).length),D5e(u,t,0);var n=M5e.getBounds(),t=(d&&u.append("text").text(d).attr("x",L5e).attr("font-size",a).attr("font-weight","bold").attr("y",25).attr("fill",s).attr("font-family",o),n.stopy-n.starty+2*$5e.diagramMarginY),g=L5e+n.stopx+2*$5e.diagramMarginX,d=(rh(u,t,g,$5e.useMaxWidth),u.append("line").attr("x1",L5e).attr("y1",4*$5e.height).attr("x2",g-L5e-4).attr("y2",4*$5e.height).attr("stroke-width",4).attr("stroke","black").attr("marker-end","url(#arrowhead)"),d?70:0);u.attr("viewBox",n.startx+` -25 ${g} `+(t+d)),u.attr("preserveAspectRatio","xMinYMin meet"),u.attr("height",t+d+25)},"draw"),M5e={data:{startx:void 0,stopx:void 0,starty:void 0,stopy:void 0},verticalPos:0,sequenceItems:[],init:mt(function(){this.sequenceItems=[],this.data={startx:void 0,stopx:void 0,starty:void 0,stopy:void 0},this.verticalPos=0},"init"),updateVal:mt(function(e,t,i,n){void 0===e[t]?e[t]=i:e[t]=n(i,e[t])},"updateVal"),updateBounds:mt(function(n,r,s,a){let o=N().journey,l=this,c=0;function e(i){return mt(function(e){c++;var t=l.sequenceItems.length-c+1;l.updateVal(e,"starty",r-t*o.boxMargin,Math.min),l.updateVal(e,"stopy",a+t*o.boxMargin,Math.max),l.updateVal(M5e.data,"startx",n-t*o.boxMargin,Math.min),l.updateVal(M5e.data,"stopx",s+t*o.boxMargin,Math.max),"activation"!==i&&(l.updateVal(e,"startx",n-t*o.boxMargin,Math.min),l.updateVal(e,"stopx",s+t*o.boxMargin,Math.max),l.updateVal(M5e.data,"starty",r-t*o.boxMargin,Math.min),l.updateVal(M5e.data,"stopy",a+t*o.boxMargin,Math.max))},"updateItemBounds")}mt(e,"updateFn"),this.sequenceItems.forEach(e())},"updateBounds"),insert:mt(function(e,t,i,n){var r=Math.min(e,i),e=Math.max(e,i),i=Math.min(t,n),t=Math.max(t,n);this.updateVal(M5e.data,"startx",r,Math.min),this.updateVal(M5e.data,"starty",i,Math.min),this.updateVal(M5e.data,"stopx",e,Math.max),this.updateVal(M5e.data,"stopy",t,Math.max),this.updateBounds(r,i,e,t)},"insert"),bumpVerticalPos:mt(function(e){this.verticalPos=this.verticalPos+e,this.data.stopy=this.verticalPos},"bumpVerticalPos"),getVerticalPos:mt(function(){return this.verticalPos},"getVerticalPos"),getBounds:mt(function(){return this.data},"getBounds")},I5e=$5e.sectionFills,N5e=$5e.sectionColours,D5e=mt(function(e,n,t){let r=N().journey,s="",i=2*r.height+r.diagramMarginY,a=t+i,o=0,l="#CCC",c="black",h=0;for(var[u,d]of n.entries()){if(s!==d.section){l=I5e[o%I5e.length],h=o%I5e.length,c=N5e[o%N5e.length];let t=0,i=d.section;for(let e=u;e<n.length&&n[e].section==i;e++)t+=1;var p={x:u*r.taskMargin+u*r.width+L5e,y:50,text:d.section,fill:l,num:h,colour:c,taskCount:t};v5e.drawSection(e,p,r),s=d.section,o++}p=d.people.reduce((e,t)=>(A5e[t]&&(e[t]=A5e[t]),e),{});d.x=u*r.taskMargin+u*r.width+L5e,d.y=a,d.width=r.diagramMarginX,d.height=r.diagramMarginY,d.colour=c,d.fill=l,d.num=h,d.actors=p,v5e.drawTask(e,d,r),M5e.insert(d.x,d.y,d.x+d.width+r.taskMargin,450)}},"drawTasks"),O5e={setConf:C5e,draw:R5e}}),B5e={};V(B5e,{diagram:()=>F5e});var F5e,j5e,z5e,H5e=e(()=>{"use strict";w5e(),k5e(),T5e(),P5e(),F5e={parser:W3e,db:s5e,renderer:O5e,styles:o5e,init:mt(e=>{O5e.setConf(e.journey),s5e.clear()},"init")}}),U5e=e(()=>{"use strict";function e(){this.yy={}}var t,i,n,r,s,a,o,l,c;t=mt(function(e,t,i,n){for(i=i||{},n=e.length;n--;i[e[n]]=t);return i},"o"),i=[6,8,10,11,12,14,16,17,20,21],n=[1,9],r=[1,10],s=[1,11],a=[1,12],o=[1,13],l=[1,16],c=[1,17],n={trace:mt(function(){},"trace"),yy:{},symbols_:{error:2,start:3,timeline:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NEWLINE:10,title:11,acc_title:12,acc_title_value:13,acc_descr:14,acc_descr_value:15,acc_descr_multiline_value:16,section:17,period_statement:18,event_statement:19,period:20,event:21,$accept:0,$end:1},terminals_:{2:"error",4:"timeline",6:"EOF",8:"SPACE",10:"NEWLINE",11:"title",12:"acc_title",13:"acc_title_value",14:"acc_descr",15:"acc_descr_value",16:"acc_descr_multiline_value",17:"section",20:"period",21:"event"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[9,1],[9,2],[9,2],[9,1],[9,1],[9,1],[9,1],[18,1],[19,1]],performAction:mt(function(e,t,i,n,r,s,a){var o=s.length-1;switch(r){case 1:return s[o-1];case 2:this.$=[];break;case 3:s[o-1].push(s[o]),this.$=s[o-1];break;case 4:case 5:this.$=s[o];break;case 6:case 7:this.$=[];break;case 8:n.getCommonDb().setDiagramTitle(s[o].substr(6)),this.$=s[o].substr(6);break;case 9:this.$=s[o].trim(),n.getCommonDb().setAccTitle(this.$);break;case 10:case 11:this.$=s[o].trim(),n.getCommonDb().setAccDescription(this.$);break;case 12:n.addSection(s[o].substr(8)),this.$=s[o].substr(8);break;case 15:n.addTask(s[o],0,""),this.$=s[o];break;case 16:n.addEvent(s[o].substr(2)),this.$=s[o]}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},t(i,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:n,12:r,14:s,16:a,17:o,18:14,19:15,20:l,21:c},t(i,[2,7],{1:[2,1]}),t(i,[2,3]),{9:18,11:n,12:r,14:s,16:a,17:o,18:14,19:15,20:l,21:c},t(i,[2,5]),t(i,[2,6]),t(i,[2,8]),{13:[1,19]},{15:[1,20]},t(i,[2,11]),t(i,[2,12]),t(i,[2,13]),t(i,[2,14]),t(i,[2,15]),t(i,[2,16]),t(i,[2,4]),t(i,[2,9]),t(i,[2,10])],defaultActions:{},parseError:mt(function(e,t){var i;if(!t.recoverable)throw(i=new Error(e)).hash=t,i;this.trace(e)},"parseError"),parse:mt(function(e){var t,i=this,n=[0],r=[],s=[null],a=[],o=this.table,l="",c=0,h=0,u=0,d=1,p=a.slice.call(arguments,1),g=Object.create(this.lexer),f={yy:{}};for(t in this.yy)Object.prototype.hasOwnProperty.call(this.yy,t)&&(f.yy[t]=this.yy[t]);g.setInput(e,f.yy),f.yy.lexer=g,f.yy.parser=this,"u"<typeof g.yylloc&&(g.yylloc={});var m=g.yylloc,y=(a.push(m),g.options&&g.options.ranges);function b(){var e=r.pop()||g.lex()||d;return"number"!=typeof e&&(e instanceof Array&&(e=(r=e).pop()),e=i.symbols_[e]||e),e}"function"==typeof f.yy.parseError?this.parseError=f.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError,mt(function(e){n.length=n.length-2*e,s.length=s.length-e,a.length=a.length-e},"popStack"),mt(b,"lex");for(var v,x,w,k,T,S,_,C={};;){if(w=n[n.length-1],"u"<typeof(k=this.defaultActions[w]||((null===v||"u"<typeof v)&&(v=b()),o[w]&&o[w][v]))||!k.length||!k[0]){var A="",E=[];for(T in o[w])this.terminals_[T]&&2<T&&E.push("'"+this.terminals_[T]+"'");A=g.showPosition?"Parse error on line "+(c+1)+`:
|
||
`+g.showPosition()+`
|
||
Expecting `+E.join(", ")+", got '"+(this.terminals_[v]||v)+"'":"Parse error on line "+(c+1)+": Unexpected "+(v==d?"end of input":"'"+(this.terminals_[v]||v)+"'"),this.parseError(A,{text:g.match,token:this.terminals_[v]||v,line:g.yylineno,loc:m,expected:E})}if(k[0]instanceof Array&&1<k.length)throw new Error("Parse Error: multiple actions possible at state: "+w+", token: "+v);switch(k[0]){case 1:n.push(v),s.push(g.yytext),a.push(g.yylloc),n.push(k[1]),v=null,x?(v=x,x=null):(h=g.yyleng,l=g.yytext,c=g.yylineno,m=g.yylloc,0<u&&u--);break;case 2:if(S=this.productions_[k[1]][1],C.$=s[s.length-S],C._$={first_line:a[a.length-(S||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(S||1)].first_column,last_column:a[a.length-1].last_column},y&&(C._$.range=[a[a.length-(S||1)].range[0],a[a.length-1].range[1]]),typeof(_=this.performAction.apply(C,[l,h,c,f.yy,k[1],s,a].concat(p)))<"u")return _;S&&(n=n.slice(0,-1*S*2),s=s.slice(0,-1*S),a=a.slice(0,-1*S)),n.push(this.productions_[k[1]][0]),s.push(C.$),a.push(C._$),_=o[n[n.length-2]][n[n.length-1]],n.push(_);break;case 3:return!0}}return!0},"parse")},r={EOF:1,parseError:mt(function(e,t){if(!this.yy.parser)throw new Error(e);this.yy.parser.parseError(e,t)},"parseError"),setInput:mt(function(e,t){return this.yy=t||this.yy||{},this._input=e,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:mt(function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.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),e},"input"),unput:mt(function(e){var t=e.length,i=e.split(/(?:\r\n?|\n)/g),e=(this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t,this.match.split(/(?:\r\n?|\n)/g)),n=(this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),i.length-1&&(this.yylineno-=i.length-1),this.yylloc.range);return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:i?(i.length===e.length?this.yylloc.first_column:0)+e[e.length-i.length].length-i[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[n[0],n[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},"unput"),more:mt(function(){return this._more=!0,this},"more"),reject:mt(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).
|
||
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"reject"),less:mt(function(e){this.unput(this.match.slice(e))},"less"),pastInput:mt(function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(20<e.length?"...":"")+e.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:mt(function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(20<e.length?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:mt(function(){var e=this.pastInput(),t=new Array(e.length+1).join("-");return e+this.upcomingInput()+`
|
||
`+t+"^"},"showPosition"),test_match:mt(function(e,t){var i,n;if(this.options.backtrack_lexer&&(n={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)&&(n.yylloc.range=this.yylloc.range.slice(0)),(i=e[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=i.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:i?i[i.length-1].length-i[i.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+e[0].length},this.yytext+=e[0],this.match+=e[0],this.matches=e,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(e[0].length),this.matched+=e[0],i=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),i)return i;if(this._backtrack)for(var r in n)this[r]=n[r];return!1},"test_match"),next:mt(function(){if(this.done)return this.EOF;var e,t,i,n;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var r=this._currentRules(),s=0;s<r.length;s++)if((i=this._input.match(this.rules[r[s]]))&&(!t||i[0].length>t[0].length)){if(t=i,n=s,this.options.backtrack_lexer){if(!1!==(e=this.test_match(i,r[s])))return e;if(this._backtrack){t=!1;continue}return!1}if(!this.options.flex)break}return t?!1!==(e=this.test_match(t,r[n]))&&e:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
|
||
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:mt(function(){return this.next()||this.lex()},"lex"),begin:mt(function(e){this.conditionStack.push(e)},"begin"),popState:mt(function(){return 0<this.conditionStack.length-1?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:mt(function(){return(this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]]:this.conditions.INITIAL).rules},"_currentRules"),topState:mt(function(e){return 0<=(e=this.conditionStack.length-1-Math.abs(e||0))?this.conditionStack[e]:"INITIAL"},"topState"),pushState:mt(function(e){this.begin(e)},"pushState"),stateStackSize:mt(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:mt(function(e,t,i,n){switch(i){case 0:case 1:break;case 2:return 10;case 3:case 4:break;case 5:return 4;case 6:return 11;case 7:return this.begin("acc_title"),12;case 8:return this.popState(),"acc_title_value";case 9:return this.begin("acc_descr"),14;case 10:return this.popState(),"acc_descr_value";case 11:this.begin("acc_descr_multiline");break;case 12:this.popState();break;case 13:return"acc_descr_multiline_value";case 14:return 17;case 15:return 21;case 16:return 20;case 17:return 6;case 18:return"INVALID"}},"anonymous"),rules:[/^(?:%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:#[^\n]*)/i,/^(?:timeline\b)/i,/^(?:title\s[^\n]+)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:section\s[^:\n]+)/i,/^(?::\s(?:[^:\n]|:(?!\s))+)/i,/^(?:[^#:\n]+)/i,/^(?:$)/i,/^(?:.)/i],conditions:{acc_descr_multiline:{rules:[12,13],inclusive:!1},acc_descr:{rules:[10],inclusive:!1},acc_title:{rules:[8],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,7,9,11,14,15,16,17,18],inclusive:!0}}},n.lexer=r,mt(e,"Parser"),(j5e=new((e.prototype=n).Parser=e)).parser=j5e,z5e=j5e}),q5e={};V(q5e,{addEvent:()=>iwe,addSection:()=>Q5e,addTask:()=>twe,addTaskOrg:()=>nwe,clear:()=>Z5e,default:()=>swe,getCommonDb:()=>K5e,getSections:()=>J5e,getTasks:()=>ewe});var W5e,V5e,G5e,Y5e,X5e,K5e,Z5e,Q5e,J5e,ewe,twe,iwe,nwe,rwe,swe,awe=e(()=>{"use strict";_u(),W5e="",V5e=0,G5e=[],Y5e=[],X5e=[],K5e=mt(()=>ph,"getCommonDb"),Z5e=mt(function(){G5e.length=0,Y5e.length=0,W5e="",X5e.length=0,bh()},"clear"),Q5e=mt(function(e){W5e=e,G5e.push(e)},"addSection"),J5e=mt(function(){return G5e},"getSections"),ewe=mt(function(){let e=rwe(),t=0;for(;!e&&t<100;)e=rwe(),t++;return Y5e.push(...X5e),Y5e},"getTasks"),twe=mt(function(e,t,i){e={id:V5e++,section:W5e,type:W5e,task:e,score:t||0,events:i?[i]:[]};X5e.push(e)},"addTask"),iwe=mt(function(e){X5e.find(e=>e.id===V5e-1).events.push(e)},"addEvent"),nwe=mt(function(e){e={section:W5e,type:W5e,description:e,task:e,classes:[]};Y5e.push(e)},"addTaskOrg"),rwe=mt(function(){let e=mt(function(e){return X5e[e].processed},"compileTask"),t=!0;for(var[i,n]of X5e.entries())e(i),t=t&&n.processed;return t},"compileTasks"),swe={clear:Z5e,getCommonDb:K5e,addSection:Q5e,getSections:J5e,getTasks:ewe,addTask:twe,addTaskOrg:nwe,addEvent:iwe}});function owe(e,o){e.each(function(){var t,i=G(this),n=i.text().split(/(\s+|<br>)/).reverse(),r=[],s=i.attr("y"),e=parseFloat(i.attr("dy")),a=i.text(null).append("tspan").attr("x",0).attr("y",s).attr("dy",e+"em");for(let e=0;e<n.length;e++)t=n[n.length-1-e],r.push(t),a.text(r.join(" ").trim()),(a.node().getComputedTextLength()>o||"<br>"===t)&&(r.pop(),a.text(r.join(" ").trim()),r="<br>"===t?[""]:[t],a=i.append("tspan").attr("x",0).attr("y",s).attr("dy","1.1em").text(t))})}var lwe,cwe,hwe,uwe,dwe,pwe,gwe,fwe,mwe,ywe,bwe,vwe,xwe,wwe,kwe,Twe,Swe,_we,Cwe,Awe,Ewe,$we,Lwe,Rwe,Mwe=e(()=>{"use strict";function t(e,t,i,n,r,s,a,o){g(t.append("text").attr("x",i+r/2).attr("y",n+s/2+5).style("font-color",o).style("text-anchor","middle").text(e),a)}function c(e,t,i,n,r,s,a,o,l){var{taskFontSize:c,taskFontFamily:h}=o,u=e.split(/<br\s*\/?>/gi);for(let e=0;e<u.length;e++){var d=e*c-c*(u.length-1)/2,p=t.append("text").attr("x",i+r/2).attr("y",n).attr("fill",l).style("text-anchor","middle").style("font-size",c).style("font-family",h);p.append("tspan").attr("x",i+r/2).attr("dy",d).text(u[e]),p.attr("y",n+s/2).attr("dominant-baseline","central").attr("alignment-baseline","central"),g(p,a)}}function i(e,t,i,n,r,s,a,o){var t=t.append("switch"),l=t.append("foreignObject").attr("x",i).attr("y",n).attr("width",r).attr("height",s).attr("position","fixed").append("xhtml:div").style("display","table").style("height","100%").style("width","100%");l.append("div").attr("class","label").style("display","table-cell").style("text-align","center").style("vertical-align","middle").text(e),c(e,t,i,n,r,s,a,o),g(l,a)}function g(e,t){for(var i in t)i in t&&e.attr(i,t[i])}a6(),lwe=mt(function(e,t){e=e.append("rect");return e.attr("x",t.x),e.attr("y",t.y),e.attr("fill",t.fill),e.attr("stroke",t.stroke),e.attr("width",t.width),e.attr("height",t.height),e.attr("rx",t.rx),e.attr("ry",t.ry),void 0!==t.class&&e.attr("class",t.class),e},"drawRect"),cwe=mt(function(e,i){var t=e.append("circle").attr("cx",i.cx).attr("cy",i.cy).attr("class","face").attr("r",15).attr("stroke-width",2).attr("overflow","visible"),e=e.append("g");function n(e){var t=Y3().startAngle(Math.PI/2).endAngle(Math.PI/2*3).innerRadius(7.5).outerRadius(6.8181818181818175);e.append("path").attr("class","mouth").attr("d",t).attr("transform","translate("+i.cx+","+(i.cy+2)+")")}function r(e){var t=Y3().startAngle(3*Math.PI/2).endAngle(Math.PI/2*5).innerRadius(7.5).outerRadius(6.8181818181818175);e.append("path").attr("class","mouth").attr("d",t).attr("transform","translate("+i.cx+","+(i.cy+7)+")")}function s(e){e.append("line").attr("class","mouth").attr("stroke",2).attr("x1",i.cx-5).attr("y1",i.cy+7).attr("x2",i.cx+5).attr("y2",i.cy+7).attr("class","mouth").attr("stroke-width","1px").attr("stroke","#666")}return e.append("circle").attr("cx",i.cx-5).attr("cy",i.cy-5).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666"),e.append("circle").attr("cx",i.cx+5).attr("cy",i.cy-5).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666"),mt(n,"smile"),mt(r,"sad"),mt(s,"ambivalent"),(3<i.score?n:i.score<3?r:s)(e),t},"drawFace"),hwe=mt(function(e,t){e=e.append("circle");return e.attr("cx",t.cx),e.attr("cy",t.cy),e.attr("class","actor-"+t.pos),e.attr("fill",t.fill),e.attr("stroke",t.stroke),e.attr("r",t.r),void 0!==e.class&&e.attr("class",e.class),void 0!==t.title&&e.append("title").text(t.title),e},"drawCircle"),uwe=mt(function(e,t){var i=t.text.replace(/<br\s*\/?>/gi," "),e=e.append("text"),n=(e.attr("x",t.x),e.attr("y",t.y),e.attr("class","legend"),e.style("text-anchor",t.anchor),void 0!==t.class&&e.attr("class",t.class),e.append("tspan"));return n.attr("x",t.x+2*t.textMargin),n.text(i),e},"drawText"),dwe=mt(function(e,t){function i(e,t,i,n,r){return e+","+t+" "+(e+i)+","+t+" "+(e+i)+","+(t+n-r)+" "+(e+i-1.2*r)+","+(t+n)+" "+e+","+(t+n)}mt(i,"genPoints");var n=e.append("polygon");n.attr("points",i(t.x,t.y,50,20,7)),n.attr("class","labelBox"),t.y=t.y+t.labelMargin,t.x=t.x+.5*t.labelMargin,uwe(e,t)},"drawLabel"),pwe=mt(function(e,t,i){var e=e.append("g"),n=bwe();n.x=t.x,n.y=t.y,n.fill=t.fill,n.width=i.width,n.height=i.height,n.class="journey-section section-type-"+t.num,n.rx=3,n.ry=3,lwe(e,n),vwe(i)(t.text,e,n.x,n.y,n.width,n.height,{class:"journey-section section-type-"+t.num},i,t.colour)},"drawSection"),gwe=-1,fwe=mt(function(e,t,i){var n=t.x+i.width/2,e=e.append("g"),n=(gwe++,e.append("line").attr("id","task"+gwe).attr("x1",n).attr("y1",t.y).attr("x2",n).attr("y2",450).attr("class","task-line").attr("stroke-width","1px").attr("stroke-dasharray","4 2").attr("stroke","#666"),cwe(e,{cx:n,cy:300+30*(5-t.score),score:t.score}),bwe());n.x=t.x,n.y=t.y,n.fill=t.fill,n.width=i.width,n.height=i.height,n.class="task task-type-"+t.num,n.rx=3,n.ry=3,lwe(e,n),vwe(i)(t.task,e,n.x,n.y,n.width,n.height,{class:"task"},i,t.colour)},"drawTask"),mwe=mt(function(e,t){lwe(e,{x:t.startx,y:t.starty,width:t.stopx-t.startx,height:t.stopy-t.starty,fill:t.fill,class:"rect"}).lower()},"drawBackgroundRect"),ywe=mt(function(){return{x:0,y:0,fill:void 0,"text-anchor":"start",width:100,height:100,textMargin:0,rx:0,ry:0}},"getTextObj"),bwe=mt(function(){return{x:0,y:0,width:100,anchor:"start",height:100,rx:0,ry:0}},"getNoteRect"),mt(t,"byText"),mt(c,"byTspan"),mt(i,"byFo"),mt(g,"_setTextAttrs"),vwe=function(e){return"fo"===e.textPlacement?i:"old"===e.textPlacement?t:c},xwe=mt(function(e){e.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")},"initGraphics"),mt(owe,"wrap"),wwe=mt(function(e,t,i,n){var i=i%12-1,e=e.append("g"),r=(t.section=i,e.attr("class",(t.class?t.class+" ":"")+"timeline-node section-"+i),e.append("g")),e=e.append("g"),s=e.append("text").text(t.descr).attr("dy","1em").attr("alignment-baseline","middle").attr("dominant-baseline","middle").attr("text-anchor","middle").call(owe,t.width).node().getBBox(),a=n.fontSize?.replace?n.fontSize.replace("px",""):n.fontSize;return t.height=s.height+1.1*a*.5+t.padding,t.height=Math.max(t.height,t.maxHeight),t.width=t.width+2*t.padding,e.attr("transform","translate("+t.width/2+", "+t.padding/2+")"),Twe(r,t,i,n),t},"drawNode"),kwe=mt(function(e,t,i){var e=e.append("g"),n=e.append("text").text(t.descr).attr("dy","1em").attr("alignment-baseline","middle").attr("dominant-baseline","middle").attr("text-anchor","middle").call(owe,t.width).node().getBBox(),i=i.fontSize?.replace?i.fontSize.replace("px",""):i.fontSize;return e.remove(),n.height+1.1*i*.5+t.padding},"getVirtualNodeHeight"),Twe=mt(function(e,t,i){e.append("path").attr("id","node-"+t.id).attr("class","node-bkg node-"+t.type).attr("d",`M0 ${t.height-5} v${10-t.height} q0,-5 5,-5 h${t.width-10} q5,0 5,5 v${t.height-5} H0 Z`),e.append("line").attr("class","node-line-"+i).attr("x1",0).attr("y1",t.height).attr("x2",t.width).attr("y2",t.height)},"defaultBkg"),Swe={drawRect:lwe,drawCircle:hwe,drawSection:pwe,drawText:uwe,drawLabel:dwe,drawTask:fwe,drawBackgroundRect:mwe,getTextObj:ywe,getNoteRect:bwe,initGraphics:xwe,drawNode:wwe,getVirtualNodeHeight:kwe}}),Iwe=e(()=>{"use strict";a6(),Mwe(),t(),Cu(),uh(),_we=mt(function(e,t,i,n){let r=N(),s=r.timeline?.leftMargin??50,a=(I.debug("timeline",n.db),r.securityLevel),o,l=("sandbox"===a&&(o=G("#i"+t)),G("sandbox"===a?o.nodes()[0].contentDocument.body:"body").select("#"+t)),c=(l.append("g"),n.db.getTasks()),h=n.db.getCommonDb().getDiagramTitle();I.debug("task",c),Swe.initGraphics(l);var u,d,t=n.db.getSections();I.debug("sections",t);let p=0,g=0,f,m,y=50+s,b=50,v=(m=50,0),x=!0,w=(t.forEach(function(e){e={number:v,descr:e,section:v,width:150,padding:20,maxHeight:p},e=Swe.getVirtualNodeHeight(l,e,r);I.debug("sectionHeight before draw",e),p=Math.max(p,e+20)}),0),k=0;I.debug("tasks.length",c.length);for([u,d]of c.entries()){var T,S={number:u,descr:d,section:d.section,width:150,padding:20,maxHeight:g},S=Swe.getVirtualNodeHeight(l,S,r);I.debug("taskHeight before draw",S),g=Math.max(g,S+20),w=Math.max(w,d.events.length);let e=0;for(T of d.events){var _={descr:T,section:d.section,number:d.section,width:150,padding:20,maxHeight:50};e+=Swe.getVirtualNodeHeight(l,_,r)}0<d.events.length&&(e+=10*(d.events.length-1)),k=Math.max(k,e)}I.debug("maxSectionHeight before draw",p),I.debug("maxTaskHeight before draw",g),t&&0<t.length?t.forEach(t=>{var e=c.filter(e=>e.section===t),i={number:v,descr:t,section:v,width:200*Math.max(e.length,1)-50,padding:20,maxHeight:p},n=(I.debug("sectionNode",i),l.append("g")),i=Swe.drawNode(n,i,v,r);I.debug("sectionNode output",i),n.attr("transform",`translate(${y}, 50)`),b+=p+50,0<e.length&&Cwe(l,e,v,y,b,g,r,w,k,p,!1),y+=200*Math.max(e.length,1),b=50,v++}):(x=!1,Cwe(l,c,v,y,b,g,r,w,k,p,!0));n=l.node().getBBox();I.debug("bounds",n),h&&l.append("text").text(h).attr("x",n.width/2-s).attr("font-size","4ex").attr("font-weight","bold").attr("y",20),f=x?p+g+150:g+100,l.append("g").attr("class","lineWrapper").append("line").attr("x1",s).attr("y1",f).attr("x2",n.width+3*s).attr("y2",f).attr("stroke-width",4).attr("stroke","black").attr("marker-end","url(#arrowhead)"),sh(void 0,l,r.timeline?.padding??50,r.timeline?.useMaxWidth??!1)},"draw"),Cwe=mt(function(e,t,i,n,r,s,a,o,l,c,h){for(var u of t){var d={descr:u.task,section:i,number:i,width:150,padding:20,maxHeight:s},p=(I.debug("taskNode",d),e.append("g").attr("class","taskWrapper")),d=Swe.drawNode(p,d,i,a).height;I.debug("taskHeight after draw",d),p.attr("transform",`translate(${n}, ${r})`),s=Math.max(s,d),u.events&&(p=e.append("g").attr("class","lineWrapper"),r+=100,Awe(e,u.events,i,n,r,a),r-=100,p.append("line").attr("x1",n+95).attr("y1",r+s).attr("x2",n+95).attr("y2",r+s+100+l+100).attr("stroke-width",2).attr("stroke","black").attr("marker-end","url(#arrowhead)").attr("stroke-dasharray","5,5")),n+=200,h&&!a.timeline?.disableMulticolor&&i++}},"drawTasks"),Awe=mt(function(e,t,i,n,r,s){let a=0,o=r;r+=100;for(var l of t){var l={descr:l,section:i,number:i,width:150,padding:20,maxHeight:50},c=(I.debug("eventNode",l),e.append("g").attr("class","eventWrapper")),l=Swe.drawNode(c,l,i,s).height;a+=l,c.attr("transform",`translate(${n}, ${r})`),r=r+10+l}return r=o,a},"drawEvents"),Ewe={setConf:mt(()=>{},"setConf"),draw:_we}}),Nwe=e(()=>{"use strict";xn(),$we=mt(t=>{let i="";for(let e=0;e<t.THEME_COLOR_LIMIT;e++)t["lineColor"+e]=t["lineColor"+e]||t["cScaleInv"+e],Wt(t["lineColor"+e])?t["lineColor"+e]=s(t["lineColor"+e],20):t["lineColor"+e]=Kt(t["lineColor"+e],20);for(let e=0;e<t.THEME_COLOR_LIMIT;e++){var n=""+(17-3*e);i+=`
|
||
.section-${e-1} rect, .section-${e-1} path, .section-${e-1} circle, .section-${e-1} path {
|
||
fill: ${t["cScale"+e]};
|
||
}
|
||
.section-${e-1} text {
|
||
fill: ${t["cScaleLabel"+e]};
|
||
}
|
||
.node-icon-${e-1} {
|
||
font-size: 40px;
|
||
color: ${t["cScaleLabel"+e]};
|
||
}
|
||
.section-edge-${e-1}{
|
||
stroke: ${t["cScale"+e]};
|
||
}
|
||
.edge-depth-${e-1}{
|
||
stroke-width: ${n};
|
||
}
|
||
.section-${e-1} line {
|
||
stroke: ${t["cScaleInv"+e]} ;
|
||
stroke-width: 3;
|
||
}
|
||
|
||
.lineWrapper line{
|
||
stroke: ${t["cScaleLabel"+e]} ;
|
||
}
|
||
|
||
.disabled, .disabled circle, .disabled text {
|
||
fill: lightgray;
|
||
}
|
||
.disabled text {
|
||
fill: #efefef;
|
||
}
|
||
`}return i},"genSections"),Lwe=mt(e=>`
|
||
.edge {
|
||
stroke-width: 3;
|
||
}
|
||
${$we(e)}
|
||
.section-root rect, .section-root path, .section-root circle {
|
||
fill: ${e.git0};
|
||
}
|
||
.section-root text {
|
||
fill: ${e.gitBranchLabel0};
|
||
}
|
||
.icon-container {
|
||
height:100%;
|
||
display: flex;
|
||
justify-content: center;
|
||
align-items: center;
|
||
}
|
||
.edge {
|
||
fill: none;
|
||
}
|
||
.eventWrapper {
|
||
filter: brightness(120%);
|
||
}
|
||
`,"getStyles"),Rwe=Lwe}),Dwe={};V(Dwe,{diagram:()=>Owe});var Owe,Pwe,Bwe,Fwe,jwe,zwe=e(()=>{"use strict";U5e(),awe(),Iwe(),Nwe(),Owe={db:q5e,renderer:Ewe,parser:z5e,styles:Rwe}}),Hwe=e(()=>{"use strict";function e(){this.yy={}}var t,i,n,r,s,a,o,l,c,h,u,d,p,g,f,m,y;t=mt(function(e,t,i,n){for(i=i||{},n=e.length;n--;i[e[n]]=t);return i},"o"),i=[1,4],n=[1,13],r=[1,12],s=[1,15],a=[1,16],o=[1,20],l=[1,19],c=[6,7,8],h=[1,26],u=[1,24],d=[1,25],p=[6,7,11],g=[1,6,13,15,16,19,22],f=[1,33],m=[1,34],y=[1,6,7,11,13,15,16,19,22],i={trace:mt(function(){},"trace"),yy:{},symbols_:{error:2,start:3,mindMap:4,spaceLines:5,SPACELINE:6,NL:7,MINDMAP:8,document:9,stop:10,EOF:11,statement:12,SPACELIST:13,node:14,ICON:15,CLASS:16,nodeWithId:17,nodeWithoutId:18,NODE_DSTART:19,NODE_DESCR:20,NODE_DEND:21,NODE_ID:22,$accept:0,$end:1},terminals_:{2:"error",6:"SPACELINE",7:"NL",8:"MINDMAP",11:"EOF",13:"SPACELIST",15:"ICON",16:"CLASS",19:"NODE_DSTART",20:"NODE_DESCR",21:"NODE_DEND",22:"NODE_ID"},productions_:[0,[3,1],[3,2],[5,1],[5,2],[5,2],[4,2],[4,3],[10,1],[10,1],[10,1],[10,2],[10,2],[9,3],[9,2],[12,2],[12,2],[12,2],[12,1],[12,1],[12,1],[12,1],[12,1],[14,1],[14,1],[18,3],[17,1],[17,4]],performAction:mt(function(e,t,i,n,r,s,a){var o=s.length-1;switch(r){case 6:case 7:return n;case 8:n.getLogger().trace("Stop NL ");break;case 9:n.getLogger().trace("Stop EOF ");break;case 11:n.getLogger().trace("Stop NL2 ");break;case 12:n.getLogger().trace("Stop EOF2 ");break;case 15:n.getLogger().info("Node: ",s[o].id),n.addNode(s[o-1].length,s[o].id,s[o].descr,s[o].type);break;case 16:n.getLogger().trace("Icon: ",s[o]),n.decorateNode({icon:s[o]});break;case 17:case 21:n.decorateNode({class:s[o]});break;case 18:n.getLogger().trace("SPACELIST");break;case 19:n.getLogger().trace("Node: ",s[o].id),n.addNode(0,s[o].id,s[o].descr,s[o].type);break;case 20:n.decorateNode({icon:s[o]});break;case 25:n.getLogger().trace("node found ..",s[o-2]),this.$={id:s[o-1],descr:s[o-1],type:n.getType(s[o-2],s[o])};break;case 26:this.$={id:s[o],descr:s[o],type:n.nodeType.DEFAULT};break;case 27:n.getLogger().trace("node found ..",s[o-3]),this.$={id:s[o-3],descr:s[o-1],type:n.getType(s[o-2],s[o])}}},"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],8:i},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:i},{6:n,7:[1,10],9:9,12:11,13:r,14:14,15:s,16:a,17:17,18:18,19:o,22:l},t(c,[2,3]),{1:[2,2]},t(c,[2,4]),t(c,[2,5]),{1:[2,6],6:n,12:21,13:r,14:14,15:s,16:a,17:17,18:18,19:o,22:l},{6:n,9:22,12:11,13:r,14:14,15:s,16:a,17:17,18:18,19:o,22:l},{6:h,7:u,10:23,11:d},t(p,[2,22],{17:17,18:18,14:27,15:[1,28],16:[1,29],19:o,22:l}),t(p,[2,18]),t(p,[2,19]),t(p,[2,20]),t(p,[2,21]),t(p,[2,23]),t(p,[2,24]),t(p,[2,26],{19:[1,30]}),{20:[1,31]},{6:h,7:u,10:32,11:d},{1:[2,7],6:n,12:21,13:r,14:14,15:s,16:a,17:17,18:18,19:o,22:l},t(g,[2,14],{7:f,11:m}),t(y,[2,8]),t(y,[2,9]),t(y,[2,10]),t(p,[2,15]),t(p,[2,16]),t(p,[2,17]),{20:[1,35]},{21:[1,36]},t(g,[2,13],{7:f,11:m}),t(y,[2,11]),t(y,[2,12]),{21:[1,37]},t(p,[2,25]),t(p,[2,27])],defaultActions:{2:[2,1],6:[2,2]},parseError:mt(function(e,t){var i;if(!t.recoverable)throw(i=new Error(e)).hash=t,i;this.trace(e)},"parseError"),parse:mt(function(e){var t,i=this,n=[0],r=[],s=[null],a=[],o=this.table,l="",c=0,h=0,u=0,d=1,p=a.slice.call(arguments,1),g=Object.create(this.lexer),f={yy:{}};for(t in this.yy)Object.prototype.hasOwnProperty.call(this.yy,t)&&(f.yy[t]=this.yy[t]);g.setInput(e,f.yy),f.yy.lexer=g,f.yy.parser=this,"u"<typeof g.yylloc&&(g.yylloc={});var m=g.yylloc,y=(a.push(m),g.options&&g.options.ranges);function b(){var e=r.pop()||g.lex()||d;return"number"!=typeof e&&(e instanceof Array&&(e=(r=e).pop()),e=i.symbols_[e]||e),e}"function"==typeof f.yy.parseError?this.parseError=f.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError,mt(function(e){n.length=n.length-2*e,s.length=s.length-e,a.length=a.length-e},"popStack"),mt(b,"lex");for(var v,x,w,k,T,S,_,C={};;){if(w=n[n.length-1],"u"<typeof(k=this.defaultActions[w]||((null===v||"u"<typeof v)&&(v=b()),o[w]&&o[w][v]))||!k.length||!k[0]){var A="",E=[];for(T in o[w])this.terminals_[T]&&2<T&&E.push("'"+this.terminals_[T]+"'");A=g.showPosition?"Parse error on line "+(c+1)+`:
|
||
`+g.showPosition()+`
|
||
Expecting `+E.join(", ")+", got '"+(this.terminals_[v]||v)+"'":"Parse error on line "+(c+1)+": Unexpected "+(v==d?"end of input":"'"+(this.terminals_[v]||v)+"'"),this.parseError(A,{text:g.match,token:this.terminals_[v]||v,line:g.yylineno,loc:m,expected:E})}if(k[0]instanceof Array&&1<k.length)throw new Error("Parse Error: multiple actions possible at state: "+w+", token: "+v);switch(k[0]){case 1:n.push(v),s.push(g.yytext),a.push(g.yylloc),n.push(k[1]),v=null,x?(v=x,x=null):(h=g.yyleng,l=g.yytext,c=g.yylineno,m=g.yylloc,0<u&&u--);break;case 2:if(S=this.productions_[k[1]][1],C.$=s[s.length-S],C._$={first_line:a[a.length-(S||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(S||1)].first_column,last_column:a[a.length-1].last_column},y&&(C._$.range=[a[a.length-(S||1)].range[0],a[a.length-1].range[1]]),typeof(_=this.performAction.apply(C,[l,h,c,f.yy,k[1],s,a].concat(p)))<"u")return _;S&&(n=n.slice(0,-1*S*2),s=s.slice(0,-1*S),a=a.slice(0,-1*S)),n.push(this.productions_[k[1]][0]),s.push(C.$),a.push(C._$),_=o[n[n.length-2]][n[n.length-1]],n.push(_);break;case 3:return!0}}return!0},"parse")},c={EOF:1,parseError:mt(function(e,t){if(!this.yy.parser)throw new Error(e);this.yy.parser.parseError(e,t)},"parseError"),setInput:mt(function(e,t){return this.yy=t||this.yy||{},this._input=e,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:mt(function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.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),e},"input"),unput:mt(function(e){var t=e.length,i=e.split(/(?:\r\n?|\n)/g),e=(this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t,this.match.split(/(?:\r\n?|\n)/g)),n=(this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),i.length-1&&(this.yylineno-=i.length-1),this.yylloc.range);return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:i?(i.length===e.length?this.yylloc.first_column:0)+e[e.length-i.length].length-i[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[n[0],n[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},"unput"),more:mt(function(){return this._more=!0,this},"more"),reject:mt(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).
|
||
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"reject"),less:mt(function(e){this.unput(this.match.slice(e))},"less"),pastInput:mt(function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(20<e.length?"...":"")+e.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:mt(function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(20<e.length?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:mt(function(){var e=this.pastInput(),t=new Array(e.length+1).join("-");return e+this.upcomingInput()+`
|
||
`+t+"^"},"showPosition"),test_match:mt(function(e,t){var i,n;if(this.options.backtrack_lexer&&(n={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)&&(n.yylloc.range=this.yylloc.range.slice(0)),(i=e[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=i.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:i?i[i.length-1].length-i[i.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+e[0].length},this.yytext+=e[0],this.match+=e[0],this.matches=e,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(e[0].length),this.matched+=e[0],i=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),i)return i;if(this._backtrack)for(var r in n)this[r]=n[r];return!1},"test_match"),next:mt(function(){if(this.done)return this.EOF;var e,t,i,n;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var r=this._currentRules(),s=0;s<r.length;s++)if((i=this._input.match(this.rules[r[s]]))&&(!t||i[0].length>t[0].length)){if(t=i,n=s,this.options.backtrack_lexer){if(!1!==(e=this.test_match(i,r[s])))return e;if(this._backtrack){t=!1;continue}return!1}if(!this.options.flex)break}return t?!1!==(e=this.test_match(t,r[n]))&&e:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
|
||
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:mt(function(){return this.next()||this.lex()},"lex"),begin:mt(function(e){this.conditionStack.push(e)},"begin"),popState:mt(function(){return 0<this.conditionStack.length-1?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:mt(function(){return(this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]]:this.conditions.INITIAL).rules},"_currentRules"),topState:mt(function(e){return 0<=(e=this.conditionStack.length-1-Math.abs(e||0))?this.conditionStack[e]:"INITIAL"},"topState"),pushState:mt(function(e){this.begin(e)},"pushState"),stateStackSize:mt(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:mt(function(e,t,i,n){switch(i){case 0:return e.getLogger().trace("Found comment",t.yytext),6;case 1:return 8;case 2:this.begin("CLASS");break;case 3:return this.popState(),16;case 4:this.popState();break;case 5:e.getLogger().trace("Begin icon"),this.begin("ICON");break;case 6:return e.getLogger().trace("SPACELINE"),6;case 7:return 7;case 8:return 15;case 9:e.getLogger().trace("end icon"),this.popState();break;case 10:return e.getLogger().trace("Exploding node"),this.begin("NODE"),19;case 11:return e.getLogger().trace("Cloud"),this.begin("NODE"),19;case 12:return e.getLogger().trace("Explosion Bang"),this.begin("NODE"),19;case 13:return e.getLogger().trace("Cloud Bang"),this.begin("NODE"),19;case 14:case 15:case 16:case 17:return this.begin("NODE"),19;case 18:return 13;case 19:return 22;case 20:return 11;case 21:this.begin("NSTR2");break;case 22:return"NODE_DESCR";case 23:this.popState();break;case 24:e.getLogger().trace("Starting NSTR"),this.begin("NSTR");break;case 25:return e.getLogger().trace("description:",t.yytext),"NODE_DESCR";case 26:this.popState();break;case 27:return this.popState(),e.getLogger().trace("node end ))"),"NODE_DEND";case 28:return this.popState(),e.getLogger().trace("node end )"),"NODE_DEND";case 29:return this.popState(),e.getLogger().trace("node end ...",t.yytext),"NODE_DEND";case 30:return this.popState(),e.getLogger().trace("node end (("),"NODE_DEND";case 31:case 32:return this.popState(),e.getLogger().trace("node end (-"),"NODE_DEND";case 33:case 34:return this.popState(),e.getLogger().trace("node end (("),"NODE_DEND";case 35:case 36:return e.getLogger().trace("Long description:",t.yytext),20}},"anonymous"),rules:[/^(?:\s*%%.*)/i,/^(?:mindmap\b)/i,/^(?::::)/i,/^(?:.+)/i,/^(?:\n)/i,/^(?:::icon\()/i,/^(?:[\s]+[\n])/i,/^(?:[\n]+)/i,/^(?:[^\)]+)/i,/^(?:\))/i,/^(?:-\))/i,/^(?:\(-)/i,/^(?:\)\))/i,/^(?:\))/i,/^(?:\(\()/i,/^(?:\{\{)/i,/^(?:\()/i,/^(?:\[)/i,/^(?:[\s]+)/i,/^(?:[^\(\[\n\)\{\}]+)/i,/^(?:$)/i,/^(?:["][`])/i,/^(?:[^`"]+)/i,/^(?:[`]["])/i,/^(?:["])/i,/^(?:[^"]+)/i,/^(?:["])/i,/^(?:[\)]\))/i,/^(?:[\)])/i,/^(?:[\]])/i,/^(?:\}\})/i,/^(?:\(-)/i,/^(?:-\))/i,/^(?:\(\()/i,/^(?:\()/i,/^(?:[^\)\]\(\}]+)/i,/^(?:.+(?!\(\())/i],conditions:{CLASS:{rules:[3,4],inclusive:!1},ICON:{rules:[8,9],inclusive:!1},NSTR2:{rules:[22,23],inclusive:!1},NSTR:{rules:[25,26],inclusive:!1},NODE:{rules:[21,24,27,28,29,30,31,32,33,34,35,36],inclusive:!1},INITIAL:{rules:[0,1,2,5,6,7,10,11,12,13,14,15,16,17,18,19,20],inclusive:!0}}},i.lexer=c,mt(e,"Parser"),(Pwe=new((e.prototype=i).Parser=e)).parser=Pwe,Bwe=Pwe}),Uwe=e(()=>{"use strict";Cu(),hh(),t(),Ln(),Fwe={DEFAULT:0,NO_BORDER:0,ROUNDED_RECT:1,RECT:2,CIRCLE:3,CLOUD:4,BANG:5,HEXAGON:6},jwe=class{constructor(){this.nodes=[],this.count=0,this.elements={},this.getLogger=this.getLogger.bind(this),this.nodeType=Fwe,this.clear(),this.getType=this.getType.bind(this),this.getMindmap=this.getMindmap.bind(this),this.getElementById=this.getElementById.bind(this),this.getParent=this.getParent.bind(this),this.getMindmap=this.getMindmap.bind(this),this.addNode=this.addNode.bind(this),this.decorateNode=this.decorateNode.bind(this)}static{mt(this,"MindmapDB")}clear(){this.nodes=[],this.count=0,this.elements={}}getParent(t){for(let e=this.nodes.length-1;0<=e;e--)if(this.nodes[e].level<t)return this.nodes[e];return null}getMindmap(){return 0<this.nodes.length?this.nodes[0]:null}addNode(e,t,i,n){I.info("addNode",e,t,i,n);let r=N(),s=r.mindmap?.padding??vi.mindmap.padding;switch(n){case this.nodeType.ROUNDED_RECT:case this.nodeType.RECT:case this.nodeType.HEXAGON:s*=2}t={id:this.count++,nodeId:Pc(t,r),level:e,descr:Pc(i,r),type:n,children:[],width:r.mindmap?.maxNodeWidth??vi.mindmap.maxNodeWidth,padding:s},i=this.getParent(e);if(i)i.children.push(t);else if(0!==this.nodes.length)throw new Error(`There can be only one root. No parent could be found for ("${t.descr}")`);this.nodes.push(t)}getType(e,t){switch(I.debug("In get type",e,t),e){case"[":return this.nodeType.RECT;case"(":return")"===t?this.nodeType.ROUNDED_RECT:this.nodeType.CLOUD;case"((":return this.nodeType.CIRCLE;case")":return this.nodeType.CLOUD;case"))":return this.nodeType.BANG;case"{{":return this.nodeType.HEXAGON;default:return this.nodeType.DEFAULT}}setElementForId(e,t){this.elements[e]=t}getElementById(e){return this.elements[e]}decorateNode(e){var t,i;e&&(t=N(),i=this.nodes[this.nodes.length-1],e.icon&&(i.icon=Pc(e.icon,t)),e.class)&&(i.class=Pc(e.class,t))}type2Str(e){switch(e){case this.nodeType.DEFAULT:return"no-border";case this.nodeType.RECT:return"rect";case this.nodeType.ROUNDED_RECT:return"rounded-rect";case this.nodeType.CIRCLE:return"circle";case this.nodeType.CLOUD:return"cloud";case this.nodeType.BANG:return"bang";case this.nodeType.HEXAGON:return"hexgon";default:return"no-border"}}getLogger(){return I}}});function qwe(e){return(qwe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Wwe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Vwe(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Gwe(e,t,i){return t&&Vwe(e.prototype,t),i&&Vwe(e,i),Object.defineProperty(e,"prototype",{writable:!1}),e}function Ywe(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function Xwe(e,t){return Qwe(e)||e6e(e,t)||t6e(e,t)||r6e()}function Kwe(e){return Zwe(e)||Jwe(e)||t6e(e)||n6e()}function Zwe(e){if(Array.isArray(e))return i6e(e)}function Qwe(e){if(Array.isArray(e))return e}function Jwe(e){if(typeof Symbol<"u"&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function e6e(e,t){var i=null==e?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var n,r,s=[],a=!0,o=!1;try{for(i=i.call(e);!(a=(n=i.next()).done)&&(s.push(n.value),!t||s.length!==t);a=!0);}catch(e){o=!0,r=e}finally{try{a||null==i.return||i.return()}finally{if(o)throw r}}return s}}function t6e(e,t){var i;if(e)return"string"==typeof e?i6e(e,t):"Map"===(i="Object"===(i=Object.prototype.toString.call(e).slice(8,-1))&&e.constructor?e.constructor.name:i)||"Set"===i?Array.from(e):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?i6e(e,t):void 0}function i6e(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,n=new Array(t);i<t;i++)n[i]=e[i];return n}function n6e(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function r6e(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function s6e(e,t){var i,n,r,s,a=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(a)return n=!(i=!0),{s:mt(function(){a=a.call(e)},"s"),n:mt(function(){var e=a.next();return i=e.done,e},"n"),e:mt(function(e){n=!0,r=e},"e"),f:mt(function(){try{i||null==a.return||a.return()}finally{if(n)throw r}},"f")};if(Array.isArray(e)||(a=t6e(e))||t&&e&&"number"==typeof e.length)return a&&(e=a),s=0,{s:t=mt(function(){},"F"),n:mt(function(){return s>=e.length?{done:!0}:{done:!1,value:e[s++]}},"n"),e:mt(function(e){throw e},"e"),f:t};throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function a6e(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function o6e(e,t){return e(t={exports:{}},t.exports),t.exports}function l6e(e){for(var t=e.length;t--&&Pke.test(e.charAt(t)););return t}function c6e(e){return e&&e.slice(0,Bke(e)+1).replace(Fke,"")}function h6e(e){var t=zke.call(e,Uke),i=e[Uke];try{var n=!(e[Uke]=void 0)}catch{}var r=Hke.call(e);return n&&(t?e[Uke]=i:delete e[Uke]),r}function u6e(e){return Wke.call(e)}function d6e(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":(Gke&&Gke in Object(e)?qke:Vke)(e)}function p6e(e){return null!=e&&"object"==typeof e}function g6e(e){return"symbol"==typeof e||Xke(e)&&"[object Symbol]"==Yke(e)}function f6e(e){if("number"==typeof e)return e;if(Kke(e))return Zke;if(Ike(e)&&(t="function"==typeof e.valueOf?e.valueOf():e,e=Ike(t)?t+"":t),"string"!=typeof e)return 0===e?e:+e;e=jke(e);var t=Jke.test(e);return t||eTe.test(e)?tTe(e.slice(2),t?2:8):Qke.test(e)?Zke:+e}function m6e(n,i,e){var r,s,a,o,l,c,h=0,t=!1,u=!1,d=!0;if("function"!=typeof n)throw new TypeError("Expected a function");function p(e){var t=r,i=s;return r=s=void 0,h=e,o=n.apply(i,t)}function g(e){return h=e,l=setTimeout(y,i),t?p(e):o}function f(e){var t=i-(e-c);return u?rTe(t,a-(e-h)):t}function m(e){var t=e-c;return void 0===c||i<=t||t<0||u&&a<=e-h}function y(){var e=Oke();if(m(e))return b(e);l=setTimeout(y,f(e))}function b(e){return l=void 0,d&&r?p(e):(r=s=void 0,o)}function v(){void 0!==l&&clearTimeout(l),r=c=s=l=void(h=0)}function x(){return void 0===l?o:b(Oke())}function w(){var e=Oke(),t=m(e);if(r=arguments,s=this,c=e,t){if(void 0===l)return g(c);if(u)return clearTimeout(l),l=setTimeout(y,i),p(c)}return void 0===l&&(l=setTimeout(y,i)),o}return i=iTe(i)||0,Ike(e)&&(t=!!e.leading,u="maxWait"in e,a=u?nTe(iTe(e.maxWait)||0,i):a,d="trailing"in e?!!e.trailing:d),mt(p,"invokeFunc"),mt(g,"leadingEdge"),mt(f,"remainingWait"),mt(m,"shouldInvoke"),mt(y,"timerExpired"),mt(b,"trailingEdge"),mt(v,"cancel"),mt(x,"flush"),mt(w,"debounced"),w.cancel=v,w.flush=x,w}function y6e(e,t,i,n,r,s){var a=J7e(e)?e:L_e[e]||L_e.euclidean;return 0===t&&J7e(e)?a(r,s):a(t,i,n,r,s)}function b6e(e,t){var i;return!mCe(e)&&(!("number"!=(i=typeof e)&&"symbol"!=i&&"boolean"!=i&&null!=e&&!Kke(e))||bCe.test(e)||!yCe.test(e)||null!=t&&e in Object(t))}function v6e(e){return!!Ike(e)&&("[object Function]"==(e=Yke(e))||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e)}function x6e(e){return!!wCe&&wCe in e}function w6e(e){if(null!=e){try{return TCe.call(e)}catch{}try{return e+""}catch{}}return""}function k6e(e){return!(!Ike(e)||kCe(e))&&(xCe(e)?CCe:_Ce).test(SCe(e))}function T6e(e,t){return e?.[t]}function S6e(e,t){e=ECe(e,t);return ACe(e)?e:void 0}function _6e(){this.__data__=LCe?LCe(null):{},this.size=0}function C6e(e){e=this.has(e)&&delete this.__data__[e];return this.size-=e?1:0,e}function A6e(e){var t,i=this.__data__;return LCe?"__lodash_hash_undefined__"===(t=i[e])?void 0:t:RCe.call(i,e)?i[e]:void 0}function E6e(e){var t=this.__data__;return LCe?void 0!==t[e]:MCe.call(t,e)}function $6e(e,t){var i=this.__data__;return this.size+=this.has(e)?0:1,i[e]=LCe&&void 0===t?"__lodash_hash_undefined__":t,this}function L6e(e){var t=-1,i=null==e?0:e.length;for(this.clear();++t<i;){var n=e[t];this.set(n[0],n[1])}}function R6e(){this.__data__=[],this.size=0}function M6e(e,t){return e===t||e!=e&&t!=t}function I6e(e,t){for(var i=e.length;i--;)if(NCe(e[i][0],t))return i;return-1}function N6e(e){var t=this.__data__,e=DCe(t,e);return!(e<0||(e==t.length-1?t.pop():OCe.call(t,e,1),--this.size,0))}function D6e(e){var t=this.__data__,e=DCe(t,e);return e<0?void 0:t[e][1]}function O6e(e){return-1<DCe(this.__data__,e)}function P6e(e,t){var i=this.__data__,n=DCe(i,e);return n<0?(++this.size,i.push([e,t])):i[n][1]=t,this}function B6e(e){var t=-1,i=null==e?0:e.length;for(this.clear();++t<i;){var n=e[t];this.set(n[0],n[1])}}function F6e(){this.size=0,this.__data__={hash:new ICe,map:new(BCe||PCe),string:new ICe}}function j6e(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}function z6e(e,t){e=e.__data__;return FCe(t)?e["string"==typeof t?"string":"hash"]:e.map}function H6e(e){e=jCe(this,e).delete(e);return this.size-=e?1:0,e}function U6e(e){return jCe(this,e).get(e)}function q6e(e){return jCe(this,e).has(e)}function W6e(e,t){var i=jCe(this,e),n=i.size;return i.set(e,t),this.size+=i.size==n?0:1,this}function V6e(e){var t=-1,i=null==e?0:e.length;for(this.clear();++t<i;){var n=e[t];this.set(n[0],n[1])}}function G6e(n,r){if("function"!=typeof n||null!=r&&"function"!=typeof r)throw new TypeError(HCe);var s=mt(function(){var e=arguments,t=r?r.apply(this,e):e[0],i=s.cache;return i.has(t)?i.get(t):(e=n.apply(this,e),s.cache=i.set(t,e)||i,e)},"memoized");return s.cache=new(G6e.Cache||zCe),s}function Y6e(e){var e=UCe(e,function(e){return 500===t.size&&t.clear(),e}),t=e.cache;return e}function X6e(e,t){for(var i=-1,n=null==e?0:e.length,r=Array(n);++i<n;)r[i]=t(e[i],i,e);return r}function K6e(e){var t;return"string"==typeof e?e:mCe(e)?GCe(e,K6e)+"":Kke(e)?XCe?XCe.call(e):"":"0"==(t=e+"")&&1/e==-YCe?"-0":t}function Z6e(e){return null==e?"":KCe(e)}function Q6e(e,t){return mCe(e)?e:vCe(e,t)?[e]:VCe(ZCe(e))}function J6e(e){var t;return"string"==typeof e||Kke(e)?e:"0"==(t=e+"")&&1/e==-1/0?"-0":t}function e8e(e,t){for(var i=0,n=(t=QCe(t,e)).length;null!=e&&i<n;)e=e[JCe(t[i++])];return i&&i==n?e:void 0}function t8e(e,t,i){e=null==e?void 0:eAe(e,t);return void 0===e?i:e}function i8e(e,t,i){"__proto__"==t&&iAe?iAe(e,t,{configurable:!0,enumerable:!0,value:i,writable:!0}):e[t]=i}function n8e(e,t,i){var n=e[t];rAe.call(e,t)&&NCe(n,i)&&(void 0!==i||t in e)||nAe(e,t,i)}function r8e(e,t){var i=typeof e;return!!(t=t??9007199254740991)&&("number"==i||"symbol"!=i&&aAe.test(e))&&-1<e&&e%1==0&&e<t}function s8e(e,t,i,n){if(Ike(e))for(var r=-1,s=(t=QCe(t,e)).length,a=s-1,o=e;null!=o&&++r<s;){var l,c=JCe(t[r]),h=i;if("__proto__"===c||"constructor"===c||"prototype"===c)return e;r!=a&&(l=o[c],void 0===(h=n?n(l,c,o):void 0))&&(h=Ike(l)?l:oAe(t[r+1])?[]:{}),sAe(o,c,h),o=o[c]}return e}function a8e(e,t,i){return null==e?e:lAe(e,t,i)}function o8e(e,t){var i=-1,n=e.length;for(t=t||Array(n);++i<n;)t[i]=e[i];return t}function l8e(e){return mCe(e)?GCe(e,JCe):Kke(e)?[e]:hAe(VCe(ZCe(e)))}function c8e(e,t,i,n){for(var r=[],s=new WTe,a=e.cy().hasCompoundNodes(),o=0;o<e.length;o++){var l=e[o];i?r.push(l):a&&n(r,s,l)}for(;0<r.length;){var c=r.shift();t(c),s.add(c.id()),a&&n(r,s,c)}return e}function h8e(e,t,i){if(i.isParent())for(var n=i._private.children,r=0;r<n.length;r++){var s=n[r];t.has(s.id())||e.push(s)}}function u8e(e,t,i){i.isChild()&&(i=i._private.parent,t.has(i.id())||e.push(i))}function d8e(e,t,i){u8e(e,t,i),h8e(e,t,i)}function p8e(a){return function(e){if(void 0===e&&(e=!0),0!==this.length&&this.isNode()&&!this.removed()){for(var t=0,i=this[0],n=i._private.edges,r=0;r<n.length;r++){var s=n[r];!e&&s.isLoop()||(t+=a(i,s))}return t}}}function g8e(s,a){return function(e){for(var t,i=this.nodes(),n=0;n<i.length;n++){var r=i[n][s](e);void 0===r||void 0!==t&&!a(r,t)||(t=r)}return t}}function f8e(){return!1}function m8e(){return!0}function y8e(){for(var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:n9e,t=1<arguments.length?arguments[1]:void 0,i=0;i<i9e.length;i++){var n=i9e[i];this[n]=e[n]||t9e[n]}this.context=t||this.context,this.listeners=[],this.emitting=0}function b8e(e,t,i){var n,r=i._private,r=r.styleCache=r.styleCache||[];return n=null==(n=r[e])?r[e]=t(i):n}function v8e(t,i){return t=bTe(t),mt(function(e){return b8e(t,i,e)},"cachedStyleFunction")}function x8e(t,i){t=bTe(t);var n=mt(function(e){return i.call(e)},"selfFn");return mt(function(){var e=this[0];if(e)return b8e(t,n,e)},"cachedPrototypeStyleFunction")}function w8e(e,t){var i=e._private.data.parent?e.parents():null;if(i)for(var n=0;n<i.length;n++)if(!t(i[n]))return!1;return!0}function k8e(e){var n=e.ok,r=e.edgeOkViaNode||e.ok,s=e.parentOk||e.ok;return function(){var e,t,i=this.cy();return!i.styleEnabled()||(e=this[0],i=i.hasCompoundNodes(),e?(t=e._private,!!n(e)&&(e.isNode()?!i||w8e(e,s):(e=t.source,t=t.target,r(e)&&(!i||w8e(e,r))&&(e===t||r(t)&&(!i||w8e(t,r)))))):void 0)}}function T8e(l){return function(){var e=arguments,t=[];if(2===e.length)this.on(l.event,e[0],e[1]);else if(1===e.length&&J7e(e[0]))this.on(l.event,e[0]);else if(0===e.length||1===e.length&&eke(e[0])){for(var e=1===e.length?e[0]:null,i=0;i<this.length;i++){var n=this[i],r=!l.ableField||n._private[l.ableField],s=n._private[l.field]!=l.value;if(l.overrideAble){var a=l.overrideAble(n);if(void 0!==a&&!(r=a))return this}r&&(n._private[l.field]=l.value,s)&&t.push(n)}var o=this.spawn(t);o.updateStyle(),o.emit(l.event),e&&o.emit(e)}return this}}function S8e(i){p9e[i.field]=function(){var e=this[0];if(e){if(i.overrideField){var t=i.overrideField(e);if(void 0!==t)return t}return e._private[i.field]}},p9e[i.on]=T8e({event:i.on,field:i.field,ableField:i.ableField,overrideAble:i.overrideAble,value:!0}),p9e[i.off]=T8e({event:i.off,field:i.field,ableField:i.ableField,overrideAble:i.overrideAble,value:!1})}function _8e(r){return mt(function(e){for(var t=[],i=0;i<this.length;i++){var n=this[i]._private[r.attr];n&&t.push(n)}return this.spawn(t,!0).filter(e)},"sourceImpl")}function C8e(h){return mt(function(e){var t=[],i=this._private.cy,n=h||{};Q7e(e)&&(e=i.$(e));for(var r=0;r<e.length;r++)for(var s=e[r]._private.edges,a=0;a<s.length;a++){var o=s[a],l=o._private.data,c=this.hasElementWithId(l.source)&&e.hasElementWithId(l.target),l=e.hasElementWithId(l.source)&&this.hasElementWithId(l.target);!(c||l)||(n.thisIsSrc||n.thisIsTgt)&&(n.thisIsSrc&&!c||n.thisIsTgt&&!l)||t.push(o)}return this.spawn(t,!0)},"edgesWithImpl")}function A8e(f){return f=Ske({},{codirected:!1},f),mt(function(e){for(var t=[],i=this.edges(),n=f,r=0;r<i.length;r++)for(var s=i[r]._private,a=s.source,o=a._private.data.id,l=s.data.target,c=a._private.edges,h=0;h<c.length;h++){var u=c[h],d=u._private.data,p=d.target,d=d.source,g=p===l&&d===o;(n.codirected&&g||!n.codirected&&(g||o===p&&l===d))&&t.push(u)}return this.spawn(t,!0).filter(e)},"parallelEdgesImpl")}function E8e(a,t,o,i){var e=typeof Float32Array<"u";if(4!==arguments.length)return!1;for(var n=0;n<4;++n)if("number"!=typeof arguments[n]||isNaN(arguments[n])||!isFinite(arguments[n]))return!1;a=Math.min(a,1),o=Math.min(o,1),a=Math.max(a,0),o=Math.max(o,0);var s=new(e?Float32Array:Array)(11);function r(e,t){return 1-3*t+3*e}function l(e,t){return 3*t-6*e}function c(e){return 3*e}function h(e,t,i){return((r(t,i)*e+(3*i-6*t))*e+3*t)*e}function u(e,t,i){return 3*r(t,i)*e*e+2*(3*i-6*t)*e+3*t}function d(e,t){for(var i=0;i<4;++i){var n=u(t,a,o);if(0===n)return t;t-=(h(t,a,o)-e)/n}return t}function p(){for(var e=0;e<11;++e)s[e]=h(.1*e,a,o)}function g(e,t,i){for(var n,r,s=0;0<(n=h(r=t+(i-t)/2,a,o)-e)?i=r:t=r,1e-7<Math.abs(n)&&++s<10;);return r}function f(e){for(var t=0,i=1;10!==i&&s[i]<=e;++i)t+=.1;var n=t+.1*((e-s[--i])/(s[i+1]-s[i])),r=u(n,a,o);return.001<=r?d(e,n):0===r?n:g(e,t,t+.1)}mt(r,"A"),mt(l,"B"),mt(c,"C"),mt(h,"calcBezier"),mt(u,"getSlope"),mt(d,"newtonRaphsonIterate"),mt(p,"calcSampleValues"),mt(g,"binarySubdivide"),mt(f,"getTForX");var m=!1;function y(){m=!0,a===t&&o===i||p()}mt(y,"precompute");var e=mt(function(e){return m||y(),a===t&&o===i?e:0===e?0:1===e?1:h(f(e),t,i)},"f"),b=(e.getControlPoints=function(){return[{x:a,y:t},{x:o,y:i}]},"generateBezier("+[a,t,o,i]+")");return e.toString=function(){return b},e}function $8e(e,t,i,n,r){return 1===n||t===i?i:(r=r(t,i,n),null!=e&&((e.roundValue||e.color)&&(r=Math.round(r)),void 0!==e.min&&(r=Math.max(r,e.min)),void 0!==e.max)?Math.min(r,e.max):r)}function L8e(e,t){return null!=e.pfValue||null!=e.value?null==e.pfValue||null!=t&&"%"===t.type.units?e.value:e.pfValue:e}function R8e(e,t,i,n,r){var s=null!=r?r.type:null,a=(i<0?i=0:1<i&&(i=1),L8e(e,r)),o=L8e(t,r);if(se(a)&&se(o))return $8e(s,a,o,i,n);if(eke(a)&&eke(o)){for(var l=[],c=0;c<o.length;c++){var h=a[c],u=o[c];null!=h&&null!=u?(h=$8e(s,h,u,i,n),l.push(h)):l.push(u)}return l}}function M8e(e,t,i,n){var r=!n,s=e._private,a=t._private,t=a.easing,o=a.startTime,l=(n?e:e.cy()).style(),c=(a.easingImpl||(null==t?a.easingImpl=y9e.linear:(t=Q7e(t)?l.parse("transition-timing-function",t).value:t,0<(t=Q7e(t)?(u=t,[]):(u=t[1],t.slice(2).map(function(e){return+e}))).length?("spring"===u&&t.push(a.duration),a.easingImpl=y9e[u].apply(null,t)):a.easingImpl=y9e[u])),a.easingImpl),h=0===a.duration?1:(i-o)/a.duration;if((h=a.applying?a.progress:h)<0?h=0:1<h&&(h=1),null==a.delay){var t=a.startPosition,u=a.position,o=(u&&r&&!e.locked()&&(i={},I8e(t.x,u.x)&&(i.x=R8e(t.x,u.x,h,c)),I8e(t.y,u.y)&&(i.y=R8e(t.y,u.y,h,c)),e.position(i)),a.startPan),t=a.pan,u=s.pan,i=null!=t&&n,u=(i&&(I8e(o.x,t.x)&&(u.x=R8e(o.x,t.x,h,c)),I8e(o.y,t.y)&&(u.y=R8e(o.y,t.y,h,c)),e.emit("pan")),a.startZoom),o=a.zoom,t=null!=o&&n,d=(t&&(I8e(u,o)&&(s.zoom=vSe(s.minZoom,R8e(u,o,h,c),s.maxZoom)),e.emit("zoom")),(i||t)&&e.emit("viewport"),a.style);if(d&&0<d.length&&r){for(var p=0;p<d.length;p++){var g=d[p],f=g.name,m=a.startStyle[f],g=R8e(m,g,h,c,l.properties[m.name]);l.overrideBypass(e,f,g)}e.emit("style")}}return a.progress=h}function I8e(e,t){return!!(null!=e&&null!=t&&(se(e)&&se(t)||e&&t))}function N8e(e,t,i,n){t=t._private;t.started=!0,t.startTime=i-t.progress*t.duration}function D8e(h,e){var t=e._private.aniEles,u=[];function i(e,t){var i,n=e._private,r=n.animation.current,n=n.animation.queue,s=!1;0===r.length&&(i=n.shift())&&r.push(i);for(var a=mt(function(e){for(var t=e.length-1;0<=t;t--)(0,e[t])();e.splice(0,e.length)},"callbacks"),o=r.length-1;0<=o;o--){var l=r[o],c=l._private;c.stopped?(r.splice(o,1),c.hooked=!1,c.playing=!1,c.started=!1,a(c.frames)):(c.playing||c.applying)&&(c.playing&&c.applying&&(c.applying=!1),c.started||N8e(0,l,h),M8e(e,l,h,t),c.applying&&(c.applying=!1),a(c.frames),null!=c.step&&c.step(h),l.completed()&&(r.splice(o,1),c.hooked=!1,c.playing=!1,c.started=!1,a(c.completes)),s=!0)}return t||0!==r.length||0!==n.length||u.push(e),s}mt(i,"stepOne");for(var n=!1,r=0;r<t.length;r++)var s=i(t[r]),n=n||s;var a=i(e,!0);(n||a)&&(0<t.length?e.notify("draw",t):e.notify("draw")),t.unmerge(u),e.emit("step")}function O8e(e){this.options=Ske({},C9e,A9e,e)}function P8e(e){this.options=Ske({},L9e,e)}function B8e(e){this.options=Ske({},R9e,e)}function F8e(e){this.options=Ske({},I9e,e);var r=(this.options.layout=this).options.eles.nodes(),e=this.options.eles.edges().filter(function(e){var t=e.source().data("id"),i=e.target().data("id"),e=r.some(function(e){return e.data("id")===t}),n=r.some(function(e){return e.data("id")===i});return!e||!n});this.options.eles=this.options.eles.not(e)}function j8e(e){this.options=Ske({},J9e,e)}function z8e(e){this.options=Ske({},eEe,e)}function H8e(e){this.options=Ske({},tEe,e)}function U8e(e){this.options=Ske({},iEe,e)}function q8e(e){this.options=e,this.notifications=0}function W8e(e,t){0===t.radius?e.lineTo(t.cx,t.cy):e.arc(t.cx,t.cy,t.radius,t.startAngle,t.endAngle,t.counterClockwise)}function V8e(e,t,i,n){return 0===n||0===t.radius?{cx:t.x,cy:t.y,radius:0,startX:t.x,startY:t.y,stopX:t.x,stopY:t.y,startAngle:void 0,endAngle:void 0,counterClockwise:void 0}:(kEe(e,t,i,n,!(4<arguments.length&&void 0!==arguments[4])||arguments[4]),{cx:rEe,cy:sEe,radius:uEe,startX:fEe,startY:mEe,stopX:yEe,stopY:bEe,startAngle:aEe.ang+Math.PI/2*lEe,endAngle:oEe.ang-Math.PI/2*lEe,counterClockwise:cEe})}function G8e(e){var t=[];if(null!=e){for(var i=0;i<e.length;i+=2){var n=e[i],r=e[i+1];t.push({x:n,y:r})}return t}}function Y8e(e,t,i){for(var n=mt(function(e,t,i,n){return mSe(e,t,i,n)},"qbezierAt$1"),r=t._private.rstyle.bezierPts,s=0;s<e.bezierProjPcts.length;s++){var a=e.bezierProjPcts[s];r.push({x:n(i[0],i[2],i[4],a),y:n(i[1],i[3],i[5],a)})}}function X8e(e,t){for(var i=0;i<t.length;i++){var n=t[i];e.lineTo(n.x,n.y)}}function K8e(e,t,i){for(var n,r=0;r<t.length;r++){var s=t[r];0===r&&(n=s),e.lineTo(s.x,s.y)}e.quadraticCurveTo(i.x,i.y,n.x,n.y)}function Z8e(e,t,i){e.beginPath&&e.beginPath();for(var n=t,r=0;r<n.length;r++){var s=n[r];e.lineTo(s.x,s.y)}var a=i,t=i[0];e.moveTo(t.x,t.y);for(r=1;r<a.length;r++){s=a[r];e.lineTo(s.x,s.y)}e.closePath&&e.closePath()}function Q8e(e,t,i,n,r){e.beginPath&&e.beginPath(),e.arc(i,n,r,0,2*Math.PI,!1);var s=t,i=s[0];e.moveTo(i.x,i.y);for(var a=0;a<s.length;a++){var o=s[a];e.lineTo(o.x,o.y)}e.closePath&&e.closePath()}function J8e(e,t,i,n){e.arc(t,i,n,0,2*Math.PI,!1)}function e7e(e,t,i,n,r){var s=5<arguments.length&&void 0!==arguments[5]?arguments[5]:5,a=6<arguments.length?arguments[6]:void 0;e.beginPath(),e.moveTo(t+s,i),e.lineTo(t+n-s,i),e.quadraticCurveTo(t+n,i,t+n,i+s),e.lineTo(t+n,i+r-s),e.quadraticCurveTo(t+n,i+r,t+n-s,i+r),e.lineTo(t+s,i+r),e.quadraticCurveTo(t,i+r,t,i+r-s),e.lineTo(t,i+s),e.quadraticCurveTo(t,i,t+s,i),e.closePath(),a?e.stroke():e.fill()}function t7e(e,t,i){t=e.createShader(t);if(e.shaderSource(t,i),e.compileShader(t),e.getShaderParameter(t,e.COMPILE_STATUS))return t;throw new Error(e.getShaderInfoLog(t))}function i7e(e,t,i){var t=t7e(e,e.VERTEX_SHADER,t),i=t7e(e,e.FRAGMENT_SHADER,i),n=e.createProgram();if(e.attachShader(n,t),e.attachShader(n,i),e.linkProgram(n),e.getProgramParameter(n,e.LINK_STATUS))return n;throw new Error("Could not initialize shaders")}function n7e(e,t,i){var n=e.makeOffscreenCanvas(t,i=void 0===i?t:i),r=n.context=n.getContext("2d");return n.clear=function(){return r.clearRect(0,0,n.width,n.height)},n.clear(),n}function r7e(e){var t=e.pixelRatio,i=e.cy.zoom(),e=e.cy.pan();return{zoom:i*t,pan:{x:e.x*t,y:e.y*t}}}function s7e(e,t,i,n,r){n=n*i+t.x,r=r*i+t.y;return[n,Math.round(e.canvasHeight-r)]}function a7e(e,t,i){var n=e[0]/255,r=e[1]/255,e=e[2]/255,i=i||new Array(4);return i[0]=n*t,i[1]=r*t,i[2]=e*t,i[3]=t,i}function o7e(e,t){t=t||new Array(4);return t[0]=(e>>0&255)/255,t[1]=(e>>8&255)/255,t[2]=(e>>16&255)/255,t[3]=(e>>24&255)/255,t}function l7e(e){return e[0]+(e[1]<<8)+(e[2]<<16)+(e[3]<<24)}function c7e(t,e){var i=t.createTexture();return i.buffer=function(e){t.bindTexture(t.TEXTURE_2D,i),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_WRAP_S,t.CLAMP_TO_EDGE),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_WRAP_T,t.CLAMP_TO_EDGE),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MAG_FILTER,t.LINEAR),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MIN_FILTER,t.LINEAR_MIPMAP_NEAREST),t.pixelStorei(t.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!0),t.texImage2D(t.TEXTURE_2D,0,t.RGBA,t.RGBA,t.UNSIGNED_BYTE,e),t.generateMipmap(t.TEXTURE_2D),t.bindTexture(t.TEXTURE_2D,null)},i.deleteTexture=function(){t.deleteTexture(i)},i}function h7e(e,t){switch(t){case"float":return[1,e.FLOAT,4];case"vec2":return[2,e.FLOAT,4];case"vec3":return[3,e.FLOAT,4];case"vec4":return[4,e.FLOAT,4];case"int":return[1,e.INT,4];case"ivec2":return[2,e.INT,4]}}function u7e(e,t,i){switch(t){case e.FLOAT:return new Float32Array(i);case e.INT:return new Int32Array(i)}}function d7e(e,t,i,n,r,s){switch(t){case e.FLOAT:return new Float32Array(i.buffer,s*n,r);case e.INT:return new Int32Array(i.buffer,s*n,r)}}function p7e(e,t,i,n){var t=Xwe(h7e(e,t),2),r=t[0],t=t[1],n=u7e(e,t,n),s=e.createBuffer();return e.bindBuffer(e.ARRAY_BUFFER,s),e.bufferData(e.ARRAY_BUFFER,n,e.STATIC_DRAW),t===e.FLOAT?e.vertexAttribPointer(i,r,t,!1,0,0):t===e.INT&&e.vertexAttribIPointer(i,r,t,0,0),e.enableVertexAttribArray(i),e.bindBuffer(e.ARRAY_BUFFER,null),s}function g7e(t,e,i,n){var i=Xwe(h7e(t,i),3),r=i[0],s=i[1],i=i[2],a=u7e(t,s,e*r),o=r*i,l=t.createBuffer();t.bindBuffer(t.ARRAY_BUFFER,l),t.bufferData(t.ARRAY_BUFFER,e*o,t.DYNAMIC_DRAW),t.enableVertexAttribArray(n),s===t.FLOAT?t.vertexAttribPointer(n,r,s,!1,o,0):s===t.INT&&t.vertexAttribIPointer(n,r,s,o,0),t.vertexAttribDivisor(n,1),t.bindBuffer(t.ARRAY_BUFFER,null);for(var c=new Array(e),h=0;h<e;h++)c[h]=d7e(t,s,a,o,r,h);return l.dataArray=a,l.stride=o,l.size=r,l.getView=function(e){return c[e]},l.setPoint=function(e,t,i){e=c[e];e[0]=t,e[1]=i},l.bufferSubData=function(e){t.bindBuffer(t.ARRAY_BUFFER,l),e?t.bufferSubData(t.ARRAY_BUFFER,0,a,0,e*r):t.bufferSubData(t.ARRAY_BUFFER,0,a)},l}function f7e(i){var e=i.createFramebuffer(),n=(i.bindFramebuffer(i.FRAMEBUFFER,e),i.createTexture());return i.bindTexture(i.TEXTURE_2D,n),i.texParameteri(i.TEXTURE_2D,i.TEXTURE_MIN_FILTER,i.LINEAR),i.texParameteri(i.TEXTURE_2D,i.TEXTURE_WRAP_S,i.CLAMP_TO_EDGE),i.texParameteri(i.TEXTURE_2D,i.TEXTURE_WRAP_T,i.CLAMP_TO_EDGE),i.framebufferTexture2D(i.FRAMEBUFFER,i.COLOR_ATTACHMENT0,i.TEXTURE_2D,n,0),i.bindFramebuffer(i.FRAMEBUFFER,null),e.setFramebufferAttachmentSizes=function(e,t){i.bindTexture(i.TEXTURE_2D,n),i.texImage2D(i.TEXTURE_2D,0,i.RGBA,e,t,0,i.RGBA,i.UNSIGNED_BYTE,null)},e}function m7e(){var e=new t$e(9);return t$e!=Float32Array&&(e[1]=0,e[2]=0,e[3]=0,e[5]=0,e[6]=0,e[7]=0),e[0]=1,e[4]=1,e[8]=1,e}function y7e(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=1,e[5]=0,e[6]=0,e[7]=0,e[8]=1,e}function b7e(e,t,i){var n=t[0],r=t[1],s=t[2],a=t[3],o=t[4],l=t[5],c=t[6],h=t[7],t=t[8],u=i[0],d=i[1],p=i[2],g=i[3],f=i[4],m=i[5],y=i[6],b=i[7],i=i[8];return e[0]=u*n+d*a+p*c,e[1]=u*r+d*o+p*h,e[2]=u*s+d*l+p*t,e[3]=g*n+f*a+m*c,e[4]=g*r+f*o+m*h,e[5]=g*s+f*l+m*t,e[6]=y*n+b*a+i*c,e[7]=y*r+b*o+i*h,e[8]=y*s+b*l+i*t,e}function v7e(e,t,i){var n=t[0],r=t[1],s=t[2],a=t[3],o=t[4],l=t[5],c=t[6],h=t[7],t=t[8],u=i[0],i=i[1];return e[0]=n,e[1]=r,e[2]=s,e[3]=a,e[4]=o,e[5]=l,e[6]=u*n+i*a+c,e[7]=u*r+i*o+h,e[8]=u*s+i*l+t,e}function x7e(e,t,i){var n=t[0],r=t[1],s=t[2],a=t[3],o=t[4],l=t[5],c=t[6],h=t[7],t=t[8],u=Math.sin(i),i=Math.cos(i);return e[0]=i*n+u*a,e[1]=i*r+u*o,e[2]=i*s+u*l,e[3]=i*a-u*n,e[4]=i*o-u*r,e[5]=i*l-u*s,e[6]=c,e[7]=h,e[8]=t,e}function w7e(e,t,i){var n=i[0],i=i[1];return e[0]=n*t[0],e[1]=n*t[1],e[2]=n*t[2],e[3]=i*t[3],e[4]=i*t[4],e[5]=i*t[5],e[6]=t[6],e[7]=t[7],e[8]=t[8],e}function k7e(e,t,i){return e[0]=2/t,e[1]=0,e[2]=0,e[3]=0,e[4]=-2/i,e[5]=0,e[6]=-1,e[7]=1,e[8]=1,e}function T7e(e,t){return e.intersection?e.intersection(t):new Set(Kwe(e).filter(function(e){return t.has(e)}))}function S7e(e,t){return"rgba(".concat(e[0],", ").concat(e[1],", ").concat(e[2],", ").concat(t,")")}function _7e(e){e=e&&e.style&&e.style.backgroundColor||"white";return $ke(e)}function C7e(r){var i=r.render,t=(r.render=function(e){e=e||{};var t=r.cy;r.webgl&&(7.99<t.zoom()?(A7e(r),i.call(r,e)):(E7e(r),O7e(r,e,i$e.SCREEN)))},r.matchCanvasSize),e=(r.matchCanvasSize=function(e){t.call(r,e),r.pickingFrameBuffer.setFramebufferAttachmentSizes(r.canvasWidth,r.canvasHeight),r.pickingFrameBuffer.needsDraw=!0},r.findNearestElements=function(e,t,i,n){return D7e(r,e,t)},r.invalidateCachedZSortedEles),n=(r.invalidateCachedZSortedEles=function(){e.call(r),r.pickingFrameBuffer.needsDraw=!0},r.notify);r.notify=function(e,t){n.call(r,e,t),"viewport"===e||"bounds"===e?r.pickingFrameBuffer.needsDraw=!0:"background"===e&&r.eleDrawing.invalidate(t,{type:"node-body"})}}function A7e(e){e=e.data.contexts[e.WEBGL];e.clear(e.COLOR_BUFFER_BIT|e.DEPTH_BUFFER_BIT)}function E7e(t){var e=mt(function(e){e.save(),e.setTransform(1,0,0,1,0,0),e.clearRect(0,0,t.canvasWidth,t.canvasHeight),e.restore()},"clear");e(t.data.contexts[t.NODE]),e(t.data.contexts[t.DRAG])}function $7e(e){var t=e.canvasWidth,i=e.canvasHeight,e=r7e(e),n=e.pan,e=e.zoom,r=m7e(),n=(v7e(r,r,[n.x,n.y]),w7e(r,r,[e,e]),m7e()),e=(k7e(n,t,i),m7e());return b7e(e,n,r),e}function L7e(e,t){var i=e.canvasWidth,n=e.canvasHeight,e=r7e(e),r=e.pan,e=e.zoom;t.setTransform(1,0,0,1,0,0),t.clearRect(0,0,i,n),t.translate(r.x,r.y),t.scale(e,e)}function R7e(t,e){t.drawSelectionRectangle(e,function(e){return L7e(t,e)})}function M7e(e){var t=e.data.contexts[e.NODE];t.save(),L7e(e,t),t.strokeStyle="rgba(0, 0, 0, 0.3)",t.beginPath(),t.moveTo(-1e3,0),t.lineTo(1e3,0),t.stroke(),t.beginPath(),t.moveTo(0,-1e3),t.lineTo(0,1e3),t.stroke(),t.restore()}function I7e(u){var e=mt(function(e,t,i){for(var e=e.atlasManager.getRenderTypeOpts(t),n=u.data.contexts[u.NODE],r=e.atlasCollection.atlases,s=0;s<r.length;s++){var a=r[s].canvas,o=a.width,l=a.height,c=o*s,h=a.height*i;n.save(),n.scale(.125,.125),n.drawImage(a,c,h),n.strokeStyle="black",n.rect(c,h,o,l),n.stroke(),n.restore()}},"draw"),t=0;e(u.eleDrawing,"node-body",+t),e(u.eleDrawing,"node-label",1)}function N7e(e,t,i,n,r){var s,a,o,l=r7e(e),c=l.pan,l=l.zoom;if(r=void 0===n||void 0===r?(s=(a=Xwe(s7e(e,c,l,t,i),2))[0]-3,a=a[1]-3,o=6):(i=(t=Xwe(s7e(e,c,l,t,i),2))[0],t=t[1],l=(c=Xwe(s7e(e,c,l,n,r),2))[0],s=i,a=n=c[1],o=Math.abs(l-i),Math.abs(n-t)),0===o||0===r)return[];var c=e.data.contexts[e.WEBGL],h=(c.bindFramebuffer(c.FRAMEBUFFER,e.pickingFrameBuffer),e.pickingFrameBuffer.needsDraw&&(c.viewport(0,0,c.canvas.width,c.canvas.height),O7e(e,null,i$e.PICKING),e.pickingFrameBuffer.needsDraw=!1),o*r),u=new Uint8Array(4*h);c.readPixels(s,a,o,r,c.RGBA,c.UNSIGNED_BYTE,u),c.bindFramebuffer(c.FRAMEBUFFER,null);for(var d=new Set,p=0;p<h;p++){var g=l7e(u.slice(4*p,4*p+4))-1;0<=g&&d.add(g)}return d}function D7e(e,t,i){var n,r,s,t=N7e(e,t,i),a=e.getCachedZSortedEles(),o=s6e(t);try{for(o.s();!(s=o.n()).done;){var l=a[s.value];if(!n&&l.isNode()&&(n=l),!r&&l.isEdge()&&(r=l),n&&r)break}}catch(e){o.e(e)}finally{o.f()}return[n,r].filter(Boolean)}function O7e(e,t,i){e.webglDebug&&(r=[],n=performance.now());var n,r,s=e.eleDrawing,a=0;if(i.screen&&e.data.canvasNeedsRedraw[e.SELECT_BOX]&&R7e(e,t),e.data.canvasNeedsRedraw[e.NODE]||i.picking){var o=mt(function(e,t){t+=1,e.isNode()?(s.drawTexture(e,t,"node-underlay"),s.drawTexture(e,t,"node-body"),s.drawTexture(e,t,"node-label"),s.drawTexture(e,t,"node-overlay")):(s.drawEdgeLine(e,t),s.drawEdgeArrow(e,t,"source"),s.drawEdgeArrow(e,t,"target"),s.drawTexture(e,t,"edge-label"))},"draw"),t=e.data.contexts[e.WEBGL],t=(i.screen?(t.clearColor(0,0,0,0),t.enable(t.BLEND),t.blendFunc(t.ONE,t.ONE_MINUS_SRC_ALPHA)):t.disable(t.BLEND),t.clear(t.COLOR_BUFFER_BIT|t.DEPTH_BUFFER_BIT),t.viewport(0,0,t.canvas.width,t.canvas.height),$7e(e)),l=e.getCachedZSortedEles(),a=l.length;if(s.startFrame(t,r,i),i.screen){for(var c=0;c<l.nondrag.length;c++)o(l.nondrag[c],c);for(var h=0;h<l.drag.length;h++)o(l.drag[h],-1)}else if(i.picking)for(var u=0;u<l.length;u++)o(l[u],u);s.endFrame(),e.data.gc&&(console.log("Garbage Collect!"),e.data.gc=!1,s.gc()),i.screen&&e.webglDebugShowAtlases&&(M7e(e),I7e(e)),e.data.canvasNeedsRedraw[e.NODE]=!1,e.data.canvasNeedsRedraw[e.DRAG]=!1}if(e.webglDebug){var d,t=performance.now(),p=0,g=0,f=s6e(r);try{for(f.s();!(d=f.n()).done;){var m=d.value;p++,g+=m.count}}catch(e){f.e(e)}finally{f.f()}Math.ceil(t-n);e="".concat(a," elements, ").concat(g," rectangles, ").concat(p," batches");console.log("WebGL (".concat(i.name,") - ").concat(e))}}function P7e(e,t){for(var i=atob(e),e=new ArrayBuffer(i.length),n=new Uint8Array(e),r=0;r<i.length;r++)n[r]=i.charCodeAt(r);return new Blob([e],{type:t})}function B7e(e){var t=e.indexOf(",");return e.substr(t+1)}function F7e(e,n,r){var t=mt(function(){return n.toDataURL(r,e.quality)},"getB64Uri");switch(e.output){case"blob-promise":return new gCe(function(t,i){try{n.toBlob(function(e){null!=e?t(e):i(new Error("`canvas.toBlob()` sent a null value in its callback"))},r,e.quality)}catch(e){i(e)}});case"blob":return P7e(B7e(t()),r);case"base64":return B7e(t());default:return t()}}function j7e(e){var s=this,t=s.cy.window().document,i=(e.webgl&&(x$e.CANVAS_LAYERS=s.CANVAS_LAYERS=4,console.log("webgl rendering enabled")),s.data={canvases:new Array(x$e.CANVAS_LAYERS),contexts:new Array(x$e.CANVAS_LAYERS),canvasNeedsRedraw:new Array(x$e.CANVAS_LAYERS),bufferCanvases:new Array(x$e.BUFFER_COUNT),bufferContexts:new Array(x$e.CANVAS_LAYERS)},"-webkit-tap-highlight-color"),n="rgba(0,0,0,0)",r=(s.data.canvasContainer=t.createElement("div"),s.data.canvasContainer.style),r=(s.data.canvasContainer.style[i]=n,r.position="relative",r.zIndex="0",r.overflow="hidden",e.cy.container()),a=(r.appendChild(s.data.canvasContainer),r.style[i]=n,{"-webkit-user-select":"none","-moz-user-select":"-moz-none","user-select":"none","-webkit-tap-highlight-color":"rgba(0,0,0,0)","outline-style":"none"});fke()&&(a["-ms-touch-action"]="none",a["touch-action"]="none");for(var o=0;o<x$e.CANVAS_LAYERS;o++){var l=s.data.canvases[o]=t.createElement("canvas"),c=x$e.CANVAS_TYPES[o];s.data.contexts[o]=l.getContext(c),s.data.contexts[o]||$Te("Could not create canvas of type "+c),Object.keys(a).forEach(function(e){l.style[e]=a[e]}),l.style.position="absolute",l.setAttribute("data-id","layer"+o),l.style.zIndex=String(x$e.CANVAS_LAYERS-o),s.data.canvasContainer.appendChild(l),s.data.canvasNeedsRedraw[o]=!1}s.data.topCanvas=s.data.canvases[0],s.data.canvases[x$e.NODE].setAttribute("data-id","layer"+x$e.NODE+"-node"),s.data.canvases[x$e.SELECT_BOX].setAttribute("data-id","layer"+x$e.SELECT_BOX+"-selectbox"),s.data.canvases[x$e.DRAG].setAttribute("data-id","layer"+x$e.DRAG+"-drag"),s.data.canvases[x$e.WEBGL]&&s.data.canvases[x$e.WEBGL].setAttribute("data-id","layer"+x$e.WEBGL+"-webgl");for(o=0;o<x$e.BUFFER_COUNT;o++)s.data.bufferCanvases[o]=t.createElement("canvas"),s.data.bufferContexts[o]=s.data.bufferCanvases[o].getContext("2d"),s.data.bufferCanvases[o].style.position="absolute",s.data.bufferCanvases[o].setAttribute("data-id","buffer"+o),s.data.bufferCanvases[o].style.zIndex=String(-o-1),s.data.bufferCanvases[o].style.visibility="hidden";s.pathsEnabled=!0;var h=xSe(),u=mt(function(e){return{x:(e.x1+e.x2)/2,y:(e.y1+e.y2)/2}},"getBoxCenter"),d=mt(function(e){return{x:-e.w/2,y:-e.h/2}},"getCenterOffset"),r=mt(function(e){e=e[0]._private;return!(e.oldBackgroundTimestamp===e.backgroundTimestamp)},"backgroundTimestampHasChanged"),i=mt(function(e){return e[0]._private.nodeKey},"getStyleKey"),n=mt(function(e){return e[0]._private.labelStyleKey},"getLabelKey"),p=mt(function(e){return e[0]._private.sourceLabelStyleKey},"getSourceLabelKey"),g=mt(function(e){return e[0]._private.targetLabelStyleKey},"getTargetLabelKey"),f=mt(function(e,t,i,n,r){return s.drawElement(e,t,i,!1,!1,r)},"drawElement"),m=mt(function(e,t,i,n,r){return s.drawElementText(e,t,i,n,"main",r)},"drawLabel"),y=mt(function(e,t,i,n,r){return s.drawElementText(e,t,i,n,"source",r)},"drawSourceLabel"),b=mt(function(e,t,i,n,r){return s.drawElementText(e,t,i,n,"target",r)},"drawTargetLabel"),v=mt(function(e){return e.boundingBox(),e[0]._private.bodyBounds},"getElementBox"),x=mt(function(e){return e.boundingBox(),e[0]._private.labelBounds.main||h},"getLabelBox"),w=mt(function(e){return e.boundingBox(),e[0]._private.labelBounds.source||h},"getSourceLabelBox"),k=mt(function(e){return e.boundingBox(),e[0]._private.labelBounds.target||h},"getTargetLabelBox"),T=mt(function(e,t){return t},"isLabelVisibleAtScale"),S=mt(function(e){return u(v(e))},"getElementRotationPoint"),_=mt(function(e,t,i){e=e?e+"-":"";return{x:t.x+i.pstyle(e+"text-margin-x").pfValue,y:t.y+i.pstyle(e+"text-margin-y").pfValue}},"addTextMargin"),C=mt(function(e,t,i){e=e[0]._private.rscratch;return{x:e[t],y:e[i]}},"getRsPt"),A=mt(function(e){return _("",C(e,"labelX","labelY"),e)},"getLabelRotationPoint"),E=mt(function(e){return _("source",C(e,"sourceLabelX","sourceLabelY"),e)},"getSourceLabelRotationPoint"),O=mt(function(e){return _("target",C(e,"targetLabelX","targetLabelY"),e)},"getTargetLabelRotationPoint"),$=mt(function(e){return d(v(e))},"getElementRotationOffset"),P=mt(function(e){return d(w(e))},"getSourceLabelRotationOffset"),B=mt(function(e){return d(k(e))},"getTargetLabelRotationOffset"),L=mt(function(e){var t=x(e),i=d(x(e));if(e.isNode()){switch(e.pstyle("text-halign").value){case"left":i.x=-t.w-(t.leftPad||0);break;case"right":i.x=-(t.rightPad||0)}switch(e.pstyle("text-valign").value){case"top":i.y=-t.h-(t.topPad||0);break;case"bottom":i.y=-(t.botPad||0)}}return i},"getLabelRotationOffset"),R=s.data.eleTxrCache=new NEe(s,{getKey:i,doesEleInvalidateKey:r,drawElement:f,getBoundingBox:v,getRotationPoint:S,getRotationOffset:$,allowEdgeTxrCaching:!1,allowParentTxrCaching:!1}),M=s.data.lblTxrCache=new NEe(s,{getKey:n,drawElement:m,getBoundingBox:x,getRotationPoint:A,getRotationOffset:L,isVisible:T}),I=s.data.slbTxrCache=new NEe(s,{getKey:p,drawElement:y,getBoundingBox:w,getRotationPoint:E,getRotationOffset:P,isVisible:T}),N=s.data.tlbTxrCache=new NEe(s,{getKey:g,drawElement:b,getBoundingBox:k,getRotationPoint:O,getRotationOffset:B,isVisible:T}),D=s.data.lyrTxrCache=new DEe(s),r=(s.onUpdateEleCalcs(mt(function(e,t){R.invalidateElements(t),M.invalidateElements(t),I.invalidateElements(t),N.invalidateElements(t),D.invalidateElements(t);for(var i=0;i<t.length;i++){var n=t[i]._private;n.oldBackgroundTimestamp=n.backgroundTimestamp}},"invalidateTextureCaches")),mt(function(e){for(var t=0;t<e.length;t++)D.enqueueElementRefinement(e[t].ele)},"refineInLayers"));R.onDequeue(r),M.onDequeue(r),I.onDequeue(r),N.onDequeue(r),e.webgl&&s.initWebgl(e,{getStyleKey:i,getLabelKey:n,drawElement:f,drawLabel:m,getElementBox:v,getLabelBox:x,getElementRotationPoint:S,getElementRotationOffset:$,getLabelRotationPoint:A,getLabelRotationOffset:L})}function z7e(t,i,n){var e=n,r=mt(function(e){RTe("Can not register `"+i+"` for `"+t+"` since `"+e+"` already exists in the prototype and can not be overridden")},"overrideErr");if("core"===t){if(S9e.prototype[i])return r(i);S9e.prototype[i]=n}else if("collection"===t){if(g9e.prototype[i])return r(i);g9e.prototype[i]=n}else if("layout"===t){for(var s=mt(function(e){this.options=e,n.call(this,e),tke(this._private)||(this._private={}),this._private.cy=e.cy,this._private.listeners=[],this.createEmitter()},"Layout"),a=s.prototype=Object.create(n.prototype),o=[],l=0;l<o.length;l++){var c=o[l];a[c]=a[c]||function(){return this}}a.start&&!a.run?a.run=function(){return this.start(),this}:!a.start&&a.run&&(a.start=function(){return this.run(),this});var h=n.prototype.stop,u=(a.stop=function(){var e=this.options;if(e&&e.animate){var t=this.animations;if(t)for(var i=0;i<t.length;i++)t[i].stop()}return h?h.call(this):this.emit("layoutstop"),this},a.destroy||(a.destroy=function(){return this}),a.cy=function(){return this._private.cy},mt(function(e){return e._private.cy},"getCy")),d={addEventFields:mt(function(e,t){t.layout=e,t.cy=u(e),t.target=e},"addEventFields"),bubble:mt(function(){return!0},"bubble"),parent:mt(function(e){return u(e)},"parent")};Ske(a,{createEmitter:mt(function(){return this._private.emitter=new y8e(d,this),this},"createEmitter"),emitter:mt(function(){return this._private.emitter},"emitter"),on:mt(function(e,t){return this.emitter().on(e,t),this},"on"),one:mt(function(e,t){return this.emitter().one(e,t),this},"one"),once:mt(function(e,t){return this.emitter().one(e,t),this},"once"),removeListener:mt(function(e,t){return this.emitter().removeListener(e,t),this},"removeListener"),removeAllListeners:mt(function(){return this.emitter().removeAllListeners(),this},"removeAllListeners"),emit:mt(function(e,t){return this.emitter().emit(e,t),this},"emit")}),dAe.eventAliasesOn(a),e=s}else if("renderer"===t&&"null"!==i&&"base"!==i){var p,g,f=H7e("renderer","base"),m=f.prototype,y=n,b=n.prototype,s=mt(function(){f.apply(this,arguments),y.apply(this,arguments)},"Renderer"),v=s.prototype;for(p in m){var x=m[p];if(null!=b[p])return r(p);v[p]=x}for(g in b)v[g]=b[g];m.clientFunctions.forEach(function(e){v[e]=v[e]||function(){$Te("Renderer does not implement `renderer."+e+"()` on its prototype")}}),e=s}else if("__proto__"===t||"constructor"===t||"prototype"===t)return $Te(t+" is an illegal type to be registered, possibly lead to prototype pollutions");return Rke({map:k$e,keys:[t,i],value:e})}function H7e(e,t){return Mke({map:k$e,keys:[e,t]})}function U7e(e,t,i,n,r){return Rke({map:T$e,keys:[e,t,i,n],value:r})}function q7e(e,t,i,n){return Mke({map:T$e,keys:[e,t,i,n]})}var W7e,V7e,G7e,Y7e,X7e,K7e,Z7e,Q7e,J7e,eke,tke,ike,se,nke,rke,ske,ake,oke,lke,cke,hke,uke,dke,pke,gke,fke,mke,yke,bke,vke,xke,wke,kke,Tke,Ske,_ke,Cke,Ake,Eke,$ke,Lke,Rke,Mke,Ike,Nke,Dke,Oke,Pke,Bke,Fke,jke,zke,Hke,Uke,qke,Wke,Vke,Gke,Yke,Xke,Kke,Zke,Qke,Jke,eTe,tTe,iTe,nTe,rTe,sTe,aTe,oTe,lTe,cTe,hTe,uTe,dTe,pTe,gTe,fTe,mTe,yTe,bTe,vTe,xTe,wTe,kTe,TTe,STe,_Te,CTe,ATe,ETe,$Te,LTe,RTe,MTe,ITe,NTe,DTe,OTe,PTe,BTe,FTe,jTe,zTe,HTe,UTe,qTe,WTe,VTe,GTe,YTe,XTe,KTe,ZTe,QTe,JTe,eSe,tSe,iSe,nSe,rSe,sSe,aSe,oSe,lSe,cSe,hSe,uSe,dSe,pSe,gSe,fSe,mSe,ySe,bSe,vSe,xSe,wSe,kSe,TSe,SSe,_Se,CSe,ASe,ESe,$Se,LSe,RSe,MSe,ISe,NSe,DSe,OSe,PSe,BSe,FSe,jSe,zSe,HSe,USe,qSe,WSe,VSe,GSe,YSe,XSe,KSe,ZSe,QSe,JSe,e_e,t_e,i_e,n_e,r_e,s_e,a_e,o_e,l_e,c_e,h_e,u_e,d_e,p_e,g_e,f_e,m_e,y_e,b_e,v_e,x_e,w_e,k_e,T_e,S_e,__e,C_e,A_e,E_e,$_e,L_e,R_e,M_e,I_e,N_e,D_e,O_e,P_e,B_e,F_e,j_e,z_e,H_e,U_e,q_e,W_e,V_e,G_e,Y_e,X_e,K_e,Z_e,Q_e,J_e,eCe,tCe,iCe,nCe,rCe,sCe,aCe,oCe,lCe,cCe,hCe,uCe,dCe,pCe,gCe,fCe,mCe,yCe,bCe,vCe,xCe,wCe,kCe,TCe,SCe,_Ce,CCe,ACe,ECe,$Ce,LCe,RCe,MCe,ICe,NCe,DCe,OCe,PCe,BCe,FCe,jCe,zCe,HCe,UCe,qCe,WCe,VCe,GCe,YCe,XCe,KCe,ZCe,QCe,JCe,eAe,tAe,iAe,nAe,rAe,sAe,aAe,oAe,lAe,cAe,hAe,uAe,dAe,pAe,gAe,Y,fAe,mAe,yAe,bAe,vAe,xAe,wAe,kAe,TAe,SAe,_Ae,CAe,AAe,EAe,$Ae,LAe,RAe,MAe,IAe,NAe,DAe,OAe,PAe,BAe,FAe,jAe,zAe,HAe,UAe,qAe,WAe,VAe,GAe,YAe,XAe,KAe,ZAe,QAe,JAe,e9e,t9e,i9e,n9e,r9e,s9e,a9e,o9e,l9e,c9e,h9e,u9e,d9e,p9e,g9e,f9e,m9e,y9e,b9e,v9e,x9e,w9e,k9e,T9e,S9e,_9e,C9e,A9e,E9e,$9e,L9e,R9e,M9e,I9e,N9e,D9e,O9e,P9e,B9e,F9e,j9e,z9e,H9e,U9e,q9e,W9e,V9e,G9e,Y9e,X9e,K9e,Z9e,Q9e,J9e,eEe,tEe,iEe,nEe,rEe,sEe,aEe,oEe,lEe,cEe,hEe,uEe,dEe,pEe,gEe,fEe,mEe,yEe,bEe,vEe,xEe,wEe,kEe,TEe,SEe,_Ee,CEe,AEe,EEe,$Ee,LEe,REe,MEe,IEe,NEe,DEe,OEe,PEe,BEe,FEe,jEe,zEe,HEe,UEe,qEe,WEe,VEe,GEe,YEe,XEe,KEe,ZEe,QEe,JEe,e$e,t$e,i$e,n$e,r$e,s$e,a$e,o$e,l$e,c$e,h$e,u$e,d$e,p$e,g$e,f$e,m$e,y$e,b$e,v$e,x$e,w$e,Q,k$e,T$e,S$e,J,_$e,C$e,A$e=e(()=>{"use strict";function n(e){if(Wwe(this,n),this._obj=Object.create(null),this.size=0,null!=e)for(var t=null!=e.instanceString&&e.instanceString()===this.instanceString()?e.toArray():e,i=0;i<t.length;i++)this.add(t[i])}function e(){Wwe(this,e),this._obj={}}mt(qwe,"_typeof"),mt(Wwe,"_classCallCheck"),mt(Vwe,"_defineProperties"),mt(Gwe,"_createClass"),mt(Ywe,"_defineProperty$1"),mt(Xwe,"_slicedToArray"),mt(Kwe,"_toConsumableArray"),mt(Zwe,"_arrayWithoutHoles"),mt(Qwe,"_arrayWithHoles"),mt(Jwe,"_iterableToArray"),mt(e6e,"_iterableToArrayLimit"),mt(t6e,"_unsupportedIterableToArray"),mt(i6e,"_arrayLikeToArray"),mt(n6e,"_nonIterableSpread"),mt(r6e,"_nonIterableRest"),mt(s6e,"_createForOfIteratorHelper"),W7e="u"<typeof window?null:window,V7e=W7e?W7e.navigator:null,W7e&&W7e.document,G7e=qwe(""),Y7e=qwe({}),X7e=qwe(function(){}),K7e="u"<typeof HTMLElement?"undefined":qwe(HTMLElement),Z7e=mt(function(e){return e&&e.instanceString&&J7e(e.instanceString)?e.instanceString():null},"instanceStr"),Q7e=mt(function(e){return null!=e&&qwe(e)==G7e},"string"),J7e=mt(function(e){return null!=e&&qwe(e)===X7e},"fn"),eke=mt(function(e){return!ske(e)&&(Array.isArray?Array.isArray(e):null!=e&&e instanceof Array)},"array"),tke=mt(function(e){return null!=e&&qwe(e)===Y7e&&!eke(e)&&e.constructor===Object},"plainObject"),ike=mt(function(e){return null!=e&&qwe(e)===Y7e},"object"),se=mt(function(e){return null!=e&&qwe(e)===qwe(1)&&!isNaN(e)},"number"),nke=mt(function(e){return se(e)&&Math.floor(e)===e},"integer"),rke=mt(function(e){if("undefined"!==K7e)return null!=e&&e instanceof HTMLElement},"htmlElement"),ske=mt(function(e){return ake(e)||oke(e)},"elementOrCollection"),ake=mt(function(e){return"collection"===Z7e(e)&&e._private.single},"element"),oke=mt(function(e){return"collection"===Z7e(e)&&!e._private.single},"collection"),lke=mt(function(e){return"core"===Z7e(e)},"core"),cke=mt(function(e){return"stylesheet"===Z7e(e)},"stylesheet"),hke=mt(function(e){return"event"===Z7e(e)},"event"),uke=mt(function(e){return null==e||!(""!==e&&!e.match(/^\s+$/))},"emptyString"),dke=mt(function(e){return!("u"<typeof HTMLElement)&&e instanceof HTMLElement},"domElement"),pke=mt(function(e){return tke(e)&&se(e.x1)&&se(e.x2)&&se(e.y1)&&se(e.y2)},"boundingBox"),gke=mt(function(e){return ike(e)&&J7e(e.then)},"promise"),fke=mt(function(){return V7e&&V7e.userAgent.match(/msie|trident|edge/i)},"ms"),mke=mt(function(r,s){s=s||mt(function(){if(1===arguments.length)return arguments[0];if(0===arguments.length)return"undefined";for(var e=[],t=0;t<arguments.length;t++)e.push(arguments[t]);return e.join("$")},"keyFn");var e=mt(function e(){var t=arguments,i=s.apply(this,t),n=e.cache;return n[i]||(n[i]=r.apply(this,t))},"memoizedFn");return e.cache={},e},"memoize"),yke=mke(function(e){return e.replace(/([A-Z])/g,function(e){return"-"+e.toLowerCase()})}),bke=mke(function(e){return e.replace(/(-\w)/g,function(e){return e[1].toUpperCase()})}),vke=mke(function(e,t){return e+t[0].toUpperCase()+t.substring(1)},function(e,t){return e+"$"+t}),xke=mt(function(e){return uke(e)?e:e.charAt(0).toUpperCase()+e.substring(1)},"capitalize"),wke="(?:[-+]?(?:(?:\\d+|\\d*\\.\\d+)(?:[Ee][+-]?\\d+)?))",kke=mt(function(e,t){return e<t?-1:t<e?1:0},"ascending"),Tke=mt(function(e,t){return-1*kke(e,t)},"descending"),Ske=null!=Object.assign?Object.assign.bind(Object):function(e){for(var t=arguments,i=1;i<t.length;i++){var n=t[i];if(null!=n)for(var r=Object.keys(n),s=0;s<r.length;s++){var a=r[s];e[a]=n[a]}}return e},_ke=mt(function(e){var t,i;if((4===e.length||7===e.length)&&"#"===e[0])return e=4===e.length?(t=parseInt(e[1]+e[1],16),i=parseInt(e[2]+e[2],16),parseInt(e[3]+e[3],16)):(t=parseInt(e[1]+e[2],16),i=parseInt(e[3]+e[4],16),parseInt(e[5]+e[6],16)),[t,i,e]},"hex2tuple"),Cke=mt(function(e){var t,i,n;function r(e,t,i){return i<0&&(i+=1),1<i&&--i,i<1/6?e+6*(t-e)*i:i<.5?t:i<2/3?e+(t-e)*(2/3-i)*6:e}mt(r,"hue2rgb");var s,a,o,l,e=new RegExp("^hsl[a]?\\(((?:[-+]?(?:(?:\\d+|\\d*\\.\\d+)(?:[Ee][+-]?\\d+)?)))\\s*,\\s*((?:[-+]?(?:(?:\\d+|\\d*\\.\\d+)(?:[Ee][+-]?\\d+)?))[%])\\s*,\\s*((?:[-+]?(?:(?:\\d+|\\d*\\.\\d+)(?:[Ee][+-]?\\d+)?))[%])(?:\\s*,\\s*((?:[-+]?(?:(?:\\d+|\\d*\\.\\d+)(?:[Ee][+-]?\\d+)?))))?\\)$").exec(e);if(e){if((t=parseInt(e[1]))<0?t=(360- -1*t%360)%360:360<t&&(t%=360),t/=360,(i=parseFloat(e[2]))<0||100<i||(i/=100,(s=parseFloat(e[3]))<0)||100<s||(s/=100,void 0!==(n=e[4])&&((n=parseFloat(n))<0||1<n)))return;0===i?a=o=l=Math.round(255*s):(s=2*s-(e=s<.5?s*(1+i):s+i-s*i),a=Math.round(255*r(s,e,t+1/3)),o=Math.round(255*r(s,e,t)),l=Math.round(255*r(s,e,t-1/3))),i=[a,o,l,n]}return i},"hsl2tuple"),Ake=mt(function(e){var t=new RegExp("^rgb[a]?\\(((?:[-+]?(?:(?:\\d+|\\d*\\.\\d+)(?:[Ee][+-]?\\d+)?))[%]?)\\s*,\\s*((?:[-+]?(?:(?:\\d+|\\d*\\.\\d+)(?:[Ee][+-]?\\d+)?))[%]?)\\s*,\\s*((?:[-+]?(?:(?:\\d+|\\d*\\.\\d+)(?:[Ee][+-]?\\d+)?))[%]?)(?:\\s*,\\s*((?:[-+]?(?:(?:\\d+|\\d*\\.\\d+)(?:[Ee][+-]?\\d+)?))))?\\)$").exec(e);if(t){for(var i=[],n=[],r=1;r<=3;r++){var s=t[r];if("%"===s[s.length-1]&&(n[r]=!0),s=parseFloat(s),(s=n[r]?s/100*255:s)<0||255<s)return;i.push(Math.floor(s))}if((n[1]||n[2]||n[3])&&!(n[1]&&n[2]&&n[3]))return;e=t[4];if(void 0!==e){if((e=parseFloat(e))<0||1<e)return;i.push(e)}}return i},"rgb2tuple"),Eke=mt(function(e){return Lke[e.toLowerCase()]},"colorname2tuple"),$ke=mt(function(e){return(eke(e)?e:null)||Eke(e)||_ke(e)||Ake(e)||Cke(e)},"color2tuple"),Lke={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]},Rke=mt(function(e){for(var t=e.map,i=e.keys,n=i.length,r=0;r<n;r++){var s=i[r];if(tke(s))throw Error("Tried to set map with object key");r<i.length-1?(null==t[s]&&(t[s]={}),t=t[s]):t[s]=e.value}},"setMap"),Mke=mt(function(e){for(var t=e.map,i=e.keys,n=i.length,r=0;r<n;r++){var s=i[r];if(tke(s))throw Error("Tried to get map with object key");if(null==(t=t[s]))return t}return t},"getMap"),mt(a6e,"isObject"),Ike=a6e,Nke=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},mt(o6e,"createCommonjsModule"),_Te="object"==typeof Nke&&Nke&&Nke.Object===Object&&Nke,QEe="object"==typeof self&&self&&self.Object===Object&&self,_Te=_Te||QEe||Function("return this")(),Dke=_Te,QEe=mt(function(){return Dke.Date.now()},"now"),Oke=QEe,Pke=/\s/,mt(l6e,"trimmedEndIndex"),Bke=l6e,Fke=/^\s+/,mt(c6e,"baseTrim"),jke=c6e,_Te=Dke.Symbol,QEe=_Te,_Te=Object.prototype,zke=_Te.hasOwnProperty,Hke=_Te.toString,Uke=QEe?QEe.toStringTag:void 0,mt(h6e,"getRawTag"),qke=h6e,_Te=Object.prototype,Wke=_Te.toString,mt(u6e,"objectToString"),Vke=u6e,Gke=QEe?QEe.toStringTag:void 0,mt(d6e,"baseGetTag"),Yke=d6e,mt(p6e,"isObjectLike"),Xke=p6e,mt(g6e,"isSymbol"),Kke=g6e,Zke=NaN,Qke=/^[-+]0x[0-9a-f]+$/i,Jke=/^0b[01]+$/i,eTe=/^0o[0-7]+$/i,tTe=parseInt,mt(f6e,"toNumber"),iTe=f6e,nTe=Math.max,rTe=Math.min,mt(m6e,"debounce"),sTe=m6e,aTe=W7e?W7e.performance:null,oTe=aTe&&aTe.now?function(){return aTe.now()}:function(){return Date.now()},lTe=function(){if(W7e){if(W7e.requestAnimationFrame)return function(e){W7e.requestAnimationFrame(e)};if(W7e.mozRequestAnimationFrame)return function(e){W7e.mozRequestAnimationFrame(e)};if(W7e.webkitRequestAnimationFrame)return function(e){W7e.webkitRequestAnimationFrame(e)};if(W7e.msRequestAnimationFrame)return function(e){W7e.msRequestAnimationFrame(e)}}return function(e){e&&setTimeout(function(){e(oTe())},1e3/60)}}(),cTe=mt(function(e){return lTe(e)},"requestAnimationFrame"),hTe=oTe,uTe=mt(function(e){for(var t,i=1<arguments.length&&void 0!==arguments[1]?arguments[1]:9261;!(t=e.next()).done;)i=65599*i+t.value|0;return i},"hashIterableInts"),dTe=mt(function(e){return 65599*(1<arguments.length&&void 0!==arguments[1]?arguments[1]:9261)+e|0},"hashInt"),pTe=mt(function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:5381;return(t<<5)+t+e|0},"hashIntAlt"),gTe=mt(function(e,t){return 2097152*e+t},"combineHashes"),fTe=mt(function(e){return 2097152*e[0]+e[1]},"combineHashesArray"),mTe=mt(function(e,t){return[dTe(e[0],t[0]),pTe(e[1],t[1])]},"hashArrays"),yTe=mt(function(e,t){var i={value:0,done:!1},n=0,r=e.length,s={next:mt(function(){return n<r?i.value=e[n++]:i.done=!0,i},"next")};return uTe(s,t)},"hashIntsArray"),bTe=mt(function(e,t){var i={value:0,done:!1},n=0,r=e.length,s={next:mt(function(){return n<r?i.value=e.charCodeAt(n++):i.done=!0,i},"next")};return uTe(s,t)},"hashString"),vTe=mt(function(){return xTe(arguments)},"hashStrings"),xTe=mt(function(e){for(var t=0;t<e.length;t++)var i=e[t],n=0===t?bTe(i):bTe(i,n);return n},"hashStringsArray"),wTe=!0,kTe=null!=console.warn,TTe=null!=console.trace,STe=Number.MAX_SAFE_INTEGER||9007199254740991,_Te=mt(function(){return!0},"trueify"),CTe=mt(function(){return!1},"falsify"),ATe=mt(function(){return 0},"zeroify"),ETe=mt(function(){},"noop"),$Te=mt(function(e){throw new Error(e)},"error"),LTe=mt(function(e){if(void 0===e)return wTe;wTe=!!e},"warnings"),RTe=mt(function(e){LTe()&&(kTe?console.warn(e):(console.log(e),TTe&&console.trace()))},"warn"),MTe=mt(function(e){return Ske({},e)},"clone"),ITe=mt(function(e){return null==e?e:eke(e)?e.slice():tke(e)?MTe(e):e},"copy"),NTe=mt(function(e){return e.slice()},"copyArray"),DTe=mt(function(e,t){for(t=e="";e++<36;t+=51*e&52?(15^e?8^Math.random()*(20^e?16:4):4).toString(16):"-");return t},"uuid"),OTe={},PTe=mt(function(){return OTe},"staticEmptyObject"),BTe=mt(function(s){var a=Object.keys(s);return function(e){for(var t={},i=0;i<a.length;i++){var n=a[i],r=e?.[n];t[n]=void 0===r?s[n]:r}return t}},"defaults"),FTe=mt(function(e,t,i){for(var n=e.length-1;0<=n&&(e[n]!==t||(e.splice(n,1),!i));n--);},"removeFromArray"),jTe=mt(function(e){e.splice(0,e.length)},"clearArray"),zTe=mt(function(e,t){for(var i=0;i<t.length;i++){var n=t[i];e.push(n)}},"push"),HTe=mt(function(e,t,i){return e[t=i?vke(i,t):t]},"getPrefixedProperty"),UTe=mt(function(e,t,i,n){e[t=i?vke(i,t):t]=n},"setPrefixedProperty"),mt(e,"ObjectMap"),Gwe(e,[{key:"set",value:mt(function(e,t){return this._obj[e]=t,this},"set")},{key:"delete",value:mt(function(e){return this._obj[e]=void 0,this},"_delete")},{key:"clear",value:mt(function(){this._obj={}},"clear")},{key:"has",value:mt(function(e){return void 0!==this._obj[e]},"has")},{key:"get",value:mt(function(e){return this._obj[e]},"get")}]),Q=e,qTe=typeof Map<"u"?Map:Q,mt(n,"ObjectSet"),Gwe(n,[{key:"instanceString",value:mt(function(){return"set"},"instanceString")},{key:"add",value:mt(function(e){var t=this._obj;1!==t[e]&&(t[e]=1,this.size++)},"add")},{key:"delete",value:mt(function(e){var t=this._obj;1===t[e]&&(t[e]=0,this.size--)},"_delete")},{key:"clear",value:mt(function(){this._obj=Object.create(null)},"clear")},{key:"has",value:mt(function(e){return 1===this._obj[e]},"has")},{key:"toArray",value:mt(function(){var t=this;return Object.keys(this._obj).filter(function(e){return t.has(e)})},"toArray")},{key:"forEach",value:mt(function(e,t){return this.toArray().forEach(e,t)},"forEach")}]),Q=n,WTe="undefined"!==("u"<typeof Set?"undefined":qwe(Set))?Set:Q,VTe=mt(function(e,t){var i=!(2<arguments.length&&void 0!==arguments[2])||arguments[2];if(void 0!==e&&void 0!==t&&lke(e)){var n=t.group;if("nodes"!==(n=null==n?t.data&&null!=t.data.source&&null!=t.data.target?"edges":"nodes":n)&&"edges"!==n)$Te("An element must be of type `nodes` or `edges`; you specified `"+n+"`");else{this.length=1;var r,s=(this[0]=this)._private={cy:e,single:!0,data:t.data||{},position:t.position||{x:0,y:0},autoWidth:void 0,autoHeight:void 0,autoPadding:void 0,compoundBoundsClean:!1,listeners:[],group:n,style:{},rstyle:{},styleCxts:[],styleKeys:{},removed:!0,selected:!!t.selected,selectable:void 0===t.selectable||!!t.selectable,locked:!!t.locked,grabbed:!1,grabbable:void 0===t.grabbable||!!t.grabbable,pannable:void 0===t.pannable?"edges"===n:!!t.pannable,active:!1,classes:new WTe,animation:{current:[],queue:[]},rscratch:{},scratch:t.scratch||{},edges:[],children:[],parent:t.parent&&t.parent.isNode()?t.parent:null,traversalCache:{},backgrounding:!1,bbCache:null,bbCacheShift:{x:0,y:0},bodyBounds:null,overlayBounds:null,labelBounds:{all:null,source:null,target:null,main:null},arrowBounds:{source:null,target:null,"mid-source":null,"mid-target":null}},a=(null==s.position.x&&(s.position.x=0),null==s.position.y&&(s.position.y=0),t.renderedPosition&&(n=t.renderedPosition,r=e.pan(),e=e.zoom(),s.position={x:(n.x-r.x)/e,y:(n.y-r.y)/e}),[]);eke(t.classes)?a=t.classes:Q7e(t.classes)&&(a=t.classes.split(/\s+/));for(var o=0,l=a.length;o<l;o++){var c=a[o];c&&""!==c&&s.classes.add(c)}this.createEmitter();n=t.style||t.css;n&&(RTe("Setting a `style` bypass at element creation should be done only when absolutely necessary. Try to use the stylesheet instead."),this.style(n)),void 0!==i&&!i||this.restore()}}else $Te("An element must have a core reference and parameters set")},"Element"),Q=mt(function(T){return T={bfs:T.bfs||!T.dfs,dfs:T.dfs||!T.bfs},mt(function(e,u,d){tke(e)&&!ske(e)&&(e=(t=e).roots||t.root,u=t.visit,d=t.directed),d=2!==arguments.length||J7e(u)?d:u,u=J7e(u)?u:function(){};for(var p,t=this._private.cy,i=e=Q7e(e)?this.filter(e):e,g=[],f=[],m={},y={},b={},v=0,e=this.byGroup(),x=e.nodes,w=e.edges,n=0;n<i.length;n++){var r=i[n],s=r.id();r.isNode()&&(g.unshift(r),T.bfs&&(b[s]=!0,f.push(r)),y[s]=0)}for(var a=mt(function(){var t=T.bfs?g.shift():g.pop(),e=t.id();if(T.dfs){if(b[e])return"continue";b[e]=!0,f.push(t)}var i=y[e],n=m[e],r=null!=n?n.source():null,s=null!=n?n.target():null,s=null==n?void 0:(t.same(r)?s:r)[0];if(!0===(r=u(t,n,s,v++,i)))return p=t,"break";if(!1===r)return"break";for(var a=t.connectedEdges().filter(function(e){return(!d||e.source().same(t))&&w.has(e)}),o=0;o<a.length;o++){var l=a[o],c=l.connectedNodes().filter(function(e){return!e.same(t)&&x.has(e)}),h=c.id();0===c.length||b[h]||(c=c[0],g.push(c),T.bfs&&(b[h]=!0,f.push(c)),m[h]=l,y[h]=y[e]+1)}},"_loop");0!==g.length;){var o=a();if("continue"!==o&&"break"===o)break}for(var l=t.collection(),c=0;c<f.length;c++){var h=f[c],k=m[h.id()];null!=k&&l.push(k),l.push(h)}return{path:t.collection(l),found:t.collection(p)}},"searchFn")},"defineSearch"),(Q={breadthFirstSearch:Q({bfs:!0}),depthFirstSearch:Q({dfs:!0})}).bfs=Q.breadthFirstSearch,Q.dfs=Q.depthFirstSearch,KEe=o6e(function(a,e){!function(){var d,l,p,g,t,c,i,f,m,e,n,r,h,u;function s(e){this.cmp=e??d,this.nodes=[]}l=Math.floor,m=Math.min,d=mt(function(e,t){return e<t?-1:t<e?1:0},"defaultCmp"),f=mt(function(e,t,i,n,r){var s;if(null==r&&(r=d),(i=null==i?0:i)<0)throw new Error("lo must be non-negative");for(null==n&&(n=e.length);i<n;)r(t,e[s=l((i+n)/2)])<0?n=s:i=s+1;return[].splice.apply(e,[i,i-i].concat(t)),t},"insort"),t=mt(function(e,t,i){return null==i&&(i=d),e.push(t),h(e,0,e.length-1,i)},"heappush"),g=mt(function(e,t){var i,n;return null==t&&(t=d),i=e.pop(),e.length?(n=e[0],e[0]=i,u(e,0,t)):n=i,n},"heappop"),i=mt(function(e,t,i){var n;return null==i&&(i=d),n=e[0],e[0]=t,u(e,0,i),n},"heapreplace"),c=mt(function(e,t,i){var n;return null==i&&(i=d),e.length&&i(e[0],t)<0&&(t=(n=[e[0],t])[0],e[0]=n[1],u(e,0,i)),t},"heappushpop"),p=mt(function(i,e){var t,n,r,s,a,o;for(null==e&&(e=d),a=[],n=0,r=(s=function(){o=[];for(var e=0,t=l(i.length/2);0<=t?e<t:t<e;0<=t?e++:e--)o.push(e);return o}.apply(this).reverse()).length;n<r;n++)t=s[n],a.push(u(i,t,e));return a},"heapify"),r=mt(function(e,t,i){if(null==i&&(i=d),-1!==(t=e.indexOf(t)))return h(e,0,t,i),u(e,t,i)},"updateItem"),e=mt(function(e,t,i){var n,r,s,a,o;if(null==i&&(i=d),!(r=e.slice(0,t)).length)return r;for(p(r,i),s=0,a=(o=e.slice(t)).length;s<a;s++)n=o[s],c(r,n,i);return r.sort(i).reverse()},"nlargest"),n=mt(function(e,t,i){var n,r,s,a,o,l,c,h,u;if(null==i&&(i=d),10*t<=e.length){if((s=e.slice(0,t).sort(i)).length)for(r=s[s.length-1],a=0,l=(c=e.slice(t)).length;a<l;a++)i(n=c[a],r)<0&&(f(s,n,0,null,i),s.pop(),r=s[s.length-1]);return s}for(p(e,i),u=[],o=0,h=m(t,e.length);0<=h?o<h:h<o;0<=h?++o:--o)u.push(g(e,i));return u},"nsmallest"),h=mt(function(e,t,i,n){var r,s,a;for(null==n&&(n=d),r=e[i];t<i&&n(r,s=e[a=i-1>>1])<0;)e[i]=s,i=a;return e[i]=r},"_siftdown"),u=mt(function(e,t,i){var n,r,s,a,o;for(null==i&&(i=d),r=e.length,s=e[o=t],n=2*t+1;n<r;)(a=n+1)<r&&!(i(e[n],e[a])<0)&&(n=a),e[t]=e[n],n=2*(t=n)+1;return e[t]=s,h(e,o,t,i)},"_siftup"),s.push=t,s.pop=g,s.replace=i,s.pushpop=c,s.heapify=p,s.updateItem=r,s.nlargest=e,s.nsmallest=n,mt(s,"Heap"),s.prototype.push=function(e){return t(this.nodes,e,this.cmp)},s.prototype.pop=function(){return g(this.nodes,this.cmp)},s.prototype.peek=function(){return this.nodes[0]},s.prototype.contains=function(e){return-1!==this.nodes.indexOf(e)},s.prototype.replace=function(e){return i(this.nodes,e,this.cmp)},s.prototype.pushpop=function(e){return c(this.nodes,e,this.cmp)},s.prototype.heapify=function(){return p(this.nodes,this.cmp)},s.prototype.updateItem=function(e){return r(this.nodes,e,this.cmp)},s.prototype.clear=function(){return this.nodes=[]},s.prototype.empty=function(){return 0===this.nodes.length},s.prototype.size=function(){return this.nodes.length},s.prototype.clone=function(){var e=new s;return e.nodes=this.nodes.slice(0),e},s.prototype.toArray=function(){return this.nodes.slice(0)},s.prototype.insert=s.prototype.push,s.prototype.top=s.prototype.peek,s.prototype.front=s.prototype.peek,s.prototype.has=s.prototype.contains,s.prototype.copy=s.prototype.clone,a.exports=s}.call(Nke)}),GTe=KEe,YTe=BTe({root:null,weight:mt(function(e){return 1},"weight"),directed:!1}),KEe={dijkstra:mt(function(e){tke(e)||(e={root:(t=arguments)[0],weight:t[1],directed:t[2]});var t=YTe(e),e=t.root,i=t.weight,l=t.directed,s=this,c=i,n=(Q7e(e)?this.filter(e):e)[0],r={},a={},o={},t=this.byGroup(),h=t.nodes,u=t.edges;u.unmergeBy(function(e){return e.isLoop()});for(var d=mt(function(e){return r[e.id()]},"getDist"),p=mt(function(e,t){r[e.id()]=t,g.updateItem(e)},"setDist"),g=new GTe(function(e,t){return d(e)-d(t)}),f=0;f<h.length;f++){var m=h[f];r[m.id()]=m.same(n)?0:1/0,g.push(m)}for(var y=mt(function(e,t){for(var i,n=(l?e.edgesTo(t):e.edgesWith(t)).intersect(u),r=1/0,s=0;s<n.length;s++){var a=n[s],o=c(a);(o<r||!i)&&(r=o,i=a)}return{edge:i,dist:r}},"distBetween");0<g.size();){var b=g.pop(),v=d(b),x=b.id();if((o[x]=v)!==1/0)for(var w=b.neighborhood().intersect(h),k=0;k<w.length;k++){var T=w[k],S=T.id(),_=y(b,T),C=v+_.dist;C<d(T)&&(p(T,C),a[S]={node:b,edge:_.edge})}}return{distanceTo:mt(function(e){e=(Q7e(e)?h.filter(e):e)[0];return o[e.id()]},"distanceTo"),pathTo:mt(function(e){var e=(Q7e(e)?h.filter(e):e)[0],t=[],i=e,n=i.id();if(0<e.length)for(t.unshift(e);a[n];){var r=a[n];t.unshift(r.edge),t.unshift(r.node),n=(i=r.node).id()}return s.spawn(t)},"pathTo")}},"dijkstra")},v$e={kruskal:mt(function(i){i=i||function(e){return 1};for(var e=this.byGroup(),t=e.nodes,e=e.edges,n=t.length,r=new Array(n),s=t,a=mt(function(e){for(var t=0;t<r.length;t++)if(r[t].has(e))return t},"findSetIndex"),o=0;o<n;o++)r[o]=this.spawn(t[o]);for(var l=e.sort(function(e,t){return i(e)-i(t)}),c=0;c<l.length;c++){var h=l[c],u=h.source()[0],d=h.target()[0],u=a(u),d=a(d),p=r[u],g=r[d];u!==d&&(s.merge(h),p.merge(g),r.splice(d,1))}return s},"kruskal")},XTe=BTe({root:null,goal:null,weight:mt(function(e){return 1},"weight"),heuristic:mt(function(e){return 0},"heuristic"),directed:!1}),_$e={aStar:mt(function(e){var t,i,n=this.cy(),e=XTe(e),r=e.root,s=e.goal,a=e.heuristic,o=e.directed,l=e.weight,r=n.collection(r)[0],s=n.collection(s)[0],e=r.id(),c=s.id(),h={},u={},d={},p=new GTe(function(e,t){return u[e.id()]-u[t.id()]}),g=new WTe,f={},m={},y=mt(function(e,t){p.push(e),g.add(t)},"addToOpenSet"),b=mt(function(){t=p.pop(),i=t.id(),g.delete(i)},"popFromOpenSet"),v=mt(function(e){return g.has(e)},"isInOpenSet");y(r,e),h[e]=0,u[e]=a(r);for(var x=0;0<p.size();){if(b(),x++,i===c){for(var w=[],k=s,T=c,S=m[T];w.unshift(k),null!=S&&w.unshift(S),null!=(k=f[T]);)S=m[T=k.id()];return{found:!0,distance:h[i],path:this.spawn(w),steps:x}}d[i]=!0;for(var _=t._private.edges,C=0;C<_.length;C++){var A,E,$,L=_[C];!this.hasElementWithId(L.id())||o&&L.data("source")!==i||(A=L.source(),E=L.target(),E=(A=A.id()!==i?A:E).id(),this.hasElementWithId(E)&&!d[E]&&($=h[i]+l(L),v(E)?$<h[E]&&(u[E]=(h[E]=$)+a(A),f[E]=t,m[E]=L):(u[E]=(h[E]=$)+a(A),y(A,E),f[E]=t,m[E]=L)))}}return{found:!1,distance:void 0,path:void 0,steps:x}},"aStar")},KTe=BTe({weight:mt(function(e){return 1},"weight"),directed:!1}),JEe={floydWarshall:mt(function(e){for(var a=this.cy(),e=KTe(e),t=e.weight,i=e.directed,n=t,e=this.byGroup(),r=e.nodes,s=e.edges,o=r.length,l=o*o,c=mt(function(e){return r.indexOf(e)},"indexOf"),h=mt(function(e){return r[e]},"atIndex"),u=new Array(l),d=0;d<l;d++){var p=d%o;u[d]=(d-p)/o==p?0:1/0}for(var g=new Array(l),f=new Array(l),m=0;m<s.length;m++){var y,b,v=s[m],x=v.source()[0],w=v.target()[0];x!==w&&(x=c(x),w=c(w),b=x*o+w,y=n(v),u[b]>y&&(u[b]=y,g[b]=w,f[b]=v),i||(b=w*o+x,!i&&u[b]>y&&(u[b]=y,g[b]=x,f[b]=v)))}for(var k=0;k<o;k++)for(var T=0;T<o;T++)for(var S=T*o+k,_=0;_<o;_++){var C=T*o+_,A=k*o+_;u[S]+u[A]<u[C]&&(u[C]=u[S]+u[A],g[C]=g[S])}var E=mt(function(e){return(Q7e(e)?a.filter(e):e)[0]},"getArgEle"),$=mt(function(e){return c(E(e))},"indexOfArgEle");return{distance:mt(function(e,t){e=$(e),t=$(t);return u[e*o+t]},"distance"),path:mt(function(e,t){var i=$(e),n=$(t),e=h(i);if(i===n)return e.collection();if(null==g[i*o+n])return a.collection();var r,s=a.collection();for(s.merge(e);i!==n;)i=g[(r=i)*o+n],r=f[r*o+i],s.merge(r),s.merge(h(i));return s},"path")}},"floydWarshall")},ZTe=BTe({weight:mt(function(e){return 1},"weight"),directed:!1,root:null}),h$e={bellmanFord:mt(function(e){var O=this,t=ZTe(e),i=t.weight,n=t.directed,a=t.root,r=i,o=this,s=this.cy(),t=this.byGroup(),l=t.edges,c=t.nodes,h=c.length,u=new qTe,d=!1,p=[],a=s.collection(a)[0];l.unmergeBy(function(e){return e.isLoop()});for(var g=l.length,f=mt(function(e){var t=u.get(e.id());return t||(t={},u.set(e.id(),t)),t},"getInfo"),m=mt(function(e){return(Q7e(e)?s.$(e):e)[0]},"getNodeFromTo"),i=mt(function(e){return f(m(e)).dist},"distanceTo"),t=mt(function(e){for(var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:a,i=[],n=m(e);;){if(null==n)return O.spawn();var r=f(n),s=r.edge,r=r.pred;if(i.unshift(n[0]),n.same(t)&&0<i.length)break;null!=s&&i.unshift(s),n=r}return o.spawn(i)},"pathTo"),y=0;y<h;y++){var b=c[y],v=f(b);b.same(a)?v.dist=0:v.dist=1/0,v.pred=null,v.edge=null}for(var x=!1,P=mt(function(e,t,i,n,r,s){s=n.dist+s;s<r.dist&&!i.same(n.edge)&&(r.dist=s,r.pred=e,r.edge=i,x=!0)},"checkForEdgeReplacement"),B=1;B<h;B++){for(var x=!1,w=0;w<g;w++){var k=l[w],T=k.source(),S=k.target(),F=r(k),j=f(T),z=f(S);P(T,S,k,j,z,F),n||P(S,T,k,z,j,F)}if(!x)break}if(x)for(var H=[],_=0;_<g;_++){var C=l[_],U=C.source(),q=C.target(),C=r(C),A=f(U).dist,E=f(q).dist;if(A+C<E||!n&&E+C<A){if(d||(RTe("Graph contains a negative weight cycle for Bellman-Ford"),d=!0),!1===e.findNegativeWeightCycles)break;var $=[];A+C<E&&$.push(U),!n&&E+C<A&&$.push(q);for(var W=$.length,L=0;L<W;L++){var R=$[L],M=[R];M.push(f(R).edge);for(var I=f(R).pred;-1===M.indexOf(I);)M.push(I),M.push(f(I).edge),I=f(I).pred;for(var V=(M=M.slice(M.indexOf(I)))[0].id(),N=0,D=2;D<M.length;D+=2)M[D].id()<V&&(V=M[D].id(),N=D);(M=M.slice(N).concat(M.slice(0,N))).push(M[0]);R=M.map(function(e){return e.id()}).join(",");-1===H.indexOf(R)&&(p.push(o.spawn(M)),H.push(R))}}}return{distanceTo:i,pathTo:t,hasNegativeWeightCycle:d,negativeWeightCycles:p}},"bellmanFord")},QTe=Math.sqrt(2),JTe=mt(function(e,t,i){0===i.length&&$Te("Karger-Stein must be run on a connected (sub)graph");for(var e=i[e],n=e[1],e=e[2],r=t[n],s=t[e],a=i,o=a.length-1;0<=o;o--){var l=a[o],c=l[1],l=l[2];(t[c]===r&&t[l]===s||t[c]===s&&t[l]===r)&&a.splice(o,1)}for(var h=0;h<a.length;h++){var u=a[h];u[1]===s?(a[h]=u.slice(),a[h][1]=r):u[2]===s&&(a[h]=u.slice(),a[h][2]=r)}for(var d=0;d<t.length;d++)t[d]===s&&(t[d]=r);return a},"collapse"),eSe=mt(function(e,t,i,n){for(;n<i;){var r=Math.floor(Math.random()*t.length);t=JTe(r,e,t),i--}return t},"contractUntil"),y$e={kargerStein:mt(function(){var i=this,e=this.byGroup(),t=e.nodes,n=e.edges,r=(n.unmergeBy(function(e){return e.isLoop()}),t.length),s=n.length,a=Math.ceil(Math.pow(Math.log(r)/Math.LN2,2)),o=Math.floor(r/QTe);if(!(r<2)){for(var l=[],c=0;c<s;c++){var h=n[c];l.push([c,t.indexOf(h.source()),t.indexOf(h.target())])}for(var u=1/0,d=[],p=new Array(r),g=new Array(r),f=new Array(r),m=mt(function(e,t){for(var i=0;i<r;i++)t[i]=e[i]},"copyNodesMap"),y=0;y<=a;y++){for(var b=0;b<r;b++)g[b]=b;var v=eSe(g,l.slice(),r,o),x=v.slice(),v=(m(g,f),eSe(g,v,o,2)),x=eSe(f,x,o,2);v.length<=x.length&&v.length<u?(u=v.length,d=v,m(g,p)):x.length<=v.length&&x.length<u&&(u=x.length,d=x,m(f,p))}for(var w=this.spawn(d.map(function(e){return n[e[0]]})),k=this.spawn(),T=this.spawn(),S=p[0],_=0;_<p.length;_++){var C=p[_],A=t[_];(C===S?k:T).merge(A)}e=mt(function(e){var t=i.spawn();return e.forEach(function(e){t.merge(e),e.connectedEdges().forEach(function(e){i.contains(e)&&!w.contains(e)&&t.merge(e)})}),t},"constructComponent"),e=[e(k),e(T)];return{cut:w,components:e,partition1:k,partition2:T}}$Te("At least 2 nodes are required for Karger-Stein algorithm")},"kargerStein")},tSe=mt(function(e){return{x:e.x,y:e.y}},"copyPosition"),iSe=mt(function(e,t,i){return{x:e.x*t+i.x,y:e.y*t+i.y}},"modelToRenderedPosition"),nSe=mt(function(e,t,i){return{x:(e.x-i.x)/t,y:(e.y-i.y)/t}},"renderedToModelPosition"),rSe=mt(function(e){return{x:e[0],y:e[1]}},"array2point"),sSe=mt(function(e){for(var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:0,i=2<arguments.length&&void 0!==arguments[2]?arguments[2]:e.length,n=1/0,r=t;r<i;r++){var s=e[r];isFinite(s)&&(n=Math.min(s,n))}return n},"min"),aSe=mt(function(e){for(var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:0,i=2<arguments.length&&void 0!==arguments[2]?arguments[2]:e.length,n=-1/0,r=t;r<i;r++){var s=e[r];isFinite(s)&&(n=Math.max(s,n))}return n},"max"),oSe=mt(function(e){for(var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:0,i=2<arguments.length&&void 0!==arguments[2]?arguments[2]:e.length,n=0,r=0,s=t;s<i;s++){var a=e[s];isFinite(a)&&(n+=a,r++)}return n/r},"mean"),lSe=mt(function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:0,i=2<arguments.length&&void 0!==arguments[2]?arguments[2]:e.length,n=!(3<arguments.length&&void 0!==arguments[3])||arguments[3],r=!(4<arguments.length&&void 0!==arguments[4])||arguments[4],s=!(5<arguments.length&&void 0!==arguments[5])||arguments[5];n?e=e.slice(t,i):(i<e.length&&e.splice(i,e.length-i),0<t&&e.splice(0,t));for(var a=0,o=e.length-1;0<=o;o--){var l=e[o];s?isFinite(l)||(e[o]=-1/0,a++):e.splice(o,1)}r&&e.sort(function(e,t){return e-t});n=e.length,i=Math.floor(n/2);return n%2!=0?e[i+1+a]:(e[i-1+a]+e[i+a])/2},"median"),cSe=mt(function(e){return Math.PI*e/180},"deg2rad"),hSe=mt(function(e,t){return Math.atan2(t,e)-Math.PI/2},"getAngleFromDisp"),uSe=Math.log2||function(e){return Math.log(e)/Math.log(2)},dSe=mt(function(e){return 0<e?1:e<0?-1:0},"signum"),pSe=mt(function(e,t){return Math.sqrt(gSe(e,t))},"dist"),gSe=mt(function(e,t){var i=t.x-e.x,t=t.y-e.y;return i*i+t*t},"sqdist"),fSe=mt(function(e){for(var t=e.length,i=0,n=0;n<t;n++)i+=e[n];for(var r=0;r<t;r++)e[r]=e[r]/i;return e},"inPlaceSumNormalize"),mSe=mt(function(e,t,i,n){return(1-n)*(1-n)*e+2*(1-n)*n*t+n*n*i},"qbezierAt"),ySe=mt(function(e,t,i,n){return{x:mSe(e.x,t.x,i.x,n),y:mSe(e.y,t.y,i.y,n)}},"qbezierPtAt"),bSe=mt(function(e,t,i,n){var r=t.x-e.x,s=t.y-e.y,t=pSe(e,t),r=r/t,s=s/t;return i=i??0,{x:e.x+r*(n=n??i*t),y:e.y+s*n}},"lineAt"),vSe=mt(function(e,t,i){return Math.max(e,Math.min(i,t))},"bound"),xSe=mt(function(e){return null==e?{x1:1/0,y1:1/0,x2:-1/0,y2:-1/0,w:0,h:0}:null!=e.x1&&null!=e.y1?null!=e.x2&&null!=e.y2&&e.x2>=e.x1&&e.y2>=e.y1?{x1:e.x1,y1:e.y1,x2:e.x2,y2:e.y2,w:e.x2-e.x1,h:e.y2-e.y1}:null!=e.w&&null!=e.h&&0<=e.w&&0<=e.h?{x1:e.x1,y1:e.y1,x2:e.x1+e.w,y2:e.y1+e.h,w:e.w,h:e.h}:void 0:void 0},"makeBoundingBox"),wSe=mt(function(e){return{x1:e.x1,x2:e.x2,w:e.w,y1:e.y1,y2:e.y2,h:e.h}},"copyBoundingBox"),kSe=mt(function(e){e.x1=1/0,e.y1=1/0,e.x2=-1/0,e.y2=-1/0,e.w=0,e.h=0},"clearBoundingBox"),TSe=mt(function(e,t,i){return{x1:e.x1+t,x2:e.x2+t,y1:e.y1+i,y2:e.y2+i,w:e.w,h:e.h}},"shiftBoundingBox"),SSe=mt(function(e,t){e.x1=Math.min(e.x1,t.x1),e.x2=Math.max(e.x2,t.x2),e.w=e.x2-e.x1,e.y1=Math.min(e.y1,t.y1),e.y2=Math.max(e.y2,t.y2),e.h=e.y2-e.y1},"updateBoundingBox"),_Se=mt(function(e,t,i){e.x1=Math.min(e.x1,t),e.x2=Math.max(e.x2,t),e.w=e.x2-e.x1,e.y1=Math.min(e.y1,i),e.y2=Math.max(e.y2,i),e.h=e.y2-e.y1},"expandBoundingBoxByPoint"),CSe=mt(function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:0;return e.x1-=t,e.x2+=t,e.y1-=t,e.y2+=t,e.w=e.x2-e.x1,e.h=e.y2-e.y1,e},"expandBoundingBox"),ASe=mt(function(e){var t,i,n,r,s=1<arguments.length&&void 0!==arguments[1]?arguments[1]:[0];return 1===s.length?t=i=n=r=s[0]:2===s.length?(t=n=s[0],r=i=s[1]):4===s.length&&(t=(s=Xwe(s,4))[0],i=s[1],n=s[2],r=s[3]),e.x1-=r,e.x2+=i,e.y1-=t,e.y2+=n,e.w=e.x2-e.x1,e.h=e.y2-e.y1,e},"expandBoundingBoxSides"),ESe=mt(function(e,t){e.x1=t.x1,e.y1=t.y1,e.x2=t.x2,e.y2=t.y2,e.w=e.x2-e.x1,e.h=e.y2-e.y1},"assignBoundingBox"),$Se=mt(function(e,t){return!(e.x1>t.x2||t.x1>e.x2||e.x2<t.x1||t.x2<e.x1||e.y2<t.y1||t.y2<e.y1||e.y1>t.y2||t.y1>e.y2)},"boundingBoxesIntersect"),LSe=mt(function(e,t,i){return e.x1<=t&&t<=e.x2&&e.y1<=i&&i<=e.y2},"inBoundingBox"),RSe=mt(function(e,t){return LSe(e,t.x,t.y)},"pointInBoundingBox"),MSe=mt(function(e,t){return LSe(e,t.x1,t.y1)&&LSe(e,t.x2,t.y2)},"boundingBoxInBoundingBox"),ISe=mt(function(e,t,i,n,r,s,a){var o=7<arguments.length&&void 0!==arguments[7]?arguments[7]:"auto",o="auto"===o?i_e(r,s):o,r=r/2,s=s/2,l=(o=Math.min(o,r,s))!==r,c=o!==s;if(l){var h=n-s-a;if(0<(h=XSe(e,t,i,n,i-r+o-a,h,i+r-o+a,h,!1)).length)return h}if(c){var u=i+r+a;if(0<(h=XSe(e,t,i,n,u,n-s+o-a,u,n+s-o+a,!1)).length)return h}if(l){u=n+s+a;if(0<(h=XSe(e,t,i,n,i-r+o-a,u,i+r-o+a,u,!1)).length)return h}if(c){l=i-r-a;if(0<(h=XSe(e,t,i,n,l,n-s+o-a,l,n+s-o+a,!1)).length)return h}var u=i-r+o,c=n-s+o;return 0<(l=GSe(e,t,i,n,u,c,o+a)).length&&l[0]<=u&&l[1]<=c||0<(l=GSe(e,t,i,n,h=i+r-o,u=n-s+o,o+a)).length&&l[0]>=h&&l[1]<=u||0<(l=GSe(e,t,i,n,c=i+r-o,h=n+s-o,o+a)).length&&l[0]>=c&&l[1]>=h||0<(l=GSe(e,t,i,n,u=i-r+o,c=n+s-o,o+a)).length&&l[0]<=u&&l[1]>=c?[l[0],l[1]]:[]},"roundRectangleIntersectLine"),NSe=mt(function(e,t,i,n,r,s,a){var o=Math.min(i,r),i=Math.max(i,r),r=Math.min(n,s),n=Math.max(n,s);return o-a<=e&&e<=i+a&&r-a<=t&&t<=n+a},"inLineVicinity"),DSe=mt(function(e,t,i,n,r,s,a,o,l){var c=Math.min(i,a,r)-l,i=Math.max(i,a,r)+l,a=Math.min(n,o,s)-l,r=Math.max(n,o,s)+l;return!(e<c||i<e||t<a||r<t)},"inBezierVicinity"),OSe=mt(function(e,t,i,n){var n=t*t-4*e*(i-=n);return n<0?[]:[(-t+(i=Math.sqrt(n)))/(n=2*e),(-t-i)/n]},"solveQuadratic"),PSe=mt(function(e,t,i,n,r){var s,a,o;n=-27*(n/=e=0===e?1e-5:e)+(t/=e)*(9*(i/=e)-t*t*2),i=(e=(3*i-t*t)/9)*e*e+(n/=54)*n,t=t/3,(r[1]=0)<i?(s=(s=n+Math.sqrt(i))<0?-Math.pow(-s,1/3):Math.pow(s,1/3),a=(a=n-Math.sqrt(i))<0?-Math.pow(-a,1/3):Math.pow(a,1/3),r[0]=-t+s+a,r[4]=r[2]=-(t+=(s+a)/2),t=Math.sqrt(3)*(-a+s)/2,r[3]=t,r[5]=-t):(r[5]=r[3]=0)==i?(o=n<0?-Math.pow(-n,1/3):Math.pow(n,1/3),r[0]=2*o-t,r[4]=r[2]=-(o+t)):(e=-e,a=Math.acos(n/Math.sqrt(e*e*e)),o=2*Math.sqrt(e),r[0]=-t+o*Math.cos(a/3),r[2]=-t+o*Math.cos((a+2*Math.PI)/3),r[4]=-t+o*Math.cos((a+4*Math.PI)/3))},"solveCubic"),BSe=mt(function(e,t,i,n,r,s,a,o){var l=[];PSe(+i*i-4*i*r+2*i*a+4*r*r-4*r*a+a*a+n*n-4*n*s+2*n*o+4*s*s-4*s*o+o*o,9*i*r-3*i*i-3*i*a-6*r*r+3*r*a+9*n*s-3*n*n-3*n*o-6*s*s+3*s*o,3*i*i-6*i*r+i*a-i*e+2*r*r+2*r*e-a*e+3*n*n-6*n*s+n*o-n*t+2*s*s+2*s*t-o*t,+i*r-i*i+i*e-r*e+n*s-n*n+n*t-s*t,l);for(var c=[],h=0;h<6;h+=2)Math.abs(l[h+1])<1e-7&&0<=l[h]&&l[h]<=1&&c.push(l[h]);c.push(1),c.push(0);for(var u,d,p=-1,g=0;g<c.length;g++)d=Math.pow(1-c[g],2)*i+2*(1-c[g])*c[g]*r+c[g]*c[g]*a,u=Math.pow(1-c[g],2)*n+2*(1-c[g])*c[g]*s+c[g]*c[g]*o,d=Math.pow(d-e,2)+Math.pow(u-t,2),0<=p&&!(d<p)||(p=d);return p},"sqdistToQuadraticBezier"),FSe=mt(function(e,t,i,n,r,s){var a=[e-i,t-n],i=[r-i,s-n],n=i[0]*i[0]+i[1]*i[1],o=a[0]*a[0]+a[1]*a[1],a=a[0]*i[0]+a[1]*i[1],i=a*a/n;return a<0?o:n<i?(e-r)*(e-r)+(t-s)*(t-s):o-i},"sqdistToFiniteLine"),jSe=mt(function(e,t,i){for(var n,r,s,a,o=0,l=0;l<i.length/2;l++)if(n=i[2*l],r=i[2*l+1],a=l+1<i.length/2?(s=i[2*(l+1)],i[2*(l+1)+1]):(s=i[2*(l+1-i.length/2)],i[2*(l+1-i.length/2)+1]),n!=e||s!=e){if(!(e<=n&&s<=e||n<=e&&e<=s))continue;t<(e-n)/(s-n)*(a-r)+r&&o++}return o%2!=0},"pointInsidePolygonPoints"),zSe=mt(function(e,t,i,n,r,s,a,o,l){var c=new Array(i.length);null!=o[0]?(h=Math.atan(o[1]/o[0]),o[0]<0?h+=Math.PI/2:h=-h-Math.PI/2):h=o;for(var h,u=Math.cos(-h),d=Math.sin(-h),p=0;p<c.length/2;p++)c[2*p]=s/2*(i[2*p]*u-i[2*p+1]*d),c[2*p+1]=a/2*(i[2*p+1]*u+i[2*p]*d),c[2*p]+=n,c[2*p+1]+=r;return h=0<l?(o=qSe(c,-l),USe(o)):c,jSe(e,t,h)},"pointInsidePolygon"),HSe=mt(function(e,t,i,n,r,s,a,o){for(var l=new Array(2*i.length),c=0;c<o.length;c++){var h=o[c];if(l[4*c+0]=h.startX,l[4*c+1]=h.startY,l[4*c+2]=h.stopX,l[4*c+3]=h.stopY,Math.pow(h.cx-e,2)+Math.pow(h.cy-t,2)<=Math.pow(h.radius,2))return!0}return jSe(e,t,l)},"pointInsideRoundPolygon"),USe=mt(function(e){for(var t,i,n,r=new Array(e.length/2),s=0;s<e.length/4;s++){var a=e[4*s],o=e[4*s+1],l=e[4*s+2],c=e[4*s+3],h=s<e.length/4-1?(t=e[4*(s+1)],i=e[4*(s+1)+1],n=e[4*(s+1)+2],e[4*(s+1)+3]):(t=e[0],i=e[1],n=e[2],e[3]),a=XSe(a,o,l,c,t,i,n,h,!0);r[2*s]=a[0],r[2*s+1]=a[1]}return r},"joinLines"),qSe=mt(function(e,t){for(var i,n=new Array(2*e.length),r=0;r<e.length/2;r++){var s,a=e[2*r],o=e[2*r+1],l=(s=r<e.length/2-1?(i=e[2*(r+1)],e[2*(r+1)+1]):(i=e[0],e[1]))-o,c=-(i-a),h=Math.sqrt(l*l+c*c),l=l/h,c=c/h;n[4*r]=a+l*t,n[4*r+1]=o+c*t,n[4*r+2]=i+l*t,n[4*r+3]=s+c*t}return n},"expandPolygon"),WSe=mt(function(e,t,i,n,r,s){var a=i-e,o=n-t,r=(a/=r,o/=s,Math.sqrt(a*a+o*o)),s=r-1;return s<0?[]:[(i-e)*(a=s/r)+e,(n-t)*a+t]},"intersectLineEllipse"),VSe=mt(function(e,t,i,n,r,s,a){return(e=(e-r)/(i/2+a))*e+(t=(t-s)/(n/2+a))*t<=1},"checkInEllipse"),GSe=mt(function(e,t,i,n,r,s,a){var i=[i-e,n-t],n=[e-r,t-s],r=i[0]*i[0]+i[1]*i[1],s=2*(n[0]*i[0]+n[1]*i[1]),n=s*s-4*r*(n[0]*n[0]+n[1]*n[1]-a*a);return n<0||(a=(-s+Math.sqrt(n))/(2*r),s=(-s-Math.sqrt(n))/(2*r),n=Math.min(a,s),r=Math.max(a,s),a=[],0<=n&&n<=1&&a.push(n),0<=r&&r<=1&&a.push(r),0===a.length)?[]:(s=a[0]*i[0]+e,n=a[0]*i[1]+t,!(1<a.length)||a[0]==a[1]?[s,n]:[s,n,a[1]*i[0]+e,a[1]*i[1]+t])},"intersectLineCircle"),YSe=mt(function(e,t,i){return t<=e&&e<=i||i<=e&&e<=t?e:e<=t&&t<=i||i<=t&&t<=e?t:i},"midOfThree"),XSe=mt(function(e,t,i,n,r,s,a,o,l){var c=e-r,h=i-e,u=a-r,d=t-s,p=n-t,g=o-s,f=u*d-g*c,d=h*d-p*c,c=g*h-u*p;return 0!=c?(g=d/c,-.001<=(u=f/c)&&u<=1.001&&-.001<=g&&g<=1.001||l?[e+u*h,t+u*p]:[]):0==f||0==d?YSe(e,i,a)===a?[a,o]:YSe(e,i,r)===r?[r,s]:YSe(r,a,i)===i?[i,n]:[]:[]},"finiteLinesIntersect"),KSe=mt(function(e,t,i,n,r,s,a,o){var l=[],c=new Array(i.length);if(null==s?!1:!0){for(var h,u=0;u<c.length/2;u++)c[2*u]=i[2*u]*s+n,c[2*u+1]=i[2*u+1]*a+r;h=0<o?(o=qSe(c,-o),USe(o)):c}else h=i;for(var d,p,g,f,m=0;m<h.length/2;m++)d=h[2*m],p=h[2*m+1],f=m<h.length/2-1?(g=h[2*(m+1)],h[2*(m+1)+1]):(g=h[0],h[1]),0!==(d=XSe(e,t,n,r,d,p,g,f)).length&&l.push(d[0],d[1]);return l},"polygonIntersectLine"),ZSe=mt(function(i,n,e,r,s,t,a,o,l){var c,h=[],u=new Array(2*e.length);l.forEach(function(e,t){0===t?(u[u.length-2]=e.startX,u[u.length-1]=e.startY):(u[4*t-2]=e.startX,u[4*t-1]=e.startY),u[4*t]=e.stopX,u[4*t+1]=e.stopY,0!==(c=GSe(i,n,r,s,e.cx,e.cy,e.radius)).length&&h.push(c[0],c[1])});for(var d=0;d<u.length/4;d++)0!==(c=XSe(i,n,r,s,u[4*d],u[4*d+1],u[4*d+2],u[4*d+3],!1)).length&&h.push(c[0],c[1]);if(2<h.length){for(var p=[h[0],h[1]],g=Math.pow(p[0]-i,2)+Math.pow(p[1]-n,2),f=1;f<h.length/2;f++){var m=Math.pow(h[2*f]-i,2)+Math.pow(h[2*f+1]-n,2);m<=g&&(p[0]=h[2*f],p[1]=h[2*f+1],g=m)}return p}return h},"roundPolygonIntersectLine"),QSe=mt(function(e,t,i){var e=[e[0]-t[0],e[1]-t[1]],n=Math.sqrt(e[0]*e[0]+e[1]*e[1]),i=(n-i)/n;return[t[0]+(i=i<0?1e-5:i)*e[0],t[1]+i*e[1]]},"shortenIntersection"),JSe=mt(function(e,t){e=t_e(e,t);return e_e(e)},"generateUnitNgonPointsFitToSquare"),e_e=mt(function(e){for(var t,i,n=e.length/2,r=1/0,s=1/0,a=-1/0,o=-1/0,l=0;l<n;l++)t=e[2*l],i=e[2*l+1],r=Math.min(r,t),a=Math.max(a,t),s=Math.min(s,i),o=Math.max(o,i);for(var c=2/(a-r),h=2/(o-s),u=0;u<n;u++)t=e[2*u]=e[2*u]*c,i=e[2*u+1]=e[2*u+1]*h,r=Math.min(r,t),a=Math.max(a,t),s=Math.min(s,i),o=Math.max(o,i);if(s<-1)for(var d=0;d<n;d++)i=e[2*d+1]=e[2*d+1]+(-1-s);return e},"fitPolygonToSquare"),t_e=mt(function(e,t){var i=1/e*2*Math.PI,n=e%2==0?Math.PI/2+i/2:Math.PI/2;n+=t;for(var r,s=new Array(2*e),a=0;a<e;a++)r=a*i+n,s[2*a]=Math.cos(r),s[2*a+1]=Math.sin(-r);return s},"generateUnitNgonPoints"),i_e=mt(function(e,t){return Math.min(e/4,t/4,8)},"getRoundRectangleRadius"),n_e=mt(function(e,t){return Math.min(e/10,t/10,8)},"getRoundPolygonRadius"),r_e=mt(function(){return 8},"getCutRectangleCornerLength"),s_e=mt(function(e,t,i){return[e-2*t+i,2*(t-e),e]},"bezierPtsToQuadCoeff"),a_e=mt(function(e,t){return{heightOffset:Math.min(15,.05*t),widthOffset:Math.min(100,.25*e),ctrlPtOffsetPct:.05}},"getBarrelCurveConstants"),o_e=BTe({dampingFactor:.8,precision:1e-6,iterations:200,weight:mt(function(e){return 1},"weight")}),GEe={pageRank:mt(function(e){for(var e=o_e(e),t=e.dampingFactor,i=e.precision,n=e.iterations,r=e.weight,s=this._private.cy,e=this.byGroup(),a=e.nodes,o=e.edges,l=a.length,c=o.length,h=new Array(l*l),u=new Array(l),d=(1-t)/l,p=0;p<l;p++){for(var g=0;g<l;g++)h[p*l+g]=0;u[p]=0}for(var f=0;f<c;f++){var m=o[f],y=m.data("source"),b=m.data("target");y!==b&&(y=a.indexOfId(y),b=a.indexOfId(b),m=r(m),h[b*l+y]+=m,u[y]+=m)}for(var v=1/l+d,x=0;x<l;x++)if(0===u[x])for(var w=0;w<l;w++)h[w*l+x]=v;else for(var k=0;k<l;k++){var T=k*l+x;h[T]=h[T]/u[x]+d}for(var S=new Array(l),_=new Array(l),C=0;C<l;C++)S[C]=1;for(var A=0;A<n;A++){for(var E=0;E<l;E++)_[E]=0;for(var $=0;$<l;$++)for(var L=0;L<l;L++)_[$]+=h[$*l+L]*S[L];fSe(_);for(var R=S,S=_,_=R,M=0,I=0;I<l;I++){var N=R[I]-S[I];M+=N*N}if(M<i)break}return{rank:mt(function(e){return e=s.collection(e)[0],S[a.indexOf(e)]},"rank")}},"pageRank")},l_e=BTe({root:null,weight:mt(function(e){return 1},"weight"),directed:!1,alpha:0}),(nEe={degreeCentralityNormalized:mt(function(e){e=l_e(e);var t=this.cy(),i=this.nodes(),n=i.length;if(e.directed){for(var r={},s={},a=0,o=0,l=0;l<n;l++){var c=i[l],h=c.id(),c=(e.root=c,this.degreeCentrality(e));a<c.indegree&&(a=c.indegree),o<c.outdegree&&(o=c.outdegree),r[h]=c.indegree,s[h]=c.outdegree}return{indegree:mt(function(e){return 0==a?0:(Q7e(e)&&(e=t.filter(e)),r[e.id()]/a)},"indegree"),outdegree:mt(function(e){return 0===o?0:(Q7e(e)&&(e=t.filter(e)),s[e.id()]/o)},"outdegree")}}for(var u={},d=0,p=0;p<n;p++){var g=i[p],f=(e.root=g,this.degreeCentrality(e));d<f.degree&&(d=f.degree),u[g.id()]=f.degree}return{degree:mt(function(e){return 0===d?0:(Q7e(e)&&(e=t.filter(e)),u[e.id()]/d)},"degree")}},"degreeCentralityNormalized"),degreeCentrality:mt(function(e){e=l_e(e);var t=this.cy(),i=this,n=e.root,r=e.weight,s=e.directed,e=e.alpha,n=t.collection(n)[0];if(s){for(var t=n.connectedEdges(),a=t.filter(function(e){return e.target().same(n)&&i.has(e)}),o=t.filter(function(e){return e.source().same(n)&&i.has(e)}),s=a.length,t=o.length,l=0,c=0,h=0;h<a.length;h++)l+=r(a[h]);for(var u=0;u<o.length;u++)c+=r(o[u]);return{indegree:Math.pow(s,1-e)*Math.pow(l,e),outdegree:Math.pow(t,1-e)*Math.pow(c,e)}}for(var d=n.connectedEdges().intersection(i),s=d.length,p=0,g=0;g<d.length;g++)p+=r(d[g]);return{degree:Math.pow(s,1-e)*Math.pow(p,e)}},"degreeCentrality")}).dc=nEe.degreeCentrality,nEe.dcn=nEe.degreeCentralityNormalised=nEe.degreeCentralityNormalized,c_e=BTe({harmonic:!0,weight:mt(function(){return 1},"weight"),directed:!1,root:null}),(J={closenessCentralityNormalized:mt(function(e){for(var e=c_e(e),t=e.harmonic,i=e.weight,e=e.directed,n=this.cy(),r={},s=0,a=this.nodes(),o=this.floydWarshall({weight:i,directed:e}),l=0;l<a.length;l++){for(var c,h=0,u=a[l],d=0;d<a.length;d++)l!==d&&(c=o.distance(u,a[d]),h+=t?1/c:c);s<(h=t?h:1/h)&&(s=h),r[u.id()]=h}return{closeness:mt(function(e){return 0==s?0:(e=(Q7e(e)?n.filter(e)[0]:e).id(),r[e]/s)},"closeness")}},"closenessCentralityNormalized"),closenessCentrality:mt(function(e){for(var e=c_e(e),t=e.root,i=e.weight,n=e.directed,r=e.harmonic,t=this.filter(t)[0],s=this.dijkstra({root:t,weight:i,directed:n}),a=0,o=this.nodes(),l=0;l<o.length;l++){var c=o[l];c.same(t)||(c=s.distanceTo(c),a+=r?1/c:c)}return r?a:1/a},"closenessCentrality")}).cc=J.closenessCentrality,J.ccn=J.closenessCentralityNormalised=J.closenessCentralityNormalized,h_e=BTe({weight:null,directed:!1}),(YEe={betweennessCentrality:mt(function(e){for(var e=h_e(e),t=e.directed,w=e.weight,k=null!=w,T=this.cy(),S=this.nodes(),_={},i={},n=0,C={set:mt(function(e,t){n<(i[e]=t)&&(n=t)},"set"),get:mt(function(e){return i[e]},"get")},r=0;r<S.length;r++){var s=S[r],a=s.id();_[a]=(t?s.outgoers():s.openNeighborhood()).nodes(),C.set(a,0)}for(var o=mt(function(e){for(var t=S[e].id(),i=[],n={},r={},s={},a=new GTe(function(e,t){return s[e]-s[t]}),o=0;o<S.length;o++){var l=S[o].id();n[l]=[],s[l]=1/(r[l]=0)}for(r[t]=1,s[t]=0,a.push(t);!a.empty();){var c=a.pop();if(i.push(c),k)for(var h=0;h<_[c].length;h++){var u=_[c][h],d=T.getElementById(c),p=void 0,p=(0<d.edgesTo(u).length?d.edgesTo(u):u.edgesTo(d))[0],d=w(p),u=u.id();s[c]+d<s[u]&&(s[u]=s[c]+d,a.nodes.indexOf(u)<0?a.push(u):a.updateItem(u),r[u]=0,n[u]=[]),s[u]==s[c]+d&&(r[u]=r[u]+r[c],n[u].push(c))}else for(var g=0;g<_[c].length;g++){var f=_[c][g].id();s[f]==1/0&&(a.push(f),s[f]=s[c]+1),s[f]==s[c]+1&&(r[f]=r[f]+r[c],n[f].push(c))}}for(var m={},y=0;y<S.length;y++)m[S[y].id()]=0;for(;0<i.length;){for(var b=i.pop(),v=0;v<n[b].length;v++){var x=n[b][v];m[x]=m[x]+r[x]/r[b]*(1+m[b])}b!=S[e].id()&&C.set(b,C.get(b)+m[b])}},"_loop"),l=0;l<S.length;l++)o(l);e={betweenness:mt(function(e){e=T.collection(e).id();return C.get(e)},"betweenness"),betweennessNormalized:mt(function(e){return 0==n?0:(e=T.collection(e).id(),C.get(e)/n)},"betweennessNormalized")};return e.betweennessNormalised=e.betweennessNormalized,e},"betweennessCentrality")}).bc=YEe.betweennessCentrality,u_e=BTe({expandFactor:2,inflateFactor:2,multFactor:1,maxIterations:20,attributes:[function(e){return 1}]}),d_e=mt(function(e){return u_e(e)},"setOptions"),p_e=mt(function(e,t){for(var i=0,n=0;n<t.length;n++)i+=t[n](e);return i},"getSimilarity"),g_e=mt(function(e,t,i){for(var n=0;n<t;n++)e[n*t+n]=i},"addLoops"),f_e=mt(function(e,t){for(var i=0;i<t;i++){for(var n=0,r=0;r<t;r++)n+=e[r*t+i];for(var s=0;s<t;s++)e[s*t+i]=e[s*t+i]/n}},"normalize"),m_e=mt(function(e,t,i){for(var n=new Array(i*i),r=0;r<i;r++){for(var s=0;s<i;s++)n[r*i+s]=0;for(var a=0;a<i;a++)for(var o=0;o<i;o++)n[r*i+o]+=e[r*i+a]*t[a*i+o]}return n},"mmult"),y_e=mt(function(e,t,i){for(var n=e.slice(0),r=1;r<i;r++)e=m_e(e,n,t);return e},"expand"),b_e=mt(function(e,t,i){for(var n=new Array(t*t),r=0;r<t*t;r++)n[r]=Math.pow(e[r],i);return f_e(n,t),n},"inflate"),v_e=mt(function(e,t,i,n){for(var r=0;r<i;r++)if(Math.round(e[r]*Math.pow(10,n))/Math.pow(10,n)!=Math.round(t[r]*Math.pow(10,n))/Math.pow(10,n))return!1;return!0},"hasConverged"),x_e=mt(function(e,t,i,n){for(var r=[],s=0;s<t;s++){for(var a=[],o=0;o<t;o++)0<Math.round(1e3*e[s*t+o])/1e3&&a.push(i[o]);0!==a.length&&r.push(n.collection(a))}return r},"assign"),w_e=mt(function(e,t){for(var i=0;i<e.length;i++)if(!t[i]||e[i].id()!==t[i].id())return!1;return!0},"isDuplicate"),k_e=mt(function(e){for(var t=0;t<e.length;t++)for(var i=0;i<e.length;i++)t!=i&&w_e(e[t],e[i])&&e.splice(i,1);return e},"removeDuplicates"),ZEe=mt(function(e){for(var t=this.nodes(),i=this.edges(),n=this.cy(),r=d_e(e),s={},a=0;a<t.length;a++)s[t[a].id()]=a;for(var o,l=t.length,c=l*l,h=new Array(c),u=0;u<c;u++)h[u]=0;for(var d=0;d<i.length;d++){var p=i[d],g=s[p.source().id()],f=s[p.target().id()],p=p_e(p,r.attributes);h[g*l+f]+=p,h[f*l+g]+=p}g_e(h,l,r.multFactor),f_e(h,l);for(var m=!0,y=0;m&&y<r.maxIterations;)m=!1,o=y_e(h,l,r.expandFactor),h=b_e(o,l,r.inflateFactor),v_e(h,o,c,4)||(m=!0),y++;e=x_e(h,l,t,n);return k_e(e)},"markovClustering"),ZEe={markovClustering:ZEe,mcl:ZEe},T_e=mt(function(e){return e},"identity"),S_e=mt(function(e,t){return Math.abs(t-e)},"absDiff"),__e=mt(function(e,t,i){return e+S_e(t,i)},"addAbsDiff"),C_e=mt(function(e,t,i){return e+Math.pow(i-t,2)},"addSquaredDiff"),A_e=mt(function(e){return Math.sqrt(e)},"sqrt"),E_e=mt(function(e,t,i){return Math.max(e,S_e(t,i))},"maxAbsDiff"),$_e=mt(function(e,t,i,n,r){for(var s=5<arguments.length&&void 0!==arguments[5]?arguments[5]:T_e,a=n,o=0;o<e;o++)a=r(a,t(o),i(o));return s(a)},"getDistance"),(L_e={euclidean:mt(function(e,t,i){return 2<=e?$_e(e,t,i,0,C_e,A_e):$_e(e,t,i,0,__e)},"euclidean"),squaredEuclidean:mt(function(e,t,i){return $_e(e,t,i,0,C_e)},"squaredEuclidean"),manhattan:mt(function(e,t,i){return $_e(e,t,i,0,__e)},"manhattan"),max:mt(function(e,t,i){return $_e(e,t,i,-1/0,E_e)},"max")})["squared-euclidean"]=L_e.squaredEuclidean,L_e.squaredeuclidean=L_e.squaredEuclidean,mt(y6e,"clusteringDistance"),R_e=BTe({k:2,m:2,sensitivityThreshold:1e-4,distance:"euclidean",maxIterations:10,attributes:[],testMode:!1,testCentroids:null}),M_e=mt(function(e){return R_e(e)},"setOptions"),I_e=mt(function(e,t,i,n,r){var r="kMedoids"!==r?function(e){return i[e]}:function(e){return n[e](i)},s=mt(function(e){return n[e](t)},"getQ");return y6e(e,n.length,r,s,i,t)},"getDist"),N_e=mt(function(e,t,i){for(var n=i.length,r=new Array(n),s=new Array(n),a=new Array(t),o=null,l=0;l<n;l++)r[l]=e.min(i[l]).value,s[l]=e.max(i[l]).value;for(var c=0;c<t;c++){for(var o=[],h=0;h<n;h++)o[h]=Math.random()*(s[h]-r[h])+r[h];a[c]=o}return a},"randomCentroids"),D_e=mt(function(e,t,i,n,r){for(var s=1/0,a=0,o=0;o<t.length;o++){var l=I_e(i,e,t[o],n,r);l<s&&(s=l,a=o)}return a},"classify"),O_e=mt(function(e,t,i){for(var n=[],r=null,s=0;s<t.length;s++)i[(r=t[s]).id()]===e&&n.push(r);return n},"buildCluster"),P_e=mt(function(e,t,i){return Math.abs(t-e)<=i},"haveValuesConverged"),B_e=mt(function(e,t,i){for(var n=0;n<e.length;n++)for(var r=0;r<e[n].length;r++)if(i<Math.abs(e[n][r]-t[n][r]))return!1;return!0},"haveMatricesConverged"),F_e=mt(function(e,t,i){for(var n=0;n<i;n++)if(e===t[n])return!0;return!1},"seenBefore"),j_e=mt(function(e,t){var i=new Array(t);if(e.length<50)for(var n=0;n<t;n++){for(var r=e[Math.floor(Math.random()*e.length)];F_e(r,i,n);)r=e[Math.floor(Math.random()*e.length)];i[n]=r}else for(var s=0;s<t;s++)i[s]=e[Math.floor(Math.random()*e.length)];return i},"randomMedoids"),z_e=mt(function(e,t,i){for(var n=0,r=0;r<t.length;r++)n+=I_e("manhattan",t[r],e,i,"kMedoids");return n},"findCost"),BEe=mt(function(e){for(var t=this.cy(),i=this.nodes(),n=null,r=M_e(e),s=new Array(r.k),a={},o=r.testMode?"number"==typeof r.testCentroids?(r.testCentroids,N_e(i,r.k,r.attributes)):"object"===qwe(r.testCentroids)?r.testCentroids:N_e(i,r.k,r.attributes):N_e(i,r.k,r.attributes),l=!0,c=0;l&&c<r.maxIterations;){for(var h=0;h<i.length;h++)a[(n=i[h]).id()]=D_e(n,o,r.distance,r.attributes,"kMeans");for(var l=!1,u=0;u<r.k;u++){var d=O_e(u,i,a);if(0!==d.length){for(var p=r.attributes.length,g=o[u],f=new Array(p),m=new Array(p),y=0;y<p;y++){for(var b=m[y]=0;b<d.length;b++)n=d[b],m[y]+=r.attributes[y](n);f[y]=m[y]/d.length,P_e(f[y],g[y],r.sensitivityThreshold)||(l=!0)}o[u]=f,s[u]=t.collection(d)}}c++}return s},"kMeans"),$Ee=mt(function(e){var t,i,n=this.cy(),r=this.nodes(),s=null,a=M_e(e),o=new Array(a.k),l={},c=new Array(a.k);a.testMode?"number"!=typeof a.testCentroids&&(t="object"===qwe(a.testCentroids)?a.testCentroids:j_e(r,a.k)):t=j_e(r,a.k);for(var h=!0,u=0;h&&u<a.maxIterations;){for(var d=0;d<r.length;d++)l[(s=r[d]).id()]=D_e(s,t,a.distance,a.attributes,"kMedoids");for(var h=!1,p=0;p<t.length;p++){var g=O_e(p,r,l);if(0!==g.length){c[p]=z_e(t[p],g,a.attributes);for(var f=0;f<g.length;f++)(i=z_e(g[f],g,a.attributes))<c[p]&&(c[p]=i,t[p]=g[f],h=!0);o[p]=n.collection(g)}}u++}return o},"kMedoids"),H_e=mt(function(e,t,i,n,r){for(var s=0;s<t.length;s++)for(var a=0;a<e.length;a++)n[s][a]=Math.pow(i[s][a],r.m);for(var o=0;o<e.length;o++)for(var l=0;l<r.attributes.length;l++){for(var c=0,h=0,u=0;u<t.length;u++)c+=n[u][o]*r.attributes[l](t[u]),h+=n[u][o];e[o][l]=c/h}},"updateCentroids"),U_e=mt(function(e,t,i,n,r){for(var s=0;s<e.length;s++)t[s]=e[s].slice();for(var a,o,l=2/(r.m-1),c=0;c<i.length;c++)for(var h=0;h<n.length;h++){for(var u=0,d=0;d<i.length;d++)a=I_e(r.distance,n[h],i[c],r.attributes,"cmeans"),o=I_e(r.distance,n[h],i[d],r.attributes,"cmeans"),u+=Math.pow(a/o,l);e[h][c]=1/u}},"updateMembership"),q_e=mt(function(e,t,i,n){for(var r=new Array(i.k),s=0;s<r.length;s++)r[s]=[];for(var a=0;a<t.length;a++){for(var o=-1/0,l=-1,c=0;c<t[0].length;c++)t[a][c]>o&&(o=t[a][c],l=c);r[l].push(e[a])}for(var h=0;h<r.length;h++)r[h]=n.collection(r[h]);return r},"assign"),XEe=mt(function(e){for(var t=this.cy(),i=this.nodes(),n=M_e(e),r=new Array(i.length),s=0;s<i.length;s++)r[s]=new Array(n.k);for(var a=new Array(i.length),o=0;o<i.length;o++)a[o]=new Array(n.k);for(var l=0;l<i.length;l++){for(var c=0,h=0;h<n.k;h++)a[l][h]=Math.random(),c+=a[l][h];for(var u=0;u<n.k;u++)a[l][u]=a[l][u]/c}for(var d=new Array(n.k),p=0;p<n.k;p++)d[p]=new Array(n.attributes.length);for(var g=new Array(i.length),f=0;f<i.length;f++)g[f]=new Array(n.k);for(var m=!0,y=0;m&&y<n.maxIterations;)m=!1,H_e(d,i,a,g,n),U_e(a,r,d,i,n),B_e(a,r,n.sensitivityThreshold)||(m=!0),y++;return{clusters:q_e(i,a,n,t),degreeOfMembership:a}},"fuzzyCMeans"),W_e=BTe({distance:"euclidean",linkage:"min",mode:"threshold",threshold:1/0,addDendrogram:!(BEe={kMeans:BEe,kMedoids:$Ee,fuzzyCMeans:XEe,fcm:XEe}),dendrogramDepth:0,attributes:[]}),V_e={single:"min",complete:"max"},G_e=mt(function(e){var e=W_e(e),t=V_e[e.linkage];return null!=t&&(e.linkage=t),e},"setOptions"),Y_e=mt(function(e,t,i,n,r){for(var s,a=0,o=1/0,l=r.attributes,c=mt(function(t,i){return y6e(r.distance,l.length,function(e){return l[e](t)},function(e){return l[e](i)},t,i)},"getDist"),h=0;h<e.length;h++){var u=e[h].key,d=i[u][n[u]];d<o&&(a=u,o=d)}if("threshold"===r.mode&&o>=r.threshold||"dendrogram"===r.mode&&1===e.length)return!1;var p=t[a],g=t[n[a]],f="dendrogram"===r.mode?{left:p,right:g,key:p.key}:{value:p.value.concat(g.value),key:p.key};e[p.index]=f,e.splice(g.index,1),t[p.key]=f;for(var m=0;m<e.length;m++){var y=e[m];p.key===y.key?s=1/0:"min"===r.linkage?(s=i[p.key][y.key],i[p.key][y.key]>i[g.key][y.key]&&(s=i[g.key][y.key])):"max"===r.linkage?(s=i[p.key][y.key],i[p.key][y.key]<i[g.key][y.key]&&(s=i[g.key][y.key])):s="mean"===r.linkage?(i[p.key][y.key]*p.size+i[g.key][y.key]*g.size)/(p.size+g.size):"dendrogram"===r.mode?c(y.value,p.value):c(y.value[0],p.value[0]),i[p.key][y.key]=i[y.key][p.key]=s}for(var b=0;b<e.length;b++){var v=e[b].key;if(n[v]===p.key||n[v]===g.key){for(var x=v,w=0;w<e.length;w++){var k=e[w].key;i[v][k]<i[v][x]&&(x=k)}n[v]=x}e[b].index=b}return!(p.key=g.key=p.index=g.index=null)},"mergeClosest"),X_e=mt(function e(t,i,n){t&&(t.value?i.push(t.value):(t.left&&e(t.left,i),t.right&&e(t.right,i)))},"getAllChildren"),K_e=mt(function e(t,i){var n,r,s;return t?t.left&&t.right?(n=e(t.left,i),r=e(t.right,i),s=i.add({group:"nodes",data:{id:n+","+r}}),i.add({group:"edges",data:{source:n,target:s.id()}}),i.add({group:"edges",data:{source:r,target:s.id()}}),s.id()):t.value?t.value.id():void 0:""},"buildDendrogram"),Z_e=mt(function e(t,i,n){var r,s,a;return t?(r=[],s=[],a=[],0===i?(t.left&&X_e(t.left,r),t.right&&X_e(t.right,s),a=r.concat(s),[n.collection(a)]):1===i?t.value?[n.collection(t.value)]:(t.left&&X_e(t.left,r),t.right&&X_e(t.right,s),[n.collection(r),n.collection(s)]):t.value?[n.collection(t.value)]:(t.left&&(r=e(t.left,i-1,n)),t.right&&(s=e(t.right,i-1,n)),r.concat(s))):[]},"buildClustersFromTree"),$Ee=mt(function(e){for(var i=this.cy(),t=this.nodes(),n=G_e(e),r=n.attributes,s=mt(function(t,i){return y6e(n.distance,r.length,function(e){return r[e](t)},function(e){return r[e](i)},t,i)},"getDist"),a=[],o=[],l=[],c=[],h=0;h<t.length;h++){var u={value:"dendrogram"===n.mode?t[h]:[t[h]],key:h,index:h};c[h]=a[h]=u,o[h]=[],l[h]=0}for(var d=0;d<a.length;d++)for(var p=0;p<=d;p++){var g=void 0,g="dendrogram"===n.mode?d===p?1/0:s(a[d].value,a[p].value):d===p?1/0:s(a[d].value[0],a[p].value[0]);o[d][p]=g,(o[p][d]=g)<o[d][l[d]]&&(l[d]=p)}for(var f,m=Y_e(a,c,o,l,n);m;)m=Y_e(a,c,o,l,n);return"dendrogram"===n.mode?(f=Z_e(a[0],n.dendrogramDepth,i),n.addDendrogram&&K_e(a[0],i)):(f=new Array(a.length),a.forEach(function(e,t){e.key=e.index=null,f[t]=i.collection(e.value)})),f},"hierarchicalClustering"),XEe={hierarchicalClustering:$Ee,hca:$Ee},Q_e=BTe({distance:"euclidean",preference:"median",damping:.8,maxIterations:1e3,minIterations:100,attributes:[]}),J_e=mt(function(e){var t=e.damping,i=e.preference,t=(.5<=t&&t<1||$Te("Damping must range on [0.5, 1). Got: ".concat(t)),["median","mean","min","max"]);return t.some(function(e){return e===i})||se(i)||$Te("Preference must be one of [".concat(t.map(function(e){return"'".concat(e,"'")}).join(", "),"] or a number. Got: ").concat(i)),Q_e(e)},"setOptions"),eCe=mt(function(e,t,i,n){var r=mt(function(e,t){return n[t](e)},"attr");return-y6e(e,n.length,function(e){return r(t,e)},function(e){return r(i,e)},t,i)},"getSimilarity"),tCe=mt(function(e,t){return"median"===t?lSe(e):"mean"===t?oSe(e):"min"===t?sSe(e):"max"===t?aSe(e):t},"getPreference"),iCe=mt(function(e,t,i){for(var n=[],r=0;r<e;r++)0<t[r*e+r]+i[r*e+r]&&n.push(r);return n},"findExemplars"),nCe=mt(function(e,t,i){for(var n=[],r=0;r<e;r++){for(var s=-1,a=-1/0,o=0;o<i.length;o++){var l=i[o];t[r*e+l]>a&&(a=t[r*e+(s=l)])}0<s&&n.push(s)}for(var c=0;c<i.length;c++)n[i[c]]=i[c];return n},"assignClusters"),rCe=mt(function(e,t,i){for(var n=nCe(e,t,i),r=0;r<i.length;r++){for(var s=[],a=0;a<n.length;a++)n[a]===i[r]&&s.push(a);for(var o=-1,l=-1/0,c=0;c<s.length;c++){for(var h=0,u=0;u<s.length;u++)h+=t[s[u]*e+s[c]];l<h&&(o=c,l=h)}i[r]=s[o]}return n=nCe(e,t,i)},"assign"),$Ee=mt(function(O){for(var P=this.cy(),e=this.nodes(),t=J_e(O),B={},i=0;i<e.length;i++)B[e[i].id()]=i;for(var n,r=(n=e.length)*n,s=new Array(r),a=0;a<r;a++)s[a]=-1/0;for(var o=0;o<n;o++)for(var l=0;l<n;l++)o!==l&&(s[o*n+l]=eCe(t.distance,e[o],e[l],t.attributes));for(var F=tCe(s,t.preference),c=0;c<n;c++)s[c*n+c]=F;for(var h=new Array(r),u=0;u<r;u++)h[u]=0;for(var d=new Array(r),p=0;p<r;p++)d[p]=0;for(var g=new Array(n),f=new Array(n),m=new Array(n),y=0;y<n;y++)g[y]=0,f[y]=0,m[y]=0;for(var b,v=new Array(n*t.minIterations),j=0;j<v.length;j++)v[j]=0;for(b=0;b<t.maxIterations;b++){for(var x=0;x<n;x++){for(var w,k=-1/0,T=-1/0,S=-1,_=0;_<n;_++)g[_]=h[x*n+_],k<=(w=d[x*n+_]+s[x*n+_])?(T=k,k=w,S=_):T<w&&(T=w);for(var C=0;C<n;C++)h[x*n+C]=(1-t.damping)*(s[x*n+C]-k)+t.damping*g[C];h[x*n+S]=(1-t.damping)*(s[x*n+S]-T)+t.damping*g[S]}for(var A=0;A<n;A++){for(var E=0,$=0;$<n;$++)g[$]=d[$*n+A],f[$]=Math.max(0,h[$*n+A]),E+=f[$];E-=f[A],f[A]=h[A*n+A],E+=f[A];for(var L=0;L<n;L++)d[L*n+A]=(1-t.damping)*Math.min(0,E-f[L])+t.damping*g[L];d[A*n+A]=(1-t.damping)*(E-f[A])+t.damping*g[A]}for(var z=0,R=0;R<n;R++){var H=0<d[R*n+R]+h[R*n+R]?1:0;z+=v[b%t.minIterations*n+R]=H}if(0<z&&(b>=t.minIterations-1||b==t.maxIterations-1)){for(var U=0,M=0;M<n;M++){for(var q=m[M]=0;q<t.minIterations;q++)m[M]+=v[q*n+M];0!==m[M]&&m[M]!==t.minIterations||U++}if(U===n)break}}for(var I=iCe(n,h,d),W=rCe(n,s,I),V={},G=0;G<I.length;G++)V[I[G]]=[];for(var N=0;N<e.length;N++){var Y=W[B[e[N].id()]];null!=Y&&V[Y].push(e[N])}for(var X=new Array(I.length),D=0;D<I.length;D++)X[D]=P.collection(V[I[D]]);return X},"affinityPropagation"),sCe=BTe({root:void 0,directed:!($Ee={affinityPropagation:$Ee,ap:$Ee})}),jEe={hierholzer:mt(function(e){tke(e)||(e={root:(i=arguments)[0],directed:i[1]});var s,a,t,i=sCe(e),e=i.root,o=i.directed,l=!1,c=(e&&(t=(Q7e(e)?this.filter(e):e)[0].id()),{}),h={},n=(o?this.forEach(function(e){var t,i,n,r=e.id();e.isNode()?(i=e.indegree(!0),n=(t=e.outdegree(!0))-i,1==(i=i-t)?s?l=!0:s=r:1==n?a?l=!0:a=r:(1<n||1<i)&&(l=!0),c[r]=[],e.outgoers().forEach(function(e){e.isEdge()&&c[r].push(e.id())})):h[r]=[void 0,e.target().id()]}):this.forEach(function(e){var t=e.id();e.isNode()?(e.degree(!0)%2&&(s?a?l=!0:a=t:s=t),c[t]=[],e.connectedEdges().forEach(function(e){return c[t].push(e.id())})):h[t]=[e.source().id(),e.target().id()]}),{found:!1,trail:void 0});if(!l){if(a&&s)if(o){if(t&&a!=t)return n;t=a}else{if(t&&a!=t&&s!=t)return n;t=t||a}else t=t||this[0].id();for(var r,u=mt(function(e){for(var t,i,n,r=e,s=[e];c[r].length;)t=c[r].shift(),i=h[t][0],r!=(n=h[t][1])?(c[n]=c[n].filter(function(e){return e!=t}),r=n):o||r==i||(c[i]=c[i].filter(function(e){return e!=t}),r=i),s.unshift(t),s.unshift(r);return s},"walk"),d=[],p=[],p=u(t);1!=p.length;)0==c[p[0]].length?(d.unshift(this.getElementById(p.shift())),d.unshift(this.getElementById(p.shift()))):p=u(p.shift()).concat(p);for(r in d.unshift(this.getElementById(p.shift())),c)if(c[r].length)return n;n.found=!0,n.trail=this.spawn(d,!0)}return n},"hierholzer")},b$e=mt(function(){var o=this,l={},c=0,h=0,u=[],d=[],p={},g=mt(function(e,t){for(var i=d.length-1,n=[],r=o.spawn();d[i].x!=e||d[i].y!=t;)n.push(d.pop().edge),i--;n.push(d.pop().edge),n.forEach(function(e){var t=e.connectedNodes().intersection(o);r.merge(e),t.forEach(function(e){var t=e.id(),i=e.connectedEdges().intersection(o);r.merge(e),l[t].cutVertex?r.merge(i.filter(function(e){return e.isLoop()})):r.merge(i)})}),u.push(r)},"buildComponent"),t=mt(function t(i,n,r){i===r&&(h+=1),l[n]={id:c,low:c++,cutVertex:!1};var s,a,e=o.getElementById(n).connectedEdges().intersection(o);0===e.size()?u.push(o.spawn(o.getElementById(n))):e.forEach(function(e){a=e.source().id(),s=e.target().id(),(s=a===n?s:a)!==r&&(a=e.id(),p[a]||(p[a]=!0,d.push({x:n,y:s,edge:e})),s in l?l[n].low=Math.min(l[n].low,l[s].id):(t(i,s,n),l[n].low=Math.min(l[n].low,l[s].low),l[n].id<=l[s].low&&(l[n].cutVertex=!0,g(n,s))))})},"biconnectedSearch"),e=(o.forEach(function(e){!e.isNode()||(e=e.id())in l||(h=0,t(e,e),l[e].cutVertex=1<h)}),Object.keys(l).filter(function(e){return l[e].cutVertex}).map(function(e){return o.getElementById(e)}));return{cut:o.spawn(e),components:u}},"hopcroftTarjanBiconnected"),b$e={hopcroftTarjanBiconnected:b$e,htbc:b$e,htb:b$e,hopcroftTarjanBiconnectedComponents:b$e},c$e=mt(function(){var s=this,a={},o=0,l=[],c=[],h=s.spawn(s),t=mt(function t(i){if(c.push(i),a[i]={index:o,low:o++,explored:!1},s.getElementById(i).connectedEdges().intersection(s).forEach(function(e){e=e.target().id();e!==i&&(e in a||t(e),a[e].explored||(a[i].low=Math.min(a[i].low,a[e].low)))}),a[i].index===a[i].low){for(var e=s.spawn();;){var n=c.pop();if(e.merge(s.getElementById(n)),a[n].low=a[i].index,a[n].explored=!0,n===i)break}var r=e.edgesWith(e),r=e.merge(r);l.push(r),h=h.difference(r)}},"stronglyConnectedSearch");return s.forEach(function(e){!e.isNode()||(e=e.id())in a||t(e)}),{cut:h,components:l}},"tarjanStronglyConnected"),aCe={},[Q,KEe,v$e,_$e,JEe,h$e,y$e,GEe,nEe,J,YEe,ZEe,BEe,XEe,$Ee,jEe,b$e,{tarjanStronglyConnected:c$e,tsc:c$e,tscc:c$e,tarjanStronglyConnectedComponents:c$e}].forEach(function(e){Ske(aCe,e)}),oCe=0,(lCe=mt(function e(t){if(!(this instanceof e))return new e(t);this.id="Thenable/1.0.7",this.state=oCe,this.fulfillValue=void 0,this.rejectReason=void 0,this.onFulfilled=[],this.onRejected=[],this.proxy={then:this.then.bind(this)},"function"==typeof t&&t.call(this,this.fulfill.bind(this),this.reject.bind(this))},"api")).prototype={fulfill:mt(function(e){return cCe(this,1,"fulfillValue",e)},"fulfill"),reject:mt(function(e){return cCe(this,2,"rejectReason",e)},"reject"),then:mt(function(e,t){var i=new lCe;return this.onFulfilled.push(dCe(e,i,"fulfill")),this.onRejected.push(dCe(t,i,"reject")),hCe(this),i.proxy},"then")},cCe=mt(function(e,t,i,n){return e.state===oCe&&(e.state=t,e[i]=n,hCe(e)),e},"deliver"),hCe=mt(function(e){1===e.state?uCe(e,"onFulfilled",e.fulfillValue):2===e.state&&uCe(e,"onRejected",e.rejectReason)},"execute"),uCe=mt(function(e,t,i){var n;0!==e[t].length&&(n=e[t],e[t]=[],e=mt(function(){for(var e=0;e<n.length;e++)n[e](i)},"func"),"function"==typeof setImmediate?setImmediate(e):setTimeout(e,0))},"execute_handlers"),dCe=mt(function(i,n,r){return function(e){if("function"!=typeof i)n[r].call(n,e);else{var t;try{t=i(e)}catch(e){return void n.reject(e)}pCe(n,t)}}},"resolver"),pCe=mt(function t(i,n){if(i===n||i.proxy===n)i.reject(new TypeError("cannot resolve promise with itself"));else{var e;if("object"===qwe(n)&&null!==n||"function"==typeof n)try{e=n.then}catch(e){return void i.reject(e)}if("function"==typeof e){var r=!1;try{e.call(n,function(e){r||(r=!0,e===n?i.reject(new TypeError("circular thenable chain")):t(i,e))},function(e){r||(r=!0,i.reject(e))})}catch(e){r||i.reject(e)}}else i.fulfill(n)}},"resolve"),lCe.all=function(o){return new lCe(function(i,n){for(var r=new Array(o.length),s=0,a=mt(function(e,t){r[e]=t,++s===o.length&&i(r)},"fulfill"),e=0;e<o.length;e++)!function(t){var e=o[t];null!=e&&null!=e.then?e.then(function(e){a(t,e)},function(e){n(e)}):a(t,e)}(e)})},lCe.resolve=function(i){return new lCe(function(e,t){e(i)})},lCe.reject=function(i){return new lCe(function(e,t){t(i)})},gCe=typeof Promise<"u"?Promise:lCe,fCe=mt(function(e,t,i){var n=lke(e),r=!n,t=this._private=Ske({duration:1e3},t,i);t.target=e,t.style=t.style||t.css,t.started=!1,t.playing=!1,t.hooked=!1,t.applying=!1,t.progress=0,t.completes=[],t.frames=[],t.complete&&J7e(t.complete)&&t.completes.push(t.complete),r&&(i=e.position(),t.startPosition=t.startPosition||{x:i.x,y:i.y},t.startStyle=t.startStyle||e.cy().style().getAnimationStartStyle(e,t.style)),n&&(r=e.pan(),t.startPan={x:r.x,y:r.y},t.startZoom=e.zoom()),this.length=1,this[0]=this},"Animation"),Q=fCe.prototype,Ske(Q,{instanceString:mt(function(){return"animation"},"instanceString"),hook:mt(function(){var e,t=this._private;return t.hooked||(e=t.target._private.animation,(t.queue?e.queue:e.current).push(this),ske(t.target)&&t.target.cy().addToAnimationPool(t.target),t.hooked=!0),this},"hook"),play:mt(function(){var e=this._private;return 1===e.progress&&(e.progress=0),e.playing=!0,e.started=!1,e.stopped=!1,this.hook(),this},"play"),playing:mt(function(){return this._private.playing},"playing"),apply:mt(function(){var e=this._private;return e.applying=!0,e.started=!1,e.stopped=!1,this.hook(),this},"apply"),applying:mt(function(){return this._private.applying},"applying"),pause:mt(function(){var e=this._private;return e.playing=!1,e.started=!1,this},"pause"),stop:mt(function(){var e=this._private;return e.playing=!1,e.started=!1,e.stopped=!0,this},"stop"),rewind:mt(function(){return this.progress(0)},"rewind"),fastforward:mt(function(){return this.progress(1)},"fastforward"),time:mt(function(e){var t=this._private;return void 0===e?t.progress*t.duration:this.progress(e/t.duration)},"time"),progress:mt(function(e){var t=this._private,i=t.playing;return void 0===e?t.progress:(i&&this.pause(),t.progress=e,t.started=!1,i&&this.play(),this)},"progress"),completed:mt(function(){return 1===this._private.progress},"completed"),reverse:mt(function(){var n=this._private,e=n.playing,t=(e&&this.pause(),n.progress=1-n.progress,n.started=!1,mt(function(e,t){var i=n[e];null!=i&&(n[e]=n[t],n[t]=i)},"swap"));if(t("zoom","startZoom"),t("pan","startPan"),t("position","startPosition"),n.style)for(var i=0;i<n.style.length;i++){var r=n.style[i],s=r.name,a=n.startStyle[s];n.startStyle[s]=r,n.style[i]=a}return e&&this.play(),this},"reverse"),promise:mt(function(e){var i,t=this._private;switch(e){case"frame":i=t.frames;break;default:case"complete":case"completed":i=t.completes}return new gCe(function(e,t){i.push(function(){e()})})},"promise")}),Q.complete=Q.completed,Q.run=Q.play,Q.running=Q.playing,KEe={animated:mt(function(){return mt(function(){var e=void 0!==this.length?this:[this];return!!(this._private.cy||this).styleEnabled()&&((e=e[0])?0<e._private.animation.current.length:void 0)},"animatedImpl")},"animated"),clearQueue:mt(function(){return mt(function(){var e=void 0!==this.length?this:[this];if((this._private.cy||this).styleEnabled())for(var t=0;t<e.length;t++)e[t]._private.animation.queue=[];return this},"clearQueueImpl")},"clearQueue"),delay:mt(function(){return mt(function(e,t){return(this._private.cy||this).styleEnabled()?this.animate({delay:e,duration:e,complete:t}):this},"delayImpl")},"delay"),delayAnimation:mt(function(){return mt(function(e,t){return(this._private.cy||this).styleEnabled()?this.animation({delay:e,duration:e,complete:t}):this},"delayAnimationImpl")},"delayAnimation"),animation:mt(function(){return mt(function(e,t){var i=void 0!==this.length,n=i?this:[this],r=this._private.cy||this,i=!i,s=!i;if(!r.styleEnabled())return this;var a=r.style(),t=(e=Ske({},e,t),0===Object.keys(e).length);if(!t){switch(void 0===e.duration&&(e.duration=400),e.duration){case"slow":e.duration=600;break;case"fast":e.duration=200}s&&(e.style=a.getPropsList(e.style||e.css),e.css=void 0),s&&null!=e.renderedPosition&&(t=e.renderedPosition,a=r.pan(),s=r.zoom(),e.position=nSe(t,s,a)),i&&null!=e.panBy&&(t=e.panBy,s=r.pan(),e.pan={x:s.x+t.x,y:s.y+t.y});var a=e.center||e.centre;i&&null!=a&&null!=(s=r.getCenterPan(a.eles,e.zoom))&&(e.pan=s),i&&null!=e.fit&&(t=e.fit,null!=(a=r.getFitViewport(t.eles||t.boundingBox,t.padding)))&&(e.pan=a.pan,e.zoom=a.zoom),i&&tke(e.zoom)&&(null!=(s=r.getZoomedViewport(e.zoom))?(s.zoomed&&(e.zoom=s.zoom),s.panned&&(e.pan=s.pan)):e.zoom=null)}return new fCe(n[0],e)},"animationImpl")},"animation"),animate:mt(function(){return mt(function(e,t){var i=void 0!==this.length?this:[this];if((this._private.cy||this).styleEnabled()){t&&(e=Ske({},e,t));for(var n=0;n<i.length;n++){var r=i[n],s=r.animated()&&(void 0===e.queue||e.queue);r.animation(e,s?{queue:!0}:void 0).play()}}return this},"animateImpl")},"animate"),stop:mt(function(){return mt(function(e,t){var i=void 0!==this.length?this:[this],n=this._private.cy||this;if(n.styleEnabled()){for(var r=0;r<i.length;r++){for(var s=i[r]._private,a=s.animation.current,o=0;o<a.length;o++){var l=a[o]._private;t&&(l.duration=0)}e&&(s.animation.queue=[]),t||(s.animation.current=[])}n.notify("draw")}return this},"stopImpl")},"stop")},v$e=Array.isArray,mCe=v$e,yCe=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,bCe=/^\w*$/,mt(b6e,"isKey"),vCe=b6e,mt(v6e,"isFunction"),xCe=v6e,_$e=Dke["__core-js_shared__"],a=/[^.]+$/.exec((JEe=_$e)&&JEe.keys&&JEe.keys.IE_PROTO||""),wCe=a?"Symbol(src)_1."+a:"",mt(x6e,"isMasked"),kCe=x6e,h$e=Function.prototype,TCe=h$e.toString,mt(w6e,"toSource"),SCe=w6e,y$e=/[\\^$.*+?()[\]{}|]/g,_Ce=/^\[object .+?Constructor\]$/,GEe=Function.prototype,nEe=Object.prototype,J=GEe.toString,YEe=nEe.hasOwnProperty,CCe=RegExp("^"+J.call(YEe).replace(y$e,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),mt(k6e,"baseIsNative"),ACe=k6e,mt(T6e,"getValue$1"),ECe=T6e,mt(S6e,"getNative"),ZEe=($Ce=S6e)(Object,"create"),LCe=ZEe,mt(_6e,"hashClear"),BEe=_6e,mt(C6e,"hashDelete"),XEe=C6e,$Ee=Object.prototype,RCe=$Ee.hasOwnProperty,mt(A6e,"hashGet"),jEe=A6e,b$e=Object.prototype,MCe=b$e.hasOwnProperty,mt(E6e,"hashHas"),c$e=E6e,mt($6e,"hashSet"),Q=$6e,mt(L6e,"Hash"),L6e.prototype.clear=BEe,L6e.prototype.delete=XEe,L6e.prototype.get=jEe,L6e.prototype.has=c$e,L6e.prototype.set=Q,ICe=L6e,mt(R6e,"listCacheClear"),v$e=R6e,mt(M6e,"eq"),NCe=M6e,mt(I6e,"assocIndexOf"),DCe=I6e,_$e=Array.prototype,OCe=_$e.splice,mt(N6e,"listCacheDelete"),JEe=N6e,mt(D6e,"listCacheGet"),h$e=D6e,mt(O6e,"listCacheHas"),GEe=O6e,mt(P6e,"listCacheSet"),nEe=P6e,mt(B6e,"ListCache"),B6e.prototype.clear=v$e,B6e.prototype.delete=JEe,B6e.prototype.get=h$e,B6e.prototype.has=GEe,B6e.prototype.set=nEe,PCe=B6e,J=$Ce(Dke,"Map"),BCe=J,mt(F6e,"mapCacheClear"),YEe=F6e,mt(j6e,"isKeyable"),FCe=j6e,mt(z6e,"getMapData"),jCe=z6e,mt(H6e,"mapCacheDelete"),y$e=H6e,mt(U6e,"mapCacheGet"),ZEe=U6e,mt(q6e,"mapCacheHas"),$Ee=q6e,mt(W6e,"mapCacheSet"),b$e=W6e,mt(V6e,"MapCache"),V6e.prototype.clear=YEe,V6e.prototype.delete=y$e,V6e.prototype.get=ZEe,V6e.prototype.has=$Ee,V6e.prototype.set=b$e,zCe=V6e,HCe="Expected a function",mt(G6e,"memoize"),G6e.Cache=zCe,UCe=G6e,mt(Y6e,"memoizeCapped"),qCe=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,WCe=/\\(\\)?/g,BEe=Y6e(function(e){var r=[];return 46===e.charCodeAt(0)&&r.push(""),e.replace(qCe,function(e,t,i,n){r.push(i?n.replace(WCe,"$1"):t||e)}),r}),VCe=BEe,mt(X6e,"arrayMap"),GCe=X6e,YCe=1/0,XEe=QEe?QEe.prototype:void 0,XCe=XEe?XEe.toString:void 0,mt(K6e,"baseToString"),KCe=K6e,mt(Z6e,"toString$1"),ZCe=Z6e,mt(Q6e,"castPath"),QCe=Q6e,mt(J6e,"toKey"),JCe=J6e,mt(e8e,"baseGet"),eAe=e8e,mt(t8e,"get"),tAe=t8e,jEe=function(){try{var e=$Ce(Object,"defineProperty");return e({},"",{}),e}catch{}}(),iAe=jEe,mt(i8e,"baseAssignValue"),nAe=i8e,c$e=Object.prototype,rAe=c$e.hasOwnProperty,mt(n8e,"assignValue"),sAe=n8e,aAe=/^(?:0|[1-9]\d*)$/,mt(r8e,"isIndex"),oAe=r8e,mt(s8e,"baseSet"),lAe=s8e,mt(a8e,"set"),cAe=a8e,mt(o8e,"copyArray"),hAe=o8e,mt(l8e,"toPath"),uAe=l8e,Q={data:mt(function(x){var e={field:"data",bindingEvent:"data",allowBinding:!1,allowSetting:!1,allowGetting:!1,settingEvent:"data",settingTriggersEvent:!1,triggerFnName:"trigger",immutableKeys:{},updateStyle:!1,beforeGet:mt(function(e){},"beforeGet"),beforeSet:mt(function(e,t){},"beforeSet"),onSet:mt(function(e){},"onSet"),canSet:mt(function(e){return!0},"canSet")};return x=Ske({},e,x),mt(function(e,t){var i,n=x,r=this,s=void 0!==r.length,a=s?r:[r],o=s?r[0]:r;if(Q7e(e)){var l,c=-1!==e.indexOf(".")&&uAe(e);if(n.allowGetting&&void 0===t)return o&&(n.beforeGet(o),l=c&&void 0===o._private[n.field][e]?tAe(o._private[n.field],c):o._private[n.field][e]),l;if(n.allowSetting&&void 0!==t&&!n.immutableKeys[e]){s=Ywe({},e,t);n.beforeSet(r,s);for(var h=0,u=a.length;h<u;h++){var d=a[h];n.canSet(d)&&(c&&void 0===o._private[n.field][e]?cAe(d._private[n.field],c,t):d._private[n.field][e]=t)}n.updateStyle&&r.updateStyle(),n.onSet(r),n.settingTriggersEvent&&r[n.triggerFnName](n.settingEvent)}}else if(n.allowSetting&&tke(e)){var p=e,g=Object.keys(p);n.beforeSet(r,p);for(var f=0;f<g.length;f++){var m,y=p[m=g[f]];if(!n.immutableKeys[m])for(var b=0;b<a.length;b++){var v=a[b];n.canSet(v)&&(v._private[n.field][m]=y)}}n.updateStyle&&r.updateStyle(),n.onSet(r),n.settingTriggersEvent&&r[n.triggerFnName](n.settingEvent)}else if(n.allowBinding&&J7e(e))r.on(n.bindingEvent,e);else if(n.allowGetting&&void 0===e)return o&&(n.beforeGet(o),i=o._private[n.field]),i;return r},"dataImpl")},"data"),removeData:mt(function(f){return f=Ske({},{field:"data",event:"data",triggerFnName:"trigger",triggerEvent:!1,immutableKeys:{}},f),mt(function(e){var t=f,i=void 0!==this.length?this:[this];if(Q7e(e)){for(var n=e.split(/\s+/),r=n.length,s=0;s<r;s++){var a=n[s];if(!uke(a))if(!t.immutableKeys[a])for(var o=0,l=i.length;o<l;o++)i[o]._private[t.field][a]=void 0}t.triggerEvent&&this[t.triggerFnName](t.event)}else if(void 0===e){for(var c=0,h=i.length;c<h;c++)for(var u=i[c]._private[t.field],d=Object.keys(u),p=0;p<d.length;p++){var g=d[p];!t.immutableKeys[g]&&(u[g]=void 0)}t.triggerEvent&&this[t.triggerFnName](t.event)}return this},"removeDataImpl")},"removeData")},_$e={eventAliasesOn:mt(function(e){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(e,t){var r=this,s=Array.prototype.slice.call(arguments,0);return new gCe(function(t,e){var i=mt(function(e){r.off.apply(r,n),t(e)},"callback"),i=s.concat([i]),n=i.concat([]);r.on.apply(r,i)})}},"eventAliasesOn")},dAe={},[KEe,Q,_$e].forEach(function(e){Ske(dAe,e)}),v$e={animate:dAe.animate(),animation:dAe.animation(),animated:dAe.animated(),clearQueue:dAe.clearQueue(),delay:dAe.delay(),delayAnimation:dAe.delayAnimation(),stop:dAe.stop()},(JEe={classes:mt(function(e){var t;if(void 0===e)return t=[],this[0]._private.classes.forEach(function(e){return t.push(e)}),t;eke(e)||(e=(e||"").match(/\S+/g)||[]);for(var i=[],n=new WTe(e),r=0;r<this.length;r++){for(var s=this[r],a=s._private,o=a.classes,l=!1,c=0;c<e.length;c++){var h=e[c];if(!o.has(h)){l=!0;break}}(l=l||o.size!==e.length)&&(a.classes=n,i.push(s))}return 0<i.length&&this.spawn(i).updateStyle().emit("class"),this},"classes"),addClass:mt(function(e){return this.toggleClass(e,!0)},"addClass"),hasClass:mt(function(e){var t=this[0];return null!=t&&t._private.classes.has(e)},"hasClass"),toggleClass:mt(function(e,t){eke(e)||(e=e.match(/\S+/g)||[]);for(var i=void 0===t,n=[],r=0,s=this.length;r<s;r++)for(var a=this[r],o=a._private.classes,l=!1,c=0;c<e.length;c++){var h=e[c],u=o.has(h),d=!1;t||i&&!u?(o.add(h),d=!0):(!t||i&&u)&&(o.delete(h),d=!0),!l&&d&&(n.push(a),l=!0)}return 0<n.length&&this.spawn(n).updateStyle().emit("class"),this},"toggleClass"),removeClass:mt(function(e){return this.toggleClass(e,!1)},"removeClass"),flashClass:mt(function(e,t){var i=this;if(null==t)t=250;else if(0===t)return i;return i.addClass(e),setTimeout(function(){i.removeClass(e)},t),i},"flashClass")}).className=JEe.classNames=JEe.classes,(pAe={metaChar:"[\\!\\\"\\#\\$\\%\\&\\'\\(\\)\\*\\+\\,\\.\\/\\:\\;\\<\\=\\>\\?\\@\\[\\]\\^\\`\\{\\|\\}\\~]",comparatorOp:"=|\\!=|>|>=|<|<=|\\$=|\\^=|\\*=",boolOp:"\\?|\\!|\\^",string:`"(?:\\\\"|[^"])*"|'(?:\\\\'|[^'])*'`,number:wke,meta:"degree|indegree|outdegree",separator:"\\s*,\\s*",descendant:"\\s+",child:"\\s+>\\s+",subject:"\\$",group:"node|edge|\\*",directedEdge:"\\s+->\\s+",undirectedEdge:"\\s+<->\\s+"}).variable="(?:[\\w-.]|(?:\\\\"+pAe.metaChar+"))+",pAe.className="(?:[\\w-]|(?:\\\\"+pAe.metaChar+"))+",pAe.value=pAe.string+"|"+pAe.number,pAe.id=pAe.variable;for(var t,i=pAe.comparatorOp.split("|"),r=0;r<i.length;r++)t=i[r],pAe.comparatorOp+="|@"+t;for(i=pAe.comparatorOp.split("|"),r=0;r<i.length;r++)0<=(t=i[r]).indexOf("!")||"="===t||(pAe.comparatorOp+="|\\!"+t);function o(e){return-e.tension*e.x-e.friction*e.v}function l(e,t,i){i={x:e.x+i.dx*t,v:e.v+i.dv*t,tension:e.tension,friction:e.friction};return{dx:i.v,dv:o(i)}}function h(e,t){var i={dx:e.v,dv:o(e)},n=l(e,.5*t,i),r=l(e,.5*t,n),s=l(e,t,r),a=1/6*(i.dx+2*(n.dx+r.dx)+s.dx),i=1/6*(i.dv+2*(n.dv+r.dv)+s.dv);return e.x=e.x+a*t,e.v=e.v+i*t,e}gAe=mt(function(){return{checks:[]}},"newQuery"),Y={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},fAe=[{selector:":selected",matches:mt(function(e){return e.selected()},"matches")},{selector:":unselected",matches:mt(function(e){return!e.selected()},"matches")},{selector:":selectable",matches:mt(function(e){return e.selectable()},"matches")},{selector:":unselectable",matches:mt(function(e){return!e.selectable()},"matches")},{selector:":locked",matches:mt(function(e){return e.locked()},"matches")},{selector:":unlocked",matches:mt(function(e){return!e.locked()},"matches")},{selector:":visible",matches:mt(function(e){return e.visible()},"matches")},{selector:":hidden",matches:mt(function(e){return!e.visible()},"matches")},{selector:":transparent",matches:mt(function(e){return e.transparent()},"matches")},{selector:":grabbed",matches:mt(function(e){return e.grabbed()},"matches")},{selector:":free",matches:mt(function(e){return!e.grabbed()},"matches")},{selector:":removed",matches:mt(function(e){return e.removed()},"matches")},{selector:":inside",matches:mt(function(e){return!e.removed()},"matches")},{selector:":grabbable",matches:mt(function(e){return e.grabbable()},"matches")},{selector:":ungrabbable",matches:mt(function(e){return!e.grabbable()},"matches")},{selector:":animated",matches:mt(function(e){return e.animated()},"matches")},{selector:":unanimated",matches:mt(function(e){return!e.animated()},"matches")},{selector:":parent",matches:mt(function(e){return e.isParent()},"matches")},{selector:":childless",matches:mt(function(e){return e.isChildless()},"matches")},{selector:":child",matches:mt(function(e){return e.isChild()},"matches")},{selector:":orphan",matches:mt(function(e){return e.isOrphan()},"matches")},{selector:":nonorphan",matches:mt(function(e){return e.isChild()},"matches")},{selector:":compound",matches:mt(function(e){return e.isNode()?e.isParent():e.source().isParent()||e.target().isParent()},"matches")},{selector:":loop",matches:mt(function(e){return e.isLoop()},"matches")},{selector:":simple",matches:mt(function(e){return e.isSimple()},"matches")},{selector:":active",matches:mt(function(e){return e.active()},"matches")},{selector:":inactive",matches:mt(function(e){return!e.active()},"matches")},{selector:":backgrounding",matches:mt(function(e){return e.backgrounding()},"matches")},{selector:":nonbackgrounding",matches:mt(function(e){return!e.backgrounding()},"matches")}].sort(function(e,t){return Tke(e.selector,t.selector)}),mAe=function(){for(var e,t={},i=0;i<fAe.length;i++)t[(e=fAe[i]).selector]=e.matches;return t}(),yAe=mt(function(e,t){return mAe[e](t)},"stateSelectorMatches"),h$e="("+fAe.map(function(e){return e.selector}).join("|")+")",bAe=mt(function(e){return e.replace(new RegExp("\\\\("+pAe.metaChar+")","g"),function(e,t){return t})},"cleanMetaChars"),vAe=mt(function(e,t,i){e[e.length-1]=i},"replaceLastQuery"),(xAe=[{name:"group",query:!0,regex:"("+pAe.group+")",populate:mt(function(e,t,i){i=Xwe(i,1)[0];t.checks.push({type:Y.GROUP,value:"*"===i?i:i+"s"})},"populate")},{name:"state",query:!0,regex:h$e,populate:mt(function(e,t,i){i=Xwe(i,1)[0];t.checks.push({type:Y.STATE,value:i})},"populate")},{name:"id",query:!0,regex:"\\#("+pAe.id+")",populate:mt(function(e,t,i){i=Xwe(i,1)[0];t.checks.push({type:Y.ID,value:bAe(i)})},"populate")},{name:"className",query:!0,regex:"\\.("+pAe.className+")",populate:mt(function(e,t,i){i=Xwe(i,1)[0];t.checks.push({type:Y.CLASS,value:bAe(i)})},"populate")},{name:"dataExists",query:!0,regex:"\\[\\s*("+pAe.variable+")\\s*\\]",populate:mt(function(e,t,i){i=Xwe(i,1)[0];t.checks.push({type:Y.DATA_EXIST,field:bAe(i)})},"populate")},{name:"dataCompare",query:!0,regex:"\\[\\s*("+pAe.variable+")\\s*("+pAe.comparatorOp+")\\s*("+pAe.value+")\\s*\\]",populate:mt(function(e,t,i){var i=Xwe(i,3),n=i[0],r=i[1],i=i[2],i=null!=new RegExp("^"+pAe.string+"$").exec(i)?i.substring(1,i.length-1):parseFloat(i);t.checks.push({type:Y.DATA_COMPARE,field:bAe(n),operator:r,value:i})},"populate")},{name:"dataBool",query:!0,regex:"\\[\\s*("+pAe.boolOp+")\\s*("+pAe.variable+")\\s*\\]",populate:mt(function(e,t,i){var i=Xwe(i,2),n=i[0],i=i[1];t.checks.push({type:Y.DATA_BOOL,field:bAe(i),operator:n})},"populate")},{name:"metaCompare",query:!0,regex:"\\[\\[\\s*("+pAe.meta+")\\s*("+pAe.comparatorOp+")\\s*("+pAe.number+")\\s*\\]\\]",populate:mt(function(e,t,i){var i=Xwe(i,3),n=i[0],r=i[1],i=i[2];t.checks.push({type:Y.META_COMPARE,field:bAe(n),operator:r,value:parseFloat(i)})},"populate")},{name:"nextQuery",separator:!0,regex:pAe.separator,populate:mt(function(e,t){var i=e.currentSubject,n=e.edgeCount,r=e.compoundCount,s=e[e.length-1];return null!=i&&(s.subject=i,e.currentSubject=null),s.edgeCount=n,s.compoundCount=r,e.edgeCount=0,e.compoundCount=0,e[e.length++]=gAe()},"populate")},{name:"directedEdge",separator:!0,regex:pAe.directedEdge,populate:mt(function(e,t){var i,n,r;return null==e.currentSubject?(n=gAe(),i=t,r=gAe(),n.checks.push({type:Y.DIRECTED_EDGE,source:i,target:r}),vAe(e,t,n),e.edgeCount++,r):(i=gAe(),n=t,r=gAe(),i.checks.push({type:Y.NODE_SOURCE,source:n,target:r}),vAe(e,t,i),e.edgeCount++,r)},"populate")},{name:"undirectedEdge",separator:!0,regex:pAe.undirectedEdge,populate:mt(function(e,t){var i,n,r;return null==e.currentSubject?(n=gAe(),i=t,r=gAe(),n.checks.push({type:Y.UNDIRECTED_EDGE,nodes:[i,r]}),vAe(e,t,n),e.edgeCount++,r):(i=gAe(),n=t,r=gAe(),i.checks.push({type:Y.NODE_NEIGHBOR,node:n,neighbor:r}),vAe(e,t,i),r)},"populate")},{name:"child",separator:!0,regex:pAe.child,populate:mt(function(e,t){var i,n,r,s,a,o;return null==e.currentSubject?(o=gAe(),s=gAe(),i=e[e.length-1],o.checks.push({type:Y.CHILD,parent:i,child:s}),vAe(e,t,o),e.compoundCount++,s):e.currentSubject===t?(i=gAe(),o=e[e.length-1],s=gAe(),n=gAe(),r=gAe(),a=gAe(),i.checks.push({type:Y.COMPOUND_SPLIT,left:o,right:s,subject:n}),n.checks=t.checks,t.checks=[{type:Y.TRUE}],a.checks.push({type:Y.TRUE}),s.checks.push({type:Y.PARENT,parent:a,child:r}),vAe(e,o,i),e.currentSubject=n,e.compoundCount++,r):(s=gAe(),a=gAe(),o=[{type:Y.PARENT,parent:s,child:a}],s.checks=t.checks,t.checks=o,e.compoundCount++,a)},"populate")},{name:"descendant",separator:!0,regex:pAe.descendant,populate:mt(function(e,t){var i,n,r,s,a,o;return null==e.currentSubject?(o=gAe(),s=gAe(),i=e[e.length-1],o.checks.push({type:Y.DESCENDANT,ancestor:i,descendant:s}),vAe(e,t,o),e.compoundCount++,s):e.currentSubject===t?(i=gAe(),o=e[e.length-1],s=gAe(),n=gAe(),r=gAe(),a=gAe(),i.checks.push({type:Y.COMPOUND_SPLIT,left:o,right:s,subject:n}),n.checks=t.checks,t.checks=[{type:Y.TRUE}],a.checks.push({type:Y.TRUE}),s.checks.push({type:Y.ANCESTOR,ancestor:a,descendant:r}),vAe(e,o,i),e.currentSubject=n,e.compoundCount++,r):(s=gAe(),a=gAe(),o=[{type:Y.ANCESTOR,ancestor:s,descendant:a}],s.checks=t.checks,t.checks=o,e.compoundCount++,a)},"populate")},{name:"subject",modifier:!0,regex:pAe.subject,populate:mt(function(e,t){if(null!=e.currentSubject&&e.currentSubject!==t)return RTe("Redefinition of subject in selector `"+e.toString()+"`"),!1;e.currentSubject=t;t=e[e.length-1].checks[0],e=null==t?null:t.type;e===Y.DIRECTED_EDGE?t.type=Y.NODE_TARGET:e===Y.UNDIRECTED_EDGE&&(t.type=Y.NODE_NEIGHBOR,t.node=t.nodes[1],t.neighbor=t.nodes[0],t.nodes=null)},"populate")}]).forEach(function(e){return e.regexObj=new RegExp("^"+e.regex)}),wAe=mt(function(e){for(var t=0;t<xAe.length;t++){var i=xAe[t],n=i.name,r=e.match(i.regexObj);if(null!=r){var s=r,a=i,o=n,i=r[0];e=e.substring(i.length);break}}return{expr:a,match:s,name:o,remaining:e}},"consumeExpr"),kAe=mt(function(e){var t=e.match(/^\s+/);return t&&(t=t[0],e=e.substring(t.length)),e},"consumeWhitespace"),GEe=mt(function(e){var t=this,i=t.inputText=e,n=t[0]=gAe();for(t.length=1,i=kAe(i);;){var r=wAe(i);if(null==r.expr)return RTe("The selector `"+e+"`is invalid"),!1;var s=r.match.slice(1),s=r.expr.populate(t,n,s);if(!1===s)return!1;if(null!=s&&(n=s),(i=r.remaining).match(/^\s*$/))break}var a=t[t.length-1];null!=t.currentSubject&&(a.subject=t.currentSubject),a.edgeCount=t.edgeCount,a.compoundCount=t.compoundCount;for(var o=0;o<t.length;o++){var l=t[o];if(0<l.compoundCount&&0<l.edgeCount)return RTe("The selector `"+e+"` is invalid because it uses both a compound selector and an edge selector"),!1;if(1<l.edgeCount)return RTe("The selector `"+e+"` is invalid because it uses multiple edge selectors"),!1;1===l.edgeCount&&RTe("The selector `"+e+"` is deprecated. Edge selectors do not take effect on changes to source and target nodes after an edge is added, for performance reasons. Use a class or data selector on edges instead, updating the class or data of an edge when your app detects a change in source or target nodes.")}return!0},"parse"),nEe=mt(function(){if(null!=this.toStringCache)return this.toStringCache;for(var o=mt(function(e){return e??""},"clean"),l=mt(function(e){return Q7e(e)?'"'+e+'"':o(e)},"cleanVal"),c=mt(function(e){return" "+e+" "},"space"),s=mt(function(e,t){var i=e.type,n=e.value;switch(i){case Y.GROUP:var r=o(n);return r.substring(0,r.length-1);case Y.DATA_COMPARE:var r=e.field,s=e.operator;return"["+r+c(o(s))+l(n)+"]";case Y.DATA_BOOL:r=e.operator,s=e.field;return"["+o(r)+s+"]";case Y.DATA_EXIST:return"["+e.field+"]";case Y.META_COMPARE:r=e.operator;return"[["+e.field+c(o(r))+l(n)+"]]";case Y.STATE:return n;case Y.ID:return"#"+n;case Y.CLASS:return"."+n;case Y.PARENT:case Y.CHILD:return h(e.parent,t)+c(">")+h(e.child,t);case Y.ANCESTOR:case Y.DESCENDANT:return h(e.ancestor,t)+" "+h(e.descendant,t);case Y.COMPOUND_SPLIT:var s=h(e.left,t),r=h(e.subject,t),a=h(e.right,t);return s+(0<s.length?" ":"")+r+a;case Y.TRUE:return""}},"checkToString"),h=mt(function(n,r){return n.checks.reduce(function(e,t,i){return e+(r===n&&0===i?"$":"")+s(t,r)},"")},"queryToString"),e="",t=0;t<this.length;t++){var i=this[t];e+=h(i,i.subject),1<this.length&&t<this.length-1&&(e+=", ")}return this.toStringCache=e},"toString"),J={parse:GEe,toString:nEe},TAe=mt(function(e,t,i){var n,r,s,a=Q7e(e),o=se(e),l=Q7e(i),c=!1,h=!1,u=!1;switch(0<=t.indexOf("!")&&(t=t.replace("!",""),h=!0),0<=t.indexOf("@")&&(t=t.replace("@",""),c=!0),(a||l||c)&&(r=a||o?""+e:"",s=""+i),c&&(e=r=r.toLowerCase(),i=s=s.toLowerCase()),t){case"*=":n=0<=r.indexOf(s);break;case"$=":n=0<=r.indexOf(s,r.length-s.length);break;case"^=":n=0===r.indexOf(s);break;case"=":n=e===i;break;case">":u=!0,n=i<e;break;case">=":u=!0,n=i<=e;break;case"<":u=!0,n=e<i;break;case"<=":u=!0,n=e<=i;break;default:n=!1}return n=!h||null==e&&u?n:!n},"valCmp"),SAe=mt(function(e,t){switch(t){case"?":return!!e;case"!":return!e;case"^":return void 0===e}},"boolCmp"),_Ae=mt(function(e){return void 0!==e},"existCmp"),CAe=mt(function(e,t){return e.data(t)},"data"),AAe=mt(function(e,t){return e[t]()},"meta"),EAe=[],$Ae=mt(function(e,t){return e.checks.every(function(e){return EAe[e.type](e,t)})},"matches"),EAe[Y.GROUP]=function(e,t){e=e.value;return"*"===e||e===t.group()},EAe[Y.STATE]=function(e,t){e=e.value;return yAe(e,t)},EAe[Y.ID]=function(e,t){e=e.value;return t.id()===e},EAe[Y.CLASS]=function(e,t){e=e.value;return t.hasClass(e)},EAe[Y.META_COMPARE]=function(e,t){var i=e.field,n=e.operator,e=e.value;return TAe(AAe(t,i),n,e)},EAe[Y.DATA_COMPARE]=function(e,t){var i=e.field,n=e.operator,e=e.value;return TAe(CAe(t,i),n,e)},EAe[Y.DATA_BOOL]=function(e,t){var i=e.field,e=e.operator;return SAe(CAe(t,i),e)},EAe[Y.DATA_EXIST]=function(e,t){var i=e.field;return e.operator,_Ae(CAe(t,i))},EAe[Y.UNDIRECTED_EDGE]=function(e,t){var i=e.nodes[0],e=e.nodes[1],n=t.source(),t=t.target();return $Ae(i,n)&&$Ae(e,t)||$Ae(e,n)&&$Ae(i,t)},EAe[Y.NODE_NEIGHBOR]=function(t,e){return $Ae(t.node,e)&&e.neighborhood().some(function(e){return e.isNode()&&$Ae(t.neighbor,e)})},EAe[Y.DIRECTED_EDGE]=function(e,t){return $Ae(e.source,t.source())&&$Ae(e.target,t.target())},EAe[Y.NODE_SOURCE]=function(t,e){return $Ae(t.source,e)&&e.outgoers().some(function(e){return e.isNode()&&$Ae(t.target,e)})},EAe[Y.NODE_TARGET]=function(t,e){return $Ae(t.target,e)&&e.incomers().some(function(e){return e.isNode()&&$Ae(t.source,e)})},EAe[Y.CHILD]=function(e,t){return $Ae(e.child,t)&&$Ae(e.parent,t.parent())},EAe[Y.PARENT]=function(t,e){return $Ae(t.parent,e)&&e.children().some(function(e){return $Ae(t.child,e)})},EAe[Y.DESCENDANT]=function(t,e){return $Ae(t.descendant,e)&&e.ancestors().some(function(e){return $Ae(t.ancestor,e)})},EAe[Y.ANCESTOR]=function(t,e){return $Ae(t.ancestor,e)&&e.descendants().some(function(e){return $Ae(t.descendant,e)})},EAe[Y.COMPOUND_SPLIT]=function(e,t){return $Ae(e.subject,t)&&$Ae(e.left,t)&&$Ae(e.right,t)},EAe[Y.TRUE]=function(){return!0},EAe[Y.COLLECTION]=function(e,t){return e.value.has(t)},EAe[Y.FILTER]=function(e,t){return(0,e.value)(t)},YEe=mt(function(e){var t,n=this;return 1===n.length&&1===n[0].checks.length&&n[0].checks[0].type===Y.ID?e.getElementById(n[0].checks[0].value).collection():(t=mt(function(e){for(var t=0;t<n.length;t++){var i=n[t];if($Ae(i,e))return!0}return!1},"selectorFunction"),null==n.text()&&(t=mt(function(){return!0},"selectorFunction")),e.filter(t))},"filter"),y$e=mt(function(e){for(var t=0;t<this.length;t++){var i=this[t];if($Ae(i,e))return!0}return!1},"matches"),ZEe={matches:y$e,filter:YEe},LAe=mt(function(e){this.inputText=e,this.currentSubject=null,this.compoundCount=0,this.edgeCount=0,this.length=0,null==e||Q7e(e)&&e.match(/^\s*$/)||(ske(e)?this.addQuery({checks:[{type:Y.COLLECTION,value:e.collection()}]}):J7e(e)?this.addQuery({checks:[{type:Y.FILTER,value:e}]}):Q7e(e)?this.parse(e)||(this.invalid=!0):$Te("A selector must be created from a string; found "))},"Selector"),RAe=LAe.prototype,[J,ZEe].forEach(function(e){return Ske(RAe,e)}),RAe.text=function(){return this.inputText},RAe.size=function(){return this.length},RAe.eq=function(e){return this[e]},RAe.sameText=function(e){return!this.invalid&&!e.invalid&&this.text()===e.text()},RAe.addQuery=function(e){this[this.length++]=e},RAe.selector=RAe.toString,($Ee={allAre:mt(function(e){var t=new LAe(e);return this.every(function(e){return t.matches(e)})},"allAre"),is:mt(function(e){var t=new LAe(e);return this.some(function(e){return t.matches(e)})},"is"),some:mt(function(e,t){for(var i=0;i<this.length;i++)if(t?e.apply(t,[this[i],i,this]):e(this[i],i,this))return!0;return!1},"some"),every:mt(function(e,t){for(var i=0;i<this.length;i++)if(!(t?e.apply(t,[this[i],i,this]):e(this[i],i,this)))return!1;return!0},"every"),same:mt(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())}))},"same"),anySame:mt(function(t){return t=this.cy().collection(t),this.some(function(e){return t.hasElementWithId(e.id())})},"anySame"),allAreNeighbors:mt(function(e){e=this.cy().collection(e);var t=this.neighborhood();return e.every(function(e){return t.hasElementWithId(e.id())})},"allAreNeighbors"),contains:mt(function(e){e=this.cy().collection(e);var t=this;return e.every(function(e){return t.hasElementWithId(e.id())})},"contains")}).allAreNeighbours=$Ee.allAreNeighbors,$Ee.has=$Ee.contains,$Ee.equal=$Ee.equals=$Ee.same,b$e=mt(function(a,o){return mt(function(e,t,i,n){var r,s=e;return null==s?r="":ske(s)&&1===s.length&&(r=s.id()),1===this.length&&r?(s=(s=(s=this[0]._private).traversalCache=s.traversalCache||{})[o]=s[o]||[])[r=bTe(r)]||(s[r]=a.call(this,e,t,i,n)):a.call(this,e,t,i,n)},"traversalCache")},"cache"),BEe={parent:mt(function(e){var t=[];if(1===this.length){var i=this[0]._private.parent;if(i)return i}for(var n=0;n<this.length;n++){var r=this[n]._private.parent;r&&t.push(r)}return this.spawn(t,!0).filter(e)},"parent"),parents:mt(function(e){for(var t=[],i=this.parent();i.nonempty();){for(var n=0;n<i.length;n++){var r=i[n];t.push(r)}i=i.parent()}return this.spawn(t,!0).filter(e)},"parents"),commonAncestors:mt(function(e){for(var t=0;t<this.length;t++){var i,n=this[t].parents();i=(i=i||n).intersect(n)}return i.filter(e)},"commonAncestors"),orphans:mt(function(e){return this.stdFilter(function(e){return e.isOrphan()}).filter(e)},"orphans"),nonorphans:mt(function(e){return this.stdFilter(function(e){return e.isChild()}).filter(e)},"nonorphans"),children:b$e(function(e){for(var t=[],i=0;i<this.length;i++)for(var n=this[i]._private.children,r=0;r<n.length;r++)t.push(n[r]);return this.spawn(t,!0).filter(e)},"children"),siblings:mt(function(e){return this.parent().children().not(this).filter(e)},"siblings"),isParent:mt(function(){var e=this[0];if(e)return e.isNode()&&0!==e._private.children.length},"isParent"),isChildless:mt(function(){var e=this[0];if(e)return e.isNode()&&0===e._private.children.length},"isChildless"),isChild:mt(function(){var e=this[0];if(e)return e.isNode()&&null!=e._private.parent},"isChild"),isOrphan:mt(function(){var e=this[0];if(e)return e.isNode()&&null==e._private.parent},"isOrphan"),descendants:mt(function(e){var n=[];function r(e){for(var t=0;t<e.length;t++){var i=e[t];n.push(i),i.children().nonempty()&&r(i.children())}}return mt(r,"add"),r(this.children()),this.spawn(n,!0).filter(e)},"descendants")},mt(c8e,"forEachCompound"),mt(h8e,"addChildren"),BEe.forEachDown=function(e){return c8e(this,e,!(1<arguments.length&&void 0!==arguments[1])||arguments[1],h8e)},mt(u8e,"addParent"),BEe.forEachUp=function(e){return c8e(this,e,!(1<arguments.length&&void 0!==arguments[1])||arguments[1],u8e)},mt(d8e,"addParentAndChildren"),BEe.forEachUpAndDown=function(e){return c8e(this,e,!(1<arguments.length&&void 0!==arguments[1])||arguments[1],d8e)},BEe.ancestors=BEe.parents,(XEe=QEe={data:dAe.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:dAe.removeData({field:"data",event:"data",triggerFnName:"trigger",triggerEvent:!0,immutableKeys:{id:!0,source:!0,target:!0,parent:!0},updateStyle:!0}),scratch:dAe.data({field:"scratch",bindingEvent:"scratch",allowBinding:!0,allowSetting:!0,settingEvent:"scratch",settingTriggersEvent:!0,triggerFnName:"trigger",allowGetting:!0,updateStyle:!0}),removeScratch:dAe.removeData({field:"scratch",event:"scratch",triggerFnName:"trigger",triggerEvent:!0,updateStyle:!0}),rscratch:dAe.data({field:"rscratch",allowBinding:!1,allowSetting:!0,settingTriggersEvent:!1,allowGetting:!0}),removeRscratch:dAe.removeData({field:"rscratch",triggerEvent:!1}),id:mt(function(){var e=this[0];if(e)return e._private.data.id},"id")}).attr=XEe.data,XEe.removeAttr=XEe.removeData,jEe=QEe,c$e={},mt(p8e,"defineDegreeFunction"),Ske(c$e,{degree:p8e(function(e,t){return t.source().same(t.target())?2:1}),indegree:p8e(function(e,t){return t.target().same(e)?1:0}),outdegree:p8e(function(e,t){return t.source().same(e)?1:0})}),mt(g8e,"defineDegreeBoundsFunction"),Ske(c$e,{minDegree:g8e("degree",function(e,t){return e<t}),maxDegree:g8e("degree",function(e,t){return t<e}),minIndegree:g8e("indegree",function(e,t){return e<t}),maxIndegree:g8e("indegree",function(e,t){return t<e}),minOutdegree:g8e("outdegree",function(e,t){return e<t}),maxOutdegree:g8e("outdegree",function(e,t){return t<e})}),Ske(c$e,{totalDegree:mt(function(e){for(var t=0,i=this.nodes(),n=0;n<i.length;n++)t+=i[n].degree(e);return t},"totalDegree")}),MAe=mt(function(e,t,i){for(var n=0;n<e.length;n++){var r,s=e[n];s.locked()||(r=s._private.position,r={x:null!=t.x?t.x-r.x:0,y:null!=t.y?t.y-r.y:0},!s.isParent()||0===r.x&&0===r.y||s.children().shift(r,i),s.dirtyBoundingBoxCache())}},"beforePositionSet"),KEe={field:"position",bindingEvent:"position",allowBinding:!0,allowSetting:!0,settingEvent:"position",settingTriggersEvent:!0,triggerFnName:"emitAndNotify",allowGetting:!0,validKeys:["x","y"],beforeGet:mt(function(e){e.updateCompoundBounds()},"beforeGet"),beforeSet:mt(function(e,t){MAe(e,t,!1)},"beforeSet"),onSet:mt(function(e){e.dirtyCompoundBoundsCache()},"onSet"),canSet:mt(function(e){return!e.locked()},"canSet")},(_$e=Q={position:dAe.data(KEe),silentPosition:dAe.data(Ske({},KEe,{allowBinding:!1,allowSetting:!0,settingTriggersEvent:!1,allowGetting:!1,beforeSet:mt(function(e,t){MAe(e,t,!0)},"beforeSet"),onSet:mt(function(e){e.dirtyCompoundBoundsCache()},"onSet")})),positions:mt(function(e,t){if(tke(e))t?this.silentPosition(e):this.position(e);else if(J7e(e)){var i=e,e=this.cy();e.startBatch();for(var n=0;n<this.length;n++){var r,s=this[n];(r=i(s,n))&&(t?s.silentPosition(r):s.position(r))}e.endBatch()}return this},"positions"),silentPositions:mt(function(e){return this.positions(e,!0)},"silentPositions"),shift:mt(function(e,t,i){var n;if(tke(e)?(n={x:se(e.x)?e.x:0,y:se(e.y)?e.y:0},i=t):Q7e(e)&&se(t)&&((n={x:0,y:0})[e]=t),null!=n){var r=this.cy();r.startBatch();for(var s=0;s<this.length;s++){var a,o=this[s];r.hasCompoundNodes()&&o.isChild()&&o.ancestors().anySame(this)||(a={x:(a=o.position()).x+n.x,y:a.y+n.y},i?o.silentPosition(a):o.position(a))}r.endBatch()}return this},"shift"),silentShift:mt(function(e,t){return tke(e)?this.shift(e,!0):Q7e(e)&&se(t)&&this.shift(e,t,!0),this},"silentShift"),renderedPosition:mt(function(e,t){var i=this[0],n=this.cy(),r=n.zoom(),s=n.pan(),a=tke(e)?e:void 0,n=void 0!==a||void 0!==t&&Q7e(e);if(i&&i.isNode()){if(!n)return i=i.position(),a=iSe(i,r,s),void 0===e?a:a[e];for(var o=0;o<this.length;o++){var l=this[o];void 0!==t?l.position(e,(t-s[e])/r):void 0!==a&&l.position(nSe(a,r,s))}}else if(!n)return;return this},"renderedPosition"),relativePosition:mt(function(e,t){var i,n=this[0],r=this.cy(),s=tke(e)?e:void 0,a=void 0!==s||void 0!==t&&Q7e(e),o=r.hasCompoundNodes();if(n&&n.isNode()){if(!a)return r=n.position(),(i=(n=o?n.parent():null)&&0<n.length)&&(n=n[0]),i=i?n.position():{x:0,y:0},s={x:r.x-i.x,y:r.y-i.y},void 0===e?s:s[e];for(var l=0;l<this.length;l++){var c=this[l],h=o?c.parent():null,u=h&&0<h.length,u=(u&&(h=h[0]),u?h.position():{x:0,y:0});void 0!==t?c.position(e,t+u[e]):void 0!==s&&c.position({x:s.x+u.x,y:s.y+u.y})}}else if(!a)return;return this},"relativePosition")}).modelPosition=_$e.point=_$e.position,_$e.modelPositions=_$e.points=_$e.positions,_$e.renderedPoint=_$e.renderedPosition,_$e.relativePoint=_$e.relativePosition,h$e=Q,nEe=GEe={renderedBoundingBox:function(e){var e=this.boundingBox(e),t=this.cy(),i=t.zoom(),t=t.pan(),n=e.x1*i+t.x,r=e.x2*i+t.x,s=e.y1*i+t.y,e=e.y2*i+t.y;return{x1:n,x2:r,y1:s,y2:e,w:r-n,h:e-s}},dirtyCompoundBoundsCache:function(){var i=0<arguments.length&&void 0!==arguments[0]&&arguments[0],e=this.cy();return e.styleEnabled()&&e.hasCompoundNodes()&&this.forEachUp(function(e){var t;e.isParent()&&((t=e._private).compoundBoundsClean=!1,t.bbCache=null,i||e.emitAndNotify("bounds"))}),this},updateCompoundBounds:function(){var e=0<arguments.length&&void 0!==arguments[0]&&arguments[0],t=this.cy();if(t.styleEnabled()&&t.hasCompoundNodes()&&(e||!t.batching())){mt(s,"update");for(var i=0;i<this.length;i++){var n=this[i],r=n._private;r.compoundBoundsClean&&!e||(s(n),t.batching())||(r.compoundBoundsClean=!0)}}return this;function s(e){var t,i,n,r,s,a,o,l;function c(e,t,i){var n=0,r=0,s=t+i;return 0<e&&0<s&&(n=t/s*e,r=i/s*e),{biasDiff:n,biasComplementDiff:r}}function h(e,t,i,n){if("%"!==i.units)return"px"===i.units?i.pfValue:0;switch(n){case"width":return 0<e?i.pfValue*e:0;case"height":return 0<t?i.pfValue*t:0;case"average":return 0<e&&0<t?i.pfValue*(e+t)/2:0;case"min":return 0<e&&0<t?t<e?i.pfValue*t:i.pfValue*e:0;case"max":return 0<e&&0<t?t<e?i.pfValue*e:i.pfValue*t:0;default:return 0}}e.isParent()&&(t=e._private,n=e.children(),r="include"===e.pstyle("compound-sizing-wrt-labels").value,i={width:{val:e.pstyle("min-width").pfValue,left:e.pstyle("min-width-bias-left"),right:e.pstyle("min-width-bias-right")},height:{val:e.pstyle("min-height").pfValue,top:e.pstyle("min-height-bias-top"),bottom:e.pstyle("min-height-bias-bottom")}},n=n.boundingBox({includeLabels:r,includeOverlays:!1,useCache:!1}),r=t.position,0!==n.w&&0!==n.h||((n={w:e.pstyle("width").pfValue,h:e.pstyle("height").pfValue}).x1=r.x-n.w/2,n.x2=r.x+n.w/2,n.y1=r.y-n.h/2,n.y2=r.y+n.h/2),mt(c,"computeBiasValues"),mt(h,"computePaddingValues"),a=i.width.left.value,"px"===i.width.left.units&&0<i.width.val&&(a=100*a/i.width.val),s=i.width.right.value,"px"===i.width.right.units&&0<i.width.val&&(s=100*s/i.width.val),l=i.height.top.value,"px"===i.height.top.units&&0<i.height.val&&(l=100*l/i.height.val),o=i.height.bottom.value,"px"===i.height.bottom.units&&0<i.height.val&&(o=100*o/i.height.val),s=(a=c(i.width.val-n.w,a,s)).biasDiff,a=a.biasComplementDiff,o=(l=c(i.height.val-n.h,l,o)).biasDiff,l=l.biasComplementDiff,t.autoPadding=h(n.w,n.h,e.pstyle("padding"),e.pstyle("padding-relative-to").value),t.autoWidth=Math.max(n.w,i.width.val),r.x=(-s+n.x1+n.x2+a)/2,t.autoHeight=Math.max(n.h,i.height.val),r.y=(-o+n.y1+n.y2+l)/2)}}},IAe=mt(function(e){return e===1/0||e===-1/0?0:e},"noninf"),NAe=mt(function(e,t,i,n,r){n-t!=0&&r-i!=0&&null!=t&&null!=i&&null!=n&&null!=r&&(e.x1=t<e.x1?t:e.x1,e.x2=n>e.x2?n:e.x2,e.y1=i<e.y1?i:e.y1,e.y2=r>e.y2?r:e.y2,e.w=e.x2-e.x1,e.h=e.y2-e.y1)},"updateBounds"),DAe=mt(function(e,t){return null==t?e:NAe(e,t.x1,t.y1,t.x2,t.y2)},"updateBoundsFromBox"),OAe=mt(function(e,t,i){return HTe(e,t,i)},"prefixedProperty"),PAe=mt(function(e,t,i){var n,r,s,a;t.cy().headless()||(n=(s=(a=t._private).rstyle).arrowWidth/2,"none"!==t.pstyle(i+"-arrow-shape").value&&(t="source"===i?(r=s.srcX,s.srcY):"target"===i?(r=s.tgtX,s.tgtY):(r=s.midX,s.midY),(a=(s=a.arrowBounds=a.arrowBounds||{})[i]=s[i]||{}).x1=r-n,a.y1=t-n,a.x2=r+n,a.y2=t+n,a.w=a.x2-a.x1,a.h=a.y2-a.y1,CSe(a,1),NAe(e,a.x1,a.y1,a.x2,a.y2)))},"updateBoundsFromArrow"),BAe=mt(function(e,t,i){if(!t.cy().headless()){var n=i?i+"-":"",r=t._private,s=r.rstyle;if(t.pstyle(n+"label").strValue){var a=t.pstyle("text-halign"),o=t.pstyle("text-valign"),l=OAe(s,"labelWidth",i),c=OAe(s,"labelHeight",i),h=OAe(s,"labelX",i),u=OAe(s,"labelY",i),s=t.pstyle(n+"text-margin-x").pfValue,d=t.pstyle(n+"text-margin-y").pfValue,p=t.isEdge(),n=t.pstyle(n+"text-rotation"),g=t.pstyle("text-outline-width").pfValue,f=t.pstyle("text-border-width").pfValue/2,t=t.pstyle("text-background-padding").pfValue,m=c,y=l,b=y/2,v=m/2;if(p)S=h-b,_=h+b,C=u-v,A=u+v;else{switch(a.value){case"left":S=h-y,_=h;break;case"center":S=h-b,_=h+b;break;case"right":_=(S=h)+y}switch(o.value){case"top":C=u-m,A=u;break;case"center":C=u-v,A=u+v;break;case"bottom":A=(C=u)+m}}c=s-Math.max(g,f)-t-2,l=s+Math.max(g,f)+t+2,s=d-Math.max(g,f)-t-2,d=d+Math.max(g,f)+t+2,g=(S+=c,_+=l,C+=s,A+=d,i||"main"),f=r.labelBounds,t=f[g]=f[g]||{},c=(t.x1=S,t.y1=C,t.x2=_,t.y2=A,t.w=_-S,t.h=A-C,t.leftPad=c,t.rightPad=l,t.topPad=s,t.botPad=d,p&&"autorotate"===n.strValue),l=null!=n.pfValue&&0!==n.pfValue;if(c||l){var s=c?OAe(r.rstyle,"labelAngle",i):n.pfValue,x=Math.cos(s),w=Math.sin(s),k=(S+_)/2,T=(C+A)/2;if(!p){switch(a.value){case"left":k=_;break;case"right":k=S}switch(o.value){case"top":T=A;break;case"bottom":T=C}}var t=mt(function(e,t){return{x:(e-=k)*x-(t-=T)*w+k,y:e*w+t*x+T}},"rotate"),d=t(S,C),l=t(S,A),c=t(_,C),i=t(_,A),S=Math.min(d.x,l.x,c.x,i.x),_=Math.max(d.x,l.x,c.x,i.x),C=Math.min(d.y,l.y,c.y,i.y),A=Math.max(d.y,l.y,c.y,i.y)}n=g+"Rot",s=f[n]=f[n]||{};s.x1=S,s.y1=C,s.x2=_,s.y2=A,s.w=_-S,s.h=A-C,NAe(e,S,C,_,A),NAe(r.labelBounds.all,S,C,_,A)}return e}},"updateBoundsFromLabel"),FAe=mt(function(e,t){var i,n,r,s;t.cy().headless()||(i=t.pstyle("outline-opacity").value,r=t.pstyle("outline-width").value,0<i&&0<r&&(i=t.pstyle("outline-offset").value,t=t.pstyle("shape").value,i=(e.w+2*(r=r+i))/e.w,s=(e.h+2*r)/e.h,n=0,["diamond","pentagon","round-triangle"].includes(t)?(i=(e.w+2.4*r)/e.w,n=-r/3.6):["concave-hexagon","rhomboid","right-rhomboid"].includes(t)?i=(e.w+2.4*r)/e.w:"star"===t?(i=(e.w+2.8*r)/e.w,s=(e.h+2.6*r)/e.h,n=-r/3.8):"triangle"===t?(i=(e.w+2.8*r)/e.w,s=(e.h+2.4*r)/e.h,n=-r/1.4):"vee"===t&&(i=(e.w+4.4*r)/e.w,s=(e.h+3.8*r)/e.h,n=.5*-r),t=e.h*s-e.h,r=e.w*i-e.w,ASe(e,[Math.ceil(t/2),Math.ceil(r/2)]),0!==n)&&(s=TSe(e,0,n),SSe(e,s)))},"updateBoundsFromOutline"),jAe=mt(function(e,t){var i=e._private.cy,n=i.styleEnabled(),i=i.headless(),r=xSe(),s=e._private,a=e.isNode(),o=e.isEdge(),l=s.rstyle,c=a&&n?e.pstyle("bounds-expansion").pfValue:[0],h=mt(function(e){return"none"!==e.pstyle("display").value},"isDisplayed"),h=!n||h(e)&&(!o||h(e.source())&&h(e.target()));if(h){var u=0,d=(n&&t.includeOverlays&&0!==e.pstyle("overlay-opacity").value&&(u=e.pstyle("overlay-padding").value),0),u=(n&&t.includeUnderlays&&0!==e.pstyle("underlay-opacity").value&&(d=e.pstyle("underlay-padding").value),Math.max(u,d)),p=0;if(n&&(p=e.pstyle("width").pfValue/2),a&&t.includeNodes){var g,f,m,y,d=e.position(),a=d.x,d=d.y,b=e.outerWidth()/2,v=e.outerHeight()/2;NAe(r,g=a-b,m=d-v,f=a+b,y=d+v),n&&t.includeOutlines&&FAe(r,e)}else if(o&&t.includeEdges)if(n&&!i){var x,a=e.pstyle("curve-style").strValue;if(g=Math.min(l.srcX,l.midX,l.tgtX),f=Math.max(l.srcX,l.midX,l.tgtX),m=Math.min(l.srcY,l.midY,l.tgtY),y=Math.max(l.srcY,l.midY,l.tgtY),NAe(r,g-=p,m-=p,f+=p,y+=p),"haystack"===a){b=l.haystackPts;b&&2===b.length&&(g=b[0].x,m=b[0].y,(f=b[1].x)<g&&(d=g,g=f,f=d),(y=b[1].y)<m&&(v=m,m=y,y=v),NAe(r,g-p,m-p,f+p,y+p))}else if("bezier"===a||"unbundled-bezier"===a||a.endsWith("segments")||a.endsWith("taxi")){switch(a){case"bezier":case"unbundled-bezier":x=l.bezierPts;break;case"segments":case"taxi":case"round-segments":case"round-taxi":x=l.linePts}if(null!=x)for(var w=0;w<x.length;w++){var k=x[w];g=k.x-p,f=k.x+p,m=k.y-p,y=k.y+p,NAe(r,g,m,f,y)}}}else{i=e.source().position(),d=e.target().position();g=i.x,f=d.x,m=i.y,f<g&&(b=g,g=f,f=b),(y=d.y)<m&&(v=m,m=y,y=v),NAe(r,g-=p,m-=p,f+=p,y+=p)}n&&t.includeEdges&&o&&(PAe(r,e,"mid-source"),PAe(r,e,"mid-target"),PAe(r,e,"source"),PAe(r,e,"target")),n&&"yes"===e.pstyle("ghost").value&&(a=e.pstyle("ghost-offset-x").pfValue,i=e.pstyle("ghost-offset-y").pfValue,NAe(r,r.x1+a,r.y1+i,r.x2+a,r.y2+i));b=s.bodyBounds=s.bodyBounds||{},d=(ESe(b,r),ASe(b,c),CSe(b,1),n&&(g=r.x1,f=r.x2,m=r.y1,y=r.y2,NAe(r,g-u,m-u,f+u,y+u)),s.overlayBounds=s.overlayBounds||{}),v=(ESe(d,r),ASe(d,c),CSe(d,1),s.labelBounds=s.labelBounds||{});null!=v.all?kSe(v.all):v.all=xSe(),n&&t.includeLabels&&(t.includeMainLabels&&BAe(r,e,null),o)&&(t.includeSourceLabels&&BAe(r,e,"source"),t.includeTargetLabels)&&BAe(r,e,"target")}return r.x1=IAe(r.x1),r.y1=IAe(r.y1),r.x2=IAe(r.x2),r.y2=IAe(r.y2),r.w=IAe(r.x2-r.x1),r.h=IAe(r.y2-r.y1),0<r.w&&0<r.h&&h&&(ASe(r,c),CSe(r,1)),r},"boundingBoxImpl"),zAe=mt(function(e){var t=0,i=mt(function(e){return(e?1:0)<<t++},"tf"),n=0;return(n+=i(e.incudeNodes))+i(e.includeEdges)+i(e.includeLabels)+i(e.includeMainLabels)+i(e.includeSourceLabels)+i(e.includeTargetLabels)+i(e.includeOverlays)+i(e.includeOutlines)},"getKey"),HAe=mt(function(e){var t,i;return e.isEdge()?(t=e.source().position(),e=e.target().position(),i=mt(function(e){return Math.round(e)},"r"),yTe([i(t.x),i(t.y),i(e.x),i(e.y)])):0},"getBoundingBoxPosKey"),UAe=mt(function(e,t){var i,n=e._private,r=e.isEdge(),s=(null==t?WAe:zAe(t))===WAe,a=HAe(e),o=n.bbCachePosKey===a,l=t.useCache&&o,c=mt(function(e){return null==e._private.bbCache||e._private.styleDirty},"isDirty");return!l||c(e)||r&&(c(e.source())||c(e.target()))?(o||e.recalculateRenderedStyle(l),i=jAe(e,qAe),n.bbCache=i,n.bbCachePosKey=a):i=n.bbCache,s||(c=e.isNode(),i=xSe(),(t.includeNodes&&c||t.includeEdges&&!c)&&(t.includeOverlays?DAe(i,n.overlayBounds):DAe(i,n.bodyBounds)),t.includeLabels&&(t.includeMainLabels&&(!r||t.includeSourceLabels&&t.includeTargetLabels)?DAe(i,n.labelBounds.all):(t.includeMainLabels&&DAe(i,n.labelBounds.mainRot),t.includeSourceLabels&&DAe(i,n.labelBounds.sourceRot),t.includeTargetLabels&&DAe(i,n.labelBounds.targetRot))),i.w=i.x2-i.x1,i.h=i.y2-i.y1),i},"cachedBoundingBoxImpl"),WAe=zAe(qAe={includeNodes:!0,includeEdges:!0,includeLabels:!0,includeMainLabels:!0,includeSourceLabels:!0,includeTargetLabels:!0,includeOverlays:!0,includeUnderlays:!0,includeOutlines:!0,useCache:!0}),VAe=BTe(qAe),GEe.boundingBox=function(e){if(1!==this.length||null==this[0]._private.bbCache||this[0]._private.styleDirty||void 0!==e&&void 0!==e.useCache&&!0!==e.useCache){var t=xSe(),i=VAe(e=e||qAe);if(this.cy().styleEnabled())for(var n=0;n<this.length;n++){var r=this[n],s=r._private,a=HAe(r),a=s.bbCachePosKey===a,a=i.useCache&&a&&!s.styleDirty;r.recalculateRenderedStyle(a)}this.updateCompoundBounds(!e.useCache);for(var o=0;o<this.length;o++){var l=this[o];DAe(t,UAe(l,i))}}else e=void 0===e?qAe:VAe(e),t=UAe(this[0],e);return t.x1=IAe(t.x1),t.y1=IAe(t.y1),t.x2=IAe(t.x2),t.y2=IAe(t.y2),t.w=IAe(t.x2-t.x1),t.h=IAe(t.y2-t.y1),t},GEe.dirtyBoundingBoxCache=function(){for(var e=0;e<this.length;e++){var t=this[e]._private;t.bbCache=null,t.bbCachePosKey=null,t.bodyBounds=null,t.overlayBounds=null,t.labelBounds.all=null,t.labelBounds.source=null,t.labelBounds.target=null,t.labelBounds.main=null,t.labelBounds.sourceRot=null,t.labelBounds.targetRot=null,t.labelBounds.mainRot=null,t.arrowBounds.source=null,t.arrowBounds.target=null,t.arrowBounds["mid-source"]=null,t.arrowBounds["mid-target"]=null}return this.emitAndNotify("bounds"),this},GEe.boundingBoxAt=function(i){var e,t=this.nodes(),n=this.cy(),r=n.hasCompoundNodes(),s=n.collection(),a=(r&&(s=t.filter(function(e){return e.isParent()}),t=t.not(s)),tke(i)&&(e=i,i=mt(function(){return e},"fn")),mt(function(e,t){return e._private.bbAtOldPos=i(e,t)},"storeOldPos")),o=mt(function(e){return e._private.bbAtOldPos},"getOldPos"),a=(n.startBatch(),t.forEach(a).silentPositions(i),r&&(s.dirtyCompoundBoundsCache(),s.dirtyBoundingBoxCache(),s.updateCompoundBounds(!0)),wSe(this.boundingBox({useCache:!1})));return t.silentPositions(o),r&&(s.dirtyCompoundBoundsCache(),s.dirtyBoundingBoxCache(),s.updateCompoundBounds(!0)),n.endBatch(),a},nEe.boundingbox=nEe.bb=nEe.boundingBox,nEe.renderedBoundingbox=nEe.renderedBoundingBox,y$e=GEe,GAe=YEe={},(J=mt(function(n){n.uppercaseName=xke(n.name),n.autoName="auto"+n.uppercaseName,n.labelName="label"+n.uppercaseName,n.outerName="outer"+n.uppercaseName,n.uppercaseOuterName=xke(n.outerName),GAe[n.name]=mt(function(){var e=this[0],t=e._private,i=t.cy._private.styleEnabled;if(e)return i?e.isParent()?(e.updateCompoundBounds(),t[n.autoName]||0):"label"!==(i=e.pstyle(n.name)).strValue?i.pfValue:(e.recalculateRenderedStyle(),t.rstyle[n.labelName]||0):1},"dimImpl"),GAe["outer"+n.uppercaseName]=mt(function(){var e=this[0],t=e._private.cy._private.styleEnabled;if(e)return t?e[n.name]()+e.pstyle("border-width").pfValue+2*e.padding():1},"outerDimImpl"),GAe["rendered"+n.uppercaseName]=mt(function(){var e=this[0];if(e)return e[n.name]()*this.cy().zoom()},"renderedDimImpl"),GAe["rendered"+n.uppercaseOuterName]=mt(function(){var e=this[0];if(e)return e[n.outerName]()*this.cy().zoom()},"renderedOuterDimImpl")},"defineDimFns"))({name:"width"}),J({name:"height"}),YEe.padding=function(){var e=this[0],t=e._private;return e.isParent()&&(e.updateCompoundBounds(),void 0!==t.autoPadding)?t.autoPadding:e.pstyle("padding").pfValue},YEe.paddedHeight=function(){var e=this[0];return e.height()+2*e.padding()},YEe.paddedWidth=function(){var e=this[0];return e.width()+2*e.padding()},ZEe=YEe,YAe=mt(function(e,t){if(e.isEdge())return t(e)},"ifEdge"),XAe=mt(function(e,t){var i;if(e.isEdge())return i=e.cy(),iSe(t(e),i.zoom(),i.pan())},"ifEdgeRenderedPosition"),KAe=mt(function(e,t){var i,n,r;if(e.isEdge())return i=e.cy(),n=i.pan(),r=i.zoom(),t(e).map(function(e){return iSe(e,r,n)})},"ifEdgeRenderedPositions"),XEe=mt(function(e){return e.renderer().getControlPoints(e)},"controlPoints"),QEe=mt(function(e){return e.renderer().getSegmentPoints(e)},"segmentPoints"),KEe=mt(function(e){return e.renderer().getSourceEndpoint(e)},"sourceEndpoint"),_$e=mt(function(e){return e.renderer().getTargetEndpoint(e)},"targetEndpoint"),Q=mt(function(e){return e.renderer().getEdgeMidpoint(e)},"midpoint"),ZAe={controlPoints:{get:XEe,mult:!0},segmentPoints:{get:QEe,mult:!0},sourceEndpoint:{get:KEe},targetEndpoint:{get:_$e},midpoint:{get:Q}},QAe=mt(function(e){return"rendered"+e[0].toUpperCase()+e.substr(1)},"renderedName"),nEe=Object.keys(ZAe).reduce(function(e,t){var i=ZAe[t],n=QAe(t);return e[t]=function(){return YAe(this,i.get)},i.mult?e[n]=function(){return KAe(this,i.get)}:e[n]=function(){return XAe(this,i.get)},e},{}),GEe=Ske({},h$e,y$e,ZEe,nEe),JAe=mt(function(e,t){this.recycle(e,t)},"Event"),mt(f8e,"returnFalse"),mt(m8e,"returnTrue"),JAe.prototype={instanceString:mt(function(){return"event"},"instanceString"),recycle:mt(function(e,t){var i,n;this.isImmediatePropagationStopped=this.isPropagationStopped=this.isDefaultPrevented=f8e,null!=e&&e.preventDefault?(this.type=e.type,this.isDefaultPrevented=e.defaultPrevented?m8e:f8e):null!=e&&e.type?t=e:this.type=e,null!=t&&(this.originalEvent=t.originalEvent,this.type=(null!=t.type?t:this).type,this.cy=t.cy,this.target=t.target,this.position=t.position,this.renderedPosition=t.renderedPosition,this.namespace=t.namespace,this.layout=t.layout),null!=this.cy&&null!=this.position&&null==this.renderedPosition&&(t=this.position,i=this.cy.zoom(),n=this.cy.pan(),this.renderedPosition={x:t.x*i+n.x,y:t.y*i+n.y}),this.timeStamp=e&&e.timeStamp||Date.now()},"recycle"),preventDefault:mt(function(){this.isDefaultPrevented=m8e;var e=this.originalEvent;e&&e.preventDefault&&e.preventDefault()},"preventDefault"),stopPropagation:mt(function(){this.isPropagationStopped=m8e;var e=this.originalEvent;e&&e.stopPropagation&&e.stopPropagation()},"stopPropagation"),stopImmediatePropagation:mt(function(){this.isImmediatePropagationStopped=m8e,this.stopPropagation()},"stopImmediatePropagation"),isDefaultPrevented:f8e,isPropagationStopped:f8e,isImmediatePropagationStopped:f8e},e9e=/^([^.]+)(\.(?:[^.]+))?$/,t9e={qualifierCompare:mt(function(e,t){return e===t},"qualifierCompare"),eventMatches:mt(function(){return!0},"eventMatches"),addEventFields:mt(function(){},"addEventFields"),callbackContext:mt(function(e){return e},"callbackContext"),beforeEmit:mt(function(){},"beforeEmit"),afterEmit:mt(function(){},"afterEmit"),bubble:mt(function(){return!1},"bubble"),parent:mt(function(){return null},"parent"),context:null},i9e=Object.keys(t9e),n9e={},mt(y8e,"Emitter"),J=y8e.prototype,r9e=mt(function(e,t,i,n,r,s,a){J7e(n)&&(r=n,n=null),a&&(s=null==s?a:Ske({},s,a));for(var o=eke(i)?i:i.split(/\s+/),l=0;l<o.length;l++){var c=o[l];if(!uke(c)){var h=c.match(e9e);if(h)if(!1===t(e,c,h[1],h[2]||null,n,r,s))break}}},"forEachEvent"),s9e=mt(function(e,t){return e.addEventFields(e.context,t),new JAe(t.type,t)},"makeEventObj"),a9e=mt(function(e,t,i){if(hke(i))t(e,i);else if(tke(i))t(e,s9e(e,i));else for(var n=eke(i)?i:i.split(/\s+/),r=0;r<n.length;r++){var s,a=n[r];uke(a)||(a=a.match(e9e))&&(s=a[1],a=a[2]||null,t(e,s9e(e,{type:s,namespace:a,target:e.context})))}},"forEachEventObj"),J.on=J.addListener=function(e,t,i,n,r){return r9e(this,function(e,t,i,n,r,s,a){J7e(s)&&e.listeners.push({event:t,callback:s,type:i,namespace:n,qualifier:r,conf:a})},e,t,i,n,r),this},J.one=function(e,t,i,n){return this.on(e,t,i,n,{one:!0})},J.removeListener=J.off=function(l,e,t,i){var n=this;0!==this.emitting&&(this.listeners=NTe(this.listeners));for(var c=this.listeners,r=mt(function(a){var o=c[a];r9e(n,function(e,t,i,n,r,s){if((o.type===i||"*"===l)&&(!n&&".*"!==o.namespace||o.namespace===n)&&(!r||e.qualifierCompare(o.qualifier,r))&&(!s||o.callback===s))return c.splice(a,1),!1},l,e,t,i)},"_loop"),s=c.length-1;0<=s;s--)r(s);return this},J.removeAllListeners=function(){return this.removeListener("*")},J.emit=J.trigger=function(e,s,i){var a=this.listeners,o=a.length;return this.emitting++,eke(s)||(s=[s]),a9e(this,function(n,r){null!=i&&(a=[{event:r.event,type:r.type,namespace:r.namespace,callback:i}],o=a.length);for(var e=mt(function(e){var t,i=a[e];i.type!==r.type||i.namespace&&i.namespace!==r.namespace&&".*"!==i.namespace||!n.eventMatches(n.context,i,r)||(e=[r],null!=s&&zTe(e,s),n.beforeEmit(n.context,i,r),i.conf&&i.conf.one&&(n.listeners=n.listeners.filter(function(e){return e!==i})),t=n.callbackContext(n.context,i,r),t=i.callback.apply(t,e),n.afterEmit(n.context,i,r),!1===t&&(r.stopPropagation(),r.preventDefault()))},"_loop2"),t=0;t<o;t++)e(t);n.bubble(n.context)&&!r.isPropagationStopped()&&n.parent(n.context).emit(r,s)},e),this.emitting--,this},o9e={qualifierCompare:mt(function(e,t){return null==e||null==t?null==e&&null==t:e.sameText(t)},"qualifierCompare"),eventMatches:mt(function(e,t,i){t=t.qualifier;return null==t||e!==i.target&&ake(i.target)&&t.matches(i.target)},"eventMatches"),addEventFields:mt(function(e,t){t.cy=e.cy(),t.target=e},"addEventFields"),callbackContext:mt(function(e,t,i){return null!=t.qualifier?i.target:e},"callbackContext"),beforeEmit:mt(function(e,t){t.conf&&t.conf.once&&t.conf.onceCollection.removeListener(t.event,t.qualifier,t.callback)},"beforeEmit"),bubble:mt(function(){return!0},"bubble"),parent:mt(function(e){return e.isChild()?e.parent():e.cy()},"parent")},l9e=mt(function(e){return Q7e(e)?new LAe(e):e},"argSelector"),YEe={createEmitter:mt(function(){for(var e=0;e<this.length;e++){var t=this[e],i=t._private;i.emitter||(i.emitter=new y8e(o9e,t))}return this},"createEmitter"),emitter:mt(function(){return this._private.emitter},"emitter"),on:mt(function(e,t,i){for(var n=l9e(t),r=0;r<this.length;r++)this[r].emitter().on(e,n,i);return this},"on"),removeListener:mt(function(e,t,i){for(var n=l9e(t),r=0;r<this.length;r++)this[r].emitter().removeListener(e,n,i);return this},"removeListener"),removeAllListeners:mt(function(){for(var e=0;e<this.length;e++)this[e].emitter().removeAllListeners();return this},"removeAllListeners"),one:mt(function(e,t,i){for(var n=l9e(t),r=0;r<this.length;r++)this[r].emitter().one(e,n,i);return this},"one"),once:mt(function(e,t,i){for(var n=l9e(t),r=0;r<this.length;r++)this[r].emitter().on(e,n,i,{once:!0,onceCollection:this})},"once"),emit:mt(function(e,t){for(var i=0;i<this.length;i++)this[i].emitter().emit(e,t);return this},"emit"),emitAndNotify:mt(function(e,t){if(0!==this.length)return this.cy().notify(e,this),this.emit(e,t),this},"emitAndNotify")},dAe.eventAliasesOn(YEe),XEe={nodes:mt(function(e){return this.filter(function(e){return e.isNode()}).filter(e)},"nodes"),edges:mt(function(e){return this.filter(function(e){return e.isEdge()}).filter(e)},"edges"),byGroup:mt(function(){for(var e=this.spawn(),t=this.spawn(),i=0;i<this.length;i++){var n=this[i];(n.isNode()?e:t).push(n)}return{nodes:e,edges:t}},"byGroup"),filter:mt(function(e,t){if(void 0===e)return this;if(Q7e(e)||ske(e))return new LAe(e).filter(this);if(J7e(e)){for(var i=this.spawn(),n=0;n<this.length;n++){var r=this[n];(t?e.apply(t,[r,n,this]):e(r,n,this))&&i.push(r)}return i}return this.spawn()},"filter"),not:mt(function(e){if(e){Q7e(e)&&(e=this.filter(e));for(var t=this.spawn(),i=0;i<this.length;i++){var n=this[i];e.has(n)||t.push(n)}return t}return this},"not"),absoluteComplement:mt(function(){return this.cy().mutableElements().not(this)},"absoluteComplement"),intersect:mt(function(e){if(Q7e(e))return this.filter(e);for(var t=this.spawn(),i=this.length<e.length,n=i?this:e,r=i?e:this,s=0;s<n.length;s++){var a=n[s];r.has(a)&&t.push(a)}return t},"intersect"),xor:mt(function(e){var t=this._private.cy,s=(Q7e(e)&&(e=t.$(e)),this.spawn()),t=e,e=mt(function(e,t){for(var i=0;i<e.length;i++){var n=e[i],r=n._private.data.id;t.hasElementWithId(r)||s.push(n)}},"add");return e(this,t),e(t,this),s},"xor"),diff:mt(function(e){var t=this._private.cy,t=(Q7e(e)&&(e=t.$(e)),this.spawn()),i=this.spawn(),a=this.spawn(),n=mt(function(e,t,i){for(var n=0;n<e.length;n++){var r=e[n],s=r._private.data.id;t.hasElementWithId(s)?a.merge(r):i.push(r)}},"add");return n(this,e,t),n(e,this,i),{left:t,right:i,both:a}},"diff"),add:mt(function(e){var t,i=this._private.cy;if(!e)return this;Q7e(e)&&(t=e,e=i.mutableElements().filter(t));for(var n=this.spawnSelf(),r=0;r<e.length;r++){var s=e[r];!this.has(s)&&n.push(s)}return n},"add"),merge:mt(function(e){var t,i=this._private,n=i.cy;if(e){e&&Q7e(e)&&(t=e,e=n.mutableElements().filter(t));for(var r=i.map,s=0;s<e.length;s++){var a,o=e[s],l=o._private.data.id;!r.has(l)&&(a=this.length++,this[a]=o,r.set(l,{ele:o,index:a}))}}return this},"merge"),unmergeAt:mt(function(e){var t,i,n=this[e].id(),r=this._private.map,n=(this[e]=void 0,r.delete(n),e===this.length-1);return 1<this.length&&!n&&(i=(t=this[n=this.length-1])._private.data.id,this[n]=void 0,this[e]=t,r.set(i,{ele:t,index:e})),this.length--,this},"unmergeAt"),unmergeOne:mt(function(e){e=e[0];var t=this._private,e=e._private.data.id,t=t.map.get(e);return t&&(e=t.index,this.unmergeAt(e)),this},"unmergeOne"),unmerge:mt(function(e){var t,i=this._private.cy;if(e){e&&Q7e(e)&&(t=e,e=i.mutableElements().filter(t));for(var n=0;n<e.length;n++)this.unmergeOne(e[n])}return this},"unmerge"),unmergeBy:mt(function(e){for(var t=this.length-1;0<=t;t--)e(this[t])&&this.unmergeAt(t);return this},"unmergeBy"),map:mt(function(e,t){for(var i=[],n=0;n<this.length;n++){var r=this[n],r=t?e.apply(t,[r,n,this]):e(r,n,this);i.push(r)}return i},"map"),reduce:mt(function(e,t){for(var i=t,n=0;n<this.length;n++)i=e(i,this[n],n,this);return i},"reduce"),max:mt(function(e,t){for(var i,n=-1/0,r=0;r<this.length;r++){var s=this[r],a=t?e.apply(t,[s,r,this]):e(s,r,this);n<a&&(n=a,i=s)}return{value:n,ele:i}},"max"),min:mt(function(e,t){for(var i,n=1/0,r=0;r<this.length;r++){var s=this[r],a=t?e.apply(t,[s,r,this]):e(s,r,this);a<n&&(n=a,i=s)}return{value:n,ele:i}},"min")},(QEe=XEe).u=QEe["|"]=QEe["+"]=QEe.union=QEe.or=QEe.add,QEe["\\"]=QEe["!"]=QEe["-"]=QEe.difference=QEe.relativeComplement=QEe.subtract=QEe.not,QEe.n=QEe["&"]=QEe["."]=QEe.and=QEe.intersection=QEe.intersect,QEe["^"]=QEe["(+)"]=QEe["(-)"]=QEe.symmetricDifference=QEe.symdiff=QEe.xor,QEe.fnFilter=QEe.filterFn=QEe.stdFilter=QEe.filter,QEe.complement=QEe.abscomp=QEe.absoluteComplement,KEe={isNode:mt(function(){return"nodes"===this.group()},"isNode"),isEdge:mt(function(){return"edges"===this.group()},"isEdge"),isLoop:mt(function(){return this.isEdge()&&this.source()[0]===this.target()[0]},"isLoop"),isSimple:mt(function(){return this.isEdge()&&this.source()[0]!==this.target()[0]},"isSimple"),group:mt(function(){var e=this[0];if(e)return e._private.group},"group")},c9e=mt(function(e,t){var i=e.cy().hasCompoundNodes();function n(e){var t=e.pstyle("z-compound-depth");return"auto"===t.value?i?e.zDepth():0:"bottom"===t.value?-1:"top"===t.value?STe:0}mt(n,"getDepth");var r=n(e)-n(t);if(0!=r)return r;function s(e){return"auto"===e.pstyle("z-index-compare").value&&e.isNode()?1:0}mt(s,"getEleDepth");var r=s(e)-s(t);return 0!=r||0!=(r=e.pstyle("z-index").value-t.pstyle("z-index").value)?r:e.poolIndex()-t.poolIndex()},"zIndexSort"),(h9e={forEach:mt(function(e,t){if(J7e(e))for(var i=this.length,n=0;n<i;n++){var r=this[n];if(!1===(t?e.apply(t,[r,n,this]):e(r,n,this)))break}return this},"forEach"),toArray:mt(function(){for(var e=[],t=0;t<this.length;t++)e.push(this[t]);return e},"toArray"),slice:mt(function(e,t){var i=[],n=this.length;(t=null==t?n:t)<0&&(t=n+t);for(var r=e=(e=null==e?0:e)<0?n+e:e;0<=r&&r<t&&r<n;r++)i.push(this[r]);return this.spawn(i)},"slice"),size:mt(function(){return this.length},"size"),eq:mt(function(e){return this[e]||this.spawn()},"eq"),first:mt(function(){return this[0]||this.spawn()},"first"),last:mt(function(){return this[this.length-1]||this.spawn()},"last"),empty:mt(function(){return 0===this.length},"empty"),nonempty:mt(function(){return!this.empty()},"nonempty"),sort:mt(function(e){return J7e(e)?(e=this.toArray().sort(e),this.spawn(e)):this},"sort"),sortByZIndex:mt(function(){return this.sort(c9e)},"sortByZIndex"),zDepth:mt(function(){var e,t,i=this[0];if(i)return"nodes"===(t=i._private).group?(e=t.data.parent?i.parents().size():0,i.isParent()?e:STe-1):(i=t.source,e=t.target,t=i.zDepth(),i=e.zDepth(),Math.max(t,i,0))},"zDepth")}).each=h9e.forEach,mt(function(){"undefined"!=("u"<typeof Symbol?"undefined":qwe(Symbol))&&"undefined"!=qwe(Symbol.iterator)&&(h9e[Symbol.iterator]=function(){var e=this,t={value:void 0,done:!1},i=0,n=this.length;return Ywe({next:mt(function(){return i<n?t.value=e[i++]:(t.value=void 0,t.done=!0),t},"next")},Symbol.iterator,function(){return this})})},"defineSymbolIterator")(),u9e=BTe({nodeDimensionsIncludeLabels:!1}),(_$e={layoutDimensions:mt(function(e){return e=u9e(e),0!==(e=this.takesUpSpace()?e.nodeDimensionsIncludeLabels?{w:(e=this.boundingBox()).w,h:e.h}:{w:this.outerWidth(),h:this.outerHeight()}:{w:0,h:0}).w&&0!==e.h||(e.w=e.h=1),e},"layoutDimensions"),layoutPositions:mt(function(e,n,t){var r=this.nodes().filter(function(e){return!e.isParent()}),i=this.cy(),s=n.eles,a=mt(function(e){return e.id()},"getMemoizeKey"),o=mke(t,a),l=(e.emit({type:"layoutstart",layout:e}),e.animations=[],mt(function(e,t,i){var n=t.x1+t.w/2,t=t.y1+t.h/2;return{x:n+(i.x-n)*e,y:t+(i.y-t)*e}},"calculateSpacing")),c=n.spacingFactor&&1!==n.spacingFactor,h=mt(function(){if(!c)return null;for(var e=xSe(),t=0;t<r.length;t++){var i=r[t],i=o(i,t);_Se(e,i.x,i.y)}return e},"spacingBb")(),u=mke(function(e,t){var i,t=o(e,t);return c&&(i=Math.abs(n.spacingFactor),t=l(i,h,t)),t=null!=n.transform?n.transform(e,t):t},a);if(n.animate){for(var d=0;d<r.length;d++){var p,g=r[d],f=u(g,d);null==n.animateFilter||n.animateFilter(g,d)?(p=g.animation({position:f,duration:n.animationDuration,easing:n.animationEasing}),e.animations.push(p)):g.position(f)}n.fit?(t=i.animation({fit:{boundingBox:s.boundingBoxAt(u),padding:n.padding},duration:n.animationDuration,easing:n.animationEasing}),e.animations.push(t)):void 0!==n.zoom&&void 0!==n.pan&&(a=i.animation({zoom:n.zoom,pan:n.pan,duration:n.animationDuration,easing:n.animationEasing}),e.animations.push(a)),e.animations.forEach(function(e){return e.play()}),e.one("layoutready",n.ready),e.emit({type:"layoutready",layout:e}),gCe.all(e.animations.map(function(e){return e.promise()})).then(function(){e.one("layoutstop",n.stop),e.emit({type:"layoutstop",layout:e})})}else r.positions(u),n.fit&&i.fit(n.eles,n.padding),null!=n.zoom&&i.zoom(n.zoom),n.pan&&i.pan(n.pan),e.one("layoutready",n.ready),e.emit({type:"layoutready",layout:e}),e.one("layoutstop",n.stop),e.emit({type:"layoutstop",layout:e});return this},"layoutPositions"),layout:mt(function(e){return this.cy().makeLayout(Ske({},e,{eles:this}))},"layout")}).createLayout=_$e.makeLayout=_$e.layout,mt(b8e,"styleCache"),mt(v8e,"cacheStyleFunction"),mt(x8e,"cachePrototypeStyleFunction"),Q={recalculateRenderedStyle:mt(function(e){var t=this.cy(),i=t.renderer(),t=t.styleEnabled();return i&&t&&i.recalculateRenderedStyle(this,e),this},"recalculateRenderedStyle"),dirtyStyleCache:mt(function(){var e=this.cy(),t=mt(function(e){return e._private.styleCache=null},"dirty");return e.hasCompoundNodes()?((e=this.spawnSelf().merge(this.descendants()).merge(this.parents())).merge(e.connectedEdges()),e.forEach(t)):this.forEach(function(e){t(e),e.connectedEdges().forEach(t)}),this},"dirtyStyleCache"),updateStyle:mt(function(e){var t,i=this._private.cy;return i.styleEnabled()&&(i.batching()?i._private.batchStyleEles.merge(this):(t=this,e=!(!e&&void 0!==e),i=t=i.hasCompoundNodes()?this.spawnSelf().merge(this.descendants()).merge(this.parents()):t,e?i.emitAndNotify("style"):i.emit("style"),t.forEach(function(e){return e._private.styleDirty=!0}))),this},"updateStyle"),cleanStyle:mt(function(){var e=this.cy();if(e.styleEnabled())for(var t=0;t<this.length;t++){var i=this[t];i._private.styleDirty&&(i._private.styleDirty=!1,e.style().apply(i))}},"cleanStyle"),parsedStyle:mt(function(e){var t=!(1<arguments.length&&void 0!==arguments[1])||arguments[1],i=this[0],n=i.cy();if(n.styleEnabled()&&i)return i._private.styleDirty&&(i._private.styleDirty=!1,n.style().apply(i)),i._private.style[e]??(t?n.style().getDefaultProperty(e):null)},"parsedStyle"),numericStyle:mt(function(e){var t=this[0];if(t.cy().styleEnabled()&&t)return void 0!==(t=t.pstyle(e)).pfValue?t.pfValue:t.value},"numericStyle"),numericStyleUnits:mt(function(e){var t=this[0];if(t.cy().styleEnabled()&&t)return t.pstyle(e).units},"numericStyleUnits"),renderedStyle:mt(function(e){var t,i=this.cy();return i.styleEnabled()?(t=this[0])?i.style().getRenderedStyle(t,e):void 0:this},"renderedStyle"),style:mt(function(e,t){var i=this.cy();if(i.styleEnabled()){var n,i=i.style();if(tke(e))i.applyBypass(this,e,!1),this.emitAndNotify("style");else if(Q7e(e)){if(void 0===t)return(n=this[0])?i.getStylePropertyValue(n,e):void 0;i.applyBypass(this,e,t,!1),this.emitAndNotify("style")}else if(void 0===e)return(n=this[0])?i.getRawStyle(n):void 0}return this},"style"),removeStyle:mt(function(e){var t=this.cy();if(t.styleEnabled()){var i=t.style();if(void 0===e)for(var n=0;n<this.length;n++){var r=this[n];i.removeAllBypasses(r,!1)}else{e=e.split(/\s+/);for(var s=0;s<this.length;s++){var a=this[s];i.removeBypasses(a,e,!1)}}this.emitAndNotify("style")}return this},"removeStyle"),show:mt(function(){return this.css("display","element"),this},"show"),hide:mt(function(){return this.css("display","none"),this},"hide"),effectiveOpacity:mt(function(){var e=this.cy();if(!e.styleEnabled())return 1;var e=e.hasCompoundNodes(),t=this[0];if(t){var i=t._private,n=t.pstyle("opacity").value;if(e){var r=i.data.parent?t.parents():null;if(r)for(var s=0;s<r.length;s++)n*=r[s].pstyle("opacity").value}return n}},"effectiveOpacity"),transparent:mt(function(){var e,t;return!!this.cy().styleEnabled()&&(t=(e=this[0]).cy().hasCompoundNodes(),e?t?0===e.effectiveOpacity():0===e.pstyle("opacity").value:void 0)},"transparent"),backgrounding:mt(function(){return!!this.cy().styleEnabled()&&!!this[0]._private.backgrounding},"backgrounding")},mt(w8e,"checkCompound"),mt(k8e,"defineDerivedStateFunction"),d9e=v8e("eleTakesUpSpace",function(e){return"element"===e.pstyle("display").value&&0!==e.width()&&(!e.isNode()||0!==e.height())}),Q.takesUpSpace=x8e("takesUpSpace",k8e({ok:d9e})),h$e=v8e("eleInteractive",function(e){return"yes"===e.pstyle("events").value&&"visible"===e.pstyle("visibility").value&&d9e(e)}),y$e=v8e("parentInteractive",function(e){return"visible"===e.pstyle("visibility").value&&d9e(e)}),Q.interactive=x8e("interactive",k8e({ok:h$e,parentOk:y$e,edgeOkViaNode:d9e})),Q.noninteractive=function(){var e=this[0];if(e)return!e.interactive()},ZEe=v8e("eleVisible",function(e){return"visible"===e.pstyle("visibility").value&&0!==e.pstyle("opacity").pfValue&&d9e(e)}),nEe=d9e,Q.visible=x8e("visible",k8e({ok:ZEe,edgeOkViaNode:nEe})),Q.hidden=function(){var e=this[0];if(e)return!e.visible()},Q.isBundledBezier=x8e("isBundledBezier",function(){return!!this.cy().styleEnabled()&&!this.removed()&&"bezier"===this.pstyle("curve-style").value&&this.takesUpSpace()}),Q.bypass=Q.css=Q.style,Q.renderedCss=Q.renderedStyle,Q.removeBypass=Q.removeCss=Q.removeStyle,Q.pstyle=Q.parsedStyle,p9e={},mt(T8e,"defineSwitchFunction"),mt(S8e,"defineSwitchSet"),S8e({field:"locked",overrideField:mt(function(e){return!!e.cy().autolock()||void 0},"overrideField"),on:"lock",off:"unlock"}),S8e({field:"grabbable",overrideField:mt(function(e){return!e.cy().autoungrabify()&&!e.pannable()&&void 0},"overrideField"),on:"grabify",off:"ungrabify"}),S8e({field:"selected",ableField:"selectable",overrideAble:mt(function(e){return!e.cy().autounselectify()&&void 0},"overrideAble"),on:"select",off:"unselect"}),S8e({field:"selectable",overrideField:mt(function(e){return!e.cy().autounselectify()&&void 0},"overrideField"),on:"selectify",off:"unselectify"}),p9e.deselect=p9e.unselect,p9e.grabbed=function(){var e=this[0];if(e)return e._private.grabbed},S8e({field:"active",on:"activate",off:"unactivate"}),S8e({field:"pannable",on:"panify",off:"unpanify"}),p9e.inactive=function(){var e=this[0];if(e)return!e._private.active},J={},QEe=mt(function(c){return mt(function(e){for(var t=[],i=0;i<this.length;i++){var n=this[i];if(n.isNode()){for(var r=!1,s=n.connectedEdges(),a=0;a<s.length;a++){var o=s[a],l=o.source(),o=o.target();if(c.noIncomingEdges&&o===n&&l!==n||c.noOutgoingEdges&&l===n&&o!==n){r=!0;break}}r||t.push(n)}}return this.spawn(t,!0).filter(e)},"dagExtremityImpl")},"defineDagExtremity"),h$e=mt(function(c){return function(e){for(var t=[],i=0;i<this.length;i++){var n=this[i];if(n.isNode())for(var r=n.connectedEdges(),s=0;s<r.length;s++){var a=r[s],o=a.source(),l=a.target();c.outgoing&&o===n?(t.push(a),t.push(l)):c.incoming&&l===n&&(t.push(a),t.push(o))}}return this.spawn(t,!0).filter(e)}},"defineDagOneHop"),y$e=mt(function(c){return function(e){for(var t=this,i=[],n={};;){var r=c.outgoing?t.outgoers():t.incomers();if(0===r.length)break;for(var s=!1,a=0;a<r.length;a++){var o=r[a],l=o.id();n[l]||(n[l]=!0,i.push(o),s=!0)}if(!s)break;t=r}return this.spawn(i,!0).filter(e)}},"defineDagAllHops"),J.clearTraversalCache=function(){for(var e=0;e<this.length;e++)this[e]._private.traversalCache=null},Ske(J,{roots:QEe({noIncomingEdges:!0}),leaves:QEe({noOutgoingEdges:!0}),outgoers:b$e(h$e({outgoing:!0}),"outgoers"),successors:y$e({outgoing:!0}),incomers:b$e(h$e({incoming:!0}),"incomers"),predecessors:y$e({incoming:!0})}),Ske(J,{neighborhood:b$e(function(e){for(var t=[],i=this.nodes(),n=0;n<i.length;n++)for(var r=i[n],s=r.connectedEdges(),a=0;a<s.length;a++){var o=s[a],l=o.source(),c=o.target(),c=r===l?c:l;0<c.length&&t.push(c[0]),t.push(o[0])}return this.spawn(t,!0).filter(e)},"neighborhood"),closedNeighborhood:mt(function(e){return this.neighborhood().add(this).filter(e)},"closedNeighborhood"),openNeighborhood:mt(function(e){return this.neighborhood(e)},"openNeighborhood")}),J.neighbourhood=J.neighborhood,J.closedNeighbourhood=J.closedNeighborhood,J.openNeighbourhood=J.openNeighborhood,Ske(J,{source:b$e(mt(function(e){var t,i=this[0];return(t=i?i._private.source||i.cy().collection():t)&&e?t.filter(e):t},"sourceImpl"),"source"),target:b$e(mt(function(e){var t,i=this[0];return(t=i?i._private.target||i.cy().collection():t)&&e?t.filter(e):t},"targetImpl"),"target"),sources:_8e({attr:"source"}),targets:_8e({attr:"target"})}),mt(_8e,"defineSourceFunction"),Ske(J,{edgesWith:b$e(C8e(),"edgesWith"),edgesTo:b$e(C8e({thisIsSrc:!0}),"edgesTo")}),mt(C8e,"defineEdgesWithFunction"),Ske(J,{connectedEdges:b$e(function(e){for(var t=[],i=0;i<this.length;i++){var n=this[i];if(n.isNode())for(var r=n._private.edges,s=0;s<r.length;s++){var a=r[s];t.push(a)}}return this.spawn(t,!0).filter(e)},"connectedEdges"),connectedNodes:b$e(function(e){for(var t=[],i=0;i<this.length;i++){var n=this[i];n.isEdge()&&(t.push(n.source()[0]),t.push(n.target()[0]))}return this.spawn(t,!0).filter(e)},"connectedNodes"),parallelEdges:b$e(A8e(),"parallelEdges"),codirectedEdges:b$e(A8e({codirected:!0}),"codirectedEdges")}),mt(A8e,"defineParallelEdgesFunction"),Ske(J,{components:mt(function(e){var i=this,n=i.cy(),r=n.collection(),s=(null==e?i:e).nodes(),a=[],o=(null!=e&&s.empty()&&(s=e.sources()),mt(function(e,t){r.merge(e),s.unmerge(e),t.merge(e)},"visitInComponent"));if(s.empty())return i.spawn();for(var t=mt(function(){var t=n.collection(),e=(a.push(t),s[0]);o(e,t),i.bfs({directed:!1,roots:e,visit:mt(function(e){return o(e,t)},"visit")}),t.forEach(function(e){e.connectedEdges().forEach(function(e){i.has(e)&&t.has(e.source())&&t.has(e.target())&&t.merge(e)})})},"_loop");t(),0<s.length;);return a},"components"),component:mt(function(){var e=this[0];return e.cy().mutableElements().components(e)[0]},"component")}),J.componentsOf=J.components,g9e=mt(function(e,t){var i=2<arguments.length&&void 0!==arguments[2]&&arguments[2],n=3<arguments.length&&void 0!==arguments[3]&&arguments[3];if(void 0===e)$Te("A collection must have a reference to the core");else{var r=new qTe,s=!1;if(t){if(0<t.length&&tke(t[0])&&!ake(t[0])){for(var s=!0,a=[],o=new WTe,l=0,c=t.length;l<c;l++){var h=t[l],u=(null==h.data&&(h.data={}),h.data);if(null==u.id)u.id=DTe();else if(e.hasElementWithId(u.id)||o.has(u.id))continue;h=new VTe(e,h,!1);a.push(h),o.add(u.id)}t=a}}else t=[];for(var d=this.length=0,p=t.length;d<p;d++){var g,f=t[d][0];null!=f&&(g=f._private.data.id,i&&r.has(g)||(i&&r.set(g,{index:this.length,ele:f}),this[this.length]=f,this.length++))}this._private={eles:this,cy:e,get map(){return null==this.lazyMap&&this.rebuildMap(),this.lazyMap},set map(e){this.lazyMap=e},rebuildMap:mt(function(){for(var e=this.lazyMap=new qTe,t=this.eles,i=0;i<t.length;i++){var n=t[i];e.set(n.id(),{index:i,ele:n})}},"rebuildMap")},i&&(this._private.map=r),s&&!n&&this.restore()}},"Collection"),(f9e=VTe.prototype=g9e.prototype=Object.create(Array.prototype)).instanceString=function(){return"collection"},f9e.spawn=function(e,t){return new g9e(this.cy(),e,t)},f9e.spawnSelf=function(){return this.spawn(this)},f9e.cy=function(){return this._private.cy},f9e.renderer=function(){return this._private.cy.renderer()},f9e.element=function(){return this[0]},f9e.collection=function(){return oke(this)?this:new g9e(this._private.cy,[this])},f9e.unique=function(){return new g9e(this._private.cy,this,!0)},f9e.hasElementWithId=function(e){return this._private.map.has(e=""+e)},f9e.getElementById=function(e){var t=this._private.cy,e=this._private.map.get(e=""+e);return e?e.ele:new g9e(t)},f9e.$id=f9e.getElementById,f9e.poolIndex=function(){var e=this._private.cy._private.elements,t=this[0]._private.data.id;return e._private.map.get(t).index},f9e.indexOf=function(e){e=e[0]._private.data.id;return this._private.map.get(e).index},f9e.indexOfId=function(e){return this._private.map.get(e=""+e).index},f9e.json=function(r){var s,e,t,i,n,a,o,l,c=this.element(),h=this.cy();return null==c&&r?this:null!=c?(s=c._private,tke(r)?(h.startBatch(),r.data&&(c.data(r.data),e=s.data,c.isEdge()?(a=!1,t={},i=r.data.source,n=r.data.target,null!=i&&i!=e.source&&(t.source=""+i,a=!0),null!=n&&n!=e.target&&(t.target=""+n,a=!0),a&&(c=c.move(t))):(i="parent"in r.data,n=r.data.parent,!i||null==n&&null==e.parent||n==e.parent||(c=c.move({parent:n=null!=(n=void 0===n?null:n)?""+n:n})))),r.position&&c.position(r.position),(a=mt(function(e,t,i){var n=r[e];null!=n&&n!==s[e]&&(n?c[t]():c[i]())},"checkSwitch"))("removed","remove","restore"),a("selected","select","unselect"),a("selectable","selectify","unselectify"),a("locked","lock","unlock"),a("grabbable","grabify","ungrabify"),a("pannable","panify","unpanify"),null!=r.classes&&c.classes(r.classes),h.endBatch(),this):void 0===r?((o={data:ITe(s.data),position:ITe(s.position),group:s.group,removed:s.removed,selected:s.selected,selectable:s.selectable,locked:s.locked,grabbable:s.grabbable,pannable:s.pannable,classes:null}).classes="",l=0,s.classes.forEach(function(e){return o.classes+=0==l++?e:" "+e}),o):void 0):void 0},f9e.jsons=function(){for(var e=[],t=0;t<this.length;t++){var i=this[t].json();e.push(i)}return e},f9e.clone=function(){for(var e=this.cy(),t=[],i=0;i<this.length;i++){var n=this[i].json(),n=new VTe(e,n,!1);t.push(n)}return new g9e(e,t)},f9e.copy=f9e.clone,f9e.restore=function(){for(var e=!(0<arguments.length&&void 0!==arguments[0])||arguments[0],t=!(1<arguments.length&&void 0!==arguments[1])||arguments[1],i=this.cy(),n=i._private,r=[],s=[],a=0,o=this.length;a<o;a++){var l=this[a];t&&!l.removed()||(l.isNode()?r:s).push(l)}for(var c=r.concat(s),h=mt(function(){c.splice(u,1),u--},"removeFromElements"),u=0;u<c.length;u++){var d=c[u],p=d._private,g=p.data;if(d.clearTraversalCache(),t||p.removed)if(void 0===g.id)g.id=DTe();else if(se(g.id))g.id=""+g.id;else{if(uke(g.id)||!Q7e(g.id)){$Te("Can not create element with invalid string ID `"+g.id+"`"),h();continue}if(i.hasElementWithId(g.id)){$Te("Can not create second element with ID `"+g.id+"`"),h();continue}}var f=g.id;if(d.isNode()&&(null==(m=p.position).x&&(m.x=0),null==m.y)&&(m.y=0),d.isEdge()){for(var m=d,y=["source","target"],b=y.length,v=!1,x=0;x<b;x++){var w=y[x],k=g[w];null==(k=se(k)?g[w]=""+g[w]:k)||""===k?($Te("Can not create edge `"+f+"` with unspecified "+w),v=!0):i.hasElementWithId(k)||($Te("Can not create edge `"+f+"` with nonexistant "+w+" `"+k+"`"),v=!0)}if(v){h();continue}var T=i.getElementById(g.source),S=i.getElementById(g.target);(T.same(S)?T:(T._private.edges.push(m),S))._private.edges.push(m),m._private.source=T,m._private.target=S}p.map=new qTe,p.map.set(f,{ele:d,index:0}),p.removed=!1,t&&i.addToPool(d)}for(var _=0;_<r.length;_++){var C=r[_],A=C._private.data,E=(se(A.parent)&&(A.parent=""+A.parent),A.parent);if(null!=E||C._private.parent){E=C._private.parent?i.collection().merge(C._private.parent):i.getElementById(E);if(E.empty())A.parent=void 0;else if(E[0].removed())RTe("Node added with missing parent, reference to parent removed"),A.parent=void 0,C._private.parent=null;else{for(var $=!1,L=E;!L.empty();){if(C.same(L)){$=!0,A.parent=void 0;break}L=L.parent()}$||(E[0]._private.children.push(C),C._private.parent=E[0],n.hasCompoundNodes=!0)}}}if(0<c.length){for(var R=c.length===this.length?this:new g9e(i,c),M=0;M<R.length;M++){var I=R[M];I.isNode()||(I.parallelEdges().clearTraversalCache(),I.source().clearTraversalCache(),I.target().clearTraversalCache())}(n.hasCompoundNodes?i.collection().merge(R).merge(R.connectedNodes()).merge(R.parent()):R).dirtyCompoundBoundsCache().dirtyBoundingBoxCache().updateStyle(e),e?R.emitAndNotify("add"):t&&R.emit("add")}return this},f9e.removed=function(){var e=this[0];return e&&e._private.removed},f9e.inside=function(){var e=this[0];return e&&!e._private.removed},f9e.remove=function(){var e=!(0<arguments.length&&void 0!==arguments[0])||arguments[0],i=!(1<arguments.length&&void 0!==arguments[1])||arguments[1],n=[],r={},t=this._private.cy;function s(e){for(var t=e._private.edges,i=0;i<t.length;i++)o(t[i])}function a(e){for(var t=e._private.children,i=0;i<t.length;i++)o(t[i])}function o(e){var t=r[e.id()];i&&e.removed()||t||(r[e.id()]=!0,e.isNode()?(n.push(e),s(e),a(e)):n.unshift(e))}mt(s,"addConnectedEdges"),mt(a,"addChildren"),mt(o,"add");for(var l=0,c=this.length;l<c;l++)o(this[l]);function h(e,t){var i=e._private.edges;FTe(i,t),e.clearTraversalCache()}function u(e){e.clearTraversalCache()}mt(h,"removeEdgeRef"),mt(u,"removeParallelRef");var d=[];function p(e,t){t=t[0];var i=(e=e[0])._private.children,n=e.id();FTe(i,t),t._private.parent=null,d.ids[n]||(d.ids[n]=!0,d.push(e))}d.ids={},mt(p,"removeChildRef"),this.dirtyCompoundBoundsCache(),i&&t.removeFromPool(n);for(var g=0;g<n.length;g++){var f=n[g];if(f.isEdge()){var m=f.source()[0],y=f.target()[0];h(m,f),h(y,f);for(var b=f.parallelEdges(),v=0;v<b.length;v++){var x=b[v];u(x),x.isBundledBezier()&&x.dirtyBoundingBoxCache()}}else{m=f.parent();0!==m.length&&p(m,f)}i&&(f._private.removed=!0)}var w=t._private.elements;t._private.hasCompoundNodes=!1;for(var k=0;k<w.length;k++)if(w[k].isParent()){t._private.hasCompoundNodes=!0;break}var T=new g9e(this.cy(),n);0<T.size()&&(e?T.emitAndNotify("remove"):i&&T.emit("remove"));for(var S=0;S<d.length;S++){var _=d[S];i&&_.removed()||_.updateStyle()}return T},f9e.move=function(e){var n,r,s,a,o,t=this._private.cy,l=this,i=mt(function(e){return null==e?e:""+e},"toString");return void 0!==e.source||void 0!==e.target?(n=i(e.source),r=i(e.target),s=null!=n&&t.hasElementWithId(n),a=null!=r&&t.hasElementWithId(r),(s||a)&&(t.batch(function(){l.remove(!1,!1),l.emitAndNotify("moveout");for(var e=0;e<l.length;e++){var t=l[e],i=t._private.data;t.isEdge()&&(s&&(i.source=n),a)&&(i.target=r)}l.restore(!1,!1)}),l.emitAndNotify("move"))):void 0===e.parent||null!==(i=i(e.parent))&&!t.hasElementWithId(i)||(o=null===i?void 0:i,t.batch(function(){var e=l.remove(!1,!1);e.emitAndNotify("moveout");for(var t=0;t<l.length;t++){var i=l[t],n=i._private.data;i.isNode()&&(n.parent=o)}e.restore(!1,!1)}),l.emitAndNotify("move")),this},[aCe,v$e,JEe,$Ee,BEe,jEe,c$e,GEe,YEe,XEe,KEe,h9e,_$e,Q,p9e,J].forEach(function(e){Ske(f9e,e)}),ZEe={add:mt(function(e){if(ske(e)){var t=e;if(t._private.cy===this)s=t.restore();else{for(var i=[],n=0;n<t.length;n++){var r=t[n];i.push(r.json())}s=new g9e(this,i)}}else if(eke(e))var s=new g9e(this,e);else if(tke(e)&&(eke(e.nodes)||eke(e.edges))){for(var a=e,o=[],l=["nodes","edges"],c=0,h=l.length;c<h;c++){var u=l[c],d=a[u];if(eke(d))for(var p=0,g=d.length;p<g;p++){var f=Ske({group:u},d[p]);o.push(f)}}s=new g9e(this,o)}else s=new VTe(this,e).collection();return s},"add"),remove:mt(function(e){var t;return ske(e)||Q7e(e)&&(t=e,e=this.$(t)),e.remove()},"remove")},mt(E8e,"generateCubicBezier"),mt(o,"springAccelerationForState"),mt(l,"springEvaluateStateWithDerivative"),mt(h,"springIntegrateState"),m9e=mt(function e(t,i,n){var r,s,a,o={x:-1,v:0,tension:null,friction:null},l=[0],c=0;for(t=parseFloat(t)||500,i=parseFloat(i)||20,n=n||null,o.tension=t,o.friction=i,s=(r=null!==n)?(c=e(t,i))/n*.016:.016;a=h(a||o,s),l.push(1+a.x),c+=16,1e-4<Math.abs(a.x)&&1e-4<Math.abs(a.v););return r?function(e){return l[e*(l.length-1)|0]}:c},"springRK4Factory"),nEe=mt(function(e,t,i,n){var r=E8e(e,t,i,n);return function(e,t,i){return e+(t-e)*r(i)}},"cubicBezier"),y9e={linear:mt(function(e,t,i){return e+(t-e)*i},"linear"),ease:nEe(.25,.1,.25,1),"ease-in":nEe(.42,0,1,1),"ease-out":nEe(0,0,.58,1),"ease-in-out":nEe(.42,0,.58,1),"ease-in-sine":nEe(.47,0,.745,.715),"ease-out-sine":nEe(.39,.575,.565,1),"ease-in-out-sine":nEe(.445,.05,.55,.95),"ease-in-quad":nEe(.55,.085,.68,.53),"ease-out-quad":nEe(.25,.46,.45,.94),"ease-in-out-quad":nEe(.455,.03,.515,.955),"ease-in-cubic":nEe(.55,.055,.675,.19),"ease-out-cubic":nEe(.215,.61,.355,1),"ease-in-out-cubic":nEe(.645,.045,.355,1),"ease-in-quart":nEe(.895,.03,.685,.22),"ease-out-quart":nEe(.165,.84,.44,1),"ease-in-out-quart":nEe(.77,0,.175,1),"ease-in-quint":nEe(.755,.05,.855,.06),"ease-out-quint":nEe(.23,1,.32,1),"ease-in-out-quint":nEe(.86,0,.07,1),"ease-in-expo":nEe(.95,.05,.795,.035),"ease-out-expo":nEe(.19,1,.22,1),"ease-in-out-expo":nEe(1,0,0,1),"ease-in-circ":nEe(.6,.04,.98,.335),"ease-out-circ":nEe(.075,.82,.165,1),"ease-in-out-circ":nEe(.785,.135,.15,.86),spring:mt(function(e,t,i){var n;return 0===i?y9e.linear:(n=m9e(e,t,i),function(e,t,i){return e+(t-e)*n(i)})},"spring"),"cubic-bezier":nEe},mt($8e,"getEasedValue"),mt(L8e,"getValue"),mt(R8e,"ease"),mt(M8e,"step$1"),mt(I8e,"valid"),mt(N8e,"startAnimation"),mt(D8e,"stepAll"),QEe={animate:dAe.animate(),animation:dAe.animation(),animated:dAe.animated(),clearQueue:dAe.clearQueue(),delay:dAe.delay(),delayAnimation:dAe.delayAnimation(),stop:dAe.stop(),addToAnimationPool:mt(function(e){this.styleEnabled()&&this._private.aniEles.merge(e)},"addToAnimationPool"),stopAnimationLoop:mt(function(){this._private.animationsRunning=!1},"stopAnimationLoop"),startAnimationLoop:mt(function(){var e,i=this;function t(){i._private.animationsRunning&&cTe(mt(function(e){D8e(e,i),t()},"animationStep"))}i._private.animationsRunning=!0,i.styleEnabled()&&(mt(t,"headlessStep"),(e=i.renderer())&&e.beforeRender?e.beforeRender(mt(function(e,t){D8e(t,i)},"rendererAnimationStep"),e.beforeRenderPriorities.animations):t())},"startAnimationLoop")},b9e={qualifierCompare:mt(function(e,t){return null==e||null==t?null==e&&null==t:e.sameText(t)},"qualifierCompare"),eventMatches:mt(function(e,t,i){t=t.qualifier;return null==t||e!==i.target&&ake(i.target)&&t.matches(i.target)},"eventMatches"),addEventFields:mt(function(e,t){t.cy=e,t.target=e},"addEventFields"),callbackContext:mt(function(e,t,i){return null!=t.qualifier?i.target:e},"callbackContext")},v9e=mt(function(e){return Q7e(e)?new LAe(e):e},"argSelector"),h$e={createEmitter:mt(function(){var e=this._private;return e.emitter||(e.emitter=new y8e(b9e,this)),this},"createEmitter"),emitter:mt(function(){return this._private.emitter},"emitter"),on:mt(function(e,t,i){return this.emitter().on(e,v9e(t),i),this},"on"),removeListener:mt(function(e,t,i){return this.emitter().removeListener(e,v9e(t),i),this},"removeListener"),removeAllListeners:mt(function(){return this.emitter().removeAllListeners(),this},"removeAllListeners"),one:mt(function(e,t,i){return this.emitter().one(e,v9e(t),i),this},"one"),once:mt(function(e,t,i){return this.emitter().one(e,v9e(t),i),this},"once"),emit:mt(function(e,t){return this.emitter().emit(e,t),this},"emit"),emitAndNotify:mt(function(e,t){return this.emit(e),this.notify(e,t),this},"emitAndNotify")},dAe.eventAliasesOn(h$e),(y$e={png:mt(function(e){return this._private.renderer.png(e=e||{})},"png"),jpg:mt(function(e){var t=this._private.renderer;return(e=e||{}).bg=e.bg||"#fff",t.jpg(e)},"jpg")}).jpeg=y$e.jpg,(b$e={layout:mt(function(e){if(null==e)$Te("Layout options must be specified to make a layout");else if(null==e.name)$Te("A `name` must be specified to make a layout");else{var t,i=e.name,n=this.extension("layout",i);if(null!=n)return t=Q7e(e.eles)?this.$(e.eles):null!=e.eles?e.eles:this.$(),new n(Ske({},e,{cy:this,eles:t}));$Te("No such layout `"+i+"` found. Did you forget to import it and `cytoscape.use()` it?")}},"layout")}).createLayout=b$e.makeLayout=b$e.layout,v$e={notify:mt(function(e,t){var i,n=this._private;this.batching()?(n.batchNotifications=n.batchNotifications||{},i=n.batchNotifications[e]=n.batchNotifications[e]||this.collection(),null!=t&&i.merge(t)):n.notificationsEnabled&&(i=this.renderer(),!this.destroyed())&&i&&i.notify(e,t)},"notify"),notifications:mt(function(e){var t=this._private;return void 0===e?t.notificationsEnabled:(t.notificationsEnabled=!!e,this)},"notifications"),noNotifications:mt(function(e){this.notifications(!1),e(),this.notifications(!0)},"noNotifications"),batching:mt(function(){return 0<this._private.batchCount},"batching"),startBatch:mt(function(){var e=this._private;return null==e.batchCount&&(e.batchCount=0),0===e.batchCount&&(e.batchStyleEles=this.collection(),e.batchNotifications={}),e.batchCount++,this},"startBatch"),endBatch:mt(function(){var i,n=this._private;return 0!==n.batchCount&&(n.batchCount--,0===n.batchCount)&&(n.batchStyleEles.updateStyle(),i=this.renderer(),Object.keys(n.batchNotifications).forEach(function(e){var t=n.batchNotifications[e];t.empty()?i.notify(e):i.notify(e,t)})),this},"endBatch"),batch:mt(function(e){return this.startBatch(),e(),this.endBatch(),this},"batch"),batchData:mt(function(r){var s=this;return this.batch(function(){for(var e=Object.keys(r),t=0;t<e.length;t++){var i=e[t],n=r[i];s.getElementById(i).data(n)}})},"batchData")},x9e=BTe({hideEdgesOnViewport:!1,textureOnViewport:!1,motionBlur:!1,motionBlurOpacity:.05,pixelRatio:void 0,desktopTapThreshold:4,touchTapThreshold:8,wheelSensitivity:1,debug:!1,showFps:!1,webgl:!1,webglDebug:!1,webglDebugShowAtlases:!1,webglTexSize:2048,webglTexRows:12,webglBatchSize:2048,webglTexPerBatch:14,webglBgColor:[255,255,255]}),(JEe={renderTo:mt(function(e,t,i,n){return this._private.renderer.renderTo(e,t,i,n),this},"renderTo"),renderer:mt(function(){return this._private.renderer},"renderer"),forceRender:mt(function(){return this.notify("draw"),this},"forceRender"),resize:mt(function(){return this.invalidateSize(),this.emitAndNotify("resize"),this},"resize"),initRenderer:mt(function(e){var t=this.extension("renderer",e.name);null==t?$Te("Can not initialise: No such renderer `".concat(e.name,"` found. Did you forget to import it and `cytoscape.use()` it?")):(void 0!==e.wheelSensitivity&&RTe("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."),((e=x9e(e)).cy=this)._private.renderer=new t(e),this.notify("init"))},"initRenderer"),destroyRenderer:mt(function(){this.notify("destroy");var e=this.container();if(e)for(e._cyreg=null;0<e.childNodes.length;)e.removeChild(e.childNodes[0]);this._private.renderer=null,this.mutableElements().forEach(function(e){e=e._private;e.rscratch={},e.rstyle={},e.animation.current=[],e.animation.queue=[]})},"destroyRenderer"),onRender:mt(function(e){return this.on("render",e)},"onRender"),offRender:mt(function(e){return this.off("render",e)},"offRender")}).invalidateDimensions=JEe.resize,($Ee={collection:mt(function(e,t){return Q7e(e)?this.$(e):ske(e)?e.collection():eke(e)?new g9e(this,e,(t=t||{}).unique,t.removed):new g9e(this)},"collection"),nodes:mt(function(e){var t=this.$(function(e){return e.isNode()});return e?t.filter(e):t},"nodes"),edges:mt(function(e){var t=this.$(function(e){return e.isEdge()});return e?t.filter(e):t},"edges"),$:mt(function(e){var t=this._private.elements;return e?t.filter(e):t.spawnSelf()},"$"),mutableElements:mt(function(){return this._private.elements},"mutableElements")}).elements=$Ee.filter=$Ee.$,BEe={apply:function(e){for(var t=this._private.cy.collection(),i=0;i<e.length;i++){var n,r=e[i],s=this.getContextMeta(r);s.empty||(n=this.getContextStyle(s),s=this.applyContextStyle(s,n,r),r._private.appliedInitStyle?this.updateTransitions(r,s.diffProps):r._private.appliedInitStyle=!0,this.updateStyleHints(r)&&t.push(r))}return t},getPropertiesDiff:function(e,t){var i=this._private.propDiffs=this._private.propDiffs||{},n=e+"-"+t,r=i[n];if(r)return r;for(var s=[],a={},o=0;o<this.length;o++){var l=this[o],c="t"===e[o],h="t"===t[o],c=c!=h,u=0<l.mappedProperties.length;if(c||h&&u){var d=void 0;c&&u||c?d=l.properties:u&&(d=l.mappedProperties);for(var p=0;p<d.length;p++){for(var g=d[p],f=g.name,m=!1,y=o+1;y<this.length;y++){var b=this[y];if("t"===t[y]&&(m=null!=b.properties[g.name]))break}a[f]||m||(a[f]=!0,s.push(f))}}}return i[n]=s},getContextMeta:function(e){for(var t="",i=e._private.styleCxtKey||"",n=0;n<this.length;n++){var r=this[n];t+=r.selector&&r.selector.matches(e)?"t":"f"}return i=this.getPropertiesDiff(i,t),{key:e._private.styleCxtKey=t,diffPropNames:i,empty:0===i.length}},getContextStyle:function(e){var t=e.key,e=this._private.contextStyles=this._private.contextStyles||{};if(e[t])return e[t];for(var i={_private:{key:t}},n=0;n<this.length;n++){var r=this[n];if("t"===t[n])for(var s=0;s<r.properties.length;s++){var a=r.properties[s];i[a.name]=a}}return e[t]=i},applyContextStyle:function(e,t,i){for(var n=e.diffPropNames,r={},s=this.types,a=0;a<n.length;a++){var o=n[a],l=t[o],c=i.pstyle(o);if(!l){if(!c)continue;l=c.bypass?{name:o,deleteBypassed:!0}:{name:o,delete:!0}}if(c!==l){if(l.mapped===s.fn&&null!=c&&null!=c.mapping&&c.mapping.value===l.value){var h=c.mapping;if((h.fnValue=l.value(i))===h.prevFnValue)continue}h=r[o]={prev:c};this.applyParsedProperty(i,l),h.next=i.pstyle(o),h.next&&h.next.bypass&&(h.next=h.next.bypassed)}}return{diffProps:r}},updateStyleHints:function(e){var i=e._private,n=this,t=(n.propertyGroupNames,n.propertyGroupKeys),r=mt(function(e,t,i){return n.getPropertiesHash(e,t,i)},"propHash"),s=i.styleKey;if(e.removed())return!1;for(var a="nodes"===i.group,o=e._private.style,l=Object.keys(o),c=0;c<t.length;c++){var h=t[c];i.styleKeys[h]=[9261,5381]}for(var u=mt(function(e,t){return i.styleKeys[t][0]=dTe(e,i.styleKeys[t][0])},"updateGrKey1"),d=mt(function(e,t){return i.styleKeys[t][1]=pTe(e,i.styleKeys[t][1])},"updateGrKey2"),p=mt(function(e,t){u(e,t),d(e,t)},"updateGrKey"),g=mt(function(e,t){for(var i=0;i<e.length;i++){var n=e.charCodeAt(i);u(n,t),d(n,t)}},"updateGrKeyWStr"),f=mt(function(e){return-128<e&&e<128&&Math.floor(e)!==e?2e9-(1024*e|0):e},"cleanNum"),m=0;m<l.length;m++){var y,b,v,x,w,k=l[m],T=o[k];null!=T&&(y=(k=this.properties[k]).type,b=k.groupKey,v=void 0,null!=k.hashOverride?v=k.hashOverride(e,T):null!=T.pfValue&&(v=T.pfValue),k=null==k.enums?T.value:null,x=null!=v,w=T.units,y.number&&(x||null!=k)&&!y.multiple?(p(f(x?v:k),b),x||null==w||g(w,b)):g(T.strValue,b))}for(var S=[9261,5381],_=0;_<t.length;_++){var C=t[_],C=i.styleKeys[C];S[0]=dTe(C[0],S[0]),S[1]=pTe(C[1],S[1])}i.styleKey=gTe(S[0],S[1]);var A=i.styleKeys,E=(i.labelDimsKey=fTe(A.labelDimensions),r(e,["label"],A.labelDimensions));return i.labelKey=fTe(E),i.labelStyleKey=fTe(mTe(A.commonLabel,E)),a||(E=r(e,["source-label"],A.labelDimensions),i.sourceLabelKey=fTe(E),i.sourceLabelStyleKey=fTe(mTe(A.commonLabel,E)),E=r(e,["target-label"],A.labelDimensions),i.targetLabelKey=fTe(E),i.targetLabelStyleKey=fTe(mTe(A.commonLabel,E))),a&&(E=[(r=i.styleKeys).nodeBody,r.nodeBorder,r.nodeOutline,r.backgroundImage,r.compound,A=r.pie].filter(function(e){return null!=e}).reduce(mTe,[9261,5381]),i.nodeKey=fTe(E),i.hasPie=null!=A&&9261!==A[0]&&5381!==A[1]),s!==i.styleKey},clearStyleHints:function(e){e=e._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},applyParsedProperty:function(i,e){var n=this,r=e,t=i._private.style,s=n.types,a=n.properties[r.name].type,o=r.bypass,l=t[r.name],c=l&&l.bypass,h=i._private,u="mapping",d=mt(function(e){return null==e?null:null!=e.pfValue?e.pfValue:e.value},"getVal"),p=mt(function(){var e=d(l),t=d(r);n.checkTriggers(i,r.name,e,t)},"checkTriggers");if((r="curve-style"===e.name&&i.isEdge()&&("bezier"!==e.value&&i.isLoop()||"haystack"===e.value&&(i.source().isParent()||i.target().isParent()))?e=this.parse(e.name,"bezier",o):r).delete)t[r.name]=void 0;else{if(r.deleteBypassed)return l?!!l.bypass&&(l.bypassed=void 0,p(),!0):(p(),!0);if(r.deleteBypass)return l?!!l.bypass&&(t[r.name]=l.bypassed,p(),!0):(p(),!0);var g=mt(function(){RTe("Do not assign mappings to elements without corresponding data (i.e. ele `"+i.id()+"` has no mapping for property `"+r.name+"` with data field `"+r.field+"`); try a `["+r.field+"]` selector to limit scope to elements with `"+r.field+"` defined")},"printMappingErr");switch(r.mapped){case s.mapData:for(var f=r.field.split("."),m=h.data,y=0;y<f.length&&m;y++)m=m[f[y]];if(null==m)return g(),!1;if(!se(m))return RTe("Do not use continuous mappers without specifying numeric data (i.e. `"+r.field+": "+m+"` for `"+i.id()+"` is non-numeric)"),!1;var b=r.fieldMax-r.fieldMin;if((b=0==b?0:(m-r.fieldMin)/b)<0?b=0:1<b&&(b=1),a.color)var v=r.valueMin[0],x=r.valueMax[0],w=r.valueMin[1],k=r.valueMax[1],T=r.valueMin[2],S=r.valueMax[2],_=null==r.valueMin[3]?1:r.valueMin[3],C=null==r.valueMax[3]?1:r.valueMax[3],x=[Math.round(v+(x-v)*b),Math.round(w+(k-w)*b),Math.round(T+(S-T)*b),Math.round(_+(C-_)*b)],v={bypass:r.bypass,name:r.name,value:x,strValue:"rgb("+x[0]+", "+x[1]+", "+x[2]+")"};else{if(!a.number)return!1;k=r.valueMin+(r.valueMax-r.valueMin)*b;v=this.parse(r.name,k,r.bypass,u)}if(!v)return g(),!1;v.mapping=r,r=v;break;case s.data:for(var A=r.field.split("."),E=h.data,$=0;$<A.length&&E;$++)E=E[A[$]];if(!(v=null!=E?this.parse(r.name,E,r.bypass,u):v))return g(),!1;v.mapping=r,r=v;break;case s.fn:w=r.value,S=null!=r.fnValue?r.fnValue:w(i);if(null==(r.prevFnValue=S))return RTe("Custom function mappers may not return null (i.e. `"+r.name+"` for ele `"+i.id()+"` is null)"),!1;if(!(v=this.parse(r.name,S,r.bypass,u)))return RTe("Custom function mappers may not return invalid values for the property type (i.e. `"+r.name+"` for ele `"+i.id()+"` is invalid)"),!1;v.mapping=ITe(r),r=v;break;case void 0:break;default:return!1}o?(r.bypassed=c?l.bypassed:l,t[r.name]=r):c?l.bypassed=r:t[r.name]=r}return p(),!0},cleanElements:function(e,t){for(var i=0;i<e.length;i++){var n=e[i];if(this.clearStyleHints(n),n.dirtyCompoundBoundsCache(),n.dirtyBoundingBoxCache(),t)for(var r=n._private.style,s=Object.keys(r),a=0;a<s.length;a++){var o=s[a],l=r[o];null!=l&&(l.bypass?l.bypassed=null:r[o]=null)}else n._private.style={}}},update:function(){this._private.cy.mutableElements().updateStyle()},updateTransitions:function(t,e){var i=this,n=t._private,r=t.pstyle("transition-property").value,s=t.pstyle("transition-duration").pfValue,a=t.pstyle("transition-delay").pfValue;if(0<r.length&&0<s){for(var o={},l=!1,c=0;c<r.length;c++){var h,u,d=r[c],p=t.pstyle(d),g=e[d];g&&(h=g.prev,g=null!=g.next?g.next:p,p=!1,u=void 0,h)&&(se(h.pfValue)&&se(g.pfValue)?(p=g.pfValue-h.pfValue,u=h.pfValue+1e-6*p):se(h.value)&&se(g.value)?(p=g.value-h.value,u=h.value+1e-6*p):eke(h.value)&&eke(g.value)&&(p=h.value[0]!==g.value[0]||h.value[1]!==g.value[1]||h.value[2]!==g.value[2],u=h.strValue),p)&&(o[d]=g.strValue,this.applyBypass(t,d,u),l=!0)}l&&(n.transitioning=!0,new gCe(function(e){0<a?t.delayAnimation(a).play().promise().then(e):e()}).then(function(){return t.animation({style:o,duration:s,easing:t.pstyle("transition-timing-function").value,queue:!1}).play().promise()}).then(function(){i.removeBypasses(t,r),t.emitAndNotify("style"),n.transitioning=!1}))}else n.transitioning&&(this.removeBypasses(t,r),t.emitAndNotify("style"),n.transitioning=!1)},checkTrigger:function(e,t,i,n,r,s){t=this.properties[t],r=r(t);null!=r&&r(i,n)&&s(t)},checkZOrderTrigger:function(e,t,i,n){var r=this;this.checkTrigger(e,t,i,n,function(e){return e.triggersZOrder},function(){r._private.cy.notify("zorder",e)})},checkBoundsTrigger:function(t,i,n,r){this.checkTrigger(t,i,n,r,function(e){return e.triggersBounds},function(e){t.dirtyCompoundBoundsCache(),t.dirtyBoundingBoxCache(),!e.triggersBoundsOfParallelBeziers||"curve-style"!==i||"bezier"!==n&&"bezier"!==r||t.parallelEdges().forEach(function(e){e.dirtyBoundingBoxCache()}),!e.triggersBoundsOfConnectedEdges||"display"!==i||"none"!==n&&"none"!==r||t.connectedEdges().forEach(function(e){e.dirtyBoundingBoxCache()})})},checkTriggers:function(e,t,i,n){e.dirtyStyleCache(),this.checkZOrderTrigger(e,t,i,n),this.checkBoundsTrigger(e,t,i,n)}},jEe={applyBypass:function(e,t,i,n){var r=[];if("*"===t||"**"===t){if(void 0!==i)for(var s=0;s<this.properties.length;s++){var a=this.properties[s].name,a=this.parse(a,i,!0);a&&r.push(a)}}else if(Q7e(t)){var o=this.parse(t,i,!0);o&&r.push(o)}else{if(!tke(t))return!1;var l=t;n=i;for(var c=Object.keys(l),h=0;h<c.length;h++){var u=c[h],d=l[u];void 0!==(d=void 0===d?l[bke(u)]:d)&&(u=this.parse(u,d,!0))&&r.push(u)}}if(0===r.length)return!1;for(var p=!1,g=0;g<e.length;g++){for(var f=e[g],m={},y=void 0,b=0;b<r.length;b++){var v,x=r[b];n&&(v=f.pstyle(x.name),y=m[x.name]={prev:v}),p=this.applyParsedProperty(f,ITe(x))||p,n&&(y.next=f.pstyle(x.name))}p&&this.updateStyleHints(f),n&&this.updateTransitions(f,m,!0)}return p},overrideBypass:function(e,t,i){t=yke(t);for(var n=0;n<e.length;n++){var r=e[n],s=r._private.style[t],a=this.properties[t].type,o=a.color,a=a.mutiple,l=s?null!=s.pfValue?s.pfValue:s.value:null;s&&s.bypass?(s.value=i,null!=s.pfValue&&(s.pfValue=i),s.strValue=o?"rgb("+i.join(",")+")":a?i.join(" "):""+i,this.updateStyleHints(r)):this.applyBypass(r,t,i),this.checkTriggers(r,t,l,i)}},removeAllBypasses:function(e,t){return this.removeBypasses(e,this.propertyNames,t)},removeBypasses:function(e,t,i){for(var n=0;n<e.length;n++){for(var r=e[n],s={},a=0;a<t.length;a++){var o=t[a],l=this.properties[o],c=r.pstyle(l.name);c&&c.bypass&&(o=this.parse(o,"",!0),c=s[l.name]={prev:c},this.applyParsedProperty(r,o),c.next=r.pstyle(l.name))}this.updateStyleHints(r),i&&this.updateTransitions(r,s,!0)}}},c$e={getEmSizeInPixels:function(){var e=this.containerCss("font-size");return null!=e?parseFloat(e):1},containerCss:function(e){var t=this._private.cy,i=t.container(),t=t.window();if(t&&i&&t.getComputedStyle)return t.getComputedStyle(i).getPropertyValue(e)}},(GEe={getRenderedStyle:function(e,t){return t?this.getStylePropertyValue(e,t,!0):this.getRawStyle(e,!0)},getRawStyle:function(e,t){if(e=e[0]){for(var i={},n=0;n<this.properties.length;n++){var r=this.properties[n],s=this.getStylePropertyValue(e,r.name,t);null!=s&&(i[r.name]=s,i[bke(r.name)]=s)}return i}},getIndexedStyle:function(e,t,i,n){return e.pstyle(t)[i][n]??e.cy().style().getDefaultProperty(t)[i][0]},getStylePropertyValue:function(e,t,i){if(e=e[0]){var t=this.properties[t],n=(t=t.alias?t.pointsTo:t).type,t=e.pstyle(t.name);if(t){var r,s,a,o=t.value,l=t.units,t=t.strValue;if(i&&n.number&&null!=o&&se(o))return r=e.cy().zoom(),s=mt(function(e){return e*r},"getRenderedValue"),a=mt(function(e,t){return s(e)+t},"getValueStringWithUnits"),((i=eke(o))?l.every(function(e){return null!=e}):null!=l)?i?o.map(function(e,t){return a(e,l[t])}).join(" "):a(o,l):i?o.map(function(e){return Q7e(e)?e:""+s(e)}).join(" "):""+s(o);if(null!=t)return t}return null}},getAnimationStartStyle:function(e,t){for(var i={},n=0;n<t.length;n++){var r=t[n].name,s=e.pstyle(r);(s=void 0!==s?tke(s)?this.parse(r,s.strValue):this.parse(r,s):s)&&(i[r]=s)}return i},getPropsList:function(e){var t=[],i=e,n=this.properties;if(i)for(var r=Object.keys(i),s=0;s<r.length;s++){var a=r[s],o=i[a],a=n[a]||n[yke(a)],a=this.parse(a.name,o);a&&t.push(a)}return t},getNonDefaultPropertiesHash:function(e,t,i){for(var n,r,s,a,o=i.slice(),l=0;l<t.length;l++)if(n=t[l],null!=(n=e.pstyle(n,!1)))if(null!=n.pfValue)o[0]=dTe(s,o[0]),o[1]=pTe(s,o[1]);else for(r=n.strValue,a=0;a<r.length;a++)s=r.charCodeAt(a),o[0]=dTe(s,o[0]),o[1]=pTe(s,o[1]);return o}}).getPropertiesHash=GEe.getNonDefaultPropertiesHash,YEe={appendFromJson:function(e){for(var t=0;t<e.length;t++){var i=e[t],n=i.selector,r=i.style||i.css,s=Object.keys(r);this.selector(n);for(var a=0;a<s.length;a++){var o=s[a],l=r[o];this.css(o,l)}}return this},fromJson:function(e){return this.resetToDefault(),this.appendFromJson(e),this},json:function(){for(var e=[],t=this.defaultLength;t<this.length;t++){for(var i=this[t],n=i.selector,r=i.properties,s={},a=0;a<r.length;a++){var o=r[a];s[o.name]=o.strValue}e.push({selector:n?n.toString():"core",style:s})}return e}},XEe={appendFromString:function(e){var t=""+e;function i(){t=t.length>s.length?t.substr(s.length):""}function n(){c=c.length>d.length?c.substr(d.length):""}for(t=t.replace(/[/][*](\s|.)+?[*][/]/g,""),mt(i,"removeSelAndBlockFromRemaining"),mt(n,"removePropAndValFromRem");;){if(t.match(/^\s*$/))break;var r=t.match(/^\s*((?:.|\s)+?)\s*\{((?:.|\s)+?)\}/);if(!r){RTe("Halting stylesheet parsing: String stylesheet contains more to parse but no selector and block found in: "+t);break}var s=r[0],a=r[1];if("core"!==a)if(new LAe(a).invalid){RTe("Skipping parsing of block: Invalid selector found in string stylesheet: "+a),i();continue}for(var o=r[2],l=!1,c=o,h=[];;){if(c.match(/^\s*$/))break;var u=c.match(/^\s*(.+?)\s*:\s*(.+?)(?:\s*;|\s*$)/);if(!u){RTe("Skipping parsing of block: Invalid formatting of style property and value definitions found in:"+o),l=!0;break}var d=u[0],p=u[1],u=u[2];this.properties[p]?(this.parse(p,u)?h.push({name:p,val:u}):RTe("Skipping property: Invalid property definition in: "+d),n()):(RTe("Skipping property: Invalid property name in: "+d),n())}if(l){i();break}this.selector(a);for(var g=0;g<h.length;g++){var f=h[g];this.css(f.name,f.val)}i()}return this},fromString:function(e){return this.resetToDefault(),this.appendFromString(e),this}},w9e={};var s=wke,a=mt(function(e){return"^"+e+"\\s*\\(\\s*([\\w\\.]+)\\s*\\)$"},"data"),c=mt(function(e){var t=s+"|\\w+|rgb[a]?\\((?:(?:[-+]?(?:(?:\\d+|\\d*\\.\\d+)(?:[Ee][+-]?\\d+)?))[%]?)\\s*,\\s*(?:(?:[-+]?(?:(?:\\d+|\\d*\\.\\d+)(?:[Ee][+-]?\\d+)?))[%]?)\\s*,\\s*(?:(?:[-+]?(?:(?:\\d+|\\d*\\.\\d+)(?:[Ee][+-]?\\d+)?))[%]?)(?:\\s*,\\s*(?:(?:[-+]?(?:(?:\\d+|\\d*\\.\\d+)(?:[Ee][+-]?\\d+)?))))?\\)|hsl[a]?\\((?:(?:[-+]?(?:(?:\\d+|\\d*\\.\\d+)(?:[Ee][+-]?\\d+)?)))\\s*,\\s*(?:(?:[-+]?(?:(?:\\d+|\\d*\\.\\d+)(?:[Ee][+-]?\\d+)?))[%])\\s*,\\s*(?:(?:[-+]?(?:(?:\\d+|\\d*\\.\\d+)(?:[Ee][+-]?\\d+)?))[%])(?:\\s*,\\s*(?:(?:[-+]?(?:(?:\\d+|\\d*\\.\\d+)(?:[Ee][+-]?\\d+)?))))?\\)|\\#[0-9a-fA-F]{3}|\\#[0-9a-fA-F]{6}";return"^"+e+"\\s*\\(([\\w\\.]+)\\s*\\,\\s*("+s+")\\s*\\,\\s*("+s+")\\s*,\\s*("+t+")\\s*\\,\\s*("+t+")\\)$"},"mapData"),u=[`^url\\s*\\(\\s*['"]?(.+?)['"]?\\s*\\)$`,"^(none)$","^(.+)$"],a=(w9e.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:c("mapData")},mapLayoutData:{mapping:!0,regex:c("mapLayoutData")},mapScratch:{mapping:!0,regex:c("mapScratch")},fn:{mapping:!0,fn:!0},url:{regexes:u,singleRegexMatchValue:!0},urls:{regexes:u,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:mt(function(e,t){switch(e.length){case 2:return"deg"!==t[0]&&"rad"!==t[0]&&"deg"!==t[1]&&"rad"!==t[1];case 1:return Q7e(e[0])||"deg"===t[0]||"rad"===t[0];default:return!1}},"validate")},easing:{regexes:["^(spring)\\s*\\(\\s*("+s+")\\s*,\\s*("+s+")\\s*\\)$","^(cubic-bezier)\\s*\\(\\s*("+s+")\\s*,\\s*("+s+")\\s*,\\s*("+s+")\\s*,\\s*("+s+")\\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:mt(function(e){e=e.length;return 1===e||2===e||4===e},"validate")}},{zeroNonZero:mt(function(e,t){return(null==e||null==t)&&e!==t||0==e&&0!=t||0!=e&&0==t},"zeroNonZero"),any:mt(function(e,t){return e!=t},"any"),emptyNonEmpty:mt(function(e,t){e=uke(e),t=uke(t);return e&&!t||!e&&t},"emptyNonEmpty")}),d=w9e.types,c=[{name:"label",type:d.text,triggersBounds:a.any,triggersZOrder:a.emptyNonEmpty},{name:"text-rotation",type:d.textRotation,triggersBounds:a.any},{name:"text-margin-x",type:d.bidirectionalSize,triggersBounds:a.any},{name:"text-margin-y",type:d.bidirectionalSize,triggersBounds:a.any}],u=[{name:"source-label",type:d.text,triggersBounds:a.any},{name:"source-text-rotation",type:d.textRotation,triggersBounds:a.any},{name:"source-text-margin-x",type:d.bidirectionalSize,triggersBounds:a.any},{name:"source-text-margin-y",type:d.bidirectionalSize,triggersBounds:a.any},{name:"source-text-offset",type:d.size,triggersBounds:a.any}],p=[{name:"target-label",type:d.text,triggersBounds:a.any},{name:"target-text-rotation",type:d.textRotation,triggersBounds:a.any},{name:"target-text-margin-x",type:d.bidirectionalSize,triggersBounds:a.any},{name:"target-text-margin-y",type:d.bidirectionalSize,triggersBounds:a.any},{name:"target-text-offset",type:d.size,triggersBounds:a.any}],g=[{name:"font-family",type:d.fontFamily,triggersBounds:a.any},{name:"font-style",type:d.fontStyle,triggersBounds:a.any},{name:"font-weight",type:d.fontWeight,triggersBounds:a.any},{name:"font-size",type:d.size,triggersBounds:a.any},{name:"text-transform",type:d.textTransform,triggersBounds:a.any},{name:"text-wrap",type:d.textWrap,triggersBounds:a.any},{name:"text-overflow-wrap",type:d.textOverflowWrap,triggersBounds:a.any},{name:"text-max-width",type:d.size,triggersBounds:a.any},{name:"text-outline-width",type:d.size,triggersBounds:a.any},{name:"line-height",type:d.positiveNumber,triggersBounds:a.any}],f=[{name:"text-valign",type:d.valign,triggersBounds:a.any},{name:"text-halign",type:d.halign,triggersBounds:a.any},{name:"color",type:d.color},{name:"text-outline-color",type:d.color},{name:"text-outline-opacity",type:d.zeroOneNumber},{name:"text-background-color",type:d.color},{name:"text-background-opacity",type:d.zeroOneNumber},{name:"text-background-padding",type:d.size,triggersBounds:a.any},{name:"text-border-opacity",type:d.zeroOneNumber},{name:"text-border-color",type:d.color},{name:"text-border-width",type:d.size,triggersBounds:a.any},{name:"text-border-style",type:d.borderStyle,triggersBounds:a.any},{name:"text-background-shape",type:d.textBackgroundShape,triggersBounds:a.any},{name:"text-justification",type:d.justification}],m=[{name:"events",type:d.bool,triggersZOrder:a.any},{name:"text-events",type:d.bool,triggersZOrder:a.any}],y=[{name:"display",type:d.display,triggersZOrder:a.any,triggersBounds:a.any,triggersBoundsOfConnectedEdges:!0},{name:"visibility",type:d.visibility,triggersZOrder:a.any},{name:"opacity",type:d.zeroOneNumber,triggersZOrder:a.zeroNonZero},{name:"text-opacity",type:d.zeroOneNumber},{name:"min-zoomed-font-size",type:d.size},{name:"z-compound-depth",type:d.zCompoundDepth,triggersZOrder:a.any},{name:"z-index-compare",type:d.zIndexCompare,triggersZOrder:a.any},{name:"z-index",type:d.number,triggersZOrder:a.any}],b=[{name:"overlay-padding",type:d.size,triggersBounds:a.any},{name:"overlay-color",type:d.color},{name:"overlay-opacity",type:d.zeroOneNumber,triggersBounds:a.zeroNonZero},{name:"overlay-shape",type:d.overlayShape,triggersBounds:a.any},{name:"overlay-corner-radius",type:d.cornerRadius}],v=[{name:"underlay-padding",type:d.size,triggersBounds:a.any},{name:"underlay-color",type:d.color},{name:"underlay-opacity",type:d.zeroOneNumber,triggersBounds:a.zeroNonZero},{name:"underlay-shape",type:d.overlayShape,triggersBounds:a.any},{name:"underlay-corner-radius",type:d.cornerRadius}],O=[{name:"transition-property",type:d.propList},{name:"transition-duration",type:d.time},{name:"transition-delay",type:d.time},{name:"transition-timing-function",type:d.easing}],x=mt(function(e,t){return"label"===t.value?-e.poolIndex():t.pfValue},"nodeSizeHashOverride"),x=[{name:"height",type:d.nodeSize,triggersBounds:a.any,hashOverride:x},{name:"width",type:d.nodeSize,triggersBounds:a.any,hashOverride:x},{name:"shape",type:d.nodeShape,triggersBounds:a.any},{name:"shape-polygon-points",type:d.polygonPointList,triggersBounds:a.any},{name:"corner-radius",type:d.cornerRadius},{name:"background-color",type:d.color},{name:"background-fill",type:d.fill},{name:"background-opacity",type:d.zeroOneNumber},{name:"background-blacken",type:d.nOneOneNumber},{name:"background-gradient-stop-colors",type:d.colors},{name:"background-gradient-stop-positions",type:d.percentages},{name:"background-gradient-direction",type:d.gradientDirection},{name:"padding",type:d.sizeMaybePercent,triggersBounds:a.any},{name:"padding-relative-to",type:d.paddingRelativeTo,triggersBounds:a.any},{name:"bounds-expansion",type:d.boundsExpansion,triggersBounds:a.any}],P=[{name:"border-color",type:d.color},{name:"border-opacity",type:d.zeroOneNumber},{name:"border-width",type:d.size,triggersBounds:a.any},{name:"border-style",type:d.borderStyle},{name:"border-cap",type:d.lineCap},{name:"border-join",type:d.lineJoin},{name:"border-dash-pattern",type:d.numbers},{name:"border-dash-offset",type:d.number},{name:"border-position",type:d.linePosition}],B=[{name:"outline-color",type:d.color},{name:"outline-opacity",type:d.zeroOneNumber},{name:"outline-width",type:d.size,triggersBounds:a.any},{name:"outline-style",type:d.borderStyle},{name:"outline-offset",type:d.size,triggersBounds:a.any}],F=[{name:"background-image",type:d.urls},{name:"background-image-crossorigin",type:d.bgCrossOrigin},{name:"background-image-opacity",type:d.zeroOneNumbers},{name:"background-image-containment",type:d.bgContainment},{name:"background-image-smoothing",type:d.bools},{name:"background-position-x",type:d.bgPos},{name:"background-position-y",type:d.bgPos},{name:"background-width-relative-to",type:d.bgRelativeTo},{name:"background-height-relative-to",type:d.bgRelativeTo},{name:"background-repeat",type:d.bgRepeat},{name:"background-fit",type:d.bgFit},{name:"background-clip",type:d.bgClip},{name:"background-width",type:d.bgWH},{name:"background-height",type:d.bgWH},{name:"background-offset-x",type:d.bgPos},{name:"background-offset-y",type:d.bgPos}],j=[{name:"position",type:d.position,triggersBounds:a.any},{name:"compound-sizing-wrt-labels",type:d.compoundIncludeLabels,triggersBounds:a.any},{name:"min-width",type:d.size,triggersBounds:a.any},{name:"min-width-bias-left",type:d.sizeMaybePercent,triggersBounds:a.any},{name:"min-width-bias-right",type:d.sizeMaybePercent,triggersBounds:a.any},{name:"min-height",type:d.size,triggersBounds:a.any},{name:"min-height-bias-top",type:d.sizeMaybePercent,triggersBounds:a.any},{name:"min-height-bias-bottom",type:d.sizeMaybePercent,triggersBounds:a.any}],z=[{name:"line-style",type:d.lineStyle},{name:"line-color",type:d.color},{name:"line-fill",type:d.fill},{name:"line-cap",type:d.lineCap},{name:"line-opacity",type:d.zeroOneNumber},{name:"line-dash-pattern",type:d.numbers},{name:"line-dash-offset",type:d.number},{name:"line-outline-width",type:d.size},{name:"line-outline-color",type:d.color},{name:"line-gradient-stop-colors",type:d.colors},{name:"line-gradient-stop-positions",type:d.percentages},{name:"curve-style",type:d.curveStyle,triggersBounds:a.any,triggersBoundsOfParallelBeziers:!0},{name:"haystack-radius",type:d.zeroOneNumber,triggersBounds:a.any},{name:"source-endpoint",type:d.edgeEndpoint,triggersBounds:a.any},{name:"target-endpoint",type:d.edgeEndpoint,triggersBounds:a.any},{name:"control-point-step-size",type:d.size,triggersBounds:a.any},{name:"control-point-distances",type:d.bidirectionalSizes,triggersBounds:a.any},{name:"control-point-weights",type:d.numbers,triggersBounds:a.any},{name:"segment-distances",type:d.bidirectionalSizes,triggersBounds:a.any},{name:"segment-weights",type:d.numbers,triggersBounds:a.any},{name:"segment-radii",type:d.numbers,triggersBounds:a.any},{name:"radius-type",type:d.radiusType,triggersBounds:a.any},{name:"taxi-turn",type:d.bidirectionalSizeMaybePercent,triggersBounds:a.any},{name:"taxi-turn-min-distance",type:d.size,triggersBounds:a.any},{name:"taxi-direction",type:d.axisDirection,triggersBounds:a.any},{name:"taxi-radius",type:d.number,triggersBounds:a.any},{name:"edge-distances",type:d.edgeDistances,triggersBounds:a.any},{name:"arrow-scale",type:d.positiveNumber,triggersBounds:a.any},{name:"loop-direction",type:d.angle,triggersBounds:a.any},{name:"loop-sweep",type:d.angle,triggersBounds:a.any},{name:"source-distance-from-node",type:d.size,triggersBounds:a.any},{name:"target-distance-from-node",type:d.size,triggersBounds:a.any}],H=[{name:"ghost",type:d.bool,triggersBounds:a.any},{name:"ghost-offset-x",type:d.bidirectionalSize,triggersBounds:a.any},{name:"ghost-offset-y",type:d.bidirectionalSize,triggersBounds:a.any},{name:"ghost-opacity",type:d.zeroOneNumber}],U=[{name:"selection-box-color",type:d.color},{name:"selection-box-opacity",type:d.zeroOneNumber},{name:"selection-box-border-color",type:d.color},{name:"selection-box-border-width",type:d.size},{name:"active-bg-color",type:d.color},{name:"active-bg-opacity",type:d.zeroOneNumber},{name:"active-bg-size",type:d.size},{name:"outside-texture-bg-color",type:d.color},{name:"outside-texture-bg-opacity",type:d.zeroOneNumber}],w=[];w9e.pieBackgroundN=16,w.push({name:"pie-size",type:d.sizeMaybePercent});for(var k=1;k<=w9e.pieBackgroundN;k++)w.push({name:"pie-"+k+"-background-color",type:d.color}),w.push({name:"pie-"+k+"-background-size",type:d.percent}),w.push({name:"pie-"+k+"-background-opacity",type:d.zeroOneNumber});var T=[],q=w9e.arrowPrefixes=["source","mid-source","target","mid-target"],S=([{name:"arrow-shape",type:d.arrowShape,triggersBounds:a.any},{name:"arrow-color",type:d.color},{name:"arrow-fill",type:d.arrowFill},{name:"arrow-width",type:d.arrowWidth}].forEach(function(n){q.forEach(function(e){var e=e+"-"+n.name,t=n.type,i=n.triggersBounds;T.push({name:e,type:t,triggersBounds:i})})},{}),w9e.properties=[].concat(m,O,y,b,v,H,f,g,c,u,p,x,P,B,F,w,j,z,T,U)),_=w9e.propertyGroups={behavior:m,transition:O,visibility:y,overlay:b,underlay:v,ghost:H,commonLabel:f,labelDimensions:g,mainLabel:c,sourceLabel:u,targetLabel:p,nodeBody:x,nodeBorder:P,nodeOutline:B,backgroundImage:F,pie:w,compound:j,edgeLine:z,edgeArrow:T,core:U},W=w9e.propertyGroupNames={},V=((w9e.propertyGroupKeys=Object.keys(_)).forEach(function(t){W[t]=_[t].map(function(e){return e.name}),_[t].forEach(function(e){return e.groupKey=t})}),w9e.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"}]);w9e.propertyNames=S.map(function(e){return e.name});for(var C=0;C<S.length;C++){var G=S[C];S[G.name]=G}for(var A=0;A<V.length;A++){var E=V[A],$=S[E.pointsTo],$={name:E.name,alias:!0,pointsTo:$};S.push($),S[E.name]=$}function L(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:CTe;Wwe(this,L),this.idsByKey=new qTe,this.keyForId=new qTe,this.cachesByLvl=new qTe,this.lvls=[],this.getKey=e,this.doesEleInvalidateKey=t}function R(e,t){Wwe(this,R),this.r=e,this.opts=t,this.keyToIds=new Map,this.idToKey=new Map,this.atlases=[],this.styleKeyToAtlas=new Map,this.styleKeyNeedsRedraw=new Set,this.forceGC=!1}function M(e,t){Wwe(this,M),this.debugID=Math.floor(1e4*Math.random()),this.r=e,this.atlasSize=t.webglTexSize,this.rows=t.webglTexRows,this.enableWrapping=t.enableWrapping,this.texHeight=Math.floor(this.atlasSize/this.rows),this.maxTexWidth=this.atlasSize,this.texture=null,this.canvas=null,this.needsBuffer=!0,this.freePointer={x:0,row:0},this.keyToLocation=new Map,this.canvas=t.createTextureCanvas(e,this.atlasSize,this.atlasSize),this.scratch=t.createTextureCanvas(e,this.atlasSize,this.texHeight,"scratch")}function I(e,t,i){Wwe(this,I),this.r=e,this.gl=t,this.maxInstances=i.webglBatchSize,this.maxAtlases=i.webglTexPerBatch,this.atlasSize=i.webglTexSize,this.bgColor=i.bgColor,i.enableWrapping=!0,i.createTextureCanvas=n7e,this.atlasManager=new a$e(e,i),this.program=this.createShaderProgram(i$e.SCREEN),this.pickingProgram=this.createShaderProgram(i$e.PICKING),this.vao=this.createVAO(),this.debugInfo=[]}function N(e,t){Wwe(this,N),this.r=e;e=t;this.globalOptions=e,this.maxAtlases=e.webglTexPerBatch,this.atlasSize=e.webglTexSize,this.renderTypes=new Map,this.maxAtlasesPerBatch=t.webglTexPerBatch,this.batchAtlases=[],this._cacheScratchCanvas(e)}function D(e){Wwe(this,D),this.r=e}for(w9e.getDefaultProperty=function(e){return this.getDefaultProperties()[e]},w9e.getDefaultProperties=function(){var e=this._private;if(null==e.defaultProperties){for(var t=Ske({"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(e,t){for(var i=1;i<=w9e.pieBackgroundN;i++){var n=t.name.replace("{{i}}",i),r=t.value;e[n]=r}return e},{}),{"line-style":"solid","line-color":"#999","line-fill":"solid","line-cap":"butt","line-opacity":1,"line-outline-width":0,"line-outline-color":"#000","line-gradient-stop-colors":"#999","line-gradient-stop-positions":"0%","control-point-step-size":40,"control-point-weights":.5,"segment-weights":.5,"segment-distances":20,"segment-radii":15,"radius-type":"arc-radius","taxi-turn":"50%","taxi-radius":15,"taxi-turn-min-distance":10,"taxi-direction":"auto","edge-distances":"intersection","curve-style":"haystack","haystack-radius":0,"arrow-scale":1,"loop-direction":"-45deg","loop-sweep":"-90deg","source-distance-from-node":0,"target-distance-from-node":0,"source-endpoint":"outside-to-node","target-endpoint":"outside-to-node","line-dash-pattern":[6,3],"line-dash-offset":0},[{name:"arrow-shape",value:"none"},{name:"arrow-color",value:"#999"},{name:"arrow-fill",value:"filled"},{name:"arrow-width",value:1}].reduce(function(i,n){return w9e.arrowPrefixes.forEach(function(e){var e=e+"-"+n.name,t=n.value;i[e]=t}),i},{})),i={},n=0;n<this.properties.length;n++){var r,s=this.properties[n];s.pointsTo||(r=t[s=s.name],r=this.parse(s,r),i[s]=r)}e.defaultProperties=i}return e.defaultProperties},w9e.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},KEe={parse:function(e,t,i,n){var r,s,a;return J7e(t)?this.parseImplWarn(e,t,i,n):(r=vTe(e,""+t,i?"t":"f","mapping"===n||!0===n||!1===n||null==n?"dontcare":n),a=(a=(s=this.propCache=this.propCache||[])[r])||(s[r]=this.parseImplWarn(e,t,i,n)),(i||"mapping"===n)&&(a=ITe(a))&&(a.value=ITe(a.value)),a)},parseImplWarn:function(e,t,i,n){i=this.parseImpl(e,t,i,n);return i||null==t||RTe("The style property `".concat(e,": ").concat(t,"` is invalid")),!i||"width"!==i.name&&"height"!==i.name||"label"!==t||RTe("The style value of `label` is deprecated for `"+i.name+"`"),i},parseImpl:function(t,i,n,e){t=yke(t);var r=this.properties[t],s=i,a=this.types;if(!r||void 0===i)return null;r.alias&&(r=r.pointsTo,t=r.name);var o=Q7e(i),l=(o&&(i=i.trim()),r.type);if(!l)return null;if(n&&(""===i||null===i))return{name:t,value:i,bypass:!0,deleteBypass:!0};if(J7e(i))return{name:t,value:i,strValue:"fn",mapped:a.fn,bypass:n};if(!(!o||e||i.length<7||"a"!==i[1])){if(7<=i.length&&"d"===i[0]&&(r=new RegExp(a.data.regex).exec(i)))return!n&&(w=a.data,{name:t,value:r,strValue:""+i,mapped:w,field:r[1],bypass:n});if(10<=i.length&&"m"===i[0]&&(w=new RegExp(a.mapData.regex).exec(i))){if(n||l.multiple)return!1;r=a.mapData;if(!l.color&&!l.number)return!1;a=this.parse(t,w[4]);if(!a||a.mapped)return!1;var c=this.parse(t,w[5]);if(!c||c.mapped)return!1;if(a.pfValue===c.pfValue||a.strValue===c.strValue)return RTe("`"+t+": "+i+"` is not a valid mapper because the output range is zero; converting to `"+t+": "+a.strValue+"`"),this.parse(t,a.strValue);if(l.color){var h=a.value,u=c.value;if(!(h[0]!==u[0]||h[1]!==u[1]||h[2]!==u[2]||h[3]!==u[3]&&(null!=h[3]&&1!==h[3]||null!=u[3]&&1!==u[3])))return!1}return{name:t,value:w,strValue:""+i,mapped:r,field:w[1],fieldMin:parseFloat(w[2]),fieldMax:parseFloat(w[3]),valueMin:a.value,valueMax:c.value,bypass:n}}}if(l.multiple&&"multiple"!==e){var d=o?i.split(/\s+/):eke(i)?i:[i];if(l.evenMultiple&&d.length%2!=0)return null;for(var p=[],g=[],f=[],m="",y=!1,b=0;b<d.length;b++){var v=this.parse(t,d[b],n,"multiple"),y=y||Q7e(v.value);p.push(v.value),f.push(null!=v.pfValue?v.pfValue:v.value),g.push(v.units),m+=(0<b?" ":"")+v.strValue}return l.validate&&!l.validate(p,g)?null:l.singleEnum&&y?1===p.length&&Q7e(p[0])?{name:t,value:p[0],strValue:p[0],bypass:n}:null:{name:t,value:p,pfValue:f,strValue:m,bypass:n,units:g}}var x,w,h=mt(function(){for(var e=0;e<l.enums.length;e++)if(l.enums[e]===i)return{name:t,value:i,strValue:""+i,bypass:n};return null},"checkEnums");if(l.number)return u="px",l.units&&(x=l.units),l.implicitUnits&&(u=l.implicitUnits),l.unitless||(o?(r="px|em"+(l.allowPercent?"|\\%":""),x&&(r=x),(w=i.match("^("+wke+")("+r+")?$"))&&(i=w[1],x=w[2]||u)):x&&!l.implicitUnits||(x=u)),i=parseFloat(i),isNaN(i)&&void 0===l.enums?null:isNaN(i)&&void 0!==l.enums?(i=s,h()):l.integer&&!nke(i)||void 0!==l.min&&(i<l.min||l.strictMin&&i===l.min)||void 0!==l.max&&(i>l.max||l.strictMax&&i===l.max)?null:(a={name:t,value:i,strValue:""+i+(x||""),units:x,bypass:n},l.unitless||"px"!==x&&"em"!==x?a.pfValue=i:a.pfValue="px"!==x&&x?this.getEmSizeInPixels()*i:i,"ms"!==x&&"s"!==x||(a.pfValue="ms"===x?i:1e3*i),"deg"!==x&&"rad"!==x||(a.pfValue="rad"===x?i:cSe(i)),"%"===x&&(a.pfValue=i/100),a);if(l.propList){var k=[],c=""+i;if("none"!==c){for(var T=c.split(/\s*,\s*|\s+/),S=0;S<T.length;S++){var _=T[S].trim();this.properties[_]?k.push(_):RTe("`"+_+"` is not a valid property name")}if(0===k.length)return null}return{name:t,value:k,strValue:0===k.length?"none":k.join(" "),bypass:n}}if(l.color)return(e=$ke(i))?{name:t,value:e,pfValue:e,strValue:"rgb("+e[0]+","+e[1]+","+e[2]+")",bypass:n}:null;if(l.regex||l.regexes){if(l.enums){o=h();if(o)return o}for(var C=l.regexes||[l.regex],A=0;A<C.length;A++){var E=new RegExp(C[A]).exec(i);if(E)return{name:t,value:l.singleRegexMatchValue?E[1]:E,strValue:""+i,bypass:n}}return null}return l.string?{name:t,value:""+i,strValue:""+i,bypass:n}:l.enums?h():null}},k9e=mt(function e(t){if(!(this instanceof e))return new e(t);lke(t)?(this._private={cy:t,coreStyle:{}},this.length=0,this.resetToDefault()):$Te("A style must have a core reference")},"Style"),(T9e=k9e.prototype).instanceString=function(){return"style"},T9e.clear=function(){for(var e=this._private,t=e.cy.elements(),i=0;i<this.length;i++)this[i]=void 0;return this.length=0,e.contextStyles={},e.propDiffs={},this.cleanElements(t,!0),t.forEach(function(e){e=e[0]._private;e.styleDirty=!0,e.appliedInitStyle=!1}),this},T9e.resetToDefault=function(){return this.clear(),this.addDefaultStylesheet(),this},T9e.core=function(e){return this._private.coreStyle[e]||this.getDefaultProperty(e)},T9e.selector=function(e){var e="core"===e?null:new LAe(e),t=this.length++;return this[t]={selector:e,properties:[],mappedProperties:[],index:t},this},T9e.css=function(){var e=arguments;if(1===e.length)for(var t=e[0],i=0;i<this.properties.length;i++){var n=this.properties[i],r=t[n.name];void 0!==(r=void 0===r?t[bke(n.name)]:r)&&this.cssRule(n.name,r)}else 2===e.length&&this.cssRule(e[0],e[1]);return this},T9e.style=T9e.css,T9e.cssRule=function(e,t){e=this.parse(e,t);return e&&(this[t=this.length-1].properties.push(e),(this[t].properties[e.name]=e).name.match(/pie-(\d+)-background-size/)&&e.value&&(this._private.hasPie=!0),e.mapped&&this[t].mappedProperties.push(e),!this[t].selector)&&(this._private.coreStyle[e.name]=e),this},T9e.append=function(e){return cke(e)?e.appendToStyle(this):eke(e)?this.appendFromJson(e):Q7e(e)&&this.appendFromString(e),this},k9e.fromJson=function(e,t){e=new k9e(e);return e.fromJson(t),e},k9e.fromString=function(e,t){return new k9e(e).fromString(t)},[BEe,jEe,c$e,GEe,YEe,XEe,w9e,KEe].forEach(function(e){Ske(T9e,e)}),k9e.types=T9e.types,k9e.properties=T9e.properties,k9e.propertyGroups=T9e.propertyGroups,k9e.propertyGroupNames=T9e.propertyGroupNames,k9e.propertyGroupKeys=T9e.propertyGroupKeys,_$e={style:mt(function(e){return e&&this.setStyle(e).update(),this._private.style},"style"),setStyle:mt(function(e){var t=this._private;return cke(e)?t.style=e.generateStyle(this):eke(e)?t.style=k9e.fromJson(this,e):Q7e(e)?t.style=k9e.fromString(this,e):t.style=k9e(this),t.style},"setStyle"),updateStyle:mt(function(){this.mutableElements().updateStyle()},"updateStyle")},(Q={autolock:mt(function(e){return void 0===e?this._private.autolock:(this._private.autolock=!!e,this)},"autolock"),autoungrabify:mt(function(e){return void 0===e?this._private.autoungrabify:(this._private.autoungrabify=!!e,this)},"autoungrabify"),autounselectify:mt(function(e){return void 0===e?this._private.autounselectify:(this._private.autounselectify=!!e,this)},"autounselectify"),selectionType:mt(function(e){var t=this._private;return null==t.selectionType&&(t.selectionType="single"),void 0===e?t.selectionType:("additive"!==e&&"single"!==e||(t.selectionType=e),this)},"selectionType"),panningEnabled:mt(function(e){return void 0===e?this._private.panningEnabled:(this._private.panningEnabled=!!e,this)},"panningEnabled"),userPanningEnabled:mt(function(e){return void 0===e?this._private.userPanningEnabled:(this._private.userPanningEnabled=!!e,this)},"userPanningEnabled"),zoomingEnabled:mt(function(e){return void 0===e?this._private.zoomingEnabled:(this._private.zoomingEnabled=!!e,this)},"zoomingEnabled"),userZoomingEnabled:mt(function(e){return void 0===e?this._private.userZoomingEnabled:(this._private.userZoomingEnabled=!!e,this)},"userZoomingEnabled"),boxSelectionEnabled:mt(function(e){return void 0===e?this._private.boxSelectionEnabled:(this._private.boxSelectionEnabled=!!e,this)},"boxSelectionEnabled"),pan:mt(function(){var e,t,i,n=arguments,r=this._private.pan;switch(n.length){case 0:return r;case 1:if(Q7e(n[0]))return r[e=n[0]];if(tke(n[0])){if(!this._private.panningEnabled)return this;t=(i=n[0]).x,i=i.y,se(t)&&(r.x=t),se(i)&&(r.y=i),this.emit("pan viewport")}break;case 2:if(!this._private.panningEnabled)return this;t=n[1],"x"!==(e=n[0])&&"y"!==e||!se(t)||(r[e]=t),this.emit("pan viewport")}return this.notify("viewport"),this},"pan"),panBy:mt(function(e,t){var i,n,r=arguments,s=this._private.pan;if(this._private.panningEnabled){switch(r.length){case 1:tke(e)&&(i=(n=r[0]).x,n=n.y,se(i)&&(s.x+=i),se(n)&&(s.y+=n),this.emit("pan viewport"));break;case 2:i=t,"x"!==(n=e)&&"y"!==n||!se(i)||(s[n]+=i),this.emit("pan viewport")}this.notify("viewport")}return this},"panBy"),gc:mt(function(){this.notify("gc")},"gc"),fit:mt(function(e,t){e=this.getFitViewport(e,t);return e&&((t=this._private).zoom=e.zoom,t.pan=e.pan,this.emit("pan zoom viewport"),this.notify("viewport")),this},"fit"),getFitViewport:mt(function(e,t){var i;if((se(e)&&void 0===t&&(t=e,e=void 0),this._private.panningEnabled&&this._private.zoomingEnabled)&&(Q7e(e)?(n=e,e=this.$(n)):pke(e)?((i={x1:(n=e).x1,y1:n.y1,x2:n.x2,y2:n.y2}).w=i.x2-i.x1,i.h=i.y2-i.y1):ske(e)||(e=this.mutableElements()),!ske(e)||!e.empty())){i=i||e.boundingBox();var n=this.width(),e=this.height();if(t=se(t)?t:0,!isNaN(n)&&!isNaN(e)&&0<n&&0<e&&!isNaN(i.w)&&!isNaN(i.h)&&0<i.w&&0<i.h)return{zoom:t=(t=(t=Math.min((n-2*t)/i.w,(e-2*t)/i.h))>this._private.maxZoom?this._private.maxZoom:t)<this._private.minZoom?this._private.minZoom:t,pan:{x:(n-t*(i.x1+i.x2))/2,y:(e-t*(i.y1+i.y2))/2}}}},"getFitViewport"),zoomRange:mt(function(e,t){var i,n=this._private;return null==t&&(e=(i=e).min,t=i.max),se(e)&&se(t)&&e<=t?(n.minZoom=e,n.maxZoom=t):se(e)&&void 0===t&&e<=n.maxZoom?n.minZoom=e:se(t)&&void 0===e&&t>=n.minZoom&&(n.maxZoom=t),this},"zoomRange"),minZoom:mt(function(e){return void 0===e?this._private.minZoom:this.zoomRange({min:e})},"minZoom"),maxZoom:mt(function(e){return void 0===e?this._private.maxZoom:this.zoomRange({max:e})},"maxZoom"),getZoomedViewport:mt(function(e){var t,i,n=this._private,r=n.pan,s=n.zoom,a=!1;return n.zoomingEnabled||(a=!0),se(e)?i=e:tke(e)&&(i=e.level,null!=e.position?t=iSe(e.position,s,r):null!=e.renderedPosition&&(t=e.renderedPosition),null!=t)&&!n.panningEnabled&&(a=!0),i=(i=i>n.maxZoom?n.maxZoom:i)<n.minZoom?n.minZoom:i,!a&&se(i)&&i!==s&&(null==t||se(t.x)&&se(t.y))?null!=t?{zoomed:!0,panned:!0,zoom:e=i,pan:{x:-e/s*(t.x-r.x)+t.x,y:-e/s*(t.y-r.y)+t.y}}:{zoomed:!0,panned:!1,zoom:i,pan:r}:null},"getZoomedViewport"),zoom:mt(function(e){var t;return void 0===e?this._private.zoom:(e=this.getZoomedViewport(e),t=this._private,null!=e&&e.zoomed&&(t.zoom=e.zoom,e.panned&&(t.pan.x=e.pan.x,t.pan.y=e.pan.y),this.emit("zoom"+(e.panned?" pan":"")+" viewport"),this.notify("viewport")),this)},"zoom"),viewport:mt(function(e){var t=this._private,i=!0,n=!0,r=[],s=!1,a=!1;return e&&(se(e.zoom)||(i=!1),tke(e.pan)||(n=!1),i||n)&&(i&&((i=e.zoom)<t.minZoom||i>t.maxZoom||!t.zoomingEnabled?s=!0:(t.zoom=i,r.push("zoom"))),!n||s&&e.cancelOnFailedZoom||!t.panningEnabled||(i=e.pan,se(i.x)&&(t.pan.x=i.x,a=!1),se(i.y)&&(t.pan.y=i.y,a=!1),a)||r.push("pan"),0<r.length)&&(r.push("viewport"),this.emit(r.join(" ")),this.notify("viewport")),this},"viewport"),center:mt(function(e){e=this.getCenterPan(e);return e&&(this._private.pan=e,this.emit("pan viewport"),this.notify("viewport")),this},"center"),getCenterPan:mt(function(e,t){var i,n;if(this._private.panningEnabled&&(Q7e(e)?(i=e,e=this.mutableElements().filter(i)):ske(e)||(e=this.mutableElements()),0!==e.length))return i=e.boundingBox(),e=this.width(),n=this.height(),{x:(e-(t=void 0===t?this._private.zoom:t)*(i.x1+i.x2))/2,y:(n-t*(i.y1+i.y2))/2}},"getCenterPan"),reset:mt(function(){return this._private.panningEnabled&&this._private.zoomingEnabled&&this.viewport({pan:{x:0,y:0},zoom:1}),this},"reset"),invalidateSize:mt(function(){this._private.sizeCache=null},"invalidateSize"),size:mt(function(){var t,e=this._private,i=e.container;return e.sizeCache=e.sizeCache||(i?(t=this.window().getComputedStyle(i),e=mt(function(e){return parseFloat(t.getPropertyValue(e))},"val"),{width:i.clientWidth-e("padding-left")-e("padding-right"),height:i.clientHeight-e("padding-top")-e("padding-bottom")}):{width:1,height:1})},"size"),width:mt(function(){return this.size().width},"width"),height:mt(function(){return this.size().height},"height"),extent:mt(function(){var e=this._private.pan,t=this._private.zoom,i=this.renderedExtent(),i={x1:(i.x1-e.x)/t,x2:(i.x2-e.x)/t,y1:(i.y1-e.y)/t,y2:(i.y2-e.y)/t};return i.w=i.x2-i.x1,i.h=i.y2-i.y1,i},"extent"),renderedExtent:mt(function(){var e=this.width(),t=this.height();return{x1:0,y1:0,x2:e,y2:t,w:e,h:t}},"renderedExtent"),multiClickDebounceTime:mt(function(e){return e?(this._private.multiClickDebounceTime=e,this):this._private.multiClickDebounceTime},"multiClickDebounceTime")}).centre=Q.center,Q.autolockNodes=Q.autolock,Q.autoungrabifyNodes=Q.autoungrabify,(J={data:dAe.data({field:"data",bindingEvent:"data",allowBinding:!0,allowSetting:!0,settingEvent:"data",settingTriggersEvent:!0,triggerFnName:"trigger",allowGetting:!0,updateStyle:!0}),removeData:dAe.removeData({field:"data",event:"data",triggerFnName:"trigger",triggerEvent:!0,updateStyle:!0}),scratch:dAe.data({field:"scratch",bindingEvent:"scratch",allowBinding:!0,allowSetting:!0,settingEvent:"scratch",settingTriggersEvent:!0,triggerFnName:"trigger",allowGetting:!0,updateStyle:!0}),removeScratch:dAe.removeData({field:"scratch",event:"scratch",triggerFnName:"trigger",triggerEvent:!0,updateStyle:!0})}).attr=J.data,J.removeAttr=J.removeData,S9e=mt(function(e){var r=this,t=(e=Ske({},e)).container,i=(t=t&&!rke(t)&&rke(t[0])?t[0]:t)?t._cyreg:null,n=((i=i||{})&&i.cy&&(i.cy.destroy(),i={}),i.readies=i.readies||[]),s=(t&&(t._cyreg=i),i.cy=r,void 0!==W7e&&void 0!==t&&!e.headless),a=e,e=(a.layout=Ske({name:s?"grid":"null"},a.layout),a.renderer=Ske({name:s?"canvas":"null"},a.renderer),mt(function(e,t,i){return void 0!==t?t:void 0!==i?i:e},"defVal")),o=this._private={container:t,ready:!1,options:a,elements:new g9e(this),listeners:[],aniEles:new g9e(this),data:a.data||{},scratch:{},layout:null,renderer:null,destroyed:!1,notificationsEnabled:!0,minZoom:1e-50,maxZoom:1e50,zoomingEnabled:e(!0,a.zoomingEnabled),userZoomingEnabled:e(!0,a.userZoomingEnabled),panningEnabled:e(!0,a.panningEnabled),userPanningEnabled:e(!0,a.userPanningEnabled),boxSelectionEnabled:e(!0,a.boxSelectionEnabled),autolock:e(!1,a.autolock,a.autolockNodes),autoungrabify:e(!1,a.autoungrabify,a.autoungrabifyNodes),autounselectify:e(!1,a.autounselectify),styleEnabled:void 0===a.styleEnabled?s:a.styleEnabled,zoom:se(a.zoom)?a.zoom:1,pan:{x:tke(a.pan)&&se(a.pan.x)?a.pan.x:0,y:tke(a.pan)&&se(a.pan.y)?a.pan.y:0},animation:{current:[],queue:[]},hasCompoundNodes:!1,multiClickDebounceTime:e(250,a.multiClickDebounceTime)},t=(this.createEmitter(),this.selectionType(a.selectionType),this.zoomRange({min:a.minZoom,max:a.maxZoom}),mt(function(e,t){if(e.some(gke))return gCe.all(e).then(t);t(e)},"loadExtData")),s=(o.styleEnabled&&r.setStyle([]),Ske({},a,a.renderer)),l=(r.initRenderer(s),mt(function(e,t,i){r.notifications(!1);var n=r.mutableElements(),n=(0<n.length&&n.remove(),null!=e&&(tke(e)||eke(e))&&r.add(e),r.one("layoutready",function(e){r.notifications(!0),r.emit(e),r.one("load",t),r.emitAndNotify("load")}).one("layoutstop",function(){r.one("done",i),r.emit("done")}),Ske({},r._private.options.layout));n.eles=r.elements(),r.layout(n).run()},"setElesAndLayout"));t([a.style,a.elements],function(e){var t=e[0],e=e[1];o.styleEnabled&&r.style().append(t),l(e,function(){r.startAnimationLoop(),o.ready=!0,J7e(a.ready)&&r.on("ready",a.ready);for(var e=0;e<n.length;e++){var t=n[e];r.on("ready",t)}i&&(i.readies=[]),r.emit("ready")},a.done)})},"Core"),_9e=S9e.prototype,Ske(_9e,{instanceString:mt(function(){return"core"},"instanceString"),isReady:mt(function(){return this._private.ready},"isReady"),destroyed:mt(function(){return this._private.destroyed},"destroyed"),ready:mt(function(e){return this.isReady()?this.emitter().emit("ready",[],e):this.on("ready",e),this},"ready"),destroy:mt(function(){if(!this.destroyed())return this.stopAnimationLoop(),this.destroyRenderer(),this.emit("destroy"),this._private.destroyed=!0,this},"destroy"),hasElementWithId:mt(function(e){return this._private.elements.hasElementWithId(e)},"hasElementWithId"),getElementById:mt(function(e){return this._private.elements.getElementById(e)},"getElementById"),hasCompoundNodes:mt(function(){return this._private.hasCompoundNodes},"hasCompoundNodes"),headless:mt(function(){return this._private.renderer.isHeadless()},"headless"),styleEnabled:mt(function(){return this._private.styleEnabled},"styleEnabled"),addToPool:mt(function(e){return this._private.elements.merge(e),this},"addToPool"),removeFromPool:mt(function(e){return this._private.elements.unmerge(e),this},"removeFromPool"),container:mt(function(){return this._private.container||null},"container"),window:mt(function(){var e;return null!=this._private.container&&void 0!==(e=this._private.container.ownerDocument)&&null!=e&&e.defaultView||W7e},"window"),mount:mt(function(e){var t,i;if(null!=e)return i=(t=this._private).options,!rke(e)&&rke(e[0])&&(e=e[0]),this.stopAnimationLoop(),this.destroyRenderer(),t.container=e,t.styleEnabled=!0,this.invalidateSize(),this.initRenderer(Ske({},i,i.renderer,{name:"null"===i.renderer.name?"canvas":i.renderer.name})),this.startAnimationLoop(),this.style(i.style),this.emit("mount"),this},"mount"),unmount:mt(function(){return this.stopAnimationLoop(),this.destroyRenderer(),this.initRenderer({name:"null"}),this.emit("unmount"),this},"unmount"),options:mt(function(){return ITe(this._private.options)},"options"),json:mt(function(e){var i,u=this,t=u._private,n=u.mutableElements(),r=mt(function(e){return u.getElementById(e.id())},"getFreshRef");if(tke(e)){if(u.startBatch(),e.elements){var d={},s=mt(function(e,t){for(var i=[],n=[],r=0;r<e.length;r++){var s,a,o=e[r];o.data.id?(s=""+o.data.id,a=u.getElementById(s),d[s]=!0,0!==a.length?n.push({ele:a,json:o}):(t&&(o.group=t),i.push(o))):RTe("cy.json() cannot handle elements without an ID attribute")}u.add(i);for(var l=0;l<n.length;l++){var c=n[l],h=c.ele,c=c.json;h.json(c)}},"updateEles");if(eke(e.elements))s(e.elements);else for(var a=["nodes","edges"],o=0;o<a.length;o++){var l=a[o],c=e.elements[l];eke(c)&&s(c,l)}var h=u.collection();n.filter(function(e){return!d[e.id()]}).forEach(function(e){e.isParent()?h.merge(e):e.remove()}),h.forEach(function(e){return e.children().move({parent:null})}),h.forEach(function(e){return r(e).remove()})}e.style&&u.style(e.style),null!=e.zoom&&e.zoom!==t.zoom&&u.zoom(e.zoom),!e.pan||e.pan.x===t.pan.x&&e.pan.y===t.pan.y||u.pan(e.pan),e.data&&u.data(e.data);for(var p=["minZoom","maxZoom","zoomingEnabled","userZoomingEnabled","panningEnabled","userPanningEnabled","boxSelectionEnabled","autolock","autoungrabify","autounselectify","multiClickDebounceTime"],g=0;g<p.length;g++){var f=p[g];null!=e[f]&&u[f](e[f])}return u.endBatch(),this}return i={},!!e?i.elements=this.elements().map(function(e){return e.json()}):(i.elements={},n.forEach(function(e){var t=e.group();i.elements[t]||(i.elements[t]=[]),i.elements[t].push(e.json())})),this._private.styleEnabled&&(i.style=u.style().json()),i.data=ITe(u.data()),n=t.options,i.zoomingEnabled=t.zoomingEnabled,i.userZoomingEnabled=t.userZoomingEnabled,i.zoom=t.zoom,i.minZoom=t.minZoom,i.maxZoom=t.maxZoom,i.panningEnabled=t.panningEnabled,i.userPanningEnabled=t.userPanningEnabled,i.pan=ITe(t.pan),i.boxSelectionEnabled=t.boxSelectionEnabled,i.renderer=ITe(n.renderer),i.hideEdgesOnViewport=n.hideEdgesOnViewport,i.textureOnViewport=n.textureOnViewport,i.wheelSensitivity=n.wheelSensitivity,i.motionBlur=n.motionBlur,i.multiClickDebounceTime=n.multiClickDebounceTime,i},"json")}),_9e.$id=_9e.getElementById,[ZEe,QEe,h$e,y$e,b$e,v$e,JEe,$Ee,_$e,Q,J].forEach(function(e){Ske(_9e,e)}),C9e={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:mt(function(e,t){return!0},"animateFilter"),ready:void 0,stop:void 0,transform:mt(function(e,t){return t},"transform")},A9e={maximal:!1,acyclic:!1},E9e=mt(function(e){return e.scratch("breadthfirst")},"getInfo"),$9e=mt(function(e,t){return e.scratch("breadthfirst",t)},"setInfo"),mt(O8e,"BreadthFirstLayout"),L9e={fit:!0,padding:30,boundingBox:void 0,avoidOverlap:!0,nodeDimensionsIncludeLabels:!(O8e.prototype.run=function(){var l=this.options,e=l.cy,c=l.eles,h=c.nodes().filter(function(e){return e.isChildless()}),t=c,i=l.directed,O=l.acyclic||l.maximal||0<l.maximalAdjustments,r=!!l.boundingBox,n=e.extent(),s=xSe(r?l.boundingBox:{x1:n.x1,y1:n.y1,w:n.w,h:n.h});if(ske(l.roots))p=l.roots;else if(eke(l.roots)){for(var a=[],o=0;o<l.roots.length;o++){var u=l.roots[o],u=e.getElementById(u);a.push(u)}p=e.collection(a)}else if(Q7e(l.roots))p=e.$(l.roots);else if(i)p=h.roots();else for(var d=c.components(),p=e.collection(),P=mt(function(e){var e=d[e],t=e.maxDegree(!1),e=e.filter(function(e){return e.degree(!1)===t});p=p.add(e)},"_loop"),g=0;g<d.length;g++)P(g);var f=[],m={},y=mt(function(e,t){null==f[t]&&(f[t]=[]);var i=f[t].length;f[t].push(e),$9e(e,{index:i,depth:t})},"addToDepth"),B=mt(function(e,t){var i=E9e(e),n=i.depth,i=i.index;f[n][i]=null,e.isChildless()&&y(e,t)},"changeDepth");t.bfs({roots:p,directed:l.directed,visit:mt(function(e,t,i,n,r){var e=e[0],s=e.id();e.isChildless()&&y(e,r),m[s]=!0},"visit")});for(var b=[],v=0;v<h.length;v++){var x=h[v];m[x.id()]||b.push(x)}var w=mt(function(e){for(var t=f[e],i=0;i<t.length;i++){var n=t[i];null==n?(t.splice(i,1),i--):$9e(n,{depth:e,index:i})}},"assignDepthsAt"),F=mt(function(e,t){for(var i=E9e(e),n=e.incomers().filter(function(e){return e.isNode()&&c.has(e)}),r=-1,s=e.id(),a=0;a<n.length;a++)var o=n[a],o=E9e(o),r=Math.max(r,o.depth);return i.depth<=r&&(!l.acyclic&&t[s]?null:(B(e,i=r+1),t[s]=i,!0))},"adjustMaximally");if(i&&O){var k=[],j={},z=mt(function(e){return k.push(e)},"enqueue"),H=mt(function(){return k.shift()},"dequeue");for(h.forEach(function(e){return k.push(e)});0<k.length;){var T=H(),S=F(T,j);if(S)T.outgoers().filter(function(e){return e.isNode()&&c.has(e)}).forEach(z);else if(null===S){RTe("Detected double maximal shift for node `"+T.id()+"`. Bailing maximal adjustment due to cycle. Use `options.maximal: true` only on DAGs.");break}}}var _=0;if(l.avoidOverlap)for(var C=0;C<h.length;C++)var A=h[C].layoutDimensions(l),U=A.w,A=A.h,_=Math.max(_,U,A);var E={},$=mt(function(e){if(E[e.id()])return E[e.id()];for(var t=E9e(e).depth,i=e.neighborhood(),n=0,r=0,s=0;s<i.length;s++){var a,o,l=i[s];l.isEdge()||l.isParent()||!h.has(l)||null!=(l=E9e(l))&&(a=l.index,l=l.depth,null!=a)&&null!=l&&(o=f[l].length,l<t)&&(n+=a/o,r++)}return n/=r=Math.max(1,r),0===r&&(n=0),E[e.id()]=n},"getWeightedPercent"),q=mt(function(e,t){var i=$(e)-$(t);return 0==i?kke(e.id(),t.id()):i},"sortFn");void 0!==l.depthSort&&(q=l.depthSort);for(var L=f.length,R=0;R<L;R++)f[R].sort(q),w(R);for(var M=[],I=0;I<b.length;I++)M.push(b[I]);n=mt(function(){for(var e=0;e<L;e++)w(e)},"assignDepths");M.length&&(f.unshift(M),L=f.length,n());for(var W=0,N=0;N<L;N++)W=Math.max(f[N].length,W);var V=s.x1+s.w/2,G=s.y1+s.h/2,D=h.reduce(function(e,t){return t=t.boundingBox({includeLabels:l.nodeDimensionsIncludeLabels}),{w:-1===e.w?t.w:(e.w+t.w)/2,h:-1===e.h?t.h:(e.h+t.h)/2}},{w:-1,h:-1}),Y=Math.max(1===L?0:r?(s.h-2*l.padding-D.h)/(L-1):(s.h-2*l.padding-D.h)/(L+1),_),X=f.reduce(function(e,t){return Math.max(e,t.length)},0),t=mt(function(e){var t,i,e=E9e(e),n=e.depth,e=e.index;return l.circle?(t=Math.min(s.w/2/L,s.h/2/L),t=(t=Math.max(t,_))*n+t-(0<L&&f[0].length<=3?t/2:0),i=2*Math.PI/f[n].length*e,0===n&&1===f[0].length&&(t=1),{x:V+t*Math.cos(i),y:G+t*Math.sin(i)}):(t=f[n].length,i=Math.max(1===t?0:r?(s.w-2*l.padding-D.w)/((l.grid?X:t)-1):(s.w-2*l.padding-D.w)/((l.grid?X:t)+1),_),{x:V+(e+1-(t+1)/2)*i,y:G+(n+1-(L+1)/2)*Y})},"getPosition");return c.nodes().layoutPositions(this,l,t),this}),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:mt(function(e,t){return!0},"animateFilter"),ready:void 0,stop:void 0,transform:mt(function(e,t){return t},"transform")},mt(P8e,"CircleLayout"),P8e.prototype.run=function(){var e=this.options,n=e,e=e.cy,t=n.eles,r=void 0!==n.counterclockwise?!n.counterclockwise:n.clockwise,i=t.nodes().not(":parent");n.sort&&(i=i.sort(n.sort));for(var s,e=xSe(n.boundingBox||{x1:0,y1:0,w:e.width(),h:e.height()}),a=e.x1+e.w/2,o=e.y1+e.h/2,l=(void 0===n.sweep?2*Math.PI-2*Math.PI/i.length:n.sweep)/Math.max(1,i.length-1),c=0,h=0;h<i.length;h++)var u=i[h].layoutDimensions(n),d=u.w,u=u.h,c=Math.max(c,d,u);s=se(n.radius)?n.radius:i.length<=1?0:Math.min(e.h,e.w)/2-c,1<i.length&&n.avoidOverlap&&(c*=1.75,e=Math.cos(l)-Math.cos(0),p=Math.sin(l)-Math.sin(0),e=Math.sqrt(c*c/(e*e+p*p)),s=Math.max(e,s));var p=mt(function(e,t){var t=n.startAngle+t*l*(r?1:-1),i=s*Math.cos(t),t=s*Math.sin(t);return{x:a+i,y:o+t}},"getPos");return t.nodes().layoutPositions(this,n,p),this},R9e={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:mt(function(e){return e.degree()},"concentric"),levelWidth:mt(function(e){return e.maxDegree()/4},"levelWidth"),animate:!1,animationDuration:500,animationEasing:void 0,animateFilter:mt(function(e,t){return!0},"animateFilter"),ready:void 0,stop:void 0,transform:mt(function(e,t){return t},"transform")},mt(B8e,"ConcentricLayout"),B8e.prototype.run=function(){for(var e=this.options,t=e,i=void 0!==t.counterclockwise?!t.counterclockwise:t.clockwise,e=e.cy,n=t.eles,r=n.nodes().not(":parent"),e=xSe(t.boundingBox||{x1:0,y1:0,w:e.width(),h:e.height()}),s=e.x1+e.w/2,a=e.y1+e.h/2,o=[],l=0,c=0;c<r.length;c++){var h=r[c],u=t.concentric(h);o.push({value:u,node:h}),h._private.scratch.concentric=u}r.updateStyle();for(var d=0;d<r.length;d++)var p=r[d].layoutDimensions(t),l=Math.max(l,p.w,p.h);o.sort(function(e,t){return t.value-e.value});for(var O=t.levelWidth(r),g=[[]],f=g[0],m=0;m<o.length;m++){var y=o[m];0<f.length&&O<=Math.abs(f[0].value-y.value)&&g.push(f=[]),f.push(y)}var b,v=l+t.minNodeSpacing;t.avoidOverlap||(b=0<g.length&&1<g[0].length,e=Math.min(e.w,e.h)/2-v,v=Math.min(v,e/(g.length+b?1:0)));for(var x=0,w=0;w<g.length;w++){var k,T=g[w],S=void 0===t.sweep?2*Math.PI-2*Math.PI/T.length:t.sweep,S=T.dTheta=S/Math.max(1,T.length-1);1<T.length&&t.avoidOverlap&&(k=Math.cos(S)-Math.cos(0),S=Math.sin(S)-Math.sin(0),k=Math.sqrt(v*v/(k*k+S*S)),x=Math.max(k,x)),T.r=x,x+=v}if(t.equidistant){for(var _=0,C=0,A=0;A<g.length;A++)var P=g[A].r-C,_=Math.max(_,P);for(var C=0,E=0;E<g.length;E++){var $=g[E];0===E&&(C=$.r),$.r=C,C+=_}}for(var L={},R=0;R<g.length;R++)for(var M=g[R],B=M.dTheta,I=M.r,N=0;N<M.length;N++){var F=M[N],D=t.startAngle+(i?1:-1)*B*N,D={x:s+I*Math.cos(D),y:a+I*Math.sin(D)};L[F.node.id()]=D}return n.nodes().layoutPositions(this,t,function(e){e=e.id();return L[e]}),this},I9e={ready:mt(function(){},"ready"),stop:mt(function(){},"stop"),animate:!0,animationEasing:void 0,animationDuration:void 0,animateFilter:mt(function(e,t){return!0},"animateFilter"),animationThreshold:250,refresh:20,fit:!0,padding:30,boundingBox:void 0,nodeDimensionsIncludeLabels:!1,randomize:!1,componentSpacing:40,nodeRepulsion:mt(function(e){return 2048},"nodeRepulsion"),nodeOverlap:4,idealEdgeLength:mt(function(e){return 32},"idealEdgeLength"),edgeElasticity:mt(function(e){return 32},"edgeElasticity"),nestingFactor:1.2,gravity:1,numIter:1e3,initialTemp:1e3,coolingFactor:.99,minTemp:1},mt(F8e,"CoseLayout"),F8e.prototype.run=function(){var i=this.options,e=i.cy,n=this,r=(!(n.stopped=!1)!==i.animate&&!1!==i.animate||n.emit({type:"layoutstart",layout:n}),M9e=!0===i.debug,N9e(e,n,i)),s=(M9e&&(void 0)(r),i.randomize&&P9e(r),hTe()),a=mt(function(){F9e(r,e,i),!0===i.fit&&e.fit(i.padding)},"refresh"),o=mt(function(e){return!(n.stopped||e>=i.numIter||(j9e(r,i),r.temperature=r.temperature*i.coolingFactor,r.temperature<i.minTemp))},"mainLoop"),l=mt(function(){var e,t;!0===i.animate||!1===i.animate?(a(),n.one("layoutstop",i.stop),n.emit({type:"layoutstop",layout:n})):(e=i.eles.nodes(),t=B9e(r,i,e),e.layoutPositions(n,i,t))},"done"),c=0,h=!0;if(!0===i.animate)mt(function e(){for(var t=0;h&&t<i.refresh;)h=o(c),c++,t++;h?(hTe()-s>=i.animationThreshold&&a(),cTe(e)):(Q9e(r,i),l())},"frame")();else{for(;h;)h=o(c),c++;Q9e(r,i),l()}return this},F8e.prototype.stop=function(){return this.stopped=!0,this.thread&&this.thread.stop(),this.emit("layoutstop"),this},F8e.prototype.destroy=function(){return this.thread&&this.thread.stop(),this},N9e=mt(function(e,t,i){for(var n=i.eles.edges(),r=i.eles.nodes(),s=xSe(i.boundingBox||{x1:0,y1:0,w:e.width(),h:e.height()}),a={isCompound:e.hasCompoundNodes(),layoutNodes:[],idToIndex:{},nodeSize:r.size(),graphSet:[],indexToGraph:[],layoutEdges:[],edgeSize:n.size(),temperature:i.initialTemp,clientWidth:s.w,clientHeight:s.h,boundingBox:s},o=i.eles.components(),l={},c=0;c<o.length;c++)for(var h=o[c],u=0;u<h.length;u++)l[h[u].id()]=c;for(c=0;c<a.nodeSize;c++){var d=(y=r[c]).layoutDimensions(i);(R={}).isLocked=y.locked(),R.id=y.data("id"),R.parentId=y.data("parent"),R.cmptId=l[y.id()],R.children=[],R.positionX=y.position("x"),R.positionY=y.position("y"),R.offsetX=0,R.offsetY=0,R.height=d.w,R.width=d.h,R.maxX=R.positionX+R.width/2,R.minX=R.positionX-R.width/2,R.maxY=R.positionY+R.height/2,R.minY=R.positionY-R.height/2,R.padLeft=parseFloat(y.style("padding")),R.padRight=parseFloat(y.style("padding")),R.padTop=parseFloat(y.style("padding")),R.padBottom=parseFloat(y.style("padding")),R.nodeRepulsion=J7e(i.nodeRepulsion)?i.nodeRepulsion(y):i.nodeRepulsion,a.layoutNodes.push(R),a.idToIndex[R.id]=c}for(var p=[],g=0,f=-1,m=[],c=0;c<a.nodeSize;c++){var y,b=(y=a.layoutNodes[c]).parentId;(null!=b?a.layoutNodes[a.idToIndex[b]].children:(p[++f]=y.id,m)).push(y.id)}for(a.graphSet.push(m);g<=f;){var v=p[g++],v=a.idToIndex[v],x=a.layoutNodes[v].children;if(0<x.length){a.graphSet.push(x);for(c=0;c<x.length;c++)p[++f]=x[c]}}for(c=0;c<a.graphSet.length;c++)for(var w=a.graphSet[c],u=0;u<w.length;u++){var k=a.idToIndex[w[u]];a.indexToGraph[k]=c}for(c=0;c<a.edgeSize;c++){var T=n[c],S={},_=(S.id=T.data("id"),S.sourceId=T.data("source"),S.targetId=T.data("target"),J7e(i.idealEdgeLength)?i.idealEdgeLength(T):i.idealEdgeLength),T=J7e(i.edgeElasticity)?i.edgeElasticity(T):i.edgeElasticity,C=a.idToIndex[S.sourceId],A=a.idToIndex[S.targetId];if(a.indexToGraph[C]!=a.indexToGraph[A]){for(var E=D9e(S.sourceId,S.targetId,a),$=a.graphSet[E],L=0,R=a.layoutNodes[C];-1===$.indexOf(R.id);)R=a.layoutNodes[a.idToIndex[R.parentId]],L++;for(R=a.layoutNodes[A];-1===$.indexOf(R.id);)R=a.layoutNodes[a.idToIndex[R.parentId]],L++;_*=L*i.nestingFactor}S.idealLength=_,S.elasticity=T,a.layoutEdges.push(S)}return a},"createLayoutInfo"),D9e=mt(function(e,t,i){e=O9e(e,t,0,i);return e.count<2?0:e.graph},"findLCA"),O9e=mt(function e(t,i,n,r){var s=r.graphSet[n];if(-1<s.indexOf(t)&&-1<s.indexOf(i))return{count:2,graph:n};for(var a=0,o=0;o<s.length;o++){var l=s[o],l=r.idToIndex[l],l=r.layoutNodes[l].children;if(0!==l.length){l=e(t,i,r.indexToGraph[r.idToIndex[l[0]]],r);if(0!==l.count){if(1!==l.count)return l;if(2===++a)break}}}return{count:a,graph:n}},"findLCA_aux"),P9e=mt(function(e,t){for(var i=e.clientWidth,n=e.clientHeight,r=0;r<e.nodeSize;r++){var s=e.layoutNodes[r];0!==s.children.length||s.isLocked||(s.positionX=Math.random()*i,s.positionY=Math.random()*n)}},"randomizePositions"),B9e=mt(function(r,s,e){var a=r.boundingBox,o={x1:1/0,x2:-1/0,y1:1/0,y2:-1/0};return s.boundingBox&&(e.forEach(function(e){e=r.layoutNodes[r.idToIndex[e.data("id")]];o.x1=Math.min(o.x1,e.positionX),o.x2=Math.max(o.x2,e.positionX),o.y1=Math.min(o.y1,e.positionY),o.y2=Math.max(o.y2,e.positionY)}),o.w=o.x2-o.x1,o.h=o.y2-o.y1),function(e,t){var i,n,e=r.layoutNodes[r.idToIndex[e.data("id")]];return s.boundingBox?(i=(e.positionX-o.x1)/o.w,n=(e.positionY-o.y1)/o.h,{x:a.x1+i*a.w,y:a.y1+n*a.h}):{x:e.positionX,y:e.positionY}}},"getScaleInBoundsFn"),F9e=mt(function(e,t,i){var n=i.layout,r=i.eles.nodes(),s=B9e(e,i,r);r.positions(s),!0!==e.ready&&(e.ready=!0,n.one("layoutready",i.ready),n.emit({type:"layoutready",layout:this}))},"refreshPositions"),j9e=mt(function(e,t,i){z9e(e,t),V9e(e),G9e(e,t),Y9e(e),X9e(e)},"step"),z9e=mt(function(e,t){for(var i=0;i<e.graphSet.length;i++)for(var n=e.graphSet[i],r=n.length,s=0;s<r;s++)for(var a=e.layoutNodes[e.idToIndex[n[s]]],o=s+1;o<r;o++){var l=e.layoutNodes[e.idToIndex[n[o]]];U9e(a,l,e,t)}},"calculateNodeForces"),H9e=mt(function(e){return-e+2*e*Math.random()},"randomDistance"),U9e=mt(function(e,t,i,n){var r,s,a,o,l;e.cmptId!==t.cmptId&&!i.isCompound||(i=t.positionX-e.positionX,r=t.positionY-e.positionY,0===i&&0===r&&(i=H9e(1),r=H9e(1)),n=0<(s=q9e(e,t,i,r))?(l=(o=n.nodeOverlap*s)*i/(a=Math.sqrt(i*i+r*r)),o*r/a):(n=W9e(e,i,r),s=(i=(s=W9e(t,-1*i,-1*r)).x-n.x)*i+(r=s.y-n.y)*r,a=Math.sqrt(s),l=(o=(e.nodeRepulsion+t.nodeRepulsion)/s)*i/a,o*r/a),e.isLocked||(e.offsetX-=l,e.offsetY-=n),t.isLocked)||(t.offsetX+=l,t.offsetY+=n)},"nodeRepulsion"),q9e=mt(function(e,t,i,n){return i=0<i?e.maxX-t.minX:t.maxX-e.minX,n=0<n?e.maxY-t.minY:t.maxY-e.minY,0<=i&&0<=n?Math.sqrt(i*i+n*n):0},"nodesOverlap"),W9e=mt(function(e,t,i){var n=e.positionX,r=e.positionY,s=e.height||1,e=e.width||1,a=i/t,o=s/e,l={};return 0===t&&0<i||0===t&&i<0?(l.x=n,l.y=r+s/2):0<t&&-1*o<=a&&a<=o?(l.x=n+e/2,l.y=r+e*i/2/t):t<0&&-1*o<=a&&a<=o?(l.x=n-e/2,l.y=r-e*i/2/t):0<i&&(a<=-1*o||o<=a)?(l.x=n+s*t/2/i,l.y=r+s/2):i<0&&(a<=-1*o||o<=a)&&(l.x=n-s*t/2/i,l.y=r-s/2),l},"findClippingPoint"),V9e=mt(function(e,t){for(var i=0;i<e.edgeSize;i++){var n,r,s=e.layoutEdges[i],a=e.idToIndex[s.sourceId],a=e.layoutNodes[a],o=e.idToIndex[s.targetId],o=e.layoutNodes[o],l=o.positionX-a.positionX,c=o.positionY-a.positionY;0==l&&0==c||(n=W9e(a,l,c),c=(l=W9e(o,-1*l,-1*c)).x-n.x,l=l.y-n.y,n=Math.sqrt(c*c+l*l),s=Math.pow(s.idealLength-n,2)/s.elasticity,c=0!==n?(r=s*c/n,s*l/n):r=0,a.isLocked||(a.offsetX+=r,a.offsetY+=c),o.isLocked)||(o.offsetX-=r,o.offsetY-=c)}},"calculateEdgeForces"),G9e=mt(function(e,t){if(0!==t.gravity)for(var i=0;i<e.graphSet.length;i++){var n,r,s,a=e.graphSet[i],o=a.length;s=0===i?(r=e.clientHeight/2,e.clientWidth/2):(n=e.layoutNodes[e.idToIndex[a[0]]],r=(n=e.layoutNodes[e.idToIndex[n.parentId]]).positionX,n.positionY);for(var l=0;l<o;l++){var c,h,u,d=e.layoutNodes[e.idToIndex[a[l]]];d.isLocked||(h=r-d.positionX,u=s-d.positionY,1<(c=Math.sqrt(h*h+u*u))&&(h=t.gravity*h/c,u=t.gravity*u/c,d.offsetX+=h,d.offsetY+=u))}}},"calculateGravityForces"),Y9e=mt(function(e,t){var i=[],n=0,r=-1;for(i.push.apply(i,e.graphSet[0]),r+=e.graphSet[0].length;n<=r;){var s=i[n++],s=e.idToIndex[s],s=e.layoutNodes[s],a=s.children;if(0<a.length&&!s.isLocked){for(var o=s.offsetX,l=s.offsetY,c=0;c<a.length;c++){var h=e.layoutNodes[e.idToIndex[a[c]]];h.offsetX+=o,h.offsetY+=l,i[++r]=a[c]}s.offsetX=0,s.offsetY=0}}},"propagateForces"),X9e=mt(function(e,t){for(var i=0;i<e.nodeSize;i++)0<(r=e.layoutNodes[i]).children.length&&(r.maxX=void 0,r.minX=void 0,r.maxY=void 0,r.minY=void 0);for(var n,i=0;i<e.nodeSize;i++)0<(r=e.layoutNodes[i]).children.length||r.isLocked||(n=K9e(r.offsetX,r.offsetY,e.temperature),r.positionX+=n.x,r.positionY+=n.y,r.offsetX=0,r.offsetY=0,r.minX=r.positionX-r.width,r.maxX=r.positionX+r.width,r.minY=r.positionY-r.height,r.maxY=r.positionY+r.height,Z9e(r,e));for(var r,i=0;i<e.nodeSize;i++)0<(r=e.layoutNodes[i]).children.length&&!r.isLocked&&(r.positionX=(r.maxX+r.minX)/2,r.positionY=(r.maxY+r.minY)/2,r.width=r.maxX-r.minX,r.height=r.maxY-r.minY)},"updatePositions"),K9e=mt(function(e,t,i){var n=Math.sqrt(e*e+t*t);return i<n?{x:i*e/n,y:i*t/n}:{x:e,y:t}},"limitForce"),Z9e=mt(function e(t,i){var n=t.parentId;if(null!=n){var n=i.layoutNodes[i.idToIndex[n]],r=!1;if((null==n.maxX||t.maxX+n.padRight>n.maxX)&&(n.maxX=t.maxX+n.padRight,r=!0),(null==n.minX||t.minX-n.padLeft<n.minX)&&(n.minX=t.minX-n.padLeft,r=!0),(null==n.maxY||t.maxY+n.padBottom>n.maxY)&&(n.maxY=t.maxY+n.padBottom,r=!0),(null==n.minY||t.minY-n.padTop<n.minY)&&(n.minY=t.minY-n.padTop,r=!0),r)return e(n,i)}},"updateAncestryBoundaries"),Q9e=mt(function(e,t){for(var i=e.layoutNodes,n=[],r=0;r<i.length;r++){var s=i[r],a=s.cmptId;(n[a]=n[a]||[]).push(s)}for(var o=0,r=0;r<n.length;r++)if(h=n[r]){h.x1=1/0,h.x2=-1/0,h.y1=1/0,h.y2=-1/0;for(var l=0;l<h.length;l++){var c=h[l];h.x1=Math.min(h.x1,c.positionX-c.width/2),h.x2=Math.max(h.x2,c.positionX+c.width/2),h.y1=Math.min(h.y1,c.positionY-c.height/2),h.y2=Math.max(h.y2,c.positionY+c.height/2)}h.w=h.x2-h.x1,h.h=h.y2-h.y1,o+=h.w*h.h}n.sort(function(e,t){return t.w*t.h-e.w*e.h});for(var h,u=0,d=0,p=0,g=0,f=Math.sqrt(o)*e.clientWidth/e.clientHeight,r=0;r<n.length;r++)if(h=n[r]){for(l=0;l<h.length;l++)(c=h[l]).isLocked||(c.positionX+=u-h.x1,c.positionY+=d-h.y1);u+=h.w+t.componentSpacing,p+=h.w+t.componentSpacing,g=Math.max(g,h.h),f<p&&(d+=g+t.componentSpacing,g=p=u=0)}},"separateComponents"),J9e={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:mt(function(e){},"position"),sort:void 0,animate:!1,animationDuration:500,animationEasing:void 0,animateFilter:mt(function(e,t){return!0},"animateFilter"),ready:void 0,stop:void 0,transform:mt(function(e,t){return t},"transform")},mt(j8e,"GridLayout"),j8e.prototype.run=function(){var e=this.options,t=e,e=e.cy,i=t.eles,n=i.nodes().not(":parent"),r=(t.sort&&(n=n.sort(t.sort)),xSe(t.boundingBox||{x1:0,y1:0,w:e.width(),h:e.height()}));if(0===r.h||0===r.w)i.nodes().layoutPositions(this,t,function(e){return{x:r.x1,y:r.y1}});else{var s=n.size(),e=Math.sqrt(s*r.h/r.w),a=Math.round(e),o=Math.round(r.w/r.h*e),l=mt(function(e){if(null==e)return Math.min(a,o);Math.min(a,o)==a?a=e:o=e},"small"),c=mt(function(e){if(null==e)return Math.max(a,o);Math.max(a,o)==a?a=e:o=e},"large"),i=t.rows,e=null!=t.cols?t.cols:t.columns;if(null!=i&&null!=e)a=i,o=e;else if(null!=i&&null==e)a=i,o=Math.ceil(s/a);else if(null==i&&null!=e)o=e,a=Math.ceil(s/o);else if(s<o*a){i=l(),e=c();s<=(i-1)*e?l(i-1):s<=(e-1)*i&&c(e-1)}else for(;o*a<s;){var h=l(),u=c();s<=(u+1)*h?c(u+1):l(h+1)}var d=r.w/o,p=r.h/a;if(t.condense&&(p=d=0),t.avoidOverlap)for(var g=0;g<n.length;g++)var f=n[g],m=f._private.position,m=(null!=m.x&&null!=m.y||(m.x=0,m.y=0),f.layoutDimensions(t)),f=t.avoidOverlapPadding,y=m.w+f,m=m.h+f,d=Math.max(d,y),p=Math.max(p,m);for(var b={},v=mt(function(e,t){return!!b["c-"+e+"-"+t]},"used"),x=mt(function(e,t){b["c-"+e+"-"+t]=!0},"use"),w=0,k=0,T=mt(function(){o<=++k&&(k=0,w++)},"moveToNextCell"),S={},_=0;_<n.length;_++){var C=n[_],A=t.position(C);if(A&&(void 0!==A.row||void 0!==A.col)){var E={row:A.row,col:A.col};if(void 0===E.col)for(E.col=0;v(E.row,E.col);)E.col++;else if(void 0===E.row)for(E.row=0;v(E.row,E.col);)E.row++;S[C.id()]=E,x(E.row,E.col)}}i=mt(function(e,t){var i,n;if(e.locked()||e.isParent())return!1;e=S[e.id()];if(e)i=e.col*d+d/2+r.x1,n=e.row*p+p/2+r.y1;else{for(;v(w,k);)T();i=k*d+d/2+r.x1,n=w*p+p/2+r.y1,x(w,k),T()}return{x:i,y:n}},"getPos");n.layoutPositions(this,t,i)}return this},eEe={ready:mt(function(){},"ready"),stop:mt(function(){},"stop")},mt(z8e,"NullLayout"),z8e.prototype.run=function(){var e=this.options,t=e.eles;return e.cy,this.emit("layoutstart"),t.nodes().positions(function(){return{x:0,y:0}}),this.one("layoutready",e.ready),this.emit("layoutready"),this.one("layoutstop",e.stop),this.emit("layoutstop"),this},tEe={positions:void 0,zoom:void 0,pan:void 0,fit:!0,padding:30,spacingFactor:void 0,animate:!(z8e.prototype.stop=function(){return this}),animationDuration:500,animationEasing:void 0,animateFilter:mt(function(e,t){return!0},"animateFilter"),ready:void 0,stop:void 0,transform:mt(function(e,t){return t},"transform")},mt(H8e,"PresetLayout"),iEe={fit:!0,padding:30,boundingBox:void 0,animate:!(H8e.prototype.run=function(){var t=this.options,e=t.eles.nodes(),i=J7e(t.positions);function n(e){return null==t.positions?tSe(e.position()):i?t.positions(e):t.positions[e._private.data.id]??null}return mt(n,"getPosition"),e.layoutPositions(this,t,function(e,t){var i=n(e);return!e.locked()&&null!=i&&i}),this}),animationDuration:500,animationEasing:void 0,animateFilter:mt(function(e,t){return!0},"animateFilter"),ready:void 0,stop:void 0,transform:mt(function(e,t){return t},"transform")},mt(U8e,"RandomLayout"),U8e.prototype.run=function(){var e=this.options,t=e.cy,i=e.eles,n=xSe(e.boundingBox||{x1:0,y1:0,w:t.width(),h:t.height()}),t=mt(function(e,t){return{x:n.x1+Math.round(Math.random()*n.w),y:n.y1+Math.round(Math.random()*n.h)}},"getPos");return i.nodes().layoutPositions(this,e,t),this},nEe=[{name:"breadthfirst",impl:O8e},{name:"circle",impl:P8e},{name:"concentric",impl:B8e},{name:"cose",impl:F8e},{name:"grid",impl:j8e},{name:"null",impl:z8e},{name:"preset",impl:H8e},{name:"random",impl:U8e}],mt(q8e,"NullRenderer"),BEe=mt(function(){},"noop"),jEe=mt(function(){throw new Error("A headless instance can not render images")},"throwImgErr"),q8e.prototype={recalculateRenderedStyle:BEe,notify:mt(function(){this.notifications++},"notify"),init:BEe,isHeadless:mt(function(){return!0},"isHeadless"),png:jEe,jpg:jEe},c$e={arrowShapeWidth:.3,registerArrowShapes:function(){var i=this.arrowShapes={},o=this,n=mt(function(e,t,i,n,r,s,a){var o=r.x-i/2-a,l=r.x+i/2+a,c=r.y-i/2-a,r=r.y+i/2+a;return o<=e&&e<=l&&c<=t&&t<=r},"bbCollide"),l=mt(function(e,t,i,n,r){var s=e*Math.cos(n)-t*Math.sin(n),e=e*Math.sin(n)+t*Math.cos(n);return{x:s*i+r.x,y:e*i+r.y}},"transform"),c=mt(function(e,t,i,n){for(var r=[],s=0;s<e.length;s+=2){var a=e[s],o=e[s+1];r.push(l(a,o,t,i,n))}return r},"transformPoints"),h=mt(function(e){for(var t=[],i=0;i<e.length;i++){var n=e[i];t.push(n.x,n.y)}return t},"pointsToArr"),r=mt(function(e){return e.pstyle("width").pfValue*e.pstyle("arrow-scale").pfValue*2},"standardGap"),e=mt(function(e,t){Q7e(t)&&(t=i[t]),i[e]=Ske({name:e,points:[-.15,-.3,.15,-.3,.15,.3,-.15,.3],collide:mt(function(e,t,i,n,r,s){i=h(c(this.points,i+2*s,n,r));return jSe(e,t,i)},"collide"),roughCollide:n,draw:mt(function(e,t,i,n){t=c(this.points,t,i,n);o.arrowShapeImpl("polygon")(e,t)},"draw"),spacing:mt(function(e){return 0},"spacing"),gap:r},t)},"defineArrowShape");e("none",{collide:CTe,roughCollide:CTe,draw:ETe,spacing:ATe,gap:ATe}),e("triangle",{points:[-.15,-.3,0,0,.15,-.3]}),e("arrow","triangle"),e("triangle-backcurve",{points:i.triangle.points,controlPoint:[0,-.15],roughCollide:n,draw:mt(function(e,t,i,n,r){var s=c(this.points,t,i,n),a=this.controlPoint,a=l(a[0],a[1],t,i,n);o.arrowShapeImpl(this.name)(e,s,a)},"draw"),gap:mt(function(e){return.8*r(e)},"gap")}),e("triangle-tee",{points:[0,0,.15,-.3,-.15,-.3,0,0],pointsTee:[-.15,-.4,-.15,-.5,.15,-.5,.15,-.4],collide:mt(function(e,t,i,n,r,s,a){var o=h(c(this.points,i+2*a,n,r)),i=h(c(this.pointsTee,i+2*a,n,r));return jSe(e,t,o)||jSe(e,t,i)},"collide"),draw:mt(function(e,t,i,n,r){var s=c(this.points,t,i,n),t=c(this.pointsTee,t,i,n);o.arrowShapeImpl(this.name)(e,s,t)},"draw")}),e("circle-triangle",{radius:.15,pointsTr:[0,-.15,.15,-.45,-.15,-.45,0,-.15],collide:mt(function(e,t,i,n,r,s,a){var o=r,o=Math.pow(o.x-e,2)+Math.pow(o.y-t,2)<=Math.pow((i+2*a)*this.radius,2),i=h(c(this.points,i+2*a,n,r));return jSe(e,t,i)||o},"collide"),draw:mt(function(e,t,i,n,r){i=c(this.pointsTr,t,i,n);o.arrowShapeImpl(this.name)(e,i,n.x,n.y,this.radius*t)},"draw"),spacing:mt(function(e){return o.getArrowWidth(e.pstyle("width").pfValue,e.pstyle("arrow-scale").value)*this.radius},"spacing")}),e("triangle-cross",{points:[0,0,.15,-.3,-.15,-.3,0,0],baseCrossLinePts:[-.15,-.4,-.15,-.4,.15,-.4,.15,-.4],crossLinePts:mt(function(e,t){var i=this.baseCrossLinePts.slice(),t=t/e;return i[3]=i[3]-t,i[5]=i[5]-t,i},"crossLinePts"),collide:mt(function(e,t,i,n,r,s,a){var o=h(c(this.points,i+2*a,n,r)),s=h(c(this.crossLinePts(i,s),i+2*a,n,r));return jSe(e,t,o)||jSe(e,t,s)},"collide"),draw:mt(function(e,t,i,n,r){var s=c(this.points,t,i,n),r=c(this.crossLinePts(t,r),t,i,n);o.arrowShapeImpl(this.name)(e,s,r)},"draw")}),e("vee",{points:[-.15,-.3,0,0,.15,-.3,0,-.15],gap:mt(function(e){return.525*r(e)},"gap")}),e("circle",{radius:.15,collide:mt(function(e,t,i,n,r,s,a){return Math.pow(r.x-e,2)+Math.pow(r.y-t,2)<=Math.pow((i+2*a)*this.radius,2)},"collide"),draw:mt(function(e,t,i,n,r){o.arrowShapeImpl(this.name)(e,n.x,n.y,this.radius*t)},"draw"),spacing:mt(function(e){return o.getArrowWidth(e.pstyle("width").pfValue,e.pstyle("arrow-scale").value)*this.radius},"spacing")}),e("tee",{points:[-.15,0,-.15,-.1,.15,-.1,.15,0],spacing:mt(function(e){return 1},"spacing"),gap:mt(function(e){return 1},"gap")}),e("square",{points:[-.15,0,.15,0,.15,-.3,-.15,-.3]}),e("diamond",{points:[-.15,-.15,0,-.3,.15,-.15,0,0],gap:mt(function(e){return e.pstyle("width").pfValue*e.pstyle("arrow-scale").value},"gap")}),e("chevron",{points:[0,0,-.15,-.15,-.1,-.2,0,-.1,.1,-.2,.15,-.15],gap:mt(function(e){return.95*e.pstyle("width").pfValue*e.pstyle("arrow-scale").value},"gap")})}},GEe={projectIntoViewport:function(e,t){var i=this.cy,n=this.findContainerClientCoords(),r=n[0],s=n[1],n=n[4],a=i.pan(),i=i.zoom();return[((e-r)/n-a.x)/i,((t-s)/n-a.y)/i]},findContainerClientCoords:function(){var t,e,i,n,r,s,a,o,l,c,h;return this.containerBB||(h=(o=this.container).getBoundingClientRect(),t=this.cy.window().getComputedStyle(o),e=(a=mt(function(e){return parseFloat(t.getPropertyValue(e))},"styleValue"))("padding-left"),i=a("padding-right"),n=a("padding-top"),r=a("padding-bottom"),c=a("border-left-width"),l=a("border-right-width"),s=a("border-top-width"),a("border-bottom-width"),a=o.clientWidth,o=o.clientHeight,l=h.width/(a+(c+l)),c=h.left+e+c,h=h.top+n+s,this.containerBB=[c,h,a-(e+i),o-(n+r),l])},invalidateContainerClientCoordsCache:function(){this.containerBB=null},findNearestElement:function(e,t,i,n){return this.findNearestElements(e,t,i,n)[0]},findNearestElements:function(y,b,e,t){var n,r,v=this,x=this,i=x.getCachedZSortedEles(),w=[],s=x.cy.zoom(),k=x.cy.hasCompoundNodes(),T=(t?24:8)/s,l=(t?8:2)/s,g=(t?8:2)/s,a=1/0;function S(e,t){if(e.isNode()){if(r)return;r=e,w.push(e)}if(e.isEdge()&&(null==t||t<a))if(n){if(n.pstyle("z-compound-depth").value===e.pstyle("z-compound-depth").value&&n.pstyle("z-compound-depth").value===e.pstyle("z-compound-depth").value)for(var i=0;i<w.length;i++)if(w[i].isEdge()){w[i]=e,n=e,a=t??a;break}}else w.push(e),n=e,a=t??a}function _(e){var t=e.outerWidth()+2*l,i=e.outerHeight()+2*l,n=t/2,r=i/2,s=e.position(),a="auto"===e.pstyle("corner-radius").value?"auto":e.pstyle("corner-radius").pfValue,o=e._private.rscratch;if(s.x-n<=y&&y<=s.x+n&&s.y-r<=b&&b<=s.y+r&&x.nodeShapes[v.getNodeShape(e)].checkPoint(y,b,0,t,i,s.x,s.y,a,o))return S(e,0),!0}function o(e){var t,i=e._private,n=i.rscratch,r=e.pstyle("width").pfValue,s=e.pstyle("arrow-scale").value,a=r/2+T,o=a*a,l=2*a,a=i.source,c=i.target;if("segments"===n.edgeType||"straight"===n.edgeType||"haystack"===n.edgeType){for(var h=n.allpts,u=0;u+3<h.length;u+=2)if(NSe(y,b,h[u],h[u+1],h[u+2],h[u+3],l)&&o>(t=FSe(y,b,h[u],h[u+1],h[u+2],h[u+3])))return S(e,t),!0}else if("bezier"===n.edgeType||"multibezier"===n.edgeType||"self"===n.edgeType||"compound"===n.edgeType)for(h=n.allpts,u=0;u+5<n.allpts.length;u+=4)if(DSe(y,b,h[u],h[u+1],h[u+2],h[u+3],h[u+4],h[u+5],l)&&o>(t=BSe(y,b,h[u],h[u+1],h[u+2],h[u+3],h[u+4],h[u+5])))return S(e,t),!0;for(var a=a||i.source,c=c||i.target,d=v.getArrowWidth(r,s),p=[{name:"source",x:n.arrowStartX,y:n.arrowStartY,angle:n.srcArrowAngle},{name:"target",x:n.arrowEndX,y:n.arrowEndY,angle:n.tgtArrowAngle},{name:"mid-source",x:n.midX,y:n.midY,angle:n.midsrcArrowAngle},{name:"mid-target",x:n.midX,y:n.midY,angle:n.midtgtArrowAngle}],u=0;u<p.length;u++){var g=p[u],f=x.arrowShapes[e.pstyle(g.name+"-arrow-shape").value],m=e.pstyle("width").pfValue;if(f.roughCollide(y,b,d,g.angle,{x:g.x,y:g.y},m,T)&&f.collide(y,b,d,g.angle,{x:g.x,y:g.y},m,T))return S(e),!0}k&&0<w.length&&(_(a),_(c))}function f(e,t,i){return HTe(e,t,i)}function c(e,t){var i=e._private,n=g,r=t?t+"-":"",s=(e.boundingBox(),i.labelBounds[t||"main"]),a=e.pstyle(r+"label").value;if("yes"===e.pstyle("text-events").strValue&&a){var o=f(i.rscratch,"labelX",t),l=f(i.rscratch,"labelY",t),a=f(i.rscratch,"labelAngle",t),i=e.pstyle(r+"text-margin-x").pfValue,t=e.pstyle(r+"text-margin-y").pfValue,r=s.x1-n-i,c=s.x2+n-i,h=s.y1-n-t,n=s.y2+n-t;if(a){var u=Math.cos(a),d=Math.sin(a),a=mt(function(e,t){return{x:(e-=o)*u-(t-=l)*d+o,y:e*d+t*u+l}},"rotate"),p=a(r,h),r=a(r,n),h=a(c,h),a=a(c,n),c=[p.x+i,p.y+t,h.x+i,h.y+t,a.x+i,a.y+t,r.x+i,r.y+t];if(jSe(y,b,c))return S(e),!0}else if(LSe(s,y,b))return S(e),!0}}e&&(i=i.interactive),mt(S,"addEle"),mt(_,"checkNode"),mt(o,"checkEdge"),mt(f,"preprop"),mt(c,"checkLabel");for(var h=i.length-1;0<=h;h--){var u=i[h];u.isNode()?_(u)||c(u):o(u)||c(u)||c(u,"source")||c(u,"target")}return w},getAllInBox:function(e,t,i,n){for(var r=this.getCachedZSortedEles().interactive,s=[],a=Math.min(e,i),o=Math.max(e,i),l=Math.min(t,n),c=Math.max(t,n),h=xSe({x1:e=a,y1:t=l,x2:i=o,y2:n=c}),u=0;u<r.length;u++){var d=r[u];if(d.isNode()){var p=d,g=p.boundingBox({includeNodes:!0,includeEdges:!1,includeLabels:!1});$Se(h,g)&&!MSe(g,h)&&s.push(p)}else{g=d,p=g._private,d=p.rscratch;if((null==d.startX||null==d.startY||LSe(h,d.startX,d.startY))&&(null==d.endX||null==d.endY||LSe(h,d.endX,d.endY)))if("bezier"===d.edgeType||"multibezier"===d.edgeType||"self"===d.edgeType||"compound"===d.edgeType||"segments"===d.edgeType||"haystack"===d.edgeType){for(var f=p.rstyle.bezierPts||p.rstyle.linePts||p.rstyle.haystackPts,m=!0,y=0;y<f.length;y++)if(!RSe(h,f[y])){m=!1;break}m&&s.push(g)}else"haystack"!==d.edgeType&&"straight"!==d.edgeType||s.push(g)}}return s}},(YEe={calculateArrowAngles:function(e){var t,i,n,r,s,a,o,l,c,h,u,d,p,g,e=e._private.rscratch,f="haystack"===e.edgeType,m="bezier"===e.edgeType,y="multibezier"===e.edgeType,b="segments"===e.edgeType,v="compound"===e.edgeType,x="self"===e.edgeType,w=f?(d=e.haystackPts[0],g=e.haystackPts[1],t=e.haystackPts[2],e.haystackPts[3]):(d=e.arrowStartX,g=e.arrowStartY,t=e.arrowEndX,e.arrowEndY),k=(k=e.midX,T=e.midY,n=b?(i=d-e.segpts[0],g-e.segpts[1]):y||v||x||m?(p=e.allpts,i=d-mSe(p[0],p[2],p[4],.1),g-mSe(p[1],p[3],p[5],.1)):(i=d-k,g-T),e.srcArrowAngle=hSe(i,n),e.midX),T=e.midY;f&&(k=(d+t)/2,T=(g+w)/2),i=t-d,n=w-g,b?n=(p=e.allpts).length/2%2==0?(r=(u=p.length/2)-2,i=p[u]-p[r],p[u+1]-p[r+1]):e.isRound?(i=e.midVector[1],-e.midVector[0]):(r=(u=p.length/2-1)-2,i=p[u]-p[r],p[u+1]-p[r+1]):(y||v||x)&&(p=e.allpts,f=e.ctrlpts.length/2%2==0?(h=(l=(c=p.length/2-1)+2)+2,s=mSe(p[c],p[l],p[h],0),a=mSe(p[c+1],p[l+1],p[h+1],0),o=mSe(p[c],p[l],p[h],1e-4),mSe(p[c+1],p[l+1],p[h+1],1e-4)):(h=(l=p.length/2-1)+2,s=mSe(p[c=l-2],p[l],p[h],.4999),a=mSe(p[c+1],p[l+1],p[h+1],.4999),o=mSe(p[c],p[l],p[h],.5),mSe(p[c+1],p[l+1],p[h+1],.5)),i=o-s,n=f-a),e.midtgtArrowAngle=hSe(i,n),e.midDispX=i,e.midDispY=n,i*=-1,n*=-1,b&&(p=e.allpts).length/2%2!=0&&!e.isRound&&(i=-(p[d=(u=p.length/2-1)+2]-p[u]),n=-(p[d+1]-p[u+1])),e.midsrcArrowAngle=hSe(i,n),n=b?(i=t-e.segpts[e.segpts.length-2],w-e.segpts[e.segpts.length-1]):y||v||x||m?(g=(p=e.allpts).length,i=t-mSe(p[g-6],p[g-4],p[g-2],.9),w-mSe(p[g-5],p[g-3],p[g-1],.9)):(i=t-k,w-T),e.tgtArrowAngle=hSe(i,n)}}).getArrowWidth=YEe.getArrowHeight=function(e,t){var i,n=this.arrowWidthCache=this.arrowWidthCache||{};return n[e+", "+t]||(i=Math.max(Math.pow(13.37*e,.9),29)*t,n[e+", "+t]=i)},aEe={},oEe={},xEe=mt(function(e,t,i){i.x=t.x-e.x,i.y=t.y-e.y,i.len=Math.sqrt(i.x*i.x+i.y*i.y),i.nx=i.x/i.len,i.ny=i.y/i.len,i.ang=Math.atan2(i.ny,i.nx)},"asVec"),wEe=mt(function(e,t){t.x=-1*e.x,t.y=-1*e.y,t.nx=-1*e.nx,t.ny=-1*e.ny,t.ang=0<e.ang?-(Math.PI-e.ang):Math.PI+e.ang},"invertVec"),kEe=mt(function(e,t,i,n,r){e!==vEe?xEe(t,e,aEe):wEe(oEe,aEe),xEe(t,i,oEe),gEe=aEe.nx*oEe.ny-aEe.ny*oEe.nx,hEe=aEe.nx*oEe.nx-aEe.ny*-oEe.ny,gEe=Math.asin(Math.max(-1,Math.min(1,gEe))),Math.abs(gEe)<1e-6?(rEe=t.x,sEe=t.y,uEe=pEe=0):(cEe=!(lEe=1),hEe<0?gEe<0?gEe=Math.PI+gEe:(gEe=Math.PI-gEe,lEe=-1,cEe=!0):0<gEe&&(lEe=-1,cEe=!0),pEe=void 0!==t.radius?t.radius:n,hEe=gEe/2,gEe=Math.min(aEe.len/2,oEe.len/2),uEe=r?(dEe=Math.abs(Math.cos(hEe)*pEe/Math.sin(hEe)),gEe<dEe?(dEe=gEe,Math.abs(dEe*Math.sin(hEe)/Math.cos(hEe))):pEe):(dEe=Math.min(gEe,pEe),Math.abs(dEe*Math.sin(hEe)/Math.cos(hEe))),yEe=t.x+oEe.nx*dEe,bEe=t.y+oEe.ny*dEe,rEe=yEe-oEe.ny*uEe*lEe,sEe=bEe+oEe.nx*uEe*lEe,fEe=t.x+aEe.nx*dEe,mEe=t.y+aEe.ny*dEe,vEe=t)},"calcCornerArc"),mt(W8e,"drawPreparedRoundCorner"),mt(V8e,"getRoundCorner"),XEe={findMidptPtsEtc:function(e,t){var i,n,r,s,a,o,l=t.posPts,c=t.intersectionPts,h=t.vectorNormInverse,u=e.pstyle("source-endpoint"),d=e.pstyle("target-endpoint"),p=null!=u.units&&null!=d.units,g=mt(function(e,t,i,n){n-=t,t=i-e,i=Math.sqrt(t*t+n*n);return{x:-n/i,y:t/i}},"recalcVectorNormInverse");switch(e.pstyle("edge-distances").value){case"node-position":o=l;break;case"intersection":o=c;break;case"endpoints":o=p?(a={x1:i=(n=Xwe(this.manualEndptToPx(e.source()[0],u),2))[0],y1:n=n[1],x2:r=(s=Xwe(this.manualEndptToPx(e.target()[0],d),2))[0],y2:s=s[1]},h=g(i,n,r,s),a):(RTe("Edge ".concat(e.id()," has edge-distances:endpoints specified without manual endpoints specified via source-endpoint and target-endpoint. Falling back on edge-distances:intersection (default).")),c)}return{midptPts:o,vectorNormInverse:h}},findHaystackPoints:function(e){for(var t=0;t<e.length;t++){var i=e[t],n=i._private,r=n.rscratch,s=(r.haystack||(s=2*Math.random()*Math.PI,r.source={x:Math.cos(s),y:Math.sin(s)},s=2*Math.random()*Math.PI,r.target={x:Math.cos(s),y:Math.sin(s)}),n.source),n=n.target,a=s.position(),o=n.position(),l=s.width(),c=n.width(),h=s.height(),n=n.height(),u=i.pstyle("haystack-radius").value/2;r.haystackPts=r.allpts=[r.source.x*l*u+a.x,r.source.y*h*u+a.y,r.target.x*c*u+o.x,r.target.y*n*u+o.y],r.midX=(r.allpts[0]+r.allpts[2])/2,r.midY=(r.allpts[1]+r.allpts[3])/2,r.edgeType="haystack",r.haystack=!0,this.storeEdgeProjections(i),this.calculateArrowAngles(i),this.recalculateEdgeLabelProjections(i),this.calculateLabelAngles(i)}},findSegmentsPoints:function(e,t){var i=e._private.rscratch,n=e.pstyle("segment-weights"),r=e.pstyle("segment-distances"),s=e.pstyle("segment-radii"),a=e.pstyle("radius-type"),o=Math.min(n.pfValue.length,r.pfValue.length),l=s.pfValue[s.pfValue.length-1],c=a.pfValue[a.pfValue.length-1];i.edgeType="segments",i.segpts=[],i.radii=[],i.isArcRadius=[];for(var h=0;h<o;h++){var u=n.pfValue[h],d=r.pfValue[h],p=1-u,g=this.findMidptPtsEtc(e,t),f=g.midptPts,g=g.vectorNormInverse,m=f.x1*p+f.x2*u,p=f.y1*p+f.y2*u;i.segpts.push(m+g.x*d,p+g.y*d),i.radii.push(void 0!==s.pfValue[h]?s.pfValue[h]:l),i.isArcRadius.push("arc-radius"===(void 0!==a.pfValue[h]?a.pfValue[h]:c))}},findLoopPoints:function(e,t,i,n){var r=e._private.rscratch,s=t.dirCounts,t=t.srcPos,a=e.pstyle("control-point-distances"),a=a?a.pfValue[0]:void 0,o=e.pstyle("loop-direction").pfValue,l=e.pstyle("loop-sweep").pfValue,e=e.pstyle("control-point-step-size").pfValue,n=(r.edgeType="self",n&&(i=0,e=a),o-Math.PI/2),a=n-l/2,n=n+l/2,o=o+"_"+l,i=void 0===s[o]?s[o]=0:++s[o];r.ctrlpts=[t.x+1.4*Math.cos(a)*e*(i/3+1),t.y+1.4*Math.sin(a)*e*(i/3+1),t.x+1.4*Math.cos(n)*e*(i/3+1),t.y+1.4*Math.sin(n)*e*(i/3+1)]},findCompoundLoopPoints:function(e,t,i,n){var r=e._private.rscratch,s=(r.edgeType="compound",t.srcPos),a=t.tgtPos,o=t.srcW,l=t.srcH,c=t.tgtW,t=t.tgtH,h=e.pstyle("control-point-step-size").pfValue,e=e.pstyle("control-point-distances"),e=e?e.pfValue[0]:void 0,n=(n&&(i=0,h=e),{x:s.x-o/2,y:s.y-l/2}),e={x:a.x-c/2,y:a.y-t/2},s={x:Math.min(n.x,e.x),y:Math.min(n.y,e.y)},l=Math.max(.5,Math.log(.01*o)),a=Math.max(.5,Math.log(.01*c));r.ctrlpts=[s.x,s.y-(1+Math.pow(50,1.12)/100)*h*(i/3+1)*l,s.x-(1+Math.pow(50,1.12)/100)*h*(i/3+1)*a,s.y]},findStraightEdgePoints:function(e){e._private.rscratch.edgeType="straight"},findBezierPoints:function(e,t,i,n,r){var s=e._private.rscratch,a=e.pstyle("control-point-step-size").pfValue,o=e.pstyle("control-point-distances"),l=e.pstyle("control-point-weights"),c=o&&l?Math.min(o.value.length,l.value.length):1,h=o?o.pfValue[0]:void 0,u=l.value[0],d=n;s.edgeType=d?"multibezier":"bezier",s.ctrlpts=[];for(var p=0;p<c;p++){var g=(.5-t.eles.length/2+i)*a*(r?-1:1),f=void 0,m=dSe(g),m=(d&&(h=o?o.pfValue[p]:a,u=l.value[p]),void 0!==(f=n?h:void 0!==h?m*h:void 0)?f:g),f=1-u,g=u,y=this.findMidptPtsEtc(e,t),b=y.midptPts,y=y.vectorNormInverse,v=b.x1*f+b.x2*g,f=b.y1*f+b.y2*g;s.ctrlpts.push(v+y.x*m,f+y.y*m)}},findTaxiPoints:function(e,t){var i=e._private.rscratch,n=(i.edgeType="segments","vertical"),r="horizontal",s=t.posPts,a=t.srcW,o=t.srcH,l=t.tgtW,t=t.tgtH,c="node-position"!==e.pstyle("edge-distances").value,h=e.pstyle("taxi-direction").value,u=h,d=e.pstyle("taxi-turn"),p="%"===d.units,d=d.pfValue,g=d<0,f=e.pstyle("taxi-turn-min-distance").pfValue,m=c?(a+l)/2:0,y=c?(o+t)/2:0,b=s.x2-s.x1,v=s.y2-s.y1,x=mt(function(e,t){return 0<e?Math.max(e-t,0):Math.min(e+t,0)},"subDWH"),m=x(b,m),x=x(v,y),y=!1,r=("auto"===u?h=Math.abs(m)>Math.abs(x)?r:n:"upward"===u||"downward"===u?(h=n,y=!0):"leftward"!==u&&"rightward"!==u||(h=r,y=!0),h===n),w=r?x:m,h=r?v:b,n=dSe(h),x=!1,y=(y&&(p||g)||!("downward"===u&&h<0||"upward"===u&&0<h||"leftward"===u&&0<h||"rightward"===u&&h<0)||(w=(n*=-1)*Math.abs(w),x=!0),m=p?(d<0?1+d:d)*w:(d<0?w:0)+d*n,mt(function(e){return Math.abs(e)<f||Math.abs(e)>=Math.abs(w)},"getIsTooClose")),g=y(m),u=y(Math.abs(w)-Math.abs(m));(g||u)&&!x?r?(p=Math.abs(h)<=o/2,d=Math.abs(b)<=l/2,p?(y=(s.x1+s.x2)/2,g=s.y1,u=s.y2,i.segpts=[y,g,y,u]):d?(x=(s.y1+s.y2)/2,b=s.x1,l=s.x2,i.segpts=[b,x,l,x]):i.segpts=[s.x1,s.y2]):(p=Math.abs(h)<=a/2,g=Math.abs(v)<=t/2,p?(y=(s.y1+s.y2)/2,u=s.x1,d=s.x2,i.segpts=[u,y,d,y]):g?(b=(s.x1+s.x2)/2,l=s.y1,x=s.y2,i.segpts=[b,l,b,x]):i.segpts=[s.x2,s.y1]):r?(h=s.y1+m+(c?o/2*n:0),v=s.x1,t=s.x2,i.segpts=[v,h,t,h]):(p=s.x1+m+(c?a/2*n:0),u=s.y1,d=s.y2,i.segpts=[p,u,p,d]),i.isRound&&(y=e.pstyle("taxi-radius").value,g="arc-radius"===e.pstyle("radius-type").value[0],i.radii=new Array(i.segpts.length/2).fill(y),i.isArcRadius=new Array(i.segpts.length/2).fill(g))},tryToCorrectInvalidPoints:function(e,t){var i,n,r,s,a,o,l,c,h,u,d,p,g,f,m,y,b,v,x,w,k,T,S=e._private.rscratch;"bezier"===S.edgeType&&(m=t.srcPos,i=t.tgtPos,n=t.srcW,r=t.srcH,s=t.tgtW,a=t.tgtH,T=t.srcShape,o=t.tgtShape,b=t.srcCornerRadius,l=t.tgtCornerRadius,v=t.srcRs,t=t.tgtRs,y=!se(S.startX)||!se(S.startY),f=!se(S.arrowStartX)||!se(S.arrowStartY),c=!se(S.endX)||!se(S.endY),h=!se(S.arrowEndX)||!se(S.arrowEndY),u=3*(this.getArrowWidth(e.pstyle("width").pfValue,e.pstyle("arrow-scale").value)*this.arrowShapeWidth),x=(w=pSe({x:S.ctrlpts[0],y:S.ctrlpts[1]},{x:S.startX,y:S.startY}))<u,p=(d=pSe({x:S.ctrlpts[0],y:S.ctrlpts[1]},{x:S.endX,y:S.endY}))<u,g=!1,(y||f||x)&&(g=!0,y=S.ctrlpts[0]-m.x,f=S.ctrlpts[1]-m.y,k=y/(y=Math.sqrt(y*y+f*f)),f=f/y,y=Math.max(n,r),y={x:S.ctrlpts[0]+2*k*y,y:S.ctrlpts[1]+2*f*y},T=T.intersectLine(m.x,m.y,n,r,y.x,y.y,0,b,v),x?(S.ctrlpts[0]=S.ctrlpts[0]+k*(u-w),S.ctrlpts[1]=S.ctrlpts[1]+f*(u-w)):(S.ctrlpts[0]=T[0]+k*u,S.ctrlpts[1]=T[1]+f*u)),(c||h||p)&&(g=!0,m=S.ctrlpts[0]-i.x,y=S.ctrlpts[1]-i.y,v=m/(b=Math.sqrt(m*m+y*y)),x=y/b,w=Math.max(n,r),k={x:S.ctrlpts[0]+2*v*w,y:S.ctrlpts[1]+2*x*w},T=o.intersectLine(i.x,i.y,s,a,k.x,k.y,0,l,t),p?(S.ctrlpts[0]=S.ctrlpts[0]+v*(u-d),S.ctrlpts[1]=S.ctrlpts[1]+x*(u-d)):(S.ctrlpts[0]=T[0]+v*u,S.ctrlpts[1]=T[1]+x*u)),g)&&this.findEndpoints(e)},storeAllpts:function(e){var t,i,n=e._private.rscratch;if("multibezier"===n.edgeType||"bezier"===n.edgeType||"self"===n.edgeType||"compound"===n.edgeType){n.allpts=[],n.allpts.push(n.startX,n.startY);for(var r,s=0;s+1<n.ctrlpts.length;s+=2)n.allpts.push(n.ctrlpts[s],n.ctrlpts[s+1]),s+3<n.ctrlpts.length&&n.allpts.push((n.ctrlpts[s]+n.ctrlpts[s+2])/2,(n.ctrlpts[s+1]+n.ctrlpts[s+3])/2);n.allpts.push(n.endX,n.endY),n.ctrlpts.length/2%2==0?(r=n.allpts.length/2-1,n.midX=n.allpts[r],n.midY=n.allpts[r+1]):(r=n.allpts.length/2-3,n.midX=mSe(n.allpts[r],n.allpts[r+2],n.allpts[r+4],.5),n.midY=mSe(n.allpts[r+1],n.allpts[r+3],n.allpts[r+5],.5))}else if("straight"===n.edgeType)n.allpts=[n.startX,n.startY,n.endX,n.endY],n.midX=(n.startX+n.endX+n.arrowStartX+n.arrowEndX)/4,n.midY=(n.startY+n.endY+n.arrowStartY+n.arrowEndY)/4;else if("segments"===n.edgeType){if(n.allpts=[],n.allpts.push(n.startX,n.startY),n.allpts.push.apply(n.allpts,n.segpts),n.allpts.push(n.endX,n.endY),n.isRound){n.roundCorners=[];for(var a=2;a+3<n.allpts.length;a+=2){var o=n.radii[a/2-1],l=n.isArcRadius[a/2-1];n.roundCorners.push(V8e({x:n.allpts[a-2],y:n.allpts[a-1]},{x:n.allpts[a],y:n.allpts[a+1],radius:o},{x:n.allpts[a+2],y:n.allpts[a+3]},o,l))}}n.segpts.length%4==0?(e=n.segpts.length/2,n.midX=(n.segpts[r=e-2]+n.segpts[e])/2,n.midY=(n.segpts[1+r]+n.segpts[1+e])/2):(r=n.segpts.length/2-1,n.isRound?(e=n.segpts[r],i=n.segpts[1+r],i=[e-(e=n.roundCorners[r/2]).cx,i-e.cy],t=e.radius/Math.sqrt(Math.pow(i[0],2)+Math.pow(i[1],2)),i=i.map(function(e){return e*t}),n.midX=e.cx+i[0],n.midY=e.cy+i[1],n.midVector=i):(n.midX=n.segpts[r],n.midY=n.segpts[1+r]))}},checkForInvalidEdgeWarning:function(e){var t=e[0]._private.rscratch;t.nodesOverlap||se(t.startX)&&se(t.startY)&&se(t.endX)&&se(t.endY)?t.loggedErr=!1:t.loggedErr||(t.loggedErr=!0,RTe("Edge `"+e.id()+"` has invalid endpoints and so it is impossible to draw. Adjust your edge style (e.g. control points) accordingly or use an alternative edge type. This is expected behaviour when the source node and the target node overlap."))},findEdgeControlPoints:function(e){var I=this;if(e&&0!==e.length){for(var N=this,D=N.cy.hasCompoundNodes(),O={map:new qTe,get:mt(function(e){var t=this.map.get(e[0]);return null!=t?t.get(e[1]):null},"get"),set:mt(function(e,t){var i=this.map.get(e[0]);null==i&&(i=new qTe,this.map.set(e[0],i)),i.set(e[1],t)},"set")},P=[],t=[],i=0;i<e.length;i++){var n,r,s=e[i],a=s._private,o=s.pstyle("curve-style").value;!s.removed()&&s.takesUpSpace()&&("haystack"===o?t.push(s):(n="unbundled-bezier"===o||o.endsWith("segments")||"straight"===o||"straight-triangle"===o||o.endsWith("taxi"),o="unbundled-bezier"===o||"bezier"===o,r=a.source,a=a.target,r=[r.poolIndex(),a.poolIndex()].sort(),null==(a=O.get(r))&&(O.set(r,a={eles:[]}),P.push(r)),a.eles.push(s),n&&(a.hasUnbundled=!0),o&&(a.hasBezier=!0)))}for(var l=mt(function(e){var t=O.get(P[e]),i=void 0,e=(t.hasUnbundled||(e=t.eles[0].parallelEdges().filter(function(e){return e.isBundledBezier()}),jTe(t.eles),e.forEach(function(e){return t.eles.push(e)}),t.eles.sort(function(e,t){return e.poolIndex()-t.poolIndex()})),t.eles[0]),n=e.source(),r=e.target(),s=(n.poolIndex()>r.poolIndex()&&(e=n,n=r,r=e),t.srcPos=n.position()),a=t.tgtPos=r.position(),o=t.srcW=n.outerWidth(),l=t.srcH=n.outerHeight(),c=t.tgtW=r.outerWidth(),h=t.tgtH=r.outerHeight(),u=t.srcShape=N.nodeShapes[I.getNodeShape(n)],d=t.tgtShape=N.nodeShapes[I.getNodeShape(r)],p=t.srcCornerRadius="auto"===n.pstyle("corner-radius").value?"auto":n.pstyle("corner-radius").pfValue,g=t.tgtCornerRadius="auto"===r.pstyle("corner-radius").value?"auto":r.pstyle("corner-radius").pfValue,f=t.tgtRs=r._private.rscratch,m=t.srcRs=n._private.rscratch;t.dirCounts={north:0,west:0,south:0,east:0,northwest:0,southwest:0,northeast:0,southeast:0};for(var y=0;y<t.eles.length;y++){var b,v,x,w,k,T,S,_,C,A=t.eles[y],E=A[0]._private.rscratch,$=A.pstyle("curve-style").value,L="unbundled-bezier"===$||$.endsWith("segments")||$.endsWith("taxi"),R=!n.same(A.source()),M=(t.calculatedIntersection||n===r||!t.hasBezier&&!t.hasUnbundled||(t.calculatedIntersection=!0,b=u.intersectLine(s.x,s.y,o,l,a.x,a.y,0,p,m),v=t.srcIntn=b,x=d.intersectLine(a.x,a.y,c,h,s.x,s.y,0,g,f),w=t.tgtIntn=x,k=t.intersectionPts={x1:b[0],x2:x[0],y1:b[1],y2:x[1]},T=t.posPts={x1:s.x,x2:a.x,y1:s.y,y2:a.y},_=x[1]-b[1],S=x[0]-b[0],M=Math.sqrt(S*S+_*_),S=t.vector={x:S,y:_},C={x:-(_=t.vectorNorm={x:S.x/M,y:S.y/M}).y,y:_.x},t.nodesOverlap=!se(M)||d.checkPoint(b[0],b[1],0,c,h,a.x,a.y,g,f)||u.checkPoint(x[0],x[1],0,o,l,s.x,s.y,p,m),t.vectorNormInverse=C,i={nodesOverlap:t.nodesOverlap,dirCounts:t.dirCounts,calculatedIntersection:!0,hasBezier:t.hasBezier,hasUnbundled:t.hasUnbundled,eles:t.eles,srcPos:a,srcRs:f,tgtPos:s,tgtRs:m,srcW:c,srcH:h,tgtW:o,tgtH:l,srcIntn:w,tgtIntn:v,srcShape:d,tgtShape:u,posPts:{x1:T.x2,y1:T.y2,x2:T.x1,y2:T.y1},intersectionPts:{x1:k.x2,y1:k.y2,x2:k.x1,y2:k.y1},vector:{x:-S.x,y:-S.y},vectorNorm:{x:-_.x,y:-_.y},vectorNormInverse:{x:-C.x,y:-C.y}}),R?i:t);E.nodesOverlap=M.nodesOverlap,E.srcIntn=M.srcIntn,E.tgtIntn=M.tgtIntn,E.isRound=$.startsWith("round"),D&&(n.isParent()||n.isChild()||r.isParent()||r.isChild())&&(n.parents().anySame(r)||r.parents().anySame(n)||n.same(r)&&n.isParent())?I.findCompoundLoopPoints(A,M,y,L):n===r?I.findLoopPoints(A,M,y,L):$.endsWith("segments")?I.findSegmentsPoints(A,M):$.endsWith("taxi")?I.findTaxiPoints(A,M):"straight"===$||!L&&t.eles.length%2==1&&y===Math.floor(t.eles.length/2)?I.findStraightEdgePoints(A):I.findBezierPoints(A,M,y,L,R),I.findEndpoints(A),I.tryToCorrectInvalidPoints(A,M),I.checkForInvalidEdgeWarning(A),I.storeAllpts(A),I.storeEdgeProjections(A),I.calculateArrowAngles(A),I.recalculateEdgeLabelProjections(A),I.calculateLabelAngles(A)}},"_loop"),c=0;c<P.length;c++)l(c);this.findHaystackPoints(t)}}},mt(G8e,"getPts"),XEe.getSegmentPoints=function(e){var t=e[0]._private.rscratch;if(this.recalculateRenderedStyle(e),"segments"===t.edgeType)return G8e(t.segpts)},XEe.getControlPoints=function(e){var t=e[0]._private.rscratch,e=(this.recalculateRenderedStyle(e),t.edgeType);if("bezier"===e||"multibezier"===e||"self"===e||"compound"===e)return G8e(t.ctrlpts)},XEe.getEdgeMidpoint=function(e){var t=e[0]._private.rscratch;return this.recalculateRenderedStyle(e),{x:t.midX,y:t.midY}},KEe={manualEndptToPx:function(e,t){var i,n=e.position(),r=e.outerWidth(),s=e.outerHeight(),a=e._private.rscratch;return 2===t.value.length?(i=[t.pfValue[0],t.pfValue[1]],"%"===t.units[0]&&(i[0]=i[0]*r),"%"===t.units[1]&&(i[1]=i[1]*s),i[0]+=n.x,i[1]+=n.y,i):(i=t.pfValue[0],i=-Math.PI/2+i,t=2*Math.max(r,s),i=[n.x+Math.cos(i)*t,n.y+Math.sin(i)*t],this.nodeShapes[this.getNodeShape(e)].intersectLine(n.x,n.y,r,s,i[0],i[1],0,"auto"===e.pstyle("corner-radius").value?"auto":e.pstyle("corner-radius").pfValue,a))},findEndpoints:function(e){var t,i,n,r,s=e.source()[0],a=e.target()[0],o=s.position(),l=a.position(),c=e.pstyle("target-arrow-shape").value,h=e.pstyle("source-arrow-shape").value,u=e.pstyle("target-distance-from-node").pfValue,d=e.pstyle("source-distance-from-node").pfValue,p=s._private.rscratch,g=a._private.rscratch,f=e.pstyle("curve-style").value,m=e._private.rscratch,y=m.edgeType,b="self"===y||"compound"===y,v="bezier"===y||"multibezier"===y||b,x="bezier"!==y,w="straight"===y||"segments"===y,y="segments"===y,k=v||x||w,b=b||"taxi"===f,f=e.pstyle("source-endpoint"),T=b?"outside-to-node":f.value,S="auto"===s.pstyle("corner-radius").value?"auto":s.pstyle("corner-radius").pfValue,_=e.pstyle("target-endpoint"),b=b?"outside-to-node":_.value,C="auto"===a.pstyle("corner-radius").value?"auto":a.pstyle("corner-radius").pfValue,A=(m.srcManEndpt=f,m.tgtManEndpt=_,v?(v=[m.ctrlpts[0],m.ctrlpts[1]],r=x?[m.ctrlpts[m.ctrlpts.length-2],m.ctrlpts[m.ctrlpts.length-1]]:v,n=v):w&&(x=y?m.segpts.slice(0,2):[l.x,l.y],r=y?m.segpts.slice(m.segpts.length-2):[o.x,o.y],n=x),"inside-to-node"===b?t=[l.x,l.y]:_.units?t=this.manualEndptToPx(a,_):"outside-to-line"===b?t=m.tgtIntn:("outside-to-node"===b||"outside-to-node-or-label"===b?A=r:"outside-to-line"!==b&&"outside-to-line-or-label"!==b||(A=[o.x,o.y]),t=this.nodeShapes[this.getNodeShape(a)].intersectLine(l.x,l.y,a.outerWidth(),a.outerHeight(),A[0],A[1],0,C,g),"outside-to-node-or-label"!==b&&"outside-to-line-or-label"!==b||(w=(v=a._private.rscratch).labelWidth,y=v.labelHeight,x=v.labelX,_=v.labelY,C=w/2,g=y/2,"top"===(b=a.pstyle("text-valign").value)?_-=g:"bottom"===b&&(_+=g),"left"===(v=a.pstyle("text-halign").value)?x-=C:"right"===v&&(x+=C),0<(w=KSe(A[0],A[1],[x-C,_-g,x+C,_-g,x+C,_+g,x-C,_+g],l.x,l.y)).length&&(b=gSe(y=o,rSe(t)),(a=gSe(y,rSe(w)))<(v=b)&&(t=w,v=a),2<w.length)&&gSe(y,{x:w[2],y:w[3]})<v&&(t=[w[2],w[3]]))),QSe(t,r,this.arrowShapes[c].spacing(e)+u)),x=QSe(t,r,this.arrowShapes[c].gap(e)+u),S=(m.endX=x[0],m.endY=x[1],m.arrowEndX=A[0],m.arrowEndY=A[1],"inside-to-node"===T?t=[o.x,o.y]:f.units?t=this.manualEndptToPx(s,f):"outside-to-line"===T?t=m.srcIntn:("outside-to-node"===T||"outside-to-node-or-label"===T?i=n:"outside-to-line"!==T&&"outside-to-line-or-label"!==T||(i=[l.x,l.y]),t=this.nodeShapes[this.getNodeShape(s)].intersectLine(o.x,o.y,s.outerWidth(),s.outerHeight(),i[0],i[1],0,S,p),"outside-to-node-or-label"!==T&&"outside-to-line-or-label"!==T||(_=(C=s._private.rscratch).labelWidth,g=C.labelHeight,b=C.labelX,a=C.labelY,y=_/2,v=g/2,"top"===(w=s.pstyle("text-valign").value)?a-=v:"bottom"===w&&(a+=v),"left"===(r=s.pstyle("text-halign").value)?b-=y:"right"===r&&(b+=y),0<(c=KSe(i[0],i[1],[b-y,a-v,b+y,a-v,b+y,a+v,b-y,a+v],o.x,o.y)).length&&(x=gSe(u=l,rSe(t)),(A=gSe(u,rSe(c)))<(f=x)&&(t=[c[0],c[1]],f=A),2<c.length)&&gSe(u,{x:c[2],y:c[3]})<f&&(t=[c[2],c[3]]))),QSe(t,n,this.arrowShapes[h].spacing(e)+d)),p=QSe(t,n,this.arrowShapes[h].gap(e)+d);m.startX=p[0],m.startY=p[1],m.arrowStartX=S[0],m.arrowStartY=S[1],k&&(se(m.startX)&&se(m.startY)&&se(m.endX)&&se(m.endY)?m.badLine=!1:m.badLine=!0)},getSourceEndpoint:function(e){var t=e[0]._private.rscratch;return"haystack"!==(this.recalculateRenderedStyle(e),t.edgeType)?{x:t.arrowStartX,y:t.arrowStartY}:{x:t.haystackPts[0],y:t.haystackPts[1]}},getTargetEndpoint:function(e){var t=e[0]._private.rscratch;return"haystack"!==(this.recalculateRenderedStyle(e),t.edgeType)?{x:t.arrowEndX,y:t.arrowEndY}:{x:t.haystackPts[2],y:t.haystackPts[3]}}},ZEe={},mt(Y8e,"pushBezierPts"),ZEe.storeEdgeProjections=function(e){var t=e._private,i=t.rscratch,n=i.edgeType;if(t.rstyle.bezierPts=null,t.rstyle.linePts=null,t.rstyle.haystackPts=null,"multibezier"===n||"bezier"===n||"self"===n||"compound"===n){t.rstyle.bezierPts=[];for(var r=0;r+5<i.allpts.length;r+=4)Y8e(this,e,i.allpts.slice(r,r+6))}else if("segments"===n)for(var s=t.rstyle.linePts=[],r=0;r+1<i.allpts.length;r+=2)s.push({x:i.allpts[r],y:i.allpts[r+1]});else"haystack"===n&&(n=i.haystackPts,t.rstyle.haystackPts=[{x:n[0],y:n[1]},{x:n[2],y:n[3]}]);t.rstyle.arrowWidth=this.getArrowWidth(e.pstyle("width").pfValue,e.pstyle("arrow-scale").value)*this.arrowShapeWidth},ZEe.recalculateEdgeProjections=function(e){this.findEdgeControlPoints(e)},QEe={recalculateNodeLabelProjection:function(e){var t=e.pstyle("label").strValue;if(!uke(t)){var i,n,t=e._private,r=e.width(),s=e.height(),a=e.padding(),o=e.position(),l=e.pstyle("text-halign").strValue,c=e.pstyle("text-valign").strValue,h=t.rscratch,t=t.rstyle;switch(l){case"left":i=o.x-r/2-a;break;case"right":i=o.x+r/2+a;break;default:i=o.x}switch(c){case"top":n=o.y-s/2-a;break;case"bottom":n=o.y+s/2+a;break;default:n=o.y}h.labelX=i,h.labelY=n,t.labelX=i,t.labelY=n,this.calculateLabelAngles(e),this.applyLabelDimensions(e)}}},TEe=mt(function(e,t){t=Math.atan(t/e);return 0===e&&t<0&&(t*=-1),t},"lineAngleFromDelta"),SEe=mt(function(e,t){var i=t.x-e.x,t=t.y-e.y;return TEe(i,t)},"lineAngle"),_Ee=mt(function(e,t,i,n){var r=vSe(0,n-.001,1),n=vSe(0,n+.001,1),r=ySe(e,t,i,r),e=ySe(e,t,i,n);return SEe(r,e)},"bezierAngle"),QEe.recalculateEdgeLabelProjections=function(S){var _,C,A,e,p=S._private,E=p.rscratch,g=this,$={mid:S.pstyle("label").strValue,source:S.pstyle("source-label").strValue,target:S.pstyle("target-label").strValue};($.mid||$.source||$.target)&&(_={x:E.midX,y:E.midY},(C=mt(function(e,t,i){UTe(p.rscratch,e,t,i),UTe(p.rstyle,e,t,i)},"setRs"))("labelX",null,_.x),C("labelY",null,_.y),e=TEe(E.midDispX,E.midDispY),C("labelAutoAngle",null,e),A=mt(function e(){if(e.cache)return e.cache;for(var t=[],i=0;i+5<E.allpts.length;i+=4){var n={x:E.allpts[i],y:E.allpts[i+1]},r={x:E.allpts[i+2],y:E.allpts[i+3]},s={x:E.allpts[i+4],y:E.allpts[i+5]};t.push({p0:n,p1:r,p2:s,startDist:0,length:0,segments:[]})}var a=p.rstyle.bezierPts,o=g.bezierProjPcts.length;function l(e,t,i,n,r){var s=pSe(t,i),a=e.segments[e.segments.length-1],t={p0:t,p1:i,t0:n,t1:r,startDist:a?a.startDist+a.length:0,length:s};e.segments.push(t),e.length+=s}mt(l,"addSegment");for(var c=0;c<t.length;c++){var h=t[c],u=t[c-1];u&&(h.startDist=u.startDist+u.length),l(h,h.p0,a[c*o],0,g.bezierProjPcts[0]);for(var d=0;d<o-1;d++)l(h,a[c*o+d],a[c*o+d+1],g.bezierProjPcts[d],g.bezierProjPcts[d+1]);l(h,a[c*o+o-1],h.p2,g.bezierProjPcts[o-1],1)}return e.cache=t},"createControlPointInfo"),(e=mt(function(e){var t,i="source"===e;if($[e]){var n=S.pstyle(e+"-text-offset").pfValue;switch(E.edgeType){case"self":case"compound":case"bezier":case"multibezier":for(var r,s=A(),a=0,o=0,l=0;l<s.length;l++){for(var c=s[i?l:s.length-1-l],h=0;h<c.segments.length;h++){var u=c.segments[i?h:c.segments.length-1-h],d=l===s.length-1&&h===c.segments.length-1,a=o;if(n<=(o+=u.length)||d){r={cp:c,segment:u};break}}if(r)break}var p=r.cp,g=r.segment,f=(n-a)/g.length,m=g.t1-g.t0,g=i?g.t0+m*f:g.t1-m*f,g=vSe(0,g,1);_=ySe(p.p0,p.p1,p.p2,g),t=_Ee(p.p0,p.p1,p.p2,g);break;case"straight":case"segments":case"haystack":for(var y,b,v,x,w=0,k=E.allpts.length,T=0;T+3<k&&(x=i?(v={x:E.allpts[T],y:E.allpts[T+1]},{x:E.allpts[T+2],y:E.allpts[T+3]}):(v={x:E.allpts[k-2-T],y:E.allpts[k-1-T]},{x:E.allpts[k-4-T],y:E.allpts[k-3-T]}),b=w,!(n<=(w+=y=pSe(v,x))));T+=2);m=vSe(0,(n-b)/y,1);_=bSe(v,x,m),t=SEe(v,x)}C("labelX",e,_.x),C("labelY",e,_.y),C("labelAutoAngle",e,t)}},"calculateEndProjection"))("source"),e("target"),this.applyLabelDimensions(S))},QEe.applyLabelDimensions=function(e){this.applyPrefixedLabelDimensions(e),e.isEdge()&&(this.applyPrefixedLabelDimensions(e,"source"),this.applyPrefixedLabelDimensions(e,"target"))},QEe.applyPrefixedLabelDimensions=function(e,t){var i=e._private,n=this.getLabelText(e,t),n=this.calculateLabelDimensions(e,n),r=e.pstyle("line-height").pfValue,e=e.pstyle("text-wrap").strValue,s=HTe(i.rscratch,"labelWrapCachedLines",t)||[],e="wrap"!==e?1:Math.max(s.length,1),s=n.height/e,a=s*r,o=n.width,n=n.height+(e-1)*(r-1)*s;UTe(i.rstyle,"labelWidth",t,o),UTe(i.rscratch,"labelWidth",t,o),UTe(i.rstyle,"labelHeight",t,n),UTe(i.rscratch,"labelHeight",t,n),UTe(i.rscratch,"labelLineHeight",t,a)},QEe.getLabelText=function(e,i){var n=e._private,t=e.pstyle((i?i+"-":"")+"label").strValue,r=e.pstyle("text-transform").value,s=mt(function(e,t){return t?(UTe(n.rscratch,e,i,t),t):HTe(n.rscratch,e,i)},"rscratch");if(!t)return"";"none"!=r&&("uppercase"==r?t=t.toUpperCase():"lowercase"==r&&(t=t.toLowerCase()));r=e.pstyle("text-wrap").value;if("wrap"===r){var a=s("labelKey");if(null!=a&&s("labelWrapKey")===a)return s("labelWrapCachedText");for(var o=t.split(`
|
||
`),l=e.pstyle("text-max-width").pfValue,c="anywhere"===e.pstyle("text-overflow-wrap").value,h=[],u=/[\s\u200b]+|$/g,d=0;d<o.length;d++){var p=o[d],g=this.calculateLabelDimensions(e,p).width;if(c&&(p=p.split("").join("")),l<g){var f,m="",y=0,b=s6e(p.matchAll(u));try{for(b.s();!(f=b.n()).done;){var v=f.value,x=v[0],w=p.substring(y,v.index),y=v.index+x.length,k=0===m.length?w:m+w+x;this.calculateLabelDimensions(e,k).width<=l?m+=w+x:(m&&h.push(m),m=w+x)}}catch(e){b.e(e)}finally{b.f()}m.match(/^[\s\u200b]+$/)||h.push(m)}else h.push(p)}s("labelWrapCachedLines",h),t=s("labelWrapCachedText",h.join(`
|
||
`)),s("labelWrapKey",a)}else if("ellipsis"===r){var T=e.pstyle("text-max-width").pfValue,S="",_=!1;if(this.calculateLabelDimensions(e,t).width<T)return t;for(var C=0;C<t.length;C++){if(T<this.calculateLabelDimensions(e,S+t[C]+"…").width)break;S+=t[C],C===t.length-1&&(_=!0)}return _||(S+="…"),S}return t},QEe.getLabelJustification=function(e){var t=e.pstyle("text-justification").strValue,i=e.pstyle("text-halign").strValue;if("auto"!==t)return t;if(!e.isNode())return"center";switch(i){case"left":return"right";case"right":return"left";default:return"center"}},QEe.calculateLabelDimensions=function(e,t){var i=this.cy.window().document,n=bTe(t,e._private.labelDimsKey),r=this.labelDimCache||(this.labelDimCache=[]),s=r[n];if(null!=s)return s;var s=e.pstyle("font-style").strValue,a=e.pstyle("font-size").pfValue,o=e.pstyle("font-family").strValue,e=e.pstyle("font-weight").strValue,l=this.labelCalcCanvas,c=this.labelCalcCanvasContext;l||(l=this.labelCalcCanvas=i.createElement("canvas"),c=this.labelCalcCanvasContext=l.getContext("2d"),(i=l.style).position="absolute",i.left="-9999px",i.top="-9999px",i.zIndex="-1",i.visibility="hidden",i.pointerEvents="none"),c.font="".concat(s," ").concat(e," ").concat(a,"px ").concat(o);for(var h=0,u=0,d=t.split(`
|
||
`),p=0;p<d.length;p++){var g=d[p],g=c.measureText(g),g=Math.ceil(g.width),f=a,h=Math.max(g,h);u+=f}return r[n]={width:h+=0,height:u+=0}},QEe.calculateLabelAngle=function(e,t){var i=e._private.rscratch,n=e.isEdge(),e=e.pstyle((t?t+"-":"")+"text-rotation"),t=e.strValue;return"none"===t?0:n&&"autorotate"===t?i.labelAutoAngle:"autorotate"===t?0:e.pfValue},QEe.calculateLabelAngles=function(e){var t=e.isEdge(),i=e._private.rscratch;i.labelAngle=this.calculateLabelAngle(e),t&&(i.sourceLabelAngle=this.calculateLabelAngle(e,"source"),i.targetLabelAngle=this.calculateLabelAngle(e,"target"))},CEe=!28,AEe={},[GEe,YEe,XEe,KEe,ZEe,QEe,{getNodeShape:function(e){var t=e.pstyle("shape").value;return"cutrectangle"===t&&(e.width()<28||e.height()<28)?(CEe||(RTe("The `cutrectangle` node shape can not be used at small sizes so `rectangle` is used instead"),CEe=!0),"rectangle"):e.isParent()?"rectangle"===t||"roundrectangle"===t||"round-rectangle"===t||"cutrectangle"===t||"cut-rectangle"===t||"barrel"===t?t:"rectangle":"polygon"===t?(e=e.pstyle("shape-polygon-points").value,this.nodeShapes.makePolygon(e).name):t}},{registerCalculationListeners:function(){var a=this.cy,o=a.collection(),l=this,c=mt(function(e){var t=!(1<arguments.length&&void 0!==arguments[1])||arguments[1];if(o.merge(e),t)for(var i=0;i<e.length;i++){var n=e[i]._private.rstyle;n.clean=!1,n.cleanConnected=!1}},"enqueue"),e=(l.binder(a).on("bounds.* dirty.*",mt(function(e){e=e.target;c(e)},"onDirtyBounds")).on("style.* background.*",mt(function(e){e=e.target;c(e,!1)},"onDirtyStyle")),mt(function(e){if(e){var t=l.onUpdateEleCalcsFns;o.cleanStyle();for(var i=0;i<o.length;i++){var n=o[i],r=n._private.rstyle;n.isNode()&&!r.cleanConnected&&(c(n.connectedEdges()),r.cleanConnected=!0)}if(t)for(var s=0;s<t.length;s++)(0,t[s])(e,o);l.recalculateRenderedStyle(o),o=a.collection()}},"updateEleCalcs"));l.flushRenderedStyleQueue=function(){e(!0)},l.beforeRender(e,l.beforeRenderPriorities.eleCalcs)},onUpdateEleCalcs:function(e){(this.onUpdateEleCalcsFns=this.onUpdateEleCalcsFns||[]).push(e)},recalculateRenderedStyle:function(e,t){var i=mt(function(e){return e._private.rstyle.cleanConnected},"isCleanConnected"),n=[],r=[];if(!this.destroyed){void 0===t&&(t=!0);for(var s=0;s<e.length;s++){var a=e[s],o=a._private,l=o.rstyle;!a.isEdge()||i(a.source())&&i(a.target())||(l.clean=!1),t&&l.clean||a.removed()||"none"===a.pstyle("display").value||(("nodes"===o.group?r:n).push(a),l.clean=!0)}for(var c=0;c<r.length;c++){var h=r[c],u=h._private.rstyle,d=h.position();this.recalculateNodeLabelProjection(h),u.nodeX=d.x,u.nodeY=d.y,u.nodeW=h.pstyle("width").pfValue,u.nodeH=h.pstyle("height").pfValue}this.recalculateEdgeProjections(n);for(var p=0;p<n.length;p++){var g=n[p]._private,f=g.rstyle,g=g.rscratch;f.srcX=g.arrowStartX,f.srcY=g.arrowStartY,f.tgtX=g.arrowEndX,f.tgtY=g.arrowEndY,f.midX=g.midX,f.midY=g.midY,f.labelAngle=g.labelAngle,f.sourceLabelAngle=g.sourceLabelAngle,f.targetLabelAngle=g.targetLabelAngle}}}},{updateCachedGrabbedEles:function(){var e=this.cachedZSortedEles;if(e){e.drag=[],e.nondrag=[];for(var t=[],i=0;i<e.length;i++){var n=(r=e[i])._private.rscratch;(r.grabbed()&&!r.isParent()?t:n.inDragLayer?e.drag:e.nondrag).push(r)}for(i=0;i<t.length;i++){var r=t[i];e.drag.push(r)}}},invalidateCachedZSortedEles:function(){this.cachedZSortedEles=null},getCachedZSortedEles:function(e){var t;return e||!this.cachedZSortedEles?((t=this.cy.mutableElements().toArray()).sort(c9e),t.interactive=t.filter(function(e){return e.interactive()}),this.cachedZSortedEles=t,this.updateCachedGrabbedEles()):t=this.cachedZSortedEles,t}}].forEach(function(e){Ske(AEe,e)}),h$e={getCachedImage:function(e,t,i){var n,r=this.imageCache=this.imageCache||{},s=r[e];return s?(s.image.complete||s.image.addEventListener("load",i),s.image):((n=(s=r[e]=r[e]||{}).image=new Image).addEventListener("load",i),n.addEventListener("error",function(){n.error=!0}),"data:"!==e.substring(0,"data:".length).toLowerCase()&&(n.crossOrigin=t="null"===t?null:t),n.src=e,n)}},y$e={registerBinding:function(e,t,i,n){var r=Array.prototype.slice.apply(arguments,[1]);if(Array.isArray(e)){for(var s=[],a=0;a<e.length;a++){var o,l=e[a];void 0!==l&&(o=this.binder(l),s.push(o.on.apply(o,r)))}return s}return(o=this.binder(e)).on.apply(o,r)},binder:function(r){var s=this,e=s.cy.window(),a=r===e||r===e.document||r===e.document.body||dke(r);if(null==s.supportsPassiveEvents){var t=!1;try{var i=Object.defineProperty({},"passive",{get:mt(function(){return t=!0},"get")});e.addEventListener("test",null,i)}catch{}s.supportsPassiveEvents=t}e=mt(function(e,t,i){var n=Array.prototype.slice.call(arguments);return a&&s.supportsPassiveEvents&&(n[2]={capture:i??!1,passive:!1,once:!1}),s.bindings.push({target:r,args:n}),(r.addEventListener||r.on).apply(r,n),this},"on");return{on:e,addEventListener:e,addListener:e,bind:e}},nodeIsDraggable:function(e){return e&&e.isNode()&&!e.locked()&&e.grabbable()},nodeIsGrabbable:function(e){return this.nodeIsDraggable(e)&&e.interactive()},load:function(){var c,h,u,L=this,e=L.cy.window(),d=mt(function(e){return e.selected()},"isSelected"),w=mt(function(e){e=e.getRootNode();if(e&&11===e.nodeType&&void 0!==e.host)return e},"getShadowRoot"),R=mt(function(e,t,i,n){null==e&&(e=L.cy);for(var r=0;r<t.length;r++){var s=t[r];e.emit({originalEvent:i,type:s,position:n})}},"triggerEvents"),b=mt(function(e){return e.shiftKey||e.metaKey||e.ctrlKey},"isMultSelKeyDown"),M=mt(function(e,t){var i=!0;if(L.cy.hasCompoundNodes()&&e&&e.pannable()){for(var n=0;t&&n<t.length;n++)if((e=t[n]).isNode()&&e.isParent()&&!e.pannable()){i=!1;break}}else i=!0;return i},"allowPanningPassthrough"),k=mt(function(e){e[0]._private.grabbed=!0},"setGrabbed"),T=mt(function(e){e[0]._private.grabbed=!1},"setFreed"),n=mt(function(e){e[0]._private.rscratch.inDragLayer=!0},"setInDragLayer"),S=mt(function(e){e[0]._private.rscratch.inDragLayer=!1},"setOutDragLayer"),_=mt(function(e){e[0]._private.rscratch.isGrabTarget=!0},"setGrabTarget"),C=mt(function(e){e[0]._private.rscratch.isGrabTarget=!1},"removeGrabTarget"),r=mt(function(e,t){t=t.addToList;t.has(e)||!e.grabbable()||e.locked()||(t.merge(e),k(e))},"addToDragList"),A=mt(function(e,t){!e.cy().hasCompoundNodes()||null==t.inDragLayer&&null==t.addToList||(e=e.descendants(),t.inDragLayer&&(e.forEach(n),e.connectedEdges().forEach(n)),t.addToList&&r(e,t))},"addDescendantsToDrag"),I=mt(function(e,t){t=t||{};var i=e.cy().hasCompoundNodes();t.inDragLayer&&(e.forEach(n),e.neighborhood().stdFilter(function(e){return!i||e.isEdge()}).forEach(n)),t.addToList&&e.forEach(function(e){r(e,t)}),A(e,t),$(e,{inDragLayer:t.inDragLayer}),L.updateCachedGrabbedEles()},"addNodesToDrag"),E=I,N=mt(function(e){e&&(L.getCachedZSortedEles().forEach(function(e){T(e),S(e),C(e)}),L.updateCachedGrabbedEles())},"freeDraggedElements"),$=mt(function(e,t){var i;null==t.inDragLayer&&null==t.addToList||!e.cy().hasCompoundNodes()||(i=e.ancestors().orphans()).same(e)||(e=(i=i.descendants().spawnSelf().merge(i).unmerge(e).unmerge(e.descendants())).connectedEdges(),t.inDragLayer&&(e.forEach(n),i.forEach(n)),t.addToList&&i.forEach(function(e){r(e,t)}))},"updateAncestorsInDragLayer"),W=mt(function(){null!=document.activeElement&&null!=document.activeElement.blur&&document.activeElement.blur()},"blurActiveDomElement"),t=typeof MutationObserver<"u",V=typeof ResizeObserver<"u",i=(t?(L.removeObserver=new MutationObserver(function(e){for(var t=0;t<e.length;t++){var i=e[t].removedNodes;if(i)for(var n=0;n<i.length;n++)if(i[n]===L.container){L.destroy();break}}}),L.container.parentNode&&L.removeObserver.observe(L.container.parentNode,{childList:!0})):L.registerBinding(L.container,"DOMNodeRemoved",function(e){L.destroy()}),sTe(function(){L.cy.resize()},100)),t=(t&&(L.styleObserver=new MutationObserver(i),L.styleObserver.observe(L.container,{attributes:!0})),L.registerBinding(e,"resize",i),V&&(L.resizeObserver=new ResizeObserver(i),L.resizeObserver.observe(L.container)),mt(function(e,t){for(;null!=e;)t(e),e=e.parentNode},"forEachUp")),s=mt(function(){L.invalidateContainerClientCoordsCache()},"invalidateCoords"),G=(t(L.container,function(e){L.registerBinding(e,"transitionend",s),L.registerBinding(e,"animationend",s),L.registerBinding(e,"scroll",s)}),L.registerBinding(L.container,"contextmenu",function(e){e.preventDefault()}),mt(function(){return 0!==L.selection[4]},"inBoxSelection")),D=mt(function(e){for(var t=L.findContainerClientCoords(),i=t[0],n=t[1],r=t[2],s=t[3],a=e.touches||[e],o=!1,l=0;l<a.length;l++){var c=a[l];if(i<=c.clientX&&c.clientX<=i+r&&n<=c.clientY&&c.clientY<=n+s){o=!0;break}}if(!o)return!1;for(var h=L.container,u=e.target.parentNode,d=!1;u;){if(u===h){d=!0;break}u=u.parentNode}return!!d},"eventInContainer"),V=(L.registerBinding(L.container,"mousedown",mt(function(t){var e,i,n,r,s,a,o,l,c,h;!D(t)||1===L.hoverData.which&&1!==t.which||(t.preventDefault(),W(),L.hoverData.capture=!0,L.hoverData.which=t.which,e=L.cy,a=[t.clientX,t.clientY],i=L.projectIntoViewport(a[0],a[1]),n=L.selection,s=(r=L.findNearestElements(i[0],i[1],!0,!1))[0],c=L.dragData.possibleDragElements,L.hoverData.mdownPos=i,L.hoverData.mdownGPos=a,a=mt(function(){L.hoverData.tapholdCancelled=!1,clearTimeout(L.hoverData.tapholdTimeout),L.hoverData.tapholdTimeout=setTimeout(function(){L.hoverData.tapholdCancelled||(L.hoverData.down||e).emit({originalEvent:t,type:"taphold",position:{x:i[0],y:i[1]}})},L.tapholdDuration)},"checkForTaphold"),3==t.which?(L.hoverData.cxtStarted=!0,l={originalEvent:t,type:"cxttapstart",position:{x:i[0],y:i[1]}},s?(s.activate(),s.emit(l),L.hoverData.down=s):e.emit(l),L.hoverData.downTime=(new Date).getTime(),L.hoverData.cxtDragged=!1):1==t.which&&(s&&s.activate(),null!=s&&L.nodeIsGrabbable(s)&&(o=mt(function(e){return{originalEvent:t,type:e,position:{x:i[0],y:i[1]}}},"makeEvent"),l=mt(function(e){e.emit(o("grab"))},"triggerGrab"),_(s),s.selected()?(c=L.dragData.possibleDragElements=e.collection(),h=e.$(function(e){return e.isNode()&&e.selected()&&L.nodeIsGrabbable(e)}),I(h,{addToList:c}),s.emit(o("grabon")),h.forEach(l)):(c=L.dragData.possibleDragElements=e.collection(),E(s,{addToList:c}),s.emit(o("grabon")).emit(o("grab"))),L.redrawHint("eles",!0),L.redrawHint("drag",!0)),L.hoverData.down=s,L.hoverData.downs=r,L.hoverData.downTime=(new Date).getTime(),R(s,["mousedown","tapstart","vmousedown"],t,{x:i[0],y:i[1]}),null==s?(n[4]=1,L.data.bgActivePosistion={x:i[0],y:i[1]},L.redrawHint("select",!0),L.redraw()):s.pannable()&&(n[4]=1),a()),n[0]=n[2]=i[0],n[1]=n[3]=i[1])},"mousedownHandler"),!1),w(L.container)),Y=(L.registerBinding([e,V],"mousemove",mt(function(e){if(L.hoverData.capture||D(e)){var t,i,n,r=!1,s=L.cy,a=s.zoom(),o=[e.clientX,e.clientY],l=L.projectIntoViewport(o[0],o[1]),c=L.hoverData.mdownPos,h=L.hoverData.mdownGPos,u=L.selection,d=null,p=(L.hoverData.draggingEles||L.hoverData.dragging||L.hoverData.selecting||(d=L.findNearestElement(l[0],l[1],!0,!1)),L.hoverData.last),g=L.hoverData.down,f=[l[0]-u[2],l[1]-u[3]],m=L.dragData.possibleDragElements,h=(h&&(t=o[0]-h[0],o=o[1]-h[1],L.hoverData.isOverThresholdDrag=t=t*t+o*o>=L.desktopTapThreshold2),b(e)),o=(t&&(L.hoverData.tapholdCancelled=!0),mt(function(){var e=L.hoverData.dragDelta=L.hoverData.dragDelta||[];0===e.length?(e.push(f[0]),e.push(f[1])):(e[0]+=f[0],e[1]+=f[1])},"updateDragDelta")),y=(r=!0,R(d,["mousemove","vmousemove","tapdrag"],e,{x:l[0],y:l[1]}),mt(function(){L.data.bgActivePosistion=void 0,L.hoverData.selecting||s.emit({originalEvent:e,type:"boxstart",position:{x:l[0],y:l[1]}}),u[4]=1,L.hoverData.selecting=!0,L.redrawHint("select",!0),L.redraw()},"goIntoBoxMode"));if(3===L.hoverData.which?t&&(i={originalEvent:e,type:"cxtdrag",position:{x:l[0],y:l[1]}},(g||s).emit(i),L.hoverData.cxtDragged=!0,!L.hoverData.cxtOver||d!==L.hoverData.cxtOver)&&(L.hoverData.cxtOver&&L.hoverData.cxtOver.emit({originalEvent:e,type:"cxtdragout",position:{x:l[0],y:l[1]}}),L.hoverData.cxtOver=d)&&d.emit({originalEvent:e,type:"cxtdragover",position:{x:l[0],y:l[1]}}):L.hoverData.dragging?(r=!0,s.panningEnabled()&&s.userPanningEnabled()&&(L.hoverData.justStartedPan?(i=L.hoverData.mdownPos,n={x:(l[0]-i[0])*a,y:(l[1]-i[1])*a},L.hoverData.justStartedPan=!1):n={x:f[0]*a,y:f[1]*a},s.panBy(n),s.emit("dragpan"),L.hoverData.dragged=!0),l=L.projectIntoViewport(e.clientX,e.clientY)):1!=u[4]||null!=g&&!g.pannable()?(g&&g.pannable()&&g.active()&&g.unactivate(),g&&g.grabbed()||d==p||(p&&R(p,["mouseout","tapdragout"],e,{x:l[0],y:l[1]}),d&&R(d,["mouseover","tapdragover"],e,{x:l[0],y:l[1]}),L.hoverData.last=d),g&&(t?s.boxSelectionEnabled()&&h?(g&&g.grabbed()&&(N(m),g.emit("freeon"),m.emit("free"),L.dragData.didDrag)&&(g.emit("dragfreeon"),m.emit("dragfree")),y()):g&&g.grabbed()&&L.nodeIsDraggable(g)&&((i=!L.dragData.didDrag)&&L.redrawHint("eles",!0),L.dragData.didDrag=!0,L.hoverData.draggingEles||I(m,{inDragLayer:!0}),a={x:0,y:0},se(f[0])&&se(f[1])&&(a.x+=f[0],a.y+=f[1],i)&&((n=L.hoverData.dragDelta)&&se(n[0])&&se(n[1])&&(a.x+=n[0],a.y+=n[1])),L.hoverData.draggingEles=!0,m.silentShift(a).emit("position drag"),L.redrawHint("drag",!0),L.redraw()):o()),r=!0):t&&(L.hoverData.dragging||!s.boxSelectionEnabled()||!h&&s.panningEnabled()&&s.userPanningEnabled()?!L.hoverData.selecting&&s.panningEnabled()&&s.userPanningEnabled()&&M(g,L.hoverData.downs)&&(L.hoverData.dragging=!0,L.hoverData.justStartedPan=!0,u[4]=0,L.data.bgActivePosistion=rSe(c),L.redrawHint("select",!0),L.redraw()):y(),g)&&g.pannable()&&g.active()&&g.unactivate(),u[2]=l[0],u[3]=l[1],r)return e.stopPropagation&&e.stopPropagation(),e.preventDefault&&e.preventDefault(),!1}},"mousemoveHandler"),!1),L.registerBinding(e,"mouseup",mt(function(e){var t,i,n,r,s,a,o,l;1===L.hoverData.which&&1!==e.which&&L.hoverData.capture||L.hoverData.capture&&(L.hoverData.capture=!1,t=L.cy,i=L.projectIntoViewport(e.clientX,e.clientY),n=L.selection,o=L.findNearestElement(i[0],i[1],!0,!1),r=L.dragData.possibleDragElements,s=L.hoverData.down,l=b(e),L.data.bgActivePosistion&&(L.redrawHint("select",!0),L.redraw()),L.hoverData.tapholdCancelled=!0,L.data.bgActivePosistion=void 0,s&&s.unactivate(),3===L.hoverData.which?(a={originalEvent:e,type:"cxttapend",position:{x:i[0],y:i[1]}},(s||t).emit(a),L.hoverData.cxtDragged||(a={originalEvent:e,type:"cxttap",position:{x:i[0],y:i[1]}},(s||t).emit(a)),L.hoverData.cxtDragged=!1,L.hoverData.which=null):1===L.hoverData.which&&(R(o,["mouseup","tapend","vmouseup"],e,{x:i[0],y:i[1]}),L.dragData.didDrag||L.hoverData.dragged||L.hoverData.selecting||L.hoverData.isOverThresholdDrag||(R(s,["click","tap","vclick"],e,{x:i[0],y:i[1]}),h=!1,e.timeStamp-u<=t.multiClickDebounceTime()?(c&&clearTimeout(c),h=!0,u=null,R(s,["dblclick","dbltap","vdblclick"],e,{x:i[0],y:i[1]})):(c=setTimeout(function(){h||R(s,["oneclick","onetap","voneclick"],e,{x:i[0],y:i[1]})},t.multiClickDebounceTime()),u=e.timeStamp)),null!=s||L.dragData.didDrag||L.hoverData.selecting||L.hoverData.dragged||b(e)||(t.$(d).unselect(["tapunselect"]),0<r.length&&L.redrawHint("eles",!0),L.dragData.possibleDragElements=r=t.collection()),o!=s||L.dragData.didDrag||L.hoverData.selecting||null==o||!o._private.selectable||(L.hoverData.dragging||("additive"===t.selectionType()||l?o.selected()?o.unselect(["tapunselect"]):o.select(["tapselect"]):l||(t.$(d).unmerge(o).unselect(["tapunselect"]),o.select(["tapselect"]))),L.redrawHint("eles",!0)),L.hoverData.selecting&&(a=t.collection(L.getAllInBox(n[0],n[1],n[2],n[3])),L.redrawHint("select",!0),0<a.length&&L.redrawHint("eles",!0),t.emit({type:"boxend",originalEvent:e,position:{x:i[0],y:i[1]}}),o=mt(function(e){return e.selectable()&&!e.selected()},"eleWouldBeSelected"),"additive"===t.selectionType()||l||t.$(d).unmerge(a).unselect(),a.emit("box").stdFilter(o).select().emit("boxselect"),L.redraw()),L.hoverData.dragging&&(L.hoverData.dragging=!1,L.redrawHint("select",!0),L.redrawHint("eles",!0),L.redraw()),n[4]||(L.redrawHint("drag",!0),L.redrawHint("eles",!0),l=s&&s.grabbed(),N(r),l&&(s.emit("freeon"),r.emit("free"),L.dragData.didDrag)&&(s.emit("dragfreeon"),r.emit("dragfree")))),n[4]=0,L.hoverData.down=null,L.hoverData.cxtStarted=!1,L.hoverData.draggingEles=!1,L.hoverData.selecting=!1,L.hoverData.isOverThresholdDrag=!1,L.dragData.didDrag=!1,L.hoverData.dragged=!1,L.hoverData.dragDelta=[],L.hoverData.mdownPos=null,L.hoverData.mdownGPos=null,L.hoverData.which=null)},"mouseupHandler"),!1),mt(function(e){var t,i,n,r;L.scrollingPage||(n=(t=L.cy).zoom(),r=t.pan(),i=[(i=L.projectIntoViewport(e.clientX,e.clientY))[0]*n+r.x,i[1]*n+r.y],L.hoverData.draggingEles||L.hoverData.dragging||L.hoverData.cxtStarted||G()?e.preventDefault():t.panningEnabled()&&t.userPanningEnabled()&&t.zoomingEnabled()&&t.userZoomingEnabled()&&(e.preventDefault(),L.data.wheelZooming=!0,clearTimeout(L.data.wheelTimeout),L.data.wheelTimeout=setTimeout(function(){L.data.wheelZooming=!1,L.redrawHint("eles",!0),L.redraw()},150),n=null!=e.deltaY?e.deltaY/-250:null!=e.wheelDeltaY?e.wheelDeltaY/1e3:e.wheelDelta/1e3,n*=L.wheelSensitivity,1===e.deltaMode&&(n*=33),r=t.zoom()*Math.pow(10,n),"gesturechange"===e.type&&(r=L.gestureStartZoom*e.scale),t.zoom({level:r,renderedPosition:{x:i[0],y:i[1]}}),t.emit("gesturechange"===e.type?"pinchzoom":"scrollzoom")))},"wheelHandler"));L.registerBinding(L.container,"wheel",Y,!0),L.registerBinding(e,"scroll",mt(function(e){L.scrollingPage=!0,clearTimeout(L.scrollingPageTimeout),L.scrollingPageTimeout=setTimeout(function(){L.scrollingPage=!1},250)},"scrollHandler"),!0),L.registerBinding(L.container,"gesturestart",mt(function(e){L.gestureStartZoom=L.cy.zoom(),L.hasTouchStarted||e.preventDefault()},"gestureStartHandler"),!0),L.registerBinding(L.container,"gesturechange",function(e){L.hasTouchStarted||Y(e)},!0),L.registerBinding(L.container,"mouseout",mt(function(e){var t=L.projectIntoViewport(e.clientX,e.clientY);L.cy.emit({originalEvent:e,type:"mouseout",position:{x:t[0],y:t[1]}})},"mouseOutHandler"),!1),L.registerBinding(L.container,"mouseover",mt(function(e){var t=L.projectIntoViewport(e.clientX,e.clientY);L.cy.emit({originalEvent:e,type:"mouseover",position:{x:t[0],y:t[1]}})},"mouseOverHandler"),!1);var O,P,B,F,j,z,H,U,q,p,g,X,K,Z,Q,J,f,m,y,a,o,ee,te,l,ie,v,x,ne=mt(function(e,t,i,n){return Math.sqrt((i-e)*(i-e)+(n-t)*(n-t))},"distance"),re=mt(function(e,t,i,n){return(i-e)*(i-e)+(n-t)*(n-t)},"distanceSq");L.registerBinding(L.container,"touchstart",K=mt(function(t){if(L.hasTouchStarted=!0,D(t)){W(),L.touchData.capture=!0,L.data.bgActivePosistion=void 0;var e,i,n,r=L.cy,s=L.touchData.now,a=L.touchData.earlier;if(t.touches[0]&&(e=L.projectIntoViewport(t.touches[0].clientX,t.touches[0].clientY),s[0]=e[0],s[1]=e[1]),t.touches[1]&&(e=L.projectIntoViewport(t.touches[1].clientX,t.touches[1].clientY),s[2]=e[0],s[3]=e[1]),t.touches[2]&&(e=L.projectIntoViewport(t.touches[2].clientX,t.touches[2].clientY),s[4]=e[0],s[5]=e[1]),t.touches[1]){L.touchData.singleTouchMoved=!0,N(L.dragData.touchDragEles);var o=L.findContainerClientCoords(),o=(U=o[0],q=o[1],p=o[2],g=o[3],O=t.touches[0].clientX-U,P=t.touches[0].clientY-q,B=t.touches[1].clientX-U,F=t.touches[1].clientY-q,X=0<=O&&O<=p&&0<=B&&B<=p&&0<=P&&P<=g&&0<=F&&F<=g,r.pan()),l=r.zoom();j=ne(O,P,B,F),z=re(O,P,B,F),H=[((p=[(O+B)/2,(P+F)/2])[0]-o.x)/l,(p[1]-o.y)/l];if(z<4e4&&!t.touches[2])return o=L.findNearestElement(s[0],s[1],!0,!0),l=L.findNearestElement(s[2],s[3],!0,!0),o&&o.isNode()?(o.activate().emit({originalEvent:t,type:"cxttapstart",position:{x:s[0],y:s[1]}}),L.touchData.start=o):l&&l.isNode()?(l.activate().emit({originalEvent:t,type:"cxttapstart",position:{x:s[0],y:s[1]}}),L.touchData.start=l):r.emit({originalEvent:t,type:"cxttapstart",position:{x:s[0],y:s[1]}}),L.touchData.start&&(L.touchData.start._private.grabbed=!1),L.touchData.cxt=!0,L.touchData.cxtDragged=!1,L.data.bgActivePosistion=void 0,void L.redraw()}if(t.touches[2]?r.boxSelectionEnabled()&&t.preventDefault():t.touches[1]||t.touches[0]&&(null!=(l=(o=L.findNearestElements(s[0],s[1],!0,!0))[0])&&(l.activate(),L.touchData.start=l,L.touchData.starts=o,L.nodeIsGrabbable(l))&&(o=L.dragData.touchDragEles=r.collection(),L.redrawHint("eles",!(i=null)),L.redrawHint("drag",!0),l.selected()?(i=r.$(function(e){return e.selected()&&L.nodeIsGrabbable(e)}),I(i,{addToList:o})):E(l,{addToList:o}),_(l),n=mt(function(e){return{originalEvent:t,type:e,position:{x:s[0],y:s[1]}}},"makeEvent"),l.emit(n("grabon")),i?i.forEach(function(e){e.emit(n("grab"))}):l.emit(n("grab"))),R(l,["touchstart","tapstart","vmousedown"],t,{x:s[0],y:s[1]}),null==l&&(L.data.bgActivePosistion={x:e[0],y:e[1]},L.redrawHint("select",!0),L.redraw()),L.touchData.singleTouchMoved=!1,L.touchData.singleTouchStartTime=+new Date,clearTimeout(L.touchData.tapholdTimeout),L.touchData.tapholdTimeout=setTimeout(function(){!1!==L.touchData.singleTouchMoved||L.pinching||L.touchData.selecting||R(L.touchData.start,["taphold"],t,{x:s[0],y:s[1]})},L.tapholdDuration)),1<=t.touches.length){for(var c=L.touchData.startPosition=[null,null,null,null,null,null],h=0;h<s.length;h++)c[h]=a[h]=s[h];r=t.touches[0];L.touchData.startGPosition=[r.clientX,r.clientY]}}},"touchstartHandler"),!1),L.registerBinding(e,"touchmove",Z=mt(function(e){var t=L.touchData.capture;if(t||D(e)){var i=L.selection,n=L.cy,r=L.touchData.now,s=L.touchData.earlier,a=n.zoom(),o=(e.touches[0]&&(A=L.projectIntoViewport(e.touches[0].clientX,e.touches[0].clientY),r[0]=A[0],r[1]=A[1]),e.touches[1]&&(A=L.projectIntoViewport(e.touches[1].clientX,e.touches[1].clientY),r[2]=A[0],r[3]=A[1]),e.touches[2]&&(A=L.projectIntoViewport(e.touches[2].clientX,e.touches[2].clientY),r[4]=A[0],r[5]=A[1]),L.touchData.startGPosition);if(t&&e.touches[0]&&o){for(var l=[],c=0;c<r.length;c++)l[c]=r[c]-s[c];var h=e.touches[0].clientX-o[0],u=e.touches[0].clientY-o[1],d=h*h+u*u>=L.touchTapThreshold2}if(t&&L.touchData.cxt&&(e.preventDefault(),v=e.touches[0].clientX-U,x=e.touches[0].clientY-q,w=e.touches[1].clientX-U,k=e.touches[1].clientY-q,2.25<=(o=re(v,x,w,k))/z||22500<=o)&&(L.touchData.cxt=!1,L.data.bgActivePosistion=void 0,L.redrawHint("select",!0),p={originalEvent:e,type:"cxttapend",position:{x:r[0],y:r[1]}},L.touchData.start?(L.touchData.start.unactivate().emit(p),L.touchData.start=null):n.emit(p)),t&&L.touchData.cxt){var p={originalEvent:e,type:"cxtdrag",position:{x:r[0],y:r[1]}},g=(L.data.bgActivePosistion=void 0,L.redrawHint("select",!0),(L.touchData.start||n).emit(p),L.touchData.start&&(L.touchData.start._private.grabbed=!1),L.touchData.cxtDragged=!0,L.findNearestElement(r[0],r[1],!0,!0));L.touchData.cxtOver&&g===L.touchData.cxtOver||(L.touchData.cxtOver&&L.touchData.cxtOver.emit({originalEvent:e,type:"cxtdragout",position:{x:r[0],y:r[1]}}),!(L.touchData.cxtOver=g))||g.emit({originalEvent:e,type:"cxtdragover",position:{x:r[0],y:r[1]}})}else if(t&&e.touches[2]&&n.boxSelectionEnabled())e.preventDefault(),L.data.bgActivePosistion=void 0,this.lastThreeTouch=+new Date,L.touchData.selecting||n.emit({originalEvent:e,type:"boxstart",position:{x:r[0],y:r[1]}}),L.touchData.selecting=!0,L.touchData.didSelect=!0,i[4]=1,i&&0!==i.length&&void 0!==i[0]?(i[2]=(r[0]+r[2]+r[4])/3,i[3]=(r[1]+r[3]+r[5])/3):(i[0]=(r[0]+r[2]+r[4])/3,i[1]=(r[1]+r[3]+r[5])/3,i[2]=(r[0]+r[2]+r[4])/3+1,i[3]=(r[1]+r[3]+r[5])/3+1),L.redrawHint("select",!0),L.redraw();else if(t&&e.touches[1]&&!L.touchData.didSelect&&n.zoomingEnabled()&&n.panningEnabled()&&n.userZoomingEnabled()&&n.userPanningEnabled()){if(e.preventDefault(),L.data.bgActivePosistion=void 0,L.redrawHint("select",!0),T=L.dragData.touchDragEles){L.redrawHint("drag",!0);for(var f=0;f<T.length;f++){var m=T[f]._private;m.grabbed=!1,m.rscratch.inDragLayer=!1}}var y,b,o=L.touchData.start,v=e.touches[0].clientX-U,x=e.touches[0].clientY-q,w=e.touches[1].clientX-U,k=e.touches[1].clientY-q,p=ne(v,x,w,k),i=p/j;X&&(b=(v-O+(w-B))/2,_=(x-P+(k-F))/2,i=($=n.zoom())*i,S=n.pan(),E=H[0]*$+S.x,y=H[1]*$+S.y,b={x:-i/$*(E-S.x-b)+E,y:-i/$*(y-S.y-_)+y},o&&o.active()&&(T=L.dragData.touchDragEles,N(T),L.redrawHint("drag",!0),L.redrawHint("eles",!0),o.unactivate().emit("freeon"),T.emit("free"),L.dragData.didDrag)&&(o.emit("dragfreeon"),T.emit("dragfree")),n.viewport({zoom:i,pan:b,cancelOnFailedZoom:!0}),n.emit("pinchzoom"),j=p,O=v,P=x,B=w,F=k,L.pinching=!0),e.touches[0]&&(A=L.projectIntoViewport(e.touches[0].clientX,e.touches[0].clientY),r[0]=A[0],r[1]=A[1]),e.touches[1]&&(A=L.projectIntoViewport(e.touches[1].clientX,e.touches[1].clientY),r[2]=A[0],r[3]=A[1]),e.touches[2]&&(A=L.projectIntoViewport(e.touches[2].clientX,e.touches[2].clientY),r[4]=A[0],r[5]=A[1])}else if(e.touches[0]&&!L.touchData.didSelect){var T,S,_,C,A,E=L.touchData.start,$=L.touchData.last;if(L.hoverData.draggingEles||L.swipePanning||(g=L.findNearestElement(r[0],r[1],!0,!0)),t&&null!=E&&e.preventDefault(),t&&null!=E&&L.nodeIsDraggable(E)&&(d?(T=L.dragData.touchDragEles,(S=!L.dragData.didDrag)&&I(T,{inDragLayer:!0}),L.dragData.didDrag=!0,_={x:0,y:0},se(l[0])&&se(l[1])&&(_.x+=l[0],_.y+=l[1],S)&&(L.redrawHint("eles",!0),(C=L.touchData.dragDelta)&&se(C[0])&&se(C[1])&&(_.x+=C[0],_.y+=C[1])),L.hoverData.draggingEles=!0,T.silentShift(_).emit("position drag"),L.redrawHint("drag",!0),L.touchData.startPosition[0]==s[0]&&L.touchData.startPosition[1]==s[1]&&L.redrawHint("eles",!0),L.redraw()):0===(C=L.touchData.dragDelta=L.touchData.dragDelta||[]).length?(C.push(l[0]),C.push(l[1])):(C[0]+=l[0],C[1]+=l[1])),R(E||g,["touchmove","tapdrag","vmousemove"],e,{x:r[0],y:r[1]}),E&&E.grabbed()||g==$||($&&$.emit({originalEvent:e,type:"tapdragout",position:{x:r[0],y:r[1]}}),!g)||g.emit({originalEvent:e,type:"tapdragover",position:{x:r[0],y:r[1]}}),L.touchData.last=g,t)for(f=0;f<r.length;f++)r[f]&&L.touchData.startPosition[f]&&d&&(L.touchData.singleTouchMoved=!0);t&&(null==E||E.pannable())&&n.panningEnabled()&&n.userPanningEnabled()&&(M(E,L.touchData.starts)&&(e.preventDefault(),L.data.bgActivePosistion||(L.data.bgActivePosistion=rSe(L.touchData.startPosition)),L.swipePanning?(n.panBy({x:l[0]*a,y:l[1]*a}),n.emit("dragpan")):d&&(L.swipePanning=!0,n.panBy({x:h*a,y:u*a}),n.emit("dragpan"),E)&&(E.unactivate(),L.redrawHint("select",!0),L.touchData.start=null)),A=L.projectIntoViewport(e.touches[0].clientX,e.touches[0].clientY),r[0]=A[0],r[1]=A[1])}for(c=0;c<r.length;c++)s[c]=r[c];t&&0<e.touches.length&&!L.hoverData.draggingEles&&!L.swipePanning&&null!=L.data.bgActivePosistion&&(L.data.bgActivePosistion=void 0,L.redrawHint("select",!0),L.redraw())}},"touchmoveHandler"),!1),L.registerBinding(e,"touchcancel",Q=mt(function(e){var t=L.touchData.start;L.touchData.capture=!1,t&&t.unactivate()},"touchcancelHandler")),L.registerBinding(e,"touchend",J=mt(function(e){var t=L.touchData.start;if(L.touchData.capture){0===e.touches.length&&(L.touchData.capture=!1),e.preventDefault();var i,n=L.selection,r=(L.swipePanning=!1,L.hoverData.draggingEles=!1,L.cy),s=r.zoom(),a=L.touchData.now,o=L.touchData.earlier;if(e.touches[0]&&(i=L.projectIntoViewport(e.touches[0].clientX,e.touches[0].clientY),a[0]=i[0],a[1]=i[1]),e.touches[1]&&(i=L.projectIntoViewport(e.touches[1].clientX,e.touches[1].clientY),a[2]=i[0],a[3]=i[1]),e.touches[2]&&(i=L.projectIntoViewport(e.touches[2].clientX,e.touches[2].clientY),a[4]=i[0],a[5]=i[1]),t&&t.unactivate(),L.touchData.cxt)i={originalEvent:e,type:"cxttapend",position:{x:a[0],y:a[1]}},(t||r).emit(i),L.touchData.cxtDragged||(i={originalEvent:e,type:"cxttap",position:{x:a[0],y:a[1]}},(t||r).emit(i)),L.touchData.start&&(L.touchData.start._private.grabbed=!1),L.touchData.cxt=!1,L.touchData.start=null,L.redraw();else{!e.touches[2]&&r.boxSelectionEnabled()&&L.touchData.selecting&&(L.touchData.selecting=!1,i=r.collection(L.getAllInBox(n[0],n[1],n[2],n[3])),n[0]=void 0,n[1]=void 0,n[2]=void 0,n[3]=void 0,n[4]=0,L.redrawHint("select",!0),r.emit({type:"boxend",originalEvent:e,position:{x:a[0],y:a[1]}}),n=mt(function(e){return e.selectable()&&!e.selected()},"eleWouldBeSelected"),i.emit("box").stdFilter(n).select().emit("boxselect"),i.nonempty()&&L.redrawHint("eles",!0),L.redraw()),t?.unactivate(),e.touches[2]?(L.data.bgActivePosistion=void 0,L.redrawHint("select",!0)):e.touches[1]||e.touches[0]||e.touches[0]||(L.data.bgActivePosistion=void 0,L.redrawHint("select",!0),n=L.dragData.touchDragEles,null!=t?(i=t._private.grabbed,N(n),L.redrawHint("drag",!0),L.redrawHint("eles",!0),i&&(t.emit("freeon"),n.emit("free"),L.dragData.didDrag)&&(t.emit("dragfreeon"),n.emit("dragfree")),R(t,["touchend","tapend","vmouseup","tapdragout"],e,{x:a[0],y:a[1]}),t.unactivate(),L.touchData.start=null):(i=L.findNearestElement(a[0],a[1],!0,!0),R(i,["touchend","tapend","vmouseup","tapdragout"],e,{x:a[0],y:a[1]})),n=((n=L.touchData.startPosition[0]-a[0])*n+(i=L.touchData.startPosition[1]-a[1])*i)*s*s,L.touchData.singleTouchMoved||(t||r.$(":selected").unselect(["tapunselect"]),R(t,["tap","vclick"],e,{x:a[0],y:a[1]}),f=!1,e.timeStamp-y<=r.multiClickDebounceTime()?(m&&clearTimeout(m),f=!0,y=null,R(t,["dbltap","vdblclick"],e,{x:a[0],y:a[1]})):(m=setTimeout(function(){f||R(t,["onetap","voneclick"],e,{x:a[0],y:a[1]})},r.multiClickDebounceTime()),y=e.timeStamp)),null!=t&&!L.dragData.didDrag&&t._private.selectable&&n<L.touchTapThreshold2&&!L.pinching&&("single"===r.selectionType()?(r.$(d).unmerge(t).unselect(["tapunselect"]),t.select(["tapselect"])):t.selected()?t.unselect(["tapunselect"]):t.select(["tapselect"]),L.redrawHint("eles",!0)),L.touchData.singleTouchMoved=!0);for(var l=0;l<a.length;l++)o[l]=a[l];L.dragData.didDrag=!1,0===e.touches.length&&(L.touchData.dragDelta=[],L.touchData.startPosition=[null,null,null,null,null,null],L.touchData.startGPosition=null,L.touchData.didSelect=!1),e.touches.length<2&&(1===e.touches.length&&(L.touchData.startGPosition=[e.touches[0].clientX,e.touches[0].clientY]),L.pinching=!1,L.redrawHint("eles",!0),L.redraw())}}},"touchendHandler"),!1),"u"<typeof TouchEvent&&(a=[],o=mt(function(e){return{clientX:e.clientX,clientY:e.clientY,force:1,identifier:e.pointerId,pageX:e.pageX,pageY:e.pageY,radiusX:e.width/2,radiusY:e.height/2,screenX:e.screenX,screenY:e.screenY,target:e.target}},"makeTouch"),ee=mt(function(e){return{event:e,touch:o(e)}},"makePointer"),te=mt(function(e){a.push(ee(e))},"addPointer"),l=mt(function(e){for(var t=0;t<a.length;t++)if(a[t].event.pointerId===e.pointerId)return void a.splice(t,1)},"removePointer"),ie=mt(function(t){var e=a.filter(function(e){return e.event.pointerId===t.pointerId})[0];e.event=t,e.touch=o(t)},"updatePointer"),v=mt(function(e){e.touches=a.map(function(e){return e.touch})},"addTouchesToEvent"),x=mt(function(e){return"mouse"===e.pointerType||4===e.pointerType},"pointerIsMouse"),L.registerBinding(L.container,"pointerdown",function(e){x(e)||(e.preventDefault(),te(e),v(e),K(e))}),L.registerBinding(L.container,"pointerup",function(e){x(e)||(l(e),v(e),J(e))}),L.registerBinding(L.container,"pointercancel",function(e){x(e)||(l(e),v(e),Q(e))}),L.registerBinding(L.container,"pointermove",function(e){x(e)||(e.preventDefault(),ie(e),v(e),Z(e))}))}},b$e={generatePolygon:function(e,t){return this.nodeShapes[e]={renderer:this,name:e,points:t,draw:mt(function(e,t,i,n,r,s){this.renderer.nodeShapeImpl("polygon",e,t,i,n,r,this.points)},"draw"),intersectLine:mt(function(e,t,i,n,r,s,a,o){return KSe(r,s,this.points,e,t,i/2,n/2,a)},"intersectLine"),checkPoint:mt(function(e,t,i,n,r,s,a,o){return zSe(e,t,this.points,s,a,n,r,[0,-1],i)},"checkPoint")}},generateEllipse:function(){return this.nodeShapes.ellipse={renderer:this,name:"ellipse",draw:mt(function(e,t,i,n,r,s){this.renderer.nodeShapeImpl(this.name,e,t,i,n,r)},"draw"),intersectLine:mt(function(e,t,i,n,r,s,a,o){return WSe(r,s,e,t,i/2+a,n/2+a)},"intersectLine"),checkPoint:mt(function(e,t,i,n,r,s,a,o){return VSe(e,t,n,r,s,a,i)},"checkPoint")}},generateRoundPolygon:function(e,m){return this.nodeShapes[e]={renderer:this,name:e,points:m,getOrCreateCorners:mt(function(e,t,i,n,r,s,a){if(void 0===s[a]||s[a+"-cx"]!==e||s[a+"-cy"]!==t){s[a]=new Array(m.length/2),s[a+"-cx"]=e,s[a+"-cy"]=t;var o=i/2,l=n/2;r="auto"===r?n_e(i,n):r;for(var c=new Array(m.length/2),h=0;h<m.length/2;h++)c[h]={x:e+o*m[2*h],y:t+l*m[2*h+1]};for(var u,d,p=c.length,g=c[p-1],f=0;f<p;f++)u=c[f%p],d=c[(f+1)%p],s[a][f]=V8e(g,u,d,r),g=u,0}return s[a]},"getOrCreateCorners"),draw:mt(function(e,t,i,n,r,s,a){this.renderer.nodeShapeImpl("round-polygon",e,t,i,n,r,this.points,this.getOrCreateCorners(t,i,n,r,s,a,"drawCorners"))},"draw"),intersectLine:mt(function(e,t,i,n,r,s,a,o,l){return ZSe(r,s,this.points,e,t,i,n,a,this.getOrCreateCorners(e,t,i,n,o,l,"corners"))},"intersectLine"),checkPoint:mt(function(e,t,i,n,r,s,a,o,l){return HSe(e,t,this.points,s,a,n,r,this.getOrCreateCorners(s,a,n,r,o,l,"corners"))},"checkPoint")}},generateRoundRectangle:function(){return this.nodeShapes["round-rectangle"]=this.nodeShapes.roundrectangle={renderer:this,name:"round-rectangle",points:JSe(4,0),draw:mt(function(e,t,i,n,r,s){this.renderer.nodeShapeImpl(this.name,e,t,i,n,r,this.points,s)},"draw"),intersectLine:mt(function(e,t,i,n,r,s,a,o){return ISe(r,s,e,t,i,n,a,o)},"intersectLine"),checkPoint:mt(function(e,t,i,n,r,s,a,o){var l=n/2,c=r/2,h=(o="auto"===o?i_e(n,r):o,2*(o=Math.min(l,c,o)));return!!(zSe(e,t,this.points,s,a,n,r-h,[0,-1],i)||zSe(e,t,this.points,s,a,n-h,r,[0,-1],i)||VSe(e,t,h,h,s-l+o,a-c+o,i)||VSe(e,t,h,h,s+l-o,a-c+o,i)||VSe(e,t,h,h,s+l-o,a+c-o,i)||VSe(e,t,h,h,s-l+o,a+c-o,i))},"checkPoint")}},generateCutRectangle:function(){return this.nodeShapes["cut-rectangle"]=this.nodeShapes.cutrectangle={renderer:this,name:"cut-rectangle",cornerLength:r_e(),points:JSe(4,0),draw:mt(function(e,t,i,n,r,s){this.renderer.nodeShapeImpl(this.name,e,t,i,n,r,null,s)},"draw"),generateCutTrianglePts:mt(function(e,t,i,n,r){var r="auto"===r?this.cornerLength:r,t=t/2,e=e/2,s=i-e,i=i+e,e=n-t,n=n+t;return{topLeft:[s,e+r,s+r,e,s+r,e+r],topRight:[i-r,e,i,e+r,i-r,e+r],bottomRight:[i,n-r,i-r,n,i-r,n-r],bottomLeft:[s+r,n,s,n-r,s+r,n-r]}},"generateCutTrianglePts"),intersectLine:mt(function(e,t,i,n,r,s,a,o){i=this.generateCutTrianglePts(i+2*a,n+2*a,e,t,o),n=[].concat.apply([],[i.topLeft.splice(0,4),i.topRight.splice(0,4),i.bottomRight.splice(0,4),i.bottomLeft.splice(0,4)]);return KSe(r,s,n,e,t)},"intersectLine"),checkPoint:mt(function(e,t,i,n,r,s,a,o){var o="auto"===o?this.cornerLength:o;return!(!zSe(e,t,this.points,s,a,n,r-2*o,[0,-1],i)&&!zSe(e,t,this.points,s,a,n-2*o,r,[0,-1],i))||(o=this.generateCutTrianglePts(n,r,s,a),jSe(e,t,o.topLeft))||jSe(e,t,o.topRight)||jSe(e,t,o.bottomRight)||jSe(e,t,o.bottomLeft)},"checkPoint")}},generateBarrel:function(){return this.nodeShapes.barrel={renderer:this,name:"barrel",points:JSe(4,0),draw:mt(function(e,t,i,n,r,s){this.renderer.nodeShapeImpl(this.name,e,t,i,n,r)},"draw"),intersectLine:mt(function(e,t,i,n,r,s,a,o){i=this.generateBarrelBezierPts(i+2*a,n+2*a,e,t),n=mt(function(e){var t=ySe({x:e[0],y:e[1]},{x:e[2],y:e[3]},{x:e[4],y:e[5]},.15),i=ySe({x:e[0],y:e[1]},{x:e[2],y:e[3]},{x:e[4],y:e[5]},.5),n=ySe({x:e[0],y:e[1]},{x:e[2],y:e[3]},{x:e[4],y:e[5]},.85);return[e[0],e[1],t.x,t.y,i.x,i.y,n.x,n.y,e[4],e[5]]},"approximateBarrelCurvePts"),a=[].concat(n(i.topLeft),n(i.topRight),n(i.bottomRight),n(i.bottomLeft));return KSe(r,s,a,e,t)},"intersectLine"),generateBarrelBezierPts:mt(function(e,t,i,n){var r=t/2,s=e/2,a=i-s,i=i+s,s=n-r,n=n+r,r=a_e(e,t),t=r.heightOffset,o=r.widthOffset,r=r.ctrlPtOffsetPct*e,e={topLeft:[a,s+t,a+r,s,a+o,s],topRight:[i-o,s,i-r,s,i,s+t],bottomRight:[i,n-t,i-r,n,i-o,n],bottomLeft:[a+o,n,a+r,n,a,n-t]};return e.topLeft.isTop=!0,e.topRight.isTop=!0,e.bottomLeft.isBottom=!0,e.bottomRight.isBottom=!0,e},"generateBarrelBezierPts"),checkPoint:mt(function(e,t,i,n,r,s,a,o){var l=a_e(n,r),c=l.heightOffset,l=l.widthOffset;if(zSe(e,t,this.points,s,a,n,r-2*c,[0,-1],i)||zSe(e,t,this.points,s,a,n-2*l,r,[0,-1],i))return!0;for(var h=this.generateBarrelBezierPts(n,r,s,a),u=mt(function(e,t,i){var n=i[4],r=i[2],s=i[0],a=i[5],i=i[1],o=Math.min(n,s),l=Math.max(n,s),c=Math.min(a,i),a=Math.max(a,i);if(o<=e&&e<=l&&c<=t&&t<=a){i=s_e(n,r,s),o=OSe(i[0],i[1],i[2],e).filter(function(e){return 0<=e&&e<=1});if(0<o.length)return o[0]}return null},"getCurveT"),d=Object.keys(h),p=0;p<d.length;p++){var g=h[d[p]],f=u(e,t,g);if(null!=f){var m=g[5],y=g[3],b=g[1],m=mSe(m,y,b,f);if(g.isTop&&m<=t||g.isBottom&&t<=m)return!0}}return!1},"checkPoint")}},generateBottomRoundrectangle:function(){return this.nodeShapes["bottom-round-rectangle"]=this.nodeShapes.bottomroundrectangle={renderer:this,name:"bottom-round-rectangle",points:JSe(4,0),draw:mt(function(e,t,i,n,r,s){this.renderer.nodeShapeImpl(this.name,e,t,i,n,r,this.points,s)},"draw"),intersectLine:mt(function(e,t,i,n,r,s,a,o){var l=t-(n/2+a),l=XSe(r,s,e,t,e-(i/2+a),l,e+(i/2+a),l,!1);return 0<l.length?l:ISe(r,s,e,t,i,n,a,o)},"intersectLine"),checkPoint:mt(function(e,t,i,n,r,s,a,o){var l,c,h=2*(o="auto"===o?i_e(n,r):o);return!(!zSe(e,t,this.points,s,a,n,r-h,[0,-1],i)&&!zSe(e,t,this.points,s,a,n-h,r,[0,-1],i)&&!(jSe(e,t,[s-(l=n/2+2*i),a-(c=r/2+2*i),s-l,a,s+l,a,s+l,a-c])||VSe(e,t,h,h,s+n/2-o,a+r/2-o,i)||VSe(e,t,h,h,s-n/2+o,a+r/2-o,i)))},"checkPoint")}},registerNodeShapes:function(){var e=this.nodeShapes={},i=this,t=(this.generateEllipse(),this.generatePolygon("triangle",JSe(3,0)),this.generateRoundPolygon("round-triangle",JSe(3,0)),this.generatePolygon("rectangle",JSe(4,0)),e.square=e.rectangle,this.generateRoundRectangle(),this.generateCutRectangle(),this.generateBarrel(),this.generateBottomRoundrectangle(),[0,1,1,0,0,-1,-1,0]),n=(this.generatePolygon("diamond",t),this.generateRoundPolygon("round-diamond",t),this.generatePolygon("pentagon",JSe(5,0)),this.generateRoundPolygon("round-pentagon",JSe(5,0)),this.generatePolygon("hexagon",JSe(6,0)),this.generateRoundPolygon("round-hexagon",JSe(6,0)),this.generatePolygon("heptagon",JSe(7,0)),this.generateRoundPolygon("round-heptagon",JSe(7,0)),this.generatePolygon("octagon",JSe(8,0)),this.generateRoundPolygon("round-octagon",JSe(8,0)),new Array(20)),r=t_e(5,0),s=t_e(5,Math.PI/5),a=.5*(3-Math.sqrt(5));a*=1.57;for(var o=0;o<s.length/2;o++)s[2*o]*=a,s[2*o+1]*=a;for(o=0;o<5;o++)n[4*o]=r[2*o],n[4*o+1]=r[2*o+1],n[4*o+2]=s[2*o],n[4*o+3]=s[2*o+1];n=e_e(n),this.generatePolygon("star",n),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]);t=[-1,-1,.25,-1,1,0,.25,1,-1,1];this.generatePolygon("tag",t),this.generateRoundPolygon("round-tag",t),e.makePolygon=function(e){var t="polygon-"+e.join("$");return this[t]||i.generatePolygon(t,e)}}},v$e={timeToRender:function(){return this.redrawTotalTime/this.redrawCount},redraw:function(e){e=e||PTe();void 0===this.averageRedrawTime&&(this.averageRedrawTime=0),void 0===this.lastRedrawTime&&(this.lastRedrawTime=0),void 0===this.lastDrawTime&&(this.lastDrawTime=0),this.requestedFrame=!0,this.renderOptions=e},beforeRender:function(e,t){var i;this.destroyed||(null==t&&$Te("Priority is not optional for beforeRender"),(i=this.beforeRenderCallbacks).push({fn:e,priority:t}),i.sort(function(e,t){return t.priority-e.priority}))}},EEe=mt(function(e,t,i){for(var n=e.beforeRenderCallbacks,r=0;r<n.length;r++)n[r].fn(t,i)},"beforeRenderCallbacks"),v$e.startRenderLoop=function(){var e,r=this,s=r.cy;r.renderLoopStarted||(r.renderLoopStarted=!0,e=mt(function e(t){var i,n;r.destroyed||(s.batching()||(r.requestedFrame&&!r.skipFrame?(EEe(r,!0,t),i=hTe(),r.render(r.renderOptions),n=r.lastDrawTime=hTe(),void 0===r.averageRedrawTime&&(r.averageRedrawTime=n-i),void 0===r.redrawCount&&(r.redrawCount=0),r.redrawCount++,void 0===r.redrawTotalTime&&(r.redrawTotalTime=0),r.redrawTotalTime+=n=n-i,r.lastRedrawTime=n,r.averageRedrawTime=r.averageRedrawTime/2+n/2,r.requestedFrame=!1):EEe(r,!1,t)),r.skipFrame=!1,cTe(e))},"renderFn"),cTe(e))},JEe=mt(function(e){this.init(e)},"BaseRenderer"),(LEe=($Ee=JEe).prototype).clientFunctions=["redrawHint","render","renderTo","matchCanvasSize","nodeShapeImpl","arrowShapeImpl"],LEe.init=function(e){var t,i,n,r,s,a=this,o=(a.options=e,a.cy=e.cy,a.container=e.cy.container()),l=a.cy.window();l&&(i=(t=l.document).head,r="__________cytoscape_container",s=null!=t.getElementById(n="__________cytoscape_stylesheet"),o.className.indexOf(r)<0&&(o.className=(o.className||"")+" "+r),s||((s=t.createElement("style")).id=n,s.textContent="."+r+" { position: relative; }",i.insertBefore(s,i.children[0])),"static"===l.getComputedStyle(o).getPropertyValue("position"))&&RTe("A Cytoscape container has style position:static and so can not use UI extensions properly"),a.selection=[void 0,void 0,void 0,void 0,0],a.bezierProjPcts=[.05,.225,.4,.5,.6,.775,.95],a.hoverData={down:null,last:null,downTime:null,triggerMode:null,dragging:!1,initialPan:[null,null],capture:!1},a.dragData={possibleDragElements:[]},a.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]},a.redraws=0,a.showFps=e.showFps,a.debug=e.debug,a.webgl=e.webgl,a.hideEdgesOnViewport=e.hideEdgesOnViewport,a.textureOnViewport=e.textureOnViewport,a.wheelSensitivity=e.wheelSensitivity,a.motionBlurEnabled=e.motionBlur,a.forcedPixelRatio=se(e.pixelRatio)?e.pixelRatio:null,a.motionBlur=e.motionBlur,a.motionBlurOpacity=e.motionBlurOpacity,a.motionBlurTransparency=1-a.motionBlurOpacity,a.motionBlurPxRatio=1,a.mbPxRBlurry=1,a.minMbLowQualFrames=4,a.fullQualityMb=!1,a.clearedForMotionBlur=[],a.desktopTapThreshold=e.desktopTapThreshold,a.desktopTapThreshold2=e.desktopTapThreshold*e.desktopTapThreshold,a.touchTapThreshold=e.touchTapThreshold,a.touchTapThreshold2=e.touchTapThreshold*e.touchTapThreshold,a.tapholdDuration=500,a.bindings=[],a.beforeRenderCallbacks=[],a.beforeRenderPriorities={animations:400,eleCalcs:300,eleTxrDeq:200,lyrTxrDeq:150,lyrTxrSkip:100},a.registerNodeShapes(),a.registerArrowShapes(),a.registerCalculationListeners()},LEe.notify=function(e,t){var i=this,n=i.cy;this.destroyed||("init"===e?i.load():"destroy"===e?i.destroy():(("add"===e||"remove"===e||"move"===e&&n.hasCompoundNodes()||"load"===e||"zorder"===e||"mount"===e)&&i.invalidateCachedZSortedEles(),"viewport"===e&&i.redrawHint("select",!0),"gc"===e&&i.redrawHint("gc",!0),"load"!==e&&"resize"!==e&&"mount"!==e||(i.invalidateContainerClientCoordsCache(),i.matchCanvasSize(i.container)),i.redrawHint("eles",!0),i.redrawHint("drag",!0),this.startRenderLoop(),this.redraw()))},LEe.destroy=function(){var e=this;e.destroyed=!0,e.cy.stopAnimationLoop();for(var t=0;t<e.bindings.length;t++){var i=e.bindings[t],n=i.target;(n.off||n.removeEventListener).apply(n,i.args)}if(e.bindings=[],e.beforeRenderCallbacks=[],e.onUpdateEleCalcsFns=[],e.removeObserver&&e.removeObserver.disconnect(),e.styleObserver&&e.styleObserver.disconnect(),e.resizeObserver&&e.resizeObserver.disconnect(),e.labelCalcDiv)try{document.body.removeChild(e.labelCalcDiv)}catch{}},LEe.isHeadless=function(){return!1},[c$e,AEe,h$e,y$e,b$e,v$e].forEach(function(e){Ske(LEe,e)}),_$e={setupDequeueing:mt(function(f){return mt(function(){var d,e,t,p=this,g=this.renderer;p.dequeueingSetup||(p.dequeueingSetup=!0,d=sTe(function(){g.redrawHint("eles",!0),g.redrawHint("drag",!0),g.redraw()},f.deqRedrawThreshold),e=mt(function(e,t){var i=hTe(),n=g.averageRedrawTime,r=g.lastRedrawTime,s=[],a=g.cy.extent(),o=g.getPixelRatio();for(e||g.flushRenderedStyleQueue();;){var l=hTe(),c=l-i,l=l-t;if(r<1e3/60){if(l>=f.deqFastCost*(1e3/60-(e?n:0)))break}else if(e){if(c>=f.deqCost*r||c>=f.deqAvgCost*n)break}else if(l>=f.deqNoDrawCost*(1e3/60))break;var h=f.deq(p,o,a);if(!(0<h.length))break;for(var u=0;u<h.length;u++)s.push(h[u])}0<s.length&&(f.onDeqd(p,s),!e)&&f.shouldRedraw(p,s,o,a)&&d()},"dequeue"),t=f.priority||ETe,g.beforeRender(e,t(p)))},"setupDequeueingImpl")},"setupDequeueing")},mt(L,"ElementTextureCacheLookup"),Gwe(L,[{key:"getIdsFor",value:mt(function(e){null==e&&$Te("Can not get id list for null key");var t=this.idsByKey,i=this.idsByKey.get(e);return i||(i=new WTe,t.set(e,i)),i},"getIdsFor")},{key:"addIdForKey",value:mt(function(e,t){null!=e&&this.getIdsFor(e).add(t)},"addIdForKey")},{key:"deleteIdForKey",value:mt(function(e,t){null!=e&&this.getIdsFor(e).delete(t)},"deleteIdForKey")},{key:"getNumberOfIdsForKey",value:mt(function(e){return null==e?0:this.getIdsFor(e).size},"getNumberOfIdsForKey")},{key:"updateKeyMappingFor",value:mt(function(e){var t=e.id(),i=this.keyForId.get(t),e=this.getKey(e);this.deleteIdForKey(i,t),this.addIdForKey(e,t),this.keyForId.set(t,e)},"updateKeyMappingFor")},{key:"deleteKeyMappingFor",value:mt(function(e){var e=e.id(),t=this.keyForId.get(e);this.deleteIdForKey(t,e),this.keyForId.delete(e)},"deleteKeyMappingFor")},{key:"keyHasChangedFor",value:mt(function(e){var t=e.id();return this.keyForId.get(t)!==this.getKey(e)},"keyHasChangedFor")},{key:"isInvalid",value:mt(function(e){return this.keyHasChangedFor(e)||this.doesEleInvalidateKey(e)},"isInvalid")},{key:"getCachesAt",value:mt(function(e){var t=this.cachesByLvl,i=this.lvls,n=t.get(e);return n||(n=new qTe,t.set(e,n),i.push(e)),n},"getCachesAt")},{key:"getCache",value:mt(function(e,t){return this.getCachesAt(t).get(e)},"getCache")},{key:"get",value:mt(function(e,t){var i=this.getKey(e),i=this.getCache(i,t);return null!=i&&this.updateKeyMappingFor(e),i},"get")},{key:"getForCachedKey",value:mt(function(e,t){e=this.keyForId.get(e.id());return this.getCache(e,t)},"getForCachedKey")},{key:"hasCache",value:mt(function(e,t){return this.getCachesAt(t).has(e)},"hasCache")},{key:"has",value:mt(function(e,t){e=this.getKey(e);return this.hasCache(e,t)},"has")},{key:"setCache",value:mt(function(e,t,i){i.key=e,this.getCachesAt(t).set(e,i)},"setCache")},{key:"set",value:mt(function(e,t,i){var n=this.getKey(e);this.setCache(n,t,i),this.updateKeyMappingFor(e)},"set")},{key:"deleteCache",value:mt(function(e,t){this.getCachesAt(t).delete(e)},"deleteCache")},{key:"delete",value:mt(function(e,t){e=this.getKey(e);this.deleteCache(e,t)},"_delete")},{key:"invalidateKey",value:mt(function(t){var i=this;this.lvls.forEach(function(e){return i.deleteCache(t,e)})},"invalidateKey")},{key:"invalidate",value:mt(function(e){var t=e.id(),t=this.keyForId.get(t),e=(this.deleteKeyMappingFor(e),this.doesEleInvalidateKey(e));return e&&this.invalidateKey(t),e||0===this.getNumberOfIdsForKey(t)},"invalidate")}]),REe=L,0,0,MEe={dequeue:"dequeue",downscale:"downscale",highQuality:"highQuality"},IEe=BTe({getKey:null,doesEleInvalidateKey:CTe,drawElement:null,getBoundingBox:null,getRotationPoint:null,getRotationOffset:null,isVisible:_Te,allowEdgeTxrCaching:!0,allowParentTxrCaching:!0}),NEe=mt(function(e,t){this.renderer=e,this.onDequeues=[];e=IEe(t);Ske(this,e),this.lookup=new REe(e.getKey,e.doesEleInvalidateKey),this.setupDequeueing()},"ElementTextureCache"),(Q=NEe.prototype).reasons=MEe,Q.getTextureQueue=function(e){return this.eleImgCaches=this.eleImgCaches||{},this.eleImgCaches[e]=this.eleImgCaches[e]||[]},Q.getRetiredTextureQueue=function(e){var t=this.eleImgCaches.retired=this.eleImgCaches.retired||{};return t[e]=t[e]||[]},Q.getElementQueue=function(){return this.eleCacheQueue=this.eleCacheQueue||new GTe(function(e,t){return t.reqs-e.reqs})},Q.getElementKeyToQueue=function(){return this.eleKeyToCacheQueue=this.eleKeyToCacheQueue||{}},Q.getElement=function(e,t,i,n,r){var s=this,a=this.renderer,o=a.cy.zoom(),l=this.lookup;if(!t||0===t.w||0===t.h||isNaN(t.w)||isNaN(t.h)||!e.visible()||e.removed()||!s.allowEdgeTxrCaching&&e.isEdge()||!s.allowParentTxrCaching&&e.isParent())return null;if((n=null==n?Math.ceil(uSe(o*i)):n)<-4)n=-4;else if(7.99<=o||3<n)return null;var o=Math.pow(2,n),c=t.h*o,h=t.w*o,u=a.eleTextBiggerThanMin(e,o);if(!this.isVisible(e,u))return null;a=l.get(e,n);if(a&&a.invalidated&&(a.invalidated=!1,a.texture.invalidatedWidth-=a.width),!a){var d=c<=25?25:c<=50?50:50*Math.ceil(c/50);if(1024<c||1024<h)return null;var p=s.getTextureQueue(d),g=p[p.length-2],f=mt(function(){return s.recycleTexture(d,h)||s.addTexture(d,h)},"addNewTxr");(g=(g=g||p[p.length-1])||f()).width-g.usedWidth<h&&(g=f());for(var m,p=mt(function(e){return e&&e.scaledLabelShown===u},"scalableFrom"),f=r&&r===MEe.dequeue,y=r&&r===MEe.highQuality,r=r&&r===MEe.downscale,b=n+1;b<=3;b++){var v=l.get(e,b);if(v){m=v;break}}var x,w=m&&m.level===n+1?m:null,k=mt(function(){g.context.drawImage(w.texture.canvas,w.x,0,w.width,w.height,g.usedWidth,0,h,c)},"downscale");if(g.context.setTransform(1,0,0,1,0,0),g.context.clearRect(g.usedWidth,0,h,d),p(w))k();else if(p(m)){if(!y)return s.queueElement(e,m.level-1),m;for(var T=m.level;n<T;T--)w=s.getElement(e,t,i,T,MEe.downscale);k()}else{if(!f&&!y&&!r)for(var S=n-1;-4<=S;S--){var _=l.get(e,S);if(_){x=_;break}}if(p(x))return s.queueElement(e,n),x;g.context.translate(g.usedWidth,0),g.context.scale(o,o),this.drawElement(g.context,e,t,u,!1),g.context.scale(1/o,1/o),g.context.translate(-g.usedWidth,0)}a={x:g.usedWidth,texture:g,level:n,scale:o,width:h,height:c,scaledLabelShown:u},g.usedWidth+=Math.ceil(8+h),g.eleCaches.push(a),l.set(e,n,a),s.checkTextureFullness(g)}return a},Q.invalidateElements=function(e){for(var t=0;t<e.length;t++)this.invalidateElement(e[t])},Q.invalidateElement=function(e){var t=this.lookup,i=[];if(t.isInvalid(e)){for(var n=-4;n<=3;n++){var r=t.getForCachedKey(e,n);r&&i.push(r)}if(t.invalidate(e))for(var s=0;s<i.length;s++){var a=i[s],o=a.texture;o.invalidatedWidth+=a.width,a.invalidated=!0,this.checkTextureUtility(o)}this.removeFromQueue(e)}},Q.checkTextureUtility=function(e){e.invalidatedWidth>=.2*e.width&&this.retireTexture(e)},Q.checkTextureFullness=function(e){var t=this.getTextureQueue(e.height);.8<e.usedWidth/e.width&&10<=e.fullnessChecks?FTe(t,e):e.fullnessChecks++},Q.retireTexture=function(e){var t=e.height,i=this.getTextureQueue(t),n=this.lookup;FTe(i,e),e.retired=!0;for(var r=e.eleCaches,s=0;s<r.length;s++){var a=r[s];n.deleteCache(a.key,a.level)}jTe(r),this.getRetiredTextureQueue(t).push(e)},Q.addTexture=function(e,t){var i={};return this.getTextureQueue(e).push(i),i.eleCaches=[],i.height=e,i.width=Math.max(1024,t),i.usedWidth=0,i.invalidatedWidth=0,i.fullnessChecks=0,i.canvas=this.renderer.makeOffscreenCanvas(i.width,i.height),i.context=i.canvas.getContext("2d"),i},Q.recycleTexture=function(e,t){for(var i=this.getTextureQueue(e),n=this.getRetiredTextureQueue(e),r=0;r<n.length;r++){var s=n[r];if(s.width>=t)return s.retired=!1,s.usedWidth=0,s.invalidatedWidth=0,s.fullnessChecks=0,jTe(s.eleCaches),s.context.setTransform(1,0,0,1,0,0),s.context.clearRect(0,0,s.width,s.height),FTe(n,s),i.push(s),s}},Q.queueElement=function(e,t){var i=this.getElementQueue(),n=this.getElementKeyToQueue(),r=this.getKey(e),s=n[r];s?(s.level=Math.max(s.level,t),s.eles.merge(e),s.reqs++,i.updateItem(s)):(s={eles:e.spawn().merge(e),level:t,reqs:1,key:r},i.push(s),n[r]=s)},Q.dequeue=function(e){for(var t=this.getElementQueue(),i=this.getElementKeyToQueue(),n=[],r=this.lookup,s=0;s<1&&0<t.size();s++){var a=t.pop(),o=a.key,l=a.eles[0],c=r.hasCache(l,a.level);i[o]=null,c||(n.push(a),o=this.getBoundingBox(l),this.getElement(l,o,e,a.level,MEe.dequeue))}return n},Q.removeFromQueue=function(e){var t=this.getElementQueue(),i=this.getElementKeyToQueue(),n=this.getKey(e),r=i[n];null!=r&&(1===r.eles.length?(r.reqs=STe,t.updateItem(r),t.pop(),i[n]=null):r.eles.unmerge(e))},Q.onDequeue=function(e){this.onDequeues.push(e)},Q.offDequeue=function(e){FTe(this.onDequeues,e)},Q.setupDequeueing=_$e.setupDequeueing({deqRedrawThreshold:100,deqCost:.15,deqAvgCost:.1,deqNoDrawCost:.9,deqFastCost:.9,deq:mt(function(e,t,i){return e.dequeue(t,i)},"deq"),onDeqd:mt(function(e,t){for(var i=0;i<e.onDequeues.length;i++)(0,e.onDequeues[i])(t)},"onDeqd"),shouldRedraw:mt(function(e,t,i,n){for(var r=0;r<t.length;r++)for(var s=t[r].eles,a=0;a<s.length;a++){var o=s[a].boundingBox();if($Se(o,n))return!0}return!1},"shouldRedraw"),priority:mt(function(e){return e.renderer.beforeRenderPriorities.eleTxrDeq},"priority")}),0,0,0,DEe=mt(function(e){var i=this,e=i.renderer=e,t=e.cy,t=(i.layersByLevel={},i.firstGet=!0,i.lastInvalidationTime=hTe()-500,i.skipping=!1,i.eleTxrDeqs=t.collection(),i.scheduleElementRefinement=sTe(function(){i.refineElementTextures(i.eleTxrDeqs),i.eleTxrDeqs.unmerge(i.eleTxrDeqs)},50),e.beforeRender(function(e,t){t-i.lastInvalidationTime<=250?i.skipping=!0:i.skipping=!1},e.beforeRenderPriorities.lyrTxrSkip),mt(function(e,t){return t.reqs-e.reqs},"qSort"));i.layersQueue=new GTe(t),i.setupDequeueing()},"LayeredTextureCache"),J=DEe.prototype,OEe=0,PEe=Math.pow(2,53)-1,J.makeLayer=function(e,t){var i=Math.pow(2,t),n=Math.ceil(e.w*i),r=Math.ceil(e.h*i),s=this.renderer.makeOffscreenCanvas(n,r),e={id:OEe=++OEe%PEe,bb:e,level:t,width:n,height:r,canvas:s,context:s.getContext("2d"),eles:[],elesQueue:[],reqs:0},t=e.context,n=-e.bb.x1,r=-e.bb.y1;return t.scale(i,i),t.translate(n,r),e},J.getLayers=function(r,e,s){var a=this,t=a.renderer.cy.zoom(),i=a.firstGet;if(a.firstGet=!1,null==s)if((s=Math.ceil(uSe(t*e)))<-4)s=-4;else if(3.99<=t||2<s)return null;a.validateLayersElesOrdering(s,r);var o,l,c=a.layersByLevel,h=Math.pow(2,s),u=c[s]=c[s]||[],t=a.levelIsComplete(s,r),n=mt(function(){var i=mt(function(e){if(a.validateLayersElesOrdering(e,r),a.levelIsComplete(e,r))return l=c[e],!0},"canUseAsTmpLvl"),e=mt(function(e){if(!l)for(var t=s+e;-4<=t&&t<=2&&!i(t);t+=e);},"checkLvls");e(1),e(-1);for(var t=u.length-1;0<=t;t--){var n=u[t];n.invalid&&FTe(u,n)}},"checkTempLevels");if(t)return u;n();var d=mt(function(){if(!o){o=xSe();for(var e=0;e<r.length;e++)SSe(o,r[e].boundingBox())}return o},"getBb"),p=mt(function(e){var t=(e=e||{}).after,i=(d(),Math.ceil(o.w*h)),n=Math.ceil(o.h*h);return 32767<i||32767<n||16e6<i*n?null:(i=a.makeLayer(o,s),null!=t?(n=u.indexOf(t)+1,u.splice(n,0,i)):void 0!==e.insert&&!e.insert||u.unshift(i),i)},"makeLayer");if(a.skipping&&!i)return null;for(var g=null,f=+r.length,m=!i,y=0;y<r.length;y++){var b=r[y],v=b._private.rscratch,v=v.imgLayerCaches=v.imgLayerCaches||{},x=v[s];if(x)g=x;else{if((!g||g.eles.length>=f||!MSe(g.bb,b.boundingBox()))&&!(g=p({insert:!0,after:g})))return null;l||m?a.queueLayer(g,b):a.drawEleInLayer(g,b,s,e),g.eles.push(b),v[s]=g}}return l||(m?null:u)},J.getEleLevelForLayerLevel=function(e,t){return e},J.drawEleInLayer=function(e,t,i,n){var r=this.renderer,e=e.context,s=t.boundingBox();0!==s.w&&0!==s.h&&t.visible()&&(i=this.getEleLevelForLayerLevel(i,n),r.setImgSmoothing(e,!1),r.drawCachedElement(e,t,null,null,i,!0),r.setImgSmoothing(e,!0))},J.levelIsComplete=function(e,t){var i=this.layersByLevel[e];if(!i||0===i.length)return!1;for(var n=0,r=0;r<i.length;r++){var s=i[r];if(0<s.reqs||s.invalid)return!1;n+=s.eles.length}return n===t.length},J.validateLayersElesOrdering=function(e,t){var i=this.layersByLevel[e];if(i)for(var n=0;n<i.length;n++){for(var r=i[n],s=-1,a=0;a<t.length;a++)if(r.eles[0]===t[a]){s=a;break}if(s<0)this.invalidateLayer(r);else for(var o=s,a=0;a<r.eles.length;a++)if(r.eles[a]!==t[o+a]){this.invalidateLayer(r);break}}},J.updateElementsInLayers=function(e,t){for(var i=ake(e[0]),n=0;n<e.length;n++)for(var r=i?null:e[n],s=i?e[n]:e[n].ele,a=s._private.rscratch,o=a.imgLayerCaches=a.imgLayerCaches||{},l=-4;l<=2;l++){var c=o[l];!c||r&&this.getEleLevelForLayerLevel(c.level)!==r.level||t(c,s,r)}},J.haveLayers=function(){for(var e=!1,t=-4;t<=2;t++){var i=this.layersByLevel[t];if(i&&0<i.length){e=!0;break}}return e},J.invalidateElements=function(e){var n=this;0!==e.length&&(n.lastInvalidationTime=hTe(),0!==e.length)&&n.haveLayers()&&n.updateElementsInLayers(e,mt(function(e,t,i){n.invalidateLayer(e)},"invalAssocLayers"))},J.invalidateLayer=function(e){if(this.lastInvalidationTime=hTe(),!e.invalid){var t=e.level,i=e.eles,n=this.layersByLevel[t];FTe(n,e),e.elesQueue=[],e.invalid=!0,e.replacement&&(e.replacement.invalid=!0);for(var r=0;r<i.length;r++){var s=i[r]._private.rscratch.imgLayerCaches;s&&(s[t]=null)}}},J.refineElementTextures=function(e){var s=this;s.updateElementsInLayers(e,mt(function(e,t,i){var n=e.replacement;if(n||((n=e.replacement=s.makeLayer(e.bb,e.level)).replaces=e,n.eles=e.eles),!n.reqs)for(var r=0;r<n.eles.length;r++)s.queueLayer(n,n.eles[r])},"refineEachEle"))},J.enqueueElementRefinement=function(e){this.eleTxrDeqs.merge(e),this.scheduleElementRefinement()},J.queueLayer=function(e,t){var i=this.layersQueue,n=e.elesQueue,r=n.hasId=n.hasId||{};if(!e.replacement){if(t){if(r[t.id()])return;n.push(t),r[t.id()]=!0}e.reqs?(e.reqs++,i.updateItem(e)):(e.reqs=1,i.push(e))}},J.dequeue=function(e){for(var t=this.layersQueue,i=[],n=0;n<1&&0!==t.size();){var r,s=t.peek();s.replacement?t.pop():s.replaces&&s!==s.replaces.replacement||s.invalid?t.pop():((r=s.elesQueue.shift())&&(this.drawEleInLayer(s,r,s.level,e),n++),0===i.length&&i.push(!0),0===s.elesQueue.length&&(t.pop(),s.reqs=0,s.replaces&&this.applyLayerReplacement(s),this.requestRedraw()))}return i},J.applyLayerReplacement=function(e){var t=this.layersByLevel[e.level],i=e.replaces,n=t.indexOf(i);if(!(n<0||i.invalid)){t[n]=e;for(var r=0;r<e.eles.length;r++){var s=e.eles[r]._private,s=s.imgLayerCaches=s.imgLayerCaches||{};s&&(s[e.level]=e)}this.requestRedraw()}},J.requestRedraw=sTe(function(){var e=this.renderer;e.redrawHint("eles",!0),e.redrawHint("drag",!0),e.redraw()},100),J.setupDequeueing=_$e.setupDequeueing({deqRedrawThreshold:50,deqCost:.15,deqAvgCost:.1,deqNoDrawCost:.9,deqFastCost:.9,deq:mt(function(e,t){return e.dequeue(t)},"deq"),onDeqd:ETe,shouldRedraw:_Te,priority:mt(function(e){return e.renderer.beforeRenderPriorities.lyrTxrDeq},"priority")}),BEe={},mt(X8e,"polygon"),mt(K8e,"triangleBackcurve"),mt(Z8e,"triangleTee"),mt(Q8e,"circleTriangle"),mt(J8e,"circle"),BEe.arrowShapeImpl=function(e){return(FEe=FEe||{polygon:X8e,"triangle-backcurve":K8e,"triangle-tee":Z8e,"circle-triangle":Q8e,"triangle-cross":Z8e,circle:J8e})[e]},jEe={drawElement:function(e,t,i,n,r,s){t.isNode()?this.drawNode(e,t,i,n,r,s):this.drawEdge(e,t,i,n,r,s)},drawElementOverlay:function(e,t){t.isNode()?this.drawNodeOverlay(e,t):this.drawEdgeOverlay(e,t)},drawElementUnderlay:function(e,t){t.isNode()?this.drawNodeUnderlay(e,t):this.drawEdgeUnderlay(e,t)},drawCachedElementPortion:function(e,t,i,n,r,s,a,o){var l,c,h,u,d,p,g,f=i.getBoundingBox(t);0!==f.w&&0!==f.h&&(null!=(n=i.getElement(t,f,n,r,s))?0!==(r=o(this,t))&&(s=a(this,t),o=f.x1,a=f.y1,l=f.w,f=f.h,p=0!==s?(h=(u=i.getRotationPoint(t)).x,u=u.y,e.translate(h,u),e.rotate(s),(c=this.getImgSmoothing(e))||this.setImgSmoothing(e,!0),d=(p=i.getRotationOffset(t)).x,p.y):(d=o,a),1!==r&&(g=e.globalAlpha,e.globalAlpha=g*r),e.drawImage(n.texture.canvas,n.x,0,n.width,n.height,d,p,l,f),1!==r&&(e.globalAlpha=g),0!==s)&&(e.rotate(-s),e.translate(-h,-u),c||this.setImgSmoothing(e,!1)):i.drawElement(e,t))}},zEe=mt(function(){return 0},"getZeroRotation"),HEe=mt(function(e,t){return e.getTextAngle(t,null)},"getLabelRotation"),UEe=mt(function(e,t){return e.getTextAngle(t,"source")},"getSourceLabelRotation"),qEe=mt(function(e,t){return e.getTextAngle(t,"target")},"getTargetLabelRotation"),WEe=mt(function(e,t){return t.effectiveOpacity()},"getOpacity"),VEe=mt(function(e,t){return t.pstyle("text-opacity").pfValue*t.effectiveOpacity()},"getTextOpacity"),jEe.drawCachedElement=function(e,t,i,n,r,s){var a=this.data,o=a.eleTxrCache,l=a.lblTxrCache,c=a.slbTxrCache,a=a.tlbTxrCache,h=t.boundingBox(),s=!0===s?o.reasons.highQuality:null;0===h.w||0===h.h||!t.visible()||n&&!$Se(h,n)||(h=t.isEdge(),n=t.element()._private.rscratch.badLine,this.drawElementUnderlay(e,t),this.drawCachedElementPortion(e,t,o,i,r,s,zEe,WEe),h&&n||this.drawCachedElementPortion(e,t,l,i,r,s,HEe,VEe),h&&!n&&(this.drawCachedElementPortion(e,t,c,i,r,s,UEe,VEe),this.drawCachedElementPortion(e,t,a,i,r,s,qEe,VEe)),this.drawElementOverlay(e,t))},jEe.drawElements=function(e,t){for(var i=0;i<t.length;i++){var n=t[i];this.drawElement(e,n)}},jEe.drawCachedElements=function(e,t,i,n){for(var r=0;r<t.length;r++){var s=t[r];this.drawCachedElement(e,s,i,n)}},jEe.drawCachedNodes=function(e,t,i,n){for(var r=0;r<t.length;r++){var s=t[r];s.isNode()&&this.drawCachedElement(e,s,i,n)}},jEe.drawLayeredElements=function(e,t,i,n){var r=this.data.lyrTxrCache.getLayers(t,i);if(r)for(var s=0;s<r.length;s++){var a=r[s],o=a.bb;0!==o.w&&0!==o.h&&e.drawImage(a.canvas,o.x1,o.y1,o.w,o.h)}else this.drawCachedElements(e,t,i,n)},GEe={drawEdge:function(t,i,e){var n,r,s,a,o,l,c,h,u,d,p,g,f,m,y,b,v,x=!(3<arguments.length&&void 0!==arguments[3])||arguments[3],w=!(4<arguments.length&&void 0!==arguments[4])||arguments[4],k=!(5<arguments.length&&void 0!==arguments[5])||arguments[5],T=this,S=i._private.rscratch;k&&!i.visible()||S.badLine||null==S.allpts||isNaN(S.allpts[0])||(e&&t.translate(-(n=e).x1,-n.y1),d=k?i.pstyle("opacity").value:1,k=k?i.pstyle("line-opacity").value:1,r=i.pstyle("curve-style").value,s=i.pstyle("line-style").value,a=i.pstyle("width").pfValue,o=i.pstyle("line-cap").value,l=i.pstyle("line-outline-width").value,c=i.pstyle("line-outline-color").value,u=h=d*k,d=mt(function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:h;"straight-triangle"===r?(T.eleStrokeStyle(t,i,e),T.drawEdgeTrianglePath(i,t,S.allpts)):(t.lineWidth=a,t.lineCap=o,T.eleStrokeStyle(t,i,e),T.drawEdgePath(i,t,S.allpts,s),t.lineCap="butt")},"drawLine"),k=mt(function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:h;t.lineWidth=a+l,t.lineCap=o,0<l?(T.colorStrokeStyle(t,c[0],c[1],c[2],e),"straight-triangle"===r?T.drawEdgeTrianglePath(i,t,S.allpts):(T.drawEdgePath(i,t,S.allpts,s),t.lineCap="butt")):t.lineCap="butt"},"drawLineOutline"),p=mt(function(){w&&T.drawEdgeOverlay(t,i)},"drawOverlay"),g=mt(function(){w&&T.drawEdgeUnderlay(t,i)},"drawUnderlay"),f=mt(function(){T.drawArrowheads(t,i,0<arguments.length&&void 0!==arguments[0]?arguments[0]:u)},"drawArrows"),m=mt(function(){T.drawElementText(t,i,null,x)},"drawText"),t.lineJoin="round","yes"===i.pstyle("ghost").value?(y=i.pstyle("ghost-offset-x").pfValue,b=i.pstyle("ghost-offset-y").pfValue,v=i.pstyle("ghost-opacity").value,v=h*v,t.translate(y,b),d(v),f(v),t.translate(-y,-b)):k(),g(),d(),f(),p(),m(),e&&t.translate(n.x1,n.y1))}},YEe=mt(function(o){if(["overlay","underlay"].includes(o))return function(e,t){var i,n,r,s,a;t.visible()&&0!==(i=t.pstyle("".concat(o,"-opacity")).value)&&(n=this.usePaths(),r=t._private.rscratch,s=2*t.pstyle("".concat(o,"-padding")).pfValue,a=t.pstyle("".concat(o,"-color")).value,e.lineWidth=s,"self"!==r.edgeType||n?e.lineCap="round":e.lineCap="butt",this.colorStrokeStyle(e,a[0],a[1],a[2],i),this.drawEdgePath(t,e,r.allpts,"solid"))};throw new Error("Invalid state")},"drawEdgeOverlayUnderlay"),GEe.drawEdgeOverlay=YEe("overlay"),GEe.drawEdgeUnderlay=YEe("underlay"),GEe.drawEdgePath=function(e,t,i,n){var r,s=e._private.rscratch,a=t,o=!1,l=this.usePaths(),c=e.pstyle("line-dash-pattern").pfValue,h=e.pstyle("line-dash-offset").pfValue;if(l&&(e=i.join("$"),s.pathCacheKey&&s.pathCacheKey===e?(r=t=s.pathCache,o=!0):(r=t=new Path2D,s.pathCacheKey=e,s.pathCache=r)),a.setLineDash)switch(n){case"dotted":a.setLineDash([1,1]);break;case"dashed":a.setLineDash(c),a.lineDashOffset=h;break;case"solid":a.setLineDash([])}if(!o&&!s.badLine)switch(t.beginPath&&t.beginPath(),t.moveTo(i[0],i[1]),s.edgeType){case"bezier":case"self":case"compound":case"multibezier":for(var u=2;u+3<i.length;u+=4)t.quadraticCurveTo(i[u],i[u+1],i[u+2],i[u+3]);break;case"straight":case"haystack":for(var d=2;d+1<i.length;d+=2)t.lineTo(i[d],i[d+1]);break;case"segments":if(s.isRound){var p,g=s6e(s.roundCorners);try{for(g.s();!(p=g.n()).done;)W8e(t,p.value)}catch(e){g.e(e)}finally{g.f()}t.lineTo(i[i.length-2],i[i.length-1])}else for(var f=2;f+1<i.length;f+=2)t.lineTo(i[f],i[f+1])}t=a,l?t.stroke(r):t.stroke(),t.setLineDash&&t.setLineDash([])},GEe.drawEdgeTrianglePath=function(e,t,i){t.fillStyle=t.strokeStyle;for(var n=e.pstyle("width").pfValue,r=0;r+1<i.length;r+=2){var s=[i[r+2]-i[r],i[r+3]-i[r+1]],a=Math.sqrt(s[0]*s[0]+s[1]*s[1]),s=[s[1]/a,-s[0]/a],a=[s[0]*n/2,s[1]*n/2];t.beginPath(),t.moveTo(i[r]-a[0],i[r+1]-a[1]),t.lineTo(i[r]+a[0],i[r+1]+a[1]),t.lineTo(i[r+2],i[r+3]),t.closePath(),t.fill()}},GEe.drawArrowheads=function(e,t,i){var n=t._private.rscratch,r="haystack"===n.edgeType;r||this.drawArrowhead(e,t,"source",n.arrowStartX,n.arrowStartY,n.srcArrowAngle,i),this.drawArrowhead(e,t,"mid-target",n.midX,n.midY,n.midtgtArrowAngle,i),this.drawArrowhead(e,t,"mid-source",n.midX,n.midY,n.midsrcArrowAngle,i),r||this.drawArrowhead(e,t,"target",n.arrowEndX,n.arrowEndY,n.tgtArrowAngle,i)},GEe.drawArrowhead=function(e,t,i,n,r,s,a){var o,l,c,h,u,d,p;isNaN(n)||null==n||isNaN(r)||null==r||isNaN(s)||null==s||"none"!==(o=t.pstyle(i+"-arrow-shape").value)&&(l="hollow"===t.pstyle(i+"-arrow-fill").value?"both":"filled",c=t.pstyle(i+"-arrow-fill").value,h=t.pstyle("width").pfValue,u="match-line"===(p=t.pstyle(i+"-arrow-width")).value?h:p.pfValue,"%"===p.units&&(u*=h),p=t.pstyle("opacity").value,d=e.globalCompositeOperation,1===(a=void 0===a?p:a)&&"hollow"!==c||(e.globalCompositeOperation="destination-out",this.colorFillStyle(e,255,255,255,1),this.colorStrokeStyle(e,255,255,255,1),this.drawArrowShape(t,e,l,h,o,u,n,r,s),e.globalCompositeOperation=d),p=t.pstyle(i+"-arrow-color").value,this.colorFillStyle(e,p[0],p[1],p[2],a),this.colorStrokeStyle(e,p[0],p[1],p[2],a),this.drawArrowShape(t,e,c,h,o,u,n,r,s))},GEe.drawArrowShape=function(e,t,i,n,r,s,a,o,l){var c,h,u,d=this.usePaths()&&"triangle-cross"!==r,p=!1,g=t,f={x:a,y:o},e=e.pstyle("arrow-scale").value,e=this.getArrowWidth(n,e),m=this.arrowShapes[r];d&&(null!=(u=(h=this.arrowPathCache=this.arrowPathCache||[])[r=bTe(r)])?(c=t=u,p=!0):(c=t=new Path2D,h[r]=c)),p||(t.beginPath&&t.beginPath(),d?m.draw(t,1,0,{x:0,y:0},1):m.draw(t,e,l,f,n),t.closePath&&t.closePath()),t=g,d&&(t.translate(a,o),t.rotate(l),t.scale(e,e)),"filled"!==i&&"both"!==i||(d?t.fill(c):t.fill()),"hollow"!==i&&"both"!==i||(t.lineWidth=s/(d?e:1),t.lineJoin="miter",d?t.stroke(c):t.stroke()),d&&(t.scale(1/e,1/e),t.rotate(-l),t.translate(-a,-o))},XEe={safeDrawImage:function(e,t,i,n,r,s,a,o,l,c){if(!(r<=0||s<=0||l<=0||c<=0))try{e.drawImage(t,i,n,r,s,a,o,l,c)}catch(e){RTe(e)}},drawInscribedImage:function(e,t,i,n,r){var s,a,o,l=i.position(),c=l.x,l=l.y,h=i.cy().style(),h=h.getIndexedStyle.bind(h),u=h(i,"background-fit","value",n),d=h(i,"background-repeat","value",n),p=i.width(),g=i.height(),f=2*i.padding(),p=p+("inner"===h(i,"background-width-relative-to","value",n)?0:f),g=g+("inner"===h(i,"background-height-relative-to","value",n)?0:f),f=i._private.rscratch,m="node"===h(i,"background-clip","value",n),r=h(i,"background-image-opacity","value",n)*r,y=h(i,"background-image-smoothing","value",n),b=i.pstyle("corner-radius").value,v=("auto"!==b&&(b=i.pstyle("corner-radius").pfValue),t.width||t.cachedW),x=t.height||t.cachedH,w=(null!=v&&null!=x||(document.body.appendChild(t),v=t.cachedW=t.width||t.offsetWidth,x=t.cachedH=t.height||t.offsetHeight,document.body.removeChild(t)),v),k=x;"auto"!==h(i,"background-width","value",n)&&(w="%"===h(i,"background-width","units",n)?h(i,"background-width","pfValue",n)*p:h(i,"background-width","pfValue",n)),"auto"!==h(i,"background-height","value",n)&&(k="%"===h(i,"background-height","units",n)?h(i,"background-height","pfValue",n)*g:h(i,"background-height","pfValue",n)),0!==w&&0!==k&&("contain"===u?(w*=s=Math.min(p/w,g/k),k*=s):"cover"===u&&(w*=s=Math.max(p/w,g/k),k*=s),u=c-p/2,s=h(i,"background-position-x","units",n),a=h(i,"background-position-x","pfValue",n),u+="%"===s?(p-w)*a:a,s=h(i,"background-offset-x","units",n),a=h(i,"background-offset-x","pfValue",n),u+="%"===s?(p-w)*a:a,s=l-g/2,a=h(i,"background-position-y","units",n),o=h(i,"background-position-y","pfValue",n),s+="%"===a?(g-k)*o:o,a=h(i,"background-offset-y","units",n),o=h(i,"background-offset-y","pfValue",n),s+="%"===a?(g-k)*o:o,f.pathCache&&(u-=c,s-=l,l=c=0),h=e.globalAlpha,e.globalAlpha=r,n=this.getImgSmoothing(e),a=!1,"no"===y&&n?(this.setImgSmoothing(e,!1),a=!0):"yes"!==y||n||(this.setImgSmoothing(e,!0),a=!0),"no-repeat"===d?(m&&(e.save(),f.pathCache?e.clip(f.pathCache):(this.nodeShapes[this.getNodeShape(i)].draw(e,c,l,p,g,b,f),e.clip())),this.safeDrawImage(e,t,0,0,v,x,u,s,w,k),m&&e.restore()):(o=e.createPattern(t,d),e.fillStyle=o,this.nodeShapes[this.getNodeShape(i)].draw(e,c,l,p,g,b,f),e.translate(u,s),e.fill(),e.translate(-u,-s)),e.globalAlpha=h,a)&&this.setImgSmoothing(e,n)}},KEe={eleTextBiggerThanMin:function(e,t){var i,n;return t||(n=e.cy().zoom(),i=this.getPixelRatio(),n=Math.ceil(uSe(n*i)),t=Math.pow(2,n)),!(e.pstyle("font-size").pfValue*t<e.pstyle("min-zoomed-font-size").pfValue)},drawElementText:function(e,t,i,n,r){var s=!(5<arguments.length&&void 0!==arguments[5])||arguments[5];if(null==n){if(s&&!this.eleTextBiggerThanMin(t))return}else if(!1===n)return;if(t.isNode()){n=t.pstyle("label");if(!n||!n.value)return;n=this.getLabelJustification(t);e.textAlign=n}else{var n=t.element()._private.rscratch.badLine,a=t.pstyle("label"),o=t.pstyle("source-label"),l=t.pstyle("target-label");if(n||(!a||!a.value)&&(!o||!o.value)&&(!l||!l.value))return;e.textAlign="center"}e.textBaseline="bottom";var c,n=!i;i&&e.translate(-(c=i).x1,-c.y1),null==r?(this.drawText(e,t,null,n,s),t.isEdge()&&(this.drawText(e,t,"source",n,s),this.drawText(e,t,"target",n,s))):this.drawText(e,t,r,n,s),i&&e.translate(c.x1,c.y1)},getFontCache:function(e){var t;this.fontCaches=this.fontCaches||[];for(var i=0;i<this.fontCaches.length;i++)if((t=this.fontCaches[i]).context===e)return t;return this.fontCaches.push(t={context:e}),t},setupTextStyle:function(e,t){var i=!(2<arguments.length&&void 0!==arguments[2])||arguments[2],n=t.pstyle("font-style").strValue,r=t.pstyle("font-size").pfValue+"px",s=t.pstyle("font-family").strValue,a=t.pstyle("font-weight").strValue,i=i?t.effectiveOpacity()*t.pstyle("text-opacity").value:1,o=t.pstyle("text-outline-opacity").value*i,l=t.pstyle("color").value,t=t.pstyle("text-outline-color").value;e.font=n+" "+a+" "+r+" "+s,e.lineJoin="round",this.colorFillStyle(e,l[0],l[1],l[2],i),this.colorStrokeStyle(e,t[0],t[1],t[2],o)}},mt(e7e,"roundRect"),KEe.getTextAngle=function(e,t){var i=e._private.rscratch,n=e.pstyle((t?t+"-":"")+"text-rotation");return"autorotate"===n.strValue?(i=HTe(i,"labelAngle",t),e.isEdge()?i:0):"none"===n.strValue?0:n.pfValue},KEe.drawText=function(e,t,i){var n=!(3<arguments.length&&void 0!==arguments[3])||arguments[3],r=!(4<arguments.length&&void 0!==arguments[4])||arguments[4],s=t._private.rscratch,a=r?t.effectiveOpacity():1;if(!r||0!==a&&0!==t.pstyle("text-opacity").value){var o,l,c=HTe(s,"labelX",i="main"===i?null:i),h=HTe(s,"labelY",i),u=this.getLabelText(t,i);if(null!=u&&""!==u&&!isNaN(c)&&!isNaN(h)){this.setupTextStyle(e,t,r);var r=i?i+"-":"",d=HTe(s,"labelWidth",i),p=HTe(s,"labelHeight",i),g=t.pstyle(r+"text-margin-x").pfValue,r=t.pstyle(r+"text-margin-y").pfValue,f=t.isEdge(),m=t.pstyle("text-halign").value,y=t.pstyle("text-valign").value;switch(f&&(y=m="center"),c+=g,h+=r,0!==(f=n?this.getTextAngle(t,i):0)&&(o=c,l=h,e.translate(o,l),e.rotate(f),h=c=0),y){case"top":break;case"center":h+=p/2;break;case"bottom":h+=p}var g=t.pstyle("text-background-opacity").value,r=t.pstyle("text-border-opacity").value,b=t.pstyle("text-border-width").pfValue,n=t.pstyle("text-background-padding").pfValue,v=0===t.pstyle("text-background-shape").strValue.indexOf("round");if(0<g||0<b&&0<r){var x=c-n;switch(m){case"left":x-=d;break;case"center":x-=d/2}var w=h-p-n,k=d+2*n,n=p+2*n;if(0<g&&(S=e.fillStyle,T=t.pstyle("text-background-color").value,e.fillStyle="rgba("+T[0]+","+T[1]+","+T[2]+","+g*a+")",v?e7e(e,x,w,k,n,2):e.fillRect(x,w,k,n),e.fillStyle=S),0<b&&0<r){var T=e.strokeStyle,g=e.lineWidth,S=t.pstyle("text-border-color").value,_=t.pstyle("text-border-style").value;if(e.strokeStyle="rgba("+S[0]+","+S[1]+","+S[2]+","+r*a+")",e.lineWidth=b,e.setLineDash)switch(_){case"dotted":e.setLineDash([1,1]);break;case"dashed":e.setLineDash([4,2]);break;case"double":e.lineWidth=b/4,e.setLineDash([]);break;case"solid":e.setLineDash([])}v?e7e(e,x,w,k,n,2,"stroke"):e.strokeRect(x,w,k,n),"double"===_&&(S=b/2,v?e7e(e,x+S,w+S,k-2*S,n-2*S,2,"stroke"):e.strokeRect(x+S,w+S,k-2*S,n-2*S)),e.setLineDash&&e.setLineDash([]),e.lineWidth=g,e.strokeStyle=T}}var C=2*t.pstyle("text-outline-width").pfValue;if(0<C&&(e.lineWidth=C),"wrap"===t.pstyle("text-wrap").value){var A=HTe(s,"labelWrapCachedLines",i),E=HTe(s,"labelLineHeight",i),r=d/2,a=this.getLabelJustification(t);switch("auto"!==a&&("left"===m?"left"===a?c+=-d:"center"===a&&(c+=-r):"center"===m?"left"===a?c+=-r:"right"===a&&(c+=r):"right"===m&&("center"===a?c+=r:"right"===a&&(c+=d))),y){case"top":h-=(A.length-1)*E;break;case"center":case"bottom":h-=(A.length-1)*E}for(var $=0;$<A.length;$++)0<C&&e.strokeText(A[$],c,h),e.fillText(A[$],c,h),h+=E}else 0<C&&e.strokeText(u,c,h),e.fillText(u,c,h);0!==f&&(e.rotate(-f),e.translate(-o,-l))}}},ZEe={drawNode:function(T,S,e){var D=!(3<arguments.length&&void 0!==arguments[3])||arguments[3],t=!(4<arguments.length&&void 0!==arguments[4])||arguments[4],i=!(5<arguments.length&&void 0!==arguments[5])||arguments[5],_=this,a=S._private,o=a.rscratch,C=S.position();if(se(C.x)&&se(C.y)&&(!i||S.visible())){var n,l=i?S.effectiveOpacity():1,A=_.usePaths(),r=!1,i=S.padding(),E=S.width()+2*i,$=S.height()+2*i;e&&T.translate(-(n=e).x1,-n.y1);for(var s=S.pstyle("background-image").value,c=new Array(s.length),h=new Array(s.length),O=0,u=0;u<s.length;u++){var P,d=s[u];(c[u]=null!=d&&"none"!==d)&&(P=S.cy().style().getIndexedStyle(S,"background-image-crossorigin","value",u),O++,h[u]=_.getCachedImage(d,P,function(){a.backgroundTimestamp=Date.now(),S.emitAndNotify("background")}))}var p,g,f,m,y,b=S.pstyle("background-blacken").value,L=S.pstyle("border-width").pfValue,B=S.pstyle("background-opacity").value*l,v=S.pstyle("border-color").value,F=S.pstyle("border-style").value,j=S.pstyle("border-join").value,z=S.pstyle("border-cap").value,R=S.pstyle("border-position").value,H=S.pstyle("border-dash-pattern").pfValue,U=S.pstyle("border-dash-offset").pfValue,q=S.pstyle("border-opacity").value*l,M=S.pstyle("outline-width").pfValue,x=S.pstyle("outline-color").value,W=S.pstyle("outline-style").value,V=S.pstyle("outline-opacity").value*l,I=S.pstyle("outline-offset").value,N=S.pstyle("corner-radius").value,i=("auto"!==N&&(N=S.pstyle("corner-radius").pfValue),mt(function(){_.eleFillStyle(T,S,0<arguments.length&&void 0!==arguments[0]?arguments[0]:B)},"setupShapeColor")),G=mt(function(){_.colorStrokeStyle(T,v[0],v[1],v[2],0<arguments.length&&void 0!==arguments[0]?arguments[0]:q)},"setupBorderColor"),Y=mt(function(){_.colorStrokeStyle(T,x[0],x[1],x[2],0<arguments.length&&void 0!==arguments[0]?arguments[0]:V)},"setupOutlineColor"),X=mt(function(e,t,i,n){var r,s=_.nodePathCache=_.nodePathCache||[],n=vTe("polygon"===i?i+","+n.join(","):i,""+t,""+e,""+N),i=s[n],t=!1;return null!=i?(t=!0,o.pathCache=r=i):(r=new Path2D,s[n]=o.pathCache=r),{path:r,cacheHit:t}},"getPath"),w=S.pstyle("shape").strValue,k=S.pstyle("shape-polygon-points").pfValue,k=(A&&(T.translate(C.x,C.y),w=X(E,$,w,k),p=w.path,r=w.cacheHit),mt(function(){var e;r||(e=A?{x:0,y:0}:C,_.nodeShapes[_.getNodeShape(S)].draw(p||T,e.x,e.y,E,$,N,o)),A?T.fill(p):T.fill()},"drawShape")),w=mt(function(){for(var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:l,t=!(1<arguments.length&&void 0!==arguments[1])||arguments[1],i=a.backgrounding,n=0,r=0;r<h.length;r++){var s=S.cy().style().getIndexedStyle(S,"background-image-containment","value",r);t&&"over"===s||!t&&"inside"===s?n++:c[r]&&h[r].complete&&!h[r].error&&(n++,_.drawInscribedImage(T,h[r],S,r,e))}a.backgrounding=n!==O,i!==a.backgrounding&&S.updateStyle(!1)},"drawImages"),K=mt(function(){var e=0<arguments.length&&void 0!==arguments[0]&&arguments[0],t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:l;_.hasPie(S)&&(_.drawPie(T,S,t),e)&&(A||_.nodeShapes[_.getNodeShape(S)].draw(T,C.x,C.y,E,$,N,o))},"drawPie"),Z=mt(function(){var e=0<b?0:255;0!==b&&(_.colorFillStyle(T,e,e,e,(0<b?b:-b)*(0<arguments.length&&void 0!==arguments[0]?arguments[0]:l)),A?T.fill(p):T.fill())},"darken"),Q=mt(function(){if(0<L){if(T.lineWidth=L,T.lineCap=z,T.lineJoin=j,T.setLineDash)switch(F){case"dotted":T.setLineDash([1,1]);break;case"dashed":T.setLineDash(H),T.lineDashOffset=U;break;case"solid":case"double":T.setLineDash([])}var e;"center"!==R?(T.save(),T.lineWidth*=2,"inside"===R?A?T.clip(p):T.clip():((e=new Path2D).rect(-E/2-L,-$/2-L,E+2*L,$+2*L),e.addPath(p),T.clip(e,"evenodd")),A?T.stroke(p):T.stroke(),T.restore()):A?T.stroke(p):T.stroke(),"double"===F&&(T.lineWidth=L/3,e=T.globalCompositeOperation,T.globalCompositeOperation="destination-out",A?T.stroke(p):T.stroke(),T.globalCompositeOperation=e),T.setLineDash&&T.setLineDash([])}},"drawBorder"),J=mt(function(){if(0<M){if(T.lineWidth=M,T.lineCap="butt",T.setLineDash)switch(W){case"dotted":T.setLineDash([1,1]);break;case"dashed":T.setLineDash([4,2]);break;case"solid":case"double":T.setLineDash([])}var e,t=C,i=(A&&(t={x:0,y:0}),_.getNodeShape(S)),n="inside"===R?0:L,r=("outside"===R&&(n*=2),(E+n+(M+I))/E),s=($+n+(M+I))/$,a=E*r,o=$*s,l=_.nodeShapes[i].points;if(A&&(e=X(a,o,i,l).path),"ellipse"===i)_.drawEllipsePath(e||T,t.x,t.y,a,o);else if(["round-diamond","round-heptagon","round-hexagon","round-octagon","round-pentagon","round-polygon","round-triangle","round-tag"].includes(i)){var c=0,h=0,u=0;"round-diamond"===i?c=1.4*(n+I+M):"round-heptagon"===i?(c=1.075*(n+I+M),u=-(n/2+I+M)/35):"round-hexagon"===i?c=1.12*(n+I+M):"round-pentagon"===i?(c=1.13*(n+I+M),u=-(n/2+I+M)/15):"round-tag"===i?(c=1.12*(n+I+M),h=.07*(n/2+M+I)):"round-triangle"===i&&(c=(n+I+M)*(Math.PI/2),u=-(n+I/2+M)/Math.PI),0!==c&&(a=E*(r=(E+c)/E),["round-hexagon","round-tag"].includes(i)||(o=$*(s=($+c)/$)));for(var d=a/2,p=o/2,g=(N="auto"===N?n_e(a,o):N)+(n+M+I)/2,f=new Array(l.length/2),m=new Array(l.length/2),y=0;y<l.length/2;y++)f[y]={x:t.x+h+d*l[2*y],y:t.y+u+p*l[2*y+1]};for(var b,v,x=f.length,w=f[x-1],k=0;k<x;k++)b=f[k%x],v=f[(k+1)%x],m[k]=V8e(w,b,v,g),w=b,0;_.drawRoundPolygonPath(e||T,t.x+h,t.y+u,E*r,$*s,l,m)}else["roundrectangle","round-rectangle"].includes(i)?(N="auto"===N?i_e(a,o):N,_.drawRoundRectanglePath(e||T,t.x,t.y,a,o,N+(n+M+I)/2)):["cutrectangle","cut-rectangle"].includes(i)?(N="auto"===N?r_e():N,_.drawCutRectanglePath(e||T,t.x,t.y,a,o,null,N+(n+M+I)/4)):["bottomroundrectangle","bottom-round-rectangle"].includes(i)?(N="auto"===N?i_e(a,o):N,_.drawBottomRoundRectanglePath(e||T,t.x,t.y,a,o,N+(n+M+I)/2)):"barrel"===i?_.drawBarrelPath(e||T,t.x,t.y,a,o):(l=i.startsWith("polygon")||["rhomboid","right-rhomboid","round-tag","tag","vee"].includes(i)?USe(qSe(l,(n+M+I)/E)):USe(qSe(l,-((n+M+I)/E))),_.drawPolygonPath(e||T,t.x,t.y,E,$,l));A?T.stroke(e):T.stroke(),"double"===W&&(T.lineWidth=n/3,c=T.globalCompositeOperation,T.globalCompositeOperation="destination-out",A?T.stroke(e):T.stroke(),T.globalCompositeOperation=c),T.setLineDash&&T.setLineDash([])}},"drawOutline"),ee=mt(function(){t&&_.drawNodeOverlay(T,S,C,E,$)},"drawOverlay"),te=mt(function(){t&&_.drawNodeUnderlay(T,S,C,E,$)},"drawUnderlay"),ie=mt(function(){_.drawElementText(T,S,null,D)},"drawText");"yes"===S.pstyle("ghost").value&&(g=S.pstyle("ghost-offset-x").pfValue,f=S.pstyle("ghost-offset-y").pfValue,y=(m=S.pstyle("ghost-opacity").value)*l,T.translate(g,f),Y(),J(),i(m*B),k(),w(y,!0),G(m*q),Q(),K(0!==b||0!==L),w(y,!1),Z(y),T.translate(-g,-f)),A&&T.translate(-C.x,-C.y),te(),A&&T.translate(C.x,C.y),Y(),J(),i(),k(),w(l,!0),G(),Q(),K(0!==b||0!==L),w(l,!1),Z(),A&&T.translate(-C.x,-C.y),ie(),ee(),e&&T.translate(n.x1,n.y1)}}},QEe=mt(function(u){if(["overlay","underlay"].includes(u))return function(e,t,i,n,r){var s,a,o,l,c,h;t.visible()&&(s=t.pstyle("".concat(u,"-padding")).pfValue,a=t.pstyle("".concat(u,"-opacity")).value,o=t.pstyle("".concat(u,"-color")).value,l=t.pstyle("".concat(u,"-shape")).value,c=t.pstyle("".concat(u,"-corner-radius")).value,0<a)&&(i=i||t.position(),null!=n&&null!=r||(h=t.padding(),n=t.width()+2*h,r=t.height()+2*h),this.colorFillStyle(e,o[0],o[1],o[2],a),this.nodeShapes[l].draw(e,i.x,i.y,n+2*s,r+2*s,c),e.fill())};throw new Error("Invalid state")},"drawNodeOverlayUnderlay"),ZEe.drawNodeOverlay=QEe("overlay"),ZEe.drawNodeUnderlay=QEe("underlay"),ZEe.hasPie=function(e){return(e=e[0])._private.hasPie},ZEe.drawPie=function(e,t,i,n){t=t[0],n=n||t.position();var r=t.cy().style(),s=t.pstyle("pie-size"),a=n.x,o=n.y,n=t.width(),l=t.height(),c=Math.min(n,l)/2,h=0;this.usePaths()&&(o=a=0),"%"===s.units?c*=s.pfValue:void 0!==s.pfValue&&(c=s.pfValue/2);for(var u=1;u<=r.pieBackgroundN;u++){var d=t.pstyle("pie-"+u+"-background-size").value,p=t.pstyle("pie-"+u+"-background-color").value,g=t.pstyle("pie-"+u+"-background-opacity").value*i,f=d/100,m=(1<f+h&&(f=1-h),1.5*Math.PI+2*Math.PI*h),y=m+2*Math.PI*f;0===d||1<=h||1<h+f||(e.beginPath(),e.moveTo(a,o),e.arc(a,o,c,m,y),e.closePath(),this.colorFillStyle(e,p[0],p[1],p[2],g),e.fill(),h+=f)}},JEe={getPixelRatio:function(){var e,t=this.data.contexts[0];return null!=this.forcedPixelRatio?this.forcedPixelRatio:(e=this.cy.window(),t=t.backingStorePixelRatio||t.webkitBackingStorePixelRatio||t.mozBackingStorePixelRatio||t.msBackingStorePixelRatio||t.oBackingStorePixelRatio||t.backingStorePixelRatio||1,(e.devicePixelRatio||1)/t)},paintCache:function(e){for(var t,i=this.paintCaches=this.paintCaches||[],n=!0,r=0;r<i.length;r++)if((t=i[r]).context===e){n=!1;break}return n&&i.push(t={context:e}),t},createGradientStyleFor:function(e,t,i,n,r){var s,a=this.usePaths(),o=i.pstyle(t+"-gradient-stop-colors").value,l=i.pstyle(t+"-gradient-stop-positions").pfValue;if("radial-gradient"===n)s=i.isEdge()?(t=i.sourceEndpoint(),n=i.targetEndpoint(),c=i.midpoint(),t=pSe(t,c),n=pSe(n,c),e.createRadialGradient(c.x,c.y,0,c.x,c.y,Math.max(t,n))):(c=a?{x:0,y:0}:i.position(),t=i.paddedWidth(),n=i.paddedHeight(),e.createRadialGradient(c.x,c.y,0,c.x,c.y,Math.max(t,n)));else if(i.isEdge()){var c=i.sourceEndpoint(),t=i.targetEndpoint();s=e.createLinearGradient(c.x,c.y,t.x,t.y)}else{var h=a?{x:0,y:0}:i.position(),u=i.paddedWidth()/2,d=i.paddedHeight()/2;switch(i.pstyle("background-gradient-direction").value){case"to-bottom":s=e.createLinearGradient(h.x,h.y-d,h.x,h.y+d);break;case"to-top":s=e.createLinearGradient(h.x,h.y+d,h.x,h.y-d);break;case"to-left":s=e.createLinearGradient(h.x+u,h.y,h.x-u,h.y);break;case"to-right":s=e.createLinearGradient(h.x-u,h.y,h.x+u,h.y);break;case"to-bottom-right":case"to-right-bottom":s=e.createLinearGradient(h.x-u,h.y-d,h.x+u,h.y+d);break;case"to-top-right":case"to-right-top":s=e.createLinearGradient(h.x-u,h.y+d,h.x+u,h.y-d);break;case"to-bottom-left":case"to-left-bottom":s=e.createLinearGradient(h.x+u,h.y-d,h.x-u,h.y+d);break;case"to-top-left":case"to-left-top":s=e.createLinearGradient(h.x+u,h.y+d,h.x-u,h.y-d)}}if(!s)return null;for(var p=l.length===o.length,g=o.length,f=0;f<g;f++)s.addColorStop(p?l[f]:f/(g-1),"rgba("+o[f][0]+","+o[f][1]+","+o[f][2]+","+r+")");return s},gradientFillStyle:function(e,t,i,n){t=this.createGradientStyleFor(e,"background",t,i,n);if(!t)return null;e.fillStyle=t},colorFillStyle:function(e,t,i,n,r){e.fillStyle="rgba("+t+","+i+","+n+","+r+")"},eleFillStyle:function(e,t,i){var n=t.pstyle("background-fill").value;"linear-gradient"===n||"radial-gradient"===n?this.gradientFillStyle(e,t,n,i):(n=t.pstyle("background-color").value,this.colorFillStyle(e,n[0],n[1],n[2],i))},gradientStrokeStyle:function(e,t,i,n){t=this.createGradientStyleFor(e,"line",t,i,n);if(!t)return null;e.strokeStyle=t},colorStrokeStyle:function(e,t,i,n,r){e.strokeStyle="rgba("+t+","+i+","+n+","+r+")"},eleStrokeStyle:function(e,t,i){var n=t.pstyle("line-fill").value;"linear-gradient"===n||"radial-gradient"===n?this.gradientStrokeStyle(e,t,n,i):(n=t.pstyle("line-color").value,this.colorStrokeStyle(e,n[0],n[1],n[2],i))},matchCanvasSize:function(e){var t,i=this,n=i.data,r=i.findContainerClientCoords(),s=r[2],a=r[3],r=i.getPixelRatio(),o=i.motionBlurPxRatio,l=s*(r=e!==i.data.bufferCanvases[i.MOTIONBLUR_BUFFER_NODE]&&e!==i.data.bufferCanvases[i.MOTIONBLUR_BUFFER_DRAG]?r:o),c=a*r;if(l!==i.canvasWidth||c!==i.canvasHeight){i.fontCaches=null;e=n.canvasContainer;e.style.width=s+"px",e.style.height=a+"px";for(var h=0;h<i.CANVAS_LAYERS;h++)(t=n.canvases[h]).width=l,t.height=c,t.style.width=s+"px",t.style.height=a+"px";for(h=0;h<i.BUFFER_COUNT;h++)(t=n.bufferCanvases[h]).width=l,t.height=c,t.style.width=s+"px",t.style.height=a+"px";r<=(i.textureMult=1)&&(t=n.bufferCanvases[i.TEXTURE_BUFFER],i.textureMult=2,t.width=l*i.textureMult,t.height=c*i.textureMult),i.canvasWidth=l,i.canvasHeight=c,i.pixelRatio=r}},renderTo:function(e,t,i,n){this.render({forcedContext:e,forcedZoom:t,forcedPan:i,drawAllLayers:!0,forcedPxRatio:n})},clearCanvas:function(){var t=this,e=t.data;function i(e){e.clearRect(0,0,t.canvasWidth,t.canvasHeight)}mt(i,"clear"),i(e.contexts[t.NODE]),i(e.contexts[t.DRAG])},render:function(e){var a=this,t=(e=e||PTe(),a.cy),o=e.forcedContext,l=e.drawAllLayers,i=e.drawOnlyNodeLayer,c=e.forcedZoom,h=e.forcedPan,n=void 0===e.forcedPxRatio?this.getPixelRatio():e.forcedPxRatio,u=a.data,r=u.canvasNeedsRedraw,s=a.textureOnViewport&&!o&&(a.pinching||a.hoverData.dragging||a.swipePanning||a.data.wheelZooming),d=(void 0!==e.motionBlur?e:a).motionBlur,p=a.motionBlurPxRatio,g=t.hasCompoundNodes(),f=a.hoverData.draggingEles,m=!(!a.hoverData.selecting&&!a.touchData.selecting),y=d=d&&!o&&a.motionBlurEnabled&&!m,m=(o||(a.prevPxRatio!==n&&(a.invalidateContainerClientCoordsCache(),a.matchCanvasSize(a.container),a.redrawHint("eles",!0),a.redrawHint("drag",!0)),a.prevPxRatio=n),!o&&a.motionBlurTimeout&&clearTimeout(a.motionBlurTimeout),d&&(null==a.mbFrames&&(a.mbFrames=0),a.mbFrames++,a.mbFrames<3&&(y=!1),a.mbFrames>a.minMbLowQualFrames)&&(a.motionBlurPxRatio=a.mbPxRBlurry),a.clearingMotionBlur&&(a.motionBlurPxRatio=1),a.textureDrawLastFrame&&!s&&(r[a.NODE]=!0,r[a.SELECT_BOX]=!0),t.style()),b=t.zoom(),v=void 0!==c?c:b,x=t.pan(),w={x:x.x,y:x.y},k={zoom:b,pan:{x:x.x,y:x.y}},T=a.prevViewport,T=(void 0===T||k.zoom!==T.zoom||k.pan.x!==T.pan.x||k.pan.y!==T.pan.y||f&&!g||(a.motionBlurPxRatio=1),v*=n,(w=h?h:w).x*=n,w.y*=n,a.getCachedZSortedEles());function S(e,t,i,n,r){var s=e.globalCompositeOperation;e.globalCompositeOperation="destination-out",a.colorFillStyle(e,255,255,255,a.motionBlurTransparency),e.fillRect(t,i,n,r),e.globalCompositeOperation=s}function _(e,t){var i,n,r,s=a.clearingMotionBlur||e!==u.bufferContexts[a.MOTIONBLUR_BUFFER_NODE]&&e!==u.bufferContexts[a.MOTIONBLUR_BUFFER_DRAG]?(i=w,n=v,r=a.canvasWidth,a.canvasHeight):(i={x:x.x*p,y:x.y*p},n=b*p,r=a.canvasWidth*p,a.canvasHeight*p);e.setTransform(1,0,0,1,0,0),"motionBlur"===t?S(e,0,0,r,s):o||void 0!==t&&!t||e.clearRect(0,0,r,s),l||(e.translate(i.x,i.y),e.scale(n,n)),h&&e.translate(h.x,h.y),c&&e.scale(c,c)}mt(S,"mbclear"),mt(_,"setContextTransform"),s||(a.textureDrawLastFrame=!1),s?(a.textureDrawLastFrame=!0,a.textureCache||(a.textureCache={},a.textureCache.bb=t.mutableElements().boundingBox(),a.textureCache.texture=a.data.bufferCanvases[a.TEXTURE_BUFFER],(f=a.data.bufferContexts[a.TEXTURE_BUFFER]).setTransform(1,0,0,1,0,0),f.clearRect(0,0,a.canvasWidth*a.textureMult,a.canvasHeight*a.textureMult),a.render({forcedContext:f,drawOnlyNodeLayer:!0,forcedPxRatio:n*a.textureMult}),(k=a.textureCache.viewport={zoom:t.zoom(),pan:t.pan(),width:a.canvasWidth,height:a.canvasHeight}).mpan={x:(0-k.pan.x)/k.zoom,y:(0-k.pan.y)/k.zoom}),r[a.DRAG]=!1,r[a.NODE]=!1,C=u.contexts[a.NODE],g=a.textureCache.texture,k=a.textureCache.viewport,C.setTransform(1,0,0,1,0,0),d?S(C,0,0,k.width,k.height):C.clearRect(0,0,k.width,k.height),f=m.core("outside-texture-bg-color").value,m=m.core("outside-texture-bg-opacity").value,a.colorFillStyle(C,f[0],f[1],f[2],m),C.fillRect(0,0,k.width,k.height),b=t.zoom(),_(C,!1),C.clearRect(k.mpan.x,k.mpan.y,k.width/k.zoom/n,k.height/k.zoom/n),C.drawImage(g,k.mpan.x,k.mpan.y,k.width/k.zoom/n,k.height/k.zoom/n)):a.textureOnViewport&&!o&&(a.textureCache=null);var C,A,f=t.extent(),m=a.pinching||a.hoverData.dragging||a.swipePanning||a.data.wheelZooming||a.hoverData.draggingEles||a.cy.animated(),g=a.hideEdgesOnViewport&&m,m=[];m[a.NODE]=!r[a.NODE]&&d&&!a.clearedForMotionBlur[a.NODE]||a.clearingMotionBlur,m[a.NODE]&&(a.clearedForMotionBlur[a.NODE]=!0),m[a.DRAG]=!r[a.DRAG]&&d&&!a.clearedForMotionBlur[a.DRAG]||a.clearingMotionBlur,m[a.DRAG]&&(a.clearedForMotionBlur[a.DRAG]=!0),(r[a.NODE]||l||i||m[a.NODE])&&(A=d&&!m[a.NODE]&&1!==p,_(C=o||(A?a.data.bufferContexts[a.MOTIONBLUR_BUFFER_NODE]:u.contexts[a.NODE]),d&&!A?"motionBlur":void 0),g?a.drawCachedNodes(C,T.nondrag,n,f):a.drawLayeredElements(C,T.nondrag,n,f),a.debug&&a.drawDebugPoints(C,T.nondrag),l||d||(r[a.NODE]=!1)),!i&&(r[a.DRAG]||l||m[a.DRAG])&&(A=d&&!m[a.DRAG]&&1!==p,_(C=o||(A?a.data.bufferContexts[a.MOTIONBLUR_BUFFER_DRAG]:u.contexts[a.DRAG]),d&&!A?"motionBlur":void 0),g?a.drawCachedNodes(C,T.drag,n,f):a.drawCachedElements(C,T.drag,n,f),a.debug&&a.drawDebugPoints(C,T.drag),l||d||(r[a.DRAG]=!1)),this.drawSelectionRectangle(e,_),d&&1!==p&&(i=u.contexts[a.NODE],A=a.data.bufferCanvases[a.MOTIONBLUR_BUFFER_NODE],g=u.contexts[a.DRAG],n=a.data.bufferCanvases[a.MOTIONBLUR_BUFFER_DRAG],f=mt(function(e,t,i){e.setTransform(1,0,0,1,0,0),i||!y?e.clearRect(0,0,a.canvasWidth,a.canvasHeight):S(e,0,0,a.canvasWidth,a.canvasHeight);i=p;e.drawImage(t,0,0,a.canvasWidth*i,a.canvasHeight*i,0,0,a.canvasWidth,a.canvasHeight)},"drawMotionBlur"),(r[a.NODE]||m[a.NODE])&&(f(i,A,m[a.NODE]),r[a.NODE]=!1),r[a.DRAG]||m[a.DRAG])&&(f(g,n,m[a.DRAG]),r[a.DRAG]=!1),a.prevViewport=k,a.clearingMotionBlur&&(a.clearingMotionBlur=!1,a.motionBlurCleared=!0,a.motionBlur=!0),d&&(a.motionBlurTimeout=setTimeout(function(){a.motionBlurTimeout=null,a.clearedForMotionBlur[a.NODE]=!1,a.clearedForMotionBlur[a.DRAG]=!1,a.motionBlur=!1,a.clearingMotionBlur=!s,a.mbFrames=0,r[a.NODE]=!0,r[a.DRAG]=!0,a.redraw()},100)),o||t.emit("render")},drawSelectionRectangle:function(e,t){var i,n=this,r=n.cy,s=n.data,r=r.style(),a=e.drawOnlyNodeLayer,o=e.drawAllLayers,l=s.canvasNeedsRedraw,e=e.forcedContext;(n.showFps||!a&&l[n.SELECT_BOX]&&!o)&&(t(a=e||s.contexts[n.SELECT_BOX]),1==n.selection[4]&&(n.hoverData.selecting||n.touchData.selecting)&&(i=n.cy.zoom(),t=r.core("selection-box-border-width").value/i,a.lineWidth=t,a.fillStyle="rgba("+r.core("selection-box-color").value[0]+","+r.core("selection-box-color").value[1]+","+r.core("selection-box-color").value[2]+","+r.core("selection-box-opacity").value+")",a.fillRect(n.selection[0],n.selection[1],n.selection[2]-n.selection[0],n.selection[3]-n.selection[1]),0<t)&&(a.strokeStyle="rgba("+r.core("selection-box-border-color").value[0]+","+r.core("selection-box-border-color").value[1]+","+r.core("selection-box-border-color").value[2]+","+r.core("selection-box-opacity").value+")",a.strokeRect(n.selection[0],n.selection[1],n.selection[2]-n.selection[0],n.selection[3]-n.selection[1])),s.bgActivePosistion&&!n.hoverData.selecting&&(i=n.cy.zoom(),e=s.bgActivePosistion,a.fillStyle="rgba("+r.core("active-bg-color").value[0]+","+r.core("active-bg-color").value[1]+","+r.core("active-bg-color").value[2]+","+r.core("active-bg-opacity").value+")",a.beginPath(),a.arc(e.x,e.y,r.core("active-bg-size").pfValue/i,0,2*Math.PI),a.fill()),t=n.lastRedrawTime,n.showFps&&t&&(e="1 frame = "+(t=Math.round(t))+" ms = "+(s=Math.round(1e3/t))+" fps",a.setTransform(1,0,0,1,0,0),a.fillStyle="rgba(255, 0, 0, 0.75)",a.strokeStyle="rgba(255, 0, 0, 0.75)",a.font="30px Arial",e$e||(r=a.measureText(e),e$e=r.actualBoundingBoxAscent),a.fillText(e,0,e$e),a.strokeRect(0,e$e+10,250,20),a.fillRect(0,e$e+10,250*Math.min(s/60,1),20)),o||(l[n.SELECT_BOX]=!1))}},mt(t7e,"compileShader"),mt(i7e,"createProgram"),mt(n7e,"createTextureCanvas"),mt(r7e,"getEffectivePanZoom"),mt(s7e,"modelToRenderedPosition"),mt(a7e,"toWebGLColor"),mt(o7e,"indexToVec4"),mt(l7e,"vec4ToIndex"),mt(c7e,"createTexture"),mt(h7e,"getTypeInfo"),mt(u7e,"createTypedArray"),mt(d7e,"createTypedArrayView"),mt(p7e,"createBufferStaticDraw"),mt(g7e,"createBufferDynamicDraw"),mt(f7e,"createPickingFrameBuffer"),t$e=typeof Float32Array<"u"?Float32Array:Array,Math.hypot||(Math.hypot=function(){for(var e=0,t=arguments.length;t--;)e+=arguments[t]*arguments[t];return Math.sqrt(e)}),mt(m7e,"create"),mt(y7e,"identity"),mt(b7e,"multiply"),mt(v7e,"translate"),mt(x7e,"rotate"),mt(w7e,"scale"),mt(k7e,"projection"),i$e={SCREEN:{name:"screen",screen:!0},PICKING:{name:"picking",picking:!0}},n$e=BTe({getKey:null,drawElement:null,getBoundingBox:null,getRotation:null,getRotationPoint:null,getRotationOffset:null,isVisible:null,getPadding:null}),mt(M,"Atlas"),Gwe(M,[{key:"getKeys",value:mt(function(){return new Set(this.keyToLocation.keys())},"getKeys")},{key:"getScale",value:mt(function(e){var t=e.w,e=e.h,i=this.texHeight,n=this.maxTexWidth,i=i/e,r=t*i,s=e*i;return n<r&&(r=t*(i=n/t),s=e*i),{scale:i,texW:r,texH:s}},"getScale")},{key:"draw",value:mt(function(e,n,r){var l=this,c=this.atlasSize,t=this.rows,h=this.texHeight,i=this.getScale(n),s=i.scale,u=i.texW,d=i.texH,p=[null,null],g=mt(function(e,t){var i;r&&t&&(t=t.context,i=e.x,e=e.row,i=i,e=h*e,t.save(),t.translate(i,e),t.scale(s,s),r(t,n),t.restore())},"drawAt"),i=mt(function(){g(l.freePointer,l.canvas),p[0]={x:l.freePointer.x,y:l.freePointer.row*h,w:u,h:d},p[1]={x:l.freePointer.x+u,y:l.freePointer.row*h,w:0,h:d},l.freePointer.x+=u,l.freePointer.x==c&&(l.freePointer.x=0,l.freePointer.row++)},"drawNormal"),a=mt(function(){var e=l.scratch,t=l.canvas,i=(e.clear(),g({x:0,row:0},e),c-l.freePointer.x),n=u-i,r=h,s=l.freePointer.x,a=l.freePointer.row*h,o=i;t.context.drawImage(e,0,0,o,r,s,a,o,r),p[0]={x:s,y:a,w:o,h:d};s=(l.freePointer.row+1)*h,a=n;t&&t.context.drawImage(e,i,0,a,r,0,s,a,r),p[1]={x:0,y:s,w:a,h:d},l.freePointer.x=n,l.freePointer.row++},"drawWrapped"),o=mt(function(){l.freePointer.x=0,l.freePointer.row++},"moveToStartOfNextRow");if(this.freePointer.x+u<=c)i();else{if(this.freePointer.row>=t-1)return!1;(this.freePointer.x!==c&&this.enableWrapping?a:(o(),i))()}return this.keyToLocation.set(e,p),this.needsBuffer=!0,p},"draw")},{key:"getOffsets",value:mt(function(e){return this.keyToLocation.get(e)},"getOffsets")},{key:"isEmpty",value:mt(function(){return 0===this.freePointer.x&&0===this.freePointer.row},"isEmpty")},{key:"canFit",value:mt(function(e){var t=this.atlasSize,i=this.rows,e=this.getScale(e).texW;return!(this.freePointer.x+e>t)||this.freePointer.row<i-1},"canFit")},{key:"bufferIfNeeded",value:mt(function(e){this.texture||(this.texture=c7e(e,this.debugID)),this.needsBuffer&&(this.texture.buffer(this.canvas),this.needsBuffer=!1)},"bufferIfNeeded")},{key:"dispose",value:mt(function(){this.texture&&(this.texture.deleteTexture(),this.texture=null,this.needsBuffer=!0)},"dispose")}]),r$e=M,mt(R,"AtlasCollection"),Gwe(R,[{key:"getKeys",value:mt(function(){return new Set(this.styleKeyToAtlas.keys())},"getKeys")},{key:"getIdsFor",value:mt(function(e){var t=this.keyToIds.get(e);return t||(t=new Set,this.keyToIds.set(e,t)),t},"getIdsFor")},{key:"_createAtlas",value:mt(function(){var e=this.r,t=this.opts;return new r$e(e,t)},"_createAtlas")},{key:"_getScratchCanvas",value:mt(function(){var e,t,i,n;return this.scratch||(e=this.r,i=(t=this.opts).webglTexSize,n=Math.floor(i/t.webglTexRows),this.scratch=t.createTextureCanvas(e,i,n,"scratch")),this.scratch},"_getScratchCanvas")},{key:"draw",value:mt(function(e,t,i,n){this.styleKeyNeedsRedraw.has(t)&&(this.styleKeyNeedsRedraw.delete(t),this.deleteKey(e,t),(r=this.styleKeyToAtlas.get(t))&&(r.forceGC=!0),this.styleKeyToAtlas.delete(t));var r=this.styleKeyToAtlas.get(t);return r||((r=this.atlases[this.atlases.length-1])&&r.canFit(i)||(r=this._createAtlas(),this.atlases.push(r)),r.draw(t,i,n),this.styleKeyToAtlas.set(t,r),this.getIdsFor(t).add(e),this.idToKey.set(e,t)),r},"draw")},{key:"getAtlas",value:mt(function(e){return this.styleKeyToAtlas.get(e)},"getAtlas")},{key:"hasAtlas",value:mt(function(e){return this.styleKeyToAtlas.has(e)},"hasAtlas")},{key:"deleteKey",value:mt(function(e,t){this.idToKey.delete(e),this.getIdsFor(t).delete(e)},"deleteKey")},{key:"checkKeyIsInvalid",value:mt(function(e,t){var i;return!!this.idToKey.has(e)&&(i=this.idToKey.get(e))!=t&&(this.deleteKey(e,i),!0)},"checkKeyIsInvalid")},{key:"_getKeysToCollect",value:mt(function(){var e,t=new Set,i=s6e(this.styleKeyToAtlas.keys());try{for(i.s();!(e=i.n()).done;){var n=e.value;0==this.getIdsFor(n).size&&t.add(n)}}catch(e){i.e(e)}finally{i.f()}return t},"_getKeysToCollect")},{key:"gc",value:mt(function(){var c=this,e=this.atlases.some(function(e){return e.forceGC}),h=this._getKeysToCollect();if(0!==h.size||e){var u,d=[],p=new Map,g=null,t=s6e(this.atlases);try{var i=mt(function(){var t=u.value,e=t.getKeys(),i=T7e(h,e);if(0===i.size&&!t.forceGC)return d.push(t),e.forEach(function(e){return p.set(e,t)}),"continue";g||(g=c._createAtlas(),d.push(g));var n,r=s6e(e);try{for(r.s();!(n=r.n()).done;){var s,a,o,l=n.value;i.has(l)||(a=(s=Xwe(t.getOffsets(l),2))[0],o=s[1],g.canFit({w:a.w+o.w,h:a.h})||(g=c._createAtlas(),d.push(g)),c._copyTextureToNewAtlas(l,t,g),p.set(l,g))}}catch(e){r.e(e)}finally{r.f()}},"_loop");for(t.s();!(u=t.n()).done;)i()}catch(e){t.e(e)}finally{t.f()}this.atlases=d,this.styleKeyToAtlas=p}else console.log("nothing to garbage collect")},"gc")},{key:"_copyTextureToNewAtlas",value:mt(function(e,t,i){var n,r,s,a=Xwe(t.getOffsets(e),2),o=a[0],a=a[1];0===a.w?i.draw(e,o,function(e){e.drawImage(t.canvas,o.x,o.y,o.w,o.h,0,0,o.w,o.h)}):((n=this._getScratchCanvas()).clear(),n.context.drawImage(t.canvas,o.x,o.y,o.w,o.h,0,0,o.w,o.h),n.context.drawImage(t.canvas,a.x,a.y,a.w,a.h,o.w,0,a.w,a.h),r=o.w+a.w,s=o.h,i.draw(e,{w:r,h:s},function(e){e.drawImage(n,0,0,r,s,0,0,r,s)}))},"_copyTextureToNewAtlas")},{key:"getCounts",value:mt(function(){return{keyCount:this.styleKeyToAtlas.size,atlasCount:new Set(this.styleKeyToAtlas.values()).size}},"getCounts")}]),s$e=R,mt(T7e,"intersection"),mt(N,"AtlasManager"),Gwe(N,[{key:"_cacheScratchCanvas",value:mt(function(e){var r=-1,s=-1,a=null,o=e.createTextureCanvas;e.createTextureCanvas=function(e,t,i,n){return n?a=a&&t==r&&i==s?a:o(e,r=t,s=i):o(e,t,i)}},"_cacheScratchCanvas")},{key:"addRenderType",value:mt(function(e,t){var i=new s$e(this.r,this.globalOptions);this.renderTypes.set(e,Ske({type:e,atlasCollection:i},t))},"addRenderType")},{key:"getRenderTypes",value:mt(function(){return Kwe(this.renderTypes.values())},"getRenderTypes")},{key:"getRenderTypeOpts",value:mt(function(e){return this.renderTypes.get(e)},"getRenderTypeOpts")},{key:"invalidate",value:mt(function(e){var t,i=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},n=i.forceRedraw,r=void 0!==n&&n,n=i.filterEle,s=void 0===n?function(){return!0}:n,n=i.filterType,a=void 0===n?function(){return!0}:n,o=!1,l=s6e(e);try{for(l.s();!(t=l.n()).done;){var c=t.value;if(s(c)){var h,u=c.id(),d=s6e(this.getRenderTypes());try{for(d.s();!(h=d.n()).done;){var p,g=h.value;a(g.type)&&(p=g.getKey(c),r?(g.atlasCollection.deleteKey(u,p),g.atlasCollection.styleKeyNeedsRedraw.add(p),o=!0):o|=g.atlasCollection.checkKeyIsInvalid(u,p))}}catch(e){d.e(e)}finally{d.f()}}}}catch(e){l.e(e)}finally{l.f()}return o},"invalidate")},{key:"gc",value:mt(function(){var e,t=s6e(this.getRenderTypes());try{for(t.s();!(e=t.n()).done;)e.value.atlasCollection.gc()}catch(e){t.e(e)}finally{t.f()}},"gc")},{key:"isRenderable",value:mt(function(e,t){t=this.getRenderTypeOpts(t);return t&&t.isVisible(e)},"isRenderable")},{key:"startBatch",value:mt(function(){this.batchAtlases=[]},"startBatch")},{key:"getAtlasCount",value:mt(function(){return this.batchAtlases.length},"getAtlasCount")},{key:"getAtlases",value:mt(function(){return this.batchAtlases},"getAtlases")},{key:"getOrCreateAtlas",value:mt(function(t,i,e){var n=this.renderTypes.get(e),e=n.getKey(t),r=t.id();return n.atlasCollection.draw(r,e,i,function(e){n.drawElement(e,t,i,!0,!0)})},"getOrCreateAtlas")},{key:"getAtlasIndexForBatch",value:mt(function(e){var t=this.batchAtlases.indexOf(e);if(t<0){if(this.batchAtlases.length===this.maxAtlasesPerBatch)return;this.batchAtlases.push(e),t=this.batchAtlases.length-1}return t},"getAtlasIndexForBatch")},{key:"getIndexArray",value:mt(function(){return Array.from({length:this.maxAtlases},function(e,t){return t})},"getIndexArray")},{key:"getAtlasInfo",value:mt(function(e,t){var i=this.renderTypes.get(t),n=i.getBoundingBox(e),r=this.getOrCreateAtlas(e,n,t),s=this.getAtlasIndexForBatch(r);if(void 0!==s)return i=i.getKey(e),{atlasID:s,tex:s=(e=Xwe(r.getOffsets(i),2))[0],tex1:s,tex2:e[1],bb:n,type:t,styleKey:i}},"getAtlasInfo")},{key:"canAddToCurrentBatch",value:mt(function(e,t){return this.batchAtlases.length!==this.maxAtlasesPerBatch||(e=(t=this.renderTypes.get(t)).getKey(e),(t=t.atlasCollection.getAtlas(e))&&this.batchAtlases.includes(t))},"canAddToCurrentBatch")},{key:"setTransformMatrix",value:mt(function(e,t,i){var n,r=!(3<arguments.length&&void 0!==arguments[3])||arguments[3],s=t.bb,a=t.type,o=t.tex1,t=t.tex2,a=this.getRenderTypeOpts(a),l=a.getPadding?a.getPadding(i):0,o=o.w/(o.w+t.w),t=this.getAdjustedBB(s,l,r,o=r?o:1-o),s=(y7e(e),a.getRotation?a.getRotation(i):0);o=0!==s?(v7e(e,e,[(l=a.getRotationPoint(i)).x,l.y]),x7e(e,e,s),n=(r=a.getRotationOffset(i)).x+t.xOffset,r.y):(n=t.x1,t.y1),v7e(e,e,[n,o]),w7e(e,e,[t.w,t.h])},"setTransformMatrix")},{key:"getTransformMatrix",value:mt(function(e,t){var i=!(2<arguments.length&&void 0!==arguments[2])||arguments[2],n=m7e();return this.setTransformMatrix(n,e,t,i),n},"getTransformMatrix")},{key:"getAdjustedBB",value:mt(function(e,t,i,n){var r=e.x1,s=e.y1,a=e.w,e=e.h,t=(t&&(r-=t,s-=t,a+=2*t,e+=2*t),0),o=a*n;return i&&n<1?a=o:!i&&n<1&&(r+=t=a-o,a=o),{x1:r,y1:s,w:a,h:e,xOffset:t}},"getAdjustedBB")},{key:"getDebugInfo",value:mt(function(){var e,t=[],i=s6e(this.renderTypes);try{for(i.s();!(e=i.n()).done;){var n=Xwe(e.value,2),r=n[0],s=n[1].atlasCollection.getCounts(),a=s.keyCount,o=s.atlasCount;t.push({type:r,keyCount:a,atlasCount:o})}}catch(e){i.e(e)}finally{i.f()}return t},"getDebugInfo")}]),a$e=N,mt(I,"ElementDrawingWebGL"),Gwe(I,[{key:"addTextureRenderType",value:mt(function(e,t){this.atlasManager.addRenderType(e,t)},"addTextureRenderType")},{key:"invalidate",value:mt(function(e){var t=(1<arguments.length&&void 0!==arguments[1]?arguments[1]:{}).type,i=this.atlasManager;return t?i.invalidate(e,{filterType:mt(function(e){return e===t},"filterType"),forceRedraw:!0}):i.invalidate(e)},"invalidate")},{key:"gc",value:mt(function(){this.atlasManager.gc()},"gc")},{key:"createShaderProgram",value:mt(function(e){var t=this.gl,i=`#version 300 es
|
||
precision highp float;
|
||
|
||
uniform mat3 uPanZoomMatrix;
|
||
uniform int uAtlasSize;
|
||
|
||
// instanced
|
||
in vec2 aPosition;
|
||
|
||
// what are we rendering?
|
||
in int aVertType;
|
||
|
||
// for picking
|
||
in vec4 aIndex;
|
||
|
||
// For textures
|
||
in int aAtlasId; // which shader unit/atlas to use
|
||
in vec4 aTex1; // x/y/w/h of texture in atlas
|
||
in vec4 aTex2;
|
||
|
||
// for any transforms that are needed
|
||
in vec4 aScaleRotate1; // vectors use fewer attributes than matrices
|
||
in vec2 aTranslate1;
|
||
in vec4 aScaleRotate2;
|
||
in vec2 aTranslate2;
|
||
|
||
// for edges
|
||
in vec4 aPointAPointB;
|
||
in vec4 aPointCPointD;
|
||
in float aLineWidth;
|
||
in vec4 aEdgeColor;
|
||
|
||
out vec2 vTexCoord;
|
||
out vec4 vEdgeColor;
|
||
flat out int vAtlasId;
|
||
flat out vec4 vIndex;
|
||
flat out int vVertType;
|
||
|
||
void main(void) {
|
||
int vid = gl_VertexID;
|
||
vec2 position = aPosition;
|
||
|
||
if(aVertType == `.concat(0,`) {
|
||
float texX;
|
||
float texY;
|
||
float texW;
|
||
float texH;
|
||
mat3 texMatrix;
|
||
|
||
int vid = gl_VertexID;
|
||
if(vid <= 5) {
|
||
texX = aTex1.x;
|
||
texY = aTex1.y;
|
||
texW = aTex1.z;
|
||
texH = aTex1.w;
|
||
texMatrix = mat3(
|
||
vec3(aScaleRotate1.xy, 0.0),
|
||
vec3(aScaleRotate2.zw, 0.0),
|
||
vec3(aTranslate1, 1.0)
|
||
);
|
||
} else {
|
||
texX = aTex2.x;
|
||
texY = aTex2.y;
|
||
texW = aTex2.z;
|
||
texH = aTex2.w;
|
||
texMatrix = mat3(
|
||
vec3(aScaleRotate2.xy, 0.0),
|
||
vec3(aScaleRotate2.zw, 0.0),
|
||
vec3(aTranslate2, 1.0)
|
||
);
|
||
}
|
||
|
||
if(vid == 1 || vid == 2 || vid == 4 || vid == 7 || vid == 8 || vid == 10) {
|
||
texX += texW;
|
||
}
|
||
if(vid == 2 || vid == 4 || vid == 5 || vid == 8 || vid == 10 || vid == 11) {
|
||
texY += texH;
|
||
}
|
||
|
||
float d = float(uAtlasSize);
|
||
vTexCoord = vec2(texX / d, texY / d); // tex coords must be between 0 and 1
|
||
|
||
gl_Position = vec4(uPanZoomMatrix * texMatrix * vec3(position, 1.0), 1.0);
|
||
}
|
||
else if(aVertType == `).concat(1,` && vid < 6) {
|
||
vec2 source = aPointAPointB.xy;
|
||
vec2 target = aPointAPointB.zw;
|
||
|
||
// adjust the geometry so that the line is centered on the edge
|
||
position.y = position.y - 0.5;
|
||
|
||
vec2 xBasis = target - source;
|
||
vec2 yBasis = normalize(vec2(-xBasis.y, xBasis.x));
|
||
vec2 point = source + xBasis * position.x + yBasis * aLineWidth * position.y;
|
||
|
||
gl_Position = vec4(uPanZoomMatrix * vec3(point, 1.0), 1.0);
|
||
vEdgeColor = aEdgeColor;
|
||
}
|
||
else if(aVertType == `).concat(2,` && vid < 6) {
|
||
vec2 pointA = aPointAPointB.xy;
|
||
vec2 pointB = aPointAPointB.zw;
|
||
vec2 pointC = aPointCPointD.xy;
|
||
vec2 pointD = aPointCPointD.zw;
|
||
|
||
// adjust the geometry so that the line is centered on the edge
|
||
position.y = position.y - 0.5;
|
||
|
||
vec2 p0 = pointA;
|
||
vec2 p1 = pointB;
|
||
vec2 p2 = pointC;
|
||
vec2 pos = position;
|
||
if(position.x == 1.0) {
|
||
p0 = pointD;
|
||
p1 = pointC;
|
||
p2 = pointB;
|
||
pos = vec2(0.0, -position.y);
|
||
}
|
||
|
||
vec2 p01 = p1 - p0;
|
||
vec2 p12 = p2 - p1;
|
||
vec2 p21 = p1 - p2;
|
||
|
||
// Find the normal vector.
|
||
vec2 tangent = normalize(normalize(p12) + normalize(p01));
|
||
vec2 normal = vec2(-tangent.y, tangent.x);
|
||
|
||
// Find the vector perpendicular to p0 -> p1.
|
||
vec2 p01Norm = normalize(vec2(-p01.y, p01.x));
|
||
|
||
// Determine the bend direction.
|
||
float sigma = sign(dot(p01 + p21, normal));
|
||
float width = aLineWidth;
|
||
|
||
if(sign(pos.y) == -sigma) {
|
||
// This is an intersecting vertex. Adjust the position so that there's no overlap.
|
||
vec2 point = 0.5 * width * normal * -sigma / dot(normal, p01Norm);
|
||
gl_Position = vec4(uPanZoomMatrix * vec3(p1 + point, 1.0), 1.0);
|
||
} else {
|
||
// This is a non-intersecting vertex. Treat it like a mitre join.
|
||
vec2 point = 0.5 * width * normal * sigma * dot(normal, p01Norm);
|
||
gl_Position = vec4(uPanZoomMatrix * vec3(p1 + point, 1.0), 1.0);
|
||
}
|
||
|
||
vEdgeColor = aEdgeColor;
|
||
}
|
||
else if(aVertType == `).concat(3,` && vid < 3) {
|
||
// massage the first triangle into an edge arrow
|
||
if(vid == 0)
|
||
position = vec2(-0.15, -0.3);
|
||
if(vid == 1)
|
||
position = vec2( 0.0, 0.0);
|
||
if(vid == 2)
|
||
position = vec2( 0.15, -0.3);
|
||
|
||
mat3 transform = mat3(
|
||
vec3(aScaleRotate1.xy, 0.0),
|
||
vec3(aScaleRotate1.zw, 0.0),
|
||
vec3(aTranslate1, 1.0)
|
||
);
|
||
gl_Position = vec4(uPanZoomMatrix * transform * vec3(position, 1.0), 1.0);
|
||
vEdgeColor = aEdgeColor;
|
||
} else {
|
||
gl_Position = vec4(2.0, 0.0, 0.0, 1.0); // discard vertex by putting it outside webgl clip space
|
||
}
|
||
|
||
vAtlasId = aAtlasId;
|
||
vIndex = aIndex;
|
||
vVertType = aVertType;
|
||
}
|
||
`),n=this.atlasManager.getIndexArray(),r=i7e(t,i,`#version 300 es
|
||
precision highp float;
|
||
|
||
// define texture unit for each node in the batch
|
||
`.concat(n.map(function(e){return"uniform sampler2D uTexture".concat(e,";")}).join(`
|
||
`),`
|
||
|
||
uniform vec4 uBGColor;
|
||
|
||
in vec2 vTexCoord;
|
||
in vec4 vEdgeColor;
|
||
flat in int vAtlasId;
|
||
flat in vec4 vIndex;
|
||
flat in int vVertType;
|
||
|
||
out vec4 outColor;
|
||
|
||
void main(void) {
|
||
if(vVertType == `).concat(0,`) {
|
||
`).concat(n.map(function(e){return"if(vAtlasId == ".concat(e,") outColor = texture(uTexture").concat(e,", vTexCoord);")}).join(`
|
||
else `),`
|
||
} else if(vVertType == `).concat(3,`) {
|
||
// blend arrow color with background (using premultiplied alpha)
|
||
outColor.rgb = vEdgeColor.rgb + (uBGColor.rgb * (1.0 - vEdgeColor.a));
|
||
outColor.a = 1.0; // make opaque, masks out line under arrow
|
||
} else {
|
||
outColor = vEdgeColor;
|
||
}
|
||
|
||
`).concat(e.picking?`if(outColor.a == 0.0) discard;
|
||
else outColor = vIndex;`:"",`
|
||
}
|
||
`));r.aPosition=t.getAttribLocation(r,"aPosition"),r.aIndex=t.getAttribLocation(r,"aIndex"),r.aVertType=t.getAttribLocation(r,"aVertType"),r.aAtlasId=t.getAttribLocation(r,"aAtlasId"),r.aTex1=t.getAttribLocation(r,"aTex1"),r.aTex2=t.getAttribLocation(r,"aTex2"),r.aScaleRotate1=t.getAttribLocation(r,"aScaleRotate1"),r.aTranslate1=t.getAttribLocation(r,"aTranslate1"),r.aScaleRotate2=t.getAttribLocation(r,"aScaleRotate2"),r.aTranslate2=t.getAttribLocation(r,"aTranslate2"),r.aPointAPointB=t.getAttribLocation(r,"aPointAPointB"),r.aPointCPointD=t.getAttribLocation(r,"aPointCPointD"),r.aLineWidth=t.getAttribLocation(r,"aLineWidth"),r.aEdgeColor=t.getAttribLocation(r,"aEdgeColor"),r.uPanZoomMatrix=t.getUniformLocation(r,"uPanZoomMatrix"),r.uAtlasSize=t.getUniformLocation(r,"uAtlasSize"),r.uBGColor=t.getUniformLocation(r,"uBGColor"),r.uTextures=[];for(var s=0;s<this.atlasManager.maxAtlases;s++)r.uTextures.push(t.getUniformLocation(r,"uTexture".concat(s)));return r},"createShaderProgram")},{key:"createVAO",value:mt(function(){var e=[0,0,1,0,1,1,0,0,1,1,0,1],e=[].concat(e,e),t=(this.vertexCount=e.length/2,this.maxInstances),i=this.gl,n=this.program,r=i.createVertexArray();return i.bindVertexArray(r),p7e(i,"vec2",n.aPosition,e),this.indexBuffer=g7e(i,t,"vec4",n.aIndex),this.vertTypeBuffer=g7e(i,t,"int",n.aVertType),this.atlasIdBuffer=g7e(i,t,"int",n.aAtlasId),this.tex1Buffer=g7e(i,t,"vec4",n.aTex1),this.tex2Buffer=g7e(i,t,"vec4",n.aTex2),this.scaleRotate1Buffer=g7e(i,t,"vec4",n.aScaleRotate1),this.translate1Buffer=g7e(i,t,"vec2",n.aTranslate1),this.scaleRotate2Buffer=g7e(i,t,"vec4",n.aScaleRotate2),this.translate2Buffer=g7e(i,t,"vec2",n.aTranslate2),this.pointAPointBBuffer=g7e(i,t,"vec4",n.aPointAPointB),this.pointCPointDBuffer=g7e(i,t,"vec4",n.aPointCPointD),this.lineWidthBuffer=g7e(i,t,"float",n.aLineWidth),this.edgeColorBuffer=g7e(i,t,"vec4",n.aEdgeColor),i.bindVertexArray(null),r},"createVAO")},{key:"buffers",get:mt(function(){var t=this;return this._buffers||(this._buffers=Object.keys(this).filter(function(e){return e.endsWith("Buffer")}).map(function(e){return t[e]})),this._buffers},"get")},{key:"startFrame",value:mt(function(e,t){var i=2<arguments.length&&void 0!==arguments[2]?arguments[2]:i$e.SCREEN;this.panZoomMatrix=e,this.debugInfo=t,this.renderTarget=i,this.startBatch()},"startFrame")},{key:"startBatch",value:mt(function(){this.instanceCount=0,this.atlasManager.startBatch()},"startBatch")},{key:"endFrame",value:mt(function(){this.endBatch()},"endFrame")},{key:"getTempMatrix",value:mt(function(){return this.tempMatrix=this.tempMatrix||m7e()},"getTempMatrix")},{key:"drawTexture",value:mt(function(e,t,i){var n=this.atlasManager;if(n.isRenderable(e,i)){n.canAddToCurrentBatch(e,i)||this.endBatch();var r=this.instanceCount;this.vertTypeBuffer.getView(r)[0]=0;o7e(t,this.indexBuffer.getView(r));var s=n.getAtlasInfo(e,i,s),t=s.atlasID,i=s.tex1,a=s.tex2,t=(this.atlasIdBuffer.getView(r)[0]=t,this.tex1Buffer.getView(r)),t=(t[0]=i.x,t[1]=i.y,t[2]=i.w,t[3]=i.h,this.tex2Buffer.getView(r));t[0]=a.x,t[1]=a.y,t[2]=a.w,t[3]=a.h;for(var o=this.getTempMatrix(),l=0,c=[1,2];l<c.length;l++){var h=c[l],u=(n.setTransformMatrix(o,s,e,1===h),this["scaleRotate".concat(h,"Buffer")].getView(r)),u=(u[0]=o[0],u[1]=o[1],u[2]=o[3],u[3]=o[4],this["translate".concat(h,"Buffer")].getView(r));u[0]=o[6],u[1]=o[7]}this.instanceCount++,this.instanceCount>=this.maxInstances&&this.endBatch()}},"drawTexture")},{key:"drawEdgeArrow",value:mt(function(e,t,i){var n,r,s,a,o=e._private.rscratch,o="source"===i?(r=o.arrowStartX,s=o.arrowStartY,o.srcArrowAngle):(r=o.arrowEndX,s=o.arrowEndY,o.tgtArrowAngle);isNaN(r)||null==r||isNaN(s)||null==s||isNaN(o)||null==o||"none"!==e.pstyle(i+"-arrow-shape").value&&(i=e.pstyle(i+"-arrow-color").value,n=e.pstyle("opacity").value*e.pstyle("line-opacity").value,a=e.pstyle("width").pfValue,e=e.pstyle("arrow-scale").value,a=this.r.getArrowWidth(a,e),y7e(e=this.getTempMatrix()),v7e(e,e,[r,s]),w7e(e,e,[a,a]),x7e(e,e,o),r=this.instanceCount,this.vertTypeBuffer.getView(r)[0]=3,o7e(t,this.indexBuffer.getView(r)),a7e(i,n,this.edgeColorBuffer.getView(r)),(s=this.scaleRotate1Buffer.getView(r))[0]=e[0],s[1]=e[1],s[2]=e[3],s[3]=e[4],(a=this.translate1Buffer.getView(r))[0]=e[6],a[1]=e[7],this.instanceCount++,this.instanceCount>=this.maxInstances)&&this.endBatch()},"drawEdgeArrow")},{key:"drawEdgeLine",value:mt(function(e,t){var i=e.pstyle("opacity").value,n=e.pstyle("line-opacity").value,r=e.pstyle("width").pfValue,s=e.pstyle("line-color").value,a=i*n,o=this.getEdgePoints(e);if(o.length/2+this.instanceCount>this.maxInstances&&this.endBatch(),4==o.length){i=this.instanceCount;this.vertTypeBuffer.getView(i)[0]=1,o7e(t,this.indexBuffer.getView(i)),a7e(s,a,this.edgeColorBuffer.getView(i));this.lineWidthBuffer.getView(i)[0]=r;n=this.pointAPointBBuffer.getView(i);n[0]=o[0],n[1]=o[1],n[2]=o[2],n[3]=o[3],this.instanceCount++,this.instanceCount>=this.maxInstances&&this.endBatch()}else for(var l=0;l<o.length-2;l+=2){var c=this.instanceCount;this.vertTypeBuffer.getView(c)[0]=2,o7e(t,this.indexBuffer.getView(c)),a7e(s,a,this.edgeColorBuffer.getView(c));this.lineWidthBuffer.getView(c)[0]=r;var h=o[l-2],u=o[l-1],d=o[l],p=o[l+1],g=o[l+2],f=o[l+3],m=o[l+4],y=o[l+5],b=(0==l&&(h=2*d-g+.001,u=2*p-f+.001),l==o.length-4&&(m=2*g-d+.001,y=2*f-p+.001),this.pointAPointBBuffer.getView(c)),h=(b[0]=h,b[1]=u,b[2]=d,b[3]=p,this.pointCPointDBuffer.getView(c));h[0]=g,h[1]=f,h[2]=m,h[3]=y,this.instanceCount++,this.instanceCount>=this.maxInstances&&this.endBatch()}},"drawEdgeLine")},{key:"getEdgePoints",value:mt(function(e){var t=e._private.rscratch.allpts;return 4==t.length?t:(e=this.getNumSegments(e),this.getCurveSegmentPoints(t,e))},"getEdgePoints")},{key:"getNumSegments",value:mt(function(e){return Math.min(Math.max(15,5),this.maxInstances)},"getNumSegments")},{key:"getCurveSegmentPoints",value:mt(function(e,t){if(4==e.length)return e;for(var i=Array(2*(t+1)),n=0;n<=t;n++)0==n?(i[0]=e[0],i[1]=e[1]):n==t?(i[2*n]=e[e.length-2],i[2*n+1]=e[e.length-1]):this.setCurvePoint(e,n/t,i,2*n);return i},"getCurveSegmentPoints")},{key:"setCurvePoint",value:mt(function(e,t,i,n){if(!(e.length<=2)){for(var r=Array(e.length-2),s=0;s<r.length;s+=2){var a=(1-t)*e[s]+t*e[s+2],o=(1-t)*e[s+1]+t*e[s+3];r[s]=a,r[s+1]=o}return this.setCurvePoint(r,t,i,n)}i[n]=e[0],i[n+1]=e[1]},"setCurvePoint")},{key:"endBatch",value:mt(function(){var e=this.gl,t=this.vao,i=this.vertexCount,n=this.instanceCount;if(0!==n){var r,s=this.renderTarget.picking?this.pickingProgram:this.program,a=(e.useProgram(s),e.bindVertexArray(t),s6e(this.buffers));try{for(a.s();!(r=a.n()).done;)r.value.bufferSubData(n)}catch(e){a.e(e)}finally{a.f()}for(var o=this.atlasManager.getAtlases(),l=0;l<o.length;l++)o[l].bufferIfNeeded(e);for(var c=0;c<o.length;c++)e.activeTexture(e.TEXTURE0+c),e.bindTexture(e.TEXTURE_2D,o[c].texture),e.uniform1i(s.uTextures[c],c);e.uniformMatrix3fv(s.uPanZoomMatrix,!1,this.panZoomMatrix),e.uniform1i(s.uAtlasSize,this.atlasManager.atlasSize);t=a7e(this.bgColor,1);e.uniform4fv(s.uBGColor,t),e.drawArraysInstanced(e.TRIANGLES,0,i,n),e.bindVertexArray(null),e.bindTexture(e.TEXTURE_2D,null),this.debugInfo&&this.debugInfo.push({count:n,atlasCount:o.length}),this.startBatch()}},"endBatch")},{key:"getDebugInfo",value:mt(function(){return this.debugInfo},"getDebugInfo")},{key:"getAtlasDebugInfo",value:mt(function(){return this.atlasManager.getDebugInfo()},"getAtlasDebugInfo")}]),o$e=I,mt(S7e,"fillStyle"),mt(D,"OverlayUnderlayRenderer"),Gwe(D,[{key:"getStyleKey",value:mt(function(e,t){var i,e=this.getStyle(e,t),n=e.shape,r=e.opacity,e=e.color;return n?(i=t.width(),t=t.height(),e=S7e(e,r),bTe("".concat(n,"-").concat(i,"-").concat(t,"-").concat(e))):null},"getStyleKey")},{key:"isVisible",value:mt(function(e,t){return 0<t.pstyle("".concat(e,"-opacity")).value},"isVisible")},{key:"getStyle",value:mt(function(e,t){return{opacity:t.pstyle("".concat(e,"-opacity")).value,color:t.pstyle("".concat(e,"-color")).value,shape:t.pstyle("".concat(e,"-shape")).value}},"getStyle")},{key:"getPadding",value:mt(function(e,t){return t.pstyle("".concat(e,"-padding")).pfValue},"getPadding")},{key:"draw",value:mt(function(e,t,i,n){var r,s,a,o,l;this.isVisible(e,i)&&(r=this.r,a=(s=n.w)/2,o=(n=n.h)/2,i=(e=this.getStyle(e,i)).shape,l=e.color,e=e.opacity,t.save(),t.fillStyle=S7e(l,e),"round-rectangle"===i||"roundrectangle"===i?r.drawRoundRectanglePath(t,a,o,s,n,"auto"):"ellipse"===i&&r.drawEllipsePath(t,a,o,s,n),t.fill(),t.restore())},"draw")}]),l$e=D,mt(_7e,"getBGColor"),c$e={initWebgl:function(e,t){var n=this,i=n.data.contexts[n.WEBGL],r=e.cy.container(),r=(e.bgColor=_7e(r),e.webglTexSize=Math.min(e.webglTexSize,i.getParameter(i.MAX_TEXTURE_SIZE)),e.webglTexRows=Math.min(e.webglTexRows,54),e.webglBatchSize=Math.min(e.webglBatchSize,16384),e.webglTexPerBatch=Math.min(e.webglTexPerBatch,i.getParameter(i.MAX_TEXTURE_IMAGE_UNITS)),n.webglDebug=e.webglDebug,n.webglDebugShowAtlases=e.webglDebugShowAtlases,console.log("max texture units",i.getParameter(i.MAX_TEXTURE_IMAGE_UNITS)),console.log("max texture size",i.getParameter(i.MAX_TEXTURE_SIZE)),console.log("webgl options",e),n.pickingFrameBuffer=f7e(i),n.pickingFrameBuffer.needsDraw=!0,mt(function(e){return n.getTextAngle(e,null)},"getLabelRotation")),s=mt(function(e){e=e.pstyle("label");return e&&e.value},"isLabelVisible"),a=(n.eleDrawing=new o$e(n,i,e),new l$e(n)),o=(n.eleDrawing.addTextureRenderType("node-body",n$e({getKey:t.getStyleKey,getBoundingBox:t.getElementBox,drawElement:t.drawElement,isVisible:mt(function(e){return e.visible()},"isVisible")})),n.eleDrawing.addTextureRenderType("node-label",n$e({getKey:t.getLabelKey,getBoundingBox:t.getLabelBox,drawElement:t.drawLabel,getRotation:r,getRotationPoint:t.getLabelRotationPoint,getRotationOffset:t.getLabelRotationOffset,isVisible:s})),n.eleDrawing.addTextureRenderType("node-overlay",n$e({getBoundingBox:t.getElementBox,getKey:mt(function(e){return a.getStyleKey("overlay",e)},"getKey"),drawElement:mt(function(e,t,i){return a.draw("overlay",e,t,i)},"drawElement"),isVisible:mt(function(e){return a.isVisible("overlay",e)},"isVisible"),getPadding:mt(function(e){return a.getPadding("overlay",e)},"getPadding")})),n.eleDrawing.addTextureRenderType("node-underlay",n$e({getBoundingBox:t.getElementBox,getKey:mt(function(e){return a.getStyleKey("underlay",e)},"getKey"),drawElement:mt(function(e,t,i){return a.draw("underlay",e,t,i)},"drawElement"),isVisible:mt(function(e){return a.isVisible("underlay",e)},"isVisible"),getPadding:mt(function(e){return a.getPadding("underlay",e)},"getPadding")})),n.eleDrawing.addTextureRenderType("edge-label",n$e({getKey:t.getLabelKey,getBoundingBox:t.getLabelBox,drawElement:t.drawLabel,getRotation:r,getRotationPoint:t.getLabelRotationPoint,getRotationOffset:t.getLabelRotationOffset,isVisible:s})),sTe(function(){console.log("garbage collect flag set"),n.data.gc=!0},1e4));n.onUpdateEleCalcs(function(e,t){var i=!1;t&&0<t.length&&(i|=n.eleDrawing.invalidate(t)),i&&o()}),C7e(n)}},mt(C7e,"overrideCanvasRendererFunctions"),mt(A7e,"clearWebgl"),mt(E7e,"clearCanvas"),mt($7e,"createPanZoomMatrix"),mt(L7e,"setContextTransform"),mt(R7e,"drawSelectionRectangle"),mt(M7e,"drawAxes"),mt(I7e,"drawAtlases"),mt(N7e,"getPickingIndexes"),mt(D7e,"findNearestElementsWebgl"),mt(O7e,"renderWebgl"),h$e={drawPolygonPath:function(e,t,i,n,r,s){var a=n/2,o=r/2;e.beginPath&&e.beginPath(),e.moveTo(t+a*s[0],i+o*s[1]);for(var l=1;l<s.length/2;l++)e.lineTo(t+a*s[2*l],i+o*s[2*l+1]);e.closePath()},drawRoundPolygonPath:function(t,e,i,n,r,s,a){a.forEach(function(e){return W8e(t,e)}),t.closePath()},drawRoundRectanglePath:function(e,t,i,n,r,s){var a=n/2,o=r/2,n="auto"===s?i_e(n,r):Math.min(s,o,a);e.beginPath&&e.beginPath(),e.moveTo(t,i-o),e.arcTo(t+a,i-o,t+a,i,n),e.arcTo(t+a,i+o,t,i+o,n),e.arcTo(t-a,i+o,t-a,i,n),e.arcTo(t-a,i-o,t,i-o,n),e.lineTo(t,i-o),e.closePath()},drawBottomRoundRectanglePath:function(e,t,i,n,r,s){var a=n/2,o=r/2,n="auto"===s?i_e(n,r):s;e.beginPath&&e.beginPath(),e.moveTo(t,i-o),e.lineTo(t+a,i-o),e.lineTo(t+a,i),e.arcTo(t+a,i+o,t,i+o,n),e.arcTo(t-a,i+o,t-a,i,n),e.lineTo(t-a,i-o),e.lineTo(t,i-o),e.closePath()},drawCutRectanglePath:function(e,t,i,n,r,s,a){n/=2,r/=2,a="auto"===a?r_e():a;e.beginPath&&e.beginPath(),e.moveTo(t-n+a,i-r),e.lineTo(t+n-a,i-r),e.lineTo(t+n,i-r+a),e.lineTo(t+n,i+r-a),e.lineTo(t+n-a,i+r),e.lineTo(t-n+a,i+r),e.lineTo(t-n,i+r-a),e.lineTo(t-n,i-r+a),e.closePath()},drawBarrelPath:function(e,t,i,n,r){var s=n/2,a=r/2,o=t-s,t=t+s,s=i-a,i=i+a,a=a_e(n,r),n=a.widthOffset,r=a.heightOffset,a=a.ctrlPtOffsetPct*n;e.beginPath&&e.beginPath(),e.moveTo(o,s+r),e.lineTo(o,i-r),e.quadraticCurveTo(o+a,i,o+n,i),e.lineTo(t-n,i),e.quadraticCurveTo(t-a,i,t,i-r),e.lineTo(t,s+r),e.quadraticCurveTo(t-a,s,t-n,s),e.lineTo(o+n,s),e.quadraticCurveTo(o+a,s,o,s+r),e.closePath()}},u$e=Math.sin(0),d$e=Math.cos(0),p$e={},g$e={},f$e=Math.PI/40,m$e=0*Math.PI;m$e<2*Math.PI;m$e+=f$e)p$e[m$e]=Math.sin(m$e),g$e[m$e]=Math.cos(m$e);h$e.drawEllipsePath=function(e,t,i,n,r){if(e.beginPath&&e.beginPath(),e.ellipse)e.ellipse(t,i,n/2,r/2,0,0,2*Math.PI);else for(var s,a,o=n/2,l=r/2,c=0*Math.PI;c<2*Math.PI;c+=f$e)s=t-o*p$e[c]*u$e+o*g$e[c]*d$e,a=i+l*g$e[c]*u$e+l*p$e[c]*d$e,0===c?e.moveTo(s,a):e.lineTo(s,a);e.closePath()},y$e={createBuffer:function(e,t){var i=document.createElement("canvas");return i.width=e,i.height=t,[i,i.getContext("2d")]},bufferCanvasImage:function(e){var t=this.cy,i=t.mutableElements().boundingBox(),n=this.findContainerClientCoords(),r=e.full?Math.ceil(i.w):n[2],n=e.full?Math.ceil(i.h):n[3],s=se(e.maxWidth)||se(e.maxHeight),a=this.getPixelRatio(),o=1,l=(void 0!==e.scale?(r*=e.scale,n*=e.scale,o=e.scale):s&&(c=l=1/0,se(e.maxWidth)&&(l=o*e.maxWidth/r),se(e.maxHeight)&&(c=o*e.maxHeight/n),r*=o=Math.min(l,c),n*=o),s||(r*=a,n*=a,o*=a),document.createElement("canvas")),c=(l.width=r,l.height=n,l.style.width=r+"px",l.style.height=n+"px",l.getContext("2d"));return 0<r&&0<n&&(c.clearRect(0,0,r,n),c.globalCompositeOperation="source-over",s=this.getCachedZSortedEles(),e.full?(c.translate(-i.x1*o,-i.y1*o),c.scale(o,o),this.drawElements(c,s),c.scale(1/o,1/o),c.translate(i.x1*o,i.y1*o)):(i={x:(a=t.pan()).x*o,y:a.y*o},o*=t.zoom(),c.translate(i.x,i.y),c.scale(o,o),this.drawElements(c,s),c.scale(1/o,1/o),c.translate(-i.x,-i.y)),e.bg)&&(c.globalCompositeOperation="destination-over",c.fillStyle=e.bg,c.rect(0,0,r,n),c.fill()),l}},mt(P7e,"b64ToBlob"),mt(B7e,"b64UriToB64"),mt(F7e,"output"),y$e.png=function(e){return F7e(e,this.bufferCanvasImage(e),"image/png")},y$e.jpg=function(e){return F7e(e,this.bufferCanvasImage(e),"image/jpeg")},b$e={nodeShapeImpl:function(e,t,i,n,r,s,a,o){switch(e){case"ellipse":return this.drawEllipsePath(t,i,n,r,s);case"polygon":return this.drawPolygonPath(t,i,n,r,s,a);case"round-polygon":return this.drawRoundPolygonPath(t,i,n,r,s,a,o);case"roundrectangle":case"round-rectangle":return this.drawRoundRectanglePath(t,i,n,r,s,o);case"cutrectangle":case"cut-rectangle":return this.drawCutRectanglePath(t,i,n,r,s,a,o);case"bottomroundrectangle":case"bottom-round-rectangle":return this.drawBottomRoundRectanglePath(t,i,n,r,s,o);case"barrel":return this.drawBarrelPath(t,i,n,r,s)}}},(x$e=(v$e=j7e).prototype).CANVAS_LAYERS=3,x$e.SELECT_BOX=0,x$e.DRAG=1,x$e.NODE=2,x$e.WEBGL=3,x$e.CANVAS_TYPES=["2d","2d","2d","webgl2"],x$e.BUFFER_COUNT=3,x$e.TEXTURE_BUFFER=0,x$e.MOTIONBLUR_BUFFER_NODE=1,x$e.MOTIONBLUR_BUFFER_DRAG=2,mt(j7e,"CanvasRenderer"),x$e.redrawHint=function(e,t){switch(e){case"eles":this.data.canvasNeedsRedraw[x$e.NODE]=t;break;case"drag":this.data.canvasNeedsRedraw[x$e.DRAG]=t;break;case"select":this.data.canvasNeedsRedraw[x$e.SELECT_BOX]=t;break;case"gc":this.data.gc=!0}},w$e=typeof Path2D<"u",x$e.path2dEnabled=function(e){if(void 0===e)return this.pathsEnabled;this.pathsEnabled=!!e},x$e.usePaths=function(){return w$e&&this.pathsEnabled},x$e.setImgSmoothing=function(e,t){null!=e.imageSmoothingEnabled?e.imageSmoothingEnabled=t:(e.webkitImageSmoothingEnabled=t,e.mozImageSmoothingEnabled=t,e.msImageSmoothingEnabled=t)},x$e.getImgSmoothing=function(e){return null!=e.imageSmoothingEnabled?e.imageSmoothingEnabled:e.webkitImageSmoothingEnabled||e.mozImageSmoothingEnabled||e.msImageSmoothingEnabled},x$e.makeOffscreenCanvas=function(e,t){var i;return"undefined"!==("u"<typeof OffscreenCanvas?"undefined":qwe(OffscreenCanvas))?i=new OffscreenCanvas(e,t):((i=this.cy.window().document.createElement("canvas")).width=e,i.height=t),i},[BEe,jEe,GEe,XEe,KEe,ZEe,JEe,c$e,h$e,y$e,b$e].forEach(function(e){Ske(x$e,e)}),Q=[{type:"layout",extensions:nEe},{type:"renderer",extensions:[{name:"null",impl:q8e},{name:"base",impl:$Ee},{name:"canvas",impl:v$e}]}],k$e={},T$e={},mt(z7e,"setExtension"),mt(H7e,"getExtension"),mt(U7e,"setModule"),mt(q7e,"getModule"),S$e=mt(function(){return 2===arguments.length?H7e.apply(null,arguments):3===arguments.length?z7e.apply(null,arguments):4===arguments.length?q7e.apply(null,arguments):5===arguments.length?U7e.apply(null,arguments):void $Te("Invalid extension access syntax")},"extension"),S9e.prototype.extension=S$e,Q.forEach(function(t){t.extensions.forEach(function(e){z7e(t.type,e.name,e.impl)})}),J=mt(function e(){if(!(this instanceof e))return new e;this.length=0},"Stylesheet"),(_$e=J.prototype).instanceString=function(){return"stylesheet"},_$e.selector=function(e){var t=this.length++;return this[t]={selector:e,properties:[]},this},_$e.css=function(e,t){var i=this.length-1;if(Q7e(e))this[i].properties.push({name:e,value:t});else if(tke(e))for(var n=e,r=Object.keys(n),s=0;s<r.length;s++){var a=r[s],o=n[a];null!=o&&null!=(a=k9e.properties[a]||k9e.properties[bke(a)])&&(a=a.name,this[i].properties.push({name:a,value:o}))}return this},_$e.style=_$e.css,_$e.generateStyle=function(e){e=new k9e(e);return this.appendToStyle(e)},_$e.appendToStyle=function(e){for(var t=0;t<this.length;t++){var i=this[t],n=i.selector,r=i.properties;e.selector(n);for(var s=0;s<r.length;s++){var a=r[s];e.css(a.name,a.value)}}return e},(C$e=mt(function(e){return tke(e=void 0===e?{}:e)?new S9e(e):Q7e(e)?S$e.apply(S$e,arguments):void 0},"cytoscape")).use=function(e){var t=Array.prototype.slice.call(arguments,1);return t.unshift(C$e),e.apply(null,t),this},C$e.warnings=function(e){return LTe(e)},C$e.version="3.31.0",C$e.stylesheet=C$e.Stylesheet=J}),E$e=W((i,n)=>{"use strict";mt(function(e,t){"object"==typeof i&&"object"==typeof n?n.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof i?i.layoutBase=t():e.layoutBase=t()},"webpackUniversalModuleDefinition")(i,function(){return i=[function(e,t,i){function n(){}mt(n,"LayoutConstants"),n.QUALITY=1,n.DEFAULT_CREATE_BENDS_AS_NEEDED=!1,n.DEFAULT_INCREMENTAL=!1,n.DEFAULT_ANIMATION_ON_LAYOUT=!0,n.DEFAULT_ANIMATION_DURING_LAYOUT=!1,n.DEFAULT_ANIMATION_PERIOD=50,n.DEFAULT_UNIFORM_LEAF_NODE_SIZES=!1,n.DEFAULT_GRAPH_MARGIN=15,n.NODE_DIMENSIONS_INCLUDE_LABELS=!1,n.SIMPLE_NODE_HALF_SIZE=(n.SIMPLE_NODE_SIZE=40)/2,n.EMPTY_COMPOUND_NODE_SIZE=40,n.MIN_EDGE_LENGTH=1,n.INITIAL_WORLD_BOUNDARY=(n.WORLD_BOUNDARY=1e6)/1e3,n.WORLD_CENTER_X=1200,n.WORLD_CENTER_Y=900,e.exports=n},function(e,t,i){var n,r=i(2),s=i(8),a=i(9);function o(e,t,i){r.call(this,i),this.isOverlapingSourceAndTarget=!1,this.vGraphObject=i,this.bendpoints=[],this.source=e,this.target=t}for(n in mt(o,"LEdge"),o.prototype=Object.create(r.prototype),r)o[n]=r[n];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(e){if(this.source===e)return this.target;if(this.target===e)return this.source;throw"Node is not incident with this edge"},o.prototype.getOtherEndInGraph=function(e,t){for(var i=this.getOtherEnd(e),n=t.getGraphManager().getRoot();;){if(i.getOwner()==t)return i;if(i.getOwner()==n)break;i=i.getOwner().getParent()}return null},o.prototype.updateLength=function(){var e=new Array(4);this.isOverlapingSourceAndTarget=s.getIntersection(this.target.getRect(),this.source.getRect(),e),this.isOverlapingSourceAndTarget||(this.lengthX=e[0]-e[2],this.lengthY=e[1]-e[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)},e.exports=o},function(e,t,i){function n(e){this.vGraphObject=e}mt(n,"LGraphObject"),e.exports=n},function(e,t,i){var n,r=i(2),s=i(10),a=i(13),o=i(0),l=i(16),c=i(4);function h(e,t,i,n){r.call(this,n=null==i&&null==n?t:n),null!=e.graphManager&&(e=e.graphManager),this.estimatedSize=s.MIN_VALUE,this.inclusionTreeDepth=s.MAX_VALUE,this.vGraphObject=n,this.edges=[],this.graphManager=e,this.rect=null!=i&&null!=t?new a(t.x,t.y,i.width,i.height):new a}for(n in mt(h,"LNode"),h.prototype=Object.create(r.prototype),r)h[n]=r[n];h.prototype.getEdges=function(){return this.edges},h.prototype.getChild=function(){return this.child},h.prototype.getOwner=function(){return this.owner},h.prototype.getWidth=function(){return this.rect.width},h.prototype.setWidth=function(e){this.rect.width=e},h.prototype.getHeight=function(){return this.rect.height},h.prototype.setHeight=function(e){this.rect.height=e},h.prototype.getCenterX=function(){return this.rect.x+this.rect.width/2},h.prototype.getCenterY=function(){return this.rect.y+this.rect.height/2},h.prototype.getCenter=function(){return new c(this.rect.x+this.rect.width/2,this.rect.y+this.rect.height/2)},h.prototype.getLocation=function(){return new c(this.rect.x,this.rect.y)},h.prototype.getRect=function(){return this.rect},h.prototype.getDiagonal=function(){return Math.sqrt(this.rect.width*this.rect.width+this.rect.height*this.rect.height)},h.prototype.getHalfTheDiagonal=function(){return Math.sqrt(this.rect.height*this.rect.height+this.rect.width*this.rect.width)/2},h.prototype.setRect=function(e,t){this.rect.x=e.x,this.rect.y=e.y,this.rect.width=t.width,this.rect.height=t.height},h.prototype.setCenter=function(e,t){this.rect.x=e-this.rect.width/2,this.rect.y=t-this.rect.height/2},h.prototype.setLocation=function(e,t){this.rect.x=e,this.rect.y=t},h.prototype.moveBy=function(e,t){this.rect.x+=e,this.rect.y+=t},h.prototype.getEdgeListToNode=function(t){var i=[],n=this;return n.edges.forEach(function(e){if(e.target==t){if(e.source!=n)throw"Incorrect edge source!";i.push(e)}}),i},h.prototype.getEdgesBetween=function(t){var i=[],n=this;return n.edges.forEach(function(e){if(e.source!=n&&e.target!=n)throw"Incorrect edge source and/or target";e.target!=t&&e.source!=t||i.push(e)}),i},h.prototype.getNeighborsList=function(){var t=new Set,i=this;return i.edges.forEach(function(e){if(e.source==i)t.add(e.target);else{if(e.target!=i)throw"Incorrect incidency!";t.add(e.source)}}),t},h.prototype.withChildren=function(){var t=new Set;if(t.add(this),null!=this.child)for(var e=this.child.getNodes(),i=0;i<e.length;i++)e[i].withChildren().forEach(function(e){t.add(e)});return t},h.prototype.getNoOfChildren=function(){var e=0;if(null==this.child)e=1;else for(var t=this.child.getNodes(),i=0;i<t.length;i++)e+=t[i].getNoOfChildren();return e=0==e?1:e},h.prototype.getEstimatedSize=function(){if(this.estimatedSize==s.MIN_VALUE)throw"assert failed";return this.estimatedSize},h.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)},h.prototype.scatter=function(){var e=-o.INITIAL_WORLD_BOUNDARY,t=o.INITIAL_WORLD_BOUNDARY,t=o.WORLD_CENTER_X+l.nextDouble()*(t-e)+e,e=-o.INITIAL_WORLD_BOUNDARY,i=o.INITIAL_WORLD_BOUNDARY,i=o.WORLD_CENTER_Y+l.nextDouble()*(i-e)+e;this.rect.x=t,this.rect.y=i},h.prototype.updateBounds=function(){if(null==this.getChild())throw"assert failed";var e,t;0!=this.getChild().getNodes().length&&((t=this.getChild()).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)&&(e=t.getRight()-t.getLeft(),t=t.getBottom()-t.getTop(),this.labelWidth>e&&(this.rect.x-=(this.labelWidth-e)/2,this.setWidth(this.labelWidth)),this.labelHeight>t)&&("center"==this.labelPos?this.rect.y-=(this.labelHeight-t)/2:"top"==this.labelPos&&(this.rect.y-=this.labelHeight-t),this.setHeight(this.labelHeight))},h.prototype.getInclusionTreeDepth=function(){if(this.inclusionTreeDepth==s.MAX_VALUE)throw"assert failed";return this.inclusionTreeDepth},h.prototype.transform=function(e){var t=this.rect.x,i=(t>o.WORLD_BOUNDARY?t=o.WORLD_BOUNDARY:t<-o.WORLD_BOUNDARY&&(t=-o.WORLD_BOUNDARY),this.rect.y),t=(i>o.WORLD_BOUNDARY?i=o.WORLD_BOUNDARY:i<-o.WORLD_BOUNDARY&&(i=-o.WORLD_BOUNDARY),new c(t,i)),i=e.inverseTransformPoint(t);this.setLocation(i.x,i.y)},h.prototype.getLeft=function(){return this.rect.x},h.prototype.getRight=function(){return this.rect.x+this.rect.width},h.prototype.getTop=function(){return this.rect.y},h.prototype.getBottom=function(){return this.rect.y+this.rect.height},h.prototype.getParent=function(){return null==this.owner?null:this.owner.getParent()},e.exports=h},function(e,t,i){function n(e,t){null==e&&null==t?(this.x=0,this.y=0):(this.x=e,this.y=t)}mt(n,"PointD"),n.prototype.getX=function(){return this.x},n.prototype.getY=function(){return this.y},n.prototype.setX=function(e){this.x=e},n.prototype.setY=function(e){this.y=e},n.prototype.getDifference=function(e){return new DimensionD(this.x-e.x,this.y-e.y)},n.prototype.getCopy=function(){return new n(this.x,this.y)},n.prototype.translate=function(e){return this.x+=e.width,this.y+=e.height,this},e.exports=n},function(e,t,i){var n,r=i(2),d=i(10),s=i(0),a=i(6),o=i(3),l=i(1),p=i(13),c=i(12),h=i(11);function u(e,t,i){r.call(this,i),this.estimatedSize=d.MIN_VALUE,this.margin=s.DEFAULT_GRAPH_MARGIN,this.edges=[],this.nodes=[],this.isConnected=!1,this.parent=e,null!=t&&t instanceof a?this.graphManager=t:null!=t&&t instanceof Layout&&(this.graphManager=t.graphManager)}for(n in mt(u,"LGraph"),u.prototype=Object.create(r.prototype),r)u[n]=r[n];u.prototype.getNodes=function(){return this.nodes},u.prototype.getEdges=function(){return this.edges},u.prototype.getGraphManager=function(){return this.graphManager},u.prototype.getParent=function(){return this.parent},u.prototype.getLeft=function(){return this.left},u.prototype.getRight=function(){return this.right},u.prototype.getTop=function(){return this.top},u.prototype.getBottom=function(){return this.bottom},u.prototype.isConnected=function(){return this.isConnected},u.prototype.add=function(e,t,i){if(null==t&&null==i){var n=e;if(null==this.graphManager)throw"Graph has no graph mgr!";if(-1<this.getNodes().indexOf(n))throw"Node already in graph!";return(n.owner=this).getNodes().push(n),n}n=e;if(!(-1<this.getNodes().indexOf(t)&&-1<this.getNodes().indexOf(i)))throw"Source or target not in graph!";if(t.owner!=i.owner||t.owner!=this)throw"Both owners must be this graph!";return t.owner!=i.owner?null:(n.source=t,n.target=i,n.isInterGraph=!1,this.getEdges().push(n),t.edges.push(n),i!=t&&i.edges.push(n),n)},u.prototype.remove=function(e){var t=e;if(e instanceof o){if(null==t)throw"Node is null!";if(null==t.owner||t.owner!=this)throw"Owner graph is invalid!";if(null==this.graphManager)throw"Owner graph manager is invalid!";for(var i,n=t.edges.slice(),r=n.length,s=0;s<r;s++)((i=n[s]).isInterGraph?this.graphManager:i.source.owner).remove(i);if(-1==(a=this.nodes.indexOf(t)))throw"Node not in owner node list!";this.nodes.splice(a,1)}else if(e instanceof l){if(null==(i=e))throw"Edge is null!";if(null==i.source||null==i.target)throw"Source and/or target is null!";if(null==i.source.owner||null==i.target.owner||i.source.owner!=this||i.target.owner!=this)throw"Source and/or target owner is invalid!";var a,t=i.source.edges.indexOf(i),e=i.target.edges.indexOf(i);if(!(-1<t&&-1<e))throw"Source and/or target doesn't know this edge!";if(i.source.edges.splice(t,1),i.target!=i.source&&i.target.edges.splice(e,1),-1==(a=i.source.owner.getEdges().indexOf(i)))throw"Not in owner's edge list!";i.source.owner.getEdges().splice(a,1)}},u.prototype.updateLeftTop=function(){for(var e,t=d.MAX_VALUE,i=d.MAX_VALUE,n=this.getNodes(),r=n.length,s=0;s<r;s++){var a,o=n[s];(a=o.getTop())<t&&(t=a),(a=o.getLeft())<i&&(i=a)}return t==d.MAX_VALUE?null:(e=null!=n[0].getParent().paddingLeft?n[0].getParent().paddingLeft:this.margin,this.left=i-e,this.top=t-e,new c(this.left,this.top))},u.prototype.updateBounds=function(e){for(var t,i,n=d.MAX_VALUE,r=-d.MAX_VALUE,s=d.MAX_VALUE,a=-d.MAX_VALUE,o=this.nodes,l=o.length,c=0;c<l;c++){var h=o[c];e&&null!=h.child&&h.updateBounds(),(t=h.getLeft())<n&&(n=t),r<(t=h.getRight())&&(r=t),(t=h.getTop())<s&&(s=t),a<(t=h.getBottom())&&(a=t)}var u=new p(n,s,r-n,a-s);n==d.MAX_VALUE&&(this.left=this.parent.getLeft(),this.right=this.parent.getRight(),this.top=this.parent.getTop(),this.bottom=this.parent.getBottom()),i=null!=o[0].getParent().paddingLeft?o[0].getParent().paddingLeft:this.margin,this.left=u.x-i,this.right=u.x+u.width+i,this.top=u.y-i,this.bottom=u.y+u.height+i},u.calculateBounds=function(e){for(var t=d.MAX_VALUE,i=-d.MAX_VALUE,n=d.MAX_VALUE,r=-d.MAX_VALUE,s=e.length,a=0;a<s;a++){var o,l=e[a];(o=l.getLeft())<t&&(t=o),i<(o=l.getRight())&&(i=o),(o=l.getTop())<n&&(n=o),r<(o=l.getBottom())&&(r=o)}return new p(t,n,i-t,r-n)},u.prototype.getInclusionTreeDepth=function(){return this==this.graphManager.getRoot()?1:this.parent.getInclusionTreeDepth()},u.prototype.getEstimatedSize=function(){if(this.estimatedSize==d.MIN_VALUE)throw"assert failed";return this.estimatedSize},u.prototype.calcEstimatedSize=function(){for(var e=0,t=this.nodes,i=t.length,n=0;n<i;n++)e+=t[n].calcEstimatedSize();return this.estimatedSize=0==e?s.EMPTY_COMPOUND_NODE_SIZE:e/Math.sqrt(this.nodes.length),this.estimatedSize},u.prototype.updateConnected=function(){var t=this;if(0==this.nodes.length)this.isConnected=!0;else{var i,n=new h,r=new Set,e=this.nodes[0];for(e.withChildren().forEach(function(e){n.push(e),r.add(e)});0!==n.length;)for(var s,a,o=(s=(e=n.shift()).getEdges()).length,l=0;l<o;l++)null==(a=s[l].getOtherEndInGraph(e,this))||r.has(a)||a.withChildren().forEach(function(e){n.push(e),r.add(e)});this.isConnected=!1,r.size>=this.nodes.length&&(i=0,r.forEach(function(e){e.owner==t&&i++}),i==this.nodes.length)&&(this.isConnected=!0)}},e.exports=u},function(e,t,i){var c,h=i(1);function n(e){c=i(5),this.layout=e,this.graphs=[],this.edges=[]}mt(n,"LGraphManager"),n.prototype.addRoot=function(){var e=this.layout.newGraph(),t=this.layout.newNode(null),e=this.add(e,t);return this.setRootGraph(e),this.rootGraph},n.prototype.add=function(e,t,i,n,r){if(null==i&&null==n&&null==r){if(null==e)throw"Graph is null!";if(null==t)throw"Parent node is null!";if(-1<this.graphs.indexOf(e))throw"Graph already in this graph mgr!";if(this.graphs.push(e),null!=e.parent)throw"Already has a parent!";if(null!=t.child)throw"Already has a child!";return(e.parent=t).child=e}r=i,i=e;e=(n=t).getOwner(),t=r.getOwner();if(null==e||e.getGraphManager()!=this)throw"Source not in this graph mgr!";if(null==t||t.getGraphManager()!=this)throw"Target not in this graph mgr!";if(e==t)return i.isInterGraph=!1,e.add(i,n,r);if(i.isInterGraph=!0,i.source=n,i.target=r,-1<this.edges.indexOf(i))throw"Edge already in inter-graph edge list!";if(this.edges.push(i),null==i.source||null==i.target)throw"Edge source and/or target is null!";if(-1!=i.source.edges.indexOf(i)||-1!=i.target.edges.indexOf(i))throw"Edge already in source and/or target incidency list!";return i.source.edges.push(i),i.target.edges.push(i),i},n.prototype.remove=function(e){if(e instanceof c){var t=e;if(t.getGraphManager()!=this)throw"Graph not in this graph mgr";if(t!=this.rootGraph&&(null==t.parent||t.parent.graphManager!=this))throw"Invalid parent node!";for(var i,n=[],r=(n=n.concat(t.getEdges())).length,s=0;s<r;s++)i=n[s],t.remove(i);for(var a,o=[],r=(o=o.concat(t.getNodes())).length,s=0;s<r;s++)a=o[s],t.remove(a);t==this.rootGraph&&this.setRootGraph(null);var l=this.graphs.indexOf(t);this.graphs.splice(l,1),t.parent=null}else if(e instanceof h){if(null==(i=e))throw"Edge is null!";if(!i.isInterGraph)throw"Not an inter-graph edge!";if(null==i.source||null==i.target)throw"Source and/or target is null!";if(-1==i.source.edges.indexOf(i)||-1==i.target.edges.indexOf(i))throw"Source and/or target doesn't know this edge!";l=i.source.edges.indexOf(i);if(i.source.edges.splice(l,1),l=i.target.edges.indexOf(i),i.target.edges.splice(l,1),null==i.source.owner||null==i.source.owner.getGraphManager())throw"Edge owner graph or owner graph manager is null!";if(-1==i.source.owner.getGraphManager().edges.indexOf(i))throw"Not in owner graph manager's edge list!";l=i.source.owner.getGraphManager().edges.indexOf(i);i.source.owner.getGraphManager().edges.splice(l,1)}},n.prototype.updateBounds=function(){this.rootGraph.updateBounds(!0)},n.prototype.getGraphs=function(){return this.graphs},n.prototype.getAllNodes=function(){if(null==this.allNodes){for(var e=[],t=this.getGraphs(),i=t.length,n=0;n<i;n++)e=e.concat(t[n].getNodes());this.allNodes=e}return this.allNodes},n.prototype.resetAllNodes=function(){this.allNodes=null},n.prototype.resetAllEdges=function(){this.allEdges=null},n.prototype.resetAllNodesToApplyGravitation=function(){this.allNodesToApplyGravitation=null},n.prototype.getAllEdges=function(){if(null==this.allEdges){for(var e=[],t=this.getGraphs(),i=(t.length,0);i<t.length;i++)e=e.concat(t[i].getEdges());e=e.concat(this.edges),this.allEdges=e}return this.allEdges},n.prototype.getAllNodesToApplyGravitation=function(){return this.allNodesToApplyGravitation},n.prototype.setAllNodesToApplyGravitation=function(e){if(null!=this.allNodesToApplyGravitation)throw"assert failed";this.allNodesToApplyGravitation=e},n.prototype.getRoot=function(){return this.rootGraph},n.prototype.setRootGraph=function(e){if(e.getGraphManager()!=this)throw"Root not in this graph mgr!";null==(this.rootGraph=e).parent&&(e.parent=this.layout.newNode("Root node"))},n.prototype.getLayout=function(){return this.layout},n.prototype.isOneAncestorOfOther=function(e,t){if(null==e||null==t)throw"assert failed";if(e==t)return!0;for(var i,n=e.getOwner();null!=(i=n.getParent());){if(i==t)return!0;if(null==(n=i.getOwner()))break}for(n=t.getOwner();;){if(null==(i=n.getParent()))break;if(i==e)return!0;if(null==(n=i.getOwner()))break}return!1},n.prototype.calcLowestCommonAncestors=function(){for(var e,t,i,n,r,s=this.getAllEdges(),a=s.length,o=0;o<a;o++)if(t=(e=s[o]).source,i=e.target,e.lca=null,(e.sourceInLca=t)==(e.targetInLca=i))e.lca=t.getOwner();else{for(n=t.getOwner();null==e.lca;){for(r=(e.targetInLca=i).getOwner();null==e.lca;){if(r==n){e.lca=r;break}if(r==this.rootGraph)break;if(null!=e.lca)throw"assert failed";e.targetInLca=r.getParent(),r=e.targetInLca.getOwner()}if(n==this.rootGraph)break;null==e.lca&&(e.sourceInLca=n.getParent(),n=e.sourceInLca.getOwner())}if(null==e.lca)throw"assert failed"}},n.prototype.calcLowestCommonAncestor=function(e,t){if(e==t)return e.getOwner();for(var i=e.getOwner();null!=i;){for(var n=t.getOwner();null!=n;){if(n==i)return n;n=n.getParent().getOwner()}i=i.getParent().getOwner()}return i},n.prototype.calcInclusionTreeDepths=function(e,t){null==e&&null==t&&(e=this.rootGraph,t=1);for(var i,n=e.getNodes(),r=n.length,s=0;s<r;s++)(i=n[s]).inclusionTreeDepth=t,null!=i.child&&this.calcInclusionTreeDepths(i.child,t+1)},n.prototype.includesInvalidEdge=function(){for(var e,t=this.edges.length,i=0;i<t;i++)if(e=this.edges[i],this.isOneAncestorOfOther(e.source,e.target))return!0;return!1},e.exports=n},function(e,t,i){var n,r=i(0);function s(){}for(n in mt(s,"FDLayoutConstants"),r)s[n]=r[n];s.MAX_ITERATIONS=2500,s.DEFAULT_EDGE_LENGTH=50,s.DEFAULT_SPRING_STRENGTH=.45,s.DEFAULT_REPULSION_STRENGTH=4500,s.DEFAULT_GRAVITY_STRENGTH=.4,s.DEFAULT_COMPOUND_GRAVITY_STRENGTH=1,s.DEFAULT_GRAVITY_RANGE_FACTOR=3.8,s.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR=1.5,s.DEFAULT_USE_SMART_IDEAL_EDGE_LENGTH_CALCULATION=!0,s.DEFAULT_USE_SMART_REPULSION_RANGE_CALCULATION=!0,s.DEFAULT_COOLING_FACTOR_INCREMENTAL=.3,s.COOLING_ADAPTATION_FACTOR=.33,s.ADAPTATION_LOWER_NODE_LIMIT=1e3,s.ADAPTATION_UPPER_NODE_LIMIT=5e3,s.MAX_NODE_DISPLACEMENT=3*(s.MAX_NODE_DISPLACEMENT_INCREMENTAL=100),s.MIN_REPULSION_DIST=s.DEFAULT_EDGE_LENGTH/10,s.CONVERGENCE_CHECK_PERIOD=100,s.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR=.1,s.MIN_EDGE_LENGTH=1,s.GRID_CALCULATION_CHECK_PERIOD=10,e.exports=s},function(e,t,i){var f=i(12);function n(){}mt(n,"IGeometry"),n.calcSeparationAmount=function(e,t,i,n){if(!e.intersects(t))throw"assert failed";var r=new Array(2),s=(this.decideDirectionsForOverlappingNodes(e,t,r),i[0]=Math.min(e.getRight(),t.getRight())-Math.max(e.x,t.x),i[1]=Math.min(e.getBottom(),t.getBottom())-Math.max(e.y,t.y),e.getX()<=t.getX()&&e.getRight()>=t.getRight()?i[0]+=Math.min(t.getX()-e.getX(),e.getRight()-t.getRight()):t.getX()<=e.getX()&&t.getRight()>=e.getRight()&&(i[0]+=Math.min(e.getX()-t.getX(),t.getRight()-e.getRight())),e.getY()<=t.getY()&&e.getBottom()>=t.getBottom()?i[1]+=Math.min(t.getY()-e.getY(),e.getBottom()-t.getBottom()):t.getY()<=e.getY()&&t.getBottom()>=e.getBottom()&&(i[1]+=Math.min(e.getY()-t.getY(),t.getBottom()-e.getBottom())),Math.abs((t.getCenterY()-e.getCenterY())/(t.getCenterX()-e.getCenterX()))),t=(s=t.getCenterY()===e.getCenterY()&&t.getCenterX()===e.getCenterX()?1:s)*i[0],e=i[1]/s;i[0]<e?e=i[0]:t=i[1],i[0]=-1*r[0]*(e/2+n),i[1]=-1*r[1]*(t/2+n)},n.decideDirectionsForOverlappingNodes=function(e,t,i){e.getCenterX()<t.getCenterX()?i[0]=-1:i[0]=1,e.getCenterY()<t.getCenterY()?i[1]=-1:i[1]=1},n.getIntersection2=function(e,t,i){var n=e.getCenterX(),r=e.getCenterY(),s=t.getCenterX(),a=t.getCenterY();if(e.intersects(t))return i[0]=n,i[1]=r,i[2]=s,i[3]=a,!0;var o=e.getX(),l=e.getY(),c=e.getRight(),h=e.getX(),u=e.getBottom(),d=e.getRight(),p=e.getWidthHalf(),g=e.getHeightHalf(),f=t.getX(),m=t.getY(),y=t.getRight(),b=t.getX(),v=t.getBottom(),x=t.getRight(),w=t.getWidthHalf(),k=t.getHeightHalf(),T=!1,S=!1;if(n===s){if(a<r)return i[0]=n,i[1]=l,i[2]=s,i[3]=v,!1;if(r<a)i[0]=n,i[1]=u,i[2]=s,i[3]=m}else if(r===a){if(s<n)return i[0]=o,i[1]=r,i[2]=y,i[3]=a,!1;if(n<s)i[0]=c,i[1]=r,i[2]=f,i[3]=a}else{var e=e.height/e.width,t=t.height/t.width,_=(a-r)/(s-n),C=void 0,A=void 0,E=void 0,$=void 0;if(-e==_?T=(s<n?(i[0]=h,i[1]=u):(i[0]=c,i[1]=l),!0):e==_&&(T=(s<n?(i[0]=o,i[1]=l):(i[0]=d,i[1]=u),!0)),-t==_?S=(n<s?(i[2]=b,i[3]=v):(i[2]=y,i[3]=m),!0):t==_&&(S=(n<s?(i[2]=f,i[3]=m):(i[2]=x,i[3]=v),!0)),T&&S)return!1;if(A=s<n?a<r?(C=this.getCardinalDirection(e,_,4),this.getCardinalDirection(t,_,2)):(C=this.getCardinalDirection(-e,_,3),this.getCardinalDirection(-t,_,1)):a<r?(C=this.getCardinalDirection(-e,_,1),this.getCardinalDirection(-t,_,3)):(C=this.getCardinalDirection(e,_,2),this.getCardinalDirection(t,_,4)),!T)switch(C){case 1:E=l,i[0]=n+-g/_,i[1]=E;break;case 2:E=r+p*_,i[0]=d,i[1]=E;break;case 3:E=u,i[0]=n+g/_,i[1]=E;break;case 4:E=r+-p*_,i[0]=h,i[1]=E}if(!S)switch(A){case 1:$=m,i[2]=s+-k/_,i[3]=$;break;case 2:$=a+w*_,i[2]=x,i[3]=$;break;case 3:$=v,i[2]=s+k/_,i[3]=$;break;case 4:$=a+-w*_,i[2]=b,i[3]=$}}return!1},n.getCardinalDirection=function(e,t,i){return t<e?i:1+i%4},n.getIntersection=function(e,t,i,n){var r,s,a,o,l,c,h,u,d,p,g;return null==n?this.getIntersection2(e,t,i):(r=e.x,e=e.y,s=t.x,t=t.y,a=i.x,i=i.y,g=p=h=d=c=u=l=void 0,h=s*e-r*t,p=(o=n.x)*i-a*(n=n.y),0==(g=(l=t-e)*(d=a-o)-(u=n-i)*(c=r-s))?null:new f((c*p-d*h)/g,(u*h-l*p)/g))},n.angleOfVector=function(e,t,i,n){var r=void 0;return e!==i?(r=Math.atan((n-t)/(i-e)),i<e?r+=Math.PI:n<t&&(r+=this.TWO_PI)):r=n<t?this.ONE_AND_HALF_PI:this.HALF_PI,r},n.doIntersect=function(e,t,i,n){var r=e.x,e=e.y,s=t.x,t=t.y,a=i.x,i=i.y,o=n.x,n=n.y,l=(s-r)*(n-i)-(o-a)*(t-e);return 0!=l&&(t=((e-t)*(o-r)+(s-r)*(n-e))/l,0<(s=((n-i)*(o-r)+(a-o)*(n-e))/l))&&s<1&&0<t&&t<1},n.HALF_PI=.5*Math.PI,n.ONE_AND_HALF_PI=1.5*Math.PI,n.TWO_PI=2*Math.PI,n.THREE_PI=3*Math.PI,e.exports=n},function(e,t,i){function n(){}mt(n,"IMath"),n.sign=function(e){return 0<e?1:e<0?-1:0},n.floor=function(e){return e<0?Math.ceil(e):Math.floor(e)},n.ceil=function(e){return e<0?Math.floor(e):Math.ceil(e)},e.exports=n},function(e,t,i){function n(){}mt(n,"Integer"),n.MAX_VALUE=2147483647,n.MIN_VALUE=-2147483648,e.exports=n},function(e,t,i){mt(r,"defineProperties");var n=function(e,t,i){return t&&r(e.prototype,t),i&&r(e,i),e};function r(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}mt(s,"_classCallCheck");var a=mt(function(e){return{value:e,next:null,prev:null}},"nodeFrom"),o=mt(function(e,t,i,n){return null!==e?e.next=t:n.head=t,null!==i?i.prev=t:n.tail=t,t.prev=e,t.next=i,n.length++,t},"add"),l=mt(function(e,t){var i=e.prev,n=e.next;return null!==i?i.next=n:t.head=n,null!==n?n.prev=i:t.tail=i,e.prev=e.next=null,t.length--,e},"_remove");function c(e){var t=this;s(this,c),this.length=0,this.head=null,this.tail=null,e?.forEach(function(e){return t.push(e)})}mt(c,"LinkedList"),n(c,[{key:"size",value:mt(function(){return this.length},"size")},{key:"insertBefore",value:mt(function(e,t){return o(t.prev,a(e),t,this)},"insertBefore")},{key:"insertAfter",value:mt(function(e,t){return o(t,a(e),t.next,this)},"insertAfter")},{key:"insertNodeBefore",value:mt(function(e,t){return o(t.prev,e,t,this)},"insertNodeBefore")},{key:"insertNodeAfter",value:mt(function(e,t){return o(t,e,t.next,this)},"insertNodeAfter")},{key:"push",value:mt(function(e){return o(this.tail,a(e),null,this)},"push")},{key:"unshift",value:mt(function(e){return o(null,a(e),this.head,this)},"unshift")},{key:"remove",value:mt(function(e){return l(e,this)},"remove")},{key:"pop",value:mt(function(){return l(this.tail,this).value},"pop")},{key:"popNode",value:mt(function(){return l(this.tail,this)},"popNode")},{key:"shift",value:mt(function(){return l(this.head,this).value},"shift")},{key:"shiftNode",value:mt(function(){return l(this.head,this)},"shiftNode")},{key:"get_object_at",value:mt(function(e){if(e<=this.length()){for(var t=1,i=this.head;t<e;)i=i.next,t++;return i.value}},"get_object_at")},{key:"set_object_at",value:mt(function(e,t){if(e<=this.length()){for(var i=1,n=this.head;i<e;)n=n.next,i++;n.value=t}},"set_object_at")}]),e.exports=c},function(e,t,i){function n(e,t,i){this.x=null,(this.y=null)==e&&null==t&&null==i?(this.x=0,this.y=0):"number"==typeof e&&"number"==typeof t&&null==i?(this.x=e,this.y=t):"Point"==e.constructor.name&&null==t&&null==i&&(this.x=(i=e).x,this.y=i.y)}mt(n,"Point"),n.prototype.getX=function(){return this.x},n.prototype.getY=function(){return this.y},n.prototype.getLocation=function(){return new n(this.x,this.y)},n.prototype.setLocation=function(e,t,i){"Point"==e.constructor.name&&null==t&&null==i?this.setLocation((i=e).x,i.y):"number"==typeof e&&"number"==typeof t&&null==i&&(parseInt(e)==e&&parseInt(t)==t?this.move(e,t):(this.x=Math.floor(e+.5),this.y=Math.floor(t+.5)))},n.prototype.move=function(e,t){this.x=e,this.y=t},n.prototype.translate=function(e,t){this.x+=e,this.y+=t},n.prototype.equals=function(e){return"Point"==e.constructor.name?this.x==e.x&&this.y==e.y:this==e},n.prototype.toString=function(){return(new n).constructor.name+"[x="+this.x+",y="+this.y+"]"},e.exports=n},function(e,t,i){function n(e,t,i,n){this.x=0,this.y=0,this.width=0,this.height=0,null!=e&&null!=t&&null!=i&&null!=n&&(this.x=e,this.y=t,this.width=i,this.height=n)}mt(n,"RectangleD"),n.prototype.getX=function(){return this.x},n.prototype.setX=function(e){this.x=e},n.prototype.getY=function(){return this.y},n.prototype.setY=function(e){this.y=e},n.prototype.getWidth=function(){return this.width},n.prototype.setWidth=function(e){this.width=e},n.prototype.getHeight=function(){return this.height},n.prototype.setHeight=function(e){this.height=e},n.prototype.getRight=function(){return this.x+this.width},n.prototype.getBottom=function(){return this.y+this.height},n.prototype.intersects=function(e){return!(this.getRight()<e.x||this.getBottom()<e.y||e.getRight()<this.x||e.getBottom()<this.y)},n.prototype.getCenterX=function(){return this.x+this.width/2},n.prototype.getMinX=function(){return this.getX()},n.prototype.getMaxX=function(){return this.getX()+this.width},n.prototype.getCenterY=function(){return this.y+this.height/2},n.prototype.getMinY=function(){return this.getY()},n.prototype.getMaxY=function(){return this.getY()+this.height},n.prototype.getWidthHalf=function(){return this.width/2},n.prototype.getHeightHalf=function(){return this.height/2},e.exports=n},function(e,t,i){var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};function r(){}mt(r,"UniqueIDGeneretor"),r.lastID=0,r.createID=function(e){return r.isPrimitive(e)?e:(null==e.uniqueID&&(e.uniqueID=r.getString(),r.lastID++),e.uniqueID)},r.getString=function(e){return"Object#"+(e=null==e?r.lastID:e)},r.isPrimitive=function(e){var t="u"<typeof e?"undefined":n(e);return null==e||"object"!=t&&"function"!=t},e.exports=r},function(e,t,i){function g(e){if(Array.isArray(e)){for(var t=0,i=Array(e.length);t<e.length;t++)i[t]=e[t];return i}return Array.from(e)}mt(g,"_toConsumableArray");var n=i(0),r=i(6),s=i(3),a=i(1),o=i(5),l=i(4),c=i(17),h=i(27);function u(e){h.call(this),this.layoutQuality=n.QUALITY,this.createBendsAsNeeded=n.DEFAULT_CREATE_BENDS_AS_NEEDED,this.incremental=n.DEFAULT_INCREMENTAL,this.animationOnLayout=n.DEFAULT_ANIMATION_ON_LAYOUT,this.animationDuringLayout=n.DEFAULT_ANIMATION_DURING_LAYOUT,this.animationPeriod=n.DEFAULT_ANIMATION_PERIOD,this.uniformLeafNodeSizes=n.DEFAULT_UNIFORM_LEAF_NODE_SIZES,this.edgeToDummyNodes=new Map,this.graphManager=new r(this),this.isLayoutFinished=!1,this.isSubLayout=!1,this.isRemoteUse=!1,null!=e&&(this.isRemoteUse=e)}mt(u,"Layout"),u.RANDOM_SEED=1,(u.prototype=Object.create(h.prototype)).getGraphManager=function(){return this.graphManager},u.prototype.getAllNodes=function(){return this.graphManager.getAllNodes()},u.prototype.getAllEdges=function(){return this.graphManager.getAllEdges()},u.prototype.getAllNodesToApplyGravitation=function(){return this.graphManager.getAllNodesToApplyGravitation()},u.prototype.newGraphManager=function(){var e=new r(this);return this.graphManager=e},u.prototype.newGraph=function(e){return new o(null,this.graphManager,e)},u.prototype.newNode=function(e){return new s(this.graphManager,e)},u.prototype.newEdge=function(e){return new a(null,null,e)},u.prototype.checkLayoutSuccess=function(){return null==this.graphManager.getRoot()||0==this.graphManager.getRoot().getNodes().length||this.graphManager.includesInvalidEdge()},u.prototype.runLayout=function(){var e;return this.isLayoutFinished=!1,this.tilingPreLayout&&this.tilingPreLayout(),this.initParameters(),e=!this.checkLayoutSuccess()&&this.layout(),"during"!==n.ANIMATE&&(!e||this.isSubLayout||this.doPostLayout(),this.tilingPostLayout&&this.tilingPostLayout(),this.isLayoutFinished=!0,e)},u.prototype.doPostLayout=function(){this.incremental||this.transform(),this.update()},u.prototype.update2=function(){if(this.createBendsAsNeeded&&(this.createBendpointsFromDummyNodes(),this.graphManager.resetAllEdges()),!this.isRemoteUse){for(var e=this.graphManager.getAllEdges(),t=0;t<e.length;t++)e[t];for(var i=this.graphManager.getRoot().getNodes(),t=0;t<i.length;t++)i[t];this.update(this.graphManager.getRoot())}},u.prototype.update=function(e){if(null==e)this.update2();else if(e instanceof s){var t=e;if(null!=t.getChild())for(var i=t.getChild().getNodes(),n=0;n<i.length;n++)update(i[n]);null!=t.vGraphObject&&t.vGraphObject.update(t)}else e instanceof a?null!=e.vGraphObject&&e.vGraphObject.update(e):e instanceof o&&null!=e.vGraphObject&&e.vGraphObject.update(e)},u.prototype.initParameters=function(){this.isSubLayout||(this.layoutQuality=n.QUALITY,this.animationDuringLayout=n.DEFAULT_ANIMATION_DURING_LAYOUT,this.animationPeriod=n.DEFAULT_ANIMATION_PERIOD,this.animationOnLayout=n.DEFAULT_ANIMATION_ON_LAYOUT,this.incremental=n.DEFAULT_INCREMENTAL,this.createBendsAsNeeded=n.DEFAULT_CREATE_BENDS_AS_NEEDED,this.uniformLeafNodeSizes=n.DEFAULT_UNIFORM_LEAF_NODE_SIZES),this.animationDuringLayout&&(this.animationOnLayout=!1)},u.prototype.transform=function(e){if(null==e)this.transform(new l(0,0));else{var t=new c,i=this.graphManager.getRoot().updateLeftTop();if(null!=i){t.setWorldOrgX(e.x),t.setWorldOrgY(e.y),t.setDeviceOrgX(i.x),t.setDeviceOrgY(i.y);for(var n=this.getAllNodes(),r=0;r<n.length;r++)n[r].transform(t)}}},u.prototype.positionNodesRandomly=function(e){if(null==e)this.positionNodesRandomly(this.getGraphManager().getRoot()),this.getGraphManager().getRoot().updateBounds(!0);else for(var t,i,n=e.getNodes(),r=0;r<n.length;r++)null==(i=(t=n[r]).getChild())||0==i.getNodes().length?t.scatter():(this.positionNodesRandomly(i),t.updateBounds())},u.prototype.getFlatForest=function(){for(var e=[],t=!0,i=this.graphManager.getRoot().getNodes(),n=!0,r=0;r<i.length;r++)null!=i[r].getChild()&&(n=!1);if(n)for(var s=new Set,a=[],o=new Map,l=(l=[]).concat(i);0<l.length&&t;){for(a.push(l[0]);0<a.length&&t;){var c=a[0];a.splice(0,1),s.add(c);for(var h=c.getEdges(),r=0;r<h.length;r++){var u=h[r].getOtherEnd(c);if(o.get(c)!=u){if(s.has(u)){t=!1;break}a.push(u),o.set(u,c)}}}if(t){var d=[].concat(g(s));e.push(d);for(r=0;r<d.length;r++){var p=d[r],p=l.indexOf(p);-1<p&&l.splice(p,1)}s=new Set,o=new Map}else e=[]}return e},u.prototype.createDummyNodesForBendpoints=function(e){for(var t=[],i=e.source,n=this.graphManager.calcLowestCommonAncestor(e.source,e.target),r=0;r<e.bendpoints.length;r++){var s=this.newNode(null),a=(s.setRect(new Point(0,0),new Dimension(1,1)),n.add(s),this.newEdge(null));this.graphManager.add(a,i,s),t.add(s),i=s}a=this.newEdge(null);return this.graphManager.add(a,i,e.target),this.edgeToDummyNodes.set(e,t),(e.isInterGraph()?this.graphManager:n).remove(e),t},u.prototype.createBendpointsFromDummyNodes=function(){var e=(e=[]).concat(this.graphManager.getAllEdges());e=[].concat(g(this.edgeToDummyNodes.keys())).concat(e);for(var t=0;t<e.length;t++){var i=e[t];if(0<i.bendpoints.length){for(var n=this.edgeToDummyNodes.get(i),r=0;r<n.length;r++){var s=n[r],a=new l(s.getCenterX(),s.getCenterY()),o=i.bendpoints.get(r);o.x=a.x,o.y=a.y,s.getOwner().remove(s)}this.graphManager.add(i,i.source,i.target)}}},u.transform=function(e,t,i,n){var r,s;return null!=i&&null!=n?(r=t,e<=50?r-=(t-t/i)/50*(50-e):r+=(t*n-t)/50*(e-50),r):(i=e<=50?(s=9*t/500,t/10):(s=9*t/50,-8*t),s*e+i)},u.findCenterOfTree=function(e){var t=(t=[]).concat(e),i=[],n=new Map,r=!1,s=null;1!=t.length&&2!=t.length||(r=!0,s=t[0]);for(var a=0;a<t.length;a++){var o=(c=t[a]).getNeighborsList().size;n.set(c,c.getNeighborsList().size),1==o&&i.push(c)}for(l=(l=[]).concat(i);!r;){[].concat(l);for(var l=[],a=0;a<t.length;a++){var c=t[a],h=t.indexOf(c);0<=h&&t.splice(h,1),c.getNeighborsList().forEach(function(e){var t;i.indexOf(e)<0&&(1==(t=n.get(e)-1)&&l.push(e),n.set(e,t))})}i=i.concat(l),1!=t.length&&2!=t.length||(r=!0,s=t[0])}return s},u.prototype.setGraphManager=function(e){this.graphManager=e},e.exports=u},function(e,t,i){function n(){}mt(n,"RandomSeed"),n.seed=1,n.x=0,n.nextDouble=function(){return(n.x=1e4*Math.sin(n.seed++))-Math.floor(n.x)},e.exports=n},function(e,t,i){var n=i(4);function r(e,t){this.lworldOrgX=0,this.lworldOrgY=0,this.ldeviceOrgX=0,this.ldeviceOrgY=0,this.lworldExtX=1,this.lworldExtY=1,this.ldeviceExtX=1,this.ldeviceExtY=1}mt(r,"Transform"),r.prototype.getWorldOrgX=function(){return this.lworldOrgX},r.prototype.setWorldOrgX=function(e){this.lworldOrgX=e},r.prototype.getWorldOrgY=function(){return this.lworldOrgY},r.prototype.setWorldOrgY=function(e){this.lworldOrgY=e},r.prototype.getWorldExtX=function(){return this.lworldExtX},r.prototype.setWorldExtX=function(e){this.lworldExtX=e},r.prototype.getWorldExtY=function(){return this.lworldExtY},r.prototype.setWorldExtY=function(e){this.lworldExtY=e},r.prototype.getDeviceOrgX=function(){return this.ldeviceOrgX},r.prototype.setDeviceOrgX=function(e){this.ldeviceOrgX=e},r.prototype.getDeviceOrgY=function(){return this.ldeviceOrgY},r.prototype.setDeviceOrgY=function(e){this.ldeviceOrgY=e},r.prototype.getDeviceExtX=function(){return this.ldeviceExtX},r.prototype.setDeviceExtX=function(e){this.ldeviceExtX=e},r.prototype.getDeviceExtY=function(){return this.ldeviceExtY},r.prototype.setDeviceExtY=function(e){this.ldeviceExtY=e},r.prototype.transformX=function(e){var t=0,i=this.lworldExtX;return t=0!=i?this.ldeviceOrgX+(e-this.lworldOrgX)*this.ldeviceExtX/i:t},r.prototype.transformY=function(e){var t=0,i=this.lworldExtY;return t=0!=i?this.ldeviceOrgY+(e-this.lworldOrgY)*this.ldeviceExtY/i:t},r.prototype.inverseTransformX=function(e){var t=0,i=this.ldeviceExtX;return t=0!=i?this.lworldOrgX+(e-this.ldeviceOrgX)*this.lworldExtX/i:t},r.prototype.inverseTransformY=function(e){var t=0,i=this.ldeviceExtY;return t=0!=i?this.lworldOrgY+(e-this.ldeviceOrgY)*this.lworldExtY/i:t},r.prototype.inverseTransformPoint=function(e){return new n(this.inverseTransformX(e.x),this.inverseTransformY(e.y))},e.exports=r},function(e,t,i){function d(e){if(Array.isArray(e)){for(var t=0,i=Array(e.length);t<e.length;t++)i[t]=e[t];return i}return Array.from(e)}mt(d,"_toConsumableArray");var n,r=i(15),p=i(7),o=i(0),c=i(8),h=i(9);function s(){r.call(this),this.useSmartIdealEdgeLengthCalculation=p.DEFAULT_USE_SMART_IDEAL_EDGE_LENGTH_CALCULATION,this.idealEdgeLength=p.DEFAULT_EDGE_LENGTH,this.springConstant=p.DEFAULT_SPRING_STRENGTH,this.repulsionConstant=p.DEFAULT_REPULSION_STRENGTH,this.gravityConstant=p.DEFAULT_GRAVITY_STRENGTH,this.compoundGravityConstant=p.DEFAULT_COMPOUND_GRAVITY_STRENGTH,this.gravityRangeFactor=p.DEFAULT_GRAVITY_RANGE_FACTOR,this.compoundGravityRangeFactor=p.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR,this.displacementThresholdPerNode=3*p.DEFAULT_EDGE_LENGTH/100,this.coolingFactor=p.DEFAULT_COOLING_FACTOR_INCREMENTAL,this.initialCoolingFactor=p.DEFAULT_COOLING_FACTOR_INCREMENTAL,this.totalDisplacement=0,this.oldTotalDisplacement=0,this.maxIterations=p.MAX_ITERATIONS}for(n in mt(s,"FDLayout"),s.prototype=Object.create(r.prototype),r)s[n]=r[n];s.prototype.initParameters=function(){r.prototype.initParameters.call(this,arguments),this.totalIterations=0,this.notAnimatedIterations=0,this.useFRGridVariant=p.DEFAULT_USE_SMART_REPULSION_RANGE_CALCULATION,this.grid=[]},s.prototype.calcIdealEdgeLengths=function(){for(var e,t,i,n,r,s=this.getGraphManager().getAllEdges(),a=0;a<s.length;a++)(e=s[a]).idealLength=this.idealEdgeLength,e.isInterGraph&&(t=e.getSource(),i=e.getTarget(),n=e.getSourceInLca().getEstimatedSize(),r=e.getTargetInLca().getEstimatedSize(),this.useSmartIdealEdgeLengthCalculation&&(e.idealLength+=n+r-2*o.SIMPLE_NODE_SIZE),n=e.getLca().getInclusionTreeDepth(),e.idealLength+=p.DEFAULT_EDGE_LENGTH*p.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR*(t.getInclusionTreeDepth()+i.getInclusionTreeDepth()-2*n))},s.prototype.initSpringEmbedder=function(){var e=this.getAllNodes().length;this.incremental?(e>p.ADAPTATION_LOWER_NODE_LIMIT&&(this.coolingFactor=Math.max(this.coolingFactor*p.COOLING_ADAPTATION_FACTOR,this.coolingFactor-(e-p.ADAPTATION_LOWER_NODE_LIMIT)/(p.ADAPTATION_UPPER_NODE_LIMIT-p.ADAPTATION_LOWER_NODE_LIMIT)*this.coolingFactor*(1-p.COOLING_ADAPTATION_FACTOR))),this.maxNodeDisplacement=p.MAX_NODE_DISPLACEMENT_INCREMENTAL):(e>p.ADAPTATION_LOWER_NODE_LIMIT?this.coolingFactor=Math.max(p.COOLING_ADAPTATION_FACTOR,1-(e-p.ADAPTATION_LOWER_NODE_LIMIT)/(p.ADAPTATION_UPPER_NODE_LIMIT-p.ADAPTATION_LOWER_NODE_LIMIT)*(1-p.COOLING_ADAPTATION_FACTOR)):this.coolingFactor=1,this.initialCoolingFactor=this.coolingFactor,this.maxNodeDisplacement=p.MAX_NODE_DISPLACEMENT),this.maxIterations=Math.max(5*this.getAllNodes().length,this.maxIterations),this.totalDisplacementThreshold=this.displacementThresholdPerNode*this.getAllNodes().length,this.repulsionRange=this.calcRepulsionRange()},s.prototype.calcSpringForces=function(){for(var e,t=this.getAllEdges(),i=0;i<t.length;i++)e=t[i],this.calcSpringForce(e,e.idealLength)},s.prototype.calcRepulsionForces=function(){var e,t,i,n,r,s=!(0<arguments.length&&void 0!==arguments[0])||arguments[0],a=1<arguments.length&&void 0!==arguments[1]&&arguments[1],o=this.getAllNodes();if(this.useFRGridVariant)for(this.totalIterations%p.GRID_CALCULATION_CHECK_PERIOD==1&&s&&this.updateGrid(),r=new Set,e=0;e<o.length;e++)i=o[e],this.calculateRepulsionForceOfANode(i,r,s,a),r.add(i);else for(e=0;e<o.length;e++)for(i=o[e],t=e+1;t<o.length;t++)n=o[t],i.getOwner()==n.getOwner()&&this.calcRepulsionForce(i,n)},s.prototype.calcGravitationalForces=function(){for(var e,t=this.getAllNodesToApplyGravitation(),i=0;i<t.length;i++)e=t[i],this.calcGravitationalForce(e)},s.prototype.moveNodes=function(){for(var e=this.getAllNodes(),t=0;t<e.length;t++)e[t].move()},s.prototype.calcSpringForce=function(e,t){var i,n,r=e.getSource(),s=e.getTarget();if(this.uniformLeafNodeSizes&&null==r.getChild()&&null==s.getChild())e.updateLengthSimple();else if(e.updateLength(),e.isOverlapingSourceAndTarget)return;0!=(i=e.getLength())&&(n=(t=this.springConstant*(i-t))*(e.lengthX/i),t=t*(e.lengthY/i),r.springForceX+=n,r.springForceY+=t,s.springForceX-=n,s.springForceY-=t)},s.prototype.calcRepulsionForce=function(e,t){var i,n,r,s=e.getRect(),a=t.getRect(),o=new Array(2),l=new Array(4);s.intersects(a)?(c.calcSeparationAmount(s,a,o,p.DEFAULT_EDGE_LENGTH/2),n=2*o[0],r=2*o[1],o=e.noOfChildren*t.noOfChildren/(e.noOfChildren+t.noOfChildren),e.repulsionForceX-=o*n,e.repulsionForceY-=o*r,t.repulsionForceX+=o*n,t.repulsionForceY+=o*r):(o=this.uniformLeafNodeSizes&&null==e.getChild()&&null==t.getChild()?(i=a.getCenterX()-s.getCenterX(),a.getCenterY()-s.getCenterY()):(c.getIntersection(s,a,l),i=l[2]-l[0],l[3]-l[1]),s=(i=Math.abs(i)<p.MIN_REPULSION_DIST?h.sign(i)*p.MIN_REPULSION_DIST:i)*i+(o=Math.abs(o)<p.MIN_REPULSION_DIST?h.sign(o)*p.MIN_REPULSION_DIST:o)*o,a=Math.sqrt(s),r=(l=this.repulsionConstant*e.noOfChildren*t.noOfChildren/s)*o/a,e.repulsionForceX-=n=l*i/a,e.repulsionForceY-=r,t.repulsionForceX+=n,t.repulsionForceY+=r)},s.prototype.calcGravitationalForce=function(e){var t,i=e.getOwner(),n=(i.getRight()+i.getLeft())/2,r=(i.getTop()+i.getBottom())/2,n=e.getCenterX()-n,r=e.getCenterY()-r,s=Math.abs(n)+e.getWidth()/2,a=Math.abs(r)+e.getHeight()/2;e.getOwner()==this.graphManager.getRoot()?((t=i.getEstimatedSize()*this.gravityRangeFactor)<s||t<a)&&(e.gravitationForceX=-this.gravityConstant*n,e.gravitationForceY=-this.gravityConstant*r):((t=i.getEstimatedSize()*this.compoundGravityRangeFactor)<s||t<a)&&(e.gravitationForceX=-this.gravityConstant*n*this.compoundGravityConstant,e.gravitationForceY=-this.gravityConstant*r*this.compoundGravityConstant)},s.prototype.isConverged=function(){var e,t=!1;return this.totalIterations>this.maxIterations/3&&(t=Math.abs(this.totalDisplacement-this.oldTotalDisplacement)<2),e=this.totalDisplacement<this.totalDisplacementThreshold,this.oldTotalDisplacement=this.totalDisplacement,e||t},s.prototype.animate=function(){this.animationDuringLayout&&!this.isSubLayout&&(this.notAnimatedIterations==this.animationPeriod?(this.update(),this.notAnimatedIterations=0):this.notAnimatedIterations++)},s.prototype.calcNoOfChildrenForAllNodes=function(){for(var e,t=this.graphManager.getAllNodes(),i=0;i<t.length;i++)(e=t[i]).noOfChildren=e.getNoOfChildren()},s.prototype.calcGrid=function(e){for(var t=parseInt(Math.ceil((e.getRight()-e.getLeft())/this.repulsionRange)),i=parseInt(Math.ceil((e.getBottom()-e.getTop())/this.repulsionRange)),n=new Array(t),r=0;r<t;r++)n[r]=new Array(i);for(r=0;r<t;r++)for(var s=0;s<i;s++)n[r][s]=new Array;return n},s.prototype.addNodeToGrid=function(e,t,i){for(var n=parseInt(Math.floor((e.getRect().x-t)/this.repulsionRange)),r=parseInt(Math.floor((e.getRect().width+e.getRect().x-t)/this.repulsionRange)),s=parseInt(Math.floor((e.getRect().y-i)/this.repulsionRange)),a=parseInt(Math.floor((e.getRect().height+e.getRect().y-i)/this.repulsionRange)),o=n;o<=r;o++)for(var l=s;l<=a;l++)this.grid[o][l].push(e),e.setGridCoordinates(n,r,s,a)},s.prototype.updateGrid=function(){var e,t,i=this.getAllNodes();for(this.grid=this.calcGrid(this.graphManager.getRoot()),e=0;e<i.length;e++)t=i[e],this.addNodeToGrid(t,this.graphManager.getRoot().getLeft(),this.graphManager.getRoot().getTop())},s.prototype.calculateRepulsionForceOfANode=function(e,t,i,n){if(this.totalIterations%p.GRID_CALCULATION_CHECK_PERIOD==1&&i||n){var r=new Set;e.surrounding=new Array;for(var s=this.grid,a=e.startX-1;a<e.finishX+2;a++)for(var o=e.startY-1;o<e.finishY+2;o++)if(!(a<0||o<0||a>=s.length||o>=s[0].length))for(var l=0;l<s[a][o].length;l++){var c,h,u=s[a][o][l];e.getOwner()!=u.getOwner()||e==u||t.has(u)||r.has(u)||(c=Math.abs(e.getCenterX()-u.getCenterX())-(e.getWidth()/2+u.getWidth()/2),h=Math.abs(e.getCenterY()-u.getCenterY())-(e.getHeight()/2+u.getHeight()/2),c<=this.repulsionRange&&h<=this.repulsionRange&&r.add(u))}e.surrounding=[].concat(d(r))}for(a=0;a<e.surrounding.length;a++)this.calcRepulsionForce(e,e.surrounding[a])},s.prototype.calcRepulsionRange=function(){return 0},e.exports=s},function(e,t,i){var n,r=i(1),s=i(7);function a(e,t,i){r.call(this,e,t,i),this.idealLength=s.DEFAULT_EDGE_LENGTH}for(n in mt(a,"FDLayoutEdge"),a.prototype=Object.create(r.prototype),r)a[n]=r[n];e.exports=a},function(e,t,i){var n,r=i(3);function s(e,t,i,n){r.call(this,e,t,i,n),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(n in mt(s,"FDLayoutNode"),s.prototype=Object.create(r.prototype),r)s[n]=r[n];s.prototype.setGridCoordinates=function(e,t,i,n){this.startX=e,this.finishX=t,this.startY=i,this.finishY=n},e.exports=s},function(e,t,i){function n(e,t){this.width=0,this.height=0,null!==e&&null!==t&&(this.height=t,this.width=e)}mt(n,"DimensionD"),n.prototype.getWidth=function(){return this.width},n.prototype.setWidth=function(e){this.width=e},n.prototype.getHeight=function(){return this.height},n.prototype.setHeight=function(e){this.height=e},e.exports=n},function(e,t,i){var n=i(14);function r(){this.map={},this.keys=[]}mt(r,"HashMap"),r.prototype.put=function(e,t){var i=n.createID(e);this.contains(i)||(this.map[i]=t,this.keys.push(e))},r.prototype.contains=function(e){n.createID(e);return null!=this.map[e]},r.prototype.get=function(e){e=n.createID(e);return this.map[e]},r.prototype.keySet=function(){return this.keys},e.exports=r},function(e,t,i){var n=i(14);function r(){this.set={}}mt(r,"HashSet"),r.prototype.add=function(e){var t=n.createID(e);this.contains(t)||(this.set[t]=e)},r.prototype.remove=function(e){delete this.set[n.createID(e)]},r.prototype.clear=function(){this.set={}},r.prototype.contains=function(e){return this.set[n.createID(e)]==e},r.prototype.isEmpty=function(){return 0===this.size()},r.prototype.size=function(){return Object.keys(this.set).length},r.prototype.addAllTo=function(e){for(var t=Object.keys(this.set),i=t.length,n=0;n<i;n++)e.push(this.set[t[n]])},r.prototype.size=function(){return Object.keys(this.set).length},r.prototype.addAll=function(e){for(var t=e.length,i=0;i<t;i++){var n=e[i];this.add(n)}},e.exports=r},function(e,t,i){mt(r,"defineProperties");var n=function(e,t,i){return t&&r(e.prototype,t),i&&r(e,i),e};function r(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}mt(s,"_classCallCheck");var a=i(11),i=(mt(o,"Quicksort"),n(o,[{key:"_quicksort",value:mt(function(e,t,i){var n;t<i&&(n=this._partition(e,t,i),this._quicksort(e,t,n),this._quicksort(e,n+1,i))},"_quicksort")},{key:"_partition",value:mt(function(e,t,i){for(var n=this._get(e,t),r=t,s=i;;){for(;this.compareFunction(n,this._get(e,s));)s--;for(;this.compareFunction(this._get(e,r),n);)r++;if(!(r<s))return s;this._swap(e,r,s),r++,s--}},"_partition")},{key:"_get",value:mt(function(e,t){return e instanceof a?e.get_object_at(t):e[t]},"_get")},{key:"_set",value:mt(function(e,t,i){e instanceof a?e.set_object_at(t,i):e[t]=i},"_set")},{key:"_swap",value:mt(function(e,t,i){var n=this._get(e,t);this._set(e,t,this._get(e,i)),this._set(e,i,n)},"_swap")},{key:"_defaultCompareFunction",value:mt(function(e,t){return e<t},"_defaultCompareFunction")}]),o);function o(e,t){s(this,o),null===t&&void 0===t||(this.compareFunction=this._defaultCompareFunction);t=void 0,t=e instanceof a?e.size():e.length;this._quicksort(e,0,t-1)}e.exports=i},function(e,t,i){mt(r,"defineProperties");var n=function(e,t,i){return t&&r(e.prototype,t),i&&r(e,i),e};function r(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function c(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}mt(c,"_classCallCheck");mt(h,"NeedlemanWunsch"),n(h,[{key:"getScore",value:mt(function(){return this.score},"getScore")},{key:"getAlignments",value:mt(function(){return this.alignments},"getAlignments")},{key:"computeGrids",value:mt(function(){for(var e=1;e<this.jMax;e++)this.grid[0][e]=this.grid[0][e-1]+this.gap_penalty,this.tracebackGrid[0][e]=[!1,!1,!0];for(var t=1;t<this.iMax;t++)this.grid[t][0]=this.grid[t-1][0]+this.gap_penalty,this.tracebackGrid[t][0]=[!1,!0,!1];for(var i=1;i<this.iMax;i++)for(var n=1;n<this.jMax;n++){var r=[this.sequence1[i-1]===this.sequence2[n-1]?this.grid[i-1][n-1]+this.match_score:this.grid[i-1][n-1]+this.mismatch_penalty,this.grid[i-1][n]+this.gap_penalty,this.grid[i][n-1]+this.gap_penalty],s=this.arrayAllMaxIndexes(r);this.grid[i][n]=r[s[0]],this.tracebackGrid[i][n]=[s.includes(0),s.includes(1),s.includes(2)]}this.score=this.grid[this.iMax-1][this.jMax-1]},"computeGrids")},{key:"alignmentTraceback",value:mt(function(){var e=[];for(e.push({pos:[this.sequence1.length,this.sequence2.length],seq1:"",seq2:""});e[0];){var t=e[0],i=this.tracebackGrid[t.pos[0]][t.pos[1]];i[0]&&e.push({pos:[t.pos[0]-1,t.pos[1]-1],seq1:this.sequence1[t.pos[0]-1]+t.seq1,seq2:this.sequence2[t.pos[1]-1]+t.seq2}),i[1]&&e.push({pos:[t.pos[0]-1,t.pos[1]],seq1:this.sequence1[t.pos[0]-1]+t.seq1,seq2:"-"+t.seq2}),i[2]&&e.push({pos:[t.pos[0],t.pos[1]-1],seq1:"-"+t.seq1,seq2:this.sequence2[t.pos[1]-1]+t.seq2}),0===t.pos[0]&&0===t.pos[1]&&this.alignments.push({sequence1:t.seq1,sequence2:t.seq2}),e.shift()}return this.alignments},"alignmentTraceback")},{key:"getAllIndexes",value:mt(function(e,t){for(var i=[],n=-1;-1!==(n=e.indexOf(t,n+1));)i.push(n);return i},"getAllIndexes")},{key:"arrayAllMaxIndexes",value:mt(function(e){return this.getAllIndexes(e,Math.max.apply(null,e))},"arrayAllMaxIndexes")}]);n=h;function h(e,t){var i=2<arguments.length&&void 0!==arguments[2]?arguments[2]:1,n=3<arguments.length&&void 0!==arguments[3]?arguments[3]:-1,r=4<arguments.length&&void 0!==arguments[4]?arguments[4]:-1;c(this,h),this.sequence1=e,this.sequence2=t,this.match_score=i,this.mismatch_penalty=n,this.gap_penalty=r,this.iMax=e.length+1,this.jMax=t.length+1,this.grid=new Array(this.iMax);for(var s=0;s<this.iMax;s++){this.grid[s]=new Array(this.jMax);for(var a=0;a<this.jMax;a++)this.grid[s][a]=0}this.tracebackGrid=new Array(this.iMax);for(var o=0;o<this.iMax;o++){this.tracebackGrid[o]=new Array(this.jMax);for(var l=0;l<this.jMax;l++)this.tracebackGrid[o][l]=[null,null,null]}this.alignments=[],this.score=-1,this.computeGrids()}e.exports=n},function(e,t,i){var n=mt(function(){},"layoutBase");n.FDLayout=i(18),n.FDLayoutConstants=i(7),n.FDLayoutEdge=i(19),n.FDLayoutNode=i(20),n.DimensionD=i(21),n.HashMap=i(22),n.HashSet=i(23),n.IGeometry=i(8),n.IMath=i(9),n.Integer=i(10),n.Point=i(12),n.PointD=i(4),n.RandomSeed=i(16),n.RectangleD=i(13),n.Transform=i(17),n.UniqueIDGeneretor=i(14),n.Quicksort=i(24),n.LinkedList=i(11),n.LGraphObject=i(2),n.LGraph=i(5),n.LEdge=i(1),n.LGraphManager=i(6),n.LNode=i(3),n.Layout=i(15),n.LayoutConstants=i(0),n.NeedlemanWunsch=i(25),e.exports=n},function(e,t,i){function n(){this.listeners=[]}mt(n,"Emitter");var r=n.prototype;r.addListener=function(e,t){this.listeners.push({event:e,callback:t})},r.removeListener=function(e,t){for(var i=this.listeners.length;0<=i;i--){var n=this.listeners[i];n.event===e&&n.callback===t&&this.listeners.splice(i,1)}},r.emit=function(e,t){for(var i=0;i<this.listeners.length;i++){var n=this.listeners[i];e===n.event&&n.callback(t)}},e.exports=n}],r={},mt(n,"__webpack_require__"),n.m=i,n.c=r,n.i=function(e){return e},n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:i})},n.n=function(e){var t=e&&e.__esModule?mt(function(){return e.default},"getDefault"):mt(function(){return e},"getModuleExports");return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=26);function n(e){var t;return(r[e]||(t=r[e]={i:e,l:!1,exports:{}},i[e].call(t.exports,t,t.exports,n),t.l=!0,t)).exports}var i,r})}),$$e=W((i,n)=>{"use strict";mt(function(e,t){"object"==typeof i&&"object"==typeof n?n.exports=t(E$e()):"function"==typeof define&&define.amd?define(["layout-base"],t):"object"==typeof i?i.coseBase=t(E$e()):e.coseBase=t(e.layoutBase)},"webpackUniversalModuleDefinition")(i,function(i){return r=[function(e,t){e.exports=i},function(e,t,i){var n,r=i(0).FDLayoutConstants;function s(){}for(n in mt(s,"CoSEConstants"),r)s[n]=r[n];s.DEFAULT_USE_MULTI_LEVEL_SCALING=!1,s.DEFAULT_RADIAL_SEPARATION=r.DEFAULT_EDGE_LENGTH,s.DEFAULT_COMPONENT_SEPERATION=60,s.TILE=!0,s.TILING_PADDING_VERTICAL=10,s.TILING_PADDING_HORIZONTAL=10,s.TREE_REDUCTION_ON_INCREMENTAL=!1,e.exports=s},function(e,t,i){var n,r=i(0).FDLayoutEdge;function s(e,t,i){r.call(this,e,t,i)}for(n in mt(s,"CoSEEdge"),s.prototype=Object.create(r.prototype),r)s[n]=r[n];e.exports=s},function(e,t,i){var n,r=i(0).LGraph;function s(e,t,i){r.call(this,e,t,i)}for(n in mt(s,"CoSEGraph"),s.prototype=Object.create(r.prototype),r)s[n]=r[n];e.exports=s},function(e,t,i){var n,r=i(0).LGraphManager;function s(e){r.call(this,e)}for(n in mt(s,"CoSEGraphManager"),s.prototype=Object.create(r.prototype),r)s[n]=r[n];e.exports=s},function(e,t,i){var n,r=i(0).FDLayoutNode,s=i(0).IMath;function a(e,t,i,n){r.call(this,e,t,i,n)}for(n in mt(a,"CoSENode"),a.prototype=Object.create(r.prototype),r)a[n]=r[n];a.prototype.move=function(){var e=this.graphManager.getLayout();this.displacementX=e.coolingFactor*(this.springForceX+this.repulsionForceX+this.gravitationForceX)/this.noOfChildren,this.displacementY=e.coolingFactor*(this.springForceY+this.repulsionForceY+this.gravitationForceY)/this.noOfChildren,Math.abs(this.displacementX)>e.coolingFactor*e.maxNodeDisplacement&&(this.displacementX=e.coolingFactor*e.maxNodeDisplacement*s.sign(this.displacementX)),Math.abs(this.displacementY)>e.coolingFactor*e.maxNodeDisplacement&&(this.displacementY=e.coolingFactor*e.maxNodeDisplacement*s.sign(this.displacementY)),null==this.child||0==this.child.getNodes().length?this.moveBy(this.displacementX,this.displacementY):this.propogateDisplacementToChildren(this.displacementX,this.displacementY),e.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(e,t){for(var i,n=this.getChild().getNodes(),r=0;r<n.length;r++)null==(i=n[r]).getChild()?(i.moveBy(e,t),i.displacementX+=e,i.displacementY+=t):i.propogateDisplacementToChildren(e,t)},a.prototype.setPred1=function(e){this.pred1=e},a.prototype.getPred1=function(){return pred1},a.prototype.getPred2=function(){return pred2},a.prototype.setNext=function(e){this.next=e},a.prototype.getNext=function(){return next},a.prototype.setProcessed=function(e){this.processed=e},a.prototype.isProcessed=function(){return processed},e.exports=a},function(e,t,i){var n,r=i(0).FDLayout,s=i(4),a=i(3),h=i(5),o=i(2),u=i(1),g=i(0).FDLayoutConstants,d=i(0).LayoutConstants,p=i(0).Point,f=i(0).PointD,m=i(0).Layout,y=i(0).Integer,b=i(0).IGeometry,l=i(0).LGraph,c=i(0).Transform;function v(){r.call(this),this.toBeTiled={}}for(n in mt(v,"CoSELayout"),v.prototype=Object.create(r.prototype),r)v[n]=r[n];v.prototype.newGraphManager=function(){var e=new s(this);return this.graphManager=e},v.prototype.newGraph=function(e){return new a(null,this.graphManager,e)},v.prototype.newNode=function(e){return new h(this.graphManager,e)},v.prototype.newEdge=function(e){return new o(null,null,e)},v.prototype.initParameters=function(){r.prototype.initParameters.call(this,arguments),this.isSubLayout||(u.DEFAULT_EDGE_LENGTH<10?this.idealEdgeLength=10:this.idealEdgeLength=u.DEFAULT_EDGE_LENGTH,this.useSmartIdealEdgeLengthCalculation=u.DEFAULT_USE_SMART_IDEAL_EDGE_LENGTH_CALCULATION,this.springConstant=g.DEFAULT_SPRING_STRENGTH,this.repulsionConstant=g.DEFAULT_REPULSION_STRENGTH,this.gravityConstant=g.DEFAULT_GRAVITY_STRENGTH,this.compoundGravityConstant=g.DEFAULT_COMPOUND_GRAVITY_STRENGTH,this.gravityRangeFactor=g.DEFAULT_GRAVITY_RANGE_FACTOR,this.compoundGravityRangeFactor=g.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR,this.prunedNodesAll=[],this.growTreeIterations=0,this.afterGrowthIterations=0,this.isTreeGrowing=!1,this.isGrowthFinished=!1,this.coolingCycle=0,this.maxCoolingCycle=this.maxIterations/g.CONVERGENCE_CHECK_PERIOD,this.finalTemperature=g.CONVERGENCE_CHECK_PERIOD/this.maxIterations,this.coolingAdjuster=1)},v.prototype.layout=function(){return d.DEFAULT_CREATE_BENDS_AS_NEEDED&&(this.createBendpoints(),this.graphManager.resetAllEdges()),this.level=0,this.classicLayout()},v.prototype.classicLayout=function(){var e,t,i;return 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?u.TREE_REDUCTION_ON_INCREMENTAL&&(this.reduceTrees(),this.graphManager.resetAllNodesToApplyGravitation(),t=new Set(this.getAllNodes()),i=this.nodesWithGravity.filter(function(e){return t.has(e)}),this.graphManager.setAllNodesToApplyGravitation(i)):0<(e=this.getFlatForest()).length?this.positionNodesRadially(e):(this.reduceTrees(),this.graphManager.resetAllNodesToApplyGravitation(),t=new Set(this.getAllNodes()),i=this.nodesWithGravity.filter(function(e){return t.has(e)}),this.graphManager.setAllNodesToApplyGravitation(i),this.positionNodesRandomly()),this.initSpringEmbedder(),this.runSpringEmbedder(),!0},v.prototype.tick=function(){if(this.totalIterations++,this.totalIterations===this.maxIterations&&!this.isTreeGrowing&&!this.isGrowthFinished){if(!(0<this.prunedNodesAll.length))return!0;this.isTreeGrowing=!0}if(this.totalIterations%g.CONVERGENCE_CHECK_PERIOD==0&&!this.isTreeGrowing&&!this.isGrowthFinished){if(this.isConverged()){if(!(0<this.prunedNodesAll.length))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))}var t;if(this.isTreeGrowing&&(this.growTreeIterations%10==0&&(0<this.prunedNodesAll.length?(this.graphManager.updateBounds(),this.updateGrid(),this.growTree(this.prunedNodesAll),this.graphManager.resetAllNodesToApplyGravitation(),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=g.DEFAULT_COOLING_FACTOR_INCREMENTAL):(this.isTreeGrowing=!1,this.isGrowthFinished=!0)),this.growTreeIterations++),this.isGrowthFinished){if(this.isConverged())return!0;this.afterGrowthIterations%10==0&&(this.graphManager.updateBounds(),this.updateGrid()),this.coolingFactor=g.DEFAULT_COOLING_FACTOR_INCREMENTAL*((100-this.afterGrowthIterations)/100),this.afterGrowthIterations++}var e=!this.isTreeGrowing&&!this.isGrowthFinished,i=this.growTreeIterations%10==1&&this.isTreeGrowing||this.afterGrowthIterations%10==1&&this.isGrowthFinished;return this.totalDisplacement=0,this.graphManager.updateBounds(),this.calcSpringForces(),this.calcRepulsionForces(e,i),this.calcGravitationalForces(),this.moveNodes(),this.animate(),!1},v.prototype.getPositionsData=function(){for(var e=this.graphManager.getAllNodes(),t={},i=0;i<e.length;i++){var n=e[i].rect,r=e[i].id;t[r]={id:r,x:n.getCenterX(),y:n.getCenterY(),w:n.width,h:n.height}}return t},v.prototype.runSpringEmbedder=function(){this.initialAnimationPeriod=25,this.animationPeriod=this.initialAnimationPeriod;var e=!1;if("during"===g.ANIMATE)this.emit("layoutstarted");else{for(;!e;)e=this.tick();this.graphManager.updateBounds()}},v.prototype.calculateNodesToApplyGravitationTo=function(){for(var e,t=[],i=this.graphManager.getGraphs(),n=i.length,r=0;r<n;r++)(e=i[r]).updateConnected(),e.isConnected||(t=t.concat(e.getNodes()));return t},v.prototype.createBendpoints=function(){for(var e=(e=[]).concat(this.graphManager.getAllEdges()),t=new Set,i=0;i<e.length;i++){var n=e[i];if(!t.has(n)){var r=n.getSource(),s=n.getTarget();if(r==s)n.getBendpoints().push(new f),n.getBendpoints().push(new f),this.createDummyNodesForBendpoints(n),t.add(n);else{var a=[];if(a=(a=a.concat(r.getEdgeListToNode(s))).concat(s.getEdgeListToNode(r)),!t.has(a[0])){if(1<a.length)for(var o=0;o<a.length;o++){var l=a[o];l.getBendpoints().push(new f),this.createDummyNodesForBendpoints(l)}a.forEach(function(e){t.add(e)})}}}if(t.size==e.length)break}},v.prototype.positionNodesRadially=function(e){for(var t=new p(0,0),i=Math.ceil(Math.sqrt(e.length)),n=0,r=0,s=0,a=new f(0,0),o=0;o<e.length;o++){o%i==0&&(r=n,(s=0)!=o&&(r+=u.DEFAULT_COMPONENT_SEPERATION),n=0);var l=e[o],c=m.findCenterOfTree(l);t.x=s,t.y=r,(a=v.radialLayout(l,c,t)).y>n&&(n=Math.floor(a.y)),s=Math.floor(a.x+u.DEFAULT_COMPONENT_SEPERATION)}this.transform(new f(d.WORLD_CENTER_X-a.x/2,d.WORLD_CENTER_Y-a.y/2))},v.radialLayout=function(e,t,i){var n=Math.max(this.maxDiagonalInTree(e),u.DEFAULT_RADIAL_SEPARATION),t=(v.branchRadialLayout(t,null,0,359,0,n),l.calculateBounds(e)),r=new c;r.setDeviceOrgX(t.getMinX()),r.setDeviceOrgY(t.getMinY()),r.setWorldOrgX(i.x),r.setWorldOrgY(i.y);for(var s=0;s<e.length;s++)e[s].transform(r);n=new f(t.getMaxX(),t.getMaxY());return r.inverseTransformPoint(n)},v.branchRadialLayout=function(e,t,i,n,r,s){var a=(n-i+1)/2;a<0&&(a+=180);var a=(a+i)%360*b.TWO_PI/360,o=(Math.cos(a),r*Math.cos(a)),a=r*Math.sin(a),l=(e.setCenter(o,a),[]),c=(l=l.concat(e.getEdges())).length;null!=t&&c--;for(var h=0,u=l.length,d=e.getEdgesBetween(t);1<d.length;){var p=d[0],p=(d.splice(0,1),l.indexOf(p));0<=p&&l.splice(p,1),u--,c--}for(var o=null!=t?(l.indexOf(d[0])+1)%u:0,g=Math.abs(n-i)/c,f=o;h!=c;f=++f%u){var m=l[f].getOtherEnd(e);m!=t&&(v.branchRadialLayout(m,e,m=(i+h*g)%360,(m+g)%360,r+s,s),h++)}},v.maxDiagonalInTree=function(e){for(var t=y.MIN_VALUE,i=0;i<e.length;i++){var n=e[i].getDiagonal();t<n&&(t=n)}return t},v.prototype.calcRepulsionRange=function(){return 2*(this.level+1)*this.idealEdgeLength},v.prototype.groupZeroDegreeMembers=function(){var l=this,c={};this.memberGroups={},this.idToDummyNode={};for(var e=[],t=this.graphManager.getAllNodes(),i=0;i<t.length;i++){var n=(r=t[i]).getParent();0!==this.getNodeDegreeWithChildren(r)||null!=n.id&&this.getToBeTiled(n)||e.push(r)}for(i=0;i<e.length;i++){var r,s=(r=e[i]).getParent().id;"u"<typeof c[s]&&(c[s]=[]),c[s]=c[s].concat(r)}Object.keys(c).forEach(function(e){if(1<c[e].length){var t="DummyCompound_"+e,i=(l.memberGroups[t]=c[e],c[e][0].getParent()),n=new h(l.graphManager),r=(n.id=t,n.paddingLeft=i.paddingLeft||0,n.paddingRight=i.paddingRight||0,n.paddingBottom=i.paddingBottom||0,n.paddingTop=i.paddingTop||0,l.idToDummyNode[t]=n,l.getGraphManager().add(l.newGraph(),n)),s=i.getChild();s.add(n);for(var a=0;a<c[e].length;a++){var o=c[e][a];s.remove(o),r.add(o)}}})},v.prototype.clearCompounds=function(){var e={},t={};this.performDFSOnCompounds();for(var i=0;i<this.compoundOrder.length;i++)t[this.compoundOrder[i].id]=this.compoundOrder[i],e[this.compoundOrder[i].id]=[].concat(this.compoundOrder[i].getChild().getNodes()),this.graphManager.remove(this.compoundOrder[i].getChild()),this.compoundOrder[i].child=null;this.graphManager.resetAllNodes(),this.tileCompoundMembers(e,t)},v.prototype.clearZeroDegreeMembers=function(){var i=this,n=this.tiledZeroDegreePack=[];Object.keys(this.memberGroups).forEach(function(e){var t=i.idToDummyNode[e];n[e]=i.tileNodes(i.memberGroups[e],t.paddingLeft+t.paddingRight),t.rect.width=n[e].width,t.rect.height=n[e].height})},v.prototype.repopulateCompounds=function(){for(var e=this.compoundOrder.length-1;0<=e;e--){var t=this.compoundOrder[e],i=t.id,n=t.paddingLeft,r=t.paddingTop;this.adjustLocations(this.tiledMemberPack[i],t.rect.x,t.rect.y,n,r)}},v.prototype.repopulateZeroDegreeMembers=function(){var r=this,s=this.tiledZeroDegreePack;Object.keys(s).forEach(function(e){var t=r.idToDummyNode[e],i=t.paddingLeft,n=t.paddingTop;r.adjustLocations(s[e],t.rect.x,t.rect.y,i,n)})},v.prototype.getToBeTiled=function(e){var t=e.id;if(null!=this.toBeTiled[t])return this.toBeTiled[t];e=e.getChild();if(null==e)return this.toBeTiled[t]=!1;for(var i=e.getNodes(),n=0;n<i.length;n++){var r=i[n];if(0<this.getNodeDegree(r))return this.toBeTiled[t]=!1;if(null==r.getChild())this.toBeTiled[r.id]=!1;else if(!this.getToBeTiled(r))return this.toBeTiled[t]=!1}return this.toBeTiled[t]=!0},v.prototype.getNodeDegree=function(e){e.id;for(var t=e.getEdges(),i=0,n=0;n<t.length;n++){var r=t[n];r.getSource().id!==r.getTarget().id&&(i+=1)}return i},v.prototype.getNodeDegreeWithChildren=function(e){var t=this.getNodeDegree(e);if(null!=e.getChild())for(var i=e.getChild().getNodes(),n=0;n<i.length;n++){var r=i[n];t+=this.getNodeDegreeWithChildren(r)}return t},v.prototype.performDFSOnCompounds=function(){this.compoundOrder=[],this.fillCompexOrderByDFS(this.graphManager.getRoot().getNodes())},v.prototype.fillCompexOrderByDFS=function(e){for(var t=0;t<e.length;t++){var i=e[t];null!=i.getChild()&&this.fillCompexOrderByDFS(i.getChild().getNodes()),this.getToBeTiled(i)&&this.compoundOrder.push(i)}},v.prototype.adjustLocations=function(e,t,i,n,r){i+=r;for(var s=t+=n,a=0;a<e.rows.length;a++){var o=e.rows[a];t=s;for(var l=0,c=0;c<o.length;c++){var h=o[c];h.rect.x=t,h.rect.y=i,t+=h.rect.width+e.horizontalPadding,h.rect.height>l&&(l=h.rect.height)}i+=l+e.verticalPadding}},v.prototype.tileCompoundMembers=function(i,n){var r=this;this.tiledMemberPack=[],Object.keys(i).forEach(function(e){var t=n[e];r.tiledMemberPack[e]=r.tileNodes(i[e],t.paddingLeft+t.paddingRight),t.rect.width=r.tiledMemberPack[e].width,t.rect.height=r.tiledMemberPack[e].height})},v.prototype.tileNodes=function(e,t){var i={rows:[],rowWidth:[],rowHeight:[],width:0,height:t,verticalPadding:u.TILING_PADDING_VERTICAL,horizontalPadding:u.TILING_PADDING_HORIZONTAL};e.sort(function(e,t){return e.rect.width*e.rect.height>t.rect.width*t.rect.height?-1:e.rect.width*e.rect.height<t.rect.width*t.rect.height?1:0});for(var n=0;n<e.length;n++){var r=e[n];0==i.rows.length?this.insertNodeToRow(i,r,0,t):this.canAddHorizontal(i,r.rect.width,r.rect.height)?this.insertNodeToRow(i,r,this.getShortestRowIndex(i),t):this.insertNodeToRow(i,r,i.rows.length,t),this.shiftToLastRow(i)}return i},v.prototype.insertNodeToRow=function(e,t,i,n){i==e.rows.length&&(e.rows.push([]),e.rowWidth.push(n),e.rowHeight.push(0));var n=e.rowWidth[i]+t.rect.width,n=(0<e.rows[i].length&&(n+=e.horizontalPadding),e.rowWidth[i]=n,e.width<n&&(e.width=n),t.rect.height),r=(0<i&&(n+=e.verticalPadding),0);n>e.rowHeight[i]&&(r=e.rowHeight[i],e.rowHeight[i]=n,r=e.rowHeight[i]-r),e.height+=r,e.rows[i].push(t)},v.prototype.getShortestRowIndex=function(e){for(var t=-1,i=Number.MAX_VALUE,n=0;n<e.rows.length;n++)e.rowWidth[n]<i&&(t=n,i=e.rowWidth[n]);return t},v.prototype.getLongestRowIndex=function(e){for(var t=-1,i=Number.MIN_VALUE,n=0;n<e.rows.length;n++)e.rowWidth[n]>i&&(t=n,i=e.rowWidth[n]);return t},v.prototype.canAddHorizontal=function(e,t,i){var n,r,s=this.getShortestRowIndex(e);return s<0||(r=e.rowWidth[s])+e.horizontalPadding+t<=e.width||(n=0,e.rowHeight[s]<i&&0<s&&(n=i+e.verticalPadding-e.rowHeight[s]),s=e.width-r>=t+e.horizontalPadding?(e.height+n)/(r+t+e.horizontalPadding):(e.height+n)/e.width,n=i+e.verticalPadding,(s=s<1?1/s:s)<(r=(r=e.width<t?(e.height+n)/t:(e.height+n)/e.width)<1?1/r:r))},v.prototype.shiftToLastRow=function(e){var t=this.getLongestRowIndex(e),i=e.rowWidth.length-1,n=e.rows[t],r=n[n.length-1],s=r.width+e.horizontalPadding;if(e.width-e.rowWidth[i]>s&&t!=i){n.splice(-1,1),e.rows[i].push(r),e.rowWidth[t]=e.rowWidth[t]-s,e.rowWidth[i]=e.rowWidth[i]+s,e.width=e.rowWidth[instance.getLongestRowIndex(e)];for(var a=Number.MIN_VALUE,o=0;o<n.length;o++)n[o].height>a&&(a=n[o].height);0<t&&(a+=e.verticalPadding);s=e.rowHeight[t]+e.rowHeight[i],r=(e.rowHeight[t]=a,e.rowHeight[i]<r.height+e.verticalPadding&&(e.rowHeight[i]=r.height+e.verticalPadding),e.rowHeight[t]+e.rowHeight[i]);e.height+=r-s,this.shiftToLastRow(e)}},v.prototype.tilingPreLayout=function(){u.TILE&&(this.groupZeroDegreeMembers(),this.clearCompounds(),this.clearZeroDegreeMembers())},v.prototype.tilingPostLayout=function(){u.TILE&&(this.repopulateZeroDegreeMembers(),this.repopulateCompounds())},v.prototype.reduceTrees=function(){for(var e,t=[],i=!0;i;){for(var n=this.graphManager.getAllNodes(),r=[],i=!1,s=0;s<n.length;s++)1!=(e=n[s]).getEdges().length||e.getEdges()[0].isInterGraph||null!=e.getChild()||(r.push([e,e.getEdges()[0],e.getOwner()]),i=!0);if(1==i){for(var a=[],o=0;o<r.length;o++)1==r[o][0].getEdges().length&&(a.push(r[o]),r[o][0].getOwner().remove(r[o][0]));t.push(a),this.graphManager.resetAllNodes(),this.graphManager.resetAllEdges()}}this.prunedNodesAll=t},v.prototype.growTree=function(e){for(var t,i=e[e.length-1],n=0;n<i.length;n++)t=i[n],this.findPlaceforPrunedNode(t),t[2].add(t[0]),t[2].add(t[1],t[1].source,t[1].target);e.splice(e.length-1,1),this.graphManager.resetAllNodes(),this.graphManager.resetAllEdges()},v.prototype.findPlaceforPrunedNode=function(e){var t=e[0],e=t==e[1].source?e[1].target:e[1].source,i=e.startX,n=e.finishX,r=e.startY,s=e.finishY,a=[0,0,0,0];if(0<r)for(var o=i;o<=n;o++)a[0]+=this.grid[o][r-1].length+this.grid[o][r].length-1;if(n<this.grid.length-1)for(o=r;o<=s;o++)a[1]+=this.grid[n+1][o].length+this.grid[n][o].length-1;if(s<this.grid[0].length-1)for(o=i;o<=n;o++)a[2]+=this.grid[o][s+1].length+this.grid[o][s].length-1;if(0<i)for(o=r;o<=s;o++)a[3]+=this.grid[i-1][o].length+this.grid[i][o].length-1;for(var l,c,h,u,d=y.MAX_VALUE,p=0;p<a.length;p++)a[p]<d?(d=a[p],l=1,c=p):a[p]==d&&l++;3==l&&0==d?0==a[0]&&0==a[1]&&0==a[2]?h=1:0==a[0]&&0==a[1]&&0==a[3]?h=0:0==a[0]&&0==a[2]&&0==a[3]?h=3:0==a[1]&&0==a[2]&&0==a[3]&&(h=2):h=2==l&&0==d?(u=Math.floor(2*Math.random()),0==a[0]&&0==a[1]?0==u?0:1:0==a[0]&&0==a[2]?0==u?0:2:0==a[0]&&0==a[3]?0==u?0:3:0==a[1]&&0==a[2]?0==u?1:2:0==a[1]&&0==a[3]?0==u?1:3:0==u?2:3):4==l&&0==d?u=Math.floor(4*Math.random()):c,0==h?t.setCenter(e.getCenterX(),e.getCenterY()-e.getHeight()/2-g.DEFAULT_EDGE_LENGTH-t.getHeight()/2):1==h?t.setCenter(e.getCenterX()+e.getWidth()/2+g.DEFAULT_EDGE_LENGTH+t.getWidth()/2,e.getCenterY()):2==h?t.setCenter(e.getCenterX(),e.getCenterY()+e.getHeight()/2+g.DEFAULT_EDGE_LENGTH+t.getHeight()/2):t.setCenter(e.getCenterX()-e.getWidth()/2-g.DEFAULT_EDGE_LENGTH-t.getWidth()/2,e.getCenterY())},e.exports=v},function(e,t,i){var n={};n.layoutBase=i(0),n.CoSEConstants=i(1),n.CoSEEdge=i(2),n.CoSEGraph=i(3),n.CoSEGraphManager=i(4),n.CoSELayout=i(6),n.CoSENode=i(5),e.exports=n}],s={},mt(n,"__webpack_require__"),n.m=r,n.c=s,n.i=function(e){return e},n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:i})},n.n=function(e){var t=e&&e.__esModule?mt(function(){return e.default},"getDefault"):mt(function(){return e},"getModuleExports");return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=7);function n(e){var t;return(s[e]||(t=s[e]={i:e,l:!1,exports:{}},r[e].call(t.exports,t,t.exports,n),t.l=!0,t)).exports}var r,s})}),L$e=W((i,n)=>{"use strict";mt(function(e,t){"object"==typeof i&&"object"==typeof n?n.exports=t($$e()):"function"==typeof define&&define.amd?define(["cose-base"],t):"object"==typeof i?i.cytoscapeCoseBilkent=t($$e()):e.cytoscapeCoseBilkent=t(e.coseBase)},"webpackUniversalModuleDefinition")(i,function(i){return r=[function(e,t){e.exports=i},function(e,t,i){var n=i(0).layoutBase.LayoutConstants,r=i(0).layoutBase.FDLayoutConstants,s=i(0).CoSEConstants,g=i(0).CoSELayout,u=i(0).CoSENode,d=i(0).layoutBase.PointD,p=i(0).layoutBase.DimensionD,a={ready:mt(function(){},"ready"),stop:mt(function(){},"stop"),quality:"default",nodeDimensionsIncludeLabels:!1,refresh:30,fit:!0,padding:10,randomize:!0,nodeRepulsion:4500,idealEdgeLength:50,edgeElasticity:.45,nestingFactor:.1,gravity:.25,numIter:2500,tile:!0,animate:"end",animationDuration:500,tilingPaddingVertical:10,tilingPaddingHorizontal:10,gravityRangeCompound:1.5,gravityCompound:1,gravityRange:3.8,initialEnergyOnIncremental:.5};function o(e,t){var i,n={};for(i in e)n[i]=e[i];for(i in t)n[i]=t[i];return n}function l(e){this.options=o(a,e),c(this.options)}mt(o,"extend"),mt(l,"_CoSELayout");var c=mt(function(e){null!=e.nodeRepulsion&&(s.DEFAULT_REPULSION_STRENGTH=r.DEFAULT_REPULSION_STRENGTH=e.nodeRepulsion),null!=e.idealEdgeLength&&(s.DEFAULT_EDGE_LENGTH=r.DEFAULT_EDGE_LENGTH=e.idealEdgeLength),null!=e.edgeElasticity&&(s.DEFAULT_SPRING_STRENGTH=r.DEFAULT_SPRING_STRENGTH=e.edgeElasticity),null!=e.nestingFactor&&(s.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR=r.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR=e.nestingFactor),null!=e.gravity&&(s.DEFAULT_GRAVITY_STRENGTH=r.DEFAULT_GRAVITY_STRENGTH=e.gravity),null!=e.numIter&&(s.MAX_ITERATIONS=r.MAX_ITERATIONS=e.numIter),null!=e.gravityRange&&(s.DEFAULT_GRAVITY_RANGE_FACTOR=r.DEFAULT_GRAVITY_RANGE_FACTOR=e.gravityRange),null!=e.gravityCompound&&(s.DEFAULT_COMPOUND_GRAVITY_STRENGTH=r.DEFAULT_COMPOUND_GRAVITY_STRENGTH=e.gravityCompound),null!=e.gravityRangeCompound&&(s.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR=r.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR=e.gravityRangeCompound),null!=e.initialEnergyOnIncremental&&(s.DEFAULT_COOLING_FACTOR_INCREMENTAL=r.DEFAULT_COOLING_FACTOR_INCREMENTAL=e.initialEnergyOnIncremental),"draft"==e.quality?n.QUALITY=0:"proof"==e.quality?n.QUALITY=2:n.QUALITY=1,s.NODE_DIMENSIONS_INCLUDE_LABELS=r.NODE_DIMENSIONS_INCLUDE_LABELS=n.NODE_DIMENSIONS_INCLUDE_LABELS=e.nodeDimensionsIncludeLabels,s.DEFAULT_INCREMENTAL=r.DEFAULT_INCREMENTAL=n.DEFAULT_INCREMENTAL=!e.randomize,s.ANIMATE=r.ANIMATE=n.ANIMATE=e.animate,s.TILE=e.tile,s.TILING_PADDING_VERTICAL="function"==typeof e.tilingPaddingVertical?e.tilingPaddingVertical.call():e.tilingPaddingVertical,s.TILING_PADDING_HORIZONTAL="function"==typeof e.tilingPaddingHorizontal?e.tilingPaddingHorizontal.call():e.tilingPaddingHorizontal},"getUserOptions"),i=(l.prototype.run=function(){var a,o,l=this.options,c=(this.idToLNode={},this.layout=new g),h=this,e=(h.stopped=!1,this.cy=this.options.cy,this.cy.trigger({type:"layoutstart",layout:this}),c.newGraphManager()),t=(this.gm=e,this.options.eles.nodes()),i=this.options.eles.edges();this.root=e.addRoot(),this.processChildrenList(this.root,this.getTopMostNodes(t),c);for(var n=0;n<i.length;n++){var r=i[n],s=this.idToLNode[r.data("source")],u=this.idToLNode[r.data("target")];s!==u&&0==s.getEdgesBetween(u).length&&(e.add(c.newEdge(),s,u).id=r.id())}var d=mt(function(e,t){t=(e="number"==typeof e?t:e).data("id"),e=h.idToLNode[t];return{x:e.getRect().getCenterX(),y:e.getRect().getCenterY()}},"getPositions"),p=mt(function e(){for(var t,s,i=mt(function(){l.fit&&l.cy.fit(l.eles,l.padding),a||(a=!0,h.cy.one("layoutready",l.ready),h.cy.trigger({type:"layoutready",layout:h}))},"afterReposition"),n=h.options.refresh,r=0;r<n&&!t;r++)t=h.stopped||h.layout.tick();t?(c.checkLayoutSuccess()&&!c.isSubLayout&&c.doPostLayout(),c.tilingPostLayout&&c.tilingPostLayout(),c.isLayoutFinished=!0,h.options.eles.nodes().positions(d),i(),h.cy.one("layoutstop",h.options.stop),h.cy.trigger({type:"layoutstop",layout:h}),o&&cancelAnimationFrame(o),a=!1):(s=h.layout.getPositionsData(),l.eles.nodes().positions(function(e,t){if(!(e="number"==typeof e?t:e).isParent()){for(var i=e.id(),n=s[i],r=e;null==n&&(n=s[r.data("parent")]||s["DummyCompound_"+r.data("parent")],s[i]=n,null!=(r=r.parent()[0])););return null!=n?{x:n.x,y:n.y}:{x:e.position("x"),y:e.position("y")}}}),i(),o=requestAnimationFrame(e))},"iterateAnimated");return c.addListener("layoutstarted",function(){"during"===h.options.animate&&(o=requestAnimationFrame(p))}),c.runLayout(),"during"!==this.options.animate&&(h.options.eles.nodes().not(":parent").layoutPositions(h,h.options,d),a=!1),this},l.prototype.getTopMostNodes=function(e){for(var n={},t=0;t<e.length;t++)n[e[t].id()]=!0;return e.filter(function(e,t){for(var i=(e="number"==typeof e?t:e).parent()[0];null!=i;){if(n[i.id()])return!1;i=i.parent()[0]}return!0})},l.prototype.processChildrenList=function(e,t,i){for(var n=t.length,r=0;r<n;r++){var s,a,o,l=t[r],c=l.children(),h=l.layoutDimensions({nodeDimensionsIncludeLabels:this.options.nodeDimensionsIncludeLabels});(h=null!=l.outerWidth()&&null!=l.outerHeight()?e.add(new u(i.graphManager,new d(l.position("x")-h.w/2,l.position("y")-h.h/2),new p(parseFloat(h.w),parseFloat(h.h)))):e.add(new u(this.graphManager))).id=l.data("id"),h.paddingLeft=parseInt(l.css("padding")),h.paddingTop=parseInt(l.css("padding")),h.paddingRight=parseInt(l.css("padding")),h.paddingBottom=parseInt(l.css("padding")),this.options.nodeDimensionsIncludeLabels&&l.isParent()&&(o=l.boundingBox({includeLabels:!0,includeNodes:!1}).w,s=l.boundingBox({includeLabels:!0,includeNodes:!1}).h,a=l.css("text-halign"),h.labelWidth=o,h.labelHeight=s,h.labelPos=a),this.idToLNode[l.data("id")]=h,isNaN(h.rect.x)&&(h.rect.x=0),isNaN(h.rect.y)&&(h.rect.y=0),null!=c&&0<c.length&&(o=i.getGraphManager().add(i.newGraph(),h),this.processChildrenList(o,c,i))}},l.prototype.stop=function(){return this.stopped=!0,this},mt(function(e){e("layout","cose-bilkent",l)},"register"));typeof cytoscape<"u"&&i(cytoscape),e.exports=i}],s={},mt(n,"__webpack_require__"),n.m=r,n.c=s,n.i=function(e){return e},n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:i})},n.n=function(e){var t=e&&e.__esModule?mt(function(){return e.default},"getDefault"):mt(function(){return e},"getModuleExports");return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=1);function n(e){var t;return(s[e]||(t=s[e]={i:e,l:!1,exports:{}},r[e].call(t.exports,t,t.exports,n),t.l=!0,t)).exports}var r,s})});function R$e(e,t,i,n,r){return e.insert("polygon",":first-child").attr("points",n.map(function(e){return e.x+","+e.y}).join(" ")).attr("transform","translate("+(r.width-t)/2+", "+i+")")}var M$e,I$e,N$e,D$e,O$e,P$e,B$e,F$e,j$e,z$e=e(()=>{"use strict";eL(),sC(),M$e=mt(function(e,t,i,n){t.append("path").attr("id","node-"+i.id).attr("class","node-bkg node-"+e.type2Str(i.type)).attr("d",`M0 ${i.height-5} v${10-i.height} q0,-5 5,-5 h${i.width-10} q5,0 5,5 v${i.height-5} H0 Z`),t.append("line").attr("class","node-line-"+n).attr("x1",0).attr("y1",i.height).attr("x2",i.width).attr("y2",i.height)},"defaultBkg"),I$e=mt(function(e,t,i){t.append("rect").attr("id","node-"+i.id).attr("class","node-bkg node-"+e.type2Str(i.type)).attr("height",i.height).attr("width",i.width)},"rectBkg"),N$e=mt(function(e,t,i){var n=i.width,r=i.height,s=.15*n,a=.25*n,o=.35*n,l=.2*n;t.append("path").attr("id","node-"+i.id).attr("class","node-bkg node-"+e.type2Str(i.type)).attr("d",`M0 0 a${s},${s} 0 0,1 ${.25*n},${-1*n*.1}
|
||
a${o},${o} 1 0,1 ${.4*n},${-1*n*.1}
|
||
a${a},${a} 1 0,1 ${.35*n},${.2*+n}
|
||
|
||
a${s},${s} 1 0,1 ${.15*n},${.35*+r}
|
||
a${l},${l} 1 0,1 ${-1*n*.15},${.65*+r}
|
||
|
||
a${a},${s} 1 0,1 ${-1*n*.25},${.15*n}
|
||
a${o},${o} 1 0,1 ${-1*n*.5},0
|
||
a${s},${s} 1 0,1 ${-1*n*.25},${-1*n*.15}
|
||
|
||
a${s},${s} 1 0,1 ${-1*n*.1},${-1*r*.35}
|
||
a${l},${l} 1 0,1 ${.1*n},${-1*r*.65}
|
||
|
||
H0 V0 Z`)},"cloudBkg"),D$e=mt(function(e,t,i){var n=i.width,r=i.height,s=.15*n;t.append("path").attr("id","node-"+i.id).attr("class","node-bkg node-"+e.type2Str(i.type)).attr("d",`M0 0 a${s},${s} 1 0,0 ${.25*n},${-1*r*.1}
|
||
a${s},${s} 1 0,0 ${.25*n},0
|
||
a${s},${s} 1 0,0 ${.25*n},0
|
||
a${s},${s} 1 0,0 ${.25*n},${.1*+r}
|
||
|
||
a${s},${s} 1 0,0 ${.15*n},${.33*+r}
|
||
a${.8*s},${.8*s} 1 0,0 0,${.34*+r}
|
||
a${s},${s} 1 0,0 ${-1*n*.15},${.33*+r}
|
||
|
||
a${s},${s} 1 0,0 ${-1*n*.25},${.15*r}
|
||
a${s},${s} 1 0,0 ${-1*n*.25},0
|
||
a${s},${s} 1 0,0 ${-1*n*.25},0
|
||
a${s},${s} 1 0,0 ${-1*n*.25},${-1*r*.15}
|
||
|
||
a${s},${s} 1 0,0 ${-1*n*.1},${-1*r*.33}
|
||
a${.8*s},${.8*s} 1 0,0 0,${-1*r*.34}
|
||
a${s},${s} 1 0,0 ${.1*n},${-1*r*.33}
|
||
|
||
H0 V0 Z`)},"bangBkg"),O$e=mt(function(e,t,i){t.append("circle").attr("id","node-"+i.id).attr("class","node-bkg node-"+e.type2Str(i.type)).attr("r",i.width/2)},"circleBkg"),mt(R$e,"insertPolygonShape"),P$e=mt(function(e,t,i){var n=i.height,r=n/4,s=i.width-i.padding+2*r;R$e(t,s,n,[{x:r,y:0},{x:s-r,y:0},{x:s,y:-n/2},{x:s-r,y:-n},{x:r,y:-n},{x:0,y:-n/2}],i)},"hexagonBkg"),B$e=mt(function(e,t,i){t.append("rect").attr("id","node-"+i.id).attr("class","node-bkg node-"+e.type2Str(i.type)).attr("height",i.height).attr("rx",i.padding).attr("ry",i.padding).attr("width",i.width)},"roundedRectBkg"),F$e=mt(async function(e,t,i,n,r){var s=r.htmlLabels,a=n%11,n=t.append("g");let o="section-"+(i.section=a);a<0&&(o+=" section-root"),n.attr("class",(i.class?i.class+" ":"")+"mindmap-node "+o);var l=n.append("g"),t=n.append("g"),c=i.descr.replace(/(<br\/*>)/g,`
|
||
`),c=(await J$(t,c,{useHtmlLabels:s,width:i.width,classes:"mindmap-node-label"},r),s||t.attr("dy","1em").attr("alignment-baseline","middle").attr("dominant-baseline","middle").attr("text-anchor","middle"),t.node().getBBox()),[r]=eC(r.fontSize);switch(i.height=c.height+1.1*r*.5+i.padding,i.width=c.width+2*i.padding,i.icon?i.type===e.nodeType.CIRCLE?(i.height+=50,i.width+=50,n.append("foreignObject").attr("height","50px").attr("width",i.width).attr("style","text-align: center;").append("div").attr("class","icon-container").append("i").attr("class","node-icon-"+a+" "+i.icon),t.attr("transform","translate("+i.width/2+", "+(i.height/2-1.5*i.padding)+")")):(i.width+=50,r=i.height,i.height=Math.max(r,60),r=Math.abs(i.height-r),n.append("foreignObject").attr("width","60px").attr("height",i.height).attr("style","text-align: center;margin-top:"+r/2+"px;").append("div").attr("class","icon-container").append("i").attr("class","node-icon-"+a+" "+i.icon),t.attr("transform","translate("+(25+i.width/2)+", "+(r/2+i.padding/2)+")")):s?(r=(i.width-c.width)/2,s=(i.height-c.height)/2,t.attr("transform","translate("+r+", "+s+")")):(c=i.width/2,r=i.padding/2,t.attr("transform","translate("+c+", "+r+")")),i.type){case e.nodeType.DEFAULT:M$e(e,l,i,a);break;case e.nodeType.ROUNDED_RECT:B$e(e,l,i,a);break;case e.nodeType.RECT:I$e(e,l,i,a);break;case e.nodeType.CIRCLE:l.attr("transform","translate("+i.width/2+", "+ +i.height/2+")"),O$e(e,l,i,a);break;case e.nodeType.CLOUD:N$e(e,l,i,a);break;case e.nodeType.BANG:D$e(e,l,i,a);break;case e.nodeType.HEXAGON:P$e(e,l,i,a)}return e.setElementForId(i.id,n),i.height},"drawNode"),j$e=mt(function(e,t){var e=e.getElementById(t.id),i=t.x||0,t=t.y||0;e.attr("transform","translate("+i+","+t+")")},"positionNode")});async function H$e(i,n,e,r,s){await F$e(i,n,e,r,s),e.children&&await Promise.all(e.children.map((e,t)=>H$e(i,n,e,r<0?t:r,s)))}function U$e(n,e){e.edges().map((e,t)=>{var i=e.data();e[0]._private.bodyBounds&&(e=e[0]._private.rscratch,I.trace("Edge: ",t,i),n.insert("path").attr("d",`M ${e.startX},${e.startY} L ${e.midX},${e.midY} L${e.endX},${e.endY} `).attr("class","edge section-edge-"+i.section+" edge-depth-"+i.depth))})}function q$e(t,i,n,r){i.add({group:"nodes",data:{id:t.id.toString(),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(e=>{q$e(e,i,n,r+1),i.add({group:"edges",data:{id:t.id+"_"+e.id,source:t.id,target:e.id,depth:r,section:e.section}})})}function W$e(n,r){return new Promise(t=>{let e=G("body").append("div").attr("id","cy").attr("style","display:none"),i=C$e({container:document.getElementById("cy"),style:[{selector:"edge",style:{"curve-style":"bezier"}}]});e.remove(),q$e(n,i,r,0),i.nodes().forEach(function(t){t.layoutDimensions=()=>{var e=t.data();return{w:e.width,h:e.height}}}),i.layout({name:"cose-bilkent",quality:"proof",styleEnabled:!1,animate:!1}).run(),i.ready(e=>{I.info("Ready",e),t(i)})})}function V$e(r,e){e.nodes().map((e,t)=>{var i=e.data(),n=(i.x=e.position().x,i.y=e.position().y,j$e(r,i),r.getElementById(i.nodeId));I.info("id:",t,"Position: (",e.position().x,", ",e.position().y,")",i),n.attr("transform",`translate(${e.position().x-i.width/2}, ${e.position().y-i.height/2})`),n.attr("attr",`apa-${t})`)})}var G$e,Y$e,X$e,K$e,Z$e,Q$e=e(()=>{"use strict";A$e(),G$e=ie(L$e(),1),a6(),Cu(),t(),Mye(),uh(),z$e(),Ln(),C$e.use(G$e.default),mt(H$e,"drawNodes"),mt(U$e,"drawEdges"),mt(q$e,"addNodes"),mt(W$e,"layoutMindmap"),mt(V$e,"positionNodes"),G$e=mt(async(e,t,i,n)=>{I.debug(`Rendering mindmap diagram
|
||
`+e);var r,s,a,e=n.db,n=e.getMindmap();n&&((r=N()).htmlLabels=!1,(s=(t=_ye(t)).append("g")).attr("class","mindmap-edges"),(a=t.append("g")).attr("class","mindmap-nodes"),await H$e(e,a,n,-1,r),U$e(s,a=await W$e(n,r)),V$e(e,a),sh(void 0,t,r.mindmap?.padding??vi.mindmap.padding,r.mindmap?.useMaxWidth??vi.mindmap.useMaxWidth))},"draw"),Y$e={draw:G$e}}),J$e=e(()=>{"use strict";xn(),X$e=mt(t=>{let i="";for(let e=0;e<t.THEME_COLOR_LIMIT;e++)t["lineColor"+e]=t["lineColor"+e]||t["cScaleInv"+e],Wt(t["lineColor"+e])?t["lineColor"+e]=s(t["lineColor"+e],20):t["lineColor"+e]=Kt(t["lineColor"+e],20);for(let e=0;e<t.THEME_COLOR_LIMIT;e++){var n=""+(17-3*e);i+=`
|
||
.section-${e-1} rect, .section-${e-1} path, .section-${e-1} circle, .section-${e-1} polygon, .section-${e-1} path {
|
||
fill: ${t["cScale"+e]};
|
||
}
|
||
.section-${e-1} text {
|
||
fill: ${t["cScaleLabel"+e]};
|
||
}
|
||
.node-icon-${e-1} {
|
||
font-size: 40px;
|
||
color: ${t["cScaleLabel"+e]};
|
||
}
|
||
.section-edge-${e-1}{
|
||
stroke: ${t["cScale"+e]};
|
||
}
|
||
.edge-depth-${e-1}{
|
||
stroke-width: ${n};
|
||
}
|
||
.section-${e-1} line {
|
||
stroke: ${t["cScaleInv"+e]} ;
|
||
stroke-width: 3;
|
||
}
|
||
|
||
.disabled, .disabled circle, .disabled text {
|
||
fill: lightgray;
|
||
}
|
||
.disabled text {
|
||
fill: #efefef;
|
||
}
|
||
`}return i},"genSections"),K$e=mt(e=>`
|
||
.edge {
|
||
stroke-width: 3;
|
||
}
|
||
${X$e(e)}
|
||
.section-root rect, .section-root path, .section-root circle, .section-root polygon {
|
||
fill: ${e.git0};
|
||
}
|
||
.section-root text {
|
||
fill: ${e.gitBranchLabel0};
|
||
}
|
||
.icon-container {
|
||
height:100%;
|
||
display: flex;
|
||
justify-content: center;
|
||
align-items: center;
|
||
}
|
||
.edge {
|
||
fill: none;
|
||
}
|
||
.mindmap-node-label {
|
||
dy: 1em;
|
||
alignment-baseline: middle;
|
||
text-anchor: middle;
|
||
dominant-baseline: middle;
|
||
text-align: center;
|
||
}
|
||
`,"getStyles"),Z$e=K$e}),eLe={};V(eLe,{diagram:()=>tLe});var tLe,iLe,nLe,rLe,sLe,aLe,oLe,lLe,cLe,hLe,uLe,dLe,pLe,gLe,fLe,mLe,yLe,bLe,vLe,xLe,wLe,kLe,TLe,SLe,_Le,CLe=e(()=>{"use strict";Hwe(),Uwe(),Q$e(),J$e(),tLe={get db(){return new jwe},renderer:Y$e,parser:Bwe,styles:Z$e}}),ALe=e(()=>{"use strict";function e(){this.yy={}}var t,i,n,r,s,a,o,l,c,h,u,d,p,g,f,m,y,b,v,x;t=mt(function(e,t,i,n){for(i=i||{},n=e.length;n--;i[e[n]]=t);return i},"o"),i=[1,4],n=[1,13],r=[1,12],s=[1,15],a=[1,16],o=[1,20],l=[1,19],c=[6,7,8],h=[1,26],u=[1,24],d=[1,25],p=[6,7,11],g=[1,31],f=[6,7,11,24],m=[1,6,13,16,17,20,23],y=[1,35],b=[1,36],v=[1,6,7,11,13,16,17,20,23],x=[1,38],i={trace:mt(function(){},"trace"),yy:{},symbols_:{error:2,start:3,mindMap:4,spaceLines:5,SPACELINE:6,NL:7,KANBAN:8,document:9,stop:10,EOF:11,statement:12,SPACELIST:13,node:14,shapeData:15,ICON:16,CLASS:17,nodeWithId:18,nodeWithoutId:19,NODE_DSTART:20,NODE_DESCR:21,NODE_DEND:22,NODE_ID:23,SHAPE_DATA:24,$accept:0,$end:1},terminals_:{2:"error",6:"SPACELINE",7:"NL",8:"KANBAN",11:"EOF",13:"SPACELIST",16:"ICON",17:"CLASS",20:"NODE_DSTART",21:"NODE_DESCR",22:"NODE_DEND",23:"NODE_ID",24:"SHAPE_DATA"},productions_:[0,[3,1],[3,2],[5,1],[5,2],[5,2],[4,2],[4,3],[10,1],[10,1],[10,1],[10,2],[10,2],[9,3],[9,2],[12,3],[12,2],[12,2],[12,2],[12,1],[12,2],[12,1],[12,1],[12,1],[12,1],[14,1],[14,1],[19,3],[18,1],[18,4],[15,2],[15,1]],performAction:mt(function(e,t,i,n,r,s,a){var o=s.length-1;switch(r){case 6:case 7:return n;case 8:n.getLogger().trace("Stop NL ");break;case 9:n.getLogger().trace("Stop EOF ");break;case 11:n.getLogger().trace("Stop NL2 ");break;case 12:n.getLogger().trace("Stop EOF2 ");break;case 15:n.getLogger().info("Node: ",s[o-1].id),n.addNode(s[o-2].length,s[o-1].id,s[o-1].descr,s[o-1].type,s[o]);break;case 16:n.getLogger().info("Node: ",s[o].id),n.addNode(s[o-1].length,s[o].id,s[o].descr,s[o].type);break;case 17:n.getLogger().trace("Icon: ",s[o]),n.decorateNode({icon:s[o]});break;case 18:case 23:n.decorateNode({class:s[o]});break;case 19:n.getLogger().trace("SPACELIST");break;case 20:n.getLogger().trace("Node: ",s[o-1].id),n.addNode(0,s[o-1].id,s[o-1].descr,s[o-1].type,s[o]);break;case 21:n.getLogger().trace("Node: ",s[o].id),n.addNode(0,s[o].id,s[o].descr,s[o].type);break;case 22:n.decorateNode({icon:s[o]});break;case 27:n.getLogger().trace("node found ..",s[o-2]),this.$={id:s[o-1],descr:s[o-1],type:n.getType(s[o-2],s[o])};break;case 28:this.$={id:s[o],descr:s[o],type:0};break;case 29:n.getLogger().trace("node found ..",s[o-3]),this.$={id:s[o-3],descr:s[o-1],type:n.getType(s[o-2],s[o])};break;case 30:this.$=s[o-1]+s[o];break;case 31:this.$=s[o]}},"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],8:i},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:i},{6:n,7:[1,10],9:9,12:11,13:r,14:14,16:s,17:a,18:17,19:18,20:o,23:l},t(c,[2,3]),{1:[2,2]},t(c,[2,4]),t(c,[2,5]),{1:[2,6],6:n,12:21,13:r,14:14,16:s,17:a,18:17,19:18,20:o,23:l},{6:n,9:22,12:11,13:r,14:14,16:s,17:a,18:17,19:18,20:o,23:l},{6:h,7:u,10:23,11:d},t(p,[2,24],{18:17,19:18,14:27,16:[1,28],17:[1,29],20:o,23:l}),t(p,[2,19]),t(p,[2,21],{15:30,24:g}),t(p,[2,22]),t(p,[2,23]),t(f,[2,25]),t(f,[2,26]),t(f,[2,28],{20:[1,32]}),{21:[1,33]},{6:h,7:u,10:34,11:d},{1:[2,7],6:n,12:21,13:r,14:14,16:s,17:a,18:17,19:18,20:o,23:l},t(m,[2,14],{7:y,11:b}),t(v,[2,8]),t(v,[2,9]),t(v,[2,10]),t(p,[2,16],{15:37,24:g}),t(p,[2,17]),t(p,[2,18]),t(p,[2,20],{24:x}),t(f,[2,31]),{21:[1,39]},{22:[1,40]},t(m,[2,13],{7:y,11:b}),t(v,[2,11]),t(v,[2,12]),t(p,[2,15],{24:x}),t(f,[2,30]),{22:[1,41]},t(f,[2,27]),t(f,[2,29])],defaultActions:{2:[2,1],6:[2,2]},parseError:mt(function(e,t){var i;if(!t.recoverable)throw(i=new Error(e)).hash=t,i;this.trace(e)},"parseError"),parse:mt(function(e){var t,i=this,n=[0],r=[],s=[null],a=[],o=this.table,l="",c=0,h=0,u=0,d=1,p=a.slice.call(arguments,1),g=Object.create(this.lexer),f={yy:{}};for(t in this.yy)Object.prototype.hasOwnProperty.call(this.yy,t)&&(f.yy[t]=this.yy[t]);g.setInput(e,f.yy),f.yy.lexer=g,f.yy.parser=this,"u"<typeof g.yylloc&&(g.yylloc={});var m=g.yylloc,y=(a.push(m),g.options&&g.options.ranges);function b(){var e=r.pop()||g.lex()||d;return"number"!=typeof e&&(e instanceof Array&&(e=(r=e).pop()),e=i.symbols_[e]||e),e}"function"==typeof f.yy.parseError?this.parseError=f.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError,mt(function(e){n.length=n.length-2*e,s.length=s.length-e,a.length=a.length-e},"popStack"),mt(b,"lex");for(var v,x,w,k,T,S,_,C={};;){if(w=n[n.length-1],"u"<typeof(k=this.defaultActions[w]||((null===v||"u"<typeof v)&&(v=b()),o[w]&&o[w][v]))||!k.length||!k[0]){var A="",E=[];for(T in o[w])this.terminals_[T]&&2<T&&E.push("'"+this.terminals_[T]+"'");A=g.showPosition?"Parse error on line "+(c+1)+`:
|
||
`+g.showPosition()+`
|
||
Expecting `+E.join(", ")+", got '"+(this.terminals_[v]||v)+"'":"Parse error on line "+(c+1)+": Unexpected "+(v==d?"end of input":"'"+(this.terminals_[v]||v)+"'"),this.parseError(A,{text:g.match,token:this.terminals_[v]||v,line:g.yylineno,loc:m,expected:E})}if(k[0]instanceof Array&&1<k.length)throw new Error("Parse Error: multiple actions possible at state: "+w+", token: "+v);switch(k[0]){case 1:n.push(v),s.push(g.yytext),a.push(g.yylloc),n.push(k[1]),v=null,x?(v=x,x=null):(h=g.yyleng,l=g.yytext,c=g.yylineno,m=g.yylloc,0<u&&u--);break;case 2:if(S=this.productions_[k[1]][1],C.$=s[s.length-S],C._$={first_line:a[a.length-(S||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(S||1)].first_column,last_column:a[a.length-1].last_column},y&&(C._$.range=[a[a.length-(S||1)].range[0],a[a.length-1].range[1]]),typeof(_=this.performAction.apply(C,[l,h,c,f.yy,k[1],s,a].concat(p)))<"u")return _;S&&(n=n.slice(0,-1*S*2),s=s.slice(0,-1*S),a=a.slice(0,-1*S)),n.push(this.productions_[k[1]][0]),s.push(C.$),a.push(C._$),_=o[n[n.length-2]][n[n.length-1]],n.push(_);break;case 3:return!0}}return!0},"parse")},c={EOF:1,parseError:mt(function(e,t){if(!this.yy.parser)throw new Error(e);this.yy.parser.parseError(e,t)},"parseError"),setInput:mt(function(e,t){return this.yy=t||this.yy||{},this._input=e,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:mt(function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.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),e},"input"),unput:mt(function(e){var t=e.length,i=e.split(/(?:\r\n?|\n)/g),e=(this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t,this.match.split(/(?:\r\n?|\n)/g)),n=(this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),i.length-1&&(this.yylineno-=i.length-1),this.yylloc.range);return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:i?(i.length===e.length?this.yylloc.first_column:0)+e[e.length-i.length].length-i[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[n[0],n[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},"unput"),more:mt(function(){return this._more=!0,this},"more"),reject:mt(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).
|
||
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"reject"),less:mt(function(e){this.unput(this.match.slice(e))},"less"),pastInput:mt(function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(20<e.length?"...":"")+e.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:mt(function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(20<e.length?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:mt(function(){var e=this.pastInput(),t=new Array(e.length+1).join("-");return e+this.upcomingInput()+`
|
||
`+t+"^"},"showPosition"),test_match:mt(function(e,t){var i,n;if(this.options.backtrack_lexer&&(n={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)&&(n.yylloc.range=this.yylloc.range.slice(0)),(i=e[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=i.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:i?i[i.length-1].length-i[i.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+e[0].length},this.yytext+=e[0],this.match+=e[0],this.matches=e,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(e[0].length),this.matched+=e[0],i=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),i)return i;if(this._backtrack)for(var r in n)this[r]=n[r];return!1},"test_match"),next:mt(function(){if(this.done)return this.EOF;var e,t,i,n;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var r=this._currentRules(),s=0;s<r.length;s++)if((i=this._input.match(this.rules[r[s]]))&&(!t||i[0].length>t[0].length)){if(t=i,n=s,this.options.backtrack_lexer){if(!1!==(e=this.test_match(i,r[s])))return e;if(this._backtrack){t=!1;continue}return!1}if(!this.options.flex)break}return t?!1!==(e=this.test_match(t,r[n]))&&e:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
|
||
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:mt(function(){return this.next()||this.lex()},"lex"),begin:mt(function(e){this.conditionStack.push(e)},"begin"),popState:mt(function(){return 0<this.conditionStack.length-1?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:mt(function(){return(this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]]:this.conditions.INITIAL).rules},"_currentRules"),topState:mt(function(e){return 0<=(e=this.conditionStack.length-1-Math.abs(e||0))?this.conditionStack[e]:"INITIAL"},"topState"),pushState:mt(function(e){this.begin(e)},"pushState"),stateStackSize:mt(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:mt(function(e,t,i,n){switch(i){case 0:return this.pushState("shapeData"),t.yytext="",24;case 1:return this.pushState("shapeDataStr"),24;case 2:return this.popState(),24;case 3:return t.yytext=t.yytext.replace(/\n\s*/g,"<br/>"),24;case 4:return 24;case 5:this.popState();break;case 6:return e.getLogger().trace("Found comment",t.yytext),6;case 7:return 8;case 8:this.begin("CLASS");break;case 9:return this.popState(),17;case 10:this.popState();break;case 11:e.getLogger().trace("Begin icon"),this.begin("ICON");break;case 12:return e.getLogger().trace("SPACELINE"),6;case 13:return 7;case 14:return 16;case 15:e.getLogger().trace("end icon"),this.popState();break;case 16:return e.getLogger().trace("Exploding node"),this.begin("NODE"),20;case 17:return e.getLogger().trace("Cloud"),this.begin("NODE"),20;case 18:return e.getLogger().trace("Explosion Bang"),this.begin("NODE"),20;case 19:return e.getLogger().trace("Cloud Bang"),this.begin("NODE"),20;case 20:case 21:case 22:case 23:return this.begin("NODE"),20;case 24:return 13;case 25:return 23;case 26:return 11;case 27:this.begin("NSTR2");break;case 28:return"NODE_DESCR";case 29:this.popState();break;case 30:e.getLogger().trace("Starting NSTR"),this.begin("NSTR");break;case 31:return e.getLogger().trace("description:",t.yytext),"NODE_DESCR";case 32:this.popState();break;case 33:return this.popState(),e.getLogger().trace("node end ))"),"NODE_DEND";case 34:return this.popState(),e.getLogger().trace("node end )"),"NODE_DEND";case 35:return this.popState(),e.getLogger().trace("node end ...",t.yytext),"NODE_DEND";case 36:return this.popState(),e.getLogger().trace("node end (("),"NODE_DEND";case 37:case 38:return this.popState(),e.getLogger().trace("node end (-"),"NODE_DEND";case 39:case 40:return this.popState(),e.getLogger().trace("node end (("),"NODE_DEND";case 41:case 42:return e.getLogger().trace("Long description:",t.yytext),21}},"anonymous"),rules:[/^(?:@\{)/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^\"]+)/i,/^(?:[^}^"]+)/i,/^(?:\})/i,/^(?:\s*%%.*)/i,/^(?:kanban\b)/i,/^(?::::)/i,/^(?:.+)/i,/^(?:\n)/i,/^(?:::icon\()/i,/^(?:[\s]+[\n])/i,/^(?:[\n]+)/i,/^(?:[^\)]+)/i,/^(?:\))/i,/^(?:-\))/i,/^(?:\(-)/i,/^(?:\)\))/i,/^(?:\))/i,/^(?:\(\()/i,/^(?:\{\{)/i,/^(?:\()/i,/^(?:\[)/i,/^(?:[\s]+)/i,/^(?:[^\(\[\n\)\{\}@]+)/i,/^(?:$)/i,/^(?:["][`])/i,/^(?:[^`"]+)/i,/^(?:[`]["])/i,/^(?:["])/i,/^(?:[^"]+)/i,/^(?:["])/i,/^(?:[\)]\))/i,/^(?:[\)])/i,/^(?:[\]])/i,/^(?:\}\})/i,/^(?:\(-)/i,/^(?:-\))/i,/^(?:\(\()/i,/^(?:\()/i,/^(?:[^\)\]\(\}]+)/i,/^(?:.+(?!\(\())/i],conditions:{shapeDataEndBracket:{rules:[],inclusive:!1},shapeDataStr:{rules:[2,3],inclusive:!1},shapeData:{rules:[1,4,5],inclusive:!1},CLASS:{rules:[9,10],inclusive:!1},ICON:{rules:[14,15],inclusive:!1},NSTR2:{rules:[28,29],inclusive:!1},NSTR:{rules:[31,32],inclusive:!1},NODE:{rules:[27,30,33,34,35,36,37,38,39,40,41,42],inclusive:!1},INITIAL:{rules:[0,6,7,8,11,12,13,16,17,18,19,20,21,22,23,24,25,26],inclusive:!0}}},i.lexer=c,mt(e,"Parser"),(iLe=new((e.prototype=i).Parser=e)).parser=iLe,nLe=iLe}),ELe=e(()=>{"use strict";Cu(),hh(),t(),Ln(),jE(),rLe=[],sLe=[],aLe=0,oLe={},lLe=mt(()=>{rLe=[],sLe=[],aLe=0,oLe={}},"clear"),cLe=mt(e=>{if(0===rLe.length)return null;let t=rLe[0].level,i=null;for(let e=rLe.length-1;0<=e;e--)if(rLe[e].level!==t||i||(i=rLe[e]),rLe[e].level<t)throw new Error('Items without section detected, found section ("'+rLe[e].label+'")');return e===i?.level?null:i},"getSection"),hLe=mt(function(){return sLe},"getSections"),uLe=mt(function(){var e=[],i=hLe(),n=N();for(let t of i){var r,s={id:t.id,label:Pc(t.label??"",n),isGroup:!0,ticket:t.ticket,shape:"kanbanSection",level:t.level,look:n.look},s=(e.push(s),rLe.filter(e=>e.parentId===t.id));for(r of s){var a={id:r.id,parentId:t.id,label:Pc(r.label??"",n),isGroup:!1,ticket:r?.ticket,priority:r?.priority,assigned:r?.assigned,icon:r?.icon,shape:"kanbanItem",level:r.level,rx:5,ry:5,cssStyles:["text-align: left"]};e.push(a)}}return{nodes:e,edges:[],other:{},config:N()}},"getData"),dLe=mt((e,t,i,n,r)=>{let s=N(),a=s.mindmap?.padding??vi.mindmap.padding;switch(n){case pLe.ROUNDED_RECT:case pLe.RECT:case pLe.HEXAGON:a*=2}n={id:Pc(t,s)||"kbn"+aLe++,level:e,label:Pc(i,s),width:s.mindmap?.maxNodeWidth??vi.mindmap.maxNodeWidth,padding:a,isGroup:!1};if(void 0!==r){let e;e=r.includes(`
|
||
`)?r+`
|
||
`:`{
|
||
`+r+`
|
||
}`;t=FE(e,{schema:BE});if(t.shape&&(t.shape!==t.shape.toLowerCase()||t.shape.includes("_")))throw new Error(`No such shape: ${t.shape}. Shape names should be lowercase.`);t?.shape&&"kanbanItem"===t.shape&&(n.shape=t?.shape),t?.label&&(n.label=t?.label),t?.icon&&(n.icon=t?.icon.toString()),t?.assigned&&(n.assigned=t?.assigned.toString()),t?.ticket&&(n.ticket=t?.ticket.toString()),t?.priority&&(n.priority=t?.priority)}i=cLe(e);i?n.parentId=i.id||"kbn"+aLe++:sLe.push(n),rLe.push(n)},"addNode"),pLe={DEFAULT:0,NO_BORDER:0,ROUNDED_RECT:1,RECT:2,CIRCLE:3,CLOUD:4,BANG:5,HEXAGON:6},gLe=mt((e,t)=>{switch(I.debug("In get type",e,t),e){case"[":return pLe.RECT;case"(":return")"===t?pLe.ROUNDED_RECT:pLe.CLOUD;case"((":return pLe.CIRCLE;case")":return pLe.CLOUD;case"))":return pLe.BANG;case"{{":return pLe.HEXAGON;default:return pLe.DEFAULT}},"getType"),fLe=mt((e,t)=>{oLe[e]=t},"setElementForId"),mLe=mt(e=>{var t,i;e&&(t=N(),i=rLe[rLe.length-1],e.icon&&(i.icon=Pc(e.icon,t)),e.class)&&(i.cssClasses=Pc(e.class,t))},"decorateNode"),yLe=mt(e=>{switch(e){case pLe.DEFAULT:return"no-border";case pLe.RECT:return"rect";case pLe.ROUNDED_RECT:return"rounded-rect";case pLe.CIRCLE:return"circle";case pLe.CLOUD:return"cloud";case pLe.BANG:return"bang";case pLe.HEXAGON:return"hexgon";default:return"no-border"}},"type2Str"),bLe=mt(()=>I,"getLogger"),vLe=mt(e=>oLe[e],"getElementById"),xLe={clear:lLe,addNode:dLe,getSections:hLe,getData:uLe,nodeType:pLe,getType:gLe,setElementForId:fLe,decorateNode:mLe,type2Str:yLe,getLogger:bLe,getElementById:vLe}}),$Le=e(()=>{"use strict";Cu(),t(),Mye(),uh(),Ln(),eD(),KD(),wLe=mt(async(e,t,i,n)=>{I.debug(`Rendering kanban diagram
|
||
`+e);var r,s=n.db.getData(),a=N(),e=(a.htmlLabels=!1,_ye(t)),o=e.append("g"),l=(o.attr("class","sections"),e.append("g"));l.attr("class","items");let c=s.nodes.filter(e=>e.isGroup),h=0,u=[],d=25;for(r of c){var p=a?.kanban?.sectionWidth||200,p=(h+=1,r.x=p*h+10*(h-1)/2,r.width=p,r.y=0,r.height=3*p,r.rx=5,r.ry=5,r.cssClasses=r.cssClasses+" section-"+h,await YN(o,r));d=Math.max(d,p?.labelBBox?.height),u.push(p)}let g=0;for(let r of c){var f,m=u[g];g+=1;let e=a?.kanban?.sectionWidth||200,t=3*-e/2+d,i=t,n=s.nodes.filter(e=>e.parentId===r.id);for(f of n){if(f.isGroup)throw new Error("Groups within groups are not allowed in Kanban diagrams");f.x=r.x,f.width=e-15;var y=(await qD(l,f,{config:a})).node().getBBox();f.y=i+y.height/2,await YD(f),i=f.y+y.height/2+5}var m=m.cluster.select("rect"),b=Math.max(i-t+30,50)+(d-25);m.attr("height",b)}sh(void 0,e,a.mindmap?.padding??vi.kanban.padding,a.mindmap?.useMaxWidth??vi.kanban.useMaxWidth)},"draw"),kLe={draw:wLe}}),LLe=e(()=>{"use strict";xn(),iZ(),TLe=mt(i=>{let t="";for(let e=0;e<i.THEME_COLOR_LIMIT;e++)i["lineColor"+e]=i["lineColor"+e]||i["cScaleInv"+e],Wt(i["lineColor"+e])?i["lineColor"+e]=s(i["lineColor"+e],20):i["lineColor"+e]=Kt(i["lineColor"+e],20);var n=mt((e,t)=>(i.darkMode?Kt:s)(e,t),"adjuster");for(let e=0;e<i.THEME_COLOR_LIMIT;e++){var r=""+(17-3*e);t+=`
|
||
.section-${e-1} rect, .section-${e-1} path, .section-${e-1} circle, .section-${e-1} polygon, .section-${e-1} path {
|
||
fill: ${n(i["cScale"+e],10)};
|
||
stroke: ${n(i["cScale"+e],10)};
|
||
|
||
}
|
||
.section-${e-1} text {
|
||
fill: ${i["cScaleLabel"+e]};
|
||
}
|
||
.node-icon-${e-1} {
|
||
font-size: 40px;
|
||
color: ${i["cScaleLabel"+e]};
|
||
}
|
||
.section-edge-${e-1}{
|
||
stroke: ${i["cScale"+e]};
|
||
}
|
||
.edge-depth-${e-1}{
|
||
stroke-width: ${r};
|
||
}
|
||
.section-${e-1} line {
|
||
stroke: ${i["cScaleInv"+e]} ;
|
||
stroke-width: 3;
|
||
}
|
||
|
||
.disabled, .disabled circle, .disabled text {
|
||
fill: lightgray;
|
||
}
|
||
.disabled text {
|
||
fill: #efefef;
|
||
}
|
||
|
||
.node rect,
|
||
.node circle,
|
||
.node ellipse,
|
||
.node polygon,
|
||
.node path {
|
||
fill: ${i.background};
|
||
stroke: ${i.nodeBorder};
|
||
stroke-width: 1px;
|
||
}
|
||
|
||
.kanban-ticket-link {
|
||
fill: ${i.background};
|
||
stroke: ${i.nodeBorder};
|
||
text-decoration: underline;
|
||
}
|
||
`}return t},"genSections"),SLe=mt(e=>`
|
||
.edge {
|
||
stroke-width: 3;
|
||
}
|
||
${TLe(e)}
|
||
.section-root rect, .section-root path, .section-root circle, .section-root polygon {
|
||
fill: ${e.git0};
|
||
}
|
||
.section-root text {
|
||
fill: ${e.gitBranchLabel0};
|
||
}
|
||
.icon-container {
|
||
height:100%;
|
||
display: flex;
|
||
justify-content: center;
|
||
align-items: center;
|
||
}
|
||
.edge {
|
||
fill: none;
|
||
}
|
||
.cluster-label, .label {
|
||
color: ${e.textColor};
|
||
fill: ${e.textColor};
|
||
}
|
||
.kanban-label {
|
||
dy: 1em;
|
||
alignment-baseline: middle;
|
||
text-anchor: middle;
|
||
dominant-baseline: middle;
|
||
text-align: center;
|
||
}
|
||
${VK()}
|
||
`,"getStyles"),_Le=SLe}),RLe={};V(RLe,{diagram:()=>MLe});var MLe,ILe,NLe,DLe,OLe,PLe,BLe,FLe,jLe,zLe,HLe,ULe,qLe,WLe,VLe,GLe=e(()=>{"use strict";ALe(),ELe(),$Le(),LLe(),MLe={db:xLe,renderer:kLe,parser:nLe,styles:_Le}}),YLe=e(()=>{"use strict";function e(){this.yy={}}var t,i,n,r;t=mt(function(e,t,i,n){for(i=i||{},n=e.length;n--;i[e[n]]=t);return i},"o"),i=[1,9],n=[1,10],r=[1,5,10,12],r={trace:mt(function(){},"trace"),yy:{},symbols_:{error:2,start:3,SANKEY:4,NEWLINE:5,csv:6,opt_eof:7,record:8,csv_tail:9,EOF:10,"field[source]":11,COMMA:12,"field[target]":13,"field[value]":14,field:15,escaped:16,non_escaped:17,DQUOTE:18,ESCAPED_TEXT:19,NON_ESCAPED_TEXT:20,$accept:0,$end:1},terminals_:{2:"error",4:"SANKEY",5:"NEWLINE",10:"EOF",11:"field[source]",12:"COMMA",13:"field[target]",14:"field[value]",18:"DQUOTE",19:"ESCAPED_TEXT",20:"NON_ESCAPED_TEXT"},productions_:[0,[3,4],[6,2],[9,2],[9,0],[7,1],[7,0],[8,5],[15,1],[15,1],[16,3],[17,1]],performAction:mt(function(e,t,i,n,r,s,a){var o=s.length-1;switch(r){case 7:var l=n.findOrCreateNode(s[o-4].trim().replaceAll('""','"')),c=n.findOrCreateNode(s[o-2].trim().replaceAll('""','"')),h=parseFloat(s[o].trim());n.addLink(l,c,h);break;case 8:case 9:case 11:this.$=s[o];break;case 10:this.$=s[o-1]}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},{5:[1,3]},{6:4,8:5,15:6,16:7,17:8,18:i,20:n},{1:[2,6],7:11,10:[1,12]},t(n,[2,4],{9:13,5:[1,14]}),{12:[1,15]},t(r,[2,8]),t(r,[2,9]),{19:[1,16]},t(r,[2,11]),{1:[2,1]},{1:[2,5]},t(n,[2,2]),{6:17,8:5,15:6,16:7,17:8,18:i,20:n},{15:18,16:7,17:8,18:i,20:n},{18:[1,19]},t(n,[2,3]),{12:[1,20]},t(r,[2,10]),{15:21,16:7,17:8,18:i,20:n},t([1,5,10],[2,7])],defaultActions:{11:[2,1],12:[2,5]},parseError:mt(function(e,t){var i;if(!t.recoverable)throw(i=new Error(e)).hash=t,i;this.trace(e)},"parseError"),parse:mt(function(e){var t,i=this,n=[0],r=[],s=[null],a=[],o=this.table,l="",c=0,h=0,u=0,d=1,p=a.slice.call(arguments,1),g=Object.create(this.lexer),f={yy:{}};for(t in this.yy)Object.prototype.hasOwnProperty.call(this.yy,t)&&(f.yy[t]=this.yy[t]);g.setInput(e,f.yy),f.yy.lexer=g,f.yy.parser=this,"u"<typeof g.yylloc&&(g.yylloc={});var m=g.yylloc,y=(a.push(m),g.options&&g.options.ranges);function b(){var e=r.pop()||g.lex()||d;return"number"!=typeof e&&(e instanceof Array&&(e=(r=e).pop()),e=i.symbols_[e]||e),e}"function"==typeof f.yy.parseError?this.parseError=f.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError,mt(function(e){n.length=n.length-2*e,s.length=s.length-e,a.length=a.length-e},"popStack"),mt(b,"lex");for(var v,x,w,k,T,S,_,C={};;){if(w=n[n.length-1],"u"<typeof(k=this.defaultActions[w]||((null===v||"u"<typeof v)&&(v=b()),o[w]&&o[w][v]))||!k.length||!k[0]){var A="",E=[];for(T in o[w])this.terminals_[T]&&2<T&&E.push("'"+this.terminals_[T]+"'");A=g.showPosition?"Parse error on line "+(c+1)+`:
|
||
`+g.showPosition()+`
|
||
Expecting `+E.join(", ")+", got '"+(this.terminals_[v]||v)+"'":"Parse error on line "+(c+1)+": Unexpected "+(v==d?"end of input":"'"+(this.terminals_[v]||v)+"'"),this.parseError(A,{text:g.match,token:this.terminals_[v]||v,line:g.yylineno,loc:m,expected:E})}if(k[0]instanceof Array&&1<k.length)throw new Error("Parse Error: multiple actions possible at state: "+w+", token: "+v);switch(k[0]){case 1:n.push(v),s.push(g.yytext),a.push(g.yylloc),n.push(k[1]),v=null,x?(v=x,x=null):(h=g.yyleng,l=g.yytext,c=g.yylineno,m=g.yylloc,0<u&&u--);break;case 2:if(S=this.productions_[k[1]][1],C.$=s[s.length-S],C._$={first_line:a[a.length-(S||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(S||1)].first_column,last_column:a[a.length-1].last_column},y&&(C._$.range=[a[a.length-(S||1)].range[0],a[a.length-1].range[1]]),typeof(_=this.performAction.apply(C,[l,h,c,f.yy,k[1],s,a].concat(p)))<"u")return _;S&&(n=n.slice(0,-1*S*2),s=s.slice(0,-1*S),a=a.slice(0,-1*S)),n.push(this.productions_[k[1]][0]),s.push(C.$),a.push(C._$),_=o[n[n.length-2]][n[n.length-1]],n.push(_);break;case 3:return!0}}return!0},"parse")},i={EOF:1,parseError:mt(function(e,t){if(!this.yy.parser)throw new Error(e);this.yy.parser.parseError(e,t)},"parseError"),setInput:mt(function(e,t){return this.yy=t||this.yy||{},this._input=e,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:mt(function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.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),e},"input"),unput:mt(function(e){var t=e.length,i=e.split(/(?:\r\n?|\n)/g),e=(this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t,this.match.split(/(?:\r\n?|\n)/g)),n=(this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),i.length-1&&(this.yylineno-=i.length-1),this.yylloc.range);return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:i?(i.length===e.length?this.yylloc.first_column:0)+e[e.length-i.length].length-i[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[n[0],n[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},"unput"),more:mt(function(){return this._more=!0,this},"more"),reject:mt(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).
|
||
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"reject"),less:mt(function(e){this.unput(this.match.slice(e))},"less"),pastInput:mt(function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(20<e.length?"...":"")+e.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:mt(function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(20<e.length?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:mt(function(){var e=this.pastInput(),t=new Array(e.length+1).join("-");return e+this.upcomingInput()+`
|
||
`+t+"^"},"showPosition"),test_match:mt(function(e,t){var i,n;if(this.options.backtrack_lexer&&(n={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)&&(n.yylloc.range=this.yylloc.range.slice(0)),(i=e[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=i.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:i?i[i.length-1].length-i[i.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+e[0].length},this.yytext+=e[0],this.match+=e[0],this.matches=e,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(e[0].length),this.matched+=e[0],i=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),i)return i;if(this._backtrack)for(var r in n)this[r]=n[r];return!1},"test_match"),next:mt(function(){if(this.done)return this.EOF;var e,t,i,n;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var r=this._currentRules(),s=0;s<r.length;s++)if((i=this._input.match(this.rules[r[s]]))&&(!t||i[0].length>t[0].length)){if(t=i,n=s,this.options.backtrack_lexer){if(!1!==(e=this.test_match(i,r[s])))return e;if(this._backtrack){t=!1;continue}return!1}if(!this.options.flex)break}return t?!1!==(e=this.test_match(t,r[n]))&&e:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
|
||
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:mt(function(){return this.next()||this.lex()},"lex"),begin:mt(function(e){this.conditionStack.push(e)},"begin"),popState:mt(function(){return 0<this.conditionStack.length-1?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:mt(function(){return(this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]]:this.conditions.INITIAL).rules},"_currentRules"),topState:mt(function(e){return 0<=(e=this.conditionStack.length-1-Math.abs(e||0))?this.conditionStack[e]:"INITIAL"},"topState"),pushState:mt(function(e){this.begin(e)},"pushState"),stateStackSize:mt(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:mt(function(e,t,i,n){switch(i){case 0:return this.pushState("csv"),4;case 1:return 10;case 2:return 5;case 3:return 12;case 4:return this.pushState("escaped_text"),18;case 5:return 20;case 6:return this.popState("escaped_text"),18;case 7:return 19}},"anonymous"),rules:[/^(?:sankey-beta\b)/i,/^(?:$)/i,/^(?:((\u000D\u000A)|(\u000A)))/i,/^(?:(\u002C))/i,/^(?:(\u0022))/i,/^(?:([\u0020-\u0021\u0023-\u002B\u002D-\u007E])*)/i,/^(?:(\u0022)(?!(\u0022)))/i,/^(?:(([\u0020-\u0021\u0023-\u002B\u002D-\u007E])|(\u002C)|(\u000D)|(\u000A)|(\u0022)(\u0022))*)/i],conditions:{csv:{rules:[1,2,3,4,5,6,7],inclusive:!1},escaped_text:{rules:[6,7],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,7],inclusive:!0}}},r.lexer=i,mt(e,"Parser"),(ILe=new((e.prototype=r).Parser=e)).parser=ILe,NLe=ILe}),XLe=e(()=>{"use strict";Cu(),hh(),_u(),DLe=[],OLe=[],PLe=new Map,BLe=mt(()=>{DLe=[],OLe=[],PLe=new Map,bh()},"clear"),FLe=class{constructor(e,t,i=0){this.source=e,this.target=t,this.value=i}static{mt(this,"SankeyLink")}},jLe=mt((e,t,i)=>{DLe.push(new FLe(e,t,i))},"addLink"),zLe=class{constructor(e){this.ID=e}static{mt(this,"SankeyNode")}},HLe=mt(e=>{e=$.sanitizeText(e,N());let t=PLe.get(e);return void 0===t&&(t=new zLe(e),PLe.set(e,t),OLe.push(t)),t},"findOrCreateNode"),ULe=mt(()=>OLe,"getNodes"),qLe=mt(()=>DLe,"getLinks"),WLe=mt(()=>({nodes:OLe.map(e=>({id:e.ID})),links:DLe.map(e=>({source:e.source.ID,target:e.target.ID,value:e.value}))}),"getGraph"),VLe={nodesMap:PLe,getConfig:mt(()=>N().sankey,"getConfig"),getNodes:ULe,getLinks:qLe,getGraph:WLe,addLink:jLe,findOrCreateNode:HLe,getAccTitle:xh,setAccTitle:vh,getAccDescription:kh,setAccDescription:wh,getDiagramTitle:Sh,setDiagramTitle:Th,clear:BLe}});function KLe(t,i){let n;if(void 0===i)for(var e of t)null!=e&&(n<e||void 0===n&&e>=e)&&(n=e);else{let e=-1;for(var r of t)null!=(r=i(r,++e,t))&&(n<r||void 0===n&&r>=r)&&(n=r)}return n}var ZLe=e(()=>{"use strict";mt(KLe,"max")});function QLe(t,i){let n;if(void 0===i)for(var e of t)null!=e&&(n>e||void 0===n&&e>=e)&&(n=e);else{let e=-1;for(var r of t)null!=(r=i(r,++e,t))&&(n>r||void 0===n&&r>=r)&&(n=r)}return n}var JLe=e(()=>{"use strict";mt(QLe,"min")});function eRe(t,i){let n=0;if(void 0===i)for(var e of t)(e=+e)&&(n+=e);else{let e=-1;for(var r of t)(r=+i(r,++e,t))&&(n+=r)}return n}var tRe=e(()=>{"use strict";mt(eRe,"sum")}),iRe=e(()=>{"use strict";ZLe(),JLe(),tRe()});function nRe(e){return e.target.depth}function rRe(e){return e.depth}function sRe(e,t){return t-1-e.height}function aRe(e,t){return e.sourceLinks.length?e.depth:t-1}function oRe(e){return e.targetLinks.length?e.depth:e.sourceLinks.length?QLe(e.sourceLinks,nRe)-1:0}var lRe=e(()=>{"use strict";iRe(),mt(nRe,"targetDepth"),mt(rRe,"left"),mt(sRe,"right"),mt(aRe,"justify"),mt(oRe,"center")});function cRe(e){return function(){return e}}var hRe=e(()=>{"use strict";mt(cRe,"constant")});function uRe(e,t){return pRe(e.source,t.source)||e.index-t.index}function dRe(e,t){return pRe(e.target,t.target)||e.index-t.index}function pRe(e,t){return e.y0-t.y0}function gRe(e){return e.value}function fRe(e){return e.index}function mRe(e){return e.nodes}function yRe(e){return e.links}function bRe(e,t){e=e.get(t);if(e)return e;throw new Error("missing: "+t)}function vRe({nodes:e}){for(var i of e){let e=i.y0,t=e;for(var n of i.sourceLinks)n.y0=e+n.width/2,e+=n.width;for(var r of i.targetLinks)r.y1=t+r.width/2,t+=r.width}}function xRe(){let o=0,l=0,c=1,h=1,u=24,r=8,d,p=fRe,g=aRe,f,m,t=mRe,i=yRe,s=6;function n(){var e={nodes:t.apply(null,arguments),links:i.apply(null,arguments)};return a(e),y(e),b(e),v(e),k(e),vRe(e),e}function a({nodes:i,links:e}){for(var[t,n]of i.entries())n.index=t,n.sourceLinks=[],n.targetLinks=[];var r,s,a=new Map(i.map((e,t)=>[p(e,t,i),e]));for([r,s]of e.entries()){s.index=r;let{source:e,target:t}=s;"object"!=typeof e&&(e=s.source=bRe(a,e)),"object"!=typeof t&&(t=s.target=bRe(a,t)),e.sourceLinks.push(s),t.targetLinks.push(s)}if(null!=m)for(var{sourceLinks:o,targetLinks:l}of i)o.sort(m),l.sort(m)}function y({nodes:e}){for(var t of e)t.value=void 0===t.fixedValue?Math.max(eRe(t.sourceLinks,gRe),eRe(t.targetLinks,gRe)):t.fixedValue}function b({nodes:e}){let t=e.length,i=new Set(e),n=new Set,r=0;for(;i.size;){for(var s of i){s.depth=r;for(var{target:a}of s.sourceLinks)n.add(a)}if(++r>t)throw new Error("circular link");i=n,n=new Set}}function v({nodes:e}){let t=e.length,i=new Set(e),n=new Set,r=0;for(;i.size;){for(var s of i){s.height=r;for(var{source:a}of s.targetLinks)n.add(a)}if(++r>t)throw new Error("circular link");i=n,n=new Set}}function x({nodes:e}){var t,i=KLe(e,e=>e.depth)+1,n=(c-o-u)/(i-1),r=new Array(i);for(t of e){var s=Math.max(0,Math.min(i-1,Math.floor(g.call(null,t,i))));t.layer=s,t.x0=o+s*n,t.x1=t.x0+u,r[s]?r[s].push(t):r[s]=[t]}if(f)for(var a of r)a.sort(f);return r}function w(e){var i,n=QLe(e,e=>(h-l-(e.length-1)*d)/eRe(e,gRe));for(i of e){let t=l;for(var r of i){r.y0=t,r.y1=t+r.value*n,t=r.y1+d;for(var s of r.sourceLinks)s.width=s.value*n}t=(h-t+d)/(i.length+1);for(let e=0;e<i.length;++e){var a=i[e];a.y0+=t*(e+1),a.y1+=t*(e+1)}$(i)}}function k(e){var t=x(e);d=Math.min(r,(h-l)/(KLe(t,e=>e.length)-1)),w(t);for(let e=0;e<s;++e){var i=Math.pow(.99,e),n=Math.max(1-i,(e+1)/s);S(t,i,n),T(t,i,n)}}function T(i,n,r){for(let e=1,t=i.length;e<t;++e){var s,a,o=i[e];for(s of o){let e=0,t=0;for(var{source:l,value:c}of s.targetLinks){c=c*(s.layer-l.layer);e+=L(l,s)*c,t+=c}0<t&&(a=(e/t-s.y0)*n,s.y0+=a,s.y1+=a,E(s))}void 0===f&&o.sort(pRe),_(o,r)}}function S(i,n,r){for(let e=i.length,t=e-2;0<=t;--t){var s,a,o=i[t];for(s of o){let e=0,t=0;for(var{target:l,value:c}of s.sourceLinks){c=c*(l.layer-s.layer);e+=R(s,l)*c,t+=c}0<t&&(a=(e/t-s.y0)*n,s.y0+=a,s.y1+=a,E(s))}void 0===f&&o.sort(pRe),_(o,r)}}function _(e,t){var i=e.length>>1,n=e[i];A(e,n.y0-d,i-1,t),C(e,n.y1+d,1+i,t),A(e,h,e.length-1,t),C(e,l,0,t)}function C(e,t,i,n){for(;i<e.length;++i){var r=e[i],s=(t-r.y0)*n;1e-6<s&&(r.y0+=s,r.y1+=s),t=r.y1+d}}function A(e,t,i,n){for(;0<=i;--i){var r=e[i],s=(r.y1-t)*n;1e-6<s&&(r.y0-=s,r.y1-=s),t=r.y0-d}}function E({sourceLinks:e,targetLinks:t}){if(void 0===m){for(var{source:{sourceLinks:i}}of t)i.sort(dRe);for(var{target:{targetLinks:n}}of e)n.sort(uRe)}}function $(e){if(void 0===m)for(var{sourceLinks:t,targetLinks:i}of e)t.sort(dRe),i.sort(uRe)}function L(e,t){let i=e.y0-(e.sourceLinks.length-1)*d/2;for(var{target:n,width:r}of e.sourceLinks){if(n===t)break;i+=r+d}for(var{source:s,width:a}of t.targetLinks){if(s===e)break;i-=a}return i}function R(e,t){let i=t.y0-(t.targetLinks.length-1)*d/2;for(var{source:n,width:r}of t.targetLinks){if(n===e)break;i+=r+d}for(var{target:s,width:a}of e.sourceLinks){if(s===t)break;i-=a}return i}return mt(n,"sankey"),n.update=function(e){return vRe(e),e},n.nodeId=function(e){return arguments.length?(p="function"==typeof e?e:cRe(e),n):p},n.nodeAlign=function(e){return arguments.length?(g="function"==typeof e?e:cRe(e),n):g},n.nodeSort=function(e){return arguments.length?(f=e,n):f},n.nodeWidth=function(e){return arguments.length?(u=+e,n):u},n.nodePadding=function(e){return arguments.length?(r=d=+e,n):r},n.nodes=function(e){return arguments.length?(t="function"==typeof e?e:cRe(e),n):t},n.links=function(e){return arguments.length?(i="function"==typeof e?e:cRe(e),n):i},n.linkSort=function(e){return arguments.length?(m=e,n):m},n.size=function(e){return arguments.length?(o=l=0,c=+e[0],h=+e[1],n):[c-o,h-l]},n.extent=function(e){return arguments.length?(o=+e[0][0],c=+e[1][0],l=+e[0][1],h=+e[1][1],n):[[o,l],[c,h]]},n.iterations=function(e){return arguments.length?(s=+e,n):s},mt(a,"computeNodeLinks"),mt(y,"computeNodeValues"),mt(b,"computeNodeDepths"),mt(v,"computeNodeHeights"),mt(x,"computeNodeLayers"),mt(w,"initializeNodeBreadths"),mt(k,"computeNodeBreadths"),mt(T,"relaxLeftToRight"),mt(S,"relaxRightToLeft"),mt(_,"resolveCollisions"),mt(C,"resolveCollisionsTopToBottom"),mt(A,"resolveCollisionsBottomToTop"),mt(E,"reorderNodeLinks"),mt($,"reorderLinks"),mt(L,"targetTop"),mt(R,"sourceTop"),n}var wRe=e(()=>{"use strict";iRe(),lRe(),hRe(),mt(uRe,"ascendingSourceBreadth"),mt(dRe,"ascendingTargetBreadth"),mt(pRe,"ascendingBreadth"),mt(gRe,"value"),mt(fRe,"defaultId"),mt(mRe,"defaultNodes"),mt(yRe,"defaultLinks"),mt(bRe,"find"),mt(vRe,"computeLinkBreadths"),mt(xRe,"Sankey")});function kRe(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function TRe(){return new kRe}var SRe,_Re,CRe,ARe,ERe=e(()=>{"use strict";SRe=Math.PI,CRe=(_Re=2*SRe)-1e-6,mt(kRe,"Path"),mt(TRe,"path"),kRe.prototype=TRe.prototype={constructor:kRe,moveTo:mt(function(e,t){this._+="M"+(this._x0=this._x1=+e)+","+(this._y0=this._y1=+t)},"moveTo"),closePath:mt(function(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},"closePath"),lineTo:mt(function(e,t){this._+="L"+(this._x1=+e)+","+(this._y1=+t)},"lineTo"),quadraticCurveTo:mt(function(e,t,i,n){this._+="Q"+ +e+","+ +t+","+(this._x1=+i)+","+(this._y1=+n)},"quadraticCurveTo"),bezierCurveTo:mt(function(e,t,i,n,r,s){this._+="C"+ +e+","+ +t+","+ +i+","+ +n+","+(this._x1=+r)+","+(this._y1=+s)},"bezierCurveTo"),arcTo:mt(function(e,t,i,n,r){var s,a,o=this._x1,l=this._y1,c=(i=+i)-(e=+e),h=(n=+n)-(t=+t),u=o-e,d=l-t,p=u*u+d*d;if((r=+r)<0)throw new Error("negative radius: "+r);null===this._x1?this._+="M"+(this._x1=e)+","+(this._y1=t):1e-6<p&&(1e-6<Math.abs(d*c-h*u)&&r?(a=c*c+h*h,n=(i=i-o)*i+(o=n-l)*o,l=Math.sqrt(a),s=Math.sqrt(p),p=(a=r*Math.tan((SRe-Math.acos((a+p-n)/(2*l*s)))/2))/s,n=a/l,1e-6<Math.abs(p-1)&&(this._+="L"+(e+p*u)+","+(t+p*d)),this._+="A"+r+","+r+",0,0,"+ +(u*o<d*i)+","+(this._x1=e+n*c)+","+(this._y1=t+n*h)):this._+="L"+(this._x1=e)+","+(this._y1=t))},"arcTo"),arc:mt(function(e,t,i,n,r,s){e=+e,t=+t,s=!!s;var a=(i=+i)*Math.cos(n),o=i*Math.sin(n),l=e+a,c=t+o,h=1^s,s=s?n-r:r-n;if(i<0)throw new Error("negative radius: "+i);null===this._x1?this._+="M"+l+","+c:(1e-6<Math.abs(this._x1-l)||1e-6<Math.abs(this._y1-c))&&(this._+="L"+l+","+c),i&&(CRe<(s=s<0?s%_Re+_Re:s)?this._+="A"+i+","+i+",0,1,"+h+","+(e-a)+","+(t-o)+"A"+i+","+i+",0,1,"+h+","+(this._x1=l)+","+(this._y1=c):1e-6<s&&(this._+="A"+i+","+i+",0,"+ +(SRe<=s)+","+h+","+(this._x1=e+i*Math.cos(r))+","+(this._y1=t+i*Math.sin(r))))},"arc"),rect:mt(function(e,t,i,n){this._+="M"+(this._x0=this._x1=+e)+","+(this._y0=this._y1=+t)+"h"+ +i+"v"+ +n+"h"+-i+"Z"},"rect"),toString:mt(function(){return this._},"toString")},ARe=TRe}),$Re=e(()=>{"use strict";ERe()});function LRe(e){return mt(function(){return e},"constant")}var RRe=e(()=>{"use strict";mt(LRe,"default")});function MRe(e){return e[0]}function IRe(e){return e[1]}var NRe,DRe=e(()=>{"use strict";mt(MRe,"x"),mt(IRe,"y")}),ORe=e(()=>{"use strict";NRe=Array.prototype.slice});function PRe(e){return e.source}function BRe(e){return e.target}function FRe(r){var s=PRe,a=BRe,o=MRe,l=IRe,c=null;function t(){var e,t=NRe.call(arguments),i=s.apply(this,t),n=a.apply(this,t);if(c=c||(e=ARe()),r(c,+o.apply(this,(t[0]=i,t)),+l.apply(this,t),+o.apply(this,(t[0]=n,t)),+l.apply(this,t)),e)return c=null,e+""||null}return mt(t,"link"),t.source=function(e){return arguments.length?(s=e,t):s},t.target=function(e){return arguments.length?(a=e,t):a},t.x=function(e){return arguments.length?(o="function"==typeof e?e:LRe(+e),t):o},t.y=function(e){return arguments.length?(l="function"==typeof e?e:LRe(+e),t):l},t.context=function(e){return arguments.length?(c=e??null,t):c},t}function jRe(e,t,i,n,r){e.moveTo(t,i),e.bezierCurveTo(t=(t+n)/2,i,t,r,n,r)}function zRe(){return FRe(jRe)}var HRe=e(()=>{"use strict";$Re(),ORe(),RRe(),DRe(),mt(PRe,"linkSource"),mt(BRe,"linkTarget"),mt(FRe,"link"),mt(jRe,"curveHorizontal"),mt(zRe,"linkHorizontal")}),URe=e(()=>{"use strict";HRe()});function qRe(e){return[e.source.x1,e.y0]}function WRe(e){return[e.target.x0,e.y1]}function VRe(){return zRe().source(qRe).target(WRe)}var GRe,YRe,XRe,KRe,ZRe,QRe,JRe,eMe=e(()=>{"use strict";URe(),mt(qRe,"horizontalSource"),mt(WRe,"horizontalTarget"),mt(VRe,"default")}),tMe=e(()=>{"use strict";wRe(),lRe(),eMe()}),iMe=e(()=>{"use strict";GRe=class t{static{mt(this,"Uid")}static{this.count=0}static next(e){return new t(e+ ++t.count)}constructor(e){this.id=e,this.href="#"+e}toString(){return"url("+this.href+")"}}}),nMe=e(()=>{"use strict";Cu(),a6(),tMe(),uh(),iMe(),YRe={left:rRe,right:sRe,center:oRe,justify:aRe},XRe=mt(function(e,t,i,n){let{securityLevel:r,sankey:s}=N(),a=Eh.sankey,o,l=("sandbox"===r&&(o=G("#i"+t)),G("sandbox"===r?o.nodes()[0].contentDocument.body:"body")),c="sandbox"===r?l.select(`[id="${t}"]`):G(`[id="${t}"]`),h=s?.width??a.width,u=s?.height??a.width,d=s?.useMaxWidth??a.useMaxWidth,p=s?.nodeAlignment??a.nodeAlignment,g=s?.prefix??a.prefix,f=s?.suffix??a.suffix,m=s?.showValues??a.showValues,y=n.db.getGraph(),b=YRe[p],v=(xRe().nodeId(e=>e.id).nodeWidth(10).nodePadding(10+(m?15:0)).nodeAlign(b).extent([[0,0],[h,u]])(y),v2(v3));c.append("g").attr("class","nodes").selectAll(".node").data(y.nodes).join("g").attr("class","node").attr("id",e=>(e.uid=GRe.next("node-")).id).attr("transform",function(e){return"translate("+e.x0+","+e.y0+")"}).attr("x",e=>e.x0).attr("y",e=>e.y0).append("rect").attr("height",e=>e.y1-e.y0).attr("width",e=>e.x1-e.x0).attr("fill",e=>v(e.id));var t=mt(({id:e,value:t})=>m?e+`
|
||
`+g+Math.round(100*t)/100+f:e,"getText"),n=(c.append("g").attr("class","node-labels").attr("font-size",14).selectAll("text").data(y.nodes).join("text").attr("x",e=>e.x0<h/2?e.x1+6:e.x0-6).attr("y",e=>(e.y1+e.y0)/2).attr("dy",`${m?"0":"0.35"}em`).attr("text-anchor",e=>e.x0<h/2?"start":"end").text(t),c.append("g").attr("class","links").attr("fill","none").attr("stroke-opacity",.5).selectAll(".link").data(y.links).join("g").attr("class","link").style("mix-blend-mode","multiply")),x=s?.linkColor??"gradient";"gradient"===x&&((t=n.append("linearGradient").attr("id",e=>(e.uid=GRe.next("linearGradient-")).id).attr("gradientUnits","userSpaceOnUse").attr("x1",e=>e.source.x1).attr("x2",e=>e.target.x0)).append("stop").attr("offset","0%").attr("stop-color",e=>v(e.source.id)),t.append("stop").attr("offset","100%").attr("stop-color",e=>v(e.target.id)));let w;switch(x){case"gradient":w=mt(e=>e.uid,"coloring");break;case"source":w=mt(e=>v(e.source.id),"coloring");break;case"target":w=mt(e=>v(e.target.id),"coloring");break;default:w=x}n.append("path").attr("d",VRe()).attr("stroke",w).attr("stroke-width",e=>Math.max(1,e.width)),sh(void 0,c,0,d)},"draw"),KRe={draw:XRe}}),rMe=e(()=>{"use strict";ZRe=mt(e=>e.replaceAll(/^[^\S\n\r]+|[^\S\n\r]+$/g,"").replaceAll(/([\n\r])+/g,`
|
||
`).trim(),"prepareTextForParsing")}),sMe=e(()=>{"use strict";QRe=mt(e=>`.label {
|
||
font-family: ${e.fontFamily};
|
||
}`,"getStyles"),JRe=QRe}),aMe={};V(aMe,{diagram:()=>lMe});var oMe,lMe,cMe,hMe,uMe,dMe,pMe,gMe,fMe,mMe,yMe,bMe,vMe,xMe,wMe,kMe,TMe,SMe,_Me=e(()=>{"use strict";YLe(),XLe(),nMe(),rMe(),sMe(),oMe=NLe.parse.bind(NLe),NLe.parse=e=>oMe(ZRe(e)),lMe={styles:JRe,parser:NLe,db:VLe,renderer:KRe}}),CMe=e(()=>{"use strict";Mn(),Ln(),sC(),_u(),cMe={packet:[]},hMe=structuredClone(cMe),uMe=vi.packet,dMe=mt(()=>{var e=E_({...uMe,...Ii().packet});return e.showBits&&(e.paddingY+=10),e},"getConfig"),pMe=mt(()=>hMe.packet,"getPacket"),gMe=mt(e=>{0<e.length&&hMe.packet.push(e)},"pushWord"),fMe=mt(()=>{bh(),hMe=structuredClone(cMe)},"clear"),mMe={pushWord:gMe,getPacket:pMe,getConfig:dMe,clear:fMe,setAccTitle:vh,getAccTitle:xh,setDiagramTitle:Th,getDiagramTitle:Sh,getAccDescription:kh,setAccDescription:wh}}),AMe=e(()=>{"use strict";hfe(),t(),gfe(),CMe(),yMe=mt(e=>{ufe(e,mMe);let t=-1,i=[],n=1,r=mMe.getConfig()["bitsPerRow"];for(var{start:s,end:a,bits:o,label:l}of e.blocks){if(void 0!==s&&void 0!==a&&a<s)throw new Error(`Packet block ${s} - ${a} is invalid. End must be greater than start.`);if((s??=t+1)!==t+1)throw new Error(`Packet block ${s} - ${a??s} is not contiguous. It should start from ${t+1}.`);if(0===o)throw new Error(`Packet block ${s} is invalid. Cannot have a zero bit field.`);for(a??=s+(o??1)-1,o??=a-s+1,t=a,I.debug(`Packet block ${s} - ${t} with label `+l);i.length<=r+1&&mMe.getPacket().length<1e4;){var[c,h]=bMe({start:s,end:a,bits:o,label:l},n,r);if(i.push(c),c.end+1===n*r&&(mMe.pushWord(i),i=[],n++),!h)break;({start:s,end:a,bits:o,label:l}=h)}}mMe.pushWord(i)},"populate"),bMe=mt((e,t,i)=>{if(void 0===e.start)throw new Error("start should have been set during first phase");if(void 0===e.end)throw new Error("end should have been set during first phase");if(e.start>e.end)throw new Error(`Block start ${e.start} is greater than block end ${e.end}.`);var n;return e.end+1<=t*i?[e,void 0]:[{start:e.start,end:n=t*i-1,label:e.label,bits:n-e.start},{start:n=t*i,end:e.end,label:e.label,bits:e.end-n}]},"getNextFittingBlock"),vMe={parse:mt(async e=>{e=await afe("packet",e);I.debug(e),yMe(e)},"parse")}}),EMe=e(()=>{"use strict";Mye(),uh(),xMe=mt((e,t,i,n)=>{var r,s,n=n.db,a=n.getConfig(),{rowHeight:o,paddingY:l,bitWidth:c,bitsPerRow:h}=a,u=n.getPacket(),n=n.getDiagramTitle(),l=o+l,o=l*(u.length+1)-(n?0:o),c=c*h+2,d=_ye(t);d.attr("viewbox",`0 0 ${c} `+o),rh(d,o,c,a.useMaxWidth);for([r,s]of u.entries())wMe(d,s,r,a);d.append("text").text(n).attr("x",c/2).attr("y",o-l/2).attr("dominant-baseline","middle").attr("text-anchor","middle").attr("class","packetTitle")},"draw"),wMe=mt((e,t,i,{rowHeight:n,paddingX:r,paddingY:s,bitWidth:a,bitsPerRow:o,showBits:l})=>{var c,h=e.append("g"),u=i*(n+s)+s;for(c of t){var d,p,g=c.start%o*a+1,f=(c.end-c.start+1)*a-r;h.append("rect").attr("x",g).attr("y",u).attr("width",f).attr("height",n).attr("class","packetBlock"),h.append("text").attr("x",g+f/2).attr("y",u+n/2).attr("class","packetLabel").attr("dominant-baseline","middle").attr("text-anchor","middle").text(c.label),l&&(d=c.end===c.start,p=u-2,h.append("text").attr("x",g+(d?f/2:0)).attr("y",p).attr("class","packetByte start").attr("dominant-baseline","auto").attr("text-anchor",d?"middle":"start").text(c.start),d||h.append("text").attr("x",g+f).attr("y",p).attr("class","packetByte end").attr("dominant-baseline","auto").attr("text-anchor","end").text(c.end))}},"drawWord"),kMe={draw:xMe}}),$Me=e(()=>{"use strict";sC(),TMe={byteFontSize:"10px",startByteColor:"black",endByteColor:"black",labelColor:"black",labelFontSize:"12px",titleColor:"black",titleFontSize:"14px",blockStrokeColor:"black",blockStrokeWidth:"1",blockFillColor:"#efefef"},SMe=mt(({packet:e}={})=>{e=E_(TMe,e);return`
|
||
.packetByte {
|
||
font-size: ${e.byteFontSize};
|
||
}
|
||
.packetByte.start {
|
||
fill: ${e.startByteColor};
|
||
}
|
||
.packetByte.end {
|
||
fill: ${e.endByteColor};
|
||
}
|
||
.packetLabel {
|
||
fill: ${e.labelColor};
|
||
font-size: ${e.labelFontSize};
|
||
}
|
||
.packetTitle {
|
||
fill: ${e.titleColor};
|
||
font-size: ${e.titleFontSize};
|
||
}
|
||
.packetBlock {
|
||
stroke: ${e.blockStrokeColor};
|
||
stroke-width: ${e.blockStrokeWidth};
|
||
fill: ${e.blockFillColor};
|
||
}
|
||
`},"styles")}),LMe={};V(LMe,{diagram:()=>RMe});var RMe,MMe,IMe,NMe,DMe,OMe,PMe,BMe,FMe,jMe,zMe,HMe,UMe,qMe,WMe,VMe,GMe,YMe=e(()=>{"use strict";CMe(),AMe(),EMe(),$Me(),RMe={parser:vMe,db:mMe,renderer:kMe,styles:SMe}}),XMe=e(()=>{"use strict";Mn(),Ln(),sC(),_u(),IMe={axes:[],curves:[],options:MMe={showLegend:!0,ticks:5,max:null,min:0,graticule:"circle"}},NMe=structuredClone(IMe),DMe=vi.radar,OMe=mt(()=>E_({...DMe,...Ii().radar}),"getConfig"),PMe=mt(()=>NMe.axes,"getAxes"),BMe=mt(()=>NMe.curves,"getCurves"),FMe=mt(()=>NMe.options,"getOptions"),jMe=mt(e=>{NMe.axes=e.map(e=>({name:e.name,label:e.label??e.name}))},"setAxes"),zMe=mt(e=>{NMe.curves=e.map(e=>({name:e.name,label:e.label??e.name,entries:HMe(e.entries)}))},"setCurves"),HMe=mt(i=>{if(null==i[0].axis)return i.map(e=>e.value);var e=PMe();if(0===e.length)throw new Error("Axes must be populated before curves for reference entries");return e.map(t=>{var e=i.find(e=>e.axis?.$refText===t.name);if(void 0===e)throw new Error("Missing entry for axis "+t.label);return e.value})},"computeCurveEntries"),UMe=mt(e=>{e=e.reduce((e,t)=>(e[t.name]=t,e),{});NMe.options={showLegend:e.showLegend?.value??MMe.showLegend,ticks:e.ticks?.value??MMe.ticks,max:e.max?.value??MMe.max,min:e.min?.value??MMe.min,graticule:e.graticule?.value??MMe.graticule}},"setOptions"),qMe=mt(()=>{bh(),NMe=structuredClone(IMe)},"clear"),WMe={getAxes:PMe,getCurves:BMe,getOptions:FMe,setAxes:jMe,setCurves:zMe,setOptions:UMe,getConfig:OMe,clear:qMe,setAccTitle:vh,getAccTitle:xh,setDiagramTitle:Th,getDiagramTitle:Sh,getAccDescription:kh,setAccDescription:wh}}),KMe=e(()=>{"use strict";hfe(),t(),gfe(),XMe(),VMe=mt(e=>{ufe(e,WMe);var{axes:e,curves:t,options:i}=e;WMe.setAxes(e),WMe.setCurves(t),WMe.setOptions(i)},"populate"),GMe={parse:mt(async e=>{e=await afe("radar",e);I.debug(e),VMe(e)},"parse")}});function ZMe(i,e,t,n,r,s,a){let o=e.length,l=Math.min(a.width,a.height)/2;t.forEach((e,t)=>{e.entries.length===o&&(e=e.entries.map((e,t)=>{t=2*Math.PI*t/o-Math.PI/2,e=QMe(e,n,r,l);return{x:e*Math.cos(t),y:e*Math.sin(t)}}),"circle"===s?i.append("path").attr("d",JMe(e,a.curveTension)).attr("class","radarCurve-"+t):"polygon"===s&&i.append("polygon").attr("points",e.map(e=>e.x+","+e.y).join(" ")).attr("class","radarCurve-"+t))})}function QMe(e,t,i,n){return n*(Math.min(Math.max(e,t),i)-t)/(i-t)}function JMe(t,i){let n=t.length,r=`M${t[0].x},`+t[0].y;for(let e=0;e<n;e++){var s=t[(e-1+n)%n],a=t[e],o=t[(e+1)%n],l=t[(e+2)%n],s={x:a.x+(o.x-s.x)*i,y:a.y+(o.y-s.y)*i},l={x:o.x-(l.x-a.x)*i,y:o.y-(l.y-a.y)*i};r+=` C${s.x},${s.y} ${l.x},${l.y} ${o.x},`+o.y}return r+" Z"}function eIe(s,e,t,i){if(t){let n=3*(i.width/2+i.marginRight)/4,r=3*-(i.height/2+i.marginTop)/4;e.forEach((e,t)=>{var i=s.append("g").attr("transform",`translate(${n}, ${r+20*t})`);i.append("rect").attr("width",12).attr("height",12).attr("class","radarLegendBox-"+t),i.append("text").attr("x",16).attr("y",0).attr("class","radarLegendText").text(e.label)})}}var tIe,iIe,nIe,rIe,sIe,aIe,oIe,lIe,cIe=e(()=>{"use strict";Mye(),tIe=mt((e,t,i,n)=>{var n=n.db,r=n.getAxes(),s=n.getCurves(),a=n.getOptions(),o=n.getConfig(),n=n.getDiagramTitle(),t=_ye(t),t=iIe(t,o),l=a.max??Math.max(...s.map(e=>Math.max(...e.entries))),c=a.min,h=Math.min(o.width,o.height)/2;nIe(t,r,h,a.ticks,a.graticule),rIe(t,r,h,o),ZMe(t,r,s,c,l,a.graticule,o),eIe(t,s,a.showLegend,o),t.append("text").attr("class","radarTitle").text(n).attr("x",0).attr("y",-o.height/2-o.marginTop)},"draw"),iIe=mt((e,t)=>{let i=t.width+t.marginLeft+t.marginRight,n=t.height+t.marginTop+t.marginBottom,r=t.marginLeft+t.width/2,s=t.marginTop+t.height/2;return e.attr("viewbox",`0 0 ${i} `+n).attr("width",i).attr("height",n),e.append("g").attr("transform",`translate(${r}, ${s})`)},"drawFrame"),nIe=mt((r,s,a,o,e)=>{if("circle"===e)for(let e=0;e<o;e++){var t=a*(e+1)/o;r.append("circle").attr("r",t).attr("class","radarGraticule")}else if("polygon"===e){let n=s.length;for(let t=0;t<o;t++){let i=a*(t+1)/o,e=s.map((e,t)=>{t=2*t*Math.PI/n-Math.PI/2;return i*Math.cos(t)+","+i*Math.sin(t)}).join(" ");r.append("polygon").attr("points",e).attr("class","radarGraticule")}}},"drawGraticule"),rIe=mt((t,i,n,r)=>{var s=i.length;for(let e=0;e<s;e++){var a=i[e].label,o=2*e*Math.PI/s-Math.PI/2;t.append("line").attr("x1",0).attr("y1",0).attr("x2",n*r.axisScaleFactor*Math.cos(o)).attr("y2",n*r.axisScaleFactor*Math.sin(o)).attr("class","radarAxisLine"),t.append("text").text(a).attr("x",n*r.axisLabelFactor*Math.cos(o)).attr("y",n*r.axisLabelFactor*Math.sin(o)).attr("class","radarAxisLabel")}},"drawAxes"),mt(ZMe,"drawCurves"),mt(QMe,"relativeRadius"),mt(JMe,"closedRoundCurve"),mt(eIe,"drawLegend"),sIe={draw:tIe}}),hIe=e(()=>{"use strict";sC(),_n(),Mn(),aIe=mt((t,i)=>{let n="";for(let e=0;e<t.THEME_COLOR_LIMIT;e++){var r=t["cScale"+e];n+=`
|
||
.radarCurve-${e} {
|
||
color: ${r};
|
||
fill: ${r};
|
||
fill-opacity: ${i.curveOpacity};
|
||
stroke: ${r};
|
||
stroke-width: ${i.curveStrokeWidth};
|
||
}
|
||
.radarLegendBox-${e} {
|
||
fill: ${r};
|
||
fill-opacity: ${i.curveOpacity};
|
||
stroke: ${r};
|
||
}
|
||
`}return n},"genIndexStyles"),oIe=mt(e=>{var t=E_(ci(),Ii().themeVariables);return{themeVariables:t,radarOptions:E_(t.radar,e)}},"buildRadarStyleOptions"),lIe=mt(({radar:e}={})=>{var{themeVariables:e,radarOptions:t}=oIe(e);return`
|
||
.radarTitle {
|
||
font-size: ${e.fontSize};
|
||
color: ${e.titleColor};
|
||
dominant-baseline: hanging;
|
||
text-anchor: middle;
|
||
}
|
||
.radarAxisLine {
|
||
stroke: ${t.axisColor};
|
||
stroke-width: ${t.axisStrokeWidth};
|
||
}
|
||
.radarAxisLabel {
|
||
dominant-baseline: middle;
|
||
text-anchor: middle;
|
||
font-size: ${t.axisLabelFontSize}px;
|
||
color: ${t.axisColor};
|
||
}
|
||
.radarGraticule {
|
||
fill: ${t.graticuleColor};
|
||
fill-opacity: ${t.graticuleOpacity};
|
||
stroke: ${t.graticuleColor};
|
||
stroke-width: ${t.graticuleStrokeWidth};
|
||
}
|
||
.radarLegendText {
|
||
text-anchor: start;
|
||
font-size: ${t.legendFontSize}px;
|
||
dominant-baseline: hanging;
|
||
}
|
||
${aIe(e,t)}
|
||
`},"styles")}),uIe={};V(uIe,{diagram:()=>dIe});var dIe,pIe,gIe,fIe=e(()=>{"use strict";XMe(),KMe(),cIe(),hIe(),dIe={parser:GMe,db:WMe,renderer:sIe,styles:lIe}}),mIe=e(()=>{"use strict";function e(){this.yy={}}var t,i,n,r,s,a,o,l,c,h,u,d,p,g,f,m;t=mt(function(e,t,i,n){for(i=i||{},n=e.length;n--;i[e[n]]=t);return i},"o"),i=[1,7],n=[1,13],r=[1,14],s=[1,15],a=[1,19],o=[1,16],l=[1,17],c=[1,18],h=[8,30],u=[8,21,28,29,30,31,32,40,44,47],d=[1,23],p=[1,24],g=[8,15,16,21,28,29,30,31,32,40,44,47],f=[8,15,16,21,27,28,29,30,31,32,40,44,47],m=[1,49],h={trace:mt(function(){},"trace"),yy:{},symbols_:{error:2,spaceLines:3,SPACELINE:4,NL:5,separator:6,SPACE:7,EOF:8,start:9,BLOCK_DIAGRAM_KEY:10,document:11,stop:12,statement:13,link:14,LINK:15,START_LINK:16,LINK_LABEL:17,STR:18,nodeStatement:19,columnsStatement:20,SPACE_BLOCK:21,blockStatement:22,classDefStatement:23,cssClassStatement:24,styleStatement:25,node:26,SIZE:27,COLUMNS:28,"id-block":29,end:30,block:31,NODE_ID:32,nodeShapeNLabel:33,dirList:34,DIR:35,NODE_DSTART:36,NODE_DEND:37,BLOCK_ARROW_START:38,BLOCK_ARROW_END:39,classDef:40,CLASSDEF_ID:41,CLASSDEF_STYLEOPTS:42,DEFAULT:43,class:44,CLASSENTITY_IDS:45,STYLECLASS:46,style:47,STYLE_ENTITY_IDS:48,STYLE_DEFINITION_DATA:49,$accept:0,$end:1},terminals_:{2:"error",4:"SPACELINE",5:"NL",7:"SPACE",8:"EOF",10:"BLOCK_DIAGRAM_KEY",15:"LINK",16:"START_LINK",17:"LINK_LABEL",18:"STR",21:"SPACE_BLOCK",27:"SIZE",28:"COLUMNS",29:"id-block",30:"end",31:"block",32:"NODE_ID",35:"DIR",36:"NODE_DSTART",37:"NODE_DEND",38:"BLOCK_ARROW_START",39:"BLOCK_ARROW_END",40:"classDef",41:"CLASSDEF_ID",42:"CLASSDEF_STYLEOPTS",43:"DEFAULT",44:"class",45:"CLASSENTITY_IDS",46:"STYLECLASS",47:"style",48:"STYLE_ENTITY_IDS",49:"STYLE_DEFINITION_DATA"},productions_:[0,[3,1],[3,2],[3,2],[6,1],[6,1],[6,1],[9,3],[12,1],[12,1],[12,2],[12,2],[11,1],[11,2],[14,1],[14,4],[13,1],[13,1],[13,1],[13,1],[13,1],[13,1],[13,1],[19,3],[19,2],[19,1],[20,1],[22,4],[22,3],[26,1],[26,2],[34,1],[34,2],[33,3],[33,4],[23,3],[23,3],[24,3],[25,3]],performAction:mt(function(e,t,i,n,r,s,a){var o=s.length-1;switch(r){case 4:n.getLogger().debug("Rule: separator (NL) ");break;case 5:n.getLogger().debug("Rule: separator (Space) ");break;case 6:n.getLogger().debug("Rule: separator (EOF) ");break;case 7:n.getLogger().debug("Rule: hierarchy: ",s[o-1]),n.setHierarchy(s[o-1]);break;case 8:n.getLogger().debug("Stop NL ");break;case 9:n.getLogger().debug("Stop EOF ");break;case 10:n.getLogger().debug("Stop NL2 ");break;case 11:n.getLogger().debug("Stop EOF2 ");break;case 12:n.getLogger().debug("Rule: statement: ",s[o]),"number"==typeof s[o].length?this.$=s[o]:this.$=[s[o]];break;case 13:n.getLogger().debug("Rule: statement #2: ",s[o-1]),this.$=[s[o-1]].concat(s[o]);break;case 14:n.getLogger().debug("Rule: link: ",s[o],e),this.$={edgeTypeStr:s[o],label:""};break;case 15:n.getLogger().debug("Rule: LABEL link: ",s[o-3],s[o-1],s[o]),this.$={edgeTypeStr:s[o],label:s[o-1]};break;case 18:var l=parseInt(s[o]),c=n.generateId();this.$={id:c,type:"space",label:"",width:l,children:[]};break;case 23:n.getLogger().debug("Rule: (nodeStatement link node) ",s[o-2],s[o-1],s[o]," typestr: ",s[o-1].edgeTypeStr);c=n.edgeStrToEdgeData(s[o-1].edgeTypeStr);this.$=[{id:s[o-2].id,label:s[o-2].label,type:s[o-2].type,directions:s[o-2].directions},{id:s[o-2].id+"-"+s[o].id,start:s[o-2].id,end:s[o].id,label:s[o-1].label,type:"edge",directions:s[o].directions,arrowTypeEnd:c,arrowTypeStart:"arrow_open"},{id:s[o].id,label:s[o].label,type:n.typeStr2Type(s[o].typeStr),directions:s[o].directions}];break;case 24:n.getLogger().debug("Rule: nodeStatement (abc88 node size) ",s[o-1],s[o]),this.$={id:s[o-1].id,label:s[o-1].label,type:n.typeStr2Type(s[o-1].typeStr),directions:s[o-1].directions,widthInColumns:parseInt(s[o],10)};break;case 25:n.getLogger().debug("Rule: nodeStatement (node) ",s[o]),this.$={id:s[o].id,label:s[o].label,type:n.typeStr2Type(s[o].typeStr),directions:s[o].directions,widthInColumns:1};break;case 26:n.getLogger().debug("APA123",this||"na"),n.getLogger().debug("COLUMNS: ",s[o]),this.$={type:"column-setting",columns:"auto"===s[o]?-1:parseInt(s[o])};break;case 27:n.getLogger().debug("Rule: id-block statement : ",s[o-2],s[o-1]);n.generateId();this.$={...s[o-2],type:"composite",children:s[o-1]};break;case 28:n.getLogger().debug("Rule: blockStatement : ",s[o-2],s[o-1],s[o]);l=n.generateId();this.$={id:l,type:"composite",label:"",children:s[o-1]};break;case 29:n.getLogger().debug("Rule: node (NODE_ID separator): ",s[o]),this.$={id:s[o]};break;case 30:n.getLogger().debug("Rule: node (NODE_ID nodeShapeNLabel separator): ",s[o-1],s[o]),this.$={id:s[o-1],label:s[o].label,typeStr:s[o].typeStr,directions:s[o].directions};break;case 31:n.getLogger().debug("Rule: dirList: ",s[o]),this.$=[s[o]];break;case 32:n.getLogger().debug("Rule: dirList: ",s[o-1],s[o]),this.$=[s[o-1]].concat(s[o]);break;case 33:n.getLogger().debug("Rule: nodeShapeNLabel: ",s[o-2],s[o-1],s[o]),this.$={typeStr:s[o-2]+s[o],label:s[o-1]};break;case 34:n.getLogger().debug("Rule: BLOCK_ARROW nodeShapeNLabel: ",s[o-3],s[o-2]," #3:",s[o-1],s[o]),this.$={typeStr:s[o-3]+s[o],label:s[o-2],directions:s[o-1]};break;case 35:case 36:this.$={type:"classDef",id:s[o-1].trim(),css:s[o].trim()};break;case 37:this.$={type:"applyClass",id:s[o-1].trim(),styleClass:s[o].trim()};break;case 38:this.$={type:"applyStyles",id:s[o-1].trim(),stylesStr:s[o].trim()}}},"anonymous"),table:[{9:1,10:[1,2]},{1:[3]},{11:3,13:4,19:5,20:6,21:i,22:8,23:9,24:10,25:11,26:12,28:n,29:r,31:s,32:a,40:o,44:l,47:c},{8:[1,20]},t(h,[2,12],{13:4,19:5,20:6,22:8,23:9,24:10,25:11,26:12,11:21,21:i,28:n,29:r,31:s,32:a,40:o,44:l,47:c}),t(u,[2,16],{14:22,15:d,16:p}),t(u,[2,17]),t(u,[2,18]),t(u,[2,19]),t(u,[2,20]),t(u,[2,21]),t(u,[2,22]),t(g,[2,25],{27:[1,25]}),t(u,[2,26]),{19:26,26:12,32:a},{11:27,13:4,19:5,20:6,21:i,22:8,23:9,24:10,25:11,26:12,28:n,29:r,31:s,32:a,40:o,44:l,47:c},{41:[1,28],43:[1,29]},{45:[1,30]},{48:[1,31]},t(f,[2,29],{33:32,36:[1,33],38:[1,34]}),{1:[2,7]},t(h,[2,13]),{26:35,32:a},{32:[2,14]},{17:[1,36]},t(g,[2,24]),{11:37,13:4,14:22,15:d,16:p,19:5,20:6,21:i,22:8,23:9,24:10,25:11,26:12,28:n,29:r,31:s,32:a,40:o,44:l,47:c},{30:[1,38]},{42:[1,39]},{42:[1,40]},{46:[1,41]},{49:[1,42]},t(f,[2,30]),{18:[1,43]},{18:[1,44]},t(g,[2,23]),{18:[1,45]},{30:[1,46]},t(u,[2,28]),t(u,[2,35]),t(u,[2,36]),t(u,[2,37]),t(u,[2,38]),{37:[1,47]},{34:48,35:m},{15:[1,50]},t(u,[2,27]),t(f,[2,33]),{39:[1,51]},{34:52,35:m,39:[2,31]},{32:[2,15]},t(f,[2,34]),{39:[2,32]}],defaultActions:{20:[2,7],23:[2,14],50:[2,15],52:[2,32]},parseError:mt(function(e,t){var i;if(!t.recoverable)throw(i=new Error(e)).hash=t,i;this.trace(e)},"parseError"),parse:mt(function(e){var t,i=this,n=[0],r=[],s=[null],a=[],o=this.table,l="",c=0,h=0,u=0,d=1,p=a.slice.call(arguments,1),g=Object.create(this.lexer),f={yy:{}};for(t in this.yy)Object.prototype.hasOwnProperty.call(this.yy,t)&&(f.yy[t]=this.yy[t]);g.setInput(e,f.yy),f.yy.lexer=g,f.yy.parser=this,"u"<typeof g.yylloc&&(g.yylloc={});var m=g.yylloc,y=(a.push(m),g.options&&g.options.ranges);function b(){var e=r.pop()||g.lex()||d;return"number"!=typeof e&&(e instanceof Array&&(e=(r=e).pop()),e=i.symbols_[e]||e),e}"function"==typeof f.yy.parseError?this.parseError=f.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError,mt(function(e){n.length=n.length-2*e,s.length=s.length-e,a.length=a.length-e},"popStack"),mt(b,"lex");for(var v,x,w,k,T,S,_,C={};;){if(w=n[n.length-1],"u"<typeof(k=this.defaultActions[w]||((null===v||"u"<typeof v)&&(v=b()),o[w]&&o[w][v]))||!k.length||!k[0]){var A="",E=[];for(T in o[w])this.terminals_[T]&&2<T&&E.push("'"+this.terminals_[T]+"'");A=g.showPosition?"Parse error on line "+(c+1)+`:
|
||
`+g.showPosition()+`
|
||
Expecting `+E.join(", ")+", got '"+(this.terminals_[v]||v)+"'":"Parse error on line "+(c+1)+": Unexpected "+(v==d?"end of input":"'"+(this.terminals_[v]||v)+"'"),this.parseError(A,{text:g.match,token:this.terminals_[v]||v,line:g.yylineno,loc:m,expected:E})}if(k[0]instanceof Array&&1<k.length)throw new Error("Parse Error: multiple actions possible at state: "+w+", token: "+v);switch(k[0]){case 1:n.push(v),s.push(g.yytext),a.push(g.yylloc),n.push(k[1]),v=null,x?(v=x,x=null):(h=g.yyleng,l=g.yytext,c=g.yylineno,m=g.yylloc,0<u&&u--);break;case 2:if(S=this.productions_[k[1]][1],C.$=s[s.length-S],C._$={first_line:a[a.length-(S||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(S||1)].first_column,last_column:a[a.length-1].last_column},y&&(C._$.range=[a[a.length-(S||1)].range[0],a[a.length-1].range[1]]),typeof(_=this.performAction.apply(C,[l,h,c,f.yy,k[1],s,a].concat(p)))<"u")return _;S&&(n=n.slice(0,-1*S*2),s=s.slice(0,-1*S),a=a.slice(0,-1*S)),n.push(this.productions_[k[1]][0]),s.push(C.$),a.push(C._$),_=o[n[n.length-2]][n[n.length-1]],n.push(_);break;case 3:return!0}}return!0},"parse")},d={EOF:1,parseError:mt(function(e,t){if(!this.yy.parser)throw new Error(e);this.yy.parser.parseError(e,t)},"parseError"),setInput:mt(function(e,t){return this.yy=t||this.yy||{},this._input=e,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:mt(function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.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),e},"input"),unput:mt(function(e){var t=e.length,i=e.split(/(?:\r\n?|\n)/g),e=(this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t,this.match.split(/(?:\r\n?|\n)/g)),n=(this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),i.length-1&&(this.yylineno-=i.length-1),this.yylloc.range);return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:i?(i.length===e.length?this.yylloc.first_column:0)+e[e.length-i.length].length-i[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[n[0],n[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},"unput"),more:mt(function(){return this._more=!0,this},"more"),reject:mt(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).
|
||
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"reject"),less:mt(function(e){this.unput(this.match.slice(e))},"less"),pastInput:mt(function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(20<e.length?"...":"")+e.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:mt(function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(20<e.length?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:mt(function(){var e=this.pastInput(),t=new Array(e.length+1).join("-");return e+this.upcomingInput()+`
|
||
`+t+"^"},"showPosition"),test_match:mt(function(e,t){var i,n;if(this.options.backtrack_lexer&&(n={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)&&(n.yylloc.range=this.yylloc.range.slice(0)),(i=e[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=i.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:i?i[i.length-1].length-i[i.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+e[0].length},this.yytext+=e[0],this.match+=e[0],this.matches=e,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(e[0].length),this.matched+=e[0],i=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),i)return i;if(this._backtrack)for(var r in n)this[r]=n[r];return!1},"test_match"),next:mt(function(){if(this.done)return this.EOF;var e,t,i,n;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var r=this._currentRules(),s=0;s<r.length;s++)if((i=this._input.match(this.rules[r[s]]))&&(!t||i[0].length>t[0].length)){if(t=i,n=s,this.options.backtrack_lexer){if(!1!==(e=this.test_match(i,r[s])))return e;if(this._backtrack){t=!1;continue}return!1}if(!this.options.flex)break}return t?!1!==(e=this.test_match(t,r[n]))&&e:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
|
||
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:mt(function(){return this.next()||this.lex()},"lex"),begin:mt(function(e){this.conditionStack.push(e)},"begin"),popState:mt(function(){return 0<this.conditionStack.length-1?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:mt(function(){return(this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]]:this.conditions.INITIAL).rules},"_currentRules"),topState:mt(function(e){return 0<=(e=this.conditionStack.length-1-Math.abs(e||0))?this.conditionStack[e]:"INITIAL"},"topState"),pushState:mt(function(e){this.begin(e)},"pushState"),stateStackSize:mt(function(){return this.conditionStack.length},"stateStackSize"),options:{},performAction:mt(function(e,t,i,n){switch(i){case 0:return 10;case 1:return e.getLogger().debug("Found space-block"),31;case 2:return e.getLogger().debug("Found nl-block"),31;case 3:return e.getLogger().debug("Found space-block"),29;case 4:e.getLogger().debug(".",t.yytext);break;case 5:e.getLogger().debug("_",t.yytext);break;case 6:return 5;case 7:return t.yytext=-1,28;case 8:return t.yytext=t.yytext.replace(/columns\s+/,""),e.getLogger().debug("COLUMNS (LEX)",t.yytext),28;case 9:this.pushState("md_string");break;case 10:return"MD_STR";case 11:this.popState();break;case 12:this.pushState("string");break;case 13:e.getLogger().debug("LEX: POPPING STR:",t.yytext),this.popState();break;case 14:return e.getLogger().debug("LEX: STR end:",t.yytext),"STR";case 15:return t.yytext=t.yytext.replace(/space\:/,""),e.getLogger().debug("SPACE NUM (LEX)",t.yytext),21;case 16:return t.yytext="1",e.getLogger().debug("COLUMNS (LEX)",t.yytext),21;case 17:return 43;case 18:return"LINKSTYLE";case 19:return"INTERPOLATE";case 20:return this.pushState("CLASSDEF"),40;case 21:return this.popState(),this.pushState("CLASSDEFID"),"DEFAULT_CLASSDEF_ID";case 22:return this.popState(),this.pushState("CLASSDEFID"),41;case 23:return this.popState(),42;case 24:return this.pushState("CLASS"),44;case 25:return this.popState(),this.pushState("CLASS_STYLE"),45;case 26:return this.popState(),46;case 27:return this.pushState("STYLE_STMNT"),47;case 28:return this.popState(),this.pushState("STYLE_DEFINITION"),48;case 29:return this.popState(),49;case 30:return this.pushState("acc_title"),"acc_title";case 31:return this.popState(),"acc_title_value";case 32:return this.pushState("acc_descr"),"acc_descr";case 33:return this.popState(),"acc_descr_value";case 34:this.pushState("acc_descr_multiline");break;case 35:this.popState();break;case 36:return"acc_descr_multiline_value";case 37:return 30;case 38:case 39:return this.popState(),e.getLogger().debug("Lex: (("),"NODE_DEND";case 40:return this.popState(),e.getLogger().debug("Lex: ))"),"NODE_DEND";case 41:case 42:return this.popState(),e.getLogger().debug("Lex: (("),"NODE_DEND";case 43:return this.popState(),e.getLogger().debug("Lex: (-"),"NODE_DEND";case 44:return this.popState(),e.getLogger().debug("Lex: -)"),"NODE_DEND";case 45:return this.popState(),e.getLogger().debug("Lex: (("),"NODE_DEND";case 46:return this.popState(),e.getLogger().debug("Lex: ]]"),"NODE_DEND";case 47:return this.popState(),e.getLogger().debug("Lex: ("),"NODE_DEND";case 48:return this.popState(),e.getLogger().debug("Lex: ])"),"NODE_DEND";case 49:case 50:return this.popState(),e.getLogger().debug("Lex: /]"),"NODE_DEND";case 51:return this.popState(),e.getLogger().debug("Lex: )]"),"NODE_DEND";case 52:return this.popState(),e.getLogger().debug("Lex: )"),"NODE_DEND";case 53:return this.popState(),e.getLogger().debug("Lex: ]>"),"NODE_DEND";case 54:return this.popState(),e.getLogger().debug("Lex: ]"),"NODE_DEND";case 55:return e.getLogger().debug("Lexa: -)"),this.pushState("NODE"),36;case 56:return e.getLogger().debug("Lexa: (-"),this.pushState("NODE"),36;case 57:return e.getLogger().debug("Lexa: ))"),this.pushState("NODE"),36;case 58:return e.getLogger().debug("Lexa: )"),this.pushState("NODE"),36;case 59:return e.getLogger().debug("Lex: ((("),this.pushState("NODE"),36;case 60:case 61:case 62:return e.getLogger().debug("Lexa: )"),this.pushState("NODE"),36;case 63:return e.getLogger().debug("Lexc: >"),this.pushState("NODE"),36;case 64:return e.getLogger().debug("Lexa: (["),this.pushState("NODE"),36;case 65:return e.getLogger().debug("Lexa: )"),this.pushState("NODE"),36;case 66:case 67:case 68:case 69:case 70:case 71:case 72:return this.pushState("NODE"),36;case 73:return e.getLogger().debug("Lexa: ["),this.pushState("NODE"),36;case 74:return this.pushState("BLOCK_ARROW"),e.getLogger().debug("LEX ARR START"),38;case 75:return e.getLogger().debug("Lex: NODE_ID",t.yytext),32;case 76:return e.getLogger().debug("Lex: EOF",t.yytext),8;case 77:case 78:this.pushState("md_string");break;case 79:return"NODE_DESCR";case 80:this.popState();break;case 81:e.getLogger().debug("Lex: Starting string"),this.pushState("string");break;case 82:e.getLogger().debug("LEX ARR: Starting string"),this.pushState("string");break;case 83:return e.getLogger().debug("LEX: NODE_DESCR:",t.yytext),"NODE_DESCR";case 84:e.getLogger().debug("LEX POPPING"),this.popState();break;case 85:e.getLogger().debug("Lex: =>BAE"),this.pushState("ARROW_DIR");break;case 86:return t.yytext=t.yytext.replace(/^,\s*/,""),e.getLogger().debug("Lex (right): dir:",t.yytext),"DIR";case 87:return t.yytext=t.yytext.replace(/^,\s*/,""),e.getLogger().debug("Lex (left):",t.yytext),"DIR";case 88:return t.yytext=t.yytext.replace(/^,\s*/,""),e.getLogger().debug("Lex (x):",t.yytext),"DIR";case 89:return t.yytext=t.yytext.replace(/^,\s*/,""),e.getLogger().debug("Lex (y):",t.yytext),"DIR";case 90:return t.yytext=t.yytext.replace(/^,\s*/,""),e.getLogger().debug("Lex (up):",t.yytext),"DIR";case 91:return t.yytext=t.yytext.replace(/^,\s*/,""),e.getLogger().debug("Lex (down):",t.yytext),"DIR";case 92:return t.yytext="]>",e.getLogger().debug("Lex (ARROW_DIR end):",t.yytext),this.popState(),this.popState(),"BLOCK_ARROW_END";case 93:return e.getLogger().debug("Lex: LINK","#"+t.yytext+"#"),15;case 94:case 95:case 96:return e.getLogger().debug("Lex: LINK",t.yytext),15;case 97:case 98:case 99:return e.getLogger().debug("Lex: START_LINK",t.yytext),this.pushState("LLABEL"),16;case 100:this.pushState("md_string");break;case 101:return e.getLogger().debug("Lex: Starting string"),this.pushState("string"),"LINK_LABEL";case 102:return this.popState(),e.getLogger().debug("Lex: LINK","#"+t.yytext+"#"),15;case 103:case 104:return this.popState(),e.getLogger().debug("Lex: LINK",t.yytext),15;case 105:return e.getLogger().debug("Lex: COLON",t.yytext),t.yytext=t.yytext.slice(1),27}},"anonymous"),rules:[/^(?:block-beta\b)/,/^(?:block\s+)/,/^(?:block\n+)/,/^(?:block:)/,/^(?:[\s]+)/,/^(?:[\n]+)/,/^(?:((\u000D\u000A)|(\u000A)))/,/^(?:columns\s+auto\b)/,/^(?:columns\s+[\d]+)/,/^(?:["][`])/,/^(?:[^`"]+)/,/^(?:[`]["])/,/^(?:["])/,/^(?:["])/,/^(?:[^"]*)/,/^(?:space[:]\d+)/,/^(?:space\b)/,/^(?:default\b)/,/^(?:linkStyle\b)/,/^(?:interpolate\b)/,/^(?:classDef\s+)/,/^(?:DEFAULT\s+)/,/^(?:\w+\s+)/,/^(?:[^\n]*)/,/^(?:class\s+)/,/^(?:(\w+)+((,\s*\w+)*))/,/^(?:[^\n]*)/,/^(?:style\s+)/,/^(?:(\w+)+((,\s*\w+)*))/,/^(?:[^\n]*)/,/^(?:accTitle\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*\{\s*)/,/^(?:[\}])/,/^(?:[^\}]*)/,/^(?:end\b\s*)/,/^(?:\(\(\()/,/^(?:\)\)\))/,/^(?:[\)]\))/,/^(?:\}\})/,/^(?:\})/,/^(?:\(-)/,/^(?:-\))/,/^(?:\(\()/,/^(?:\]\])/,/^(?:\()/,/^(?:\]\))/,/^(?:\\\])/,/^(?:\/\])/,/^(?:\)\])/,/^(?:[\)])/,/^(?:\]>)/,/^(?:[\]])/,/^(?:-\))/,/^(?:\(-)/,/^(?:\)\))/,/^(?:\))/,/^(?:\(\(\()/,/^(?:\(\()/,/^(?:\{\{)/,/^(?:\{)/,/^(?:>)/,/^(?:\(\[)/,/^(?:\()/,/^(?:\[\[)/,/^(?:\[\|)/,/^(?:\[\()/,/^(?:\)\)\))/,/^(?:\[\\)/,/^(?:\[\/)/,/^(?:\[\\)/,/^(?:\[)/,/^(?:<\[)/,/^(?:[^\(\[\n\-\)\{\}\s\<\>:]+)/,/^(?:$)/,/^(?:["][`])/,/^(?:["][`])/,/^(?:[^`"]+)/,/^(?:[`]["])/,/^(?:["])/,/^(?:["])/,/^(?:[^"]+)/,/^(?:["])/,/^(?:\]>\s*\()/,/^(?:,?\s*right\s*)/,/^(?:,?\s*left\s*)/,/^(?:,?\s*x\s*)/,/^(?:,?\s*y\s*)/,/^(?:,?\s*up\s*)/,/^(?:,?\s*down\s*)/,/^(?:\)\s*)/,/^(?:\s*[xo<]?--+[-xo>]\s*)/,/^(?:\s*[xo<]?==+[=xo>]\s*)/,/^(?:\s*[xo<]?-?\.+-[xo>]?\s*)/,/^(?:\s*~~[\~]+\s*)/,/^(?:\s*[xo<]?--\s*)/,/^(?:\s*[xo<]?==\s*)/,/^(?:\s*[xo<]?-\.\s*)/,/^(?:["][`])/,/^(?:["])/,/^(?:\s*[xo<]?--+[-xo>]\s*)/,/^(?:\s*[xo<]?==+[=xo>]\s*)/,/^(?:\s*[xo<]?-?\.+-[xo>]?\s*)/,/^(?::\d+)/],conditions:{STYLE_DEFINITION:{rules:[29],inclusive:!1},STYLE_STMNT:{rules:[28],inclusive:!1},CLASSDEFID:{rules:[23],inclusive:!1},CLASSDEF:{rules:[21,22],inclusive:!1},CLASS_STYLE:{rules:[26],inclusive:!1},CLASS:{rules:[25],inclusive:!1},LLABEL:{rules:[100,101,102,103,104],inclusive:!1},ARROW_DIR:{rules:[86,87,88,89,90,91,92],inclusive:!1},BLOCK_ARROW:{rules:[77,82,85],inclusive:!1},NODE:{rules:[38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,78,81],inclusive:!1},md_string:{rules:[10,11,79,80],inclusive:!1},space:{rules:[],inclusive:!1},string:{rules:[13,14,83,84],inclusive:!1},acc_descr_multiline:{rules:[35,36],inclusive:!1},acc_descr:{rules:[33],inclusive:!1},acc_title:{rules:[31],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,7,8,9,12,15,16,17,18,19,20,24,27,30,32,34,37,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,93,94,95,96,97,98,99,105],inclusive:!0}}},h.lexer=d,mt(e,"Parser"),(pIe=new((e.prototype=h).Parser=e)).parser=pIe,gIe=pIe});function yIe(e){switch(I.debug("typeStr2Type",e),e){case"[]":return"square";case"()":return I.debug("we have a round"),"round";case"(())":return"circle";case">]":return"rect_left_inv_arrow";case"{}":return"diamond";case"{{}}":return"hexagon";case"([])":return"stadium";case"[[]]":return"subroutine";case"[()]":return"cylinder";case"((()))":return"doublecircle";case"[//]":return"lean_right";case"[\\\\]":return"lean_left";case"[/\\]":return"trapezoid";case"[\\/]":return"inv_trapezoid";case"<[]>":return"block_arrow";default:return"na"}}function bIe(e){return"=="!==(I.debug("typeStr2Type",e),e)?"normal":"thick"}function vIe(e){switch(e.trim()){case"--x":return"arrow_cross";case"--o":return"arrow_circle";default:return"arrow_point"}}var xIe,wIe,kIe,TIe,SIe,_Ie,CIe,AIe,EIe,$Ie,LIe,RIe,MIe,IIe,NIe,DIe,OIe,PIe,BIe,FIe,jIe,zIe,HIe,UIe,qIe,WIe,VIe,GIe,YIe,XIe,KIe,ZIe,QIe,JIe,eNe,tNe,iNe,nNe,rNe,sNe,aNe=e(()=>{"use strict";uj(),Mn(),Cu(),t(),hh(),_u(),xIe=new Map,wIe=[],kIe=new Map,TIe=N(),SIe=new Map,_Ie=mt(e=>$.sanitizeText(e,TIe),"sanitizeText"),CIe=mt(function(e,t=""){let i=SIe.get(e);i||(i={id:e,styles:[],textStyles:[]},SIe.set(e,i)),t?.split(",").forEach(e=>{var t=e.replace(/([^;]*);/,"$1").trim();RegExp("color").exec(e)&&(e=t.replace("fill","bgFill").replace("color","fill"),i.textStyles.push(e)),i.styles.push(t)})},"addStyleClass"),AIe=mt(function(e,t=""){e=xIe.get(e);null!=t&&(e.styles=t.split(","))},"addStyle2Node"),EIe=mt(function(e,i){e.split(",").forEach(function(e){let t=xIe.get(e);void 0===t&&(e=e.trim(),t={id:e,type:"na",children:[]},xIe.set(e,t)),t.classes||(t.classes=[]),t.classes.push(i)})},"setCssClass"),$Ie=mt((e,t)=>{var i,n=[];for(i of e.flat())if(i.label&&(i.label=_Ie(i.label)),"classDef"===i.type)CIe(i.id,i.css);else if("applyClass"===i.type)EIe(i.id,i?.styleClass??"");else if("applyStyles"===i.type)i?.stylesStr&&AIe(i.id,i?.stylesStr);else if("column-setting"===i.type)t.columns=i.columns??-1;else if("edge"===i.type){var r=(kIe.get(i.id)??0)+1;kIe.set(i.id,r),i.id=r+"-"+i.id,wIe.push(i)}else{i.label||("composite"===i.type?i.label="":i.label=i.id);r=xIe.get(i.id);if(void 0===r?xIe.set(i.id,i):("na"!==i.type&&(r.type=i.type),i.label!==i.id&&(r.label=i.label)),i.children&&$Ie(i.children,i),"space"===i.type){var s=i.width??1;for(let e=0;e<s;e++){var a=hj(i);a.id=a.id+"-"+e,xIe.set(a.id,a),n.push(a)}}else void 0===r&&n.push(i)}t.children=n},"populateBlockDatabase"),LIe=[],RIe={id:"root",type:"composite",children:[],columns:-1},MIe=mt(()=>{I.debug("Clear called"),bh(),RIe={id:"root",type:"composite",children:[],columns:-1},xIe=new Map([["root",RIe]]),LIe=[],SIe=new Map,wIe=[],kIe=new Map},"clear"),mt(yIe,"typeStr2Type"),mt(bIe,"edgeTypeStr2Type"),mt(vIe,"edgeStrToEdgeData"),IIe=0,NIe=mt(()=>(IIe++,"id-"+Math.random().toString(36).substr(2,12)+"-"+IIe),"generateId"),DIe=mt(e=>{RIe.children=e,$Ie(e,RIe),LIe=RIe.children},"setHierarchy"),OIe=mt(e=>{e=xIe.get(e);return e?e.columns||(e.children?e.children.length:-1):-1},"getColumns"),PIe=mt(()=>[...xIe.values()],"getBlocksFlat"),BIe=mt(()=>LIe||[],"getBlocks"),FIe=mt(()=>wIe,"getEdges"),jIe=mt(e=>xIe.get(e),"getBlock"),zIe=mt(e=>{xIe.set(e.id,e)},"setBlock"),UIe=mt(()=>I,"getLogger"),HIe=mt(function(){return SIe},"getClasses"),UIe={getConfig:mt(()=>Ii().block,"getConfig"),typeStr2Type:yIe,edgeTypeStr2Type:bIe,edgeStrToEdgeData:vIe,getLogger:UIe,getBlocksFlat:PIe,getBlocks:BIe,getEdges:FIe,setHierarchy:DIe,getBlock:jIe,setBlock:zIe,getColumns:OIe,getClasses:HIe,clear:MIe,generateId:NIe},qIe=UIe}),oNe=e(()=>{"use strict";xn(),iZ(),WIe=mt((e,t)=>{var i=Ft,n=i(e,"r"),r=i(e,"g"),i=i(e,"b");return Pt(n,r,i,t)},"fade"),VIe=mt(e=>`.label {
|
||
font-family: ${e.fontFamily};
|
||
color: ${e.nodeTextColor||e.textColor};
|
||
}
|
||
.cluster-label text {
|
||
fill: ${e.titleColor};
|
||
}
|
||
.cluster-label span,p {
|
||
color: ${e.titleColor};
|
||
}
|
||
|
||
|
||
|
||
.label text,span,p {
|
||
fill: ${e.nodeTextColor||e.textColor};
|
||
color: ${e.nodeTextColor||e.textColor};
|
||
}
|
||
|
||
.node rect,
|
||
.node circle,
|
||
.node ellipse,
|
||
.node polygon,
|
||
.node path {
|
||
fill: ${e.mainBkg};
|
||
stroke: ${e.nodeBorder};
|
||
stroke-width: 1px;
|
||
}
|
||
.flowchart-label text {
|
||
text-anchor: middle;
|
||
}
|
||
// .flowchart-label .text-outer-tspan {
|
||
// text-anchor: middle;
|
||
// }
|
||
// .flowchart-label .text-inner-tspan {
|
||
// text-anchor: start;
|
||
// }
|
||
|
||
.node .label {
|
||
text-align: center;
|
||
}
|
||
.node.clickable {
|
||
cursor: pointer;
|
||
}
|
||
|
||
.arrowheadPath {
|
||
fill: ${e.arrowheadColor};
|
||
}
|
||
|
||
.edgePath .path {
|
||
stroke: ${e.lineColor};
|
||
stroke-width: 2.0px;
|
||
}
|
||
|
||
.flowchart-link {
|
||
stroke: ${e.lineColor};
|
||
fill: none;
|
||
}
|
||
|
||
.edgeLabel {
|
||
background-color: ${e.edgeLabelBackground};
|
||
rect {
|
||
opacity: 0.5;
|
||
background-color: ${e.edgeLabelBackground};
|
||
fill: ${e.edgeLabelBackground};
|
||
}
|
||
text-align: center;
|
||
}
|
||
|
||
/* For html labels only */
|
||
.labelBkg {
|
||
background-color: ${WIe(e.edgeLabelBackground,.5)};
|
||
// background-color:
|
||
}
|
||
|
||
.node .cluster {
|
||
// fill: ${WIe(e.mainBkg,.5)};
|
||
fill: ${WIe(e.clusterBkg,.5)};
|
||
stroke: ${WIe(e.clusterBorder,.2)};
|
||
box-shadow: rgba(50, 50, 93, 0.25) 0px 13px 27px -5px, rgba(0, 0, 0, 0.3) 0px 8px 16px -8px;
|
||
stroke-width: 1px;
|
||
}
|
||
|
||
.cluster text {
|
||
fill: ${e.titleColor};
|
||
}
|
||
|
||
.cluster span,p {
|
||
color: ${e.titleColor};
|
||
}
|
||
/* .cluster div {
|
||
color: ${e.titleColor};
|
||
} */
|
||
|
||
div.mermaidTooltip {
|
||
position: absolute;
|
||
text-align: center;
|
||
max-width: 200px;
|
||
padding: 2px;
|
||
font-family: ${e.fontFamily};
|
||
font-size: 12px;
|
||
background: ${e.tertiaryColor};
|
||
border: 1px solid ${e.border2};
|
||
border-radius: 2px;
|
||
pointer-events: none;
|
||
z-index: 100;
|
||
}
|
||
|
||
.flowchartTitleText {
|
||
text-anchor: middle;
|
||
font-size: 18px;
|
||
fill: ${e.textColor};
|
||
}
|
||
${VK()}
|
||
`,"getStyles"),GIe=VIe}),lNe=e(()=>{"use strict";t(),YIe=mt((t,e,i,n)=>{e.forEach(e=>{rNe[e](t,i,n)})},"insertMarkers"),XIe=mt((e,t,i)=>{I.trace("Making markers for ",i),e.append("defs").append("marker").attr("id",i+"_"+t+"-extensionStart").attr("class","marker extension "+t).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 1,7 L18,13 V 1 Z"),e.append("defs").append("marker").attr("id",i+"_"+t+"-extensionEnd").attr("class","marker extension "+t).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 1,1 V 13 L18,7 Z")},"extension"),KIe=mt((e,t,i)=>{e.append("defs").append("marker").attr("id",i+"_"+t+"-compositionStart").attr("class","marker composition "+t).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),e.append("defs").append("marker").attr("id",i+"_"+t+"-compositionEnd").attr("class","marker composition "+t).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z")},"composition"),ZIe=mt((e,t,i)=>{e.append("defs").append("marker").attr("id",i+"_"+t+"-aggregationStart").attr("class","marker aggregation "+t).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),e.append("defs").append("marker").attr("id",i+"_"+t+"-aggregationEnd").attr("class","marker aggregation "+t).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z")},"aggregation"),QIe=mt((e,t,i)=>{e.append("defs").append("marker").attr("id",i+"_"+t+"-dependencyStart").attr("class","marker dependency "+t).attr("refX",6).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 5,7 L9,13 L1,7 L9,1 Z"),e.append("defs").append("marker").attr("id",i+"_"+t+"-dependencyEnd").attr("class","marker dependency "+t).attr("refX",13).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L14,7 L9,1 Z")},"dependency"),JIe=mt((e,t,i)=>{e.append("defs").append("marker").attr("id",i+"_"+t+"-lollipopStart").attr("class","marker lollipop "+t).attr("refX",13).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("circle").attr("stroke","black").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6),e.append("defs").append("marker").attr("id",i+"_"+t+"-lollipopEnd").attr("class","marker lollipop "+t).attr("refX",1).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("circle").attr("stroke","black").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6)},"lollipop"),eNe=mt((e,t,i)=>{e.append("marker").attr("id",i+"_"+t+"-pointEnd").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",6).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 z").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),e.append("marker").attr("id",i+"_"+t+"-pointStart").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",4.5).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 0 5 L 10 10 L 10 0 z").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0")},"point"),tNe=mt((e,t,i)=>{e.append("marker").attr("id",i+"_"+t+"-circleEnd").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",11).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),e.append("marker").attr("id",i+"_"+t+"-circleStart").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",-1).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0")},"circle"),iNe=mt((e,t,i)=>{e.append("marker").attr("id",i+"_"+t+"-crossEnd").attr("class","marker cross "+t).attr("viewBox","0 0 11 11").attr("refX",12).attr("refY",5.2).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("path").attr("d","M 1,1 l 9,9 M 10,1 l -9,9").attr("class","arrowMarkerPath").style("stroke-width",2).style("stroke-dasharray","1,0"),e.append("marker").attr("id",i+"_"+t+"-crossStart").attr("class","marker cross "+t).attr("viewBox","0 0 11 11").attr("refX",-1).attr("refY",5.2).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("path").attr("d","M 1,1 l 9,9 M 10,1 l -9,9").attr("class","arrowMarkerPath").style("stroke-width",2).style("stroke-dasharray","1,0")},"cross"),nNe=mt((e,t,i)=>{e.append("defs").append("marker").attr("id",i+"_"+t+"-barbEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",14).attr("markerUnits","strokeWidth").attr("orient","auto").append("path").attr("d","M 19,7 L9,13 L14,7 L9,1 Z")},"barb"),rNe={extension:XIe,composition:KIe,aggregation:ZIe,dependency:QIe,lollipop:JIe,point:eNe,circle:tNe,cross:iNe,barb:nNe},sNe=YIe});function cNe(e,t){if(0===e||!Number.isInteger(e))throw new Error("Columns must be an integer !== 0.");if(t<0||!Number.isInteger(t))throw new Error("Position must be a non-negative integer."+t);return e<0?{px:t,py:0}:1===e?{px:0,py:t}:{px:t%e,py:Math.floor(t/e)}}function hNe(a,o,l=0,c=0){I.debug("setBlockSizes abc95 (start)",a.id,a?.size?.x,"block width =",a?.size,"siblingWidth",l),a?.size?.width||(a.size={width:l,height:c,x:0,y:0});if(0<a.children?.length){for(var h of a.children)hNe(h,o);var u,d,p,g=fNe(a),f=g.width,m=g.height;I.debug("setBlockSizes abc95 maxWidth of",a.id,":s children is ",f,m);for(u of a.children)u.size&&(I.debug(`abc95 Setting size of children of ${a.id} id=${u.id} ${f} ${m} `+JSON.stringify(u.size)),u.size.width=f*(u.widthInColumns??1)+gNe*((u.widthInColumns??1)-1),u.size.height=m,u.size.x=0,u.size.y=0,I.debug(`abc95 updating size of ${a.id} children child:${u.id} maxWidth:${f} maxHeight:`+m));for(d of a.children)hNe(d,o,f,m);let e=a.columns??-1,t=0;for(p of a.children)t+=p.widthInColumns??1;let i=a.children.length,n=(0<e&&e<t&&(i=e),Math.ceil(t/i)),r=i*(f+gNe)+gNe,s=n*(m+gNe)+gNe;if(r<l){I.debug(`Detected to small sibling: abc95 ${a.id} siblingWidth ${l} siblingHeight ${c} width `+r),r=l,s=c;var y,b=(l-i*gNe-gNe)/i,v=(c-n*gNe-gNe)/n;I.debug("Size indata abc88",a.id,"childWidth",b,"maxWidth",f),I.debug("Size indata abc88",a.id,"childHeight",v,"maxHeight",m),I.debug("Size indata abc88 xSize",i,"padding",gNe);for(y of a.children)y.size&&(y.size.width=b,y.size.height=v,y.size.x=0,y.size.y=0)}if(I.debug(`abc95 (finale calc) ${a.id} xSize ${i} ySize ${n} columns ${e}${a.children.length} width=`+Math.max(r,a.size?.width||0)),r<(a?.size?.width||0)){r=a?.size?.width||0;g=0<e?Math.min(a.children.length,e):a.children.length;if(0<g){var x,w=(r-g*gNe-gNe)/g;I.debug("abc95 (growing to fit) width",a.id,r,a.size?.width,w);for(x of a.children)x.size&&(x.size.width=w)}}a.size={width:r,height:s,x:0,y:0}}I.debug("setBlockSizes abc94 (done)",a.id,a?.size?.x,a?.size?.width,a?.size?.y,a?.size?.height)}function uNe(n,r){I.debug(`abc85 layout blocks (=>layoutBlocks) ${n.id} x: ${n?.size?.x} y: ${n?.size?.y} width: `+n?.size?.width);var s=n.columns??-1;if(I.debug("layoutBlocks columns abc95",n.id,"=>",s,n),n.children&&0<n.children.length){var a,o=n?.children[0]?.size?.width??0,o=n.children.length*o+(n.children.length-1)*gNe;I.debug("widthOfChildren 88",o,"posX");let e=0,t=(I.debug("abc91 block?.size?.x",n.id,n?.size?.x),n?.size?.x?n?.size?.x+(-n?.size?.width/2||0):-gNe),i=0;for(a of n.children){var l,c,h,u,d=n;a.size&&({width:l,height:c}=a.size,{px:u,py:h}=cNe(s,e),h!=i&&(i=h,t=n?.size?.x?n?.size?.x+(-n?.size?.width/2||0):-gNe,I.debug("New row in layout for block",n.id," and child ",a.id,i)),I.debug(`abc89 layout blocks (child) id: ${a.id} Pos: ${e} (px, py) ${u},${h} (${d?.size?.x},${d?.size?.y}) parent: ${d.id} width: `+l+gNe),d.size&&(u=l/2,a.size.x=t+gNe+u,I.debug(`abc91 layout blocks (calc) px, pyid:${a.id} startingPos=X${t} new startingPosX${a.size.x} ${u} padding=${gNe} width=${l} halfWidth=${u} => x:${a.size.x} y:${a.size.y} ${a.widthInColumns} (width * (child?.w || 1)) / 2 `+l*(a?.widthInColumns??1)/2),t=a.size.x+u,a.size.y=d.size.y-d.size.height/2+h*(c+gNe)+c/2+gNe,I.debug(`abc88 layout blocks (calc) px, pyid:${a.id}startingPosX${t}${gNe}${u}=>x:${a.size.x}y:${a.size.y}${a.widthInColumns}(width * (child?.w || 1)) / 2`+l*(a?.widthInColumns??1)/2)),a.children&&uNe(a,r),e+=a?.widthInColumns??1,I.debug("abc88 columnsPos",a,e))}}I.debug(`layout blocks (<==layoutBlocks) ${n.id} x: ${n?.size?.x} y: ${n?.size?.y} width: `+n?.size?.width)}function dNe(e,{minX:t,minY:i,maxX:n,maxY:r}={minX:0,minY:0,maxX:0,maxY:0}){var s,a,o,l;if(e.size&&"root"!==e.id&&({x:s,y:a,width:o,height:l}=e.size,s-o/2<t&&(t=s-o/2),a-l/2<i&&(i=a-l/2),n<s+o/2&&(n=s+o/2),r<a+l/2)&&(r=a+l/2),e.children)for(var c of e.children)({minX:t,minY:i,maxX:n,maxY:r}=dNe(c,{minX:t,minY:i,maxX:n,maxY:r}));return{minX:t,minY:i,maxX:n,maxY:r}}function pNe(e){var t,i,n=e.getBlock("root");if(n)return hNe(n,e,0,0),uNe(n,e),I.debug("getBlocks",JSON.stringify(n,null,2)),{minX:e,minY:n,maxX:t,maxY:i}=dNe(n),{x:e,y:n,width:t-e,height:i-n}}var gNe,fNe,mNe=e(()=>{"use strict";t(),Cu(),gNe=N()?.block?.padding??8,mt(cNe,"calculateBlockPosition"),fNe=mt(e=>{let t=0,i=0;for(var n of e.children){var{width:r,height:s,x:a,y:o}=n.size??{width:0,height:0,x:0,y:0};I.debug("getMaxChildSize abc95 child:",n.id,"width:",r,"height:",s,"x:",a,"y:",o,n.type),"space"!==n.type&&(r>t&&(t=r/(e.widthInColumns??1)),s>i)&&(i=s)}return{width:t,height:i}},"getMaxChildSize"),mt(hNe,"setBlockSizes"),mt(uNe,"layoutBlocks"),mt(dNe,"findBounds"),mt(pNe,"layout")});function yNe(e,t){t&&e.attr("style",t)}function bNe(e){var t=G(document.createElementNS("http://www.w3.org/2000/svg","foreignObject")),i=t.append("xhtml:div"),n=e.label,r=e.isNode?"nodeLabel":"edgeLabel",s=i.append("span");return s.html(n),yNe(s,e.labelStyle),s.attr("class",r),yNe(i,e.labelStyle),i.style("display","inline-block"),i.style("white-space","nowrap"),i.attr("xmlns","http://www.w3.org/1999/xhtml"),t.node()}var vNe,xNe,wNe,kNe,TNe,SNe=e(()=>{"use strict";a6(),t(),Cu(),hh(),sC(),eL(),mt(yNe,"applyStyle"),mt(bNe,"addHtmlLabel"),vNe=mt(async(e,t,i,n)=>{let r=e||"";if("object"==typeof r&&(r=r[0]),qc(N().flowchart.htmlLabels))return r=r.replace(/\\n|\n/g,"<br />"),I.debug("vertexText"+r),bNe({isNode:n,label:await Q$(nC(r)),labelStyle:t.replace("fill:","color:")});{var s,a=document.createElementNS("http://www.w3.org/2000/svg","text");a.setAttribute("style",t.replace("color:","fill:"));let e=[];for(s of e="string"==typeof r?r.split(/\\n|\n|<br\s*\/?>/gi):Array.isArray(r)?r:[]){var o=document.createElementNS("http://www.w3.org/2000/svg","tspan");o.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),o.setAttribute("dy","1em"),o.setAttribute("x","0"),i?o.setAttribute("class","title-row"):o.setAttribute("class","row"),o.textContent=s.trim(),a.appendChild(o)}return a}},"createLabel"),xNe=vNe}),_Ne=e(()=>{"use strict";t(),wNe=mt((e,t,i,n,r)=>{t.arrowTypeStart&&TNe(e,"start",t.arrowTypeStart,i,n,r),t.arrowTypeEnd&&TNe(e,"end",t.arrowTypeEnd,i,n,r)},"addEdgeMarkers"),kNe={arrow_cross:"cross",arrow_point:"point",arrow_barb:"barb",arrow_circle:"circle",aggregation:"aggregation",extension:"extension",composition:"composition",dependency:"dependency",lollipop:"lollipop"},TNe=mt((e,t,i,n,r,s)=>{var a=kNe[i];a?e.attr("marker-"+t,`url(${n}#${r}_${s}-${a}${"start"===t?"Start":"End"})`):I.warn("Unknown arrow type: "+i)},"addEdgeMarker")});function CNe(e,t){N().flowchart.htmlLabels&&e&&(e.style.width=9*t.length+"px",e.style.height="12px")}var ANe,ENe,$Ne,LNe,RNe,MNe,INe,NNe,DNe,ONe,PNe=e(()=>{"use strict";t(),SNe(),eL(),a6(),Cu(),sC(),hh(),lD(),JN(),_Ne(),ANe={},ENe={},$Ne=mt(async(e,t)=>{var i,n=N(),r=qc(n.flowchart.htmlLabels),n="markdown"===t.labelType?J$(e,t.label,{style:t.labelStyle,useHtmlLabels:r,addSvgBackground:!0},n):await xNe(t.label,t.labelStyle),s=e.insert("g").attr("class","edgeLabel"),a=s.insert("g").attr("class","label");a.node().appendChild(n);let o=n.getBBox();r&&(r=n.children[0],i=G(n),o=r.getBoundingClientRect(),i.attr("width",o.width),i.attr("height",o.height)),a.attr("transform","translate("+-o.width/2+", "+-o.height/2+")"),ANe[t.id]=s,t.width=o.width,t.height=o.height;let l;return t.startLabelLeft&&(r=await xNe(t.startLabelLeft,t.labelStyle),a=(i=e.insert("g").attr("class","edgeTerminals")).insert("g").attr("class","inner"),l=a.node().appendChild(r),s=r.getBBox(),a.attr("transform","translate("+-s.width/2+", "+-s.height/2+")"),ENe[t.id]||(ENe[t.id]={}),ENe[t.id].startLeft=i,CNe(l,t.startLabelLeft)),t.startLabelRight&&(r=await xNe(t.startLabelRight,t.labelStyle),s=(a=e.insert("g").attr("class","edgeTerminals")).insert("g").attr("class","inner"),l=a.node().appendChild(r),s.node().appendChild(r),i=r.getBBox(),s.attr("transform","translate("+-i.width/2+", "+-i.height/2+")"),ENe[t.id]||(ENe[t.id]={}),ENe[t.id].startRight=a,CNe(l,t.startLabelRight)),t.endLabelLeft&&(r=await xNe(t.endLabelLeft,t.labelStyle),i=(s=e.insert("g").attr("class","edgeTerminals")).insert("g").attr("class","inner"),l=i.node().appendChild(r),a=r.getBBox(),i.attr("transform","translate("+-a.width/2+", "+-a.height/2+")"),s.node().appendChild(r),ENe[t.id]||(ENe[t.id]={}),ENe[t.id].endLeft=s,CNe(l,t.endLabelLeft)),t.endLabelRight&&(i=await xNe(t.endLabelRight,t.labelStyle),r=(a=e.insert("g").attr("class","edgeTerminals")).insert("g").attr("class","inner"),l=r.node().appendChild(i),s=i.getBBox(),r.attr("transform","translate("+-s.width/2+", "+-s.height/2+")"),a.node().appendChild(i),ENe[t.id]||(ENe[t.id]={}),ENe[t.id].endRight=a,CNe(l,t.endLabelRight)),n},"insertEdgeLabel"),mt(CNe,"setTerminalWidth"),LNe=mt((n,r)=>{I.debug("Moving label abc88 ",n.id,n.label,ANe[n.id],r);var s,a=r.updatedPath||r.originalPath,o=N(),o=jN(o)["subGraphTitleTotalMargin"];if(n.label){let e=ANe[n.id],t=n.x,i=n.y;a&&(s=tC.calcLabelPosition(a),I.debug("Moving label "+n.label+" from (",t,",",i,") to (",s.x,",",s.y,") abc88"),r.updatedPath)&&(t=s.x,i=s.y),e.attr("transform",`translate(${t}, ${i+o/2})`)}if(n.startLabelLeft){let e=ENe[n.id].startLeft,t=n.x,i=n.y;a&&(r=tC.calcTerminalLabelPosition(n.arrowTypeStart?10:0,"start_left",a),t=r.x,i=r.y),e.attr("transform",`translate(${t}, ${i})`)}if(n.startLabelRight){let e=ENe[n.id].startRight,t=n.x,i=n.y;a&&(s=tC.calcTerminalLabelPosition(n.arrowTypeStart?10:0,"start_right",a),t=s.x,i=s.y),e.attr("transform",`translate(${t}, ${i})`)}if(n.endLabelLeft){let e=ENe[n.id].endLeft,t=n.x,i=n.y;a&&(o=tC.calcTerminalLabelPosition(n.arrowTypeEnd?10:0,"end_left",a),t=o.x,i=o.y),e.attr("transform",`translate(${t}, ${i})`)}if(n.endLabelRight){let e=ENe[n.id].endRight,t=n.x,i=n.y;a&&(r=tC.calcTerminalLabelPosition(n.arrowTypeEnd?10:0,"end_right",a),t=r.x,i=r.y),e.attr("transform",`translate(${t}, ${i})`)}},"positionEdgeLabel"),RNe=mt((e,t)=>{var i=e.x,n=e.y,i=Math.abs(t.x-i),t=Math.abs(t.y-n),n=e.width/2,e=e.height/2;return n<=i||e<=t},"outsideNode"),MNe=mt((e,n,r)=>{I.debug(`intersection calc abc89:
|
||
outsidePoint: ${JSON.stringify(n)}
|
||
insidePoint : ${JSON.stringify(r)}
|
||
node : x:${e.x} y:${e.y} w:${e.width} h:`+e.height);let s=e.x,t=e.y,i=Math.abs(s-r.x),a=e.width/2,o=r.x<n.x?a-i:a+i,l=e.height/2,c=Math.abs(n.y-r.y),h=Math.abs(n.x-r.x);var u;if(Math.abs(t-n.y)*a>Math.abs(s-n.x)*l)return e=r.y<n.y?n.y-l-t:t-l-n.y,o=h*e/c,u={x:r.x<n.x?r.x+o:r.x-h+o,y:r.y<n.y?r.y+c-e:r.y-c+e},0===o&&(u.x=n.x,u.y=n.y),0===h&&(u.x=n.x),0===c&&(u.y=n.y),I.debug(`abc89 topp/bott calc, Q ${c}, q ${e}, R ${h}, r `+o,u),u;{let e=c*(o=r.x<n.x?n.x-a-s:s-a-n.x)/h,t=r.x<n.x?r.x+h-o:r.x-h+o,i=r.y<n.y?r.y+e:r.y-e;return I.debug(`sides calc abc89, Q ${c}, q ${e}, R ${h}, r `+o,{_x:t,_y:i}),0===o&&(t=n.x,i=n.y),0===h&&(t=n.x),0===c&&(i=n.y),{x:t,y:i}}},"intersection"),INe=mt((e,n)=>{I.debug("abc88 cutPathAtIntersect",e,n);let r=[],s=e[0],a=!1;return e.forEach(e=>{if(RNe(n,e)||a)s=e,a||r.push(e);else{let t=MNe(n,s,e),i=!1;r.forEach(e=>{i=i||e.x===t.x&&e.y===t.y}),r.some(e=>e.x===t.x&&e.y===t.y)||r.push(t),a=!0}}),r},"cutPathAtIntersect"),NNe=mt(function(e,t,i,n,r,s,a){let o=i.points,l=(I.debug("abc88 InsertEdge: edge=",i,"e=",t),!1),c=s.node(t.v);s=s.node(t.w);s?.intersect&&c?.intersect&&((o=o.slice(1,i.points.length-1)).unshift(c.intersect(o[0])),o.push(s.intersect(o[o.length-1]))),i.toCluster&&(I.debug("to cluster abc88",n[i.toCluster]),o=INe(i.points,n[i.toCluster].node),l=!0),i.fromCluster&&(I.debug("from cluster abc88",n[i.fromCluster]),o=INe(o.reverse(),n[i.fromCluster].node).reverse(),l=!0);let h=o.filter(e=>!Number.isNaN(e.y)),u=x5,{x:d,y:p}=(!i.curve||"graph"!==r&&"flowchart"!==r||(u=i.curve),rD(i)),g=r5().x(d).y(p).curve(u),f;switch(i.thickness){case"normal":f="edge-thickness-normal";break;case"thick":case"invisible":f="edge-thickness-thick";break;default:f=""}switch(i.pattern){case"solid":f+=" edge-pattern-solid";break;case"dotted":f+=" edge-pattern-dotted";break;case"dashed":f+=" edge-pattern-dashed"}let m=e.append("path").attr("d",g(h)).attr("id",i.id).attr("class"," "+f+(i.classes?" "+i.classes:"")).attr("style",i.style),y="";(N().flowchart.arrowMarkerAbsolute||N().state.arrowMarkerAbsolute)&&(y=Uc(!0)),wNe(m,i,y,a,r);t={};return l&&(t.updatedPath=o),t.originalPath=i.points,t},"insertEdge")}),BNe=e(()=>{"use strict";DNe=mt(e=>{var t,i=new Set;for(t of e)switch(t){case"x":i.add("right"),i.add("left");break;case"y":i.add("up"),i.add("down");break;default:i.add(t)}return i},"expandAndDeduplicateDirections"),ONe=mt((e,t,i)=>{var e=DNe(e),n=t.height+2*i.padding,r=n/2,t=t.width+2*r+i.padding,i=i.padding/2;return e.has("right")&&e.has("left")&&e.has("up")&&e.has("down")?[{x:0,y:0},{x:r,y:0},{x:t/2,y:2*i},{x:t-r,y:0},{x:t,y:0},{x:t,y:-n/3},{x:t+2*i,y:-n/2},{x:t,y:-2*n/3},{x:t,y:-n},{x:t-r,y:-n},{x:t/2,y:-n-2*i},{x:r,y:-n},{x:0,y:-n},{x:0,y:-2*n/3},{x:-2*i,y:-n/2},{x:0,y:-n/3}]:e.has("right")&&e.has("left")&&e.has("up")?[{x:r,y:0},{x:t-r,y:0},{x:t,y:-n/2},{x:t-r,y:-n},{x:r,y:-n},{x:0,y:-n/2}]:e.has("right")&&e.has("left")&&e.has("down")?[{x:0,y:0},{x:r,y:-n},{x:t-r,y:-n},{x:t,y:0}]:e.has("right")&&e.has("up")&&e.has("down")?[{x:0,y:0},{x:t,y:-r},{x:t,y:r-n},{x:0,y:-n}]:e.has("left")&&e.has("up")&&e.has("down")?[{x:t,y:0},{x:0,y:-r},{x:0,y:r-n},{x:t,y:-n}]:e.has("right")&&e.has("left")?[{x:r,y:0},{x:r,y:-i},{x:t-r,y:-i},{x:t-r,y:0},{x:t,y:-n/2},{x:t-r,y:-n},{x:t-r,y:i-n},{x:r,y:i-n},{x:r,y:-n},{x:0,y:-n/2}]:e.has("up")&&e.has("down")?[{x:t/2,y:0},{x:0,y:-i},{x:r,y:-i},{x:r,y:i-n},{x:0,y:i-n},{x:t/2,y:-n},{x:t,y:i-n},{x:t-r,y:i-n},{x:t-r,y:-i},{x:t,y:-i}]:e.has("right")&&e.has("up")?[{x:0,y:0},{x:t,y:-r},{x:0,y:-n}]:e.has("right")&&e.has("down")?[{x:0,y:0},{x:t,y:0},{x:0,y:-n}]:e.has("left")&&e.has("up")?[{x:t,y:0},{x:0,y:-r},{x:t,y:-n}]:e.has("left")&&e.has("down")?[{x:t,y:0},{x:0,y:0},{x:t,y:-n}]:e.has("right")?[{x:r,y:-i},{x:r,y:-i},{x:t-r,y:-i},{x:t-r,y:0},{x:t,y:-n/2},{x:t-r,y:-n},{x:t-r,y:i-n},{x:r,y:i-n},{x:r,y:i-n}]:e.has("left")?[{x:r,y:0},{x:r,y:-i},{x:t-r,y:-i},{x:t-r,y:i-n},{x:r,y:i-n},{x:r,y:-n},{x:0,y:-n/2}]:e.has("up")?[{x:r,y:-i},{x:r,y:i-n},{x:0,y:i-n},{x:t/2,y:-n},{x:t,y:i-n},{x:t-r,y:i-n},{x:t-r,y:-i}]:e.has("down")?[{x:t/2,y:0},{x:0,y:-i},{x:r,y:-i},{x:r,y:i-n},{x:t-r,y:i-n},{x:t-r,y:-i},{x:t,y:-i}]:[{x:0,y:0}]},"getArrowPoints")});function FNe(e,t){return e.intersect(t)}var jNe,zNe=e(()=>{"use strict";mt(FNe,"intersectNode"),jNe=FNe});function HNe(e,t,i,n){var r=e.x,e=e.y,s=r-n.x,a=e-n.y,o=Math.sqrt(t*t*a*a+i*i*s*s),s=Math.abs(t*i*s/o),t=(n.x<r&&(s=-s),Math.abs(t*i*a/o));return{x:r+s,y:e+(t=n.y<e?-t:t)}}var UNe,qNe=e(()=>{"use strict";mt(HNe,"intersectEllipse"),UNe=HNe});function WNe(e,t,i){return UNe(e,t,t,i)}var VNe,GNe=e(()=>{"use strict";qNe(),mt(WNe,"intersectCircle"),VNe=WNe});function YNe(e,t,i,n){var r,s,a,o,l=t.y-e.y,c=e.x-t.x,h=t.x*e.y-e.x*t.y,u=l*i.x+c*i.y+h,d=l*n.x+c*n.y+h;if(!(0!=u&&0!=d&&0<u*d||(r=n.y-i.y,s=i.x-n.x,a=n.x*i.y-i.x*n.y,u=r*e.x+s*e.y+a,d=r*t.x+s*t.y+a,0!==u&&0!==d&&0<u*d)||0===(o=l*s-r*c)))return i=Math.abs(o/2),{x:(n=c*a-s*h)<0?(n-i)/o:(n+i)/o,y:(n=r*h-l*a)<0?(n-i)/o:(n+i)/o}}function XNe(e,t){return 0<e*t}var KNe,ZNe=e(()=>{"use strict";mt(YNe,"intersectLine"),mt(XNe,"sameSign"),KNe=YNe});function QNe(e,t,n){var i=e.x,r=e.y,s=[],a=Number.POSITIVE_INFINITY,o=Number.POSITIVE_INFINITY;"function"==typeof t.forEach?t.forEach(function(e){a=Math.min(a,e.x),o=Math.min(o,e.y)}):(a=Math.min(a,t.x),o=Math.min(o,t.y));for(var l=i-e.width/2-a,c=r-e.height/2-o,h=0;h<t.length;h++){var u=t[h],d=t[h<t.length-1?h+1:0],u=KNe(e,n,{x:l+u.x,y:c+u.y},{x:l+d.x,y:c+d.y});u&&s.push(u)}return s.length?(1<s.length&&s.sort(function(e,t){var i=e.x-n.x,e=e.y-n.y,i=Math.sqrt(i*i+e*e),e=t.x-n.x,t=t.y-n.y,e=Math.sqrt(e*e+t*t);return i<e?-1:i===e?0:1}),s[0]):e}var JNe,eDe,tDe,iDe,nDe=e(()=>{"use strict";ZNe(),mt(JNe=QNe,"intersectPolygon")}),rDe=e(()=>{"use strict";eDe=mt((e,t)=>{var i,n=e.x,r=e.y,s=t.x-n,t=t.y-r,a=e.width/2,e=e.height/2,e=Math.abs(t)*a>Math.abs(s)*e?(t<0&&(e=-e),i=0==t?0:e*s/t,e):(i=a=s<0?-a:a,0==s?0:a*t/s);return{x:n+i,y:r+e}},"intersectRect"),tDe=eDe}),sDe=e(()=>{"use strict";zNe(),GNe(),qNe(),nDe(),rDe(),iDe={node:jNe,circle:VNe,ellipse:UNe,polygon:JNe,rect:tDe}});function aDe(e,t,i,n){return e.insert("polygon",":first-child").attr("points",n.map(function(e){return e.x+","+e.y}).join(" ")).attr("class","label-container").attr("transform","translate("+-t/2+","+i/2+")")}var oDe,lDe,cDe,hDe,uDe=e(()=>{"use strict";SNe(),eL(),Cu(),a6(),hh(),sC(),oDe=mt(async(e,t,i,r)=>{let s=N(),n,a=t.useHtmlLabels||qc(s.flowchart.htmlLabels),o=(n=i||"node default",e.insert("g").attr("class",n).attr("id",t.domId||t.id)),l=o.insert("g").attr("class","label").attr("style",t.labelStyle),c,h=(c=void 0===t.labelText?"":"string"==typeof t.labelText?t.labelText:t.labelText[0],l.node()),u,d=(u="markdown"===t.labelType?J$(l,Pc(nC(c),s),{useHtmlLabels:a,width:t.width||s.flowchart.wrappingWidth,classes:"markdown-node-label"},s):h.appendChild(await xNe(Pc(nC(c),s),t.labelStyle,!1,r))).getBBox(),p=t.padding/2;if(qc(s.flowchart.htmlLabels)){i=u.children[0],e=G(u),r=i.getElementsByTagName("img");if(r){let n=""===c.replace(/<img[^>]*>/g,"").trim();await Promise.all([...r].map(i=>new Promise(t=>{function e(){var e;i.style.display="flex",i.style.flexDirection="column",n?(e=s.fontSize||window.getComputedStyle(document.body).fontSize,e=5*parseInt(e,10)+"px",i.style.minWidth=e,i.style.maxWidth=e):i.style.width="100%",t(i)}mt(e,"setupImage"),setTimeout(()=>{i.complete&&e()}),i.addEventListener("error",e),i.addEventListener("load",e)})))}d=i.getBoundingClientRect(),e.attr("width",d.width),e.attr("height",d.height)}return a?l.attr("transform","translate("+-d.width/2+", "+-d.height/2+")"):l.attr("transform","translate(0, "+-d.height/2+")"),t.centerLabel&&l.attr("transform","translate("+-d.width/2+", "+-d.height/2+")"),l.insert("rect",":first-child"),{shapeSvg:o,bbox:d,halfPadding:p,label:l}},"labelHelper"),lDe=mt((e,t)=>{t=t.node().getBBox();e.width=t.width,e.height=t.height},"updateNodeBounds"),mt(aDe,"insertPolygonShape")}),dDe=e(()=>{"use strict";uDe(),t(),Cu(),sDe(),cDe=mt(async(e,t)=>{t.useHtmlLabels||N().flowchart.htmlLabels||(t.centerLabel=!0);var{shapeSvg:e,bbox:i,halfPadding:n}=await oDe(e,t,"node "+t.classes,!0),r=(I.info("Classes = ",t.classes),e.insert("rect",":first-child"));return r.attr("rx",t.rx).attr("ry",t.ry).attr("x",-i.width/2-n).attr("y",-i.height/2-n).attr("width",i.width+t.padding).attr("height",i.height+t.padding),lDe(t,r),t.intersect=function(e){return iDe.rect(t,e)},e},"note"),hDe=cDe});function pDe(e,t,i,n){let r=[],s=mt(e=>{r.push(e,0)},"addBorder"),a=mt(e=>{r.push(0,e)},"skipBorder");(t.includes("t")?(I.debug("add top border"),s):a)(i),(t.includes("r")?(I.debug("add right border"),s):a)(n),(t.includes("b")?(I.debug("add bottom border"),s):a)(i),(t.includes("l")?(I.debug("add left border"),s):a)(n),e.attr("stroke-dasharray",r.join(" "))}var gDe,fDe,mDe,yDe,bDe,vDe,xDe,wDe,kDe,TDe,SDe,_De,CDe,ADe,EDe,$De,LDe,RDe,MDe,IDe,NDe,DDe,ODe,PDe,BDe,FDe,jDe,zDe,HDe,UDe=e(()=>{"use strict";a6(),Cu(),hh(),t(),BNe(),SNe(),sDe(),dDe(),uDe(),gDe=mt(e=>e?" "+e:"","formatClass"),fDe=mt((e,t)=>`${t||"node default"}${gDe(e.classes)} `+gDe(e.class),"getClassesFromNode"),mDe=mt(async(e,t)=>{let{shapeSvg:i,bbox:n}=await oDe(e,t,fDe(t,void 0),!0),r=n.width+t.padding,s=n.height+t.padding,a=r+s,o=[{x:a/2,y:0},{x:a,y:-a/2},{x:a/2,y:-a},{x:0,y:-a/2}];I.info("Question main (Circle)");e=aDe(i,a,a,o);return e.attr("style",t.style),lDe(t,e),t.intersect=function(e){return I.warn("Intersect called"),iDe.polygon(t,o,e)},i},"question"),yDe=mt((e,t)=>{var e=e.insert("g").attr("class","node default").attr("id",t.domId||t.id),i=[{x:0,y:14},{x:14,y:0},{x:0,y:-14},{x:-14,y:0}];return e.insert("polygon",":first-child").attr("points",i.map(function(e){return e.x+","+e.y}).join(" ")).attr("class","state-start").attr("r",7).attr("width",28).attr("height",28),t.width=28,t.height=28,t.intersect=function(e){return iDe.circle(t,14,e)},e},"choice"),bDe=mt(async(e,t)=>{let{shapeSvg:i,bbox:n}=await oDe(e,t,fDe(t,void 0),!0),r=n.height+t.padding,s=r/4,a=n.width+2*s+t.padding,o=[{x:s,y:0},{x:a-s,y:0},{x:a,y:-r/2},{x:a-s,y:-r},{x:s,y:-r},{x:0,y:-r/2}],l=aDe(i,a,r,o);return l.attr("style",t.style),lDe(t,l),t.intersect=function(e){return iDe.polygon(t,o,e)},i},"hexagon"),vDe=mt(async(e,t)=>{let{shapeSvg:i,bbox:n}=await oDe(e,t,void 0,!0),r=n.height+2*t.padding,s=r/2,a=n.width+2*s+t.padding,o=ONe(t.directions,n,t),l=aDe(i,a,r,o);return l.attr("style",t.style),lDe(t,l),t.intersect=function(e){return iDe.polygon(t,o,e)},i},"block_arrow"),xDe=mt(async(e,t)=>{let{shapeSvg:i,bbox:n}=await oDe(e,t,fDe(t,void 0),!0),r=n.width+t.padding,s=n.height+t.padding,a=[{x:-s/2,y:0},{x:r,y:0},{x:r,y:-s},{x:-s/2,y:-s},{x:0,y:-s/2}];return aDe(i,r,s,a).attr("style",t.style),t.width=r+s,t.height=s,t.intersect=function(e){return iDe.polygon(t,a,e)},i},"rect_left_inv_arrow"),wDe=mt(async(e,t)=>{let{shapeSvg:i,bbox:n}=await oDe(e,t,fDe(t),!0),r=n.width+t.padding,s=n.height+t.padding,a=[{x:-2*s/6,y:0},{x:r-s/6,y:0},{x:r+2*s/6,y:-s},{x:s/6,y:-s}],o=aDe(i,r,s,a);return o.attr("style",t.style),lDe(t,o),t.intersect=function(e){return iDe.polygon(t,a,e)},i},"lean_right"),kDe=mt(async(e,t)=>{let{shapeSvg:i,bbox:n}=await oDe(e,t,fDe(t,void 0),!0),r=n.width+t.padding,s=n.height+t.padding,a=[{x:2*s/6,y:0},{x:r+s/6,y:0},{x:r-2*s/6,y:-s},{x:-s/6,y:-s}],o=aDe(i,r,s,a);return o.attr("style",t.style),lDe(t,o),t.intersect=function(e){return iDe.polygon(t,a,e)},i},"lean_left"),TDe=mt(async(e,t)=>{let{shapeSvg:i,bbox:n}=await oDe(e,t,fDe(t,void 0),!0),r=n.width+t.padding,s=n.height+t.padding,a=[{x:-2*s/6,y:0},{x:r+2*s/6,y:0},{x:r-s/6,y:-s},{x:s/6,y:-s}],o=aDe(i,r,s,a);return o.attr("style",t.style),lDe(t,o),t.intersect=function(e){return iDe.polygon(t,a,e)},i},"trapezoid"),SDe=mt(async(e,t)=>{let{shapeSvg:i,bbox:n}=await oDe(e,t,fDe(t,void 0),!0),r=n.width+t.padding,s=n.height+t.padding,a=[{x:s/6,y:0},{x:r-s/6,y:0},{x:r+2*s/6,y:-s},{x:-2*s/6,y:-s}],o=aDe(i,r,s,a);return o.attr("style",t.style),lDe(t,o),t.intersect=function(e){return iDe.polygon(t,a,e)},i},"inv_trapezoid"),_De=mt(async(e,t)=>{let{shapeSvg:i,bbox:n}=await oDe(e,t,fDe(t,void 0),!0),r=n.width+t.padding,s=n.height+t.padding,a=[{x:0,y:0},{x:r+s/2,y:0},{x:r,y:-s/2},{x:r+s/2,y:-s},{x:0,y:-s}],o=aDe(i,r,s,a);return o.attr("style",t.style),lDe(t,o),t.intersect=function(e){return iDe.polygon(t,a,e)},i},"rect_right_inv_arrow"),CDe=mt(async(e,r)=>{let{shapeSvg:t,bbox:i}=await oDe(e,r,fDe(r,void 0),!0),n=i.width+r.padding,s=n/2,a=s/(2.5+n/50),o=i.height+a+r.padding,l="M 0,"+a+" a "+s+","+a+" 0,0,0 "+n+" 0 a "+s+","+a+" 0,0,0 "+-n+" 0 l 0,"+o+" a "+s+","+a+" 0,0,0 "+n+" 0 l 0,"+-o,c=t.attr("label-offset-y",a).insert("path",":first-child").attr("style",r.style).attr("d",l).attr("transform","translate("+-n/2+","+-(o/2+a)+")");return lDe(r,c),r.intersect=function(t){var i=iDe.rect(r,t),n=i.x-r.x;if(0!=s&&(Math.abs(n)<r.width/2||Math.abs(n)==r.width/2&&Math.abs(i.y-r.y)>r.height/2-a)){let e=a*a*(1-n*n/(s*s));0!=e&&(e=Math.sqrt(e)),e=a-e,0<t.y-r.y&&(e=-e),i.y+=e}return i},t},"cylinder"),ADe=mt(async(e,t)=>{var{shapeSvg:e,bbox:i,halfPadding:n}=await oDe(e,t,"node "+t.classes+" "+t.class,!0),r=e.insert("rect",":first-child"),s=t.positioned?t.width:i.width+t.padding,a=t.positioned?t.height:i.height+t.padding,o=t.positioned?-s/2:-i.width/2-n,i=t.positioned?-a/2:-i.height/2-n;return r.attr("class","basic label-container").attr("style",t.style).attr("rx",t.rx).attr("ry",t.ry).attr("x",o).attr("y",i).attr("width",s).attr("height",a),t.props&&(n=new Set(Object.keys(t.props)),t.props.borders&&(pDe(r,t.props.borders,s,a),n.delete("borders")),n.forEach(e=>{I.warn("Unknown node property "+e)})),lDe(t,r),t.intersect=function(e){return iDe.rect(t,e)},e},"rect"),EDe=mt(async(e,t)=>{var{shapeSvg:e,bbox:i,halfPadding:n}=await oDe(e,t,"node "+t.classes,!0),r=e.insert("rect",":first-child"),s=t.positioned?t.width:i.width+t.padding,a=t.positioned?t.height:i.height+t.padding,o=t.positioned?-s/2:-i.width/2-n,i=t.positioned?-a/2:-i.height/2-n;return r.attr("class","basic cluster composite label-container").attr("style",t.style).attr("rx",t.rx).attr("ry",t.ry).attr("x",o).attr("y",i).attr("width",s).attr("height",a),t.props&&(n=new Set(Object.keys(t.props)),t.props.borders&&(pDe(r,t.props.borders,s,a),n.delete("borders")),n.forEach(e=>{I.warn("Unknown node property "+e)})),lDe(t,r),t.intersect=function(e){return iDe.rect(t,e)},e},"composite"),$De=mt(async(e,t)=>{var i,e=(await oDe(e,t,"label",!0))["shapeSvg"],n=(I.trace("Classes = ",t.class),e.insert("rect",":first-child"));return n.attr("width",0).attr("height",0),e.attr("class","label edgeLabel"),t.props&&(i=new Set(Object.keys(t.props)),t.props.borders&&(pDe(n,t.props.borders,0,0),i.delete("borders")),i.forEach(e=>{I.warn("Unknown node property "+e)})),lDe(t,n),t.intersect=function(e){return iDe.rect(t,e)},e},"labelRect"),mt(pDe,"applyNodePropertyBorders"),LDe=mt(async(e,t)=>{let i,n=(i=t.classes?"node "+t.classes:"node default",e.insert("g").attr("class",i).attr("id",t.domId||t.id)),r=n.insert("rect",":first-child"),s=n.insert("line"),a=n.insert("g").attr("class","label"),o=t.labelText.flat?t.labelText.flat():t.labelText,l="",c=(l="object"==typeof o?o[0]:o,I.info("Label text abc79",l,o,"object"==typeof o),a.node().appendChild(await xNe(l,t.labelStyle,!0,!0))),h={width:0,height:0};qc(N().flowchart.htmlLabels)&&(e=c.children[0],d=G(c),h=e.getBoundingClientRect(),d.attr("width",h.width),d.attr("height",h.height)),I.info("Text 2",o);var u,e=o.slice(1,o.length),d=c.getBBox(),e=a.node().appendChild(await xNe(e.join?e.join("<br/>"):e,t.labelStyle,!0,!0)),p=(qc(N().flowchart.htmlLabels)&&(p=e.children[0],u=G(e),h=p.getBoundingClientRect(),u.attr("width",h.width),u.attr("height",h.height)),t.padding/2);return G(e).attr("transform","translate( "+(h.width>d.width?0:(d.width-h.width)/2)+", "+(d.height+p+5)+")"),G(c).attr("transform","translate( "+(h.width<d.width?0:-(d.width-h.width)/2)+", 0)"),h=a.node().getBBox(),a.attr("transform","translate("+-h.width/2+", "+(-h.height/2-p+3)+")"),r.attr("class","outer title-state").attr("x",-h.width/2-p).attr("y",-h.height/2-p).attr("width",h.width+t.padding).attr("height",h.height+t.padding),s.attr("class","divider").attr("x1",-h.width/2-p).attr("x2",h.width/2+p).attr("y1",-h.height/2-p+d.height+p).attr("y2",-h.height/2-p+d.height+p),lDe(t,r),t.intersect=function(e){return iDe.rect(t,e)},n},"rectWithTitle"),RDe=mt(async(e,t)=>{var{shapeSvg:e,bbox:i}=await oDe(e,t,fDe(t,void 0),!0),n=i.height+t.padding,i=i.width+n/4+t.padding,i=e.insert("rect",":first-child").attr("style",t.style).attr("rx",n/2).attr("ry",n/2).attr("x",-i/2).attr("y",-n/2).attr("width",i).attr("height",n);return lDe(t,i),t.intersect=function(e){return iDe.rect(t,e)},e},"stadium"),MDe=mt(async(e,t)=>{let{shapeSvg:i,bbox:n,halfPadding:r}=await oDe(e,t,fDe(t,void 0),!0),s=i.insert("circle",":first-child");return s.attr("style",t.style).attr("rx",t.rx).attr("ry",t.ry).attr("r",n.width/2+r).attr("width",n.width+t.padding).attr("height",n.height+t.padding),I.info("Circle main"),lDe(t,s),t.intersect=function(e){return I.info("Circle intersect",t,n.width/2+r,e),iDe.circle(t,n.width/2+r,e)},i},"circle"),IDe=mt(async(e,t)=>{let{shapeSvg:i,bbox:n,halfPadding:r}=await oDe(e,t,fDe(t,void 0),!0),s=i.insert("g",":first-child"),a=s.insert("circle"),o=s.insert("circle");return s.attr("class",t.class),a.attr("style",t.style).attr("rx",t.rx).attr("ry",t.ry).attr("r",n.width/2+r+5).attr("width",n.width+t.padding+10).attr("height",n.height+t.padding+10),o.attr("style",t.style).attr("rx",t.rx).attr("ry",t.ry).attr("r",n.width/2+r).attr("width",n.width+t.padding).attr("height",n.height+t.padding),I.info("DoubleCircle main"),lDe(t,a),t.intersect=function(e){return I.info("DoubleCircle intersect",t,n.width/2+r+5,e),iDe.circle(t,n.width/2+r+5,e)},i},"doublecircle"),NDe=mt(async(e,t)=>{let{shapeSvg:i,bbox:n}=await oDe(e,t,fDe(t,void 0),!0),r=n.width+t.padding,s=n.height+t.padding,a=[{x:0,y:0},{x:r,y:0},{x:r,y:-s},{x:0,y:-s},{x:0,y:0},{x:-8,y:0},{x:r+8,y:0},{x:r+8,y:-s},{x:-8,y:-s},{x:-8,y:0}],o=aDe(i,r,s,a);return o.attr("style",t.style),lDe(t,o),t.intersect=function(e){return iDe.polygon(t,a,e)},i},"subroutine"),DDe=mt((e,t)=>{var e=e.insert("g").attr("class","node default").attr("id",t.domId||t.id),i=e.insert("circle",":first-child");return i.attr("class","state-start").attr("r",7).attr("width",14).attr("height",14),lDe(t,i),t.intersect=function(e){return iDe.circle(t,7,e)},e},"start"),ODe=mt((e,t,i)=>{let n=e.insert("g").attr("class","node default").attr("id",t.domId||t.id),r=70,s=10;"LR"===i&&(r=10,s=70);e=n.append("rect").attr("x",-1*r/2).attr("y",-1*s/2).attr("width",r).attr("height",s).attr("class","fork-join");return lDe(t,e),t.height=t.height+t.padding/2,t.width=t.width+t.padding/2,t.intersect=function(e){return iDe.rect(t,e)},n},"forkJoin"),PDe=mt((e,t)=>{var e=e.insert("g").attr("class","node default").attr("id",t.domId||t.id),i=e.insert("circle",":first-child"),n=e.insert("circle",":first-child");return n.attr("class","state-start").attr("r",7).attr("width",14).attr("height",14),i.attr("class","state-end").attr("r",5).attr("width",10).attr("height",10),lDe(t,n),t.intersect=function(e){return iDe.circle(t,7,e)},e},"end"),BDe=mt(async(e,a)=>{let t=a.padding/2,i,n=(i=a.classes?"node "+a.classes:"node default",e.insert("g").attr("class",i).attr("id",a.domId||a.id)),r=n.insert("rect",":first-child"),s=n.insert("line"),o=n.insert("line"),l=0,c=4,h=n.insert("g").attr("class","label"),u=0,d=a.classData.annotations?.[0],p=a.classData.annotations[0]?"«"+a.classData.annotations[0]+"»":"",g=h.node().appendChild(await xNe(p,a.labelStyle,!0,!0)),f=g.getBBox();qc(N().flowchart.htmlLabels)&&(e=g.children[0],y=G(g),f=e.getBoundingClientRect(),y.attr("width",f.width),y.attr("height",f.height)),a.classData.annotations[0]&&(c+=f.height+4,l+=f.width);let m=a.classData.label;void 0!==a.classData.type&&""!==a.classData.type&&(N().flowchart.htmlLabels?m+="<"+a.classData.type+">":m+="<"+a.classData.type+">");var y,e=h.node().appendChild(await xNe(m,a.labelStyle,!0,!0));G(e).attr("class","classTitle");let b=e.getBBox(),v=(qc(N().flowchart.htmlLabels)&&(y=e.children[0],w=G(e),b=y.getBoundingClientRect(),w.attr("width",b.width),w.attr("height",b.height)),c+=b.height+4,b.width>l&&(l=b.width),[]),x=(a.classData.members.forEach(async e=>{let t=e.getDisplayDetails(),i=t.displayText,n=(N().flowchart.htmlLabels&&(i=i.replace(/</g,"<").replace(/>/g,">")),h.node().appendChild(await xNe(i,t.cssStyle||a.labelStyle,!0,!0))),r=n.getBBox();var s;qc(N().flowchart.htmlLabels)&&(e=n.children[0],s=G(n),r=e.getBoundingClientRect(),s.attr("width",r.width),s.attr("height",r.height)),r.width>l&&(l=r.width),c+=r.height+4,v.push(n)}),c+=8,[]);a.classData.methods.forEach(async e=>{let t=e.getDisplayDetails(),i=t.displayText,n=(N().flowchart.htmlLabels&&(i=i.replace(/</g,"<").replace(/>/g,">")),h.node().appendChild(await xNe(i,t.cssStyle||a.labelStyle,!0,!0))),r=n.getBBox();var s;qc(N().flowchart.htmlLabels)&&(e=n.children[0],s=G(n),r=e.getBoundingClientRect(),s.attr("width",r.width),s.attr("height",r.height)),r.width>l&&(l=r.width),c+=r.height+4,x.push(n)}),c+=8,d&&(y=(l-f.width)/2,G(g).attr("transform","translate( "+(-1*l/2+y)+", "+-1*c/2+")"),u=f.height+4);var w=(l-b.width)/2;return G(e).attr("transform","translate( "+(-1*l/2+w)+", "+(-1*c/2+u)+")"),u+=b.height+4,s.attr("class","divider").attr("x1",-l/2-t).attr("x2",l/2+t).attr("y1",-c/2-t+8+u).attr("y2",-c/2-t+8+u),u+=8,v.forEach(e=>{G(e).attr("transform","translate( "+-l/2+", "+(-1*c/2+u+4)+")");e=e?.getBBox();u+=(e?.height??0)+4}),u+=8,o.attr("class","divider").attr("x1",-l/2-t).attr("x2",l/2+t).attr("y1",-c/2-t+8+u).attr("y2",-c/2-t+8+u),u+=8,x.forEach(e=>{G(e).attr("transform","translate( "+-l/2+", "+(-1*c/2+u)+")");e=e?.getBBox();u+=(e?.height??0)+4}),r.attr("style",a.style).attr("class","outer title-state").attr("x",-l/2-t).attr("y",-c/2-t).attr("width",l+a.padding).attr("height",c+a.padding),lDe(a,r),a.intersect=function(e){return iDe.rect(a,e)},n},"class_box"),FDe={rhombus:mDe,composite:EDe,question:mDe,rect:ADe,labelRect:$De,rectWithTitle:LDe,choice:yDe,circle:MDe,doublecircle:IDe,stadium:RDe,hexagon:bDe,block_arrow:vDe,rect_left_inv_arrow:xDe,lean_right:wDe,lean_left:kDe,trapezoid:TDe,inv_trapezoid:SDe,rect_right_inv_arrow:_De,cylinder:CDe,start:DDe,end:PDe,note:hDe,subroutine:NDe,fork:ODe,join:ODe,class_box:BDe},jDe={},zDe=mt(async(t,i,n)=>{let r,s;if(i.link){let e;"sandbox"===N().securityLevel?e="_top":i.linkTarget&&(e=i.linkTarget||"_blank"),r=t.insert("svg:a").attr("xlink:href",i.link).attr("target",e),s=await FDe[i.shape](r,i,n)}else s=await FDe[i.shape](t,i,n),r=s;return i.tooltip&&s.attr("title",i.tooltip),i.class&&s.attr("class","node default "+i.class),jDe[i.id]=r,i.haveCallback&&jDe[i.id].attr("class",jDe[i.id].attr("class")+" clickable"),r},"insertNode"),HDe=mt(e=>{var t=jDe[e.id],i=(I.trace("Transforming node",e.diff,e,"translate("+(e.x-e.width/2-5)+", "+e.width/2+")"),e.diff||0);return e.clusterNode?t.attr("transform","translate("+(e.x+i-e.width/2)+", "+(e.y-e.height/2-8)+")"):t.attr("transform","translate("+e.x+", "+e.y+")"),i},"positionNode")});function qDe(e,t,i=!1){let n=e,r="default",s=(0<(n?.classes?.length||0)&&(r=(n?.classes??[]).join(" ")),r+=" flowchart-label",0),a="",o;switch(n.type){case"round":s=5,a="rect";break;case"composite":s=0,a="composite",o=0;break;case"square":a="rect";break;case"diamond":a="question";break;case"hexagon":a="hexagon";break;case"block_arrow":a="block_arrow";break;case"odd":a="rect_left_inv_arrow";break;case"lean_right":a="lean_right";break;case"lean_left":a="lean_left";break;case"trapezoid":a="trapezoid";break;case"inv_trapezoid":a="inv_trapezoid";break;case"rect_left_inv_arrow":a="rect_left_inv_arrow";break;case"circle":a="circle";break;case"ellipse":a="ellipse";break;case"stadium":a="stadium";break;case"subroutine":a="subroutine";break;case"cylinder":a="cylinder";break;case"group":a="rect";break;case"doublecircle":a="doublecircle";break;default:a="rect"}var e=T_(n?.styles??[]),l=n.label,c=n.size??{width:0,height:0,x:0,y:0};return{labelStyle:e.labelStyle,shape:a,labelText:l,rx:s,ry:s,class:r,style:e.style,id:n.id,directions:n.directions,width:c.width,height:c.height,x:c.x,y:c.y,positioned:i,intersect:void 0,type:n.type,padding:o??Ii()?.block?.padding??0}}async function WDe(e,t,i){var n,t=qDe(t,0,!1);"group"!==t.type&&(n=Ii(),n=(e=await zDe(e,t,{config:n})).node().getBBox(),(t=i.getBlock(t.id)).size={width:n.width,height:n.height,x:0,y:0,node:e},i.setBlock(t),e.remove())}async function VDe(e,t,i){var n=qDe(t,0,!0);"space"!==i.getBlock(n.id).type&&(i=Ii(),await zDe(e,n,{config:i}),t.intersect=n?.intersect,HDe(n))}async function GDe(e,t,i,n){for(var r of t)await n(e,r,i),r.children&&await GDe(e,r.children,i,n)}async function YDe(e,t,i){await GDe(e,t,i,WDe)}async function XDe(e,t,i){await GDe(e,t,i,VDe)}async function KDe(e,t,i,n,r){var s,a,o,l,c=new GV({multigraph:!0,compound:!0});c.setGraph({rankdir:"TB",nodesep:10,ranksep:10,marginx:8,marginy:8});for(s of i)s.size&&c.setNode(s.id,{width:s.size.width,height:s.size.height,intersect:s.intersect});for(a of t)a.start&&a.end&&(l=n.getBlock(a.start),o=n.getBlock(a.end),l?.size)&&o?.size&&(l=l.size,o=o.size,l=[{x:l.x,y:l.y},{x:l.x+(o.x-l.x)/2,y:l.y+(o.y-l.y)/2},{x:o.x,y:o.y}],NNe(e,{v:a.start,w:a.end,name:a.id},{...a,arrowTypeEnd:a.arrowTypeEnd,arrowTypeStart:a.arrowTypeStart,points:l,classes:"edge-thickness-normal edge-pattern-solid flowchart-link LS-a1 LE-b1"},void 0,"block",c,r),a.label)&&(await $Ne(e,{...a,label:a.label,labelStyle:"stroke: #333; stroke-width: 1.5px;fill:none;",arrowTypeEnd:a.arrowTypeEnd,arrowTypeStart:a.arrowTypeStart,points:l,classes:"edge-thickness-normal edge-pattern-solid flowchart-link LS-a1 LE-b1"}),LNe({...a,x:l[1].x,y:l[1].y},{originalPath:l}))}var ZDe,QDe,JDe,eOe=e(()=>{"use strict";XV(),Mn(),PNe(),UDe(),sC(),mt(qDe,"getNodeFromBlock"),mt(WDe,"calculateBlockSize"),mt(VDe,"insertBlockPositioned"),mt(GDe,"performOperations"),mt(YDe,"calculateBlockSizes"),mt(XDe,"insertBlocks"),mt(KDe,"insertEdges")}),tOe=e(()=>{"use strict";a6(),Mn(),lNe(),t(),uh(),mNe(),eOe(),ZDe=mt(function(e,t){return t.db.getClasses()},"getClasses"),QDe=mt(async function(e,t,i,n){let{securityLevel:r,block:s}=Ii(),a=n.db,o;"sandbox"===r&&(o=G("#i"+t));var l=G("sandbox"===r?o.nodes()[0].contentDocument.body:"body"),l="sandbox"===r?l.select(`[id="${t}"]`):G(`[id="${t}"]`),n=(sNe(l,["point","circle","cross"],n.type,t),a.getBlocks()),c=a.getBlocksFlat(),h=a.getEdges(),u=l.insert("g").attr("class","block"),d=(await YDe(u,n,a),pNe(a));await XDe(u,n,a),await KDe(u,h,c,a,t),d&&(n=d,u=Math.max(1,Math.round(n.width/n.height*.125)),h=n.height+u+10,c=n.width+10,t=s["useMaxWidth"],rh(l,h,c,!!t),I.debug("Here Bounds",d,n),l.attr("viewBox",`${n.x-5} ${n.y-5} ${n.width+10} `+(n.height+10)))},"draw"),JDe={draw:QDe,getClasses:ZDe}}),iOe={};V(iOe,{diagram:()=>nOe});var nOe,rOe,sOe,aOe,oOe,lOe,cOe,hOe,uOe,dOe,pOe,gOe,fOe,mOe,yOe,bOe,vOe,xOe,wOe,kOe=e(()=>{"use strict";mIe(),aNe(),oNe(),tOe(),nOe={parser:gIe,db:qIe,renderer:JDe,styles:GIe}}),TOe=e(()=>{"use strict";rOe={L:"left",R:"right",T:"top",B:"bottom"},sOe={L:mt(e=>e+`,${e/2} 0,${e} 0,0`,"L"),R:mt(e=>`0,${e/2} ${e},0 ${e},`+e,"R"),T:mt(e=>`0,0 ${e},0 ${e/2},`+e,"T"),B:mt(e=>e/2+`,0 ${e},${e} 0,`+e,"B")},aOe={L:mt((e,t)=>e-t+2,"L"),R:mt((e,t)=>e-2,"R"),T:mt((e,t)=>e-t+2,"T"),B:mt((e,t)=>e-2,"B")},oOe=mt(function(e){return cOe(e)?"L"===e?"R":"L":"T"===e?"B":"T"},"getOppositeArchitectureDirection"),lOe=mt(function(e){return"L"===e||"R"===e||"T"===e||"B"===e},"isArchitectureDirection"),cOe=mt(function(e){return"L"===e||"R"===e},"isArchitectureDirectionX"),hOe=mt(function(e){return"T"===e||"B"===e},"isArchitectureDirectionY"),uOe=mt(function(e,t){var i=cOe(e)&&hOe(t),e=hOe(e)&&cOe(t);return i||e},"isArchitectureDirectionXY"),dOe=mt(function(e){var t=e[0],e=e[1],i=cOe(t)&&hOe(e),t=hOe(t)&&cOe(e);return i||t},"isArchitecturePairXY"),pOe=mt(function(e){return"LL"!==e&&"RR"!==e&&"TT"!==e&&"BB"!==e},"isValidArchitectureDirectionPair"),gOe=mt(function(e,t){e=""+e+t;return pOe(e)?e:void 0},"getArchitectureDirectionPair"),fOe=mt(function([e,t],i){var n=i[0],i=i[1];return cOe(n)?hOe(i)?[e+("L"===n?-1:1),t+("T"===i?1:-1)]:[e+("L"===n?-1:1),t]:cOe(i)?[e+("L"===i?1:-1),t+("T"===n?1:-1)]:[e,t+("T"===n?1:-1)]},"shiftPositionByArchitectureDirectionPair"),mOe=mt(function(e){return"LT"===e||"TL"===e?[1,1]:"BL"===e||"LB"===e?[1,-1]:"BR"===e||"RB"===e?[-1,-1]:[-1,1]},"getArchitectureDirectionXYFactors"),yOe=mt(function(e,t){return uOe(e,t)?"bend":cOe(e)?"horizontal":"vertical"},"getArchitectureDirectionAlignment"),bOe=mt(function(e){return"service"===e.type},"isArchitectureService"),vOe=mt(function(e){return"junction"===e.type},"isArchitectureJunction"),xOe=mt(e=>e.data(),"edgeData"),wOe=mt(e=>e.data(),"nodeData")});function SOe(e){return zOe()[e]}var _Oe,COe,AOe,EOe,$Oe,LOe,ROe,MOe,IOe,NOe,DOe,OOe,POe,BOe,FOe,jOe,zOe,HOe,UOe,qOe,WOe,VOe,GOe,YOe,XOe,KOe,ZOe,QOe,JOe=e(()=>{"use strict";Ln(),Mn(),mfe(),_u(),TOe(),sC(),_Oe=vi.architecture,COe=new pfe(()=>({nodes:{},groups:{},edges:[],registeredIds:{},config:_Oe,dataStructures:void 0,elements:{}})),AOe=mt(()=>{COe.reset(),bh()},"clear"),EOe=mt(function({id:e,icon:t,in:i,title:n,iconText:r}){if(void 0!==COe.records.registeredIds[e])throw new Error(`The service id [${e}] is already in use by another `+COe.records.registeredIds[e]);if(void 0!==i){if(e===i)throw new Error(`The service [${e}] cannot be placed within itself`);if(void 0===COe.records.registeredIds[i])throw new Error(`The service [${e}]'s parent does not exist. Please make sure the parent is created before this service`);if("node"===COe.records.registeredIds[i])throw new Error(`The service [${e}]'s parent is not a group`)}COe.records.registeredIds[e]="node",COe.records.nodes[e]={id:e,type:"service",icon:t,iconText:r,title:n,edges:[],in:i}},"addService"),$Oe=mt(()=>Object.values(COe.records.nodes).filter(bOe),"getServices"),LOe=mt(function({id:e,in:t}){COe.records.registeredIds[e]="node",COe.records.nodes[e]={id:e,type:"junction",edges:[],in:t}},"addJunction"),ROe=mt(()=>Object.values(COe.records.nodes).filter(vOe),"getJunctions"),MOe=mt(()=>Object.values(COe.records.nodes),"getNodes"),IOe=mt(e=>COe.records.nodes[e],"getNode"),NOe=mt(function({id:e,icon:t,in:i,title:n}){if(void 0!==COe.records.registeredIds[e])throw new Error(`The group id [${e}] is already in use by another `+COe.records.registeredIds[e]);if(void 0!==i){if(e===i)throw new Error(`The group [${e}] cannot be placed within itself`);if(void 0===COe.records.registeredIds[i])throw new Error(`The group [${e}]'s parent does not exist. Please make sure the parent is created before this group`);if("node"===COe.records.registeredIds[i])throw new Error(`The group [${e}]'s parent is not a group`)}COe.records.registeredIds[e]="group",COe.records.groups[e]={id:e,icon:t,title:n,in:i}},"addGroup"),DOe=mt(()=>Object.values(COe.records.groups),"getGroups"),OOe=mt(function({lhsId:e,rhsId:t,lhsDir:i,rhsDir:n,lhsInto:r,rhsInto:s,lhsGroup:a,rhsGroup:o,title:l}){if(!lOe(i))throw new Error(`Invalid direction given for left hand side of edge ${e}--${t}. Expected (L,R,T,B) got `+i);if(!lOe(n))throw new Error(`Invalid direction given for right hand side of edge ${e}--${t}. Expected (L,R,T,B) got `+n);if(void 0===COe.records.nodes[e]&&void 0===COe.records.groups[e])throw new Error(`The left-hand id [${e}] does not yet exist. Please create the service/group before declaring an edge to it.`);if(void 0===COe.records.nodes[t]&&void 0===COe.records.groups[e])throw new Error(`The right-hand id [${t}] does not yet exist. Please create the service/group before declaring an edge to it.`);var c=COe.records.nodes[e].in,h=COe.records.nodes[t].in;if(a&&c&&h&&c==h)throw new Error(`The left-hand id [${e}] is modified to traverse the group boundary, but the edge does not pass through two groups.`);if(o&&c&&h&&c==h)throw new Error(`The right-hand id [${t}] is modified to traverse the group boundary, but the edge does not pass through two groups.`);COe.records.edges.push({lhsId:e,lhsDir:i,lhsInto:r,lhsGroup:a,rhsId:t,rhsDir:n,rhsInto:s,rhsGroup:o,title:l}),COe.records.nodes[e]&&COe.records.nodes[t]&&(COe.records.nodes[e].edges.push(COe.records.edges[COe.records.edges.length-1]),COe.records.nodes[t].edges.push(COe.records.edges[COe.records.edges.length-1]))},"addEdge"),POe=mt(()=>COe.records.edges,"getEdges"),BOe=mt(()=>{if(void 0===COe.records.dataStructures){let a={},o=Object.entries(COe.records.nodes).reduce((e,[s,t])=>(e[s]=t.edges.reduce((e,t)=>{var i,n=IOe(t.lhsId)?.in,r=IOe(t.rhsId)?.in;return n&&r&&n!==r&&"bend"!==(i=yOe(t.lhsDir,t.rhsDir))&&(a[n]??={},a[n][r]=i,a[r]??={},a[r][n]=i),t.lhsId===s?(r=gOe(t.lhsDir,t.rhsDir))&&(e[r]=t.rhsId):(n=gOe(t.rhsDir,t.lhsDir))&&(e[n]=t.lhsId),e},{}),e),{}),i=Object.keys(o)[0],l={[i]:1},c=Object.keys(o).reduce((e,t)=>t===i?e:{...e,[t]:1},{}),e=mt(e=>{let r={[e]:[0,0]},s=[e];for(;0<s.length;){var t=s.shift();if(t){l[t]=1,delete c[t];let e=o[t],[i,n]=r[t];Object.entries(e).forEach(([e,t])=>{l[t]||(r[t]=fOe([i,n],e),s.push(t))})}}return r},"BFS"),t=[e(i)];for(;0<Object.keys(c).length;)t.push(e(Object.keys(c)[0]));COe.records.dataStructures={adjList:o,spatialMaps:t,groupAlignments:a}}return COe.records.dataStructures},"getDataStructures"),FOe=mt((e,t)=>{COe.records.elements[e]=t},"setElementForId"),jOe=mt(e=>COe.records.elements[e],"getElementById"),zOe=mt(()=>E_({..._Oe,...Ii().architecture}),"getConfig"),HOe={clear:AOe,setDiagramTitle:Th,getDiagramTitle:Sh,setAccTitle:vh,getAccTitle:xh,setAccDescription:wh,getAccDescription:kh,getConfig:zOe,addService:EOe,getServices:$Oe,addJunction:LOe,getJunctions:ROe,getNodes:MOe,getNode:IOe,addGroup:NOe,getGroups:DOe,addEdge:OOe,getEdges:POe,setElementForId:FOe,getElementById:jOe,getDataStructures:BOe},mt(SOe,"getConfigField")}),ePe=e(()=>{"use strict";hfe(),t(),gfe(),JOe(),UOe=mt((e,t)=>{ufe(e,t),e.groups.map(t.addGroup),e.services.map(e=>t.addService({...e,type:"service"})),e.junctions.map(e=>t.addJunction({...e,type:"junction"})),e.edges.map(t.addEdge)},"populateDb"),qOe={parse:mt(async e=>{e=await afe("architecture",e);I.debug(e),UOe(e,HOe)},"parse")}}),tPe=e(()=>{"use strict";WOe=mt(e=>`
|
||
.edge {
|
||
stroke-width: ${e.archEdgeWidth};
|
||
stroke: ${e.archEdgeColor};
|
||
fill: none;
|
||
}
|
||
|
||
.arrow {
|
||
fill: ${e.archEdgeArrowColor};
|
||
}
|
||
|
||
.node-bkg {
|
||
fill: none;
|
||
stroke: ${e.archGroupBorderColor};
|
||
stroke-width: ${e.archGroupBorderWidth};
|
||
stroke-dasharray: 8;
|
||
}
|
||
.node-icon-text {
|
||
display: flex;
|
||
align-items: center;
|
||
}
|
||
|
||
.node-icon-text > div {
|
||
color: #fff;
|
||
margin: 1px;
|
||
height: fit-content;
|
||
text-align: center;
|
||
overflow: hidden;
|
||
display: -webkit-box;
|
||
-webkit-box-orient: vertical;
|
||
}
|
||
`,"getStyles"),VOe=WOe}),iPe=W((i,n)=>{"use strict";mt(function(e,t){"object"==typeof i&&"object"==typeof n?n.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof i?i.layoutBase=t():e.layoutBase=t()},"webpackUniversalModuleDefinition")(i,function(){return i=[function(e,t,i){function n(){}mt(n,"LayoutConstants"),n.QUALITY=1,n.DEFAULT_CREATE_BENDS_AS_NEEDED=!1,n.DEFAULT_INCREMENTAL=!1,n.DEFAULT_ANIMATION_ON_LAYOUT=!0,n.DEFAULT_ANIMATION_DURING_LAYOUT=!1,n.DEFAULT_ANIMATION_PERIOD=50,n.DEFAULT_UNIFORM_LEAF_NODE_SIZES=!1,n.DEFAULT_GRAPH_MARGIN=15,n.NODE_DIMENSIONS_INCLUDE_LABELS=!1,n.SIMPLE_NODE_HALF_SIZE=(n.SIMPLE_NODE_SIZE=40)/2,n.EMPTY_COMPOUND_NODE_SIZE=40,n.MIN_EDGE_LENGTH=1,n.INITIAL_WORLD_BOUNDARY=(n.WORLD_BOUNDARY=1e6)/1e3,n.WORLD_CENTER_X=1200,n.WORLD_CENTER_Y=900,e.exports=n},function(e,t,i){var n,r=i(2),s=i(8),a=i(9);function o(e,t,i){r.call(this,i),this.isOverlapingSourceAndTarget=!1,this.vGraphObject=i,this.bendpoints=[],this.source=e,this.target=t}for(n in mt(o,"LEdge"),o.prototype=Object.create(r.prototype),r)o[n]=r[n];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(e){if(this.source===e)return this.target;if(this.target===e)return this.source;throw"Node is not incident with this edge"},o.prototype.getOtherEndInGraph=function(e,t){for(var i=this.getOtherEnd(e),n=t.getGraphManager().getRoot();;){if(i.getOwner()==t)return i;if(i.getOwner()==n)break;i=i.getOwner().getParent()}return null},o.prototype.updateLength=function(){var e=new Array(4);this.isOverlapingSourceAndTarget=s.getIntersection(this.target.getRect(),this.source.getRect(),e),this.isOverlapingSourceAndTarget||(this.lengthX=e[0]-e[2],this.lengthY=e[1]-e[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)},e.exports=o},function(e,t,i){function n(e){this.vGraphObject=e}mt(n,"LGraphObject"),e.exports=n},function(e,t,i){var n,r=i(2),s=i(10),a=i(13),o=i(0),l=i(16),c=i(5);function h(e,t,i,n){r.call(this,n=null==i&&null==n?t:n),null!=e.graphManager&&(e=e.graphManager),this.estimatedSize=s.MIN_VALUE,this.inclusionTreeDepth=s.MAX_VALUE,this.vGraphObject=n,this.edges=[],this.graphManager=e,this.rect=null!=i&&null!=t?new a(t.x,t.y,i.width,i.height):new a}for(n in mt(h,"LNode"),h.prototype=Object.create(r.prototype),r)h[n]=r[n];h.prototype.getEdges=function(){return this.edges},h.prototype.getChild=function(){return this.child},h.prototype.getOwner=function(){return this.owner},h.prototype.getWidth=function(){return this.rect.width},h.prototype.setWidth=function(e){this.rect.width=e},h.prototype.getHeight=function(){return this.rect.height},h.prototype.setHeight=function(e){this.rect.height=e},h.prototype.getCenterX=function(){return this.rect.x+this.rect.width/2},h.prototype.getCenterY=function(){return this.rect.y+this.rect.height/2},h.prototype.getCenter=function(){return new c(this.rect.x+this.rect.width/2,this.rect.y+this.rect.height/2)},h.prototype.getLocation=function(){return new c(this.rect.x,this.rect.y)},h.prototype.getRect=function(){return this.rect},h.prototype.getDiagonal=function(){return Math.sqrt(this.rect.width*this.rect.width+this.rect.height*this.rect.height)},h.prototype.getHalfTheDiagonal=function(){return Math.sqrt(this.rect.height*this.rect.height+this.rect.width*this.rect.width)/2},h.prototype.setRect=function(e,t){this.rect.x=e.x,this.rect.y=e.y,this.rect.width=t.width,this.rect.height=t.height},h.prototype.setCenter=function(e,t){this.rect.x=e-this.rect.width/2,this.rect.y=t-this.rect.height/2},h.prototype.setLocation=function(e,t){this.rect.x=e,this.rect.y=t},h.prototype.moveBy=function(e,t){this.rect.x+=e,this.rect.y+=t},h.prototype.getEdgeListToNode=function(t){var i=[],n=this;return n.edges.forEach(function(e){if(e.target==t){if(e.source!=n)throw"Incorrect edge source!";i.push(e)}}),i},h.prototype.getEdgesBetween=function(t){var i=[],n=this;return n.edges.forEach(function(e){if(e.source!=n&&e.target!=n)throw"Incorrect edge source and/or target";e.target!=t&&e.source!=t||i.push(e)}),i},h.prototype.getNeighborsList=function(){var t=new Set,i=this;return i.edges.forEach(function(e){if(e.source==i)t.add(e.target);else{if(e.target!=i)throw"Incorrect incidency!";t.add(e.source)}}),t},h.prototype.withChildren=function(){var t=new Set;if(t.add(this),null!=this.child)for(var e=this.child.getNodes(),i=0;i<e.length;i++)e[i].withChildren().forEach(function(e){t.add(e)});return t},h.prototype.getNoOfChildren=function(){var e=0;if(null==this.child)e=1;else for(var t=this.child.getNodes(),i=0;i<t.length;i++)e+=t[i].getNoOfChildren();return e=0==e?1:e},h.prototype.getEstimatedSize=function(){if(this.estimatedSize==s.MIN_VALUE)throw"assert failed";return this.estimatedSize},h.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)},h.prototype.scatter=function(){var e=-o.INITIAL_WORLD_BOUNDARY,t=o.INITIAL_WORLD_BOUNDARY,t=o.WORLD_CENTER_X+l.nextDouble()*(t-e)+e,e=-o.INITIAL_WORLD_BOUNDARY,i=o.INITIAL_WORLD_BOUNDARY,i=o.WORLD_CENTER_Y+l.nextDouble()*(i-e)+e;this.rect.x=t,this.rect.y=i},h.prototype.updateBounds=function(){if(null==this.getChild())throw"assert failed";var e,t;0!=this.getChild().getNodes().length&&((t=this.getChild()).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)&&(e=t.getRight()-t.getLeft(),t=t.getBottom()-t.getTop(),this.labelWidth&&("left"==this.labelPosHorizontal?(this.rect.x-=this.labelWidth,this.setWidth(e+this.labelWidth)):"center"==this.labelPosHorizontal&&this.labelWidth>e?(this.rect.x-=(this.labelWidth-e)/2,this.setWidth(this.labelWidth)):"right"==this.labelPosHorizontal&&this.setWidth(e+this.labelWidth)),this.labelHeight)&&("top"==this.labelPosVertical?(this.rect.y-=this.labelHeight,this.setHeight(t+this.labelHeight)):"center"==this.labelPosVertical&&this.labelHeight>t?(this.rect.y-=(this.labelHeight-t)/2,this.setHeight(this.labelHeight)):"bottom"==this.labelPosVertical&&this.setHeight(t+this.labelHeight))},h.prototype.getInclusionTreeDepth=function(){if(this.inclusionTreeDepth==s.MAX_VALUE)throw"assert failed";return this.inclusionTreeDepth},h.prototype.transform=function(e){var t=this.rect.x,i=(t>o.WORLD_BOUNDARY?t=o.WORLD_BOUNDARY:t<-o.WORLD_BOUNDARY&&(t=-o.WORLD_BOUNDARY),this.rect.y),t=(i>o.WORLD_BOUNDARY?i=o.WORLD_BOUNDARY:i<-o.WORLD_BOUNDARY&&(i=-o.WORLD_BOUNDARY),new c(t,i)),i=e.inverseTransformPoint(t);this.setLocation(i.x,i.y)},h.prototype.getLeft=function(){return this.rect.x},h.prototype.getRight=function(){return this.rect.x+this.rect.width},h.prototype.getTop=function(){return this.rect.y},h.prototype.getBottom=function(){return this.rect.y+this.rect.height},h.prototype.getParent=function(){return null==this.owner?null:this.owner.getParent()},e.exports=h},function(e,t,i){var n,r=i(0);function s(){}for(n in mt(s,"FDLayoutConstants"),r)s[n]=r[n];s.MAX_ITERATIONS=2500,s.DEFAULT_EDGE_LENGTH=50,s.DEFAULT_SPRING_STRENGTH=.45,s.DEFAULT_REPULSION_STRENGTH=4500,s.DEFAULT_GRAVITY_STRENGTH=.4,s.DEFAULT_COMPOUND_GRAVITY_STRENGTH=1,s.DEFAULT_GRAVITY_RANGE_FACTOR=3.8,s.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR=1.5,s.DEFAULT_USE_SMART_IDEAL_EDGE_LENGTH_CALCULATION=!0,s.DEFAULT_USE_SMART_REPULSION_RANGE_CALCULATION=!0,s.DEFAULT_COOLING_FACTOR_INCREMENTAL=.3,s.COOLING_ADAPTATION_FACTOR=.33,s.ADAPTATION_LOWER_NODE_LIMIT=1e3,s.ADAPTATION_UPPER_NODE_LIMIT=5e3,s.MAX_NODE_DISPLACEMENT=3*(s.MAX_NODE_DISPLACEMENT_INCREMENTAL=100),s.MIN_REPULSION_DIST=s.DEFAULT_EDGE_LENGTH/10,s.CONVERGENCE_CHECK_PERIOD=100,s.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR=.1,s.MIN_EDGE_LENGTH=1,s.GRID_CALCULATION_CHECK_PERIOD=10,e.exports=s},function(e,t,i){function n(e,t){null==e&&null==t?(this.x=0,this.y=0):(this.x=e,this.y=t)}mt(n,"PointD"),n.prototype.getX=function(){return this.x},n.prototype.getY=function(){return this.y},n.prototype.setX=function(e){this.x=e},n.prototype.setY=function(e){this.y=e},n.prototype.getDifference=function(e){return new DimensionD(this.x-e.x,this.y-e.y)},n.prototype.getCopy=function(){return new n(this.x,this.y)},n.prototype.translate=function(e){return this.x+=e.width,this.y+=e.height,this},e.exports=n},function(e,t,i){var n,r=i(2),d=i(10),s=i(0),a=i(7),o=i(3),l=i(1),p=i(13),c=i(12),h=i(11);function u(e,t,i){r.call(this,i),this.estimatedSize=d.MIN_VALUE,this.margin=s.DEFAULT_GRAPH_MARGIN,this.edges=[],this.nodes=[],this.isConnected=!1,this.parent=e,null!=t&&t instanceof a?this.graphManager=t:null!=t&&t instanceof Layout&&(this.graphManager=t.graphManager)}for(n in mt(u,"LGraph"),u.prototype=Object.create(r.prototype),r)u[n]=r[n];u.prototype.getNodes=function(){return this.nodes},u.prototype.getEdges=function(){return this.edges},u.prototype.getGraphManager=function(){return this.graphManager},u.prototype.getParent=function(){return this.parent},u.prototype.getLeft=function(){return this.left},u.prototype.getRight=function(){return this.right},u.prototype.getTop=function(){return this.top},u.prototype.getBottom=function(){return this.bottom},u.prototype.isConnected=function(){return this.isConnected},u.prototype.add=function(e,t,i){if(null==t&&null==i){var n=e;if(null==this.graphManager)throw"Graph has no graph mgr!";if(-1<this.getNodes().indexOf(n))throw"Node already in graph!";return(n.owner=this).getNodes().push(n),n}n=e;if(!(-1<this.getNodes().indexOf(t)&&-1<this.getNodes().indexOf(i)))throw"Source or target not in graph!";if(t.owner!=i.owner||t.owner!=this)throw"Both owners must be this graph!";return t.owner!=i.owner?null:(n.source=t,n.target=i,n.isInterGraph=!1,this.getEdges().push(n),t.edges.push(n),i!=t&&i.edges.push(n),n)},u.prototype.remove=function(e){var t=e;if(e instanceof o){if(null==t)throw"Node is null!";if(null==t.owner||t.owner!=this)throw"Owner graph is invalid!";if(null==this.graphManager)throw"Owner graph manager is invalid!";for(var i,n=t.edges.slice(),r=n.length,s=0;s<r;s++)((i=n[s]).isInterGraph?this.graphManager:i.source.owner).remove(i);if(-1==(a=this.nodes.indexOf(t)))throw"Node not in owner node list!";this.nodes.splice(a,1)}else if(e instanceof l){if(null==(i=e))throw"Edge is null!";if(null==i.source||null==i.target)throw"Source and/or target is null!";if(null==i.source.owner||null==i.target.owner||i.source.owner!=this||i.target.owner!=this)throw"Source and/or target owner is invalid!";var a,t=i.source.edges.indexOf(i),e=i.target.edges.indexOf(i);if(!(-1<t&&-1<e))throw"Source and/or target doesn't know this edge!";if(i.source.edges.splice(t,1),i.target!=i.source&&i.target.edges.splice(e,1),-1==(a=i.source.owner.getEdges().indexOf(i)))throw"Not in owner's edge list!";i.source.owner.getEdges().splice(a,1)}},u.prototype.updateLeftTop=function(){for(var e,t=d.MAX_VALUE,i=d.MAX_VALUE,n=this.getNodes(),r=n.length,s=0;s<r;s++){var a,o=n[s];(a=o.getTop())<t&&(t=a),(a=o.getLeft())<i&&(i=a)}return t==d.MAX_VALUE?null:(e=null!=n[0].getParent().paddingLeft?n[0].getParent().paddingLeft:this.margin,this.left=i-e,this.top=t-e,new c(this.left,this.top))},u.prototype.updateBounds=function(e){for(var t,i,n=d.MAX_VALUE,r=-d.MAX_VALUE,s=d.MAX_VALUE,a=-d.MAX_VALUE,o=this.nodes,l=o.length,c=0;c<l;c++){var h=o[c];e&&null!=h.child&&h.updateBounds(),(t=h.getLeft())<n&&(n=t),r<(t=h.getRight())&&(r=t),(t=h.getTop())<s&&(s=t),a<(t=h.getBottom())&&(a=t)}var u=new p(n,s,r-n,a-s);n==d.MAX_VALUE&&(this.left=this.parent.getLeft(),this.right=this.parent.getRight(),this.top=this.parent.getTop(),this.bottom=this.parent.getBottom()),i=null!=o[0].getParent().paddingLeft?o[0].getParent().paddingLeft:this.margin,this.left=u.x-i,this.right=u.x+u.width+i,this.top=u.y-i,this.bottom=u.y+u.height+i},u.calculateBounds=function(e){for(var t=d.MAX_VALUE,i=-d.MAX_VALUE,n=d.MAX_VALUE,r=-d.MAX_VALUE,s=e.length,a=0;a<s;a++){var o,l=e[a];(o=l.getLeft())<t&&(t=o),i<(o=l.getRight())&&(i=o),(o=l.getTop())<n&&(n=o),r<(o=l.getBottom())&&(r=o)}return new p(t,n,i-t,r-n)},u.prototype.getInclusionTreeDepth=function(){return this==this.graphManager.getRoot()?1:this.parent.getInclusionTreeDepth()},u.prototype.getEstimatedSize=function(){if(this.estimatedSize==d.MIN_VALUE)throw"assert failed";return this.estimatedSize},u.prototype.calcEstimatedSize=function(){for(var e=0,t=this.nodes,i=t.length,n=0;n<i;n++)e+=t[n].calcEstimatedSize();return this.estimatedSize=0==e?s.EMPTY_COMPOUND_NODE_SIZE:e/Math.sqrt(this.nodes.length),this.estimatedSize},u.prototype.updateConnected=function(){var t=this;if(0==this.nodes.length)this.isConnected=!0;else{var i,n=new h,r=new Set,e=this.nodes[0];for(e.withChildren().forEach(function(e){n.push(e),r.add(e)});0!==n.length;)for(var s,a,o=(s=(e=n.shift()).getEdges()).length,l=0;l<o;l++)null==(a=s[l].getOtherEndInGraph(e,this))||r.has(a)||a.withChildren().forEach(function(e){n.push(e),r.add(e)});this.isConnected=!1,r.size>=this.nodes.length&&(i=0,r.forEach(function(e){e.owner==t&&i++}),i==this.nodes.length)&&(this.isConnected=!0)}},e.exports=u},function(e,t,i){var c,h=i(1);function n(e){c=i(6),this.layout=e,this.graphs=[],this.edges=[]}mt(n,"LGraphManager"),n.prototype.addRoot=function(){var e=this.layout.newGraph(),t=this.layout.newNode(null),e=this.add(e,t);return this.setRootGraph(e),this.rootGraph},n.prototype.add=function(e,t,i,n,r){if(null==i&&null==n&&null==r){if(null==e)throw"Graph is null!";if(null==t)throw"Parent node is null!";if(-1<this.graphs.indexOf(e))throw"Graph already in this graph mgr!";if(this.graphs.push(e),null!=e.parent)throw"Already has a parent!";if(null!=t.child)throw"Already has a child!";return(e.parent=t).child=e}r=i,i=e;e=(n=t).getOwner(),t=r.getOwner();if(null==e||e.getGraphManager()!=this)throw"Source not in this graph mgr!";if(null==t||t.getGraphManager()!=this)throw"Target not in this graph mgr!";if(e==t)return i.isInterGraph=!1,e.add(i,n,r);if(i.isInterGraph=!0,i.source=n,i.target=r,-1<this.edges.indexOf(i))throw"Edge already in inter-graph edge list!";if(this.edges.push(i),null==i.source||null==i.target)throw"Edge source and/or target is null!";if(-1!=i.source.edges.indexOf(i)||-1!=i.target.edges.indexOf(i))throw"Edge already in source and/or target incidency list!";return i.source.edges.push(i),i.target.edges.push(i),i},n.prototype.remove=function(e){if(e instanceof c){var t=e;if(t.getGraphManager()!=this)throw"Graph not in this graph mgr";if(t!=this.rootGraph&&(null==t.parent||t.parent.graphManager!=this))throw"Invalid parent node!";for(var i,n=[],r=(n=n.concat(t.getEdges())).length,s=0;s<r;s++)i=n[s],t.remove(i);for(var a,o=[],r=(o=o.concat(t.getNodes())).length,s=0;s<r;s++)a=o[s],t.remove(a);t==this.rootGraph&&this.setRootGraph(null);var l=this.graphs.indexOf(t);this.graphs.splice(l,1),t.parent=null}else if(e instanceof h){if(null==(i=e))throw"Edge is null!";if(!i.isInterGraph)throw"Not an inter-graph edge!";if(null==i.source||null==i.target)throw"Source and/or target is null!";if(-1==i.source.edges.indexOf(i)||-1==i.target.edges.indexOf(i))throw"Source and/or target doesn't know this edge!";l=i.source.edges.indexOf(i);if(i.source.edges.splice(l,1),l=i.target.edges.indexOf(i),i.target.edges.splice(l,1),null==i.source.owner||null==i.source.owner.getGraphManager())throw"Edge owner graph or owner graph manager is null!";if(-1==i.source.owner.getGraphManager().edges.indexOf(i))throw"Not in owner graph manager's edge list!";l=i.source.owner.getGraphManager().edges.indexOf(i);i.source.owner.getGraphManager().edges.splice(l,1)}},n.prototype.updateBounds=function(){this.rootGraph.updateBounds(!0)},n.prototype.getGraphs=function(){return this.graphs},n.prototype.getAllNodes=function(){if(null==this.allNodes){for(var e=[],t=this.getGraphs(),i=t.length,n=0;n<i;n++)e=e.concat(t[n].getNodes());this.allNodes=e}return this.allNodes},n.prototype.resetAllNodes=function(){this.allNodes=null},n.prototype.resetAllEdges=function(){this.allEdges=null},n.prototype.resetAllNodesToApplyGravitation=function(){this.allNodesToApplyGravitation=null},n.prototype.getAllEdges=function(){if(null==this.allEdges){for(var e=[],t=this.getGraphs(),i=(t.length,0);i<t.length;i++)e=e.concat(t[i].getEdges());e=e.concat(this.edges),this.allEdges=e}return this.allEdges},n.prototype.getAllNodesToApplyGravitation=function(){return this.allNodesToApplyGravitation},n.prototype.setAllNodesToApplyGravitation=function(e){if(null!=this.allNodesToApplyGravitation)throw"assert failed";this.allNodesToApplyGravitation=e},n.prototype.getRoot=function(){return this.rootGraph},n.prototype.setRootGraph=function(e){if(e.getGraphManager()!=this)throw"Root not in this graph mgr!";null==(this.rootGraph=e).parent&&(e.parent=this.layout.newNode("Root node"))},n.prototype.getLayout=function(){return this.layout},n.prototype.isOneAncestorOfOther=function(e,t){if(null==e||null==t)throw"assert failed";if(e==t)return!0;for(var i,n=e.getOwner();null!=(i=n.getParent());){if(i==t)return!0;if(null==(n=i.getOwner()))break}for(n=t.getOwner();;){if(null==(i=n.getParent()))break;if(i==e)return!0;if(null==(n=i.getOwner()))break}return!1},n.prototype.calcLowestCommonAncestors=function(){for(var e,t,i,n,r,s=this.getAllEdges(),a=s.length,o=0;o<a;o++)if(t=(e=s[o]).source,i=e.target,e.lca=null,(e.sourceInLca=t)==(e.targetInLca=i))e.lca=t.getOwner();else{for(n=t.getOwner();null==e.lca;){for(r=(e.targetInLca=i).getOwner();null==e.lca;){if(r==n){e.lca=r;break}if(r==this.rootGraph)break;if(null!=e.lca)throw"assert failed";e.targetInLca=r.getParent(),r=e.targetInLca.getOwner()}if(n==this.rootGraph)break;null==e.lca&&(e.sourceInLca=n.getParent(),n=e.sourceInLca.getOwner())}if(null==e.lca)throw"assert failed"}},n.prototype.calcLowestCommonAncestor=function(e,t){if(e==t)return e.getOwner();for(var i=e.getOwner();null!=i;){for(var n=t.getOwner();null!=n;){if(n==i)return n;n=n.getParent().getOwner()}i=i.getParent().getOwner()}return i},n.prototype.calcInclusionTreeDepths=function(e,t){null==e&&null==t&&(e=this.rootGraph,t=1);for(var i,n=e.getNodes(),r=n.length,s=0;s<r;s++)(i=n[s]).inclusionTreeDepth=t,null!=i.child&&this.calcInclusionTreeDepths(i.child,t+1)},n.prototype.includesInvalidEdge=function(){for(var e,t=[],i=this.edges.length,n=0;n<i;n++)e=this.edges[n],this.isOneAncestorOfOther(e.source,e.target)&&t.push(e);for(n=0;n<t.length;n++)this.remove(t[n]);return!1},e.exports=n},function(e,t,i){var f=i(12);function n(){}mt(n,"IGeometry"),n.calcSeparationAmount=function(e,t,i,n){if(!e.intersects(t))throw"assert failed";var r=new Array(2),s=(this.decideDirectionsForOverlappingNodes(e,t,r),i[0]=Math.min(e.getRight(),t.getRight())-Math.max(e.x,t.x),i[1]=Math.min(e.getBottom(),t.getBottom())-Math.max(e.y,t.y),e.getX()<=t.getX()&&e.getRight()>=t.getRight()?i[0]+=Math.min(t.getX()-e.getX(),e.getRight()-t.getRight()):t.getX()<=e.getX()&&t.getRight()>=e.getRight()&&(i[0]+=Math.min(e.getX()-t.getX(),t.getRight()-e.getRight())),e.getY()<=t.getY()&&e.getBottom()>=t.getBottom()?i[1]+=Math.min(t.getY()-e.getY(),e.getBottom()-t.getBottom()):t.getY()<=e.getY()&&t.getBottom()>=e.getBottom()&&(i[1]+=Math.min(e.getY()-t.getY(),t.getBottom()-e.getBottom())),Math.abs((t.getCenterY()-e.getCenterY())/(t.getCenterX()-e.getCenterX()))),t=(s=t.getCenterY()===e.getCenterY()&&t.getCenterX()===e.getCenterX()?1:s)*i[0],e=i[1]/s;i[0]<e?e=i[0]:t=i[1],i[0]=-1*r[0]*(e/2+n),i[1]=-1*r[1]*(t/2+n)},n.decideDirectionsForOverlappingNodes=function(e,t,i){e.getCenterX()<t.getCenterX()?i[0]=-1:i[0]=1,e.getCenterY()<t.getCenterY()?i[1]=-1:i[1]=1},n.getIntersection2=function(e,t,i){var n=e.getCenterX(),r=e.getCenterY(),s=t.getCenterX(),a=t.getCenterY();if(e.intersects(t))return i[0]=n,i[1]=r,i[2]=s,i[3]=a,!0;var o=e.getX(),l=e.getY(),c=e.getRight(),h=e.getX(),u=e.getBottom(),d=e.getRight(),p=e.getWidthHalf(),g=e.getHeightHalf(),f=t.getX(),m=t.getY(),y=t.getRight(),b=t.getX(),v=t.getBottom(),x=t.getRight(),w=t.getWidthHalf(),k=t.getHeightHalf(),T=!1,S=!1;if(n===s){if(a<r)return i[0]=n,i[1]=l,i[2]=s,i[3]=v,!1;if(r<a)i[0]=n,i[1]=u,i[2]=s,i[3]=m}else if(r===a){if(s<n)return i[0]=o,i[1]=r,i[2]=y,i[3]=a,!1;if(n<s)i[0]=c,i[1]=r,i[2]=f,i[3]=a}else{var e=e.height/e.width,t=t.height/t.width,_=(a-r)/(s-n),C=void 0,A=void 0,E=void 0,$=void 0;if(-e==_?T=(s<n?(i[0]=h,i[1]=u):(i[0]=c,i[1]=l),!0):e==_&&(T=(s<n?(i[0]=o,i[1]=l):(i[0]=d,i[1]=u),!0)),-t==_?S=(n<s?(i[2]=b,i[3]=v):(i[2]=y,i[3]=m),!0):t==_&&(S=(n<s?(i[2]=f,i[3]=m):(i[2]=x,i[3]=v),!0)),T&&S)return!1;if(A=s<n?a<r?(C=this.getCardinalDirection(e,_,4),this.getCardinalDirection(t,_,2)):(C=this.getCardinalDirection(-e,_,3),this.getCardinalDirection(-t,_,1)):a<r?(C=this.getCardinalDirection(-e,_,1),this.getCardinalDirection(-t,_,3)):(C=this.getCardinalDirection(e,_,2),this.getCardinalDirection(t,_,4)),!T)switch(C){case 1:E=l,i[0]=n+-g/_,i[1]=E;break;case 2:E=r+p*_,i[0]=d,i[1]=E;break;case 3:E=u,i[0]=n+g/_,i[1]=E;break;case 4:E=r+-p*_,i[0]=h,i[1]=E}if(!S)switch(A){case 1:$=m,i[2]=s+-k/_,i[3]=$;break;case 2:$=a+w*_,i[2]=x,i[3]=$;break;case 3:$=v,i[2]=s+k/_,i[3]=$;break;case 4:$=a+-w*_,i[2]=b,i[3]=$}}return!1},n.getCardinalDirection=function(e,t,i){return t<e?i:1+i%4},n.getIntersection=function(e,t,i,n){var r,s,a,o,l,c,h,u,d,p,g;return null==n?this.getIntersection2(e,t,i):(r=e.x,e=e.y,s=t.x,t=t.y,a=i.x,i=i.y,g=p=h=d=c=u=l=void 0,h=s*e-r*t,p=(o=n.x)*i-a*(n=n.y),0==(g=(l=t-e)*(d=a-o)-(u=n-i)*(c=r-s))?null:new f((c*p-d*h)/g,(u*h-l*p)/g))},n.angleOfVector=function(e,t,i,n){var r=void 0;return e!==i?(r=Math.atan((n-t)/(i-e)),i<e?r+=Math.PI:n<t&&(r+=this.TWO_PI)):r=n<t?this.ONE_AND_HALF_PI:this.HALF_PI,r},n.doIntersect=function(e,t,i,n){var r=e.x,e=e.y,s=t.x,t=t.y,a=i.x,i=i.y,o=n.x,n=n.y,l=(s-r)*(n-i)-(o-a)*(t-e);return 0!=l&&(t=((e-t)*(o-r)+(s-r)*(n-e))/l,0<(s=((n-i)*(o-r)+(a-o)*(n-e))/l))&&s<1&&0<t&&t<1},n.findCircleLineIntersections=function(e,t,i,n,r,s,a){var o=(i-e)*(i-e)+(n-t)*(n-t),i=2*((e-r)*(i-e)+(t-s)*(n-t)),n=(e-r)*(e-r)+(t-s)*(t-s)-a*a;return 0<=i*i-4*o*n?(e=(-i+Math.sqrt(i*i-4*o*n))/(2*o),r=(-i-Math.sqrt(i*i-4*o*n))/(2*o),0<=e&&e<=1?[e]:0<=r&&r<=1?[r]:null):null},n.HALF_PI=.5*Math.PI,n.ONE_AND_HALF_PI=1.5*Math.PI,n.TWO_PI=2*Math.PI,n.THREE_PI=3*Math.PI,e.exports=n},function(e,t,i){function n(){}mt(n,"IMath"),n.sign=function(e){return 0<e?1:e<0?-1:0},n.floor=function(e){return e<0?Math.ceil(e):Math.floor(e)},n.ceil=function(e){return e<0?Math.floor(e):Math.ceil(e)},e.exports=n},function(e,t,i){function n(){}mt(n,"Integer"),n.MAX_VALUE=2147483647,n.MIN_VALUE=-2147483648,e.exports=n},function(e,t,i){mt(r,"defineProperties");var n=function(e,t,i){return t&&r(e.prototype,t),i&&r(e,i),e};function r(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}mt(s,"_classCallCheck");var a=mt(function(e){return{value:e,next:null,prev:null}},"nodeFrom"),o=mt(function(e,t,i,n){return null!==e?e.next=t:n.head=t,null!==i?i.prev=t:n.tail=t,t.prev=e,t.next=i,n.length++,t},"add"),l=mt(function(e,t){var i=e.prev,n=e.next;return null!==i?i.next=n:t.head=n,null!==n?n.prev=i:t.tail=i,e.prev=e.next=null,t.length--,e},"_remove");function c(e){var t=this;s(this,c),this.length=0,this.head=null,this.tail=null,e?.forEach(function(e){return t.push(e)})}mt(c,"LinkedList"),n(c,[{key:"size",value:mt(function(){return this.length},"size")},{key:"insertBefore",value:mt(function(e,t){return o(t.prev,a(e),t,this)},"insertBefore")},{key:"insertAfter",value:mt(function(e,t){return o(t,a(e),t.next,this)},"insertAfter")},{key:"insertNodeBefore",value:mt(function(e,t){return o(t.prev,e,t,this)},"insertNodeBefore")},{key:"insertNodeAfter",value:mt(function(e,t){return o(t,e,t.next,this)},"insertNodeAfter")},{key:"push",value:mt(function(e){return o(this.tail,a(e),null,this)},"push")},{key:"unshift",value:mt(function(e){return o(null,a(e),this.head,this)},"unshift")},{key:"remove",value:mt(function(e){return l(e,this)},"remove")},{key:"pop",value:mt(function(){return l(this.tail,this).value},"pop")},{key:"popNode",value:mt(function(){return l(this.tail,this)},"popNode")},{key:"shift",value:mt(function(){return l(this.head,this).value},"shift")},{key:"shiftNode",value:mt(function(){return l(this.head,this)},"shiftNode")},{key:"get_object_at",value:mt(function(e){if(e<=this.length()){for(var t=1,i=this.head;t<e;)i=i.next,t++;return i.value}},"get_object_at")},{key:"set_object_at",value:mt(function(e,t){if(e<=this.length()){for(var i=1,n=this.head;i<e;)n=n.next,i++;n.value=t}},"set_object_at")}]),e.exports=c},function(e,t,i){function n(e,t,i){this.x=null,(this.y=null)==e&&null==t&&null==i?(this.x=0,this.y=0):"number"==typeof e&&"number"==typeof t&&null==i?(this.x=e,this.y=t):"Point"==e.constructor.name&&null==t&&null==i&&(this.x=(i=e).x,this.y=i.y)}mt(n,"Point"),n.prototype.getX=function(){return this.x},n.prototype.getY=function(){return this.y},n.prototype.getLocation=function(){return new n(this.x,this.y)},n.prototype.setLocation=function(e,t,i){"Point"==e.constructor.name&&null==t&&null==i?this.setLocation((i=e).x,i.y):"number"==typeof e&&"number"==typeof t&&null==i&&(parseInt(e)==e&&parseInt(t)==t?this.move(e,t):(this.x=Math.floor(e+.5),this.y=Math.floor(t+.5)))},n.prototype.move=function(e,t){this.x=e,this.y=t},n.prototype.translate=function(e,t){this.x+=e,this.y+=t},n.prototype.equals=function(e){return"Point"==e.constructor.name?this.x==e.x&&this.y==e.y:this==e},n.prototype.toString=function(){return(new n).constructor.name+"[x="+this.x+",y="+this.y+"]"},e.exports=n},function(e,t,i){function n(e,t,i,n){this.x=0,this.y=0,this.width=0,this.height=0,null!=e&&null!=t&&null!=i&&null!=n&&(this.x=e,this.y=t,this.width=i,this.height=n)}mt(n,"RectangleD"),n.prototype.getX=function(){return this.x},n.prototype.setX=function(e){this.x=e},n.prototype.getY=function(){return this.y},n.prototype.setY=function(e){this.y=e},n.prototype.getWidth=function(){return this.width},n.prototype.setWidth=function(e){this.width=e},n.prototype.getHeight=function(){return this.height},n.prototype.setHeight=function(e){this.height=e},n.prototype.getRight=function(){return this.x+this.width},n.prototype.getBottom=function(){return this.y+this.height},n.prototype.intersects=function(e){return!(this.getRight()<e.x||this.getBottom()<e.y||e.getRight()<this.x||e.getBottom()<this.y)},n.prototype.getCenterX=function(){return this.x+this.width/2},n.prototype.getMinX=function(){return this.getX()},n.prototype.getMaxX=function(){return this.getX()+this.width},n.prototype.getCenterY=function(){return this.y+this.height/2},n.prototype.getMinY=function(){return this.getY()},n.prototype.getMaxY=function(){return this.getY()+this.height},n.prototype.getWidthHalf=function(){return this.width/2},n.prototype.getHeightHalf=function(){return this.height/2},e.exports=n},function(e,t,i){var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};function r(){}mt(r,"UniqueIDGeneretor"),r.lastID=0,r.createID=function(e){return r.isPrimitive(e)?e:(null==e.uniqueID&&(e.uniqueID=r.getString(),r.lastID++),e.uniqueID)},r.getString=function(e){return"Object#"+(e=null==e?r.lastID:e)},r.isPrimitive=function(e){var t="u"<typeof e?"undefined":n(e);return null==e||"object"!=t&&"function"!=t},e.exports=r},function(e,t,i){function g(e){if(Array.isArray(e)){for(var t=0,i=Array(e.length);t<e.length;t++)i[t]=e[t];return i}return Array.from(e)}mt(g,"_toConsumableArray");var n=i(0),r=i(7),s=i(3),a=i(1),o=i(6),l=i(5),c=i(17),h=i(29);function u(e){h.call(this),this.layoutQuality=n.QUALITY,this.createBendsAsNeeded=n.DEFAULT_CREATE_BENDS_AS_NEEDED,this.incremental=n.DEFAULT_INCREMENTAL,this.animationOnLayout=n.DEFAULT_ANIMATION_ON_LAYOUT,this.animationDuringLayout=n.DEFAULT_ANIMATION_DURING_LAYOUT,this.animationPeriod=n.DEFAULT_ANIMATION_PERIOD,this.uniformLeafNodeSizes=n.DEFAULT_UNIFORM_LEAF_NODE_SIZES,this.edgeToDummyNodes=new Map,this.graphManager=new r(this),this.isLayoutFinished=!1,this.isSubLayout=!1,this.isRemoteUse=!1,null!=e&&(this.isRemoteUse=e)}mt(u,"Layout"),u.RANDOM_SEED=1,(u.prototype=Object.create(h.prototype)).getGraphManager=function(){return this.graphManager},u.prototype.getAllNodes=function(){return this.graphManager.getAllNodes()},u.prototype.getAllEdges=function(){return this.graphManager.getAllEdges()},u.prototype.getAllNodesToApplyGravitation=function(){return this.graphManager.getAllNodesToApplyGravitation()},u.prototype.newGraphManager=function(){var e=new r(this);return this.graphManager=e},u.prototype.newGraph=function(e){return new o(null,this.graphManager,e)},u.prototype.newNode=function(e){return new s(this.graphManager,e)},u.prototype.newEdge=function(e){return new a(null,null,e)},u.prototype.checkLayoutSuccess=function(){return null==this.graphManager.getRoot()||0==this.graphManager.getRoot().getNodes().length||this.graphManager.includesInvalidEdge()},u.prototype.runLayout=function(){var e;return this.isLayoutFinished=!1,this.tilingPreLayout&&this.tilingPreLayout(),this.initParameters(),e=!this.checkLayoutSuccess()&&this.layout(),"during"!==n.ANIMATE&&(!e||this.isSubLayout||this.doPostLayout(),this.tilingPostLayout&&this.tilingPostLayout(),this.isLayoutFinished=!0,e)},u.prototype.doPostLayout=function(){this.incremental||this.transform(),this.update()},u.prototype.update2=function(){if(this.createBendsAsNeeded&&(this.createBendpointsFromDummyNodes(),this.graphManager.resetAllEdges()),!this.isRemoteUse){for(var e=this.graphManager.getAllEdges(),t=0;t<e.length;t++)e[t];for(var i=this.graphManager.getRoot().getNodes(),t=0;t<i.length;t++)i[t];this.update(this.graphManager.getRoot())}},u.prototype.update=function(e){if(null==e)this.update2();else if(e instanceof s){var t=e;if(null!=t.getChild())for(var i=t.getChild().getNodes(),n=0;n<i.length;n++)update(i[n]);null!=t.vGraphObject&&t.vGraphObject.update(t)}else e instanceof a?null!=e.vGraphObject&&e.vGraphObject.update(e):e instanceof o&&null!=e.vGraphObject&&e.vGraphObject.update(e)},u.prototype.initParameters=function(){this.isSubLayout||(this.layoutQuality=n.QUALITY,this.animationDuringLayout=n.DEFAULT_ANIMATION_DURING_LAYOUT,this.animationPeriod=n.DEFAULT_ANIMATION_PERIOD,this.animationOnLayout=n.DEFAULT_ANIMATION_ON_LAYOUT,this.incremental=n.DEFAULT_INCREMENTAL,this.createBendsAsNeeded=n.DEFAULT_CREATE_BENDS_AS_NEEDED,this.uniformLeafNodeSizes=n.DEFAULT_UNIFORM_LEAF_NODE_SIZES),this.animationDuringLayout&&(this.animationOnLayout=!1)},u.prototype.transform=function(e){if(null==e)this.transform(new l(0,0));else{var t=new c,i=this.graphManager.getRoot().updateLeftTop();if(null!=i){t.setWorldOrgX(e.x),t.setWorldOrgY(e.y),t.setDeviceOrgX(i.x),t.setDeviceOrgY(i.y);for(var n=this.getAllNodes(),r=0;r<n.length;r++)n[r].transform(t)}}},u.prototype.positionNodesRandomly=function(e){if(null==e)this.positionNodesRandomly(this.getGraphManager().getRoot()),this.getGraphManager().getRoot().updateBounds(!0);else for(var t,i,n=e.getNodes(),r=0;r<n.length;r++)null==(i=(t=n[r]).getChild())||0==i.getNodes().length?t.scatter():(this.positionNodesRandomly(i),t.updateBounds())},u.prototype.getFlatForest=function(){for(var e=[],t=!0,i=this.graphManager.getRoot().getNodes(),n=!0,r=0;r<i.length;r++)null!=i[r].getChild()&&(n=!1);if(n)for(var s=new Set,a=[],o=new Map,l=(l=[]).concat(i);0<l.length&&t;){for(a.push(l[0]);0<a.length&&t;){var c=a[0];a.splice(0,1),s.add(c);for(var h=c.getEdges(),r=0;r<h.length;r++){var u=h[r].getOtherEnd(c);if(o.get(c)!=u){if(s.has(u)){t=!1;break}a.push(u),o.set(u,c)}}}if(t){var d=[].concat(g(s));e.push(d);for(r=0;r<d.length;r++){var p=d[r],p=l.indexOf(p);-1<p&&l.splice(p,1)}s=new Set,o=new Map}else e=[]}return e},u.prototype.createDummyNodesForBendpoints=function(e){for(var t=[],i=e.source,n=this.graphManager.calcLowestCommonAncestor(e.source,e.target),r=0;r<e.bendpoints.length;r++){var s=this.newNode(null),a=(s.setRect(new Point(0,0),new Dimension(1,1)),n.add(s),this.newEdge(null));this.graphManager.add(a,i,s),t.add(s),i=s}a=this.newEdge(null);return this.graphManager.add(a,i,e.target),this.edgeToDummyNodes.set(e,t),(e.isInterGraph()?this.graphManager:n).remove(e),t},u.prototype.createBendpointsFromDummyNodes=function(){var e=(e=[]).concat(this.graphManager.getAllEdges());e=[].concat(g(this.edgeToDummyNodes.keys())).concat(e);for(var t=0;t<e.length;t++){var i=e[t];if(0<i.bendpoints.length){for(var n=this.edgeToDummyNodes.get(i),r=0;r<n.length;r++){var s=n[r],a=new l(s.getCenterX(),s.getCenterY()),o=i.bendpoints.get(r);o.x=a.x,o.y=a.y,s.getOwner().remove(s)}this.graphManager.add(i,i.source,i.target)}}},u.transform=function(e,t,i,n){var r,s;return null!=i&&null!=n?(r=t,e<=50?r-=(t-t/i)/50*(50-e):r+=(t*n-t)/50*(e-50),r):(i=e<=50?(s=9*t/500,t/10):(s=9*t/50,-8*t),s*e+i)},u.findCenterOfTree=function(e){var t=(t=[]).concat(e),i=[],n=new Map,r=!1,s=null;1!=t.length&&2!=t.length||(r=!0,s=t[0]);for(var a=0;a<t.length;a++){var o=(c=t[a]).getNeighborsList().size;n.set(c,c.getNeighborsList().size),1==o&&i.push(c)}for(l=(l=[]).concat(i);!r;){[].concat(l);for(var l=[],a=0;a<t.length;a++){var c=t[a],h=t.indexOf(c);0<=h&&t.splice(h,1),c.getNeighborsList().forEach(function(e){var t;i.indexOf(e)<0&&(1==(t=n.get(e)-1)&&l.push(e),n.set(e,t))})}i=i.concat(l),1!=t.length&&2!=t.length||(r=!0,s=t[0])}return s},u.prototype.setGraphManager=function(e){this.graphManager=e},e.exports=u},function(e,t,i){function n(){}mt(n,"RandomSeed"),n.seed=1,n.x=0,n.nextDouble=function(){return(n.x=1e4*Math.sin(n.seed++))-Math.floor(n.x)},e.exports=n},function(e,t,i){var n=i(5);function r(e,t){this.lworldOrgX=0,this.lworldOrgY=0,this.ldeviceOrgX=0,this.ldeviceOrgY=0,this.lworldExtX=1,this.lworldExtY=1,this.ldeviceExtX=1,this.ldeviceExtY=1}mt(r,"Transform"),r.prototype.getWorldOrgX=function(){return this.lworldOrgX},r.prototype.setWorldOrgX=function(e){this.lworldOrgX=e},r.prototype.getWorldOrgY=function(){return this.lworldOrgY},r.prototype.setWorldOrgY=function(e){this.lworldOrgY=e},r.prototype.getWorldExtX=function(){return this.lworldExtX},r.prototype.setWorldExtX=function(e){this.lworldExtX=e},r.prototype.getWorldExtY=function(){return this.lworldExtY},r.prototype.setWorldExtY=function(e){this.lworldExtY=e},r.prototype.getDeviceOrgX=function(){return this.ldeviceOrgX},r.prototype.setDeviceOrgX=function(e){this.ldeviceOrgX=e},r.prototype.getDeviceOrgY=function(){return this.ldeviceOrgY},r.prototype.setDeviceOrgY=function(e){this.ldeviceOrgY=e},r.prototype.getDeviceExtX=function(){return this.ldeviceExtX},r.prototype.setDeviceExtX=function(e){this.ldeviceExtX=e},r.prototype.getDeviceExtY=function(){return this.ldeviceExtY},r.prototype.setDeviceExtY=function(e){this.ldeviceExtY=e},r.prototype.transformX=function(e){var t=0,i=this.lworldExtX;return t=0!=i?this.ldeviceOrgX+(e-this.lworldOrgX)*this.ldeviceExtX/i:t},r.prototype.transformY=function(e){var t=0,i=this.lworldExtY;return t=0!=i?this.ldeviceOrgY+(e-this.lworldOrgY)*this.ldeviceExtY/i:t},r.prototype.inverseTransformX=function(e){var t=0,i=this.ldeviceExtX;return t=0!=i?this.lworldOrgX+(e-this.ldeviceOrgX)*this.lworldExtX/i:t},r.prototype.inverseTransformY=function(e){var t=0,i=this.ldeviceExtY;return t=0!=i?this.lworldOrgY+(e-this.ldeviceOrgY)*this.lworldExtY/i:t},r.prototype.inverseTransformPoint=function(e){return new n(this.inverseTransformX(e.x),this.inverseTransformY(e.y))},e.exports=r},function(e,t,i){function d(e){if(Array.isArray(e)){for(var t=0,i=Array(e.length);t<e.length;t++)i[t]=e[t];return i}return Array.from(e)}mt(d,"_toConsumableArray");var n,r=i(15),p=i(4),l=i(0),c=i(8),h=i(9);function s(){r.call(this),this.useSmartIdealEdgeLengthCalculation=p.DEFAULT_USE_SMART_IDEAL_EDGE_LENGTH_CALCULATION,this.gravityConstant=p.DEFAULT_GRAVITY_STRENGTH,this.compoundGravityConstant=p.DEFAULT_COMPOUND_GRAVITY_STRENGTH,this.gravityRangeFactor=p.DEFAULT_GRAVITY_RANGE_FACTOR,this.compoundGravityRangeFactor=p.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR,this.displacementThresholdPerNode=3*p.DEFAULT_EDGE_LENGTH/100,this.coolingFactor=p.DEFAULT_COOLING_FACTOR_INCREMENTAL,this.initialCoolingFactor=p.DEFAULT_COOLING_FACTOR_INCREMENTAL,this.totalDisplacement=0,this.oldTotalDisplacement=0,this.maxIterations=p.MAX_ITERATIONS}for(n in mt(s,"FDLayout"),s.prototype=Object.create(r.prototype),r)s[n]=r[n];s.prototype.initParameters=function(){r.prototype.initParameters.call(this,arguments),this.totalIterations=0,this.notAnimatedIterations=0,this.useFRGridVariant=p.DEFAULT_USE_SMART_REPULSION_RANGE_CALCULATION,this.grid=[]},s.prototype.calcIdealEdgeLengths=function(){for(var e,t,i,n,r,s,a=this.getGraphManager().getAllEdges(),o=0;o<a.length;o++)t=(e=a[o]).idealLength,e.isInterGraph&&(i=e.getSource(),n=e.getTarget(),r=e.getSourceInLca().getEstimatedSize(),s=e.getTargetInLca().getEstimatedSize(),this.useSmartIdealEdgeLengthCalculation&&(e.idealLength+=r+s-2*l.SIMPLE_NODE_SIZE),r=e.getLca().getInclusionTreeDepth(),e.idealLength+=t*p.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR*(i.getInclusionTreeDepth()+n.getInclusionTreeDepth()-2*r))},s.prototype.initSpringEmbedder=function(){var e=this.getAllNodes().length;this.incremental?(e>p.ADAPTATION_LOWER_NODE_LIMIT&&(this.coolingFactor=Math.max(this.coolingFactor*p.COOLING_ADAPTATION_FACTOR,this.coolingFactor-(e-p.ADAPTATION_LOWER_NODE_LIMIT)/(p.ADAPTATION_UPPER_NODE_LIMIT-p.ADAPTATION_LOWER_NODE_LIMIT)*this.coolingFactor*(1-p.COOLING_ADAPTATION_FACTOR))),this.maxNodeDisplacement=p.MAX_NODE_DISPLACEMENT_INCREMENTAL):(e>p.ADAPTATION_LOWER_NODE_LIMIT?this.coolingFactor=Math.max(p.COOLING_ADAPTATION_FACTOR,1-(e-p.ADAPTATION_LOWER_NODE_LIMIT)/(p.ADAPTATION_UPPER_NODE_LIMIT-p.ADAPTATION_LOWER_NODE_LIMIT)*(1-p.COOLING_ADAPTATION_FACTOR)):this.coolingFactor=1,this.initialCoolingFactor=this.coolingFactor,this.maxNodeDisplacement=p.MAX_NODE_DISPLACEMENT),this.maxIterations=Math.max(5*this.getAllNodes().length,this.maxIterations),this.displacementThresholdPerNode=3*p.DEFAULT_EDGE_LENGTH/100,this.totalDisplacementThreshold=this.displacementThresholdPerNode*this.getAllNodes().length,this.repulsionRange=this.calcRepulsionRange()},s.prototype.calcSpringForces=function(){for(var e,t=this.getAllEdges(),i=0;i<t.length;i++)e=t[i],this.calcSpringForce(e,e.idealLength)},s.prototype.calcRepulsionForces=function(){var e,t,i,n,r,s=!(0<arguments.length&&void 0!==arguments[0])||arguments[0],a=1<arguments.length&&void 0!==arguments[1]&&arguments[1],o=this.getAllNodes();if(this.useFRGridVariant)for(this.totalIterations%p.GRID_CALCULATION_CHECK_PERIOD==1&&s&&this.updateGrid(),r=new Set,e=0;e<o.length;e++)i=o[e],this.calculateRepulsionForceOfANode(i,r,s,a),r.add(i);else for(e=0;e<o.length;e++)for(i=o[e],t=e+1;t<o.length;t++)n=o[t],i.getOwner()==n.getOwner()&&this.calcRepulsionForce(i,n)},s.prototype.calcGravitationalForces=function(){for(var e,t=this.getAllNodesToApplyGravitation(),i=0;i<t.length;i++)e=t[i],this.calcGravitationalForce(e)},s.prototype.moveNodes=function(){for(var e=this.getAllNodes(),t=0;t<e.length;t++)e[t].move()},s.prototype.calcSpringForce=function(e,t){var i,n,r=e.getSource(),s=e.getTarget();if(this.uniformLeafNodeSizes&&null==r.getChild()&&null==s.getChild())e.updateLengthSimple();else if(e.updateLength(),e.isOverlapingSourceAndTarget)return;0!=(i=e.getLength())&&(n=(t=e.edgeElasticity*(i-t))*(e.lengthX/i),t=t*(e.lengthY/i),r.springForceX+=n,r.springForceY+=t,s.springForceX-=n,s.springForceY-=t)},s.prototype.calcRepulsionForce=function(e,t){var i,n,r,s=e.getRect(),a=t.getRect(),o=new Array(2),l=new Array(4);s.intersects(a)?(c.calcSeparationAmount(s,a,o,p.DEFAULT_EDGE_LENGTH/2),n=2*o[0],r=2*o[1],o=e.noOfChildren*t.noOfChildren/(e.noOfChildren+t.noOfChildren),e.repulsionForceX-=o*n,e.repulsionForceY-=o*r,t.repulsionForceX+=o*n,t.repulsionForceY+=o*r):(o=this.uniformLeafNodeSizes&&null==e.getChild()&&null==t.getChild()?(i=a.getCenterX()-s.getCenterX(),a.getCenterY()-s.getCenterY()):(c.getIntersection(s,a,l),i=l[2]-l[0],l[3]-l[1]),s=(i=Math.abs(i)<p.MIN_REPULSION_DIST?h.sign(i)*p.MIN_REPULSION_DIST:i)*i+(o=Math.abs(o)<p.MIN_REPULSION_DIST?h.sign(o)*p.MIN_REPULSION_DIST:o)*o,a=Math.sqrt(s),r=(l=(e.nodeRepulsion/2+t.nodeRepulsion/2)*e.noOfChildren*t.noOfChildren/s)*o/a,e.repulsionForceX-=n=l*i/a,e.repulsionForceY-=r,t.repulsionForceX+=n,t.repulsionForceY+=r)},s.prototype.calcGravitationalForce=function(e){var t,i=e.getOwner(),n=(i.getRight()+i.getLeft())/2,r=(i.getTop()+i.getBottom())/2,n=e.getCenterX()-n,r=e.getCenterY()-r,s=Math.abs(n)+e.getWidth()/2,a=Math.abs(r)+e.getHeight()/2;e.getOwner()==this.graphManager.getRoot()?((t=i.getEstimatedSize()*this.gravityRangeFactor)<s||t<a)&&(e.gravitationForceX=-this.gravityConstant*n,e.gravitationForceY=-this.gravityConstant*r):((t=i.getEstimatedSize()*this.compoundGravityRangeFactor)<s||t<a)&&(e.gravitationForceX=-this.gravityConstant*n*this.compoundGravityConstant,e.gravitationForceY=-this.gravityConstant*r*this.compoundGravityConstant)},s.prototype.isConverged=function(){var e,t=!1;return this.totalIterations>this.maxIterations/3&&(t=Math.abs(this.totalDisplacement-this.oldTotalDisplacement)<2),e=this.totalDisplacement<this.totalDisplacementThreshold,this.oldTotalDisplacement=this.totalDisplacement,e||t},s.prototype.animate=function(){this.animationDuringLayout&&!this.isSubLayout&&(this.notAnimatedIterations==this.animationPeriod?(this.update(),this.notAnimatedIterations=0):this.notAnimatedIterations++)},s.prototype.calcNoOfChildrenForAllNodes=function(){for(var e,t=this.graphManager.getAllNodes(),i=0;i<t.length;i++)(e=t[i]).noOfChildren=e.getNoOfChildren()},s.prototype.calcGrid=function(e){for(var t=parseInt(Math.ceil((e.getRight()-e.getLeft())/this.repulsionRange)),i=parseInt(Math.ceil((e.getBottom()-e.getTop())/this.repulsionRange)),n=new Array(t),r=0;r<t;r++)n[r]=new Array(i);for(r=0;r<t;r++)for(var s=0;s<i;s++)n[r][s]=new Array;return n},s.prototype.addNodeToGrid=function(e,t,i){for(var n=parseInt(Math.floor((e.getRect().x-t)/this.repulsionRange)),r=parseInt(Math.floor((e.getRect().width+e.getRect().x-t)/this.repulsionRange)),s=parseInt(Math.floor((e.getRect().y-i)/this.repulsionRange)),a=parseInt(Math.floor((e.getRect().height+e.getRect().y-i)/this.repulsionRange)),o=n;o<=r;o++)for(var l=s;l<=a;l++)this.grid[o][l].push(e),e.setGridCoordinates(n,r,s,a)},s.prototype.updateGrid=function(){var e,t,i=this.getAllNodes();for(this.grid=this.calcGrid(this.graphManager.getRoot()),e=0;e<i.length;e++)t=i[e],this.addNodeToGrid(t,this.graphManager.getRoot().getLeft(),this.graphManager.getRoot().getTop())},s.prototype.calculateRepulsionForceOfANode=function(e,t,i,n){if(this.totalIterations%p.GRID_CALCULATION_CHECK_PERIOD==1&&i||n){var r=new Set;e.surrounding=new Array;for(var s=this.grid,a=e.startX-1;a<e.finishX+2;a++)for(var o=e.startY-1;o<e.finishY+2;o++)if(!(a<0||o<0||a>=s.length||o>=s[0].length))for(var l=0;l<s[a][o].length;l++){var c,h,u=s[a][o][l];e.getOwner()!=u.getOwner()||e==u||t.has(u)||r.has(u)||(c=Math.abs(e.getCenterX()-u.getCenterX())-(e.getWidth()/2+u.getWidth()/2),h=Math.abs(e.getCenterY()-u.getCenterY())-(e.getHeight()/2+u.getHeight()/2),c<=this.repulsionRange&&h<=this.repulsionRange&&r.add(u))}e.surrounding=[].concat(d(r))}for(a=0;a<e.surrounding.length;a++)this.calcRepulsionForce(e,e.surrounding[a])},s.prototype.calcRepulsionRange=function(){return 0},e.exports=s},function(e,t,i){var n,r=i(1),s=i(4);function a(e,t,i){r.call(this,e,t,i),this.idealLength=s.DEFAULT_EDGE_LENGTH,this.edgeElasticity=s.DEFAULT_SPRING_STRENGTH}for(n in mt(a,"FDLayoutEdge"),a.prototype=Object.create(r.prototype),r)a[n]=r[n];e.exports=a},function(e,t,i){var n,r=i(3),s=i(4);function a(e,t,i,n){r.call(this,e,t,i,n),this.nodeRepulsion=s.DEFAULT_REPULSION_STRENGTH,this.springForceX=0,this.springForceY=0,this.repulsionForceX=0,this.repulsionForceY=0,this.gravitationForceX=0,this.gravitationForceY=0,this.displacementX=0,this.displacementY=0,this.startX=0,this.finishX=0,this.startY=0,this.finishY=0,this.surrounding=[]}for(n in mt(a,"FDLayoutNode"),a.prototype=Object.create(r.prototype),r)a[n]=r[n];a.prototype.setGridCoordinates=function(e,t,i,n){this.startX=e,this.finishX=t,this.startY=i,this.finishY=n},e.exports=a},function(e,t,i){function n(e,t){this.width=0,this.height=0,null!==e&&null!==t&&(this.height=t,this.width=e)}mt(n,"DimensionD"),n.prototype.getWidth=function(){return this.width},n.prototype.setWidth=function(e){this.width=e},n.prototype.getHeight=function(){return this.height},n.prototype.setHeight=function(e){this.height=e},e.exports=n},function(e,t,i){var n=i(14);function r(){this.map={},this.keys=[]}mt(r,"HashMap"),r.prototype.put=function(e,t){var i=n.createID(e);this.contains(i)||(this.map[i]=t,this.keys.push(e))},r.prototype.contains=function(e){n.createID(e);return null!=this.map[e]},r.prototype.get=function(e){e=n.createID(e);return this.map[e]},r.prototype.keySet=function(){return this.keys},e.exports=r},function(e,t,i){var n=i(14);function r(){this.set={}}mt(r,"HashSet"),r.prototype.add=function(e){var t=n.createID(e);this.contains(t)||(this.set[t]=e)},r.prototype.remove=function(e){delete this.set[n.createID(e)]},r.prototype.clear=function(){this.set={}},r.prototype.contains=function(e){return this.set[n.createID(e)]==e},r.prototype.isEmpty=function(){return 0===this.size()},r.prototype.size=function(){return Object.keys(this.set).length},r.prototype.addAllTo=function(e){for(var t=Object.keys(this.set),i=t.length,n=0;n<i;n++)e.push(this.set[t[n]])},r.prototype.size=function(){return Object.keys(this.set).length},r.prototype.addAll=function(e){for(var t=e.length,i=0;i<t;i++){var n=e[i];this.add(n)}},e.exports=r},function(e,t,i){function n(){}mt(n,"Matrix"),n.multMat=function(e,t){for(var i=[],n=0;n<e.length;n++){i[n]=[];for(var r=0;r<t[0].length;r++)for(var s=i[n][r]=0;s<e[0].length;s++)i[n][r]+=e[n][s]*t[s][r]}return i},n.transpose=function(e){for(var t=[],i=0;i<e[0].length;i++){t[i]=[];for(var n=0;n<e.length;n++)t[i][n]=e[n][i]}return t},n.multCons=function(e,t){for(var i=[],n=0;n<e.length;n++)i[n]=e[n]*t;return i},n.minusOp=function(e,t){for(var i=[],n=0;n<e.length;n++)i[n]=e[n]-t[n];return i},n.dotProduct=function(e,t){for(var i=0,n=0;n<e.length;n++)i+=e[n]*t[n];return i},n.mag=function(e){return Math.sqrt(this.dotProduct(e,e))},n.normalize=function(e){for(var t=[],i=this.mag(e),n=0;n<e.length;n++)t[n]=e[n]/i;return t},n.multGamma=function(e){for(var t=[],i=0,n=0;n<e.length;n++)i+=e[n];i*=-1/e.length;for(var r=0;r<e.length;r++)t[r]=i+e[r];return t},n.multL=function(e,t,i){for(var n=[],r=[],s=[],a=0;a<t[0].length;a++){for(var o=0,l=0;l<t.length;l++)o+=-.5*t[l][a]*e[l];r[a]=o}for(var c=0;c<i.length;c++){for(var h=0,u=0;u<i.length;u++)h+=i[c][u]*r[u];s[c]=h}for(var d=0;d<t.length;d++){for(var p=0,g=0;g<t[0].length;g++)p+=t[d][g]*s[g];n[d]=p}return n},e.exports=n},function(e,t,i){mt(r,"defineProperties");var n=function(e,t,i){return t&&r(e.prototype,t),i&&r(e,i),e};function r(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}mt(s,"_classCallCheck");var a=i(11),i=(mt(o,"Quicksort"),n(o,[{key:"_quicksort",value:mt(function(e,t,i){var n;t<i&&(n=this._partition(e,t,i),this._quicksort(e,t,n),this._quicksort(e,n+1,i))},"_quicksort")},{key:"_partition",value:mt(function(e,t,i){for(var n=this._get(e,t),r=t,s=i;;){for(;this.compareFunction(n,this._get(e,s));)s--;for(;this.compareFunction(this._get(e,r),n);)r++;if(!(r<s))return s;this._swap(e,r,s),r++,s--}},"_partition")},{key:"_get",value:mt(function(e,t){return e instanceof a?e.get_object_at(t):e[t]},"_get")},{key:"_set",value:mt(function(e,t,i){e instanceof a?e.set_object_at(t,i):e[t]=i},"_set")},{key:"_swap",value:mt(function(e,t,i){var n=this._get(e,t);this._set(e,t,this._get(e,i)),this._set(e,i,n)},"_swap")},{key:"_defaultCompareFunction",value:mt(function(e,t){return e<t},"_defaultCompareFunction")}]),o);function o(e,t){s(this,o),null===t&&void 0===t||(this.compareFunction=this._defaultCompareFunction);t=void 0,t=e instanceof a?e.size():e.length;this._quicksort(e,0,t-1)}e.exports=i},function(e,t,i){function Ee(){}mt(Ee,"SVD"),Ee.svd=function(e){this.U=null,this.V=null,this.s=null,this.m=0,this.n=0,this.m=e.length,this.n=e[0].length;var t,O=Math.min(this.m,this.n);this.s=function(e){for(var t=[];0<e--;)t.push(0);return t}(Math.min(this.m+1,this.n)),this.U=(t=[this.m,O],mt(function e(t){if(0==t.length)return 0;for(var i=[],n=0;n<t[0];n++)i.push(e(t.slice(1)));return i},"allocate")(t)),this.V=(t=[this.n,this.n],mt(function e(t){if(0==t.length)return 0;for(var i=[],n=0;n<t[0];n++)i.push(e(t.slice(1)));return i},"allocate")(t));for(var P,B,F,i=function(e){for(var t=[];0<e--;)t.push(0);return t}(this.n),j=function(e){for(var t=[];0<e--;)t.push(0);return t}(this.m),n=Math.min(this.m-1,this.n),r=Math.max(0,Math.min(this.n-2,this.m)),s=0;s<Math.max(n,r);s++){if(s<n){this.s[s]=0;for(var z=s;z<this.m;z++)this.s[s]=Ee.hypot(this.s[s],e[z][s]);if(0!==this.s[s]){e[s][s]<0&&(this.s[s]=-this.s[s]);for(var H=s;H<this.m;H++)e[H][s]/=this.s[s];e[s][s]+=1}this.s[s]=-this.s[s]}for(var a=s+1;a<this.n;a++){if(F=0!==this.s[s],s<n&&F){for(var U=0,q=s;q<this.m;q++)U+=e[q][s]*e[q][a];for(var U=-U/e[s][s],W=s;W<this.m;W++)e[W][a]+=U*e[W][s]}i[a]=e[s][a]}if(s<n)for(var V=s;V<this.m;V++)this.U[V][s]=e[V][s];if(s<r){i[s]=0;for(var G=s+1;G<this.n;G++)i[s]=Ee.hypot(i[s],i[G]);if(0!==i[s]){i[s+1]<0&&(i[s]=-i[s]);for(var Y=s+1;Y<this.n;Y++)i[Y]/=i[s];i[s+1]+=1}if(i[s]=-i[s],P=s+1<this.m,B=0!==i[s],P&&B){for(var X=s+1;X<this.m;X++)j[X]=0;for(var K=s+1;K<this.n;K++)for(var Z=s+1;Z<this.m;Z++)j[Z]+=i[K]*e[Z][K];for(var Q=s+1;Q<this.n;Q++)for(var J=-i[Q]/i[s+1],ee=s+1;ee<this.m;ee++)e[ee][Q]+=J*j[ee]}for(var te=s+1;te<this.n;te++)this.V[te][s]=i[te]}}var o=Math.min(this.n,this.m+1);n<this.n&&(this.s[n]=e[n][n]),this.m<o&&(this.s[o-1]=0),r+1<o&&(i[r]=e[r][o-1]),i[o-1]=0;for(var l=n;l<O;l++){for(var ie=0;ie<this.m;ie++)this.U[ie][l]=0;this.U[l][l]=1}for(var c=n-1;0<=c;c--)if(0!==this.s[c]){for(var ne=c+1;ne<O;ne++){for(var re=0,se=c;se<this.m;se++)re+=this.U[se][c]*this.U[se][ne];for(var re=-re/this.U[c][c],ae=c;ae<this.m;ae++)this.U[ae][ne]+=re*this.U[ae][c]}for(var oe=c;oe<this.m;oe++)this.U[oe][c]=-this.U[oe][c];this.U[c][c]=1+this.U[c][c];for(var le=0;le<c-1;le++)this.U[le][c]=0}else{for(var ce=0;ce<this.m;ce++)this.U[ce][c]=0;this.U[c][c]=1}for(var he,h=this.n-1;0<=h;h--){if(he=0!==i[h],h<r&&he)for(var ue=h+1;ue<O;ue++){for(var de=0,pe=h+1;pe<this.n;pe++)de+=this.V[pe][h]*this.V[pe][ue];for(var de=-de/this.V[h+1][h],ge=h+1;ge<this.n;ge++)this.V[ge][ue]+=de*this.V[ge][h]}for(var fe=0;fe<this.n;fe++)this.V[fe][h]=0;this.V[h][h]=1}for(var me=o-1,ye=Math.pow(2,-52),be=Math.pow(2,-966);0<o;){for(var u=void 0,d=void 0,u=o-2;-1<=u&&-1!==u;u--)if(Math.abs(i[u])<=be+ye*(Math.abs(this.s[u])+Math.abs(this.s[u+1]))){i[u]=0;break}if(u===o-2)d=4;else{for(var p=void 0,p=o-1;u<=p&&p!==u;p--){var ve=(p!==o?Math.abs(i[p]):0)+(p!==u+1?Math.abs(i[p-1]):0);if(Math.abs(this.s[p])<=be+ye*ve){this.s[p]=0;break}}p===u?d=3:p===o-1?d=1:(d=2,u=p)}switch(u++,d){case 1:var xe=i[o-2];i[o-2]=0;for(var g=o-2;u<=g;g--){var f=Ee.hypot(this.s[g],xe),we=this.s[g]/f,ke=xe/f;this.s[g]=f,g!==u&&(xe=-ke*i[g-1],i[g-1]=we*i[g-1]);for(var m=0;m<this.n;m++)f=we*this.V[m][g]+ke*this.V[m][o-1],this.V[m][o-1]=-ke*this.V[m][g]+we*this.V[m][o-1],this.V[m][g]=f}break;case 2:var Te=i[u-1];i[u-1]=0;for(var y=u;y<o;y++){var b=Ee.hypot(this.s[y],Te),Se=this.s[y]/b,_e=Te/b;this.s[y]=b,Te=-_e*i[y],i[y]=Se*i[y];for(var v=0;v<this.m;v++)b=Se*this.U[v][y]+_e*this.U[v][u-1],this.U[v][u-1]=-_e*this.U[v][y]+Se*this.U[v][u-1],this.U[v][y]=b}break;case 3:var x=Math.max(Math.max(Math.max(Math.max(Math.abs(this.s[o-1]),Math.abs(this.s[o-2])),Math.abs(i[o-2])),Math.abs(this.s[u])),Math.abs(i[u])),w=this.s[o-1]/x,k=this.s[o-2]/x,T=i[o-2]/x,Ce=this.s[u]/x,x=i[u]/x,k=((k+w)*(k-w)+T*T)/2,T=w*T*(w*T),S=0;0==k&&0==T||(S=Math.sqrt(k*k+T),S=T/(k+(S=k<0?-S:S)));for(var _=(Ce+w)*(Ce-w)+S,C=Ce*x,A=u;A<o-1;A++){var E=Ee.hypot(_,C),$=_/E,L=C/E;A!==u&&(i[A-1]=E),_=$*this.s[A]+L*i[A],i[A]=$*i[A]-L*this.s[A],C=L*this.s[A+1],this.s[A+1]=$*this.s[A+1];for(var R=0;R<this.n;R++)E=$*this.V[R][A]+L*this.V[R][A+1],this.V[R][A+1]=-L*this.V[R][A]+$*this.V[R][A+1],this.V[R][A]=E;if($=_/(E=Ee.hypot(_,C)),L=C/E,this.s[A]=E,_=$*i[A]+L*this.s[A+1],this.s[A+1]=-L*i[A]+$*this.s[A+1],C=L*i[A+1],i[A+1]=$*i[A+1],A<this.m-1)for(var M=0;M<this.m;M++)E=$*this.U[M][A]+L*this.U[M][A+1],this.U[M][A+1]=-L*this.U[M][A]+$*this.U[M][A+1],this.U[M][A]=E}i[o-2]=_,0;break;case 4:if(this.s[u]<=0&&(this.s[u]=this.s[u]<0?-this.s[u]:0,1))for(var Ae=0;Ae<=me;Ae++)this.V[Ae][u]=-this.V[Ae][u];for(;u<me&&!(this.s[u]>=this.s[u+1]);){var I=this.s[u];if(this.s[u]=this.s[u+1],this.s[u+1]=I,u<this.n-1)for(var N=0;N<this.n;N++)I=this.V[N][u+1],this.V[N][u+1]=this.V[N][u],this.V[N][u]=I;if(u<this.m-1)for(var D=0;D<this.m;D++)I=this.U[D][u+1],this.U[D][u+1]=this.U[D][u],this.U[D][u]=I;u++}o--}}return{U:this.U,V:this.V,S:this.s}},Ee.hypot=function(e,t){var i=void 0;return i=Math.abs(e)>Math.abs(t)?(i=t/e,Math.abs(e)*Math.sqrt(1+i*i)):0!=t?(i=e/t,Math.abs(t)*Math.sqrt(1+i*i)):0},e.exports=Ee},function(e,t,i){mt(r,"defineProperties");var n=function(e,t,i){return t&&r(e.prototype,t),i&&r(e,i),e};function r(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function c(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}mt(c,"_classCallCheck");mt(h,"NeedlemanWunsch"),n(h,[{key:"getScore",value:mt(function(){return this.score},"getScore")},{key:"getAlignments",value:mt(function(){return this.alignments},"getAlignments")},{key:"computeGrids",value:mt(function(){for(var e=1;e<this.jMax;e++)this.grid[0][e]=this.grid[0][e-1]+this.gap_penalty,this.tracebackGrid[0][e]=[!1,!1,!0];for(var t=1;t<this.iMax;t++)this.grid[t][0]=this.grid[t-1][0]+this.gap_penalty,this.tracebackGrid[t][0]=[!1,!0,!1];for(var i=1;i<this.iMax;i++)for(var n=1;n<this.jMax;n++){var r=[this.sequence1[i-1]===this.sequence2[n-1]?this.grid[i-1][n-1]+this.match_score:this.grid[i-1][n-1]+this.mismatch_penalty,this.grid[i-1][n]+this.gap_penalty,this.grid[i][n-1]+this.gap_penalty],s=this.arrayAllMaxIndexes(r);this.grid[i][n]=r[s[0]],this.tracebackGrid[i][n]=[s.includes(0),s.includes(1),s.includes(2)]}this.score=this.grid[this.iMax-1][this.jMax-1]},"computeGrids")},{key:"alignmentTraceback",value:mt(function(){var e=[];for(e.push({pos:[this.sequence1.length,this.sequence2.length],seq1:"",seq2:""});e[0];){var t=e[0],i=this.tracebackGrid[t.pos[0]][t.pos[1]];i[0]&&e.push({pos:[t.pos[0]-1,t.pos[1]-1],seq1:this.sequence1[t.pos[0]-1]+t.seq1,seq2:this.sequence2[t.pos[1]-1]+t.seq2}),i[1]&&e.push({pos:[t.pos[0]-1,t.pos[1]],seq1:this.sequence1[t.pos[0]-1]+t.seq1,seq2:"-"+t.seq2}),i[2]&&e.push({pos:[t.pos[0],t.pos[1]-1],seq1:"-"+t.seq1,seq2:this.sequence2[t.pos[1]-1]+t.seq2}),0===t.pos[0]&&0===t.pos[1]&&this.alignments.push({sequence1:t.seq1,sequence2:t.seq2}),e.shift()}return this.alignments},"alignmentTraceback")},{key:"getAllIndexes",value:mt(function(e,t){for(var i=[],n=-1;-1!==(n=e.indexOf(t,n+1));)i.push(n);return i},"getAllIndexes")},{key:"arrayAllMaxIndexes",value:mt(function(e){return this.getAllIndexes(e,Math.max.apply(null,e))},"arrayAllMaxIndexes")}]);n=h;function h(e,t){var i=2<arguments.length&&void 0!==arguments[2]?arguments[2]:1,n=3<arguments.length&&void 0!==arguments[3]?arguments[3]:-1,r=4<arguments.length&&void 0!==arguments[4]?arguments[4]:-1;c(this,h),this.sequence1=e,this.sequence2=t,this.match_score=i,this.mismatch_penalty=n,this.gap_penalty=r,this.iMax=e.length+1,this.jMax=t.length+1,this.grid=new Array(this.iMax);for(var s=0;s<this.iMax;s++){this.grid[s]=new Array(this.jMax);for(var a=0;a<this.jMax;a++)this.grid[s][a]=0}this.tracebackGrid=new Array(this.iMax);for(var o=0;o<this.iMax;o++){this.tracebackGrid[o]=new Array(this.jMax);for(var l=0;l<this.jMax;l++)this.tracebackGrid[o][l]=[null,null,null]}this.alignments=[],this.score=-1,this.computeGrids()}e.exports=n},function(e,t,i){var n=mt(function(){},"layoutBase");n.FDLayout=i(18),n.FDLayoutConstants=i(4),n.FDLayoutEdge=i(19),n.FDLayoutNode=i(20),n.DimensionD=i(21),n.HashMap=i(22),n.HashSet=i(23),n.IGeometry=i(8),n.IMath=i(9),n.Integer=i(10),n.Point=i(12),n.PointD=i(5),n.RandomSeed=i(16),n.RectangleD=i(13),n.Transform=i(17),n.UniqueIDGeneretor=i(14),n.Quicksort=i(25),n.LinkedList=i(11),n.LGraphObject=i(2),n.LGraph=i(6),n.LEdge=i(1),n.LGraphManager=i(7),n.LNode=i(3),n.Layout=i(15),n.LayoutConstants=i(0),n.NeedlemanWunsch=i(27),n.Matrix=i(24),n.SVD=i(26),e.exports=n},function(e,t,i){function n(){this.listeners=[]}mt(n,"Emitter");var r=n.prototype;r.addListener=function(e,t){this.listeners.push({event:e,callback:t})},r.removeListener=function(e,t){for(var i=this.listeners.length;0<=i;i--){var n=this.listeners[i];n.event===e&&n.callback===t&&this.listeners.splice(i,1)}},r.emit=function(e,t){for(var i=0;i<this.listeners.length;i++){var n=this.listeners[i];e===n.event&&n.callback(t)}},e.exports=n}],r={},mt(n,"__webpack_require__"),n.m=i,n.c=r,n.i=function(e){return e},n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:i})},n.n=function(e){var t=e&&e.__esModule?mt(function(){return e.default},"getDefault"):mt(function(){return e},"getModuleExports");return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=28);function n(e){var t;return(r[e]||(t=r[e]={i:e,l:!1,exports:{}},i[e].call(t.exports,t,t.exports,n),t.l=!0,t)).exports}var i,r})}),nPe=W((i,n)=>{"use strict";mt(function(e,t){"object"==typeof i&&"object"==typeof n?n.exports=t(iPe()):"function"==typeof define&&define.amd?define(["layout-base"],t):"object"==typeof i?i.coseBase=t(iPe()):e.coseBase=t(e.layoutBase)},"webpackUniversalModuleDefinition")(i,function(t){return n={45:(e,t,i)=>{var n={};n.layoutBase=i(551),n.CoSEConstants=i(806),n.CoSEEdge=i(767),n.CoSEGraph=i(880),n.CoSEGraphManager=i(578),n.CoSELayout=i(765),n.CoSENode=i(991),n.ConstraintHandler=i(902),e.exports=n},806:(e,t,i)=>{var n,r=i(551).FDLayoutConstants;function s(){}for(n in mt(s,"CoSEConstants"),r)s[n]=r[n];s.DEFAULT_USE_MULTI_LEVEL_SCALING=!1,s.DEFAULT_RADIAL_SEPARATION=r.DEFAULT_EDGE_LENGTH,s.DEFAULT_COMPONENT_SEPERATION=60,s.TILE=!0,s.TILING_PADDING_VERTICAL=10,s.TILING_PADDING_HORIZONTAL=10,s.TRANSFORM_ON_CONSTRAINT_HANDLING=!0,s.ENFORCE_CONSTRAINTS=!0,s.APPLY_LAYOUT=!0,s.RELAX_MOVEMENT_ON_CONSTRAINTS=!0,s.TREE_REDUCTION_ON_INCREMENTAL=!0,s.PURE_INCREMENTAL=s.DEFAULT_INCREMENTAL,e.exports=s},767:(e,t,i)=>{var n,r=i(551).FDLayoutEdge;function s(e,t,i){r.call(this,e,t,i)}for(n in mt(s,"CoSEEdge"),s.prototype=Object.create(r.prototype),r)s[n]=r[n];e.exports=s},880:(e,t,i)=>{var n,r=i(551).LGraph;function s(e,t,i){r.call(this,e,t,i)}for(n in mt(s,"CoSEGraph"),s.prototype=Object.create(r.prototype),r)s[n]=r[n];e.exports=s},578:(e,t,i)=>{var n,r=i(551).LGraphManager;function s(e){r.call(this,e)}for(n in mt(s,"CoSEGraphManager"),s.prototype=Object.create(r.prototype),r)s[n]=r[n];e.exports=s},765:(e,t,i)=>{var n,r=i(551).FDLayout,s=i(578),a=i(880),h=i(991),o=i(767),f=i(806),l=i(902),m=i(551).FDLayoutConstants,u=i(551).LayoutConstants,d=i(551).Point,p=i(551).PointD,c=i(551).DimensionD,g=i(551).Layout,y=i(551).Integer,b=i(551).IGeometry,v=i(551).LGraph,x=i(551).Transform,w=i(551).LinkedList;function k(){r.call(this),this.toBeTiled={},this.constraints={}}for(n in mt(k,"CoSELayout"),k.prototype=Object.create(r.prototype),r)k[n]=r[n];k.prototype.newGraphManager=function(){var e=new s(this);return this.graphManager=e},k.prototype.newGraph=function(e){return new a(null,this.graphManager,e)},k.prototype.newNode=function(e){return new h(this.graphManager,e)},k.prototype.newEdge=function(e){return new o(null,null,e)},k.prototype.initParameters=function(){r.prototype.initParameters.call(this,arguments),this.isSubLayout||(f.DEFAULT_EDGE_LENGTH<10?this.idealEdgeLength=10:this.idealEdgeLength=f.DEFAULT_EDGE_LENGTH,this.useSmartIdealEdgeLengthCalculation=f.DEFAULT_USE_SMART_IDEAL_EDGE_LENGTH_CALCULATION,this.gravityConstant=m.DEFAULT_GRAVITY_STRENGTH,this.compoundGravityConstant=m.DEFAULT_COMPOUND_GRAVITY_STRENGTH,this.gravityRangeFactor=m.DEFAULT_GRAVITY_RANGE_FACTOR,this.compoundGravityRangeFactor=m.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR,this.prunedNodesAll=[],this.growTreeIterations=0,this.afterGrowthIterations=0,this.isTreeGrowing=!1,this.isGrowthFinished=!1)},k.prototype.initSpringEmbedder=function(){r.prototype.initSpringEmbedder.call(this),this.coolingCycle=0,this.maxCoolingCycle=this.maxIterations/m.CONVERGENCE_CHECK_PERIOD,this.finalTemperature=.04,this.coolingAdjuster=1},k.prototype.layout=function(){return u.DEFAULT_CREATE_BENDS_AS_NEEDED&&(this.createBendpoints(),this.graphManager.resetAllEdges()),this.level=0,this.classicLayout()},k.prototype.classicLayout=function(){var e,t,i;return 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?f.TREE_REDUCTION_ON_INCREMENTAL&&(this.reduceTrees(),this.graphManager.resetAllNodesToApplyGravitation(),t=new Set(this.getAllNodes()),i=this.nodesWithGravity.filter(function(e){return t.has(e)}),this.graphManager.setAllNodesToApplyGravitation(i)):0<(e=this.getFlatForest()).length?this.positionNodesRadially(e):(this.reduceTrees(),this.graphManager.resetAllNodesToApplyGravitation(),t=new Set(this.getAllNodes()),i=this.nodesWithGravity.filter(function(e){return t.has(e)}),this.graphManager.setAllNodesToApplyGravitation(i),this.positionNodesRandomly()),0<Object.keys(this.constraints).length&&(l.handleConstraints(this),this.initConstraintVariables()),this.initSpringEmbedder(),f.APPLY_LAYOUT&&this.runSpringEmbedder(),!0},k.prototype.tick=function(){if(this.totalIterations++,this.totalIterations===this.maxIterations&&!this.isTreeGrowing&&!this.isGrowthFinished){if(!(0<this.prunedNodesAll.length))return!0;this.isTreeGrowing=!0}if(this.totalIterations%m.CONVERGENCE_CHECK_PERIOD==0&&!this.isTreeGrowing&&!this.isGrowthFinished){if(this.isConverged()){if(!(0<this.prunedNodesAll.length))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))}var t;if(this.isTreeGrowing&&(this.growTreeIterations%10==0&&(0<this.prunedNodesAll.length?(this.graphManager.updateBounds(),this.updateGrid(),this.growTree(this.prunedNodesAll),this.graphManager.resetAllNodesToApplyGravitation(),t=new Set(this.getAllNodes()),e=this.nodesWithGravity.filter(function(e){return t.has(e)}),this.graphManager.setAllNodesToApplyGravitation(e),this.graphManager.updateBounds(),this.updateGrid(),f.PURE_INCREMENTAL?this.coolingFactor=m.DEFAULT_COOLING_FACTOR_INCREMENTAL/2:this.coolingFactor=m.DEFAULT_COOLING_FACTOR_INCREMENTAL):(this.isTreeGrowing=!1,this.isGrowthFinished=!0)),this.growTreeIterations++),this.isGrowthFinished){if(this.isConverged())return!0;this.afterGrowthIterations%10==0&&(this.graphManager.updateBounds(),this.updateGrid()),f.PURE_INCREMENTAL?this.coolingFactor=m.DEFAULT_COOLING_FACTOR_INCREMENTAL/2*((100-this.afterGrowthIterations)/100):this.coolingFactor=m.DEFAULT_COOLING_FACTOR_INCREMENTAL*((100-this.afterGrowthIterations)/100),this.afterGrowthIterations++}var e=!this.isTreeGrowing&&!this.isGrowthFinished,i=this.growTreeIterations%10==1&&this.isTreeGrowing||this.afterGrowthIterations%10==1&&this.isGrowthFinished;return this.totalDisplacement=0,this.graphManager.updateBounds(),this.calcSpringForces(),this.calcRepulsionForces(e,i),this.calcGravitationalForces(),this.moveNodes(),this.animate(),!1},k.prototype.getPositionsData=function(){for(var e=this.graphManager.getAllNodes(),t={},i=0;i<e.length;i++){var n=e[i].rect,r=e[i].id;t[r]={id:r,x:n.getCenterX(),y:n.getCenterY(),w:n.width,h:n.height}}return t},k.prototype.runSpringEmbedder=function(){this.initialAnimationPeriod=25,this.animationPeriod=this.initialAnimationPeriod;var e=!1;if("during"===m.ANIMATE)this.emit("layoutstarted");else{for(;!e;)e=this.tick();this.graphManager.updateBounds()}},k.prototype.moveNodes=function(){for(var e=this.getAllNodes(),t=0;t<e.length;t++)e[t].calculateDisplacement();0<Object.keys(this.constraints).length&&this.updateDisplacements();for(t=0;t<e.length;t++)e[t].move()},k.prototype.initConstraintVariables=function(){var a=this;this.idToNodeMap=new Map,this.fixedNodeSet=new Set;for(var e=this.graphManager.getAllNodes(),t=0;t<e.length;t++){var i=e[t];this.idToNodeMap.set(i.id,i)}var n=mt(function e(t){for(var i,n=t.getChild().getNodes(),r=0,s=0;s<n.length;s++)null==(i=n[s]).getChild()?a.fixedNodeSet.has(i.id)&&(r+=100):r+=e(i);return r},"calculateCompoundWeight");if(this.constraints.fixedNodeConstraint){this.constraints.fixedNodeConstraint.forEach(function(e){a.fixedNodeSet.add(e.nodeId)});for(var r,e=this.graphManager.getAllNodes(),t=0;t<e.length;t++)null!=(i=e[t]).getChild()&&0<(r=n(i))&&(i.fixedNodeWeight=r)}if(this.constraints.relativePlacementConstraint){var s,o,l,c,h=new Map,u=new Map;if(this.dummyToNodeForVerticalAlignment=new Map,this.dummyToNodeForHorizontalAlignment=new Map,this.fixedNodesOnHorizontal=new Set,this.fixedNodesOnVertical=new Set,this.fixedNodeSet.forEach(function(e){a.fixedNodesOnHorizontal.add(e),a.fixedNodesOnVertical.add(e)}),this.constraints.alignmentConstraint){if(this.constraints.alignmentConstraint.vertical)for(var d=this.constraints.alignmentConstraint.vertical,t=0;t<d.length;t++)this.dummyToNodeForVerticalAlignment.set("dummy"+t,[]),d[t].forEach(function(e){h.set(e,"dummy"+t),a.dummyToNodeForVerticalAlignment.get("dummy"+t).push(e),a.fixedNodeSet.has(e)&&a.fixedNodesOnHorizontal.add("dummy"+t)});if(this.constraints.alignmentConstraint.horizontal)for(var p=this.constraints.alignmentConstraint.horizontal,t=0;t<p.length;t++)this.dummyToNodeForHorizontalAlignment.set("dummy"+t,[]),p[t].forEach(function(e){u.set(e,"dummy"+t),a.dummyToNodeForHorizontalAlignment.get("dummy"+t).push(e),a.fixedNodeSet.has(e)&&a.fixedNodesOnVertical.add("dummy"+t)})}f.RELAX_MOVEMENT_ON_CONSTRAINTS?(this.shuffle=function(e){for(var t,i,n=e.length-1;n>=2*e.length/3;n--)t=Math.floor(Math.random()*(n+1)),i=e[n],e[n]=e[t],e[t]=i;return e},this.nodesInRelativeHorizontal=[],this.nodesInRelativeVertical=[],this.nodeToRelativeConstraintMapHorizontal=new Map,this.nodeToRelativeConstraintMapVertical=new Map,this.nodeToTempPositionMapHorizontal=new Map,this.nodeToTempPositionMapVertical=new Map,this.constraints.relativePlacementConstraint.forEach(function(e){var t,i;e.left?(i=h.has(e.left)?h.get(e.left):e.left,t=h.has(e.right)?h.get(e.right):e.right,a.nodesInRelativeHorizontal.includes(i)||(a.nodesInRelativeHorizontal.push(i),a.nodeToRelativeConstraintMapHorizontal.set(i,[]),a.dummyToNodeForVerticalAlignment.has(i)?a.nodeToTempPositionMapHorizontal.set(i,a.idToNodeMap.get(a.dummyToNodeForVerticalAlignment.get(i)[0]).getCenterX()):a.nodeToTempPositionMapHorizontal.set(i,a.idToNodeMap.get(i).getCenterX())),a.nodesInRelativeHorizontal.includes(t)||(a.nodesInRelativeHorizontal.push(t),a.nodeToRelativeConstraintMapHorizontal.set(t,[]),a.dummyToNodeForVerticalAlignment.has(t)?a.nodeToTempPositionMapHorizontal.set(t,a.idToNodeMap.get(a.dummyToNodeForVerticalAlignment.get(t)[0]).getCenterX()):a.nodeToTempPositionMapHorizontal.set(t,a.idToNodeMap.get(t).getCenterX())),a.nodeToRelativeConstraintMapHorizontal.get(i).push({right:t,gap:e.gap}),a.nodeToRelativeConstraintMapHorizontal.get(t).push({left:i,gap:e.gap})):(t=u.has(e.top)?u.get(e.top):e.top,i=u.has(e.bottom)?u.get(e.bottom):e.bottom,a.nodesInRelativeVertical.includes(t)||(a.nodesInRelativeVertical.push(t),a.nodeToRelativeConstraintMapVertical.set(t,[]),a.dummyToNodeForHorizontalAlignment.has(t)?a.nodeToTempPositionMapVertical.set(t,a.idToNodeMap.get(a.dummyToNodeForHorizontalAlignment.get(t)[0]).getCenterY()):a.nodeToTempPositionMapVertical.set(t,a.idToNodeMap.get(t).getCenterY())),a.nodesInRelativeVertical.includes(i)||(a.nodesInRelativeVertical.push(i),a.nodeToRelativeConstraintMapVertical.set(i,[]),a.dummyToNodeForHorizontalAlignment.has(i)?a.nodeToTempPositionMapVertical.set(i,a.idToNodeMap.get(a.dummyToNodeForHorizontalAlignment.get(i)[0]).getCenterY()):a.nodeToTempPositionMapVertical.set(i,a.idToNodeMap.get(i).getCenterY())),a.nodeToRelativeConstraintMapVertical.get(t).push({bottom:i,gap:e.gap}),a.nodeToRelativeConstraintMapVertical.get(i).push({top:t,gap:e.gap}))})):(s=new Map,o=new Map,this.constraints.relativePlacementConstraint.forEach(function(e){var t,i;e.left?(i=h.has(e.left)?h.get(e.left):e.left,t=h.has(e.right)?h.get(e.right):e.right,s.has(i)?s.get(i).push(t):s.set(i,[t]),s.has(t)?s.get(t).push(i):s.set(t,[i])):(t=u.has(e.top)?u.get(e.top):e.top,i=u.has(e.bottom)?u.get(e.bottom):e.bottom,o.has(t)?o.get(t).push(i):o.set(t,[i]),o.has(i)?o.get(i).push(t):o.set(i,[t]))}),c=(l=mt(function(n,r){var s=[],a=[],o=new w,l=new Set,c=0;return n.forEach(function(e,t){if(!l.has(t)){for(s[c]=[],a[c]=!1,o.push(i=t),l.add(i),s[c].push(i);0!=o.length;){var i=o.shift();r.has(i)&&(a[c]=!0),n.get(i).forEach(function(e){l.has(e)||(o.push(e),l.add(e),s[c].push(e))})}c++}}),{components:s,isFixed:a}},"constructComponents"))(s,a.fixedNodesOnHorizontal),this.componentsOnHorizontal=c.components,this.fixedComponentsOnHorizontal=c.isFixed,c=l(o,a.fixedNodesOnVertical),this.componentsOnVertical=c.components,this.fixedComponentsOnVertical=c.isFixed)}},k.prototype.updateDisplacements=function(){var r=this;if(this.constraints.fixedNodeConstraint&&this.constraints.fixedNodeConstraint.forEach(function(e){e=r.idToNodeMap.get(e.nodeId);e.displacementX=0,e.displacementY=0}),this.constraints.alignmentConstraint){if(this.constraints.alignmentConstraint.vertical)for(var e=this.constraints.alignmentConstraint.vertical,t=0;t<e.length;t++){for(var i=0,n=0;n<e[t].length;n++){if(this.fixedNodeSet.has(e[t][n])){i=0;break}i+=this.idToNodeMap.get(e[t][n]).displacementX}for(var s=i/e[t].length,n=0;n<e[t].length;n++)this.idToNodeMap.get(e[t][n]).displacementX=s}if(this.constraints.alignmentConstraint.horizontal)for(var a=this.constraints.alignmentConstraint.horizontal,t=0;t<a.length;t++){for(var o=0,n=0;n<a[t].length;n++){if(this.fixedNodeSet.has(a[t][n])){o=0;break}o+=this.idToNodeMap.get(a[t][n]).displacementY}for(var l=o/a[t].length,n=0;n<a[t].length;n++)this.idToNodeMap.get(a[t][n]).displacementY=l}}if(this.constraints.relativePlacementConstraint)if(f.RELAX_MOVEMENT_ON_CONSTRAINTS)this.totalIterations%10==0&&(this.shuffle(this.nodesInRelativeHorizontal),this.shuffle(this.nodesInRelativeVertical)),this.nodesInRelativeHorizontal.forEach(function(i){var n;r.fixedNodesOnHorizontal.has(i)||(n=0,n=(r.dummyToNodeForVerticalAlignment.has(i)?r.idToNodeMap.get(r.dummyToNodeForVerticalAlignment.get(i)[0]):r.idToNodeMap.get(i)).displacementX,r.nodeToRelativeConstraintMapHorizontal.get(i).forEach(function(e){var t;e.right?(t=r.nodeToTempPositionMapHorizontal.get(e.right)-r.nodeToTempPositionMapHorizontal.get(i)-n)<e.gap&&(n-=e.gap-t):(t=r.nodeToTempPositionMapHorizontal.get(i)-r.nodeToTempPositionMapHorizontal.get(e.left)+n)<e.gap&&(n+=e.gap-t)}),r.nodeToTempPositionMapHorizontal.set(i,r.nodeToTempPositionMapHorizontal.get(i)+n),r.dummyToNodeForVerticalAlignment.has(i)?r.dummyToNodeForVerticalAlignment.get(i).forEach(function(e){r.idToNodeMap.get(e).displacementX=n}):r.idToNodeMap.get(i).displacementX=n)}),this.nodesInRelativeVertical.forEach(function(i){var n;r.fixedNodesOnHorizontal.has(i)||(n=0,n=(r.dummyToNodeForHorizontalAlignment.has(i)?r.idToNodeMap.get(r.dummyToNodeForHorizontalAlignment.get(i)[0]):r.idToNodeMap.get(i)).displacementY,r.nodeToRelativeConstraintMapVertical.get(i).forEach(function(e){var t;e.bottom?(t=r.nodeToTempPositionMapVertical.get(e.bottom)-r.nodeToTempPositionMapVertical.get(i)-n)<e.gap&&(n-=e.gap-t):(t=r.nodeToTempPositionMapVertical.get(i)-r.nodeToTempPositionMapVertical.get(e.top)+n)<e.gap&&(n+=e.gap-t)}),r.nodeToTempPositionMapVertical.set(i,r.nodeToTempPositionMapVertical.get(i)+n),r.dummyToNodeForHorizontalAlignment.has(i)?r.dummyToNodeForHorizontalAlignment.get(i).forEach(function(e){r.idToNodeMap.get(e).displacementY=n}):r.idToNodeMap.get(i).displacementY=n)});else{for(t=0;t<this.componentsOnHorizontal.length;t++){var c=this.componentsOnHorizontal[t];if(this.fixedComponentsOnHorizontal[t])for(n=0;n<c.length;n++)this.dummyToNodeForVerticalAlignment.has(c[n])?this.dummyToNodeForVerticalAlignment.get(c[n]).forEach(function(e){r.idToNodeMap.get(e).displacementX=0}):this.idToNodeMap.get(c[n]).displacementX=0;else{for(var h=0,u=0,n=0;n<c.length;n++)this.dummyToNodeForVerticalAlignment.has(c[n])?(h+=(p=this.dummyToNodeForVerticalAlignment.get(c[n])).length*this.idToNodeMap.get(p[0]).displacementX,u+=p.length):(h+=this.idToNodeMap.get(c[n]).displacementX,u++);for(var d=h/u,n=0;n<c.length;n++)this.dummyToNodeForVerticalAlignment.has(c[n])?this.dummyToNodeForVerticalAlignment.get(c[n]).forEach(function(e){r.idToNodeMap.get(e).displacementX=d}):this.idToNodeMap.get(c[n]).displacementX=d}}for(t=0;t<this.componentsOnVertical.length;t++){c=this.componentsOnVertical[t];if(this.fixedComponentsOnVertical[t])for(n=0;n<c.length;n++)this.dummyToNodeForHorizontalAlignment.has(c[n])?this.dummyToNodeForHorizontalAlignment.get(c[n]).forEach(function(e){r.idToNodeMap.get(e).displacementY=0}):this.idToNodeMap.get(c[n]).displacementY=0;else{for(var p,h=0,u=0,n=0;n<c.length;n++)this.dummyToNodeForHorizontalAlignment.has(c[n])?(h+=(p=this.dummyToNodeForHorizontalAlignment.get(c[n])).length*this.idToNodeMap.get(p[0]).displacementY,u+=p.length):(h+=this.idToNodeMap.get(c[n]).displacementY,u++);for(d=h/u,n=0;n<c.length;n++)this.dummyToNodeForHorizontalAlignment.has(c[n])?this.dummyToNodeForHorizontalAlignment.get(c[n]).forEach(function(e){r.idToNodeMap.get(e).displacementY=d}):this.idToNodeMap.get(c[n]).displacementY=d}}}},k.prototype.calculateNodesToApplyGravitationTo=function(){for(var e,t=[],i=this.graphManager.getGraphs(),n=i.length,r=0;r<n;r++)(e=i[r]).updateConnected(),e.isConnected||(t=t.concat(e.getNodes()));return t},k.prototype.createBendpoints=function(){for(var e=(e=[]).concat(this.graphManager.getAllEdges()),t=new Set,i=0;i<e.length;i++){var n=e[i];if(!t.has(n)){var r=n.getSource(),s=n.getTarget();if(r==s)n.getBendpoints().push(new p),n.getBendpoints().push(new p),this.createDummyNodesForBendpoints(n),t.add(n);else{var a=[];if(a=(a=a.concat(r.getEdgeListToNode(s))).concat(s.getEdgeListToNode(r)),!t.has(a[0])){if(1<a.length)for(var o=0;o<a.length;o++){var l=a[o];l.getBendpoints().push(new p),this.createDummyNodesForBendpoints(l)}a.forEach(function(e){t.add(e)})}}}if(t.size==e.length)break}},k.prototype.positionNodesRadially=function(e){for(var t=new d(0,0),i=Math.ceil(Math.sqrt(e.length)),n=0,r=0,s=0,a=new p(0,0),o=0;o<e.length;o++){o%i==0&&(r=n,(s=0)!=o&&(r+=f.DEFAULT_COMPONENT_SEPERATION),n=0);var l=e[o],c=g.findCenterOfTree(l);t.x=s,t.y=r,(a=k.radialLayout(l,c,t)).y>n&&(n=Math.floor(a.y)),s=Math.floor(a.x+f.DEFAULT_COMPONENT_SEPERATION)}this.transform(new p(u.WORLD_CENTER_X-a.x/2,u.WORLD_CENTER_Y-a.y/2))},k.radialLayout=function(e,t,i){var n=Math.max(this.maxDiagonalInTree(e),f.DEFAULT_RADIAL_SEPARATION),t=(k.branchRadialLayout(t,null,0,359,0,n),v.calculateBounds(e)),r=new x;r.setDeviceOrgX(t.getMinX()),r.setDeviceOrgY(t.getMinY()),r.setWorldOrgX(i.x),r.setWorldOrgY(i.y);for(var s=0;s<e.length;s++)e[s].transform(r);n=new p(t.getMaxX(),t.getMaxY());return r.inverseTransformPoint(n)},k.branchRadialLayout=function(e,t,i,n,r,s){var a=(n-i+1)/2;a<0&&(a+=180);var a=(a+i)%360*b.TWO_PI/360,o=(Math.cos(a),r*Math.cos(a)),a=r*Math.sin(a),l=(e.setCenter(o,a),[]),c=(l=l.concat(e.getEdges())).length;null!=t&&c--;for(var h=0,u=l.length,d=e.getEdgesBetween(t);1<d.length;){var p=d[0],p=(d.splice(0,1),l.indexOf(p));0<=p&&l.splice(p,1),u--,c--}for(var o=null!=t?(l.indexOf(d[0])+1)%u:0,g=Math.abs(n-i)/c,f=o;h!=c;f=++f%u){var m=l[f].getOtherEnd(e);m!=t&&(k.branchRadialLayout(m,e,m=(i+h*g)%360,(m+g)%360,r+s,s),h++)}},k.maxDiagonalInTree=function(e){for(var t=y.MIN_VALUE,i=0;i<e.length;i++){var n=e[i].getDiagonal();t<n&&(t=n)}return t},k.prototype.calcRepulsionRange=function(){return 2*(this.level+1)*this.idealEdgeLength},k.prototype.groupZeroDegreeMembers=function(){var l=this,c={};this.memberGroups={},this.idToDummyNode={};for(var e=[],t=this.graphManager.getAllNodes(),i=0;i<t.length;i++){var n=(r=t[i]).getParent();0!==this.getNodeDegreeWithChildren(r)||null!=n.id&&this.getToBeTiled(n)||e.push(r)}for(i=0;i<e.length;i++){var r,s=(r=e[i]).getParent().id;"u"<typeof c[s]&&(c[s]=[]),c[s]=c[s].concat(r)}Object.keys(c).forEach(function(e){if(1<c[e].length){var t="DummyCompound_"+e,i=(l.memberGroups[t]=c[e],c[e][0].getParent()),n=new h(l.graphManager),r=(n.id=t,n.paddingLeft=i.paddingLeft||0,n.paddingRight=i.paddingRight||0,n.paddingBottom=i.paddingBottom||0,n.paddingTop=i.paddingTop||0,l.idToDummyNode[t]=n,l.getGraphManager().add(l.newGraph(),n)),s=i.getChild();s.add(n);for(var a=0;a<c[e].length;a++){var o=c[e][a];s.remove(o),r.add(o)}}})},k.prototype.clearCompounds=function(){var e={},t={};this.performDFSOnCompounds();for(var i=0;i<this.compoundOrder.length;i++)t[this.compoundOrder[i].id]=this.compoundOrder[i],e[this.compoundOrder[i].id]=[].concat(this.compoundOrder[i].getChild().getNodes()),this.graphManager.remove(this.compoundOrder[i].getChild()),this.compoundOrder[i].child=null;this.graphManager.resetAllNodes(),this.tileCompoundMembers(e,t)},k.prototype.clearZeroDegreeMembers=function(){var n=this,r=this.tiledZeroDegreePack=[];Object.keys(this.memberGroups).forEach(function(e){var t,i=n.idToDummyNode[e];r[e]=n.tileNodes(n.memberGroups[e],i.paddingLeft+i.paddingRight),i.rect.width=r[e].width,i.rect.height=r[e].height,i.setCenter(r[e].centerX,r[e].centerY),i.labelMarginLeft=0,i.labelMarginTop=0,f.NODE_DIMENSIONS_INCLUDE_LABELS&&(e=i.rect.width,t=i.rect.height,i.labelWidth&&("left"==i.labelPosHorizontal?(i.rect.x-=i.labelWidth,i.setWidth(e+i.labelWidth),i.labelMarginLeft=i.labelWidth):"center"==i.labelPosHorizontal&&i.labelWidth>e?(i.rect.x-=(i.labelWidth-e)/2,i.setWidth(i.labelWidth),i.labelMarginLeft=(i.labelWidth-e)/2):"right"==i.labelPosHorizontal&&i.setWidth(e+i.labelWidth)),i.labelHeight)&&("top"==i.labelPosVertical?(i.rect.y-=i.labelHeight,i.setHeight(t+i.labelHeight),i.labelMarginTop=i.labelHeight):"center"==i.labelPosVertical&&i.labelHeight>t?(i.rect.y-=(i.labelHeight-t)/2,i.setHeight(i.labelHeight),i.labelMarginTop=(i.labelHeight-t)/2):"bottom"==i.labelPosVertical&&i.setHeight(t+i.labelHeight))})},k.prototype.repopulateCompounds=function(){for(var e=this.compoundOrder.length-1;0<=e;e--){var t=this.compoundOrder[e],i=t.id,n=t.paddingLeft,r=t.paddingTop,s=t.labelMarginLeft,a=t.labelMarginTop;this.adjustLocations(this.tiledMemberPack[i],t.rect.x,t.rect.y,n,r,s,a)}},k.prototype.repopulateZeroDegreeMembers=function(){var a=this,o=this.tiledZeroDegreePack;Object.keys(o).forEach(function(e){var t=a.idToDummyNode[e],i=t.paddingLeft,n=t.paddingTop,r=t.labelMarginLeft,s=t.labelMarginTop;a.adjustLocations(o[e],t.rect.x,t.rect.y,i,n,r,s)})},k.prototype.getToBeTiled=function(e){var t=e.id;if(null!=this.toBeTiled[t])return this.toBeTiled[t];e=e.getChild();if(null==e)return this.toBeTiled[t]=!1;for(var i=e.getNodes(),n=0;n<i.length;n++){var r=i[n];if(0<this.getNodeDegree(r))return this.toBeTiled[t]=!1;if(null==r.getChild())this.toBeTiled[r.id]=!1;else if(!this.getToBeTiled(r))return this.toBeTiled[t]=!1}return this.toBeTiled[t]=!0},k.prototype.getNodeDegree=function(e){e.id;for(var t=e.getEdges(),i=0,n=0;n<t.length;n++){var r=t[n];r.getSource().id!==r.getTarget().id&&(i+=1)}return i},k.prototype.getNodeDegreeWithChildren=function(e){var t=this.getNodeDegree(e);if(null!=e.getChild())for(var i=e.getChild().getNodes(),n=0;n<i.length;n++){var r=i[n];t+=this.getNodeDegreeWithChildren(r)}return t},k.prototype.performDFSOnCompounds=function(){this.compoundOrder=[],this.fillCompexOrderByDFS(this.graphManager.getRoot().getNodes())},k.prototype.fillCompexOrderByDFS=function(e){for(var t=0;t<e.length;t++){var i=e[t];null!=i.getChild()&&this.fillCompexOrderByDFS(i.getChild().getNodes()),this.getToBeTiled(i)&&this.compoundOrder.push(i)}},k.prototype.adjustLocations=function(e,t,i,n,r,s,a){i+=r+a;for(var o=t+=n+s,l=0;l<e.rows.length;l++){var c=e.rows[l];t=o;for(var h=0,u=0;u<c.length;u++){var d=c[u];d.rect.x=t,d.rect.y=i,t+=d.rect.width+e.horizontalPadding,d.rect.height>h&&(h=d.rect.height)}i+=h+e.verticalPadding}},k.prototype.tileCompoundMembers=function(n,r){var s=this;this.tiledMemberPack=[],Object.keys(n).forEach(function(e){var t,i=r[e];s.tiledMemberPack[e]=s.tileNodes(n[e],i.paddingLeft+i.paddingRight),i.rect.width=s.tiledMemberPack[e].width,i.rect.height=s.tiledMemberPack[e].height,i.setCenter(s.tiledMemberPack[e].centerX,s.tiledMemberPack[e].centerY),i.labelMarginLeft=0,i.labelMarginTop=0,f.NODE_DIMENSIONS_INCLUDE_LABELS&&(e=i.rect.width,t=i.rect.height,i.labelWidth&&("left"==i.labelPosHorizontal?(i.rect.x-=i.labelWidth,i.setWidth(e+i.labelWidth),i.labelMarginLeft=i.labelWidth):"center"==i.labelPosHorizontal&&i.labelWidth>e?(i.rect.x-=(i.labelWidth-e)/2,i.setWidth(i.labelWidth),i.labelMarginLeft=(i.labelWidth-e)/2):"right"==i.labelPosHorizontal&&i.setWidth(e+i.labelWidth)),i.labelHeight)&&("top"==i.labelPosVertical?(i.rect.y-=i.labelHeight,i.setHeight(t+i.labelHeight),i.labelMarginTop=i.labelHeight):"center"==i.labelPosVertical&&i.labelHeight>t?(i.rect.y-=(i.labelHeight-t)/2,i.setHeight(i.labelHeight),i.labelMarginTop=(i.labelHeight-t)/2):"bottom"==i.labelPosVertical&&i.setHeight(t+i.labelHeight))})},k.prototype.tileNodes=function(e,t){var i=this.tileNodesByFavoringDim(e,t,!0),e=this.tileNodesByFavoringDim(e,t,!1),t=this.getOrgRatio(i),t=this.getOrgRatio(e)<t?e:i;return t},k.prototype.getOrgRatio=function(e){e=e.width/e.height;return e=e<1?1/e:e},k.prototype.calcIdealRowWidth=function(e,t){var i,n=f.TILING_PADDING_VERTICAL,r=f.TILING_PADDING_HORIZONTAL,s=e.length,a=0,o=0,l=0,e=(e.forEach(function(e){a+=e.getWidth(),o+=e.getHeight(),e.getWidth()>l&&(l=e.getWidth())}),a/s),c=o/s,c=Math.pow(n-r,2)+4*(e+r)*(c+n)*s,s=(r-n+Math.sqrt(c))/(2*(e+r)),n=(t?(i=Math.ceil(s))==s&&i++:i=Math.floor(s),i*(e+r)-r);return n<l&&(n=l),n+=2*r},k.prototype.tileNodesByFavoringDim=function(e,t,i){var n=f.TILING_PADDING_VERTICAL,r=f.TILING_PADDING_HORIZONTAL,s=f.TILING_COMPARE_BY,a={rows:[],rowWidth:[],rowHeight:[],width:0,height:t,verticalPadding:n,horizontalPadding:r,centerX:0,centerY:0},o=(s&&(a.idealRowWidth=this.calcIdealRowWidth(e,i)),mt(function(e){return e.rect.width*e.rect.height},"getNodeArea")),l=mt(function(e,t){return o(t)-o(e)},"areaCompareFcn");e.sort(function(e,t){var i=l;return a.idealRowWidth?(i=s)(e.id,t.id):i(e,t)});for(var c=0,h=0,u=0;u<e.length;u++)c+=(p=e[u]).getCenterX(),h+=p.getCenterY();a.centerX=c/e.length,a.centerY=h/e.length;for(u=0;u<e.length;u++){var d,p=e[u];0==a.rows.length?this.insertNodeToRow(a,p,0,t):this.canAddHorizontal(a,p.rect.width,p.rect.height)?(d=a.rows.length-1,a.idealRowWidth||(d=this.getShortestRowIndex(a)),this.insertNodeToRow(a,p,d,t)):this.insertNodeToRow(a,p,a.rows.length,t),this.shiftToLastRow(a)}return a},k.prototype.insertNodeToRow=function(e,t,i,n){i==e.rows.length&&(e.rows.push([]),e.rowWidth.push(n),e.rowHeight.push(0));var n=e.rowWidth[i]+t.rect.width,n=(0<e.rows[i].length&&(n+=e.horizontalPadding),e.rowWidth[i]=n,e.width<n&&(e.width=n),t.rect.height),r=(0<i&&(n+=e.verticalPadding),0);n>e.rowHeight[i]&&(r=e.rowHeight[i],e.rowHeight[i]=n,r=e.rowHeight[i]-r),e.height+=r,e.rows[i].push(t)},k.prototype.getShortestRowIndex=function(e){for(var t=-1,i=Number.MAX_VALUE,n=0;n<e.rows.length;n++)e.rowWidth[n]<i&&(t=n,i=e.rowWidth[n]);return t},k.prototype.getLongestRowIndex=function(e){for(var t=-1,i=Number.MIN_VALUE,n=0;n<e.rows.length;n++)e.rowWidth[n]>i&&(t=n,i=e.rowWidth[n]);return t},k.prototype.canAddHorizontal=function(e,t,i){var n,r,s;return e.idealRowWidth?(r=e.rows.length-1,e.rowWidth[r]+t+e.horizontalPadding<=e.idealRowWidth):(r=this.getShortestRowIndex(e))<0||(s=e.rowWidth[r])+e.horizontalPadding+t<=e.width||(n=0,e.rowHeight[r]<i&&0<r&&(n=i+e.verticalPadding-e.rowHeight[r]),r=e.width-s>=t+e.horizontalPadding?(e.height+n)/(s+t+e.horizontalPadding):(e.height+n)/e.width,n=i+e.verticalPadding,(r=r<1?1/r:r)<(s=(s=e.width<t?(e.height+n)/t:(e.height+n)/e.width)<1?1/s:s))},k.prototype.shiftToLastRow=function(e){var t=this.getLongestRowIndex(e),i=e.rowWidth.length-1,n=e.rows[t],r=n[n.length-1],s=r.width+e.horizontalPadding;if(e.width-e.rowWidth[i]>s&&t!=i){n.splice(-1,1),e.rows[i].push(r),e.rowWidth[t]=e.rowWidth[t]-s,e.rowWidth[i]=e.rowWidth[i]+s,e.width=e.rowWidth[instance.getLongestRowIndex(e)];for(var a=Number.MIN_VALUE,o=0;o<n.length;o++)n[o].height>a&&(a=n[o].height);0<t&&(a+=e.verticalPadding);s=e.rowHeight[t]+e.rowHeight[i],r=(e.rowHeight[t]=a,e.rowHeight[i]<r.height+e.verticalPadding&&(e.rowHeight[i]=r.height+e.verticalPadding),e.rowHeight[t]+e.rowHeight[i]);e.height+=r-s,this.shiftToLastRow(e)}},k.prototype.tilingPreLayout=function(){f.TILE&&(this.groupZeroDegreeMembers(),this.clearCompounds(),this.clearZeroDegreeMembers())},k.prototype.tilingPostLayout=function(){f.TILE&&(this.repopulateZeroDegreeMembers(),this.repopulateCompounds())},k.prototype.reduceTrees=function(){for(var e=[],t=!0;t;){for(var i,n,r=this.graphManager.getAllNodes(),s=[],t=!1,a=0;a<r.length;a++)1!=(n=r[a]).getEdges().length||n.getEdges()[0].isInterGraph||null!=n.getChild()||(f.PURE_INCREMENTAL?(i=n.getEdges()[0].getOtherEnd(n),i=new c(n.getCenterX()-i.getCenterX(),n.getCenterY()-i.getCenterY()),s.push([n,n.getEdges()[0],n.getOwner(),i])):s.push([n,n.getEdges()[0],n.getOwner()]),t=!0);if(1==t){for(var o=[],l=0;l<s.length;l++)1==s[l][0].getEdges().length&&(o.push(s[l]),s[l][0].getOwner().remove(s[l][0]));e.push(o),this.graphManager.resetAllNodes(),this.graphManager.resetAllEdges()}}this.prunedNodesAll=e},k.prototype.growTree=function(e){for(var t,i=e[e.length-1],n=0;n<i.length;n++)t=i[n],this.findPlaceforPrunedNode(t),t[2].add(t[0]),t[2].add(t[1],t[1].source,t[1].target);e.splice(e.length-1,1),this.graphManager.resetAllNodes(),this.graphManager.resetAllEdges()},k.prototype.findPlaceforPrunedNode=function(e){var t=e[0],i=t==e[1].source?e[1].target:e[1].source;if(f.PURE_INCREMENTAL)t.setCenter(i.getCenterX()+e[3].getWidth(),i.getCenterY()+e[3].getHeight());else{var n=i.startX,r=i.finishX,s=i.startY,a=i.finishY,o=[0,0,0,0];if(0<s)for(var l=n;l<=r;l++)o[0]+=this.grid[l][s-1].length+this.grid[l][s].length-1;if(r<this.grid.length-1)for(l=s;l<=a;l++)o[1]+=this.grid[r+1][l].length+this.grid[r][l].length-1;if(a<this.grid[0].length-1)for(l=n;l<=r;l++)o[2]+=this.grid[l][a+1].length+this.grid[l][a].length-1;if(0<n)for(l=s;l<=a;l++)o[3]+=this.grid[n-1][l].length+this.grid[n][l].length-1;for(var c,h,u,d,p=y.MAX_VALUE,g=0;g<o.length;g++)o[g]<p?(p=o[g],c=1,h=g):o[g]==p&&c++;3==c&&0==p?0==o[0]&&0==o[1]&&0==o[2]?u=1:0==o[0]&&0==o[1]&&0==o[3]?u=0:0==o[0]&&0==o[2]&&0==o[3]?u=3:0==o[1]&&0==o[2]&&0==o[3]&&(u=2):u=2==c&&0==p?(d=Math.floor(2*Math.random()),0==o[0]&&0==o[1]?0==d?0:1:0==o[0]&&0==o[2]?0==d?0:2:0==o[0]&&0==o[3]?0==d?0:3:0==o[1]&&0==o[2]?0==d?1:2:0==o[1]&&0==o[3]?0==d?1:3:0==d?2:3):4==c&&0==p?d=Math.floor(4*Math.random()):h,0==u?t.setCenter(i.getCenterX(),i.getCenterY()-i.getHeight()/2-m.DEFAULT_EDGE_LENGTH-t.getHeight()/2):1==u?t.setCenter(i.getCenterX()+i.getWidth()/2+m.DEFAULT_EDGE_LENGTH+t.getWidth()/2,i.getCenterY()):2==u?t.setCenter(i.getCenterX(),i.getCenterY()+i.getHeight()/2+m.DEFAULT_EDGE_LENGTH+t.getHeight()/2):t.setCenter(i.getCenterX()-i.getWidth()/2-m.DEFAULT_EDGE_LENGTH-t.getWidth()/2,i.getCenterY())}},e.exports=k},991:(e,t,i)=>{var n,r=i(551).FDLayoutNode,s=i(551).IMath;function a(e,t,i,n){r.call(this,e,t,i,n)}for(n in mt(a,"CoSENode"),a.prototype=Object.create(r.prototype),r)a[n]=r[n];a.prototype.calculateDisplacement=function(){var e=this.graphManager.getLayout();null!=this.getChild()&&this.fixedNodeWeight?(this.displacementX+=e.coolingFactor*(this.springForceX+this.repulsionForceX+this.gravitationForceX)/this.fixedNodeWeight,this.displacementY+=e.coolingFactor*(this.springForceY+this.repulsionForceY+this.gravitationForceY)/this.fixedNodeWeight):(this.displacementX+=e.coolingFactor*(this.springForceX+this.repulsionForceX+this.gravitationForceX)/this.noOfChildren,this.displacementY+=e.coolingFactor*(this.springForceY+this.repulsionForceY+this.gravitationForceY)/this.noOfChildren),Math.abs(this.displacementX)>e.coolingFactor*e.maxNodeDisplacement&&(this.displacementX=e.coolingFactor*e.maxNodeDisplacement*s.sign(this.displacementX)),Math.abs(this.displacementY)>e.coolingFactor*e.maxNodeDisplacement&&(this.displacementY=e.coolingFactor*e.maxNodeDisplacement*s.sign(this.displacementY)),this.child&&0<this.child.getNodes().length&&this.propogateDisplacementToChildren(this.displacementX,this.displacementY)},a.prototype.propogateDisplacementToChildren=function(e,t){for(var i,n=this.getChild().getNodes(),r=0;r<n.length;r++)null==(i=n[r]).getChild()?(i.displacementX+=e,i.displacementY+=t):i.propogateDisplacementToChildren(e,t)},a.prototype.move=function(){var e=this.graphManager.getLayout();null!=this.child&&0!=this.child.getNodes().length||(this.moveBy(this.displacementX,this.displacementY),e.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.setPred1=function(e){this.pred1=e},a.prototype.getPred1=function(){return pred1},a.prototype.getPred2=function(){return pred2},a.prototype.setNext=function(e){this.next=e},a.prototype.getNext=function(){return next},a.prototype.setProcessed=function(e){this.processed=e},a.prototype.isProcessed=function(){return processed},e.exports=a},902:(e,t,i)=>{function Oe(e){if(Array.isArray(e)){for(var t=0,i=Array(e.length);t<e.length;t++)i[t]=e[t];return i}return Array.from(e)}mt(Oe,"_toConsumableArray");var Pe=i(806),Be=i(551).LinkedList,Fe=i(551).Matrix,je=i(551).SVD;function n(){}mt(n,"ConstraintHandler"),n.handleConstraints=function(e){var t={};t.fixedNodeConstraint=e.constraints.fixedNodeConstraint,t.alignmentConstraint=e.constraints.alignmentConstraint,t.relativePlacementConstraint=e.constraints.relativePlacementConstraint;for(var i=new Map,k=new Map,T=[],S=[],n=e.getAllNodes(),O=0,r=0;r<n.length;r++){var s=n[r];null==s.getChild()&&(k.set(s.id,O++),T.push(s.getCenterX()),S.push(s.getCenterY()),i.set(s.id,s))}t.relativePlacementConstraint&&t.relativePlacementConstraint.forEach(function(e){e.gap||0==e.gap||(e.left?e.gap=Pe.DEFAULT_EDGE_LENGTH+i.get(e.left).getWidth()/2+i.get(e.right).getWidth()/2:e.gap=Pe.DEFAULT_EDGE_LENGTH+i.get(e.top).getHeight()/2+i.get(e.bottom).getHeight()/2)});var a,P=mt(function(e,t){return{x:e.x-t.x,y:e.y-t.y}},"calculatePositionDiff"),o=mt(function(e){var t=0,i=0;return e.forEach(function(e){t+=T[k.get(e)],i+=S[k.get(e)]}),{x:t/e.size,y:i/e.size}},"calculateAvgPosition"),e=mt(function(e,v,h,x,t){function r(t,e){var i=new Set(t),n=!0,t=!1,r=void 0;try{for(var s,a=e[Symbol.iterator]();!(n=(s=a.next()).done);n=!0){var o=s.value;i.add(o)}}catch(e){t=!0,r=e}finally{try{!n&&a.return&&a.return()}finally{if(t)throw r}}return i}mt(r,"setUnion");var s=new Map,w=(e.forEach(function(e,t){s.set(t,0)}),e.forEach(function(e,t){e.forEach(function(e){s.set(e.id,s.get(e.id)+1)})}),new Map),a=new Map,o=new Be;s.forEach(function(e,t){0==e?(o.push(t),h||("horizontal"==v?w.set(t,k.has(t)?T[k.get(t)]:x.get(t)):w.set(t,k.has(t)?S[k.get(t)]:x.get(t)))):w.set(t,Number.NEGATIVE_INFINITY),h&&a.set(t,new Set([t]))}),h&&t.forEach(function(e){var t,i,n=[];e.forEach(function(e){h.has(e)&&n.push(e)}),0<n.length?(t=0,n.forEach(function(e){"horizontal"==v?w.set(e,k.has(e)?T[k.get(e)]:x.get(e)):w.set(e,k.has(e)?S[k.get(e)]:x.get(e)),t+=w.get(e)}),t/=n.length,e.forEach(function(e){h.has(e)||w.set(e,t)})):(i=0,e.forEach(function(e){i+="horizontal"==v?k.has(e)?T[k.get(e)]:x.get(e):k.has(e)?S[k.get(e)]:x.get(e)}),i/=e.length,e.forEach(function(e){w.set(e,i)}))});for(var u,d,i=mt(function(){var n=o.shift();e.get(n).forEach(function(e){var t,i;w.get(e.id)<w.get(n)+e.gap&&(h&&h.has(e.id)?(i=void 0,i="horizontal"==v?k.has(e.id)?T[k.get(e.id)]:x.get(e.id):k.has(e.id)?S[k.get(e.id)]:x.get(e.id),w.set(e.id,i),i<w.get(n)+e.gap&&(t=w.get(n)+e.gap-i,a.get(n).forEach(function(e){w.set(e,w.get(e)-t)}))):w.set(e.id,w.get(n)+e.gap)),s.set(e.id,s.get(e.id)-1),0==s.get(e.id)&&o.push(e.id),h&&a.set(e.id,r(a.get(n),a.get(e.id)))})},"_loop");0!=o.length;)i();return h&&(u=new Set,e.forEach(function(e,t){0==e.length&&u.add(t)}),d=[],a.forEach(function(i,t){if(u.has(t)){var n,r,e=!1,s=!0,t=!1,a=void 0;try{for(var o,l=i[Symbol.iterator]();!(s=(o=l.next()).done);s=!0){var c=o.value;h.has(c)&&(e=!0)}}catch(e){t=!0,a=e}finally{try{!s&&l.return&&l.return()}finally{if(t)throw a}}e||(n=!1,r=void 0,d.forEach(function(e,t){e.has([].concat(Oe(i))[0])&&(n=!0,r=t)}),n?i.forEach(function(e){d[r].add(e)}):d.push(new Set(i)))}}),d.forEach(function(e,t){var i=Number.POSITIVE_INFINITY,n=Number.POSITIVE_INFINITY,r=Number.NEGATIVE_INFINITY,s=Number.NEGATIVE_INFINITY,a=!0,o=!1,l=void 0;try{for(var c,h=e[Symbol.iterator]();!(a=(c=h.next()).done);a=!0){var u=c.value,d=void 0,d="horizontal"==v?k.has(u)?T[k.get(u)]:x.get(u):k.has(u)?S[k.get(u)]:x.get(u),p=w.get(u);d<i&&(i=d),r<d&&(r=d),p<n&&(n=p),s<p&&(s=p)}}catch(e){o=!0,l=e}finally{try{!a&&h.return&&h.return()}finally{if(o)throw l}}var g=(i+r)/2-(n+s)/2,f=!0,o=!1,l=void 0;try{for(var m,y=e[Symbol.iterator]();!(f=(m=y.next()).done);f=!0){var b=m.value;w.set(b,w.get(b)+g)}}catch(e){o=!0,l=e}finally{try{!f&&y.return&&y.return()}finally{if(o)throw l}}})),w},"findAppropriatePositionForRelativePlacement"),l=mt(function(e){var t=0,i=0,n=0,r=0;if(e.forEach(function(e){e.left?0<=T[k.get(e.left)]-T[k.get(e.right)]?t++:i++:0<=S[k.get(e.top)]-S[k.get(e.bottom)]?n++:r++}),i<t&&r<n)for(var s=0;s<k.size;s++)T[s]=-1*T[s],S[s]=-1*S[s];else if(i<t)for(var a=0;a<k.size;a++)T[a]=-1*T[a];else if(r<n)for(var o=0;o<k.size;o++)S[o]=-1*S[o]},"applyReflectionForRelativePlacement"),B=mt(function(n){var r=[],s=new Be,a=new Set,o=0;return n.forEach(function(e,t){if(!a.has(t)){for(r[o]=[],s.push(i=t),a.add(i),r[o].push(i);0!=s.length;){var i=s.shift();n.get(i).forEach(function(e){a.has(e.id)||(s.push(e.id),a.add(e.id),r[o].push(e.id))})}o++}}),r},"findComponents"),F=mt(function(e){var i=new Map;return e.forEach(function(e,t){i.set(t,[])}),e.forEach(function(e,t){e.forEach(function(e){i.get(t).push(e),i.get(e.id).push({id:t,gap:e.gap,direction:e.direction})})}),i},"dagToUndirected"),j=mt(function(e){var i=new Map;return e.forEach(function(e,t){i.set(t,[])}),e.forEach(function(e,t){e.forEach(function(e){i.get(e.id).push({id:t,gap:e.gap,direction:e.direction})})}),i},"dagToReversed"),c=[],h=[],u=!1,d=!1,p=new Set,g=new Map,f=new Map,m=[];if(t.fixedNodeConstraint&&t.fixedNodeConstraint.forEach(function(e){p.add(e.nodeId)}),t.relativePlacementConstraint&&(t.relativePlacementConstraint.forEach(function(e){e.left?(g.has(e.left)?g.get(e.left).push({id:e.right,gap:e.gap,direction:"horizontal"}):g.set(e.left,[{id:e.right,gap:e.gap,direction:"horizontal"}]),g.has(e.right)||g.set(e.right,[])):(g.has(e.top)?g.get(e.top).push({id:e.bottom,gap:e.gap,direction:"vertical"}):g.set(e.top,[{id:e.bottom,gap:e.gap,direction:"vertical"}]),g.has(e.bottom)||g.set(e.bottom,[]))}),f=F(g),m=B(f)),Pe.TRANSFORM_ON_CONSTRAINT_HANDLING){if(t.fixedNodeConstraint&&1<t.fixedNodeConstraint.length)t.fixedNodeConstraint.forEach(function(e,t){c[t]=[e.position.x,e.position.y],h[t]=[T[k.get(e.nodeId)],S[k.get(e.nodeId)]]}),u=!0;else if(t.alignmentConstraint){var y=0;if(t.alignmentConstraint.vertical){for(var z=t.alignmentConstraint.vertical,H=mt(function(e){var t=new Set,i=(z[e].forEach(function(e){t.add(e)}),new Set([].concat(Oe(t)).filter(function(e){return p.has(e)}))),n=void 0,n=0<i.size?T[k.get(i.values().next().value)]:o(t).x;z[e].forEach(function(e){c[y]=[n,S[k.get(e)]],h[y]=[T[k.get(e)],S[k.get(e)]],y++})},"_loop2"),U=0;U<z.length;U++)H(U);u=!0}if(t.alignmentConstraint.horizontal){for(var q=t.alignmentConstraint.horizontal,W=mt(function(e){var t=new Set,i=(q[e].forEach(function(e){t.add(e)}),new Set([].concat(Oe(t)).filter(function(e){return p.has(e)}))),n=void 0,n=0<i.size?T[k.get(i.values().next().value)]:o(t).y;q[e].forEach(function(e){c[y]=[T[k.get(e)],n],h[y]=[T[k.get(e)],S[k.get(e)]],y++})},"_loop3"),V=0;V<q.length;V++)W(V);u=!0}t.relativePlacementConstraint&&(d=!0)}else if(t.relativePlacementConstraint){for(var b,v,x,G,Y,X=0,K=0,w=0;w<m.length;w++)m[w].length>X&&(X=m[w].length,K=w);X<f.size/2?(l(t.relativePlacementConstraint),d=u=!1):(b=new Map,v=new Map,x=[],m[K].forEach(function(t){g.get(t).forEach(function(e){"horizontal"==e.direction?(b.has(t)?b.get(t).push(e):b.set(t,[e]),b.has(e.id)||b.set(e.id,[]),x.push({left:t,right:e.id})):(v.has(t)?v.get(t).push(e):v.set(t,[e]),v.has(e.id)||v.set(e.id,[]),x.push({top:t,bottom:e.id}))})}),l(x),d=!1,G=e(b,"horizontal"),Y=e(v,"vertical"),m[K].forEach(function(e,t){h[t]=[T[k.get(e)],S[k.get(e)]],c[t]=[],G.has(e)?c[t][0]=G.get(e):c[t][0]=T[k.get(e)],Y.has(e)?c[t][1]=Y.get(e):c[t][1]=S[k.get(e)]}),u=!0)}if(u){for(var _=Fe.transpose(c),Z=Fe.transpose(h),C=0;C<_.length;C++)_[C]=Fe.multGamma(_[C]),Z[C]=Fe.multGamma(Z[C]);for(var f=Fe.multMat(_,Fe.transpose(Z)),u=je.svd(f),A=Fe.multMat(u.V,Fe.transpose(u.U)),E=0;E<k.size;E++){var Q=[T[E],S[E]],J=[A[0][0],A[1][0]],ee=[A[0][1],A[1][1]];T[E]=Fe.dotProduct(Q,J),S[E]=Fe.dotProduct(Q,ee)}d&&l(t.relativePlacementConstraint)}}if(Pe.ENFORCE_CONSTRAINTS){if(t.fixedNodeConstraint&&0<t.fixedNodeConstraint.length&&(a={x:0,y:0},t.fixedNodeConstraint.forEach(function(e,t){var i={x:T[k.get(e.nodeId)],y:S[k.get(e.nodeId)]},e=e.position,e=P(e,i);a.x+=e.x,a.y+=e.y}),a.x/=t.fixedNodeConstraint.length,a.y/=t.fixedNodeConstraint.length,T.forEach(function(e,t){T[t]+=a.x}),S.forEach(function(e,t){S[t]+=a.y}),t.fixedNodeConstraint.forEach(function(e){T[k.get(e.nodeId)]=e.position.x,S[k.get(e.nodeId)]=e.position.y})),t.alignmentConstraint){if(t.alignmentConstraint.vertical)for(var te=t.alignmentConstraint.vertical,ie=mt(function(e){var t=new Set,e=(te[e].forEach(function(e){t.add(e)}),new Set([].concat(Oe(t)).filter(function(e){return p.has(e)}))),i=void 0,i=0<e.size?T[k.get(e.values().next().value)]:o(t).x;t.forEach(function(e){p.has(e)||(T[k.get(e)]=i)})},"_loop4"),ne=0;ne<te.length;ne++)ie(ne);if(t.alignmentConstraint.horizontal)for(var re=t.alignmentConstraint.horizontal,se=mt(function(e){var t=new Set,e=(re[e].forEach(function(e){t.add(e)}),new Set([].concat(Oe(t)).filter(function(e){return p.has(e)}))),i=void 0,i=0<e.size?S[k.get(e.values().next().value)]:o(t).y;t.forEach(function(e){p.has(e)||(S[k.get(e)]=i)})},"_loop5"),ae=0;ae<re.length;ae++)se(ae)}if(t.relativePlacementConstraint){var $=new Map,L=new Map,R=new Map,M=new Map,oe=new Map,le=new Map,ce=new Set,he=new Set;if(p.forEach(function(e){ce.add(e),he.add(e)}),t.alignmentConstraint){if(t.alignmentConstraint.vertical)for(var ue=t.alignmentConstraint.vertical,de=mt(function(t){R.set("dummy"+t,[]),ue[t].forEach(function(e){$.set(e,"dummy"+t),R.get("dummy"+t).push(e),p.has(e)&&ce.add("dummy"+t)}),oe.set("dummy"+t,T[k.get(ue[t][0])])},"_loop6"),pe=0;pe<ue.length;pe++)de(pe);if(t.alignmentConstraint.horizontal)for(var ge=t.alignmentConstraint.horizontal,fe=mt(function(t){M.set("dummy"+t,[]),ge[t].forEach(function(e){L.set(e,"dummy"+t),M.get("dummy"+t).push(e),p.has(e)&&he.add("dummy"+t)}),le.set("dummy"+t,S[k.get(ge[t][0])])},"_loop7"),me=0;me<ge.length;me++)fe(me)}var I=new Map,N=new Map,ye=mt(function(n){g.get(n).forEach(function(e){var t=void 0,i=void 0;"horizontal"==e.direction?(t=$.get(n)?$.get(n):n,i=$.get(e.id)?{id:$.get(e.id),gap:e.gap,direction:e.direction}:e,I.has(t)?I.get(t).push(i):I.set(t,[i]),I.has(i.id)||I.set(i.id,[])):(t=L.get(n)?L.get(n):n,i=L.get(e.id)?{id:L.get(e.id),gap:e.gap,direction:e.direction}:e,N.has(t)?N.get(t).push(i):N.set(t,[i]),N.has(i.id)||N.set(i.id,[]))})},"_loop8"),be=!0,f=!1,u=void 0;try{for(var ve,xe=g.keys()[Symbol.iterator]();!(be=(ve=xe.next()).done);be=!0)ye(ve.value)}catch(e){f=!0,u=e}finally{try{!be&&xe.return&&xe.return()}finally{if(f)throw u}}var f=F(I),u=F(N),f=B(f),u=B(u),we=j(I),ke=j(N),Te=[],Se=[],_e=(f.forEach(function(e,t){Te[t]=[],e.forEach(function(e){0==we.get(e).length&&Te[t].push(e)})}),u.forEach(function(e,t){Se[t]=[],e.forEach(function(e){0==ke.get(e).length&&Se[t].push(e)})}),e(I,"horizontal",ce,oe,Te)),Ce=e(N,"vertical",he,le,Se),Ae=mt(function(t){R.get(t)?R.get(t).forEach(function(e){T[k.get(e)]=_e.get(t)}):T[k.get(t)]=_e.get(t)},"_loop9"),Ee=!0,f=!1,u=void 0;try{for(var $e,Le=_e.keys()[Symbol.iterator]();!(Ee=($e=Le.next()).done);Ee=!0)Ae($e.value)}catch(e){f=!0,u=e}finally{try{!Ee&&Le.return&&Le.return()}finally{if(f)throw u}}var Re=mt(function(t){M.get(t)?M.get(t).forEach(function(e){S[k.get(e)]=Ce.get(t)}):S[k.get(t)]=Ce.get(t)},"_loop10"),Me=!0,f=!1,u=void 0;try{for(var Ie,Ne=Ce.keys()[Symbol.iterator]();!(Me=(Ie=Ne.next()).done);Me=!0)Re(Ie.value)}catch(e){f=!0,u=e}finally{try{!Me&&Ne.return&&Ne.return()}finally{if(f)throw u}}}}for(var De=0;De<n.length;De++){var D=n[De];null==D.getChild()&&D.setCenter(T[k.get(D.id)],S[k.get(D.id)])}},e.exports=n},551:e=>{e.exports=t}},r={},mt(i,"__webpack_require__"),i(45);function i(e){var t=r[e];return void 0!==t||(t=r[e]={exports:{}},n[e](t,t.exports,i)),t.exports}var n,r})}),rPe=W((i,n)=>{"use strict";mt(function(e,t){"object"==typeof i&&"object"==typeof n?n.exports=t(nPe()):"function"==typeof define&&define.amd?define(["cose-base"],t):"object"==typeof i?i.cytoscapeFcose=t(nPe()):e.cytoscapeFcose=t(e.coseBase)},"webpackUniversalModuleDefinition")(i,function(t){return n={658:e=>{e.exports=null!=Object.assign?Object.assign.bind(Object):function(i){for(var e=arguments.length,t=Array(1<e?e-1:0),n=1;n<e;n++)t[n-1]=arguments[n];return t.forEach(function(t){Object.keys(t).forEach(function(e){return i[e]=t[e]})}),i}},548:(e,t,i)=>{mt(r,"sliceIterator");var C=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return r(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},n=i(140).layoutBase.LinkedList,i={};function r(e,t){var i=[],n=!0,r=!1,s=void 0;try{for(var a,o=e[Symbol.iterator]();!(n=(a=o.next()).done)&&(i.push(a.value),!t||i.length!==t);n=!0);}catch(e){r=!0,s=e}finally{try{!n&&o.return&&o.return()}finally{if(r)throw s}}return i}i.getTopMostNodes=function(e){for(var n={},t=0;t<e.length;t++)n[e[t].id()]=!0;return e.filter(function(e,t){for(var i=(e="number"==typeof e?t:e).parent()[0];null!=i;){if(n[i.id()])return!1;i=i.parent()[0]}return!0})},i.connectComponents=function(s,a,o,e){for(var l=new n,c=new Set,h=[],u=void 0,d=void 0,p=void 0,g=!1,f=1,m=[],y=[],t=mt(function(){var n=s.collection(),r=(y.push(n),o[0]),e=s.collection();e.merge(r).merge(r.descendants().intersection(a)),h.push(r),e.forEach(function(e){l.push(e),c.add(e),n.merge(e)});for(var t,i=mt(function(){r=l.shift();var t=s.collection();r.neighborhood().nodes().forEach(function(e){0<a.intersection(r.edgesWith(e)).length&&t.merge(e)});for(var e=0;e<t.length;e++){var i=t[e];null==(u=o.intersection(i.union(i.ancestors())))||c.has(u[0])||u.union(u.descendants()).forEach(function(e){l.push(e),c.add(e),n.merge(e),o.has(e)&&h.push(e)})}},"_loop2");0!=l.length;)i();n.forEach(function(e){a.intersection(e.connectedEdges()).forEach(function(e){n.has(e.source())&&n.has(e.target())&&n.merge(e)})}),(!(g=h.length==o.length?!0:g)||1<f)&&(d=h[0],p=d.connectedEdges().length,h.forEach(function(e){e.connectedEdges().length<p&&(p=e.connectedEdges().length,d=e)}),m.push(d.id()),(t=s.collection()).merge(h[0]),h.forEach(function(e){t.merge(e)}),h=[],o=o.difference(t),f++)},"_loop");t(),!g;);return e&&0<m.length&&e.set("dummy"+(e.size+1),m),y},i.relocateComponent=function(e,r,t){if(!t.fixedNodeConstraint){var s=Number.POSITIVE_INFINITY,a=Number.NEGATIVE_INFINITY,o=Number.POSITIVE_INFINITY,l=Number.NEGATIVE_INFINITY;if("draft"==t.quality){var i=!0,n=!1,c=void 0;try{for(var h,u=r.nodeIndexes[Symbol.iterator]();!(i=(h=u.next()).done);i=!0){var d,p,g,f,m,y=h.value,b=C(y,2),v=b[0],x=b[1],w=t.cy.getElementById(v);w&&(d=w.boundingBox(),p=r.xCoords[x]-d.w/2,g=r.xCoords[x]+d.w/2,f=r.yCoords[x]-d.h/2,m=r.yCoords[x]+d.h/2,p<s&&(s=p),a<g&&(a=g),f<o&&(o=f),l<m)&&(l=m)}}catch(e){n=!0,c=e}finally{try{!i&&u.return&&u.return()}finally{if(n)throw c}}var k=e.x-(a+s)/2,T=e.y-(l+o)/2;r.xCoords=r.xCoords.map(function(e){return e+k}),r.yCoords=r.yCoords.map(function(e){return e+T})}else{Object.keys(r).forEach(function(e){var e=r[e],t=e.getRect().x,i=e.getRect().x+e.getRect().width,n=e.getRect().y,e=e.getRect().y+e.getRect().height;t<s&&(s=t),a<i&&(a=i),n<o&&(o=n),l<e&&(l=e)});var S=e.x-(a+s)/2,_=e.y-(l+o)/2;Object.keys(r).forEach(function(e){e=r[e];e.setCenter(e.getCenterX()+S,e.getCenterY()+_)})}}},i.calcBoundingBox=function(e,t,i,n){for(var r=Number.MAX_SAFE_INTEGER,s=Number.MIN_SAFE_INTEGER,a=Number.MAX_SAFE_INTEGER,o=Number.MIN_SAFE_INTEGER,l=e.descendants().not(":parent"),c=l.length,h=0;h<c;h++){var u,d=l[h];(u=t[n.get(d.id())]-d.width()/2)<r&&(r=u),s<(u=t[n.get(d.id())]+d.width()/2)&&(s=u),(u=i[n.get(d.id())]-d.height()/2)<a&&(a=u),o<(u=i[n.get(d.id())]+d.height()/2)&&(o=u)}e={};return e.topLeftX=r,e.topLeftY=a,e.width=s-r,e.height=o-a,e},i.calcParentsWithoutChildren=function(e,t){var i=e.collection();return t.nodes(":parent").forEach(function(e){var t=!1;e.children().forEach(function(e){"none"!=e.css("display")&&(t=!0)}),t||i.merge(e)}),i},e.exports=i},816:(e,t,i)=>{var b=i(548),o=i(140).CoSELayout,v=i(140).CoSENode,x=i(140).layoutBase.PointD,w=i(140).layoutBase.DimensionD,l=i(140).layoutBase.LayoutConstants,u=i(140).layoutBase.FDLayoutConstants,k=i(140).CoSEConstants,i=mt(function(c,e){var t=c.cy,i=c.eles,n=i.nodes(),r=i.edges(),d=void 0,p=void 0,g=void 0,f={},h=(c.randomize&&(d=e.nodeIndexes,p=e.xCoords,g=e.yCoords),mt(function(e){return"function"==typeof e},"isFn")),m=mt(function(e,t){return h(e)?e(t):e},"optFn"),y=b.calcParentsWithoutChildren(t,i),e=mt(function e(t,i,n,r){for(var s=i.length,a=0;a<s;a++){var o,l=i[a],c=null,h=(0==l.intersection(y).length&&(c=l.children()),void 0),u=l.layoutDimensions({nodeDimensionsIncludeLabels:r.nodeDimensionsIncludeLabels});(h=null!=l.outerWidth()&&null!=l.outerHeight()?r.randomize?l.isParent()?(o=b.calcBoundingBox(l,p,g,d),0==l.intersection(y).length?t.add(new v(n.graphManager,new x(o.topLeftX,o.topLeftY),new w(o.width,o.height))):t.add(new v(n.graphManager,new x(o.topLeftX,o.topLeftY),new w(parseFloat(u.w),parseFloat(u.h))))):t.add(new v(n.graphManager,new x(p[d.get(l.id())]-u.w/2,g[d.get(l.id())]-u.h/2),new w(parseFloat(u.w),parseFloat(u.h)))):t.add(new v(n.graphManager,new x(l.position("x")-u.w/2,l.position("y")-u.h/2),new w(parseFloat(u.w),parseFloat(u.h)))):t.add(new v(this.graphManager))).id=l.data("id"),h.nodeRepulsion=m(r.nodeRepulsion,l),h.paddingLeft=parseInt(l.css("padding")),h.paddingTop=parseInt(l.css("padding")),h.paddingRight=parseInt(l.css("padding")),h.paddingBottom=parseInt(l.css("padding")),r.nodeDimensionsIncludeLabels&&(h.labelWidth=l.boundingBox({includeLabels:!0,includeNodes:!1,includeOverlays:!1}).w,h.labelHeight=l.boundingBox({includeLabels:!0,includeNodes:!1,includeOverlays:!1}).h,h.labelPosVertical=l.css("text-valign"),h.labelPosHorizontal=l.css("text-halign")),f[l.data("id")]=h,isNaN(h.rect.x)&&(h.rect.x=0),isNaN(h.rect.y)&&(h.rect.y=0),null!=c&&0<c.length&&e(n.getGraphManager().add(n.newGraph(),h),c,n,r)}},"processChildrenList"),t=mt(function(e,t,i){for(var n=0,r=0,s=0;s<i.length;s++){var a=i[s],o=f[a.data("source")],l=f[a.data("target")];o&&l&&o!==l&&0==o.getEdgesBetween(l).length&&((o=t.add(e.newEdge(),o,l)).id=a.id(),o.idealLength=m(c.idealEdgeLength,a),o.edgeElasticity=m(c.edgeElasticity,a),n+=o.idealLength,r++)}null!=c.idealEdgeLength&&(0<r?k.DEFAULT_EDGE_LENGTH=u.DEFAULT_EDGE_LENGTH=n/r:h(c.idealEdgeLength)?k.DEFAULT_EDGE_LENGTH=u.DEFAULT_EDGE_LENGTH=50:k.DEFAULT_EDGE_LENGTH=u.DEFAULT_EDGE_LENGTH=c.idealEdgeLength,k.MIN_REPULSION_DIST=u.MIN_REPULSION_DIST=u.DEFAULT_EDGE_LENGTH/10,k.DEFAULT_RADIAL_SEPARATION=u.DEFAULT_EDGE_LENGTH)},"processEdges"),i=mt(function(e,t){t.fixedNodeConstraint&&(e.constraints.fixedNodeConstraint=t.fixedNodeConstraint),t.alignmentConstraint&&(e.constraints.alignmentConstraint=t.alignmentConstraint),t.relativePlacementConstraint&&(e.constraints.relativePlacementConstraint=t.relativePlacementConstraint)},"processConstraints"),s=(null!=c.nestingFactor&&(k.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR=u.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR=c.nestingFactor),null!=c.gravity&&(k.DEFAULT_GRAVITY_STRENGTH=u.DEFAULT_GRAVITY_STRENGTH=c.gravity),null!=c.numIter&&(k.MAX_ITERATIONS=u.MAX_ITERATIONS=c.numIter),null!=c.gravityRange&&(k.DEFAULT_GRAVITY_RANGE_FACTOR=u.DEFAULT_GRAVITY_RANGE_FACTOR=c.gravityRange),null!=c.gravityCompound&&(k.DEFAULT_COMPOUND_GRAVITY_STRENGTH=u.DEFAULT_COMPOUND_GRAVITY_STRENGTH=c.gravityCompound),null!=c.gravityRangeCompound&&(k.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR=u.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR=c.gravityRangeCompound),null!=c.initialEnergyOnIncremental&&(k.DEFAULT_COOLING_FACTOR_INCREMENTAL=u.DEFAULT_COOLING_FACTOR_INCREMENTAL=c.initialEnergyOnIncremental),null!=c.tilingCompareBy&&(k.TILING_COMPARE_BY=c.tilingCompareBy),"proof"==c.quality?l.QUALITY=2:l.QUALITY=0,k.NODE_DIMENSIONS_INCLUDE_LABELS=u.NODE_DIMENSIONS_INCLUDE_LABELS=l.NODE_DIMENSIONS_INCLUDE_LABELS=c.nodeDimensionsIncludeLabels,k.DEFAULT_INCREMENTAL=u.DEFAULT_INCREMENTAL=l.DEFAULT_INCREMENTAL=!c.randomize,k.ANIMATE=u.ANIMATE=l.ANIMATE=c.animate,k.TILE=c.tile,k.TILING_PADDING_VERTICAL="function"==typeof c.tilingPaddingVertical?c.tilingPaddingVertical.call():c.tilingPaddingVertical,k.TILING_PADDING_HORIZONTAL="function"==typeof c.tilingPaddingHorizontal?c.tilingPaddingHorizontal.call():c.tilingPaddingHorizontal,k.DEFAULT_INCREMENTAL=u.DEFAULT_INCREMENTAL=l.DEFAULT_INCREMENTAL=!0,k.PURE_INCREMENTAL=!c.randomize,l.DEFAULT_UNIFORM_LEAF_NODE_SIZES=c.uniformNodeDimensions,"transformed"==c.step&&(k.TRANSFORM_ON_CONSTRAINT_HANDLING=!0,k.ENFORCE_CONSTRAINTS=!1,k.APPLY_LAYOUT=!1),"enforced"==c.step&&(k.TRANSFORM_ON_CONSTRAINT_HANDLING=!1,k.ENFORCE_CONSTRAINTS=!0,k.APPLY_LAYOUT=!1),"cose"==c.step&&(k.TRANSFORM_ON_CONSTRAINT_HANDLING=!1,k.ENFORCE_CONSTRAINTS=!1,k.APPLY_LAYOUT=!0),"all"==c.step&&(c.randomize?k.TRANSFORM_ON_CONSTRAINT_HANDLING=!0:k.TRANSFORM_ON_CONSTRAINT_HANDLING=!1,k.ENFORCE_CONSTRAINTS=!0,k.APPLY_LAYOUT=!0),c.fixedNodeConstraint||c.alignmentConstraint||c.relativePlacementConstraint?k.TREE_REDUCTION_ON_INCREMENTAL=!1:k.TREE_REDUCTION_ON_INCREMENTAL=!0,new o),a=s.newGraphManager();return e(a.addRoot(),b.getTopMostNodes(n),s,c),t(s,a,r),i(s,c),s.runLayout(),f},"coseLayout");e.exports={coseLayout:i}},212:(e,t,i)=>{mt(r,"defineProperties");var n=function(e,t,i){return t&&r(e.prototype,t),i&&r(e,i),e};function r(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}mt(s,"_classCallCheck");var a=i(658),x=i(548),w=i(657).spectralLayout,k=i(816).coseLayout,o=Object.freeze({quality:"default",randomize:!0,animate:!0,animationDuration:1e3,animationEasing:void 0,fit:!0,padding:30,nodeDimensionsIncludeLabels:!1,uniformNodeDimensions:!1,packComponents:!0,step:"all",samplingType:!0,sampleSize:25,nodeSeparation:75,piTol:1e-7,nodeRepulsion:mt(function(e){return 4500},"nodeRepulsion"),idealEdgeLength:mt(function(e){return 50},"idealEdgeLength"),edgeElasticity:mt(function(e){return.45},"edgeElasticity"),nestingFactor:.1,gravity:.25,numIter:2500,tile:!0,tilingCompareBy:void 0,tilingPaddingVertical:10,tilingPaddingHorizontal:10,gravityRangeCompound:1.5,gravityCompound:1,gravityRange:3.8,initialEnergyOnIncremental:.3,fixedNodeConstraint:void 0,alignmentConstraint:void 0,relativePlacementConstraint:void 0,ready:mt(function(){},"ready"),stop:mt(function(){},"stop")}),i=(mt(l,"Layout"),n(l,[{key:"run",value:mt(function(){var h=this.options,e=h.cy,t=h.eles,u=[],d=[],i=void 0,n=[];!h.fixedNodeConstraint||Array.isArray(h.fixedNodeConstraint)&&0!=h.fixedNodeConstraint.length||(h.fixedNodeConstraint=void 0),!h.alignmentConstraint||(!h.alignmentConstraint.vertical||Array.isArray(h.alignmentConstraint.vertical)&&0!=h.alignmentConstraint.vertical.length||(h.alignmentConstraint.vertical=void 0),!h.alignmentConstraint.horizontal)||Array.isArray(h.alignmentConstraint.horizontal)&&0!=h.alignmentConstraint.horizontal.length||(h.alignmentConstraint.horizontal=void 0),!h.relativePlacementConstraint||Array.isArray(h.relativePlacementConstraint)&&0!=h.relativePlacementConstraint.length||(h.relativePlacementConstraint=void 0);(h.fixedNodeConstraint||h.alignmentConstraint||h.relativePlacementConstraint)&&(h.tile=!1,h.packComponents=!1);var r=void 0,s=!1;if(e.layoutUtilities&&h.packComponents&&(r=(r=e.layoutUtilities("get"))||e.layoutUtilities(),s=!0),0<t.nodes().length)if(s){s=x.getTopMostNodes(h.eles.nodes());if((i=x.connectComponents(e,h.eles,s)).forEach(function(e){e=e.boundingBox();n.push({x:e.x1+e.w/2,y:e.y1+e.h/2})}),h.randomize&&i.forEach(function(e){h.eles=e,u.push(w(h))}),"default"==h.quality||"proof"==h.quality){var a=e.collection();if(h.tile){var s=new Map,o=0,l={nodeIndexes:s,xCoords:[],yCoords:[]},c=[];if(i.forEach(function(i,e){0==i.edges().length&&(i.nodes().forEach(function(e,t){a.merge(i.nodes()[t]),e.isParent()||(l.nodeIndexes.set(i.nodes()[t].id(),o++),l.xCoords.push(i.nodes()[0].position().x),l.yCoords.push(i.nodes()[0].position().y))}),c.push(e))}),1<a.length){s=a.boundingBox();n.push({x:s.x1+s.w/2,y:s.y1+s.h/2}),i.push(a),u.push(l);for(var p=c.length-1;0<=p;p--)i.splice(c[p],1),u.splice(c[p],1),n.splice(c[p],1)}}i.forEach(function(e,t){h.eles=e,d.push(k(h,u[t])),x.relocateComponent(n[t],d[t],h)})}else i.forEach(function(e,t){x.relocateComponent(n[t],u[t],h)});var g,f,m,y,b=new Set;1<i.length&&(g=[],f=t.filter(function(e){return"none"==e.css("display")}),i.forEach(function(e,o){var l,i,c=void 0;"draft"==h.quality&&(c=u[o].nodeIndexes),0<e.nodes().not(f).length&&(l={edges:[],nodes:[]},i=void 0,e.nodes().not(f).forEach(function(e){var t;"draft"==h.quality?e.isParent()?(t=x.calcBoundingBox(e,u[o].xCoords,u[o].yCoords,c),l.nodes.push({x:t.topLeftX,y:t.topLeftY,width:t.width,height:t.height})):(i=c.get(e.id()),l.nodes.push({x:u[o].xCoords[i]-e.boundingbox().w/2,y:u[o].yCoords[i]-e.boundingbox().h/2,width:e.boundingbox().w,height:e.boundingbox().h})):d[o][e.id()]&&l.nodes.push({x:d[o][e.id()].getLeft(),y:d[o][e.id()].getTop(),width:d[o][e.id()].getWidth(),height:d[o][e.id()].getHeight()})}),e.edges().forEach(function(e){var t,i,n,r,s,a=e.source(),e=e.target();"none"!=a.css("display")&&"none"!=e.css("display")&&("draft"==h.quality?(t=c.get(a.id()),i=c.get(e.id()),n=[],r=[],a.isParent()?(s=x.calcBoundingBox(a,u[o].xCoords,u[o].yCoords,c),n.push(s.topLeftX+s.width/2),n.push(s.topLeftY+s.height/2)):(n.push(u[o].xCoords[t]),n.push(u[o].yCoords[t])),e.isParent()?(s=x.calcBoundingBox(e,u[o].xCoords,u[o].yCoords,c),r.push(s.topLeftX+s.width/2),r.push(s.topLeftY+s.height/2)):(r.push(u[o].xCoords[i]),r.push(u[o].yCoords[i])),l.edges.push({startX:n[0],startY:n[1],endX:r[0],endY:r[1]})):d[o][a.id()]&&d[o][e.id()]&&l.edges.push({startX:d[o][a.id()].getCenterX(),startY:d[o][a.id()].getCenterY(),endX:d[o][e.id()].getCenterX(),endY:d[o][e.id()].getCenterY()}))}),0<l.nodes.length)&&(g.push(l),b.add(o))}),m=r.packComponents(g,h.randomize).shifts,"draft"==h.quality?u.forEach(function(e,t){var i=e.xCoords.map(function(e){return e+m[t].dx}),n=e.yCoords.map(function(e){return e+m[t].dy});e.xCoords=i,e.yCoords=n}):(y=0,b.forEach(function(t){Object.keys(d[t]).forEach(function(e){e=d[t][e];e.setCenter(e.getCenterX()+m[y].dx,e.getCenterY()+m[y].dy)}),y++})))}else{s=h.eles.boundingBox();n.push({x:s.x1+s.w/2,y:s.y1+s.h/2}),h.randomize&&(r=w(h),u.push(r)),"default"==h.quality||"proof"==h.quality?(d.push(k(h,u[0])),x.relocateComponent(n[0],d[0],h)):x.relocateComponent(n[0],u[0],h)}var v=mt(function(i,e){var t,n,r,s;return"default"==h.quality||"proof"==h.quality?(n=t=void 0,r=(i="number"==typeof i?e:i).data("id"),d.forEach(function(e){r in e&&(t={x:e[r].getRect().getCenterX(),y:e[r].getRect().getCenterY()},n=e[r])}),h.nodeDimensionsIncludeLabels&&(n.labelWidth&&("left"==n.labelPosHorizontal?t.x+=n.labelWidth/2:"right"==n.labelPosHorizontal&&(t.x-=n.labelWidth/2)),n.labelHeight)&&("top"==n.labelPosVertical?t.y+=n.labelHeight/2:"bottom"==n.labelPosVertical&&(t.y-=n.labelHeight/2)),{x:(t=null==t?{x:i.position("x"),y:i.position("y")}:t).x,y:t.y}):(s=void 0,u.forEach(function(e){var t=e.nodeIndexes.get(i.id());null!=t&&(s={x:e.xCoords[t],y:e.yCoords[t]})}),{x:(s=null==s?{x:i.position("x"),y:i.position("y")}:s).x,y:s.y})},"getPositions");"default"==h.quality||"proof"==h.quality||h.randomize?(s=x.calcParentsWithoutChildren(e,t),r=t.filter(function(e){return"none"==e.css("display")}),h.eles=t.not(r),t.nodes().not(":parent").not(r).layoutPositions(this,h,v),0<s.length&&s.forEach(function(e){e.position(v(e))})):console.log("If randomize option is set to false, then quality option must be 'default' or 'proof'.")},"run")}]),l);function l(e){s(this,l),this.options=a({},o,e)}e.exports=i},657:(e,t,i)=>{var z=i(548),H=i(140).layoutBase.Matrix,U=i(140).layoutBase.SVD,i=mt(function(e){var r=e.cy,s=e.eles,t=s.nodes(),i=s.nodes(":parent"),a=new Map,m=new Map,o=new Map,y=[],g=[],f=[],h=[],b=[],v=[],u=[],x=[],w=void 0,k=e.piTol,n=e.samplingType,T=e.nodeSeparation,d=void 0,O=mt(function(){for(var e=0,t=!1;e<d;){for(var i=Math.floor(Math.random()*w),t=!1,n=0;n<e;n++)if(h[n]==i){t=!0;break}t||(h[e]=i,e++)}},"randomSampleCR"),p=mt(function(e,t,i){for(var n,r=[],s=0,a=0,o=[],l=0,c=1,h=0;h<w;h++)o[h]=1e8;for(o[r[a]=e]=0;s<=a;){for(var u=r[s++],d=y[u],p=0;p<d.length;p++)1e8==o[n=m.get(d[p])]&&(o[n]=o[u]+1,r[++a]=n);v[u][t]=o[u]*T}if(i){for(var g=0;g<w;g++)v[g][t]<b[g]&&(b[g]=v[g][t]);for(var f=0;f<w;f++)l<b[f]&&(l=b[f],c=f)}return c},"BFS"),l=mt(function(e){var t=void 0;if(e){t=Math.floor(Math.random()*w),0;for(var i=0;i<w;i++)b[i]=1e8;for(var n=0;n<d;n++)t=p(h[n]=t,n,e)}else{O();for(var r=0;r<d;r++)p(h[r],r,e,!1)}for(var s=0;s<w;s++)for(var a=0;a<d;a++)v[s][a]*=v[s][a];for(var o=0;o<d;o++)u[o]=[];for(var l=0;l<d;l++)for(var c=0;c<d;c++)u[l][c]=v[h[c]][l]},"allBFS"),P=mt(function(){for(var e=U.svd(u),t=e.S,i=e.U,e=e.V,n=t[0]*t[0]*t[0],r=[],s=0;s<d;s++){r[s]=[];for(var a=0;a<d;a++)r[s][a]=0,s==a&&(r[s][a]=t[s]/(t[s]*t[s]+n/(t[s]*t[s])))}x=H.multMat(H.multMat(e,r),H.transpose(i))},"sample"),B=mt(function(){for(var e=void 0,t=void 0,i=[],n=[],r=[],s=[],a=0;a<w;a++)i[a]=Math.random(),n[a]=Math.random();for(var i=H.normalize(i),n=H.normalize(n),o=1e-9,l=1e-9,c=void 0;;){0;for(var h=0;h<w;h++)r[h]=i[h];if(i=H.multGamma(H.multL(H.multGamma(r),v,x)),e=H.dotProduct(r,i),i=H.normalize(i),o=H.dotProduct(r,i),(c=Math.abs(o/l))<=1+k&&1<=c)break;l=o}for(var u=0;u<w;u++)r[u]=i[u];for(l=1e-9;;){0;for(var d=0;d<w;d++)s[d]=n[d];if(s=H.minusOp(s,H.multCons(r,H.dotProduct(r,s))),n=H.multGamma(H.multL(H.multGamma(s),v,x)),t=H.dotProduct(s,n),n=H.normalize(n),o=H.dotProduct(s,n),(c=Math.abs(o/l))<=1+k&&1<=c)break;l=o}for(var p=0;p<w;p++)s[p]=n[p];g=H.multCons(r,Math.sqrt(Math.abs(e))),f=H.multCons(s,Math.sqrt(Math.abs(t)))},"powerIteration");z.connectComponents(r,s,z.getTopMostNodes(t),a),i.forEach(function(e){z.connectComponents(r,s,z.getTopMostNodes(e.descendants().intersection(s)),a)});for(var c=0,S=0;S<t.length;S++)t[S].isParent()||m.set(t[S].id(),c++);var _=!0,C=!1,A=void 0;try{for(var E,$=a.keys()[Symbol.iterator]();!(_=(E=$.next()).done);_=!0){var F=E.value;m.set(F,c++)}}catch(e){C=!0,A=e}finally{try{!_&&$.return&&$.return()}finally{if(C)throw A}}for(var L=0;L<m.size;L++)y[L]=[];i.forEach(function(e){for(var t=e.children().intersection(s);0==t.nodes(":childless").length;)t=t.nodes()[0].children().intersection(s);var i=0,n=t.nodes(":childless")[0].connectedEdges().length;t.nodes(":childless").forEach(function(e,t){e.connectedEdges().length<n&&(n=e.connectedEdges().length,i=t)}),o.set(e.id(),t.nodes(":childless")[i].id())}),t.forEach(function(t){var i=void 0,i=t.isParent()?m.get(o.get(t.id())):m.get(t.id());t.neighborhood().nodes().forEach(function(e){0<s.intersection(t.edgesWith(e)).length&&(e.isParent()?y[i].push(o.get(e.id())):y[i].push(e.id()))})});var j=mt(function(t){var i=m.get(t),n=void 0;a.get(t).forEach(function(e){n=r.getElementById(e).isParent()?o.get(e):e,y[i].push(n),y[m.get(n)].push(t)})},"_loop"),R=!0,C=!1,A=void 0;try{for(var M,I=a.keys()[Symbol.iterator]();!(R=(M=I.next()).done);R=!0)j(M.value)}catch(e){C=!0,A=e}finally{try{!R&&I.return&&I.return()}finally{if(C)throw A}}if(2<(w=m.size)){for(var d=w<e.sampleSize?w:e.sampleSize,N=0;N<w;N++)v[N]=[];for(var D=0;D<d;D++)x[D]=[];return"draft"==e.quality||"all"==e.step?(l(n),P(),B()):m.forEach(function(e,t){g.push(r.getElementById(t).position("x")),f.push(r.getElementById(t).position("y"))}),{nodeIndexes:m,xCoords:g,yCoords:f}}return i=m.keys(),A=(C=r.getElementById(i.next().value)).position(),l=C.outerWidth(),g.push(A.x),f.push(A.y),2==w&&(n=r.getElementById(i.next().value).outerWidth(),g.push(A.x+l/2+n/2+e.idealEdgeLength),f.push(A.y)),{nodeIndexes:m,xCoords:g,yCoords:f}},"spectralLayout");e.exports={spectralLayout:i}},579:(e,t,i)=>{var n=i(212),i=mt(function(e){e&&e("layout","fcose",n)},"register");typeof cytoscape<"u"&&i(cytoscape),e.exports=i},140:e=>{e.exports=t}},r={},mt(i,"__webpack_require__"),i(579);function i(e){var t=r[e];return void 0!==t||(t=r[e]={exports:{}},n[e](t,t.exports,i)),t.exports}var n,r})}),sPe=e(()=>{"use strict";Ve(),GOe=mt(e=>`<g><rect width="80" height="80" style="fill: #087ebf; stroke-width: 0px;"/>${e}</g>`,"wrapIcon"),YOe={prefix:"mermaid-architecture",height:80,width:80,icons:{database:{body:GOe('<path id="b" data-name="4" d="m20,57.86c0,3.94,8.95,7.14,20,7.14s20-3.2,20-7.14" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><path id="c" data-name="3" d="m20,45.95c0,3.94,8.95,7.14,20,7.14s20-3.2,20-7.14" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><path id="d" data-name="2" d="m20,34.05c0,3.94,8.95,7.14,20,7.14s20-3.2,20-7.14" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><ellipse id="e" data-name="1" cx="40" cy="22.14" rx="20" ry="7.14" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><line x1="20" y1="57.86" x2="20" y2="22.14" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><line x1="60" y1="57.86" x2="60" y2="22.14" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/>')},server:{body:GOe('<rect x="17.5" y="17.5" width="45" height="45" rx="2" ry="2" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><line x1="17.5" y1="32.5" x2="62.5" y2="32.5" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><line x1="17.5" y1="47.5" x2="62.5" y2="47.5" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><g><path d="m56.25,25c0,.27-.45.5-1,.5h-10.5c-.55,0-1-.23-1-.5s.45-.5,1-.5h10.5c.55,0,1,.23,1,.5Z" style="fill: #fff; stroke-width: 0px;"/><path d="m56.25,25c0,.27-.45.5-1,.5h-10.5c-.55,0-1-.23-1-.5s.45-.5,1-.5h10.5c.55,0,1,.23,1,.5Z" style="fill: none; stroke: #fff; stroke-miterlimit: 10;"/></g><g><path d="m56.25,40c0,.27-.45.5-1,.5h-10.5c-.55,0-1-.23-1-.5s.45-.5,1-.5h10.5c.55,0,1,.23,1,.5Z" style="fill: #fff; stroke-width: 0px;"/><path d="m56.25,40c0,.27-.45.5-1,.5h-10.5c-.55,0-1-.23-1-.5s.45-.5,1-.5h10.5c.55,0,1,.23,1,.5Z" style="fill: none; stroke: #fff; stroke-miterlimit: 10;"/></g><g><path d="m56.25,55c0,.27-.45.5-1,.5h-10.5c-.55,0-1-.23-1-.5s.45-.5,1-.5h10.5c.55,0,1,.23,1,.5Z" style="fill: #fff; stroke-width: 0px;"/><path d="m56.25,55c0,.27-.45.5-1,.5h-10.5c-.55,0-1-.23-1-.5s.45-.5,1-.5h10.5c.55,0,1,.23,1,.5Z" style="fill: none; stroke: #fff; stroke-miterlimit: 10;"/></g><g><circle cx="32.5" cy="25" r=".75" style="fill: #fff; stroke: #fff; stroke-miterlimit: 10;"/><circle cx="27.5" cy="25" r=".75" style="fill: #fff; stroke: #fff; stroke-miterlimit: 10;"/><circle cx="22.5" cy="25" r=".75" style="fill: #fff; stroke: #fff; stroke-miterlimit: 10;"/></g><g><circle cx="32.5" cy="40" r=".75" style="fill: #fff; stroke: #fff; stroke-miterlimit: 10;"/><circle cx="27.5" cy="40" r=".75" style="fill: #fff; stroke: #fff; stroke-miterlimit: 10;"/><circle cx="22.5" cy="40" r=".75" style="fill: #fff; stroke: #fff; stroke-miterlimit: 10;"/></g><g><circle cx="32.5" cy="55" r=".75" style="fill: #fff; stroke: #fff; stroke-miterlimit: 10;"/><circle cx="27.5" cy="55" r=".75" style="fill: #fff; stroke: #fff; stroke-miterlimit: 10;"/><circle cx="22.5" cy="55" r=".75" style="fill: #fff; stroke: #fff; stroke-miterlimit: 10;"/></g>')},disk:{body:GOe('<rect x="20" y="15" width="40" height="50" rx="1" ry="1" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><ellipse cx="24" cy="19.17" rx=".8" ry=".83" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><ellipse cx="56" cy="19.17" rx=".8" ry=".83" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><ellipse cx="24" cy="60.83" rx=".8" ry=".83" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><ellipse cx="56" cy="60.83" rx=".8" ry=".83" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><ellipse cx="40" cy="33.75" rx="14" ry="14.58" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><ellipse cx="40" cy="33.75" rx="4" ry="4.17" style="fill: #fff; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><path d="m37.51,42.52l-4.83,13.22c-.26.71-1.1,1.02-1.76.64l-4.18-2.42c-.66-.38-.81-1.26-.33-1.84l9.01-10.8c.88-1.05,2.56-.08,2.09,1.2Z" style="fill: #fff; stroke-width: 0px;"/>')},internet:{body:GOe('<circle cx="40" cy="40" r="22.5" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><line x1="40" y1="17.5" x2="40" y2="62.5" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><line x1="17.5" y1="40" x2="62.5" y2="40" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><path d="m39.99,17.51c-15.28,11.1-15.28,33.88,0,44.98" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><path d="m40.01,17.51c15.28,11.1,15.28,33.88,0,44.98" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><line x1="19.75" y1="30.1" x2="60.25" y2="30.1" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><line x1="19.75" y1="49.9" x2="60.25" y2="49.9" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/>')},cloud:{body:GOe('<path d="m65,47.5c0,2.76-2.24,5-5,5H20c-2.76,0-5-2.24-5-5,0-1.87,1.03-3.51,2.56-4.36-.04-.21-.06-.42-.06-.64,0-2.6,2.48-4.74,5.65-4.97,1.65-4.51,6.34-7.76,11.85-7.76.86,0,1.69.08,2.5.23,2.09-1.57,4.69-2.5,7.5-2.5,6.1,0,11.19,4.38,12.28,10.17,2.14.56,3.72,2.51,3.72,4.83,0,.03,0,.07-.01.1,2.29.46,4.01,2.48,4.01,4.9Z" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/>')},unknown:Ne,blank:{body:GOe("")}}}}),aPe=e(()=>{"use strict";Ve(),Cu(),eL(),JOe(),sPe(),TOe(),XOe=mt(async function(w,e){let k=SOe("padding"),t=SOe("iconSize"),T=t/2,S=t/6,_=S/2;await Promise.all(e.edges().map(async i=>{let{source:e,sourceDir:n,sourceArrow:t,sourceGroup:r,target:s,targetDir:a,targetArrow:o,targetGroup:l,label:c}=xOe(i),{x:h,y:u}=i[0].sourceEndpoint(),{x:d,y:p}=i[0].midpoint(),{x:g,y:f}=i[0].targetEndpoint(),m=k+4;if(r&&(cOe(n)?h+="L"===n?-m:m:u+="T"===n?-m:m+18),l&&(cOe(a)?g+="L"===a?-m:m:f+="T"===a?-m:m+18),r||"junction"!==HOe.getNode(e)?.type||(cOe(n)?h+="L"===n?T:-T:u+="T"===n?T:-T),l||"junction"!==HOe.getNode(s)?.type||(cOe(a)?g+="L"===a?T:-T:f+="T"===a?T:-T),i[0]._private.rscratch){i=w.insert("g");if(i.insert("path").attr("d",`M ${h},${u} L ${d},${p} L${g},${f} `).attr("class","edge"),t&&(x=cOe(n)?aOe[n](h,S):h-_,y=hOe(n)?aOe[n](u,S):u-_,i.insert("polygon").attr("points",sOe[n](S)).attr("transform",`translate(${x},${y})`).attr("class","arrow")),o&&(x=cOe(a)?aOe[a](g,S):g-_,y=hOe(a)?aOe[a](f,S):f-_,i.insert("polygon").attr("points",sOe[a](S)).attr("transform",`translate(${x},${y})`).attr("class","arrow")),c){let e=uOe(n,a)?"XY":cOe(n)?"X":"Y",t=0;t="X"==e?Math.abs(h-g):"Y"==e?Math.abs(u-f)/1.5:Math.abs(h-g)/2;var y,b,v,x=i.append("g");await J$(x,c,{useHtmlLabels:!1,width:t,classes:"architecture-service-label"},N()),x.attr("dy","1em").attr("alignment-baseline","middle").attr("dominant-baseline","middle").attr("text-anchor","middle"),"X"==e?x.attr("transform","translate("+d+", "+p+")"):"Y"==e?x.attr("transform","translate("+d+", "+p+") rotate(-90)"):"XY"==e&&(y=gOe(n,a))&&dOe(y)&&(i=x.node().getBoundingClientRect(),[y,b]=mOe(y),x.attr("dominant-baseline","auto").attr("transform",`rotate(${-1*y*b*45})`),v=x.node().getBoundingClientRect(),x.attr("transform",`
|
||
translate(${d}, ${p-i.height/2})
|
||
translate(${y*v.width/2}, ${b*v.height/2})
|
||
rotate(${-1*y*b*45}, 0, ${i.height/2})
|
||
`))}}}))},"drawEdges"),KOe=mt(async function(l,e){let c=.75*SOe("padding"),h=SOe("fontSize"),u=SOe("iconSize")/2;await Promise.all(e.nodes().map(async n=>{var r=wOe(n);if("group"===r.type){var{h:n,w:s,x1:a,y1:o}=n.boundingBox();l.append("rect").attr("x",a+u).attr("y",o+u).attr("width",s).attr("height",n).attr("class","node-bkg");let e=l.append("g"),t=a,i=o;r.icon&&((n=e.append("g")).html(`<g>${await je(r.icon,{height:c,width:c,fallbackPrefix:YOe.prefix})}</g>`),n.attr("transform","translate("+(t+u+1)+", "+(i+u+1)+")"),t+=c,i+=h/2-1-2),r.label&&(a=e.append("g"),await J$(a,r.label,{useHtmlLabels:!1,width:s,classes:"architecture-service-label"},N()),a.attr("dy","1em").attr("alignment-baseline","middle").attr("dominant-baseline","start").attr("text-anchor","start"),a.attr("transform","translate("+(t+u+4)+", "+(i+u+2)+")"))}}))},"drawGroups"),ZOe=mt(async function(e,t,i){for(var n of i){var r=t.append("g"),s=SOe("iconSize"),a=(n.title&&(a=r.append("g"),await J$(a,n.title,{useHtmlLabels:!1,width:1.5*s,classes:"architecture-service-label"},N()),a.attr("dy","1em").attr("alignment-baseline","middle").attr("dominant-baseline","middle").attr("text-anchor","middle"),a.attr("transform","translate("+s/2+", "+s+")")),r.append("g")),{width:o,height:l}=(n.icon?a.html(`<g>${await je(n.icon,{height:s,width:s,fallbackPrefix:YOe.prefix})}</g>`):n.iconText?(a.html(`<g>${await je("blank",{height:s,width:s,fallbackPrefix:YOe.prefix})}</g>`),o=a.append("g").append("foreignObject").attr("width",s).attr("height",s).append("div").attr("class","node-icon-text").attr("style",`height: ${s}px;`).append("div").html(n.iconText),l=parseInt(window.getComputedStyle(o.node(),null).getPropertyValue("font-size").replace(/\D/g,""))??16,o.attr("style",`-webkit-line-clamp: ${Math.floor((s-2)/l)};`)):a.append("path").attr("class","node-bkg").attr("id","node-"+n.id).attr("d",`M0 ${s} v${-s} q0,-5 5,-5 h${s} q5,0 5,5 v${s} H0 Z`),r.attr("class","architecture-service"),r._groups[0][0].getBBox());n.width=o,n.height=l,e.setElementForId(n.id,r)}return 0},"drawServices"),QOe=mt(function(r,s,e){e.forEach(e=>{var t=s.append("g"),i=SOe("iconSize"),{width:i,height:n}=(t.append("g").append("rect").attr("id","node-"+e.id).attr("fill-opacity","0").attr("width",i).attr("height",i),t.attr("class","architecture-junction"),t._groups[0][0].getBBox());t.width=i,t.height=n,r.setElementForId(e.id,t)})},"drawJunctions")});function oPe(e,t){e.forEach(e=>{t.add({group:"nodes",data:{type:"service",id:e.id,icon:e.icon,label:e.title,parent:e.in,width:zOe().iconSize,height:zOe().iconSize},classes:"node-service"})})}function lPe(e,t){e.forEach(e=>{t.add({group:"nodes",data:{type:"junction",id:e.id,parent:e.in,width:zOe().iconSize,height:zOe().iconSize},classes:"node-junction"})})}function cPe(i,e){e.nodes().map(e=>{var t=wOe(e);"group"!==t.type&&(t.x=e.position().x,t.y=e.position().y,i.getElementById(t.id).attr("transform","translate("+(t.x||0)+","+(t.y||0)+")"))})}function hPe(e,t){e.forEach(e=>{t.add({group:"nodes",data:{type:"group",id:e.id,icon:e.icon,label:e.title,parent:e.in},classes:"node-group"})})}function uPe(e,h){e.forEach(e=>{var{lhsId:t,rhsId:i,lhsInto:n,lhsGroup:r,rhsInto:s,lhsDir:a,rhsDir:o,rhsGroup:l,title:c}=e,e=uOe(e.lhsDir,e.rhsDir)?"segments":"straight";h.add({group:"edges",data:{id:t+"-"+i,label:c,source:t,sourceDir:a,sourceArrow:n,sourceGroup:r,sourceEndpoint:"L"===a?"0 50%":"R"===a?"100% 50%":"T"===a?"50% 0":"50% 100%",target:i,targetDir:o,targetArrow:s,targetGroup:l,targetEndpoint:"L"===o?"0 50%":"R"===o?"100% 50%":"T"===o?"50% 0":"50% 100%"},classes:e})})}function dPe(a,e,u){let t=mt((e,h)=>Object.entries(e).reduce((i,[n,e])=>{let r=0,s=Object.entries(e);if(1===s.length)i[n]=s[0][1];else for(let t=0;t<s.length-1;t++)for(let e=t+1;e<s.length;e++){var[a,o]=s[t],[l,c]=s[e];u[a]?.[l]===h||"default"===a||"default"===l?(i[n]??=[],i[n]=[...i[n],...o,...c]):(i[n+"-"+r++]=o,i[n+"-"+r++]=c)}return i},{}),"flattenAlignments"),i=e.map(e=>{let r={},s={};return Object.entries(e).forEach(([e,[t,i]])=>{var n=a.getNode(e)?.in??"default";r[i]??={},r[i][n]??=[],r[i][n].push(e),s[t]??={},s[t][n]??=[],s[t][n].push(e)}),{horiz:Object.values(t(r,"horizontal")).filter(e=>1<e.length),vert:Object.values(t(s,"vertical")).filter(e=>1<e.length)}}),[n,r]=i.reduce(([e,t],{horiz:i,vert:n})=>[[...e,...i],[...t,...n]],[[],[]]);return{horizontal:n,vertical:r}}function pPe(e){let l=[],c=mt(e=>e[0]+","+e[1],"posToStr"),h=mt(e=>e.split(",").map(e=>parseInt(e)),"strToPos");return e.forEach(e=>{let s=Object.fromEntries(Object.entries(e).map(([e,t])=>[c(t),e])),a=[c([0,0])],o={},t={L:[-1,0],R:[1,0],T:[0,1],B:[0,-1]};for(;0<a.length;){var i=a.shift();if(i){o[i]=1;let r=s[i];if(r){let n=h(i);Object.entries(t).forEach(([e,t])=>{var t=c([n[0]+t[0],n[1]+t[1]]),i=s[t];i&&!o[t]&&(a.push(t),l.push({[rOe[e]]:i,[rOe[oOe(e)]]:r,gap:1.5*zOe().iconSize}))})}}}}),l}function gPe(r,s,l,c,h,{spatialMaps:u,groupAlignments:d}){return new Promise(t=>{let e=G("body").append("div").attr("id","cy").attr("style","display:none"),a=C$e({container:document.getElementById("cy"),style:[{selector:"edge",style:{"curve-style":"straight",label:"data(label)","source-endpoint":"data(sourceEndpoint)","target-endpoint":"data(targetEndpoint)"}},{selector:"edge.segments",style:{"curve-style":"segments","segment-weights":"0","segment-distances":[.5],"edge-distances":"endpoints","source-endpoint":"data(sourceEndpoint)","target-endpoint":"data(targetEndpoint)"}},{selector:"node",style:{"compound-sizing-wrt-labels":"include"}},{selector:"node[label]",style:{"text-valign":"bottom","text-halign":"center","font-size":zOe().fontSize+"px"}},{selector:".node-service",style:{label:"data(label)",width:"data(width)",height:"data(height)"}},{selector:".node-junction",style:{width:"data(width)",height:"data(height)"}},{selector:".node-group",style:{padding:zOe().padding+"px"}}],layout:{name:"grid",boundingBox:{x1:0,x2:100,y1:0,y2:100}}}),i=(e.remove(),hPe(l,a),oPe(r,a),lPe(s,a),uPe(c,a),dPe(h,u,d)),n=pPe(u),o=a.layout({name:"fcose",quality:"proof",styleEnabled:!1,animate:!1,nodeDimensionsIncludeLabels:!1,idealEdgeLength(e){var[e,t]=e.connectedNodes(),e=wOe(e)["parent"],t=wOe(t)["parent"];return e===t?1.5*zOe().iconSize:.5*zOe().iconSize},edgeElasticity(e){var[e,t]=e.connectedNodes(),e=wOe(e)["parent"],t=wOe(t)["parent"];return e===t?.45:.001},alignmentConstraint:i,relativePlacementConstraint:n});o.one("layoutstop",()=>{function e(e,t,i,n){var{x:e,y:r}=e,{x:t,y:s}=t,a=(n-r+(e-i)*(r-s)/(e-t))/Math.sqrt(1+Math.pow((r-s)/(e-t),2)),o=Math.sqrt(Math.pow(n-r,2)+Math.pow(i-e,2)-Math.pow(a,2));o/=Math.sqrt(Math.pow(t-e,2)+Math.pow(s-r,2));let l=(t-e)*(n-r)-(s-r)*(i-e);switch(!0){case 0<=l:l=1;break;case l<0:l=-1}let c=(t-e)*(i-e)+(s-r)*(n-r);switch(!0){case 0<=c:c=1;break;case c<0:c=-1}return{distances:Math.abs(a)*l,weights:o*=c}}mt(e,"getSegmentWeights"),a.startBatch();for(var t of Object.values(a.edges())){var i,n,r,s;t.data?.()&&({x:r,y:n}=t.source().position(),{x:s,y:i}=t.target().position(),r!==s)&&n!==i&&(r=t.sourceEndpoint(),s=t.targetEndpoint(),n=xOe(t)["sourceDir"],[i,n]=hOe(n)?[r.x,s.y]:[s.x,r.y],{weights:r,distances:s}=e(r,s,i,n),t.style("segment-distances",s),t.style("segment-weights",r))}a.endBatch(),o.run()}),o.run(),a.ready(e=>{I.info("Ready",e),t(a)})})}var fPe,mPe,yPe=e(()=>{"use strict";Ve(),A$e(),fPe=ie(rPe(),1),a6(),t(),Mye(),uh(),JOe(),sPe(),TOe(),aPe(),Pe([{name:YOe.prefix,icons:YOe}]),C$e.use(fPe.default),mt(oPe,"addServices"),mt(lPe,"addJunctions"),mt(cPe,"positionNodes"),mt(hPe,"addGroups"),mt(uPe,"addEdges"),mt(dPe,"getAlignments"),mt(pPe,"getRelativeConstraints"),mt(gPe,"layoutArchitecture"),fPe=mt(async(e,t,i,n)=>{var n=n.db,r=n.getServices(),s=n.getJunctions(),a=n.getGroups(),o=n.getEdges(),l=n.getDataStructures(),t=_ye(t),c=t.append("g"),h=(c.attr("class","architecture-edges"),t.append("g")),u=(h.attr("class","architecture-services"),t.append("g")),h=(u.attr("class","architecture-groups"),await ZOe(n,h,r),QOe(n,h,s),await gPe(r,s,a,o,n,l));await XOe(c,h),await KOe(u,h),cPe(n,h),sh(void 0,t,SOe("padding"),SOe("useMaxWidth"))},"draw"),mPe={draw:fPe}}),bPe={};V(bPe,{diagram:()=>vPe});var vPe,xPe,wPe=e(()=>{"use strict";ePe(),JOe(),tPe(),yPe(),vPe={parser:qOe,db:HOe,renderer:mPe,styles:VOe}}),kPe=e(()=>{"use strict";Ln(),Mn(),sC(),DL(),_u(),xPe=class{constructor(){this.nodes=[],this.levels=new Map,this.outerNodes=[],this.classes=new Map,this.setAccTitle=vh,this.getAccTitle=xh,this.setDiagramTitle=Th,this.getDiagramTitle=Sh,this.getAccDescription=kh,this.setAccDescription=wh}static{mt(this,"TreeMapDB")}getNodes(){return this.nodes}getConfig(){var e=vi,t=Ii();return E_({...e.treemap,...t.treemap??{}})}addNode(e,t){this.nodes.push(e),this.levels.set(e,t),0===t&&(this.outerNodes.push(e),this.root??=e)}getRoot(){return{name:"",children:this.outerNodes}}addClass(e,t){let i=this.classes.get(e)??{id:e,styles:[],textStyles:[]},n=t.replace(/\\,/g,"§§§").replace(/,/g,";").replace(/§§§/g,",").split(";");n&&n.forEach(e=>{$L(e)&&(i?.textStyles?i.textStyles.push(e):i.textStyles=[e]),i?.styles?i.styles.push(e):i.styles=[e]}),this.classes.set(e,i)}getClasses(){return this.classes}getStylesForClass(e){return this.classes.get(e)?.styles??[]}clear(){bh(),this.nodes=[],this.levels=new Map,this.outerNodes=[],this.classes=new Map,this.root=void 0}}});function TPe(e){if(!e.length)return[];let n=[],r=[];return e.forEach(e=>{var t,i={name:e.name,children:"Leaf"===e.type?void 0:[]};for(i.classSelector=e?.classSelector,e?.cssCompiledStyles&&(i.cssCompiledStyles=[e.cssCompiledStyles]),"Leaf"===e.type&&void 0!==e.value&&(i.value=e.value);0<r.length&&r[r.length-1].level>=e.level;)r.pop();0===r.length?n.push(i):(t=r[r.length-1].node).children?t.children.push(i):t.children=[i],"Leaf"!==e.type&&r.push({node:i,level:e.level})}),n}var SPe,_Pe,CPe,APe,EPe,$Pe,LPe,RPe,MPe,IPe=e(()=>{"use strict";mt(TPe,"buildHierarchy")}),NPe=e(()=>{"use strict";hfe(),t(),gfe(),IPe(),kPe(),SPe=mt((e,n)=>{ufe(e,n);var t,i,r=[];for(t of e.TreemapRows??[])"ClassDefStatement"===t.$type&&n.addClass(t.className??"",t.styleText??"");for(i of e.TreemapRows??[]){var s,a,o,l=i.item;l&&(o=i.indent?parseInt(i.indent):0,s=_Pe(l),a=0<(a=l.classSelector?n.getStylesForClass(l.classSelector):[]).length?a.join(";"):void 0,o={level:o,name:s,type:l.$type,value:l.value,classSelector:l.classSelector,cssCompiledStyles:a},r.push(o))}let c=TPe(r),h=mt((e,t)=>{for(var i of e)n.addNode(i,t),i.children&&0<i.children.length&&h(i.children,t+1)},"addNodesRecursively");h(c,0)},"populate"),_Pe=mt(e=>e.name?String(e.name):"","getItemName"),CPe={parser:{yy:void 0},parse:mt(async e=>{try{var t=await afe("treemap",e),i=(I.debug("Treemap AST:",t),CPe.parser?.yy);if(!(i instanceof xPe))throw new Error("parser.parser?.yy was not a TreemapDB. This is due to a bug within Mermaid, please report this issue at https://github.com/mermaid-js/mermaid/issues.");SPe(t,i)}catch(e){throw I.error("Error parsing treemap:",e),e}},"parse")}}),DPe=e(()=>{"use strict";Mye(),QK(),uh(),a6(),DL(),Mn(),t(),0,APe=mt((e,s,t,a)=>{let i=a.db,o=i.getConfig(),l=o.padding??10,c=i.getDiagramTitle(),h=i.getRoot(),u=Ii()["themeVariables"];if(h){var a=c?30:0,d=_ye(s),p=o.nodeWidth?10*o.nodeWidth:960,g=o.nodeHeight?10*o.nodeHeight:500,f=p,m=g+a;d.attr("viewBox",`0 0 ${f} `+m),rh(d,m,f,o.useMaxWidth);let i;try{var y=o.valueFormat||",";if("$0,0"===y)i=mt(e=>"$"+rv(",")(e),"valueFormat");else if(y.startsWith("$")&&y.includes(",")){let e=/\.\d+/.exec(y),t=e?e[0]:"";i=mt(e=>"$"+rv(","+t)(e),"valueFormat")}else if(y.startsWith("$")){let t=y.substring(1);i=mt(e=>"$"+rv(t||"")(e),"valueFormat")}else i=rv(y)}catch(e){I.error("Error creating format function:",e),i=rv(",")}let t=v2().range(["transparent",u.cScale0,u.cScale1,u.cScale2,u.cScale3,u.cScale4,u.cScale5,u.cScale6,u.cScale7,u.cScale8,u.cScale9,u.cScale10,u.cScale11]),n=v2().range(["transparent",u.cScalePeer0,u.cScalePeer1,u.cScalePeer2,u.cScalePeer3,u.cScalePeer4,u.cScalePeer5,u.cScalePeer6,u.cScalePeer7,u.cScalePeer8,u.cScalePeer9,u.cScalePeer10,u.cScalePeer11]),r=v2().range([u.cScaleLabel0,u.cScaleLabel1,u.cScaleLabel2,u.cScaleLabel3,u.cScaleLabel4,u.cScaleLabel5,u.cScaleLabel6,u.cScaleLabel7,u.cScaleLabel8,u.cScaleLabel9,u.cScaleLabel10,u.cScaleLabel11]);c&&d.append("text").attr("x",f/2).attr("y",a/2).attr("class","treemapTitle").attr("text-anchor","middle").attr("dominant-baseline","middle").text(c);m=d.append("g").attr("transform",`translate(0, ${a})`).attr("class","treemapContainer"),y=Uv(h).sum(e=>e.value??0).sort((e,t)=>(t.value??0)-(e.value??0)),f=d2().size([p,g]).paddingTop(e=>e.children&&0<e.children.length?35:0).paddingInner(l).paddingLeft(e=>e.children&&0<e.children.length?10:0).paddingRight(e=>e.children&&0<e.children.length?10:0).paddingBottom(e=>e.children&&0<e.children.length?10:0).round(!0)(y),a=f.descendants().filter(e=>e.children&&0<e.children.length),p=m.selectAll(".treemapSection").data(a).enter().append("g").attr("class","treemapSection").attr("transform",e=>`translate(${e.x0},${e.y0})`),g=(p.append("rect").attr("width",e=>e.x1-e.x0).attr("height",25).attr("class","treemapSectionHeader").attr("fill","none").attr("fill-opacity",.6).attr("stroke-width",.6).attr("style",e=>0===e.depth?"display: none;":""),p.append("clipPath").attr("id",(e,t)=>`clip-section-${s}-`+t).append("rect").attr("width",e=>Math.max(0,e.x1-e.x0-12)).attr("height",25),p.append("rect").attr("width",e=>e.x1-e.x0).attr("height",e=>e.y1-e.y0).attr("class",(e,t)=>"treemapSection section"+t).attr("fill",e=>t(e.data.name)).attr("fill-opacity",.6).attr("stroke",e=>n(e.data.name)).attr("stroke-width",2).attr("stroke-opacity",.4).attr("style",e=>{return 0===e.depth?"display: none;":(e=LL({cssCompiledStyles:e.data.cssCompiledStyles})).nodeStyles+";"+e.borderStyles.join(";")}),p.append("text").attr("class","treemapSectionLabel").attr("x",6).attr("y",12.5).attr("dominant-baseline","middle").text(e=>0===e.depth?"":e.data.name).attr("font-weight","bold").attr("style",e=>{return 0===e.depth?"display: none;":"dominant-baseline: middle; font-size: 12px; fill:"+r(e.data.name)+"; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;"+LL({cssCompiledStyles:e.data.cssCompiledStyles}).labelStyles.replace("color:","fill:")}).each(function(i){if(0!==i.depth){var n=G(this),r=i.data.name;n.text(r);let e=i.x1-i.x0,t;t=!1!==o.showValues&&i.value?e-10-30-10-6:e-6-6;var s=Math.max(15,t),a=n.node();if(a.getComputedTextLength()>s){let e=r;for(;0<e.length;){if(0===(e=r.substring(0,e.length-1)).length){n.text("..."),a.getComputedTextLength()>s&&n.text("");break}if(n.text(e+"..."),a.getComputedTextLength()<=s)break}}}}),!1!==o.showValues&&p.append("text").attr("class","treemapSectionValue").attr("x",e=>e.x1-e.x0-10).attr("y",12.5).attr("text-anchor","end").attr("dominant-baseline","middle").text(e=>e.value?i(e.value):"").attr("font-style","italic").attr("style",e=>{return 0===e.depth?"display: none;":"text-anchor: end; dominant-baseline: middle; font-size: 10px; fill:"+r(e.data.name)+"; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;"+LL({cssCompiledStyles:e.data.cssCompiledStyles}).labelStyles.replace("color:","fill:")}),f.leaves()),y=m.selectAll(".treemapLeafGroup").data(g).enter().append("g").attr("class",(e,t)=>`treemapNode treemapLeafGroup leaf${t}${e.data.classSelector?" "+e.data.classSelector:""}x`).attr("transform",e=>`translate(${e.x0},${e.y0})`),a=(y.append("rect").attr("width",e=>e.x1-e.x0).attr("height",e=>e.y1-e.y0).attr("class","treemapLeaf").attr("fill",e=>e.parent?t(e.parent.data.name):t(e.data.name)).attr("style",e=>LL({cssCompiledStyles:e.data.cssCompiledStyles}).nodeStyles).attr("fill-opacity",.3).attr("stroke",e=>e.parent?t(e.parent.data.name):t(e.data.name)).attr("stroke-width",3),y.append("clipPath").attr("id",(e,t)=>`clip-${s}-`+t).append("rect").attr("width",e=>Math.max(0,e.x1-e.x0-4)).attr("height",e=>Math.max(0,e.y1-e.y0-4)),y.append("text").attr("class","treemapLabel").attr("x",e=>(e.x1-e.x0)/2).attr("y",e=>(e.y1-e.y0)/2).attr("style",e=>{return"text-anchor: middle; dominant-baseline: middle; font-size: 38px;fill:"+r(e.data.name)+";"+LL({cssCompiledStyles:e.data.cssCompiledStyles}).labelStyles.replace("color:","fill:")}).attr("clip-path",(e,t)=>`url(#clip-${s}-${t})`).text(e=>e.data.name).each(function(e){var n=G(this),t=e.x1-e.x0,e=e.y1-e.y0,r=n.node(),s=t-8,a=e-8;if(s<10||a<10)n.style("display","none");else{let e=parseInt(n.style("font-size"),10);for(;r.getComputedTextLength()>s&&8<e;)e--,n.style("font-size",e+"px");let t=Math.max(6,Math.min(28,Math.round(.6*e))),i=e+2+t;for(;i>a&&8<e&&(e--,!((t=Math.max(6,Math.min(28,Math.round(.6*e))))<6&&8===e));)n.style("font-size",e+"px"),i=e+2+t,t<=6&&i;n.style("font-size",e+"px"),(r.getComputedTextLength()>s||e<8||a<e)&&n.style("display","none")}}),!1!==o.showValues&&y.append("text").attr("class","treemapValue").attr("x",e=>(e.x1-e.x0)/2).attr("y",function(e){return(e.y1-e.y0)/2}).attr("style",e=>{return"text-anchor: middle; dominant-baseline: hanging; font-size: 28px;fill:"+r(e.data.name)+";"+LL({cssCompiledStyles:e.data.cssCompiledStyles}).labelStyles.replace("color:","fill:")}).attr("clip-path",(e,t)=>`url(#clip-${s}-${t})`).text(e=>e.value?i(e.value):"").each(function(e){var t,i,n=G(this),r=this.parentNode;!r||(r=G(r).select(".treemapLabel")).empty()||"none"===r.style("display")||(r=parseFloat(r.style("font-size")),t=Math.max(6,Math.min(28,Math.round(.6*r))),n.style("font-size",t+"px"),r=(e.y1-e.y0)/2+r/2+2,n.attr("y",r),i=e.x1-e.x0,e=e.y1-e.y0-4,i=i-8,n.node().getComputedTextLength()>i)||e<r+t||t<6?n.style("display","none"):n.style("display",null)}),o.diagramPadding??8);OK(d,a,"flowchart",o?.useMaxWidth||!1)}},"draw"),EPe=mt(function(e,t){return t.db.getClasses()},"getClasses"),$Pe={draw:APe,getClasses:EPe}}),OPe=e(()=>{"use strict";sC(),LPe={sectionStrokeColor:"black",sectionStrokeWidth:"1",sectionFillColor:"#efefef",leafStrokeColor:"black",leafStrokeWidth:"1",leafFillColor:"#efefef",labelColor:"black",labelFontSize:"12px",valueFontSize:"10px",valueColor:"black",titleColor:"black",titleFontSize:"14px"},RPe=mt(({treemap:e}={})=>{e=E_(LPe,e);return`
|
||
.treemapNode.section {
|
||
stroke: ${e.sectionStrokeColor};
|
||
stroke-width: ${e.sectionStrokeWidth};
|
||
fill: ${e.sectionFillColor};
|
||
}
|
||
.treemapNode.leaf {
|
||
stroke: ${e.leafStrokeColor};
|
||
stroke-width: ${e.leafStrokeWidth};
|
||
fill: ${e.leafFillColor};
|
||
}
|
||
.treemapLabel {
|
||
fill: ${e.labelColor};
|
||
font-size: ${e.labelFontSize};
|
||
}
|
||
.treemapValue {
|
||
fill: ${e.valueColor};
|
||
font-size: ${e.valueFontSize};
|
||
}
|
||
.treemapTitle {
|
||
fill: ${e.titleColor};
|
||
font-size: ${e.titleFontSize};
|
||
}
|
||
`},"getStyles"),MPe=RPe}),PPe={};V(PPe,{diagram:()=>BPe});var BPe,FPe=e(()=>{"use strict";kPe(),NPe(),DPe(),OPe(),BPe={parser:CPe,get db(){return new xPe},renderer:$Pe,styles:MPe}}),W={},jPe=(V(W,{default:()=>eje}),Ve(),zi(),qi(),{id:"c4",detector:mt(e=>/^\s*C4Context|C4Container|C4Component|C4Dynamic|C4Deployment/.test(e),"detector"),loader:mt(async()=>{var e=(await Promise.resolve().then(()=>(MC(),LC)))["diagram"];return{id:"c4",diagram:e}},"loader")}),zPe={id:"flowchart",detector:mt((e,t)=>"dagre-wrapper"!==t?.flowchart?.defaultRenderer&&"elk"!==t?.flowchart?.defaultRenderer&&/^\s*graph/.test(e),"detector"),loader:mt(async()=>{var e=(await Promise.resolve().then(()=>(cZ(),rZ)))["diagram"];return{id:"flowchart",diagram:e}},"loader")},HPe="flowchart-v2",e=mt((e,t)=>"dagre-d3"!==t?.flowchart?.defaultRenderer&&("elk"===t?.flowchart?.defaultRenderer&&(t.layout="elk"),!(!/^\s*graph/.test(e)||"dagre-wrapper"!==t?.flowchart?.defaultRenderer)||/^\s*flowchart/.test(e)),"detector"),V=mt(async()=>{var e=(await Promise.resolve().then(()=>(cZ(),rZ)))["diagram"];return{id:HPe,diagram:e}},"loader"),UPe={id:HPe,detector:e,loader:V},qPe={id:"er",detector:mt(e=>/^\s*erDiagram/.test(e),"detector"),loader:mt(async()=>{var e=(await Promise.resolve().then(()=>(wZ(),vZ)))["diagram"];return{id:"er",diagram:e}},"loader")},WPe={id:"gitGraph",detector:mt(e=>/^\s*gitGraph/.test(e),"detector"),loader:mt(async()=>{var e=(await Promise.resolve().then(()=>(Ome(),Mme)))["diagram"];return{id:"gitGraph",diagram:e}},"loader")},VPe={id:"gantt",detector:mt(e=>/^\s*gantt/.test(e),"detector"),loader:mt(async()=>{var e=(await Promise.resolve().then(()=>(Eye(),bye)))["diagram"];return{id:"gantt",diagram:e}},"loader")},GPe={id:"info",detector:mt(e=>/^\s*info/.test(e),"detector"),loader:mt(async()=>{var e=(await Promise.resolve().then(()=>(ebe(),Nye)))["diagram"];return{id:"info",diagram:e}},"loader")},YPe={id:"pie",detector:mt(e=>/^\s*pie/.test(e),"detector"),loader:mt(async()=>{var e=(await Promise.resolve().then(()=>(ube(),sbe)))["diagram"];return{id:"pie",diagram:e}},"loader")},XPe="quadrantChart",e=mt(e=>/^\s*quadrantChart/.test(e),"detector"),V=mt(async()=>{var e=(await Promise.resolve().then(()=>(Vbe(),Hbe)))["diagram"];return{id:XPe,diagram:e}},"loader"),KPe={id:XPe,detector:e,loader:V},ZPe={id:"xychart",detector:mt(e=>/^\s*xychart-beta/.test(e),"detector"),loader:mt(async()=>{var e=(await Promise.resolve().then(()=>(c2e(),i2e)))["diagram"];return{id:"xychart",diagram:e}},"loader")},QPe="requirement",e=mt(e=>/^\s*requirement(Diagram)?/.test(e),"detector"),V=mt(async()=>{var e=(await Promise.resolve().then(()=>(n4e(),m2e)))["diagram"];return{id:QPe,diagram:e}},"loader"),JPe={id:QPe,detector:e,loader:V},eBe={id:"sequence",detector:mt(e=>/^\s*sequenceDiagram/.test(e),"detector"),loader:mt(async()=>{var e=(await Promise.resolve().then(()=>(G4e(),R4e)))["diagram"];return{id:"sequence",diagram:e}},"loader")},tBe={id:"class",detector:mt((e,t)=>"dagre-wrapper"!==t?.class?.defaultRenderer&&/^\s*classDiagram/.test(e),"detector"),loader:mt(async()=>{var e=(await Promise.resolve().then(()=>(txe(),J4e)))["diagram"];return{id:"class",diagram:e}},"loader")},iBe="classDiagram",e=mt((e,t)=>!(!/^\s*classDiagram/.test(e)||"dagre-wrapper"!==t?.class?.defaultRenderer)||/^\s*classDiagram-v2/.test(e),"detector"),V=mt(async()=>{var e=(await Promise.resolve().then(()=>(Uxe(),ixe)))["diagram"];return{id:iBe,diagram:e}},"loader"),nBe={id:iBe,detector:e,loader:V},rBe={id:"state",detector:mt((e,t)=>"dagre-wrapper"!==t?.state?.defaultRenderer&&/^\s*stateDiagram/.test(e),"detector"),loader:mt(async()=>{var e=(await Promise.resolve().then(()=>(z3e(),F3e)))["diagram"];return{id:"state",diagram:e}},"loader")},sBe="stateDiagram",e=mt((e,t)=>!!(/^\s*stateDiagram-v2/.test(e)||/^\s*stateDiagram/.test(e)&&"dagre-wrapper"===t?.state?.defaultRenderer),"detector"),V=mt(async()=>{var e=(await Promise.resolve().then(()=>(x5e(),H3e)))["diagram"];return{id:sBe,diagram:e}},"loader"),aBe={id:sBe,detector:e,loader:V},oBe={id:"journey",detector:mt(e=>/^\s*journey/.test(e),"detector"),loader:mt(async()=>{var e=(await Promise.resolve().then(()=>(H5e(),B5e)))["diagram"];return{id:"journey",diagram:e}},"loader")};t(),Mye(),uh();var e={draw:mt((e,t,i)=>{I.debug(`rendering svg for syntax error
|
||
`);var t=_ye(t),n=t.append("g");t.attr("viewBox","0 0 2412 512"),rh(t,100,512,!0),n.append("path").attr("class","error-icon").attr("d","m411.313,123.313c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32-9.375,9.375-20.688-20.688c-12.484-12.5-32.766-12.5-45.25,0l-16,16c-1.261,1.261-2.304,2.648-3.31,4.051-21.739-8.561-45.324-13.426-70.065-13.426-105.867,0-192,86.133-192,192s86.133,192 192,192 192-86.133 192-192c0-24.741-4.864-48.327-13.426-70.065 1.402-1.007 2.79-2.049 4.051-3.31l16-16c12.5-12.492 12.5-32.758 0-45.25l-20.688-20.688 9.375-9.375 32.001-31.999zm-219.313,100.687c-52.938,0-96,43.063-96,96 0,8.836-7.164,16-16,16s-16-7.164-16-16c0-70.578 57.422-128 128-128 8.836,0 16,7.164 16,16s-7.164,16-16,16z"),n.append("path").attr("class","error-icon").attr("d","m459.02,148.98c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l16,16c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16.001-16z"),n.append("path").attr("class","error-icon").attr("d","m340.395,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16-16c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l15.999,16z"),n.append("path").attr("class","error-icon").attr("d","m400,64c8.844,0 16-7.164 16-16v-32c0-8.836-7.156-16-16-16-8.844,0-16,7.164-16,16v32c0,8.836 7.156,16 16,16z"),n.append("path").attr("class","error-icon").attr("d","m496,96.586h-32c-8.844,0-16,7.164-16,16 0,8.836 7.156,16 16,16h32c8.844,0 16-7.164 16-16 0-8.836-7.156-16-16-16z"),n.append("path").attr("class","error-icon").attr("d","m436.98,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688l32-32c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32c-6.251,6.25-6.251,16.375-0.001,22.625z"),n.append("text").attr("class","error-text").attr("x",1440).attr("y",250).attr("font-size","150px").style("text-anchor","middle").text("Syntax error in text"),n.append("text").attr("class","error-text").attr("x",1250).attr("y",400).attr("font-size","100px").style("text-anchor","middle").text("mermaid version "+i)},"draw")},lBe=e,cBe={db:{},renderer:e,parser:{parse:mt(()=>{},"parse")}},hBe="flowchart-elk",V=mt((e,t={})=>!!(/^\s*flowchart-elk/.test(e)||/^\s*flowchart|graph/.test(e)&&"elk"===t?.flowchart?.defaultRenderer)&&(t.layout="elk",!0),"detector"),e=mt(async()=>{var e=(await Promise.resolve().then(()=>(cZ(),rZ)))["diagram"];return{id:hBe,diagram:e}},"loader"),uBe={id:hBe,detector:V,loader:e},dBe={id:"timeline",detector:mt(e=>/^\s*timeline/.test(e),"detector"),loader:mt(async()=>{var e=(await Promise.resolve().then(()=>(zwe(),Dwe)))["diagram"];return{id:"timeline",diagram:e}},"loader")},pBe={id:"mindmap",detector:mt(e=>/^\s*mindmap/.test(e),"detector"),loader:mt(async()=>{var e=(await Promise.resolve().then(()=>(CLe(),eLe)))["diagram"];return{id:"mindmap",diagram:e}},"loader")},gBe={id:"kanban",detector:mt(e=>/^\s*kanban/.test(e),"detector"),loader:mt(async()=>{var e=(await Promise.resolve().then(()=>(GLe(),RLe)))["diagram"];return{id:"kanban",diagram:e}},"loader")},fBe={id:"sankey",detector:mt(e=>/^\s*sankey-beta/.test(e),"detector"),loader:mt(async()=>{var e=(await Promise.resolve().then(()=>(_Me(),aMe)))["diagram"];return{id:"sankey",diagram:e}},"loader")},mBe={id:"packet",detector:mt(e=>/^\s*packet(-beta)?/.test(e),"detector"),loader:mt(async()=>{var e=(await Promise.resolve().then(()=>(YMe(),LMe)))["diagram"];return{id:"packet",diagram:e}},"loader")},yBe={id:"radar",detector:mt(e=>/^\s*radar-beta/.test(e),"detector"),loader:mt(async()=>{var e=(await Promise.resolve().then(()=>(fIe(),uIe)))["diagram"];return{id:"radar",diagram:e}},"loader")},bBe={id:"block",detector:mt(e=>/^\s*block-beta/.test(e),"detector"),loader:mt(async()=>{var e=(await Promise.resolve().then(()=>(kOe(),iOe)))["diagram"];return{id:"block",diagram:e}},"loader")},vBe="architecture",V=mt(e=>/^\s*architecture/.test(e),"detector"),e=mt(async()=>{var e=(await Promise.resolve().then(()=>(wPe(),bPe)))["diagram"];return{id:vBe,diagram:e}},"loader"),xBe={id:vBe,detector:V,loader:e},wBe=(qi(),Cu(),{id:"treemap",detector:mt(e=>/^\s*treemap/.test(e),"detector"),loader:mt(async()=>{var e=(await Promise.resolve().then(()=>(FPe(),PPe)))["diagram"];return{id:"treemap",diagram:e}},"loader")}),kBe=!1,TBe=mt(()=>{kBe||(kBe=!0,Ih("error",cBe,e=>"error"===e.toLowerCase().trim()),Ih("---",{db:{clear:mt(()=>{},"clear")},styles:{},renderer:{draw:mt(()=>{},"draw")},parser:{parse:mt(()=>{throw new Error("Diagrams beginning with --- are not valid. If you were trying to use a YAML front-matter, please ensure that you've correctly opened and closed the YAML front-matter with un-indented `---` blocks")},"parse")},init:mt(()=>null,"init")},e=>e.toLowerCase().trimStart().startsWith("---")),et(uBe,pBe,xBe),et(jPe,gBe,nBe,tBe,qPe,VPe,GPe,YPe,JPe,eBe,UPe,zPe,dBe,WPe,aBe,rBe,oBe,KPe,fBe,mBe,ZPe,bBe,yBe,wBe))},"addDiagrams"),SBe=(t(),qi(),Cu(),mt(async()=>{I.debug("Loading registered diagrams");var e=(await Promise.allSettled(Object.entries(Qe).map(async([t,{detector:e,loader:i}])=>{if(i)try{Nh(t)}catch{try{var{diagram:n,id:r}=await i();Ih(r,n,e)}catch(e){throw I.error(`Failed to load external diagram with key ${t}. Removing from detectors.`),delete Qe[t],e}}}))).filter(e=>"rejected"===e.status);if(0<e.length){I.error(`Failed to load ${e.length} external diagrams`);for(var t of e)I.error(t);throw new Error(`Failed to load ${e.length} external diagrams`)}},"loadRegisteredDiagrams")),_Be=(t(),a6(),"comm"),CBe="rule",ABe="decl",EBe=Math.abs,$Be=String.fromCharCode;function LBe(e){return e.trim()}function RBe(e,t,i){return e.replace(t,i)}function MBe(e,t,i){return e.indexOf(t,i)}function IBe(e,t){return 0|e.charCodeAt(t)}function NBe(e,t,i){return e.slice(t,i)}function DBe(e){return e.length}function OBe(e){return e.length}function PBe(e,t){return t.push(e),e}mt(LBe,"trim"),mt(RBe,"replace"),mt(MBe,"indexof"),mt(IBe,"charat"),mt(NBe,"substr"),mt(DBe,"strlen"),mt(OBe,"sizeof"),mt(PBe,"append");var BBe=1,FBe=1,jBe=0,zBe=0,HBe=0,UBe="";function qBe(e,t,i,n,r,s,a,o){return{value:e,root:t,parent:i,type:n,props:r,children:s,line:BBe,column:FBe,length:a,return:"",siblings:o}}function WBe(){return HBe}function VBe(){return HBe=0<zBe?IBe(UBe,--zBe):0,FBe--,10===HBe&&(FBe=1,BBe--),HBe}function GBe(){return HBe=zBe<jBe?IBe(UBe,zBe++):0,FBe++,10===HBe&&(FBe=1,BBe++),HBe}function YBe(){return IBe(UBe,zBe)}function XBe(){return zBe}function KBe(e,t){return NBe(UBe,e,t)}function ZBe(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function QBe(e){return BBe=FBe=1,jBe=DBe(UBe=e),zBe=0,[]}function JBe(e){return UBe="",e}function eFe(e){return LBe(KBe(zBe-1,nFe(91===e?e+2:40===e?e+1:e)))}function tFe(e){for(;(HBe=YBe())&&HBe<33;)GBe();return 2<ZBe(e)||3<ZBe(HBe)?"":" "}function iFe(e,t){for(;--t&&GBe()&&!(HBe<48||102<HBe||57<HBe&&HBe<65||70<HBe&&HBe<97););return KBe(e,zBe+(t<6&&32==YBe()&&32==GBe()))}function nFe(e){for(;GBe();)switch(HBe){case e:return zBe;case 34:case 39:34!==e&&39!==e&&nFe(HBe);break;case 40:41===e&&nFe(e);break;case 92:GBe()}return zBe}function rFe(e,t){for(;GBe()&&e+HBe!==57&&(e+HBe!==84||47!==YBe()););return"/*"+KBe(t,zBe-1)+"*"+$Be(47===e?e:GBe())}function sFe(e){for(;!ZBe(YBe());)GBe();return KBe(e,zBe)}function aFe(e){return JBe(oFe("",null,null,null,[""],e=QBe(e),0,[0],e))}function oFe(e,t,i,n,r,s,a,o,l){for(var c,h,u,d=0,p=0,g=a,f=0,m=0,y=1,b=1,v=1,x=0,w="",k=r,T=w;b;)switch(c=x,x=GBe()){case 40:if(108!=c&&58==IBe(T,g-1)){-1!=MBe(T+=RBe(eFe(x),"&","&\f"),"&\f",EBe(d?o[d-1]:0))&&(v=-1);break}case 34:case 39:case 91:T+=eFe(x);break;case 9:case 10:case 13:case 32:T+=tFe(c);break;case 92:T+=iFe(zBe-1,7);continue;case 47:switch(YBe()){case 42:case 47:PBe(cFe(rFe(GBe(),zBe),t,i,l),l),5!=ZBe(c||1)&&5!=ZBe(YBe()||1)||!DBe(T)||" "===NBe(T,-1,void 0)||(T+=" ");break;default:T+="/"}break;case 123*y:o[d++]=DBe(T)*v;case 125*y:case 59:case 0:switch(x){case 0:case 125:b=0;case 59+p:-1==v&&(T=RBe(T,/\f/g,"")),0<m&&(DBe(T)-g||0===y&&47===c)&&PBe(32<m?hFe(T+";",n,i,g-1,l):hFe(RBe(T," ","")+";",n,i,g-2,l),l);break;case 59:T+=";";default:if(PBe(u=lFe(T,t,i,d,p,r,o,w,k=[],h=[],g,s),s),123===x)if(0===p)oFe(T,t,u,u,k,s,g,o,h);else{switch(f){case 99:if(110===IBe(T,3))break;case 108:if(97===IBe(T,2))break;default:p=0;case 100:case 109:case 115:}p?oFe(e,u,u,n&&PBe(lFe(e,u,u,0,0,r,o,w,r,k=[],g,h),h),r,h,g,o,n?k:h):oFe(T,u,u,u,[""],h,0,o,h)}}d=p=m=0,y=v=1,w=T="",g=a;break;case 58:g=1+DBe(T),m=c;default:if(y<1)if(123==x)--y;else if(125==x&&0==y++&&125==VBe())continue;switch(T+=$Be(x),x*y){case 38:v=0<p?1:(T+="\f",-1);break;case 44:o[d++]=(DBe(T)-1)*v,v=1;break;case 64:45===YBe()&&(T+=eFe(GBe())),f=YBe(),p=g=DBe(w=T+=sFe(zBe)),x++;break;case 45:45===c&&2==DBe(T)&&(y=0)}}return s}function lFe(e,t,i,n,r,s,a,o,l,c,h,u){for(var d,p=r-1,g=0===r?s:[""],f=OBe(g),m=0,y=0;m<n;++m)for(var b,v=0,x=NBe(e,p+1,p=EBe(d=a[m]));v<f;++v)(b=LBe(0<d?g[v]+" "+x:RBe(x,/&\f/g,g[v])))&&(l[y++]=b);return qBe(e,t,i,0===r?CBe:o,l,c,h,u)}function cFe(e,t,i,n){return qBe(e,t,i,_Be,$Be(HBe),NBe(e,2,-2),0,n)}function hFe(e,t,i,n,r){return qBe(e,t,i,ABe,NBe(e,0,n),NBe(e,n+1,-1),n,r)}function uFe(e,t){for(var i="",n=0;n<e.length;n++)i+=t(e[n],n,e,t)||"";return i}function dFe(e,t,i,n){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case"@namespace":case ABe:return e.return=e.return||e.value;case _Be:return"";case"@keyframes":return e.return=e.value+"{"+uFe(e.children,n)+"}";case CBe:if(!DBe(e.value=e.props.join(",")))return""}return DBe(i=uFe(e.children,n))?e.return=e.value+"{"+i+"}":""}mt(qBe,"node"),mt(WBe,"char"),mt(VBe,"prev"),mt(GBe,"next"),mt(YBe,"peek"),mt(XBe,"caret"),mt(KBe,"slice"),mt(ZBe,"token"),mt(QBe,"alloc"),mt(JBe,"dealloc"),mt(eFe,"delimit"),mt(tFe,"whitespace"),mt(iFe,"escaping"),mt(nFe,"delimiter"),mt(rFe,"commenter"),mt(sFe,"identifier"),mt(aFe,"compile"),mt(oFe,"parse"),mt(lFe,"ruleset"),mt(cFe,"comment"),mt(hFe,"declaration"),mt(uFe,"serialize"),mt(dFe,"stringify"),Or(),fq(),Lye();function pFe(e,t){e.attr("role","graphics-document document"),""!==t&&e.attr("aria-roledescription",t)}function gFe(e,t,i,n){var r;void 0!==e.insert&&(i&&(e.attr("aria-describedby",r="chart-desc-"+n),e.insert("desc",":first-child").attr("id",r).text(i)),t)&&(e.attr("aria-labelledby",r="chart-title-"+n),e.insert("title",":first-child").attr("id",r).text(t))}mt(pFe,"setA11yDiagramInfo"),mt(gFe,"addSVGa11yTitleDescription"),Vi(),Mn(),Mn(),Cu(),qi(),Ui(),sC();var fFe=class tje{constructor(e,t,i,n,r){this.type=e,this.text=t,this.db=i,this.parser=n,this.renderer=r}static{mt(this,"Diagram")}static async fromText(e,t={}){var i=Ii(),n=Je(e,i);e=iC(e)+`
|
||
`;try{Nh(n)}catch{var r=it(n);if(!r)throw new Ze(`Diagram ${n} not found.`);var{id:r,diagram:s}=await r();Ih(r,s)}var{db:r,parser:s,renderer:a,init:o}=Nh(n);return s.parser&&(s.parser.yy=r),r.clear?.(),o?.(i),t.title&&r.setDiagramTitle?.(t.title),await s.parse(e),new tje(n,e,r,s,a)}async render(e,t){await this.renderer.draw(this.text,e,t,this)}getParser(){return this.parser}getType(){return this.type}},mFe=(hh(),[]),yFe=mt(()=>{mFe.forEach(e=>{e()}),mFe=[]},"attachFunctions"),bFe=(t(),mt(e=>e.replace(/^\s*%%(?!{)[^\n]+\n?/gm,"").trimStart(),"cleanupComments"));function vFe(e){var t,i,n=e.match(Ye);return n?(i={},(t="object"!=typeof(t=FE(n[1],{schema:BE})??{})||Array.isArray(t)?{}:t).displayMode&&(i.displayMode=t.displayMode.toString()),t.title&&(i.title=t.title.toString()),t.config&&(i.config=t.config),{text:e.slice(n[0].length),metadata:i}):{text:e,metadata:{}}}Hi(),jE(),mt(vFe,"extractFrontMatter"),sC();var xFe=mt(e=>e.replace(/\r\n?/g,`
|
||
`).replace(/<(\w+)([^>]*)>/g,(e,t,i)=>"<"+t+i.replace(/="([^"]*)"/g,"='$1'")+">"),"cleanupText"),wFe=mt(e=>{var{text:e,metadata:t}=vFe(e),{displayMode:t,title:i,config:n={}}=t;return t&&(n.gantt||(n.gantt={}),n.gantt.displayMode=t),{title:i,config:n,text:e}},"processFrontmatter"),kFe=mt(e=>{var t=tC.detectInit(e)??{},i=tC.detectDirective(e,"wrap");return Array.isArray(i)?t.wrap=i.some(({type:e})=>"wrap"===e):"wrap"===i?.type&&(t.wrap=!0),{text:O_(e),directive:t}},"processDirectives");function TFe(e){var t=xFe(e),t=wFe(t),i=kFe(t.text),n=E_(t.config,i.directive);return{code:e=bFe(i.text),title:t.title,config:n}}function SFe(e){e=(new TextEncoder).encode(e),e=Array.from(e,e=>String.fromCodePoint(e)).join("");return btoa(e)}mt(TFe,"preprocessDiagram"),dh(),En(),sC(),mt(SFe,"toBase64");var _Fe=["foreignobject"],CFe=["dominant-baseline"];function AFe(e){e=TFe(e);return Oi(),Di(e.config??{}),e}async function EFe(e,t){TBe();try{var{code:i,config:n}=AFe(e);return{diagramType:(await BFe(i)).type,config:n}}catch(e){if(t?.suppressErrors)return!1;throw e}}mt(AFe,"processAndSetConfigs"),mt(EFe,"parse");var $Fe=mt((e,t,i=[])=>`
|
||
.${e} ${t} { ${i.join(" !important; ")} !important; }`,"cssImportantStyles"),LFe=mt((t,i=new Map)=>{let n="";if(void 0!==t.themeCSS&&(n+=`
|
||
`+t.themeCSS),void 0!==t.fontFamily&&(n+=`
|
||
:root { --mermaid-font-family: ${t.fontFamily}}`),void 0!==t.altFontFamily&&(n+=`
|
||
:root { --mermaid-alt-font-family: ${t.altFontFamily}}`),i instanceof Map){let e=t.htmlLabels??t.flowchart?.htmlLabels?["> *","span"]:["rect","polygon","ellipse","circle","path"];i.forEach(t=>{gq(t.styles)||e.forEach(e=>{n+=$Fe(t.id,e,t.styles)}),gq(t.textStyles)||(n+=$Fe(t.id,"tspan",(t?.textStyles||[]).map(e=>e.replace("color","fill"))))})}return n},"createCssStyles"),RFe=mt((e,t,i,n)=>{i=LFe(e,i);return uFe(aFe(n+`{${ch(t,i,e.themeVariables)}}`),dFe)},"createUserStyles"),MFe=mt((e="",t,i)=>{let n=e;return i||t||(n=n.replace(/marker-end="url\([\d+./:=?A-Za-z-]*?#/g,'marker-end="url(#')),n=(n=nC(n)).replace(/<br>/g,"<br/>")},"cleanUpSvgCode"),IFe=mt((e="",t)=>{return`<iframe style="width:100%;height:${t?.viewBox?.baseVal?.height?t.viewBox.baseVal.height+"px":"100%"};border:0;margin:0;" src="data:text/html;charset=UTF-8;base64,${SFe(`<body style="margin:0">${e}</body>`)}" sandbox="allow-top-navigation-by-user-activation allow-popups">
|
||
The "iframe" tag is not supported by your browser.
|
||
</iframe>`},"putIntoIFrame"),NFe=mt((e,t,i,n,r)=>{var s=e.append("div"),i=(s.attr("id",i),n&&s.attr("style",n),s.append("svg").attr("id",t).attr("width","100%").attr("xmlns","http://www.w3.org/2000/svg"));return r&&i.attr("xmlns:xlink",r),i.append("g"),e},"appendDivSvgG");function DFe(e,t){return e.append("iframe").attr("id",t).attr("style","width: 100%; height: 100%;").attr("sandbox","")}mt(DFe,"sandboxedIframe");var OFe=mt((e,t,i,n)=>{e.getElementById(t)?.remove(),e.getElementById(i)?.remove(),e.getElementById(n)?.remove()},"removeExistingElements"),V=mt(async function(t,i,e){TBe();var n=AFe(i),r=(i=n.code,Ii());I.debug(r),i.length>(r?.maxTextSize??5e4)&&(i="graph TB;a[Maximum text size in diagram exceeded];style a fill:#faa");let s="#"+t,a="i"+t,o="#"+a,l="d"+t,c="#"+l,h=mt(()=>{var e=G(d?o:c).node();e&&"remove"in e&&e.remove()},"removeTempElements"),u=G("body"),d="sandbox"===r.securityLevel,p="loose"===r.securityLevel,g=r.fontFamily;void 0!==e?(e&&(e.innerHTML=""),d?(y=DFe(G(e),a),(u=G(y.nodes()[0].contentDocument.body)).node().style.margin=0):u=G(e),NFe(u,t,l,"font-family: "+g,"http://www.w3.org/1999/xlink")):(OFe(document,t,l,a),d?(y=DFe(G("body"),a),(u=G(y.nodes()[0].contentDocument.body)).node().style.margin=0):u=G("body"),NFe(u,t,l));let f,m;try{f=await fFe.fromText(i,{title:n.title})}catch(e){if(r.suppressErrorRendering)throw h(),e;f=await fFe.fromText("error"),m=e}var e=u.select(c).node(),y=f.type,n=e.firstChild,e=n.firstChild,b=f.renderer.getClasses?.(i,f),b=RFe(r,y,b,s),v=document.createElement("style");v.innerHTML=b,n.insertBefore(v,e);try{await f.renderer.draw(i,t,wye.version,f)}catch(e){throw r.suppressErrorRendering?h():lBe.draw(i,t,wye.version),e}FFe(y,u.select(c+" svg"),f.db.getAccTitle?.(),f.db.getAccDescription?.()),u.select(`[id="${t}"]`).selectAll("foreignobject > *").attr("xmlns","http://www.w3.org/1999/xhtml");let x=u.select(c).node().innerHTML;if(I.debug("config.arrowMarkerAbsolute",r.arrowMarkerAbsolute),x=MFe(x,d,qc(r.arrowMarkerAbsolute)),d?(b=u.select(c+" svg").node(),x=IFe(x,b)):p||(x=Dr.sanitize(x,{ADD_TAGS:_Fe,ADD_ATTR:CFe,HTML_INTEGRATION_POINTS:{foreignobject:!0}})),yFe(),m)throw m;return h(),{diagramType:y,svg:x,bindFunctions:f.db.bindFunctions}},"render");function PFe(e={}){e=at({},e),e?.fontFamily&&!e.themeVariables?.fontFamily&&(e.themeVariables||(e.themeVariables={}),e.themeVariables.fontFamily=e.fontFamily),$i(e),e?.theme&&e.theme in gi?e.themeVariables=gi[e.theme].getThemeVariables(e.themeVariables):e&&(e.themeVariables=gi.default.getThemeVariables(e.themeVariables)),e="object"==typeof e?Ei(e):Ri();T(e.logLevel),TBe()}mt(PFe,"initialize");var BFe=mt((e,t={})=>{e=TFe(e).code;return fFe.fromText(e,t)},"getDiagramFromText");function FFe(e,t,i,n){pFe(t,e),gFe(t,i,n,t.attr("id"))}mt(FFe,"addA11yInfo");var jFe=Object.freeze({render:V,parse:EFe,getDiagramFromText:BFe,initialize:PFe,getConfig:Ii,setConfig:Mi,getSiteConfig:Ri,updateSiteConfig:Li,reset:mt(()=>{Oi()},"reset"),globalReset:mt(()=>{Oi(ki)},"globalReset"),defaultConfig:ki}),zFe=(T(Ii().logLevel),Oi(Ii()),ZK(),sC(),mt((e,t,i)=>{I.warn(e),A_(e)?(i&&i(e.str,e.hash),t.push({...e,message:e.str,error:e})):(i&&i(e),e instanceof Error&&t.push({str:e.message,message:e.message,hash:e.name,error:e}))},"handleError")),HFe=mt(async function(t={querySelector:".mermaid"}){try{await UFe(t)}catch(e){if(A_(e)&&I.error(e.str),JFe.parseError&&JFe.parseError(e),!t.suppressErrors)throw I.error("Use the suppressErrors option to suppress these errors"),e}},"run"),UFe=mt(async function({postRenderCallback:e,querySelector:t,nodes:i}={querySelector:".mermaid"}){var n=jFe.getConfig();I.debug(`${e?"":"No "}Callback function found`);let r;if(i)r=i;else{if(!t)throw new Error("Nodes and querySelector are both undefined");r=document.querySelectorAll(t)}I.debug(`Found ${r.length} diagrams`),void 0!==n?.startOnLoad&&(I.debug("Start On Load: "+n?.startOnLoad),jFe.updateSiteConfig({startOnLoad:n?.startOnLoad}));var s,a=new tC.InitIDGenerator(n.deterministicIds,n.deterministicIDSeed),o=[];for(s of Array.from(r))if(I.info("Rendering diagram: "+s.id),!s.getAttribute("data-processed")){s.setAttribute("data-processed","true");var l="mermaid-"+a.next(),c=s.innerHTML,h=(c=Ge(tC.entityDecode(c)).trim().replace(/<br\s*\/?>/gi,"<br/>"),tC.detectInit(c));h&&I.debug("Detected early reinit: ",h);try{var{svg:u,bindFunctions:d}=await ZFe(l,c,s);s.innerHTML=u,e&&await e(l),d&&d(s)}catch(e){zFe(e,o,JFe.parseError)}}if(0<o.length)throw o[0]},"runThrowsErrors"),qFe=mt(function(e){jFe.initialize(e)},"initialize"),e=mt(async function(e,t,i){I.warn("mermaid.init is deprecated. Please use run instead."),e&&qFe(e);e={postRenderCallback:i,querySelector:".mermaid"};"string"==typeof t?e.querySelector=t:t&&(t instanceof HTMLElement?e.nodes=[t]:e.nodes=t),await HFe(e)},"init"),V=mt(async(e,{lazyLoad:t=!0}={})=>{TBe(),et(...e),!1===t&&await SBe()},"registerExternalDiagrams"),WFe=mt(function(){var e;JFe.startOnLoad&&(e=jFe.getConfig()["startOnLoad"],e)&&JFe.run().catch(e=>I.error("Mermaid failed to initialize",e))},"contentLoaded"),VFe=(typeof document<"u"&&window.addEventListener("load",WFe,!1),mt(function(e){JFe.parseError=e},"setParseErrorHandler")),GFe=[],YFe=!1,XFe=mt(async()=>{if(!YFe){for(YFe=!0;0<GFe.length;){var e=GFe.shift();if(e)try{await e()}catch(e){I.error("Error executing queue",e)}}YFe=!1}},"executeQueue"),KFe=mt(async(s,a)=>new Promise((n,r)=>{var e=mt(()=>new Promise((t,i)=>{jFe.parse(s,a).then(e=>{t(e),n(e)},e=>{I.error("Error parsing",e),JFe.parseError?.(e),i(e),r(e)})}),"performCall");GFe.push(e),XFe().catch(r)}),"parse"),ZFe=mt((s,a,o)=>new Promise((n,r)=>{var e=mt(()=>new Promise((t,i)=>{jFe.render(s,a,o).then(e=>{t(e),n(e)},e=>{I.error("Error parsing",e),JFe.parseError?.(e),i(e),r(e)})}),"performCall");GFe.push(e),XFe().catch(r)}),"render"),QFe=mt(()=>Object.keys(Qe).map(e=>({id:e})),"getRegisteredDiagramsMetadata"),JFe={startOnLoad:!0,mermaidAPI:jFe,parse:KFe,render:ZFe,init:e,run:HFe,registerExternalDiagrams:V,registerLayoutLoaders:IK,initialize:qFe,parseError:void 0,contentLoaded:WFe,setParseErrorHandler:VFe,detectType:Je,registerIconPacks:Pe,getRegisteredDiagramsMetadata:QFe},eje=JFe;return KFe=W,ee(j({},"__esModule",{value:!0}),KFe)})(),globalThis.mermaid=globalThis.__esbuild_esm_mermaid_nm.mermaid.default,"undefined"!=typeof window&&(window.markedMermaid=markedMermaid),"undefined"!=typeof module&&module.exports&&(module.exports=markedMermaid),!function(){function e(e){return e}function t(i){return function(e){var t=c("img",["image-output"]);return t.src="data:image/"+i+";base64,"+u(e).replace(/\n/g,""),t}}function i(){var t=this,e=d.display_priority.filter(function(e){return(t.raw.data||t.raw)[e]})[0];return e&&d.display[e]?d.display[e](t.raw[e]||t.raw.data[e]):c("div",["empty-output"])}function n(){var e=c("pre",["pyerr"]),t=this.raw.traceback.join("\n");return e.innerHTML=d.highlighter(d.ansi(h(t)),e),e}var r,s,a,o=this,l=void 0!==o.window,c=(s=(l?o:(r=new(require("jsdom").JSDOM)).window).document,function(e,t){e=s.createElement(e);return e.className=(t||[]).map(function(e){return d.prefix+e}).join(" "),e}),h=function(e){return e.replace(/</g,"<").replace(/>/g,">")},u=function(e){return e.join?e.map(u).join(""):e},d={prefix:"nb-",markdown:(a=o.marked||"function"==typeof require&&require("marked"))&&a.parse||e,ansi:(a=o.ansi_up||"function"==typeof require&&require("ansi_up"))&&a.ansi_to_html||e,sanitizer:(a=o.DOMPurify||"function"==typeof require&&require("dompurify"),(l?a&&a.sanitize:a(r.window).sanitize)||e),highlighter:e,VERSION:"0.7.0",Input:function(e,t){this.raw=e,this.cell=t}},p=(d.Input.prototype.render=function(){var e,t,i,n;return this.raw.length?(e=c("div",["input"]),"number"==typeof(n=this.cell).number&&e.setAttribute("data-prompt-number",this.cell.number),t=c("pre"),i=c("code"),n=n.worksheet.notebook.metadata,n=this.cell.raw.language||n.language||n.kernelspec&&n.kernelspec.language||n.language_info&&n.language_info.name,i.setAttribute("data-language",n),i.className="lang-"+n,i.innerHTML=d.highlighter(h(u(this.raw)),t,i,n),t.appendChild(i),e.appendChild(t),this.el=e):c("div")},d.display={},d.display.text=function(e){var t=c("pre",["text-output"]);return t.innerHTML=d.highlighter(d.ansi(u(e)),t),t},d.display["text/plain"]=d.display.text,d.display.html=function(e){var t=c("div",["html-output"]);return t.innerHTML=d.sanitizer(u(e)),t},d.display["text/html"]=d.display.html,d.display.marked=function(e){return d.display.html(d.markdown(u(e)))},d.display["text/markdown"]=d.display.marked,d.display.svg=function(e){var t=c("div",["svg-output"]);return t.innerHTML=u(e),t},d.display["text/svg+xml"]=d.display.svg,d.display["image/svg+xml"]=d.display.svg,d.display.latex=function(e){var t=c("div",["latex-output"]);return t.innerHTML=u(e),t},d.display["text/latex"]=d.display.latex,d.display.javascript=function(e){var t=c("script");return t.innerHTML=u(e),t},d.display["application/javascript"]=d.display.javascript,d.display.png=t("png"),d.display["image/png"]=d.display.png,d.display.jpeg=t("jpeg"),d.display["image/jpeg"]=d.display.jpeg,d.display_priority=["png","image/png","jpeg","image/jpeg","svg","image/svg+xml","text/svg+xml","html","text/html","text/markdown","latex","text/latex","javascript","application/javascript","text","text/plain"],d.Output=function(e,t){this.raw=e,this.cell=t,this.type=e.output_type},d.Output.prototype.renderers={display_data:i,execute_result:i,pyout:i,pyerr:n,error:n,stream:function(){var e=c("pre",[this.raw.stream||this.raw.name]),t=u(this.raw.text);return e.innerHTML=d.highlighter(d.ansi(h(t)),e),e}},d.Output.prototype.render=function(){var e=c("div",["output"]),t=("number"==typeof this.cell.number&&e.setAttribute("data-prompt-number",this.cell.number),this.renderers[this.type].call(this));return e.appendChild(t),this.el=e},d.coalesceStreams=function(e){var t,i;return e.length?(t=e[0],i=[t],e.slice(1).forEach(function(e){"stream"===e.raw.output_type&&"stream"===t.raw.output_type&&e.raw.stream===t.raw.stream&&e.raw.name===t.raw.name?t.raw.text=t.raw.text.concat(e.raw.text):(i.push(e),t=e)}),i):e},[{left:"$$",right:"$$",display:!0},{left:"\\[",right:"\\]",display:!0},{left:"\\(",right:"\\)",display:!(d.Cell=function(e,t){var i=this;i.raw=e,i.worksheet=t,i.type=e.cell_type,"code"===i.type&&(i.number=-1<e.prompt_number?e.prompt_number:e.execution_count,t=e.input||[e.source],i.input=new d.Input(t,i),e=(i.raw.outputs||[]).map(function(e){return new d.Output(e,i)}),i.outputs=d.coalesceStreams(e))})},{left:"$",right:"$",display:!1}]);d.Cell.prototype.renderers={markdown:function(){var e=c("div",["cell","markdown-cell"]),t=u(this.raw.source);return null!=o.renderMathInElement?(e.innerHTML=d.sanitizer(t),o.renderMathInElement(e,{delimiters:p}),e.innerHTML=d.sanitizer(d.markdown(e.innerHTML.replace(/>/g,">")))):e.innerHTML=d.sanitizer(d.markdown(t)),e},heading:function(){var e=c("h"+this.raw.level,["cell","heading-cell"]);return e.innerHTML=d.sanitizer(u(this.raw.source)),e},raw:function(){var e=c("div",["cell","raw-cell"]);return e.innerHTML=h(u(this.raw.source)),e},code:function(){var t=c("div",["cell","code-cell"]);t.appendChild(this.input.render()),this.outputs.forEach(function(e){t.appendChild(e.render())});return t}},d.Cell.prototype.render=function(){var e=this.renderers[this.type].call(this);return this.el=e},d.Worksheet=function(e,t){var i=this;this.raw=e,this.notebook=t,this.cells=e.cells.map(function(e){return new d.Cell(e,i)}),this.render=function(){var t=c("div",["worksheet"]);return i.cells.forEach(function(e){t.appendChild(e.render())}),this.el=t}},d.Notebook=function(e,t){var i=this,t=(this.raw=e,this.config=t,this.metadata=e.metadata||{}),t=(this.title=t.title||t.name,e.worksheets||[{cells:e.cells}]);this.worksheets=t.map(function(e){return new d.Worksheet(e,i)}),this.sheet=this.worksheets[0]},d.Notebook.prototype.render=function(){var t=c("div",["notebook"]);return this.worksheets.forEach(function(e){t.appendChild(e.render())}),this.el=t},d.parse=function(e,t){return new d.Notebook(e,t)},"function"==typeof define&&define.amd&&define(function(){return d}),"undefined"!=typeof exports?(exports="undefined"!=typeof module&&module.exports?module.exports=d:exports).nb=d:o.nb=d}.call(this);var Org=function(){var e={},n={rules:{},define:function(t,e){this.rules[t]=e,this["is"+t.substring(0,1).toUpperCase()+t.substring(1)]=function(e){return this.rules[t].exec(e)}}};function r(){}function s(e){this.stream=e,this.tokenStack=[]}function a(e,t){if(this.type=e,this.children=[],t)for(var i=0,n=t.length;i<n;++i)this.appendChild(t[i])}n.define("header",/^(\*+)\s+(.*)$/),n.define("preformatted",/^(\s*):(?: (.*)$|$)/),n.define("unorderedListElement",/^(\s*)(?:-|\+|\s+\*)\s+(.*)$/),n.define("orderedListElement",/^(\s*)(\d+)(?:\.|\))\s+(.*)$/),n.define("tableSeparator",/^(\s*)\|((?:\+|-)*?)\|?$/),n.define("tableRow",/^(\s*)\|(.*?)\|?$/),n.define("blank",/^$/),n.define("horizontalRule",/^(\s*)-{5,}$/),n.define("directive",/^(\s*)#\+(?:(begin|end)_)?(.*)$/i),n.define("comment",/^(\s*)#(.*)$/),n.define("line",/^(\s*)(.*)$/),r.prototype={isListElement:function(){return this.type===s.tokens.orderedListElement||this.type===s.tokens.unorderedListElement},isTableElement:function(){return this.type===s.tokens.tableSeparator||this.type===s.tokens.tableRow}},s.prototype={tokenize:function(e){var t=new r;if(t.fromLineNumber=this.stream.lineNumber,n.isHeader(e))t.type=s.tokens.header,t.indentation=0,t.content=RegExp.$2,t.level=RegExp.$1.length;else if(n.isPreformatted(e))t.type=s.tokens.preformatted,t.indentation=RegExp.$1.length,t.content=RegExp.$2;else if(n.isUnorderedListElement(e))t.type=s.tokens.unorderedListElement,t.indentation=RegExp.$1.length,t.content=RegExp.$2;else if(n.isOrderedListElement(e))t.type=s.tokens.orderedListElement,t.indentation=RegExp.$1.length,t.content=RegExp.$3,t.number=RegExp.$2;else if(n.isTableSeparator(e))t.type=s.tokens.tableSeparator,t.indentation=RegExp.$1.length,t.content=RegExp.$2;else if(n.isTableRow(e))t.type=s.tokens.tableRow,t.indentation=RegExp.$1.length,t.content=RegExp.$2;else if(n.isBlank(e))t.type=s.tokens.blank,t.indentation=0,t.content=null;else if(n.isHorizontalRule(e))t.type=s.tokens.horizontalRule,t.indentation=RegExp.$1.length,t.content=null;else if(n.isDirective(e)){t.type=s.tokens.directive,t.indentation=RegExp.$1.length,t.content=RegExp.$3;var i=RegExp.$2;/^begin/i.test(i)?t.beginDirective=!0:/^end/i.test(i)?t.endDirective=!0:t.oneshotDirective=!0}else{if(n.isComment(e))t.type=s.tokens.comment;else{if(!n.isLine(e))throw new Error("SyntaxError: Unknown line: "+e);t.type=s.tokens.line}t.indentation=RegExp.$1.length,t.content=RegExp.$2}return t},pushToken:function(e){this.tokenStack.push(e)},pushDummyTokenByType:function(e){var t=new r;t.type=e,this.tokenStack.push(t)},peekStackedToken:function(){return 0<this.tokenStack.length?this.tokenStack[this.tokenStack.length-1]:null},getStackedToken:function(){return 0<this.tokenStack.length?this.tokenStack.pop():null},peekNextToken:function(){return this.peekStackedToken()||this.tokenize(this.stream.peekNextLine())},getNextToken:function(){return this.getStackedToken()||this.tokenize(this.stream.getNextLine())},hasNext:function(){return this.stream.hasNext()},getLineNumber:function(){return this.stream.lineNumber}},s.tokens={},["header","orderedListElement","unorderedListElement","tableRow","tableSeparator","preformatted","line","horizontalRule","blank","directive","comment"].forEach(function(e,t){s.tokens[e]=t}),void 0!==e&&(e.Lexer=s),a.prototype={previousSibling:null,parent:null,get firstChild(){return this.children.length<1?null:this.children[0]},get lastChild(){return this.children.length<1?null:this.children[this.children.length-1]},appendChild:function(e){var t=this.children.length<1?null:this.lastChild;this.children.push(e),e.previousSibling=t,e.parent=this},toString:function(){var e="<"+this.type+">";return void 0!==this.value?e+=" "+this.value:this.children&&(e+="\n"+this.children.map(function(e,t){return"#"+t+" "+e.toString()}).join("\n").split("\n").map(function(e){return" "+e}).join("\n")),e}};var d={types:{},define:function(i,n){var e="create"+(this.types[i]=i).substring(0,1).toUpperCase()+i.substring(1),r="function"==typeof n;this[e]=function(e,t){e=new a(i,e);return r&&n(e,t||{}),e}}};function o(e){this.sequences=e.split(/\r?\n/),this.totalLines=this.sequences.length,this.lineNumber=0}function l(){this.inlineParser=new t}function t(){this.preEmphasis=" \t\\('\"",this.postEmphasis="- \t.,:!?;'\"\\)",this.borderForbidden=" \t\r\n,\"'",this.bodyRegexp="[\\s\\S]*?",this.markers="*/_=~+",this.emphasisPattern=this.buildEmphasisPattern(),this.linkPattern=/\[\[([^\]]*)\](?:\[([^\]]*)\])?\]/g}function i(){}function c(e,t){this.initialize(e,t),this.result=this.convert()}return d.define("text",function(e,t){e.value=t.value}),d.define("header",function(e,t){e.level=t.level}),d.define("orderedList"),d.define("unorderedList"),d.define("definitionList"),d.define("listElement"),d.define("paragraph"),d.define("preformatted"),d.define("table"),d.define("tableRow"),d.define("tableCell"),d.define("horizontalRule"),d.define("directive"),d.define("inlineContainer"),d.define("bold"),d.define("italic"),d.define("underline"),d.define("code"),d.define("verbatim"),d.define("dashed"),d.define("link",function(e,t){e.src=t.src}),void 0!==e&&(e.Node=d),o.prototype.peekNextLine=function(){return this.hasNext()?this.sequences[this.lineNumber]:null},o.prototype.getNextLine=function(){return this.hasNext()?this.sequences[this.lineNumber++]:null},o.prototype.hasNext=function(){return this.lineNumber<this.totalLines},void 0!==e&&(e.Stream=o),l.parseStream=function(e,t){var i=new l;return i.initStatus(e,t),i.parseNodes(),i.nodes},(l.prototype={initStatus:function(e,t){if("string"==typeof e&&(e=new o(e)),this.lexer=new s(e),this.nodes=[],this.options={toc:!0,num:!0,"^":"{}",multilineCell:!1},t&&"object"==typeof t)for(var i in t)this.options[i]=t[i];this.document={options:this.options,convert:function(e,t){return new e(this,t).result}}},parse:function(e,t){return this.initStatus(e,t),this.parseDocument(),this.document.nodes=this.nodes,this.document},createErrorReport:function(e){return new Error(e+" at line "+this.lexer.getLineNumber())},skipBlank:function(){for(var e=null;this.lexer.peekNextToken().type===s.tokens.blank;)e=this.lexer.getNextToken();return e},setNodeOriginFromToken:function(e,t){return e.fromLineNumber=t.fromLineNumber,e},appendNode:function(e){var t=0<this.nodes.length?this.nodes[this.nodes.length-1]:null;this.nodes.push(e),e.previousSibling=t},parseDocument:function(){this.parseTitle(),this.parseNodes()},parseNodes:function(){for(;this.lexer.hasNext();){var e=this.parseElement();e&&this.appendNode(e)}},parseTitle:function(){this.skipBlank(),this.lexer.hasNext()&&this.lexer.peekNextToken().type===s.tokens.line?this.document.title=this.createTextNode(this.lexer.getNextToken().content):this.document.title=null,this.lexer.pushDummyTokenByType(s.tokens.blank)},parseElement:function(){var e=null;switch(this.lexer.peekNextToken().type){case s.tokens.header:e=this.parseHeader();break;case s.tokens.preformatted:e=this.parsePreformatted();break;case s.tokens.orderedListElement:case s.tokens.unorderedListElement:e=this.parseList();break;case s.tokens.line:e=this.parseText();break;case s.tokens.tableRow:case s.tokens.tableSeparator:e=this.parseTable();break;case s.tokens.blank:this.skipBlank(),this.lexer.hasNext()&&(e=this.lexer.peekNextToken().type===s.tokens.line?this.parseParagraph():this.parseElement());break;case s.tokens.horizontalRule:this.lexer.getNextToken(),e=d.createHorizontalRule();break;case s.tokens.directive:e=this.parseDirective();break;case s.tokens.comment:this.lexer.getNextToken();break;default:throw this.createErrorReport("Unhandled token: "+this.lexer.peekNextToken().type)}return e},parseElementBesidesDirectiveEnd:function(){try{return this.parseElement=this.parseElementBesidesDirectiveEndBody,this.parseElement()}finally{this.parseElement=this.originalParseElement}},parseElementBesidesDirectiveEndBody:function(){return this.lexer.peekNextToken().type===s.tokens.directive&&this.lexer.peekNextToken().endDirective?null:this.originalParseElement()},parseHeader:function(){var e=this.lexer.getNextToken(),t=d.createHeader([this.createTextNode(e.content)],{level:e.level});return this.setNodeOriginFromToken(t,e),t},parsePreformatted:function(){for(var e=this.lexer.peekNextToken(),t=d.createPreformatted([]),i=(this.setNodeOriginFromToken(t,e),[]);this.lexer.hasNext();){var n=this.lexer.peekNextToken();if(n.type!==s.tokens.preformatted||n.indentation<e.indentation)break;this.lexer.getNextToken(),i.push(n.content)}return t.appendChild(this.createTextNode(i.join("\n"),!0)),t},definitionPattern:/^(.*?) :: *(.*)$/,parseList:function(){var e,t=this.lexer.peekNextToken(),i=!1;for(this.definitionPattern.test(t.content)?(e=d.createDefinitionList([]),i=!0):e=t.type===s.tokens.unorderedListElement?d.createUnorderedList([]):d.createOrderedList([]),this.setNodeOriginFromToken(e,t);this.lexer.hasNext();){var n=this.lexer.peekNextToken();if(!n.isListElement()||n.indentation!==t.indentation)break;e.appendChild(this.parseListElement(t.indentation,i))}return e},unknownDefinitionTerm:"???",parseListElement:function(e,t){var i=this.lexer.getNextToken(),n=d.createListElement([]);for(this.setNodeOriginFromToken(n,i),(n.isDefinitionList=t)?(t=this.definitionPattern.exec(i.content),n.term=[this.createTextNode(t&&t[1]?t[1]:this.unknownDefinitionTerm)],n.appendChild(this.createTextNode(t?t[2]:i.content))):n.appendChild(this.createTextNode(i.content));this.lexer.hasNext();){var r=this.skipBlank();if(!this.lexer.hasNext())break;var s=this.lexer.peekNextToken();if(r&&!s.isListElement()&&this.lexer.pushToken(r),s.indentation<=e)break;r=this.parseElement();r&&n.appendChild(r)}return n},parseTable:function(){for(var e,t=this.lexer.peekNextToken(),i=d.createTable([]),n=(this.setNodeOriginFromToken(i,t),!1),r=t.type===s.tokens.tableSeparator&&this.options.multilineCell;this.lexer.hasNext()&&(t=this.lexer.peekNextToken()).isTableElement();)t.type===s.tokens.tableRow?(e=this.parseTableRow(r),i.appendChild(e)):(n=!0,this.lexer.getNextToken());return n&&i.children.length&&i.children[0].children.forEach(function(e){e.isHeader=!0}),i},parseTableRow:function(e){for(var t,i,n,r=[];this.lexer.peekNextToken().type===s.tokens.tableRow&&(r.push(this.lexer.getNextToken()),e););if(r.length)return t=r.shift(),i=t.content.split("|"),r.forEach(function(e){e.content.split("|").forEach(function(e,t){i[t]=(i[t]||"")+"\n"+e})}),n=i.map(function(e){return d.createTableCell(l.parseStream(e))},this),this.setNodeOriginFromToken(d.createTableRow(n),t);throw this.createErrorReport("Expected table row")},parseDirective:function(){var e=this.lexer.getNextToken(),t=this.createDirectiveNodeFromToken(e);if(e.endDirective)throw this.createErrorReport("Unmatched 'end' directive for "+t.directiveName);if(e.oneshotDirective)return this.interpretDirective(t),t;if(e.beginDirective)return t.children=[],this.isVerbatimDirective(t)?this.parseDirectiveBlockVerbatim(t):this.parseDirectiveBlock(t);throw this.createErrorReport("Invalid directive "+t.directiveName)},createDirectiveNodeFromToken:function(e){var t=/^[ ]*([^ ]*)[ ]*(.*)[ ]*$/.exec(e.content),i=d.createDirective(null);return this.setNodeOriginFromToken(i,e),i.directiveName=t[1].toLowerCase(),i.directiveArguments=this.parseDirectiveArguments(t[2]),i.directiveOptions=this.parseDirectiveOptions(t[2]),i.directiveRawValue=t[2],i},isVerbatimDirective:function(e){e=e.directiveName;return"src"===e||"example"===e},parseDirectiveBlock:function(e,t){for(this.lexer.pushDummyTokenByType(s.tokens.blank);this.lexer.hasNext();){var i=this.lexer.peekNextToken();if(i.type===s.tokens.directive&&i.endDirective&&this.createDirectiveNodeFromToken(i).directiveName===e.directiveName)return this.lexer.getNextToken(),e;i=this.parseElementBesidesDirectiveEnd();i&&e.appendChild(i)}throw this.createErrorReport("Unclosed directive "+e.directiveName)},parseDirectiveBlockVerbatim:function(e){for(var t=[];this.lexer.hasNext();){var i=this.lexer.peekNextToken();if(i.type===s.tokens.directive&&i.endDirective&&this.createDirectiveNodeFromToken(i).directiveName===e.directiveName)return this.lexer.getNextToken(),e.appendChild(this.createTextNode(t.join("\n"),!0)),e;t.push(this.lexer.stream.getNextLine())}throw this.createErrorReport("Unclosed directive "+e.directiveName)},parseDirectiveArguments:function(e){return e.split(/[ ]+/).filter(function(e){return e.length&&"-"!==e[0]})},parseDirectiveOptions:function(e){return e.split(/[ ]+/).filter(function(e){return e.length&&"-"===e[0]})},interpretDirective:function(e){switch(e.directiveName){case"options:":this.interpretOptionDirective(e);break;case"title:":this.document.title=e.directiveRawValue;break;case"author:":this.document.author=e.directiveRawValue;break;case"email:":this.document.email=e.directiveRawValue}},interpretOptionDirective:function(e){e.directiveArguments.forEach(function(e){e=e.split(":");this.options[e[0]]=this.convertLispyValue(e[1])},this)},convertLispyValue:function(e){switch(e){case"t":return!0;case"nil":return!1;default:return/^[0-9]+$/.test(e)?parseInt(e):e}},parseParagraph:function(){for(var e=this.lexer.peekNextToken(),t=d.createParagraph([]),i=(this.setNodeOriginFromToken(t,e),[]);this.lexer.hasNext();){var n=this.lexer.peekNextToken();if(n.type!==s.tokens.line||n.indentation<e.indentation)break;this.lexer.getNextToken(),i.push(n.content)}return t.appendChild(this.createTextNode(i.join("\n"))),t},parseText:function(e){var t=this.lexer.getNextToken();return this.createTextNode(t.content,e)},createTextNode:function(e,t){return t?d.createText(null,{value:e}):this.inlineParser.parseEmphasis(e)}}).originalParseElement=l.prototype.parseElement,t.prototype={parseEmphasis:function(e){for(var t=this.emphasisPattern,i=[],n=t.lastIndex=0;l=t.exec(e);){var r=l[0],s=l[1],a=l[2],o=l[3],l=l[4],r=t.lastIndex-r.length,r=e.substring(n,r+s.length),s=t.lastIndex,r=(i.push(this.parseLink(r)),t.lastIndex=s,[d.createText(null,{value:o})]),s=this.emphasizeElementByMarker(r,a);i.push(s),n=t.lastIndex-l.length}return 0!==t.lastIndex&&t.lastIndex===e.length-1||i.push(this.parseLink(e.substring(n))),1===i.length?i[0]:d.createInlineContainer(i)},depth:0,parseLink:function(e){for(var t,i=this.linkPattern,n=[],r=i.lastIndex=0;o=i.exec(e);){var s=o[0],a=o[1],o=o[2],s=i.lastIndex-s.length,s=e.substring(r,s),s=(n.push(d.createText(null,{value:s})),d.createLink([]));s.src=a,o?(t=i.lastIndex,s.appendChild(this.parseEmphasis(o)),i.lastIndex=t):s.appendChild(d.createText(null,{value:a})),n.push(s),r=i.lastIndex}return 0!==i.lastIndex&&i.lastIndex===e.length-1||n.push(d.createText(null,{value:e.substring(r)})),d.createInlineContainer(n)},emphasizeElementByMarker:function(e,t){switch(t){case"*":return d.createBold(e);case"/":return d.createItalic(e);case"_":return d.createUnderline(e);case"=":case"~":return d.createCode(e);case"+":return d.createDashed(e)}},buildEmphasisPattern:function(){return new RegExp("(["+this.preEmphasis+"]|^|\r?\n)(["+this.markers+"])([^"+this.borderForbidden+"]|[^"+this.borderForbidden+"]"+this.bodyRegexp+"[^"+this.borderForbidden+"])\\2(["+this.postEmphasis+"]|$|\r?\n)","g")}},void 0!==e&&(e.Parser=l,e.InlineParser=t),i.prototype={exportOptions:{headerOffset:1,exportFromLineNumber:!1,suppressSubScriptHandling:!1,suppressAutoLink:!1},untitled:"Untitled",result:null,initialize:function(e,t){this.orgDocument=e,this.documentOptions=e.options||{},this.exportOptions=t||{},this.headers=[],this.headerOffset="number"==typeof this.exportOptions.headerOffset?this.exportOptions.headerOffset:1,this.sectionNumbers=[0]},createTocItem:function(e,t){var i=[];return i.parent=t,{headerNode:e,childTocs:i}},computeToc:function(e){"number"!=typeof e&&(e=1/0);for(var t=[],i=(t.parent=null,1),n=t,r=0;r<this.headers.length;++r){var s=this.headers[r];if(!(s.level>e)){if(0<(l=s.level-i))for(var a,o=0;o<l;++o)0===n.length&&((a=d.createHeader([],{level:i+o})).sectionNumberText="",n.push(this.createTocItem(a,n))),n=n[n.length-1].childTocs;else if(l<0)for(var l=-l,c=0;c<l;++c)n=n.parent;n.push(this.createTocItem(s,n)),i=s.level}}return t},convertNode:function(e,t,i){i||(e.type===d.types.directive?"example"!==e.directiveName&&"src"!==e.directiveName||(i=!0):e.type===d.types.preformatted&&(i=!0));var n,r=(e="string"==typeof e?d.createText(null,{value:e}):e).children?this.convertNodes(e.children,t,i):"",s=this.computeAuxDataForNode(e);switch(e.type){case d.types.header:var a=null,o=(0===r.indexOf("TODO ")?a="todo":0===r.indexOf("DONE ")&&(a="done"),null);if(t){var l=e.level,c=this.sectionNumbers.length;if(c<l)for(var h=l-c,u=0;u<h;++u)this.sectionNumbers[l-1-u]=0;else l<c&&(this.sectionNumbers.length=l);this.sectionNumbers[l-1]++,o=this.sectionNumbers.join("."),e.sectionNumberText=o}n=this.convertHeader(e,r,s,a,o),t&&this.headers.push(e);break;case d.types.orderedList:n=this.convertOrderedList(e,r,s);break;case d.types.unorderedList:n=this.convertUnorderedList(e,r,s);break;case d.types.definitionList:n=this.convertDefinitionList(e,r,s);break;case d.types.listElement:n=e.isDefinitionList?(c=this.convertNodes(e.term,t,i),this.convertDefinitionItem(e,r,s,c,r)):this.convertListItem(e,r,s);break;case d.types.paragraph:n=this.convertParagraph(e,r,s);break;case d.types.preformatted:n=this.convertPreformatted(e,r,s);break;case d.types.table:n=this.convertTable(e,r,s);break;case d.types.tableRow:n=this.convertTableRow(e,r,s);break;case d.types.tableCell:n=e.isHeader?this.convertTableHeader(e,r,s):this.convertTableCell(e,r,s);break;case d.types.horizontalRule:n=this.convertHorizontalRule(e,r,s);break;case d.types.inlineContainer:n=this.convertInlineContainer(e,r,s);break;case d.types.bold:n=this.convertBold(e,r,s);break;case d.types.italic:n=this.convertItalic(e,r,s);break;case d.types.underline:n=this.convertUnderline(e,r,s);break;case d.types.code:n=this.convertCode(e,r,s);break;case d.types.dashed:n=this.convertDashed(e,r,s);break;case d.types.link:n=this.convertLink(e,r,s);break;case d.types.directive:switch(e.directiveName){case"quote":n=this.convertQuote(e,r,s);break;case"example":n=this.convertExample(e,r,s);break;case"src":n=this.convertSrc(e,r,s);break;default:n=r}break;case d.types.text:n=this.convertText(e.value,i);break;default:throw"Unknown node type: "+e.type}return n="function"==typeof this.postProcess?this.postProcess(e,n,i):n},convertText:function(e,t){e=this.escapeSpecialChars(e,t);return this.exportOptions.suppressSubScriptHandling||t||(e=this.makeSubscripts(e,t)),e=this.exportOptions.suppressAutoLink?e:this.linkURL(e)},convertNodes:function(e,t,i){return e.map(function(e){return this.convertNode(e,t,i)},this).join("")},getNodeTextContent:function(e){return e.type===d.types.text?this.escapeSpecialChars(e.value):e.children?e.children.map(this.getNodeTextContent,this).join(""):""},escapeSpecialChars:function(e){throw"Implement escapeSpecialChars"},urlPattern:/\b(?:https?:\/\/|www\d{0,3}[.]|[a-z0-9.\-]+[.][a-z]{2,4}\/)(?:[^\s()<>]+|\(([^\s()<>]+|(\([^\s()<>]+\)))*\))+(?:\(([^\s()<>]+|(\([^\s()<>]+\)))*\)|[^\s`!()\[\]{};:'".,<>?«»“”‘’])/i,linkURL:function(e){var t=this;return e.replace(this.urlPattern,function(e){return e.indexOf("://")<0&&(e="http://"+e),t.makeLink(e)})},makeLink:function(e){throw"Implement makeLink"},makeSubscripts:function(e){return"{}"===this.documentOptions["^"]?e.replace(/\b([^_ \t]*)_{([^}]*)}/g,this.makeSubscript):this.documentOptions["^"]?e.replace(/\b([^_ \t]*)_([^_]*)\b/g,this.makeSubscript):e},makeSubscript:function(e,t,i){throw"Implement makeSubscript"},imageExtensionPattern:new RegExp("("+["bmp","png","jpeg","jpg","gif","tiff","tif","xbm","xpm","pbm","pgm","ppm"].join("|")+")$","i")},void 0!==e&&(e.Converter=i),c.prototype={__proto__:i.prototype,convert:function(){var e=this.orgDocument.title?this.convertNode(this.orgDocument.title):this.untitled,t=this.tag("h1",e),i=this.convertNodes(this.orgDocument.nodes,!0),n=this.computeToc(this.documentOptions.toc),r=this.tocToHTML(n);return{title:e,titleHTML:t,contentHTML:i,tocHTML:r,toc:n,toString:function(){return t+r+"\n"+i}}},tocToHTML:function(e){function o(e){for(var t="",i=0;i<e.length;++i){var n=e[i],r=n.headerNode.sectionNumberText,s=this.documentOptions.num?this.inlineTag("span",r,{class:"section-number"}):"",a=this.getNodeTextContent(n.headerNode),s=this.inlineTag("a",s+a,{href:"#header-"+r.replace(/\./g,"-")}),a=n.childTocs.length?o.call(this,n.childTocs):"";t+=this.tag("li",s+a)}return this.tag("ul",t)}return o.call(this,e)},computeAuxDataForNode:function(e){for(;e.parent&&e.parent.type===d.types.inlineContainer;)e=e.parent;for(var t=e.previousSibling,i="";t&&t.type===d.types.directive&&"attr_html:"===t.directiveName;)i+=t.directiveRawValue+" ",t=t.previousSibling;return i},convertHeader:function(e,t,i,n,r){var s={};return n&&(t=this.inlineTag("span",t.substring(0,4),{class:"task-status "+n})+t.substring(5)),r&&(t=this.inlineTag("span",r,{class:"section-number"})+t,s.id="header-"+r.replace(/\./g,"-")),n&&(s.class="task-status "+n),this.tag("h"+(this.headerOffset+e.level),t,s,i)},convertOrderedList:function(e,t,i){return this.tag("ol",t,null,i)},convertUnorderedList:function(e,t,i){return this.tag("ul",t,null,i)},convertDefinitionList:function(e,t,i){return this.tag("dl",t,null,i)},convertDefinitionItem:function(e,t,i,n,r){return this.tag("dt",n)+this.tag("dd",r)},convertListItem:function(e,t,i){if(this.exportOptions.suppressCheckboxHandling)return this.tag("li",t,null,i);var n={};if(/^\s*\[(X| |-)\]([\s\S]*)/.exec(t)){var t=RegExp.$2,r={type:"checkbox"};switch(RegExp.$1){case"X":r.checked="true",n["data-checkbox-status"]="done";break;case"-":n["data-checkbox-status"]="intermediate";break;default:n["data-checkbox-status"]="undone"}t=this.inlineTag("input",null,r)+t}return this.tag("li",t,n,i)},convertParagraph:function(e,t,i){return this.tag("p",t,null,i)},convertPreformatted:function(e,t,i){return this.tag("pre",t,null,i)},convertTable:function(e,t,i){return this.tag("table",this.tag("tbody",t),null,i)},convertTableRow:function(e,t,i){return this.tag("tr",t)},convertTableHeader:function(e,t,i){return this.tag("th",t)},convertTableCell:function(e,t,i){return this.tag("td",t)},convertHorizontalRule:function(e,t,i){return this.tag("hr",null,null,i)},convertInlineContainer:function(e,t,i){return t},convertBold:function(e,t,i){return this.inlineTag("b",t)},convertItalic:function(e,t,i){return this.inlineTag("i",t)},convertUnderline:function(e,t,i){return this.inlineTag("span",t,{style:"text-decoration:underline;"})},convertCode:function(e,t,i){return this.inlineTag("code",t)},convertDashed:function(e,t,i){return this.inlineTag("del",t)},convertLink:function(e,t,i){var n;return this.imageExtensionPattern.exec(e.src)?(n=this.getNodeTextContent(e),this.inlineTag("img",null,{src:e.src,alt:n,title:n},i)):this.inlineTag("a",t,{href:e.src})},convertQuote:function(e,t,i){return this.tag("blockquote",t,null,i)},convertExample:function(e,t,i){return this.tag("pre",t,null,i)},convertSrc:function(e,t,i){e=e.directiveArguments.length?e.directiveArguments[0]:"unknown";return t=this.tag("code",t,{class:"language-"+e},i),this.tag("pre",t,{class:"prettyprint"})},replaceMap:{"&":["&",null],"<":["<",null],">":[">",null],'"':[""",null],"'":["'",null],"->":["➔",function(e,t){return this.exportOptions.translateSymbolArrow&&!t}]},replaceRegexp:null,escapeSpecialChars:function(i,n){this.replaceRegexp||(this.replaceRegexp=new RegExp(Object.keys(this.replaceMap).join("|"),"g"));var r=this.replaceMap,s=this;return i.replace(this.replaceRegexp,function(e){var t;if(r[e])return"function"!=typeof(t=r[e][1])||t.call(s,i,n)?r[e][0]:e;throw"escapeSpecialChars: Invalid match"})},postProcess:function(e,t,i){return t=this.exportOptions.exportFromLineNumber&&"number"==typeof e.fromLineNumber?this.inlineTag("div",t,{"data-line-number":e.fromLineNumber}):t},makeLink:function(e){return'<a href="'+e+'">'+decodeURIComponent(e)+"</a>"},makeSubscript:function(e,t,i){return'<span class="org-subscript-parent">'+t+'</span><span class="org-subscript-child">'+i+"</span>"},attributesObjectToString:function(e){var t,i="";for(t in e)e.hasOwnProperty(t)&&(i+=" "+t+'="'+e[t]+'"');return i},inlineTag:function(e,t,i,n){var r="<"+e;return n&&(r+=" "+n),r+=this.attributesObjectToString(i=i||{}),null===t?r+"/>":r+">"+t+"</"+e+">"},tag:function(e,t,i,n){return this.inlineTag(e,t,i,n)+"\n"}},void 0!==e&&(e.ConverterHTML=c),e}();function humanFileSize(e,t=!1,i=1){var n=t?1e3:1024;if(e/=8,Math.abs(e)<n)return e+"B";var r=t?["kB","MB","GB","TB","PB","EB","ZB","YB"]:["KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"];let s=-1;for(var a=10**i;e/=n,++s,Math.round(Math.abs(e)*a)/a>=n&&s<r.length-1;);return e.toFixed(i)+""+r[s]}function urlRel2abs(e,t=location.href.match(/^(.+)\/?(?:#.+)?$/)[0]+"/"){if(!/^(https?|file|ftps?|mailto|javascript|data:image\/[^;]{2,9};):/i.test(e)){if("//"==e.substring(0,2))return location.protocol+e;if("/"==e.charAt(0))return t+e;if("./"==e.substring(0,2))e="."+e;else if(/^\s*$/.test(e))return"";for(e=t+e;/\/\.\.\//.test(e=e.replace(/[^\/]+\/+\.\.\//g,"")););e=e.replace(/\.$/,"").replace(/\/\.\//g,"").replace(/"/g,"%22").replace(/'/g,"%27").replace(/</g,"%3C").replace(/>/g,"%3E")}return e}!function(e,t){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=e.document?t(e,!0):function(e){if(e.document)return t(e);throw new Error("jQuery requires a window with a document")}:t(e)}("undefined"!=typeof window?window:this,function(k,O){"use strict";function b(e){return"function"==typeof e&&"number"!=typeof e.nodeType}function f(e){return null!=e&&e===e.window}var e=[],T=k.document,P=Object.getPrototypeOf,o=e.slice,B=e.concat,F=e.push,j=e.indexOf,z={},H=z.toString,U=z.hasOwnProperty,q=U.toString,W=q.call(Object),m={},V={type:!0,src:!0,nonce:!0,noModule:!0};function G(e,t,i){var n,r,s=(i=i||T).createElement("script");if(s.text=e,t)for(n in V)(r=t[n]||t.getAttribute&&t.getAttribute(n))&&s.setAttribute(n,r);i.head.appendChild(s).parentNode.removeChild(s)}function g(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?z[H.call(e)]||"object":typeof e}var S=function(e,t){return new S.fn.init(e,t)},Y=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;function X(e){var t=!!e&&"length"in e&&e.length,i=g(e);return!b(e)&&!f(e)&&("array"===i||0===t||"number"==typeof t&&0<t&&t-1 in e)}S.fn=S.prototype={jquery:"3.4.1",constructor:S,length:0,toArray:function(){return o.call(this)},get:function(e){return null==e?o.call(this):e<0?this[e+this.length]:this[e]},pushStack:function(e){e=S.merge(this.constructor(),e);return e.prevObject=this,e},each:function(e){return S.each(this,e)},map:function(i){return this.pushStack(S.map(this,function(e,t){return i.call(e,t,e)}))},slice:function(){return this.pushStack(o.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(e){var t=this.length,e=+e+(e<0?t:0);return this.pushStack(0<=e&&e<t?[this[e]]:[])},end:function(){return this.prevObject||this.constructor()},push:F,sort:e.sort,splice:e.splice},S.extend=S.fn.extend=function(){var e,t,i,n,r,s=arguments[0]||{},a=1,o=arguments.length,l=!1;for("boolean"==typeof s&&(l=s,s=arguments[a]||{},a++),"object"==typeof s||b(s)||(s={}),a===o&&(s=this,a--);a<o;a++)if(null!=(e=arguments[a]))for(t in e)i=e[t],"__proto__"!==t&&s!==i&&(l&&i&&(S.isPlainObject(i)||(n=Array.isArray(i)))?(r=s[t],r=n&&!Array.isArray(r)?[]:n||S.isPlainObject(r)?r:{},n=!1,s[t]=S.extend(l,r,i)):void 0!==i&&(s[t]=i));return s},S.extend({expando:"jQuery"+("3.4.1"+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isPlainObject:function(e){return!(!e||"[object Object]"!==H.call(e)||(e=P(e))&&("function"!=typeof(e=U.call(e,"constructor")&&e.constructor)||q.call(e)!==W))},isEmptyObject:function(e){for(var t in e)return!1;return!0},globalEval:function(e,t){G(e,{nonce:t&&t.nonce})},each:function(e,t){var i,n=0;if(X(e))for(i=e.length;n<i&&!1!==t.call(e[n],n,e[n]);n++);else for(n in e)if(!1===t.call(e[n],n,e[n]))break;return e},trim:function(e){return null==e?"":(e+"").replace(Y,"")},makeArray:function(e,t){t=t||[];return null!=e&&(X(Object(e))?S.merge(t,"string"==typeof e?[e]:e):F.call(t,e)),t},inArray:function(e,t,i){return null==t?-1:j.call(t,e,i)},merge:function(e,t){for(var i=+t.length,n=0,r=e.length;n<i;n++)e[r++]=t[n];return e.length=r,e},grep:function(e,t,i){for(var n=[],r=0,s=e.length,a=!i;r<s;r++)!t(e[r],r)!=a&&n.push(e[r]);return n},map:function(e,t,i){var n,r,s=0,a=[];if(X(e))for(n=e.length;s<n;s++)null!=(r=t(e[s],s,i))&&a.push(r);else for(s in e)null!=(r=t(e[s],s,i))&&a.push(r);return B.apply([],a)},guid:1,support:m}),"function"==typeof Symbol&&(S.fn[Symbol.iterator]=e[Symbol.iterator]),S.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(e,t){z["[object "+t+"]"]=t.toLowerCase()});function n(e,t,i){for(var n=[],r=void 0!==i;(e=e[t])&&9!==e.nodeType;)if(1===e.nodeType){if(r&&S(e).is(i))break;n.push(e)}return n}function K(e,t){for(var i=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&i.push(e);return i}var e=function(O){function u(e,t,i){var n="0x"+t-65536;return n!=n||i?t:n<0?String.fromCharCode(65536+n):String.fromCharCode(n>>10|55296,1023&n|56320)}function P(e,t){return t?"\0"===e?"�":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e}function B(){k()}var e,d,x,s,F,p,j,z,w,l,c,k,T,i,S,g,n,r,f,_="sizzle"+ +new Date,m=O.document,C=0,H=0,U=R(),q=R(),W=R(),y=R(),V=function(e,t){return e===t&&(c=!0),0},G={}.hasOwnProperty,t=[],Y=t.pop,X=t.push,A=t.push,K=t.slice,b=function(e,t){for(var i=0,n=e.length;i<n;i++)if(e[i]===t)return i;return-1},Z="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",a="[\\x20\\t\\r\\n\\f]",o="(?:\\\\.|[\\w-]|[^\0-\\xa0])+",Q="\\["+a+"*("+o+")(?:"+a+"*([*^$|!~]?=)"+a+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+o+"))|)"+a+"*\\]",J=":("+o+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+Q+")*)|.*)\\)|)",ee=new RegExp(a+"+","g"),v=new RegExp("^"+a+"+|((?:^|[^\\\\])(?:\\\\.)*)"+a+"+$","g"),te=new RegExp("^"+a+"*,"+a+"*"),ie=new RegExp("^"+a+"*([>+~]|"+a+")"+a+"*"),ne=new RegExp(a+"|>"),re=new RegExp(J),se=new RegExp("^"+o+"$"),E={ID:new RegExp("^#("+o+")"),CLASS:new RegExp("^\\.("+o+")"),TAG:new RegExp("^("+o+"|[*])"),ATTR:new RegExp("^"+Q),PSEUDO:new RegExp("^"+J),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+a+"*(even|odd|(([+-]|)(\\d*)n|)"+a+"*(?:([+-]|)"+a+"*(\\d+)|))"+a+"*\\)|)","i"),bool:new RegExp("^(?:"+Z+")$","i"),needsContext:new RegExp("^"+a+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+a+"*((?:-\\d)?\\d*)"+a+"*\\)|)(?=[^-]|$)","i")},ae=/HTML$/i,oe=/^(?:input|select|textarea|button)$/i,le=/^h\d$/i,h=/^[^{]+\{\s*\[native \w/,ce=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,he=/[+~]/,$=new RegExp("\\\\([\\da-f]{1,6}"+a+"?|("+a+")|.)","ig"),ue=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,de=be(function(e){return!0===e.disabled&&"fieldset"===e.nodeName.toLowerCase()},{dir:"parentNode",next:"legend"});try{A.apply(t=K.call(m.childNodes),m.childNodes),t[m.childNodes.length].nodeType}catch(e){A={apply:t.length?function(e,t){X.apply(e,K.call(t))}:function(e,t){for(var i=e.length,n=0;e[i++]=t[n++];);e.length=i-1}}}function L(e,t,i,n){var r,s,a,o,l,c,h=t&&t.ownerDocument,u=t?t.nodeType:9;if(i=i||[],"string"!=typeof e||!e||1!==u&&9!==u&&11!==u)return i;if(!n&&((t?t.ownerDocument||t:m)!==T&&k(t),t=t||T,S)){if(11!==u&&(o=ce.exec(e)))if(r=o[1]){if(9===u){if(!(c=t.getElementById(r)))return i;if(c.id===r)return i.push(c),i}else if(h&&(c=h.getElementById(r))&&f(t,c)&&c.id===r)return i.push(c),i}else{if(o[2])return A.apply(i,t.getElementsByTagName(e)),i;if((r=o[3])&&d.getElementsByClassName&&t.getElementsByClassName)return A.apply(i,t.getElementsByClassName(r)),i}if(d.qsa&&!y[e+" "]&&(!g||!g.test(e))&&(1!==u||"object"!==t.nodeName.toLowerCase())){if(c=e,h=t,1===u&&ne.test(e)){for((a=t.getAttribute("id"))?a=a.replace(ue,P):t.setAttribute("id",a=_),s=(l=p(e)).length;s--;)l[s]="#"+a+" "+D(l[s]);c=l.join(","),h=he.test(e)&&me(t.parentNode)||t}try{return A.apply(i,h.querySelectorAll(c)),i}catch(t){y(e,!0)}finally{a===_&&t.removeAttribute("id")}}}return z(e.replace(v,"$1"),t,i,n)}function R(){var n=[];return function e(t,i){return n.push(t+" ")>x.cacheLength&&delete e[n.shift()],e[t+" "]=i}}function M(e){return e[_]=!0,e}function I(e){var t=T.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t)}}function pe(e,t){for(var i=e.split("|"),n=i.length;n--;)x.attrHandle[i[n]]=t}function ge(e,t){var i=t&&e,n=i&&1===e.nodeType&&1===t.nodeType&&e.sourceIndex-t.sourceIndex;if(n)return n;if(i)for(;i=i.nextSibling;)if(i===t)return-1;return e?1:-1}function fe(t){return function(e){return"form"in e?e.parentNode&&!1===e.disabled?"label"in e?"label"in e.parentNode?e.parentNode.disabled===t:e.disabled===t:e.isDisabled===t||e.isDisabled!==!t&&de(e)===t:e.disabled===t:"label"in e&&e.disabled===t}}function N(a){return M(function(s){return s=+s,M(function(e,t){for(var i,n=a([],e.length,s),r=n.length;r--;)e[i=n[r]]&&(e[i]=!(t[i]=e[i]))})})}function me(e){return e&&void 0!==e.getElementsByTagName&&e}for(e in d=L.support={},F=L.isXML=function(e){var t=e.namespaceURI,e=(e.ownerDocument||e).documentElement;return!ae.test(t||e&&e.nodeName||"HTML")},k=L.setDocument=function(e){var e=e?e.ownerDocument||e:m;return e!==T&&9===e.nodeType&&e.documentElement&&(i=(T=e).documentElement,S=!F(T),m!==T&&(e=T.defaultView)&&e.top!==e&&(e.addEventListener?e.addEventListener("unload",B,!1):e.attachEvent&&e.attachEvent("onunload",B)),d.attributes=I(function(e){return e.className="i",!e.getAttribute("className")}),d.getElementsByTagName=I(function(e){return e.appendChild(T.createComment("")),!e.getElementsByTagName("*").length}),d.getElementsByClassName=h.test(T.getElementsByClassName),d.getById=I(function(e){return i.appendChild(e).id=_,!T.getElementsByName||!T.getElementsByName(_).length}),d.getById?(x.filter.ID=function(e){var t=e.replace($,u);return function(e){return e.getAttribute("id")===t}},x.find.ID=function(e,t){if(void 0!==t.getElementById&&S)return(t=t.getElementById(e))?[t]:[]}):(x.filter.ID=function(e){var t=e.replace($,u);return function(e){e=void 0!==e.getAttributeNode&&e.getAttributeNode("id");return e&&e.value===t}},x.find.ID=function(e,t){if(void 0!==t.getElementById&&S){var i,n,r,s=t.getElementById(e);if(s){if((i=s.getAttributeNode("id"))&&i.value===e)return[s];for(r=t.getElementsByName(e),n=0;s=r[n++];)if((i=s.getAttributeNode("id"))&&i.value===e)return[s]}return[]}}),x.find.TAG=d.getElementsByTagName?function(e,t){return void 0!==t.getElementsByTagName?t.getElementsByTagName(e):d.qsa?t.querySelectorAll(e):void 0}:function(e,t){var i,n=[],r=0,s=t.getElementsByTagName(e);if("*"!==e)return s;for(;i=s[r++];)1===i.nodeType&&n.push(i);return n},x.find.CLASS=d.getElementsByClassName&&function(e,t){if(void 0!==t.getElementsByClassName&&S)return t.getElementsByClassName(e)},n=[],g=[],(d.qsa=h.test(T.querySelectorAll))&&(I(function(e){i.appendChild(e).innerHTML="<a id='"+_+"'></a><select id='"+_+"-\r\\' msallowcapture=''><option selected=''></option></select>",e.querySelectorAll("[msallowcapture^='']").length&&g.push("[*^$]="+a+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||g.push("\\["+a+"*(?:value|"+Z+")"),e.querySelectorAll("[id~="+_+"-]").length||g.push("~="),e.querySelectorAll(":checked").length||g.push(":checked"),e.querySelectorAll("a#"+_+"+*").length||g.push(".#.+[+~]")}),I(function(e){e.innerHTML="<a href='' disabled='disabled'></a><select disabled='disabled'><option/></select>";var t=T.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&g.push("name"+a+"*[*^$|!~]?="),2!==e.querySelectorAll(":enabled").length&&g.push(":enabled",":disabled"),i.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&g.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),g.push(",.*:")})),(d.matchesSelector=h.test(r=i.matches||i.webkitMatchesSelector||i.mozMatchesSelector||i.oMatchesSelector||i.msMatchesSelector))&&I(function(e){d.disconnectedMatch=r.call(e,"*"),r.call(e,"[s!='']:x"),n.push("!=",J)}),g=g.length&&new RegExp(g.join("|")),n=n.length&&new RegExp(n.join("|")),e=h.test(i.compareDocumentPosition),f=e||h.test(i.contains)?function(e,t){var i=9===e.nodeType?e.documentElement:e,t=t&&t.parentNode;return e===t||!(!t||1!==t.nodeType||!(i.contains?i.contains(t):e.compareDocumentPosition&&16&e.compareDocumentPosition(t)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},V=e?function(e,t){var i;return e===t?(c=!0,0):!e.compareDocumentPosition-!t.compareDocumentPosition||(1&(i=(e.ownerDocument||e)===(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!d.sortDetached&&t.compareDocumentPosition(e)===i?e===T||e.ownerDocument===m&&f(m,e)?-1:t===T||t.ownerDocument===m&&f(m,t)?1:l?b(l,e)-b(l,t):0:4&i?-1:1)}:function(e,t){if(e===t)return c=!0,0;var i,n=0,r=e.parentNode,s=t.parentNode,a=[e],o=[t];if(!r||!s)return e===T?-1:t===T?1:r?-1:s?1:l?b(l,e)-b(l,t):0;if(r===s)return ge(e,t);for(i=e;i=i.parentNode;)a.unshift(i);for(i=t;i=i.parentNode;)o.unshift(i);for(;a[n]===o[n];)n++;return n?ge(a[n],o[n]):a[n]===m?-1:o[n]===m?1:0}),T},L.matches=function(e,t){return L(e,null,null,t)},L.matchesSelector=function(e,t){if((e.ownerDocument||e)!==T&&k(e),d.matchesSelector&&S&&!y[t+" "]&&(!n||!n.test(t))&&(!g||!g.test(t)))try{var i=r.call(e,t);if(i||d.disconnectedMatch||e.document&&11!==e.document.nodeType)return i}catch(e){y(t,!0)}return 0<L(t,T,null,[e]).length},L.contains=function(e,t){return(e.ownerDocument||e)!==T&&k(e),f(e,t)},L.attr=function(e,t){(e.ownerDocument||e)!==T&&k(e);var i=x.attrHandle[t.toLowerCase()],i=i&&G.call(x.attrHandle,t.toLowerCase())?i(e,t,!S):void 0;return void 0!==i?i:d.attributes||!S?e.getAttribute(t):(i=e.getAttributeNode(t))&&i.specified?i.value:null},L.escape=function(e){return(e+"").replace(ue,P)},L.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},L.uniqueSort=function(e){var t,i=[],n=0,r=0;if(c=!d.detectDuplicates,l=!d.sortStable&&e.slice(0),e.sort(V),c){for(;t=e[r++];)t===e[r]&&(n=i.push(r));for(;n--;)e.splice(i[n],1)}return l=null,e},s=L.getText=function(e){var t,i="",n=0,r=e.nodeType;if(r){if(1===r||9===r||11===r){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)i+=s(e)}else if(3===r||4===r)return e.nodeValue}else for(;t=e[n++];)i+=s(t);return i},(x=L.selectors={cacheLength:50,createPseudo:M,match:E,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace($,u),e[3]=(e[3]||e[4]||e[5]||"").replace($,u),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||L.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&L.error(e[0]),e},PSEUDO:function(e){var t,i=!e[6]&&e[2];return E.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":i&&re.test(i)&&(t=(t=p(i,!0))&&i.indexOf(")",i.length-t)-i.length)&&(e[0]=e[0].slice(0,t),e[2]=i.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace($,u).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=U[e+" "];return t||(t=new RegExp("(^|"+a+")"+e+"("+a+"|$)"))&&U(e,function(e){return t.test("string"==typeof e.className&&e.className||void 0!==e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(t,i,n){return function(e){e=L.attr(e,t);return null==e?"!="===i:!i||(e+="","="===i?e===n:"!="===i?e!==n:"^="===i?n&&0===e.indexOf(n):"*="===i?n&&-1<e.indexOf(n):"$="===i?n&&e.slice(-n.length)===n:"~="===i?-1<(" "+e.replace(ee," ")+" ").indexOf(n):"|="===i&&(e===n||e.slice(0,n.length+1)===n+"-"))}},CHILD:function(g,e,t,f,m){var y="nth"!==g.slice(0,3),b="last"!==g.slice(-4),v="of-type"===e;return 1===f&&0===m?function(e){return!!e.parentNode}:function(e,t,i){var n,r,s,a,o,l,c=y!=b?"nextSibling":"previousSibling",h=e.parentNode,u=v&&e.nodeName.toLowerCase(),d=!i&&!v,p=!1;if(h){if(y){for(;c;){for(a=e;a=a[c];)if(v?a.nodeName.toLowerCase()===u:1===a.nodeType)return!1;l=c="only"===g&&!l&&"nextSibling"}return!0}if(l=[b?h.firstChild:h.lastChild],b&&d){for(p=(o=(n=(r=(s=(a=h)[_]||(a[_]={}))[a.uniqueID]||(s[a.uniqueID]={}))[g]||[])[0]===C&&n[1])&&n[2],a=o&&h.childNodes[o];a=++o&&a&&a[c]||(p=o=0,l.pop());)if(1===a.nodeType&&++p&&a===e){r[g]=[C,o,p];break}}else if(!1===(p=d?o=(n=(r=(s=(a=e)[_]||(a[_]={}))[a.uniqueID]||(s[a.uniqueID]={}))[g]||[])[0]===C&&n[1]:p))for(;(a=++o&&a&&a[c]||(p=o=0,l.pop()))&&((v?a.nodeName.toLowerCase()!==u:1!==a.nodeType)||!++p||(d&&((r=(s=a[_]||(a[_]={}))[a.uniqueID]||(s[a.uniqueID]={}))[g]=[C,p]),a!==e)););return(p-=m)===f||p%f==0&&0<=p/f}}},PSEUDO:function(e,s){var t,a=x.pseudos[e]||x.setFilters[e.toLowerCase()]||L.error("unsupported pseudo: "+e);return a[_]?a(s):1<a.length?(t=[e,e,"",s],x.setFilters.hasOwnProperty(e.toLowerCase())?M(function(e,t){for(var i,n=a(e,s),r=n.length;r--;)e[i=b(e,n[r])]=!(t[i]=n[r])}):function(e){return a(e,0,t)}):a}},pseudos:{not:M(function(e){var n=[],r=[],o=j(e.replace(v,"$1"));return o[_]?M(function(e,t,i,n){for(var r,s=o(e,null,n,[]),a=e.length;a--;)(r=s[a])&&(e[a]=!(t[a]=r))}):function(e,t,i){return n[0]=e,o(n,null,i,r),n[0]=null,!r.pop()}}),has:M(function(t){return function(e){return 0<L(t,e).length}}),contains:M(function(t){return t=t.replace($,u),function(e){return-1<(e.textContent||s(e)).indexOf(t)}}),lang:M(function(i){return se.test(i||"")||L.error("unsupported lang: "+i),i=i.replace($,u).toLowerCase(),function(e){var t;do{if(t=S?e.lang:e.getAttribute("xml:lang")||e.getAttribute("lang"))return(t=t.toLowerCase())===i||0===t.indexOf(i+"-")}while((e=e.parentNode)&&1===e.nodeType);return!1}}),target:function(e){var t=O.location&&O.location.hash;return t&&t.slice(1)===e.id},root:function(e){return e===i},focus:function(e){return e===T.activeElement&&(!T.hasFocus||T.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:fe(!1),disabled:fe(!0),checked:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,!0===e.selected},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!x.pseudos.empty(e)},header:function(e){return le.test(e.nodeName)},input:function(e){return oe.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(e=e.getAttribute("type"))||"text"===e.toLowerCase())},first:N(function(){return[0]}),last:N(function(e,t){return[t-1]}),eq:N(function(e,t,i){return[i<0?i+t:i]}),even:N(function(e,t){for(var i=0;i<t;i+=2)e.push(i);return e}),odd:N(function(e,t){for(var i=1;i<t;i+=2)e.push(i);return e}),lt:N(function(e,t,i){for(var n=i<0?i+t:t<i?t:i;0<=--n;)e.push(n);return e}),gt:N(function(e,t,i){for(var n=i<0?i+t:i;++n<t;)e.push(n);return e})}}).pseudos.nth=x.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})x.pseudos[e]=function(t){return function(e){return"input"===e.nodeName.toLowerCase()&&e.type===t}}(e);for(e in{submit:!0,reset:!0})x.pseudos[e]=function(i){return function(e){var t=e.nodeName.toLowerCase();return("input"===t||"button"===t)&&e.type===i}}(e);function ye(){}function D(e){for(var t=0,i=e.length,n="";t<i;t++)n+=e[t].value;return n}function be(a,e,t){var o=e.dir,l=e.next,c=l||o,h=t&&"parentNode"===c,u=H++;return e.first?function(e,t,i){for(;e=e[o];)if(1===e.nodeType||h)return a(e,t,i);return!1}:function(e,t,i){var n,r,s=[C,u];if(i){for(;e=e[o];)if((1===e.nodeType||h)&&a(e,t,i))return!0}else for(;e=e[o];)if(1===e.nodeType||h)if(r=(r=e[_]||(e[_]={}))[e.uniqueID]||(r[e.uniqueID]={}),l&&l===e.nodeName.toLowerCase())e=e[o]||e;else{if((n=r[c])&&n[0]===C&&n[1]===u)return s[2]=n[2];if((r[c]=s)[2]=a(e,t,i))return!0}return!1}}function ve(r){return 1<r.length?function(e,t,i){for(var n=r.length;n--;)if(!r[n](e,t,i))return!1;return!0}:r[0]}function xe(e,t,i,n,r){for(var s,a=[],o=0,l=e.length,c=null!=t;o<l;o++)!(s=e[o])||i&&!i(s,n,r)||(a.push(s),c&&t.push(o));return a}function we(e){for(var n,t,i,r=e.length,s=x.relative[e[0].type],a=s||x.relative[" "],o=s?1:0,l=be(function(e){return e===n},a,!0),c=be(function(e){return-1<b(n,e)},a,!0),h=[function(e,t,i){e=!s&&(i||t!==w)||((n=t).nodeType?l:c)(e,t,i);return n=null,e}];o<r;o++)if(t=x.relative[e[o].type])h=[be(ve(h),t)];else{if((t=x.filter[e[o].type].apply(null,e[o].matches))[_]){for(i=++o;i<r&&!x.relative[e[i].type];i++);return function e(p,g,f,m,y,t){return m&&!m[_]&&(m=e(m)),y&&!y[_]&&(y=e(y,t)),M(function(e,t,i,n){var r,s,a,o=[],l=[],c=t.length,h=e||function(e,t,i){for(var n=0,r=t.length;n<r;n++)L(e,t[n],i);return i}(g||"*",i.nodeType?[i]:i,[]),u=!p||!e&&g?h:xe(h,o,p,i,n),d=f?y||(e?p:c||m)?[]:t:u;if(f&&f(u,d,i,n),m)for(r=xe(d,l),m(r,[],i,n),s=r.length;s--;)(a=r[s])&&(d[l[s]]=!(u[l[s]]=a));if(e){if(y||p){if(y){for(r=[],s=d.length;s--;)(a=d[s])&&r.push(u[s]=a);y(null,d=[],r,n)}for(s=d.length;s--;)(a=d[s])&&-1<(r=y?b(e,a):o[s])&&(e[r]=!(t[r]=a))}}else d=xe(d===t?d.splice(c,d.length):d),y?y(null,t,d,n):A.apply(t,d)})}(1<o&&ve(h),1<o&&D(e.slice(0,o-1).concat({value:" "===e[o-2].type?"*":""})).replace(v,"$1"),t,o<i&&we(e.slice(o,i)),i<r&&we(e=e.slice(i)),i<r&&D(e))}h.push(t)}return ve(h)}return ye.prototype=x.filters=x.pseudos,x.setFilters=new ye,p=L.tokenize=function(e,t){var i,n,r,s,a,o,l,c=q[e+" "];if(c)return t?0:c.slice(0);for(a=e,o=[],l=x.preFilter;a;){for(s in i&&!(n=te.exec(a))||(n&&(a=a.slice(n[0].length)||a),o.push(r=[])),i=!1,(n=ie.exec(a))&&(i=n.shift(),r.push({value:i,type:n[0].replace(v," ")}),a=a.slice(i.length)),x.filter)!(n=E[s].exec(a))||l[s]&&!(n=l[s](n))||(i=n.shift(),r.push({value:i,type:s,matches:n}),a=a.slice(i.length));if(!i)break}return t?a.length:a?L.error(e):q(e,o).slice(0)},j=L.compile=function(e,t){var i,m,y,b,v,n,r=[],s=[],a=W[e+" "];if(!a){for(i=(t=t||p(e)).length;i--;)((a=we(t[i]))[_]?r:s).push(a);(a=W(e,(b=0<(y=r).length,v=0<(m=s).length,n=function(e,t,i,n,r){var s,a,o,l=0,c="0",h=e&&[],u=[],d=w,p=e||v&&x.find.TAG("*",r),g=C+=null==d?1:Math.random()||.1,f=p.length;for(r&&(w=t===T||t||r);c!==f&&null!=(s=p[c]);c++){if(v&&s){for(a=0,t||s.ownerDocument===T||(k(s),i=!S);o=m[a++];)if(o(s,t||T,i)){n.push(s);break}r&&(C=g)}b&&((s=!o&&s)&&l--,e)&&h.push(s)}if(l+=c,b&&c!==l){for(a=0;o=y[a++];)o(h,u,t,i);if(e){if(0<l)for(;c--;)h[c]||u[c]||(u[c]=Y.call(n));u=xe(u)}A.apply(n,u),r&&!e&&0<u.length&&1<l+y.length&&L.uniqueSort(n)}return r&&(C=g,w=d),h},b?M(n):n))).selector=e}return a},z=L.select=function(e,t,i,n){var r,s,a,o,l,c="function"==typeof e&&e,h=!n&&p(e=c.selector||e);if(i=i||[],1===h.length){if(2<(s=h[0]=h[0].slice(0)).length&&"ID"===(a=s[0]).type&&9===t.nodeType&&S&&x.relative[s[1].type]){if(!(t=(x.find.ID(a.matches[0].replace($,u),t)||[])[0]))return i;c&&(t=t.parentNode),e=e.slice(s.shift().value.length)}for(r=E.needsContext.test(e)?0:s.length;r--&&(a=s[r],!x.relative[o=a.type]);)if((l=x.find[o])&&(n=l(a.matches[0].replace($,u),he.test(s[0].type)&&me(t.parentNode)||t))){if(s.splice(r,1),e=n.length&&D(s))break;return A.apply(i,n),i}}return(c||j(e,h))(n,t,!S,i,!t||he.test(e)&&me(t.parentNode)||t),i},d.sortStable=_.split("").sort(V).join("")===_,d.detectDuplicates=!!c,k(),d.sortDetached=I(function(e){return 1&e.compareDocumentPosition(T.createElement("fieldset"))}),I(function(e){return e.innerHTML="<a href='#'></a>","#"===e.firstChild.getAttribute("href")})||pe("type|href|height|width",function(e,t,i){if(!i)return e.getAttribute(t,"type"===t.toLowerCase()?1:2)}),d.attributes&&I(function(e){return e.innerHTML="<input/>",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")})||pe("value",function(e,t,i){if(!i&&"input"===e.nodeName.toLowerCase())return e.defaultValue}),I(function(e){return null==e.getAttribute("disabled")})||pe(Z,function(e,t,i){if(!i)return!0===e[t]?t.toLowerCase():(i=e.getAttributeNode(t))&&i.specified?i.value:null}),L}(k),Z=(S.find=e,S.expr=e.selectors,S.expr[":"]=S.expr.pseudos,S.uniqueSort=S.unique=e.uniqueSort,S.text=e.getText,S.isXMLDoc=e.isXML,S.contains=e.contains,S.escapeSelector=e.escape,S.expr.match.needsContext);function l(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()}var Q=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function J(e,i,n){return b(i)?S.grep(e,function(e,t){return!!i.call(e,t,e)!==n}):i.nodeType?S.grep(e,function(e){return e===i!==n}):"string"!=typeof i?S.grep(e,function(e){return-1<j.call(i,e)!==n}):S.filter(i,e,n)}S.filter=function(e,t,i){var n=t[0];return i&&(e=":not("+e+")"),1===t.length&&1===n.nodeType?S.find.matchesSelector(n,e)?[n]:[]:S.find.matches(e,S.grep(t,function(e){return 1===e.nodeType}))},S.fn.extend({find:function(e){var t,i,n=this.length,r=this;if("string"!=typeof e)return this.pushStack(S(e).filter(function(){for(t=0;t<n;t++)if(S.contains(r[t],this))return!0}));for(i=this.pushStack([]),t=0;t<n;t++)S.find(e,r[t],i);return 1<n?S.uniqueSort(i):i},filter:function(e){return this.pushStack(J(this,e||[],!1))},not:function(e){return this.pushStack(J(this,e||[],!0))},is:function(e){return!!J(this,"string"==typeof e&&Z.test(e)?S(e):e||[],!1).length}});var ee,te=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/,ie=((S.fn.init=function(e,t,i){if(e){if(i=i||ee,"string"!=typeof e)return e.nodeType?(this[0]=e,this.length=1,this):b(e)?void 0!==i.ready?i.ready(e):e(S):S.makeArray(e,this);if(!(n="<"===e[0]&&">"===e[e.length-1]&&3<=e.length?[null,e,null]:te.exec(e))||!n[1]&&t)return(!t||t.jquery?t||i:this.constructor(t)).find(e);if(n[1]){if(t=t instanceof S?t[0]:t,S.merge(this,S.parseHTML(n[1],t&&t.nodeType?t.ownerDocument||t:T,!0)),Q.test(n[1])&&S.isPlainObject(t))for(var n in t)b(this[n])?this[n](t[n]):this.attr(n,t[n])}else(i=T.getElementById(n[2]))&&(this[0]=i,this.length=1)}return this}).prototype=S.fn,ee=S(T),/^(?:parents|prev(?:Until|All))/),ne={children:!0,contents:!0,next:!0,prev:!0};function re(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}S.fn.extend({has:function(e){var t=S(e,this),i=t.length;return this.filter(function(){for(var e=0;e<i;e++)if(S.contains(this,t[e]))return!0})},closest:function(e,t){var i,n=0,r=this.length,s=[],a="string"!=typeof e&&S(e);if(!Z.test(e))for(;n<r;n++)for(i=this[n];i&&i!==t;i=i.parentNode)if(i.nodeType<11&&(a?-1<a.index(i):1===i.nodeType&&S.find.matchesSelector(i,e))){s.push(i);break}return this.pushStack(1<s.length?S.uniqueSort(s):s)},index:function(e){return e?"string"==typeof e?j.call(S(e),this[0]):j.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(S.uniqueSort(S.merge(this.get(),S(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),S.each({parent:function(e){e=e.parentNode;return e&&11!==e.nodeType?e:null},parents:function(e){return n(e,"parentNode")},parentsUntil:function(e,t,i){return n(e,"parentNode",i)},next:function(e){return re(e,"nextSibling")},prev:function(e){return re(e,"previousSibling")},nextAll:function(e){return n(e,"nextSibling")},prevAll:function(e){return n(e,"previousSibling")},nextUntil:function(e,t,i){return n(e,"nextSibling",i)},prevUntil:function(e,t,i){return n(e,"previousSibling",i)},siblings:function(e){return K((e.parentNode||{}).firstChild,e)},children:function(e){return K(e.firstChild)},contents:function(e){return void 0!==e.contentDocument?e.contentDocument:(l(e,"template")&&(e=e.content||e),S.merge([],e.childNodes))}},function(n,r){S.fn[n]=function(e,t){var i=S.map(this,r,e);return(t="Until"!==n.slice(-5)?e:t)&&"string"==typeof t&&(i=S.filter(t,i)),1<this.length&&(ne[n]||S.uniqueSort(i),ie.test(n))&&i.reverse(),this.pushStack(i)}});var _=/[^\x20\t\r\n\f]+/g;function h(e){return e}function se(e){throw e}function ae(e,t,i,n){var r;try{e&&b(r=e.promise)?r.call(e).done(t).fail(i):e&&b(r=e.then)?r.call(e,t,i):t.apply(void 0,[e].slice(n))}catch(e){i.apply(void 0,[e])}}S.Callbacks=function(n){var e,i;n="string"==typeof n?(e=n,i={},S.each(e.match(_)||[],function(e,t){i[t]=!0}),i):S.extend({},n);function r(){for(o=o||n.once,a=s=!0;c.length;h=-1)for(t=c.shift();++h<l.length;)!1===l[h].apply(t[0],t[1])&&n.stopOnFalse&&(h=l.length,t=!1);n.memory||(t=!1),s=!1,o&&(l=t?[]:"")}var s,t,a,o,l=[],c=[],h=-1,u={add:function(){return l&&(t&&!s&&(h=l.length-1,c.push(t)),function i(e){S.each(e,function(e,t){b(t)?n.unique&&u.has(t)||l.push(t):t&&t.length&&"string"!==g(t)&&i(t)})}(arguments),t)&&!s&&r(),this},remove:function(){return S.each(arguments,function(e,t){for(var i;-1<(i=S.inArray(t,l,i));)l.splice(i,1),i<=h&&h--}),this},has:function(e){return e?-1<S.inArray(e,l):0<l.length},empty:function(){return l=l&&[],this},disable:function(){return o=c=[],l=t="",this},disabled:function(){return!l},lock:function(){return o=c=[],t||s||(l=t=""),this},locked:function(){return!!o},fireWith:function(e,t){return o||(t=[e,(t=t||[]).slice?t.slice():t],c.push(t),s)||r(),this},fire:function(){return u.fireWith(this,arguments),this},fired:function(){return!!a}};return u},S.extend({Deferred:function(e){var s=[["notify","progress",S.Callbacks("memory"),S.Callbacks("memory"),2],["resolve","done",S.Callbacks("once memory"),S.Callbacks("once memory"),0,"resolved"],["reject","fail",S.Callbacks("once memory"),S.Callbacks("once memory"),1,"rejected"]],r="pending",a={state:function(){return r},always:function(){return o.done(arguments).fail(arguments),this},catch:function(e){return a.then(null,e)},pipe:function(){var r=arguments;return S.Deferred(function(n){S.each(s,function(e,t){var i=b(r[t[4]])&&r[t[4]];o[t[1]](function(){var e=i&&i.apply(this,arguments);e&&b(e.promise)?e.promise().progress(n.notify).done(n.resolve).fail(n.reject):n[t[0]+"With"](this,i?[e]:arguments)})}),r=null}).promise()},then:function(t,i,n){var l=0;function c(r,s,a,o){return function(){function e(){var e,t;if(!(r<l)){if((e=a.apply(i,n))===s.promise())throw new TypeError("Thenable self-resolution");t=e&&("object"==typeof e||"function"==typeof e)&&e.then,b(t)?o?t.call(e,c(l,s,h,o),c(l,s,se,o)):(l++,t.call(e,c(l,s,h,o),c(l,s,se,o),c(l,s,h,s.notifyWith))):(a!==h&&(i=void 0,n=[e]),(o||s.resolveWith)(i,n))}}var i=this,n=arguments,t=o?e:function(){try{e()}catch(e){S.Deferred.exceptionHook&&S.Deferred.exceptionHook(e,t.stackTrace),l<=r+1&&(a!==se&&(i=void 0,n=[e]),s.rejectWith(i,n))}};r?t():(S.Deferred.getStackHook&&(t.stackTrace=S.Deferred.getStackHook()),k.setTimeout(t))}}return S.Deferred(function(e){s[0][3].add(c(0,e,b(n)?n:h,e.notifyWith)),s[1][3].add(c(0,e,b(t)?t:h)),s[2][3].add(c(0,e,b(i)?i:se))}).promise()},promise:function(e){return null!=e?S.extend(e,a):a}},o={};return S.each(s,function(e,t){var i=t[2],n=t[5];a[t[1]]=i.add,n&&i.add(function(){r=n},s[3-e][2].disable,s[3-e][3].disable,s[0][2].lock,s[0][3].lock),i.add(t[3].fire),o[t[0]]=function(){return o[t[0]+"With"](this===o?void 0:this,arguments),this},o[t[0]+"With"]=i.fireWith}),a.promise(o),e&&e.call(o,o),o},when:function(e){function t(t){return function(e){r[t]=this,s[t]=1<arguments.length?o.call(arguments):e,--i||a.resolveWith(r,s)}}var i=arguments.length,n=i,r=Array(n),s=o.call(arguments),a=S.Deferred();if(i<=1&&(ae(e,a.done(t(n)).resolve,a.reject,!i),"pending"===a.state()||b(s[n]&&s[n].then)))return a.then();for(;n--;)ae(s[n],t(n),a.reject);return a.promise()}});var oe=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/,le=(S.Deferred.exceptionHook=function(e,t){k.console&&k.console.warn&&e&&oe.test(e.name)&&k.console.warn("jQuery.Deferred exception: "+e.message,e.stack,t)},S.readyException=function(e){k.setTimeout(function(){throw e})},S.Deferred());function ce(){T.removeEventListener("DOMContentLoaded",ce),k.removeEventListener("load",ce),S.ready()}S.fn.ready=function(e){return le.then(e).catch(function(e){S.readyException(e)}),this},S.extend({isReady:!1,readyWait:1,ready:function(e){(!0===e?--S.readyWait:S.isReady)||(S.isReady=!0)!==e&&0<--S.readyWait||le.resolveWith(T,[S])}}),S.ready.then=le.then,"complete"===T.readyState||"loading"!==T.readyState&&!T.documentElement.doScroll?k.setTimeout(S.ready):(T.addEventListener("DOMContentLoaded",ce),k.addEventListener("load",ce));function u(e,t,i,n,r,s,a){var o=0,l=e.length,c=null==i;if("object"===g(i))for(o in r=!0,i)u(e,t,o,i[o],!0,s,a);else if(void 0!==n&&(r=!0,b(n)||(a=!0),t=c?a?(t.call(e,n),null):(c=t,function(e,t,i){return c.call(S(e),i)}):t))for(;o<l;o++)t(e[o],i,a?n:n.call(e[o],o,t(e[o],i)));return r?e:c?t.call(e):l?t(e[0],i):s}var he=/^-ms-/,ue=/-([a-z])/g;function de(e,t){return t.toUpperCase()}function v(e){return e.replace(he,"ms-").replace(ue,de)}function pe(e){return 1===e.nodeType||9===e.nodeType||!+e.nodeType}function t(){this.expando=S.expando+t.uid++}t.uid=1,t.prototype={cache:function(e){var t=e[this.expando];return t||(t={},pe(e)&&(e.nodeType?e[this.expando]=t:Object.defineProperty(e,this.expando,{value:t,configurable:!0}))),t},set:function(e,t,i){var n,r=this.cache(e);if("string"==typeof t)r[v(t)]=i;else for(n in t)r[v(n)]=t[n];return r},get:function(e,t){return void 0===t?this.cache(e):e[this.expando]&&e[this.expando][v(t)]},access:function(e,t,i){return void 0===t||t&&"string"==typeof t&&void 0===i?this.get(e,t):(this.set(e,t,i),void 0!==i?i:t)},remove:function(e,t){var i,n=e[this.expando];if(void 0!==n){if(void 0!==t){i=(t=Array.isArray(t)?t.map(v):(t=v(t))in n?[t]:t.match(_)||[]).length;for(;i--;)delete n[t[i]]}void 0!==t&&!S.isEmptyObject(n)||(e.nodeType?e[this.expando]=void 0:delete e[this.expando])}},hasData:function(e){e=e[this.expando];return void 0!==e&&!S.isEmptyObject(e)}};var y=new t,c=new t,ge=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,fe=/[A-Z]/g;function me(e,t,i){var n,r;if(void 0===i&&1===e.nodeType)if(n="data-"+t.replace(fe,"-$&").toLowerCase(),"string"==typeof(i=e.getAttribute(n))){try{i="true"===(r=i)||"false"!==r&&("null"===r?null:r===+r+""?+r:ge.test(r)?JSON.parse(r):r)}catch(e){}c.set(e,t,i)}else i=void 0;return i}S.extend({hasData:function(e){return c.hasData(e)||y.hasData(e)},data:function(e,t,i){return c.access(e,t,i)},removeData:function(e,t){c.remove(e,t)},_data:function(e,t,i){return y.access(e,t,i)},_removeData:function(e,t){y.remove(e,t)}}),S.fn.extend({data:function(i,e){var t,n,r,s=this[0],a=s&&s.attributes;if(void 0!==i)return"object"==typeof i?this.each(function(){c.set(this,i)}):u(this,function(e){var t;if(s&&void 0===e)return void 0!==(t=c.get(s,i))||void 0!==(t=me(s,i))?t:void 0;this.each(function(){c.set(this,i,e)})},null,e,1<arguments.length,null,!0);if(this.length&&(r=c.get(s),1===s.nodeType)&&!y.get(s,"hasDataAttrs")){for(t=a.length;t--;)a[t]&&0===(n=a[t].name).indexOf("data-")&&(n=v(n.slice(5)),me(s,n,r[n]));y.set(s,"hasDataAttrs",!0)}return r},removeData:function(e){return this.each(function(){c.remove(this,e)})}}),S.extend({queue:function(e,t,i){var n;if(e)return n=y.get(e,t=(t||"fx")+"queue"),i&&(!n||Array.isArray(i)?n=y.access(e,t,S.makeArray(i)):n.push(i)),n||[]},dequeue:function(e,t){t=t||"fx";var i=S.queue(e,t),n=i.length,r=i.shift(),s=S._queueHooks(e,t);"inprogress"===r&&(r=i.shift(),n--),r&&("fx"===t&&i.unshift("inprogress"),delete s.stop,r.call(e,function(){S.dequeue(e,t)},s)),!n&&s&&s.empty.fire()},_queueHooks:function(e,t){var i=t+"queueHooks";return y.get(e,i)||y.access(e,i,{empty:S.Callbacks("once memory").add(function(){y.remove(e,[t+"queue",i])})})}}),S.fn.extend({queue:function(t,i){var e=2;return"string"!=typeof t&&(i=t,t="fx",e--),arguments.length<e?S.queue(this[0],t):void 0===i?this:this.each(function(){var e=S.queue(this,t,i);S._queueHooks(this,t),"fx"===t&&"inprogress"!==e[0]&&S.dequeue(this,t)})},dequeue:function(e){return this.each(function(){S.dequeue(this,e)})},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){function i(){--r||s.resolveWith(a,[a])}var n,r=1,s=S.Deferred(),a=this,o=this.length;for("string"!=typeof e&&(t=e,e=void 0),e=e||"fx";o--;)(n=y.get(a[o],e+"queueHooks"))&&n.empty&&(r++,n.empty.add(i));return i(),s.promise(t)}});function ye(e,t){return"none"===(e=t||e).style.display||""===e.style.display&&w(e)&&"none"===S.css(e,"display")}function be(e,t,i,n){var r,s={};for(r in t)s[r]=e.style[r],e.style[r]=t[r];for(r in i=i.apply(e,n||[]),t)e.style[r]=s[r];return i}var e=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,d=new RegExp("^(?:([+-])=|)("+e+")([a-z%]*)$","i"),p=["Top","Right","Bottom","Left"],x=T.documentElement,w=function(e){return S.contains(e.ownerDocument,e)},ve={composed:!0};x.getRootNode&&(w=function(e){return S.contains(e.ownerDocument,e)||e.getRootNode(ve)===e.ownerDocument});function xe(e,t,i,n){var r,s,a=20,o=n?function(){return n.cur()}:function(){return S.css(e,t,"")},l=o(),c=i&&i[3]||(S.cssNumber[t]?"":"px"),h=e.nodeType&&(S.cssNumber[t]||"px"!==c&&+l)&&d.exec(S.css(e,t));if(h&&h[3]!==c){for(c=c||h[3],h=+(l/=2)||1;a--;)S.style(e,t,h+c),(1-s)*(1-(s=o()/l||.5))<=0&&(a=0),h/=s;S.style(e,t,(h*=2)+c),i=i||[]}return i&&(h=+h||+l||0,r=i[1]?h+(i[1]+1)*i[2]:+i[2],n)&&(n.unit=c,n.start=h,n.end=r),r}var we={};function C(e,t){for(var i,n,r,s,a,o,l=[],c=0,h=e.length;c<h;c++)(n=e[c]).style&&(i=n.style.display,t?("none"===i&&(l[c]=y.get(n,"display")||null,l[c]||(n.style.display="")),""===n.style.display&&ye(n)&&(l[c]=(o=s=r=void 0,s=n.ownerDocument,a=n.nodeName,(o=we[a])||(r=s.body.appendChild(s.createElement(a)),o=S.css(r,"display"),r.parentNode.removeChild(r),we[a]=o="none"===o?"block":o)))):"none"!==i&&(l[c]="none",y.set(n,"display",i)));for(c=0;c<h;c++)null!=l[c]&&(e[c].style.display=l[c]);return e}S.fn.extend({show:function(){return C(this,!0)},hide:function(){return C(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each(function(){ye(this)?S(this).show():S(this).hide()})}});var ke=/^(?:checkbox|radio)$/i,Te=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,Se=/^$|^module$|\/(?:java|ecma)script/i,A={option:[1,"<select multiple='multiple'>","</select>"],thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};function E(e,t){var i=void 0!==e.getElementsByTagName?e.getElementsByTagName(t||"*"):void 0!==e.querySelectorAll?e.querySelectorAll(t||"*"):[];return void 0===t||t&&l(e,t)?S.merge([e],i):i}function _e(e,t){for(var i=0,n=e.length;i<n;i++)y.set(e[i],"globalEval",!t||y.get(t[i],"globalEval"))}A.optgroup=A.option,A.tbody=A.tfoot=A.colgroup=A.caption=A.thead,A.th=A.td;var Ce=/<|&#?\w+;/;function Ae(e,t,i,n,r){for(var s,a,o,l,c,h=t.createDocumentFragment(),u=[],d=0,p=e.length;d<p;d++)if((s=e[d])||0===s)if("object"===g(s))S.merge(u,s.nodeType?[s]:s);else if(Ce.test(s)){for(a=a||h.appendChild(t.createElement("div")),o=(Te.exec(s)||["",""])[1].toLowerCase(),o=A[o]||A._default,a.innerHTML=o[1]+S.htmlPrefilter(s)+o[2],c=o[0];c--;)a=a.lastChild;S.merge(u,a.childNodes),(a=h.firstChild).textContent=""}else u.push(t.createTextNode(s));for(h.textContent="",d=0;s=u[d++];)if(n&&-1<S.inArray(s,n))r&&r.push(s);else if(l=w(s),a=E(h.appendChild(s),"script"),l&&_e(a),i)for(c=0;s=a[c++];)Se.test(s.type||"")&&i.push(s);return h}M=T.createDocumentFragment().appendChild(T.createElement("div")),(a=T.createElement("input")).setAttribute("type","radio"),a.setAttribute("checked","checked"),a.setAttribute("name","t"),M.appendChild(a),m.checkClone=M.cloneNode(!0).cloneNode(!0).lastChild.checked,M.innerHTML="<textarea>x</textarea>",m.noCloneChecked=!!M.cloneNode(!0).lastChild.defaultValue;var Ee=/^key/,$e=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Le=/^([^.]*)(?:\.(.+)|)/;function i(){return!0}function $(){return!1}function Re(e,t){return e===function(){try{return T.activeElement}catch(e){}}()==("focus"===t)}function Me(e,t,i,n,r,s){var a,o;if("object"==typeof t){for(o in"string"!=typeof i&&(n=n||i,i=void 0),t)Me(e,o,i,n,t[o],s);return e}if(null==n&&null==r?(r=i,n=i=void 0):null==r&&("string"==typeof i?(r=n,n=void 0):(r=n,n=i,i=void 0)),!1===r)r=$;else if(!r)return e;return 1===s&&(a=r,(r=function(e){return S().off(e),a.apply(this,arguments)}).guid=a.guid||(a.guid=S.guid++)),e.each(function(){S.event.add(this,t,r,n,i)})}function Ie(e,r,s){s?(y.set(e,r,!1),S.event.add(e,r,{namespace:!1,handler:function(e){var t,i,n=y.get(this,r);if(1&e.isTrigger&&this[r]){if(n.length)(S.event.special[r]||{}).delegateType&&e.stopPropagation();else if(n=o.call(arguments),y.set(this,r,n),t=s(this,r),this[r](),n!==(i=y.get(this,r))||t?y.set(this,r,!1):i={},n!==i)return e.stopImmediatePropagation(),e.preventDefault(),i.value}else n.length&&(y.set(this,r,{value:S.event.trigger(S.extend(n[0],S.Event.prototype),n.slice(1),this)}),e.stopImmediatePropagation())}})):void 0===y.get(e,r)&&S.event.add(e,r,i)}S.event={global:{},add:function(t,e,i,n,r){var s,a,o,l,c,h,u,d,p,g=y.get(t);if(g)for(i.handler&&(i=(s=i).handler,r=s.selector),r&&S.find.matchesSelector(x,r),i.guid||(i.guid=S.guid++),o=(o=g.events)||(g.events={}),a=(a=g.handle)||(g.handle=function(e){return void 0!==S&&S.event.triggered!==e.type?S.event.dispatch.apply(t,arguments):void 0}),l=(e=(e||"").match(_)||[""]).length;l--;)u=p=(d=Le.exec(e[l])||[])[1],d=(d[2]||"").split(".").sort(),u&&(c=S.event.special[u]||{},u=(r?c.delegateType:c.bindType)||u,c=S.event.special[u]||{},p=S.extend({type:u,origType:p,data:n,handler:i,guid:i.guid,selector:r,needsContext:r&&S.expr.match.needsContext.test(r),namespace:d.join(".")},s),(h=o[u])||((h=o[u]=[]).delegateCount=0,c.setup&&!1!==c.setup.call(t,n,d,a))||t.addEventListener&&t.addEventListener(u,a),c.add&&(c.add.call(t,p),p.handler.guid||(p.handler.guid=i.guid)),r?h.splice(h.delegateCount++,0,p):h.push(p),S.event.global[u]=!0)},remove:function(e,t,i,n,r){var s,a,o,l,c,h,u,d,p,g,f,m=y.hasData(e)&&y.get(e);if(m&&(l=m.events)){for(c=(t=(t||"").match(_)||[""]).length;c--;)if(p=f=(o=Le.exec(t[c])||[])[1],g=(o[2]||"").split(".").sort(),p){for(u=S.event.special[p]||{},d=l[p=(n?u.delegateType:u.bindType)||p]||[],o=o[2]&&new RegExp("(^|\\.)"+g.join("\\.(?:.*\\.|)")+"(\\.|$)"),a=s=d.length;s--;)h=d[s],!r&&f!==h.origType||i&&i.guid!==h.guid||o&&!o.test(h.namespace)||n&&n!==h.selector&&("**"!==n||!h.selector)||(d.splice(s,1),h.selector&&d.delegateCount--,u.remove&&u.remove.call(e,h));a&&!d.length&&(u.teardown&&!1!==u.teardown.call(e,g,m.handle)||S.removeEvent(e,p,m.handle),delete l[p])}else for(p in l)S.event.remove(e,p+t[c],i,n,!0);S.isEmptyObject(l)&&y.remove(e,"handle events")}},dispatch:function(e){var t,i,n,r,s,a=S.event.fix(e),o=new Array(arguments.length),e=(y.get(this,"events")||{})[a.type]||[],l=S.event.special[a.type]||{};for(o[0]=a,t=1;t<arguments.length;t++)o[t]=arguments[t];if(a.delegateTarget=this,!l.preDispatch||!1!==l.preDispatch.call(this,a)){for(s=S.event.handlers.call(this,a,e),t=0;(n=s[t++])&&!a.isPropagationStopped();)for(a.currentTarget=n.elem,i=0;(r=n.handlers[i++])&&!a.isImmediatePropagationStopped();)a.rnamespace&&!1!==r.namespace&&!a.rnamespace.test(r.namespace)||(a.handleObj=r,a.data=r.data,void 0!==(r=((S.event.special[r.origType]||{}).handle||r.handler).apply(n.elem,o))&&!1===(a.result=r)&&(a.preventDefault(),a.stopPropagation()));return l.postDispatch&&l.postDispatch.call(this,a),a.result}},handlers:function(e,t){var i,n,r,s,a,o=[],l=t.delegateCount,c=e.target;if(l&&c.nodeType&&!("click"===e.type&&1<=e.button))for(;c!==this;c=c.parentNode||this)if(1===c.nodeType&&("click"!==e.type||!0!==c.disabled)){for(s=[],a={},i=0;i<l;i++)void 0===a[r=(n=t[i]).selector+" "]&&(a[r]=n.needsContext?-1<S(r,this).index(c):S.find(r,this,null,[c]).length),a[r]&&s.push(n);s.length&&o.push({elem:c,handlers:s})}return c=this,l<t.length&&o.push({elem:c,handlers:t.slice(l)}),o},addProp:function(t,e){Object.defineProperty(S.Event.prototype,t,{enumerable:!0,configurable:!0,get:b(e)?function(){if(this.originalEvent)return e(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[t]},set:function(e){Object.defineProperty(this,t,{enumerable:!0,configurable:!0,writable:!0,value:e})}})},fix:function(e){return e[S.expando]?e:new S.Event(e)},special:{load:{noBubble:!0},click:{setup:function(e){e=this||e;return ke.test(e.type)&&e.click&&l(e,"input")&&Ie(e,"click",i),!1},trigger:function(e){e=this||e;return ke.test(e.type)&&e.click&&l(e,"input")&&Ie(e,"click"),!0},_default:function(e){e=e.target;return ke.test(e.type)&&e.click&&l(e,"input")&&y.get(e,"click")||l(e,"a")}},beforeunload:{postDispatch:function(e){void 0!==e.result&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}}},S.removeEvent=function(e,t,i){e.removeEventListener&&e.removeEventListener(t,i)},S.Event=function(e,t){if(!(this instanceof S.Event))return new S.Event(e,t);e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||void 0===e.defaultPrevented&&!1===e.returnValue?i:$,this.target=e.target&&3===e.target.nodeType?e.target.parentNode:e.target,this.currentTarget=e.currentTarget,this.relatedTarget=e.relatedTarget):this.type=e,t&&S.extend(this,t),this.timeStamp=e&&e.timeStamp||Date.now(),this[S.expando]=!0},S.Event.prototype={constructor:S.Event,isDefaultPrevented:$,isPropagationStopped:$,isImmediatePropagationStopped:$,isSimulated:!1,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=i,e&&!this.isSimulated&&e.preventDefault()},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=i,e&&!this.isSimulated&&e.stopPropagation()},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=i,e&&!this.isSimulated&&e.stopImmediatePropagation(),this.stopPropagation()}},S.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,char:!0,code:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:function(e){var t=e.button;return null==e.which&&Ee.test(e.type)?null!=e.charCode?e.charCode:e.keyCode:!e.which&&void 0!==t&&$e.test(e.type)?1&t?1:2&t?3:4&t?2:0:e.which}},S.event.addProp),S.each({focus:"focusin",blur:"focusout"},function(e,t){S.event.special[e]={setup:function(){return Ie(this,e,Re),!1},trigger:function(){return Ie(this,e),!0},delegateType:t}}),S.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(e,r){S.event.special[e]={delegateType:r,bindType:r,handle:function(e){var t,i=e.relatedTarget,n=e.handleObj;return i&&(i===this||S.contains(this,i))||(e.type=n.origType,t=n.handler.apply(this,arguments),e.type=r),t}}}),S.fn.extend({on:function(e,t,i,n){return Me(this,e,t,i,n)},one:function(e,t,i,n){return Me(this,e,t,i,n,1)},off:function(e,t,i){var n,r;if(e&&e.preventDefault&&e.handleObj)n=e.handleObj,S(e.delegateTarget).off(n.namespace?n.origType+"."+n.namespace:n.origType,n.selector,n.handler);else{if("object"!=typeof e)return!1!==t&&"function"!=typeof t||(i=t,t=void 0),!1===i&&(i=$),this.each(function(){S.event.remove(this,e,i,t)});for(r in e)this.off(r,t,e[r])}return this}});var Ne=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([a-z][^\/\0>\x20\t\r\n\f]*)[^>]*)\/>/gi,De=/<script|<style|<link/i,Oe=/checked\s*(?:[^=]|=\s*.checked.)/i,Pe=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;function Be(e,t){return l(e,"table")&&l(11!==t.nodeType?t:t.firstChild,"tr")&&S(e).children("tbody")[0]||e}function Fe(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function je(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function ze(e,t){var i,n,r,s,a,o;if(1===t.nodeType){if(y.hasData(e)&&(s=y.access(e),a=y.set(t,s),o=s.events))for(r in delete a.handle,a.events={},o)for(i=0,n=o[r].length;i<n;i++)S.event.add(t,r,o[r][i]);c.hasData(e)&&(s=c.access(e),a=S.extend({},s),c.set(t,a))}}function L(i,n,r,s){n=B.apply([],n);var e,t,a,o,l,c,h=0,u=i.length,d=u-1,p=n[0],g=b(p);if(g||1<u&&"string"==typeof p&&!m.checkClone&&Oe.test(p))return i.each(function(e){var t=i.eq(e);g&&(n[0]=p.call(this,e,t.html())),L(t,n,r,s)});if(u&&(t=(e=Ae(n,i[0].ownerDocument,!1,i,s)).firstChild,1===e.childNodes.length&&(e=t),t||s)){for(o=(a=S.map(E(e,"script"),Fe)).length;h<u;h++)l=e,h!==d&&(l=S.clone(l,!0,!0),o)&&S.merge(a,E(l,"script")),r.call(i[h],l,h);if(o)for(c=a[a.length-1].ownerDocument,S.map(a,je),h=0;h<o;h++)l=a[h],Se.test(l.type||"")&&!y.access(l,"globalEval")&&S.contains(c,l)&&(l.src&&"module"!==(l.type||"").toLowerCase()?S._evalUrl&&!l.noModule&&S._evalUrl(l.src,{nonce:l.nonce||l.getAttribute("nonce")}):G(l.textContent.replace(Pe,""),l,c))}return i}function He(e,t,i){for(var n,r=t?S.filter(t,e):e,s=0;null!=(n=r[s]);s++)i||1!==n.nodeType||S.cleanData(E(n)),n.parentNode&&(i&&w(n)&&_e(E(n,"script")),n.parentNode.removeChild(n));return e}S.extend({htmlPrefilter:function(e){return e.replace(Ne,"<$1></$2>")},clone:function(e,t,i){var n,r,s,a,o,l,c,h=e.cloneNode(!0),u=w(e);if(!(m.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||S.isXMLDoc(e)))for(a=E(h),n=0,r=(s=E(e)).length;n<r;n++)o=s[n],"input"===(c=(l=a[n]).nodeName.toLowerCase())&&ke.test(o.type)?l.checked=o.checked:"input"!==c&&"textarea"!==c||(l.defaultValue=o.defaultValue);if(t)if(i)for(s=s||E(e),a=a||E(h),n=0,r=s.length;n<r;n++)ze(s[n],a[n]);else ze(e,h);return 0<(a=E(h,"script")).length&&_e(a,!u&&E(e,"script")),h},cleanData:function(e){for(var t,i,n,r=S.event.special,s=0;void 0!==(i=e[s]);s++)if(pe(i)){if(t=i[y.expando]){if(t.events)for(n in t.events)r[n]?S.event.remove(i,n):S.removeEvent(i,n,t.handle);i[y.expando]=void 0}i[c.expando]&&(i[c.expando]=void 0)}}}),S.fn.extend({detach:function(e){return He(this,e,!0)},remove:function(e){return He(this,e)},text:function(e){return u(this,function(e){return void 0===e?S.text(this):this.empty().each(function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=e)})},null,e,arguments.length)},append:function(){return L(this,arguments,function(e){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||Be(this,e).appendChild(e)})},prepend:function(){return L(this,arguments,function(e){var t;1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(t=Be(this,e)).insertBefore(e,t.firstChild)})},before:function(){return L(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this)})},after:function(){return L(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)})},empty:function(){for(var e,t=0;null!=(e=this[t]);t++)1===e.nodeType&&(S.cleanData(E(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map(function(){return S.clone(this,e,t)})},html:function(e){return u(this,function(e){var t=this[0]||{},i=0,n=this.length;if(void 0===e&&1===t.nodeType)return t.innerHTML;if("string"==typeof e&&!De.test(e)&&!A[(Te.exec(e)||["",""])[1].toLowerCase()]){e=S.htmlPrefilter(e);try{for(;i<n;i++)1===(t=this[i]||{}).nodeType&&(S.cleanData(E(t,!1)),t.innerHTML=e);t=0}catch(e){}}t&&this.empty().append(e)},null,e,arguments.length)},replaceWith:function(){var i=[];return L(this,arguments,function(e){var t=this.parentNode;S.inArray(this,i)<0&&(S.cleanData(E(this)),t)&&t.replaceChild(e,this)},i)}}),S.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(e,a){S.fn[e]=function(e){for(var t,i=[],n=S(e),r=n.length-1,s=0;s<=r;s++)t=s===r?this:this.clone(!0),S(n[s])[a](t),F.apply(i,t.get());return this.pushStack(i)}});function Ue(e){var t=e.ownerDocument.defaultView;return(t=t&&t.opener?t:k).getComputedStyle(e)}var qe,We,Ve,Ge,Ye,Xe,r,Ke=new RegExp("^("+e+")(?!px)[a-z%]+$","i"),Ze=new RegExp(p.join("|"),"i");function Qe(e,t,i){var n,r,s=e.style;return(i=i||Ue(e))&&(""!==(r=i.getPropertyValue(t)||i[t])||w(e)||(r=S.style(e,t)),!m.pixelBoxStyles())&&Ke.test(r)&&Ze.test(t)&&(e=s.width,t=s.minWidth,n=s.maxWidth,s.minWidth=s.maxWidth=s.width=r,r=i.width,s.width=e,s.minWidth=t,s.maxWidth=n),void 0!==r?r+"":r}function Je(e,t){return{get:function(){if(!e())return(this.get=t).apply(this,arguments);delete this.get}}}function et(){var e;r&&(Xe.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",r.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",x.appendChild(Xe).appendChild(r),e=k.getComputedStyle(r),qe="1%"!==e.top,Ye=12===tt(e.marginLeft),r.style.right="60%",Ge=36===tt(e.right),We=36===tt(e.width),r.style.position="absolute",Ve=12===tt(r.offsetWidth/3),x.removeChild(Xe),r=null)}function tt(e){return Math.round(parseFloat(e))}Xe=T.createElement("div"),(r=T.createElement("div")).style&&(r.style.backgroundClip="content-box",r.cloneNode(!0).style.backgroundClip="",m.clearCloneStyle="content-box"===r.style.backgroundClip,S.extend(m,{boxSizingReliable:function(){return et(),We},pixelBoxStyles:function(){return et(),Ge},pixelPosition:function(){return et(),qe},reliableMarginLeft:function(){return et(),Ye},scrollboxSize:function(){return et(),Ve}}));var it=["Webkit","Moz","ms"],nt=T.createElement("div").style,rt={};function st(e){return S.cssProps[e]||rt[e]||(e in nt?e:rt[e]=function(e){for(var t=e[0].toUpperCase()+e.slice(1),i=it.length;i--;)if((e=it[i]+t)in nt)return e}(e)||e)}var at=/^(none|table(?!-c[ea]).+)/,ot=/^--/,lt={position:"absolute",visibility:"hidden",display:"block"},ct={letterSpacing:"0",fontWeight:"400"};function ht(e,t,i){var n=d.exec(t);return n?Math.max(0,n[2]-(i||0))+(n[3]||"px"):t}function ut(e,t,i,n,r,s){var a="width"===t?1:0,o=0,l=0;if(i===(n?"border":"content"))return 0;for(;a<4;a+=2)"margin"===i&&(l+=S.css(e,i+p[a],!0,r)),n?("content"===i&&(l-=S.css(e,"padding"+p[a],!0,r)),"margin"!==i&&(l-=S.css(e,"border"+p[a]+"Width",!0,r))):(l+=S.css(e,"padding"+p[a],!0,r),"padding"!==i?l+=S.css(e,"border"+p[a]+"Width",!0,r):o+=S.css(e,"border"+p[a]+"Width",!0,r));return!n&&0<=s&&(l+=Math.max(0,Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-s-l-o-.5))||0),l}function dt(e,t,i){var n=Ue(e),r=(!m.boxSizingReliable()||i)&&"border-box"===S.css(e,"boxSizing",!1,n),s=r,a=Qe(e,t,n),o="offset"+t[0].toUpperCase()+t.slice(1);if(Ke.test(a)){if(!i)return a;a="auto"}return(!m.boxSizingReliable()&&r||"auto"===a||!parseFloat(a)&&"inline"===S.css(e,"display",!1,n))&&e.getClientRects().length&&(r="border-box"===S.css(e,"boxSizing",!1,n),s=o in e)&&(a=e[o]),(a=parseFloat(a)||0)+ut(e,t,i||(r?"border":"content"),s,n,a)+"px"}function s(e,t,i,n,r){return new s.prototype.init(e,t,i,n,r)}S.extend({cssHooks:{opacity:{get:function(e,t){if(t)return""===(t=Qe(e,"opacity"))?"1":t}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{},style:function(e,t,i,n){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var r,s,a,o=v(t),l=ot.test(t),c=e.style;if(l||(t=st(o)),a=S.cssHooks[t]||S.cssHooks[o],void 0===i)return a&&"get"in a&&void 0!==(r=a.get(e,!1,n))?r:c[t];"string"==(s=typeof i)&&(r=d.exec(i))&&r[1]&&(i=xe(e,t,r),s="number"),null!=i&&i==i&&("number"!==s||l||(i+=r&&r[3]||(S.cssNumber[o]?"":"px")),m.clearCloneStyle||""!==i||0!==t.indexOf("background")||(c[t]="inherit"),a&&"set"in a&&void 0===(i=a.set(e,i,n))||(l?c.setProperty(t,i):c[t]=i))}},css:function(e,t,i,n){var r,s=v(t);return ot.test(t)||(t=st(s)),"normal"===(r=void 0===(r=(s=S.cssHooks[t]||S.cssHooks[s])&&"get"in s?s.get(e,!0,i):r)?Qe(e,t,n):r)&&t in ct&&(r=ct[t]),(""===i||i)&&(s=parseFloat(r),!0===i||isFinite(s))?s||0:r}}),S.each(["height","width"],function(e,a){S.cssHooks[a]={get:function(e,t,i){if(t)return!at.test(S.css(e,"display"))||e.getClientRects().length&&e.getBoundingClientRect().width?dt(e,a,i):be(e,lt,function(){return dt(e,a,i)})},set:function(e,t,i){var n=Ue(e),r=!m.scrollboxSize()&&"absolute"===n.position,s=(r||i)&&"border-box"===S.css(e,"boxSizing",!1,n),i=i?ut(e,a,i,s,n):0;return s&&r&&(i-=Math.ceil(e["offset"+a[0].toUpperCase()+a.slice(1)]-parseFloat(n[a])-ut(e,a,"border",!1,n)-.5)),i&&(s=d.exec(t))&&"px"!==(s[3]||"px")&&(e.style[a]=t,t=S.css(e,a)),ht(0,t,i)}}}),S.cssHooks.marginLeft=Je(m.reliableMarginLeft,function(e,t){if(t)return(parseFloat(Qe(e,"marginLeft"))||e.getBoundingClientRect().left-be(e,{marginLeft:0},function(){return e.getBoundingClientRect().left}))+"px"}),S.each({margin:"",padding:"",border:"Width"},function(r,s){S.cssHooks[r+s]={expand:function(e){for(var t=0,i={},n="string"==typeof e?e.split(" "):[e];t<4;t++)i[r+p[t]+s]=n[t]||n[t-2]||n[0];return i}},"margin"!==r&&(S.cssHooks[r+s].set=ht)}),S.fn.extend({css:function(e,t){return u(this,function(e,t,i){var n,r,s={},a=0;if(Array.isArray(t)){for(n=Ue(e),r=t.length;a<r;a++)s[t[a]]=S.css(e,t[a],!1,n);return s}return void 0!==i?S.style(e,t,i):S.css(e,t)},e,t,1<arguments.length)}}),((S.Tween=s).prototype={constructor:s,init:function(e,t,i,n,r,s){this.elem=e,this.prop=i,this.easing=r||S.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=n,this.unit=s||(S.cssNumber[i]?"":"px")},cur:function(){var e=s.propHooks[this.prop];return(e&&e.get?e:s.propHooks._default).get(this)},run:function(e){var t,i=s.propHooks[this.prop];return this.options.duration?this.pos=t=S.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=t=e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),(i&&i.set?i:s.propHooks._default).set(this),this}}).init.prototype=s.prototype,(s.propHooks={_default:{get:function(e){return 1!==e.elem.nodeType||null!=e.elem[e.prop]&&null==e.elem.style[e.prop]?e.elem[e.prop]:(e=S.css(e.elem,e.prop,""))&&"auto"!==e?e:0},set:function(e){S.fx.step[e.prop]?S.fx.step[e.prop](e):1!==e.elem.nodeType||!S.cssHooks[e.prop]&&null==e.elem.style[st(e.prop)]?e.elem[e.prop]=e.now:S.style(e.elem,e.prop,e.now+e.unit)}}}).scrollTop=s.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},S.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:"swing"},S.fx=s.prototype.init,S.fx.step={};var R,pt,a,M,gt=/^(?:toggle|show|hide)$/,ft=/queueHooks$/;function mt(){pt&&(!1===T.hidden&&k.requestAnimationFrame?k.requestAnimationFrame(mt):k.setTimeout(mt,S.fx.interval),S.fx.tick())}function yt(){return k.setTimeout(function(){R=void 0}),R=Date.now()}function bt(e,t){var i,n=0,r={height:e};for(t=t?1:0;n<4;n+=2-t)r["margin"+(i=p[n])]=r["padding"+i]=e;return t&&(r.opacity=r.width=e),r}function vt(e,t,i){for(var n,r=(I.tweeners[t]||[]).concat(I.tweeners["*"]),s=0,a=r.length;s<a;s++)if(n=r[s].call(i,t,e))return n}function I(r,e,t){var i,s,n,a,o,l,c,h=0,u=I.prefilters.length,d=S.Deferred().always(function(){delete p.elem}),p=function(){if(s)return!1;for(var e=R||yt(),e=Math.max(0,g.startTime+g.duration-e),t=1-(e/g.duration||0),i=0,n=g.tweens.length;i<n;i++)g.tweens[i].run(t);return d.notifyWith(r,[g,t,e]),t<1&&n?e:(n||d.notifyWith(r,[g,1,0]),d.resolveWith(r,[g]),!1)},g=d.promise({elem:r,props:S.extend({},e),opts:S.extend(!0,{specialEasing:{},easing:S.easing._default},t),originalProperties:e,originalOptions:t,startTime:R||yt(),duration:t.duration,tweens:[],createTween:function(e,t){t=S.Tween(r,g.opts,e,t,g.opts.specialEasing[e]||g.opts.easing);return g.tweens.push(t),t},stop:function(e){var t=0,i=e?g.tweens.length:0;if(!s){for(s=!0;t<i;t++)g.tweens[t].run(1);e?(d.notifyWith(r,[g,1,0]),d.resolveWith(r,[g,e])):d.rejectWith(r,[g,e])}return this}}),f=g.props,m=f,y=g.opts.specialEasing;for(n in m)if(o=y[a=v(n)],l=m[n],Array.isArray(l)&&(o=l[1],l=m[n]=l[0]),n!==a&&(m[a]=l,delete m[n]),(c=S.cssHooks[a])&&"expand"in c)for(n in l=c.expand(l),delete m[a],l)n in m||(m[n]=l[n],y[n]=o);else y[a]=o;for(;h<u;h++)if(i=I.prefilters[h].call(g,r,f,g.opts))return b(i.stop)&&(S._queueHooks(g.elem,g.opts.queue).stop=i.stop.bind(i)),i;return S.map(f,vt,g),b(g.opts.start)&&g.opts.start.call(r,g),g.progress(g.opts.progress).done(g.opts.done,g.opts.complete).fail(g.opts.fail).always(g.opts.always),S.fx.timer(S.extend(p,{elem:r,anim:g,queue:g.opts.queue})),g}S.Animation=S.extend(I,{tweeners:{"*":[function(e,t){var i=this.createTween(e,t);return xe(i.elem,e,d.exec(t),i),i}]},tweener:function(e,t){for(var i,n=0,r=(e=b(e)?(t=e,["*"]):e.match(_)).length;n<r;n++)i=e[n],I.tweeners[i]=I.tweeners[i]||[],I.tweeners[i].unshift(t)},prefilters:[function(e,t,i){var n,r,s,a,o,l,c,h="width"in t||"height"in t,u=this,d={},p=e.style,g=e.nodeType&&ye(e),f=y.get(e,"fxshow");for(n in i.queue||(null==(a=S._queueHooks(e,"fx")).unqueued&&(a.unqueued=0,o=a.empty.fire,a.empty.fire=function(){a.unqueued||o()}),a.unqueued++,u.always(function(){u.always(function(){a.unqueued--,S.queue(e,"fx").length||a.empty.fire()})})),t)if(r=t[n],gt.test(r)){if(delete t[n],s=s||"toggle"===r,r===(g?"hide":"show")){if("show"!==r||!f||void 0===f[n])continue;g=!0}d[n]=f&&f[n]||S.style(e,n)}if((l=!S.isEmptyObject(t))||!S.isEmptyObject(d))for(n in h&&1===e.nodeType&&(i.overflow=[p.overflow,p.overflowX,p.overflowY],null==(c=f&&f.display)&&(c=y.get(e,"display")),"none"===(h=S.css(e,"display"))&&(c?h=c:(C([e],!0),c=e.style.display||c,h=S.css(e,"display"),C([e]))),"inline"===h||"inline-block"===h&&null!=c)&&"none"===S.css(e,"float")&&(l||(u.done(function(){p.display=c}),null==c&&(h=p.display,c="none"===h?"":h)),p.display="inline-block"),i.overflow&&(p.overflow="hidden",u.always(function(){p.overflow=i.overflow[0],p.overflowX=i.overflow[1],p.overflowY=i.overflow[2]})),l=!1,d)l||(f?"hidden"in f&&(g=f.hidden):f=y.access(e,"fxshow",{display:c}),s&&(f.hidden=!g),g&&C([e],!0),u.done(function(){for(n in g||C([e]),y.remove(e,"fxshow"),d)S.style(e,n,d[n])})),l=vt(g?f[n]:0,n,u),n in f||(f[n]=l.start,g&&(l.end=l.start,l.start=0))}],prefilter:function(e,t){t?I.prefilters.unshift(e):I.prefilters.push(e)}}),S.speed=function(e,t,i){var n=e&&"object"==typeof e?S.extend({},e):{complete:i||!i&&t||b(e)&&e,duration:e,easing:i&&t||t&&!b(t)&&t};return S.fx.off?n.duration=0:"number"!=typeof n.duration&&(n.duration in S.fx.speeds?n.duration=S.fx.speeds[n.duration]:n.duration=S.fx.speeds._default),null!=n.queue&&!0!==n.queue||(n.queue="fx"),n.old=n.complete,n.complete=function(){b(n.old)&&n.old.call(this),n.queue&&S.dequeue(this,n.queue)},n},S.fn.extend({fadeTo:function(e,t,i,n){return this.filter(ye).css("opacity",0).show().end().animate({opacity:t},e,i,n)},animate:function(t,e,i,n){function r(){var e=I(this,S.extend({},t),a);(s||y.get(this,"finish"))&&e.stop(!0)}var s=S.isEmptyObject(t),a=S.speed(e,i,n);return r.finish=r,s||!1===a.queue?this.each(r):this.queue(a.queue,r)},stop:function(r,e,s){function a(e){var t=e.stop;delete e.stop,t(s)}return"string"!=typeof r&&(s=e,e=r,r=void 0),e&&!1!==r&&this.queue(r||"fx",[]),this.each(function(){var e=!0,t=null!=r&&r+"queueHooks",i=S.timers,n=y.get(this);if(t)n[t]&&n[t].stop&&a(n[t]);else for(t in n)n[t]&&n[t].stop&&ft.test(t)&&a(n[t]);for(t=i.length;t--;)i[t].elem!==this||null!=r&&i[t].queue!==r||(i[t].anim.stop(s),e=!1,i.splice(t,1));!e&&s||S.dequeue(this,r)})},finish:function(a){return!1!==a&&(a=a||"fx"),this.each(function(){var e,t=y.get(this),i=t[a+"queue"],n=t[a+"queueHooks"],r=S.timers,s=i?i.length:0;for(t.finish=!0,S.queue(this,a,[]),n&&n.stop&&n.stop.call(this,!0),e=r.length;e--;)r[e].elem===this&&r[e].queue===a&&(r[e].anim.stop(!0),r.splice(e,1));for(e=0;e<s;e++)i[e]&&i[e].finish&&i[e].finish.call(this);delete t.finish})}}),S.each(["toggle","show","hide"],function(e,n){var r=S.fn[n];S.fn[n]=function(e,t,i){return null==e||"boolean"==typeof e?r.apply(this,arguments):this.animate(bt(n,!0),e,t,i)}}),S.each({slideDown:bt("show"),slideUp:bt("hide"),slideToggle:bt("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(e,n){S.fn[e]=function(e,t,i){return this.animate(n,e,t,i)}}),S.timers=[],S.fx.tick=function(){var e,t=0,i=S.timers;for(R=Date.now();t<i.length;t++)(e=i[t])()||i[t]!==e||i.splice(t--,1);i.length||S.fx.stop(),R=void 0},S.fx.timer=function(e){S.timers.push(e),S.fx.start()},S.fx.interval=13,S.fx.start=function(){pt||(pt=!0,mt())},S.fx.stop=function(){pt=null},S.fx.speeds={slow:600,fast:200,_default:400},S.fn.delay=function(n,e){return n=S.fx&&S.fx.speeds[n]||n,this.queue(e=e||"fx",function(e,t){var i=k.setTimeout(e,n);t.stop=function(){k.clearTimeout(i)}})},a=T.createElement("input"),M=T.createElement("select").appendChild(T.createElement("option")),a.type="checkbox",m.checkOn=""!==a.value,m.optSelected=M.selected,(a=T.createElement("input")).value="t",a.type="radio",m.radioValue="t"===a.value;var xt,wt=S.expr.attrHandle,kt=(S.fn.extend({attr:function(e,t){return u(this,S.attr,e,t,1<arguments.length)},removeAttr:function(e){return this.each(function(){S.removeAttr(this,e)})}}),S.extend({attr:function(e,t,i){var n,r,s=e.nodeType;if(3!==s&&8!==s&&2!==s)return void 0===e.getAttribute?S.prop(e,t,i):(1===s&&S.isXMLDoc(e)||(r=S.attrHooks[t.toLowerCase()]||(S.expr.match.bool.test(t)?xt:void 0)),void 0!==i?null===i?void S.removeAttr(e,t):r&&"set"in r&&void 0!==(n=r.set(e,i,t))?n:(e.setAttribute(t,i+""),i):!(r&&"get"in r&&null!==(n=r.get(e,t)))&&null==(n=S.find.attr(e,t))?void 0:n)},attrHooks:{type:{set:function(e,t){var i;if(!m.radioValue&&"radio"===t&&l(e,"input"))return i=e.value,e.setAttribute("type",t),i&&(e.value=i),t}}},removeAttr:function(e,t){var i,n=0,r=t&&t.match(_);if(r&&1===e.nodeType)for(;i=r[n++];)e.removeAttribute(i)}}),xt={set:function(e,t,i){return!1===t?S.removeAttr(e,i):e.setAttribute(i,i),i}},S.each(S.expr.match.bool.source.match(/\w+/g),function(e,t){var a=wt[t]||S.find.attr;wt[t]=function(e,t,i){var n,r,s=t.toLowerCase();return i||(r=wt[s],wt[s]=n,n=null!=a(e,t,i)?s:null,wt[s]=r),n}}),/^(?:input|select|textarea|button)$/i),Tt=/^(?:a|area)$/i;function N(e){return(e.match(_)||[]).join(" ")}function D(e){return e.getAttribute&&e.getAttribute("class")||""}function St(e){return Array.isArray(e)?e:"string"==typeof e&&e.match(_)||[]}S.fn.extend({prop:function(e,t){return u(this,S.prop,e,t,1<arguments.length)},removeProp:function(e){return this.each(function(){delete this[S.propFix[e]||e]})}}),S.extend({prop:function(e,t,i){var n,r,s=e.nodeType;if(3!==s&&8!==s&&2!==s)return 1===s&&S.isXMLDoc(e)||(t=S.propFix[t]||t,r=S.propHooks[t]),void 0!==i?r&&"set"in r&&void 0!==(n=r.set(e,i,t))?n:e[t]=i:r&&"get"in r&&null!==(n=r.get(e,t))?n:e[t]},propHooks:{tabIndex:{get:function(e){var t=S.find.attr(e,"tabindex");return t?parseInt(t,10):kt.test(e.nodeName)||Tt.test(e.nodeName)&&e.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),m.optSelected||(S.propHooks.selected={get:function(e){e=e.parentNode;return e&&e.parentNode&&e.parentNode.selectedIndex,null},set:function(e){e=e.parentNode;e&&(e.selectedIndex,e.parentNode)&&e.parentNode.selectedIndex}}),S.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){S.propFix[this.toLowerCase()]=this}),S.fn.extend({addClass:function(t){var e,i,n,r,s,a,o=0;if(b(t))return this.each(function(e){S(this).addClass(t.call(this,e,D(this)))});if((e=St(t)).length)for(;i=this[o++];)if(a=D(i),n=1===i.nodeType&&" "+N(a)+" "){for(s=0;r=e[s++];)n.indexOf(" "+r+" ")<0&&(n+=r+" ");a!==(a=N(n))&&i.setAttribute("class",a)}return this},removeClass:function(t){var e,i,n,r,s,a,o=0;if(b(t))return this.each(function(e){S(this).removeClass(t.call(this,e,D(this)))});if(!arguments.length)return this.attr("class","");if((e=St(t)).length)for(;i=this[o++];)if(a=D(i),n=1===i.nodeType&&" "+N(a)+" "){for(s=0;r=e[s++];)for(;-1<n.indexOf(" "+r+" ");)n=n.replace(" "+r+" "," ");a!==(a=N(n))&&i.setAttribute("class",a)}return this},toggleClass:function(r,t){var s=typeof r,a="string"==s||Array.isArray(r);return"boolean"==typeof t&&a?t?this.addClass(r):this.removeClass(r):b(r)?this.each(function(e){S(this).toggleClass(r.call(this,e,D(this),t),t)}):this.each(function(){var e,t,i,n;if(a)for(t=0,i=S(this),n=St(r);e=n[t++];)i.hasClass(e)?i.removeClass(e):i.addClass(e);else void 0!==r&&"boolean"!=s||((e=D(this))&&y.set(this,"__className__",e),this.setAttribute&&this.setAttribute("class",!e&&!1!==r&&y.get(this,"__className__")||""))})},hasClass:function(e){for(var t,i=0,n=" "+e+" ";t=this[i++];)if(1===t.nodeType&&-1<(" "+N(D(t))+" ").indexOf(n))return!0;return!1}});function _t(e){e.stopPropagation()}var Ct=/\r/g,At=(S.fn.extend({val:function(t){var i,e,n,r=this[0];return arguments.length?(n=b(t),this.each(function(e){1===this.nodeType&&(null==(e=n?t.call(this,e,S(this).val()):t)?e="":"number"==typeof e?e+="":Array.isArray(e)&&(e=S.map(e,function(e){return null==e?"":e+""})),(i=S.valHooks[this.type]||S.valHooks[this.nodeName.toLowerCase()])&&"set"in i&&void 0!==i.set(this,e,"value")||(this.value=e))})):r?(i=S.valHooks[r.type]||S.valHooks[r.nodeName.toLowerCase()])&&"get"in i&&void 0!==(e=i.get(r,"value"))?e:"string"==typeof(e=r.value)?e.replace(Ct,""):null==e?"":e:void 0}}),S.extend({valHooks:{option:{get:function(e){var t=S.find.attr(e,"value");return null!=t?t:N(S.text(e))}},select:{get:function(e){for(var t,i=e.options,n=e.selectedIndex,r="select-one"===e.type,s=r?null:[],a=r?n+1:i.length,o=n<0?a:r?n:0;o<a;o++)if(((t=i[o]).selected||o===n)&&!t.disabled&&(!t.parentNode.disabled||!l(t.parentNode,"optgroup"))){if(t=S(t).val(),r)return t;s.push(t)}return s},set:function(e,t){for(var i,n,r=e.options,s=S.makeArray(t),a=r.length;a--;)((n=r[a]).selected=-1<S.inArray(S.valHooks.option.get(n),s))&&(i=!0);return i||(e.selectedIndex=-1),s}}}}),S.each(["radio","checkbox"],function(){S.valHooks[this]={set:function(e,t){if(Array.isArray(t))return e.checked=-1<S.inArray(S(e).val(),t)}},m.checkOn||(S.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})}),m.focusin="onfocusin"in k,/^(?:focusinfocus|focusoutblur)$/),Et=(S.extend(S.event,{trigger:function(e,t,i,n){var r,s,a,o,l,c,h,u=[i||T],d=U.call(e,"type")?e.type:e,p=U.call(e,"namespace")?e.namespace.split("."):[],g=h=s=i=i||T;if(3!==i.nodeType&&8!==i.nodeType&&!At.test(d+S.event.triggered)&&(-1<d.indexOf(".")&&(d=(p=d.split(".")).shift(),p.sort()),o=d.indexOf(":")<0&&"on"+d,(e=e[S.expando]?e:new S.Event(d,"object"==typeof e&&e)).isTrigger=n?2:3,e.namespace=p.join("."),e.rnamespace=e.namespace?new RegExp("(^|\\.)"+p.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=void 0,e.target||(e.target=i),t=null==t?[e]:S.makeArray(t,[e]),c=S.event.special[d]||{},n||!c.trigger||!1!==c.trigger.apply(i,t))){if(!n&&!c.noBubble&&!f(i)){for(a=c.delegateType||d,At.test(a+d)||(g=g.parentNode);g;g=g.parentNode)u.push(g),s=g;s===(i.ownerDocument||T)&&u.push(s.defaultView||s.parentWindow||k)}for(r=0;(g=u[r++])&&!e.isPropagationStopped();)h=g,e.type=1<r?a:c.bindType||d,(l=(y.get(g,"events")||{})[e.type]&&y.get(g,"handle"))&&l.apply(g,t),(l=o&&g[o])&&l.apply&&pe(g)&&(e.result=l.apply(g,t),!1===e.result)&&e.preventDefault();return e.type=d,n||e.isDefaultPrevented()||c._default&&!1!==c._default.apply(u.pop(),t)||!pe(i)||o&&b(i[d])&&!f(i)&&((s=i[o])&&(i[o]=null),S.event.triggered=d,e.isPropagationStopped()&&h.addEventListener(d,_t),i[d](),e.isPropagationStopped()&&h.removeEventListener(d,_t),S.event.triggered=void 0,s)&&(i[o]=s),e.result}},simulate:function(e,t,i){i=S.extend(new S.Event,i,{type:e,isSimulated:!0});S.event.trigger(i,null,t)}}),S.fn.extend({trigger:function(e,t){return this.each(function(){S.event.trigger(e,t,this)})},triggerHandler:function(e,t){var i=this[0];if(i)return S.event.trigger(e,t,i,!0)}}),m.focusin||S.each({focus:"focusin",blur:"focusout"},function(i,n){function r(e){S.event.simulate(n,e.target,S.event.fix(e))}S.event.special[n]={setup:function(){var e=this.ownerDocument||this,t=y.access(e,n);t||e.addEventListener(i,r,!0),y.access(e,n,(t||0)+1)},teardown:function(){var e=this.ownerDocument||this,t=y.access(e,n)-1;t?y.access(e,n,t):(e.removeEventListener(i,r,!0),y.remove(e,n))}}}),k.location),$t=Date.now(),Lt=/\?/,Rt=(S.parseXML=function(e){var t;if(!e||"string"!=typeof e)return null;try{t=(new k.DOMParser).parseFromString(e,"text/xml")}catch(e){t=void 0}return t&&!t.getElementsByTagName("parsererror").length||S.error("Invalid XML: "+e),t},/\[\]$/),Mt=/\r?\n/g,It=/^(?:submit|button|image|reset|file)$/i,Nt=/^(?:input|select|textarea|keygen)/i;S.param=function(e,t){function i(e,t){t=b(t)?t():t,r[r.length]=encodeURIComponent(e)+"="+encodeURIComponent(null==t?"":t)}var n,r=[];if(null==e)return"";if(Array.isArray(e)||e.jquery&&!S.isPlainObject(e))S.each(e,function(){i(this.name,this.value)});else for(n in e)!function i(n,e,r,s){if(Array.isArray(e))S.each(e,function(e,t){r||Rt.test(n)?s(n,t):i(n+"["+("object"==typeof t&&null!=t?e:"")+"]",t,r,s)});else if(r||"object"!==g(e))s(n,e);else for(var t in e)i(n+"["+t+"]",e[t],r,s)}(n,e[n],t,i);return r.join("&")},S.fn.extend({serialize:function(){return S.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var e=S.prop(this,"elements");return e?S.makeArray(e):this}).filter(function(){var e=this.type;return this.name&&!S(this).is(":disabled")&&Nt.test(this.nodeName)&&!It.test(e)&&(this.checked||!ke.test(e))}).map(function(e,t){var i=S(this).val();return null==i?null:Array.isArray(i)?S.map(i,function(e){return{name:t.name,value:e.replace(Mt,"\r\n")}}):{name:t.name,value:i.replace(Mt,"\r\n")}}).get()}});var Dt=/%20/g,Ot=/#.*$/,Pt=/([?&])_=[^&]*/,Bt=/^(.*?):[ \t]*([^\r\n]*)$/gm,Ft=/^(?:GET|HEAD)$/,jt=/^\/\//,zt={},Ht={},Ut="*/".concat("*"),qt=T.createElement("a");function Wt(s){return function(e,t){"string"!=typeof e&&(t=e,e="*");var i,n=0,r=e.toLowerCase().match(_)||[];if(b(t))for(;i=r[n++];)"+"===i[0]?(i=i.slice(1)||"*",(s[i]=s[i]||[]).unshift(t)):(s[i]=s[i]||[]).push(t)}}function Vt(t,n,r,s){var a={},o=t===Ht;function l(e){var i;return a[e]=!0,S.each(t[e]||[],function(e,t){t=t(n,r,s);return"string"!=typeof t||o||a[t]?o?!(i=t):void 0:(n.dataTypes.unshift(t),l(t),!1)}),i}return l(n.dataTypes[0])||!a["*"]&&l("*")}function Gt(e,t){var i,n,r=S.ajaxSettings.flatOptions||{};for(i in t)void 0!==t[i]&&((r[i]?e:n=n||{})[i]=t[i]);return n&&S.extend(!0,e,n),e}qt.href=Et.href,S.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Et.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(Et.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Ut,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":S.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?Gt(Gt(e,S.ajaxSettings),t):Gt(S.ajaxSettings,e)},ajaxPrefilter:Wt(zt),ajaxTransport:Wt(Ht),ajax:function(e,t){"object"==typeof e&&(t=e,e=void 0);var l,c,h,i,u,d,p,n,r,g=S.ajaxSetup({},t=t||{}),f=g.context||g,m=g.context&&(f.nodeType||f.jquery)?S(f):S.event,y=S.Deferred(),b=S.Callbacks("once memory"),v=g.statusCode||{},s={},a={},o="canceled",x={readyState:0,getResponseHeader:function(e){var t;if(d){if(!i)for(i={};t=Bt.exec(h);)i[t[1].toLowerCase()+" "]=(i[t[1].toLowerCase()+" "]||[]).concat(t[2]);t=i[e.toLowerCase()+" "]}return null==t?null:t.join(", ")},getAllResponseHeaders:function(){return d?h:null},setRequestHeader:function(e,t){return null==d&&(e=a[e.toLowerCase()]=a[e.toLowerCase()]||e,s[e]=t),this},overrideMimeType:function(e){return null==d&&(g.mimeType=e),this},statusCode:function(e){if(e)if(d)x.always(e[x.status]);else for(var t in e)v[t]=[v[t],e[t]];return this},abort:function(e){e=e||o;return l&&l.abort(e),w(0,e),this}};if(y.promise(x),g.url=((e||g.url||Et.href)+"").replace(jt,Et.protocol+"//"),g.type=t.method||t.type||g.method||g.type,g.dataTypes=(g.dataType||"*").toLowerCase().match(_)||[""],null==g.crossDomain){r=T.createElement("a");try{r.href=g.url,r.href=r.href,g.crossDomain=qt.protocol+"//"+qt.host!=r.protocol+"//"+r.host}catch(e){g.crossDomain=!0}}if(g.data&&g.processData&&"string"!=typeof g.data&&(g.data=S.param(g.data,g.traditional)),Vt(zt,g,t,x),!d){for(n in(p=S.event&&g.global)&&0==S.active++&&S.event.trigger("ajaxStart"),g.type=g.type.toUpperCase(),g.hasContent=!Ft.test(g.type),c=g.url.replace(Ot,""),g.hasContent?g.data&&g.processData&&0===(g.contentType||"").indexOf("application/x-www-form-urlencoded")&&(g.data=g.data.replace(Dt,"+")):(r=g.url.slice(c.length),g.data&&(g.processData||"string"==typeof g.data)&&(c+=(Lt.test(c)?"&":"?")+g.data,delete g.data),!1===g.cache&&(c=c.replace(Pt,"$1"),r=(Lt.test(c)?"&":"?")+"_="+$t+++r),g.url=c+r),g.ifModified&&(S.lastModified[c]&&x.setRequestHeader("If-Modified-Since",S.lastModified[c]),S.etag[c])&&x.setRequestHeader("If-None-Match",S.etag[c]),(g.data&&g.hasContent&&!1!==g.contentType||t.contentType)&&x.setRequestHeader("Content-Type",g.contentType),x.setRequestHeader("Accept",g.dataTypes[0]&&g.accepts[g.dataTypes[0]]?g.accepts[g.dataTypes[0]]+("*"!==g.dataTypes[0]?", "+Ut+"; q=0.01":""):g.accepts["*"]),g.headers)x.setRequestHeader(n,g.headers[n]);if(g.beforeSend&&(!1===g.beforeSend.call(f,x,g)||d))return x.abort();if(o="abort",b.add(g.complete),x.done(g.success),x.fail(g.error),l=Vt(Ht,g,t,x)){if(x.readyState=1,p&&m.trigger("ajaxSend",[x,g]),d)return x;g.async&&0<g.timeout&&(u=k.setTimeout(function(){x.abort("timeout")},g.timeout));try{d=!1,l.send(s,w)}catch(e){if(d)throw e;w(-1,e)}}else w(-1,"No Transport")}return x;function w(e,t,i,n){var r,s,a,o=t;d||(d=!0,u&&k.clearTimeout(u),l=void 0,h=n||"",x.readyState=0<e?4:0,n=200<=e&&e<300||304===e,i&&(a=function(e,t,i){for(var n,r,s,a,o=e.contents,l=e.dataTypes;"*"===l[0];)l.shift(),void 0===n&&(n=e.mimeType||t.getResponseHeader("Content-Type"));if(n)for(r in o)if(o[r]&&o[r].test(n)){l.unshift(r);break}if(l[0]in i)s=l[0];else{for(r in i){if(!l[0]||e.converters[r+" "+l[0]]){s=r;break}a=a||r}s=s||a}if(s)return s!==l[0]&&l.unshift(s),i[s]}(g,x,i)),a=function(e,t,i,n){var r,s,a,o,l,c={},h=e.dataTypes.slice();if(h[1])for(a in e.converters)c[a.toLowerCase()]=e.converters[a];for(s=h.shift();s;)if(e.responseFields[s]&&(i[e.responseFields[s]]=t),!l&&n&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),l=s,s=h.shift())if("*"===s)s=l;else if("*"!==l&&l!==s){if(!(a=c[l+" "+s]||c["* "+s]))for(r in c)if((o=r.split(" "))[1]===s&&(a=c[l+" "+o[0]]||c["* "+o[0]])){!0===a?a=c[r]:!0!==c[r]&&(s=o[0],h.unshift(o[1]));break}if(!0!==a)if(a&&e.throws)t=a(t);else try{t=a(t)}catch(e){return{state:"parsererror",error:a?e:"No conversion from "+l+" to "+s}}}return{state:"success",data:t}}(g,a,x,n),n?(g.ifModified&&((i=x.getResponseHeader("Last-Modified"))&&(S.lastModified[c]=i),i=x.getResponseHeader("etag"))&&(S.etag[c]=i),204===e||"HEAD"===g.type?o="nocontent":304===e?o="notmodified":(o=a.state,r=a.data,n=!(s=a.error))):(s=o,!e&&o||(o="error",e<0&&(e=0))),x.status=e,x.statusText=(t||o)+"",n?y.resolveWith(f,[r,o,x]):y.rejectWith(f,[x,o,s]),x.statusCode(v),v=void 0,p&&m.trigger(n?"ajaxSuccess":"ajaxError",[x,g,n?r:s]),b.fireWith(f,[x,o]),p&&(m.trigger("ajaxComplete",[x,g]),--S.active||S.event.trigger("ajaxStop")))}},getJSON:function(e,t,i){return S.get(e,t,i,"json")},getScript:function(e,t){return S.get(e,void 0,t,"script")}}),S.each(["get","post"],function(e,r){S[r]=function(e,t,i,n){return b(t)&&(n=n||i,i=t,t=void 0),S.ajax(S.extend({url:e,type:r,dataType:n,data:t,success:i},S.isPlainObject(e)&&e))}}),S._evalUrl=function(e,t){return S.ajax({url:e,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(e){S.globalEval(e,t)}})},S.fn.extend({wrapAll:function(e){return this[0]&&(b(e)&&(e=e.call(this[0])),e=S(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&e.insertBefore(this[0]),e.map(function(){for(var e=this;e.firstElementChild;)e=e.firstElementChild;return e}).append(this)),this},wrapInner:function(i){return b(i)?this.each(function(e){S(this).wrapInner(i.call(this,e))}):this.each(function(){var e=S(this),t=e.contents();t.length?t.wrapAll(i):e.append(i)})},wrap:function(t){var i=b(t);return this.each(function(e){S(this).wrapAll(i?t.call(this,e):t)})},unwrap:function(e){return this.parent(e).not("body").each(function(){S(this).replaceWith(this.childNodes)}),this}}),S.expr.pseudos.hidden=function(e){return!S.expr.pseudos.visible(e)},S.expr.pseudos.visible=function(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)},S.ajaxSettings.xhr=function(){try{return new k.XMLHttpRequest}catch(e){}};var Yt={0:200,1223:204},Xt=S.ajaxSettings.xhr();m.cors=!!Xt&&"withCredentials"in Xt,m.ajax=Xt=!!Xt,S.ajaxTransport(function(r){var s,a;if(m.cors||Xt&&!r.crossDomain)return{send:function(e,t){var i,n=r.xhr();if(n.open(r.type,r.url,r.async,r.username,r.password),r.xhrFields)for(i in r.xhrFields)n[i]=r.xhrFields[i];for(i in r.mimeType&&n.overrideMimeType&&n.overrideMimeType(r.mimeType),r.crossDomain||e["X-Requested-With"]||(e["X-Requested-With"]="XMLHttpRequest"),e)n.setRequestHeader(i,e[i]);s=function(e){return function(){s&&(s=a=n.onload=n.onerror=n.onabort=n.ontimeout=n.onreadystatechange=null,"abort"===e?n.abort():"error"===e?"number"!=typeof n.status?t(0,"error"):t(n.status,n.statusText):t(Yt[n.status]||n.status,n.statusText,"text"!==(n.responseType||"text")||"string"!=typeof n.responseText?{binary:n.response}:{text:n.responseText},n.getAllResponseHeaders()))}},n.onload=s(),a=n.onerror=n.ontimeout=s("error"),void 0!==n.onabort?n.onabort=a:n.onreadystatechange=function(){4===n.readyState&&k.setTimeout(function(){s&&a()})},s=s("abort");try{n.send(r.hasContent&&r.data||null)}catch(e){if(s)throw e}},abort:function(){s&&s()}}}),S.ajaxPrefilter(function(e){e.crossDomain&&(e.contents.script=!1)}),S.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(e){return S.globalEval(e),e}}}),S.ajaxPrefilter("script",function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET")}),S.ajaxTransport("script",function(i){var n,r;if(i.crossDomain||i.scriptAttrs)return{send:function(e,t){n=S("<script>").attr(i.scriptAttrs||{}).prop({charset:i.scriptCharset,src:i.url}).on("load error",r=function(e){n.remove(),r=null,e&&t("error"===e.type?404:200,e.type)}),T.head.appendChild(n[0])},abort:function(){r&&r()}}});var Kt=[],Zt=/(=)\?(?=&|$)|\?\?/,Qt=(S.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=Kt.pop()||S.expando+"_"+$t++;return this[e]=!0,e}}),S.ajaxPrefilter("json jsonp",function(e,t,i){var n,r,s,a=!1!==e.jsonp&&(Zt.test(e.url)?"url":"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&Zt.test(e.data)&&"data");if(a||"jsonp"===e.dataTypes[0])return n=e.jsonpCallback=b(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,a?e[a]=e[a].replace(Zt,"$1"+n):!1!==e.jsonp&&(e.url+=(Lt.test(e.url)?"&":"?")+e.jsonp+"="+n),e.converters["script json"]=function(){return s||S.error(n+" was not called"),s[0]},e.dataTypes[0]="json",r=k[n],k[n]=function(){s=arguments},i.always(function(){void 0===r?S(k).removeProp(n):k[n]=r,e[n]&&(e.jsonpCallback=t.jsonpCallback,Kt.push(n)),s&&b(r)&&r(s[0]),s=r=void 0}),"script"}),m.createHTMLDocument=((e=T.implementation.createHTMLDocument("").body).innerHTML="<form></form><form></form>",2===e.childNodes.length),S.parseHTML=function(e,t,i){return"string"!=typeof e?[]:("boolean"==typeof t&&(i=t,t=!1),t||(m.createHTMLDocument?((n=(t=T.implementation.createHTMLDocument("")).createElement("base")).href=T.location.href,t.head.appendChild(n)):t=T),n=!i&&[],(i=Q.exec(e))?[t.createElement(i[1])]:(i=Ae([e],t,n),n&&n.length&&S(n).remove(),S.merge([],i.childNodes)));var n},S.fn.load=function(e,t,i){var n,r,s,a=this,o=e.indexOf(" ");return-1<o&&(n=N(e.slice(o)),e=e.slice(0,o)),b(t)?(i=t,t=void 0):t&&"object"==typeof t&&(r="POST"),0<a.length&&S.ajax({url:e,type:r||"GET",dataType:"html",data:t}).done(function(e){s=arguments,a.html(n?S("<div>").append(S.parseHTML(e)).find(n):e)}).always(i&&function(e,t){a.each(function(){i.apply(this,s||[e.responseText,t,e])})}),this},S.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){S.fn[t]=function(e){return this.on(t,e)}}),S.expr.pseudos.animated=function(t){return S.grep(S.timers,function(e){return t===e.elem}).length},S.offset={setOffset:function(e,t,i){var n,r,s,a,o=S.css(e,"position"),l=S(e),c={};"static"===o&&(e.style.position="relative"),s=l.offset(),n=S.css(e,"top"),a=S.css(e,"left"),o=("absolute"===o||"fixed"===o)&&-1<(n+a).indexOf("auto")?(r=(o=l.position()).top,o.left):(r=parseFloat(n)||0,parseFloat(a)||0),null!=(t=b(t)?t.call(e,i,S.extend({},s)):t).top&&(c.top=t.top-s.top+r),null!=t.left&&(c.left=t.left-s.left+o),"using"in t?t.using.call(e,c):l.css(c)}},S.fn.extend({offset:function(t){var e,i;return arguments.length?void 0===t?this:this.each(function(e){S.offset.setOffset(this,t,e)}):(i=this[0])?i.getClientRects().length?(e=i.getBoundingClientRect(),i=i.ownerDocument.defaultView,{top:e.top+i.pageYOffset,left:e.left+i.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var e,t,i,n=this[0],r={top:0,left:0};if("fixed"===S.css(n,"position"))t=n.getBoundingClientRect();else{for(t=this.offset(),i=n.ownerDocument,e=n.offsetParent||i.documentElement;e&&(e===i.body||e===i.documentElement)&&"static"===S.css(e,"position");)e=e.parentNode;e&&e!==n&&1===e.nodeType&&((r=S(e).offset()).top+=S.css(e,"borderTopWidth",!0),r.left+=S.css(e,"borderLeftWidth",!0))}return{top:t.top-r.top-S.css(n,"marginTop",!0),left:t.left-r.left-S.css(n,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var e=this.offsetParent;e&&"static"===S.css(e,"position");)e=e.offsetParent;return e||x})}}),S.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(t,r){var s="pageYOffset"===r;S.fn[t]=function(e){return u(this,function(e,t,i){var n;if(f(e)?n=e:9===e.nodeType&&(n=e.defaultView),void 0===i)return n?n[r]:e[t];n?n.scrollTo(s?n.pageXOffset:i,s?i:n.pageYOffset):e[t]=i},t,e,arguments.length)}}),S.each(["top","left"],function(e,i){S.cssHooks[i]=Je(m.pixelPosition,function(e,t){if(t)return t=Qe(e,i),Ke.test(t)?S(e).position()[i]+"px":t})}),S.each({Height:"height",Width:"width"},function(a,o){S.each({padding:"inner"+a,content:o,"":"outer"+a},function(n,s){S.fn[s]=function(e,t){var i=arguments.length&&(n||"boolean"!=typeof e),r=n||(!0===e||!0===t?"margin":"border");return u(this,function(e,t,i){var n;return f(e)?0===s.indexOf("outer")?e["inner"+a]:e.document.documentElement["client"+a]:9===e.nodeType?(n=e.documentElement,Math.max(e.body["scroll"+a],n["scroll"+a],e.body["offset"+a],n["offset"+a],n["client"+a])):void 0===i?S.css(e,t,r):S.style(e,t,i,r)},o,i?e:void 0,i)}})}),S.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(e,i){S.fn[i]=function(e,t){return 0<arguments.length?this.on(i,null,e,t):this.trigger(i)}}),S.fn.extend({hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)}}),S.fn.extend({bind:function(e,t,i){return this.on(e,null,t,i)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,i,n){return this.on(t,e,i,n)},undelegate:function(e,t,i){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",i)}}),S.proxy=function(e,t){var i,n;if("string"==typeof t&&(n=e[t],t=e,e=n),b(e))return i=o.call(arguments,2),(n=function(){return e.apply(t||this,i.concat(o.call(arguments)))}).guid=e.guid=e.guid||S.guid++,n},S.holdReady=function(e){e?S.readyWait++:S.ready(!0)},S.isArray=Array.isArray,S.parseJSON=JSON.parse,S.nodeName=l,S.isFunction=b,S.isWindow=f,S.camelCase=v,S.type=g,S.now=Date.now,S.isNumeric=function(e){var t=S.type(e);return("number"===t||"string"===t)&&!isNaN(e-parseFloat(e))},"function"==typeof define&&define.amd&&define("jquery",[],function(){return S}),k.jQuery),Jt=k.$;return S.noConflict=function(e){return k.$===S&&(k.$=Jt),e&&k.jQuery===S&&(k.jQuery=Qt),S},O||(k.jQuery=k.$=S),S}),!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):e.Popper=t()}(this,function(){"use strict";function a(e){return e&&"[object Function]"==={}.toString.call(e)}function u(e,t){return 1!==e.nodeType?[]:(e=e.ownerDocument.defaultView.getComputedStyle(e,null),t?e[t]:e)}function l(e){return"HTML"===e.nodeName?e:e.parentNode||e.host}function h(e){if(!e)return document.body;switch(e.nodeName){case"HTML":case"BODY":return e.ownerDocument.body;case"#document":return e.body}var t=u(e),i=t.overflow,n=t.overflowX,t=t.overflowY;return/(auto|scroll|overlay)/.test(i+t+n)?e:h(l(e))}function c(e){return e&&e.referenceNode?e.referenceNode:e}function d(e){return 11===e?Y:10!==e&&Y||X}function p(e){if(!e)return document.documentElement;for(var t=d(10)?document.body:null,i=e.offsetParent||null;i===t&&e.nextElementSibling;)i=(e=e.nextElementSibling).offsetParent;var n=i&&i.nodeName;return n&&"BODY"!==n&&"HTML"!==n?-1!==["TH","TD","TABLE"].indexOf(i.nodeName)&&"static"===u(i,"position")?p(i):i:(e?e.ownerDocument:document).documentElement}function s(e){return null===e.parentNode?e:s(e.parentNode)}function g(e,t){var i,n,r;return e&&e.nodeType&&t&&t.nodeType?(n=(r=e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING)?e:t,r=r?t:e,(i=document.createRange()).setStart(n,0),i.setEnd(r,0),e!==(i=i.commonAncestorContainer)&&t!==i||n.contains(r)?"BODY"===(r=(n=i).nodeName)||"HTML"!==r&&p(n.firstElementChild)!==n?p(i):i:(r=s(e)).host?g(r.host,t):g(e,s(t).host)):document.documentElement}function f(e,t){var t="top"===(1<arguments.length&&void 0!==t?t:"top")?"scrollTop":"scrollLeft",i=e.nodeName;return("BODY"===i||"HTML"===i?(i=e.ownerDocument.documentElement,e.ownerDocument.scrollingElement||i):e)[t]}function r(e,t){var t="x"===t?"Left":"Top",i="Left"==t?"Right":"Bottom";return parseFloat(e["border"+t+"Width"],10)+parseFloat(e["border"+i+"Width"],10)}function n(e,t,i,n){return I(t["offset"+e],t["scroll"+e],i["client"+e],i["offset"+e],i["scroll"+e],d(10)?parseInt(i["offset"+e])+parseInt(n["margin"+("Height"===e?"Top":"Left")])+parseInt(n["margin"+("Height"===e?"Bottom":"Right")]):0)}function m(e){var t=e.body,e=e.documentElement,i=d(10)&&getComputedStyle(e);return{height:n("Height",t,e,i),width:n("Width",t,e,i)}}function y(e){return N({},e,{right:e.left+e.width,bottom:e.top+e.height})}function b(e){var t={};try{d(10)?(t=e.getBoundingClientRect(),i=f(e,"top"),n=f(e,"left"),t.top+=i,t.left+=n,t.bottom+=i,t.right+=n):t=e.getBoundingClientRect()}catch(e){}var i={left:t.left,top:t.top,width:t.right-t.left,height:t.bottom-t.top},n="HTML"===e.nodeName?m(e.ownerDocument):{},t=n.width||e.clientWidth||i.width,n=n.height||e.clientHeight||i.height,t=e.offsetWidth-t,n=e.offsetHeight-n;return(t||n)&&(t-=r(e=u(e),"x"),n-=r(e,"y"),i.width-=t,i.height-=n),y(i)}function v(e,t,i){var i=2<arguments.length&&void 0!==i&&i,n=d(10),r="HTML"===t.nodeName,s=b(e),a=b(t),e=h(e),o=u(t),l=parseFloat(o.borderTopWidth,10),c=parseFloat(o.borderLeftWidth,10),a=(i&&r&&(a.top=I(a.top,0),a.left=I(a.left,0)),y({top:s.top-a.top-l,left:s.left-a.left-c,width:s.width,height:s.height}));return a.marginTop=0,a.marginLeft=0,!n&&r&&(s=parseFloat(o.marginTop,10),r=parseFloat(o.marginLeft,10),a.top-=l-s,a.bottom-=l-s,a.left-=c-r,a.right-=c-r,a.marginTop=s,a.marginLeft=r),a=(n&&!i?t.contains(e):t===e&&"BODY"!==e.nodeName)?function(e,t,i){var i=2<arguments.length&&void 0!==i&&i,n=f(t,"top"),t=f(t,"left"),i=i?-1:1;return e.top+=n*i,e.bottom+=n*i,e.left+=t*i,e.right+=t*i,e}(a,t):a}function x(e){if(!e||!e.parentElement||d())return document.documentElement;for(var t=e.parentElement;t&&"none"===u(t,"transform");)t=t.parentElement;return t||document.documentElement}function w(e,t,i,n,r){var s,r=4<arguments.length&&void 0!==r&&r,a={top:0,left:0},o=r?x(e):g(e,c(t)),o=("viewport"===n?a=function(e,t){var t=1<arguments.length&&void 0!==t&&t,i=e.ownerDocument.documentElement,e=v(e,i),n=I(i.clientWidth,window.innerWidth||0),r=I(i.clientHeight,window.innerHeight||0),s=t?0:f(i),t=t?0:f(i,"left");return y({top:s-e.top+e.marginTop,left:t-e.left+e.marginLeft,width:n,height:r})}(o,r):("scrollParent"===n?"BODY"===(s=h(l(t))).nodeName&&(s=e.ownerDocument.documentElement):s="window"===n?e.ownerDocument.documentElement:n,t=v(s,o,r),"HTML"!==s.nodeName||function e(t){var i=t.nodeName;return"BODY"!==i&&"HTML"!==i&&("fixed"===u(t,"position")||!!(i=l(t))&&e(i))}(o)?a=t:(r=(n=m(e.ownerDocument)).height,s=n.width,a.top+=t.top-t.marginTop,a.bottom=r+t.top,a.left+=t.left-t.marginLeft,a.right=s+t.left)),"number"==typeof(i=i||0));return a.left+=o?i:i.left||0,a.top+=o?i:i.top||0,a.right-=o?i:i.right||0,a.bottom-=o?i:i.bottom||0,a}function o(e,t,i,n,r,s){var a,s=5<arguments.length&&void 0!==s?s:0;return-1===e.indexOf("auto")?e:(n=w(i,n,s,r),a={top:{width:n.width,height:t.top-n.top},right:{width:n.right-t.right,height:n.height},bottom:{width:n.width,height:n.bottom-t.bottom},left:{width:t.left-n.left,height:n.height}},(0<(r=(s=Object.keys(a).map(function(e){return N({key:e},a[e],{area:(e=a[e]).width*e.height})}).sort(function(e,t){return t.area-e.area})).filter(function(e){var t=e.width,e=e.height;return t>=i.clientWidth&&e>=i.clientHeight})).length?r:s)[0].key+((t=e.split("-")[1])?"-"+t:""))}function k(e,t,i,n){n=3<arguments.length&&void 0!==n?n:null;return v(i,n?x(t):g(t,c(i)),n)}function T(e){var t=e.ownerDocument.defaultView.getComputedStyle(e),i=parseFloat(t.marginTop||0)+parseFloat(t.marginBottom||0),t=parseFloat(t.marginLeft||0)+parseFloat(t.marginRight||0);return{width:e.offsetWidth+t,height:e.offsetHeight+i}}function S(e){var t={left:"right",right:"left",bottom:"top",top:"bottom"};return e.replace(/left|right|bottom|top/g,function(e){return t[e]})}function _(e,t,i){i=i.split("-")[0];var e=T(e),n={width:e.width,height:e.height},r=-1!==["right","left"].indexOf(i),s=r?"top":"left",a=r?"left":"top",o=r?"height":"width",r=r?"width":"height";return n[s]=t[s]+t[o]/2-e[o]/2,n[a]=i===a?t[a]-e[r]:t[S(a)],n}function C(e,t){return Array.prototype.find?e.find(t):e.filter(t)[0]}function A(e,i,t){var n,r;return(void 0===t?e:e.slice(0,(e=e,n="name",r=t,Array.prototype.findIndex?e.findIndex(function(e){return e[n]===r}):(t=C(e,function(e){return e[n]===r}),e.indexOf(t))))).forEach(function(e){e.function&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var t=e.function||e.fn;e.enabled&&a(t)&&(i.offsets.popper=y(i.offsets.popper),i.offsets.reference=y(i.offsets.reference),i=t(i,e))}),i}function t(e,i){return e.some(function(e){var t=e.name;return e.enabled&&t===i})}function E(e){for(var t=[!1,"ms","Webkit","Moz","O"],i=e.charAt(0).toUpperCase()+e.slice(1),n=0;n<t.length;n++){var r=t[n],r=r?""+r+i:e;if(void 0!==document.body.style[r])return r}return null}function P(e){e=e.ownerDocument;return e?e.defaultView:window}function B(e,t,i,n){i.updateBound=n,P(e).addEventListener("resize",i.updateBound,{passive:!0});n=h(e);return function e(t,i,n,r){var s="BODY"===t.nodeName,t=s?t.ownerDocument.defaultView:t;t.addEventListener(i,n,{passive:!0}),s||e(h(t.parentNode),i,n,r),r.push(t)}(n,"scroll",i.updateBound,i.scrollParents),i.scrollElement=n,i.eventsEnabled=!0,i}function F(){var e,t;this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=(e=this.reference,t=this.state,P(e).removeEventListener("resize",t.updateBound),t.scrollParents.forEach(function(e){e.removeEventListener("scroll",t.updateBound)}),t.updateBound=null,t.scrollParents=[],t.scrollElement=null,t.eventsEnabled=!1,t))}function $(e){return""!==e&&!isNaN(parseFloat(e))&&isFinite(e)}function L(i,n){Object.keys(n).forEach(function(e){var t="";-1!==["width","height","top","right","bottom","left"].indexOf(e)&&$(n[e])&&(t="px"),i.style[e]=n[e]+t})}function j(e,t){function i(e){return e}var n=e.offsets,r=n.popper,n=n.reference,s=W,n=s(n.width),a=s(r.width),o=-1!==["left","right"].indexOf(e.placement),e=-1!==e.placement.indexOf("-"),o=t?o||e||n%2==a%2?s:M:i,s=t?s:i;return{left:o(1==n%2&&1==a%2&&!e&&t?r.left-1:r.left),top:s(r.top),bottom:s(r.bottom),right:o(r.right)}}function z(e,t,i){var n,r=C(e,function(e){return e.name===t}),e=!!r&&e.some(function(e){return e.name===i&&e.enabled&&e.order<r.order});return e||(n="`"+t+"`",console.warn("`"+i+"` modifier is required by "+n+" modifier in order to work, be sure to include it before "+n+"!")),e}function H(e,t){t=1<arguments.length&&void 0!==t&&t,e=D.indexOf(e),e=D.slice(e+1).concat(D.slice(0,e));return t?e.reverse():e}function U(e,o,l,t){var r=[0,0],n=-1!==["right","left"].indexOf(t),t=e.split(/(\+|\-)/).map(function(e){return e.trim()}),e=t.indexOf(C(t,function(e){return-1!==e.search(/,|\s/)})),i=(t[e]&&-1===t[e].indexOf(",")&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead."),/\s*,\s*|\s+/);return(-1===e?[t]:[t.slice(0,e).concat([t[e].split(i)[0]]),[t[e].split(i)[1]].concat(t.slice(e+1))]).map(function(e,t){var a=(1===t?!n:n)?"height":"width",i=!1;return e.reduce(function(e,t){return""===e[e.length-1]&&-1!==["+","-"].indexOf(t)?(e[e.length-1]=t,i=!0,e):i?(e[e.length-1]+=t,i=!1,e):e.concat(t)},[]).map(function(e){return t=a,i=o,n=l,r=+(s=(e=e).match(/((?:\-|\+)?\d*\.?\d*)(.*)/))[1],s=s[2],r?0===s.indexOf("%")?y("%p"===s?i:n)[t]/100*r:"vh"===s||"vw"===s?("vh"===s?I(document.documentElement.clientHeight,window.innerHeight||0):I(document.documentElement.clientWidth,window.innerWidth||0))/100*r:r:e;var t,i,n,r,s})}).forEach(function(i,n){i.forEach(function(e,t){$(e)&&(r[n]+=e*("-"===i[t-1]?-1:1))})}),r}function R(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}var q=Math.min,M=Math.floor,W=Math.round,I=Math.max,i="undefined"!=typeof window&&"undefined"!=typeof document&&"undefined"!=typeof navigator,V=function(){for(var e=["Edge","Trident","Firefox"],t=0;t<e.length;t+=1)if(i&&0<=navigator.userAgent.indexOf(e[t]))return 1;return 0}(),G=i&&window.Promise?function(e){var t=!1;return function(){t||(t=!0,window.Promise.resolve().then(function(){t=!1,e()}))}}:function(e){var t=!1;return function(){t||(t=!0,setTimeout(function(){t=!1,e()},V))}},Y=i&&!(!window.MSInputMethodContext||!document.documentMode),X=i&&/MSIE 10/.test(navigator.userAgent),e=function(e,t,i){return t&&te(e.prototype,t),i&&te(e,i),e},N=Object.assign||function(e){for(var t,i=1;i<arguments.length;i++)for(var n in t=arguments[i])Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e},K=i&&/Firefox/i.test(navigator.userAgent),Z=["auto-start","auto","auto-end","top-start","top","top-end","right-start","right","right-end","bottom-end","bottom","bottom-start","left-end","left","left-start"],D=Z.slice(3),Q="flip",J="clockwise",ee="counterclockwise",e=(e(O,[{key:"update",value:function(){return function(){var e;this.state.isDestroyed||((e={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}}).offsets.reference=k(this.state,this.popper,this.reference,this.options.positionFixed),e.placement=o(this.options.placement,e.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),e.originalPlacement=e.placement,e.positionFixed=this.options.positionFixed,e.offsets.popper=_(this.popper,e.offsets.reference,e.placement),e.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",e=A(this.modifiers,e),this.state.isCreated?this.options.onUpdate(e):(this.state.isCreated=!0,this.options.onCreate(e)))}.call(this)}},{key:"destroy",value:function(){return function(){return this.state.isDestroyed=!0,t(this.modifiers,"applyStyle")&&(this.popper.removeAttribute("x-placement"),this.popper.style.position="",this.popper.style.top="",this.popper.style.left="",this.popper.style.right="",this.popper.style.bottom="",this.popper.style.willChange="",this.popper.style[E("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}.call(this)}},{key:"enableEventListeners",value:function(){return function(){this.state.eventsEnabled||(this.state=B(this.reference,this.options,this.state,this.scheduleUpdate))}.call(this)}},{key:"disableEventListeners",value:function(){return F.call(this)}}]),O);function O(e,t){var i=this,n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{},r=this,s=O;if(!(r instanceof s))throw new TypeError("Cannot call a class as a function");this.scheduleUpdate=function(){return requestAnimationFrame(i.update)},this.update=G(this.update.bind(this)),this.options=N({},O.Defaults,n),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=e&&e.jquery?e[0]:e,this.popper=t&&t.jquery?t[0]:t,this.options.modifiers={},Object.keys(N({},O.Defaults.modifiers,n.modifiers)).forEach(function(e){i.options.modifiers[e]=N({},O.Defaults.modifiers[e]||{},n.modifiers?n.modifiers[e]:{})}),this.modifiers=Object.keys(this.options.modifiers).map(function(e){return N({name:e},i.options.modifiers[e])}).sort(function(e,t){return e.order-t.order}),this.modifiers.forEach(function(e){e.enabled&&a(e.onLoad)&&e.onLoad(i.reference,i.popper,i.options,e,i.state)}),this.update();r=this.options.eventsEnabled;r&&this.enableEventListeners(),this.state.eventsEnabled=r}function te(e,t){for(var i,n=0;n<t.length;n++)(i=t[n]).enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}return e.Utils=("undefined"==typeof window?global:window).PopperUtils,e.placements=Z,e.Defaults={placement:"bottom",positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:{shift:{order:100,enabled:!0,fn:function(e){var t,i,n,r=e.placement,s=r.split("-")[0],r=r.split("-")[1];return r&&(t=(i=e.offsets).reference,i=i.popper,n=(s=-1!==["bottom","top"].indexOf(s))?"width":"height",s={start:R({},s=s?"left":"top",t[s]),end:R({},s,t[s]+t[n]-i[n])},e.offsets.popper=N({},i,s[r])),e}},offset:{order:200,enabled:!0,fn:function(e,t){var t=t.offset,i=e.placement,n=(r=e.offsets).popper,r=r.reference,i=i.split("-")[0],t=$(+t)?[+t,0]:U(t,n,r,i);return"left"===i?(n.top+=t[0],n.left-=t[1]):"right"===i?(n.top+=t[0],n.left+=t[1]):"top"===i?(n.left+=t[0],n.top-=t[1]):"bottom"===i&&(n.left+=t[0],n.top+=t[1]),e.popper=n,e},offset:0},preventOverflow:{order:300,enabled:!0,fn:function(e,n){var t=n.boundariesElement||p(e.instance.popper),i=(e.instance.reference===t&&(t=p(t)),E("transform")),r=e.instance.popper.style,s=r.top,a=r.left,o=r[i],l=(r.top="",r.left="",r[i]="",w(e.instance.popper,e.instance.reference,n.padding,t,e.positionFixed)),t=(r.top=s,r.left=a,r[i]=o,n.boundaries=l,n.priority),c=e.offsets.popper,h={primary:function(e){var t=c[e];return c[e]<l[e]&&!n.escapeWithReference&&(t=I(c[e],l[e])),R({},e,t)},secondary:function(e){var t="right"===e?"left":"top",i=c[t];return c[e]>l[e]&&!n.escapeWithReference&&(i=q(c[t],l[e]-("right"===e?c.width:c.height))),R({},t,i)}};return t.forEach(function(e){var t=-1===["left","top"].indexOf(e)?"secondary":"primary";c=N({},c,h[t](e))}),e.offsets.popper=c,e},priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:function(e){var t=e.offsets,i=t.popper,t=t.reference,n=e.placement.split("-")[0],r=M,n=-1!==["top","bottom"].indexOf(n),s=n?"right":"bottom",a=n?"left":"top",n=n?"width":"height";return i[s]<r(t[a])&&(e.offsets.popper[a]=r(t[a])-i[n]),i[a]>r(t[s])&&(e.offsets.popper[a]=r(t[s])),e}},arrow:{order:500,enabled:!0,fn:function(e,t){if(z(e.instance.modifiers,"arrow","keepTogether")){t=t.element;if("string"==typeof t){if(!(t=e.instance.popper.querySelector(t)))return e}else if(!e.instance.popper.contains(t))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),e;var i=e.placement.split("-")[0],n=e.offsets,r=n.popper,n=n.reference,i=-1!==["left","right"].indexOf(i),s=i?"height":"width",a=i?"Top":"Left",o=a.toLowerCase(),l=i?"left":"top",i=i?"bottom":"right",c=T(t)[s],i=(n[i]-c<r[o]&&(e.offsets.popper[o]-=r[o]-(n[i]-c)),n[o]+c>r[i]&&(e.offsets.popper[o]+=n[o]+c-r[i]),e.offsets.popper=y(e.offsets.popper),n[o]+n[s]/2-c/2),n=u(e.instance.popper),h=parseFloat(n["margin"+a],10),n=parseFloat(n["border"+a+"Width"],10),a=i-e.offsets.popper[o]-h-n,a=I(q(r[s]-c,a),0);e.arrowElement=t,e.offsets.arrow=(R(i={},o,W(a)),R(i,l,""),i)}return e},element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:function(c,h){if(!(t(c.instance.modifiers,"inner")||c.flipped&&c.placement===c.originalPlacement)){var u=w(c.instance.popper,c.instance.reference,h.padding,h.boundariesElement,c.positionFixed),d=c.placement.split("-")[0],p=S(d),g=c.placement.split("-")[1]||"",f=[];switch(h.behavior){case Q:f=[d,p];break;case J:f=H(d);break;case ee:f=H(d,!0);break;default:f=h.behavior}f.forEach(function(e,t){if(d!==e||f.length===t+1)return c;d=c.placement.split("-")[0],p=S(d);var e=c.offsets.popper,i=c.offsets.reference,n=M,i="left"===d&&n(e.right)>n(i.left)||"right"===d&&n(e.left)<n(i.right)||"top"===d&&n(e.bottom)>n(i.top)||"bottom"===d&&n(e.top)<n(i.bottom),r=n(e.left)<n(u.left),s=n(e.right)>n(u.right),a=n(e.top)<n(u.top),e=n(e.bottom)>n(u.bottom),n="left"===d&&r||"right"===d&&s||"top"===d&&a||"bottom"===d&&e,o=-1!==["top","bottom"].indexOf(d),l=!!h.flipVariations&&(o&&"start"===g&&r||o&&"end"===g&&s||!o&&"start"===g&&a||!o&&"end"===g&&e),s=!!h.flipVariationsByContent&&(o&&"start"===g&&s||o&&"end"===g&&r||!o&&"start"===g&&e||!o&&"end"===g&&a),r=l||s;(i||n||r)&&(c.flipped=!0,(i||n)&&(d=f[t+1]),r&&(g="end"===(e=g)?"start":"start"===e?"end":e),c.placement=d+(g?"-"+g:""),c.offsets.popper=N({},c.offsets.popper,_(c.instance.popper,c.offsets.reference,c.placement)),c=A(c.instance.modifiers,c,"flip"))})}return c},behavior:"flip",padding:5,boundariesElement:"viewport",flipVariations:!1,flipVariationsByContent:!1},inner:{order:700,enabled:!1,fn:function(e){var t=e.placement,i=t.split("-")[0],n=e.offsets,r=n.popper,n=n.reference,s=-1!==["left","right"].indexOf(i),a=-1===["top","left"].indexOf(i);return r[s?"left":"top"]=n[i]-(a?r[s?"width":"height"]:0),e.placement=S(t),e.offsets.popper=y(r),e}},hide:{order:800,enabled:!0,fn:function(e){if(z(e.instance.modifiers,"hide","preventOverflow")){var t=e.offsets.reference,i=C(e.instance.modifiers,function(e){return"preventOverflow"===e.name}).boundaries;if(t.bottom<i.top||t.left>i.right||t.top>i.bottom||t.right<i.left){if(!0===e.hide)return e;e.hide=!0,e.attributes["x-out-of-boundaries"]=""}else{if(!1===e.hide)return e;e.hide=!1,e.attributes["x-out-of-boundaries"]=!1}}return e}},computeStyle:{order:850,enabled:!0,fn:function(e,t){var i=t.x,n=t.y,r=e.offsets.popper,s=C(e.instance.modifiers,function(e){return"applyStyle"===e.name}).gpuAcceleration;void 0!==s&&console.warn("WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!");var t=void 0===s?t.gpuAcceleration:s,s=p(e.instance.popper),a=b(s),r={position:r.position},o=j(e,window.devicePixelRatio<2||!K),i="bottom"===i?"top":"bottom",n="right"===n?"left":"right",l=E("transform"),c="bottom"==i?"HTML"===s.nodeName?-s.clientHeight+o.bottom:-a.height+o.bottom:o.top,s="right"==n?"HTML"===s.nodeName?-s.clientWidth+o.right:-a.width+o.right:o.left,o=(t&&l?(r[l]="translate3d("+s+"px, "+c+"px, 0)",r[i]=0,r[n]=0,r.willChange="transform"):(a="right"==n?-1:1,r[i]=c*("bottom"==i?-1:1),r[n]=s*a,r.willChange=i+", "+n),{"x-placement":e.placement});return e.attributes=N({},o,e.attributes),e.styles=N({},r,e.styles),e.arrowStyles=N({},e.offsets.arrow,e.arrowStyles),e},gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:function(e){return L(e.instance.popper,e.styles),t=e.instance.popper,i=e.attributes,Object.keys(i).forEach(function(e){!1===i[e]?t.removeAttribute(e):t.setAttribute(e,i[e])}),e.arrowElement&&Object.keys(e.arrowStyles).length&&L(e.arrowElement,e.arrowStyles),e;var t,i},onLoad:function(e,t,i,n,r){r=k(r,t,e,i.positionFixed),r=o(i.placement,r,t,e,i.modifiers.flip.boundariesElement,i.modifiers.flip.padding);return t.setAttribute("x-placement",r),L(t,{position:i.positionFixed?"fixed":"absolute"}),i},gpuAcceleration:void 0}}},e}),!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("jquery"),require("popper.js")):"function"==typeof define&&define.amd?define(["exports","jquery","popper.js"],t):t((e=e||self).bootstrap={},e.jQuery,e.Popper)}(this,function(e,h,r){"use strict";function O(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function t(e,t,i){t&&O(e.prototype,t),i&&O(e,i)}function P(t,e){var i,n=Object.keys(t);return Object.getOwnPropertySymbols&&(i=Object.getOwnPropertySymbols(t),e&&(i=i.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,i)),n}function s(n){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?P(Object(r),!0).forEach(function(e){var t=n,i=r[e=e];e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(r)):P(Object(r)).forEach(function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(r,e))})}return n}h=h&&h.hasOwnProperty("default")?h.default:h,r=r&&r.hasOwnProperty("default")?r.default:r;var B="transitionend";var u={TRANSITION_END:"bsTransitionEnd",getUID:function(e){for(;e+=~~(1e6*Math.random()),document.getElementById(e););return e},getSelectorFromElement:function(e){var t,i=e.getAttribute("data-target");i&&"#"!==i||(i=(t=e.getAttribute("href"))&&"#"!==t?t.trim():"");try{return document.querySelector(i)?i:null}catch(e){return null}},getTransitionDurationFromElement:function(e){var t,i,n;return e&&(t=h(e).css("transition-duration"),e=h(e).css("transition-delay"),i=parseFloat(t),n=parseFloat(e),i||n)?(t=t.split(",")[0],e=e.split(",")[0],1e3*(parseFloat(t)+parseFloat(e))):0},reflow:function(e){return e.offsetHeight},triggerTransitionEnd:function(e){h(e).trigger(B)},supportsTransitionEnd:function(){return Boolean(B)},isElement:function(e){return(e[0]||e).nodeType},typeCheckConfig:function(e,t,i){for(var n in i)if(Object.prototype.hasOwnProperty.call(i,n)){var r=i[n],s=t[n],s=s&&u.isElement(s)?"element":{}.toString.call(s).match(/\s([a-z]+)/i)[1].toLowerCase();if(!new RegExp(r).test(s))throw new Error(e.toUpperCase()+': Option "'+n+'" provided type "'+s+'" but expected type "'+r+'".')}},findShadowRoot:function(e){return document.documentElement.attachShadow?"function"!=typeof e.getRootNode?e instanceof ShadowRoot?e:e.parentNode?u.findShadowRoot(e.parentNode):null:(e=e.getRootNode())instanceof ShadowRoot?e:null:null},jQueryDetection:function(){if(void 0===h)throw new TypeError("Bootstrap's JavaScript requires jQuery. jQuery must be included before Bootstrap's JavaScript.");var e=h.fn.jquery.split(" ")[0].split(".");if(e[0]<2&&e[1]<9||1===e[0]&&9===e[1]&&e[2]<1||4<=e[0])throw new Error("Bootstrap's JavaScript requires at least jQuery v1.9.1 but less than v4.0.0")}},F=(u.jQueryDetection(),h.fn.emulateTransitionEnd=function(e){var t=this,i=!1;return h(this).one(u.TRANSITION_END,function(){i=!0}),setTimeout(function(){i||u.triggerTransitionEnd(t)},e),this},h.event.special[u.TRANSITION_END]={bindType:B,delegateType:B,handle:function(e){if(h(e.target).is(this))return e.handleObj.handler.apply(this,arguments)}},"alert"),j="bs.alert",i="."+j,z=h.fn[F],H={CLOSE:"close"+i,CLOSED:"closed"+i,CLICK_DATA_API:"click"+i+".data-api"},n=((i=a.prototype).close=function(e){var t=this._element;e&&(t=this._getRootElement(e)),this._triggerCloseEvent(t).isDefaultPrevented()||this._removeElement(t)},i.dispose=function(){h.removeData(this._element,j),this._element=null},i._getRootElement=function(e){var t=u.getSelectorFromElement(e),i=!1;return(i=t?document.querySelector(t):i)||h(e).closest(".alert")[0]},i._triggerCloseEvent=function(e){var t=h.Event(H.CLOSE);return h(e).trigger(t),t},i._removeElement=function(t){var e,i=this;h(t).removeClass("show"),h(t).hasClass("fade")?(e=u.getTransitionDurationFromElement(t),h(t).one(u.TRANSITION_END,function(e){return i._destroyElement(t,e)}).emulateTransitionEnd(e)):this._destroyElement(t)},i._destroyElement=function(e){h(e).detach().trigger(H.CLOSED).remove()},a._jQueryInterface=function(i){return this.each(function(){var e=h(this),t=e.data(j);t||(t=new a(this),e.data(j,t)),"close"===i&&t[i](this)})},a._handleDismiss=function(t){return function(e){e&&e.preventDefault(),t.close(this)}},t(a,null,[{key:"VERSION",get:function(){return"4.4.1"}}]),a);function a(e){this._element=e}h(document).on(H.CLICK_DATA_API,'[data-dismiss="alert"]',n._handleDismiss(new n)),h.fn[F]=n._jQueryInterface,h.fn[F].Constructor=n,h.fn[F].noConflict=function(){return h.fn[F]=z,n._jQueryInterface};var U="button",q="bs.button",i="."+q,o=".data-api",W=h.fn[U],l="active",c='[data-toggle^="button"]',V='input:not([type="hidden"])',i={CLICK_DATA_API:"click"+i+o,FOCUS_BLUR_DATA_API:"focus"+i+o+" blur"+i+o,LOAD_DATA_API:"load"+i+o},G=((o=Y.prototype).toggle=function(){var e,t=!0,i=!0,n=h(this._element).closest('[data-toggle="buttons"]')[0];n&&(e=this._element.querySelector(V))&&("radio"===e.type?e.checked&&this._element.classList.contains(l)?t=!1:(n=n.querySelector(".active"))&&h(n).removeClass(l):("checkbox"!==e.type||"LABEL"===this._element.tagName&&e.checked===this._element.classList.contains(l))&&(t=!1),t&&(e.checked=!this._element.classList.contains(l),h(e).trigger("change")),e.focus(),i=!1),this._element.hasAttribute("disabled")||this._element.classList.contains("disabled")||(i&&this._element.setAttribute("aria-pressed",!this._element.classList.contains(l)),t&&h(this._element).toggleClass(l))},o.dispose=function(){h.removeData(this._element,q),this._element=null},Y._jQueryInterface=function(t){return this.each(function(){var e=h(this).data(q);e||(e=new Y(this),h(this).data(q,e)),"toggle"===t&&e[t]()})},t(Y,null,[{key:"VERSION",get:function(){return"4.4.1"}}]),Y);function Y(e){this._element=e}h(document).on(i.CLICK_DATA_API,c,function(e){var t,i=e.target;!(i=h(i).hasClass("btn")?i:h(i).closest(".btn")[0])||i.hasAttribute("disabled")||i.classList.contains("disabled")||(t=i.querySelector(V))&&(t.hasAttribute("disabled")||t.classList.contains("disabled"))?e.preventDefault():G._jQueryInterface.call(h(i),"toggle")}).on(i.FOCUS_BLUR_DATA_API,c,function(e){var t=h(e.target).closest(".btn")[0];h(t).toggleClass("focus",/^focus(in)?$/.test(e.type))}),h(window).on(i.LOAD_DATA_API,function(){for(var e=[].slice.call(document.querySelectorAll('[data-toggle="buttons"] .btn')),t=0,i=e.length;t<i;t++){var n=e[t],r=n.querySelector(V);r.checked||r.hasAttribute("checked")?n.classList.add(l):n.classList.remove(l)}for(var s=0,a=(e=[].slice.call(document.querySelectorAll('[data-toggle="button"]'))).length;s<a;s++){var o=e[s];"true"===o.getAttribute("aria-pressed")?o.classList.add(l):o.classList.remove(l)}}),h.fn[U]=G._jQueryInterface,h.fn[U].Constructor=G,h.fn[U].noConflict=function(){return h.fn[U]=W,G._jQueryInterface};var d="carousel",X="bs.carousel",p="."+X,K=h.fn[d],Z={interval:5e3,keyboard:!0,slide:!1,pause:"hover",wrap:!0,touch:!0},Q={interval:"(number|boolean)",keyboard:"boolean",slide:"(boolean|string)",pause:"(string|boolean)",wrap:"boolean",touch:"boolean"},J="next",ee="prev",g={SLIDE:"slide"+p,SLID:"slid"+p,KEYDOWN:"keydown"+p,MOUSEENTER:"mouseenter"+p,MOUSELEAVE:"mouseleave"+p,TOUCHSTART:"touchstart"+p,TOUCHMOVE:"touchmove"+p,TOUCHEND:"touchend"+p,POINTERDOWN:"pointerdown"+p,POINTERUP:"pointerup"+p,DRAG_START:"dragstart"+p,LOAD_DATA_API:"load"+p+".data-api",CLICK_DATA_API:"click"+p+".data-api"},f="active",te=".active.carousel-item",ie={TOUCH:"touch",PEN:"pen"},m=((o=y.prototype).next=function(){this._isSliding||this._slide(J)},o.nextWhenVisible=function(){!document.hidden&&h(this._element).is(":visible")&&"hidden"!==h(this._element).css("visibility")&&this.next()},o.prev=function(){this._isSliding||this._slide(ee)},o.pause=function(e){e||(this._isPaused=!0),this._element.querySelector(".carousel-item-next, .carousel-item-prev")&&(u.triggerTransitionEnd(this._element),this.cycle(!0)),clearInterval(this._interval),this._interval=null},o.cycle=function(e){e||(this._isPaused=!1),this._interval&&(clearInterval(this._interval),this._interval=null),this._config.interval&&!this._isPaused&&(this._interval=setInterval((document.visibilityState?this.nextWhenVisible:this.next).bind(this),this._config.interval))},o.to=function(e){var t=this,i=(this._activeElement=this._element.querySelector(te),this._getItemIndex(this._activeElement));e>this._items.length-1||e<0||(this._isSliding?h(this._element).one(g.SLID,function(){return t.to(e)}):i===e?(this.pause(),this.cycle()):this._slide(i<e?J:ee,this._items[e]))},o.dispose=function(){h(this._element).off(p),h.removeData(this._element,X),this._items=null,this._config=null,this._element=null,this._interval=null,this._isPaused=null,this._isSliding=null,this._activeElement=null,this._indicatorsElement=null},o._getConfig=function(e){return e=s({},Z,{},e),u.typeCheckConfig(d,e,Q),e},o._handleSwipe=function(){var e=Math.abs(this.touchDeltaX);e<=40||(e=e/this.touchDeltaX,(this.touchDeltaX=0)<e&&this.prev(),e<0&&this.next())},o._addEventListeners=function(){var t=this;this._config.keyboard&&h(this._element).on(g.KEYDOWN,function(e){return t._keydown(e)}),"hover"===this._config.pause&&h(this._element).on(g.MOUSEENTER,function(e){return t.pause(e)}).on(g.MOUSELEAVE,function(e){return t.cycle(e)}),this._config.touch&&this._addTouchEventListeners()},o._addTouchEventListeners=function(){var e,t,i=this;this._touchSupported&&(e=function(e){i._pointerEvent&&ie[e.originalEvent.pointerType.toUpperCase()]?i.touchStartX=e.originalEvent.clientX:i._pointerEvent||(i.touchStartX=e.originalEvent.touches[0].clientX)},t=function(e){i._pointerEvent&&ie[e.originalEvent.pointerType.toUpperCase()]&&(i.touchDeltaX=e.originalEvent.clientX-i.touchStartX),i._handleSwipe(),"hover"===i._config.pause&&(i.pause(),i.touchTimeout&&clearTimeout(i.touchTimeout),i.touchTimeout=setTimeout(function(e){return i.cycle(e)},500+i._config.interval))},h(this._element.querySelectorAll(".carousel-item img")).on(g.DRAG_START,function(e){return e.preventDefault()}),this._pointerEvent?(h(this._element).on(g.POINTERDOWN,e),h(this._element).on(g.POINTERUP,t),this._element.classList.add("pointer-event")):(h(this._element).on(g.TOUCHSTART,e),h(this._element).on(g.TOUCHMOVE,function(e){(e=e).originalEvent.touches&&1<e.originalEvent.touches.length?i.touchDeltaX=0:i.touchDeltaX=e.originalEvent.touches[0].clientX-i.touchStartX}),h(this._element).on(g.TOUCHEND,t)))},o._keydown=function(e){if(!/input|textarea/i.test(e.target.tagName))switch(e.which){case 37:e.preventDefault(),this.prev();break;case 39:e.preventDefault(),this.next()}},o._getItemIndex=function(e){return this._items=e&&e.parentNode?[].slice.call(e.parentNode.querySelectorAll(".carousel-item")):[],this._items.indexOf(e)},o._getItemByDirection=function(e,t){var i=e===J,n=e===ee,r=this._getItemIndex(t),s=this._items.length-1;return(n&&0===r||i&&r===s)&&!this._config.wrap?t:-1==(n=(r+(e===ee?-1:1))%this._items.length)?this._items[this._items.length-1]:this._items[n]},o._triggerSlideEvent=function(e,t){var i=this._getItemIndex(e),n=this._getItemIndex(this._element.querySelector(te)),e=h.Event(g.SLIDE,{relatedTarget:e,direction:t,from:n,to:i});return h(this._element).trigger(e),e},o._setActiveIndicatorElement=function(e){var t;this._indicatorsElement&&(t=[].slice.call(this._indicatorsElement.querySelectorAll(".active")),h(t).removeClass(f),t=this._indicatorsElement.children[this._getItemIndex(e)])&&h(t).addClass(f)},o._slide=function(e,t){var i,n,r,s=this,a=this._element.querySelector(te),o=this._getItemIndex(a),l=t||a&&this._getItemByDirection(e,a),t=this._getItemIndex(l),c=Boolean(this._interval),e=e===J?(i="carousel-item-left",n="carousel-item-next","left"):(i="carousel-item-right",n="carousel-item-prev","right");l&&h(l).hasClass(f)?this._isSliding=!1:!this._triggerSlideEvent(l,e).isDefaultPrevented()&&a&&l&&(this._isSliding=!0,c&&this.pause(),this._setActiveIndicatorElement(l),r=h.Event(g.SLID,{relatedTarget:l,direction:e,from:o,to:t}),h(this._element).hasClass("slide")?(h(l).addClass(n),u.reflow(l),h(a).addClass(i),h(l).addClass(i),(e=parseInt(l.getAttribute("data-interval"),10))?(this._config.defaultInterval=this._config.defaultInterval||this._config.interval,this._config.interval=e):this._config.interval=this._config.defaultInterval||this._config.interval,o=u.getTransitionDurationFromElement(a),h(a).one(u.TRANSITION_END,function(){h(l).removeClass(i+" "+n).addClass(f),h(a).removeClass(f+" "+n+" "+i),s._isSliding=!1,setTimeout(function(){return h(s._element).trigger(r)},0)}).emulateTransitionEnd(o)):(h(a).removeClass(f),h(l).addClass(f),this._isSliding=!1,h(this._element).trigger(r)),c)&&this.cycle()},y._jQueryInterface=function(n){return this.each(function(){var e=h(this).data(X),t=s({},Z,{},h(this).data()),i=("object"==typeof n&&(t=s({},t,{},n)),"string"==typeof n?n:t.slide);if(e||(e=new y(this,t),h(this).data(X,e)),"number"==typeof n)e.to(n);else if("string"==typeof i){if(void 0===e[i])throw new TypeError('No method named "'+i+'"');e[i]()}else t.interval&&t.ride&&(e.pause(),e.cycle())})},y._dataApiClickHandler=function(e){var t,i,n=u.getSelectorFromElement(this);n&&(n=h(n)[0])&&h(n).hasClass("carousel")&&(t=s({},h(n).data(),{},h(this).data()),(i=this.getAttribute("data-slide-to"))&&(t.interval=!1),y._jQueryInterface.call(h(n),t),i&&h(n).data(X).to(i),e.preventDefault())},t(y,null,[{key:"VERSION",get:function(){return"4.4.1"}},{key:"Default",get:function(){return Z}}]),y);function y(e,t){this._items=null,this._interval=null,this._activeElement=null,this._isPaused=!1,this._isSliding=!1,this.touchTimeout=null,this.touchStartX=0,this.touchDeltaX=0,this._config=this._getConfig(t),this._element=e,this._indicatorsElement=this._element.querySelector(".carousel-indicators"),this._touchSupported="ontouchstart"in document.documentElement||0<navigator.maxTouchPoints,this._pointerEvent=Boolean(window.PointerEvent||window.MSPointerEvent),this._addEventListeners()}h(document).on(g.CLICK_DATA_API,"[data-slide], [data-slide-to]",m._dataApiClickHandler),h(window).on(g.LOAD_DATA_API,function(){for(var e=[].slice.call(document.querySelectorAll('[data-ride="carousel"]')),t=0,i=e.length;t<i;t++){var n=h(e[t]);m._jQueryInterface.call(n,n.data())}}),h.fn[d]=m._jQueryInterface,h.fn[d].Constructor=m,h.fn[d].noConflict=function(){return h.fn[d]=K,m._jQueryInterface};var b="collapse",v="bs.collapse",c="."+v,ne=h.fn[b],re={toggle:!0,parent:""},se={toggle:"boolean",parent:"(string|element)"},ae={SHOW:"show"+c,SHOWN:"shown"+c,HIDE:"hide"+c,HIDDEN:"hidden"+c,CLICK_DATA_API:"click"+c+".data-api"},x="show",oe="collapse",le="collapsing",ce="collapsed",he='[data-toggle="collapse"]',ue=((i=w.prototype).toggle=function(){h(this._element).hasClass(x)?this.hide():this.show()},i.show=function(){var e,t,i,n,r=this;this._isTransitioning||h(this._element).hasClass(x)||(e=this._parent&&0===(e=[].slice.call(this._parent.querySelectorAll(".show, .collapsing")).filter(function(e){return"string"==typeof r._config.parent?e.getAttribute("data-parent")===r._config.parent:e.classList.contains(oe)})).length?null:e)&&(n=h(e).not(this._selector).data(v))&&n._isTransitioning||(i=h.Event(ae.SHOW),h(this._element).trigger(i),i.isDefaultPrevented()||(e&&(w._jQueryInterface.call(h(e).not(this._selector),"hide"),n||h(e).data(v,null)),t=this._getDimension(),h(this._element).removeClass(oe).addClass(le),this._element.style[t]=0,this._triggerArray.length&&h(this._triggerArray).removeClass(ce).attr("aria-expanded",!0),this.setTransitioning(!0),i="scroll"+(t[0].toUpperCase()+t.slice(1)),n=u.getTransitionDurationFromElement(this._element),h(this._element).one(u.TRANSITION_END,function(){h(r._element).removeClass(le).addClass(oe).addClass(x),r._element.style[t]="",r.setTransitioning(!1),h(r._element).trigger(ae.SHOWN)}).emulateTransitionEnd(n),this._element.style[t]=this._element[i]+"px"))},i.hide=function(){var e=this;if(!this._isTransitioning&&h(this._element).hasClass(x)){var t=h.Event(ae.HIDE);if(h(this._element).trigger(t),!t.isDefaultPrevented()){var t=this._getDimension(),i=(this._element.style[t]=this._element.getBoundingClientRect()[t]+"px",u.reflow(this._element),h(this._element).addClass(le).removeClass(oe).removeClass(x),this._triggerArray.length);if(0<i)for(var n=0;n<i;n++){var r=this._triggerArray[n],s=u.getSelectorFromElement(r);null===s||h([].slice.call(document.querySelectorAll(s))).hasClass(x)||h(r).addClass(ce).attr("aria-expanded",!1)}this.setTransitioning(!0),this._element.style[t]="";t=u.getTransitionDurationFromElement(this._element);h(this._element).one(u.TRANSITION_END,function(){e.setTransitioning(!1),h(e._element).removeClass(le).addClass(oe).trigger(ae.HIDDEN)}).emulateTransitionEnd(t)}}},i.setTransitioning=function(e){this._isTransitioning=e},i.dispose=function(){h.removeData(this._element,v),this._config=null,this._parent=null,this._element=null,this._triggerArray=null,this._isTransitioning=null},i._getConfig=function(e){return(e=s({},re,{},e)).toggle=Boolean(e.toggle),u.typeCheckConfig(b,e,se),e},i._getDimension=function(){return h(this._element).hasClass("width")?"width":"height"},i._getParent=function(){var e,i=this,t=(u.isElement(this._config.parent)?(e=this._config.parent,void 0!==this._config.parent.jquery&&(e=this._config.parent[0])):e=document.querySelector(this._config.parent),'[data-toggle="collapse"][data-parent="'+this._config.parent+'"]'),t=[].slice.call(e.querySelectorAll(t));return h(t).each(function(e,t){i._addAriaAndCollapsedClass(w._getTargetFromElement(t),[t])}),e},i._addAriaAndCollapsedClass=function(e,t){e=h(e).hasClass(x);t.length&&h(t).toggleClass(ce,!e).attr("aria-expanded",e)},w._getTargetFromElement=function(e){e=u.getSelectorFromElement(e);return e?document.querySelector(e):null},w._jQueryInterface=function(n){return this.each(function(){var e=h(this),t=e.data(v),i=s({},re,{},e.data(),{},"object"==typeof n&&n?n:{});if(!t&&i.toggle&&/show|hide/.test(n)&&(i.toggle=!1),t||(t=new w(this,i),e.data(v,t)),"string"==typeof n){if(void 0===t[n])throw new TypeError('No method named "'+n+'"');t[n]()}})},t(w,null,[{key:"VERSION",get:function(){return"4.4.1"}},{key:"Default",get:function(){return re}}]),w);function w(t,e){this._isTransitioning=!1,this._element=t,this._config=this._getConfig(e),this._triggerArray=[].slice.call(document.querySelectorAll('[data-toggle="collapse"][href="#'+t.id+'"],[data-toggle="collapse"][data-target="#'+t.id+'"]'));for(var i=[].slice.call(document.querySelectorAll(he)),n=0,r=i.length;n<r;n++){var s=i[n],a=u.getSelectorFromElement(s),o=[].slice.call(document.querySelectorAll(a)).filter(function(e){return e===t});null!==a&&0<o.length&&(this._selector=a,this._triggerArray.push(s))}this._parent=this._config.parent?this._getParent():null,this._config.parent||this._addAriaAndCollapsedClass(this._element,this._triggerArray),this._config.toggle&&this.toggle()}h(document).on(ae.CLICK_DATA_API,he,function(e){"A"===e.currentTarget.tagName&&e.preventDefault();var i=h(this),e=u.getSelectorFromElement(this),e=[].slice.call(document.querySelectorAll(e));h(e).each(function(){var e=h(this),t=e.data(v)?"toggle":i.data();ue._jQueryInterface.call(e,t)})}),h.fn[b]=ue._jQueryInterface,h.fn[b].Constructor=ue,h.fn[b].noConflict=function(){return h.fn[b]=ne,ue._jQueryInterface};var k="dropdown",de="bs.dropdown",T="."+de,o=".data-api",pe=h.fn[k],ge=new RegExp("38|40|27"),S={HIDE:"hide"+T,HIDDEN:"hidden"+T,SHOW:"show"+T,SHOWN:"shown"+T,CLICK:"click"+T,CLICK_DATA_API:"click"+T+o,KEYDOWN_DATA_API:"keydown"+T+o,KEYUP_DATA_API:"keyup"+T+o},fe="disabled",_="show",me="dropdown-menu-right",ye='[data-toggle="dropdown"]',be=".dropdown-menu",ve={offset:0,flip:!0,boundary:"scrollParent",reference:"toggle",display:"dynamic",popperConfig:null},xe={offset:"(number|string|function)",flip:"boolean",boundary:"(string|element)",reference:"(string|element)",display:"string",popperConfig:"(null|object)"},C=((c=A.prototype).toggle=function(){var e;this._element.disabled||h(this._element).hasClass(fe)||(e=h(this._menu).hasClass(_),A._clearMenus(),e)||this.show(!0)},c.show=function(e){if(void 0===e&&(e=!1),!(this._element.disabled||h(this._element).hasClass(fe)||h(this._menu).hasClass(_))){var t={relatedTarget:this._element},i=h.Event(S.SHOW,t),n=A._getParentFromElement(this._element);if(h(n).trigger(i),!i.isDefaultPrevented()){if(!this._inNavbar&&e){if(void 0===r)throw new TypeError("Bootstrap's dropdowns require Popper.js (https://popper.js.org/)");i=this._element;"parent"===this._config.reference?i=n:u.isElement(this._config.reference)&&(i=this._config.reference,void 0!==this._config.reference.jquery)&&(i=this._config.reference[0]),"scrollParent"!==this._config.boundary&&h(n).addClass("position-static"),this._popper=new r(i,this._menu,this._getPopperConfig())}"ontouchstart"in document.documentElement&&0===h(n).closest(".navbar-nav").length&&h(document.body).children().on("mouseover",null,h.noop),this._element.focus(),this._element.setAttribute("aria-expanded",!0),h(this._menu).toggleClass(_),h(n).toggleClass(_).trigger(h.Event(S.SHOWN,t))}}},c.hide=function(){var e,t,i;this._element.disabled||h(this._element).hasClass(fe)||!h(this._menu).hasClass(_)||(e={relatedTarget:this._element},t=h.Event(S.HIDE,e),i=A._getParentFromElement(this._element),h(i).trigger(t),t.isDefaultPrevented())||(this._popper&&this._popper.destroy(),h(this._menu).toggleClass(_),h(i).toggleClass(_).trigger(h.Event(S.HIDDEN,e)))},c.dispose=function(){h.removeData(this._element,de),h(this._element).off(T),this._element=null,(this._menu=null)!==this._popper&&(this._popper.destroy(),this._popper=null)},c.update=function(){this._inNavbar=this._detectNavbar(),null!==this._popper&&this._popper.scheduleUpdate()},c._addEventListeners=function(){var t=this;h(this._element).on(S.CLICK,function(e){e.preventDefault(),e.stopPropagation(),t.toggle()})},c._getConfig=function(e){return e=s({},this.constructor.Default,{},h(this._element).data(),{},e),u.typeCheckConfig(k,e,this.constructor.DefaultType),e},c._getMenuElement=function(){var e;return this._menu||(e=A._getParentFromElement(this._element))&&(this._menu=e.querySelector(be)),this._menu},c._getPlacement=function(){var e=h(this._element.parentNode),t="bottom-start";return e.hasClass("dropup")?(t="top-start",h(this._menu).hasClass(me)&&(t="top-end")):e.hasClass("dropright")?t="right-start":e.hasClass("dropleft")?t="left-start":h(this._menu).hasClass(me)&&(t="bottom-end"),t},c._detectNavbar=function(){return 0<h(this._element).closest(".navbar").length},c._getOffset=function(){var t=this,e={};return"function"==typeof this._config.offset?e.fn=function(e){return e.offsets=s({},e.offsets,{},t._config.offset(e.offsets,t._element)||{}),e}:e.offset=this._config.offset,e},c._getPopperConfig=function(){var e={placement:this._getPlacement(),modifiers:{offset:this._getOffset(),flip:{enabled:this._config.flip},preventOverflow:{boundariesElement:this._config.boundary}}};return"static"===this._config.display&&(e.modifiers.applyStyle={enabled:!1}),s({},e,{},this._config.popperConfig)},A._jQueryInterface=function(t){return this.each(function(){var e=h(this).data(de);if(e||(e=new A(this,"object"==typeof t?t:null),h(this).data(de,e)),"string"==typeof t){if(void 0===e[t])throw new TypeError('No method named "'+t+'"');e[t]()}})},A._clearMenus=function(e){if(!e||3!==e.which&&("keyup"!==e.type||9===e.which))for(var t=[].slice.call(document.querySelectorAll(ye)),i=0,n=t.length;i<n;i++){var r,s,a=A._getParentFromElement(t[i]),o=h(t[i]).data(de),l={relatedTarget:t[i]};e&&"click"===e.type&&(l.clickEvent=e),o&&(r=o._menu,!h(a).hasClass(_)||e&&("click"===e.type&&/input|textarea/i.test(e.target.tagName)||"keyup"===e.type&&9===e.which)&&h.contains(a,e.target)||(s=h.Event(S.HIDE,l),h(a).trigger(s),s.isDefaultPrevented())||("ontouchstart"in document.documentElement&&h(document.body).children().off("mouseover",null,h.noop),t[i].setAttribute("aria-expanded","false"),o._popper&&o._popper.destroy(),h(r).removeClass(_),h(a).removeClass(_).trigger(h.Event(S.HIDDEN,l))))}},A._getParentFromElement=function(e){var t,i=u.getSelectorFromElement(e);return(t=i?document.querySelector(i):t)||e.parentNode},A._dataApiKeydownHandler=function(e){var t,i,n;(/input|textarea/i.test(e.target.tagName)?32===e.which||27!==e.which&&(40!==e.which&&38!==e.which||h(e.target).closest(be).length):!ge.test(e.which))||(e.preventDefault(),e.stopPropagation(),this.disabled)||h(this).hasClass(fe)||(t=A._getParentFromElement(this),!(n=h(t).hasClass(_))&&27===e.which)||(n&&(!n||27!==e.which&&32!==e.which)?0!==(n=[].slice.call(t.querySelectorAll(".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)")).filter(function(e){return h(e).is(":visible")})).length&&(i=n.indexOf(e.target),38===e.which&&0<i&&i--,40===e.which&&i<n.length-1&&i++,n[i=i<0?0:i].focus()):(27===e.which&&(n=t.querySelector(ye),h(n).trigger("focus")),h(this).trigger("click")))},t(A,null,[{key:"VERSION",get:function(){return"4.4.1"}},{key:"Default",get:function(){return ve}},{key:"DefaultType",get:function(){return xe}}]),A);function A(e,t){this._element=e,this._popper=null,this._config=this._getConfig(t),this._menu=this._getMenuElement(),this._inNavbar=this._detectNavbar(),this._addEventListeners()}h(document).on(S.KEYDOWN_DATA_API,ye,C._dataApiKeydownHandler).on(S.KEYDOWN_DATA_API,be,C._dataApiKeydownHandler).on(S.CLICK_DATA_API+" "+S.KEYUP_DATA_API,C._clearMenus).on(S.CLICK_DATA_API,ye,function(e){e.preventDefault(),e.stopPropagation(),C._jQueryInterface.call(h(this),"toggle")}).on(S.CLICK_DATA_API,".dropdown form",function(e){e.stopPropagation()}),h.fn[k]=C._jQueryInterface,h.fn[k].Constructor=C,h.fn[k].noConflict=function(){return h.fn[k]=pe,C._jQueryInterface};var E="modal",we="bs.modal",$="."+we,ke=h.fn[E],Te={backdrop:!0,keyboard:!0,focus:!0,show:!0},Se={backdrop:"(boolean|string)",keyboard:"boolean",focus:"boolean",show:"boolean"},L={HIDE:"hide"+$,HIDE_PREVENTED:"hidePrevented"+$,HIDDEN:"hidden"+$,SHOW:"show"+$,SHOWN:"shown"+$,FOCUSIN:"focusin"+$,RESIZE:"resize"+$,CLICK_DISMISS:"click.dismiss"+$,KEYDOWN_DISMISS:"keydown.dismiss"+$,MOUSEUP_DISMISS:"mouseup.dismiss"+$,MOUSEDOWN_DISMISS:"mousedown.dismiss"+$,CLICK_DATA_API:"click"+$+".data-api"},_e="modal-open",Ce="fade",Ae="show",Ee="modal-static",$e=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",Le=".sticky-top",Re=((i=Me.prototype).toggle=function(e){return this._isShown?this.hide():this.show(e)},i.show=function(e){var t,i=this;this._isShown||this._isTransitioning||(h(this._element).hasClass(Ce)&&(this._isTransitioning=!0),t=h.Event(L.SHOW,{relatedTarget:e}),h(this._element).trigger(t),this._isShown)||t.isDefaultPrevented()||(this._isShown=!0,this._checkScrollbar(),this._setScrollbar(),this._adjustDialog(),this._setEscapeEvent(),this._setResizeEvent(),h(this._element).on(L.CLICK_DISMISS,'[data-dismiss="modal"]',function(e){return i.hide(e)}),h(this._dialog).on(L.MOUSEDOWN_DISMISS,function(){h(i._element).one(L.MOUSEUP_DISMISS,function(e){h(e.target).is(i._element)&&(i._ignoreBackdropClick=!0)})}),this._showBackdrop(function(){return i._showElement(e)}))},i.hide=function(e){var t=this;e&&e.preventDefault(),this._isShown&&!this._isTransitioning&&(e=h.Event(L.HIDE),h(this._element).trigger(e),this._isShown)&&!e.isDefaultPrevented()&&(this._isShown=!1,(e=h(this._element).hasClass(Ce))&&(this._isTransitioning=!0),this._setEscapeEvent(),this._setResizeEvent(),h(document).off(L.FOCUSIN),h(this._element).removeClass(Ae),h(this._element).off(L.CLICK_DISMISS),h(this._dialog).off(L.MOUSEDOWN_DISMISS),e?(e=u.getTransitionDurationFromElement(this._element),h(this._element).one(u.TRANSITION_END,function(e){return t._hideModal(e)}).emulateTransitionEnd(e)):this._hideModal())},i.dispose=function(){[window,this._element,this._dialog].forEach(function(e){return h(e).off($)}),h(document).off(L.FOCUSIN),h.removeData(this._element,we),this._config=null,this._element=null,this._dialog=null,this._backdrop=null,this._isShown=null,this._isBodyOverflowing=null,this._ignoreBackdropClick=null,this._isTransitioning=null,this._scrollbarWidth=null},i.handleUpdate=function(){this._adjustDialog()},i._getConfig=function(e){return e=s({},Te,{},e),u.typeCheckConfig(E,e,Se),e},i._triggerBackdropTransition=function(){var e,t=this;"static"===this._config.backdrop?(e=h.Event(L.HIDE_PREVENTED),h(this._element).trigger(e),e.defaultPrevented||(this._element.classList.add(Ee),e=u.getTransitionDurationFromElement(this._element),h(this._element).one(u.TRANSITION_END,function(){t._element.classList.remove(Ee)}).emulateTransitionEnd(e),this._element.focus())):this.hide()},i._showElement=function(e){var t=this,i=h(this._element).hasClass(Ce),n=this._dialog?this._dialog.querySelector(".modal-body"):null;function r(){t._config.focus&&t._element.focus(),t._isTransitioning=!1,h(t._element).trigger(s)}this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE||document.body.appendChild(this._element),this._element.style.display="block",this._element.removeAttribute("aria-hidden"),this._element.setAttribute("aria-modal",!0),h(this._dialog).hasClass("modal-dialog-scrollable")&&n?n.scrollTop=0:this._element.scrollTop=0,i&&u.reflow(this._element),h(this._element).addClass(Ae),this._config.focus&&this._enforceFocus();var s=h.Event(L.SHOWN,{relatedTarget:e});i?(n=u.getTransitionDurationFromElement(this._dialog),h(this._dialog).one(u.TRANSITION_END,r).emulateTransitionEnd(n)):r()},i._enforceFocus=function(){var t=this;h(document).off(L.FOCUSIN).on(L.FOCUSIN,function(e){document!==e.target&&t._element!==e.target&&0===h(t._element).has(e.target).length&&t._element.focus()})},i._setEscapeEvent=function(){var t=this;this._isShown&&this._config.keyboard?h(this._element).on(L.KEYDOWN_DISMISS,function(e){27===e.which&&t._triggerBackdropTransition()}):this._isShown||h(this._element).off(L.KEYDOWN_DISMISS)},i._setResizeEvent=function(){var t=this;this._isShown?h(window).on(L.RESIZE,function(e){return t.handleUpdate(e)}):h(window).off(L.RESIZE)},i._hideModal=function(){var e=this;this._element.style.display="none",this._element.setAttribute("aria-hidden",!0),this._element.removeAttribute("aria-modal"),this._isTransitioning=!1,this._showBackdrop(function(){h(document.body).removeClass(_e),e._resetAdjustments(),e._resetScrollbar(),h(e._element).trigger(L.HIDDEN)})},i._removeBackdrop=function(){this._backdrop&&(h(this._backdrop).remove(),this._backdrop=null)},i._showBackdrop=function(e){var t,i=this,n=h(this._element).hasClass(Ce)?Ce:"";this._isShown&&this._config.backdrop?(this._backdrop=document.createElement("div"),this._backdrop.className="modal-backdrop",n&&this._backdrop.classList.add(n),h(this._backdrop).appendTo(document.body),h(this._element).on(L.CLICK_DISMISS,function(e){i._ignoreBackdropClick?i._ignoreBackdropClick=!1:e.target===e.currentTarget&&i._triggerBackdropTransition()}),n&&u.reflow(this._backdrop),h(this._backdrop).addClass(Ae),e&&(n?(n=u.getTransitionDurationFromElement(this._backdrop),h(this._backdrop).one(u.TRANSITION_END,e).emulateTransitionEnd(n)):e())):!this._isShown&&this._backdrop?(h(this._backdrop).removeClass(Ae),n=function(){i._removeBackdrop(),e&&e()},h(this._element).hasClass(Ce)?(t=u.getTransitionDurationFromElement(this._backdrop),h(this._backdrop).one(u.TRANSITION_END,n).emulateTransitionEnd(t)):n()):e&&e()},i._adjustDialog=function(){var e=this._element.scrollHeight>document.documentElement.clientHeight;!this._isBodyOverflowing&&e&&(this._element.style.paddingLeft=this._scrollbarWidth+"px"),this._isBodyOverflowing&&!e&&(this._element.style.paddingRight=this._scrollbarWidth+"px")},i._resetAdjustments=function(){this._element.style.paddingLeft="",this._element.style.paddingRight=""},i._checkScrollbar=function(){var e=document.body.getBoundingClientRect();this._isBodyOverflowing=e.left+e.right<window.innerWidth,this._scrollbarWidth=this._getScrollbarWidth()},i._setScrollbar=function(){var e,t,r=this;this._isBodyOverflowing&&(e=[].slice.call(document.querySelectorAll($e)),t=[].slice.call(document.querySelectorAll(Le)),h(e).each(function(e,t){var i=t.style.paddingRight,n=h(t).css("padding-right");h(t).data("padding-right",i).css("padding-right",parseFloat(n)+r._scrollbarWidth+"px")}),h(t).each(function(e,t){var i=t.style.marginRight,n=h(t).css("margin-right");h(t).data("margin-right",i).css("margin-right",parseFloat(n)-r._scrollbarWidth+"px")}),e=document.body.style.paddingRight,t=h(document.body).css("padding-right"),h(document.body).data("padding-right",e).css("padding-right",parseFloat(t)+this._scrollbarWidth+"px")),h(document.body).addClass(_e)},i._resetScrollbar=function(){var e=[].slice.call(document.querySelectorAll($e)),e=(h(e).each(function(e,t){var i=h(t).data("padding-right");h(t).removeData("padding-right"),t.style.paddingRight=i||""}),[].slice.call(document.querySelectorAll(Le))),e=(h(e).each(function(e,t){var i=h(t).data("margin-right");void 0!==i&&h(t).css("margin-right",i).removeData("margin-right")}),h(document.body).data("padding-right"));h(document.body).removeData("padding-right"),document.body.style.paddingRight=e||""},i._getScrollbarWidth=function(){var e=document.createElement("div"),t=(e.className="modal-scrollbar-measure",document.body.appendChild(e),e.getBoundingClientRect().width-e.clientWidth);return document.body.removeChild(e),t},Me._jQueryInterface=function(i,n){return this.each(function(){var e=h(this).data(we),t=s({},Te,{},h(this).data(),{},"object"==typeof i&&i?i:{});if(e||(e=new Me(this,t),h(this).data(we,e)),"string"==typeof i){if(void 0===e[i])throw new TypeError('No method named "'+i+'"');e[i](n)}else t.show&&e.show(n)})},t(Me,null,[{key:"VERSION",get:function(){return"4.4.1"}},{key:"Default",get:function(){return Te}}]),Me);function Me(e,t){this._config=this._getConfig(t),this._element=e,this._dialog=e.querySelector(".modal-dialog"),this._backdrop=null,this._isShown=!1,this._isBodyOverflowing=!1,this._ignoreBackdropClick=!1,this._isTransitioning=!1,this._scrollbarWidth=0}h(document).on(L.CLICK_DATA_API,'[data-toggle="modal"]',function(e){var t,i=this,n=u.getSelectorFromElement(this),n=(n&&(t=document.querySelector(n)),h(t).data(we)?"toggle":s({},h(t).data(),{},h(this).data())),r=("A"!==this.tagName&&"AREA"!==this.tagName||e.preventDefault(),h(t).one(L.SHOW,function(e){e.isDefaultPrevented()||r.one(L.HIDDEN,function(){h(i).is(":visible")&&i.focus()})}));Re._jQueryInterface.call(h(t),n,this)}),h.fn[E]=Re._jQueryInterface,h.fn[E].Constructor=Re,h.fn[E].noConflict=function(){return h.fn[E]=ke,Re._jQueryInterface};var Ie=["background","cite","href","itemtype","longdesc","poster","src","xlink:href"],Ne=/^(?:(?:https?|mailto|ftp|tel|file):|[^&:/?#]*(?:[/?#]|$))/gi,De=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[a-z0-9+/]+=*$/i;function Oe(e,r,t){if(0===e.length)return e;if(t&&"function"==typeof t)return t(e);for(var t=(new window.DOMParser).parseFromString(e,"text/html"),s=Object.keys(r),a=[].slice.call(t.body.querySelectorAll("*")),i=0,n=a.length;i<n;i++)!function(e){var t=a[e],e=t.nodeName.toLowerCase();if(-1===s.indexOf(t.nodeName.toLowerCase()))return t.parentNode.removeChild(t);var i=[].slice.call(t.attributes),n=[].concat(r["*"]||[],r[e]||[]);i.forEach(function(e){!function(e,t){var i=e.nodeName.toLowerCase();if(-1!==t.indexOf(i))return-1===Ie.indexOf(i)||Boolean(e.nodeValue.match(Ne)||e.nodeValue.match(De));for(var n=t.filter(function(e){return e instanceof RegExp}),r=0,s=n.length;r<s;r++)if(i.match(n[r]))return 1}(e,n)&&t.removeAttribute(e.nodeName)})}(i);return t.body.innerHTML}var R="tooltip",Pe="bs.tooltip",M="."+Pe,Be=h.fn[R],Fe="bs-tooltip",je=new RegExp("(^|\\s)"+Fe+"\\S+","g"),ze=["sanitize","whiteList","sanitizeFn"],He={animation:"boolean",template:"string",title:"(string|element|function)",trigger:"string",delay:"(number|object)",html:"boolean",selector:"(string|boolean)",placement:"(string|function)",offset:"(number|string|function)",container:"(string|element|boolean)",fallbackPlacement:"(string|array)",boundary:"(string|element)",sanitize:"boolean",sanitizeFn:"(null|function)",whiteList:"object",popperConfig:"(null|object)"},Ue={AUTO:"auto",TOP:"top",RIGHT:"right",BOTTOM:"bottom",LEFT:"left"},qe={animation:!0,template:'<div class="tooltip" role="tooltip"><div class="arrow"></div><div class="tooltip-inner"></div></div>',trigger:"hover focus",title:"",delay:0,html:!1,selector:!1,placement:"top",offset:0,container:!1,fallbackPlacement:"flip",boundary:"scrollParent",sanitize:!0,sanitizeFn:null,whiteList:{"*":["class","dir","id","lang","role",/^aria-[\w-]*$/i],a:["target","href","title","rel"],area:[],b:[],br:[],col:[],code:[],div:[],em:[],hr:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],i:[],img:["src","alt","title","width","height"],li:[],ol:[],p:[],pre:[],s:[],small:[],span:[],sub:[],sup:[],strong:[],u:[],ul:[]},popperConfig:null},We="show",Ve={HIDE:"hide"+M,HIDDEN:"hidden"+M,SHOW:"show"+M,SHOWN:"shown"+M,INSERTED:"inserted"+M,CLICK:"click"+M,FOCUSIN:"focusin"+M,FOCUSOUT:"focusout"+M,MOUSEENTER:"mouseenter"+M,MOUSELEAVE:"mouseleave"+M},Ge="fade",Ye="show",Xe="hover",I=((o=Ke.prototype).enable=function(){this._isEnabled=!0},o.disable=function(){this._isEnabled=!1},o.toggleEnabled=function(){this._isEnabled=!this._isEnabled},o.toggle=function(e){var t,i;this._isEnabled&&(e?(t=this.constructor.DATA_KEY,(i=h(e.currentTarget).data(t))||(i=new this.constructor(e.currentTarget,this._getDelegateConfig()),h(e.currentTarget).data(t,i)),i._activeTrigger.click=!i._activeTrigger.click,i._isWithActiveTrigger()?i._enter(null,i):i._leave(null,i)):h(this.getTipElement()).hasClass(Ye)?this._leave(null,this):this._enter(null,this))},o.dispose=function(){clearTimeout(this._timeout),h.removeData(this.element,this.constructor.DATA_KEY),h(this.element).off(this.constructor.EVENT_KEY),h(this.element).closest(".modal").off("hide.bs.modal",this._hideModalHandler),this.tip&&h(this.tip).remove(),this._isEnabled=null,this._timeout=null,this._hoverState=null,this._activeTrigger=null,this._popper&&this._popper.destroy(),this._popper=null,this.element=null,this.config=null,this.tip=null},o.show=function(){var t=this;if("none"===h(this.element).css("display"))throw new Error("Please use show on visible elements");var e,i,n=h.Event(this.constructor.Event.SHOW);this.isWithContent()&&this._isEnabled&&(h(this.element).trigger(n),i=u.findShadowRoot(this.element),i=h.contains(null!==i?i:this.element.ownerDocument.documentElement,this.element),!n.isDefaultPrevented())&&i&&(n=this.getTipElement(),i=u.getUID(this.constructor.NAME),n.setAttribute("id",i),this.element.setAttribute("aria-describedby",i),this.setContent(),this.config.animation&&h(n).addClass(Ge),i="function"==typeof this.config.placement?this.config.placement.call(this,n,this.element):this.config.placement,i=this._getAttachment(i),this.addAttachmentClass(i),e=this._getContainer(),h(n).data(this.constructor.DATA_KEY,this),h.contains(this.element.ownerDocument.documentElement,this.tip)||h(n).appendTo(e),h(this.element).trigger(this.constructor.Event.INSERTED),this._popper=new r(this.element,n,this._getPopperConfig(i)),h(n).addClass(Ye),"ontouchstart"in document.documentElement&&h(document.body).children().on("mouseover",null,h.noop),e=function(){t.config.animation&&t._fixTransition();var e=t._hoverState;t._hoverState=null,h(t.element).trigger(t.constructor.Event.SHOWN),"out"===e&&t._leave(null,t)},h(this.tip).hasClass(Ge)?(i=u.getTransitionDurationFromElement(this.tip),h(this.tip).one(u.TRANSITION_END,e).emulateTransitionEnd(i)):e())},o.hide=function(e){function t(){i._hoverState!==We&&n.parentNode&&n.parentNode.removeChild(n),i._cleanTipClass(),i.element.removeAttribute("aria-describedby"),h(i.element).trigger(i.constructor.Event.HIDDEN),null!==i._popper&&i._popper.destroy(),e&&e()}var i=this,n=this.getTipElement(),r=h.Event(this.constructor.Event.HIDE);h(this.element).trigger(r),r.isDefaultPrevented()||(h(n).removeClass(Ye),"ontouchstart"in document.documentElement&&h(document.body).children().off("mouseover",null,h.noop),this._activeTrigger.click=!1,this._activeTrigger.focus=!1,this._activeTrigger[Xe]=!1,h(this.tip).hasClass(Ge)?(r=u.getTransitionDurationFromElement(n),h(n).one(u.TRANSITION_END,t).emulateTransitionEnd(r)):t(),this._hoverState="")},o.update=function(){null!==this._popper&&this._popper.scheduleUpdate()},o.isWithContent=function(){return Boolean(this.getTitle())},o.addAttachmentClass=function(e){h(this.getTipElement()).addClass(Fe+"-"+e)},o.getTipElement=function(){return this.tip=this.tip||h(this.config.template)[0],this.tip},o.setContent=function(){var e=this.getTipElement();this.setElementContent(h(e.querySelectorAll(".tooltip-inner")),this.getTitle()),h(e).removeClass("fade show")},o.setElementContent=function(e,t){"object"!=typeof t||!t.nodeType&&!t.jquery?this.config.html?(this.config.sanitize&&(t=Oe(t,this.config.whiteList,this.config.sanitizeFn)),e.html(t)):e.text(t):this.config.html?h(t).parent().is(e)||e.empty().append(t):e.text(h(t).text())},o.getTitle=function(){var e=this.element.getAttribute("data-original-title");return e||("function"==typeof this.config.title?this.config.title.call(this.element):this.config.title)},o._getPopperConfig=function(e){var t=this;return s({},{placement:e,modifiers:{offset:this._getOffset(),flip:{behavior:this.config.fallbackPlacement},arrow:{element:".arrow"},preventOverflow:{boundariesElement:this.config.boundary}},onCreate:function(e){e.originalPlacement!==e.placement&&t._handlePopperPlacementChange(e)},onUpdate:function(e){return t._handlePopperPlacementChange(e)}},{},this.config.popperConfig)},o._getOffset=function(){var t=this,e={};return"function"==typeof this.config.offset?e.fn=function(e){return e.offsets=s({},e.offsets,{},t.config.offset(e.offsets,t.element)||{}),e}:e.offset=this.config.offset,e},o._getContainer=function(){return!1===this.config.container?document.body:u.isElement(this.config.container)?h(this.config.container):h(document).find(this.config.container)},o._getAttachment=function(e){return Ue[e.toUpperCase()]},o._setListeners=function(){var i=this;this.config.trigger.split(" ").forEach(function(e){var t;"click"===e?h(i.element).on(i.constructor.Event.CLICK,i.config.selector,function(e){return i.toggle(e)}):"manual"!==e&&(t=e===Xe?i.constructor.Event.MOUSEENTER:i.constructor.Event.FOCUSIN,e=e===Xe?i.constructor.Event.MOUSELEAVE:i.constructor.Event.FOCUSOUT,h(i.element).on(t,i.config.selector,function(e){return i._enter(e)}).on(e,i.config.selector,function(e){return i._leave(e)}))}),this._hideModalHandler=function(){i.element&&i.hide()},h(this.element).closest(".modal").on("hide.bs.modal",this._hideModalHandler),this.config.selector?this.config=s({},this.config,{trigger:"manual",selector:""}):this._fixTitle()},o._fixTitle=function(){var e=typeof this.element.getAttribute("data-original-title");!this.element.getAttribute("title")&&"string"==e||(this.element.setAttribute("data-original-title",this.element.getAttribute("title")||""),this.element.setAttribute("title",""))},o._enter=function(e,t){var i=this.constructor.DATA_KEY;(t=t||h(e.currentTarget).data(i))||(t=new this.constructor(e.currentTarget,this._getDelegateConfig()),h(e.currentTarget).data(i,t)),e&&(t._activeTrigger["focusin"===e.type?"focus":Xe]=!0),h(t.getTipElement()).hasClass(Ye)||t._hoverState===We?t._hoverState=We:(clearTimeout(t._timeout),t._hoverState=We,t.config.delay&&t.config.delay.show?t._timeout=setTimeout(function(){t._hoverState===We&&t.show()},t.config.delay.show):t.show())},o._leave=function(e,t){var i=this.constructor.DATA_KEY;(t=t||h(e.currentTarget).data(i))||(t=new this.constructor(e.currentTarget,this._getDelegateConfig()),h(e.currentTarget).data(i,t)),e&&(t._activeTrigger["focusout"===e.type?"focus":Xe]=!1),t._isWithActiveTrigger()||(clearTimeout(t._timeout),t._hoverState="out",t.config.delay&&t.config.delay.hide?t._timeout=setTimeout(function(){"out"===t._hoverState&&t.hide()},t.config.delay.hide):t.hide())},o._isWithActiveTrigger=function(){for(var e in this._activeTrigger)if(this._activeTrigger[e])return!0;return!1},o._getConfig=function(e){var t=h(this.element).data();return Object.keys(t).forEach(function(e){-1!==ze.indexOf(e)&&delete t[e]}),"number"==typeof(e=s({},this.constructor.Default,{},t,{},"object"==typeof e&&e?e:{})).delay&&(e.delay={show:e.delay,hide:e.delay}),"number"==typeof e.title&&(e.title=e.title.toString()),"number"==typeof e.content&&(e.content=e.content.toString()),u.typeCheckConfig(R,e,this.constructor.DefaultType),e.sanitize&&(e.template=Oe(e.template,e.whiteList,e.sanitizeFn)),e},o._getDelegateConfig=function(){var e={};if(this.config)for(var t in this.config)this.constructor.Default[t]!==this.config[t]&&(e[t]=this.config[t]);return e},o._cleanTipClass=function(){var e=h(this.getTipElement()),t=e.attr("class").match(je);null!==t&&t.length&&e.removeClass(t.join(""))},o._handlePopperPlacementChange=function(e){var t=e.instance;this.tip=t.popper,this._cleanTipClass(),this.addAttachmentClass(this._getAttachment(e.placement))},o._fixTransition=function(){var e=this.getTipElement(),t=this.config.animation;null===e.getAttribute("x-placement")&&(h(e).removeClass(Ge),this.config.animation=!1,this.hide(),this.show(),this.config.animation=t)},Ke._jQueryInterface=function(i){return this.each(function(){var e=h(this).data(Pe),t="object"==typeof i&&i;if((e||!/dispose|hide/.test(i))&&(e||(e=new Ke(this,t),h(this).data(Pe,e)),"string"==typeof i)){if(void 0===e[i])throw new TypeError('No method named "'+i+'"');e[i]()}})},t(Ke,null,[{key:"VERSION",get:function(){return"4.4.1"}},{key:"Default",get:function(){return qe}},{key:"NAME",get:function(){return R}},{key:"DATA_KEY",get:function(){return Pe}},{key:"Event",get:function(){return Ve}},{key:"EVENT_KEY",get:function(){return M}},{key:"DefaultType",get:function(){return He}}]),Ke);function Ke(e,t){if(void 0===r)throw new TypeError("Bootstrap's tooltips require Popper.js (https://popper.js.org/)");this._isEnabled=!0,this._timeout=0,this._hoverState="",this._activeTrigger={},this._popper=null,this.element=e,this.config=this._getConfig(t),this.tip=null,this._setListeners()}h.fn[R]=I._jQueryInterface,h.fn[R].Constructor=I,h.fn[R].noConflict=function(){return h.fn[R]=Be,I._jQueryInterface};var Ze,Qe="popover",Je="bs.popover",N="."+Je,et=h.fn[Qe],tt="bs-popover",it=new RegExp("(^|\\s)"+tt+"\\S+","g"),nt=s({},I.Default,{placement:"right",trigger:"click",content:"",template:'<div class="popover" role="tooltip"><div class="arrow"></div><h3 class="popover-header"></h3><div class="popover-body"></div></div>'}),rt=s({},I.DefaultType,{content:"(string|element|function)"}),st={HIDE:"hide"+N,HIDDEN:"hidden"+N,SHOW:"show"+N,SHOWN:"shown"+N,INSERTED:"inserted"+N,CLICK:"click"+N,FOCUSIN:"focusin"+N,FOCUSOUT:"focusout"+N,MOUSEENTER:"mouseenter"+N,MOUSELEAVE:"mouseleave"+N},at=(c=Ze=I,(i=ot).prototype=Object.create(c.prototype),(i.prototype.constructor=i).__proto__=c,(i=ot.prototype).isWithContent=function(){return this.getTitle()||this._getContent()},i.addAttachmentClass=function(e){h(this.getTipElement()).addClass(tt+"-"+e)},i.getTipElement=function(){return this.tip=this.tip||h(this.config.template)[0],this.tip},i.setContent=function(){var e=h(this.getTipElement()),t=(this.setElementContent(e.find(".popover-header"),this.getTitle()),this._getContent());"function"==typeof t&&(t=t.call(this.element)),this.setElementContent(e.find(".popover-body"),t),e.removeClass("fade show")},i._getContent=function(){return this.element.getAttribute("data-content")||this.config.content},i._cleanTipClass=function(){var e=h(this.getTipElement()),t=e.attr("class").match(it);null!==t&&0<t.length&&e.removeClass(t.join(""))},ot._jQueryInterface=function(i){return this.each(function(){var e=h(this).data(Je),t="object"==typeof i?i:null;if((e||!/dispose|hide/.test(i))&&(e||(e=new ot(this,t),h(this).data(Je,e)),"string"==typeof i)){if(void 0===e[i])throw new TypeError('No method named "'+i+'"');e[i]()}})},t(ot,null,[{key:"VERSION",get:function(){return"4.4.1"}},{key:"Default",get:function(){return nt}},{key:"NAME",get:function(){return Qe}},{key:"DATA_KEY",get:function(){return Je}},{key:"Event",get:function(){return st}},{key:"EVENT_KEY",get:function(){return N}},{key:"DefaultType",get:function(){return rt}}]),ot);function ot(){return Ze.apply(this,arguments)||this}h.fn[Qe]=at._jQueryInterface,h.fn[Qe].Constructor=at,h.fn[Qe].noConflict=function(){return h.fn[Qe]=et,at._jQueryInterface};var D="scrollspy",lt="bs.scrollspy",ct="."+lt,ht=h.fn[D],ut={offset:10,method:"auto",target:""},dt={offset:"number",method:"string",target:"(string|element)"},pt={ACTIVATE:"activate"+ct,SCROLL:"scroll"+ct,LOAD_DATA_API:"load"+ct+".data-api"},gt="active",ft=".nav, .list-group",mt=".nav-link",yt=".list-group-item",bt=((o=vt.prototype).refresh=function(){var t=this,e=this._scrollElement===this._scrollElement.window?"offset":"position",n="auto"===this._config.method?e:this._config.method,r="position"===n?this._getScrollTop():0;this._offsets=[],this._targets=[],this._scrollHeight=this._getScrollHeight(),[].slice.call(document.querySelectorAll(this._selector)).map(function(e){var t,e=u.getSelectorFromElement(e);if(t=e?document.querySelector(e):t){var i=t.getBoundingClientRect();if(i.width||i.height)return[h(t)[n]().top+r,e]}return null}).filter(function(e){return e}).sort(function(e,t){return e[0]-t[0]}).forEach(function(e){t._offsets.push(e[0]),t._targets.push(e[1])})},o.dispose=function(){h.removeData(this._element,lt),h(this._scrollElement).off(ct),this._element=null,this._scrollElement=null,this._config=null,this._selector=null,this._offsets=null,this._targets=null,this._activeTarget=null,this._scrollHeight=null},o._getConfig=function(e){var t;return"string"!=typeof(e=s({},ut,{},"object"==typeof e&&e?e:{})).target&&((t=h(e.target).attr("id"))||(t=u.getUID(D),h(e.target).attr("id",t)),e.target="#"+t),u.typeCheckConfig(D,e,dt),e},o._getScrollTop=function(){return this._scrollElement===window?this._scrollElement.pageYOffset:this._scrollElement.scrollTop},o._getScrollHeight=function(){return this._scrollElement.scrollHeight||Math.max(document.body.scrollHeight,document.documentElement.scrollHeight)},o._getOffsetHeight=function(){return this._scrollElement===window?window.innerHeight:this._scrollElement.getBoundingClientRect().height},o._process=function(){var e=this._getScrollTop()+this._config.offset,t=this._getScrollHeight(),i=this._config.offset+t-this._getOffsetHeight();if(this._scrollHeight!==t&&this.refresh(),i<=e){t=this._targets[this._targets.length-1];this._activeTarget!==t&&this._activate(t)}else if(this._activeTarget&&e<this._offsets[0]&&0<this._offsets[0])this._activeTarget=null,this._clear();else for(var n=this._offsets.length;n--;)this._activeTarget!==this._targets[n]&&e>=this._offsets[n]&&(void 0===this._offsets[n+1]||e<this._offsets[n+1])&&this._activate(this._targets[n])},o._activate=function(t){this._activeTarget=t,this._clear();var e=this._selector.split(",").map(function(e){return e+'[data-target="'+t+'"],'+e+'[href="'+t+'"]'}),e=h([].slice.call(document.querySelectorAll(e.join(","))));(e.hasClass("dropdown-item")?(e.closest(".dropdown").find(".dropdown-toggle").addClass(gt),e):(e.addClass(gt),e.parents(ft).prev(mt+", "+yt).addClass(gt),e.parents(ft).prev(".nav-item").children(mt))).addClass(gt),h(this._scrollElement).trigger(pt.ACTIVATE,{relatedTarget:t})},o._clear=function(){[].slice.call(document.querySelectorAll(this._selector)).filter(function(e){return e.classList.contains(gt)}).forEach(function(e){return e.classList.remove(gt)})},vt._jQueryInterface=function(t){return this.each(function(){var e=h(this).data(lt);if(e||(e=new vt(this,"object"==typeof t&&t),h(this).data(lt,e)),"string"==typeof t){if(void 0===e[t])throw new TypeError('No method named "'+t+'"');e[t]()}})},t(vt,null,[{key:"VERSION",get:function(){return"4.4.1"}},{key:"Default",get:function(){return ut}}]),vt);function vt(e,t){var i=this;this._element=e,this._scrollElement="BODY"===e.tagName?window:e,this._config=this._getConfig(t),this._selector=this._config.target+" "+mt+","+this._config.target+" "+yt+","+this._config.target+" .dropdown-item",this._offsets=[],this._targets=[],this._activeTarget=null,this._scrollHeight=0,h(this._scrollElement).on(pt.SCROLL,function(e){return i._process(e)}),this.refresh(),this._process()}h(window).on(pt.LOAD_DATA_API,function(){for(var e=[].slice.call(document.querySelectorAll('[data-spy="scroll"]')),t=e.length;t--;){var i=h(e[t]);bt._jQueryInterface.call(i,i.data())}}),h.fn[D]=bt._jQueryInterface,h.fn[D].Constructor=bt,h.fn[D].noConflict=function(){return h.fn[D]=ht,bt._jQueryInterface};var xt="bs.tab",c="."+xt,wt=h.fn.tab,kt={HIDE:"hide"+c,HIDDEN:"hidden"+c,SHOW:"show"+c,SHOWN:"shown"+c,CLICK_DATA_API:"click.bs.tab.data-api"},Tt="active",St="> li > .active",_t=((i=Ct.prototype).show=function(){var e,t,i,n,r,s,a=this;this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE&&h(this._element).hasClass(Tt)||h(this._element).hasClass("disabled")||(t=h(this._element).closest(".nav, .list-group")[0],i=u.getSelectorFromElement(this._element),t&&(r="UL"===t.nodeName||"OL"===t.nodeName?St:".active",n=(n=h.makeArray(h(t).find(r)))[n.length-1]),r=h.Event(kt.HIDE,{relatedTarget:this._element}),s=h.Event(kt.SHOW,{relatedTarget:n}),n&&h(n).trigger(r),h(this._element).trigger(s),s.isDefaultPrevented())||r.isDefaultPrevented()||(i&&(e=document.querySelector(i)),this._activate(this._element,t),s=function(){var e=h.Event(kt.HIDDEN,{relatedTarget:a._element}),t=h.Event(kt.SHOWN,{relatedTarget:n});h(n).trigger(e),h(a._element).trigger(t)},e?this._activate(e,e.parentNode,s):s())},i.dispose=function(){h.removeData(this._element,xt),this._element=null},i._activate=function(e,t,i){function n(){return r._transitionComplete(e,s,i)}var r=this,s=(!t||"UL"!==t.nodeName&&"OL"!==t.nodeName?h(t).children(".active"):h(t).find(St))[0],t=i&&s&&h(s).hasClass("fade");s&&t?(t=u.getTransitionDurationFromElement(s),h(s).removeClass("show").one(u.TRANSITION_END,n).emulateTransitionEnd(t)):n()},i._transitionComplete=function(e,t,i){var n;t&&(h(t).removeClass(Tt),(n=h(t.parentNode).find("> .dropdown-menu .active")[0])&&h(n).removeClass(Tt),"tab"===t.getAttribute("role"))&&t.setAttribute("aria-selected",!1),h(e).addClass(Tt),"tab"===e.getAttribute("role")&&e.setAttribute("aria-selected",!0),u.reflow(e),e.classList.contains("fade")&&e.classList.add("show"),e.parentNode&&h(e.parentNode).hasClass("dropdown-menu")&&((n=h(e).closest(".dropdown")[0])&&(t=[].slice.call(n.querySelectorAll(".dropdown-toggle")),h(t).addClass(Tt)),e.setAttribute("aria-expanded",!0)),i&&i()},Ct._jQueryInterface=function(i){return this.each(function(){var e=h(this),t=e.data(xt);if(t||(t=new Ct(this),e.data(xt,t)),"string"==typeof i){if(void 0===t[i])throw new TypeError('No method named "'+i+'"');t[i]()}})},t(Ct,null,[{key:"VERSION",get:function(){return"4.4.1"}}]),Ct);function Ct(e){this._element=e}h(document).on(kt.CLICK_DATA_API,'[data-toggle="tab"], [data-toggle="pill"], [data-toggle="list"]',function(e){e.preventDefault(),_t._jQueryInterface.call(h(this),"show")}),h.fn.tab=_t._jQueryInterface,h.fn.tab.Constructor=_t,h.fn.tab.noConflict=function(){return h.fn.tab=wt,_t._jQueryInterface};var At="toast",Et="bs.toast",o="."+Et,$t=h.fn[At],Lt={CLICK_DISMISS:"click.dismiss"+o,HIDE:"hide"+o,HIDDEN:"hidden"+o,SHOW:"show"+o,SHOWN:"shown"+o},Rt="show",Mt={animation:"boolean",autohide:"boolean",delay:"number"},It={animation:!0,autohide:!0,delay:500},Nt=((c=Dt.prototype).show=function(){var e,t=this,i=h.Event(Lt.SHOW);h(this._element).trigger(i),i.isDefaultPrevented()||(this._config.animation&&this._element.classList.add("fade"),i=function(){t._element.classList.remove("showing"),t._element.classList.add(Rt),h(t._element).trigger(Lt.SHOWN),t._config.autohide&&(t._timeout=setTimeout(function(){t.hide()},t._config.delay))},this._element.classList.remove("hide"),u.reflow(this._element),this._element.classList.add("showing"),this._config.animation?(e=u.getTransitionDurationFromElement(this._element),h(this._element).one(u.TRANSITION_END,i).emulateTransitionEnd(e)):i())},c.hide=function(){var e;this._element.classList.contains(Rt)&&(e=h.Event(Lt.HIDE),h(this._element).trigger(e),e.isDefaultPrevented()||this._close())},c.dispose=function(){clearTimeout(this._timeout),this._timeout=null,this._element.classList.contains(Rt)&&this._element.classList.remove(Rt),h(this._element).off(Lt.CLICK_DISMISS),h.removeData(this._element,Et),this._element=null,this._config=null},c._getConfig=function(e){return e=s({},It,{},h(this._element).data(),{},"object"==typeof e&&e?e:{}),u.typeCheckConfig(At,e,this.constructor.DefaultType),e},c._setListeners=function(){var e=this;h(this._element).on(Lt.CLICK_DISMISS,'[data-dismiss="toast"]',function(){return e.hide()})},c._close=function(){function e(){i._element.classList.add("hide"),h(i._element).trigger(Lt.HIDDEN)}var t,i=this;this._element.classList.remove(Rt),this._config.animation?(t=u.getTransitionDurationFromElement(this._element),h(this._element).one(u.TRANSITION_END,e).emulateTransitionEnd(t)):e()},Dt._jQueryInterface=function(i){return this.each(function(){var e=h(this),t=e.data(Et);if(t||(t=new Dt(this,"object"==typeof i&&i),e.data(Et,t)),"string"==typeof i){if(void 0===t[i])throw new TypeError('No method named "'+i+'"');t[i](this)}})},t(Dt,null,[{key:"VERSION",get:function(){return"4.4.1"}},{key:"DefaultType",get:function(){return Mt}},{key:"Default",get:function(){return It}}]),Dt);function Dt(e,t){this._element=e,this._config=this._getConfig(t),this._timeout=null,this._setListeners()}h.fn[At]=Nt._jQueryInterface,h.fn[At].Constructor=Nt,h.fn[At].noConflict=function(){return h.fn[At]=$t,Nt._jQueryInterface},e.Alert=n,e.Button=G,e.Carousel=m,e.Collapse=ue,e.Dropdown=C,e.Modal=Re,e.Popover=at,e.Scrollspy=bt,e.Tab=_t,e.Toast=Nt,e.Tooltip=I,e.Util=u,Object.defineProperty(e,"__esModule",{value:!0})}),function(){function l(e,i){var t,n;return i=a(e,i),(e=r.modules[i])||("function"==typeof(e=r.payloads[i])&&(t={id:i,uri:"",exports:n={},packaged:!0},n=e(function(e,t){return s(i,e,t)},n,t)||t.exports,r.modules[i]=n,delete r.payloads[i]),e=r.modules[i]=n||e),e}var e,t,i=function(){return this}(),r=(i||"undefined"==typeof window||(i=window),function(e,t,i){"string"!=typeof e?r.original?r.original.apply(this,arguments):(console.error("dropping module because define wasn't a string."),console.trace()):(2==arguments.length&&(i=t),r.modules[e]||(r.payloads[e]=i,r.modules[e]=null))}),s=(r.modules={},r.payloads={},function(e,t,i){if("string"==typeof t){var n=l(e,t);if(null!=n)return i&&i(),n}else if("[object Array]"===Object.prototype.toString.call(t)){for(var r=[],s=0,a=t.length;s<a;++s){var o=l(e,t[s]);if(null==o&&c.original)return;r.push(o)}return i&&i.apply(null,r)||!0}}),c=function(e,t){var i=s("",e,t);return null==i&&c.original?c.original.apply(this,arguments):i},a=function(e,t){var i;if(-1!==t.indexOf("!"))return i=t.split("!"),a(e,i[0])+"!"+a(e,i[1]);if("."==t.charAt(0))for(t=e.split("/").slice(0,-1).join("/")+"/"+t;-1!==t.indexOf(".")&&n!=t;){var n=t;t=t.replace(/\/\.\//,"/").replace(/[^\/]+\/\.\.\//,"")}return t};t=i,(e="ace")&&(i[e]||(i[e]={}),t=i[e]),t.define&&t.define.packaged||(r.original=t.define,t.define=r,t.define.packaged=!0),t.require&&t.require.packaged||(c.original=t.require,t.require=c,t.require.packaged=!0)}(),ace.define("ace/lib/fixoldbrowsers",["require","exports","module"],function(e,t,i){"use strict";"undefined"==typeof Element||Element.prototype.remove||Object.defineProperty(Element.prototype,"remove",{enumerable:!1,writable:!0,configurable:!0,value:function(){this.parentNode&&this.parentNode.removeChild(this)}})}),ace.define("ace/lib/useragent",["require","exports","module"],function(e,t,i){"use strict";t.OS={LINUX:"LINUX",MAC:"MAC",WINDOWS:"WINDOWS"},t.getOS=function(){return t.isMac?t.OS.MAC:t.isLinux?t.OS.LINUX:t.OS.WINDOWS};var n="object"==typeof navigator?navigator:{},r=(/mac|win|linux/i.exec(n.platform)||["other"])[0].toLowerCase(),s=n.userAgent||"",n=n.appName||"";t.isWin="win"==r,t.isMac="mac"==r,t.isLinux="linux"==r,t.isIE="Microsoft Internet Explorer"==n||0<=n.indexOf("MSAppHost")?parseFloat((s.match(/(?:MSIE |Trident\/[0-9]+[\.0-9]+;.*rv:)([0-9]+[\.0-9]+)/)||[])[1]):parseFloat((s.match(/(?:Trident\/[0-9]+[\.0-9]+;.*rv:)([0-9]+[\.0-9]+)/)||[])[1]),t.isOldIE=t.isIE&&t.isIE<9,t.isGecko=t.isMozilla=s.match(/ Gecko\/\d+/),t.isOpera="object"==typeof opera&&"[object Opera]"==Object.prototype.toString.call(window.opera),t.isWebKit=parseFloat(s.split("WebKit/")[1])||void 0,t.isChrome=parseFloat(s.split(" Chrome/")[1])||void 0,t.isEdge=parseFloat(s.split(" Edge/")[1])||void 0,t.isAIR=0<=s.indexOf("AdobeAIR"),t.isAndroid=0<=s.indexOf("Android"),t.isChromeOS=0<=s.indexOf(" CrOS "),t.isIOS=/iPad|iPhone|iPod/.test(s)&&!window.MSStream,t.isIOS&&(t.isMac=!0),t.isMobile=t.isIOS||t.isAndroid}),ace.define("ace/lib/dom",["require","exports","module","ace/lib/useragent"],function(e,s,t){"use strict";var i,e=e("./useragent");s.buildDom=function e(t,i,n){if("string"==typeof t&&t)return c=document.createTextNode(t),i&&i.appendChild(c),c;if(!Array.isArray(t))return t&&t.appendChild&&i&&i.appendChild(t),t;if("string"!=typeof t[0]||!t[0]){for(var r=[],s=0;s<t.length;s++){var a=e(t[s],i,n);a&&r.push(a)}return r}for(var o=document.createElement(t[0]),l=t[1],c=1,s=c=l&&"object"==typeof l&&!Array.isArray(l)?2:c;s<t.length;s++)e(t[s],o,n);return 2==c&&Object.keys(l).forEach(function(e){var t=l[e];"class"===e?o.className=Array.isArray(t)?t.join(" "):t:"function"==typeof t||"value"==e||"$"==e[0]?o[e]=t:"ref"===e?n&&(n[t]=o):null!=t&&o.setAttribute(e,t)}),i&&i.appendChild(o),o},s.getDocumentHead=function(e){return(e=e||document).head||e.getElementsByTagName("head")[0]||e.documentElement},s.createElement=function(e,t){return document.createElementNS?document.createElementNS(t||"http://www.w3.org/1999/xhtml",e):document.createElement(e)},s.removeChildren=function(e){e.innerHTML=""},s.createTextNode=function(e,t){return(t?t.ownerDocument:document).createTextNode(e)},s.createFragment=function(e){return(e?e.ownerDocument:document).createDocumentFragment()},s.hasCssClass=function(e,t){return-1!==(e.className+"").split(/\s+/g).indexOf(t)},s.addCssClass=function(e,t){s.hasCssClass(e,t)||(e.className+=" "+t)},s.removeCssClass=function(e,t){for(var i=e.className.split(/\s+/g);;){var n=i.indexOf(t);if(-1==n)break;i.splice(n,1)}e.className=i.join(" ")},s.toggleCssClass=function(e,t){for(var i=e.className.split(/\s+/g),n=!0;;){var r=i.indexOf(t);if(-1==r)break;n=!1,i.splice(r,1)}return n&&i.push(t),e.className=i.join(" "),n},s.setCssClass=function(e,t,i){i?s.addCssClass(e,t):s.removeCssClass(e,t)},s.hasCssString=function(e,t){var i,n=0;if(i=(t=t||document).querySelectorAll("style"))for(;n<i.length;)if(i[n++].id===e)return!0},s.importCssString=function(e,t,i){var n=i,i=(n=i&&i.getRootNode&&(n=i.getRootNode())&&n!=i?n:document).ownerDocument||n;if(t&&s.hasCssString(t,n))return null;t&&(e+="\n/*# sourceURL=ace/css/"+t+" */");var r=s.createElement("style");r.appendChild(i.createTextNode(e)),t&&(r.id=t),(n=n==i?s.getDocumentHead(i):n).insertBefore(r,n.firstChild)},s.importCssStylsheet=function(e,t){s.buildDom(["link",{rel:"stylesheet",href:e}],s.getDocumentHead(t))},s.scrollbarWidth=function(e){var t=s.createElement("ace_inner"),i=(t.style.width="100%",t.style.minWidth="0px",t.style.height="200px",t.style.display="block",s.createElement("ace_outer")),n=i.style,e=(n.position="absolute",n.left="-10000px",n.overflow="hidden",n.width="200px",n.minWidth="0px",n.height="150px",n.display="block",i.appendChild(t),e.documentElement),r=(e.appendChild(i),t.offsetWidth),n=(n.overflow="scroll",t.offsetWidth);return r==n&&(n=i.clientWidth),e.removeChild(i),r-n},"undefined"==typeof document&&(s.importCssString=function(){}),s.computedStyle=function(e,t){return window.getComputedStyle(e,"")||{}},s.setStyle=function(e,t,i){e[t]!==i&&(e[t]=i)},s.HAS_CSS_ANIMATION=!1,s.HAS_CSS_TRANSFORMS=!1,s.HI_DPI=!e.isWin||"undefined"!=typeof window&&1.5<=window.devicePixelRatio,"undefined"!=typeof document&&(i=document.createElement("div"),s.HI_DPI&&void 0!==i.style.transform&&(s.HAS_CSS_TRANSFORMS=!0),e.isEdge||void 0===i.style.animationName||(s.HAS_CSS_ANIMATION=!0),i=null),s.HAS_CSS_TRANSFORMS?s.translate=function(e,t,i){e.style.transform="translate("+Math.round(t)+"px, "+Math.round(i)+"px)"}:s.translate=function(e,t,i){e.style.top=Math.round(i)+"px",e.style.left=Math.round(t)+"px"}}),ace.define("ace/lib/oop",["require","exports","module"],function(e,i,t){"use strict";i.inherits=function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})},i.mixin=function(e,t){for(var i in t)e[i]=t[i];return e},i.implement=function(e,t){i.mixin(e,t)}}),ace.define("ace/lib/keys",["require","exports","module","ace/lib/oop"],function(e,t,i){"use strict";var s=e("./oop"),n=function(){var e,t,i={MODIFIER_KEYS:{16:"Shift",17:"Ctrl",18:"Alt",224:"Meta",91:"MetaLeft",92:"MetaRight",93:"ContextMenu"},KEY_MODS:{ctrl:1,alt:2,option:2,shift:4,super:8,meta:8,command:8,cmd:8,control:1},FUNCTION_KEYS:{8:"Backspace",9:"Tab",13:"Return",19:"Pause",27:"Esc",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",44:"Print",45:"Insert",46:"Delete",96:"Numpad0",97:"Numpad1",98:"Numpad2",99:"Numpad3",100:"Numpad4",101:"Numpad5",102:"Numpad6",103:"Numpad7",104:"Numpad8",105:"Numpad9","-13":"NumpadEnter",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"Numlock",145:"Scrolllock"},PRINTABLE_KEYS:{32:" ",48:"0",49:"1",50:"2",51:"3",52:"4",53:"5",54:"6",55:"7",56:"8",57:"9",59:";",61:"=",65:"a",66:"b",67:"c",68:"d",69:"e",70:"f",71:"g",72:"h",73:"i",74:"j",75:"k",76:"l",77:"m",78:"n",79:"o",80:"p",81:"q",82:"r",83:"s",84:"t",85:"u",86:"v",87:"w",88:"x",89:"y",90:"z",107:"+",109:"-",110:".",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",111:"/",106:"*"}};for(t in i.FUNCTION_KEYS)e=i.FUNCTION_KEYS[t].toLowerCase(),i[e]=parseInt(t,10);for(t in i.PRINTABLE_KEYS)e=i.PRINTABLE_KEYS[t].toLowerCase(),i[e]=parseInt(t,10);s.mixin(i,i.MODIFIER_KEYS),s.mixin(i,i.PRINTABLE_KEYS),s.mixin(i,i.FUNCTION_KEYS),i.enter=i.return,i.escape=i.esc,i.del=i.delete,i[173]="-";for(var n=["cmd","ctrl","alt","shift"],r=Math.pow(2,n.length);r--;)i.KEY_MODS[r]=n.filter(function(e){return r&i.KEY_MODS[e]}).join("-")+"-";return i.KEY_MODS[0]="",i.KEY_MODS[-1]="input-",i}();s.mixin(t,n),t.keyCodeToString=function(e){var t=n[e];return(t="string"!=typeof t?String.fromCharCode(e):t).toLowerCase()}}),ace.define("ace/lib/event",["require","exports","module","ace/lib/keys","ace/lib/useragent"],function(e,u,t){"use strict";function r(){if(null==i){i=!1;try{document.createComment("").addEventListener("test",function(){},{get passive(){i={passive:!1}}})}catch(e){}}return i}function s(e,t,i){this.elem=e,this.type=t,this.callback=i}function a(e,t,i){var n=l(t);if(!d.isMac&&p){if(t.getModifierState&&(t.getModifierState("OS")||t.getModifierState("Win"))&&(n|=8),p.altGr){if(3==(3&n))return;p.altGr=0}18!==i&&17!==i||(r="location"in t?t.location:t.keyLocation,17===i&&1===r?1==p[i]&&(g=t.timeStamp):18===i&&3===n&&2===r&&t.timeStamp-g<50&&(p.altGr=!0))}if(i in h.MODIFIER_KEYS&&(i=-1),!n&&13===i){var r="location"in t?t.location:t.keyLocation;if(3===r&&(e(t,n,-i),t.defaultPrevented))return}if(d.isChromeOS&&8&n){if(e(t,n,i),t.defaultPrevented)return;n&=-9}return!!(n||i in h.FUNCTION_KEYS||i in h.PRINTABLE_KEYS)&&e(t,n,i)}function o(){p=Object.create(null)}function l(e){return 0|(e.ctrlKey?1:0)|(e.altKey?2:0)|(e.shiftKey?4:0)|(e.metaKey?8:0)}var i,c,h=e("./keys"),d=e("./useragent"),p=null,g=0,f=(s.prototype.destroy=function(){m(this.elem,this.type,this.callback),this.elem=this.type=this.callback=void 0},u.addListener=function(e,t,i,n){e.addEventListener(t,i,r()),n&&n.$toDestroy.push(new s(e,t,i))}),m=u.removeListener=function(e,t,i){e.removeEventListener(t,i,r())};u.stopEvent=function(e){return u.stopPropagation(e),u.preventDefault(e),!1},u.stopPropagation=function(e){e.stopPropagation&&e.stopPropagation()},u.preventDefault=function(e){e.preventDefault&&e.preventDefault()},u.getButton=function(e){return"dblclick"==e.type?0:"contextmenu"==e.type||d.isMac&&e.ctrlKey&&!e.altKey&&!e.shiftKey?2:e.button},u.capture=function(e,t,i){function n(e){t&&t(e),i&&i(e),m(r,"mousemove",t),m(r,"mouseup",n),m(r,"dragstart",n)}var r=e&&e.ownerDocument||document;return f(r,"mousemove",t),f(r,"mouseup",n),f(r,"dragstart",n),n},u.addMouseWheelListener=function(e,t,i){"onmousewheel"in e?f(e,"mousewheel",function(e){void 0!==e.wheelDeltaX?(e.wheelX=-e.wheelDeltaX/8,e.wheelY=-e.wheelDeltaY/8):(e.wheelX=0,e.wheelY=-e.wheelDelta/8),t(e)},i):"onwheel"in e?f(e,"wheel",function(e){switch(e.deltaMode){case e.DOM_DELTA_PIXEL:e.wheelX=.35*e.deltaX||0,e.wheelY=.35*e.deltaY||0;break;case e.DOM_DELTA_LINE:case e.DOM_DELTA_PAGE:e.wheelX=5*(e.deltaX||0),e.wheelY=5*(e.deltaY||0)}t(e)},i):f(e,"DOMMouseScroll",function(e){e.axis&&e.axis==e.HORIZONTAL_AXIS?(e.wheelX=5*(e.detail||0),e.wheelY=0):(e.wheelX=0,e.wheelY=5*(e.detail||0)),t(e)},i)},u.addMultiMouseDownListener=function(e,i,n,r,t){function s(e){var t;if(0!==u.getButton(e)?c=0:1<e.detail&&!(4<++c)||(c=1),d.isIE&&(t=5<Math.abs(e.clientX-a)||5<Math.abs(e.clientY-o),l&&!t||(c=1),l&&clearTimeout(l),l=setTimeout(function(){l=null},i[c-1]||600),1==c)&&(a=e.clientX,o=e.clientY),e._clicks=c,n[r]("mousedown",e),4<c)c=0;else if(1<c)return n[r](h[c],e)}var a,o,l,c=0,h={2:"dblclick",3:"tripleclick",4:"quadclick"};(e=Array.isArray(e)?e:[e]).forEach(function(e){f(e,"mousedown",s,t)})};u.getModifierString=function(e){return h.KEY_MODS[l(e)]},u.addCommandKeyListener=function(e,i,t){var n,r;d.isOldGecko||d.isOpera&&!("KeyboardEvent"in window)?(n=null,f(e,"keydown",function(e){n=e.keyCode},t),f(e,"keypress",function(e){return a(i,e,n)},t)):(r=null,f(e,"keydown",function(e){p[e.keyCode]=(p[e.keyCode]||0)+1;var t=a(i,e,e.keyCode);return r=e.defaultPrevented,t},t),f(e,"keypress",function(e){r&&(e.ctrlKey||e.altKey||e.shiftKey||e.metaKey)&&(u.stopEvent(e),r=null)},t),f(e,"keyup",function(e){p[e.keyCode]=null},t),p||(o(),f(window,"focus",o)))},"object"==typeof window&&window.postMessage&&!d.isOldIE&&(c=1,u.nextTick=function(t,i){i=i||window;function n(e){e.data==r&&(u.stopPropagation(e),m(i,"message",n),t())}var r="zero-timeout-message-"+c++;f(i,"message",n),i.postMessage(r,"*")}),u.$idleBlocked=!1,u.onIdle=function(t,e){return setTimeout(function e(){u.$idleBlocked?setTimeout(e,100):t()},e)},u.$idleBlockId=null,u.blockIdle=function(e){u.$idleBlockId&&clearTimeout(u.$idleBlockId),u.$idleBlocked=!0,u.$idleBlockId=setTimeout(function(){u.$idleBlocked=!1},e||100)},u.nextFrame="object"==typeof window&&(window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame||window.oRequestAnimationFrame),u.nextFrame?u.nextFrame=u.nextFrame.bind(window):u.nextFrame=function(e){setTimeout(e,17)}}),ace.define("ace/range",["require","exports","module"],function(e,t,i){"use strict";function s(e,t,i,n){this.start={row:e,column:t},this.end={row:i,column:n}}(function(){this.isEqual=function(e){return this.start.row===e.start.row&&this.end.row===e.end.row&&this.start.column===e.start.column&&this.end.column===e.end.column},this.toString=function(){return"Range: ["+this.start.row+"/"+this.start.column+"] -> ["+this.end.row+"/"+this.end.column+"]"},this.contains=function(e,t){return 0==this.compare(e,t)},this.compareRange=function(e){var t=e.end,e=e.start,t=this.compare(t.row,t.column);return 1==t?1==(t=this.compare(e.row,e.column))?2:0==t?1:0:-1==t?-2:-1==(t=this.compare(e.row,e.column))?-1:1==t?42:0},this.comparePoint=function(e){return this.compare(e.row,e.column)},this.containsRange=function(e){return 0==this.comparePoint(e.start)&&0==this.comparePoint(e.end)},this.intersects=function(e){e=this.compareRange(e);return-1==e||0==e||1==e},this.isEnd=function(e,t){return this.end.row==e&&this.end.column==t},this.isStart=function(e,t){return this.start.row==e&&this.start.column==t},this.setStart=function(e,t){"object"==typeof e?(this.start.column=e.column,this.start.row=e.row):(this.start.row=e,this.start.column=t)},this.setEnd=function(e,t){"object"==typeof e?(this.end.column=e.column,this.end.row=e.row):(this.end.row=e,this.end.column=t)},this.inside=function(e,t){return 0==this.compare(e,t)&&!this.isEnd(e,t)&&!this.isStart(e,t)},this.insideStart=function(e,t){return 0==this.compare(e,t)&&!this.isEnd(e,t)},this.insideEnd=function(e,t){return 0==this.compare(e,t)&&!this.isStart(e,t)},this.compare=function(e,t){return this.isMultiLine()||e!==this.start.row?e<this.start.row?-1:e>this.end.row?1:this.start.row===e?t>=this.start.column?0:-1:this.end.row!==e||t<=this.end.column?0:1:t<this.start.column?-1:t>this.end.column?1:0},this.compareStart=function(e,t){return this.start.row==e&&this.start.column==t?-1:this.compare(e,t)},this.compareEnd=function(e,t){return this.end.row==e&&this.end.column==t?1:this.compare(e,t)},this.compareInside=function(e,t){return this.end.row==e&&this.end.column==t?1:this.start.row==e&&this.start.column==t?-1:this.compare(e,t)},this.clipRows=function(e,t){var i,n;return this.end.row>t?i={row:t+1,column:0}:this.end.row<e&&(i={row:e,column:0}),this.start.row>t?n={row:t+1,column:0}:this.start.row<e&&(n={row:e,column:0}),s.fromPoints(n||this.start,i||this.end)},this.extend=function(e,t){var i,n,r=this.compare(e,t);return 0==r?this:(-1==r?i={row:e,column:t}:n={row:e,column:t},s.fromPoints(i||this.start,n||this.end))},this.isEmpty=function(){return this.start.row===this.end.row&&this.start.column===this.end.column},this.isMultiLine=function(){return this.start.row!==this.end.row},this.clone=function(){return s.fromPoints(this.start,this.end)},this.collapseRows=function(){return 0==this.end.column?new s(this.start.row,0,Math.max(this.start.row,this.end.row-1),0):new s(this.start.row,0,this.end.row,0)},this.toScreenRange=function(e){var t=e.documentToScreenPosition(this.start),e=e.documentToScreenPosition(this.end);return new s(t.row,t.column,e.row,e.column)},this.moveBy=function(e,t){this.start.row+=e,this.start.column+=t,this.end.row+=e,this.end.column+=t}}).call(s.prototype),s.fromPoints=function(e,t){return new s(e.row,e.column,t.row,t.column)},s.comparePoints=function(e,t){return e.row-t.row||e.column-t.column},s.comparePoints=function(e,t){return e.row-t.row||e.column-t.column},t.Range=s}),ace.define("ace/lib/lang",["require","exports","module"],function(e,t,i){"use strict";t.last=function(e){return e[e.length-1]},t.stringReverse=function(e){return e.split("").reverse().join("")},t.stringRepeat=function(e,t){for(var i="";0<t;)1&t&&(i+=e),(t>>=1)&&(e+=e);return i};var n=/^\s\s*/,r=/\s\s*$/;t.stringTrimLeft=function(e){return e.replace(n,"")},t.stringTrimRight=function(e){return e.replace(r,"")},t.copyObject=function(e){var t,i={};for(t in e)i[t]=e[t];return i},t.copyArray=function(e){for(var t=[],i=0,n=e.length;i<n;i++)e[i]&&"object"==typeof e[i]?t[i]=this.copyObject(e[i]):t[i]=e[i];return t},t.deepCopy=function e(t){if("object"!=typeof t||!t)return t;if(Array.isArray(t))for(var i=[],n=0;n<t.length;n++)i[n]=e(t[n]);else{if("[object Object]"!==Object.prototype.toString.call(t))return t;for(var n in i={},t)i[n]=e(t[n])}return i},t.arrayToMap=function(e){for(var t={},i=0;i<e.length;i++)t[e[i]]=1;return t},t.createMap=function(e){var t,i=Object.create(null);for(t in e)i[t]=e[t];return i},t.arrayRemove=function(e,t){for(var i=0;i<=e.length;i++)t===e[i]&&e.splice(i,1)},t.escapeRegExp=function(e){return e.replace(/([.*+?^${}()|[\]\/\\])/g,"\\$1")},t.escapeHTML=function(e){return(""+e).replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(/</g,"<")},t.getMatchOffsets=function(e,t){var i=[];return e.replace(t,function(e){i.push({offset:arguments[arguments.length-2],length:e.length})}),i},t.deferredCall=function(e){function t(){n=null,e()}function i(e){return i.cancel(),n=setTimeout(t,e||0),i}var n=null;return(i.schedule=i).call=function(){return this.cancel(),e(),i},i.cancel=function(){return clearTimeout(n),n=null,i},i.isPending=function(){return n},i},t.delayedCall=function(e,t){function i(){r=null,e()}function n(e){null==r&&(r=setTimeout(i,e||t))}var r=null;return n.delay=function(e){r&&clearTimeout(r),r=setTimeout(i,e||t)},(n.schedule=n).call=function(){this.cancel(),e()},n.cancel=function(){r&&clearTimeout(r),r=null},n.isPending=function(){return r},n}}),ace.define("ace/clipboard",["require","exports","module"],function(e,t,i){"use strict";var n;i.exports={lineMode:!1,pasteCancelled:function(){return!!(n&&n>Date.now()-50)||(n=!1)},cancel:function(){n=Date.now()}}}),ace.define("ace/keyboard/textinput",["require","exports","module","ace/lib/event","ace/lib/useragent","ace/lib/dom","ace/lib/lang","ace/clipboard","ace/lib/keys"],function(e,t,i){"use strict";var B=e("../lib/event"),F=e("../lib/useragent"),j=e("../lib/dom"),z=e("../lib/lang"),H=e("../clipboard"),U=F.isChrome<18,q=F.isIE,W=63<F.isChrome,V=e("../lib/keys"),G=V.KEY_MODS,Y=F.isIOS,X=Y?/\s/:/\n/,K=F.isMobile;t.TextInput=function(e,u){function t(){i=!0,d.blur(),d.focus(),i=!1}function o(){clearTimeout(R),R=setTimeout(function(){l&&(d.style.cssText=l,l=""),u.renderer.$isMousePressed=!1,u.renderer.$keepTextAreaAtCursor&&u.renderer.$moveTextAreaToCursor()},0)}var d=j.createElement("textarea"),s=(d.className="ace_text-input",d.setAttribute("wrap","off"),d.setAttribute("autocorrect","off"),d.setAttribute("autocapitalize","off"),d.setAttribute("spellcheck",!1),d.style.opacity="0",e.insertBefore(d,e.firstChild),!1),p=!1,a=!1,g=!1,l="",f=(K||(d.style.fontSize="1px"),!1),i=!1,m="",y=0,b=0,v=0;try{var c=document.activeElement===d}catch(e){}B.addListener(d,"blur",function(e){i||(u.onBlur(e),c=!1)},u),B.addListener(d,"focus",function(e){if(!i){if(c=!0,F.isEdge)try{if(!document.hasFocus())return}catch(e){}u.onFocus(e),F.isEdge?setTimeout(x):x()}},u),this.$focusScroll=!1,this.focus=function(){if(l||W||"browser"==this.$focusScroll)return d.focus({preventScroll:!0});var e=d.style.top;d.style.position="fixed",d.style.top="0px";try{var t=0!=d.getBoundingClientRect().top}catch(e){return}var i=[];if(t)for(var n=d.parentElement;n&&1==n.nodeType;)i.push(n),n.setAttribute("ace_nocontext",!0),n=!n.parentElement&&n.getRootNode?n.getRootNode().host:n.parentElement;d.focus({preventScroll:!0}),t&&i.forEach(function(e){e.removeAttribute("ace_nocontext")}),setTimeout(function(){d.style.position="","0px"==d.style.top&&(d.style.top=e)},0)},this.blur=function(){d.blur()},this.isFocused=function(){return c},u.on("beforeEndOperation",function(){var e=u.curOp,t=e&&e.command&&e.command.name;"insertstring"!=t&&(t=t&&(e.docChanged||e.selectionChanged),a&&t&&(m=d.value="",E()),x())});function n(e){C(e,!0)}function r(e){C(e,!1)}function h(e){var t=_(e);H.pasteCancelled()||("string"==typeof t?(t&&u.onPaste(t,e),F.isIE&&setTimeout(x),B.preventDefault(e)):(d.value="",p=!0))}var x=Y?function(e){var t;!c||s&&!e||g||((t="\n ab"+(e=e||"")+"cde fg\n")!=d.value&&(d.value=m=t),t=4+(e.length||(u.selection.isEmpty()?0:1)),4==y&&b==t||d.setSelectionRange(4,t),y=4,b=t)}:function(){if(!a&&!g&&(c||k)){a=!0;var e,t,i=0,n=0,r="",s=(u.session&&(s=(e=u.selection).getRange(),e=e.cursor.row,i=s.start.column,n=s.end.column,r=u.session.getLine(e),s.start.row!=e?(t=u.session.getLine(e-1),i=s.start.row<e-1?0:i,n+=t.length+1,r=t+"\n"+r):s.end.row!=e?(t=u.session.getLine(e+1),n=s.end.row>e+1?t.length:n,n+=r.length+1,r=r+"\n"+t):K&&0<e&&(r="\n"+r,n+=1,i+=1),400<r.length)&&(i<400&&n<400?r=r.slice(0,400):(r="\n",i==n?i=n=0:(i=0,n=1))),r+"\n\n");if(s!=m&&(d.value=m=s,y=b=s.length),k&&(y=d.selectionStart,b=d.selectionEnd),b!=n||y!=i||d.selectionEnd!=b)try{d.setSelectionRange(i,n),y=i,b=n}catch(e){}a=!1}},O=(this.resetSelection=x,c&&u.onFocus(),function(e){return 0===e.selectionStart&&e.selectionEnd>=m.length&&e.value===m&&m&&e.selectionEnd!==b}),w=null,k=(this.setInputHandler=function(e){w=e},!(this.getInputHandler=function(){return w})),T=function(e,t){if(k=k&&!1,p)return x(),e&&u.onPaste(e),p=!1,"";for(var i=d.selectionStart,n=d.selectionEnd,r=y,s=m.length-b,a=e,o=e.length-i,l=e.length-n,c=0;0<r&&m[c]==e[c];)c++,r--;for(a=a.slice(c),c=1;0<s&&m.length-c>y-1&&m[m.length-c]==e[e.length-c];)c++,s--;o-=c-1,l-=c-1;var h=a.length-c+1;return h<0&&(r=-h,h=0),a=a.slice(0,h),t||a||o||r||s||l?(h=!(g=!0),F.isAndroid&&". "==a&&(a=" ",h=!0),a&&!r&&!s&&!o&&!l||f?u.onTextInput(a):u.onTextInput(a,{extendLeft:r,extendRight:s,restoreStart:o,restoreEnd:l}),g=!1,m=e,y=i,b=n,v=l,h?"\n":a):""},S=function(e){if(a)return A();if(e&&e.inputType){if("historyUndo"==e.inputType)return u.execCommand("undo");if("historyRedo"==e.inputType)return u.execCommand("redo")}var e=d.value,t=T(e,!0);(500<e.length||X.test(t)||K&&y<1&&y==b)&&x()},_=function(e,t,i){var n=e.clipboardData||window.clipboardData;if(n&&!U){var r=q||i?"Text":"text/plain";try{return t?!1!==n.setData(r,t):n.getData(r)}catch(e){if(!i)return _(e,t,!0)}}},C=function(e,t){var i=u.getCopyText();if(!i)return B.preventDefault(e);_(e,i)?(Y&&(x(i),s=i,setTimeout(function(){s=!1},10)),t?u.onCut():u.onCopy(),B.preventDefault(e)):(s=!0,d.value=i,d.select(),setTimeout(function(){s=!1,x(),t?u.onCut():u.onCopy()}))},A=(B.addCommandKeyListener(d,u.onCommandKey.bind(u),u),B.addListener(d,"select",function(e){a||(s?s=!1:O(d)?(u.selectAll(),x()):K&&d.selectionStart!=y&&x())},u),B.addListener(d,"input",S,u),B.addListener(d,"cut",n,u),B.addListener(d,"copy",r,u),B.addListener(d,"paste",h,u),"oncut"in d&&"oncopy"in d&&"onpaste"in d||B.addListener(e,"keydown",function(e){if((!F.isMac||e.metaKey)&&e.ctrlKey)switch(e.keyCode){case 67:r(e);break;case 86:h(e);break;case 88:n(e)}},u),function(){var e;if(a&&u.onCompositionUpdate&&!u.$readOnly)return f?t():void(a.useTextareaForIME?u.onCompositionUpdate(d.value):(e=d.value,T(e),a.markerRange&&(a.context&&(a.markerRange.start.column=a.selectionStart=a.context.compositionStartOffset),a.markerRange.end.column=a.markerRange.start.column+b-a.selectionStart+v)))}),E=function(e){u.onCompositionEnd&&!u.$readOnly&&(a=!1,u.onCompositionEnd(),u.off("mousedown",t),e)&&S()},$=z.delayedCall(A,50).schedule.bind(null,null);B.addListener(d,"compositionstart",function(e){a||!u.onCompositionStart||u.$readOnly||(a={},f)||(e.data&&(a.useTextareaForIME=!1),setTimeout(A,0),u._signal("compositionStart"),u.on("mousedown",t),(e=u.getSelectionRange()).end.row=e.start.row,e.end.column=e.start.column,a.markerRange=e,a.selectionStart=y,u.onCompositionStart(a),a.useTextareaForIME?(m=d.value="",b=y=0):(d.msGetInputContext&&(a.context=d.msGetInputContext()),d.getInputContext&&(a.context=d.getInputContext())))},u),B.addListener(d,"compositionupdate",A,u),B.addListener(d,"keyup",function(e){27==e.keyCode&&d.value.length<d.selectionStart&&(a||(m=d.value),y=b=-1,x()),$()},u),B.addListener(d,"keydown",$,u),B.addListener(d,"compositionend",E,u),this.getElement=function(){return d},this.setCommandMode=function(e){f=e,d.readOnly=!1},this.setReadOnly=function(e){f||(d.readOnly=e)},this.setCopyWithEmptySelection=function(e){},this.onContextMenu=function(e){k=!0,x(),u._emit("nativecontextmenu",{target:u,domEvent:e}),this.moveToMouse(e,!0)},this.moveToMouse=function(e,t){l=l||d.style.cssText,d.style.cssText=(t?"z-index:100000;":"")+(F.isIE?"opacity:0.1;":"")+"text-indent: -"+(y+b)*u.renderer.characterWidth*.5+"px;";function i(e){j.translate(d,e.clientX-s-2,Math.min(e.clientY-r-2,a))}var t=u.container.getBoundingClientRect(),n=j.computedStyle(u.container),r=t.top+(parseInt(n.borderTopWidth)||0),s=t.left+(parseInt(t.borderLeftWidth)||0),a=t.bottom-r-d.clientHeight-2;i(e),"mousedown"==e.type&&(u.renderer.$isMousePressed=!0,clearTimeout(R),F.isWin)&&B.capture(u.container,i,o)},this.onContextMenuClose=o;function L(e){u.textInput.onContextMenu(e),o()}var R,M,I,N,D;function P(e){var t,i,n,r;document.activeElement!==I||D||a||M.$mouseHandler.isMousePressed||s||(t=I.selectionStart,i=I.selectionEnd,n=null,(r=0)==t?n=V.up:1==t?n=V.home:b<i&&"\n"==m[i]?n=V.end:t<y&&" "==m[t-1]?(n=V.left,r=G.option):t<y||t==y&&b!=y&&t==i?n=V.left:b<i&&2<m.slice(0,i).split("\n").length?n=V.down:b<i&&" "==m[i-1]?(n=V.right,r=G.option):(b<i||i==b&&b!=y&&t==i)&&(n=V.right),t!==i&&(r|=G.shift),n&&(!M.onCommandKey({},r,n)&&M.commands&&(n=V.keyCodeToString(n),r=M.commands.findKeyCommand(r,n))&&M.execCommand(r),y=t,b=i,x("")))}B.addListener(d,"mouseup",L,u),B.addListener(d,"mousedown",function(e){e.preventDefault(),o()},u),B.addListener(u.renderer.scroller,"contextmenu",L,u),B.addListener(d,"contextmenu",L,u),Y&&(M=u,N=null,D=!1,(I=d).addEventListener("keydown",function(e){N&&clearTimeout(N),D=!0},!0),I.addEventListener("keyup",function(e){N=setTimeout(function(){D=!1},100)},!0),document.addEventListener("selectionchange",P),M.on("destroy",function(){document.removeEventListener("selectionchange",P)}))},t.$setUserAgentForTests=function(e,t){K=e,Y=t}}),ace.define("ace/mouse/default_handlers",["require","exports","module","ace/lib/useragent"],function(e,t,i){"use strict";function n(t){t.$clickSelection=null;var e=t.editor;e.setDefaultHandler("mousedown",this.onMouseDown.bind(t)),e.setDefaultHandler("dblclick",this.onDoubleClick.bind(t)),e.setDefaultHandler("tripleclick",this.onTripleClick.bind(t)),e.setDefaultHandler("quadclick",this.onQuadClick.bind(t)),e.setDefaultHandler("mousewheel",this.onMouseWheel.bind(t));["select","startSelect","selectEnd","selectAllEnd","selectByWordsEnd","selectByLinesEnd","dragWait","dragWaitEnd","focusWait"].forEach(function(e){t[e]=this[e]},this),t.selectByLines=this.extendSelectionBy.bind(t,"getLineRange"),t.selectByWords=this.extendSelectionBy.bind(t,"getWordRange")}function a(e,t){return(e.start.row==e.end.row?2*t.column-e.start.column-e.end.column:e.start.row!=e.end.row-1||e.start.column||e.end.column?2*t.row-e.start.row-e.end.row:t.column-4)<0?{cursor:e.start,anchor:e.end}:{cursor:e.end,anchor:e.start}}var s=e("../lib/useragent");(function(){this.onMouseDown=function(e){var t=e.inSelection(),i=e.getDocumentPosition(),n=(this.mousedownEvent=e,this.editor),r=e.getButton();if(0!==r)!n.getSelectionRange().isEmpty()&&1!=r||n.selection.moveToPosition(i),2==r&&(n.textInput.onContextMenu(e.domEvent),s.isMozilla||e.preventDefault());else{if(this.mousedownEvent.time=Date.now(),!t||n.isFocused()||(n.focus(),!this.$focusTimeout)||this.$clickSelection||n.inMultiSelectMode)return this.captureMouse(e),this.startSelect(i,1<e.domEvent._clicks),e.preventDefault();this.setState("focusWait"),this.captureMouse(e)}},this.startSelect=function(e,t){e=e||this.editor.renderer.screenToTextCoordinates(this.x,this.y);var i=this.editor;this.mousedownEvent&&(this.mousedownEvent.getShiftKey()?i.selection.selectToPosition(e):t||i.selection.moveToPosition(e),t||this.select(),i.renderer.scroller.setCapture&&i.renderer.scroller.setCapture(),i.setStyle("ace_selecting"),this.setState("select"))},this.select=function(){var e,t=this.editor,i=t.renderer.screenToTextCoordinates(this.x,this.y);this.$clickSelection&&(e=-1==(e=this.$clickSelection.comparePoint(i))?this.$clickSelection.end:1==e?this.$clickSelection.start:(i=(e=a(this.$clickSelection,i)).cursor,e.anchor),t.selection.setSelectionAnchor(e.row,e.column)),t.selection.selectToPosition(i),t.renderer.scrollCursorIntoView()},this.extendSelectionBy=function(e){var t,i,n,r=this.editor,s=r.renderer.screenToTextCoordinates(this.x,this.y),e=r.selection[e](s.row,s.column);this.$clickSelection&&(i=this.$clickSelection.comparePoint(e.start),t=this.$clickSelection.comparePoint(e.end),-1==i&&t<=0?(n=this.$clickSelection.end,e.end.row==s.row&&e.end.column==s.column||(s=e.start)):1==t&&0<=i?(n=this.$clickSelection.start,e.start.row==s.row&&e.start.column==s.column||(s=e.end)):n=-1==i&&1==t?(s=e.end,e.start):(s=(i=a(this.$clickSelection,s)).cursor,i.anchor),r.selection.setSelectionAnchor(n.row,n.column)),r.selection.selectToPosition(s),r.renderer.scrollCursorIntoView()},this.selectEnd=this.selectAllEnd=this.selectByWordsEnd=this.selectByLinesEnd=function(){this.$clickSelection=null,this.editor.unsetStyle("ace_selecting"),this.editor.renderer.scroller.releaseCapture&&this.editor.renderer.scroller.releaseCapture()},this.focusWait=function(){n=this.mousedownEvent.x,e=this.mousedownEvent.y,i=this.x,t=this.y;var e,t,i=Math.sqrt(Math.pow(i-n,2)+Math.pow(t-e,2)),n=Date.now();(0<i||n-this.mousedownEvent.time>this.$focusTimeout)&&this.startSelect(this.mousedownEvent.getDocumentPosition())},this.onDoubleClick=function(e){var e=e.getDocumentPosition(),t=this.editor,i=t.session.getBracketRange(e);i?(i.isEmpty()&&(i.start.column--,i.end.column++),this.setState("select")):(i=t.selection.getWordRange(e.row,e.column),this.setState("selectByWords")),this.$clickSelection=i,this.select()},this.onTripleClick=function(e){var e=e.getDocumentPosition(),t=this.editor,i=(this.setState("selectByLines"),t.getSelectionRange());i.isMultiLine()&&i.contains(e.row,e.column)?(this.$clickSelection=t.selection.getLineRange(i.start.row),this.$clickSelection.end=t.selection.getLineRange(i.end.row).end):this.$clickSelection=t.selection.getLineRange(e.row),this.select()},this.onQuadClick=function(e){var t=this.editor;t.selectAll(),this.$clickSelection=t.getSelectionRange(),this.setState("selectAll")},this.onMouseWheel=function(e){var t,i,n,r,s,a,o;if(!e.getAccelKey())return e.getShiftKey()&&e.wheelY&&!e.wheelX&&(e.wheelX=e.wheelY,e.wheelY=0),t=this.editor,this.$lastScroll||(this.$lastScroll={t:0,vx:0,vy:0,allowed:0}),i=this.$lastScroll,r=(o=(n=e.domEvent.timeStamp)-i.t)?e.wheelX/o:i.vx,s=o?e.wheelY/o:i.vy,o<550&&(r=(r+i.vx)/2,s=(s+i.vy)/2),o=!1,1<=(a=Math.abs(r/s))&&t.renderer.isScrollableBy(e.wheelX*e.speed,0)&&(o=!0),(o=a<=1&&t.renderer.isScrollableBy(0,e.wheelY*e.speed)?!0:o)?i.allowed=n:n-i.allowed<550&&(Math.abs(r)<=1.5*Math.abs(i.vx)&&Math.abs(s)<=1.5*Math.abs(i.vy)?(o=!0,i.allowed=n):i.allowed=0),i.t=n,i.vx=r,i.vy=s,o?(t.renderer.scrollBy(e.wheelX*e.speed,e.wheelY*e.speed),e.stop()):void 0}}).call(n.prototype),t.DefaultHandlers=n}),ace.define("ace/tooltip",["require","exports","module","ace/lib/oop","ace/lib/dom"],function(e,t,i){"use strict";function n(e){this.isOpen=!1,this.$element=null,this.$parentNode=e}e("./lib/oop");var r=e("./lib/dom");(function(){this.$init=function(){return this.$element=r.createElement("div"),this.$element.className="ace_tooltip",this.$element.style.display="none",this.$parentNode.appendChild(this.$element),this.$element},this.getElement=function(){return this.$element||this.$init()},this.setText=function(e){this.getElement().textContent=e},this.setHtml=function(e){this.getElement().innerHTML=e},this.setPosition=function(e,t){this.getElement().style.left=e+"px",this.getElement().style.top=t+"px"},this.setClassName=function(e){r.addCssClass(this.getElement(),e)},this.show=function(e,t,i){null!=e&&this.setText(e),null!=t&&null!=i&&this.setPosition(t,i),this.isOpen||(this.getElement().style.display="block",this.isOpen=!0)},this.hide=function(){this.isOpen&&(this.getElement().style.display="none",this.isOpen=!1)},this.getHeight=function(){return this.getElement().offsetHeight},this.getWidth=function(){return this.getElement().offsetWidth},this.destroy=function(){this.isOpen=!1,this.$element&&this.$element.parentNode&&this.$element.parentNode.removeChild(this.$element)}}).call(n.prototype),t.Tooltip=n}),ace.define("ace/mouse/default_gutter_handler",["require","exports","module","ace/lib/dom","ace/lib/oop","ace/lib/event","ace/tooltip"],function(e,t,i){"use strict";function u(e){a.call(this,e)}var d=e("../lib/dom"),n=e("../lib/oop"),p=e("../lib/event"),a=e("../tooltip").Tooltip;n.inherits(u,a),function(){this.setPosition=function(e,t){var i=window.innerWidth||document.documentElement.clientWidth,n=window.innerHeight||document.documentElement.clientHeight,r=this.getWidth(),s=this.getHeight();i<(e+=15)+r&&(e-=e+r-i),n<(t+=15)+s&&(t-=20+s),a.prototype.setPosition.call(this,e,t)}}.call(u.prototype),t.GutterHandler=function(n){function r(){i=i&&clearTimeout(i),o&&(h.hide(),o=null,l._signal("hideGutterTooltip",h),l.off("mousewheel",r))}function s(e){h.setPosition(e.x,e.y)}var i,a,o,l=n.editor,c=l.renderer.$gutterLayer,h=new u(l.container);n.editor.setDefaultHandler("guttermousedown",function(e){if(l.isFocused()&&0==e.getButton()){var t=c.getRegion(e);if("foldWidgets"!=t){var t=e.getDocumentPosition().row,i=l.session.selection;if(e.getShiftKey())i.selectTo(t,0);else{if(2==e.domEvent.detail)return l.selectAll(),e.preventDefault();n.$clickSelection=l.selection.getLineRange(t)}return n.setState("selectByLines"),n.captureMouse(e),e.preventDefault()}}}),n.editor.setDefaultHandler("guttermousemove",function(e){var t=e.domEvent.target||e.domEvent.srcElement;if(d.hasCssClass(t,"ace_fold-widget"))return r();o&&n.$tooltipFollowsMouse&&s(e),a=e,i=i||setTimeout(function(){i=null,(a&&!n.isMousePressed?function(){var e=a.getDocumentPosition().row,t=c.$annotations[e];if(!t)return r();if(e==l.session.getLength()){var e=l.renderer.pixelToScreenCoordinates(0,a.y).row,i=a.$pos;if(e>l.session.documentToScreenRow(i.row,i.column))return r()}o!=t&&(o=t.text.join("<br/>"),h.setHtml(o),h.show(),l._signal("showGutterTooltip",h),l.on("mousewheel",r),n.$tooltipFollowsMouse?s(a):(e=a.domEvent.target.getBoundingClientRect(),(i=h.getElement().style).left=e.right+"px",i.top=e.bottom+"px"))}:r)()},50)}),p.addListener(l.renderer.$gutter,"mouseout",function(e){a=null,o&&(i=i||setTimeout(function(){i=null,r()},50))},l),l.on("changeSession",r)}}),ace.define("ace/mouse/mouse_event",["require","exports","module","ace/lib/event","ace/lib/useragent"],function(e,t,i){"use strict";var n=e("../lib/event"),r=e("../lib/useragent"),e=t.MouseEvent=function(e,t){this.domEvent=e,this.editor=t,this.x=this.clientX=e.clientX,this.y=this.clientY=e.clientY,this.$pos=null,this.$inSelection=null,this.propagationStopped=!1,this.defaultPrevented=!1};!function(){this.stopPropagation=function(){n.stopPropagation(this.domEvent),this.propagationStopped=!0},this.preventDefault=function(){n.preventDefault(this.domEvent),this.defaultPrevented=!0},this.stop=function(){this.stopPropagation(),this.preventDefault()},this.getDocumentPosition=function(){return this.$pos||(this.$pos=this.editor.renderer.screenToTextCoordinates(this.clientX,this.clientY),this.$pos)},this.inSelection=function(){var e,t;return null===this.$inSelection&&((e=this.editor.getSelectionRange()).isEmpty()?this.$inSelection=!1:(t=this.getDocumentPosition(),this.$inSelection=e.contains(t.row,t.column))),this.$inSelection},this.getButton=function(){return n.getButton(this.domEvent)},this.getShiftKey=function(){return this.domEvent.shiftKey},this.getAccelKey=r.isMac?function(){return this.domEvent.metaKey}:function(){return this.domEvent.ctrlKey}}.call(e.prototype)}),ace.define("ace/mouse/dragdrop_handler",["require","exports","module","ace/lib/dom","ace/lib/event","ace/lib/useragent"],function(e,t,i){"use strict";function n(t){function e(){var e,t,i,n,r,s,a,o,l=d;d=b.renderer.screenToTextCoordinates(c,h),r=d,s=l,a=Date.now(),o=!s||r.row!=s.row,s=!s||r.column!=s.column,!m||o||s?(b.moveCursorToPosition(r),m=a,y={x:c,y:h}):5<T(y.x,y.y,c,h)?m=null:200<=a-m&&(b.renderer.scrollCursorIntoView(),m=null),o=d,s=l,r=Date.now(),a=b.renderer.layerConfig.lineHeight,l=b.renderer.layerConfig.characterWidth,e=b.renderer.scroller.getBoundingClientRect(),e={x:{left:c-e.left,right:e.right-c},y:{top:h-e.top,bottom:e.bottom-h}},t=Math.min(e.x.left,e.x.right),i=Math.min(e.y.top,e.y.bottom),n={row:o.row,column:o.column},t/l<=2&&(n.column+=e.x.left<e.x.right?-3:2),i/a<=1&&(n.row+=e.y.top<e.y.bottom?-1:1),t=o.row!=n.row,l=o.column!=n.column,i=!s||o.row!=s.row,t||l&&!i?f?200<=r-f&&b.renderer.scrollCursorIntoView(n):f=r:f=null}function i(){u=b.selection.toOrientedRange(),o=b.session.addMarker(u,"ace_selection",b.getSelectionStyle()),b.clearSelection(),b.isFocused()&&b.renderer.$cursorLayer.setBlinking(!1),clearInterval(l),e(),l=setInterval(e,20),w=0,_.addListener(document,"mousemove",r)}function n(){clearInterval(l),b.session.removeMarker(o),o=null,b.selection.fromOrientedRange(u),b.isFocused()&&!g&&b.$resetCursorStyle(),w=0,m=f=d=u=null,_.removeListener(document,"mousemove",r)}function r(){null==k&&(k=setTimeout(function(){null!=k&&o&&n()},20))}function s(e){e=e.types;return!e||Array.prototype.some.call(e,function(e){return"text/plain"==e||"Text"==e})}function a(e){var t=["copy","copymove","all","uninitialized"],i=C.isMac?e.altKey:e.ctrlKey,n="uninitialized";try{n=e.dataTransfer.effectAllowed.toLowerCase()}catch(e){}var r="none";return i&&0<=t.indexOf(n)?r="copy":0<=["move","copymove","linkmove","all","uninitialized"].indexOf(n)?r="move":0<=t.indexOf(n)&&(r="copy"),r}var o,c,h,l,u,d,p,g,f,m,y,b=t.editor,v=S.createElement("img"),x=(v.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",C.isOpera&&(v.style.cssText="width:1px;height:1px;position:fixed;top:0;left:0;z-index:2147483647;opacity:0;"),["dragWait","dragWaitEnd","startDrag","dragReadyEnd","onMouseDrag"].forEach(function(e){t[e]=this[e]},this),b.on("mousedown",this.onMouseDown.bind(t)),b.container),w=0,k=(this.onDragStart=function(e){var t;if(this.cancelDrag||!x.draggable)return t=this,setTimeout(function(){t.startSelect(),t.captureMouse(e)},0),e.preventDefault();u=b.getSelectionRange();var i=e.dataTransfer;i.effectAllowed=b.getReadOnly()?"copy":"copyMove",C.isOpera&&(b.container.appendChild(v),v.scrollTop=0),i.setDragImage&&i.setDragImage(v,0,0),C.isOpera&&b.container.removeChild(v),i.clearData(),i.setData("Text",b.session.getTextRange()),g=!0,this.setState("drag")},this.onDragEnd=function(e){x.draggable=!1,g=!1,this.setState(null),b.getReadOnly()||(e=e.dataTransfer.dropEffect,p||"move"!=e||b.session.remove(b.getSelectionRange()),b.$resetCursorStyle()),this.editor.unsetStyle("ace_dragging"),this.editor.renderer.setCursorStyle("")},this.onDragEnter=function(e){if(!b.getReadOnly()&&s(e.dataTransfer))return c=e.clientX,h=e.clientY,o||i(),w++,e.dataTransfer.dropEffect=p=a(e),_.preventDefault(e)},this.onDragOver=function(e){if(!b.getReadOnly()&&s(e.dataTransfer))return c=e.clientX,h=e.clientY,o||(i(),w++),null!==k&&(k=null),e.dataTransfer.dropEffect=p=a(e),_.preventDefault(e)},this.onDragLeave=function(e){if(--w<=0&&o)return n(),p=null,_.preventDefault(e)},this.onDrop=function(e){if(d){var t=e.dataTransfer;if(g)switch(p){case"move":u=u.contains(d.row,d.column)?{start:d,end:d}:b.moveText(u,d);break;case"copy":u=b.moveText(u,d,!0)}else{t=t.getData("Text");u={start:d,end:b.session.insert(d,t)},b.focus(),p=null}return n(),_.preventDefault(e)}},_.addListener(x,"dragstart",this.onDragStart.bind(t),b),_.addListener(x,"dragend",this.onDragEnd.bind(t),b),_.addListener(x,"dragenter",this.onDragEnter.bind(t),b),_.addListener(x,"dragover",this.onDragOver.bind(t),b),_.addListener(x,"dragleave",this.onDragLeave.bind(t),b),_.addListener(x,"drop",this.onDrop.bind(t),b),null)}function T(e,t,i,n){return Math.sqrt(Math.pow(i-e,2)+Math.pow(n-t,2))}var S=e("../lib/dom"),_=e("../lib/event"),C=e("../lib/useragent");(function(){this.dragWait=function(){Date.now()-this.mousedownEvent.time>this.editor.getDragDelay()&&this.startDrag()},this.dragWaitEnd=function(){this.editor.container.draggable=!1,this.startSelect(this.mousedownEvent.getDocumentPosition()),this.selectEnd()},this.dragReadyEnd=function(e){this.editor.$resetCursorStyle(),this.editor.unsetStyle("ace_dragging"),this.editor.renderer.setCursorStyle(""),this.dragWaitEnd()},this.startDrag=function(){this.cancelDrag=!1;var e=this.editor,t=(e.container.draggable=!0,e.renderer.$cursorLayer.setBlinking(!1),e.setStyle("ace_dragging"),C.isWin?"default":"move");e.renderer.setCursorStyle(t),this.setState("dragReady")},this.onMouseDrag=function(e){var t=this.editor.container;C.isIE&&"dragReady"==this.state&&3<T(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y)&&t.dragDrop(),"dragWait"===this.state&&0<T(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y)&&(t.draggable=!1,this.startSelect(this.mousedownEvent.getDocumentPosition()))},this.onMouseDown=function(e){var t,i,n;this.$dragEnabled&&(this.mousedownEvent=e,t=this.editor,i=e.inSelection(),n=e.getButton(),1!==(e.domEvent.detail||1)||0!==n||!i||e.editor.inMultiSelectMode&&(e.getAccelKey()||e.getShiftKey())||(this.mousedownEvent.time=Date.now(),"unselectable"in(n=e.domEvent.target||e.domEvent.srcElement)&&(n.unselectable="on"),t.getDragDelay()?(C.isWebKit&&(this.cancelDrag=!0,t.container.draggable=!0),this.setState("dragWait")):this.startDrag(),this.captureMouse(e,this.onMouseDrag.bind(this)),e.defaultPrevented=!0))}}).call(n.prototype),t.DragdropHandler=n}),ace.define("ace/mouse/touch_handler",["require","exports","module","ace/mouse/mouse_event","ace/lib/event","ace/lib/dom"],function(e,t,i){"use strict";var S=e("./mouse_event").MouseEvent,n=e("../lib/event"),o=e("../lib/dom");t.addTouchListeners=function(e,h){function r(){function t(e){var t,i=e.target.getAttribute("action");"more"!=i&&r?("paste"==i?n.readText().then(function(e){h.execCommand(i,e)}):i&&("cut"!=i&&"copy"!=i||(n?n.writeText(h.getCopyText()):document.execCommand("copy")),h.execCommand(i)),a.firstChild.style.display="none",r=!1,"openCommandPallete"!=i&&h.focus()):(r=!r,e=h.getCopyText(),t=h.session.getUndoManager().hasUndo(),a.replaceChild(o.buildDom(r?["span",!e&&["span",{class:"ace_mobile-button",action:"selectall"},"Select All"],e&&["span",{class:"ace_mobile-button",action:"copy"},"Copy"],e&&["span",{class:"ace_mobile-button",action:"cut"},"Cut"],n&&["span",{class:"ace_mobile-button",action:"paste"},"Paste"],t&&["span",{class:"ace_mobile-button",action:"undo"},"Undo"],["span",{class:"ace_mobile-button",action:"find"},"Find"],["span",{class:"ace_mobile-button",action:"openCommandPallete"},"Pallete"]]:["span"]),a.firstChild))}var n=window.navigator&&window.navigator.clipboard,r=!1;a=o.buildDom(["div",{class:"ace_mobile-menu",ontouchstart:function(e){v="menu",e.stopPropagation(),e.preventDefault(),h.textInput.focus()},ontouchend:function(e){e.stopPropagation(),e.preventDefault(),t(e)},onclick:t},["span"],["span",{class:"ace_mobile-button",action:"more"},"..."]],h.container)}function i(){a||r();var e=h.selection.cursor,e=h.renderer.textToScreenCoordinates(e.row,e.column),t=h.renderer.textToScreenCoordinates(0,0).pageX,i=h.renderer.scrollLeft,n=h.container.getBoundingClientRect();a.style.top=e.pageY-n.top-3+"px",e.pageX-n.left<n.width-70?(a.style.left="",a.style.right="10px"):(a.style.right="",a.style.left=t+i-n.left+"px"),a.style.display="",a.firstChild.style.display="none",h.on("input",s)}function s(e){a&&(a.style.display="none"),h.off("input",s)}function u(){m=null,clearTimeout(m);var e=h.selection.getRange(),t=e.contains(y.row,y.column);!e.isEmpty()&&t||(h.selection.moveToPosition(y),h.selection.selectWord()),v="wait",i()}var d,p,g,f,m,t,y,b,a,v="scroll",x=0,w=0,k=0,T=0;n.addListener(e,"contextmenu",function(e){b&&h.textInput.getElement().focus()},h),n.addListener(e,"touchstart",function(e){var t=e.touches;if(m||1<t.length)clearTimeout(m),m=null,g=-1,v="zoom";else{b=h.$mouseHandler.isMousePressed=!0;var i=h.renderer.layerConfig.lineHeight,n=h.renderer.layerConfig.lineHeight,r=e.timeStamp,s=(f=r,t[0]),a=s.clientX,s=s.clientY,a=(Math.abs(d-a)+Math.abs(p-s)>i&&(g=-1),d=e.clientX=a,p=e.clientY=s,k=T=0,new S(e,h));if(y=a.getDocumentPosition(),r-g<500&&1==t.length&&!x)w++,e.preventDefault(),e.button=0,m=null,clearTimeout(m),h.selection.moveToPosition(y),(s=2<=w?h.selection.getLineRange(y.row):h.session.getBracketRange(y))&&!s.isEmpty()?h.selection.setRange(s):h.selection.selectWord(),v="wait";else{w=0;var a=h.selection.cursor,t=h.selection.isEmpty()?a:h.selection.anchor,s=h.renderer.$cursorLayer.getPixelPosition(a,!0),a=h.renderer.$cursorLayer.getPixelPosition(t,!0),t=h.renderer.scroller.getBoundingClientRect(),o=h.renderer.layerConfig.offset,l=h.renderer.scrollLeft,c=function(e,t){return(e/=n)*e+(t=t/i-.75)*t};if(e.clientX<t.left)return void(v="zoom");s=c(e.clientX-t.left-s.left+l,e.clientY-t.top-s.top+o),c=c(e.clientX-t.left-a.left+l,e.clientY-t.top-a.top+o);s<3.5&&c<3.5&&(v=c<s?"cursor":"anchor"),v=c<3.5?"anchor":s<3.5?"cursor":"scroll",m=setTimeout(u,450)}g=r}},h),n.addListener(e,"touchend",function(e){b=h.$mouseHandler.isMousePressed=!1,t&&clearInterval(t),"zoom"==v?(v="",x=0):(m?(h.selection.moveToPosition(y),x=0,i):"scroll"==v?(x+=60,t=setInterval(function(){x--<=0&&(clearInterval(t),t=null),Math.abs(k)<.01&&(k=0),Math.abs(T)<.01&&(T=0),x<20&&(k*=.9),x<20&&(T*=.9);var e=h.session.getScrollTop();h.renderer.scrollBy(10*k,10*T),e==h.session.getScrollTop()&&(x=0)},10),s):i)(),clearTimeout(m),m=null},h),n.addListener(e,"touchmove",function(e){m&&(clearTimeout(m),m=null);var t=e.touches;if(!(1<t.length||"zoom"==v)){var t=t[0],i=d-t.clientX,n=p-t.clientY;if("wait"==v){if(!(4<i*i+n*n))return e.preventDefault();v="cursor"}d=t.clientX,p=t.clientY,e.clientX=t.clientX,e.clientY=t.clientY;var t=e.timeStamp,r=t-f;f=t,"scroll"==v?((t=new S(e,h)).speed=1,t.wheelX=i,t.wheelY=n,10*Math.abs(i)<Math.abs(n)&&(i=0),10*Math.abs(n)<Math.abs(i)&&(n=0),0!=r&&(k=i/r,T=n/r),h._emit("mousewheel",t),t.propagationStopped||(k=T=0)):(i=new S(e,h).getDocumentPosition(),"cursor"==v?h.selection.moveCursorToPosition(i):"anchor"==v&&h.selection.setSelectionAnchor(i.row,i.column),h.renderer.scrollCursorIntoView(i),e.preventDefault())}},h)}}),ace.define("ace/lib/net",["require","exports","module","ace/lib/dom"],function(e,t,i){"use strict";var r=e("./dom");t.get=function(e,t){var i=new XMLHttpRequest;i.open("GET",e,!0),i.onreadystatechange=function(){4===i.readyState&&t(i.responseText)},i.send(null)},t.loadScript=function(e,i){var t=r.getDocumentHead(),n=document.createElement("script");n.src=e,t.appendChild(n),n.onload=n.onreadystatechange=function(e,t){!t&&n.readyState&&"loaded"!=n.readyState&&"complete"!=n.readyState||(n=n.onload=n.onreadystatechange=null,t)||i()}},t.qualifyURL=function(e){var t=document.createElement("a");return t.href=e,t.href}}),ace.define("ace/lib/event_emitter",["require","exports","module"],function(e,t,i){"use strict";function s(){this.propagationStopped=!0}function a(){this.defaultPrevented=!0}var n={};n._emit=n._dispatchEvent=function(e,t){this._eventRegistry||(this._eventRegistry={}),this._defaultHandlers||(this._defaultHandlers={});var i=this._eventRegistry[e]||[],n=this._defaultHandlers[e];if(i.length||n){(t="object"==typeof t&&t?t:{}).type||(t.type=e),t.stopPropagation||(t.stopPropagation=s),t.preventDefault||(t.preventDefault=a);for(var i=i.slice(),r=0;r<i.length&&(i[r](t,this),!t.propagationStopped);r++);return n&&!t.defaultPrevented?n(t,this):void 0}},n._signal=function(e,t){if(i=(this._eventRegistry||{})[e])for(var i=i.slice(),n=0;n<i.length;n++)i[n](t,this)},n.once=function(t,i){var n=this;if(this.on(t,function e(){n.off(t,e),i.apply(null,arguments)}),!i)return new Promise(function(e){i=e})},n.setDefaultHandler=function(e,t){var i,n,r=this._defaultHandlers;(r=r||(this._defaultHandlers={_disabled_:{}}))[e]&&(n=r[e],(i=r._disabled_[e])||(r._disabled_[e]=i=[]),i.push(n),-1!=(n=i.indexOf(t)))&&i.splice(n,1),r[e]=t},n.removeDefaultHandler=function(e,t){var i,n=this._defaultHandlers;n&&(i=n._disabled_[e],n[e]==t?i&&this.setDefaultHandler(e,i.pop()):i&&-1!=(n=i.indexOf(t))&&i.splice(n,1))},n.on=n.addEventListener=function(e,t,i){this._eventRegistry=this._eventRegistry||{};var n=this._eventRegistry[e];return-1==(n=n||(this._eventRegistry[e]=[])).indexOf(t)&&n[i?"unshift":"push"](t),t},n.off=n.removeListener=n.removeEventListener=function(e,t){this._eventRegistry=this._eventRegistry||{};e=this._eventRegistry[e];e&&-1!==(t=e.indexOf(t))&&e.splice(t,1)},n.removeAllListeners=function(e){e||(this._eventRegistry=this._defaultHandlers=void 0),this._eventRegistry&&(this._eventRegistry[e]=void 0),this._defaultHandlers&&(this._defaultHandlers[e]=void 0)},t.EventEmitter=n}),ace.define("ace/lib/app_config",["require","exports","module","ace/lib/oop","ace/lib/event_emitter"],function(e,t,i){function n(e){"undefined"!=typeof console&&console.warn&&console.warn.apply(console,arguments)}function r(e,t){var i=new Error(e);i.data=t,"object"==typeof console&&console.error&&console.error(i),setTimeout(function(){throw i})}function s(){this.$defaultOptions={}}var a=e("./oop"),o=e("./event_emitter").EventEmitter,l={setOptions:function(t){Object.keys(t).forEach(function(e){this.setOption(e,t[e])},this)},getOptions:function(e){var t,i={};return e?Array.isArray(e)||(i=e,e=Object.keys(i)):(t=this.$options,e=Object.keys(t).filter(function(e){return!t[e].hidden})),e.forEach(function(e){i[e]=this.getOption(e)},this),i},setOption:function(e,t){var i;if(this["$"+e]!==t)return(i=this.$options[e])?i.forwardTo?this[i.forwardTo]&&this[i.forwardTo].setOption(e,t):(i.handlesSet||(this["$"+e]=t),void(i&&i.set&&i.set.call(this,t))):n('misspelled option "'+e+'"')},getOption:function(e){var t=this.$options[e];return t?t.forwardTo?this[t.forwardTo]&&this[t.forwardTo].getOption(e):t&&t.get?t.get.call(this):this["$"+e]:n('misspelled option "'+e+'"')}};(function(){a.implement(this,o),this.defineOptions=function(i,e,n){return i.$options||(this.$defaultOptions[e]=i.$options={}),Object.keys(n).forEach(function(e){var t=n[e];(t="string"==typeof t?{forwardTo:t}:t).name||(t.name=e),"initialValue"in(i.$options[t.name]=t)&&(i["$"+t.name]=t.initialValue)}),a.implement(i,l),this},this.resetOptions=function(i){Object.keys(i.$options).forEach(function(e){var t=i.$options[e];"value"in t&&i.setOption(e,t.value)})},this.setDefaultValue=function(e,t,i){if(!e){for(e in this.$defaultOptions)if(this.$defaultOptions[e][t])break;if(!this.$defaultOptions[e][t])return!1}var n=this.$defaultOptions[e]||(this.$defaultOptions[e]={});n[t]&&(n.forwardTo?this.setDefaultValue(n.forwardTo,t,i):n[t].value=i)},this.setDefaultValues=function(t,i){Object.keys(i).forEach(function(e){this.setDefaultValue(t,e,i[e])},this)},this.warn=n,this.reportError=r}).call(s.prototype),t.AppConfig=s}),ace.define("ace/config",["require","exports","module","ace/lib/lang","ace/lib/oop","ace/lib/net","ace/lib/app_config"],function(d,p,g){var e=d("./lib/lang"),r=(d("./lib/oop"),d("./lib/net")),t=d("./lib/app_config").AppConfig,f=(g.exports=p=new t,function(){return this||"undefined"!=typeof window&&window}()),m={packaged:!1,workerPath:null,modePath:null,themePath:null,basePath:"",suffix:".js",$moduleUrls:{},loadWorkerFromBlob:!0,sharedPopups:!1},s=(p.get=function(e){if(m.hasOwnProperty(e))return m[e];throw new Error("Unknown config key: "+e)},p.set=function(e,t){if(m.hasOwnProperty(e))m[e]=t;else if(0==this.setDefaultValue("",e,t))throw new Error("Unknown config key: "+e)},p.all=function(){return e.copyObject(m)},p.$modes={},p.moduleUrl=function(e,t){var i,n,r;return m.$moduleUrls[e]||(e=e.split("/"),i="snippets"==(t=t||e[e.length-2]||"")?"/":"-",n=e[e.length-1],"worker"==t&&"-"==i&&(r=new RegExp("^"+t+"[\\-_]|[\\-_]"+t+"$","g"),n=n.replace(r,"")),(!n||n==t)&&1<e.length&&(n=e[e.length-2]),null==(r=m[t+"Path"])?r=m.basePath:"/"==i&&(t=i=""),r&&"/"!=r.slice(-1)&&(r+="/"),r+t+i+n+this.get("suffix"))},p.setModuleUrl=function(e,t){return m.$moduleUrls[e]=t},p.$loading={},p.loadModule=function(i,e){var t,n;Array.isArray(i)&&(t=i[0],i=i[1]);try{n=d(i)}catch(e){}return n&&!p.$loading[i]?e&&e(n):(p.$loading[i]||(p.$loading[i]=[]),p.$loading[i].push(e),1<p.$loading[i].length?void 0:(n=function(){d([i],function(t){p._emit("load.module",{name:i,module:t});var e=p.$loading[i];p.$loading[i]=null,e.forEach(function(e){e&&e(t)})})},p.get("packaged")?(r.loadScript(p.moduleUrl(i,t),n),void s()):n()))},function(){m.basePath||m.workerPath||m.modePath||m.themePath||Object.keys(m.$moduleUrls).length||(console.error("Unable to infer path to ace from script src,","use ace.config.set('basePath', 'path') to enable dynamic loading of modes and themes","or with webpack use ace/webpack-resolver"),s=function(){})});p.init=function(e){if(f&&f.document){m.packaged=e||d.packaged||g.packaged||f.define&&define.packaged;for(var t,i={},n="",e=document.currentScript||document._currentScript,r=(e&&e.ownerDocument||document).getElementsByTagName("script"),s=0;s<r.length;s++){var a=r[s],o=a.src||a.getAttribute("src");if(o){for(var l=a.attributes,c=0,h=l.length;c<h;c++){var u=l[c];0===u.name.indexOf("data-ace-")&&(i[u.name.replace(/^data-ace-/,"").replace(/-(.)/g,function(e,t){return t.toUpperCase()})]=u.value)}a=o.match(/^(.*)\/ace(\-\w+)?\.js(\?|$)/);a&&(n=a[1])}}for(t in n&&(i.base=i.base||n,i.packaged=!0),i.basePath=i.base,i.workerPath=i.workerPath||i.base,i.modePath=i.modePath||i.base,i.themePath=i.themePath||i.base,delete i.base,i)void 0!==i[t]&&p.set(t,i[t])}},p.version="1.4.12"}),ace.define("ace/mouse/mouse_handler",["require","exports","module","ace/lib/event","ace/lib/useragent","ace/mouse/default_handlers","ace/mouse/default_gutter_handler","ace/mouse/mouse_event","ace/mouse/dragdrop_handler","ace/mouse/touch_handler","ace/config"],function(e,t,i){"use strict";function n(n){function e(e){document.hasFocus&&document.hasFocus()&&(n.isFocused()||document.activeElement!=(n.textInput&&n.textInput.getElement()))||window.focus(),n.focus()}var r=this,t=(this.editor=n,new s(this),new a(this),new o(this),n.renderer.getMouseEventTarget()),i=(h.addListener(t,"click",this.onMouseEvent.bind(this,"click"),n),h.addListener(t,"mousemove",this.onMouseMove.bind(this,"mousemove"),n),h.addMultiMouseDownListener([t,n.renderer.scrollBarV&&n.renderer.scrollBarV.inner,n.renderer.scrollBarH&&n.renderer.scrollBarH.inner,n.textInput&&n.textInput.getElement()].filter(Boolean),[400,300,250],this,"onMouseEvent",n),h.addMouseWheelListener(n.container,this.onMouseWheel.bind(this,"mousewheel"),n),l(n.container,n),n.renderer.$gutter);h.addListener(i,"mousedown",this.onMouseEvent.bind(this,"guttermousedown"),n),h.addListener(i,"click",this.onMouseEvent.bind(this,"gutterclick"),n),h.addListener(i,"dblclick",this.onMouseEvent.bind(this,"gutterdblclick"),n),h.addListener(i,"mousemove",this.onMouseEvent.bind(this,"guttermousemove"),n),h.addListener(t,"mousedown",e,n),h.addListener(i,"mousedown",e,n),u.isIE&&n.renderer.scrollBarV&&(h.addListener(n.renderer.scrollBarV.element,"mousedown",e,n),h.addListener(n.renderer.scrollBarH.element,"mousedown",e,n)),n.on("mousemove",function(e){var t,i;r.state||r.$dragDelay||!r.$dragEnabled||(e=n.renderer.screenToTextCoordinates(e.x,e.y),t=n.session.selection.getRange(),i=n.renderer,!t.isEmpty()&&t.insideStart(e.row,e.column)?i.setCursorStyle("default"):i.setCursorStyle(""))},n)}var h=e("../lib/event"),u=e("../lib/useragent"),s=e("./default_handlers").DefaultHandlers,a=e("./default_gutter_handler").GutterHandler,d=e("./mouse_event").MouseEvent,o=e("./dragdrop_handler").DragdropHandler,l=e("./touch_handler").addTouchListeners,e=e("../config");(function(){this.onMouseEvent=function(e,t){this.editor._emit(e,new d(t,this.editor))},this.onMouseMove=function(e,t){var i=this.editor._eventRegistry&&this.editor._eventRegistry.mousemove;i&&i.length&&this.editor._emit(e,new d(t,this.editor))},this.onMouseWheel=function(e,t){var i=new d(t,this.editor);i.speed=2*this.$scrollSpeed,i.wheelX=t.wheelX,i.wheelY=t.wheelY,this.editor._emit(e,i)},this.setState=function(e){this.state=e},this.captureMouse=function(e,t){this.x=e.x,this.y=e.y,this.isMousePressed=!0;function i(e){if(e)return u.isWebKit&&!e.which&&o.releaseMouse?o.releaseMouse():(o.x=e.clientX,o.y=e.clientY,t&&t(e),o.mouseEvent=new d(e,o.editor),void(o.$mouseMoved=!0))}function n(e){s.off("beforeEndOperation",l),clearInterval(c),r(),o[o.state+"End"]&&o[o.state+"End"](e),o.state="",o.isMousePressed=a.$isMousePressed=!1,a.$keepTextAreaAtCursor&&a.$moveTextAreaToCursor(),o.$onCaptureMouseMove=o.releaseMouse=null,e&&o.onMouseEvent("mouseup",e),s.endOperation()}function r(){o[o.state]&&o[o.state](),o.$mouseMoved=!1}var s=this.editor,a=this.editor.renderer,o=(a.$isMousePressed=!0,this);if(u.isOldIE&&"dblclick"==e.domEvent.type)return setTimeout(function(){n(e)});var l=function(e){o.releaseMouse&&s.curOp.command.name&&s.curOp.selectionChanged&&(o[o.state+"End"]&&o[o.state+"End"](),o.state="",o.releaseMouse())},c=(s.on("beforeEndOperation",l),s.startOperation({command:{name:"mouse"}}),o.$onCaptureMouseMove=i,o.releaseMouse=h.capture(this.editor.container,i,n),setInterval(r,20))},this.releaseMouse=null,this.cancelContextMenu=function(){var t=function(e){e&&e.domEvent&&"contextmenu"!=e.domEvent.type||(this.editor.off("nativecontextmenu",t),e&&e.domEvent&&h.stopEvent(e.domEvent))}.bind(this);setTimeout(t,10),this.editor.on("nativecontextmenu",t)},this.destroy=function(){this.releaseMouse&&this.releaseMouse()}}).call(n.prototype),e.defineOptions(n.prototype,"mouseHandler",{scrollSpeed:{initialValue:2},dragDelay:{initialValue:u.isMac?150:0},dragEnabled:{initialValue:!0},focusTimeout:{initialValue:0},tooltipFollowsMouse:{initialValue:!0}}),t.MouseHandler=n}),ace.define("ace/mouse/fold_handler",["require","exports","module","ace/lib/dom"],function(e,t,i){"use strict";var n=e("../lib/dom");t.FoldHandler=function(r){r.on("click",function(e){var t=e.getDocumentPosition(),i=r.session,t=i.getFoldAt(t.row,t.column,1),t=(t&&(e.getAccelKey()?i.removeFold(t):i.expandFold(t),e.stop()),e.domEvent&&e.domEvent.target);t&&n.hasCssClass(t,"ace_inline_button")&&n.hasCssClass(t,"ace_toggle_wrap")&&(i.setOption("wrap",!i.getUseWrapMode()),r.renderer.scrollCursorIntoView())}),r.on("gutterclick",function(e){var t,i;"foldWidgets"==r.renderer.$gutterLayer.getRegion(e)&&(t=e.getDocumentPosition().row,(i=r.session).foldWidgets&&i.foldWidgets[t]&&r.session.onFoldWidgetClick(t,e),r.isFocused()||r.focus(),e.stop())}),r.on("gutterdblclick",function(e){var t,i,n;"foldWidgets"==r.renderer.$gutterLayer.getRegion(e)&&(n=e.getDocumentPosition().row,(i=(i=(t=r.session).getParentFoldRangeData(n,!0)).range||i.firstRange)&&(n=i.start.row,(n=t.getFoldAt(n,t.getLine(n).length,1))?t.removeFold(n):(t.addFold("...",i),r.renderer.scrollCursorIntoView({row:i.start.row,column:0}))),e.stop())})}}),ace.define("ace/keyboard/keybinding",["require","exports","module","ace/lib/keys","ace/lib/event"],function(e,t,i){"use strict";function n(e){this.$editor=e,this.$data={editor:e},this.$handlers=[],this.setDefaultHandler(e.commands)}var r=e("../lib/keys"),l=e("../lib/event");(function(){this.setDefaultHandler=function(e){this.removeKeyboardHandler(this.$defaultHandler),this.$defaultHandler=e,this.addKeyboardHandler(e,0)},this.setKeyboardHandler=function(e){var t=this.$handlers;if(t[t.length-1]!=e){for(;t[t.length-1]&&t[t.length-1]!=this.$defaultHandler;)this.removeKeyboardHandler(t[t.length-1]);this.addKeyboardHandler(e,1)}},this.addKeyboardHandler=function(e,t){var i;e&&("function"!=typeof e||e.handleKeyboard||(e.handleKeyboard=e),-1!=(i=this.$handlers.indexOf(e))&&this.$handlers.splice(i,1),null==t?this.$handlers.push(e):this.$handlers.splice(t,0,e),-1==i)&&e.attach&&e.attach(this.$editor)},this.removeKeyboardHandler=function(e){var t=this.$handlers.indexOf(e);return-1!=t&&(this.$handlers.splice(t,1),e.detach&&e.detach(this.$editor),!0)},this.getKeyboardHandler=function(){return this.$handlers[this.$handlers.length-1]},this.getStatusText=function(){var t=this.$data,i=t.editor;return this.$handlers.map(function(e){return e.getStatusText&&e.getStatusText(i,t)||""}).filter(Boolean).join(" ")},this.$callKeyboardHandlers=function(e,t,i,n){for(var r,s=!1,a=this.$editor.commands,o=this.$handlers.length;o--&&!((r=this.$handlers[o].handleKeyboard(this.$data,e,t,i,n))&&r.command&&((s="null"==r.command||a.exec(r.command,this.$editor,r.args,n))&&n&&-1!=e&&1!=r.passEvent&&1!=r.command.passEvent&&l.stopEvent(n),s)););return s||-1!=e||(r={command:"insertstring"},s=a.exec("insertstring",this.$editor,t)),s&&this.$editor._signal&&this.$editor._signal("keyboardActivity",r),s},this.onCommandKey=function(e,t,i){var n=r.keyCodeToString(i);return this.$callKeyboardHandlers(t,n,i,e)},this.onTextInput=function(e){return this.$callKeyboardHandlers(-1,e)}}).call(n.prototype),t.KeyBinding=n}),ace.define("ace/lib/bidiutil",["require","exports","module"],function(e,l,t){"use strict";function c(e,t,i,n){var r,s,a,o=f?w:x,l=0,c=-1,h=null,u=null,d=[];if(!n)for(h=0,n=[];h<i;h++)n[h]=g(e[h]);for(m=f,v=b=y=!1,u=0;u<i;u++){if(a=l,d[u]=r=function(e,t,i,n){var r,s,a,o=t[n];switch(o){case k:case T:y=!1;case C:case _:return o;case S:return y?_:S;case $:return y=!0,T;case L:return C;case R:return n<1||n+1>=t.length||(r=i[n-1])!=S&&r!=_||(l=t[n+1])!=S&&l!=_?C:(l=y?_:l)==r?l:C;case M:return(r=0<n?i[n-1]:A)==S&&n+1<t.length&&t[n+1]==S?S:C;case I:if(0<n&&i[n-1]==S)return S;if(y)return C;for(a=n+1,s=t.length;a<s&&t[a]==I;)a++;return a<s&&t[a]==S?S:C;case N:for(s=t.length,a=n+1;a<s&&t[a]==N;)a++;if(a<s){var l=e[n],l=1425<=l&&l<=2303||64286==l;if(r=t[a],l&&(r==T||r==$))return T}return n<1||(r=t[n-1])==A?C:i[n-1];case A:return b=!(y=!1),f;case E:return v=!0,C;case D:case O:case B:case F:case P:y=!1;case j:return C}}(e,n,d,u),a=240&(l=o[a][r]),l&=15,t[u]=s=o[l][5],0<a){if(16==a)for(h=c;h<u;h++)t[h]=1;c=-1}if(o[l][6])-1==c&&(c=u);else if(-1<c){for(h=c;h<u;h++)t[h]=s;c=-1}n[u]==A&&(t[u]=0),m|=s}if(v)for(h=0;h<i;h++)if(n[h]==E){t[h]=f;for(var p=h-1;0<=p&&n[p]==L;p--)t[p]=f}}function h(e,t,i){if(!(m<e))if(1!=e||1!=f||b)for(var n,r,s,a,o=i.length,l=0;l<o;){if(t[l]>=e){for(n=l+1;n<o&&t[n]>=e;)n++;for(r=l,s=n-1;r<s;r++,s--)a=i[r],i[r]=i[s],i[s]=a;l=n}l++}else i.reverse()}function g(e){var t=e.charCodeAt(0),i=t>>8;return 0==i?191<t?k:n[t]:5==i?/[\u0591-\u05f4]/.test(e)?T:k:6==i?/[\u0610-\u061a\u064b-\u065f\u06d6-\u06e4\u06e7-\u06ed]/.test(e)?N:/[\u0660-\u0669\u066b-\u066c]/.test(e)?_:1642==t?I:/[\u06f0-\u06f9]/.test(e)?S:$:32==i&&t<=8287?r[255&t]:254==i&&65136<=t?$:C}var f=0,m=0,y=!1,b=!1,v=!1,x=[[0,3,0,1,0,0,0],[0,3,0,1,2,2,0],[0,3,0,17,2,0,1],[0,3,5,5,4,1,0],[0,3,21,21,4,0,1],[0,3,5,5,4,2,0]],w=[[2,0,1,1,0,1,0],[2,0,1,1,0,2,0],[2,0,2,1,3,2,0],[2,0,2,33,3,1,1]],k=0,T=1,S=2,_=3,C=4,A=5,E=6,$=7,L=8,R=9,M=10,I=11,N=12,D=13,O=14,P=15,B=16,F=17,j=18,n=[j,j,j,j,j,j,j,j,j,E,A,E,L,A,j,j,j,j,j,j,j,j,j,j,j,j,j,j,A,A,A,E,L,C,C,I,I,I,C,C,C,C,C,M,R,M,R,R,S,S,S,S,S,S,S,S,S,S,R,C,C,C,C,C,C,k,k,k,k,k,k,k,k,k,k,k,k,k,k,k,k,k,k,k,k,k,k,k,k,k,k,C,C,C,C,C,C,k,k,k,k,k,k,k,k,k,k,k,k,k,k,k,k,k,k,k,k,k,k,k,k,k,k,C,C,C,C,j,j,j,j,j,j,A,j,j,j,j,j,j,j,j,j,j,j,j,j,j,j,j,j,j,j,j,j,j,j,j,j,j,R,C,I,I,I,I,C,C,C,C,k,C,C,j,C,C,I,I,S,S,C,k,C,C,C,S,k,C,C,C,C,C],r=[L,L,L,L,L,L,L,L,L,L,L,j,j,j,k,T,C,C,C,C,C,C,C,C,C,C,C,C,C,C,C,C,C,C,C,C,C,C,C,C,L,A,D,O,P,B,F,R,I,I,I,I,I,C,C,C,C,C,C,C,C,C,C,C,C,C,C,C,R,C,C,C,C,C,C,C,C,C,C,C,C,C,C,C,C,C,C,C,C,C,C,C,C,C,C,L];l.L=k,l.R=T,l.EN=S,l.ON_R=3,l.AN=4,l.R_H=5,l.B=6,l.RLE=7,l.DOT="·",l.doBidiReorder=function(e,t,i){if(e.length<2)return{};var n=e.split(""),r=new Array(n.length),s=new Array(n.length),a=[];f=i?1:0,c(n,a,n.length,t);for(var o=0;o<r.length;r[o]=o,o++);h(2,a,r),h(1,a,r);for(o=0;o<r.length-1;o++)t[o]===_?a[o]=l.AN:a[o]===T&&(t[o]>$&&t[o]<D||t[o]===C||t[o]===j)?a[o]=l.ON_R:0<o&&"ل"===n[o-1]&&/\u0622|\u0623|\u0625|\u0627/.test(n[o])&&(a[o-1]=a[o]=l.R_H,o++);n[n.length-1]===l.DOT&&(a[n.length-1]=l.B),""===n[0]&&(a[0]=l.RLE);for(o=0;o<r.length;o++)s[o]=a[r[o]];return{logicalFromVisual:r,bidiLevels:s}},l.hasBidiCharacters=function(e,t){for(var i=!1,n=0;n<e.length;n++)t[n]=g(e.charAt(n)),i||t[n]!=T&&t[n]!=$&&t[n]!=_||(i=!0);return i},l.getVisualFromLogicalIdx=function(e,t){for(var i=0;i<t.logicalFromVisual.length;i++)if(t.logicalFromVisual[i]==e)return i;return 0}}),ace.define("ace/bidihandler",["require","exports","module","ace/lib/bidiutil","ace/lib/lang"],function(e,t,i){"use strict";function n(e){this.session=e,this.bidiMap={},this.currentRow=null,this.bidiUtil=o,this.charWidths=[],this.EOL="¬",this.showInvisibles=!0,this.isRtlDir=!1,this.$isRtl=!1,this.line="",this.wrapIndent=0,this.EOF="¶",this.RLE="",this.contentWidth=0,this.fontMetrics=null,this.rtlLineOffset=0,this.wrapOffset=0,this.isMoveLeftOperation=!1,this.seenBidi=r.test(e.getValue())}var o=e("./lib/bidiutil"),a=e("./lib/lang"),r=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac\u202B]/;(function(){this.isBidiRow=function(e,t,i){return!!this.seenBidi&&(e!==this.currentRow&&(this.currentRow=e,this.updateRowLine(t,i),this.updateBidiMap()),this.bidiMap.bidiLevels)},this.onChange=function(e){this.seenBidi?this.currentRow=null:"insert"==e.action&&r.test(e.lines.join("\n"))&&(this.seenBidi=!0,this.currentRow=null)},this.getDocumentRow=function(){var e=0,t=this.session.$screenRowCache;return e=t.length&&0<=(t=this.session.$getRowCacheIndex(t,this.currentRow))?this.session.$docRowCache[t]:e},this.getSplitIndex=function(){var e=0,t=this.session.$screenRowCache;if(t.length)for(var i,n=this.session.$getRowCacheIndex(t,this.currentRow);0<this.currentRow-e&&(i=this.session.$getRowCacheIndex(t,this.currentRow-e-1))===n;)n=i,e++;else e=this.currentRow;return e},this.updateRowLine=function(e,t){var i,n=(e=void 0===e?this.getDocumentRow():e)===this.session.getLength()-1?this.EOF:this.EOL,r=(this.wrapIndent=0,this.line=this.session.getLine(e),this.isRtlDir=this.$isRtl||this.line.charAt(0)===this.RLE,this.session.$useWrapMode&&((e=this.session.$wrapData[e])&&(0<(t=void 0===t?this.getSplitIndex():t)&&e.length?(this.wrapIndent=e.indent,this.wrapOffset=this.wrapIndent*this.charWidths[o.L],this.line=t<e.length?this.line.substring(e[t-1],e[t]):this.line.substring(e[e.length-1])):this.line=this.line.substring(0,e[t])),t!=e.length)||(this.line+=this.showInvisibles?n:o.DOT),this.session),s=0;this.line=this.line.replace(/\t|[\u1100-\u2029, \u202F-\uFFE6]/g,function(e,t){return"\t"===e||r.isFullWidth(e.charCodeAt(0))?(i="\t"===e?r.getScreenTabSize(t+s):2,s+=i-1,a.stringRepeat(o.DOT,i)):e}),this.isRtlDir&&(this.fontMetrics.$main.textContent=this.line.charAt(this.line.length-1)==o.DOT?this.line.substr(0,this.line.length-1):this.line,this.rtlLineOffset=this.contentWidth-this.fontMetrics.$main.getBoundingClientRect().width)},this.updateBidiMap=function(){var e=[];o.hasBidiCharacters(this.line,e)||this.isRtlDir?this.bidiMap=o.doBidiReorder(this.line,e,this.isRtlDir):this.bidiMap={}},this.markAsDirty=function(){this.currentRow=null},this.updateCharacterWidths=function(e){var t;this.characterWidth!==e.$characterSize.width&&(this.fontMetrics=e,t=this.characterWidth=e.$characterSize.width,e=e.$measureCharWidth("ה"),this.charWidths[o.L]=this.charWidths[o.EN]=this.charWidths[o.ON_R]=t,this.charWidths[o.R]=this.charWidths[o.AN]=e,this.charWidths[o.R_H]=.45*e,this.charWidths[o.B]=this.charWidths[o.RLE]=0,this.currentRow=null)},this.setShowInvisibles=function(e){this.showInvisibles=e,this.currentRow=null},this.setEolChar=function(e){this.EOL=e},this.setContentWidth=function(e){this.contentWidth=e},this.isRtlLine=function(e){return!!this.$isRtl||(null!=e?this.session.getLine(e).charAt(0)==this.RLE:this.isRtlDir)},this.setRtlDirection=function(e,t){for(var i=e.getCursorPosition(),n=e.selection.getSelectionAnchor().row;n<=i.row;n++)t||e.session.getLine(n).charAt(0)!==e.session.$bidiHandler.RLE?t&&e.session.getLine(n).charAt(0)!==e.session.$bidiHandler.RLE&&e.session.doc.insert({column:0,row:n},e.session.$bidiHandler.RLE):e.session.doc.removeInLine(n,0,1)},this.getPosLeft=function(e){e-=this.wrapIndent;var t=this.line.charAt(0)===this.RLE?1:0,i=t<e?this.session.getOverwrite()?e:e-1:t,n=o.getVisualFromLogicalIdx(i,this.bidiMap),r=this.bidiMap.bidiLevels,s=0;!this.session.getOverwrite()&&e<=t&&r[n]%2!=0&&n++;for(var a=0;a<n;a++)s+=this.charWidths[r[a]];return!this.session.getOverwrite()&&t<e&&r[n]%2==0&&(s+=this.charWidths[r[n]]),this.wrapIndent&&(s+=this.isRtlDir?-1*this.wrapOffset:this.wrapOffset),this.isRtlDir&&(s+=this.rtlLineOffset),s},this.getSelections=function(e,t){var i,n=this.bidiMap,r=n.bidiLevels,s=[],a=0,o=Math.min(e,t)-this.wrapIndent,l=Math.max(e,t)-this.wrapIndent,c=!1,h=!1,u=0;this.wrapIndent&&(a+=this.isRtlDir?-1*this.wrapOffset:this.wrapOffset);for(var d,p=0;p<r.length;p++)d=n.logicalFromVisual[p],i=r[p],(c=o<=d&&d<l)&&!h?u=a:!c&&h&&s.push({left:u,width:a-u}),a+=this.charWidths[i],h=c;if(c&&p===r.length&&s.push({left:u,width:a-u}),this.isRtlDir)for(var g=0;g<s.length;g++)s[g].left+=this.rtlLineOffset;return s},this.offsetToCol=function(e){this.isRtlDir&&(e-=this.rtlLineOffset);var t=0,e=Math.max(e,0),i=0,n=0,r=this.bidiMap.bidiLevels,s=this.charWidths[r[n]];for(this.wrapIndent&&(e-=this.isRtlDir?-1*this.wrapOffset:this.wrapOffset);i+s/2<e;){if(i+=s,n===r.length-1){s=0;break}s=this.charWidths[r[++n]]}return 0===(t=0<n&&r[n-1]%2!=0&&r[n]%2==0?(e<i&&n--,this.bidiMap.logicalFromVisual[n]):0<n&&r[n-1]%2==0&&r[n]%2!=0?1+(i<e?this.bidiMap.logicalFromVisual[n]:this.bidiMap.logicalFromVisual[n-1]):this.isRtlDir&&n===r.length-1&&0===s&&r[n-1]%2==0||!this.isRtlDir&&0===n&&r[n]%2!=0?1+this.bidiMap.logicalFromVisual[n]:(0<n&&r[n-1]%2!=0&&0!==s&&n--,this.bidiMap.logicalFromVisual[n]))&&this.isRtlDir&&t++,t+this.wrapIndent}}).call(n.prototype),t.BidiHandler=n}),ace.define("ace/selection",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/lib/event_emitter","ace/range"],function(e,t,i){"use strict";function n(e){this.session=e,this.doc=e.getDocument(),this.clearSelection(),this.cursor=this.lead=this.doc.createAnchor(0,0),this.anchor=this.doc.createAnchor(0,0),this.$silent=!1;var t=this;this.cursor.on("change",function(e){t.$cursorChanged=!0,t.$silent||t._emit("changeCursor"),t.$isEmpty||t.$silent||t._emit("changeSelection"),t.$keepDesiredColumnOnChange||e.old.column==e.value.column||(t.$desiredColumn=null)}),this.anchor.on("change",function(){t.$anchorChanged=!0,t.$isEmpty||t.$silent||t._emit("changeSelection")})}var r=e("./lib/oop"),s=e("./lib/lang"),a=e("./lib/event_emitter").EventEmitter,o=e("./range").Range;(function(){r.implement(this,a),this.isEmpty=function(){return this.$isEmpty||this.anchor.row==this.lead.row&&this.anchor.column==this.lead.column},this.isMultiLine=function(){return!this.$isEmpty&&this.anchor.row!=this.cursor.row},this.getCursor=function(){return this.lead.getPosition()},this.setSelectionAnchor=function(e,t){this.$isEmpty=!1,this.anchor.setPosition(e,t)},this.getAnchor=this.getSelectionAnchor=function(){return this.$isEmpty?this.getSelectionLead():this.anchor.getPosition()},this.getSelectionLead=function(){return this.lead.getPosition()},this.isBackwards=function(){var e=this.anchor,t=this.lead;return e.row>t.row||e.row==t.row&&e.column>t.column},this.getRange=function(){var e=this.anchor,t=this.lead;return this.$isEmpty?o.fromPoints(t,t):this.isBackwards()?o.fromPoints(t,e):o.fromPoints(e,t)},this.clearSelection=function(){this.$isEmpty||(this.$isEmpty=!0,this._emit("changeSelection"))},this.selectAll=function(){this.$setSelection(0,0,Number.MAX_VALUE,Number.MAX_VALUE)},this.setRange=this.setSelectionRange=function(e,t){var i=t?e.end:e.start,t=t?e.start:e.end;this.$setSelection(i.row,i.column,t.row,t.column)},this.$setSelection=function(e,t,i,n){var r,s;!this.$silent&&(r=this.$isEmpty,s=this.inMultiSelectMode,this.$silent=!0,this.$cursorChanged=this.$anchorChanged=!1,this.anchor.setPosition(e,t),this.cursor.setPosition(i,n),this.$isEmpty=!o.comparePoints(this.anchor,this.cursor),this.$silent=!1,this.$cursorChanged&&this._emit("changeCursor"),this.$cursorChanged||this.$anchorChanged||r!=this.$isEmpty||s)&&this._emit("changeSelection")},this.$moveSelection=function(e){var t=this.lead;this.$isEmpty&&this.setSelectionAnchor(t.row,t.column),e.call(this)},this.selectTo=function(e,t){this.$moveSelection(function(){this.moveCursorTo(e,t)})},this.selectToPosition=function(e){this.$moveSelection(function(){this.moveCursorToPosition(e)})},this.moveTo=function(e,t){this.clearSelection(),this.moveCursorTo(e,t)},this.moveToPosition=function(e){this.clearSelection(),this.moveCursorToPosition(e)},this.selectUp=function(){this.$moveSelection(this.moveCursorUp)},this.selectDown=function(){this.$moveSelection(this.moveCursorDown)},this.selectRight=function(){this.$moveSelection(this.moveCursorRight)},this.selectLeft=function(){this.$moveSelection(this.moveCursorLeft)},this.selectLineStart=function(){this.$moveSelection(this.moveCursorLineStart)},this.selectLineEnd=function(){this.$moveSelection(this.moveCursorLineEnd)},this.selectFileEnd=function(){this.$moveSelection(this.moveCursorFileEnd)},this.selectFileStart=function(){this.$moveSelection(this.moveCursorFileStart)},this.selectWordRight=function(){this.$moveSelection(this.moveCursorWordRight)},this.selectWordLeft=function(){this.$moveSelection(this.moveCursorWordLeft)},this.getWordRange=function(e,t){var i;return void 0===t&&(e=(i=e||this.lead).row,t=i.column),this.session.getWordRange(e,t)},this.selectWord=function(){this.setSelectionRange(this.getWordRange())},this.selectAWord=function(){var e=this.getCursor(),e=this.session.getAWordRange(e.row,e.column);this.setSelectionRange(e)},this.getLineRange=function(e,t){var e="number"==typeof e?e:this.lead.row,i=this.session.getFoldLine(e),i=i?(e=i.start.row,i.end.row):e;return!0===t?new o(e,0,i,this.session.getLine(i).length):new o(e,0,i+1,0)},this.selectLine=function(){this.setSelectionRange(this.getLineRange())},this.moveCursorUp=function(){this.moveCursorBy(-1,0)},this.moveCursorDown=function(){this.moveCursorBy(1,0)},this.wouldMoveIntoSoftTab=function(e,t,i){var n=e.column,r=e.column+t;return i<0&&(n=e.column-t,r=e.column),this.session.isTabStop(e)&&this.doc.getLine(e.row).slice(n,r).split(" ").length-1==t},this.moveCursorLeft=function(){var e,t=this.lead.getPosition();(e=this.session.getFoldAt(t.row,t.column,-1))?this.moveCursorTo(e.start.row,e.start.column):0===t.column?0<t.row&&this.moveCursorTo(t.row-1,this.doc.getLine(t.row-1).length):(e=this.session.getTabSize(),this.wouldMoveIntoSoftTab(t,e,-1)&&!this.session.getNavigateWithinSoftTabs()?this.moveCursorBy(0,-e):this.moveCursorBy(0,-1))},this.moveCursorRight=function(){var e,t=this.lead.getPosition();(e=this.session.getFoldAt(t.row,t.column,1))?this.moveCursorTo(e.end.row,e.end.column):this.lead.column==this.doc.getLine(this.lead.row).length?this.lead.row<this.doc.getLength()-1&&this.moveCursorTo(this.lead.row+1,0):(e=this.session.getTabSize(),t=this.lead,this.wouldMoveIntoSoftTab(t,e,1)&&!this.session.getNavigateWithinSoftTabs()?this.moveCursorBy(0,e):this.moveCursorBy(0,1))},this.moveCursorLineStart=function(){var e=this.lead.row,t=this.lead.column,i=this.session.documentToScreenRow(e,t),i=this.session.screenToDocumentPosition(i,0),e=this.session.getDisplayLine(e,null,i.row,i.column).match(/^\s*/);e[0].length==t||this.session.$useEmacsStyleLineStart||(i.column+=e[0].length),this.moveCursorToPosition(i)},this.moveCursorLineEnd=function(){var e,t=this.lead,t=this.session.getDocumentLastRowColumnPosition(t.row,t.column);this.lead.column==t.column&&(e=this.session.getLine(t.row),t.column==e.length)&&0<(e=e.search(/\s+$/))&&(t.column=e),this.moveCursorTo(t.row,t.column)},this.moveCursorFileEnd=function(){var e=this.doc.getLength()-1,t=this.doc.getLine(e).length;this.moveCursorTo(e,t)},this.moveCursorFileStart=function(){this.moveCursorTo(0,0)},this.moveCursorLongWordRight=function(){var e=this.lead.row,t=this.lead.column,i=this.doc.getLine(e),n=i.substring(t),r=(this.session.nonTokenRe.lastIndex=0,this.session.tokenRe.lastIndex=0,this.session.getFoldAt(e,t,1));r?this.moveCursorTo(r.end.row,r.end.column):(this.session.nonTokenRe.exec(n)&&(t+=this.session.nonTokenRe.lastIndex,this.session.nonTokenRe.lastIndex=0,n=i.substring(t)),t>=i.length?(this.moveCursorTo(e,i.length),this.moveCursorRight(),e<this.doc.getLength()-1&&this.moveCursorWordRight()):(this.session.tokenRe.exec(n)&&(t+=this.session.tokenRe.lastIndex,this.session.tokenRe.lastIndex=0),this.moveCursorTo(e,t)))},this.moveCursorLongWordLeft=function(){var e,t=this.lead.row,i=this.lead.column;(e=this.session.getFoldAt(t,i,-1))?this.moveCursorTo(e.start.row,e.start.column):(null==(e=this.session.getFoldStringAt(t,i,-1))&&(e=this.doc.getLine(t).substring(0,i)),e=s.stringReverse(e),this.session.nonTokenRe.lastIndex=0,this.session.tokenRe.lastIndex=0,this.session.nonTokenRe.exec(e)&&(i-=this.session.nonTokenRe.lastIndex,e=e.slice(this.session.nonTokenRe.lastIndex),this.session.nonTokenRe.lastIndex=0),i<=0?(this.moveCursorTo(t,0),this.moveCursorLeft(),0<t&&this.moveCursorWordLeft()):(this.session.tokenRe.exec(e)&&(i-=this.session.tokenRe.lastIndex,this.session.tokenRe.lastIndex=0),this.moveCursorTo(t,i)))},this.$shortWordEndIndex=function(e){var t,i=0,n=/\s/,r=this.session.tokenRe;if(r.lastIndex=0,this.session.tokenRe.exec(e))i=this.session.tokenRe.lastIndex;else{for(;(t=e[i])&&n.test(t);)i++;if(i<1)for(r.lastIndex=0;(t=e[i])&&!r.test(t);)if(r.lastIndex=0,i++,n.test(t)){if(2<i){i--;break}for(;(t=e[i])&&n.test(t);)i++;if(2<i)break}}return r.lastIndex=0,i},this.moveCursorShortWordRight=function(){var e=this.lead.row,t=this.lead.column,i=this.doc.getLine(e),n=i.substring(t),r=this.session.getFoldAt(e,t,1);if(r)return this.moveCursorTo(r.end.row,r.end.column);if(t==i.length){for(var s=this.doc.getLength();n=this.doc.getLine(++e),e<s&&/^\s*$/.test(n););/^\s+/.test(n)||(n=""),t=0}r=this.$shortWordEndIndex(n);this.moveCursorTo(e,t+r)},this.moveCursorShortWordLeft=function(){var e=this.lead.row,t=this.lead.column;if(n=this.session.getFoldAt(e,t,-1))return this.moveCursorTo(n.start.row,n.start.column);var i=this.session.getLine(e).substring(0,t);if(0===t){for(;i=this.doc.getLine(--e),0<e&&/^\s*$/.test(i););t=i.length,/\s+$/.test(i)||(i="")}var n=s.stringReverse(i),n=this.$shortWordEndIndex(n);return this.moveCursorTo(e,t-n)},this.moveCursorWordRight=function(){this.session.$selectLongWords?this.moveCursorLongWordRight():this.moveCursorShortWordRight()},this.moveCursorWordLeft=function(){this.session.$selectLongWords?this.moveCursorLongWordLeft():this.moveCursorShortWordLeft()},this.moveCursorBy=function(e,t){var i,n=this.session.documentToScreenPosition(this.lead.row,this.lead.column),r=(0===t&&(0!==e&&(this.session.$bidiHandler.isBidiRow(n.row,this.lead.row)?(i=this.session.$bidiHandler.getPosLeft(n.column),n.column=Math.round(i/this.session.$bidiHandler.charWidths[0])):i=n.column*this.session.$bidiHandler.charWidths[0]),this.$desiredColumn?n.column=this.$desiredColumn:this.$desiredColumn=n.column),0!=e&&this.session.lineWidgets&&this.session.lineWidgets[this.lead.row]&&(r=this.session.lineWidgets[this.lead.row],e<0?e-=r.rowsAbove||0:0<e&&(e+=r.rowCount-(r.rowsAbove||0))),this.session.screenToDocumentPosition(n.row+e,n.column,i));0!==e&&0===t&&r.row===this.lead.row&&(r.column,this.lead.column),this.moveCursorTo(r.row,r.column+t,0===t)},this.moveCursorToPosition=function(e){this.moveCursorTo(e.row,e.column)},this.moveCursorTo=function(e,t,i){var n=this.session.getFoldAt(e,t,1),n=(n&&(e=n.start.row,t=n.start.column),this.$keepDesiredColumnOnChange=!0,this.session.getLine(e));/[\uDC00-\uDFFF]/.test(n.charAt(t))&&n.charAt(t-1)&&(this.lead.row==e&&this.lead.column==t+1?--t:t+=1),this.lead.setPosition(e,t),this.$keepDesiredColumnOnChange=!1,i||(this.$desiredColumn=null)},this.moveCursorToScreen=function(e,t,i){e=this.session.screenToDocumentPosition(e,t);this.moveCursorTo(e.row,e.column,i)},this.detach=function(){this.lead.detach(),this.anchor.detach(),this.session=this.doc=null},this.fromOrientedRange=function(e){this.setSelectionRange(e,e.cursor==e.start),this.$desiredColumn=e.desiredColumn||this.$desiredColumn},this.toOrientedRange=function(e){var t=this.getRange();return e?(e.start.column=t.start.column,e.start.row=t.start.row,e.end.column=t.end.column,e.end.row=t.end.row):e=t,e.cursor=this.isBackwards()?e.start:e.end,e.desiredColumn=this.$desiredColumn,e},this.getRangeOfMovements=function(e){var t=this.getCursor();try{e(this);var i=this.getCursor();return o.fromPoints(t,i)}catch(e){return o.fromPoints(t,t)}finally{this.moveCursorToPosition(t)}},this.toJSON=function(){var e;return this.rangeCount?e=this.ranges.map(function(e){var t=e.clone();return t.isBackwards=e.cursor==e.start,t}):(e=this.getRange()).isBackwards=this.isBackwards(),e},this.fromJSON=function(e){if(null==e.start){if(this.rangeList&&1<e.length){this.toSingleRange(e[0]);for(var t=e.length;t--;){var i=o.fromPoints(e[t].start,e[t].end);e[t].isBackwards&&(i.cursor=i.start),this.addRange(i,!0)}return}e=e[0]}this.rangeList&&this.toSingleRange(e),this.setSelectionRange(e,e.isBackwards)},this.isEqual=function(e){if((e.length||this.rangeCount)&&e.length!=this.rangeCount)return!1;if(!e.length||!this.ranges)return this.getRange().isEqual(e);for(var t=this.ranges.length;t--;)if(!this.ranges[t].isEqual(e[t]))return!1;return!0}}).call(n.prototype),t.Selection=n}),ace.define("ace/tokenizer",["require","exports","module","ace/config"],function(e,t,i){"use strict";function n(e){for(var t in this.states=e,this.regExps={},this.matchMappings={},this.states){for(var i=this.states[t],n=[],r=0,s=this.matchMappings[t]={defaultToken:"text"},a="g",o=[],l=0;l<i.length;l++){var c,h,u=i[l];u.defaultToken&&(s.defaultToken=u.defaultToken),u.caseInsensitive&&(a="gi"),null==u.regex||(u.regex instanceof RegExp&&(u.regex=u.regex.toString().slice(1,-1)),c=u.regex,h=new RegExp("(?:("+c+")|(.))").exec("a").length-2,Array.isArray(u.token)?1==u.token.length||1==h?u.token=u.token[0]:h-1!=u.token.length?(this.reportError("number of classes and regexp groups doesn't match",{rule:u,groupCount:h-1}),u.token=u.token[0]):(u.tokenArray=u.token,u.token=null,u.onMatch=this.$arrayTokens):"function"!=typeof u.token||u.onMatch||(u.onMatch=1<h?this.$applyToken:u.token),1<h&&(c=/\\\d/.test(u.regex)?u.regex.replace(/\\([0-9]+)/g,function(e,t){return"\\"+(parseInt(t,10)+r+1)}):(h=1,this.removeCapturingGroups(u.regex)),!u.splitRegex)&&"string"!=typeof u.token&&o.push(u),s[r]=l,r+=h,n.push(c),u.onMatch)||(u.onMatch=null)}n.length||(s[0]=0,n.push("$")),o.forEach(function(e){e.splitRegex=this.createSplitterRegexp(e.regex,a)},this),this.regExps[t]=new RegExp("("+n.join(")|(")+")|($)",a)}}var r=e("./config"),b=2e3;(function(){this.$setMaxTokenCount=function(e){b=0|e},this.$applyToken=function(e){var t=this.splitRegex.exec(e).slice(1),i=this.token.apply(this,t);if("string"==typeof i)return[{type:i,value:e}];for(var n=[],r=0,s=i.length;r<s;r++)t[r]&&(n[n.length]={type:i[r],value:t[r]});return n},this.$arrayTokens=function(e){if(!e)return[];var t=this.splitRegex.exec(e);if(!t)return"text";for(var i=[],n=this.tokenArray,r=0,s=n.length;r<s;r++)t[r+1]&&(i[i.length]={type:n[r],value:t[r+1]});return i},this.removeCapturingGroups=function(e){return e.replace(/\\.|\[(?:\\.|[^\\\]])*|\(\?[:=!]|(\()/g,function(e,t){return t?"(?:":e})},this.createSplitterRegexp=function(e,t){var a,o,l;return"$"!=(e="^"!=(e=-1!=e.indexOf("(?=")&&(a=0,o=!1,l={},e.replace(/(\\.)|(\((?:\?[=!])?)|(\))|([\[\]])/g,function(e,t,i,n,r,s){return o?o="]"!=r:r?o=!0:n?(a==l.stack&&(l.end=s+1,l.stack=-1),a--):i&&(a++,1!=i.length)&&(l.stack=a,l.start=s),e}),null!=l.end)&&/^\)*$/.test(e.substr(l.end))?e.substring(0,l.start)+e.substr(l.end):e).charAt(0)?"^"+e:e).charAt(e.length-1)&&(e+="$"),new RegExp(e,(t||"").replace("g",""))},this.getLineTokens=function(e,t){t&&"string"!=typeof t?"#tmp"===(t=(i=t.slice(0))[0])&&(i.shift(),t=i.shift()):i=[];for(var i,n,r=t||"start",s=this.states[r],a=(s||(s=this.states[r="start"]),this.matchMappings[r]),o=this.regExps[r],l=[],c=o.lastIndex=0,h=0,u={type:null,value:""};n=o.exec(e);){var d,p=a.defaultToken,g=null,f=n[0],m=o.lastIndex;m-f.length>c&&(d=e.substring(c,m-f.length),u.type==p?u.value+=d:(u.type&&l.push(u),u={type:p,value:d}));for(var y=0;y<n.length-2;y++)if(void 0!==n[y+1]){p=(g=s[a[y]]).onMatch?g.onMatch(f,r,i,e):g.token,g.next&&(r="string"==typeof g.next?g.next:g.next(r,i),(s=this.states[r])||(this.reportError("state doesn't exist",r),s=this.states[r="start"]),a=this.matchMappings[r],(o=this.regExps[r]).lastIndex=c=m),g.consumeLineEnd&&(c=m);break}if(f)if("string"==typeof p)g&&!1===g.merge||u.type!==p?(u.type&&l.push(u),u={type:p,value:f}):u.value+=f;else if(p){u.type&&l.push(u);for(u={type:null,value:""},y=0;y<p.length;y++)l.push(p[y])}if(c==e.length)break;if(c=m,h++>b){for(h>2*e.length&&this.reportError("infinite loop with in ace tokenizer",{startState:t,line:e});c<e.length;)u.type&&l.push(u),u={value:e.substring(c,c+=500),type:"overflow"};r="start",i=[];break}}return u.type&&l.push(u),1<i.length&&i[0]!==r&&i.unshift("#tmp",r),{tokens:l,state:i.length?i:r}},this.reportError=r.reportError}).call(n.prototype),t.Tokenizer=n}),ace.define("ace/mode/text_highlight_rules",["require","exports","module","ace/lib/lang"],function(e,t,i){"use strict";function n(){this.$rules={start:[{token:"empty_line",regex:"^$"},{defaultToken:"text"}]}}var l=e("../lib/lang");(function(){this.addRules=function(e,t){if(t)for(var i in e){for(var n=e[i],r=0;r<n.length;r++){var s=n[r];(s.next||s.onMatch)&&("string"==typeof s.next&&0!==s.next.indexOf(t)&&(s.next=t+s.next),s.nextState)&&0!==s.nextState.indexOf(t)&&(s.nextState=t+s.nextState)}this.$rules[t+i]=n}else for(var i in e)this.$rules[i]=e[i]},this.getRules=function(){return this.$rules},this.embedRules=function(e,t,i,n,r){e="function"==typeof e?(new e).getRules():e;if(n)for(var s=0;s<n.length;s++)n[s]=t+n[s];else for(var a in n=[],e)n.push(t+a);if(this.addRules(e,t),i)for(var o=Array.prototype[r?"push":"unshift"],s=0;s<n.length;s++)o.apply(this.$rules[n[s]],l.deepCopy(i));this.$embeds||(this.$embeds=[]),this.$embeds.push(t)},this.getEmbeds=function(){return this.$embeds};function u(e,t){return"start"==e&&!t.length||t.unshift(this.nextState,e),this.nextState}function d(e,t){return t.shift(),t.shift()||"start"}this.normalizeRules=function(){var c=0,h=this.$rules;Object.keys(h).forEach(function e(t){var i=h[t];i.processed=!0;for(var n=0;n<i.length;n++){var r=i[n],s=null,a=(Array.isArray(r)&&(s=r,r={}),!r.regex&&r.start&&(r.regex=r.start,r.next||(r.next=[]),r.next.push({defaultToken:r.token},{token:r.token+".end",regex:r.end||r.start,next:"pop"}),r.token=r.token+".start",r.push=!0),r.next||r.push);if(a&&Array.isArray(a)?((l=r.stateName)||("string"!=typeof(l=r.token)&&(l=l[0]||""),h[l]&&(l+=c++)),h[l]=a,e(r.next=l)):"pop"==a&&(r.next=d),r.push&&(r.nextState=r.next||r.push,r.next=u,delete r.push),r.rules)for(var o in r.rules)h[o]?h[o].push&&h[o].push.apply(h[o],r.rules[o]):h[o]=r.rules[o];var l="string"==typeof r?r:r.include;(s=l?Array.isArray(l)?l.map(function(e){return h[e]}):h[l]:s)&&(a=[n,1].concat(s),r.noEscape&&(a=a.filter(function(e){return!e.next})),i.splice.apply(i,a),n--),r.keywordMap&&(r.token=this.createKeywordMapper(r.keywordMap,r.defaultToken||"text",r.caseInsensitive),delete r.defaultToken)}},this)},this.createKeywordMapper=function(r,t,s,a){var o=Object.create(null);return this.$keywordList=[],Object.keys(r).forEach(function(e){for(var t=r[e].split(a||"|"),i=t.length;i--;){var n=t[i];this.$keywordList.push(n),s&&(n=n.toLowerCase()),o[n]=e}},this),r=null,s?function(e){return o[e.toLowerCase()]||t}:function(e){return o[e]||t}},this.getKeywords=function(){return this.$keywords}}).call(n.prototype),t.TextHighlightRules=n}),ace.define("ace/mode/behaviour",["require","exports","module"],function(e,t,i){"use strict";function n(){this.$behaviours={}}(function(){this.add=function(e,t,i){switch(void 0){case this.$behaviours:this.$behaviours={};case this.$behaviours[e]:this.$behaviours[e]={}}this.$behaviours[e][t]=i},this.addBehaviours=function(e){for(var t in e)for(var i in e[t])this.add(t,i,e[t][i])},this.remove=function(e){this.$behaviours&&this.$behaviours[e]&&delete this.$behaviours[e]},this.inherit=function(e,t){e=("function"==typeof e?new e:e).getBehaviours(t),this.addBehaviours(e)},this.getBehaviours=function(e){if(!e)return this.$behaviours;for(var t={},i=0;i<e.length;i++)this.$behaviours[e[i]]&&(t[e[i]]=this.$behaviours[e[i]]);return t}}).call(n.prototype),t.Behaviour=n}),ace.define("ace/token_iterator",["require","exports","module","ace/range"],function(e,t,i){"use strict";function n(e,t,i){this.$session=e,this.$row=t,this.$rowTokens=e.getTokens(t),e=e.getTokenAt(t,i),this.$tokenIndex=e?e.index:-1}var r=e("./range").Range;(function(){this.stepBackward=function(){for(--this.$tokenIndex;this.$tokenIndex<0;){if(--this.$row,this.$row<0)return this.$row=0,null;this.$rowTokens=this.$session.getTokens(this.$row),this.$tokenIndex=this.$rowTokens.length-1}return this.$rowTokens[this.$tokenIndex]},this.stepForward=function(){var e;for(this.$tokenIndex+=1;this.$tokenIndex>=this.$rowTokens.length;){if(this.$row+=1,e=e||this.$session.getLength(),this.$row>=e)return this.$row=e-1,null;this.$rowTokens=this.$session.getTokens(this.$row),this.$tokenIndex=0}return this.$rowTokens[this.$tokenIndex]},this.getCurrentToken=function(){return this.$rowTokens[this.$tokenIndex]},this.getCurrentTokenRow=function(){return this.$row},this.getCurrentTokenColumn=function(){var e=this.$rowTokens,t=this.$tokenIndex,i=e[t].start;if(void 0===i)for(i=0;0<t;)i+=e[--t].value.length;return i},this.getCurrentTokenPosition=function(){return{row:this.$row,column:this.getCurrentTokenColumn()}},this.getCurrentTokenRange=function(){var e=this.$rowTokens[this.$tokenIndex],t=this.getCurrentTokenColumn();return new r(this.$row,t,this.$row,t+e.value.length)}}).call(n.prototype),t.TokenIterator=n}),ace.define("ace/mode/behaviour/cstyle",["require","exports","module","ace/lib/oop","ace/mode/behaviour","ace/token_iterator","ace/lib/lang"],function(e,t,i){"use strict";function d(e){var t=-1;if((l=e.multiSelect&&(t=e.selection.index,l.rangeCount!=e.multiSelect.rangeCount)?{rangeCount:e.multiSelect.rangeCount}:l)[t])return f=l[t];f=l[t]={autoInsertedBrackets:0,autoInsertedRow:-1,autoInsertedLineEnd:"",maybeInsertedBrackets:0,maybeInsertedRow:-1,maybeInsertedLineStart:"",maybeInsertedLineEnd:""}}function p(e,t,i,n){var r=e.end.row-e.start.row;return{text:i+t+n,selection:[0,e.start.column+1,r,e.end.column+(r?0:1)]}}function g(u){this.add("braces","insertion",function(e,t,i,n,r){var s=i.getCursorPosition(),a=n.doc.getLine(s.row);if("{"==r)return d(i),l=i.getSelectionRange(),""!==(c=n.doc.getTextRange(l))&&"{"!==c&&i.getWrapBehavioursEnabled()?p(l,c,"{","}"):g.isSaneInsertion(i,n)?/[\]\}\)]/.test(a[s.column])||i.inMultiSelectMode||u&&u.braces?(g.recordAutoInsert(i,n,"}"),{text:"{}",selection:[1,1]}):(g.recordMaybeInsert(i,n,"{"),{text:"{",selection:[1,1]}):void 0;if("}"==r){d(i);var o=a.substring(s.column,s.column+1);if("}"==o)if(null!==n.$findOpeningBracket("}",{column:s.column+1,row:s.row})&&g.isAutoInsertedClosing(s,a,r))return g.popAutoInsertedClosing(),{text:"",selection:[1,1]}}else{if("\n"==r||"\r\n"==r){d(i);var l="";if(g.isMaybeInsertedClosing(s,a)&&(l=m.stringRepeat("}",f.maybeInsertedBrackets),g.clearMaybeInsertedClosing()),"}"===(o=a.substring(s.column,s.column+1))){var c=n.findMatchingBracket({row:s.row,column:s.column+1},"}");if(!c)return null;var h=this.$getIndent(n.getLine(c.row))}else{if(!l)return void g.clearMaybeInsertedClosing();h=this.$getIndent(a)}r=h+n.getTabString();return{text:"\n"+r+"\n"+h+l,selection:[1,r.length,1,r.length]}}g.clearMaybeInsertedClosing()}}),this.add("braces","deletion",function(e,t,i,n,r){var s=n.doc.getTextRange(r);if(!r.isMultiLine()&&"{"==s){if(d(i),"}"==n.doc.getLine(r.start.row).substring(r.end.column,r.end.column+1))return r.end.column++,r;f.maybeInsertedBrackets--}}),this.add("parens","insertion",function(e,t,i,n,r){if("("==r)return d(i),s=i.getSelectionRange(),""!==(a=n.doc.getTextRange(s))&&i.getWrapBehavioursEnabled()?p(s,a,"(",")"):g.isSaneInsertion(i,n)?(g.recordAutoInsert(i,n,")"),{text:"()",selection:[1,1]}):void 0;if(")"==r){d(i);var s=i.getCursorPosition(),a=n.doc.getLine(s.row),i=a.substring(s.column,s.column+1);if(")"==i)if(null!==n.$findOpeningBracket(")",{column:s.column+1,row:s.row})&&g.isAutoInsertedClosing(s,a,r))return g.popAutoInsertedClosing(),{text:"",selection:[1,1]}}}),this.add("parens","deletion",function(e,t,i,n,r){var s=n.doc.getTextRange(r);if(!r.isMultiLine()&&"("==s&&(d(i),")"==n.doc.getLine(r.start.row).substring(r.start.column+1,r.start.column+2)))return r.end.column++,r}),this.add("brackets","insertion",function(e,t,i,n,r){if("["==r)return d(i),s=i.getSelectionRange(),""!==(a=n.doc.getTextRange(s))&&i.getWrapBehavioursEnabled()?p(s,a,"[","]"):g.isSaneInsertion(i,n)?(g.recordAutoInsert(i,n,"]"),{text:"[]",selection:[1,1]}):void 0;if("]"==r){d(i);var s=i.getCursorPosition(),a=n.doc.getLine(s.row),i=a.substring(s.column,s.column+1);if("]"==i)if(null!==n.$findOpeningBracket("]",{column:s.column+1,row:s.row})&&g.isAutoInsertedClosing(s,a,r))return g.popAutoInsertedClosing(),{text:"",selection:[1,1]}}}),this.add("brackets","deletion",function(e,t,i,n,r){var s=n.doc.getTextRange(r);if(!r.isMultiLine()&&"["==s&&(d(i),"]"==n.doc.getLine(r.start.row).substring(r.start.column+1,r.start.column+2)))return r.end.column++,r}),this.add("string_dquotes","insertion",function(e,t,i,n,r){var s=n.$mode.$quotes||y;if(1==r.length&&s[r]&&(!this.lineCommentStart||-1==this.lineCommentStart.indexOf(r))){d(i);var a=i.getSelectionRange(),o=n.doc.getTextRange(a);if(""!==o&&(1!=o.length||!s[o])&&i.getWrapBehavioursEnabled())return p(a,o,r,r);if(!o){var s=i.getCursorPosition(),a=n.doc.getLine(s.row),o=a.substring(s.column-1,s.column),i=a.substring(s.column,s.column+1),l=n.getTokenAt(s.row,s.column),c=n.getTokenAt(s.row,s.column+1);if("\\"==o&&l&&/escape/.test(l.type))return null;var h,l=l&&/string|escape/.test(l.type),u=!c||/string|escape/.test(c.type);if(i==r)(h=l!==u)&&/string\.end/.test(c.type)&&(h=!1);else{if(l&&!u)return null;if(l&&u)return null;c=n.$mode.tokenRe,l=(c.lastIndex=0,c.test(o)),u=(c.lastIndex=0,c.test(o));if(l||u)return null;if(i&&!/[\s;,.})\]\\]/.test(i))return null;n=a[s.column-2];if(o==r&&(n==r||c.test(n)))return null;h=!0}return{text:h?r+r:"",selection:[1,1]}}}}),this.add("string_dquotes","deletion",function(e,t,i,n,r){var s=n.$mode.$quotes||y,a=n.doc.getTextRange(r);if(!r.isMultiLine()&&s.hasOwnProperty(a)&&(d(i),n.doc.getLine(r.start.row).substring(r.start.column+1,r.start.column+2)==a))return r.end.column++,r})}var f,n=e("../../lib/oop"),r=e("../behaviour").Behaviour,s=e("../../token_iterator").TokenIterator,m=e("../../lib/lang"),a=["text","paren.rparen","rparen","paren","punctuation.operator"],o=["text","paren.rparen","rparen","paren","punctuation.operator","comment"],l={},y={'"':'"',"'":"'"};g.isSaneInsertion=function(e,t){var i=e.getCursorPosition(),n=new s(t,i.row,i.column);if(!this.$matchTokenType(n.getCurrentToken()||"text",a)){if(/[)}\]]/.test(e.session.getLine(i.row)[i.column]))return!0;e=new s(t,i.row,i.column+1);if(!this.$matchTokenType(e.getCurrentToken()||"text",a))return!1}return n.stepForward(),n.getCurrentTokenRow()!==i.row||this.$matchTokenType(n.getCurrentToken()||"text",o)},g.$matchTokenType=function(e,t){return-1<t.indexOf(e.type||e)},g.recordAutoInsert=function(e,t,i){e=e.getCursorPosition(),t=t.doc.getLine(e.row);this.isAutoInsertedClosing(e,t,f.autoInsertedLineEnd[0])||(f.autoInsertedBrackets=0),f.autoInsertedRow=e.row,f.autoInsertedLineEnd=i+t.substr(e.column),f.autoInsertedBrackets++},g.recordMaybeInsert=function(e,t,i){e=e.getCursorPosition(),t=t.doc.getLine(e.row);this.isMaybeInsertedClosing(e,t)||(f.maybeInsertedBrackets=0),f.maybeInsertedRow=e.row,f.maybeInsertedLineStart=t.substr(0,e.column)+i,f.maybeInsertedLineEnd=t.substr(e.column),f.maybeInsertedBrackets++},g.isAutoInsertedClosing=function(e,t,i){return 0<f.autoInsertedBrackets&&e.row===f.autoInsertedRow&&i===f.autoInsertedLineEnd[0]&&t.substr(e.column)===f.autoInsertedLineEnd},g.isMaybeInsertedClosing=function(e,t){return 0<f.maybeInsertedBrackets&&e.row===f.maybeInsertedRow&&t.substr(e.column)===f.maybeInsertedLineEnd&&t.substr(0,e.column)==f.maybeInsertedLineStart},g.popAutoInsertedClosing=function(){f.autoInsertedLineEnd=f.autoInsertedLineEnd.substr(1),f.autoInsertedBrackets--},g.clearMaybeInsertedClosing=function(){f&&(f.maybeInsertedBrackets=0,f.maybeInsertedRow=-1)},n.inherits(g,r),t.CstyleBehaviour=g}),ace.define("ace/unicode",["require","exports","module"],function(e,t,i){"use strict";for(var n=[48,9,8,25,5,0,2,25,48,0,11,0,5,0,6,22,2,30,2,457,5,11,15,4,8,0,2,0,18,116,2,1,3,3,9,0,2,2,2,0,2,19,2,82,2,138,2,4,3,155,12,37,3,0,8,38,10,44,2,0,2,1,2,1,2,0,9,26,6,2,30,10,7,61,2,9,5,101,2,7,3,9,2,18,3,0,17,58,3,100,15,53,5,0,6,45,211,57,3,18,2,5,3,11,3,9,2,1,7,6,2,2,2,7,3,1,3,21,2,6,2,0,4,3,3,8,3,1,3,3,9,0,5,1,2,4,3,11,16,2,2,5,5,1,3,21,2,6,2,1,2,1,2,1,3,0,2,4,5,1,3,2,4,0,8,3,2,0,8,15,12,2,2,8,2,2,2,21,2,6,2,1,2,4,3,9,2,2,2,2,3,0,16,3,3,9,18,2,2,7,3,1,3,21,2,6,2,1,2,4,3,8,3,1,3,2,9,1,5,1,2,4,3,9,2,0,17,1,2,5,4,2,2,3,4,1,2,0,2,1,4,1,4,2,4,11,5,4,4,2,2,3,3,0,7,0,15,9,18,2,2,7,2,2,2,22,2,9,2,4,4,7,2,2,2,3,8,1,2,1,7,3,3,9,19,1,2,7,2,2,2,22,2,9,2,4,3,8,2,2,2,3,8,1,8,0,2,3,3,9,19,1,2,7,2,2,2,22,2,15,4,7,2,2,2,3,10,0,9,3,3,9,11,5,3,1,2,17,4,23,2,8,2,0,3,6,4,0,5,5,2,0,2,7,19,1,14,57,6,14,2,9,40,1,2,0,3,1,2,0,3,0,7,3,2,6,2,2,2,0,2,0,3,1,2,12,2,2,3,4,2,0,2,5,3,9,3,1,35,0,24,1,7,9,12,0,2,0,2,0,5,9,2,35,5,19,2,5,5,7,2,35,10,0,58,73,7,77,3,37,11,42,2,0,4,328,2,3,3,6,2,0,2,3,3,40,2,3,3,32,2,3,3,6,2,0,2,3,3,14,2,56,2,3,3,66,5,0,33,15,17,84,13,619,3,16,2,25,6,74,22,12,2,6,12,20,12,19,13,12,2,2,2,1,13,51,3,29,4,0,5,1,3,9,34,2,3,9,7,87,9,42,6,69,11,28,4,11,5,11,11,39,3,4,12,43,5,25,7,10,38,27,5,62,2,28,3,10,7,9,14,0,89,75,5,9,18,8,13,42,4,11,71,55,9,9,4,48,83,2,2,30,14,230,23,280,3,5,3,37,3,5,3,7,2,0,2,0,2,0,2,30,3,52,2,6,2,0,4,2,2,6,4,3,3,5,5,12,6,2,2,6,67,1,20,0,29,0,14,0,17,4,60,12,5,0,4,11,18,0,5,0,3,9,2,0,4,4,7,0,2,0,2,0,2,3,2,10,3,3,6,4,5,0,53,1,2684,46,2,46,2,132,7,6,15,37,11,53,10,0,17,22,10,6,2,6,2,6,2,6,2,6,2,6,2,6,2,6,2,31,48,0,470,1,36,5,2,4,6,1,5,85,3,1,3,2,2,89,2,3,6,40,4,93,18,23,57,15,513,6581,75,20939,53,1164,68,45,3,268,4,27,21,31,3,13,13,1,2,24,9,69,11,1,38,8,3,102,3,1,111,44,25,51,13,68,12,9,7,23,4,0,5,45,3,35,13,28,4,64,15,10,39,54,10,13,3,9,7,22,4,1,5,66,25,2,227,42,2,1,3,9,7,11171,13,22,5,48,8453,301,3,61,3,105,39,6,13,4,6,11,2,12,2,4,2,0,2,1,2,1,2,107,34,362,19,63,3,53,41,11,5,15,17,6,13,1,25,2,33,4,2,134,20,9,8,25,5,0,2,25,12,88,4,5,3,5,3,5,3,2],r=0,s=[],a=0;a<n.length;a+=2)s.push(r+=n[a]),n[a+1]&&s.push(45,r+=n[a+1]);t.wordChars=String.fromCharCode.apply(null,s)}),ace.define("ace/mode/text",["require","exports","module","ace/config","ace/tokenizer","ace/mode/text_highlight_rules","ace/mode/behaviour/cstyle","ace/unicode","ace/lib/lang","ace/token_iterator","ace/range"],function(e,t,i){"use strict";function n(){this.HighlightRules=s}var a=e("../config"),r=e("../tokenizer").Tokenizer,s=e("./text_highlight_rules").TextHighlightRules,o=e("./behaviour/cstyle").CstyleBehaviour,l=e("../unicode"),w=e("../lib/lang"),f=e("../token_iterator").TokenIterator,m=e("../range").Range;(function(){this.$defaultBehaviour=new o,this.tokenRe=new RegExp("^["+l.wordChars+"\\$_]+","g"),this.nonTokenRe=new RegExp("^(?:[^"+l.wordChars+"\\$_]|\\s])+","g"),this.getTokenizer=function(){return this.$tokenizer||(this.$highlightRules=this.$highlightRules||new this.HighlightRules(this.$highlightRuleConfig),this.$tokenizer=new r(this.$highlightRules.getRules())),this.$tokenizer},this.lineCommentStart="",this.blockComment="",this.toggleCommentLines=function(e,r,i,n){function t(e){for(var t=i;t<=n;t++)e(s.getLine(t),t)}var s=r.doc,a=!0,o=!0,l=1/0,c=r.getTabSize(),h=!1;if(this.lineCommentStart){m=Array.isArray(this.lineCommentStart)?(b=this.lineCommentStart.map(w.escapeRegExp).join("|"),this.lineCommentStart[0]):(b=w.escapeRegExp(this.lineCommentStart),this.lineCommentStart),b=new RegExp("^(\\s*)(?:"+b+") ?"),h=r.getUseSoftTabs();var u=function(e,t){var i,n,r=e.match(b);r&&(i=r[1].length,n=r[0].length,f(e,i,n)||" "!=r[0][n-1]||n--,s.removeInLine(t,i,n))},d=m+" ",p=function(e,t){a&&!/\S/.test(e)||(f(e,l,l)?s.insertInLine({row:t,column:l},d):s.insertInLine({row:t,column:l},m))},g=function(e,t){return b.test(e)},f=function(e,t,i){for(var n=0;t--&&" "==e.charAt(t);)n++;if(n%c!=0)return!1;for(n=0;" "==e.charAt(i++);)n++;return 2<c?n%c!=c-1:n%c==0}}else{if(!this.blockComment)return!1;var m=this.blockComment.start,y=this.blockComment.end,b=new RegExp("^(\\s*)(?:"+w.escapeRegExp(m)+")"),v=new RegExp("(?:"+w.escapeRegExp(y)+")\\s*$"),p=function(e,t){g(e,t)||a&&!/\S/.test(e)||(s.insertInLine({row:t,column:e.length},y),s.insertInLine({row:t,column:l},m))},u=function(e,t){var i;(i=e.match(v))&&s.removeInLine(t,e.length-i[0].length,e.length),(i=e.match(b))&&s.removeInLine(t,i[1].length,i[0].length)},g=function(e,t){if(b.test(e))return!0;for(var i=r.getTokens(t),n=0;n<i.length;n++)if("comment"===i[n].type)return!0}}var x=1/0;t(function(e,t){var i=e.search(/\S/);-1!==i?(i<l&&(l=i),o&&!g(e,t)&&(o=!1)):x>e.length&&(x=e.length)}),l==1/0&&(l=x,o=a=!1),h&&l%c!=0&&(l=Math.floor(l/c)*c),t(o?u:p)},this.toggleBlockComment=function(e,t,i,n){var r=this.blockComment;if(r){!r.start&&r[0]&&(r=r[0]);var s,a,o=(d=new f(t,n.row,n.column)).getCurrentToken(),l=(t.selection,t.selection.toOrientedRange());if(o&&/comment/.test(o.type)){for(;o&&/comment/.test(o.type);){if(-1!=(p=o.value.indexOf(r.start))){var c=d.getCurrentTokenRow(),h=d.getCurrentTokenColumn()+p,u=new m(c,h,c,h+r.start.length);break}o=d.stepBackward()}for(var d,p,o=(d=new f(t,n.row,n.column)).getCurrentToken();o&&/comment/.test(o.type);){if(-1!=(p=o.value.indexOf(r.end))){var c=d.getCurrentTokenRow(),h=d.getCurrentTokenColumn()+p,g=new m(c,h,c,h+r.end.length);break}o=d.stepForward()}g&&t.remove(g),u&&(t.remove(u),s=u.start.row,a=-r.start.length)}else a=r.start.length,s=i.start.row,t.insert(i.end,r.end),t.insert(i.start,r.start);l.start.row==s&&(l.start.column+=a),l.end.row==s&&(l.end.column+=a),t.selection.fromOrientedRange(l)}},this.getNextLineIndent=function(e,t,i){return this.$getIndent(t)},this.checkOutdent=function(e,t,i){return!1},this.autoOutdent=function(e,t,i){},this.$getIndent=function(e){return e.match(/^\s*/)[0]},this.createWorker=function(e){return null},this.createModeDelegates=function(e){for(var n in this.$embeds=[],this.$modes={},e){var t,i,r;e[n]&&(i=(t=e[n]).prototype.$id,(r=a.$modes[i])||(a.$modes[i]=r=new t),a.$modes[n]||(a.$modes[n]=r),this.$embeds.push(n),this.$modes[n]=r)}for(var s=["toggleBlockComment","toggleCommentLines","getNextLineIndent","checkOutdent","autoOutdent","transformAction","getCompletions"],n=0;n<s.length;n++)!function(e){var t=s[n],i=e[t];e[s[n]]=function(){return this.$delegator(t,arguments,i)}}(this)},this.$delegator=function(e,t,i){var n=t[0]||"start";if("string"!=typeof n){if(Array.isArray(n[2])){var r=n[2][n[2].length-1];if(a=this.$modes[r])return a[e].apply(a,[n[1]].concat([].slice.call(t,1)))}n=n[0]||"start"}for(var s=0;s<this.$embeds.length;s++)if(this.$modes[this.$embeds[s]]){var a,o=n.split(this.$embeds[s]);if(!o[0]&&o[1])return t[0]=o[1],(a=this.$modes[this.$embeds[s]])[e].apply(a,t)}r=i.apply(this,t);return i?r:void 0},this.transformAction=function(e,t,i,n,r){if(this.$behaviour){var s,a=this.$behaviour.getBehaviours();for(s in a)if(a[s][t]){var o=a[s][t].apply(this,arguments);if(o)return o}}},this.getKeywords=function(e){if(!this.completionKeywords){var t=this.$tokenizer.rules,i=[];for(n in t)for(var n,r=t[n],s=0,a=r.length;s<a;s++)if("string"==typeof r[s].token)/keyword|support|storage/.test(r[s].token)&&i.push(r[s].regex);else if("object"==typeof r[s].token)for(var o=0,l=r[s].token.length;o<l;o++)/keyword|support|storage/.test(r[s].token[o])&&(n=r[s].regex.match(/\(.+?\)/g)[o],i.push(n.substr(1,n.length-2)));this.completionKeywords=i}return e?i.concat(this.$keywordList||[]):this.$keywordList},this.$createKeywordList=function(){return this.$highlightRules||this.getTokenizer(),this.$keywordList=this.$highlightRules.$keywordList||[]},this.getCompletions=function(e,t,i,n){return(this.$keywordList||this.$createKeywordList()).map(function(e){return{name:e,value:e,score:0,meta:"keyword"}})},this.$id="ace/mode/text"}).call(n.prototype),t.Mode=n}),ace.define("ace/apply_delta",["require","exports","module"],function(e,t,i){"use strict";t.applyDelta=function(e,t,i){var n=t.start.row,r=t.start.column,s=e[n]||"";switch(t.action){case"insert":1===t.lines.length?e[n]=s.substring(0,r)+t.lines[0]+s.substring(r):(a=[n,1].concat(t.lines),e.splice.apply(e,a),e[n]=s.substring(0,r)+e[n],e[n+t.lines.length-1]+=s.substring(r));break;case"remove":var a=t.end.column,o=t.end.row;n===o?e[n]=s.substring(0,r)+s.substring(a):e.splice(n,o-n+1,s.substring(0,r)+e[o].substring(a))}}}),ace.define("ace/anchor",["require","exports","module","ace/lib/oop","ace/lib/event_emitter"],function(e,t,i){"use strict";var n=e("./lib/oop"),r=e("./lib/event_emitter").EventEmitter,e=t.Anchor=function(e,t,i){this.$onChange=this.onChange.bind(this),this.attach(e),void 0===i?this.setPosition(t.row,t.column):this.setPosition(t,i)};!function(){function o(e,t,i){i=i?e.column<=t.column:e.column<t.column;return e.row<t.row||e.row==t.row&&i}n.implement(this,r),this.getPosition=function(){return this.$clipPositionToDocument(this.row,this.column)},this.getDocument=function(){return this.document},this.$insertRight=!1,this.onChange=function(e){var t,i,n,r,s,a;e.start.row==e.end.row&&e.start.row!=this.row||e.start.row>this.row||(e=e,t={row:this.row,column:this.column},i=this.$insertRight,n=((a="insert"==e.action)?1:-1)*(e.end.row-e.start.row),r=(a?1:-1)*(e.end.column-e.start.column),s=e.start,a=a?s:e.end,e=o(t,s,i)?{row:t.row,column:t.column}:o(a,t,!i)?{row:t.row+n,column:t.column+(t.row==a.row?r:0)}:{row:s.row,column:s.column},this.setPosition(e.row,e.column,!0))},this.setPosition=function(e,t,i){i=i?{row:e,column:t}:this.$clipPositionToDocument(e,t);this.row==i.row&&this.column==i.column||(e={row:this.row,column:this.column},this.row=i.row,this.column=i.column,this._signal("change",{old:e,value:i}))},this.detach=function(){this.document.off("change",this.$onChange)},this.attach=function(e){this.document=e||this.document,this.document.on("change",this.$onChange)},this.$clipPositionToDocument=function(e,t){var i={};return e>=this.document.getLength()?(i.row=Math.max(0,this.document.getLength()-1),i.column=this.document.getLine(i.row).length):e<0?(i.row=0,i.column=0):(i.row=e,i.column=Math.min(this.document.getLine(i.row).length,Math.max(0,t))),t<0&&(i.column=0),i}}.call(e.prototype)}),ace.define("ace/document",["require","exports","module","ace/lib/oop","ace/apply_delta","ace/lib/event_emitter","ace/range","ace/anchor"],function(e,t,i){"use strict";function n(e){this.$lines=[""],0===e.length?this.$lines=[""]:Array.isArray(e)?this.insertMergedLines({row:0,column:0},e):this.insert({row:0,column:0},e)}var r=e("./lib/oop"),s=e("./apply_delta").applyDelta,a=e("./lib/event_emitter").EventEmitter,o=e("./range").Range,l=e("./anchor").Anchor;(function(){r.implement(this,a),this.setValue=function(e){var t=this.getLength()-1;this.remove(new o(0,0,t,this.getLine(t).length)),this.insert({row:0,column:0},e)},this.getValue=function(){return this.getAllLines().join(this.getNewLineCharacter())},this.createAnchor=function(e,t){return new l(this,e,t)},0==="aaa".split(/a/).length?this.$split=function(e){return e.replace(/\r\n|\r/g,"\n").split("\n")}:this.$split=function(e){return e.split(/\r\n|\r|\n/)},this.$detectNewLine=function(e){e=e.match(/^.*?(\r\n|\r|\n)/m);this.$autoNewLine=e?e[1]:"\n",this._signal("changeNewLineMode")},this.getNewLineCharacter=function(){switch(this.$newLineMode){case"windows":return"\r\n";case"unix":return"\n";default:return this.$autoNewLine||"\n"}},this.$autoNewLine="",this.$newLineMode="auto",this.setNewLineMode=function(e){this.$newLineMode!==e&&(this.$newLineMode=e,this._signal("changeNewLineMode"))},this.getNewLineMode=function(){return this.$newLineMode},this.isNewLine=function(e){return"\r\n"==e||"\r"==e||"\n"==e},this.getLine=function(e){return this.$lines[e]||""},this.getLines=function(e,t){return this.$lines.slice(e,t+1)},this.getAllLines=function(){return this.getLines(0,this.getLength())},this.getLength=function(){return this.$lines.length},this.getTextRange=function(e){return this.getLinesForRange(e).join(this.getNewLineCharacter())},this.getLinesForRange=function(e){var t,i;return e.start.row===e.end.row?t=[this.getLine(e.start.row).substring(e.start.column,e.end.column)]:((t=this.getLines(e.start.row,e.end.row))[0]=(t[0]||"").substring(e.start.column),i=t.length-1,e.end.row-e.start.row==i&&(t[i]=t[i].substring(0,e.end.column))),t},this.insertLines=function(e,t){return console.warn("Use of document.insertLines is deprecated. Use the insertFullLines method instead."),this.insertFullLines(e,t)},this.removeLines=function(e,t){return console.warn("Use of document.removeLines is deprecated. Use the removeFullLines method instead."),this.removeFullLines(e,t)},this.insertNewLine=function(e){return console.warn("Use of document.insertNewLine is deprecated. Use insertMergedLines(position, ['', '']) instead."),this.insertMergedLines(e,["",""])},this.insert=function(e,t){return this.getLength()<=1&&this.$detectNewLine(t),this.insertMergedLines(e,this.$split(t))},this.insertInLine=function(e,t){var i=this.clippedPos(e.row,e.column),e=this.pos(e.row,e.column+t.length);return this.applyDelta({start:i,end:e,action:"insert",lines:[t]},!0),this.clonePos(e)},this.clippedPos=function(e,t){var i=this.getLength(),i=(void 0===e?e=i:e<0?e=0:i<=e&&(e=i-1,t=void 0),this.getLine(e));return null==t&&(t=i.length),{row:e,column:t=Math.min(Math.max(t,0),i.length)}},this.clonePos=function(e){return{row:e.row,column:e.column}},this.pos=function(e,t){return{row:e,column:t}},this.$clipPosition=function(e){var t=this.getLength();return e.row>=t?(e.row=Math.max(0,t-1),e.column=this.getLine(t-1).length):(e.row=Math.max(0,e.row),e.column=Math.min(Math.max(e.column,0),this.getLine(e.row).length)),e},this.insertFullLines=function(e,t){var i=0,i=(e=Math.min(Math.max(e,0),this.getLength()))<this.getLength()?(t=t.concat([""]),0):(t=[""].concat(t),this.$lines[--e].length);this.insertMergedLines({row:e,column:i},t)},this.insertMergedLines=function(e,t){var e=this.clippedPos(e.row,e.column),i={row:e.row+t.length-1,column:(1==t.length?e.column:0)+t[t.length-1].length};return this.applyDelta({start:e,end:i,action:"insert",lines:t}),this.clonePos(i)},this.remove=function(e){var t=this.clippedPos(e.start.row,e.start.column),e=this.clippedPos(e.end.row,e.end.column);return this.applyDelta({start:t,end:e,action:"remove",lines:this.getLinesForRange({start:t,end:e})}),this.clonePos(t)},this.removeInLine=function(e,t,i){t=this.clippedPos(e,t),e=this.clippedPos(e,i);return this.applyDelta({start:t,end:e,action:"remove",lines:this.getLinesForRange({start:t,end:e})},!0),this.clonePos(t)},this.removeFullLines=function(e,t){e=Math.min(Math.max(0,e),this.getLength()-1);var i=(t=Math.min(Math.max(0,t),this.getLength()-1))==this.getLength()-1&&0<e,n=t<this.getLength()-1,r=i?e-1:e,i=i?this.getLine(r).length:0,s=n?t+1:t,n=n?0:this.getLine(s).length,r=new o(r,i,s,n),i=this.$lines.slice(e,t+1);return this.applyDelta({start:r.start,end:r.end,action:"remove",lines:this.getLinesForRange(r)}),i},this.removeNewLine=function(e){e<this.getLength()-1&&0<=e&&this.applyDelta({start:this.pos(e,this.getLine(e).length),end:this.pos(e+1,0),action:"remove",lines:["",""]})},this.replace=function(e,t){return e instanceof o||(e=o.fromPoints(e.start,e.end)),0===t.length&&e.isEmpty()?e.start:t==this.getTextRange(e)?e.end:(this.remove(e),t?this.insert(e.start,t):e.start)},this.applyDeltas=function(e){for(var t=0;t<e.length;t++)this.applyDelta(e[t])},this.revertDeltas=function(e){for(var t=e.length-1;0<=t;t--)this.revertDelta(e[t])},this.applyDelta=function(e,t){var i="insert"==e.action;(i?e.lines.length<=1&&!e.lines[0]:!o.comparePoints(e.start,e.end))||(i&&2e4<e.lines.length?this.$splitAndapplyLargeDelta(e,2e4):(s(this.$lines,e,t),this._signal("change",e)))},this.$safeApplyDelta=function(e){var t=this.$lines.length;("remove"==e.action&&e.start.row<t&&e.end.row<t||"insert"==e.action&&e.start.row<=t)&&this.applyDelta(e)},this.$splitAndapplyLargeDelta=function(e,t){for(var i=e.lines,n=i.length-t+1,r=e.start.row,s=e.start.column,a=0,o=0;a<n;a=o){o+=t-1;var l=i.slice(a,o);l.push(""),this.applyDelta({start:this.pos(r+a,s),end:this.pos(r+o,s=0),action:e.action,lines:l},!0)}e.lines=i.slice(a),e.start.row=r+a,e.start.column=s,this.applyDelta(e,!0)},this.revertDelta=function(e){this.$safeApplyDelta({start:this.clonePos(e.start),end:this.clonePos(e.end),action:"insert"==e.action?"remove":"insert",lines:e.lines.slice()})},this.indexToPosition=function(e,t){for(var i=this.$lines||this.getAllLines(),n=this.getNewLineCharacter().length,r=t||0,s=i.length;r<s;r++)if((e-=i[r].length+n)<0)return{row:r,column:e+i[r].length+n};return{row:s-1,column:e+i[s-1].length+n}},this.positionToIndex=function(e,t){for(var i=this.$lines||this.getAllLines(),n=this.getNewLineCharacter().length,r=0,s=Math.min(e.row,i.length),a=t||0;a<s;++a)r+=i[a].length+n;return r+e.column}}).call(n.prototype),t.Document=n}),ace.define("ace/background_tokenizer",["require","exports","module","ace/lib/oop","ace/lib/event_emitter"],function(e,t,i){"use strict";function n(e,t){this.running=!1,this.lines=[],this.states=[],this.currentLine=0,this.tokenizer=e;var o=this;this.$worker=function(){if(o.running){for(var e=new Date,t=o.currentLine,i=-1,n=o.doc,r=t;o.lines[t];)t++;var s=n.getLength(),a=0;for(o.running=!1;t<s;){for(o.$tokenizeRow(t),i=t;t++,o.lines[t];);if(++a%5==0&&20<new Date-e){o.running=setTimeout(o.$worker,20);break}}o.currentLine=t,r<=(i=-1==i?t:i)&&o.fireUpdateEvent(r,i)}}}var r=e("./lib/oop"),s=e("./lib/event_emitter").EventEmitter;(function(){r.implement(this,s),this.setTokenizer=function(e){this.tokenizer=e,this.lines=[],this.states=[],this.start(0)},this.setDocument=function(e){this.doc=e,this.lines=[],this.states=[],this.stop()},this.fireUpdateEvent=function(e,t){this._signal("update",{data:{first:e,last:t}})},this.start=function(e){this.currentLine=Math.min(e||0,this.currentLine,this.doc.getLength()),this.lines.splice(this.currentLine,this.lines.length),this.states.splice(this.currentLine,this.states.length),this.stop(),this.running=setTimeout(this.$worker,700)},this.scheduleStart=function(){this.running||(this.running=setTimeout(this.$worker,700))},this.$updateOnChange=function(e){var t=e.start.row,i=e.end.row-t;0==i?this.lines[t]=null:"remove"==e.action?(this.lines.splice(t,1+i,null),this.states.splice(t,1+i,null)):((e=Array(1+i)).unshift(t,1),this.lines.splice.apply(this.lines,e),this.states.splice.apply(this.states,e)),this.currentLine=Math.min(t,this.currentLine,this.doc.getLength()),this.stop()},this.stop=function(){this.running&&clearTimeout(this.running),this.running=!1},this.getTokens=function(e){return this.lines[e]||this.$tokenizeRow(e)},this.getState=function(e){return this.currentLine==e&&this.$tokenizeRow(e),this.states[e]||"start"},this.$tokenizeRow=function(e){var t=this.doc.getLine(e),i=this.states[e-1],t=this.tokenizer.getLineTokens(t,i,e);return this.states[e]+""!=t.state+""?(this.states[e]=t.state,this.lines[e+1]=null,this.currentLine>e+1&&(this.currentLine=e+1)):this.currentLine==e&&(this.currentLine=e+1),this.lines[e]=t.tokens}}).call(n.prototype),t.BackgroundTokenizer=n}),ace.define("ace/search_highlight",["require","exports","module","ace/lib/lang","ace/lib/oop","ace/range"],function(e,t,i){"use strict";function n(e,t,i){this.setRegexp(e),this.clazz=t,this.type=i||"text"}var c=e("./lib/lang"),h=(e("./lib/oop"),e("./range").Range);(function(){this.MAX_RANGES=500,this.setRegexp=function(e){this.regExp+""!=e+""&&(this.regExp=e,this.cache=[])},this.update=function(e,t,i,n){if(this.regExp)for(var r=n.firstRow,s=n.lastRow,a=r;a<=s;a++){var o=this.cache[a];null==o&&(o=(o=(o=c.getMatchOffsets(i.getLine(a),this.regExp)).length>this.MAX_RANGES?o.slice(0,this.MAX_RANGES):o).map(function(e){return new h(a,e.offset,a,e.offset+e.length)}),this.cache[a]=o.length?o:"");for(var l=o.length;l--;)t.drawSingleLineMarker(e,o[l].toScreenRange(i),this.clazz,n)}}}).call(n.prototype),t.SearchHighlight=n}),ace.define("ace/edit_session/fold_line",["require","exports","module","ace/range"],function(e,t,i){"use strict";function r(e,t){this.foldData=e,Array.isArray(t)?this.folds=t:t=this.folds=[t];e=t[t.length-1];this.range=new n(t[0].start.row,t[0].start.column,e.end.row,e.end.column),this.start=this.range.start,this.end=this.range.end,this.folds.forEach(function(e){e.setFoldLine(this)},this)}var n=e("../range").Range;(function(){this.shiftRow=function(t){this.start.row+=t,this.end.row+=t,this.folds.forEach(function(e){e.start.row+=t,e.end.row+=t})},this.addFold=function(e){if(e.sameRow){if(e.start.row<this.startRow||e.endRow>this.endRow)throw new Error("Can't add a fold to this FoldLine as it has no connection");this.folds.push(e),this.folds.sort(function(e,t){return-e.range.compareEnd(t.start.row,t.start.column)}),0<this.range.compareEnd(e.start.row,e.start.column)?(this.end.row=e.end.row,this.end.column=e.end.column):this.range.compareStart(e.end.row,e.end.column)<0&&(this.start.row=e.start.row,this.start.column=e.start.column)}else if(e.start.row==this.end.row)this.folds.push(e),this.end.row=e.end.row,this.end.column=e.end.column;else{if(e.end.row!=this.start.row)throw new Error("Trying to add fold to FoldRow that doesn't have a matching row");this.folds.unshift(e),this.start.row=e.start.row,this.start.column=e.start.column}e.foldLine=this},this.containsRow=function(e){return e>=this.start.row&&e<=this.end.row},this.walk=function(e,t,i){var n,r,s=0,a=this.folds,o=!0;null==t&&(t=this.end.row,i=this.end.column);for(var l=0;l<a.length;l++){if(-1==(r=(n=a[l]).range.compareStart(t,i)))return void e(null,t,i,s,o);if(!e(null,n.start.row,n.start.column,s,o)&&e(n.placeholder,n.start.row,n.start.column,s)||0===r)return;o=!n.sameRow,s=n.end.column}e(null,t,i,s,o)},this.getNextFoldTo=function(e,t){for(var i,n,r=0;r<this.folds.length;r++){if(-1==(n=(i=this.folds[r]).range.compareEnd(e,t)))return{fold:i,kind:"after"};if(0===n)return{fold:i,kind:"inside"}}return null},this.addRemoveChars=function(e,t,i){var n,r=this.getNextFoldTo(e,t);if(r)if(n=r.fold,"inside"==r.kind&&n.start.column!=t&&n.start.row!=e)window.console&&window.console.log(e,t,n);else if(n.start.row==e){var s,a=(s=this.folds).indexOf(n);for(0===a&&(this.start.column+=i);a<s.length;a++){if((n=s[a]).start.column+=i,!n.sameRow)return;n.end.column+=i}this.end.column+=i}},this.split=function(e,t){var i,n,e=this.getNextFoldTo(e,t);return e&&"inside"!=e.kind?(t=e.fold,e=this.folds,i=this.foldData,t=e.indexOf(t),n=e[t-1],this.end.row=n.end.row,this.end.column=n.end.column,n=new r(i,e=e.splice(t,e.length-t)),i.splice(i.indexOf(this)+1,0,n),n):null},this.merge=function(e){for(var t=e.folds,i=0;i<t.length;i++)this.addFold(t[i]);var n=this.foldData;n.splice(n.indexOf(e),1)},this.toString=function(){var t=[this.range.toString()+": ["];return this.folds.forEach(function(e){t.push(" "+e.toString())}),t.push("]"),t.join("\n")},this.idxToPosition=function(e){for(var t=0,i=0;i<this.folds.length;i++){var n=this.folds[i];if((e-=n.start.column-t)<0)return{row:n.start.row,column:n.start.column+e};if((e-=n.placeholder.length)<0)return n.start;t=n.end.column}return{row:this.end.row,column:this.end.column+e}}}).call(r.prototype),t.FoldLine=r}),ace.define("ace/range_list",["require","exports","module","ace/range"],function(e,t,i){"use strict";function n(){this.ranges=[],this.$bias=1}var o=e("./range").Range.comparePoints;(function(){this.comparePoints=o,this.pointIndex=function(e,t,i){for(var n=this.ranges,r=i||0;r<n.length;r++){var s=n[r],a=o(e,s.end);if(!(0<a))return s=o(e,s.start),0===a?t&&0!==s?-r-2:r:0<s||0===s&&!t?r:-r-1}return-r-1},this.add=function(e){var t=!e.isEmpty(),i=this.pointIndex(e.start,t),t=this.pointIndex(e.end,t,i=i<0?-i-1:i);return t<0?t=-t-1:t++,this.ranges.splice(i,t-i,e)},this.addList=function(e){for(var t=[],i=e.length;i--;)t.push.apply(t,this.add(e[i]));return t},this.substractPoint=function(e){e=this.pointIndex(e);if(0<=e)return this.ranges.splice(e,1)},this.merge=function(){for(var e=[],t=this.ranges,i=(t=t.sort(function(e,t){return o(e.start,t.start)}))[0],n=1;n<t.length;n++){var r=i,i=t[n],s=o(r.end,i.start);s<0||(0!=s||r.isEmpty()||i.isEmpty())&&(o(r.end,i.end)<0&&(r.end.row=i.end.row,r.end.column=i.end.column),t.splice(n,1),e.push(i),i=r,n--)}return this.ranges=t,e},this.contains=function(e,t){return 0<=this.pointIndex({row:e,column:t})},this.containsPoint=function(e){return 0<=this.pointIndex(e)},this.rangeAtPoint=function(e){e=this.pointIndex(e);if(0<=e)return this.ranges[e]},this.clipRows=function(e,t){var i=this.ranges;if(i[0].start.row>t||i[i.length-1].start.row<e)return[];for(var e=this.pointIndex({row:e,column:0}),n=this.pointIndex({row:t,column:0},e=e<0?-e-1:e),r=(n<0&&(n=-n-1),[]),s=e;s<n;s++)r.push(i[s]);return r},this.removeAll=function(){return this.ranges.splice(0,this.ranges.length)},this.attach=function(e){this.session&&this.detach(),this.session=e,this.onChange=this.$onChange.bind(this),this.session.on("change",this.onChange)},this.detach=function(){this.session&&(this.session.removeListener("change",this.onChange),this.session=null)},this.$onChange=function(e){for(var t=e.start,i=e.end,n=t.row,r=i.row,s=this.ranges,a=0,o=s.length;a<o&&!((h=s[a]).end.row>=n);a++);if("insert"==e.action)for(var l=r-n,c=-t.column+i.column;a<o;a++){if((h=s[a]).start.row>n)break;h.start.row==n&&h.start.column>=t.column&&(h.start.column==t.column&&this.$bias<=0||(h.start.column+=c,h.start.row+=l)),h.end.row==n&&h.end.column>=t.column&&(h.end.column==t.column&&this.$bias<0||(h.end.column==t.column&&0<c&&a<o-1&&h.end.column>h.start.column&&h.end.column==s[a+1].start.column&&(h.end.column-=c),h.end.column+=c,h.end.row+=l))}else for(var h,l=n-r,c=t.column-i.column;a<o;a++){if((h=s[a]).start.row>r)break;h.end.row<r&&(n<h.end.row||n==h.end.row&&t.column<h.end.column)?(h.end.row=n,h.end.column=t.column):h.end.row==r?h.end.column<=i.column?(l||h.end.column>t.column)&&(h.end.column=t.column,h.end.row=t.row):(h.end.column+=c,h.end.row+=l):h.end.row>r&&(h.end.row+=l),h.start.row<r&&(n<h.start.row||n==h.start.row&&t.column<h.start.column)?(h.start.row=n,h.start.column=t.column):h.start.row==r?h.start.column<=i.column?(l||h.start.column>t.column)&&(h.start.column=t.column,h.start.row=t.row):(h.start.column+=c,h.start.row+=l):h.start.row>r&&(h.start.row+=l)}if(0!=l&&a<o)for(;a<o;a++)(h=s[a]).start.row+=l,h.end.row+=l}}).call(n.prototype),t.RangeList=n}),ace.define("ace/edit_session/fold",["require","exports","module","ace/range_list","ace/lib/oop"],function(e,t,i){"use strict";function u(e,t){e.row-=t.row,0==e.row&&(e.column-=t.column)}function n(e,t){0==e.row&&(e.column+=t.column),e.row+=t.row}var r=e("../range_list").RangeList,e=e("../lib/oop"),s=t.Fold=function(e,t){this.foldLine=null,this.placeholder=t,this.range=e,this.start=e.start,this.end=e.end,this.sameRow=e.start.row==e.end.row,this.subFolds=this.ranges=[]};e.inherits(s,r),function(){this.toString=function(){return'"'+this.placeholder+'" '+this.range.toString()},this.setFoldLine=function(t){this.foldLine=t,this.subFolds.forEach(function(e){e.setFoldLine(t)})},this.clone=function(){var e=this.range.clone(),t=new s(e,this.placeholder);return this.subFolds.forEach(function(e){t.subFolds.push(e.clone())}),t.collapseChildren=this.collapseChildren,t},this.addSubFold=function(e){if(!this.range.isEqual(e)){s=e,a=this.start,u(s.start,a),u(s.end,a);for(var t=e.start.row,i=e.start.column,n=0,r=-1;n<this.subFolds.length&&1==(r=this.subFolds[n].range.compare(t,i));n++);var s=this.subFolds[n],a=0;if(0==r){if(s.range.containsRange(e))return s.addSubFold(e);a=1}for(var t=e.range.end.row,i=e.range.end.column,o=n,r=-1;o<this.subFolds.length&&1==(r=this.subFolds[o].range.compare(t,i));o++);0==r&&o++;for(var l=this.subFolds.splice(n,o-n,e),c=0==r?l.length-1:l.length,h=a;h<c;h++)e.addSubFold(l[h]);return e.setFoldLine(this.foldLine),e}},this.restoreRange=function(e){return e=e,t=this.start,n(e.start,t),void n(e.end,t);var t}}.call(s.prototype)}),ace.define("ace/edit_session/folding",["require","exports","module","ace/range","ace/edit_session/fold_line","ace/edit_session/fold","ace/token_iterator"],function(e,t,i){"use strict";var c=e("../range").Range,d=e("./fold_line").FoldLine,p=e("./fold").Fold,h=e("../token_iterator").TokenIterator;t.Folding=function(){this.getFoldAt=function(e,t,i){var n=this.getFoldLine(e);if(!n)return null;for(var r=n.folds,s=0;s<r.length;s++){var a=r[s].range;if(a.contains(e,t)&&(1!=i||!a.isEnd(e,t)||a.isEmpty())&&(-1!=i||!a.isStart(e,t)||a.isEmpty()))return r[s]}},this.getFoldsInRange=function(e){var t=e.start,i=e.end,n=this.$foldData,r=[];t.column+=1,--i.column;for(var s=0;s<n.length;s++){var a=n[s].range.compareRange(e);if(2!=a){if(-2==a)break;for(var o=n[s].folds,l=0;l<o.length;l++){var c=o[l];if(-2==(a=c.range.compareRange(e)))break;if(2!=a){if(42==a)break;r.push(c)}}}}return--t.column,i.column+=1,r},this.getFoldsInRangeList=function(e){var t;return Array.isArray(e)?(t=[],e.forEach(function(e){t=t.concat(this.getFoldsInRange(e))},this)):t=this.getFoldsInRange(e),t},this.getAllFolds=function(){for(var e=[],t=this.$foldData,i=0;i<t.length;i++)for(var n=0;n<t[i].folds.length;n++)e.push(t[i].folds[n]);return e},this.getFoldStringAt=function(e,t,i,n){if(!(n=n||this.getFoldLine(e)))return null;for(var r,s={end:{column:0}},a=0;a<n.folds.length;a++){var o,l=(o=n.folds[a]).range.compareEnd(e,t);if(-1==l){r=this.getLine(o.start.row).substring(s.end.column,o.start.column);break}if(0===l)return null;s=o}return r=r||this.getLine(o.start.row).substring(s.end.column),-1==i?r.substring(0,t-s.end.column):1==i?r.substring(t-s.end.column):r},this.getFoldLine=function(e,t){var i=this.$foldData,n=0;for(-1==(n=t?i.indexOf(t):n)&&(n=0);n<i.length;n++){var r=i[n];if(r.start.row<=e&&r.end.row>=e)return r;if(r.end.row>e)return null}return null},this.getNextFoldLine=function(e,t){var i=this.$foldData,n=0;for(-1==(n=t?i.indexOf(t):n)&&(n=0);n<i.length;n++){var r=i[n];if(r.end.row>=e)return r}return null},this.getFoldedRowCount=function(e,t){for(var i=this.$foldData,n=t-e+1,r=0;r<i.length;r++){var s=i[r],a=s.end.row,s=s.start.row;if(t<=a){s<t&&(e<=s?n-=t-s:n=0);break}e<=a&&(n-=e<=s?a-s:a-e+1)}return n},this.$addFoldLine=function(e){return this.$foldData.push(e),this.$foldData.sort(function(e,t){return e.start.row-t.start.row}),e},this.addFold=function(e,t){var i,n=this.$foldData,r=!1,s=(e instanceof p?i=e:(i=new p(t,e)).collapseChildren=t.collapseChildren,this.$clipRangeToDocument(i.range),i.start.row),e=i.start.column,a=i.end.row,t=i.end.column,o=this.getFoldAt(s,e,1),l=this.getFoldAt(a,t,-1);if(o&&l==o)return o.addSubFold(i);o&&!o.range.isStart(s,e)&&this.removeFold(o),l&&!l.range.isEnd(a,t)&&this.removeFold(l);e=this.getFoldsInRange(i.range);0<e.length&&(this.removeFolds(e),i.collapseChildren||e.forEach(function(e){i.addSubFold(e)}));for(var c=0;c<n.length;c++){var h=n[c];if(a==h.start.row){h.addFold(i),r=!0;break}if(s==h.end.row){if(h.addFold(i),r=!0,!i.sameRow){var u=n[c+1];if(u&&u.start.row==a){h.merge(u);break}}break}if(a<=h.start.row)break}return r||(h=this.$addFoldLine(new d(this.$foldData,i))),this.$useWrapMode?this.$updateWrapData(h.start.row,h.start.row):this.$updateRowLengthCache(h.start.row,h.start.row),this.$modified=!0,this._signal("changeFold",{data:i,action:"add"}),i},this.addFolds=function(e){e.forEach(function(e){this.addFold(e)},this)},this.removeFold=function(e){var t=e.foldLine,i=t.start.row,n=t.end.row,r=this.$foldData,s=t.folds;1==s.length?r.splice(r.indexOf(t),1):t.range.isEnd(e.end.row,e.end.column)?(s.pop(),t.end.row=s[s.length-1].end.row,t.end.column=s[s.length-1].end.column):t.range.isStart(e.start.row,e.start.column)?(s.shift(),t.start.row=s[0].start.row,t.start.column=s[0].start.column):e.sameRow?s.splice(s.indexOf(e),1):((s=(r=t.split(e.start.row,e.start.column)).folds).shift(),r.start.row=s[0].start.row,r.start.column=s[0].start.column),this.$updating||(this.$useWrapMode?this.$updateWrapData(i,n):this.$updateRowLengthCache(i,n)),this.$modified=!0,this._signal("changeFold",{data:e,action:"remove"})},this.removeFolds=function(e){for(var t=[],i=0;i<e.length;i++)t.push(e[i]);t.forEach(function(e){this.removeFold(e)},this),this.$modified=!0},this.expandFold=function(t){this.removeFold(t),t.subFolds.forEach(function(e){t.restoreRange(e),this.addFold(e)},this),0<t.collapseChildren&&this.foldAll(t.start.row+1,t.end.row,t.collapseChildren-1),t.subFolds=[]},this.expandFolds=function(e){e.forEach(function(e){this.expandFold(e)},this)},this.unfold=function(e,t){var i;if(null==e?(i=new c(0,0,this.getLength(),0),null==t&&(t=!0)):i="number"==typeof e?new c(e,0,e,this.getLine(e).length):"row"in e?c.fromPoints(e,e):e,e=this.getFoldsInRangeList(i),0!=t?this.removeFolds(e):this.expandFolds(e),e.length)return e},this.isRowFolded=function(e,t){return!!this.getFoldLine(e,t)},this.getRowFoldEnd=function(e,t){t=this.getFoldLine(e,t);return t?t.end.row:e},this.getRowFoldStart=function(e,t){t=this.getFoldLine(e,t);return t?t.start.row:e},this.getFoldDisplayLine=function(e,t,i,r,s){null==r&&(r=e.start.row),null==s&&(s=0),null==t&&(t=e.end.row),null==i&&(i=this.getLine(t).length);var a=this.doc,o="";return e.walk(function(e,t,i,n){if(!(t<r)){if(t==r){if(i<s)return;n=Math.max(s,n)}o+=null!=e?e:a.getLine(t).substring(n,i)}},t,i),o},this.getDisplayLine=function(e,t,i,n){var r=this.getFoldLine(e);return r?this.getFoldDisplayLine(r,e,t,i,n):(r=this.doc.getLine(e)).substring(n||0,t||r.length)},this.$cloneFoldData=function(){var t=[];return t=this.$foldData.map(function(e){e=e.folds.map(function(e){return e.clone()});return new d(t,e)})},this.toggleFold=function(e){var t=this.selection.getRange();if(t.isEmpty()){var i,n=t.start;if(i=this.getFoldAt(n.row,n.column))return void this.expandFold(i);(r=this.findMatchingBracket(n))?1==t.comparePoint(r)?t.end=r:(t.start=r,t.start.column++,t.end.column--):(r=this.findMatchingBracket({row:n.row,column:n.column+1}))?(1==t.comparePoint(r)?t.end=r:t.start=r,t.start.column++):t=this.getCommentFoldRange(n.row,n.column)||t}else{var r=this.getFoldsInRange(t);if(e&&r.length)return void this.expandFolds(r);1==r.length&&(i=r[0])}if((i=i||this.getFoldAt(t.start.row,t.start.column))&&i.range.toString()==t.toString())this.expandFold(i);else{n="...";if(!t.isMultiLine()){if((n=this.getTextRange(t)).length<4)return;n=n.trim().substring(0,2)+".."}this.addFold(n,t)}},this.getCommentFoldRange=function(e,t,i){var n=new h(this,e,t),r=n.getCurrentToken(),s=r&&r.type;if(r&&/^comment|string/.test(s)){"comment"==(s=s.match(/comment|string/)[0])&&(s+="|doc-start");var a=new RegExp(s),s=new c;if(1!=i){for(;(r=n.stepBackward())&&a.test(r.type););n.stepForward()}if(s.start.row=n.getCurrentTokenRow(),s.start.column=n.getCurrentTokenColumn()+2,n=new h(this,e,t),-1!=i){var o=-1;do{if(r=n.stepForward(),-1==o){var l=this.getState(n.$row);a.test(l)||(o=n.$row)}else if(n.$row>o)break}while(r&&a.test(r.type));r=n.stepBackward()}else r=n.getCurrentToken();return s.end.row=n.getCurrentTokenRow(),s.end.column=n.getCurrentTokenColumn()+r.value.length-2,s}},this.foldAll=function(e,t,i,n){null==i&&(i=1e5);var r=this.foldWidgets;if(r){t=t||this.getLength();for(var s,a=e=e||0;a<t;a++)null==r[a]&&(r[a]=this.getFoldWidget(a)),"start"!=r[a]||n&&!n(a)||(s=this.getFoldWidgetRange(a))&&s.isMultiLine()&&s.end.row<=t&&s.start.row>=e&&(a=s.end.row,s.collapseChildren=i,this.addFold("...",s))}},this.foldToLevel=function(e){for(this.foldAll();0<e--;)this.unfold(null,!1)},this.foldAllComments=function(){var r=this;this.foldAll(null,null,null,function(e){for(var t=r.getTokens(e),i=0;i<t.length;i++){var n=t[i];if("text"!=n.type||!/^\s+$/.test(n.value))return!!/comment/.test(n.type)}})},this.$foldStyles={manual:1,markbegin:1,markbeginend:1},this.$foldStyle="markbegin",this.setFoldStyle=function(e){if(!this.$foldStyles[e])throw new Error("invalid fold style: "+e+"["+Object.keys(this.$foldStyles).join(", ")+"]");this.$foldStyle!=e&&("manual"==(this.$foldStyle=e)&&this.unfold(),e=this.$foldMode,this.$setFolding(null),this.$setFolding(e))},this.$setFolding=function(e){this.$foldMode!=e&&(this.$foldMode=e,this.off("change",this.$updateFoldWidgets),this.off("tokenizerUpdate",this.$tokenizerUpdateFoldWidgets),this._signal("changeAnnotation"),e&&"manual"!=this.$foldStyle?(this.foldWidgets=[],this.getFoldWidget=e.getFoldWidget.bind(e,this,this.$foldStyle),this.getFoldWidgetRange=e.getFoldWidgetRange.bind(e,this,this.$foldStyle),this.$updateFoldWidgets=this.updateFoldWidgets.bind(this),this.$tokenizerUpdateFoldWidgets=this.tokenizerUpdateFoldWidgets.bind(this),this.on("change",this.$updateFoldWidgets),this.on("tokenizerUpdate",this.$tokenizerUpdateFoldWidgets)):this.foldWidgets=null)},this.getParentFoldRangeData=function(e,t){var i=this.foldWidgets;if(!i||t&&i[e])return{};for(var n=e-1;0<=n;){var r=i[n];if("start"==(r=null==r?i[n]=this.getFoldWidget(n):r)){var s=this.getFoldWidgetRange(n),a=a||s;if(s&&s.end.row>=e)break}n--}return{range:-1!==n&&s,firstRange:a}},this.onFoldWidgetClick=function(e,t){var i={children:(t=t.domEvent).shiftKey,all:t.ctrlKey||t.metaKey,siblings:t.altKey};this.$toggleFoldWidget(e,i)||(e=t.target||t.srcElement)&&/ace_fold-widget/.test(e.className)&&(e.className+=" ace_invalid")},this.$toggleFoldWidget=function(e,t){var i,n,r,s;if(this.getFoldWidget)return i=this.getFoldWidget(e),n=this.getLine(e),(n=this.getFoldAt(e,-1==(i="end"===i?-1:1)?0:n.length,i))?(t.children||t.all?this.removeFold(n):this.expandFold(n),n):(i=this.getFoldWidgetRange(e,!0))&&!i.isMultiLine()&&(n=this.getFoldAt(i.start.row,i.start.column,1))&&i.isEqual(n.range)?(this.removeFold(n),n):(t.siblings?((n=this.getParentFoldRangeData(e)).range&&(r=n.range.start.row+1,s=n.range.end.row),this.foldAll(r,s,t.all?1e4:0)):t.children?(s=i?i.end.row:this.getLength(),this.foldAll(e+1,s,t.all?1e4:0)):i&&(t.all&&(i.collapseChildren=1e4),this.addFold("...",i)),i)},this.toggleFoldWidget=function(e){var t,i=this.selection.getCursor().row;i=this.getRowFoldStart(i),!this.$toggleFoldWidget(i,{})&&(t=(t=this.getParentFoldRangeData(i,!0)).range||t.firstRange)&&(i=t.start.row,(i=this.getFoldAt(i,this.getLine(i).length,1))?this.removeFold(i):this.addFold("...",t))},this.updateFoldWidgets=function(e){var t=e.start.row,i=e.end.row-t;0==i?this.foldWidgets[t]=null:"remove"==e.action?this.foldWidgets.splice(t,1+i,null):((e=Array(1+i)).unshift(t,1),this.foldWidgets.splice.apply(this.foldWidgets,e))},this.tokenizerUpdateFoldWidgets=function(e){e=e.data;e.first!=e.last&&this.foldWidgets.length>e.first&&this.foldWidgets.splice(e.first,this.foldWidgets.length)}}}),ace.define("ace/edit_session/bracket_match",["require","exports","module","ace/token_iterator","ace/range"],function(e,t,i){"use strict";var u=e("../token_iterator").TokenIterator,o=e("../range").Range;t.BracketMatch=function(){this.findMatchingBracket=function(e,t){return 0!=e.column&&""!=(t=t||this.getLine(e.row).charAt(e.column-1))&&(t=t.match(/([\(\[\{])|([\)\]\}])/))?t[1]?this.$findClosingBracket(t[1],e):this.$findOpeningBracket(t[2],e):null},this.getBracketRange=function(e){var t,i,n=this.getLine(e.row),r=!0,s=n.charAt(e.column-1),a=s&&s.match(/([\(\[\{])|([\)\]\}])/);if(a||(s=n.charAt(e.column),e={row:e.row,column:e.column+1},a=s&&s.match(/([\(\[\{])|([\)\]\}])/),r=!1),!a)return null;if(a[1]){if(!(i=this.$findClosingBracket(a[1],e)))return null;t=o.fromPoints(e,i),r||(t.end.column++,t.start.column--),t.cursor=t.end}else{if(!(i=this.$findOpeningBracket(a[2],e)))return null;t=o.fromPoints(i,e),r||(t.start.column++,t.end.column--),t.cursor=t.start}return t},this.getMatchingBracketRanges=function(e){var t=this.getLine(e.row),i=t.charAt(e.column-1),n=i&&i.match(/([\(\[\{])|([\)\]\}])/);return n||(i=t.charAt(e.column),e={row:e.row,column:e.column+1},n=i&&i.match(/([\(\[\{])|([\)\]\}])/)),n?(t=new o(e.row,e.column-1,e.row,e.column),(i=n[1]?this.$findClosingBracket(n[1],e):this.$findOpeningBracket(n[2],e))?[t,new o(i.row,i.column,i.row,i.column+1)]:[t]):null},this.$brackets={")":"(","(":")","]":"[","[":"]","{":"}","}":"{","<":">",">":"<"},this.$findOpeningBracket=function(e,t,i){var n=this.$brackets[e],r=1,s=new u(this,t.row,t.column),a=s.getCurrentToken();if(a=a||s.stepForward()){i=i||new RegExp("(\\.?"+a.type.replace(".","\\.").replace("rparen",".paren").replace(/\b(?:end)\b/,"(?:start|begin|end)")+")+");for(var o=t.column-s.getCurrentTokenColumn()-2,l=a.value;;){for(;0<=o;){var c=l.charAt(o);if(c==n){if(0==--r)return{row:s.getCurrentTokenRow(),column:o+s.getCurrentTokenColumn()}}else c==e&&(r+=1);--o}for(;(a=s.stepBackward())&&!i.test(a.type););if(null==a)break;o=(l=a.value).length-1}return null}},this.$findClosingBracket=function(e,t,i){var n=this.$brackets[e],r=1,s=new u(this,t.row,t.column),a=s.getCurrentToken();if(a=a||s.stepForward()){i=i||new RegExp("(\\.?"+a.type.replace(".","\\.").replace("lparen",".paren").replace(/\b(?:start|begin)\b/,"(?:start|begin|end)")+")+");for(var o=t.column-s.getCurrentTokenColumn();;){for(var l=a.value,c=l.length;o<c;){var h=l.charAt(o);if(h==n){if(0==--r)return{row:s.getCurrentTokenRow(),column:o+s.getCurrentTokenColumn()}}else h==e&&(r+=1);o+=1}for(;(a=s.stepForward())&&!i.test(a.type););if(null==a)break;o=0}return null}}}}),ace.define("ace/edit_session",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/bidihandler","ace/config","ace/lib/event_emitter","ace/selection","ace/mode/text","ace/range","ace/document","ace/background_tokenizer","ace/search_highlight","ace/edit_session/folding","ace/edit_session/bracket_match"],function(e,t,i){"use strict";function n(e,t){this.$breakpoints=[],this.$decorations=[],this.$frontMarkers={},this.$backMarkers={},this.$markerId=1,this.$undoSelect=!0,this.$foldData=[],this.id="session"+ ++n.$uid,this.$foldData.toString=function(){return this.join("\n")},this.on("changeFold",this.onChangeFold.bind(this)),this.$onChange=this.onChange.bind(this),"object"==typeof e&&e.getLine||(e=new d(e)),this.setDocument(e),this.selection=new o(this),this.$bidiHandler=new a(this),l.resetOptions(this),this.setMode(t),l._signal("session",this)}var r=e("./lib/oop"),s=e("./lib/lang"),a=e("./bidihandler").BidiHandler,l=e("./config"),c=e("./lib/event_emitter").EventEmitter,o=e("./selection").Selection,h=e("./mode/text").Mode,u=e("./range").Range,d=e("./document").Document,p=e("./background_tokenizer").BackgroundTokenizer,m=e("./search_highlight").SearchHighlight;n.$uid=0,function(){function o(e){return!(e<4352)&&(4352<=e&&e<=4447||4515<=e&&e<=4519||4602<=e&&e<=4607||9001<=e&&e<=9002||11904<=e&&e<=11929||11931<=e&&e<=12019||12032<=e&&e<=12245||12272<=e&&e<=12283||12288<=e&&e<=12350||12353<=e&&e<=12438||12441<=e&&e<=12543||12549<=e&&e<=12589||12593<=e&&e<=12686||12688<=e&&e<=12730||12736<=e&&e<=12771||12784<=e&&e<=12830||12832<=e&&e<=12871||12880<=e&&e<=13054||13056<=e&&e<=19903||19968<=e&&e<=42124||42128<=e&&e<=42182||43360<=e&&e<=43388||44032<=e&&e<=55203||55216<=e&&e<=55238||55243<=e&&e<=55291||63744<=e&&e<=64255||65040<=e&&e<=65049||65072<=e&&e<=65106||65108<=e&&e<=65126||65128<=e&&e<=65131||65281<=e&&e<=65376||65504<=e&&e<=65510)}r.implement(this,c),this.setDocument=function(e){this.doc&&this.doc.removeListener("change",this.$onChange),(this.doc=e).on("change",this.$onChange),this.bgTokenizer&&this.bgTokenizer.setDocument(this.getDocument()),this.resetCaches()},this.getDocument=function(){return this.doc},this.$resetRowCache=function(e){var t;e?(t=this.$docRowCache.length,(e=this.$getRowCacheIndex(this.$docRowCache,e)+1)<t&&(this.$docRowCache.splice(e,t),this.$screenRowCache.splice(e,t))):(this.$docRowCache=[],this.$screenRowCache=[])},this.$getRowCacheIndex=function(e,t){for(var i=0,n=e.length-1;i<=n;){var r=i+n>>1,s=e[r];if(s<t)i=1+r;else{if(!(t<s))return r;n=r-1}}return i-1},this.resetCaches=function(){this.$modified=!0,this.$wrapData=[],this.$rowLengthCache=[],this.$resetRowCache(0),this.bgTokenizer&&this.bgTokenizer.start(0)},this.onChangeFold=function(e){e=e.data;this.$resetRowCache(e.start.row)},this.onChange=function(e){this.$modified=!0,this.$bidiHandler.onChange(e),this.$resetRowCache(e.start.row);var t=this.$updateInternalDataOnChange(e);!this.$fromUndo&&this.$undoManager&&(t&&t.length&&(this.$undoManager.add({action:"removeFolds",folds:t},this.mergeUndoDeltas),this.mergeUndoDeltas=!0),this.$undoManager.add(e,this.mergeUndoDeltas),this.mergeUndoDeltas=!0,this.$informUndoManager.schedule()),this.bgTokenizer&&this.bgTokenizer.$updateOnChange(e),this._signal("change",e)},this.setValue=function(e){this.doc.setValue(e),this.selection.moveTo(0,0),this.$resetRowCache(0),this.setUndoManager(this.$undoManager),this.getUndoManager().reset()},this.getValue=this.toString=function(){return this.doc.getValue()},this.getSelection=function(){return this.selection},this.getState=function(e){return this.bgTokenizer.getState(e)},this.getTokens=function(e){return this.bgTokenizer.getTokens(e)},this.getTokenAt=function(e,t){var i=this.bgTokenizer.getTokens(e),n=0;if(null==t)var r=i.length-1,n=this.getLine(e).length;else for(r=0;r<i.length&&!(t<=(n+=i[r].value.length));r++);return(e=i[r])?(e.index=r,e.start=n-e.value.length,e):null},this.setUndoManager=function(e){var t;this.$undoManager=e,this.$informUndoManager&&this.$informUndoManager.cancel(),e?(e.addSession(t=this),this.$syncInformUndoManager=function(){t.$informUndoManager.cancel(),t.mergeUndoDeltas=!1},this.$informUndoManager=s.delayedCall(this.$syncInformUndoManager)):this.$syncInformUndoManager=function(){}},this.markUndoGroup=function(){this.$syncInformUndoManager&&this.$syncInformUndoManager()},this.$defaultUndoManager={undo:function(){},redo:function(){},hasUndo:function(){},hasRedo:function(){},reset:function(){},add:function(){},addSelection:function(){},startNewGroup:function(){},addSession:function(){}},this.getUndoManager=function(){return this.$undoManager||this.$defaultUndoManager},this.getTabString=function(){return this.getUseSoftTabs()?s.stringRepeat(" ",this.getTabSize()):"\t"},this.setUseSoftTabs=function(e){this.setOption("useSoftTabs",e)},this.getUseSoftTabs=function(){return this.$useSoftTabs&&!this.$mode.$indentWithTabs},this.setTabSize=function(e){this.setOption("tabSize",e)},this.getTabSize=function(){return this.$tabSize},this.isTabStop=function(e){return this.$useSoftTabs&&e.column%this.$tabSize==0},this.setNavigateWithinSoftTabs=function(e){this.setOption("navigateWithinSoftTabs",e)},this.getNavigateWithinSoftTabs=function(){return this.$navigateWithinSoftTabs},this.$overwrite=!1,this.setOverwrite=function(e){this.setOption("overwrite",e)},this.getOverwrite=function(){return this.$overwrite},this.toggleOverwrite=function(){this.setOverwrite(!this.$overwrite)},this.addGutterDecoration=function(e,t){this.$decorations[e]||(this.$decorations[e]=""),this.$decorations[e]+=" "+t,this._signal("changeBreakpoint",{})},this.removeGutterDecoration=function(e,t){this.$decorations[e]=(this.$decorations[e]||"").replace(" "+t,""),this._signal("changeBreakpoint",{})},this.getBreakpoints=function(){return this.$breakpoints},this.setBreakpoints=function(e){this.$breakpoints=[];for(var t=0;t<e.length;t++)this.$breakpoints[e[t]]="ace_breakpoint";this._signal("changeBreakpoint",{})},this.clearBreakpoints=function(){this.$breakpoints=[],this._signal("changeBreakpoint",{})},this.setBreakpoint=function(e,t){(t=void 0===t?"ace_breakpoint":t)?this.$breakpoints[e]=t:delete this.$breakpoints[e],this._signal("changeBreakpoint",{})},this.clearBreakpoint=function(e){delete this.$breakpoints[e],this._signal("changeBreakpoint",{})},this.addMarker=function(e,t,i,n){var r=this.$markerId++,e={range:e,type:i||"line",renderer:"function"==typeof i?i:null,clazz:t,inFront:!!n,id:r};return n?(this.$frontMarkers[r]=e,this._signal("changeFrontMarker")):(this.$backMarkers[r]=e,this._signal("changeBackMarker")),r},this.addDynamicMarker=function(e,t){var i;if(e.update)return i=this.$markerId++,e.id=i,e.inFront=!!t,t?(this.$frontMarkers[i]=e,this._signal("changeFrontMarker")):(this.$backMarkers[i]=e,this._signal("changeBackMarker")),e},this.removeMarker=function(e){var t=this.$frontMarkers[e]||this.$backMarkers[e];t&&(delete(t.inFront?this.$frontMarkers:this.$backMarkers)[e],this._signal(t.inFront?"changeFrontMarker":"changeBackMarker"))},this.getMarkers=function(e){return e?this.$frontMarkers:this.$backMarkers},this.highlight=function(e){var t;this.$searchHighlight||(t=new m(null,"ace_selected-word","text"),this.$searchHighlight=this.addDynamicMarker(t)),this.$searchHighlight.setRegexp(e)},this.highlightLines=function(e,t,i,n){"number"!=typeof t&&(i=t,t=e),i=i||"ace_step";e=new u(e,0,t,1/0);return e.id=this.addMarker(e,i,"fullLine",n),e},this.setAnnotations=function(e){this.$annotations=e,this._signal("changeAnnotation",{})},this.getAnnotations=function(){return this.$annotations||[]},this.clearAnnotations=function(){this.setAnnotations([])},this.$detectNewLine=function(e){e=e.match(/^.*?(\r?\n)/m);this.$autoNewLine=e?e[1]:"\n"},this.getWordRange=function(e,t){var i,n=this.getLine(e),r=!1,s=(i=(r=(r=0<t?!!n.charAt(t-1).match(this.tokenRe):r)||!!n.charAt(t).match(this.tokenRe))?this.tokenRe:/^\s+$/.test(n.slice(t-1,t+1))?/\s/:this.nonTokenRe,t);if(0<s){for(;0<=--s&&n.charAt(s).match(i););s++}for(var a=t;a<n.length&&n.charAt(a).match(i);)a++;return new u(e,s,e,a)},this.getAWordRange=function(e,t){for(var i=this.getWordRange(e,t),n=this.getLine(i.end.row);n.charAt(i.end.column).match(/[ \t]/);)i.end.column+=1;return i},this.setNewLineMode=function(e){this.doc.setNewLineMode(e)},this.getNewLineMode=function(){return this.doc.getNewLineMode()},this.setUseWorker=function(e){this.setOption("useWorker",e)},this.getUseWorker=function(){return this.$useWorker},this.onReloadTokenizer=function(e){var t=e.data;this.bgTokenizer.start(t.first),this._signal("tokenizerUpdate",e)},this.$modes=l.$modes,this.$mode=null,this.$modeId=null,this.setMode=function(e,t){if(e&&"object"==typeof e){if(e.getTokenizer)return this.$onChangeMode(e);var i=e,n=i.path}else n=e||"ace/mode/text";this.$modes["ace/mode/text"]||(this.$modes["ace/mode/text"]=new h),this.$modes[n]&&!i?(this.$onChangeMode(this.$modes[n]),t&&t()):(this.$modeId=n,l.loadModule(["mode",n],function(e){if(this.$modeId!==n)return t&&t();this.$modes[n]&&!i?this.$onChangeMode(this.$modes[n]):e&&e.Mode&&(e=new e.Mode(i),i||((this.$modes[n]=e).$id=n),this.$onChangeMode(e)),t&&t()}.bind(this)),this.$mode||this.$onChangeMode(this.$modes["ace/mode/text"],!0))},this.$onChangeMode=function(e,t){var i,n,r,s;t||(this.$modeId=e.$id),this.$mode===e||(i=this.$mode,this.$mode=e,this.$stopWorker(),this.$useWorker&&this.$startWorker(),void 0!==(n=e.getTokenizer()).on&&(r=this.onReloadTokenizer.bind(this),n.on("update",r)),this.bgTokenizer?this.bgTokenizer.setTokenizer(n):(this.bgTokenizer=new p(n),(s=this).bgTokenizer.on("update",function(e){s._signal("tokenizerUpdate",e)})),this.bgTokenizer.setDocument(this.getDocument()),this.tokenRe=e.tokenRe,this.nonTokenRe=e.nonTokenRe,t)||(e.attachToSession&&e.attachToSession(this),this.$options.wrapMethod.set.call(this,this.$wrapMethod),this.$setFolding(e.foldingRules),this.bgTokenizer.start(0),this._emit("changeMode",{oldMode:i,mode:e}))},this.$stopWorker=function(){this.$worker&&(this.$worker.terminate(),this.$worker=null)},this.$startWorker=function(){try{this.$worker=this.$mode.createWorker(this)}catch(e){l.warn("Could not load worker",e),this.$worker=null}},this.getMode=function(){return this.$mode},this.$scrollTop=0,this.setScrollTop=function(e){this.$scrollTop===e||isNaN(e)||(this.$scrollTop=e,this._signal("changeScrollTop",e))},this.getScrollTop=function(){return this.$scrollTop},this.$scrollLeft=0,this.setScrollLeft=function(e){this.$scrollLeft===e||isNaN(e)||(this.$scrollLeft=e,this._signal("changeScrollLeft",e))},this.getScrollLeft=function(){return this.$scrollLeft},this.getScreenWidth=function(){return this.$computeWidth(),this.lineWidgets?Math.max(this.getLineWidgetMaxWidth(),this.screenWidth):this.screenWidth},this.getLineWidgetMaxWidth=function(){var t;return null!=this.lineWidgetsWidth?this.lineWidgetsWidth:(t=0,this.lineWidgets.forEach(function(e){e&&e.screenWidth>t&&(t=e.screenWidth)}),this.lineWidgetWidth=t)},this.$computeWidth=function(e){if(this.$modified||e){if(this.$modified=!1,this.$useWrapMode)return this.screenWidth=this.$wrapLimit;for(var t=this.doc.getAllLines(),i=this.$rowLengthCache,n=0,r=0,s=this.$foldData[r],a=s?s.start.row:1/0,o=t.length,l=0;l<o;l++){if(a<l){if(o<=(l=s.end.row+1))break;a=(s=this.$foldData[r++])?s.start.row:1/0}null==i[l]&&(i[l]=this.$getStringScreenWidth(t[l])[0]),i[l]>n&&(n=i[l])}this.screenWidth=n}},this.getLine=function(e){return this.doc.getLine(e)},this.getLines=function(e,t){return this.doc.getLines(e,t)},this.getLength=function(){return this.doc.getLength()},this.getTextRange=function(e){return this.doc.getTextRange(e||this.selection.getRange())},this.insert=function(e,t){return this.doc.insert(e,t)},this.remove=function(e){return this.doc.remove(e)},this.removeFullLines=function(e,t){return this.doc.removeFullLines(e,t)},this.undoChanges=function(e,t){if(e.length){this.$fromUndo=!0;for(var i=e.length-1;-1!=i;i--){var n=e[i];"insert"==n.action||"remove"==n.action?this.doc.revertDelta(n):n.folds&&this.addFolds(n.folds)}!t&&this.$undoSelect&&(e.selectionBefore?this.selection.fromJSON(e.selectionBefore):this.selection.setRange(this.$getUndoSelection(e,!0))),this.$fromUndo=!1}},this.redoChanges=function(e,t){if(e.length){this.$fromUndo=!0;for(var i=0;i<e.length;i++){var n=e[i];"insert"!=n.action&&"remove"!=n.action||this.doc.$safeApplyDelta(n)}!t&&this.$undoSelect&&(e.selectionAfter?this.selection.fromJSON(e.selectionAfter):this.selection.setRange(this.$getUndoSelection(e,!1))),this.$fromUndo=!1}},this.setUndoSelect=function(e){this.$undoSelect=e},this.$getUndoSelection=function(e,t){function i(e){return t?"insert"!==e.action:"insert"===e.action}for(var n,r,s=0;s<e.length;s++){var a=e[s];a.start&&(n?i(a)?(r=a.start,-1==n.compare(r.row,r.column)&&n.setStart(r),r=a.end,1==n.compare(r.row,r.column)&&n.setEnd(r)):(r=a.start,-1==n.compare(r.row,r.column)&&(n=u.fromPoints(a.start,a.start))):n=i(a)?u.fromPoints(a.start,a.end):u.fromPoints(a.start,a.start))}return n},this.replace=function(e,t){return this.doc.replace(e,t)},this.moveText=function(e,t,i){var n,r,s,a=this.getTextRange(e),o=this.getFoldsInRange(e),t=u.fromPoints(t,t);return i||(this.remove(e),r=e.start.row-e.end.row,(s=r?-e.end.column:e.start.column-e.end.column)&&(t.start.row==e.end.row&&t.start.column>e.end.column&&(t.start.column+=s),t.end.row==e.end.row)&&t.end.column>e.end.column&&(t.end.column+=s),r&&t.start.row>=e.end.row&&(t.start.row+=r,t.end.row+=r)),t.end=this.insert(t.start,a),o.length&&(n=e.start,i=t.start,r=i.row-n.row,s=i.column-n.column,this.addFolds(o.map(function(e){return(e=e.clone()).start.row==n.row&&(e.start.column+=s),e.end.row==n.row&&(e.end.column+=s),e.start.row+=r,e.end.row+=r,e}))),t},this.indentRows=function(e,t,i){i=i.replace(/\t/g,this.getTabString());for(var n=e;n<=t;n++)this.doc.insertInLine({row:n,column:0},i)},this.outdentRows=function(e){for(var t=e.collapseRows(),i=new u(0,0,0,0),n=this.getTabSize(),r=t.start.row;r<=t.end.row;++r){var s=this.getLine(r);i.start.row=r,i.end.row=r;for(var a=0;a<n&&" "==s.charAt(a);++a);a<n&&"\t"==s.charAt(a)?(i.start.column=a,i.end.column=a+1):(i.start.column=0,i.end.column=a),this.remove(i)}},this.$moveLines=function(e,t,i){if(e=this.getRowFoldStart(e),t=this.getRowFoldEnd(t),i<0){if((r=this.getRowFoldStart(e+i))<0)return 0;var n=r-e}else if(0<i){if((r=this.getRowFoldEnd(t+i))>this.doc.getLength()-1)return 0;n=r-t}else{e=this.$clipRowToDocument(e);n=(t=this.$clipRowToDocument(t))-e+1}var r=new u(e,0,t,Number.MAX_VALUE),r=this.getFoldsInRange(r).map(function(e){return(e=e.clone()).start.row+=n,e.end.row+=n,e}),i=0==i?this.doc.getLines(e,t):this.doc.removeFullLines(e,t);return this.doc.insertFullLines(e+n,i),r.length&&this.addFolds(r),n},this.moveLinesUp=function(e,t){return this.$moveLines(e,t,-1)},this.moveLinesDown=function(e,t){return this.$moveLines(e,t,1)},this.duplicateLines=function(e,t){return this.$moveLines(e,t,0)},this.$clipRowToDocument=function(e){return Math.max(0,Math.min(e,this.doc.getLength()-1))},this.$clipColumnToRow=function(e,t){return t<0?0:Math.min(this.doc.getLine(e).length,t)},this.$clipPositionToDocument=function(e,t){var i;return t=Math.max(0,t),t=e<0?e=0:(i=this.doc.getLength())<=e?this.doc.getLine(e=i-1).length:Math.min(this.doc.getLine(e).length,t),{row:e,column:t}},this.$clipRangeToDocument=function(e){e.start.row<0?(e.start.row=0,e.start.column=0):e.start.column=this.$clipColumnToRow(e.start.row,e.start.column);var t=this.doc.getLength()-1;return e.end.row>t?(e.end.row=t,e.end.column=this.doc.getLine(t).length):e.end.column=this.$clipColumnToRow(e.end.row,e.end.column),e},this.$wrapLimit=80,this.$useWrapMode=!1,this.$wrapLimitRange={min:null,max:null},this.setUseWrapMode=function(e){e!=this.$useWrapMode&&(this.$useWrapMode=e,this.$modified=!0,this.$resetRowCache(0),e&&(e=this.getLength(),this.$wrapData=Array(e),this.$updateWrapData(0,e-1)),this._signal("changeWrapMode"))},this.getUseWrapMode=function(){return this.$useWrapMode},this.setWrapLimitRange=function(e,t){this.$wrapLimitRange.min===e&&this.$wrapLimitRange.max===t||(this.$wrapLimitRange={min:e,max:t},this.$modified=!0,this.$bidiHandler.markAsDirty(),this.$useWrapMode&&this._signal("changeWrapMode"))},this.adjustWrapLimit=function(e,t){var i=this.$wrapLimitRange,t=(i.max<0&&(i={min:t,max:t}),this.$constrainWrapLimit(e,i.min,i.max));return t!=this.$wrapLimit&&1<t&&(this.$wrapLimit=t,this.$modified=!0,this.$useWrapMode&&(this.$updateWrapData(0,this.getLength()-1),this.$resetRowCache(0),this._signal("changeWrapLimit")),!0)},this.$constrainWrapLimit=function(e,t,i){return t&&(e=Math.max(t,e)),e=i?Math.min(i,e):e},this.getWrapLimit=function(){return this.$wrapLimit},this.setWrapLimit=function(e){this.setWrapLimitRange(e,e)},this.getWrapLimitRange=function(){return{min:this.$wrapLimitRange.min,max:this.$wrapLimitRange.max}},this.$updateInternalDataOnChange=function(e){var t=this.$useWrapMode,i=e.action,n=e.start,r=e.end,s=n.row,a=r.row,o=a-s,l=null;if(this.$updating=!0,0!=o)if("remove"===i){this[t?"$wrapData":"$rowLengthCache"].splice(s,o);var c=this.$foldData,l=this.getFoldsInRange(e);this.removeFolds(l);var h=0;for((p=this.getFoldLine(r.row))&&(p.addRemoveChars(r.row,r.column,n.column-r.column),p.shiftRow(-o),(u=this.getFoldLine(s))&&u!==p&&(u.merge(p),p=u),h=c.indexOf(p)+1);h<c.length;h++)(p=c[h]).start.row>=r.row&&p.shiftRow(-o);a=s}else{var u=Array(o),d=(u.unshift(s,0),t?this.$wrapData:this.$rowLengthCache),c=(d.splice.apply(d,u),this.$foldData),h=0;for((p=this.getFoldLine(s))&&(0==(d=p.range.compareInside(n.row,n.column))?(p=p.split(n.row,n.column))&&(p.shiftRow(o),p.addRemoveChars(a,0,r.column-n.column)):-1==d&&(p.addRemoveChars(s,0,r.column-n.column),p.shiftRow(o)),h=c.indexOf(p)+1);h<c.length;h++)(p=c[h]).start.row>=s&&p.shiftRow(o)}else{var p,o=Math.abs(e.start.column-e.end.column);"remove"===i&&(l=this.getFoldsInRange(e),this.removeFolds(l),o=-o),(p=this.getFoldLine(s))&&p.addRemoveChars(s,n.column,o)}return t&&this.$wrapData.length!=this.doc.getLength()&&console.error("doc.getLength() and $wrapData.length have to be the same!"),this.$updating=!1,t?this.$updateWrapData(s,a):this.$updateRowLengthCache(s,a),l},this.$updateRowLengthCache=function(e,t,i){this.$rowLengthCache[e]=null,this.$rowLengthCache[t]=null},this.$updateWrapData=function(e,t){var a,i,o=this.doc.getAllLines(),n=this.getTabSize(),r=this.$wrapData,s=this.$wrapLimit,l=e;for(t=Math.min(t,o.length-1);l<=t;)(i=this.getFoldLine(l,i))?(a=[],i.walk(function(e,t,i,n){var r;if(null!=e){(r=this.$getDisplayTokens(e,a.length))[0]=g;for(var s=1;s<r.length;s++)r[s]=f}else r=this.$getDisplayTokens(o[t].substring(n,i),a.length);a=a.concat(r)}.bind(this),i.end.row,o[i.end.row].length+1),r[i.start.row]=this.$computeWrapSplits(a,s,n),l=i.end.row+1):(a=this.$getDisplayTokens(o[l]),r[l]=this.$computeWrapSplits(a,s,n),l++)};var g=3,f=4;this.$computeWrapSplits=function(r,e,s){function t(e){for(var t=e-o,i=o;i<e;i++){var n=r[i];12!==n&&2!==n||--t}a.length||(d=function(){var e=0;if(0===u)return e;if(h)for(var t=0;t<r.length;t++){var i=r[t];if(10==i)e+=1;else{if(11!=i){if(12==i)continue;break}e+=s}}return c&&!1!==h&&(e+=s),Math.min(e,u)}(),a.indent=d),l+=t,a.push(l),o=e}if(0==r.length)return[];for(var a=[],i=r.length,o=0,l=0,c=this.$wrapAsCode,h=this.$indentedSoftWrap,u=e<=Math.max(2*s,8)||!1===h?0:Math.floor(e/2),d=0;e-d<i-o;){var n=o+e-d;if(10<=r[n-1]&&10<=r[n])t(n);else if(r[n]==g||r[n]==f){for(;n!=o-1&&r[n]!=g;n--);if(o<n);else{for(n=o+e;n<r.length&&r[n]==f;n++);if(n==r.length)break}t(n)}else{for(var p=Math.max(n-(e-(e>>2)),o-1);p<n&&r[n]<g;)n--;if(c){for(;p<n&&r[n]<g;)n--;for(;p<n&&9==r[n];)n--}else for(;p<n&&r[n]<10;)n--;p<n?t(++n):(2==r[n=o+e]&&n--,t(n-d))}}return a},this.$getDisplayTokens=function(e,t){var i,n=[];t=t||0;for(var r=0;r<e.length;r++){var s=e.charCodeAt(r);if(9==s){i=this.getScreenTabSize(n.length+t),n.push(11);for(var a=1;a<i;a++)n.push(12)}else 32==s?n.push(10):39<s&&s<48||57<s&&s<64?n.push(9):4352<=s&&o(s)?n.push(1,2):n.push(1)}return n},this.$getStringScreenWidth=function(e,t,i){if(0==t)return[0,0];var n,r;for(null==t&&(t=1/0),i=i||0,r=0;r<e.length&&(9==(n=e.charCodeAt(r))?i+=this.getScreenTabSize(i):4352<=n&&o(n)?i+=2:i+=1,!(t<i));r++);return[i,r]},this.lineWidgets=null,this.getRowLength=function(e){var t=1;return this.lineWidgets&&(t+=this.lineWidgets[e]&&this.lineWidgets[e].rowCount||0),this.$useWrapMode&&this.$wrapData[e]?this.$wrapData[e].length+t:t},this.getRowLineCount=function(e){return this.$useWrapMode&&this.$wrapData[e]?this.$wrapData[e].length+1:1},this.getRowWrapIndent=function(e){var t;return this.$useWrapMode&&(e=this.screenToDocumentPosition(e,Number.MAX_VALUE),(t=this.$wrapData[e.row]).length)&&t[0]<e.column?t.indent:0},this.getScreenLastRowColumn=function(e){e=this.screenToDocumentPosition(e,Number.MAX_VALUE);return this.documentToScreenColumn(e.row,e.column)},this.getDocumentLastRowColumn=function(e,t){e=this.documentToScreenRow(e,t);return this.getScreenLastRowColumn(e)},this.getDocumentLastRowColumnPosition=function(e,t){e=this.documentToScreenRow(e,t);return this.screenToDocumentPosition(e,Number.MAX_VALUE/10)},this.getRowSplitData=function(e){return this.$useWrapMode?this.$wrapData[e]:void 0},this.getScreenTabSize=function(e){return this.$tabSize-(e%this.$tabSize|0)},this.screenToDocumentRow=function(e,t){return this.screenToDocumentPosition(e,t).row},this.screenToDocumentColumn=function(e,t){return this.screenToDocumentPosition(e,t).column},this.screenToDocumentPosition=function(e,t,i){if(e<0)return{row:0,column:0};for(var n,r,s,a=0,o=0,l=0,c=0,h=this.$screenRowCache,u=this.$getRowCacheIndex(h,e),d=h.length,p=(s=d&&0<=u?(l=h[u],a=this.$docRowCache[u],e>h[d-1]):!d,this.getLength()-1),g=this.getNextFoldLine(a),f=g?g.start.row:1/0;l<=e&&!(e<l+(c=this.getRowLength(a))||p<=a);)l+=c,f<++a&&(a=g.end.row+1,f=(g=this.getNextFoldLine(a,g))?g.start.row:1/0),s&&(this.$docRowCache.push(a),this.$screenRowCache.push(l));if(g&&g.start.row<=a)n=this.getFoldDisplayLine(g),a=g.start.row;else{if(l+c<=e||p<a)return{row:p,column:this.getLine(p).length};n=this.getLine(a),g=null}u=0,h=Math.floor(e-l);return this.$useWrapMode&&(d=this.$wrapData[a])&&(r=d[h],0<h)&&d.length&&(u=d.indent,o=d[h-1]||d[d.length-1],n=n.substring(o)),void 0!==i&&this.$bidiHandler.isBidiRow(l+h,a,h)&&(t=this.$bidiHandler.offsetToCol(i)),o+=this.$getStringScreenWidth(n,t-u)[1],this.$useWrapMode&&r<=o&&(o=r-1),g?g.idxToPosition(o):{row:a,column:o}},this.documentToScreenPosition=function(e,t){var i=void 0===t?this.$clipPositionToDocument(e.row,e.column):this.$clipPositionToDocument(e,t),n=(e=i.row,t=i.column,0),i=null;(o=this.getFoldAt(e,t,1))&&(e=o.start.row,t=o.start.column);for(var r,s,a=0,o=this.$docRowCache,l=this.$getRowCacheIndex(o,e),c=o.length,h=(s=c&&0<=l?(a=o[l],n=this.$screenRowCache[l],e>o[c-1]):!c,this.getNextFoldLine(a)),u=h?h.start.row:1/0;a<e;){if(u<=a){if(e<(r=h.end.row+1))break;u=(h=this.getNextFoldLine(r,h))?h.start.row:1/0}else r=a+1;n+=this.getRowLength(a),a=r,s&&(this.$docRowCache.push(a),this.$screenRowCache.push(n))}var d="",i=h&&u<=a?(d=this.getFoldDisplayLine(h,e,t),h.start.row):(d=this.getLine(e).substring(0,t),e),l=0;if(this.$useWrapMode){var p=this.$wrapData[i];if(p){for(var g=0;d.length>=p[g];)n++,g++;d=d.substring(p[g-1]||0,d.length),l=0<g?p.indent:0}}return this.lineWidgets&&this.lineWidgets[a]&&this.lineWidgets[a].rowsAbove&&(n+=this.lineWidgets[a].rowsAbove),{row:n,column:l+this.$getStringScreenWidth(d)[0]}},this.documentToScreenColumn=function(e,t){return this.documentToScreenPosition(e,t).column},this.documentToScreenRow=function(e,t){return this.documentToScreenPosition(e,t).row},this.getScreenLength=function(){var e=0,t=null;if(this.$useWrapMode)for(var i=this.$wrapData.length,n=0,r=0,s=(t=this.$foldData[r++])?t.start.row:1/0;n<i;){var a=this.$wrapData[n];e+=a?a.length+1:1,s<++n&&(n=t.end.row+1,s=(t=this.$foldData[r++])?t.start.row:1/0)}else for(var e=this.getLength(),o=this.$foldData,r=0;r<o.length;r++)e-=(t=o[r]).end.row-t.start.row;return this.lineWidgets&&(e+=this.$getWidgetScreenLength()),e},this.$setFontMetrics=function(s){this.$enableVarChar&&(this.$getStringScreenWidth=function(e,t,i){if(0===t)return[0,0];var n,r;for(t=t||1/0,i=i||0,r=0;r<e.length&&!(t<(i+="\t"===(n=e.charAt(r))?this.getScreenTabSize(i):s.getCharacterWidth(n)));r++);return[i,r]})},this.destroy=function(){this.bgTokenizer&&(this.bgTokenizer.setDocument(null),this.bgTokenizer=null),this.$stopWorker(),this.removeAllListeners(),this.selection.detach()},this.isFullWidth=o}.call(n.prototype),e("./edit_session/folding").Folding.call(n.prototype),e("./edit_session/bracket_match").BracketMatch.call(n.prototype),l.defineOptions(n.prototype,"session",{wrap:{set:function(e){e&&"off"!=e?"free"==e?e=!0:"printMargin"==e?e=-1:"string"==typeof e&&(e=parseInt(e,10)||!1):e=!1,this.$wrap!=e&&((this.$wrap=e)?(this.setWrapLimitRange(e="number"==typeof e?e:null,e),this.setUseWrapMode(!0)):this.setUseWrapMode(!1))},get:function(){return this.getUseWrapMode()?-1==this.$wrap?"printMargin":this.getWrapLimitRange().min?this.$wrap:"free":"off"},handlesSet:!0},wrapMethod:{set:function(e){(e="auto"==e?"text"!=this.$mode.type:"text"!=e)!=this.$wrapAsCode&&(this.$wrapAsCode=e,this.$useWrapMode)&&(this.$useWrapMode=!1,this.setUseWrapMode(!0))},initialValue:"auto"},indentedSoftWrap:{set:function(){this.$useWrapMode&&(this.$useWrapMode=!1,this.setUseWrapMode(!0))},initialValue:!0},firstLineNumber:{set:function(){this._signal("changeBreakpoint")},initialValue:1},useWorker:{set:function(e){this.$useWorker=e,this.$stopWorker(),e&&this.$startWorker()},initialValue:!0},useSoftTabs:{initialValue:!0},tabSize:{set:function(e){0<(e=parseInt(e))&&this.$tabSize!==e&&(this.$modified=!0,this.$rowLengthCache=[],this.$tabSize=e,this._signal("changeTabSize"))},initialValue:4,handlesSet:!0},navigateWithinSoftTabs:{initialValue:!1},foldStyle:{set:function(e){this.setFoldStyle(e)},handlesSet:!0},overwrite:{set:function(e){this._signal("changeOverwrite")},initialValue:!1},newLineMode:{set:function(e){this.doc.setNewLineMode(e)},get:function(){return this.doc.getNewLineMode()},handlesSet:!0},mode:{set:function(e){this.setMode(e)},get:function(){return this.$modeId},handlesSet:!0}}),t.EditSession=n}),ace.define("ace/search",["require","exports","module","ace/lib/lang","ace/lib/oop","ace/range"],function(e,t,i){"use strict";function n(){this.$options={}}var b=e("./lib/lang"),r=e("./lib/oop"),v=e("./range").Range;(function(){this.set=function(e){return r.mixin(this.$options,e),this},this.getOptions=function(){return b.copyObject(this.$options)},this.setOptions=function(e){this.$options=e},this.find=function(e){var r,s=this.$options,e=this.$matchIterator(e,s);return!!e&&(r=null,e.forEach(function(e,t,i,n){return r=new v(e,t,i,n),!(t==n&&s.start&&s.start.start&&0!=s.skipCurrent&&r.isEqual(s.start)&&(r=null,1))}),r)},this.findAll=function(e){var t=this.$options;if(!t.needle)return[];this.$assembleRegExp(t);var i=t.range,n=i?e.getLines(i.start.row,i.end.row):e.doc.getAllLines(),r=[],s=t.re;if(t.$isMultiLine){var a,o=s.length,l=n.length-o;e:for(var c=s.offset||0;c<=l;c++){for(var h=0;h<o;h++)if(-1==n[c+h].search(s[h]))continue e;var u=n[c],d=n[c+o-1],u=u.length-u.match(s[0])[0].length,d=d.match(s[o-1])[0].length;a&&a.end.row===c&&a.end.column>u||(r.push(a=new v(c,u,c+o-1,d)),2<o&&(c=c+o-2))}}else for(var p=0;p<n.length;p++)for(var g=b.getMatchOffsets(n[p],s),h=0;h<g.length;h++){var f=g[h];r.push(new v(p,f.offset,p,f.offset+f.length))}if(i){for(var m=i.start.column,y=i.start.column,p=0,h=r.length-1;p<h&&r[p].start.column<m&&r[p].start.row==i.start.row;)p++;for(;p<h&&r[h].end.column>y&&r[h].end.row==i.end.row;)h--;for(r=r.slice(p,h+1),p=0,h=r.length;p<h;p++)r[p].start.row+=i.start.row,r[p].end.row+=i.start.row}return r},this.replace=function(e,t){var i=this.$options,n=this.$assembleRegExp(i);if(i.$isMultiLine)return t;if(n){var r=n.exec(e);if(!r||r[0].length!=e.length)return null;if(t=e.replace(n,t),i.preserveCase){t=t.split("");for(var s=Math.min(e.length,e.length);s--;){var a=e[s];a&&a.toLowerCase()!=a?t[s]=t[s].toUpperCase():t[s]=t[s].toLowerCase()}t=t.join("")}return t}},this.$assembleRegExp=function(e,t){if(e.needle instanceof RegExp)return e.re=e.needle;var i,n=e.needle;if(!e.needle)return e.re=!1;function r(e){return/\w/.test(e)||i.regExp?"\\b":""}e.regExp||(n=b.escapeRegExp(n)),e.wholeWord&&(i=e,n=r((s=n)[0])+s+r(s[s.length-1]));var s=e.caseSensitive?"gm":"gmi";if(e.$isMultiLine=!t&&/[\n\r]/.test(n),e.$isMultiLine)return e.re=this.$assembleMultilineRegExp(n,s);try{var a=new RegExp(n,s)}catch(e){a=!1}return e.re=a},this.$assembleMultilineRegExp=function(e,t){for(var i=e.replace(/\r\n|\r|\n/g,"$\n^").split("\n"),n=[],r=0;r<i.length;r++)try{n.push(new RegExp(i[r],t))}catch(e){return!1}return n},this.$matchIterator=function(h,i){var o,e,t,n,r,s,l,a,u=this.$assembleRegExp(i);return!!u&&(o=1==i.backwards,e=0!=i.skipCurrent,t=i.range,(n=(n=i.start)||(t?t[o?"end":"start"]:h.selection.getRange())).start&&(n=n[e!=o?"end":"start"]),r=t?t.start.row:0,s=t?t.end.row:h.getLength()-1,a=i.$isMultiLine?(l=u.length,function(e,t,i){var n=o?e-l+1:e;if(!(n<0)){var r=h.getLine(n),e=r.search(u[0]);if(!(!o&&e<t||-1===e)){for(var s=1;s<l;s++)if(-1==(r=h.getLine(n+s)).search(u[s]))return;var a=r.match(u[l-1])[0].length;if(!(o&&t<a))return!!i(n,e,n+l-1,a)||void 0}}}):o?function(e,t,i){var n,r=h.getLine(e),s=[];for(u.lastIndex=0;n=u.exec(r);){var a=n[0].length,o=n.index;if(!a){if(o>=r.length)break;u.lastIndex=o+=1}if(n.index+a>t)break;s.push(n.index,a)}for(var l=s.length-1;0<=l;l-=2){var c=s[l-1];if(i(e,c,e,c+(a=s[l])))return!0}}:function(e,t,i){var n=h.getLine(e);for(u.lastIndex=t;r=u.exec(n);){var r,s=r[0].length;if(i(e,r=r.index,e,r+s))return!0;if(!s&&(u.lastIndex=r+=1,r>=n.length))return!1}},{forEach:o?function(e){var t=n.row;if(!a(t,n.column,e)){for(t--;r<=t;t--)if(a(t,Number.MAX_VALUE,e))return;if(0!=i.wrap)for(t=s,r=n.row;r<=t;t--)if(a(t,Number.MAX_VALUE,e))return}}:function(e){var t=n.row;if(!a(t,n.column,e)){for(t+=1;t<=s;t++)if(a(t,0,e))return;if(0!=i.wrap)for(t=r,s=n.row;t<=s;t++)if(a(t,0,e))return}}})}}).call(n.prototype),t.Search=n}),ace.define("ace/keyboard/hash_handler",["require","exports","module","ace/lib/keys","ace/lib/useragent"],function(e,t,i){"use strict";function n(e,t){this.platform=t||(s.isMac?"mac":"win"),this.commands={},this.commandKeyBinding={},this.addCommands(e),this.$singleCommand=!0}function r(e,t){n.call(this,e,t),this.$singleCommand=!1}var o=e("../lib/keys"),s=e("../lib/useragent"),l=o.KEY_MODS;r.prototype=n.prototype,function(){function a(e){return"object"==typeof e&&e.bindKey&&e.bindKey.position||(e.isDefault?-100:0)}this.addCommand=function(e){this.commands[e.name]&&this.removeCommand(e),(this.commands[e.name]=e).bindKey&&this._buildKeyHash(e)},this.removeCommand=function(e,t){var i,n=e&&("string"==typeof e?e:e.name),r=(e=this.commands[n],t||delete this.commands[n],this.commandKeyBinding);for(i in r){var s,a=r[i];a==e?delete r[i]:Array.isArray(a)&&-1!=(s=a.indexOf(e))&&(a.splice(s,1),1==a.length)&&(r[i]=a[0])}},this.bindKey=function(e,n,r){if("object"==typeof e&&e&&(null==r&&(r=e.position),e=e[this.platform]),e)return"function"==typeof n?this.addCommand({exec:n,bindKey:e,name:n.name||e}):void e.split("|").forEach(function(e){var t="",i=(-1!=e.indexOf(" ")&&(e=(i=e.split(/\s+/)).pop(),i.forEach(function(e){e=this.parseKeys(e),e=l[e.hashId]+e.key;t+=(t?" ":"")+e,this._addCommandToBinding(t,"chainKeys")},this),t+=" "),this.parseKeys(e)),e=l[i.hashId]+i.key;this._addCommandToBinding(t+e,n,r)},this)},this._addCommandToBinding=function(e,t,i){var n=this.commandKeyBinding;if(t)if(!n[e]||this.$singleCommand)n[e]=t;else{Array.isArray(n[e])?-1!=(s=n[e].indexOf(t))&&n[e].splice(s,1):n[e]=[n[e]],"number"!=typeof i&&(i=a(t));for(var r=n[e],s=0;s<r.length;s++)if(i<a(r[s]))break;r.splice(s,0,t)}else delete n[e]},this.addCommands=function(i){i&&Object.keys(i).forEach(function(e){var t=i[e];if(t){if("string"==typeof t)return this.bindKey(t,e);"object"==typeof(t="function"==typeof t?{exec:t}:t)&&(t.name||(t.name=e),this.addCommand(t))}},this)},this.removeCommands=function(t){Object.keys(t).forEach(function(e){this.removeCommand(t[e])},this)},this.bindKeys=function(t){Object.keys(t).forEach(function(e){this.bindKey(e,t[e])},this)},this._buildKeyHash=function(e){this.bindKey(e.bindKey,e)},this.parseKeys=function(e){var t=e.toLowerCase().split(/[\-\+]([\-\+])?/).filter(function(e){return e}),i=t.pop(),n=o[i];if(o.FUNCTION_KEYS[n])i=o.FUNCTION_KEYS[n].toLowerCase();else{if(!t.length)return{key:i,hashId:-1};if(1==t.length&&"shift"==t[0])return{key:i.toUpperCase(),hashId:-1}}for(var r=0,s=t.length;s--;){var a=o.KEY_MODS[t[s]];if(null==a)return"undefined"!=typeof console&&console.error("invalid modifier "+t[s]+" in "+e),!1;r|=a}return{key:i,hashId:r}},this.findKeyCommand=function(e,t){e=l[e]+t;return this.commandKeyBinding[e]},this.handleKeyboard=function(e,t,i,n){var r,s;if(!(n<0))return r=l[t]+i,s=this.commandKeyBinding[r],e.$keyChain&&(e.$keyChain+=" "+r,s=this.commandKeyBinding[e.$keyChain]||s),!s||"chainKeys"!=s&&"chainKeys"!=s[s.length-1]?(e.$keyChain&&(t&&4!=t||1!=i.length?(-1==t||0<n)&&(e.$keyChain=""):e.$keyChain=e.$keyChain.slice(0,-r.length-1)),{command:s}):(e.$keyChain=e.$keyChain||r,{command:"null"})},this.getStatusText=function(e,t){return t.$keyChain||""}}.call(n.prototype),t.HashHandler=n,t.MultiHashHandler=r}),ace.define("ace/commands/command_manager",["require","exports","module","ace/lib/oop","ace/keyboard/hash_handler","ace/lib/event_emitter"],function(e,t,i){"use strict";function n(e,t){s.call(this,t,e),this.byName=this.commands,this.setDefaultHandler("exec",function(e){return e.command.exec(e.editor,e.args||{})})}var r=e("../lib/oop"),s=e("../keyboard/hash_handler").MultiHashHandler,a=e("../lib/event_emitter").EventEmitter;r.inherits(n,s),function(){r.implement(this,a),this.exec=function(e,t,i){if(Array.isArray(e)){for(var n=e.length;n--;)if(this.exec(e[n],t,i))return!0;return!1}var r;return!!(e="string"==typeof e?this.commands[e]:e)&&!(t&&t.$readOnly&&!e.readOnly||0!=this.$checkCommandState&&e.isAvailable&&!e.isAvailable(t)||((r={editor:t,command:e,args:i}).returnValue=this._emit("exec",r),this._signal("afterExec",r),!1===r.returnValue))},this.toggleRecording=function(e){if(!this.$inReplay)return e&&e._emit("changeStatus"),this.recording?(this.macro.pop(),this.off("exec",this.$addCommandToMacro),this.macro.length||(this.macro=this.oldMacro),this.recording=!1):(this.$addCommandToMacro||(this.$addCommandToMacro=function(e){this.macro.push([e.command,e.args])}.bind(this)),this.oldMacro=this.macro,this.macro=[],this.on("exec",this.$addCommandToMacro),this.recording=!0)},this.replay=function(t){if(!this.$inReplay&&this.macro){if(this.recording)return this.toggleRecording(t);try{this.$inReplay=!0,this.macro.forEach(function(e){"string"==typeof e?this.exec(e,t):this.exec(e[0],t,e[1])},this)}finally{this.$inReplay=!1}}},this.trimMacro=function(e){return e.map(function(e){return"string"!=typeof e[0]&&(e[0]=e[0].name),e=e[1]?e:e[0]})}}.call(n.prototype),t.CommandManager=n}),ace.define("ace/commands/default_commands",["require","exports","module","ace/lib/lang","ace/config","ace/range"],function(e,t,i){"use strict";function n(e,t){return{win:e,mac:t}}var l=e("../lib/lang"),r=e("../config"),c=e("../range").Range;t.commands=[{name:"showSettingsMenu",bindKey:n("Ctrl-,","Command-,"),exec:function(t){r.loadModule("ace/ext/settings_menu",function(e){e.init(t),t.showSettingsMenu()})},readOnly:!0},{name:"goToNextError",bindKey:n("Alt-E","F4"),exec:function(t){r.loadModule("./ext/error_marker",function(e){e.showErrorMarker(t,1)})},scrollIntoView:"animate",readOnly:!0},{name:"goToPreviousError",bindKey:n("Alt-Shift-E","Shift-F4"),exec:function(t){r.loadModule("./ext/error_marker",function(e){e.showErrorMarker(t,-1)})},scrollIntoView:"animate",readOnly:!0},{name:"selectall",description:"Select all",bindKey:n("Ctrl-A","Command-A"),exec:function(e){e.selectAll()},readOnly:!0},{name:"centerselection",description:"Center selection",bindKey:n(null,"Ctrl-L"),exec:function(e){e.centerSelection()},readOnly:!0},{name:"gotoline",description:"Go to line...",bindKey:n("Ctrl-L","Command-L"),exec:function(e,t){"number"!=typeof t||isNaN(t)||e.gotoLine(t),e.prompt({$type:"gotoLine"})},readOnly:!0},{name:"fold",bindKey:n("Alt-L|Ctrl-F1","Command-Alt-L|Command-F1"),exec:function(e){e.session.toggleFold(!1)},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"unfold",bindKey:n("Alt-Shift-L|Ctrl-Shift-F1","Command-Alt-Shift-L|Command-Shift-F1"),exec:function(e){e.session.toggleFold(!0)},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"toggleFoldWidget",bindKey:n("F2","F2"),exec:function(e){e.session.toggleFoldWidget()},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"toggleParentFoldWidget",bindKey:n("Alt-F2","Alt-F2"),exec:function(e){e.session.toggleFoldWidget(!0)},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"foldall",description:"Fold all",bindKey:n(null,"Ctrl-Command-Option-0"),exec:function(e){e.session.foldAll()},scrollIntoView:"center",readOnly:!0},{name:"foldAllComments",description:"Fold all comments",bindKey:n(null,"Ctrl-Command-Option-0"),exec:function(e){e.session.foldAllComments()},scrollIntoView:"center",readOnly:!0},{name:"foldOther",description:"Fold other",bindKey:n("Alt-0","Command-Option-0"),exec:function(e){e.session.foldAll(),e.session.unfold(e.selection.getAllRanges())},scrollIntoView:"center",readOnly:!0},{name:"unfoldall",description:"Unfold all",bindKey:n("Alt-Shift-0","Command-Option-Shift-0"),exec:function(e){e.session.unfold()},scrollIntoView:"center",readOnly:!0},{name:"findnext",description:"Find next",bindKey:n("Ctrl-K","Command-G"),exec:function(e){e.findNext()},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"findprevious",description:"Find previous",bindKey:n("Ctrl-Shift-K","Command-Shift-G"),exec:function(e){e.findPrevious()},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"selectOrFindNext",description:"Select or find next",bindKey:n("Alt-K","Ctrl-G"),exec:function(e){e.selection.isEmpty()?e.selection.selectWord():e.findNext()},readOnly:!0},{name:"selectOrFindPrevious",description:"Select or find previous",bindKey:n("Alt-Shift-K","Ctrl-Shift-G"),exec:function(e){e.selection.isEmpty()?e.selection.selectWord():e.findPrevious()},readOnly:!0},{name:"find",description:"Find",bindKey:n("Ctrl-F","Command-F"),exec:function(t){r.loadModule("ace/ext/searchbox",function(e){e.Search(t)})},readOnly:!0},{name:"overwrite",description:"Overwrite",bindKey:"Insert",exec:function(e){e.toggleOverwrite()},readOnly:!0},{name:"selecttostart",description:"Select to start",bindKey:n("Ctrl-Shift-Home","Command-Shift-Home|Command-Shift-Up"),exec:function(e){e.getSelection().selectFileStart()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"gotostart",description:"Go to start",bindKey:n("Ctrl-Home","Command-Home|Command-Up"),exec:function(e){e.navigateFileStart()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"selectup",description:"Select up",bindKey:n("Shift-Up","Shift-Up|Ctrl-Shift-P"),exec:function(e){e.getSelection().selectUp()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"golineup",description:"Go line up",bindKey:n("Up","Up|Ctrl-P"),exec:function(e,t){e.navigateUp(t.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selecttoend",description:"Select to end",bindKey:n("Ctrl-Shift-End","Command-Shift-End|Command-Shift-Down"),exec:function(e){e.getSelection().selectFileEnd()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"gotoend",description:"Go to end",bindKey:n("Ctrl-End","Command-End|Command-Down"),exec:function(e){e.navigateFileEnd()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"selectdown",description:"Select down",bindKey:n("Shift-Down","Shift-Down|Ctrl-Shift-N"),exec:function(e){e.getSelection().selectDown()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"golinedown",description:"Go line down",bindKey:n("Down","Down|Ctrl-N"),exec:function(e,t){e.navigateDown(t.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectwordleft",description:"Select word left",bindKey:n("Ctrl-Shift-Left","Option-Shift-Left"),exec:function(e){e.getSelection().selectWordLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotowordleft",description:"Go to word left",bindKey:n("Ctrl-Left","Option-Left"),exec:function(e){e.navigateWordLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selecttolinestart",description:"Select to line start",bindKey:n("Alt-Shift-Left","Command-Shift-Left|Ctrl-Shift-A"),exec:function(e){e.getSelection().selectLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotolinestart",description:"Go to line start",bindKey:n("Alt-Left|Home","Command-Left|Home|Ctrl-A"),exec:function(e){e.navigateLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectleft",description:"Select left",bindKey:n("Shift-Left","Shift-Left|Ctrl-Shift-B"),exec:function(e){e.getSelection().selectLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotoleft",description:"Go to left",bindKey:n("Left","Left|Ctrl-B"),exec:function(e,t){e.navigateLeft(t.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectwordright",description:"Select word right",bindKey:n("Ctrl-Shift-Right","Option-Shift-Right"),exec:function(e){e.getSelection().selectWordRight()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotowordright",description:"Go to word right",bindKey:n("Ctrl-Right","Option-Right"),exec:function(e){e.navigateWordRight()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selecttolineend",description:"Select to line end",bindKey:n("Alt-Shift-Right","Command-Shift-Right|Shift-End|Ctrl-Shift-E"),exec:function(e){e.getSelection().selectLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotolineend",description:"Go to line end",bindKey:n("Alt-Right|End","Command-Right|End|Ctrl-E"),exec:function(e){e.navigateLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectright",description:"Select right",bindKey:n("Shift-Right","Shift-Right"),exec:function(e){e.getSelection().selectRight()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotoright",description:"Go to right",bindKey:n("Right","Right|Ctrl-F"),exec:function(e,t){e.navigateRight(t.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectpagedown",description:"Select page down",bindKey:"Shift-PageDown",exec:function(e){e.selectPageDown()},readOnly:!0},{name:"pagedown",description:"Page down",bindKey:n(null,"Option-PageDown"),exec:function(e){e.scrollPageDown()},readOnly:!0},{name:"gotopagedown",description:"Go to page down",bindKey:n("PageDown","PageDown|Ctrl-V"),exec:function(e){e.gotoPageDown()},readOnly:!0},{name:"selectpageup",description:"Select page up",bindKey:"Shift-PageUp",exec:function(e){e.selectPageUp()},readOnly:!0},{name:"pageup",description:"Page up",bindKey:n(null,"Option-PageUp"),exec:function(e){e.scrollPageUp()},readOnly:!0},{name:"gotopageup",description:"Go to page up",bindKey:"PageUp",exec:function(e){e.gotoPageUp()},readOnly:!0},{name:"scrollup",description:"Scroll up",bindKey:n("Ctrl-Up",null),exec:function(e){e.renderer.scrollBy(0,-2*e.renderer.layerConfig.lineHeight)},readOnly:!0},{name:"scrolldown",description:"Scroll down",bindKey:n("Ctrl-Down",null),exec:function(e){e.renderer.scrollBy(0,2*e.renderer.layerConfig.lineHeight)},readOnly:!0},{name:"selectlinestart",description:"Select line start",bindKey:"Shift-Home",exec:function(e){e.getSelection().selectLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectlineend",description:"Select line end",bindKey:"Shift-End",exec:function(e){e.getSelection().selectLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"togglerecording",description:"Toggle recording",bindKey:n("Ctrl-Alt-E","Command-Option-E"),exec:function(e){e.commands.toggleRecording(e)},readOnly:!0},{name:"replaymacro",description:"Replay macro",bindKey:n("Ctrl-Shift-E","Command-Shift-E"),exec:function(e){e.commands.replay(e)},readOnly:!0},{name:"jumptomatching",description:"Jump to matching",bindKey:n("Ctrl-\\|Ctrl-P","Command-\\"),exec:function(e){e.jumpToMatching()},multiSelectAction:"forEach",scrollIntoView:"animate",readOnly:!0},{name:"selecttomatching",description:"Select to matching",bindKey:n("Ctrl-Shift-\\|Ctrl-Shift-P","Command-Shift-\\"),exec:function(e){e.jumpToMatching(!0)},multiSelectAction:"forEach",scrollIntoView:"animate",readOnly:!0},{name:"expandToMatching",description:"Expand to matching",bindKey:n("Ctrl-Shift-M","Ctrl-Shift-M"),exec:function(e){e.jumpToMatching(!0,!0)},multiSelectAction:"forEach",scrollIntoView:"animate",readOnly:!0},{name:"passKeysToBrowser",description:"Pass keys to browser",bindKey:n(null,null),exec:function(){},passEvent:!0,readOnly:!0},{name:"copy",description:"Copy",exec:function(e){},readOnly:!0},{name:"cut",description:"Cut",exec:function(e){var t=e.$copyWithEmptySelection&&e.selection.isEmpty()?e.selection.getLineRange():e.selection.getRange();e._emit("cut",t),t.isEmpty()||e.session.remove(t),e.clearSelection()},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"paste",description:"Paste",exec:function(e,t){e.$handlePaste(t)},scrollIntoView:"cursor"},{name:"removeline",description:"Remove line",bindKey:n("Ctrl-D","Command-D"),exec:function(e){e.removeLines()},scrollIntoView:"cursor",multiSelectAction:"forEachLine"},{name:"duplicateSelection",description:"Duplicate selection",bindKey:n("Ctrl-Shift-D","Command-Shift-D"),exec:function(e){e.duplicateSelection()},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"sortlines",description:"Sort lines",bindKey:n("Ctrl-Alt-S","Command-Alt-S"),exec:function(e){e.sortLines()},scrollIntoView:"selection",multiSelectAction:"forEachLine"},{name:"togglecomment",description:"Toggle comment",bindKey:n("Ctrl-/","Command-/"),exec:function(e){e.toggleCommentLines()},multiSelectAction:"forEachLine",scrollIntoView:"selectionPart"},{name:"toggleBlockComment",description:"Toggle block comment",bindKey:n("Ctrl-Shift-/","Command-Shift-/"),exec:function(e){e.toggleBlockComment()},multiSelectAction:"forEach",scrollIntoView:"selectionPart"},{name:"modifyNumberUp",description:"Modify number up",bindKey:n("Ctrl-Shift-Up","Alt-Shift-Up"),exec:function(e){e.modifyNumber(1)},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"modifyNumberDown",description:"Modify number down",bindKey:n("Ctrl-Shift-Down","Alt-Shift-Down"),exec:function(e){e.modifyNumber(-1)},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"replace",description:"Replace",bindKey:n("Ctrl-H","Command-Option-F"),exec:function(t){r.loadModule("ace/ext/searchbox",function(e){e.Search(t,!0)})}},{name:"undo",description:"Undo",bindKey:n("Ctrl-Z","Command-Z"),exec:function(e){e.undo()}},{name:"redo",description:"Redo",bindKey:n("Ctrl-Shift-Z|Ctrl-Y","Command-Shift-Z|Command-Y"),exec:function(e){e.redo()}},{name:"copylinesup",description:"Copy lines up",bindKey:n("Alt-Shift-Up","Command-Option-Up"),exec:function(e){e.copyLinesUp()},scrollIntoView:"cursor"},{name:"movelinesup",description:"Move lines up",bindKey:n("Alt-Up","Option-Up"),exec:function(e){e.moveLinesUp()},scrollIntoView:"cursor"},{name:"copylinesdown",description:"Copy lines down",bindKey:n("Alt-Shift-Down","Command-Option-Down"),exec:function(e){e.copyLinesDown()},scrollIntoView:"cursor"},{name:"movelinesdown",description:"Move lines down",bindKey:n("Alt-Down","Option-Down"),exec:function(e){e.moveLinesDown()},scrollIntoView:"cursor"},{name:"del",description:"Delete",bindKey:n("Delete","Delete|Ctrl-D|Shift-Delete"),exec:function(e){e.remove("right")},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"backspace",description:"Backspace",bindKey:n("Shift-Backspace|Backspace","Ctrl-Backspace|Shift-Backspace|Backspace|Ctrl-H"),exec:function(e){e.remove("left")},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"cut_or_delete",description:"Cut or delete",bindKey:n("Shift-Delete",null),exec:function(e){if(!e.selection.isEmpty())return!1;e.remove("left")},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolinestart",description:"Remove to line start",bindKey:n("Alt-Backspace","Command-Backspace"),exec:function(e){e.removeToLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolineend",description:"Remove to line end",bindKey:n("Alt-Delete","Ctrl-K|Command-Delete"),exec:function(e){e.removeToLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolinestarthard",description:"Remove to line start hard",bindKey:n("Ctrl-Shift-Backspace",null),exec:function(e){var t=e.selection.getRange();t.start.column=0,e.session.remove(t)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolineendhard",description:"Remove to line end hard",bindKey:n("Ctrl-Shift-Delete",null),exec:function(e){var t=e.selection.getRange();t.end.column=Number.MAX_VALUE,e.session.remove(t)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removewordleft",description:"Remove word left",bindKey:n("Ctrl-Backspace","Alt-Backspace|Ctrl-Alt-Backspace"),exec:function(e){e.removeWordLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removewordright",description:"Remove word right",bindKey:n("Ctrl-Delete","Alt-Delete"),exec:function(e){e.removeWordRight()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"outdent",description:"Outdent",bindKey:n("Shift-Tab","Shift-Tab"),exec:function(e){e.blockOutdent()},multiSelectAction:"forEach",scrollIntoView:"selectionPart"},{name:"indent",description:"Indent",bindKey:n("Tab","Tab"),exec:function(e){e.indent()},multiSelectAction:"forEach",scrollIntoView:"selectionPart"},{name:"blockoutdent",description:"Block outdent",bindKey:n("Ctrl-[","Ctrl-["),exec:function(e){e.blockOutdent()},multiSelectAction:"forEachLine",scrollIntoView:"selectionPart"},{name:"blockindent",description:"Block indent",bindKey:n("Ctrl-]","Ctrl-]"),exec:function(e){e.blockIndent()},multiSelectAction:"forEachLine",scrollIntoView:"selectionPart"},{name:"insertstring",description:"Insert string",exec:function(e,t){e.insert(t)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"inserttext",description:"Insert text",exec:function(e,t){e.insert(l.stringRepeat(t.text||"",t.times||1))},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"splitline",description:"Split line",bindKey:n(null,"Ctrl-O"),exec:function(e){e.splitLine()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"transposeletters",description:"Transpose letters",bindKey:n("Alt-Shift-X","Ctrl-T"),exec:function(e){e.transposeLetters()},multiSelectAction:function(e){e.transposeSelections(1)},scrollIntoView:"cursor"},{name:"touppercase",description:"To uppercase",bindKey:n("Ctrl-U","Ctrl-U"),exec:function(e){e.toUpperCase()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"tolowercase",description:"To lowercase",bindKey:n("Ctrl-Shift-U","Ctrl-Shift-U"),exec:function(e){e.toLowerCase()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"autoindent",description:"Auto Indent",bindKey:n(null,null),exec:function(e){e.autoIndent()},multiSelectAction:"forEachLine",scrollIntoView:"animate"},{name:"expandtoline",description:"Expand to line",bindKey:n("Ctrl-Shift-L","Command-Shift-L"),exec:function(e){var t=e.selection.getRange();t.start.column=t.end.column=0,t.end.row++,e.selection.setRange(t,!1)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"joinlines",description:"Join lines",bindKey:n(null,null),exec:function(e){for(var t=e.selection.isBackwards(),i=t?e.selection.getSelectionLead():e.selection.getSelectionAnchor(),n=t?e.selection.getSelectionAnchor():e.selection.getSelectionLead(),t=e.session.doc.getLine(i.row).length,r=e.session.doc.getTextRange(e.selection.getRange()).replace(/\n\s*/," ").length,s=e.session.doc.getLine(i.row),a=i.row+1;a<=n.row+1;a++){var o=l.stringTrimLeft(l.stringTrimRight(e.session.doc.getLine(a)));s+=o=0!==o.length?" "+o:o}n.row+1<e.session.doc.getLength()-1&&(s+=e.session.doc.getNewLineCharacter()),e.clearSelection(),e.session.doc.replace(new c(i.row,0,n.row+2,0),s),0<r?(e.selection.moveCursorTo(i.row,i.column),e.selection.selectTo(i.row,i.column+r)):(t=e.session.doc.getLine(i.row).length>t?t+1:t,e.selection.moveCursorTo(i.row,t))},multiSelectAction:"forEach",readOnly:!0},{name:"invertSelection",description:"Invert selection",bindKey:n(null,null),exec:function(e){var t=e.session.doc.getLength()-1,i=e.session.doc.getLine(t).length,n=e.selection.rangeList.ranges,r=[];n.length<1&&(n=[e.selection.getRange()]);for(var s=0;s<n.length;s++)s!=n.length-1||n[s].end.row===t&&n[s].end.column===i||r.push(new c(n[s].end.row,n[s].end.column,t,i)),0===s?0===n[s].start.row&&0===n[s].start.column||r.push(new c(0,0,n[s].start.row,n[s].start.column)):r.push(new c(n[s-1].end.row,n[s-1].end.column,n[s].start.row,n[s].start.column));e.exitMultiSelectMode(),e.clearSelection();for(s=0;s<r.length;s++)e.selection.addRange(r[s],!1)},readOnly:!0,scrollIntoView:"none"},{name:"addLineAfter",exec:function(e){e.selection.clearSelection(),e.navigateLineEnd(),e.insert("\n")},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"addLineBefore",exec:function(e){e.selection.clearSelection();var t=e.getCursorPosition();e.selection.moveTo(t.row-1,Number.MAX_VALUE),e.insert("\n"),0===t.row&&e.navigateUp()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"openCommandPallete",description:"Open command pallete",bindKey:n("F1","F1"),exec:function(e){e.prompt({$type:"commands"})},readOnly:!0},{name:"modeSelect",description:"Change language mode...",bindKey:n(null,null),exec:function(e){e.prompt({$type:"modes"})},readOnly:!0}];for(var s=1;s<9;s++)t.commands.push({name:"foldToLevel"+s,description:"Fold To Level "+s,level:s,exec:function(e){e.session.foldToLevel(this.level)},scrollIntoView:"center",readOnly:!0})}),ace.define("ace/editor",["require","exports","module","ace/lib/fixoldbrowsers","ace/lib/oop","ace/lib/dom","ace/lib/lang","ace/lib/useragent","ace/keyboard/textinput","ace/mouse/mouse_handler","ace/mouse/fold_handler","ace/keyboard/keybinding","ace/edit_session","ace/search","ace/range","ace/lib/event_emitter","ace/commands/command_manager","ace/commands/default_commands","ace/config","ace/token_iterator","ace/clipboard"],function(e,t,i){"use strict";e("./lib/fixoldbrowsers");function r(e,t,i){this.$toDestroy=[];var n=e.getContainerElement();this.container=n,this.renderer=e,this.id="editor"+ ++r.$uid,this.commands=new g(a.isMac?"mac":"win",y),"object"==typeof document&&(this.textInput=new o(e.getTextAreaContainer(),this),this.renderer.textarea=this.textInput.getElement(),this.$mouseHandler=new l(this),new c(this)),this.keyBinding=new h(this),this.$search=(new d).set({wrap:!0}),this.$historyTracker=this.$historyTracker.bind(this),this.commands.on("exec",this.$historyTracker),this.$initOperationListeners(),this._$emitInputEvent=f.delayedCall(function(){this._signal("input",{}),this.session&&this.session.bgTokenizer&&this.session.bgTokenizer.scheduleStart()}.bind(this)),this.on("change",function(e,t){t._$emitInputEvent.schedule(31)}),this.setSession(t||i&&i.session||new u("")),b.resetOptions(this),i&&this.setOptions(i),b._signal("editor",this)}var s=e("./lib/oop"),n=e("./lib/dom"),f=e("./lib/lang"),a=e("./lib/useragent"),o=e("./keyboard/textinput").TextInput,l=e("./mouse/mouse_handler").MouseHandler,c=e("./mouse/fold_handler").FoldHandler,h=e("./keyboard/keybinding").KeyBinding,u=e("./edit_session").EditSession,d=e("./search").Search,m=e("./range").Range,p=e("./lib/event_emitter").EventEmitter,g=e("./commands/command_manager").CommandManager,y=e("./commands/default_commands").commands,b=e("./config"),v=e("./token_iterator").TokenIterator,x=e("./clipboard"),w=(r.$uid=0,function(){s.implement(this,p),this.$initOperationListeners=function(){this.commands.on("exec",this.startOperation.bind(this),!0),this.commands.on("afterExec",this.endOperation.bind(this),!0),this.$opResetTimer=f.delayedCall(this.endOperation.bind(this,!0)),this.on("change",function(){this.curOp||(this.startOperation(),this.curOp.selectionBefore=this.$lastSel),this.curOp.docChanged=!0}.bind(this),!0),this.on("changeSelection",function(){this.curOp||(this.startOperation(),this.curOp.selectionBefore=this.$lastSel),this.curOp.selectionChanged=!0}.bind(this),!0)},this.curOp=null,this.prevOp={},this.startOperation=function(e){if(this.curOp){if(!e||this.curOp.command)return;this.prevOp=this.curOp}e||(this.previousCommand=null,e={}),this.$opResetTimer.schedule(),this.curOp=this.session.curOp={command:e.command||{},args:e.args,scrollTop:this.renderer.scrollTop},this.curOp.selectionBefore=this.selection.toJSON()},this.endOperation=function(e){if(this.curOp&&this.session){if(e&&!1===e.returnValue||!this.session)return this.curOp=null;if((1!=e||!this.curOp.command||"mouse"!=this.curOp.command.name)&&(this._signal("beforeEndOperation"),this.curOp)){var e=this.curOp.command,t=e&&e.scrollIntoView;if(t){switch(t){case"center-animate":t="animate";case"center":this.renderer.scrollCursorIntoView(null,.5);break;case"animate":case"cursor":this.renderer.scrollCursorIntoView();break;case"selectionPart":var i=this.selection.getRange(),n=this.renderer.layerConfig;(i.start.row>=n.lastRow||i.end.row<=n.firstRow)&&this.renderer.scrollSelectionIntoView(this.selection.anchor,this.selection.lead)}"animate"==t&&this.renderer.animateScrolling(this.curOp.scrollTop)}e=this.selection.toJSON();this.curOp.selectionAfter=e,this.$lastSel=this.selection.toJSON(),this.session.getUndoManager().addSelection(e),this.prevOp=this.curOp,this.curOp=null}}},this.$mergeableCommands=["backspace","del","insertstring"],this.$historyTracker=function(e){var t,i,n,r;this.$mergeUndoDeltas&&(t=this.prevOp,i=this.$mergeableCommands,n=t.command&&e.command.name==t.command.name,"insertstring"==e.command.name?(r=e.args,void 0===this.mergeNextCommand&&(this.mergeNextCommand=!0),n=n&&this.mergeNextCommand&&(!/\s/.test(r)||/\s/.test(t.args)),this.mergeNextCommand=!0):n=n&&-1!==i.indexOf(e.command.name),(n="always"!=this.$mergeUndoDeltas&&2e3<Date.now()-this.sequenceStartTime?!1:n)?this.session.mergeUndoDeltas=!0:-1!==i.indexOf(e.command.name)&&(this.sequenceStartTime=Date.now()))},this.setKeyboardHandler=function(t,i){var n;t&&"string"==typeof t&&"ace"!=t?(this.$keybindingId=t,n=this,b.loadModule(["keybinding",t],function(e){n.$keybindingId==t&&n.keyBinding.setKeyboardHandler(e&&e.handler),i&&i()})):(this.$keybindingId=null,this.keyBinding.setKeyboardHandler(t),i&&i())},this.getKeyboardHandler=function(){return this.keyBinding.getKeyboardHandler()},this.setSession=function(e){var t,i;this.session!=e&&(this.curOp&&this.endOperation(),this.curOp={},(t=this.session)&&(this.session.off("change",this.$onDocumentChange),this.session.off("changeMode",this.$onChangeMode),this.session.off("tokenizerUpdate",this.$onTokenizerUpdate),this.session.off("changeTabSize",this.$onChangeTabSize),this.session.off("changeWrapLimit",this.$onChangeWrapLimit),this.session.off("changeWrapMode",this.$onChangeWrapMode),this.session.off("changeFold",this.$onChangeFold),this.session.off("changeFrontMarker",this.$onChangeFrontMarker),this.session.off("changeBackMarker",this.$onChangeBackMarker),this.session.off("changeBreakpoint",this.$onChangeBreakpoint),this.session.off("changeAnnotation",this.$onChangeAnnotation),this.session.off("changeOverwrite",this.$onCursorChange),this.session.off("changeScrollTop",this.$onScrollTopChange),this.session.off("changeScrollLeft",this.$onScrollLeftChange),(i=this.session.getSelection()).off("changeCursor",this.$onCursorChange),i.off("changeSelection",this.$onSelectionChange)),(this.session=e)?(this.$onDocumentChange=this.onDocumentChange.bind(this),e.on("change",this.$onDocumentChange),this.renderer.setSession(e),this.$onChangeMode=this.onChangeMode.bind(this),e.on("changeMode",this.$onChangeMode),this.$onTokenizerUpdate=this.onTokenizerUpdate.bind(this),e.on("tokenizerUpdate",this.$onTokenizerUpdate),this.$onChangeTabSize=this.renderer.onChangeTabSize.bind(this.renderer),e.on("changeTabSize",this.$onChangeTabSize),this.$onChangeWrapLimit=this.onChangeWrapLimit.bind(this),e.on("changeWrapLimit",this.$onChangeWrapLimit),this.$onChangeWrapMode=this.onChangeWrapMode.bind(this),e.on("changeWrapMode",this.$onChangeWrapMode),this.$onChangeFold=this.onChangeFold.bind(this),e.on("changeFold",this.$onChangeFold),this.$onChangeFrontMarker=this.onChangeFrontMarker.bind(this),this.session.on("changeFrontMarker",this.$onChangeFrontMarker),this.$onChangeBackMarker=this.onChangeBackMarker.bind(this),this.session.on("changeBackMarker",this.$onChangeBackMarker),this.$onChangeBreakpoint=this.onChangeBreakpoint.bind(this),this.session.on("changeBreakpoint",this.$onChangeBreakpoint),this.$onChangeAnnotation=this.onChangeAnnotation.bind(this),this.session.on("changeAnnotation",this.$onChangeAnnotation),this.$onCursorChange=this.onCursorChange.bind(this),this.session.on("changeOverwrite",this.$onCursorChange),this.$onScrollTopChange=this.onScrollTopChange.bind(this),this.session.on("changeScrollTop",this.$onScrollTopChange),this.$onScrollLeftChange=this.onScrollLeftChange.bind(this),this.session.on("changeScrollLeft",this.$onScrollLeftChange),this.selection=e.getSelection(),this.selection.on("changeCursor",this.$onCursorChange),this.$onSelectionChange=this.onSelectionChange.bind(this),this.selection.on("changeSelection",this.$onSelectionChange),this.onChangeMode(),this.onCursorChange(),this.onScrollTopChange(),this.onScrollLeftChange(),this.onSelectionChange(),this.onChangeFrontMarker(),this.onChangeBackMarker(),this.onChangeBreakpoint(),this.onChangeAnnotation(),this.session.getUseWrapMode()&&this.renderer.adjustWrapLimit(),this.renderer.updateFull()):(this.selection=null,this.renderer.setSession(e)),this._signal("changeSession",{session:e,oldSession:t}),this.curOp=null,t&&t._signal("changeEditor",{oldEditor:this}),e&&e._signal("changeEditor",{editor:this}),e)&&e.bgTokenizer&&e.bgTokenizer.scheduleStart()},this.getSession=function(){return this.session},this.setValue=function(e,t){return this.session.doc.setValue(e),t?1==t?this.navigateFileEnd():-1==t&&this.navigateFileStart():this.selectAll(),e},this.getValue=function(){return this.session.getValue()},this.getSelection=function(){return this.selection},this.resize=function(e){this.renderer.onResize(e)},this.setTheme=function(e,t){this.renderer.setTheme(e,t)},this.getTheme=function(){return this.renderer.getTheme()},this.setStyle=function(e){this.renderer.setStyle(e)},this.unsetStyle=function(e){this.renderer.unsetStyle(e)},this.getFontSize=function(){return this.getOption("fontSize")||n.computedStyle(this.container).fontSize},this.setFontSize=function(e){this.setOption("fontSize",e)},this.$highlightBrackets=function(){var n;this.$highlightPending||((n=this).$highlightPending=!0,setTimeout(function(){n.$highlightPending=!1;var e,t,i=n.session;i&&i.bgTokenizer&&(i.$bracketHighlight&&(i.$bracketHighlight.markerIds.forEach(function(e){i.removeMarker(e)}),i.$bracketHighlight=null),e=!(e=i.getMatchingBracketRanges(n.getCursorPosition()))&&i.$mode.getMatching?i.$mode.getMatching(n.session):e)&&(t="ace_bracket",Array.isArray(e)?1==e.length&&(t="ace_error_bracket"):e=[e],2==e.length&&(0==m.comparePoints(e[0].end,e[1].start)?e=[m.fromPoints(e[0].start,e[1].end)]:0==m.comparePoints(e[0].start,e[1].end)&&(e=[m.fromPoints(e[1].start,e[0].end)])),i.$bracketHighlight={ranges:e,markerIds:e.map(function(e){return i.addMarker(e,t,"text")})})},50))},this.$highlightTags=function(){var d;this.$highlightTagPending||((d=this).$highlightTagPending=!0,setTimeout(function(){d.$highlightTagPending=!1;var e=d.session;if(e&&e.bgTokenizer){var t=d.getCursorPosition(),i=new v(d.session,t.row,t.column),n=i.getCurrentToken();if(n&&/\b(?:tag-open|tag-name)/.test(n.type)){if(-1===n.type.indexOf("tag-open")||(n=i.stepForward())){var r,s=n.value,a=n.value,o=0,l=i.stepBackward();if("<"===l.value)for(;l=n,(n=i.stepForward())&&(-1!==n.type.indexOf("tag-name")?s===(a=n.value)&&("<"===l.value?o++:"</"===l.value&&o--):s===a&&"/>"===n.value&&o--),n&&0<=o;);else{do{if(n=l,l=i.stepBackward(),n)if(-1!==n.type.indexOf("tag-name"))s===n.value&&("<"===l.value?o++:"</"===l.value&&o--);else if("/>"===n.value){for(var c=0,h=l;h;){if(-1!==h.type.indexOf("tag-name")&&h.value===s){o--;break}if("<"===h.value)break;h=i.stepBackward(),c++}for(var u=0;u<c;u++)i.stepForward()}}while(l&&o<=0);i.stepForward()}n?(t=i.getCurrentTokenRow(),r=i.getCurrentTokenColumn(),t=new m(t,r,t,r+n.value.length),r=e.$backMarkers[e.$tagHighlight],e.$tagHighlight&&null!=r&&0!==t.compareRange(r.range)&&(e.removeMarker(e.$tagHighlight),e.$tagHighlight=null),e.$tagHighlight||(e.$tagHighlight=e.addMarker(t,"ace_bracket","text"))):(e.removeMarker(e.$tagHighlight),e.$tagHighlight=null)}}else e.removeMarker(e.$tagHighlight),e.$tagHighlight=null}},50))},this.focus=function(){var e=this;setTimeout(function(){e.isFocused()||e.textInput.focus()}),this.textInput.focus()},this.isFocused=function(){return this.textInput.isFocused()},this.blur=function(){this.textInput.blur()},this.onFocus=function(e){this.$isFocused||(this.$isFocused=!0,this.renderer.showCursor(),this.renderer.visualizeFocus(),this._emit("focus",e))},this.onBlur=function(e){this.$isFocused&&(this.$isFocused=!1,this.renderer.hideCursor(),this.renderer.visualizeBlur(),this._emit("blur",e))},this.$cursorChange=function(){this.renderer.updateCursor(),this.$highlightBrackets(),this.$highlightTags(),this.$updateHighlightActiveLine()},this.onDocumentChange=function(e){var t=this.session.$useWrapMode,i=e.start.row==e.end.row?e.end.row:1/0;this.renderer.updateLines(e.start.row,i,t),this._signal("change",e),this.$cursorChange()},this.onTokenizerUpdate=function(e){e=e.data;this.renderer.updateLines(e.first,e.last)},this.onScrollTopChange=function(){this.renderer.scrollToY(this.session.getScrollTop())},this.onScrollLeftChange=function(){this.renderer.scrollToX(this.session.getScrollLeft())},this.onCursorChange=function(){this.$cursorChange(),this._signal("changeSelection")},this.$updateHighlightActiveLine=function(){var e,t,i=this.getSession();this.$highlightActiveLine&&("line"==this.$selectionStyle&&this.selection.isMultiLine()||(e=this.getCursorPosition()),this.renderer.theme&&this.renderer.theme.$selectionColorConflict&&!this.selection.isEmpty()&&(e=!1),!this.renderer.$maxLines||1!==this.session.getLength()||1<this.renderer.$minLines||(e=!1)),i.$highlightLineMarker&&!e?(i.removeMarker(i.$highlightLineMarker.id),i.$highlightLineMarker=null):!i.$highlightLineMarker&&e?((t=new m(e.row,e.column,e.row,1/0)).id=i.addMarker(t,"ace_active-line","screenLine"),i.$highlightLineMarker=t):e&&(i.$highlightLineMarker.start.row=e.row,i.$highlightLineMarker.end.row=e.row,i.$highlightLineMarker.start.column=e.column,i._signal("changeBackMarker"))},this.onSelectionChange=function(e){var t,i,n=this.session,n=(n.$selectionMarker&&n.removeMarker(n.$selectionMarker),n.$selectionMarker=null,this.selection.isEmpty()?this.$updateHighlightActiveLine():(t=this.selection.getRange(),i=this.getSelectionStyle(),n.$selectionMarker=n.addMarker(t,"ace_selection",i)),this.$highlightSelectedWord&&this.$getSelectionHighLightRegexp());this.session.highlight(n),this._signal("changeSelection")},this.$getSelectionHighLightRegexp=function(){var e=this.session,t=this.getSelectionRange();if(!t.isEmpty()&&!t.isMultiLine()){var i=t.start.column,n=t.end.column,e=e.getLine(t.start.row),t=e.substring(i,n);if(!(5e3<t.length)&&/[\w\d]/.test(t)){t=this.$search.$assembleRegExp({wholeWord:!0,caseSensitive:!0,needle:t}),e=e.substring(i-1,n+1);if(t.test(e))return t}}},this.onChangeFrontMarker=function(){this.renderer.updateFrontMarkers()},this.onChangeBackMarker=function(){this.renderer.updateBackMarkers()},this.onChangeBreakpoint=function(){this.renderer.updateBreakpoints()},this.onChangeAnnotation=function(){this.renderer.setAnnotations(this.session.getAnnotations())},this.onChangeMode=function(e){this.renderer.updateText(),this._emit("changeMode",e)},this.onChangeWrapLimit=function(){this.renderer.updateFull()},this.onChangeWrapMode=function(){this.renderer.onResize(!0)},this.onChangeFold=function(){this.$updateHighlightActiveLine(),this.renderer.updateFull()},this.getSelectedText=function(){return this.session.getTextRange(this.getSelectionRange())},this.getCopyText=function(){var e=this.getSelectedText(),t=this.session.doc.getNewLineCharacter(),i=!1;if(!e&&this.$copyWithEmptySelection)for(var i=!0,n=this.selection.getAllRanges(),r=0;r<n.length;r++){var s=n[r];r&&n[r-1].start.row==s.start.row||(e+=this.session.getLine(s.start.row)+t)}var a={text:e};return this._signal("copy",a),x.lineMode=i?a.text:"",a.text},this.onCopy=function(){this.commands.exec("copy",this)},this.onCut=function(){this.commands.exec("cut",this)},this.onPaste=function(e,t){this.commands.exec("paste",this,{text:e,event:t})},this.$handlePaste=function(e){this._signal("paste",e="string"==typeof e?{text:e}:e);var t=e.text,e=t==x.lineMode,i=this.session;if(!this.inMultiSelectMode||this.inVirtualSelectionMode)e?i.insert({row:this.selection.lead.row,column:0},t):this.insert(t);else if(e)this.selection.rangeList.ranges.forEach(function(e){i.insert({row:e.start.row,column:0},t)});else{var n=t.split(/\r\n|\r|\n/),r=this.selection.rangeList.ranges,e=!(2!=n.length||n[0]&&n[1]);if(n.length!=r.length||e)return this.commands.exec("insertstring",this,t);for(var s=r.length;s--;){var a=r[s];a.isEmpty()||i.remove(a),i.insert(a.start,n[s])}}},this.execCommand=function(e,t){return this.commands.exec(e,this,t)},this.insert=function(e,t){var i,n=this.session,r=n.getMode(),s=this.getCursorPosition(),a=(this.getBehavioursEnabled()&&!t&&(i=r.transformAction(n.getState(s.row),"insertion",this,n,e))&&(e===i.text||this.inVirtualSelectionMode||(this.session.mergeUndoDeltas=!1,this.mergeNextCommand=!1),e=i.text),"\t"==e&&(e=this.session.getTabString()),this.selection.isEmpty()?this.session.getOverwrite()&&-1==e.indexOf("\n")&&((a=new m.fromPoints(s,s)).end.column+=e.length,this.session.remove(a)):(a=this.getSelectionRange(),s=this.session.remove(a),this.clearSelection()),"\n"!=e&&"\r\n"!=e||(o=n.getLine(s.row),s.column>o.search(/\S|$/)&&(t=o.substr(s.column).search(/\S|$/),n.doc.removeInLine(s.row,s.column,s.column+t))),this.clearSelection(),s.column),t=n.getState(s.row),o=n.getLine(s.row),l=r.checkOutdent(t,o,e);n.insert(s,e),i&&i.selection&&(2==i.selection.length?this.selection.setSelectionRange(new m(s.row,a+i.selection[0],s.row,a+i.selection[1])):this.selection.setSelectionRange(new m(s.row+i.selection[0],i.selection[1],s.row+i.selection[2],i.selection[3]))),this.$enableAutoIndent&&(n.getDocument().isNewLine(e)&&(a=r.getNextLineIndent(t,o.slice(0,s.column),n.getTabString()),n.insert({row:s.row+1,column:0},a)),l)&&r.autoOutdent(t,n,s.row)},this.autoIndent=function(){for(var e,t,i,n,r,s=this.session,a=s.getMode(),o=(i=this.selection.isEmpty()?(t=0,s.doc.getLength()-1):(t=(e=this.getSelectionRange()).start.row,e.end.row),""),l="",c=s.getTabString(),h=t;h<=i;h++)0<h&&(o=s.getState(h-1),n=s.getLine(h-1),l=a.getNextLineIndent(o,n,c)),n=s.getLine(h),l!==(r=a.$getIndent(n))&&(0<r.length&&(r=new m(h,0,h,r.length),s.remove(r)),0<l.length)&&s.insert({row:h,column:0},l),a.autoOutdent(o,s,h)},this.onTextInput=function(e,t){if(!t)return this.keyBinding.onTextInput(e);this.startOperation({command:{name:"insertstring"}});e=this.applyComposition.bind(this,e,t);this.selection.rangeCount?this.forEachSelection(e):e(),this.endOperation()},this.applyComposition=function(e,t){var i;(t.extendLeft||t.extendRight)&&((i=this.selection.getRange()).start.column-=t.extendLeft,i.end.column+=t.extendRight,i.start.column<0&&(i.start.row--,i.start.column+=this.session.getLine(i.start.row).length+1),this.selection.setRange(i),e||i.isEmpty()||this.remove()),!e&&this.selection.isEmpty()||this.insert(e,!0),(t.restoreStart||t.restoreEnd)&&((i=this.selection.getRange()).start.column-=t.restoreStart,i.end.column-=t.restoreEnd,this.selection.setRange(i))},this.onCommandKey=function(e,t,i){return this.keyBinding.onCommandKey(e,t,i)},this.setOverwrite=function(e){this.session.setOverwrite(e)},this.getOverwrite=function(){return this.session.getOverwrite()},this.toggleOverwrite=function(){this.session.toggleOverwrite()},this.setScrollSpeed=function(e){this.setOption("scrollSpeed",e)},this.getScrollSpeed=function(){return this.getOption("scrollSpeed")},this.setDragDelay=function(e){this.setOption("dragDelay",e)},this.getDragDelay=function(){return this.getOption("dragDelay")},this.setSelectionStyle=function(e){this.setOption("selectionStyle",e)},this.getSelectionStyle=function(){return this.getOption("selectionStyle")},this.setHighlightActiveLine=function(e){this.setOption("highlightActiveLine",e)},this.getHighlightActiveLine=function(){return this.getOption("highlightActiveLine")},this.setHighlightGutterLine=function(e){this.setOption("highlightGutterLine",e)},this.getHighlightGutterLine=function(){return this.getOption("highlightGutterLine")},this.setHighlightSelectedWord=function(e){this.setOption("highlightSelectedWord",e)},this.getHighlightSelectedWord=function(){return this.$highlightSelectedWord},this.setAnimatedScroll=function(e){this.renderer.setAnimatedScroll(e)},this.getAnimatedScroll=function(){return this.renderer.getAnimatedScroll()},this.setShowInvisibles=function(e){this.renderer.setShowInvisibles(e)},this.getShowInvisibles=function(){return this.renderer.getShowInvisibles()},this.setDisplayIndentGuides=function(e){this.renderer.setDisplayIndentGuides(e)},this.getDisplayIndentGuides=function(){return this.renderer.getDisplayIndentGuides()},this.setShowPrintMargin=function(e){this.renderer.setShowPrintMargin(e)},this.getShowPrintMargin=function(){return this.renderer.getShowPrintMargin()},this.setPrintMarginColumn=function(e){this.renderer.setPrintMarginColumn(e)},this.getPrintMarginColumn=function(){return this.renderer.getPrintMarginColumn()},this.setReadOnly=function(e){this.setOption("readOnly",e)},this.getReadOnly=function(){return this.getOption("readOnly")},this.setBehavioursEnabled=function(e){this.setOption("behavioursEnabled",e)},this.getBehavioursEnabled=function(){return this.getOption("behavioursEnabled")},this.setWrapBehavioursEnabled=function(e){this.setOption("wrapBehavioursEnabled",e)},this.getWrapBehavioursEnabled=function(){return this.getOption("wrapBehavioursEnabled")},this.setShowFoldWidgets=function(e){this.setOption("showFoldWidgets",e)},this.getShowFoldWidgets=function(){return this.getOption("showFoldWidgets")},this.setFadeFoldWidgets=function(e){this.setOption("fadeFoldWidgets",e)},this.getFadeFoldWidgets=function(){return this.getOption("fadeFoldWidgets")},this.remove=function(e){this.selection.isEmpty()&&("left"==e?this.selection.selectLeft():this.selection.selectRight());var t,i,n,e=this.getSelectionRange();this.getBehavioursEnabled()&&(i=(t=this.session).getState(e.start.row),i=t.getMode().transformAction(i,"deletion",this,t,e),0===e.end.column&&"\n"==(n=t.getTextRange(e))[n.length-1]&&(n=t.getLine(e.end.row),/^\s+$/.test(n))&&(e.end.column=n.length),i)&&(e=i),this.session.remove(e),this.clearSelection()},this.removeWordRight=function(){this.selection.isEmpty()&&this.selection.selectWordRight(),this.session.remove(this.getSelectionRange()),this.clearSelection()},this.removeWordLeft=function(){this.selection.isEmpty()&&this.selection.selectWordLeft(),this.session.remove(this.getSelectionRange()),this.clearSelection()},this.removeToLineStart=function(){this.selection.isEmpty()&&this.selection.selectLineStart(),this.selection.isEmpty()&&this.selection.selectLeft(),this.session.remove(this.getSelectionRange()),this.clearSelection()},this.removeToLineEnd=function(){this.selection.isEmpty()&&this.selection.selectLineEnd();var e=this.getSelectionRange();e.start.column==e.end.column&&e.start.row==e.end.row&&(e.end.column=0,e.end.row++),this.session.remove(e),this.clearSelection()},this.splitLine=function(){this.selection.isEmpty()||(this.session.remove(this.getSelectionRange()),this.clearSelection());var e=this.getCursorPosition();this.insert("\n"),this.moveCursorToPosition(e)},this.transposeLetters=function(){var e,t,i,n;this.selection.isEmpty()&&0!==(t=(e=this.getCursorPosition()).column)&&(n=t<(n=this.session.getLine(e.row)).length?(i=n.charAt(t)+n.charAt(t-1),new m(e.row,t-1,e.row,t+1)):(i=n.charAt(t-1)+n.charAt(t-2),new m(e.row,t-2,e.row,t)),this.session.replace(n,i),this.session.selection.moveToPosition(n.end))},this.toLowerCase=function(){var e=this.getSelectionRange(),t=(this.selection.isEmpty()&&this.selection.selectWord(),this.getSelectionRange()),i=this.session.getTextRange(t);this.session.replace(t,i.toLowerCase()),this.selection.setSelectionRange(e)},this.toUpperCase=function(){var e=this.getSelectionRange(),t=(this.selection.isEmpty()&&this.selection.selectWord(),this.getSelectionRange()),i=this.session.getTextRange(t);this.session.replace(t,i.toUpperCase()),this.selection.setSelectionRange(e)},this.indent=function(){var e=this.session,t=this.getSelectionRange();if(!(t.start.row<t.end.row)){if(t.start.column<t.end.column){var i,n=e.getTextRange(t);if(!/^\s+$/.test(n))return i=this.$getSelectedRows(),void e.indentRows(i.first,i.last,"\t")}var r=e.getLine(t.start.row),n=t.start,s=e.getTabSize(),n=e.documentToScreenColumn(n.row,n.column);if(this.session.getUseSoftTabs())var a=s-n%s,o=f.stringRepeat(" ",a);else{for(a=n%s;" "==r[t.start.column-1]&&a;)t.start.column--,a--;this.selection.setSelectionRange(t),o="\t"}return this.insert(o)}i=this.$getSelectedRows(),e.indentRows(i.first,i.last,"\t")},this.blockIndent=function(){var e=this.$getSelectedRows();this.session.indentRows(e.first,e.last,"\t")},this.blockOutdent=function(){var e=this.session.getSelection();this.session.outdentRows(e.getRange())},this.sortLines=function(){for(var e=this.$getSelectedRows(),t=this.session,i=[],n=e.first;n<=e.last;n++)i.push(t.getLine(n));i.sort(function(e,t){return e.toLowerCase()<t.toLowerCase()?-1:e.toLowerCase()>t.toLowerCase()?1:0});for(var r=new m(0,0,0,0),n=e.first;n<=e.last;n++){var s=t.getLine(n);r.start.row=n,r.end.row=n,r.end.column=s.length,t.replace(r,i[n-e.first])}},this.toggleCommentLines=function(){var e=this.session.getState(this.getCursorPosition().row),t=this.$getSelectedRows();this.session.getMode().toggleCommentLines(e,this.session,t.first,t.last)},this.toggleBlockComment=function(){var e=this.getCursorPosition(),t=this.session.getState(e.row),i=this.getSelectionRange();this.session.getMode().toggleBlockComment(t,this.session,i,e)},this.getNumberAt=function(e,t){for(var i=/[\-]?[0-9]+(?:\.[0-9]+)?/g,n=(i.lastIndex=0,this.session.getLine(e));i.lastIndex<t;){var r=i.exec(n);if(r.index<=t&&r.index+r[0].length>=t)return{value:r[0],start:r.index,end:r.index+r[0].length}}return null},this.modifyNumber=function(e){var t,i,n,r=this.selection.getCursor().row,s=this.selection.getCursor().column,a=new m(r,s-1,r,s),a=this.session.getTextRange(a);!isNaN(parseFloat(a))&&isFinite(a)?(a=this.getNumberAt(r,s))&&(n=0<=a.value.indexOf(".")?a.start+a.value.indexOf(".")+1:a.end,t=a.start+a.value.length-n,i=parseFloat(a.value),i*=Math.pow(10,t),n!==a.end&&s<n?e*=Math.pow(10,a.end-s-1):e*=Math.pow(10,a.end-s),n=(i=(i+=e)/Math.pow(10,t)).toFixed(t),e=new m(r,a.start,r,a.end),this.session.replace(e,n),this.moveCursorTo(r,Math.max(a.start+1,s+n.length-a.value.length))):this.toggleWord()},this.$toggleWordPairs=[["first","last"],["true","false"],["yes","no"],["width","height"],["top","bottom"],["right","left"],["on","off"],["x","y"],["get","set"],["max","min"],["horizontal","vertical"],["show","hide"],["add","remove"],["up","down"],["before","after"],["even","odd"],["in","out"],["inside","outside"],["next","previous"],["increase","decrease"],["attach","detach"],["&&","||"],["==","!="]],this.toggleWord=function(){for(var i,n=this.selection.getCursor().row,e=this.selection.getCursor().column,r=(this.selection.selectWord(),this.getSelectedText()),s=this.selection.getWordRange().start.column,t=r.replace(/([a-z]+|[A-Z]+)(?=[A-Z_]|$)/g,"$1 ").split(/\s/),a=e-s-1,o=(a<0&&(a=0),0),l=this,c=(r.match(/[A-Za-z0-9_]+/)&&t.forEach(function(e,t){i=o+e.length,o<=a&&a<=i&&(r=e,l.selection.clearSelection(),l.moveCursorTo(n,o+s),l.selection.selectTo(n,i+s)),o=i}),this.$toggleWordPairs),h=0;h<c.length;h++)for(var u=c[h],d=0;d<=1;d++){var p=+!d,g=r.match(new RegExp("^\\s?_?("+f.escapeRegExp(u[d])+")\\s?$","i"));g&&r.match(new RegExp("([_]|^|\\s)("+f.escapeRegExp(g[1])+")($|\\s)","g"))&&(g=r.replace(new RegExp(f.escapeRegExp(u[d]),"i"),function(e){var t=u[p];return e.toUpperCase()==e?t=t.toUpperCase():e.charAt(0).toUpperCase()==e.charAt(0)&&(t=t.substr(0,0)+u[p].charAt(0).toUpperCase()+t.substr(1)),t}),this.insert(g))}},this.removeLines=function(){var e=this.$getSelectedRows();this.session.removeFullLines(e.first,e.last),this.clearSelection()},this.duplicateSelection=function(){var e,t=this.selection,i=this.session,n=t.getRange(),r=t.isBackwards();n.isEmpty()?(e=n.start.row,i.duplicateLines(e,e)):(e=r?n.start:n.end,i=i.insert(e,i.getTextRange(n),!1),n.start=e,n.end=i,t.setSelectionRange(n,r))},this.moveLinesDown=function(){this.$moveLines(1,!1)},this.moveLinesUp=function(){this.$moveLines(-1,!1)},this.moveText=function(e,t,i){return this.session.moveText(e,t,i)},this.copyLinesUp=function(){this.$moveLines(-1,!0)},this.copyLinesDown=function(){this.$moveLines(1,!0)},this.$moveLines=function(e,t){var i=this.selection;if(!i.inMultiSelectMode||this.inVirtualSelectionMode){var n=i.toOrientedRange(),r=this.$getSelectedRows(n),s=this.session.$moveLines(r.first,r.last,t?0:e);n.moveBy(s=t&&-1==e?0:s,0),i.fromOrientedRange(n)}else{for(var a=i.rangeList.ranges,o=(i.rangeList.detach(this.session),this.inVirtualSelectionMode=!0,0),l=0,c=a.length,h=0;h<c;h++){for(var u=h,d=(a[h].moveBy(o,0),(r=this.$getSelectedRows(a[h])).first),p=r.last;++h<c;){l&&a[h].moveBy(l,0);var g=this.$getSelectedRows(a[h]);if(t&&g.first!=p)break;if(!t&&g.first>p+1)break;p=g.last}for(h--,o=this.session.$moveLines(d,p,t?0:e),t&&-1==e&&(u=h+1);u<=h;)a[u].moveBy(o,0),u++;l+=o=t?o:0}i.fromOrientedRange(i.ranges[0]),i.rangeList.attach(this.session),this.inVirtualSelectionMode=!1}},this.$getSelectedRows=function(e){return e=(e||this.getSelectionRange()).collapseRows(),{first:this.session.getRowFoldStart(e.start.row),last:this.session.getRowFoldEnd(e.end.row)}},this.onCompositionStart=function(e){this.renderer.showComposition(e)},this.onCompositionUpdate=function(e){this.renderer.setCompositionText(e)},this.onCompositionEnd=function(){this.renderer.hideComposition()},this.getFirstVisibleRow=function(){return this.renderer.getFirstVisibleRow()},this.getLastVisibleRow=function(){return this.renderer.getLastVisibleRow()},this.isRowVisible=function(e){return e>=this.getFirstVisibleRow()&&e<=this.getLastVisibleRow()},this.isRowFullyVisible=function(e){return e>=this.renderer.getFirstFullyVisibleRow()&&e<=this.renderer.getLastFullyVisibleRow()},this.$getVisibleRowCount=function(){return this.renderer.getScrollBottomRow()-this.renderer.getScrollTopRow()+1},this.$moveByPage=function(e,t){var i=this.renderer,n=this.renderer.layerConfig,r=e*Math.floor(n.height/n.lineHeight),e=(!0===t?this.selection.$moveSelection(function(){this.moveCursorBy(r,0)}):!1===t&&(this.selection.moveCursorBy(r,0),this.selection.clearSelection()),i.scrollTop);i.scrollBy(0,r*n.lineHeight),null!=t&&i.scrollCursorIntoView(null,.5),i.animateScrolling(e)},this.selectPageDown=function(){this.$moveByPage(1,!0)},this.selectPageUp=function(){this.$moveByPage(-1,!0)},this.gotoPageDown=function(){this.$moveByPage(1,!1)},this.gotoPageUp=function(){this.$moveByPage(-1,!1)},this.scrollPageDown=function(){this.$moveByPage(1)},this.scrollPageUp=function(){this.$moveByPage(-1)},this.scrollToRow=function(e){this.renderer.scrollToRow(e)},this.scrollToLine=function(e,t,i,n){this.renderer.scrollToLine(e,t,i,n)},this.centerSelection=function(){var e=this.getSelectionRange(),e={row:Math.floor(e.start.row+(e.end.row-e.start.row)/2),column:Math.floor(e.start.column+(e.end.column-e.start.column)/2)};this.renderer.alignCursor(e,.5)},this.getCursorPosition=function(){return this.selection.getCursor()},this.getCursorPositionScreen=function(){return this.session.documentToScreenPosition(this.getCursorPosition())},this.getSelectionRange=function(){return this.selection.getRange()},this.selectAll=function(){this.selection.selectAll()},this.clearSelection=function(){this.selection.clearSelection()},this.moveCursorTo=function(e,t){this.selection.moveCursorTo(e,t)},this.moveCursorToPosition=function(e){this.selection.moveCursorToPosition(e)},this.jumpToMatching=function(e,t){var i=this.getCursorPosition(),n=new v(this.session,i.row,i.column),r=n.getCurrentToken(),s=r||n.stepForward();if(s){var a,o,l,c=!1,h={},u=i.column-s.start,d={")":"(","(":"(","]":"[","[":"[","{":"{","}":"{"};do{if(s.value.match(/[{}()\[\]]/g)){for(;u<s.value.length&&!c;u++)if(d[s.value[u]])switch(o=d[s.value[u]]+"."+s.type.replace("rparen","lparen"),isNaN(h[o])&&(h[o]=0),s.value[u]){case"(":case"[":case"{":h[o]++;break;case")":case"]":case"}":h[o]--,-1===h[o]&&(a="bracket",c=!0)}}else-1!==s.type.indexOf("tag-name")&&(isNaN(h[s.value])&&(h[s.value]=0),"<"===r.value?h[s.value]++:"</"===r.value&&h[s.value]--,-1===h[s.value])&&(a="tag",c=!0)}while(c||(r=s,s=n.stepForward(),u=0),s&&!c);if(a){if("bracket"===a)!(p=this.session.getBracketRange(i))&&(l=(p=new m(n.getCurrentTokenRow(),n.getCurrentTokenColumn()+u-1,n.getCurrentTokenRow(),n.getCurrentTokenColumn()+u-1)).start,t||l.row===i.row&&Math.abs(l.column-i.column)<2)&&(p=this.session.getBracketRange(l));else if("tag"===a){if(!s||-1===s.type.indexOf("tag-name"))return;var p,g=s.value;if(0===(p=new m(n.getCurrentTokenRow(),n.getCurrentTokenColumn()-2,n.getCurrentTokenRow(),n.getCurrentTokenColumn()-2)).compare(i.row,i.column))for(c=!1;s=r,(r=n.stepBackward())&&(-1!==r.type.indexOf("tag-close")&&p.setEnd(n.getCurrentTokenRow(),n.getCurrentTokenColumn()+1),s.value===g)&&-1!==s.type.indexOf("tag-name")&&("<"===r.value?h[g]++:"</"===r.value&&h[g]--,0===h[g])&&(c=!0),r&&!c;);s&&s.type.indexOf("tag-name")&&(l=p.start).row==i.row&&Math.abs(l.column-i.column)<2&&(l=p.end)}(l=p&&p.cursor||l)&&(e?p&&t?this.selection.setRange(p):p&&p.isEqual(this.getSelectionRange())?this.clearSelection():this.selection.selectTo(l.row,l.column):this.selection.moveTo(l.row,l.column))}}},this.gotoLine=function(e,t,i){this.selection.clearSelection(),this.session.unfold({row:e-1,column:t||0}),this.exitMultiSelectMode&&this.exitMultiSelectMode(),this.moveCursorTo(e-1,t||0),this.isRowFullyVisible(e-1)||this.scrollToLine(e-1,!0,i)},this.navigateTo=function(e,t){this.selection.moveTo(e,t)},this.navigateUp=function(e){var t;if(this.selection.isMultiLine()&&!this.selection.isBackwards())return t=this.selection.anchor.getPosition(),this.moveCursorToPosition(t);this.selection.clearSelection(),this.selection.moveCursorBy(-e||-1,0)},this.navigateDown=function(e){var t;if(this.selection.isMultiLine()&&this.selection.isBackwards())return t=this.selection.anchor.getPosition(),this.moveCursorToPosition(t);this.selection.clearSelection(),this.selection.moveCursorBy(e||1,0)},this.navigateLeft=function(e){if(this.selection.isEmpty())for(e=e||1;e--;)this.selection.moveCursorLeft();else{var t=this.getSelectionRange().start;this.moveCursorToPosition(t)}this.clearSelection()},this.navigateRight=function(e){if(this.selection.isEmpty())for(e=e||1;e--;)this.selection.moveCursorRight();else{var t=this.getSelectionRange().end;this.moveCursorToPosition(t)}this.clearSelection()},this.navigateLineStart=function(){this.selection.moveCursorLineStart(),this.clearSelection()},this.navigateLineEnd=function(){this.selection.moveCursorLineEnd(),this.clearSelection()},this.navigateFileEnd=function(){this.selection.moveCursorFileEnd(),this.clearSelection()},this.navigateFileStart=function(){this.selection.moveCursorFileStart(),this.clearSelection()},this.navigateWordRight=function(){this.selection.moveCursorWordRight(),this.clearSelection()},this.navigateWordLeft=function(){this.selection.moveCursorWordLeft(),this.clearSelection()},this.replace=function(e,t){t&&this.$search.set(t);var t=this.$search.find(this.session),i=0;return t&&(this.$tryReplace(t,e)&&(i=1),this.selection.setSelectionRange(t),this.renderer.scrollSelectionIntoView(t.start,t.end)),i},this.replaceAll=function(e,t){t&&this.$search.set(t);var i=this.$search.findAll(this.session),n=0;if(i.length){t=this.getSelectionRange();this.selection.moveTo(0,0);for(var r=i.length-1;0<=r;--r)this.$tryReplace(i[r],e)&&n++;this.selection.setSelectionRange(t)}return n},this.$tryReplace=function(e,t){var i=this.session.getTextRange(e);return null!==(t=this.$search.replace(i,t))?(e.end=this.session.replace(e,t),e):null},this.getLastSearchOptions=function(){return this.$search.getOptions()},this.find=function(e,t,i){t=t||{},"string"==typeof e||e instanceof RegExp?t.needle=e:"object"==typeof e&&s.mixin(t,e);var n=this.selection.getRange(),e=(null==t.needle&&((e=this.session.getTextRange(n)||this.$search.$options.needle)||(n=this.session.getWordRange(n.start.row,n.start.column),e=this.session.getTextRange(n)),this.$search.set({needle:e})),this.$search.set(t),t.start||this.$search.set({start:n}),this.$search.find(this.session));return t.preventScroll?e:e?(this.revealRange(e,i),e):(t.backwards?n.start=n.end:n.end=n.start,void this.selection.setRange(n))},this.findNext=function(e,t){this.find({skipCurrent:!0,backwards:!1},e,t)},this.findPrevious=function(e,t){this.find(e,{skipCurrent:!0,backwards:!0},t)},this.revealRange=function(e,t){this.session.unfold(e),this.selection.setSelectionRange(e);var i=this.renderer.scrollTop;this.renderer.scrollSelectionIntoView(e.start,e.end,.5),!1!==t&&this.renderer.animateScrolling(i)},this.undo=function(){this.session.getUndoManager().undo(this.session),this.renderer.scrollCursorIntoView(null,.5)},this.redo=function(){this.session.getUndoManager().redo(this.session),this.renderer.scrollCursorIntoView(null,.5)},this.destroy=function(){this.$toDestroy&&(this.$toDestroy.forEach(function(e){e.destroy()}),this.$toDestroy=null),this.$mouseHandler&&this.$mouseHandler.destroy(),this.renderer.destroy(),this._signal("destroy",this),this.session&&this.session.destroy(),this._$emitInputEvent&&this._$emitInputEvent.cancel(),this.removeAllListeners()},this.setAutoScrollEditorIntoView=function(e){var n,r,s,a,t,i,o;e&&(s=!1,(r=this).$scrollAnchor||(this.$scrollAnchor=document.createElement("div")),(a=this.$scrollAnchor).style.cssText="position:absolute",this.container.insertBefore(a,this.container.firstChild),t=this.on("changeSelection",function(){s=!0}),i=this.renderer.on("beforeRender",function(){s&&(n=r.renderer.container.getBoundingClientRect())}),o=this.renderer.on("afterRender",function(){var e,t,i;s&&n&&(r.isFocused()||r.searchBox&&r.searchBox.isFocused())&&(e=(t=r.renderer).$cursorLayer.$pixelPos,t=t.layerConfig,i=e.top-t.offset,null!=(s=0<=e.top&&i+n.top<0||!(e.top<t.height&&e.top+n.top+t.lineHeight>window.innerHeight)&&null)&&(a.style.top=i+"px",a.style.left=e.left+"px",a.style.height=t.lineHeight+"px",a.scrollIntoView(s)),s=n=null)}),this.setAutoScrollEditorIntoView=function(e){e||(delete this.setAutoScrollEditorIntoView,this.off("changeSelection",t),this.renderer.off("afterRender",o),this.renderer.off("beforeRender",i))})},this.$resetCursorStyle=function(){var e=this.$cursorStyle||"ace",t=this.renderer.$cursorLayer;t&&(t.setSmoothBlinking(/smooth/.test(e)),t.isBlinking=!this.$readOnly&&"wide"!=e,n.setCssClass(t.element,"ace_slim-cursors",/slim/.test(e)))},this.prompt=function(t,i,n){var r=this;b.loadModule("./ext/prompt",function(e){e.prompt(r,t,i,n)})}}.call(r.prototype),b.defineOptions(r.prototype,"editor",{selectionStyle:{set:function(e){this.onSelectionChange(),this._signal("changeSelectionStyle",{data:e})},initialValue:"line"},highlightActiveLine:{set:function(){this.$updateHighlightActiveLine()},initialValue:!0},highlightSelectedWord:{set:function(e){this.$onSelectionChange()},initialValue:!0},readOnly:{set:function(e){this.textInput.setReadOnly(e),this.$resetCursorStyle()},initialValue:!1},copyWithEmptySelection:{set:function(e){this.textInput.setCopyWithEmptySelection(e)},initialValue:!1},cursorStyle:{set:function(e){this.$resetCursorStyle()},values:["ace","slim","smooth","wide"],initialValue:"ace"},mergeUndoDeltas:{values:[!1,!0,"always"],initialValue:!0},behavioursEnabled:{initialValue:!0},wrapBehavioursEnabled:{initialValue:!0},enableAutoIndent:{initialValue:!0},autoScrollEditorIntoView:{set:function(e){this.setAutoScrollEditorIntoView(e)}},keyboardHandler:{set:function(e){this.setKeyboardHandler(e)},get:function(){return this.$keybindingId},handlesSet:!0},value:{set:function(e){this.session.setValue(e)},get:function(){return this.getValue()},handlesSet:!0,hidden:!0},session:{set:function(e){this.setSession(e)},get:function(){return this.session},handlesSet:!0,hidden:!0},showLineNumbers:{set:function(e){this.renderer.$gutterLayer.setShowLineNumbers(e),this.renderer.$loop.schedule(this.renderer.CHANGE_GUTTER),e&&this.$relativeLineNumbers?w.attach(this):w.detach(this)},initialValue:!0},relativeLineNumbers:{set:function(e){this.$showLineNumbers&&e?w.attach(this):w.detach(this)}},placeholder:{set:function(e){this.$updatePlaceholder||(this.$updatePlaceholder=function(){var e=this.session&&(this.renderer.$composition||this.getValue());e&&this.renderer.placeholderNode?(this.renderer.off("afterRender",this.$updatePlaceholder),n.removeCssClass(this.container,"ace_hasPlaceholder"),this.renderer.placeholderNode.remove(),this.renderer.placeholderNode=null):e||this.renderer.placeholderNode?!e&&this.renderer.placeholderNode&&(this.renderer.placeholderNode.textContent=this.$placeholder||""):(this.renderer.on("afterRender",this.$updatePlaceholder),n.addCssClass(this.container,"ace_hasPlaceholder"),(e=n.createElement("div")).className="ace_placeholder",e.textContent=this.$placeholder||"",this.renderer.placeholderNode=e,this.renderer.content.appendChild(this.renderer.placeholderNode))}.bind(this),this.on("input",this.$updatePlaceholder)),this.$updatePlaceholder()}},hScrollBarAlwaysVisible:"renderer",vScrollBarAlwaysVisible:"renderer",highlightGutterLine:"renderer",animatedScroll:"renderer",showInvisibles:"renderer",showPrintMargin:"renderer",printMarginColumn:"renderer",printMargin:"renderer",fadeFoldWidgets:"renderer",showFoldWidgets:"renderer",displayIndentGuides:"renderer",showGutter:"renderer",fontSize:"renderer",fontFamily:"renderer",maxLines:"renderer",minLines:"renderer",scrollPastEnd:"renderer",fixedWidthGutter:"renderer",theme:"renderer",hasCssTransforms:"renderer",maxPixelHeight:"renderer",useTextareaForIME:"renderer",scrollSpeed:"$mouseHandler",dragDelay:"$mouseHandler",dragEnabled:"$mouseHandler",focusTimeout:"$mouseHandler",tooltipFollowsMouse:"$mouseHandler",firstLineNumber:"session",overwrite:"session",newLineMode:"session",useWorker:"session",useSoftTabs:"session",navigateWithinSoftTabs:"session",tabSize:"session",wrap:"session",indentedSoftWrap:"session",foldStyle:"session",mode:"session"}),{getText:function(e,t){return(Math.abs(e.selection.lead.row-t)||t+1+(t<9?"·":""))+""},getWidth:function(e,t,i){return Math.max(t.toString().length,(i.lastRow+1).toString().length,2)*i.characterWidth},update:function(e,t){t.renderer.$loop.schedule(t.renderer.CHANGE_GUTTER)},attach:function(e){e.renderer.$gutterLayer.$renderer=this,e.on("changeSelection",this.update),this.update(null,e)},detach:function(e){e.renderer.$gutterLayer.$renderer==this&&(e.renderer.$gutterLayer.$renderer=null),e.off("changeSelection",this.update),this.update(null,e)}});t.Editor=r}),ace.define("ace/undomanager",["require","exports","module","ace/range"],function(e,t,i){"use strict";function r(e,t){for(var i=t;i--;){var n=e[i];if(n&&!n[0].ignore){for(;i<t-1;){var r=function(e,t){for(var i=e.length;i--;)for(var n=0;n<t.length;n++)if(!a(e[i],t[n])){for(;i<e.length;){for(;n--;)a(t[n],e[i]);n=t.length,i++}return[e,t]}return e.selectionBefore=t.selectionBefore=e.selectionAfter=t.selectionAfter=null,[t,e]}(e[i],e[i+1]);e[i]=r[0],e[i+1]=r[1],i++}return 1}}}function o(e){return{row:e.row,column:e.column}}function n(e){var t;return e=e||this,Array.isArray(e)?e.map(n).join("\n"):(t="",e.action?(t="insert"==e.action?"+":"-",t+="["+e.lines+"]"):e.value&&(t=Array.isArray(e.value)?e.value.map(s).join("\n"):s(e.value)),e.start&&(t+=s(e)),(e.id||e.rev)&&(t+="\t("+(e.id||e.rev)+")"),t)}function s(e){return e.start.row+":"+e.start.column+"=>"+e.end.row+":"+e.end.column}function a(e,t){var i="insert"==e.action,n="insert"==t.action;if(i&&n)if(0<=g(t.start,e.end))l(t,e,-1);else{if(!(g(t.start,e.start)<=0))return;l(e,t,1)}else if(i&&!n)if(0<=g(t.start,e.end))l(t,e,-1);else{if(!(g(t.end,e.start)<=0))return;l(e,t,-1)}else if(!i&&n)if(0<=g(t.start,e.start))l(t,e,1);else{if(!(g(t.start,e.start)<=0))return;l(e,t,1)}else if(!i&&!n)if(0<=g(t.start,e.start))l(t,e,1);else{if(!(g(t.end,e.start)<=0))return;l(e,t,-1)}return 1}function l(e,t,i){c(e.start,t.start,t.end,i),c(e.end,t.start,t.end,i)}function c(e,t,i,n){e.row==(1==n?t:i).row&&(e.column+=n*(i.column-t.column)),e.row+=n*(i.row-t.row)}function h(e,t){var i=e.lines,n=e.end,r=(e.end=o(t),e.end.row-e.start.row),s=i.splice(r,i.length),r=r?t.column:t.column-e.start.column;return i.push(s[0].substring(0,r)),s[0]=s[0].substr(r),{start:o(t),end:n,lines:s,action:e.action}}function u(e,t){var i;t={start:o((i=t).start),end:o(i.end),action:i.action,lines:i.lines.slice()};for(var n=e.length;n--;){for(var r=e[n],s=0;s<r.length;s++){var a=function(e,t){var i,n,r="insert"==e.action,s="insert"==t.action;if(r&&s)g(e.start,t.start)<0?l(t,e,1):l(e,t,1);else if(r&&!s)0<=g(e.start,t.end)?l(e,t,-1):(g(e.start,t.start)<=0||l(e,p.fromPoints(t.start,e.start),-1),l(t,e,1));else if(!r&&s)0<=g(t.start,e.end)?l(t,e,-1):(g(t.start,e.start)<=0||l(t,p.fromPoints(e.start,t.start),-1),l(e,t,1));else if(!r&&!s)if(0<=g(t.start,e.end))l(t,e,-1);else{if(!(g(t.end,e.start)<=0))return g(e.start,t.start)<0&&(e=h(i=e,t.start)),0<g(e.end,t.end)&&(n=h(e,t.end)),c(t.end,e.start,e.end,-1),n&&!i&&(e.lines=n.lines,e.start=n.start,e.end=n.end,n=e),[t,i,n].filter(Boolean);l(e,t,-1)}return[t,e]}(r[s],t);t=a[0],2!=a.length&&(a[2]?(r.splice(s+1,1,a[1],a[2]),s++):a[1]||(r.splice(s,1),s--))}r.length||e.splice(n,1)}}function d(){this.$maxRev=0,this.$fromUndo=!1,this.reset()}!function(){this.addSession=function(e){this.$session=e},this.add=function(e,t,i){this.$fromUndo||e!=this.$lastDelta&&(this.$keepRedoStack||(this.$redoStack.length=0),!1!==t&&this.lastDeltas||(this.lastDeltas=[],this.$undoStack.push(this.lastDeltas),e.id=this.$rev=++this.$maxRev),"remove"!=e.action&&"insert"!=e.action||(this.$lastDelta=e),this.lastDeltas.push(e))},this.addSelection=function(e,t){this.selections.push({value:e,rev:t||this.$rev})},this.startNewGroup=function(){return this.lastDeltas=null,this.$rev},this.markIgnored=function(e,t){null==t&&(t=this.$rev+1);for(var i=this.$undoStack,n=i.length;n--;){var r=i[n][0];if(r.id<=e)break;r.id<t&&(r.ignore=!0)}this.lastDeltas=null},this.getSelection=function(e,t){for(var i=this.selections,n=i.length;n--;){var r=i[n];if(r.rev<e)return r=t?i[n+1]:r}},this.getRevision=function(){return this.$rev},this.getDeltas=function(e,t){null==t&&(t=this.$rev+1);for(var i=this.$undoStack,n=null,r=0,s=i.length;s--;){var a=i[s][0];if(a.id<t&&!n&&(n=s+1),a.id<=e){r=s+1;break}}return i.slice(r,n)},this.getChangedRanges=function(e,t){null==t&&this.$rev},this.getChangedLines=function(e,t){null==t&&this.$rev},this.undo=function(e,t){this.lastDeltas=null;var i,n=this.$undoStack;if(r(n,n.length))return e=e||this.$session,this.$redoStackBaseRev!==this.$rev&&this.$redoStack.length&&(this.$redoStack=[]),this.$fromUndo=!0,i=null,(n=n.pop())&&(i=e.undoChanges(n,t),this.$redoStack.push(n),this.$syncRev()),this.$fromUndo=!1,i},this.redo=function(e,t){if(this.lastDeltas=null,e=e||this.$session,this.$fromUndo=!0,this.$redoStackBaseRev!=this.$rev){for(var i=this.getDeltas(this.$redoStackBaseRev,this.$rev+1),n=this.$redoStack,r=i,s=0;s<r.length;s++)for(var a=r[s],o=0;o<a.length;o++)u(n,a[o]);this.$redoStackBaseRev=this.$rev,this.$redoStack.forEach(function(e){e[0].id=++this.$maxRev},this)}var i=this.$redoStack.pop(),l=null;return i&&(l=e.redoChanges(i,t),this.$undoStack.push(i),this.$syncRev()),this.$fromUndo=!1,l},this.$syncRev=function(){var e=this.$undoStack,e=e[e.length-1],e=e&&e[0].id||0;this.$redoStackBaseRev=e,this.$rev=e},this.reset=function(){this.lastDeltas=null,this.$lastDelta=null,this.$undoStack=[],this.$redoStack=[],this.$rev=0,this.mark=0,this.$redoStackBaseRev=this.$rev,this.selections=[]},this.canUndo=function(){return 0<this.$undoStack.length},this.canRedo=function(){return 0<this.$redoStack.length},this.bookmark=function(e){null==e&&(e=this.$rev),this.mark=e},this.isAtBookmark=function(){return this.$rev===this.mark},this.toJSON=function(){},this.fromJSON=function(){},this.hasUndo=this.canUndo,this.hasRedo=this.canRedo,this.isClean=this.isAtBookmark,this.markClean=this.bookmark,this.$prettyPrint=function(e){return e?n(e):n(this.$undoStack)+"\n---\n"+n(this.$redoStack)}}.call(d.prototype);var p=e("./range").Range,g=p.comparePoints;p.comparePoints;t.UndoManager=d}),ace.define("ace/layer/lines",["require","exports","module","ace/lib/dom"],function(e,t,i){"use strict";function n(e,t){this.element=e,this.canvasHeight=t||5e5,this.element.style.height=2*this.canvasHeight+"px",this.cells=[],this.cellCache=[],this.$offsetCoefficient=0}var a=e("../lib/dom");(function(){this.moveContainer=function(e){a.translate(this.element,0,-(e.firstRowScreen*e.lineHeight%this.canvasHeight)-e.offset*this.$offsetCoefficient)},this.pageChanged=function(e,t){return Math.floor(e.firstRowScreen*e.lineHeight/this.canvasHeight)!==Math.floor(t.firstRowScreen*t.lineHeight/this.canvasHeight)},this.computeLineTop=function(e,t,i){var n=t.firstRowScreen*t.lineHeight,n=Math.floor(n/this.canvasHeight);return i.documentToScreenRow(e,0)*t.lineHeight-n*this.canvasHeight},this.computeLineHeight=function(e,t,i){return t.lineHeight*i.getRowLineCount(e)},this.getLength=function(){return this.cells.length},this.get=function(e){return this.cells[e]},this.shift=function(){this.$cacheCell(this.cells.shift())},this.pop=function(){this.$cacheCell(this.cells.pop())},this.push=function(e){if(Array.isArray(e)){this.cells.push.apply(this.cells,e);for(var t=a.createFragment(this.element),i=0;i<e.length;i++)t.appendChild(e[i].element);this.element.appendChild(t)}else this.cells.push(e),this.element.appendChild(e.element)},this.unshift=function(e){if(Array.isArray(e)){this.cells.unshift.apply(this.cells,e);for(var t=a.createFragment(this.element),i=0;i<e.length;i++)t.appendChild(e[i].element);this.element.firstChild?this.element.insertBefore(t,this.element.firstChild):this.element.appendChild(t)}else this.cells.unshift(e),this.element.insertAdjacentElement("afterbegin",e.element)},this.last=function(){return this.cells.length?this.cells[this.cells.length-1]:null},this.$cacheCell=function(e){e&&(e.element.remove(),this.cellCache.push(e))},this.createCell=function(e,t,i,n){var r,s=this.cellCache.pop();return s||(r=a.createElement("div"),n&&n(r),this.element.appendChild(r),s={element:r,text:"",row:e}),s.row=e,s}}).call(n.prototype),t.Lines=n}),ace.define("ace/layer/gutter",["require","exports","module","ace/lib/dom","ace/lib/oop","ace/lib/lang","ace/lib/event_emitter","ace/layer/lines"],function(e,t,i){"use strict";function c(e){var t=document.createTextNode(""),t=(e.appendChild(t),m.createElement("span"));return e.appendChild(t),e}function n(e){this.element=m.createElement("div"),this.element.className="ace_layer ace_gutter-layer",e.appendChild(this.element),this.setShowFoldWidgets(this.$showFoldWidgets),this.gutterWidth=0,this.$annotations=[],this.$updateAnnotations=this.$updateAnnotations.bind(this),this.$lines=new o(this.element),this.$lines.$offsetCoefficient=1}var m=e("../lib/dom"),r=e("../lib/oop"),s=e("../lib/lang"),a=e("../lib/event_emitter").EventEmitter,o=e("./lines").Lines;(function(){r.implement(this,a),this.setSession=function(e){this.session&&this.session.off("change",this.$updateAnnotations),(this.session=e)&&e.on("change",this.$updateAnnotations)},this.addGutterDecoration=function(e,t){window.console&&console.warn&&console.warn("deprecated use session.addGutterDecoration"),this.session.addGutterDecoration(e,t)},this.removeGutterDecoration=function(e,t){window.console&&console.warn&&console.warn("deprecated use session.removeGutterDecoration"),this.session.removeGutterDecoration(e,t)},this.setAnnotations=function(e){this.$annotations=[];for(var t=0;t<e.length;t++){var i=e[t],n=i.row,r=(r=this.$annotations[n])||(this.$annotations[n]={text:[]}),n=(n=i.text)?s.escapeHTML(n):i.html||"",n=(-1===r.text.indexOf(n)&&r.text.push(n),i.type);"error"==n?r.className=" ace_error":"warning"==n&&" ace_error"!=r.className?r.className=" ace_warning":"info"!=n||r.className||(r.className=" ace_info")}},this.$updateAnnotations=function(e){var t,i;this.$annotations.length&&(t=e.start.row,0!=(i=e.end.row-t))&&("remove"==e.action?this.$annotations.splice(t,1+i,null):((e=new Array(1+i)).unshift(t,1),this.$annotations.splice.apply(this.$annotations,e)))},this.update=function(e){this.config=e;for(var t=this.session,i=e.firstRow,n=Math.min(e.lastRow+e.gutterOffset,t.getLength()-1),r=(this.oldLastRow=n,this.config=e,this.$lines.moveContainer(e),this.$updateCursorRow(),t.getNextFoldLine(i)),s=r?r.start.row:1/0,a=null,o=-1,l=i;;){if(s<l&&(l=r.end.row+1,s=(r=t.getNextFoldLine(l,r))?r.start.row:1/0),n<l){for(;this.$lines.getLength()>o+1;)this.$lines.pop();break}(a=this.$lines.get(++o))?a.row=l:(a=this.$lines.createCell(l,e,this.session,c),this.$lines.push(a)),this.$renderCell(a,e,r,l),l++}this._signal("afterRender"),this.$updateGutterWidth(e)},this.$updateGutterWidth=function(e){var t=this.session,i=t.gutterRenderer||this.$renderer,n=t.$firstLineNumber,r=this.$lines.last()?this.$lines.last().text:"",n=((this.$fixedWidth||t.$useWrapMode)&&(r=t.getLength()+n-1),i?i.getWidth(t,r,e):r.toString().length*e.characterWidth),i=this.$padding||this.$computePadding();(n+=i.left+i.right)===this.gutterWidth||isNaN(n)||(this.gutterWidth=n,this.element.parentNode.style.width=this.element.style.width=Math.ceil(this.gutterWidth)+"px",this._signal("changeGutterWidth",n))},this.$updateCursorRow=function(){var e;this.$highlightGutterLine&&(e=this.session.selection.getCursor(),this.$cursorRow!==e.row)&&(this.$cursorRow=e.row)},this.updateLineHighlight=function(){if(this.$highlightGutterLine){var e=this.session.selection.cursor.row;if(this.$cursorRow=e,!this.$cursorCell||this.$cursorCell.row!=e){this.$cursorCell&&(this.$cursorCell.element.className=this.$cursorCell.element.className.replace("ace_gutter-active-line ",""));var t=this.$lines.cells;this.$cursorCell=null;for(var i=0;i<t.length;i++){var n=t[i];if(n.row>=this.$cursorRow){if(n.row>this.$cursorRow){var r=this.session.getFoldLine(this.$cursorRow);if(!(0<i&&r&&r.start.row==t[i-1].row))break;n=t[i-1]}n.element.className="ace_gutter-active-line "+n.element.className,this.$cursorCell=n;break}}}}},this.scrollLines=function(e){var t=this.config;if(this.config=e,this.$updateCursorRow(),this.$lines.pageChanged(t,e))return this.update(e);this.$lines.moveContainer(e);var i=Math.min(e.lastRow+e.gutterOffset,this.session.getLength()-1),n=this.oldLastRow;if(this.oldLastRow=i,!t||n<e.firstRow)return this.update(e);if(i<t.firstRow)return this.update(e);if(t.firstRow<e.firstRow)for(var r=this.session.getFoldedRowCount(t.firstRow,e.firstRow-1);0<r;r--)this.$lines.shift();if(i<n)for(r=this.session.getFoldedRowCount(i+1,n);0<r;r--)this.$lines.pop();e.firstRow<t.firstRow&&this.$lines.unshift(this.$renderLines(e,e.firstRow,t.firstRow-1)),n<i&&this.$lines.push(this.$renderLines(e,n+1,i)),this.updateLineHighlight(),this._signal("afterRender"),this.$updateGutterWidth(e)},this.$renderLines=function(e,t,i){for(var n=[],r=t,s=this.session.getNextFoldLine(r),a=s?s.start.row:1/0;a<r&&(r=s.end.row+1,a=(s=this.session.getNextFoldLine(r,s))?s.start.row:1/0),!(i<r);){var o=this.$lines.createCell(r,e,this.session,c);this.$renderCell(o,e,s,r),n.push(o),r++}return n},this.$renderCell=function(e,t,i,n){var r,s=e.element,a=this.session,o=s.childNodes[0],l=s.childNodes[1],c=a.$firstLineNumber,h=a.$breakpoints,u=a.$decorations,d=a.gutterRenderer||this.$renderer,p=this.$showFoldWidgets&&a.foldWidgets,g=i?i.start.row:Number.MAX_VALUE,f="ace_gutter-cell ",u=(this.$highlightGutterLine&&(n==this.$cursorRow||i&&n<this.$cursorRow&&g<=n&&this.$cursorRow<=i.end.row)&&(f+="ace_gutter-active-line ",this.$cursorCell!=e)&&(this.$cursorCell&&(this.$cursorCell.element.className=this.$cursorCell.element.className.replace("ace_gutter-active-line ","")),this.$cursorCell=e),h[n]&&(f+=h[n]),u[n]&&(f+=u[n]),this.$annotations[n]&&(f+=this.$annotations[n].className),s.className!=f&&(s.className=f),(r=p&&null==(r=p[n])?p[n]=a.getFoldWidget(n):r)?(f="ace_fold-widget ace_"+r,"start"==r&&n==g&&n<i.end.row?f+=" ace_closed":f+=" ace_open",l.className!=f&&(l.className=f),h=t.lineHeight+"px",m.setStyle(l.style,"height",h),m.setStyle(l.style,"display","inline-block")):l&&m.setStyle(l.style,"display","none"),(d?d.getText(a,n):n+c).toString());return u!==o.data&&(o.data=u),m.setStyle(e.element.style,"height",this.$lines.computeLineHeight(n,t,a)+"px"),m.setStyle(e.element.style,"top",this.$lines.computeLineTop(n,t,a)+"px"),e.text=u,e},this.$fixedWidth=!1,this.$highlightGutterLine=!0,this.$renderer="",this.setHighlightGutterLine=function(e){this.$highlightGutterLine=e},this.$showLineNumbers=!0,this.$renderer="",this.setShowLineNumbers=function(e){this.$renderer=!e&&{getWidth:function(){return 0},getText:function(){return""}}},this.getShowLineNumbers=function(){return this.$showLineNumbers},this.$showFoldWidgets=!0,this.setShowFoldWidgets=function(e){e?m.addCssClass(this.element,"ace_folding-enabled"):m.removeCssClass(this.element,"ace_folding-enabled"),this.$showFoldWidgets=e,this.$padding=null},this.getShowFoldWidgets=function(){return this.$showFoldWidgets},this.$computePadding=function(){var e;return this.element.firstChild?(e=m.computedStyle(this.element.firstChild),this.$padding={},this.$padding.left=(parseInt(e.borderLeftWidth)||0)+(parseInt(e.paddingLeft)||0)+1,this.$padding.right=(parseInt(e.borderRightWidth)||0)+(parseInt(e.paddingRight)||0),this.$padding):{left:0,right:0}},this.getRegion=function(e){var t=this.$padding||this.$computePadding(),i=this.element.getBoundingClientRect();return e.x<t.left+i.left?"markers":this.$showFoldWidgets&&e.x>i.right-t.right?"foldWidgets":void 0}}).call(n.prototype),t.Gutter=n}),ace.define("ace/layer/marker",["require","exports","module","ace/range","ace/lib/dom"],function(e,t,i){"use strict";function n(e){this.element=r.createElement("div"),this.element.className="ace_layer ace_marker-layer",e.appendChild(this.element)}var p=e("../range").Range,r=e("../lib/dom");(function(){this.$padding=0,this.setPadding=function(e){this.$padding=e},this.setSession=function(e){this.session=e},this.setMarkers=function(e){this.markers=e},this.elt=function(e,t){var i=-1!=this.i&&this.element.childNodes[this.i];i?this.i++:(i=document.createElement("div"),this.element.appendChild(i),this.i=-1),i.style.cssText=t,i.className=e},this.update=function(e){if(e){var t,i;for(i in this.config=e,this.i=0,this.markers){var n,r,s,a=this.markers[i];a.range?(s=a.range.clipRows(e.firstRow,e.lastRow)).isEmpty()||(s=s.toScreenRange(this.session),a.renderer?(n=this.$getTop(s.start.row,e),r=this.$padding+s.start.column*e.characterWidth,a.renderer(t,s,r,n,e)):"fullLine"==a.type?this.drawFullLineMarker(t,s,a.clazz,e):"screenLine"==a.type?this.drawScreenLineMarker(t,s,a.clazz,e):s.isMultiLine()?"text"==a.type?this.drawTextMarker(t,s,a.clazz,e):this.drawMultiLineMarker(t,s,a.clazz,e):this.drawSingleLineMarker(t,s,a.clazz+" ace_start ace_br15",e)):a.update(t,this,this.session,e)}if(-1!=this.i)for(;this.i<this.element.childElementCount;)this.element.removeChild(this.element.lastChild)}},this.$getTop=function(e,t){return(e-t.firstRowScreen)*t.lineHeight},this.drawTextMarker=function(e,t,i,n,r){for(var s,a=this.session,o=t.start.row,l=t.end.row,c=o,h=0,u=a.getScreenLastRowColumn(c),d=new p(c,t.start.column,c,h);c<=l;c++)d.start.row=d.end.row=c,d.start.column=c==o?t.start.column:a.getRowWrapIndent(c),d.end.column=u,s=h,h=u,u=c+1<l?a.getScreenLastRowColumn(c+1):c==l?0:t.end.column,this.drawSingleLineMarker(e,d,i+(c==o?" ace_start":"")+" ace_br"+((c==o||c==o+1&&t.start.column?1:0)|(s<h?2:0)|(u<h?4:0)|(c==l?8:0)),n,c==l?0:1,r)},this.drawMultiLineMarker=function(e,t,i,n,r){var s,a=this.$padding,o=n.lineHeight,l=this.$getTop(t.start.row,n),c=a+t.start.column*n.characterWidth;r=r||"",this.session.$bidiHandler.isBidiRow(t.start.row)?((s=t.clone()).end.row=s.start.row,s.end.column=this.session.getLine(s.start.row).length,this.drawBidiSingleLineMarker(e,s,i+" ace_br1 ace_start",n,null,r)):this.elt(i+" ace_br1 ace_start","height:"+o+"px;right:0;top:"+l+"px;left:"+c+"px;"+(r||"")),this.session.$bidiHandler.isBidiRow(t.end.row)?((s=t.clone()).start.row=s.end.row,s.start.column=0,this.drawBidiSingleLineMarker(e,s,i+" ace_br12",n,null,r)):(l=this.$getTop(t.end.row,n),c=t.end.column*n.characterWidth,this.elt(i+" ace_br12","height:"+o+"px;width:"+c+"px;top:"+l+"px;left:"+a+"px;"+(r||""))),(o=(t.end.row-t.start.row-1)*n.lineHeight)<=0||(l=this.$getTop(t.start.row+1,n),e=(t.start.column?1:0)|(t.end.column?0:8),this.elt(i+(e?" ace_br"+e:""),"height:"+o+"px;right:0;top:"+l+"px;left:"+a+"px;"+(r||"")))},this.drawSingleLineMarker=function(e,t,i,n,r,s){if(this.session.$bidiHandler.isBidiRow(t.start.row))return this.drawBidiSingleLineMarker(e,t,i,n,r,s);var e=n.lineHeight,r=(t.end.column+(r||0)-t.start.column)*n.characterWidth,a=this.$getTop(t.start.row,n),t=this.$padding+t.start.column*n.characterWidth;this.elt(i,"height:"+e+"px;width:"+r+"px;top:"+a+"px;left:"+t+"px;"+(s||""))},this.drawBidiSingleLineMarker=function(e,t,i,n,r,s){var a=n.lineHeight,o=this.$getTop(t.start.row,n),l=this.$padding;this.session.$bidiHandler.getSelections(t.start.column,t.end.column).forEach(function(e){this.elt(i,"height:"+a+"px;width:"+e.width+(r||0)+"px;top:"+o+"px;left:"+(l+e.left)+"px;"+(s||""))},this)},this.drawFullLineMarker=function(e,t,i,n,r){var s=this.$getTop(t.start.row,n),a=n.lineHeight;t.start.row!=t.end.row&&(a+=this.$getTop(t.end.row,n)-s),this.elt(i,"height:"+a+"px;top:"+s+"px;left:0;right:0;"+(r||""))},this.drawScreenLineMarker=function(e,t,i,n,r){t=this.$getTop(t.start.row,n),n=n.lineHeight;this.elt(i,"height:"+n+"px;top:"+t+"px;left:0;right:0;"+(r||""))}}).call(n.prototype),t.Marker=n}),ace.define("ace/layer/text",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/lang","ace/layer/lines","ace/lib/event_emitter"],function(e,t,i){"use strict";function n(e){this.dom=c,this.element=this.dom.createElement("div"),this.element.className="ace_layer ace_text-layer",e.appendChild(this.element),this.$updateEolChar=this.$updateEolChar.bind(this),this.$lines=new s(this.element)}var r=e("../lib/oop"),c=e("../lib/dom"),y=e("../lib/lang"),s=e("./lines").Lines,a=e("../lib/event_emitter").EventEmitter;(function(){r.implement(this,a),this.EOF_CHAR="¶",this.EOL_CHAR_LF="¬",this.EOL_CHAR_CRLF="¤",this.EOL_CHAR=this.EOL_CHAR_LF,this.TAB_CHAR="—",this.SPACE_CHAR="·",this.$padding=0,this.MAX_LINE_LENGTH=1e4,this.$updateEolChar=function(){var e=this.session.doc,e="\n"==e.getNewLineCharacter()&&"windows"!=e.getNewLineMode()?this.EOL_CHAR_LF:this.EOL_CHAR_CRLF;if(this.EOL_CHAR!=e)return this.EOL_CHAR=e,!0},this.setPadding=function(e){this.$padding=e,this.element.style.margin="0 "+e+"px"},this.getLineHeight=function(){return this.$fontMetrics.$characterSize.height||0},this.getCharacterWidth=function(){return this.$fontMetrics.$characterSize.width||0},this.$setFontMetrics=function(e){this.$fontMetrics=e,this.$fontMetrics.on("changeCharacterSize",function(e){this._signal("changeCharacterSize",e)}.bind(this)),this.$pollSizeChanges()},this.checkForSizeChanges=function(){this.$fontMetrics.checkForSizeChanges()},this.$pollSizeChanges=function(){return this.$pollSizeChangesTimer=this.$fontMetrics.$pollSizeChanges()},this.setSession=function(e){(this.session=e)&&this.$computeTabString()},this.showInvisibles=!1,this.showSpaces=!1,this.showTabs=!1,this.showEOL=!1,this.setShowInvisibles=function(e){return this.showInvisibles!=e&&("string"==typeof(this.showInvisibles=e)?(this.showSpaces=/tab/i.test(e),this.showTabs=/space/i.test(e),this.showEOL=/eol/i.test(e)):this.showSpaces=this.showTabs=this.showEOL=e,this.$computeTabString(),!0)},this.displayIndentGuides=!0,this.setDisplayIndentGuides=function(e){return this.displayIndentGuides!=e&&(this.displayIndentGuides=e,this.$computeTabString(),!0)},this.$tabStrings=[],this.onChangeTabSize=this.$computeTabString=function(){for(var e,t,i,n,r,s,a=this.session.getTabSize(),o=(this.tabSize=a,this.$tabStrings=[0]),l=1;l<a+1;l++)this.showTabs?((s=this.dom.createElement("span")).className="ace_invisible ace_invisible_tab",s.textContent=y.stringRepeat(this.TAB_CHAR,l),o.push(s)):o.push(this.dom.createTextNode(y.stringRepeat(" ",l),this.element));this.displayIndentGuides&&(this.$indentGuideRe=/\s\S| \t|\t |\s$/,e="ace_indent-guide",t=this.showSpaces?" ace_invisible ace_invisible_space":"",i=this.showSpaces?y.stringRepeat(this.SPACE_CHAR,this.tabSize):y.stringRepeat(" ",this.tabSize),n=this.showTabs?" ace_invisible ace_invisible_tab":"",r=this.showTabs?y.stringRepeat(this.TAB_CHAR,this.tabSize):i,(s=this.dom.createElement("span")).className=e+t,s.textContent=i,this.$tabStrings[" "]=s,(s=this.dom.createElement("span")).className=e+n,s.textContent=r,this.$tabStrings["\t"]=s)},this.updateLines=function(e,t,i){if(this.config.lastRow!=e.lastRow||this.config.firstRow!=e.firstRow)return this.update(e);this.config=e;for(var n=Math.max(t,e.firstRow),r=Math.min(i,e.lastRow),s=this.element.childNodes,a=0,o=e.firstRow;o<n;o++){if(l=this.session.getFoldLine(o)){if(l.containsRow(n)){n=l.start.row;break}o=l.end.row}a++}for(var l,c=!1,o=n,h=(l=this.session.getNextFoldLine(o))?l.start.row:1/0;h<o&&(o=l.end.row+1,h=(l=this.session.getNextFoldLine(o,l))?l.start.row:1/0),!(r<o);){var u,d=s[a++];d&&(this.dom.removeChildren(d),this.$renderLine(d,o,o==h&&l),c&&(d.style.top=this.$lines.computeLineTop(o,e,this.session)+"px"),u=e.lineHeight*this.session.getRowLength(o)+"px",d.style.height!=u)&&(c=!0,d.style.height=u),o++}if(c)for(;a<this.$lines.cells.length;){var p=this.$lines.cells[a++];p.element.style.top=this.$lines.computeLineTop(p.row,e,this.session)+"px"}},this.scrollLines=function(e){var t=this.config;if(this.config=e,this.$lines.pageChanged(t,e))return this.update(e);this.$lines.moveContainer(e);var i=e.lastRow,n=t?t.lastRow:-1;if(!t||n<e.firstRow)return this.update(e);if(i<t.firstRow)return this.update(e);if(!t||t.lastRow<e.firstRow)return this.update(e);if(e.lastRow<t.firstRow)return this.update(e);if(t.firstRow<e.firstRow)for(var r=this.session.getFoldedRowCount(t.firstRow,e.firstRow-1);0<r;r--)this.$lines.shift();if(t.lastRow>e.lastRow)for(r=this.session.getFoldedRowCount(e.lastRow+1,t.lastRow);0<r;r--)this.$lines.pop();e.firstRow<t.firstRow&&this.$lines.unshift(this.$renderLinesFragment(e,e.firstRow,t.firstRow-1)),e.lastRow>t.lastRow&&this.$lines.push(this.$renderLinesFragment(e,t.lastRow+1,e.lastRow))},this.$renderLinesFragment=function(e,t,i){for(var n=[],r=t,s=this.session.getNextFoldLine(r),a=s?s.start.row:1/0;a<r&&(r=s.end.row+1,a=(s=this.session.getNextFoldLine(r,s))?s.start.row:1/0),!(i<r);){var o=this.$lines.createCell(r,e,this.session),l=o.element;this.dom.removeChildren(l),c.setStyle(l.style,"height",this.$lines.computeLineHeight(r,e,this.session)+"px"),c.setStyle(l.style,"top",this.$lines.computeLineTop(r,e,this.session)+"px"),this.$renderLine(l,r,r==a&&s),this.$useLineGroups()?l.className="ace_line_group":l.className="ace_line",n.push(o),r++}return n},this.update=function(e){this.$lines.moveContainer(e);for(var t=(this.config=e).firstRow,i=e.lastRow,n=this.$lines;n.getLength();)n.pop();n.push(this.$renderLinesFragment(e,t,i))},this.$textToken={text:!0,rparen:!0,lparen:!0},this.$renderToken=function(e,t,i,n){for(var r,s,a=this,o=/(\t)|( +)|([\x00-\x1f\x80-\xa0\xad\u1680\u180E\u2000-\u200f\u2028\u2029\u202F\u205F\uFEFF\uFFF9-\uFFFC]+)|(\u3000)|([\u1100-\u115F\u11A3-\u11A7\u11FA-\u11FF\u2329-\u232A\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFB\u3001-\u303E\u3041-\u3096\u3099-\u30FF\u3105-\u312D\u3131-\u318E\u3190-\u31BA\u31C0-\u31E3\u31F0-\u321E\u3220-\u3247\u3250-\u32FE\u3300-\u4DBF\u4E00-\uA48C\uA490-\uA4C6\uA960-\uA97C\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFAFF\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE66\uFE68-\uFE6B\uFF01-\uFF60\uFFE0-\uFFE6]|[\uD800-\uDBFF][\uDC00-\uDFFF])/g,l=this.dom.createFragment(this.element),c=0;r=o.exec(n);){var h,u,d=r[1],p=r[2],g=r[3],f=r[4],m=r[5];!a.showSpaces&&p||(h=c!=r.index?n.slice(c,r.index):"",c=r.index+r[0].length,h&&l.appendChild(this.dom.createTextNode(h,this.element)),d?(h=a.session.getScreenTabSize(t+r.index),l.appendChild(a.$tabStrings[h].cloneNode(!0)),t+=h-1):p?a.showSpaces?((u=this.dom.createElement("span")).className="ace_invisible ace_invisible_space",u.textContent=y.stringRepeat(a.SPACE_CHAR,p.length),l.appendChild(u)):l.appendChild(this.com.createTextNode(p,this.element)):g?((u=this.dom.createElement("span")).className="ace_invisible ace_invisible_space ace_invalid",u.textContent=y.stringRepeat(a.SPACE_CHAR,g.length),l.appendChild(u)):f?(t+=1,(u=this.dom.createElement("span")).style.width=2*a.config.characterWidth+"px",u.className=a.showSpaces?"ace_cjk ace_invisible ace_invisible_space":"ace_cjk",u.textContent=a.showSpaces?a.SPACE_CHAR:f,l.appendChild(u)):m&&(t+=1,(u=this.dom.createElement("span")).style.width=2*a.config.characterWidth+"px",u.className="ace_cjk",u.textContent=m,l.appendChild(u)))}return l.appendChild(this.dom.createTextNode(c?n.slice(c):n,this.element)),this.$textToken[i.type]?e.appendChild(l):(s="ace_"+i.type.replace(/\./g," ace_"),u=this.dom.createElement("span"),"fold"==i.type&&(u.style.width=i.value.length*this.config.characterWidth+"px"),u.className=s,u.appendChild(l),e.appendChild(u)),t+n.length},this.renderIndentGuide=function(e,t,i){var n=t.search(this.$indentGuideRe);if(n<=0||i<=n)return t;if(" "==t[0])for(var r=(n-=n%this.tabSize)/this.tabSize,s=0;s<r;s++)e.appendChild(this.$tabStrings[" "].cloneNode(!0));else{if("\t"!=t[0])return t;for(s=0;s<n;s++)e.appendChild(this.$tabStrings["\t"].cloneNode(!0))}return t.substr(n)},this.$createLineElement=function(e){var t=this.dom.createElement("div");return t.className="ace_line",t.style.height=this.config.lineHeight+"px",t},this.$renderWrappedLine=function(e,t,i){var n=0,r=0,s=i[0],a=0,o=this.$createLineElement();e.appendChild(o);for(var l=0;l<t.length;l++){var c=t[l],h=c.value;if(0==l&&this.displayIndentGuides){if(n=h.length,!(h=this.renderIndentGuide(o,h,s)))continue;n-=h.length}if(n+h.length<s)a=this.$renderToken(o,a,c,h),n+=h.length;else{for(;n+h.length>=s;)a=this.$renderToken(o,a,c,h.substring(0,s-n)),h=h.substring(s-n),n=s,o=this.$createLineElement(),e.appendChild(o),o.appendChild(this.dom.createTextNode(y.stringRepeat(" ",i.indent),this.element)),a=0,s=i[++r]||Number.MAX_VALUE;0!=h.length&&(n+=h.length,a=this.$renderToken(o,a,c,h))}}i[i.length-1]>this.MAX_LINE_LENGTH&&this.$renderOverflowMessage(o,a,null,"",!0)},this.$renderSimpleLine=function(e,t){var i=0,n=t[0],r=n.value;(r=this.displayIndentGuides?this.renderIndentGuide(e,r):r)&&(i=this.$renderToken(e,i,n,r));for(var s=1;s<t.length;s++){if(i+(r=(n=t[s]).value).length>this.MAX_LINE_LENGTH)return this.$renderOverflowMessage(e,i,n,r);i=this.$renderToken(e,i,n,r)}},this.$renderOverflowMessage=function(e,t,i,n,r){i&&this.$renderToken(e,t,i,n.slice(0,this.MAX_LINE_LENGTH-t));i=this.dom.createElement("span");i.className="ace_inline_button ace_keyword ace_toggle_wrap",i.textContent=r?"<hide>":"<click to see more...>",e.appendChild(i)},this.$renderLine=function(e,t,i){var n,r,s=e;(n=(i=i||0==i?i:this.session.getFoldLine(t))?this.$getFoldLineTokens(t,i):this.session.getTokens(t)).length?(r=this.session.getRowSplitData(t))&&r.length?(this.$renderWrappedLine(e,n,r),s=e.lastChild):(s=e,this.$useLineGroups()&&(s=this.$createLineElement(),e.appendChild(s)),this.$renderSimpleLine(s,n)):this.$useLineGroups()&&(s=this.$createLineElement(),e.appendChild(s)),this.showEOL&&s&&(i&&(t=i.end.row),(r=this.dom.createElement("span")).className="ace_invisible ace_invisible_eol",r.textContent=t==this.session.getLength()-1?this.EOF_CHAR:this.EOL_CHAR,s.appendChild(r))},this.$getFoldLineTokens=function(e,t){var u=this.session,d=[],p=u.getTokens(e);return t.walk(function(e,t,i,n,r){if(null!=e)d.push({type:"fold",value:e});else if((p=r?u.getTokens(t):p).length){for(var s,a=p,o=n,l=i,c=0,h=0;h+a[c].value.length<o;)if(h+=a[c].value.length,++c==a.length)return;for(h!=o&&((s=a[c].value.substring(o-h)).length>l-o&&(s=s.substring(0,l-o)),d.push({type:a[c].type,value:s}),h=o+s.length,c+=1);h<l&&c<a.length;)(s=a[c].value).length+h>l?d.push({type:a[c].type,value:s.substring(0,l-h)}):d.push(a[c]),h+=s.length,c+=1}},t.end.row,this.session.getLine(t.end.row).length),d},this.$useLineGroups=function(){return this.session.getUseWrapMode()},this.destroy=function(){}}).call(n.prototype),t.Text=n}),ace.define("ace/layer/cursor",["require","exports","module","ace/lib/dom"],function(e,t,i){"use strict";function n(e){this.element=c.createElement("div"),this.element.className="ace_layer ace_cursor-layer",e.appendChild(this.element),this.isVisible=!1,this.isBlinking=!0,this.blinkInterval=1e3,this.smoothBlinking=!1,this.cursors=[],this.cursor=this.addCursor(),c.addCssClass(this.element,"ace_hidden-cursors"),this.$updateCursors=this.$updateOpacity.bind(this)}var c=e("../lib/dom");(function(){this.$updateOpacity=function(e){for(var t=this.cursors,i=t.length;i--;)c.setStyle(t[i].style,"opacity",e?"":"0")},this.$startCssAnimation=function(){for(var e=this.cursors,t=e.length;t--;)e[t].style.animationDuration=this.blinkInterval+"ms";setTimeout(function(){c.addCssClass(this.element,"ace_animate-blinking")}.bind(this))},this.$stopCssAnimation=function(){c.removeCssClass(this.element,"ace_animate-blinking")},this.$padding=0,this.setPadding=function(e){this.$padding=e},this.setSession=function(e){this.session=e},this.setBlinking=function(e){e!=this.isBlinking&&(this.isBlinking=e,this.restartTimer())},this.setBlinkInterval=function(e){e!=this.blinkInterval&&(this.blinkInterval=e,this.restartTimer())},this.setSmoothBlinking=function(e){e!=this.smoothBlinking&&(this.smoothBlinking=e,c.setCssClass(this.element,"ace_smooth-blinking",e),this.$updateCursors(!0),this.restartTimer())},this.addCursor=function(){var e=c.createElement("div");return e.className="ace_cursor",this.element.appendChild(e),this.cursors.push(e),e},this.removeCursor=function(){var e;if(1<this.cursors.length)return(e=this.cursors.pop()).parentNode.removeChild(e),e},this.hideCursor=function(){this.isVisible=!1,c.addCssClass(this.element,"ace_hidden-cursors"),this.restartTimer()},this.showCursor=function(){this.isVisible=!0,c.removeCssClass(this.element,"ace_hidden-cursors"),this.restartTimer()},this.restartTimer=function(){var e,t=this.$updateCursors;clearInterval(this.intervalId),clearTimeout(this.timeoutId),this.$stopCssAnimation(),this.smoothBlinking&&c.removeCssClass(this.element,"ace_smooth-blinking"),t(!0),this.isBlinking&&this.blinkInterval&&this.isVisible?(this.smoothBlinking&&setTimeout(function(){c.addCssClass(this.element,"ace_smooth-blinking")}.bind(this)),c.HAS_CSS_ANIMATION?this.$startCssAnimation():(e=function(){this.timeoutId=setTimeout(function(){t(!1)},.6*this.blinkInterval)}.bind(this),this.intervalId=setInterval(function(){t(!0),e()},this.blinkInterval),e())):this.$stopCssAnimation()},this.getPixelPosition=function(e,t){if(!this.config||!this.session)return{left:0,top:0};e=e||this.session.selection.getCursor();var i=this.session.documentToScreenPosition(e);return{left:this.$padding+(this.session.$bidiHandler.isBidiRow(i.row,e.row)?this.session.$bidiHandler.getPosLeft(i.column):i.column*this.config.characterWidth),top:(i.row-(t?this.config.firstRowScreen:0))*this.config.lineHeight}},this.isCursorInView=function(e,t){return 0<=e.top&&e.top<t.maxHeight},this.update=function(e){this.config=e;for(var t=this.session.$selectionMarkers,i=0,n=0,i=0,r=(t=void 0!==t&&0!==t.length?t:[{cursor:null}]).length;i<r;i++){var s,a,o=this.getPixelPosition(t[i].cursor,!0);(o.top>e.height+e.offset||o.top<0)&&1<i||(a=(s=this.cursors[n++]||this.addCursor()).style,this.drawCursor?this.drawCursor(s,o,e,t[i],this.session):this.isCursorInView(o,e)?(c.setStyle(a,"display","block"),c.translate(s,o.left,o.top),c.setStyle(a,"width",Math.round(e.characterWidth)+"px"),c.setStyle(a,"height",e.lineHeight+"px")):c.setStyle(a,"display","none"))}for(;this.cursors.length>n;)this.removeCursor();var l=this.session.getOverwrite();this.$setOverwrite(l),this.$pixelPos=o,this.restartTimer()},this.drawCursor=null,this.$setOverwrite=function(e){e!=this.overwrite&&((this.overwrite=e)?c.addCssClass(this.element,"ace_overwrite-cursors"):c.removeCssClass(this.element,"ace_overwrite-cursors"))},this.destroy=function(){clearInterval(this.intervalId),clearTimeout(this.timeoutId)}}).call(n.prototype),t.Cursor=n}),ace.define("ace/scrollbar",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/event","ace/lib/event_emitter"],function(e,t,i){"use strict";function n(e){this.element=o.createElement("div"),this.element.className="ace_scrollbar ace_scrollbar"+this.classSuffix,this.inner=o.createElement("div"),this.inner.className="ace_scrollbar-inner",this.inner.textContent=" ",this.element.appendChild(this.inner),e.appendChild(this.element),this.setVisible(!1),this.skipEvent=!1,l.addListener(this.element,"scroll",this.onScroll.bind(this)),l.addListener(this.element,"mousedown",l.preventDefault)}function r(e,t){n.call(this,e),this.scrollTop=0,this.scrollHeight=0,t.$scrollbarWidth=this.width=o.scrollbarWidth(e.ownerDocument),this.inner.style.width=this.element.style.width=(this.width||15)+5+"px",this.$minWidth=0}function s(e,t){n.call(this,e),this.scrollLeft=0,this.height=t.$scrollbarWidth,this.inner.style.height=this.element.style.height=(this.height||15)+5+"px"}var a=e("./lib/oop"),o=e("./lib/dom"),l=e("./lib/event"),c=e("./lib/event_emitter").EventEmitter;!function(){a.implement(this,c),this.setVisible=function(e){this.element.style.display=e?"":"none",this.isVisible=e,this.coeff=1}}.call(n.prototype),a.inherits(r,n),function(){this.classSuffix="-v",this.onScroll=function(){var e;this.skipEvent||(this.scrollTop=this.element.scrollTop,1!=this.coeff&&(e=this.element.clientHeight/this.scrollHeight,this.scrollTop=this.scrollTop*(1-e)/(this.coeff-e)),this._emit("scroll",{data:this.scrollTop})),this.skipEvent=!1},this.getWidth=function(){return Math.max(this.isVisible?this.width:0,this.$minWidth||0)},this.setHeight=function(e){this.element.style.height=e+"px"},this.setInnerHeight=this.setScrollHeight=function(e){32768<(this.scrollHeight=e)?(this.coeff=32768/e,e=32768):1!=this.coeff&&(this.coeff=1),this.inner.style.height=e+"px"},this.setScrollTop=function(e){this.scrollTop!=e&&(this.skipEvent=!0,this.scrollTop=e,this.element.scrollTop=e*this.coeff)}}.call(r.prototype);a.inherits(s,n),function(){this.classSuffix="-h",this.onScroll=function(){this.skipEvent||(this.scrollLeft=this.element.scrollLeft,this._emit("scroll",{data:this.scrollLeft})),this.skipEvent=!1},this.getHeight=function(){return this.isVisible?this.height:0},this.setWidth=function(e){this.element.style.width=e+"px"},this.setInnerWidth=function(e){this.inner.style.width=e+"px"},this.setScrollWidth=function(e){this.inner.style.width=e+"px"},this.setScrollLeft=function(e){this.scrollLeft!=e&&(this.skipEvent=!0,this.scrollLeft=this.element.scrollLeft=e)}}.call(s.prototype),t.ScrollBar=r,t.ScrollBarV=r,t.ScrollBarH=s,t.VScrollBar=r,t.HScrollBar=s}),ace.define("ace/renderloop",["require","exports","module","ace/lib/event"],function(e,t,i){"use strict";function n(e,t){this.onRender=e,this.pending=!1,this.changes=0,this.$recursionLimit=2,this.window=t||window;var i=this;this._flush=function(e){i.pending=!1;var t=i.changes;t&&(r.blockIdle(100),i.changes=0,i.onRender(t)),i.changes?i.$recursionLimit--<0||i.schedule():i.$recursionLimit=2}}var r=e("./lib/event");(function(){this.schedule=function(e){this.changes=this.changes|e,this.changes&&!this.pending&&(r.nextFrame(this._flush),this.pending=!0)},this.clear=function(e){var t=this.changes;return this.changes=0,t}}).call(n.prototype),t.RenderLoop=n}),ace.define("ace/layer/font_metrics",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/lang","ace/lib/event","ace/lib/useragent","ace/lib/event_emitter"],function(e,t,i){var n=e("../lib/oop"),r=e("../lib/dom"),s=e("../lib/lang"),a=e("../lib/event"),o=e("../lib/useragent"),l=e("../lib/event_emitter").EventEmitter,c="function"==typeof ResizeObserver,e=t.FontMetrics=function(e){this.el=r.createElement("div"),this.$setMeasureNodeStyles(this.el.style,!0),this.$main=r.createElement("div"),this.$setMeasureNodeStyles(this.$main.style),this.$measureNode=r.createElement("div"),this.$setMeasureNodeStyles(this.$measureNode.style),this.el.appendChild(this.$main),this.el.appendChild(this.$measureNode),e.appendChild(this.el),this.$measureNode.textContent=s.stringRepeat("X",256),this.$characterSize={width:0,height:0},c?this.$addObserver():this.checkForSizeChanges()};!function(){n.implement(this,l),this.$characterSize={width:0,height:0},this.$setMeasureNodeStyles=function(e,t){e.width=e.height="auto",e.left=e.top="0px",e.visibility="hidden",e.position="absolute",e.whiteSpace="pre",o.isIE<8?e["font-family"]="inherit":e.font="inherit",e.overflow=t?"hidden":"visible"},this.checkForSizeChanges=function(e){var t;!(e=void 0===e?this.$measureSizes():e)||this.$characterSize.width===e.width&&this.$characterSize.height===e.height||(this.$measureNode.style.fontWeight="bold",t=this.$measureSizes(),this.$measureNode.style.fontWeight="",this.$characterSize=e,this.charSizes=Object.create(null),this.allowBoldFonts=t&&t.width===e.width&&t.height===e.height,this._emit("changeCharacterSize",{data:e}))},this.$addObserver=function(){var t=this;this.$observer=new window.ResizeObserver(function(e){t.checkForSizeChanges()}),this.$observer.observe(this.$measureNode)},this.$pollSizeChanges=function(){var t;return this.$pollSizeChangesTimer||this.$observer?this.$pollSizeChangesTimer:(t=this).$pollSizeChangesTimer=a.onIdle(function e(){t.checkForSizeChanges(),a.onIdle(e,500)},500)},this.setPolling=function(e){e?this.$pollSizeChanges():this.$pollSizeChangesTimer&&(clearInterval(this.$pollSizeChangesTimer),this.$pollSizeChangesTimer=0)},this.$measureSizes=function(e){e={height:(e||this.$measureNode).clientHeight,width:(e||this.$measureNode).clientWidth/256};return 0===e.width||0===e.height?null:e},this.$measureCharWidth=function(e){return this.$main.textContent=s.stringRepeat(e,256),this.$main.getBoundingClientRect().width/256},this.getCharacterWidth=function(e){var t=this.charSizes[e];return t=void 0===t?this.charSizes[e]=this.$measureCharWidth(e)/this.$characterSize.width:t},this.destroy=function(){clearInterval(this.$pollSizeChangesTimer),this.$observer&&this.$observer.disconnect(),this.el&&this.el.parentNode&&this.el.parentNode.removeChild(this.el)},this.$getZoom=function e(t){return t&&t.parentElement?(window.getComputedStyle(t).zoom||1)*e(t.parentElement):1},this.$initTransformMeasureNodes=function(){function e(e,t){return["div",{style:"position: absolute;top:"+e+"px;left:"+t+"px;"}]}this.els=r.buildDom([e(0,0),e(200,0),e(0,200),e(200,200)],this.el)},this.transformCoordinates=function(e,t){function i(e,t,i){var n=e[1]*t[0]-e[0]*t[1];return[(-t[1]*i[0]+t[0]*i[1])/n,(+e[1]*i[0]-e[0]*i[1])/n]}function n(e,t){return[e[0]-t[0],e[1]-t[1]]}function r(e,t){return[e[0]+t[0],e[1]+t[1]]}function s(e,t){return[e*t[0],e*t[1]]}function a(e){e=e.getBoundingClientRect();return[e.left,e.top]}e=e&&s(1/this.$getZoom(this.el),e),this.els||this.$initTransformMeasureNodes();var o,l=a(this.els[0]),c=a(this.els[1]),h=a(this.els[2]),u=a(this.els[3]),u=i(n(u,c),n(u,h),n(r(c,h),r(u,l))),c=s(1+u[0],n(c,l)),h=s(1+u[1],n(h,l));return t?(o=u[0]*t[0]/200+u[1]*t[1]/200+1,t=r(s(t[0],c),s(t[1],h)),r(s(1/o/200,t),l)):(o=n(e,l),t=i(n(c,s(u[0],o)),n(h,s(u[1],o)),o),s(200,t))}}.call(e.prototype)}),ace.define("ace/virtual_renderer",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/config","ace/layer/gutter","ace/layer/marker","ace/layer/text","ace/layer/cursor","ace/scrollbar","ace/scrollbar","ace/renderloop","ace/layer/font_metrics","ace/lib/event_emitter","ace/lib/useragent"],function(e,t,i){"use strict";function n(e,t){var i=this,e=(this.container=e||o.createElement("div"),o.addCssClass(this.container,"ace_editor"),o.HI_DPI&&o.addCssClass(this.container,"ace_hidpi"),this.setTheme(t),this.$gutter=o.createElement("div"),this.$gutter.className="ace_gutter",this.container.appendChild(this.$gutter),this.$gutter.setAttribute("aria-hidden",!0),this.scroller=o.createElement("div"),this.scroller.className="ace_scroller",this.container.appendChild(this.scroller),this.content=o.createElement("div"),this.content.className="ace_content",this.scroller.appendChild(this.content),this.$gutterLayer=new a(this.$gutter),this.$gutterLayer.on("changeGutterWidth",this.onGutterResize.bind(this)),this.$markerBack=new l(this.content),this.$textLayer=new c(this.content));this.canvas=e.element,this.$markerFront=new l(this.content),this.$cursorLayer=new h(this.content),this.$horizScroll=!1,this.$vScroll=!1,this.scrollBar=this.scrollBarV=new d(this.container,this),this.scrollBarH=new u(this.container,this),this.scrollBarV.on("scroll",function(e){i.$scrollAnimation||i.session.setScrollTop(e.data-i.scrollMargin.top)}),this.scrollBarH.on("scroll",function(e){i.$scrollAnimation||i.session.setScrollLeft(e.data-i.scrollMargin.left)}),this.scrollTop=0,this.scrollLeft=0,this.cursorPos={row:0,column:0},this.$fontMetrics=new g(this.container),this.$textLayer.$setFontMetrics(this.$fontMetrics),this.$textLayer.on("changeCharacterSize",function(e){i.updateCharacterSize(),i.onResize(!0,i.gutterWidth,i.$size.width,i.$size.height),i._signal("changeCharacterSize",e)}),this.$size={width:0,height:0,scrollerHeight:0,scrollerWidth:0,$dirty:!0},this.layerConfig={width:1,padding:0,firstRow:0,firstRowScreen:0,lastRow:0,lineHeight:0,characterWidth:0,minHeight:1,maxHeight:1,offset:0,height:1,gutterOffset:1},this.scrollMargin={left:0,right:0,top:0,bottom:0,v:0,h:0},this.margin={left:0,right:0,top:0,bottom:0,v:0,h:0},this.$keepTextAreaAtCursor=!y.isIOS,this.$loop=new p(this.$renderChanges.bind(this),this.container.ownerDocument.defaultView),this.$loop.schedule(this.CHANGE_FULL),this.updateCharacterSize(),this.setPadding(4),s.resetOptions(this),s._signal("renderer",this)}var r=e("./lib/oop"),o=e("./lib/dom"),s=e("./config"),a=e("./layer/gutter").Gutter,l=e("./layer/marker").Marker,c=e("./layer/text").Text,h=e("./layer/cursor").Cursor,u=e("./scrollbar").HScrollBar,d=e("./scrollbar").VScrollBar,p=e("./renderloop").RenderLoop,g=e("./layer/font_metrics").FontMetrics,f=e("./lib/event_emitter").EventEmitter,m='.ace_br1 {border-top-left-radius : 3px;}.ace_br2 {border-top-right-radius : 3px;}.ace_br3 {border-top-left-radius : 3px; border-top-right-radius: 3px;}.ace_br4 {border-bottom-right-radius: 3px;}.ace_br5 {border-top-left-radius : 3px; border-bottom-right-radius: 3px;}.ace_br6 {border-top-right-radius : 3px; border-bottom-right-radius: 3px;}.ace_br7 {border-top-left-radius : 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px;}.ace_br8 {border-bottom-left-radius : 3px;}.ace_br9 {border-top-left-radius : 3px; border-bottom-left-radius: 3px;}.ace_br10{border-top-right-radius : 3px; border-bottom-left-radius: 3px;}.ace_br11{border-top-left-radius : 3px; border-top-right-radius: 3px; border-bottom-left-radius: 3px;}.ace_br12{border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}.ace_br13{border-top-left-radius : 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}.ace_br14{border-top-right-radius : 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}.ace_br15{border-top-left-radius : 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}.ace_editor {position: relative;overflow: hidden;padding: 0;font: 12px/normal \'Monaco\', \'Menlo\', \'Ubuntu Mono\', \'Consolas\', \'source-code-pro\', monospace;direction: ltr;text-align: left;-webkit-tap-highlight-color: rgba(0, 0, 0, 0);}.ace_scroller {position: absolute;overflow: hidden;top: 0;bottom: 0;background-color: inherit;-ms-user-select: none;-moz-user-select: none;-webkit-user-select: none;user-select: none;cursor: text;}.ace_content {position: absolute;box-sizing: border-box;min-width: 100%;contain: style size layout;font-variant-ligatures: no-common-ligatures;}.ace_dragging .ace_scroller:before{position: absolute;top: 0;left: 0;right: 0;bottom: 0;content: \'\';background: rgba(250, 250, 250, 0.01);z-index: 1000;}.ace_dragging.ace_dark .ace_scroller:before{background: rgba(0, 0, 0, 0.01);}.ace_selecting, .ace_selecting * {cursor: text !important;}.ace_gutter {position: absolute;overflow : hidden;width: auto;top: 0;bottom: 0;left: 0;cursor: default;z-index: 4;-ms-user-select: none;-moz-user-select: none;-webkit-user-select: none;user-select: none;contain: style size layout;}.ace_gutter-active-line {position: absolute;left: 0;right: 0;}.ace_scroller.ace_scroll-left {box-shadow: 17px 0 16px -16px rgba(0, 0, 0, 0.4) inset;}.ace_gutter-cell {position: absolute;top: 0;left: 0;right: 0;padding-left: 19px;padding-right: 6px;background-repeat: no-repeat;}.ace_gutter-cell.ace_error {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAABOFBMVEX/////////QRswFAb/Ui4wFAYwFAYwFAaWGAfDRymzOSH/PxswFAb/SiUwFAYwFAbUPRvjQiDllog5HhHdRybsTi3/Tyv9Tir+Syj/UC3////XurebMBIwFAb/RSHbPx/gUzfdwL3kzMivKBAwFAbbvbnhPx66NhowFAYwFAaZJg8wFAaxKBDZurf/RB6mMxb/SCMwFAYwFAbxQB3+RB4wFAb/Qhy4Oh+4QifbNRcwFAYwFAYwFAb/QRzdNhgwFAYwFAbav7v/Uy7oaE68MBK5LxLewr/r2NXewLswFAaxJw4wFAbkPRy2PyYwFAaxKhLm1tMwFAazPiQwFAaUGAb/QBrfOx3bvrv/VC/maE4wFAbRPBq6MRO8Qynew8Dp2tjfwb0wFAbx6eju5+by6uns4uH9/f36+vr/GkHjAAAAYnRSTlMAGt+64rnWu/bo8eAA4InH3+DwoN7j4eLi4xP99Nfg4+b+/u9B/eDs1MD1mO7+4PHg2MXa347g7vDizMLN4eG+Pv7i5evs/v79yu7S3/DV7/498Yv24eH+4ufQ3Ozu/v7+y13sRqwAAADLSURBVHjaZc/XDsFgGIBhtDrshlitmk2IrbHFqL2pvXf/+78DPokj7+Fz9qpU/9UXJIlhmPaTaQ6QPaz0mm+5gwkgovcV6GZzd5JtCQwgsxoHOvJO15kleRLAnMgHFIESUEPmawB9ngmelTtipwwfASilxOLyiV5UVUyVAfbG0cCPHig+GBkzAENHS0AstVF6bacZIOzgLmxsHbt2OecNgJC83JERmePUYq8ARGkJx6XtFsdddBQgZE2nPR6CICZhawjA4Fb/chv+399kfR+MMMDGOQAAAABJRU5ErkJggg==");background-repeat: no-repeat;background-position: 2px center;}.ace_gutter-cell.ace_warning {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAAmVBMVEX///8AAAD///8AAAAAAABPSzb/5sAAAAB/blH/73z/ulkAAAAAAAD85pkAAAAAAAACAgP/vGz/rkDerGbGrV7/pkQICAf////e0IsAAAD/oED/qTvhrnUAAAD/yHD/njcAAADuv2r/nz//oTj/p064oGf/zHAAAAA9Nir/tFIAAAD/tlTiuWf/tkIAAACynXEAAAAAAAAtIRW7zBpBAAAAM3RSTlMAABR1m7RXO8Ln31Z36zT+neXe5OzooRDfn+TZ4p3h2hTf4t3k3ucyrN1K5+Xaks52Sfs9CXgrAAAAjklEQVR42o3PbQ+CIBQFYEwboPhSYgoYunIqqLn6/z8uYdH8Vmdnu9vz4WwXgN/xTPRD2+sgOcZjsge/whXZgUaYYvT8QnuJaUrjrHUQreGczuEafQCO/SJTufTbroWsPgsllVhq3wJEk2jUSzX3CUEDJC84707djRc5MTAQxoLgupWRwW6UB5fS++NV8AbOZgnsC7BpEAAAAABJRU5ErkJggg==");background-position: 2px center;}.ace_gutter-cell.ace_info {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAAAAAA6mKC9AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAAJ0Uk5TAAB2k804AAAAPklEQVQY02NgIB68QuO3tiLznjAwpKTgNyDbMegwisCHZUETUZV0ZqOquBpXj2rtnpSJT1AEnnRmL2OgGgAAIKkRQap2htgAAAAASUVORK5CYII=");background-position: 2px center;}.ace_dark .ace_gutter-cell.ace_info {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQBAMAAADt3eJSAAAAJFBMVEUAAAChoaGAgIAqKiq+vr6tra1ZWVmUlJSbm5s8PDxubm56enrdgzg3AAAAAXRSTlMAQObYZgAAAClJREFUeNpjYMAPdsMYHegyJZFQBlsUlMFVCWUYKkAZMxZAGdxlDMQBAG+TBP4B6RyJAAAAAElFTkSuQmCC");}.ace_scrollbar {contain: strict;position: absolute;right: 0;bottom: 0;z-index: 6;}.ace_scrollbar-inner {position: absolute;cursor: text;left: 0;top: 0;}.ace_scrollbar-v{overflow-x: hidden;overflow-y: scroll;top: 0;}.ace_scrollbar-h {overflow-x: scroll;overflow-y: hidden;left: 0;}.ace_print-margin {position: absolute;height: 100%;}.ace_text-input {position: absolute;z-index: 0;width: 0.5em;height: 1em;opacity: 0;background: transparent;-moz-appearance: none;appearance: none;border: none;resize: none;outline: none;overflow: hidden;font: inherit;padding: 0 1px;margin: 0 -1px;contain: strict;-ms-user-select: text;-moz-user-select: text;-webkit-user-select: text;user-select: text;white-space: pre!important;}.ace_text-input.ace_composition {background: transparent;color: inherit;z-index: 1000;opacity: 1;}.ace_composition_placeholder { color: transparent }.ace_composition_marker { border-bottom: 1px solid;position: absolute;border-radius: 0;margin-top: 1px;}[ace_nocontext=true] {transform: none!important;filter: none!important;clip-path: none!important;mask : none!important;contain: none!important;perspective: none!important;mix-blend-mode: initial!important;z-index: auto;}.ace_layer {z-index: 1;position: absolute;overflow: hidden;word-wrap: normal;white-space: pre;height: 100%;width: 100%;box-sizing: border-box;pointer-events: none;}.ace_gutter-layer {position: relative;width: auto;text-align: right;pointer-events: auto;height: 1000000px;contain: style size layout;}.ace_text-layer {font: inherit !important;position: absolute;height: 1000000px;width: 1000000px;contain: style size layout;}.ace_text-layer > .ace_line, .ace_text-layer > .ace_line_group {contain: style size layout;position: absolute;top: 0;left: 0;right: 0;}.ace_hidpi .ace_text-layer,.ace_hidpi .ace_gutter-layer,.ace_hidpi .ace_content,.ace_hidpi .ace_gutter {contain: strict;will-change: transform;}.ace_hidpi .ace_text-layer > .ace_line, .ace_hidpi .ace_text-layer > .ace_line_group {contain: strict;}.ace_cjk {display: inline-block;text-align: center;}.ace_cursor-layer {z-index: 4;}.ace_cursor {z-index: 4;position: absolute;box-sizing: border-box;border-left: 2px solid;transform: translatez(0);}.ace_multiselect .ace_cursor {border-left-width: 1px;}.ace_slim-cursors .ace_cursor {border-left-width: 1px;}.ace_overwrite-cursors .ace_cursor {border-left-width: 0;border-bottom: 1px solid;}.ace_hidden-cursors .ace_cursor {opacity: 0.2;}.ace_hasPlaceholder .ace_hidden-cursors .ace_cursor {opacity: 0;}.ace_smooth-blinking .ace_cursor {transition: opacity 0.18s;}.ace_animate-blinking .ace_cursor {animation-duration: 1000ms;animation-timing-function: step-end;animation-name: blink-ace-animate;animation-iteration-count: infinite;}.ace_animate-blinking.ace_smooth-blinking .ace_cursor {animation-duration: 1000ms;animation-timing-function: ease-in-out;animation-name: blink-ace-animate-smooth;}@keyframes blink-ace-animate {from, to { opacity: 1; }60% { opacity: 0; }}@keyframes blink-ace-animate-smooth {from, to { opacity: 1; }45% { opacity: 1; }60% { opacity: 0; }85% { opacity: 0; }}.ace_marker-layer .ace_step, .ace_marker-layer .ace_stack {position: absolute;z-index: 3;}.ace_marker-layer .ace_selection {position: absolute;z-index: 5;}.ace_marker-layer .ace_bracket {position: absolute;z-index: 6;}.ace_marker-layer .ace_error_bracket {position: absolute;border-bottom: 1px solid #DE5555;border-radius: 0;}.ace_marker-layer .ace_active-line {position: absolute;z-index: 2;}.ace_marker-layer .ace_selected-word {position: absolute;z-index: 4;box-sizing: border-box;}.ace_line .ace_fold {box-sizing: border-box;display: inline-block;height: 11px;margin-top: -2px;vertical-align: middle;background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAAJCAYAAADU6McMAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAJpJREFUeNpi/P//PwOlgAXGYGRklAVSokD8GmjwY1wasKljQpYACtpCFeADcHVQfQyMQAwzwAZI3wJKvCLkfKBaMSClBlR7BOQikCFGQEErIH0VqkabiGCAqwUadAzZJRxQr/0gwiXIal8zQQPnNVTgJ1TdawL0T5gBIP1MUJNhBv2HKoQHHjqNrA4WO4zY0glyNKLT2KIfIMAAQsdgGiXvgnYAAAAASUVORK5CYII="),url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAA3CAYAAADNNiA5AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAACJJREFUeNpi+P//fxgTAwPDBxDxD078RSX+YeEyDFMCIMAAI3INmXiwf2YAAAAASUVORK5CYII=");background-repeat: no-repeat, repeat-x;background-position: center center, top left;color: transparent;border: 1px solid black;border-radius: 2px;cursor: pointer;pointer-events: auto;}.ace_dark .ace_fold {}.ace_fold:hover{background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAAJCAYAAADU6McMAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAJpJREFUeNpi/P//PwOlgAXGYGRklAVSokD8GmjwY1wasKljQpYACtpCFeADcHVQfQyMQAwzwAZI3wJKvCLkfKBaMSClBlR7BOQikCFGQEErIH0VqkabiGCAqwUadAzZJRxQr/0gwiXIal8zQQPnNVTgJ1TdawL0T5gBIP1MUJNhBv2HKoQHHjqNrA4WO4zY0glyNKLT2KIfIMAAQsdgGiXvgnYAAAAASUVORK5CYII="),url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAA3CAYAAADNNiA5AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAACBJREFUeNpi+P//fz4TAwPDZxDxD5X4i5fLMEwJgAADAEPVDbjNw87ZAAAAAElFTkSuQmCC");}.ace_tooltip {background-color: #FFF;background-image: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.1));border: 1px solid gray;border-radius: 1px;box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);color: black;max-width: 100%;padding: 3px 4px;position: fixed;z-index: 999999;box-sizing: border-box;cursor: default;white-space: pre;word-wrap: break-word;line-height: normal;font-style: normal;font-weight: normal;letter-spacing: normal;pointer-events: none;}.ace_folding-enabled > .ace_gutter-cell {padding-right: 13px;}.ace_fold-widget {box-sizing: border-box;margin: 0 -12px 0 1px;display: none;width: 11px;vertical-align: top;background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAANElEQVR42mWKsQ0AMAzC8ixLlrzQjzmBiEjp0A6WwBCSPgKAXoLkqSot7nN3yMwR7pZ32NzpKkVoDBUxKAAAAABJRU5ErkJggg==");background-repeat: no-repeat;background-position: center;border-radius: 3px;border: 1px solid transparent;cursor: pointer;}.ace_folding-enabled .ace_fold-widget {display: inline-block; }.ace_fold-widget.ace_end {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAANElEQVR42m3HwQkAMAhD0YzsRchFKI7sAikeWkrxwScEB0nh5e7KTPWimZki4tYfVbX+MNl4pyZXejUO1QAAAABJRU5ErkJggg==");}.ace_fold-widget.ace_closed {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAMAAAAGCAYAAAAG5SQMAAAAOUlEQVR42jXKwQkAMAgDwKwqKD4EwQ26sSOkVWjgIIHAzPiCgaqiqnJHZnKICBERHN194O5b9vbLuAVRL+l0YWnZAAAAAElFTkSuQmCCXA==");}.ace_fold-widget:hover {border: 1px solid rgba(0, 0, 0, 0.3);background-color: rgba(255, 255, 255, 0.2);box-shadow: 0 1px 1px rgba(255, 255, 255, 0.7);}.ace_fold-widget:active {border: 1px solid rgba(0, 0, 0, 0.4);background-color: rgba(0, 0, 0, 0.05);box-shadow: 0 1px 1px rgba(255, 255, 255, 0.8);}.ace_dark .ace_fold-widget {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHklEQVQIW2P4//8/AzoGEQ7oGCaLLAhWiSwB146BAQCSTPYocqT0AAAAAElFTkSuQmCC");}.ace_dark .ace_fold-widget.ace_end {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAH0lEQVQIW2P4//8/AxQ7wNjIAjDMgC4AxjCVKBirIAAF0kz2rlhxpAAAAABJRU5ErkJggg==");}.ace_dark .ace_fold-widget.ace_closed {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAMAAAAFCAYAAACAcVaiAAAAHElEQVQIW2P4//+/AxAzgDADlOOAznHAKgPWAwARji8UIDTfQQAAAABJRU5ErkJggg==");}.ace_dark .ace_fold-widget:hover {box-shadow: 0 1px 1px rgba(255, 255, 255, 0.2);background-color: rgba(255, 255, 255, 0.1);}.ace_dark .ace_fold-widget:active {box-shadow: 0 1px 1px rgba(255, 255, 255, 0.2);}.ace_inline_button {border: 1px solid lightgray;display: inline-block;margin: -1px 8px;padding: 0 5px;pointer-events: auto;cursor: pointer;}.ace_inline_button:hover {border-color: gray;background: rgba(200,200,200,0.2);display: inline-block;pointer-events: auto;}.ace_fold-widget.ace_invalid {background-color: #FFB4B4;border-color: #DE5555;}.ace_fade-fold-widgets .ace_fold-widget {transition: opacity 0.4s ease 0.05s;opacity: 0;}.ace_fade-fold-widgets:hover .ace_fold-widget {transition: opacity 0.05s ease 0.05s;opacity:1;}.ace_underline {text-decoration: underline;}.ace_bold {font-weight: bold;}.ace_nobold .ace_bold {font-weight: normal;}.ace_italic {font-style: italic;}.ace_error-marker {background-color: rgba(255, 0, 0,0.2);position: absolute;z-index: 9;}.ace_highlight-marker {background-color: rgba(255, 255, 0,0.2);position: absolute;z-index: 8;}.ace_mobile-menu {position: absolute;line-height: 1.5;border-radius: 4px;-ms-user-select: none;-moz-user-select: none;-webkit-user-select: none;user-select: none;background: white;box-shadow: 1px 3px 2px grey;border: 1px solid #dcdcdc;color: black;}.ace_dark > .ace_mobile-menu {background: #333;color: #ccc;box-shadow: 1px 3px 2px grey;border: 1px solid #444;}.ace_mobile-button {padding: 2px;cursor: pointer;overflow: hidden;}.ace_mobile-button:hover {background-color: #eee;opacity:1;}.ace_mobile-button:active {background-color: #ddd;}.ace_placeholder {font-family: arial;transform: scale(0.9);transform-origin: left;white-space: pre;opacity: 0.7;margin: 0 10px;}',y=e("./lib/useragent"),b=y.isIE;o.importCssString(m,"ace_editor.css");(function(){this.CHANGE_CURSOR=1,this.CHANGE_MARKER=2,this.CHANGE_GUTTER=4,this.CHANGE_SCROLL=8,this.CHANGE_LINES=16,this.CHANGE_TEXT=32,this.CHANGE_SIZE=64,this.CHANGE_MARKER_BACK=128,this.CHANGE_MARKER_FRONT=256,this.CHANGE_FULL=512,this.CHANGE_H_SCROLL=1024,r.implement(this,f),this.updateCharacterSize=function(){this.$textLayer.allowBoldFonts!=this.$allowBoldFonts&&(this.$allowBoldFonts=this.$textLayer.allowBoldFonts,this.setStyle("ace_nobold",!this.$allowBoldFonts)),this.layerConfig.characterWidth=this.characterWidth=this.$textLayer.getCharacterWidth(),this.layerConfig.lineHeight=this.lineHeight=this.$textLayer.getLineHeight(),this.$updatePrintMargin(),o.setStyle(this.scroller.style,"line-height",this.lineHeight+"px")},this.setSession=function(e){this.session&&this.session.doc.off("changeNewLineMode",this.onChangeNewLineMode),(this.session=e)&&this.scrollMargin.top&&e.getScrollTop()<=0&&e.setScrollTop(-this.scrollMargin.top),this.$cursorLayer.setSession(e),this.$markerBack.setSession(e),this.$markerFront.setSession(e),this.$gutterLayer.setSession(e),this.$textLayer.setSession(e),e&&(this.$loop.schedule(this.CHANGE_FULL),this.session.$setFontMetrics(this.$fontMetrics),this.scrollBarH.scrollLeft=this.scrollBarV.scrollTop=null,this.onChangeNewLineMode=this.onChangeNewLineMode.bind(this),this.onChangeNewLineMode(),this.session.doc.on("changeNewLineMode",this.onChangeNewLineMode))},this.updateLines=function(e,t,i){if(void 0===t&&(t=1/0),this.$changedLines?(this.$changedLines.firstRow>e&&(this.$changedLines.firstRow=e),this.$changedLines.lastRow<t&&(this.$changedLines.lastRow=t)):this.$changedLines={firstRow:e,lastRow:t},this.$changedLines.lastRow<this.layerConfig.firstRow){if(!i)return;this.$changedLines.lastRow=this.layerConfig.lastRow}this.$changedLines.firstRow>this.layerConfig.lastRow||this.$loop.schedule(this.CHANGE_LINES)},this.onChangeNewLineMode=function(){this.$loop.schedule(this.CHANGE_TEXT),this.$textLayer.$updateEolChar(),this.session.$bidiHandler.setEolChar(this.$textLayer.EOL_CHAR)},this.onChangeTabSize=function(){this.$loop.schedule(this.CHANGE_TEXT|this.CHANGE_MARKER),this.$textLayer.onChangeTabSize()},this.updateText=function(){this.$loop.schedule(this.CHANGE_TEXT)},this.updateFull=function(e){e?this.$renderChanges(this.CHANGE_FULL,!0):this.$loop.schedule(this.CHANGE_FULL)},this.updateFontSize=function(){this.$textLayer.checkForSizeChanges()},this.$changes=0,this.$updateSizeAsync=function(){this.$loop.pending?this.$size.$dirty=!0:this.onResize()},this.onResize=function(e,t,i,n){if(!(2<this.resizing)){0<this.resizing?this.resizing++:this.resizing=e?1:0;var r=this.container,r=(n=n||r.clientHeight||r.scrollHeight,i=i||r.clientWidth||r.scrollWidth,this.$updateCachedSize(e,t,i,n));if(!this.$size.scrollerHeight||!i&&!n)return this.resizing=0;e&&(this.$gutterLayer.$padding=null),e?this.$renderChanges(r|this.$changes,!0):this.$loop.schedule(r|this.$changes),this.resizing&&(this.resizing=0),this.scrollBarV.scrollLeft=this.scrollBarV.scrollTop=null}},this.$updateCachedSize=function(e,t,i,n){n-=this.$extraHeight||0;var r=0,s=this.$size,a={width:s.width,height:s.height,scrollerHeight:s.scrollerHeight,scrollerWidth:s.scrollerWidth};return n&&(e||s.height!=n)&&(s.height=n,r|=this.CHANGE_SIZE,s.scrollerHeight=s.height,this.$horizScroll&&(s.scrollerHeight-=this.scrollBarH.getHeight()),this.scrollBarV.element.style.bottom=this.scrollBarH.getHeight()+"px",r|=this.CHANGE_SCROLL),i&&(e||s.width!=i)&&(r|=this.CHANGE_SIZE,s.width=i,null==t&&(t=this.$showGutter?this.$gutter.offsetWidth:0),this.gutterWidth=t,o.setStyle(this.scrollBarH.element.style,"left",t+"px"),o.setStyle(this.scroller.style,"left",t+this.margin.left+"px"),s.scrollerWidth=Math.max(0,i-t-this.scrollBarV.getWidth()-this.margin.h),o.setStyle(this.$gutter.style,"left",this.margin.left+"px"),t=this.scrollBarV.getWidth()+"px",o.setStyle(this.scrollBarH.element.style,"right",t),o.setStyle(this.scroller.style,"right",t),o.setStyle(this.scroller.style,"bottom",this.scrollBarH.getHeight()),this.session&&this.session.getUseWrapMode()&&this.adjustWrapLimit()||e)&&(r|=this.CHANGE_FULL),s.$dirty=!i||!n,r&&this._signal("resize",a),r},this.onGutterResize=function(e){e=this.$showGutter?e:0;e!=this.gutterWidth&&(this.$changes|=this.$updateCachedSize(!0,e,this.$size.width,this.$size.height)),this.session.getUseWrapMode()&&this.adjustWrapLimit()||this.$size.$dirty?this.$loop.schedule(this.CHANGE_FULL):this.$computeLayerConfig()},this.adjustWrapLimit=function(){var e=this.$size.scrollerWidth-2*this.$padding,e=Math.floor(e/this.characterWidth);return this.session.adjustWrapLimit(e,this.$showPrintMargin&&this.$printMarginColumn)},this.setAnimatedScroll=function(e){this.setOption("animatedScroll",e)},this.getAnimatedScroll=function(){return this.$animatedScroll},this.setShowInvisibles=function(e){this.setOption("showInvisibles",e),this.session.$bidiHandler.setShowInvisibles(e)},this.getShowInvisibles=function(){return this.getOption("showInvisibles")},this.getDisplayIndentGuides=function(){return this.getOption("displayIndentGuides")},this.setDisplayIndentGuides=function(e){this.setOption("displayIndentGuides",e)},this.setShowPrintMargin=function(e){this.setOption("showPrintMargin",e)},this.getShowPrintMargin=function(){return this.getOption("showPrintMargin")},this.setPrintMarginColumn=function(e){this.setOption("printMarginColumn",e)},this.getPrintMarginColumn=function(){return this.getOption("printMarginColumn")},this.getShowGutter=function(){return this.getOption("showGutter")},this.setShowGutter=function(e){return this.setOption("showGutter",e)},this.getFadeFoldWidgets=function(){return this.getOption("fadeFoldWidgets")},this.setFadeFoldWidgets=function(e){this.setOption("fadeFoldWidgets",e)},this.setHighlightGutterLine=function(e){this.setOption("highlightGutterLine",e)},this.getHighlightGutterLine=function(){return this.getOption("highlightGutterLine")},this.$updatePrintMargin=function(){var e;(this.$showPrintMargin||this.$printMarginEl)&&(this.$printMarginEl||((e=o.createElement("div")).className="ace_layer ace_print-margin-layer",this.$printMarginEl=o.createElement("div"),this.$printMarginEl.className="ace_print-margin",e.appendChild(this.$printMarginEl),this.content.insertBefore(e,this.content.firstChild)),(e=this.$printMarginEl.style).left=Math.round(this.characterWidth*this.$printMarginColumn+this.$padding)+"px",e.visibility=this.$showPrintMargin?"visible":"hidden",this.session)&&-1==this.session.$wrap&&this.adjustWrapLimit()},this.getContainerElement=function(){return this.container},this.getMouseEventTarget=function(){return this.scroller},this.getTextAreaContainer=function(){return this.container},this.$moveTextAreaToCursor=function(){var e,t,i,n,r,s,a;this.$isMousePressed||(e=this.textarea.style,s=this.$composition,this.$keepTextAreaAtCursor||s?(i=this.$cursorLayer.$pixelPos)&&(s&&s.markerRange&&(i=this.$cursorLayer.getPixelPosition(s.markerRange.start,!0)),a=this.layerConfig,t=i.top,i=i.left,t-=a.offset,n=s&&s.useTextareaForIME?this.lineHeight:b?0:1,t<0||t>a.height-n?o.translate(this.textarea,0,0):(a=1,r=this.$size.height-n,s?s.useTextareaForIME?(s=this.textarea.value,a=this.characterWidth*this.session.$getStringScreenWidth(s)[0]):t+=this.lineHeight+2:t+=this.lineHeight,(i-=this.scrollLeft)>this.$size.scrollerWidth-a&&(i=this.$size.scrollerWidth-a),i+=this.gutterWidth+this.margin.left,o.setStyle(e,"height",n+"px"),o.setStyle(e,"width",a+"px"),o.translate(this.textarea,Math.min(i,this.$size.scrollerWidth-a),Math.min(t,r)))):o.translate(this.textarea,-100,0))},this.getFirstVisibleRow=function(){return this.layerConfig.firstRow},this.getFirstFullyVisibleRow=function(){return this.layerConfig.firstRow+(0===this.layerConfig.offset?0:1)},this.getLastFullyVisibleRow=function(){var e=this.layerConfig,t=e.lastRow;return this.session.documentToScreenRow(t,0)*e.lineHeight-this.session.getScrollTop()>e.height-e.lineHeight?t-1:t},this.getLastVisibleRow=function(){return this.layerConfig.lastRow},this.$padding=null,this.setPadding=function(e){this.$padding=e,this.$textLayer.setPadding(e),this.$cursorLayer.setPadding(e),this.$markerFront.setPadding(e),this.$markerBack.setPadding(e),this.$loop.schedule(this.CHANGE_FULL),this.$updatePrintMargin()},this.setScrollMargin=function(e,t,i,n){var r=this.scrollMargin;r.top=0|e,r.bottom=0|t,r.right=0|n,r.left=0|i,r.v=r.top+r.bottom,r.h=r.left+r.right,r.top&&this.scrollTop<=0&&this.session&&this.session.setScrollTop(-r.top),this.updateFull()},this.setMargin=function(e,t,i,n){var r=this.margin;r.top=0|e,r.bottom=0|t,r.right=0|n,r.left=0|i,r.v=r.top+r.bottom,r.h=r.left+r.right,this.$updateCachedSize(!0,this.gutterWidth,this.$size.width,this.$size.height),this.updateFull()},this.getHScrollBarAlwaysVisible=function(){return this.$hScrollBarAlwaysVisible},this.setHScrollBarAlwaysVisible=function(e){this.setOption("hScrollBarAlwaysVisible",e)},this.getVScrollBarAlwaysVisible=function(){return this.$vScrollBarAlwaysVisible},this.setVScrollBarAlwaysVisible=function(e){this.setOption("vScrollBarAlwaysVisible",e)},this.$updateScrollBarV=function(){var e=this.layerConfig.maxHeight,t=this.$size.scrollerHeight;!this.$maxLines&&this.$scrollPastEnd&&(e-=(t-this.lineHeight)*this.$scrollPastEnd,this.scrollTop>e-t)&&(e=this.scrollTop+t,this.scrollBarV.scrollTop=null),this.scrollBarV.setScrollHeight(e+this.scrollMargin.v),this.scrollBarV.setScrollTop(this.scrollTop+this.scrollMargin.top)},this.$updateScrollBarH=function(){this.scrollBarH.setScrollWidth(this.layerConfig.width+2*this.$padding+this.scrollMargin.h),this.scrollBarH.setScrollLeft(this.scrollLeft+this.scrollMargin.left)},this.$frozen=!1,this.freeze=function(){this.$frozen=!0},this.unfreeze=function(){this.$frozen=!1},this.$renderChanges=function(e,t){if(this.$changes&&(e|=this.$changes,this.$changes=0),this.session&&this.container.offsetWidth&&!this.$frozen&&(e||t)){if(this.$size.$dirty)return this.$changes|=e,this.onResize(!0);this.lineHeight||this.$textLayer.checkForSizeChanges(),this._signal("beforeRender",e),this.session&&this.session.$bidiHandler&&this.session.$bidiHandler.updateCharacterWidths(this.$fontMetrics);var i,n,t=this.layerConfig;(e&this.CHANGE_FULL||e&this.CHANGE_SIZE||e&this.CHANGE_TEXT||e&this.CHANGE_LINES||e&this.CHANGE_SCROLL||e&this.CHANGE_H_SCROLL)&&(e|=this.$computeLayerConfig()|this.$loop.clear(),t.firstRow!=this.layerConfig.firstRow&&t.firstRowScreen==this.layerConfig.firstRowScreen&&0<(i=this.scrollTop+(t.firstRow-this.layerConfig.firstRow)*this.lineHeight)&&(this.scrollTop=i,e=(e|=this.CHANGE_SCROLL)|(this.$computeLayerConfig()|this.$loop.clear())),t=this.layerConfig,this.$updateScrollBarV(),e&this.CHANGE_H_SCROLL&&this.$updateScrollBarH(),o.translate(this.content,-this.scrollLeft,-t.offset),i=t.width+2*this.$padding+"px",n=t.minHeight+"px",o.setStyle(this.content.style,"width",i),o.setStyle(this.content.style,"height",n)),e&this.CHANGE_H_SCROLL&&(o.translate(this.content,-this.scrollLeft,-t.offset),this.scroller.className=this.scrollLeft<=0?"ace_scroller":"ace_scroller ace_scroll-left"),e&this.CHANGE_FULL?(this.$changedLines=null,this.$textLayer.update(t),this.$showGutter&&this.$gutterLayer.update(t),this.$markerBack.update(t),this.$markerFront.update(t),this.$cursorLayer.update(t),this.$moveTextAreaToCursor()):e&this.CHANGE_SCROLL?(this.$changedLines=null,e&this.CHANGE_TEXT||e&this.CHANGE_LINES?this.$textLayer.update(t):this.$textLayer.scrollLines(t),this.$showGutter&&(e&this.CHANGE_GUTTER||e&this.CHANGE_LINES?this.$gutterLayer.update(t):this.$gutterLayer.scrollLines(t)),this.$markerBack.update(t),this.$markerFront.update(t),this.$cursorLayer.update(t),this.$moveTextAreaToCursor()):(e&this.CHANGE_TEXT?(this.$changedLines=null,this.$textLayer.update(t),this.$showGutter&&this.$gutterLayer.update(t)):e&this.CHANGE_LINES?(this.$updateLines()||e&this.CHANGE_GUTTER&&this.$showGutter)&&this.$gutterLayer.update(t):e&this.CHANGE_TEXT||e&this.CHANGE_GUTTER?this.$showGutter&&this.$gutterLayer.update(t):e&this.CHANGE_CURSOR&&this.$highlightGutterLine&&this.$gutterLayer.updateLineHighlight(t),e&this.CHANGE_CURSOR&&(this.$cursorLayer.update(t),this.$moveTextAreaToCursor()),e&(this.CHANGE_MARKER|this.CHANGE_MARKER_FRONT)&&this.$markerFront.update(t),e&(this.CHANGE_MARKER|this.CHANGE_MARKER_BACK)&&this.$markerBack.update(t)),this._signal("afterRender",e)}else this.$changes|=e},this.$autosize=function(){var e=this.session.getScreenLength()*this.lineHeight,t=this.$maxLines*this.lineHeight,i=Math.min(t,Math.max((this.$minLines||1)*this.lineHeight,e))+this.scrollMargin.v+(this.$extraHeight||0);this.$horizScroll&&(i+=this.scrollBarH.getHeight());t=!((i=this.$maxPixelHeight&&i>this.$maxPixelHeight?this.$maxPixelHeight:i)<=2*this.lineHeight)&&t<e;i==this.desiredHeight&&this.$size.height==this.desiredHeight&&t==this.$vScroll||(t!=this.$vScroll&&(this.$vScroll=t,this.scrollBarV.setVisible(t)),e=this.container.clientWidth,this.container.style.height=i+"px",this.$updateCachedSize(!0,this.$gutterWidth,e,i),this.desiredHeight=i,this._signal("autosize"))},this.$computeLayerConfig=function(){var e,t=this.session,i=this.$size,n=i.height<=2*this.lineHeight,r=this.session.getScreenLength()*this.lineHeight,s=this.$getLongestLine(),a=!n&&(this.$hScrollBarAlwaysVisible||i.scrollerWidth-s-2*this.$padding<0),o=this.$horizScroll!==a,a=(o&&(this.$horizScroll=a,this.scrollBarH.setVisible(a)),this.$vScroll),l=(this.$maxLines&&1<this.lineHeight&&this.$autosize(),i.scrollerHeight+this.lineHeight),c=!this.$maxLines&&this.$scrollPastEnd?(i.scrollerHeight-this.lineHeight)*this.$scrollPastEnd:0,h=(r+=c,this.scrollMargin),n=(this.session.setScrollTop(Math.max(-h.top,Math.min(this.scrollTop,r-i.scrollerHeight+h.bottom))),this.session.setScrollLeft(Math.max(-h.left,Math.min(this.scrollLeft,s+2*this.$padding-i.scrollerWidth+h.right))),!n&&(this.$vScrollBarAlwaysVisible||i.scrollerHeight-r+c<0||this.scrollTop>h.top)),c=a!==n,h=(c&&(this.$vScroll=n,this.scrollBarV.setVisible(n)),this.scrollTop%this.lineHeight),a=Math.ceil(l/this.lineHeight)-1,a=(n=Math.max(0,Math.round((this.scrollTop-h)/this.lineHeight)))+a,u=this.lineHeight,n=t.screenToDocumentRow(n,0),d=t.getFoldLine(n),t=(d&&(n=d.start.row),d=t.documentToScreenRow(n,0),e=t.getRowLength(n)*u,a=Math.min(t.screenToDocumentRow(a,0),t.getLength()-1),l=i.scrollerHeight+t.getRowLength(a)*u+e,h=this.scrollTop-d*u,0);return this.layerConfig.width==s&&!o||(t=this.CHANGE_H_SCROLL),(o||c)&&(t|=this.$updateCachedSize(!0,this.gutterWidth,i.width,i.height),this._signal("scrollbarVisibilityChanged"),c)&&(s=this.$getLongestLine()),this.layerConfig={width:s,padding:this.$padding,firstRow:n,firstRowScreen:d,lastRow:a,lineHeight:u,characterWidth:this.characterWidth,minHeight:l,maxHeight:r,offset:h,gutterOffset:u?Math.max(0,Math.ceil((h+i.height-i.scrollerHeight)/u)):0,height:this.$size.scrollerHeight},this.session.$bidiHandler&&this.session.$bidiHandler.setContentWidth(s-this.$padding),t},this.$updateLines=function(){if(this.$changedLines){var e=this.$changedLines.firstRow,t=this.$changedLines.lastRow,i=(this.$changedLines=null,this.layerConfig);if(!(e>i.lastRow+1||t<i.firstRow)){if(t!==1/0)return this.$textLayer.updateLines(i,e,t),!0;this.$showGutter&&this.$gutterLayer.update(i),this.$textLayer.update(i)}}},this.$getLongestLine=function(){var e=this.session.getScreenWidth();return this.showInvisibles&&!this.session.$useWrapMode&&(e+=1),this.$textLayer&&e>this.$textLayer.MAX_LINE_LENGTH&&(e=this.$textLayer.MAX_LINE_LENGTH+30),Math.max(this.$size.scrollerWidth-2*this.$padding,Math.round(e*this.characterWidth))},this.updateFrontMarkers=function(){this.$markerFront.setMarkers(this.session.getMarkers(!0)),this.$loop.schedule(this.CHANGE_MARKER_FRONT)},this.updateBackMarkers=function(){this.$markerBack.setMarkers(this.session.getMarkers()),this.$loop.schedule(this.CHANGE_MARKER_BACK)},this.addGutterDecoration=function(e,t){this.$gutterLayer.addGutterDecoration(e,t)},this.removeGutterDecoration=function(e,t){this.$gutterLayer.removeGutterDecoration(e,t)},this.updateBreakpoints=function(e){this.$loop.schedule(this.CHANGE_GUTTER)},this.setAnnotations=function(e){this.$gutterLayer.setAnnotations(e),this.$loop.schedule(this.CHANGE_GUTTER)},this.updateCursor=function(){this.$loop.schedule(this.CHANGE_CURSOR)},this.hideCursor=function(){this.$cursorLayer.hideCursor()},this.showCursor=function(){this.$cursorLayer.showCursor()},this.scrollSelectionIntoView=function(e,t,i){this.scrollCursorIntoView(e,i),this.scrollCursorIntoView(t,i)},this.scrollCursorIntoView=function(e,t,i){var n,r,s;0!==this.$size.scrollerHeight&&(n=(e=this.$cursorLayer.getPixelPosition(e)).left,e=e.top,s=i&&i.top||0,i=i&&i.bottom||0,e<(r=this.$scrollAnimation?this.session.getScrollTop():this.scrollTop)+s?(t&&r+s>e+this.lineHeight&&(e-=t*this.$size.scrollerHeight),0===e&&(e=-this.scrollMargin.top),this.session.setScrollTop(e)):r+this.$size.scrollerHeight-i<e+this.lineHeight&&(t&&r+this.$size.scrollerHeight-i<e-this.lineHeight&&(e+=t*this.$size.scrollerHeight),this.session.setScrollTop(e+this.lineHeight+i-this.$size.scrollerHeight)),n<(s=this.scrollLeft)?(n<this.$padding+2*this.layerConfig.characterWidth&&(n=-this.scrollMargin.left),this.session.setScrollLeft(n)):s+this.$size.scrollerWidth<n+this.characterWidth?this.session.setScrollLeft(Math.round(n+this.characterWidth-this.$size.scrollerWidth)):s<=this.$padding&&n-s<this.characterWidth&&this.session.setScrollLeft(0))},this.getScrollTop=function(){return this.session.getScrollTop()},this.getScrollLeft=function(){return this.session.getScrollLeft()},this.getScrollTopRow=function(){return this.scrollTop/this.lineHeight},this.getScrollBottomRow=function(){return Math.max(0,Math.floor((this.scrollTop+this.$size.scrollerHeight)/this.lineHeight)-1)},this.scrollToRow=function(e){this.session.setScrollTop(e*this.lineHeight)},this.alignCursor=function(e,t){var e=this.$cursorLayer.getPixelPosition(e="number"==typeof e?{row:e,column:0}:e),i=this.$size.scrollerHeight-this.lineHeight,e=e.top-i*(t||0);return this.session.setScrollTop(e),e},this.STEPS=8,this.$calcSteps=function(e,t){for(var i,n,r=0,s=this.STEPS,a=[],r=0;r<s;++r)a.push((i=r/this.STEPS,(t-(n=e))*(Math.pow(i-1,3)+1)+n));return a},this.scrollToLine=function(e,t,i,n){e=this.$cursorLayer.getPixelPosition({row:e,column:0}).top,t&&(e-=this.$size.scrollerHeight/2),t=this.scrollTop;this.session.setScrollTop(e),!1!==i&&this.animateScrolling(t,n)},this.animateScrolling=function(e,t){var i=this.scrollTop;if(this.$animatedScroll){var n=this;if(e!=i){if(this.$scrollAnimation){var r=this.$scrollAnimation.steps;if(r.length&&(e=r[0])==i)return}var s=n.$calcSteps(e,i);this.$scrollAnimation={from:e,to:i,steps:s},clearInterval(this.$timer),n.session.setScrollTop(s.shift()),n.session.$scrollTop=i,this.$timer=setInterval(function(){if(!n.session)return clearInterval(n.$timer);s.length?(n.session.setScrollTop(s.shift()),n.session.$scrollTop=i):null!=i?(n.session.$scrollTop=-1,n.session.setScrollTop(i),i=null):(n.$timer=clearInterval(n.$timer),n.$scrollAnimation=null,t&&t())},10)}}},this.scrollToY=function(e){this.scrollTop!==e&&(this.$loop.schedule(this.CHANGE_SCROLL),this.scrollTop=e)},this.scrollToX=function(e){this.scrollLeft!==e&&(this.scrollLeft=e),this.$loop.schedule(this.CHANGE_H_SCROLL)},this.scrollTo=function(e,t){this.session.setScrollTop(t),this.session.setScrollLeft(t)},this.scrollBy=function(e,t){t&&this.session.setScrollTop(this.session.getScrollTop()+t),e&&this.session.setScrollLeft(this.session.getScrollLeft()+e)},this.isScrollableBy=function(e,t){return t<0&&this.session.getScrollTop()>=1-this.scrollMargin.top||0<t&&this.session.getScrollTop()+this.$size.scrollerHeight-this.layerConfig.maxHeight<-1+this.scrollMargin.bottom||e<0&&this.session.getScrollLeft()>=1-this.scrollMargin.left||0<e&&this.session.getScrollLeft()+this.$size.scrollerWidth-this.layerConfig.width<-1+this.scrollMargin.right||void 0},this.pixelToScreenCoordinates=function(e,t){this.$hasCssTransforms?(n={top:0,left:0},e=(i=this.$fontMetrics.transformCoordinates([e,t]))[1]-this.gutterWidth-this.margin.left,t=i[0]):n=this.scroller.getBoundingClientRect();var i=e+this.scrollLeft-n.left-this.$padding,e=i/this.characterWidth,t=Math.floor((t+this.scrollTop-n.top)/this.lineHeight),n=this.$blockCursor?Math.floor(e):Math.round(e);return{row:t,column:n,side:0<e-n?1:-1,offsetX:i}},this.screenToTextCoordinates=function(e,t){this.$hasCssTransforms?(i={top:0,left:0},e=(n=this.$fontMetrics.transformCoordinates([e,t]))[1]-this.gutterWidth-this.margin.left,t=n[0]):i=this.scroller.getBoundingClientRect();var i,n=e+this.scrollLeft-i.left-this.$padding,e=n/this.characterWidth,e=this.$blockCursor?Math.floor(e):Math.round(e),t=Math.floor((t+this.scrollTop-i.top)/this.lineHeight);return this.session.screenToDocumentPosition(t,Math.max(e,0),n)},this.textToScreenCoordinates=function(e,t){var i=this.scroller.getBoundingClientRect(),t=this.session.documentToScreenPosition(e,t),e=this.$padding+(this.session.$bidiHandler.isBidiRow(t.row,e)?this.session.$bidiHandler.getPosLeft(t.column):Math.round(t.column*this.characterWidth)),t=t.row*this.lineHeight;return{pageX:i.left+e-this.scrollLeft,pageY:i.top+t-this.scrollTop}},this.visualizeFocus=function(){o.addCssClass(this.container,"ace_focus")},this.visualizeBlur=function(){o.removeCssClass(this.container,"ace_focus")},this.showComposition=function(e){(this.$composition=e).cssText||(e.cssText=this.textarea.style.cssText),null==e.useTextareaForIME&&(e.useTextareaForIME=this.$useTextareaForIME),this.$useTextareaForIME?(o.addCssClass(this.textarea,"ace_composition"),this.textarea.style.cssText="",this.$moveTextAreaToCursor(),this.$cursorLayer.element.style.display="none"):e.markerId=this.session.addMarker(e.markerRange,"ace_composition_marker","text")},this.setCompositionText=function(e){var t=this.session.selection.cursor;this.addToken(e,"composition_placeholder",t.row,t.column),this.$moveTextAreaToCursor()},this.hideComposition=function(){var e;this.$composition&&(this.$composition.markerId&&this.session.removeMarker(this.$composition.markerId),o.removeCssClass(this.textarea,"ace_composition"),this.textarea.style.cssText=this.$composition.cssText,e=this.session.selection.cursor,this.removeExtraToken(e.row,e.column),this.$composition=null,this.$cursorLayer.element.style.display="")},this.addToken=function(e,t,i,n){var r=this.session,s=(r.bgTokenizer.lines[i]=null,{type:t,value:e}),a=r.getTokens(i);if(null==n)a.push(s);else for(var o=0,l=0;l<a.length;l++){var c=a[l];if(n<=(o+=c.value.length)){var h=c.value.length-(o-n),u=c.value.slice(0,h),h=c.value.slice(h);a.splice(l,1,{type:c.type,value:u},s,{type:c.type,value:h});break}}this.updateLines(i,i)},this.removeExtraToken=function(e,t){this.updateLines(e,e)},this.setTheme=function(i,n){function e(e){if(r.$themeId!=i)return n&&n();if(!e||!e.cssClass)throw new Error("couldn't load module "+i+" or it didn't call define");e.$id&&(r.$themeId=e.$id),o.importCssString(e.cssText,e.cssClass,r.container),r.theme&&o.removeCssClass(r.container,r.theme.cssClass);var t="padding"in e?e.padding:"padding"in(r.theme||{})?4:r.$padding;r.$padding&&t!=r.$padding&&r.setPadding(t),r.$theme=e.cssClass,r.theme=e,o.addCssClass(r.container,e.cssClass),o.setCssClass(r.container,"ace_dark",e.isDark),r.$size&&(r.$size.width=0,r.$updateSizeAsync()),r._dispatchEvent("themeLoaded",{theme:e}),n&&n()}var t,r=this;this.$themeId=i,r._dispatchEvent("themeChange",{theme:i}),i&&"string"!=typeof i?e(i):(t=i||this.$options.theme.initialValue,s.loadModule(["theme",t],e))},this.getTheme=function(){return this.$themeId},this.setStyle=function(e,t){o.setCssClass(this.container,e,!1!==t)},this.unsetStyle=function(e){o.removeCssClass(this.container,e)},this.setCursorStyle=function(e){o.setStyle(this.scroller.style,"cursor",e)},this.setMouseCursor=function(e){o.setStyle(this.scroller.style,"cursor",e)},this.attachToShadowRoot=function(){o.importCssString(m,"ace_editor.css",this.container)},this.destroy=function(){this.freeze(),this.$fontMetrics.destroy(),this.$cursorLayer.destroy(),this.removeAllListeners(),this.container.textContent=""}}).call(n.prototype),s.defineOptions(n.prototype,"renderer",{animatedScroll:{initialValue:!1},showInvisibles:{set:function(e){this.$textLayer.setShowInvisibles(e)&&this.$loop.schedule(this.CHANGE_TEXT)},initialValue:!1},showPrintMargin:{set:function(){this.$updatePrintMargin()},initialValue:!0},printMarginColumn:{set:function(){this.$updatePrintMargin()},initialValue:80},printMargin:{set:function(e){"number"==typeof e&&(this.$printMarginColumn=e),this.$showPrintMargin=!!e,this.$updatePrintMargin()},get:function(){return this.$showPrintMargin&&this.$printMarginColumn}},showGutter:{set:function(e){this.$gutter.style.display=e?"block":"none",this.$loop.schedule(this.CHANGE_FULL),this.onGutterResize()},initialValue:!0},fadeFoldWidgets:{set:function(e){o.setCssClass(this.$gutter,"ace_fade-fold-widgets",e)},initialValue:!1},showFoldWidgets:{set:function(e){this.$gutterLayer.setShowFoldWidgets(e),this.$loop.schedule(this.CHANGE_GUTTER)},initialValue:!0},displayIndentGuides:{set:function(e){this.$textLayer.setDisplayIndentGuides(e)&&this.$loop.schedule(this.CHANGE_TEXT)},initialValue:!0},highlightGutterLine:{set:function(e){this.$gutterLayer.setHighlightGutterLine(e),this.$loop.schedule(this.CHANGE_GUTTER)},initialValue:!0},hScrollBarAlwaysVisible:{set:function(e){this.$hScrollBarAlwaysVisible&&this.$horizScroll||this.$loop.schedule(this.CHANGE_SCROLL)},initialValue:!1},vScrollBarAlwaysVisible:{set:function(e){this.$vScrollBarAlwaysVisible&&this.$vScroll||this.$loop.schedule(this.CHANGE_SCROLL)},initialValue:!1},fontSize:{set:function(e){"number"==typeof e&&(e+="px"),this.container.style.fontSize=e,this.updateFontSize()},initialValue:12},fontFamily:{set:function(e){this.container.style.fontFamily=e,this.updateFontSize()}},maxLines:{set:function(e){this.updateFull()}},minLines:{set:function(e){this.$minLines<562949953421311||(this.$minLines=0),this.updateFull()}},maxPixelHeight:{set:function(e){this.updateFull()},initialValue:0},scrollPastEnd:{set:function(e){this.$scrollPastEnd!=(e=+e||0)&&(this.$scrollPastEnd=e,this.$loop.schedule(this.CHANGE_SCROLL))},initialValue:0,handlesSet:!0},fixedWidthGutter:{set:function(e){this.$gutterLayer.$fixedWidth=!!e,this.$loop.schedule(this.CHANGE_GUTTER)}},theme:{set:function(e){this.setTheme(e)},get:function(){return this.$themeId||this.theme},initialValue:"./theme/textmate",handlesSet:!0},hasCssTransforms:{},useTextareaForIME:{initialValue:!y.isMobile&&!y.isIE}}),t.VirtualRenderer=n}),ace.define("ace/worker/worker_client",["require","exports","module","ace/lib/oop","ace/lib/net","ace/lib/event_emitter","ace/config"],function(o,e,t){"use strict";function l(e){var t;return"undefined"==typeof Worker?{postMessage:function(){},terminate:function(){}}:u.get("loadWorkerFromBlob")?(t=function(t){t="importScripts('"+n.qualifyURL(t)+"');";try{return new Blob([t],{type:"application/javascript"})}catch(e){var i=new(window.BlobBuilder||window.WebKitBlobBuilder||window.MozBlobBuilder);return i.append(t),i.getBlob("application/javascript")}}(e),t=(window.URL||window.webkitURL).createObjectURL(t),new Worker(t)):new Worker(e)}function c(e){e.postMessage||(e=this.$createWorkerFromOldConfig.apply(this,arguments)),this.$worker=e,this.$sendDeltaQueue=this.$sendDeltaQueue.bind(this),this.changeListener=this.changeListener.bind(this),this.onMessage=this.onMessage.bind(this),this.callbackId=1,this.callbacks={},this.$worker.onmessage=this.onMessage}var i=o("../lib/oop"),n=o("../lib/net"),h=o("../lib/event_emitter").EventEmitter,u=o("../config");(function(){i.implement(this,h),this.$createWorkerFromOldConfig=function(e,t,i,n,r){var s,a;return o.nameToUrl&&!o.toUrl&&(o.toUrl=o.nameToUrl),u.get("packaged")||!o.toUrl?n=n||u.moduleUrl(t,"worker"):(s=this.$normalizePath,n=n||s(o.toUrl("ace/worker/worker.js",null,"_")),a={},e.forEach(function(e){a[e]=s(o.toUrl(e,null,"_").replace(/(\.js)?(\?.*)?$/,""))})),this.$worker=l(n),r&&this.send("importScripts",r),this.$worker.postMessage({init:!0,tlns:a,module:t,classname:i}),this.$worker},this.onMessage=function(e){var t=e.data;switch(t.type){case"event":this._signal(t.name,{data:t.data});break;case"call":var i=this.callbacks[t.id];i&&(i(t.data),delete this.callbacks[t.id]);break;case"error":this.reportError(t.data);break;case"log":window.console&&console.log&&console.log.apply(console,t.data)}},this.reportError=function(e){window.console&&console.error&&console.error(e)},this.$normalizePath=function(e){return n.qualifyURL(e)},this.terminate=function(){this._signal("terminate",{}),this.deltaQueue=null,this.$worker.terminate(),this.$worker=null,this.$doc&&this.$doc.off("change",this.changeListener),this.$doc=null},this.send=function(e,t){this.$worker.postMessage({command:e,args:t})},this.call=function(e,t,i){var n;i&&(n=this.callbackId++,this.callbacks[n]=i,t.push(n)),this.send(e,t)},this.emit=function(e,t){try{t.data&&t.data.err&&(t.data.err={message:t.data.err.message,stack:t.data.err.stack,code:t.data.err.code}),this.$worker.postMessage({event:e,data:{data:t.data}})}catch(e){console.error(e.stack)}},this.attachToDocument=function(e){this.$doc&&this.terminate(),this.$doc=e,this.call("setValue",[e.getValue()]),e.on("change",this.changeListener)},this.changeListener=function(e){this.deltaQueue||(this.deltaQueue=[],setTimeout(this.$sendDeltaQueue,0)),"insert"==e.action?this.deltaQueue.push(e.start,e.lines):this.deltaQueue.push(e.start,e.end)},this.$sendDeltaQueue=function(){var e=this.deltaQueue;e&&(this.deltaQueue=null,50<e.length&&e.length>this.$doc.getLength()>>1?this.call("setValue",[this.$doc.getValue()]):this.emit("change",{data:e}))}}).call(c.prototype);e.UIWorkerClient=function(e,t,i){var n=null,r=!1,s=Object.create(h),a=[],o=new c({messageBuffer:a,terminate:function(){},postMessage:function(e){a.push(e),n&&(r?setTimeout(l):l())}}),l=(o.setEmitSync=function(e){r=e},function(){var e=a.shift();e.command?n[e.command].apply(n,e.args):e.event&&s._signal(e.event,e.data)});return s.postMessage=function(e){o.onMessage({data:e})},s.callback=function(e,t){this.postMessage({type:"call",id:t,data:e})},s.emit=function(e,t){this.postMessage({type:"event",name:e,data:t})},u.loadModule(["worker",t],function(e){for(n=new e[i](s);a.length;)l()}),o},e.WorkerClient=c,e.createWorker=l}),ace.define("ace/placeholder",["require","exports","module","ace/range","ace/lib/event_emitter","ace/lib/oop"],function(e,t,i){"use strict";function n(e,t,i,n,r,s){var a=this,t=(this.length=t,this.session=e,this.doc=e.getDocument(),this.mainClass=r,this.othersClass=s,this.$onUpdate=this.onUpdate.bind(this),this.doc.on("change",this.$onUpdate),this.$others=n,this.$onCursorChange=function(){setTimeout(function(){a.onCursorChange()})},this.$pos=i,e.getUndoManager().$undoStack||e.getUndoManager().$undostack||{length:-1});this.$undoStackDepth=t.length,this.setup(),e.selection.on("changeCursor",this.$onCursorChange)}var l=e("./range").Range,r=e("./lib/event_emitter").EventEmitter,s=e("./lib/oop");(function(){s.implement(this,r),this.setup=function(){var t=this,i=this.doc,e=this.session,n=(this.selectionBefore=e.selection.toJSON(),e.selection.inMultiSelectMode&&e.selection.toSingleRange(),this.pos=i.createAnchor(this.$pos.row,this.$pos.column),this.pos);n.$insertRight=!0,n.detach(),n.markerId=e.addMarker(new l(n.row,n.column,n.row,n.column+this.length),this.mainClass,null,!1),this.others=[],this.$others.forEach(function(e){e=i.createAnchor(e.row,e.column);e.$insertRight=!0,e.detach(),t.others.push(e)}),e.setUndoSelect(!1)},this.showOtherMarkers=function(){var t,i;this.othersActive||(t=this.session,(i=this).othersActive=!0,this.others.forEach(function(e){e.markerId=t.addMarker(new l(e.row,e.column,e.row,e.column+i.length),i.othersClass,null,!1)}))},this.hideOtherMarkers=function(){if(this.othersActive){this.othersActive=!1;for(var e=0;e<this.others.length;e++)this.session.removeMarker(this.others[e].markerId)}},this.onUpdate=function(e){if(this.$updating)return this.updateAnchors(e);var t=e;if(t.start.row===t.end.row&&t.start.row===this.pos.row){this.$updating=!0;var i="insert"===e.action?t.end.column-t.start.column:t.start.column-t.end.column,n=t.start.column>=this.pos.column&&t.start.column<=this.pos.column+this.length+1,r=t.start.column-this.pos.column;if(this.updateAnchors(e),n&&(this.length+=i),n&&!this.session.$fromUndo)if("insert"===e.action)for(var s=this.others.length-1;0<=s;s--){var a={row:(o=this.others[s]).row,column:o.column+r};this.doc.insertMergedLines(a,e.lines)}else if("remove"===e.action)for(s=this.others.length-1;0<=s;s--){var o,a={row:(o=this.others[s]).row,column:o.column+r};this.doc.remove(new l(a.row,a.column,a.row,a.column-i))}this.$updating=!1,this.updateMarkers()}},this.updateAnchors=function(e){this.pos.onChange(e);for(var t=this.others.length;t--;)this.others[t].onChange(e);this.updateMarkers()},this.updateMarkers=function(){if(!this.$updating){var i=this,n=this.session,e=function(e,t){n.removeMarker(e.markerId),e.markerId=n.addMarker(new l(e.row,e.column,e.row,e.column+i.length),t,null,!1)};e(this.pos,this.mainClass);for(var t=this.others.length;t--;)e(this.others[t],this.othersClass)}},this.onCursorChange=function(e){var t;!this.$updating&&this.session&&((t=this.session.selection.getCursor()).row===this.pos.row&&t.column>=this.pos.column&&t.column<=this.pos.column+this.length?(this.showOtherMarkers(),this._emit("cursorEnter",e)):(this.hideOtherMarkers(),this._emit("cursorLeave",e)))},this.detach=function(){this.session.removeMarker(this.pos&&this.pos.markerId),this.hideOtherMarkers(),this.doc.off("change",this.$onUpdate),this.session.selection.off("changeCursor",this.$onCursorChange),this.session.setUndoSelect(!0),this.session=null},this.cancel=function(){if(-1!==this.$undoStackDepth){for(var e=this.session.getUndoManager(),t=(e.$undoStack||e.$undostack).length-this.$undoStackDepth,i=0;i<t;i++)e.undo(this.session,!0);this.selectionBefore&&this.session.selection.fromJSON(this.selectionBefore)}}}).call(n.prototype),t.PlaceHolder=n}),ace.define("ace/mouse/multi_select_handler",["require","exports","module","ace/lib/event","ace/lib/useragent"],function(e,t,i){function _(e,t){return e.row==t.row&&e.column==t.column}var C=e("../lib/event"),A=e("../lib/useragent");t.onMouseDown=function(e){var t=e.domEvent,i=t.altKey,n=t.shiftKey,r=t.ctrlKey,s=e.getAccelKey(),a=e.getButton();if(r&&A.isMac&&(a=t.button),e.editor.inMultiSelectMode&&2==a)e.editor.textInput.onContextMenu(e.domEvent);else if(r||i||s){if(0===a){var o,l,c,h,u,d,p,g,f=e.editor,m=f.selection,y=f.inMultiSelectMode,b=e.getDocumentPosition(),v=m.getCursor(),v=e.inSelection()||m.isEmpty()&&_(b,v),x=e.x,w=e.y,k=f.session,T=f.renderer.pixelToScreenCoordinates(x,w),S=T;if(f.$mouseHandler.$enableJumpToDef)r&&i||s&&i?o=n?"block":"add":i&&f.$blockSelectEnabled&&(o="block");else if(s&&!i){if(o="add",!y&&n)return}else i&&f.$blockSelectEnabled&&(o="block");if(o&&A.isMac&&t.ctrlKey&&f.$mouseHandler.cancelContextMenu(),"add"==o)!y&&v||(y||(l=m.toOrientedRange(),f.addSelectionMarker(l)),c=m.rangeList.rangeAtPoint(b),f.inVirtualSelectionMode=!0,n&&(c=null,l=m.ranges[0]||l,f.removeSelectionMarker(l)),f.once("mouseup",function(){var e=m.toOrientedRange();c&&e.isEmpty()&&_(c.cursor,e.cursor)?m.substractPoint(e.cursor):(n?m.substractPoint(l.cursor):l&&(f.removeSelectionMarker(l),m.addRange(l)),m.addRange(e)),f.inVirtualSelectionMode=!1}));else if("block"==o)return e.stop(),f.inVirtualSelectionMode=!0,u=[],d=function(){var e=f.renderer.pixelToScreenCoordinates(x,w),t=k.screenToDocumentPosition(e.row,e.column,e.offsetX);_(S,e)&&_(t,m.lead)||(S=e,f.selection.moveToPosition(t),f.renderer.scrollCursorIntoView(),f.removeSelectionMarkers(u),u=m.rectangularRangeBlock(S,T),f.$mouseHandler.$clickSelection&&1==u.length&&u[0].isEmpty()&&(u[0]=f.$mouseHandler.$clickSelection.clone()),u.forEach(f.addSelectionMarker,f),f.updateSelectionMarkers())},y&&!s?m.toSingleRange():!y&&s&&(h=m.toOrientedRange(),f.addSelectionMarker(h)),n?T=k.documentToScreenPosition(m.lead):m.moveToPosition(b),S={row:-1,column:-1},p=d,C.capture(f.container,function(e){x=e.clientX,w=e.clientY},function(e){d(),clearInterval(g),f.removeSelectionMarkers(u),u.length||(u=[m.toOrientedRange()]),h&&(f.removeSelectionMarker(h),m.toSingleRange(h));for(var t=0;t<u.length;t++)m.addRange(u[t]);f.inVirtualSelectionMode=!1,f.$mouseHandler.$clickSelection=null}),g=setInterval(function(){p()},20),e.preventDefault()}}else 0===a&&e.editor.inMultiSelectMode&&e.editor.exitMultiSelectMode()}}),ace.define("ace/commands/multi_select_commands",["require","exports","module","ace/keyboard/hash_handler"],function(e,t,i){t.defaultCommands=[{name:"addCursorAbove",description:"Add cursor above",exec:function(e){e.selectMoreLines(-1)},bindKey:{win:"Ctrl-Alt-Up",mac:"Ctrl-Alt-Up"},scrollIntoView:"cursor",readOnly:!0},{name:"addCursorBelow",description:"Add cursor below",exec:function(e){e.selectMoreLines(1)},bindKey:{win:"Ctrl-Alt-Down",mac:"Ctrl-Alt-Down"},scrollIntoView:"cursor",readOnly:!0},{name:"addCursorAboveSkipCurrent",description:"Add cursor above (skip current)",exec:function(e){e.selectMoreLines(-1,!0)},bindKey:{win:"Ctrl-Alt-Shift-Up",mac:"Ctrl-Alt-Shift-Up"},scrollIntoView:"cursor",readOnly:!0},{name:"addCursorBelowSkipCurrent",description:"Add cursor below (skip current)",exec:function(e){e.selectMoreLines(1,!0)},bindKey:{win:"Ctrl-Alt-Shift-Down",mac:"Ctrl-Alt-Shift-Down"},scrollIntoView:"cursor",readOnly:!0},{name:"selectMoreBefore",description:"Select more before",exec:function(e){e.selectMore(-1)},bindKey:{win:"Ctrl-Alt-Left",mac:"Ctrl-Alt-Left"},scrollIntoView:"cursor",readOnly:!0},{name:"selectMoreAfter",description:"Select more after",exec:function(e){e.selectMore(1)},bindKey:{win:"Ctrl-Alt-Right",mac:"Ctrl-Alt-Right"},scrollIntoView:"cursor",readOnly:!0},{name:"selectNextBefore",description:"Select next before",exec:function(e){e.selectMore(-1,!0)},bindKey:{win:"Ctrl-Alt-Shift-Left",mac:"Ctrl-Alt-Shift-Left"},scrollIntoView:"cursor",readOnly:!0},{name:"selectNextAfter",description:"Select next after",exec:function(e){e.selectMore(1,!0)},bindKey:{win:"Ctrl-Alt-Shift-Right",mac:"Ctrl-Alt-Shift-Right"},scrollIntoView:"cursor",readOnly:!0},{name:"toggleSplitSelectionIntoLines",description:"Split into lines",exec:function(e){1<e.multiSelect.rangeCount?e.multiSelect.joinSelections():e.multiSelect.splitIntoLines()},bindKey:{win:"Ctrl-Alt-L",mac:"Ctrl-Alt-L"},readOnly:!0},{name:"splitSelectionIntoLines",description:"Split into lines",exec:function(e){e.multiSelect.splitIntoLines()},readOnly:!0},{name:"alignCursors",description:"Align cursors",exec:function(e){e.alignCursors()},bindKey:{win:"Ctrl-Alt-A",mac:"Ctrl-Alt-A"},scrollIntoView:"cursor"},{name:"findAll",description:"Find all",exec:function(e){e.findAll()},bindKey:{win:"Ctrl-Alt-K",mac:"Ctrl-Alt-G"},scrollIntoView:"cursor",readOnly:!0}],t.multiSelectCommands=[{name:"singleSelection",description:"Single selection",bindKey:"esc",exec:function(e){e.exitMultiSelectMode()},scrollIntoView:"cursor",readOnly:!0,isAvailable:function(e){return e&&e.inMultiSelectMode}}];e=e("../keyboard/hash_handler").HashHandler;t.keyboardHandler=new e(t.multiSelectCommands)}),ace.define("ace/multi_select",["require","exports","module","ace/range_list","ace/range","ace/selection","ace/mouse/multi_select_handler","ace/lib/event","ace/lib/lang","ace/commands/multi_select_commands","ace/search","ace/edit_session","ace/editor","ace/config"],function(e,r,t){function i(e){var t,i;function n(e){i&&(t.renderer.setMouseCursor(""),i=!1)}e.$multiselectOnSessionChange||(e.$onAddRange=e.$onAddRange.bind(e),e.$onRemoveRange=e.$onRemoveRange.bind(e),e.$onMultiSelect=e.$onMultiSelect.bind(e),e.$onSingleSelect=e.$onSingleSelect.bind(e),e.$multiselectOnSessionChange=r.onSessionChange.bind(e),e.$checkMultiselectChange=e.$checkMultiselectChange.bind(e),e.$multiselectOnSessionChange(e),e.on("changeSession",e.$multiselectOnSessionChange),e.on("mousedown",s),e.commands.addCommands(o.defaultCommands),(t=e).textInput&&(e=t.textInput.getElement(),i=!1,a.addListener(e,"keydown",function(e){e=18==e.keyCode&&!(e.ctrlKey||e.shiftKey||e.metaKey);t.$blockSelectEnabled&&e?i||(t.renderer.setMouseCursor("crosshair"),i=!0):i&&n()},t),a.addListener(e,"keyup",n,t),a.addListener(e,"blur",n,t)))}var n=e("./range_list").RangeList,x=e("./range").Range,d=e("./selection").Selection,s=e("./mouse/multi_select_handler").onMouseDown,a=e("./lib/event"),p=e("./lib/lang"),o=e("./commands/multi_select_commands");r.commands=o.defaultCommands.concat(o.multiSelectCommands);var l=new(e("./search").Search),c=e("./edit_session").EditSession,c=(function(){this.getSelectionMarkers=function(){return this.$selectionMarkers}}.call(c.prototype),function(){this.ranges=null,this.rangeList=null,this.addRange=function(e,t){if(e){if(!this.inMultiSelectMode&&0===this.rangeCount){var i=this.toOrientedRange();if(this.rangeList.add(i),this.rangeList.add(e),2!=this.rangeList.ranges.length)return this.rangeList.removeAll(),t||this.fromOrientedRange(e);this.rangeList.removeAll(),this.rangeList.add(i),this.$onAddRange(i)}e.cursor||(e.cursor=e.end);i=this.rangeList.add(e);return this.$onAddRange(e),i.length&&this.$onRemoveRange(i),1<this.rangeCount&&!this.inMultiSelectMode&&(this._signal("multiSelect"),this.inMultiSelectMode=!0,this.session.$undoSelect=!1,this.rangeList.attach(this.session)),t||this.fromOrientedRange(e)}},this.toSingleRange=function(e){e=e||this.ranges[0];var t=this.rangeList.removeAll();t.length&&this.$onRemoveRange(t),e&&this.fromOrientedRange(e)},this.substractPoint=function(e){e=this.rangeList.substractPoint(e);if(e)return this.$onRemoveRange(e),e[0]},this.mergeOverlappingRanges=function(){var e=this.rangeList.merge();e.length&&this.$onRemoveRange(e)},this.$onAddRange=function(e){this.rangeCount=this.rangeList.ranges.length,this.ranges.unshift(e),this._signal("addRange",{range:e})},this.$onRemoveRange=function(e){var t;this.rangeCount=this.rangeList.ranges.length,1==this.rangeCount&&this.inMultiSelectMode&&(t=this.rangeList.ranges.pop(),e.push(t),this.rangeCount=0);for(var i=e.length;i--;){var n=this.ranges.indexOf(e[i]);this.ranges.splice(n,1)}this._signal("removeRange",{ranges:e}),0===this.rangeCount&&this.inMultiSelectMode&&(this.inMultiSelectMode=!1,this._signal("singleSelect"),this.session.$undoSelect=!0,this.rangeList.detach(this.session)),(t=t||this.ranges[0])&&!t.isEqual(this.getRange())&&this.fromOrientedRange(t)},this.$initRangeList=function(){this.rangeList||(this.rangeList=new n,this.ranges=[],this.rangeCount=0)},this.getAllRanges=function(){return this.rangeCount?this.rangeList.ranges.concat():[this.getRange()]},this.splitIntoLines=function(){for(var e=this.ranges.length?this.ranges:[this.getRange()],t=[],i=0;i<e.length;i++){var n=e[i],r=n.start.row,s=n.end.row;if(r===s)t.push(n.clone());else{for(t.push(new x(r,n.start.column,r,this.session.getLine(r).length));++r<s;)t.push(this.getLineRange(r,!0));t.push(new x(s,0,s,n.end.column))}0!=i||this.isBackwards()||(t=t.reverse())}this.toSingleRange();for(i=t.length;i--;)this.addRange(t[i])},this.joinSelections=function(){var e=this.rangeList.ranges,t=e[e.length-1],e=x.fromPoints(e[0].start,t.end);this.toSingleRange(),this.setSelectionRange(e,t.cursor==t.start)},this.toggleBlockSelection=function(){var e,t;1<this.rangeCount?(t=(e=this.rangeList.ranges)[e.length-1],e=x.fromPoints(e[0].start,t.end),this.toSingleRange(),this.setSelectionRange(e,t.cursor==t.start)):(e=this.session.documentToScreenPosition(this.cursor),t=this.session.documentToScreenPosition(this.anchor),this.rectangularRangeBlock(e,t).forEach(this.addRange,this))},this.rectangularRangeBlock=function(e,t,i){var n,r,s,a,o,l,c,h=[],u=e.column<t.column,d=(a=(u?(n=e.column,r=t.column,s=e.offsetX,t):(n=t.column,r=e.column,s=t.offsetX,e)).offsetX,e.row<t.row);l=(d?(o=e.row,t):(o=t.row,e)).row,n<0&&(n=0),(o=o<0?0:o)==l&&(i=!0);for(var p,g,f=o;f<=l;f++){var m=x.fromPoints(this.session.screenToDocumentPosition(f,n,s),this.session.screenToDocumentPosition(f,r,a));if(m.isEmpty()){if(c&&(p=m.end,g=c,p.row==g.row)&&p.column==g.column)break;c=m.end}m.cursor=u?m.start:m.end,h.push(m)}if(d&&h.reverse(),!i){for(var y=h.length-1;h[y].isEmpty()&&0<y;)y--;if(0<y)for(var b=0;h[b].isEmpty();)b++;for(var v=y;b<=v;v--)h[v].isEmpty()&&h.splice(v,1)}return h}}.call(d.prototype),e("./editor").Editor);(function(){this.updateSelectionMarkers=function(){this.renderer.updateCursor(),this.renderer.updateBackMarkers()},this.addSelectionMarker=function(e){e.cursor||(e.cursor=e.end);var t=this.getSelectionStyle();return e.marker=this.session.addMarker(e,"ace_selection",t),this.session.$selectionMarkers.push(e),this.session.selectionMarkerCount=this.session.$selectionMarkers.length,e},this.removeSelectionMarker=function(e){e.marker&&(this.session.removeMarker(e.marker),-1!=(e=this.session.$selectionMarkers.indexOf(e))&&this.session.$selectionMarkers.splice(e,1),this.session.selectionMarkerCount=this.session.$selectionMarkers.length)},this.removeSelectionMarkers=function(e){for(var t=this.session.$selectionMarkers,i=e.length;i--;){var n=e[i];n.marker&&(this.session.removeMarker(n.marker),-1!=(n=t.indexOf(n)))&&t.splice(n,1)}this.session.selectionMarkerCount=t.length},this.$onAddRange=function(e){this.addSelectionMarker(e.range),this.renderer.updateCursor(),this.renderer.updateBackMarkers()},this.$onRemoveRange=function(e){this.removeSelectionMarkers(e.ranges),this.renderer.updateCursor(),this.renderer.updateBackMarkers()},this.$onMultiSelect=function(e){this.inMultiSelectMode||(this.inMultiSelectMode=!0,this.setStyle("ace_multiselect"),this.keyBinding.addKeyboardHandler(o.keyboardHandler),this.commands.setDefaultHandler("exec",this.$onMultiSelectExec),this.renderer.updateCursor(),this.renderer.updateBackMarkers())},this.$onSingleSelect=function(e){this.session.multiSelect.inVirtualMode||(this.inMultiSelectMode=!1,this.unsetStyle("ace_multiselect"),this.keyBinding.removeKeyboardHandler(o.keyboardHandler),this.commands.removeDefaultHandler("exec",this.$onMultiSelectExec),this.renderer.updateCursor(),this.renderer.updateBackMarkers(),this._emit("changeSelection"))},this.$onMultiSelectExec=function(e){var t,i=e.command,n=e.editor;if(n.multiSelect)return i.multiSelectAction?t="forEach"==i.multiSelectAction?n.forEachSelection(i,e.args):"forEachLine"==i.multiSelectAction?n.forEachSelection(i,e.args,!0):"single"==i.multiSelectAction?(n.exitMultiSelectMode(),i.exec(n,e.args||{})):i.multiSelectAction(n,e.args||{}):(t=i.exec(n,e.args||{}),n.multiSelect.addRange(n.multiSelect.toOrientedRange()),n.multiSelect.mergeOverlappingRanges()),t},this.forEachSelection=function(e,t,i){if(!this.inVirtualSelectionMode){var n,r=i&&i.keepOrder,s=1==i||i&&i.$byLines,a=this.session,i=this.selection,o=i.rangeList,l=(r?i:o).ranges;if(!l.length)return e.exec?e.exec(this,t||{}):e(this,t||{});var r=i._eventRegistry,c=(i._eventRegistry={},new d(a));this.inVirtualSelectionMode=!0;for(var h=l.length;h--;){if(s)for(;0<h&&l[h].start.row==l[h-1].end.row;)h--;c.fromOrientedRange(l[h]),c.index=h,this.selection=a.selection=c;var u=e.exec?e.exec(this,t||{}):e(this,t||{});n||void 0===u||(n=u),c.toOrientedRange(l[h])}c.detach(),this.selection=a.selection=i,this.inVirtualSelectionMode=!1,i._eventRegistry=r,i.mergeOverlappingRanges(),i.ranges[0]&&i.fromOrientedRange(i.ranges[0]);o=this.renderer.$scrollAnimation;return this.onCursorChange(),this.onSelectionChange(),o&&o.from==o.to&&this.renderer.animateScrolling(o.from),n}},this.exitMultiSelectMode=function(){this.inMultiSelectMode&&!this.inVirtualSelectionMode&&this.multiSelect.toSingleRange()},this.getSelectedText=function(){var e="";if(this.inMultiSelectMode&&!this.inVirtualSelectionMode){for(var t=this.multiSelect.rangeList.ranges,i=[],n=0;n<t.length;n++)i.push(this.session.getTextRange(t[n]));var r=this.session.getDocument().getNewLineCharacter();(e=i.join(r)).length==(i.length-1)*r.length&&(e="")}else this.selection.isEmpty()||(e=this.session.getTextRange(this.getSelectionRange()));return e},this.$checkMultiselectChange=function(e,t){var i;this.inMultiSelectMode&&!this.inVirtualSelectionMode&&(i=this.multiSelect.ranges[0],this.multiSelect.isEmpty()&&t==this.multiSelect.anchor||((i=t==this.multiSelect.anchor?i.cursor==i.start?i.end:i.start:i.cursor).row!=t.row||this.session.$clipPositionToDocument(i.row,i.column).column!=t.column?this.multiSelect.toSingleRange(this.multiSelect.toOrientedRange()):this.multiSelect.mergeOverlappingRanges()))},this.findAll=function(e,t,i){(t=t||{}).needle=e||t.needle,null==t.needle&&(n=this.selection.isEmpty()?this.selection.getWordRange():this.selection.getRange(),t.needle=this.session.getTextRange(n)),this.$search.set(t);var n,r=this.$search.findAll(this.session);if(!r.length)return 0;var s=this.multiSelect;i||s.toSingleRange(r[0]);for(var a=r.length;a--;)s.addRange(r[a],!0);return n&&s.rangeList.rangeAtPoint(n.start)&&s.addRange(n,!0),r.length},this.selectMoreLines=function(e,t){var i,n,r,s=this.selection.toOrientedRange(),a=s.cursor==s.end,o=this.session.documentToScreenPosition(s.cursor),l=(this.selection.$desiredColumn&&(o.column=this.selection.$desiredColumn),this.session.screenToDocumentPosition(o.row+e,o.column));e=s.isEmpty()?l:(i=this.session.documentToScreenPosition(a?s.end:s.start),this.session.screenToDocumentPosition(i.row+e,i.column)),a?(n=x.fromPoints(l,e)).cursor=n.start:(n=x.fromPoints(e,l)).cursor=n.end,n.desiredColumn=o.column,this.selection.inMultiSelectMode?t&&(r=s.cursor):this.selection.addRange(s),this.selection.addRange(n),r&&this.selection.substractPoint(r)},this.transposeSelections=function(e){for(var t=this.session,i=t.multiSelect,n=i.ranges,r=n.length;r--;)(a=n[r]).isEmpty()&&(o=t.getWordRange(a.start.row,a.start.column),a.start.row=o.start.row,a.start.column=o.start.column,a.end.row=o.end.row,a.end.column=o.end.column);i.mergeOverlappingRanges();for(var s=[],r=n.length;r--;){var a=n[r];s.unshift(t.getTextRange(a))}e<0?s.unshift(s.pop()):s.push(s.shift());for(r=n.length;r--;){var o=(a=n[r]).clone();t.replace(a,s[r]),a.start.row=o.start.row,a.start.column=o.start.column}i.fromOrientedRange(i.ranges[0])},this.selectMore=function(e,t,i){var n,r=this.session,s=r.multiSelect.toOrientedRange();s.isEmpty()&&((s=r.getWordRange(s.start.row,s.start.column)).cursor=-1==e?s.start:s.end,this.multiSelect.addRange(s),i)||(i=r.getTextRange(s),r=r,i=i,n=e,l.$options.wrap=!0,l.$options.needle=i,l.$options.backwards=-1==n,(i=l.find(r))&&(i.cursor=-1==e?i.start:i.end,this.session.unfold(i),this.multiSelect.addRange(i),this.renderer.scrollCursorIntoView(null,.5)),t&&this.multiSelect.substractPoint(s.cursor))},this.alignCursors=function(){var r=this.session,t=r.multiSelect,e=t.ranges,i=-1,n=e.filter(function(e){if(e.cursor.row==i)return!0;i=e.cursor.row});if(e.length&&n.length!=e.length-1){n.forEach(function(e){t.substractPoint(e.cursor)});var s=0,a=1/0,o=e.map(function(e){var e=e.cursor,t=r.getLine(e.row).substr(e.column).search(/\S/g);return e.column>s&&(s=e.column),(t=-1==t?0:t)<a&&(a=t),t});e.forEach(function(e,t){var i=e.cursor,n=s-i.column,t=o[t]-a;t<n?r.insert(i,p.stringRepeat(" ",n-t)):r.remove(new x(i.row,i.column,i.row,i.column-n+t)),e.start.column=e.end.column=s,e.start.row=e.end.row=i.row,e.cursor=e.end}),t.fromOrientedRange(e[0]),this.renderer.updateCursor(),this.renderer.updateBackMarkers()}else{var n=this.selection.getRange(),l=n.start.row,c=n.end.row,e=l==c;if(e){for(var h,u=this.session.getLength();h=this.session.getLine(c),/[=:]/.test(h)&&++c<u;);for(;h=this.session.getLine(l),/[=:]/.test(h)&&0<--l;);l<0&&(l=0),u<=c&&(c=u-1)}var d=this.session.removeFullLines(l,c),d=this.$reAlignText(d,e);this.session.insert({row:l,column:0},d.join("\n")+"\n"),e||(n.start.column=0,n.end.column=d[d.length-1].length),this.selection.setRange(n)}},this.$reAlignText=function(e,t){function i(e){return p.stringRepeat(" ",e)}function n(e){return e[2]?i(r)+e[2]+i(s-e[2].length+a)+e[4].replace(/^([=:])\s+/,"$1 "):e[0]}var r,s,a,o=!0,l=!0;return e.map(function(e){var t=e.match(/(\s*)(.*?)(\s*)([=:].*)/);return t?(null==r?(r=t[1].length,s=t[2].length,a=t[3].length):(r+s+a!=t[1].length+t[2].length+t[3].length&&(l=!1),r!=t[1].length&&(o=!1),r>t[1].length&&(r=t[1].length),s<t[2].length&&(s=t[2].length),a>t[3].length&&(a=t[3].length)),t):[e]}).map(t?n:o?l?function(e){return e[2]?i(r+s-e[2].length)+e[2]+i(a)+e[4].replace(/^([=:])\s+/,"$1 "):e[0]}:n:function(e){return e[2]?i(r)+e[2]+i(a)+e[4].replace(/^([=:])\s+/,"$1 "):e[0]})}}).call(c.prototype),r.onSessionChange=function(e){var t=e.session,e=(t&&!t.multiSelect&&(t.$selectionMarkers=[],t.selection.$initRangeList(),t.multiSelect=t.selection),this.multiSelect=t&&t.multiSelect,e.oldSession);e&&(e.multiSelect.off("addRange",this.$onAddRange),e.multiSelect.off("removeRange",this.$onRemoveRange),e.multiSelect.off("multiSelect",this.$onMultiSelect),e.multiSelect.off("singleSelect",this.$onSingleSelect),e.multiSelect.lead.off("change",this.$checkMultiselectChange),e.multiSelect.anchor.off("change",this.$checkMultiselectChange)),t&&(t.multiSelect.on("addRange",this.$onAddRange),t.multiSelect.on("removeRange",this.$onRemoveRange),t.multiSelect.on("multiSelect",this.$onMultiSelect),t.multiSelect.on("singleSelect",this.$onSingleSelect),t.multiSelect.lead.on("change",this.$checkMultiselectChange),t.multiSelect.anchor.on("change",this.$checkMultiselectChange)),t&&this.inMultiSelectMode!=t.selection.inMultiSelectMode&&(t.selection.inMultiSelectMode?this.$onMultiSelect():this.$onSingleSelect())},r.MultiSelect=i,e("./config").defineOptions(c.prototype,"editor",{enableMultiselect:{set:function(e){i(this),e?(this.on("changeSession",this.$multiselectOnSessionChange),this.on("mousedown",s)):(this.off("changeSession",this.$multiselectOnSessionChange),this.off("mousedown",s))},value:!0},enableBlockSelect:{set:function(e){this.$blockSelectEnabled=e},value:!0}})}),ace.define("ace/mode/folding/fold_mode",["require","exports","module","ace/range"],function(e,t,i){"use strict";var h=e("../../range").Range,e=t.FoldMode=function(){};!function(){this.foldingStartMarker=null,this.foldingStopMarker=null,this.getFoldWidget=function(e,t,i){e=e.getLine(i);return this.foldingStartMarker.test(e)?"start":"markbeginend"==t&&this.foldingStopMarker&&this.foldingStopMarker.test(e)?"end":""},this.getFoldWidgetRange=function(e,t,i){return null},this.indentationBlock=function(e,t,i){var n=/\S/,r=e.getLine(t),s=r.search(n);if(-1!=s){for(var a,i=i||r.length,o=e.getLength(),r=t,l=t;++t<o;){var c=e.getLine(t).search(n);if(-1!=c){if(c<=s){c=e.getTokenAt(t,0);if(!c||"string"!==c.type)break}l=t}}return r<l?(a=e.getLine(l).length,new h(r,i,l,a)):void 0}},this.openingBracketBlock=function(e,t,i,n,r){i={row:i,column:n+1},n=e.$findClosingBracket(t,i,r);if(n)return"start"==(t=null==(t=e.foldWidgets[n.row])?e.getFoldWidget(n.row):t)&&n.row>i.row&&(n.row--,n.column=e.getLine(n.row).length),h.fromPoints(i,n)},this.closingBracketBlock=function(e,t,i,n,r){i={row:i,column:n},n=e.$findOpeningBracket(t,i);if(n)return n.column++,i.column--,h.fromPoints(n,i)}}.call(e.prototype)}),ace.define("ace/theme/textmate",["require","exports","module","ace/lib/dom"],function(e,t,i){"use strict";t.isDark=!1,t.cssClass="ace-tm",t.cssText='.ace-tm .ace_gutter {background: #f0f0f0;color: #333;}.ace-tm .ace_print-margin {width: 1px;background: #e8e8e8;}.ace-tm .ace_fold {background-color: #6B72E6;}.ace-tm {background-color: #FFFFFF;color: black;}.ace-tm .ace_cursor {color: black;}.ace-tm .ace_invisible {color: rgb(191, 191, 191);}.ace-tm .ace_storage,.ace-tm .ace_keyword {color: blue;}.ace-tm .ace_constant {color: rgb(197, 6, 11);}.ace-tm .ace_constant.ace_buildin {color: rgb(88, 72, 246);}.ace-tm .ace_constant.ace_language {color: rgb(88, 92, 246);}.ace-tm .ace_constant.ace_library {color: rgb(6, 150, 14);}.ace-tm .ace_invalid {background-color: rgba(255, 0, 0, 0.1);color: red;}.ace-tm .ace_support.ace_function {color: rgb(60, 76, 114);}.ace-tm .ace_support.ace_constant {color: rgb(6, 150, 14);}.ace-tm .ace_support.ace_type,.ace-tm .ace_support.ace_class {color: rgb(109, 121, 222);}.ace-tm .ace_keyword.ace_operator {color: rgb(104, 118, 135);}.ace-tm .ace_string {color: rgb(3, 106, 7);}.ace-tm .ace_comment {color: rgb(76, 136, 107);}.ace-tm .ace_comment.ace_doc {color: rgb(0, 102, 255);}.ace-tm .ace_comment.ace_doc.ace_tag {color: rgb(128, 159, 191);}.ace-tm .ace_constant.ace_numeric {color: rgb(0, 0, 205);}.ace-tm .ace_variable {color: rgb(49, 132, 149);}.ace-tm .ace_xml-pe {color: rgb(104, 104, 91);}.ace-tm .ace_entity.ace_name.ace_function {color: #0000A2;}.ace-tm .ace_heading {color: rgb(12, 7, 255);}.ace-tm .ace_list {color:rgb(185, 6, 144);}.ace-tm .ace_meta.ace_tag {color:rgb(0, 22, 142);}.ace-tm .ace_string.ace_regex {color: rgb(255, 0, 0)}.ace-tm .ace_marker-layer .ace_selection {background: rgb(181, 213, 255);}.ace-tm.ace_multiselect .ace_selection.ace_start {box-shadow: 0 0 3px 0px white;}.ace-tm .ace_marker-layer .ace_step {background: rgb(252, 255, 0);}.ace-tm .ace_marker-layer .ace_stack {background: rgb(164, 229, 101);}.ace-tm .ace_marker-layer .ace_bracket {margin: -1px 0 0 -1px;border: 1px solid rgb(192, 192, 192);}.ace-tm .ace_marker-layer .ace_active-line {background: rgba(0, 0, 0, 0.07);}.ace-tm .ace_gutter-active-line {background-color : #dcdcdc;}.ace-tm .ace_marker-layer .ace_selected-word {background: rgb(250, 250, 255);border: 1px solid rgb(200, 200, 250);}.ace-tm .ace_indent-guide {background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAE0lEQVQImWP4////f4bLly//BwAmVgd1/w11/gAAAABJRU5ErkJggg==") right repeat-y;}',t.$id="ace/theme/textmate",e("../lib/dom").importCssString(t.cssText,t.cssClass)}),ace.define("ace/line_widgets",["require","exports","module","ace/lib/dom"],function(e,t,i){"use strict";function n(e){this.session=e,(this.session.widgetManager=this).session.getRowLength=this.getRowLength,this.session.$getWidgetScreenLength=this.$getWidgetScreenLength,this.updateOnChange=this.updateOnChange.bind(this),this.renderWidgets=this.renderWidgets.bind(this),this.measureWidgets=this.measureWidgets.bind(this),this.session._changedWidgets=[],this.$onChangeEditor=this.$onChangeEditor.bind(this),this.session.on("change",this.updateOnChange),this.session.on("changeFold",this.updateOnFold),this.session.on("changeEditor",this.$onChangeEditor)}var r=e("./lib/dom");(function(){this.getRowLength=function(e){var t=this.lineWidgets&&this.lineWidgets[e]&&this.lineWidgets[e].rowCount||0;return this.$useWrapMode&&this.$wrapData[e]?this.$wrapData[e].length+1+t:1+t},this.$getWidgetScreenLength=function(){var t=0;return this.lineWidgets.forEach(function(e){e&&e.rowCount&&!e.hidden&&(t+=e.rowCount)}),t},this.$onChangeEditor=function(e){this.attach(e.editor)},this.attach=function(e){e&&e.widgetManager&&e.widgetManager!=this&&e.widgetManager.detach(),this.editor!=e&&(this.detach(),this.editor=e)&&(e.widgetManager=this,e.renderer.on("beforeRender",this.measureWidgets),e.renderer.on("afterRender",this.renderWidgets))},this.detach=function(e){var t=this.editor;t&&(this.editor=null,t.widgetManager=null,t.renderer.off("beforeRender",this.measureWidgets),t.renderer.off("afterRender",this.renderWidgets),t=this.session.lineWidgets)&&t.forEach(function(e){e&&e.el&&e.el.parentNode&&(e._inDocument=!1,e.el.parentNode.removeChild(e.el))})},this.updateOnFold=function(e,t){var i=t.lineWidgets;if(i&&e.action){for(var t=e.data,n=t.start.row,r=t.end.row,s="add"==e.action,a=n+1;a<r;a++)i[a]&&(i[a].hidden=s);i[r]&&(s?i[n]?i[r].hidden=s:i[n]=i[r]:(i[n]==i[r]&&(i[n]=void 0),i[r].hidden=s))}},this.updateOnChange=function(e){var t,i,n,r=this.session.lineWidgets;r&&(t=e.start.row,0!=(i=e.end.row-t))&&("remove"==e.action?(n=r.splice(t+1,i),!r[t]&&n[n.length-1]&&(r[t]=n.pop()),n.forEach(function(e){e&&this.removeLineWidget(e)},this)):(n=new Array(i),r[t]&&null!=r[t].column&&e.start.column>r[t].column&&t++,n.unshift(t,0),r.splice.apply(r,n)),this.$updateRows())},this.$updateRows=function(){var i,e=this.session.lineWidgets;e&&(i=!0,e.forEach(function(e,t){if(e)for(i=!1,e.row=t;e.$oldWidget;)e.$oldWidget.row=t,e=e.$oldWidget}),i)&&(this.session.lineWidgets=null)},this.$registerLineWidget=function(e){this.session.lineWidgets||(this.session.lineWidgets=new Array(this.session.getLength()));var t=this.session.lineWidgets[e.row];return t&&(e.$oldWidget=t).el&&t.el.parentNode&&(t.el.parentNode.removeChild(t.el),t._inDocument=!1),this.session.lineWidgets[e.row]=e},this.addLineWidget=function(e){var t,i,n;return this.$registerLineWidget(e),e.session=this.session,this.editor&&(t=this.editor.renderer,e.html&&!e.el&&(e.el=r.createElement("div"),e.el.innerHTML=e.html),e.el&&(r.addCssClass(e.el,"ace_lineWidgetContainer"),e.el.style.position="absolute",e.el.style.zIndex=5,t.container.appendChild(e.el),e._inDocument=!0,e.coverGutter||(e.el.style.zIndex=3),null==e.pixelHeight)&&(e.pixelHeight=e.el.offsetHeight),null==e.rowCount&&(e.rowCount=e.pixelHeight/t.layerConfig.lineHeight),i=this.session.getFoldAt(e.row,0),(e.$fold=i)&&(n=this.session.lineWidgets,e.row!=i.end.row||n[i.start.row]?e.hidden=!0:n[i.start.row]=e),this.session._emit("changeFold",{data:{start:{row:e.row}}}),this.$updateRows(),this.renderWidgets(null,t),this.onWidgetChanged(e)),e},this.removeLineWidget=function(e){if(e._inDocument=!1,e.session=null,e.el&&e.el.parentNode&&e.el.parentNode.removeChild(e.el),e.editor&&e.editor.destroy)try{e.editor.destroy()}catch(e){}if(this.session.lineWidgets){var t=this.session.lineWidgets[e.row];if(t==e)this.session.lineWidgets[e.row]=e.$oldWidget,e.$oldWidget&&this.onWidgetChanged(e.$oldWidget);else for(;t;){if(t.$oldWidget==e){t.$oldWidget=e.$oldWidget;break}t=t.$oldWidget}}this.session._emit("changeFold",{data:{start:{row:e.row}}}),this.$updateRows()},this.getWidgetsAtRow=function(e){for(var t=this.session.lineWidgets,i=t&&t[e],n=[];i;)n.push(i),i=i.$oldWidget;return n},this.onWidgetChanged=function(e){this.session._changedWidgets.push(e),this.editor&&this.editor.renderer.updateFull()},this.measureWidgets=function(e,t){var i=this.session._changedWidgets,n=t.layerConfig;if(i&&i.length){for(var r=1/0,s=0;s<i.length;s++){var a=i[s];if(a&&a.el&&a.session==this.session){if(!a._inDocument){if(this.session.lineWidgets[a.row]!=a)continue;a._inDocument=!0,t.container.appendChild(a.el)}a.h=a.el.offsetHeight,a.fixedWidth||(a.w=a.el.offsetWidth,a.screenWidth=Math.ceil(a.w/n.characterWidth));var o=a.h/n.lineHeight;a.coverLine&&(o-=this.session.getRowLineCount(a.row))<0&&(o=0),a.rowCount!=o&&(a.rowCount=o,a.row<r)&&(r=a.row)}}r!=1/0&&(this.session._emit("changeFold",{data:{start:{row:r}}}),this.session.lineWidgetWidth=null),this.session._changedWidgets=[]}},this.renderWidgets=function(e,t){var i=t.layerConfig,n=this.session.lineWidgets;if(n){for(var r=Math.min(this.firstRow,i.firstRow),s=Math.max(this.lastRow,i.lastRow,n.length);0<r&&!n[r];)r--;this.firstRow=i.firstRow,this.lastRow=i.lastRow,t.$cursorLayer.config=i;for(var a=r;a<=s;a++){var o,l=n[a];l&&l.el&&(l.hidden?l.el.style.top=-100-(l.pixelHeight||0)+"px":(l._inDocument||(l._inDocument=!0,t.container.appendChild(l.el)),o=t.$cursorLayer.getPixelPosition({row:a,column:0},!0).top,l.coverLine||(o+=i.lineHeight*this.session.getRowLineCount(l.row)),l.el.style.top=o-i.offset+"px",o=l.coverGutter?0:t.gutterWidth,l.fixedWidth||(o-=t.scrollLeft),l.el.style.left=o+"px",l.fullWidth&&l.screenWidth&&(l.el.style.minWidth=i.width+2*i.padding+"px"),l.fixedWidth?l.el.style.right=t.scrollBar.getWidth()+"px":l.el.style.right=""))}}}}).call(n.prototype),t.LineWidgets=n}),ace.define("ace/ext/error_marker",["require","exports","module","ace/line_widgets","ace/lib/dom","ace/range"],function(e,t,i){"use strict";function c(e,t,i){var n=e.getAnnotations().sort(o.comparePoints);if(n.length){var r=function(e,t,i){for(var n=0,r=e.length-1;n<=r;){var s=n+r>>1,a=i(t,e[s]);if(0<a)n=1+s;else{if(!(a<0))return s;r=s-1}}return-(n+1)}(n,{row:t,column:-1},o.comparePoints),s=((r=r<0?-r-1:r)>=n.length?r=0<i?0:n.length-1:0===r&&i<0&&(r=n.length-1),n[r]);if(s&&i){if(s.row===t){for(;(s=n[r+=i])&&s.row===t;);if(!s)return n.slice()}var a=[];for(t=s.row;a[i<0?"unshift":"push"](s),(s=n[r+=i])&&s.row==t;);return a.length&&a}}}var h=e("../line_widgets").LineWidgets,u=e("../lib/dom"),o=e("../range").Range;t.showErrorMarker=function(e,t){var i,n=e.session,r=(n.widgetManager||(n.widgetManager=new h(n),n.widgetManager.attach(e)),e.getCursorPosition()),s=r.row,a=n.widgetManager.getWidgetsAtRow(s).filter(function(e){return"errorMarker"==e.type})[0],s=(a?a.destroy():s-=t,c(n,s,t));if(s){t=s[0];r.column=(t.pos&&"number"!=typeof t.column?t.pos.sc:t.column)||0,r.row=t.row,i=e.renderer.$gutterLayer.$annotations[r.row]}else{if(a)return;i={text:["Looks good!"],className:"ace_ok"}}e.session.unfold(r.row),e.selection.moveToPosition(r);function o(e,t,i){if(0===t&&("esc"===i||"return"===i))return l.destroy(),{command:"null"}}var l={row:r.row,fixedWidth:!0,coverGutter:!0,el:u.createElement("div"),type:"errorMarker"},s=l.el.appendChild(u.createElement("div")),t=l.el.appendChild(u.createElement("div")),a=(t.className="error_widget_arrow "+i.className,e.renderer.$cursorLayer.getPixelPosition(r).left);t.style.left=a+e.renderer.gutterWidth-5+"px",l.el.className="error_widget_wrapper",s.className="error_widget "+i.className,s.innerHTML=i.text.join("<br>"),s.appendChild(u.createElement("div"));l.destroy=function(){e.$mouseHandler.isMousePressed||(e.keyBinding.removeKeyboardHandler(o),n.widgetManager.removeLineWidget(l),e.off("changeSelection",l.destroy),e.off("changeSession",l.destroy),e.off("mouseup",l.destroy),e.off("change",l.destroy))},e.keyBinding.addKeyboardHandler(o),e.on("changeSelection",l.destroy),e.on("changeSession",l.destroy),e.on("mouseup",l.destroy),e.on("change",l.destroy),e.session.widgetManager.addLineWidget(l),l.el.onmousedown=e.focus.bind(e),e.renderer.scrollCursorIntoView(null,.5,{bottom:l.el.offsetHeight})},u.importCssString(" .error_widget_wrapper { background: inherit; color: inherit; border:none } .error_widget { border-top: solid 2px; border-bottom: solid 2px; margin: 5px 0; padding: 10px 40px; white-space: pre-wrap; } .error_widget.ace_error, .error_widget_arrow.ace_error{ border-color: #ff5a5a } .error_widget.ace_warning, .error_widget_arrow.ace_warning{ border-color: #F1D817 } .error_widget.ace_info, .error_widget_arrow.ace_info{ border-color: #5a5a5a } .error_widget.ace_ok, .error_widget_arrow.ace_ok{ border-color: #5aaa5a } .error_widget_arrow { position: absolute; border: solid 5px; border-top-color: transparent!important; border-right-color: transparent!important; border-left-color: transparent!important; top: -5px; }","")}),ace.define("ace/ace",["require","exports","module","ace/lib/fixoldbrowsers","ace/lib/dom","ace/lib/event","ace/range","ace/editor","ace/edit_session","ace/undomanager","ace/virtual_renderer","ace/worker/worker_client","ace/keyboard/hash_handler","ace/placeholder","ace/multi_select","ace/mode/folding/fold_mode","ace/theme/textmate","ace/ext/error_marker","ace/config"],function(e,s,t){"use strict";e("./lib/fixoldbrowsers");var a=e("./lib/dom"),o=e("./lib/event"),i=e("./range").Range,l=e("./editor").Editor,n=e("./edit_session").EditSession,r=e("./undomanager").UndoManager,c=e("./virtual_renderer").VirtualRenderer;e("./worker/worker_client"),e("./keyboard/hash_handler"),e("./placeholder"),e("./multi_select"),e("./mode/folding/fold_mode"),e("./theme/textmate"),e("./ext/error_marker"),s.config=e("./config"),s.require=e,"function"==typeof define&&(s.define=define),s.edit=function(e,t){if("string"==typeof e){var i=e;if(!(e=document.getElementById(i)))throw new Error("ace.edit can't find div #"+i)}var n,r;return e&&e.env&&e.env.editor instanceof l?e.env.editor:(i="",e&&/input|textarea/i.test(e.tagName)?(i=(n=e).value,e=a.createElement("pre"),n.parentNode.replaceChild(e,n)):e&&(i=e.textContent,e.innerHTML=""),i=s.createEditSession(i),e=new l(new c(e),i,t),r={document:i,editor:e,onResize:e.resize.bind(e,null)},n&&(r.textarea=n),o.addListener(window,"resize",r.onResize),e.on("destroy",function(){o.removeListener(window,"resize",r.onResize),r.editor.container.env=null}),e.container.env=e.env=r,e)},s.createEditSession=function(e,t){e=new n(e,t);return e.setUndoManager(new r),e},s.Range=i,s.Editor=l,s.EditSession=n,s.UndoManager=r,s.VirtualRenderer=c,s.version=s.config.version}),ace.require(["ace/ace"],function(e){for(var t in e&&(e.config.init(!0),e.define=ace.define),window.ace||(window.ace=e),e)e.hasOwnProperty(t)&&(window.ace[t]=e[t]);window.ace.default=window.ace,"object"==typeof module&&"object"==typeof exports&&module&&(module.exports=window.ace)}),angular.module("ui.ace",[]).constant("uiAceConfig",{}).directive("uiAce",["uiAceConfig",function(i){if(angular.isUndefined(window.ace))throw new Error("ui-ace need ace to work... (o rly?)");return{restrict:"EA",require:"?ngModel",link:function(a,e,o,n){function r(){var e=arguments[0],t=Array.prototype.slice.call(arguments,1);angular.isDefined(e)&&a.$evalAsync(function(){if(!angular.isFunction(e))throw new Error("ui-ace use a function as callback.");e(t)})}function t(e,t){if(e!==t){(u=angular.extend({},h,a.$eval(o.uiAce))).callbacks=[u.onLoad],u.onLoad!==h.onLoad&&u.callbacks.unshift(h.onLoad),p.removeListener("change",l),l=g(u.onChange),p.on("change",l),d.removeListener("blur",c),c=f(u.onBlur),d.on("blur",c);var i,n,r=d,e=p,s=u;if(angular.isDefined(s.workerPath)&&window.ace.require("ace/config").set("workerPath",s.workerPath),angular.isDefined(s.require)&&s.require.forEach(function(e){window.ace.require(e)}),angular.isDefined(s.showGutter)&&r.renderer.setShowGutter(s.showGutter),angular.isDefined(s.useWrapMode)&&e.setUseWrapMode(s.useWrapMode),angular.isDefined(s.showInvisibles)&&r.renderer.setShowInvisibles(s.showInvisibles),angular.isDefined(s.showIndentGuides)&&r.renderer.setDisplayIndentGuides(s.showIndentGuides),angular.isDefined(s.useSoftTabs)&&e.setUseSoftTabs(s.useSoftTabs),angular.isDefined(s.showPrintMargin)&&r.setShowPrintMargin(s.showPrintMargin),angular.isDefined(s.disableSearch)&&s.disableSearch&&r.commands.addCommands([{name:"unfind",bindKey:{win:"Ctrl-F",mac:"Command-F"},exec:function(){return!1},readOnly:!0}]),angular.isString(s.theme)&&r.setTheme("ace/theme/"+s.theme),angular.isString(s.mode)&&e.setMode("ace/mode/"+s.mode),angular.isDefined(s.firstLineNumber)&&(angular.isNumber(s.firstLineNumber)?e.setOption("firstLineNumber",s.firstLineNumber):angular.isFunction(s.firstLineNumber)&&e.setOption("firstLineNumber",s.firstLineNumber())),angular.isDefined(s.advanced))for(i in s.advanced)n={name:i,value:s.advanced[i]},r.setOption(n.name,n.value);if(angular.isDefined(s.rendererOptions))for(i in s.rendererOptions)n={name:i,value:s.rendererOptions[i]},r.renderer.setOption(n.name,n.value);angular.forEach(s.callbacks,function(e){angular.isFunction(e)&&e(r)})}}var l,c,h=i.ace||{},u=angular.extend({},h,a.$eval(o.uiAce)),d=window.ace.edit(e[0]),p=d.getSession(),g=function(i){return function(e){var t=p.getValue();!n||t===n.$viewValue||a.$$phase||a.$root.$$phase||a.$evalAsync(function(){n.$setViewValue(t)}),r(i,e,d)}},f=function(e){return function(){r(e,d)}};o.$observe("readonly",function(e){d.setReadOnly(!!e||""===e)}),n&&(n.$formatters.push(function(e){if(angular.isUndefined(e)||null===e)return"";if(angular.isObject(e)||angular.isArray(e))throw new Error("ui-ace cannot use an object or an array as a model");return e}),n.$render=function(){p.setValue(n.$viewValue)});a.$watch(o.uiAce,t,!0),t(h),e.on("$destroy",function(){d.session.$stopWorker(),d.destroy()}),a.$watch(function(){return[e[0].offsetWidth,e[0].offsetHeight]},function(){d.resize(),d.renderer.updateFull()},!0)}}}]);const charactersAttributes="[^-a-z0-9:._]",allTagCharacters="(?:[^>\"']*(?:\"[^\"]*\"|'[^']*'))*?[^>]*";function by(r){return(e,t,i,n)=>t+urlRel2abs(i,r)+n}function cr(e,t,i,n){"string"==typeof t&&(t=new RegExp(t,"gi")),i=charactersAttributes+i;var r="\\s*=\\s*",s=new RegExp("("+i+r+'")([^"]+)()',"gi"),a=new RegExp("("+i+r+"')([^']+)()","gi"),o=new RegExp("("+i+r+")([^\"'][^\\s>]*)()","gi");return e=e.replace(t,function(e){return e.replace(s,by(n)).replace(a,by(n)).replace(o,by(n))})}function contentAbs2Relative(e,t){return e&&(e=cr(e,"<"+allTagCharacters+charactersAttributes+"href\\s*="+allTagCharacters+">","href",t),e=cr(e,"<"+allTagCharacters+charactersAttributes+"src\\s*="+allTagCharacters+">","src",t)),e}function generateRandomId(t){var i="ABCDEF0123456789";let n="";for(let e=0;e<t;e++)n+=i[Math.round(Math.random()*(i.length-1))];return n}function parseGithubUrl(e){if(e){e=e.replace(".git","").match(/.*?github.com\/(?<owner>[\w-\._]+)\/(?<repo>[\w-\._]+)(\/pull\/(?<PR>[0-9]+))?/);if(e&&e.groups.owner&&e.groups.repo)return{owner:e.groups.owner,repo:e.groups.repo,pullRequestId:e.groups.PR}}throw"Invalid url"}function renderMD(e,t){marked.use(markedEmoji({emojis:githubEmojis,unicode:!1})),e=contentAbs2Relative(e,t);var i=new marked.Renderer;const n=i.link;return i.link=function(e,t,i){return e.match(/\.mp4$|\.mov$/)?`<div class="media"><video controls title="${t}" src="${e}">${i}</video></div>`:n.call(this,e,t,i)},marked.setOptions({renderer:i,pedantic:!1,gfm:!0,breaks:!1,sanitize:!1,smartLists:!0,smartypants:!1,xhtml:!1,headerIds:!1,katex:katex}),t&&marked.use(baseUrl(t)),marked.use(markedKatex({throwOnError:!1})),marked.use(markedMermaid()),DOMPurify.sanitize(marked.parse(e,{renderer:i}))}angular.module("ngPDFViewer",[]).factory("RecursionHelper",["$compile",function(s){return{compile:function(e,i){angular.isFunction(i)&&(i={post:i});var n,r=e.contents().remove();return{pre:i&&i.pre?i.pre:null,post:function(e,t){(n=n||s(r))(e,function(e){t.append(e)}),i&&i.post&&i.post.apply(null,arguments)}}}}}]).directive("pdfpageviewer",[function(){return{restrict:"E",template:"<canvas></canvas>",scope:{onPageLoad:"=",page:"=",pdfDoc:"="},controller:["$scope","$element",function(n,r){n.scale=1;const s=r.find("canvas")[0];n.$watch("pdfDoc",e=>{e&&n.renderPage(n.page)}),n.renderPage=async function(e){var e=await n.pdfDoc.getPage(e),t=r[0].clientWidth/e.getViewport(1).width,t=e.getViewport(t),i=(s.height=t.height,s.width=t.width,s.getContext("2d"));return await e.render({canvasContext:i,viewport:t}),n.onPageLoad&&n.$apply(function(){n.onPageLoad({page:n.page,total:n.pdfDoc.numPages})}),!0}}]}}]).directive("pdfviewer",["RecursionHelper",function(t){return{restrict:"E",template:"<pdfpageviewer ng-repeat='p in [].constructor(pdfDoc.numPages) track by $index' page='$index + 1' pdf-doc='pdfDoc'></pdfpageviewer>",scope:{onPageLoad:"&",loadProgress:"&",src:"@",id:"="},compile:function(e){return t.compile(e)},controller:["$scope",function(n){n.pdfDoc=null,n.scale=1,n.documentProgress=function(e){n.loadProgress&&n.loadProgress({state:"loading",loaded:e.loaded,total:e.total})},n.loadPDF=function(e){PDFJS.getDocument(e,null,null,n.documentProgress).then(function(e){n.$apply(()=>{n.pdfDoc=e}),n.loadProgress&&n.loadProgress({state:"finished",loaded:0,total:0})},function(e,t){console.log("PDF load error: "+e),n.loadProgress&&n.loadProgress({state:"error",loaded:0,total:0})})},n.$on("pdfviewer.nextPage",function(e,t){null===t&&n.pageNum<n.pdfDoc.numPages&&(n.pageNum++,n.renderPage(n.pageNum))}),n.$on("pdfviewer.prevPage",function(e,t){null===t&&1<n.pageNum&&(n.pageNum--,n.renderPage(n.pageNum))}),n.$on("pdfviewer.gotoPage",function(e,t,i){null===t&&1<=i&&i<=n.pdfDoc.numPages&&(n.pageNum=i,n.renderPage(n.pageNum))}),n.$watch("src",()=>{n.loadPDF(n.src)})}]}}]).service("PDFViewerService",["$rootScope",function(i){var e={nextPage:function(){i.$broadcast("pdfviewer.nextPage")},prevPage:function(){i.$broadcast("pdfviewer.prevPage")},Instance:function(e){var t=e;return{prevPage:function(){i.$broadcast("pdfviewer.prevPage",t)},nextPage:function(){i.$broadcast("pdfviewer.nextPage",t)},gotoPage:function(e){i.$broadcast("pdfviewer.gotoPage",t,e)}}}};return e}]),angular.module("anonymous-github",["ngRoute","ngSanitize","ui.ace","ngPDFViewer","pascalprecht.translate","admin"]).config(["$routeProvider","$locationProvider","$translateProvider",function(e,t,i){i.useStaticFilesLoader({prefix:"/i18n/locale-",suffix:".json"}),i.preferredLanguage("en"),e.when("/",{templateUrl:"/partials/home.htm",controller:"homeController",title:"Anonymous GitHub"}).when("/dashboard",{templateUrl:"/partials/dashboard.htm",controller:"unifiedDashboardController",title:"Dashboard - Anonymous GitHub"}).when("/pr-dashboard",{redirectTo:"/dashboard"}).when("/anonymize/:repoId?",{templateUrl:"/partials/anonymize.htm",controller:"anonymizeController",title:"Anonymize - Anonymous GitHub"}).when("/pull-request-anonymize/:pullRequestId?",{templateUrl:"/partials/anonymize.htm",controller:"anonymizeController",title:"Anonymize - Anonymous GitHub"}).when("/status/:repoId",{templateUrl:"/partials/status.htm",controller:"statusController",title:"Repository status - Anonymous GitHub"}).when("/conferences",{templateUrl:"/partials/conferences.htm",controller:"conferencesController",title:"Conferences - Anonymous GitHub"}).when("/conference/new",{templateUrl:"/partials/newConference.htm",controller:"newConferenceController",title:"Add a conference - Anonymous GitHub"}).when("/conference/:conferenceId/edit",{templateUrl:"/partials/newConference.htm",controller:"newConferenceController",title:"Edit conference - Anonymous GitHub"}).when("/conference/:conferenceId",{templateUrl:"/partials/conference.htm",controller:"conferenceController",title:"Conference - Anonymous GitHub"}).when("/faq",{templateUrl:"/partials/faq.htm",controller:"faqController",title:"FAQ - Anonymous GitHub"}).when("/profile",{templateUrl:"/partials/profile.htm",controller:"profileController",title:"Profile - Anonymous GitHub"}).when("/claim",{templateUrl:"/partials/claim.htm",controller:"claimController",title:"Claim repository - Anonymous GitHub"}).when("/pr/:pullRequestId",{templateUrl:"/partials/pullRequest.htm",controller:"pullRequestController",title:"Anonymized Pull Request - Anonymous GitHub",reloadOnUrl:!1}).when("/r/:repoId/:path*?",{templateUrl:"/partials/explorer.htm",controller:"exploreController",title:"Anonymized Repository - Anonymous GitHub",reloadOnUrl:!1}).when("/repository/:repoId/:path*?",{templateUrl:"/partials/explorer.htm",controller:"exploreController",title:"Anonymized Repository - Anonymous GitHub",reloadOnUrl:!1}).when("/admin/",{templateUrl:"/partials/admin/repositories.htm",controller:"repositoriesAdminController",title:"Repositories Admin - Anonymous GitHub"}).when("/admin/users",{templateUrl:"/partials/admin/users.htm",controller:"usersAdminController",title:"Users Admin - Anonymous GitHub"}).when("/admin/users/:username",{templateUrl:"/partials/admin/user.htm",controller:"userAdminController",title:"User Admin - Anonymous GitHub"}).when("/admin/conferences",{templateUrl:"/partials/admin/conferences.htm",controller:"conferencesAdminController",title:"Conferences Admin - Anonymous GitHub"}).when("/admin/queues",{templateUrl:"/partials/admin/queues.htm",controller:"queuesAdminController",title:"Queues Admin - Anonymous GitHub"}).when("/404",{templateUrl:"/partials/404.htm",title:"Page not found - Anonymous GitHub"}).otherwise({templateUrl:"/partials/404.htm",title:"Page not found - Anonymous GitHub"}),t.html5Mode(!0)}]).filter("humanFileSize",function(){return humanFileSize}).filter("humanTime",function(){return function(e){if(!e)return"never";var t,i=(e="string"!=typeof(e=e instanceof Date?Math.round((Date.now()-e)/1e3):e)&&"number"!=typeof e?e:Math.round((Date.now()-new Date(e))/1e3))<0?"from now":"ago";if(172800<Math.abs(e))return(t=new Date).setSeconds(t.getSeconds()-e),"on "+t.toLocaleDateString();for(var n=[(e=Math.abs(e))/60/60/24/365,e/60/60/24/30,e/60/60/24/7,e/60/60/24,e/60/60,e/60,e],r=["year","month","week","day","hour","minute","second"],s=0;s<r.length;s++){var a=Math.floor(n[s]),o=r[s];if(1<a&&(o+="s"),1<=a)return a+" "+o+" "+i}return"0 seconds "+i}}).filter("title",function(){return function(e){return e&&(e=e.toLowerCase()).split(" ").map(function(e){return e.charAt(0).toUpperCase()+e.substring(1,e.length)}).join(" ")}}).filter("diff",["$sce",function(n){return function(e){if(!e)return e;var t=e.split("\n"),i=[];for(let e=1;e<t.length;e++)t[e]=t[e].replace(/</g,"<").replace(/>/g,">"),t[e].startsWith("+++")||t[e].startsWith("---")?i.push(`<span class="diff-file">${t[e]}</span>`):t[e].startsWith("@@")?i.push(`<span class="diff-lines">${t[e]}</span>`):t[e].startsWith("index")?i.push(`<span class="diff-index">${t[e]}</span>`):t[e].startsWith("+")?i.push(`<span class="diff-add">${t[e]}</span>`):t[e].startsWith("-")?i.push(`<span class="diff-remove">${t[e]}</span>`):i.push(`<span class="diff-line">${t[e]}</span>`);return n.trustAsHtml(i.join("\n"))}}]).directive("markdown",["$location",function(r){return{restrict:"E",scope:{terms:"=",options:"=",content:"="},link:function(e,t,i){function n(){t.html(renderMD(e.content,r.url()+"/../"))}e.$watch(i.terms,n),e.$watch("terms",n),e.$watch("options",n),e.$watch("content",n)}}}]).directive("tree",[function(){return{restrict:"E",scope:{file:"=",parent:"@"},controller:["$element","$scope","$routeParams","$compile",function(t,h,i,n){if(h.repoId=document.location.pathname.split("/")[2],h.opens={},i.path){let t="";i.path.split("/").forEach(e=>{h.opens[t+"/"+e]=!0,t=t+"/"+e})}const u=(e,t)=>{var i=!!e.child,n=!!t.child;return i&&n?e.name-t.name:i?-1:n?1:e.name-t.name};function r(){t.html("");var e=function e(r,s){if(!r)return"";var a;let o="<ul>";for(a of r=r.sort(u)){let t=!!a.child,i=a.name,n=a.size;if(t){let e=i;for(r=a.child;r&&1==r.length;)e+="/"+r[0].name,n=r[0].size,r=r[0].child;i=e,null!=n&&0<=n&&(t=!1)}n=null!=n?"Size: "+humanFileSize(n||0):"";var l=s+"/"+i,c=["file"];if(t&&c.push("folder"),h.opens[l]&&c.push("open"),h.isActive(l)&&c.push("active"),o+=`<li class="${c.join(" ")}" ng-class="{active: isActive('${l}'), open: opens['${l}']}" title="${n}">`,t?o+=`<a ng-click="openFolder('${l}', $event)">${i}</a>`:o+=`<a href='/r/${h.repoId}${l}'>${i}</a>`,h.opens[l]&&a.child)if(1<a.child.length)o+=e(a.child,l);else if(t){for(r=a.child;r&&1==r.length;)r=r[0].child;o+=e(r,l)}o}return o+"</ul>"}(function(e){var t,i=[],n={"":{child:i}};for(t of e){var r,s=n[t.path].child;let e=t.path+"/"+t.name;e.startsWith("/")&&(e=e.substring(1)),null!=t.size?s.push({name:t.name,size:t.size,sha:t.sha}):(r={name:t.name,child:[]},n[e]=r,s.push(r))}return i}(h.file).sort(u),"");n(e)(h,e=>{t.append(e)})}h.$watch("file",e=>{if(null!=e)return 0==e.length?t.html("Empty repository"):void r()},!0),h.isActive=function(e){return i.path==e.substring(1)},h.openFolder=async function(e,t){h.opens[e]=!h.opens[e],null==t.srcElement.nextSibling&&(await h.$parent.getFiles(e.substring(1)),h.$apply())}}]}}]).directive("notebook",[function(){return{restrict:"E",scope:{file:"="},controller:["$element","$scope","$http",function(t,e,i){function n(e){e=nb.parse(e);try{t.html(""),t.append(e.render()),Prism.highlightAll()}catch(e){t.html("Unable to render the notebook.")}}function r(){if(e.$parent.content)try{n(JSON.parse(e.$parent.content))}catch(e){t.html("Unable to render the notebook invalid notebook format.")}else e.file&&i.get(e.file.download_url).then(e=>n(e.data))}e.$watch("file",e=>{r()}),r()}]}}]).directive("loc",[function(){return{restrict:"E",scope:{stats:"="},template:"<div class='lang' ng-repeat='lang in elements' title='{{lang.lang|title}}: {{lang.loc | number}} lines' data-toggle='tooltip' data-placement='bottom' style='width:{{lang.loc*100/total}}%;background:{{lang.color}};'></div>",controller:["$scope",function(i){function t(){for(var e in i.elements=[],i.total=0,i.stats){var t=i.stats[e].code;t&&(i.total+=t,i.elements.push({lang:e,loc:t,color:langColors[e]}))}setTimeout(()=>{$('[data-toggle="tooltip"]').tooltip()},100)}i.$watch("stats",e=>{t()}),t()}]}}]).controller("mainController",["$scope","$http","$location",function(r,e,i){function t(e,t){t&&(r.title=t.title),r.path=i.url(),r.paths=i.path().substring(1).split("/")}r.title="Main",r.user={status:"connection"},r.site_options,r.toasts=[],r.removeToast=function(e){e=r.toasts.indexOf(e);r.toasts.splice(e,1)},r.path=i.url(),r.paths=i.path().substring(1).split("/"),r.darkMode=function(e){localStorage.setItem("darkMode",e);var t,i="/css/prism-okaidia.css",n="/css/prism.css";((r.isDarkMode=e)?($("body").addClass("dark-mode"),(t=document.createElement("link")).href=i,t.rel="stylesheet",document.head.append(t),$(`link[href='${n}']`)):($("body").removeClass("dark-mode"),(t=document.createElement("link")).href=n,t.rel="stylesheet",document.head.append(t),$(`link[href='${i}']`))).remove(),r.$broadcast("dark-mode",e)},r.darkMode("true"==localStorage.getItem("darkMode")),e.get("/api/user").then(e=>{e&&(r.user=e.data)},()=>{r.user=null}),e.get("/api/options").then(e=>{e&&(r.site_options=e.data)},()=>{r.site_options=null}),e.get("/api/message").then(e=>{e&&(r.generalMessage=e.data)},()=>{r.generalMessage=null}),r.$on("$routeChangeSuccess",t),r.$on("$routeUpdate",t)}]).controller("faqController",["$scope","$http",function(e,t){}]).controller("profileController",["$scope","$http",function(t,i){function n(){i.get("/api/user/default").then(e=>{e=e.data;e.terms&&(t.terms=e.terms.join("\n")),t.option=Object.assign({},t.option,e.options)})}t.terms="",t.options={expirationMode:"remove",update:!1,image:!0,pdf:!0,notebook:!0,loc:!0,link:!0},n(),t.saveDefault=()=>{var e={terms:t.terms.trim().split("\n"),options:t.options};i.post("/api/user/default",e).then(()=>{n(),t.message="Saved"},e=>{$translate("ERRORS."+e.data.error).then(e=>{t.error=e},console.error)})}}]).controller("claimController",["$scope","$http","$location",function(t,e,i){t.repoId=null,t.repoUrl=null,t.claim=()=>{e.post("/api/repo/claim",{repoId:t.repoId,repoUrl:t.repoUrl}).then(e=>{i.url("/dashboard")},e=>{t.error=e.data,t.claimForm.repoUrl.$setValidity("not_found",!1),t.claimForm.repoId.$setValidity("not_found",!1)})}}]).controller("homeController",["$scope","$http","$location",function(t,e,i){t.user&&!t.user.status&&i.url("/dashboard"),t.$watch("user.status",()=>{t.user&&!t.user.status&&i.url("/dashboard")}),e.get("/api/stat/").then(e=>{t.stat=e.data})}]).controller("unifiedDashboardController",["$scope","$http","$location",function(r,s,e){function a(){s.get("/api/user/anonymized_repositories").then(e=>{const t=e.data.map(e=>(e.pageView||(e.pageView=0),e.lastView||(e.lastView=""),e.options.terms=e.options.terms.filter(e=>e),e._type="repo",e._id=e.repoId,e._name=e.repoId,e._source=e.source.fullName,e._editUrl="/anonymize/"+e.repoId,e._viewUrl="/r/"+e.repoId+"/",e));s.get("/api/user/anonymized_pull_requests").then(e=>{e=e.data.map(e=>(e.pageView||(e.pageView=0),e.lastView||(e.lastView=""),e.options.terms=e.options.terms.filter(e=>e),e._type="pr",e._id=e.pullRequestId,e._name=e.pullRequestId,e._source=e.source.repositoryFullName+"#"+e.source.pullRequestId,e._editUrl="/pull-request-anonymize/"+e.pullRequestId,e._viewUrl="/pr/"+e.pullRequestId+"/",e.anonymizeDate=e.anonymizeDate,e));r.items=t.concat(e)},e=>{console.error(e)})},e=>{console.error(e)})}function o(i,n){s.get("/api/repo/"+i).then(e=>{for(const t of r.items)if("repo"===t._type&&t.repoId==i){t.status=e.data.status;break}"ready"==e.data.status||"error"==e.data.status||"removed"==e.data.status||"expired"==e.data.status?n(e.data):setTimeout(()=>o(i,n),2500)})}r.$on("$routeChangeStart",function(){$('[data-toggle="tooltip"]').tooltip("dispose")}),r.$watch("user.status",()=>{null==r.user&&e.url("/")}),null==r.user&&e.url("/"),setTimeout(()=>{$('[data-toggle="tooltip"]').tooltip()},250),r.items=[],r.search="",r.typeFilter="all",r.filters={status:{ready:!0,expired:!0,removed:!1}},r.orderBy="-anonymizeDate",s.get("/api/user/quota").then(e=>{r.quota=e.data,r.quota.storage.percent=r.quota.storage.total?100*r.quota.storage.used/r.quota.storage.total:100,r.quota.file.percent=r.quota.file.total?100*r.quota.file.used/r.quota.file.total:100,r.quota.repository.percent=r.quota.repository.total?100*r.quota.repository.used/r.quota.repository.total:100},console.error),a(),r.removeItem=t=>{const e="repo"===t._type?"repository":"pull request";if(confirm(`Are you sure that you want to remove the ${e} ${t._id}?`)){const n={title:`Removing ${t._id}...`,date:new Date,body:`The ${e} ${t._id} is going to be removed.`};r.toasts.push(n);var i="repo"===t._type?"/api/repo/"+t._id:"/api/pr/"+t._id;s.delete(i).then(()=>{"repo"===t._type?o(t._id,()=>{n.title=t._id+" is removed.",n.body=`The ${e} ${t._id} is removed.`,r.$apply()}):(n.title=t._id+" is removed.",n.body=`The ${e} ${t._id} is removed.`,a())},e=>{n.title=`Error during the removal of ${t._id}.`,n.body=e.body,a()})}},r.refreshItem=t=>{const e="repo"===t._type?"repository":"pull request",i={title:`Refreshing ${t._id}...`,date:new Date,body:`The ${e} ${t._id} is going to be refreshed.`};r.toasts.push(i);var n="repo"===t._type?`/api/repo/${t._id}/refresh`:`/api/pr/${t._id}/refresh`;s.post(n).then(()=>{"repo"===t._type?o(t._id,()=>{i.title=t._id+" is refreshed.",i.body=`The ${e} ${t._id} is refreshed.`,r.$apply()}):(i.title=t._id+" is refreshed.",i.body=`The ${e} ${t._id} is refreshed.`,a())},e=>{i.title=`Error during the refresh of ${t._id}.`,i.body=e.body,a()})},r.itemFilter=e=>("all"===r.typeFilter||e._type===r.typeFilter)&&0!=r.filters.status[e.status]&&(0==r.search.trim().length||!!(e._source&&-1<e._source.indexOf(r.search))||-1<e._id.indexOf(r.search))}]).controller("dashboardController",["$scope","$location",function(e,t){t.url("/dashboard")}]).controller("prDashboardController",["$scope","$location",function(e,t){t.url("/dashboard")}]).controller("statusController",["$scope","$http","$routeParams",function(t,e,i){t.repoId=i.repoId,t.repo=null,t.progress=0,t.getStatus=()=>{e.get("/api/repo/"+t.repoId,{repoId:t.repoId,repoUrl:t.repoUrl}).then(e=>{t.repo=e.data,"ready"==t.repo.status?t.progress=100:"queue"==t.repo.status?t.progress=10:"downloaded"==t.repo.status?t.progress=50:"download"==t.repo.status||"preparing"==t.repo.status?t.progress=25:"anonymizing"==t.repo.status&&(t.progress=75),"ready"!=t.repo.status&&"error"!=t.repo.status&&setTimeout(t.getStatus,2e3)},e=>{t.error=e.data.error})},t.getStatus()}]).controller("anonymizeController",["$scope","$http","$sce","$routeParams","$location","$translate",function(s,n,i,e,t,r){function a(e,t,i){s.anonymize&&s.anonymize[e]&&s.anonymize[e].$setValidity(t,i)}var o;async function l(){var e=parseGithubUrl(s.sourceUrl);try{u();var t=await n.get(`/api/repo/${e.owner}/${e.repo}/`,{params:{repositoryID:s.repositoryID}});s.details=t.data,s.repoId||(s.repoId=s.details.repo+"-"+generateRandomId(4)),await s.getBranches()}catch(e){throw e.data&&(r("ERRORS."+e.data.error).then(e=>{s.toasts.push({title:"Error",date:new Date,body:e}),s.error=e},console.error),d(e.data.error)),a("sourceUrl","missing",!1),e}}async function c(e){if(s.readme&&!e)return s.readme;var t=parseGithubUrl(s.sourceUrl);try{var i=await n.get(`/api/repo/${t.owner}/${t.repo}/readme`,{params:{force:!0===e?"1":"0",branch:s.source.branch,repositoryID:s.repositoryID}});s.readme=i.data}catch(e){s.readme=""}}function h(){if(s.anonymize&&s.anonymize.terms){a("terms","regex",!0),s.terms&&s.terms.match(/[-[\]{}()*+?.,\\^$|#]/g)&&a("terms","regex",!1);var n=/<?\b((https?|ftp|file):\/\/)[-A-Za-z0-9+&@#/%?=~_|!:,.;]+[-A-Za-z0-9+&@#/%=~_|]\b\/?>?/g;let e=s.readme;s.options.image||(e=e.replace(/!\[[^\]]*\]\((?<filename>.*?)(?=\"|\))(?<optionalpart>\".*\")?\)/g,"")),s.options.link||(e=e.replace(n,s.site_options.ANONYMIZATION_MASK));var t=document.location.protocol+"//"+document.location.host,r=(e=(e=(e=e.replace(new RegExp(`\\b${s.sourceUrl}/blob/${s.source.branch}\\b`,"gi"),t+"/r/"+s.repoId)).replace(new RegExp(`\\b${s.sourceUrl}/tree/${s.source.branch}\\b`,"gi"),t+"/r/"+s.repoId)).replace(new RegExp("\\b"+s.sourceUrl,"gi"),t+"/r/"+s.repoId),s.terms.split("\n"));for(let i=0;i<r.length;i++){let t=r[i];try{new RegExp(t,"gi")}catch{t=t.replace(/[-[\]{}()*+?.,\\^$|#]/g,"\\$&")}""!=t.trim()&&(e=(e=e.replace(n,e=>new RegExp(`\\b${t}\\b`,"gi").test(e)?s.site_options.ANONYMIZATION_MASK+"-"+(i+1):e)).replace(new RegExp(`\\b${t}\\b`,"gi"),s.site_options.ANONYMIZATION_MASK+"-"+(i+1)))}s.anonymize_readme=e;t=parseGithubUrl(s.sourceUrl),t=renderMD(s.anonymize_readme,`https://github.com/${t.owner}/${t.repo}/raw/${s.source.branch}/`);s.html_readme=i.trustAsHtml(t),setTimeout(Prism.highlightAll,150)}}function u(){a("repoId","used",!0),a("repoId","format",!0),a("pullRequestId","used",!0),a("pullRequestId","format",!0),a("sourceUrl","used",!0),a("sourceUrl","missing",!0),a("sourceUrl","access",!0),a("sourceUrl","github",!0),a("conference","activated",!0),a("terms","format",!0),a("terms","regex",!0)}function d(e){var t="pr"===s.detectedType?"pullRequestId":"repoId";switch(e){case"repoId_already_used":a(t,"used",!1);break;case"invalid_repoId":case"options_not_provided":a(t,"format",!1);break;case"repo_already_anonymized":a("sourceUrl","used",!1);break;case"invalid_terms_format":a("terms","format",!1);break;case"repo_not_found":a("sourceUrl","missing",!1);break;case"repo_not_accessible":a("sourceUrl","access",!1);break;case"conf_not_activated":a("conference","activated",!1)}}s.sourceUrl="",s.detectedType=null,s.repoId="",s.pullRequestId="",s.terms="",s.defaultTerms="",s.branches=[],s.source={branch:"",commit:""},s.options={expirationMode:"remove",expirationDate:new Date,update:!1,image:!0,pdf:!0,notebook:!0,link:!0,body:!0,title:!0,origin:!1,diff:!0,comments:!0,username:!0,date:!0},s.options.expirationDate.setDate(s.options.expirationDate.getDate()+90),s.anonymize_readme="",s.readme="",s.html_readme="",s.isUpdate=!1,o=()=>{e.repoId&&""!=e.repoId&&(s.isUpdate=!0,s.detectedType="repo",s.repoId=e.repoId,n.get("/api/repo/"+s.repoId).then(async e=>{s.sourceUrl="https://github.com/"+e.data.source.fullName,s.terms=e.data.options.terms.filter(e=>e).join("\n"),s.source=e.data.source,s.options=Object.assign({},s.options,e.data.options),s.conference=e.data.conference,s.repositoryID=e.data.source.repositoryID,e.data.options.expirationDate&&(s.options.expirationDate=new Date(e.data.options.expirationDate)),await Promise.all([l(),c()]),h(),s.$apply()},()=>{t.url("/404")}),s.$watch("anonymize",()=>{s.anonymize.repoId&&(s.anonymize.repoId.$$element[0].disabled=!0),s.anonymize.sourceUrl&&(s.anonymize.sourceUrl.$$element[0].disabled=!0)})),e.pullRequestId&&""!=e.pullRequestId&&(s.isUpdate=!0,s.detectedType="pr",s.pullRequestId=e.pullRequestId,n.get("/api/pr/"+s.pullRequestId).then(async e=>{s.sourceUrl="https://github.com/"+e.data.source.repositoryFullName+"/pull/"+e.data.source.pullRequestId,s.terms=e.data.options.terms.filter(e=>e).join("\n"),s.source=e.data.source,s.options=Object.assign({},s.options,e.data.options),s.conference=e.data.conference,e.data.options.expirationDate&&(s.options.expirationDate=new Date(e.data.options.expirationDate)),s.details=(await n.get(`/api/pr/${e.data.source.repositoryFullName}/`+e.data.source.pullRequestId)).data,s.$apply()},()=>{t.url("/404")}),s.$watch("anonymize",()=>{s.anonymize.pullRequestId&&(s.anonymize.pullRequestId.$$element[0].disabled=!0),s.anonymize.sourceUrl&&(s.anonymize.sourceUrl.$$element[0].disabled=!0)}))},n.get("/api/user/default").then(e=>{e=e.data;e.terms&&(s.defaultTerms=e.terms.join("\n")),s.options=Object.assign({},s.options,e.options),s.options.expirationDate=new Date(s.options.expirationDate),s.options.expirationDate.setDate(s.options.expirationDate.getDate()+90),o&&o()}),s.urlSelected=async()=>{s.terms=s.defaultTerms,s.repoId="",s.pullRequestId="",s.details=null,s.branches=[],s.source={type:"GitHubStream",branch:"",commit:""},s.anonymize_readme="",s.readme="",s.html_readme="",s.detectedType=null;try{var e=parseGithubUrl(s.sourceUrl);if(a("sourceUrl","github",!0),e.pullRequestId){s.detectedType="pr",s.source={repositoryFullName:e.owner+"/"+e.repo,pullRequestId:e.pullRequestId};var t=parseGithubUrl(s.sourceUrl);try{u();var i=await n.get(`/api/pr/${t.owner}/${t.repo}/`+t.pullRequestId);s.details=i.data,s.pullRequestId||(s.pullRequestId=t.repo+"-PR"+t.pullRequestId+"-"+generateRandomId(4))}catch(e){throw e.data&&(r("ERRORS."+e.data.error).then(e=>{s.toasts.push({title:"Error",date:new Date,body:e}),s.error=e},console.error),d(e.data.error)),a("sourceUrl","missing",!1),e}await 0}else s.detectedType="repo",await Promise.all([l(),c()]),h()}catch(e){return void a("sourceUrl","github",!1)}s.$apply(),$('[data-toggle="tooltip"]').tooltip()},$('[data-toggle="tooltip"]').tooltip(),s.$watch("options.update",e=>{"repo"===s.detectedType&&s.anonymize&&s.anonymize.commit&&(s.anonymize.commit.$$element[0].disabled=!!e)}),s.$watch("source.branch",async()=>{var e;"repo"===s.detectedType&&(e=s.branches.filter(e=>e.name==s.source.branch)[0],s.details&&s.details.hasPage&&s.anonymize&&s.anonymize.page&&(s.anonymize.page.$$element[0].disabled=s.details.pageSource.branch!=s.source.branch),e)&&(s.source.commit=e.commit,s.readme=e.readme,await c(),h(),s.$apply())}),s.getBranches=async e=>{var t=parseGithubUrl(s.sourceUrl),t=await n.get(`/api/repo/${t.owner}/${t.repo}/branches`,{params:{force:!0===e?"1":"0",repositoryID:s.repositoryID}}),t=(s.branches=t.data,s.source.branch||(s.source.branch=s.details.defaultBranch),s.branches.filter(e=>e.name==s.source.branch));0<t.length&&(s.source.commit=t[0].commit,s.readme=t[0].readme,await c(e)),s.$apply()},s.anonymizePrContent=function(e){if(e){var n=/<?\b((https?|ftp|file):\/\/)[-A-Za-z0-9+&@#/%?=~_|!:,.;]+[-A-Za-z0-9+&@#/%=~_|]\b\/?>?/g,r=(s.options.image||(e=e.replace(/!\[[^\]]*\]\((?<filename>.*?)(?=\"|\))(?<optionalpart>\".*\")?\)/g,"")),s.options.link||(e=e.replace(n,s.site_options.ANONYMIZATION_MASK)),s.terms.split("\n"));for(let i=0;i<r.length;i++){let t=r[i];try{new RegExp(t,"gi")}catch{t=t.replace(/[-[\]{}()*+?.,\\^$|#]/g,"\\$&")}""!=t.trim()&&(e=(e=e.replace(n,e=>new RegExp(`\\b${t}\\b`,"gi").test(e)?s.site_options.ANONYMIZATION_MASK+"-"+(i+1):e)).replace(new RegExp(`\\b${t}\\b`,"gi"),s.site_options.ANONYMIZATION_MASK+"-"+(i+1)))}}return e},s.anonymizeRepo=e=>{e.target.disabled=!0;var t=parseGithubUrl(s.sourceUrl),t={repoId:s.repoId,terms:s.terms.trim().split("\n").filter(e=>e),fullName:t.owner+"/"+t.repo,repository:s.sourceUrl,options:s.options,source:s.source,conference:s.conference},i=(s.details&&(t.options.pageSource=s.details.pageSource),u(),s.isUpdate?"/api/repo/"+s.repoId:"/api/repo/");n.post(i,t,{headers:{"Content-Type":"application/json"}}).then(()=>{window.location.href="/status/"+s.repoId},e=>{e.data&&(r("ERRORS."+e.data.error).then(e=>{s.error=e},console.error),d(e.data.error))}).finally(()=>{e.target.disabled=!1,s.$apply()})},s.anonymizePullRequest=e=>{e.target.disabled=!0;var t=parseGithubUrl(s.sourceUrl),t={pullRequestId:s.pullRequestId,terms:s.terms.trim().split("\n").filter(e=>e),source:{repositoryFullName:t.owner+"/"+t.repo,pullRequestId:t.pullRequestId},options:s.options,conference:s.conference},i=(u(),s.isUpdate?"/api/pr/"+s.pullRequestId:"/api/pr/");n.post(i,t,{headers:{"Content-Type":"application/json"}}).then(()=>{window.location.href="/pr/"+s.pullRequestId},e=>{e.data&&(r("ERRORS."+e.data.error).then(e=>{s.error=e},console.error),d(e.data.error))}).finally(()=>{e.target.disabled=!1,s.$apply()})},s.$watch("conference",()=>{s.conference&&n.get("/api/conferences/"+s.conference).then(e=>{s.conference_data=e.data,s.conference_data.startDate=new Date(s.conference_data.startDate),s.conference_data.endDate=new Date(s.conference_data.endDate),s.options.expirationDate=new Date(s.conference_data.endDate),s.options.expirationMode="remove",s.options.update=s.conference_data.options.update,s.options.image=s.conference_data.options.image,s.options.pdf=s.conference_data.options.pdf,s.options.notebook=s.conference_data.options.notebook,s.options.link=s.conference_data.options.link},()=>{s.conference_data=null})}),s.$watch("terms",()=>{"repo"===s.detectedType&&h()}),s.$watch("options.image",()=>{"repo"===s.detectedType&&h()}),s.$watch("options.link",()=>{"repo"===s.detectedType&&h()})}]).controller("exploreController",["$scope","$http","$location","$routeParams","$sce","PDFViewerService",function(s,a,o,i,l,c){s.files=[];const h={yml:"yaml",txt:"text",py:"python",js:"javascript",ts:"typescript"},u=["license","txt"],d=["png","jpg","jpeg","gif","svg","ico","bmp","tiff","tif","webp","avif","heif","heic"],p=["wav","mp3","ogg","wma","flac","aac","m4a"],g=["mp4","avi","webm","mov","mpg","mpeg","mkv","flv","wmv","3gp","3g2","m4v","f4v","f4p","f4a","f4b"];function r(){s.content="",s.file=s.files.filter(e=>e.name==s.paths[s.paths.length-1]&&e.path==s.paths.slice(0,s.paths.length-1).join("/"))[0];let e="0",t=(s.file&&s.file.sha&&(e=s.file.sha),s.url=`/api/repo/${s.repoId}/file/${s.filePath}?v=`+e,s.filePath.toLowerCase());var i=t.lastIndexOf("."),i=(-1<i&&(t=t.substring(i+1)),s.aceOption={readOnly:!0,useWrapMode:!0,showGutter:!0,theme:"chrome",useSoftTab:!0,showPrintMargin:!1,tabSize:2,highlightSelectedWord:!1,fontSize:15,keyBinding:"vscode",fullLineSelection:!0,highlightActiveLine:!1,highlightGutterLine:!1,cursor:"hide",showInvisibles:!1,showIndentGuides:!0,enableBehaviours:!0,fadeFoldWidgets:!1,mode:(i=t,h[i]||i),onLoad:function(i){if(window.location.hash&&window.location.hash.match(/^#L\d+/)){let e=0,t=0;t=-1<window.location.hash.indexOf("-")?(n=window.location.hash.match(/^#L(\d+)-L(\d+)/),e=parseInt(n[1])-1,parseInt(n[2])-1):e=parseInt(window.location.hash.substring(2))-1;var n=ace.require("ace/range").Range;i.session.addMarker(new n(e,0,t,1),"highlighted-line","fullLine"),setTimeout(()=>{i.scrollToLine(e,!0,!0,function(){})},100)}i.setFontSize(s.aceOption.fontSize),i.setReadOnly(s.aceOption.readOnly),i.setKeyboardHandler(s.aceOption.keyBinding),i.setSelectionStyle(s.aceOption.fullLineSelection?"line":"text"),i.setOption("displayIndentGuides",!0),i.setHighlightActiveLine(s.aceOption.highlightActiveLine),"hide"==s.aceOption.cursor&&(i.renderer.$cursorLayer.element.style.display="none"),i.setHighlightGutterLine(s.aceOption.highlightGutterLine),i.setShowInvisibles(s.aceOption.showInvisibles),i.setDisplayIndentGuides(s.aceOption.showIndentGuides),i.renderer.setShowPrintMargin(s.aceOption.showPrintMargin),i.setHighlightSelectedWord(s.aceOption.highlightSelectedWord),i.session.setUseSoftTabs(s.aceOption.useSoftTab),i.session.setTabSize(s.aceOption.tabSize),i.setBehavioursEnabled(s.aceOption.enableBehaviours),i.setFadeFoldWidgets(s.aceOption.fadeFoldWidgets)}},s.$on("dark-mode",(e,t)=>{s.aceOption.theme=t?"nord_dark":"chrome"}),s.isDarkMode&&(s.aceOption.theme="nord_dark"),s.type="pdf"==(i=t)?(s.instance=c.Instance("viewer"),"pdf"):"md"==i?"md":"org"==i?"org":"ipynb"==i?"IPython":-1<u.indexOf(i)?"text":-1<d.indexOf(i)?"image":-1<g.indexOf(i)?"media":-1<p.indexOf(i)?"audio":"code",s.filePath),n=s.file;if(i){const r=s.type;s.type="loading",s.content="loading",a.get(`/api/repo/${s.repoId}/file/${i}?v=`+n.sha,{transformResponse:e=>e}).then(e=>{var t;s.type=r,s.content=e.data,""==s.content&&(s.content=null),"md"==s.type&&(s.content=l.trustAsHtml(renderMD(e.data,o.url()+"/../")),s.type="html"),"org"==s.type&&(t=contentAbs2Relative(e.data),t=(new Org.Parser).parse(t).convert(Org.ConverterHTML,{headerOffset:1,exportFromLineNumber:!1,suppressSubScriptHandling:!0,suppressAutoLink:!1}),s.content=l.trustAsHtml(t.toString()),s.type="html"),"code"==s.type&&"application/octet-stream"==e.headers("content-type")&&(s.type="binary",s.content="binary"),setTimeout(()=>{Prism.highlightAll()},50)},t=>{s.type="error",s.content="unknown_error";try{t.data=JSON.parse(t.data),t.data.error?s.content=t.data.error:s.content=t.data}catch(e){console.log(t),-1==t.status?s.content="request_error":502==t.status&&(s.content="unreachable")}})}else s.type="error",s.content="no_file_selected"}function n(){var t;s.repoId=i.repoId,s.type="loading",s.filePath=i.path||"",s.paths=s.filePath.split("/"),t=async e=>{for(let e=0;e<s.paths.length;e++){var t=0<e?s.paths.slice(0,e).join("/"):"";await s.getFiles(t)}1==s.files.length&&""==s.files[0].name?(s.files=[],s.type="empty",s.$apply()):s.$apply(()=>{if(""==s.paths[0]){var i={};for(const e of s.files)-1<e.name.toLowerCase().indexOf("readme")&&(i[e.name.toLowerCase()]=e.name);let t=null;for(const n of["readme.md","readme.txt","readme.org","readme.1st","readme"])if(i[n]){t=n;break}if(t=!t&&0<Object.keys(i).length?Object.keys(i)[0]:t){let e=o.url();"/"!=e[e.length-1]&&(e+="/"),o.url(e+i[t])}}r()})},a.get(`/api/repo/${s.repoId}/options`).then(e=>{s.options=e.data,s.options.url?window.location=s.options.url:t&&t(e.data)},e=>{s.type="error",s.content=e.data.error})}s.$on("$routeUpdate",function(e,t){if((i.path||"")!=s.filePath){if(s.filePath=i.path||"",s.paths=s.filePath.split("/").filter(e=>e&&0<e.trim().length),s.repoId!=i.repoId)return n();r()}}),s.getFiles=async function(e){try{var t=await a.get(`/api/repo/${s.repoId}/files/?path=${e}&v=`+s.options.lastUpdateDate);return s.files.push(...t.data),t.data}catch(e){s.type="error",s.content=e.data.error,s.files=[]}},n()}]).controller("pullRequestController",["$scope","$http","$location","$routeParams","$sce",function(i,n,e,t,r){i.pullRequestId=t.pullRequestId,i.type="loading",async function(t){n.get(`/api/pr/${i.pullRequestId}/options`).then(e=>{i.options=e.data,i.options.url?window.location=i.options.url:t&&t(e.data)},e=>{i.type="error",i.content=e.data.error})}(e=>{!async function(t){n.get(`/api/pr/${i.pullRequestId}/content`).then(e=>{i.details=e.data,t&&t(e.data)},e=>{i.type="error",i.content=e.data.error})}()})}]).controller("conferencesController",["$scope","$http","$location",function(i,n,e){function r(){n.get("/api/conferences/").then(e=>{i.conferences=e.data||[]},e=>{console.error(e)})}i.$watch("user.status",()=>{null==i.user&&e.url("/")}),null==i.user&&e.url("/"),i.conferences=[],i.search="",i.filters={status:{ready:!0,expired:!1,removed:!1}},i.orderBy="name",i.removeConference=function(e){if(confirm(`Are you sure that you want to remove the conference ${e.name}? All the repositories linked to this conference will expire.`)){const t={title:`Removing ${e.name}...`,date:new Date,body:`The conference ${e.name} is going to be removed.`};i.toasts.push(t),n.delete("/api/conferences/"+e.conferenceID).then(()=>{t.title=e.name+" is removed.",t.body=`The conference ${e.name} is removed.`,r()})}},r(),i.conferenceFilter=e=>0!=i.filters.status[e.status]&&(0==i.search.trim().length||-1<e.name.indexOf(i.search)||-1<e.conferenceID.indexOf(i.search))}]).controller("newConferenceController",["$scope","$http","$location","$routeParams",function(i,e,n,t){i.$watch("user.status",()=>{null==i.user&&n.url("/")}),null==i.user&&n.url("/"),i.plans=[],i.editionMode=!1,t.conferenceId&&(i.editionMode=!0,e.get("/api/conferences/"+t.conferenceId).then(e=>{i.options=e.data,i.options.startDate=new Date(i.options.startDate),i.options.endDate=new Date(i.options.endDate)})),e.get("/api/conferences/plans").then(e=>{i.plans=e.data,i.plan=i.plans.filter(e=>e.id==i.options.plan.planID)[0]});var t=new Date,r=(t.setDate(1),t.setMonth(t.getMonth()+1),new Date);r.setMonth(t.getMonth()+7,0),i.options={startDate:t,endDate:r,plan:{planID:"free_conference"},options:{link:!0,image:!0,pdf:!0,notebook:!0,update:!0,page:!0}},i.plan=null,i.$watch("options.plan.planID",()=>{i.plan=i.plans.filter(e=>e.id==i.options.plan.planID)[0]}),i.submit=function(){const t={title:`Creating ${i.options.name}...`,date:new Date,body:`The conference ${i.options.conferenceID} is in creation.`};i.editionMode&&(t.title=`Updating ${i.options.name}...`,t.body=`The conference '${i.options.conferenceID}' is updating.`),i.toasts.push(t),i.conference.name.$setValidity("required",!0),i.conference.conferenceID.$setValidity("pattern",!0),i.conference.conferenceID.$setValidity("required",!0),i.conference.conferenceID.$setValidity("used",!0),i.conference.startDate.$setValidity("required",!0),i.conference.startDate.$setValidity("invalid",!0),i.conference.endDate.$setValidity("required",!0),i.conference.endDate.$setValidity("invalid",!0),i.conference.$setValidity("error",!0),e.post("/api/conferences/"+(i.editionMode?i.options.conferenceID:""),i.options).then(()=>{i.editionMode?(t.title=i.options.name+" updated",t.body=`The conference '${i.options.conferenceID}' is updated.`):(t.title=i.options.name+" created",t.body=`The conference '${i.options.conferenceID}' is created.`),n.url("/conference/"+i.options.conferenceID)},e=>{switch(e.data.error){case"conf_name_missing":i.conference.name.$setValidity("required",!1);break;case"conf_id_missing":i.conference.conferenceID.$setValidity("required",!1);break;case"conf_id_format":i.conference.conferenceID.$setValidity("pattern",!1);break;case"conf_id_used":i.conference.conferenceID.$setValidity("used",!1);break;case"conf_start_date_missing":i.conference.startDate.$setValidity("required",!1);break;case"conf_end_date_missing":i.conference.endDate.$setValidity("required",!1);break;case"conf_start_date_invalid":i.conference.startDate.$setValidity("invalid",!1);break;case"conf_end_date_invalid":i.conference.endDate.$setValidity("invalid",!1);break;default:i.conference.$setValidity("error",!1)}i.removeToast(t)})}}]).controller("conferenceController",["$scope","$http","$location","$routeParams",function(t,e,i,n){t.$watch("user.status",()=>{null==t.user&&i.url("/")}),null==t.user&&i.url("/"),t.conference=null,t.search="",t.filters={status:{ready:!0,expired:!1,removed:!1}},t.orderBy="-anonymizeDate",t.repoFiler=e=>0!=t.filters.status[e.status]&&(0==t.search.trim().length||-1<e.source.fullName.indexOf(t.search)||-1<e.repoId.indexOf(t.search)),e.get("/api/conferences/"+n.conferenceId).then(e=>{t.conference=e.data})}]),angular.module("admin",[]).controller("repositoriesAdminController",["$scope","$http","$location",function(n,r,e){function t(){r.get("/api/admin/repos",{params:n.query}).then(e=>{n.total=e.data.total,n.totalPage=Math.ceil(e.data.total/n.query.limit),n.repositories=e.data.results},e=>{console.error(e)})}n.Math=Math,n.$watch("user.status",()=>{null==n.user&&e.url("/")}),null==n.user&&e.url("/"),n.repositories=[],n.total=-1,n.totalPage=0,n.query={page:1,limit:25,sort:"lastView",search:"",ready:!1,expired:!1,removed:!1,error:!0,preparing:!0},n.removeCache=e=>{r.delete("/api/admin/repos/"+e.repoId).then(e=>{n.$apply()},e=>{console.error(e)})},n.updateRepository=t=>{const i={title:`Refreshing ${t.repoId}...`,date:new Date,body:`The repository ${t.repoId} is going to be refreshed.`};n.toasts.push(i),t.s,r.post(`/api/repo/${t.repoId}/refresh`).then(e=>{"ready"==e.data.status?i.title=t.repoId+" is refreshed.":i.title=`Refreshing of ${t.repoId}.`},e=>{i.title=`Error during the refresh of ${t.repoId}.`,i.body=e.body})},t();let i=null;n.$watch("query",()=>{clearTimeout(i),i=setTimeout(t,500)},!0)}]).controller("usersAdminController",["$scope","$http","$location",function(t,e,i){function n(){e.get("/api/admin/users",{params:t.query}).then(e=>{t.total=e.data.total,t.totalPage=Math.ceil(e.data.total/t.query.limit),t.users=e.data.results,t.$apply()},e=>{console.error(e)})}t.Math=Math,t.$watch("user.status",()=>{null==t.user&&i.url("/")}),null==t.user&&i.url("/"),t.users=[],t.total=-1,t.totalPage=0,t.query={page:1,limit:25,sort:"username",search:""},n();let r=null;t.$watch("query",()=>{clearTimeout(r),r=setTimeout(n,500)},!0)}]).controller("userAdminController",["$scope","$http","$location","$routeParams",function(n,r,e,t){function i(e){r.get("/api/admin/users/"+e+"/repos",{}).then(e=>{n.repositories=e.data},e=>{console.error(e)})}var s;n.$watch("user.status",()=>{null==n.user&&e.url("/")}),null==n.user&&e.url("/"),n.userInfo,n.repositories=[],n.search="",n.filters={status:{ready:!0,expired:!1,removed:!1}},n.orderBy="-anonymizeDate",n.repoFiler=e=>0!=n.filters.status[e.status]&&(0==n.search.trim().length||-1<e.source.fullName.indexOf(n.search)||-1<e.repoId.indexOf(n.search)),s=t.username,r.get("/api/admin/users/"+s,{}).then(e=>{n.userInfo=e.data},e=>{console.error(e)}),i(t.username),n.removeCache=e=>{r.delete("/api/admin/repos/"+e.repoId).then(e=>{n.$apply()},e=>{console.error(e)})},n.updateRepository=t=>{const i={title:`Refreshing ${t.repoId}...`,date:new Date,body:`The repository ${t.repoId} is going to be refreshed.`};n.toasts.push(i),t.s,r.post(`/api/repo/${t.repoId}/refresh`).then(e=>{"ready"==e.data.status?i.title=t.repoId+" is refreshed.":i.title=`Refreshing of ${t.repoId}.`},e=>{i.title=`Error during the refresh of ${t.repoId}.`,i.body=e.body})},n.getGitHubRepositories=e=>{r.get(`/api/user/${n.userInfo.username}/all_repositories`,{params:{force:"1"}}).then(e=>{n.userInfo.repositories=e.data})};let a=null;n.$watch("query",()=>{clearTimeout(a),a=setTimeout(()=>{i(t.username)},500)},!0)}]).controller("conferencesAdminController",["$scope","$http","$location",function(t,e,i){function n(){e.get("/api/admin/conferences",{params:t.query}).then(e=>{t.total=e.data.total,t.totalPage=Math.ceil(e.data.total/t.query.limit),t.conferences=e.data.results,t.$apply()},e=>{console.error(e)})}t.Math=Math,t.$watch("user.status",()=>{null==t.user&&i.url("/")}),null==t.user&&i.url("/"),t.conferences=[],t.total=-1,t.totalPage=0,t.query={page:1,limit:25,sort:"name",search:""},n();let r=null;t.$watch("query",()=>{clearTimeout(r),r=setTimeout(n,500)},!0)}]).controller("queuesAdminController",["$scope","$http","$location",function(i,n,e){function r(){n.get("/api/admin/queues",{params:i.query}).then(e=>{i.downloadJobs=e.data.downloadQueue,i.removeJobs=e.data.removeQueue,i.removeCaches=e.data.cacheQueue},e=>{console.error(e)})}i.$watch("user.status",()=>{null==i.user&&e.url("/")}),null==i.user&&e.url("/"),i.downloadJobs=[],i.removeJobs=[],r(),i.removeJob=function(e,t){n.delete(`/api/admin/queue/${e}/`+t.id,{params:i.query}).then(e=>{r()},e=>{console.error(e)})},i.retryJob=function(e,t){n.post(`/api/admin/queue/${e}/`+t.id,{params:i.query}).then(e=>{r()},e=>{console.error(e)})}}]); |