diff --git a/_app/immutable/chunks/0-2058208a.js b/_app/immutable/chunks/0-2058208a.js new file mode 100644 index 00000000..333a6e7f --- /dev/null +++ b/_app/immutable/chunks/0-2058208a.js @@ -0,0 +1 @@ +import{_ as r}from"./_layout-fd68092a.js";import{default as t}from"../components/pages/_layout.svelte-f8f53e6f.js";export{t as component,r as shared}; diff --git a/_app/immutable/chunks/1-eee82ebd.js b/_app/immutable/chunks/1-eee82ebd.js new file mode 100644 index 00000000..85c64ea6 --- /dev/null +++ b/_app/immutable/chunks/1-eee82ebd.js @@ -0,0 +1 @@ +import{default as t}from"../components/error.svelte-405ae70a.js";export{t as component}; diff --git a/_app/immutable/chunks/2-aab679b8.js b/_app/immutable/chunks/2-aab679b8.js new file mode 100644 index 00000000..c7a7934e --- /dev/null +++ b/_app/immutable/chunks/2-aab679b8.js @@ -0,0 +1 @@ +import{default as t}from"../components/pages/_page.svelte-e75c059d.js";export{t as component}; diff --git a/_app/immutable/chunks/3-3d9fad21.js b/_app/immutable/chunks/3-3d9fad21.js new file mode 100644 index 00000000..79ee5280 --- /dev/null +++ b/_app/immutable/chunks/3-3d9fad21.js @@ -0,0 +1 @@ +import{default as t}from"../components/pages/edit/_page.svelte-ba485e22.js";export{t as component}; diff --git a/_app/immutable/chunks/4-30357cf4.js b/_app/immutable/chunks/4-30357cf4.js new file mode 100644 index 00000000..7ee26410 --- /dev/null +++ b/_app/immutable/chunks/4-30357cf4.js @@ -0,0 +1 @@ +import{default as t}from"../components/pages/view/_page.svelte-e455fd91.js";export{t as component}; diff --git a/_app/immutable/chunks/index-55f02416.js b/_app/immutable/chunks/index-55f02416.js new file mode 100644 index 00000000..071ed2eb --- /dev/null +++ b/_app/immutable/chunks/index-55f02416.js @@ -0,0 +1,4 @@ +function m(){}const ut=t=>t;function lt(t,n){for(const e in n)t[e]=n[e];return t}function Q(t){return t()}function G(){return Object.create(null)}function b(t){t.forEach(Q)}function D(t){return typeof t=="function"}function at(t,n){return t!=t?n==n:t!==n||t&&typeof t=="object"||typeof t=="function"}function ft(t){return Object.keys(t).length===0}function F(t,...n){if(t==null)return m;const e=t.subscribe(...n);return e.unsubscribe?()=>e.unsubscribe():e}function Tt(t){let n;return F(t,e=>n=e)(),n}function Bt(t,n,e){t.$$.on_destroy.push(F(n,e))}function Ft(t,n,e,i){if(t){const s=U(t,n,e,i);return t[0](s)}}function U(t,n,e,i){return t[1]&&i?lt(e.ctx.slice(),t[1](i(n))):e.ctx}function Ht(t,n,e,i){if(t[2]&&i){const s=t[2](i(e));if(n.dirty===void 0)return s;if(typeof s=="object"){const l=[],r=Math.max(n.dirty.length,s.length);for(let o=0;o32){const n=[],e=t.ctx.length/32;for(let i=0;iwindow.performance.now():()=>Date.now(),H=V?t=>requestAnimationFrame(t):m;const w=new Set;function X(t){w.forEach(n=>{n.c(t)||(w.delete(n),n.f())}),w.size!==0&&H(X)}function dt(t){let n;return w.size===0&&H(X),{promise:new Promise(e=>{w.add(n={c:t,f:e})}),abort(){w.delete(n)}}}let O=!1;function ht(){O=!0}function mt(){O=!1}function pt(t,n,e,i){for(;t>1);e(s)<=i?t=s+1:n=s}return t}function yt(t){if(t.hydrate_init)return;t.hydrate_init=!0;let n=t.childNodes;if(t.nodeName==="HEAD"){const u=[];for(let c=0;c0&&n[e[s]].claim_order<=c?s+1:pt(1,s,a=>n[e[a]].claim_order,c))-1;i[u]=e[_]+1;const f=_+1;e[f]=u,s=Math.max(f,s)}const l=[],r=[];let o=n.length-1;for(let u=e[s]+1;u!=0;u=i[u-1]){for(l.push(n[u-1]);o>=u;o--)r.push(n[o]);o--}for(;o>=0;o--)r.push(n[o]);l.reverse(),r.sort((u,c)=>u.claim_order-c.claim_order);for(let u=0,c=0;u=l[c].claim_order;)c++;const _=ct.removeEventListener(n,e,i)}function Yt(t){return function(n){return n.stopPropagation(),t.call(this,n)}}function Zt(t,n,e){e==null?t.removeAttribute(n):t.getAttribute(n)!==e&&t.setAttribute(n,e)}function tn(t){return t===""?null:+t}function vt(t){return Array.from(t.childNodes)}function Et(t){t.claim_info===void 0&&(t.claim_info={last_index:0,total_claimed:0})}function nt(t,n,e,i,s=!1){Et(t);const l=(()=>{for(let r=t.claim_info.last_index;r=0;r--){const o=t[r];if(n(o)){const u=e(o);return u===void 0?t.splice(r,1):t[r]=u,s?u===void 0&&t.claim_info.last_index--:t.claim_info.last_index=r,o}}return i()})();return l.claim_order=t.claim_info.total_claimed,t.claim_info.total_claimed+=1,l}function et(t,n,e,i){return nt(t,s=>s.nodeName===n,s=>{const l=[];for(let r=0;rs.removeAttribute(r))},()=>i(n))}function nn(t,n,e){return et(t,n,e,tt)}function en(t,n,e){return et(t,n,e,wt)}function Nt(t,n){return nt(t,e=>e.nodeType===3,e=>{const i=""+n;if(e.data.startsWith(i)){if(e.data.length!==i.length)return e.splitText(i.length)}else e.data=i},()=>I(n),!0)}function rn(t){return Nt(t," ")}function sn(t,n){n=""+n,t.wholeText!==n&&(t.data=n)}function cn(t,n){t.value=n==null?"":n}function on(t,n,e,i){e===null?t.style.removeProperty(n):t.style.setProperty(n,e,i?"important":"")}function un(t,n,e){t.classList[e?"add":"remove"](n)}function it(t,n,{bubbles:e=!1,cancelable:i=!1}={}){const s=document.createEvent("CustomEvent");return s.initCustomEvent(t,e,i,n),s}function ln(t,n){return new t(n)}const M=new Map;let P=0;function At(t){let n=5381,e=t.length;for(;e--;)n=(n<<5)-n^t.charCodeAt(e);return n>>>0}function kt(t,n){const e={stylesheet:bt(n),rules:{}};return M.set(t,e),e}function J(t,n,e,i,s,l,r,o=0){const u=16.666/i;let c=`{ +`;for(let g=0;g<=1;g+=u){const $=n+(e-n)*l(g);c+=g*100+`%{${r($,1-$)}} +`}const _=c+`100% {${r(e,1-e)}} +}`,f=`__svelte_${At(_)}_${o}`,a=Y(t),{stylesheet:d,rules:h}=M.get(a)||kt(a,t);h[f]||(h[f]=!0,d.insertRule(`@keyframes ${f} ${_}`,d.cssRules.length));const y=t.style.animation||"";return t.style.animation=`${y?`${y}, `:""}${f} ${i}ms linear ${s}ms 1 both`,P+=1,f}function St(t,n){const e=(t.style.animation||"").split(", "),i=e.filter(n?l=>l.indexOf(n)<0:l=>l.indexOf("__svelte")===-1),s=e.length-i.length;s&&(t.style.animation=i.join(", "),P-=s,P||Ct())}function Ct(){H(()=>{P||(M.forEach(t=>{const{ownerNode:n}=t.stylesheet;n&&Z(n)}),M.clear())})}let A;function N(t){A=t}function W(){if(!A)throw new Error("Function called outside component initialization");return A}function an(t){W().$$.on_mount.push(t)}function fn(t){W().$$.after_update.push(t)}function _n(){const t=W();return(n,e,{cancelable:i=!1}={})=>{const s=t.$$.callbacks[n];if(s){const l=it(n,e,{cancelable:i});return s.slice().forEach(r=>{r.call(t,l)}),!l.defaultPrevented}return!0}}function dn(t,n){const e=t.$$.callbacks[n.type];e&&e.slice().forEach(i=>i.call(this,n))}const E=[],K=[],C=[],T=[],rt=Promise.resolve();let B=!1;function st(){B||(B=!0,rt.then(ct))}function hn(){return st(),rt}function z(t){C.push(t)}function mn(t){T.push(t)}const L=new Set;let S=0;function ct(){const t=A;do{for(;S{v=null})),v}function R(t,n,e){t.dispatchEvent(it(`${n?"intro":"outro"}${e}`))}const j=new Set;let p;function pn(){p={r:0,c:[],p}}function yn(){p.r||b(p.c),p=p.p}function Pt(t,n){t&&t.i&&(j.delete(t),t.i(n))}function gn(t,n,e,i){if(t&&t.o){if(j.has(t))return;j.add(t),p.c.push(()=>{j.delete(t),i&&(e&&t.d(1),i())}),t.o(n)}else i&&i()}const zt={duration:0};function bn(t,n,e,i){let s=n(t,e),l=i?0:1,r=null,o=null,u=null;function c(){u&&St(t,u)}function _(a,d){const h=a.b-l;return d*=Math.abs(h),{a:l,b:a.b,d:h,duration:d,start:a.start,end:a.start+d,group:a.group}}function f(a){const{delay:d=0,duration:h=300,easing:y=ut,tick:g=m,css:$}=s||zt,q={start:_t()+d,b:a};a||(q.group=p,p.r+=1),r||o?o=q:($&&(c(),u=J(t,l,a,h,d,y,$)),a&&g(0,1),r=_(q,h),z(()=>R(t,a,"start")),dt(k=>{if(o&&k>o.start&&(r=_(o,h),o=null,R(t,r.b,"start"),$&&(c(),u=J(t,l,r.b,r.duration,0,y,s.css))),r){if(k>=r.end)g(l=r.b,1-l),R(t,r.b,"end"),o||(r.b?c():--r.group.r||b(r.group.c)),r=null;else if(k>=r.start){const ot=k-r.start;l=r.a+r.d*y(ot/r.duration),g(l,1-l)}}return!!(r||o)}))}return{run(a){D(s)?Mt().then(()=>{s=s(),f(a)}):f(a)},end(){c(),r=o=null}}}function $n(t,n,e){const i=t.$$.props[n];i!==void 0&&(t.$$.bound[i]=e,e(t.$$.ctx[i]))}function xn(t){t&&t.c()}function wn(t,n){t&&t.l(n)}function Dt(t,n,e,i){const{fragment:s,after_update:l}=t.$$;s&&s.m(n,e),i||z(()=>{const r=t.$$.on_mount.map(Q).filter(D);t.$$.on_destroy?t.$$.on_destroy.push(...r):b(r),t.$$.on_mount=[]}),l.forEach(z)}function Ot(t,n){const e=t.$$;e.fragment!==null&&(b(e.on_destroy),e.fragment&&e.fragment.d(n),e.on_destroy=e.fragment=null,e.ctx=[])}function qt(t,n){t.$$.dirty[0]===-1&&(E.push(t),st(),t.$$.dirty.fill(0)),t.$$.dirty[n/31|0]|=1<{const h=d.length?d[0]:a;return c.ctx&&s(c.ctx[f],c.ctx[f]=h)&&(!c.skip_bound&&c.bound[f]&&c.bound[f](h),_&&qt(t,f)),a}):[],c.update(),_=!0,b(c.before_update),c.fragment=i?i(c.ctx):!1,n.target){if(n.hydrate){ht();const f=vt(n.target);c.fragment&&c.fragment.l(f),f.forEach(Z)}else c.fragment&&c.fragment.c();n.intro&&Pt(t.$$.fragment),Dt(t,n.target,n.anchor,n.customElement),mt(),ct()}N(u)}class En{$destroy(){Ot(this,1),this.$destroy=m}$on(n,e){if(!D(e))return m;const i=this.$$.callbacks[n]||(this.$$.callbacks[n]=[]);return i.push(e),()=>{const s=i.indexOf(e);s!==-1&&i.splice(s,1)}}$set(n){this.$$set&&!ft(n)&&(this.$$.skip_bound=!0,this.$$set(n),this.$$.skip_bound=!1)}}const x=[];function Lt(t,n){return{subscribe:Rt(t,n).subscribe}}function Rt(t,n=m){let e;const i=new Set;function s(o){if(at(t,o)&&(t=o,e)){const u=!x.length;for(const c of i)c[1](),x.push(c,t);if(u){for(let c=0;c{i.delete(c),i.size===0&&(e(),e=null)}}return{set:s,update:l,subscribe:r}}function Nn(t,n,e){const i=!Array.isArray(t),s=i?[t]:t,l=n.length<2;return Lt(e,r=>{let o=!1;const u=[];let c=0,_=m;const f=()=>{if(c)return;_();const d=n(i?u[0]:u,r);l?r(d):_=D(d)?d:m},a=s.map((d,h)=>F(d,y=>{u[h]=y,c&=~(1<{c|=1<r[a]})}}}return Object.freeze(Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}))}var v={};function _(n,e,t){const r=/^localhost$|^127(?:\.[0-9]+){0,2}\.[0-9]+$|^(?:0*:)*?:?0*1$/.test(location.hostname)||location.protocol==="file:";if(!e.trackLocalhost&&r)return console.warn("[Plausible] Ignoring event because website is running locally");try{if(window.localStorage.plausible_ignore==="true")return console.warn('[Plausible] Ignoring event because "plausible_ignore" is set to "true" in localStorage')}catch{}const a={n,u:e.url,d:e.domain,r:e.referrer,w:e.deviceWidth,h:e.hashMode?1:0,p:t&&t.props?JSON.stringify(t.props):void 0},l=new XMLHttpRequest;l.open("POST",`${e.apiHost}/api/event`,!0),l.setRequestHeader("Content-Type","text/plain"),l.send(JSON.stringify(a)),l.onreadystatechange=()=>{l.readyState===4&&t&&t.callback&&t.callback()}}function k(n){const e=()=>({hashMode:!1,trackLocalhost:!1,url:location.href,domain:location.hostname,referrer:document.referrer||null,deviceWidth:window.innerWidth,apiHost:"https://plausible.io",...n}),t=(i,s,c)=>{_(i,{...e(),...c},s)},r=(i,s)=>{t("pageview",s,i)};return{trackEvent:t,trackPageview:r,enableAutoPageviews:()=>{const i=()=>r(),s=history.pushState;return s&&(history.pushState=function(c,f,u){s.apply(this,[c,f,u]),i()},addEventListener("popstate",i)),n&&n.hashMode&&addEventListener("hashchange",i),r(),function(){s&&(history.pushState=s,removeEventListener("popstate",i)),n&&n.hashMode&&removeEventListener("hashchange",i)}},enableAutoOutboundTracking:(i=document,s={subtree:!0,childList:!0,attributes:!0,attributeFilter:["href"]})=>{function c(o){t("Outbound Link: Click",{props:{url:this.href}}),typeof process<"u"&&process,setTimeout(()=>{location.href=this.href},150),o.preventDefault()}const f=new Set;function u(o){o instanceof HTMLAnchorElement?o.host!==location.host&&(o.addEventListener("click",c),f.add(o)):"querySelectorAll"in o&&o.querySelectorAll("a").forEach(u)}function h(o){o instanceof HTMLAnchorElement?(o.removeEventListener("click",c),f.delete(o)):"querySelectorAll"in o&&o.querySelectorAll("a").forEach(h)}const g=new MutationObserver(o=>{o.forEach(p=>{p.type==="attributes"?(h(p.target),u(p.target)):p.type==="childList"&&(p.addedNodes.forEach(u),p.removedNodes.forEach(h))})});return i.querySelectorAll("a").forEach(u),g.observe(i,s),function(){f.forEach(p=>{p.removeEventListener("click",c)}),f.clear(),g.disconnect()}}}}const S=Object.freeze(Object.defineProperty({__proto__:null,default:k},Symbol.toStringTag,{value:"Module"})),E=y(S);var d=b&&b.__assign||function(){return d=Object.assign||function(n){for(var e,t=1,r=arguments.length;tn)}function a(n){t=!1,e.set(n)}function o(n){let i;return e.subscribe(c=>{(i===void 0||t&&c!==i)&&n(i=c)})}return{notify:r,set:a,subscribe:o}}function p(){const{set:s,subscribe:e}=u(!1);let t;async function r(){clearTimeout(t);const a=await fetch(`${d}/_app/version.json`,{headers:{pragma:"no-cache","cache-control":"no-cache"}});if(a.ok){const{version:o}=await a.json(),n=o!=="1666074197941";return n&&(s(!0),clearTimeout(t)),n}else throw new Error(`Version check failed: ${a.status}`)}return{subscribe:e,check:r}}let b;function v(s){b=s.client}const U={url:f({}),page:f({}),navigating:u(null),updated:p()};export{_ as a,b as c,k as f,g,v as i,U as s}; diff --git a/_app/immutable/chunks/state-8239c202.js b/_app/immutable/chunks/state-8239c202.js new file mode 100644 index 00000000..5dd7b6c0 --- /dev/null +++ b/_app/immutable/chunks/state-8239c202.js @@ -0,0 +1,1273 @@ +import{B as writable,I as derived,J as get_store_value}from"./index-55f02416.js";import{_ as __vitePreload}from"./preload-helper-aa6bc0ce.js";const defaultLoading={loading:!1},loadingStateStore=writable(defaultLoading),initLoading=async(d,b)=>{loadingStateStore.set({loading:!0,message:d});const h=await b;return loadingStateStore.set({loading:!1}),h};var commonjsGlobal=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function getDefaultExportFromCjs(d){return d&&d.__esModule&&Object.prototype.hasOwnProperty.call(d,"default")?d.default:d}function getAugmentedNamespace(d){var b=d.default;if(typeof b=="function"){var h=function(){return b.apply(this,arguments)};h.prototype=b.prototype}else h={};return Object.defineProperty(h,"__esModule",{value:!0}),Object.keys(d).forEach(function(m){var f=Object.getOwnPropertyDescriptor(d,m);Object.defineProperty(h,m,f.get?f:{enumerable:!0,get:function(){return d[m]}})}),h}var bundle={};(function(exports){(function(d,b){for(var h in b)d[h]=b[h];b.__esModule&&Object.defineProperty(d,"__esModule",{value:!0})})(exports,(()=>{var __webpack_modules__={607:(module,exports,__webpack_require__)=>{Object.defineProperty(exports,"__esModule",{value:!0});var serializer_1=__webpack_require__(810),deserializer_1=__webpack_require__(496),Module;typeof process<"u"&&process.release.name==="node"&&(Module=eval("require")("module"));var ESSerializer=function(){function d(){}return d.throwErrorIfInNonNodeEnvironment=function(){if(!Module)throw new Error("Cannot intercept require in non-Node environment.")},d.interceptRequire=function(){this.isRequireIntercepted||(this.isRequireIntercepted=!0,this.throwErrorIfInNonNodeEnvironment(),d.originRequire=Module.prototype.require,Module.prototype.require=function(){var b=d.originRequire.apply(this,arguments),h=b.name;return d.requiredClasses[h]||(d.requiredClasses[h]=b),b})},d.stopInterceptRequire=function(){this.throwErrorIfInNonNodeEnvironment(),Module.prototype.require=d.originRequire,this.isRequireIntercepted=!1},d.isInterceptingRequire=function(){return this.isRequireIntercepted},d.getRequiredClasses=function(){return this.requiredClasses},d.clearRequiredClasses=function(){this.requiredClasses={}},d.registerClass=function(b){this.registeredClasses.push(b)},d.registerClasses=function(b){this.registeredClasses=this.registeredClasses.concat(b)},d.clearRegisteredClasses=function(){this.registeredClasses=[]},d.serialize=function(b,h){return h===void 0&&(h={}),JSON.stringify(serializer_1.getSerializeValueWithClassName(b,h))},d.deserialize=function(b,h,m){return h===void 0&&(h=[]),m===void 0&&(m={}),deserializer_1.deserializeFromParsedObj(JSON.parse(b),Object.values(this.requiredClasses).concat(this.registeredClasses).concat(h),m)},d.originRequire=null,d.isRequireIntercepted=!1,d.requiredClasses={},d.registeredClasses=[],d}();module.exports=ESSerializer},917:function(d,b){var h=this&&this.__spreadArrays||function(){for(var At=0,Nt=0,Gt=arguments.length;Nt0&&(gt=gt.concat(Array.from(Array(vt),function(){return{}}))),_.test(St.toString()))try{Ct=new(St.bind.apply(St,m([void 0],gt)))}catch{J(St.name),Ct={},Object.setPrototypeOf(Ct,St?St.prototype:Object.prototype)}else{Ct=Object.create(St.prototype.constructor.prototype);try{St.prototype.constructor.call(Ct,gt)}catch{J(St.name)}}return Ct}(mt[at],jt),Z,mt,nt)}function M(Z,mt){return Z.map(function(nt){return A(nt,mt)})}function T(Z,mt){return new mt(Z)}function O(Z,mt){return new mt(Z.map(function(nt){return B(nt[v.TO_STRING_FIELD])}))}function B(Z){return BigInt(Z)}function z(Z,mt){var nt=Z[v.OPTIONS_FIELD],at=nt.locale;return delete nt.locale,new mt(at,nt)}function q(Z,mt){var nt;return delete(nt=Z.message?new mt(Z.message):new mt).stack,Z.name&&(nt.name=Z.name),Z.stack&&(nt.stack=Z.stack),mt===AggregateError&&(nt.errors=A(Z.errors,{})),nt}function J(Z){console.warn("Incorrect parameter type passed to constructor: "+Z)}function rt(Z,mt,nt){for(var at in mt){var _t=Object.getOwnPropertyDescriptor(Z,at);_t&&_t.writable!==!0&&typeof _t.set!="function"||(Z[at]=A(mt[at],nt))}}function ut(Z){Z===void 0&&(Z=[]);var mt={};return Z.forEach(function(nt){if(f.isClass(nt)){var at=nt.name,_t=mt[at];_t&&_t!==nt&&console.warn("WARNING: Found class definition with the same name: "+at),mt[at]=nt}}),mt}b.deserializeFromParsedObj=function(Z,mt,nt){return A(Z,ut(mt),nt)},b.deserializeFromParsedObjWithClassMapping=A,b.getClassMappingFromClassArray=ut,b.getParentClassName=function(Z){return Z.prototype.__proto__.constructor.name}},821:(d,b)=>{Object.defineProperty(b,"__esModule",{value:!0}),b.isClass=b.notObject=b.getValueFromToStringResult=void 0,b.notObject=function(h){return h===null||typeof h!="object"},b.getValueFromToStringResult=function(h){switch(h){case"Infinity":return 1/0;case"-Infinity":return-1/0;case"NaN":return NaN;default:return null}},b.isClass=function(h){if(function(m){return[Date].indexOf(m)>=0}(h))return!0;try{Reflect.construct(String,[],h)}catch{return!1}return!0}},810:(d,b,h)=>{Object.defineProperty(b,"__esModule",{value:!0}),b.getSerializeValueWithClassName=void 0;var m=h(917),f=h(821);function v(A,M){M===void 0&&(M={});var T=function(q){var J,rt,ut;return q===void 0?((J={})[m.CLASS_NAME_FIELD]=m.BUILTIN_TYPE_UNDEFINED,J):typeof q!="number"||isFinite(q)?typeof q=="bigint"?((ut={})[m.CLASS_NAME_FIELD]=m.BUILTIN_TYPE_BIG_INT,ut[m.TO_STRING_FIELD]=q.toString(),ut):f.notObject(q)?q:m.ESSERIALIZER_NULL:((rt={})[m.CLASS_NAME_FIELD]=m.BUILTIN_TYPE_NOT_FINITE,rt[m.TO_STRING_FIELD]=q.toString(),rt)}(A);if(T!==m.ESSERIALIZER_NULL)return T;if(Array.isArray(A))return _(A);var O={};if(!function(q){var J=q.__proto__.constructor.name;return m.CLASSNAMES_WHOSE_ENUMERABLE_PROPERTIES_SHOULD_BE_IGNORED.includes(J)}(A)){if(M.ignoreProperties&&M.ignoreProperties.forEach(function(q){delete A[q]}),M.interceptProperties)for(var B in M.interceptProperties)A[B]=M.interceptProperties[B].call(A,A[B]);for(var z in A)O[z]=v(A[z])}return function(q,J){var rt=q.__proto__.constructor.name;return rt!=="Object"&&(J[m.CLASS_NAME_FIELD]=rt,rt===m.BUILTIN_CLASS_ARRAYBUFFER||rt===m.BUILTIN_CLASS_SHAREDARRAYBUFFER?J[m.ARRAY_FIELD]=_(Array.from(new Uint8Array(q))):rt===m.BUILTIN_CLASS_BOOLEAN?J[m.BOOLEAN_FIELD]=q.valueOf():rt===m.BUILTIN_CLASS_DATAVIEW?J[m.ARRAY_FIELD]=_(Array.from(new Uint8Array(q.buffer))):rt===m.BUILTIN_CLASS_DATE?J[m.TIMESTAMP_FIELD]=q.getTime():rt===m.BUILTIN_CLASS_INTL_LOCALE||rt===m.BUILTIN_CLASS_REGEXP?J[m.TO_STRING_FIELD]=q.toString():rt===m.BUILTIN_CLASS_SET?J[m.ARRAY_FIELD]=_(Array.from(q)):rt===m.BUILTIN_CLASS_STRING?J[m.TO_STRING_FIELD]=q.toString():m.ALL_BUILTIN_ARRAYS.includes(rt)?J[m.ARRAY_FIELD]=_(Array.from(q)):m.ALL_BUILTIN_ERRORS.includes(rt)?function(ut,Z,mt){ut.name!=="Error"&&(Z.name=ut.name),ut.message&&(Z.message=ut.message),ut.stack&&(Z.stack=ut.stack),mt===m.BUILTIN_CLASS_AGGREGATE_ERROR&&(Z.errors=v(ut.errors))}(q,J,rt):m.ALL_BUILTIN_INTLS.includes(rt)&&(J[m.OPTIONS_FIELD]=q.resolvedOptions())),J}(A,O)}function _(A){return A.map(function(M){return v(M)})}b.getSerializeValueWithClassName=v}},__webpack_module_cache__={};function __webpack_require__(d){if(__webpack_module_cache__[d])return __webpack_module_cache__[d].exports;var b=__webpack_module_cache__[d]={exports:{}};return __webpack_modules__[d].call(b.exports,b,b.exports,__webpack_require__),b.exports}return __webpack_require__(607)})())})(bundle);const ESSerializer=getDefaultExportFromCjs(bundle),alreadyWarnFor=[],warnStorageNotFound=d=>{var h;const b=typeof process<"u"&&((h=process.env)==null?void 0:h.NODE_ENV)==="production";if(alreadyWarnFor.indexOf(d)===-1&&!b){let m=`Unable to find the ${d}. No data will be persisted.`;typeof window>"u"&&(m+=` +Are you running on a server? Most of storages are not available while running on a server.`),console.warn(m),alreadyWarnFor.push(d)}},allowedClasses=[],serialize=d=>ESSerializer.serialize(d),deserialize=d=>{if(d!=="undefined"){if(d!=null){try{return ESSerializer.deserialize(d,allowedClasses)}catch{}try{return JSON.parse(d)}catch{}}return d}};function persist(d,b,h){const m=b.getValue(h);return m!==null&&d.set(m),b.addListener&&b.addListener(h,f=>{d.set(f)}),d.subscribe(f=>{b.setValue(h,f)}),{...d,delete(){b.deleteValue(h)}}}function getBrowserStorage(d,b=!1){const h=[],m=_=>{const A=_.key;_.storageArea===d&&h.filter(({key:M})=>M===A).forEach(({listener:M})=>{M(deserialize(_.newValue))})},f=()=>{b&&typeof window<"u"&&(window==null?void 0:window.addEventListener)&&window.addEventListener("storage",m)},v=()=>{b&&typeof window<"u"&&(window==null?void 0:window.removeEventListener)&&window.removeEventListener("storage",m)};return{addListener(_,A){h.push({key:_,listener:A}),h.length===1&&f()},removeListener(_,A){const M=h.indexOf({key:_,listener:A});M!==-1&&h.splice(M,1),h.length===0&&v()},getValue(_){const A=d.getItem(_);return deserialize(A)},deleteValue(_){d.removeItem(_)},setValue(_,A){d.setItem(_,serialize(A))}}}function localStorage(d=!1){return typeof window<"u"&&(window==null?void 0:window.localStorage)?getBrowserStorage(window.localStorage,d):(warnStorageNotFound("window.localStorage"),noopStorage())}function noopStorage(){return{getValue(){return null},deleteValue(){},setValue(){}}}let analytics;const initAnalytics=async()=>{if(!analytics)try{const[{Analytics:d},{default:b}]=await Promise.all([__vitePreload(()=>import("./analytics.browser.es-80770405.js"),[],import.meta.url),__vitePreload(()=>import("./plausible-3429abab.js").then(h=>h.p),[],import.meta.url)]);analytics=d({app:"mermaid-live-editor",plugins:[b({domain:"mermaid.live",hashMode:!1,trackLocalhost:!1,apiHost:"https://plausible.io"})]})}catch(d){console.log(d),console.info("Analytics blocked ;)")}},detectType=d=>{const b=["classDiagram","erDiagram","flowChart","gantt","gitGraph","graph","journey","pie","stateDiagram"],h=d.replace(/^\s*%%.*\n/g,` +`).trimStart().split(" ")[0].toLowerCase();return b.find(f=>h.includes(f.toLowerCase()))},countLines=d=>(d.match(/\n/g)||"").length+1,saveStatistics=d=>{const b=detectType(d);if(!b)return;const h=countLines(d);logEvent("render",{graphType:b,length:h})},minutesToMilliSeconds=d=>d*6e4,defaultDelay=minutesToMilliSeconds(1),delaysPerEvent={render:minutesToMilliSeconds(5),panZoom:minutesToMilliSeconds(10),copyClipboard:defaultDelay,download:defaultDelay,copyMarkdown:defaultDelay,loadGist:defaultDelay,loadSampleDiagram:defaultDelay,renderDiagram:defaultDelay,history:defaultDelay,migration:defaultDelay,themeChange:defaultDelay},timeouts={},logEvent=(d,b)=>{if(!analytics)return;const h=b?JSON.stringify({name:d,data:b}):d;timeouts[h]===void 0?analytics.track(d,b):clearTimeout(timeouts[h]),timeouts[h]=window.setTimeout(()=>{delete timeouts[h]},delaysPerEvent[d])};/*! pako 2.0.4 https://github.com/nodeca/pako @license (MIT AND Zlib) */const Z_FIXED$1=4,Z_BINARY=0,Z_TEXT=1,Z_UNKNOWN$1=2;function zero$1(d){let b=d.length;for(;--b>=0;)d[b]=0}const STORED_BLOCK=0,STATIC_TREES=1,DYN_TREES=2,MIN_MATCH$1=3,MAX_MATCH$1=258,LENGTH_CODES$1=29,LITERALS$1=256,L_CODES$1=LITERALS$1+1+LENGTH_CODES$1,D_CODES$1=30,BL_CODES$1=19,HEAP_SIZE$1=2*L_CODES$1+1,MAX_BITS$1=15,Buf_size=16,MAX_BL_BITS=7,END_BLOCK=256,REP_3_6=16,REPZ_3_10=17,REPZ_11_138=18,extra_lbits=new Uint8Array([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0]),extra_dbits=new Uint8Array([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13]),extra_blbits=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7]),bl_order=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),DIST_CODE_LEN=512,static_ltree=new Array((L_CODES$1+2)*2);zero$1(static_ltree);const static_dtree=new Array(D_CODES$1*2);zero$1(static_dtree);const _dist_code=new Array(DIST_CODE_LEN);zero$1(_dist_code);const _length_code=new Array(MAX_MATCH$1-MIN_MATCH$1+1);zero$1(_length_code);const base_length=new Array(LENGTH_CODES$1);zero$1(base_length);const base_dist=new Array(D_CODES$1);zero$1(base_dist);function StaticTreeDesc(d,b,h,m,f){this.static_tree=d,this.extra_bits=b,this.extra_base=h,this.elems=m,this.max_length=f,this.has_stree=d&&d.length}let static_l_desc,static_d_desc,static_bl_desc;function TreeDesc(d,b){this.dyn_tree=d,this.max_code=0,this.stat_desc=b}const d_code=d=>d<256?_dist_code[d]:_dist_code[256+(d>>>7)],put_short=(d,b)=>{d.pending_buf[d.pending++]=b&255,d.pending_buf[d.pending++]=b>>>8&255},send_bits=(d,b,h)=>{d.bi_valid>Buf_size-h?(d.bi_buf|=b<>Buf_size-d.bi_valid,d.bi_valid+=h-Buf_size):(d.bi_buf|=b<{send_bits(d,h[b*2],h[b*2+1])},bi_reverse=(d,b)=>{let h=0;do h|=d&1,d>>>=1,h<<=1;while(--b>0);return h>>>1},bi_flush=d=>{d.bi_valid===16?(put_short(d,d.bi_buf),d.bi_buf=0,d.bi_valid=0):d.bi_valid>=8&&(d.pending_buf[d.pending++]=d.bi_buf&255,d.bi_buf>>=8,d.bi_valid-=8)},gen_bitlen=(d,b)=>{const h=b.dyn_tree,m=b.max_code,f=b.stat_desc.static_tree,v=b.stat_desc.has_stree,_=b.stat_desc.extra_bits,A=b.stat_desc.extra_base,M=b.stat_desc.max_length;let T,O,B,z,q,J,rt=0;for(z=0;z<=MAX_BITS$1;z++)d.bl_count[z]=0;for(h[d.heap[d.heap_max]*2+1]=0,T=d.heap_max+1;TM&&(z=M,rt++),h[O*2+1]=z,!(O>m)&&(d.bl_count[z]++,q=0,O>=A&&(q=_[O-A]),J=h[O*2],d.opt_len+=J*(z+q),v&&(d.static_len+=J*(f[O*2+1]+q)));if(rt!==0){do{for(z=M-1;d.bl_count[z]===0;)z--;d.bl_count[z]--,d.bl_count[z+1]+=2,d.bl_count[M]--,rt-=2}while(rt>0);for(z=M;z!==0;z--)for(O=d.bl_count[z];O!==0;)B=d.heap[--T],!(B>m)&&(h[B*2+1]!==z&&(d.opt_len+=(z-h[B*2+1])*h[B*2],h[B*2+1]=z),O--)}},gen_codes=(d,b,h)=>{const m=new Array(MAX_BITS$1+1);let f=0,v,_;for(v=1;v<=MAX_BITS$1;v++)m[v]=f=f+h[v-1]<<1;for(_=0;_<=b;_++){let A=d[_*2+1];A!==0&&(d[_*2]=bi_reverse(m[A]++,A))}},tr_static_init=()=>{let d,b,h,m,f;const v=new Array(MAX_BITS$1+1);for(h=0,m=0;m>=7;m{let b;for(b=0;b{d.bi_valid>8?put_short(d,d.bi_buf):d.bi_valid>0&&(d.pending_buf[d.pending++]=d.bi_buf),d.bi_buf=0,d.bi_valid=0},copy_block=(d,b,h,m)=>{bi_windup(d),m&&(put_short(d,h),put_short(d,~h)),d.pending_buf.set(d.window.subarray(b,b+h),d.pending),d.pending+=h},smaller=(d,b,h,m)=>{const f=b*2,v=h*2;return d[f]{const m=d.heap[h];let f=h<<1;for(;f<=d.heap_len&&(f{let m,f,v=0,_,A;if(d.last_lit!==0)do m=d.pending_buf[d.d_buf+v*2]<<8|d.pending_buf[d.d_buf+v*2+1],f=d.pending_buf[d.l_buf+v],v++,m===0?send_code(d,f,b):(_=_length_code[f],send_code(d,_+LITERALS$1+1,b),A=extra_lbits[_],A!==0&&(f-=base_length[_],send_bits(d,f,A)),m--,_=d_code(m),send_code(d,_,h),A=extra_dbits[_],A!==0&&(m-=base_dist[_],send_bits(d,m,A)));while(v{const h=b.dyn_tree,m=b.stat_desc.static_tree,f=b.stat_desc.has_stree,v=b.stat_desc.elems;let _,A,M=-1,T;for(d.heap_len=0,d.heap_max=HEAP_SIZE$1,_=0;_>1;_>=1;_--)pqdownheap(d,h,_);T=v;do _=d.heap[1],d.heap[1]=d.heap[d.heap_len--],pqdownheap(d,h,1),A=d.heap[1],d.heap[--d.heap_max]=_,d.heap[--d.heap_max]=A,h[T*2]=h[_*2]+h[A*2],d.depth[T]=(d.depth[_]>=d.depth[A]?d.depth[_]:d.depth[A])+1,h[_*2+1]=h[A*2+1]=T,d.heap[1]=T++,pqdownheap(d,h,1);while(d.heap_len>=2);d.heap[--d.heap_max]=d.heap[1],gen_bitlen(d,b),gen_codes(h,M,d.bl_count)},scan_tree=(d,b,h)=>{let m,f=-1,v,_=b[0*2+1],A=0,M=7,T=4;for(_===0&&(M=138,T=3),b[(h+1)*2+1]=65535,m=0;m<=h;m++)v=_,_=b[(m+1)*2+1],!(++A{let m,f=-1,v,_=b[0*2+1],A=0,M=7,T=4;for(_===0&&(M=138,T=3),m=0;m<=h;m++)if(v=_,_=b[(m+1)*2+1],!(++A{let b;for(scan_tree(d,d.dyn_ltree,d.l_desc.max_code),scan_tree(d,d.dyn_dtree,d.d_desc.max_code),build_tree(d,d.bl_desc),b=BL_CODES$1-1;b>=3&&d.bl_tree[bl_order[b]*2+1]===0;b--);return d.opt_len+=3*(b+1)+5+5+4,b},send_all_trees=(d,b,h,m)=>{let f;for(send_bits(d,b-257,5),send_bits(d,h-1,5),send_bits(d,m-4,4),f=0;f{let b=4093624447,h;for(h=0;h<=31;h++,b>>>=1)if(b&1&&d.dyn_ltree[h*2]!==0)return Z_BINARY;if(d.dyn_ltree[9*2]!==0||d.dyn_ltree[10*2]!==0||d.dyn_ltree[13*2]!==0)return Z_TEXT;for(h=32;h{static_init_done||(tr_static_init(),static_init_done=!0),d.l_desc=new TreeDesc(d.dyn_ltree,static_l_desc),d.d_desc=new TreeDesc(d.dyn_dtree,static_d_desc),d.bl_desc=new TreeDesc(d.bl_tree,static_bl_desc),d.bi_buf=0,d.bi_valid=0,init_block(d)},_tr_stored_block$1=(d,b,h,m)=>{send_bits(d,(STORED_BLOCK<<1)+(m?1:0),3),copy_block(d,b,h,!0)},_tr_align$1=d=>{send_bits(d,STATIC_TREES<<1,3),send_code(d,END_BLOCK,static_ltree),bi_flush(d)},_tr_flush_block$1=(d,b,h,m)=>{let f,v,_=0;d.level>0?(d.strm.data_type===Z_UNKNOWN$1&&(d.strm.data_type=detect_data_type(d)),build_tree(d,d.l_desc),build_tree(d,d.d_desc),_=build_bl_tree(d),f=d.opt_len+3+7>>>3,v=d.static_len+3+7>>>3,v<=f&&(f=v)):f=v=h+5,h+4<=f&&b!==-1?_tr_stored_block$1(d,b,h,m):d.strategy===Z_FIXED$1||v===f?(send_bits(d,(STATIC_TREES<<1)+(m?1:0),3),compress_block(d,static_ltree,static_dtree)):(send_bits(d,(DYN_TREES<<1)+(m?1:0),3),send_all_trees(d,d.l_desc.max_code+1,d.d_desc.max_code+1,_+1),compress_block(d,d.dyn_ltree,d.dyn_dtree)),init_block(d),m&&bi_windup(d)},_tr_tally$1=(d,b,h)=>(d.pending_buf[d.d_buf+d.last_lit*2]=b>>>8&255,d.pending_buf[d.d_buf+d.last_lit*2+1]=b&255,d.pending_buf[d.l_buf+d.last_lit]=h&255,d.last_lit++,b===0?d.dyn_ltree[h*2]++:(d.matches++,b--,d.dyn_ltree[(_length_code[h]+LITERALS$1+1)*2]++,d.dyn_dtree[d_code(b)*2]++),d.last_lit===d.lit_bufsize-1);var _tr_init_1=_tr_init$1,_tr_stored_block_1=_tr_stored_block$1,_tr_flush_block_1=_tr_flush_block$1,_tr_tally_1=_tr_tally$1,_tr_align_1=_tr_align$1,trees={_tr_init:_tr_init_1,_tr_stored_block:_tr_stored_block_1,_tr_flush_block:_tr_flush_block_1,_tr_tally:_tr_tally_1,_tr_align:_tr_align_1};const adler32=(d,b,h,m)=>{let f=d&65535|0,v=d>>>16&65535|0,_=0;for(;h!==0;){_=h>2e3?2e3:h,h-=_;do f=f+b[m++]|0,v=v+f|0;while(--_);f%=65521,v%=65521}return f|v<<16|0};var adler32_1=adler32;const makeTable=()=>{let d,b=[];for(var h=0;h<256;h++){d=h;for(var m=0;m<8;m++)d=d&1?3988292384^d>>>1:d>>>1;b[h]=d}return b},crcTable=new Uint32Array(makeTable()),crc32=(d,b,h,m)=>{const f=crcTable,v=m+h;d^=-1;for(let _=m;_>>8^f[(d^b[_])&255];return d^-1};var crc32_1=crc32,messages={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"},constants$2={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_MEM_ERROR:-4,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8};const{_tr_init,_tr_stored_block,_tr_flush_block,_tr_tally,_tr_align}=trees,{Z_NO_FLUSH:Z_NO_FLUSH$2,Z_PARTIAL_FLUSH,Z_FULL_FLUSH:Z_FULL_FLUSH$1,Z_FINISH:Z_FINISH$3,Z_BLOCK:Z_BLOCK$1,Z_OK:Z_OK$3,Z_STREAM_END:Z_STREAM_END$3,Z_STREAM_ERROR:Z_STREAM_ERROR$2,Z_DATA_ERROR:Z_DATA_ERROR$2,Z_BUF_ERROR:Z_BUF_ERROR$1,Z_DEFAULT_COMPRESSION:Z_DEFAULT_COMPRESSION$1,Z_FILTERED,Z_HUFFMAN_ONLY,Z_RLE,Z_FIXED,Z_DEFAULT_STRATEGY:Z_DEFAULT_STRATEGY$1,Z_UNKNOWN,Z_DEFLATED:Z_DEFLATED$2}=constants$2,MAX_MEM_LEVEL=9,MAX_WBITS$1=15,DEF_MEM_LEVEL=8,LENGTH_CODES=29,LITERALS=256,L_CODES=LITERALS+1+LENGTH_CODES,D_CODES=30,BL_CODES=19,HEAP_SIZE=2*L_CODES+1,MAX_BITS=15,MIN_MATCH=3,MAX_MATCH=258,MIN_LOOKAHEAD=MAX_MATCH+MIN_MATCH+1,PRESET_DICT=32,INIT_STATE=42,EXTRA_STATE=69,NAME_STATE=73,COMMENT_STATE=91,HCRC_STATE=103,BUSY_STATE=113,FINISH_STATE=666,BS_NEED_MORE=1,BS_BLOCK_DONE=2,BS_FINISH_STARTED=3,BS_FINISH_DONE=4,OS_CODE=3,err=(d,b)=>(d.msg=messages[b],b),rank=d=>(d<<1)-(d>4?9:0),zero=d=>{let b=d.length;for(;--b>=0;)d[b]=0};let HASH_ZLIB=(d,b,h)=>(b<{const b=d.state;let h=b.pending;h>d.avail_out&&(h=d.avail_out),h!==0&&(d.output.set(b.pending_buf.subarray(b.pending_out,b.pending_out+h),d.next_out),d.next_out+=h,b.pending_out+=h,d.total_out+=h,d.avail_out-=h,b.pending-=h,b.pending===0&&(b.pending_out=0))},flush_block_only=(d,b)=>{_tr_flush_block(d,d.block_start>=0?d.block_start:-1,d.strstart-d.block_start,b),d.block_start=d.strstart,flush_pending(d.strm)},put_byte=(d,b)=>{d.pending_buf[d.pending++]=b},putShortMSB=(d,b)=>{d.pending_buf[d.pending++]=b>>>8&255,d.pending_buf[d.pending++]=b&255},read_buf=(d,b,h,m)=>{let f=d.avail_in;return f>m&&(f=m),f===0?0:(d.avail_in-=f,b.set(d.input.subarray(d.next_in,d.next_in+f),h),d.state.wrap===1?d.adler=adler32_1(d.adler,b,f,h):d.state.wrap===2&&(d.adler=crc32_1(d.adler,b,f,h)),d.next_in+=f,d.total_in+=f,f)},longest_match=(d,b)=>{let h=d.max_chain_length,m=d.strstart,f,v,_=d.prev_length,A=d.nice_match;const M=d.strstart>d.w_size-MIN_LOOKAHEAD?d.strstart-(d.w_size-MIN_LOOKAHEAD):0,T=d.window,O=d.w_mask,B=d.prev,z=d.strstart+MAX_MATCH;let q=T[m+_-1],J=T[m+_];d.prev_length>=d.good_match&&(h>>=2),A>d.lookahead&&(A=d.lookahead);do if(f=b,!(T[f+_]!==J||T[f+_-1]!==q||T[f]!==T[m]||T[++f]!==T[m+1])){m+=2,f++;do;while(T[++m]===T[++f]&&T[++m]===T[++f]&&T[++m]===T[++f]&&T[++m]===T[++f]&&T[++m]===T[++f]&&T[++m]===T[++f]&&T[++m]===T[++f]&&T[++m]===T[++f]&&m_){if(d.match_start=b,_=v,v>=A)break;q=T[m+_-1],J=T[m+_]}}while((b=B[b&O])>M&&--h!==0);return _<=d.lookahead?_:d.lookahead},fill_window=d=>{const b=d.w_size;let h,m,f,v,_;do{if(v=d.window_size-d.lookahead-d.strstart,d.strstart>=b+(b-MIN_LOOKAHEAD)){d.window.set(d.window.subarray(b,b+b),0),d.match_start-=b,d.strstart-=b,d.block_start-=b,m=d.hash_size,h=m;do f=d.head[--h],d.head[h]=f>=b?f-b:0;while(--m);m=b,h=m;do f=d.prev[--h],d.prev[h]=f>=b?f-b:0;while(--m);v+=b}if(d.strm.avail_in===0)break;if(m=read_buf(d.strm,d.window,d.strstart+d.lookahead,v),d.lookahead+=m,d.lookahead+d.insert>=MIN_MATCH)for(_=d.strstart-d.insert,d.ins_h=d.window[_],d.ins_h=HASH(d,d.ins_h,d.window[_+1]);d.insert&&(d.ins_h=HASH(d,d.ins_h,d.window[_+MIN_MATCH-1]),d.prev[_&d.w_mask]=d.head[d.ins_h],d.head[d.ins_h]=_,_++,d.insert--,!(d.lookahead+d.insert{let h=65535;for(h>d.pending_buf_size-5&&(h=d.pending_buf_size-5);;){if(d.lookahead<=1){if(fill_window(d),d.lookahead===0&&b===Z_NO_FLUSH$2)return BS_NEED_MORE;if(d.lookahead===0)break}d.strstart+=d.lookahead,d.lookahead=0;const m=d.block_start+h;if((d.strstart===0||d.strstart>=m)&&(d.lookahead=d.strstart-m,d.strstart=m,flush_block_only(d,!1),d.strm.avail_out===0)||d.strstart-d.block_start>=d.w_size-MIN_LOOKAHEAD&&(flush_block_only(d,!1),d.strm.avail_out===0))return BS_NEED_MORE}return d.insert=0,b===Z_FINISH$3?(flush_block_only(d,!0),d.strm.avail_out===0?BS_FINISH_STARTED:BS_FINISH_DONE):(d.strstart>d.block_start&&(flush_block_only(d,!1),d.strm.avail_out===0),BS_NEED_MORE)},deflate_fast=(d,b)=>{let h,m;for(;;){if(d.lookahead=MIN_MATCH&&(d.ins_h=HASH(d,d.ins_h,d.window[d.strstart+MIN_MATCH-1]),h=d.prev[d.strstart&d.w_mask]=d.head[d.ins_h],d.head[d.ins_h]=d.strstart),h!==0&&d.strstart-h<=d.w_size-MIN_LOOKAHEAD&&(d.match_length=longest_match(d,h)),d.match_length>=MIN_MATCH)if(m=_tr_tally(d,d.strstart-d.match_start,d.match_length-MIN_MATCH),d.lookahead-=d.match_length,d.match_length<=d.max_lazy_match&&d.lookahead>=MIN_MATCH){d.match_length--;do d.strstart++,d.ins_h=HASH(d,d.ins_h,d.window[d.strstart+MIN_MATCH-1]),h=d.prev[d.strstart&d.w_mask]=d.head[d.ins_h],d.head[d.ins_h]=d.strstart;while(--d.match_length!==0);d.strstart++}else d.strstart+=d.match_length,d.match_length=0,d.ins_h=d.window[d.strstart],d.ins_h=HASH(d,d.ins_h,d.window[d.strstart+1]);else m=_tr_tally(d,0,d.window[d.strstart]),d.lookahead--,d.strstart++;if(m&&(flush_block_only(d,!1),d.strm.avail_out===0))return BS_NEED_MORE}return d.insert=d.strstart{let h,m,f;for(;;){if(d.lookahead=MIN_MATCH&&(d.ins_h=HASH(d,d.ins_h,d.window[d.strstart+MIN_MATCH-1]),h=d.prev[d.strstart&d.w_mask]=d.head[d.ins_h],d.head[d.ins_h]=d.strstart),d.prev_length=d.match_length,d.prev_match=d.match_start,d.match_length=MIN_MATCH-1,h!==0&&d.prev_length4096)&&(d.match_length=MIN_MATCH-1)),d.prev_length>=MIN_MATCH&&d.match_length<=d.prev_length){f=d.strstart+d.lookahead-MIN_MATCH,m=_tr_tally(d,d.strstart-1-d.prev_match,d.prev_length-MIN_MATCH),d.lookahead-=d.prev_length-1,d.prev_length-=2;do++d.strstart<=f&&(d.ins_h=HASH(d,d.ins_h,d.window[d.strstart+MIN_MATCH-1]),h=d.prev[d.strstart&d.w_mask]=d.head[d.ins_h],d.head[d.ins_h]=d.strstart);while(--d.prev_length!==0);if(d.match_available=0,d.match_length=MIN_MATCH-1,d.strstart++,m&&(flush_block_only(d,!1),d.strm.avail_out===0))return BS_NEED_MORE}else if(d.match_available){if(m=_tr_tally(d,0,d.window[d.strstart-1]),m&&flush_block_only(d,!1),d.strstart++,d.lookahead--,d.strm.avail_out===0)return BS_NEED_MORE}else d.match_available=1,d.strstart++,d.lookahead--}return d.match_available&&(m=_tr_tally(d,0,d.window[d.strstart-1]),d.match_available=0),d.insert=d.strstart{let h,m,f,v;const _=d.window;for(;;){if(d.lookahead<=MAX_MATCH){if(fill_window(d),d.lookahead<=MAX_MATCH&&b===Z_NO_FLUSH$2)return BS_NEED_MORE;if(d.lookahead===0)break}if(d.match_length=0,d.lookahead>=MIN_MATCH&&d.strstart>0&&(f=d.strstart-1,m=_[f],m===_[++f]&&m===_[++f]&&m===_[++f])){v=d.strstart+MAX_MATCH;do;while(m===_[++f]&&m===_[++f]&&m===_[++f]&&m===_[++f]&&m===_[++f]&&m===_[++f]&&m===_[++f]&&m===_[++f]&&fd.lookahead&&(d.match_length=d.lookahead)}if(d.match_length>=MIN_MATCH?(h=_tr_tally(d,1,d.match_length-MIN_MATCH),d.lookahead-=d.match_length,d.strstart+=d.match_length,d.match_length=0):(h=_tr_tally(d,0,d.window[d.strstart]),d.lookahead--,d.strstart++),h&&(flush_block_only(d,!1),d.strm.avail_out===0))return BS_NEED_MORE}return d.insert=0,b===Z_FINISH$3?(flush_block_only(d,!0),d.strm.avail_out===0?BS_FINISH_STARTED:BS_FINISH_DONE):d.last_lit&&(flush_block_only(d,!1),d.strm.avail_out===0)?BS_NEED_MORE:BS_BLOCK_DONE},deflate_huff=(d,b)=>{let h;for(;;){if(d.lookahead===0&&(fill_window(d),d.lookahead===0)){if(b===Z_NO_FLUSH$2)return BS_NEED_MORE;break}if(d.match_length=0,h=_tr_tally(d,0,d.window[d.strstart]),d.lookahead--,d.strstart++,h&&(flush_block_only(d,!1),d.strm.avail_out===0))return BS_NEED_MORE}return d.insert=0,b===Z_FINISH$3?(flush_block_only(d,!0),d.strm.avail_out===0?BS_FINISH_STARTED:BS_FINISH_DONE):d.last_lit&&(flush_block_only(d,!1),d.strm.avail_out===0)?BS_NEED_MORE:BS_BLOCK_DONE};function Config(d,b,h,m,f){this.good_length=d,this.max_lazy=b,this.nice_length=h,this.max_chain=m,this.func=f}const configuration_table=[new Config(0,0,0,0,deflate_stored),new Config(4,4,8,4,deflate_fast),new Config(4,5,16,8,deflate_fast),new Config(4,6,32,32,deflate_fast),new Config(4,4,16,16,deflate_slow),new Config(8,16,32,32,deflate_slow),new Config(8,16,128,128,deflate_slow),new Config(8,32,128,256,deflate_slow),new Config(32,128,258,1024,deflate_slow),new Config(32,258,258,4096,deflate_slow)],lm_init=d=>{d.window_size=2*d.w_size,zero(d.head),d.max_lazy_match=configuration_table[d.level].max_lazy,d.good_match=configuration_table[d.level].good_length,d.nice_match=configuration_table[d.level].nice_length,d.max_chain_length=configuration_table[d.level].max_chain,d.strstart=0,d.block_start=0,d.lookahead=0,d.insert=0,d.match_length=d.prev_length=MIN_MATCH-1,d.match_available=0,d.ins_h=0};function DeflateState(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=Z_DEFLATED$2,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new Uint16Array(HEAP_SIZE*2),this.dyn_dtree=new Uint16Array((2*D_CODES+1)*2),this.bl_tree=new Uint16Array((2*BL_CODES+1)*2),zero(this.dyn_ltree),zero(this.dyn_dtree),zero(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new Uint16Array(MAX_BITS+1),this.heap=new Uint16Array(2*L_CODES+1),zero(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new Uint16Array(2*L_CODES+1),zero(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}const deflateResetKeep=d=>{if(!d||!d.state)return err(d,Z_STREAM_ERROR$2);d.total_in=d.total_out=0,d.data_type=Z_UNKNOWN;const b=d.state;return b.pending=0,b.pending_out=0,b.wrap<0&&(b.wrap=-b.wrap),b.status=b.wrap?INIT_STATE:BUSY_STATE,d.adler=b.wrap===2?0:1,b.last_flush=Z_NO_FLUSH$2,_tr_init(b),Z_OK$3},deflateReset=d=>{const b=deflateResetKeep(d);return b===Z_OK$3&&lm_init(d.state),b},deflateSetHeader=(d,b)=>!d||!d.state||d.state.wrap!==2?Z_STREAM_ERROR$2:(d.state.gzhead=b,Z_OK$3),deflateInit2=(d,b,h,m,f,v)=>{if(!d)return Z_STREAM_ERROR$2;let _=1;if(b===Z_DEFAULT_COMPRESSION$1&&(b=6),m<0?(_=0,m=-m):m>15&&(_=2,m-=16),f<1||f>MAX_MEM_LEVEL||h!==Z_DEFLATED$2||m<8||m>15||b<0||b>9||v<0||v>Z_FIXED)return err(d,Z_STREAM_ERROR$2);m===8&&(m=9);const A=new DeflateState;return d.state=A,A.strm=d,A.wrap=_,A.gzhead=null,A.w_bits=m,A.w_size=1<deflateInit2(d,b,Z_DEFLATED$2,MAX_WBITS$1,DEF_MEM_LEVEL,Z_DEFAULT_STRATEGY$1),deflate$2=(d,b)=>{let h,m;if(!d||!d.state||b>Z_BLOCK$1||b<0)return d?err(d,Z_STREAM_ERROR$2):Z_STREAM_ERROR$2;const f=d.state;if(!d.output||!d.input&&d.avail_in!==0||f.status===FINISH_STATE&&b!==Z_FINISH$3)return err(d,d.avail_out===0?Z_BUF_ERROR$1:Z_STREAM_ERROR$2);f.strm=d;const v=f.last_flush;if(f.last_flush=b,f.status===INIT_STATE)if(f.wrap===2)d.adler=0,put_byte(f,31),put_byte(f,139),put_byte(f,8),f.gzhead?(put_byte(f,(f.gzhead.text?1:0)+(f.gzhead.hcrc?2:0)+(f.gzhead.extra?4:0)+(f.gzhead.name?8:0)+(f.gzhead.comment?16:0)),put_byte(f,f.gzhead.time&255),put_byte(f,f.gzhead.time>>8&255),put_byte(f,f.gzhead.time>>16&255),put_byte(f,f.gzhead.time>>24&255),put_byte(f,f.level===9?2:f.strategy>=Z_HUFFMAN_ONLY||f.level<2?4:0),put_byte(f,f.gzhead.os&255),f.gzhead.extra&&f.gzhead.extra.length&&(put_byte(f,f.gzhead.extra.length&255),put_byte(f,f.gzhead.extra.length>>8&255)),f.gzhead.hcrc&&(d.adler=crc32_1(d.adler,f.pending_buf,f.pending,0)),f.gzindex=0,f.status=EXTRA_STATE):(put_byte(f,0),put_byte(f,0),put_byte(f,0),put_byte(f,0),put_byte(f,0),put_byte(f,f.level===9?2:f.strategy>=Z_HUFFMAN_ONLY||f.level<2?4:0),put_byte(f,OS_CODE),f.status=BUSY_STATE);else{let _=Z_DEFLATED$2+(f.w_bits-8<<4)<<8,A=-1;f.strategy>=Z_HUFFMAN_ONLY||f.level<2?A=0:f.level<6?A=1:f.level===6?A=2:A=3,_|=A<<6,f.strstart!==0&&(_|=PRESET_DICT),_+=31-_%31,f.status=BUSY_STATE,putShortMSB(f,_),f.strstart!==0&&(putShortMSB(f,d.adler>>>16),putShortMSB(f,d.adler&65535)),d.adler=1}if(f.status===EXTRA_STATE)if(f.gzhead.extra){for(h=f.pending;f.gzindex<(f.gzhead.extra.length&65535)&&!(f.pending===f.pending_buf_size&&(f.gzhead.hcrc&&f.pending>h&&(d.adler=crc32_1(d.adler,f.pending_buf,f.pending-h,h)),flush_pending(d),h=f.pending,f.pending===f.pending_buf_size));)put_byte(f,f.gzhead.extra[f.gzindex]&255),f.gzindex++;f.gzhead.hcrc&&f.pending>h&&(d.adler=crc32_1(d.adler,f.pending_buf,f.pending-h,h)),f.gzindex===f.gzhead.extra.length&&(f.gzindex=0,f.status=NAME_STATE)}else f.status=NAME_STATE;if(f.status===NAME_STATE)if(f.gzhead.name){h=f.pending;do{if(f.pending===f.pending_buf_size&&(f.gzhead.hcrc&&f.pending>h&&(d.adler=crc32_1(d.adler,f.pending_buf,f.pending-h,h)),flush_pending(d),h=f.pending,f.pending===f.pending_buf_size)){m=1;break}f.gzindexh&&(d.adler=crc32_1(d.adler,f.pending_buf,f.pending-h,h)),m===0&&(f.gzindex=0,f.status=COMMENT_STATE)}else f.status=COMMENT_STATE;if(f.status===COMMENT_STATE)if(f.gzhead.comment){h=f.pending;do{if(f.pending===f.pending_buf_size&&(f.gzhead.hcrc&&f.pending>h&&(d.adler=crc32_1(d.adler,f.pending_buf,f.pending-h,h)),flush_pending(d),h=f.pending,f.pending===f.pending_buf_size)){m=1;break}f.gzindexh&&(d.adler=crc32_1(d.adler,f.pending_buf,f.pending-h,h)),m===0&&(f.status=HCRC_STATE)}else f.status=HCRC_STATE;if(f.status===HCRC_STATE&&(f.gzhead.hcrc?(f.pending+2>f.pending_buf_size&&flush_pending(d),f.pending+2<=f.pending_buf_size&&(put_byte(f,d.adler&255),put_byte(f,d.adler>>8&255),d.adler=0,f.status=BUSY_STATE)):f.status=BUSY_STATE),f.pending!==0){if(flush_pending(d),d.avail_out===0)return f.last_flush=-1,Z_OK$3}else if(d.avail_in===0&&rank(b)<=rank(v)&&b!==Z_FINISH$3)return err(d,Z_BUF_ERROR$1);if(f.status===FINISH_STATE&&d.avail_in!==0)return err(d,Z_BUF_ERROR$1);if(d.avail_in!==0||f.lookahead!==0||b!==Z_NO_FLUSH$2&&f.status!==FINISH_STATE){let _=f.strategy===Z_HUFFMAN_ONLY?deflate_huff(f,b):f.strategy===Z_RLE?deflate_rle(f,b):configuration_table[f.level].func(f,b);if((_===BS_FINISH_STARTED||_===BS_FINISH_DONE)&&(f.status=FINISH_STATE),_===BS_NEED_MORE||_===BS_FINISH_STARTED)return d.avail_out===0&&(f.last_flush=-1),Z_OK$3;if(_===BS_BLOCK_DONE&&(b===Z_PARTIAL_FLUSH?_tr_align(f):b!==Z_BLOCK$1&&(_tr_stored_block(f,0,0,!1),b===Z_FULL_FLUSH$1&&(zero(f.head),f.lookahead===0&&(f.strstart=0,f.block_start=0,f.insert=0))),flush_pending(d),d.avail_out===0))return f.last_flush=-1,Z_OK$3}return b!==Z_FINISH$3?Z_OK$3:f.wrap<=0?Z_STREAM_END$3:(f.wrap===2?(put_byte(f,d.adler&255),put_byte(f,d.adler>>8&255),put_byte(f,d.adler>>16&255),put_byte(f,d.adler>>24&255),put_byte(f,d.total_in&255),put_byte(f,d.total_in>>8&255),put_byte(f,d.total_in>>16&255),put_byte(f,d.total_in>>24&255)):(putShortMSB(f,d.adler>>>16),putShortMSB(f,d.adler&65535)),flush_pending(d),f.wrap>0&&(f.wrap=-f.wrap),f.pending!==0?Z_OK$3:Z_STREAM_END$3)},deflateEnd=d=>{if(!d||!d.state)return Z_STREAM_ERROR$2;const b=d.state.status;return b!==INIT_STATE&&b!==EXTRA_STATE&&b!==NAME_STATE&&b!==COMMENT_STATE&&b!==HCRC_STATE&&b!==BUSY_STATE&&b!==FINISH_STATE?err(d,Z_STREAM_ERROR$2):(d.state=null,b===BUSY_STATE?err(d,Z_DATA_ERROR$2):Z_OK$3)},deflateSetDictionary=(d,b)=>{let h=b.length;if(!d||!d.state)return Z_STREAM_ERROR$2;const m=d.state,f=m.wrap;if(f===2||f===1&&m.status!==INIT_STATE||m.lookahead)return Z_STREAM_ERROR$2;if(f===1&&(d.adler=adler32_1(d.adler,b,h,0)),m.wrap=0,h>=m.w_size){f===0&&(zero(m.head),m.strstart=0,m.block_start=0,m.insert=0);let M=new Uint8Array(m.w_size);M.set(b.subarray(h-m.w_size,h),0),b=M,h=m.w_size}const v=d.avail_in,_=d.next_in,A=d.input;for(d.avail_in=h,d.next_in=0,d.input=b,fill_window(m);m.lookahead>=MIN_MATCH;){let M=m.strstart,T=m.lookahead-(MIN_MATCH-1);do m.ins_h=HASH(m,m.ins_h,m.window[M+MIN_MATCH-1]),m.prev[M&m.w_mask]=m.head[m.ins_h],m.head[m.ins_h]=M,M++;while(--T);m.strstart=M,m.lookahead=MIN_MATCH-1,fill_window(m)}return m.strstart+=m.lookahead,m.block_start=m.strstart,m.insert=m.lookahead,m.lookahead=0,m.match_length=m.prev_length=MIN_MATCH-1,m.match_available=0,d.next_in=_,d.input=A,d.avail_in=v,m.wrap=f,Z_OK$3};var deflateInit_1=deflateInit,deflateInit2_1=deflateInit2,deflateReset_1=deflateReset,deflateResetKeep_1=deflateResetKeep,deflateSetHeader_1=deflateSetHeader,deflate_2$1=deflate$2,deflateEnd_1=deflateEnd,deflateSetDictionary_1=deflateSetDictionary,deflateInfo="pako deflate (from Nodeca project)",deflate_1$2={deflateInit:deflateInit_1,deflateInit2:deflateInit2_1,deflateReset:deflateReset_1,deflateResetKeep:deflateResetKeep_1,deflateSetHeader:deflateSetHeader_1,deflate:deflate_2$1,deflateEnd:deflateEnd_1,deflateSetDictionary:deflateSetDictionary_1,deflateInfo};const _has=(d,b)=>Object.prototype.hasOwnProperty.call(d,b);var assign=function(d){const b=Array.prototype.slice.call(arguments,1);for(;b.length;){const h=b.shift();if(!!h){if(typeof h!="object")throw new TypeError(h+"must be non-object");for(const m in h)_has(h,m)&&(d[m]=h[m])}}return d},flattenChunks=d=>{let b=0;for(let m=0,f=d.length;m=252?6:d>=248?5:d>=240?4:d>=224?3:d>=192?2:1;_utf8len[254]=_utf8len[254]=1;var string2buf=d=>{if(typeof TextEncoder=="function"&&TextEncoder.prototype.encode)return new TextEncoder().encode(d);let b,h,m,f,v,_=d.length,A=0;for(f=0;f<_;f++)h=d.charCodeAt(f),(h&64512)===55296&&f+1<_&&(m=d.charCodeAt(f+1),(m&64512)===56320&&(h=65536+(h-55296<<10)+(m-56320),f++)),A+=h<128?1:h<2048?2:h<65536?3:4;for(b=new Uint8Array(A),v=0,f=0;v>>6,b[v++]=128|h&63):h<65536?(b[v++]=224|h>>>12,b[v++]=128|h>>>6&63,b[v++]=128|h&63):(b[v++]=240|h>>>18,b[v++]=128|h>>>12&63,b[v++]=128|h>>>6&63,b[v++]=128|h&63);return b};const buf2binstring=(d,b)=>{if(b<65534&&d.subarray&&STR_APPLY_UIA_OK)return String.fromCharCode.apply(null,d.length===b?d:d.subarray(0,b));let h="";for(let m=0;m{const h=b||d.length;if(typeof TextDecoder=="function"&&TextDecoder.prototype.decode)return new TextDecoder().decode(d.subarray(0,b));let m,f;const v=new Array(h*2);for(f=0,m=0;m4){v[f++]=65533,m+=A-1;continue}for(_&=A===2?31:A===3?15:7;A>1&&m1){v[f++]=65533;continue}_<65536?v[f++]=_:(_-=65536,v[f++]=55296|_>>10&1023,v[f++]=56320|_&1023)}return buf2binstring(v,f)},utf8border=(d,b)=>{b=b||d.length,b>d.length&&(b=d.length);let h=b-1;for(;h>=0&&(d[h]&192)===128;)h--;return h<0||h===0?b:h+_utf8len[d[h]]>b?h:b},strings={string2buf,buf2string,utf8border};function ZStream(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}var zstream=ZStream;const toString$1=Object.prototype.toString,{Z_NO_FLUSH:Z_NO_FLUSH$1,Z_SYNC_FLUSH,Z_FULL_FLUSH,Z_FINISH:Z_FINISH$2,Z_OK:Z_OK$2,Z_STREAM_END:Z_STREAM_END$2,Z_DEFAULT_COMPRESSION,Z_DEFAULT_STRATEGY,Z_DEFLATED:Z_DEFLATED$1}=constants$2;function Deflate$1(d){this.options=common.assign({level:Z_DEFAULT_COMPRESSION,method:Z_DEFLATED$1,chunkSize:16384,windowBits:15,memLevel:8,strategy:Z_DEFAULT_STRATEGY},d||{});let b=this.options;b.raw&&b.windowBits>0?b.windowBits=-b.windowBits:b.gzip&&b.windowBits>0&&b.windowBits<16&&(b.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new zstream,this.strm.avail_out=0;let h=deflate_1$2.deflateInit2(this.strm,b.level,b.method,b.windowBits,b.memLevel,b.strategy);if(h!==Z_OK$2)throw new Error(messages[h]);if(b.header&&deflate_1$2.deflateSetHeader(this.strm,b.header),b.dictionary){let m;if(typeof b.dictionary=="string"?m=strings.string2buf(b.dictionary):toString$1.call(b.dictionary)==="[object ArrayBuffer]"?m=new Uint8Array(b.dictionary):m=b.dictionary,h=deflate_1$2.deflateSetDictionary(this.strm,m),h!==Z_OK$2)throw new Error(messages[h]);this._dict_set=!0}}Deflate$1.prototype.push=function(d,b){const h=this.strm,m=this.options.chunkSize;let f,v;if(this.ended)return!1;for(b===~~b?v=b:v=b===!0?Z_FINISH$2:Z_NO_FLUSH$1,typeof d=="string"?h.input=strings.string2buf(d):toString$1.call(d)==="[object ArrayBuffer]"?h.input=new Uint8Array(d):h.input=d,h.next_in=0,h.avail_in=h.input.length;;){if(h.avail_out===0&&(h.output=new Uint8Array(m),h.next_out=0,h.avail_out=m),(v===Z_SYNC_FLUSH||v===Z_FULL_FLUSH)&&h.avail_out<=6){this.onData(h.output.subarray(0,h.next_out)),h.avail_out=0;continue}if(f=deflate_1$2.deflate(h,v),f===Z_STREAM_END$2)return h.next_out>0&&this.onData(h.output.subarray(0,h.next_out)),f=deflate_1$2.deflateEnd(this.strm),this.onEnd(f),this.ended=!0,f===Z_OK$2;if(h.avail_out===0){this.onData(h.output);continue}if(v>0&&h.next_out>0){this.onData(h.output.subarray(0,h.next_out)),h.avail_out=0;continue}if(h.avail_in===0)break}return!0};Deflate$1.prototype.onData=function(d){this.chunks.push(d)};Deflate$1.prototype.onEnd=function(d){d===Z_OK$2&&(this.result=common.flattenChunks(this.chunks)),this.chunks=[],this.err=d,this.msg=this.strm.msg};function deflate$1(d,b){const h=new Deflate$1(b);if(h.push(d,!0),h.err)throw h.msg||messages[h.err];return h.result}function deflateRaw$1(d,b){return b=b||{},b.raw=!0,deflate$1(d,b)}function gzip$1(d,b){return b=b||{},b.gzip=!0,deflate$1(d,b)}var Deflate_1$1=Deflate$1,deflate_2=deflate$1,deflateRaw_1$1=deflateRaw$1,gzip_1$1=gzip$1,constants$1=constants$2,deflate_1$1={Deflate:Deflate_1$1,deflate:deflate_2,deflateRaw:deflateRaw_1$1,gzip:gzip_1$1,constants:constants$1};const BAD$1=30,TYPE$1=12;var inffast=function d(b,h){let m,f,v,_,A,M,T,O,B,z,q,J,rt,ut,Z,mt,nt,at,_t,jt,St,gt,Ct,vt;const ft=b.state;m=b.next_in,Ct=b.input,f=m+(b.avail_in-5),v=b.next_out,vt=b.output,_=v-(h-b.avail_out),A=v+(b.avail_out-257),M=ft.dmax,T=ft.wsize,O=ft.whave,B=ft.wnext,z=ft.window,q=ft.hold,J=ft.bits,rt=ft.lencode,ut=ft.distcode,Z=(1<>>24,q>>>=at,J-=at,at=nt>>>16&255,at===0)vt[v++]=nt&65535;else if(at&16){_t=nt&65535,at&=15,at&&(J>>=at,J-=at),J<15&&(q+=Ct[m++]<>>24,q>>>=at,J-=at,at=nt>>>16&255,at&16){if(jt=nt&65535,at&=15,JM){b.msg="invalid distance too far back",ft.mode=BAD$1;break t}if(q>>>=at,J-=at,at=v-_,jt>at){if(at=jt-at,at>O&&ft.sane){b.msg="invalid distance too far back",ft.mode=BAD$1;break t}if(St=0,gt=z,B===0){if(St+=T-at,at<_t){_t-=at;do vt[v++]=z[St++];while(--at);St=v-jt,gt=vt}}else if(B2;)vt[v++]=gt[St++],vt[v++]=gt[St++],vt[v++]=gt[St++],_t-=3;_t&&(vt[v++]=gt[St++],_t>1&&(vt[v++]=gt[St++]))}else{St=v-jt;do vt[v++]=vt[St++],vt[v++]=vt[St++],vt[v++]=vt[St++],_t-=3;while(_t>2);_t&&(vt[v++]=vt[St++],_t>1&&(vt[v++]=vt[St++]))}}else if((at&64)===0){nt=ut[(nt&65535)+(q&(1<>3,m-=_t,J-=_t<<3,q&=(1<{const M=A.bits;let T=0,O=0,B=0,z=0,q=0,J=0,rt=0,ut=0,Z=0,mt=0,nt,at,_t,jt,St,gt=null,Ct=0,vt;const ft=new Uint16Array(MAXBITS+1),Q=new Uint16Array(MAXBITS+1);let ht=null,$=0,kt,W,At;for(T=0;T<=MAXBITS;T++)ft[T]=0;for(O=0;O=1&&ft[z]===0;z--);if(q>z&&(q=z),z===0)return f[v++]=1<<24|64<<16|0,f[v++]=1<<24|64<<16|0,A.bits=1,0;for(B=1;B0&&(d===CODES$1||z!==1))return-1;for(Q[1]=0,T=1;TENOUGH_LENS$1||d===DISTS$1&&Z>ENOUGH_DISTS$1)return 1;for(;;){kt=T-rt,_[O]vt?(W=ht[$+_[O]],At=gt[Ct+_[O]]):(W=32+64,At=0),nt=1<>rt)+at]=kt<<24|W<<16|At|0;while(at!==0);for(nt=1<>=1;if(nt!==0?(mt&=nt-1,mt+=nt):mt=0,O++,--ft[T]===0){if(T===z)break;T=b[h+_[O]]}if(T>q&&(mt&jt)!==_t){for(rt===0&&(rt=q),St+=B,J=T-rt,ut=1<ENOUGH_LENS$1||d===DISTS$1&&Z>ENOUGH_DISTS$1)return 1;_t=mt&jt,f[_t]=q<<24|J<<16|St-v|0}}return mt!==0&&(f[St+mt]=T-rt<<24|64<<16|0),A.bits=q,0};var inftrees=inflate_table;const CODES=0,LENS=1,DISTS=2,{Z_FINISH:Z_FINISH$1,Z_BLOCK,Z_TREES,Z_OK:Z_OK$1,Z_STREAM_END:Z_STREAM_END$1,Z_NEED_DICT:Z_NEED_DICT$1,Z_STREAM_ERROR:Z_STREAM_ERROR$1,Z_DATA_ERROR:Z_DATA_ERROR$1,Z_MEM_ERROR:Z_MEM_ERROR$1,Z_BUF_ERROR,Z_DEFLATED}=constants$2,HEAD=1,FLAGS=2,TIME=3,OS=4,EXLEN=5,EXTRA=6,NAME=7,COMMENT=8,HCRC=9,DICTID=10,DICT=11,TYPE=12,TYPEDO=13,STORED=14,COPY_=15,COPY=16,TABLE=17,LENLENS=18,CODELENS=19,LEN_=20,LEN=21,LENEXT=22,DIST=23,DISTEXT=24,MATCH=25,LIT=26,CHECK=27,LENGTH=28,DONE=29,BAD=30,MEM=31,SYNC=32,ENOUGH_LENS=852,ENOUGH_DISTS=592,MAX_WBITS=15,DEF_WBITS=MAX_WBITS,zswap32=d=>(d>>>24&255)+(d>>>8&65280)+((d&65280)<<8)+((d&255)<<24);function InflateState(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new Uint16Array(320),this.work=new Uint16Array(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}const inflateResetKeep=d=>{if(!d||!d.state)return Z_STREAM_ERROR$1;const b=d.state;return d.total_in=d.total_out=b.total=0,d.msg="",b.wrap&&(d.adler=b.wrap&1),b.mode=HEAD,b.last=0,b.havedict=0,b.dmax=32768,b.head=null,b.hold=0,b.bits=0,b.lencode=b.lendyn=new Int32Array(ENOUGH_LENS),b.distcode=b.distdyn=new Int32Array(ENOUGH_DISTS),b.sane=1,b.back=-1,Z_OK$1},inflateReset=d=>{if(!d||!d.state)return Z_STREAM_ERROR$1;const b=d.state;return b.wsize=0,b.whave=0,b.wnext=0,inflateResetKeep(d)},inflateReset2=(d,b)=>{let h;if(!d||!d.state)return Z_STREAM_ERROR$1;const m=d.state;return b<0?(h=0,b=-b):(h=(b>>4)+1,b<48&&(b&=15)),b&&(b<8||b>15)?Z_STREAM_ERROR$1:(m.window!==null&&m.wbits!==b&&(m.window=null),m.wrap=h,m.wbits=b,inflateReset(d))},inflateInit2=(d,b)=>{if(!d)return Z_STREAM_ERROR$1;const h=new InflateState;d.state=h,h.window=null;const m=inflateReset2(d,b);return m!==Z_OK$1&&(d.state=null),m},inflateInit=d=>inflateInit2(d,DEF_WBITS);let virgin=!0,lenfix,distfix;const fixedtables=d=>{if(virgin){lenfix=new Int32Array(512),distfix=new Int32Array(32);let b=0;for(;b<144;)d.lens[b++]=8;for(;b<256;)d.lens[b++]=9;for(;b<280;)d.lens[b++]=7;for(;b<288;)d.lens[b++]=8;for(inftrees(LENS,d.lens,0,288,lenfix,0,d.work,{bits:9}),b=0;b<32;)d.lens[b++]=5;inftrees(DISTS,d.lens,0,32,distfix,0,d.work,{bits:5}),virgin=!1}d.lencode=lenfix,d.lenbits=9,d.distcode=distfix,d.distbits=5},updatewindow=(d,b,h,m)=>{let f;const v=d.state;return v.window===null&&(v.wsize=1<=v.wsize?(v.window.set(b.subarray(h-v.wsize,h),0),v.wnext=0,v.whave=v.wsize):(f=v.wsize-v.wnext,f>m&&(f=m),v.window.set(b.subarray(h-m,h-m+f),v.wnext),m-=f,m?(v.window.set(b.subarray(h-m,h),0),v.wnext=m,v.whave=v.wsize):(v.wnext+=f,v.wnext===v.wsize&&(v.wnext=0),v.whave{let h,m,f,v,_,A,M,T,O,B,z,q,J,rt,ut=0,Z,mt,nt,at,_t,jt,St,gt;const Ct=new Uint8Array(4);let vt,ft;const Q=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]);if(!d||!d.state||!d.output||!d.input&&d.avail_in!==0)return Z_STREAM_ERROR$1;h=d.state,h.mode===TYPE&&(h.mode=TYPEDO),_=d.next_out,f=d.output,M=d.avail_out,v=d.next_in,m=d.input,A=d.avail_in,T=h.hold,O=h.bits,B=A,z=M,gt=Z_OK$1;t:for(;;)switch(h.mode){case HEAD:if(h.wrap===0){h.mode=TYPEDO;break}for(;O<16;){if(A===0)break t;A--,T+=m[v++]<>>8&255,h.check=crc32_1(h.check,Ct,2,0),T=0,O=0,h.mode=FLAGS;break}if(h.flags=0,h.head&&(h.head.done=!1),!(h.wrap&1)||(((T&255)<<8)+(T>>8))%31){d.msg="incorrect header check",h.mode=BAD;break}if((T&15)!==Z_DEFLATED){d.msg="unknown compression method",h.mode=BAD;break}if(T>>>=4,O-=4,St=(T&15)+8,h.wbits===0)h.wbits=St;else if(St>h.wbits){d.msg="invalid window size",h.mode=BAD;break}h.dmax=1<>8&1),h.flags&512&&(Ct[0]=T&255,Ct[1]=T>>>8&255,h.check=crc32_1(h.check,Ct,2,0)),T=0,O=0,h.mode=TIME;case TIME:for(;O<32;){if(A===0)break t;A--,T+=m[v++]<>>8&255,Ct[2]=T>>>16&255,Ct[3]=T>>>24&255,h.check=crc32_1(h.check,Ct,4,0)),T=0,O=0,h.mode=OS;case OS:for(;O<16;){if(A===0)break t;A--,T+=m[v++]<>8),h.flags&512&&(Ct[0]=T&255,Ct[1]=T>>>8&255,h.check=crc32_1(h.check,Ct,2,0)),T=0,O=0,h.mode=EXLEN;case EXLEN:if(h.flags&1024){for(;O<16;){if(A===0)break t;A--,T+=m[v++]<>>8&255,h.check=crc32_1(h.check,Ct,2,0)),T=0,O=0}else h.head&&(h.head.extra=null);h.mode=EXTRA;case EXTRA:if(h.flags&1024&&(q=h.length,q>A&&(q=A),q&&(h.head&&(St=h.head.extra_len-h.length,h.head.extra||(h.head.extra=new Uint8Array(h.head.extra_len)),h.head.extra.set(m.subarray(v,v+q),St)),h.flags&512&&(h.check=crc32_1(h.check,m,q,v)),A-=q,v+=q,h.length-=q),h.length))break t;h.length=0,h.mode=NAME;case NAME:if(h.flags&2048){if(A===0)break t;q=0;do St=m[v+q++],h.head&&St&&h.length<65536&&(h.head.name+=String.fromCharCode(St));while(St&&q>9&1,h.head.done=!0),d.adler=h.check=0,h.mode=TYPE;break;case DICTID:for(;O<32;){if(A===0)break t;A--,T+=m[v++]<>>=O&7,O-=O&7,h.mode=CHECK;break}for(;O<3;){if(A===0)break t;A--,T+=m[v++]<>>=1,O-=1,T&3){case 0:h.mode=STORED;break;case 1:if(fixedtables(h),h.mode=LEN_,b===Z_TREES){T>>>=2,O-=2;break t}break;case 2:h.mode=TABLE;break;case 3:d.msg="invalid block type",h.mode=BAD}T>>>=2,O-=2;break;case STORED:for(T>>>=O&7,O-=O&7;O<32;){if(A===0)break t;A--,T+=m[v++]<>>16^65535)){d.msg="invalid stored block lengths",h.mode=BAD;break}if(h.length=T&65535,T=0,O=0,h.mode=COPY_,b===Z_TREES)break t;case COPY_:h.mode=COPY;case COPY:if(q=h.length,q){if(q>A&&(q=A),q>M&&(q=M),q===0)break t;f.set(m.subarray(v,v+q),_),A-=q,v+=q,M-=q,_+=q,h.length-=q;break}h.mode=TYPE;break;case TABLE:for(;O<14;){if(A===0)break t;A--,T+=m[v++]<>>=5,O-=5,h.ndist=(T&31)+1,T>>>=5,O-=5,h.ncode=(T&15)+4,T>>>=4,O-=4,h.nlen>286||h.ndist>30){d.msg="too many length or distance symbols",h.mode=BAD;break}h.have=0,h.mode=LENLENS;case LENLENS:for(;h.have>>=3,O-=3}for(;h.have<19;)h.lens[Q[h.have++]]=0;if(h.lencode=h.lendyn,h.lenbits=7,vt={bits:h.lenbits},gt=inftrees(CODES,h.lens,0,19,h.lencode,0,h.work,vt),h.lenbits=vt.bits,gt){d.msg="invalid code lengths set",h.mode=BAD;break}h.have=0,h.mode=CODELENS;case CODELENS:for(;h.have>>24,mt=ut>>>16&255,nt=ut&65535,!(Z<=O);){if(A===0)break t;A--,T+=m[v++]<>>=Z,O-=Z,h.lens[h.have++]=nt;else{if(nt===16){for(ft=Z+2;O>>=Z,O-=Z,h.have===0){d.msg="invalid bit length repeat",h.mode=BAD;break}St=h.lens[h.have-1],q=3+(T&3),T>>>=2,O-=2}else if(nt===17){for(ft=Z+3;O>>=Z,O-=Z,St=0,q=3+(T&7),T>>>=3,O-=3}else{for(ft=Z+7;O>>=Z,O-=Z,St=0,q=11+(T&127),T>>>=7,O-=7}if(h.have+q>h.nlen+h.ndist){d.msg="invalid bit length repeat",h.mode=BAD;break}for(;q--;)h.lens[h.have++]=St}}if(h.mode===BAD)break;if(h.lens[256]===0){d.msg="invalid code -- missing end-of-block",h.mode=BAD;break}if(h.lenbits=9,vt={bits:h.lenbits},gt=inftrees(LENS,h.lens,0,h.nlen,h.lencode,0,h.work,vt),h.lenbits=vt.bits,gt){d.msg="invalid literal/lengths set",h.mode=BAD;break}if(h.distbits=6,h.distcode=h.distdyn,vt={bits:h.distbits},gt=inftrees(DISTS,h.lens,h.nlen,h.ndist,h.distcode,0,h.work,vt),h.distbits=vt.bits,gt){d.msg="invalid distances set",h.mode=BAD;break}if(h.mode=LEN_,b===Z_TREES)break t;case LEN_:h.mode=LEN;case LEN:if(A>=6&&M>=258){d.next_out=_,d.avail_out=M,d.next_in=v,d.avail_in=A,h.hold=T,h.bits=O,inffast(d,z),_=d.next_out,f=d.output,M=d.avail_out,v=d.next_in,m=d.input,A=d.avail_in,T=h.hold,O=h.bits,h.mode===TYPE&&(h.back=-1);break}for(h.back=0;ut=h.lencode[T&(1<>>24,mt=ut>>>16&255,nt=ut&65535,!(Z<=O);){if(A===0)break t;A--,T+=m[v++]<>at)],Z=ut>>>24,mt=ut>>>16&255,nt=ut&65535,!(at+Z<=O);){if(A===0)break t;A--,T+=m[v++]<>>=at,O-=at,h.back+=at}if(T>>>=Z,O-=Z,h.back+=Z,h.length=nt,mt===0){h.mode=LIT;break}if(mt&32){h.back=-1,h.mode=TYPE;break}if(mt&64){d.msg="invalid literal/length code",h.mode=BAD;break}h.extra=mt&15,h.mode=LENEXT;case LENEXT:if(h.extra){for(ft=h.extra;O>>=h.extra,O-=h.extra,h.back+=h.extra}h.was=h.length,h.mode=DIST;case DIST:for(;ut=h.distcode[T&(1<>>24,mt=ut>>>16&255,nt=ut&65535,!(Z<=O);){if(A===0)break t;A--,T+=m[v++]<>at)],Z=ut>>>24,mt=ut>>>16&255,nt=ut&65535,!(at+Z<=O);){if(A===0)break t;A--,T+=m[v++]<>>=at,O-=at,h.back+=at}if(T>>>=Z,O-=Z,h.back+=Z,mt&64){d.msg="invalid distance code",h.mode=BAD;break}h.offset=nt,h.extra=mt&15,h.mode=DISTEXT;case DISTEXT:if(h.extra){for(ft=h.extra;O>>=h.extra,O-=h.extra,h.back+=h.extra}if(h.offset>h.dmax){d.msg="invalid distance too far back",h.mode=BAD;break}h.mode=MATCH;case MATCH:if(M===0)break t;if(q=z-M,h.offset>q){if(q=h.offset-q,q>h.whave&&h.sane){d.msg="invalid distance too far back",h.mode=BAD;break}q>h.wnext?(q-=h.wnext,J=h.wsize-q):J=h.wnext-q,q>h.length&&(q=h.length),rt=h.window}else rt=f,J=_-h.offset,q=h.length;q>M&&(q=M),M-=q,h.length-=q;do f[_++]=rt[J++];while(--q);h.length===0&&(h.mode=LEN);break;case LIT:if(M===0)break t;f[_++]=h.length,M--,h.mode=LEN;break;case CHECK:if(h.wrap){for(;O<32;){if(A===0)break t;A--,T|=m[v++]<{if(!d||!d.state)return Z_STREAM_ERROR$1;let b=d.state;return b.window&&(b.window=null),d.state=null,Z_OK$1},inflateGetHeader=(d,b)=>{if(!d||!d.state)return Z_STREAM_ERROR$1;const h=d.state;return(h.wrap&2)===0?Z_STREAM_ERROR$1:(h.head=b,b.done=!1,Z_OK$1)},inflateSetDictionary=(d,b)=>{const h=b.length;let m,f,v;return!d||!d.state||(m=d.state,m.wrap!==0&&m.mode!==DICT)?Z_STREAM_ERROR$1:m.mode===DICT&&(f=1,f=adler32_1(f,b,h,0),f!==m.check)?Z_DATA_ERROR$1:(v=updatewindow(d,b,h,h),v?(m.mode=MEM,Z_MEM_ERROR$1):(m.havedict=1,Z_OK$1))};var inflateReset_1=inflateReset,inflateReset2_1=inflateReset2,inflateResetKeep_1=inflateResetKeep,inflateInit_1=inflateInit,inflateInit2_1=inflateInit2,inflate_2$1=inflate$2,inflateEnd_1=inflateEnd,inflateGetHeader_1=inflateGetHeader,inflateSetDictionary_1=inflateSetDictionary,inflateInfo="pako inflate (from Nodeca project)",inflate_1$2={inflateReset:inflateReset_1,inflateReset2:inflateReset2_1,inflateResetKeep:inflateResetKeep_1,inflateInit:inflateInit_1,inflateInit2:inflateInit2_1,inflate:inflate_2$1,inflateEnd:inflateEnd_1,inflateGetHeader:inflateGetHeader_1,inflateSetDictionary:inflateSetDictionary_1,inflateInfo};function GZheader(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}var gzheader=GZheader;const toString=Object.prototype.toString,{Z_NO_FLUSH,Z_FINISH,Z_OK,Z_STREAM_END,Z_NEED_DICT,Z_STREAM_ERROR,Z_DATA_ERROR,Z_MEM_ERROR}=constants$2;function Inflate$1(d){this.options=common.assign({chunkSize:1024*64,windowBits:15,to:""},d||{});const b=this.options;b.raw&&b.windowBits>=0&&b.windowBits<16&&(b.windowBits=-b.windowBits,b.windowBits===0&&(b.windowBits=-15)),b.windowBits>=0&&b.windowBits<16&&!(d&&d.windowBits)&&(b.windowBits+=32),b.windowBits>15&&b.windowBits<48&&(b.windowBits&15)===0&&(b.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new zstream,this.strm.avail_out=0;let h=inflate_1$2.inflateInit2(this.strm,b.windowBits);if(h!==Z_OK)throw new Error(messages[h]);if(this.header=new gzheader,inflate_1$2.inflateGetHeader(this.strm,this.header),b.dictionary&&(typeof b.dictionary=="string"?b.dictionary=strings.string2buf(b.dictionary):toString.call(b.dictionary)==="[object ArrayBuffer]"&&(b.dictionary=new Uint8Array(b.dictionary)),b.raw&&(h=inflate_1$2.inflateSetDictionary(this.strm,b.dictionary),h!==Z_OK)))throw new Error(messages[h])}Inflate$1.prototype.push=function(d,b){const h=this.strm,m=this.options.chunkSize,f=this.options.dictionary;let v,_,A;if(this.ended)return!1;for(b===~~b?_=b:_=b===!0?Z_FINISH:Z_NO_FLUSH,toString.call(d)==="[object ArrayBuffer]"?h.input=new Uint8Array(d):h.input=d,h.next_in=0,h.avail_in=h.input.length;;){for(h.avail_out===0&&(h.output=new Uint8Array(m),h.next_out=0,h.avail_out=m),v=inflate_1$2.inflate(h,_),v===Z_NEED_DICT&&f&&(v=inflate_1$2.inflateSetDictionary(h,f),v===Z_OK?v=inflate_1$2.inflate(h,_):v===Z_DATA_ERROR&&(v=Z_NEED_DICT));h.avail_in>0&&v===Z_STREAM_END&&h.state.wrap>0&&d[h.next_in]!==0;)inflate_1$2.inflateReset(h),v=inflate_1$2.inflate(h,_);switch(v){case Z_STREAM_ERROR:case Z_DATA_ERROR:case Z_NEED_DICT:case Z_MEM_ERROR:return this.onEnd(v),this.ended=!0,!1}if(A=h.avail_out,h.next_out&&(h.avail_out===0||v===Z_STREAM_END))if(this.options.to==="string"){let M=strings.utf8border(h.output,h.next_out),T=h.next_out-M,O=strings.buf2string(h.output,M);h.next_out=T,h.avail_out=m-T,T&&h.output.set(h.output.subarray(M,M+T),0),this.onData(O)}else this.onData(h.output.length===h.next_out?h.output:h.output.subarray(0,h.next_out));if(!(v===Z_OK&&A===0)){if(v===Z_STREAM_END)return v=inflate_1$2.inflateEnd(this.strm),this.onEnd(v),this.ended=!0,!0;if(h.avail_in===0)break}}return!0};Inflate$1.prototype.onData=function(d){this.chunks.push(d)};Inflate$1.prototype.onEnd=function(d){d===Z_OK&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=common.flattenChunks(this.chunks)),this.chunks=[],this.err=d,this.msg=this.strm.msg};function inflate$1(d,b){const h=new Inflate$1(b);if(h.push(d),h.err)throw h.msg||messages[h.err];return h.result}function inflateRaw$1(d,b){return b=b||{},b.raw=!0,inflate$1(d,b)}var Inflate_1$1=Inflate$1,inflate_2=inflate$1,inflateRaw_1$1=inflateRaw$1,ungzip$1=inflate$1,constants=constants$2,inflate_1$1={Inflate:Inflate_1$1,inflate:inflate_2,inflateRaw:inflateRaw_1$1,ungzip:ungzip$1,constants};const{Deflate,deflate,deflateRaw,gzip}=deflate_1$1,{Inflate,inflate,inflateRaw,ungzip}=inflate_1$1;var deflate_1=deflate,inflate_1=inflate;const _hasatob=typeof atob=="function",_hasbtoa=typeof btoa=="function",_hasBuffer=typeof Buffer=="function",_TD=typeof TextDecoder=="function"?new TextDecoder:void 0,_TE=typeof TextEncoder=="function"?new TextEncoder:void 0,b64ch="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",b64chs=Array.prototype.slice.call(b64ch),b64tab=(d=>{let b={};return d.forEach((h,m)=>b[h]=m),b})(b64chs),b64re=/^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/,_fromCC=String.fromCharCode.bind(String),_U8Afrom=typeof Uint8Array.from=="function"?Uint8Array.from.bind(Uint8Array):(d,b=h=>h)=>new Uint8Array(Array.prototype.slice.call(d,0).map(b)),_mkUriSafe=d=>d.replace(/=/g,"").replace(/[+\/]/g,b=>b=="+"?"-":"_"),_tidyB64=d=>d.replace(/[^A-Za-z0-9\+\/]/g,""),btoaPolyfill=d=>{let b,h,m,f,v="";const _=d.length%3;for(let A=0;A255||(m=d.charCodeAt(A++))>255||(f=d.charCodeAt(A++))>255)throw new TypeError("invalid character found");b=h<<16|m<<8|f,v+=b64chs[b>>18&63]+b64chs[b>>12&63]+b64chs[b>>6&63]+b64chs[b&63]}return _?v.slice(0,_-3)+"===".substring(_):v},_btoa=_hasbtoa?d=>btoa(d):_hasBuffer?d=>Buffer.from(d,"binary").toString("base64"):btoaPolyfill,_fromUint8Array=_hasBuffer?d=>Buffer.from(d).toString("base64"):d=>{let h=[];for(let m=0,f=d.length;mb?_mkUriSafe(_fromUint8Array(d)):_fromUint8Array(d),cb_utob=d=>{if(d.length<2){var b=d.charCodeAt(0);return b<128?d:b<2048?_fromCC(192|b>>>6)+_fromCC(128|b&63):_fromCC(224|b>>>12&15)+_fromCC(128|b>>>6&63)+_fromCC(128|b&63)}else{var b=65536+(d.charCodeAt(0)-55296)*1024+(d.charCodeAt(1)-56320);return _fromCC(240|b>>>18&7)+_fromCC(128|b>>>12&63)+_fromCC(128|b>>>6&63)+_fromCC(128|b&63)}},re_utob=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,utob=d=>d.replace(re_utob,cb_utob),_encode=_hasBuffer?d=>Buffer.from(d,"utf8").toString("base64"):_TE?d=>_fromUint8Array(_TE.encode(d)):d=>_btoa(utob(d)),encode=(d,b=!1)=>b?_mkUriSafe(_encode(d)):_encode(d),re_btou=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,cb_btou=d=>{switch(d.length){case 4:var b=(7&d.charCodeAt(0))<<18|(63&d.charCodeAt(1))<<12|(63&d.charCodeAt(2))<<6|63&d.charCodeAt(3),h=b-65536;return _fromCC((h>>>10)+55296)+_fromCC((h&1023)+56320);case 3:return _fromCC((15&d.charCodeAt(0))<<12|(63&d.charCodeAt(1))<<6|63&d.charCodeAt(2));default:return _fromCC((31&d.charCodeAt(0))<<6|63&d.charCodeAt(1))}},btou=d=>d.replace(re_btou,cb_btou),atobPolyfill=d=>{if(d=d.replace(/\s+/g,""),!b64re.test(d))throw new TypeError("malformed base64.");d+="==".slice(2-(d.length&3));let b,h="",m,f;for(let v=0;v>16&255):f===64?_fromCC(b>>16&255,b>>8&255):_fromCC(b>>16&255,b>>8&255,b&255);return h},_atob=_hasatob?d=>atob(_tidyB64(d)):_hasBuffer?d=>Buffer.from(d,"base64").toString("binary"):atobPolyfill,_toUint8Array=_hasBuffer?d=>_U8Afrom(Buffer.from(d,"base64")):d=>_U8Afrom(_atob(d),b=>b.charCodeAt(0)),toUint8Array=d=>_toUint8Array(_unURI(d)),_decode=_hasBuffer?d=>Buffer.from(d,"base64").toString("utf8"):_TD?d=>_TD.decode(_toUint8Array(d)):d=>btou(_atob(d)),_unURI=d=>_tidyB64(d.replace(/[-_]/g,b=>b=="-"?"+":"/")),decode=d=>_decode(_unURI(d)),base64Serde={serialize:d=>encode(d,!0),deserialize:d=>decode(d)},pakoSerde={serialize:d=>{const b=new TextEncoder().encode(d),h=deflate_1(b,{level:9});return fromUint8Array(h,!0)},deserialize:d=>{const b=toUint8Array(d);return inflate_1(b,{to:"string"})}},serdes={base64:base64Serde,pako:pakoSerde},serializeState=(d,b="pako")=>{if(serdes[b]===void 0)throw new Error(`Unknown serde type: ${b}`);const h=JSON.stringify(d),m=serdes[b].serialize(h);return`${b}:${m}`},deserializeState=d=>{let b,h;if(d.includes(":")){let f;if([f,h]=d.split(":"),f in serdes)b=f;else throw new Error(`Unknown serde type: ${f}`)}else b="base64",h=d;const m=serdes[b].deserialize(h);return JSON.parse(m)};var dist={},words={};(function(d){var b=commonjsGlobal&&commonjsGlobal.__values||function(m){var f=typeof Symbol=="function"&&Symbol.iterator,v=f&&m[f],_=0;if(v)return v.call(m);if(m&&typeof m.length=="number")return{next:function(){return m&&_>=m.length&&(m=void 0),{value:m&&m[_++],done:!m}}};throw new TypeError(f?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(d,"__esModule",{value:!0}),d.getWordsByCategory=d.wordList=void 0,d.wordList={noun:[{word:"accountant",categories:["profession"]},{word:"ability",categories:["thing"]},{word:"accident",categories:["thing"]},{word:"account",categories:["thing"]},{word:"action",categories:["thing"]},{word:"activity",categories:["thing"]},{word:"actor",categories:["profession"]},{word:"ad",categories:["media"]},{word:"addition",categories:["thing"]},{word:"address",categories:["thing"]},{word:"adult",categories:["people"]},{word:"advantage",categories:["thing"]},{word:"advertisement",categories:["media"]},{word:"afternoon",categories:["time"]},{word:"agency",categories:["thing"]},{word:"agent",categories:["people"]},{word:"air",categories:["thing"]},{word:"airline",categories:["transportation"]},{word:"airplane",categories:["transportation"]},{word:"airport",categories:["transportation","place"]},{word:"alarm",categories:["thing"]},{word:"alligator",categories:["animals"]},{word:"ambulance",categories:["health"]},{word:"analyst",categories:["profession"]},{word:"angle",categories:["thing"]},{word:"animal",categories:["animals"]},{word:"answer",categories:["thing"]},{word:"apartment",categories:["place"]},{word:"apple",categories:["food"]},{word:"application",categories:["thing"]},{word:"appointment",categories:["thing"]},{word:"architect",categories:["profession"]},{word:"argument",categories:["thing"]},{word:"area",categories:["thing"]},{word:"arm",categories:["thing"]},{word:"army",categories:["thing"]},{word:"art",categories:["thing"]},{word:"article",categories:["thing"]},{word:"artist",categories:["profession"]},{word:"australia",categories:["place"]},{word:"author",categories:["profession"]},{word:"autumn",categories:["time"]},{word:"baby",categories:["people","family"]},{word:"baker",categories:["profession"]},{word:"balloon",categories:["thing"]},{word:"banana",categories:["food"]},{word:"barista",categories:["profession"]},{word:"battery",categories:["thing"]},{word:"beach",categories:["place"]},{word:"bear",categories:["animals"]},{word:"beard",categories:["thing"]},{word:"bed",categories:["thing"]},{word:"belgium",categories:["place"]},{word:"bird",categories:["animals"]},{word:"bit",categories:["thing","technology"]},{word:"book",categories:["thing","education"]},{word:"boots",categories:["thing"]},{word:"boy",categories:["people"]},{word:"branch",categories:["thing"]},{word:"breakfast",categories:["thing"]},{word:"brother",categories:["family"]},{word:"businessperson",categories:["people","business"]},{word:"butcher",categories:["profession"]},{word:"byte",categories:["thing","technology"]},{word:"camera",categories:["thing"]},{word:"candle",categories:["thing"]},{word:"car",categories:["transportation"]},{word:"caravan",categories:["transportation"]},{word:"carpenter",categories:["profession"]},{word:"carpet",categories:["thing"]},{word:"cartoon",categories:["media"]},{word:"cat",categories:["animals"]},{word:"chef",categories:["profession"]},{word:"child",categories:["people","family"]},{word:"china",categories:["place"]},{word:"church",categories:["religion"]},{word:"city",categories:["place"]},{word:"coat",categories:["thing"]},{word:"coffeeshop",categories:["place"]},{word:"computer",categories:["thing","technology"]},{word:"continent",categories:["place"]},{word:"controller",categories:["thing","technology"]},{word:"country",categories:["place"]},{word:"cpu",categories:["thing","technology"]},{word:"crayon",categories:["thing"]},{word:"cricket",categories:["animals"]},{word:"crowd",categories:["people"]},{word:"daughter",categories:["family"]},{word:"dawn",categories:["time"]},{word:"daybreak",categories:["time"]},{word:"death",categories:["thing"]},{word:"denmark",categories:["place"]},{word:"dentist",categories:["profession"]},{word:"diamond",categories:["thing"]},{word:"dinner",categories:["food"]},{word:"disease",categories:["thing"]},{word:"doctor",categories:["profession"]},{word:"dog",categories:["animals"]},{word:"dream",categories:["thing"]},{word:"dress",categories:["thing"]},{word:"dusk",categories:["time"]},{word:"easter",categories:["religion"]},{word:"egg",categories:["food"]},{word:"eggplant",categories:["food"]},{word:"egypt",categories:["place"]},{word:"electrician",categories:["profession"]},{word:"elephant",categories:["animals"]},{word:"energy",categories:["thing"]},{word:"engine",categories:["transportation"]},{word:"engineer",categories:["profession"]},{word:"england",categories:["place"]},{word:"eve",categories:["time"]},{word:"evening",categories:["time"]},{word:"eventide",categories:["time"]},{word:"exabyte",categories:["thing","technology"]},{word:"eye",categories:["thing"]},{word:"fall",categories:["time"]},{word:"family",categories:["family"]},{word:"farmer",categories:["profession"]},{word:"father",categories:["people","family"]},{word:"finland",categories:["place"]},{word:"fireman",categories:["profession"]},{word:"fish",categories:["animals"]},{word:"flag",categories:["thing"]},{word:"florist",categories:["profession"]},{word:"flower",categories:["thing"]},{word:"football",categories:["sports"]},{word:"forest",categories:["place"]},{word:"fountain",categories:["thing"]},{word:"france",categories:["place"]},{word:"furniture",categories:["thing"]},{word:"garage",categories:["place"]},{word:"garden",categories:["food"]},{word:"gas",categories:["transportation"]},{word:"ghost",categories:["thing"]},{word:"gigabyte",categories:["thing","technology"]},{word:"girl",categories:["people"]},{word:"glass",categories:["thing"]},{word:"gold",categories:["thing"]},{word:"gpu",categories:["thing","technology"]},{word:"grandmother",categories:["people","family"]},{word:"grass",categories:["thing"]},{word:"greece",categories:["place"]},{word:"guitar",categories:["thing"]},{word:"hair",categories:["thing"]},{word:"hairdresser",categories:["profession"]},{word:"hamburger",categories:["food"]},{word:"helicopter",categories:["transportation"]},{word:"helmet",categories:["thing"]},{word:"holiday",categories:["thing"]},{word:"honey",categories:["food"]},{word:"horse",categories:["animals"]},{word:"hospital",categories:["place"]},{word:"house",categories:["place"]},{word:"hydrogen",categories:["science"]},{word:"ice",categories:["science"]},{word:"insect",categories:["animals"]},{word:"insurance",categories:["thing"]},{word:"intern",categories:["profession"]},{word:"iron",categories:["science"]},{word:"island",categories:["place"]},{word:"jackal",categories:["animals"]},{word:"jelly",categories:["food"]},{word:"jewellery",categories:["thing"]},{word:"jordan",categories:["place"]},{word:"journalist",categories:["profession"]},{word:"joystick",categories:["thing","technology"]},{word:"judge",categories:["profession"]},{word:"juice",categories:["food"]},{word:"kangaroo",categories:["animals"]},{word:"keyboard",categories:["thing","technology"]},{word:"kilobyte",categories:["thing","technology"]},{word:"king",categories:["people"]},{word:"kitchen",categories:["place"]},{word:"kite",categories:["thing"]},{word:"knife",categories:["thing"]},{word:"lamp",categories:["thing"]},{word:"laptop",categories:["thing","technology"]},{word:"lawyer",categories:["profession"]},{word:"leather",categories:["thing"]},{word:"librarian",categories:["profession"]},{word:"library",categories:["place"]},{word:"lifeguard",categories:["profession"]},{word:"lighter",categories:["thing"]},{word:"lion",categories:["animals"]},{word:"lizard",categories:["animals"]},{word:"lock",categories:["thing"]},{word:"london",categories:["place"]},{word:"lunch",categories:["food"]},{word:"machine",categories:["science"]},{word:"magazine",categories:["media"]},{word:"magician",categories:["people"]},{word:"man",categories:["people"]},{word:"manchester",categories:["place"]},{word:"market",categories:["place"]},{word:"match",categories:["thing"]},{word:"mechanic",categories:["profession"]},{word:"megabyte",categories:["thing","technology"]},{word:"memory",categories:["thing","technology"]},{word:"microphone",categories:["thing"]},{word:"midnight",categories:["time"]},{word:"minister",categories:["people","religion"]},{word:"monitor",categories:["thing","technology"]},{word:"monkey",categories:["animals"]},{word:"morn",categories:["time"]},{word:"morning",categories:["time"]},{word:"mother",categories:["people","family"]},{word:"motherboard",categories:["thing","technology"]},{word:"motorcycle",categories:["transportation"]},{word:"mouse",categories:["thing","technology","animals"]},{word:"musician",categories:["profession"]},{word:"nail",categories:["thing"]},{word:"napkin",categories:["thing"]},{word:"needle",categories:["thing"]},{word:"nest",categories:["thing"]},{word:"nigeria",categories:["place"]},{word:"night",categories:["time"]},{word:"nightfall",categories:["time"]},{word:"noon",categories:["time"]},{word:"notebook",categories:["thing"]},{word:"nurse",categories:["profession"]},{word:"ocean",categories:["place"]},{word:"oil",categories:["thing"]},{word:"optician",categories:["profession"]},{word:"orange",categories:["food"]},{word:"oxygen",categories:["science"]},{word:"oyster",categories:["animals"]},{word:"pager",categories:["thing","technology"]},{word:"painter",categories:["profession"]},{word:"painting",categories:["media"]},{word:"park",categories:["place"]},{word:"parrot",categories:["animals"]},{word:"pencil",categories:["thing","education"]},{word:"petabyte",categories:["thing","technology"]},{word:"pharmacist",categories:["profession"]},{word:"photographer",categories:["profession"]},{word:"piano",categories:["thing"]},{word:"pillow",categories:["thing"]},{word:"pilot",categories:["profession"]},{word:"pizza",categories:["food"]},{word:"planet",categories:["science"]},{word:"plastic",categories:["thing"]},{word:"plumber",categories:["profession"]},{word:"policeman",categories:["profession"]},{word:"portugal",categories:["place"]},{word:"postman",categories:["profession"]},{word:"potato",categories:["food"]},{word:"printer",categories:["thing","technology"]},{word:"processor",categories:["thing","technology"]},{word:"psychiatrist",categories:["profession"]},{word:"queen",categories:["people"]},{word:"quill",categories:["thing"]},{word:"rain",categories:["thing"]},{word:"rainbow",categories:["science"]},{word:"raincoat",categories:["thing"]},{word:"ram",categories:["thing","technology"]},{word:"receptionist",categories:["profession"]},{word:"refrigerator",categories:["food"]},{word:"restaurant",categories:["place"]},{word:"river",categories:["thing"]},{word:"rocket",categories:["science"]},{word:"room",categories:["place"]},{word:"rose",categories:["thing"]},{word:"russia",categories:["place"]},{word:"salesclerk",categories:["people","business"]},{word:"salesmen",categories:["profession"]},{word:"sandwich",categories:["food"]},{word:"school",categories:["education"]},{word:"scientist",categories:["profession"]},{word:"scooter",categories:["transportation"]},{word:"secretary",categories:["profession"]},{word:"shampoo",categories:["thing"]},{word:"shoe",categories:["thing"]},{word:"smartphone",categories:["thing","technology"]},{word:"soccer",categories:["sports"]},{word:"solstice",categories:["time"]},{word:"spoon",categories:["thing"]},{word:"spring",categories:["time"]},{word:"state",categories:["place"]},{word:"stone",categories:["thing"]},{word:"student",categories:["people","education"]},{word:"sugar",categories:["food"]},{word:"summer",categories:["time"]},{word:"sundown",categories:["time"]},{word:"sunset",categories:["time"]},{word:"sweden",categories:["place"]},{word:"table",categories:["thing"]},{word:"tailor",categories:["profession"]},{word:"teacher",categories:["people","education","profession"]},{word:"teenager",categories:["people","family"]},{word:"telephone",categories:["thing"]},{word:"television",categories:["media"]},{word:"tent",categories:["thing"]},{word:"terabyte",categories:["thing","technology"]},{word:"thailand",categories:["place"]},{word:"tiger",categories:["animals"]},{word:"toddler",categories:["people","family"]},{word:"tomato",categories:["food"]},{word:"toothbrush",categories:["thing"]},{word:"traffic",categories:["thing"]},{word:"train",categories:["transportation"]},{word:"translator",categories:["profession"]},{word:"truck",categories:["thing","transportation"]},{word:"twilight",categories:["time"]},{word:"uganda",categories:["place"]},{word:"umbrella",categories:["thing"]},{word:"van",categories:["transportation"]},{word:"vase",categories:["thing"]},{word:"vegetable",categories:["food"]},{word:"vr",categories:["thing","technology"]},{word:"vulture",categories:["animals"]},{word:"waiter",categories:["profession"]},{word:"waitress",categories:["profession"]},{word:"wall",categories:["thing"]},{word:"whale",categories:["animals"]},{word:"window",categories:["thing"]},{word:"winter",categories:["time"]},{word:"wire",categories:["thing"]},{word:"wolf",categories:["animals"]},{word:"woman",categories:["people"]},{word:"xylophone",categories:["thing"]},{word:"yacht",categories:["transportation"]},{word:"yak",categories:["animals"]},{word:"yottabyte",categories:["thing","technology"]},{word:"zebra",categories:["animals"]},{word:"zettabyte",categories:["thing","technology"]},{word:"zoo",categories:["animals"]}],adjective:[{word:"abandoned",categories:["condition"]},{word:"abiding",categories:["personality"]},{word:"able",categories:["condition"]},{word:"abrasive",categories:["condition","personality"]},{word:"abnormal",categories:["condition"]},{word:"absurd",categories:["condition"]},{word:"abundant",categories:["quantity"]},{word:"acceptable",categories:["condition"]},{word:"acidic",categories:["taste"]},{word:"acoustic",categories:["sounds"]},{word:"acrid",categories:["condition"]},{word:"adamant",categories:["personality"]},{word:"adorable",categories:["personality"]},{word:"adventurous",categories:["personality"]},{word:"aggressive",categories:["personality"]},{word:"agitated",categories:["personality"]},{word:"agreeable",categories:["personality"]},{word:"alert",categories:["condition"]},{word:"alive",categories:["condition"]},{word:"aloof",categories:["personality"]},{word:"ambitious",categories:["personality"]},{word:"ancient",categories:["time"]},{word:"angry",categories:["personality"]},{word:"annoyed",categories:["personality"]},{word:"antsy",categories:["personality"]},{word:"anxious",categories:["personality"]},{word:"appalling",categories:["personality"]},{word:"appetizing",categories:["taste"]},{word:"apprehensive",categories:["personality"]},{word:"arrogant",categories:["personality"]},{word:"ashamed",categories:["personality"]},{word:"astonishing",categories:["personality"]},{word:"attractive",categories:["appearance"]},{word:"average",categories:["appearance"]},{word:"bad",categories:["condition"]},{word:"bald",categories:["appearance"]},{word:"bashful",categories:["personality"]},{word:"beautiful",categories:["appearance"]},{word:"beefy",categories:["appearance"]},{word:"belligerent",categories:["personality"]},{word:"bent",categories:["condition"]},{word:"better",categories:["condition"]},{word:"best",categories:["condition"]},{word:"better",categories:["condition"]},{word:"bewildered",categories:["personality"]},{word:"big",categories:["size"]},{word:"billions",categories:["quantity"]},{word:"billowy",categories:["appearance"]},{word:"bitter",categories:["taste"]},{word:"black",categories:["color"]},{word:"bland",categories:["taste"]},{word:"blue",categories:["color"]},{word:"blushing",categories:["appearance"]},{word:"bored",categories:["personality"]},{word:"boring",categories:["personality"]},{word:"boundless",categories:["personality"]},{word:"brainy",categories:["personality"]},{word:"brash",categories:["personality"]},{word:"brave",categories:["personality"]},{word:"breezy",categories:["touch"]},{word:"brief",categories:["time"]},{word:"bright",categories:["appearance"]},{word:"broad",categories:["shapes"]},{word:"broken",categories:["condition"]},{word:"brown",categories:["color"]},{word:"bulky",categories:["appearance"]},{word:"bumpy",categories:["touch"]},{word:"burly",categories:["appearance"]},{word:"busy",categories:["personality"]},{word:"cagey",categories:["personality"]},{word:"calm",categories:["personality"]},{word:"callous",categories:["personality"]},{word:"careful",categories:["condition"]},{word:"chilly",categories:["touch"]},{word:"chubby",categories:["appearance"]},{word:"clean",categories:["appearance"]},{word:"clever",categories:["condition"]},{word:"clumsy",categories:["personality"]},{word:"cold",categories:["touch"]},{word:"colossal",categories:["size"]},{word:"cool",categories:["touch"]},{word:"crashing",categories:["sounds"]},{word:"creamy",categories:["taste"]},{word:"crooked",categories:["shapes"]},{word:"cuddly",categories:["touch"]},{word:"curved",categories:["shapes"]},{word:"damaged",categories:["touch"]},{word:"damp",categories:["touch"]},{word:"dazzling",categories:["appearance"]},{word:"dead",categories:["condition"]},{word:"deafening",categories:["sounds"]},{word:"deep",categories:["shapes"]},{word:"defeated",categories:["personality"]},{word:"delicious",categories:["taste"]},{word:"delightful",categories:["personality"]},{word:"dirty",categories:["touch"]},{word:"disgusting",categories:["taste"]},{word:"drab",categories:["appearance"]},{word:"dry",categories:["touch"]},{word:"eager",categories:["personality"]},{word:"early",categories:["time"]},{word:"easy",categories:["condition"]},{word:"echoing",categories:["sounds"]},{word:"elegant",categories:["appearance"]},{word:"embarrassed",categories:["personality"]},{word:"enough",categories:["quantity"]},{word:"faint",categories:["sounds"]},{word:"faithful",categories:["personality"]},{word:"famous",categories:["condition"]},{word:"fancy",categories:["appearance"]},{word:"fast",categories:["time"]},{word:"fat",categories:["size"]},{word:"few",categories:["quantity"]},{word:"fierce",categories:["personality"]},{word:"fit",categories:["appearance"]},{word:"flabby",categories:["appearance"]},{word:"flaky",categories:["touch"]},{word:"flat",categories:["shapes"]},{word:"fluffy",categories:["touch"]},{word:"freezing",categories:["touch"]},{word:"fresh",categories:["taste"]},{word:"full",categories:["quantity"]},{word:"future",categories:["time"]},{word:"gentle",categories:["personality"]},{word:"gifted",categories:["condition"]},{word:"gigantic",categories:["size"]},{word:"glamorous",categories:["appearance"]},{word:"gorgeous",categories:["appearance"]},{word:"gray",categories:["color"]},{word:"greasy",categories:["touch","taste"]},{word:"great",categories:["size"]},{word:"green",categories:["color"]},{word:"grumpy",categories:["personality"]},{word:"hallowed",categories:["condition"]},{word:"handsome",categories:["appearance"]},{word:"happy",categories:["personality"]},{word:"harsh",categories:["sounds"]},{word:"helpful",categories:["condition"]},{word:"helpless",categories:["personality"]},{word:"high",categories:["shapes"]},{word:"hissing",categories:["sounds"]},{word:"hollow",categories:["shapes"]},{word:"hot",categories:["touch","taste"]},{word:"howling",categories:["sounds"]},{word:"huge",categories:["size"]},{word:"hundreds",categories:["quantity"]},{word:"icy",categories:["touch"]},{word:"immense",categories:["size"]},{word:"important",categories:["condition"]},{word:"incalculable",categories:["quantity"]},{word:"inexpensive",categories:["condition"]},{word:"itchy",categories:["personality"]},{word:"jealous",categories:["personality"]},{word:"jolly",categories:["personality"]},{word:"juicy",categories:["taste"]},{word:"kind",categories:["personality"]},{word:"large",categories:["size"]},{word:"late",categories:["time"]},{word:"lazy",categories:["personality"]},{word:"lemon",categories:["color"]},{word:"limited",categories:["quantity"]},{word:"little",categories:["size","quantity"]},{word:"lively",categories:["personality"]},{word:"long",categories:["time","appearance"]},{word:"loose",categories:["touch"]},{word:"loud",categories:["sounds"]},{word:"low",categories:["shapes"]},{word:"magnificent",categories:["appearance"]},{word:"mammoth",categories:["size"]},{word:"mango",categories:["color"]},{word:"many",categories:["quantity"]},{word:"massive",categories:["size"]},{word:"mealy",categories:["condition"]},{word:"melodic",categories:["sounds"]},{word:"melted",categories:["touch"]},{word:"microscopic",categories:["size"]},{word:"millions",categories:["quantity"]},{word:"miniature",categories:["size"]},{word:"modern",categories:["time"]},{word:"moldy",categories:["taste"]},{word:"most",categories:["quantity"]},{word:"muscular",categories:["appearance"]},{word:"mushy",categories:["condition"]},{word:"mysterious",categories:["personality"]},{word:"narrow",categories:["shapes"]},{word:"nervous",categories:["personality"]},{word:"nice",categories:["personality"]},{word:"noisy",categories:["sounds"]},{word:"numerous",categories:["quantity"]},{word:"nutritious",categories:["taste"]},{word:"nutty",categories:["taste"]},{word:"obedient",categories:["personality"]},{word:"obnoxious",categories:["personality"]},{word:"odd",categories:["condition"]},{word:"old",categories:["time"]},{word:"orange",categories:["color"]},{word:"panicky",categories:["personality"]},{word:"petite",categories:["size"]},{word:"pitiful",categories:["personality"]},{word:"plain",categories:["appearance"]},{word:"plump",categories:["appearance"]},{word:"polite",categories:["personality"]},{word:"poor",categories:["condition"]},{word:"powerful",categories:["condition"]},{word:"prehistoric",categories:["time"]},{word:"prickly",categories:["touch"]},{word:"proud",categories:["personality"]},{word:"puny",categories:["size"]},{word:"purple",categories:["color"]},{word:"purring",categories:["sounds"]},{word:"putrid",categories:["taste"]},{word:"quaint",categories:["appearance"]},{word:"quick",categories:["time"]},{word:"quiet",categories:["sounds"]},{word:"rancid",categories:["taste"]},{word:"rapid",categories:["time"]},{word:"rapping",categories:["sounds"]},{word:"raspy",categories:["sounds"]},{word:"red",categories:["color"]},{word:"refined",categories:["shapes"]},{word:"repulsive",categories:["personality"]},{word:"rhythmic",categories:["sounds"]},{word:"rich",categories:["condition"]},{word:"ripe",categories:["taste"]},{word:"rotten",categories:["taste"]},{word:"rough",categories:["touch"]},{word:"round",categories:["shapes"]},{word:"salmon",categories:["color"]},{word:"salty",categories:["taste"]},{word:"savory",categories:["taste"]},{word:"scarce",categories:["quantity"]},{word:"scary",categories:["personality"]},{word:"scrawny",categories:["size"]},{word:"screeching",categories:["sounds"]},{word:"scruffy",categories:["appearance"]},{word:"shaggy",categories:["touch"]},{word:"shallow",categories:["shapes"]},{word:"shapely",categories:["appearance"]},{word:"sharp",categories:["touch"]},{word:"short",categories:["size","appearance","time"]},{word:"shrilling",categories:["sounds"]},{word:"shy",categories:["condition"]},{word:"silly",categories:["personality"]},{word:"skinny",categories:["appearance","shapes"]},{word:"slimy",categories:["touch"]},{word:"slow",categories:["time"]},{word:"small",categories:["size"]},{word:"some",categories:["quantity"]},{word:"sour",categories:["taste"]},{word:"sparse",categories:["quantity"]},{word:"spicy",categories:["taste"]},{word:"spoiled",categories:["taste"]},{word:"square",categories:["shapes"]},{word:"squeaking",categories:["sounds"]},{word:"stale",categories:["taste"]},{word:"steep",categories:["shapes"]},{word:"sticky",categories:["touch"]},{word:"stocky",categories:["appearance"]},{word:"straight",categories:["shapes"]},{word:"strong",categories:["touch"]},{word:"substantial",categories:["quantity"]},{word:"sweet",categories:["taste"]},{word:"swift",categories:["time"]},{word:"tall",categories:["size"]},{word:"tangy",categories:["taste"]},{word:"tart",categories:["taste"]},{word:"tasteless",categories:["taste"]},{word:"tasty",categories:["taste"]},{word:"teeny",categories:["size"]},{word:"tender",categories:["condition"]},{word:"thankful",categories:["personality"]},{word:"thoughtless",categories:["personality"]},{word:"thousands",categories:["quantity"]},{word:"thundering",categories:["sounds"]},{word:"tight",categories:["touch"]},{word:"tinkling",categories:["sounds"]},{word:"tiny",categories:["size"]},{word:"ugly",categories:["appearance"]},{word:"uneven",categories:["touch"]},{word:"unimportant",categories:["condition"]},{word:"uninterested",categories:["condition"]},{word:"unkempt",categories:["appearance"]},{word:"unsightly",categories:["appearance"]},{word:"uptight",categories:["personality"]},{word:"vast",categories:["condition"]},{word:"victorious",categories:["personality"]},{word:"wailing",categories:["sounds"]},{word:"warm",categories:["touch"]},{word:"weak",categories:["touch"]},{word:"wet",categories:["touch"]},{word:"whining",categories:["sounds"]},{word:"whispering",categories:["sounds"]},{word:"white",categories:["color"]},{word:"wide",categories:["shapes"]},{word:"witty",categories:["personality"]},{word:"wonderful",categories:["personality"]},{word:"wooden",categories:["touch"]},{word:"worried",categories:["personality"]},{word:"wrong",categories:["condition"]},{word:"yellow",categories:["color"]},{word:"young",categories:["time"]},{word:"yummy",categories:["taste"]},{word:"zealous",categories:["personality"]}]};function h(m,f){var v,_;f===void 0&&(f=[]);var A=new Set(f),M=[];try{for(var T=b(d.wordList[m]),O=T.next();!O.done;O=T.next()){var B=O.value;(f.length===0||B.categories.some(function(z){return A.has(z)}))&&M.push(B.word)}}catch(z){v={error:z}}finally{try{O&&!O.done&&(_=T.return)&&_.call(T)}finally{if(v)throw v.error}}return M}d.getWordsByCategory=h})(words);var __assign=commonjsGlobal&&commonjsGlobal.__assign||function(){return __assign=Object.assign||function(d){for(var b,h=1,m=arguments.length;h{f(d==="auto"?b:d==="manual"?h:d==="loader"?m:b)}),addHistoryEntry=d=>{const b={...d,id:v4()};if(b.type==="loader"){loaderHistoryStore.update(h=>[b,...h]);return}b.name||(b.name=generateSlug_1(2)),b.type==="auto"?autoHistoryStore.update(h=>(h.length>=MAX_AUTO_HISTORY_LENGTH&&(h=h.slice(0,MAX_AUTO_HISTORY_LENGTH-1)),[b,...h])):b.type==="manual"&&(manualHistoryStore.update(h=>[b,...h]),logEvent("history",{action:"save"}))},clearHistoryData=d=>{(get_store_value(historyModeStore)==="auto"?autoHistoryStore:manualHistoryStore).update(b=>(get_store_value(historyModeStore)!=="loader"&&(b=b.filter(({id:h})=>d&&h!=d),logEvent("history",{action:"clear",type:d?"single":"all"})),b))},getPreviousState=d=>{const b=get_store_value(d?autoHistoryStore:manualHistoryStore);return b.length>0?JSON.stringify(b[0].state):""},restoreHistory=d=>{const b=d.filter(validateEntry),h=d.length-b.length;if(h>0&&(console.error(`${h} invalid history entries were removed.`),console.error(d)),b.length>0){let m=0;(b[0].type==="auto"?autoHistoryStore:manualHistoryStore).update(f=>{const v=new Set(f.map(({id:M})=>M)),_=b.filter(({id:M})=>!v.has(M));m=_.length;const A=[...f,..._];return A.sort((M,T)=>T.time-M.time),A}),alert(`${m} entries restored. ${h} invalid, ${b.length-m} duplicates.`),logEvent("history",{action:"restore",success:m,invalid:h,duplicates:b.length-m})}else alert("No valid entries found.")},injectHistoryIDs=()=>{const d=b=>{for(const h of b)h.id||(h.id=v4());return b};autoHistoryStore.update(d),manualHistoryStore.update(d)},validateEntry=d=>d.type&&d.state&&d.time&&!0,codeFileName="code.mmd",configFileName="config.json",isValidGist=d=>codeFileName in d,getFileContent=async d=>d.truncated?await(await fetch(d.raw_url)).text():d.content,getGistData=async d=>{const[b,h,m,f]=d.split("github.com").pop().split("/"),{html_url:v,files:_,history:A}=await(await fetch(`https://api.github.com/gists/${m}${f?"/"+f:""}`)).json();if(isValidGist(_)){const M=await getFileContent(_[codeFileName]);let T;configFileName in _&&(T=await getFileContent(_[configFileName]));const O=A[0];return{url:`${v}/${O.version}`,code:M,config:T,author:O.user.login,time:new Date(O.committed_at).getTime(),version:O.version.slice(-7)}}else throw"Invalid gist provided"},getStateFromGist=(d,b=d.url)=>{const h={...defaultState,code:d.code,loader:{type:"gist",config:{url:b}}};return d.config&&(h.mermaid=d.config),h},loadGistData=async d=>{try{const[b,h,m,f]=d.split("github.com").pop().split("/"),{history:v}=await(await fetch(`https://api.github.com/gists/${m}${f?"/"+f:""}`)).json(),_=[];for(const M of v){const T=await getGistData(M.url).catch(()=>{});T&&_.push(T)}if(_.length===0)throw"Invalid gist provided";_.reverse();const A=getStateFromGist(_.slice(-1).pop(),d);for(const M of _)addHistoryEntry({state:getStateFromGist(M),time:M.time,type:"loader",url:M.url,name:`${M.author} v${M.version}`});return A}catch(b){console.error(b)}},loaders={gist:loadGistData},loadDataFromUrl=async()=>{const d=new URLSearchParams(window.location.search);let b=defaultState,h,m,f=!1;const v=d.get("code"),_=d.get("config");if(v&&(h=await(await fetch(v)).text(),f=!0),_?m=await(await fetch(_)).text():m=defaultState.mermaid,h)b={code:h,mermaid:m,loader:{type:"files",config:{codeURL:v,configURL:_}}};else for(const[A,M]of d.entries())if(A in loaders)try{b=await loaders[A](M),f=!0;break}catch(T){console.error(T)}f&&updateCodeStore({...b,autoSync:!0,updateDiagram:!0})},migrations={injectHistoryIDs},migrationStore=persist(writable({version:-1}),localStorage(),"migrations"),applyMigrations=()=>{const{version:d}=get_store_value(migrationStore),b=Object.entries(migrations);if(d!==b.length-1){console.log(`Current migration version: v${d}. Migrating to v${b.length-1}.`);for(let h=d+1;h{loadState(window.location.hash.slice(1))},syncDiagram=()=>{updateCodeStore({updateDiagram:!0})},initHandler=async()=>{applyMigrations(),loadStateFromURL(),await initLoading("Loading Gist...",loadDataFromUrl().catch(console.error)),syncDiagram(),initURLSubscription(),await initAnalytics(),analytics==null||analytics.page()},isMac=navigator.platform.toUpperCase().indexOf("MAC")>=0,cmdKey=isMac?"Cmd":"Ctrl";/*! For license information please see mermaid.esm.min.mjs.LICENSE.txt */var t={2536:(d,b,h)=>{d=h.nmd(d);var m=function(){var f=function(De,rr,Qe,Ie){for(Qe=Qe||{},Ie=De.length;Ie--;Qe[De[Ie]]=rr);return Qe},v=[1,6],_=[1,7],A=[1,8],M=[1,9],T=[1,16],O=[1,11],B=[1,12],z=[1,13],q=[1,14],J=[1,15],rt=[1,27],ut=[1,33],Z=[1,34],mt=[1,35],nt=[1,36],at=[1,37],_t=[1,72],jt=[1,73],St=[1,74],gt=[1,75],Ct=[1,76],vt=[1,77],ft=[1,78],Q=[1,38],ht=[1,39],$=[1,40],kt=[1,41],W=[1,42],At=[1,43],Nt=[1,44],Gt=[1,45],xe=[1,46],Ge=[1,47],Te=[1,48],ye=[1,49],ke=[1,50],Me=[1,51],Oe=[1,52],we=[1,53],Sr=[1,54],_e=[1,55],er=[1,56],oe=[1,57],ee=[1,59],he=[1,60],Mt=[1,61],ie=[1,62],pt=[1,63],wt=[1,64],xt=[1,65],Rt=[1,66],me=[1,67],Pe=[1,68],ar=[1,69],Ze=[24,52],ur=[24,44,46,47,48,49,50,51,52,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84],ze=[15,24,44,46,47,48,49,50,51,52,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84],Ce=[1,94],Be=[1,95],Fe=[1,96],be=[1,97],se=[15,24,52],Lr=[7,8,9,10,18,22,25,26,27,28],Ue=[15,24,43,52],dr=[15,24,43,52,86,87,89,90],qe=[15,43],gr=[44,46,47,48,49,50,51,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84],rn={trace:function(){},yy:{},symbols_:{error:2,start:3,mermaidDoc:4,direction:5,directive:6,direction_tb:7,direction_bt:8,direction_rl:9,direction_lr:10,graphConfig:11,openDirective:12,typeDirective:13,closeDirective:14,NEWLINE:15,":":16,argDirective:17,open_directive:18,type_directive:19,arg_directive:20,close_directive:21,C4_CONTEXT:22,statements:23,EOF:24,C4_CONTAINER:25,C4_COMPONENT:26,C4_DYNAMIC:27,C4_DEPLOYMENT:28,otherStatements:29,diagramStatements:30,otherStatement:31,title:32,accDescription:33,acc_title:34,acc_title_value:35,acc_descr:36,acc_descr_value:37,acc_descr_multiline_value:38,boundaryStatement:39,boundaryStartStatement:40,boundaryStopStatement:41,boundaryStart:42,LBRACE:43,ENTERPRISE_BOUNDARY:44,attributes:45,SYSTEM_BOUNDARY:46,BOUNDARY:47,CONTAINER_BOUNDARY:48,NODE:49,NODE_L:50,NODE_R:51,RBRACE:52,diagramStatement:53,PERSON:54,PERSON_EXT:55,SYSTEM:56,SYSTEM_DB:57,SYSTEM_QUEUE:58,SYSTEM_EXT:59,SYSTEM_EXT_DB:60,SYSTEM_EXT_QUEUE:61,CONTAINER:62,CONTAINER_DB:63,CONTAINER_QUEUE:64,CONTAINER_EXT:65,CONTAINER_EXT_DB:66,CONTAINER_EXT_QUEUE:67,COMPONENT:68,COMPONENT_DB:69,COMPONENT_QUEUE:70,COMPONENT_EXT:71,COMPONENT_EXT_DB:72,COMPONENT_EXT_QUEUE:73,REL:74,BIREL:75,REL_U:76,REL_D:77,REL_L:78,REL_R:79,REL_B:80,REL_INDEX:81,UPDATE_EL_STYLE:82,UPDATE_REL_STYLE:83,UPDATE_LAYOUT_CONFIG:84,attribute:85,STR:86,STR_KEY:87,STR_VALUE:88,ATTRIBUTE:89,ATTRIBUTE_EMPTY:90,$accept:0,$end:1},terminals_:{2:"error",7:"direction_tb",8:"direction_bt",9:"direction_rl",10:"direction_lr",15:"NEWLINE",16:":",18:"open_directive",19:"type_directive",20:"arg_directive",21:"close_directive",22:"C4_CONTEXT",24:"EOF",25:"C4_CONTAINER",26:"C4_COMPONENT",27:"C4_DYNAMIC",28:"C4_DEPLOYMENT",32:"title",33:"accDescription",34:"acc_title",35:"acc_title_value",36:"acc_descr",37:"acc_descr_value",38:"acc_descr_multiline_value",43:"LBRACE",44:"ENTERPRISE_BOUNDARY",46:"SYSTEM_BOUNDARY",47:"BOUNDARY",48:"CONTAINER_BOUNDARY",49:"NODE",50:"NODE_L",51:"NODE_R",52:"RBRACE",54:"PERSON",55:"PERSON_EXT",56:"SYSTEM",57:"SYSTEM_DB",58:"SYSTEM_QUEUE",59:"SYSTEM_EXT",60:"SYSTEM_EXT_DB",61:"SYSTEM_EXT_QUEUE",62:"CONTAINER",63:"CONTAINER_DB",64:"CONTAINER_QUEUE",65:"CONTAINER_EXT",66:"CONTAINER_EXT_DB",67:"CONTAINER_EXT_QUEUE",68:"COMPONENT",69:"COMPONENT_DB",70:"COMPONENT_QUEUE",71:"COMPONENT_EXT",72:"COMPONENT_EXT_DB",73:"COMPONENT_EXT_QUEUE",74:"REL",75:"BIREL",76:"REL_U",77:"REL_D",78:"REL_L",79:"REL_R",80:"REL_B",81:"REL_INDEX",82:"UPDATE_EL_STYLE",83:"UPDATE_REL_STYLE",84:"UPDATE_LAYOUT_CONFIG",86:"STR",87:"STR_KEY",88:"STR_VALUE",89:"ATTRIBUTE",90:"ATTRIBUTE_EMPTY"},productions_:[0,[3,1],[3,1],[3,2],[5,1],[5,1],[5,1],[5,1],[4,1],[6,4],[6,6],[12,1],[13,1],[17,1],[14,1],[11,4],[11,4],[11,4],[11,4],[11,4],[23,1],[23,1],[23,2],[29,1],[29,2],[29,3],[31,1],[31,1],[31,2],[31,2],[31,1],[39,3],[40,3],[40,3],[40,4],[42,2],[42,2],[42,2],[42,2],[42,2],[42,2],[42,2],[41,1],[30,1],[30,2],[30,3],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,1],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[45,1],[45,2],[85,1],[85,2],[85,1],[85,1]],performAction:function(De,rr,Qe,Ie,vr,Ot,kn){var Vt=Ot.length-1;switch(vr){case 4:Ie.setDirection("TB");break;case 5:Ie.setDirection("BT");break;case 6:Ie.setDirection("RL");break;case 7:Ie.setDirection("LR");break;case 11:console.log("open_directive: ",Ot[Vt]),Ie.parseDirective("%%{","open_directive");break;case 12:break;case 13:Ot[Vt]=Ot[Vt].trim().replace(/'/g,'"'),console.log("arg_directive: ",Ot[Vt]),Ie.parseDirective(Ot[Vt],"arg_directive");break;case 14:console.log("close_directive: ",Ot[Vt]),Ie.parseDirective("}%%","close_directive","c4Context");break;case 15:case 16:case 17:case 18:case 19:Ie.setC4Type(Ot[Vt-3]);break;case 26:Ie.setTitle(Ot[Vt].substring(6)),this.$=Ot[Vt].substring(6);break;case 27:Ie.setAccDescription(Ot[Vt].substring(15)),this.$=Ot[Vt].substring(15);break;case 28:this.$=Ot[Vt].trim(),Ie.setTitle(this.$);break;case 29:case 30:this.$=Ot[Vt].trim(),Ie.setAccDescription(this.$);break;case 35:case 36:console.log(Ot[Vt-1],JSON.stringify(Ot[Vt])),Ot[Vt].splice(2,0,"ENTERPRISE"),Ie.addPersonOrSystemBoundary(...Ot[Vt]),this.$=Ot[Vt];break;case 37:console.log(Ot[Vt-1],JSON.stringify(Ot[Vt])),Ie.addPersonOrSystemBoundary(...Ot[Vt]),this.$=Ot[Vt];break;case 38:console.log(Ot[Vt-1],JSON.stringify(Ot[Vt])),Ot[Vt].splice(2,0,"CONTAINER"),Ie.addContainerBoundary(...Ot[Vt]),this.$=Ot[Vt];break;case 39:console.log(Ot[Vt-1],JSON.stringify(Ot[Vt])),Ie.addDeploymentNode("node",...Ot[Vt]),this.$=Ot[Vt];break;case 40:console.log(Ot[Vt-1],JSON.stringify(Ot[Vt])),Ie.addDeploymentNode("nodeL",...Ot[Vt]),this.$=Ot[Vt];break;case 41:console.log(Ot[Vt-1],JSON.stringify(Ot[Vt])),Ie.addDeploymentNode("nodeR",...Ot[Vt]),this.$=Ot[Vt];break;case 42:Ie.popBoundaryParseStack();break;case 46:console.log(Ot[Vt-1],JSON.stringify(Ot[Vt])),Ie.addPersonOrSystem("person",...Ot[Vt]),this.$=Ot[Vt];break;case 47:console.log(Ot[Vt-1],JSON.stringify(Ot[Vt])),Ie.addPersonOrSystem("external_person",...Ot[Vt]),this.$=Ot[Vt];break;case 48:console.log(Ot[Vt-1],JSON.stringify(Ot[Vt])),Ie.addPersonOrSystem("system",...Ot[Vt]),this.$=Ot[Vt];break;case 49:console.log(Ot[Vt-1],JSON.stringify(Ot[Vt])),Ie.addPersonOrSystem("system_db",...Ot[Vt]),this.$=Ot[Vt];break;case 50:console.log(Ot[Vt-1],JSON.stringify(Ot[Vt])),Ie.addPersonOrSystem("system_queue",...Ot[Vt]),this.$=Ot[Vt];break;case 51:console.log(Ot[Vt-1],JSON.stringify(Ot[Vt])),Ie.addPersonOrSystem("external_system",...Ot[Vt]),this.$=Ot[Vt];break;case 52:console.log(Ot[Vt-1],JSON.stringify(Ot[Vt])),Ie.addPersonOrSystem("external_system_db",...Ot[Vt]),this.$=Ot[Vt];break;case 53:console.log(Ot[Vt-1],JSON.stringify(Ot[Vt])),Ie.addPersonOrSystem("external_system_queue",...Ot[Vt]),this.$=Ot[Vt];break;case 54:console.log(Ot[Vt-1],JSON.stringify(Ot[Vt])),Ie.addContainer("container",...Ot[Vt]),this.$=Ot[Vt];break;case 55:console.log(Ot[Vt-1],JSON.stringify(Ot[Vt])),Ie.addContainer("container_db",...Ot[Vt]),this.$=Ot[Vt];break;case 56:console.log(Ot[Vt-1],JSON.stringify(Ot[Vt])),Ie.addContainer("container_queue",...Ot[Vt]),this.$=Ot[Vt];break;case 57:console.log(Ot[Vt-1],JSON.stringify(Ot[Vt])),Ie.addContainer("external_container",...Ot[Vt]),this.$=Ot[Vt];break;case 58:console.log(Ot[Vt-1],JSON.stringify(Ot[Vt])),Ie.addContainer("external_container_db",...Ot[Vt]),this.$=Ot[Vt];break;case 59:console.log(Ot[Vt-1],JSON.stringify(Ot[Vt])),Ie.addContainer("external_container_queue",...Ot[Vt]),this.$=Ot[Vt];break;case 60:console.log(Ot[Vt-1],JSON.stringify(Ot[Vt])),Ie.addComponent("component",...Ot[Vt]),this.$=Ot[Vt];break;case 61:console.log(Ot[Vt-1],JSON.stringify(Ot[Vt])),Ie.addComponent("component_db",...Ot[Vt]),this.$=Ot[Vt];break;case 62:console.log(Ot[Vt-1],JSON.stringify(Ot[Vt])),Ie.addComponent("component_queue",...Ot[Vt]),this.$=Ot[Vt];break;case 63:console.log(Ot[Vt-1],JSON.stringify(Ot[Vt])),Ie.addComponent("external_component",...Ot[Vt]),this.$=Ot[Vt];break;case 64:console.log(Ot[Vt-1],JSON.stringify(Ot[Vt])),Ie.addComponent("external_component_db",...Ot[Vt]),this.$=Ot[Vt];break;case 65:console.log(Ot[Vt-1],JSON.stringify(Ot[Vt])),Ie.addComponent("external_component_queue",...Ot[Vt]),this.$=Ot[Vt];break;case 67:console.log(Ot[Vt-1],JSON.stringify(Ot[Vt])),Ie.addRel("rel",...Ot[Vt]),this.$=Ot[Vt];break;case 68:console.log(Ot[Vt-1],JSON.stringify(Ot[Vt])),Ie.addRel("birel",...Ot[Vt]),this.$=Ot[Vt];break;case 69:console.log(Ot[Vt-1],JSON.stringify(Ot[Vt])),Ie.addRel("rel_u",...Ot[Vt]),this.$=Ot[Vt];break;case 70:console.log(Ot[Vt-1],JSON.stringify(Ot[Vt])),Ie.addRel("rel_d",...Ot[Vt]),this.$=Ot[Vt];break;case 71:console.log(Ot[Vt-1],JSON.stringify(Ot[Vt])),Ie.addRel("rel_l",...Ot[Vt]),this.$=Ot[Vt];break;case 72:console.log(Ot[Vt-1],JSON.stringify(Ot[Vt])),Ie.addRel("rel_r",...Ot[Vt]),this.$=Ot[Vt];break;case 73:console.log(Ot[Vt-1],JSON.stringify(Ot[Vt])),Ie.addRel("rel_b",...Ot[Vt]),this.$=Ot[Vt];break;case 74:console.log(Ot[Vt-1],JSON.stringify(Ot[Vt])),Ot[Vt].splice(0,1),Ie.addRel("rel",...Ot[Vt]),this.$=Ot[Vt];break;case 75:console.log(Ot[Vt-1],JSON.stringify(Ot[Vt])),Ie.updateElStyle("update_el_style",...Ot[Vt]),this.$=Ot[Vt];break;case 76:console.log(Ot[Vt-1],JSON.stringify(Ot[Vt])),Ie.updateRelStyle("update_rel_style",...Ot[Vt]),this.$=Ot[Vt];break;case 77:console.log(Ot[Vt-1],JSON.stringify(Ot[Vt])),Ie.updateLayoutConfig("update_layout_config",...Ot[Vt]),this.$=Ot[Vt];break;case 78:console.log("PUSH ATTRIBUTE: ",Ot[Vt]),this.$=[Ot[Vt]];break;case 79:console.log("PUSH ATTRIBUTE: ",Ot[Vt-1]),Ot[Vt].unshift(Ot[Vt-1]),this.$=Ot[Vt];break;case 80:case 82:this.$=Ot[Vt].trim();break;case 81:console.log("kv: ",Ot[Vt-1],Ot[Vt]);let qr={};qr[Ot[Vt-1].trim()]=Ot[Vt].trim(),this.$=qr;break;case 83:this.$=""}},table:[{3:1,4:2,5:3,6:4,7:v,8:_,9:A,10:M,11:5,12:10,18:T,22:O,25:B,26:z,27:q,28:J},{1:[3]},{1:[2,1]},{1:[2,2]},{3:17,4:2,5:3,6:4,7:v,8:_,9:A,10:M,11:5,12:10,18:T,22:O,25:B,26:z,27:q,28:J},{1:[2,8]},{1:[2,4]},{1:[2,5]},{1:[2,6]},{1:[2,7]},{13:18,19:[1,19]},{15:[1,20]},{15:[1,21]},{15:[1,22]},{15:[1,23]},{15:[1,24]},{19:[2,11]},{1:[2,3]},{14:25,16:[1,26],21:rt},f([16,21],[2,12]),{23:28,29:29,30:30,31:31,32:ut,33:Z,34:mt,36:nt,38:at,39:58,40:70,42:71,44:_t,46:jt,47:St,48:gt,49:Ct,50:vt,51:ft,53:32,54:Q,55:ht,56:$,57:kt,58:W,59:At,60:Nt,61:Gt,62:xe,63:Ge,64:Te,65:ye,66:ke,67:Me,68:Oe,69:we,70:Sr,71:_e,72:er,73:oe,74:ee,75:he,76:Mt,77:ie,78:pt,79:wt,80:xt,81:Rt,82:me,83:Pe,84:ar},{23:79,29:29,30:30,31:31,32:ut,33:Z,34:mt,36:nt,38:at,39:58,40:70,42:71,44:_t,46:jt,47:St,48:gt,49:Ct,50:vt,51:ft,53:32,54:Q,55:ht,56:$,57:kt,58:W,59:At,60:Nt,61:Gt,62:xe,63:Ge,64:Te,65:ye,66:ke,67:Me,68:Oe,69:we,70:Sr,71:_e,72:er,73:oe,74:ee,75:he,76:Mt,77:ie,78:pt,79:wt,80:xt,81:Rt,82:me,83:Pe,84:ar},{23:80,29:29,30:30,31:31,32:ut,33:Z,34:mt,36:nt,38:at,39:58,40:70,42:71,44:_t,46:jt,47:St,48:gt,49:Ct,50:vt,51:ft,53:32,54:Q,55:ht,56:$,57:kt,58:W,59:At,60:Nt,61:Gt,62:xe,63:Ge,64:Te,65:ye,66:ke,67:Me,68:Oe,69:we,70:Sr,71:_e,72:er,73:oe,74:ee,75:he,76:Mt,77:ie,78:pt,79:wt,80:xt,81:Rt,82:me,83:Pe,84:ar},{23:81,29:29,30:30,31:31,32:ut,33:Z,34:mt,36:nt,38:at,39:58,40:70,42:71,44:_t,46:jt,47:St,48:gt,49:Ct,50:vt,51:ft,53:32,54:Q,55:ht,56:$,57:kt,58:W,59:At,60:Nt,61:Gt,62:xe,63:Ge,64:Te,65:ye,66:ke,67:Me,68:Oe,69:we,70:Sr,71:_e,72:er,73:oe,74:ee,75:he,76:Mt,77:ie,78:pt,79:wt,80:xt,81:Rt,82:me,83:Pe,84:ar},{23:82,29:29,30:30,31:31,32:ut,33:Z,34:mt,36:nt,38:at,39:58,40:70,42:71,44:_t,46:jt,47:St,48:gt,49:Ct,50:vt,51:ft,53:32,54:Q,55:ht,56:$,57:kt,58:W,59:At,60:Nt,61:Gt,62:xe,63:Ge,64:Te,65:ye,66:ke,67:Me,68:Oe,69:we,70:Sr,71:_e,72:er,73:oe,74:ee,75:he,76:Mt,77:ie,78:pt,79:wt,80:xt,81:Rt,82:me,83:Pe,84:ar},{15:[1,83]},{17:84,20:[1,85]},{15:[2,14]},{24:[1,86]},f(Ze,[2,20],{53:32,39:58,40:70,42:71,30:87,44:_t,46:jt,47:St,48:gt,49:Ct,50:vt,51:ft,54:Q,55:ht,56:$,57:kt,58:W,59:At,60:Nt,61:Gt,62:xe,63:Ge,64:Te,65:ye,66:ke,67:Me,68:Oe,69:we,70:Sr,71:_e,72:er,73:oe,74:ee,75:he,76:Mt,77:ie,78:pt,79:wt,80:xt,81:Rt,82:me,83:Pe,84:ar}),f(Ze,[2,21]),f(ur,[2,23],{15:[1,88]}),f(Ze,[2,43],{15:[1,89]}),f(ze,[2,26]),f(ze,[2,27]),{35:[1,90]},{37:[1,91]},f(ze,[2,30]),{45:92,85:93,86:Ce,87:Be,89:Fe,90:be},{45:98,85:93,86:Ce,87:Be,89:Fe,90:be},{45:99,85:93,86:Ce,87:Be,89:Fe,90:be},{45:100,85:93,86:Ce,87:Be,89:Fe,90:be},{45:101,85:93,86:Ce,87:Be,89:Fe,90:be},{45:102,85:93,86:Ce,87:Be,89:Fe,90:be},{45:103,85:93,86:Ce,87:Be,89:Fe,90:be},{45:104,85:93,86:Ce,87:Be,89:Fe,90:be},{45:105,85:93,86:Ce,87:Be,89:Fe,90:be},{45:106,85:93,86:Ce,87:Be,89:Fe,90:be},{45:107,85:93,86:Ce,87:Be,89:Fe,90:be},{45:108,85:93,86:Ce,87:Be,89:Fe,90:be},{45:109,85:93,86:Ce,87:Be,89:Fe,90:be},{45:110,85:93,86:Ce,87:Be,89:Fe,90:be},{45:111,85:93,86:Ce,87:Be,89:Fe,90:be},{45:112,85:93,86:Ce,87:Be,89:Fe,90:be},{45:113,85:93,86:Ce,87:Be,89:Fe,90:be},{45:114,85:93,86:Ce,87:Be,89:Fe,90:be},{45:115,85:93,86:Ce,87:Be,89:Fe,90:be},{45:116,85:93,86:Ce,87:Be,89:Fe,90:be},f(se,[2,66]),{45:117,85:93,86:Ce,87:Be,89:Fe,90:be},{45:118,85:93,86:Ce,87:Be,89:Fe,90:be},{45:119,85:93,86:Ce,87:Be,89:Fe,90:be},{45:120,85:93,86:Ce,87:Be,89:Fe,90:be},{45:121,85:93,86:Ce,87:Be,89:Fe,90:be},{45:122,85:93,86:Ce,87:Be,89:Fe,90:be},{45:123,85:93,86:Ce,87:Be,89:Fe,90:be},{45:124,85:93,86:Ce,87:Be,89:Fe,90:be},{45:125,85:93,86:Ce,87:Be,89:Fe,90:be},{45:126,85:93,86:Ce,87:Be,89:Fe,90:be},{45:127,85:93,86:Ce,87:Be,89:Fe,90:be},{30:128,39:58,40:70,42:71,44:_t,46:jt,47:St,48:gt,49:Ct,50:vt,51:ft,53:32,54:Q,55:ht,56:$,57:kt,58:W,59:At,60:Nt,61:Gt,62:xe,63:Ge,64:Te,65:ye,66:ke,67:Me,68:Oe,69:we,70:Sr,71:_e,72:er,73:oe,74:ee,75:he,76:Mt,77:ie,78:pt,79:wt,80:xt,81:Rt,82:me,83:Pe,84:ar},{15:[1,130],43:[1,129]},{45:131,85:93,86:Ce,87:Be,89:Fe,90:be},{45:132,85:93,86:Ce,87:Be,89:Fe,90:be},{45:133,85:93,86:Ce,87:Be,89:Fe,90:be},{45:134,85:93,86:Ce,87:Be,89:Fe,90:be},{45:135,85:93,86:Ce,87:Be,89:Fe,90:be},{45:136,85:93,86:Ce,87:Be,89:Fe,90:be},{45:137,85:93,86:Ce,87:Be,89:Fe,90:be},{24:[1,138]},{24:[1,139]},{24:[1,140]},{24:[1,141]},f(Lr,[2,9]),{14:142,21:rt},{21:[2,13]},{1:[2,15]},f(Ze,[2,22]),f(ur,[2,24],{31:31,29:143,32:ut,33:Z,34:mt,36:nt,38:at}),f(Ze,[2,44],{29:29,30:30,31:31,53:32,39:58,40:70,42:71,23:144,32:ut,33:Z,34:mt,36:nt,38:at,44:_t,46:jt,47:St,48:gt,49:Ct,50:vt,51:ft,54:Q,55:ht,56:$,57:kt,58:W,59:At,60:Nt,61:Gt,62:xe,63:Ge,64:Te,65:ye,66:ke,67:Me,68:Oe,69:we,70:Sr,71:_e,72:er,73:oe,74:ee,75:he,76:Mt,77:ie,78:pt,79:wt,80:xt,81:Rt,82:me,83:Pe,84:ar}),f(ze,[2,28]),f(ze,[2,29]),f(se,[2,46]),f(Ue,[2,78],{85:93,45:145,86:Ce,87:Be,89:Fe,90:be}),f(dr,[2,80]),{88:[1,146]},f(dr,[2,82]),f(dr,[2,83]),f(se,[2,47]),f(se,[2,48]),f(se,[2,49]),f(se,[2,50]),f(se,[2,51]),f(se,[2,52]),f(se,[2,53]),f(se,[2,54]),f(se,[2,55]),f(se,[2,56]),f(se,[2,57]),f(se,[2,58]),f(se,[2,59]),f(se,[2,60]),f(se,[2,61]),f(se,[2,62]),f(se,[2,63]),f(se,[2,64]),f(se,[2,65]),f(se,[2,67]),f(se,[2,68]),f(se,[2,69]),f(se,[2,70]),f(se,[2,71]),f(se,[2,72]),f(se,[2,73]),f(se,[2,74]),f(se,[2,75]),f(se,[2,76]),f(se,[2,77]),{41:147,52:[1,148]},{15:[1,149]},{43:[1,150]},f(qe,[2,35]),f(qe,[2,36]),f(qe,[2,37]),f(qe,[2,38]),f(qe,[2,39]),f(qe,[2,40]),f(qe,[2,41]),{1:[2,16]},{1:[2,17]},{1:[2,18]},{1:[2,19]},{15:[1,151]},f(ur,[2,25]),f(Ze,[2,45]),f(Ue,[2,79]),f(dr,[2,81]),f(se,[2,31]),f(se,[2,42]),f(gr,[2,32]),f(gr,[2,33],{15:[1,152]}),f(Lr,[2,10]),f(gr,[2,34])],defaultActions:{2:[2,1],3:[2,2],5:[2,8],6:[2,4],7:[2,5],8:[2,6],9:[2,7],16:[2,11],17:[2,3],27:[2,14],85:[2,13],86:[2,15],138:[2,16],139:[2,17],140:[2,18],141:[2,19]},parseError:function(De,rr){if(!rr.recoverable){var Qe=new Error(De);throw Qe.hash=rr,Qe}this.trace(De)},parse:function(De){var rr=this,Qe=[0],Ie=[],vr=[null],Ot=[],kn=this.table,Vt="",qr=0,zr=0,Zr=0,Mr=2,Xr=1,Pr=Ot.slice.call(arguments,1),Cr=Object.create(this.lexer),Ur={yy:{}};for(var Yr in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Yr)&&(Ur.yy[Yr]=this.yy[Yr]);Cr.setInput(De,Ur.yy),Ur.yy.lexer=Cr,Ur.yy.parser=this,Cr.yylloc===void 0&&(Cr.yylloc={});var jr=Cr.yylloc;Ot.push(jr);var ya=Cr.options&&Cr.options.ranges;function On(){var Kr;return typeof(Kr=Ie.pop()||Cr.lex()||Xr)!="number"&&(Kr instanceof Array&&(Kr=(Ie=Kr).pop()),Kr=rr.symbols_[Kr]||Kr),Kr}typeof Ur.yy.parseError=="function"?this.parseError=Ur.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var Cn,Ir,ui,Or,En,Ln,vn,Zn,Bt,Mn={};;){if(ui=Qe[Qe.length-1],this.defaultActions[ui]?Or=this.defaultActions[ui]:(Cn==null&&(Cn=On()),Or=kn[ui]&&kn[ui][Cn]),Or===void 0||!Or.length||!Or[0]){var Rn="";for(Ln in Bt=[],kn[ui])this.terminals_[Ln]&&Ln>Mr&&Bt.push("'"+this.terminals_[Ln]+"'");Rn=Cr.showPosition?"Parse error on line "+(qr+1)+`: +`+Cr.showPosition()+` +Expecting `+Bt.join(", ")+", got '"+(this.terminals_[Cn]||Cn)+"'":"Parse error on line "+(qr+1)+": Unexpected "+(Cn==Xr?"end of input":"'"+(this.terminals_[Cn]||Cn)+"'"),this.parseError(Rn,{text:Cr.match,token:this.terminals_[Cn]||Cn,line:Cr.yylineno,loc:jr,expected:Bt})}if(Or[0]instanceof Array&&Or.length>1)throw new Error("Parse Error: multiple actions possible at state: "+ui+", token: "+Cn);switch(Or[0]){case 1:Qe.push(Cn),vr.push(Cr.yytext),Ot.push(Cr.yylloc),Qe.push(Or[1]),Cn=null,Ir?(Cn=Ir,Ir=null):(zr=Cr.yyleng,Vt=Cr.yytext,qr=Cr.yylineno,jr=Cr.yylloc,Zr>0);break;case 2:if(vn=this.productions_[Or[1]][1],Mn.$=vr[vr.length-vn],Mn._$={first_line:Ot[Ot.length-(vn||1)].first_line,last_line:Ot[Ot.length-1].last_line,first_column:Ot[Ot.length-(vn||1)].first_column,last_column:Ot[Ot.length-1].last_column},ya&&(Mn._$.range=[Ot[Ot.length-(vn||1)].range[0],Ot[Ot.length-1].range[1]]),(En=this.performAction.apply(Mn,[Vt,zr,qr,Ur.yy,Or[1],vr,Ot].concat(Pr)))!==void 0)return En;vn&&(Qe=Qe.slice(0,-1*vn*2),vr=vr.slice(0,-1*vn),Ot=Ot.slice(0,-1*vn)),Qe.push(this.productions_[Or[1]][0]),vr.push(Mn.$),Ot.push(Mn._$),Zn=kn[Qe[Qe.length-2]][Qe[Qe.length-1]],Qe.push(Zn);break;case 3:return!0}}return!0}},Dr={EOF:1,parseError:function(De,rr){if(!this.yy.parser)throw new Error(De);this.yy.parser.parseError(De,rr)},setInput:function(De,rr){return this.yy=rr||this.yy||{},this._input=De,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var De=this._input[0];return this.yytext+=De,this.yyleng++,this.offset++,this.match+=De,this.matched+=De,De.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),De},unput:function(De){var rr=De.length,Qe=De.split(/(?:\r\n?|\n)/g);this._input=De+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-rr),this.offset-=rr;var Ie=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),Qe.length-1&&(this.yylineno-=Qe.length-1);var vr=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:Qe?(Qe.length===Ie.length?this.yylloc.first_column:0)+Ie[Ie.length-Qe.length].length-Qe[0].length:this.yylloc.first_column-rr},this.options.ranges&&(this.yylloc.range=[vr[0],vr[0]+this.yyleng-rr]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). +`+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(De){this.unput(this.match.slice(De))},pastInput:function(){var De=this.matched.substr(0,this.matched.length-this.match.length);return(De.length>20?"...":"")+De.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var De=this.match;return De.length<20&&(De+=this._input.substr(0,20-De.length)),(De.substr(0,20)+(De.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var De=this.pastInput(),rr=new Array(De.length+1).join("-");return De+this.upcomingInput()+` +`+rr+"^"},test_match:function(De,rr){var Qe,Ie,vr;if(this.options.backtrack_lexer&&(vr={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&&(vr.yylloc.range=this.yylloc.range.slice(0))),(Ie=De[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=Ie.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:Ie?Ie[Ie.length-1].length-Ie[Ie.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+De[0].length},this.yytext+=De[0],this.match+=De[0],this.matches=De,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(De[0].length),this.matched+=De[0],Qe=this.performAction.call(this,this.yy,this,rr,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),Qe)return Qe;if(this._backtrack){for(var Ot in vr)this[Ot]=vr[Ot];return!1}return!1},next:function(){if(this.done)return this.EOF;var De,rr,Qe,Ie;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var vr=this._currentRules(),Ot=0;Otrr[0].length)){if(rr=Qe,Ie=Ot,this.options.backtrack_lexer){if((De=this.test_match(Qe,vr[Ot]))!==!1)return De;if(this._backtrack){rr=!1;continue}return!1}if(!this.options.flex)break}return rr?(De=this.test_match(rr,vr[Ie]))!==!1&&De:this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text. +`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){return this.next()||this.lex()},begin:function(De){this.conditionStack.push(De)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(De){return(De=this.conditionStack.length-1-Math.abs(De||0))>=0?this.conditionStack[De]:"INITIAL"},pushState:function(De){this.begin(De)},stateStackSize:function(){return this.conditionStack.length},options:{},performAction:function(De,rr,Qe,Ie){switch(Qe){case 0:return this.begin("open_directive"),18;case 1:return 7;case 2:return 8;case 3:return 9;case 4:return 10;case 5:return this.begin("type_directive"),19;case 6:return this.popState(),this.begin("arg_directive"),16;case 7:return this.popState(),this.popState(),21;case 8:return 20;case 9:return 32;case 10:return 33;case 11:return this.begin("acc_title"),34;case 12:return this.popState(),"acc_title_value";case 13:return this.begin("acc_descr"),36;case 14:return this.popState(),"acc_descr_value";case 15:this.begin("acc_descr_multiline");break;case 16:this.popState();break;case 17:return"acc_descr_multiline_value";case 18:case 21:break;case 19:c;break;case 20:return 15;case 22:return 22;case 23:return 25;case 24:return 26;case 25:return 27;case 26:return 28;case 27:return this.begin("person_ext"),console.log("begin person_ext"),55;case 28:return this.begin("person"),console.log("begin person"),54;case 29:return this.begin("system_ext_queue"),console.log("begin system_ext_queue"),61;case 30:return this.begin("system_ext_db"),console.log("begin system_ext_db"),60;case 31:return this.begin("system_ext"),console.log("begin system_ext"),59;case 32:return this.begin("system_queue"),console.log("begin system_queue"),58;case 33:return this.begin("system_db"),console.log("begin system_db"),57;case 34:return this.begin("system"),console.log("begin system"),56;case 35:return this.begin("boundary"),console.log("begin boundary"),47;case 36:return this.begin("enterprise_boundary"),console.log("begin enterprise_boundary"),44;case 37:return this.begin("system_boundary"),console.log("begin system_boundary"),46;case 38:return this.begin("container_ext_queue"),console.log("begin container_ext_queue"),67;case 39:return this.begin("container_ext_db"),console.log("begin container_ext_db"),66;case 40:return this.begin("container_ext"),console.log("begin container_ext"),65;case 41:return this.begin("container_queue"),console.log("begin container_queue"),64;case 42:return this.begin("container_db"),console.log("begin container_db"),63;case 43:return this.begin("container"),console.log("begin container"),62;case 44:return this.begin("container_boundary"),console.log("begin container_boundary"),48;case 45:return this.begin("component_ext_queue"),console.log("begin component_ext_queue"),73;case 46:return this.begin("component_ext_db"),console.log("begin component_ext_db"),72;case 47:return this.begin("component_ext"),console.log("begin component_ext"),71;case 48:return this.begin("component_queue"),console.log("begin component_queue"),70;case 49:return this.begin("component_db"),console.log("begin component_db"),69;case 50:return this.begin("component"),console.log("begin component"),68;case 51:case 52:return this.begin("node"),console.log("begin node"),49;case 53:return this.begin("node_l"),console.log("begin node_l"),50;case 54:return this.begin("node_r"),console.log("begin node_r"),51;case 55:return this.begin("rel"),console.log("begin rel"),74;case 56:return this.begin("birel"),console.log("begin birel"),75;case 57:case 58:return this.begin("rel_u"),console.log("begin rel_u"),76;case 59:case 60:return this.begin("rel_d"),console.log("begin rel_d"),77;case 61:case 62:return this.begin("rel_l"),console.log("begin rel_l"),78;case 63:case 64:return this.begin("rel_r"),console.log("begin rel_r"),79;case 65:return this.begin("rel_b"),console.log("begin rel_b"),80;case 66:return this.begin("rel_index"),console.log("begin rel_index"),81;case 67:return this.begin("update_el_style"),console.log("begin update_el_style"),82;case 68:return this.begin("update_rel_style"),console.log("begin update_rel_style"),83;case 69:return this.begin("update_layout_config"),console.log("begin update_layout_config"),84;case 70:return"EOF_IN_STRUCT";case 71:return console.log("begin attribute with ATTRIBUTE_EMPTY"),this.begin("attribute"),"ATTRIBUTE_EMPTY";case 72:console.log("begin attribute"),this.begin("attribute");break;case 73:console.log("STOP attribute"),this.popState(),console.log("STOP diagram"),this.popState();break;case 74:return console.log(",,"),90;case 75:console.log(",");break;case 76:return console.log("ATTRIBUTE_EMPTY"),90;case 77:console.log("begin string"),this.begin("string");break;case 78:console.log("STOP string"),this.popState();break;case 79:return console.log("STR"),"STR";case 80:console.log("begin string_kv"),this.begin("string_kv");break;case 81:return console.log("STR_KEY"),this.begin("string_kv_key"),"STR_KEY";case 82:console.log("begin string_kv_value"),this.popState(),this.begin("string_kv_value");break;case 83:return console.log("STR_VALUE"),"STR_VALUE";case 84:console.log("STOP string_kv_value"),this.popState(),this.popState();break;case 85:return console.log("not STR"),"STR";case 86:return console.log("begin boundary block"),"LBRACE";case 87:return console.log("STOP boundary block"),"RBRACE";case 88:return"SPACE";case 89:return"EOL";case 90:return 24}},rules:[/^(?:%%\{)/,/^(?:.*direction\s+TB[^\n]*)/,/^(?:.*direction\s+BT[^\n]*)/,/^(?:.*direction\s+RL[^\n]*)/,/^(?:.*direction\s+LR[^\n]*)/,/^(?:((?:(?!\}%%)[^:.])*))/,/^(?::)/,/^(?:\}%%)/,/^(?:((?:(?!\}%%).|\n)*))/,/^(?:title\s[^#\n;]+)/,/^(?:accDescription\s[^#\n;]+)/,/^(?:accTitle\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*\{\s*)/,/^(?:[\}])/,/^(?:[^\}]*)/,/^(?:%%(?!\{)*[^\n]*(\r?\n?)+)/,/^(?:%%[^\n]*(\r?\n)*)/,/^(?:\s*(\r?\n)+)/,/^(?:\s+)/,/^(?:C4Context\b)/,/^(?:C4Container\b)/,/^(?:C4Component\b)/,/^(?:C4Dynamic\b)/,/^(?:C4Deployment\b)/,/^(?:Person_Ext\b)/,/^(?:Person\b)/,/^(?:SystemQueue_Ext\b)/,/^(?:SystemDb_Ext\b)/,/^(?:System_Ext\b)/,/^(?:SystemQueue\b)/,/^(?:SystemDb\b)/,/^(?:System\b)/,/^(?:Boundary\b)/,/^(?:Enterprise_Boundary\b)/,/^(?:System_Boundary\b)/,/^(?:ContainerQueue_Ext\b)/,/^(?:ContainerDb_Ext\b)/,/^(?:Container_Ext\b)/,/^(?:ContainerQueue\b)/,/^(?:ContainerDb\b)/,/^(?:Container\b)/,/^(?:Container_Boundary\b)/,/^(?:ComponentQueue_Ext\b)/,/^(?:ComponentDb_Ext\b)/,/^(?:Component_Ext\b)/,/^(?:ComponentQueue\b)/,/^(?:ComponentDb\b)/,/^(?:Component\b)/,/^(?:Deployment_Node\b)/,/^(?:Node\b)/,/^(?:Node_L\b)/,/^(?:Node_R\b)/,/^(?:Rel\b)/,/^(?:BiRel\b)/,/^(?:Rel_Up\b)/,/^(?:Rel_U\b)/,/^(?:Rel_Down\b)/,/^(?:Rel_D\b)/,/^(?:Rel_Left\b)/,/^(?:Rel_L\b)/,/^(?:Rel_Right\b)/,/^(?:Rel_R\b)/,/^(?:Rel_Back\b)/,/^(?:RelIndex\b)/,/^(?:UpdateElementStyle\b)/,/^(?:UpdateRelStyle\b)/,/^(?:UpdateLayoutConfig\b)/,/^(?:$)/,/^(?:[(][ ]*[,])/,/^(?:[(])/,/^(?:[)])/,/^(?:,,)/,/^(?:,)/,/^(?:[ ]*["]["])/,/^(?:[ ]*["])/,/^(?:["])/,/^(?:[^"]*)/,/^(?:[ ]*[\$])/,/^(?:[^=]*)/,/^(?:[=][ ]*["])/,/^(?:[^"]+)/,/^(?:["])/,/^(?:[^,]+)/,/^(?:\{)/,/^(?:\})/,/^(?:[\s]+)/,/^(?:[\n\r]+)/,/^(?:$)/],conditions:{acc_descr_multiline:{rules:[16,17],inclusive:!1},acc_descr:{rules:[14],inclusive:!1},acc_title:{rules:[12],inclusive:!1},close_directive:{rules:[],inclusive:!1},arg_directive:{rules:[7,8],inclusive:!1},type_directive:{rules:[6,7],inclusive:!1},open_directive:{rules:[5],inclusive:!1},string_kv_value:{rules:[83,84],inclusive:!1},string_kv_key:{rules:[82],inclusive:!1},string_kv:{rules:[81],inclusive:!1},string:{rules:[78,79],inclusive:!1},attribute:{rules:[73,74,75,76,77,80,85],inclusive:!1},update_layout_config:{rules:[70,71,72,73],inclusive:!1},update_rel_style:{rules:[70,71,72,73],inclusive:!1},update_el_style:{rules:[70,71,72,73],inclusive:!1},rel_b:{rules:[70,71,72,73],inclusive:!1},rel_r:{rules:[70,71,72,73],inclusive:!1},rel_l:{rules:[70,71,72,73],inclusive:!1},rel_d:{rules:[70,71,72,73],inclusive:!1},rel_u:{rules:[70,71,72,73],inclusive:!1},rel_bi:{rules:[],inclusive:!1},rel:{rules:[70,71,72,73],inclusive:!1},node_r:{rules:[70,71,72,73],inclusive:!1},node_l:{rules:[70,71,72,73],inclusive:!1},node:{rules:[70,71,72,73],inclusive:!1},index:{rules:[],inclusive:!1},rel_index:{rules:[70,71,72,73],inclusive:!1},component_ext_queue:{rules:[],inclusive:!1},component_ext_db:{rules:[70,71,72,73],inclusive:!1},component_ext:{rules:[70,71,72,73],inclusive:!1},component_queue:{rules:[70,71,72,73],inclusive:!1},component_db:{rules:[70,71,72,73],inclusive:!1},component:{rules:[70,71,72,73],inclusive:!1},container_boundary:{rules:[70,71,72,73],inclusive:!1},container_ext_queue:{rules:[],inclusive:!1},container_ext_db:{rules:[70,71,72,73],inclusive:!1},container_ext:{rules:[70,71,72,73],inclusive:!1},container_queue:{rules:[70,71,72,73],inclusive:!1},container_db:{rules:[70,71,72,73],inclusive:!1},container:{rules:[70,71,72,73],inclusive:!1},birel:{rules:[70,71,72,73],inclusive:!1},system_boundary:{rules:[70,71,72,73],inclusive:!1},enterprise_boundary:{rules:[70,71,72,73],inclusive:!1},boundary:{rules:[70,71,72,73],inclusive:!1},system_ext_queue:{rules:[70,71,72,73],inclusive:!1},system_ext_db:{rules:[70,71,72,73],inclusive:!1},system_ext:{rules:[70,71,72,73],inclusive:!1},system_queue:{rules:[70,71,72,73],inclusive:!1},system_db:{rules:[70,71,72,73],inclusive:!1},system:{rules:[70,71,72,73],inclusive:!1},person_ext:{rules:[70,71,72,73],inclusive:!1},person:{rules:[70,71,72,73],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,9,10,11,13,15,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,86,87,88,89,90],inclusive:!0}}};function Ar(){this.yy={}}return rn.lexer=Dr,Ar.prototype=rn,rn.Parser=Ar,new Ar}();b.parser=m,b.Parser=m.Parser,b.parse=function(){return m.parse.apply(m,arguments)},b.main=function(f){f[1]||(console.log("Usage: "+f[0]+" FILE"),process.exit(1));var v=h(555).readFileSync(h(6470).normalize(f[1]),"utf8");return b.parser.parse(v)},h.c[h.s]===d&&b.main(process.argv.slice(1))},1362:(d,b,h)=>{d=h.nmd(d);var m=function(){var f=function(ee,he,Mt,ie){for(Mt=Mt||{},ie=ee.length;ie--;Mt[ee[ie]]=he);return Mt},v=[1,3],_=[1,7],A=[1,8],M=[1,9],T=[1,10],O=[1,13],B=[1,12],z=[1,16,25],q=[1,20],J=[1,31],rt=[1,32],ut=[1,33],Z=[1,35],mt=[1,38],nt=[1,36],at=[1,37],_t=[1,39],jt=[1,40],St=[1,41],gt=[1,42],Ct=[1,45],vt=[1,46],ft=[1,47],Q=[1,48],ht=[16,25],$=[1,62],kt=[1,63],W=[1,64],At=[1,65],Nt=[1,66],Gt=[1,67],xe=[1,68],Ge=[16,25,32,44,45,53,56,57,58,59,60,61,62,67,69],Te=[16,25,30,32,44,45,49,53,56,57,58,59,60,61,62,67,69,84,85,86,87],ye=[5,8,9,10,11,16,19,23,25],ke=[53,84,85,86,87],Me=[53,61,62,84,85,86,87],Oe=[53,56,57,58,59,60,84,85,86,87],we=[16,25,32],Sr=[1,100],_e={trace:function(){},yy:{},symbols_:{error:2,start:3,mermaidDoc:4,statments:5,direction:6,directive:7,direction_tb:8,direction_bt:9,direction_rl:10,direction_lr:11,graphConfig:12,openDirective:13,typeDirective:14,closeDirective:15,NEWLINE:16,":":17,argDirective:18,open_directive:19,type_directive:20,arg_directive:21,close_directive:22,CLASS_DIAGRAM:23,statements:24,EOF:25,statement:26,className:27,alphaNumToken:28,classLiteralName:29,GENERICTYPE:30,relationStatement:31,LABEL:32,classStatement:33,methodStatement:34,annotationStatement:35,clickStatement:36,cssClassStatement:37,acc_title:38,acc_title_value:39,acc_descr:40,acc_descr_value:41,acc_descr_multiline_value:42,CLASS:43,STYLE_SEPARATOR:44,STRUCT_START:45,members:46,STRUCT_STOP:47,ANNOTATION_START:48,ANNOTATION_END:49,MEMBER:50,SEPARATOR:51,relation:52,STR:53,relationType:54,lineType:55,AGGREGATION:56,EXTENSION:57,COMPOSITION:58,DEPENDENCY:59,LOLLIPOP:60,LINE:61,DOTTED_LINE:62,CALLBACK:63,LINK:64,LINK_TARGET:65,CLICK:66,CALLBACK_NAME:67,CALLBACK_ARGS:68,HREF:69,CSSCLASS:70,commentToken:71,textToken:72,graphCodeTokens:73,textNoTagsToken:74,TAGSTART:75,TAGEND:76,"==":77,"--":78,PCT:79,DEFAULT:80,SPACE:81,MINUS:82,keywords:83,UNICODE_TEXT:84,NUM:85,ALPHA:86,BQUOTE_STR:87,$accept:0,$end:1},terminals_:{2:"error",5:"statments",8:"direction_tb",9:"direction_bt",10:"direction_rl",11:"direction_lr",16:"NEWLINE",17:":",19:"open_directive",20:"type_directive",21:"arg_directive",22:"close_directive",23:"CLASS_DIAGRAM",25:"EOF",30:"GENERICTYPE",32:"LABEL",38:"acc_title",39:"acc_title_value",40:"acc_descr",41:"acc_descr_value",42:"acc_descr_multiline_value",43:"CLASS",44:"STYLE_SEPARATOR",45:"STRUCT_START",47:"STRUCT_STOP",48:"ANNOTATION_START",49:"ANNOTATION_END",50:"MEMBER",51:"SEPARATOR",53:"STR",56:"AGGREGATION",57:"EXTENSION",58:"COMPOSITION",59:"DEPENDENCY",60:"LOLLIPOP",61:"LINE",62:"DOTTED_LINE",63:"CALLBACK",64:"LINK",65:"LINK_TARGET",66:"CLICK",67:"CALLBACK_NAME",68:"CALLBACK_ARGS",69:"HREF",70:"CSSCLASS",73:"graphCodeTokens",75:"TAGSTART",76:"TAGEND",77:"==",78:"--",79:"PCT",80:"DEFAULT",81:"SPACE",82:"MINUS",83:"keywords",84:"UNICODE_TEXT",85:"NUM",86:"ALPHA",87:"BQUOTE_STR"},productions_:[0,[3,1],[3,1],[3,1],[3,2],[6,1],[6,1],[6,1],[6,1],[4,1],[7,4],[7,6],[13,1],[14,1],[18,1],[15,1],[12,4],[24,1],[24,2],[24,3],[27,1],[27,1],[27,2],[27,2],[27,2],[26,1],[26,2],[26,1],[26,1],[26,1],[26,1],[26,1],[26,1],[26,1],[26,2],[26,2],[26,1],[33,2],[33,4],[33,5],[33,7],[35,4],[46,1],[46,2],[34,1],[34,2],[34,1],[34,1],[31,3],[31,4],[31,4],[31,5],[52,3],[52,2],[52,2],[52,1],[54,1],[54,1],[54,1],[54,1],[54,1],[55,1],[55,1],[36,3],[36,4],[36,3],[36,4],[36,4],[36,5],[36,3],[36,4],[36,4],[36,5],[36,3],[36,4],[36,4],[36,5],[37,3],[71,1],[71,1],[72,1],[72,1],[72,1],[72,1],[72,1],[72,1],[72,1],[74,1],[74,1],[74,1],[74,1],[28,1],[28,1],[28,1],[29,1]],performAction:function(ee,he,Mt,ie,pt,wt,xt){var Rt=wt.length-1;switch(pt){case 5:ie.setDirection("TB");break;case 6:ie.setDirection("BT");break;case 7:ie.setDirection("RL");break;case 8:ie.setDirection("LR");break;case 12:ie.parseDirective("%%{","open_directive");break;case 13:ie.parseDirective(wt[Rt],"type_directive");break;case 14:wt[Rt]=wt[Rt].trim().replace(/'/g,'"'),ie.parseDirective(wt[Rt],"arg_directive");break;case 15:ie.parseDirective("}%%","close_directive","class");break;case 20:case 21:this.$=wt[Rt];break;case 22:this.$=wt[Rt-1]+wt[Rt];break;case 23:case 24:this.$=wt[Rt-1]+"~"+wt[Rt];break;case 25:ie.addRelation(wt[Rt]);break;case 26:wt[Rt-1].title=ie.cleanupLabel(wt[Rt]),ie.addRelation(wt[Rt-1]);break;case 34:this.$=wt[Rt].trim(),ie.setAccTitle(this.$);break;case 35:case 36:this.$=wt[Rt].trim(),ie.setAccDescription(this.$);break;case 37:ie.addClass(wt[Rt]);break;case 38:ie.addClass(wt[Rt-2]),ie.setCssClass(wt[Rt-2],wt[Rt]);break;case 39:ie.addClass(wt[Rt-3]),ie.addMembers(wt[Rt-3],wt[Rt-1]);break;case 40:ie.addClass(wt[Rt-5]),ie.setCssClass(wt[Rt-5],wt[Rt-3]),ie.addMembers(wt[Rt-5],wt[Rt-1]);break;case 41:ie.addAnnotation(wt[Rt],wt[Rt-2]);break;case 42:this.$=[wt[Rt]];break;case 43:wt[Rt].push(wt[Rt-1]),this.$=wt[Rt];break;case 44:case 46:case 47:break;case 45:ie.addMember(wt[Rt-1],ie.cleanupLabel(wt[Rt]));break;case 48:this.$={id1:wt[Rt-2],id2:wt[Rt],relation:wt[Rt-1],relationTitle1:"none",relationTitle2:"none"};break;case 49:this.$={id1:wt[Rt-3],id2:wt[Rt],relation:wt[Rt-1],relationTitle1:wt[Rt-2],relationTitle2:"none"};break;case 50:this.$={id1:wt[Rt-3],id2:wt[Rt],relation:wt[Rt-2],relationTitle1:"none",relationTitle2:wt[Rt-1]};break;case 51:this.$={id1:wt[Rt-4],id2:wt[Rt],relation:wt[Rt-2],relationTitle1:wt[Rt-3],relationTitle2:wt[Rt-1]};break;case 52:this.$={type1:wt[Rt-2],type2:wt[Rt],lineType:wt[Rt-1]};break;case 53:this.$={type1:"none",type2:wt[Rt],lineType:wt[Rt-1]};break;case 54:this.$={type1:wt[Rt-1],type2:"none",lineType:wt[Rt]};break;case 55:this.$={type1:"none",type2:"none",lineType:wt[Rt]};break;case 56:this.$=ie.relationType.AGGREGATION;break;case 57:this.$=ie.relationType.EXTENSION;break;case 58:this.$=ie.relationType.COMPOSITION;break;case 59:this.$=ie.relationType.DEPENDENCY;break;case 60:this.$=ie.relationType.LOLLIPOP;break;case 61:this.$=ie.lineType.LINE;break;case 62:this.$=ie.lineType.DOTTED_LINE;break;case 63:case 69:this.$=wt[Rt-2],ie.setClickEvent(wt[Rt-1],wt[Rt]);break;case 64:case 70:this.$=wt[Rt-3],ie.setClickEvent(wt[Rt-2],wt[Rt-1]),ie.setTooltip(wt[Rt-2],wt[Rt]);break;case 65:case 73:this.$=wt[Rt-2],ie.setLink(wt[Rt-1],wt[Rt]);break;case 66:case 74:this.$=wt[Rt-3],ie.setLink(wt[Rt-2],wt[Rt-1],wt[Rt]);break;case 67:case 75:this.$=wt[Rt-3],ie.setLink(wt[Rt-2],wt[Rt-1]),ie.setTooltip(wt[Rt-2],wt[Rt]);break;case 68:case 76:this.$=wt[Rt-4],ie.setLink(wt[Rt-3],wt[Rt-2],wt[Rt]),ie.setTooltip(wt[Rt-3],wt[Rt-1]);break;case 71:this.$=wt[Rt-3],ie.setClickEvent(wt[Rt-2],wt[Rt-1],wt[Rt]);break;case 72:this.$=wt[Rt-4],ie.setClickEvent(wt[Rt-3],wt[Rt-2],wt[Rt-1]),ie.setTooltip(wt[Rt-3],wt[Rt]);break;case 77:ie.setCssClass(wt[Rt-1],wt[Rt])}},table:[{3:1,4:2,5:v,6:4,7:5,8:_,9:A,10:M,11:T,12:6,13:11,19:O,23:B},{1:[3]},{1:[2,1]},{1:[2,2]},{1:[2,3]},{3:14,4:2,5:v,6:4,7:5,8:_,9:A,10:M,11:T,12:6,13:11,19:O,23:B},{1:[2,9]},f(z,[2,5]),f(z,[2,6]),f(z,[2,7]),f(z,[2,8]),{14:15,20:[1,16]},{16:[1,17]},{20:[2,12]},{1:[2,4]},{15:18,17:[1,19],22:q},f([17,22],[2,13]),{6:30,7:29,8:_,9:A,10:M,11:T,13:11,19:O,24:21,26:22,27:34,28:43,29:44,31:23,33:24,34:25,35:26,36:27,37:28,38:J,40:rt,42:ut,43:Z,48:mt,50:nt,51:at,63:_t,64:jt,66:St,70:gt,84:Ct,85:vt,86:ft,87:Q},{16:[1,49]},{18:50,21:[1,51]},{16:[2,15]},{25:[1,52]},{16:[1,53],25:[2,17]},f(ht,[2,25],{32:[1,54]}),f(ht,[2,27]),f(ht,[2,28]),f(ht,[2,29]),f(ht,[2,30]),f(ht,[2,31]),f(ht,[2,32]),f(ht,[2,33]),{39:[1,55]},{41:[1,56]},f(ht,[2,36]),f(ht,[2,44],{52:57,54:60,55:61,32:[1,59],53:[1,58],56:$,57:kt,58:W,59:At,60:Nt,61:Gt,62:xe}),{27:69,28:43,29:44,84:Ct,85:vt,86:ft,87:Q},f(ht,[2,46]),f(ht,[2,47]),{28:70,84:Ct,85:vt,86:ft},{27:71,28:43,29:44,84:Ct,85:vt,86:ft,87:Q},{27:72,28:43,29:44,84:Ct,85:vt,86:ft,87:Q},{27:73,28:43,29:44,84:Ct,85:vt,86:ft,87:Q},{53:[1,74]},f(Ge,[2,20],{28:43,29:44,27:75,30:[1,76],84:Ct,85:vt,86:ft,87:Q}),f(Ge,[2,21],{30:[1,77]}),f(Te,[2,91]),f(Te,[2,92]),f(Te,[2,93]),f([16,25,30,32,44,45,53,56,57,58,59,60,61,62,67,69],[2,94]),f(ye,[2,10]),{15:78,22:q},{22:[2,14]},{1:[2,16]},{6:30,7:29,8:_,9:A,10:M,11:T,13:11,19:O,24:79,25:[2,18],26:22,27:34,28:43,29:44,31:23,33:24,34:25,35:26,36:27,37:28,38:J,40:rt,42:ut,43:Z,48:mt,50:nt,51:at,63:_t,64:jt,66:St,70:gt,84:Ct,85:vt,86:ft,87:Q},f(ht,[2,26]),f(ht,[2,34]),f(ht,[2,35]),{27:80,28:43,29:44,53:[1,81],84:Ct,85:vt,86:ft,87:Q},{52:82,54:60,55:61,56:$,57:kt,58:W,59:At,60:Nt,61:Gt,62:xe},f(ht,[2,45]),{55:83,61:Gt,62:xe},f(ke,[2,55],{54:84,56:$,57:kt,58:W,59:At,60:Nt}),f(Me,[2,56]),f(Me,[2,57]),f(Me,[2,58]),f(Me,[2,59]),f(Me,[2,60]),f(Oe,[2,61]),f(Oe,[2,62]),f(ht,[2,37],{44:[1,85],45:[1,86]}),{49:[1,87]},{53:[1,88]},{53:[1,89]},{67:[1,90],69:[1,91]},{28:92,84:Ct,85:vt,86:ft},f(Ge,[2,22]),f(Ge,[2,23]),f(Ge,[2,24]),{16:[1,93]},{25:[2,19]},f(we,[2,48]),{27:94,28:43,29:44,84:Ct,85:vt,86:ft,87:Q},{27:95,28:43,29:44,53:[1,96],84:Ct,85:vt,86:ft,87:Q},f(ke,[2,54],{54:97,56:$,57:kt,58:W,59:At,60:Nt}),f(ke,[2,53]),{28:98,84:Ct,85:vt,86:ft},{46:99,50:Sr},{27:101,28:43,29:44,84:Ct,85:vt,86:ft,87:Q},f(ht,[2,63],{53:[1,102]}),f(ht,[2,65],{53:[1,104],65:[1,103]}),f(ht,[2,69],{53:[1,105],68:[1,106]}),f(ht,[2,73],{53:[1,108],65:[1,107]}),f(ht,[2,77]),f(ye,[2,11]),f(we,[2,50]),f(we,[2,49]),{27:109,28:43,29:44,84:Ct,85:vt,86:ft,87:Q},f(ke,[2,52]),f(ht,[2,38],{45:[1,110]}),{47:[1,111]},{46:112,47:[2,42],50:Sr},f(ht,[2,41]),f(ht,[2,64]),f(ht,[2,66]),f(ht,[2,67],{65:[1,113]}),f(ht,[2,70]),f(ht,[2,71],{53:[1,114]}),f(ht,[2,74]),f(ht,[2,75],{65:[1,115]}),f(we,[2,51]),{46:116,50:Sr},f(ht,[2,39]),{47:[2,43]},f(ht,[2,68]),f(ht,[2,72]),f(ht,[2,76]),{47:[1,117]},f(ht,[2,40])],defaultActions:{2:[2,1],3:[2,2],4:[2,3],6:[2,9],13:[2,12],14:[2,4],20:[2,15],51:[2,14],52:[2,16],79:[2,19],112:[2,43]},parseError:function(ee,he){if(!he.recoverable){var Mt=new Error(ee);throw Mt.hash=he,Mt}this.trace(ee)},parse:function(ee){var he=this,Mt=[0],ie=[],pt=[null],wt=[],xt=this.table,Rt="",me=0,Pe=0,ar=0,Ze=2,ur=1,ze=wt.slice.call(arguments,1),Ce=Object.create(this.lexer),Be={yy:{}};for(var Fe in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Fe)&&(Be.yy[Fe]=this.yy[Fe]);Ce.setInput(ee,Be.yy),Be.yy.lexer=Ce,Be.yy.parser=this,Ce.yylloc===void 0&&(Ce.yylloc={});var be=Ce.yylloc;wt.push(be);var se=Ce.options&&Ce.options.ranges;function Lr(){var vr;return typeof(vr=ie.pop()||Ce.lex()||ur)!="number"&&(vr instanceof Array&&(vr=(ie=vr).pop()),vr=he.symbols_[vr]||vr),vr}typeof Be.yy.parseError=="function"?this.parseError=Be.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var Ue,dr,qe,gr,rn,Dr,Ar,De,rr,Qe={};;){if(qe=Mt[Mt.length-1],this.defaultActions[qe]?gr=this.defaultActions[qe]:(Ue==null&&(Ue=Lr()),gr=xt[qe]&&xt[qe][Ue]),gr===void 0||!gr.length||!gr[0]){var Ie="";for(Dr in rr=[],xt[qe])this.terminals_[Dr]&&Dr>Ze&&rr.push("'"+this.terminals_[Dr]+"'");Ie=Ce.showPosition?"Parse error on line "+(me+1)+`: +`+Ce.showPosition()+` +Expecting `+rr.join(", ")+", got '"+(this.terminals_[Ue]||Ue)+"'":"Parse error on line "+(me+1)+": Unexpected "+(Ue==ur?"end of input":"'"+(this.terminals_[Ue]||Ue)+"'"),this.parseError(Ie,{text:Ce.match,token:this.terminals_[Ue]||Ue,line:Ce.yylineno,loc:be,expected:rr})}if(gr[0]instanceof Array&&gr.length>1)throw new Error("Parse Error: multiple actions possible at state: "+qe+", token: "+Ue);switch(gr[0]){case 1:Mt.push(Ue),pt.push(Ce.yytext),wt.push(Ce.yylloc),Mt.push(gr[1]),Ue=null,dr?(Ue=dr,dr=null):(Pe=Ce.yyleng,Rt=Ce.yytext,me=Ce.yylineno,be=Ce.yylloc,ar>0);break;case 2:if(Ar=this.productions_[gr[1]][1],Qe.$=pt[pt.length-Ar],Qe._$={first_line:wt[wt.length-(Ar||1)].first_line,last_line:wt[wt.length-1].last_line,first_column:wt[wt.length-(Ar||1)].first_column,last_column:wt[wt.length-1].last_column},se&&(Qe._$.range=[wt[wt.length-(Ar||1)].range[0],wt[wt.length-1].range[1]]),(rn=this.performAction.apply(Qe,[Rt,Pe,me,Be.yy,gr[1],pt,wt].concat(ze)))!==void 0)return rn;Ar&&(Mt=Mt.slice(0,-1*Ar*2),pt=pt.slice(0,-1*Ar),wt=wt.slice(0,-1*Ar)),Mt.push(this.productions_[gr[1]][0]),pt.push(Qe.$),wt.push(Qe._$),De=xt[Mt[Mt.length-2]][Mt[Mt.length-1]],Mt.push(De);break;case 3:return!0}}return!0}},er={EOF:1,parseError:function(ee,he){if(!this.yy.parser)throw new Error(ee);this.yy.parser.parseError(ee,he)},setInput:function(ee,he){return this.yy=he||this.yy||{},this._input=ee,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var ee=this._input[0];return this.yytext+=ee,this.yyleng++,this.offset++,this.match+=ee,this.matched+=ee,ee.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),ee},unput:function(ee){var he=ee.length,Mt=ee.split(/(?:\r\n?|\n)/g);this._input=ee+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-he),this.offset-=he;var ie=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),Mt.length-1&&(this.yylineno-=Mt.length-1);var pt=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:Mt?(Mt.length===ie.length?this.yylloc.first_column:0)+ie[ie.length-Mt.length].length-Mt[0].length:this.yylloc.first_column-he},this.options.ranges&&(this.yylloc.range=[pt[0],pt[0]+this.yyleng-he]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). +`+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(ee){this.unput(this.match.slice(ee))},pastInput:function(){var ee=this.matched.substr(0,this.matched.length-this.match.length);return(ee.length>20?"...":"")+ee.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var ee=this.match;return ee.length<20&&(ee+=this._input.substr(0,20-ee.length)),(ee.substr(0,20)+(ee.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var ee=this.pastInput(),he=new Array(ee.length+1).join("-");return ee+this.upcomingInput()+` +`+he+"^"},test_match:function(ee,he){var Mt,ie,pt;if(this.options.backtrack_lexer&&(pt={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&&(pt.yylloc.range=this.yylloc.range.slice(0))),(ie=ee[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=ie.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:ie?ie[ie.length-1].length-ie[ie.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+ee[0].length},this.yytext+=ee[0],this.match+=ee[0],this.matches=ee,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(ee[0].length),this.matched+=ee[0],Mt=this.performAction.call(this,this.yy,this,he,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),Mt)return Mt;if(this._backtrack){for(var wt in pt)this[wt]=pt[wt];return!1}return!1},next:function(){if(this.done)return this.EOF;var ee,he,Mt,ie;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var pt=this._currentRules(),wt=0;wthe[0].length)){if(he=Mt,ie=wt,this.options.backtrack_lexer){if((ee=this.test_match(Mt,pt[wt]))!==!1)return ee;if(this._backtrack){he=!1;continue}return!1}if(!this.options.flex)break}return he?(ee=this.test_match(he,pt[ie]))!==!1&&ee:this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text. +`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){return this.next()||this.lex()},begin:function(ee){this.conditionStack.push(ee)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(ee){return(ee=this.conditionStack.length-1-Math.abs(ee||0))>=0?this.conditionStack[ee]:"INITIAL"},pushState:function(ee){this.begin(ee)},stateStackSize:function(){return this.conditionStack.length},options:{},performAction:function(ee,he,Mt,ie){switch(Mt){case 0:return this.begin("open_directive"),19;case 1:return 8;case 2:return 9;case 3:return 10;case 4:return 11;case 5:return this.begin("type_directive"),20;case 6:return this.popState(),this.begin("arg_directive"),17;case 7:return this.popState(),this.popState(),22;case 8:return 21;case 9:case 10:case 19:case 27:break;case 11:return this.begin("acc_title"),38;case 12:return this.popState(),"acc_title_value";case 13:return this.begin("acc_descr"),40;case 14:return this.popState(),"acc_descr_value";case 15:this.begin("acc_descr_multiline");break;case 16:case 37:case 40:case 43:case 46:case 49:case 52:this.popState();break;case 17:return"acc_descr_multiline_value";case 18:return 16;case 20:case 21:return 23;case 22:return this.begin("struct"),45;case 23:return"EDGE_STATE";case 24:return"EOF_IN_STRUCT";case 25:return"OPEN_IN_STRUCT";case 26:return this.popState(),47;case 28:return"MEMBER";case 29:return 43;case 30:return 70;case 31:return 63;case 32:return 64;case 33:return 66;case 34:return 48;case 35:return 49;case 36:this.begin("generic");break;case 38:return"GENERICTYPE";case 39:this.begin("string");break;case 41:return"STR";case 42:this.begin("bqstring");break;case 44:return"BQUOTE_STR";case 45:this.begin("href");break;case 47:return 69;case 48:this.begin("callback_name");break;case 50:this.popState(),this.begin("callback_args");break;case 51:return 67;case 53:return 68;case 54:case 55:case 56:case 57:return 65;case 58:case 59:return 57;case 60:case 61:return 59;case 62:return 58;case 63:return 56;case 64:return 60;case 65:return 61;case 66:return 62;case 67:return 32;case 68:return 44;case 69:return 82;case 70:return"DOT";case 71:return"PLUS";case 72:return 79;case 73:case 74:return"EQUALS";case 75:return 86;case 76:return"PUNCTUATION";case 77:return 85;case 78:return 84;case 79:return 81;case 80:return 25}},rules:[/^(?:%%\{)/,/^(?:.*direction\s+TB[^\n]*)/,/^(?:.*direction\s+BT[^\n]*)/,/^(?:.*direction\s+RL[^\n]*)/,/^(?:.*direction\s+LR[^\n]*)/,/^(?:((?:(?!\}%%)[^:.])*))/,/^(?::)/,/^(?:\}%%)/,/^(?:((?:(?!\}%%).|\n)*))/,/^(?:%%(?!\{)*[^\n]*(\r?\n?)+)/,/^(?:%%[^\n]*(\r?\n)*)/,/^(?:accTitle\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*\{\s*)/,/^(?:[\}])/,/^(?:[^\}]*)/,/^(?:\s*(\r?\n)+)/,/^(?:\s+)/,/^(?:classDiagram-v2\b)/,/^(?:classDiagram\b)/,/^(?:[{])/,/^(?:\[\*\])/,/^(?:$)/,/^(?:[{])/,/^(?:[}])/,/^(?:[\n])/,/^(?:[^{}\n]*)/,/^(?:class\b)/,/^(?:cssClass\b)/,/^(?:callback\b)/,/^(?:link\b)/,/^(?:click\b)/,/^(?:<<)/,/^(?:>>)/,/^(?:[~])/,/^(?:[~])/,/^(?:[^~]*)/,/^(?:["])/,/^(?:["])/,/^(?:[^"]*)/,/^(?:[`])/,/^(?:[`])/,/^(?:[^`]+)/,/^(?:href[\s]+["])/,/^(?:["])/,/^(?:[^"]*)/,/^(?:call[\s]+)/,/^(?:\([\s]*\))/,/^(?:\()/,/^(?:[^(]*)/,/^(?:\))/,/^(?:[^)]*)/,/^(?:_self\b)/,/^(?:_blank\b)/,/^(?:_parent\b)/,/^(?:_top\b)/,/^(?:\s*<\|)/,/^(?:\s*\|>)/,/^(?:\s*>)/,/^(?:\s*<)/,/^(?:\s*\*)/,/^(?:\s*o\b)/,/^(?:\s*\(\))/,/^(?:--)/,/^(?:\.\.)/,/^(?::{1}[^:\n;]+)/,/^(?::{3})/,/^(?:-)/,/^(?:\.)/,/^(?:\+)/,/^(?:%)/,/^(?:=)/,/^(?:=)/,/^(?:\w+)/,/^(?:[!"#$%&'*+,-.`?\\/])/,/^(?:[0-9]+)/,/^(?:[\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6]|[\u00F8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377]|[\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5]|[\u03F7-\u0481\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA]|[\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE]|[\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA]|[\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0]|[\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0977]|[\u0979-\u097F\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2]|[\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A]|[\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39]|[\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8]|[\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C]|[\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C]|[\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99]|[\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0]|[\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D]|[\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3]|[\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10]|[\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1]|[\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81]|[\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3]|[\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6]|[\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A]|[\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081]|[\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D]|[\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0]|[\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310]|[\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C]|[\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u1700-\u170C\u170E-\u1711]|[\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7]|[\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C]|[\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16]|[\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF]|[\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC]|[\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D]|[\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D]|[\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3]|[\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F]|[\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128]|[\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184]|[\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3]|[\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6]|[\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE]|[\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C]|[\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D]|[\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC]|[\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B]|[\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788]|[\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805]|[\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB]|[\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28]|[\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5]|[\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4]|[\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E]|[\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D]|[\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36]|[\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D]|[\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC]|[\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF]|[\uFFD2-\uFFD7\uFFDA-\uFFDC])/,/^(?:\s)/,/^(?:$)/],conditions:{acc_descr_multiline:{rules:[16,17],inclusive:!1},acc_descr:{rules:[14],inclusive:!1},acc_title:{rules:[12],inclusive:!1},arg_directive:{rules:[7,8],inclusive:!1},type_directive:{rules:[6,7],inclusive:!1},open_directive:{rules:[5],inclusive:!1},callback_args:{rules:[52,53],inclusive:!1},callback_name:{rules:[49,50,51],inclusive:!1},href:{rules:[46,47],inclusive:!1},struct:{rules:[23,24,25,26,27,28],inclusive:!1},generic:{rules:[37,38],inclusive:!1},bqstring:{rules:[43,44],inclusive:!1},string:{rules:[40,41],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,9,10,11,13,15,18,19,20,21,22,23,29,30,31,32,33,34,35,36,39,42,45,48,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80],inclusive:!0}}};function oe(){this.yy={}}return _e.lexer=er,oe.prototype=_e,_e.Parser=oe,new oe}();b.parser=m,b.Parser=m.Parser,b.parse=function(){return m.parse.apply(m,arguments)},b.main=function(f){f[1]||(console.log("Usage: "+f[0]+" FILE"),process.exit(1));var v=h(8218).readFileSync(h(6470).normalize(f[1]),"utf8");return b.parser.parse(v)},h.c[h.s]===d&&b.main(process.argv.slice(1))},5890:(d,b,h)=>{d=h.nmd(d);var m=function(){var f=function(Q,ht,$,kt){for($=$||{},kt=Q.length;kt--;$[Q[kt]]=ht);return $},v=[1,2],_=[1,5],A=[6,9,11,23,25,27,29,30,49],M=[1,17],T=[1,18],O=[1,19],B=[1,20],z=[1,21],q=[1,24],J=[1,29],rt=[1,30],ut=[1,31],Z=[1,32],mt=[6,9,11,15,20,23,25,27,29,30,42,43,44,45,49],nt=[1,45],at=[30,46,47],_t=[4,6,9,11,23,25,27,29,30,49],jt=[42,43,44,45],St=[22,37],gt=[1,64],Ct={trace:function(){},yy:{},symbols_:{error:2,start:3,ER_DIAGRAM:4,document:5,EOF:6,directive:7,line:8,SPACE:9,statement:10,NEWLINE:11,openDirective:12,typeDirective:13,closeDirective:14,":":15,argDirective:16,entityName:17,relSpec:18,role:19,BLOCK_START:20,attributes:21,BLOCK_STOP:22,title:23,title_value:24,acc_title:25,acc_title_value:26,acc_descr:27,acc_descr_value:28,acc_descr_multiline_value:29,ALPHANUM:30,".":31,attribute:32,attributeType:33,attributeName:34,attributeKeyType:35,attributeComment:36,ATTRIBUTE_WORD:37,ATTRIBUTE_KEY:38,COMMENT:39,cardinality:40,relType:41,ZERO_OR_ONE:42,ZERO_OR_MORE:43,ONE_OR_MORE:44,ONLY_ONE:45,NON_IDENTIFYING:46,IDENTIFYING:47,WORD:48,open_directive:49,type_directive:50,arg_directive:51,close_directive:52,$accept:0,$end:1},terminals_:{2:"error",4:"ER_DIAGRAM",6:"EOF",9:"SPACE",11:"NEWLINE",15:":",20:"BLOCK_START",22:"BLOCK_STOP",23:"title",24:"title_value",25:"acc_title",26:"acc_title_value",27:"acc_descr",28:"acc_descr_value",29:"acc_descr_multiline_value",30:"ALPHANUM",31:".",37:"ATTRIBUTE_WORD",38:"ATTRIBUTE_KEY",39:"COMMENT",42:"ZERO_OR_ONE",43:"ZERO_OR_MORE",44:"ONE_OR_MORE",45:"ONLY_ONE",46:"NON_IDENTIFYING",47:"IDENTIFYING",48:"WORD",49:"open_directive",50:"type_directive",51:"arg_directive",52:"close_directive"},productions_:[0,[3,3],[3,2],[5,0],[5,2],[8,2],[8,1],[8,1],[8,1],[7,4],[7,6],[10,1],[10,5],[10,4],[10,3],[10,1],[10,2],[10,2],[10,2],[10,1],[17,1],[17,3],[21,1],[21,2],[32,2],[32,3],[32,3],[32,4],[33,1],[34,1],[35,1],[36,1],[18,3],[40,1],[40,1],[40,1],[40,1],[41,1],[41,1],[19,1],[19,1],[12,1],[13,1],[16,1],[14,1]],performAction:function(Q,ht,$,kt,W,At,Nt){var Gt=At.length-1;switch(W){case 1:break;case 3:case 7:case 8:this.$=[];break;case 4:At[Gt-1].push(At[Gt]),this.$=At[Gt-1];break;case 5:case 6:case 20:case 28:case 29:case 30:case 40:this.$=At[Gt];break;case 12:kt.addEntity(At[Gt-4]),kt.addEntity(At[Gt-2]),kt.addRelationship(At[Gt-4],At[Gt],At[Gt-2],At[Gt-3]);break;case 13:kt.addEntity(At[Gt-3]),kt.addAttributes(At[Gt-3],At[Gt-1]);break;case 14:kt.addEntity(At[Gt-2]);break;case 15:kt.addEntity(At[Gt]);break;case 16:case 17:this.$=At[Gt].trim(),kt.setAccTitle(this.$);break;case 18:case 19:this.$=At[Gt].trim(),kt.setAccDescription(this.$);break;case 21:this.$=At[Gt-2]+At[Gt-1]+At[Gt];break;case 22:this.$=[At[Gt]];break;case 23:At[Gt].push(At[Gt-1]),this.$=At[Gt];break;case 24:this.$={attributeType:At[Gt-1],attributeName:At[Gt]};break;case 25:this.$={attributeType:At[Gt-2],attributeName:At[Gt-1],attributeKeyType:At[Gt]};break;case 26:this.$={attributeType:At[Gt-2],attributeName:At[Gt-1],attributeComment:At[Gt]};break;case 27:this.$={attributeType:At[Gt-3],attributeName:At[Gt-2],attributeKeyType:At[Gt-1],attributeComment:At[Gt]};break;case 31:case 39:this.$=At[Gt].replace(/"/g,"");break;case 32:this.$={cardA:At[Gt],relType:At[Gt-1],cardB:At[Gt-2]};break;case 33:this.$=kt.Cardinality.ZERO_OR_ONE;break;case 34:this.$=kt.Cardinality.ZERO_OR_MORE;break;case 35:this.$=kt.Cardinality.ONE_OR_MORE;break;case 36:this.$=kt.Cardinality.ONLY_ONE;break;case 37:this.$=kt.Identification.NON_IDENTIFYING;break;case 38:this.$=kt.Identification.IDENTIFYING;break;case 41:kt.parseDirective("%%{","open_directive");break;case 42:kt.parseDirective(At[Gt],"type_directive");break;case 43:At[Gt]=At[Gt].trim().replace(/'/g,'"'),kt.parseDirective(At[Gt],"arg_directive");break;case 44:kt.parseDirective("}%%","close_directive","er")}},table:[{3:1,4:v,7:3,12:4,49:_},{1:[3]},f(A,[2,3],{5:6}),{3:7,4:v,7:3,12:4,49:_},{13:8,50:[1,9]},{50:[2,41]},{6:[1,10],7:15,8:11,9:[1,12],10:13,11:[1,14],12:4,17:16,23:M,25:T,27:O,29:B,30:z,49:_},{1:[2,2]},{14:22,15:[1,23],52:q},f([15,52],[2,42]),f(A,[2,8],{1:[2,1]}),f(A,[2,4]),{7:15,10:25,12:4,17:16,23:M,25:T,27:O,29:B,30:z,49:_},f(A,[2,6]),f(A,[2,7]),f(A,[2,11]),f(A,[2,15],{18:26,40:28,20:[1,27],42:J,43:rt,44:ut,45:Z}),{24:[1,33]},{26:[1,34]},{28:[1,35]},f(A,[2,19]),f(mt,[2,20],{31:[1,36]}),{11:[1,37]},{16:38,51:[1,39]},{11:[2,44]},f(A,[2,5]),{17:40,30:z},{21:41,22:[1,42],32:43,33:44,37:nt},{41:46,46:[1,47],47:[1,48]},f(at,[2,33]),f(at,[2,34]),f(at,[2,35]),f(at,[2,36]),f(A,[2,16]),f(A,[2,17]),f(A,[2,18]),{17:49,30:z},f(_t,[2,9]),{14:50,52:q},{52:[2,43]},{15:[1,51]},{22:[1,52]},f(A,[2,14]),{21:53,22:[2,22],32:43,33:44,37:nt},{34:54,37:[1,55]},{37:[2,28]},{40:56,42:J,43:rt,44:ut,45:Z},f(jt,[2,37]),f(jt,[2,38]),f(mt,[2,21]),{11:[1,57]},{19:58,30:[1,60],48:[1,59]},f(A,[2,13]),{22:[2,23]},f(St,[2,24],{35:61,36:62,38:[1,63],39:gt}),f([22,37,38,39],[2,29]),{30:[2,32]},f(_t,[2,10]),f(A,[2,12]),f(A,[2,39]),f(A,[2,40]),f(St,[2,25],{36:65,39:gt}),f(St,[2,26]),f([22,37,39],[2,30]),f(St,[2,31]),f(St,[2,27])],defaultActions:{5:[2,41],7:[2,2],24:[2,44],39:[2,43],45:[2,28],53:[2,23],56:[2,32]},parseError:function(Q,ht){if(!ht.recoverable){var $=new Error(Q);throw $.hash=ht,$}this.trace(Q)},parse:function(Q){var ht=this,$=[0],kt=[],W=[null],At=[],Nt=this.table,Gt="",xe=0,Ge=0,Te=0,ye=2,ke=1,Me=At.slice.call(arguments,1),Oe=Object.create(this.lexer),we={yy:{}};for(var Sr in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Sr)&&(we.yy[Sr]=this.yy[Sr]);Oe.setInput(Q,we.yy),we.yy.lexer=Oe,we.yy.parser=this,Oe.yylloc===void 0&&(Oe.yylloc={});var _e=Oe.yylloc;At.push(_e);var er=Oe.options&&Oe.options.ranges;function oe(){var Ze;return typeof(Ze=kt.pop()||Oe.lex()||ke)!="number"&&(Ze instanceof Array&&(Ze=(kt=Ze).pop()),Ze=ht.symbols_[Ze]||Ze),Ze}typeof we.yy.parseError=="function"?this.parseError=we.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var ee,he,Mt,ie,pt,wt,xt,Rt,me,Pe={};;){if(Mt=$[$.length-1],this.defaultActions[Mt]?ie=this.defaultActions[Mt]:(ee==null&&(ee=oe()),ie=Nt[Mt]&&Nt[Mt][ee]),ie===void 0||!ie.length||!ie[0]){var ar="";for(wt in me=[],Nt[Mt])this.terminals_[wt]&&wt>ye&&me.push("'"+this.terminals_[wt]+"'");ar=Oe.showPosition?"Parse error on line "+(xe+1)+`: +`+Oe.showPosition()+` +Expecting `+me.join(", ")+", got '"+(this.terminals_[ee]||ee)+"'":"Parse error on line "+(xe+1)+": Unexpected "+(ee==ke?"end of input":"'"+(this.terminals_[ee]||ee)+"'"),this.parseError(ar,{text:Oe.match,token:this.terminals_[ee]||ee,line:Oe.yylineno,loc:_e,expected:me})}if(ie[0]instanceof Array&&ie.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Mt+", token: "+ee);switch(ie[0]){case 1:$.push(ee),W.push(Oe.yytext),At.push(Oe.yylloc),$.push(ie[1]),ee=null,he?(ee=he,he=null):(Ge=Oe.yyleng,Gt=Oe.yytext,xe=Oe.yylineno,_e=Oe.yylloc,Te>0);break;case 2:if(xt=this.productions_[ie[1]][1],Pe.$=W[W.length-xt],Pe._$={first_line:At[At.length-(xt||1)].first_line,last_line:At[At.length-1].last_line,first_column:At[At.length-(xt||1)].first_column,last_column:At[At.length-1].last_column},er&&(Pe._$.range=[At[At.length-(xt||1)].range[0],At[At.length-1].range[1]]),(pt=this.performAction.apply(Pe,[Gt,Ge,xe,we.yy,ie[1],W,At].concat(Me)))!==void 0)return pt;xt&&($=$.slice(0,-1*xt*2),W=W.slice(0,-1*xt),At=At.slice(0,-1*xt)),$.push(this.productions_[ie[1]][0]),W.push(Pe.$),At.push(Pe._$),Rt=Nt[$[$.length-2]][$[$.length-1]],$.push(Rt);break;case 3:return!0}}return!0}},vt={EOF:1,parseError:function(Q,ht){if(!this.yy.parser)throw new Error(Q);this.yy.parser.parseError(Q,ht)},setInput:function(Q,ht){return this.yy=ht||this.yy||{},this._input=Q,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var Q=this._input[0];return this.yytext+=Q,this.yyleng++,this.offset++,this.match+=Q,this.matched+=Q,Q.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),Q},unput:function(Q){var ht=Q.length,$=Q.split(/(?:\r\n?|\n)/g);this._input=Q+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-ht),this.offset-=ht;var kt=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),$.length-1&&(this.yylineno-=$.length-1);var W=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:$?($.length===kt.length?this.yylloc.first_column:0)+kt[kt.length-$.length].length-$[0].length:this.yylloc.first_column-ht},this.options.ranges&&(this.yylloc.range=[W[0],W[0]+this.yyleng-ht]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). +`+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(Q){this.unput(this.match.slice(Q))},pastInput:function(){var Q=this.matched.substr(0,this.matched.length-this.match.length);return(Q.length>20?"...":"")+Q.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var Q=this.match;return Q.length<20&&(Q+=this._input.substr(0,20-Q.length)),(Q.substr(0,20)+(Q.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var Q=this.pastInput(),ht=new Array(Q.length+1).join("-");return Q+this.upcomingInput()+` +`+ht+"^"},test_match:function(Q,ht){var $,kt,W;if(this.options.backtrack_lexer&&(W={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(W.yylloc.range=this.yylloc.range.slice(0))),(kt=Q[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=kt.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:kt?kt[kt.length-1].length-kt[kt.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+Q[0].length},this.yytext+=Q[0],this.match+=Q[0],this.matches=Q,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(Q[0].length),this.matched+=Q[0],$=this.performAction.call(this,this.yy,this,ht,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),$)return $;if(this._backtrack){for(var At in W)this[At]=W[At];return!1}return!1},next:function(){if(this.done)return this.EOF;var Q,ht,$,kt;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var W=this._currentRules(),At=0;Atht[0].length)){if(ht=$,kt=At,this.options.backtrack_lexer){if((Q=this.test_match($,W[At]))!==!1)return Q;if(this._backtrack){ht=!1;continue}return!1}if(!this.options.flex)break}return ht?(Q=this.test_match(ht,W[kt]))!==!1&&Q:this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text. +`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){return this.next()||this.lex()},begin:function(Q){this.conditionStack.push(Q)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(Q){return(Q=this.conditionStack.length-1-Math.abs(Q||0))>=0?this.conditionStack[Q]:"INITIAL"},pushState:function(Q){this.begin(Q)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(Q,ht,$,kt){switch($){case 0:return this.begin("acc_title"),25;case 1:return this.popState(),"acc_title_value";case 2:return this.begin("acc_descr"),27;case 3:return this.popState(),"acc_descr_value";case 4:this.begin("acc_descr_multiline");break;case 5:this.popState();break;case 6:return"acc_descr_multiline_value";case 7:return this.begin("open_directive"),49;case 8:return this.begin("type_directive"),50;case 9:return this.popState(),this.begin("arg_directive"),15;case 10:return this.popState(),this.popState(),52;case 11:return 51;case 12:case 13:case 15:case 20:case 25:break;case 14:return 11;case 16:return 9;case 17:return 48;case 18:return 4;case 19:return this.begin("block"),20;case 21:return 38;case 22:case 23:return 37;case 24:return 39;case 26:return this.popState(),22;case 27:case 40:return ht.yytext[0];case 28:case 32:return 42;case 29:case 33:return 43;case 30:case 34:return 44;case 31:return 45;case 35:case 37:case 38:return 46;case 36:return 47;case 39:return 30;case 41:return 6}},rules:[/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:%%\{)/i,/^(?:((?:(?!\}%%)[^:.])*))/i,/^(?::)/i,/^(?:\}%%)/i,/^(?:((?:(?!\}%%).|\n)*))/i,/^(?:%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:[\s]+)/i,/^(?:"[^"]*")/i,/^(?:erDiagram\b)/i,/^(?:\{)/i,/^(?:\s+)/i,/^(?:\b((?:PK)|(?:FK))\b)/i,/^(?:(.*?)[~](.*?)*[~])/i,/^(?:[A-Za-z][A-Za-z0-9\-_\[\]]*)/i,/^(?:"[^"]*")/i,/^(?:[\n]+)/i,/^(?:\})/i,/^(?:.)/i,/^(?:\|o\b)/i,/^(?:\}o\b)/i,/^(?:\}\|)/i,/^(?:\|\|)/i,/^(?:o\|)/i,/^(?:o\{)/i,/^(?:\|\{)/i,/^(?:\.\.)/i,/^(?:--)/i,/^(?:\.-)/i,/^(?:-\.)/i,/^(?:[A-Za-z][A-Za-z0-9\-_]*)/i,/^(?:.)/i,/^(?:$)/i],conditions:{acc_descr_multiline:{rules:[5,6],inclusive:!1},acc_descr:{rules:[3],inclusive:!1},acc_title:{rules:[1],inclusive:!1},open_directive:{rules:[8],inclusive:!1},type_directive:{rules:[9,10],inclusive:!1},arg_directive:{rules:[10,11],inclusive:!1},block:{rules:[20,21,22,23,24,25,26,27],inclusive:!1},INITIAL:{rules:[0,2,4,7,12,13,14,15,16,17,18,19,28,29,30,31,32,33,34,35,36,37,38,39,40,41],inclusive:!0}}};function ft(){this.yy={}}return Ct.lexer=vt,ft.prototype=Ct,Ct.Parser=ft,new ft}();b.parser=m,b.Parser=m.Parser,b.parse=function(){return m.parse.apply(m,arguments)},b.main=function(f){f[1]||(console.log("Usage: "+f[0]+" FILE"),process.exit(1));var v=h(8009).readFileSync(h(6470).normalize(f[1]),"utf8");return b.parser.parse(v)},h.c[h.s]===d&&b.main(process.argv.slice(1))},3602:(d,b,h)=>{d=h.nmd(d);var m=function(){var f=function(sr,Qr,cr,or){for(cr=cr||{},or=sr.length;or--;cr[sr[or]]=Qr);return cr},v=[1,9],_=[1,7],A=[1,6],M=[1,8],T=[1,20,21,22,23,38,44,46,48,52,66,67,86,87,88,89,90,91,95,105,106,109,111,112,118,119,120,121,122,123,124,125,126,127],O=[2,10],B=[1,20],z=[1,21],q=[1,22],J=[1,23],rt=[1,30],ut=[1,32],Z=[1,33],mt=[1,34],nt=[1,62],at=[1,48],_t=[1,52],jt=[1,36],St=[1,37],gt=[1,38],Ct=[1,39],vt=[1,40],ft=[1,56],Q=[1,63],ht=[1,51],$=[1,53],kt=[1,55],W=[1,59],At=[1,60],Nt=[1,41],Gt=[1,42],xe=[1,43],Ge=[1,44],Te=[1,61],ye=[1,50],ke=[1,54],Me=[1,57],Oe=[1,58],we=[1,49],Sr=[1,66],_e=[1,71],er=[1,20,21,22,23,38,42,44,46,48,52,66,67,86,87,88,89,90,91,95,105,106,109,111,112,118,119,120,121,122,123,124,125,126,127],oe=[1,75],ee=[1,74],he=[1,76],Mt=[20,21,23,81,82],ie=[1,99],pt=[1,104],wt=[1,107],xt=[1,108],Rt=[1,101],me=[1,106],Pe=[1,109],ar=[1,102],Ze=[1,114],ur=[1,113],ze=[1,103],Ce=[1,105],Be=[1,110],Fe=[1,111],be=[1,112],se=[1,115],Lr=[20,21,22,23,81,82],Ue=[20,21,22,23,53,81,82],dr=[20,21,22,23,40,52,53,55,57,59,61,63,65,66,67,69,71,73,74,76,81,82,91,95,105,106,109,111,112,122,123,124,125,126,127],qe=[20,21,23],gr=[20,21,23,52,66,67,81,82,91,95,105,106,109,111,112,122,123,124,125,126,127],rn=[1,12,20,21,22,23,24,38,42,44,46,48,52,66,67,86,87,88,89,90,91,95,105,106,109,111,112,118,119,120,121,122,123,124,125,126,127],Dr=[52,66,67,91,95,105,106,109,111,112,122,123,124,125,126,127],Ar=[1,149],De=[1,157],rr=[1,158],Qe=[1,159],Ie=[1,160],vr=[1,144],Ot=[1,145],kn=[1,141],Vt=[1,152],qr=[1,153],zr=[1,154],Zr=[1,155],Mr=[1,156],Xr=[1,161],Pr=[1,162],Cr=[1,147],Ur=[1,150],Yr=[1,146],jr=[1,143],ya=[20,21,22,23,38,42,44,46,48,52,66,67,86,87,88,89,90,91,95,105,106,109,111,112,118,119,120,121,122,123,124,125,126,127],On=[1,165],Cn=[20,21,22,23,26,52,66,67,91,105,106,109,111,112,122,123,124,125,126,127],Ir=[20,21,22,23,24,26,38,40,41,42,52,56,58,60,62,64,66,67,68,70,72,73,75,77,81,82,86,87,88,89,90,91,92,95,105,106,109,111,112,113,114,122,123,124,125,126,127],ui=[12,21,22,24],Or=[22,106],En=[1,250],Ln=[1,245],vn=[1,246],Zn=[1,254],Bt=[1,251],Mn=[1,248],Rn=[1,247],Kr=[1,249],ti=[1,252],Wn=[1,253],Un=[1,255],ei=[1,273],Ta=[20,21,23,106],dn=[20,21,22,23,66,67,86,102,105,106,109,110,111,112,113],aa={trace:function(){},yy:{},symbols_:{error:2,start:3,mermaidDoc:4,directive:5,openDirective:6,typeDirective:7,closeDirective:8,separator:9,":":10,argDirective:11,open_directive:12,type_directive:13,arg_directive:14,close_directive:15,graphConfig:16,document:17,line:18,statement:19,SEMI:20,NEWLINE:21,SPACE:22,EOF:23,GRAPH:24,NODIR:25,DIR:26,FirstStmtSeperator:27,ending:28,endToken:29,spaceList:30,spaceListNewline:31,verticeStatement:32,styleStatement:33,linkStyleStatement:34,classDefStatement:35,classStatement:36,clickStatement:37,subgraph:38,text:39,SQS:40,SQE:41,end:42,direction:43,acc_title:44,acc_title_value:45,acc_descr:46,acc_descr_value:47,acc_descr_multiline_value:48,link:49,node:50,vertex:51,AMP:52,STYLE_SEPARATOR:53,idString:54,DOUBLECIRCLESTART:55,DOUBLECIRCLEEND:56,PS:57,PE:58,"(-":59,"-)":60,STADIUMSTART:61,STADIUMEND:62,SUBROUTINESTART:63,SUBROUTINEEND:64,VERTEX_WITH_PROPS_START:65,ALPHA:66,COLON:67,PIPE:68,CYLINDERSTART:69,CYLINDEREND:70,DIAMOND_START:71,DIAMOND_STOP:72,TAGEND:73,TRAPSTART:74,TRAPEND:75,INVTRAPSTART:76,INVTRAPEND:77,linkStatement:78,arrowText:79,TESTSTR:80,START_LINK:81,LINK:82,textToken:83,STR:84,keywords:85,STYLE:86,LINKSTYLE:87,CLASSDEF:88,CLASS:89,CLICK:90,DOWN:91,UP:92,textNoTags:93,textNoTagsToken:94,DEFAULT:95,stylesOpt:96,alphaNum:97,CALLBACKNAME:98,CALLBACKARGS:99,HREF:100,LINK_TARGET:101,HEX:102,numList:103,INTERPOLATE:104,NUM:105,COMMA:106,style:107,styleComponent:108,MINUS:109,UNIT:110,BRKT:111,DOT:112,PCT:113,TAGSTART:114,alphaNumToken:115,idStringToken:116,alphaNumStatement:117,direction_tb:118,direction_bt:119,direction_rl:120,direction_lr:121,PUNCTUATION:122,UNICODE_TEXT:123,PLUS:124,EQUALS:125,MULT:126,UNDERSCORE:127,graphCodeTokens:128,ARROW_CROSS:129,ARROW_POINT:130,ARROW_CIRCLE:131,ARROW_OPEN:132,QUOTE:133,$accept:0,$end:1},terminals_:{2:"error",10:":",12:"open_directive",13:"type_directive",14:"arg_directive",15:"close_directive",20:"SEMI",21:"NEWLINE",22:"SPACE",23:"EOF",24:"GRAPH",25:"NODIR",26:"DIR",38:"subgraph",40:"SQS",41:"SQE",42:"end",44:"acc_title",45:"acc_title_value",46:"acc_descr",47:"acc_descr_value",48:"acc_descr_multiline_value",52:"AMP",53:"STYLE_SEPARATOR",55:"DOUBLECIRCLESTART",56:"DOUBLECIRCLEEND",57:"PS",58:"PE",59:"(-",60:"-)",61:"STADIUMSTART",62:"STADIUMEND",63:"SUBROUTINESTART",64:"SUBROUTINEEND",65:"VERTEX_WITH_PROPS_START",66:"ALPHA",67:"COLON",68:"PIPE",69:"CYLINDERSTART",70:"CYLINDEREND",71:"DIAMOND_START",72:"DIAMOND_STOP",73:"TAGEND",74:"TRAPSTART",75:"TRAPEND",76:"INVTRAPSTART",77:"INVTRAPEND",80:"TESTSTR",81:"START_LINK",82:"LINK",84:"STR",86:"STYLE",87:"LINKSTYLE",88:"CLASSDEF",89:"CLASS",90:"CLICK",91:"DOWN",92:"UP",95:"DEFAULT",98:"CALLBACKNAME",99:"CALLBACKARGS",100:"HREF",101:"LINK_TARGET",102:"HEX",104:"INTERPOLATE",105:"NUM",106:"COMMA",109:"MINUS",110:"UNIT",111:"BRKT",112:"DOT",113:"PCT",114:"TAGSTART",118:"direction_tb",119:"direction_bt",120:"direction_rl",121:"direction_lr",122:"PUNCTUATION",123:"UNICODE_TEXT",124:"PLUS",125:"EQUALS",126:"MULT",127:"UNDERSCORE",129:"ARROW_CROSS",130:"ARROW_POINT",131:"ARROW_CIRCLE",132:"ARROW_OPEN",133:"QUOTE"},productions_:[0,[3,1],[3,2],[5,4],[5,6],[6,1],[7,1],[11,1],[8,1],[4,2],[17,0],[17,2],[18,1],[18,1],[18,1],[18,1],[18,1],[16,2],[16,2],[16,2],[16,3],[28,2],[28,1],[29,1],[29,1],[29,1],[27,1],[27,1],[27,2],[31,2],[31,2],[31,1],[31,1],[30,2],[30,1],[19,2],[19,2],[19,2],[19,2],[19,2],[19,2],[19,9],[19,6],[19,4],[19,1],[19,2],[19,2],[19,1],[9,1],[9,1],[9,1],[32,3],[32,4],[32,2],[32,1],[50,1],[50,5],[50,3],[51,4],[51,4],[51,6],[51,4],[51,4],[51,4],[51,8],[51,4],[51,4],[51,4],[51,6],[51,4],[51,4],[51,4],[51,4],[51,4],[51,1],[49,2],[49,3],[49,3],[49,1],[49,3],[78,1],[79,3],[39,1],[39,2],[39,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[93,1],[93,2],[35,5],[35,5],[36,5],[37,2],[37,4],[37,3],[37,5],[37,2],[37,4],[37,4],[37,6],[37,2],[37,4],[37,2],[37,4],[37,4],[37,6],[33,5],[33,5],[34,5],[34,5],[34,9],[34,9],[34,7],[34,7],[103,1],[103,3],[96,1],[96,3],[107,1],[107,2],[108,1],[108,1],[108,1],[108,1],[108,1],[108,1],[108,1],[108,1],[108,1],[108,1],[108,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[94,1],[94,1],[94,1],[94,1],[54,1],[54,2],[97,1],[97,2],[117,1],[117,1],[117,1],[117,1],[43,1],[43,1],[43,1],[43,1],[115,1],[115,1],[115,1],[115,1],[115,1],[115,1],[115,1],[115,1],[115,1],[115,1],[115,1],[115,1],[115,1],[116,1],[116,1],[116,1],[116,1],[116,1],[116,1],[116,1],[116,1],[116,1],[116,1],[116,1],[116,1],[116,1],[116,1],[116,1],[116,1],[128,1],[128,1],[128,1],[128,1],[128,1],[128,1],[128,1],[128,1],[128,1],[128,1],[128,1],[128,1],[128,1],[128,1],[128,1],[128,1],[128,1],[128,1],[128,1],[128,1],[128,1],[128,1],[128,1],[128,1],[128,1],[128,1]],performAction:function(sr,Qr,cr,or,on,Kt,Ai){var re=Kt.length-1;switch(on){case 5:or.parseDirective("%%{","open_directive");break;case 6:or.parseDirective(Kt[re],"type_directive");break;case 7:Kt[re]=Kt[re].trim().replace(/'/g,'"'),or.parseDirective(Kt[re],"arg_directive");break;case 8:or.parseDirective("}%%","close_directive","flowchart");break;case 10:case 36:case 37:case 38:case 39:case 40:this.$=[];break;case 11:Kt[re]!==[]&&Kt[re-1].push(Kt[re]),this.$=Kt[re-1];break;case 12:case 82:case 84:case 96:case 152:case 154:case 155:case 78:case 150:this.$=Kt[re];break;case 19:or.setDirection("TB"),this.$="TB";break;case 20:or.setDirection(Kt[re-1]),this.$=Kt[re-1];break;case 35:this.$=Kt[re-1].nodes;break;case 41:this.$=or.addSubGraph(Kt[re-6],Kt[re-1],Kt[re-4]);break;case 42:this.$=or.addSubGraph(Kt[re-3],Kt[re-1],Kt[re-3]);break;case 43:this.$=or.addSubGraph(void 0,Kt[re-1],void 0);break;case 45:this.$=Kt[re].trim(),or.setAccTitle(this.$);break;case 46:case 47:this.$=Kt[re].trim(),or.setAccDescription(this.$);break;case 51:or.addLink(Kt[re-2].stmt,Kt[re],Kt[re-1]),this.$={stmt:Kt[re],nodes:Kt[re].concat(Kt[re-2].nodes)};break;case 52:or.addLink(Kt[re-3].stmt,Kt[re-1],Kt[re-2]),this.$={stmt:Kt[re-1],nodes:Kt[re-1].concat(Kt[re-3].nodes)};break;case 53:this.$={stmt:Kt[re-1],nodes:Kt[re-1]};break;case 54:this.$={stmt:Kt[re],nodes:Kt[re]};break;case 55:case 123:case 125:this.$=[Kt[re]];break;case 56:this.$=Kt[re-4].concat(Kt[re]);break;case 57:this.$=[Kt[re-2]],or.setClass(Kt[re-2],Kt[re]);break;case 58:this.$=Kt[re-3],or.addVertex(Kt[re-3],Kt[re-1],"square");break;case 59:this.$=Kt[re-3],or.addVertex(Kt[re-3],Kt[re-1],"doublecircle");break;case 60:this.$=Kt[re-5],or.addVertex(Kt[re-5],Kt[re-2],"circle");break;case 61:this.$=Kt[re-3],or.addVertex(Kt[re-3],Kt[re-1],"ellipse");break;case 62:this.$=Kt[re-3],or.addVertex(Kt[re-3],Kt[re-1],"stadium");break;case 63:this.$=Kt[re-3],or.addVertex(Kt[re-3],Kt[re-1],"subroutine");break;case 64:this.$=Kt[re-7],or.addVertex(Kt[re-7],Kt[re-1],"rect",void 0,void 0,void 0,Object.fromEntries([[Kt[re-5],Kt[re-3]]]));break;case 65:this.$=Kt[re-3],or.addVertex(Kt[re-3],Kt[re-1],"cylinder");break;case 66:this.$=Kt[re-3],or.addVertex(Kt[re-3],Kt[re-1],"round");break;case 67:this.$=Kt[re-3],or.addVertex(Kt[re-3],Kt[re-1],"diamond");break;case 68:this.$=Kt[re-5],or.addVertex(Kt[re-5],Kt[re-2],"hexagon");break;case 69:this.$=Kt[re-3],or.addVertex(Kt[re-3],Kt[re-1],"odd");break;case 70:this.$=Kt[re-3],or.addVertex(Kt[re-3],Kt[re-1],"trapezoid");break;case 71:this.$=Kt[re-3],or.addVertex(Kt[re-3],Kt[re-1],"inv_trapezoid");break;case 72:this.$=Kt[re-3],or.addVertex(Kt[re-3],Kt[re-1],"lean_right");break;case 73:this.$=Kt[re-3],or.addVertex(Kt[re-3],Kt[re-1],"lean_left");break;case 74:this.$=Kt[re],or.addVertex(Kt[re]);break;case 75:Kt[re-1].text=Kt[re],this.$=Kt[re-1];break;case 76:case 77:Kt[re-2].text=Kt[re-1],this.$=Kt[re-2];break;case 79:var Tn=or.destructLink(Kt[re],Kt[re-2]);this.$={type:Tn.type,stroke:Tn.stroke,length:Tn.length,text:Kt[re-1]};break;case 80:Tn=or.destructLink(Kt[re]),this.$={type:Tn.type,stroke:Tn.stroke,length:Tn.length};break;case 81:this.$=Kt[re-1];break;case 83:case 97:case 153:case 151:this.$=Kt[re-1]+""+Kt[re];break;case 98:case 99:this.$=Kt[re-4],or.addClass(Kt[re-2],Kt[re]);break;case 100:this.$=Kt[re-4],or.setClass(Kt[re-2],Kt[re]);break;case 101:case 109:this.$=Kt[re-1],or.setClickEvent(Kt[re-1],Kt[re]);break;case 102:case 110:this.$=Kt[re-3],or.setClickEvent(Kt[re-3],Kt[re-2]),or.setTooltip(Kt[re-3],Kt[re]);break;case 103:this.$=Kt[re-2],or.setClickEvent(Kt[re-2],Kt[re-1],Kt[re]);break;case 104:this.$=Kt[re-4],or.setClickEvent(Kt[re-4],Kt[re-3],Kt[re-2]),or.setTooltip(Kt[re-4],Kt[re]);break;case 105:case 111:this.$=Kt[re-1],or.setLink(Kt[re-1],Kt[re]);break;case 106:case 112:this.$=Kt[re-3],or.setLink(Kt[re-3],Kt[re-2]),or.setTooltip(Kt[re-3],Kt[re]);break;case 107:case 113:this.$=Kt[re-3],or.setLink(Kt[re-3],Kt[re-2],Kt[re]);break;case 108:case 114:this.$=Kt[re-5],or.setLink(Kt[re-5],Kt[re-4],Kt[re]),or.setTooltip(Kt[re-5],Kt[re-2]);break;case 115:this.$=Kt[re-4],or.addVertex(Kt[re-2],void 0,void 0,Kt[re]);break;case 116:case 118:this.$=Kt[re-4],or.updateLink(Kt[re-2],Kt[re]);break;case 117:this.$=Kt[re-4],or.updateLink([Kt[re-2]],Kt[re]);break;case 119:this.$=Kt[re-8],or.updateLinkInterpolate([Kt[re-6]],Kt[re-2]),or.updateLink([Kt[re-6]],Kt[re]);break;case 120:this.$=Kt[re-8],or.updateLinkInterpolate(Kt[re-6],Kt[re-2]),or.updateLink(Kt[re-6],Kt[re]);break;case 121:this.$=Kt[re-6],or.updateLinkInterpolate([Kt[re-4]],Kt[re]);break;case 122:this.$=Kt[re-6],or.updateLinkInterpolate(Kt[re-4],Kt[re]);break;case 124:case 126:Kt[re-2].push(Kt[re]),this.$=Kt[re-2];break;case 128:this.$=Kt[re-1]+Kt[re];break;case 156:this.$="v";break;case 157:this.$="-";break;case 158:this.$={stmt:"dir",value:"TB"};break;case 159:this.$={stmt:"dir",value:"BT"};break;case 160:this.$={stmt:"dir",value:"RL"};break;case 161:this.$={stmt:"dir",value:"LR"}}},table:[{3:1,4:2,5:3,6:5,12:v,16:4,21:_,22:A,24:M},{1:[3]},{1:[2,1]},{3:10,4:2,5:3,6:5,12:v,16:4,21:_,22:A,24:M},f(T,O,{17:11}),{7:12,13:[1,13]},{16:14,21:_,22:A,24:M},{16:15,21:_,22:A,24:M},{25:[1,16],26:[1,17]},{13:[2,5]},{1:[2,2]},{1:[2,9],18:18,19:19,20:B,21:z,22:q,23:J,32:24,33:25,34:26,35:27,36:28,37:29,38:rt,43:31,44:ut,46:Z,48:mt,50:35,51:45,52:nt,54:46,66:at,67:_t,86:jt,87:St,88:gt,89:Ct,90:vt,91:ft,95:Q,105:ht,106:$,109:kt,111:W,112:At,116:47,118:Nt,119:Gt,120:xe,121:Ge,122:Te,123:ye,124:ke,125:Me,126:Oe,127:we},{8:64,10:[1,65],15:Sr},f([10,15],[2,6]),f(T,[2,17]),f(T,[2,18]),f(T,[2,19]),{20:[1,68],21:[1,69],22:_e,27:67,30:70},f(er,[2,11]),f(er,[2,12]),f(er,[2,13]),f(er,[2,14]),f(er,[2,15]),f(er,[2,16]),{9:72,20:oe,21:ee,23:he,49:73,78:77,81:[1,78],82:[1,79]},{9:80,20:oe,21:ee,23:he},{9:81,20:oe,21:ee,23:he},{9:82,20:oe,21:ee,23:he},{9:83,20:oe,21:ee,23:he},{9:84,20:oe,21:ee,23:he},{9:86,20:oe,21:ee,22:[1,85],23:he},f(er,[2,44]),{45:[1,87]},{47:[1,88]},f(er,[2,47]),f(Mt,[2,54],{30:89,22:_e}),{22:[1,90]},{22:[1,91]},{22:[1,92]},{22:[1,93]},{26:ie,52:pt,66:wt,67:xt,84:[1,97],91:Rt,97:96,98:[1,94],100:[1,95],105:me,106:Pe,109:ar,111:Ze,112:ur,115:100,117:98,122:ze,123:Ce,124:Be,125:Fe,126:be,127:se},f(er,[2,158]),f(er,[2,159]),f(er,[2,160]),f(er,[2,161]),f(Lr,[2,55],{53:[1,116]}),f(Ue,[2,74],{116:129,40:[1,117],52:nt,55:[1,118],57:[1,119],59:[1,120],61:[1,121],63:[1,122],65:[1,123],66:at,67:_t,69:[1,124],71:[1,125],73:[1,126],74:[1,127],76:[1,128],91:ft,95:Q,105:ht,106:$,109:kt,111:W,112:At,122:Te,123:ye,124:ke,125:Me,126:Oe,127:we}),f(dr,[2,150]),f(dr,[2,175]),f(dr,[2,176]),f(dr,[2,177]),f(dr,[2,178]),f(dr,[2,179]),f(dr,[2,180]),f(dr,[2,181]),f(dr,[2,182]),f(dr,[2,183]),f(dr,[2,184]),f(dr,[2,185]),f(dr,[2,186]),f(dr,[2,187]),f(dr,[2,188]),f(dr,[2,189]),f(dr,[2,190]),{9:130,20:oe,21:ee,23:he},{11:131,14:[1,132]},f(qe,[2,8]),f(T,[2,20]),f(T,[2,26]),f(T,[2,27]),{21:[1,133]},f(gr,[2,34],{30:134,22:_e}),f(er,[2,35]),{50:135,51:45,52:nt,54:46,66:at,67:_t,91:ft,95:Q,105:ht,106:$,109:kt,111:W,112:At,116:47,122:Te,123:ye,124:ke,125:Me,126:Oe,127:we},f(rn,[2,48]),f(rn,[2,49]),f(rn,[2,50]),f(Dr,[2,78],{79:136,68:[1,138],80:[1,137]}),{22:Ar,24:De,26:rr,38:Qe,39:139,42:Ie,52:pt,66:wt,67:xt,73:vr,81:Ot,83:140,84:kn,85:151,86:Vt,87:qr,88:zr,89:Zr,90:Mr,91:Xr,92:Pr,94:142,95:Cr,105:me,106:Pe,109:Ur,111:Ze,112:ur,113:Yr,114:jr,115:148,122:ze,123:Ce,124:Be,125:Fe,126:be,127:se},f([52,66,67,68,80,91,95,105,106,109,111,112,122,123,124,125,126,127],[2,80]),f(er,[2,36]),f(er,[2,37]),f(er,[2,38]),f(er,[2,39]),f(er,[2,40]),{22:Ar,24:De,26:rr,38:Qe,39:163,42:Ie,52:pt,66:wt,67:xt,73:vr,81:Ot,83:140,84:kn,85:151,86:Vt,87:qr,88:zr,89:Zr,90:Mr,91:Xr,92:Pr,94:142,95:Cr,105:me,106:Pe,109:Ur,111:Ze,112:ur,113:Yr,114:jr,115:148,122:ze,123:Ce,124:Be,125:Fe,126:be,127:se},f(ya,O,{17:164}),f(er,[2,45]),f(er,[2,46]),f(Mt,[2,53],{52:On}),{26:ie,52:pt,66:wt,67:xt,91:Rt,97:166,102:[1,167],105:me,106:Pe,109:ar,111:Ze,112:ur,115:100,117:98,122:ze,123:Ce,124:Be,125:Fe,126:be,127:se},{95:[1,168],103:169,105:[1,170]},{26:ie,52:pt,66:wt,67:xt,91:Rt,95:[1,171],97:172,105:me,106:Pe,109:ar,111:Ze,112:ur,115:100,117:98,122:ze,123:Ce,124:Be,125:Fe,126:be,127:se},{26:ie,52:pt,66:wt,67:xt,91:Rt,97:173,105:me,106:Pe,109:ar,111:Ze,112:ur,115:100,117:98,122:ze,123:Ce,124:Be,125:Fe,126:be,127:se},f(qe,[2,101],{22:[1,174],99:[1,175]}),f(qe,[2,105],{22:[1,176]}),f(qe,[2,109],{115:100,117:178,22:[1,177],26:ie,52:pt,66:wt,67:xt,91:Rt,105:me,106:Pe,109:ar,111:Ze,112:ur,122:ze,123:Ce,124:Be,125:Fe,126:be,127:se}),f(qe,[2,111],{22:[1,179]}),f(Cn,[2,152]),f(Cn,[2,154]),f(Cn,[2,155]),f(Cn,[2,156]),f(Cn,[2,157]),f(Ir,[2,162]),f(Ir,[2,163]),f(Ir,[2,164]),f(Ir,[2,165]),f(Ir,[2,166]),f(Ir,[2,167]),f(Ir,[2,168]),f(Ir,[2,169]),f(Ir,[2,170]),f(Ir,[2,171]),f(Ir,[2,172]),f(Ir,[2,173]),f(Ir,[2,174]),{52:nt,54:180,66:at,67:_t,91:ft,95:Q,105:ht,106:$,109:kt,111:W,112:At,116:47,122:Te,123:ye,124:ke,125:Me,126:Oe,127:we},{22:Ar,24:De,26:rr,38:Qe,39:181,42:Ie,52:pt,66:wt,67:xt,73:vr,81:Ot,83:140,84:kn,85:151,86:Vt,87:qr,88:zr,89:Zr,90:Mr,91:Xr,92:Pr,94:142,95:Cr,105:me,106:Pe,109:Ur,111:Ze,112:ur,113:Yr,114:jr,115:148,122:ze,123:Ce,124:Be,125:Fe,126:be,127:se},{22:Ar,24:De,26:rr,38:Qe,39:182,42:Ie,52:pt,66:wt,67:xt,73:vr,81:Ot,83:140,84:kn,85:151,86:Vt,87:qr,88:zr,89:Zr,90:Mr,91:Xr,92:Pr,94:142,95:Cr,105:me,106:Pe,109:Ur,111:Ze,112:ur,113:Yr,114:jr,115:148,122:ze,123:Ce,124:Be,125:Fe,126:be,127:se},{22:Ar,24:De,26:rr,38:Qe,39:184,42:Ie,52:pt,57:[1,183],66:wt,67:xt,73:vr,81:Ot,83:140,84:kn,85:151,86:Vt,87:qr,88:zr,89:Zr,90:Mr,91:Xr,92:Pr,94:142,95:Cr,105:me,106:Pe,109:Ur,111:Ze,112:ur,113:Yr,114:jr,115:148,122:ze,123:Ce,124:Be,125:Fe,126:be,127:se},{22:Ar,24:De,26:rr,38:Qe,39:185,42:Ie,52:pt,66:wt,67:xt,73:vr,81:Ot,83:140,84:kn,85:151,86:Vt,87:qr,88:zr,89:Zr,90:Mr,91:Xr,92:Pr,94:142,95:Cr,105:me,106:Pe,109:Ur,111:Ze,112:ur,113:Yr,114:jr,115:148,122:ze,123:Ce,124:Be,125:Fe,126:be,127:se},{22:Ar,24:De,26:rr,38:Qe,39:186,42:Ie,52:pt,66:wt,67:xt,73:vr,81:Ot,83:140,84:kn,85:151,86:Vt,87:qr,88:zr,89:Zr,90:Mr,91:Xr,92:Pr,94:142,95:Cr,105:me,106:Pe,109:Ur,111:Ze,112:ur,113:Yr,114:jr,115:148,122:ze,123:Ce,124:Be,125:Fe,126:be,127:se},{22:Ar,24:De,26:rr,38:Qe,39:187,42:Ie,52:pt,66:wt,67:xt,73:vr,81:Ot,83:140,84:kn,85:151,86:Vt,87:qr,88:zr,89:Zr,90:Mr,91:Xr,92:Pr,94:142,95:Cr,105:me,106:Pe,109:Ur,111:Ze,112:ur,113:Yr,114:jr,115:148,122:ze,123:Ce,124:Be,125:Fe,126:be,127:se},{66:[1,188]},{22:Ar,24:De,26:rr,38:Qe,39:189,42:Ie,52:pt,66:wt,67:xt,73:vr,81:Ot,83:140,84:kn,85:151,86:Vt,87:qr,88:zr,89:Zr,90:Mr,91:Xr,92:Pr,94:142,95:Cr,105:me,106:Pe,109:Ur,111:Ze,112:ur,113:Yr,114:jr,115:148,122:ze,123:Ce,124:Be,125:Fe,126:be,127:se},{22:Ar,24:De,26:rr,38:Qe,39:190,42:Ie,52:pt,66:wt,67:xt,71:[1,191],73:vr,81:Ot,83:140,84:kn,85:151,86:Vt,87:qr,88:zr,89:Zr,90:Mr,91:Xr,92:Pr,94:142,95:Cr,105:me,106:Pe,109:Ur,111:Ze,112:ur,113:Yr,114:jr,115:148,122:ze,123:Ce,124:Be,125:Fe,126:be,127:se},{22:Ar,24:De,26:rr,38:Qe,39:192,42:Ie,52:pt,66:wt,67:xt,73:vr,81:Ot,83:140,84:kn,85:151,86:Vt,87:qr,88:zr,89:Zr,90:Mr,91:Xr,92:Pr,94:142,95:Cr,105:me,106:Pe,109:Ur,111:Ze,112:ur,113:Yr,114:jr,115:148,122:ze,123:Ce,124:Be,125:Fe,126:be,127:se},{22:Ar,24:De,26:rr,38:Qe,39:193,42:Ie,52:pt,66:wt,67:xt,73:vr,81:Ot,83:140,84:kn,85:151,86:Vt,87:qr,88:zr,89:Zr,90:Mr,91:Xr,92:Pr,94:142,95:Cr,105:me,106:Pe,109:Ur,111:Ze,112:ur,113:Yr,114:jr,115:148,122:ze,123:Ce,124:Be,125:Fe,126:be,127:se},{22:Ar,24:De,26:rr,38:Qe,39:194,42:Ie,52:pt,66:wt,67:xt,73:vr,81:Ot,83:140,84:kn,85:151,86:Vt,87:qr,88:zr,89:Zr,90:Mr,91:Xr,92:Pr,94:142,95:Cr,105:me,106:Pe,109:Ur,111:Ze,112:ur,113:Yr,114:jr,115:148,122:ze,123:Ce,124:Be,125:Fe,126:be,127:se},f(dr,[2,151]),f(ui,[2,3]),{8:195,15:Sr},{15:[2,7]},f(T,[2,28]),f(gr,[2,33]),f(Mt,[2,51],{30:196,22:_e}),f(Dr,[2,75],{22:[1,197]}),{22:[1,198]},{22:Ar,24:De,26:rr,38:Qe,39:199,42:Ie,52:pt,66:wt,67:xt,73:vr,81:Ot,83:140,84:kn,85:151,86:Vt,87:qr,88:zr,89:Zr,90:Mr,91:Xr,92:Pr,94:142,95:Cr,105:me,106:Pe,109:Ur,111:Ze,112:ur,113:Yr,114:jr,115:148,122:ze,123:Ce,124:Be,125:Fe,126:be,127:se},{22:Ar,24:De,26:rr,38:Qe,42:Ie,52:pt,66:wt,67:xt,73:vr,81:Ot,82:[1,200],83:201,85:151,86:Vt,87:qr,88:zr,89:Zr,90:Mr,91:Xr,92:Pr,94:142,95:Cr,105:me,106:Pe,109:Ur,111:Ze,112:ur,113:Yr,114:jr,115:148,122:ze,123:Ce,124:Be,125:Fe,126:be,127:se},f(Ir,[2,82]),f(Ir,[2,84]),f(Ir,[2,140]),f(Ir,[2,141]),f(Ir,[2,142]),f(Ir,[2,143]),f(Ir,[2,144]),f(Ir,[2,145]),f(Ir,[2,146]),f(Ir,[2,147]),f(Ir,[2,148]),f(Ir,[2,149]),f(Ir,[2,85]),f(Ir,[2,86]),f(Ir,[2,87]),f(Ir,[2,88]),f(Ir,[2,89]),f(Ir,[2,90]),f(Ir,[2,91]),f(Ir,[2,92]),f(Ir,[2,93]),f(Ir,[2,94]),f(Ir,[2,95]),{9:203,20:oe,21:ee,22:Ar,23:he,24:De,26:rr,38:Qe,40:[1,202],42:Ie,52:pt,66:wt,67:xt,73:vr,81:Ot,83:201,85:151,86:Vt,87:qr,88:zr,89:Zr,90:Mr,91:Xr,92:Pr,94:142,95:Cr,105:me,106:Pe,109:Ur,111:Ze,112:ur,113:Yr,114:jr,115:148,122:ze,123:Ce,124:Be,125:Fe,126:be,127:se},{18:18,19:19,20:B,21:z,22:q,23:J,32:24,33:25,34:26,35:27,36:28,37:29,38:rt,42:[1,204],43:31,44:ut,46:Z,48:mt,50:35,51:45,52:nt,54:46,66:at,67:_t,86:jt,87:St,88:gt,89:Ct,90:vt,91:ft,95:Q,105:ht,106:$,109:kt,111:W,112:At,116:47,118:Nt,119:Gt,120:xe,121:Ge,122:Te,123:ye,124:ke,125:Me,126:Oe,127:we},{22:_e,30:205},{22:[1,206],26:ie,52:pt,66:wt,67:xt,91:Rt,105:me,106:Pe,109:ar,111:Ze,112:ur,115:100,117:178,122:ze,123:Ce,124:Be,125:Fe,126:be,127:se},{22:[1,207]},{22:[1,208]},{22:[1,209],106:[1,210]},f(Or,[2,123]),{22:[1,211]},{22:[1,212],26:ie,52:pt,66:wt,67:xt,91:Rt,105:me,106:Pe,109:ar,111:Ze,112:ur,115:100,117:178,122:ze,123:Ce,124:Be,125:Fe,126:be,127:se},{22:[1,213],26:ie,52:pt,66:wt,67:xt,91:Rt,105:me,106:Pe,109:ar,111:Ze,112:ur,115:100,117:178,122:ze,123:Ce,124:Be,125:Fe,126:be,127:se},{84:[1,214]},f(qe,[2,103],{22:[1,215]}),{84:[1,216],101:[1,217]},{84:[1,218]},f(Cn,[2,153]),{84:[1,219],101:[1,220]},f(Lr,[2,57],{116:129,52:nt,66:at,67:_t,91:ft,95:Q,105:ht,106:$,109:kt,111:W,112:At,122:Te,123:ye,124:ke,125:Me,126:Oe,127:we}),{22:Ar,24:De,26:rr,38:Qe,41:[1,221],42:Ie,52:pt,66:wt,67:xt,73:vr,81:Ot,83:201,85:151,86:Vt,87:qr,88:zr,89:Zr,90:Mr,91:Xr,92:Pr,94:142,95:Cr,105:me,106:Pe,109:Ur,111:Ze,112:ur,113:Yr,114:jr,115:148,122:ze,123:Ce,124:Be,125:Fe,126:be,127:se},{22:Ar,24:De,26:rr,38:Qe,42:Ie,52:pt,56:[1,222],66:wt,67:xt,73:vr,81:Ot,83:201,85:151,86:Vt,87:qr,88:zr,89:Zr,90:Mr,91:Xr,92:Pr,94:142,95:Cr,105:me,106:Pe,109:Ur,111:Ze,112:ur,113:Yr,114:jr,115:148,122:ze,123:Ce,124:Be,125:Fe,126:be,127:se},{22:Ar,24:De,26:rr,38:Qe,39:223,42:Ie,52:pt,66:wt,67:xt,73:vr,81:Ot,83:140,84:kn,85:151,86:Vt,87:qr,88:zr,89:Zr,90:Mr,91:Xr,92:Pr,94:142,95:Cr,105:me,106:Pe,109:Ur,111:Ze,112:ur,113:Yr,114:jr,115:148,122:ze,123:Ce,124:Be,125:Fe,126:be,127:se},{22:Ar,24:De,26:rr,38:Qe,42:Ie,52:pt,58:[1,224],66:wt,67:xt,73:vr,81:Ot,83:201,85:151,86:Vt,87:qr,88:zr,89:Zr,90:Mr,91:Xr,92:Pr,94:142,95:Cr,105:me,106:Pe,109:Ur,111:Ze,112:ur,113:Yr,114:jr,115:148,122:ze,123:Ce,124:Be,125:Fe,126:be,127:se},{22:Ar,24:De,26:rr,38:Qe,42:Ie,52:pt,60:[1,225],66:wt,67:xt,73:vr,81:Ot,83:201,85:151,86:Vt,87:qr,88:zr,89:Zr,90:Mr,91:Xr,92:Pr,94:142,95:Cr,105:me,106:Pe,109:Ur,111:Ze,112:ur,113:Yr,114:jr,115:148,122:ze,123:Ce,124:Be,125:Fe,126:be,127:se},{22:Ar,24:De,26:rr,38:Qe,42:Ie,52:pt,62:[1,226],66:wt,67:xt,73:vr,81:Ot,83:201,85:151,86:Vt,87:qr,88:zr,89:Zr,90:Mr,91:Xr,92:Pr,94:142,95:Cr,105:me,106:Pe,109:Ur,111:Ze,112:ur,113:Yr,114:jr,115:148,122:ze,123:Ce,124:Be,125:Fe,126:be,127:se},{22:Ar,24:De,26:rr,38:Qe,42:Ie,52:pt,64:[1,227],66:wt,67:xt,73:vr,81:Ot,83:201,85:151,86:Vt,87:qr,88:zr,89:Zr,90:Mr,91:Xr,92:Pr,94:142,95:Cr,105:me,106:Pe,109:Ur,111:Ze,112:ur,113:Yr,114:jr,115:148,122:ze,123:Ce,124:Be,125:Fe,126:be,127:se},{67:[1,228]},{22:Ar,24:De,26:rr,38:Qe,42:Ie,52:pt,66:wt,67:xt,70:[1,229],73:vr,81:Ot,83:201,85:151,86:Vt,87:qr,88:zr,89:Zr,90:Mr,91:Xr,92:Pr,94:142,95:Cr,105:me,106:Pe,109:Ur,111:Ze,112:ur,113:Yr,114:jr,115:148,122:ze,123:Ce,124:Be,125:Fe,126:be,127:se},{22:Ar,24:De,26:rr,38:Qe,42:Ie,52:pt,66:wt,67:xt,72:[1,230],73:vr,81:Ot,83:201,85:151,86:Vt,87:qr,88:zr,89:Zr,90:Mr,91:Xr,92:Pr,94:142,95:Cr,105:me,106:Pe,109:Ur,111:Ze,112:ur,113:Yr,114:jr,115:148,122:ze,123:Ce,124:Be,125:Fe,126:be,127:se},{22:Ar,24:De,26:rr,38:Qe,39:231,42:Ie,52:pt,66:wt,67:xt,73:vr,81:Ot,83:140,84:kn,85:151,86:Vt,87:qr,88:zr,89:Zr,90:Mr,91:Xr,92:Pr,94:142,95:Cr,105:me,106:Pe,109:Ur,111:Ze,112:ur,113:Yr,114:jr,115:148,122:ze,123:Ce,124:Be,125:Fe,126:be,127:se},{22:Ar,24:De,26:rr,38:Qe,41:[1,232],42:Ie,52:pt,66:wt,67:xt,73:vr,81:Ot,83:201,85:151,86:Vt,87:qr,88:zr,89:Zr,90:Mr,91:Xr,92:Pr,94:142,95:Cr,105:me,106:Pe,109:Ur,111:Ze,112:ur,113:Yr,114:jr,115:148,122:ze,123:Ce,124:Be,125:Fe,126:be,127:se},{22:Ar,24:De,26:rr,38:Qe,42:Ie,52:pt,66:wt,67:xt,73:vr,75:[1,233],77:[1,234],81:Ot,83:201,85:151,86:Vt,87:qr,88:zr,89:Zr,90:Mr,91:Xr,92:Pr,94:142,95:Cr,105:me,106:Pe,109:Ur,111:Ze,112:ur,113:Yr,114:jr,115:148,122:ze,123:Ce,124:Be,125:Fe,126:be,127:se},{22:Ar,24:De,26:rr,38:Qe,42:Ie,52:pt,66:wt,67:xt,73:vr,75:[1,236],77:[1,235],81:Ot,83:201,85:151,86:Vt,87:qr,88:zr,89:Zr,90:Mr,91:Xr,92:Pr,94:142,95:Cr,105:me,106:Pe,109:Ur,111:Ze,112:ur,113:Yr,114:jr,115:148,122:ze,123:Ce,124:Be,125:Fe,126:be,127:se},{9:237,20:oe,21:ee,23:he},f(Mt,[2,52],{52:On}),f(Dr,[2,77]),f(Dr,[2,76]),{22:Ar,24:De,26:rr,38:Qe,42:Ie,52:pt,66:wt,67:xt,68:[1,238],73:vr,81:Ot,83:201,85:151,86:Vt,87:qr,88:zr,89:Zr,90:Mr,91:Xr,92:Pr,94:142,95:Cr,105:me,106:Pe,109:Ur,111:Ze,112:ur,113:Yr,114:jr,115:148,122:ze,123:Ce,124:Be,125:Fe,126:be,127:se},f(Dr,[2,79]),f(Ir,[2,83]),{22:Ar,24:De,26:rr,38:Qe,39:239,42:Ie,52:pt,66:wt,67:xt,73:vr,81:Ot,83:140,84:kn,85:151,86:Vt,87:qr,88:zr,89:Zr,90:Mr,91:Xr,92:Pr,94:142,95:Cr,105:me,106:Pe,109:Ur,111:Ze,112:ur,113:Yr,114:jr,115:148,122:ze,123:Ce,124:Be,125:Fe,126:be,127:se},f(ya,O,{17:240}),f(er,[2,43]),{51:241,52:nt,54:46,66:at,67:_t,91:ft,95:Q,105:ht,106:$,109:kt,111:W,112:At,116:47,122:Te,123:ye,124:ke,125:Me,126:Oe,127:we},{22:En,66:Ln,67:vn,86:Zn,96:242,102:Bt,105:Mn,107:243,108:244,109:Rn,110:Kr,111:ti,112:Wn,113:Un},{22:En,66:Ln,67:vn,86:Zn,96:256,102:Bt,105:Mn,107:243,108:244,109:Rn,110:Kr,111:ti,112:Wn,113:Un},{22:En,66:Ln,67:vn,86:Zn,96:257,102:Bt,104:[1,258],105:Mn,107:243,108:244,109:Rn,110:Kr,111:ti,112:Wn,113:Un},{22:En,66:Ln,67:vn,86:Zn,96:259,102:Bt,104:[1,260],105:Mn,107:243,108:244,109:Rn,110:Kr,111:ti,112:Wn,113:Un},{105:[1,261]},{22:En,66:Ln,67:vn,86:Zn,96:262,102:Bt,105:Mn,107:243,108:244,109:Rn,110:Kr,111:ti,112:Wn,113:Un},{22:En,66:Ln,67:vn,86:Zn,96:263,102:Bt,105:Mn,107:243,108:244,109:Rn,110:Kr,111:ti,112:Wn,113:Un},{26:ie,52:pt,66:wt,67:xt,91:Rt,97:264,105:me,106:Pe,109:ar,111:Ze,112:ur,115:100,117:98,122:ze,123:Ce,124:Be,125:Fe,126:be,127:se},f(qe,[2,102]),{84:[1,265]},f(qe,[2,106],{22:[1,266]}),f(qe,[2,107]),f(qe,[2,110]),f(qe,[2,112],{22:[1,267]}),f(qe,[2,113]),f(Ue,[2,58]),f(Ue,[2,59]),{22:Ar,24:De,26:rr,38:Qe,42:Ie,52:pt,58:[1,268],66:wt,67:xt,73:vr,81:Ot,83:201,85:151,86:Vt,87:qr,88:zr,89:Zr,90:Mr,91:Xr,92:Pr,94:142,95:Cr,105:me,106:Pe,109:Ur,111:Ze,112:ur,113:Yr,114:jr,115:148,122:ze,123:Ce,124:Be,125:Fe,126:be,127:se},f(Ue,[2,66]),f(Ue,[2,61]),f(Ue,[2,62]),f(Ue,[2,63]),{66:[1,269]},f(Ue,[2,65]),f(Ue,[2,67]),{22:Ar,24:De,26:rr,38:Qe,42:Ie,52:pt,66:wt,67:xt,72:[1,270],73:vr,81:Ot,83:201,85:151,86:Vt,87:qr,88:zr,89:Zr,90:Mr,91:Xr,92:Pr,94:142,95:Cr,105:me,106:Pe,109:Ur,111:Ze,112:ur,113:Yr,114:jr,115:148,122:ze,123:Ce,124:Be,125:Fe,126:be,127:se},f(Ue,[2,69]),f(Ue,[2,70]),f(Ue,[2,72]),f(Ue,[2,71]),f(Ue,[2,73]),f(ui,[2,4]),f([22,52,66,67,91,95,105,106,109,111,112,122,123,124,125,126,127],[2,81]),{22:Ar,24:De,26:rr,38:Qe,41:[1,271],42:Ie,52:pt,66:wt,67:xt,73:vr,81:Ot,83:201,85:151,86:Vt,87:qr,88:zr,89:Zr,90:Mr,91:Xr,92:Pr,94:142,95:Cr,105:me,106:Pe,109:Ur,111:Ze,112:ur,113:Yr,114:jr,115:148,122:ze,123:Ce,124:Be,125:Fe,126:be,127:se},{18:18,19:19,20:B,21:z,22:q,23:J,32:24,33:25,34:26,35:27,36:28,37:29,38:rt,42:[1,272],43:31,44:ut,46:Z,48:mt,50:35,51:45,52:nt,54:46,66:at,67:_t,86:jt,87:St,88:gt,89:Ct,90:vt,91:ft,95:Q,105:ht,106:$,109:kt,111:W,112:At,116:47,118:Nt,119:Gt,120:xe,121:Ge,122:Te,123:ye,124:ke,125:Me,126:Oe,127:we},f(Lr,[2,56]),f(qe,[2,115],{106:ei}),f(Ta,[2,125],{108:274,22:En,66:Ln,67:vn,86:Zn,102:Bt,105:Mn,109:Rn,110:Kr,111:ti,112:Wn,113:Un}),f(dn,[2,127]),f(dn,[2,129]),f(dn,[2,130]),f(dn,[2,131]),f(dn,[2,132]),f(dn,[2,133]),f(dn,[2,134]),f(dn,[2,135]),f(dn,[2,136]),f(dn,[2,137]),f(dn,[2,138]),f(dn,[2,139]),f(qe,[2,116],{106:ei}),f(qe,[2,117],{106:ei}),{22:[1,275]},f(qe,[2,118],{106:ei}),{22:[1,276]},f(Or,[2,124]),f(qe,[2,98],{106:ei}),f(qe,[2,99],{106:ei}),f(qe,[2,100],{115:100,117:178,26:ie,52:pt,66:wt,67:xt,91:Rt,105:me,106:Pe,109:ar,111:Ze,112:ur,122:ze,123:Ce,124:Be,125:Fe,126:be,127:se}),f(qe,[2,104]),{101:[1,277]},{101:[1,278]},{58:[1,279]},{68:[1,280]},{72:[1,281]},{9:282,20:oe,21:ee,23:he},f(er,[2,42]),{22:En,66:Ln,67:vn,86:Zn,102:Bt,105:Mn,107:283,108:244,109:Rn,110:Kr,111:ti,112:Wn,113:Un},f(dn,[2,128]),{26:ie,52:pt,66:wt,67:xt,91:Rt,97:284,105:me,106:Pe,109:ar,111:Ze,112:ur,115:100,117:98,122:ze,123:Ce,124:Be,125:Fe,126:be,127:se},{26:ie,52:pt,66:wt,67:xt,91:Rt,97:285,105:me,106:Pe,109:ar,111:Ze,112:ur,115:100,117:98,122:ze,123:Ce,124:Be,125:Fe,126:be,127:se},f(qe,[2,108]),f(qe,[2,114]),f(Ue,[2,60]),{22:Ar,24:De,26:rr,38:Qe,39:286,42:Ie,52:pt,66:wt,67:xt,73:vr,81:Ot,83:140,84:kn,85:151,86:Vt,87:qr,88:zr,89:Zr,90:Mr,91:Xr,92:Pr,94:142,95:Cr,105:me,106:Pe,109:Ur,111:Ze,112:ur,113:Yr,114:jr,115:148,122:ze,123:Ce,124:Be,125:Fe,126:be,127:se},f(Ue,[2,68]),f(ya,O,{17:287}),f(Ta,[2,126],{108:274,22:En,66:Ln,67:vn,86:Zn,102:Bt,105:Mn,109:Rn,110:Kr,111:ti,112:Wn,113:Un}),f(qe,[2,121],{115:100,117:178,22:[1,288],26:ie,52:pt,66:wt,67:xt,91:Rt,105:me,106:Pe,109:ar,111:Ze,112:ur,122:ze,123:Ce,124:Be,125:Fe,126:be,127:se}),f(qe,[2,122],{115:100,117:178,22:[1,289],26:ie,52:pt,66:wt,67:xt,91:Rt,105:me,106:Pe,109:ar,111:Ze,112:ur,122:ze,123:Ce,124:Be,125:Fe,126:be,127:se}),{22:Ar,24:De,26:rr,38:Qe,41:[1,290],42:Ie,52:pt,66:wt,67:xt,73:vr,81:Ot,83:201,85:151,86:Vt,87:qr,88:zr,89:Zr,90:Mr,91:Xr,92:Pr,94:142,95:Cr,105:me,106:Pe,109:Ur,111:Ze,112:ur,113:Yr,114:jr,115:148,122:ze,123:Ce,124:Be,125:Fe,126:be,127:se},{18:18,19:19,20:B,21:z,22:q,23:J,32:24,33:25,34:26,35:27,36:28,37:29,38:rt,42:[1,291],43:31,44:ut,46:Z,48:mt,50:35,51:45,52:nt,54:46,66:at,67:_t,86:jt,87:St,88:gt,89:Ct,90:vt,91:ft,95:Q,105:ht,106:$,109:kt,111:W,112:At,116:47,118:Nt,119:Gt,120:xe,121:Ge,122:Te,123:ye,124:ke,125:Me,126:Oe,127:we},{22:En,66:Ln,67:vn,86:Zn,96:292,102:Bt,105:Mn,107:243,108:244,109:Rn,110:Kr,111:ti,112:Wn,113:Un},{22:En,66:Ln,67:vn,86:Zn,96:293,102:Bt,105:Mn,107:243,108:244,109:Rn,110:Kr,111:ti,112:Wn,113:Un},f(Ue,[2,64]),f(er,[2,41]),f(qe,[2,119],{106:ei}),f(qe,[2,120],{106:ei})],defaultActions:{2:[2,1],9:[2,5],10:[2,2],132:[2,7]},parseError:function(sr,Qr){if(!Qr.recoverable){var cr=new Error(sr);throw cr.hash=Qr,cr}this.trace(sr)},parse:function(sr){var Qr=this,cr=[0],or=[],on=[null],Kt=[],Ai=this.table,re="",Tn=0,Bn=0,Xn=0,fi=2,Sa=1,gn=Kt.slice.call(arguments,1),Er=Object.create(this.lexer),sa={yy:{}};for(var Rr in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Rr)&&(sa.yy[Rr]=this.yy[Rr]);Er.setInput(sr,sa.yy),sa.yy.lexer=Er,sa.yy.parser=this,Er.yylloc===void 0&&(Er.yylloc={});var wi=Er.yylloc;Kt.push(wi);var hi=Er.options&&Er.options.ranges;function Bi(){var ii;return typeof(ii=or.pop()||Er.lex()||Sa)!="number"&&(ii instanceof Array&&(ii=(or=ii).pop()),ii=Qr.symbols_[ii]||ii),ii}typeof sa.yy.parseError=="function"?this.parseError=sa.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var fn,ri,Kn,Jn,oi,Ci,Qn,Aa,Fa,_n={};;){if(Kn=cr[cr.length-1],this.defaultActions[Kn]?Jn=this.defaultActions[Kn]:(fn==null&&(fn=Bi()),Jn=Ai[Kn]&&Ai[Kn][fn]),Jn===void 0||!Jn.length||!Jn[0]){var ni="";for(Ci in Fa=[],Ai[Kn])this.terminals_[Ci]&&Ci>fi&&Fa.push("'"+this.terminals_[Ci]+"'");ni=Er.showPosition?"Parse error on line "+(Tn+1)+`: +`+Er.showPosition()+` +Expecting `+Fa.join(", ")+", got '"+(this.terminals_[fn]||fn)+"'":"Parse error on line "+(Tn+1)+": Unexpected "+(fn==Sa?"end of input":"'"+(this.terminals_[fn]||fn)+"'"),this.parseError(ni,{text:Er.match,token:this.terminals_[fn]||fn,line:Er.yylineno,loc:wi,expected:Fa})}if(Jn[0]instanceof Array&&Jn.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Kn+", token: "+fn);switch(Jn[0]){case 1:cr.push(fn),on.push(Er.yytext),Kt.push(Er.yylloc),cr.push(Jn[1]),fn=null,ri?(fn=ri,ri=null):(Bn=Er.yyleng,re=Er.yytext,Tn=Er.yylineno,wi=Er.yylloc,Xn>0);break;case 2:if(Qn=this.productions_[Jn[1]][1],_n.$=on[on.length-Qn],_n._$={first_line:Kt[Kt.length-(Qn||1)].first_line,last_line:Kt[Kt.length-1].last_line,first_column:Kt[Kt.length-(Qn||1)].first_column,last_column:Kt[Kt.length-1].last_column},hi&&(_n._$.range=[Kt[Kt.length-(Qn||1)].range[0],Kt[Kt.length-1].range[1]]),(oi=this.performAction.apply(_n,[re,Bn,Tn,sa.yy,Jn[1],on,Kt].concat(gn)))!==void 0)return oi;Qn&&(cr=cr.slice(0,-1*Qn*2),on=on.slice(0,-1*Qn),Kt=Kt.slice(0,-1*Qn)),cr.push(this.productions_[Jn[1]][0]),on.push(_n.$),Kt.push(_n._$),Aa=Ai[cr[cr.length-2]][cr[cr.length-1]],cr.push(Aa);break;case 3:return!0}}return!0}},oa={EOF:1,parseError:function(sr,Qr){if(!this.yy.parser)throw new Error(sr);this.yy.parser.parseError(sr,Qr)},setInput:function(sr,Qr){return this.yy=Qr||this.yy||{},this._input=sr,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var sr=this._input[0];return this.yytext+=sr,this.yyleng++,this.offset++,this.match+=sr,this.matched+=sr,sr.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),sr},unput:function(sr){var Qr=sr.length,cr=sr.split(/(?:\r\n?|\n)/g);this._input=sr+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-Qr),this.offset-=Qr;var or=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),cr.length-1&&(this.yylineno-=cr.length-1);var on=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:cr?(cr.length===or.length?this.yylloc.first_column:0)+or[or.length-cr.length].length-cr[0].length:this.yylloc.first_column-Qr},this.options.ranges&&(this.yylloc.range=[on[0],on[0]+this.yyleng-Qr]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). +`+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(sr){this.unput(this.match.slice(sr))},pastInput:function(){var sr=this.matched.substr(0,this.matched.length-this.match.length);return(sr.length>20?"...":"")+sr.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var sr=this.match;return sr.length<20&&(sr+=this._input.substr(0,20-sr.length)),(sr.substr(0,20)+(sr.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var sr=this.pastInput(),Qr=new Array(sr.length+1).join("-");return sr+this.upcomingInput()+` +`+Qr+"^"},test_match:function(sr,Qr){var cr,or,on;if(this.options.backtrack_lexer&&(on={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&&(on.yylloc.range=this.yylloc.range.slice(0))),(or=sr[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=or.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:or?or[or.length-1].length-or[or.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+sr[0].length},this.yytext+=sr[0],this.match+=sr[0],this.matches=sr,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(sr[0].length),this.matched+=sr[0],cr=this.performAction.call(this,this.yy,this,Qr,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),cr)return cr;if(this._backtrack){for(var Kt in on)this[Kt]=on[Kt];return!1}return!1},next:function(){if(this.done)return this.EOF;var sr,Qr,cr,or;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var on=this._currentRules(),Kt=0;KtQr[0].length)){if(Qr=cr,or=Kt,this.options.backtrack_lexer){if((sr=this.test_match(cr,on[Kt]))!==!1)return sr;if(this._backtrack){Qr=!1;continue}return!1}if(!this.options.flex)break}return Qr?(sr=this.test_match(Qr,on[or]))!==!1&&sr:this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text. +`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){return this.next()||this.lex()},begin:function(sr){this.conditionStack.push(sr)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(sr){return(sr=this.conditionStack.length-1-Math.abs(sr||0))>=0?this.conditionStack[sr]:"INITIAL"},pushState:function(sr){this.begin(sr)},stateStackSize:function(){return this.conditionStack.length},options:{},performAction:function(sr,Qr,cr,or){switch(cr){case 0:return this.begin("open_directive"),12;case 1:return this.begin("type_directive"),13;case 2:return this.popState(),this.begin("arg_directive"),10;case 3:return this.popState(),this.popState(),15;case 4:return 14;case 5:case 6:break;case 7:return this.begin("acc_title"),44;case 8:return this.popState(),"acc_title_value";case 9:return this.begin("acc_descr"),46;case 10:return this.popState(),"acc_descr_value";case 11:this.begin("acc_descr_multiline");break;case 12:case 15:case 24:case 27:case 30:case 33:this.popState();break;case 13:return"acc_descr_multiline_value";case 14:this.begin("string");break;case 16:return"STR";case 17:return 86;case 18:return 95;case 19:return 87;case 20:return 104;case 21:return 88;case 22:return 89;case 23:this.begin("href");break;case 25:return 100;case 26:this.begin("callbackname");break;case 28:this.popState(),this.begin("callbackargs");break;case 29:return 98;case 31:return 99;case 32:this.begin("click");break;case 34:return 90;case 35:case 36:return sr.lex.firstGraph()&&this.begin("dir"),24;case 37:return 38;case 38:return 42;case 39:case 40:case 41:case 42:return 101;case 43:return this.popState(),25;case 44:case 45:case 46:case 47:case 48:case 49:case 50:case 51:case 52:case 53:return this.popState(),26;case 54:return 118;case 55:return 119;case 56:return 120;case 57:return 121;case 58:return 105;case 59:return 111;case 60:return 53;case 61:return 67;case 62:return 52;case 63:return 20;case 64:return 106;case 65:return 126;case 66:case 67:case 68:return 82;case 69:case 70:case 71:return 81;case 72:return 59;case 73:return 60;case 74:return 61;case 75:return 62;case 76:return 63;case 77:return 64;case 78:return 65;case 79:return 69;case 80:return 70;case 81:return 55;case 82:return 56;case 83:return 109;case 84:return 112;case 85:return 127;case 86:return 124;case 87:return 113;case 88:case 89:return 125;case 90:return 114;case 91:return 73;case 92:return 92;case 93:return"SEP";case 94:return 91;case 95:return 66;case 96:return 75;case 97:return 74;case 98:return 77;case 99:return 76;case 100:return 122;case 101:return 123;case 102:return 68;case 103:return 57;case 104:return 58;case 105:return 40;case 106:return 41;case 107:return 71;case 108:return 72;case 109:return 133;case 110:return 21;case 111:return 22;case 112:return 23}},rules:[/^(?:%%\{)/,/^(?:((?:(?!\}%%)[^:.])*))/,/^(?::)/,/^(?:\}%%)/,/^(?:((?:(?!\}%%).|\n)*))/,/^(?:%%(?!\{)[^\n]*)/,/^(?:[^\}]%%[^\n]*)/,/^(?:accTitle\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*\{\s*)/,/^(?:[\}])/,/^(?:[^\}]*)/,/^(?:["])/,/^(?:["])/,/^(?:[^"]*)/,/^(?:style\b)/,/^(?:default\b)/,/^(?:linkStyle\b)/,/^(?:interpolate\b)/,/^(?:classDef\b)/,/^(?:class\b)/,/^(?:href[\s]+["])/,/^(?:["])/,/^(?:[^"]*)/,/^(?:call[\s]+)/,/^(?:\([\s]*\))/,/^(?:\()/,/^(?:[^(]*)/,/^(?:\))/,/^(?:[^)]*)/,/^(?:click[\s]+)/,/^(?:[\s\n])/,/^(?:[^\s\n]*)/,/^(?:graph\b)/,/^(?:flowchart\b)/,/^(?:subgraph\b)/,/^(?:end\b\s*)/,/^(?:_self\b)/,/^(?:_blank\b)/,/^(?:_parent\b)/,/^(?:_top\b)/,/^(?:(\r?\n)*\s*\n)/,/^(?:\s*LR\b)/,/^(?:\s*RL\b)/,/^(?:\s*TB\b)/,/^(?:\s*BT\b)/,/^(?:\s*TD\b)/,/^(?:\s*BR\b)/,/^(?:\s*<)/,/^(?:\s*>)/,/^(?:\s*\^)/,/^(?:\s*v\b)/,/^(?:.*direction\s+TB[^\n]*)/,/^(?:.*direction\s+BT[^\n]*)/,/^(?:.*direction\s+RL[^\n]*)/,/^(?:.*direction\s+LR[^\n]*)/,/^(?:[0-9]+)/,/^(?:#)/,/^(?::::)/,/^(?::)/,/^(?:&)/,/^(?:;)/,/^(?:,)/,/^(?:\*)/,/^(?:\s*[xo<]?--+[-xo>]\s*)/,/^(?:\s*[xo<]?==+[=xo>]\s*)/,/^(?:\s*[xo<]?-?\.+-[xo>]?\s*)/,/^(?:\s*[xo<]?--\s*)/,/^(?:\s*[xo<]?==\s*)/,/^(?:\s*[xo<]?-\.\s*)/,/^(?:\(-)/,/^(?:-\))/,/^(?:\(\[)/,/^(?:\]\))/,/^(?:\[\[)/,/^(?:\]\])/,/^(?:\[\|)/,/^(?:\[\()/,/^(?:\)\])/,/^(?:\(\(\()/,/^(?:\)\)\))/,/^(?:-)/,/^(?:\.)/,/^(?:[\_])/,/^(?:\+)/,/^(?:%)/,/^(?:=)/,/^(?:=)/,/^(?:<)/,/^(?:>)/,/^(?:\^)/,/^(?:\\\|)/,/^(?:v\b)/,/^(?:[A-Za-z]+)/,/^(?:\\\])/,/^(?:\[\/)/,/^(?:\/\])/,/^(?:\[\\)/,/^(?:[!"#$%&'*+,-.`?\\_/])/,/^(?:[\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6]|[\u00F8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377]|[\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5]|[\u03F7-\u0481\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA]|[\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE]|[\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA]|[\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0]|[\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0977]|[\u0979-\u097F\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2]|[\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A]|[\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39]|[\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8]|[\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C]|[\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C]|[\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99]|[\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0]|[\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D]|[\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3]|[\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10]|[\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1]|[\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81]|[\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3]|[\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6]|[\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A]|[\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081]|[\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D]|[\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0]|[\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310]|[\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C]|[\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u1700-\u170C\u170E-\u1711]|[\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7]|[\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C]|[\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16]|[\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF]|[\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC]|[\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D]|[\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D]|[\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3]|[\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F]|[\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128]|[\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184]|[\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3]|[\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6]|[\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE]|[\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C]|[\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D]|[\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC]|[\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B]|[\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788]|[\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805]|[\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB]|[\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28]|[\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5]|[\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4]|[\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E]|[\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D]|[\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36]|[\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D]|[\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC]|[\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF]|[\uFFD2-\uFFD7\uFFDA-\uFFDC])/,/^(?:\|)/,/^(?:\()/,/^(?:\))/,/^(?:\[)/,/^(?:\])/,/^(?:\{)/,/^(?:\})/,/^(?:")/,/^(?:(\r?\n)+)/,/^(?:\s)/,/^(?:$)/],conditions:{close_directive:{rules:[],inclusive:!1},arg_directive:{rules:[3,4],inclusive:!1},type_directive:{rules:[2,3],inclusive:!1},open_directive:{rules:[1],inclusive:!1},callbackargs:{rules:[30,31],inclusive:!1},callbackname:{rules:[27,28,29],inclusive:!1},href:{rules:[24,25],inclusive:!1},click:{rules:[33,34],inclusive:!1},vertex:{rules:[],inclusive:!1},dir:{rules:[43,44,45,46,47,48,49,50,51,52,53],inclusive:!1},acc_descr_multiline:{rules:[12,13],inclusive:!1},acc_descr:{rules:[10],inclusive:!1},acc_title:{rules:[8],inclusive:!1},string:{rules:[15,16],inclusive:!1},INITIAL:{rules:[0,5,6,7,9,11,14,17,18,19,20,21,22,23,26,32,35,36,37,38,39,40,41,42,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112],inclusive:!0}}};function Ri(){this.yy={}}return aa.lexer=oa,Ri.prototype=aa,aa.Parser=Ri,new Ri}();b.parser=m,b.Parser=m.Parser,b.parse=function(){return m.parse.apply(m,arguments)},b.main=function(f){f[1]||(console.log("Usage: "+f[0]+" FILE"),process.exit(1));var v=h(5354).readFileSync(h(6470).normalize(f[1]),"utf8");return b.parser.parse(v)},h.c[h.s]===d&&b.main(process.argv.slice(1))},9959:(d,b,h)=>{d=h.nmd(d);var m=function(){var f=function(ft,Q,ht,$){for(ht=ht||{},$=ft.length;$--;ht[ft[$]]=Q);return ht},v=[1,3],_=[1,5],A=[7,9,11,12,13,14,15,16,17,18,19,20,22,24,25,27,34,39],M=[1,15],T=[1,16],O=[1,17],B=[1,18],z=[1,19],q=[1,20],J=[1,21],rt=[1,22],ut=[1,23],Z=[1,24],mt=[1,25],nt=[1,26],at=[1,28],_t=[1,30],jt=[1,33],St=[5,7,9,11,12,13,14,15,16,17,18,19,20,22,24,25,27,34,39],gt={trace:function(){},yy:{},symbols_:{error:2,start:3,directive:4,gantt:5,document:6,EOF:7,line:8,SPACE:9,statement:10,NL:11,dateFormat:12,inclusiveEndDates:13,topAxis:14,axisFormat:15,excludes:16,includes:17,todayMarker:18,title:19,acc_title:20,acc_title_value:21,acc_descr:22,acc_descr_value:23,acc_descr_multiline_value:24,section:25,clickStatement:26,taskTxt:27,taskData:28,openDirective:29,typeDirective:30,closeDirective:31,":":32,argDirective:33,click:34,callbackname:35,callbackargs:36,href:37,clickStatementDebug:38,open_directive:39,type_directive:40,arg_directive:41,close_directive:42,$accept:0,$end:1},terminals_:{2:"error",5:"gantt",7:"EOF",9:"SPACE",11:"NL",12:"dateFormat",13:"inclusiveEndDates",14:"topAxis",15:"axisFormat",16:"excludes",17:"includes",18:"todayMarker",19:"title",20:"acc_title",21:"acc_title_value",22:"acc_descr",23:"acc_descr_value",24:"acc_descr_multiline_value",25:"section",27:"taskTxt",28:"taskData",32:":",34:"click",35:"callbackname",36:"callbackargs",37:"href",39:"open_directive",40:"type_directive",41:"arg_directive",42:"close_directive"},productions_:[0,[3,2],[3,3],[6,0],[6,2],[8,2],[8,1],[8,1],[8,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,2],[10,2],[10,1],[10,1],[10,1],[10,2],[10,1],[4,4],[4,6],[26,2],[26,3],[26,3],[26,4],[26,3],[26,4],[26,2],[38,2],[38,3],[38,3],[38,4],[38,3],[38,4],[38,2],[29,1],[30,1],[33,1],[31,1]],performAction:function(ft,Q,ht,$,kt,W,At){var Nt=W.length-1;switch(kt){case 2:return W[Nt-1];case 3:case 7:case 8:this.$=[];break;case 4:W[Nt-1].push(W[Nt]),this.$=W[Nt-1];break;case 5:case 6:this.$=W[Nt];break;case 9:$.setDateFormat(W[Nt].substr(11)),this.$=W[Nt].substr(11);break;case 10:$.enableInclusiveEndDates(),this.$=W[Nt].substr(18);break;case 11:$.TopAxis(),this.$=W[Nt].substr(8);break;case 12:$.setAxisFormat(W[Nt].substr(11)),this.$=W[Nt].substr(11);break;case 13:$.setExcludes(W[Nt].substr(9)),this.$=W[Nt].substr(9);break;case 14:$.setIncludes(W[Nt].substr(9)),this.$=W[Nt].substr(9);break;case 15:$.setTodayMarker(W[Nt].substr(12)),this.$=W[Nt].substr(12);break;case 16:$.setDiagramTitle(W[Nt].substr(6)),this.$=W[Nt].substr(6);break;case 17:this.$=W[Nt].trim(),$.setAccTitle(this.$);break;case 18:case 19:this.$=W[Nt].trim(),$.setAccDescription(this.$);break;case 20:$.addSection(W[Nt].substr(8)),this.$=W[Nt].substr(8);break;case 22:$.addTask(W[Nt-1],W[Nt]),this.$="task";break;case 26:this.$=W[Nt-1],$.setClickEvent(W[Nt-1],W[Nt],null);break;case 27:this.$=W[Nt-2],$.setClickEvent(W[Nt-2],W[Nt-1],W[Nt]);break;case 28:this.$=W[Nt-2],$.setClickEvent(W[Nt-2],W[Nt-1],null),$.setLink(W[Nt-2],W[Nt]);break;case 29:this.$=W[Nt-3],$.setClickEvent(W[Nt-3],W[Nt-2],W[Nt-1]),$.setLink(W[Nt-3],W[Nt]);break;case 30:this.$=W[Nt-2],$.setClickEvent(W[Nt-2],W[Nt],null),$.setLink(W[Nt-2],W[Nt-1]);break;case 31:this.$=W[Nt-3],$.setClickEvent(W[Nt-3],W[Nt-1],W[Nt]),$.setLink(W[Nt-3],W[Nt-2]);break;case 32:this.$=W[Nt-1],$.setLink(W[Nt-1],W[Nt]);break;case 33:case 39:this.$=W[Nt-1]+" "+W[Nt];break;case 34:case 35:case 37:this.$=W[Nt-2]+" "+W[Nt-1]+" "+W[Nt];break;case 36:case 38:this.$=W[Nt-3]+" "+W[Nt-2]+" "+W[Nt-1]+" "+W[Nt];break;case 40:$.parseDirective("%%{","open_directive");break;case 41:$.parseDirective(W[Nt],"type_directive");break;case 42:W[Nt]=W[Nt].trim().replace(/'/g,'"'),$.parseDirective(W[Nt],"arg_directive");break;case 43:$.parseDirective("}%%","close_directive","gantt")}},table:[{3:1,4:2,5:v,29:4,39:_},{1:[3]},{3:6,4:2,5:v,29:4,39:_},f(A,[2,3],{6:7}),{30:8,40:[1,9]},{40:[2,40]},{1:[2,1]},{4:29,7:[1,10],8:11,9:[1,12],10:13,11:[1,14],12:M,13:T,14:O,15:B,16:z,17:q,18:J,19:rt,20:ut,22:Z,24:mt,25:nt,26:27,27:at,29:4,34:_t,39:_},{31:31,32:[1,32],42:jt},f([32,42],[2,41]),f(A,[2,8],{1:[2,2]}),f(A,[2,4]),{4:29,10:34,12:M,13:T,14:O,15:B,16:z,17:q,18:J,19:rt,20:ut,22:Z,24:mt,25:nt,26:27,27:at,29:4,34:_t,39:_},f(A,[2,6]),f(A,[2,7]),f(A,[2,9]),f(A,[2,10]),f(A,[2,11]),f(A,[2,12]),f(A,[2,13]),f(A,[2,14]),f(A,[2,15]),f(A,[2,16]),{21:[1,35]},{23:[1,36]},f(A,[2,19]),f(A,[2,20]),f(A,[2,21]),{28:[1,37]},f(A,[2,23]),{35:[1,38],37:[1,39]},{11:[1,40]},{33:41,41:[1,42]},{11:[2,43]},f(A,[2,5]),f(A,[2,17]),f(A,[2,18]),f(A,[2,22]),f(A,[2,26],{36:[1,43],37:[1,44]}),f(A,[2,32],{35:[1,45]}),f(St,[2,24]),{31:46,42:jt},{42:[2,42]},f(A,[2,27],{37:[1,47]}),f(A,[2,28]),f(A,[2,30],{36:[1,48]}),{11:[1,49]},f(A,[2,29]),f(A,[2,31]),f(St,[2,25])],defaultActions:{5:[2,40],6:[2,1],33:[2,43],42:[2,42]},parseError:function(ft,Q){if(!Q.recoverable){var ht=new Error(ft);throw ht.hash=Q,ht}this.trace(ft)},parse:function(ft){var Q=this,ht=[0],$=[],kt=[null],W=[],At=this.table,Nt="",Gt=0,xe=0,Ge=0,Te=2,ye=1,ke=W.slice.call(arguments,1),Me=Object.create(this.lexer),Oe={yy:{}};for(var we in this.yy)Object.prototype.hasOwnProperty.call(this.yy,we)&&(Oe.yy[we]=this.yy[we]);Me.setInput(ft,Oe.yy),Oe.yy.lexer=Me,Oe.yy.parser=this,Me.yylloc===void 0&&(Me.yylloc={});var Sr=Me.yylloc;W.push(Sr);var _e=Me.options&&Me.options.ranges;function er(){var ar;return typeof(ar=$.pop()||Me.lex()||ye)!="number"&&(ar instanceof Array&&(ar=($=ar).pop()),ar=Q.symbols_[ar]||ar),ar}typeof Oe.yy.parseError=="function"?this.parseError=Oe.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var oe,ee,he,Mt,ie,pt,wt,xt,Rt,me={};;){if(he=ht[ht.length-1],this.defaultActions[he]?Mt=this.defaultActions[he]:(oe==null&&(oe=er()),Mt=At[he]&&At[he][oe]),Mt===void 0||!Mt.length||!Mt[0]){var Pe="";for(pt in Rt=[],At[he])this.terminals_[pt]&&pt>Te&&Rt.push("'"+this.terminals_[pt]+"'");Pe=Me.showPosition?"Parse error on line "+(Gt+1)+`: +`+Me.showPosition()+` +Expecting `+Rt.join(", ")+", got '"+(this.terminals_[oe]||oe)+"'":"Parse error on line "+(Gt+1)+": Unexpected "+(oe==ye?"end of input":"'"+(this.terminals_[oe]||oe)+"'"),this.parseError(Pe,{text:Me.match,token:this.terminals_[oe]||oe,line:Me.yylineno,loc:Sr,expected:Rt})}if(Mt[0]instanceof Array&&Mt.length>1)throw new Error("Parse Error: multiple actions possible at state: "+he+", token: "+oe);switch(Mt[0]){case 1:ht.push(oe),kt.push(Me.yytext),W.push(Me.yylloc),ht.push(Mt[1]),oe=null,ee?(oe=ee,ee=null):(xe=Me.yyleng,Nt=Me.yytext,Gt=Me.yylineno,Sr=Me.yylloc,Ge>0);break;case 2:if(wt=this.productions_[Mt[1]][1],me.$=kt[kt.length-wt],me._$={first_line:W[W.length-(wt||1)].first_line,last_line:W[W.length-1].last_line,first_column:W[W.length-(wt||1)].first_column,last_column:W[W.length-1].last_column},_e&&(me._$.range=[W[W.length-(wt||1)].range[0],W[W.length-1].range[1]]),(ie=this.performAction.apply(me,[Nt,xe,Gt,Oe.yy,Mt[1],kt,W].concat(ke)))!==void 0)return ie;wt&&(ht=ht.slice(0,-1*wt*2),kt=kt.slice(0,-1*wt),W=W.slice(0,-1*wt)),ht.push(this.productions_[Mt[1]][0]),kt.push(me.$),W.push(me._$),xt=At[ht[ht.length-2]][ht[ht.length-1]],ht.push(xt);break;case 3:return!0}}return!0}},Ct={EOF:1,parseError:function(ft,Q){if(!this.yy.parser)throw new Error(ft);this.yy.parser.parseError(ft,Q)},setInput:function(ft,Q){return this.yy=Q||this.yy||{},this._input=ft,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var ft=this._input[0];return this.yytext+=ft,this.yyleng++,this.offset++,this.match+=ft,this.matched+=ft,ft.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),ft},unput:function(ft){var Q=ft.length,ht=ft.split(/(?:\r\n?|\n)/g);this._input=ft+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-Q),this.offset-=Q;var $=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),ht.length-1&&(this.yylineno-=ht.length-1);var kt=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:ht?(ht.length===$.length?this.yylloc.first_column:0)+$[$.length-ht.length].length-ht[0].length:this.yylloc.first_column-Q},this.options.ranges&&(this.yylloc.range=[kt[0],kt[0]+this.yyleng-Q]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). +`+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(ft){this.unput(this.match.slice(ft))},pastInput:function(){var ft=this.matched.substr(0,this.matched.length-this.match.length);return(ft.length>20?"...":"")+ft.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var ft=this.match;return ft.length<20&&(ft+=this._input.substr(0,20-ft.length)),(ft.substr(0,20)+(ft.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var ft=this.pastInput(),Q=new Array(ft.length+1).join("-");return ft+this.upcomingInput()+` +`+Q+"^"},test_match:function(ft,Q){var ht,$,kt;if(this.options.backtrack_lexer&&(kt={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&&(kt.yylloc.range=this.yylloc.range.slice(0))),($=ft[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=$.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:$?$[$.length-1].length-$[$.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+ft[0].length},this.yytext+=ft[0],this.match+=ft[0],this.matches=ft,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(ft[0].length),this.matched+=ft[0],ht=this.performAction.call(this,this.yy,this,Q,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),ht)return ht;if(this._backtrack){for(var W in kt)this[W]=kt[W];return!1}return!1},next:function(){if(this.done)return this.EOF;var ft,Q,ht,$;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var kt=this._currentRules(),W=0;WQ[0].length)){if(Q=ht,$=W,this.options.backtrack_lexer){if((ft=this.test_match(ht,kt[W]))!==!1)return ft;if(this._backtrack){Q=!1;continue}return!1}if(!this.options.flex)break}return Q?(ft=this.test_match(Q,kt[$]))!==!1&&ft:this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text. +`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){return this.next()||this.lex()},begin:function(ft){this.conditionStack.push(ft)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(ft){return(ft=this.conditionStack.length-1-Math.abs(ft||0))>=0?this.conditionStack[ft]:"INITIAL"},pushState:function(ft){this.begin(ft)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(ft,Q,ht,$){switch(ht){case 0:return this.begin("open_directive"),39;case 1:return this.begin("type_directive"),40;case 2:return this.popState(),this.begin("arg_directive"),32;case 3:return this.popState(),this.popState(),42;case 4:return 41;case 5:return this.begin("acc_title"),20;case 6:return this.popState(),"acc_title_value";case 7:return this.begin("acc_descr"),22;case 8:return this.popState(),"acc_descr_value";case 9:this.begin("acc_descr_multiline");break;case 10:case 20:case 23:case 26:case 29:this.popState();break;case 11:return"acc_descr_multiline_value";case 12:case 13:case 14:case 16:case 17:case 18:break;case 15:return 11;case 19:this.begin("href");break;case 21:return 37;case 22:this.begin("callbackname");break;case 24:this.popState(),this.begin("callbackargs");break;case 25:return 35;case 27:return 36;case 28:this.begin("click");break;case 30:return 34;case 31:return 5;case 32:return 12;case 33:return 13;case 34:return 14;case 35:return 15;case 36:return 17;case 37:return 16;case 38:return 18;case 39:return"date";case 40:return 19;case 41:return"accDescription";case 42:return 25;case 43:return 27;case 44:return 28;case 45:return 32;case 46:return 7;case 47:return"INVALID"}},rules:[/^(?:%%\{)/i,/^(?:((?:(?!\}%%)[^:.])*))/i,/^(?::)/i,/^(?:\}%%)/i,/^(?:((?:(?!\}%%).|\n)*))/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:%%(?!\{)*[^\n]*)/i,/^(?:[^\}]%%*[^\n]*)/i,/^(?:%%*[^\n]*[\n]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:#[^\n]*)/i,/^(?:%[^\n]*)/i,/^(?:href[\s]+["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:call[\s]+)/i,/^(?:\([\s]*\))/i,/^(?:\()/i,/^(?:[^(]*)/i,/^(?:\))/i,/^(?:[^)]*)/i,/^(?:click[\s]+)/i,/^(?:[\s\n])/i,/^(?:[^\s\n]*)/i,/^(?:gantt\b)/i,/^(?:dateFormat\s[^#\n;]+)/i,/^(?:inclusiveEndDates\b)/i,/^(?:topAxis\b)/i,/^(?:axisFormat\s[^#\n;]+)/i,/^(?:includes\s[^#\n;]+)/i,/^(?:excludes\s[^#\n;]+)/i,/^(?:todayMarker\s[^\n;]+)/i,/^(?:\d\d\d\d-\d\d-\d\d\b)/i,/^(?:title\s[^#\n;]+)/i,/^(?:accDescription\s[^#\n;]+)/i,/^(?:section\s[^#:\n;]+)/i,/^(?:[^#:\n;]+)/i,/^(?::[^#\n;]+)/i,/^(?::)/i,/^(?:$)/i,/^(?:.)/i],conditions:{acc_descr_multiline:{rules:[10,11],inclusive:!1},acc_descr:{rules:[8],inclusive:!1},acc_title:{rules:[6],inclusive:!1},close_directive:{rules:[],inclusive:!1},arg_directive:{rules:[3,4],inclusive:!1},type_directive:{rules:[2,3],inclusive:!1},open_directive:{rules:[1],inclusive:!1},callbackargs:{rules:[26,27],inclusive:!1},callbackname:{rules:[23,24,25],inclusive:!1},href:{rules:[20,21],inclusive:!1},click:{rules:[29,30],inclusive:!1},INITIAL:{rules:[0,5,7,9,12,13,14,15,16,17,18,19,22,28,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47],inclusive:!0}}};function vt(){this.yy={}}return gt.lexer=Ct,vt.prototype=gt,gt.Parser=vt,new vt}();b.parser=m,b.Parser=m.Parser,b.parse=function(){return m.parse.apply(m,arguments)},b.main=function(f){f[1]||(console.log("Usage: "+f[0]+" FILE"),process.exit(1));var v=h(6878).readFileSync(h(6470).normalize(f[1]),"utf8");return b.parser.parse(v)},h.c[h.s]===d&&b.main(process.argv.slice(1))},2553:(d,b,h)=>{d=h.nmd(d);var m=function(){var f=function(Ct,vt,ft,Q){for(ft=ft||{},Q=Ct.length;Q--;ft[Ct[Q]]=vt);return ft},v=[1,4],_=[1,7],A=[1,5],M=[1,9],T=[1,6],O=[2,6],B=[1,16],z=[6,8,14,20,22,24,25,27,29,32,35,39,49,53],q=[8,14,20,22,24,25,27,29,32,35,39],J=[8,13,14,20,22,24,25,27,29,32,35,39],rt=[1,26],ut=[6,8,14,49,53],Z=[8,14,53],mt=[1,64],nt=[1,65],at=[1,66],_t=[8,14,33,38,41,53],jt={trace:function(){},yy:{},symbols_:{error:2,start:3,eol:4,directive:5,GG:6,document:7,EOF:8,":":9,DIR:10,options:11,body:12,OPT:13,NL:14,line:15,statement:16,commitStatement:17,mergeStatement:18,cherryPickStatement:19,acc_title:20,acc_title_value:21,acc_descr:22,acc_descr_value:23,acc_descr_multiline_value:24,section:25,branchStatement:26,CHECKOUT:27,ID:28,BRANCH:29,ORDER:30,NUM:31,CHERRY_PICK:32,COMMIT_ID:33,STR:34,MERGE:35,COMMIT_TYPE:36,commitType:37,COMMIT_TAG:38,COMMIT:39,commit_arg:40,COMMIT_MSG:41,NORMAL:42,REVERSE:43,HIGHLIGHT:44,openDirective:45,typeDirective:46,closeDirective:47,argDirective:48,open_directive:49,type_directive:50,arg_directive:51,close_directive:52,";":53,$accept:0,$end:1},terminals_:{2:"error",6:"GG",8:"EOF",9:":",10:"DIR",13:"OPT",14:"NL",20:"acc_title",21:"acc_title_value",22:"acc_descr",23:"acc_descr_value",24:"acc_descr_multiline_value",25:"section",27:"CHECKOUT",28:"ID",29:"BRANCH",30:"ORDER",31:"NUM",32:"CHERRY_PICK",33:"COMMIT_ID",34:"STR",35:"MERGE",36:"COMMIT_TYPE",38:"COMMIT_TAG",39:"COMMIT",41:"COMMIT_MSG",42:"NORMAL",43:"REVERSE",44:"HIGHLIGHT",49:"open_directive",50:"type_directive",51:"arg_directive",52:"close_directive",53:";"},productions_:[0,[3,2],[3,2],[3,3],[3,4],[3,5],[7,0],[7,2],[11,2],[11,1],[12,0],[12,2],[15,2],[15,1],[16,1],[16,1],[16,1],[16,2],[16,2],[16,1],[16,1],[16,1],[16,2],[26,2],[26,4],[19,3],[18,2],[18,4],[18,4],[18,4],[18,6],[18,6],[18,6],[18,6],[18,6],[18,6],[18,8],[18,8],[18,8],[18,8],[18,8],[18,8],[17,2],[17,3],[17,3],[17,5],[17,5],[17,3],[17,5],[17,5],[17,5],[17,5],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,3],[17,5],[17,5],[17,5],[17,5],[17,5],[17,5],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[40,0],[40,1],[37,1],[37,1],[37,1],[5,3],[5,5],[45,1],[46,1],[48,1],[47,1],[4,1],[4,1],[4,1]],performAction:function(Ct,vt,ft,Q,ht,$,kt){var W=$.length-1;switch(ht){case 3:return $[W];case 4:return $[W-1];case 5:return Q.setDirection($[W-3]),$[W-1];case 7:Q.setOptions($[W-1]),this.$=$[W];break;case 8:$[W-1]+=$[W],this.$=$[W-1];break;case 10:this.$=[];break;case 11:$[W-1].push($[W]),this.$=$[W-1];break;case 12:this.$=$[W-1];break;case 17:this.$=$[W].trim(),Q.setAccTitle(this.$);break;case 18:case 19:this.$=$[W].trim(),Q.setAccDescription(this.$);break;case 20:Q.addSection($[W].substr(8)),this.$=$[W].substr(8);break;case 22:Q.checkout($[W]);break;case 23:Q.branch($[W]);break;case 24:Q.branch($[W-2],$[W]);break;case 25:Q.cherryPick($[W]);break;case 26:Q.merge($[W],"","","");break;case 27:Q.merge($[W-2],$[W],"","");break;case 28:Q.merge($[W-2],"",$[W],"");break;case 29:Q.merge($[W-2],"","",$[W]);break;case 30:Q.merge($[W-4],$[W],"",$[W-2]);break;case 31:Q.merge($[W-4],"",$[W],$[W-2]);break;case 32:Q.merge($[W-4],"",$[W-2],$[W]);break;case 33:Q.merge($[W-4],$[W-2],$[W],"");break;case 34:Q.merge($[W-4],$[W-2],"",$[W]);break;case 35:Q.merge($[W-4],$[W],$[W-2],"");break;case 36:Q.merge($[W-6],$[W-4],$[W-2],$[W]);break;case 37:Q.merge($[W-6],$[W],$[W-4],$[W-2]);break;case 38:Q.merge($[W-6],$[W-4],$[W],$[W-2]);break;case 39:Q.merge($[W-6],$[W-2],$[W-4],$[W]);break;case 40:Q.merge($[W-6],$[W],$[W-2],$[W-4]);break;case 41:Q.merge($[W-6],$[W-2],$[W],$[W-4]);break;case 42:Q.commit($[W]);break;case 43:Q.commit("","",Q.commitType.NORMAL,$[W]);break;case 44:Q.commit("","",$[W],"");break;case 45:Q.commit("","",$[W],$[W-2]);break;case 46:Q.commit("","",$[W-2],$[W]);break;case 47:Q.commit("",$[W],Q.commitType.NORMAL,"");break;case 48:Q.commit("",$[W-2],Q.commitType.NORMAL,$[W]);break;case 49:Q.commit("",$[W],Q.commitType.NORMAL,$[W-2]);break;case 50:Q.commit("",$[W-2],$[W],"");break;case 51:Q.commit("",$[W],$[W-2],"");break;case 52:Q.commit("",$[W-4],$[W-2],$[W]);break;case 53:Q.commit("",$[W-4],$[W],$[W-2]);break;case 54:Q.commit("",$[W-2],$[W-4],$[W]);break;case 55:Q.commit("",$[W],$[W-4],$[W-2]);break;case 56:Q.commit("",$[W],$[W-2],$[W-4]);break;case 57:Q.commit("",$[W-2],$[W],$[W-4]);break;case 58:Q.commit($[W],"",Q.commitType.NORMAL,"");break;case 59:Q.commit($[W],"",Q.commitType.NORMAL,$[W-2]);break;case 60:Q.commit($[W-2],"",Q.commitType.NORMAL,$[W]);break;case 61:Q.commit($[W-2],"",$[W],"");break;case 62:Q.commit($[W],"",$[W-2],"");break;case 63:Q.commit($[W],$[W-2],Q.commitType.NORMAL,"");break;case 64:Q.commit($[W-2],$[W],Q.commitType.NORMAL,"");break;case 65:Q.commit($[W-4],"",$[W-2],$[W]);break;case 66:Q.commit($[W-4],"",$[W],$[W-2]);break;case 67:Q.commit($[W-2],"",$[W-4],$[W]);break;case 68:Q.commit($[W],"",$[W-4],$[W-2]);break;case 69:Q.commit($[W],"",$[W-2],$[W-4]);break;case 70:Q.commit($[W-2],"",$[W],$[W-4]);break;case 71:Q.commit($[W-4],$[W],$[W-2],"");break;case 72:Q.commit($[W-4],$[W-2],$[W],"");break;case 73:Q.commit($[W-2],$[W],$[W-4],"");break;case 74:Q.commit($[W],$[W-2],$[W-4],"");break;case 75:Q.commit($[W],$[W-4],$[W-2],"");break;case 76:Q.commit($[W-2],$[W-4],$[W],"");break;case 77:Q.commit($[W-4],$[W],Q.commitType.NORMAL,$[W-2]);break;case 78:Q.commit($[W-4],$[W-2],Q.commitType.NORMAL,$[W]);break;case 79:Q.commit($[W-2],$[W],Q.commitType.NORMAL,$[W-4]);break;case 80:Q.commit($[W],$[W-2],Q.commitType.NORMAL,$[W-4]);break;case 81:Q.commit($[W],$[W-4],Q.commitType.NORMAL,$[W-2]);break;case 82:Q.commit($[W-2],$[W-4],Q.commitType.NORMAL,$[W]);break;case 83:Q.commit($[W-6],$[W-4],$[W-2],$[W]);break;case 84:Q.commit($[W-6],$[W-4],$[W],$[W-2]);break;case 85:Q.commit($[W-6],$[W-2],$[W-4],$[W]);break;case 86:Q.commit($[W-6],$[W],$[W-4],$[W-2]);break;case 87:Q.commit($[W-6],$[W-2],$[W],$[W-4]);break;case 88:Q.commit($[W-6],$[W],$[W-2],$[W-4]);break;case 89:Q.commit($[W-4],$[W-6],$[W-2],$[W]);break;case 90:Q.commit($[W-4],$[W-6],$[W],$[W-2]);break;case 91:Q.commit($[W-2],$[W-6],$[W-4],$[W]);break;case 92:Q.commit($[W],$[W-6],$[W-4],$[W-2]);break;case 93:Q.commit($[W-2],$[W-6],$[W],$[W-4]);break;case 94:Q.commit($[W],$[W-6],$[W-2],$[W-4]);break;case 95:Q.commit($[W],$[W-4],$[W-2],$[W-6]);break;case 96:Q.commit($[W-2],$[W-4],$[W],$[W-6]);break;case 97:Q.commit($[W],$[W-2],$[W-4],$[W-6]);break;case 98:Q.commit($[W-2],$[W],$[W-4],$[W-6]);break;case 99:Q.commit($[W-4],$[W-2],$[W],$[W-6]);break;case 100:Q.commit($[W-4],$[W],$[W-2],$[W-6]);break;case 101:Q.commit($[W-2],$[W-4],$[W-6],$[W]);break;case 102:Q.commit($[W],$[W-4],$[W-6],$[W-2]);break;case 103:Q.commit($[W-2],$[W],$[W-6],$[W-4]);break;case 104:Q.commit($[W],$[W-2],$[W-6],$[W-4]);break;case 105:Q.commit($[W-4],$[W-2],$[W-6],$[W]);break;case 106:Q.commit($[W-4],$[W],$[W-6],$[W-2]);break;case 107:this.$="";break;case 108:this.$=$[W];break;case 109:this.$=Q.commitType.NORMAL;break;case 110:this.$=Q.commitType.REVERSE;break;case 111:this.$=Q.commitType.HIGHLIGHT;break;case 114:Q.parseDirective("%%{","open_directive");break;case 115:Q.parseDirective($[W],"type_directive");break;case 116:$[W]=$[W].trim().replace(/'/g,'"'),Q.parseDirective($[W],"arg_directive");break;case 117:Q.parseDirective("}%%","close_directive","gitGraph")}},table:[{3:1,4:2,5:3,6:v,8:_,14:A,45:8,49:M,53:T},{1:[3]},{3:10,4:2,5:3,6:v,8:_,14:A,45:8,49:M,53:T},{3:11,4:2,5:3,6:v,8:_,14:A,45:8,49:M,53:T},{7:12,8:O,9:[1,13],10:[1,14],11:15,14:B},f(z,[2,118]),f(z,[2,119]),f(z,[2,120]),{46:17,50:[1,18]},{50:[2,114]},{1:[2,1]},{1:[2,2]},{8:[1,19]},{7:20,8:O,11:15,14:B},{9:[1,21]},f(q,[2,10],{12:22,13:[1,23]}),f(J,[2,9]),{9:[1,25],47:24,52:rt},f([9,52],[2,115]),{1:[2,3]},{8:[1,27]},{7:28,8:O,11:15,14:B},{8:[2,7],14:[1,31],15:29,16:30,17:32,18:33,19:34,20:[1,35],22:[1,36],24:[1,37],25:[1,38],26:39,27:[1,40],29:[1,44],32:[1,43],35:[1,42],39:[1,41]},f(J,[2,8]),f(ut,[2,112]),{48:45,51:[1,46]},f(ut,[2,117]),{1:[2,4]},{8:[1,47]},f(q,[2,11]),{4:48,8:_,14:A,53:T},f(q,[2,13]),f(Z,[2,14]),f(Z,[2,15]),f(Z,[2,16]),{21:[1,49]},{23:[1,50]},f(Z,[2,19]),f(Z,[2,20]),f(Z,[2,21]),{28:[1,51]},f(Z,[2,107],{40:52,33:[1,55],34:[1,57],36:[1,54],38:[1,53],41:[1,56]}),{28:[1,58]},{33:[1,59]},{28:[1,60]},{47:61,52:rt},{52:[2,116]},{1:[2,5]},f(q,[2,12]),f(Z,[2,17]),f(Z,[2,18]),f(Z,[2,22]),f(Z,[2,42]),{34:[1,62]},{37:63,42:mt,43:nt,44:at},{34:[1,67]},{34:[1,68]},f(Z,[2,108]),f(Z,[2,26],{33:[1,69],36:[1,70],38:[1,71]}),{34:[1,72]},f(Z,[2,23],{30:[1,73]}),f(ut,[2,113]),f(Z,[2,43],{33:[1,75],36:[1,74],41:[1,76]}),f(Z,[2,44],{33:[1,78],38:[1,77],41:[1,79]}),f(_t,[2,109]),f(_t,[2,110]),f(_t,[2,111]),f(Z,[2,47],{36:[1,81],38:[1,80],41:[1,82]}),f(Z,[2,58],{33:[1,85],36:[1,84],38:[1,83]}),{34:[1,86]},{37:87,42:mt,43:nt,44:at},{34:[1,88]},f(Z,[2,25]),{31:[1,89]},{37:90,42:mt,43:nt,44:at},{34:[1,91]},{34:[1,92]},{34:[1,93]},{34:[1,94]},{34:[1,95]},{34:[1,96]},{37:97,42:mt,43:nt,44:at},{34:[1,98]},{34:[1,99]},{37:100,42:mt,43:nt,44:at},{34:[1,101]},f(Z,[2,27],{36:[1,102],38:[1,103]}),f(Z,[2,28],{33:[1,105],38:[1,104]}),f(Z,[2,29],{33:[1,106],36:[1,107]}),f(Z,[2,24]),f(Z,[2,45],{33:[1,108],41:[1,109]}),f(Z,[2,49],{36:[1,110],41:[1,111]}),f(Z,[2,59],{33:[1,113],36:[1,112]}),f(Z,[2,46],{33:[1,114],41:[1,115]}),f(Z,[2,51],{38:[1,116],41:[1,117]}),f(Z,[2,62],{33:[1,119],38:[1,118]}),f(Z,[2,48],{36:[1,120],41:[1,121]}),f(Z,[2,50],{38:[1,122],41:[1,123]}),f(Z,[2,63],{36:[1,124],38:[1,125]}),f(Z,[2,60],{33:[1,127],36:[1,126]}),f(Z,[2,61],{33:[1,129],38:[1,128]}),f(Z,[2,64],{36:[1,130],38:[1,131]}),{37:132,42:mt,43:nt,44:at},{34:[1,133]},{34:[1,134]},{34:[1,135]},{34:[1,136]},{37:137,42:mt,43:nt,44:at},{34:[1,138]},{34:[1,139]},{37:140,42:mt,43:nt,44:at},{34:[1,141]},{37:142,42:mt,43:nt,44:at},{34:[1,143]},{34:[1,144]},{34:[1,145]},{34:[1,146]},{34:[1,147]},{34:[1,148]},{34:[1,149]},{37:150,42:mt,43:nt,44:at},{34:[1,151]},{34:[1,152]},{34:[1,153]},{37:154,42:mt,43:nt,44:at},{34:[1,155]},{37:156,42:mt,43:nt,44:at},{34:[1,157]},{34:[1,158]},{34:[1,159]},{37:160,42:mt,43:nt,44:at},{34:[1,161]},f(Z,[2,33],{38:[1,162]}),f(Z,[2,34],{36:[1,163]}),f(Z,[2,32],{33:[1,164]}),f(Z,[2,35],{38:[1,165]}),f(Z,[2,30],{36:[1,166]}),f(Z,[2,31],{33:[1,167]}),f(Z,[2,56],{41:[1,168]}),f(Z,[2,69],{33:[1,169]}),f(Z,[2,57],{41:[1,170]}),f(Z,[2,80],{36:[1,171]}),f(Z,[2,70],{33:[1,172]}),f(Z,[2,79],{36:[1,173]}),f(Z,[2,55],{41:[1,174]}),f(Z,[2,68],{33:[1,175]}),f(Z,[2,54],{41:[1,176]}),f(Z,[2,74],{38:[1,177]}),f(Z,[2,67],{33:[1,178]}),f(Z,[2,73],{38:[1,179]}),f(Z,[2,53],{41:[1,180]}),f(Z,[2,81],{36:[1,181]}),f(Z,[2,52],{41:[1,182]}),f(Z,[2,75],{38:[1,183]}),f(Z,[2,76],{38:[1,184]}),f(Z,[2,82],{36:[1,185]}),f(Z,[2,66],{33:[1,186]}),f(Z,[2,77],{36:[1,187]}),f(Z,[2,65],{33:[1,188]}),f(Z,[2,71],{38:[1,189]}),f(Z,[2,72],{38:[1,190]}),f(Z,[2,78],{36:[1,191]}),{34:[1,192]},{37:193,42:mt,43:nt,44:at},{34:[1,194]},{34:[1,195]},{37:196,42:mt,43:nt,44:at},{34:[1,197]},{34:[1,198]},{34:[1,199]},{34:[1,200]},{37:201,42:mt,43:nt,44:at},{34:[1,202]},{37:203,42:mt,43:nt,44:at},{34:[1,204]},{34:[1,205]},{34:[1,206]},{34:[1,207]},{34:[1,208]},{34:[1,209]},{34:[1,210]},{37:211,42:mt,43:nt,44:at},{34:[1,212]},{34:[1,213]},{34:[1,214]},{37:215,42:mt,43:nt,44:at},{34:[1,216]},{37:217,42:mt,43:nt,44:at},{34:[1,218]},{34:[1,219]},{34:[1,220]},{37:221,42:mt,43:nt,44:at},f(Z,[2,36]),f(Z,[2,38]),f(Z,[2,37]),f(Z,[2,39]),f(Z,[2,41]),f(Z,[2,40]),f(Z,[2,97]),f(Z,[2,98]),f(Z,[2,95]),f(Z,[2,96]),f(Z,[2,100]),f(Z,[2,99]),f(Z,[2,104]),f(Z,[2,103]),f(Z,[2,102]),f(Z,[2,101]),f(Z,[2,106]),f(Z,[2,105]),f(Z,[2,94]),f(Z,[2,93]),f(Z,[2,92]),f(Z,[2,91]),f(Z,[2,89]),f(Z,[2,90]),f(Z,[2,88]),f(Z,[2,87]),f(Z,[2,86]),f(Z,[2,85]),f(Z,[2,83]),f(Z,[2,84])],defaultActions:{9:[2,114],10:[2,1],11:[2,2],19:[2,3],27:[2,4],46:[2,116],47:[2,5]},parseError:function(Ct,vt){if(!vt.recoverable){var ft=new Error(Ct);throw ft.hash=vt,ft}this.trace(Ct)},parse:function(Ct){var vt=this,ft=[0],Q=[],ht=[null],$=[],kt=this.table,W="",At=0,Nt=0,Gt=0,xe=2,Ge=1,Te=$.slice.call(arguments,1),ye=Object.create(this.lexer),ke={yy:{}};for(var Me in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Me)&&(ke.yy[Me]=this.yy[Me]);ye.setInput(Ct,ke.yy),ke.yy.lexer=ye,ke.yy.parser=this,ye.yylloc===void 0&&(ye.yylloc={});var Oe=ye.yylloc;$.push(Oe);var we=ye.options&&ye.options.ranges;function Sr(){var me;return typeof(me=Q.pop()||ye.lex()||Ge)!="number"&&(me instanceof Array&&(me=(Q=me).pop()),me=vt.symbols_[me]||me),me}typeof ke.yy.parseError=="function"?this.parseError=ke.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var _e,er,oe,ee,he,Mt,ie,pt,wt,xt={};;){if(oe=ft[ft.length-1],this.defaultActions[oe]?ee=this.defaultActions[oe]:(_e==null&&(_e=Sr()),ee=kt[oe]&&kt[oe][_e]),ee===void 0||!ee.length||!ee[0]){var Rt="";for(Mt in wt=[],kt[oe])this.terminals_[Mt]&&Mt>xe&&wt.push("'"+this.terminals_[Mt]+"'");Rt=ye.showPosition?"Parse error on line "+(At+1)+`: +`+ye.showPosition()+` +Expecting `+wt.join(", ")+", got '"+(this.terminals_[_e]||_e)+"'":"Parse error on line "+(At+1)+": Unexpected "+(_e==Ge?"end of input":"'"+(this.terminals_[_e]||_e)+"'"),this.parseError(Rt,{text:ye.match,token:this.terminals_[_e]||_e,line:ye.yylineno,loc:Oe,expected:wt})}if(ee[0]instanceof Array&&ee.length>1)throw new Error("Parse Error: multiple actions possible at state: "+oe+", token: "+_e);switch(ee[0]){case 1:ft.push(_e),ht.push(ye.yytext),$.push(ye.yylloc),ft.push(ee[1]),_e=null,er?(_e=er,er=null):(Nt=ye.yyleng,W=ye.yytext,At=ye.yylineno,Oe=ye.yylloc,Gt>0);break;case 2:if(ie=this.productions_[ee[1]][1],xt.$=ht[ht.length-ie],xt._$={first_line:$[$.length-(ie||1)].first_line,last_line:$[$.length-1].last_line,first_column:$[$.length-(ie||1)].first_column,last_column:$[$.length-1].last_column},we&&(xt._$.range=[$[$.length-(ie||1)].range[0],$[$.length-1].range[1]]),(he=this.performAction.apply(xt,[W,Nt,At,ke.yy,ee[1],ht,$].concat(Te)))!==void 0)return he;ie&&(ft=ft.slice(0,-1*ie*2),ht=ht.slice(0,-1*ie),$=$.slice(0,-1*ie)),ft.push(this.productions_[ee[1]][0]),ht.push(xt.$),$.push(xt._$),pt=kt[ft[ft.length-2]][ft[ft.length-1]],ft.push(pt);break;case 3:return!0}}return!0}},St={EOF:1,parseError:function(Ct,vt){if(!this.yy.parser)throw new Error(Ct);this.yy.parser.parseError(Ct,vt)},setInput:function(Ct,vt){return this.yy=vt||this.yy||{},this._input=Ct,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var Ct=this._input[0];return this.yytext+=Ct,this.yyleng++,this.offset++,this.match+=Ct,this.matched+=Ct,Ct.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),Ct},unput:function(Ct){var vt=Ct.length,ft=Ct.split(/(?:\r\n?|\n)/g);this._input=Ct+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-vt),this.offset-=vt;var Q=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),ft.length-1&&(this.yylineno-=ft.length-1);var ht=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:ft?(ft.length===Q.length?this.yylloc.first_column:0)+Q[Q.length-ft.length].length-ft[0].length:this.yylloc.first_column-vt},this.options.ranges&&(this.yylloc.range=[ht[0],ht[0]+this.yyleng-vt]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). +`+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(Ct){this.unput(this.match.slice(Ct))},pastInput:function(){var Ct=this.matched.substr(0,this.matched.length-this.match.length);return(Ct.length>20?"...":"")+Ct.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var Ct=this.match;return Ct.length<20&&(Ct+=this._input.substr(0,20-Ct.length)),(Ct.substr(0,20)+(Ct.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var Ct=this.pastInput(),vt=new Array(Ct.length+1).join("-");return Ct+this.upcomingInput()+` +`+vt+"^"},test_match:function(Ct,vt){var ft,Q,ht;if(this.options.backtrack_lexer&&(ht={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&&(ht.yylloc.range=this.yylloc.range.slice(0))),(Q=Ct[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=Q.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:Q?Q[Q.length-1].length-Q[Q.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+Ct[0].length},this.yytext+=Ct[0],this.match+=Ct[0],this.matches=Ct,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(Ct[0].length),this.matched+=Ct[0],ft=this.performAction.call(this,this.yy,this,vt,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),ft)return ft;if(this._backtrack){for(var $ in ht)this[$]=ht[$];return!1}return!1},next:function(){if(this.done)return this.EOF;var Ct,vt,ft,Q;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var ht=this._currentRules(),$=0;$vt[0].length)){if(vt=ft,Q=$,this.options.backtrack_lexer){if((Ct=this.test_match(ft,ht[$]))!==!1)return Ct;if(this._backtrack){vt=!1;continue}return!1}if(!this.options.flex)break}return vt?(Ct=this.test_match(vt,ht[Q]))!==!1&&Ct:this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text. +`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){return this.next()||this.lex()},begin:function(Ct){this.conditionStack.push(Ct)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(Ct){return(Ct=this.conditionStack.length-1-Math.abs(Ct||0))>=0?this.conditionStack[Ct]:"INITIAL"},pushState:function(Ct){this.begin(Ct)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(Ct,vt,ft,Q){switch(ft){case 0:return this.begin("open_directive"),49;case 1:return this.begin("type_directive"),50;case 2:return this.popState(),this.begin("arg_directive"),9;case 3:return this.popState(),this.popState(),52;case 4:return 51;case 5:return this.begin("acc_title"),20;case 6:return this.popState(),"acc_title_value";case 7:return this.begin("acc_descr"),22;case 8:return this.popState(),"acc_descr_value";case 9:this.begin("acc_descr_multiline");break;case 10:case 35:case 38:this.popState();break;case 11:return"acc_descr_multiline_value";case 12:return 14;case 13:case 14:case 15:break;case 16:return 6;case 17:return 39;case 18:return 33;case 19:return 36;case 20:return 41;case 21:return 42;case 22:return 43;case 23:return 44;case 24:return 38;case 25:return 29;case 26:return 30;case 27:return 35;case 28:return 32;case 29:return 27;case 30:case 31:return 10;case 32:return 9;case 33:return"CARET";case 34:this.begin("options");break;case 36:return 13;case 37:this.begin("string");break;case 39:return 34;case 40:return 31;case 41:return 28;case 42:return 8}},rules:[/^(?:%%\{)/i,/^(?:((?:(?!\}%%)[^:.])*))/i,/^(?::)/i,/^(?:\}%%)/i,/^(?:((?:(?!\}%%).|\n)*))/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:(\r?\n)+)/i,/^(?:\s+)/i,/^(?:#[^\n]*)/i,/^(?:%[^\n]*)/i,/^(?:gitGraph\b)/i,/^(?:commit\b)/i,/^(?:id:)/i,/^(?:type:)/i,/^(?:msg:)/i,/^(?:NORMAL\b)/i,/^(?:REVERSE\b)/i,/^(?:HIGHLIGHT\b)/i,/^(?:tag:)/i,/^(?:branch\b)/i,/^(?:order:)/i,/^(?:merge\b)/i,/^(?:cherry-pick\b)/i,/^(?:checkout\b)/i,/^(?:LR\b)/i,/^(?:BT\b)/i,/^(?::)/i,/^(?:\^)/i,/^(?:options\r?\n)/i,/^(?:[ \r\n\t]+end\b)/i,/^(?:[\s\S]+(?=[ \r\n\t]+end))/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:[0-9]+)/i,/^(?:[a-zA-Z][-_\./a-zA-Z0-9]*[-_a-zA-Z0-9])/i,/^(?:$)/i],conditions:{acc_descr_multiline:{rules:[10,11],inclusive:!1},acc_descr:{rules:[8],inclusive:!1},acc_title:{rules:[6],inclusive:!1},close_directive:{rules:[],inclusive:!1},arg_directive:{rules:[3,4],inclusive:!1},type_directive:{rules:[2,3],inclusive:!1},open_directive:{rules:[1],inclusive:!1},options:{rules:[35,36],inclusive:!1},string:{rules:[38,39],inclusive:!1},INITIAL:{rules:[0,5,7,9,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,37,40,41,42],inclusive:!0}}};function gt(){this.yy={}}return jt.lexer=St,gt.prototype=jt,jt.Parser=gt,new gt}();b.parser=m,b.Parser=m.Parser,b.parse=function(){return m.parse.apply(m,arguments)},b.main=function(f){f[1]||(console.log("Usage: "+f[0]+" FILE"),process.exit(1));var v=h(8183).readFileSync(h(6470).normalize(f[1]),"utf8");return b.parser.parse(v)},h.c[h.s]===d&&b.main(process.argv.slice(1))},6765:(d,b,h)=>{d=h.nmd(d);var m=function(){var f=function(T,O,B,z){for(B=B||{},z=T.length;z--;B[T[z]]=O);return B},v=[6,9,10],_={trace:function(){},yy:{},symbols_:{error:2,start:3,info:4,document:5,EOF:6,line:7,statement:8,NL:9,showInfo:10,$accept:0,$end:1},terminals_:{2:"error",4:"info",6:"EOF",9:"NL",10:"showInfo"},productions_:[0,[3,3],[5,0],[5,2],[7,1],[7,1],[8,1]],performAction:function(T,O,B,z,q,J,rt){switch(J.length,q){case 1:return z;case 4:break;case 6:z.setInfo(!0)}},table:[{3:1,4:[1,2]},{1:[3]},f(v,[2,2],{5:3}),{6:[1,4],7:5,8:6,9:[1,7],10:[1,8]},{1:[2,1]},f(v,[2,3]),f(v,[2,4]),f(v,[2,5]),f(v,[2,6])],defaultActions:{4:[2,1]},parseError:function(T,O){if(!O.recoverable){var B=new Error(T);throw B.hash=O,B}this.trace(T)},parse:function(T){var O=this,B=[0],z=[],q=[null],J=[],rt=this.table,ut="",Z=0,mt=0,nt=0,at=2,_t=1,jt=J.slice.call(arguments,1),St=Object.create(this.lexer),gt={yy:{}};for(var Ct in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Ct)&&(gt.yy[Ct]=this.yy[Ct]);St.setInput(T,gt.yy),gt.yy.lexer=St,gt.yy.parser=this,St.yylloc===void 0&&(St.yylloc={});var vt=St.yylloc;J.push(vt);var ft=St.options&&St.options.ranges;function Q(){var ke;return typeof(ke=z.pop()||St.lex()||_t)!="number"&&(ke instanceof Array&&(ke=(z=ke).pop()),ke=O.symbols_[ke]||ke),ke}typeof gt.yy.parseError=="function"?this.parseError=gt.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var ht,$,kt,W,At,Nt,Gt,xe,Ge,Te={};;){if(kt=B[B.length-1],this.defaultActions[kt]?W=this.defaultActions[kt]:(ht==null&&(ht=Q()),W=rt[kt]&&rt[kt][ht]),W===void 0||!W.length||!W[0]){var ye="";for(Nt in Ge=[],rt[kt])this.terminals_[Nt]&&Nt>at&&Ge.push("'"+this.terminals_[Nt]+"'");ye=St.showPosition?"Parse error on line "+(Z+1)+`: +`+St.showPosition()+` +Expecting `+Ge.join(", ")+", got '"+(this.terminals_[ht]||ht)+"'":"Parse error on line "+(Z+1)+": Unexpected "+(ht==_t?"end of input":"'"+(this.terminals_[ht]||ht)+"'"),this.parseError(ye,{text:St.match,token:this.terminals_[ht]||ht,line:St.yylineno,loc:vt,expected:Ge})}if(W[0]instanceof Array&&W.length>1)throw new Error("Parse Error: multiple actions possible at state: "+kt+", token: "+ht);switch(W[0]){case 1:B.push(ht),q.push(St.yytext),J.push(St.yylloc),B.push(W[1]),ht=null,$?(ht=$,$=null):(mt=St.yyleng,ut=St.yytext,Z=St.yylineno,vt=St.yylloc,nt>0);break;case 2:if(Gt=this.productions_[W[1]][1],Te.$=q[q.length-Gt],Te._$={first_line:J[J.length-(Gt||1)].first_line,last_line:J[J.length-1].last_line,first_column:J[J.length-(Gt||1)].first_column,last_column:J[J.length-1].last_column},ft&&(Te._$.range=[J[J.length-(Gt||1)].range[0],J[J.length-1].range[1]]),(At=this.performAction.apply(Te,[ut,mt,Z,gt.yy,W[1],q,J].concat(jt)))!==void 0)return At;Gt&&(B=B.slice(0,-1*Gt*2),q=q.slice(0,-1*Gt),J=J.slice(0,-1*Gt)),B.push(this.productions_[W[1]][0]),q.push(Te.$),J.push(Te._$),xe=rt[B[B.length-2]][B[B.length-1]],B.push(xe);break;case 3:return!0}}return!0}},A={EOF:1,parseError:function(T,O){if(!this.yy.parser)throw new Error(T);this.yy.parser.parseError(T,O)},setInput:function(T,O){return this.yy=O||this.yy||{},this._input=T,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var T=this._input[0];return this.yytext+=T,this.yyleng++,this.offset++,this.match+=T,this.matched+=T,T.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),T},unput:function(T){var O=T.length,B=T.split(/(?:\r\n?|\n)/g);this._input=T+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-O),this.offset-=O;var z=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),B.length-1&&(this.yylineno-=B.length-1);var q=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:B?(B.length===z.length?this.yylloc.first_column:0)+z[z.length-B.length].length-B[0].length:this.yylloc.first_column-O},this.options.ranges&&(this.yylloc.range=[q[0],q[0]+this.yyleng-O]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). +`+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(T){this.unput(this.match.slice(T))},pastInput:function(){var T=this.matched.substr(0,this.matched.length-this.match.length);return(T.length>20?"...":"")+T.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var T=this.match;return T.length<20&&(T+=this._input.substr(0,20-T.length)),(T.substr(0,20)+(T.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var T=this.pastInput(),O=new Array(T.length+1).join("-");return T+this.upcomingInput()+` +`+O+"^"},test_match:function(T,O){var B,z,q;if(this.options.backtrack_lexer&&(q={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(q.yylloc.range=this.yylloc.range.slice(0))),(z=T[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=z.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:z?z[z.length-1].length-z[z.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+T[0].length},this.yytext+=T[0],this.match+=T[0],this.matches=T,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(T[0].length),this.matched+=T[0],B=this.performAction.call(this,this.yy,this,O,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),B)return B;if(this._backtrack){for(var J in q)this[J]=q[J];return!1}return!1},next:function(){if(this.done)return this.EOF;var T,O,B,z;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var q=this._currentRules(),J=0;JO[0].length)){if(O=B,z=J,this.options.backtrack_lexer){if((T=this.test_match(B,q[J]))!==!1)return T;if(this._backtrack){O=!1;continue}return!1}if(!this.options.flex)break}return O?(T=this.test_match(O,q[z]))!==!1&&T:this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text. +`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){return this.next()||this.lex()},begin:function(T){this.conditionStack.push(T)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(T){return(T=this.conditionStack.length-1-Math.abs(T||0))>=0?this.conditionStack[T]:"INITIAL"},pushState:function(T){this.begin(T)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(T,O,B,z){switch(B){case 0:return 4;case 1:return 9;case 2:return"space";case 3:return 10;case 4:return 6;case 5:return"TXT"}},rules:[/^(?:info\b)/i,/^(?:[\s\n\r]+)/i,/^(?:[\s]+)/i,/^(?:showInfo\b)/i,/^(?:$)/i,/^(?:.)/i],conditions:{INITIAL:{rules:[0,1,2,3,4,5],inclusive:!0}}};function M(){this.yy={}}return _.lexer=A,M.prototype=_,_.Parser=M,new M}();b.parser=m,b.Parser=m.Parser,b.parse=function(){return m.parse.apply(m,arguments)},b.main=function(f){f[1]||(console.log("Usage: "+f[0]+" FILE"),process.exit(1));var v=h(1428).readFileSync(h(6470).normalize(f[1]),"utf8");return b.parser.parse(v)},h.c[h.s]===d&&b.main(process.argv.slice(1))},7062:(d,b,h)=>{d=h.nmd(d);var m=function(){var f=function(vt,ft,Q,ht){for(Q=Q||{},ht=vt.length;ht--;Q[vt[ht]]=ft);return Q},v=[1,4],_=[1,5],A=[1,6],M=[1,7],T=[1,9],O=[1,11,13,15,17,19,20,26,27,28,29],B=[2,5],z=[1,6,11,13,15,17,19,20,26,27,28,29],q=[26,27,28],J=[2,8],rt=[1,18],ut=[1,19],Z=[1,20],mt=[1,21],nt=[1,22],at=[1,23],_t=[1,28],jt=[6,26,27,28,29],St={trace:function(){},yy:{},symbols_:{error:2,start:3,eol:4,directive:5,PIE:6,document:7,showData:8,line:9,statement:10,txt:11,value:12,title:13,title_value:14,acc_title:15,acc_title_value:16,acc_descr:17,acc_descr_value:18,acc_descr_multiline_value:19,section:20,openDirective:21,typeDirective:22,closeDirective:23,":":24,argDirective:25,NEWLINE:26,";":27,EOF:28,open_directive:29,type_directive:30,arg_directive:31,close_directive:32,$accept:0,$end:1},terminals_:{2:"error",6:"PIE",8:"showData",11:"txt",12:"value",13:"title",14:"title_value",15:"acc_title",16:"acc_title_value",17:"acc_descr",18:"acc_descr_value",19:"acc_descr_multiline_value",20:"section",24:":",26:"NEWLINE",27:";",28:"EOF",29:"open_directive",30:"type_directive",31:"arg_directive",32:"close_directive"},productions_:[0,[3,2],[3,2],[3,2],[3,3],[7,0],[7,2],[9,2],[10,0],[10,2],[10,2],[10,2],[10,2],[10,1],[10,1],[10,1],[5,3],[5,5],[4,1],[4,1],[4,1],[21,1],[22,1],[25,1],[23,1]],performAction:function(vt,ft,Q,ht,$,kt,W){var At=kt.length-1;switch($){case 4:ht.setShowData(!0);break;case 7:this.$=kt[At-1];break;case 9:ht.addSection(kt[At-1],ht.cleanupValue(kt[At]));break;case 10:this.$=kt[At].trim(),ht.setDiagramTitle(this.$);break;case 11:this.$=kt[At].trim(),ht.setAccTitle(this.$);break;case 12:case 13:this.$=kt[At].trim(),ht.setAccDescription(this.$);break;case 14:ht.addSection(kt[At].substr(8)),this.$=kt[At].substr(8);break;case 21:ht.parseDirective("%%{","open_directive");break;case 22:ht.parseDirective(kt[At],"type_directive");break;case 23:kt[At]=kt[At].trim().replace(/'/g,'"'),ht.parseDirective(kt[At],"arg_directive");break;case 24:ht.parseDirective("}%%","close_directive","pie")}},table:[{3:1,4:2,5:3,6:v,21:8,26:_,27:A,28:M,29:T},{1:[3]},{3:10,4:2,5:3,6:v,21:8,26:_,27:A,28:M,29:T},{3:11,4:2,5:3,6:v,21:8,26:_,27:A,28:M,29:T},f(O,B,{7:12,8:[1,13]}),f(z,[2,18]),f(z,[2,19]),f(z,[2,20]),{22:14,30:[1,15]},{30:[2,21]},{1:[2,1]},{1:[2,2]},f(q,J,{21:8,9:16,10:17,5:24,1:[2,3],11:rt,13:ut,15:Z,17:mt,19:nt,20:at,29:T}),f(O,B,{7:25}),{23:26,24:[1,27],32:_t},f([24,32],[2,22]),f(O,[2,6]),{4:29,26:_,27:A,28:M},{12:[1,30]},{14:[1,31]},{16:[1,32]},{18:[1,33]},f(q,[2,13]),f(q,[2,14]),f(q,[2,15]),f(q,J,{21:8,9:16,10:17,5:24,1:[2,4],11:rt,13:ut,15:Z,17:mt,19:nt,20:at,29:T}),f(jt,[2,16]),{25:34,31:[1,35]},f(jt,[2,24]),f(O,[2,7]),f(q,[2,9]),f(q,[2,10]),f(q,[2,11]),f(q,[2,12]),{23:36,32:_t},{32:[2,23]},f(jt,[2,17])],defaultActions:{9:[2,21],10:[2,1],11:[2,2],35:[2,23]},parseError:function(vt,ft){if(!ft.recoverable){var Q=new Error(vt);throw Q.hash=ft,Q}this.trace(vt)},parse:function(vt){var ft=this,Q=[0],ht=[],$=[null],kt=[],W=this.table,At="",Nt=0,Gt=0,xe=0,Ge=2,Te=1,ye=kt.slice.call(arguments,1),ke=Object.create(this.lexer),Me={yy:{}};for(var Oe in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Oe)&&(Me.yy[Oe]=this.yy[Oe]);ke.setInput(vt,Me.yy),Me.yy.lexer=ke,Me.yy.parser=this,ke.yylloc===void 0&&(ke.yylloc={});var we=ke.yylloc;kt.push(we);var Sr=ke.options&&ke.options.ranges;function _e(){var Pe;return typeof(Pe=ht.pop()||ke.lex()||Te)!="number"&&(Pe instanceof Array&&(Pe=(ht=Pe).pop()),Pe=ft.symbols_[Pe]||Pe),Pe}typeof Me.yy.parseError=="function"?this.parseError=Me.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var er,oe,ee,he,Mt,ie,pt,wt,xt,Rt={};;){if(ee=Q[Q.length-1],this.defaultActions[ee]?he=this.defaultActions[ee]:(er==null&&(er=_e()),he=W[ee]&&W[ee][er]),he===void 0||!he.length||!he[0]){var me="";for(ie in xt=[],W[ee])this.terminals_[ie]&&ie>Ge&&xt.push("'"+this.terminals_[ie]+"'");me=ke.showPosition?"Parse error on line "+(Nt+1)+`: +`+ke.showPosition()+` +Expecting `+xt.join(", ")+", got '"+(this.terminals_[er]||er)+"'":"Parse error on line "+(Nt+1)+": Unexpected "+(er==Te?"end of input":"'"+(this.terminals_[er]||er)+"'"),this.parseError(me,{text:ke.match,token:this.terminals_[er]||er,line:ke.yylineno,loc:we,expected:xt})}if(he[0]instanceof Array&&he.length>1)throw new Error("Parse Error: multiple actions possible at state: "+ee+", token: "+er);switch(he[0]){case 1:Q.push(er),$.push(ke.yytext),kt.push(ke.yylloc),Q.push(he[1]),er=null,oe?(er=oe,oe=null):(Gt=ke.yyleng,At=ke.yytext,Nt=ke.yylineno,we=ke.yylloc,xe>0);break;case 2:if(pt=this.productions_[he[1]][1],Rt.$=$[$.length-pt],Rt._$={first_line:kt[kt.length-(pt||1)].first_line,last_line:kt[kt.length-1].last_line,first_column:kt[kt.length-(pt||1)].first_column,last_column:kt[kt.length-1].last_column},Sr&&(Rt._$.range=[kt[kt.length-(pt||1)].range[0],kt[kt.length-1].range[1]]),(Mt=this.performAction.apply(Rt,[At,Gt,Nt,Me.yy,he[1],$,kt].concat(ye)))!==void 0)return Mt;pt&&(Q=Q.slice(0,-1*pt*2),$=$.slice(0,-1*pt),kt=kt.slice(0,-1*pt)),Q.push(this.productions_[he[1]][0]),$.push(Rt.$),kt.push(Rt._$),wt=W[Q[Q.length-2]][Q[Q.length-1]],Q.push(wt);break;case 3:return!0}}return!0}},gt={EOF:1,parseError:function(vt,ft){if(!this.yy.parser)throw new Error(vt);this.yy.parser.parseError(vt,ft)},setInput:function(vt,ft){return this.yy=ft||this.yy||{},this._input=vt,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var vt=this._input[0];return this.yytext+=vt,this.yyleng++,this.offset++,this.match+=vt,this.matched+=vt,vt.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),vt},unput:function(vt){var ft=vt.length,Q=vt.split(/(?:\r\n?|\n)/g);this._input=vt+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-ft),this.offset-=ft;var ht=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),Q.length-1&&(this.yylineno-=Q.length-1);var $=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:Q?(Q.length===ht.length?this.yylloc.first_column:0)+ht[ht.length-Q.length].length-Q[0].length:this.yylloc.first_column-ft},this.options.ranges&&(this.yylloc.range=[$[0],$[0]+this.yyleng-ft]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). +`+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(vt){this.unput(this.match.slice(vt))},pastInput:function(){var vt=this.matched.substr(0,this.matched.length-this.match.length);return(vt.length>20?"...":"")+vt.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var vt=this.match;return vt.length<20&&(vt+=this._input.substr(0,20-vt.length)),(vt.substr(0,20)+(vt.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var vt=this.pastInput(),ft=new Array(vt.length+1).join("-");return vt+this.upcomingInput()+` +`+ft+"^"},test_match:function(vt,ft){var Q,ht,$;if(this.options.backtrack_lexer&&($={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&&($.yylloc.range=this.yylloc.range.slice(0))),(ht=vt[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=ht.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:ht?ht[ht.length-1].length-ht[ht.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+vt[0].length},this.yytext+=vt[0],this.match+=vt[0],this.matches=vt,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(vt[0].length),this.matched+=vt[0],Q=this.performAction.call(this,this.yy,this,ft,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),Q)return Q;if(this._backtrack){for(var kt in $)this[kt]=$[kt];return!1}return!1},next:function(){if(this.done)return this.EOF;var vt,ft,Q,ht;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var $=this._currentRules(),kt=0;kt<$.length;kt++)if((Q=this._input.match(this.rules[$[kt]]))&&(!ft||Q[0].length>ft[0].length)){if(ft=Q,ht=kt,this.options.backtrack_lexer){if((vt=this.test_match(Q,$[kt]))!==!1)return vt;if(this._backtrack){ft=!1;continue}return!1}if(!this.options.flex)break}return ft?(vt=this.test_match(ft,$[ht]))!==!1&&vt:this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text. +`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){return this.next()||this.lex()},begin:function(vt){this.conditionStack.push(vt)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(vt){return(vt=this.conditionStack.length-1-Math.abs(vt||0))>=0?this.conditionStack[vt]:"INITIAL"},pushState:function(vt){this.begin(vt)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(vt,ft,Q,ht){switch(Q){case 0:return this.begin("open_directive"),29;case 1:return this.begin("type_directive"),30;case 2:return this.popState(),this.begin("arg_directive"),24;case 3:return this.popState(),this.popState(),32;case 4:return 31;case 5:case 6:case 8:case 9:break;case 7:return 26;case 10:return this.begin("title"),13;case 11:return this.popState(),"title_value";case 12:return this.begin("acc_title"),15;case 13:return this.popState(),"acc_title_value";case 14:return this.begin("acc_descr"),17;case 15:return this.popState(),"acc_descr_value";case 16:this.begin("acc_descr_multiline");break;case 17:case 20:this.popState();break;case 18:return"acc_descr_multiline_value";case 19:this.begin("string");break;case 21:return"txt";case 22:return 6;case 23:return 8;case 24:return"value";case 25:return 28}},rules:[/^(?:%%\{)/i,/^(?:((?:(?!\}%%)[^:.])*))/i,/^(?::)/i,/^(?:\}%%)/i,/^(?:((?:(?!\}%%).|\n)*))/i,/^(?:%%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n\r]+)/i,/^(?:%%[^\n]*)/i,/^(?:[\s]+)/i,/^(?:title\b)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:pie\b)/i,/^(?:showData\b)/i,/^(?::[\s]*[\d]+(?:\.[\d]+)?)/i,/^(?:$)/i],conditions:{acc_descr_multiline:{rules:[17,18],inclusive:!1},acc_descr:{rules:[15],inclusive:!1},acc_title:{rules:[13],inclusive:!1},close_directive:{rules:[],inclusive:!1},arg_directive:{rules:[3,4],inclusive:!1},type_directive:{rules:[2,3],inclusive:!1},open_directive:{rules:[1],inclusive:!1},title:{rules:[11],inclusive:!1},string:{rules:[20,21],inclusive:!1},INITIAL:{rules:[0,5,6,7,8,9,10,12,14,16,19,22,23,24,25],inclusive:!0}}};function Ct(){this.yy={}}return St.lexer=gt,Ct.prototype=St,St.Parser=Ct,new Ct}();b.parser=m,b.Parser=m.Parser,b.parse=function(){return m.parse.apply(m,arguments)},b.main=function(f){f[1]||(console.log("Usage: "+f[0]+" FILE"),process.exit(1));var v=h(4551).readFileSync(h(6470).normalize(f[1]),"utf8");return b.parser.parse(v)},h.c[h.s]===d&&b.main(process.argv.slice(1))},3176:(d,b,h)=>{d=h.nmd(d);var m=function(){var f=function(oe,ee,he,Mt){for(he=he||{},Mt=oe.length;Mt--;he[oe[Mt]]=ee);return he},v=[1,3],_=[1,5],A=[1,6],M=[1,7],T=[1,8],O=[5,6,8,14,16,18,19,40,41,42,43,44,45,53,71,72],B=[1,22],z=[2,13],q=[1,26],J=[1,27],rt=[1,28],ut=[1,29],Z=[1,30],mt=[1,31],nt=[1,24],at=[1,32],_t=[1,33],jt=[1,36],St=[71,72],gt=[5,8,14,16,18,19,40,41,42,43,44,45,53,60,62,71,72],Ct=[1,56],vt=[1,57],ft=[1,58],Q=[1,59],ht=[1,60],$=[1,61],kt=[1,62],W=[62,63],At=[1,74],Nt=[1,70],Gt=[1,71],xe=[1,72],Ge=[1,73],Te=[1,75],ye=[1,79],ke=[1,80],Me=[1,77],Oe=[1,78],we=[5,8,14,16,18,19,40,41,42,43,44,45,53,71,72],Sr={trace:function(){},yy:{},symbols_:{error:2,start:3,directive:4,NEWLINE:5,RD:6,diagram:7,EOF:8,openDirective:9,typeDirective:10,closeDirective:11,":":12,argDirective:13,acc_title:14,acc_title_value:15,acc_descr:16,acc_descr_value:17,acc_descr_multiline_value:18,open_directive:19,type_directive:20,arg_directive:21,close_directive:22,requirementDef:23,elementDef:24,relationshipDef:25,requirementType:26,requirementName:27,STRUCT_START:28,requirementBody:29,ID:30,COLONSEP:31,id:32,TEXT:33,text:34,RISK:35,riskLevel:36,VERIFYMTHD:37,verifyType:38,STRUCT_STOP:39,REQUIREMENT:40,FUNCTIONAL_REQUIREMENT:41,INTERFACE_REQUIREMENT:42,PERFORMANCE_REQUIREMENT:43,PHYSICAL_REQUIREMENT:44,DESIGN_CONSTRAINT:45,LOW_RISK:46,MED_RISK:47,HIGH_RISK:48,VERIFY_ANALYSIS:49,VERIFY_DEMONSTRATION:50,VERIFY_INSPECTION:51,VERIFY_TEST:52,ELEMENT:53,elementName:54,elementBody:55,TYPE:56,type:57,DOCREF:58,ref:59,END_ARROW_L:60,relationship:61,LINE:62,END_ARROW_R:63,CONTAINS:64,COPIES:65,DERIVES:66,SATISFIES:67,VERIFIES:68,REFINES:69,TRACES:70,unqString:71,qString:72,$accept:0,$end:1},terminals_:{2:"error",5:"NEWLINE",6:"RD",8:"EOF",12:":",14:"acc_title",15:"acc_title_value",16:"acc_descr",17:"acc_descr_value",18:"acc_descr_multiline_value",19:"open_directive",20:"type_directive",21:"arg_directive",22:"close_directive",28:"STRUCT_START",30:"ID",31:"COLONSEP",33:"TEXT",35:"RISK",37:"VERIFYMTHD",39:"STRUCT_STOP",40:"REQUIREMENT",41:"FUNCTIONAL_REQUIREMENT",42:"INTERFACE_REQUIREMENT",43:"PERFORMANCE_REQUIREMENT",44:"PHYSICAL_REQUIREMENT",45:"DESIGN_CONSTRAINT",46:"LOW_RISK",47:"MED_RISK",48:"HIGH_RISK",49:"VERIFY_ANALYSIS",50:"VERIFY_DEMONSTRATION",51:"VERIFY_INSPECTION",52:"VERIFY_TEST",53:"ELEMENT",56:"TYPE",58:"DOCREF",60:"END_ARROW_L",62:"LINE",63:"END_ARROW_R",64:"CONTAINS",65:"COPIES",66:"DERIVES",67:"SATISFIES",68:"VERIFIES",69:"REFINES",70:"TRACES",71:"unqString",72:"qString"},productions_:[0,[3,3],[3,2],[3,4],[4,3],[4,5],[4,2],[4,2],[4,1],[9,1],[10,1],[13,1],[11,1],[7,0],[7,2],[7,2],[7,2],[7,2],[7,2],[23,5],[29,5],[29,5],[29,5],[29,5],[29,2],[29,1],[26,1],[26,1],[26,1],[26,1],[26,1],[26,1],[36,1],[36,1],[36,1],[38,1],[38,1],[38,1],[38,1],[24,5],[55,5],[55,5],[55,2],[55,1],[25,5],[25,5],[61,1],[61,1],[61,1],[61,1],[61,1],[61,1],[61,1],[27,1],[27,1],[32,1],[32,1],[34,1],[34,1],[54,1],[54,1],[57,1],[57,1],[59,1],[59,1]],performAction:function(oe,ee,he,Mt,ie,pt,wt){var xt=pt.length-1;switch(ie){case 6:this.$=pt[xt].trim(),Mt.setAccTitle(this.$);break;case 7:case 8:this.$=pt[xt].trim(),Mt.setAccDescription(this.$);break;case 9:Mt.parseDirective("%%{","open_directive");break;case 10:Mt.parseDirective(pt[xt],"type_directive");break;case 11:pt[xt]=pt[xt].trim().replace(/'/g,'"'),Mt.parseDirective(pt[xt],"arg_directive");break;case 12:Mt.parseDirective("}%%","close_directive","pie");break;case 13:this.$=[];break;case 19:Mt.addRequirement(pt[xt-3],pt[xt-4]);break;case 20:Mt.setNewReqId(pt[xt-2]);break;case 21:Mt.setNewReqText(pt[xt-2]);break;case 22:Mt.setNewReqRisk(pt[xt-2]);break;case 23:Mt.setNewReqVerifyMethod(pt[xt-2]);break;case 26:this.$=Mt.RequirementType.REQUIREMENT;break;case 27:this.$=Mt.RequirementType.FUNCTIONAL_REQUIREMENT;break;case 28:this.$=Mt.RequirementType.INTERFACE_REQUIREMENT;break;case 29:this.$=Mt.RequirementType.PERFORMANCE_REQUIREMENT;break;case 30:this.$=Mt.RequirementType.PHYSICAL_REQUIREMENT;break;case 31:this.$=Mt.RequirementType.DESIGN_CONSTRAINT;break;case 32:this.$=Mt.RiskLevel.LOW_RISK;break;case 33:this.$=Mt.RiskLevel.MED_RISK;break;case 34:this.$=Mt.RiskLevel.HIGH_RISK;break;case 35:this.$=Mt.VerifyType.VERIFY_ANALYSIS;break;case 36:this.$=Mt.VerifyType.VERIFY_DEMONSTRATION;break;case 37:this.$=Mt.VerifyType.VERIFY_INSPECTION;break;case 38:this.$=Mt.VerifyType.VERIFY_TEST;break;case 39:Mt.addElement(pt[xt-3]);break;case 40:Mt.setNewElementType(pt[xt-2]);break;case 41:Mt.setNewElementDocRef(pt[xt-2]);break;case 44:Mt.addRelationship(pt[xt-2],pt[xt],pt[xt-4]);break;case 45:Mt.addRelationship(pt[xt-2],pt[xt-4],pt[xt]);break;case 46:this.$=Mt.Relationships.CONTAINS;break;case 47:this.$=Mt.Relationships.COPIES;break;case 48:this.$=Mt.Relationships.DERIVES;break;case 49:this.$=Mt.Relationships.SATISFIES;break;case 50:this.$=Mt.Relationships.VERIFIES;break;case 51:this.$=Mt.Relationships.REFINES;break;case 52:this.$=Mt.Relationships.TRACES}},table:[{3:1,4:2,6:v,9:4,14:_,16:A,18:M,19:T},{1:[3]},{3:10,4:2,5:[1,9],6:v,9:4,14:_,16:A,18:M,19:T},{5:[1,11]},{10:12,20:[1,13]},{15:[1,14]},{17:[1,15]},f(O,[2,8]),{20:[2,9]},{3:16,4:2,6:v,9:4,14:_,16:A,18:M,19:T},{1:[2,2]},{4:21,5:B,7:17,8:z,9:4,14:_,16:A,18:M,19:T,23:18,24:19,25:20,26:23,32:25,40:q,41:J,42:rt,43:ut,44:Z,45:mt,53:nt,71:at,72:_t},{11:34,12:[1,35],22:jt},f([12,22],[2,10]),f(O,[2,6]),f(O,[2,7]),{1:[2,1]},{8:[1,37]},{4:21,5:B,7:38,8:z,9:4,14:_,16:A,18:M,19:T,23:18,24:19,25:20,26:23,32:25,40:q,41:J,42:rt,43:ut,44:Z,45:mt,53:nt,71:at,72:_t},{4:21,5:B,7:39,8:z,9:4,14:_,16:A,18:M,19:T,23:18,24:19,25:20,26:23,32:25,40:q,41:J,42:rt,43:ut,44:Z,45:mt,53:nt,71:at,72:_t},{4:21,5:B,7:40,8:z,9:4,14:_,16:A,18:M,19:T,23:18,24:19,25:20,26:23,32:25,40:q,41:J,42:rt,43:ut,44:Z,45:mt,53:nt,71:at,72:_t},{4:21,5:B,7:41,8:z,9:4,14:_,16:A,18:M,19:T,23:18,24:19,25:20,26:23,32:25,40:q,41:J,42:rt,43:ut,44:Z,45:mt,53:nt,71:at,72:_t},{4:21,5:B,7:42,8:z,9:4,14:_,16:A,18:M,19:T,23:18,24:19,25:20,26:23,32:25,40:q,41:J,42:rt,43:ut,44:Z,45:mt,53:nt,71:at,72:_t},{27:43,71:[1,44],72:[1,45]},{54:46,71:[1,47],72:[1,48]},{60:[1,49],62:[1,50]},f(St,[2,26]),f(St,[2,27]),f(St,[2,28]),f(St,[2,29]),f(St,[2,30]),f(St,[2,31]),f(gt,[2,55]),f(gt,[2,56]),f(O,[2,4]),{13:51,21:[1,52]},f(O,[2,12]),{1:[2,3]},{8:[2,14]},{8:[2,15]},{8:[2,16]},{8:[2,17]},{8:[2,18]},{28:[1,53]},{28:[2,53]},{28:[2,54]},{28:[1,54]},{28:[2,59]},{28:[2,60]},{61:55,64:Ct,65:vt,66:ft,67:Q,68:ht,69:$,70:kt},{61:63,64:Ct,65:vt,66:ft,67:Q,68:ht,69:$,70:kt},{11:64,22:jt},{22:[2,11]},{5:[1,65]},{5:[1,66]},{62:[1,67]},f(W,[2,46]),f(W,[2,47]),f(W,[2,48]),f(W,[2,49]),f(W,[2,50]),f(W,[2,51]),f(W,[2,52]),{63:[1,68]},f(O,[2,5]),{5:At,29:69,30:Nt,33:Gt,35:xe,37:Ge,39:Te},{5:ye,39:ke,55:76,56:Me,58:Oe},{32:81,71:at,72:_t},{32:82,71:at,72:_t},f(we,[2,19]),{31:[1,83]},{31:[1,84]},{31:[1,85]},{31:[1,86]},{5:At,29:87,30:Nt,33:Gt,35:xe,37:Ge,39:Te},f(we,[2,25]),f(we,[2,39]),{31:[1,88]},{31:[1,89]},{5:ye,39:ke,55:90,56:Me,58:Oe},f(we,[2,43]),f(we,[2,44]),f(we,[2,45]),{32:91,71:at,72:_t},{34:92,71:[1,93],72:[1,94]},{36:95,46:[1,96],47:[1,97],48:[1,98]},{38:99,49:[1,100],50:[1,101],51:[1,102],52:[1,103]},f(we,[2,24]),{57:104,71:[1,105],72:[1,106]},{59:107,71:[1,108],72:[1,109]},f(we,[2,42]),{5:[1,110]},{5:[1,111]},{5:[2,57]},{5:[2,58]},{5:[1,112]},{5:[2,32]},{5:[2,33]},{5:[2,34]},{5:[1,113]},{5:[2,35]},{5:[2,36]},{5:[2,37]},{5:[2,38]},{5:[1,114]},{5:[2,61]},{5:[2,62]},{5:[1,115]},{5:[2,63]},{5:[2,64]},{5:At,29:116,30:Nt,33:Gt,35:xe,37:Ge,39:Te},{5:At,29:117,30:Nt,33:Gt,35:xe,37:Ge,39:Te},{5:At,29:118,30:Nt,33:Gt,35:xe,37:Ge,39:Te},{5:At,29:119,30:Nt,33:Gt,35:xe,37:Ge,39:Te},{5:ye,39:ke,55:120,56:Me,58:Oe},{5:ye,39:ke,55:121,56:Me,58:Oe},f(we,[2,20]),f(we,[2,21]),f(we,[2,22]),f(we,[2,23]),f(we,[2,40]),f(we,[2,41])],defaultActions:{8:[2,9],10:[2,2],16:[2,1],37:[2,3],38:[2,14],39:[2,15],40:[2,16],41:[2,17],42:[2,18],44:[2,53],45:[2,54],47:[2,59],48:[2,60],52:[2,11],93:[2,57],94:[2,58],96:[2,32],97:[2,33],98:[2,34],100:[2,35],101:[2,36],102:[2,37],103:[2,38],105:[2,61],106:[2,62],108:[2,63],109:[2,64]},parseError:function(oe,ee){if(!ee.recoverable){var he=new Error(oe);throw he.hash=ee,he}this.trace(oe)},parse:function(oe){var ee=this,he=[0],Mt=[],ie=[null],pt=[],wt=this.table,xt="",Rt=0,me=0,Pe=0,ar=2,Ze=1,ur=pt.slice.call(arguments,1),ze=Object.create(this.lexer),Ce={yy:{}};for(var Be in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Be)&&(Ce.yy[Be]=this.yy[Be]);ze.setInput(oe,Ce.yy),Ce.yy.lexer=ze,Ce.yy.parser=this,ze.yylloc===void 0&&(ze.yylloc={});var Fe=ze.yylloc;pt.push(Fe);var be=ze.options&&ze.options.ranges;function se(){var Ie;return typeof(Ie=Mt.pop()||ze.lex()||Ze)!="number"&&(Ie instanceof Array&&(Ie=(Mt=Ie).pop()),Ie=ee.symbols_[Ie]||Ie),Ie}typeof Ce.yy.parseError=="function"?this.parseError=Ce.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var Lr,Ue,dr,qe,gr,rn,Dr,Ar,De,rr={};;){if(dr=he[he.length-1],this.defaultActions[dr]?qe=this.defaultActions[dr]:(Lr==null&&(Lr=se()),qe=wt[dr]&&wt[dr][Lr]),qe===void 0||!qe.length||!qe[0]){var Qe="";for(rn in De=[],wt[dr])this.terminals_[rn]&&rn>ar&&De.push("'"+this.terminals_[rn]+"'");Qe=ze.showPosition?"Parse error on line "+(Rt+1)+`: +`+ze.showPosition()+` +Expecting `+De.join(", ")+", got '"+(this.terminals_[Lr]||Lr)+"'":"Parse error on line "+(Rt+1)+": Unexpected "+(Lr==Ze?"end of input":"'"+(this.terminals_[Lr]||Lr)+"'"),this.parseError(Qe,{text:ze.match,token:this.terminals_[Lr]||Lr,line:ze.yylineno,loc:Fe,expected:De})}if(qe[0]instanceof Array&&qe.length>1)throw new Error("Parse Error: multiple actions possible at state: "+dr+", token: "+Lr);switch(qe[0]){case 1:he.push(Lr),ie.push(ze.yytext),pt.push(ze.yylloc),he.push(qe[1]),Lr=null,Ue?(Lr=Ue,Ue=null):(me=ze.yyleng,xt=ze.yytext,Rt=ze.yylineno,Fe=ze.yylloc,Pe>0);break;case 2:if(Dr=this.productions_[qe[1]][1],rr.$=ie[ie.length-Dr],rr._$={first_line:pt[pt.length-(Dr||1)].first_line,last_line:pt[pt.length-1].last_line,first_column:pt[pt.length-(Dr||1)].first_column,last_column:pt[pt.length-1].last_column},be&&(rr._$.range=[pt[pt.length-(Dr||1)].range[0],pt[pt.length-1].range[1]]),(gr=this.performAction.apply(rr,[xt,me,Rt,Ce.yy,qe[1],ie,pt].concat(ur)))!==void 0)return gr;Dr&&(he=he.slice(0,-1*Dr*2),ie=ie.slice(0,-1*Dr),pt=pt.slice(0,-1*Dr)),he.push(this.productions_[qe[1]][0]),ie.push(rr.$),pt.push(rr._$),Ar=wt[he[he.length-2]][he[he.length-1]],he.push(Ar);break;case 3:return!0}}return!0}},_e={EOF:1,parseError:function(oe,ee){if(!this.yy.parser)throw new Error(oe);this.yy.parser.parseError(oe,ee)},setInput:function(oe,ee){return this.yy=ee||this.yy||{},this._input=oe,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var oe=this._input[0];return this.yytext+=oe,this.yyleng++,this.offset++,this.match+=oe,this.matched+=oe,oe.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),oe},unput:function(oe){var ee=oe.length,he=oe.split(/(?:\r\n?|\n)/g);this._input=oe+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-ee),this.offset-=ee;var Mt=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),he.length-1&&(this.yylineno-=he.length-1);var ie=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:he?(he.length===Mt.length?this.yylloc.first_column:0)+Mt[Mt.length-he.length].length-he[0].length:this.yylloc.first_column-ee},this.options.ranges&&(this.yylloc.range=[ie[0],ie[0]+this.yyleng-ee]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). +`+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(oe){this.unput(this.match.slice(oe))},pastInput:function(){var oe=this.matched.substr(0,this.matched.length-this.match.length);return(oe.length>20?"...":"")+oe.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var oe=this.match;return oe.length<20&&(oe+=this._input.substr(0,20-oe.length)),(oe.substr(0,20)+(oe.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var oe=this.pastInput(),ee=new Array(oe.length+1).join("-");return oe+this.upcomingInput()+` +`+ee+"^"},test_match:function(oe,ee){var he,Mt,ie;if(this.options.backtrack_lexer&&(ie={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&&(ie.yylloc.range=this.yylloc.range.slice(0))),(Mt=oe[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=Mt.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:Mt?Mt[Mt.length-1].length-Mt[Mt.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+oe[0].length},this.yytext+=oe[0],this.match+=oe[0],this.matches=oe,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(oe[0].length),this.matched+=oe[0],he=this.performAction.call(this,this.yy,this,ee,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),he)return he;if(this._backtrack){for(var pt in ie)this[pt]=ie[pt];return!1}return!1},next:function(){if(this.done)return this.EOF;var oe,ee,he,Mt;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var ie=this._currentRules(),pt=0;ptee[0].length)){if(ee=he,Mt=pt,this.options.backtrack_lexer){if((oe=this.test_match(he,ie[pt]))!==!1)return oe;if(this._backtrack){ee=!1;continue}return!1}if(!this.options.flex)break}return ee?(oe=this.test_match(ee,ie[Mt]))!==!1&&oe:this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text. +`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){return this.next()||this.lex()},begin:function(oe){this.conditionStack.push(oe)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(oe){return(oe=this.conditionStack.length-1-Math.abs(oe||0))>=0?this.conditionStack[oe]:"INITIAL"},pushState:function(oe){this.begin(oe)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(oe,ee,he,Mt){switch(he){case 0:return this.begin("open_directive"),19;case 1:return this.begin("type_directive"),20;case 2:return this.popState(),this.begin("arg_directive"),12;case 3:return this.popState(),this.popState(),22;case 4:return 21;case 5:return"title";case 6:return this.begin("acc_title"),14;case 7:return this.popState(),"acc_title_value";case 8:return this.begin("acc_descr"),16;case 9:return this.popState(),"acc_descr_value";case 10:this.begin("acc_descr_multiline");break;case 11:case 53:this.popState();break;case 12:return"acc_descr_multiline_value";case 13:return 5;case 14:case 15:case 16:break;case 17:return 8;case 18:return 6;case 19:return 28;case 20:return 39;case 21:return 31;case 22:return 30;case 23:return 33;case 24:return 35;case 25:return 37;case 26:return 40;case 27:return 41;case 28:return 42;case 29:return 43;case 30:return 44;case 31:return 45;case 32:return 46;case 33:return 47;case 34:return 48;case 35:return 49;case 36:return 50;case 37:return 51;case 38:return 52;case 39:return 53;case 40:return 64;case 41:return 65;case 42:return 66;case 43:return 67;case 44:return 68;case 45:return 69;case 46:return 70;case 47:return 56;case 48:return 58;case 49:return 60;case 50:return 63;case 51:return 62;case 52:this.begin("string");break;case 54:return"qString";case 55:return ee.yytext=ee.yytext.trim(),71}},rules:[/^(?:%%\{)/i,/^(?:((?:(?!\}%%)[^:.])*))/i,/^(?::)/i,/^(?:\}%%)/i,/^(?:((?:(?!\}%%).|\n)*))/i,/^(?:title\s[^#\n;]+)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:(\r?\n)+)/i,/^(?:\s+)/i,/^(?:#[^\n]*)/i,/^(?:%[^\n]*)/i,/^(?:$)/i,/^(?:requirementDiagram\b)/i,/^(?:\{)/i,/^(?:\})/i,/^(?::)/i,/^(?:id\b)/i,/^(?:text\b)/i,/^(?:risk\b)/i,/^(?:verifyMethod\b)/i,/^(?:requirement\b)/i,/^(?:functionalRequirement\b)/i,/^(?:interfaceRequirement\b)/i,/^(?:performanceRequirement\b)/i,/^(?:physicalRequirement\b)/i,/^(?:designConstraint\b)/i,/^(?:low\b)/i,/^(?:medium\b)/i,/^(?:high\b)/i,/^(?:analysis\b)/i,/^(?:demonstration\b)/i,/^(?:inspection\b)/i,/^(?:test\b)/i,/^(?:element\b)/i,/^(?:contains\b)/i,/^(?:copies\b)/i,/^(?:derives\b)/i,/^(?:satisfies\b)/i,/^(?:verifies\b)/i,/^(?:refines\b)/i,/^(?:traces\b)/i,/^(?:type\b)/i,/^(?:docref\b)/i,/^(?:<-)/i,/^(?:->)/i,/^(?:-)/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:[\w][^\r\n\{\<\>\-\=]*)/i],conditions:{acc_descr_multiline:{rules:[11,12],inclusive:!1},acc_descr:{rules:[9],inclusive:!1},acc_title:{rules:[7],inclusive:!1},close_directive:{rules:[],inclusive:!1},arg_directive:{rules:[3,4],inclusive:!1},type_directive:{rules:[2,3],inclusive:!1},open_directive:{rules:[1],inclusive:!1},unqString:{rules:[],inclusive:!1},token:{rules:[],inclusive:!1},string:{rules:[53,54],inclusive:!1},INITIAL:{rules:[0,5,6,8,10,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,55],inclusive:!0}}};function er(){this.yy={}}return Sr.lexer=_e,er.prototype=Sr,Sr.Parser=er,new er}();b.parser=m,b.Parser=m.Parser,b.parse=function(){return m.parse.apply(m,arguments)},b.main=function(f){f[1]||(console.log("Usage: "+f[0]+" FILE"),process.exit(1));var v=h(8800).readFileSync(h(6470).normalize(f[1]),"utf8");return b.parser.parse(v)},h.c[h.s]===d&&b.main(process.argv.slice(1))},6876:(d,b,h)=>{d=h.nmd(d);var m=function(){var f=function(oe,ee,he,Mt){for(he=he||{},Mt=oe.length;Mt--;he[oe[Mt]]=ee);return he},v=[1,2],_=[1,3],A=[1,5],M=[1,7],T=[2,5],O=[1,15],B=[1,17],z=[1,18],q=[1,19],J=[1,21],rt=[1,22],ut=[1,23],Z=[1,29],mt=[1,30],nt=[1,31],at=[1,32],_t=[1,33],jt=[1,34],St=[1,35],gt=[1,36],Ct=[1,37],vt=[1,38],ft=[1,39],Q=[1,40],ht=[1,43],$=[1,44],kt=[1,45],W=[1,46],At=[1,47],Nt=[1,48],Gt=[1,51],xe=[1,4,5,16,20,22,25,26,32,33,34,36,38,39,40,41,42,43,45,47,49,50,51,52,53,58,59,60,61,69,79],Ge=[4,5,16,20,22,25,26,32,33,34,36,38,39,40,41,42,43,45,47,49,53,58,59,60,61,69,79],Te=[4,5,16,20,22,25,26,32,33,34,36,38,39,40,41,42,43,45,47,49,52,53,58,59,60,61,69,79],ye=[4,5,16,20,22,25,26,32,33,34,36,38,39,40,41,42,43,45,47,49,51,53,58,59,60,61,69,79],ke=[4,5,16,20,22,25,26,32,33,34,36,38,39,40,41,42,43,45,47,49,50,53,58,59,60,61,69,79],Me=[67,68,69],Oe=[1,121],we=[1,4,5,7,16,20,22,25,26,32,33,34,36,38,39,40,41,42,43,45,47,49,50,51,52,53,58,59,60,61,69,79],Sr={trace:function(){},yy:{},symbols_:{error:2,start:3,SPACE:4,NEWLINE:5,directive:6,SD:7,document:8,line:9,statement:10,openDirective:11,typeDirective:12,closeDirective:13,":":14,argDirective:15,participant:16,actor:17,AS:18,restOfLine:19,participant_actor:20,signal:21,autonumber:22,NUM:23,off:24,activate:25,deactivate:26,note_statement:27,links_statement:28,link_statement:29,properties_statement:30,details_statement:31,title:32,legacy_title:33,acc_title:34,acc_title_value:35,acc_descr:36,acc_descr_value:37,acc_descr_multiline_value:38,loop:39,end:40,rect:41,opt:42,alt:43,else_sections:44,par:45,par_sections:46,critical:47,option_sections:48,break:49,option:50,and:51,else:52,note:53,placement:54,text2:55,over:56,actor_pair:57,links:58,link:59,properties:60,details:61,spaceList:62,",":63,left_of:64,right_of:65,signaltype:66,"+":67,"-":68,ACTOR:69,SOLID_OPEN_ARROW:70,DOTTED_OPEN_ARROW:71,SOLID_ARROW:72,DOTTED_ARROW:73,SOLID_CROSS:74,DOTTED_CROSS:75,SOLID_POINT:76,DOTTED_POINT:77,TXT:78,open_directive:79,type_directive:80,arg_directive:81,close_directive:82,$accept:0,$end:1},terminals_:{2:"error",4:"SPACE",5:"NEWLINE",7:"SD",14:":",16:"participant",18:"AS",19:"restOfLine",20:"participant_actor",22:"autonumber",23:"NUM",24:"off",25:"activate",26:"deactivate",32:"title",33:"legacy_title",34:"acc_title",35:"acc_title_value",36:"acc_descr",37:"acc_descr_value",38:"acc_descr_multiline_value",39:"loop",40:"end",41:"rect",42:"opt",43:"alt",45:"par",47:"critical",49:"break",50:"option",51:"and",52:"else",53:"note",56:"over",58:"links",59:"link",60:"properties",61:"details",63:",",64:"left_of",65:"right_of",67:"+",68:"-",69:"ACTOR",70:"SOLID_OPEN_ARROW",71:"DOTTED_OPEN_ARROW",72:"SOLID_ARROW",73:"DOTTED_ARROW",74:"SOLID_CROSS",75:"DOTTED_CROSS",76:"SOLID_POINT",77:"DOTTED_POINT",78:"TXT",79:"open_directive",80:"type_directive",81:"arg_directive",82:"close_directive"},productions_:[0,[3,2],[3,2],[3,2],[3,2],[8,0],[8,2],[9,2],[9,1],[9,1],[6,4],[6,6],[10,5],[10,3],[10,5],[10,3],[10,2],[10,4],[10,3],[10,3],[10,2],[10,3],[10,3],[10,2],[10,2],[10,2],[10,2],[10,2],[10,1],[10,1],[10,2],[10,2],[10,1],[10,4],[10,4],[10,4],[10,4],[10,4],[10,4],[10,4],[10,1],[48,1],[48,4],[46,1],[46,4],[44,1],[44,4],[27,4],[27,4],[28,3],[29,3],[30,3],[31,3],[62,2],[62,1],[57,3],[57,1],[54,1],[54,1],[21,5],[21,5],[21,4],[17,1],[66,1],[66,1],[66,1],[66,1],[66,1],[66,1],[66,1],[66,1],[55,1],[11,1],[12,1],[15,1],[13,1]],performAction:function(oe,ee,he,Mt,ie,pt,wt){var xt=pt.length-1;switch(ie){case 4:return Mt.apply(pt[xt]),pt[xt];case 5:case 9:this.$=[];break;case 6:pt[xt-1].push(pt[xt]),this.$=pt[xt-1];break;case 7:case 8:case 56:this.$=pt[xt];break;case 12:pt[xt-3].type="addParticipant",pt[xt-3].description=Mt.parseMessage(pt[xt-1]),this.$=pt[xt-3];break;case 13:pt[xt-1].type="addParticipant",this.$=pt[xt-1];break;case 14:pt[xt-3].type="addActor",pt[xt-3].description=Mt.parseMessage(pt[xt-1]),this.$=pt[xt-3];break;case 15:pt[xt-1].type="addActor",this.$=pt[xt-1];break;case 17:this.$={type:"sequenceIndex",sequenceIndex:Number(pt[xt-2]),sequenceIndexStep:Number(pt[xt-1]),sequenceVisible:!0,signalType:Mt.LINETYPE.AUTONUMBER};break;case 18:this.$={type:"sequenceIndex",sequenceIndex:Number(pt[xt-1]),sequenceIndexStep:1,sequenceVisible:!0,signalType:Mt.LINETYPE.AUTONUMBER};break;case 19:this.$={type:"sequenceIndex",sequenceVisible:!1,signalType:Mt.LINETYPE.AUTONUMBER};break;case 20:this.$={type:"sequenceIndex",sequenceVisible:!0,signalType:Mt.LINETYPE.AUTONUMBER};break;case 21:this.$={type:"activeStart",signalType:Mt.LINETYPE.ACTIVE_START,actor:pt[xt-1]};break;case 22:this.$={type:"activeEnd",signalType:Mt.LINETYPE.ACTIVE_END,actor:pt[xt-1]};break;case 28:Mt.setDiagramTitle(pt[xt].substring(6)),this.$=pt[xt].substring(6);break;case 29:Mt.setDiagramTitle(pt[xt].substring(7)),this.$=pt[xt].substring(7);break;case 30:this.$=pt[xt].trim(),Mt.setAccTitle(this.$);break;case 31:case 32:this.$=pt[xt].trim(),Mt.setAccDescription(this.$);break;case 33:pt[xt-1].unshift({type:"loopStart",loopText:Mt.parseMessage(pt[xt-2]),signalType:Mt.LINETYPE.LOOP_START}),pt[xt-1].push({type:"loopEnd",loopText:pt[xt-2],signalType:Mt.LINETYPE.LOOP_END}),this.$=pt[xt-1];break;case 34:pt[xt-1].unshift({type:"rectStart",color:Mt.parseMessage(pt[xt-2]),signalType:Mt.LINETYPE.RECT_START}),pt[xt-1].push({type:"rectEnd",color:Mt.parseMessage(pt[xt-2]),signalType:Mt.LINETYPE.RECT_END}),this.$=pt[xt-1];break;case 35:pt[xt-1].unshift({type:"optStart",optText:Mt.parseMessage(pt[xt-2]),signalType:Mt.LINETYPE.OPT_START}),pt[xt-1].push({type:"optEnd",optText:Mt.parseMessage(pt[xt-2]),signalType:Mt.LINETYPE.OPT_END}),this.$=pt[xt-1];break;case 36:pt[xt-1].unshift({type:"altStart",altText:Mt.parseMessage(pt[xt-2]),signalType:Mt.LINETYPE.ALT_START}),pt[xt-1].push({type:"altEnd",signalType:Mt.LINETYPE.ALT_END}),this.$=pt[xt-1];break;case 37:pt[xt-1].unshift({type:"parStart",parText:Mt.parseMessage(pt[xt-2]),signalType:Mt.LINETYPE.PAR_START}),pt[xt-1].push({type:"parEnd",signalType:Mt.LINETYPE.PAR_END}),this.$=pt[xt-1];break;case 38:pt[xt-1].unshift({type:"criticalStart",criticalText:Mt.parseMessage(pt[xt-2]),signalType:Mt.LINETYPE.CRITICAL_START}),pt[xt-1].push({type:"criticalEnd",signalType:Mt.LINETYPE.CRITICAL_END}),this.$=pt[xt-1];break;case 39:pt[xt-1].unshift({type:"breakStart",breakText:Mt.parseMessage(pt[xt-2]),signalType:Mt.LINETYPE.BREAK_START}),pt[xt-1].push({type:"breakEnd",optText:Mt.parseMessage(pt[xt-2]),signalType:Mt.LINETYPE.BREAK_END}),this.$=pt[xt-1];break;case 42:this.$=pt[xt-3].concat([{type:"option",optionText:Mt.parseMessage(pt[xt-1]),signalType:Mt.LINETYPE.CRITICAL_OPTION},pt[xt]]);break;case 44:this.$=pt[xt-3].concat([{type:"and",parText:Mt.parseMessage(pt[xt-1]),signalType:Mt.LINETYPE.PAR_AND},pt[xt]]);break;case 46:this.$=pt[xt-3].concat([{type:"else",altText:Mt.parseMessage(pt[xt-1]),signalType:Mt.LINETYPE.ALT_ELSE},pt[xt]]);break;case 47:this.$=[pt[xt-1],{type:"addNote",placement:pt[xt-2],actor:pt[xt-1].actor,text:pt[xt]}];break;case 48:pt[xt-2]=[].concat(pt[xt-1],pt[xt-1]).slice(0,2),pt[xt-2][0]=pt[xt-2][0].actor,pt[xt-2][1]=pt[xt-2][1].actor,this.$=[pt[xt-1],{type:"addNote",placement:Mt.PLACEMENT.OVER,actor:pt[xt-2].slice(0,2),text:pt[xt]}];break;case 49:this.$=[pt[xt-1],{type:"addLinks",actor:pt[xt-1].actor,text:pt[xt]}];break;case 50:this.$=[pt[xt-1],{type:"addALink",actor:pt[xt-1].actor,text:pt[xt]}];break;case 51:this.$=[pt[xt-1],{type:"addProperties",actor:pt[xt-1].actor,text:pt[xt]}];break;case 52:this.$=[pt[xt-1],{type:"addDetails",actor:pt[xt-1].actor,text:pt[xt]}];break;case 55:this.$=[pt[xt-2],pt[xt]];break;case 57:this.$=Mt.PLACEMENT.LEFTOF;break;case 58:this.$=Mt.PLACEMENT.RIGHTOF;break;case 59:this.$=[pt[xt-4],pt[xt-1],{type:"addMessage",from:pt[xt-4].actor,to:pt[xt-1].actor,signalType:pt[xt-3],msg:pt[xt]},{type:"activeStart",signalType:Mt.LINETYPE.ACTIVE_START,actor:pt[xt-1]}];break;case 60:this.$=[pt[xt-4],pt[xt-1],{type:"addMessage",from:pt[xt-4].actor,to:pt[xt-1].actor,signalType:pt[xt-3],msg:pt[xt]},{type:"activeEnd",signalType:Mt.LINETYPE.ACTIVE_END,actor:pt[xt-4]}];break;case 61:this.$=[pt[xt-3],pt[xt-1],{type:"addMessage",from:pt[xt-3].actor,to:pt[xt-1].actor,signalType:pt[xt-2],msg:pt[xt]}];break;case 62:this.$={type:"addParticipant",actor:pt[xt]};break;case 63:this.$=Mt.LINETYPE.SOLID_OPEN;break;case 64:this.$=Mt.LINETYPE.DOTTED_OPEN;break;case 65:this.$=Mt.LINETYPE.SOLID;break;case 66:this.$=Mt.LINETYPE.DOTTED;break;case 67:this.$=Mt.LINETYPE.SOLID_CROSS;break;case 68:this.$=Mt.LINETYPE.DOTTED_CROSS;break;case 69:this.$=Mt.LINETYPE.SOLID_POINT;break;case 70:this.$=Mt.LINETYPE.DOTTED_POINT;break;case 71:this.$=Mt.parseMessage(pt[xt].trim().substring(1));break;case 72:Mt.parseDirective("%%{","open_directive");break;case 73:Mt.parseDirective(pt[xt],"type_directive");break;case 74:pt[xt]=pt[xt].trim().replace(/'/g,'"'),Mt.parseDirective(pt[xt],"arg_directive");break;case 75:Mt.parseDirective("}%%","close_directive","sequence")}},table:[{3:1,4:v,5:_,6:4,7:A,11:6,79:M},{1:[3]},{3:8,4:v,5:_,6:4,7:A,11:6,79:M},{3:9,4:v,5:_,6:4,7:A,11:6,79:M},{3:10,4:v,5:_,6:4,7:A,11:6,79:M},f([1,4,5,16,20,22,25,26,32,33,34,36,38,39,41,42,43,45,47,49,53,58,59,60,61,69,79],T,{8:11}),{12:12,80:[1,13]},{80:[2,72]},{1:[2,1]},{1:[2,2]},{1:[2,3]},{1:[2,4],4:O,5:B,6:41,9:14,10:16,11:6,16:z,17:42,20:q,21:20,22:J,25:rt,26:ut,27:24,28:25,29:26,30:27,31:28,32:Z,33:mt,34:nt,36:at,38:_t,39:jt,41:St,42:gt,43:Ct,45:vt,47:ft,49:Q,53:ht,58:$,59:kt,60:W,61:At,69:Nt,79:M},{13:49,14:[1,50],82:Gt},f([14,82],[2,73]),f(xe,[2,6]),{6:41,10:52,11:6,16:z,17:42,20:q,21:20,22:J,25:rt,26:ut,27:24,28:25,29:26,30:27,31:28,32:Z,33:mt,34:nt,36:at,38:_t,39:jt,41:St,42:gt,43:Ct,45:vt,47:ft,49:Q,53:ht,58:$,59:kt,60:W,61:At,69:Nt,79:M},f(xe,[2,8]),f(xe,[2,9]),{17:53,69:Nt},{17:54,69:Nt},{5:[1,55]},{5:[1,58],23:[1,56],24:[1,57]},{17:59,69:Nt},{17:60,69:Nt},{5:[1,61]},{5:[1,62]},{5:[1,63]},{5:[1,64]},{5:[1,65]},f(xe,[2,28]),f(xe,[2,29]),{35:[1,66]},{37:[1,67]},f(xe,[2,32]),{19:[1,68]},{19:[1,69]},{19:[1,70]},{19:[1,71]},{19:[1,72]},{19:[1,73]},{19:[1,74]},f(xe,[2,40]),{66:75,70:[1,76],71:[1,77],72:[1,78],73:[1,79],74:[1,80],75:[1,81],76:[1,82],77:[1,83]},{54:84,56:[1,85],64:[1,86],65:[1,87]},{17:88,69:Nt},{17:89,69:Nt},{17:90,69:Nt},{17:91,69:Nt},f([5,18,63,70,71,72,73,74,75,76,77,78],[2,62]),{5:[1,92]},{15:93,81:[1,94]},{5:[2,75]},f(xe,[2,7]),{5:[1,96],18:[1,95]},{5:[1,98],18:[1,97]},f(xe,[2,16]),{5:[1,100],23:[1,99]},{5:[1,101]},f(xe,[2,20]),{5:[1,102]},{5:[1,103]},f(xe,[2,23]),f(xe,[2,24]),f(xe,[2,25]),f(xe,[2,26]),f(xe,[2,27]),f(xe,[2,30]),f(xe,[2,31]),f(Ge,T,{8:104}),f(Ge,T,{8:105}),f(Ge,T,{8:106}),f(Te,T,{44:107,8:108}),f(ye,T,{46:109,8:110}),f(ke,T,{48:111,8:112}),f(Ge,T,{8:113}),{17:116,67:[1,114],68:[1,115],69:Nt},f(Me,[2,63]),f(Me,[2,64]),f(Me,[2,65]),f(Me,[2,66]),f(Me,[2,67]),f(Me,[2,68]),f(Me,[2,69]),f(Me,[2,70]),{17:117,69:Nt},{17:119,57:118,69:Nt},{69:[2,57]},{69:[2,58]},{55:120,78:Oe},{55:122,78:Oe},{55:123,78:Oe},{55:124,78:Oe},f(we,[2,10]),{13:125,82:Gt},{82:[2,74]},{19:[1,126]},f(xe,[2,13]),{19:[1,127]},f(xe,[2,15]),{5:[1,128]},f(xe,[2,18]),f(xe,[2,19]),f(xe,[2,21]),f(xe,[2,22]),{4:O,5:B,6:41,9:14,10:16,11:6,16:z,17:42,20:q,21:20,22:J,25:rt,26:ut,27:24,28:25,29:26,30:27,31:28,32:Z,33:mt,34:nt,36:at,38:_t,39:jt,40:[1,129],41:St,42:gt,43:Ct,45:vt,47:ft,49:Q,53:ht,58:$,59:kt,60:W,61:At,69:Nt,79:M},{4:O,5:B,6:41,9:14,10:16,11:6,16:z,17:42,20:q,21:20,22:J,25:rt,26:ut,27:24,28:25,29:26,30:27,31:28,32:Z,33:mt,34:nt,36:at,38:_t,39:jt,40:[1,130],41:St,42:gt,43:Ct,45:vt,47:ft,49:Q,53:ht,58:$,59:kt,60:W,61:At,69:Nt,79:M},{4:O,5:B,6:41,9:14,10:16,11:6,16:z,17:42,20:q,21:20,22:J,25:rt,26:ut,27:24,28:25,29:26,30:27,31:28,32:Z,33:mt,34:nt,36:at,38:_t,39:jt,40:[1,131],41:St,42:gt,43:Ct,45:vt,47:ft,49:Q,53:ht,58:$,59:kt,60:W,61:At,69:Nt,79:M},{40:[1,132]},{4:O,5:B,6:41,9:14,10:16,11:6,16:z,17:42,20:q,21:20,22:J,25:rt,26:ut,27:24,28:25,29:26,30:27,31:28,32:Z,33:mt,34:nt,36:at,38:_t,39:jt,40:[2,45],41:St,42:gt,43:Ct,45:vt,47:ft,49:Q,52:[1,133],53:ht,58:$,59:kt,60:W,61:At,69:Nt,79:M},{40:[1,134]},{4:O,5:B,6:41,9:14,10:16,11:6,16:z,17:42,20:q,21:20,22:J,25:rt,26:ut,27:24,28:25,29:26,30:27,31:28,32:Z,33:mt,34:nt,36:at,38:_t,39:jt,40:[2,43],41:St,42:gt,43:Ct,45:vt,47:ft,49:Q,51:[1,135],53:ht,58:$,59:kt,60:W,61:At,69:Nt,79:M},{40:[1,136]},{4:O,5:B,6:41,9:14,10:16,11:6,16:z,17:42,20:q,21:20,22:J,25:rt,26:ut,27:24,28:25,29:26,30:27,31:28,32:Z,33:mt,34:nt,36:at,38:_t,39:jt,40:[2,41],41:St,42:gt,43:Ct,45:vt,47:ft,49:Q,50:[1,137],53:ht,58:$,59:kt,60:W,61:At,69:Nt,79:M},{4:O,5:B,6:41,9:14,10:16,11:6,16:z,17:42,20:q,21:20,22:J,25:rt,26:ut,27:24,28:25,29:26,30:27,31:28,32:Z,33:mt,34:nt,36:at,38:_t,39:jt,40:[1,138],41:St,42:gt,43:Ct,45:vt,47:ft,49:Q,53:ht,58:$,59:kt,60:W,61:At,69:Nt,79:M},{17:139,69:Nt},{17:140,69:Nt},{55:141,78:Oe},{55:142,78:Oe},{55:143,78:Oe},{63:[1,144],78:[2,56]},{5:[2,49]},{5:[2,71]},{5:[2,50]},{5:[2,51]},{5:[2,52]},{5:[1,145]},{5:[1,146]},{5:[1,147]},f(xe,[2,17]),f(xe,[2,33]),f(xe,[2,34]),f(xe,[2,35]),f(xe,[2,36]),{19:[1,148]},f(xe,[2,37]),{19:[1,149]},f(xe,[2,38]),{19:[1,150]},f(xe,[2,39]),{55:151,78:Oe},{55:152,78:Oe},{5:[2,61]},{5:[2,47]},{5:[2,48]},{17:153,69:Nt},f(we,[2,11]),f(xe,[2,12]),f(xe,[2,14]),f(Te,T,{8:108,44:154}),f(ye,T,{8:110,46:155}),f(ke,T,{8:112,48:156}),{5:[2,59]},{5:[2,60]},{78:[2,55]},{40:[2,46]},{40:[2,44]},{40:[2,42]}],defaultActions:{7:[2,72],8:[2,1],9:[2,2],10:[2,3],51:[2,75],86:[2,57],87:[2,58],94:[2,74],120:[2,49],121:[2,71],122:[2,50],123:[2,51],124:[2,52],141:[2,61],142:[2,47],143:[2,48],151:[2,59],152:[2,60],153:[2,55],154:[2,46],155:[2,44],156:[2,42]},parseError:function(oe,ee){if(!ee.recoverable){var he=new Error(oe);throw he.hash=ee,he}this.trace(oe)},parse:function(oe){var ee=this,he=[0],Mt=[],ie=[null],pt=[],wt=this.table,xt="",Rt=0,me=0,Pe=0,ar=2,Ze=1,ur=pt.slice.call(arguments,1),ze=Object.create(this.lexer),Ce={yy:{}};for(var Be in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Be)&&(Ce.yy[Be]=this.yy[Be]);ze.setInput(oe,Ce.yy),Ce.yy.lexer=ze,Ce.yy.parser=this,ze.yylloc===void 0&&(ze.yylloc={});var Fe=ze.yylloc;pt.push(Fe);var be=ze.options&&ze.options.ranges;function se(){var Ie;return typeof(Ie=Mt.pop()||ze.lex()||Ze)!="number"&&(Ie instanceof Array&&(Ie=(Mt=Ie).pop()),Ie=ee.symbols_[Ie]||Ie),Ie}typeof Ce.yy.parseError=="function"?this.parseError=Ce.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var Lr,Ue,dr,qe,gr,rn,Dr,Ar,De,rr={};;){if(dr=he[he.length-1],this.defaultActions[dr]?qe=this.defaultActions[dr]:(Lr==null&&(Lr=se()),qe=wt[dr]&&wt[dr][Lr]),qe===void 0||!qe.length||!qe[0]){var Qe="";for(rn in De=[],wt[dr])this.terminals_[rn]&&rn>ar&&De.push("'"+this.terminals_[rn]+"'");Qe=ze.showPosition?"Parse error on line "+(Rt+1)+`: +`+ze.showPosition()+` +Expecting `+De.join(", ")+", got '"+(this.terminals_[Lr]||Lr)+"'":"Parse error on line "+(Rt+1)+": Unexpected "+(Lr==Ze?"end of input":"'"+(this.terminals_[Lr]||Lr)+"'"),this.parseError(Qe,{text:ze.match,token:this.terminals_[Lr]||Lr,line:ze.yylineno,loc:Fe,expected:De})}if(qe[0]instanceof Array&&qe.length>1)throw new Error("Parse Error: multiple actions possible at state: "+dr+", token: "+Lr);switch(qe[0]){case 1:he.push(Lr),ie.push(ze.yytext),pt.push(ze.yylloc),he.push(qe[1]),Lr=null,Ue?(Lr=Ue,Ue=null):(me=ze.yyleng,xt=ze.yytext,Rt=ze.yylineno,Fe=ze.yylloc,Pe>0);break;case 2:if(Dr=this.productions_[qe[1]][1],rr.$=ie[ie.length-Dr],rr._$={first_line:pt[pt.length-(Dr||1)].first_line,last_line:pt[pt.length-1].last_line,first_column:pt[pt.length-(Dr||1)].first_column,last_column:pt[pt.length-1].last_column},be&&(rr._$.range=[pt[pt.length-(Dr||1)].range[0],pt[pt.length-1].range[1]]),(gr=this.performAction.apply(rr,[xt,me,Rt,Ce.yy,qe[1],ie,pt].concat(ur)))!==void 0)return gr;Dr&&(he=he.slice(0,-1*Dr*2),ie=ie.slice(0,-1*Dr),pt=pt.slice(0,-1*Dr)),he.push(this.productions_[qe[1]][0]),ie.push(rr.$),pt.push(rr._$),Ar=wt[he[he.length-2]][he[he.length-1]],he.push(Ar);break;case 3:return!0}}return!0}},_e={EOF:1,parseError:function(oe,ee){if(!this.yy.parser)throw new Error(oe);this.yy.parser.parseError(oe,ee)},setInput:function(oe,ee){return this.yy=ee||this.yy||{},this._input=oe,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var oe=this._input[0];return this.yytext+=oe,this.yyleng++,this.offset++,this.match+=oe,this.matched+=oe,oe.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),oe},unput:function(oe){var ee=oe.length,he=oe.split(/(?:\r\n?|\n)/g);this._input=oe+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-ee),this.offset-=ee;var Mt=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),he.length-1&&(this.yylineno-=he.length-1);var ie=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:he?(he.length===Mt.length?this.yylloc.first_column:0)+Mt[Mt.length-he.length].length-he[0].length:this.yylloc.first_column-ee},this.options.ranges&&(this.yylloc.range=[ie[0],ie[0]+this.yyleng-ee]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). +`+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(oe){this.unput(this.match.slice(oe))},pastInput:function(){var oe=this.matched.substr(0,this.matched.length-this.match.length);return(oe.length>20?"...":"")+oe.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var oe=this.match;return oe.length<20&&(oe+=this._input.substr(0,20-oe.length)),(oe.substr(0,20)+(oe.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var oe=this.pastInput(),ee=new Array(oe.length+1).join("-");return oe+this.upcomingInput()+` +`+ee+"^"},test_match:function(oe,ee){var he,Mt,ie;if(this.options.backtrack_lexer&&(ie={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&&(ie.yylloc.range=this.yylloc.range.slice(0))),(Mt=oe[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=Mt.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:Mt?Mt[Mt.length-1].length-Mt[Mt.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+oe[0].length},this.yytext+=oe[0],this.match+=oe[0],this.matches=oe,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(oe[0].length),this.matched+=oe[0],he=this.performAction.call(this,this.yy,this,ee,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),he)return he;if(this._backtrack){for(var pt in ie)this[pt]=ie[pt];return!1}return!1},next:function(){if(this.done)return this.EOF;var oe,ee,he,Mt;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var ie=this._currentRules(),pt=0;ptee[0].length)){if(ee=he,Mt=pt,this.options.backtrack_lexer){if((oe=this.test_match(he,ie[pt]))!==!1)return oe;if(this._backtrack){ee=!1;continue}return!1}if(!this.options.flex)break}return ee?(oe=this.test_match(ee,ie[Mt]))!==!1&&oe:this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text. +`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){return this.next()||this.lex()},begin:function(oe){this.conditionStack.push(oe)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(oe){return(oe=this.conditionStack.length-1-Math.abs(oe||0))>=0?this.conditionStack[oe]:"INITIAL"},pushState:function(oe){this.begin(oe)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(oe,ee,he,Mt){switch(he){case 0:return this.begin("open_directive"),79;case 1:return this.begin("type_directive"),80;case 2:return this.popState(),this.begin("arg_directive"),14;case 3:return this.popState(),this.popState(),82;case 4:return 81;case 5:case 52:case 65:return 5;case 6:case 7:case 8:case 9:case 10:break;case 11:return 23;case 12:return this.begin("ID"),16;case 13:return this.begin("ID"),20;case 14:return ee.yytext=ee.yytext.trim(),this.begin("ALIAS"),69;case 15:return this.popState(),this.popState(),this.begin("LINE"),18;case 16:return this.popState(),this.popState(),5;case 17:return this.begin("LINE"),39;case 18:return this.begin("LINE"),41;case 19:return this.begin("LINE"),42;case 20:return this.begin("LINE"),43;case 21:return this.begin("LINE"),52;case 22:return this.begin("LINE"),45;case 23:return this.begin("LINE"),51;case 24:return this.begin("LINE"),47;case 25:return this.begin("LINE"),50;case 26:return this.begin("LINE"),49;case 27:return this.popState(),19;case 28:return 40;case 29:return 64;case 30:return 65;case 31:return 58;case 32:return 59;case 33:return 60;case 34:return 61;case 35:return 56;case 36:return 53;case 37:return this.begin("ID"),25;case 38:return this.begin("ID"),26;case 39:return 32;case 40:return 33;case 41:return this.begin("acc_title"),34;case 42:return this.popState(),"acc_title_value";case 43:return this.begin("acc_descr"),36;case 44:return this.popState(),"acc_descr_value";case 45:this.begin("acc_descr_multiline");break;case 46:this.popState();break;case 47:return"acc_descr_multiline_value";case 48:return 7;case 49:return 22;case 50:return 24;case 51:return 63;case 53:return ee.yytext=ee.yytext.trim(),69;case 54:return 72;case 55:return 73;case 56:return 70;case 57:return 71;case 58:return 74;case 59:return 75;case 60:return 76;case 61:return 77;case 62:return 78;case 63:return 67;case 64:return 68;case 66:return"INVALID"}},rules:[/^(?:%%\{)/i,/^(?:((?:(?!\}%%)[^:.])*))/i,/^(?::)/i,/^(?:\}%%)/i,/^(?:((?:(?!\}%%).|\n)*))/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:((?!\n)\s)+)/i,/^(?:#[^\n]*)/i,/^(?:%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[0-9]+(?=[ \n]+))/i,/^(?:participant\b)/i,/^(?:actor\b)/i,/^(?:[^\->:\n,;]+?(?=((?!\n)\s)+as(?!\n)\s|[#\n;]|$))/i,/^(?:as\b)/i,/^(?:(?:))/i,/^(?:loop\b)/i,/^(?:rect\b)/i,/^(?:opt\b)/i,/^(?:alt\b)/i,/^(?:else\b)/i,/^(?:par\b)/i,/^(?:and\b)/i,/^(?:critical\b)/i,/^(?:option\b)/i,/^(?:break\b)/i,/^(?:(?:[:]?(?:no)?wrap)?[^#\n;]*)/i,/^(?:end\b)/i,/^(?:left of\b)/i,/^(?:right of\b)/i,/^(?:links\b)/i,/^(?:link\b)/i,/^(?:properties\b)/i,/^(?:details\b)/i,/^(?:over\b)/i,/^(?:note\b)/i,/^(?:activate\b)/i,/^(?:deactivate\b)/i,/^(?:title\s[^#\n;]+)/i,/^(?:title:\s[^#\n;]+)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:sequenceDiagram\b)/i,/^(?:autonumber\b)/i,/^(?:off\b)/i,/^(?:,)/i,/^(?:;)/i,/^(?:[^\+\->:\n,;]+((?!(-x|--x|-\)|--\)))[\-]*[^\+\->:\n,;]+)*)/i,/^(?:->>)/i,/^(?:-->>)/i,/^(?:->)/i,/^(?:-->)/i,/^(?:-[x])/i,/^(?:--[x])/i,/^(?:-[\)])/i,/^(?:--[\)])/i,/^(?::(?:(?:no)?wrap)?[^#\n;]+)/i,/^(?:\+)/i,/^(?:-)/i,/^(?:$)/i,/^(?:.)/i],conditions:{acc_descr_multiline:{rules:[46,47],inclusive:!1},acc_descr:{rules:[44],inclusive:!1},acc_title:{rules:[42],inclusive:!1},open_directive:{rules:[1,8],inclusive:!1},type_directive:{rules:[2,3,8],inclusive:!1},arg_directive:{rules:[3,4,8],inclusive:!1},ID:{rules:[7,8,14],inclusive:!1},ALIAS:{rules:[7,8,15,16],inclusive:!1},LINE:{rules:[7,8,27],inclusive:!1},INITIAL:{rules:[0,5,6,8,9,10,11,12,13,17,18,19,20,21,22,23,24,25,26,28,29,30,31,32,33,34,35,36,37,38,39,40,41,43,45,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66],inclusive:!0}}};function er(){this.yy={}}return Sr.lexer=_e,er.prototype=Sr,Sr.Parser=er,new er}();b.parser=m,b.Parser=m.Parser,b.parse=function(){return m.parse.apply(m,arguments)},b.main=function(f){f[1]||(console.log("Usage: "+f[0]+" FILE"),process.exit(1));var v=h(1993).readFileSync(h(6470).normalize(f[1]),"utf8");return b.parser.parse(v)},h.c[h.s]===d&&b.main(process.argv.slice(1))},3584:(d,b,h)=>{d=h.nmd(d);var m=function(){var f=function(Te,ye,ke,Me){for(ke=ke||{},Me=Te.length;Me--;ke[Te[Me]]=ye);return ke},v=[1,2],_=[1,3],A=[1,5],M=[1,7],T=[2,5],O=[1,15],B=[1,17],z=[1,19],q=[1,20],J=[1,21],rt=[1,22],ut=[1,33],Z=[1,23],mt=[1,24],nt=[1,25],at=[1,26],_t=[1,27],jt=[1,30],St=[1,31],gt=[1,32],Ct=[1,35],vt=[1,36],ft=[1,37],Q=[1,38],ht=[1,34],$=[1,41],kt=[1,4,5,14,15,17,19,20,22,23,24,25,26,27,31,33,35,41,42,43,44,47,50],W=[1,4,5,12,13,14,15,17,19,20,22,23,24,25,26,27,31,33,35,41,42,43,44,47,50],At=[1,4,5,7,14,15,17,19,20,22,23,24,25,26,27,31,33,35,41,42,43,44,47,50],Nt=[4,5,14,15,17,19,20,22,23,24,25,26,27,31,33,35,41,42,43,44,47,50],Gt={trace:function(){},yy:{},symbols_:{error:2,start:3,SPACE:4,NL:5,directive:6,SD:7,document:8,line:9,statement:10,idStatement:11,DESCR:12,"-->":13,HIDE_EMPTY:14,scale:15,WIDTH:16,COMPOSIT_STATE:17,STRUCT_START:18,STRUCT_STOP:19,STATE_DESCR:20,AS:21,ID:22,FORK:23,JOIN:24,CHOICE:25,CONCURRENT:26,note:27,notePosition:28,NOTE_TEXT:29,direction:30,acc_title:31,acc_title_value:32,acc_descr:33,acc_descr_value:34,acc_descr_multiline_value:35,openDirective:36,typeDirective:37,closeDirective:38,":":39,argDirective:40,direction_tb:41,direction_bt:42,direction_rl:43,direction_lr:44,eol:45,";":46,EDGE_STATE:47,left_of:48,right_of:49,open_directive:50,type_directive:51,arg_directive:52,close_directive:53,$accept:0,$end:1},terminals_:{2:"error",4:"SPACE",5:"NL",7:"SD",12:"DESCR",13:"-->",14:"HIDE_EMPTY",15:"scale",16:"WIDTH",17:"COMPOSIT_STATE",18:"STRUCT_START",19:"STRUCT_STOP",20:"STATE_DESCR",21:"AS",22:"ID",23:"FORK",24:"JOIN",25:"CHOICE",26:"CONCURRENT",27:"note",29:"NOTE_TEXT",31:"acc_title",32:"acc_title_value",33:"acc_descr",34:"acc_descr_value",35:"acc_descr_multiline_value",39:":",41:"direction_tb",42:"direction_bt",43:"direction_rl",44:"direction_lr",46:";",47:"EDGE_STATE",48:"left_of",49:"right_of",50:"open_directive",51:"type_directive",52:"arg_directive",53:"close_directive"},productions_:[0,[3,2],[3,2],[3,2],[3,2],[8,0],[8,2],[9,2],[9,1],[9,1],[10,1],[10,2],[10,3],[10,4],[10,1],[10,2],[10,1],[10,4],[10,3],[10,6],[10,1],[10,1],[10,1],[10,1],[10,4],[10,4],[10,1],[10,1],[10,2],[10,2],[10,1],[6,3],[6,5],[30,1],[30,1],[30,1],[30,1],[45,1],[45,1],[11,1],[11,1],[28,1],[28,1],[36,1],[37,1],[40,1],[38,1]],performAction:function(Te,ye,ke,Me,Oe,we,Sr){var _e=we.length-1;switch(Oe){case 4:return Me.setRootDoc(we[_e]),we[_e];case 5:this.$=[];break;case 6:we[_e]!="nl"&&(we[_e-1].push(we[_e]),this.$=we[_e-1]);break;case 7:case 8:case 39:case 40:this.$=we[_e];break;case 9:this.$="nl";break;case 10:this.$={stmt:"state",id:we[_e],type:"default",description:""};break;case 11:this.$={stmt:"state",id:we[_e-1],type:"default",description:Me.trimColon(we[_e])};break;case 12:this.$={stmt:"relation",state1:{stmt:"state",id:we[_e-2],type:"default",description:""},state2:{stmt:"state",id:we[_e],type:"default",description:""}};break;case 13:this.$={stmt:"relation",state1:{stmt:"state",id:we[_e-3],type:"default",description:""},state2:{stmt:"state",id:we[_e-1],type:"default",description:""},description:we[_e].substr(1).trim()};break;case 17:this.$={stmt:"state",id:we[_e-3],type:"default",description:"",doc:we[_e-1]};break;case 18:var er=we[_e],oe=we[_e-2].trim();if(we[_e].match(":")){var ee=we[_e].split(":");er=ee[0],oe=[oe,ee[1]]}this.$={stmt:"state",id:er,type:"default",description:oe};break;case 19:this.$={stmt:"state",id:we[_e-3],type:"default",description:we[_e-5],doc:we[_e-1]};break;case 20:this.$={stmt:"state",id:we[_e],type:"fork"};break;case 21:this.$={stmt:"state",id:we[_e],type:"join"};break;case 22:this.$={stmt:"state",id:we[_e],type:"choice"};break;case 23:this.$={stmt:"state",id:Me.getDividerId(),type:"divider"};break;case 24:this.$={stmt:"state",id:we[_e-1].trim(),note:{position:we[_e-2].trim(),text:we[_e].trim()}};break;case 28:this.$=we[_e].trim(),Me.setAccTitle(this.$);break;case 29:case 30:this.$=we[_e].trim(),Me.setAccDescription(this.$);break;case 33:Me.setDirection("TB"),this.$={stmt:"dir",value:"TB"};break;case 34:Me.setDirection("BT"),this.$={stmt:"dir",value:"BT"};break;case 35:Me.setDirection("RL"),this.$={stmt:"dir",value:"RL"};break;case 36:Me.setDirection("LR"),this.$={stmt:"dir",value:"LR"};break;case 43:Me.parseDirective("%%{","open_directive");break;case 44:Me.parseDirective(we[_e],"type_directive");break;case 45:we[_e]=we[_e].trim().replace(/'/g,'"'),Me.parseDirective(we[_e],"arg_directive");break;case 46:Me.parseDirective("}%%","close_directive","state")}},table:[{3:1,4:v,5:_,6:4,7:A,36:6,50:M},{1:[3]},{3:8,4:v,5:_,6:4,7:A,36:6,50:M},{3:9,4:v,5:_,6:4,7:A,36:6,50:M},{3:10,4:v,5:_,6:4,7:A,36:6,50:M},f([1,4,5,14,15,17,20,22,23,24,25,26,27,31,33,35,41,42,43,44,47,50],T,{8:11}),{37:12,51:[1,13]},{51:[2,43]},{1:[2,1]},{1:[2,2]},{1:[2,3]},{1:[2,4],4:O,5:B,6:28,9:14,10:16,11:18,14:z,15:q,17:J,20:rt,22:ut,23:Z,24:mt,25:nt,26:at,27:_t,30:29,31:jt,33:St,35:gt,36:6,41:Ct,42:vt,43:ft,44:Q,47:ht,50:M},{38:39,39:[1,40],53:$},f([39,53],[2,44]),f(kt,[2,6]),{6:28,10:42,11:18,14:z,15:q,17:J,20:rt,22:ut,23:Z,24:mt,25:nt,26:at,27:_t,30:29,31:jt,33:St,35:gt,36:6,41:Ct,42:vt,43:ft,44:Q,47:ht,50:M},f(kt,[2,8]),f(kt,[2,9]),f(kt,[2,10],{12:[1,43],13:[1,44]}),f(kt,[2,14]),{16:[1,45]},f(kt,[2,16],{18:[1,46]}),{21:[1,47]},f(kt,[2,20]),f(kt,[2,21]),f(kt,[2,22]),f(kt,[2,23]),{28:48,29:[1,49],48:[1,50],49:[1,51]},f(kt,[2,26]),f(kt,[2,27]),{32:[1,52]},{34:[1,53]},f(kt,[2,30]),f(W,[2,39]),f(W,[2,40]),f(kt,[2,33]),f(kt,[2,34]),f(kt,[2,35]),f(kt,[2,36]),f(At,[2,31]),{40:54,52:[1,55]},f(At,[2,46]),f(kt,[2,7]),f(kt,[2,11]),{11:56,22:ut,47:ht},f(kt,[2,15]),f(Nt,T,{8:57}),{22:[1,58]},{22:[1,59]},{21:[1,60]},{22:[2,41]},{22:[2,42]},f(kt,[2,28]),f(kt,[2,29]),{38:61,53:$},{53:[2,45]},f(kt,[2,12],{12:[1,62]}),{4:O,5:B,6:28,9:14,10:16,11:18,14:z,15:q,17:J,19:[1,63],20:rt,22:ut,23:Z,24:mt,25:nt,26:at,27:_t,30:29,31:jt,33:St,35:gt,36:6,41:Ct,42:vt,43:ft,44:Q,47:ht,50:M},f(kt,[2,18],{18:[1,64]}),{29:[1,65]},{22:[1,66]},f(At,[2,32]),f(kt,[2,13]),f(kt,[2,17]),f(Nt,T,{8:67}),f(kt,[2,24]),f(kt,[2,25]),{4:O,5:B,6:28,9:14,10:16,11:18,14:z,15:q,17:J,19:[1,68],20:rt,22:ut,23:Z,24:mt,25:nt,26:at,27:_t,30:29,31:jt,33:St,35:gt,36:6,41:Ct,42:vt,43:ft,44:Q,47:ht,50:M},f(kt,[2,19])],defaultActions:{7:[2,43],8:[2,1],9:[2,2],10:[2,3],50:[2,41],51:[2,42],55:[2,45]},parseError:function(Te,ye){if(!ye.recoverable){var ke=new Error(Te);throw ke.hash=ye,ke}this.trace(Te)},parse:function(Te){var ye=this,ke=[0],Me=[],Oe=[null],we=[],Sr=this.table,_e="",er=0,oe=0,ee=0,he=2,Mt=1,ie=we.slice.call(arguments,1),pt=Object.create(this.lexer),wt={yy:{}};for(var xt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,xt)&&(wt.yy[xt]=this.yy[xt]);pt.setInput(Te,wt.yy),wt.yy.lexer=pt,wt.yy.parser=this,pt.yylloc===void 0&&(pt.yylloc={});var Rt=pt.yylloc;we.push(Rt);var me=pt.options&&pt.options.ranges;function Pe(){var dr;return typeof(dr=Me.pop()||pt.lex()||Mt)!="number"&&(dr instanceof Array&&(dr=(Me=dr).pop()),dr=ye.symbols_[dr]||dr),dr}typeof wt.yy.parseError=="function"?this.parseError=wt.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var ar,Ze,ur,ze,Ce,Be,Fe,be,se,Lr={};;){if(ur=ke[ke.length-1],this.defaultActions[ur]?ze=this.defaultActions[ur]:(ar==null&&(ar=Pe()),ze=Sr[ur]&&Sr[ur][ar]),ze===void 0||!ze.length||!ze[0]){var Ue="";for(Be in se=[],Sr[ur])this.terminals_[Be]&&Be>he&&se.push("'"+this.terminals_[Be]+"'");Ue=pt.showPosition?"Parse error on line "+(er+1)+`: +`+pt.showPosition()+` +Expecting `+se.join(", ")+", got '"+(this.terminals_[ar]||ar)+"'":"Parse error on line "+(er+1)+": Unexpected "+(ar==Mt?"end of input":"'"+(this.terminals_[ar]||ar)+"'"),this.parseError(Ue,{text:pt.match,token:this.terminals_[ar]||ar,line:pt.yylineno,loc:Rt,expected:se})}if(ze[0]instanceof Array&&ze.length>1)throw new Error("Parse Error: multiple actions possible at state: "+ur+", token: "+ar);switch(ze[0]){case 1:ke.push(ar),Oe.push(pt.yytext),we.push(pt.yylloc),ke.push(ze[1]),ar=null,Ze?(ar=Ze,Ze=null):(oe=pt.yyleng,_e=pt.yytext,er=pt.yylineno,Rt=pt.yylloc,ee>0);break;case 2:if(Fe=this.productions_[ze[1]][1],Lr.$=Oe[Oe.length-Fe],Lr._$={first_line:we[we.length-(Fe||1)].first_line,last_line:we[we.length-1].last_line,first_column:we[we.length-(Fe||1)].first_column,last_column:we[we.length-1].last_column},me&&(Lr._$.range=[we[we.length-(Fe||1)].range[0],we[we.length-1].range[1]]),(Ce=this.performAction.apply(Lr,[_e,oe,er,wt.yy,ze[1],Oe,we].concat(ie)))!==void 0)return Ce;Fe&&(ke=ke.slice(0,-1*Fe*2),Oe=Oe.slice(0,-1*Fe),we=we.slice(0,-1*Fe)),ke.push(this.productions_[ze[1]][0]),Oe.push(Lr.$),we.push(Lr._$),be=Sr[ke[ke.length-2]][ke[ke.length-1]],ke.push(be);break;case 3:return!0}}return!0}},xe={EOF:1,parseError:function(Te,ye){if(!this.yy.parser)throw new Error(Te);this.yy.parser.parseError(Te,ye)},setInput:function(Te,ye){return this.yy=ye||this.yy||{},this._input=Te,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var Te=this._input[0];return this.yytext+=Te,this.yyleng++,this.offset++,this.match+=Te,this.matched+=Te,Te.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),Te},unput:function(Te){var ye=Te.length,ke=Te.split(/(?:\r\n?|\n)/g);this._input=Te+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-ye),this.offset-=ye;var Me=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),ke.length-1&&(this.yylineno-=ke.length-1);var Oe=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:ke?(ke.length===Me.length?this.yylloc.first_column:0)+Me[Me.length-ke.length].length-ke[0].length:this.yylloc.first_column-ye},this.options.ranges&&(this.yylloc.range=[Oe[0],Oe[0]+this.yyleng-ye]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). +`+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(Te){this.unput(this.match.slice(Te))},pastInput:function(){var Te=this.matched.substr(0,this.matched.length-this.match.length);return(Te.length>20?"...":"")+Te.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var Te=this.match;return Te.length<20&&(Te+=this._input.substr(0,20-Te.length)),(Te.substr(0,20)+(Te.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var Te=this.pastInput(),ye=new Array(Te.length+1).join("-");return Te+this.upcomingInput()+` +`+ye+"^"},test_match:function(Te,ye){var ke,Me,Oe;if(this.options.backtrack_lexer&&(Oe={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&&(Oe.yylloc.range=this.yylloc.range.slice(0))),(Me=Te[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=Me.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:Me?Me[Me.length-1].length-Me[Me.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+Te[0].length},this.yytext+=Te[0],this.match+=Te[0],this.matches=Te,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(Te[0].length),this.matched+=Te[0],ke=this.performAction.call(this,this.yy,this,ye,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),ke)return ke;if(this._backtrack){for(var we in Oe)this[we]=Oe[we];return!1}return!1},next:function(){if(this.done)return this.EOF;var Te,ye,ke,Me;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var Oe=this._currentRules(),we=0;weye[0].length)){if(ye=ke,Me=we,this.options.backtrack_lexer){if((Te=this.test_match(ke,Oe[we]))!==!1)return Te;if(this._backtrack){ye=!1;continue}return!1}if(!this.options.flex)break}return ye?(Te=this.test_match(ye,Oe[Me]))!==!1&&Te:this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text. +`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){return this.next()||this.lex()},begin:function(Te){this.conditionStack.push(Te)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(Te){return(Te=this.conditionStack.length-1-Math.abs(Te||0))>=0?this.conditionStack[Te]:"INITIAL"},pushState:function(Te){this.begin(Te)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(Te,ye,ke,Me){switch(ke){case 0:case 33:return 41;case 1:case 34:return 42;case 2:case 35:return 43;case 3:case 36:return 44;case 4:return this.begin("open_directive"),50;case 5:return this.begin("type_directive"),51;case 6:return this.popState(),this.begin("arg_directive"),39;case 7:return this.popState(),this.popState(),53;case 8:return 52;case 9:case 10:case 12:case 13:case 14:case 15:case 46:case 52:break;case 11:case 66:return 5;case 16:return this.pushState("SCALE"),15;case 17:return 16;case 18:case 24:case 40:case 43:this.popState();break;case 19:return this.begin("acc_title"),31;case 20:return this.popState(),"acc_title_value";case 21:return this.begin("acc_descr"),33;case 22:return this.popState(),"acc_descr_value";case 23:this.begin("acc_descr_multiline");break;case 25:return"acc_descr_multiline_value";case 26:this.pushState("STATE");break;case 27:case 30:return this.popState(),ye.yytext=ye.yytext.slice(0,-8).trim(),23;case 28:case 31:return this.popState(),ye.yytext=ye.yytext.slice(0,-8).trim(),24;case 29:case 32:return this.popState(),ye.yytext=ye.yytext.slice(0,-10).trim(),25;case 37:this.begin("STATE_STRING");break;case 38:return this.popState(),this.pushState("STATE_ID"),"AS";case 39:case 54:return this.popState(),"ID";case 41:return"STATE_DESCR";case 42:return 17;case 44:return this.popState(),this.pushState("struct"),18;case 45:return this.popState(),19;case 47:return this.begin("NOTE"),27;case 48:return this.popState(),this.pushState("NOTE_ID"),48;case 49:return this.popState(),this.pushState("NOTE_ID"),49;case 50:this.popState(),this.pushState("FLOATING_NOTE");break;case 51:return this.popState(),this.pushState("FLOATING_NOTE_ID"),"AS";case 53:return"NOTE_TEXT";case 55:return this.popState(),this.pushState("NOTE_TEXT"),22;case 56:return this.popState(),ye.yytext=ye.yytext.substr(2).trim(),29;case 57:return this.popState(),ye.yytext=ye.yytext.slice(0,-8).trim(),29;case 58:case 59:return 7;case 60:return 14;case 61:return 47;case 62:return 22;case 63:return ye.yytext=ye.yytext.trim(),12;case 64:return 13;case 65:return 26;case 67:return"INVALID"}},rules:[/^(?:.*direction\s+TB[^\n]*)/i,/^(?:.*direction\s+BT[^\n]*)/i,/^(?:.*direction\s+RL[^\n]*)/i,/^(?:.*direction\s+LR[^\n]*)/i,/^(?:%%\{)/i,/^(?:((?:(?!\}%%)[^:.])*))/i,/^(?::)/i,/^(?:\}%%)/i,/^(?:((?:(?!\}%%).|\n)*))/i,/^(?:%%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n]+)/i,/^(?:[\s]+)/i,/^(?:((?!\n)\s)+)/i,/^(?:#[^\n]*)/i,/^(?:%[^\n]*)/i,/^(?:scale\s+)/i,/^(?:\d+)/i,/^(?:\s+width\b)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:state\s+)/i,/^(?:.*<>)/i,/^(?:.*<>)/i,/^(?:.*<>)/i,/^(?:.*\[\[fork\]\])/i,/^(?:.*\[\[join\]\])/i,/^(?:.*\[\[choice\]\])/i,/^(?:.*direction\s+TB[^\n]*)/i,/^(?:.*direction\s+BT[^\n]*)/i,/^(?:.*direction\s+RL[^\n]*)/i,/^(?:.*direction\s+LR[^\n]*)/i,/^(?:["])/i,/^(?:\s*as\s+)/i,/^(?:[^\n\{]*)/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:[^\n\s\{]+)/i,/^(?:\n)/i,/^(?:\{)/i,/^(?:\})/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],conditions:{LINE:{rules:[13,14],inclusive:!1},close_directive:{rules:[13,14],inclusive:!1},arg_directive:{rules:[7,8,13,14],inclusive:!1},type_directive:{rules:[6,7,13,14],inclusive:!1},open_directive:{rules:[5,13,14],inclusive:!1},struct:{rules:[13,14,26,33,34,35,36,45,46,47,61,62,63,64,65],inclusive:!1},FLOATING_NOTE_ID:{rules:[54],inclusive:!1},FLOATING_NOTE:{rules:[51,52,53],inclusive:!1},NOTE_TEXT:{rules:[56,57],inclusive:!1},NOTE_ID:{rules:[55],inclusive:!1},NOTE:{rules:[48,49,50],inclusive:!1},acc_descr_multiline:{rules:[24,25],inclusive:!1},acc_descr:{rules:[22],inclusive:!1},acc_title:{rules:[20],inclusive:!1},SCALE:{rules:[17,18],inclusive:!1},ALIAS:{rules:[],inclusive:!1},STATE_ID:{rules:[39],inclusive:!1},STATE_STRING:{rules:[40,41],inclusive:!1},FORK_STATE:{rules:[],inclusive:!1},STATE:{rules:[13,14,27,28,29,30,31,32,37,38,42,43,44],inclusive:!1},ID:{rules:[13,14],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,9,10,11,12,14,15,16,19,21,23,26,44,47,58,59,60,61,62,63,64,66,67],inclusive:!0}}};function Ge(){this.yy={}}return Gt.lexer=xe,Ge.prototype=Gt,Gt.Parser=Ge,new Ge}();b.parser=m,b.Parser=m.Parser,b.parse=function(){return m.parse.apply(m,arguments)},b.main=function(f){f[1]||(console.log("Usage: "+f[0]+" FILE"),process.exit(1));var v=h(3069).readFileSync(h(6470).normalize(f[1]),"utf8");return b.parser.parse(v)},h.c[h.s]===d&&b.main(process.argv.slice(1))},9763:(d,b,h)=>{d=h.nmd(d);var m=function(){var f=function(nt,at,_t,jt){for(_t=_t||{},jt=nt.length;jt--;_t[nt[jt]]=at);return _t},v=[1,2],_=[1,5],A=[6,9,11,17,18,20,22,23,24,26],M=[1,15],T=[1,16],O=[1,17],B=[1,18],z=[1,19],q=[1,20],J=[1,24],rt=[4,6,9,11,17,18,20,22,23,24,26],ut={trace:function(){},yy:{},symbols_:{error:2,start:3,journey:4,document:5,EOF:6,directive:7,line:8,SPACE:9,statement:10,NEWLINE:11,openDirective:12,typeDirective:13,closeDirective:14,":":15,argDirective:16,title:17,acc_title:18,acc_title_value:19,acc_descr:20,acc_descr_value:21,acc_descr_multiline_value:22,section:23,taskName:24,taskData:25,open_directive:26,type_directive:27,arg_directive:28,close_directive:29,$accept:0,$end:1},terminals_:{2:"error",4:"journey",6:"EOF",9:"SPACE",11:"NEWLINE",15:":",17:"title",18:"acc_title",19:"acc_title_value",20:"acc_descr",21:"acc_descr_value",22:"acc_descr_multiline_value",23:"section",24:"taskName",25:"taskData",26:"open_directive",27:"type_directive",28:"arg_directive",29:"close_directive"},productions_:[0,[3,3],[3,2],[5,0],[5,2],[8,2],[8,1],[8,1],[8,1],[7,4],[7,6],[10,1],[10,2],[10,2],[10,1],[10,1],[10,2],[10,1],[12,1],[13,1],[16,1],[14,1]],performAction:function(nt,at,_t,jt,St,gt,Ct){var vt=gt.length-1;switch(St){case 1:return gt[vt-1];case 3:case 7:case 8:this.$=[];break;case 4:gt[vt-1].push(gt[vt]),this.$=gt[vt-1];break;case 5:case 6:this.$=gt[vt];break;case 11:jt.setDiagramTitle(gt[vt].substr(6)),this.$=gt[vt].substr(6);break;case 12:this.$=gt[vt].trim(),jt.setAccTitle(this.$);break;case 13:case 14:this.$=gt[vt].trim(),jt.setAccDescription(this.$);break;case 15:jt.addSection(gt[vt].substr(8)),this.$=gt[vt].substr(8);break;case 16:jt.addTask(gt[vt-1],gt[vt]),this.$="task";break;case 18:jt.parseDirective("%%{","open_directive");break;case 19:jt.parseDirective(gt[vt],"type_directive");break;case 20:gt[vt]=gt[vt].trim().replace(/'/g,'"'),jt.parseDirective(gt[vt],"arg_directive");break;case 21:jt.parseDirective("}%%","close_directive","journey")}},table:[{3:1,4:v,7:3,12:4,26:_},{1:[3]},f(A,[2,3],{5:6}),{3:7,4:v,7:3,12:4,26:_},{13:8,27:[1,9]},{27:[2,18]},{6:[1,10],7:21,8:11,9:[1,12],10:13,11:[1,14],12:4,17:M,18:T,20:O,22:B,23:z,24:q,26:_},{1:[2,2]},{14:22,15:[1,23],29:J},f([15,29],[2,19]),f(A,[2,8],{1:[2,1]}),f(A,[2,4]),{7:21,10:25,12:4,17:M,18:T,20:O,22:B,23:z,24:q,26:_},f(A,[2,6]),f(A,[2,7]),f(A,[2,11]),{19:[1,26]},{21:[1,27]},f(A,[2,14]),f(A,[2,15]),{25:[1,28]},f(A,[2,17]),{11:[1,29]},{16:30,28:[1,31]},{11:[2,21]},f(A,[2,5]),f(A,[2,12]),f(A,[2,13]),f(A,[2,16]),f(rt,[2,9]),{14:32,29:J},{29:[2,20]},{11:[1,33]},f(rt,[2,10])],defaultActions:{5:[2,18],7:[2,2],24:[2,21],31:[2,20]},parseError:function(nt,at){if(!at.recoverable){var _t=new Error(nt);throw _t.hash=at,_t}this.trace(nt)},parse:function(nt){var at=this,_t=[0],jt=[],St=[null],gt=[],Ct=this.table,vt="",ft=0,Q=0,ht=0,$=2,kt=1,W=gt.slice.call(arguments,1),At=Object.create(this.lexer),Nt={yy:{}};for(var Gt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Gt)&&(Nt.yy[Gt]=this.yy[Gt]);At.setInput(nt,Nt.yy),Nt.yy.lexer=At,Nt.yy.parser=this,At.yylloc===void 0&&(At.yylloc={});var xe=At.yylloc;gt.push(xe);var Ge=At.options&&At.options.ranges;function Te(){var Mt;return typeof(Mt=jt.pop()||At.lex()||kt)!="number"&&(Mt instanceof Array&&(Mt=(jt=Mt).pop()),Mt=at.symbols_[Mt]||Mt),Mt}typeof Nt.yy.parseError=="function"?this.parseError=Nt.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var ye,ke,Me,Oe,we,Sr,_e,er,oe,ee={};;){if(Me=_t[_t.length-1],this.defaultActions[Me]?Oe=this.defaultActions[Me]:(ye==null&&(ye=Te()),Oe=Ct[Me]&&Ct[Me][ye]),Oe===void 0||!Oe.length||!Oe[0]){var he="";for(Sr in oe=[],Ct[Me])this.terminals_[Sr]&&Sr>$&&oe.push("'"+this.terminals_[Sr]+"'");he=At.showPosition?"Parse error on line "+(ft+1)+`: +`+At.showPosition()+` +Expecting `+oe.join(", ")+", got '"+(this.terminals_[ye]||ye)+"'":"Parse error on line "+(ft+1)+": Unexpected "+(ye==kt?"end of input":"'"+(this.terminals_[ye]||ye)+"'"),this.parseError(he,{text:At.match,token:this.terminals_[ye]||ye,line:At.yylineno,loc:xe,expected:oe})}if(Oe[0]instanceof Array&&Oe.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Me+", token: "+ye);switch(Oe[0]){case 1:_t.push(ye),St.push(At.yytext),gt.push(At.yylloc),_t.push(Oe[1]),ye=null,ke?(ye=ke,ke=null):(Q=At.yyleng,vt=At.yytext,ft=At.yylineno,xe=At.yylloc,ht>0);break;case 2:if(_e=this.productions_[Oe[1]][1],ee.$=St[St.length-_e],ee._$={first_line:gt[gt.length-(_e||1)].first_line,last_line:gt[gt.length-1].last_line,first_column:gt[gt.length-(_e||1)].first_column,last_column:gt[gt.length-1].last_column},Ge&&(ee._$.range=[gt[gt.length-(_e||1)].range[0],gt[gt.length-1].range[1]]),(we=this.performAction.apply(ee,[vt,Q,ft,Nt.yy,Oe[1],St,gt].concat(W)))!==void 0)return we;_e&&(_t=_t.slice(0,-1*_e*2),St=St.slice(0,-1*_e),gt=gt.slice(0,-1*_e)),_t.push(this.productions_[Oe[1]][0]),St.push(ee.$),gt.push(ee._$),er=Ct[_t[_t.length-2]][_t[_t.length-1]],_t.push(er);break;case 3:return!0}}return!0}},Z={EOF:1,parseError:function(nt,at){if(!this.yy.parser)throw new Error(nt);this.yy.parser.parseError(nt,at)},setInput:function(nt,at){return this.yy=at||this.yy||{},this._input=nt,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var nt=this._input[0];return this.yytext+=nt,this.yyleng++,this.offset++,this.match+=nt,this.matched+=nt,nt.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),nt},unput:function(nt){var at=nt.length,_t=nt.split(/(?:\r\n?|\n)/g);this._input=nt+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-at),this.offset-=at;var jt=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),_t.length-1&&(this.yylineno-=_t.length-1);var St=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:_t?(_t.length===jt.length?this.yylloc.first_column:0)+jt[jt.length-_t.length].length-_t[0].length:this.yylloc.first_column-at},this.options.ranges&&(this.yylloc.range=[St[0],St[0]+this.yyleng-at]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). +`+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(nt){this.unput(this.match.slice(nt))},pastInput:function(){var nt=this.matched.substr(0,this.matched.length-this.match.length);return(nt.length>20?"...":"")+nt.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var nt=this.match;return nt.length<20&&(nt+=this._input.substr(0,20-nt.length)),(nt.substr(0,20)+(nt.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var nt=this.pastInput(),at=new Array(nt.length+1).join("-");return nt+this.upcomingInput()+` +`+at+"^"},test_match:function(nt,at){var _t,jt,St;if(this.options.backtrack_lexer&&(St={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&&(St.yylloc.range=this.yylloc.range.slice(0))),(jt=nt[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=jt.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:jt?jt[jt.length-1].length-jt[jt.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+nt[0].length},this.yytext+=nt[0],this.match+=nt[0],this.matches=nt,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(nt[0].length),this.matched+=nt[0],_t=this.performAction.call(this,this.yy,this,at,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),_t)return _t;if(this._backtrack){for(var gt in St)this[gt]=St[gt];return!1}return!1},next:function(){if(this.done)return this.EOF;var nt,at,_t,jt;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var St=this._currentRules(),gt=0;gtat[0].length)){if(at=_t,jt=gt,this.options.backtrack_lexer){if((nt=this.test_match(_t,St[gt]))!==!1)return nt;if(this._backtrack){at=!1;continue}return!1}if(!this.options.flex)break}return at?(nt=this.test_match(at,St[jt]))!==!1&&nt:this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text. +`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){return this.next()||this.lex()},begin:function(nt){this.conditionStack.push(nt)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(nt){return(nt=this.conditionStack.length-1-Math.abs(nt||0))>=0?this.conditionStack[nt]:"INITIAL"},pushState:function(nt){this.begin(nt)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(nt,at,_t,jt){switch(_t){case 0:return this.begin("open_directive"),26;case 1:return this.begin("type_directive"),27;case 2:return this.popState(),this.begin("arg_directive"),15;case 3:return this.popState(),this.popState(),29;case 4:return 28;case 5:case 6:case 8:case 9:break;case 7:return 11;case 10:return 4;case 11:return 17;case 12:return this.begin("acc_title"),18;case 13:return this.popState(),"acc_title_value";case 14:return this.begin("acc_descr"),20;case 15:return this.popState(),"acc_descr_value";case 16:this.begin("acc_descr_multiline");break;case 17:this.popState();break;case 18:return"acc_descr_multiline_value";case 19:return 23;case 20:return 24;case 21:return 25;case 22:return 15;case 23:return 6;case 24:return"INVALID"}},rules:[/^(?:%%\{)/i,/^(?:((?:(?!\}%%)[^:.])*))/i,/^(?::)/i,/^(?:\}%%)/i,/^(?:((?:(?!\}%%).|\n)*))/i,/^(?:%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:#[^\n]*)/i,/^(?:journey\b)/i,/^(?:title\s[^#\n;]+)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:section\s[^#:\n;]+)/i,/^(?:[^#:\n;]+)/i,/^(?::[^#\n;]+)/i,/^(?::)/i,/^(?:$)/i,/^(?:.)/i],conditions:{open_directive:{rules:[1],inclusive:!1},type_directive:{rules:[2,3],inclusive:!1},arg_directive:{rules:[3,4],inclusive:!1},acc_descr_multiline:{rules:[17,18],inclusive:!1},acc_descr:{rules:[15],inclusive:!1},acc_title:{rules:[13],inclusive:!1},INITIAL:{rules:[0,5,6,7,8,9,10,11,12,14,16,19,20,21,22,23,24],inclusive:!0}}};function mt(){this.yy={}}return ut.lexer=Z,mt.prototype=ut,ut.Parser=mt,new mt}();b.parser=m,b.Parser=m.Parser,b.parse=function(){return m.parse.apply(m,arguments)},b.main=function(f){f[1]||(console.log("Usage: "+f[0]+" FILE"),process.exit(1));var v=h(9143).readFileSync(h(6470).normalize(f[1]),"utf8");return b.parser.parse(v)},h.c[h.s]===d&&b.main(process.argv.slice(1))},7967:(d,b)=>{b.N=void 0;var h=/^([^\w]*)(javascript|data|vbscript)/im,m=/&#(\w+)(^\w|;)?/g,f=/[\u0000-\u001F\u007F-\u009F\u2000-\u200D\uFEFF]/gim,v=/^([^:]+):/gm,_=[".","/"];b.N=function(A){var M,T=(M=A||"",M.replace(m,function(z,q){return String.fromCharCode(q)})).replace(f,"").trim();if(!T)return"about:blank";if(function(z){return _.indexOf(z[0])>-1}(T))return T;var O=T.match(v);if(!O)return T;var B=O[0];return h.test(B)?"about:blank":T}},3841:d=>{d.exports=function(b,h){return b.intersect(h)}},6187:(d,b,h)=>{h.d(b,{Z:()=>gs});var m=h(1941),f=h.n(m),v={debug:1,info:2,warn:3,error:4,fatal:5},_={debug:function(){},info:function(){},warn:function(){},error:function(){},fatal:function(){}},A=function(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"fatal";isNaN(l)&&(l=l.toLowerCase(),v[l]!==void 0&&(l=v[l])),_.trace=function(){},_.debug=function(){},_.info=function(){},_.warn=function(){},_.error=function(){},_.fatal=function(){},l<=v.fatal&&(_.fatal=console.error?console.error.bind(console,M("FATAL"),"color: orange"):console.log.bind(console,"\x1B[35m",M("FATAL"))),l<=v.error&&(_.error=console.error?console.error.bind(console,M("ERROR"),"color: orange"):console.log.bind(console,"\x1B[31m",M("ERROR"))),l<=v.warn&&(_.warn=console.warn?console.warn.bind(console,M("WARN"),"color: orange"):console.log.bind(console,"\x1B[33m",M("WARN"))),l<=v.info&&(_.info=console.info?console.info.bind(console,M("INFO"),"color: lightblue"):console.log.bind(console,"\x1B[34m",M("INFO"))),l<=v.debug&&(_.debug=console.debug?console.debug.bind(console,M("DEBUG"),"color: lightgreen"):console.log.bind(console,"\x1B[32m",M("DEBUG")))},M=function(l){var o=f()().format("ss.SSS");return"%c".concat(o," : ").concat(l," : ")},T=h(7543),O="comm",B="rule",z="decl",q=Math.abs,J=String.fromCharCode;function rt(l){return l.trim()}function ut(l,o,y){return l.replace(o,y)}function Z(l,o){return l.indexOf(o)}function mt(l,o){return 0|l.charCodeAt(o)}function nt(l,o,y){return l.slice(o,y)}function at(l){return l.length}function _t(l){return l.length}function jt(l,o){return o.push(l),l}function St(l,o){for(var y="",k=_t(l),E=0;E0?mt($,--Q):0,vt--,ht===10&&(vt=1,Ct--),ht}function At(){return ht=Q2||Ge(ht)>3?"":" "}function ke(l,o){for(;--o&&At()&&!(ht<48||ht>102||ht>57&&ht<65||ht>70&&ht<97););return xe(l,Gt()+(o<6&&Nt()==32&&At()==32))}function Me(l){for(;At();)switch(ht){case l:return Q;case 34:case 39:l!==34&&l!==39&&Me(ht);break;case 40:l===41&&Me(l);break;case 92:At()}return Q}function Oe(l,o){for(;At()&&l+ht!==57&&(l+ht!==84||Nt()!==47););return"/*"+xe(o,Q-1)+"*"+J(l===47?l:At())}function we(l){for(;!Ge(Nt());)At();return xe(l,Q)}function Sr(l){return function(o){return $="",o}(_e("",null,null,null,[""],l=function(o){return Ct=vt=1,ft=at($=o),Q=0,[]}(l),0,[0],l))}function _e(l,o,y,k,E,L,N,D,P){for(var U=0,K=0,tt=N,st=0,ot=0,Lt=0,Dt=1,zt=1,Ft=1,Pt=0,Yt="",It=E,ae=L,Se=k,pe=Yt;zt;)switch(Lt=Pt,Pt=At()){case 40:if(Lt!=108&&pe.charCodeAt(tt-1)==58){Z(pe+=ut(Te(Pt),"&","&\f"),"&\f")!=-1&&(Ft=-1);break}case 34:case 39:case 91:pe+=Te(Pt);break;case 9:case 10:case 13:case 32:pe+=ye(Lt);break;case 92:pe+=ke(Gt()-1,7);continue;case 47:switch(Nt()){case 42:case 47:jt(oe(Oe(At(),Gt()),o,y),P);break;default:pe+="/"}break;case 123*Dt:D[U++]=at(pe)*Ft;case 125*Dt:case 59:case 0:switch(Pt){case 0:case 125:zt=0;case 59+K:ot>0&&at(pe)-tt&&jt(ot>32?ee(pe+";",k,y,tt-1):ee(ut(pe," ","")+";",k,y,tt-2),P);break;case 59:pe+=";";default:if(jt(Se=er(pe,o,y,U,K,E,D,Yt,It=[],ae=[],tt),L),Pt===123)if(K===0)_e(pe,o,Se,Se,It,L,tt,D,ae);else switch(st){case 100:case 109:case 115:_e(l,Se,Se,k&&jt(er(l,Se,Se,0,0,E,D,Yt,E,It=[],tt),ae),E,ae,tt,D,k?It:ae);break;default:_e(pe,Se,Se,Se,[""],ae,0,D,ae)}}U=K=ot=0,Dt=Ft=1,Yt=pe="",tt=N;break;case 58:tt=1+at(pe),ot=Lt;default:if(Dt<1){if(Pt==123)--Dt;else if(Pt==125&&Dt++==0&&W()==125)continue}switch(pe+=J(Pt),Pt*Dt){case 38:Ft=K>0?1:(pe+="\f",-1);break;case 44:D[U++]=(at(pe)-1)*Ft,Ft=1;break;case 64:Nt()===45&&(pe+=Te(At())),st=Nt(),K=tt=at(Yt=pe+=we(Gt())),Pt++;break;case 45:Lt===45&&at(pe)==2&&(Dt=0)}}return L}function er(l,o,y,k,E,L,N,D,P,U,K){for(var tt=E-1,st=E===0?L:[""],ot=_t(st),Lt=0,Dt=0,zt=0;Lt0?st[Ft]+" "+Pt:ut(Pt,/&\f/g,st[Ft])))&&(P[zt++]=Yt);return kt(l,o,y,E===0?B:D,P,U,K)}function oe(l,o,y){return kt(l,o,y,O,J(ht),nt(l,2,-2),0)}function ee(l,o,y,k){return kt(l,o,y,z,nt(l,0,k),nt(l,k+1,-1),k)}const he="9.1.7";function Mt(l){return Mt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(o){return typeof o}:function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},Mt(l)}const ie=function l(o,y,k){var E=Object.assign({depth:2,clobber:!1},k),L=E.depth,N=E.clobber;return Array.isArray(y)&&!Array.isArray(o)?(y.forEach(function(D){return l(o,D,k)}),o):Array.isArray(y)&&Array.isArray(o)?(y.forEach(function(D){o.indexOf(D)===-1&&o.push(D)}),o):o===void 0||L<=0?o!=null&&Mt(o)==="object"&&Mt(y)==="object"?Object.assign(o,y):y:(y!==void 0&&Mt(o)==="object"&&Mt(y)==="object"&&Object.keys(y).forEach(function(D){Mt(y[D])!=="object"||o[D]!==void 0&&Mt(o[D])!=="object"?(N||Mt(o[D])!=="object"&&Mt(y[D])!=="object")&&(o[D]=y[D]):(o[D]===void 0&&(o[D]=Array.isArray(y[D])?[]:{}),o[D]=l(o[D],y[D],{depth:L-1,clobber:N}))}),o)},pt={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:l=>l>=255?255:l<0?0:l,g:l=>l>=255?255:l<0?0:l,b:l=>l>=255?255:l<0?0:l,h:l=>l%360,s:l=>l>=100?100:l<0?0:l,l:l=>l>=100?100:l<0?0:l,a:l=>l>=1?1:l<0?0:l},toLinear:l=>{const o=l/255;return l>.03928?Math.pow((o+.055)/1.055,2.4):o/12.92},hue2rgb:(l,o,y)=>(y<0&&(y+=1),y>1&&(y-=1),y<1/6?l+6*(o-l)*y:y<.5?o:y<2/3?l+(o-l)*(2/3-y)*6:l),hsl2rgb:({h:l,s:o,l:y},k)=>{if(!o)return 2.55*y;l/=360,o/=100;const E=(y/=100)<.5?y*(1+o):y+o-y*o,L=2*y-E;switch(k){case"r":return 255*pt.hue2rgb(L,E,l+1/3);case"g":return 255*pt.hue2rgb(L,E,l);case"b":return 255*pt.hue2rgb(L,E,l-1/3)}},rgb2hsl:({r:l,g:o,b:y},k)=>{l/=255,o/=255,y/=255;const E=Math.max(l,o,y),L=Math.min(l,o,y),N=(E+L)/2;if(k==="l")return 100*N;if(E===L)return 0;const D=E-L;if(k==="s")return 100*(N>.5?D/(2-E-L):D/(E+L));switch(E){case l:return 60*((o-y)/D+(oo>y?Math.min(o,Math.max(y,l)):Math.min(y,Math.max(o,l)),round:l=>Math.round(1e10*l)/1e10},unit:{dec2hex:l=>{const o=Math.round(l).toString(16);return o.length>1?o:`0${o}`}}},xt={};for(let l=0;l<=255;l++)xt[l]=wt.unit.dec2hex(l);const Rt=new class{constructor(l,o){this.color=o,this.changed=!1,this.data=l,this.type=new class{constructor(){this.type=0}get(){return this.type}set(y){if(this.type&&this.type!==y)throw new Error("Cannot change both RGB and HSL channels at the same time");this.type=y}reset(){this.type=0}is(y){return this.type===y}}}set(l,o){return this.color=o,this.changed=!1,this.data=l,this.type.type=0,this}_ensureHSL(){const l=this.data,{h:o,s:y,l:k}=l;o===void 0&&(l.h=wt.channel.rgb2hsl(l,"h")),y===void 0&&(l.s=wt.channel.rgb2hsl(l,"s")),k===void 0&&(l.l=wt.channel.rgb2hsl(l,"l"))}_ensureRGB(){const l=this.data,{r:o,g:y,b:k}=l;o===void 0&&(l.r=wt.channel.hsl2rgb(l,"r")),y===void 0&&(l.g=wt.channel.hsl2rgb(l,"g")),k===void 0&&(l.b=wt.channel.hsl2rgb(l,"b"))}get r(){const l=this.data,o=l.r;return this.type.is(2)||o===void 0?(this._ensureHSL(),wt.channel.hsl2rgb(l,"r")):o}get g(){const l=this.data,o=l.g;return this.type.is(2)||o===void 0?(this._ensureHSL(),wt.channel.hsl2rgb(l,"g")):o}get b(){const l=this.data,o=l.b;return this.type.is(2)||o===void 0?(this._ensureHSL(),wt.channel.hsl2rgb(l,"b")):o}get h(){const l=this.data,o=l.h;return this.type.is(1)||o===void 0?(this._ensureRGB(),wt.channel.rgb2hsl(l,"h")):o}get s(){const l=this.data,o=l.s;return this.type.is(1)||o===void 0?(this._ensureRGB(),wt.channel.rgb2hsl(l,"s")):o}get l(){const l=this.data,o=l.l;return this.type.is(1)||o===void 0?(this._ensureRGB(),wt.channel.rgb2hsl(l,"l")):o}get a(){return this.data.a}set r(l){this.type.set(1),this.changed=!0,this.data.r=l}set g(l){this.type.set(1),this.changed=!0,this.data.g=l}set b(l){this.type.set(1),this.changed=!0,this.data.b=l}set h(l){this.type.set(2),this.changed=!0,this.data.h=l}set s(l){this.type.set(2),this.changed=!0,this.data.s=l}set l(l){this.type.set(2),this.changed=!0,this.data.l=l}set a(l){this.changed=!0,this.data.a=l}}({r:0,g:0,b:0,a:0},"transparent"),me={re:/^#((?:[a-f0-9]{2}){2,4}|[a-f0-9]{3})$/i,parse:l=>{if(l.charCodeAt(0)!==35)return;const o=l.match(me.re);if(!o)return;const y=o[1],k=parseInt(y,16),E=y.length,L=E%4==0,N=E>4,D=N?1:17,P=N?8:4,U=L?0:-1,K=N?255:15;return Rt.set({r:(k>>P*(U+3)&K)*D,g:(k>>P*(U+2)&K)*D,b:(k>>P*(U+1)&K)*D,a:L?(k&K)*D/255:1},l)},stringify:l=>{const{r:o,g:y,b:k,a:E}=l;return E<1?`#${xt[Math.round(o)]}${xt[Math.round(y)]}${xt[Math.round(k)]}${xt[Math.round(255*E)]}`:`#${xt[Math.round(o)]}${xt[Math.round(y)]}${xt[Math.round(k)]}`}},Pe=me,ar={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:l=>{const o=l.match(ar.hueRe);if(o){const[,y,k]=o;switch(k){case"grad":return wt.channel.clamp.h(.9*parseFloat(y));case"rad":return wt.channel.clamp.h(180*parseFloat(y)/Math.PI);case"turn":return wt.channel.clamp.h(360*parseFloat(y))}}return wt.channel.clamp.h(parseFloat(l))},parse:l=>{const o=l.charCodeAt(0);if(o!==104&&o!==72)return;const y=l.match(ar.re);if(!y)return;const[,k,E,L,N,D]=y;return Rt.set({h:ar._hue2deg(k),s:wt.channel.clamp.s(parseFloat(E)),l:wt.channel.clamp.l(parseFloat(L)),a:N?wt.channel.clamp.a(D?parseFloat(N)/100:parseFloat(N)):1},l)},stringify:l=>{const{h:o,s:y,l:k,a:E}=l;return E<1?`hsla(${wt.lang.round(o)}, ${wt.lang.round(y)}%, ${wt.lang.round(k)}%, ${E})`:`hsl(${wt.lang.round(o)}, ${wt.lang.round(y)}%, ${wt.lang.round(k)}%)`}},Ze=ar,ur={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:l=>{l=l.toLowerCase();const o=ur.colors[l];if(o)return Pe.parse(o)},stringify:l=>{const o=Pe.stringify(l);for(const y in ur.colors)if(ur.colors[y]===o)return y}},ze=ur,Ce={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:l=>{const o=l.charCodeAt(0);if(o!==114&&o!==82)return;const y=l.match(Ce.re);if(!y)return;const[,k,E,L,N,D,P,U,K]=y;return Rt.set({r:wt.channel.clamp.r(E?2.55*parseFloat(k):parseFloat(k)),g:wt.channel.clamp.g(N?2.55*parseFloat(L):parseFloat(L)),b:wt.channel.clamp.b(P?2.55*parseFloat(D):parseFloat(D)),a:U?wt.channel.clamp.a(K?parseFloat(U)/100:parseFloat(U)):1},l)},stringify:l=>{const{r:o,g:y,b:k,a:E}=l;return E<1?`rgba(${wt.lang.round(o)}, ${wt.lang.round(y)}, ${wt.lang.round(k)}, ${wt.lang.round(E)})`:`rgb(${wt.lang.round(o)}, ${wt.lang.round(y)}, ${wt.lang.round(k)})`}},Be=Ce,Fe={format:{keyword:ze,hex:Pe,rgb:Be,rgba:Be,hsl:Ze,hsla:Ze},parse:l=>{if(typeof l!="string")return l;const o=Pe.parse(l)||Be.parse(l)||Ze.parse(l)||ze.parse(l);if(o)return o;throw new Error(`Unsupported color format: "${l}"`)},stringify:l=>!l.changed&&l.color?l.color:l.type.is(2)||l.data.r===void 0?Ze.stringify(l):l.a<1||!Number.isInteger(l.r)||!Number.isInteger(l.g)||!Number.isInteger(l.b)?Be.stringify(l):Pe.stringify(l)},be=(l,o)=>{const y=Fe.parse(l);for(const k in o)y[k]=wt.channel.clamp[k](o[k]);return Fe.stringify(y)},se=(l,o)=>{const y=Fe.parse(l),k={};for(const E in o)o[E]&&(k[E]=y[E]+o[E]);return be(l,k)},Lr=(l,o,y=0,k=1)=>{if(typeof l!="number")return be(l,{a:o});const E=Rt.set({r:wt.channel.clamp.r(l),g:wt.channel.clamp.g(o),b:wt.channel.clamp.b(y),a:wt.channel.clamp.a(k)});return Fe.stringify(E)},Ue=(l,o=100)=>{const y=Fe.parse(l);return y.r=255-y.r,y.g=255-y.g,y.b=255-y.b,((k,E,L=50)=>{const{r:N,g:D,b:P,a:U}=Fe.parse(k),{r:K,g:tt,b:st,a:ot}=Fe.parse(E),Lt=L/100,Dt=2*Lt-1,zt=U-ot,Ft=((Dt*zt==-1?Dt:(Dt+zt)/(1+Dt*zt))+1)/2,Pt=1-Ft;return Lr(N*Ft+K*Pt,D*Ft+tt*Pt,P*Ft+st*Pt,U*Lt+ot*(1-Lt))})(y,l,o)},dr=(l,o,y)=>{const k=Fe.parse(l),E=k[o],L=wt.channel.clamp[o](E+y);return E!==L&&(k[o]=L),Fe.stringify(k)},qe=(l,o)=>dr(l,"l",-o),gr=(l,o)=>dr(l,"l",o);var rn=function(l,o){return se(l,o?{s:-40,l:10}:{s:-40,l:-10})};function Dr(l){return Dr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(o){return typeof o}:function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},Dr(l)}function Ar(l,o){for(var y=0;yl.length)&&(o=l.length);for(var y=0,k=new Array(o);y1&&arguments[1]!==void 0?arguments[1]:"";return Object.keys(o).reduce(function(k,E){return Array.isArray(o[E])?k:Yr(o[E])==="object"&&o[E]!==null?[].concat(Cr(k),[y+E],Cr(l(o[E],""))):[].concat(Cr(k),[y+E])},[])}(jr,"");const On=jr;function Cn(l){return Cn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(o){return typeof o}:function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},Cn(l)}var Ir,ui=Object.freeze(On),Or=ie({},ui),En=[],Ln=ie({},ui),vn=function(l,o){for(var y=ie({},l),k={},E=0;E-1||o[y].indexOf(">")>-1||o[y].indexOf("url(data:")>-1)&&delete o[y],Cn(o[y])==="object"&&l(o[y])})},Rn=function(l){l.fontFamily&&(l.themeVariables&&l.themeVariables.fontFamily||(l.themeVariables={fontFamily:l.fontFamily})),En.push(l),vn(Or,En)},Kr=function(){vn(Or,En=[])},ti=h(7856),Wn=h.n(ti),Un=function(l){var o=l.replace(/\\u[\dA-F]{4}/gi,function(y){return String.fromCharCode(parseInt(y.replace(/\\u/g,""),16))});return o=(o=(o=o.replace(/\\x([0-9a-f]{2})/gi,function(y,k){return String.fromCharCode(parseInt(k,16))})).replace(/\\[\d\d\d]{3}/gi,function(y){return String.fromCharCode(parseInt(y.replace(/\\/g,""),8))})).replace(/\\[\d\d\d]{2}/gi,function(y){return String.fromCharCode(parseInt(y.replace(/\\/g,""),8))})},ei=function(l){for(var o="",y=0;y>=0;){if(!((y=l.indexOf("=0)){o+=l,y=-1;break}o+=l.substr(0,y),(y=(l=l.substr(y+1)).indexOf("<\/script>"))>=0&&(y+=9,l=l.substr(y))}var k=Un(o);return(k=(k=(k=(k=k.replace(/script>/gi,"#")).replace(/javascript:/gi,"#")).replace(/javascript&colon/gi,"#")).replace(/onerror=/gi,"onerror:")).replace(/`)}else N.securityLevel!=="loose"&&($t=Wn().sanitize($t,{ADD_TAGS:["foreignobject"],ADD_ATTR:["dominant-baseline"]}));if(y!==void 0)switch(zt){case"flowchart":case"flowchart-v2":y($t,ba.bindFunctions);break;case"gantt":y($t,Du.bindFunctions);break;case"class":case"classDiagram":y($t,la.bindFunctions);break;default:y($t)}else _.debug("CB = undefined!");Fs.forEach(function(ue){ue()}),Fs=[];var ce=N.securityLevel==="sandbox"?"#i"+l:"#d"+l,de=(0,T.select)(ce).node();if(de!==null&&typeof de.remove=="function"&&(0,T.select)(ce).node().remove(),P)throw P;return $t},parse:function(l,o){jn||(zl(),jn=!0);var y=!1;try{var k=o||new Yl(l);return k.db.clear(),k.parse(l)}catch(E){if(y=!0,!gs.parseError)throw E;E.str!=null?gs.parseError(E.str,E.hash):gs.parseError(E)}return!y},parseDirective:function(l,o,y,k){try{if(o!==void 0)switch(o=o.trim(),y){case"open_directive":Si={};break;case"type_directive":Si.type=o.toLowerCase();break;case"arg_directive":Si.args=JSON.parse(o);break;case"close_directive":(function(E,L,N){switch(_.debug("Directive type=".concat(L.type," with args:"),L.args),L.type){case"init":case"initialize":["config"].forEach(function(D){L.args[D]!==void 0&&(N==="flowchart-v2"&&(N="flowchart"),L.args[N]=L.args[D],delete L.args[D])}),_.debug("sanitize in handleDirective",L.args),yi(L.args),_.debug("sanitize in handleDirective (done)",L.args),Rn(L.args);break;case"wrap":case"nowrap":E&&E.setWrap&&E.setWrap(L.type==="wrap");break;case"themeCss":_.warn("themeCss encountered");break;default:_.warn("Unhandled directive: source: '%%{".concat(L.type,": ").concat(JSON.stringify(L.args?L.args:{}),"}%%"),L)}})(l,Si,k),Si=null}}catch(E){_.error("Error while rendering sequenceDiagram directive: ".concat(o," jison context: ").concat(y)),_.error(E.message)}},initialize:function(l){var o;l!=null&&l.fontFamily&&((o=l.themeVariables)!==null&&o!==void 0&&o.fontFamily||(l.themeVariables={fontFamily:l.fontFamily})),function(k){Ir=ie({},k)}(l),l!=null&&l.theme&&Pr[l.theme]?l.themeVariables=Pr[l.theme].getThemeVariables(l.themeVariables):l&&(l.themeVariables=Pr.default.getThemeVariables(l.themeVariables));var y=nn(l)==="object"?function(k){return Or=ie({},ui),Or=ie(Or,k),k.theme&&Pr[k.theme]&&(Or.themeVariables=Pr[k.theme].getThemeVariables(k.themeVariables)),Ln=vn(Or,En),Or}(l):Zn();Pn(y),A(y.logLevel),jn||(zl(),jn=!0)},getConfig:Bt,setConfig:function(l){return ie(Ln,l),Bt()},getSiteConfig:Zn,updateSiteConfig:function(l){return Or=ie(Or,l),vn(Or,En),Or},reset:function(){Kr()},globalReset:function(){Kr(),Pn(Bt())},defaultConfig:ui});A(Bt().logLevel),Kr(Bt());const Br=Wr;var ps=function(){var l,o,y=Br.getConfig();arguments.length>=2?(arguments[0]!==void 0&&(wr.sequenceConfig=arguments[0]),l=arguments[1]):l=arguments[0],typeof arguments[arguments.length-1]=="function"?(o=arguments[arguments.length-1],_.debug("Callback function found")):y.mermaid!==void 0&&(typeof y.mermaid.callback=="function"?(o=y.mermaid.callback,_.debug("Callback function found")):_.debug("No Callback function found")),l=l===void 0?document.querySelectorAll(".mermaid"):typeof l=="string"?document.querySelectorAll(l):l instanceof window.Node?[l]:l,_.debug("Start On Load before: "+wr.startOnLoad),wr.startOnLoad!==void 0&&(_.debug("Start On Load inner: "+wr.startOnLoad),Br.updateSiteConfig({startOnLoad:wr.startOnLoad})),wr.ganttConfig!==void 0&&Br.updateSiteConfig({gantt:wr.ganttConfig});for(var k,E=new Vr.initIdGenerator(y.deterministicIds,y.deterministicIDSeed),L=[],N=function(P){_.info("Rendering diagram: "+l[P].id,P);var U=l[P];if(U.getAttribute("data-processed"))return"continue";U.setAttribute("data-processed",!0);var K="mermaid-".concat(E.next());k=U.innerHTML,k=Vr.entityDecode(k).trim().replace(//gi,"
");var tt=Vr.detectInit(k);tt&&_.debug("Detected early reinit: ",tt);try{Br.render(K,k,function(st,ot){U.innerHTML=st,o!==void 0&&o(K),ot&&ot(U)},U)}catch(st){_.warn("Catching Error (bootstrap)",st),typeof wr.parseError=="function"&&wr.parseError({error:st,str:st.str,hash:st.hash,message:st.str}),L.push({error:st,str:st.str,hash:st.hash,message:st.str})}},D=0;D0)throw L[0]},Zi=function(){wr.startOnLoad?Br.getConfig().startOnLoad&&wr.init():wr.startOnLoad===void 0&&(_.debug("In start, no config"),Br.getConfig().startOnLoad&&wr.init())};typeof document<"u"&&window.addEventListener("load",function(){Zi()},!1);var wr={startOnLoad:!0,htmlLabels:!0,diagrams:{},mermaidAPI:Br,parse:Br!=null?Br.parse:null,render:Br!=null?Br.render:null,init:function(){try{ps.apply(void 0,arguments)}catch(l){_.warn("Syntax Error rendering"),_.warn(l.str)}},initThrowsErrors:ps,initialize:function(l){l.mermaid!==void 0&&(l.mermaid.startOnLoad!==void 0&&(wr.startOnLoad=l.mermaid.startOnLoad),l.mermaid.htmlLabels!==void 0&&(wr.htmlLabels=l.mermaid.htmlLabels!=="false"&&l.mermaid.htmlLabels!==!1)),Br.initialize(l)},contentLoaded:Zi,setParseErrorHandler:function(l){wr.parseError=l}};const gs=wr},4949:(d,b,h)=>{d.exports={graphlib:h(6614),dagre:h(6478),intersect:h(8114),render:h(5787),util:h(8355),version:h(5689)}},9144:(d,b,h)=>{var m=h(8355);function f(v,_,A,M){var T=v.append("marker").attr("id",_).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerUnits","strokeWidth").attr("markerWidth",8).attr("markerHeight",6).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 z").style("stroke-width",1).style("stroke-dasharray","1,0");m.applyStyle(T,A[M+"Style"]),A[M+"Class"]&&T.attr("class",A[M+"Class"])}d.exports={default:f,normal:f,vee:function(v,_,A,M){var T=v.append("marker").attr("id",_).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerUnits","strokeWidth").attr("markerWidth",8).attr("markerHeight",6).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 L 4 5 z").style("stroke-width",1).style("stroke-dasharray","1,0");m.applyStyle(T,A[M+"Style"]),A[M+"Class"]&&T.attr("class",A[M+"Class"])},undirected:function(v,_,A,M){var T=v.append("marker").attr("id",_).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerUnits","strokeWidth").attr("markerWidth",8).attr("markerHeight",6).attr("orient","auto").append("path").attr("d","M 0 5 L 10 5").style("stroke-width",1).style("stroke-dasharray","1,0");m.applyStyle(T,A[M+"Style"]),A[M+"Class"]&&T.attr("class",A[M+"Class"])}}},5632:(d,b,h)=>{var m=h(8355),f=h(4322),v=h(1322);d.exports=function(_,A){var M,T=A.nodes().filter(function(B){return m.isSubgraph(A,B)}),O=_.selectAll("g.cluster").data(T,function(B){return B});return O.selectAll("*").remove(),O.enter().append("g").attr("class","cluster").attr("id",function(B){return A.node(B).id}).style("opacity",0),O=_.selectAll("g.cluster"),m.applyTransition(O,A).style("opacity",1),O.each(function(B){var z=A.node(B),q=f.select(this);f.select(this).append("rect");var J=q.append("g").attr("class","label");v(J,z,z.clusterLabelPos)}),O.selectAll("rect").each(function(B){var z=A.node(B),q=f.select(this);m.applyStyle(q,z.style)}),M=O.exit?O.exit():O.selectAll(null),m.applyTransition(M,A).style("opacity",0).remove(),O}},6315:(d,b,h)=>{var m=h(1034),f=h(1322),v=h(8355),_=h(4322);d.exports=function(A,M){var T,O=A.selectAll("g.edgeLabel").data(M.edges(),function(B){return v.edgeToId(B)}).classed("update",!0);return O.exit().remove(),O.enter().append("g").classed("edgeLabel",!0).style("opacity",0),(O=A.selectAll("g.edgeLabel")).each(function(B){var z=_.select(this);z.select(".label").remove();var q=M.edge(B),J=f(z,M.edge(B),0,0).classed("label",!0),rt=J.node().getBBox();q.labelId&&J.attr("id",q.labelId),m.has(q,"width")||(q.width=rt.width),m.has(q,"height")||(q.height=rt.height)}),T=O.exit?O.exit():O.selectAll(null),v.applyTransition(T,M).style("opacity",0).remove(),O}},940:(d,b,h)=>{var m=h(1034),f=h(3042),v=h(8355),_=h(4322);function A(M,T){var O=(_.line||_.svg.line)().x(function(B){return B.x}).y(function(B){return B.y});return(O.curve||O.interpolate)(M.curve),O(T)}d.exports=function(M,T,O){var B=M.selectAll("g.edgePath").data(T.edges(),function(J){return v.edgeToId(J)}).classed("update",!0),z=function(J,rt){var ut=J.enter().append("g").attr("class","edgePath").style("opacity",0);return ut.append("path").attr("class","path").attr("d",function(Z){var mt=rt.edge(Z),nt=rt.node(Z.v).elem;return A(mt,m.range(mt.points.length).map(function(){return _t=(at=nt).getBBox(),{x:(jt=at.ownerSVGElement.getScreenCTM().inverse().multiply(at.getScreenCTM()).translate(_t.width/2,_t.height/2)).e,y:jt.f};var at,_t,jt}))}),ut.append("defs"),ut}(B,T);(function(J,rt){var ut=J.exit();v.applyTransition(ut,rt).style("opacity",0).remove()})(B,T);var q=B.merge!==void 0?B.merge(z):B;return v.applyTransition(q,T).style("opacity",1),q.each(function(J){var rt=_.select(this),ut=T.edge(J);ut.elem=this,ut.id&&rt.attr("id",ut.id),v.applyClass(rt,ut.class,(rt.classed("update")?"update ":"")+"edgePath")}),q.selectAll("path.path").each(function(J){var rt=T.edge(J);rt.arrowheadId=m.uniqueId("arrowhead");var ut=_.select(this).attr("marker-end",function(){return"url("+(Z=location.href,mt=rt.arrowheadId,Z.split("#")[0]+"#"+mt+")");var Z,mt}).style("fill","none");v.applyTransition(ut,T).attr("d",function(Z){return function(mt,nt){var at=mt.edge(nt),_t=mt.node(nt.v),jt=mt.node(nt.w),St=at.points.slice(1,at.points.length-1);return St.unshift(f(_t,St[0])),St.push(f(jt,St[St.length-1])),A(at,St)}(T,Z)}),v.applyStyle(ut,rt.style)}),q.selectAll("defs *").remove(),q.selectAll("defs").each(function(J){var rt=T.edge(J);(0,O[rt.arrowhead])(_.select(this),rt.arrowheadId,rt,"arrowhead")}),q}},607:(d,b,h)=>{var m=h(1034),f=h(1322),v=h(8355),_=h(4322);d.exports=function(A,M,T){var O,B=M.nodes().filter(function(q){return!v.isSubgraph(M,q)}),z=A.selectAll("g.node").data(B,function(q){return q}).classed("update",!0);return z.exit().remove(),z.enter().append("g").attr("class","node").style("opacity",0),(z=A.selectAll("g.node")).each(function(q){var J=M.node(q),rt=_.select(this);v.applyClass(rt,J.class,(rt.classed("update")?"update ":"")+"node"),rt.select("g.label").remove();var ut=rt.append("g").attr("class","label"),Z=f(ut,J),mt=T[J.shape],nt=m.pick(Z.node().getBBox(),"width","height");J.elem=this,J.id&&rt.attr("id",J.id),J.labelId&&ut.attr("id",J.labelId),m.has(J,"width")&&(nt.width=J.width),m.has(J,"height")&&(nt.height=J.height),nt.width+=J.paddingLeft+J.paddingRight,nt.height+=J.paddingTop+J.paddingBottom,ut.attr("transform","translate("+(J.paddingLeft-J.paddingRight)/2+","+(J.paddingTop-J.paddingBottom)/2+")");var at=_.select(this);at.select(".label-container").remove();var _t=mt(at,nt,J).classed("label-container",!0);v.applyStyle(_t,J.style);var jt=_t.node().getBBox();J.width=jt.width,J.height=jt.height}),O=z.exit?z.exit():z.selectAll(null),v.applyTransition(O,M).style("opacity",0).remove(),z}},4322:(d,b,h)=>{var m;if(!m)try{m=h(7543)}catch{}m||(m=window.d3),d.exports=m},6478:(d,b,h)=>{var m;try{m=h(681)}catch{}m||(m=window.dagre),d.exports=m},6614:(d,b,h)=>{var m;try{m=h(8282)}catch{}m||(m=window.graphlib),d.exports=m},8114:(d,b,h)=>{d.exports={node:h(3042),circle:h(6587),ellipse:h(3260),polygon:h(5337),rect:h(8049)}},6587:(d,b,h)=>{var m=h(3260);d.exports=function(f,v,_){return m(f,v,v,_)}},3260:d=>{d.exports=function(b,h,m,f){var v=b.x,_=b.y,A=v-f.x,M=_-f.y,T=Math.sqrt(h*h*M*M+m*m*A*A),O=Math.abs(h*m*A/T);f.x{function b(h,m){return h*m>0}d.exports=function(h,m,f,v){var _,A,M,T,O,B,z,q,J,rt,ut,Z,mt;if(_=m.y-h.y,M=h.x-m.x,O=m.x*h.y-h.x*m.y,J=_*f.x+M*f.y+O,rt=_*v.x+M*v.y+O,!(J!==0&&rt!==0&&b(J,rt)||(A=v.y-f.y,T=f.x-v.x,B=v.x*f.y-f.x*v.y,z=A*h.x+T*h.y+B,q=A*m.x+T*m.y+B,z!==0&&q!==0&&b(z,q)||(ut=_*T-A*M)==0)))return Z=Math.abs(ut/2),{x:(mt=M*B-T*O)<0?(mt-Z)/ut:(mt+Z)/ut,y:(mt=A*O-_*B)<0?(mt-Z)/ut:(mt+Z)/ut}}},3042:d=>{d.exports=function(b,h){return b.intersect(h)}},5337:(d,b,h)=>{var m=h(6808);d.exports=function(f,v,_){var A=f.x,M=f.y,T=[],O=Number.POSITIVE_INFINITY,B=Number.POSITIVE_INFINITY;v.forEach(function(mt){O=Math.min(O,mt.x),B=Math.min(B,mt.y)});for(var z=A-f.width/2-O,q=M-f.height/2-B,J=0;J1&&T.sort(function(mt,nt){var at=mt.x-_.x,_t=mt.y-_.y,jt=Math.sqrt(at*at+_t*_t),St=nt.x-_.x,gt=nt.y-_.y,Ct=Math.sqrt(St*St+gt*gt);return jt{d.exports=function(b,h){var m,f,v=b.x,_=b.y,A=h.x-v,M=h.y-_,T=b.width/2,O=b.height/2;return Math.abs(M)*T>Math.abs(A)*O?(M<0&&(O=-O),m=M===0?0:O*A/M,f=O):(A<0&&(T=-T),m=T,f=A===0?0:T*M/A),{x:v+m,y:_+f}}},8284:(d,b,h)=>{var m=h(8355);d.exports=function(f,v){var _=f.append("foreignObject").attr("width","100000"),A=_.append("xhtml:div");A.attr("xmlns","http://www.w3.org/1999/xhtml");var M=v.label;switch(typeof M){case"function":A.insert(M);break;case"object":A.insert(function(){return M});break;default:A.html(M)}m.applyStyle(A,v.labelStyle),A.style("display","inline-block"),A.style("white-space","nowrap");var T=A.node().getBoundingClientRect();return _.attr("width",T.width).attr("height",T.height),_}},1322:(d,b,h)=>{var m=h(7318),f=h(8284),v=h(8287);d.exports=function(_,A,M){var T=A.label,O=_.append("g");A.labelType==="svg"?v(O,A):typeof T!="string"||A.labelType==="html"?f(O,A):m(O,A);var B,z=O.node().getBBox();switch(M){case"top":B=-A.height/2;break;case"bottom":B=A.height/2-z.height;break;default:B=-z.height/2}return O.attr("transform","translate("+-z.width/2+","+B+")"),O}},8287:(d,b,h)=>{var m=h(8355);d.exports=function(f,v){var _=f;return _.node().appendChild(v.label),m.applyStyle(_,v.labelStyle),_}},7318:(d,b,h)=>{var m=h(8355);d.exports=function(f,v){for(var _=f.append("text"),A=function(T){for(var O,B="",z=!1,q=0;q{var m;try{m={defaults:h(1747),each:h(6073),isFunction:h(3560),isPlainObject:h(8630),pick:h(9722),has:h(8721),range:h(6026),uniqueId:h(3955)}}catch{}m||(m=window._),d.exports=m},6381:(d,b,h)=>{var m=h(8355),f=h(4322);d.exports=function(v,_){var A=v.filter(function(){return!f.select(this).classed("update")});function M(T){var O=_.node(T);return"translate("+O.x+","+O.y+")"}A.attr("transform",M),m.applyTransition(v,_).style("opacity",1).attr("transform",M),m.applyTransition(A.selectAll("rect"),_).attr("width",function(T){return _.node(T).width}).attr("height",function(T){return _.node(T).height}).attr("x",function(T){return-_.node(T).width/2}).attr("y",function(T){return-_.node(T).height/2})}},4577:(d,b,h)=>{var m=h(8355),f=h(4322),v=h(1034);d.exports=function(_,A){function M(T){var O=A.edge(T);return v.has(O,"x")?"translate("+O.x+","+O.y+")":""}_.filter(function(){return!f.select(this).classed("update")}).attr("transform",M),m.applyTransition(_,A).style("opacity",1).attr("transform",M)}},4849:(d,b,h)=>{var m=h(8355),f=h(4322);d.exports=function(v,_){function A(M){var T=_.node(M);return"translate("+T.x+","+T.y+")"}v.filter(function(){return!f.select(this).classed("update")}).attr("transform",A),m.applyTransition(v,_).style("opacity",1).attr("transform",A)}},5787:(d,b,h)=>{var m=h(1034),f=h(4322),v=h(6478).layout;d.exports=function(){var T=h(607),O=h(5632),B=h(6315),z=h(940),q=h(4849),J=h(4577),rt=h(6381),ut=h(4418),Z=h(9144),mt=function(nt,at){(function(ft){ft.nodes().forEach(function(Q){var ht=ft.node(Q);m.has(ht,"label")||ft.children(Q).length||(ht.label=Q),m.has(ht,"paddingX")&&m.defaults(ht,{paddingLeft:ht.paddingX,paddingRight:ht.paddingX}),m.has(ht,"paddingY")&&m.defaults(ht,{paddingTop:ht.paddingY,paddingBottom:ht.paddingY}),m.has(ht,"padding")&&m.defaults(ht,{paddingLeft:ht.padding,paddingRight:ht.padding,paddingTop:ht.padding,paddingBottom:ht.padding}),m.defaults(ht,_),m.each(["paddingLeft","paddingRight","paddingTop","paddingBottom"],function($){ht[$]=Number(ht[$])}),m.has(ht,"width")&&(ht._prevWidth=ht.width),m.has(ht,"height")&&(ht._prevHeight=ht.height)}),ft.edges().forEach(function(Q){var ht=ft.edge(Q);m.has(ht,"label")||(ht.label=""),m.defaults(ht,A)})})(at);var _t=M(nt,"output"),jt=M(_t,"clusters"),St=M(_t,"edgePaths"),gt=B(M(_t,"edgeLabels"),at),Ct=T(M(_t,"nodes"),at,ut);v(at),q(Ct,at),J(gt,at),z(St,at,Z);var vt=O(jt,at);rt(vt,at),function(ft){m.each(ft.nodes(),function(Q){var ht=ft.node(Q);m.has(ht,"_prevWidth")?ht.width=ht._prevWidth:delete ht.width,m.has(ht,"_prevHeight")?ht.height=ht._prevHeight:delete ht.height,delete ht._prevWidth,delete ht._prevHeight})}(at)};return mt.createNodes=function(nt){return arguments.length?(T=nt,mt):T},mt.createClusters=function(nt){return arguments.length?(O=nt,mt):O},mt.createEdgeLabels=function(nt){return arguments.length?(B=nt,mt):B},mt.createEdgePaths=function(nt){return arguments.length?(z=nt,mt):z},mt.shapes=function(nt){return arguments.length?(ut=nt,mt):ut},mt.arrows=function(nt){return arguments.length?(Z=nt,mt):Z},mt};var _={paddingLeft:10,paddingRight:10,paddingTop:10,paddingBottom:10,rx:0,ry:0,shape:"rect"},A={arrowhead:"normal",curve:f.curveLinear};function M(T,O){var B=T.select("g."+O);return B.empty()&&(B=T.append("g").attr("class",O)),B}},4418:(d,b,h)=>{var m=h(8049),f=h(3260),v=h(6587),_=h(5337);d.exports={rect:function(A,M,T){var O=A.insert("rect",":first-child").attr("rx",T.rx).attr("ry",T.ry).attr("x",-M.width/2).attr("y",-M.height/2).attr("width",M.width).attr("height",M.height);return T.intersect=function(B){return m(T,B)},O},ellipse:function(A,M,T){var O=M.width/2,B=M.height/2,z=A.insert("ellipse",":first-child").attr("x",-M.width/2).attr("y",-M.height/2).attr("rx",O).attr("ry",B);return T.intersect=function(q){return f(T,O,B,q)},z},circle:function(A,M,T){var O=Math.max(M.width,M.height)/2,B=A.insert("circle",":first-child").attr("x",-M.width/2).attr("y",-M.height/2).attr("r",O);return T.intersect=function(z){return v(T,O,z)},B},diamond:function(A,M,T){var O=M.width*Math.SQRT2/2,B=M.height*Math.SQRT2/2,z=[{x:0,y:-B},{x:-O,y:0},{x:0,y:B},{x:O,y:0}],q=A.insert("polygon",":first-child").attr("points",z.map(function(J){return J.x+","+J.y}).join(" "));return T.intersect=function(J){return _(T,z,J)},q}}},8355:(d,b,h)=>{var m=h(1034);d.exports={isSubgraph:function(_,A){return!!_.children(A).length},edgeToId:function(_){return v(_.v)+":"+v(_.w)+":"+v(_.name)},applyStyle:function(_,A){A&&_.attr("style",A)},applyClass:function(_,A,M){A&&_.attr("class",A).attr("class",M+" "+_.attr("class"))},applyTransition:function(_,A){var M=A.graph();if(m.isPlainObject(M)){var T=M.transition;if(m.isFunction(T))return T(_)}return _}};var f=/:/g;function v(_){return _?String(_).replace(f,"\\:"):""}},5689:d=>{d.exports="0.6.4"},681:(d,b,h)=>{d.exports={graphlib:h(574),layout:h(8123),debug:h(7570),util:{time:h(1138).time,notime:h(1138).notime},version:h(8177)}},2188:(d,b,h)=>{var m=h(8436),f=h(4079);d.exports={run:function(v){var _=v.graph().acyclicer==="greedy"?f(v,function(A){return function(M){return A.edge(M).weight}}(v)):function(A){var M=[],T={},O={};return m.forEach(A.nodes(),function B(z){m.has(O,z)||(O[z]=!0,T[z]=!0,m.forEach(A.outEdges(z),function(q){m.has(T,q.w)?M.push(q):B(q.w)}),delete T[z])}),M}(v);m.forEach(_,function(A){var M=v.edge(A);v.removeEdge(A),M.forwardName=A.name,M.reversed=!0,v.setEdge(A.w,A.v,M,m.uniqueId("rev"))})},undo:function(v){m.forEach(v.edges(),function(_){var A=v.edge(_);if(A.reversed){v.removeEdge(_);var M=A.forwardName;delete A.reversed,delete A.forwardName,v.setEdge(_.w,_.v,A,M)}})}}},1133:(d,b,h)=>{var m=h(8436),f=h(1138);function v(_,A,M,T,O,B){var z={width:0,height:0,rank:B,borderType:A},q=O[A][B-1],J=f.addDummyNode(_,"border",z,M);O[A][B]=J,_.setParent(J,T),q&&_.setEdge(q,J,{weight:1})}d.exports=function(_){m.forEach(_.children(),function A(M){var T=_.children(M),O=_.node(M);if(T.length&&m.forEach(T,A),m.has(O,"minRank")){O.borderLeft=[],O.borderRight=[];for(var B=O.minRank,z=O.maxRank+1;B{var m=h(8436);function f(M){m.forEach(M.nodes(),function(T){v(M.node(T))}),m.forEach(M.edges(),function(T){v(M.edge(T))})}function v(M){var T=M.width;M.width=M.height,M.height=T}function _(M){M.y=-M.y}function A(M){var T=M.x;M.x=M.y,M.y=T}d.exports={adjust:function(M){var T=M.graph().rankdir.toLowerCase();T!=="lr"&&T!=="rl"||f(M)},undo:function(M){var T=M.graph().rankdir.toLowerCase();T!=="bt"&&T!=="rl"||function(O){m.forEach(O.nodes(),function(B){_(O.node(B))}),m.forEach(O.edges(),function(B){var z=O.edge(B);m.forEach(z.points,_),m.has(z,"y")&&_(z)})}(M),T!=="lr"&&T!=="rl"||(function(O){m.forEach(O.nodes(),function(B){A(O.node(B))}),m.forEach(O.edges(),function(B){var z=O.edge(B);m.forEach(z.points,A),m.has(z,"x")&&A(z)})}(M),f(M))}}},7822:d=>{function b(){var f={};f._next=f._prev=f,this._sentinel=f}function h(f){f._prev._next=f._next,f._next._prev=f._prev,delete f._next,delete f._prev}function m(f,v){if(f!=="_next"&&f!=="_prev")return v}d.exports=b,b.prototype.dequeue=function(){var f=this._sentinel,v=f._prev;if(v!==f)return h(v),v},b.prototype.enqueue=function(f){var v=this._sentinel;f._prev&&f._next&&h(f),f._next=v._next,v._next._prev=f,v._next=f,f._prev=v},b.prototype.toString=function(){for(var f=[],v=this._sentinel,_=v._prev;_!==v;)f.push(JSON.stringify(_,m)),_=_._prev;return"["+f.join(", ")+"]"}},7570:(d,b,h)=>{var m=h(8436),f=h(1138),v=h(574).Graph;d.exports={debugOrdering:function(_){var A=f.buildLayerMatrix(_),M=new v({compound:!0,multigraph:!0}).setGraph({});return m.forEach(_.nodes(),function(T){M.setNode(T,{label:T}),M.setParent(T,"layer"+_.node(T).rank)}),m.forEach(_.edges(),function(T){M.setEdge(T.v,T.w,{},T.name)}),m.forEach(A,function(T,O){var B="layer"+O;M.setNode(B,{rank:"same"}),m.reduce(T,function(z,q){return M.setEdge(z,q,{style:"invis"}),q})}),M}}},574:(d,b,h)=>{var m;try{m=h(8282)}catch{}m||(m=window.graphlib),d.exports=m},4079:(d,b,h)=>{var m=h(8436),f=h(574).Graph,v=h(7822);d.exports=function(T,O){if(T.nodeCount()<=1)return[];var B=function(q,J){var rt=new f,ut=0,Z=0;m.forEach(q.nodes(),function(at){rt.setNode(at,{v:at,in:0,out:0})}),m.forEach(q.edges(),function(at){var _t=rt.edge(at.v,at.w)||0,jt=J(at),St=_t+jt;rt.setEdge(at.v,at.w,St),Z=Math.max(Z,rt.node(at.v).out+=jt),ut=Math.max(ut,rt.node(at.w).in+=jt)});var mt=m.range(Z+ut+3).map(function(){return new v}),nt=ut+1;return m.forEach(rt.nodes(),function(at){M(mt,nt,rt.node(at))}),{graph:rt,buckets:mt,zeroIdx:nt}}(T,O||_),z=function(q,J,rt){for(var ut,Z=[],mt=J[J.length-1],nt=J[0];q.nodeCount();){for(;ut=nt.dequeue();)A(q,J,rt,ut);for(;ut=mt.dequeue();)A(q,J,rt,ut);if(q.nodeCount()){for(var at=J.length-2;at>0;--at)if(ut=J[at].dequeue()){Z=Z.concat(A(q,J,rt,ut,!0));break}}}return Z}(B.graph,B.buckets,B.zeroIdx);return m.flatten(m.map(z,function(q){return T.outEdges(q.v,q.w)}),!0)};var _=m.constant(1);function A(T,O,B,z,q){var J=q?[]:void 0;return m.forEach(T.inEdges(z.v),function(rt){var ut=T.edge(rt),Z=T.node(rt.v);q&&J.push({v:rt.v,w:rt.w}),Z.out-=ut,M(O,B,Z)}),m.forEach(T.outEdges(z.v),function(rt){var ut=T.edge(rt),Z=rt.w,mt=T.node(Z);mt.in-=ut,M(O,B,mt)}),T.removeNode(z.v),J}function M(T,O,B){B.out?B.in?T[B.out-B.in+O].enqueue(B):T[T.length-1].enqueue(B):T[0].enqueue(B)}},8123:(d,b,h)=>{var m=h(8436),f=h(2188),v=h(5995),_=h(8093),A=h(1138).normalizeRanks,M=h(4219),T=h(1138).removeEmptyRanks,O=h(2981),B=h(1133),z=h(3258),q=h(3408),J=h(7873),rt=h(1138),ut=h(574).Graph;d.exports=function(ft,Q){var ht=Q&&Q.debugTiming?rt.time:rt.notime;ht("layout",function(){var $=ht(" buildLayoutGraph",function(){return function(kt){var W=new ut({multigraph:!0,compound:!0}),At=vt(kt.graph());return W.setGraph(m.merge({},mt,Ct(At,Z),m.pick(At,nt))),m.forEach(kt.nodes(),function(Nt){var Gt=vt(kt.node(Nt));W.setNode(Nt,m.defaults(Ct(Gt,at),_t)),W.setParent(Nt,kt.parent(Nt))}),m.forEach(kt.edges(),function(Nt){var Gt=vt(kt.edge(Nt));W.setEdge(Nt,m.merge({},St,Ct(Gt,jt),m.pick(Gt,gt)))}),W}(ft)});ht(" runLayout",function(){(function(kt,W){W(" makeSpaceForEdgeLabels",function(){(function(At){var Nt=At.graph();Nt.ranksep/=2,m.forEach(At.edges(),function(Gt){var xe=At.edge(Gt);xe.minlen*=2,xe.labelpos.toLowerCase()!=="c"&&(Nt.rankdir==="TB"||Nt.rankdir==="BT"?xe.width+=xe.labeloffset:xe.height+=xe.labeloffset)})})(kt)}),W(" removeSelfEdges",function(){(function(At){m.forEach(At.edges(),function(Nt){if(Nt.v===Nt.w){var Gt=At.node(Nt.v);Gt.selfEdges||(Gt.selfEdges=[]),Gt.selfEdges.push({e:Nt,label:At.edge(Nt)}),At.removeEdge(Nt)}})})(kt)}),W(" acyclic",function(){f.run(kt)}),W(" nestingGraph.run",function(){O.run(kt)}),W(" rank",function(){_(rt.asNonCompoundGraph(kt))}),W(" injectEdgeLabelProxies",function(){(function(At){m.forEach(At.edges(),function(Nt){var Gt=At.edge(Nt);if(Gt.width&&Gt.height){var xe=At.node(Nt.v),Ge={rank:(At.node(Nt.w).rank-xe.rank)/2+xe.rank,e:Nt};rt.addDummyNode(At,"edge-proxy",Ge,"_ep")}})})(kt)}),W(" removeEmptyRanks",function(){T(kt)}),W(" nestingGraph.cleanup",function(){O.cleanup(kt)}),W(" normalizeRanks",function(){A(kt)}),W(" assignRankMinMax",function(){(function(At){var Nt=0;m.forEach(At.nodes(),function(Gt){var xe=At.node(Gt);xe.borderTop&&(xe.minRank=At.node(xe.borderTop).rank,xe.maxRank=At.node(xe.borderBottom).rank,Nt=m.max(Nt,xe.maxRank))}),At.graph().maxRank=Nt})(kt)}),W(" removeEdgeLabelProxies",function(){(function(At){m.forEach(At.nodes(),function(Nt){var Gt=At.node(Nt);Gt.dummy==="edge-proxy"&&(At.edge(Gt.e).labelRank=Gt.rank,At.removeNode(Nt))})})(kt)}),W(" normalize.run",function(){v.run(kt)}),W(" parentDummyChains",function(){M(kt)}),W(" addBorderSegments",function(){B(kt)}),W(" order",function(){q(kt)}),W(" insertSelfEdges",function(){(function(At){var Nt=rt.buildLayerMatrix(At);m.forEach(Nt,function(Gt){var xe=0;m.forEach(Gt,function(Ge,Te){var ye=At.node(Ge);ye.order=Te+xe,m.forEach(ye.selfEdges,function(ke){rt.addDummyNode(At,"selfedge",{width:ke.label.width,height:ke.label.height,rank:ye.rank,order:Te+ ++xe,e:ke.e,label:ke.label},"_se")}),delete ye.selfEdges})})})(kt)}),W(" adjustCoordinateSystem",function(){z.adjust(kt)}),W(" position",function(){J(kt)}),W(" positionSelfEdges",function(){(function(At){m.forEach(At.nodes(),function(Nt){var Gt=At.node(Nt);if(Gt.dummy==="selfedge"){var xe=At.node(Gt.e.v),Ge=xe.x+xe.width/2,Te=xe.y,ye=Gt.x-Ge,ke=xe.height/2;At.setEdge(Gt.e,Gt.label),At.removeNode(Nt),Gt.label.points=[{x:Ge+2*ye/3,y:Te-ke},{x:Ge+5*ye/6,y:Te-ke},{x:Ge+ye,y:Te},{x:Ge+5*ye/6,y:Te+ke},{x:Ge+2*ye/3,y:Te+ke}],Gt.label.x=Gt.x,Gt.label.y=Gt.y}})})(kt)}),W(" removeBorderNodes",function(){(function(At){m.forEach(At.nodes(),function(Nt){if(At.children(Nt).length){var Gt=At.node(Nt),xe=At.node(Gt.borderTop),Ge=At.node(Gt.borderBottom),Te=At.node(m.last(Gt.borderLeft)),ye=At.node(m.last(Gt.borderRight));Gt.width=Math.abs(ye.x-Te.x),Gt.height=Math.abs(Ge.y-xe.y),Gt.x=Te.x+Gt.width/2,Gt.y=xe.y+Gt.height/2}}),m.forEach(At.nodes(),function(Nt){At.node(Nt).dummy==="border"&&At.removeNode(Nt)})})(kt)}),W(" normalize.undo",function(){v.undo(kt)}),W(" fixupEdgeLabelCoords",function(){(function(At){m.forEach(At.edges(),function(Nt){var Gt=At.edge(Nt);if(m.has(Gt,"x"))switch(Gt.labelpos!=="l"&&Gt.labelpos!=="r"||(Gt.width-=Gt.labeloffset),Gt.labelpos){case"l":Gt.x-=Gt.width/2+Gt.labeloffset;break;case"r":Gt.x+=Gt.width/2+Gt.labeloffset}})})(kt)}),W(" undoCoordinateSystem",function(){z.undo(kt)}),W(" translateGraph",function(){(function(At){var Nt=Number.POSITIVE_INFINITY,Gt=0,xe=Number.POSITIVE_INFINITY,Ge=0,Te=At.graph(),ye=Te.marginx||0,ke=Te.marginy||0;function Me(Oe){var we=Oe.x,Sr=Oe.y,_e=Oe.width,er=Oe.height;Nt=Math.min(Nt,we-_e/2),Gt=Math.max(Gt,we+_e/2),xe=Math.min(xe,Sr-er/2),Ge=Math.max(Ge,Sr+er/2)}m.forEach(At.nodes(),function(Oe){Me(At.node(Oe))}),m.forEach(At.edges(),function(Oe){var we=At.edge(Oe);m.has(we,"x")&&Me(we)}),Nt-=ye,xe-=ke,m.forEach(At.nodes(),function(Oe){var we=At.node(Oe);we.x-=Nt,we.y-=xe}),m.forEach(At.edges(),function(Oe){var we=At.edge(Oe);m.forEach(we.points,function(Sr){Sr.x-=Nt,Sr.y-=xe}),m.has(we,"x")&&(we.x-=Nt),m.has(we,"y")&&(we.y-=xe)}),Te.width=Gt-Nt+ye,Te.height=Ge-xe+ke})(kt)}),W(" assignNodeIntersects",function(){(function(At){m.forEach(At.edges(),function(Nt){var Gt,xe,Ge=At.edge(Nt),Te=At.node(Nt.v),ye=At.node(Nt.w);Ge.points?(Gt=Ge.points[0],xe=Ge.points[Ge.points.length-1]):(Ge.points=[],Gt=ye,xe=Te),Ge.points.unshift(rt.intersectRect(Te,Gt)),Ge.points.push(rt.intersectRect(ye,xe))})})(kt)}),W(" reversePoints",function(){(function(At){m.forEach(At.edges(),function(Nt){var Gt=At.edge(Nt);Gt.reversed&&Gt.points.reverse()})})(kt)}),W(" acyclic.undo",function(){f.undo(kt)})})($,ht)}),ht(" updateInputGraph",function(){(function(kt,W){m.forEach(kt.nodes(),function(At){var Nt=kt.node(At),Gt=W.node(At);Nt&&(Nt.x=Gt.x,Nt.y=Gt.y,W.children(At).length&&(Nt.width=Gt.width,Nt.height=Gt.height))}),m.forEach(kt.edges(),function(At){var Nt=kt.edge(At),Gt=W.edge(At);Nt.points=Gt.points,m.has(Gt,"x")&&(Nt.x=Gt.x,Nt.y=Gt.y)}),kt.graph().width=W.graph().width,kt.graph().height=W.graph().height})(ft,$)})})};var Z=["nodesep","edgesep","ranksep","marginx","marginy"],mt={ranksep:50,edgesep:20,nodesep:50,rankdir:"tb"},nt=["acyclicer","ranker","rankdir","align"],at=["width","height"],_t={width:0,height:0},jt=["minlen","weight","width","height","labeloffset"],St={minlen:1,weight:1,width:0,height:0,labeloffset:10,labelpos:"r"},gt=["labelpos"];function Ct(ft,Q){return m.mapValues(m.pick(ft,Q),Number)}function vt(ft){var Q={};return m.forEach(ft,function(ht,$){Q[$.toLowerCase()]=ht}),Q}},8436:(d,b,h)=>{var m;try{m={cloneDeep:h(361),constant:h(5703),defaults:h(1747),each:h(6073),filter:h(3105),find:h(3311),flatten:h(5564),forEach:h(4486),forIn:h(2620),has:h(8721),isUndefined:h(2353),last:h(928),map:h(5161),mapValues:h(6604),max:h(6162),merge:h(3857),min:h(3632),minBy:h(2762),now:h(7771),pick:h(9722),range:h(6026),reduce:h(4061),sortBy:h(9734),uniqueId:h(3955),values:h(2628),zipObject:h(7287)}}catch{}m||(m=window._),d.exports=m},2981:(d,b,h)=>{var m=h(8436),f=h(1138);function v(_,A,M,T,O,B,z){var q=_.children(z);if(q.length){var J=f.addBorderNode(_,"_bt"),rt=f.addBorderNode(_,"_bb"),ut=_.node(z);_.setParent(J,z),ut.borderTop=J,_.setParent(rt,z),ut.borderBottom=rt,m.forEach(q,function(Z){v(_,A,M,T,O,B,Z);var mt=_.node(Z),nt=mt.borderTop?mt.borderTop:Z,at=mt.borderBottom?mt.borderBottom:Z,_t=mt.borderTop?T:2*T,jt=nt!==at?1:O-B[z]+1;_.setEdge(J,nt,{weight:_t,minlen:jt,nestingEdge:!0}),_.setEdge(at,rt,{weight:_t,minlen:jt,nestingEdge:!0})}),_.parent(z)||_.setEdge(A,J,{weight:0,minlen:O+B[z]})}else z!==A&&_.setEdge(A,z,{weight:0,minlen:M})}d.exports={run:function(_){var A=f.addDummyNode(_,"root",{},"_root"),M=function(z){var q={};function J(rt,ut){var Z=z.children(rt);Z&&Z.length&&m.forEach(Z,function(mt){J(mt,ut+1)}),q[rt]=ut}return m.forEach(z.children(),function(rt){J(rt,1)}),q}(_),T=m.max(m.values(M))-1,O=2*T+1;_.graph().nestingRoot=A,m.forEach(_.edges(),function(z){_.edge(z).minlen*=O});var B=function(z){return m.reduce(z.edges(),function(q,J){return q+z.edge(J).weight},0)}(_)+1;m.forEach(_.children(),function(z){v(_,A,O,B,T,M,z)}),_.graph().nodeRankFactor=O},cleanup:function(_){var A=_.graph();_.removeNode(A.nestingRoot),delete A.nestingRoot,m.forEach(_.edges(),function(M){_.edge(M).nestingEdge&&_.removeEdge(M)})}}},5995:(d,b,h)=>{var m=h(8436),f=h(1138);d.exports={run:function(v){v.graph().dummyChains=[],m.forEach(v.edges(),function(_){(function(A,M){var T,O,B,z=M.v,q=A.node(z).rank,J=M.w,rt=A.node(J).rank,ut=M.name,Z=A.edge(M),mt=Z.labelRank;if(rt!==q+1){for(A.removeEdge(M),B=0,++q;q{var m=h(8436);d.exports=function(f,v,_){var A,M={};m.forEach(_,function(T){for(var O,B,z=f.parent(T);z;){if((O=f.parent(z))?(B=M[O],M[O]=z):(B=A,A=z),B&&B!==z)return void v.setEdge(B,z);z=O}})}},5439:(d,b,h)=>{var m=h(8436);d.exports=function(f,v){return m.map(v,function(_){var A=f.inEdges(_);if(A.length){var M=m.reduce(A,function(T,O){var B=f.edge(O),z=f.node(O.v);return{sum:T.sum+B.weight*z.order,weight:T.weight+B.weight}},{sum:0,weight:0});return{v:_,barycenter:M.sum/M.weight,weight:M.weight}}return{v:_}})}},3128:(d,b,h)=>{var m=h(8436),f=h(574).Graph;d.exports=function(v,_,A){var M=function(O){for(var B;O.hasNode(B=m.uniqueId("_root")););return B}(v),T=new f({compound:!0}).setGraph({root:M}).setDefaultNodeLabel(function(O){return v.node(O)});return m.forEach(v.nodes(),function(O){var B=v.node(O),z=v.parent(O);(B.rank===_||B.minRank<=_&&_<=B.maxRank)&&(T.setNode(O),T.setParent(O,z||M),m.forEach(v[A](O),function(q){var J=q.v===O?q.w:q.v,rt=T.edge(J,O),ut=m.isUndefined(rt)?0:rt.weight;T.setEdge(J,O,{weight:v.edge(q).weight+ut})}),m.has(B,"minRank")&&T.setNode(O,{borderLeft:B.borderLeft[_],borderRight:B.borderRight[_]}))}),T}},6630:(d,b,h)=>{var m=h(8436);function f(v,_,A){for(var M=m.zipObject(A,m.map(A,function(J,rt){return rt})),T=m.flatten(m.map(_,function(J){return m.sortBy(m.map(v.outEdges(J),function(rt){return{pos:M[rt.w],weight:v.edge(rt).weight}}),"pos")}),!0),O=1;O0;)rt%2&&(ut+=z[rt+1]),z[rt=rt-1>>1]+=J.weight;q+=J.weight*ut})),q}d.exports=function(v,_){for(var A=0,M=1;M<_.length;++M)A+=f(v,_[M-1],_[M]);return A}},3408:(d,b,h)=>{var m=h(8436),f=h(2588),v=h(6630),_=h(1026),A=h(3128),M=h(5093),T=h(574).Graph,O=h(1138);function B(J,rt,ut){return m.map(rt,function(Z){return A(J,Z,ut)})}function z(J,rt){var ut=new T;m.forEach(J,function(Z){var mt=Z.graph().root,nt=_(Z,mt,ut,rt);m.forEach(nt.vs,function(at,_t){Z.node(at).order=_t}),M(Z,ut,nt.vs)})}function q(J,rt){m.forEach(rt,function(ut){m.forEach(ut,function(Z,mt){J.node(Z).order=mt})})}d.exports=function(J){var rt=O.maxRank(J),ut=B(J,m.range(1,rt+1),"inEdges"),Z=B(J,m.range(rt-1,-1,-1),"outEdges"),mt=f(J);q(J,mt);for(var nt,at=Number.POSITIVE_INFINITY,_t=0,jt=0;jt<4;++_t,++jt){z(_t%2?ut:Z,_t%4>=2),mt=O.buildLayerMatrix(J);var St=v(J,mt);St{var m=h(8436);d.exports=function(f){var v={},_=m.filter(f.nodes(),function(O){return!f.children(O).length}),A=m.max(m.map(_,function(O){return f.node(O).rank})),M=m.map(m.range(A+1),function(){return[]}),T=m.sortBy(_,function(O){return f.node(O).rank});return m.forEach(T,function O(B){if(!m.has(v,B)){v[B]=!0;var z=f.node(B);M[z.rank].push(B),m.forEach(f.successors(B),O)}}),M}},9567:(d,b,h)=>{var m=h(8436);d.exports=function(f,v){var _={};return m.forEach(f,function(A,M){var T=_[A.v]={indegree:0,in:[],out:[],vs:[A.v],i:M};m.isUndefined(A.barycenter)||(T.barycenter=A.barycenter,T.weight=A.weight)}),m.forEach(v.edges(),function(A){var M=_[A.v],T=_[A.w];m.isUndefined(M)||m.isUndefined(T)||(T.indegree++,M.out.push(_[A.w]))}),function(A){var M=[];function T(z){return function(q){var J,rt,ut,Z;q.merged||(m.isUndefined(q.barycenter)||m.isUndefined(z.barycenter)||q.barycenter>=z.barycenter)&&(rt=q,ut=0,Z=0,(J=z).weight&&(ut+=J.barycenter*J.weight,Z+=J.weight),rt.weight&&(ut+=rt.barycenter*rt.weight,Z+=rt.weight),J.vs=rt.vs.concat(J.vs),J.barycenter=ut/Z,J.weight=Z,J.i=Math.min(rt.i,J.i),rt.merged=!0)}}function O(z){return function(q){q.in.push(z),--q.indegree==0&&A.push(q)}}for(;A.length;){var B=A.pop();M.push(B),m.forEach(B.in.reverse(),T(B)),m.forEach(B.out,O(B))}return m.map(m.filter(M,function(z){return!z.merged}),function(z){return m.pick(z,["vs","i","barycenter","weight"])})}(m.filter(_,function(A){return!A.indegree}))}},1026:(d,b,h)=>{var m=h(8436),f=h(5439),v=h(9567),_=h(7304);d.exports=function A(M,T,O,B){var z=M.children(T),q=M.node(T),J=q?q.borderLeft:void 0,rt=q?q.borderRight:void 0,ut={};J&&(z=m.filter(z,function(jt){return jt!==J&&jt!==rt}));var Z=f(M,z);m.forEach(Z,function(jt){if(M.children(jt.v).length){var St=A(M,jt.v,O,B);ut[jt.v]=St,m.has(St,"barycenter")&&(gt=jt,Ct=St,m.isUndefined(gt.barycenter)?(gt.barycenter=Ct.barycenter,gt.weight=Ct.weight):(gt.barycenter=(gt.barycenter*gt.weight+Ct.barycenter*Ct.weight)/(gt.weight+Ct.weight),gt.weight+=Ct.weight))}var gt,Ct});var mt=v(Z,O);(function(jt,St){m.forEach(jt,function(gt){gt.vs=m.flatten(gt.vs.map(function(Ct){return St[Ct]?St[Ct].vs:Ct}),!0)})})(mt,ut);var nt=_(mt,B);if(J&&(nt.vs=m.flatten([J,nt.vs,rt],!0),M.predecessors(J).length)){var at=M.node(M.predecessors(J)[0]),_t=M.node(M.predecessors(rt)[0]);m.has(nt,"barycenter")||(nt.barycenter=0,nt.weight=0),nt.barycenter=(nt.barycenter*nt.weight+at.order+_t.order)/(nt.weight+2),nt.weight+=2}return nt}},7304:(d,b,h)=>{var m=h(8436),f=h(1138);function v(_,A,M){for(var T;A.length&&(T=m.last(A)).i<=M;)A.pop(),_.push(T.vs),M++;return M}d.exports=function(_,A){var M,T=f.partition(_,function(Z){return m.has(Z,"barycenter")}),O=T.lhs,B=m.sortBy(T.rhs,function(Z){return-Z.i}),z=[],q=0,J=0,rt=0;O.sort((M=!!A,function(Z,mt){return Z.barycentermt.barycenter?1:M?mt.i-Z.i:Z.i-mt.i})),rt=v(z,B,rt),m.forEach(O,function(Z){rt+=Z.vs.length,z.push(Z.vs),q+=Z.barycenter*Z.weight,J+=Z.weight,rt=v(z,B,rt)});var ut={vs:m.flatten(z,!0)};return J&&(ut.barycenter=q/J,ut.weight=J),ut}},4219:(d,b,h)=>{var m=h(8436);d.exports=function(f){var v=function(_){var A={},M=0;return m.forEach(_.children(),function T(O){var B=M;m.forEach(_.children(O),T),A[O]={low:B,lim:M++}}),A}(f);m.forEach(f.graph().dummyChains,function(_){for(var A=f.node(_),M=A.edgeObj,T=function(rt,ut,Z,mt){var nt,at,_t=[],jt=[],St=Math.min(ut[Z].low,ut[mt].low),gt=Math.max(ut[Z].lim,ut[mt].lim);nt=Z;do nt=rt.parent(nt),_t.push(nt);while(nt&&(ut[nt].low>St||gt>ut[nt].lim));for(at=nt,nt=mt;(nt=rt.parent(nt))!==at;)jt.push(nt);return{path:_t.concat(jt.reverse()),lca:at}}(f,v,M.v,M.w),O=T.path,B=T.lca,z=0,q=O[z],J=!0;_!==M.w;){if(A=f.node(_),J){for(;(q=O[z])!==B&&f.node(q).maxRank{var m=h(8436),f=h(574).Graph,v=h(1138);function _(rt,ut){var Z={};return m.reduce(ut,function(mt,nt){var at=0,_t=0,jt=mt.length,St=m.last(nt);return m.forEach(nt,function(gt,Ct){var vt=function(Q,ht){if(Q.node(ht).dummy)return m.find(Q.predecessors(ht),function($){return Q.node($).dummy})}(rt,gt),ft=vt?rt.node(vt).order:jt;(vt||gt===St)&&(m.forEach(nt.slice(_t,Ct+1),function(Q){m.forEach(rt.predecessors(Q),function(ht){var $=rt.node(ht),kt=$.order;!(ktSt)&&M(Z,vt,gt)})})}return m.reduce(ut,function(nt,at){var _t,jt=-1,St=0;return m.forEach(at,function(gt,Ct){if(rt.node(gt).dummy==="border"){var vt=rt.predecessors(gt);vt.length&&(_t=rt.node(vt[0]).order,mt(at,St,Ct,jt,_t),St=Ct,jt=_t)}mt(at,St,at.length,_t,nt.length)}),at}),Z}function M(rt,ut,Z){if(ut>Z){var mt=ut;ut=Z,Z=mt}var nt=rt[ut];nt||(rt[ut]=nt={}),nt[Z]=!0}function T(rt,ut,Z){if(ut>Z){var mt=ut;ut=Z,Z=mt}return m.has(rt[ut],Z)}function O(rt,ut,Z,mt){var nt={},at={},_t={};return m.forEach(ut,function(jt){m.forEach(jt,function(St,gt){nt[St]=St,at[St]=St,_t[St]=gt})}),m.forEach(ut,function(jt){var St=-1;m.forEach(jt,function(gt){var Ct=mt(gt);if(Ct.length){Ct=m.sortBy(Ct,function($){return _t[$]});for(var vt=(Ct.length-1)/2,ft=Math.floor(vt),Q=Math.ceil(vt);ft<=Q;++ft){var ht=Ct[ft];at[gt]===gt&&St<_t[ht]&&!T(Z,gt,ht)&&(at[ht]=gt,at[gt]=nt[gt]=nt[ht],St=_t[ht])}}})}),{root:nt,align:at}}function B(rt,ut,Z,mt,nt){var at={},_t=function(gt,Ct,vt,ft){var Q=new f,ht=gt.graph(),$=function(kt,W,At){return function(Nt,Gt,xe){var Ge,Te=Nt.node(Gt),ye=Nt.node(xe),ke=0;if(ke+=Te.width/2,m.has(Te,"labelpos"))switch(Te.labelpos.toLowerCase()){case"l":Ge=-Te.width/2;break;case"r":Ge=Te.width/2}if(Ge&&(ke+=At?Ge:-Ge),Ge=0,ke+=(Te.dummy?W:kt)/2,ke+=(ye.dummy?W:kt)/2,ke+=ye.width/2,m.has(ye,"labelpos"))switch(ye.labelpos.toLowerCase()){case"l":Ge=ye.width/2;break;case"r":Ge=-ye.width/2}return Ge&&(ke+=At?Ge:-Ge),Ge=0,ke}}(ht.nodesep,ht.edgesep,ft);return m.forEach(Ct,function(kt){var W;m.forEach(kt,function(At){var Nt=vt[At];if(Q.setNode(Nt),W){var Gt=vt[W],xe=Q.edge(Gt,Nt);Q.setEdge(Gt,Nt,Math.max($(gt,At,W),xe||0))}W=At})}),Q}(rt,ut,Z,nt),jt=nt?"borderLeft":"borderRight";function St(gt,Ct){for(var vt=_t.nodes(),ft=vt.pop(),Q={};ft;)Q[ft]?gt(ft):(Q[ft]=!0,vt.push(ft),vt=vt.concat(Ct(ft))),ft=vt.pop()}return St(function(gt){at[gt]=_t.inEdges(gt).reduce(function(Ct,vt){return Math.max(Ct,at[vt.v]+_t.edge(vt))},0)},_t.predecessors.bind(_t)),St(function(gt){var Ct=_t.outEdges(gt).reduce(function(ft,Q){return Math.min(ft,at[Q.w]-_t.edge(Q))},Number.POSITIVE_INFINITY),vt=rt.node(gt);Ct!==Number.POSITIVE_INFINITY&&vt.borderType!==jt&&(at[gt]=Math.max(at[gt],Ct))},_t.successors.bind(_t)),m.forEach(mt,function(gt){at[gt]=at[Z[gt]]}),at}function z(rt,ut){return m.minBy(m.values(ut),function(Z){var mt=Number.NEGATIVE_INFINITY,nt=Number.POSITIVE_INFINITY;return m.forIn(Z,function(at,_t){var jt=function(St,gt){return St.node(gt).width}(rt,_t)/2;mt=Math.max(at+jt,mt),nt=Math.min(at-jt,nt)}),mt-nt})}function q(rt,ut){var Z=m.values(ut),mt=m.min(Z),nt=m.max(Z);m.forEach(["u","d"],function(at){m.forEach(["l","r"],function(_t){var jt,St=at+_t,gt=rt[St];if(gt!==ut){var Ct=m.values(gt);(jt=_t==="l"?mt-m.min(Ct):nt-m.max(Ct))&&(rt[St]=m.mapValues(gt,function(vt){return vt+jt}))}})})}function J(rt,ut){return m.mapValues(rt.ul,function(Z,mt){if(ut)return rt[ut.toLowerCase()][mt];var nt=m.sortBy(m.map(rt,mt));return(nt[1]+nt[2])/2})}d.exports={positionX:function(rt){var ut,Z=v.buildLayerMatrix(rt),mt=m.merge(_(rt,Z),A(rt,Z)),nt={};m.forEach(["u","d"],function(_t){ut=_t==="u"?Z:m.values(Z).reverse(),m.forEach(["l","r"],function(jt){jt==="r"&&(ut=m.map(ut,function(vt){return m.values(vt).reverse()}));var St=(_t==="u"?rt.predecessors:rt.successors).bind(rt),gt=O(0,ut,mt,St),Ct=B(rt,ut,gt.root,gt.align,jt==="r");jt==="r"&&(Ct=m.mapValues(Ct,function(vt){return-vt})),nt[_t+jt]=Ct})});var at=z(rt,nt);return q(nt,at),J(nt,rt.graph().align)},findType1Conflicts:_,findType2Conflicts:A,addConflict:M,hasConflict:T,verticalAlignment:O,horizontalCompaction:B,alignCoordinates:q,findSmallestWidthAlignment:z,balance:J}},7873:(d,b,h)=>{var m=h(8436),f=h(1138),v=h(3573).positionX;d.exports=function(_){(function(A){var M=f.buildLayerMatrix(A),T=A.graph().ranksep,O=0;m.forEach(M,function(B){var z=m.max(m.map(B,function(q){return A.node(q).height}));m.forEach(B,function(q){A.node(q).y=O+z/2}),O+=z+T})})(_=f.asNonCompoundGraph(_)),m.forEach(v(_),function(A,M){_.node(M).x=A})}},300:(d,b,h)=>{var m=h(8436),f=h(574).Graph,v=h(6681).slack;function _(T,O){return m.forEach(T.nodes(),function B(z){m.forEach(O.nodeEdges(z),function(q){var J=q.v,rt=z===J?q.w:J;T.hasNode(rt)||v(O,q)||(T.setNode(rt,{}),T.setEdge(z,rt,{}),B(rt))})}),T.nodeCount()}function A(T,O){return m.minBy(O.edges(),function(B){if(T.hasNode(B.v)!==T.hasNode(B.w))return v(O,B)})}function M(T,O,B){m.forEach(T.nodes(),function(z){O.node(z).rank+=B})}d.exports=function(T){var O,B,z=new f({directed:!1}),q=T.nodes()[0],J=T.nodeCount();for(z.setNode(q,{});_(z,T){var m=h(6681).longestPath,f=h(300),v=h(2472);d.exports=function(A){switch(A.graph().ranker){case"network-simplex":default:(function(M){v(M)})(A);break;case"tight-tree":(function(M){m(M),f(M)})(A);break;case"longest-path":_(A)}};var _=m},2472:(d,b,h)=>{var m=h(8436),f=h(300),v=h(6681).slack,_=h(6681).longestPath,A=h(574).alg.preorder,M=h(574).alg.postorder,T=h(1138).simplify;function O(nt){nt=T(nt),_(nt);var at,_t=f(nt);for(q(_t),B(_t,nt);at=rt(_t);)Z(_t,nt,at,ut(_t,nt,at))}function B(nt,at){var _t=M(nt,nt.nodes());_t=_t.slice(0,_t.length-1),m.forEach(_t,function(jt){(function(St,gt,Ct){var vt=St.node(Ct).parent;St.edge(Ct,vt).cutvalue=z(St,gt,Ct)})(nt,at,jt)})}function z(nt,at,_t){var jt=nt.node(_t).parent,St=!0,gt=at.edge(_t,jt),Ct=0;return gt||(St=!1,gt=at.edge(jt,_t)),Ct=gt.weight,m.forEach(at.nodeEdges(_t),function(vt){var ft,Q,ht=vt.v===_t,$=ht?vt.w:vt.v;if($!==jt){var kt=ht===St,W=at.edge(vt).weight;if(Ct+=kt?W:-W,ft=_t,Q=$,nt.hasEdge(ft,Q)){var At=nt.edge(_t,$).cutvalue;Ct+=kt?-At:At}}}),Ct}function q(nt,at){arguments.length<2&&(at=nt.nodes()[0]),J(nt,{},1,at)}function J(nt,at,_t,jt,St){var gt=_t,Ct=nt.node(jt);return at[jt]=!0,m.forEach(nt.neighbors(jt),function(vt){m.has(at,vt)||(_t=J(nt,at,_t,vt,jt))}),Ct.low=gt,Ct.lim=_t++,St?Ct.parent=St:delete Ct.parent,_t}function rt(nt){return m.find(nt.edges(),function(at){return nt.edge(at).cutvalue<0})}function ut(nt,at,_t){var jt=_t.v,St=_t.w;at.hasEdge(jt,St)||(jt=_t.w,St=_t.v);var gt=nt.node(jt),Ct=nt.node(St),vt=gt,ft=!1;gt.lim>Ct.lim&&(vt=Ct,ft=!0);var Q=m.filter(at.edges(),function(ht){return ft===mt(0,nt.node(ht.v),vt)&&ft!==mt(0,nt.node(ht.w),vt)});return m.minBy(Q,function(ht){return v(at,ht)})}function Z(nt,at,_t,jt){var St=_t.v,gt=_t.w;nt.removeEdge(St,gt),nt.setEdge(jt.v,jt.w,{}),q(nt),B(nt,at),function(Ct,vt){var ft=m.find(Ct.nodes(),function(ht){return!vt.node(ht).parent}),Q=A(Ct,ft);Q=Q.slice(1),m.forEach(Q,function(ht){var $=Ct.node(ht).parent,kt=vt.edge(ht,$),W=!1;kt||(kt=vt.edge($,ht),W=!0),vt.node(ht).rank=vt.node($).rank+(W?kt.minlen:-kt.minlen)})}(nt,at)}function mt(nt,at,_t){return _t.low<=at.lim&&at.lim<=_t.lim}d.exports=O,O.initLowLimValues=q,O.initCutValues=B,O.calcCutValue=z,O.leaveEdge=rt,O.enterEdge=ut,O.exchangeEdges=Z},6681:(d,b,h)=>{var m=h(8436);d.exports={longestPath:function(f){var v={};m.forEach(f.sources(),function _(A){var M=f.node(A);if(m.has(v,A))return M.rank;v[A]=!0;var T=m.min(m.map(f.outEdges(A),function(O){return _(O.w)-f.edge(O).minlen}));return T!==Number.POSITIVE_INFINITY&&T!=null||(T=0),M.rank=T})},slack:function(f,v){return f.node(v.w).rank-f.node(v.v).rank-f.edge(v).minlen}}},1138:(d,b,h)=>{var m=h(8436),f=h(574).Graph;function v(A,M,T,O){var B;do B=m.uniqueId(O);while(A.hasNode(B));return T.dummy=M,A.setNode(B,T),B}function _(A){return m.max(m.map(A.nodes(),function(M){var T=A.node(M).rank;if(!m.isUndefined(T))return T}))}d.exports={addDummyNode:v,simplify:function(A){var M=new f().setGraph(A.graph());return m.forEach(A.nodes(),function(T){M.setNode(T,A.node(T))}),m.forEach(A.edges(),function(T){var O=M.edge(T.v,T.w)||{weight:0,minlen:1},B=A.edge(T);M.setEdge(T.v,T.w,{weight:O.weight+B.weight,minlen:Math.max(O.minlen,B.minlen)})}),M},asNonCompoundGraph:function(A){var M=new f({multigraph:A.isMultigraph()}).setGraph(A.graph());return m.forEach(A.nodes(),function(T){A.children(T).length||M.setNode(T,A.node(T))}),m.forEach(A.edges(),function(T){M.setEdge(T,A.edge(T))}),M},successorWeights:function(A){var M=m.map(A.nodes(),function(T){var O={};return m.forEach(A.outEdges(T),function(B){O[B.w]=(O[B.w]||0)+A.edge(B).weight}),O});return m.zipObject(A.nodes(),M)},predecessorWeights:function(A){var M=m.map(A.nodes(),function(T){var O={};return m.forEach(A.inEdges(T),function(B){O[B.v]=(O[B.v]||0)+A.edge(B).weight}),O});return m.zipObject(A.nodes(),M)},intersectRect:function(A,M){var T,O,B=A.x,z=A.y,q=M.x-B,J=M.y-z,rt=A.width/2,ut=A.height/2;if(!q&&!J)throw new Error("Not possible to find intersection inside of the rectangle");return Math.abs(J)*rt>Math.abs(q)*ut?(J<0&&(ut=-ut),T=ut*q/J,O=ut):(q<0&&(rt=-rt),T=rt,O=rt*J/q),{x:B+T,y:z+O}},buildLayerMatrix:function(A){var M=m.map(m.range(_(A)+1),function(){return[]});return m.forEach(A.nodes(),function(T){var O=A.node(T),B=O.rank;m.isUndefined(B)||(M[B][O.order]=T)}),M},normalizeRanks:function(A){var M=m.min(m.map(A.nodes(),function(T){return A.node(T).rank}));m.forEach(A.nodes(),function(T){var O=A.node(T);m.has(O,"rank")&&(O.rank-=M)})},removeEmptyRanks:function(A){var M=m.min(m.map(A.nodes(),function(z){return A.node(z).rank})),T=[];m.forEach(A.nodes(),function(z){var q=A.node(z).rank-M;T[q]||(T[q]=[]),T[q].push(z)});var O=0,B=A.graph().nodeRankFactor;m.forEach(T,function(z,q){m.isUndefined(z)&&q%B!=0?--O:O&&m.forEach(z,function(J){A.node(J).rank+=O})})},addBorderNode:function(A,M,T,O){var B={width:0,height:0};return arguments.length>=4&&(B.rank=T,B.order=O),v(A,"border",B,M)},maxRank:_,partition:function(A,M){var T={lhs:[],rhs:[]};return m.forEach(A,function(O){M(O)?T.lhs.push(O):T.rhs.push(O)}),T},time:function(A,M){var T=m.now();try{return M()}finally{console.log(A+" time: "+(m.now()-T)+"ms")}},notime:function(A,M){return M()}}},8177:d=>{d.exports="0.8.5"},7856:function(d){d.exports=function(){function b(xt){return b=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Rt){return typeof Rt}:function(Rt){return Rt&&typeof Symbol=="function"&&Rt.constructor===Symbol&&Rt!==Symbol.prototype?"symbol":typeof Rt},b(xt)}function h(xt,Rt){return h=Object.setPrototypeOf||function(me,Pe){return me.__proto__=Pe,me},h(xt,Rt)}function m(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function f(xt,Rt,me){return f=m()?Reflect.construct:function(Pe,ar,Ze){var ur=[null];ur.push.apply(ur,ar);var ze=new(Function.bind.apply(Pe,ur));return Ze&&h(ze,Ze.prototype),ze},f.apply(null,arguments)}function v(xt){return function(Rt){if(Array.isArray(Rt))return _(Rt)}(xt)||function(Rt){if(typeof Symbol<"u"&&Rt[Symbol.iterator]!=null||Rt["@@iterator"]!=null)return Array.from(Rt)}(xt)||function(Rt,me){if(Rt){if(typeof Rt=="string")return _(Rt,me);var Pe=Object.prototype.toString.call(Rt).slice(8,-1);return Pe==="Object"&&Rt.constructor&&(Pe=Rt.constructor.name),Pe==="Map"||Pe==="Set"?Array.from(Rt):Pe==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Pe)?_(Rt,me):void 0}}(xt)||function(){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 _(xt,Rt){(Rt==null||Rt>xt.length)&&(Rt=xt.length);for(var me=0,Pe=new Array(Rt);me1?me-1:0),ar=1;ar/gm),er=q(/^data-[\-\w.\u00B7-\uFFFF]/),oe=q(/^aria-[\-\w]+$/),ee=q(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),he=q(/^(?:\w+script|data):/i),Mt=q(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),ie=q(/^html$/i),pt=function(){return typeof window>"u"?null:window},wt=function(xt,Rt){if(b(xt)!=="object"||typeof xt.createPolicy!="function")return null;var me=null,Pe="data-tt-policy-suffix";Rt.currentScript&&Rt.currentScript.hasAttribute(Pe)&&(me=Rt.currentScript.getAttribute(Pe));var ar="dompurify"+(me?"#"+me:"");try{return xt.createPolicy(ar,{createHTML:function(Ze){return Ze},createScriptURL:function(Ze){return Ze}})}catch{return console.warn("TrustedTypes policy "+ar+" could not be created."),null}};return function xt(){var Rt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:pt(),me=function(Qt){return xt(Qt)};if(me.version="2.4.0",me.removed=[],!Rt||!Rt.document||Rt.document.nodeType!==9)return me.isSupported=!1,me;var Pe=Rt.document,ar=Rt.document,Ze=Rt.DocumentFragment,ur=Rt.HTMLTemplateElement,ze=Rt.Node,Ce=Rt.Element,Be=Rt.NodeFilter,Fe=Rt.NamedNodeMap,be=Fe===void 0?Rt.NamedNodeMap||Rt.MozNamedAttrMap:Fe,se=Rt.HTMLFormElement,Lr=Rt.DOMParser,Ue=Rt.trustedTypes,dr=Ce.prototype,qe=W(dr,"cloneNode"),gr=W(dr,"nextSibling"),rn=W(dr,"childNodes"),Dr=W(dr,"parentNode");if(typeof ur=="function"){var Ar=ar.createElement("template");Ar.content&&Ar.content.ownerDocument&&(ar=Ar.content.ownerDocument)}var De=wt(Ue,Pe),rr=De?De.createHTML(""):"",Qe=ar,Ie=Qe.implementation,vr=Qe.createNodeIterator,Ot=Qe.createDocumentFragment,kn=Qe.getElementsByTagName,Vt=Pe.importNode,qr={};try{qr=kt(ar).documentMode?ar.documentMode:{}}catch{}var zr={};me.isSupported=typeof Dr=="function"&&Ie&&Ie.createHTMLDocument!==void 0&&qr!==9;var Zr,Mr,Xr=Sr,Pr=_e,Cr=er,Ur=oe,Yr=he,jr=Mt,ya=ee,On=null,Cn=$({},[].concat(v(At),v(Nt),v(Gt),v(Ge),v(ye))),Ir=null,ui=$({},[].concat(v(ke),v(Me),v(Oe),v(we))),Or=Object.seal(Object.create(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),En=null,Ln=null,vn=!0,Zn=!0,Bt=!1,Mn=!1,Rn=!1,Kr=!1,ti=!1,Wn=!1,Un=!1,ei=!1,Ta=!0,dn=!1,aa="user-content-",oa=!0,Ri=!1,sr={},Qr=null,cr=$({},["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"]),or=null,on=$({},["audio","video","img","source","image","track"]),Kt=null,Ai=$({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),re="http://www.w3.org/1998/Math/MathML",Tn="http://www.w3.org/2000/svg",Bn="http://www.w3.org/1999/xhtml",Xn=Bn,fi=!1,Sa=["application/xhtml+xml","text/html"],gn="text/html",Er=null,sa=ar.createElement("form"),Rr=function(Qt){return Qt instanceof RegExp||Qt instanceof Function},wi=function(Qt){Er&&Er===Qt||(Qt&&b(Qt)==="object"||(Qt={}),Qt=kt(Qt),Zr=Zr=Sa.indexOf(Qt.PARSER_MEDIA_TYPE)===-1?gn:Qt.PARSER_MEDIA_TYPE,Mr=Zr==="application/xhtml+xml"?function(Xe){return Xe}:jt,On="ALLOWED_TAGS"in Qt?$({},Qt.ALLOWED_TAGS,Mr):Cn,Ir="ALLOWED_ATTR"in Qt?$({},Qt.ALLOWED_ATTR,Mr):ui,Kt="ADD_URI_SAFE_ATTR"in Qt?$(kt(Ai),Qt.ADD_URI_SAFE_ATTR,Mr):Ai,or="ADD_DATA_URI_TAGS"in Qt?$(kt(on),Qt.ADD_DATA_URI_TAGS,Mr):on,Qr="FORBID_CONTENTS"in Qt?$({},Qt.FORBID_CONTENTS,Mr):cr,En="FORBID_TAGS"in Qt?$({},Qt.FORBID_TAGS,Mr):{},Ln="FORBID_ATTR"in Qt?$({},Qt.FORBID_ATTR,Mr):{},sr="USE_PROFILES"in Qt&&Qt.USE_PROFILES,vn=Qt.ALLOW_ARIA_ATTR!==!1,Zn=Qt.ALLOW_DATA_ATTR!==!1,Bt=Qt.ALLOW_UNKNOWN_PROTOCOLS||!1,Mn=Qt.SAFE_FOR_TEMPLATES||!1,Rn=Qt.WHOLE_DOCUMENT||!1,Wn=Qt.RETURN_DOM||!1,Un=Qt.RETURN_DOM_FRAGMENT||!1,ei=Qt.RETURN_TRUSTED_TYPE||!1,ti=Qt.FORCE_BODY||!1,Ta=Qt.SANITIZE_DOM!==!1,dn=Qt.SANITIZE_NAMED_PROPS||!1,oa=Qt.KEEP_CONTENT!==!1,Ri=Qt.IN_PLACE||!1,ya=Qt.ALLOWED_URI_REGEXP||ya,Xn=Qt.NAMESPACE||Bn,Qt.CUSTOM_ELEMENT_HANDLING&&Rr(Qt.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(Or.tagNameCheck=Qt.CUSTOM_ELEMENT_HANDLING.tagNameCheck),Qt.CUSTOM_ELEMENT_HANDLING&&Rr(Qt.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(Or.attributeNameCheck=Qt.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),Qt.CUSTOM_ELEMENT_HANDLING&&typeof Qt.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(Or.allowCustomizedBuiltInElements=Qt.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Mn&&(Zn=!1),Un&&(Wn=!0),sr&&(On=$({},v(ye)),Ir=[],sr.html===!0&&($(On,At),$(Ir,ke)),sr.svg===!0&&($(On,Nt),$(Ir,Me),$(Ir,we)),sr.svgFilters===!0&&($(On,Gt),$(Ir,Me),$(Ir,we)),sr.mathMl===!0&&($(On,Ge),$(Ir,Oe),$(Ir,we))),Qt.ADD_TAGS&&(On===Cn&&(On=kt(On)),$(On,Qt.ADD_TAGS,Mr)),Qt.ADD_ATTR&&(Ir===ui&&(Ir=kt(Ir)),$(Ir,Qt.ADD_ATTR,Mr)),Qt.ADD_URI_SAFE_ATTR&&$(Kt,Qt.ADD_URI_SAFE_ATTR,Mr),Qt.FORBID_CONTENTS&&(Qr===cr&&(Qr=kt(Qr)),$(Qr,Qt.FORBID_CONTENTS,Mr)),oa&&(On["#text"]=!0),Rn&&$(On,["html","head","body"]),On.table&&($(On,["tbody"]),delete En.tbody),z&&z(Qt),Er=Qt)},hi=$({},["mi","mo","mn","ms","mtext"]),Bi=$({},["foreignobject","desc","title","annotation-xml"]),fn=$({},["title","style","font","a","script"]),ri=$({},Nt);$(ri,Gt),$(ri,xe);var Kn=$({},Ge);$(Kn,Te);var Jn=function(Qt){var Xe=Dr(Qt);Xe&&Xe.tagName||(Xe={namespaceURI:Bn,tagName:"template"});var mr=jt(Qt.tagName),ln=jt(Xe.tagName);return Qt.namespaceURI===Tn?Xe.namespaceURI===Bn?mr==="svg":Xe.namespaceURI===re?mr==="svg"&&(ln==="annotation-xml"||hi[ln]):Boolean(ri[mr]):Qt.namespaceURI===re?Xe.namespaceURI===Bn?mr==="math":Xe.namespaceURI===Tn?mr==="math"&&Bi[ln]:Boolean(Kn[mr]):Qt.namespaceURI===Bn&&!(Xe.namespaceURI===Tn&&!Bi[ln])&&!(Xe.namespaceURI===re&&!hi[ln])&&!Kn[mr]&&(fn[mr]||!ri[mr])},oi=function(Qt){_t(me.removed,{element:Qt});try{Qt.parentNode.removeChild(Qt)}catch{try{Qt.outerHTML=rr}catch{Qt.remove()}}},Ci=function(Qt,Xe){try{_t(me.removed,{attribute:Xe.getAttributeNode(Qt),from:Xe})}catch{_t(me.removed,{attribute:null,from:Xe})}if(Xe.removeAttribute(Qt),Qt==="is"&&!Ir[Qt])if(Wn||Un)try{oi(Xe)}catch{}else try{Xe.setAttribute(Qt,"")}catch{}},Qn=function(Qt){var Xe,mr;if(ti)Qt=""+Qt;else{var ln=St(Qt,/^[\r\n\t ]+/);mr=ln&&ln[0]}Zr==="application/xhtml+xml"&&(Qt=''+Qt+"");var di=De?De.createHTML(Qt):Qt;if(Xn===Bn)try{Xe=new Lr().parseFromString(di,Zr)}catch{}if(!Xe||!Xe.documentElement){Xe=Ie.createDocument(Xn,"template",null);try{Xe.documentElement.innerHTML=fi?"":di}catch{}}var In=Xe.body||Xe.documentElement;return Qt&&mr&&In.insertBefore(ar.createTextNode(mr),In.childNodes[0]||null),Xn===Bn?kn.call(Xe,Rn?"html":"body")[0]:Rn?Xe.documentElement:In},Aa=function(Qt){return vr.call(Qt.ownerDocument||Qt,Qt,Be.SHOW_ELEMENT|Be.SHOW_COMMENT|Be.SHOW_TEXT,null,!1)},Fa=function(Qt){return Qt instanceof se&&(typeof Qt.nodeName!="string"||typeof Qt.textContent!="string"||typeof Qt.removeChild!="function"||!(Qt.attributes instanceof be)||typeof Qt.removeAttribute!="function"||typeof Qt.setAttribute!="function"||typeof Qt.namespaceURI!="string"||typeof Qt.insertBefore!="function")},_n=function(Qt){return b(ze)==="object"?Qt instanceof ze:Qt&&b(Qt)==="object"&&typeof Qt.nodeType=="number"&&typeof Qt.nodeName=="string"},ni=function(Qt,Xe,mr){zr[Qt]&&nt(zr[Qt],function(ln){ln.call(me,Xe,mr,Er)})},ii=function(Qt){var Xe;if(ni("beforeSanitizeElements",Qt,null),Fa(Qt)||ft(/[\u0080-\uFFFF]/,Qt.nodeName))return oi(Qt),!0;var mr=Mr(Qt.nodeName);if(ni("uponSanitizeElement",Qt,{tagName:mr,allowedTags:On}),Qt.hasChildNodes()&&!_n(Qt.firstElementChild)&&(!_n(Qt.content)||!_n(Qt.content.firstElementChild))&&ft(/<[/\w]/g,Qt.innerHTML)&&ft(/<[/\w]/g,Qt.textContent)||mr==="select"&&ft(/