From 16973bc4303b826dacaa46cd6af8f495a7d62ca0 Mon Sep 17 00:00:00 2001 From: sidharthv96 Date: Mon, 9 May 2022 07:06:16 +0000 Subject: [PATCH] deploy: 02f0c8d8bdc1a5d7247e4925546fc25a212baf40 --- _app/chunks/index-b06f7db9.js | 4 + _app/chunks/preload-helper-5fa16730.js | 1 + _app/chunks/state-ed309cb8.js | 19 + _app/chunks/theme-ed8e2b8a.js | 1 + _app/chunks/util-49588a3d.js | 1228 ++++++++++++++++++++++++ _app/error.svelte-c53b32ee.js | 1 + _app/manifest.json | 82 +- _app/pages/__layout.svelte-59f90304.js | 1 + _app/pages/edit.svelte-ff6d682b.js | 109 +++ _app/pages/index.svelte-1318653b.js | 1 + _app/pages/view.svelte-8e81698a.js | 1 + _app/start-3dc3d79d.js | 1 + _app/version.json | 2 +- edit.html | 8 +- index.html | 8 +- view.html | 8 +- 16 files changed, 1421 insertions(+), 54 deletions(-) create mode 100644 _app/chunks/index-b06f7db9.js create mode 100644 _app/chunks/preload-helper-5fa16730.js create mode 100644 _app/chunks/state-ed309cb8.js create mode 100644 _app/chunks/theme-ed8e2b8a.js create mode 100644 _app/chunks/util-49588a3d.js create mode 100644 _app/error.svelte-c53b32ee.js create mode 100644 _app/pages/__layout.svelte-59f90304.js create mode 100644 _app/pages/edit.svelte-ff6d682b.js create mode 100644 _app/pages/index.svelte-1318653b.js create mode 100644 _app/pages/view.svelte-8e81698a.js create mode 100644 _app/start-3dc3d79d.js diff --git a/_app/chunks/index-b06f7db9.js b/_app/chunks/index-b06f7db9.js new file mode 100644 index 00000000..76030f9b --- /dev/null +++ b/_app/chunks/index-b06f7db9.js @@ -0,0 +1,4 @@ +function k(){}const ct=t=>t;function lt(t,n){for(const e in n)t[e]=n[e];return t}function G(t){return t()}function H(){return Object.create(null)}function $(t){t.forEach(G)}function J(t){return typeof t=="function"}function Ot(t,n){return t!=t?n==n:t!==n||t&&typeof t=="object"||typeof t=="function"}function ot(t){return Object.keys(t).length===0}function K(t,...n){if(t==null)return k;const e=t.subscribe(...n);return e.unsubscribe?()=>e.unsubscribe():e}function Lt(t){let n;return K(t,e=>n=e)(),n}function Tt(t,n,e){t.$$.on_destroy.push(K(n,e))}function zt(t,n,e,r){if(t){const s=Q(t,n,e,r);return t[0](s)}}function Q(t,n,e,r){return t[1]&&r?lt(e.ctx.slice(),t[1](r(n))):e.ctx}function Bt(t,n,e,r){if(t[2]&&r){const s=t[2](r(e));if(n.dirty===void 0)return s;if(typeof s=="object"){const o=[],i=Math.max(n.dirty.length,s.length);for(let l=0;l32){const n=[],e=t.ctx.length/32;for(let r=0;rwindow.performance.now():()=>Date.now(),q=U?t=>requestAnimationFrame(t):k;const b=new Set;function V(t){b.forEach(n=>{n.c(t)||(b.delete(n),n.f())}),b.size!==0&&q(V)}function at(t){let n;return b.size===0&&q(V),{promise:new Promise(e=>{b.add(n={c:t,f:e})}),abort(){b.delete(n)}}}let R=!1;function ft(){R=!0}function _t(){R=!1}function dt(t,n,e,r){for(;t>1);e(s)<=r?t=s+1:n=s}return t}function ht(t){if(t.hydrate_init)return;t.hydrate_init=!0;let n=t.childNodes;if(t.nodeName==="HEAD"){const c=[];for(let u=0;u0&&n[e[s]].claim_order<=u?s+1:dt(1,s,a=>n[e[a]].claim_order,u))-1;r[c]=e[_]+1;const f=_+1;e[f]=c,s=Math.max(f,s)}const o=[],i=[];let l=n.length-1;for(let c=e[s]+1;c!=0;c=r[c-1]){for(o.push(n[c-1]);l>=c;l--)i.push(n[l]);l--}for(;l>=0;l--)i.push(n[l]);o.reverse(),i.sort((c,u)=>c.claim_order-u.claim_order);for(let c=0,u=0;c=o[u].claim_order;)u++;const _=ut.removeEventListener(n,e,r)}function Ut(t){return function(n){return n.stopPropagation(),t.call(this,n)}}function Vt(t,n,e){e==null?t.removeAttribute(n):t.getAttribute(n)!==e&&t.setAttribute(n,e)}function Xt(t){return t===""?null:+t}function xt(t){return Array.from(t.childNodes)}function wt(t){t.claim_info===void 0&&(t.claim_info={last_index:0,total_claimed:0})}function Z(t,n,e,r,s=!1){wt(t);const o=(()=>{for(let i=t.claim_info.last_index;i=0;i--){const l=t[i];if(n(l)){const c=e(l);return c===void 0?t.splice(i,1):t[i]=c,s?c===void 0&&t.claim_info.last_index--:t.claim_info.last_index=i,l}}return r()})();return o.claim_order=t.claim_info.total_claimed,t.claim_info.total_claimed+=1,o}function tt(t,n,e,r){return Z(t,s=>s.nodeName===n,s=>{const o=[];for(let i=0;is.removeAttribute(i))},()=>r(n))}function Yt(t,n,e){return tt(t,n,e,Y)}function Zt(t,n,e){return tt(t,n,e,$t)}function vt(t,n){return Z(t,e=>e.nodeType===3,e=>{const r=""+n;if(e.data.startsWith(r)){if(e.data.length!==r.length)return e.splitText(r.length)}else e.data=r},()=>F(n),!0)}function tn(t){return vt(t," ")}function nn(t,n){n=""+n,t.wholeText!==n&&(t.data=n)}function en(t,n){t.value=n==null?"":n}function rn(t,n,e,r){e===null?t.style.removeProperty(n):t.style.setProperty(n,e,r?"important":"")}function sn(t,n,e){t.classList[e?"add":"remove"](n)}function nt(t,n,{bubbles:e=!1,cancelable:r=!1}={}){const s=document.createEvent("CustomEvent");return s.initCustomEvent(t,e,r,n),s}const S=new Map;let M=0;function Et(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:pt(n),rules:{}};return S.set(t,e),e}function I(t,n,e,r,s,o,i,l=0){const c=16.666/r;let u=`{ +`;for(let p=0;p<=1;p+=c){const g=n+(e-n)*o(p);u+=p*100+`%{${i(g,1-g)}} +`}const _=u+`100% {${i(e,1-e)}} +}`,f=`__svelte_${Et(_)}_${l}`,a=X(t),{stylesheet:d,rules:h}=S.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} ${r}ms linear ${s}ms 1 both`,M+=1,f}function Nt(t,n){const e=(t.style.animation||"").split(", "),r=e.filter(n?o=>o.indexOf(n)<0:o=>o.indexOf("__svelte")===-1),s=e.length-r.length;s&&(t.style.animation=r.join(", "),M-=s,M||jt())}function jt(){q(()=>{M||(S.forEach(t=>{const{stylesheet:n}=t;let e=n.cssRules.length;for(;e--;)n.deleteRule(e);t.rules={}}),S.clear())})}let E;function v(t){E=t}function D(){if(!E)throw new Error("Function called outside component initialization");return E}function cn(t){D().$$.on_mount.push(t)}function ln(t){D().$$.after_update.push(t)}function on(){const t=D();return(n,e,{cancelable:r=!1}={})=>{const s=t.$$.callbacks[n];if(s){const o=nt(n,e,{cancelable:r});return s.slice().forEach(i=>{i.call(t,o)}),!o.defaultPrevented}return!0}}function un(t,n){return D().$$.context.set(t,n),n}function an(t,n){const e=t.$$.callbacks[n.type];e&&e.slice().forEach(r=>r.call(this,n))}const w=[],W=[],A=[],z=[],et=Promise.resolve();let B=!1;function it(){B||(B=!0,et.then(rt))}function fn(){return it(),et}function P(t){A.push(t)}function _n(t){z.push(t)}const L=new Set;let j=0;function rt(){const t=E;do{for(;j{x=null})),x}function T(t,n,e){t.dispatchEvent(nt(`${n?"intro":"outro"}${e}`))}const C=new Set;let m;function dn(){m={r:0,c:[],p:m}}function hn(){m.r||$(m.c),m=m.p}function St(t,n){t&&t.i&&(C.delete(t),t.i(n))}function mn(t,n,e,r){if(t&&t.o){if(C.has(t))return;C.add(t),m.c.push(()=>{C.delete(t),r&&(e&&t.d(1),r())}),t.o(n)}}const Mt={duration:0};function pn(t,n,e,r){let s=n(t,e),o=r?0:1,i=null,l=null,c=null;function u(){c&&Nt(t,c)}function _(a,d){const h=a.b-o;return d*=Math.abs(h),{a:o,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=ct,tick:p=k,css:g}=s||Mt,O={start:ut()+d,b:a};a||(O.group=m,m.r+=1),i||l?l=O:(g&&(u(),c=I(t,o,a,h,d,y,g)),a&&p(0,1),i=_(O,h),P(()=>T(t,a,"start")),at(N=>{if(l&&N>l.start&&(i=_(l,h),l=null,T(t,i.b,"start"),g&&(u(),c=I(t,o,i.b,i.duration,0,y,s.css))),i){if(N>=i.end)p(o=i.b,1-o),T(t,i.b,"end"),l||(i.b?u():--i.group.r||$(i.group.c)),i=null;else if(N>=i.start){const st=N-i.start;o=i.a+i.d*y(st/i.duration),p(o,1-o)}}return!!(i||l)}))}return{run(a){J(s)?Ct().then(()=>{s=s(),f(a)}):f(a)},end(){u(),i=l=null}}}function yn(t,n){const e={},r={},s={$$scope:1};let o=t.length;for(;o--;){const i=t[o],l=n[o];if(l){for(const c in i)c in l||(r[c]=1);for(const c in l)s[c]||(e[c]=l[c],s[c]=1);t[o]=l}else for(const c in i)s[c]=1}for(const i in r)i in e||(e[i]=void 0);return e}function gn(t){return typeof t=="object"&&t!==null?t:{}}function bn(t,n,e){const r=t.$$.props[n];r!==void 0&&(t.$$.bound[r]=e,e(t.$$.ctx[r]))}function $n(t){t&&t.c()}function xn(t,n){t&&t.l(n)}function Pt(t,n,e,r){const{fragment:s,on_mount:o,on_destroy:i,after_update:l}=t.$$;s&&s.m(n,e),r||P(()=>{const c=o.map(G).filter(J);i?i.push(...c):$(c),t.$$.on_mount=[]}),l.forEach(P)}function Rt(t,n){const e=t.$$;e.fragment!==null&&($(e.on_destroy),e.fragment&&e.fragment.d(n),e.on_destroy=e.fragment=null,e.ctx=[])}function Dt(t,n){t.$$.dirty[0]===-1&&(w.push(t),it(),t.$$.dirty.fill(0)),t.$$.dirty[n/31|0]|=1<{const h=d.length?d[0]:a;return u.ctx&&s(u.ctx[f],u.ctx[f]=h)&&(!u.skip_bound&&u.bound[f]&&u.bound[f](h),_&&Dt(t,f)),a}):[],u.update(),_=!0,$(u.before_update),u.fragment=r?r(u.ctx):!1,n.target){if(n.hydrate){ft();const f=xt(n.target);u.fragment&&u.fragment.l(f),f.forEach(bt)}else u.fragment&&u.fragment.c();n.intro&&St(t.$$.fragment),Pt(t,n.target,n.anchor,n.customElement),_t(),rt()}v(c)}class vn{$destroy(){Rt(this,1),this.$destroy=k}$on(n,e){const r=this.$$.callbacks[n]||(this.$$.callbacks[n]=[]);return r.push(e),()=>{const s=r.indexOf(e);s!==-1&&r.splice(s,1)}}$set(n){this.$$set&&!ot(n)&&(this.$$.skip_bound=!0,this.$$set(n),this.$$.skip_bound=!1)}}export{pn as $,gn as A,Rt as B,lt as C,fn as D,k as E,K as F,$ as G,J as H,zt as I,gt as J,qt as K,Ft as L,Bt as M,Tt as N,Lt as O,on as P,W as Q,Qt as R,vn as S,$t as T,Zt as U,Gt as V,Ht as W,ct as X,sn as Y,Ut as Z,P as _,xt as a,bn as a0,_n as a1,an as a2,en as a3,Xt as a4,It as a5,Vt as b,Yt as c,bt as d,Y as e,rn as f,Wt as g,vt as h,wn as i,nn as j,Jt as k,Kt as l,tn as m,dn as n,mn as o,hn as p,St as q,un as r,Ot as s,F as t,ln as u,cn as v,$n as w,xn as x,Pt as y,yn as z}; diff --git a/_app/chunks/preload-helper-5fa16730.js b/_app/chunks/preload-helper-5fa16730.js new file mode 100644 index 00000000..cb0b09f9 --- /dev/null +++ b/_app/chunks/preload-helper-5fa16730.js @@ -0,0 +1 @@ +import{E as b,s as y,F as E,G as S,H as $}from"./index-b06f7db9.js";const a=[];function q(n,c){return{subscribe:w(n,c).subscribe}}function w(n,c=b){let i;const e=new Set;function o(s){if(y(n,s)&&(n=s,i)){const u=!a.length;for(const t of e)t[1](),a.push(t,n);if(u){for(let t=0;t{e.delete(t),e.size===0&&(i(),i=null)}}return{set:o,update:f,subscribe:r}}function z(n,c,i){const e=!Array.isArray(n),o=e?[n]:n,f=c.length<2;return q(i,r=>{let s=!1;const u=[];let t=0,d=b;const m=()=>{if(t)return;d();const l=c(e?u[0]:u,r);f?r(l):d=$(l)?l:b},_=o.map((l,h)=>E(l,g=>{u[h]=g,t&=~(1<{t|=1<{if(e=`${C}${e}`,e in p)return;p[e]=!0;const o=e.endsWith(".css"),f=o?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${e}"]${f}`))return;const r=document.createElement("link");if(r.rel=o?"stylesheet":k,o||(r.as="script",r.crossOrigin=""),r.href=e,document.head.appendChild(r),o)return new Promise((s,u)=>{r.addEventListener("load",s),r.addEventListener("error",()=>u(new Error(`Unable to preload CSS for ${e}`)))})})).then(()=>c())};export{A as _,z as d,w}; diff --git a/_app/chunks/state-ed309cb8.js b/_app/chunks/state-ed309cb8.js new file mode 100644 index 00000000..0c68250e --- /dev/null +++ b/_app/chunks/state-ed309cb8.js @@ -0,0 +1,19 @@ +var G=Object.defineProperty,K=Object.defineProperties;var X=Object.getOwnPropertyDescriptors;var z=Object.getOwnPropertySymbols;var j=Object.prototype.hasOwnProperty,V=Object.prototype.propertyIsEnumerable;var Y=(e,n,t)=>n in e?G(e,n,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[n]=t,B=(e,n)=>{for(var t in n||(n={}))j.call(n,t)&&Y(e,t,n[t]);if(z)for(var t of z(n))V.call(n,t)&&Y(e,t,n[t]);return e},k=(e,n)=>K(e,X(n));import{w as writable,_ as __vitePreload,d as derived}from"./preload-helper-5fa16730.js";import{O as get_store_value}from"./index-b06f7db9.js";const defaultLoading={loading:!1},loadingStateStore=writable(defaultLoading),initLoading=async(e,n)=>{loadingStateStore.set({loading:!0,message:e});const t=await n;return loadingStateStore.set({loading:!1}),t};function getDefaultExportFromCjs(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var browserCookies={};(function(e){e.defaults={},e.set=function(n,t,i){var a=i||{},r=e.defaults,l=a.expires||r.expires,o=a.domain||r.domain,u=a.path!==void 0?a.path:r.path!==void 0?r.path:"/",_=a.secure!==void 0?a.secure:r.secure,s=a.httponly!==void 0?a.httponly:r.httponly,N=a.samesite!==void 0?a.samesite:r.samesite,h=l?new Date(typeof l=="number"?new Date().getTime()+l*864e5:l):0;document.cookie=n.replace(/[^+#$&^`|]/g,encodeURIComponent).replace("(","%28").replace(")","%29")+"="+t.replace(/[^+#$&/:<-\[\]-}]/g,encodeURIComponent)+(h&&h.getTime()>=0?";expires="+h.toUTCString():"")+(o?";domain="+o:"")+(u?";path="+u:"")+(_?";secure":"")+(s?";httponly":"")+(N?";samesite="+N:"")},e.get=function(n){for(var t=document.cookie.split(";");t.length;){var i=t.pop(),a=i.indexOf("=");a=a<0?i.length:a;var r=decodeURIComponent(i.slice(0,a).replace(/^\s+/,""));if(r===n)return decodeURIComponent(i.slice(a+1))}return null},e.erase=function(n,t){e.set(n,"",{expires:-1,domain:t&&t.domain,path:t&&t.path,secure:0,httponly:0})},e.all=function(){for(var n={},t=document.cookie.split(";");t.length;){var i=t.pop(),a=i.indexOf("=");a=a<0?i.length:a;var r=decodeURIComponent(i.slice(0,a).replace(/^\s+/,""));n[r]=decodeURIComponent(i.slice(a+1))}return n}})(browserCookies);var bundle={};(function(exports){(function(e,n){for(var t in n)e[t]=n[t];n.__esModule&&Object.defineProperty(e,"__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!="undefined"&&process.release.name==="node"&&(Module=eval("require")("module"));var ESSerializer=function(){function e(){}return e.throwErrorIfInNonNodeEnvironment=function(){if(!Module)throw new Error("Cannot intercept require in non-Node environment.")},e.interceptRequire=function(){this.isRequireIntercepted||(this.isRequireIntercepted=!0,this.throwErrorIfInNonNodeEnvironment(),e.originRequire=Module.prototype.require,Module.prototype.require=function(){var n=e.originRequire.apply(this,arguments),t=n.name;return e.requiredClasses[t]||(e.requiredClasses[t]=n),n})},e.stopInterceptRequire=function(){this.throwErrorIfInNonNodeEnvironment(),Module.prototype.require=e.originRequire,this.isRequireIntercepted=!1},e.isInterceptingRequire=function(){return this.isRequireIntercepted},e.getRequiredClasses=function(){return this.requiredClasses},e.clearRequiredClasses=function(){this.requiredClasses={}},e.registerClass=function(n){this.registeredClasses.push(n)},e.registerClasses=function(n){this.registeredClasses=this.registeredClasses.concat(n)},e.clearRegisteredClasses=function(){this.registeredClasses=[]},e.serialize=function(n,t){return t===void 0&&(t={}),JSON.stringify(serializer_1.getSerializeValueWithClassName(n,t))},e.deserialize=function(n,t,i){return t===void 0&&(t=[]),i===void 0&&(i={}),deserializer_1.deserializeFromParsedObj(JSON.parse(n),Object.values(this.requiredClasses).concat(this.registeredClasses).concat(t),i)},e.originRequire=null,e.isRequireIntercepted=!1,e.requiredClasses={},e.registeredClasses=[],e}();module.exports=ESSerializer},917:function(e,n){var t=this&&this.__spreadArrays||function(){for(var x=0,m=0,F=arguments.length;m0&&(S=S.concat(Array.from(Array(b),function(){return{}}))),l.test(E.toString()))try{w=new(E.bind.apply(E,i([void 0],S)))}catch{A(E.name),w={},Object.setPrototypeOf(w,E?E.prototype:Object.prototype)}else{w=Object.create(E.prototype.constructor.prototype);try{E.prototype.constructor.call(w,S)}catch{A(E.name)}}return w}(T[d],C),c,T,I)}function u(c,T){return c.map(function(I){return o(I,T)})}function _(c,T){return new T(c)}function s(c,T){return new T(c.map(function(I){return N(I[r.TO_STRING_FIELD])}))}function N(c){return BigInt(c)}function h(c,T){var I=c[r.OPTIONS_FIELD],d=I.locale;return delete I.locale,new T(d,I)}function f(c,T){var I;return delete(I=c.message?new T(c.message):new T).stack,c.name&&(I.name=c.name),c.stack&&(I.stack=c.stack),T===AggregateError&&(I.errors=o(c.errors,{})),I}function A(c){console.warn("Incorrect parameter type passed to constructor: "+c)}function p(c,T,I){for(var d in T){var g=Object.getOwnPropertyDescriptor(c,d);g&&g.writable!==!0&&typeof g.set!="function"||(c[d]=o(T[d],I))}}function L(c){c===void 0&&(c=[]);var T={};return c.forEach(function(I){if(a.isClass(I)){var d=I.name,g=T[d];g&&g!==I&&console.warn("WARNING: Found class definition with the same name: "+d),T[d]=I}}),T}n.deserializeFromParsedObj=function(c,T,I){return o(c,L(T),I)},n.deserializeFromParsedObjWithClassMapping=o,n.getClassMappingFromClassArray=L,n.getParentClassName=function(c){return c.prototype.__proto__.constructor.name}},821:(e,n)=>{Object.defineProperty(n,"__esModule",{value:!0}),n.isClass=n.notObject=n.getValueFromToStringResult=void 0,n.notObject=function(t){return t===null||typeof t!="object"},n.getValueFromToStringResult=function(t){switch(t){case"Infinity":return 1/0;case"-Infinity":return-1/0;case"NaN":return NaN;default:return null}},n.isClass=function(t){if(function(i){return[Date].indexOf(i)>=0}(t))return!0;try{Reflect.construct(String,[],t)}catch{return!1}return!0}},810:(e,n,t)=>{Object.defineProperty(n,"__esModule",{value:!0}),n.getSerializeValueWithClassName=void 0;var i=t(917),a=t(821);function r(o,u){u===void 0&&(u={});var _=function(f){var A,p,L;return f===void 0?((A={})[i.CLASS_NAME_FIELD]=i.BUILTIN_TYPE_UNDEFINED,A):typeof f!="number"||isFinite(f)?typeof f=="bigint"?((L={})[i.CLASS_NAME_FIELD]=i.BUILTIN_TYPE_BIG_INT,L[i.TO_STRING_FIELD]=f.toString(),L):a.notObject(f)?f:i.ESSERIALIZER_NULL:((p={})[i.CLASS_NAME_FIELD]=i.BUILTIN_TYPE_NOT_FINITE,p[i.TO_STRING_FIELD]=f.toString(),p)}(o);if(_!==i.ESSERIALIZER_NULL)return _;if(Array.isArray(o))return l(o);var s={};if(!function(f){var A=f.__proto__.constructor.name;return i.CLASSNAMES_WHOSE_ENUMERABLE_PROPERTIES_SHOULD_BE_IGNORED.includes(A)}(o)){if(u.ignoreProperties&&u.ignoreProperties.forEach(function(f){delete o[f]}),u.interceptProperties)for(var N in u.interceptProperties)o[N]=u.interceptProperties[N].call(o,o[N]);for(var h in o)s[h]=r(o[h])}return function(f,A){var p=f.__proto__.constructor.name;return p!=="Object"&&(A[i.CLASS_NAME_FIELD]=p,p===i.BUILTIN_CLASS_ARRAYBUFFER||p===i.BUILTIN_CLASS_SHAREDARRAYBUFFER?A[i.ARRAY_FIELD]=l(Array.from(new Uint8Array(f))):p===i.BUILTIN_CLASS_BOOLEAN?A[i.BOOLEAN_FIELD]=f.valueOf():p===i.BUILTIN_CLASS_DATAVIEW?A[i.ARRAY_FIELD]=l(Array.from(new Uint8Array(f.buffer))):p===i.BUILTIN_CLASS_DATE?A[i.TIMESTAMP_FIELD]=f.getTime():p===i.BUILTIN_CLASS_INTL_LOCALE||p===i.BUILTIN_CLASS_REGEXP?A[i.TO_STRING_FIELD]=f.toString():p===i.BUILTIN_CLASS_SET?A[i.ARRAY_FIELD]=l(Array.from(f)):p===i.BUILTIN_CLASS_STRING?A[i.TO_STRING_FIELD]=f.toString():i.ALL_BUILTIN_ARRAYS.includes(p)?A[i.ARRAY_FIELD]=l(Array.from(f)):i.ALL_BUILTIN_ERRORS.includes(p)?function(L,c,T){L.name!=="Error"&&(c.name=L.name),L.message&&(c.message=L.message),L.stack&&(c.stack=L.stack),T===i.BUILTIN_CLASS_AGGREGATE_ERROR&&(c.errors=r(L.errors))}(f,A,p):i.ALL_BUILTIN_INTLS.includes(p)&&(A[i.OPTIONS_FIELD]=f.resolvedOptions())),A}(o,s)}function l(o){return o.map(function(u){return r(u)})}n.getSerializeValueWithClassName=r}},__webpack_module_cache__={};function __webpack_require__(e){if(__webpack_module_cache__[e])return __webpack_module_cache__[e].exports;var n=__webpack_module_cache__[e]={exports:{}};return __webpack_modules__[e].call(n.exports,n,n.exports,__webpack_require__),n.exports}return __webpack_require__(607)})())})(bundle);var ESSerializer=getDefaultExportFromCjs(bundle);const alreadyWarnFor=[],warnStorageNotFound=e=>{var n;const t=typeof process!="undefined"&&((n=process.env)===null||n===void 0?void 0:n.NODE_ENV)==="production";if(alreadyWarnFor.indexOf(e)===-1&&!t){let i=`Unable to find the ${e}. No data will be persisted.`;typeof window=="undefined"&&(i+=` +Are you running on a server? Most of storages are not available while running on a server.`),console.warn(i),alreadyWarnFor.push(e)}},allowedClasses=[],serialize=e=>ESSerializer.serialize(e),deserialize=e=>{if(e!=="undefined"){if(e!=null){try{return ESSerializer.deserialize(e,allowedClasses)}catch{}try{return JSON.parse(e)}catch{}}return e}};function persist(e,n,t){const i=n.getValue(t);return i!==null&&e.set(i),n.addListener&&n.addListener(t,a=>{e.set(a)}),e.subscribe(a=>{n.setValue(t,a)}),Object.assign(Object.assign({},e),{delete(){n.deleteValue(t)}})}function getBrowserStorage(e,n=!1){const t=[],i=l=>{const o=l.key;l.storageArea===e&&t.filter(({key:u})=>u===o).forEach(({listener:u})=>{u(deserialize(l.newValue))})},a=()=>{n&&typeof window!="undefined"&&(window==null?void 0:window.addEventListener)&&window.addEventListener("storage",i)},r=()=>{n&&typeof window!="undefined"&&(window==null?void 0:window.removeEventListener)&&window.removeEventListener("storage",i)};return{addListener(l,o){t.push({key:l,listener:o}),t.length===1&&a()},removeListener(l,o){const u=t.indexOf({key:l,listener:o});u!==-1&&t.splice(u,1),t.length===0&&r()},getValue(l){const o=e.getItem(l);return deserialize(o)},deleteValue(l){e.removeItem(l)},setValue(l,o){e.setItem(l,serialize(o))}}}function localStorage(e=!1){return typeof window!="undefined"&&(window==null?void 0:window.localStorage)?getBrowserStorage(window.localStorage,e):(warnStorageNotFound("window.localStorage"),noopStorage())}function noopStorage(){return{getValue(){return null},deleteValue(){},setValue(){}}}let analytics;const initAnalytics=async()=>{if(!analytics)try{const{Analytics:e}=await __vitePreload(()=>import("./analytics.browser.es-da2e3609.js"),[]),n=await __vitePreload(()=>import("./analytics-plugin-ga.browser.es-1cdb0512.js"),[]);analytics=e({app:"mermaid-live-editor",plugins:[n.init({trackingId:"UA-153180559-1"})]})}catch{console.info("Analytics blocked ;)")}},detectType=e=>e.replace(/^\s*%%.*\n/g,` +`).trimStart().split(" ")[0];let timeout;const saveStatistics=e=>{analytics&&(clearTimeout(timeout),timeout=setTimeout(function(){const n=detectType(e);console.debug("ga:","send","event","render",n),analytics.track("render",{graphType:n})},5e3))};/*! 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(e){let n=e.length;for(;--n>=0;)e[n]=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(e,n,t,i,a){this.static_tree=e,this.extra_bits=n,this.extra_base=t,this.elems=i,this.max_length=a,this.has_stree=e&&e.length}let static_l_desc,static_d_desc,static_bl_desc;function TreeDesc(e,n){this.dyn_tree=e,this.max_code=0,this.stat_desc=n}const d_code=e=>e<256?_dist_code[e]:_dist_code[256+(e>>>7)],put_short=(e,n)=>{e.pending_buf[e.pending++]=n&255,e.pending_buf[e.pending++]=n>>>8&255},send_bits=(e,n,t)=>{e.bi_valid>Buf_size-t?(e.bi_buf|=n<>Buf_size-e.bi_valid,e.bi_valid+=t-Buf_size):(e.bi_buf|=n<{send_bits(e,t[n*2],t[n*2+1])},bi_reverse=(e,n)=>{let t=0;do t|=e&1,e>>>=1,t<<=1;while(--n>0);return t>>>1},bi_flush=e=>{e.bi_valid===16?(put_short(e,e.bi_buf),e.bi_buf=0,e.bi_valid=0):e.bi_valid>=8&&(e.pending_buf[e.pending++]=e.bi_buf&255,e.bi_buf>>=8,e.bi_valid-=8)},gen_bitlen=(e,n)=>{const t=n.dyn_tree,i=n.max_code,a=n.stat_desc.static_tree,r=n.stat_desc.has_stree,l=n.stat_desc.extra_bits,o=n.stat_desc.extra_base,u=n.stat_desc.max_length;let _,s,N,h,f,A,p=0;for(h=0;h<=MAX_BITS$1;h++)e.bl_count[h]=0;for(t[e.heap[e.heap_max]*2+1]=0,_=e.heap_max+1;_u&&(h=u,p++),t[s*2+1]=h,!(s>i)&&(e.bl_count[h]++,f=0,s>=o&&(f=l[s-o]),A=t[s*2],e.opt_len+=A*(h+f),r&&(e.static_len+=A*(a[s*2+1]+f)));if(p!==0){do{for(h=u-1;e.bl_count[h]===0;)h--;e.bl_count[h]--,e.bl_count[h+1]+=2,e.bl_count[u]--,p-=2}while(p>0);for(h=u;h!==0;h--)for(s=e.bl_count[h];s!==0;)N=e.heap[--_],!(N>i)&&(t[N*2+1]!==h&&(e.opt_len+=(h-t[N*2+1])*t[N*2],t[N*2+1]=h),s--)}},gen_codes=(e,n,t)=>{const i=new Array(MAX_BITS$1+1);let a=0,r,l;for(r=1;r<=MAX_BITS$1;r++)i[r]=a=a+t[r-1]<<1;for(l=0;l<=n;l++){let o=e[l*2+1];o!==0&&(e[l*2]=bi_reverse(i[o]++,o))}},tr_static_init=()=>{let e,n,t,i,a;const r=new Array(MAX_BITS$1+1);for(t=0,i=0;i>=7;i{let n;for(n=0;n{e.bi_valid>8?put_short(e,e.bi_buf):e.bi_valid>0&&(e.pending_buf[e.pending++]=e.bi_buf),e.bi_buf=0,e.bi_valid=0},copy_block=(e,n,t,i)=>{bi_windup(e),i&&(put_short(e,t),put_short(e,~t)),e.pending_buf.set(e.window.subarray(n,n+t),e.pending),e.pending+=t},smaller=(e,n,t,i)=>{const a=n*2,r=t*2;return e[a]{const i=e.heap[t];let a=t<<1;for(;a<=e.heap_len&&(a{let i,a,r=0,l,o;if(e.last_lit!==0)do i=e.pending_buf[e.d_buf+r*2]<<8|e.pending_buf[e.d_buf+r*2+1],a=e.pending_buf[e.l_buf+r],r++,i===0?send_code(e,a,n):(l=_length_code[a],send_code(e,l+LITERALS$1+1,n),o=extra_lbits[l],o!==0&&(a-=base_length[l],send_bits(e,a,o)),i--,l=d_code(i),send_code(e,l,t),o=extra_dbits[l],o!==0&&(i-=base_dist[l],send_bits(e,i,o)));while(r{const t=n.dyn_tree,i=n.stat_desc.static_tree,a=n.stat_desc.has_stree,r=n.stat_desc.elems;let l,o,u=-1,_;for(e.heap_len=0,e.heap_max=HEAP_SIZE$1,l=0;l>1;l>=1;l--)pqdownheap(e,t,l);_=r;do l=e.heap[1],e.heap[1]=e.heap[e.heap_len--],pqdownheap(e,t,1),o=e.heap[1],e.heap[--e.heap_max]=l,e.heap[--e.heap_max]=o,t[_*2]=t[l*2]+t[o*2],e.depth[_]=(e.depth[l]>=e.depth[o]?e.depth[l]:e.depth[o])+1,t[l*2+1]=t[o*2+1]=_,e.heap[1]=_++,pqdownheap(e,t,1);while(e.heap_len>=2);e.heap[--e.heap_max]=e.heap[1],gen_bitlen(e,n),gen_codes(t,u,e.bl_count)},scan_tree=(e,n,t)=>{let i,a=-1,r,l=n[0*2+1],o=0,u=7,_=4;for(l===0&&(u=138,_=3),n[(t+1)*2+1]=65535,i=0;i<=t;i++)r=l,l=n[(i+1)*2+1],!(++o{let i,a=-1,r,l=n[0*2+1],o=0,u=7,_=4;for(l===0&&(u=138,_=3),i=0;i<=t;i++)if(r=l,l=n[(i+1)*2+1],!(++o{let n;for(scan_tree(e,e.dyn_ltree,e.l_desc.max_code),scan_tree(e,e.dyn_dtree,e.d_desc.max_code),build_tree(e,e.bl_desc),n=BL_CODES$1-1;n>=3&&e.bl_tree[bl_order[n]*2+1]===0;n--);return e.opt_len+=3*(n+1)+5+5+4,n},send_all_trees=(e,n,t,i)=>{let a;for(send_bits(e,n-257,5),send_bits(e,t-1,5),send_bits(e,i-4,4),a=0;a{let n=4093624447,t;for(t=0;t<=31;t++,n>>>=1)if(n&1&&e.dyn_ltree[t*2]!==0)return Z_BINARY;if(e.dyn_ltree[9*2]!==0||e.dyn_ltree[10*2]!==0||e.dyn_ltree[13*2]!==0)return Z_TEXT;for(t=32;t{static_init_done||(tr_static_init(),static_init_done=!0),e.l_desc=new TreeDesc(e.dyn_ltree,static_l_desc),e.d_desc=new TreeDesc(e.dyn_dtree,static_d_desc),e.bl_desc=new TreeDesc(e.bl_tree,static_bl_desc),e.bi_buf=0,e.bi_valid=0,init_block(e)},_tr_stored_block$1=(e,n,t,i)=>{send_bits(e,(STORED_BLOCK<<1)+(i?1:0),3),copy_block(e,n,t,!0)},_tr_align$1=e=>{send_bits(e,STATIC_TREES<<1,3),send_code(e,END_BLOCK,static_ltree),bi_flush(e)},_tr_flush_block$1=(e,n,t,i)=>{let a,r,l=0;e.level>0?(e.strm.data_type===Z_UNKNOWN$1&&(e.strm.data_type=detect_data_type(e)),build_tree(e,e.l_desc),build_tree(e,e.d_desc),l=build_bl_tree(e),a=e.opt_len+3+7>>>3,r=e.static_len+3+7>>>3,r<=a&&(a=r)):a=r=t+5,t+4<=a&&n!==-1?_tr_stored_block$1(e,n,t,i):e.strategy===Z_FIXED$1||r===a?(send_bits(e,(STATIC_TREES<<1)+(i?1:0),3),compress_block(e,static_ltree,static_dtree)):(send_bits(e,(DYN_TREES<<1)+(i?1:0),3),send_all_trees(e,e.l_desc.max_code+1,e.d_desc.max_code+1,l+1),compress_block(e,e.dyn_ltree,e.dyn_dtree)),init_block(e),i&&bi_windup(e)},_tr_tally$1=(e,n,t)=>(e.pending_buf[e.d_buf+e.last_lit*2]=n>>>8&255,e.pending_buf[e.d_buf+e.last_lit*2+1]=n&255,e.pending_buf[e.l_buf+e.last_lit]=t&255,e.last_lit++,n===0?e.dyn_ltree[t*2]++:(e.matches++,n--,e.dyn_ltree[(_length_code[t]+LITERALS$1+1)*2]++,e.dyn_dtree[d_code(n)*2]++),e.last_lit===e.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=(e,n,t,i)=>{let a=e&65535|0,r=e>>>16&65535|0,l=0;for(;t!==0;){l=t>2e3?2e3:t,t-=l;do a=a+n[i++]|0,r=r+a|0;while(--l);a%=65521,r%=65521}return a|r<<16|0};var adler32_1=adler32;const makeTable=()=>{let e,n=[];for(var t=0;t<256;t++){e=t;for(var i=0;i<8;i++)e=e&1?3988292384^e>>>1:e>>>1;n[t]=e}return n},crcTable=new Uint32Array(makeTable()),crc32=(e,n,t,i)=>{const a=crcTable,r=i+t;e^=-1;for(let l=i;l>>8^a[(e^n[l])&255];return e^-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=(e,n)=>(e.msg=messages[n],n),rank=e=>(e<<1)-(e>4?9:0),zero=e=>{let n=e.length;for(;--n>=0;)e[n]=0};let HASH_ZLIB=(e,n,t)=>(n<{const n=e.state;let t=n.pending;t>e.avail_out&&(t=e.avail_out),t!==0&&(e.output.set(n.pending_buf.subarray(n.pending_out,n.pending_out+t),e.next_out),e.next_out+=t,n.pending_out+=t,e.total_out+=t,e.avail_out-=t,n.pending-=t,n.pending===0&&(n.pending_out=0))},flush_block_only=(e,n)=>{_tr_flush_block(e,e.block_start>=0?e.block_start:-1,e.strstart-e.block_start,n),e.block_start=e.strstart,flush_pending(e.strm)},put_byte=(e,n)=>{e.pending_buf[e.pending++]=n},putShortMSB=(e,n)=>{e.pending_buf[e.pending++]=n>>>8&255,e.pending_buf[e.pending++]=n&255},read_buf=(e,n,t,i)=>{let a=e.avail_in;return a>i&&(a=i),a===0?0:(e.avail_in-=a,n.set(e.input.subarray(e.next_in,e.next_in+a),t),e.state.wrap===1?e.adler=adler32_1(e.adler,n,a,t):e.state.wrap===2&&(e.adler=crc32_1(e.adler,n,a,t)),e.next_in+=a,e.total_in+=a,a)},longest_match=(e,n)=>{let t=e.max_chain_length,i=e.strstart,a,r,l=e.prev_length,o=e.nice_match;const u=e.strstart>e.w_size-MIN_LOOKAHEAD?e.strstart-(e.w_size-MIN_LOOKAHEAD):0,_=e.window,s=e.w_mask,N=e.prev,h=e.strstart+MAX_MATCH;let f=_[i+l-1],A=_[i+l];e.prev_length>=e.good_match&&(t>>=2),o>e.lookahead&&(o=e.lookahead);do if(a=n,!(_[a+l]!==A||_[a+l-1]!==f||_[a]!==_[i]||_[++a]!==_[i+1])){i+=2,a++;do;while(_[++i]===_[++a]&&_[++i]===_[++a]&&_[++i]===_[++a]&&_[++i]===_[++a]&&_[++i]===_[++a]&&_[++i]===_[++a]&&_[++i]===_[++a]&&_[++i]===_[++a]&&il){if(e.match_start=n,l=r,r>=o)break;f=_[i+l-1],A=_[i+l]}}while((n=N[n&s])>u&&--t!==0);return l<=e.lookahead?l:e.lookahead},fill_window=e=>{const n=e.w_size;let t,i,a,r,l;do{if(r=e.window_size-e.lookahead-e.strstart,e.strstart>=n+(n-MIN_LOOKAHEAD)){e.window.set(e.window.subarray(n,n+n),0),e.match_start-=n,e.strstart-=n,e.block_start-=n,i=e.hash_size,t=i;do a=e.head[--t],e.head[t]=a>=n?a-n:0;while(--i);i=n,t=i;do a=e.prev[--t],e.prev[t]=a>=n?a-n:0;while(--i);r+=n}if(e.strm.avail_in===0)break;if(i=read_buf(e.strm,e.window,e.strstart+e.lookahead,r),e.lookahead+=i,e.lookahead+e.insert>=MIN_MATCH)for(l=e.strstart-e.insert,e.ins_h=e.window[l],e.ins_h=HASH(e,e.ins_h,e.window[l+1]);e.insert&&(e.ins_h=HASH(e,e.ins_h,e.window[l+MIN_MATCH-1]),e.prev[l&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=l,l++,e.insert--,!(e.lookahead+e.insert{let t=65535;for(t>e.pending_buf_size-5&&(t=e.pending_buf_size-5);;){if(e.lookahead<=1){if(fill_window(e),e.lookahead===0&&n===Z_NO_FLUSH$2)return BS_NEED_MORE;if(e.lookahead===0)break}e.strstart+=e.lookahead,e.lookahead=0;const i=e.block_start+t;if((e.strstart===0||e.strstart>=i)&&(e.lookahead=e.strstart-i,e.strstart=i,flush_block_only(e,!1),e.strm.avail_out===0)||e.strstart-e.block_start>=e.w_size-MIN_LOOKAHEAD&&(flush_block_only(e,!1),e.strm.avail_out===0))return BS_NEED_MORE}return e.insert=0,n===Z_FINISH$3?(flush_block_only(e,!0),e.strm.avail_out===0?BS_FINISH_STARTED:BS_FINISH_DONE):(e.strstart>e.block_start&&(flush_block_only(e,!1),e.strm.avail_out===0),BS_NEED_MORE)},deflate_fast=(e,n)=>{let t,i;for(;;){if(e.lookahead=MIN_MATCH&&(e.ins_h=HASH(e,e.ins_h,e.window[e.strstart+MIN_MATCH-1]),t=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),t!==0&&e.strstart-t<=e.w_size-MIN_LOOKAHEAD&&(e.match_length=longest_match(e,t)),e.match_length>=MIN_MATCH)if(i=_tr_tally(e,e.strstart-e.match_start,e.match_length-MIN_MATCH),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=MIN_MATCH){e.match_length--;do e.strstart++,e.ins_h=HASH(e,e.ins_h,e.window[e.strstart+MIN_MATCH-1]),t=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart;while(--e.match_length!==0);e.strstart++}else e.strstart+=e.match_length,e.match_length=0,e.ins_h=e.window[e.strstart],e.ins_h=HASH(e,e.ins_h,e.window[e.strstart+1]);else i=_tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++;if(i&&(flush_block_only(e,!1),e.strm.avail_out===0))return BS_NEED_MORE}return e.insert=e.strstart{let t,i,a;for(;;){if(e.lookahead=MIN_MATCH&&(e.ins_h=HASH(e,e.ins_h,e.window[e.strstart+MIN_MATCH-1]),t=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),e.prev_length=e.match_length,e.prev_match=e.match_start,e.match_length=MIN_MATCH-1,t!==0&&e.prev_length4096)&&(e.match_length=MIN_MATCH-1)),e.prev_length>=MIN_MATCH&&e.match_length<=e.prev_length){a=e.strstart+e.lookahead-MIN_MATCH,i=_tr_tally(e,e.strstart-1-e.prev_match,e.prev_length-MIN_MATCH),e.lookahead-=e.prev_length-1,e.prev_length-=2;do++e.strstart<=a&&(e.ins_h=HASH(e,e.ins_h,e.window[e.strstart+MIN_MATCH-1]),t=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart);while(--e.prev_length!==0);if(e.match_available=0,e.match_length=MIN_MATCH-1,e.strstart++,i&&(flush_block_only(e,!1),e.strm.avail_out===0))return BS_NEED_MORE}else if(e.match_available){if(i=_tr_tally(e,0,e.window[e.strstart-1]),i&&flush_block_only(e,!1),e.strstart++,e.lookahead--,e.strm.avail_out===0)return BS_NEED_MORE}else e.match_available=1,e.strstart++,e.lookahead--}return e.match_available&&(i=_tr_tally(e,0,e.window[e.strstart-1]),e.match_available=0),e.insert=e.strstart{let t,i,a,r;const l=e.window;for(;;){if(e.lookahead<=MAX_MATCH){if(fill_window(e),e.lookahead<=MAX_MATCH&&n===Z_NO_FLUSH$2)return BS_NEED_MORE;if(e.lookahead===0)break}if(e.match_length=0,e.lookahead>=MIN_MATCH&&e.strstart>0&&(a=e.strstart-1,i=l[a],i===l[++a]&&i===l[++a]&&i===l[++a])){r=e.strstart+MAX_MATCH;do;while(i===l[++a]&&i===l[++a]&&i===l[++a]&&i===l[++a]&&i===l[++a]&&i===l[++a]&&i===l[++a]&&i===l[++a]&&ae.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=MIN_MATCH?(t=_tr_tally(e,1,e.match_length-MIN_MATCH),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(t=_tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),t&&(flush_block_only(e,!1),e.strm.avail_out===0))return BS_NEED_MORE}return e.insert=0,n===Z_FINISH$3?(flush_block_only(e,!0),e.strm.avail_out===0?BS_FINISH_STARTED:BS_FINISH_DONE):e.last_lit&&(flush_block_only(e,!1),e.strm.avail_out===0)?BS_NEED_MORE:BS_BLOCK_DONE},deflate_huff=(e,n)=>{let t;for(;;){if(e.lookahead===0&&(fill_window(e),e.lookahead===0)){if(n===Z_NO_FLUSH$2)return BS_NEED_MORE;break}if(e.match_length=0,t=_tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,t&&(flush_block_only(e,!1),e.strm.avail_out===0))return BS_NEED_MORE}return e.insert=0,n===Z_FINISH$3?(flush_block_only(e,!0),e.strm.avail_out===0?BS_FINISH_STARTED:BS_FINISH_DONE):e.last_lit&&(flush_block_only(e,!1),e.strm.avail_out===0)?BS_NEED_MORE:BS_BLOCK_DONE};function Config(e,n,t,i,a){this.good_length=e,this.max_lazy=n,this.nice_length=t,this.max_chain=i,this.func=a}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=e=>{e.window_size=2*e.w_size,zero(e.head),e.max_lazy_match=configuration_table[e.level].max_lazy,e.good_match=configuration_table[e.level].good_length,e.nice_match=configuration_table[e.level].nice_length,e.max_chain_length=configuration_table[e.level].max_chain,e.strstart=0,e.block_start=0,e.lookahead=0,e.insert=0,e.match_length=e.prev_length=MIN_MATCH-1,e.match_available=0,e.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=e=>{if(!e||!e.state)return err(e,Z_STREAM_ERROR$2);e.total_in=e.total_out=0,e.data_type=Z_UNKNOWN;const n=e.state;return n.pending=0,n.pending_out=0,n.wrap<0&&(n.wrap=-n.wrap),n.status=n.wrap?INIT_STATE:BUSY_STATE,e.adler=n.wrap===2?0:1,n.last_flush=Z_NO_FLUSH$2,_tr_init(n),Z_OK$3},deflateReset=e=>{const n=deflateResetKeep(e);return n===Z_OK$3&&lm_init(e.state),n},deflateSetHeader=(e,n)=>!e||!e.state||e.state.wrap!==2?Z_STREAM_ERROR$2:(e.state.gzhead=n,Z_OK$3),deflateInit2=(e,n,t,i,a,r)=>{if(!e)return Z_STREAM_ERROR$2;let l=1;if(n===Z_DEFAULT_COMPRESSION$1&&(n=6),i<0?(l=0,i=-i):i>15&&(l=2,i-=16),a<1||a>MAX_MEM_LEVEL||t!==Z_DEFLATED$2||i<8||i>15||n<0||n>9||r<0||r>Z_FIXED)return err(e,Z_STREAM_ERROR$2);i===8&&(i=9);const o=new DeflateState;return e.state=o,o.strm=e,o.wrap=l,o.gzhead=null,o.w_bits=i,o.w_size=1<deflateInit2(e,n,Z_DEFLATED$2,MAX_WBITS$1,DEF_MEM_LEVEL,Z_DEFAULT_STRATEGY$1),deflate$2=(e,n)=>{let t,i;if(!e||!e.state||n>Z_BLOCK$1||n<0)return e?err(e,Z_STREAM_ERROR$2):Z_STREAM_ERROR$2;const a=e.state;if(!e.output||!e.input&&e.avail_in!==0||a.status===FINISH_STATE&&n!==Z_FINISH$3)return err(e,e.avail_out===0?Z_BUF_ERROR$1:Z_STREAM_ERROR$2);a.strm=e;const r=a.last_flush;if(a.last_flush=n,a.status===INIT_STATE)if(a.wrap===2)e.adler=0,put_byte(a,31),put_byte(a,139),put_byte(a,8),a.gzhead?(put_byte(a,(a.gzhead.text?1:0)+(a.gzhead.hcrc?2:0)+(a.gzhead.extra?4:0)+(a.gzhead.name?8:0)+(a.gzhead.comment?16:0)),put_byte(a,a.gzhead.time&255),put_byte(a,a.gzhead.time>>8&255),put_byte(a,a.gzhead.time>>16&255),put_byte(a,a.gzhead.time>>24&255),put_byte(a,a.level===9?2:a.strategy>=Z_HUFFMAN_ONLY||a.level<2?4:0),put_byte(a,a.gzhead.os&255),a.gzhead.extra&&a.gzhead.extra.length&&(put_byte(a,a.gzhead.extra.length&255),put_byte(a,a.gzhead.extra.length>>8&255)),a.gzhead.hcrc&&(e.adler=crc32_1(e.adler,a.pending_buf,a.pending,0)),a.gzindex=0,a.status=EXTRA_STATE):(put_byte(a,0),put_byte(a,0),put_byte(a,0),put_byte(a,0),put_byte(a,0),put_byte(a,a.level===9?2:a.strategy>=Z_HUFFMAN_ONLY||a.level<2?4:0),put_byte(a,OS_CODE),a.status=BUSY_STATE);else{let l=Z_DEFLATED$2+(a.w_bits-8<<4)<<8,o=-1;a.strategy>=Z_HUFFMAN_ONLY||a.level<2?o=0:a.level<6?o=1:a.level===6?o=2:o=3,l|=o<<6,a.strstart!==0&&(l|=PRESET_DICT),l+=31-l%31,a.status=BUSY_STATE,putShortMSB(a,l),a.strstart!==0&&(putShortMSB(a,e.adler>>>16),putShortMSB(a,e.adler&65535)),e.adler=1}if(a.status===EXTRA_STATE)if(a.gzhead.extra){for(t=a.pending;a.gzindex<(a.gzhead.extra.length&65535)&&!(a.pending===a.pending_buf_size&&(a.gzhead.hcrc&&a.pending>t&&(e.adler=crc32_1(e.adler,a.pending_buf,a.pending-t,t)),flush_pending(e),t=a.pending,a.pending===a.pending_buf_size));)put_byte(a,a.gzhead.extra[a.gzindex]&255),a.gzindex++;a.gzhead.hcrc&&a.pending>t&&(e.adler=crc32_1(e.adler,a.pending_buf,a.pending-t,t)),a.gzindex===a.gzhead.extra.length&&(a.gzindex=0,a.status=NAME_STATE)}else a.status=NAME_STATE;if(a.status===NAME_STATE)if(a.gzhead.name){t=a.pending;do{if(a.pending===a.pending_buf_size&&(a.gzhead.hcrc&&a.pending>t&&(e.adler=crc32_1(e.adler,a.pending_buf,a.pending-t,t)),flush_pending(e),t=a.pending,a.pending===a.pending_buf_size)){i=1;break}a.gzindext&&(e.adler=crc32_1(e.adler,a.pending_buf,a.pending-t,t)),i===0&&(a.gzindex=0,a.status=COMMENT_STATE)}else a.status=COMMENT_STATE;if(a.status===COMMENT_STATE)if(a.gzhead.comment){t=a.pending;do{if(a.pending===a.pending_buf_size&&(a.gzhead.hcrc&&a.pending>t&&(e.adler=crc32_1(e.adler,a.pending_buf,a.pending-t,t)),flush_pending(e),t=a.pending,a.pending===a.pending_buf_size)){i=1;break}a.gzindext&&(e.adler=crc32_1(e.adler,a.pending_buf,a.pending-t,t)),i===0&&(a.status=HCRC_STATE)}else a.status=HCRC_STATE;if(a.status===HCRC_STATE&&(a.gzhead.hcrc?(a.pending+2>a.pending_buf_size&&flush_pending(e),a.pending+2<=a.pending_buf_size&&(put_byte(a,e.adler&255),put_byte(a,e.adler>>8&255),e.adler=0,a.status=BUSY_STATE)):a.status=BUSY_STATE),a.pending!==0){if(flush_pending(e),e.avail_out===0)return a.last_flush=-1,Z_OK$3}else if(e.avail_in===0&&rank(n)<=rank(r)&&n!==Z_FINISH$3)return err(e,Z_BUF_ERROR$1);if(a.status===FINISH_STATE&&e.avail_in!==0)return err(e,Z_BUF_ERROR$1);if(e.avail_in!==0||a.lookahead!==0||n!==Z_NO_FLUSH$2&&a.status!==FINISH_STATE){let l=a.strategy===Z_HUFFMAN_ONLY?deflate_huff(a,n):a.strategy===Z_RLE?deflate_rle(a,n):configuration_table[a.level].func(a,n);if((l===BS_FINISH_STARTED||l===BS_FINISH_DONE)&&(a.status=FINISH_STATE),l===BS_NEED_MORE||l===BS_FINISH_STARTED)return e.avail_out===0&&(a.last_flush=-1),Z_OK$3;if(l===BS_BLOCK_DONE&&(n===Z_PARTIAL_FLUSH?_tr_align(a):n!==Z_BLOCK$1&&(_tr_stored_block(a,0,0,!1),n===Z_FULL_FLUSH$1&&(zero(a.head),a.lookahead===0&&(a.strstart=0,a.block_start=0,a.insert=0))),flush_pending(e),e.avail_out===0))return a.last_flush=-1,Z_OK$3}return n!==Z_FINISH$3?Z_OK$3:a.wrap<=0?Z_STREAM_END$3:(a.wrap===2?(put_byte(a,e.adler&255),put_byte(a,e.adler>>8&255),put_byte(a,e.adler>>16&255),put_byte(a,e.adler>>24&255),put_byte(a,e.total_in&255),put_byte(a,e.total_in>>8&255),put_byte(a,e.total_in>>16&255),put_byte(a,e.total_in>>24&255)):(putShortMSB(a,e.adler>>>16),putShortMSB(a,e.adler&65535)),flush_pending(e),a.wrap>0&&(a.wrap=-a.wrap),a.pending!==0?Z_OK$3:Z_STREAM_END$3)},deflateEnd=e=>{if(!e||!e.state)return Z_STREAM_ERROR$2;const n=e.state.status;return n!==INIT_STATE&&n!==EXTRA_STATE&&n!==NAME_STATE&&n!==COMMENT_STATE&&n!==HCRC_STATE&&n!==BUSY_STATE&&n!==FINISH_STATE?err(e,Z_STREAM_ERROR$2):(e.state=null,n===BUSY_STATE?err(e,Z_DATA_ERROR$2):Z_OK$3)},deflateSetDictionary=(e,n)=>{let t=n.length;if(!e||!e.state)return Z_STREAM_ERROR$2;const i=e.state,a=i.wrap;if(a===2||a===1&&i.status!==INIT_STATE||i.lookahead)return Z_STREAM_ERROR$2;if(a===1&&(e.adler=adler32_1(e.adler,n,t,0)),i.wrap=0,t>=i.w_size){a===0&&(zero(i.head),i.strstart=0,i.block_start=0,i.insert=0);let u=new Uint8Array(i.w_size);u.set(n.subarray(t-i.w_size,t),0),n=u,t=i.w_size}const r=e.avail_in,l=e.next_in,o=e.input;for(e.avail_in=t,e.next_in=0,e.input=n,fill_window(i);i.lookahead>=MIN_MATCH;){let u=i.strstart,_=i.lookahead-(MIN_MATCH-1);do i.ins_h=HASH(i,i.ins_h,i.window[u+MIN_MATCH-1]),i.prev[u&i.w_mask]=i.head[i.ins_h],i.head[i.ins_h]=u,u++;while(--_);i.strstart=u,i.lookahead=MIN_MATCH-1,fill_window(i)}return i.strstart+=i.lookahead,i.block_start=i.strstart,i.insert=i.lookahead,i.lookahead=0,i.match_length=i.prev_length=MIN_MATCH-1,i.match_available=0,e.next_in=l,e.input=o,e.avail_in=r,i.wrap=a,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=(e,n)=>Object.prototype.hasOwnProperty.call(e,n);var assign=function(e){const n=Array.prototype.slice.call(arguments,1);for(;n.length;){const t=n.shift();if(!!t){if(typeof t!="object")throw new TypeError(t+"must be non-object");for(const i in t)_has(t,i)&&(e[i]=t[i])}}return e},flattenChunks=e=>{let n=0;for(let i=0,a=e.length;i=252?6:e>=248?5:e>=240?4:e>=224?3:e>=192?2:1;_utf8len[254]=_utf8len[254]=1;var string2buf=e=>{if(typeof TextEncoder=="function"&&TextEncoder.prototype.encode)return new TextEncoder().encode(e);let n,t,i,a,r,l=e.length,o=0;for(a=0;a>>6,n[r++]=128|t&63):t<65536?(n[r++]=224|t>>>12,n[r++]=128|t>>>6&63,n[r++]=128|t&63):(n[r++]=240|t>>>18,n[r++]=128|t>>>12&63,n[r++]=128|t>>>6&63,n[r++]=128|t&63);return n};const buf2binstring=(e,n)=>{if(n<65534&&e.subarray&&STR_APPLY_UIA_OK)return String.fromCharCode.apply(null,e.length===n?e:e.subarray(0,n));let t="";for(let i=0;i{const t=n||e.length;if(typeof TextDecoder=="function"&&TextDecoder.prototype.decode)return new TextDecoder().decode(e.subarray(0,n));let i,a;const r=new Array(t*2);for(a=0,i=0;i4){r[a++]=65533,i+=o-1;continue}for(l&=o===2?31:o===3?15:7;o>1&&i1){r[a++]=65533;continue}l<65536?r[a++]=l:(l-=65536,r[a++]=55296|l>>10&1023,r[a++]=56320|l&1023)}return buf2binstring(r,a)},utf8border=(e,n)=>{n=n||e.length,n>e.length&&(n=e.length);let t=n-1;for(;t>=0&&(e[t]&192)===128;)t--;return t<0||t===0?n:t+_utf8len[e[t]]>n?t:n},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(e){this.options=common.assign({level:Z_DEFAULT_COMPRESSION,method:Z_DEFLATED$1,chunkSize:16384,windowBits:15,memLevel:8,strategy:Z_DEFAULT_STRATEGY},e||{});let n=this.options;n.raw&&n.windowBits>0?n.windowBits=-n.windowBits:n.gzip&&n.windowBits>0&&n.windowBits<16&&(n.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new zstream,this.strm.avail_out=0;let t=deflate_1$2.deflateInit2(this.strm,n.level,n.method,n.windowBits,n.memLevel,n.strategy);if(t!==Z_OK$2)throw new Error(messages[t]);if(n.header&&deflate_1$2.deflateSetHeader(this.strm,n.header),n.dictionary){let i;if(typeof n.dictionary=="string"?i=strings.string2buf(n.dictionary):toString$1.call(n.dictionary)==="[object ArrayBuffer]"?i=new Uint8Array(n.dictionary):i=n.dictionary,t=deflate_1$2.deflateSetDictionary(this.strm,i),t!==Z_OK$2)throw new Error(messages[t]);this._dict_set=!0}}Deflate$1.prototype.push=function(e,n){const t=this.strm,i=this.options.chunkSize;let a,r;if(this.ended)return!1;for(n===~~n?r=n:r=n===!0?Z_FINISH$2:Z_NO_FLUSH$1,typeof e=="string"?t.input=strings.string2buf(e):toString$1.call(e)==="[object ArrayBuffer]"?t.input=new Uint8Array(e):t.input=e,t.next_in=0,t.avail_in=t.input.length;;){if(t.avail_out===0&&(t.output=new Uint8Array(i),t.next_out=0,t.avail_out=i),(r===Z_SYNC_FLUSH||r===Z_FULL_FLUSH)&&t.avail_out<=6){this.onData(t.output.subarray(0,t.next_out)),t.avail_out=0;continue}if(a=deflate_1$2.deflate(t,r),a===Z_STREAM_END$2)return t.next_out>0&&this.onData(t.output.subarray(0,t.next_out)),a=deflate_1$2.deflateEnd(this.strm),this.onEnd(a),this.ended=!0,a===Z_OK$2;if(t.avail_out===0){this.onData(t.output);continue}if(r>0&&t.next_out>0){this.onData(t.output.subarray(0,t.next_out)),t.avail_out=0;continue}if(t.avail_in===0)break}return!0};Deflate$1.prototype.onData=function(e){this.chunks.push(e)};Deflate$1.prototype.onEnd=function(e){e===Z_OK$2&&(this.result=common.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};function deflate$1(e,n){const t=new Deflate$1(n);if(t.push(e,!0),t.err)throw t.msg||messages[t.err];return t.result}function deflateRaw$1(e,n){return n=n||{},n.raw=!0,deflate$1(e,n)}function gzip$1(e,n){return n=n||{},n.gzip=!0,deflate$1(e,n)}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 e(n,t){let i,a,r,l,o,u,_,s,N,h,f,A,p,L,c,T,I,d,g,C,E,S,w,b;const R=n.state;i=n.next_in,w=n.input,a=i+(n.avail_in-5),r=n.next_out,b=n.output,l=r-(t-n.avail_out),o=r+(n.avail_out-257),u=R.dmax,_=R.wsize,s=R.whave,N=R.wnext,h=R.window,f=R.hold,A=R.bits,p=R.lencode,L=R.distcode,c=(1<>>24,f>>>=d,A-=d,d=I>>>16&255,d===0)b[r++]=I&65535;else if(d&16){g=I&65535,d&=15,d&&(A>>=d,A-=d),A<15&&(f+=w[i++]<>>24,f>>>=d,A-=d,d=I>>>16&255,d&16){if(C=I&65535,d&=15,Au){n.msg="invalid distance too far back",R.mode=BAD$1;break e}if(f>>>=d,A-=d,d=r-l,C>d){if(d=C-d,d>s&&R.sane){n.msg="invalid distance too far back",R.mode=BAD$1;break e}if(E=0,S=h,N===0){if(E+=_-d,d2;)b[r++]=S[E++],b[r++]=S[E++],b[r++]=S[E++],g-=3;g&&(b[r++]=S[E++],g>1&&(b[r++]=S[E++]))}else{E=r-C;do b[r++]=b[E++],b[r++]=b[E++],b[r++]=b[E++],g-=3;while(g>2);g&&(b[r++]=b[E++],g>1&&(b[r++]=b[E++]))}}else if((d&64)===0){I=L[(I&65535)+(f&(1<>3,i-=g,A-=g<<3,f&=(1<{const u=o.bits;let _=0,s=0,N=0,h=0,f=0,A=0,p=0,L=0,c=0,T=0,I,d,g,C,E,S=null,w=0,b;const R=new Uint16Array(MAXBITS+1),O=new Uint16Array(MAXBITS+1);let D=null,v=0,y,U,x;for(_=0;_<=MAXBITS;_++)R[_]=0;for(s=0;s=1&&R[h]===0;h--);if(f>h&&(f=h),h===0)return a[r++]=1<<24|64<<16|0,a[r++]=1<<24|64<<16|0,o.bits=1,0;for(N=1;N0&&(e===CODES$1||h!==1))return-1;for(O[1]=0,_=1;_ENOUGH_LENS$1||e===DISTS$1&&c>ENOUGH_DISTS$1)return 1;for(;;){y=_-p,l[s]b?(U=D[v+l[s]],x=S[w+l[s]]):(U=32+64,x=0),I=1<<_-p,d=1<>p)+d]=y<<24|U<<16|x|0;while(d!==0);for(I=1<<_-1;T&I;)I>>=1;if(I!==0?(T&=I-1,T+=I):T=0,s++,--R[_]===0){if(_===h)break;_=n[t+l[s]]}if(_>f&&(T&C)!==g){for(p===0&&(p=f),E+=N,A=_-p,L=1<ENOUGH_LENS$1||e===DISTS$1&&c>ENOUGH_DISTS$1)return 1;g=T&C,a[g]=f<<24|A<<16|E-r|0}}return T!==0&&(a[E+T]=_-p<<24|64<<16|0),o.bits=f,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=e=>(e>>>24&255)+(e>>>8&65280)+((e&65280)<<8)+((e&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=e=>{if(!e||!e.state)return Z_STREAM_ERROR$1;const n=e.state;return e.total_in=e.total_out=n.total=0,e.msg="",n.wrap&&(e.adler=n.wrap&1),n.mode=HEAD,n.last=0,n.havedict=0,n.dmax=32768,n.head=null,n.hold=0,n.bits=0,n.lencode=n.lendyn=new Int32Array(ENOUGH_LENS),n.distcode=n.distdyn=new Int32Array(ENOUGH_DISTS),n.sane=1,n.back=-1,Z_OK$1},inflateReset=e=>{if(!e||!e.state)return Z_STREAM_ERROR$1;const n=e.state;return n.wsize=0,n.whave=0,n.wnext=0,inflateResetKeep(e)},inflateReset2=(e,n)=>{let t;if(!e||!e.state)return Z_STREAM_ERROR$1;const i=e.state;return n<0?(t=0,n=-n):(t=(n>>4)+1,n<48&&(n&=15)),n&&(n<8||n>15)?Z_STREAM_ERROR$1:(i.window!==null&&i.wbits!==n&&(i.window=null),i.wrap=t,i.wbits=n,inflateReset(e))},inflateInit2=(e,n)=>{if(!e)return Z_STREAM_ERROR$1;const t=new InflateState;e.state=t,t.window=null;const i=inflateReset2(e,n);return i!==Z_OK$1&&(e.state=null),i},inflateInit=e=>inflateInit2(e,DEF_WBITS);let virgin=!0,lenfix,distfix;const fixedtables=e=>{if(virgin){lenfix=new Int32Array(512),distfix=new Int32Array(32);let n=0;for(;n<144;)e.lens[n++]=8;for(;n<256;)e.lens[n++]=9;for(;n<280;)e.lens[n++]=7;for(;n<288;)e.lens[n++]=8;for(inftrees(LENS,e.lens,0,288,lenfix,0,e.work,{bits:9}),n=0;n<32;)e.lens[n++]=5;inftrees(DISTS,e.lens,0,32,distfix,0,e.work,{bits:5}),virgin=!1}e.lencode=lenfix,e.lenbits=9,e.distcode=distfix,e.distbits=5},updatewindow=(e,n,t,i)=>{let a;const r=e.state;return r.window===null&&(r.wsize=1<=r.wsize?(r.window.set(n.subarray(t-r.wsize,t),0),r.wnext=0,r.whave=r.wsize):(a=r.wsize-r.wnext,a>i&&(a=i),r.window.set(n.subarray(t-i,t-i+a),r.wnext),i-=a,i?(r.window.set(n.subarray(t-i,t),0),r.wnext=i,r.whave=r.wsize):(r.wnext+=a,r.wnext===r.wsize&&(r.wnext=0),r.whave{let t,i,a,r,l,o,u,_,s,N,h,f,A,p,L=0,c,T,I,d,g,C,E,S;const w=new Uint8Array(4);let b,R;const O=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]);if(!e||!e.state||!e.output||!e.input&&e.avail_in!==0)return Z_STREAM_ERROR$1;t=e.state,t.mode===TYPE&&(t.mode=TYPEDO),l=e.next_out,a=e.output,u=e.avail_out,r=e.next_in,i=e.input,o=e.avail_in,_=t.hold,s=t.bits,N=o,h=u,S=Z_OK$1;e:for(;;)switch(t.mode){case HEAD:if(t.wrap===0){t.mode=TYPEDO;break}for(;s<16;){if(o===0)break e;o--,_+=i[r++]<>>8&255,t.check=crc32_1(t.check,w,2,0),_=0,s=0,t.mode=FLAGS;break}if(t.flags=0,t.head&&(t.head.done=!1),!(t.wrap&1)||(((_&255)<<8)+(_>>8))%31){e.msg="incorrect header check",t.mode=BAD;break}if((_&15)!==Z_DEFLATED){e.msg="unknown compression method",t.mode=BAD;break}if(_>>>=4,s-=4,E=(_&15)+8,t.wbits===0)t.wbits=E;else if(E>t.wbits){e.msg="invalid window size",t.mode=BAD;break}t.dmax=1<>8&1),t.flags&512&&(w[0]=_&255,w[1]=_>>>8&255,t.check=crc32_1(t.check,w,2,0)),_=0,s=0,t.mode=TIME;case TIME:for(;s<32;){if(o===0)break e;o--,_+=i[r++]<>>8&255,w[2]=_>>>16&255,w[3]=_>>>24&255,t.check=crc32_1(t.check,w,4,0)),_=0,s=0,t.mode=OS;case OS:for(;s<16;){if(o===0)break e;o--,_+=i[r++]<>8),t.flags&512&&(w[0]=_&255,w[1]=_>>>8&255,t.check=crc32_1(t.check,w,2,0)),_=0,s=0,t.mode=EXLEN;case EXLEN:if(t.flags&1024){for(;s<16;){if(o===0)break e;o--,_+=i[r++]<>>8&255,t.check=crc32_1(t.check,w,2,0)),_=0,s=0}else t.head&&(t.head.extra=null);t.mode=EXTRA;case EXTRA:if(t.flags&1024&&(f=t.length,f>o&&(f=o),f&&(t.head&&(E=t.head.extra_len-t.length,t.head.extra||(t.head.extra=new Uint8Array(t.head.extra_len)),t.head.extra.set(i.subarray(r,r+f),E)),t.flags&512&&(t.check=crc32_1(t.check,i,f,r)),o-=f,r+=f,t.length-=f),t.length))break e;t.length=0,t.mode=NAME;case NAME:if(t.flags&2048){if(o===0)break e;f=0;do E=i[r+f++],t.head&&E&&t.length<65536&&(t.head.name+=String.fromCharCode(E));while(E&&f>9&1,t.head.done=!0),e.adler=t.check=0,t.mode=TYPE;break;case DICTID:for(;s<32;){if(o===0)break e;o--,_+=i[r++]<>>=s&7,s-=s&7,t.mode=CHECK;break}for(;s<3;){if(o===0)break e;o--,_+=i[r++]<>>=1,s-=1,_&3){case 0:t.mode=STORED;break;case 1:if(fixedtables(t),t.mode=LEN_,n===Z_TREES){_>>>=2,s-=2;break e}break;case 2:t.mode=TABLE;break;case 3:e.msg="invalid block type",t.mode=BAD}_>>>=2,s-=2;break;case STORED:for(_>>>=s&7,s-=s&7;s<32;){if(o===0)break e;o--,_+=i[r++]<>>16^65535)){e.msg="invalid stored block lengths",t.mode=BAD;break}if(t.length=_&65535,_=0,s=0,t.mode=COPY_,n===Z_TREES)break e;case COPY_:t.mode=COPY;case COPY:if(f=t.length,f){if(f>o&&(f=o),f>u&&(f=u),f===0)break e;a.set(i.subarray(r,r+f),l),o-=f,r+=f,u-=f,l+=f,t.length-=f;break}t.mode=TYPE;break;case TABLE:for(;s<14;){if(o===0)break e;o--,_+=i[r++]<>>=5,s-=5,t.ndist=(_&31)+1,_>>>=5,s-=5,t.ncode=(_&15)+4,_>>>=4,s-=4,t.nlen>286||t.ndist>30){e.msg="too many length or distance symbols",t.mode=BAD;break}t.have=0,t.mode=LENLENS;case LENLENS:for(;t.have>>=3,s-=3}for(;t.have<19;)t.lens[O[t.have++]]=0;if(t.lencode=t.lendyn,t.lenbits=7,b={bits:t.lenbits},S=inftrees(CODES,t.lens,0,19,t.lencode,0,t.work,b),t.lenbits=b.bits,S){e.msg="invalid code lengths set",t.mode=BAD;break}t.have=0,t.mode=CODELENS;case CODELENS:for(;t.have>>24,T=L>>>16&255,I=L&65535,!(c<=s);){if(o===0)break e;o--,_+=i[r++]<>>=c,s-=c,t.lens[t.have++]=I;else{if(I===16){for(R=c+2;s>>=c,s-=c,t.have===0){e.msg="invalid bit length repeat",t.mode=BAD;break}E=t.lens[t.have-1],f=3+(_&3),_>>>=2,s-=2}else if(I===17){for(R=c+3;s>>=c,s-=c,E=0,f=3+(_&7),_>>>=3,s-=3}else{for(R=c+7;s>>=c,s-=c,E=0,f=11+(_&127),_>>>=7,s-=7}if(t.have+f>t.nlen+t.ndist){e.msg="invalid bit length repeat",t.mode=BAD;break}for(;f--;)t.lens[t.have++]=E}}if(t.mode===BAD)break;if(t.lens[256]===0){e.msg="invalid code -- missing end-of-block",t.mode=BAD;break}if(t.lenbits=9,b={bits:t.lenbits},S=inftrees(LENS,t.lens,0,t.nlen,t.lencode,0,t.work,b),t.lenbits=b.bits,S){e.msg="invalid literal/lengths set",t.mode=BAD;break}if(t.distbits=6,t.distcode=t.distdyn,b={bits:t.distbits},S=inftrees(DISTS,t.lens,t.nlen,t.ndist,t.distcode,0,t.work,b),t.distbits=b.bits,S){e.msg="invalid distances set",t.mode=BAD;break}if(t.mode=LEN_,n===Z_TREES)break e;case LEN_:t.mode=LEN;case LEN:if(o>=6&&u>=258){e.next_out=l,e.avail_out=u,e.next_in=r,e.avail_in=o,t.hold=_,t.bits=s,inffast(e,h),l=e.next_out,a=e.output,u=e.avail_out,r=e.next_in,i=e.input,o=e.avail_in,_=t.hold,s=t.bits,t.mode===TYPE&&(t.back=-1);break}for(t.back=0;L=t.lencode[_&(1<>>24,T=L>>>16&255,I=L&65535,!(c<=s);){if(o===0)break e;o--,_+=i[r++]<>d)],c=L>>>24,T=L>>>16&255,I=L&65535,!(d+c<=s);){if(o===0)break e;o--,_+=i[r++]<>>=d,s-=d,t.back+=d}if(_>>>=c,s-=c,t.back+=c,t.length=I,T===0){t.mode=LIT;break}if(T&32){t.back=-1,t.mode=TYPE;break}if(T&64){e.msg="invalid literal/length code",t.mode=BAD;break}t.extra=T&15,t.mode=LENEXT;case LENEXT:if(t.extra){for(R=t.extra;s>>=t.extra,s-=t.extra,t.back+=t.extra}t.was=t.length,t.mode=DIST;case DIST:for(;L=t.distcode[_&(1<>>24,T=L>>>16&255,I=L&65535,!(c<=s);){if(o===0)break e;o--,_+=i[r++]<>d)],c=L>>>24,T=L>>>16&255,I=L&65535,!(d+c<=s);){if(o===0)break e;o--,_+=i[r++]<>>=d,s-=d,t.back+=d}if(_>>>=c,s-=c,t.back+=c,T&64){e.msg="invalid distance code",t.mode=BAD;break}t.offset=I,t.extra=T&15,t.mode=DISTEXT;case DISTEXT:if(t.extra){for(R=t.extra;s>>=t.extra,s-=t.extra,t.back+=t.extra}if(t.offset>t.dmax){e.msg="invalid distance too far back",t.mode=BAD;break}t.mode=MATCH;case MATCH:if(u===0)break e;if(f=h-u,t.offset>f){if(f=t.offset-f,f>t.whave&&t.sane){e.msg="invalid distance too far back",t.mode=BAD;break}f>t.wnext?(f-=t.wnext,A=t.wsize-f):A=t.wnext-f,f>t.length&&(f=t.length),p=t.window}else p=a,A=l-t.offset,f=t.length;f>u&&(f=u),u-=f,t.length-=f;do a[l++]=p[A++];while(--f);t.length===0&&(t.mode=LEN);break;case LIT:if(u===0)break e;a[l++]=t.length,u--,t.mode=LEN;break;case CHECK:if(t.wrap){for(;s<32;){if(o===0)break e;o--,_|=i[r++]<{if(!e||!e.state)return Z_STREAM_ERROR$1;let n=e.state;return n.window&&(n.window=null),e.state=null,Z_OK$1},inflateGetHeader=(e,n)=>{if(!e||!e.state)return Z_STREAM_ERROR$1;const t=e.state;return(t.wrap&2)===0?Z_STREAM_ERROR$1:(t.head=n,n.done=!1,Z_OK$1)},inflateSetDictionary=(e,n)=>{const t=n.length;let i,a,r;return!e||!e.state||(i=e.state,i.wrap!==0&&i.mode!==DICT)?Z_STREAM_ERROR$1:i.mode===DICT&&(a=1,a=adler32_1(a,n,t,0),a!==i.check)?Z_DATA_ERROR$1:(r=updatewindow(e,n,t,t),r?(i.mode=MEM,Z_MEM_ERROR$1):(i.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(e){this.options=common.assign({chunkSize:1024*64,windowBits:15,to:""},e||{});const n=this.options;n.raw&&n.windowBits>=0&&n.windowBits<16&&(n.windowBits=-n.windowBits,n.windowBits===0&&(n.windowBits=-15)),n.windowBits>=0&&n.windowBits<16&&!(e&&e.windowBits)&&(n.windowBits+=32),n.windowBits>15&&n.windowBits<48&&(n.windowBits&15)===0&&(n.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new zstream,this.strm.avail_out=0;let t=inflate_1$2.inflateInit2(this.strm,n.windowBits);if(t!==Z_OK)throw new Error(messages[t]);if(this.header=new gzheader,inflate_1$2.inflateGetHeader(this.strm,this.header),n.dictionary&&(typeof n.dictionary=="string"?n.dictionary=strings.string2buf(n.dictionary):toString.call(n.dictionary)==="[object ArrayBuffer]"&&(n.dictionary=new Uint8Array(n.dictionary)),n.raw&&(t=inflate_1$2.inflateSetDictionary(this.strm,n.dictionary),t!==Z_OK)))throw new Error(messages[t])}Inflate$1.prototype.push=function(e,n){const t=this.strm,i=this.options.chunkSize,a=this.options.dictionary;let r,l,o;if(this.ended)return!1;for(n===~~n?l=n:l=n===!0?Z_FINISH:Z_NO_FLUSH,toString.call(e)==="[object ArrayBuffer]"?t.input=new Uint8Array(e):t.input=e,t.next_in=0,t.avail_in=t.input.length;;){for(t.avail_out===0&&(t.output=new Uint8Array(i),t.next_out=0,t.avail_out=i),r=inflate_1$2.inflate(t,l),r===Z_NEED_DICT&&a&&(r=inflate_1$2.inflateSetDictionary(t,a),r===Z_OK?r=inflate_1$2.inflate(t,l):r===Z_DATA_ERROR&&(r=Z_NEED_DICT));t.avail_in>0&&r===Z_STREAM_END&&t.state.wrap>0&&e[t.next_in]!==0;)inflate_1$2.inflateReset(t),r=inflate_1$2.inflate(t,l);switch(r){case Z_STREAM_ERROR:case Z_DATA_ERROR:case Z_NEED_DICT:case Z_MEM_ERROR:return this.onEnd(r),this.ended=!0,!1}if(o=t.avail_out,t.next_out&&(t.avail_out===0||r===Z_STREAM_END))if(this.options.to==="string"){let u=strings.utf8border(t.output,t.next_out),_=t.next_out-u,s=strings.buf2string(t.output,u);t.next_out=_,t.avail_out=i-_,_&&t.output.set(t.output.subarray(u,u+_),0),this.onData(s)}else this.onData(t.output.length===t.next_out?t.output:t.output.subarray(0,t.next_out));if(!(r===Z_OK&&o===0)){if(r===Z_STREAM_END)return r=inflate_1$2.inflateEnd(this.strm),this.onEnd(r),this.ended=!0,!0;if(t.avail_in===0)break}}return!0};Inflate$1.prototype.onData=function(e){this.chunks.push(e)};Inflate$1.prototype.onEnd=function(e){e===Z_OK&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=common.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};function inflate$1(e,n){const t=new Inflate$1(n);if(t.push(e),t.err)throw t.msg||messages[t.err];return t.result}function inflateRaw$1(e,n){return n=n||{},n.raw=!0,inflate$1(e,n)}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=(e=>{let n={};return e.forEach((t,i)=>n[t]=i),n})(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):(e,n=t=>t)=>new Uint8Array(Array.prototype.slice.call(e,0).map(n)),_mkUriSafe=e=>e.replace(/=/g,"").replace(/[+\/]/g,n=>n=="+"?"-":"_"),_tidyB64=e=>e.replace(/[^A-Za-z0-9\+\/]/g,""),btoaPolyfill=e=>{let n,t,i,a,r="";const l=e.length%3;for(let o=0;o255||(i=e.charCodeAt(o++))>255||(a=e.charCodeAt(o++))>255)throw new TypeError("invalid character found");n=t<<16|i<<8|a,r+=b64chs[n>>18&63]+b64chs[n>>12&63]+b64chs[n>>6&63]+b64chs[n&63]}return l?r.slice(0,l-3)+"===".substring(l):r},_btoa=_hasbtoa?e=>btoa(e):_hasBuffer?e=>Buffer.from(e,"binary").toString("base64"):btoaPolyfill,_fromUint8Array=_hasBuffer?e=>Buffer.from(e).toString("base64"):e=>{let t=[];for(let i=0,a=e.length;in?_mkUriSafe(_fromUint8Array(e)):_fromUint8Array(e),cb_utob=e=>{if(e.length<2){var n=e.charCodeAt(0);return n<128?e:n<2048?_fromCC(192|n>>>6)+_fromCC(128|n&63):_fromCC(224|n>>>12&15)+_fromCC(128|n>>>6&63)+_fromCC(128|n&63)}else{var n=65536+(e.charCodeAt(0)-55296)*1024+(e.charCodeAt(1)-56320);return _fromCC(240|n>>>18&7)+_fromCC(128|n>>>12&63)+_fromCC(128|n>>>6&63)+_fromCC(128|n&63)}},re_utob=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,utob=e=>e.replace(re_utob,cb_utob),_encode=_hasBuffer?e=>Buffer.from(e,"utf8").toString("base64"):_TE?e=>_fromUint8Array(_TE.encode(e)):e=>_btoa(utob(e)),encode=(e,n=!1)=>n?_mkUriSafe(_encode(e)):_encode(e),re_btou=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,cb_btou=e=>{switch(e.length){case 4:var n=(7&e.charCodeAt(0))<<18|(63&e.charCodeAt(1))<<12|(63&e.charCodeAt(2))<<6|63&e.charCodeAt(3),t=n-65536;return _fromCC((t>>>10)+55296)+_fromCC((t&1023)+56320);case 3:return _fromCC((15&e.charCodeAt(0))<<12|(63&e.charCodeAt(1))<<6|63&e.charCodeAt(2));default:return _fromCC((31&e.charCodeAt(0))<<6|63&e.charCodeAt(1))}},btou=e=>e.replace(re_btou,cb_btou),atobPolyfill=e=>{if(e=e.replace(/\s+/g,""),!b64re.test(e))throw new TypeError("malformed base64.");e+="==".slice(2-(e.length&3));let n,t="",i,a;for(let r=0;r>16&255):a===64?_fromCC(n>>16&255,n>>8&255):_fromCC(n>>16&255,n>>8&255,n&255);return t},_atob=_hasatob?e=>atob(_tidyB64(e)):_hasBuffer?e=>Buffer.from(e,"base64").toString("binary"):atobPolyfill,_toUint8Array=_hasBuffer?e=>_U8Afrom(Buffer.from(e,"base64")):e=>_U8Afrom(_atob(e),n=>n.charCodeAt(0)),toUint8Array=e=>_toUint8Array(_unURI(e)),_decode=_hasBuffer?e=>Buffer.from(e,"base64").toString("utf8"):_TD?e=>_TD.decode(_toUint8Array(e)):e=>btou(_atob(e)),_unURI=e=>_tidyB64(e.replace(/[-_]/g,n=>n=="-"?"+":"/")),decode=e=>_decode(_unURI(e)),base64Serde={serialize:e=>encode(e,!0),deserialize:e=>decode(e)},pakoSerde={serialize:e=>{const n=new TextEncoder().encode(e),t=deflate_1(n,{level:9});return fromUint8Array(t,!0)},deserialize:e=>{const n=toUint8Array(e);return inflate_1(n,{to:"string"})}},serdes={base64:base64Serde,pako:pakoSerde},serializeState=e=>{const n=JSON.stringify(e),t="pako",i=serdes[t].serialize(n);return`${t}:${i}`},deserializeState=e=>{let n,t;if(e.includes(":")){let a;if([a,t]=e.split(":"),a in serdes)n=a;else throw new Error(`Unknown serde type: ${a}`)}else n="base64",t=e;const i=serdes[n].deserialize(t);return JSON.parse(i)},defaultState={code:`graph TD + A[Christmas] -->|Get money| B(Go shopping) + B --> C{Let me think} + C -->|One| D[Laptop] + C -->|Two| E[iPhone] + C -->|Three| F[fa:fa-car Car] + `,mermaid:JSON.stringify({theme:"default"},null,2),updateEditor:!1,autoSync:!0,updateDiagram:!0},urlParseFailedState=`graph TD + A[Loading URL failed. We can try to figure out why.] -->|Decode JSON| B(Please check the console to see the JSON and error details.) + B --> C{Is the JSON correct?} + C -->|Yes| D(Please Click here to Raise an issue in github.
Including the broken link in the issue
will speed up the fix.) + C -->|No| E{Did someone
send you this link?} + E -->|Yes| F[Ask them to send
you the complete link] + E -->|No| G{Did you copy
the complete URL?} + G --> |Yes| D + G --> |"No :("| H(Try using the Timeline tab in History
from same browser you used to create the diagram.) + click D href "https://github.com/mermaid-js/mermaid-live-editor/issues/new?assignees=&labels=bug&template=bug_report.md&title=Broken%20link" "Raise issue"`,codeStore=persist(writable(defaultState),localStorage(),"codeStore"),serializedState=derived([codeStore],([e],n)=>{n(serializeState(e))}),loadState=e=>{let n;console.log("Loading",e);try{n=deserializeState(e);const t=typeof n.mermaid=="string"?JSON.parse(n.mermaid):n.mermaid;t.securityLevel&&t.securityLevel!=="strict"&&confirm(`Removing "securityLevel":"${t.securityLevel}" from the config for safety. +Click Cancel if you trust the source of this Diagram.`)&&delete t.securityLevel,n.mermaid=JSON.stringify(t,null,2)}catch(t){n=get_store_value(codeStore),e&&(console.error("Init error",t),n.code=urlParseFailedState)}updateCodeStore(k(B({},n),{updateEditor:!0}))},updateCodeStore=e=>{codeStore.update(n=>B(B({},n),e))};let prompted=!1;const updateCode=(e,n,t=!1)=>{if(saveStatistics(e),(e.match(/\n/g)||"").length+1>50&&!prompted&&get_store_value(codeStore).autoSync){const a=confirm("Long diagram detected. Turn off Auto Sync? Click the sync logo to manually sync.");prompted=!0,a&&updateCodeStore({autoSync:!1})}codeStore.update(a=>k(B({},a),{code:e,updateEditor:n,updateDiagram:t}))},updateConfig=(e,n)=>{codeStore.update(t=>k(B({},t),{mermaid:e,updateEditor:n}))},toggleDarkTheme=e=>{codeStore.update(n=>{const t=JSON.parse(n.mermaid);return(!t.theme||["dark","default"].includes(t.theme))&&(t.theme=e?"dark":"default"),k(B({},n),{mermaid:JSON.stringify(t,null,2),updateEditor:!0})})},initURLSubscription=()=>{serializedState.subscribe(e=>{history.replaceState(void 0,void 0,`#${e}`)})},getStateString=()=>JSON.stringify(get_store_value(codeStore));export{localStorage as a,analytics as b,codeStore as c,pakoSerde as d,encode as e,updateConfig as f,getStateString as g,defaultState as h,updateCodeStore as i,initLoading as j,initURLSubscription as k,loadingStateStore as l,initAnalytics as m,loadState as n,persist as p,serializedState as s,toggleDarkTheme as t,updateCode as u}; diff --git a/_app/chunks/theme-ed8e2b8a.js b/_app/chunks/theme-ed8e2b8a.js new file mode 100644 index 00000000..0d89c399 --- /dev/null +++ b/_app/chunks/theme-ed8e2b8a.js @@ -0,0 +1 @@ +import{w as t}from"./preload-helper-5fa16730.js";import{p as o,a as r}from"./state-ed309cb8.js";const e=o(t({isDark:!1}),r(),"themeStore"),l=["dark","synthwave","halloween","aqua","forest","luxury","black","dracula"],n=s=>{s.includes(" ")&&(s=s.split(" ")[1].trim());const a=l.includes(s);console.log("Setting theme",s),e.set({theme:s,isDark:a})};export{n as s,e as t}; diff --git a/_app/chunks/util-49588a3d.js b/_app/chunks/util-49588a3d.js new file mode 100644 index 00000000..14ec1e6d --- /dev/null +++ b/_app/chunks/util-49588a3d.js @@ -0,0 +1,1228 @@ +var k_=Object.defineProperty,T_=Object.defineProperties;var C_=Object.getOwnPropertyDescriptors;var J6=Object.getOwnPropertySymbols;var E_=Object.prototype.hasOwnProperty,S_=Object.prototype.propertyIsEnumerable;var t_=(S,M,f)=>M in S?k_(S,M,{enumerable:!0,configurable:!0,writable:!0,value:f}):S[M]=f,I6=(S,M)=>{for(var f in M||(M={}))E_.call(M,f)&&t_(S,f,M[f]);if(J6)for(var f of J6(M))S_.call(M,f)&&t_(S,f,M[f]);return S},R6=(S,M)=>T_(S,C_(M));import{S as A_,i as M_,s as N_,e as e_,c as n_,a as r_,d as F6,b as fb,Y as db,g as D_,J as L_,E as i_,N as B_,v as O_,a5 as I_,Q as a_,O as j6}from"./index-b06f7db9.js";import{w as ey,d as R_}from"./preload-helper-5fa16730.js";import{c as P6,p as H6,a as $6,h as Y6,i as h_,j as F_,k as P_,m as j_,b as Y_,n as z_}from"./state-ed309cb8.js";const U_=ey(void 0);/*! For license information please see mermaid.esm.min.mjs.LICENSE.txt */var q_={1362:(S,M,f)=>{S=f.nmd(S);var m=function(){var h=function(ae,Qt,St,Kt){for(St=St||{},Kt=ae.length;Kt--;St[ae[Kt]]=Qt);return St},x=[1,6],g=[1,7],k=[1,8],E=[1,9],A=[1,12],I=[1,11],O=[1,15,24],Y=[1,19],H=[1,31],X=[1,34],Z=[1,32],et=[1,33],Q=[1,35],gt=[1,36],ht=[1,37],xt=[1,38],Tt=[1,41],ne=[1,42],bt=[1,43],at=[1,44],nt=[15,24],Dt=[1,56],Lt=[1,57],tt=[1,58],lt=[1,59],q=[1,60],Ut=[1,61],G=[15,24,31,38,39,47,50,51,52,53,54,55,60,62],me=[15,24,29,31,38,39,43,47,50,51,52,53,54,55,60,62,77,78,79,80],ve=[7,8,9,10,15,18,22,24],jt=[47,77,78,79,80],ie=[47,54,55,77,78,79,80],he=[47,50,51,52,53,77,78,79,80],pe=[15,24,31],le=[1,93],oe={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,CLASS_DIAGRAM:22,statements:23,EOF:24,statement:25,className:26,alphaNumToken:27,classLiteralName:28,GENERICTYPE:29,relationStatement:30,LABEL:31,classStatement:32,methodStatement:33,annotationStatement:34,clickStatement:35,cssClassStatement:36,CLASS:37,STYLE_SEPARATOR:38,STRUCT_START:39,members:40,STRUCT_STOP:41,ANNOTATION_START:42,ANNOTATION_END:43,MEMBER:44,SEPARATOR:45,relation:46,STR:47,relationType:48,lineType:49,AGGREGATION:50,EXTENSION:51,COMPOSITION:52,DEPENDENCY:53,LINE:54,DOTTED_LINE:55,CALLBACK:56,LINK:57,LINK_TARGET:58,CLICK:59,CALLBACK_NAME:60,CALLBACK_ARGS:61,HREF:62,CSSCLASS:63,commentToken:64,textToken:65,graphCodeTokens:66,textNoTagsToken:67,TAGSTART:68,TAGEND:69,"==":70,"--":71,PCT:72,DEFAULT:73,SPACE:74,MINUS:75,keywords:76,UNICODE_TEXT:77,NUM:78,ALPHA:79,BQUOTE_STR:80,$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:"CLASS_DIAGRAM",24:"EOF",29:"GENERICTYPE",31:"LABEL",37:"CLASS",38:"STYLE_SEPARATOR",39:"STRUCT_START",41:"STRUCT_STOP",42:"ANNOTATION_START",43:"ANNOTATION_END",44:"MEMBER",45:"SEPARATOR",47:"STR",50:"AGGREGATION",51:"EXTENSION",52:"COMPOSITION",53:"DEPENDENCY",54:"LINE",55:"DOTTED_LINE",56:"CALLBACK",57:"LINK",58:"LINK_TARGET",59:"CLICK",60:"CALLBACK_NAME",61:"CALLBACK_ARGS",62:"HREF",63:"CSSCLASS",66:"graphCodeTokens",68:"TAGSTART",69:"TAGEND",70:"==",71:"--",72:"PCT",73:"DEFAULT",74:"SPACE",75:"MINUS",76:"keywords",77:"UNICODE_TEXT",78:"NUM",79:"ALPHA",80:"BQUOTE_STR"},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],[23,1],[23,2],[23,3],[26,1],[26,1],[26,2],[26,2],[26,2],[25,1],[25,2],[25,1],[25,1],[25,1],[25,1],[25,1],[25,1],[25,1],[32,2],[32,4],[32,5],[32,7],[34,4],[40,1],[40,2],[33,1],[33,2],[33,1],[33,1],[30,3],[30,4],[30,4],[30,5],[46,3],[46,2],[46,2],[46,1],[48,1],[48,1],[48,1],[48,1],[49,1],[49,1],[35,3],[35,4],[35,3],[35,4],[35,4],[35,5],[35,3],[35,4],[35,4],[35,5],[35,3],[35,4],[35,4],[35,5],[36,3],[64,1],[64,1],[65,1],[65,1],[65,1],[65,1],[65,1],[65,1],[65,1],[67,1],[67,1],[67,1],[67,1],[27,1],[27,1],[27,1],[28,1]],performAction:function(ae,Qt,St,Kt,mt,Ht,kt){var It=Ht.length-1;switch(mt){case 4:Kt.setDirection("TB");break;case 5:Kt.setDirection("BT");break;case 6:Kt.setDirection("RL");break;case 7:Kt.setDirection("LR");break;case 11:Kt.parseDirective("%%{","open_directive");break;case 12:Kt.parseDirective(Ht[It],"type_directive");break;case 13:Ht[It]=Ht[It].trim().replace(/'/g,'"'),Kt.parseDirective(Ht[It],"arg_directive");break;case 14:Kt.parseDirective("}%%","close_directive","class");break;case 19:case 20:this.$=Ht[It];break;case 21:this.$=Ht[It-1]+Ht[It];break;case 22:case 23:this.$=Ht[It-1]+"~"+Ht[It];break;case 24:Kt.addRelation(Ht[It]);break;case 25:Ht[It-1].title=Kt.cleanupLabel(Ht[It]),Kt.addRelation(Ht[It-1]);break;case 33:Kt.addClass(Ht[It]);break;case 34:Kt.addClass(Ht[It-2]),Kt.setCssClass(Ht[It-2],Ht[It]);break;case 35:Kt.addClass(Ht[It-3]),Kt.addMembers(Ht[It-3],Ht[It-1]);break;case 36:Kt.addClass(Ht[It-5]),Kt.setCssClass(Ht[It-5],Ht[It-3]),Kt.addMembers(Ht[It-5],Ht[It-1]);break;case 37:Kt.addAnnotation(Ht[It],Ht[It-2]);break;case 38:this.$=[Ht[It]];break;case 39:Ht[It].push(Ht[It-1]),this.$=Ht[It];break;case 40:case 42:case 43:break;case 41:Kt.addMember(Ht[It-1],Kt.cleanupLabel(Ht[It]));break;case 44:this.$={id1:Ht[It-2],id2:Ht[It],relation:Ht[It-1],relationTitle1:"none",relationTitle2:"none"};break;case 45:this.$={id1:Ht[It-3],id2:Ht[It],relation:Ht[It-1],relationTitle1:Ht[It-2],relationTitle2:"none"};break;case 46:this.$={id1:Ht[It-3],id2:Ht[It],relation:Ht[It-2],relationTitle1:"none",relationTitle2:Ht[It-1]};break;case 47:this.$={id1:Ht[It-4],id2:Ht[It],relation:Ht[It-2],relationTitle1:Ht[It-3],relationTitle2:Ht[It-1]};break;case 48:this.$={type1:Ht[It-2],type2:Ht[It],lineType:Ht[It-1]};break;case 49:this.$={type1:"none",type2:Ht[It],lineType:Ht[It-1]};break;case 50:this.$={type1:Ht[It-1],type2:"none",lineType:Ht[It]};break;case 51:this.$={type1:"none",type2:"none",lineType:Ht[It]};break;case 52:this.$=Kt.relationType.AGGREGATION;break;case 53:this.$=Kt.relationType.EXTENSION;break;case 54:this.$=Kt.relationType.COMPOSITION;break;case 55:this.$=Kt.relationType.DEPENDENCY;break;case 56:this.$=Kt.lineType.LINE;break;case 57:this.$=Kt.lineType.DOTTED_LINE;break;case 58:case 64:this.$=Ht[It-2],Kt.setClickEvent(Ht[It-1],Ht[It]);break;case 59:case 65:this.$=Ht[It-3],Kt.setClickEvent(Ht[It-2],Ht[It-1]),Kt.setTooltip(Ht[It-2],Ht[It]);break;case 60:case 68:this.$=Ht[It-2],Kt.setLink(Ht[It-1],Ht[It]);break;case 61:case 69:this.$=Ht[It-3],Kt.setLink(Ht[It-2],Ht[It-1],Ht[It]);break;case 62:case 70:this.$=Ht[It-3],Kt.setLink(Ht[It-2],Ht[It-1]),Kt.setTooltip(Ht[It-2],Ht[It]);break;case 63:case 71:this.$=Ht[It-4],Kt.setLink(Ht[It-3],Ht[It-2],Ht[It]),Kt.setTooltip(Ht[It-3],Ht[It-1]);break;case 66:this.$=Ht[It-3],Kt.setClickEvent(Ht[It-2],Ht[It-1],Ht[It]);break;case 67:this.$=Ht[It-4],Kt.setClickEvent(Ht[It-3],Ht[It-2],Ht[It-1]),Kt.setTooltip(Ht[It-3],Ht[It]);break;case 72:Kt.setCssClass(Ht[It-1],Ht[It])}},table:[{3:1,4:2,5:3,6:4,7:x,8:g,9:k,10:E,11:5,12:10,18:A,22:I},{1:[3]},{1:[2,1]},{1:[2,2]},{3:13,4:2,5:3,6:4,7:x,8:g,9:k,10:E,11:5,12:10,18:A,22:I},{1:[2,8]},h(O,[2,4]),h(O,[2,5]),h(O,[2,6]),h(O,[2,7]),{13:14,19:[1,15]},{15:[1,16]},{19:[2,11]},{1:[2,3]},{14:17,16:[1,18],21:Y},h([16,21],[2,12]),{5:29,6:28,7:x,8:g,9:k,10:E,12:10,18:A,23:20,25:21,26:30,27:39,28:40,30:22,32:23,33:24,34:25,35:26,36:27,37:H,42:X,44:Z,45:et,56:Q,57:gt,59:ht,63:xt,77:Tt,78:ne,79:bt,80:at},{15:[1,45]},{17:46,20:[1,47]},{15:[2,14]},{24:[1,48]},{15:[1,49],24:[2,16]},h(nt,[2,24],{31:[1,50]}),h(nt,[2,26]),h(nt,[2,27]),h(nt,[2,28]),h(nt,[2,29]),h(nt,[2,30]),h(nt,[2,31]),h(nt,[2,32]),h(nt,[2,40],{46:51,48:54,49:55,31:[1,53],47:[1,52],50:Dt,51:Lt,52:tt,53:lt,54:q,55:Ut}),{26:62,27:39,28:40,77:Tt,78:ne,79:bt,80:at},h(nt,[2,42]),h(nt,[2,43]),{27:63,77:Tt,78:ne,79:bt},{26:64,27:39,28:40,77:Tt,78:ne,79:bt,80:at},{26:65,27:39,28:40,77:Tt,78:ne,79:bt,80:at},{26:66,27:39,28:40,77:Tt,78:ne,79:bt,80:at},{47:[1,67]},h(G,[2,19],{27:39,28:40,26:68,29:[1,69],77:Tt,78:ne,79:bt,80:at}),h(G,[2,20],{29:[1,70]}),h(me,[2,86]),h(me,[2,87]),h(me,[2,88]),h([15,24,29,31,38,39,47,50,51,52,53,54,55,60,62],[2,89]),h(ve,[2,9]),{14:71,21:Y},{21:[2,13]},{1:[2,15]},{5:29,6:28,7:x,8:g,9:k,10:E,12:10,18:A,23:72,24:[2,17],25:21,26:30,27:39,28:40,30:22,32:23,33:24,34:25,35:26,36:27,37:H,42:X,44:Z,45:et,56:Q,57:gt,59:ht,63:xt,77:Tt,78:ne,79:bt,80:at},h(nt,[2,25]),{26:73,27:39,28:40,47:[1,74],77:Tt,78:ne,79:bt,80:at},{46:75,48:54,49:55,50:Dt,51:Lt,52:tt,53:lt,54:q,55:Ut},h(nt,[2,41]),{49:76,54:q,55:Ut},h(jt,[2,51],{48:77,50:Dt,51:Lt,52:tt,53:lt}),h(ie,[2,52]),h(ie,[2,53]),h(ie,[2,54]),h(ie,[2,55]),h(he,[2,56]),h(he,[2,57]),h(nt,[2,33],{38:[1,78],39:[1,79]}),{43:[1,80]},{47:[1,81]},{47:[1,82]},{60:[1,83],62:[1,84]},{27:85,77:Tt,78:ne,79:bt},h(G,[2,21]),h(G,[2,22]),h(G,[2,23]),{15:[1,86]},{24:[2,18]},h(pe,[2,44]),{26:87,27:39,28:40,77:Tt,78:ne,79:bt,80:at},{26:88,27:39,28:40,47:[1,89],77:Tt,78:ne,79:bt,80:at},h(jt,[2,50],{48:90,50:Dt,51:Lt,52:tt,53:lt}),h(jt,[2,49]),{27:91,77:Tt,78:ne,79:bt},{40:92,44:le},{26:94,27:39,28:40,77:Tt,78:ne,79:bt,80:at},h(nt,[2,58],{47:[1,95]}),h(nt,[2,60],{47:[1,97],58:[1,96]}),h(nt,[2,64],{47:[1,98],61:[1,99]}),h(nt,[2,68],{47:[1,101],58:[1,100]}),h(nt,[2,72]),h(ve,[2,10]),h(pe,[2,46]),h(pe,[2,45]),{26:102,27:39,28:40,77:Tt,78:ne,79:bt,80:at},h(jt,[2,48]),h(nt,[2,34],{39:[1,103]}),{41:[1,104]},{40:105,41:[2,38],44:le},h(nt,[2,37]),h(nt,[2,59]),h(nt,[2,61]),h(nt,[2,62],{58:[1,106]}),h(nt,[2,65]),h(nt,[2,66],{47:[1,107]}),h(nt,[2,69]),h(nt,[2,70],{58:[1,108]}),h(pe,[2,47]),{40:109,44:le},h(nt,[2,35]),{41:[2,39]},h(nt,[2,63]),h(nt,[2,67]),h(nt,[2,71]),{41:[1,110]},h(nt,[2,36])],defaultActions:{2:[2,1],3:[2,2],5:[2,8],12:[2,11],13:[2,3],19:[2,14],47:[2,13],48:[2,15],72:[2,18],105:[2,39]},parseError:function(ae,Qt){if(!Qt.recoverable){var St=new Error(ae);throw St.hash=Qt,St}this.trace(ae)},parse:function(ae){var Qt=this,St=[0],Kt=[],mt=[null],Ht=[],kt=this.table,It="",se=0,Se=0,be=0,Ae=2,cn=1,De=Ht.slice.call(arguments,1),Be=Object.create(this.lexer),Le={yy:{}};for(var Ze in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Ze)&&(Le.yy[Ze]=this.yy[Ze]);Be.setInput(ae,Le.yy),Le.yy.lexer=Be,Le.yy.parser=this,Be.yylloc===void 0&&(Be.yylloc={});var Ke=Be.yylloc;Ht.push(Ke);var Je=Be.options&&Be.options.ranges;function $e(){var mn;return typeof(mn=Kt.pop()||Be.lex()||cn)!="number"&&(mn instanceof Array&&(mn=(Kt=mn).pop()),mn=Qt.symbols_[mn]||mn),mn}typeof Le.yy.parseError=="function"?this.parseError=Le.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var Ue,Yn,Me,un,gn,kr,kn,sr,rn,ln={};;){if(Me=St[St.length-1],this.defaultActions[Me]?un=this.defaultActions[Me]:(Ue==null&&(Ue=$e()),un=kt[Me]&&kt[Me][Ue]),un===void 0||!un.length||!un[0]){var Ye="";for(kr in rn=[],kt[Me])this.terminals_[kr]&&kr>Ae&&rn.push("'"+this.terminals_[kr]+"'");Ye=Be.showPosition?"Parse error on line "+(se+1)+`: +`+Be.showPosition()+` +Expecting `+rn.join(", ")+", got '"+(this.terminals_[Ue]||Ue)+"'":"Parse error on line "+(se+1)+": Unexpected "+(Ue==cn?"end of input":"'"+(this.terminals_[Ue]||Ue)+"'"),this.parseError(Ye,{text:Be.match,token:this.terminals_[Ue]||Ue,line:Be.yylineno,loc:Ke,expected:rn})}if(un[0]instanceof Array&&un.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Me+", token: "+Ue);switch(un[0]){case 1:St.push(Ue),mt.push(Be.yytext),Ht.push(Be.yylloc),St.push(un[1]),Ue=null,Yn?(Ue=Yn,Yn=null):(Se=Be.yyleng,It=Be.yytext,se=Be.yylineno,Ke=Be.yylloc,be>0);break;case 2:if(kn=this.productions_[un[1]][1],ln.$=mt[mt.length-kn],ln._$={first_line:Ht[Ht.length-(kn||1)].first_line,last_line:Ht[Ht.length-1].last_line,first_column:Ht[Ht.length-(kn||1)].first_column,last_column:Ht[Ht.length-1].last_column},Je&&(ln._$.range=[Ht[Ht.length-(kn||1)].range[0],Ht[Ht.length-1].range[1]]),(gn=this.performAction.apply(ln,[It,Se,se,Le.yy,un[1],mt,Ht].concat(De)))!==void 0)return gn;kn&&(St=St.slice(0,-1*kn*2),mt=mt.slice(0,-1*kn),Ht=Ht.slice(0,-1*kn)),St.push(this.productions_[un[1]][0]),mt.push(ln.$),Ht.push(ln._$),sr=kt[St[St.length-2]][St[St.length-1]],St.push(sr);break;case 3:return!0}}return!0}},wn={EOF:1,parseError:function(ae,Qt){if(!this.yy.parser)throw new Error(ae);this.yy.parser.parseError(ae,Qt)},setInput:function(ae,Qt){return this.yy=Qt||this.yy||{},this._input=ae,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var ae=this._input[0];return this.yytext+=ae,this.yyleng++,this.offset++,this.match+=ae,this.matched+=ae,ae.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),ae},unput:function(ae){var Qt=ae.length,St=ae.split(/(?:\r\n?|\n)/g);this._input=ae+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-Qt),this.offset-=Qt;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),St.length-1&&(this.yylineno-=St.length-1);var mt=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:St?(St.length===Kt.length?this.yylloc.first_column:0)+Kt[Kt.length-St.length].length-St[0].length:this.yylloc.first_column-Qt},this.options.ranges&&(this.yylloc.range=[mt[0],mt[0]+this.yyleng-Qt]),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(ae){this.unput(this.match.slice(ae))},pastInput:function(){var ae=this.matched.substr(0,this.matched.length-this.match.length);return(ae.length>20?"...":"")+ae.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var ae=this.match;return ae.length<20&&(ae+=this._input.substr(0,20-ae.length)),(ae.substr(0,20)+(ae.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var ae=this.pastInput(),Qt=new Array(ae.length+1).join("-");return ae+this.upcomingInput()+` +`+Qt+"^"},test_match:function(ae,Qt){var St,Kt,mt;if(this.options.backtrack_lexer&&(mt={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&&(mt.yylloc.range=this.yylloc.range.slice(0))),(Kt=ae[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+ae[0].length},this.yytext+=ae[0],this.match+=ae[0],this.matches=ae,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(ae[0].length),this.matched+=ae[0],St=this.performAction.call(this,this.yy,this,Qt,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),St)return St;if(this._backtrack){for(var Ht in mt)this[Ht]=mt[Ht];return!1}return!1},next:function(){if(this.done)return this.EOF;var ae,Qt,St,Kt;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var mt=this._currentRules(),Ht=0;HtQt[0].length)){if(Qt=St,Kt=Ht,this.options.backtrack_lexer){if((ae=this.test_match(St,mt[Ht]))!==!1)return ae;if(this._backtrack){Qt=!1;continue}return!1}if(!this.options.flex)break}return Qt?(ae=this.test_match(Qt,mt[Kt]))!==!1&&ae: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(ae){this.conditionStack.push(ae)},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(ae){return(ae=this.conditionStack.length-1-Math.abs(ae||0))>=0?this.conditionStack[ae]:"INITIAL"},pushState:function(ae){this.begin(ae)},stateStackSize:function(){return this.conditionStack.length},options:{},performAction:function(ae,Qt,St,Kt){switch(St){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:case 10:case 12:case 19:break;case 11:return 15;case 13:case 14:return 22;case 15:return this.begin("struct"),39;case 16:return"EOF_IN_STRUCT";case 17:return"OPEN_IN_STRUCT";case 18:return this.popState(),41;case 20:return"MEMBER";case 21:return 37;case 22:return 63;case 23:return 56;case 24:return 57;case 25:return 59;case 26:return 42;case 27:return 43;case 28:this.begin("generic");break;case 29:case 32:case 35:case 38:case 41:case 44:this.popState();break;case 30:return"GENERICTYPE";case 31:this.begin("string");break;case 33:return"STR";case 34:this.begin("bqstring");break;case 36:return"BQUOTE_STR";case 37:this.begin("href");break;case 39:return 62;case 40:this.begin("callback_name");break;case 42:this.popState(),this.begin("callback_args");break;case 43:return 60;case 45:return 61;case 46:case 47:case 48:case 49:return 58;case 50:case 51:return 51;case 52:case 53:return 53;case 54:return 52;case 55:return 50;case 56:return 54;case 57:return 55;case 58:return 31;case 59:return 38;case 60:return 75;case 61:return"DOT";case 62:return"PLUS";case 63:return 72;case 64:case 65:return"EQUALS";case 66:return 79;case 67:return"PUNCTUATION";case 68:return 78;case 69:return 77;case 70:return 74;case 71:return 24}},rules:[/^(?:%%\{)/,/^(?:.*direction\s+TB[^\n]*)/,/^(?:.*direction\s+BT[^\n]*)/,/^(?:.*direction\s+RL[^\n]*)/,/^(?:.*direction\s+LR[^\n]*)/,/^(?:((?:(?!\}%%)[^:.])*))/,/^(?::)/,/^(?:\}%%)/,/^(?:((?:(?!\}%%).|\n)*))/,/^(?:%%(?!\{)*[^\n]*(\r?\n?)+)/,/^(?:%%[^\n]*(\r?\n)*)/,/^(?:\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)/,/^(?:--)/,/^(?:\.\.)/,/^(?::{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:{arg_directive:{rules:[7,8],inclusive:!1},type_directive:{rules:[6,7],inclusive:!1},open_directive:{rules:[5],inclusive:!1},callback_args:{rules:[44,45],inclusive:!1},callback_name:{rules:[41,42,43],inclusive:!1},href:{rules:[38,39],inclusive:!1},struct:{rules:[16,17,18,19,20],inclusive:!1},generic:{rules:[29,30],inclusive:!1},bqstring:{rules:[35,36],inclusive:!1},string:{rules:[32,33],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,9,10,11,12,13,14,15,21,22,23,24,25,26,27,28,31,34,37,40,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71],inclusive:!0}}};function fe(){this.yy={}}return oe.lexer=wn,fe.prototype=oe,oe.Parser=fe,new fe}();M.parser=m,M.Parser=m.Parser,M.parse=function(){return m.parse.apply(m,arguments)},M.main=function(h){h[1]||(console.log("Usage: "+h[0]+" FILE"),process.exit(1));var x=f(8218).readFileSync(f(6470).normalize(h[1]),"utf8");return M.parser.parse(x)},f.c[f.s]===S&&M.main(process.argv.slice(1))},5890:(S,M,f)=>{S=f.nmd(S);var m=function(){var h=function(nt,Dt,Lt,tt){for(Lt=Lt||{},tt=nt.length;tt--;Lt[nt[tt]]=Dt);return Lt},x=[1,2],g=[1,5],k=[6,9,11,23,25,27,45],E=[1,17],A=[1,18],I=[1,19],O=[1,22],Y=[1,27],H=[1,28],X=[1,29],Z=[1,30],et=[1,41],Q=[27,42,43],gt=[4,6,9,11,23,25,27,45],ht=[38,39,40,41],xt=[22,33],Tt=[1,59],ne={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,accDescription:25,description_value:26,ALPHANUM:27,attribute:28,attributeType:29,attributeName:30,attributeKeyType:31,attributeComment:32,ATTRIBUTE_WORD:33,ATTRIBUTE_KEY:34,COMMENT:35,cardinality:36,relType:37,ZERO_OR_ONE:38,ZERO_OR_MORE:39,ONE_OR_MORE:40,ONLY_ONE:41,NON_IDENTIFYING:42,IDENTIFYING:43,WORD:44,open_directive:45,type_directive:46,arg_directive:47,close_directive:48,$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:"accDescription",26:"description_value",27:"ALPHANUM",33:"ATTRIBUTE_WORD",34:"ATTRIBUTE_KEY",35:"COMMENT",38:"ZERO_OR_ONE",39:"ZERO_OR_MORE",40:"ONE_OR_MORE",41:"ONLY_ONE",42:"NON_IDENTIFYING",43:"IDENTIFYING",44:"WORD",45:"open_directive",46:"type_directive",47:"arg_directive",48:"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],[17,1],[21,1],[21,2],[28,2],[28,3],[28,3],[28,4],[29,1],[30,1],[31,1],[32,1],[18,3],[36,1],[36,1],[36,1],[36,1],[37,1],[37,1],[19,1],[19,1],[12,1],[13,1],[16,1],[14,1]],performAction:function(nt,Dt,Lt,tt,lt,q,Ut){var G=q.length-1;switch(lt){case 1:break;case 3:case 7:case 8:this.$=[];break;case 4:q[G-1].push(q[G]),this.$=q[G-1];break;case 5:case 6:case 18:case 25:case 26:case 27:case 37:this.$=q[G];break;case 12:tt.addEntity(q[G-4]),tt.addEntity(q[G-2]),tt.addRelationship(q[G-4],q[G],q[G-2],q[G-3]);break;case 13:tt.addEntity(q[G-3]),tt.addAttributes(q[G-3],q[G-1]);break;case 14:tt.addEntity(q[G-2]);break;case 15:tt.addEntity(q[G]);break;case 16:this.$=q[G].trim(),tt.setTitle(this.$);break;case 17:this.$=q[G].trim(),tt.setAccDescription(this.$);break;case 19:this.$=[q[G]];break;case 20:q[G].push(q[G-1]),this.$=q[G];break;case 21:this.$={attributeType:q[G-1],attributeName:q[G]};break;case 22:this.$={attributeType:q[G-2],attributeName:q[G-1],attributeKeyType:q[G]};break;case 23:this.$={attributeType:q[G-2],attributeName:q[G-1],attributeComment:q[G]};break;case 24:this.$={attributeType:q[G-3],attributeName:q[G-2],attributeKeyType:q[G-1],attributeComment:q[G]};break;case 28:case 36:this.$=q[G].replace(/"/g,"");break;case 29:this.$={cardA:q[G],relType:q[G-1],cardB:q[G-2]};break;case 30:this.$=tt.Cardinality.ZERO_OR_ONE;break;case 31:this.$=tt.Cardinality.ZERO_OR_MORE;break;case 32:this.$=tt.Cardinality.ONE_OR_MORE;break;case 33:this.$=tt.Cardinality.ONLY_ONE;break;case 34:this.$=tt.Identification.NON_IDENTIFYING;break;case 35:this.$=tt.Identification.IDENTIFYING;break;case 38:tt.parseDirective("%%{","open_directive");break;case 39:tt.parseDirective(q[G],"type_directive");break;case 40:q[G]=q[G].trim().replace(/'/g,'"'),tt.parseDirective(q[G],"arg_directive");break;case 41:tt.parseDirective("}%%","close_directive","er")}},table:[{3:1,4:x,7:3,12:4,45:g},{1:[3]},h(k,[2,3],{5:6}),{3:7,4:x,7:3,12:4,45:g},{13:8,46:[1,9]},{46:[2,38]},{6:[1,10],7:15,8:11,9:[1,12],10:13,11:[1,14],12:4,17:16,23:E,25:A,27:I,45:g},{1:[2,2]},{14:20,15:[1,21],48:O},h([15,48],[2,39]),h(k,[2,8],{1:[2,1]}),h(k,[2,4]),{7:15,10:23,12:4,17:16,23:E,25:A,27:I,45:g},h(k,[2,6]),h(k,[2,7]),h(k,[2,11]),h(k,[2,15],{18:24,36:26,20:[1,25],38:Y,39:H,40:X,41:Z}),{24:[1,31]},{26:[1,32]},h([6,9,11,15,20,23,25,27,38,39,40,41,45],[2,18]),{11:[1,33]},{16:34,47:[1,35]},{11:[2,41]},h(k,[2,5]),{17:36,27:I},{21:37,22:[1,38],28:39,29:40,33:et},{37:42,42:[1,43],43:[1,44]},h(Q,[2,30]),h(Q,[2,31]),h(Q,[2,32]),h(Q,[2,33]),h(k,[2,16]),h(k,[2,17]),h(gt,[2,9]),{14:45,48:O},{48:[2,40]},{15:[1,46]},{22:[1,47]},h(k,[2,14]),{21:48,22:[2,19],28:39,29:40,33:et},{30:49,33:[1,50]},{33:[2,25]},{36:51,38:Y,39:H,40:X,41:Z},h(ht,[2,34]),h(ht,[2,35]),{11:[1,52]},{19:53,27:[1,55],44:[1,54]},h(k,[2,13]),{22:[2,20]},h(xt,[2,21],{31:56,32:57,34:[1,58],35:Tt}),h([22,33,34,35],[2,26]),{27:[2,29]},h(gt,[2,10]),h(k,[2,12]),h(k,[2,36]),h(k,[2,37]),h(xt,[2,22],{32:60,35:Tt}),h(xt,[2,23]),h([22,33,35],[2,27]),h(xt,[2,28]),h(xt,[2,24])],defaultActions:{5:[2,38],7:[2,2],22:[2,41],35:[2,40],41:[2,25],48:[2,20],51:[2,29]},parseError:function(nt,Dt){if(!Dt.recoverable){var Lt=new Error(nt);throw Lt.hash=Dt,Lt}this.trace(nt)},parse:function(nt){var Dt=this,Lt=[0],tt=[],lt=[null],q=[],Ut=this.table,G="",me=0,ve=0,jt=0,ie=2,he=1,pe=q.slice.call(arguments,1),le=Object.create(this.lexer),oe={yy:{}};for(var wn in this.yy)Object.prototype.hasOwnProperty.call(this.yy,wn)&&(oe.yy[wn]=this.yy[wn]);le.setInput(nt,oe.yy),oe.yy.lexer=le,oe.yy.parser=this,le.yylloc===void 0&&(le.yylloc={});var fe=le.yylloc;q.push(fe);var ae=le.options&&le.options.ranges;function Qt(){var De;return typeof(De=tt.pop()||le.lex()||he)!="number"&&(De instanceof Array&&(De=(tt=De).pop()),De=Dt.symbols_[De]||De),De}typeof oe.yy.parseError=="function"?this.parseError=oe.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var St,Kt,mt,Ht,kt,It,se,Se,be,Ae={};;){if(mt=Lt[Lt.length-1],this.defaultActions[mt]?Ht=this.defaultActions[mt]:(St==null&&(St=Qt()),Ht=Ut[mt]&&Ut[mt][St]),Ht===void 0||!Ht.length||!Ht[0]){var cn="";for(It in be=[],Ut[mt])this.terminals_[It]&&It>ie&&be.push("'"+this.terminals_[It]+"'");cn=le.showPosition?"Parse error on line "+(me+1)+`: +`+le.showPosition()+` +Expecting `+be.join(", ")+", got '"+(this.terminals_[St]||St)+"'":"Parse error on line "+(me+1)+": Unexpected "+(St==he?"end of input":"'"+(this.terminals_[St]||St)+"'"),this.parseError(cn,{text:le.match,token:this.terminals_[St]||St,line:le.yylineno,loc:fe,expected:be})}if(Ht[0]instanceof Array&&Ht.length>1)throw new Error("Parse Error: multiple actions possible at state: "+mt+", token: "+St);switch(Ht[0]){case 1:Lt.push(St),lt.push(le.yytext),q.push(le.yylloc),Lt.push(Ht[1]),St=null,Kt?(St=Kt,Kt=null):(ve=le.yyleng,G=le.yytext,me=le.yylineno,fe=le.yylloc,jt>0);break;case 2:if(se=this.productions_[Ht[1]][1],Ae.$=lt[lt.length-se],Ae._$={first_line:q[q.length-(se||1)].first_line,last_line:q[q.length-1].last_line,first_column:q[q.length-(se||1)].first_column,last_column:q[q.length-1].last_column},ae&&(Ae._$.range=[q[q.length-(se||1)].range[0],q[q.length-1].range[1]]),(kt=this.performAction.apply(Ae,[G,ve,me,oe.yy,Ht[1],lt,q].concat(pe)))!==void 0)return kt;se&&(Lt=Lt.slice(0,-1*se*2),lt=lt.slice(0,-1*se),q=q.slice(0,-1*se)),Lt.push(this.productions_[Ht[1]][0]),lt.push(Ae.$),q.push(Ae._$),Se=Ut[Lt[Lt.length-2]][Lt[Lt.length-1]],Lt.push(Se);break;case 3:return!0}}return!0}},bt={EOF:1,parseError:function(nt,Dt){if(!this.yy.parser)throw new Error(nt);this.yy.parser.parseError(nt,Dt)},setInput:function(nt,Dt){return this.yy=Dt||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 Dt=nt.length,Lt=nt.split(/(?:\r\n?|\n)/g);this._input=nt+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-Dt),this.offset-=Dt;var tt=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),Lt.length-1&&(this.yylineno-=Lt.length-1);var lt=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:Lt?(Lt.length===tt.length?this.yylloc.first_column:0)+tt[tt.length-Lt.length].length-Lt[0].length:this.yylloc.first_column-Dt},this.options.ranges&&(this.yylloc.range=[lt[0],lt[0]+this.yyleng-Dt]),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(),Dt=new Array(nt.length+1).join("-");return nt+this.upcomingInput()+` +`+Dt+"^"},test_match:function(nt,Dt){var Lt,tt,lt;if(this.options.backtrack_lexer&&(lt={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&&(lt.yylloc.range=this.yylloc.range.slice(0))),(tt=nt[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=tt.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:tt?tt[tt.length-1].length-tt[tt.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+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],Lt=this.performAction.call(this,this.yy,this,Dt,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),Lt)return Lt;if(this._backtrack){for(var q in lt)this[q]=lt[q];return!1}return!1},next:function(){if(this.done)return this.EOF;var nt,Dt,Lt,tt;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var lt=this._currentRules(),q=0;qDt[0].length)){if(Dt=Lt,tt=q,this.options.backtrack_lexer){if((nt=this.test_match(Lt,lt[q]))!==!1)return nt;if(this._backtrack){Dt=!1;continue}return!1}if(!this.options.flex)break}return Dt?(nt=this.test_match(Dt,lt[tt]))!==!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,Dt,Lt,tt){switch(Lt){case 0:return this.begin("title"),23;case 1:return this.popState(),"title_value";case 2:return this.begin("accDescription"),25;case 3:return this.popState(),"description_value";case 4:return this.begin("open_directive"),45;case 5:return this.begin("type_directive"),46;case 6:return this.popState(),this.begin("arg_directive"),15;case 7:return this.popState(),this.popState(),48;case 8:return 47;case 9:case 10:case 12:case 17:case 21:break;case 11:return 11;case 13:return 9;case 14:return 44;case 15:return 4;case 16:return this.begin("block"),20;case 18:return 34;case 19:return 33;case 20:return 35;case 22:return this.popState(),22;case 23:case 36:return Dt.yytext[0];case 24:case 28:return 38;case 25:case 29:return 39;case 26:case 30:return 40;case 27:return 41;case 31:case 33:case 34:return 42;case 32:return 43;case 35:return 27;case 37:return 6}},rules:[/^(?:title\b)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescription\b)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:%%\{)/i,/^(?:((?:(?!\}%%)[^:.])*))/i,/^(?::)/i,/^(?:\}%%)/i,/^(?:((?:(?!\}%%).|\n)*))/i,/^(?:%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:[\s]+)/i,/^(?:"[^"]*")/i,/^(?:erDiagram\b)/i,/^(?:\{)/i,/^(?:\s+)/i,/^(?:(?:PK)|(?:FK))/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:{accDescription:{rules:[3],inclusive:!1},title:{rules:[1],inclusive:!1},open_directive:{rules:[5],inclusive:!1},type_directive:{rules:[6,7],inclusive:!1},arg_directive:{rules:[7,8],inclusive:!1},block:{rules:[17,18,19,20,21,22,23],inclusive:!1},INITIAL:{rules:[0,2,4,9,10,11,12,13,14,15,16,24,25,26,27,28,29,30,31,32,33,34,35,36,37],inclusive:!0}}};function at(){this.yy={}}return ne.lexer=bt,at.prototype=ne,ne.Parser=at,new at}();M.parser=m,M.Parser=m.Parser,M.parse=function(){return m.parse.apply(m,arguments)},M.main=function(h){h[1]||(console.log("Usage: "+h[0]+" FILE"),process.exit(1));var x=f(8009).readFileSync(f(6470).normalize(h[1]),"utf8");return M.parser.parse(x)},f.c[f.s]===S&&M.main(process.argv.slice(1))},3602:(S,M,f)=>{S=f.nmd(S);var m=function(){var h=function(an,Jn,Cn,ze){for(Cn=Cn||{},ze=an.length;ze--;Cn[an[ze]]=Jn);return Cn},x=[1,9],g=[1,7],k=[1,6],E=[1,8],A=[1,20,21,22,23,38,47,61,62,81,82,83,84,85,86,90,100,101,104,106,107,113,114,115,116,117,118,119,120,121,122],I=[2,10],O=[1,20],Y=[1,21],H=[1,22],X=[1,23],Z=[1,30],et=[1,59],Q=[1,45],gt=[1,49],ht=[1,33],xt=[1,34],Tt=[1,35],ne=[1,36],bt=[1,37],at=[1,53],nt=[1,60],Dt=[1,48],Lt=[1,50],tt=[1,52],lt=[1,56],q=[1,57],Ut=[1,38],G=[1,39],me=[1,40],ve=[1,41],jt=[1,58],ie=[1,47],he=[1,51],pe=[1,54],le=[1,55],oe=[1,46],wn=[1,63],fe=[1,68],ae=[1,20,21,22,23,38,42,47,61,62,81,82,83,84,85,86,90,100,101,104,106,107,113,114,115,116,117,118,119,120,121,122],Qt=[1,72],St=[1,71],Kt=[1,73],mt=[20,21,23,76,77],Ht=[1,94],kt=[1,99],It=[1,102],se=[1,103],Se=[1,96],be=[1,101],Ae=[1,104],cn=[1,97],De=[1,109],Be=[1,108],Le=[1,98],Ze=[1,100],Ke=[1,105],Je=[1,106],$e=[1,107],Ue=[1,110],Yn=[20,21,22,23,76,77],Me=[20,21,22,23,48,76,77],un=[20,21,22,23,40,47,48,50,52,54,56,58,60,61,62,64,66,68,69,71,76,77,86,90,100,101,104,106,107,117,118,119,120,121,122],gn=[20,21,23],kr=[20,21,23,47,61,62,76,77,86,90,100,101,104,106,107,117,118,119,120,121,122],kn=[1,12,20,21,22,23,24,38,42,47,61,62,81,82,83,84,85,86,90,100,101,104,106,107,113,114,115,116,117,118,119,120,121,122],sr=[47,61,62,86,90,100,101,104,106,107,117,118,119,120,121,122],rn=[1,144],ln=[1,152],Ye=[1,153],mn=[1,154],bn=[1,155],zn=[1,139],Un=[1,140],Cr=[1,136],Ln=[1,147],Sn=[1,148],Fn=[1,149],qn=[1,150],Vn=[1,151],Xn=[1,156],Tn=[1,157],In=[1,142],An=[1,145],hn=[1,141],Hn=[1,138],ir=[20,21,22,23,38,42,47,61,62,81,82,83,84,85,86,90,100,101,104,106,107,113,114,115,116,117,118,119,120,121,122],ra=[1,160],gr=[20,21,22,23,26,47,61,62,86,100,101,104,106,107,117,118,119,120,121,122],Bn=[20,21,22,23,24,26,38,40,41,42,47,51,53,55,57,59,61,62,63,65,67,68,70,72,76,77,81,82,83,84,85,86,87,90,100,101,104,106,107,108,109,117,118,119,120,121,122],io=[12,21,22,24],Ta=[22,101],Vr=[1,245],Gr=[1,240],Fr=[1,241],Er=[1,249],Xr=[1,246],Ur=[1,243],qr=[1,242],Dr=[1,244],li=[1,247],hi=[1,248],cr=[1,250],Hr=[1,268],ia=[20,21,23,101],Lr=[20,21,22,23,61,62,81,97,100,101,104,105,106,107,108],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,link:44,node:45,vertex:46,AMP:47,STYLE_SEPARATOR:48,idString:49,DOUBLECIRCLESTART:50,DOUBLECIRCLEEND:51,PS:52,PE:53,"(-":54,"-)":55,STADIUMSTART:56,STADIUMEND:57,SUBROUTINESTART:58,SUBROUTINEEND:59,VERTEX_WITH_PROPS_START:60,ALPHA:61,COLON:62,PIPE:63,CYLINDERSTART:64,CYLINDEREND:65,DIAMOND_START:66,DIAMOND_STOP:67,TAGEND:68,TRAPSTART:69,TRAPEND:70,INVTRAPSTART:71,INVTRAPEND:72,linkStatement:73,arrowText:74,TESTSTR:75,START_LINK:76,LINK:77,textToken:78,STR:79,keywords:80,STYLE:81,LINKSTYLE:82,CLASSDEF:83,CLASS:84,CLICK:85,DOWN:86,UP:87,textNoTags:88,textNoTagsToken:89,DEFAULT:90,stylesOpt:91,alphaNum:92,CALLBACKNAME:93,CALLBACKARGS:94,HREF:95,LINK_TARGET:96,HEX:97,numList:98,INTERPOLATE:99,NUM:100,COMMA:101,style:102,styleComponent:103,MINUS:104,UNIT:105,BRKT:106,DOT:107,PCT:108,TAGSTART:109,alphaNumToken:110,idStringToken:111,alphaNumStatement:112,direction_tb:113,direction_bt:114,direction_rl:115,direction_lr:116,PUNCTUATION:117,UNICODE_TEXT:118,PLUS:119,EQUALS:120,MULT:121,UNDERSCORE:122,graphCodeTokens:123,ARROW_CROSS:124,ARROW_POINT:125,ARROW_CIRCLE:126,ARROW_OPEN:127,QUOTE:128,$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",47:"AMP",48:"STYLE_SEPARATOR",50:"DOUBLECIRCLESTART",51:"DOUBLECIRCLEEND",52:"PS",53:"PE",54:"(-",55:"-)",56:"STADIUMSTART",57:"STADIUMEND",58:"SUBROUTINESTART",59:"SUBROUTINEEND",60:"VERTEX_WITH_PROPS_START",61:"ALPHA",62:"COLON",63:"PIPE",64:"CYLINDERSTART",65:"CYLINDEREND",66:"DIAMOND_START",67:"DIAMOND_STOP",68:"TAGEND",69:"TRAPSTART",70:"TRAPEND",71:"INVTRAPSTART",72:"INVTRAPEND",75:"TESTSTR",76:"START_LINK",77:"LINK",79:"STR",81:"STYLE",82:"LINKSTYLE",83:"CLASSDEF",84:"CLASS",85:"CLICK",86:"DOWN",87:"UP",90:"DEFAULT",93:"CALLBACKNAME",94:"CALLBACKARGS",95:"HREF",96:"LINK_TARGET",97:"HEX",99:"INTERPOLATE",100:"NUM",101:"COMMA",104:"MINUS",105:"UNIT",106:"BRKT",107:"DOT",108:"PCT",109:"TAGSTART",113:"direction_tb",114:"direction_bt",115:"direction_rl",116:"direction_lr",117:"PUNCTUATION",118:"UNICODE_TEXT",119:"PLUS",120:"EQUALS",121:"MULT",122:"UNDERSCORE",124:"ARROW_CROSS",125:"ARROW_POINT",126:"ARROW_CIRCLE",127:"ARROW_OPEN",128:"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],[9,1],[9,1],[9,1],[32,3],[32,4],[32,2],[32,1],[45,1],[45,5],[45,3],[46,4],[46,4],[46,6],[46,4],[46,4],[46,4],[46,8],[46,4],[46,4],[46,4],[46,6],[46,4],[46,4],[46,4],[46,4],[46,4],[46,1],[44,2],[44,3],[44,3],[44,1],[44,3],[73,1],[74,3],[39,1],[39,2],[39,1],[80,1],[80,1],[80,1],[80,1],[80,1],[80,1],[80,1],[80,1],[80,1],[80,1],[80,1],[88,1],[88,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],[98,1],[98,3],[91,1],[91,3],[102,1],[102,2],[103,1],[103,1],[103,1],[103,1],[103,1],[103,1],[103,1],[103,1],[103,1],[103,1],[103,1],[78,1],[78,1],[78,1],[78,1],[78,1],[78,1],[89,1],[89,1],[89,1],[89,1],[49,1],[49,2],[92,1],[92,2],[112,1],[112,1],[112,1],[112,1],[43,1],[43,1],[43,1],[43,1],[110,1],[110,1],[110,1],[110,1],[110,1],[110,1],[110,1],[110,1],[110,1],[110,1],[110,1],[110,1],[110,1],[111,1],[111,1],[111,1],[111,1],[111,1],[111,1],[111,1],[111,1],[111,1],[111,1],[111,1],[111,1],[111,1],[111,1],[111,1],[111,1],[123,1],[123,1],[123,1],[123,1],[123,1],[123,1],[123,1],[123,1],[123,1],[123,1],[123,1],[123,1],[123,1],[123,1],[123,1],[123,1],[123,1],[123,1],[123,1],[123,1],[123,1],[123,1],[123,1],[123,1],[123,1],[123,1]],performAction:function(an,Jn,Cn,ze,$n,pt,ii){var Zt=pt.length-1;switch($n){case 5:ze.parseDirective("%%{","open_directive");break;case 6:ze.parseDirective(pt[Zt],"type_directive");break;case 7:pt[Zt]=pt[Zt].trim().replace(/'/g,'"'),ze.parseDirective(pt[Zt],"arg_directive");break;case 8:ze.parseDirective("}%%","close_directive","flowchart");break;case 10:case 36:case 37:case 38:case 39:case 40:this.$=[];break;case 11:pt[Zt]!==[]&&pt[Zt-1].push(pt[Zt]),this.$=pt[Zt-1];break;case 12:case 79:case 81:case 93:case 149:case 151:case 152:case 75:case 147:this.$=pt[Zt];break;case 19:ze.setDirection("TB"),this.$="TB";break;case 20:ze.setDirection(pt[Zt-1]),this.$=pt[Zt-1];break;case 35:this.$=pt[Zt-1].nodes;break;case 41:this.$=ze.addSubGraph(pt[Zt-6],pt[Zt-1],pt[Zt-4]);break;case 42:this.$=ze.addSubGraph(pt[Zt-3],pt[Zt-1],pt[Zt-3]);break;case 43:this.$=ze.addSubGraph(void 0,pt[Zt-1],void 0);break;case 48:ze.addLink(pt[Zt-2].stmt,pt[Zt],pt[Zt-1]),this.$={stmt:pt[Zt],nodes:pt[Zt].concat(pt[Zt-2].nodes)};break;case 49:ze.addLink(pt[Zt-3].stmt,pt[Zt-1],pt[Zt-2]),this.$={stmt:pt[Zt-1],nodes:pt[Zt-1].concat(pt[Zt-3].nodes)};break;case 50:this.$={stmt:pt[Zt-1],nodes:pt[Zt-1]};break;case 51:this.$={stmt:pt[Zt],nodes:pt[Zt]};break;case 52:case 120:case 122:this.$=[pt[Zt]];break;case 53:this.$=pt[Zt-4].concat(pt[Zt]);break;case 54:this.$=[pt[Zt-2]],ze.setClass(pt[Zt-2],pt[Zt]);break;case 55:this.$=pt[Zt-3],ze.addVertex(pt[Zt-3],pt[Zt-1],"square");break;case 56:this.$=pt[Zt-3],ze.addVertex(pt[Zt-3],pt[Zt-1],"doublecircle");break;case 57:this.$=pt[Zt-5],ze.addVertex(pt[Zt-5],pt[Zt-2],"circle");break;case 58:this.$=pt[Zt-3],ze.addVertex(pt[Zt-3],pt[Zt-1],"ellipse");break;case 59:this.$=pt[Zt-3],ze.addVertex(pt[Zt-3],pt[Zt-1],"stadium");break;case 60:this.$=pt[Zt-3],ze.addVertex(pt[Zt-3],pt[Zt-1],"subroutine");break;case 61:this.$=pt[Zt-7],ze.addVertex(pt[Zt-7],pt[Zt-1],"rect",void 0,void 0,void 0,Object.fromEntries([[pt[Zt-5],pt[Zt-3]]]));break;case 62:this.$=pt[Zt-3],ze.addVertex(pt[Zt-3],pt[Zt-1],"cylinder");break;case 63:this.$=pt[Zt-3],ze.addVertex(pt[Zt-3],pt[Zt-1],"round");break;case 64:this.$=pt[Zt-3],ze.addVertex(pt[Zt-3],pt[Zt-1],"diamond");break;case 65:this.$=pt[Zt-5],ze.addVertex(pt[Zt-5],pt[Zt-2],"hexagon");break;case 66:this.$=pt[Zt-3],ze.addVertex(pt[Zt-3],pt[Zt-1],"odd");break;case 67:this.$=pt[Zt-3],ze.addVertex(pt[Zt-3],pt[Zt-1],"trapezoid");break;case 68:this.$=pt[Zt-3],ze.addVertex(pt[Zt-3],pt[Zt-1],"inv_trapezoid");break;case 69:this.$=pt[Zt-3],ze.addVertex(pt[Zt-3],pt[Zt-1],"lean_right");break;case 70:this.$=pt[Zt-3],ze.addVertex(pt[Zt-3],pt[Zt-1],"lean_left");break;case 71:this.$=pt[Zt],ze.addVertex(pt[Zt]);break;case 72:pt[Zt-1].text=pt[Zt],this.$=pt[Zt-1];break;case 73:case 74:pt[Zt-2].text=pt[Zt-1],this.$=pt[Zt-2];break;case 76:var ki=ze.destructLink(pt[Zt],pt[Zt-2]);this.$={type:ki.type,stroke:ki.stroke,length:ki.length,text:pt[Zt-1]};break;case 77:ki=ze.destructLink(pt[Zt]),this.$={type:ki.type,stroke:ki.stroke,length:ki.length};break;case 78:this.$=pt[Zt-1];break;case 80:case 94:case 150:case 148:this.$=pt[Zt-1]+""+pt[Zt];break;case 95:case 96:this.$=pt[Zt-4],ze.addClass(pt[Zt-2],pt[Zt]);break;case 97:this.$=pt[Zt-4],ze.setClass(pt[Zt-2],pt[Zt]);break;case 98:case 106:this.$=pt[Zt-1],ze.setClickEvent(pt[Zt-1],pt[Zt]);break;case 99:case 107:this.$=pt[Zt-3],ze.setClickEvent(pt[Zt-3],pt[Zt-2]),ze.setTooltip(pt[Zt-3],pt[Zt]);break;case 100:this.$=pt[Zt-2],ze.setClickEvent(pt[Zt-2],pt[Zt-1],pt[Zt]);break;case 101:this.$=pt[Zt-4],ze.setClickEvent(pt[Zt-4],pt[Zt-3],pt[Zt-2]),ze.setTooltip(pt[Zt-4],pt[Zt]);break;case 102:case 108:this.$=pt[Zt-1],ze.setLink(pt[Zt-1],pt[Zt]);break;case 103:case 109:this.$=pt[Zt-3],ze.setLink(pt[Zt-3],pt[Zt-2]),ze.setTooltip(pt[Zt-3],pt[Zt]);break;case 104:case 110:this.$=pt[Zt-3],ze.setLink(pt[Zt-3],pt[Zt-2],pt[Zt]);break;case 105:case 111:this.$=pt[Zt-5],ze.setLink(pt[Zt-5],pt[Zt-4],pt[Zt]),ze.setTooltip(pt[Zt-5],pt[Zt-2]);break;case 112:this.$=pt[Zt-4],ze.addVertex(pt[Zt-2],void 0,void 0,pt[Zt]);break;case 113:case 115:this.$=pt[Zt-4],ze.updateLink(pt[Zt-2],pt[Zt]);break;case 114:this.$=pt[Zt-4],ze.updateLink([pt[Zt-2]],pt[Zt]);break;case 116:this.$=pt[Zt-8],ze.updateLinkInterpolate([pt[Zt-6]],pt[Zt-2]),ze.updateLink([pt[Zt-6]],pt[Zt]);break;case 117:this.$=pt[Zt-8],ze.updateLinkInterpolate(pt[Zt-6],pt[Zt-2]),ze.updateLink(pt[Zt-6],pt[Zt]);break;case 118:this.$=pt[Zt-6],ze.updateLinkInterpolate([pt[Zt-4]],pt[Zt]);break;case 119:this.$=pt[Zt-6],ze.updateLinkInterpolate(pt[Zt-4],pt[Zt]);break;case 121:case 123:pt[Zt-2].push(pt[Zt]),this.$=pt[Zt-2];break;case 125:this.$=pt[Zt-1]+pt[Zt];break;case 153:this.$="v";break;case 154:this.$="-";break;case 155:this.$={stmt:"dir",value:"TB"};break;case 156:this.$={stmt:"dir",value:"BT"};break;case 157:this.$={stmt:"dir",value:"RL"};break;case 158:this.$={stmt:"dir",value:"LR"}}},table:[{3:1,4:2,5:3,6:5,12:x,16:4,21:g,22:k,24:E},{1:[3]},{1:[2,1]},{3:10,4:2,5:3,6:5,12:x,16:4,21:g,22:k,24:E},h(A,I,{17:11}),{7:12,13:[1,13]},{16:14,21:g,22:k,24:E},{16:15,21:g,22:k,24:E},{25:[1,16],26:[1,17]},{13:[2,5]},{1:[2,2]},{1:[2,9],18:18,19:19,20:O,21:Y,22:H,23:X,32:24,33:25,34:26,35:27,36:28,37:29,38:Z,43:31,45:32,46:42,47:et,49:43,61:Q,62:gt,81:ht,82:xt,83:Tt,84:ne,85:bt,86:at,90:nt,100:Dt,101:Lt,104:tt,106:lt,107:q,111:44,113:Ut,114:G,115:me,116:ve,117:jt,118:ie,119:he,120:pe,121:le,122:oe},{8:61,10:[1,62],15:wn},h([10,15],[2,6]),h(A,[2,17]),h(A,[2,18]),h(A,[2,19]),{20:[1,65],21:[1,66],22:fe,27:64,30:67},h(ae,[2,11]),h(ae,[2,12]),h(ae,[2,13]),h(ae,[2,14]),h(ae,[2,15]),h(ae,[2,16]),{9:69,20:Qt,21:St,23:Kt,44:70,73:74,76:[1,75],77:[1,76]},{9:77,20:Qt,21:St,23:Kt},{9:78,20:Qt,21:St,23:Kt},{9:79,20:Qt,21:St,23:Kt},{9:80,20:Qt,21:St,23:Kt},{9:81,20:Qt,21:St,23:Kt},{9:83,20:Qt,21:St,22:[1,82],23:Kt},h(ae,[2,44]),h(mt,[2,51],{30:84,22:fe}),{22:[1,85]},{22:[1,86]},{22:[1,87]},{22:[1,88]},{26:Ht,47:kt,61:It,62:se,79:[1,92],86:Se,92:91,93:[1,89],95:[1,90],100:be,101:Ae,104:cn,106:De,107:Be,110:95,112:93,117:Le,118:Ze,119:Ke,120:Je,121:$e,122:Ue},h(ae,[2,155]),h(ae,[2,156]),h(ae,[2,157]),h(ae,[2,158]),h(Yn,[2,52],{48:[1,111]}),h(Me,[2,71],{111:124,40:[1,112],47:et,50:[1,113],52:[1,114],54:[1,115],56:[1,116],58:[1,117],60:[1,118],61:Q,62:gt,64:[1,119],66:[1,120],68:[1,121],69:[1,122],71:[1,123],86:at,90:nt,100:Dt,101:Lt,104:tt,106:lt,107:q,117:jt,118:ie,119:he,120:pe,121:le,122:oe}),h(un,[2,147]),h(un,[2,172]),h(un,[2,173]),h(un,[2,174]),h(un,[2,175]),h(un,[2,176]),h(un,[2,177]),h(un,[2,178]),h(un,[2,179]),h(un,[2,180]),h(un,[2,181]),h(un,[2,182]),h(un,[2,183]),h(un,[2,184]),h(un,[2,185]),h(un,[2,186]),h(un,[2,187]),{9:125,20:Qt,21:St,23:Kt},{11:126,14:[1,127]},h(gn,[2,8]),h(A,[2,20]),h(A,[2,26]),h(A,[2,27]),{21:[1,128]},h(kr,[2,34],{30:129,22:fe}),h(ae,[2,35]),{45:130,46:42,47:et,49:43,61:Q,62:gt,86:at,90:nt,100:Dt,101:Lt,104:tt,106:lt,107:q,111:44,117:jt,118:ie,119:he,120:pe,121:le,122:oe},h(kn,[2,45]),h(kn,[2,46]),h(kn,[2,47]),h(sr,[2,75],{74:131,63:[1,133],75:[1,132]}),{22:rn,24:ln,26:Ye,38:mn,39:134,42:bn,47:kt,61:It,62:se,68:zn,76:Un,78:135,79:Cr,80:146,81:Ln,82:Sn,83:Fn,84:qn,85:Vn,86:Xn,87:Tn,89:137,90:In,100:be,101:Ae,104:An,106:De,107:Be,108:hn,109:Hn,110:143,117:Le,118:Ze,119:Ke,120:Je,121:$e,122:Ue},h([47,61,62,63,75,86,90,100,101,104,106,107,117,118,119,120,121,122],[2,77]),h(ae,[2,36]),h(ae,[2,37]),h(ae,[2,38]),h(ae,[2,39]),h(ae,[2,40]),{22:rn,24:ln,26:Ye,38:mn,39:158,42:bn,47:kt,61:It,62:se,68:zn,76:Un,78:135,79:Cr,80:146,81:Ln,82:Sn,83:Fn,84:qn,85:Vn,86:Xn,87:Tn,89:137,90:In,100:be,101:Ae,104:An,106:De,107:Be,108:hn,109:Hn,110:143,117:Le,118:Ze,119:Ke,120:Je,121:$e,122:Ue},h(ir,I,{17:159}),h(mt,[2,50],{47:ra}),{26:Ht,47:kt,61:It,62:se,86:Se,92:161,97:[1,162],100:be,101:Ae,104:cn,106:De,107:Be,110:95,112:93,117:Le,118:Ze,119:Ke,120:Je,121:$e,122:Ue},{90:[1,163],98:164,100:[1,165]},{26:Ht,47:kt,61:It,62:se,86:Se,90:[1,166],92:167,100:be,101:Ae,104:cn,106:De,107:Be,110:95,112:93,117:Le,118:Ze,119:Ke,120:Je,121:$e,122:Ue},{26:Ht,47:kt,61:It,62:se,86:Se,92:168,100:be,101:Ae,104:cn,106:De,107:Be,110:95,112:93,117:Le,118:Ze,119:Ke,120:Je,121:$e,122:Ue},h(gn,[2,98],{22:[1,169],94:[1,170]}),h(gn,[2,102],{22:[1,171]}),h(gn,[2,106],{110:95,112:173,22:[1,172],26:Ht,47:kt,61:It,62:se,86:Se,100:be,101:Ae,104:cn,106:De,107:Be,117:Le,118:Ze,119:Ke,120:Je,121:$e,122:Ue}),h(gn,[2,108],{22:[1,174]}),h(gr,[2,149]),h(gr,[2,151]),h(gr,[2,152]),h(gr,[2,153]),h(gr,[2,154]),h(Bn,[2,159]),h(Bn,[2,160]),h(Bn,[2,161]),h(Bn,[2,162]),h(Bn,[2,163]),h(Bn,[2,164]),h(Bn,[2,165]),h(Bn,[2,166]),h(Bn,[2,167]),h(Bn,[2,168]),h(Bn,[2,169]),h(Bn,[2,170]),h(Bn,[2,171]),{47:et,49:175,61:Q,62:gt,86:at,90:nt,100:Dt,101:Lt,104:tt,106:lt,107:q,111:44,117:jt,118:ie,119:he,120:pe,121:le,122:oe},{22:rn,24:ln,26:Ye,38:mn,39:176,42:bn,47:kt,61:It,62:se,68:zn,76:Un,78:135,79:Cr,80:146,81:Ln,82:Sn,83:Fn,84:qn,85:Vn,86:Xn,87:Tn,89:137,90:In,100:be,101:Ae,104:An,106:De,107:Be,108:hn,109:Hn,110:143,117:Le,118:Ze,119:Ke,120:Je,121:$e,122:Ue},{22:rn,24:ln,26:Ye,38:mn,39:177,42:bn,47:kt,61:It,62:se,68:zn,76:Un,78:135,79:Cr,80:146,81:Ln,82:Sn,83:Fn,84:qn,85:Vn,86:Xn,87:Tn,89:137,90:In,100:be,101:Ae,104:An,106:De,107:Be,108:hn,109:Hn,110:143,117:Le,118:Ze,119:Ke,120:Je,121:$e,122:Ue},{22:rn,24:ln,26:Ye,38:mn,39:179,42:bn,47:kt,52:[1,178],61:It,62:se,68:zn,76:Un,78:135,79:Cr,80:146,81:Ln,82:Sn,83:Fn,84:qn,85:Vn,86:Xn,87:Tn,89:137,90:In,100:be,101:Ae,104:An,106:De,107:Be,108:hn,109:Hn,110:143,117:Le,118:Ze,119:Ke,120:Je,121:$e,122:Ue},{22:rn,24:ln,26:Ye,38:mn,39:180,42:bn,47:kt,61:It,62:se,68:zn,76:Un,78:135,79:Cr,80:146,81:Ln,82:Sn,83:Fn,84:qn,85:Vn,86:Xn,87:Tn,89:137,90:In,100:be,101:Ae,104:An,106:De,107:Be,108:hn,109:Hn,110:143,117:Le,118:Ze,119:Ke,120:Je,121:$e,122:Ue},{22:rn,24:ln,26:Ye,38:mn,39:181,42:bn,47:kt,61:It,62:se,68:zn,76:Un,78:135,79:Cr,80:146,81:Ln,82:Sn,83:Fn,84:qn,85:Vn,86:Xn,87:Tn,89:137,90:In,100:be,101:Ae,104:An,106:De,107:Be,108:hn,109:Hn,110:143,117:Le,118:Ze,119:Ke,120:Je,121:$e,122:Ue},{22:rn,24:ln,26:Ye,38:mn,39:182,42:bn,47:kt,61:It,62:se,68:zn,76:Un,78:135,79:Cr,80:146,81:Ln,82:Sn,83:Fn,84:qn,85:Vn,86:Xn,87:Tn,89:137,90:In,100:be,101:Ae,104:An,106:De,107:Be,108:hn,109:Hn,110:143,117:Le,118:Ze,119:Ke,120:Je,121:$e,122:Ue},{61:[1,183]},{22:rn,24:ln,26:Ye,38:mn,39:184,42:bn,47:kt,61:It,62:se,68:zn,76:Un,78:135,79:Cr,80:146,81:Ln,82:Sn,83:Fn,84:qn,85:Vn,86:Xn,87:Tn,89:137,90:In,100:be,101:Ae,104:An,106:De,107:Be,108:hn,109:Hn,110:143,117:Le,118:Ze,119:Ke,120:Je,121:$e,122:Ue},{22:rn,24:ln,26:Ye,38:mn,39:185,42:bn,47:kt,61:It,62:se,66:[1,186],68:zn,76:Un,78:135,79:Cr,80:146,81:Ln,82:Sn,83:Fn,84:qn,85:Vn,86:Xn,87:Tn,89:137,90:In,100:be,101:Ae,104:An,106:De,107:Be,108:hn,109:Hn,110:143,117:Le,118:Ze,119:Ke,120:Je,121:$e,122:Ue},{22:rn,24:ln,26:Ye,38:mn,39:187,42:bn,47:kt,61:It,62:se,68:zn,76:Un,78:135,79:Cr,80:146,81:Ln,82:Sn,83:Fn,84:qn,85:Vn,86:Xn,87:Tn,89:137,90:In,100:be,101:Ae,104:An,106:De,107:Be,108:hn,109:Hn,110:143,117:Le,118:Ze,119:Ke,120:Je,121:$e,122:Ue},{22:rn,24:ln,26:Ye,38:mn,39:188,42:bn,47:kt,61:It,62:se,68:zn,76:Un,78:135,79:Cr,80:146,81:Ln,82:Sn,83:Fn,84:qn,85:Vn,86:Xn,87:Tn,89:137,90:In,100:be,101:Ae,104:An,106:De,107:Be,108:hn,109:Hn,110:143,117:Le,118:Ze,119:Ke,120:Je,121:$e,122:Ue},{22:rn,24:ln,26:Ye,38:mn,39:189,42:bn,47:kt,61:It,62:se,68:zn,76:Un,78:135,79:Cr,80:146,81:Ln,82:Sn,83:Fn,84:qn,85:Vn,86:Xn,87:Tn,89:137,90:In,100:be,101:Ae,104:An,106:De,107:Be,108:hn,109:Hn,110:143,117:Le,118:Ze,119:Ke,120:Je,121:$e,122:Ue},h(un,[2,148]),h(io,[2,3]),{8:190,15:wn},{15:[2,7]},h(A,[2,28]),h(kr,[2,33]),h(mt,[2,48],{30:191,22:fe}),h(sr,[2,72],{22:[1,192]}),{22:[1,193]},{22:rn,24:ln,26:Ye,38:mn,39:194,42:bn,47:kt,61:It,62:se,68:zn,76:Un,78:135,79:Cr,80:146,81:Ln,82:Sn,83:Fn,84:qn,85:Vn,86:Xn,87:Tn,89:137,90:In,100:be,101:Ae,104:An,106:De,107:Be,108:hn,109:Hn,110:143,117:Le,118:Ze,119:Ke,120:Je,121:$e,122:Ue},{22:rn,24:ln,26:Ye,38:mn,42:bn,47:kt,61:It,62:se,68:zn,76:Un,77:[1,195],78:196,80:146,81:Ln,82:Sn,83:Fn,84:qn,85:Vn,86:Xn,87:Tn,89:137,90:In,100:be,101:Ae,104:An,106:De,107:Be,108:hn,109:Hn,110:143,117:Le,118:Ze,119:Ke,120:Je,121:$e,122:Ue},h(Bn,[2,79]),h(Bn,[2,81]),h(Bn,[2,137]),h(Bn,[2,138]),h(Bn,[2,139]),h(Bn,[2,140]),h(Bn,[2,141]),h(Bn,[2,142]),h(Bn,[2,143]),h(Bn,[2,144]),h(Bn,[2,145]),h(Bn,[2,146]),h(Bn,[2,82]),h(Bn,[2,83]),h(Bn,[2,84]),h(Bn,[2,85]),h(Bn,[2,86]),h(Bn,[2,87]),h(Bn,[2,88]),h(Bn,[2,89]),h(Bn,[2,90]),h(Bn,[2,91]),h(Bn,[2,92]),{9:198,20:Qt,21:St,22:rn,23:Kt,24:ln,26:Ye,38:mn,40:[1,197],42:bn,47:kt,61:It,62:se,68:zn,76:Un,78:196,80:146,81:Ln,82:Sn,83:Fn,84:qn,85:Vn,86:Xn,87:Tn,89:137,90:In,100:be,101:Ae,104:An,106:De,107:Be,108:hn,109:Hn,110:143,117:Le,118:Ze,119:Ke,120:Je,121:$e,122:Ue},{18:18,19:19,20:O,21:Y,22:H,23:X,32:24,33:25,34:26,35:27,36:28,37:29,38:Z,42:[1,199],43:31,45:32,46:42,47:et,49:43,61:Q,62:gt,81:ht,82:xt,83:Tt,84:ne,85:bt,86:at,90:nt,100:Dt,101:Lt,104:tt,106:lt,107:q,111:44,113:Ut,114:G,115:me,116:ve,117:jt,118:ie,119:he,120:pe,121:le,122:oe},{22:fe,30:200},{22:[1,201],26:Ht,47:kt,61:It,62:se,86:Se,100:be,101:Ae,104:cn,106:De,107:Be,110:95,112:173,117:Le,118:Ze,119:Ke,120:Je,121:$e,122:Ue},{22:[1,202]},{22:[1,203]},{22:[1,204],101:[1,205]},h(Ta,[2,120]),{22:[1,206]},{22:[1,207],26:Ht,47:kt,61:It,62:se,86:Se,100:be,101:Ae,104:cn,106:De,107:Be,110:95,112:173,117:Le,118:Ze,119:Ke,120:Je,121:$e,122:Ue},{22:[1,208],26:Ht,47:kt,61:It,62:se,86:Se,100:be,101:Ae,104:cn,106:De,107:Be,110:95,112:173,117:Le,118:Ze,119:Ke,120:Je,121:$e,122:Ue},{79:[1,209]},h(gn,[2,100],{22:[1,210]}),{79:[1,211],96:[1,212]},{79:[1,213]},h(gr,[2,150]),{79:[1,214],96:[1,215]},h(Yn,[2,54],{111:124,47:et,61:Q,62:gt,86:at,90:nt,100:Dt,101:Lt,104:tt,106:lt,107:q,117:jt,118:ie,119:he,120:pe,121:le,122:oe}),{22:rn,24:ln,26:Ye,38:mn,41:[1,216],42:bn,47:kt,61:It,62:se,68:zn,76:Un,78:196,80:146,81:Ln,82:Sn,83:Fn,84:qn,85:Vn,86:Xn,87:Tn,89:137,90:In,100:be,101:Ae,104:An,106:De,107:Be,108:hn,109:Hn,110:143,117:Le,118:Ze,119:Ke,120:Je,121:$e,122:Ue},{22:rn,24:ln,26:Ye,38:mn,42:bn,47:kt,51:[1,217],61:It,62:se,68:zn,76:Un,78:196,80:146,81:Ln,82:Sn,83:Fn,84:qn,85:Vn,86:Xn,87:Tn,89:137,90:In,100:be,101:Ae,104:An,106:De,107:Be,108:hn,109:Hn,110:143,117:Le,118:Ze,119:Ke,120:Je,121:$e,122:Ue},{22:rn,24:ln,26:Ye,38:mn,39:218,42:bn,47:kt,61:It,62:se,68:zn,76:Un,78:135,79:Cr,80:146,81:Ln,82:Sn,83:Fn,84:qn,85:Vn,86:Xn,87:Tn,89:137,90:In,100:be,101:Ae,104:An,106:De,107:Be,108:hn,109:Hn,110:143,117:Le,118:Ze,119:Ke,120:Je,121:$e,122:Ue},{22:rn,24:ln,26:Ye,38:mn,42:bn,47:kt,53:[1,219],61:It,62:se,68:zn,76:Un,78:196,80:146,81:Ln,82:Sn,83:Fn,84:qn,85:Vn,86:Xn,87:Tn,89:137,90:In,100:be,101:Ae,104:An,106:De,107:Be,108:hn,109:Hn,110:143,117:Le,118:Ze,119:Ke,120:Je,121:$e,122:Ue},{22:rn,24:ln,26:Ye,38:mn,42:bn,47:kt,55:[1,220],61:It,62:se,68:zn,76:Un,78:196,80:146,81:Ln,82:Sn,83:Fn,84:qn,85:Vn,86:Xn,87:Tn,89:137,90:In,100:be,101:Ae,104:An,106:De,107:Be,108:hn,109:Hn,110:143,117:Le,118:Ze,119:Ke,120:Je,121:$e,122:Ue},{22:rn,24:ln,26:Ye,38:mn,42:bn,47:kt,57:[1,221],61:It,62:se,68:zn,76:Un,78:196,80:146,81:Ln,82:Sn,83:Fn,84:qn,85:Vn,86:Xn,87:Tn,89:137,90:In,100:be,101:Ae,104:An,106:De,107:Be,108:hn,109:Hn,110:143,117:Le,118:Ze,119:Ke,120:Je,121:$e,122:Ue},{22:rn,24:ln,26:Ye,38:mn,42:bn,47:kt,59:[1,222],61:It,62:se,68:zn,76:Un,78:196,80:146,81:Ln,82:Sn,83:Fn,84:qn,85:Vn,86:Xn,87:Tn,89:137,90:In,100:be,101:Ae,104:An,106:De,107:Be,108:hn,109:Hn,110:143,117:Le,118:Ze,119:Ke,120:Je,121:$e,122:Ue},{62:[1,223]},{22:rn,24:ln,26:Ye,38:mn,42:bn,47:kt,61:It,62:se,65:[1,224],68:zn,76:Un,78:196,80:146,81:Ln,82:Sn,83:Fn,84:qn,85:Vn,86:Xn,87:Tn,89:137,90:In,100:be,101:Ae,104:An,106:De,107:Be,108:hn,109:Hn,110:143,117:Le,118:Ze,119:Ke,120:Je,121:$e,122:Ue},{22:rn,24:ln,26:Ye,38:mn,42:bn,47:kt,61:It,62:se,67:[1,225],68:zn,76:Un,78:196,80:146,81:Ln,82:Sn,83:Fn,84:qn,85:Vn,86:Xn,87:Tn,89:137,90:In,100:be,101:Ae,104:An,106:De,107:Be,108:hn,109:Hn,110:143,117:Le,118:Ze,119:Ke,120:Je,121:$e,122:Ue},{22:rn,24:ln,26:Ye,38:mn,39:226,42:bn,47:kt,61:It,62:se,68:zn,76:Un,78:135,79:Cr,80:146,81:Ln,82:Sn,83:Fn,84:qn,85:Vn,86:Xn,87:Tn,89:137,90:In,100:be,101:Ae,104:An,106:De,107:Be,108:hn,109:Hn,110:143,117:Le,118:Ze,119:Ke,120:Je,121:$e,122:Ue},{22:rn,24:ln,26:Ye,38:mn,41:[1,227],42:bn,47:kt,61:It,62:se,68:zn,76:Un,78:196,80:146,81:Ln,82:Sn,83:Fn,84:qn,85:Vn,86:Xn,87:Tn,89:137,90:In,100:be,101:Ae,104:An,106:De,107:Be,108:hn,109:Hn,110:143,117:Le,118:Ze,119:Ke,120:Je,121:$e,122:Ue},{22:rn,24:ln,26:Ye,38:mn,42:bn,47:kt,61:It,62:se,68:zn,70:[1,228],72:[1,229],76:Un,78:196,80:146,81:Ln,82:Sn,83:Fn,84:qn,85:Vn,86:Xn,87:Tn,89:137,90:In,100:be,101:Ae,104:An,106:De,107:Be,108:hn,109:Hn,110:143,117:Le,118:Ze,119:Ke,120:Je,121:$e,122:Ue},{22:rn,24:ln,26:Ye,38:mn,42:bn,47:kt,61:It,62:se,68:zn,70:[1,231],72:[1,230],76:Un,78:196,80:146,81:Ln,82:Sn,83:Fn,84:qn,85:Vn,86:Xn,87:Tn,89:137,90:In,100:be,101:Ae,104:An,106:De,107:Be,108:hn,109:Hn,110:143,117:Le,118:Ze,119:Ke,120:Je,121:$e,122:Ue},{9:232,20:Qt,21:St,23:Kt},h(mt,[2,49],{47:ra}),h(sr,[2,74]),h(sr,[2,73]),{22:rn,24:ln,26:Ye,38:mn,42:bn,47:kt,61:It,62:se,63:[1,233],68:zn,76:Un,78:196,80:146,81:Ln,82:Sn,83:Fn,84:qn,85:Vn,86:Xn,87:Tn,89:137,90:In,100:be,101:Ae,104:An,106:De,107:Be,108:hn,109:Hn,110:143,117:Le,118:Ze,119:Ke,120:Je,121:$e,122:Ue},h(sr,[2,76]),h(Bn,[2,80]),{22:rn,24:ln,26:Ye,38:mn,39:234,42:bn,47:kt,61:It,62:se,68:zn,76:Un,78:135,79:Cr,80:146,81:Ln,82:Sn,83:Fn,84:qn,85:Vn,86:Xn,87:Tn,89:137,90:In,100:be,101:Ae,104:An,106:De,107:Be,108:hn,109:Hn,110:143,117:Le,118:Ze,119:Ke,120:Je,121:$e,122:Ue},h(ir,I,{17:235}),h(ae,[2,43]),{46:236,47:et,49:43,61:Q,62:gt,86:at,90:nt,100:Dt,101:Lt,104:tt,106:lt,107:q,111:44,117:jt,118:ie,119:he,120:pe,121:le,122:oe},{22:Vr,61:Gr,62:Fr,81:Er,91:237,97:Xr,100:Ur,102:238,103:239,104:qr,105:Dr,106:li,107:hi,108:cr},{22:Vr,61:Gr,62:Fr,81:Er,91:251,97:Xr,100:Ur,102:238,103:239,104:qr,105:Dr,106:li,107:hi,108:cr},{22:Vr,61:Gr,62:Fr,81:Er,91:252,97:Xr,99:[1,253],100:Ur,102:238,103:239,104:qr,105:Dr,106:li,107:hi,108:cr},{22:Vr,61:Gr,62:Fr,81:Er,91:254,97:Xr,99:[1,255],100:Ur,102:238,103:239,104:qr,105:Dr,106:li,107:hi,108:cr},{100:[1,256]},{22:Vr,61:Gr,62:Fr,81:Er,91:257,97:Xr,100:Ur,102:238,103:239,104:qr,105:Dr,106:li,107:hi,108:cr},{22:Vr,61:Gr,62:Fr,81:Er,91:258,97:Xr,100:Ur,102:238,103:239,104:qr,105:Dr,106:li,107:hi,108:cr},{26:Ht,47:kt,61:It,62:se,86:Se,92:259,100:be,101:Ae,104:cn,106:De,107:Be,110:95,112:93,117:Le,118:Ze,119:Ke,120:Je,121:$e,122:Ue},h(gn,[2,99]),{79:[1,260]},h(gn,[2,103],{22:[1,261]}),h(gn,[2,104]),h(gn,[2,107]),h(gn,[2,109],{22:[1,262]}),h(gn,[2,110]),h(Me,[2,55]),h(Me,[2,56]),{22:rn,24:ln,26:Ye,38:mn,42:bn,47:kt,53:[1,263],61:It,62:se,68:zn,76:Un,78:196,80:146,81:Ln,82:Sn,83:Fn,84:qn,85:Vn,86:Xn,87:Tn,89:137,90:In,100:be,101:Ae,104:An,106:De,107:Be,108:hn,109:Hn,110:143,117:Le,118:Ze,119:Ke,120:Je,121:$e,122:Ue},h(Me,[2,63]),h(Me,[2,58]),h(Me,[2,59]),h(Me,[2,60]),{61:[1,264]},h(Me,[2,62]),h(Me,[2,64]),{22:rn,24:ln,26:Ye,38:mn,42:bn,47:kt,61:It,62:se,67:[1,265],68:zn,76:Un,78:196,80:146,81:Ln,82:Sn,83:Fn,84:qn,85:Vn,86:Xn,87:Tn,89:137,90:In,100:be,101:Ae,104:An,106:De,107:Be,108:hn,109:Hn,110:143,117:Le,118:Ze,119:Ke,120:Je,121:$e,122:Ue},h(Me,[2,66]),h(Me,[2,67]),h(Me,[2,69]),h(Me,[2,68]),h(Me,[2,70]),h(io,[2,4]),h([22,47,61,62,86,90,100,101,104,106,107,117,118,119,120,121,122],[2,78]),{22:rn,24:ln,26:Ye,38:mn,41:[1,266],42:bn,47:kt,61:It,62:se,68:zn,76:Un,78:196,80:146,81:Ln,82:Sn,83:Fn,84:qn,85:Vn,86:Xn,87:Tn,89:137,90:In,100:be,101:Ae,104:An,106:De,107:Be,108:hn,109:Hn,110:143,117:Le,118:Ze,119:Ke,120:Je,121:$e,122:Ue},{18:18,19:19,20:O,21:Y,22:H,23:X,32:24,33:25,34:26,35:27,36:28,37:29,38:Z,42:[1,267],43:31,45:32,46:42,47:et,49:43,61:Q,62:gt,81:ht,82:xt,83:Tt,84:ne,85:bt,86:at,90:nt,100:Dt,101:Lt,104:tt,106:lt,107:q,111:44,113:Ut,114:G,115:me,116:ve,117:jt,118:ie,119:he,120:pe,121:le,122:oe},h(Yn,[2,53]),h(gn,[2,112],{101:Hr}),h(ia,[2,122],{103:269,22:Vr,61:Gr,62:Fr,81:Er,97:Xr,100:Ur,104:qr,105:Dr,106:li,107:hi,108:cr}),h(Lr,[2,124]),h(Lr,[2,126]),h(Lr,[2,127]),h(Lr,[2,128]),h(Lr,[2,129]),h(Lr,[2,130]),h(Lr,[2,131]),h(Lr,[2,132]),h(Lr,[2,133]),h(Lr,[2,134]),h(Lr,[2,135]),h(Lr,[2,136]),h(gn,[2,113],{101:Hr}),h(gn,[2,114],{101:Hr}),{22:[1,270]},h(gn,[2,115],{101:Hr}),{22:[1,271]},h(Ta,[2,121]),h(gn,[2,95],{101:Hr}),h(gn,[2,96],{101:Hr}),h(gn,[2,97],{110:95,112:173,26:Ht,47:kt,61:It,62:se,86:Se,100:be,101:Ae,104:cn,106:De,107:Be,117:Le,118:Ze,119:Ke,120:Je,121:$e,122:Ue}),h(gn,[2,101]),{96:[1,272]},{96:[1,273]},{53:[1,274]},{63:[1,275]},{67:[1,276]},{9:277,20:Qt,21:St,23:Kt},h(ae,[2,42]),{22:Vr,61:Gr,62:Fr,81:Er,97:Xr,100:Ur,102:278,103:239,104:qr,105:Dr,106:li,107:hi,108:cr},h(Lr,[2,125]),{26:Ht,47:kt,61:It,62:se,86:Se,92:279,100:be,101:Ae,104:cn,106:De,107:Be,110:95,112:93,117:Le,118:Ze,119:Ke,120:Je,121:$e,122:Ue},{26:Ht,47:kt,61:It,62:se,86:Se,92:280,100:be,101:Ae,104:cn,106:De,107:Be,110:95,112:93,117:Le,118:Ze,119:Ke,120:Je,121:$e,122:Ue},h(gn,[2,105]),h(gn,[2,111]),h(Me,[2,57]),{22:rn,24:ln,26:Ye,38:mn,39:281,42:bn,47:kt,61:It,62:se,68:zn,76:Un,78:135,79:Cr,80:146,81:Ln,82:Sn,83:Fn,84:qn,85:Vn,86:Xn,87:Tn,89:137,90:In,100:be,101:Ae,104:An,106:De,107:Be,108:hn,109:Hn,110:143,117:Le,118:Ze,119:Ke,120:Je,121:$e,122:Ue},h(Me,[2,65]),h(ir,I,{17:282}),h(ia,[2,123],{103:269,22:Vr,61:Gr,62:Fr,81:Er,97:Xr,100:Ur,104:qr,105:Dr,106:li,107:hi,108:cr}),h(gn,[2,118],{110:95,112:173,22:[1,283],26:Ht,47:kt,61:It,62:se,86:Se,100:be,101:Ae,104:cn,106:De,107:Be,117:Le,118:Ze,119:Ke,120:Je,121:$e,122:Ue}),h(gn,[2,119],{110:95,112:173,22:[1,284],26:Ht,47:kt,61:It,62:se,86:Se,100:be,101:Ae,104:cn,106:De,107:Be,117:Le,118:Ze,119:Ke,120:Je,121:$e,122:Ue}),{22:rn,24:ln,26:Ye,38:mn,41:[1,285],42:bn,47:kt,61:It,62:se,68:zn,76:Un,78:196,80:146,81:Ln,82:Sn,83:Fn,84:qn,85:Vn,86:Xn,87:Tn,89:137,90:In,100:be,101:Ae,104:An,106:De,107:Be,108:hn,109:Hn,110:143,117:Le,118:Ze,119:Ke,120:Je,121:$e,122:Ue},{18:18,19:19,20:O,21:Y,22:H,23:X,32:24,33:25,34:26,35:27,36:28,37:29,38:Z,42:[1,286],43:31,45:32,46:42,47:et,49:43,61:Q,62:gt,81:ht,82:xt,83:Tt,84:ne,85:bt,86:at,90:nt,100:Dt,101:Lt,104:tt,106:lt,107:q,111:44,113:Ut,114:G,115:me,116:ve,117:jt,118:ie,119:he,120:pe,121:le,122:oe},{22:Vr,61:Gr,62:Fr,81:Er,91:287,97:Xr,100:Ur,102:238,103:239,104:qr,105:Dr,106:li,107:hi,108:cr},{22:Vr,61:Gr,62:Fr,81:Er,91:288,97:Xr,100:Ur,102:238,103:239,104:qr,105:Dr,106:li,107:hi,108:cr},h(Me,[2,61]),h(ae,[2,41]),h(gn,[2,116],{101:Hr}),h(gn,[2,117],{101:Hr})],defaultActions:{2:[2,1],9:[2,5],10:[2,2],127:[2,7]},parseError:function(an,Jn){if(!Jn.recoverable){var Cn=new Error(an);throw Cn.hash=Jn,Cn}this.trace(an)},parse:function(an){var Jn=this,Cn=[0],ze=[],$n=[null],pt=[],ii=this.table,Zt="",ki=0,go=0,Ca=0,Ui=2,Yo=1,zo=pt.slice.call(arguments,1),Pr=Object.create(this.lexer),qi={yy:{}};for(var Dn in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Dn)&&(qi.yy[Dn]=this.yy[Dn]);Pr.setInput(an,qi.yy),qi.yy.lexer=Pr,qi.yy.parser=this,Pr.yylloc===void 0&&(Pr.yylloc={});var oa=Pr.yylloc;pt.push(oa);var sa=Pr.options&&Pr.options.ranges;function $r(){var Jr;return typeof(Jr=ze.pop()||Pr.lex()||Yo)!="number"&&(Jr instanceof Array&&(Jr=(ze=Jr).pop()),Jr=Jn.symbols_[Jr]||Jr),Jr}typeof qi.yy.parseError=="function"?this.parseError=qi.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var ar,di,Zr,Br,Kr,Li,mr,Hi,Bi,Ti={};;){if(Zr=Cn[Cn.length-1],this.defaultActions[Zr]?Br=this.defaultActions[Zr]:(ar==null&&(ar=$r()),Br=ii[Zr]&&ii[Zr][ar]),Br===void 0||!Br.length||!Br[0]){var Ya="";for(Li in Bi=[],ii[Zr])this.terminals_[Li]&&Li>Ui&&Bi.push("'"+this.terminals_[Li]+"'");Ya=Pr.showPosition?"Parse error on line "+(ki+1)+`: +`+Pr.showPosition()+` +Expecting `+Bi.join(", ")+", got '"+(this.terminals_[ar]||ar)+"'":"Parse error on line "+(ki+1)+": Unexpected "+(ar==Yo?"end of input":"'"+(this.terminals_[ar]||ar)+"'"),this.parseError(Ya,{text:Pr.match,token:this.terminals_[ar]||ar,line:Pr.yylineno,loc:oa,expected:Bi})}if(Br[0]instanceof Array&&Br.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Zr+", token: "+ar);switch(Br[0]){case 1:Cn.push(ar),$n.push(Pr.yytext),pt.push(Pr.yylloc),Cn.push(Br[1]),ar=null,di?(ar=di,di=null):(go=Pr.yyleng,Zt=Pr.yytext,ki=Pr.yylineno,oa=Pr.yylloc,Ca>0);break;case 2:if(mr=this.productions_[Br[1]][1],Ti.$=$n[$n.length-mr],Ti._$={first_line:pt[pt.length-(mr||1)].first_line,last_line:pt[pt.length-1].last_line,first_column:pt[pt.length-(mr||1)].first_column,last_column:pt[pt.length-1].last_column},sa&&(Ti._$.range=[pt[pt.length-(mr||1)].range[0],pt[pt.length-1].range[1]]),(Kr=this.performAction.apply(Ti,[Zt,go,ki,qi.yy,Br[1],$n,pt].concat(zo)))!==void 0)return Kr;mr&&(Cn=Cn.slice(0,-1*mr*2),$n=$n.slice(0,-1*mr),pt=pt.slice(0,-1*mr)),Cn.push(this.productions_[Br[1]][0]),$n.push(Ti.$),pt.push(Ti._$),Hi=ii[Cn[Cn.length-2]][Cn[Cn.length-1]],Cn.push(Hi);break;case 3:return!0}}return!0}},ao={EOF:1,parseError:function(an,Jn){if(!this.yy.parser)throw new Error(an);this.yy.parser.parseError(an,Jn)},setInput:function(an,Jn){return this.yy=Jn||this.yy||{},this._input=an,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 an=this._input[0];return this.yytext+=an,this.yyleng++,this.offset++,this.match+=an,this.matched+=an,an.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),an},unput:function(an){var Jn=an.length,Cn=an.split(/(?:\r\n?|\n)/g);this._input=an+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-Jn),this.offset-=Jn;var ze=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),Cn.length-1&&(this.yylineno-=Cn.length-1);var $n=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:Cn?(Cn.length===ze.length?this.yylloc.first_column:0)+ze[ze.length-Cn.length].length-Cn[0].length:this.yylloc.first_column-Jn},this.options.ranges&&(this.yylloc.range=[$n[0],$n[0]+this.yyleng-Jn]),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(an){this.unput(this.match.slice(an))},pastInput:function(){var an=this.matched.substr(0,this.matched.length-this.match.length);return(an.length>20?"...":"")+an.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var an=this.match;return an.length<20&&(an+=this._input.substr(0,20-an.length)),(an.substr(0,20)+(an.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var an=this.pastInput(),Jn=new Array(an.length+1).join("-");return an+this.upcomingInput()+` +`+Jn+"^"},test_match:function(an,Jn){var Cn,ze,$n;if(this.options.backtrack_lexer&&($n={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&($n.yylloc.range=this.yylloc.range.slice(0))),(ze=an[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=ze.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:ze?ze[ze.length-1].length-ze[ze.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+an[0].length},this.yytext+=an[0],this.match+=an[0],this.matches=an,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(an[0].length),this.matched+=an[0],Cn=this.performAction.call(this,this.yy,this,Jn,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),Cn)return Cn;if(this._backtrack){for(var pt in $n)this[pt]=$n[pt];return!1}return!1},next:function(){if(this.done)return this.EOF;var an,Jn,Cn,ze;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var $n=this._currentRules(),pt=0;pt<$n.length;pt++)if((Cn=this._input.match(this.rules[$n[pt]]))&&(!Jn||Cn[0].length>Jn[0].length)){if(Jn=Cn,ze=pt,this.options.backtrack_lexer){if((an=this.test_match(Cn,$n[pt]))!==!1)return an;if(this._backtrack){Jn=!1;continue}return!1}if(!this.options.flex)break}return Jn?(an=this.test_match(Jn,$n[ze]))!==!1&&an: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(an){this.conditionStack.push(an)},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(an){return(an=this.conditionStack.length-1-Math.abs(an||0))>=0?this.conditionStack[an]:"INITIAL"},pushState:function(an){this.begin(an)},stateStackSize:function(){return this.conditionStack.length},options:{},performAction:function(an,Jn,Cn,ze){switch(Cn){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:this.begin("string");break;case 8:case 17:case 20:case 23:case 26:this.popState();break;case 9:return"STR";case 10:return 81;case 11:return 90;case 12:return 82;case 13:return 99;case 14:return 83;case 15:return 84;case 16:this.begin("href");break;case 18:return 95;case 19:this.begin("callbackname");break;case 21:this.popState(),this.begin("callbackargs");break;case 22:return 93;case 24:return 94;case 25:this.begin("click");break;case 27:return 85;case 28:case 29:return an.lex.firstGraph()&&this.begin("dir"),24;case 30:return 38;case 31:return 42;case 32:case 33:case 34:case 35:return 96;case 36:return this.popState(),25;case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 46:return this.popState(),26;case 47:return 113;case 48:return 114;case 49:return 115;case 50:return 116;case 51:return 100;case 52:return 106;case 53:return 48;case 54:return 62;case 55:return 47;case 56:return 20;case 57:return 101;case 58:return 121;case 59:case 60:case 61:return 77;case 62:case 63:case 64:return 76;case 65:return 54;case 66:return 55;case 67:return 56;case 68:return 57;case 69:return 58;case 70:return 59;case 71:return 60;case 72:return 64;case 73:return 65;case 74:return 50;case 75:return 51;case 76:return 104;case 77:return 107;case 78:return 122;case 79:return 119;case 80:return 108;case 81:case 82:return 120;case 83:return 109;case 84:return 68;case 85:return 87;case 86:return"SEP";case 87:return 86;case 88:return 61;case 89:return 70;case 90:return 69;case 91:return 72;case 92:return 71;case 93:return 117;case 94:return 118;case 95:return 63;case 96:return 52;case 97:return 53;case 98:return 40;case 99:return 41;case 100:return 66;case 101:return 67;case 102:return 128;case 103:return 21;case 104:return 22;case 105:return 23}},rules:[/^(?:%%\{)/,/^(?:((?:(?!\}%%)[^:.])*))/,/^(?::)/,/^(?:\}%%)/,/^(?:((?:(?!\}%%).|\n)*))/,/^(?:%%(?!\{)[^\n]*)/,/^(?:[^\}]%%[^\n]*)/,/^(?:["])/,/^(?:["])/,/^(?:[^"]*)/,/^(?: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:[23,24],inclusive:!1},callbackname:{rules:[20,21,22],inclusive:!1},href:{rules:[17,18],inclusive:!1},click:{rules:[26,27],inclusive:!1},vertex:{rules:[],inclusive:!1},dir:{rules:[36,37,38,39,40,41,42,43,44,45,46],inclusive:!1},string:{rules:[8,9],inclusive:!1},INITIAL:{rules:[0,5,6,7,10,11,12,13,14,15,16,19,25,28,29,30,31,32,33,34,35,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,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],inclusive:!0}}};function fi(){this.yy={}}return aa.lexer=ao,fi.prototype=aa,aa.Parser=fi,new fi}();M.parser=m,M.Parser=m.Parser,M.parse=function(){return m.parse.apply(m,arguments)},M.main=function(h){h[1]||(console.log("Usage: "+h[0]+" FILE"),process.exit(1));var x=f(5354).readFileSync(f(6470).normalize(h[1]),"utf8");return M.parser.parse(x)},f.c[f.s]===S&&M.main(process.argv.slice(1))},9959:(S,M,f)=>{S=f.nmd(S);var m=function(){var h=function(at,nt,Dt,Lt){for(Dt=Dt||{},Lt=at.length;Lt--;Dt[at[Lt]]=nt);return Dt},x=[1,3],g=[1,5],k=[7,9,11,12,13,14,15,16,17,18,19,20,22,29,34],E=[1,15],A=[1,16],I=[1,17],O=[1,18],Y=[1,19],H=[1,20],X=[1,21],Z=[1,22],et=[1,23],Q=[1,25],gt=[1,27],ht=[1,30],xt=[5,7,9,11,12,13,14,15,16,17,18,19,20,22,29,34],Tt={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,section:20,clickStatement:21,taskTxt:22,taskData:23,openDirective:24,typeDirective:25,closeDirective:26,":":27,argDirective:28,click:29,callbackname:30,callbackargs:31,href:32,clickStatementDebug:33,open_directive:34,type_directive:35,arg_directive:36,close_directive:37,$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:"section",22:"taskTxt",23:"taskData",27:":",29:"click",30:"callbackname",31:"callbackargs",32:"href",34:"open_directive",35:"type_directive",36:"arg_directive",37:"close_directive"},productions_:[0,[3,2],[3,3],[6,0],[6,2],[8,2],[8,1],[8,1],[8,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,2],[10,1],[4,4],[4,6],[21,2],[21,3],[21,3],[21,4],[21,3],[21,4],[21,2],[33,2],[33,3],[33,3],[33,4],[33,3],[33,4],[33,2],[24,1],[25,1],[28,1],[26,1]],performAction:function(at,nt,Dt,Lt,tt,lt,q){var Ut=lt.length-1;switch(tt){case 2:return lt[Ut-1];case 3:case 7:case 8:this.$=[];break;case 4:lt[Ut-1].push(lt[Ut]),this.$=lt[Ut-1];break;case 5:case 6:this.$=lt[Ut];break;case 9:Lt.setDateFormat(lt[Ut].substr(11)),this.$=lt[Ut].substr(11);break;case 10:Lt.enableInclusiveEndDates(),this.$=lt[Ut].substr(18);break;case 11:Lt.TopAxis(),this.$=lt[Ut].substr(8);break;case 12:Lt.setAxisFormat(lt[Ut].substr(11)),this.$=lt[Ut].substr(11);break;case 13:Lt.setExcludes(lt[Ut].substr(9)),this.$=lt[Ut].substr(9);break;case 14:Lt.setIncludes(lt[Ut].substr(9)),this.$=lt[Ut].substr(9);break;case 15:Lt.setTodayMarker(lt[Ut].substr(12)),this.$=lt[Ut].substr(12);break;case 16:Lt.setTitle(lt[Ut].substr(6)),this.$=lt[Ut].substr(6);break;case 17:Lt.addSection(lt[Ut].substr(8)),this.$=lt[Ut].substr(8);break;case 19:Lt.addTask(lt[Ut-1],lt[Ut]),this.$="task";break;case 23:this.$=lt[Ut-1],Lt.setClickEvent(lt[Ut-1],lt[Ut],null);break;case 24:this.$=lt[Ut-2],Lt.setClickEvent(lt[Ut-2],lt[Ut-1],lt[Ut]);break;case 25:this.$=lt[Ut-2],Lt.setClickEvent(lt[Ut-2],lt[Ut-1],null),Lt.setLink(lt[Ut-2],lt[Ut]);break;case 26:this.$=lt[Ut-3],Lt.setClickEvent(lt[Ut-3],lt[Ut-2],lt[Ut-1]),Lt.setLink(lt[Ut-3],lt[Ut]);break;case 27:this.$=lt[Ut-2],Lt.setClickEvent(lt[Ut-2],lt[Ut],null),Lt.setLink(lt[Ut-2],lt[Ut-1]);break;case 28:this.$=lt[Ut-3],Lt.setClickEvent(lt[Ut-3],lt[Ut-1],lt[Ut]),Lt.setLink(lt[Ut-3],lt[Ut-2]);break;case 29:this.$=lt[Ut-1],Lt.setLink(lt[Ut-1],lt[Ut]);break;case 30:case 36:this.$=lt[Ut-1]+" "+lt[Ut];break;case 31:case 32:case 34:this.$=lt[Ut-2]+" "+lt[Ut-1]+" "+lt[Ut];break;case 33:case 35:this.$=lt[Ut-3]+" "+lt[Ut-2]+" "+lt[Ut-1]+" "+lt[Ut];break;case 37:Lt.parseDirective("%%{","open_directive");break;case 38:Lt.parseDirective(lt[Ut],"type_directive");break;case 39:lt[Ut]=lt[Ut].trim().replace(/'/g,'"'),Lt.parseDirective(lt[Ut],"arg_directive");break;case 40:Lt.parseDirective("}%%","close_directive","gantt")}},table:[{3:1,4:2,5:x,24:4,34:g},{1:[3]},{3:6,4:2,5:x,24:4,34:g},h(k,[2,3],{6:7}),{25:8,35:[1,9]},{35:[2,37]},{1:[2,1]},{4:26,7:[1,10],8:11,9:[1,12],10:13,11:[1,14],12:E,13:A,14:I,15:O,16:Y,17:H,18:X,19:Z,20:et,21:24,22:Q,24:4,29:gt,34:g},{26:28,27:[1,29],37:ht},h([27,37],[2,38]),h(k,[2,8],{1:[2,2]}),h(k,[2,4]),{4:26,10:31,12:E,13:A,14:I,15:O,16:Y,17:H,18:X,19:Z,20:et,21:24,22:Q,24:4,29:gt,34:g},h(k,[2,6]),h(k,[2,7]),h(k,[2,9]),h(k,[2,10]),h(k,[2,11]),h(k,[2,12]),h(k,[2,13]),h(k,[2,14]),h(k,[2,15]),h(k,[2,16]),h(k,[2,17]),h(k,[2,18]),{23:[1,32]},h(k,[2,20]),{30:[1,33],32:[1,34]},{11:[1,35]},{28:36,36:[1,37]},{11:[2,40]},h(k,[2,5]),h(k,[2,19]),h(k,[2,23],{31:[1,38],32:[1,39]}),h(k,[2,29],{30:[1,40]}),h(xt,[2,21]),{26:41,37:ht},{37:[2,39]},h(k,[2,24],{32:[1,42]}),h(k,[2,25]),h(k,[2,27],{31:[1,43]}),{11:[1,44]},h(k,[2,26]),h(k,[2,28]),h(xt,[2,22])],defaultActions:{5:[2,37],6:[2,1],30:[2,40],37:[2,39]},parseError:function(at,nt){if(!nt.recoverable){var Dt=new Error(at);throw Dt.hash=nt,Dt}this.trace(at)},parse:function(at){var nt=this,Dt=[0],Lt=[],tt=[null],lt=[],q=this.table,Ut="",G=0,me=0,ve=0,jt=2,ie=1,he=lt.slice.call(arguments,1),pe=Object.create(this.lexer),le={yy:{}};for(var oe in this.yy)Object.prototype.hasOwnProperty.call(this.yy,oe)&&(le.yy[oe]=this.yy[oe]);pe.setInput(at,le.yy),le.yy.lexer=pe,le.yy.parser=this,pe.yylloc===void 0&&(pe.yylloc={});var wn=pe.yylloc;lt.push(wn);var fe=pe.options&&pe.options.ranges;function ae(){var cn;return typeof(cn=Lt.pop()||pe.lex()||ie)!="number"&&(cn instanceof Array&&(cn=(Lt=cn).pop()),cn=nt.symbols_[cn]||cn),cn}typeof le.yy.parseError=="function"?this.parseError=le.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var Qt,St,Kt,mt,Ht,kt,It,se,Se,be={};;){if(Kt=Dt[Dt.length-1],this.defaultActions[Kt]?mt=this.defaultActions[Kt]:(Qt==null&&(Qt=ae()),mt=q[Kt]&&q[Kt][Qt]),mt===void 0||!mt.length||!mt[0]){var Ae="";for(kt in Se=[],q[Kt])this.terminals_[kt]&&kt>jt&&Se.push("'"+this.terminals_[kt]+"'");Ae=pe.showPosition?"Parse error on line "+(G+1)+`: +`+pe.showPosition()+` +Expecting `+Se.join(", ")+", got '"+(this.terminals_[Qt]||Qt)+"'":"Parse error on line "+(G+1)+": Unexpected "+(Qt==ie?"end of input":"'"+(this.terminals_[Qt]||Qt)+"'"),this.parseError(Ae,{text:pe.match,token:this.terminals_[Qt]||Qt,line:pe.yylineno,loc:wn,expected:Se})}if(mt[0]instanceof Array&&mt.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Kt+", token: "+Qt);switch(mt[0]){case 1:Dt.push(Qt),tt.push(pe.yytext),lt.push(pe.yylloc),Dt.push(mt[1]),Qt=null,St?(Qt=St,St=null):(me=pe.yyleng,Ut=pe.yytext,G=pe.yylineno,wn=pe.yylloc,ve>0);break;case 2:if(It=this.productions_[mt[1]][1],be.$=tt[tt.length-It],be._$={first_line:lt[lt.length-(It||1)].first_line,last_line:lt[lt.length-1].last_line,first_column:lt[lt.length-(It||1)].first_column,last_column:lt[lt.length-1].last_column},fe&&(be._$.range=[lt[lt.length-(It||1)].range[0],lt[lt.length-1].range[1]]),(Ht=this.performAction.apply(be,[Ut,me,G,le.yy,mt[1],tt,lt].concat(he)))!==void 0)return Ht;It&&(Dt=Dt.slice(0,-1*It*2),tt=tt.slice(0,-1*It),lt=lt.slice(0,-1*It)),Dt.push(this.productions_[mt[1]][0]),tt.push(be.$),lt.push(be._$),se=q[Dt[Dt.length-2]][Dt[Dt.length-1]],Dt.push(se);break;case 3:return!0}}return!0}},ne={EOF:1,parseError:function(at,nt){if(!this.yy.parser)throw new Error(at);this.yy.parser.parseError(at,nt)},setInput:function(at,nt){return this.yy=nt||this.yy||{},this._input=at,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 at=this._input[0];return this.yytext+=at,this.yyleng++,this.offset++,this.match+=at,this.matched+=at,at.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),at},unput:function(at){var nt=at.length,Dt=at.split(/(?:\r\n?|\n)/g);this._input=at+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-nt),this.offset-=nt;var Lt=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),Dt.length-1&&(this.yylineno-=Dt.length-1);var tt=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:Dt?(Dt.length===Lt.length?this.yylloc.first_column:0)+Lt[Lt.length-Dt.length].length-Dt[0].length:this.yylloc.first_column-nt},this.options.ranges&&(this.yylloc.range=[tt[0],tt[0]+this.yyleng-nt]),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(at){this.unput(this.match.slice(at))},pastInput:function(){var at=this.matched.substr(0,this.matched.length-this.match.length);return(at.length>20?"...":"")+at.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var at=this.match;return at.length<20&&(at+=this._input.substr(0,20-at.length)),(at.substr(0,20)+(at.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var at=this.pastInput(),nt=new Array(at.length+1).join("-");return at+this.upcomingInput()+` +`+nt+"^"},test_match:function(at,nt){var Dt,Lt,tt;if(this.options.backtrack_lexer&&(tt={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&&(tt.yylloc.range=this.yylloc.range.slice(0))),(Lt=at[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=Lt.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:Lt?Lt[Lt.length-1].length-Lt[Lt.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+at[0].length},this.yytext+=at[0],this.match+=at[0],this.matches=at,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(at[0].length),this.matched+=at[0],Dt=this.performAction.call(this,this.yy,this,nt,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),Dt)return Dt;if(this._backtrack){for(var lt in tt)this[lt]=tt[lt];return!1}return!1},next:function(){if(this.done)return this.EOF;var at,nt,Dt,Lt;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var tt=this._currentRules(),lt=0;ltnt[0].length)){if(nt=Dt,Lt=lt,this.options.backtrack_lexer){if((at=this.test_match(Dt,tt[lt]))!==!1)return at;if(this._backtrack){nt=!1;continue}return!1}if(!this.options.flex)break}return nt?(at=this.test_match(nt,tt[Lt]))!==!1&&at: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(at){this.conditionStack.push(at)},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(at){return(at=this.conditionStack.length-1-Math.abs(at||0))>=0?this.conditionStack[at]:"INITIAL"},pushState:function(at){this.begin(at)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(at,nt,Dt,Lt){switch(Dt){case 0:return this.begin("open_directive"),34;case 1:return this.begin("type_directive"),35;case 2:return this.popState(),this.begin("arg_directive"),27;case 3:return this.popState(),this.popState(),37;case 4:return 36;case 5:case 6:case 7:case 9:case 10:case 11:break;case 8:return 11;case 12:this.begin("href");break;case 13:case 16:case 19:case 22:this.popState();break;case 14:return 32;case 15:this.begin("callbackname");break;case 17:this.popState(),this.begin("callbackargs");break;case 18:return 30;case 20:return 31;case 21:this.begin("click");break;case 23:return 29;case 24:return 5;case 25:return 12;case 26:return 13;case 27:return 14;case 28:return 15;case 29:return 17;case 30:return 16;case 31:return 18;case 32:return"date";case 33:return 19;case 34:return 20;case 35:return 22;case 36:return 23;case 37:return 27;case 38:return 7;case 39:return"INVALID"}},rules:[/^(?:%%\{)/i,/^(?:((?:(?!\}%%)[^:.])*))/i,/^(?::)/i,/^(?:\}%%)/i,/^(?:((?:(?!\}%%).|\n)*))/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,/^(?:section\s[^#:\n;]+)/i,/^(?:[^#:\n;]+)/i,/^(?::[^#\n;]+)/i,/^(?::)/i,/^(?:$)/i,/^(?:.)/i],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:[19,20],inclusive:!1},callbackname:{rules:[16,17,18],inclusive:!1},href:{rules:[13,14],inclusive:!1},click:{rules:[22,23],inclusive:!1},INITIAL:{rules:[0,5,6,7,8,9,10,11,12,15,21,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39],inclusive:!0}}};function bt(){this.yy={}}return Tt.lexer=ne,bt.prototype=Tt,Tt.Parser=bt,new bt}();M.parser=m,M.Parser=m.Parser,M.parse=function(){return m.parse.apply(m,arguments)},M.main=function(h){h[1]||(console.log("Usage: "+h[0]+" FILE"),process.exit(1));var x=f(6878).readFileSync(f(6470).normalize(h[1]),"utf8");return M.parser.parse(x)},f.c[f.s]===S&&M.main(process.argv.slice(1))},2553:(S,M,f)=>{S=f.nmd(S);var m=function(){var h=function(nt,Dt,Lt,tt){for(Lt=Lt||{},tt=nt.length;tt--;Lt[nt[tt]]=Dt);return Lt},x=[1,4],g=[1,7],k=[1,5],E=[1,9],A=[1,6],I=[2,6],O=[1,16],Y=[6,8,14,18,20,21,22,37,41],H=[8,14,18,20,21,22],X=[8,13,14,18,20,21,22],Z=[1,26],et=[6,8,14,37,41],Q=[8,14,41],gt=[1,53],ht=[1,54],xt=[1,55],Tt=[8,14,24,28,29,41],ne={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,BRANCH:18,ID:19,CHECKOUT:20,MERGE:21,COMMIT:22,commit_arg:23,COMMIT_TAG:24,STR:25,COMMIT_TYPE:26,commitType:27,COMMIT_ID:28,COMMIT_MSG:29,NORMAL:30,REVERSE:31,HIGHLIGHT:32,openDirective:33,typeDirective:34,closeDirective:35,argDirective:36,open_directive:37,type_directive:38,arg_directive:39,close_directive:40,";":41,$accept:0,$end:1},terminals_:{2:"error",6:"GG",8:"EOF",9:":",10:"DIR",13:"OPT",14:"NL",18:"BRANCH",19:"ID",20:"CHECKOUT",21:"MERGE",22:"COMMIT",24:"COMMIT_TAG",25:"STR",26:"COMMIT_TYPE",28:"COMMIT_ID",29:"COMMIT_MSG",30:"NORMAL",31:"REVERSE",32:"HIGHLIGHT",37:"open_directive",38:"type_directive",39:"arg_directive",40:"close_directive",41:";"},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,2],[16,2],[16,2],[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],[23,0],[23,1],[27,1],[27,1],[27,1],[5,3],[5,5],[33,1],[34,1],[36,1],[35,1],[4,1],[4,1],[4,1]],performAction:function(nt,Dt,Lt,tt,lt,q,Ut){var G=q.length-1;switch(lt){case 3:return q[G];case 4:return q[G-1];case 5:return tt.setDirection(q[G-3]),q[G-1];case 7:tt.setOptions(q[G-1]),this.$=q[G];break;case 8:q[G-1]+=q[G],this.$=q[G-1];break;case 10:this.$=[];break;case 11:q[G-1].push(q[G]),this.$=q[G-1];break;case 12:this.$=q[G-1];break;case 15:tt.branch(q[G]);break;case 16:tt.checkout(q[G]);break;case 17:tt.merge(q[G]);break;case 18:tt.commit(q[G]);break;case 19:tt.commit("","",tt.commitType.NORMAL,q[G]);break;case 20:tt.commit("","",q[G],"");break;case 21:tt.commit("","",q[G],q[G-2]);break;case 22:tt.commit("","",q[G-2],q[G]);break;case 23:tt.commit("",q[G],tt.commitType.NORMAL,"");break;case 24:tt.commit("",q[G-2],tt.commitType.NORMAL,q[G]);break;case 25:tt.commit("",q[G],tt.commitType.NORMAL,q[G-2]);break;case 26:tt.commit("",q[G-2],q[G],"");break;case 27:tt.commit("",q[G],q[G-2],"");break;case 28:tt.commit("",q[G-4],q[G-2],q[G]);break;case 29:tt.commit("",q[G-4],q[G],q[G-2]);break;case 30:tt.commit("",q[G-2],q[G-4],q[G]);break;case 31:tt.commit("",q[G],q[G-4],q[G-2]);break;case 32:tt.commit("",q[G],q[G-2],q[G-4]);break;case 33:tt.commit("",q[G-2],q[G],q[G-4]);break;case 34:tt.commit(q[G],"",tt.commitType.NORMAL,"");break;case 35:tt.commit(q[G],"",tt.commitType.NORMAL,q[G-2]);break;case 36:tt.commit(q[G-2],"",tt.commitType.NORMAL,q[G]);break;case 37:tt.commit(q[G-2],"",q[G],"");break;case 38:tt.commit(q[G],"",q[G-2],"");break;case 39:tt.commit(q[G],q[G-2],tt.commitType.NORMAL,"");break;case 40:tt.commit(q[G-2],q[G],tt.commitType.NORMAL,"");break;case 41:tt.commit(q[G-4],"",q[G-2],q[G]);break;case 42:tt.commit(q[G-4],"",q[G],q[G-2]);break;case 43:tt.commit(q[G-2],"",q[G-4],q[G]);break;case 44:tt.commit(q[G],"",q[G-4],q[G-2]);break;case 45:tt.commit(q[G],"",q[G-2],q[G-4]);break;case 46:tt.commit(q[G-2],"",q[G],q[G-4]);break;case 47:tt.commit(q[G-4],q[G],q[G-2],"");break;case 48:tt.commit(q[G-4],q[G-2],q[G],"");break;case 49:tt.commit(q[G-2],q[G],q[G-4],"");break;case 50:tt.commit(q[G],q[G-2],q[G-4],"");break;case 51:tt.commit(q[G],q[G-4],q[G-2],"");break;case 52:tt.commit(q[G-2],q[G-4],q[G],"");break;case 53:tt.commit(q[G-4],q[G],tt.commitType.NORMAL,q[G-2]);break;case 54:tt.commit(q[G-4],q[G-2],tt.commitType.NORMAL,q[G]);break;case 55:tt.commit(q[G-2],q[G],tt.commitType.NORMAL,q[G-4]);break;case 56:tt.commit(q[G],q[G-2],tt.commitType.NORMAL,q[G-4]);break;case 57:tt.commit(q[G],q[G-4],tt.commitType.NORMAL,q[G-2]);break;case 58:tt.commit(q[G-2],q[G-4],tt.commitType.NORMAL,q[G]);break;case 59:tt.commit(q[G-6],q[G-4],q[G-2],q[G]);break;case 60:tt.commit(q[G-6],q[G-4],q[G],q[G-2]);break;case 61:tt.commit(q[G-6],q[G-2],q[G-4],q[G]);break;case 62:tt.commit(q[G-6],q[G],q[G-4],q[G-2]);break;case 63:tt.commit(q[G-6],q[G-2],q[G],q[G-4]);break;case 64:tt.commit(q[G-6],q[G],q[G-2],q[G-4]);break;case 65:tt.commit(q[G-4],q[G-6],q[G-2],q[G]);break;case 66:tt.commit(q[G-4],q[G-6],q[G],q[G-2]);break;case 67:tt.commit(q[G-2],q[G-6],q[G-4],q[G]);break;case 68:tt.commit(q[G],q[G-6],q[G-4],q[G-2]);break;case 69:tt.commit(q[G-2],q[G-6],q[G],q[G-4]);break;case 70:tt.commit(q[G],q[G-6],q[G-2],q[G-4]);break;case 71:tt.commit(q[G],q[G-4],q[G-2],q[G-6]);break;case 72:tt.commit(q[G-2],q[G-4],q[G],q[G-6]);break;case 73:tt.commit(q[G],q[G-2],q[G-4],q[G-6]);break;case 74:tt.commit(q[G-2],q[G],q[G-4],q[G-6]);break;case 75:tt.commit(q[G-4],q[G-2],q[G],q[G-6]);break;case 76:tt.commit(q[G-4],q[G],q[G-2],q[G-6]);break;case 77:tt.commit(q[G-2],q[G-4],q[G-6],q[G]);break;case 78:tt.commit(q[G],q[G-4],q[G-6],q[G-2]);break;case 79:tt.commit(q[G-2],q[G],q[G-6],q[G-4]);break;case 80:tt.commit(q[G],q[G-2],q[G-6],q[G-4]);break;case 81:tt.commit(q[G-4],q[G-2],q[G-6],q[G]);break;case 82:tt.commit(q[G-4],q[G],q[G-6],q[G-2]);break;case 83:this.$="";break;case 84:this.$=q[G];break;case 85:this.$=tt.commitType.NORMAL;break;case 86:this.$=tt.commitType.REVERSE;break;case 87:this.$=tt.commitType.HIGHLIGHT;break;case 90:tt.parseDirective("%%{","open_directive");break;case 91:tt.parseDirective(q[G],"type_directive");break;case 92:q[G]=q[G].trim().replace(/'/g,'"'),tt.parseDirective(q[G],"arg_directive");break;case 93:tt.parseDirective("}%%","close_directive","gitGraph")}},table:[{3:1,4:2,5:3,6:x,8:g,14:k,33:8,37:E,41:A},{1:[3]},{3:10,4:2,5:3,6:x,8:g,14:k,33:8,37:E,41:A},{3:11,4:2,5:3,6:x,8:g,14:k,33:8,37:E,41:A},{7:12,8:I,9:[1,13],10:[1,14],11:15,14:O},h(Y,[2,94]),h(Y,[2,95]),h(Y,[2,96]),{34:17,38:[1,18]},{38:[2,90]},{1:[2,1]},{1:[2,2]},{8:[1,19]},{7:20,8:I,11:15,14:O},{9:[1,21]},h(H,[2,10],{12:22,13:[1,23]}),h(X,[2,9]),{9:[1,25],35:24,40:Z},h([9,40],[2,91]),{1:[2,3]},{8:[1,27]},{7:28,8:I,11:15,14:O},{8:[2,7],14:[1,31],15:29,16:30,17:32,18:[1,33],20:[1,34],21:[1,35],22:[1,36]},h(X,[2,8]),h(et,[2,88]),{36:37,39:[1,38]},h(et,[2,93]),{1:[2,4]},{8:[1,39]},h(H,[2,11]),{4:40,8:g,14:k,41:A},h(H,[2,13]),h(Q,[2,14]),{19:[1,41]},{19:[1,42]},{19:[1,43]},h(Q,[2,83],{23:44,24:[1,45],25:[1,49],26:[1,46],28:[1,47],29:[1,48]}),{35:50,40:Z},{40:[2,92]},{1:[2,5]},h(H,[2,12]),h(Q,[2,15]),h(Q,[2,16]),h(Q,[2,17]),h(Q,[2,18]),{25:[1,51]},{27:52,30:gt,31:ht,32:xt},{25:[1,56]},{25:[1,57]},h(Q,[2,84]),h(et,[2,89]),h(Q,[2,19],{26:[1,58],28:[1,59],29:[1,60]}),h(Q,[2,20],{24:[1,61],28:[1,62],29:[1,63]}),h(Tt,[2,85]),h(Tt,[2,86]),h(Tt,[2,87]),h(Q,[2,23],{24:[1,64],26:[1,65],29:[1,66]}),h(Q,[2,34],{24:[1,67],26:[1,68],28:[1,69]}),{27:70,30:gt,31:ht,32:xt},{25:[1,71]},{25:[1,72]},{25:[1,73]},{25:[1,74]},{25:[1,75]},{25:[1,76]},{27:77,30:gt,31:ht,32:xt},{25:[1,78]},{25:[1,79]},{27:80,30:gt,31:ht,32:xt},{25:[1,81]},h(Q,[2,21],{28:[1,82],29:[1,83]}),h(Q,[2,25],{26:[1,84],29:[1,85]}),h(Q,[2,35],{26:[1,86],28:[1,87]}),h(Q,[2,22],{28:[1,88],29:[1,89]}),h(Q,[2,27],{24:[1,90],29:[1,91]}),h(Q,[2,38],{24:[1,92],28:[1,93]}),h(Q,[2,24],{26:[1,94],29:[1,95]}),h(Q,[2,26],{24:[1,96],29:[1,97]}),h(Q,[2,39],{24:[1,99],26:[1,98]}),h(Q,[2,36],{26:[1,100],28:[1,101]}),h(Q,[2,37],{24:[1,102],28:[1,103]}),h(Q,[2,40],{24:[1,105],26:[1,104]}),{25:[1,106]},{25:[1,107]},{27:108,30:gt,31:ht,32:xt},{25:[1,109]},{27:110,30:gt,31:ht,32:xt},{25:[1,111]},{25:[1,112]},{25:[1,113]},{25:[1,114]},{25:[1,115]},{25:[1,116]},{25:[1,117]},{27:118,30:gt,31:ht,32:xt},{25:[1,119]},{25:[1,120]},{25:[1,121]},{27:122,30:gt,31:ht,32:xt},{25:[1,123]},{27:124,30:gt,31:ht,32:xt},{25:[1,125]},{25:[1,126]},{25:[1,127]},{27:128,30:gt,31:ht,32:xt},{25:[1,129]},h(Q,[2,32],{29:[1,130]}),h(Q,[2,45],{28:[1,131]}),h(Q,[2,33],{29:[1,132]}),h(Q,[2,56],{26:[1,133]}),h(Q,[2,46],{28:[1,134]}),h(Q,[2,55],{26:[1,135]}),h(Q,[2,31],{29:[1,136]}),h(Q,[2,44],{28:[1,137]}),h(Q,[2,30],{29:[1,138]}),h(Q,[2,50],{24:[1,139]}),h(Q,[2,43],{28:[1,140]}),h(Q,[2,49],{24:[1,141]}),h(Q,[2,29],{29:[1,142]}),h(Q,[2,57],{26:[1,143]}),h(Q,[2,28],{29:[1,144]}),h(Q,[2,51],{24:[1,145]}),h(Q,[2,52],{24:[1,146]}),h(Q,[2,58],{26:[1,147]}),h(Q,[2,42],{28:[1,148]}),h(Q,[2,53],{26:[1,149]}),h(Q,[2,41],{28:[1,150]}),h(Q,[2,47],{24:[1,151]}),h(Q,[2,48],{24:[1,152]}),h(Q,[2,54],{26:[1,153]}),{25:[1,154]},{25:[1,155]},{25:[1,156]},{27:157,30:gt,31:ht,32:xt},{25:[1,158]},{27:159,30:gt,31:ht,32:xt},{25:[1,160]},{25:[1,161]},{25:[1,162]},{25:[1,163]},{25:[1,164]},{25:[1,165]},{25:[1,166]},{27:167,30:gt,31:ht,32:xt},{25:[1,168]},{25:[1,169]},{25:[1,170]},{27:171,30:gt,31:ht,32:xt},{25:[1,172]},{27:173,30:gt,31:ht,32:xt},{25:[1,174]},{25:[1,175]},{25:[1,176]},{27:177,30:gt,31:ht,32:xt},h(Q,[2,73]),h(Q,[2,74]),h(Q,[2,71]),h(Q,[2,72]),h(Q,[2,76]),h(Q,[2,75]),h(Q,[2,80]),h(Q,[2,79]),h(Q,[2,78]),h(Q,[2,77]),h(Q,[2,82]),h(Q,[2,81]),h(Q,[2,70]),h(Q,[2,69]),h(Q,[2,68]),h(Q,[2,67]),h(Q,[2,65]),h(Q,[2,66]),h(Q,[2,64]),h(Q,[2,63]),h(Q,[2,62]),h(Q,[2,61]),h(Q,[2,59]),h(Q,[2,60])],defaultActions:{9:[2,90],10:[2,1],11:[2,2],19:[2,3],27:[2,4],38:[2,92],39:[2,5]},parseError:function(nt,Dt){if(!Dt.recoverable){var Lt=new Error(nt);throw Lt.hash=Dt,Lt}this.trace(nt)},parse:function(nt){var Dt=this,Lt=[0],tt=[],lt=[null],q=[],Ut=this.table,G="",me=0,ve=0,jt=0,ie=2,he=1,pe=q.slice.call(arguments,1),le=Object.create(this.lexer),oe={yy:{}};for(var wn in this.yy)Object.prototype.hasOwnProperty.call(this.yy,wn)&&(oe.yy[wn]=this.yy[wn]);le.setInput(nt,oe.yy),oe.yy.lexer=le,oe.yy.parser=this,le.yylloc===void 0&&(le.yylloc={});var fe=le.yylloc;q.push(fe);var ae=le.options&&le.options.ranges;function Qt(){var De;return typeof(De=tt.pop()||le.lex()||he)!="number"&&(De instanceof Array&&(De=(tt=De).pop()),De=Dt.symbols_[De]||De),De}typeof oe.yy.parseError=="function"?this.parseError=oe.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var St,Kt,mt,Ht,kt,It,se,Se,be,Ae={};;){if(mt=Lt[Lt.length-1],this.defaultActions[mt]?Ht=this.defaultActions[mt]:(St==null&&(St=Qt()),Ht=Ut[mt]&&Ut[mt][St]),Ht===void 0||!Ht.length||!Ht[0]){var cn="";for(It in be=[],Ut[mt])this.terminals_[It]&&It>ie&&be.push("'"+this.terminals_[It]+"'");cn=le.showPosition?"Parse error on line "+(me+1)+`: +`+le.showPosition()+` +Expecting `+be.join(", ")+", got '"+(this.terminals_[St]||St)+"'":"Parse error on line "+(me+1)+": Unexpected "+(St==he?"end of input":"'"+(this.terminals_[St]||St)+"'"),this.parseError(cn,{text:le.match,token:this.terminals_[St]||St,line:le.yylineno,loc:fe,expected:be})}if(Ht[0]instanceof Array&&Ht.length>1)throw new Error("Parse Error: multiple actions possible at state: "+mt+", token: "+St);switch(Ht[0]){case 1:Lt.push(St),lt.push(le.yytext),q.push(le.yylloc),Lt.push(Ht[1]),St=null,Kt?(St=Kt,Kt=null):(ve=le.yyleng,G=le.yytext,me=le.yylineno,fe=le.yylloc,jt>0);break;case 2:if(se=this.productions_[Ht[1]][1],Ae.$=lt[lt.length-se],Ae._$={first_line:q[q.length-(se||1)].first_line,last_line:q[q.length-1].last_line,first_column:q[q.length-(se||1)].first_column,last_column:q[q.length-1].last_column},ae&&(Ae._$.range=[q[q.length-(se||1)].range[0],q[q.length-1].range[1]]),(kt=this.performAction.apply(Ae,[G,ve,me,oe.yy,Ht[1],lt,q].concat(pe)))!==void 0)return kt;se&&(Lt=Lt.slice(0,-1*se*2),lt=lt.slice(0,-1*se),q=q.slice(0,-1*se)),Lt.push(this.productions_[Ht[1]][0]),lt.push(Ae.$),q.push(Ae._$),Se=Ut[Lt[Lt.length-2]][Lt[Lt.length-1]],Lt.push(Se);break;case 3:return!0}}return!0}},bt={EOF:1,parseError:function(nt,Dt){if(!this.yy.parser)throw new Error(nt);this.yy.parser.parseError(nt,Dt)},setInput:function(nt,Dt){return this.yy=Dt||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 Dt=nt.length,Lt=nt.split(/(?:\r\n?|\n)/g);this._input=nt+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-Dt),this.offset-=Dt;var tt=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),Lt.length-1&&(this.yylineno-=Lt.length-1);var lt=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:Lt?(Lt.length===tt.length?this.yylloc.first_column:0)+tt[tt.length-Lt.length].length-Lt[0].length:this.yylloc.first_column-Dt},this.options.ranges&&(this.yylloc.range=[lt[0],lt[0]+this.yyleng-Dt]),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(),Dt=new Array(nt.length+1).join("-");return nt+this.upcomingInput()+` +`+Dt+"^"},test_match:function(nt,Dt){var Lt,tt,lt;if(this.options.backtrack_lexer&&(lt={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&&(lt.yylloc.range=this.yylloc.range.slice(0))),(tt=nt[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=tt.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:tt?tt[tt.length-1].length-tt[tt.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+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],Lt=this.performAction.call(this,this.yy,this,Dt,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),Lt)return Lt;if(this._backtrack){for(var q in lt)this[q]=lt[q];return!1}return!1},next:function(){if(this.done)return this.EOF;var nt,Dt,Lt,tt;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var lt=this._currentRules(),q=0;qDt[0].length)){if(Dt=Lt,tt=q,this.options.backtrack_lexer){if((nt=this.test_match(Lt,lt[q]))!==!1)return nt;if(this._backtrack){Dt=!1;continue}return!1}if(!this.options.flex)break}return Dt?(nt=this.test_match(Dt,lt[tt]))!==!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,Dt,Lt,tt){switch(Lt){case 0:return this.begin("open_directive"),37;case 1:return this.begin("type_directive"),38;case 2:return this.popState(),this.begin("arg_directive"),9;case 3:return this.popState(),this.popState(),40;case 4:return 39;case 5:return 14;case 6:case 7:case 8:break;case 9:return 6;case 10:return 22;case 11:return 28;case 12:return 26;case 13:return 29;case 14:return 30;case 15:return 31;case 16:return 32;case 17:return 24;case 18:return 18;case 19:return 21;case 20:return 20;case 21:case 22:return 10;case 23:return 9;case 24:return"CARET";case 25:this.begin("options");break;case 26:case 29:this.popState();break;case 27:return 13;case 28:this.begin("string");break;case 30:return 25;case 31:return 19;case 32:return 8}},rules:[/^(?:%%\{)/i,/^(?:((?:(?!\}%%)[^:.])*))/i,/^(?::)/i,/^(?:\}%%)/i,/^(?:((?:(?!\}%%).|\n)*))/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,/^(?:merge\b)/i,/^(?:checkout\b)/i,/^(?:LR\b)/i,/^(?:BT\b)/i,/^(?::)/i,/^(?:\^)/i,/^(?:options\r?\n)/i,/^(?:end\r?\n)/i,/^(?:[^\n]+\r?\n)/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:[a-zA-Z][-_\.a-zA-Z0-9]*[-_a-zA-Z0-9])/i,/^(?:$)/i],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},options:{rules:[26,27],inclusive:!1},string:{rules:[29,30],inclusive:!1},INITIAL:{rules:[0,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,28,31,32],inclusive:!0}}};function at(){this.yy={}}return ne.lexer=bt,at.prototype=ne,ne.Parser=at,new at}();M.parser=m,M.Parser=m.Parser,M.parse=function(){return m.parse.apply(m,arguments)},M.main=function(h){h[1]||(console.log("Usage: "+h[0]+" FILE"),process.exit(1));var x=f(8183).readFileSync(f(6470).normalize(h[1]),"utf8");return M.parser.parse(x)},f.c[f.s]===S&&M.main(process.argv.slice(1))},6765:(S,M,f)=>{S=f.nmd(S);var m=function(){var h=function(A,I,O,Y){for(O=O||{},Y=A.length;Y--;O[A[Y]]=I);return O},x=[6,9,10],g={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(A,I,O,Y,H,X,Z){switch(X.length,H){case 1:return Y;case 4:break;case 6:Y.setInfo(!0)}},table:[{3:1,4:[1,2]},{1:[3]},h(x,[2,2],{5:3}),{6:[1,4],7:5,8:6,9:[1,7],10:[1,8]},{1:[2,1]},h(x,[2,3]),h(x,[2,4]),h(x,[2,5]),h(x,[2,6])],defaultActions:{4:[2,1]},parseError:function(A,I){if(!I.recoverable){var O=new Error(A);throw O.hash=I,O}this.trace(A)},parse:function(A){var I=this,O=[0],Y=[],H=[null],X=[],Z=this.table,et="",Q=0,gt=0,ht=0,xt=2,Tt=1,ne=X.slice.call(arguments,1),bt=Object.create(this.lexer),at={yy:{}};for(var nt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,nt)&&(at.yy[nt]=this.yy[nt]);bt.setInput(A,at.yy),at.yy.lexer=bt,at.yy.parser=this,bt.yylloc===void 0&&(bt.yylloc={});var Dt=bt.yylloc;X.push(Dt);var Lt=bt.options&&bt.options.ranges;function tt(){var oe;return typeof(oe=Y.pop()||bt.lex()||Tt)!="number"&&(oe instanceof Array&&(oe=(Y=oe).pop()),oe=I.symbols_[oe]||oe),oe}typeof at.yy.parseError=="function"?this.parseError=at.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var lt,q,Ut,G,me,ve,jt,ie,he,pe={};;){if(Ut=O[O.length-1],this.defaultActions[Ut]?G=this.defaultActions[Ut]:(lt==null&&(lt=tt()),G=Z[Ut]&&Z[Ut][lt]),G===void 0||!G.length||!G[0]){var le="";for(ve in he=[],Z[Ut])this.terminals_[ve]&&ve>xt&&he.push("'"+this.terminals_[ve]+"'");le=bt.showPosition?"Parse error on line "+(Q+1)+`: +`+bt.showPosition()+` +Expecting `+he.join(", ")+", got '"+(this.terminals_[lt]||lt)+"'":"Parse error on line "+(Q+1)+": Unexpected "+(lt==Tt?"end of input":"'"+(this.terminals_[lt]||lt)+"'"),this.parseError(le,{text:bt.match,token:this.terminals_[lt]||lt,line:bt.yylineno,loc:Dt,expected:he})}if(G[0]instanceof Array&&G.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Ut+", token: "+lt);switch(G[0]){case 1:O.push(lt),H.push(bt.yytext),X.push(bt.yylloc),O.push(G[1]),lt=null,q?(lt=q,q=null):(gt=bt.yyleng,et=bt.yytext,Q=bt.yylineno,Dt=bt.yylloc,ht>0);break;case 2:if(jt=this.productions_[G[1]][1],pe.$=H[H.length-jt],pe._$={first_line:X[X.length-(jt||1)].first_line,last_line:X[X.length-1].last_line,first_column:X[X.length-(jt||1)].first_column,last_column:X[X.length-1].last_column},Lt&&(pe._$.range=[X[X.length-(jt||1)].range[0],X[X.length-1].range[1]]),(me=this.performAction.apply(pe,[et,gt,Q,at.yy,G[1],H,X].concat(ne)))!==void 0)return me;jt&&(O=O.slice(0,-1*jt*2),H=H.slice(0,-1*jt),X=X.slice(0,-1*jt)),O.push(this.productions_[G[1]][0]),H.push(pe.$),X.push(pe._$),ie=Z[O[O.length-2]][O[O.length-1]],O.push(ie);break;case 3:return!0}}return!0}},k={EOF:1,parseError:function(A,I){if(!this.yy.parser)throw new Error(A);this.yy.parser.parseError(A,I)},setInput:function(A,I){return this.yy=I||this.yy||{},this._input=A,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 A=this._input[0];return this.yytext+=A,this.yyleng++,this.offset++,this.match+=A,this.matched+=A,A.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),A},unput:function(A){var I=A.length,O=A.split(/(?:\r\n?|\n)/g);this._input=A+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-I),this.offset-=I;var Y=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),O.length-1&&(this.yylineno-=O.length-1);var H=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:O?(O.length===Y.length?this.yylloc.first_column:0)+Y[Y.length-O.length].length-O[0].length:this.yylloc.first_column-I},this.options.ranges&&(this.yylloc.range=[H[0],H[0]+this.yyleng-I]),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(A){this.unput(this.match.slice(A))},pastInput:function(){var A=this.matched.substr(0,this.matched.length-this.match.length);return(A.length>20?"...":"")+A.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var A=this.match;return A.length<20&&(A+=this._input.substr(0,20-A.length)),(A.substr(0,20)+(A.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var A=this.pastInput(),I=new Array(A.length+1).join("-");return A+this.upcomingInput()+` +`+I+"^"},test_match:function(A,I){var O,Y,H;if(this.options.backtrack_lexer&&(H={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&&(H.yylloc.range=this.yylloc.range.slice(0))),(Y=A[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=Y.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:Y?Y[Y.length-1].length-Y[Y.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+A[0].length},this.yytext+=A[0],this.match+=A[0],this.matches=A,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(A[0].length),this.matched+=A[0],O=this.performAction.call(this,this.yy,this,I,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),O)return O;if(this._backtrack){for(var X in H)this[X]=H[X];return!1}return!1},next:function(){if(this.done)return this.EOF;var A,I,O,Y;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var H=this._currentRules(),X=0;XI[0].length)){if(I=O,Y=X,this.options.backtrack_lexer){if((A=this.test_match(O,H[X]))!==!1)return A;if(this._backtrack){I=!1;continue}return!1}if(!this.options.flex)break}return I?(A=this.test_match(I,H[Y]))!==!1&&A: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(A){this.conditionStack.push(A)},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(A){return(A=this.conditionStack.length-1-Math.abs(A||0))>=0?this.conditionStack[A]:"INITIAL"},pushState:function(A){this.begin(A)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(A,I,O,Y){switch(O){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 E(){this.yy={}}return g.lexer=k,E.prototype=g,g.Parser=E,new E}();M.parser=m,M.Parser=m.Parser,M.parse=function(){return m.parse.apply(m,arguments)},M.main=function(h){h[1]||(console.log("Usage: "+h[0]+" FILE"),process.exit(1));var x=f(1428).readFileSync(f(6470).normalize(h[1]),"utf8");return M.parser.parse(x)},f.c[f.s]===S&&M.main(process.argv.slice(1))},7062:(S,M,f)=>{S=f.nmd(S);var m=function(){var h=function(bt,at,nt,Dt){for(nt=nt||{},Dt=bt.length;Dt--;nt[bt[Dt]]=at);return nt},x=[1,4],g=[1,5],k=[1,6],E=[1,7],A=[1,9],I=[1,11,13,15,22,23,24,25],O=[2,5],Y=[1,6,11,13,15,22,23,24,25],H=[22,23,24],X=[2,8],Z=[1,18],et=[1,19],Q=[1,20],gt=[1,25],ht=[6,22,23,24,25],xt={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,accDescription:15,description_value:16,openDirective:17,typeDirective:18,closeDirective:19,":":20,argDirective:21,NEWLINE:22,";":23,EOF:24,open_directive:25,type_directive:26,arg_directive:27,close_directive:28,$accept:0,$end:1},terminals_:{2:"error",6:"PIE",8:"showData",11:"txt",12:"value",13:"title",14:"title_value",15:"accDescription",16:"description_value",20:":",22:"NEWLINE",23:";",24:"EOF",25:"open_directive",26:"type_directive",27:"arg_directive",28:"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,1],[5,3],[5,5],[4,1],[4,1],[4,1],[17,1],[18,1],[21,1],[19,1]],performAction:function(bt,at,nt,Dt,Lt,tt,lt){var q=tt.length-1;switch(Lt){case 4:Dt.setShowData(!0);break;case 7:this.$=tt[q-1];break;case 9:Dt.addSection(tt[q-1],Dt.cleanupValue(tt[q]));break;case 10:this.$=tt[q].trim(),Dt.setTitle(this.$);break;case 11:this.$=tt[q].trim(),Dt.setAccDescription(this.$);break;case 18:Dt.parseDirective("%%{","open_directive");break;case 19:Dt.parseDirective(tt[q],"type_directive");break;case 20:tt[q]=tt[q].trim().replace(/'/g,'"'),Dt.parseDirective(tt[q],"arg_directive");break;case 21:Dt.parseDirective("}%%","close_directive","pie")}},table:[{3:1,4:2,5:3,6:x,17:8,22:g,23:k,24:E,25:A},{1:[3]},{3:10,4:2,5:3,6:x,17:8,22:g,23:k,24:E,25:A},{3:11,4:2,5:3,6:x,17:8,22:g,23:k,24:E,25:A},h(I,O,{7:12,8:[1,13]}),h(Y,[2,15]),h(Y,[2,16]),h(Y,[2,17]),{18:14,26:[1,15]},{26:[2,18]},{1:[2,1]},{1:[2,2]},h(H,X,{17:8,9:16,10:17,5:21,1:[2,3],11:Z,13:et,15:Q,25:A}),h(I,O,{7:22}),{19:23,20:[1,24],28:gt},h([20,28],[2,19]),h(I,[2,6]),{4:26,22:g,23:k,24:E},{12:[1,27]},{14:[1,28]},{16:[1,29]},h(H,[2,12]),h(H,X,{17:8,9:16,10:17,5:21,1:[2,4],11:Z,13:et,15:Q,25:A}),h(ht,[2,13]),{21:30,27:[1,31]},h(ht,[2,21]),h(I,[2,7]),h(H,[2,9]),h(H,[2,10]),h(H,[2,11]),{19:32,28:gt},{28:[2,20]},h(ht,[2,14])],defaultActions:{9:[2,18],10:[2,1],11:[2,2],31:[2,20]},parseError:function(bt,at){if(!at.recoverable){var nt=new Error(bt);throw nt.hash=at,nt}this.trace(bt)},parse:function(bt){var at=this,nt=[0],Dt=[],Lt=[null],tt=[],lt=this.table,q="",Ut=0,G=0,me=0,ve=2,jt=1,ie=tt.slice.call(arguments,1),he=Object.create(this.lexer),pe={yy:{}};for(var le in this.yy)Object.prototype.hasOwnProperty.call(this.yy,le)&&(pe.yy[le]=this.yy[le]);he.setInput(bt,pe.yy),pe.yy.lexer=he,pe.yy.parser=this,he.yylloc===void 0&&(he.yylloc={});var oe=he.yylloc;tt.push(oe);var wn=he.options&&he.options.ranges;function fe(){var Ae;return typeof(Ae=Dt.pop()||he.lex()||jt)!="number"&&(Ae instanceof Array&&(Ae=(Dt=Ae).pop()),Ae=at.symbols_[Ae]||Ae),Ae}typeof pe.yy.parseError=="function"?this.parseError=pe.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var ae,Qt,St,Kt,mt,Ht,kt,It,se,Se={};;){if(St=nt[nt.length-1],this.defaultActions[St]?Kt=this.defaultActions[St]:(ae==null&&(ae=fe()),Kt=lt[St]&<[St][ae]),Kt===void 0||!Kt.length||!Kt[0]){var be="";for(Ht in se=[],lt[St])this.terminals_[Ht]&&Ht>ve&&se.push("'"+this.terminals_[Ht]+"'");be=he.showPosition?"Parse error on line "+(Ut+1)+`: +`+he.showPosition()+` +Expecting `+se.join(", ")+", got '"+(this.terminals_[ae]||ae)+"'":"Parse error on line "+(Ut+1)+": Unexpected "+(ae==jt?"end of input":"'"+(this.terminals_[ae]||ae)+"'"),this.parseError(be,{text:he.match,token:this.terminals_[ae]||ae,line:he.yylineno,loc:oe,expected:se})}if(Kt[0]instanceof Array&&Kt.length>1)throw new Error("Parse Error: multiple actions possible at state: "+St+", token: "+ae);switch(Kt[0]){case 1:nt.push(ae),Lt.push(he.yytext),tt.push(he.yylloc),nt.push(Kt[1]),ae=null,Qt?(ae=Qt,Qt=null):(G=he.yyleng,q=he.yytext,Ut=he.yylineno,oe=he.yylloc,me>0);break;case 2:if(kt=this.productions_[Kt[1]][1],Se.$=Lt[Lt.length-kt],Se._$={first_line:tt[tt.length-(kt||1)].first_line,last_line:tt[tt.length-1].last_line,first_column:tt[tt.length-(kt||1)].first_column,last_column:tt[tt.length-1].last_column},wn&&(Se._$.range=[tt[tt.length-(kt||1)].range[0],tt[tt.length-1].range[1]]),(mt=this.performAction.apply(Se,[q,G,Ut,pe.yy,Kt[1],Lt,tt].concat(ie)))!==void 0)return mt;kt&&(nt=nt.slice(0,-1*kt*2),Lt=Lt.slice(0,-1*kt),tt=tt.slice(0,-1*kt)),nt.push(this.productions_[Kt[1]][0]),Lt.push(Se.$),tt.push(Se._$),It=lt[nt[nt.length-2]][nt[nt.length-1]],nt.push(It);break;case 3:return!0}}return!0}},Tt={EOF:1,parseError:function(bt,at){if(!this.yy.parser)throw new Error(bt);this.yy.parser.parseError(bt,at)},setInput:function(bt,at){return this.yy=at||this.yy||{},this._input=bt,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 bt=this._input[0];return this.yytext+=bt,this.yyleng++,this.offset++,this.match+=bt,this.matched+=bt,bt.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),bt},unput:function(bt){var at=bt.length,nt=bt.split(/(?:\r\n?|\n)/g);this._input=bt+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-at),this.offset-=at;var Dt=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),nt.length-1&&(this.yylineno-=nt.length-1);var Lt=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:nt?(nt.length===Dt.length?this.yylloc.first_column:0)+Dt[Dt.length-nt.length].length-nt[0].length:this.yylloc.first_column-at},this.options.ranges&&(this.yylloc.range=[Lt[0],Lt[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(bt){this.unput(this.match.slice(bt))},pastInput:function(){var bt=this.matched.substr(0,this.matched.length-this.match.length);return(bt.length>20?"...":"")+bt.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var bt=this.match;return bt.length<20&&(bt+=this._input.substr(0,20-bt.length)),(bt.substr(0,20)+(bt.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var bt=this.pastInput(),at=new Array(bt.length+1).join("-");return bt+this.upcomingInput()+` +`+at+"^"},test_match:function(bt,at){var nt,Dt,Lt;if(this.options.backtrack_lexer&&(Lt={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&&(Lt.yylloc.range=this.yylloc.range.slice(0))),(Dt=bt[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=Dt.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:Dt?Dt[Dt.length-1].length-Dt[Dt.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+bt[0].length},this.yytext+=bt[0],this.match+=bt[0],this.matches=bt,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(bt[0].length),this.matched+=bt[0],nt=this.performAction.call(this,this.yy,this,at,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),nt)return nt;if(this._backtrack){for(var tt in Lt)this[tt]=Lt[tt];return!1}return!1},next:function(){if(this.done)return this.EOF;var bt,at,nt,Dt;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var Lt=this._currentRules(),tt=0;ttat[0].length)){if(at=nt,Dt=tt,this.options.backtrack_lexer){if((bt=this.test_match(nt,Lt[tt]))!==!1)return bt;if(this._backtrack){at=!1;continue}return!1}if(!this.options.flex)break}return at?(bt=this.test_match(at,Lt[Dt]))!==!1&&bt: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(bt){this.conditionStack.push(bt)},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(bt){return(bt=this.conditionStack.length-1-Math.abs(bt||0))>=0?this.conditionStack[bt]:"INITIAL"},pushState:function(bt){this.begin(bt)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(bt,at,nt,Dt){switch(nt){case 0:return this.begin("open_directive"),25;case 1:return this.begin("type_directive"),26;case 2:return this.popState(),this.begin("arg_directive"),20;case 3:return this.popState(),this.popState(),28;case 4:return 27;case 5:case 6:case 8:case 9:break;case 7:return 22;case 10:return this.begin("title"),13;case 11:return this.popState(),"title_value";case 12:return this.begin("accDescription"),15;case 13:return this.popState(),"description_value";case 14:this.begin("string");break;case 15:this.popState();break;case 16:return"txt";case 17:return 6;case 18:return 8;case 19:return"value";case 20:return 24}},rules:[/^(?:%%\{)/i,/^(?:((?:(?!\}%%)[^:.])*))/i,/^(?::)/i,/^(?:\}%%)/i,/^(?:((?:(?!\}%%).|\n)*))/i,/^(?:%%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n\r]+)/i,/^(?:%%[^\n]*)/i,/^(?:[\s]+)/i,/^(?:title\b)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescription\b)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:pie\b)/i,/^(?:showData\b)/i,/^(?::[\s]*[\d]+(?:\.[\d]+)?)/i,/^(?:$)/i],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},accDescription:{rules:[13],inclusive:!1},title:{rules:[11],inclusive:!1},string:{rules:[15,16],inclusive:!1},INITIAL:{rules:[0,5,6,7,8,9,10,12,14,17,18,19,20],inclusive:!0}}};function ne(){this.yy={}}return xt.lexer=Tt,ne.prototype=xt,xt.Parser=ne,new ne}();M.parser=m,M.Parser=m.Parser,M.parse=function(){return m.parse.apply(m,arguments)},M.main=function(h){h[1]||(console.log("Usage: "+h[0]+" FILE"),process.exit(1));var x=f(4551).readFileSync(f(6470).normalize(h[1]),"utf8");return M.parser.parse(x)},f.c[f.s]===S&&M.main(process.argv.slice(1))},3176:(S,M,f)=>{S=f.nmd(S);var m=function(){var h=function(Qt,St,Kt,mt){for(Kt=Kt||{},mt=Qt.length;mt--;Kt[Qt[mt]]=St);return Kt},x=[1,3],g=[1,5],k=[1,17],E=[2,10],A=[1,21],I=[1,22],O=[1,23],Y=[1,24],H=[1,25],X=[1,26],Z=[1,19],et=[1,27],Q=[1,28],gt=[1,31],ht=[66,67],xt=[5,8,14,35,36,37,38,39,40,48,55,57,66,67],Tt=[5,6,8,14,35,36,37,38,39,40,48,66,67],ne=[1,51],bt=[1,52],at=[1,53],nt=[1,54],Dt=[1,55],Lt=[1,56],tt=[1,57],lt=[57,58],q=[1,69],Ut=[1,65],G=[1,66],me=[1,67],ve=[1,68],jt=[1,70],ie=[1,74],he=[1,75],pe=[1,72],le=[1,73],oe=[5,8,14,35,36,37,38,39,40,48,66,67],wn={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,open_directive:14,type_directive:15,arg_directive:16,close_directive:17,requirementDef:18,elementDef:19,relationshipDef:20,requirementType:21,requirementName:22,STRUCT_START:23,requirementBody:24,ID:25,COLONSEP:26,id:27,TEXT:28,text:29,RISK:30,riskLevel:31,VERIFYMTHD:32,verifyType:33,STRUCT_STOP:34,REQUIREMENT:35,FUNCTIONAL_REQUIREMENT:36,INTERFACE_REQUIREMENT:37,PERFORMANCE_REQUIREMENT:38,PHYSICAL_REQUIREMENT:39,DESIGN_CONSTRAINT:40,LOW_RISK:41,MED_RISK:42,HIGH_RISK:43,VERIFY_ANALYSIS:44,VERIFY_DEMONSTRATION:45,VERIFY_INSPECTION:46,VERIFY_TEST:47,ELEMENT:48,elementName:49,elementBody:50,TYPE:51,type:52,DOCREF:53,ref:54,END_ARROW_L:55,relationship:56,LINE:57,END_ARROW_R:58,CONTAINS:59,COPIES:60,DERIVES:61,SATISFIES:62,VERIFIES:63,REFINES:64,TRACES:65,unqString:66,qString:67,$accept:0,$end:1},terminals_:{2:"error",5:"NEWLINE",6:"RD",8:"EOF",12:":",14:"open_directive",15:"type_directive",16:"arg_directive",17:"close_directive",23:"STRUCT_START",25:"ID",26:"COLONSEP",28:"TEXT",30:"RISK",32:"VERIFYMTHD",34:"STRUCT_STOP",35:"REQUIREMENT",36:"FUNCTIONAL_REQUIREMENT",37:"INTERFACE_REQUIREMENT",38:"PERFORMANCE_REQUIREMENT",39:"PHYSICAL_REQUIREMENT",40:"DESIGN_CONSTRAINT",41:"LOW_RISK",42:"MED_RISK",43:"HIGH_RISK",44:"VERIFY_ANALYSIS",45:"VERIFY_DEMONSTRATION",46:"VERIFY_INSPECTION",47:"VERIFY_TEST",48:"ELEMENT",51:"TYPE",53:"DOCREF",55:"END_ARROW_L",57:"LINE",58:"END_ARROW_R",59:"CONTAINS",60:"COPIES",61:"DERIVES",62:"SATISFIES",63:"VERIFIES",64:"REFINES",65:"TRACES",66:"unqString",67:"qString"},productions_:[0,[3,3],[3,2],[3,4],[4,3],[4,5],[9,1],[10,1],[13,1],[11,1],[7,0],[7,2],[7,2],[7,2],[7,2],[7,2],[18,5],[24,5],[24,5],[24,5],[24,5],[24,2],[24,1],[21,1],[21,1],[21,1],[21,1],[21,1],[21,1],[31,1],[31,1],[31,1],[33,1],[33,1],[33,1],[33,1],[19,5],[50,5],[50,5],[50,2],[50,1],[20,5],[20,5],[56,1],[56,1],[56,1],[56,1],[56,1],[56,1],[56,1],[22,1],[22,1],[27,1],[27,1],[29,1],[29,1],[49,1],[49,1],[52,1],[52,1],[54,1],[54,1]],performAction:function(Qt,St,Kt,mt,Ht,kt,It){var se=kt.length-1;switch(Ht){case 6:mt.parseDirective("%%{","open_directive");break;case 7:mt.parseDirective(kt[se],"type_directive");break;case 8:kt[se]=kt[se].trim().replace(/'/g,'"'),mt.parseDirective(kt[se],"arg_directive");break;case 9:mt.parseDirective("}%%","close_directive","pie");break;case 10:this.$=[];break;case 16:mt.addRequirement(kt[se-3],kt[se-4]);break;case 17:mt.setNewReqId(kt[se-2]);break;case 18:mt.setNewReqText(kt[se-2]);break;case 19:mt.setNewReqRisk(kt[se-2]);break;case 20:mt.setNewReqVerifyMethod(kt[se-2]);break;case 23:this.$=mt.RequirementType.REQUIREMENT;break;case 24:this.$=mt.RequirementType.FUNCTIONAL_REQUIREMENT;break;case 25:this.$=mt.RequirementType.INTERFACE_REQUIREMENT;break;case 26:this.$=mt.RequirementType.PERFORMANCE_REQUIREMENT;break;case 27:this.$=mt.RequirementType.PHYSICAL_REQUIREMENT;break;case 28:this.$=mt.RequirementType.DESIGN_CONSTRAINT;break;case 29:this.$=mt.RiskLevel.LOW_RISK;break;case 30:this.$=mt.RiskLevel.MED_RISK;break;case 31:this.$=mt.RiskLevel.HIGH_RISK;break;case 32:this.$=mt.VerifyType.VERIFY_ANALYSIS;break;case 33:this.$=mt.VerifyType.VERIFY_DEMONSTRATION;break;case 34:this.$=mt.VerifyType.VERIFY_INSPECTION;break;case 35:this.$=mt.VerifyType.VERIFY_TEST;break;case 36:mt.addElement(kt[se-3]);break;case 37:mt.setNewElementType(kt[se-2]);break;case 38:mt.setNewElementDocRef(kt[se-2]);break;case 41:mt.addRelationship(kt[se-2],kt[se],kt[se-4]);break;case 42:mt.addRelationship(kt[se-2],kt[se-4],kt[se]);break;case 43:this.$=mt.Relationships.CONTAINS;break;case 44:this.$=mt.Relationships.COPIES;break;case 45:this.$=mt.Relationships.DERIVES;break;case 46:this.$=mt.Relationships.SATISFIES;break;case 47:this.$=mt.Relationships.VERIFIES;break;case 48:this.$=mt.Relationships.REFINES;break;case 49:this.$=mt.Relationships.TRACES}},table:[{3:1,4:2,6:x,9:4,14:g},{1:[3]},{3:7,4:2,5:[1,6],6:x,9:4,14:g},{5:[1,8]},{10:9,15:[1,10]},{15:[2,6]},{3:11,4:2,6:x,9:4,14:g},{1:[2,2]},{4:16,5:k,7:12,8:E,9:4,14:g,18:13,19:14,20:15,21:18,27:20,35:A,36:I,37:O,38:Y,39:H,40:X,48:Z,66:et,67:Q},{11:29,12:[1,30],17:gt},h([12,17],[2,7]),{1:[2,1]},{8:[1,32]},{4:16,5:k,7:33,8:E,9:4,14:g,18:13,19:14,20:15,21:18,27:20,35:A,36:I,37:O,38:Y,39:H,40:X,48:Z,66:et,67:Q},{4:16,5:k,7:34,8:E,9:4,14:g,18:13,19:14,20:15,21:18,27:20,35:A,36:I,37:O,38:Y,39:H,40:X,48:Z,66:et,67:Q},{4:16,5:k,7:35,8:E,9:4,14:g,18:13,19:14,20:15,21:18,27:20,35:A,36:I,37:O,38:Y,39:H,40:X,48:Z,66:et,67:Q},{4:16,5:k,7:36,8:E,9:4,14:g,18:13,19:14,20:15,21:18,27:20,35:A,36:I,37:O,38:Y,39:H,40:X,48:Z,66:et,67:Q},{4:16,5:k,7:37,8:E,9:4,14:g,18:13,19:14,20:15,21:18,27:20,35:A,36:I,37:O,38:Y,39:H,40:X,48:Z,66:et,67:Q},{22:38,66:[1,39],67:[1,40]},{49:41,66:[1,42],67:[1,43]},{55:[1,44],57:[1,45]},h(ht,[2,23]),h(ht,[2,24]),h(ht,[2,25]),h(ht,[2,26]),h(ht,[2,27]),h(ht,[2,28]),h(xt,[2,52]),h(xt,[2,53]),h(Tt,[2,4]),{13:46,16:[1,47]},h(Tt,[2,9]),{1:[2,3]},{8:[2,11]},{8:[2,12]},{8:[2,13]},{8:[2,14]},{8:[2,15]},{23:[1,48]},{23:[2,50]},{23:[2,51]},{23:[1,49]},{23:[2,56]},{23:[2,57]},{56:50,59:ne,60:bt,61:at,62:nt,63:Dt,64:Lt,65:tt},{56:58,59:ne,60:bt,61:at,62:nt,63:Dt,64:Lt,65:tt},{11:59,17:gt},{17:[2,8]},{5:[1,60]},{5:[1,61]},{57:[1,62]},h(lt,[2,43]),h(lt,[2,44]),h(lt,[2,45]),h(lt,[2,46]),h(lt,[2,47]),h(lt,[2,48]),h(lt,[2,49]),{58:[1,63]},h(Tt,[2,5]),{5:q,24:64,25:Ut,28:G,30:me,32:ve,34:jt},{5:ie,34:he,50:71,51:pe,53:le},{27:76,66:et,67:Q},{27:77,66:et,67:Q},h(oe,[2,16]),{26:[1,78]},{26:[1,79]},{26:[1,80]},{26:[1,81]},{5:q,24:82,25:Ut,28:G,30:me,32:ve,34:jt},h(oe,[2,22]),h(oe,[2,36]),{26:[1,83]},{26:[1,84]},{5:ie,34:he,50:85,51:pe,53:le},h(oe,[2,40]),h(oe,[2,41]),h(oe,[2,42]),{27:86,66:et,67:Q},{29:87,66:[1,88],67:[1,89]},{31:90,41:[1,91],42:[1,92],43:[1,93]},{33:94,44:[1,95],45:[1,96],46:[1,97],47:[1,98]},h(oe,[2,21]),{52:99,66:[1,100],67:[1,101]},{54:102,66:[1,103],67:[1,104]},h(oe,[2,39]),{5:[1,105]},{5:[1,106]},{5:[2,54]},{5:[2,55]},{5:[1,107]},{5:[2,29]},{5:[2,30]},{5:[2,31]},{5:[1,108]},{5:[2,32]},{5:[2,33]},{5:[2,34]},{5:[2,35]},{5:[1,109]},{5:[2,58]},{5:[2,59]},{5:[1,110]},{5:[2,60]},{5:[2,61]},{5:q,24:111,25:Ut,28:G,30:me,32:ve,34:jt},{5:q,24:112,25:Ut,28:G,30:me,32:ve,34:jt},{5:q,24:113,25:Ut,28:G,30:me,32:ve,34:jt},{5:q,24:114,25:Ut,28:G,30:me,32:ve,34:jt},{5:ie,34:he,50:115,51:pe,53:le},{5:ie,34:he,50:116,51:pe,53:le},h(oe,[2,17]),h(oe,[2,18]),h(oe,[2,19]),h(oe,[2,20]),h(oe,[2,37]),h(oe,[2,38])],defaultActions:{5:[2,6],7:[2,2],11:[2,1],32:[2,3],33:[2,11],34:[2,12],35:[2,13],36:[2,14],37:[2,15],39:[2,50],40:[2,51],42:[2,56],43:[2,57],47:[2,8],88:[2,54],89:[2,55],91:[2,29],92:[2,30],93:[2,31],95:[2,32],96:[2,33],97:[2,34],98:[2,35],100:[2,58],101:[2,59],103:[2,60],104:[2,61]},parseError:function(Qt,St){if(!St.recoverable){var Kt=new Error(Qt);throw Kt.hash=St,Kt}this.trace(Qt)},parse:function(Qt){var St=this,Kt=[0],mt=[],Ht=[null],kt=[],It=this.table,se="",Se=0,be=0,Ae=0,cn=2,De=1,Be=kt.slice.call(arguments,1),Le=Object.create(this.lexer),Ze={yy:{}};for(var Ke in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Ke)&&(Ze.yy[Ke]=this.yy[Ke]);Le.setInput(Qt,Ze.yy),Ze.yy.lexer=Le,Ze.yy.parser=this,Le.yylloc===void 0&&(Le.yylloc={});var Je=Le.yylloc;kt.push(Je);var $e=Le.options&&Le.options.ranges;function Ue(){var bn;return typeof(bn=mt.pop()||Le.lex()||De)!="number"&&(bn instanceof Array&&(bn=(mt=bn).pop()),bn=St.symbols_[bn]||bn),bn}typeof Ze.yy.parseError=="function"?this.parseError=Ze.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var Yn,Me,un,gn,kr,kn,sr,rn,ln,Ye={};;){if(un=Kt[Kt.length-1],this.defaultActions[un]?gn=this.defaultActions[un]:(Yn==null&&(Yn=Ue()),gn=It[un]&&It[un][Yn]),gn===void 0||!gn.length||!gn[0]){var mn="";for(kn in ln=[],It[un])this.terminals_[kn]&&kn>cn&&ln.push("'"+this.terminals_[kn]+"'");mn=Le.showPosition?"Parse error on line "+(Se+1)+`: +`+Le.showPosition()+` +Expecting `+ln.join(", ")+", got '"+(this.terminals_[Yn]||Yn)+"'":"Parse error on line "+(Se+1)+": Unexpected "+(Yn==De?"end of input":"'"+(this.terminals_[Yn]||Yn)+"'"),this.parseError(mn,{text:Le.match,token:this.terminals_[Yn]||Yn,line:Le.yylineno,loc:Je,expected:ln})}if(gn[0]instanceof Array&&gn.length>1)throw new Error("Parse Error: multiple actions possible at state: "+un+", token: "+Yn);switch(gn[0]){case 1:Kt.push(Yn),Ht.push(Le.yytext),kt.push(Le.yylloc),Kt.push(gn[1]),Yn=null,Me?(Yn=Me,Me=null):(be=Le.yyleng,se=Le.yytext,Se=Le.yylineno,Je=Le.yylloc,Ae>0);break;case 2:if(sr=this.productions_[gn[1]][1],Ye.$=Ht[Ht.length-sr],Ye._$={first_line:kt[kt.length-(sr||1)].first_line,last_line:kt[kt.length-1].last_line,first_column:kt[kt.length-(sr||1)].first_column,last_column:kt[kt.length-1].last_column},$e&&(Ye._$.range=[kt[kt.length-(sr||1)].range[0],kt[kt.length-1].range[1]]),(kr=this.performAction.apply(Ye,[se,be,Se,Ze.yy,gn[1],Ht,kt].concat(Be)))!==void 0)return kr;sr&&(Kt=Kt.slice(0,-1*sr*2),Ht=Ht.slice(0,-1*sr),kt=kt.slice(0,-1*sr)),Kt.push(this.productions_[gn[1]][0]),Ht.push(Ye.$),kt.push(Ye._$),rn=It[Kt[Kt.length-2]][Kt[Kt.length-1]],Kt.push(rn);break;case 3:return!0}}return!0}},fe={EOF:1,parseError:function(Qt,St){if(!this.yy.parser)throw new Error(Qt);this.yy.parser.parseError(Qt,St)},setInput:function(Qt,St){return this.yy=St||this.yy||{},this._input=Qt,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 Qt=this._input[0];return this.yytext+=Qt,this.yyleng++,this.offset++,this.match+=Qt,this.matched+=Qt,Qt.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),Qt},unput:function(Qt){var St=Qt.length,Kt=Qt.split(/(?:\r\n?|\n)/g);this._input=Qt+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-St),this.offset-=St;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),Kt.length-1&&(this.yylineno-=Kt.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:Kt?(Kt.length===mt.length?this.yylloc.first_column:0)+mt[mt.length-Kt.length].length-Kt[0].length:this.yylloc.first_column-St},this.options.ranges&&(this.yylloc.range=[Ht[0],Ht[0]+this.yyleng-St]),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(Qt){this.unput(this.match.slice(Qt))},pastInput:function(){var Qt=this.matched.substr(0,this.matched.length-this.match.length);return(Qt.length>20?"...":"")+Qt.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var Qt=this.match;return Qt.length<20&&(Qt+=this._input.substr(0,20-Qt.length)),(Qt.substr(0,20)+(Qt.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var Qt=this.pastInput(),St=new Array(Qt.length+1).join("-");return Qt+this.upcomingInput()+` +`+St+"^"},test_match:function(Qt,St){var Kt,mt,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))),(mt=Qt[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+Qt[0].length},this.yytext+=Qt[0],this.match+=Qt[0],this.matches=Qt,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(Qt[0].length),this.matched+=Qt[0],Kt=this.performAction.call(this,this.yy,this,St,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),Kt)return Kt;if(this._backtrack){for(var kt in Ht)this[kt]=Ht[kt];return!1}return!1},next:function(){if(this.done)return this.EOF;var Qt,St,Kt,mt;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var Ht=this._currentRules(),kt=0;ktSt[0].length)){if(St=Kt,mt=kt,this.options.backtrack_lexer){if((Qt=this.test_match(Kt,Ht[kt]))!==!1)return Qt;if(this._backtrack){St=!1;continue}return!1}if(!this.options.flex)break}return St?(Qt=this.test_match(St,Ht[mt]))!==!1&&Qt: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(Qt){this.conditionStack.push(Qt)},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(Qt){return(Qt=this.conditionStack.length-1-Math.abs(Qt||0))>=0?this.conditionStack[Qt]:"INITIAL"},pushState:function(Qt){this.begin(Qt)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(Qt,St,Kt,mt){switch(Kt){case 0:return this.begin("open_directive"),14;case 1:return this.begin("type_directive"),15;case 2:return this.popState(),this.begin("arg_directive"),12;case 3:return this.popState(),this.popState(),17;case 4:return 16;case 5:return 5;case 6:case 7:case 8:break;case 9:return 8;case 10:return 6;case 11:return 23;case 12:return 34;case 13:return 26;case 14:return 25;case 15:return 28;case 16:return 30;case 17:return 32;case 18:return 35;case 19:return 36;case 20:return 37;case 21:return 38;case 22:return 39;case 23:return 40;case 24:return 41;case 25:return 42;case 26:return 43;case 27:return 44;case 28:return 45;case 29:return 46;case 30:return 47;case 31:return 48;case 32:return 59;case 33:return 60;case 34:return 61;case 35:return 62;case 36:return 63;case 37:return 64;case 38:return 65;case 39:return 51;case 40:return 53;case 41:return 55;case 42:return 58;case 43:return 57;case 44:this.begin("string");break;case 45:this.popState();break;case 46:return"qString";case 47:return St.yytext=St.yytext.trim(),66}},rules:[/^(?:%%\{)/i,/^(?:((?:(?!\}%%)[^:.])*))/i,/^(?::)/i,/^(?:\}%%)/i,/^(?:((?:(?!\}%%).|\n)*))/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:{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:[45,46],inclusive:!1},INITIAL:{rules:[0,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,47],inclusive:!0}}};function ae(){this.yy={}}return wn.lexer=fe,ae.prototype=wn,wn.Parser=ae,new ae}();M.parser=m,M.Parser=m.Parser,M.parse=function(){return m.parse.apply(m,arguments)},M.main=function(h){h[1]||(console.log("Usage: "+h[0]+" FILE"),process.exit(1));var x=f(8800).readFileSync(f(6470).normalize(h[1]),"utf8");return M.parser.parse(x)},f.c[f.s]===S&&M.main(process.argv.slice(1))},6876:(S,M,f)=>{S=f.nmd(S);var m=function(){var h=function(fe,ae,Qt,St){for(Qt=Qt||{},St=fe.length;St--;Qt[fe[St]]=ae);return Qt},x=[1,2],g=[1,3],k=[1,5],E=[1,7],A=[2,5],I=[1,15],O=[1,17],Y=[1,18],H=[1,19],X=[1,21],Z=[1,22],et=[1,23],Q=[1,29],gt=[1,30],ht=[1,31],xt=[1,32],Tt=[1,33],ne=[1,34],bt=[1,35],at=[1,36],nt=[1,39],Dt=[1,40],Lt=[1,41],tt=[1,42],lt=[1,43],q=[1,44],Ut=[1,47],G=[1,4,5,16,20,22,23,24,30,31,32,33,34,35,36,37,39,41,42,43,48,49,50,51,59,69],me=[4,5,16,20,22,23,24,30,31,32,33,34,35,36,37,39,43,48,49,50,51,59,69],ve=[4,5,16,20,22,23,24,30,31,32,33,34,35,36,37,39,42,43,48,49,50,51,59,69],jt=[4,5,16,20,22,23,24,30,31,32,33,34,35,36,37,39,41,43,48,49,50,51,59,69],ie=[57,58,59],he=[1,104],pe=[1,4,5,7,16,20,22,23,24,30,31,32,33,34,35,36,37,39,41,42,43,48,49,50,51,59,69],le={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,activate:23,deactivate:24,note_statement:25,links_statement:26,link_statement:27,properties_statement:28,details_statement:29,title:30,legacy_title:31,accDescription:32,loop:33,end:34,rect:35,opt:36,alt:37,else_sections:38,par:39,par_sections:40,and:41,else:42,note:43,placement:44,text2:45,over:46,actor_pair:47,links:48,link:49,properties:50,details:51,spaceList:52,",":53,left_of:54,right_of:55,signaltype:56,"+":57,"-":58,ACTOR:59,SOLID_OPEN_ARROW:60,DOTTED_OPEN_ARROW:61,SOLID_ARROW:62,DOTTED_ARROW:63,SOLID_CROSS:64,DOTTED_CROSS:65,SOLID_POINT:66,DOTTED_POINT:67,TXT:68,open_directive:69,type_directive:70,arg_directive:71,close_directive:72,$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:"activate",24:"deactivate",30:"title",31:"legacy_title",32:"accDescription",33:"loop",34:"end",35:"rect",36:"opt",37:"alt",39:"par",41:"and",42:"else",43:"note",46:"over",48:"links",49:"link",50:"properties",51:"details",53:",",54:"left_of",55:"right_of",57:"+",58:"-",59:"ACTOR",60:"SOLID_OPEN_ARROW",61:"DOTTED_OPEN_ARROW",62:"SOLID_ARROW",63:"DOTTED_ARROW",64:"SOLID_CROSS",65:"DOTTED_CROSS",66:"SOLID_POINT",67:"DOTTED_POINT",68:"TXT",69:"open_directive",70:"type_directive",71:"arg_directive",72:"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,1],[10,3],[10,3],[10,2],[10,2],[10,2],[10,2],[10,2],[10,1],[10,1],[10,1],[10,4],[10,4],[10,4],[10,4],[10,4],[10,1],[40,1],[40,4],[38,1],[38,4],[25,4],[25,4],[26,3],[27,3],[28,3],[29,3],[52,2],[52,1],[47,3],[47,1],[44,1],[44,1],[21,5],[21,5],[21,4],[17,1],[56,1],[56,1],[56,1],[56,1],[56,1],[56,1],[56,1],[56,1],[45,1],[11,1],[12,1],[15,1],[13,1]],performAction:function(fe,ae,Qt,St,Kt,mt,Ht){var kt=mt.length-1;switch(Kt){case 4:return St.apply(mt[kt]),mt[kt];case 5:case 9:this.$=[];break;case 6:mt[kt-1].push(mt[kt]),this.$=mt[kt-1];break;case 7:case 8:case 47:this.$=mt[kt];break;case 12:mt[kt-3].type="addParticipant",mt[kt-3].description=St.parseMessage(mt[kt-1]),this.$=mt[kt-3];break;case 13:mt[kt-1].type="addParticipant",this.$=mt[kt-1];break;case 14:mt[kt-3].type="addActor",mt[kt-3].description=St.parseMessage(mt[kt-1]),this.$=mt[kt-3];break;case 15:mt[kt-1].type="addActor",this.$=mt[kt-1];break;case 17:St.enableSequenceNumbers();break;case 18:this.$={type:"activeStart",signalType:St.LINETYPE.ACTIVE_START,actor:mt[kt-1]};break;case 19:this.$={type:"activeEnd",signalType:St.LINETYPE.ACTIVE_END,actor:mt[kt-1]};break;case 25:St.setTitle(mt[kt].substring(6)),this.$=mt[kt].substring(6);break;case 26:St.setTitle(mt[kt].substring(7)),this.$=mt[kt].substring(7);break;case 27:St.setAccDescription(mt[kt].substring(15)),this.$=mt[kt].substring(15);break;case 28:mt[kt-1].unshift({type:"loopStart",loopText:St.parseMessage(mt[kt-2]),signalType:St.LINETYPE.LOOP_START}),mt[kt-1].push({type:"loopEnd",loopText:mt[kt-2],signalType:St.LINETYPE.LOOP_END}),this.$=mt[kt-1];break;case 29:mt[kt-1].unshift({type:"rectStart",color:St.parseMessage(mt[kt-2]),signalType:St.LINETYPE.RECT_START}),mt[kt-1].push({type:"rectEnd",color:St.parseMessage(mt[kt-2]),signalType:St.LINETYPE.RECT_END}),this.$=mt[kt-1];break;case 30:mt[kt-1].unshift({type:"optStart",optText:St.parseMessage(mt[kt-2]),signalType:St.LINETYPE.OPT_START}),mt[kt-1].push({type:"optEnd",optText:St.parseMessage(mt[kt-2]),signalType:St.LINETYPE.OPT_END}),this.$=mt[kt-1];break;case 31:mt[kt-1].unshift({type:"altStart",altText:St.parseMessage(mt[kt-2]),signalType:St.LINETYPE.ALT_START}),mt[kt-1].push({type:"altEnd",signalType:St.LINETYPE.ALT_END}),this.$=mt[kt-1];break;case 32:mt[kt-1].unshift({type:"parStart",parText:St.parseMessage(mt[kt-2]),signalType:St.LINETYPE.PAR_START}),mt[kt-1].push({type:"parEnd",signalType:St.LINETYPE.PAR_END}),this.$=mt[kt-1];break;case 35:this.$=mt[kt-3].concat([{type:"and",parText:St.parseMessage(mt[kt-1]),signalType:St.LINETYPE.PAR_AND},mt[kt]]);break;case 37:this.$=mt[kt-3].concat([{type:"else",altText:St.parseMessage(mt[kt-1]),signalType:St.LINETYPE.ALT_ELSE},mt[kt]]);break;case 38:this.$=[mt[kt-1],{type:"addNote",placement:mt[kt-2],actor:mt[kt-1].actor,text:mt[kt]}];break;case 39:mt[kt-2]=[].concat(mt[kt-1],mt[kt-1]).slice(0,2),mt[kt-2][0]=mt[kt-2][0].actor,mt[kt-2][1]=mt[kt-2][1].actor,this.$=[mt[kt-1],{type:"addNote",placement:St.PLACEMENT.OVER,actor:mt[kt-2].slice(0,2),text:mt[kt]}];break;case 40:this.$=[mt[kt-1],{type:"addLinks",actor:mt[kt-1].actor,text:mt[kt]}];break;case 41:this.$=[mt[kt-1],{type:"addALink",actor:mt[kt-1].actor,text:mt[kt]}];break;case 42:this.$=[mt[kt-1],{type:"addProperties",actor:mt[kt-1].actor,text:mt[kt]}];break;case 43:this.$=[mt[kt-1],{type:"addDetails",actor:mt[kt-1].actor,text:mt[kt]}];break;case 46:this.$=[mt[kt-2],mt[kt]];break;case 48:this.$=St.PLACEMENT.LEFTOF;break;case 49:this.$=St.PLACEMENT.RIGHTOF;break;case 50:this.$=[mt[kt-4],mt[kt-1],{type:"addMessage",from:mt[kt-4].actor,to:mt[kt-1].actor,signalType:mt[kt-3],msg:mt[kt]},{type:"activeStart",signalType:St.LINETYPE.ACTIVE_START,actor:mt[kt-1]}];break;case 51:this.$=[mt[kt-4],mt[kt-1],{type:"addMessage",from:mt[kt-4].actor,to:mt[kt-1].actor,signalType:mt[kt-3],msg:mt[kt]},{type:"activeEnd",signalType:St.LINETYPE.ACTIVE_END,actor:mt[kt-4]}];break;case 52:this.$=[mt[kt-3],mt[kt-1],{type:"addMessage",from:mt[kt-3].actor,to:mt[kt-1].actor,signalType:mt[kt-2],msg:mt[kt]}];break;case 53:this.$={type:"addParticipant",actor:mt[kt]};break;case 54:this.$=St.LINETYPE.SOLID_OPEN;break;case 55:this.$=St.LINETYPE.DOTTED_OPEN;break;case 56:this.$=St.LINETYPE.SOLID;break;case 57:this.$=St.LINETYPE.DOTTED;break;case 58:this.$=St.LINETYPE.SOLID_CROSS;break;case 59:this.$=St.LINETYPE.DOTTED_CROSS;break;case 60:this.$=St.LINETYPE.SOLID_POINT;break;case 61:this.$=St.LINETYPE.DOTTED_POINT;break;case 62:this.$=St.parseMessage(mt[kt].trim().substring(1));break;case 63:St.parseDirective("%%{","open_directive");break;case 64:St.parseDirective(mt[kt],"type_directive");break;case 65:mt[kt]=mt[kt].trim().replace(/'/g,'"'),St.parseDirective(mt[kt],"arg_directive");break;case 66:St.parseDirective("}%%","close_directive","sequence")}},table:[{3:1,4:x,5:g,6:4,7:k,11:6,69:E},{1:[3]},{3:8,4:x,5:g,6:4,7:k,11:6,69:E},{3:9,4:x,5:g,6:4,7:k,11:6,69:E},{3:10,4:x,5:g,6:4,7:k,11:6,69:E},h([1,4,5,16,20,22,23,24,30,31,32,33,35,36,37,39,43,48,49,50,51,59,69],A,{8:11}),{12:12,70:[1,13]},{70:[2,63]},{1:[2,1]},{1:[2,2]},{1:[2,3]},{1:[2,4],4:I,5:O,6:37,9:14,10:16,11:6,16:Y,17:38,20:H,21:20,22:X,23:Z,24:et,25:24,26:25,27:26,28:27,29:28,30:Q,31:gt,32:ht,33:xt,35:Tt,36:ne,37:bt,39:at,43:nt,48:Dt,49:Lt,50:tt,51:lt,59:q,69:E},{13:45,14:[1,46],72:Ut},h([14,72],[2,64]),h(G,[2,6]),{6:37,10:48,11:6,16:Y,17:38,20:H,21:20,22:X,23:Z,24:et,25:24,26:25,27:26,28:27,29:28,30:Q,31:gt,32:ht,33:xt,35:Tt,36:ne,37:bt,39:at,43:nt,48:Dt,49:Lt,50:tt,51:lt,59:q,69:E},h(G,[2,8]),h(G,[2,9]),{17:49,59:q},{17:50,59:q},{5:[1,51]},h(G,[2,17]),{17:52,59:q},{17:53,59:q},{5:[1,54]},{5:[1,55]},{5:[1,56]},{5:[1,57]},{5:[1,58]},h(G,[2,25]),h(G,[2,26]),h(G,[2,27]),{19:[1,59]},{19:[1,60]},{19:[1,61]},{19:[1,62]},{19:[1,63]},h(G,[2,33]),{56:64,60:[1,65],61:[1,66],62:[1,67],63:[1,68],64:[1,69],65:[1,70],66:[1,71],67:[1,72]},{44:73,46:[1,74],54:[1,75],55:[1,76]},{17:77,59:q},{17:78,59:q},{17:79,59:q},{17:80,59:q},h([5,18,53,60,61,62,63,64,65,66,67,68],[2,53]),{5:[1,81]},{15:82,71:[1,83]},{5:[2,66]},h(G,[2,7]),{5:[1,85],18:[1,84]},{5:[1,87],18:[1,86]},h(G,[2,16]),{5:[1,88]},{5:[1,89]},h(G,[2,20]),h(G,[2,21]),h(G,[2,22]),h(G,[2,23]),h(G,[2,24]),h(me,A,{8:90}),h(me,A,{8:91}),h(me,A,{8:92}),h(ve,A,{38:93,8:94}),h(jt,A,{40:95,8:96}),{17:99,57:[1,97],58:[1,98],59:q},h(ie,[2,54]),h(ie,[2,55]),h(ie,[2,56]),h(ie,[2,57]),h(ie,[2,58]),h(ie,[2,59]),h(ie,[2,60]),h(ie,[2,61]),{17:100,59:q},{17:102,47:101,59:q},{59:[2,48]},{59:[2,49]},{45:103,68:he},{45:105,68:he},{45:106,68:he},{45:107,68:he},h(pe,[2,10]),{13:108,72:Ut},{72:[2,65]},{19:[1,109]},h(G,[2,13]),{19:[1,110]},h(G,[2,15]),h(G,[2,18]),h(G,[2,19]),{4:I,5:O,6:37,9:14,10:16,11:6,16:Y,17:38,20:H,21:20,22:X,23:Z,24:et,25:24,26:25,27:26,28:27,29:28,30:Q,31:gt,32:ht,33:xt,34:[1,111],35:Tt,36:ne,37:bt,39:at,43:nt,48:Dt,49:Lt,50:tt,51:lt,59:q,69:E},{4:I,5:O,6:37,9:14,10:16,11:6,16:Y,17:38,20:H,21:20,22:X,23:Z,24:et,25:24,26:25,27:26,28:27,29:28,30:Q,31:gt,32:ht,33:xt,34:[1,112],35:Tt,36:ne,37:bt,39:at,43:nt,48:Dt,49:Lt,50:tt,51:lt,59:q,69:E},{4:I,5:O,6:37,9:14,10:16,11:6,16:Y,17:38,20:H,21:20,22:X,23:Z,24:et,25:24,26:25,27:26,28:27,29:28,30:Q,31:gt,32:ht,33:xt,34:[1,113],35:Tt,36:ne,37:bt,39:at,43:nt,48:Dt,49:Lt,50:tt,51:lt,59:q,69:E},{34:[1,114]},{4:I,5:O,6:37,9:14,10:16,11:6,16:Y,17:38,20:H,21:20,22:X,23:Z,24:et,25:24,26:25,27:26,28:27,29:28,30:Q,31:gt,32:ht,33:xt,34:[2,36],35:Tt,36:ne,37:bt,39:at,42:[1,115],43:nt,48:Dt,49:Lt,50:tt,51:lt,59:q,69:E},{34:[1,116]},{4:I,5:O,6:37,9:14,10:16,11:6,16:Y,17:38,20:H,21:20,22:X,23:Z,24:et,25:24,26:25,27:26,28:27,29:28,30:Q,31:gt,32:ht,33:xt,34:[2,34],35:Tt,36:ne,37:bt,39:at,41:[1,117],43:nt,48:Dt,49:Lt,50:tt,51:lt,59:q,69:E},{17:118,59:q},{17:119,59:q},{45:120,68:he},{45:121,68:he},{45:122,68:he},{53:[1,123],68:[2,47]},{5:[2,40]},{5:[2,62]},{5:[2,41]},{5:[2,42]},{5:[2,43]},{5:[1,124]},{5:[1,125]},{5:[1,126]},h(G,[2,28]),h(G,[2,29]),h(G,[2,30]),h(G,[2,31]),{19:[1,127]},h(G,[2,32]),{19:[1,128]},{45:129,68:he},{45:130,68:he},{5:[2,52]},{5:[2,38]},{5:[2,39]},{17:131,59:q},h(pe,[2,11]),h(G,[2,12]),h(G,[2,14]),h(ve,A,{8:94,38:132}),h(jt,A,{8:96,40:133}),{5:[2,50]},{5:[2,51]},{68:[2,46]},{34:[2,37]},{34:[2,35]}],defaultActions:{7:[2,63],8:[2,1],9:[2,2],10:[2,3],47:[2,66],75:[2,48],76:[2,49],83:[2,65],103:[2,40],104:[2,62],105:[2,41],106:[2,42],107:[2,43],120:[2,52],121:[2,38],122:[2,39],129:[2,50],130:[2,51],131:[2,46],132:[2,37],133:[2,35]},parseError:function(fe,ae){if(!ae.recoverable){var Qt=new Error(fe);throw Qt.hash=ae,Qt}this.trace(fe)},parse:function(fe){var ae=this,Qt=[0],St=[],Kt=[null],mt=[],Ht=this.table,kt="",It=0,se=0,Se=0,be=2,Ae=1,cn=mt.slice.call(arguments,1),De=Object.create(this.lexer),Be={yy:{}};for(var Le in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Le)&&(Be.yy[Le]=this.yy[Le]);De.setInput(fe,Be.yy),Be.yy.lexer=De,Be.yy.parser=this,De.yylloc===void 0&&(De.yylloc={});var Ze=De.yylloc;mt.push(Ze);var Ke=De.options&&De.options.ranges;function Je(){var Ye;return typeof(Ye=St.pop()||De.lex()||Ae)!="number"&&(Ye instanceof Array&&(Ye=(St=Ye).pop()),Ye=ae.symbols_[Ye]||Ye),Ye}typeof Be.yy.parseError=="function"?this.parseError=Be.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var $e,Ue,Yn,Me,un,gn,kr,kn,sr,rn={};;){if(Yn=Qt[Qt.length-1],this.defaultActions[Yn]?Me=this.defaultActions[Yn]:($e==null&&($e=Je()),Me=Ht[Yn]&&Ht[Yn][$e]),Me===void 0||!Me.length||!Me[0]){var ln="";for(gn in sr=[],Ht[Yn])this.terminals_[gn]&&gn>be&&sr.push("'"+this.terminals_[gn]+"'");ln=De.showPosition?"Parse error on line "+(It+1)+`: +`+De.showPosition()+` +Expecting `+sr.join(", ")+", got '"+(this.terminals_[$e]||$e)+"'":"Parse error on line "+(It+1)+": Unexpected "+($e==Ae?"end of input":"'"+(this.terminals_[$e]||$e)+"'"),this.parseError(ln,{text:De.match,token:this.terminals_[$e]||$e,line:De.yylineno,loc:Ze,expected:sr})}if(Me[0]instanceof Array&&Me.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Yn+", token: "+$e);switch(Me[0]){case 1:Qt.push($e),Kt.push(De.yytext),mt.push(De.yylloc),Qt.push(Me[1]),$e=null,Ue?($e=Ue,Ue=null):(se=De.yyleng,kt=De.yytext,It=De.yylineno,Ze=De.yylloc,Se>0);break;case 2:if(kr=this.productions_[Me[1]][1],rn.$=Kt[Kt.length-kr],rn._$={first_line:mt[mt.length-(kr||1)].first_line,last_line:mt[mt.length-1].last_line,first_column:mt[mt.length-(kr||1)].first_column,last_column:mt[mt.length-1].last_column},Ke&&(rn._$.range=[mt[mt.length-(kr||1)].range[0],mt[mt.length-1].range[1]]),(un=this.performAction.apply(rn,[kt,se,It,Be.yy,Me[1],Kt,mt].concat(cn)))!==void 0)return un;kr&&(Qt=Qt.slice(0,-1*kr*2),Kt=Kt.slice(0,-1*kr),mt=mt.slice(0,-1*kr)),Qt.push(this.productions_[Me[1]][0]),Kt.push(rn.$),mt.push(rn._$),kn=Ht[Qt[Qt.length-2]][Qt[Qt.length-1]],Qt.push(kn);break;case 3:return!0}}return!0}},oe={EOF:1,parseError:function(fe,ae){if(!this.yy.parser)throw new Error(fe);this.yy.parser.parseError(fe,ae)},setInput:function(fe,ae){return this.yy=ae||this.yy||{},this._input=fe,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 fe=this._input[0];return this.yytext+=fe,this.yyleng++,this.offset++,this.match+=fe,this.matched+=fe,fe.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),fe},unput:function(fe){var ae=fe.length,Qt=fe.split(/(?:\r\n?|\n)/g);this._input=fe+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-ae),this.offset-=ae;var St=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),Qt.length-1&&(this.yylineno-=Qt.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:Qt?(Qt.length===St.length?this.yylloc.first_column:0)+St[St.length-Qt.length].length-Qt[0].length:this.yylloc.first_column-ae},this.options.ranges&&(this.yylloc.range=[Kt[0],Kt[0]+this.yyleng-ae]),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(fe){this.unput(this.match.slice(fe))},pastInput:function(){var fe=this.matched.substr(0,this.matched.length-this.match.length);return(fe.length>20?"...":"")+fe.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var fe=this.match;return fe.length<20&&(fe+=this._input.substr(0,20-fe.length)),(fe.substr(0,20)+(fe.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var fe=this.pastInput(),ae=new Array(fe.length+1).join("-");return fe+this.upcomingInput()+` +`+ae+"^"},test_match:function(fe,ae){var Qt,St,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))),(St=fe[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=St.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:St?St[St.length-1].length-St[St.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+fe[0].length},this.yytext+=fe[0],this.match+=fe[0],this.matches=fe,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(fe[0].length),this.matched+=fe[0],Qt=this.performAction.call(this,this.yy,this,ae,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),Qt)return Qt;if(this._backtrack){for(var mt in Kt)this[mt]=Kt[mt];return!1}return!1},next:function(){if(this.done)return this.EOF;var fe,ae,Qt,St;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var Kt=this._currentRules(),mt=0;mtae[0].length)){if(ae=Qt,St=mt,this.options.backtrack_lexer){if((fe=this.test_match(Qt,Kt[mt]))!==!1)return fe;if(this._backtrack){ae=!1;continue}return!1}if(!this.options.flex)break}return ae?(fe=this.test_match(ae,Kt[St]))!==!1&&fe: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(fe){this.conditionStack.push(fe)},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(fe){return(fe=this.conditionStack.length-1-Math.abs(fe||0))>=0?this.conditionStack[fe]:"INITIAL"},pushState:function(fe){this.begin(fe)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(fe,ae,Qt,St){switch(Qt){case 0:return this.begin("open_directive"),69;case 1:return this.begin("type_directive"),70;case 2:return this.popState(),this.begin("arg_directive"),14;case 3:return this.popState(),this.popState(),72;case 4:return 71;case 5:case 41:case 54:return 5;case 6:case 7:case 8:case 9:case 10:break;case 11:return this.begin("ID"),16;case 12:return this.begin("ID"),20;case 13:return ae.yytext=ae.yytext.trim(),this.begin("ALIAS"),59;case 14:return this.popState(),this.popState(),this.begin("LINE"),18;case 15:return this.popState(),this.popState(),5;case 16:return this.begin("LINE"),33;case 17:return this.begin("LINE"),35;case 18:return this.begin("LINE"),36;case 19:return this.begin("LINE"),37;case 20:return this.begin("LINE"),42;case 21:return this.begin("LINE"),39;case 22:return this.begin("LINE"),41;case 23:return this.popState(),19;case 24:return 34;case 25:return 54;case 26:return 55;case 27:return 48;case 28:return 49;case 29:return 50;case 30:return 51;case 31:return 46;case 32:return 43;case 33:return this.begin("ID"),23;case 34:return this.begin("ID"),24;case 35:return 30;case 36:return 31;case 37:return 32;case 38:return 7;case 39:return 22;case 40:return 53;case 42:return ae.yytext=ae.yytext.trim(),59;case 43:return 62;case 44:return 63;case 45:return 60;case 46:return 61;case 47:return 64;case 48:return 65;case 49:return 66;case 50:return 67;case 51:return 68;case 52:return 57;case 53:return 58;case 55:return"INVALID"}},rules:[/^(?:%%\{)/i,/^(?:((?:(?!\}%%)[^:.])*))/i,/^(?::)/i,/^(?:\}%%)/i,/^(?:((?:(?!\}%%).|\n)*))/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:((?!\n)\s)+)/i,/^(?:#[^\n]*)/i,/^(?:%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\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,/^(?:(?:[:]?(?: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,/^(?:accDescription\s[^#\n;]+)/i,/^(?:sequenceDiagram\b)/i,/^(?:autonumber\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:{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,13],inclusive:!1},ALIAS:{rules:[7,8,14,15],inclusive:!1},LINE:{rules:[7,8,23],inclusive:!1},INITIAL:{rules:[0,5,6,8,9,10,11,12,16,17,18,19,20,21,22,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55],inclusive:!0}}};function wn(){this.yy={}}return le.lexer=oe,wn.prototype=le,le.Parser=wn,new wn}();M.parser=m,M.Parser=m.Parser,M.parse=function(){return m.parse.apply(m,arguments)},M.main=function(h){h[1]||(console.log("Usage: "+h[0]+" FILE"),process.exit(1));var x=f(1993).readFileSync(f(6470).normalize(h[1]),"utf8");return M.parser.parse(x)},f.c[f.s]===S&&M.main(process.argv.slice(1))},3584:(S,M,f)=>{S=f.nmd(S);var m=function(){var h=function(jt,ie,he,pe){for(he=he||{},pe=jt.length;pe--;he[jt[pe]]=ie);return he},x=[1,2],g=[1,3],k=[1,5],E=[1,7],A=[2,5],I=[1,15],O=[1,17],Y=[1,19],H=[1,20],X=[1,21],Z=[1,22],et=[1,30],Q=[1,23],gt=[1,24],ht=[1,25],xt=[1,26],Tt=[1,27],ne=[1,32],bt=[1,33],at=[1,34],nt=[1,35],Dt=[1,31],Lt=[1,38],tt=[1,4,5,14,15,17,19,20,22,23,24,25,26,27,36,37,38,39,42,45],lt=[1,4,5,12,13,14,15,17,19,20,22,23,24,25,26,27,36,37,38,39,42,45],q=[1,4,5,7,14,15,17,19,20,22,23,24,25,26,27,36,37,38,39,42,45],Ut=[4,5,14,15,17,19,20,22,23,24,25,26,27,36,37,38,39,42,45],G={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,openDirective:31,typeDirective:32,closeDirective:33,":":34,argDirective:35,direction_tb:36,direction_bt:37,direction_rl:38,direction_lr:39,eol:40,";":41,EDGE_STATE:42,left_of:43,right_of:44,open_directive:45,type_directive:46,arg_directive:47,close_directive:48,$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",34:":",36:"direction_tb",37:"direction_bt",38:"direction_rl",39:"direction_lr",41:";",42:"EDGE_STATE",43:"left_of",44:"right_of",45:"open_directive",46:"type_directive",47:"arg_directive",48:"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],[6,3],[6,5],[30,1],[30,1],[30,1],[30,1],[40,1],[40,1],[11,1],[11,1],[28,1],[28,1],[31,1],[32,1],[35,1],[33,1]],performAction:function(jt,ie,he,pe,le,oe,wn){var fe=oe.length-1;switch(le){case 4:return pe.setRootDoc(oe[fe]),oe[fe];case 5:this.$=[];break;case 6:oe[fe]!="nl"&&(oe[fe-1].push(oe[fe]),this.$=oe[fe-1]);break;case 7:case 8:case 36:case 37:this.$=oe[fe];break;case 9:this.$="nl";break;case 10:this.$={stmt:"state",id:oe[fe],type:"default",description:""};break;case 11:this.$={stmt:"state",id:oe[fe-1],type:"default",description:pe.trimColon(oe[fe])};break;case 12:this.$={stmt:"relation",state1:{stmt:"state",id:oe[fe-2],type:"default",description:""},state2:{stmt:"state",id:oe[fe],type:"default",description:""}};break;case 13:this.$={stmt:"relation",state1:{stmt:"state",id:oe[fe-3],type:"default",description:""},state2:{stmt:"state",id:oe[fe-1],type:"default",description:""},description:oe[fe].substr(1).trim()};break;case 17:this.$={stmt:"state",id:oe[fe-3],type:"default",description:"",doc:oe[fe-1]};break;case 18:var ae=oe[fe],Qt=oe[fe-2].trim();if(oe[fe].match(":")){var St=oe[fe].split(":");ae=St[0],Qt=[Qt,St[1]]}this.$={stmt:"state",id:ae,type:"default",description:Qt};break;case 19:this.$={stmt:"state",id:oe[fe-3],type:"default",description:oe[fe-5],doc:oe[fe-1]};break;case 20:this.$={stmt:"state",id:oe[fe],type:"fork"};break;case 21:this.$={stmt:"state",id:oe[fe],type:"join"};break;case 22:this.$={stmt:"state",id:oe[fe],type:"choice"};break;case 23:this.$={stmt:"state",id:pe.getDividerId(),type:"divider"};break;case 24:this.$={stmt:"state",id:oe[fe-1].trim(),note:{position:oe[fe-2].trim(),text:oe[fe].trim()}};break;case 30:pe.setDirection("TB"),this.$={stmt:"dir",value:"TB"};break;case 31:pe.setDirection("BT"),this.$={stmt:"dir",value:"BT"};break;case 32:pe.setDirection("RL"),this.$={stmt:"dir",value:"RL"};break;case 33:pe.setDirection("LR"),this.$={stmt:"dir",value:"LR"};break;case 40:pe.parseDirective("%%{","open_directive");break;case 41:pe.parseDirective(oe[fe],"type_directive");break;case 42:oe[fe]=oe[fe].trim().replace(/'/g,'"'),pe.parseDirective(oe[fe],"arg_directive");break;case 43:pe.parseDirective("}%%","close_directive","state")}},table:[{3:1,4:x,5:g,6:4,7:k,31:6,45:E},{1:[3]},{3:8,4:x,5:g,6:4,7:k,31:6,45:E},{3:9,4:x,5:g,6:4,7:k,31:6,45:E},{3:10,4:x,5:g,6:4,7:k,31:6,45:E},h([1,4,5,14,15,17,20,22,23,24,25,26,27,36,37,38,39,42,45],A,{8:11}),{32:12,46:[1,13]},{46:[2,40]},{1:[2,1]},{1:[2,2]},{1:[2,3]},{1:[2,4],4:I,5:O,6:28,9:14,10:16,11:18,14:Y,15:H,17:X,20:Z,22:et,23:Q,24:gt,25:ht,26:xt,27:Tt,30:29,31:6,36:ne,37:bt,38:at,39:nt,42:Dt,45:E},{33:36,34:[1,37],48:Lt},h([34,48],[2,41]),h(tt,[2,6]),{6:28,10:39,11:18,14:Y,15:H,17:X,20:Z,22:et,23:Q,24:gt,25:ht,26:xt,27:Tt,30:29,31:6,36:ne,37:bt,38:at,39:nt,42:Dt,45:E},h(tt,[2,8]),h(tt,[2,9]),h(tt,[2,10],{12:[1,40],13:[1,41]}),h(tt,[2,14]),{16:[1,42]},h(tt,[2,16],{18:[1,43]}),{21:[1,44]},h(tt,[2,20]),h(tt,[2,21]),h(tt,[2,22]),h(tt,[2,23]),{28:45,29:[1,46],43:[1,47],44:[1,48]},h(tt,[2,26]),h(tt,[2,27]),h(lt,[2,36]),h(lt,[2,37]),h(tt,[2,30]),h(tt,[2,31]),h(tt,[2,32]),h(tt,[2,33]),h(q,[2,28]),{35:49,47:[1,50]},h(q,[2,43]),h(tt,[2,7]),h(tt,[2,11]),{11:51,22:et,42:Dt},h(tt,[2,15]),h(Ut,A,{8:52}),{22:[1,53]},{22:[1,54]},{21:[1,55]},{22:[2,38]},{22:[2,39]},{33:56,48:Lt},{48:[2,42]},h(tt,[2,12],{12:[1,57]}),{4:I,5:O,6:28,9:14,10:16,11:18,14:Y,15:H,17:X,19:[1,58],20:Z,22:et,23:Q,24:gt,25:ht,26:xt,27:Tt,30:29,31:6,36:ne,37:bt,38:at,39:nt,42:Dt,45:E},h(tt,[2,18],{18:[1,59]}),{29:[1,60]},{22:[1,61]},h(q,[2,29]),h(tt,[2,13]),h(tt,[2,17]),h(Ut,A,{8:62}),h(tt,[2,24]),h(tt,[2,25]),{4:I,5:O,6:28,9:14,10:16,11:18,14:Y,15:H,17:X,19:[1,63],20:Z,22:et,23:Q,24:gt,25:ht,26:xt,27:Tt,30:29,31:6,36:ne,37:bt,38:at,39:nt,42:Dt,45:E},h(tt,[2,19])],defaultActions:{7:[2,40],8:[2,1],9:[2,2],10:[2,3],47:[2,38],48:[2,39],50:[2,42]},parseError:function(jt,ie){if(!ie.recoverable){var he=new Error(jt);throw he.hash=ie,he}this.trace(jt)},parse:function(jt){var ie=this,he=[0],pe=[],le=[null],oe=[],wn=this.table,fe="",ae=0,Qt=0,St=0,Kt=2,mt=1,Ht=oe.slice.call(arguments,1),kt=Object.create(this.lexer),It={yy:{}};for(var se in this.yy)Object.prototype.hasOwnProperty.call(this.yy,se)&&(It.yy[se]=this.yy[se]);kt.setInput(jt,It.yy),It.yy.lexer=kt,It.yy.parser=this,kt.yylloc===void 0&&(kt.yylloc={});var Se=kt.yylloc;oe.push(Se);var be=kt.options&&kt.options.ranges;function Ae(){var un;return typeof(un=pe.pop()||kt.lex()||mt)!="number"&&(un instanceof Array&&(un=(pe=un).pop()),un=ie.symbols_[un]||un),un}typeof It.yy.parseError=="function"?this.parseError=It.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var cn,De,Be,Le,Ze,Ke,Je,$e,Ue,Yn={};;){if(Be=he[he.length-1],this.defaultActions[Be]?Le=this.defaultActions[Be]:(cn==null&&(cn=Ae()),Le=wn[Be]&&wn[Be][cn]),Le===void 0||!Le.length||!Le[0]){var Me="";for(Ke in Ue=[],wn[Be])this.terminals_[Ke]&&Ke>Kt&&Ue.push("'"+this.terminals_[Ke]+"'");Me=kt.showPosition?"Parse error on line "+(ae+1)+`: +`+kt.showPosition()+` +Expecting `+Ue.join(", ")+", got '"+(this.terminals_[cn]||cn)+"'":"Parse error on line "+(ae+1)+": Unexpected "+(cn==mt?"end of input":"'"+(this.terminals_[cn]||cn)+"'"),this.parseError(Me,{text:kt.match,token:this.terminals_[cn]||cn,line:kt.yylineno,loc:Se,expected:Ue})}if(Le[0]instanceof Array&&Le.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Be+", token: "+cn);switch(Le[0]){case 1:he.push(cn),le.push(kt.yytext),oe.push(kt.yylloc),he.push(Le[1]),cn=null,De?(cn=De,De=null):(Qt=kt.yyleng,fe=kt.yytext,ae=kt.yylineno,Se=kt.yylloc,St>0);break;case 2:if(Je=this.productions_[Le[1]][1],Yn.$=le[le.length-Je],Yn._$={first_line:oe[oe.length-(Je||1)].first_line,last_line:oe[oe.length-1].last_line,first_column:oe[oe.length-(Je||1)].first_column,last_column:oe[oe.length-1].last_column},be&&(Yn._$.range=[oe[oe.length-(Je||1)].range[0],oe[oe.length-1].range[1]]),(Ze=this.performAction.apply(Yn,[fe,Qt,ae,It.yy,Le[1],le,oe].concat(Ht)))!==void 0)return Ze;Je&&(he=he.slice(0,-1*Je*2),le=le.slice(0,-1*Je),oe=oe.slice(0,-1*Je)),he.push(this.productions_[Le[1]][0]),le.push(Yn.$),oe.push(Yn._$),$e=wn[he[he.length-2]][he[he.length-1]],he.push($e);break;case 3:return!0}}return!0}},me={EOF:1,parseError:function(jt,ie){if(!this.yy.parser)throw new Error(jt);this.yy.parser.parseError(jt,ie)},setInput:function(jt,ie){return this.yy=ie||this.yy||{},this._input=jt,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 jt=this._input[0];return this.yytext+=jt,this.yyleng++,this.offset++,this.match+=jt,this.matched+=jt,jt.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),jt},unput:function(jt){var ie=jt.length,he=jt.split(/(?:\r\n?|\n)/g);this._input=jt+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-ie),this.offset-=ie;var pe=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 le=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:he?(he.length===pe.length?this.yylloc.first_column:0)+pe[pe.length-he.length].length-he[0].length:this.yylloc.first_column-ie},this.options.ranges&&(this.yylloc.range=[le[0],le[0]+this.yyleng-ie]),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(jt){this.unput(this.match.slice(jt))},pastInput:function(){var jt=this.matched.substr(0,this.matched.length-this.match.length);return(jt.length>20?"...":"")+jt.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var jt=this.match;return jt.length<20&&(jt+=this._input.substr(0,20-jt.length)),(jt.substr(0,20)+(jt.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var jt=this.pastInput(),ie=new Array(jt.length+1).join("-");return jt+this.upcomingInput()+` +`+ie+"^"},test_match:function(jt,ie){var he,pe,le;if(this.options.backtrack_lexer&&(le={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(le.yylloc.range=this.yylloc.range.slice(0))),(pe=jt[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=pe.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:pe?pe[pe.length-1].length-pe[pe.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+jt[0].length},this.yytext+=jt[0],this.match+=jt[0],this.matches=jt,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(jt[0].length),this.matched+=jt[0],he=this.performAction.call(this,this.yy,this,ie,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),he)return he;if(this._backtrack){for(var oe in le)this[oe]=le[oe];return!1}return!1},next:function(){if(this.done)return this.EOF;var jt,ie,he,pe;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var le=this._currentRules(),oe=0;oeie[0].length)){if(ie=he,pe=oe,this.options.backtrack_lexer){if((jt=this.test_match(he,le[oe]))!==!1)return jt;if(this._backtrack){ie=!1;continue}return!1}if(!this.options.flex)break}return ie?(jt=this.test_match(ie,le[pe]))!==!1&&jt: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(jt){this.conditionStack.push(jt)},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(jt){return(jt=this.conditionStack.length-1-Math.abs(jt||0))>=0?this.conditionStack[jt]:"INITIAL"},pushState:function(jt){this.begin(jt)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(jt,ie,he,pe){switch(he){case 0:case 26:return 36;case 1:case 27:return 37;case 2:case 28:return 38;case 3:case 29:return 39;case 4:return this.begin("open_directive"),45;case 5:return this.begin("type_directive"),46;case 6:return this.popState(),this.begin("arg_directive"),34;case 7:return this.popState(),this.popState(),48;case 8:return 47;case 9:case 10:case 12:case 13:case 14:case 15:case 39:case 45:break;case 11:case 59:return 5;case 16:return this.pushState("SCALE"),15;case 17:return 16;case 18:case 33:case 36:this.popState();break;case 19:this.pushState("STATE");break;case 20:case 23:return this.popState(),ie.yytext=ie.yytext.slice(0,-8).trim(),23;case 21:case 24:return this.popState(),ie.yytext=ie.yytext.slice(0,-8).trim(),24;case 22:case 25:return this.popState(),ie.yytext=ie.yytext.slice(0,-10).trim(),25;case 30:this.begin("STATE_STRING");break;case 31:return this.popState(),this.pushState("STATE_ID"),"AS";case 32:case 47:return this.popState(),"ID";case 34:return"STATE_DESCR";case 35:return 17;case 37:return this.popState(),this.pushState("struct"),18;case 38:return this.popState(),19;case 40:return this.begin("NOTE"),27;case 41:return this.popState(),this.pushState("NOTE_ID"),43;case 42:return this.popState(),this.pushState("NOTE_ID"),44;case 43:this.popState(),this.pushState("FLOATING_NOTE");break;case 44:return this.popState(),this.pushState("FLOATING_NOTE_ID"),"AS";case 46:return"NOTE_TEXT";case 48:return this.popState(),this.pushState("NOTE_TEXT"),22;case 49:return this.popState(),ie.yytext=ie.yytext.substr(2).trim(),29;case 50:return this.popState(),ie.yytext=ie.yytext.slice(0,-8).trim(),29;case 51:case 52:return 7;case 53:return 14;case 54:return 42;case 55:return 22;case 56:return ie.yytext=ie.yytext.trim(),12;case 57:return 13;case 58:return 26;case 60: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,/^(?: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,19,26,27,28,29,38,39,40,54,55,56,57,58],inclusive:!1},FLOATING_NOTE_ID:{rules:[47],inclusive:!1},FLOATING_NOTE:{rules:[44,45,46],inclusive:!1},NOTE_TEXT:{rules:[49,50],inclusive:!1},NOTE_ID:{rules:[48],inclusive:!1},NOTE:{rules:[41,42,43],inclusive:!1},SCALE:{rules:[17,18],inclusive:!1},ALIAS:{rules:[],inclusive:!1},STATE_ID:{rules:[32],inclusive:!1},STATE_STRING:{rules:[33,34],inclusive:!1},FORK_STATE:{rules:[],inclusive:!1},STATE:{rules:[13,14,20,21,22,23,24,25,30,31,35,36,37],inclusive:!1},ID:{rules:[13,14],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,9,10,11,12,14,15,16,19,37,40,51,52,53,54,55,56,57,59,60],inclusive:!0}}};function ve(){this.yy={}}return G.lexer=me,ve.prototype=G,G.Parser=ve,new ve}();M.parser=m,M.Parser=m.Parser,M.parse=function(){return m.parse.apply(m,arguments)},M.main=function(h){h[1]||(console.log("Usage: "+h[0]+" FILE"),process.exit(1));var x=f(3069).readFileSync(f(6470).normalize(h[1]),"utf8");return M.parser.parse(x)},f.c[f.s]===S&&M.main(process.argv.slice(1))},9763:(S,M,f)=>{S=f.nmd(S);var m=function(){var h=function(et,Q,gt,ht){for(gt=gt||{},ht=et.length;ht--;gt[et[ht]]=Q);return gt},x=[1,2],g=[1,5],k=[6,9,11,17,18,19,21],E=[1,15],A=[1,16],I=[1,17],O=[1,21],Y=[4,6,9,11,17,18,19,21],H={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,section:18,taskName:19,taskData:20,open_directive:21,type_directive:22,arg_directive:23,close_directive:24,$accept:0,$end:1},terminals_:{2:"error",4:"journey",6:"EOF",9:"SPACE",11:"NEWLINE",15:":",17:"title",18:"section",19:"taskName",20:"taskData",21:"open_directive",22:"type_directive",23:"arg_directive",24:"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,1],[10,2],[10,1],[12,1],[13,1],[16,1],[14,1]],performAction:function(et,Q,gt,ht,xt,Tt,ne){var bt=Tt.length-1;switch(xt){case 1:return Tt[bt-1];case 3:case 7:case 8:this.$=[];break;case 4:Tt[bt-1].push(Tt[bt]),this.$=Tt[bt-1];break;case 5:case 6:this.$=Tt[bt];break;case 11:ht.setTitle(Tt[bt].substr(6)),this.$=Tt[bt].substr(6);break;case 12:ht.addSection(Tt[bt].substr(8)),this.$=Tt[bt].substr(8);break;case 13:ht.addTask(Tt[bt-1],Tt[bt]),this.$="task";break;case 15:ht.parseDirective("%%{","open_directive");break;case 16:ht.parseDirective(Tt[bt],"type_directive");break;case 17:Tt[bt]=Tt[bt].trim().replace(/'/g,'"'),ht.parseDirective(Tt[bt],"arg_directive");break;case 18:ht.parseDirective("}%%","close_directive","journey")}},table:[{3:1,4:x,7:3,12:4,21:g},{1:[3]},h(k,[2,3],{5:6}),{3:7,4:x,7:3,12:4,21:g},{13:8,22:[1,9]},{22:[2,15]},{6:[1,10],7:18,8:11,9:[1,12],10:13,11:[1,14],12:4,17:E,18:A,19:I,21:g},{1:[2,2]},{14:19,15:[1,20],24:O},h([15,24],[2,16]),h(k,[2,8],{1:[2,1]}),h(k,[2,4]),{7:18,10:22,12:4,17:E,18:A,19:I,21:g},h(k,[2,6]),h(k,[2,7]),h(k,[2,11]),h(k,[2,12]),{20:[1,23]},h(k,[2,14]),{11:[1,24]},{16:25,23:[1,26]},{11:[2,18]},h(k,[2,5]),h(k,[2,13]),h(Y,[2,9]),{14:27,24:O},{24:[2,17]},{11:[1,28]},h(Y,[2,10])],defaultActions:{5:[2,15],7:[2,2],21:[2,18],26:[2,17]},parseError:function(et,Q){if(!Q.recoverable){var gt=new Error(et);throw gt.hash=Q,gt}this.trace(et)},parse:function(et){var Q=this,gt=[0],ht=[],xt=[null],Tt=[],ne=this.table,bt="",at=0,nt=0,Dt=0,Lt=2,tt=1,lt=Tt.slice.call(arguments,1),q=Object.create(this.lexer),Ut={yy:{}};for(var G in this.yy)Object.prototype.hasOwnProperty.call(this.yy,G)&&(Ut.yy[G]=this.yy[G]);q.setInput(et,Ut.yy),Ut.yy.lexer=q,Ut.yy.parser=this,q.yylloc===void 0&&(q.yylloc={});var me=q.yylloc;Tt.push(me);var ve=q.options&&q.options.ranges;function jt(){var mt;return typeof(mt=ht.pop()||q.lex()||tt)!="number"&&(mt instanceof Array&&(mt=(ht=mt).pop()),mt=Q.symbols_[mt]||mt),mt}typeof Ut.yy.parseError=="function"?this.parseError=Ut.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var ie,he,pe,le,oe,wn,fe,ae,Qt,St={};;){if(pe=gt[gt.length-1],this.defaultActions[pe]?le=this.defaultActions[pe]:(ie==null&&(ie=jt()),le=ne[pe]&&ne[pe][ie]),le===void 0||!le.length||!le[0]){var Kt="";for(wn in Qt=[],ne[pe])this.terminals_[wn]&&wn>Lt&&Qt.push("'"+this.terminals_[wn]+"'");Kt=q.showPosition?"Parse error on line "+(at+1)+`: +`+q.showPosition()+` +Expecting `+Qt.join(", ")+", got '"+(this.terminals_[ie]||ie)+"'":"Parse error on line "+(at+1)+": Unexpected "+(ie==tt?"end of input":"'"+(this.terminals_[ie]||ie)+"'"),this.parseError(Kt,{text:q.match,token:this.terminals_[ie]||ie,line:q.yylineno,loc:me,expected:Qt})}if(le[0]instanceof Array&&le.length>1)throw new Error("Parse Error: multiple actions possible at state: "+pe+", token: "+ie);switch(le[0]){case 1:gt.push(ie),xt.push(q.yytext),Tt.push(q.yylloc),gt.push(le[1]),ie=null,he?(ie=he,he=null):(nt=q.yyleng,bt=q.yytext,at=q.yylineno,me=q.yylloc,Dt>0);break;case 2:if(fe=this.productions_[le[1]][1],St.$=xt[xt.length-fe],St._$={first_line:Tt[Tt.length-(fe||1)].first_line,last_line:Tt[Tt.length-1].last_line,first_column:Tt[Tt.length-(fe||1)].first_column,last_column:Tt[Tt.length-1].last_column},ve&&(St._$.range=[Tt[Tt.length-(fe||1)].range[0],Tt[Tt.length-1].range[1]]),(oe=this.performAction.apply(St,[bt,nt,at,Ut.yy,le[1],xt,Tt].concat(lt)))!==void 0)return oe;fe&&(gt=gt.slice(0,-1*fe*2),xt=xt.slice(0,-1*fe),Tt=Tt.slice(0,-1*fe)),gt.push(this.productions_[le[1]][0]),xt.push(St.$),Tt.push(St._$),ae=ne[gt[gt.length-2]][gt[gt.length-1]],gt.push(ae);break;case 3:return!0}}return!0}},X={EOF:1,parseError:function(et,Q){if(!this.yy.parser)throw new Error(et);this.yy.parser.parseError(et,Q)},setInput:function(et,Q){return this.yy=Q||this.yy||{},this._input=et,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 et=this._input[0];return this.yytext+=et,this.yyleng++,this.offset++,this.match+=et,this.matched+=et,et.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),et},unput:function(et){var Q=et.length,gt=et.split(/(?:\r\n?|\n)/g);this._input=et+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-Q),this.offset-=Q;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),gt.length-1&&(this.yylineno-=gt.length-1);var xt=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:gt?(gt.length===ht.length?this.yylloc.first_column:0)+ht[ht.length-gt.length].length-gt[0].length:this.yylloc.first_column-Q},this.options.ranges&&(this.yylloc.range=[xt[0],xt[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(et){this.unput(this.match.slice(et))},pastInput:function(){var et=this.matched.substr(0,this.matched.length-this.match.length);return(et.length>20?"...":"")+et.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var et=this.match;return et.length<20&&(et+=this._input.substr(0,20-et.length)),(et.substr(0,20)+(et.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var et=this.pastInput(),Q=new Array(et.length+1).join("-");return et+this.upcomingInput()+` +`+Q+"^"},test_match:function(et,Q){var gt,ht,xt;if(this.options.backtrack_lexer&&(xt={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&&(xt.yylloc.range=this.yylloc.range.slice(0))),(ht=et[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+et[0].length},this.yytext+=et[0],this.match+=et[0],this.matches=et,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(et[0].length),this.matched+=et[0],gt=this.performAction.call(this,this.yy,this,Q,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),gt)return gt;if(this._backtrack){for(var Tt in xt)this[Tt]=xt[Tt];return!1}return!1},next:function(){if(this.done)return this.EOF;var et,Q,gt,ht;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var xt=this._currentRules(),Tt=0;TtQ[0].length)){if(Q=gt,ht=Tt,this.options.backtrack_lexer){if((et=this.test_match(gt,xt[Tt]))!==!1)return et;if(this._backtrack){Q=!1;continue}return!1}if(!this.options.flex)break}return Q?(et=this.test_match(Q,xt[ht]))!==!1&&et: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(et){this.conditionStack.push(et)},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(et){return(et=this.conditionStack.length-1-Math.abs(et||0))>=0?this.conditionStack[et]:"INITIAL"},pushState:function(et){this.begin(et)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(et,Q,gt,ht){switch(gt){case 0:return this.begin("open_directive"),21;case 1:return this.begin("type_directive"),22;case 2:return this.popState(),this.begin("arg_directive"),15;case 3:return this.popState(),this.popState(),24;case 4:return 23;case 5:case 6:case 8:case 9:break;case 7:return 11;case 10:return 4;case 11:return 17;case 12:return 18;case 13:return 19;case 14:return 20;case 15:return 15;case 16:return 6;case 17: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,/^(?: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},INITIAL:{rules:[0,5,6,7,8,9,10,11,12,13,14,15,16,17],inclusive:!0}}};function Z(){this.yy={}}return H.lexer=X,Z.prototype=H,H.Parser=Z,new Z}();M.parser=m,M.Parser=m.Parser,M.parse=function(){return m.parse.apply(m,arguments)},M.main=function(h){h[1]||(console.log("Usage: "+h[0]+" FILE"),process.exit(1));var x=f(9143).readFileSync(f(6470).normalize(h[1]),"utf8");return M.parser.parse(x)},f.c[f.s]===S&&M.main(process.argv.slice(1))},7967:(S,M)=>{M.N=void 0;var f=/^([^\w]*)(javascript|data|vbscript)/im,m=/&#(\w+)(^\w|;)?/g,h=/[\u0000-\u001F\u007F-\u009F\u2000-\u200D\uFEFF]/gim,x=/^([^:]+):/gm,g=[".","/"];M.N=function(k){var E,A=(E=k||"",E.replace(m,function(Y,H){return String.fromCharCode(H)})).replace(h,"").trim();if(!A)return"about:blank";if(function(Y){return g.indexOf(Y[0])>-1}(A))return A;var I=A.match(x);if(!I)return A;var O=I[0];return f.test(O)?"about:blank":A}},3841:S=>{S.exports=function(M,f){return M.intersect(f)}},3850:(S,M,f)=>{f.d(M,{Z:()=>w_});var m=f(1941),h=f.n(m),x={debug:1,info:2,warn:3,error:4,fatal:5},g={debug:function(){},info:function(){},warn:function(){},error:function(){},fatal:function(){}},k=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"fatal";isNaN(t)&&(t=t.toLowerCase(),x[t]!==void 0&&(t=x[t])),g.trace=function(){},g.debug=function(){},g.info=function(){},g.warn=function(){},g.error=function(){},g.fatal=function(){},t<=x.fatal&&(g.fatal=console.error?console.error.bind(console,E("FATAL"),"color: orange"):console.log.bind(console,"\x1B[35m",E("FATAL"))),t<=x.error&&(g.error=console.error?console.error.bind(console,E("ERROR"),"color: orange"):console.log.bind(console,"\x1B[31m",E("ERROR"))),t<=x.warn&&(g.warn=console.warn?console.warn.bind(console,E("WARN"),"color: orange"):console.log.bind(console,"\x1B[33m",E("WARN"))),t<=x.info&&(g.info=console.info?console.info.bind(console,E("INFO"),"color: lightblue"):console.log.bind(console,"\x1B[34m",E("INFO"))),t<=x.debug&&(g.debug=console.debug?console.debug.bind(console,E("DEBUG"),"color: lightgreen"):console.log.bind(console,"\x1B[32m",E("DEBUG")))},E=function(t){var e=h()().format("ss.SSS");return"%c".concat(e," : ").concat(t," : ")};function A(t,e){let r;if(e===void 0)for(const a of t)a!=null&&(r=a)&&(r=a);else{let a=-1;for(let c of t)(c=e(c,++a,t))!=null&&(r=c)&&(r=c)}return r}function I(t,e){let r;if(e===void 0)for(const a of t)a!=null&&(r>a||r===void 0&&a>=a)&&(r=a);else{let a=-1;for(let c of t)(c=e(c,++a,t))!=null&&(r>c||r===void 0&&c>=c)&&(r=c)}return r}function O(t){return t}var Y=1e-6;function H(t){return"translate("+t+",0)"}function X(t){return"translate(0,"+t+")"}function Z(t){return e=>+t(e)}function et(t,e){return e=Math.max(0,t.bandwidth()-2*e)/2,t.round()&&(e=Math.round(e)),r=>+t(r)+e}function Q(){return!this.__axis}function gt(t,e){var r=[],a=null,c=null,u=6,d=6,y=3,w=typeof window!="undefined"&&window.devicePixelRatio>1?0:.5,_=t===1||t===4?-1:1,D=t===4||t===2?"x":"y",j=t===1||t===3?H:X;function P($){var ct=a==null?e.ticks?e.ticks.apply(e,r):e.domain():a,rt=c==null?e.tickFormat?e.tickFormat.apply(e,r):O:c,vt=Math.max(u,0)+y,ft=e.range(),Et=+ft[0]+w,Nt=+ft[ft.length-1]+w,Rt=(e.bandwidth?et:Z)(e.copy(),w),$t=$.selection?$.selection():$,Mt=$t.selectAll(".domain").data([null]),Xt=$t.selectAll(".tick").data(ct,e).order(),Jt=Xt.exit(),At=Xt.enter().append("g").attr("class","tick"),Bt=Xt.select("line"),wt=Xt.select("text");Mt=Mt.merge(Mt.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),Xt=Xt.merge(At),Bt=Bt.merge(At.append("line").attr("stroke","currentColor").attr(D+"2",_*u)),wt=wt.merge(At.append("text").attr("fill","currentColor").attr(D,_*vt).attr("dy",t===1?"0em":t===3?"0.71em":"0.32em")),$!==$t&&(Mt=Mt.transition($),Xt=Xt.transition($),Bt=Bt.transition($),wt=wt.transition($),Jt=Jt.transition($).attr("opacity",Y).attr("transform",function(_t){return isFinite(_t=Rt(_t))?j(_t+w):this.getAttribute("transform")}),At.attr("opacity",Y).attr("transform",function(_t){var Ft=this.parentNode.__axis;return j((Ft&&isFinite(Ft=Ft(_t))?Ft:Rt(_t))+w)})),Jt.remove(),Mt.attr("d",t===4||t===2?d?"M"+_*d+","+Et+"H"+w+"V"+Nt+"H"+_*d:"M"+w+","+Et+"V"+Nt:d?"M"+Et+","+_*d+"V"+w+"H"+Nt+"V"+_*d:"M"+Et+","+w+"H"+Nt),Xt.attr("opacity",1).attr("transform",function(_t){return j(Rt(_t)+w)}),Bt.attr(D+"2",_*u),wt.attr(D,_*vt).text(rt),$t.filter(Q).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",t===2?"start":t===4?"end":"middle"),$t.each(function(){this.__axis=Rt})}return P.scale=function($){return arguments.length?(e=$,P):e},P.ticks=function(){return r=Array.from(arguments),P},P.tickArguments=function($){return arguments.length?(r=$==null?[]:Array.from($),P):r.slice()},P.tickValues=function($){return arguments.length?(a=$==null?null:Array.from($),P):a&&a.slice()},P.tickFormat=function($){return arguments.length?(c=$,P):c},P.tickSize=function($){return arguments.length?(u=d=+$,P):u},P.tickSizeInner=function($){return arguments.length?(u=+$,P):u},P.tickSizeOuter=function($){return arguments.length?(d=+$,P):d},P.tickPadding=function($){return arguments.length?(y=+$,P):y},P.offset=function($){return arguments.length?(w=+$,P):w},P}function ht(){}function xt(t){return t==null?ht:function(){return this.querySelector(t)}}function Tt(t){return t==null?[]:Array.isArray(t)?t:Array.from(t)}function ne(){return[]}function bt(t){return t==null?ne:function(){return this.querySelectorAll(t)}}function at(t){return function(){return this.matches(t)}}function nt(t){return function(e){return e.matches(t)}}var Dt=Array.prototype.find;function Lt(){return this.firstElementChild}var tt=Array.prototype.filter;function lt(){return Array.from(this.children)}function q(t){return new Array(t.length)}function Ut(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}function G(t){return function(){return t}}function me(t,e,r,a,c,u){for(var d,y=0,w=e.length,_=u.length;y<_;++y)(d=e[y])?(d.__data__=u[y],a[y]=d):r[y]=new Ut(t,u[y]);for(;ye?1:t>=e?0:NaN}Ut.prototype={constructor:Ut,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,e){return this._parent.insertBefore(t,e)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};var pe="http://www.w3.org/1999/xhtml";const le={svg:"http://www.w3.org/2000/svg",xhtml:pe,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function oe(t){var e=t+="",r=e.indexOf(":");return r>=0&&(e=t.slice(0,r))!=="xmlns"&&(t=t.slice(r+1)),le.hasOwnProperty(e)?{space:le[e],local:t}:t}function wn(t){return function(){this.removeAttribute(t)}}function fe(t){return function(){this.removeAttributeNS(t.space,t.local)}}function ae(t,e){return function(){this.setAttribute(t,e)}}function Qt(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}function St(t,e){return function(){var r=e.apply(this,arguments);r==null?this.removeAttribute(t):this.setAttribute(t,r)}}function Kt(t,e){return function(){var r=e.apply(this,arguments);r==null?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,r)}}function mt(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function Ht(t){return function(){this.style.removeProperty(t)}}function kt(t,e,r){return function(){this.style.setProperty(t,e,r)}}function It(t,e,r){return function(){var a=e.apply(this,arguments);a==null?this.style.removeProperty(t):this.style.setProperty(t,a,r)}}function se(t,e){return t.style.getPropertyValue(e)||mt(t).getComputedStyle(t,null).getPropertyValue(e)}function Se(t){return function(){delete this[t]}}function be(t,e){return function(){this[t]=e}}function Ae(t,e){return function(){var r=e.apply(this,arguments);r==null?delete this[t]:this[t]=r}}function cn(t){return t.trim().split(/^|\s+/)}function De(t){return t.classList||new Be(t)}function Be(t){this._node=t,this._names=cn(t.getAttribute("class")||"")}function Le(t,e){for(var r=De(t),a=-1,c=e.length;++a=0&&(r=e.slice(a+1),e=e.slice(0,a)),{type:e,name:r}})}function Ln(t){return function(){var e=this.__on;if(e){for(var r,a=0,c=-1,u=e.length;a=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};var Xn=[null];function Tn(t,e){this._groups=t,this._parents=e}function In(){return new Tn([[document.documentElement]],Xn)}Tn.prototype=In.prototype={constructor:Tn,select:function(t){typeof t!="function"&&(t=xt(t));for(var e=this._groups,r=e.length,a=new Array(r),c=0;c=$t&&($t=Rt+1);!(Nt=vt[$t])&&++$t=0;)(a=c[u])&&(d&&4^a.compareDocumentPosition(d)&&d.parentNode.insertBefore(a,d),d=a);return this},sort:function(t){function e(j,P){return j&&P?t(j.__data__,P.__data__):!j-!P}t||(t=he);for(var r=this._groups,a=r.length,c=new Array(a),u=0;u1?this.each((e==null?Ht:typeof e=="function"?It:kt)(t,e,r==null?"":r)):se(this.node(),t)},property:function(t,e){return arguments.length>1?this.each((e==null?Se:typeof e=="function"?Ae:be)(t,e)):this.node()[t]},classed:function(t,e){var r=cn(t+"");if(arguments.length<2){for(var a=De(this.node()),c=-1,u=r.length;++c{}};function Hn(){for(var t,e=0,r=arguments.length,a={};e=0&&(a=r.slice(c+1),r=r.slice(0,c)),r&&!e.hasOwnProperty(r))throw new Error("unknown type: "+r);return{type:r,name:a}})}function gr(t,e){for(var r,a=0,c=t.length;a0)for(var r,a,c=new Array(r),u=0;u=0&&e._call.call(void 0,t),e=e._next;--Gr})()}finally{Gr=0,function(){for(var t,e,r=Ta,a=1/0;r;)r._call?(a>r._time&&(a=r._time),t=r,r=r._next):(e=r._next,r._next=null,r=t?t._next=e:Ta=e);Vr=t,ao(a)}(),Ur=0}}function aa(){var t=Dr.now(),e=t-Xr;e>1e3&&(qr-=e,Xr=t)}function ao(t){Gr||(Fr&&(Fr=clearTimeout(Fr)),t-Ur>24?(t<1/0&&(Fr=setTimeout(Lr,t-Dr.now()-qr)),Er&&(Er=clearInterval(Er))):(Er||(Xr=Dr.now(),Er=setInterval(aa,1e3)),Gr=1,li(Lr)))}function fi(t,e,r){var a=new Hr;return e=e==null?0:+e,a.restart(c=>{a.stop(),t(c+e)},e,r),a}Hr.prototype=ia.prototype={constructor:Hr,restart:function(t,e,r){if(typeof t!="function")throw new TypeError("callback is not a function");r=(r==null?hi():+r)+(e==null?0:+e),this._next||Vr===this||(Vr?Vr._next=this:Ta=this,Vr=this),this._call=t,this._time=r,ao()},stop:function(){this._call&&(this._call=null,this._time=1/0,ao())}};var an=io("start","end","cancel","interrupt"),Jn=[];function Cn(t,e,r,a,c,u){var d=t.__transition;if(d){if(r in d)return}else t.__transition={};(function(y,w,_){var D,j=y.__transition;function P(rt){var vt,ft,Et,Nt;if(_.state!==1)return ct();for(vt in j)if((Nt=j[vt]).name===_.name){if(Nt.state===3)return fi(P);Nt.state===4?(Nt.state=6,Nt.timer.stop(),Nt.on.call("interrupt",y,y.__data__,Nt.index,Nt.group),delete j[vt]):+vt0)throw new Error("too late; already scheduled");return r}function $n(t,e){var r=pt(t,e);if(r.state>3)throw new Error("too late; already running");return r}function pt(t,e){var r=t.__transition;if(!r||!(r=r[e]))throw new Error("transition not found");return r}function ii(t,e){return t=+t,e=+e,function(r){return t*(1-r)+e*r}}var Zt,ki=180/Math.PI,go={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function Ca(t,e,r,a,c,u){var d,y,w;return(d=Math.sqrt(t*t+e*e))&&(t/=d,e/=d),(w=t*r+e*a)&&(r-=t*w,a-=e*w),(y=Math.sqrt(r*r+a*a))&&(r/=y,a/=y,w/=y),t*a180?D+=360:D-_>180&&(_+=360),P.push({i:j.push(c(j)+"rotate(",null,a)-2,x:ii(_,D)})):D&&j.push(c(j)+"rotate("+D+a)}(u.rotate,d.rotate,y,w),function(_,D,j,P){_!==D?P.push({i:j.push(c(j)+"skewX(",null,a)-2,x:ii(_,D)}):D&&j.push(c(j)+"skewX("+D+a)}(u.skewX,d.skewX,y,w),function(_,D,j,P,$,ct){if(_!==j||D!==P){var rt=$.push(c($)+"scale(",null,",",null,")");ct.push({i:rt-4,x:ii(_,j)},{i:rt-2,x:ii(D,P)})}else j===1&&P===1||$.push(c($)+"scale("+j+","+P+")")}(u.scaleX,u.scaleY,d.scaleX,d.scaleY,y,w),u=d=null,function(_){for(var D,j=-1,P=w.length;++j>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):r===8?ai(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):r===4?ai(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|240&e,((15&e)<<4|15&e)/255):null):(e=mr.exec(t))?new Wr(e[1],e[2],e[3],1):(e=Hi.exec(t))?new Wr(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=Bi.exec(t))?ai(e[1],e[2],e[3],e[4]):(e=Ti.exec(t))?ai(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=Ya.exec(t))?oo(e[1],e[2]/100,e[3]/100,1):(e=Jr.exec(t))?oo(e[1],e[2]/100,e[3]/100,e[4]):Yt.hasOwnProperty(t)?Sr(Yt[t]):t==="transparent"?new Wr(NaN,NaN,NaN,0):null}function Sr(t){return new Wr(t>>16&255,t>>8&255,255&t,1)}function ai(t,e,r,a){return a<=0&&(t=e=r=NaN),new Wr(t,e,r,a)}function pi(t){return t instanceof $r||(t=lr(t)),t?new Wr((t=t.rgb()).r,t.g,t.b,t.opacity):new Wr}function Ea(t,e,r,a){return arguments.length===1?pi(t):new Wr(t,e,r,a==null?1:a)}function Wr(t,e,r,a){this.r=+t,this.g=+e,this.b=+r,this.opacity=+a}function Oi(){return"#"+$s(this.r)+$s(this.g)+$s(this.b)}function Sa(){var t=this.opacity;return((t=isNaN(t)?1:Math.max(0,Math.min(1,t)))===1?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(t===1?")":", "+t+")")}function $s(t){return((t=Math.max(0,Math.min(255,Math.round(t)||0)))<16?"0":"")+t.toString(16)}function oo(t,e,r,a){return a<=0?t=e=r=NaN:r<=0||r>=1?t=e=NaN:e<=0&&(t=NaN),new Ii(t,e,r,a)}function wc(t){if(t instanceof Ii)return new Ii(t.h,t.s,t.l,t.opacity);if(t instanceof $r||(t=lr(t)),!t)return new Ii;if(t instanceof Ii)return t;var e=(t=t.rgb()).r/255,r=t.g/255,a=t.b/255,c=Math.min(e,r,a),u=Math.max(e,r,a),d=NaN,y=u-c,w=(u+c)/2;return y?(d=e===u?(r-a)/y+6*(r0&&w<1?0:d,new Ii(d,y,w,t.opacity)}function Ii(t,e,r,a){this.h=+t,this.s=+e,this.l=+r,this.opacity=+a}function Qr(t,e,r){return 255*(t<60?e+(r-e)*t/60:t<180?r:t<240?e+(r-e)*(240-t)/60:e)}oa($r,lr,{copy:function(t){return Object.assign(new this.constructor,this,t)},displayable:function(){return this.rgb().displayable()},hex:Ve,formatHex:Ve,formatHsl:function(){return wc(this).formatHsl()},formatRgb:qe,toString:qe}),oa(Wr,Ea,sa($r,{brighter:function(t){return t=t==null?di:Math.pow(di,t),new Wr(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=t==null?ar:Math.pow(ar,t),new Wr(this.r*t,this.g*t,this.b*t,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:Oi,formatHex:Oi,formatRgb:Sa,toString:Sa})),oa(Ii,function(t,e,r,a){return arguments.length===1?wc(t):new Ii(t,e,r,a==null?1:a)},sa($r,{brighter:function(t){return t=t==null?di:Math.pow(di,t),new Ii(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=t==null?ar:Math.pow(ar,t),new Ii(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=this.h%360+360*(this.h<0),e=isNaN(t)||isNaN(this.s)?0:this.s,r=this.l,a=r+(r<.5?r:1-r)*e,c=2*r-a;return new Wr(Qr(t>=240?t-240:t+120,c,a),Qr(t,c,a),Qr(t<120?t+240:t-120,c,a),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var t=this.opacity;return((t=isNaN(t)?1:Math.max(0,Math.min(1,t)))===1?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(t===1?")":", "+t+")")}}));const lu=t=>()=>t;function hu(t,e){var r=e-t;return r?function(a,c){return function(u){return a+u*c}}(t,r):lu(isNaN(t)?e:t)}const fu=function t(e){var r=function(c){return(c=+c)==1?hu:function(u,d){return d-u?function(y,w,_){return y=Math.pow(y,_),w=Math.pow(w,_)-y,_=1/_,function(D){return Math.pow(y+D*w,_)}}(u,d,c):lu(isNaN(u)?d:u)}}(e);function a(c,u){var d=r((c=Ea(c)).r,(u=Ea(u)).r),y=r(c.g,u.g),w=r(c.b,u.b),_=hu(c.opacity,u.opacity);return function(D){return c.r=d(D),c.g=y(D),c.b=w(D),c.opacity=_(D),c+""}}return a.gamma=t,a}(1);var za=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,du=new RegExp(za.source,"g");function pu(t,e){var r,a,c,u=za.lastIndex=du.lastIndex=0,d=-1,y=[],w=[];for(t+="",e+="";(r=za.exec(t))&&(a=du.exec(e));)(c=a.index)>u&&(c=e.slice(u,c),y[d]?y[d]+=c:y[++d]=c),(r=r[0])===(a=a[0])?y[d]?y[d]+=a:y[++d]=a:(y[++d]=null,w.push({i:d,x:ii(r,a)})),u=du.lastIndex;return u=0&&(y=y.slice(0,w)),!y||y==="start"})}(e)?ze:$n;return function(){var d=u(this,t),y=d.on;y!==a&&(c=(a=y).copy()).on(e,r),d.on=c}}var Yf=An.prototype.constructor;function ca(t){return function(){this.style.removeProperty(t)}}function zf(t,e,r){return function(a){this.style.setProperty(t,e.call(this,a),r)}}function Ul(t,e,r){var a,c;function u(){var d=e.apply(this,arguments);return d!==c&&(a=(c=d)&&zf(t,d,r)),a}return u._value=e,u}function ql(t){return function(e){this.textContent=t.call(this,e)}}function mo(t){var e,r;function a(){var c=t.apply(this,arguments);return c!==r&&(e=(r=c)&&ql(c)),e}return a._value=t,a}var Cc=0;function qa(t,e,r,a){this._groups=t,this._parents=e,this._name=r,this._id=a}function Ec(){return++Cc}var ua=An.prototype;qa.prototype={constructor:qa,select:function(t){var e=this._name,r=this._id;typeof t!="function"&&(t=xt(t));for(var a=this._groups,c=a.length,u=new Array(c),d=0;d2&&a.state<5,a.state=6,a.timer.stop(),a.on.call(c?"interrupt":"cancel",e,e.__data__,a.index,a.group),delete d[u]):y=!1;y&&delete e.__transition}})(this,t)})},An.prototype.transition=function(t){var e,r;t instanceof qa?(e=t._id,t=t._name):(e=Ec(),(r=ds).time=hi(),t=t==null?null:t+"");for(var a=this._groups,c=a.length,u=0;u>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):r===8?hr(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):r===4?hr(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|240&e,((15&e)<<4|15&e)/255):null):(e=W.exec(t))?new ur(e[1],e[2],e[3],1):(e=st.exec(t))?new ur(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=Vt.exec(t))?hr(e[1],e[2],e[3],e[4]):(e=ye.exec(t))?hr(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=Te.exec(t))?Dd(e[1],e[2]/100,e[3]/100,1):(e=Oe.exec(t))?Dd(e[1],e[2]/100,e[3]/100,e[4]):Ie.hasOwnProperty(t)?pn(Ie[t]):t==="transparent"?new ur(NaN,NaN,NaN,0):null}function pn(t){return new ur(t>>16&255,t>>8&255,255&t,1)}function hr(t,e,r,a){return a<=0&&(t=e=r=NaN),new ur(t,e,r,a)}function fr(t){return t instanceof oi||(t=xn(t)),t?new ur((t=t.rgb()).r,t.g,t.b,t.opacity):new ur}function Mr(t,e,r,a){return arguments.length===1?fr(t):new ur(t,e,r,a==null?1:a)}function ur(t,e,r,a){this.r=+t,this.g=+e,this.b=+r,this.opacity=+a}function la(){return"#"+Hl(this.r)+Hl(this.g)+Hl(this.b)}function ps(){var t=this.opacity;return((t=isNaN(t)?1:Math.max(0,Math.min(1,t)))===1?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(t===1?")":", "+t+")")}function Hl(t){return((t=Math.max(0,Math.min(255,Math.round(t)||0)))<16?"0":"")+t.toString(16)}function Dd(t,e,r,a){return a<=0?t=e=r=NaN:r<=0||r>=1?t=e=NaN:e<=0&&(t=NaN),new bo(t,e,r,a)}function $l(t){if(t instanceof bo)return new bo(t.h,t.s,t.l,t.opacity);if(t instanceof oi||(t=xn(t)),!t)return new bo;if(t instanceof bo)return t;var e=(t=t.rgb()).r/255,r=t.g/255,a=t.b/255,c=Math.min(e,r,a),u=Math.max(e,r,a),d=NaN,y=u-c,w=(u+c)/2;return y?(d=e===u?(r-a)/y+6*(r0&&w<1?0:d,new bo(d,y,w,t.opacity)}function bo(t,e,r,a){this.h=+t,this.s=+e,this.l=+r,this.opacity=+a}function Wl(t,e,r){return 255*(t<60?e+(r-e)*t/60:t<180?r:t<240?e+(r-e)*(240-t)/60:e)}vo(oi,xn,{copy:function(t){return Object.assign(new this.constructor,this,t)},displayable:function(){return this.rgb().displayable()},hex:He,formatHex:He,formatHsl:function(){return $l(this).formatHsl()},formatRgb:Qe,toString:Qe}),vo(ur,Mr,Ri(oi,{brighter:function(t){return t=t==null?Ma:Math.pow(Ma,t),new ur(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=t==null?Ha:Math.pow(Ha,t),new ur(this.r*t,this.g*t,this.b*t,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:la,formatHex:la,formatRgb:ps,toString:ps})),vo(bo,function(t,e,r,a){return arguments.length===1?$l(t):new bo(t,e,r,a==null?1:a)},Ri(oi,{brighter:function(t){return t=t==null?Ma:Math.pow(Ma,t),new bo(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=t==null?Ha:Math.pow(Ha,t),new bo(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=this.h%360+360*(this.h<0),e=isNaN(t)||isNaN(this.s)?0:this.s,r=this.l,a=r+(r<.5?r:1-r)*e,c=2*r-a;return new ur(Wl(t>=240?t-240:t+120,c,a),Wl(t,c,a),Wl(t<120?t+240:t-120,c,a),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var t=this.opacity;return((t=isNaN(t)?1:Math.max(0,Math.min(1,t)))===1?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(t===1?")":", "+t+")")}}));const ny=Math.PI/180,ry=180/Math.PI,Ld=.96422,Bd=.82521,iy=4/29,Od=6/29,Uf=3*Od*Od;function Id(t){if(t instanceof Uo)return new Uo(t.l,t.a,t.b,t.opacity);if(t instanceof gs)return ay(t);t instanceof ur||(t=fr(t));var e,r,a=jd(t.r),c=jd(t.g),u=jd(t.b),d=Rd((.2225045*a+.7168786*c+.0606169*u)/1);return a===c&&c===u?e=r=d:(e=Rd((.4360747*a+.3850649*c+.1430804*u)/Ld),r=Rd((.0139322*a+.0971045*c+.7141733*u)/Bd)),new Uo(116*d-16,500*(e-d),200*(d-r),t.opacity)}function Uo(t,e,r,a){this.l=+t,this.a=+e,this.b=+r,this.opacity=+a}function Rd(t){return t>.008856451679035631?Math.pow(t,1/3):t/Uf+iy}function Fd(t){return t>Od?t*t*t:Uf*(t-iy)}function Pd(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function jd(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function vb(t){if(t instanceof gs)return new gs(t.h,t.c,t.l,t.opacity);if(t instanceof Uo||(t=Id(t)),t.a===0&&t.b===0)return new gs(NaN,0()=>t;function oy(t,e){return function(r){return t+r*e}}function Vl(t,e){var r=e-t;return r?oy(t,r):zd(isNaN(t)?e:t)}function bb(t){return function(e,r){var a=t((e=Yd(e)).h,(r=Yd(r)).h),c=Vl(e.c,r.c),u=Vl(e.l,r.l),d=Vl(e.opacity,r.opacity);return function(y){return e.h=a(y),e.c=c(y),e.l=u(y),e.opacity=d(y),e+""}}}const _b=bb(function(t,e){var r=e-t;return r?oy(t,r>180||r<-180?r-360*Math.round(r/360):r):zd(isNaN(t)?e:t)});var Ud=Math.sqrt(50),qd=Math.sqrt(10),Hd=Math.sqrt(2);function $d(t,e,r){var a=(e-t)/Math.max(0,r),c=Math.floor(Math.log(a)/Math.LN10),u=a/Math.pow(10,c);return c>=0?(u>=Ud?10:u>=qd?5:u>=Hd?2:1)*Math.pow(10,c):-Math.pow(10,-c)/(u>=Ud?10:u>=qd?5:u>=Hd?2:1)}function Wd(t,e,r){var a=Math.abs(e-t)/Math.max(0,r),c=Math.pow(10,Math.floor(Math.log(a)/Math.LN10)),u=a/c;return u>=Ud?c*=10:u>=qd?c*=5:u>=Hd&&(c*=2),ee?1:t>=e?0:NaN}function Gd(t){let e=t,r=t,a=t;function c(u,d,y=0,w=u.length){if(y>>1;a(u[_],d)<0?y=_+1:w=_}while(yt(u)-d,r=Vd,a=(u,d)=>Vd(t(u),d)),{left:c,center:function(u,d,y=0,w=u.length){const _=c(u,d,y,w-1);return _>y&&e(u[_-1],d)>-e(u[_],d)?_-1:_},right:function(u,d,y=0,w=u.length){if(y>>1;a(u[_],d)<=0?y=_+1:w=_}while(y>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):r===8?Gf(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):r===4?Gf(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|240&e,((15&e)<<4|15&e)/255):null):(e=Tb.exec(t))?new $a(e[1],e[2],e[3],1):(e=Zd.exec(t))?new $a(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=Cb.exec(t))?Gf(e[1],e[2],e[3],e[4]):(e=sy.exec(t))?Gf(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=Qd.exec(t))?uy(e[1],e[2]/100,e[3]/100,1):(e=cy.exec(t))?uy(e[1],e[2]/100,e[3]/100,e[4]):Wf.hasOwnProperty(t)?Vf(Wf[t]):t==="transparent"?new $a(NaN,NaN,NaN,0):null}function Vf(t){return new $a(t>>16&255,t>>8&255,255&t,1)}function Gf(t,e,r,a){return a<=0&&(t=e=r=NaN),new $a(t,e,r,a)}function Xf(t){return t instanceof Ho||(t=vu(t)),t?new $a((t=t.rgb()).r,t.g,t.b,t.opacity):new $a}function bu(t,e,r,a){return arguments.length===1?Xf(t):new $a(t,e,r,a==null?1:a)}function $a(t,e,r,a){this.r=+t,this.g=+e,this.b=+r,this.opacity=+a}function Wo(){return"#"+Zf(this.r)+Zf(this.g)+Zf(this.b)}function Kd(){var t=this.opacity;return((t=isNaN(t)?1:Math.max(0,Math.min(1,t)))===1?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(t===1?")":", "+t+")")}function Zf(t){return((t=Math.max(0,Math.min(255,Math.round(t)||0)))<16?"0":"")+t.toString(16)}function uy(t,e,r,a){return a<=0?t=e=r=NaN:r<=0||r>=1?t=e=NaN:e<=0&&(t=NaN),new Na(t,e,r,a)}function ly(t){if(t instanceof Na)return new Na(t.h,t.s,t.l,t.opacity);if(t instanceof Ho||(t=vu(t)),!t)return new Na;if(t instanceof Na)return t;var e=(t=t.rgb()).r/255,r=t.g/255,a=t.b/255,c=Math.min(e,r,a),u=Math.max(e,r,a),d=NaN,y=u-c,w=(u+c)/2;return y?(d=e===u?(r-a)/y+6*(r0&&w<1?0:d,new Na(d,y,w,t.opacity)}function Na(t,e,r,a){this.h=+t,this.s=+e,this.l=+r,this.opacity=+a}function Jd(t,e,r){return 255*(t<60?e+(r-e)*t/60:t<180?r:t<240?e+(r-e)*(240-t)/60:e)}qf(Ho,vu,{copy:function(t){return Object.assign(new this.constructor,this,t)},displayable:function(){return this.rgb().displayable()},hex:Ac,formatHex:Ac,formatHsl:function(){return ly(this).formatHsl()},formatRgb:Mc,toString:Mc}),qf($a,bu,Xd(Ho,{brighter:function(t){return t=t==null?$f:Math.pow($f,t),new $a(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=t==null?Hf:Math.pow(Hf,t),new $a(this.r*t,this.g*t,this.b*t,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:Wo,formatHex:Wo,formatRgb:Kd,toString:Kd})),qf(Na,function(t,e,r,a){return arguments.length===1?ly(t):new Na(t,e,r,a==null?1:a)},Xd(Ho,{brighter:function(t){return t=t==null?$f:Math.pow($f,t),new Na(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=t==null?Hf:Math.pow(Hf,t),new Na(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=this.h%360+360*(this.h<0),e=isNaN(t)||isNaN(this.s)?0:this.s,r=this.l,a=r+(r<.5?r:1-r)*e,c=2*r-a;return new $a(Jd(t>=240?t-240:t+120,c,a),Jd(t,c,a),Jd(t<120?t+240:t-120,c,a),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var t=this.opacity;return((t=isNaN(t)?1:Math.max(0,Math.min(1,t)))===1?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(t===1?")":", "+t+")")}}));const tp=t=>()=>t;function hy(t,e){var r=e-t;return r?function(a,c){return function(u){return a+u*c}}(t,r):tp(isNaN(t)?e:t)}const Qf=function t(e){var r=function(c){return(c=+c)==1?hy:function(u,d){return d-u?function(y,w,_){return y=Math.pow(y,_),w=Math.pow(w,_)-y,_=1/_,function(D){return Math.pow(y+D*w,_)}}(u,d,c):tp(isNaN(u)?d:u)}}(e);function a(c,u){var d=r((c=bu(c)).r,(u=bu(u)).r),y=r(c.g,u.g),w=r(c.b,u.b),_=hy(c.opacity,u.opacity);return function(D){return c.r=d(D),c.g=y(D),c.b=w(D),c.opacity=_(D),c+""}}return a.gamma=t,a}(1);function Eb(t,e){var r,a=e?e.length:0,c=t?Math.min(a,t.length):0,u=new Array(c),d=new Array(a);for(r=0;ru&&(c=e.slice(u,c),y[d]?y[d]+=c:y[++d]=c),(r=r[0])===(a=a[0])?y[d]?y[d]+=a:y[++d]=a:(y[++d]=null,w.push({i:d,x:Kf(r,a)})),u=Gl.lastIndex;return u$&&(ct=P,P=$,$=ct),_=function(vt){return Math.max(P,Math.min($,vt))}),a=rt>2?ip:Mb,c=u=null,j}function j(P){return P==null||isNaN(P=+P)?r:(c||(c=a(d.map(t),y,w)))(t(_(P)))}return j.invert=function(P){return _(e((u||(u=a(y,d.map(t),Kf)))(P)))},j.domain=function(P){return arguments.length?(d=Array.from(P,py),D()):d.slice()},j.range=function(P){return arguments.length?(y=Array.from(P),D()):y.slice()},j.rangeRound=function(P){return y=Array.from(P),w=t1,D()},j.clamp=function(P){return arguments.length?(_=!!P||_u,D()):_!==_u},j.interpolate=function(P){return arguments.length?(w=P,D()):w},j.unknown=function(P){return arguments.length?(r=P,j):r},function(P,$){return t=P,e=$,D()}}()(_u,_u)}function ys(t,e){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(e).domain(t)}return this}var gy,ap=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Xl(t){if(!(e=ap.exec(t)))throw new Error("invalid format: "+t);var e;return new ms({fill:e[1],align:e[2],sign:e[3],symbol:e[4],zero:e[5],width:e[6],comma:e[7],precision:e[8]&&e[8].slice(1),trim:e[9],type:e[10]})}function ms(t){this.fill=t.fill===void 0?" ":t.fill+"",this.align=t.align===void 0?">":t.align+"",this.sign=t.sign===void 0?"-":t.sign+"",this.symbol=t.symbol===void 0?"":t.symbol+"",this.zero=!!t.zero,this.width=t.width===void 0?void 0:+t.width,this.comma=!!t.comma,this.precision=t.precision===void 0?void 0:+t.precision,this.trim=!!t.trim,this.type=t.type===void 0?"":t.type+""}function r1(t,e){if((r=(t=e?t.toExponential(e-1):t.toExponential()).indexOf("e"))<0)return null;var r,a=t.slice(0,r);return[a.length>1?a[0]+a.slice(2):a,+t.slice(r+1)]}function xu(t){return(t=r1(Math.abs(t)))?t[1]:NaN}function yy(t,e){var r=r1(t,e);if(!r)return t+"";var a=r[0],c=r[1];return c<0?"0."+new Array(-c).join("0")+a:a.length>c+1?a.slice(0,c+1)+"."+a.slice(c+1):a+new Array(c-a.length+2).join("0")}Xl.prototype=ms.prototype,ms.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,0|this.width))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};const my={"%":(t,e)=>(100*t).toFixed(e),b:t=>Math.round(t).toString(2),c:t=>t+"",d:function(t){return Math.abs(t=Math.round(t))>=1e21?t.toLocaleString("en").replace(/,/g,""):t.toString(10)},e:(t,e)=>t.toExponential(e),f:(t,e)=>t.toFixed(e),g:(t,e)=>t.toPrecision(e),o:t=>Math.round(t).toString(8),p:(t,e)=>yy(100*t,e),r:yy,s:function(t,e){var r=r1(t,e);if(!r)return t+"";var a=r[0],c=r[1],u=c-(gy=3*Math.max(-8,Math.min(8,Math.floor(c/3))))+1,d=a.length;return u===d?a:u>d?a+new Array(u-d+1).join("0"):u>0?a.slice(0,u)+"."+a.slice(u):"0."+new Array(1-u).join("0")+r1(t,Math.max(0,e+u-1))[0]},X:t=>Math.round(t).toString(16).toUpperCase(),x:t=>Math.round(t).toString(16)};function vy(t){return t}var op,Wa,Zl,sp=Array.prototype.map,vs=["y","z","a","f","p","n","\xB5","m","","k","M","G","T","P","E","Z","Y"];function Nb(t){var e=t.domain;return t.ticks=function(r){var a=e();return function(c,u,d){var y,w,_,D,j=-1;if(d=+d,(c=+c)==(u=+u)&&d>0)return[c];if((y=u0){let P=Math.round(c/D),$=Math.round(u/D);for(P*Du&&--$,_=new Array(w=$-P+1);++ju&&--$,_=new Array(w=$-P+1);++j0;){if((c=$d(w,_,r))===a)return u[d]=w,u[y]=_,e(u);if(c>0)w=Math.floor(w/c)*c,_=Math.ceil(_/c)*c;else{if(!(c<0))break;w=Math.ceil(w*c)/c,_=Math.floor(_*c)/c}a=c}return t},t}function by(){var t=n1();return t.copy=function(){return e1(t,by())},ys.apply(t,arguments),Nb(t)}op=function(t){var e,r,a=t.grouping===void 0||t.thousands===void 0?vy:(e=sp.call(t.grouping,Number),r=t.thousands+"",function(P,$){for(var ct=P.length,rt=[],vt=0,ft=e[0],Et=0;ct>0&&ft>0&&(Et+ft+1>$&&(ft=Math.max(1,$-Et)),rt.push(P.substring(ct-=ft,ct+ft)),!((Et+=ft+1)>$));)ft=e[vt=(vt+1)%e.length];return rt.reverse().join(r)}),c=t.currency===void 0?"":t.currency[0]+"",u=t.currency===void 0?"":t.currency[1]+"",d=t.decimal===void 0?".":t.decimal+"",y=t.numerals===void 0?vy:function(P){return function($){return $.replace(/[0-9]/g,function(ct){return P[+ct]})}}(sp.call(t.numerals,String)),w=t.percent===void 0?"%":t.percent+"",_=t.minus===void 0?"\u2212":t.minus+"",D=t.nan===void 0?"NaN":t.nan+"";function j(P){var $=(P=Xl(P)).fill,ct=P.align,rt=P.sign,vt=P.symbol,ft=P.zero,Et=P.width,Nt=P.comma,Rt=P.precision,$t=P.trim,Mt=P.type;Mt==="n"?(Nt=!0,Mt="g"):my[Mt]||(Rt===void 0&&(Rt=12),$t=!0,Mt="g"),(ft||$==="0"&&ct==="=")&&(ft=!0,$="0",ct="=");var Xt=vt==="$"?c:vt==="#"&&/[boxX]/.test(Mt)?"0"+Mt.toLowerCase():"",Jt=vt==="$"?u:/[%p]/.test(Mt)?w:"",At=my[Mt],Bt=/[defgprs%]/.test(Mt);function wt(_t){var Ft,yt,we,_e=Xt,zt=Jt;if(Mt==="c")zt=At(_t)+zt,_t="";else{var Ce=(_t=+_t)<0||1/_t<0;if(_t=isNaN(_t)?D:At(Math.abs(_t),Rt),$t&&(_t=function(ge){t:for(var Re,Pe=ge.length,on=1,yn=-1;on0&&(yn=0)}return yn>0?ge.slice(0,yn)+ge.slice(Re+1):ge}(_t)),Ce&&+_t==0&&rt!=="+"&&(Ce=!1),_e=(Ce?rt==="("?rt:_:rt==="-"||rt==="("?"":rt)+_e,zt=(Mt==="s"?vs[8+gy/3]:"")+zt+(Ce&&rt==="("?")":""),Bt){for(Ft=-1,yt=_t.length;++Ft(we=_t.charCodeAt(Ft))||we>57){zt=(we===46?d+_t.slice(Ft+1):_t.slice(Ft))+zt,_t=_t.slice(0,Ft);break}}}Nt&&!ft&&(_t=a(_t,1/0));var Ee=_e.length+_t.length+zt.length,ke=Ee>1)+_e+_t+zt+ke.slice(Ee);break;default:_t=ke+_e+_t+zt}return y(_t)}return Rt=Rt===void 0?6:/[gprs]/.test(Mt)?Math.max(1,Math.min(21,Rt)):Math.max(0,Math.min(20,Rt)),wt.toString=function(){return P+""},wt}return{format:j,formatPrefix:function(P,$){var ct=j(((P=Xl(P)).type="f",P)),rt=3*Math.max(-8,Math.min(8,Math.floor(xu($)/3))),vt=Math.pow(10,-rt),ft=vs[8+rt/3];return function(Et){return ct(vt*Et)+ft}}}}({thousands:",",grouping:[3],currency:["$",""]}),Wa=op.format,Zl=op.formatPrefix;class _y extends Map{constructor(e,r=xy){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:r}}),e!=null)for(const[a,c]of e)this.set(a,c)}get(e){return super.get(cp(this,e))}has(e){return super.has(cp(this,e))}set(e,r){return super.set(function({_intern:a,_key:c},u){const d=c(u);return a.has(d)?a.get(d):(a.set(d,u),u)}(this,e),r)}delete(e){return super.delete(function({_intern:r,_key:a},c){const u=a(c);return r.has(u)&&(c=r.get(u),r.delete(u)),c}(this,e))}}function cp({_intern:t,_key:e},r){const a=e(r);return t.has(a)?t.get(a):r}function xy(t){return t!==null&&typeof t=="object"?t.valueOf():t}const Ql=Symbol("implicit");function Gs(){var t=new _y,e=[],r=[],a=Ql;function c(u){let d=t.get(u);if(d===void 0){if(a!==Ql)return a;t.set(u,d=e.push(u)-1)}return r[d%r.length]}return c.domain=function(u){if(!arguments.length)return e.slice();e=[],t=new _y;for(const d of u)t.has(d)||t.set(d,e.push(d)-1);return c},c.range=function(u){return arguments.length?(r=Array.from(u),c):r.slice()},c.unknown=function(u){return arguments.length?(a=u,c):a},c.copy=function(){return Gs(e,r).unknown(a)},ys.apply(c,arguments),c}const wu=1e3,Xs=6e4,Kl=36e5,up=864e5,lp=6048e5,i1=31536e6;var a1=new Date,o1=new Date;function Ci(t,e,r,a){function c(u){return t(u=arguments.length===0?new Date:new Date(+u)),u}return c.floor=function(u){return t(u=new Date(+u)),u},c.ceil=function(u){return t(u=new Date(u-1)),e(u,1),t(u),u},c.round=function(u){var d=c(u),y=c.ceil(u);return u-d0))return _;do _.push(w=new Date(+u)),e(u,y),t(u);while(w=d)for(;t(d),!u(d);)d.setTime(d-1)},function(d,y){if(d>=d)if(y<0)for(;++y<=0;)for(;e(d,-1),!u(d););else for(;--y>=0;)for(;e(d,1),!u(d););})},r&&(c.count=function(u,d){return a1.setTime(+u),o1.setTime(+d),t(a1),t(o1),Math.floor(r(a1,o1))},c.every=function(u){return u=Math.floor(u),isFinite(u)&&u>0?u>1?c.filter(a?function(d){return a(d)%u==0}:function(d){return c.count(0,d)%u==0}):c:null}),c}var s1=Ci(function(){},function(t,e){t.setTime(+t+e)},function(t,e){return e-t});s1.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?Ci(function(e){e.setTime(Math.floor(e/t)*t)},function(e,r){e.setTime(+e+r*t)},function(e,r){return(r-e)/t}):s1:null};const hp=s1;var wy=Ci(function(t){t.setTime(t-t.getMilliseconds())},function(t,e){t.setTime(+t+e*wu)},function(t,e){return(e-t)/wu},function(t){return t.getUTCSeconds()});const ku=wy;var Db=Ci(function(t){t.setTime(t-t.getMilliseconds()-t.getSeconds()*wu)},function(t,e){t.setTime(+t+e*Xs)},function(t,e){return(e-t)/Xs},function(t){return t.getMinutes()});const Jl=Db;var _o=Ci(function(t){t.setTime(t-t.getMilliseconds()-t.getSeconds()*wu-t.getMinutes()*Xs)},function(t,e){t.setTime(+t+e*Kl)},function(t,e){return(e-t)/Kl},function(t){return t.getHours()});const c1=_o;var fp=Ci(t=>t.setHours(0,0,0,0),(t,e)=>t.setDate(t.getDate()+e),(t,e)=>(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*Xs)/up,t=>t.getDate()-1);const Tu=fp;function bs(t){return Ci(function(e){e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)},function(e,r){e.setDate(e.getDate()+7*r)},function(e,r){return(r-e-(r.getTimezoneOffset()-e.getTimezoneOffset())*Xs)/lp})}var u1=bs(0),dp=bs(1);bs(2),bs(3);var Zs=bs(4);bs(5),bs(6);var Vo=Ci(function(t){t.setDate(1),t.setHours(0,0,0,0)},function(t,e){t.setMonth(t.getMonth()+e)},function(t,e){return e.getMonth()-t.getMonth()+12*(e.getFullYear()-t.getFullYear())},function(t){return t.getMonth()});const pp=Vo;var gp=Ci(function(t){t.setMonth(0,1),t.setHours(0,0,0,0)},function(t,e){t.setFullYear(t.getFullYear()+e)},function(t,e){return e.getFullYear()-t.getFullYear()},function(t){return t.getFullYear()});gp.every=function(t){return isFinite(t=Math.floor(t))&&t>0?Ci(function(e){e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)},function(e,r){e.setFullYear(e.getFullYear()+r*t)}):null};const _s=gp;Ci(function(t){t.setUTCSeconds(0,0)},function(t,e){t.setTime(+t+e*Xs)},function(t,e){return(e-t)/Xs},function(t){return t.getUTCMinutes()}),Ci(function(t){t.setUTCMinutes(0,0,0)},function(t,e){t.setTime(+t+e*Kl)},function(t,e){return(e-t)/Kl},function(t){return t.getUTCHours()});var yp=Ci(function(t){t.setUTCHours(0,0,0,0)},function(t,e){t.setUTCDate(t.getUTCDate()+e)},function(t,e){return(e-t)/up},function(t){return t.getUTCDate()-1});const th=yp;function xo(t){return Ci(function(e){e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setUTCHours(0,0,0,0)},function(e,r){e.setUTCDate(e.getUTCDate()+7*r)},function(e,r){return(r-e)/lp})}var ky=xo(0),l1=xo(1);xo(2),xo(3);var Cu=xo(4);xo(5),xo(6),Ci(function(t){t.setUTCDate(1),t.setUTCHours(0,0,0,0)},function(t,e){t.setUTCMonth(t.getUTCMonth()+e)},function(t,e){return e.getUTCMonth()-t.getUTCMonth()+12*(e.getUTCFullYear()-t.getUTCFullYear())},function(t){return t.getUTCMonth()});var Ty=Ci(function(t){t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},function(t,e){t.setUTCFullYear(t.getUTCFullYear()+e)},function(t,e){return e.getUTCFullYear()-t.getUTCFullYear()},function(t){return t.getUTCFullYear()});Ty.every=function(t){return isFinite(t=Math.floor(t))&&t>0?Ci(function(e){e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},function(e,r){e.setUTCFullYear(e.getUTCFullYear()+r*t)}):null};const ha=Ty;function Nc(t,e,r,a,c,u){const d=[[ku,1,wu],[ku,5,5e3],[ku,15,15e3],[ku,30,3e4],[u,1,Xs],[u,5,3e5],[u,15,9e5],[u,30,18e5],[c,1,Kl],[c,3,108e5],[c,6,216e5],[c,12,432e5],[a,1,up],[a,2,1728e5],[r,1,lp],[e,1,2592e6],[e,3,7776e6],[t,1,i1]];function y(w,_,D){const j=Math.abs(_-w)/D,P=Gd(([,,rt])=>rt).right(d,j);if(P===d.length)return t.every(Wd(w/i1,_/i1,D));if(P===0)return hp.every(Math.max(Wd(w,_,D),1));const[$,ct]=d[j/d[P-1][2][e.toLowerCase(),r]))}function h1(t,e,r){var a=Ei.exec(e.slice(r,r+1));return a?(t.w=+a[0],r+a[0].length):-1}function _p(t,e,r){var a=Ei.exec(e.slice(r,r+1));return a?(t.u=+a[0],r+a[0].length):-1}function Ob(t,e,r){var a=Ei.exec(e.slice(r,r+2));return a?(t.U=+a[0],r+a[0].length):-1}function Ib(t,e,r){var a=Ei.exec(e.slice(r,r+2));return a?(t.V=+a[0],r+a[0].length):-1}function Rb(t,e,r){var a=Ei.exec(e.slice(r,r+2));return a?(t.W=+a[0],r+a[0].length):-1}function Sy(t,e,r){var a=Ei.exec(e.slice(r,r+4));return a?(t.y=+a[0],r+a[0].length):-1}function Ay(t,e,r){var a=Ei.exec(e.slice(r,r+2));return a?(t.y=+a[0]+(+a[0]>68?1900:2e3),r+a[0].length):-1}function My(t,e,r){var a=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(e.slice(r,r+6));return a?(t.Z=a[1]?0:-(a[2]+(a[3]||"00")),r+a[0].length):-1}function xp(t,e,r){var a=Ei.exec(e.slice(r,r+1));return a?(t.q=3*a[0]-3,r+a[0].length):-1}function Ny(t,e,r){var a=Ei.exec(e.slice(r,r+2));return a?(t.m=a[0]-1,r+a[0].length):-1}function wp(t,e,r){var a=Ei.exec(e.slice(r,r+2));return a?(t.d=+a[0],r+a[0].length):-1}function Da(t,e,r){var a=Ei.exec(e.slice(r,r+3));return a?(t.m=0,t.d=+a[0],r+a[0].length):-1}function ah(t,e,r){var a=Ei.exec(e.slice(r,r+2));return a?(t.H=+a[0],r+a[0].length):-1}function Dc(t,e,r){var a=Ei.exec(e.slice(r,r+2));return a?(t.M=+a[0],r+a[0].length):-1}function Dy(t,e,r){var a=Ei.exec(e.slice(r,r+2));return a?(t.S=+a[0],r+a[0].length):-1}function Fb(t,e,r){var a=Ei.exec(e.slice(r,r+3));return a?(t.L=+a[0],r+a[0].length):-1}function Pb(t,e,r){var a=Ei.exec(e.slice(r,r+6));return a?(t.L=Math.floor(a[0]/1e3),r+a[0].length):-1}function jb(t,e,r){var a=vp.exec(e.slice(r,r+1));return a?r+a[0].length:-1}function Yb(t,e,r){var a=Ei.exec(e.slice(r));return a?(t.Q=+a[0],r+a[0].length):-1}function zb(t,e,r){var a=Ei.exec(e.slice(r));return a?(t.s=+a[0],r+a[0].length):-1}function Ly(t,e){return vr(t.getDate(),e,2)}function Lc(t,e){return vr(t.getHours(),e,2)}function By(t,e){return vr(t.getHours()%12||12,e,2)}function Ub(t,e){return vr(1+Tu.count(_s(t),t),e,3)}function Oy(t,e){return vr(t.getMilliseconds(),e,3)}function qb(t,e){return Oy(t,e)+"000"}function Hb(t,e){return vr(t.getMonth()+1,e,2)}function $b(t,e){return vr(t.getMinutes(),e,2)}function Wb(t,e){return vr(t.getSeconds(),e,2)}function Vb(t){var e=t.getDay();return e===0?7:e}function Gb(t,e){return vr(u1.count(_s(t)-1,t),e,2)}function Iy(t){var e=t.getDay();return e>=4||e===0?Zs(t):Zs.ceil(t)}function Xb(t,e){return t=Iy(t),vr(Zs.count(_s(t),t)+(_s(t).getDay()===4),e,2)}function Zb(t){return t.getDay()}function Ry(t,e){return vr(dp.count(_s(t)-1,t),e,2)}function Qb(t,e){return vr(t.getFullYear()%100,e,2)}function Kb(t,e){return vr((t=Iy(t)).getFullYear()%100,e,2)}function Fy(t,e){return vr(t.getFullYear()%1e4,e,4)}function Py(t,e){var r=t.getDay();return vr((t=r>=4||r===0?Zs(t):Zs.ceil(t)).getFullYear()%1e4,e,4)}function jy(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+vr(e/60|0,"0",2)+vr(e%60,"0",2)}function Yy(t,e){return vr(t.getUTCDate(),e,2)}function Jb(t,e){return vr(t.getUTCHours(),e,2)}function zy(t,e){return vr(t.getUTCHours()%12||12,e,2)}function Qs(t,e){return vr(1+th.count(ha(t),t),e,3)}function Uy(t,e){return vr(t.getUTCMilliseconds(),e,3)}function t4(t,e){return Uy(t,e)+"000"}function qy(t,e){return vr(t.getUTCMonth()+1,e,2)}function e4(t,e){return vr(t.getUTCMinutes(),e,2)}function n4(t,e){return vr(t.getUTCSeconds(),e,2)}function Hy(t){var e=t.getUTCDay();return e===0?7:e}function f1(t,e){return vr(ky.count(ha(t)-1,t),e,2)}function $y(t){var e=t.getUTCDay();return e>=4||e===0?Cu(t):Cu.ceil(t)}function oh(t,e){return t=$y(t),vr(Cu.count(ha(t),t)+(ha(t).getUTCDay()===4),e,2)}function r4(t){return t.getUTCDay()}function kp(t,e){return vr(l1.count(ha(t)-1,t),e,2)}function i4(t,e){return vr(t.getUTCFullYear()%100,e,2)}function a4(t,e){return vr((t=$y(t)).getUTCFullYear()%100,e,2)}function Wy(t,e){return vr(t.getUTCFullYear()%1e4,e,4)}function Eu(t,e){var r=t.getUTCDay();return vr((t=r>=4||r===0?Cu(t):Cu.ceil(t)).getUTCFullYear()%1e4,e,4)}function o4(){return"+0000"}function Tp(){return"%"}function Vy(t){return+t}function Gy(t){return Math.floor(+t/1e3)}function s4(t){return new Date(t)}function c4(t){return t instanceof Date?+t:+new Date(+t)}function Xy(t,e,r,a,c,u,d,y,w,_){var D=n1(),j=D.invert,P=D.domain,$=_(".%L"),ct=_(":%S"),rt=_("%I:%M"),vt=_("%I %p"),ft=_("%a %d"),Et=_("%b %d"),Nt=_("%B"),Rt=_("%Y");function $t(Mt){return(w(Mt)=12)]},q:function(At){return 1+~~(At.getMonth()/3)},Q:Vy,s:Gy,S:Wb,u:Vb,U:Gb,V:Xb,w:Zb,W:Ry,x:null,X:null,y:Qb,Y:Fy,Z:jy,"%":Tp},Rt={a:function(At){return d[At.getUTCDay()]},A:function(At){return u[At.getUTCDay()]},b:function(At){return w[At.getUTCMonth()]},B:function(At){return y[At.getUTCMonth()]},c:null,d:Yy,e:Yy,f:t4,g:a4,G:Eu,H:Jb,I:zy,j:Qs,L:Uy,m:qy,M:e4,p:function(At){return c[+(At.getUTCHours()>=12)]},q:function(At){return 1+~~(At.getUTCMonth()/3)},Q:Vy,s:Gy,S:n4,u:Hy,U:f1,V:oh,w:r4,W:kp,x:null,X:null,y:i4,Y:Wy,Z:o4,"%":Tp},$t={a:function(At,Bt,wt){var _t=$.exec(Bt.slice(wt));return _t?(At.w=ct.get(_t[0].toLowerCase()),wt+_t[0].length):-1},A:function(At,Bt,wt){var _t=j.exec(Bt.slice(wt));return _t?(At.w=P.get(_t[0].toLowerCase()),wt+_t[0].length):-1},b:function(At,Bt,wt){var _t=ft.exec(Bt.slice(wt));return _t?(At.m=Et.get(_t[0].toLowerCase()),wt+_t[0].length):-1},B:function(At,Bt,wt){var _t=rt.exec(Bt.slice(wt));return _t?(At.m=vt.get(_t[0].toLowerCase()),wt+_t[0].length):-1},c:function(At,Bt,wt){return Jt(At,e,Bt,wt)},d:wp,e:wp,f:Pb,g:Ay,G:Sy,H:ah,I:ah,j:Da,L:Fb,m:Ny,M:Dc,p:function(At,Bt,wt){var _t=_.exec(Bt.slice(wt));return _t?(At.p=D.get(_t[0].toLowerCase()),wt+_t[0].length):-1},q:xp,Q:Yb,s:zb,S:Dy,u:_p,U:Ob,V:Ib,w:h1,W:Rb,x:function(At,Bt,wt){return Jt(At,r,Bt,wt)},X:function(At,Bt,wt){return Jt(At,a,Bt,wt)},y:Ay,Y:Sy,Z:My,"%":jb};function Mt(At,Bt){return function(wt){var _t,Ft,yt,we=[],_e=-1,zt=0,Ce=At.length;for(wt instanceof Date||(wt=new Date(+wt));++_e53)return null;"w"in yt||(yt.w=1),"Z"in yt?(Ft=(_t=mp(eh(yt.y,0,1))).getUTCDay(),_t=Ft>4||Ft===0?l1.ceil(_t):l1(_t),_t=th.offset(_t,7*(yt.V-1)),yt.y=_t.getUTCFullYear(),yt.m=_t.getUTCMonth(),yt.d=_t.getUTCDate()+(yt.w+6)%7):(Ft=(_t=Go(eh(yt.y,0,1))).getDay(),_t=Ft>4||Ft===0?dp.ceil(_t):dp(_t),_t=Tu.offset(_t,7*(yt.V-1)),yt.y=_t.getFullYear(),yt.m=_t.getMonth(),yt.d=_t.getDate()+(yt.w+6)%7)}else("W"in yt||"U"in yt)&&("w"in yt||(yt.w="u"in yt?yt.u%7:"W"in yt?1:0),Ft="Z"in yt?mp(eh(yt.y,0,1)).getUTCDay():Go(eh(yt.y,0,1)).getDay(),yt.m=0,yt.d="W"in yt?(yt.w+6)%7+7*yt.W-(Ft+5)%7:yt.w+7*yt.U-(Ft+6)%7);return"Z"in yt?(yt.H+=yt.Z/100|0,yt.M+=yt.Z%100,mp(yt)):Go(yt)}}function Jt(At,Bt,wt,_t){for(var Ft,yt,we=0,_e=Bt.length,zt=wt.length;we<_e;){if(_t>=zt)return-1;if((Ft=Bt.charCodeAt(we++))===37){if(Ft=Bt.charAt(we++),!(yt=$t[Ft in Xo?Bt.charAt(we++):Ft])||(_t=yt(At,wt,_t))<0)return-1}else if(Ft!=wt.charCodeAt(_t++))return-1}return _t}return Nt.x=Mt(r,Nt),Nt.X=Mt(a,Nt),Nt.c=Mt(e,Nt),Rt.x=Mt(r,Rt),Rt.X=Mt(a,Rt),Rt.c=Mt(e,Rt),{format:function(At){var Bt=Mt(At+="",Nt);return Bt.toString=function(){return At},Bt},parse:function(At){var Bt=Xt(At+="",!1);return Bt.toString=function(){return At},Bt},utcFormat:function(At){var Bt=Mt(At+="",Rt);return Bt.toString=function(){return At},Bt},utcParse:function(At){var Bt=Xt(At+="",!0);return Bt.toString=function(){return At},Bt}}}({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]}),Ey=nh.format,nh.parse,nh.utcFormat,nh.utcParse;var h4=Array.prototype.find;function f4(){return this.firstElementChild}var Ep=Array.prototype.filter;function d4(){return Array.from(this.children)}function Jy(t){return new Array(t.length)}function d1(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}function p4(t){return function(){return t}}function Si(t,e,r,a,c,u){for(var d,y=0,w=e.length,_=u.length;y<_;++y)(d=e[y])?(d.__data__=u[y],a[y]=d):r[y]=new d1(t,u[y]);for(;ye?1:t>=e?0:NaN}d1.prototype={constructor:d1,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,e){return this._parent.insertBefore(t,e)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};var Sp="http://www.w3.org/1999/xhtml";const sh={svg:"http://www.w3.org/2000/svg",xhtml:Sp,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function Au(t){var e=t+="",r=e.indexOf(":");return r>=0&&(e=t.slice(0,r))!=="xmlns"&&(t=t.slice(r+1)),sh.hasOwnProperty(e)?{space:sh[e],local:t}:t}function em(t){return function(){this.removeAttribute(t)}}function da(t){return function(){this.removeAttributeNS(t.space,t.local)}}function y4(t,e){return function(){this.setAttribute(t,e)}}function m4(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}function v4(t,e){return function(){var r=e.apply(this,arguments);r==null?this.removeAttribute(t):this.setAttribute(t,r)}}function b4(t,e){return function(){var r=e.apply(this,arguments);r==null?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,r)}}function Ap(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function _4(t){return function(){this.style.removeProperty(t)}}function x4(t,e,r){return function(){this.style.setProperty(t,e,r)}}function w4(t,e,r){return function(){var a=e.apply(this,arguments);a==null?this.style.removeProperty(t):this.style.setProperty(t,a,r)}}function Mu(t,e){return t.style.getPropertyValue(e)||Ap(t).getComputedStyle(t,null).getPropertyValue(e)}function k4(t){return function(){delete this[t]}}function T4(t,e){return function(){this[t]=e}}function C4(t,e){return function(){var r=e.apply(this,arguments);r==null?delete this[t]:this[t]=r}}function nm(t){return t.trim().split(/^|\s+/)}function Mp(t){return t.classList||new ch(t)}function ch(t){this._node=t,this._names=nm(t.getAttribute("class")||"")}function Bc(t,e){for(var r=Mp(t),a=-1,c=e.length;++a=0&&(r=e.slice(a+1),e=e.slice(0,a)),{type:e,name:r}})}function fm(t){return function(){var e=this.__on;if(e){for(var r,a=0,c=-1,u=e.length;a=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};var Nu=[null];function Nr(t,e){this._groups=t,this._parents=e}function Or(){return new Nr([[document.documentElement]],Nu)}Nr.prototype=Or.prototype={constructor:Nr,select:function(t){typeof t!="function"&&(t=Su(t));for(var e=this._groups,r=e.length,a=new Array(r),c=0;c=$t&&($t=Rt+1);!(Nt=vt[$t])&&++$t=0;)(a=c[u])&&(d&&4^a.compareDocumentPosition(d)&&d.parentNode.insertBefore(a,d),d=a);return this},sort:function(t){function e(j,P){return j&&P?t(j.__data__,P.__data__):!j-!P}t||(t=g4);for(var r=this._groups,a=r.length,c=new Array(a),u=0;u1?this.each((e==null?_4:typeof e=="function"?w4:x4)(t,e,r==null?"":r)):Mu(this.node(),t)},property:function(t,e){return arguments.length>1?this.each((e==null?k4:typeof e=="function"?C4:T4)(t,e)):this.node()[t]},classed:function(t,e){var r=nm(t+"");if(arguments.length<2){for(var a=Mp(this.node()),c=-1,u=r.length;++cZo)if(Math.abs(D*y-w*_)>Zo&&c){var P=r-u,$=a-d,ct=y*y+w*w,rt=P*P+$*$,vt=Math.sqrt(ct),ft=Math.sqrt(j),Et=c*Math.tan((Wi-Math.acos((ct+j-rt)/(2*vt*ft)))/2),Nt=Et/ft,Rt=Et/vt;Math.abs(Nt-1)>Zo&&(this._+="L"+(t+Nt*_)+","+(e+Nt*D)),this._+="A"+c+","+c+",0,0,"+ +(D*P>_*$)+","+(this._x1=t+Rt*y)+","+(this._y1=e+Rt*w)}else this._+="L"+(this._x1=t)+","+(this._y1=e)},arc:function(t,e,r,a,c,u){t=+t,e=+e,u=!!u;var d=(r=+r)*Math.cos(a),y=r*Math.sin(a),w=t+d,_=e+y,D=1^u,j=u?a-c:c-a;if(r<0)throw new Error("negative radius: "+r);this._x1===null?this._+="M"+w+","+_:(Math.abs(this._x1-w)>Zo||Math.abs(this._y1-_)>Zo)&&(this._+="L"+w+","+_),r&&(j<0&&(j=j%fn+fn),j>dm?this._+="A"+r+","+r+",0,1,"+D+","+(t-d)+","+(e-y)+"A"+r+","+r+",0,1,"+D+","+(this._x1=w)+","+(this._y1=_):j>Zo&&(this._+="A"+r+","+r+",0,"+ +(j>=Wi)+","+D+","+(this._x1=t+r*Math.cos(c))+","+(this._y1=e+r*Math.sin(c))))},rect:function(t,e,r,a){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+e)+"h"+ +r+"v"+ +a+"h"+-r+"Z"},toString:function(){return this._}};const sn=b1;function br(t){return function(){return t}}var yi=Math.abs,Fi=Math.atan2,ec=Math.cos,pa=Math.max,_1=Math.min,_r=Math.sin,xs=Math.sqrt,ga=1e-12,Lu=Math.PI,Bu=Lu/2,hh=2*Lu;function wo(t){return t>1?0:t<-1?Lu:Math.acos(t)}function Bp(t){return t>=1?Bu:t<=-1?-Bu:Math.asin(t)}function pm(t){return t.innerRadius}function Op(t){return t.outerRadius}function Ip(t){return t.startAngle}function Rp(t){return t.endAngle}function x1(t){return t&&t.padAngle}function w1(t,e,r,a,c,u,d,y){var w=r-t,_=a-e,D=d-c,j=y-u,P=j*w-D*_;if(!(P*Pyt*yt+we*we&&(Jt=Bt,At=wt),{cx:Jt,cy:At,x01:-D,y01:-j,x11:Jt*(c/$t-1),y11:At*(c/$t-1)}}function Fp(){var t=pm,e=Op,r=br(0),a=null,c=Ip,u=Rp,d=x1,y=null;function w(){var _,D,j=+t.apply(this,arguments),P=+e.apply(this,arguments),$=c.apply(this,arguments)-Bu,ct=u.apply(this,arguments)-Bu,rt=yi(ct-$),vt=ct>$;if(y||(y=_=sn()),Pga)if(rt>hh-ga)y.moveTo(P*ec($),P*_r($)),y.arc(0,0,P,$,ct,!vt),j>ga&&(y.moveTo(j*ec(ct),j*_r(ct)),y.arc(0,0,j,ct,$,vt));else{var ft,Et,Nt=$,Rt=ct,$t=$,Mt=ct,Xt=rt,Jt=rt,At=d.apply(this,arguments)/2,Bt=At>ga&&(a?+a.apply(this,arguments):xs(j*j+P*P)),wt=_1(yi(P-j)/2,+r.apply(this,arguments)),_t=wt,Ft=wt;if(Bt>ga){var yt=Bp(Bt/j*_r(At)),we=Bp(Bt/P*_r(At));(Xt-=2*yt)>ga?($t+=yt*=vt?1:-1,Mt-=yt):(Xt=0,$t=Mt=($+ct)/2),(Jt-=2*we)>ga?(Nt+=we*=vt?1:-1,Rt-=we):(Jt=0,Nt=Rt=($+ct)/2)}var _e=P*ec(Nt),zt=P*_r(Nt),Ce=j*ec(Mt),Ee=j*_r(Mt);if(wt>ga){var ke,ge=P*ec(Rt),Re=P*_r(Rt),Pe=j*ec($t),on=j*_r($t);if(rtga?Ft>ga?(ft=Va(Pe,on,_e,zt,P,Ft,vt),Et=Va(ge,Re,Ce,Ee,P,Ft,vt),y.moveTo(ft.cx+ft.x01,ft.cy+ft.y01),Ftga&&Xt>ga?_t>ga?(ft=Va(Ce,Ee,ge,Re,j,-_t,vt),Et=Va(_e,zt,Pe,on,j,-_t,vt),y.lineTo(ft.cx+ft.x01,ft.cy+ft.y01),_tt?1:e>=t?0:NaN}function Ou(t){return t}function Iu(){}function Oc(t,e,r){t._context.bezierCurveTo((2*t._x0+t._x1)/3,(2*t._y0+t._y1)/3,(t._x0+2*t._x1)/3,(t._y0+2*t._y1)/3,(t._x0+4*t._x1+e)/6,(t._y0+4*t._y1+r)/6)}function fh(t){this._context=t}function jr(t){return new fh(t)}function ya(t){this._context=t}function ti(t){this._context=t}function La(t){this._context=t}function nc(t){return t<0?-1:1}function Pp(t,e,r){var a=t._x1-t._x0,c=e-t._x1,u=(t._y1-t._y0)/(a||c<0&&-0),d=(r-t._y1)/(c||a<0&&-0),y=(u*c+d*a)/(a+c);return(nc(u)+nc(d))*Math.min(Math.abs(u),Math.abs(d),.5*Math.abs(y))||0}function jp(t,e){var r=t._x1-t._x0;return r?(3*(t._y1-t._y0)/r-e)/2:e}function rc(t,e,r){var a=t._x0,c=t._y0,u=t._x1,d=t._y1,y=(u-a)/3;t._context.bezierCurveTo(a+y,c+y*e,u-y,d-y*r,u,d)}function To(t){this._context=t}function Qo(t){this._context=new Ru(t)}function Ru(t){this._context=t}function dh(t){this._context=t}function ph(t){var e,r,a=t.length-1,c=new Array(a),u=new Array(a),d=new Array(a);for(c[0]=0,u[0]=2,d[0]=t[0]+2*t[1],e=1;e=0;--e)c[e]=(d[e]-c[e+1])/u[e];for(u[a-1]=(t[a]+c[a-1])/2,e=0;e=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,e),this._context.lineTo(t,e);else{var r=this._x*(1-this._t)+t*this._t;this._context.lineTo(r,this._y),this._context.lineTo(r,e)}}this._x=t,this._y=e}};var Fu=new Date,Pu=new Date;function co(t,e,r,a){function c(u){return t(u=arguments.length===0?new Date:new Date(+u)),u}return c.floor=function(u){return t(u=new Date(+u)),u},c.ceil=function(u){return t(u=new Date(u-1)),e(u,1),t(u),u},c.round=function(u){var d=c(u),y=c.ceil(u);return u-d0))return _;do _.push(w=new Date(+u)),e(u,y),t(u);while(w=d)for(;t(d),!u(d);)d.setTime(d-1)},function(d,y){if(d>=d)if(y<0)for(;++y<=0;)for(;e(d,-1),!u(d););else for(;--y>=0;)for(;e(d,1),!u(d););})},r&&(c.count=function(u,d){return Fu.setTime(+u),Pu.setTime(+d),t(Fu),t(Pu),Math.floor(r(Fu,Pu))},c.every=function(u){return u=Math.floor(u),isFinite(u)&&u>0?u>1?c.filter(a?function(d){return a(d)%u==0}:function(d){return c.count(0,d)%u==0}):c:null}),c}const gh=864e5,C1=6048e5;function ws(t){return co(function(e){e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setUTCHours(0,0,0,0)},function(e,r){e.setUTCDate(e.getUTCDate()+7*r)},function(e,r){return(r-e)/C1})}var Yp=ws(0),E1=ws(1);ws(2),ws(3);var ju=ws(4);ws(5),ws(6);var ma=co(function(t){t.setUTCHours(0,0,0,0)},function(t,e){t.setUTCDate(t.getUTCDate()+e)},function(t,e){return(e-t)/gh},function(t){return t.getUTCDate()-1});const Zi=ma;function mi(t){return co(function(e){e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)},function(e,r){e.setDate(e.getDate()+7*r)},function(e,r){return(r-e-6e4*(r.getTimezoneOffset()-e.getTimezoneOffset()))/C1})}var yh=mi(0),Co=mi(1);mi(2),mi(3);var Rc=mi(4);mi(5),mi(6);var mm=co(t=>t.setHours(0,0,0,0),(t,e)=>t.setDate(t.getDate()+e),(t,e)=>(e-t-6e4*(e.getTimezoneOffset()-t.getTimezoneOffset()))/gh,t=>t.getDate()-1);const zp=mm;var Up=co(function(t){t.setMonth(0,1),t.setHours(0,0,0,0)},function(t,e){t.setFullYear(t.getFullYear()+e)},function(t,e){return e.getFullYear()-t.getFullYear()},function(t){return t.getFullYear()});Up.every=function(t){return isFinite(t=Math.floor(t))&&t>0?co(function(e){e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)},function(e,r){e.setFullYear(e.getFullYear()+r*t)}):null};const Yu=Up;var vm=co(function(t){t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},function(t,e){t.setUTCFullYear(t.getUTCFullYear()+e)},function(t,e){return e.getUTCFullYear()-t.getUTCFullYear()},function(t){return t.getUTCFullYear()});vm.every=function(t){return isFinite(t=Math.floor(t))&&t>0?co(function(e){e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},function(e,r){e.setUTCFullYear(e.getUTCFullYear()+r*t)}):null};const mh=vm;function va(t){if(0<=t.y&&t.y<100){var e=new Date(-1,t.m,t.d,t.H,t.M,t.S,t.L);return e.setFullYear(t.y),e}return new Date(t.y,t.m,t.d,t.H,t.M,t.S,t.L)}function qp(t){if(0<=t.y&&t.y<100){var e=new Date(Date.UTC(-1,t.m,t.d,t.H,t.M,t.S,t.L));return e.setUTCFullYear(t.y),e}return new Date(Date.UTC(t.y,t.m,t.d,t.H,t.M,t.S,t.L))}function zu(t,e,r){return{y:t,m:e,d:r,H:0,M:0,S:0,L:0}}var vh,Ga,S1={"-":"",_:" ",0:"0"},ci=/^\s*\d+/,bm=/^%/,A4=/[\\^$*+?|[\]().{}]/g;function xr(t,e,r){var a=t<0?"-":"",c=(a?-t:t)+"",u=c.length;return a+(u[e.toLowerCase(),r]))}function M4(t,e,r){var a=ci.exec(e.slice(r,r+1));return a?(t.w=+a[0],r+a[0].length):-1}function xm(t,e,r){var a=ci.exec(e.slice(r,r+1));return a?(t.u=+a[0],r+a[0].length):-1}function N4(t,e,r){var a=ci.exec(e.slice(r,r+2));return a?(t.U=+a[0],r+a[0].length):-1}function Uu(t,e,r){var a=ci.exec(e.slice(r,r+2));return a?(t.V=+a[0],r+a[0].length):-1}function Hp(t,e,r){var a=ci.exec(e.slice(r,r+2));return a?(t.W=+a[0],r+a[0].length):-1}function A1(t,e,r){var a=ci.exec(e.slice(r,r+4));return a?(t.y=+a[0],r+a[0].length):-1}function M1(t,e,r){var a=ci.exec(e.slice(r,r+2));return a?(t.y=+a[0]+(+a[0]>68?1900:2e3),r+a[0].length):-1}function wm(t,e,r){var a=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(e.slice(r,r+6));return a?(t.Z=a[1]?0:-(a[2]+(a[3]||"00")),r+a[0].length):-1}function km(t,e,r){var a=ci.exec(e.slice(r,r+1));return a?(t.q=3*a[0]-3,r+a[0].length):-1}function Tm(t,e,r){var a=ci.exec(e.slice(r,r+2));return a?(t.m=a[0]-1,r+a[0].length):-1}function $p(t,e,r){var a=ci.exec(e.slice(r,r+2));return a?(t.d=+a[0],r+a[0].length):-1}function Cm(t,e,r){var a=ci.exec(e.slice(r,r+3));return a?(t.m=0,t.d=+a[0],r+a[0].length):-1}function Wp(t,e,r){var a=ci.exec(e.slice(r,r+2));return a?(t.H=+a[0],r+a[0].length):-1}function D4(t,e,r){var a=ci.exec(e.slice(r,r+2));return a?(t.M=+a[0],r+a[0].length):-1}function Em(t,e,r){var a=ci.exec(e.slice(r,r+2));return a?(t.S=+a[0],r+a[0].length):-1}function N1(t,e,r){var a=ci.exec(e.slice(r,r+3));return a?(t.L=+a[0],r+a[0].length):-1}function D1(t,e,r){var a=ci.exec(e.slice(r,r+6));return a?(t.L=Math.floor(a[0]/1e3),r+a[0].length):-1}function Sm(t,e,r){var a=bm.exec(e.slice(r,r+1));return a?r+a[0].length:-1}function Am(t,e,r){var a=ci.exec(e.slice(r));return a?(t.Q=+a[0],r+a[0].length):-1}function Vp(t,e,r){var a=ci.exec(e.slice(r));return a?(t.s=+a[0],r+a[0].length):-1}function L1(t,e){return xr(t.getDate(),e,2)}function Mm(t,e){return xr(t.getHours(),e,2)}function Nm(t,e){return xr(t.getHours()%12||12,e,2)}function L4(t,e){return xr(1+zp.count(Yu(t),t),e,3)}function Dm(t,e){return xr(t.getMilliseconds(),e,3)}function Gp(t,e){return Dm(t,e)+"000"}function Lm(t,e){return xr(t.getMonth()+1,e,2)}function xh(t,e){return xr(t.getMinutes(),e,2)}function B1(t,e){return xr(t.getSeconds(),e,2)}function O1(t){var e=t.getDay();return e===0?7:e}function B4(t,e){return xr(yh.count(Yu(t)-1,t),e,2)}function I1(t){var e=t.getDay();return e>=4||e===0?Rc(t):Rc.ceil(t)}function R1(t,e){return t=I1(t),xr(Rc.count(Yu(t),t)+(Yu(t).getDay()===4),e,2)}function F1(t){return t.getDay()}function Xp(t,e){return xr(Co.count(Yu(t)-1,t),e,2)}function qu(t,e){return xr(t.getFullYear()%100,e,2)}function O4(t,e){return xr((t=I1(t)).getFullYear()%100,e,2)}function I4(t,e){return xr(t.getFullYear()%1e4,e,4)}function R4(t,e){var r=t.getDay();return xr((t=r>=4||r===0?Rc(t):Rc.ceil(t)).getFullYear()%1e4,e,4)}function Bm(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+xr(e/60|0,"0",2)+xr(e%60,"0",2)}function P1(t,e){return xr(t.getUTCDate(),e,2)}function F4(t,e){return xr(t.getUTCHours(),e,2)}function j1(t,e){return xr(t.getUTCHours()%12||12,e,2)}function Om(t,e){return xr(1+Zi.count(mh(t),t),e,3)}function Zp(t,e){return xr(t.getUTCMilliseconds(),e,3)}function Y1(t,e){return Zp(t,e)+"000"}function Im(t,e){return xr(t.getUTCMonth()+1,e,2)}function Rm(t,e){return xr(t.getUTCMinutes(),e,2)}function Fm(t,e){return xr(t.getUTCSeconds(),e,2)}function P4(t){var e=t.getUTCDay();return e===0?7:e}function Pm(t,e){return xr(Yp.count(mh(t)-1,t),e,2)}function jm(t){var e=t.getUTCDay();return e>=4||e===0?ju(t):ju.ceil(t)}function Ym(t,e){return t=jm(t),xr(ju.count(mh(t),t)+(mh(t).getUTCDay()===4),e,2)}function zm(t){return t.getUTCDay()}function Um(t,e){return xr(E1.count(mh(t)-1,t),e,2)}function j4(t,e){return xr(t.getUTCFullYear()%100,e,2)}function Y4(t,e){return xr((t=jm(t)).getUTCFullYear()%100,e,2)}function wh(t,e){return xr(t.getUTCFullYear()%1e4,e,4)}function qm(t,e){var r=t.getUTCDay();return xr((t=r>=4||r===0?ju(t):ju.ceil(t)).getUTCFullYear()%1e4,e,4)}function Hm(){return"+0000"}function z1(){return"%"}function U1(t){return+t}function q1(t){return Math.floor(+t/1e3)}vh=function(t){var e=t.dateTime,r=t.date,a=t.time,c=t.periods,u=t.days,d=t.shortDays,y=t.months,w=t.shortMonths,_=bh(c),D=_h(c),j=bh(u),P=_h(u),$=bh(d),ct=_h(d),rt=bh(y),vt=_h(y),ft=bh(w),Et=_h(w),Nt={a:function(At){return d[At.getDay()]},A:function(At){return u[At.getDay()]},b:function(At){return w[At.getMonth()]},B:function(At){return y[At.getMonth()]},c:null,d:L1,e:L1,f:Gp,g:O4,G:R4,H:Mm,I:Nm,j:L4,L:Dm,m:Lm,M:xh,p:function(At){return c[+(At.getHours()>=12)]},q:function(At){return 1+~~(At.getMonth()/3)},Q:U1,s:q1,S:B1,u:O1,U:B4,V:R1,w:F1,W:Xp,x:null,X:null,y:qu,Y:I4,Z:Bm,"%":z1},Rt={a:function(At){return d[At.getUTCDay()]},A:function(At){return u[At.getUTCDay()]},b:function(At){return w[At.getUTCMonth()]},B:function(At){return y[At.getUTCMonth()]},c:null,d:P1,e:P1,f:Y1,g:Y4,G:qm,H:F4,I:j1,j:Om,L:Zp,m:Im,M:Rm,p:function(At){return c[+(At.getUTCHours()>=12)]},q:function(At){return 1+~~(At.getUTCMonth()/3)},Q:U1,s:q1,S:Fm,u:P4,U:Pm,V:Ym,w:zm,W:Um,x:null,X:null,y:j4,Y:wh,Z:Hm,"%":z1},$t={a:function(At,Bt,wt){var _t=$.exec(Bt.slice(wt));return _t?(At.w=ct.get(_t[0].toLowerCase()),wt+_t[0].length):-1},A:function(At,Bt,wt){var _t=j.exec(Bt.slice(wt));return _t?(At.w=P.get(_t[0].toLowerCase()),wt+_t[0].length):-1},b:function(At,Bt,wt){var _t=ft.exec(Bt.slice(wt));return _t?(At.m=Et.get(_t[0].toLowerCase()),wt+_t[0].length):-1},B:function(At,Bt,wt){var _t=rt.exec(Bt.slice(wt));return _t?(At.m=vt.get(_t[0].toLowerCase()),wt+_t[0].length):-1},c:function(At,Bt,wt){return Jt(At,e,Bt,wt)},d:$p,e:$p,f:D1,g:M1,G:A1,H:Wp,I:Wp,j:Cm,L:N1,m:Tm,M:D4,p:function(At,Bt,wt){var _t=_.exec(Bt.slice(wt));return _t?(At.p=D.get(_t[0].toLowerCase()),wt+_t[0].length):-1},q:km,Q:Am,s:Vp,S:Em,u:xm,U:N4,V:Uu,w:M4,W:Hp,x:function(At,Bt,wt){return Jt(At,r,Bt,wt)},X:function(At,Bt,wt){return Jt(At,a,Bt,wt)},y:M1,Y:A1,Z:wm,"%":Sm};function Mt(At,Bt){return function(wt){var _t,Ft,yt,we=[],_e=-1,zt=0,Ce=At.length;for(wt instanceof Date||(wt=new Date(+wt));++_e53)return null;"w"in yt||(yt.w=1),"Z"in yt?(Ft=(_t=qp(zu(yt.y,0,1))).getUTCDay(),_t=Ft>4||Ft===0?E1.ceil(_t):E1(_t),_t=Zi.offset(_t,7*(yt.V-1)),yt.y=_t.getUTCFullYear(),yt.m=_t.getUTCMonth(),yt.d=_t.getUTCDate()+(yt.w+6)%7):(Ft=(_t=va(zu(yt.y,0,1))).getDay(),_t=Ft>4||Ft===0?Co.ceil(_t):Co(_t),_t=zp.offset(_t,7*(yt.V-1)),yt.y=_t.getFullYear(),yt.m=_t.getMonth(),yt.d=_t.getDate()+(yt.w+6)%7)}else("W"in yt||"U"in yt)&&("w"in yt||(yt.w="u"in yt?yt.u%7:"W"in yt?1:0),Ft="Z"in yt?qp(zu(yt.y,0,1)).getUTCDay():va(zu(yt.y,0,1)).getDay(),yt.m=0,yt.d="W"in yt?(yt.w+6)%7+7*yt.W-(Ft+5)%7:yt.w+7*yt.U-(Ft+6)%7);return"Z"in yt?(yt.H+=yt.Z/100|0,yt.M+=yt.Z%100,qp(yt)):va(yt)}}function Jt(At,Bt,wt,_t){for(var Ft,yt,we=0,_e=Bt.length,zt=wt.length;we<_e;){if(_t>=zt)return-1;if((Ft=Bt.charCodeAt(we++))===37){if(Ft=Bt.charAt(we++),!(yt=$t[Ft in S1?Bt.charAt(we++):Ft])||(_t=yt(At,wt,_t))<0)return-1}else if(Ft!=wt.charCodeAt(_t++))return-1}return _t}return Nt.x=Mt(r,Nt),Nt.X=Mt(a,Nt),Nt.c=Mt(e,Nt),Rt.x=Mt(r,Rt),Rt.X=Mt(a,Rt),Rt.c=Mt(e,Rt),{format:function(At){var Bt=Mt(At+="",Nt);return Bt.toString=function(){return At},Bt},parse:function(At){var Bt=Xt(At+="",!1);return Bt.toString=function(){return At},Bt},utcFormat:function(At){var Bt=Mt(At+="",Rt);return Bt.toString=function(){return At},Bt},utcParse:function(At){var Bt=Xt(At+="",!0);return Bt.toString=function(){return At},Bt}}}({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]}),Ga=vh.format,vh.parse,vh.utcFormat,vh.utcParse;var Qp={value:()=>{}};function ks(){for(var t,e=0,r=arguments.length,a={};e=0&&(a=r.slice(c+1),r=r.slice(0,c)),r&&!e.hasOwnProperty(r))throw new Error("unknown type: "+r);return{type:r,name:a}})}function $m(t,e){for(var r,a=0,c=t.length;a0)for(var r,a,c=new Array(r),u=0;u=0&&e._call.call(void 0,t),e=e._next;--Ko})()}finally{Ko=0,function(){for(var t,e,r=Ts,a=1/0;r;)r._call?(a>r._time&&(a=r._time),t=r,r=r._next):(e=r._next,r._next=null,r=t?t._next=e:Ts=e);ic=t,Ah(a)}(),oc=0}}function Hu(){var t=Ba.now(),e=t-Fc;e>1e3&&(Th-=e,Fc=t)}function Ah(t){Ko||(ac&&(ac=clearTimeout(ac)),t-oc>24?(t<1/0&&(ac=setTimeout(Sh,t-Ba.now()-Th)),kh&&(kh=clearInterval(kh))):(kh||(Fc=Ba.now(),kh=setInterval(Hu,1e3)),Ko=1,Eo(Sh)))}function $1(t,e,r){var a=new sc;return e=e==null?0:+e,a.restart(c=>{a.stop(),t(c+e)},e,r),a}sc.prototype=Eh.prototype={constructor:sc,restart:function(t,e,r){if(typeof t!="function")throw new TypeError("callback is not a function");r=(r==null?Ch():+r)+(e==null?0:+e),this._next||ic===this||(ic?ic._next=this:Ts=this,ic=this),this._call=t,this._time=r,Ah()},stop:function(){this._call&&(this._call=null,this._time=1/0,Ah())}};var Mh=Vm("start","end","cancel","interrupt"),So=[];function Jo(t,e,r,a,c,u){var d=t.__transition;if(d){if(r in d)return}else t.__transition={};(function(y,w,_){var D,j=y.__transition;function P(rt){var vt,ft,Et,Nt;if(_.state!==1)return ct();for(vt in j)if((Nt=j[vt]).name===_.name){if(Nt.state===3)return $1(P);Nt.state===4?(Nt.state=6,Nt.timer.stop(),Nt.on.call("interrupt",y,y.__data__,Nt.index,Nt.group),delete j[vt]):+vt0)throw new Error("too late; already scheduled");return r}function ts(t,e){var r=Ao(t,e);if(r.state>3)throw new Error("too late; already running");return r}function Ao(t,e){var r=t.__transition;if(!r||!(r=r[e]))throw new Error("transition not found");return r}function Cs(t,e){return t=+t,e=+e,function(r){return t*(1-r)+e*r}}var V1,Gm=180/Math.PI,Jp={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function tg(t,e,r,a,c,u){var d,y,w;return(d=Math.sqrt(t*t+e*e))&&(t/=d,e/=d),(w=t*r+e*a)&&(r-=t*w,a-=e*w),(y=Math.sqrt(r*r+a*a))&&(r/=y,a/=y,w/=y),t*a180?D+=360:D-_>180&&(_+=360),P.push({i:j.push(c(j)+"rotate(",null,a)-2,x:Cs(_,D)})):D&&j.push(c(j)+"rotate("+D+a)}(u.rotate,d.rotate,y,w),function(_,D,j,P){_!==D?P.push({i:j.push(c(j)+"skewX(",null,a)-2,x:Cs(_,D)}):D&&j.push(c(j)+"skewX("+D+a)}(u.skewX,d.skewX,y,w),function(_,D,j,P,$,ct){if(_!==j||D!==P){var rt=$.push(c($)+"scale(",null,",",null,")");ct.push({i:rt-4,x:Cs(_,j)},{i:rt-2,x:Cs(D,P)})}else j===1&&P===1||$.push(c($)+"scale("+j+","+P+")")}(u.scaleX,u.scaleY,d.scaleX,d.scaleY,y,w),u=d=null,function(_){for(var D,j=-1,P=w.length;++ju&&(c=e.slice(u,c),y[d]?y[d]+=c:y[++d]=c),(r=r[0])===(a=a[0])?y[d]?y[d]+=a:y[++d]=a:(y[++d]=null,w.push({i:d,x:Cs(r,a)})),u=Wu.lastIndex;return u=0&&(y=y.slice(0,w)),!y||y==="start"})}(e)?W1:ts;return function(){var d=u(this,t),y=d.on;y!==a&&(c=(a=y).copy()).on(e,r),d.on=c}}var nv=_n.prototype.constructor;function Mo(t){return function(){this.style.removeProperty(t)}}function ug(t,e,r){return function(a){this.style.setProperty(t,e.call(this,a),r)}}function lg(t,e,r){var a,c;function u(){var d=e.apply(this,arguments);return d!==c&&(a=(c=d)&&ug(t,d,r)),a}return u._value=e,u}function rv(t){return function(e){this.textContent=t.call(this,e)}}function X1(t){var e,r;function a(){var c=t.apply(this,arguments);return c!==r&&(e=(r=c)&&rv(c)),e}return a._value=t,a}var iv=0;function Es(t,e,r,a){this._groups=t,this._parents=e,this._name=r,this._id=a}function hg(){return++iv}var Xa=_n.prototype;Es.prototype={constructor:Es,select:function(t){var e=this._name,r=this._id;typeof t!="function"&&(t=Su(t));for(var a=this._groups,c=a.length,u=new Array(c),d=0;d2&&a.state<5,a.state=6,a.timer.stop(),a.on.call(c?"interrupt":"cancel",e,e.__data__,a.index,a.group),delete d[u]):y=!1;y&&delete e.__transition}})(this,t)})},_n.prototype.transition=function(t){var e,r;t instanceof Es?(e=t._id,t=t._name):(e=hg(),(r=fg).time=Ch(),t=t==null?null:t+"");for(var a=this._groups,c=a.length,u=0;ue?1:t>=e?0:NaN}cc.prototype={constructor:cc,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,e){return this._parent.insertBefore(t,e)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};var Ph="http://www.w3.org/1999/xhtml";const sv={svg:"http://www.w3.org/2000/svg",xhtml:Ph,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function Q1(t){var e=t+="",r=e.indexOf(":");return r>=0&&(e=t.slice(0,r))!=="xmlns"&&(t=t.slice(r+1)),sv.hasOwnProperty(e)?{space:sv[e],local:t}:t}function vg(t){return function(){this.removeAttribute(t)}}function J4(t){return function(){this.removeAttributeNS(t.space,t.local)}}function bg(t,e){return function(){this.setAttribute(t,e)}}function t5(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}function _g(t,e){return function(){var r=e.apply(this,arguments);r==null?this.removeAttribute(t):this.setAttribute(t,r)}}function e5(t,e){return function(){var r=e.apply(this,arguments);r==null?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,r)}}function K1(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function n5(t){return function(){this.style.removeProperty(t)}}function r5(t,e,r){return function(){this.style.setProperty(t,e,r)}}function i5(t,e,r){return function(){var a=e.apply(this,arguments);a==null?this.style.removeProperty(t):this.style.setProperty(t,a,r)}}function Vu(t,e){return t.style.getPropertyValue(e)||K1(t).getComputedStyle(t,null).getPropertyValue(e)}function a5(t){return function(){delete this[t]}}function o5(t,e){return function(){this[t]=e}}function xg(t,e){return function(){var r=e.apply(this,arguments);r==null?delete this[t]:this[t]=r}}function cv(t){return t.trim().split(/^|\s+/)}function wg(t){return t.classList||new kg(t)}function kg(t){this._node=t,this._names=cv(t.getAttribute("class")||"")}function jc(t,e){for(var r=wg(t),a=-1,c=e.length;++a=0&&(r=e.slice(a+1),e=e.slice(0,a)),{type:e,name:r}})}function h5(t){return function(){var e=this.__on;if(e){for(var r,a=0,c=-1,u=e.length;a=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};var Yh=[null];function No(t,e){this._groups=t,this._parents=e}function xv(){return new No([[document.documentElement]],Yh)}No.prototype=xv.prototype={constructor:No,select:function(t){typeof t!="function"&&(t=pg(t));for(var e=this._groups,r=e.length,a=new Array(r),c=0;c=$t&&($t=Rt+1);!(Nt=vt[$t])&&++$t=0;)(a=c[u])&&(d&&4^a.compareDocumentPosition(d)&&d.parentNode.insertBefore(a,d),d=a);return this},sort:function(t){function e(j,P){return j&&P?t(j.__data__,P.__data__):!j-!P}t||(t=K4);for(var r=this._groups,a=r.length,c=new Array(a),u=0;u1?this.each((e==null?n5:typeof e=="function"?i5:r5)(t,e,r==null?"":r)):Vu(this.node(),t)},property:function(t,e){return arguments.length>1?this.each((e==null?a5:typeof e=="function"?xg:o5)(t,e)):this.node()[t]},classed:function(t,e){var r=cv(t+"");if(arguments.length<2){for(var a=wg(this.node()),c=-1,u=r.length;++c{}};function wv(){for(var t,e=0,r=arguments.length,a={};e=0&&(a=r.slice(c+1),r=r.slice(0,c)),r&&!e.hasOwnProperty(r))throw new Error("unknown type: "+r);return{type:r,name:a}})}function Cg(t,e){for(var r,a=0,c=t.length;a0)for(var r,a,c=new Array(r),u=0;u=0&&e._call.call(void 0,t),e=e._next;--Xu})()}finally{Xu=0,function(){for(var t,e,r=a0,a=1/0;r;)r._call?(a>r._time&&(a=r._time),t=r,r=r._next):(e=r._next,r._next=null,r=t?t._next=e:a0=e);uc=t,c0(a)}(),hc=0}}function Tv(){var t=qh.now(),e=t-Uh;e>1e3&&(o0-=e,Uh=t)}function c0(t){Xu||(lc&&(lc=clearTimeout(lc)),t-hc>24?(t<1/0&&(lc=setTimeout(Qu,t-qh.now()-o0)),Zu&&(Zu=clearInterval(Zu))):(Zu||(Uh=qh.now(),Zu=setInterval(Tv,1e3)),Xu=1,kv(Qu)))}function Ag(t,e,r){var a=new s0;return e=e==null?0:+e,a.restart(c=>{a.stop(),t(c+e)},e,r),a}s0.prototype=Sg.prototype={constructor:s0,restart:function(t,e,r){if(typeof t!="function")throw new TypeError("callback is not a function");r=(r==null?Eg():+r)+(e==null?0:+e),this._next||uc===this||(uc?uc._next=this:a0=this,uc=this),this._call=t,this._time=r,c0()},stop:function(){this._call&&(this._call=null,this._time=1/0,c0())}};var y5=p5("start","end","cancel","interrupt"),m5=[];function u0(t,e,r,a,c,u){var d=t.__transition;if(d){if(r in d)return}else t.__transition={};(function(y,w,_){var D,j=y.__transition;function P(rt){var vt,ft,Et,Nt;if(_.state!==1)return ct();for(vt in j)if((Nt=j[vt]).name===_.name){if(Nt.state===3)return Ag(P);Nt.state===4?(Nt.state=6,Nt.timer.stop(),Nt.on.call("interrupt",y,y.__data__,Nt.index,Nt.group),delete j[vt]):+vt0)throw new Error("too late; already scheduled");return r}function es(t,e){var r=Do(t,e);if(r.state>3)throw new Error("too late; already running");return r}function Do(t,e){var r=t.__transition;if(!r||!(r=r[e]))throw new Error("transition not found");return r}function Ss(t,e){return t=+t,e=+e,function(r){return t*(1-r)+e*r}}var h0,Hh=180/Math.PI,Mg={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function Cv(t,e,r,a,c,u){var d,y,w;return(d=Math.sqrt(t*t+e*e))&&(t/=d,e/=d),(w=t*r+e*a)&&(r-=t*w,a-=e*w),(y=Math.sqrt(r*r+a*a))&&(r/=y,a/=y,w/=y),t*a180?D+=360:D-_>180&&(_+=360),P.push({i:j.push(c(j)+"rotate(",null,a)-2,x:Ss(_,D)})):D&&j.push(c(j)+"rotate("+D+a)}(u.rotate,d.rotate,y,w),function(_,D,j,P){_!==D?P.push({i:j.push(c(j)+"skewX(",null,a)-2,x:Ss(_,D)}):D&&j.push(c(j)+"skewX("+D+a)}(u.skewX,d.skewX,y,w),function(_,D,j,P,$,ct){if(_!==j||D!==P){var rt=$.push(c($)+"scale(",null,",",null,")");ct.push({i:rt-4,x:Ss(_,j)},{i:rt-2,x:Ss(D,P)})}else j===1&&P===1||$.push(c($)+"scale("+j+","+P+")")}(u.scaleX,u.scaleY,d.scaleX,d.scaleY,y,w),u=d=null,function(_){for(var D,j=-1,P=w.length;++j>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):r===8?Vh(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):r===4?Vh(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|240&e,((15&e)<<4|15&e)/255):null):(e=Lo.exec(t))?new Oa(e[1],e[2],e[3],1):(e=As.exec(t))?new Oa(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=Mv.exec(t))?Vh(e[1],e[2],e[3],e[4]):(e=d0.exec(t))?Vh(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=zc.exec(t))?Xh(e[1],e[2]/100,e[3]/100,1):(e=Lg.exec(t))?Xh(e[1],e[2]/100,e[3]/100,e[4]):p0.hasOwnProperty(t)?y0(p0[t]):t==="transparent"?new Oa(NaN,NaN,NaN,0):null}function y0(t){return new Oa(t>>16&255,t>>8&255,255&t,1)}function Vh(t,e,r,a){return a<=0&&(t=e=r=NaN),new Oa(t,e,r,a)}function Vi(t){return t instanceof ns||(t=Wh(t)),t?new Oa((t=t.rgb()).r,t.g,t.b,t.opacity):new Oa}function Gh(t,e,r,a){return arguments.length===1?Vi(t):new Oa(t,e,r,a==null?1:a)}function Oa(t,e,r,a){this.r=+t,this.g=+e,this.b=+r,this.opacity=+a}function Nv(){return"#"+Uc(this.r)+Uc(this.g)+Uc(this.b)}function Dv(){var t=this.opacity;return((t=isNaN(t)?1:Math.max(0,Math.min(1,t)))===1?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(t===1?")":", "+t+")")}function Uc(t){return((t=Math.max(0,Math.min(255,Math.round(t)||0)))<16?"0":"")+t.toString(16)}function Xh(t,e,r,a){return a<=0?t=e=r=NaN:r<=0||r>=1?t=e=NaN:e<=0&&(t=NaN),new Bo(t,e,r,a)}function Og(t){if(t instanceof Bo)return new Bo(t.h,t.s,t.l,t.opacity);if(t instanceof ns||(t=Wh(t)),!t)return new Bo;if(t instanceof Bo)return t;var e=(t=t.rgb()).r/255,r=t.g/255,a=t.b/255,c=Math.min(e,r,a),u=Math.max(e,r,a),d=NaN,y=u-c,w=(u+c)/2;return y?(d=e===u?(r-a)/y+6*(r0&&w<1?0:d,new Bo(d,y,w,t.opacity)}function Bo(t,e,r,a){this.h=+t,this.s=+e,this.l=+r,this.opacity=+a}function Ms(t,e,r){return 255*(t<60?e+(r-e)*t/60:t<180?r:t<240?e+(r-e)*(240-t)/60:e)}Dg(ns,Wh,{copy:function(t){return Object.assign(new this.constructor,this,t)},displayable:function(){return this.rgb().displayable()},hex:g0,formatHex:g0,formatHsl:function(){return Og(this).formatHsl()},formatRgb:Bg,toString:Bg}),Dg(Oa,Gh,Av(ns,{brighter:function(t){return t=t==null?$h:Math.pow($h,t),new Oa(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=t==null?f0:Math.pow(f0,t),new Oa(this.r*t,this.g*t,this.b*t,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:Nv,formatHex:Nv,formatRgb:Dv,toString:Dv})),Dg(Bo,function(t,e,r,a){return arguments.length===1?Og(t):new Bo(t,e,r,a==null?1:a)},Av(ns,{brighter:function(t){return t=t==null?$h:Math.pow($h,t),new Bo(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=t==null?f0:Math.pow(f0,t),new Bo(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=this.h%360+360*(this.h<0),e=isNaN(t)||isNaN(this.s)?0:this.s,r=this.l,a=r+(r<.5?r:1-r)*e,c=2*r-a;return new Oa(Ms(t>=240?t-240:t+120,c,a),Ms(t,c,a),Ms(t<120?t+240:t-120,c,a),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var t=this.opacity;return((t=isNaN(t)?1:Math.max(0,Math.min(1,t)))===1?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(t===1?")":", "+t+")")}}));const Ig=t=>()=>t;function Rg(t,e){var r=e-t;return r?function(a,c){return function(u){return a+u*c}}(t,r):Ig(isNaN(t)?e:t)}const Fg=function t(e){var r=function(c){return(c=+c)==1?Rg:function(u,d){return d-u?function(y,w,_){return y=Math.pow(y,_),w=Math.pow(w,_)-y,_=1/_,function(D){return Math.pow(y+D*w,_)}}(u,d,c):Ig(isNaN(u)?d:u)}}(e);function a(c,u){var d=r((c=Gh(c)).r,(u=Gh(u)).r),y=r(c.g,u.g),w=r(c.b,u.b),_=Rg(c.opacity,u.opacity);return function(D){return c.r=d(D),c.g=y(D),c.b=w(D),c.opacity=_(D),c+""}}return a.gamma=t,a}(1);var m0=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,v0=new RegExp(m0.source,"g");function w5(t,e){var r,a,c,u=m0.lastIndex=v0.lastIndex=0,d=-1,y=[],w=[];for(t+="",e+="";(r=m0.exec(t))&&(a=v0.exec(e));)(c=a.index)>u&&(c=e.slice(u,c),y[d]?y[d]+=c:y[++d]=c),(r=r[0])===(a=a[0])?y[d]?y[d]+=a:y[++d]=a:(y[++d]=null,w.push({i:d,x:Ss(r,a)})),u=v0.lastIndex;return u=0&&(y=y.slice(0,w)),!y||y==="start"})}(e)?l0:es;return function(){var d=u(this,t),y=d.on;y!==a&&(c=(a=y).copy()).on(e,r),d.on=c}}var zv=zh.prototype.constructor;function b0(t){return function(){this.style.removeProperty(t)}}function Ug(t,e,r){return function(a){this.style.setProperty(t,e.call(this,a),r)}}function Ai(t,e,r){var a,c;function u(){var d=e.apply(this,arguments);return d!==c&&(a=(c=d)&&Ug(t,d,r)),a}return u._value=e,u}function qg(t){return function(e){this.textContent=t.call(this,e)}}function qc(t){var e,r;function a(){var c=t.apply(this,arguments);return c!==r&&(e=(r=c)&&qg(c)),e}return a._value=t,a}var S5=0;function is(t,e,r,a){this._groups=t,this._parents=e,this._name=r,this._id=a}function Hg(){return++S5}var Ns=zh.prototype;is.prototype={constructor:is,select:function(t){var e=this._name,r=this._id;typeof t!="function"&&(t=pg(t));for(var a=this._groups,c=a.length,u=new Array(c),d=0;d2&&a.state<5,a.state=6,a.timer.stop(),a.on.call(c?"interrupt":"cancel",e,e.__data__,a.index,a.group),delete d[u]):y=!1;y&&delete e.__transition}})(this,t)})},zh.prototype.transition=function(t){var e,r;t instanceof is?(e=t._id,t=t._name):(e=Hg(),(r=_0).time=Eg(),t=t==null?null:t+"");for(var a=this._groups,c=a.length,u=0;u0?Ds(rl,--Za):0,nl--,ei===10&&(nl=1,k0--),ei}function Oo(){return ei=Za2||E0(ei)>3?"":" "}function S0(t,e){for(;--e&&Oo()&&!(ei<48||ei>102||ei>57&&ei<65||ei>70&&ei<97););return C0(t,Qh()+(e<6&&fc()==32&&Oo()==32))}function al(t){for(;Oo();)switch(ei){case t:return Za;case 34:case 39:t!==34&&t!==39&&al(ei);break;case 40:t===41&&al(t);break;case 92:Oo()}return Za}function Wv(t,e){for(;Oo()&&t+ei!==57&&(t+ei!==84||fc()!==47););return"/*"+C0(e,Za-1)+"*"+Wc(t===47?t:Oo())}function Vc(t){for(;!E0(fc());)Oo();return C0(t,Za)}function Kh(t){return function(e){return rl="",e}(dc("",null,null,null,[""],t=function(e){return k0=nl=1,qv=Ls(rl=e),Za=0,[]}(t),0,[0],t))}function dc(t,e,r,a,c,u,d,y,w){for(var _=0,D=0,j=d,P=0,$=0,ct=0,rt=1,vt=1,ft=1,Et=0,Nt="",Rt=c,$t=u,Mt=a,Xt=Nt;vt;)switch(ct=Et,Et=Oo()){case 40:if(ct!=108&&Xt.charCodeAt(j-1)==58){Uv(Xt+=x0(il(Et),"&","&\f"),"&\f")!=-1&&(ft=-1);break}case 34:case 39:case 91:Xt+=il(Et);break;case 9:case 10:case 13:case 32:Xt+=$v(ct);break;case 92:Xt+=S0(Qh()-1,7);continue;case 47:switch(fc()){case 42:case 47:w0(Vv(Wv(Oo(),Qh()),e,r),w);break;default:Xt+="/"}break;case 123*rt:y[_++]=Ls(Xt)*ft;case 125*rt:case 59:case 0:switch(Et){case 0:case 125:vt=0;case 59+D:$>0&&Ls(Xt)-j&&w0($>32?pc(Xt+";",a,r,j-1):pc(x0(Xt," ","")+";",a,r,j-2),w);break;case 59:Xt+=";";default:if(w0(Mt=Xg(Xt,e,r,_,D,c,y,Nt,Rt=[],$t=[],j),u),Et===123)if(D===0)dc(Xt,e,Mt,Mt,Rt,u,j,y,$t);else switch(P){case 100:case 109:case 115:dc(t,Mt,Mt,a&&w0(Xg(t,Mt,Mt,0,0,c,y,Nt,c,Rt=[],j),$t),c,$t,j,y,a?Rt:$t);break;default:dc(Xt,Mt,Mt,Mt,[""],$t,0,y,$t)}}_=D=$=0,rt=ft=1,Nt=Xt="",j=d;break;case 58:j=1+Ls(Xt),$=ct;default:if(rt<1){if(Et==123)--rt;else if(Et==125&&rt++==0&&Hv()==125)continue}switch(Xt+=Wc(Et),Et*rt){case 38:ft=D>0?1:(Xt+="\f",-1);break;case 44:y[_++]=(Ls(Xt)-1)*ft,ft=1;break;case 64:fc()===45&&(Xt+=il(Oo())),P=fc(),D=j=Ls(Nt=Xt+=Vc(Qh())),Et++;break;case 45:ct===45&&Ls(Xt)==2&&(rt=0)}}return u}function Xg(t,e,r,a,c,u,d,y,w,_,D){for(var j=c-1,P=c===0?u:[""],$=Vg(P),ct=0,rt=0,vt=0;ct0?P[ft]+" "+Et:x0(Et,/&\f/g,P[ft])))&&(w[vt++]=Nt);return T0(t,e,r,c===0?$g:y,w,_,D)}function Vv(t,e,r){return T0(t,e,r,Zh,Wc(ei),el(t,2,-2),0)}function pc(t,e,r,a){return T0(t,e,r,Wg,el(t,0,a),el(t,a+1,-1),a)}const Zg="9.0.1";var Gc=f(7967),Gv=f(7856),Qg=f.n(Gv),Xv=function(t){var e=t.replace(/\\u[\dA-F]{4}/gi,function(r){return String.fromCharCode(parseInt(r.replace(/\\u/g,""),16))});return e=(e=(e=e.replace(/\\x([0-9a-f]{2})/gi,function(r,a){return String.fromCharCode(parseInt(a,16))})).replace(/\\[\d\d\d]{3}/gi,function(r){return String.fromCharCode(parseInt(r.replace(/\\/g,""),8))})).replace(/\\[\d\d\d]{2}/gi,function(r){return String.fromCharCode(parseInt(r.replace(/\\/g,""),8))})},Zv=function(t){for(var e="",r=0;r>=0;){if(!((r=t.indexOf("=0)){e+=t,r=-1;break}e+=t.substr(0,r),(r=(t=t.substr(r+1)).indexOf("<\/script>"))>=0&&(r+=9,t=t.substr(r))}var a=Xv(e);return(a=(a=(a=(a=a.replace(/script>/gi,"#")).replace(/javascript:/gi,"#")).replace(/javascript&colon/gi,"#")).replace(/onerror=/gi,"onerror:")).replace(/`)}else d.securityLevel!=="loose"&&(Xt=Qg().sanitize(Xt,{ADD_TAGS:["foreignobject"],ADD_ATTR:["dominant-baseline"]}));if(r!==void 0)switch(ct){case"flowchart":case"flowchart-v2":r(Xt,nr.bindFunctions);break;case"gantt":r(Xt,iu.bindFunctions);break;case"class":case"classDiagram":r(Xt,os.bindFunctions);break;default:r(Xt)}else g.debug("CB = undefined!");Td.forEach(function(_t){_t()}),Td=[];var Bt=d.securityLevel==="sandbox"?"#i"+t:"#d"+t,wt=Ne(Bt).node();return wt!==null&&typeof wt.remove=="function"&&Ne(Bt).node().remove(),Xt},parse:function(t){var e=Wt(),r=Qn.detectInit(t,e);r&&g.info("reinit ",r);var a,c=Qn.detectType(t,e);switch(g.debug("Type "+c),c){case"gitGraph":Ys.clear(),(a=z2()).parser.yy=Ys;break;case"flowchart":case"flowchart-v2":nr.clear(),(a=od()).parser.yy=nr;break;case"sequence":Df.clear(),(a=v6()).parser.yy=Df;break;case"gantt":(a=z3()).parser.yy=iu;break;case"class":case"classDiagram":(a=U5()).parser.yy=os;break;case"state":case"stateDiagram":(a=ub()).parser.yy=U;break;case"info":g.debug("info info info"),(a=bd()).parser.yy=vd;break;case"pie":g.debug("pie"),(a=Z3()).parser.yy=_d;break;case"er":g.debug("er"),(a=w2()).parser.yy=xa;break;case"journey":g.debug("Journey"),(a=Xi()).parser.yy=En;break;case"requirement":case"requirementDiagram":g.debug("RequirementDiagram"),(a=Q3()).parser.yy=Tl}return a.parser.yy.graphType=c,a.parser.yy.parseError=function(u,d){throw{str:u,hash:d}},a.parse(t),a},parseDirective:function(t,e,r,a){try{if(e!==void 0)switch(e=e.trim(),r){case"open_directive":J2={};break;case"type_directive":J2.type=e.toLowerCase();break;case"arg_directive":J2.args=JSON.parse(e);break;case"close_directive":(function(c,u,d){switch(g.debug("Directive type=".concat(u.type," with args:"),u.args),u.type){case"init":case"initialize":["config"].forEach(function(y){u.args[y]!==void 0&&(d==="flowchart-v2"&&(d="flowchart"),u.args[d]=u.args[y],delete u.args[y])}),g.debug("sanitize in handleDirective",u.args),F0(u.args),g.debug("sanitize in handleDirective (done)",u.args),u.args,l3(u.args);break;case"wrap":case"nowrap":c&&c.setWrap&&c.setWrap(u.type==="wrap");break;case"themeCss":g.warn("themeCss encountered");break;default:g.warn("Unhandled directive: source: '%%{".concat(u.type,": ").concat(JSON.stringify(u.args?u.args:{}),"}%%"),u)}})(t,J2,a),J2=null}}catch(c){g.error("Error while rendering sequenceDiagram directive: ".concat(e," jison context: ").concat(r)),g.error(c.message)}},initialize:function(t){t&&t.fontFamily&&(t.themeVariables&&t.themeVariables.fontFamily||(t.themeVariables={fontFamily:t.fontFamily})),function(r){u3=ji({},r)}(t),t&&t.theme&&as[t.theme]?t.themeVariables=as[t.theme].getThemeVariables(t.themeVariables):t&&(t.themeVariables=as.default.getThemeVariables(t.themeVariables));var e=O6(t)==="object"?function(r){return Mi=ji({},rf),Mi=ji(Mi,r),r.theme&&(Mi.themeVariables=as[r.theme].getThemeVariables(r.themeVariables)),P0=j0(Mi,af),Mi}(t):c2();Q6(e),k(e.logLevel)},reinitialize:function(){},getConfig:Wt,setConfig:function(t){return ji(P0,t),Wt()},getSiteConfig:c2,updateSiteConfig:function(t){return Mi=ji(Mi,t),j0(Mi,af),Mi},reset:function(){Y0()},globalReset:function(){Y0(),Q6(Wt())},defaultConfig:rf});k(Wt().logLevel),Y0(Wt());const zi=x_;var K6=function(){fo.startOnLoad?zi.getConfig().startOnLoad&&fo.init():fo.startOnLoad===void 0&&(g.debug("In start, no config"),zi.getConfig().startOnLoad&&fo.init())};typeof document!="undefined"&&window.addEventListener("load",function(){K6()},!1);var fo={startOnLoad:!0,htmlLabels:!0,mermaidAPI:zi,parse:zi.parse,render:zi.render,init:function(){var t,e,r=this,a=zi.getConfig();arguments.length>=2?(arguments[0]!==void 0&&(fo.sequenceConfig=arguments[0]),t=arguments[1]):t=arguments[0],typeof arguments[arguments.length-1]=="function"?(e=arguments[arguments.length-1],g.debug("Callback function found")):a.mermaid!==void 0&&(typeof a.mermaid.callback=="function"?(e=a.mermaid.callback,g.debug("Callback function found")):g.debug("No Callback function found")),t=t===void 0?document.querySelectorAll(".mermaid"):typeof t=="string"?document.querySelectorAll(t):t instanceof window.Node?[t]:t,g.debug("Start On Load before: "+fo.startOnLoad),fo.startOnLoad!==void 0&&(g.debug("Start On Load inner: "+fo.startOnLoad),zi.updateSiteConfig({startOnLoad:fo.startOnLoad})),fo.ganttConfig!==void 0&&zi.updateSiteConfig({gantt:fo.ganttConfig});for(var c,u=new Qn.initIdGeneratior(a.deterministicIds,a.deterministicIDSeed),d=function(w){var _=t[w];if(_.getAttribute("data-processed"))return"continue";_.setAttribute("data-processed",!0);var D="mermaid-".concat(u.next());c=_.innerHTML,c=Qn.entityDecode(c).trim().replace(//gi,"
");var j=Qn.detectInit(c);j&&g.debug("Detected early reinit: ",j);try{zi.render(D,c,function(P,$){_.innerHTML=P,e!==void 0&&e(D),$&&$(_)},_)}catch(P){g.warn("Syntax Error rendering"),g.warn(P),r.parseError&&r.parseError(P)}},y=0;y{S.exports={graphlib:f(6614),dagre:f(1463),intersect:f(8114),render:f(5787),util:f(8355),version:f(5689)}},9144:(S,M,f)=>{var m=f(8355);function h(x,g,k,E){var A=x.append("marker").attr("id",g).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(A,k[E+"Style"]),k[E+"Class"]&&A.attr("class",k[E+"Class"])}S.exports={default:h,normal:h,vee:function(x,g,k,E){var A=x.append("marker").attr("id",g).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(A,k[E+"Style"]),k[E+"Class"]&&A.attr("class",k[E+"Class"])},undirected:function(x,g,k,E){var A=x.append("marker").attr("id",g).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(A,k[E+"Style"]),k[E+"Class"]&&A.attr("class",k[E+"Class"])}}},5632:(S,M,f)=>{var m=f(8355),h=f(4322),x=f(1322);S.exports=function(g,k){var E,A=k.nodes().filter(function(O){return m.isSubgraph(k,O)}),I=g.selectAll("g.cluster").data(A,function(O){return O});return I.selectAll("*").remove(),I.enter().append("g").attr("class","cluster").attr("id",function(O){return k.node(O).id}).style("opacity",0),I=g.selectAll("g.cluster"),m.applyTransition(I,k).style("opacity",1),I.each(function(O){var Y=k.node(O),H=h.select(this);h.select(this).append("rect");var X=H.append("g").attr("class","label");x(X,Y,Y.clusterLabelPos)}),I.selectAll("rect").each(function(O){var Y=k.node(O),H=h.select(this);m.applyStyle(H,Y.style)}),E=I.exit?I.exit():I.selectAll(null),m.applyTransition(E,k).style("opacity",0).remove(),I}},6315:(S,M,f)=>{var m=f(1034),h=f(1322),x=f(8355),g=f(4322);S.exports=function(k,E){var A,I=k.selectAll("g.edgeLabel").data(E.edges(),function(O){return x.edgeToId(O)}).classed("update",!0);return I.exit().remove(),I.enter().append("g").classed("edgeLabel",!0).style("opacity",0),(I=k.selectAll("g.edgeLabel")).each(function(O){var Y=g.select(this);Y.select(".label").remove();var H=E.edge(O),X=h(Y,E.edge(O),0,0).classed("label",!0),Z=X.node().getBBox();H.labelId&&X.attr("id",H.labelId),m.has(H,"width")||(H.width=Z.width),m.has(H,"height")||(H.height=Z.height)}),A=I.exit?I.exit():I.selectAll(null),x.applyTransition(A,E).style("opacity",0).remove(),I}},940:(S,M,f)=>{var m=f(1034),h=f(7584),x=f(8355),g=f(4322);function k(E,A){var I=(g.line||g.svg.line)().x(function(O){return O.x}).y(function(O){return O.y});return(I.curve||I.interpolate)(E.curve),I(A)}S.exports=function(E,A,I){var O=E.selectAll("g.edgePath").data(A.edges(),function(X){return x.edgeToId(X)}).classed("update",!0),Y=function(X,Z){var et=X.enter().append("g").attr("class","edgePath").style("opacity",0);return et.append("path").attr("class","path").attr("d",function(Q){var gt=Z.edge(Q),ht=Z.node(Q.v).elem;return k(gt,m.range(gt.points.length).map(function(){return Tt=(xt=ht).getBBox(),{x:(ne=xt.ownerSVGElement.getScreenCTM().inverse().multiply(xt.getScreenCTM()).translate(Tt.width/2,Tt.height/2)).e,y:ne.f};var xt,Tt,ne}))}),et.append("defs"),et}(O,A);(function(X,Z){var et=X.exit();x.applyTransition(et,Z).style("opacity",0).remove()})(O,A);var H=O.merge!==void 0?O.merge(Y):O;return x.applyTransition(H,A).style("opacity",1),H.each(function(X){var Z=g.select(this),et=A.edge(X);et.elem=this,et.id&&Z.attr("id",et.id),x.applyClass(Z,et.class,(Z.classed("update")?"update ":"")+"edgePath")}),H.selectAll("path.path").each(function(X){var Z=A.edge(X);Z.arrowheadId=m.uniqueId("arrowhead");var et=g.select(this).attr("marker-end",function(){return"url("+(Q=location.href,gt=Z.arrowheadId,Q.split("#")[0]+"#"+gt+")");var Q,gt}).style("fill","none");x.applyTransition(et,A).attr("d",function(Q){return function(gt,ht){var xt=gt.edge(ht),Tt=gt.node(ht.v),ne=gt.node(ht.w),bt=xt.points.slice(1,xt.points.length-1);return bt.unshift(h(Tt,bt[0])),bt.push(h(ne,bt[bt.length-1])),k(xt,bt)}(A,Q)}),x.applyStyle(et,Z.style)}),H.selectAll("defs *").remove(),H.selectAll("defs").each(function(X){var Z=A.edge(X);(0,I[Z.arrowhead])(g.select(this),Z.arrowheadId,Z,"arrowhead")}),H}},607:(S,M,f)=>{var m=f(1034),h=f(1322),x=f(8355),g=f(4322);S.exports=function(k,E,A){var I,O=E.nodes().filter(function(H){return!x.isSubgraph(E,H)}),Y=k.selectAll("g.node").data(O,function(H){return H}).classed("update",!0);return Y.exit().remove(),Y.enter().append("g").attr("class","node").style("opacity",0),(Y=k.selectAll("g.node")).each(function(H){var X=E.node(H),Z=g.select(this);x.applyClass(Z,X.class,(Z.classed("update")?"update ":"")+"node"),Z.select("g.label").remove();var et=Z.append("g").attr("class","label"),Q=h(et,X),gt=A[X.shape],ht=m.pick(Q.node().getBBox(),"width","height");X.elem=this,X.id&&Z.attr("id",X.id),X.labelId&&et.attr("id",X.labelId),m.has(X,"width")&&(ht.width=X.width),m.has(X,"height")&&(ht.height=X.height),ht.width+=X.paddingLeft+X.paddingRight,ht.height+=X.paddingTop+X.paddingBottom,et.attr("transform","translate("+(X.paddingLeft-X.paddingRight)/2+","+(X.paddingTop-X.paddingBottom)/2+")");var xt=g.select(this);xt.select(".label-container").remove();var Tt=gt(xt,ht,X).classed("label-container",!0);x.applyStyle(Tt,X.style);var ne=Tt.node().getBBox();X.width=ne.width,X.height=ne.height}),I=Y.exit?Y.exit():Y.selectAll(null),x.applyTransition(I,E).style("opacity",0).remove(),Y}},4322:(S,M,f)=>{var m;if(!m)try{m=f(7188)}catch{}m||(m=window.d3),S.exports=m},1463:(S,M,f)=>{var m;try{m=f(681)}catch{}m||(m=window.dagre),S.exports=m},6614:(S,M,f)=>{var m;try{m=f(8282)}catch{}m||(m=window.graphlib),S.exports=m},8114:(S,M,f)=>{S.exports={node:f(7584),circle:f(6587),ellipse:f(3260),polygon:f(5337),rect:f(8049)}},6587:(S,M,f)=>{var m=f(3260);S.exports=function(h,x,g){return m(h,x,x,g)}},3260:S=>{S.exports=function(M,f,m,h){var x=M.x,g=M.y,k=x-h.x,E=g-h.y,A=Math.sqrt(f*f*E*E+m*m*k*k),I=Math.abs(f*m*k/A);h.x{function M(f,m){return f*m>0}S.exports=function(f,m,h,x){var g,k,E,A,I,O,Y,H,X,Z,et,Q,gt;if(g=m.y-f.y,E=f.x-m.x,I=m.x*f.y-f.x*m.y,X=g*h.x+E*h.y+I,Z=g*x.x+E*x.y+I,!(X!==0&&Z!==0&&M(X,Z)||(k=x.y-h.y,A=h.x-x.x,O=x.x*h.y-h.x*x.y,Y=k*f.x+A*f.y+O,H=k*m.x+A*m.y+O,Y!==0&&H!==0&&M(Y,H)||(et=g*A-k*E)==0)))return Q=Math.abs(et/2),{x:(gt=E*O-A*I)<0?(gt-Q)/et:(gt+Q)/et,y:(gt=k*I-g*O)<0?(gt-Q)/et:(gt+Q)/et}}},7584:S=>{S.exports=function(M,f){return M.intersect(f)}},5337:(S,M,f)=>{var m=f(6808);S.exports=function(h,x,g){var k=h.x,E=h.y,A=[],I=Number.POSITIVE_INFINITY,O=Number.POSITIVE_INFINITY;x.forEach(function(gt){I=Math.min(I,gt.x),O=Math.min(O,gt.y)});for(var Y=k-h.width/2-I,H=E-h.height/2-O,X=0;X1&&A.sort(function(gt,ht){var xt=gt.x-g.x,Tt=gt.y-g.y,ne=Math.sqrt(xt*xt+Tt*Tt),bt=ht.x-g.x,at=ht.y-g.y,nt=Math.sqrt(bt*bt+at*at);return ne{S.exports=function(M,f){var m,h,x=M.x,g=M.y,k=f.x-x,E=f.y-g,A=M.width/2,I=M.height/2;return Math.abs(E)*A>Math.abs(k)*I?(E<0&&(I=-I),m=E===0?0:I*k/E,h=I):(k<0&&(A=-A),m=A,h=k===0?0:A*E/k),{x:x+m,y:g+h}}},8284:(S,M,f)=>{var m=f(8355);S.exports=function(h,x){var g=h.append("foreignObject").attr("width","100000"),k=g.append("xhtml:div");k.attr("xmlns","http://www.w3.org/1999/xhtml");var E=x.label;switch(typeof E){case"function":k.insert(E);break;case"object":k.insert(function(){return E});break;default:k.html(E)}m.applyStyle(k,x.labelStyle),k.style("display","inline-block"),k.style("white-space","nowrap");var A=k.node().getBoundingClientRect();return g.attr("width",A.width).attr("height",A.height),g}},1322:(S,M,f)=>{var m=f(7318),h=f(8284),x=f(8287);S.exports=function(g,k,E){var A=k.label,I=g.append("g");k.labelType==="svg"?x(I,k):typeof A!="string"||k.labelType==="html"?h(I,k):m(I,k);var O,Y=I.node().getBBox();switch(E){case"top":O=-k.height/2;break;case"bottom":O=k.height/2-Y.height;break;default:O=-Y.height/2}return I.attr("transform","translate("+-Y.width/2+","+O+")"),I}},8287:(S,M,f)=>{var m=f(8355);S.exports=function(h,x){var g=h;return g.node().appendChild(x.label),m.applyStyle(g,x.labelStyle),g}},7318:(S,M,f)=>{var m=f(8355);S.exports=function(h,x){for(var g=h.append("text"),k=function(A){for(var I,O="",Y=!1,H=0;H{var m;try{m={defaults:f(1747),each:f(6073),isFunction:f(3560),isPlainObject:f(8630),pick:f(9722),has:f(8721),range:f(6026),uniqueId:f(3955)}}catch{}m||(m=window._),S.exports=m},6381:(S,M,f)=>{var m=f(8355),h=f(4322);S.exports=function(x,g){var k=x.filter(function(){return!h.select(this).classed("update")});function E(A){var I=g.node(A);return"translate("+I.x+","+I.y+")"}k.attr("transform",E),m.applyTransition(x,g).style("opacity",1).attr("transform",E),m.applyTransition(k.selectAll("rect"),g).attr("width",function(A){return g.node(A).width}).attr("height",function(A){return g.node(A).height}).attr("x",function(A){return-g.node(A).width/2}).attr("y",function(A){return-g.node(A).height/2})}},4577:(S,M,f)=>{var m=f(8355),h=f(4322),x=f(1034);S.exports=function(g,k){function E(A){var I=k.edge(A);return x.has(I,"x")?"translate("+I.x+","+I.y+")":""}g.filter(function(){return!h.select(this).classed("update")}).attr("transform",E),m.applyTransition(g,k).style("opacity",1).attr("transform",E)}},4849:(S,M,f)=>{var m=f(8355),h=f(4322);S.exports=function(x,g){function k(E){var A=g.node(E);return"translate("+A.x+","+A.y+")"}x.filter(function(){return!h.select(this).classed("update")}).attr("transform",k),m.applyTransition(x,g).style("opacity",1).attr("transform",k)}},5787:(S,M,f)=>{var m=f(1034),h=f(4322),x=f(1463).layout;S.exports=function(){var A=f(607),I=f(5632),O=f(6315),Y=f(940),H=f(4849),X=f(4577),Z=f(6381),et=f(4418),Q=f(9144),gt=function(ht,xt){(function(Lt){Lt.nodes().forEach(function(tt){var lt=Lt.node(tt);m.has(lt,"label")||Lt.children(tt).length||(lt.label=tt),m.has(lt,"paddingX")&&m.defaults(lt,{paddingLeft:lt.paddingX,paddingRight:lt.paddingX}),m.has(lt,"paddingY")&&m.defaults(lt,{paddingTop:lt.paddingY,paddingBottom:lt.paddingY}),m.has(lt,"padding")&&m.defaults(lt,{paddingLeft:lt.padding,paddingRight:lt.padding,paddingTop:lt.padding,paddingBottom:lt.padding}),m.defaults(lt,g),m.each(["paddingLeft","paddingRight","paddingTop","paddingBottom"],function(q){lt[q]=Number(lt[q])}),m.has(lt,"width")&&(lt._prevWidth=lt.width),m.has(lt,"height")&&(lt._prevHeight=lt.height)}),Lt.edges().forEach(function(tt){var lt=Lt.edge(tt);m.has(lt,"label")||(lt.label=""),m.defaults(lt,k)})})(xt);var Tt=E(ht,"output"),ne=E(Tt,"clusters"),bt=E(Tt,"edgePaths"),at=O(E(Tt,"edgeLabels"),xt),nt=A(E(Tt,"nodes"),xt,et);x(xt),H(nt,xt),X(at,xt),Y(bt,xt,Q);var Dt=I(ne,xt);Z(Dt,xt),function(Lt){m.each(Lt.nodes(),function(tt){var lt=Lt.node(tt);m.has(lt,"_prevWidth")?lt.width=lt._prevWidth:delete lt.width,m.has(lt,"_prevHeight")?lt.height=lt._prevHeight:delete lt.height,delete lt._prevWidth,delete lt._prevHeight})}(xt)};return gt.createNodes=function(ht){return arguments.length?(A=ht,gt):A},gt.createClusters=function(ht){return arguments.length?(I=ht,gt):I},gt.createEdgeLabels=function(ht){return arguments.length?(O=ht,gt):O},gt.createEdgePaths=function(ht){return arguments.length?(Y=ht,gt):Y},gt.shapes=function(ht){return arguments.length?(et=ht,gt):et},gt.arrows=function(ht){return arguments.length?(Q=ht,gt):Q},gt};var g={paddingLeft:10,paddingRight:10,paddingTop:10,paddingBottom:10,rx:0,ry:0,shape:"rect"},k={arrowhead:"normal",curve:h.curveLinear};function E(A,I){var O=A.select("g."+I);return O.empty()&&(O=A.append("g").attr("class",I)),O}},4418:(S,M,f)=>{var m=f(8049),h=f(3260),x=f(6587),g=f(5337);S.exports={rect:function(k,E,A){var I=k.insert("rect",":first-child").attr("rx",A.rx).attr("ry",A.ry).attr("x",-E.width/2).attr("y",-E.height/2).attr("width",E.width).attr("height",E.height);return A.intersect=function(O){return m(A,O)},I},ellipse:function(k,E,A){var I=E.width/2,O=E.height/2,Y=k.insert("ellipse",":first-child").attr("x",-E.width/2).attr("y",-E.height/2).attr("rx",I).attr("ry",O);return A.intersect=function(H){return h(A,I,O,H)},Y},circle:function(k,E,A){var I=Math.max(E.width,E.height)/2,O=k.insert("circle",":first-child").attr("x",-E.width/2).attr("y",-E.height/2).attr("r",I);return A.intersect=function(Y){return x(A,I,Y)},O},diamond:function(k,E,A){var I=E.width*Math.SQRT2/2,O=E.height*Math.SQRT2/2,Y=[{x:0,y:-O},{x:-I,y:0},{x:0,y:O},{x:I,y:0}],H=k.insert("polygon",":first-child").attr("points",Y.map(function(X){return X.x+","+X.y}).join(" "));return A.intersect=function(X){return g(A,Y,X)},H}}},8355:(S,M,f)=>{var m=f(1034);S.exports={isSubgraph:function(g,k){return!!g.children(k).length},edgeToId:function(g){return x(g.v)+":"+x(g.w)+":"+x(g.name)},applyStyle:function(g,k){k&&g.attr("style",k)},applyClass:function(g,k,E){k&&g.attr("class",k).attr("class",E+" "+g.attr("class"))},applyTransition:function(g,k){var E=k.graph();if(m.isPlainObject(E)){var A=E.transition;if(m.isFunction(A))return A(g)}return g}};var h=/:/g;function x(g){return g?String(g).replace(h,"\\:"):""}},5689:S=>{S.exports="0.6.4"},7188:(S,M,f)=>{f.r(M),f.d(M,{FormatSpecifier:()=>p1,active:()=>Tb,arc:()=>I2,area:()=>hd,areaRadial:()=>P2,ascending:()=>h,autoType:()=>Vb,axisBottom:()=>Le,axisLeft:()=>Ze,axisRight:()=>Be,axisTop:()=>De,bisect:()=>A,bisectLeft:()=>E,bisectRight:()=>k,bisector:()=>x,blob:()=>s4,brush:()=>ep,brushSelection:()=>Sb,brushX:()=>Kf,brushY:()=>Ab,buffer:()=>Xy,chord:()=>rp,clientPoint:()=>Ec,cluster:()=>a5,color:()=>Sa,contourDensity:()=>ih,contours:()=>Ei,create:()=>s6,creator:()=>fi,cross:()=>Y,csv:()=>Zy,csvFormat:()=>Pb,csvFormatBody:()=>jb,csvFormatRow:()=>zb,csvFormatRows:()=>Yb,csvFormatValue:()=>Ly,csvParse:()=>Dy,csvParseRows:()=>Fb,cubehelix:()=>ha,curveBasis:()=>d6,curveBasisClosed:()=>Tf,curveBasisOpen:()=>xl,curveBundle:()=>gd,curveCardinal:()=>p6,curveCardinalClosed:()=>W3,curveCardinalOpen:()=>g6,curveCatmullRom:()=>G3,curveCatmullRomClosed:()=>Z3,curveCatmullRomOpen:()=>U2,curveLinear:()=>mc,curveLinearClosed:()=>H2,curveMonotoneX:()=>Fa,curveMonotoneY:()=>Sf,curveNatural:()=>Tl,curveStep:()=>y6,curveStepAfter:()=>K3,curveStepBefore:()=>wi,customEvent:()=>Ui,descending:()=>H,deviation:()=>et,dispatch:()=>un,drag:()=>Ay,dragDisable:()=>Zr,dragEnable:()=>Br,dsv:()=>l4,dsvFormat:()=>ah,easeBack:()=>Wy,easeBackIn:()=>i4,easeBackInOut:()=>Wy,easeBackOut:()=>a4,easeBounce:()=>oh,easeBounceIn:()=>$y,easeBounceInOut:()=>r4,easeBounceOut:()=>oh,easeCircle:()=>Hy,easeCircleIn:()=>e4,easeCircleInOut:()=>Hy,easeCircleOut:()=>n4,easeCubic:()=>Vs,easeCubicIn:()=>Hf,easeCubicInOut:()=>Vs,easeCubicOut:()=>$f,easeElastic:()=>Tp,easeElasticIn:()=>o4,easeElasticInOut:()=>Vy,easeElasticOut:()=>Tp,easeExp:()=>qy,easeExpIn:()=>Uy,easeExpInOut:()=>qy,easeExpOut:()=>t4,easeLinear:()=>Iy,easePoly:()=>Fy,easePolyIn:()=>Qb,easePolyInOut:()=>Fy,easePolyOut:()=>Kb,easeQuad:()=>Ry,easeQuadIn:()=>Xb,easeQuadInOut:()=>Ry,easeQuadOut:()=>Zb,easeSin:()=>zy,easeSinIn:()=>Yy,easeSinInOut:()=>zy,easeSinOut:()=>Jb,entries:()=>lp,event:()=>pt,extent:()=>Q,forceCenter:()=>p4,forceCollide:()=>v4,forceLink:()=>_4,forceManyBody:()=>T4,forceRadial:()=>C4,forceSimulation:()=>k4,forceX:()=>nm,forceY:()=>Mp,format:()=>y1,formatDefaultLocale:()=>um,formatLocale:()=>cm,formatPrefix:()=>Dp,formatSpecifier:()=>uh,geoAlbers:()=>iv,geoAlbersUsa:()=>Es,geoArea:()=>S4,geoAzimuthalEqualArea:()=>G4,geoAzimuthalEqualAreaRaw:()=>fg,geoAzimuthalEquidistant:()=>pg,geoAzimuthalEquidistantRaw:()=>dg,geoBounds:()=>vh,geoCentroid:()=>N4,geoCircle:()=>D4,geoClipAntimeridian:()=>Gp,geoClipCircle:()=>Lm,geoClipExtent:()=>B4,geoClipRectangle:()=>O1,geoConicConformal:()=>Z4,geoConicConformalRaw:()=>yg,geoConicEqualArea:()=>X1,geoConicEqualAreaRaw:()=>rv,geoConicEquidistant:()=>ov,geoConicEquidistantRaw:()=>av,geoContains:()=>jm,geoDistance:()=>j1,geoEqualEarth:()=>K4,geoEqualEarthRaw:()=>mg,geoEquirectangular:()=>Q4,geoEquirectangularRaw:()=>Oh,geoGnomonic:()=>sv,geoGnomonicRaw:()=>Ph,geoGraticule:()=>Um,geoGraticule10:()=>j4,geoIdentity:()=>Q1,geoInterpolate:()=>Y4,geoLength:()=>Bm,geoMercator:()=>X4,geoMercatorRaw:()=>Lh,geoNaturalEarth1:()=>J4,geoNaturalEarth1Raw:()=>vg,geoOrthographic:()=>t5,geoOrthographicRaw:()=>bg,geoPath:()=>q4,geoProjection:()=>Mo,geoProjectionMutator:()=>ug,geoRotation:()=>$p,geoStereographic:()=>e5,geoStereographicRaw:()=>_g,geoStream:()=>wo,geoTransform:()=>H4,geoTransverseMercator:()=>n5,geoTransverseMercatorRaw:()=>K1,gray:()=>Db,hcl:()=>Zs,hierarchy:()=>xg,histogram:()=>Ut,hsl:()=>pu,html:()=>Jy,image:()=>Ky,interpolate:()=>Cc,interpolateArray:()=>Nd,interpolateBasis:()=>Ar,interpolateBasisClosed:()=>kc,interpolateBlues:()=>Fs,interpolateBrBG:()=>Z5,interpolateBuGn:()=>t6,interpolateBuPu:()=>e6,interpolateCividis:()=>A2,interpolateCool:()=>id,interpolateCubehelix:()=>h0,interpolateCubehelixDefault:()=>M2,interpolateCubehelixLong:()=>Hh,interpolateDate:()=>Yf,interpolateDiscrete:()=>g5,interpolateGnBu:()=>w3,interpolateGreens:()=>r6,interpolateGreys:()=>pl,interpolateHcl:()=>es,interpolateHclLong:()=>Do,interpolateHsl:()=>y5,interpolateHslLong:()=>m5,interpolateHue:()=>s0,interpolateInferno:()=>o6,interpolateLab:()=>u0,interpolateMagma:()=>nr,interpolateNumber:()=>ca,interpolateNumberArray:()=>zl,interpolateObject:()=>zf,interpolateOrRd:()=>df,interpolateOranges:()=>S2,interpolatePRGn:()=>Q5,interpolatePiYG:()=>lf,interpolatePlasma:()=>od,interpolatePuBu:()=>k3,interpolatePuBuGn:()=>_2,interpolatePuOr:()=>Kc,interpolatePuRd:()=>n6,interpolatePurples:()=>Jc,interpolateRainbow:()=>N2,interpolateRdBu:()=>x3,interpolateRdGy:()=>dl,interpolateRdPu:()=>Is,interpolateRdYlBu:()=>K5,interpolateRdYlGn:()=>J0,interpolateReds:()=>cs,interpolateRgb:()=>Ws,interpolateRgbBasis:()=>yu,interpolateRgbBasisClosed:()=>yo,interpolateRound:()=>Sg,interpolateSinebow:()=>S3,interpolateSpectral:()=>J5,interpolateString:()=>mo,interpolateTransformCss:()=>Ld,interpolateTransformSvg:()=>Bd,interpolateTurbo:()=>a6,interpolateViridis:()=>A3,interpolateWarm:()=>rd,interpolateYlGn:()=>T3,interpolateYlGnBu:()=>k2,interpolateYlOrBr:()=>C3,interpolateYlOrRd:()=>C2,interpolateZoom:()=>c0,interrupt:()=>la,interval:()=>Mf,isoFormat:()=>qs,isoParse:()=>Al,json:()=>f4,keys:()=>Kl,lab:()=>Jl,lch:()=>dp,line:()=>bf,lineRadial:()=>F2,linkHorizontal:()=>bl,linkRadial:()=>Y3,linkVertical:()=>j3,local:()=>M3,map:()=>vs,matcher:()=>rn,max:()=>jt,mean:()=>ie,median:()=>he,merge:()=>pe,min:()=>le,mouse:()=>ds,namespace:()=>Ln,namespaces:()=>Cr,nest:()=>Nb,now:()=>W,pack:()=>h5,packEnclose:()=>lv,packSiblings:()=>mv,pairs:()=>I,partition:()=>No,path:()=>ms,permute:()=>oe,pie:()=>I3,piecewise:()=>Mg,pointRadial:()=>wf,polygonArea:()=>Ev,polygonCentroid:()=>v5,polygonContains:()=>Dg,polygonHull:()=>Ng,polygonLength:()=>Av,precisionFixed:()=>Lp,precisionPrefix:()=>lm,precisionRound:()=>hm,quadtree:()=>sh,quantile:()=>G,quantize:()=>Cv,radialArea:()=>P2,radialLine:()=>F2,randomBates:()=>rs,randomExponential:()=>x5,randomIrwinHall:()=>Ju,randomLogNormal:()=>Ku,randomNormal:()=>$h,randomUniform:()=>f0,range:()=>bt,rgb:()=>Ii,ribbon:()=>op,scaleBand:()=>g0,scaleDiverging:()=>Z0,scaleDivergingLog:()=>_a,scaleDivergingPow:()=>ui,scaleDivergingSqrt:()=>Os,scaleDivergingSymlog:()=>Qi,scaleIdentity:()=>Rg,scaleImplicit:()=>Lg,scaleLinear:()=>Ig,scaleLog:()=>Ov,scaleOrdinal:()=>p0,scalePoint:()=>Wh,scalePow:()=>zg,scaleQuantile:()=>jv,scaleQuantize:()=>Yv,scaleSequential:()=>V0,scaleSequentialLog:()=>cf,scaleSequentialPow:()=>G0,scaleSequentialQuantile:()=>m3,scaleSequentialSqrt:()=>H5,scaleSequentialSymlog:()=>uf,scaleSqrt:()=>E5,scaleSymlog:()=>Fv,scaleThreshold:()=>zv,scaleTime:()=>z5,scaleUtc:()=>ll,scan:()=>wn,schemeAccent:()=>v3,schemeBlues:()=>nd,schemeBrBG:()=>_3,schemeBuGn:()=>ff,schemeBuPu:()=>v2,schemeCategory10:()=>Ro,schemeDark2:()=>Q0,schemeGnBu:()=>td,schemeGreens:()=>pf,schemeGreys:()=>E2,schemeOrRd:()=>b2,schemeOranges:()=>gf,schemePRGn:()=>p2,schemePaired:()=>$5,schemePastel1:()=>W5,schemePastel2:()=>K0,schemePiYG:()=>fl,schemePuBu:()=>x2,schemePuBuGn:()=>ed,schemePuOr:()=>ss,schemePuRd:()=>xa,schemePurples:()=>ni,schemeRdBu:()=>hf,schemeRdGy:()=>g2,schemeRdPu:()=>w2,schemeRdYlBu:()=>y2,schemeRdYlGn:()=>m2,schemeReds:()=>tu,schemeSet1:()=>b3,schemeSet2:()=>V5,schemeSet3:()=>G5,schemeSpectral:()=>Yi,schemeTableau10:()=>X5,schemeYlGn:()=>Ir,schemeYlGnBu:()=>Rs,schemeYlOrBr:()=>T2,schemeYlOrRd:()=>E3,select:()=>$r,selectAll:()=>c6,selection:()=>sa,selector:()=>kr,selectorAll:()=>sr,set:()=>Xs,shuffle:()=>fe,stack:()=>El,stackOffsetDiverging:()=>m6,stackOffsetExpand:()=>tb,stackOffsetNone:()=>ou,stackOffsetSilhouette:()=>nn,stackOffsetWiggle:()=>v6,stackOrderAppearance:()=>Sl,stackOrderAscending:()=>Fo,stackOrderDescending:()=>eb,stackOrderInsideOut:()=>V2,stackOrderNone:()=>su,stackOrderReverse:()=>nb,stratify:()=>r0,style:()=>ir,sum:()=>ae,svg:()=>d1,symbol:()=>$3,symbolCircle:()=>dd,symbolCross:()=>iu,symbolDiamond:()=>Ja,symbolSquare:()=>to,symbolStar:()=>Ra,symbolTriangle:()=>lo,symbolWye:()=>Y2,symbols:()=>H3,text:()=>Su,thresholdFreedmanDiaconis:()=>me,thresholdScott:()=>ve,thresholdSturges:()=>q,tickFormat:()=>Bo,tickIncrement:()=>tt,tickStep:()=>lt,ticks:()=>Lt,timeDay:()=>ei,timeDays:()=>rl,timeFormat:()=>Jg,timeFormatDefaultLocale:()=>f2,timeFormatLocale:()=>M0,timeFriday:()=>el,timeFridays:()=>nl,timeHour:()=>Hv,timeHours:()=>Oo,timeInterval:()=>Ai,timeMillisecond:()=>al,timeMilliseconds:()=>Wv,timeMinute:()=>Qh,timeMinutes:()=>C0,timeMonday:()=>tl,timeMondays:()=>w0,timeMonth:()=>Hg,timeMonths:()=>Ns,timeParse:()=>N0,timeSaturday:()=>Ls,timeSaturdays:()=>qv,timeSecond:()=>il,timeSeconds:()=>$v,timeSunday:()=>Wc,timeSundays:()=>Vg,timeThursday:()=>Ds,timeThursdays:()=>k0,timeTuesday:()=>x0,timeTuesdays:()=>Gg,timeWednesday:()=>Uv,timeWednesdays:()=>A5,timeWeek:()=>Wc,timeWeeks:()=>Vg,timeYear:()=>qc,timeYears:()=>S5,timeout:()=>Qe,timer:()=>ye,timerFlush:()=>Te,touch:()=>ua,touches:()=>u6,transition:()=>qf,transpose:()=>Qt,tree:()=>Xu,treemap:()=>o0,treemapBinary:()=>qh,treemapDice:()=>Yh,treemapResquarify:()=>Eg,treemapSlice:()=>lc,treemapSliceDice:()=>kv,treemapSquarify:()=>hc,tsv:()=>Qy,tsvFormat:()=>Oy,tsvFormatBody:()=>qb,tsvFormatRow:()=>$b,tsvFormatRows:()=>Hb,tsvFormatValue:()=>Wb,tsvParse:()=>By,tsvParseRows:()=>Ub,utcDay:()=>Jh,utcDays:()=>Gi,utcFormat:()=>D0,utcFriday:()=>Zg,utcFridays:()=>Bs,utcHour:()=>W0,utcHours:()=>q5,utcMillisecond:()=>al,utcMilliseconds:()=>Wv,utcMinute:()=>g3,utcMinutes:()=>y3,utcMonday:()=>dc,utcMondays:()=>Qg,utcMonth:()=>Qc,utcMonths:()=>U5,utcParse:()=>t2,utcSaturday:()=>Gc,utcSaturdays:()=>A0,utcSecond:()=>il,utcSeconds:()=>$v,utcSunday:()=>Kh,utcSundays:()=>Gv,utcThursday:()=>pc,utcThursdays:()=>Qv,utcTuesday:()=>Xg,utcTuesdays:()=>Xv,utcWednesday:()=>Vv,utcWednesdays:()=>Zv,utcWeek:()=>Kh,utcWeeks:()=>Gv,utcYear:()=>Ot,utcYears:()=>ba,values:()=>up,variance:()=>Z,version:()=>m,voronoi:()=>de,window:()=>In,xml:()=>d4,zip:()=>Kt,zoom:()=>ub,zoomIdentity:()=>Il,zoomTransform:()=>Ed});var m="5.16.0";function h(n,i){return ni?1:n>=i?0:NaN}function x(n){var i;return n.length===1&&(i=n,n=function(o,s){return h(i(o),s)}),{left:function(o,s,l,p){for(l==null&&(l=0),p==null&&(p=o.length);l>>1;n(o[b],s)<0?l=b+1:p=b}return l},right:function(o,s,l,p){for(l==null&&(l=0),p==null&&(p=o.length);l>>1;n(o[b],s)>0?p=b:l=b+1}return l}}}var g=x(h),k=g.right,E=g.left;const A=k;function I(n,i){i==null&&(i=O);for(var o=0,s=n.length-1,l=n[0],p=new Array(s<0?0:s);on?1:i>=n?0:NaN}function X(n){return n===null?NaN:+n}function Z(n,i){var o,s,l=n.length,p=0,b=-1,v=0,T=0;if(i==null)for(;++b1)return T/(p-1)}function et(n,i){var o=Z(n,i);return o&&Math.sqrt(o)}function Q(n,i){var o,s,l,p=n.length,b=-1;if(i==null){for(;++b=o)for(s=l=o;++bo&&(s=o),l=o)for(s=l=o;++bo&&(s=o),l0)return[n];if((s=i0)for(n=Math.ceil(n/b),i=Math.floor(i/b),p=new Array(l=Math.ceil(i-n+1));++v=0?(p>=at?10:p>=nt?5:p>=Dt?2:1)*Math.pow(10,l):-Math.pow(10,-l)/(p>=at?10:p>=nt?5:p>=Dt?2:1)}function lt(n,i,o){var s=Math.abs(i-n)/Math.max(0,o),l=Math.pow(10,Math.floor(Math.log(s)/Math.LN10)),p=s/l;return p>=at?l*=10:p>=nt?l*=5:p>=Dt&&(l*=2),iF;)L.pop(),--z;var U,J=new Array(z+1);for(p=0;p<=z;++p)(U=J[p]=[]).x0=p>0?L[p-1]:B,U.x1=p=1)return+o(n[s-1],s-1,n);var s,l=(s-1)*i,p=Math.floor(l),b=+o(n[p],p,n);return b+(+o(n[p+1],p+1,n)-b)*(l-p)}}function me(n,i,o){return n=xt.call(n,X).sort(h),Math.ceil((o-i)/(2*(G(n,.75)-G(n,.25))*Math.pow(n.length,-1/3)))}function ve(n,i,o){return Math.ceil((o-i)/(3.5*et(n)*Math.pow(n.length,-1/3)))}function jt(n,i){var o,s,l=n.length,p=-1;if(i==null){for(;++p=o)for(s=o;++ps&&(s=o)}else for(;++p=o)for(s=o;++ps&&(s=o);return s}function ie(n,i){var o,s=n.length,l=s,p=-1,b=0;if(i==null)for(;++p=0;)for(i=(s=n[l]).length;--i>=0;)o[--b]=s[i];return o}function le(n,i){var o,s,l=n.length,p=-1;if(i==null){for(;++p=o)for(s=o;++po&&(s=o)}else for(;++p=o)for(s=o;++po&&(s=o);return s}function oe(n,i){for(var o=i.length,s=new Array(o);o--;)s[o]=n[i[o]];return s}function wn(n,i){if(o=n.length){var o,s,l=0,p=0,b=n[p];for(i==null&&(i=h);++l=0&&(s=o.slice(l+1),o=o.slice(0,l)),o&&!i.hasOwnProperty(o))throw new Error("unknown type: "+o);return{type:o,name:s}})}function Yn(n,i){for(var o,s=0,l=n.length;s0)for(var o,s,l=new Array(o),p=0;pi?1:n>=i?0:NaN}Ye.prototype={constructor:Ye,appendChild:function(n){return this._parent.insertBefore(n,this._next)},insertBefore:function(n,i){return this._parent.insertBefore(n,i)},querySelector:function(n){return this._parent.querySelector(n)},querySelectorAll:function(n){return this._parent.querySelectorAll(n)}};var Un="http://www.w3.org/1999/xhtml";const Cr={svg:"http://www.w3.org/2000/svg",xhtml:Un,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function Ln(n){var i=n+="",o=i.indexOf(":");return o>=0&&(i=n.slice(0,o))!=="xmlns"&&(n=n.slice(o+1)),Cr.hasOwnProperty(i)?{space:Cr[i],local:n}:n}function Sn(n){return function(){this.removeAttribute(n)}}function Fn(n){return function(){this.removeAttributeNS(n.space,n.local)}}function qn(n,i){return function(){this.setAttribute(n,i)}}function Vn(n,i){return function(){this.setAttributeNS(n.space,n.local,i)}}function Xn(n,i){return function(){var o=i.apply(this,arguments);o==null?this.removeAttribute(n):this.setAttribute(n,o)}}function Tn(n,i){return function(){var o=i.apply(this,arguments);o==null?this.removeAttributeNS(n.space,n.local):this.setAttributeNS(n.space,n.local,o)}}function In(n){return n.ownerDocument&&n.ownerDocument.defaultView||n.document&&n||n.defaultView}function An(n){return function(){this.style.removeProperty(n)}}function hn(n,i,o){return function(){this.style.setProperty(n,i,o)}}function Hn(n,i,o){return function(){var s=i.apply(this,arguments);s==null?this.style.removeProperty(n):this.style.setProperty(n,s,o)}}function ir(n,i){return n.style.getPropertyValue(i)||In(n).getComputedStyle(n,null).getPropertyValue(i)}function ra(n){return function(){delete this[n]}}function gr(n,i){return function(){this[n]=i}}function Bn(n,i){return function(){var o=i.apply(this,arguments);o==null?delete this[n]:this[n]=o}}function io(n){return n.trim().split(/^|\s+/)}function Ta(n){return n.classList||new Vr(n)}function Vr(n){this._node=n,this._names=io(n.getAttribute("class")||"")}function Gr(n,i){for(var o=Ta(n),s=-1,l=i.length;++s=0&&(this._names.splice(i,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(n){return this._names.indexOf(n)>=0}};var $n={},pt=null;function ii(n,i,o){return n=Zt(n,i,o),function(s){var l=s.relatedTarget;l&&(l===this||8&l.compareDocumentPosition(this))||n.call(this,s)}}function Zt(n,i,o){return function(s){var l=pt;pt=s;try{n.call(this,this.__data__,i,o)}finally{pt=l}}}function ki(n){return n.trim().split(/^|\s+/).map(function(i){var o="",s=i.indexOf(".");return s>=0&&(o=i.slice(s+1),i=i.slice(0,s)),{type:i,name:o}})}function go(n){return function(){var i=this.__on;if(i){for(var o,s=0,l=-1,p=i.length;s=Pt&&(Pt=dt+1);!(it=V[Pt])&&++Pt=0;)(s=l[p])&&(b&&4^s.compareDocumentPosition(b)&&b.parentNode.insertBefore(s,b),b=s);return this},sort:function(n){function i(F,L){return F&&L?n(F.__data__,L.__data__):!F-!L}n||(n=zn);for(var o=this._groups,s=o.length,l=new Array(s),p=0;p1?this.each((i==null?An:typeof i=="function"?Hn:hn)(n,i,o==null?"":o)):ir(this.node(),n)},property:function(n,i){return arguments.length>1?this.each((i==null?ra:typeof i=="function"?Bn:gr)(n,i)):this.node()[n]},classed:function(n,i){var o=io(n+"");if(arguments.length<2){for(var s=Ta(this.node()),l=-1,p=o.length;++l>8&15|i>>4&240,i>>4&15|240&i,(15&i)<<4|15&i,1):o===8?oo(i>>24&255,i>>16&255,i>>8&255,(255&i)/255):o===4?oo(i>>12&15|i>>8&240,i>>8&15|i>>4&240,i>>4&15|240&i,((15&i)<<4|15&i)/255):null):(i=Ve.exec(n))?new Qr(i[1],i[2],i[3],1):(i=qe.exec(n))?new Qr(255*i[1]/100,255*i[2]/100,255*i[3]/100,1):(i=lr.exec(n))?oo(i[1],i[2],i[3],i[4]):(i=Sr.exec(n))?oo(255*i[1]/100,255*i[2]/100,255*i[3]/100,i[4]):(i=ai.exec(n))?za(i[1],i[2]/100,i[3]/100,1):(i=pi.exec(n))?za(i[1],i[2]/100,i[3]/100,i[4]):Ea.hasOwnProperty(n)?$s(Ea[n]):n==="transparent"?new Qr(NaN,NaN,NaN,0):null}function $s(n){return new Qr(n>>16&255,n>>8&255,255&n,1)}function oo(n,i,o,s){return s<=0&&(n=i=o=NaN),new Qr(n,i,o,s)}function wc(n){return n instanceof mr||(n=Sa(n)),n?new Qr((n=n.rgb()).r,n.g,n.b,n.opacity):new Qr}function Ii(n,i,o,s){return arguments.length===1?wc(n):new Qr(n,i,o,s==null?1:s)}function Qr(n,i,o,s){this.r=+n,this.g=+i,this.b=+o,this.opacity=+s}function lu(){return"#"+fu(this.r)+fu(this.g)+fu(this.b)}function hu(){var n=this.opacity;return((n=isNaN(n)?1:Math.max(0,Math.min(1,n)))===1?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(n===1?")":", "+n+")")}function fu(n){return((n=Math.max(0,Math.min(255,Math.round(n)||0)))<16?"0":"")+n.toString(16)}function za(n,i,o,s){return s<=0?n=i=o=NaN:o<=0||o>=1?n=i=NaN:i<=0&&(n=NaN),new Ua(n,i,o,s)}function du(n){if(n instanceof Ua)return new Ua(n.h,n.s,n.l,n.opacity);if(n instanceof mr||(n=Sa(n)),!n)return new Ua;if(n instanceof Ua)return n;var i=(n=n.rgb()).r/255,o=n.g/255,s=n.b/255,l=Math.min(i,o,s),p=Math.max(i,o,s),b=NaN,v=p-l,T=(p+l)/2;return v?(b=i===p?(o-s)/v+6*(o0&&T<1?0:b,new Ua(b,v,T,n.opacity)}function pu(n,i,o,s){return arguments.length===1?du(n):new Ua(n,i,o,s==null?1:s)}function Ua(n,i,o,s){this.h=+n,this.s=+i,this.l=+o,this.opacity=+s}function je(n,i,o){return 255*(n<60?i+(o-i)*n/60:n<180?o:n<240?i+(o-i)*(240-n)/60:i)}function jl(n,i,o,s,l){var p=n*n,b=p*n;return((1-3*n+3*p-b)*i+(4-6*p+3*b)*o+(1+3*n+3*p-3*b)*s+b*l)/6}function Ar(n){var i=n.length-1;return function(o){var s=o<=0?o=0:o>=1?(o=1,i-1):Math.floor(o*i),l=n[s],p=n[s+1],b=s>0?n[s-1]:2*l-p,v=s180||o<-180?o-360*Math.round(o/360):o):Tc(isNaN(n)?i:n)}function gi(n,i){var o=i-n;return o?gu(n,o):Tc(isNaN(n)?i:n)}Kr(mr,Sa,{copy:function(n){return Object.assign(new this.constructor,this,n)},displayable:function(){return this.rgb().displayable()},hex:Wr,formatHex:Wr,formatHsl:function(){return du(this).formatHsl()},formatRgb:Oi,toString:Oi}),Kr(Qr,Ii,Li(mr,{brighter:function(n){return n=n==null?Bi:Math.pow(Bi,n),new Qr(this.r*n,this.g*n,this.b*n,this.opacity)},darker:function(n){return n=n==null?Hi:Math.pow(Hi,n),new Qr(this.r*n,this.g*n,this.b*n,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:lu,formatHex:lu,formatRgb:hu,toString:hu})),Kr(Ua,pu,Li(mr,{brighter:function(n){return n=n==null?Bi:Math.pow(Bi,n),new Ua(this.h,this.s,this.l*n,this.opacity)},darker:function(n){return n=n==null?Hi:Math.pow(Hi,n),new Ua(this.h,this.s,this.l*n,this.opacity)},rgb:function(){var n=this.h%360+360*(this.h<0),i=isNaN(n)||isNaN(this.s)?0:this.s,o=this.l,s=o+(o<.5?o:1-o)*i,l=2*o-s;return new Qr(je(n>=240?n-240:n+120,l,s),je(n,l,s),je(n<120?n+240:n-120,l,s),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var n=this.opacity;return((n=isNaN(n)?1:Math.max(0,Math.min(1,n)))===1?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(n===1?")":", "+n+")")}}));const Ws=function n(i){var o=function(l){return(l=+l)==1?gi:function(p,b){return b-p?function(v,T,N){return v=Math.pow(v,N),T=Math.pow(T,N)-v,N=1/N,function(B){return Math.pow(v+B*T,N)}}(p,b,l):Tc(isNaN(p)?b:p)}}(i);function s(l,p){var b=o((l=Ii(l)).r,(p=Ii(p)).r),v=o(l.g,p.g),T=o(l.b,p.b),N=gi(l.opacity,p.opacity);return function(B){return l.r=b(B),l.g=v(B),l.b=T(B),l.opacity=N(B),l+""}}return s.gamma=n,s}(1);function Yl(n){return function(i){var o,s,l=i.length,p=new Array(l),b=new Array(l),v=new Array(l);for(o=0;op&&(l=i.slice(p,l),v[b]?v[b]+=l:v[++b]=l),(o=o[0])===(s=s[0])?v[b]?v[b]+=s:v[++b]=s:(v[++b]=null,T.push({i:b,x:ca(o,s)})),p=ql.lastIndex;return p=0&&i._call.call(null,n),i=i._next;--Ri}function Oe(){$i=(Ma=C.now())+Gn,Ri=oi=0;try{Te()}finally{Ri=0,function(){for(var n,i,o=mu,s=1/0;o;)o._call?(s>o._time&&(s=o._time),n=o,o=o._next):(i=o._next,o._next=null,o=n?n._next=i:mu=i);vo=n,He(s)}(),$i=0}}function Ie(){var n=C.now(),i=n-Ma;i>1e3&&(Gn-=i,Ma=n)}function He(n){Ri||(oi&&(oi=clearTimeout(oi)),n-$i>24?(n<1/0&&(oi=setTimeout(Oe,n-C.now()-Gn)),Ha&&(Ha=clearInterval(Ha))):(Ha||(Ma=C.now(),Ha=setInterval(Ie,1e3)),Ri=1,R(Oe)))}function Qe(n,i,o){var s=new Vt;return i=i==null?0:+i,s.restart(function(l){s.stop(),n(l+i)},i,o),s}Vt.prototype=ye.prototype={constructor:Vt,restart:function(n,i,o){if(typeof n!="function")throw new TypeError("callback is not a function");o=(o==null?W():+o)+(i==null?0:+i),this._next||vo===this||(vo?vo._next=this:mu=this,vo=this),this._call=n,this._time=o,He()},stop:function(){this._call&&(this._call=null,this._time=1/0,He())}};var xn=un("start","end","cancel","interrupt"),pn=[];function hr(n,i,o,s,l,p){var b=n.__transition;if(b){if(o in b)return}else n.__transition={};(function(v,T,N){var B,F=v.__transition;function L(J){var K,V,ot,it;if(N.state!==1)return U();for(K in F)if((it=F[K]).name===N.name){if(it.state===3)return Qe(L);it.state===4?(it.state=6,it.timer.stop(),it.on.call("interrupt",v,v.__data__,it.index,it.group),delete F[K]):+K0)throw new Error("too late; already scheduled");return o}function Mr(n,i){var o=ur(n,i);if(o.state>3)throw new Error("too late; already running");return o}function ur(n,i){var o=n.__transition;if(!o||!(o=o[i]))throw new Error("transition not found");return o}function la(n,i){var o,s,l,p=n.__transition,b=!0;if(p){for(l in i=i==null?null:i+"",p)(o=p[l]).name===i?(s=o.state>2&&o.state<5,o.state=6,o.timer.stop(),o.on.call(s?"interrupt":"cancel",n,n.__data__,o.index,o.group),delete p[l]):b=!1;b&&delete n.__transition}}var ps,Hl,Dd,$l,bo=180/Math.PI,Wl={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function ny(n,i,o,s,l,p){var b,v,T;return(b=Math.sqrt(n*n+i*i))&&(n/=b,i/=b),(T=n*o+i*s)&&(o-=n*T,s-=i*T),(v=Math.sqrt(o*o+s*s))&&(o/=v,s/=v,T/=v),n*s180?B+=360:B-N>180&&(N+=360),L.push({i:F.push(l(F)+"rotate(",null,s)-2,x:ca(N,B)})):B&&F.push(l(F)+"rotate("+B+s)}(p.rotate,b.rotate,v,T),function(N,B,F,L){N!==B?L.push({i:F.push(l(F)+"skewX(",null,s)-2,x:ca(N,B)}):B&&F.push(l(F)+"skewX("+B+s)}(p.skewX,b.skewX,v,T),function(N,B,F,L,z,U){if(N!==F||B!==L){var J=z.push(l(z)+"scale(",null,",",null,")");U.push({i:J-4,x:ca(N,F)},{i:J-2,x:ca(B,L)})}else F===1&&L===1||z.push(l(z)+"scale("+F+","+L+")")}(p.scaleX,p.scaleY,b.scaleX,b.scaleY,v,T),p=b=null,function(N){for(var B,F=-1,L=T.length;++F=0&&(v=v.slice(0,T)),!v||v==="start"})}(i)?fr:Mr;return function(){var b=p(this,n),v=b.on;v!==s&&(l=(s=v).copy()).on(i,o),b.on=l}}var Hd=sa.prototype.constructor;function $d(n){return function(){this.style.removeProperty(n)}}function Wd(n,i,o){return function(s){this.style.setProperty(n,i.call(this,s),o)}}function Vd(n,i,o){var s,l;function p(){var b=i.apply(this,arguments);return b!==l&&(s=(l=b)&&Wd(n,b,o)),s}return p._value=i,p}function Gd(n){return function(i){this.textContent=n.call(this,i)}}function xb(n){var i,o;function s(){var l=n.apply(this,arguments);return l!==o&&(i=(o=l)&&Gd(l)),i}return s._value=n,s}var wb=0;function qo(n,i,o,s){this._groups=n,this._parents=i,this._name=o,this._id=s}function qf(n){return sa().transition(n)}function Xd(){return++wb}var Ho=sa.prototype;function Hf(n){return n*n*n}function $f(n){return--n*n*n+1}function Vs(n){return((n*=2)<=1?n*n*n:(n-=2)*n*n+2)/2}qo.prototype=qf.prototype={constructor:qo,select:function(n){var i=this._name,o=this._id;typeof n!="function"&&(n=kr(n));for(var s=this._groups,l=s.length,p=new Array(l),b=0;b1&&o.name===i)return new qo([[n]],kb,i,+s)}return null}function Zd(n){return function(){return n}}function Cb(n,i,o){this.target=n,this.type=i,this.selection=o}function sy(){pt.stopImmediatePropagation()}function Qd(){pt.preventDefault(),pt.stopImmediatePropagation()}var cy={name:"drag"},Wf={name:"space"},Ac={name:"handle"},Mc={name:"center"};function vu(n){return[+n[0],+n[1]]}function Vf(n){return[vu(n[0]),vu(n[1])]}function Gf(n){return function(i){return ua(i,pt.touches,n)}}var Xf={name:"x",handles:["w","e"].map(Na),input:function(n,i){return n==null?null:[[+n[0],i[0][1]],[+n[1],i[1][1]]]},output:function(n){return n&&[n[0][0],n[1][0]]}},bu={name:"y",handles:["n","s"].map(Na),input:function(n,i){return n==null?null:[[i[0][0],+n[0]],[i[1][0],+n[1]]]},output:function(n){return n&&[n[0][1],n[1][1]]}},$a={name:"xy",handles:["n","w","e","s","nw","ne","sw","se"].map(Na),input:function(n){return n==null?null:Vf(n)},output:function(n){return n}},Wo={overlay:"crosshair",selection:"move",n:"ns-resize",e:"ew-resize",s:"ns-resize",w:"ew-resize",nw:"nwse-resize",ne:"nesw-resize",se:"nwse-resize",sw:"nesw-resize"},Kd={e:"w",w:"e",nw:"ne",ne:"nw",se:"sw",sw:"se"},Zf={n:"s",s:"n",nw:"sw",ne:"se",se:"ne",sw:"nw"},uy={overlay:1,selection:1,n:null,e:1,s:null,w:-1,nw:-1,ne:1,se:1,sw:-1},ly={overlay:1,selection:1,n:-1,e:null,s:1,w:null,nw:-1,ne:-1,se:1,sw:1};function Na(n){return{type:n}}function Jd(){return!pt.ctrlKey&&!pt.button}function tp(){var n=this.ownerSVGElement||this;return n.hasAttribute("viewBox")?[[(n=n.viewBox.baseVal).x,n.y],[n.x+n.width,n.y+n.height]]:[[0,0],[n.width.baseVal.value,n.height.baseVal.value]]}function hy(){return navigator.maxTouchPoints||"ontouchstart"in this}function Qf(n){for(;!n.__brush;)if(!(n=n.parentNode))return;return n.__brush}function Eb(n){return n[0][0]===n[1][0]||n[0][1]===n[1][1]}function Sb(n){var i=n.__brush;return i?i.dim.output(i.selection):null}function Kf(){return Gl(Xf)}function Ab(){return Gl(bu)}function ep(){return Gl($a)}function Gl(n){var i,o=tp,s=Jd,l=hy,p=!0,b=un("start","brush","end"),v=6;function T(K){var V=K.property("__brush",J).selectAll(".overlay").data([Na("overlay")]);V.enter().append("rect").attr("class","overlay").attr("pointer-events","all").attr("cursor",Wo.overlay).merge(V).each(function(){var it=Qf(this).extent;$r(this).attr("x",it[0][0]).attr("y",it[0][1]).attr("width",it[1][0]-it[0][0]).attr("height",it[1][1]-it[0][1])}),K.selectAll(".selection").data([Na("selection")]).enter().append("rect").attr("class","selection").attr("cursor",Wo.selection).attr("fill","#777").attr("fill-opacity",.3).attr("stroke","#fff").attr("shape-rendering","crispEdges");var ot=K.selectAll(".handle").data(n.handles,function(it){return it.type});ot.exit().remove(),ot.enter().append("rect").attr("class",function(it){return"handle handle--"+it.type}).attr("cursor",function(it){return Wo[it.type]}),K.each(N).attr("fill","none").attr("pointer-events","all").on("mousedown.brush",L).filter(l).on("touchstart.brush",L).on("touchmove.brush",z).on("touchend.brush touchcancel.brush",U).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function N(){var K=$r(this),V=Qf(this).selection;V?(K.selectAll(".selection").style("display",null).attr("x",V[0][0]).attr("y",V[0][1]).attr("width",V[1][0]-V[0][0]).attr("height",V[1][1]-V[0][1]),K.selectAll(".handle").style("display",null).attr("x",function(ot){return ot.type[ot.type.length-1]==="e"?V[1][0]-v/2:V[0][0]-v/2}).attr("y",function(ot){return ot.type[0]==="s"?V[1][1]-v/2:V[0][1]-v/2}).attr("width",function(ot){return ot.type==="n"||ot.type==="s"?V[1][0]-V[0][0]+v:v}).attr("height",function(ot){return ot.type==="e"||ot.type==="w"?V[1][1]-V[0][1]+v:v})):K.selectAll(".selection,.handle").style("display","none").attr("x",null).attr("y",null).attr("width",null).attr("height",null)}function B(K,V,ot){var it=K.__brush.emitter;return!it||ot&&it.clean?new F(K,V,ot):it}function F(K,V,ot){this.that=K,this.args=V,this.state=K.__brush,this.active=0,this.clean=ot}function L(){if((!i||pt.touches)&&s.apply(this,arguments)){var K,V,ot,it,dt,Pt,Gt,re,xe,qt,te,ut=this,Ct=pt.target.__data__.type,ce=(p&&pt.metaKey?Ct="overlay":Ct)==="selection"?cy:p&&pt.altKey?Mc:Ac,ee=n===bu?null:uy[Ct],ue=n===Xf?null:ly[Ct],Fe=Qf(ut),Ge=Fe.extent,vn=Fe.selection,Wn=Ge[0][0],tr=Ge[0][1],tn=Ge[1][0],rr=Ge[1][1],Mn=0,En=0,Zn=ee&&ue&&p&&pt.shiftKey,Xi=pt.touches?Gf(pt.changedTouches[0].identifier):ds,vi=Xi(ut),hs=vi,Hs=B(ut,arguments,!0).beforestart();Ct==="overlay"?(vn&&(xe=!0),Fe.selection=vn=[[K=n===bu?Wn:vi[0],ot=n===Xf?tr:vi[1]],[dt=n===bu?tn:K,Gt=n===Xf?rr:ot]]):(K=vn[0][0],ot=vn[0][1],dt=vn[1][0],Gt=vn[1][1]),V=K,it=ot,Pt=dt,re=Gt;var Fl=$r(ut).attr("pointer-events","none"),Rf=Fl.selectAll(".overlay").attr("cursor",Wo[Ct]);if(pt.touches)Hs.moved=hb,Hs.ended=fs;else{var lb=$r(pt.view).on("mousemove.brush",hb,!0).on("mouseup.brush",fs,!0);p&&lb.on("keydown.brush",K2,!0).on("keyup.brush",uu,!0),Zr(pt.view)}sy(),la(ut),N.call(ut),Hs.start()}function hb(){var ri=Xi(ut);!Zn||qt||te||(Math.abs(ri[0]-hs[0])>Math.abs(ri[1]-hs[1])?te=!0:qt=!0),hs=ri,xe=!0,Qd(),Pl()}function Pl(){var ri;switch(Mn=hs[0]-vi[0],En=hs[1]-vi[1],ce){case Wf:case cy:ee&&(Mn=Math.max(Wn-K,Math.min(tn-dt,Mn)),V=K+Mn,Pt=dt+Mn),ue&&(En=Math.max(tr-ot,Math.min(rr-Gt,En)),it=ot+En,re=Gt+En);break;case Ac:ee<0?(Mn=Math.max(Wn-K,Math.min(tn-K,Mn)),V=K+Mn,Pt=dt):ee>0&&(Mn=Math.max(Wn-dt,Math.min(tn-dt,Mn)),V=K,Pt=dt+Mn),ue<0?(En=Math.max(tr-ot,Math.min(rr-ot,En)),it=ot+En,re=Gt):ue>0&&(En=Math.max(tr-Gt,Math.min(rr-Gt,En)),it=ot,re=Gt+En);break;case Mc:ee&&(V=Math.max(Wn,Math.min(tn,K-Mn*ee)),Pt=Math.max(Wn,Math.min(tn,dt+Mn*ee))),ue&&(it=Math.max(tr,Math.min(rr,ot-En*ue)),re=Math.max(tr,Math.min(rr,Gt+En*ue)))}Pt0&&(K=V-Mn),ue<0?Gt=re-En:ue>0&&(ot=it-En),ce=Wf,Rf.attr("cursor",Wo.selection),Pl());break;default:return}Qd()}function uu(){switch(pt.keyCode){case 16:Zn&&(qt=te=Zn=!1,Pl());break;case 18:ce===Mc&&(ee<0?dt=Pt:ee>0&&(K=V),ue<0?Gt=re:ue>0&&(ot=it),ce=Ac,Pl());break;case 32:ce===Wf&&(pt.altKey?(ee&&(dt=Pt-Mn*ee,K=V+Mn*ee),ue&&(Gt=re-En*ue,ot=it+En*ue),ce=Mc):(ee<0?dt=Pt:ee>0&&(K=V),ue<0?Gt=re:ue>0&&(ot=it),ce=Ac),Rf.attr("cursor",Wo[Ct]),Pl());break;default:return}Qd()}}function z(){B(this,arguments).moved()}function U(){B(this,arguments).ended()}function J(){var K=this.__brush||{selection:null};return K.extent=Vf(o.apply(this,arguments)),K.dim=n,K}return T.move=function(K,V){K.selection?K.on("start.brush",function(){B(this,arguments).beforestart().start()}).on("interrupt.brush end.brush",function(){B(this,arguments).end()}).tween("brush",function(){var ot=this,it=ot.__brush,dt=B(ot,arguments),Pt=it.selection,Gt=n.input(typeof V=="function"?V.apply(this,arguments):V,it.extent),re=Cc(Pt,Gt);function xe(qt){it.selection=qt===1&&Gt===null?null:re(qt),N.call(ot),dt.brush()}return Pt!==null&&Gt!==null?xe:xe(1)}):K.each(function(){var ot=this,it=arguments,dt=ot.__brush,Pt=n.input(typeof V=="function"?V.apply(ot,it):V,dt.extent),Gt=B(ot,it).beforestart();la(ot),dt.selection=Pt===null?null:Pt,N.call(ot),Gt.start().brush().end()})},T.clear=function(K){T.move(K,null)},F.prototype={beforestart:function(){return++this.active==1&&(this.state.emitter=this,this.starting=!0),this},start:function(){return this.starting?(this.starting=!1,this.emit("start")):this.emit("brush"),this},brush:function(){return this.emit("brush"),this},end:function(){return--this.active==0&&(delete this.state.emitter,this.emit("end")),this},emit:function(K){Ui(new Cb(T,K,n.output(this.state.selection)),b.apply,b,[K,this.that,this.args])}},T.extent=function(K){return arguments.length?(o=typeof K=="function"?K:Zd(Vf(K)),T):o},T.filter=function(K){return arguments.length?(s=typeof K=="function"?K:Zd(!!K),T):s},T.touchable=function(K){return arguments.length?(l=typeof K=="function"?K:Zd(!!K),T):l},T.handleSize=function(K){return arguments.length?(v=+K,T):v},T.keyModifiers=function(K){return arguments.length?(p=!!K,T):p},T.on=function(){var K=b.on.apply(b,arguments);return K===b?T:K},T}var fy=Math.cos,dy=Math.sin,Jf=Math.PI,t1=Jf/2,py=2*Jf,np=Math.max;function _u(n){return function(i,o){return n(i.source.value+i.target.value,o.source.value+o.target.value)}}function rp(){var n=0,i=null,o=null,s=null;function l(p){var b,v,T,N,B,F,L=p.length,z=[],U=bt(L),J=[],K=[],V=K.groups=new Array(L),ot=new Array(L*L);for(b=0,B=-1;++Bys)if(Math.abs(B*v-T*N)>ys&&l){var L=o-p,z=s-b,U=v*v+T*T,J=L*L+z*z,K=Math.sqrt(U),V=Math.sqrt(F),ot=l*Math.tan((e1-Math.acos((U+F-J)/(2*K*V)))/2),it=ot/V,dt=ot/K;Math.abs(it-1)>ys&&(this._+="L"+(n+it*N)+","+(i+it*B)),this._+="A"+l+","+l+",0,0,"+ +(B*L>N*z)+","+(this._x1=n+dt*v)+","+(this._y1=i+dt*T)}else this._+="L"+(this._x1=n)+","+(this._y1=i)},arc:function(n,i,o,s,l,p){n=+n,i=+i,p=!!p;var b=(o=+o)*Math.cos(s),v=o*Math.sin(s),T=n+b,N=i+v,B=1^p,F=p?s-l:l-s;if(o<0)throw new Error("negative radius: "+o);this._x1===null?this._+="M"+T+","+N:(Math.abs(this._x1-T)>ys||Math.abs(this._y1-N)>ys)&&(this._+="L"+T+","+N),o&&(F<0&&(F=F%n1+n1),F>gy?this._+="A"+o+","+o+",0,1,"+B+","+(n-b)+","+(i-v)+"A"+o+","+o+",0,1,"+B+","+(this._x1=T)+","+(this._y1=N):F>ys&&(this._+="A"+o+","+o+",0,"+ +(F>=e1)+","+B+","+(this._x1=n+o*Math.cos(l))+","+(this._y1=i+o*Math.sin(l))))},rect:function(n,i,o,s){this._+="M"+(this._x0=this._x1=+n)+","+(this._y0=this._y1=+i)+"h"+ +o+"v"+ +s+"h"+-o+"Z"},toString:function(){return this._}};const ms=Xl;function r1(n){return n.source}function xu(n){return n.target}function yy(n){return n.radius}function my(n){return n.startAngle}function vy(n){return n.endAngle}function op(){var n=r1,i=xu,o=yy,s=my,l=vy,p=null;function b(){var v,T=Mb.call(arguments),N=n.apply(this,T),B=i.apply(this,T),F=+o.apply(this,(T[0]=N,T)),L=s.apply(this,T)-t1,z=l.apply(this,T)-t1,U=F*fy(L),J=F*dy(L),K=+o.apply(this,(T[0]=B,T)),V=s.apply(this,T)-t1,ot=l.apply(this,T)-t1;if(p||(p=v=ms()),p.moveTo(U,J),p.arc(0,0,F,L,z),L===V&&z===ot||(p.quadraticCurveTo(0,0,K*fy(V),K*dy(V)),p.arc(0,0,K,V,ot)),p.quadraticCurveTo(0,0,U,J),p.closePath(),v)return p=null,v+""||null}return b.radius=function(v){return arguments.length?(o=typeof v=="function"?v:ip(+v),b):o},b.startAngle=function(v){return arguments.length?(s=typeof v=="function"?v:ip(+v),b):s},b.endAngle=function(v){return arguments.length?(l=typeof v=="function"?v:ip(+v),b):l},b.source=function(v){return arguments.length?(n=v,b):n},b.target=function(v){return arguments.length?(i=v,b):i},b.context=function(v){return arguments.length?(p=v==null?null:v,b):p},b}var Wa="$";function Zl(){}function sp(n,i){var o=new Zl;if(n instanceof Zl)n.each(function(v,T){o.set(T,v)});else if(Array.isArray(n)){var s,l=-1,p=n.length;if(i==null)for(;++l=s.length)return n!=null&&v.sort(n),i!=null?i(v):v;for(var F,L,z,U=-1,J=v.length,K=s[T++],V=vs(),ot=N();++Us.length)return v;var N,B=l[T-1];return i!=null&&T>=s.length?N=v.entries():(N=[],v.each(function(F,L){N.push({key:L,values:b(F,T)})})),B!=null?N.sort(function(F,L){return B(F.key,L.key)}):N}return o={object:function(v){return p(v,0,by,_y)},map:function(v){return p(v,0,cp,xy)},entries:function(v){return b(p(v,0,cp,xy),0)},key:function(v){return s.push(v),o},sortKeys:function(v){return l[s.length-1]=v,o},sortValues:function(v){return n=v,o},rollup:function(v){return i=v,o}}}function by(){return{}}function _y(n,i,o){n[i]=o}function cp(){return vs()}function xy(n,i,o){n.set(i,o)}function Ql(){}var Gs=vs.prototype;function wu(n,i){var o=new Ql;if(n instanceof Ql)n.each(function(p){o.add(p)});else if(n){var s=-1,l=n.length;if(i==null)for(;++s.008856451679035631?Math.pow(n,1/3):n/wy+s1}function fp(n){return n>hp?n*n*n:wy*(n-s1)}function Tu(n){return 255*(n<=.0031308?12.92*n:1.055*Math.pow(n,1/2.4)-.055)}function bs(n){return(n/=255)<=.04045?n/12.92:Math.pow((n+.055)/1.055,2.4)}function u1(n){if(n instanceof Vo)return new Vo(n.h,n.c,n.l,n.opacity);if(n instanceof _o||(n=ku(n)),n.a===0&&n.b===0)return new Vo(NaN,0s!=z>s&&o<(L-N)*(s-B)/(z-B)+N&&(l=-l)}return l}function nh(n,i,o){var s,l,p,b;return function(v,T,N){return(T[0]-v[0])*(N[1]-v[1])==(N[0]-v[0])*(T[1]-v[1])}(n,i,o)&&(l=n[s=+(n[0]===i[0])],p=o[s],b=i[s],l<=p&&p<=b||b<=p&&p<=l)}function Ey(){}var Xo=[[],[[[1,1.5],[.5,1]]],[[[1.5,1],[1,1.5]]],[[[1.5,1],[.5,1]]],[[[1,.5],[1.5,1]]],[[[1,1.5],[.5,1]],[[1,.5],[1.5,1]]],[[[1,.5],[1,1.5]]],[[[1,.5],[.5,1]]],[[[.5,1],[1,.5]]],[[[1,1.5],[1,.5]]],[[[.5,1],[1,.5]],[[1.5,1],[1,1.5]]],[[[1.5,1],[1,.5]]],[[[.5,1],[1.5,1]]],[[[1,1.5],[1.5,1]]],[[[.5,1],[1,1.5]]],[]];function Ei(){var n=1,i=1,o=q,s=v;function l(T){var N=o(T);if(Array.isArray(N))N=N.slice().sort(Lb);else{var B=Q(T),F=B[0],L=B[1];N=lt(F,L,N),N=bt(Math.floor(F/N)*N,Math.floor(L/N)*N,N)}return N.map(function(z){return p(T,z)})}function p(T,N){var B=[],F=[];return function(L,z,U){var J,K,V,ot,it,dt,Pt=new Array,Gt=new Array;for(J=K=-1,ot=L[0]>=z,Xo[ot<<1].forEach(re);++J=z,Xo[V|ot<<1].forEach(re);for(Xo[ot<<0].forEach(re);++K=z,it=L[K*n]>=z,Xo[ot<<1|it<<2].forEach(re);++J=z,dt=it,it=L[K*n+J+1]>=z,Xo[V|ot<<1|it<<2|dt<<3].forEach(re);Xo[ot|it<<3].forEach(re)}for(J=-1,it=L[K*n]>=z,Xo[it<<2].forEach(re);++J=z,Xo[it<<2|dt<<3].forEach(re);function re(xe){var qt,te,ut=[xe[0][0]+J,xe[0][1]+K],Ct=[xe[1][0]+J,xe[1][1]+K],ce=b(ut),ee=b(Ct);(qt=Gt[ce])?(te=Pt[ee])?(delete Gt[qt.end],delete Pt[te.start],qt===te?(qt.ring.push(Ct),U(qt.ring)):Pt[qt.start]=Gt[te.end]={start:qt.start,end:te.end,ring:qt.ring.concat(te.ring)}):(delete Gt[qt.end],qt.ring.push(Ct),Gt[qt.end=ee]=qt):(qt=Pt[ee])?(te=Gt[ce])?(delete Pt[qt.start],delete Gt[te.end],qt===te?(qt.ring.push(Ct),U(qt.ring)):Pt[te.start]=Gt[qt.end]={start:te.start,end:qt.end,ring:te.ring.concat(qt.ring)}):(delete Pt[qt.start],qt.ring.unshift(ut),Pt[qt.start=ce]=qt):Pt[ce]=Gt[ee]={start:ce,end:ee,ring:[ut,Ct]}}Xo[it<<3].forEach(re)}(T,N,function(L){s(L,T,N),function(z){for(var U=0,J=z.length,K=z[J-1][1]*z[0][0]-z[J-1][0]*z[0][1];++U0?B.push([L]):F.push(L)}),F.forEach(function(L){for(var z,U=0,J=B.length;U0&&z0&&U0&&B>0))throw new Error("invalid size");return n=N,i=B,l},l.thresholds=function(T){return arguments.length?(o=typeof T=="function"?T:Array.isArray(T)?Go(Cy.call(T)):Go(T),l):o},l.smooth=function(T){return arguments.length?(s=T?v:Ey,l):s===v},l}function vp(n,i,o){for(var s=n.width,l=n.height,p=1+(o<<1),b=0;b=o&&(v>=p&&(T-=n.data[v-p+b*s]),i.data[v-o+b*s]=T/Math.min(v+1,s-1+p-v,p))}function bp(n,i,o){for(var s=n.width,l=n.height,p=1+(o<<1),b=0;b=o&&(v>=p&&(T-=n.data[b+(v-p)*s]),i.data[b+(v-o)*s]=T/Math.min(v+1,l-1+p-v,p))}function vr(n){return n[0]}function Bb(n){return n[1]}function rh(){return 1}function ih(){var n=vr,i=Bb,o=rh,s=960,l=500,p=20,b=2,v=3*p,T=s+2*v>>b,N=l+2*v>>b,B=Go(20);function F(V){var ot=new Float32Array(T*N),it=new Float32Array(T*N);V.forEach(function(Gt,re,xe){var qt=+n(Gt,re,xe)+v>>b,te=+i(Gt,re,xe)+v>>b,ut=+o(Gt,re,xe);qt>=0&&qt=0&&te>b),bp({width:T,height:N,data:it},{width:T,height:N,data:ot},p>>b),vp({width:T,height:N,data:ot},{width:T,height:N,data:it},p>>b),bp({width:T,height:N,data:it},{width:T,height:N,data:ot},p>>b),vp({width:T,height:N,data:ot},{width:T,height:N,data:it},p>>b),bp({width:T,height:N,data:it},{width:T,height:N,data:ot},p>>b);var dt=B(ot);if(!Array.isArray(dt)){var Pt=jt(ot);dt=lt(0,Pt,dt),(dt=bt(0,Math.floor(Pt/dt)*dt,dt)).shift()}return Ei().thresholds(dt).size([T,N])(ot).map(L)}function L(V){return V.value*=Math.pow(2,-2*b),V.coordinates.forEach(z),V}function z(V){V.forEach(U)}function U(V){V.forEach(J)}function J(V){V[0]=V[0]*Math.pow(2,b)-v,V[1]=V[1]*Math.pow(2,b)-v}function K(){return T=s+2*(v=3*p)>>b,N=l+2*v>>b,F}return F.x=function(V){return arguments.length?(n=typeof V=="function"?V:Go(+V),F):n},F.y=function(V){return arguments.length?(i=typeof V=="function"?V:Go(+V),F):i},F.weight=function(V){return arguments.length?(o=typeof V=="function"?V:Go(+V),F):o},F.size=function(V){if(!arguments.length)return[s,l];var ot=Math.ceil(V[0]),it=Math.ceil(V[1]);if(!(ot>=0||ot>=0))throw new Error("invalid size");return s=ot,l=it,K()},F.cellSize=function(V){if(!arguments.length)return 1<=1))throw new Error("invalid cell size");return b=Math.floor(Math.log(V)/Math.LN2),K()},F.thresholds=function(V){return arguments.length?(B=typeof V=="function"?V:Array.isArray(V)?Go(Cy.call(V)):Go(V),F):B},F.bandwidth=function(V){if(!arguments.length)return Math.sqrt(p*(p+1));if(!((V=+V)>=0))throw new Error("invalid bandwidth");return p=Math.round((Math.sqrt(4*V*V+1)-1)/2),K()},F}function h1(n){return function(){return n}}function _p(n,i,o,s,l,p,b,v,T,N){this.target=n,this.type=i,this.subject=o,this.identifier=s,this.active=l,this.x=p,this.y=b,this.dx=v,this.dy=T,this._=N}function Ob(){return!pt.ctrlKey&&!pt.button}function Ib(){return this.parentNode}function Rb(n){return n==null?{x:pt.x,y:pt.y}:n}function Sy(){return navigator.maxTouchPoints||"ontouchstart"in this}function Ay(){var n,i,o,s,l=Ob,p=Ib,b=Rb,v=Sy,T={},N=un("start","drag","end"),B=0,F=0;function L(dt){dt.on("mousedown.drag",z).filter(v).on("touchstart.drag",K).on("touchmove.drag",V).on("touchend.drag touchcancel.drag",ot).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function z(){if(!s&&l.apply(this,arguments)){var dt=it("mouse",p.apply(this,arguments),ds,this,arguments);dt&&($r(pt.view).on("mousemove.drag",U,!0).on("mouseup.drag",J,!0),Zr(pt.view),ar(),o=!1,n=pt.clientX,i=pt.clientY,dt("start"))}}function U(){if(di(),!o){var dt=pt.clientX-n,Pt=pt.clientY-i;o=dt*dt+Pt*Pt>F}T.mouse("drag")}function J(){$r(pt.view).on("mousemove.drag mouseup.drag",null),Br(pt.view,o),di(),T.mouse("end")}function K(){if(l.apply(this,arguments)){var dt,Pt,Gt=pt.changedTouches,re=p.apply(this,arguments),xe=Gt.length;for(dt=0;dt=F?U=!0:(it=v.charCodeAt(L++))===10?J=!0:it===13&&(J=!0,v.charCodeAt(L)===10&&++L),v.slice(dt+1,ot-1).replace(/""/g,'"')}for(;L9999?"+"+Da(z,6):Da(z,4)}(T.getUTCFullYear())+"-"+Da(T.getUTCMonth()+1,2)+"-"+Da(T.getUTCDate(),2)+(L?"T"+Da(N,2)+":"+Da(B,2)+":"+Da(F,2)+"."+Da(L,3)+"Z":F?"T"+Da(N,2)+":"+Da(B,2)+":"+Da(F,2)+"Z":B||N?"T"+Da(N,2)+":"+Da(B,2)+"Z":"")}(v):i.test(v+="")?'"'+v.replace(/"/g,'""')+'"':v}return{parse:function(v,T){var N,B,F=s(v,function(L,z){if(N)return N(L,z-1);B=L,N=T?function(U,J){var K=Ny(U);return function(V,ot){return J(K(V),ot,U)}}(L,T):Ny(L)});return F.columns=B||[],F},parseRows:s,format:function(v,T){return T==null&&(T=wp(v)),[T.map(b).join(n)].concat(l(v,T)).join(` +`)},formatBody:function(v,T){return T==null&&(T=wp(v)),l(v,T).join(` +`)},formatRows:function(v){return v.map(p).join(` +`)},formatRow:p,formatValue:b}}var Dc=ah(","),Dy=Dc.parse,Fb=Dc.parseRows,Pb=Dc.format,jb=Dc.formatBody,Yb=Dc.formatRows,zb=Dc.formatRow,Ly=Dc.formatValue,Lc=ah(" "),By=Lc.parse,Ub=Lc.parseRows,Oy=Lc.format,qb=Lc.formatBody,Hb=Lc.formatRows,$b=Lc.formatRow,Wb=Lc.formatValue;function Vb(n){for(var i in n){var o,s,l=n[i].trim();if(l)if(l==="true")l=!0;else if(l==="false")l=!1;else if(l==="NaN")l=NaN;else if(isNaN(o=+l)){if(!(s=l.match(/^([-+]\d{2})?\d{4}(-\d{2}(-\d{2})?)?(T\d{2}:\d{2}(:\d{2}(\.\d{3})?)?(Z|[-+]\d{2}:\d{2})?)?$/)))continue;Gb&&s[4]&&!s[7]&&(l=l.replace(/-/g,"/").replace(/T/," ")),l=new Date(l)}else l=o;else l=null;n[i]=l}return n}var Gb=new Date("2019-01-01T00:00").getHours()||new Date("2019-07-01T00:00").getHours();function Iy(n){return+n}function Xb(n){return n*n}function Zb(n){return n*(2-n)}function Ry(n){return((n*=2)<=1?n*n:--n*(2-n)+1)/2}var Qb=function n(i){function o(s){return Math.pow(s,i)}return i=+i,o.exponent=n,o}(3),Kb=function n(i){function o(s){return 1-Math.pow(1-s,i)}return i=+i,o.exponent=n,o}(3),Fy=function n(i){function o(s){return((s*=2)<=1?Math.pow(s,i):2-Math.pow(2-s,i))/2}return i=+i,o.exponent=n,o}(3),Py=Math.PI,jy=Py/2;function Yy(n){return+n==1?1:1-Math.cos(n*jy)}function Jb(n){return Math.sin(n*jy)}function zy(n){return(1-Math.cos(Py*n))/2}function Qs(n){return 1.0009775171065494*(Math.pow(2,-10*n)-.0009765625)}function Uy(n){return Qs(1-+n)}function t4(n){return 1-Qs(n)}function qy(n){return((n*=2)<=1?Qs(1-n):2-Qs(n-1))/2}function e4(n){return 1-Math.sqrt(1-n*n)}function n4(n){return Math.sqrt(1- --n*n)}function Hy(n){return((n*=2)<=1?1-Math.sqrt(1-n*n):Math.sqrt(1-(n-=2)*n)+1)/2}var f1=7.5625;function $y(n){return 1-oh(1-n)}function oh(n){return(n=+n)<.36363636363636365?f1*n*n:n<.7272727272727273?f1*(n-=.5454545454545454)*n+.75:n<.9090909090909091?f1*(n-=.8181818181818182)*n+.9375:f1*(n-=.9545454545454546)*n+.984375}function r4(n){return((n*=2)<=1?1-oh(1-n):oh(n-1)+1)/2}var kp=1.70158,i4=function n(i){function o(s){return(s=+s)*s*(i*(s-1)+s)}return i=+i,o.overshoot=n,o}(kp),a4=function n(i){function o(s){return--s*s*((s+1)*i+s)+1}return i=+i,o.overshoot=n,o}(kp),Wy=function n(i){function o(s){return((s*=2)<1?s*s*((i+1)*s-i):(s-=2)*s*((i+1)*s+i)+2)/2}return i=+i,o.overshoot=n,o}(kp),Eu=2*Math.PI,o4=function n(i,o){var s=Math.asin(1/(i=Math.max(1,i)))*(o/=Eu);function l(p){return i*Qs(- --p)*Math.sin((s-p)/o)}return l.amplitude=function(p){return n(p,o*Eu)},l.period=function(p){return n(i,p)},l}(1,.3),Tp=function n(i,o){var s=Math.asin(1/(i=Math.max(1,i)))*(o/=Eu);function l(p){return 1-i*Qs(p=+p)*Math.sin((p+s)/o)}return l.amplitude=function(p){return n(p,o*Eu)},l.period=function(p){return n(i,p)},l}(1,.3),Vy=function n(i,o){var s=Math.asin(1/(i=Math.max(1,i)))*(o/=Eu);function l(p){return((p=2*p-1)<0?i*Qs(-p)*Math.sin((s-p)/o):2-i*Qs(p)*Math.sin((s+p)/o))/2}return l.amplitude=function(p){return n(p,o*Eu)},l.period=function(p){return n(i,p)},l}(1,.3);function Gy(n){if(!n.ok)throw new Error(n.status+" "+n.statusText);return n.blob()}function s4(n,i){return fetch(n,i).then(Gy)}function c4(n){if(!n.ok)throw new Error(n.status+" "+n.statusText);return n.arrayBuffer()}function Xy(n,i){return fetch(n,i).then(c4)}function u4(n){if(!n.ok)throw new Error(n.status+" "+n.statusText);return n.text()}function Su(n,i){return fetch(n,i).then(u4)}function Cp(n){return function(i,o,s){return arguments.length===2&&typeof o=="function"&&(s=o,o=void 0),Su(i,o).then(function(l){return n(l,s)})}}function l4(n,i,o,s){arguments.length===3&&typeof o=="function"&&(s=o,o=void 0);var l=ah(n);return Su(i,o).then(function(p){return l.parse(p,s)})}var Zy=Cp(Dy),Qy=Cp(By);function Ky(n,i){return new Promise(function(o,s){var l=new Image;for(var p in i)l[p]=i[p];l.onerror=s,l.onload=function(){o(l)},l.src=n})}function h4(n){if(!n.ok)throw new Error(n.status+" "+n.statusText);if(n.status!==204&&n.status!==205)return n.json()}function f4(n,i){return fetch(n,i).then(h4)}function Ep(n){return function(i,o){return Su(i,o).then(function(s){return new DOMParser().parseFromString(s,n)})}}const d4=Ep("application/xml");var Jy=Ep("text/html"),d1=Ep("image/svg+xml");function p4(n,i){var o;function s(){var l,p,b=o.length,v=0,T=0;for(l=0;l=(p=(J+V)/2))?J=p:V=p,(B=o>=(b=(K+ot)/2))?K=b:ot=b,l=z,!(z=z[F=B<<1|N]))return l[F]=U,n;if(v=+n._x.call(null,z.data),T=+n._y.call(null,z.data),i===v&&o===T)return U.next=z,l?l[F]=U:n._root=U,n;do l=l?l[F]=new Array(4):n._root=new Array(4),(N=i>=(p=(J+V)/2))?J=p:V=p,(B=o>=(b=(K+ot)/2))?K=b:ot=b;while((F=B<<1|N)==(L=(T>=b)<<1|v>=p));return l[L]=z,l[F]=U,n}function fa(n,i,o,s,l){this.node=n,this.x0=i,this.y0=o,this.x1=s,this.y1=l}function g4(n){return n[0]}function Sp(n){return n[1]}function sh(n,i,o){var s=new Au(i==null?g4:i,o==null?Sp:o,NaN,NaN,NaN,NaN);return n==null?s:s.addAll(n)}function Au(n,i,o,s,l,p){this._x=n,this._y=i,this._x0=o,this._y0=s,this._x1=l,this._y1=p,this._root=void 0}function em(n){for(var i={data:n.data},o=i;n=n.next;)o=o.next={data:n.data};return i}var da=sh.prototype=Au.prototype;function y4(n){return n.x+n.vx}function m4(n){return n.y+n.vy}function v4(n){var i,o,s=1,l=1;function p(){for(var T,N,B,F,L,z,U,J=i.length,K=0;KF+qt||PtL+qt||GtB.index){var te=F-re.x-re.vx,ut=L-re.y-re.vy,Ct=te*te+ut*ut;CtT.r&&(T.r=T[N].r)}function v(){if(i){var T,N,B=i.length;for(o=new Array(B),T=0;TB&&(B=s),lF&&(F=l));if(T>B||N>F)return this;for(this.cover(T,N).cover(B,F),o=0;on||n>=l||s>i||i>=p;)switch(v=(iL||(p=T.y0)>z||(b=T.x1)=V)<<1|n>=K)&&(T=U[U.length-1],U[U.length-1]=U[U.length-1-N],U[U.length-1-N]=T)}else{var ot=n-+this._x.call(null,J.data),it=i-+this._y.call(null,J.data),dt=ot*ot+it*it;if(dt=(v=(U+K)/2))?U=v:K=v,(B=b>=(T=(J+V)/2))?J=T:V=T,i=z,!(z=z[F=B<<1|N]))return this;if(!z.length)break;(i[F+1&3]||i[F+2&3]||i[F+3&3])&&(o=i,L=F)}for(;z.data!==n;)if(s=z,!(z=z.next))return this;return(l=z.next)&&delete z.next,s?(l?s.next=l:delete s.next,this):i?(l?i[F]=l:delete i[F],(z=i[0]||i[1]||i[2]||i[3])&&z===(i[3]||i[2]||i[1]||i[0])&&!z.length&&(o?o[L]=z:this._root=z),this):(this._root=l,this)},da.removeAll=function(n){for(var i=0,o=n.length;i1?(J==null?v.remove(U):v.set(U,z(J)),i):v.get(U)},find:function(U,J,K){var V,ot,it,dt,Pt,Gt=0,re=n.length;for(K==null?K=1/0:K*=K,Gt=0;Gt1?(N.on(U,J),i):N.on(U)}}}function T4(){var n,i,o,s,l=Si(-30),p=1,b=1/0,v=.81;function T(L){var z,U=n.length,J=sh(n,x4,w4).visitAfter(B);for(o=L,z=0;z=b)){(L.data!==i||L.next)&&(K===0&&(it+=(K=Ks())*K),V===0&&(it+=(V=Ks())*V),it1?s[0]+s.slice(2):s,+n.slice(o+1)]}function Bc(n){return(n=ch(Math.abs(n)))?n[1]:NaN}var Np,E4=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function uh(n){if(!(i=E4.exec(n)))throw new Error("invalid format: "+n);var i;return new p1({fill:i[1],align:i[2],sign:i[3],symbol:i[4],zero:i[5],width:i[6],comma:i[7],precision:i[8]&&i[8].slice(1),trim:i[9],type:i[10]})}function p1(n){this.fill=n.fill===void 0?" ":n.fill+"",this.align=n.align===void 0?">":n.align+"",this.sign=n.sign===void 0?"-":n.sign+"",this.symbol=n.symbol===void 0?"":n.symbol+"",this.zero=!!n.zero,this.width=n.width===void 0?void 0:+n.width,this.comma=!!n.comma,this.precision=n.precision===void 0?void 0:+n.precision,this.trim=!!n.trim,this.type=n.type===void 0?"":n.type+""}function rm(n,i){var o=ch(n,i);if(!o)return n+"";var s=o[0],l=o[1];return l<0?"0."+new Array(-l).join("0")+s:s.length>l+1?s.slice(0,l+1)+"."+s.slice(l+1):s+new Array(l-s.length+2).join("0")}uh.prototype=p1.prototype,p1.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,0|this.width))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};const im={"%":function(n,i){return(100*n).toFixed(i)},b:function(n){return Math.round(n).toString(2)},c:function(n){return n+""},d:function(n){return Math.abs(n=Math.round(n))>=1e21?n.toLocaleString("en").replace(/,/g,""):n.toString(10)},e:function(n,i){return n.toExponential(i)},f:function(n,i){return n.toFixed(i)},g:function(n,i){return n.toPrecision(i)},o:function(n){return Math.round(n).toString(8)},p:function(n,i){return rm(100*n,i)},r:rm,s:function(n,i){var o=ch(n,i);if(!o)return n+"";var s=o[0],l=o[1],p=l-(Np=3*Math.max(-8,Math.min(8,Math.floor(l/3))))+1,b=s.length;return p===b?s:p>b?s+new Array(p-b+1).join("0"):p>0?s.slice(0,p)+"."+s.slice(p):"0."+new Array(1-p).join("0")+ch(n,Math.max(0,i+p-1))[0]},X:function(n){return Math.round(n).toString(16).toUpperCase()},x:function(n){return Math.round(n).toString(16)}};function am(n){return n}var g1,y1,Dp,om=Array.prototype.map,sm=["y","z","a","f","p","n","\xB5","m","","k","M","G","T","P","E","Z","Y"];function cm(n){var i,o,s=n.grouping===void 0||n.thousands===void 0?am:(i=om.call(n.grouping,Number),o=n.thousands+"",function(L,z){for(var U=L.length,J=[],K=0,V=i[0],ot=0;U>0&&V>0&&(ot+V+1>z&&(V=Math.max(1,z-ot)),J.push(L.substring(U-=V,U+V)),!((ot+=V+1)>z));)V=i[K=(K+1)%i.length];return J.reverse().join(o)}),l=n.currency===void 0?"":n.currency[0]+"",p=n.currency===void 0?"":n.currency[1]+"",b=n.decimal===void 0?".":n.decimal+"",v=n.numerals===void 0?am:function(L){return function(z){return z.replace(/[0-9]/g,function(U){return L[+U]})}}(om.call(n.numerals,String)),T=n.percent===void 0?"%":n.percent+"",N=n.minus===void 0?"-":n.minus+"",B=n.nan===void 0?"NaN":n.nan+"";function F(L){var z=(L=uh(L)).fill,U=L.align,J=L.sign,K=L.symbol,V=L.zero,ot=L.width,it=L.comma,dt=L.precision,Pt=L.trim,Gt=L.type;Gt==="n"?(it=!0,Gt="g"):im[Gt]||(dt===void 0&&(dt=12),Pt=!0,Gt="g"),(V||z==="0"&&U==="=")&&(V=!0,z="0",U="=");var re=K==="$"?l:K==="#"&&/[boxX]/.test(Gt)?"0"+Gt.toLowerCase():"",xe=K==="$"?p:/[%p]/.test(Gt)?T:"",qt=im[Gt],te=/[defgprs%]/.test(Gt);function ut(Ct){var ce,ee,ue,Fe=re,Ge=xe;if(Gt==="c")Ge=qt(Ct)+Ge,Ct="";else{var vn=(Ct=+Ct)<0||1/Ct<0;if(Ct=isNaN(Ct)?B:qt(Math.abs(Ct),dt),Pt&&(Ct=function(tn){t:for(var rr,Mn=tn.length,En=1,Zn=-1;En0&&(Zn=0)}return Zn>0?tn.slice(0,Zn)+tn.slice(rr+1):tn}(Ct)),vn&&+Ct==0&&J!=="+"&&(vn=!1),Fe=(vn?J==="("?J:N:J==="-"||J==="("?"":J)+Fe,Ge=(Gt==="s"?sm[8+Np/3]:"")+Ge+(vn&&J==="("?")":""),te){for(ce=-1,ee=Ct.length;++ce(ue=Ct.charCodeAt(ce))||ue>57){Ge=(ue===46?b+Ct.slice(ce+1):Ct.slice(ce))+Ge,Ct=Ct.slice(0,ce);break}}}it&&!V&&(Ct=s(Ct,1/0));var Wn=Fe.length+Ct.length+Ge.length,tr=Wn>1)+Fe+Ct+Ge+tr.slice(Wn);break;default:Ct=tr+Fe+Ct+Ge}return v(Ct)}return dt=dt===void 0?6:/[gprs]/.test(Gt)?Math.max(1,Math.min(21,dt)):Math.max(0,Math.min(20,dt)),ut.toString=function(){return L+""},ut}return{format:F,formatPrefix:function(L,z){var U=F(((L=uh(L)).type="f",L)),J=3*Math.max(-8,Math.min(8,Math.floor(Bc(z)/3))),K=Math.pow(10,-J),V=sm[8+J/3];return function(ot){return U(K*ot)+V}}}}function um(n){return g1=cm(n),y1=g1.format,Dp=g1.formatPrefix,g1}function Lp(n){return Math.max(0,-Bc(Math.abs(n)))}function lm(n,i){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(Bc(i)/3)))-Bc(Math.abs(n)))}function hm(n,i){return n=Math.abs(n),i=Math.abs(i)-n,Math.max(0,Bc(i)-Bc(n))+1}function Js(){return new m1}function m1(){this.reset()}um({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"}),m1.prototype={constructor:m1,reset:function(){this.s=this.t=0},add:function(n){fm(v1,n,this.t),fm(this,v1.s,this.s),this.s?this.t+=v1.t:this.s=v1.t},valueOf:function(){return this.s}};var v1=new m1;function fm(n,i,o){var s=n.s=i+o,l=s-i,p=s-l;n.t=i-p+(o-l)}var Pn=1e-6,lh=1e-12,er=Math.PI,si=er/2,Nu=er/4,Nr=2*er,Or=180/er,_n=er/180,Ne=Math.abs,tc=Math.atan,Wi=Math.atan2,fn=Math.cos,Zo=Math.ceil,dm=Math.exp,Du=Math.log,b1=Math.pow,sn=Math.sin,br=Math.sign||function(n){return n>0?1:n<0?-1:0},yi=Math.sqrt,Fi=Math.tan;function ec(n){return n>1?0:n<-1?er:Math.acos(n)}function pa(n){return n>1?si:n<-1?-si:Math.asin(n)}function _1(n){return(n=sn(n/2))*n}function _r(){}function xs(n,i){n&&Lu.hasOwnProperty(n.type)&&Lu[n.type](n,i)}var ga={Feature:function(n,i){xs(n.geometry,i)},FeatureCollection:function(n,i){for(var o=n.features,s=-1,l=o.length;++s=0?1:-1,l=s*o,p=fn(i=(i*=_n)/2+Nu),b=sn(i),v=Rp*b,T=Ip*p+v*fn(l),N=v*s*sn(l);x1.add(Wi(N,T)),Op=n,Ip=p,Rp=b}function S4(n){return w1.reset(),wo(n,Va),2*w1}function k1(n){return[Wi(n[1],n[0]),pa(n[2])]}function ko(n){var i=n[0],o=n[1],s=fn(o);return[s*fn(i),s*sn(i),sn(o)]}function T1(n,i){return n[0]*i[0]+n[1]*i[1]+n[2]*i[2]}function Ou(n,i){return[n[1]*i[2]-n[2]*i[1],n[2]*i[0]-n[0]*i[2],n[0]*i[1]-n[1]*i[0]]}function Iu(n,i){n[0]+=i[0],n[1]+=i[1],n[2]+=i[2]}function Oc(n,i){return[n[0]*i,n[1]*i,n[2]*i]}function fh(n){var i=yi(n[0]*n[0]+n[1]*n[1]+n[2]*n[2]);n[0]/=i,n[1]/=i,n[2]/=i}var jr,ya,ti,La,nc,Pp,jp,rc,To,Qo,Ru,dh,ph,Ic,Fu,Pu,co,gh,C1,ws,Yp,E1,ju,ma,Zi,mi,yh=Js(),Co={point:Rc,lineStart:zp,lineEnd:Up,polygonStart:function(){Co.point=Yu,Co.lineStart=vm,Co.lineEnd=mh,yh.reset(),Va.polygonStart()},polygonEnd:function(){Va.polygonEnd(),Co.point=Rc,Co.lineStart=zp,Co.lineEnd=Up,x1<0?(jr=-(ti=180),ya=-(La=90)):yh>Pn?La=90:yh<-1e-6&&(ya=-90),Qo[0]=jr,Qo[1]=ti},sphere:function(){jr=-(ti=180),ya=-(La=90)}};function Rc(n,i){To.push(Qo=[jr=n,ti=n]),iLa&&(La=i)}function mm(n,i){var o=ko([n*_n,i*_n]);if(rc){var s=Ou(rc,o),l=Ou([s[1],-s[0],0],s);fh(l),l=k1(l);var p,b=n-nc,v=b>0?1:-1,T=l[0]*Or*v,N=Ne(b)>180;N^(v*ncLa&&(La=p):N^(v*nc<(T=(T+360)%360-180)&&TLa&&(La=i)),N?nva(jr,ti)&&(ti=n):va(n,ti)>va(jr,ti)&&(jr=n):ti>=jr?(nti&&(ti=n)):n>nc?va(jr,n)>va(jr,ti)&&(ti=n):va(n,ti)>va(jr,ti)&&(jr=n)}else To.push(Qo=[jr=n,ti=n]);iLa&&(La=i),rc=o,nc=n}function zp(){Co.point=mm}function Up(){Qo[0]=jr,Qo[1]=ti,Co.point=Rc,rc=null}function Yu(n,i){if(rc){var o=n-nc;yh.add(Ne(o)>180?o+(o>0?360:-360):o)}else Pp=n,jp=i;Va.point(n,i),mm(n,i)}function vm(){Va.lineStart()}function mh(){Yu(Pp,jp),Va.lineEnd(),Ne(yh)>Pn&&(jr=-(ti=180)),Qo[0]=jr,Qo[1]=ti,rc=null}function va(n,i){return(i-=n)<0?i+360:i}function qp(n,i){return n[0]-i[0]}function zu(n,i){return n[0]<=n[1]?n[0]<=i&&i<=n[1]:iva(s[0],s[1])&&(s[1]=l[1]),va(l[0],s[1])>va(s[0],s[1])&&(s[0]=l[0])):p.push(s=l);for(b=-1/0,i=0,s=p[o=p.length-1];i<=o;s=l,++i)l=p[i],(v=va(s[1],l[0]))>b&&(b=v,jr=l[0],ti=s[1])}return To=Qo=null,jr===1/0||ya===1/0?[[NaN,NaN],[NaN,NaN]]:[[jr,ya],[ti,La]]}var Ga={sphere:_r,point:S1,lineStart:bm,lineEnd:_m,polygonStart:function(){Ga.lineStart=bh,Ga.lineEnd=_h},polygonEnd:function(){Ga.lineStart=bm,Ga.lineEnd=_m}};function S1(n,i){n*=_n;var o=fn(i*=_n);ci(o*fn(n),o*sn(n),sn(i))}function ci(n,i,o){++Ru,ph+=(n-ph)/Ru,Ic+=(i-Ic)/Ru,Fu+=(o-Fu)/Ru}function bm(){Ga.point=A4}function A4(n,i){n*=_n;var o=fn(i*=_n);ma=o*fn(n),Zi=o*sn(n),mi=sn(i),Ga.point=xr,ci(ma,Zi,mi)}function xr(n,i){n*=_n;var o=fn(i*=_n),s=o*fn(n),l=o*sn(n),p=sn(i),b=Wi(yi((b=Zi*p-mi*l)*b+(b=mi*s-ma*p)*b+(b=ma*l-Zi*s)*b),ma*s+Zi*l+mi*p);dh+=b,Pu+=b*(ma+(ma=s)),co+=b*(Zi+(Zi=l)),gh+=b*(mi+(mi=p)),ci(ma,Zi,mi)}function _m(){Ga.point=S1}function bh(){Ga.point=M4}function _h(){xm(E1,ju),Ga.point=S1}function M4(n,i){E1=n,ju=i,n*=_n,i*=_n,Ga.point=xm;var o=fn(i);ma=o*fn(n),Zi=o*sn(n),mi=sn(i),ci(ma,Zi,mi)}function xm(n,i){n*=_n;var o=fn(i*=_n),s=o*fn(n),l=o*sn(n),p=sn(i),b=Zi*p-mi*l,v=mi*s-ma*p,T=ma*l-Zi*s,N=yi(b*b+v*v+T*T),B=pa(N),F=N&&-B/N;C1+=F*b,ws+=F*v,Yp+=F*T,dh+=B,Pu+=B*(ma+(ma=s)),co+=B*(Zi+(Zi=l)),gh+=B*(mi+(mi=p)),ci(ma,Zi,mi)}function N4(n){Ru=dh=ph=Ic=Fu=Pu=co=gh=C1=ws=Yp=0,wo(n,Ga);var i=C1,o=ws,s=Yp,l=i*i+o*o+s*s;return ler?n+Math.round(-n/Nr)*Nr:n,i]}function M1(n,i,o){return(n%=Nr)?i||o?Hp(km(n),Tm(i,o)):km(n):i||o?Tm(i,o):A1}function wm(n){return function(i,o){return[(i+=n)>er?i-Nr:i<-er?i+Nr:i,o]}}function km(n){var i=wm(n);return i.invert=wm(-n),i}function Tm(n,i){var o=fn(n),s=sn(n),l=fn(i),p=sn(i);function b(v,T){var N=fn(T),B=fn(v)*N,F=sn(v)*N,L=sn(T),z=L*o+B*s;return[Wi(F*l-z*p,B*o-L*s),pa(z*l+F*p)]}return b.invert=function(v,T){var N=fn(T),B=fn(v)*N,F=sn(v)*N,L=sn(T),z=L*l-F*p;return[Wi(F*l+L*p,B*o+z*s),pa(z*o-B*s)]},b}function $p(n){function i(o){return(o=n(o[0]*_n,o[1]*_n))[0]*=Or,o[1]*=Or,o}return n=M1(n[0]*_n,n[1]*_n,n.length>2?n[2]*_n:0),i.invert=function(o){return(o=n.invert(o[0]*_n,o[1]*_n))[0]*=Or,o[1]*=Or,o},i}function Cm(n,i,o,s,l,p){if(o){var b=fn(i),v=sn(i),T=s*o;l==null?(l=i+s*Nr,p=i-T/2):(l=Wp(b,l),p=Wp(b,p),(s>0?lp)&&(l+=s*Nr));for(var N,B=l;s>0?B>p:B1&&i.push(i.pop().concat(i.shift()))},result:function(){var o=i;return i=[],n=null,o}}}function N1(n,i){return Ne(n[0]-i[0])=0;--p)l.point((B=N[p])[0],B[1]);else s(L.x,L.p.x,-1,l);L=L.p}N=(L=L.o).z,z=!z}while(!L.v);l.lineEnd()}}}function Am(n){if(i=n.length){for(var i,o,s=0,l=n[0];++s=0?1:-1,qt=xe*re,te=qt>er,ut=J*Pt;if(Vp.add(Wi(ut*xe*sn(qt),K*Gt+ut*fn(qt))),b+=te?re+xe*Nr:re,te^z>=o^it>=o){var Ct=Ou(ko(L),ko(ot));fh(Ct);var ce=Ou(p,Ct);fh(ce);var ee=(te^re>=0?-1:1)*pa(ce[2]);(s>ee||s===ee&&(Ct[0]||Ct[1]))&&(v+=te^re>=0?1:-1)}}return(b<-1e-6||b0){for(F||(l.polygonStart(),F=!0),l.lineStart(),dt=0;dt1&&2&xe&&qt.push(qt.pop().concat(qt.shift())),b.push(qt.filter(L4))}return L}}function L4(n){return n.length>1}function Dm(n,i){return((n=n.x)[0]<0?n[1]-si-Pn:si-n[1])-((i=i.x)[0]<0?i[1]-si-Pn:si-i[1])}const Gp=Nm(function(){return!0},function(n){var i,o=NaN,s=NaN,l=NaN;return{lineStart:function(){n.lineStart(),i=1},point:function(p,b){var v=p>0?er:-er,T=Ne(p-o);Ne(T-er)0?si:-si),n.point(l,s),n.lineEnd(),n.lineStart(),n.point(v,s),n.point(p,s),i=0):l!==v&&T>=er&&(Ne(o-l)Pn?tc((sn(B)*(U=fn(L))*sn(F)-sn(L)*(z=fn(B))*sn(N))/(z*U*J)):(B+L)/2}(o,s,p,b),n.point(l,s),n.lineEnd(),n.lineStart(),n.point(v,s),i=0),n.point(o=p,s=b),l=v},lineEnd:function(){n.lineEnd(),o=s=NaN},clean:function(){return 2-i}}},function(n,i,o,s){var l;if(n==null)l=o*si,s.point(-er,l),s.point(0,l),s.point(er,l),s.point(er,0),s.point(er,-l),s.point(0,-l),s.point(-er,-l),s.point(-er,0),s.point(-er,l);else if(Ne(n[0]-i[0])>Pn){var p=n[0]0,l=Ne(i)>Pn;function p(T,N){return fn(T)*fn(N)>i}function b(T,N,B){var F=[1,0,0],L=Ou(ko(T),ko(N)),z=T1(L,L),U=L[0],J=z-U*U;if(!J)return!B&&T;var K=i*z/J,V=-i*U/J,ot=Ou(F,L),it=Oc(F,K);Iu(it,Oc(L,V));var dt=ot,Pt=T1(it,dt),Gt=T1(dt,dt),re=Pt*Pt-Gt*(T1(it,it)-1);if(!(re<0)){var xe=yi(re),qt=Oc(dt,(-Pt-xe)/Gt);if(Iu(qt,it),qt=k1(qt),!B)return qt;var te,ut=T[0],Ct=N[0],ce=T[1],ee=N[1];Ct0^qt[1]<(Ne(qt[0]-ut)er^(ut<=qt[0]&&qt[0]<=Ct)){var Ge=Oc(dt,(-Pt+xe)/Gt);return Iu(Ge,it),[qt,k1(Ge)]}}}function v(T,N){var B=s?n:er-n,F=0;return T<-B?F|=1:T>B&&(F|=2),N<-B?F|=4:N>B&&(F|=8),F}return Nm(p,function(T){var N,B,F,L,z;return{lineStart:function(){L=F=!1,z=1},point:function(U,J){var K,V=[U,J],ot=p(U,J),it=s?ot?0:v(U,J):ot?v(U+(U<0?er:-er),J):0;if(!N&&(L=F=ot)&&T.lineStart(),ot!==F&&(!(K=b(N,V))||N1(N,K)||N1(V,K))&&(V[2]=1),ot!==F)z=0,ot?(T.lineStart(),K=b(V,N),T.point(K[0],K[1])):(K=b(N,V),T.point(K[0],K[1],2),T.lineEnd()),N=K;else if(l&&N&&s^ot){var dt;it&B||!(dt=b(V,N,!0))||(z=0,s?(T.lineStart(),T.point(dt[0][0],dt[0][1]),T.point(dt[1][0],dt[1][1]),T.lineEnd()):(T.point(dt[1][0],dt[1][1]),T.lineEnd(),T.lineStart(),T.point(dt[0][0],dt[0][1],3)))}!ot||N&&N1(N,V)||T.point(V[0],V[1]),N=V,F=ot,B=it},lineEnd:function(){F&&T.lineEnd(),N=null},clean:function(){return z|(L&&F)<<1}}},function(T,N,B,F){Cm(F,n,o,B,T,N)},s?[0,-n]:[-er,n-er])}var xh=1e9,B1=-xh;function O1(n,i,o,s){function l(N,B){return n<=N&&N<=o&&i<=B&&B<=s}function p(N,B,F,L){var z=0,U=0;if(N==null||(z=b(N,F))!==(U=b(B,F))||T(N,B)<0^F>0)do L.point(z===0||z===3?n:o,z>1?s:i);while((z=(z+F+4)%4)!==U);else L.point(B[0],B[1])}function b(N,B){return Ne(N[0]-n)0?0:3:Ne(N[0]-o)0?2:1:Ne(N[1]-i)0?1:0:B>0?3:2}function v(N,B){return T(N.x,B.x)}function T(N,B){var F=b(N,1),L=b(B,1);return F!==L?F-L:F===0?B[1]-N[1]:F===1?N[0]-B[0]:F===2?N[1]-B[1]:B[0]-N[0]}return function(N){var B,F,L,z,U,J,K,V,ot,it,dt,Pt=N,Gt=Em(),re={point:xe,lineStart:function(){re.point=qt,F&&F.push(L=[]),it=!0,ot=!1,K=V=NaN},lineEnd:function(){B&&(qt(z,U),J&&ot&&Gt.rejoin(),B.push(Gt.result())),re.point=xe,ot&&Pt.lineEnd()},polygonStart:function(){Pt=Gt,B=[],F=[],dt=!0},polygonEnd:function(){var te=function(){for(var ce=0,ee=0,ue=F.length;ees&&(rr-Fe)*(s-Ge)>(Mn-Ge)*(n-Fe)&&++ce:Mn<=s&&(rr-Fe)*(s-Ge)<(Mn-Ge)*(n-Fe)&&--ce;return ce}(),ut=dt&&te,Ct=(B=pe(B)).length;(ut||Ct)&&(N.polygonStart(),ut&&(N.lineStart(),p(null,null,1,N),N.lineEnd()),Ct&&Sm(B,v,te,p,N),N.polygonEnd()),Pt=N,B=F=L=null}};function xe(te,ut){l(te,ut)&&Pt.point(te,ut)}function qt(te,ut){var Ct=l(te,ut);if(F&&L.push([te,ut]),it)z=te,U=ut,J=Ct,it=!1,Ct&&(Pt.lineStart(),Pt.point(te,ut));else if(Ct&&ot)Pt.point(te,ut);else{var ce=[K=Math.max(B1,Math.min(xh,K)),V=Math.max(B1,Math.min(xh,V))],ee=[te=Math.max(B1,Math.min(xh,te)),ut=Math.max(B1,Math.min(xh,ut))];(function(ue,Fe,Ge,vn,Wn,tr){var tn,rr=ue[0],Mn=ue[1],En=0,Zn=1,Xi=Fe[0]-rr,vi=Fe[1]-Mn;if(tn=Ge-rr,Xi||!(tn>0)){if(tn/=Xi,Xi<0){if(tn0){if(tn>Zn)return;tn>En&&(En=tn)}if(tn=Wn-rr,Xi||!(tn<0)){if(tn/=Xi,Xi<0){if(tn>Zn)return;tn>En&&(En=tn)}else if(Xi>0){if(tn0)){if(tn/=vi,vi<0){if(tn0){if(tn>Zn)return;tn>En&&(En=tn)}if(tn=tr-Mn,vi||!(tn<0)){if(tn/=vi,vi<0){if(tn>Zn)return;tn>En&&(En=tn)}else if(vi>0){if(tn0&&(ue[0]=rr+En*Xi,ue[1]=Mn+En*vi),Zn<1&&(Fe[0]=rr+Zn*Xi,Fe[1]=Mn+Zn*vi),!0}}}}})(ce,ee,n,i,o,s)?(ot||(Pt.lineStart(),Pt.point(ce[0],ce[1])),Pt.point(ee[0],ee[1]),Ct||Pt.lineEnd(),dt=!1):Ct&&(Pt.lineStart(),Pt.point(te,ut),dt=!1)}K=te,V=ut,ot=Ct}return re}}function B4(){var n,i,o,s=0,l=0,p=960,b=500;return o={stream:function(v){return n&&i===v?n:n=O1(s,l,p,b)(i=v)},extent:function(v){return arguments.length?(s=+v[0][0],l=+v[0][1],p=+v[1][0],b=+v[1][1],n=i=null,o):[[s,l],[p,b]]}}}var I1,R1,F1,Xp=Js(),qu={sphere:_r,point:_r,lineStart:function(){qu.point=I4,qu.lineEnd=O4},lineEnd:_r,polygonStart:_r,polygonEnd:_r};function O4(){qu.point=qu.lineEnd=_r}function I4(n,i){I1=n*=_n,R1=sn(i*=_n),F1=fn(i),qu.point=R4}function R4(n,i){n*=_n;var o=sn(i*=_n),s=fn(i),l=Ne(n-I1),p=fn(l),b=s*sn(l),v=F1*o-R1*s*p,T=R1*o+F1*s*p;Xp.add(Wi(yi(b*b+v*v),T)),I1=n,R1=o,F1=s}function Bm(n){return Xp.reset(),wo(n,qu),+Xp}var P1=[null,null],F4={type:"LineString",coordinates:P1};function j1(n,i){return P1[0]=n,P1[1]=i,Bm(F4)}var Om={Feature:function(n,i){return Y1(n.geometry,i)},FeatureCollection:function(n,i){for(var o=n.features,s=-1,l=o.length;++s0&&(l=j1(n[p],n[p-1]))>0&&o<=l&&s<=l&&(o+s-l)*(1-Math.pow((o-s)/l,2))Pn}).map(T)).concat(bt(Zo(p/z)*z,l,z).filter(function(it){return Ne(it%J)>Pn}).map(N))}return V.lines=function(){return ot().map(function(it){return{type:"LineString",coordinates:it}})},V.outline=function(){return{type:"Polygon",coordinates:[B(s).concat(F(b).slice(1),B(o).reverse().slice(1),F(v).reverse().slice(1))]}},V.extent=function(it){return arguments.length?V.extentMajor(it).extentMinor(it):V.extentMinor()},V.extentMajor=function(it){return arguments.length?(s=+it[0][0],o=+it[1][0],v=+it[0][1],b=+it[1][1],s>o&&(it=s,s=o,o=it),v>b&&(it=v,v=b,b=it),V.precision(K)):[[s,v],[o,b]]},V.extentMinor=function(it){return arguments.length?(i=+it[0][0],n=+it[1][0],p=+it[0][1],l=+it[1][1],i>n&&(it=i,i=n,n=it),p>l&&(it=p,p=l,l=it),V.precision(K)):[[i,p],[n,l]]},V.step=function(it){return arguments.length?V.stepMajor(it).stepMinor(it):V.stepMinor()},V.stepMajor=function(it){return arguments.length?(U=+it[0],J=+it[1],V):[U,J]},V.stepMinor=function(it){return arguments.length?(L=+it[0],z=+it[1],V):[L,z]},V.precision=function(it){return arguments.length?(K=+it,T=Ym(p,l,90),N=zm(i,n,K),B=Ym(v,b,90),F=zm(s,o,K),V):K},V.extentMajor([[-180,-89.999999],[180,89.999999]]).extentMinor([[-180,-80.000001],[180,80.000001]])}function j4(){return Um()()}function Y4(n,i){var o=n[0]*_n,s=n[1]*_n,l=i[0]*_n,p=i[1]*_n,b=fn(s),v=sn(s),T=fn(p),N=sn(p),B=b*fn(o),F=b*sn(o),L=T*fn(l),z=T*sn(l),U=2*pa(yi(_1(p-s)+b*T*_1(l-o))),J=sn(U),K=U?function(V){var ot=sn(V*=U)/J,it=sn(U-V)/J,dt=it*B+ot*L,Pt=it*F+ot*z,Gt=it*v+ot*N;return[Wi(Pt,dt)*Or,Wi(Gt,yi(dt*dt+Pt*Pt))*Or]}:function(){return[o*Or,s*Or]};return K.distance=U,K}function wh(n){return n}var qm,Hm,z1,U1,q1=Js(),Qp=Js(),ks={point:_r,lineStart:_r,lineEnd:_r,polygonStart:function(){ks.lineStart=H1,ks.lineEnd=Wm},polygonEnd:function(){ks.lineStart=ks.lineEnd=ks.point=_r,q1.add(Ne(Qp)),Qp.reset()},result:function(){var n=q1/2;return q1.reset(),n}};function H1(){ks.point=z4}function z4(n,i){ks.point=$m,qm=z1=n,Hm=U1=i}function $m(n,i){Qp.add(U1*n-z1*i),z1=n,U1=i}function Wm(){$m(qm,Hm)}const Vm=ks;var Ts=1/0,ic=Ts,Ko=-Ts,ac=Ko,kh={point:function(n,i){nKo&&(Ko=n),iac&&(ac=i)},lineStart:_r,lineEnd:_r,polygonStart:_r,polygonEnd:_r,result:function(){var n=[[Ts,ic],[Ko,ac]];return Ko=ac=-(ic=Ts=1/0),n}};const Fc=kh;var oc,Th,Ba,Eo,Ch=0,Kp=0,sc=0,Eh=0,Sh=0,Hu=0,Ah=0,$1=0,Mh=0,So={point:Jo,lineStart:W1,lineEnd:Cs,polygonStart:function(){So.lineStart=V1,So.lineEnd=Gm},polygonEnd:function(){So.point=Jo,So.lineStart=W1,So.lineEnd=Cs},result:function(){var n=Mh?[Ah/Mh,$1/Mh]:Hu?[Eh/Hu,Sh/Hu]:sc?[Ch/sc,Kp/sc]:[NaN,NaN];return Ch=Kp=sc=Eh=Sh=Hu=Ah=$1=Mh=0,n}};function Jo(n,i){Ch+=n,Kp+=i,++sc}function W1(){So.point=ts}function ts(n,i){So.point=Ao,Jo(Ba=n,Eo=i)}function Ao(n,i){var o=n-Ba,s=i-Eo,l=yi(o*o+s*s);Eh+=l*(Ba+n)/2,Sh+=l*(Eo+i)/2,Hu+=l,Jo(Ba=n,Eo=i)}function Cs(){So.point=Jo}function V1(){So.point=Jp}function Gm(){tg(oc,Th)}function Jp(n,i){So.point=tg,Jo(oc=Ba=n,Th=Eo=i)}function tg(n,i){var o=n-Ba,s=i-Eo,l=yi(o*o+s*s);Eh+=l*(Ba+n)/2,Sh+=l*(Eo+i)/2,Hu+=l,Ah+=(l=Eo*n-Ba*i)*(Ba+n),$1+=l*(Eo+i),Mh+=3*l,Jo(Ba=n,Eo=i)}const eg=So;function Xm(n){this._context=n}Xm.prototype={_radius:4.5,pointRadius:function(n){return this._radius=n,this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){this._line===0&&this._context.closePath(),this._point=NaN},point:function(n,i){switch(this._point){case 0:this._context.moveTo(n,i),this._point=1;break;case 1:this._context.lineTo(n,i);break;default:this._context.moveTo(n+this._radius,i),this._context.arc(n,i,this._radius,0,Nr)}},result:_r};var ng,Zm,Qm,Pc,$u,Nh=Js(),Wu={point:_r,lineStart:function(){Wu.point=U4},lineEnd:function(){ng&&rg(Zm,Qm),Wu.point=_r},polygonStart:function(){ng=!0},polygonEnd:function(){ng=null},result:function(){var n=+Nh;return Nh.reset(),n}};function U4(n,i){Wu.point=rg,Zm=Pc=n,Qm=$u=i}function rg(n,i){Pc-=n,$u-=i,Nh.add(yi(Pc*Pc+$u*$u)),Pc=n,$u=i}const Km=Wu;function Jm(){this._string=[]}function tv(n){return"m0,"+n+"a"+n+","+n+" 0 1,1 0,"+-2*n+"a"+n+","+n+" 0 1,1 0,"+2*n+"z"}function q4(n,i){var o,s,l=4.5;function p(b){return b&&(typeof l=="function"&&s.pointRadius(+l.apply(this,arguments)),wo(b,o(s))),s.result()}return p.area=function(b){return wo(b,o(Vm)),Vm.result()},p.measure=function(b){return wo(b,o(Km)),Km.result()},p.bounds=function(b){return wo(b,o(Fc)),Fc.result()},p.centroid=function(b){return wo(b,o(eg)),eg.result()},p.projection=function(b){return arguments.length?(o=b==null?(n=null,wh):(n=b).stream,p):n},p.context=function(b){return arguments.length?(s=b==null?(i=null,new Jm):new Xm(i=b),typeof l!="function"&&s.pointRadius(l),p):i},p.pointRadius=function(b){return arguments.length?(l=typeof b=="function"?b:(s.pointRadius(+b),+b),p):l},p.projection(n).context(i)}function H4(n){return{stream:Dh(n)}}function Dh(n){return function(i){var o=new ig;for(var s in n)o[s]=n[s];return o.stream=i,o}}function ig(){}function ag(n,i,o){var s=n.clipExtent&&n.clipExtent();return n.scale(150).translate([0,0]),s!=null&&n.clipExtent(null),wo(o,n.stream(Fc)),i(Fc.result()),s!=null&&n.clipExtent(s),n}function G1(n,i,o){return ag(n,function(s){var l=i[1][0]-i[0][0],p=i[1][1]-i[0][1],b=Math.min(l/(s[1][0]-s[0][0]),p/(s[1][1]-s[0][1])),v=+i[0][0]+(l-b*(s[1][0]+s[0][0]))/2,T=+i[0][1]+(p-b*(s[1][1]+s[0][1]))/2;n.scale(150*b).translate([v,T])},o)}function og(n,i,o){return G1(n,[[0,0],i],o)}function sg(n,i,o){return ag(n,function(s){var l=+i,p=l/(s[1][0]-s[0][0]),b=(l-p*(s[1][0]+s[0][0]))/2,v=-p*s[0][1];n.scale(150*p).translate([b,v])},o)}function cg(n,i,o){return ag(n,function(s){var l=+i,p=l/(s[1][1]-s[0][1]),b=-p*s[0][0],v=(l-p*(s[1][1]+s[0][1]))/2;n.scale(150*p).translate([b,v])},o)}Jm.prototype={_radius:4.5,_circle:tv(4.5),pointRadius:function(n){return(n=+n)!==this._radius&&(this._radius=n,this._circle=null),this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){this._line===0&&this._string.push("Z"),this._point=NaN},point:function(n,i){switch(this._point){case 0:this._string.push("M",n,",",i),this._point=1;break;case 1:this._string.push("L",n,",",i);break;default:this._circle==null&&(this._circle=tv(this._radius)),this._string.push("M",n,",",i,this._circle)}},result:function(){if(this._string.length){var n=this._string.join("");return this._string=[],n}return null}},ig.prototype={constructor:ig,point:function(n,i){this.stream.point(n,i)},sphere:function(){this.stream.sphere()},lineStart:function(){this.stream.lineStart()},lineEnd:function(){this.stream.lineEnd()},polygonStart:function(){this.stream.polygonStart()},polygonEnd:function(){this.stream.polygonEnd()}};var $4=fn(30*_n);function ev(n,i){return+i?function(o,s){function l(p,b,v,T,N,B,F,L,z,U,J,K,V,ot){var it=F-p,dt=L-b,Pt=it*it+dt*dt;if(Pt>4*s&&V--){var Gt=T+U,re=N+J,xe=B+K,qt=yi(Gt*Gt+re*re+xe*xe),te=pa(xe/=qt),ut=Ne(Ne(xe)-1)s||Ne((it*ue+dt*Fe)/Pt-.5)>.3||T*U+N*J+B*K<$4)&&(l(p,b,v,T,N,B,ce,ee,ut,Gt/=qt,re/=qt,xe,V,ot),ot.point(ce,ee),l(ce,ee,ut,Gt,re,xe,F,L,z,U,J,K,V,ot))}}return function(p){var b,v,T,N,B,F,L,z,U,J,K,V,ot={point:it,lineStart:dt,lineEnd:Gt,polygonStart:function(){p.polygonStart(),ot.lineStart=re},polygonEnd:function(){p.polygonEnd(),ot.lineStart=dt}};function it(te,ut){te=o(te,ut),p.point(te[0],te[1])}function dt(){z=NaN,ot.point=Pt,p.lineStart()}function Pt(te,ut){var Ct=ko([te,ut]),ce=o(te,ut);l(z,U,L,J,K,V,z=ce[0],U=ce[1],L=te,J=Ct[0],K=Ct[1],V=Ct[2],16,p),p.point(z,U)}function Gt(){ot.point=it,p.lineEnd()}function re(){dt(),ot.point=xe,ot.lineEnd=qt}function xe(te,ut){Pt(b=te,ut),v=z,T=U,N=J,B=K,F=V,ot.point=Pt}function qt(){l(z,U,L,J,K,V,v,T,b,N,B,F,16,p),ot.lineEnd=Gt,Gt()}return ot}}(n,i):function(o){return Dh({point:function(s,l){s=o(s,l),this.stream.point(s[0],s[1])}})}(n)}var W4=Dh({point:function(n,i){this.stream.point(n*_n,i*_n)}});function V4(n,i,o,s,l){function p(b,v){return[i+n*(b*=s),o-n*(v*=l)]}return p.invert=function(b,v){return[(b-i)/n*s,(o-v)/n*l]},p}function nv(n,i,o,s,l,p){var b=fn(p),v=sn(p),T=b*n,N=v*n,B=b/n,F=v/n,L=(v*o-b*i)/n,z=(v*i+b*o)/n;function U(J,K){return[T*(J*=s)-N*(K*=l)+i,o-N*J-T*K]}return U.invert=function(J,K){return[s*(B*J-F*K+L),l*(z-F*J-B*K)]},U}function Mo(n){return ug(function(){return n})()}function ug(n){var i,o,s,l,p,b,v,T,N,B,F=150,L=480,z=250,U=0,J=0,K=0,V=0,ot=0,it=0,dt=1,Pt=1,Gt=null,re=Gp,xe=null,qt=wh,te=.5;function ut(ue){return T(ue[0]*_n,ue[1]*_n)}function Ct(ue){return(ue=T.invert(ue[0],ue[1]))&&[ue[0]*Or,ue[1]*Or]}function ce(){var ue=nv(F,0,0,dt,Pt,it).apply(null,i(U,J)),Fe=(it?nv:V4)(F,L-ue[0],z-ue[1],dt,Pt,it);return o=M1(K,V,ot),v=Hp(i,Fe),T=Hp(o,v),b=ev(v,te),ee()}function ee(){return N=B=null,ut}return ut.stream=function(ue){return N&&B===ue?N:N=W4(function(Fe){return Dh({point:function(Ge,vn){var Wn=Fe(Ge,vn);return this.stream.point(Wn[0],Wn[1])}})}(o)(re(b(qt(B=ue)))))},ut.preclip=function(ue){return arguments.length?(re=ue,Gt=void 0,ee()):re},ut.postclip=function(ue){return arguments.length?(qt=ue,xe=s=l=p=null,ee()):qt},ut.clipAngle=function(ue){return arguments.length?(re=+ue?Lm(Gt=ue*_n):(Gt=null,Gp),ee()):Gt*Or},ut.clipExtent=function(ue){return arguments.length?(qt=ue==null?(xe=s=l=p=null,wh):O1(xe=+ue[0][0],s=+ue[0][1],l=+ue[1][0],p=+ue[1][1]),ee()):xe==null?null:[[xe,s],[l,p]]},ut.scale=function(ue){return arguments.length?(F=+ue,ce()):F},ut.translate=function(ue){return arguments.length?(L=+ue[0],z=+ue[1],ce()):[L,z]},ut.center=function(ue){return arguments.length?(U=ue[0]%360*_n,J=ue[1]%360*_n,ce()):[U*Or,J*Or]},ut.rotate=function(ue){return arguments.length?(K=ue[0]%360*_n,V=ue[1]%360*_n,ot=ue.length>2?ue[2]%360*_n:0,ce()):[K*Or,V*Or,ot*Or]},ut.angle=function(ue){return arguments.length?(it=ue%360*_n,ce()):it*Or},ut.reflectX=function(ue){return arguments.length?(dt=ue?-1:1,ce()):dt<0},ut.reflectY=function(ue){return arguments.length?(Pt=ue?-1:1,ce()):Pt<0},ut.precision=function(ue){return arguments.length?(b=ev(v,te=ue*ue),ee()):yi(te)},ut.fitExtent=function(ue,Fe){return G1(ut,ue,Fe)},ut.fitSize=function(ue,Fe){return og(ut,ue,Fe)},ut.fitWidth=function(ue,Fe){return sg(ut,ue,Fe)},ut.fitHeight=function(ue,Fe){return cg(ut,ue,Fe)},function(){return i=n.apply(this,arguments),ut.invert=i.invert&&Ct,ce()}}function lg(n){var i=0,o=er/3,s=ug(n),l=s(i,o);return l.parallels=function(p){return arguments.length?s(i=p[0]*_n,o=p[1]*_n):[i*Or,o*Or]},l}function rv(n,i){var o=sn(n),s=(o+sn(i))/2;if(Ne(s)=.12&&K<.234&&J>=-.425&&J<-.214?v:K>=.166&&K<.234&&J>=-.214&&J<-.115?T:b).invert(L)},B.stream=function(L){return n&&i===L?n:(z=[b.stream(i=L),v.stream(L),T.stream(L)],U=z.length,n={point:function(J,K){for(var V=-1;++V0?v<-si+Pn&&(v=-si+Pn):v>si-Pn&&(v=si-Pn);var T=l/b1(Bh(v),s);return[T*sn(s*b),l-T*fn(s*b)]}return p.invert=function(b,v){var T=l-v,N=br(s)*yi(b*b+T*T),B=Wi(b,Ne(T))*br(T);return T*s<0&&(B-=er*br(b)*br(T)),[B/s,2*tc(b1(l/N,1/s))-si]},p}function Z4(){return lg(yg).scale(109.5).parallels([30,30])}function Oh(n,i){return[n,i]}function Q4(){return Mo(Oh).scale(152.63)}function av(n,i){var o=fn(n),s=n===i?sn(n):(o-fn(i))/(i-n),l=o/s+n;if(Ne(s)2?s[2]+90:90]):[(s=o())[0],s[1],s[2]-90]},o([0,0,90]).scale(159.155)}function r5(n,i){return n.parent===i.parent?1:2}function i5(n,i){return n+i.x}function Vu(n,i){return Math.max(n,i.y)}function a5(){var n=r5,i=1,o=1,s=!1;function l(p){var b,v=0;p.eachAfter(function(L){var z=L.children;z?(L.x=function(U){return U.reduce(i5,0)/U.length}(z),L.y=function(U){return 1+U.reduce(Vu,0)}(z)):(L.x=b?v+=n(L,b):0,L.y=0,b=L)});var T=function(L){for(var z;z=L.children;)L=z[0];return L}(p),N=function(L){for(var z;z=L.children;)L=z[z.length-1];return L}(p),B=T.x-n(T,N)/2,F=N.x+n(N,T)/2;return p.eachAfter(s?function(L){L.x=(L.x-p.x)*i,L.y=(p.y-L.y)*o}:function(L){L.x=(L.x-B)/(F-B)*i,L.y=(1-(p.y?L.y/p.y:1))*o})}return l.separation=function(p){return arguments.length?(n=p,l):n},l.size=function(p){return arguments.length?(s=!1,i=+p[0],o=+p[1],l):s?null:[i,o]},l.nodeSize=function(p){return arguments.length?(s=!0,i=+p[0],o=+p[1],l):s?[i,o]:null},l}function o5(n){var i=0,o=n.children,s=o&&o.length;if(s)for(;--s>=0;)i+=o[s].value;else i=1;n.value=i}function xg(n,i){var o,s,l,p,b,v=new jc(n),T=+n.value&&(v.value=n.value),N=[v];for(i==null&&(i=cv);o=N.pop();)if(T&&(o.value=+o.data.value),(l=i(o.data))&&(b=l.length))for(o.children=new Array(b),p=b-1;p>=0;--p)N.push(s=o.children[p]=new jc(l[p])),s.parent=o,s.depth=o.depth+1;return v.eachBefore(kg)}function cv(n){return n.children}function wg(n){n.data=n.data.data}function kg(n){var i=0;do n.height=i;while((n=n.parent)&&n.height<++i)}function jc(n){this.data=n,this.depth=this.height=0,this.parent=null}mg.invert=function(n,i){for(var o,s=i,l=s*s,p=l*l*l,b=0;b<12&&(p=(l=(s-=o=(s*(cc+Ih*l+p*(Rh+Fh*l))-i)/(cc+3*Ih*l+p*(7*Rh+9*Fh*l)))*s)*l*l,!(Ne(o)Pn&&--l>0);return[n/(.8707+(p=s*s)*(p*(p*p*p*(.003971-.001529*p)-.013791)-.131979)),s]},bg.invert=Xa(pa),_g.invert=Xa(function(n){return 2*tc(n)}),K1.invert=function(n,i){return[-i,2*tc(dm(n))-si]},jc.prototype=xg.prototype={constructor:jc,count:function(){return this.eachAfter(o5)},each:function(n){var i,o,s,l,p=this,b=[p];do for(i=b.reverse(),b=[];p=i.pop();)if(n(p),o=p.children)for(s=0,l=o.length;s=0;--o)l.push(i[o]);return this},sum:function(n){return this.eachAfter(function(i){for(var o=+n(i.data)||0,s=i.children,l=s&&s.length;--l>=0;)o+=s[l].value;i.value=o})},sort:function(n){return this.eachBefore(function(i){i.children&&i.children.sort(n)})},path:function(n){for(var i=this,o=function(p,b){if(p===b)return p;var v=p.ancestors(),T=b.ancestors(),N=null;for(p=v.pop(),b=T.pop();p===b;)N=p,p=v.pop(),b=T.pop();return N}(i,n),s=[i];i!==o;)i=i.parent,s.push(i);for(var l=s.length;n!==o;)s.splice(l,0,n),n=n.parent;return s},ancestors:function(){for(var n=this,i=[n];n=n.parent;)i.push(n);return i},descendants:function(){var n=[];return this.each(function(i){n.push(i)}),n},leaves:function(){var n=[];return this.eachBefore(function(i){i.children||n.push(i)}),n},links:function(){var n=this,i=[];return n.each(function(o){o!==n&&i.push({source:o.parent,target:o})}),i},copy:function(){return xg(this).eachBefore(wg)}};var uv=Array.prototype.slice;function lv(n){for(var i,o,s=0,l=(n=function(b){for(var v,T,N=b.length;N;)T=Math.random()*N--|0,v=b[N],b[N]=b[T],b[T]=v;return b}(uv.call(n))).length,p=[];s0&&o*o>s*s+l*l}function Tg(n,i){for(var o=0;o(b*=b)?(s=(N+b-l)/(2*N),p=Math.sqrt(Math.max(0,b/N-s*s)),o.x=n.x-s*v-p*T,o.y=n.y-s*T+p*v):(s=(N+l-b)/(2*N),p=Math.sqrt(Math.max(0,l/N-s*s)),o.x=i.x+s*v-p*T,o.y=i.y+s*T+p*v)):(o.x=i.x+o.r,o.y=i.y)}function pv(n,i){var o=n.r+i.r-1e-6,s=i.x-n.x,l=i.y-n.y;return o>0&&o*o>s*s+l*l}function gv(n){var i=n._,o=n.next._,s=i.r+o.r,l=(i.x*o.r+o.x*i.r)/s,p=(i.y*o.r+o.y*i.r)/s;return l*l+p*p}function t0(n){this._=n,this.next=null,this.previous=null}function yv(n){if(!(l=n.length))return 0;var i,o,s,l,p,b,v,T,N,B,F;if((i=n[0]).x=0,i.y=0,!(l>1))return i.r;if(o=n[1],i.x=-o.r,o.x=i.r,o.y=0,!(l>2))return i.r+o.r;dv(o,i,s=n[2]),i=new t0(i),o=new t0(o),s=new t0(s),i.next=s.previous=o,o.next=i.previous=s,s.next=o.previous=i;t:for(v=3;v0)throw new Error("cycle");return b}return o.id=function(s){return arguments.length?(n=e0(s),o):n},o.parentId=function(s){return arguments.length?(i=e0(s),o):i},o}function d5(n,i){return n.parent===i.parent?1:2}function Cg(n){var i=n.children;return i?i[0]:n.t}function i0(n){var i=n.children;return i?i[i.length-1]:n.t}function p5(n,i,o){var s=o/(i.i-n.i);i.c-=s,i.s+=o,n.c+=s,i.z+=o,i.m+=o}function a0(n,i,o){return n.a.parent===i.parent?n.a:o}function uc(n,i){this._=n,this.parent=null,this.children=null,this.A=null,this.a=this,this.z=0,this.m=0,this.c=0,this.s=0,this.t=null,this.i=i}function Xu(){var n=d5,i=1,o=1,s=null;function l(T){var N=function(V){for(var ot,it,dt,Pt,Gt,re=new uc(V,0),xe=[re];ot=xe.pop();)if(dt=ot._.children)for(ot.children=new Array(Gt=dt.length),Pt=Gt-1;Pt>=0;--Pt)xe.push(it=ot.children[Pt]=new uc(dt[Pt],Pt)),it.parent=ot;return(re.parent=new uc(null,0)).children=[re],re}(T);if(N.eachAfter(p),N.parent.m=-N.z,N.eachBefore(b),s)T.eachBefore(v);else{var B=T,F=T,L=T;T.eachBefore(function(V){V.xF.x&&(F=V),V.depth>L.depth&&(L=V)});var z=B===F?1:n(B,F)/2,U=z-B.x,J=i/(F.x+z+U),K=o/(L.depth||1);T.eachBefore(function(V){V.x=(V.x+U)*J,V.y=V.depth*K})}return T}function p(T){var N=T.children,B=T.parent.children,F=T.i?B[T.i-1]:null;if(N){(function(z){for(var U,J=0,K=0,V=z.children,ot=V.length;--ot>=0;)(U=V[ot]).z+=J,U.m+=J,J+=U.s+(K+=U.c)})(T);var L=(N[0].z+N[N.length-1].z)/2;F?(T.z=F.z+n(T._,F._),T.m=T.z-L):T.z=L}else F&&(T.z=F.z+n(T._,F._));T.parent.A=function(z,U,J){if(U){for(var K,V=z,ot=z,it=U,dt=V.parent.children[0],Pt=V.m,Gt=ot.m,re=it.m,xe=dt.m;it=i0(it),V=Cg(V),it&&V;)dt=Cg(dt),(ot=i0(ot)).a=z,(K=it.z+re-V.z-Pt+n(it._,V._))>0&&(p5(a0(it,z,J),z,K),Pt+=K,Gt+=K),re+=it.m,Pt+=V.m,xe+=dt.m,Gt+=ot.m;it&&!i0(ot)&&(ot.t=it,ot.m+=re-Gt),V&&!Cg(dt)&&(dt.t=V,dt.m+=Pt-xe,J=z)}return J}(T,F,T.parent.A||B[0])}function b(T){T._.x=T.z+T.parent.m,T.m+=T.parent.m}function v(T){T.x*=i,T.y=T.depth*o}return l.separation=function(T){return arguments.length?(n=T,l):n},l.size=function(T){return arguments.length?(s=!1,i=+T[0],o=+T[1],l):s?null:[i,o]},l.nodeSize=function(T){return arguments.length?(s=!0,i=+T[0],o=+T[1],l):s?[i,o]:null},l}function lc(n,i,o,s,l){for(var p,b=n.children,v=-1,T=b.length,N=n.value&&(l-o)/n.value;++vL&&(L=v),K=B*B*J,(z=Math.max(L/K,K/F))>U){B-=v;break}U=z}V.push(b={value:B,dice:T1?s:1)},o}(Zu);function o0(){var n=hc,i=!1,o=1,s=1,l=[0],p=Yc,b=Yc,v=Yc,T=Yc,N=Yc;function B(L){return L.x0=L.y0=0,L.x1=o,L.y1=s,L.eachBefore(F),l=[0],i&&L.eachBefore(_v),L}function F(L){var z=l[L.depth],U=L.x0+z,J=L.y0+z,K=L.x1-z,V=L.y1-z;K=L-1){var ot=v[F];return ot.x0=U,ot.y0=J,ot.x1=K,void(ot.y1=V)}for(var it=N[F],dt=z/2+it,Pt=F+1,Gt=L-1;Pt>>1;N[re]V-J){var te=(U*qt+K*xe)/z;B(F,Pt,xe,U,J,te,V),B(Pt,L,qt,te,J,K,V)}else{var ut=(J*qt+V*xe)/z;B(F,Pt,xe,U,J,K,ut),B(Pt,L,qt,U,ut,K,V)}})(0,T,n.value,i,o,s,l)}function kv(n,i,o,s,l){(1&n.depth?lc:Yh)(n,i,o,s,l)}const Eg=function n(i){function o(s,l,p,b,v){if((T=s._squarify)&&T.ratio===i)for(var T,N,B,F,L,z=-1,U=T.length,J=s.value;++z1?s:1)},o}(Zu);function g5(n){var i=n.length;return function(o){return n[Math.max(0,Math.min(i-1,Math.floor(o*i)))]}}function s0(n,i){var o=Aa(+n,+i);return function(s){var l=o(s);return l-360*Math.floor(l/360)}}function Sg(n,i){return n=+n,i=+i,function(o){return Math.round(n*(1-o)+i*o)}}var Qu=Math.SQRT2;function Tv(n){return((n=Math.exp(n))+1/n)/2}function c0(n,i){var o,s,l=n[0],p=n[1],b=n[2],v=i[0],T=i[1],N=i[2],B=v-l,F=T-p,L=B*B+F*F;if(L<1e-12)s=Math.log(N/b)/Qu,o=function(ot){return[l+ot*B,p+ot*F,b*Math.exp(Qu*ot*s)]};else{var z=Math.sqrt(L),U=(N*N-b*b+4*L)/(2*b*2*z),J=(N*N-b*b-4*L)/(2*N*2*z),K=Math.log(Math.sqrt(U*U+1)-U),V=Math.log(Math.sqrt(J*J+1)-J);s=(V-K)/Qu,o=function(ot){var it,dt=ot*s,Pt=Tv(K),Gt=b/(2*z)*(Pt*(it=Qu*dt+K,((it=Math.exp(2*it))-1)/(it+1))-function(re){return((re=Math.exp(re))-1/re)/2}(K));return[l+Gt*B,p+Gt*F,b*Pt/Tv(Qu*dt+K)]}}return o.duration=1e3*s,o}function Ag(n){return function(i,o){var s=n((i=pu(i)).h,(o=pu(o)).h),l=gi(i.s,o.s),p=gi(i.l,o.l),b=gi(i.opacity,o.opacity);return function(v){return i.h=s(v),i.s=l(v),i.l=p(v),i.opacity=b(v),i+""}}}const y5=Ag(Aa);var m5=Ag(gi);function u0(n,i){var o=gi((n=Jl(n)).l,(i=Jl(i)).l),s=gi(n.a,i.a),l=gi(n.b,i.b),p=gi(n.opacity,i.opacity);return function(b){return n.l=o(b),n.a=s(b),n.b=l(b),n.opacity=p(b),n+""}}function l0(n){return function(i,o){var s=n((i=Zs(i)).h,(o=Zs(o)).h),l=gi(i.c,o.c),p=gi(i.l,o.l),b=gi(i.opacity,o.opacity);return function(v){return i.h=s(v),i.c=l(v),i.l=p(v),i.opacity=b(v),i+""}}}const es=l0(Aa);var Do=l0(gi);function Ss(n){return function i(o){function s(l,p){var b=n((l=ha(l)).h,(p=ha(p)).h),v=gi(l.s,p.s),T=gi(l.l,p.l),N=gi(l.opacity,p.opacity);return function(B){return l.h=b(B),l.s=v(B),l.l=T(Math.pow(B,o)),l.opacity=N(B),l+""}}return o=+o,s.gamma=i,s}(1)}const h0=Ss(Aa);var Hh=Ss(gi);function Mg(n,i){for(var o=0,s=i.length-1,l=i[0],p=new Array(s<0?0:s);o1&&b5(n[o[s-2]],n[o[s-1]],n[l])<=0;)--s;o[s++]=l}return o.slice(0,s)}function Ng(n){if((o=n.length)<3)return null;var i,o,s=new Array(o),l=new Array(o);for(i=0;i=0;--i)N.push(n[s[p[i]][2]]);for(i=+v;iv!=N>v&&b<(T-o)*(v-s)/(N-s)+o&&(B=!B),T=o,N=s;return B}function Av(n){for(var i,o,s=-1,l=n.length,p=n[l-1],b=p[0],v=p[1],T=0;++s1);return s+l*v*Math.sqrt(-2*Math.log(b)/b)}}return o.source=n,o}(ns),Ku=function n(i){function o(){var s=$h.source(i).apply(this,arguments);return function(){return Math.exp(s())}}return o.source=n,o}(ns),Ju=function n(i){function o(s){return function(){for(var l=0,p=0;ps&&(i=o,o=s,s=i),function(l){return Math.max(o,Math.min(s,l))}}function Nv(n,i,o){var s=n[0],l=n[1],p=i[0],b=i[1];return l2?Dv:Nv,l=p=null,F}function F(L){return isNaN(L=+L)?o:(l||(l=s(b.map(n),v,T)))(n(N(L)))}return F.invert=function(L){return N(i((p||(p=s(v,b.map(n),ca)))(L)))},F.domain=function(L){return arguments.length?(b=d0.call(L,y0),N===Vi||(N=Oa(b)),B()):b.slice()},F.range=function(L){return arguments.length?(v=zc.call(L),B()):v.slice()},F.rangeRound=function(L){return v=zc.call(L),T=Sg,B()},F.clamp=function(L){return arguments.length?(N=L?Oa(b):Vi,F):N!==Vi},F.interpolate=function(L){return arguments.length?(T=L,B()):T},F.unknown=function(L){return arguments.length?(o=L,F):o},function(L,z){return n=L,i=z,B()}}function Og(n,i){return Xh()(n,i)}function Bo(n,i,o,s){var l,p=lt(n,i,o);switch((s=uh(s==null?",f":s)).type){case"s":var b=Math.max(Math.abs(n),Math.abs(i));return s.precision!=null||isNaN(l=lm(p,b))||(s.precision=l),Dp(s,b);case"":case"e":case"g":case"p":case"r":s.precision!=null||isNaN(l=hm(p,Math.max(Math.abs(n),Math.abs(i))))||(s.precision=l-(s.type==="e"));break;case"f":case"%":s.precision!=null||isNaN(l=Lp(p))||(s.precision=l-2*(s.type==="%"))}return y1(s)}function Ms(n){var i=n.domain;return n.ticks=function(o){var s=i();return Lt(s[0],s[s.length-1],o==null?10:o)},n.tickFormat=function(o,s){var l=i();return Bo(l[0],l[l.length-1],o==null?10:o,s)},n.nice=function(o){o==null&&(o=10);var s,l=i(),p=0,b=l.length-1,v=l[p],T=l[b];return T0?s=tt(v=Math.floor(v/s)*s,T=Math.ceil(T/s)*s,o):s<0&&(s=tt(v=Math.ceil(v*s)/s,T=Math.floor(T*s)/s,o)),s>0?(l[p]=Math.floor(v/s)*s,l[b]=Math.ceil(T/s)*s,i(l)):s<0&&(l[p]=Math.ceil(v*s)/s,l[b]=Math.floor(T*s)/s,i(l)),n},n}function Ig(){var n=Og(Vi,Vi);return n.copy=function(){return Uc(n,Ig())},Lo.apply(n,arguments),Ms(n)}function Rg(n){var i;function o(s){return isNaN(s=+s)?i:s}return o.invert=o,o.domain=o.range=function(s){return arguments.length?(n=d0.call(s,y0),o):n.slice()},o.unknown=function(s){return arguments.length?(i=s,o):i},o.copy=function(){return Rg(n).unknown(i)},n=arguments.length?d0.call(n,y0):[0,1],Ms(o)}function Fg(n,i){var o,s=0,l=(n=n.slice()).length-1,p=n[s],b=n[l];return b0){for(;JF)break;ot.push(U)}}else for(;J=1;--z)if(!((U=L*z)F)break;ot.push(U)}}else ot=Lt(J,K,Math.min(K-J,V)).map(o);return T?ot.reverse():ot},s.tickFormat=function(v,T){if(T==null&&(T=p===10?".0e":","),typeof T!="function"&&(T=y1(T)),v===1/0)return T;v==null&&(v=10);var N=Math.max(1,p*v/s.ticks().length);return function(B){var F=B/o(Math.round(i(B)));return F*p0?s[v-1]:i[0],v=s?[l[s-1],o]:[l[N-1],l[N]]},b.unknown=function(T){return arguments.length&&(n=T),b},b.thresholds=function(){return l.slice()},b.copy=function(){return Yv().domain([i,o]).range(p).unknown(n)},Lo.apply(Ms(b),arguments)}function zv(){var n,i=[.5],o=[0,1],s=1;function l(p){return p<=p?o[A(i,p,0,s)]:n}return l.domain=function(p){return arguments.length?(i=zc.call(p),s=Math.min(i.length,o.length-1),l):i.slice()},l.range=function(p){return arguments.length?(o=zc.call(p),s=Math.min(i.length,o.length-1),l):o.slice()},l.invertExtent=function(p){var b=o.indexOf(p);return[i[b-1],i[b]]},l.unknown=function(p){return arguments.length?(n=p,l):n},l.copy=function(){return zv().domain(i).range(o).unknown(n)},Lo.apply(l,arguments)}var b0=new Date,Ug=new Date;function Ai(n,i,o,s){function l(p){return n(p=arguments.length===0?new Date:new Date(+p)),p}return l.floor=function(p){return n(p=new Date(+p)),p},l.ceil=function(p){return n(p=new Date(p-1)),i(p,1),n(p),p},l.round=function(p){var b=l(p),v=l.ceil(p);return p-b0))return N;do N.push(T=new Date(+p)),i(p,v),n(p);while(T=b)for(;n(b),!p(b);)b.setTime(b-1)},function(b,v){if(b>=b)if(v<0)for(;++v<=0;)for(;i(b,-1),!p(b););else for(;--v>=0;)for(;i(b,1),!p(b););})},o&&(l.count=function(p,b){return b0.setTime(+p),Ug.setTime(+b),n(b0),n(Ug),Math.floor(o(b0,Ug))},l.every=function(p){return p=Math.floor(p),isFinite(p)&&p>0?p>1?l.filter(s?function(b){return s(b)%p==0}:function(b){return l.count(0,b)%p==0}):l:null}),l}var qg=Ai(function(n){n.setMonth(0,1),n.setHours(0,0,0,0)},function(n,i){n.setFullYear(n.getFullYear()+i)},function(n,i){return i.getFullYear()-n.getFullYear()},function(n){return n.getFullYear()});qg.every=function(n){return isFinite(n=Math.floor(n))&&n>0?Ai(function(i){i.setFullYear(Math.floor(i.getFullYear()/n)*n),i.setMonth(0,1),i.setHours(0,0,0,0)},function(i,o){i.setFullYear(i.getFullYear()+o*n)}):null};const qc=qg;var S5=qg.range,is=Ai(function(n){n.setDate(1),n.setHours(0,0,0,0)},function(n,i){n.setMonth(n.getMonth()+i)},function(n,i){return i.getMonth()-n.getMonth()+12*(i.getFullYear()-n.getFullYear())},function(n){return n.getMonth()});const Hg=is;var Ns=is.range,_0=1e3,Hc=6e4,Zh=36e5,$g=864e5,Wg=6048e5;function $c(n){return Ai(function(i){i.setDate(i.getDate()-(i.getDay()+7-n)%7),i.setHours(0,0,0,0)},function(i,o){i.setDate(i.getDate()+7*o)},function(i,o){return(o-i-(o.getTimezoneOffset()-i.getTimezoneOffset())*Hc)/Wg})}var Wc=$c(0),tl=$c(1),x0=$c(2),Uv=$c(3),Ds=$c(4),el=$c(5),Ls=$c(6),Vg=Wc.range,w0=tl.range,Gg=x0.range,A5=Uv.range,k0=Ds.range,nl=el.range,qv=Ls.range,Za=Ai(function(n){n.setHours(0,0,0,0)},function(n,i){n.setDate(n.getDate()+i)},function(n,i){return(i-n-(i.getTimezoneOffset()-n.getTimezoneOffset())*Hc)/$g},function(n){return n.getDate()-1});const ei=Za;var rl=Za.range,T0=Ai(function(n){n.setTime(n-n.getMilliseconds()-n.getSeconds()*_0-n.getMinutes()*Hc)},function(n,i){n.setTime(+n+i*Zh)},function(n,i){return(i-n)/Zh},function(n){return n.getHours()});const Hv=T0;var Oo=T0.range,fc=Ai(function(n){n.setTime(n-n.getMilliseconds()-n.getSeconds()*_0)},function(n,i){n.setTime(+n+i*Hc)},function(n,i){return(i-n)/Hc},function(n){return n.getMinutes()});const Qh=fc;var C0=fc.range,E0=Ai(function(n){n.setTime(n-n.getMilliseconds())},function(n,i){n.setTime(+n+i*_0)},function(n,i){return(i-n)/_0},function(n){return n.getUTCSeconds()});const il=E0;var $v=E0.range,S0=Ai(function(){},function(n,i){n.setTime(+n+i)},function(n,i){return i-n});S0.every=function(n){return n=Math.floor(n),isFinite(n)&&n>0?n>1?Ai(function(i){i.setTime(Math.floor(i/n)*n)},function(i,o){i.setTime(+i+o*n)},function(i,o){return(o-i)/n}):S0:null};const al=S0;var Wv=S0.range;function Vc(n){return Ai(function(i){i.setUTCDate(i.getUTCDate()-(i.getUTCDay()+7-n)%7),i.setUTCHours(0,0,0,0)},function(i,o){i.setUTCDate(i.getUTCDate()+7*o)},function(i,o){return(o-i)/Wg})}var Kh=Vc(0),dc=Vc(1),Xg=Vc(2),Vv=Vc(3),pc=Vc(4),Zg=Vc(5),Gc=Vc(6),Gv=Kh.range,Qg=dc.range,Xv=Xg.range,Zv=Vv.range,Qv=pc.range,Bs=Zg.range,A0=Gc.range,Kv=Ai(function(n){n.setUTCHours(0,0,0,0)},function(n,i){n.setUTCDate(n.getUTCDate()+i)},function(n,i){return(i-n)/$g},function(n){return n.getUTCDate()-1});const Jh=Kv;var Gi=Kv.range,jn=Ai(function(n){n.setUTCMonth(0,1),n.setUTCHours(0,0,0,0)},function(n,i){n.setUTCFullYear(n.getUTCFullYear()+i)},function(n,i){return i.getUTCFullYear()-n.getUTCFullYear()},function(n){return n.getUTCFullYear()});jn.every=function(n){return isFinite(n=Math.floor(n))&&n>0?Ai(function(i){i.setUTCFullYear(Math.floor(i.getUTCFullYear()/n)*n),i.setUTCMonth(0,1),i.setUTCHours(0,0,0,0)},function(i,o){i.setUTCFullYear(i.getUTCFullYear()+o*n)}):null};const Ot=jn;var ba=jn.range;function tf(n){if(0<=n.y&&n.y<100){var i=new Date(-1,n.m,n.d,n.H,n.M,n.S,n.L);return i.setFullYear(n.y),i}return new Date(n.y,n.m,n.d,n.H,n.M,n.S,n.L)}function Kg(n){if(0<=n.y&&n.y<100){var i=new Date(Date.UTC(-1,n.m,n.d,n.H,n.M,n.S,n.L));return i.setUTCFullYear(n.y),i}return new Date(Date.UTC(n.y,n.m,n.d,n.H,n.M,n.S,n.L))}function ef(n,i,o){return{y:n,m:i,d:o,H:0,M:0,S:0,L:0}}function M0(n){var i=n.dateTime,o=n.date,s=n.time,l=n.periods,p=n.days,b=n.shortDays,v=n.months,T=n.shortMonths,N=as(l),B=Xc(l),F=as(p),L=Xc(p),z=as(b),U=Xc(b),J=as(v),K=Xc(v),V=as(T),ot=Xc(T),it={a:function(qt){return b[qt.getDay()]},A:function(qt){return p[qt.getDay()]},b:function(qt){return T[qt.getMonth()]},B:function(qt){return v[qt.getMonth()]},c:null,d:Io,e:Io,f:o3,g:Qn,G:u3,H:cl,I:gc,j:a3,L:o2,m:ji,M:R5,p:function(qt){return l[+(qt.getHours()>=12)]},q:function(qt){return 1+~~(qt.getMonth()/3)},Q:d3,s:ul,S:F5,u:P5,U:I0,V:s3,w:Ia,W:F0,x:null,X:null,y:c3,Y:s2,Z:rf,"%":H0},dt={a:function(qt){return b[qt.getUTCDay()]},A:function(qt){return p[qt.getUTCDay()]},b:function(qt){return T[qt.getUTCMonth()]},B:function(qt){return v[qt.getUTCMonth()]},c:null,d:Mi,e:Mi,f:Wt,g:sf,G:q0,H:af,I:P0,j:j0,L:c2,m:j5,M:l3,p:function(qt){return l[+(qt.getUTCHours()>=12)]},q:function(qt){return 1+~~(qt.getUTCMonth()/3)},Q:d3,s:ul,S:Y0,u:u2,U:l2,V:Ni,w:h3,W:U0,x:null,X:null,y:of,Y:h2,Z:f3,"%":H0},Pt={a:function(qt,te,ut){var Ct=z.exec(te.slice(ut));return Ct?(qt.w=U[Ct[0].toLowerCase()],ut+Ct[0].length):-1},A:function(qt,te,ut){var Ct=F.exec(te.slice(ut));return Ct?(qt.w=L[Ct[0].toLowerCase()],ut+Ct[0].length):-1},b:function(qt,te,ut){var Ct=V.exec(te.slice(ut));return Ct?(qt.m=ot[Ct[0].toLowerCase()],ut+Ct[0].length):-1},B:function(qt,te,ut){var Ct=J.exec(te.slice(ut));return Ct?(qt.m=K[Ct[0].toLowerCase()],ut+Ct[0].length):-1},c:function(qt,te,ut){return xe(qt,i,te,ut)},d:i2,e:i2,f:I5,g:t3,G:Jv,H:nf,I:nf,j:a2,L:O5,m:n3,M:B5,p:function(qt,te,ut){var Ct=N.exec(te.slice(ut));return Ct?(qt.p=B[Ct[0].toLowerCase()],ut+Ct[0].length):-1},q:uo,Q:i3,s:O0,S:B0,u:r2,U:sl,V:D5,w:n2,W:L5,x:function(qt,te,ut){return xe(qt,o,te,ut)},X:function(qt,te,ut){return xe(qt,s,te,ut)},y:t3,Y:Jv,Z:e3,"%":r3};function Gt(qt,te){return function(ut){var Ct,ce,ee,ue=[],Fe=-1,Ge=0,vn=qt.length;for(ut instanceof Date||(ut=new Date(+ut));++Fe53)return null;"w"in ee||(ee.w=1),"Z"in ee?(ce=(Ct=Kg(ef(ee.y,0,1))).getUTCDay(),Ct=ce>4||ce===0?dc.ceil(Ct):dc(Ct),Ct=Jh.offset(Ct,7*(ee.V-1)),ee.y=Ct.getUTCFullYear(),ee.m=Ct.getUTCMonth(),ee.d=Ct.getUTCDate()+(ee.w+6)%7):(ce=(Ct=tf(ef(ee.y,0,1))).getDay(),Ct=ce>4||ce===0?tl.ceil(Ct):tl(Ct),Ct=ei.offset(Ct,7*(ee.V-1)),ee.y=Ct.getFullYear(),ee.m=Ct.getMonth(),ee.d=Ct.getDate()+(ee.w+6)%7)}else("W"in ee||"U"in ee)&&("w"in ee||(ee.w="u"in ee?ee.u%7:"W"in ee?1:0),ce="Z"in ee?Kg(ef(ee.y,0,1)).getUTCDay():tf(ef(ee.y,0,1)).getDay(),ee.m=0,ee.d="W"in ee?(ee.w+6)%7+7*ee.W-(ce+5)%7:ee.w+7*ee.U-(ce+6)%7);return"Z"in ee?(ee.H+=ee.Z/100|0,ee.M+=ee.Z%100,Kg(ee)):tf(ee)}}function xe(qt,te,ut,Ct){for(var ce,ee,ue=0,Fe=te.length,Ge=ut.length;ue=Ge)return-1;if((ce=te.charCodeAt(ue++))===37){if(ce=te.charAt(ue++),!(ee=Pt[ce in L0?te.charAt(ue++):ce])||(Ct=ee(qt,ut,Ct))<0)return-1}else if(ce!=ut.charCodeAt(Ct++))return-1}return Ct}return it.x=Gt(o,it),it.X=Gt(s,it),it.c=Gt(i,it),dt.x=Gt(o,dt),dt.X=Gt(s,dt),dt.c=Gt(i,dt),{format:function(qt){var te=Gt(qt+="",it);return te.toString=function(){return qt},te},parse:function(qt){var te=re(qt+="",!1);return te.toString=function(){return qt},te},utcFormat:function(qt){var te=Gt(qt+="",dt);return te.toString=function(){return qt},te},utcParse:function(qt){var te=re(qt+="",!0);return te.toString=function(){return qt},te}}}var ol,Jg,N0,D0,t2,L0={"-":"",_:" ",0:"0"},Pi=/^\s*\d+/,M5=/^%/,e2=/[\\^$*+?|[\]().{}]/g;function wr(n,i,o){var s=n<0?"-":"",l=(s?-n:n)+"",p=l.length;return s+(p68?1900:2e3),o+s[0].length):-1}function e3(n,i,o){var s=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(i.slice(o,o+6));return s?(n.Z=s[1]?0:-(s[2]+(s[3]||"00")),o+s[0].length):-1}function uo(n,i,o){var s=Pi.exec(i.slice(o,o+1));return s?(n.q=3*s[0]-3,o+s[0].length):-1}function n3(n,i,o){var s=Pi.exec(i.slice(o,o+2));return s?(n.m=s[0]-1,o+s[0].length):-1}function i2(n,i,o){var s=Pi.exec(i.slice(o,o+2));return s?(n.d=+s[0],o+s[0].length):-1}function a2(n,i,o){var s=Pi.exec(i.slice(o,o+3));return s?(n.m=0,n.d=+s[0],o+s[0].length):-1}function nf(n,i,o){var s=Pi.exec(i.slice(o,o+2));return s?(n.H=+s[0],o+s[0].length):-1}function B5(n,i,o){var s=Pi.exec(i.slice(o,o+2));return s?(n.M=+s[0],o+s[0].length):-1}function B0(n,i,o){var s=Pi.exec(i.slice(o,o+2));return s?(n.S=+s[0],o+s[0].length):-1}function O5(n,i,o){var s=Pi.exec(i.slice(o,o+3));return s?(n.L=+s[0],o+s[0].length):-1}function I5(n,i,o){var s=Pi.exec(i.slice(o,o+6));return s?(n.L=Math.floor(s[0]/1e3),o+s[0].length):-1}function r3(n,i,o){var s=M5.exec(i.slice(o,o+1));return s?o+s[0].length:-1}function i3(n,i,o){var s=Pi.exec(i.slice(o));return s?(n.Q=+s[0],o+s[0].length):-1}function O0(n,i,o){var s=Pi.exec(i.slice(o));return s?(n.s=+s[0],o+s[0].length):-1}function Io(n,i){return wr(n.getDate(),i,2)}function cl(n,i){return wr(n.getHours(),i,2)}function gc(n,i){return wr(n.getHours()%12||12,i,2)}function a3(n,i){return wr(1+ei.count(qc(n),n),i,3)}function o2(n,i){return wr(n.getMilliseconds(),i,3)}function o3(n,i){return o2(n,i)+"000"}function ji(n,i){return wr(n.getMonth()+1,i,2)}function R5(n,i){return wr(n.getMinutes(),i,2)}function F5(n,i){return wr(n.getSeconds(),i,2)}function P5(n){var i=n.getDay();return i===0?7:i}function I0(n,i){return wr(Wc.count(qc(n)-1,n),i,2)}function R0(n){var i=n.getDay();return i>=4||i===0?Ds(n):Ds.ceil(n)}function s3(n,i){return n=R0(n),wr(Ds.count(qc(n),n)+(qc(n).getDay()===4),i,2)}function Ia(n){return n.getDay()}function F0(n,i){return wr(tl.count(qc(n)-1,n),i,2)}function c3(n,i){return wr(n.getFullYear()%100,i,2)}function Qn(n,i){return wr((n=R0(n)).getFullYear()%100,i,2)}function s2(n,i){return wr(n.getFullYear()%1e4,i,4)}function u3(n,i){var o=n.getDay();return wr((n=o>=4||o===0?Ds(n):Ds.ceil(n)).getFullYear()%1e4,i,4)}function rf(n){var i=n.getTimezoneOffset();return(i>0?"-":(i*=-1,"+"))+wr(i/60|0,"0",2)+wr(i%60,"0",2)}function Mi(n,i){return wr(n.getUTCDate(),i,2)}function af(n,i){return wr(n.getUTCHours(),i,2)}function P0(n,i){return wr(n.getUTCHours()%12||12,i,2)}function j0(n,i){return wr(1+Jh.count(Ot(n),n),i,3)}function c2(n,i){return wr(n.getUTCMilliseconds(),i,3)}function Wt(n,i){return c2(n,i)+"000"}function j5(n,i){return wr(n.getUTCMonth()+1,i,2)}function l3(n,i){return wr(n.getUTCMinutes(),i,2)}function Y0(n,i){return wr(n.getUTCSeconds(),i,2)}function u2(n){var i=n.getUTCDay();return i===0?7:i}function l2(n,i){return wr(Kh.count(Ot(n)-1,n),i,2)}function z0(n){var i=n.getUTCDay();return i>=4||i===0?pc(n):pc.ceil(n)}function Ni(n,i){return n=z0(n),wr(pc.count(Ot(n),n)+(Ot(n).getUTCDay()===4),i,2)}function h3(n){return n.getUTCDay()}function U0(n,i){return wr(dc.count(Ot(n)-1,n),i,2)}function of(n,i){return wr(n.getUTCFullYear()%100,i,2)}function sf(n,i){return wr((n=z0(n)).getUTCFullYear()%100,i,2)}function h2(n,i){return wr(n.getUTCFullYear()%1e4,i,4)}function q0(n,i){var o=n.getUTCDay();return wr((n=o>=4||o===0?pc(n):pc.ceil(n)).getUTCFullYear()%1e4,i,4)}function f3(){return"+0000"}function H0(){return"%"}function d3(n){return+n}function ul(n){return Math.floor(+n/1e3)}function f2(n){return ol=M0(n),Jg=ol.format,N0=ol.parse,D0=ol.utcFormat,t2=ol.utcParse,ol}f2({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});var $0=31536e6;function os(n){return new Date(n)}function Y5(n){return n instanceof Date?+n:+new Date(+n)}function Zc(n,i,o,s,l,p,b,v,T){var N=Og(Vi,Vi),B=N.invert,F=N.domain,L=T(".%L"),z=T(":%S"),U=T("%I:%M"),J=T("%I %p"),K=T("%a %d"),V=T("%b %d"),ot=T("%B"),it=T("%Y"),dt=[[b,1,1e3],[b,5,5e3],[b,15,15e3],[b,30,3e4],[p,1,6e4],[p,5,3e5],[p,15,9e5],[p,30,18e5],[l,1,36e5],[l,3,108e5],[l,6,216e5],[l,12,432e5],[s,1,864e5],[s,2,1728e5],[o,1,6048e5],[i,1,2592e6],[i,3,7776e6],[n,1,$0]];function Pt(re){return(b(re)1)&&(n-=Math.floor(n));var i=Math.abs(n-.5);return ad.h=360*n-100,ad.s=1.5-1.5*i,ad.l=.8-.9*i,ad+""}var yf=Ii(),i6=Math.PI/3,D2=2*Math.PI/3;function S3(n){var i;return n=(.5-n)*Math.PI,yf.r=255*(i=Math.sin(n))*i,yf.g=255*(i=Math.sin(n+i6))*i,yf.b=255*(i=Math.sin(n+D2))*i,yf+""}function a6(n){return n=Math.max(0,Math.min(1,n)),"rgb("+Math.max(0,Math.min(255,Math.round(34.61+n*(1172.33-n*(10793.56-n*(33300.12-n*(38394.49-14825.05*n)))))))+", "+Math.max(0,Math.min(255,Math.round(23.31+n*(557.33+n*(1225.33-n*(3574.96-n*(1073.77+707.56*n)))))))+", "+Math.max(0,Math.min(255,Math.round(27.2+n*(3211.1-n*(15327.97-n*(27814-n*(22569.18-6838.66*n)))))))+")"}function mf(n){var i=n.length;return function(o){return n[Math.max(0,Math.min(i-1,Math.floor(o*i)))]}}const A3=mf(en("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725"));var nr=mf(en("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf")),o6=mf(en("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4")),od=mf(en("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921"));function s6(n){return $r(fi(n).call(document.documentElement))}var Qa=0;function M3(){return new sd}function sd(){this._="@"+(++Qa).toString(36)}function c6(n){return typeof n=="string"?new Dn([document.querySelectorAll(n)],[document.documentElement]):new Dn([n==null?[]:n],qi)}function u6(n,i){i==null&&(i=qa().touches);for(var o=0,s=i?i.length:0,l=new Array(s);o1?0:n<-1?ta:Math.acos(n)}function L3(n){return n>=1?cd:n<=-1?-cd:Math.asin(n)}function B3(n){return n.innerRadius}function O3(n){return n.outerRadius}function h6(n){return n.startAngle}function B2(n){return n.endAngle}function O2(n){return n&&n.padAngle}function ud(n,i,o,s,l,p,b,v){var T=o-n,N=s-i,B=b-l,F=v-p,L=F*T-B*N;if(!(L*Lee*ee+ue*ue&&(xe=te,qt=ut),{cx:xe,cy:qt,x01:-B,y01:-F,x11:xe*(l/Pt-1),y11:qt*(l/Pt-1)}}function I2(){var n=B3,i=O3,o=or(0),s=null,l=h6,p=B2,b=O2,v=null;function T(){var N,B,F=+n.apply(this,arguments),L=+i.apply(this,arguments),z=l.apply(this,arguments)-cd,U=p.apply(this,arguments)-cd,J=N3(U-z),K=U>z;if(v||(v=N=ms()),LJi)if(J>Ps-Ji)v.moveTo(L*eu(z),L*us(z)),v.arc(0,0,L,z,U,!K),F>Ji&&(v.moveTo(F*eu(U),F*us(U)),v.arc(0,0,F,U,z,K));else{var V,ot,it=z,dt=U,Pt=z,Gt=U,re=J,xe=J,qt=b.apply(this,arguments)/2,te=qt>Ji&&(s?+s.apply(this,arguments):gl(F*F+L*L)),ut=L2(N3(L-F)/2,+o.apply(this,arguments)),Ct=ut,ce=ut;if(te>Ji){var ee=L3(te/F*us(qt)),ue=L3(te/L*us(qt));(re-=2*ee)>Ji?(Pt+=ee*=K?1:-1,Gt-=ee):(re=0,Pt=Gt=(z+U)/2),(xe-=2*ue)>Ji?(it+=ue*=K?1:-1,dt-=ue):(xe=0,it=dt=(z+U)/2)}var Fe=L*eu(it),Ge=L*us(it),vn=F*eu(Gt),Wn=F*us(Gt);if(ut>Ji){var tr,tn=L*eu(dt),rr=L*us(dt),Mn=F*eu(Pt),En=F*us(Pt);if(JJi?ce>Ji?(V=Ka(Mn,En,Fe,Ge,L,ce,K),ot=Ka(tn,rr,vn,Wn,L,ce,K),v.moveTo(V.cx+V.x01,V.cy+V.y01),ceJi&&re>Ji?Ct>Ji?(V=Ka(vn,Wn,tn,rr,F,-Ct,K),ot=Ka(Fe,Ge,Mn,En,F,-Ct,K),v.lineTo(V.cx+V.x01,V.cy+V.y01),Ct=L;--z)v.point(ot[z],it[z]);v.lineEnd(),v.areaEnd()}V&&(ot[F]=+n(U,F,B),it[F]=+o(U,F,B),v.point(i?+i(U,F,B):ot[F],s?+s(U,F,B):it[F]))}if(J)return v=null,J+""||null}function N(){return bf().defined(l).curve(b).context(p)}return T.x=function(B){return arguments.length?(n=typeof B=="function"?B:or(+B),i=null,T):n},T.x0=function(B){return arguments.length?(n=typeof B=="function"?B:or(+B),T):n},T.x1=function(B){return arguments.length?(i=B==null?null:typeof B=="function"?B:or(+B),T):i},T.y=function(B){return arguments.length?(o=typeof B=="function"?B:or(+B),s=null,T):o},T.y0=function(B){return arguments.length?(o=typeof B=="function"?B:or(+B),T):o},T.y1=function(B){return arguments.length?(s=B==null?null:typeof B=="function"?B:or(+B),T):s},T.lineX0=T.lineY0=function(){return N().x(n).y(o)},T.lineY1=function(){return N().x(n).y(s)},T.lineX1=function(){return N().x(i).y(o)},T.defined=function(B){return arguments.length?(l=typeof B=="function"?B:or(!!B),T):l},T.curve=function(B){return arguments.length?(b=B,p!=null&&(v=b(p)),T):b},T.context=function(B){return arguments.length?(B==null?p=v=null:v=b(p=B),T):p},T}function R2(n,i){return in?1:i>=n?0:NaN}function yl(n){return n}function I3(){var n=yl,i=R2,o=null,s=or(0),l=or(Ps),p=or(0);function b(v){var T,N,B,F,L,z=v.length,U=0,J=new Array(z),K=new Array(z),V=+s.apply(this,arguments),ot=Math.min(Ps,Math.max(-Ps,l.apply(this,arguments)-V)),it=Math.min(Math.abs(ot)/z,p.apply(this,arguments)),dt=it*(ot<0?-1:1);for(T=0;T0&&(U+=L);for(i!=null?J.sort(function(Pt,Gt){return i(K[Pt],K[Gt])}):o!=null&&J.sort(function(Pt,Gt){return o(v[Pt],v[Gt])}),T=0,B=U?(ot-z*dt)/U:0;T0?L*B:0)+dt,K[N]={data:v[N],index:T,value:L,startAngle:V,endAngle:F,padAngle:it};return K}return b.value=function(v){return arguments.length?(n=typeof v=="function"?v:or(+v),b):n},b.sortValues=function(v){return arguments.length?(i=v,o=null,b):i},b.sort=function(v){return arguments.length?(o=v,i=null,b):o},b.startAngle=function(v){return arguments.length?(s=typeof v=="function"?v:or(+v),b):s},b.endAngle=function(v){return arguments.length?(l=typeof v=="function"?v:or(+v),b):l},b.padAngle=function(v){return arguments.length?(p=typeof v=="function"?v:or(+v),b):p},b}ld.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(n,i){switch(n=+n,i=+i,this._point){case 0:this._point=1,this._line?this._context.lineTo(n,i):this._context.moveTo(n,i);break;case 1:this._point=2;default:this._context.lineTo(n,i)}}};var _f=xf(mc);function ml(n){this._curve=n}function xf(n){function i(o){return new ml(n(o))}return i._curve=n,i}function ru(n){var i=n.curve;return n.angle=n.x,delete n.x,n.radius=n.y,delete n.y,n.curve=function(o){return arguments.length?i(xf(o)):i()._curve},n}function F2(){return ru(bf().curve(_f))}function P2(){var n=hd().curve(_f),i=n.curve,o=n.lineX0,s=n.lineX1,l=n.lineY0,p=n.lineY1;return n.angle=n.x,delete n.x,n.startAngle=n.x0,delete n.x0,n.endAngle=n.x1,delete n.x1,n.radius=n.y,delete n.y,n.innerRadius=n.y0,delete n.y0,n.outerRadius=n.y1,delete n.y1,n.lineStartAngle=function(){return ru(o())},delete n.lineX0,n.lineEndAngle=function(){return ru(s())},delete n.lineX1,n.lineInnerRadius=function(){return ru(l())},delete n.lineY0,n.lineOuterRadius=function(){return ru(p())},delete n.lineY1,n.curve=function(b){return arguments.length?i(xf(b)):i()._curve},n}function wf(n,i){return[(i=+i)*Math.cos(n-=Math.PI/2),i*Math.sin(n)]}ml.prototype={areaStart:function(){this._curve.areaStart()},areaEnd:function(){this._curve.areaEnd()},lineStart:function(){this._curve.lineStart()},lineEnd:function(){this._curve.lineEnd()},point:function(n,i){this._curve.point(i*Math.sin(n),i*-Math.cos(n))}};var kf=Array.prototype.slice;function R3(n){return n.source}function F3(n){return n.target}function fd(n){var i=R3,o=F3,s=nu,l=vf,p=null;function b(){var v,T=kf.call(arguments),N=i.apply(this,T),B=o.apply(this,T);if(p||(p=v=ms()),n(p,+s.apply(this,(T[0]=N,T)),+l.apply(this,T),+s.apply(this,(T[0]=B,T)),+l.apply(this,T)),v)return p=null,v+""||null}return b.source=function(v){return arguments.length?(i=v,b):i},b.target=function(v){return arguments.length?(o=v,b):o},b.x=function(v){return arguments.length?(s=typeof v=="function"?v:or(+v),b):s},b.y=function(v){return arguments.length?(l=typeof v=="function"?v:or(+v),b):l},b.context=function(v){return arguments.length?(p=v==null?null:v,b):p},b}function vl(n,i,o,s,l){n.moveTo(i,o),n.bezierCurveTo(i=(i+s)/2,o,i,l,s,l)}function xi(n,i,o,s,l){n.moveTo(i,o),n.bezierCurveTo(i,o=(o+l)/2,s,o,s,l)}function P3(n,i,o,s,l){var p=wf(i,o),b=wf(i,o=(o+l)/2),v=wf(s,o),T=wf(s,l);n.moveTo(p[0],p[1]),n.bezierCurveTo(b[0],b[1],v[0],v[1],T[0],T[1])}function bl(){return fd(vl)}function j3(){return fd(xi)}function Y3(){var n=fd(P3);return n.angle=n.x,delete n.x,n.radius=n.y,delete n.y,n}const dd={draw:function(n,i){var o=Math.sqrt(i/ta);n.moveTo(o,0),n.arc(0,0,o,0,Ps)}},iu={draw:function(n,i){var o=Math.sqrt(i/5)/2;n.moveTo(-3*o,-o),n.lineTo(-o,-o),n.lineTo(-o,-3*o),n.lineTo(o,-3*o),n.lineTo(o,-o),n.lineTo(3*o,-o),n.lineTo(3*o,o),n.lineTo(o,o),n.lineTo(o,3*o),n.lineTo(-o,3*o),n.lineTo(-o,o),n.lineTo(-3*o,o),n.closePath()}};var j2=Math.sqrt(1/3),vc=2*j2;const Ja={draw:function(n,i){var o=Math.sqrt(i/vc),s=o*j2;n.moveTo(0,-o),n.lineTo(s,0),n.lineTo(0,o),n.lineTo(-s,0),n.closePath()}};var z3=Math.sin(ta/10)/Math.sin(7*ta/10),f6=Math.sin(Ps/10)*z3,U3=-Math.cos(Ps/10)*z3;const Ra={draw:function(n,i){var o=Math.sqrt(.8908130915292852*i),s=f6*o,l=U3*o;n.moveTo(0,-o),n.lineTo(s,l);for(var p=1;p<5;++p){var b=Ps*p/5,v=Math.cos(b),T=Math.sin(b);n.lineTo(T*o,-v*o),n.lineTo(v*s-T*l,T*s+v*l)}n.closePath()}},to={draw:function(n,i){var o=Math.sqrt(i),s=-o/2;n.rect(s,s,o,o)}};var Di=Math.sqrt(3);const lo={draw:function(n,i){var o=-Math.sqrt(i/(3*Di));n.moveTo(0,2*o),n.lineTo(-Di*o,-o),n.lineTo(Di*o,-o),n.closePath()}};var eo=-.5,ea=Math.sqrt(3)/2,pd=1/Math.sqrt(12),q3=3*(pd/2+1);const Y2={draw:function(n,i){var o=Math.sqrt(i/q3),s=o/2,l=o*pd,p=s,b=o*pd+o,v=-p,T=b;n.moveTo(s,l),n.lineTo(p,b),n.lineTo(v,T),n.lineTo(eo*s-ea*l,ea*s+eo*l),n.lineTo(eo*p-ea*b,ea*p+eo*b),n.lineTo(eo*v-ea*T,ea*v+eo*T),n.lineTo(eo*s+ea*l,eo*l-ea*s),n.lineTo(eo*p+ea*b,eo*b-ea*p),n.lineTo(eo*v+ea*T,eo*T-ea*v),n.closePath()}};var H3=[dd,iu,Ja,to,Ra,lo,Y2];function $3(){var n=or(dd),i=or(64),o=null;function s(){var l;if(o||(o=l=ms()),n.apply(this,arguments).draw(o,+i.apply(this,arguments)),l)return o=null,l+""||null}return s.type=function(l){return arguments.length?(n=typeof l=="function"?l:or(l),s):n},s.size=function(l){return arguments.length?(i=typeof l=="function"?l:or(+l),s):i},s.context=function(l){return arguments.length?(o=l==null?null:l,s):o},s}function js(){}function _l(n,i,o){n._context.bezierCurveTo((2*n._x0+n._x1)/3,(2*n._y0+n._y1)/3,(n._x0+2*n._x1)/3,(n._y0+2*n._y1)/3,(n._x0+4*n._x1+i)/6,(n._y0+4*n._y1+o)/6)}function Ys(n){this._context=n}function d6(n){return new Ys(n)}function z2(n){this._context=n}function Tf(n){return new z2(n)}function wa(n){this._context=n}function xl(n){return new wa(n)}function wl(n,i){this._basis=new Ys(n),this._beta=i}Ys.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:_l(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(n,i){switch(n=+n,i=+i,this._point){case 0:this._point=1,this._line?this._context.lineTo(n,i):this._context.moveTo(n,i);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:_l(this,n,i)}this._x0=this._x1,this._x1=n,this._y0=this._y1,this._y1=i}},z2.prototype={areaStart:js,areaEnd:js,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x2,this._y2),this._context.closePath();break;case 2:this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break;case 3:this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4)}},point:function(n,i){switch(n=+n,i=+i,this._point){case 0:this._point=1,this._x2=n,this._y2=i;break;case 1:this._point=2,this._x3=n,this._y3=i;break;case 2:this._point=3,this._x4=n,this._y4=i,this._context.moveTo((this._x0+4*this._x1+n)/6,(this._y0+4*this._y1+i)/6);break;default:_l(this,n,i)}this._x0=this._x1,this._x1=n,this._y0=this._y1,this._y1=i}},wa.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(n,i){switch(n=+n,i=+i,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var o=(this._x0+4*this._x1+n)/6,s=(this._y0+4*this._y1+i)/6;this._line?this._context.lineTo(o,s):this._context.moveTo(o,s);break;case 3:this._point=4;default:_l(this,n,i)}this._x0=this._x1,this._x1=n,this._y0=this._y1,this._y1=i}},wl.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var n=this._x,i=this._y,o=n.length-1;if(o>0)for(var s,l=n[0],p=i[0],b=n[o]-l,v=i[o]-p,T=-1;++T<=o;)s=T/o,this._basis.point(this._beta*n[T]+(1-this._beta)*(l+s*b),this._beta*i[T]+(1-this._beta)*(p+s*v));this._x=this._y=null,this._basis.lineEnd()},point:function(n,i){this._x.push(+n),this._y.push(+i)}};const gd=function n(i){function o(s){return i===1?new Ys(s):new wl(s,i)}return o.beta=function(s){return n(+s)},o}(.85);function Cf(n,i,o){n._context.bezierCurveTo(n._x1+n._k*(n._x2-n._x0),n._y1+n._k*(n._y2-n._y0),n._x2+n._k*(n._x1-i),n._y2+n._k*(n._y1-o),n._x2,n._y2)}function yd(n,i){this._context=n,this._k=(1-i)/6}yd.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:Cf(this,this._x1,this._y1)}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(n,i){switch(n=+n,i=+i,this._point){case 0:this._point=1,this._line?this._context.lineTo(n,i):this._context.moveTo(n,i);break;case 1:this._point=2,this._x1=n,this._y1=i;break;case 2:this._point=3;default:Cf(this,n,i)}this._x0=this._x1,this._x1=this._x2,this._x2=n,this._y0=this._y1,this._y1=this._y2,this._y2=i}};const p6=function n(i){function o(s){return new yd(s,i)}return o.tension=function(s){return n(+s)},o}(0);function md(n,i){this._context=n,this._k=(1-i)/6}md.prototype={areaStart:js,areaEnd:js,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(n,i){switch(n=+n,i=+i,this._point){case 0:this._point=1,this._x3=n,this._y3=i;break;case 1:this._point=2,this._context.moveTo(this._x4=n,this._y4=i);break;case 2:this._point=3,this._x5=n,this._y5=i;break;default:Cf(this,n,i)}this._x0=this._x1,this._x1=this._x2,this._x2=n,this._y0=this._y1,this._y1=this._y2,this._y2=i}};const W3=function n(i){function o(s){return new md(s,i)}return o.tension=function(s){return n(+s)},o}(0);function vd(n,i){this._context=n,this._k=(1-i)/6}vd.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(n,i){switch(n=+n,i=+i,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:Cf(this,n,i)}this._x0=this._x1,this._x1=this._x2,this._x2=n,this._y0=this._y1,this._y1=this._y2,this._y2=i}};const g6=function n(i){function o(s){return new vd(s,i)}return o.tension=function(s){return n(+s)},o}(0);function bd(n,i,o){var s=n._x1,l=n._y1,p=n._x2,b=n._y2;if(n._l01_a>Ji){var v=2*n._l01_2a+3*n._l01_a*n._l12_a+n._l12_2a,T=3*n._l01_a*(n._l01_a+n._l12_a);s=(s*v-n._x0*n._l12_2a+n._x2*n._l01_2a)/T,l=(l*v-n._y0*n._l12_2a+n._y2*n._l01_2a)/T}if(n._l23_a>Ji){var N=2*n._l23_2a+3*n._l23_a*n._l12_a+n._l12_2a,B=3*n._l23_a*(n._l23_a+n._l12_a);p=(p*N+n._x1*n._l23_2a-i*n._l12_2a)/B,b=(b*N+n._y1*n._l23_2a-o*n._l12_2a)/B}n._context.bezierCurveTo(s,l,p,b,n._x2,n._y2)}function V3(n,i){this._context=n,this._alpha=i}V3.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2)}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(n,i){if(n=+n,i=+i,this._point){var o=this._x2-n,s=this._y2-i;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(o*o+s*s,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(n,i):this._context.moveTo(n,i);break;case 1:this._point=2;break;case 2:this._point=3;default:bd(this,n,i)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=n,this._y0=this._y1,this._y1=this._y2,this._y2=i}};const G3=function n(i){function o(s){return i?new V3(s,i):new yd(s,0)}return o.alpha=function(s){return n(+s)},o}(.5);function X3(n,i){this._context=n,this._alpha=i}X3.prototype={areaStart:js,areaEnd:js,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(n,i){if(n=+n,i=+i,this._point){var o=this._x2-n,s=this._y2-i;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(o*o+s*s,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=n,this._y3=i;break;case 1:this._point=2,this._context.moveTo(this._x4=n,this._y4=i);break;case 2:this._point=3,this._x5=n,this._y5=i;break;default:bd(this,n,i)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=n,this._y0=this._y1,this._y1=this._y2,this._y2=i}};const Z3=function n(i){function o(s){return i?new X3(s,i):new md(s,0)}return o.alpha=function(s){return n(+s)},o}(.5);function Ef(n,i){this._context=n,this._alpha=i}Ef.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(n,i){if(n=+n,i=+i,this._point){var o=this._x2-n,s=this._y2-i;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(o*o+s*s,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:bd(this,n,i)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=n,this._y0=this._y1,this._y1=this._y2,this._y2=i}};const U2=function n(i){function o(s){return i?new Ef(s,i):new vd(s,0)}return o.alpha=function(s){return n(+s)},o}(.5);function q2(n){this._context=n}function H2(n){return new q2(n)}function _d(n){return n<0?-1:1}function zs(n,i,o){var s=n._x1-n._x0,l=i-n._x1,p=(n._y1-n._y0)/(s||l<0&&-0),b=(o-n._y1)/(l||s<0&&-0),v=(p*l+b*s)/(s+l);return(_d(p)+_d(b))*Math.min(Math.abs(p),Math.abs(b),.5*Math.abs(v))||0}function ls(n,i){var o=n._x1-n._x0;return o?(3*(n._y1-n._y0)/o-i)/2:i}function $2(n,i,o){var s=n._x0,l=n._y0,p=n._x1,b=n._y1,v=(p-s)/3;n._context.bezierCurveTo(s+v,l+v*i,p-v,b-v*o,p,b)}function au(n){this._context=n}function Q3(n){this._context=new xd(n)}function xd(n){this._context=n}function Fa(n){return new au(n)}function Sf(n){return new Q3(n)}function Us(n){this._context=n}function kl(n){var i,o,s=n.length-1,l=new Array(s),p=new Array(s),b=new Array(s);for(l[0]=0,p[0]=2,b[0]=n[0]+2*n[1],i=1;i=0;--i)l[i]=(b[i]-l[i+1])/p[i];for(p[s-1]=(n[s]+l[s-1])/2,i=0;i1)for(var o,s,l,p=1,b=n[i[0]],v=b.length;p=0;)o[i]=i;return o}function J3(n,i){return n[i]}function El(){var n=or([]),i=su,o=ou,s=J3;function l(p){var b,v,T=n.apply(this,arguments),N=p.length,B=T.length,F=new Array(B);for(b=0;b0){for(var o,s,l,p=0,b=n[0].length;p0)for(var o,s,l,p,b,v,T=0,N=n[i[0]].length;T0?(s[0]=p,s[1]=p+=l):l<0?(s[1]=b,s[0]=b+=l):(s[0]=0,s[1]=l)}function nn(n,i){if((o=n.length)>0){for(var o,s=0,l=n[i[0]],p=l.length;s0&&(s=(o=n[i[0]]).length)>0){for(var o,s,l,p=0,b=1;bp&&(p=i,s=o);return s}function Fo(n){var i=n.map(W2);return su(n).sort(function(o,s){return i[o]-i[s]})}function W2(n){for(var i,o=0,s=-1,l=n.length;++s=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(n,i){switch(n=+n,i=+i,this._point){case 0:this._point=1,this._line?this._context.lineTo(n,i):this._context.moveTo(n,i);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,i),this._context.lineTo(n,i);else{var o=this._x*(1-this._t)+n*this._t;this._context.lineTo(o,this._y),this._context.lineTo(o,i)}}this._x=n,this._y=i}};var wd="%Y-%m-%dT%H:%M:%S.%LZ",b6=Date.prototype.toISOString?function(n){return n.toISOString()}:D0(wd);const qs=b6;var Af=+new Date("2000-01-01T00:00:00.000Z")?function(n){var i=new Date(n);return isNaN(i)?null:i}:t2(wd);const Al=Af;function Mf(n,i,o){var s=new Vt,l=i;return i==null?(s.restart(n,i,o),s):(i=+i,o=o==null?W():+o,s.restart(function p(b){b+=l,s.restart(p,l+=i,o),n(b)},i,o),s)}function G2(n){return function(){return n}}function rb(n){return n[0]}function X2(n){return n[1]}function kd(){this._=null}function Nf(n){n.U=n.C=n.L=n.R=n.P=n.N=null}function Ml(n,i){var o=i,s=i.R,l=o.U;l?l.L===o?l.L=s:l.R=s:n._=s,s.U=l,o.U=s,o.R=s.L,o.R&&(o.R.U=o),s.L=o}function Nl(n,i){var o=i,s=i.L,l=o.U;l?l.L===o?l.L=s:l.R=s:n._=s,s.U=l,o.U=s,o.L=s.R,o.L&&(o.L.U=o),s.R=o}function Df(n){for(;n.L;)n=n.L;return n}kd.prototype={constructor:kd,insert:function(n,i){var o,s,l;if(n){if(i.P=n,i.N=n.N,n.N&&(n.N.P=i),n.N=i,n.R){for(n=n.R;n.L;)n=n.L;n.L=i}else n.R=i;o=n}else this._?(n=Df(this._),i.P=null,i.N=n,n.P=n.L=i,o=n):(i.P=i.N=null,this._=i,o=null);for(i.L=i.R=null,i.U=o,i.C=!0,n=i;o&&o.C;)o===(s=o.U).L?(l=s.R)&&l.C?(o.C=l.C=!1,s.C=!0,n=s):(n===o.R&&(Ml(this,o),o=(n=o).U),o.C=!1,s.C=!0,Nl(this,s)):(l=s.L)&&l.C?(o.C=l.C=!1,s.C=!0,n=s):(n===o.L&&(Nl(this,o),o=(n=o).U),o.C=!1,s.C=!0,Ml(this,s)),o=n.U;this._.C=!1},remove:function(n){n.N&&(n.N.P=n.P),n.P&&(n.P.N=n.N),n.N=n.P=null;var i,o,s,l=n.U,p=n.L,b=n.R;if(o=p?b?Df(b):p:b,l?l.L===n?l.L=o:l.R=o:this._=o,p&&b?(s=o.C,o.C=n.C,o.L=p,p.U=o,o!==b?(l=o.U,o.U=n.U,n=o.R,l.L=n,o.R=b,b.U=o):(o.U=l,l=o,n=o.R)):(s=n.C,n=o),n&&(n.U=l),!s)if(n&&n.C)n.C=!1;else{do{if(n===this._)break;if(n===l.L){if((i=l.R).C&&(i.C=!1,l.C=!0,Ml(this,l),i=l.R),i.L&&i.L.C||i.R&&i.R.C){i.R&&i.R.C||(i.L.C=!1,i.C=!0,Nl(this,i),i=l.R),i.C=l.C,l.C=i.R.C=!1,Ml(this,l),n=this._;break}}else if((i=l.L).C&&(i.C=!1,l.C=!0,Nl(this,l),i=l.L),i.L&&i.L.C||i.R&&i.R.C){i.L&&i.L.C||(i.R.C=!1,i.C=!0,Ml(this,i),i=l.L),i.C=l.C,l.C=i.L.C=!1,Nl(this,l),n=this._;break}i.C=!0,n=l,l=l.U}while(!n.C);n&&(n.C=!1)}}};const Td=kd;function _c(n,i,o,s){var l=[null,null],p=na.push(l)-1;return l.left=n,l.right=i,o&&Cd(l,n,i,o),s&&Cd(l,i,n,s),no[n.index].halfedges.push(p),no[i.index].halfedges.push(p),l}function Dl(n,i,o){var s=[i,o];return s.left=n,s}function Cd(n,i,o,s){n[0]||n[1]?n.left===o?n[1]=s:n[0]=s:(n[0]=s,n.left=i,n.right=o)}function _6(n,i,o,s,l){var p,b=n[0],v=n[1],T=b[0],N=b[1],B=0,F=1,L=v[0]-T,z=v[1]-N;if(p=i-T,L||!(p>0)){if(p/=L,L<0){if(p0){if(p>F)return;p>B&&(B=p)}if(p=s-T,L||!(p<0)){if(p/=L,L<0){if(p>F)return;p>B&&(B=p)}else if(L>0){if(p0)){if(p/=z,z<0){if(p0){if(p>F)return;p>B&&(B=p)}if(p=l-N,z||!(p<0)){if(p/=z,z<0){if(p>F)return;p>B&&(B=p)}else if(z>0){if(p0||F<1)||(B>0&&(n[0]=[T+B*L,N+B*z]),F<1&&(n[1]=[T+F*L,N+F*z]),!0)}}}}}function x6(n,i,o,s,l){var p=n[1];if(p)return!0;var b,v,T=n[0],N=n.left,B=n.right,F=N[0],L=N[1],z=B[0],U=B[1],J=(F+z)/2,K=(L+U)/2;if(U===L){if(J=s)return;if(F>z){if(T){if(T[1]>=l)return}else T=[J,o];p=[J,l]}else{if(T){if(T[1]1)if(F>z){if(T){if(T[1]>=l)return}else T=[(o-v)/b,o];p=[(l-v)/b,l]}else{if(T){if(T[1]=s)return}else T=[i,b*i+v];p=[s,b*s+v]}else{if(T){if(T[0]=-M6)){var z=T*T+N*N,U=B*B+F*F,J=(F*z-N*U)/L,K=(T*U-B*z)/L,V=ib.pop()||new T6;V.arc=n,V.site=l,V.x=J+b,V.y=(V.cy=K+v)+Math.sqrt(J*J+K*K),n.circle=V;for(var ot=null,it=Bf._;it;)if(V.yRr)v=v.L;else{if(!((l=p-A6(v,b))>Rr)){s>-Rr?(i=v.P,o=v):l>-Rr?(i=v,o=v.N):i=o=v;break}if(!v.R){i=v;break}v=v.R}(function(Pt){no[Pt.index]={site:Pt,halfedges:[]}})(n);var T=ob(n);if(Ol.insert(i,T),i||o){if(i===o)return cu(i),o=ob(i.site),Ol.insert(T,o),T.edge=o.edge=_c(i.site,T.site),Bl(i),void Bl(o);if(o){cu(i),cu(o);var N=i.site,B=N[0],F=N[1],L=n[0]-B,z=n[1]-F,U=o.site,J=U[0]-B,K=U[1]-F,V=2*(L*K-z*J),ot=L*L+z*z,it=J*J+K*K,dt=[(K*ot-z*it)/V+B,(L*it-J*ot)/V+F];Cd(o.edge,N,U,dt),T.edge=_c(N,n,null,dt),o.edge=_c(n,U,null,dt),Bl(i),Bl(o)}else T.edge=_c(i.site,T.site)}}function Lf(n,i){var o=n.site,s=o[0],l=o[1],p=l-i;if(!p)return s;var b=n.P;if(!b)return-1/0;var v=(o=b.site)[0],T=o[1],N=T-i;if(!N)return v;var B=v-s,F=1/p-1/N,L=B/N;return F?(-L+Math.sqrt(L*L-2*F*(B*B/(-2*N)-T+N/2+l-p/2)))/F+s:(s+v)/2}function A6(n,i){var o=n.N;if(o)return Lf(o,i);var s=n.site;return s[1]===i?s[0]:1/0}var Ol,no,Bf,na,Rr=1e-6,M6=1e-12;function N6(n,i,o){return(n[0]-o[0])*(i[1]-n[1])-(n[0]-i[0])*(o[1]-n[1])}function sb(n,i){return i[1]-n[1]||i[0]-n[0]}function Q2(n,i){var o,s,l,p=n.sort(sb).pop();for(na=[],no=new Array(n.length),Ol=new Td,Bf=new Td;;)if(l=ho,p&&(!l||p[1]Rr||Math.abs(U[0][1]-U[1][1])>Rr)||delete na[J]})(b,v,T,N),function(B,F,L,z){var U,J,K,V,ot,it,dt,Pt,Gt,re,xe,qt,te=no.length,ut=!0;for(U=0;URr||Math.abs(qt-Gt)>Rr)&&(ot.splice(V,0,na.push(Dl(K,re,Math.abs(xe-B)Rr?[B,Math.abs(Pt-B)Rr?[Math.abs(Gt-z)Rr?[L,Math.abs(Pt-L)Rr?[Math.abs(Gt-F)=v)return null;var T=n-l.site[0],N=i-l.site[1],B=T*T+N*N;do l=p.cells[s=b],b=null,l.halfedges.forEach(function(F){var L=p.edges[F],z=L.left;if(z!==l.site&&z||(z=L.right)){var U=n-z[0],J=i-z[1],K=U*U+J*J;Ks?(s+l)/2:Math.min(0,s)||Math.max(0,l),b>p?(p+b)/2:Math.min(0,p)||Math.max(0,b))}function ub(){var n,i,o=Ad,s=cb,l=Md,p=D6,b=If,v=[0,1/0],T=[[-1/0,-1/0],[1/0,1/0]],N=250,B=c0,F=un("start","zoom","end"),L=500,z=0;function U(ut){ut.property("__zoom",xc).on("wheel.zoom",Pt).on("mousedown.zoom",Gt).on("dblclick.zoom",re).filter(b).on("touchstart.zoom",xe).on("touchmove.zoom",qt).on("touchend.zoom touchcancel.zoom",te).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function J(ut,Ct){return(Ct=Math.max(v[0],Math.min(v[1],Ct)))===ut.k?ut:new Pa(Ct,ut.x,ut.y)}function K(ut,Ct,ce){var ee=Ct[0]-ce[0]*ut.k,ue=Ct[1]-ce[1]*ut.k;return ee===ut.x&&ue===ut.y?ut:new Pa(ut.k,ee,ue)}function V(ut){return[(+ut[0][0]+ +ut[1][0])/2,(+ut[0][1]+ +ut[1][1])/2]}function ot(ut,Ct,ce){ut.on("start.zoom",function(){it(this,arguments).start()}).on("interrupt.zoom end.zoom",function(){it(this,arguments).end()}).tween("zoom",function(){var ee=this,ue=arguments,Fe=it(ee,ue),Ge=s.apply(ee,ue),vn=ce==null?V(Ge):typeof ce=="function"?ce.apply(ee,ue):ce,Wn=Math.max(Ge[1][0]-Ge[0][0],Ge[1][1]-Ge[0][1]),tr=ee.__zoom,tn=typeof Ct=="function"?Ct.apply(ee,ue):Ct,rr=B(tr.invert(vn).concat(Wn/tr.k),tn.invert(vn).concat(Wn/tn.k));return function(Mn){if(Mn===1)Mn=tn;else{var En=rr(Mn),Zn=Wn/En[2];Mn=new Pa(Zn,vn[0]-En[0]*Zn,vn[1]-En[1]*Zn)}Fe.zoom(null,Mn)}})}function it(ut,Ct,ce){return!ce&&ut.__zooming||new dt(ut,Ct)}function dt(ut,Ct){this.that=ut,this.args=Ct,this.active=0,this.extent=s.apply(ut,Ct),this.taps=0}function Pt(){if(o.apply(this,arguments)){var ut=it(this,arguments),Ct=this.__zoom,ce=Math.max(v[0],Math.min(v[1],Ct.k*Math.pow(2,p.apply(this,arguments)))),ee=ds(this);if(ut.wheel)ut.mouse[0][0]===ee[0]&&ut.mouse[0][1]===ee[1]||(ut.mouse[1]=Ct.invert(ut.mouse[0]=ee)),clearTimeout(ut.wheel);else{if(Ct.k===ce)return;ut.mouse=[ee,Ct.invert(ee)],la(this),ut.start()}Rl(),ut.wheel=setTimeout(ue,150),ut.zoom("mouse",l(K(J(Ct,ce),ut.mouse[0],ut.mouse[1]),ut.extent,T))}function ue(){ut.wheel=null,ut.end()}}function Gt(){if(!i&&o.apply(this,arguments)){var ut=it(this,arguments,!0),Ct=$r(pt.view).on("mousemove.zoom",Fe,!0).on("mouseup.zoom",Ge,!0),ce=ds(this),ee=pt.clientX,ue=pt.clientY;Zr(pt.view),Sd(),ut.mouse=[ce,this.__zoom.invert(ce)],la(this),ut.start()}function Fe(){if(Rl(),!ut.moved){var vn=pt.clientX-ee,Wn=pt.clientY-ue;ut.moved=vn*vn+Wn*Wn>z}ut.zoom("mouse",l(K(ut.that.__zoom,ut.mouse[0]=ds(ut.that),ut.mouse[1]),ut.extent,T))}function Ge(){Ct.on("mousemove.zoom mouseup.zoom",null),Br(pt.view,ut.moved),Rl(),ut.end()}}function re(){if(o.apply(this,arguments)){var ut=this.__zoom,Ct=ds(this),ce=ut.invert(Ct),ee=ut.k*(pt.shiftKey?.5:2),ue=l(K(J(ut,ee),Ct,ce),s.apply(this,arguments),T);Rl(),N>0?$r(this).transition().duration(N).call(ot,ue,Ct):$r(this).call(U.transform,ue)}}function xe(){if(o.apply(this,arguments)){var ut,Ct,ce,ee,ue=pt.touches,Fe=ue.length,Ge=it(this,arguments,pt.changedTouches.length===Fe);for(Sd(),Ct=0;Ct{S.exports={graphlib:f(574),layout:f(8123),debug:f(7570),util:{time:f(1138).time,notime:f(1138).notime},version:f(8177)}},1207:(S,M,f)=>{var m=f(8436),h=f(4079);S.exports={run:function(x){var g=x.graph().acyclicer==="greedy"?h(x,function(k){return function(E){return k.edge(E).weight}}(x)):function(k){var E=[],A={},I={};return m.forEach(k.nodes(),function O(Y){m.has(I,Y)||(I[Y]=!0,A[Y]=!0,m.forEach(k.outEdges(Y),function(H){m.has(A,H.w)?E.push(H):O(H.w)}),delete A[Y])}),E}(x);m.forEach(g,function(k){var E=x.edge(k);x.removeEdge(k),E.forwardName=k.name,E.reversed=!0,x.setEdge(k.w,k.v,E,m.uniqueId("rev"))})},undo:function(x){m.forEach(x.edges(),function(g){var k=x.edge(g);if(k.reversed){x.removeEdge(g);var E=k.forwardName;delete k.reversed,delete k.forwardName,x.setEdge(g.w,g.v,k,E)}})}}},1133:(S,M,f)=>{var m=f(8436),h=f(1138);function x(g,k,E,A,I,O){var Y={width:0,height:0,rank:O,borderType:k},H=I[k][O-1],X=h.addDummyNode(g,"border",Y,E);I[k][O]=X,g.setParent(X,A),H&&g.setEdge(H,X,{weight:1})}S.exports=function(g){m.forEach(g.children(),function k(E){var A=g.children(E),I=g.node(E);if(A.length&&m.forEach(A,k),m.has(I,"minRank")){I.borderLeft=[],I.borderRight=[];for(var O=I.minRank,Y=I.maxRank+1;O{var m=f(8436);function h(E){m.forEach(E.nodes(),function(A){x(E.node(A))}),m.forEach(E.edges(),function(A){x(E.edge(A))})}function x(E){var A=E.width;E.width=E.height,E.height=A}function g(E){E.y=-E.y}function k(E){var A=E.x;E.x=E.y,E.y=A}S.exports={adjust:function(E){var A=E.graph().rankdir.toLowerCase();A!=="lr"&&A!=="rl"||h(E)},undo:function(E){var A=E.graph().rankdir.toLowerCase();A!=="bt"&&A!=="rl"||function(I){m.forEach(I.nodes(),function(O){g(I.node(O))}),m.forEach(I.edges(),function(O){var Y=I.edge(O);m.forEach(Y.points,g),m.has(Y,"y")&&g(Y)})}(E),A!=="lr"&&A!=="rl"||(function(I){m.forEach(I.nodes(),function(O){k(I.node(O))}),m.forEach(I.edges(),function(O){var Y=I.edge(O);m.forEach(Y.points,k),m.has(Y,"x")&&k(Y)})}(E),h(E))}}},7822:S=>{function M(){var h={};h._next=h._prev=h,this._sentinel=h}function f(h){h._prev._next=h._next,h._next._prev=h._prev,delete h._next,delete h._prev}function m(h,x){if(h!=="_next"&&h!=="_prev")return x}S.exports=M,M.prototype.dequeue=function(){var h=this._sentinel,x=h._prev;if(x!==h)return f(x),x},M.prototype.enqueue=function(h){var x=this._sentinel;h._prev&&h._next&&f(h),h._next=x._next,x._next._prev=h,x._next=h,h._prev=x},M.prototype.toString=function(){for(var h=[],x=this._sentinel,g=x._prev;g!==x;)h.push(JSON.stringify(g,m)),g=g._prev;return"["+h.join(", ")+"]"}},7570:(S,M,f)=>{var m=f(8436),h=f(1138),x=f(574).Graph;S.exports={debugOrdering:function(g){var k=h.buildLayerMatrix(g),E=new x({compound:!0,multigraph:!0}).setGraph({});return m.forEach(g.nodes(),function(A){E.setNode(A,{label:A}),E.setParent(A,"layer"+g.node(A).rank)}),m.forEach(g.edges(),function(A){E.setEdge(A.v,A.w,{},A.name)}),m.forEach(k,function(A,I){var O="layer"+I;E.setNode(O,{rank:"same"}),m.reduce(A,function(Y,H){return E.setEdge(Y,H,{style:"invis"}),H})}),E}}},574:(S,M,f)=>{var m;try{m=f(8282)}catch{}m||(m=window.graphlib),S.exports=m},4079:(S,M,f)=>{var m=f(8436),h=f(574).Graph,x=f(7822);S.exports=function(A,I){if(A.nodeCount()<=1)return[];var O=function(H,X){var Z=new h,et=0,Q=0;m.forEach(H.nodes(),function(xt){Z.setNode(xt,{v:xt,in:0,out:0})}),m.forEach(H.edges(),function(xt){var Tt=Z.edge(xt.v,xt.w)||0,ne=X(xt),bt=Tt+ne;Z.setEdge(xt.v,xt.w,bt),Q=Math.max(Q,Z.node(xt.v).out+=ne),et=Math.max(et,Z.node(xt.w).in+=ne)});var gt=m.range(Q+et+3).map(function(){return new x}),ht=et+1;return m.forEach(Z.nodes(),function(xt){E(gt,ht,Z.node(xt))}),{graph:Z,buckets:gt,zeroIdx:ht}}(A,I||g),Y=function(H,X,Z){for(var et,Q=[],gt=X[X.length-1],ht=X[0];H.nodeCount();){for(;et=ht.dequeue();)k(H,X,Z,et);for(;et=gt.dequeue();)k(H,X,Z,et);if(H.nodeCount()){for(var xt=X.length-2;xt>0;--xt)if(et=X[xt].dequeue()){Q=Q.concat(k(H,X,Z,et,!0));break}}}return Q}(O.graph,O.buckets,O.zeroIdx);return m.flatten(m.map(Y,function(H){return A.outEdges(H.v,H.w)}),!0)};var g=m.constant(1);function k(A,I,O,Y,H){var X=H?[]:void 0;return m.forEach(A.inEdges(Y.v),function(Z){var et=A.edge(Z),Q=A.node(Z.v);H&&X.push({v:Z.v,w:Z.w}),Q.out-=et,E(I,O,Q)}),m.forEach(A.outEdges(Y.v),function(Z){var et=A.edge(Z),Q=Z.w,gt=A.node(Q);gt.in-=et,E(I,O,gt)}),A.removeNode(Y.v),X}function E(A,I,O){O.out?O.in?A[O.out-O.in+I].enqueue(O):A[A.length-1].enqueue(O):A[0].enqueue(O)}},8123:(S,M,f)=>{var m=f(8436),h=f(1207),x=f(5995),g=f(8093),k=f(1138).normalizeRanks,E=f(4219),A=f(1138).removeEmptyRanks,I=f(2981),O=f(1133),Y=f(3258),H=f(3408),X=f(7873),Z=f(1138),et=f(574).Graph;S.exports=function(Lt,tt){var lt=tt&&tt.debugTiming?Z.time:Z.notime;lt("layout",function(){var q=lt(" buildLayoutGraph",function(){return function(Ut){var G=new et({multigraph:!0,compound:!0}),me=Dt(Ut.graph());return G.setGraph(m.merge({},gt,nt(me,Q),m.pick(me,ht))),m.forEach(Ut.nodes(),function(ve){var jt=Dt(Ut.node(ve));G.setNode(ve,m.defaults(nt(jt,xt),Tt)),G.setParent(ve,Ut.parent(ve))}),m.forEach(Ut.edges(),function(ve){var jt=Dt(Ut.edge(ve));G.setEdge(ve,m.merge({},bt,nt(jt,ne),m.pick(jt,at)))}),G}(Lt)});lt(" runLayout",function(){(function(Ut,G){G(" makeSpaceForEdgeLabels",function(){(function(me){var ve=me.graph();ve.ranksep/=2,m.forEach(me.edges(),function(jt){var ie=me.edge(jt);ie.minlen*=2,ie.labelpos.toLowerCase()!=="c"&&(ve.rankdir==="TB"||ve.rankdir==="BT"?ie.width+=ie.labeloffset:ie.height+=ie.labeloffset)})})(Ut)}),G(" removeSelfEdges",function(){(function(me){m.forEach(me.edges(),function(ve){if(ve.v===ve.w){var jt=me.node(ve.v);jt.selfEdges||(jt.selfEdges=[]),jt.selfEdges.push({e:ve,label:me.edge(ve)}),me.removeEdge(ve)}})})(Ut)}),G(" acyclic",function(){h.run(Ut)}),G(" nestingGraph.run",function(){I.run(Ut)}),G(" rank",function(){g(Z.asNonCompoundGraph(Ut))}),G(" injectEdgeLabelProxies",function(){(function(me){m.forEach(me.edges(),function(ve){var jt=me.edge(ve);if(jt.width&&jt.height){var ie=me.node(ve.v),he={rank:(me.node(ve.w).rank-ie.rank)/2+ie.rank,e:ve};Z.addDummyNode(me,"edge-proxy",he,"_ep")}})})(Ut)}),G(" removeEmptyRanks",function(){A(Ut)}),G(" nestingGraph.cleanup",function(){I.cleanup(Ut)}),G(" normalizeRanks",function(){k(Ut)}),G(" assignRankMinMax",function(){(function(me){var ve=0;m.forEach(me.nodes(),function(jt){var ie=me.node(jt);ie.borderTop&&(ie.minRank=me.node(ie.borderTop).rank,ie.maxRank=me.node(ie.borderBottom).rank,ve=m.max(ve,ie.maxRank))}),me.graph().maxRank=ve})(Ut)}),G(" removeEdgeLabelProxies",function(){(function(me){m.forEach(me.nodes(),function(ve){var jt=me.node(ve);jt.dummy==="edge-proxy"&&(me.edge(jt.e).labelRank=jt.rank,me.removeNode(ve))})})(Ut)}),G(" normalize.run",function(){x.run(Ut)}),G(" parentDummyChains",function(){E(Ut)}),G(" addBorderSegments",function(){O(Ut)}),G(" order",function(){H(Ut)}),G(" insertSelfEdges",function(){(function(me){var ve=Z.buildLayerMatrix(me);m.forEach(ve,function(jt){var ie=0;m.forEach(jt,function(he,pe){var le=me.node(he);le.order=pe+ie,m.forEach(le.selfEdges,function(oe){Z.addDummyNode(me,"selfedge",{width:oe.label.width,height:oe.label.height,rank:le.rank,order:pe+ ++ie,e:oe.e,label:oe.label},"_se")}),delete le.selfEdges})})})(Ut)}),G(" adjustCoordinateSystem",function(){Y.adjust(Ut)}),G(" position",function(){X(Ut)}),G(" positionSelfEdges",function(){(function(me){m.forEach(me.nodes(),function(ve){var jt=me.node(ve);if(jt.dummy==="selfedge"){var ie=me.node(jt.e.v),he=ie.x+ie.width/2,pe=ie.y,le=jt.x-he,oe=ie.height/2;me.setEdge(jt.e,jt.label),me.removeNode(ve),jt.label.points=[{x:he+2*le/3,y:pe-oe},{x:he+5*le/6,y:pe-oe},{x:he+le,y:pe},{x:he+5*le/6,y:pe+oe},{x:he+2*le/3,y:pe+oe}],jt.label.x=jt.x,jt.label.y=jt.y}})})(Ut)}),G(" removeBorderNodes",function(){(function(me){m.forEach(me.nodes(),function(ve){if(me.children(ve).length){var jt=me.node(ve),ie=me.node(jt.borderTop),he=me.node(jt.borderBottom),pe=me.node(m.last(jt.borderLeft)),le=me.node(m.last(jt.borderRight));jt.width=Math.abs(le.x-pe.x),jt.height=Math.abs(he.y-ie.y),jt.x=pe.x+jt.width/2,jt.y=ie.y+jt.height/2}}),m.forEach(me.nodes(),function(ve){me.node(ve).dummy==="border"&&me.removeNode(ve)})})(Ut)}),G(" normalize.undo",function(){x.undo(Ut)}),G(" fixupEdgeLabelCoords",function(){(function(me){m.forEach(me.edges(),function(ve){var jt=me.edge(ve);if(m.has(jt,"x"))switch(jt.labelpos!=="l"&&jt.labelpos!=="r"||(jt.width-=jt.labeloffset),jt.labelpos){case"l":jt.x-=jt.width/2+jt.labeloffset;break;case"r":jt.x+=jt.width/2+jt.labeloffset}})})(Ut)}),G(" undoCoordinateSystem",function(){Y.undo(Ut)}),G(" translateGraph",function(){(function(me){var ve=Number.POSITIVE_INFINITY,jt=0,ie=Number.POSITIVE_INFINITY,he=0,pe=me.graph(),le=pe.marginx||0,oe=pe.marginy||0;function wn(fe){var ae=fe.x,Qt=fe.y,St=fe.width,Kt=fe.height;ve=Math.min(ve,ae-St/2),jt=Math.max(jt,ae+St/2),ie=Math.min(ie,Qt-Kt/2),he=Math.max(he,Qt+Kt/2)}m.forEach(me.nodes(),function(fe){wn(me.node(fe))}),m.forEach(me.edges(),function(fe){var ae=me.edge(fe);m.has(ae,"x")&&wn(ae)}),ve-=le,ie-=oe,m.forEach(me.nodes(),function(fe){var ae=me.node(fe);ae.x-=ve,ae.y-=ie}),m.forEach(me.edges(),function(fe){var ae=me.edge(fe);m.forEach(ae.points,function(Qt){Qt.x-=ve,Qt.y-=ie}),m.has(ae,"x")&&(ae.x-=ve),m.has(ae,"y")&&(ae.y-=ie)}),pe.width=jt-ve+le,pe.height=he-ie+oe})(Ut)}),G(" assignNodeIntersects",function(){(function(me){m.forEach(me.edges(),function(ve){var jt,ie,he=me.edge(ve),pe=me.node(ve.v),le=me.node(ve.w);he.points?(jt=he.points[0],ie=he.points[he.points.length-1]):(he.points=[],jt=le,ie=pe),he.points.unshift(Z.intersectRect(pe,jt)),he.points.push(Z.intersectRect(le,ie))})})(Ut)}),G(" reversePoints",function(){(function(me){m.forEach(me.edges(),function(ve){var jt=me.edge(ve);jt.reversed&&jt.points.reverse()})})(Ut)}),G(" acyclic.undo",function(){h.undo(Ut)})})(q,lt)}),lt(" updateInputGraph",function(){(function(Ut,G){m.forEach(Ut.nodes(),function(me){var ve=Ut.node(me),jt=G.node(me);ve&&(ve.x=jt.x,ve.y=jt.y,G.children(me).length&&(ve.width=jt.width,ve.height=jt.height))}),m.forEach(Ut.edges(),function(me){var ve=Ut.edge(me),jt=G.edge(me);ve.points=jt.points,m.has(jt,"x")&&(ve.x=jt.x,ve.y=jt.y)}),Ut.graph().width=G.graph().width,Ut.graph().height=G.graph().height})(Lt,q)})})};var Q=["nodesep","edgesep","ranksep","marginx","marginy"],gt={ranksep:50,edgesep:20,nodesep:50,rankdir:"tb"},ht=["acyclicer","ranker","rankdir","align"],xt=["width","height"],Tt={width:0,height:0},ne=["minlen","weight","width","height","labeloffset"],bt={minlen:1,weight:1,width:0,height:0,labeloffset:10,labelpos:"r"},at=["labelpos"];function nt(Lt,tt){return m.mapValues(m.pick(Lt,tt),Number)}function Dt(Lt){var tt={};return m.forEach(Lt,function(lt,q){tt[q.toLowerCase()]=lt}),tt}},8436:(S,M,f)=>{var m;try{m={cloneDeep:f(361),constant:f(5703),defaults:f(1747),each:f(6073),filter:f(3105),find:f(3311),flatten:f(5564),forEach:f(4486),forIn:f(2620),has:f(8721),isUndefined:f(2353),last:f(928),map:f(5161),mapValues:f(6604),max:f(6162),merge:f(3857),min:f(3632),minBy:f(2762),now:f(7771),pick:f(9722),range:f(6026),reduce:f(4061),sortBy:f(9734),uniqueId:f(3955),values:f(2628),zipObject:f(7287)}}catch{}m||(m=window._),S.exports=m},2981:(S,M,f)=>{var m=f(8436),h=f(1138);function x(g,k,E,A,I,O,Y){var H=g.children(Y);if(H.length){var X=h.addBorderNode(g,"_bt"),Z=h.addBorderNode(g,"_bb"),et=g.node(Y);g.setParent(X,Y),et.borderTop=X,g.setParent(Z,Y),et.borderBottom=Z,m.forEach(H,function(Q){x(g,k,E,A,I,O,Q);var gt=g.node(Q),ht=gt.borderTop?gt.borderTop:Q,xt=gt.borderBottom?gt.borderBottom:Q,Tt=gt.borderTop?A:2*A,ne=ht!==xt?1:I-O[Y]+1;g.setEdge(X,ht,{weight:Tt,minlen:ne,nestingEdge:!0}),g.setEdge(xt,Z,{weight:Tt,minlen:ne,nestingEdge:!0})}),g.parent(Y)||g.setEdge(k,X,{weight:0,minlen:I+O[Y]})}else Y!==k&&g.setEdge(k,Y,{weight:0,minlen:E})}S.exports={run:function(g){var k=h.addDummyNode(g,"root",{},"_root"),E=function(Y){var H={};function X(Z,et){var Q=Y.children(Z);Q&&Q.length&&m.forEach(Q,function(gt){X(gt,et+1)}),H[Z]=et}return m.forEach(Y.children(),function(Z){X(Z,1)}),H}(g),A=m.max(m.values(E))-1,I=2*A+1;g.graph().nestingRoot=k,m.forEach(g.edges(),function(Y){g.edge(Y).minlen*=I});var O=function(Y){return m.reduce(Y.edges(),function(H,X){return H+Y.edge(X).weight},0)}(g)+1;m.forEach(g.children(),function(Y){x(g,k,I,O,A,E,Y)}),g.graph().nodeRankFactor=I},cleanup:function(g){var k=g.graph();g.removeNode(k.nestingRoot),delete k.nestingRoot,m.forEach(g.edges(),function(E){g.edge(E).nestingEdge&&g.removeEdge(E)})}}},5995:(S,M,f)=>{var m=f(8436),h=f(1138);S.exports={run:function(x){x.graph().dummyChains=[],m.forEach(x.edges(),function(g){(function(k,E){var A,I,O,Y=E.v,H=k.node(Y).rank,X=E.w,Z=k.node(X).rank,et=E.name,Q=k.edge(E),gt=Q.labelRank;if(Z!==H+1){for(k.removeEdge(E),O=0,++H;H{var m=f(8436);S.exports=function(h,x,g){var k,E={};m.forEach(g,function(A){for(var I,O,Y=h.parent(A);Y;){if((I=h.parent(Y))?(O=E[I],E[I]=Y):(O=k,k=Y),O&&O!==Y)return void x.setEdge(O,Y);Y=I}})}},5439:(S,M,f)=>{var m=f(8436);S.exports=function(h,x){return m.map(x,function(g){var k=h.inEdges(g);if(k.length){var E=m.reduce(k,function(A,I){var O=h.edge(I),Y=h.node(I.v);return{sum:A.sum+O.weight*Y.order,weight:A.weight+O.weight}},{sum:0,weight:0});return{v:g,barycenter:E.sum/E.weight,weight:E.weight}}return{v:g}})}},3128:(S,M,f)=>{var m=f(8436),h=f(574).Graph;S.exports=function(x,g,k){var E=function(I){for(var O;I.hasNode(O=m.uniqueId("_root")););return O}(x),A=new h({compound:!0}).setGraph({root:E}).setDefaultNodeLabel(function(I){return x.node(I)});return m.forEach(x.nodes(),function(I){var O=x.node(I),Y=x.parent(I);(O.rank===g||O.minRank<=g&&g<=O.maxRank)&&(A.setNode(I),A.setParent(I,Y||E),m.forEach(x[k](I),function(H){var X=H.v===I?H.w:H.v,Z=A.edge(X,I),et=m.isUndefined(Z)?0:Z.weight;A.setEdge(X,I,{weight:x.edge(H).weight+et})}),m.has(O,"minRank")&&A.setNode(I,{borderLeft:O.borderLeft[g],borderRight:O.borderRight[g]}))}),A}},6630:(S,M,f)=>{var m=f(8436);function h(x,g,k){for(var E=m.zipObject(k,m.map(k,function(X,Z){return Z})),A=m.flatten(m.map(g,function(X){return m.sortBy(m.map(x.outEdges(X),function(Z){return{pos:E[Z.w],weight:x.edge(Z).weight}}),"pos")}),!0),I=1;I0;)Z%2&&(et+=Y[Z+1]),Y[Z=Z-1>>1]+=X.weight;H+=X.weight*et})),H}S.exports=function(x,g){for(var k=0,E=1;E{var m=f(8436),h=f(2588),x=f(6630),g=f(1026),k=f(3128),E=f(5093),A=f(574).Graph,I=f(1138);function O(X,Z,et){return m.map(Z,function(Q){return k(X,Q,et)})}function Y(X,Z){var et=new A;m.forEach(X,function(Q){var gt=Q.graph().root,ht=g(Q,gt,et,Z);m.forEach(ht.vs,function(xt,Tt){Q.node(xt).order=Tt}),E(Q,et,ht.vs)})}function H(X,Z){m.forEach(Z,function(et){m.forEach(et,function(Q,gt){X.node(Q).order=gt})})}S.exports=function(X){var Z=I.maxRank(X),et=O(X,m.range(1,Z+1),"inEdges"),Q=O(X,m.range(Z-1,-1,-1),"outEdges"),gt=h(X);H(X,gt);for(var ht,xt=Number.POSITIVE_INFINITY,Tt=0,ne=0;ne<4;++Tt,++ne){Y(Tt%2?et:Q,Tt%4>=2),gt=I.buildLayerMatrix(X);var bt=x(X,gt);bt{var m=f(8436);S.exports=function(h){var x={},g=m.filter(h.nodes(),function(I){return!h.children(I).length}),k=m.max(m.map(g,function(I){return h.node(I).rank})),E=m.map(m.range(k+1),function(){return[]}),A=m.sortBy(g,function(I){return h.node(I).rank});return m.forEach(A,function I(O){if(!m.has(x,O)){x[O]=!0;var Y=h.node(O);E[Y.rank].push(O),m.forEach(h.successors(O),I)}}),E}},9567:(S,M,f)=>{var m=f(8436);S.exports=function(h,x){var g={};return m.forEach(h,function(k,E){var A=g[k.v]={indegree:0,in:[],out:[],vs:[k.v],i:E};m.isUndefined(k.barycenter)||(A.barycenter=k.barycenter,A.weight=k.weight)}),m.forEach(x.edges(),function(k){var E=g[k.v],A=g[k.w];m.isUndefined(E)||m.isUndefined(A)||(A.indegree++,E.out.push(g[k.w]))}),function(k){var E=[];function A(Y){return function(H){var X,Z,et,Q;H.merged||(m.isUndefined(H.barycenter)||m.isUndefined(Y.barycenter)||H.barycenter>=Y.barycenter)&&(Z=H,et=0,Q=0,(X=Y).weight&&(et+=X.barycenter*X.weight,Q+=X.weight),Z.weight&&(et+=Z.barycenter*Z.weight,Q+=Z.weight),X.vs=Z.vs.concat(X.vs),X.barycenter=et/Q,X.weight=Q,X.i=Math.min(Z.i,X.i),Z.merged=!0)}}function I(Y){return function(H){H.in.push(Y),--H.indegree==0&&k.push(H)}}for(;k.length;){var O=k.pop();E.push(O),m.forEach(O.in.reverse(),A(O)),m.forEach(O.out,I(O))}return m.map(m.filter(E,function(Y){return!Y.merged}),function(Y){return m.pick(Y,["vs","i","barycenter","weight"])})}(m.filter(g,function(k){return!k.indegree}))}},1026:(S,M,f)=>{var m=f(8436),h=f(5439),x=f(9567),g=f(7304);S.exports=function k(E,A,I,O){var Y=E.children(A),H=E.node(A),X=H?H.borderLeft:void 0,Z=H?H.borderRight:void 0,et={};X&&(Y=m.filter(Y,function(ne){return ne!==X&&ne!==Z}));var Q=h(E,Y);m.forEach(Q,function(ne){if(E.children(ne.v).length){var bt=k(E,ne.v,I,O);et[ne.v]=bt,m.has(bt,"barycenter")&&(at=ne,nt=bt,m.isUndefined(at.barycenter)?(at.barycenter=nt.barycenter,at.weight=nt.weight):(at.barycenter=(at.barycenter*at.weight+nt.barycenter*nt.weight)/(at.weight+nt.weight),at.weight+=nt.weight))}var at,nt});var gt=x(Q,I);(function(ne,bt){m.forEach(ne,function(at){at.vs=m.flatten(at.vs.map(function(nt){return bt[nt]?bt[nt].vs:nt}),!0)})})(gt,et);var ht=g(gt,O);if(X&&(ht.vs=m.flatten([X,ht.vs,Z],!0),E.predecessors(X).length)){var xt=E.node(E.predecessors(X)[0]),Tt=E.node(E.predecessors(Z)[0]);m.has(ht,"barycenter")||(ht.barycenter=0,ht.weight=0),ht.barycenter=(ht.barycenter*ht.weight+xt.order+Tt.order)/(ht.weight+2),ht.weight+=2}return ht}},7304:(S,M,f)=>{var m=f(8436),h=f(1138);function x(g,k,E){for(var A;k.length&&(A=m.last(k)).i<=E;)k.pop(),g.push(A.vs),E++;return E}S.exports=function(g,k){var E,A=h.partition(g,function(Q){return m.has(Q,"barycenter")}),I=A.lhs,O=m.sortBy(A.rhs,function(Q){return-Q.i}),Y=[],H=0,X=0,Z=0;I.sort((E=!!k,function(Q,gt){return Q.barycentergt.barycenter?1:E?gt.i-Q.i:Q.i-gt.i})),Z=x(Y,O,Z),m.forEach(I,function(Q){Z+=Q.vs.length,Y.push(Q.vs),H+=Q.barycenter*Q.weight,X+=Q.weight,Z=x(Y,O,Z)});var et={vs:m.flatten(Y,!0)};return X&&(et.barycenter=H/X,et.weight=X),et}},4219:(S,M,f)=>{var m=f(8436);S.exports=function(h){var x=function(g){var k={},E=0;return m.forEach(g.children(),function A(I){var O=E;m.forEach(g.children(I),A),k[I]={low:O,lim:E++}}),k}(h);m.forEach(h.graph().dummyChains,function(g){for(var k=h.node(g),E=k.edgeObj,A=function(Z,et,Q,gt){var ht,xt,Tt=[],ne=[],bt=Math.min(et[Q].low,et[gt].low),at=Math.max(et[Q].lim,et[gt].lim);ht=Q;do ht=Z.parent(ht),Tt.push(ht);while(ht&&(et[ht].low>bt||at>et[ht].lim));for(xt=ht,ht=gt;(ht=Z.parent(ht))!==xt;)ne.push(ht);return{path:Tt.concat(ne.reverse()),lca:xt}}(h,x,E.v,E.w),I=A.path,O=A.lca,Y=0,H=I[Y],X=!0;g!==E.w;){if(k=h.node(g),X){for(;(H=I[Y])!==O&&h.node(H).maxRank{var m=f(8436),h=f(574).Graph,x=f(1138);function g(Z,et){var Q={};return m.reduce(et,function(gt,ht){var xt=0,Tt=0,ne=gt.length,bt=m.last(ht);return m.forEach(ht,function(at,nt){var Dt=function(tt,lt){if(tt.node(lt).dummy)return m.find(tt.predecessors(lt),function(q){return tt.node(q).dummy})}(Z,at),Lt=Dt?Z.node(Dt).order:ne;(Dt||at===bt)&&(m.forEach(ht.slice(Tt,nt+1),function(tt){m.forEach(Z.predecessors(tt),function(lt){var q=Z.node(lt),Ut=q.order;!(Utbt)&&E(Q,Dt,at)})})}return m.reduce(et,function(ht,xt){var Tt,ne=-1,bt=0;return m.forEach(xt,function(at,nt){if(Z.node(at).dummy==="border"){var Dt=Z.predecessors(at);Dt.length&&(Tt=Z.node(Dt[0]).order,gt(xt,bt,nt,ne,Tt),bt=nt,ne=Tt)}gt(xt,bt,xt.length,Tt,ht.length)}),xt}),Q}function E(Z,et,Q){if(et>Q){var gt=et;et=Q,Q=gt}var ht=Z[et];ht||(Z[et]=ht={}),ht[Q]=!0}function A(Z,et,Q){if(et>Q){var gt=et;et=Q,Q=gt}return m.has(Z[et],Q)}function I(Z,et,Q,gt){var ht={},xt={},Tt={};return m.forEach(et,function(ne){m.forEach(ne,function(bt,at){ht[bt]=bt,xt[bt]=bt,Tt[bt]=at})}),m.forEach(et,function(ne){var bt=-1;m.forEach(ne,function(at){var nt=gt(at);if(nt.length){nt=m.sortBy(nt,function(q){return Tt[q]});for(var Dt=(nt.length-1)/2,Lt=Math.floor(Dt),tt=Math.ceil(Dt);Lt<=tt;++Lt){var lt=nt[Lt];xt[at]===at&&bt{var m=f(8436),h=f(1138),x=f(3573).positionX;S.exports=function(g){(function(k){var E=h.buildLayerMatrix(k),A=k.graph().ranksep,I=0;m.forEach(E,function(O){var Y=m.max(m.map(O,function(H){return k.node(H).height}));m.forEach(O,function(H){k.node(H).y=I+Y/2}),I+=Y+A})})(g=h.asNonCompoundGraph(g)),m.forEach(x(g),function(k,E){g.node(E).x=k})}},300:(S,M,f)=>{var m=f(8436),h=f(574).Graph,x=f(6681).slack;function g(A,I){return m.forEach(A.nodes(),function O(Y){m.forEach(I.nodeEdges(Y),function(H){var X=H.v,Z=Y===X?H.w:X;A.hasNode(Z)||x(I,H)||(A.setNode(Z,{}),A.setEdge(Y,Z,{}),O(Z))})}),A.nodeCount()}function k(A,I){return m.minBy(I.edges(),function(O){if(A.hasNode(O.v)!==A.hasNode(O.w))return x(I,O)})}function E(A,I,O){m.forEach(A.nodes(),function(Y){I.node(Y).rank+=O})}S.exports=function(A){var I,O,Y=new h({directed:!1}),H=A.nodes()[0],X=A.nodeCount();for(Y.setNode(H,{});g(Y,A){var m=f(6681).longestPath,h=f(300),x=f(2472);S.exports=function(k){switch(k.graph().ranker){case"network-simplex":default:(function(E){x(E)})(k);break;case"tight-tree":(function(E){m(E),h(E)})(k);break;case"longest-path":g(k)}};var g=m},2472:(S,M,f)=>{var m=f(8436),h=f(300),x=f(6681).slack,g=f(6681).longestPath,k=f(574).alg.preorder,E=f(574).alg.postorder,A=f(1138).simplify;function I(ht){ht=A(ht),g(ht);var xt,Tt=h(ht);for(H(Tt),O(Tt,ht);xt=Z(Tt);)Q(Tt,ht,xt,et(Tt,ht,xt))}function O(ht,xt){var Tt=E(ht,ht.nodes());Tt=Tt.slice(0,Tt.length-1),m.forEach(Tt,function(ne){(function(bt,at,nt){var Dt=bt.node(nt).parent;bt.edge(nt,Dt).cutvalue=Y(bt,at,nt)})(ht,xt,ne)})}function Y(ht,xt,Tt){var ne=ht.node(Tt).parent,bt=!0,at=xt.edge(Tt,ne),nt=0;return at||(bt=!1,at=xt.edge(ne,Tt)),nt=at.weight,m.forEach(xt.nodeEdges(Tt),function(Dt){var Lt,tt,lt=Dt.v===Tt,q=lt?Dt.w:Dt.v;if(q!==ne){var Ut=lt===bt,G=xt.edge(Dt).weight;if(nt+=Ut?G:-G,Lt=Tt,tt=q,ht.hasEdge(Lt,tt)){var me=ht.edge(Tt,q).cutvalue;nt+=Ut?-me:me}}}),nt}function H(ht,xt){arguments.length<2&&(xt=ht.nodes()[0]),X(ht,{},1,xt)}function X(ht,xt,Tt,ne,bt){var at=Tt,nt=ht.node(ne);return xt[ne]=!0,m.forEach(ht.neighbors(ne),function(Dt){m.has(xt,Dt)||(Tt=X(ht,xt,Tt,Dt,ne))}),nt.low=at,nt.lim=Tt++,bt?nt.parent=bt:delete nt.parent,Tt}function Z(ht){return m.find(ht.edges(),function(xt){return ht.edge(xt).cutvalue<0})}function et(ht,xt,Tt){var ne=Tt.v,bt=Tt.w;xt.hasEdge(ne,bt)||(ne=Tt.w,bt=Tt.v);var at=ht.node(ne),nt=ht.node(bt),Dt=at,Lt=!1;at.lim>nt.lim&&(Dt=nt,Lt=!0);var tt=m.filter(xt.edges(),function(lt){return Lt===gt(0,ht.node(lt.v),Dt)&&Lt!==gt(0,ht.node(lt.w),Dt)});return m.minBy(tt,function(lt){return x(xt,lt)})}function Q(ht,xt,Tt,ne){var bt=Tt.v,at=Tt.w;ht.removeEdge(bt,at),ht.setEdge(ne.v,ne.w,{}),H(ht),O(ht,xt),function(nt,Dt){var Lt=m.find(nt.nodes(),function(lt){return!Dt.node(lt).parent}),tt=k(nt,Lt);tt=tt.slice(1),m.forEach(tt,function(lt){var q=nt.node(lt).parent,Ut=Dt.edge(lt,q),G=!1;Ut||(Ut=Dt.edge(q,lt),G=!0),Dt.node(lt).rank=Dt.node(q).rank+(G?Ut.minlen:-Ut.minlen)})}(ht,xt)}function gt(ht,xt,Tt){return Tt.low<=xt.lim&&xt.lim<=Tt.lim}S.exports=I,I.initLowLimValues=H,I.initCutValues=O,I.calcCutValue=Y,I.leaveEdge=Z,I.enterEdge=et,I.exchangeEdges=Q},6681:(S,M,f)=>{var m=f(8436);S.exports={longestPath:function(h){var x={};m.forEach(h.sources(),function g(k){var E=h.node(k);if(m.has(x,k))return E.rank;x[k]=!0;var A=m.min(m.map(h.outEdges(k),function(I){return g(I.w)-h.edge(I).minlen}));return A!==Number.POSITIVE_INFINITY&&A!=null||(A=0),E.rank=A})},slack:function(h,x){return h.node(x.w).rank-h.node(x.v).rank-h.edge(x).minlen}}},1138:(S,M,f)=>{var m=f(8436),h=f(574).Graph;function x(k,E,A,I){var O;do O=m.uniqueId(I);while(k.hasNode(O));return A.dummy=E,k.setNode(O,A),O}function g(k){return m.max(m.map(k.nodes(),function(E){var A=k.node(E).rank;if(!m.isUndefined(A))return A}))}S.exports={addDummyNode:x,simplify:function(k){var E=new h().setGraph(k.graph());return m.forEach(k.nodes(),function(A){E.setNode(A,k.node(A))}),m.forEach(k.edges(),function(A){var I=E.edge(A.v,A.w)||{weight:0,minlen:1},O=k.edge(A);E.setEdge(A.v,A.w,{weight:I.weight+O.weight,minlen:Math.max(I.minlen,O.minlen)})}),E},asNonCompoundGraph:function(k){var E=new h({multigraph:k.isMultigraph()}).setGraph(k.graph());return m.forEach(k.nodes(),function(A){k.children(A).length||E.setNode(A,k.node(A))}),m.forEach(k.edges(),function(A){E.setEdge(A,k.edge(A))}),E},successorWeights:function(k){var E=m.map(k.nodes(),function(A){var I={};return m.forEach(k.outEdges(A),function(O){I[O.w]=(I[O.w]||0)+k.edge(O).weight}),I});return m.zipObject(k.nodes(),E)},predecessorWeights:function(k){var E=m.map(k.nodes(),function(A){var I={};return m.forEach(k.inEdges(A),function(O){I[O.v]=(I[O.v]||0)+k.edge(O).weight}),I});return m.zipObject(k.nodes(),E)},intersectRect:function(k,E){var A,I,O=k.x,Y=k.y,H=E.x-O,X=E.y-Y,Z=k.width/2,et=k.height/2;if(!H&&!X)throw new Error("Not possible to find intersection inside of the rectangle");return Math.abs(X)*Z>Math.abs(H)*et?(X<0&&(et=-et),A=et*H/X,I=et):(H<0&&(Z=-Z),A=Z,I=Z*X/H),{x:O+A,y:Y+I}},buildLayerMatrix:function(k){var E=m.map(m.range(g(k)+1),function(){return[]});return m.forEach(k.nodes(),function(A){var I=k.node(A),O=I.rank;m.isUndefined(O)||(E[O][I.order]=A)}),E},normalizeRanks:function(k){var E=m.min(m.map(k.nodes(),function(A){return k.node(A).rank}));m.forEach(k.nodes(),function(A){var I=k.node(A);m.has(I,"rank")&&(I.rank-=E)})},removeEmptyRanks:function(k){var E=m.min(m.map(k.nodes(),function(Y){return k.node(Y).rank})),A=[];m.forEach(k.nodes(),function(Y){var H=k.node(Y).rank-E;A[H]||(A[H]=[]),A[H].push(Y)});var I=0,O=k.graph().nodeRankFactor;m.forEach(A,function(Y,H){m.isUndefined(Y)&&H%O!=0?--I:I&&m.forEach(Y,function(X){k.node(X).rank+=I})})},addBorderNode:function(k,E,A,I){var O={width:0,height:0};return arguments.length>=4&&(O.rank=A,O.order=I),x(k,"border",O,E)},maxRank:g,partition:function(k,E){var A={lhs:[],rhs:[]};return m.forEach(k,function(I){E(I)?A.lhs.push(I):A.rhs.push(I)}),A},time:function(k,E){var A=m.now();try{return E()}finally{console.log(k+" time: "+(m.now()-A)+"ms")}},notime:function(k,E){return E()}}},8177:S=>{S.exports="0.8.5"},7856:function(S){S.exports=function(){var M=Object.hasOwnProperty,f=Object.setPrototypeOf,m=Object.isFrozen,h=Object.getPrototypeOf,x=Object.getOwnPropertyDescriptor,g=Object.freeze,k=Object.seal,E=Object.create,A=typeof Reflect!="undefined"&&Reflect,I=A.apply,O=A.construct;I||(I=function(It,se,Se){return It.apply(se,Se)}),g||(g=function(It){return It}),k||(k=function(It){return It}),O||(O=function(It,se){return new(Function.prototype.bind.apply(It,[null].concat(function(Se){if(Array.isArray(Se)){for(var be=0,Ae=Array(Se.length);be1?Se-1:0),Ae=1;Ae/gm),oe=k(/^data-[\-\w.\u00B7-\uFFFF]/),wn=k(/^aria-[\-\w]+$/),fe=k(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),ae=k(/^(?:\w+script|data):/i),Qt=k(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),St=k(/^html$/i),Kt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(It){return typeof It}:function(It){return It&&typeof Symbol=="function"&&It.constructor===Symbol&&It!==Symbol.prototype?"symbol":typeof It};function mt(It){if(Array.isArray(It)){for(var se=0,Se=Array(It.length);se0&&arguments[0]!==void 0?arguments[0]:Ht(),Se=function(Yt){return It(Yt)};if(Se.version="2.3.6",Se.removed=[],!se||!se.document||se.document.nodeType!==9)return Se.isSupported=!1,Se;var be=se.document,Ae=se.document,cn=se.DocumentFragment,De=se.HTMLTemplateElement,Be=se.Node,Le=se.Element,Ze=se.NodeFilter,Ke=se.NamedNodeMap,Je=Ke===void 0?se.NamedNodeMap||se.MozNamedAttrMap:Ke,$e=se.HTMLFormElement,Ue=se.DOMParser,Yn=se.trustedTypes,Me=Le.prototype,un=Dt(Me,"cloneNode"),gn=Dt(Me,"nextSibling"),kr=Dt(Me,"childNodes"),kn=Dt(Me,"parentNode");if(typeof De=="function"){var sr=Ae.createElement("template");sr.content&&sr.content.ownerDocument&&(Ae=sr.content.ownerDocument)}var rn=kt(Yn,be),ln=rn?rn.createHTML(""):"",Ye=Ae,mn=Ye.implementation,bn=Ye.createNodeIterator,zn=Ye.createDocumentFragment,Un=Ye.getElementsByTagName,Cr=be.importNode,Ln={};try{Ln=nt(Ae).documentMode?Ae.documentMode:{}}catch{}var Sn={};Se.isSupported=typeof kn=="function"&&mn&&mn.createHTMLDocument!==void 0&&Ln!==9;var Fn=pe,qn=le,Vn=oe,Xn=wn,Tn=ae,In=Qt,An=fe,hn=null,Hn=at({},[].concat(mt(Lt),mt(tt),mt(lt),mt(Ut),mt(me))),ir=null,ra=at({},[].concat(mt(ve),mt(jt),mt(ie),mt(he))),gr=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}})),Bn=null,io=null,Ta=!0,Vr=!0,Gr=!1,Fr=!1,Er=!1,Xr=!1,Ur=!1,qr=!1,Dr=!1,li=!1,hi=!0,cr=!0,Hr=!1,ia={},Lr=null,aa=at({},["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"]),ao=null,fi=at({},["audio","video","img","source","image","track"]),an=null,Jn=at({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Cn="http://www.w3.org/1998/Math/MathML",ze="http://www.w3.org/2000/svg",$n="http://www.w3.org/1999/xhtml",pt=$n,ii=!1,Zt=void 0,ki=["application/xhtml+xml","text/html"],go="text/html",Ca=void 0,Ui=null,Yo=Ae.createElement("form"),zo=function(Yt){return Yt instanceof RegExp||Yt instanceof Function},Pr=function(Yt){Ui&&Ui===Yt||(Yt&&(Yt===void 0?"undefined":Kt(Yt))==="object"||(Yt={}),Yt=nt(Yt),hn="ALLOWED_TAGS"in Yt?at({},Yt.ALLOWED_TAGS):Hn,ir="ALLOWED_ATTR"in Yt?at({},Yt.ALLOWED_ATTR):ra,an="ADD_URI_SAFE_ATTR"in Yt?at(nt(Jn),Yt.ADD_URI_SAFE_ATTR):Jn,ao="ADD_DATA_URI_TAGS"in Yt?at(nt(fi),Yt.ADD_DATA_URI_TAGS):fi,Lr="FORBID_CONTENTS"in Yt?at({},Yt.FORBID_CONTENTS):aa,Bn="FORBID_TAGS"in Yt?at({},Yt.FORBID_TAGS):{},io="FORBID_ATTR"in Yt?at({},Yt.FORBID_ATTR):{},ia="USE_PROFILES"in Yt&&Yt.USE_PROFILES,Ta=Yt.ALLOW_ARIA_ATTR!==!1,Vr=Yt.ALLOW_DATA_ATTR!==!1,Gr=Yt.ALLOW_UNKNOWN_PROTOCOLS||!1,Fr=Yt.SAFE_FOR_TEMPLATES||!1,Er=Yt.WHOLE_DOCUMENT||!1,qr=Yt.RETURN_DOM||!1,Dr=Yt.RETURN_DOM_FRAGMENT||!1,li=Yt.RETURN_TRUSTED_TYPE||!1,Ur=Yt.FORCE_BODY||!1,hi=Yt.SANITIZE_DOM!==!1,cr=Yt.KEEP_CONTENT!==!1,Hr=Yt.IN_PLACE||!1,An=Yt.ALLOWED_URI_REGEXP||An,pt=Yt.NAMESPACE||$n,Yt.CUSTOM_ELEMENT_HANDLING&&zo(Yt.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(gr.tagNameCheck=Yt.CUSTOM_ELEMENT_HANDLING.tagNameCheck),Yt.CUSTOM_ELEMENT_HANDLING&&zo(Yt.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(gr.attributeNameCheck=Yt.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),Yt.CUSTOM_ELEMENT_HANDLING&&typeof Yt.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(gr.allowCustomizedBuiltInElements=Yt.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Zt=Zt=ki.indexOf(Yt.PARSER_MEDIA_TYPE)===-1?go:Yt.PARSER_MEDIA_TYPE,Ca=Zt==="application/xhtml+xml"?function(Ve){return Ve}:et,Fr&&(Vr=!1),Dr&&(qr=!0),ia&&(hn=at({},[].concat(mt(me))),ir=[],ia.html===!0&&(at(hn,Lt),at(ir,ve)),ia.svg===!0&&(at(hn,tt),at(ir,jt),at(ir,he)),ia.svgFilters===!0&&(at(hn,lt),at(ir,jt),at(ir,he)),ia.mathMl===!0&&(at(hn,Ut),at(ir,ie),at(ir,he))),Yt.ADD_TAGS&&(hn===Hn&&(hn=nt(hn)),at(hn,Yt.ADD_TAGS)),Yt.ADD_ATTR&&(ir===ra&&(ir=nt(ir)),at(ir,Yt.ADD_ATTR)),Yt.ADD_URI_SAFE_ATTR&&at(an,Yt.ADD_URI_SAFE_ATTR),Yt.FORBID_CONTENTS&&(Lr===aa&&(Lr=nt(Lr)),at(Lr,Yt.FORBID_CONTENTS)),cr&&(hn["#text"]=!0),Er&&at(hn,["html","head","body"]),hn.table&&(at(hn,["tbody"]),delete Bn.tbody),g&&g(Yt),Ui=Yt)},qi=at({},["mi","mo","mn","ms","mtext"]),Dn=at({},["foreignobject","desc","title","annotation-xml"]),oa=at({},tt);at(oa,lt),at(oa,q);var sa=at({},Ut);at(sa,G);var $r=function(Yt){var Ve=kn(Yt);Ve&&Ve.tagName||(Ve={namespaceURI:$n,tagName:"template"});var qe=et(Yt.tagName),lr=et(Ve.tagName);if(Yt.namespaceURI===ze)return Ve.namespaceURI===$n?qe==="svg":Ve.namespaceURI===Cn?qe==="svg"&&(lr==="annotation-xml"||qi[lr]):Boolean(oa[qe]);if(Yt.namespaceURI===Cn)return Ve.namespaceURI===$n?qe==="math":Ve.namespaceURI===ze?qe==="math"&&Dn[lr]:Boolean(sa[qe]);if(Yt.namespaceURI===$n){if(Ve.namespaceURI===ze&&!Dn[lr]||Ve.namespaceURI===Cn&&!qi[lr])return!1;var Sr=at({},["title","style","font","a","script"]);return!sa[qe]&&(Sr[qe]||!oa[qe])}return!1},ar=function(Yt){Z(Se.removed,{element:Yt});try{Yt.parentNode.removeChild(Yt)}catch{try{Yt.outerHTML=ln}catch{Yt.remove()}}},di=function(Yt,Ve){try{Z(Se.removed,{attribute:Ve.getAttributeNode(Yt),from:Ve})}catch{Z(Se.removed,{attribute:null,from:Ve})}if(Ve.removeAttribute(Yt),Yt==="is"&&!ir[Yt])if(qr||Dr)try{ar(Ve)}catch{}else try{Ve.setAttribute(Yt,"")}catch{}},Zr=function(Yt){var Ve=void 0,qe=void 0;if(Ur)Yt=""+Yt;else{var lr=Q(Yt,/^[\r\n\t ]+/);qe=lr&&lr[0]}Zt==="application/xhtml+xml"&&(Yt=''+Yt+"");var Sr=rn?rn.createHTML(Yt):Yt;if(pt===$n)try{Ve=new Ue().parseFromString(Sr,Zt)}catch{}if(!Ve||!Ve.documentElement){Ve=mn.createDocument(pt,"template",null);try{Ve.documentElement.innerHTML=ii?"":Sr}catch{}}var ai=Ve.body||Ve.documentElement;return Yt&&qe&&ai.insertBefore(Ae.createTextNode(qe),ai.childNodes[0]||null),pt===$n?Un.call(Ve,Er?"html":"body")[0]:Er?Ve.documentElement:ai},Br=function(Yt){return bn.call(Yt.ownerDocument||Yt,Yt,Ze.SHOW_ELEMENT|Ze.SHOW_COMMENT|Ze.SHOW_TEXT,null,!1)},Kr=function(Yt){return Yt instanceof $e&&(typeof Yt.nodeName!="string"||typeof Yt.textContent!="string"||typeof Yt.removeChild!="function"||!(Yt.attributes instanceof Je)||typeof Yt.removeAttribute!="function"||typeof Yt.setAttribute!="function"||typeof Yt.namespaceURI!="string"||typeof Yt.insertBefore!="function")},Li=function(Yt){return(Be===void 0?"undefined":Kt(Be))==="object"?Yt instanceof Be:Yt&&(Yt===void 0?"undefined":Kt(Yt))==="object"&&typeof Yt.nodeType=="number"&&typeof Yt.nodeName=="string"},mr=function(Yt,Ve,qe){Sn[Yt]&&H(Sn[Yt],function(lr){lr.call(Se,Ve,qe,Ui)})},Hi=function(Yt){var Ve=void 0;if(mr("beforeSanitizeElements",Yt,null),Kr(Yt)||Q(Yt.nodeName,/[\u0080-\uFFFF]/))return ar(Yt),!0;var qe=Ca(Yt.nodeName);if(mr("uponSanitizeElement",Yt,{tagName:qe,allowedTags:hn}),!Li(Yt.firstElementChild)&&(!Li(Yt.content)||!Li(Yt.content.firstElementChild))&&Tt(/<[/\w]/g,Yt.innerHTML)&&Tt(/<[/\w]/g,Yt.textContent)||qe==="select"&&Tt(/