1207 lines
1.2 MiB
Plaintext
1207 lines
1.2 MiB
Plaintext
function su(){}const s7=r=>r;function eT(r,s){for(const o in s)r[o]=s[o];return r}function c7(r){return r()}function u7(){return Object.create(null)}function Pd(r){r.forEach(c7)}function Y6(r){return typeof r=="function"}function nT(r,s){return r!=r?s==s:r!==s||r&&typeof r=="object"||typeof r=="function"}function rT(r){return Object.keys(r).length===0}function j6(r,...s){if(r==null)return su;const o=r.subscribe(...s);return o.unsubscribe?()=>o.unsubscribe():o}function YN(r){let s;return j6(r,o=>s=o)(),s}function jN(r,s,o){r.$$.on_destroy.push(j6(s,o))}function zN(r,s,o,l){if(r){const c=l7(r,s,o,l);return r[0](c)}}function l7(r,s,o,l){return r[1]&&l?eT(o.ctx.slice(),r[1](l(s))):o.ctx}function UN(r,s,o,l){if(r[2]&&l){const c=r[2](l(o));if(s.dirty===void 0)return c;if(typeof c=="object"){const y=[],p=Math.max(s.dirty.length,c.length);for(let b=0;b<p;b+=1)y[b]=s.dirty[b]|c[b];return y}return s.dirty|c}return s.dirty}function $N(r,s,o,l,c,y){if(c){const p=l7(s,o,l,y);r.p(p,c)}}function HN(r){if(r.ctx.length>32){const s=[],o=r.ctx.length/32;for(let l=0;l<o;l++)s[l]=-1;return s}return-1}function WN(r){return r==null?"":r}function qN(r,s,o){return r.set(o),s}const h7=typeof window!="undefined";let iT=h7?()=>window.performance.now():()=>Date.now(),z6=h7?r=>requestAnimationFrame(r):su;const Ip=new Set;function f7(r){Ip.forEach(s=>{s.c(r)||(Ip.delete(s),s.f())}),Ip.size!==0&&z6(f7)}function aT(r){let s;return Ip.size===0&&z6(f7),{promise:new Promise(o=>{Ip.add(s={c:r,f:o})}),abort(){Ip.delete(s)}}}let z4=!1;function oT(){z4=!0}function sT(){z4=!1}function cT(r,s,o,l){for(;r<s;){const c=r+(s-r>>1);o(c)<=l?r=c+1:s=c}return r}function uT(r){if(r.hydrate_init)return;r.hydrate_init=!0;let s=r.childNodes;if(r.nodeName==="HEAD"){const T=[];for(let k=0;k<s.length;k++){const D=s[k];D.claim_order!==void 0&&T.push(D)}s=T}const o=new Int32Array(s.length+1),l=new Int32Array(s.length);o[0]=-1;let c=0;for(let T=0;T<s.length;T++){const k=s[T].claim_order,D=(c>0&&s[o[c]].claim_order<=k?c+1:cT(1,c,R=>s[o[R]].claim_order,k))-1;l[T]=o[D]+1;const O=D+1;o[O]=T,c=Math.max(O,c)}const y=[],p=[];let b=s.length-1;for(let T=o[c]+1;T!=0;T=l[T-1]){for(y.push(s[T-1]);b>=T;b--)p.push(s[b]);b--}for(;b>=0;b--)p.push(s[b]);y.reverse(),p.sort((T,k)=>T.claim_order-k.claim_order);for(let T=0,k=0;T<p.length;T++){for(;k<y.length&&p[T].claim_order>=y[k].claim_order;)k++;const D=k<y.length?y[k]:null;r.insertBefore(p[T],D)}}function lT(r,s){r.appendChild(s)}function d7(r){if(!r)return document;const s=r.getRootNode?r.getRootNode():r.ownerDocument;return s&&s.host?s:r.ownerDocument}function hT(r){const s=p7("style");return fT(d7(r),s),s.sheet}function fT(r,s){lT(r.head||r,s)}function dT(r,s){if(z4){for(uT(r),(r.actual_end_child===void 0||r.actual_end_child!==null&&r.actual_end_child.parentElement!==r)&&(r.actual_end_child=r.firstChild);r.actual_end_child!==null&&r.actual_end_child.claim_order===void 0;)r.actual_end_child=r.actual_end_child.nextSibling;s!==r.actual_end_child?(s.claim_order!==void 0||s.parentNode!==r)&&r.insertBefore(s,r.actual_end_child):r.actual_end_child=s.nextSibling}else(s.parentNode!==r||s.nextSibling!==null)&&r.appendChild(s)}function VN(r,s,o){z4&&!o?dT(r,s):(s.parentNode!==r||s.nextSibling!=o)&&r.insertBefore(s,o||null)}function pT(r){r.parentNode.removeChild(r)}function GN(r,s){for(let o=0;o<r.length;o+=1)r[o]&&r[o].d(s)}function p7(r){return document.createElement(r)}function gT(r){return document.createElementNS("http://www.w3.org/2000/svg",r)}function U6(r){return document.createTextNode(r)}function ZN(){return U6(" ")}function XN(){return U6("")}function KN(r,s,o,l){return r.addEventListener(s,o,l),()=>r.removeEventListener(s,o,l)}function QN(r){return function(s){return s.stopPropagation(),r.call(this,s)}}function JN(r,s,o){o==null?r.removeAttribute(s):r.getAttribute(s)!==o&&r.setAttribute(s,o)}function tO(r){return r===""?null:+r}function yT(r){return Array.from(r.childNodes)}function mT(r){r.claim_info===void 0&&(r.claim_info={last_index:0,total_claimed:0})}function g7(r,s,o,l,c=!1){mT(r);const y=(()=>{for(let p=r.claim_info.last_index;p<r.length;p++){const b=r[p];if(s(b)){const T=o(b);return T===void 0?r.splice(p,1):r[p]=T,c||(r.claim_info.last_index=p),b}}for(let p=r.claim_info.last_index-1;p>=0;p--){const b=r[p];if(s(b)){const T=o(b);return T===void 0?r.splice(p,1):r[p]=T,c?T===void 0&&r.claim_info.last_index--:r.claim_info.last_index=p,b}}return l()})();return y.claim_order=r.claim_info.total_claimed,r.claim_info.total_claimed+=1,y}function y7(r,s,o,l){return g7(r,c=>c.nodeName===s,c=>{const y=[];for(let p=0;p<c.attributes.length;p++){const b=c.attributes[p];o[b.name]||y.push(b.name)}y.forEach(p=>c.removeAttribute(p))},()=>l(s))}function eO(r,s,o){return y7(r,s,o,p7)}function nO(r,s,o){return y7(r,s,o,gT)}function vT(r,s){return g7(r,o=>o.nodeType===3,o=>{const l=""+s;if(o.data.startsWith(l)){if(o.data.length!==l.length)return o.splitText(l.length)}else o.data=l},()=>U6(s),!0)}function rO(r){return vT(r," ")}function iO(r,s){s=""+s,r.wholeText!==s&&(r.data=s)}function aO(r,s){r.value=s==null?"":s}function oO(r,s,o,l){o===null?r.style.removeProperty(s):r.style.setProperty(s,o,l?"important":"")}function sO(r,s,o){r.classList[o?"add":"remove"](s)}function m7(r,s,o=!1){const l=document.createEvent("CustomEvent");return l.initCustomEvent(r,o,!1,s),l}const U4=new Map;let $4=0;function _T(r){let s=5381,o=r.length;for(;o--;)s=(s<<5)-s^r.charCodeAt(o);return s>>>0}function bT(r,s){const o={stylesheet:hT(s),rules:{}};return U4.set(r,o),o}function v7(r,s,o,l,c,y,p,b=0){const T=16.666/l;let k=`{
|
|
`;for(let V=0;V<=1;V+=T){const X=s+(o-s)*y(V);k+=V*100+`%{${p(X,1-X)}}
|
|
`}const D=k+`100% {${p(o,1-o)}}
|
|
}`,O=`__svelte_${_T(D)}_${b}`,R=d7(r),{stylesheet:z,rules:$}=U4.get(R)||bT(R,r);$[O]||($[O]=!0,z.insertRule(`@keyframes ${O} ${D}`,z.cssRules.length));const q=r.style.animation||"";return r.style.animation=`${q?`${q}, `:""}${O} ${l}ms linear ${c}ms 1 both`,$4+=1,O}function wT(r,s){const o=(r.style.animation||"").split(", "),l=o.filter(s?y=>y.indexOf(s)<0:y=>y.indexOf("__svelte")===-1),c=o.length-l.length;c&&(r.style.animation=l.join(", "),$4-=c,$4||xT())}function xT(){z6(()=>{$4||(U4.forEach(r=>{const{stylesheet:s}=r;let o=s.cssRules.length;for(;o--;)s.deleteRule(o);r.rules={}}),U4.clear())})}let Bm;function Im(r){Bm=r}function H4(){if(!Bm)throw new Error("Function called outside component initialization");return Bm}function cO(r){H4().$$.on_mount.push(r)}function uO(r){H4().$$.after_update.push(r)}function lO(){const r=H4();return(s,o)=>{const l=r.$$.callbacks[s];if(l){const c=m7(s,o);l.slice().forEach(y=>{y.call(r,c)})}}}function hO(r,s){H4().$$.context.set(r,s)}function fO(r,s){const o=r.$$.callbacks[s.type];o&&o.slice().forEach(l=>l.call(this,s))}const Rm=[],_7=[],W4=[],$6=[],b7=Promise.resolve();let H6=!1;function w7(){H6||(H6=!0,b7.then(x7))}function dO(){return w7(),b7}function q4(r){W4.push(r)}function pO(r){$6.push(r)}const W6=new Set;let V4=0;function x7(){const r=Bm;do{for(;V4<Rm.length;){const s=Rm[V4];V4++,Im(s),kT(s.$$)}for(Im(null),Rm.length=0,V4=0;_7.length;)_7.pop()();for(let s=0;s<W4.length;s+=1){const o=W4[s];W6.has(o)||(W6.add(o),o())}W4.length=0}while(Rm.length);for(;$6.length;)$6.pop()();H6=!1,W6.clear(),Im(r)}function kT(r){if(r.fragment!==null){r.update(),Pd(r.before_update);const s=r.dirty;r.dirty=[-1],r.fragment&&r.fragment.p(r.ctx,s),r.after_update.forEach(q4)}}let Fm;function TT(){return Fm||(Fm=Promise.resolve(),Fm.then(()=>{Fm=null})),Fm}function q6(r,s,o){r.dispatchEvent(m7(`${s?"intro":"outro"}${o}`))}const G4=new Set;let nl;function gO(){nl={r:0,c:[],p:nl}}function yO(){nl.r||Pd(nl.c),nl=nl.p}function ET(r,s){r&&r.i&&(G4.delete(r),r.i(s))}function mO(r,s,o,l){if(r&&r.o){if(G4.has(r))return;G4.add(r),nl.c.push(()=>{G4.delete(r),l&&(o&&r.d(1),l())}),r.o(s)}}const ST={duration:0};function vO(r,s,o,l){let c=s(r,o),y=l?0:1,p=null,b=null,T=null;function k(){T&&wT(r,T)}function D(R,z){const $=R.b-y;return z*=Math.abs($),{a:y,b:R.b,d:$,duration:z,start:R.start,end:R.start+z,group:R.group}}function O(R){const{delay:z=0,duration:$=300,easing:q=s7,tick:V=su,css:X}=c||ST,it={start:iT()+z,b:R};R||(it.group=nl,nl.r+=1),p||b?b=it:(X&&(k(),T=v7(r,y,R,$,z,q,X)),R&&V(0,1),p=D(it,$),q4(()=>q6(r,R,"start")),aT(tt=>{if(b&&tt>b.start&&(p=D(b,$),b=null,q6(r,p.b,"start"),X&&(k(),T=v7(r,y,p.b,p.duration,0,q,c.css))),p){if(tt>=p.end)V(y=p.b,1-y),q6(r,p.b,"end"),b||(p.b?k():--p.group.r||Pd(p.group.c)),p=null;else if(tt>=p.start){const rt=tt-p.start;y=p.a+p.d*q(rt/p.duration),V(y,1-y)}}return!!(p||b)}))}return{run(R){Y6(c)?TT().then(()=>{c=c(),O(R)}):O(R)},end(){k(),p=b=null}}}function _O(r,s){const o={},l={},c={$$scope:1};let y=r.length;for(;y--;){const p=r[y],b=s[y];if(b){for(const T in p)T in b||(l[T]=1);for(const T in b)c[T]||(o[T]=b[T],c[T]=1);r[y]=b}else for(const T in p)c[T]=1}for(const p in l)p in o||(o[p]=void 0);return o}function bO(r){return typeof r=="object"&&r!==null?r:{}}function wO(r,s,o){const l=r.$$.props[s];l!==void 0&&(r.$$.bound[l]=o,o(r.$$.ctx[l]))}function xO(r){r&&r.c()}function kO(r,s){r&&r.l(s)}function CT(r,s,o,l){const{fragment:c,on_mount:y,on_destroy:p,after_update:b}=r.$$;c&&c.m(s,o),l||q4(()=>{const T=y.map(c7).filter(Y6);p?p.push(...T):Pd(T),r.$$.on_mount=[]}),b.forEach(q4)}function AT(r,s){const o=r.$$;o.fragment!==null&&(Pd(o.on_destroy),o.fragment&&o.fragment.d(s),o.on_destroy=o.fragment=null,o.ctx=[])}function MT(r,s){r.$$.dirty[0]===-1&&(Rm.push(r),w7(),r.$$.dirty.fill(0)),r.$$.dirty[s/31|0]|=1<<s%31}function TO(r,s,o,l,c,y,p,b=[-1]){const T=Bm;Im(r);const k=r.$$={fragment:null,ctx:null,props:y,update:su,not_equal:c,bound:u7(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(s.context||(T?T.$$.context:[])),callbacks:u7(),dirty:b,skip_bound:!1,root:s.target||T.$$.root};p&&p(k.root);let D=!1;if(k.ctx=o?o(r,s.props||{},(O,R,...z)=>{const $=z.length?z[0]:R;return k.ctx&&c(k.ctx[O],k.ctx[O]=$)&&(!k.skip_bound&&k.bound[O]&&k.bound[O]($),D&&MT(r,O)),R}):[],k.update(),D=!0,Pd(k.before_update),k.fragment=l?l(k.ctx):!1,s.target){if(s.hydrate){oT();const O=yT(s.target);k.fragment&&k.fragment.l(O),O.forEach(pT)}else k.fragment&&k.fragment.c();s.intro&&ET(r.$$.fragment),CT(r,s.target,s.anchor,s.customElement),sT(),x7()}Im(T)}class EO{$destroy(){AT(this,1),this.$destroy=su}$on(s,o){const l=this.$$.callbacks[s]||(this.$$.callbacks[s]=[]);return l.push(o),()=>{const c=l.indexOf(o);c!==-1&&l.splice(c,1)}}$set(s){this.$$set&&!rT(s)&&(this.$$.skip_bound=!0,this.$$set(s),this.$$.skip_bound=!1)}}const Rp=[];function DT(r,s){return{subscribe:NT(r,s).subscribe}}function NT(r,s=su){let o;const l=new Set;function c(b){if(nT(r,b)&&(r=b,o)){const T=!Rp.length;for(const k of l)k[1](),Rp.push(k,r);if(T){for(let k=0;k<Rp.length;k+=2)Rp[k][0](Rp[k+1]);Rp.length=0}}}function y(b){c(b(r))}function p(b,T=su){const k=[b,T];return l.add(k),l.size===1&&(o=s(c)||su),b(r),()=>{l.delete(k),l.size===0&&(o(),o=null)}}return{set:c,update:y,subscribe:p}}function SO(r,s,o){const l=!Array.isArray(r),c=l?[r]:r,y=s.length<2;return DT(o,p=>{let b=!1;const T=[];let k=0,D=su;const O=()=>{if(k)return;D();const z=s(l?T[0]:T,p);y?p(z):D=Y6(z)?z:su},R=c.map((z,$)=>j6(z,q=>{T[$]=q,k&=~(1<<$),b&&O()},()=>{k|=1<<$}));return b=!0,O(),function(){Pd(R),D()}})}var OT={};(function(r){r.defaults={},r.set=function(s,o,l){var c=l||{},y=r.defaults,p=c.expires||y.expires,b=c.domain||y.domain,T=c.path!==void 0?c.path:y.path!==void 0?y.path:"/",k=c.secure!==void 0?c.secure:y.secure,D=c.httponly!==void 0?c.httponly:y.httponly,O=c.samesite!==void 0?c.samesite:y.samesite,R=p?new Date(typeof p=="number"?new Date().getTime()+p*864e5:p):0;document.cookie=s.replace(/[^+#$&^`|]/g,encodeURIComponent).replace("(","%28").replace(")","%29")+"="+o.replace(/[^+#$&/:<-\[\]-}]/g,encodeURIComponent)+(R&&R.getTime()>=0?";expires="+R.toUTCString():"")+(b?";domain="+b:"")+(T?";path="+T:"")+(k?";secure":"")+(D?";httponly":"")+(O?";samesite="+O:"")},r.get=function(s){for(var o=document.cookie.split(";");o.length;){var l=o.pop(),c=l.indexOf("=");c=c<0?l.length:c;var y=decodeURIComponent(l.slice(0,c).replace(/^\s+/,""));if(y===s)return decodeURIComponent(l.slice(c+1))}return null},r.erase=function(s,o){r.set(s,"",{expires:-1,domain:o&&o.domain,path:o&&o.path,secure:0,httponly:0})},r.all=function(){for(var s={},o=document.cookie.split(";");o.length;){var l=o.pop(),c=l.indexOf("=");c=c<0?l.length:c;var y=decodeURIComponent(l.slice(0,c).replace(/^\s+/,""));s[y]=decodeURIComponent(l.slice(c+1))}return s}})(OT);function CO(r,s,o){const l=s.getValue(o);return l!==null&&r.set(l),s.addListener&&s.addListener(o,c=>{r.set(c)}),r.subscribe(c=>{s.setValue(o,c)}),Object.assign(Object.assign({},r),{delete(){s.deleteValue(o)}})}function LT(r,s=!1){const o=[],l=p=>{const b=p.key;p.storageArea===r&&o.filter(({key:T})=>T===b).forEach(({listener:T})=>{let k=p.newValue;try{k=JSON.parse(p.newValue)}catch{}T(k)})},c=()=>{s&&typeof window!="undefined"&&(window==null?void 0:window.addEventListener)&&window.addEventListener("storage",l)},y=()=>{s&&typeof window!="undefined"&&(window==null?void 0:window.removeEventListener)&&window.removeEventListener("storage",l)};return{addListener(p,b){o.push({key:p,listener:b}),o.length===1&&c()},removeListener(p,b){const T=o.indexOf({key:p,listener:b});T!==-1&&o.splice(T,1),o.length===0&&y()},getValue(p){let b=r.getItem(p);if(b!=null)try{b=JSON.parse(b)}catch{}return b},deleteValue(p){r.removeItem(p)},setValue(p,b){r.setItem(p,JSON.stringify(b))}}}function AO(r=!1){return typeof window!="undefined"&&(window==null?void 0:window.localStorage)?LT(window.localStorage,r):(console.warn("Unable to find the localStorage. No data will be persisted."),BT())}function BT(){return{getValue(){return null},deleteValue(){},setValue(){}}}/*! pako 2.0.4 https://github.com/nodeca/pako @license (MIT AND Zlib) */const IT=4,k7=0,T7=1,RT=2;function Fp(r){let s=r.length;for(;--s>=0;)r[s]=0}const FT=0,E7=1,PT=2,YT=3,jT=258,V6=29,Pm=256,Ym=Pm+1+V6,Pp=30,G6=19,S7=2*Ym+1,Yd=15,Z6=16,zT=7,X6=256,C7=16,A7=17,M7=18,K6=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]),Z4=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]),UT=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7]),D7=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),$T=512,rl=new Array((Ym+2)*2);Fp(rl);const jm=new Array(Pp*2);Fp(jm);const zm=new Array($T);Fp(zm);const Um=new Array(jT-YT+1);Fp(Um);const Q6=new Array(V6);Fp(Q6);const X4=new Array(Pp);Fp(X4);function J6(r,s,o,l,c){this.static_tree=r,this.extra_bits=s,this.extra_base=o,this.elems=l,this.max_length=c,this.has_stree=r&&r.length}let N7,O7,L7;function t8(r,s){this.dyn_tree=r,this.max_code=0,this.stat_desc=s}const B7=r=>r<256?zm[r]:zm[256+(r>>>7)],$m=(r,s)=>{r.pending_buf[r.pending++]=s&255,r.pending_buf[r.pending++]=s>>>8&255},Lo=(r,s,o)=>{r.bi_valid>Z6-o?(r.bi_buf|=s<<r.bi_valid&65535,$m(r,r.bi_buf),r.bi_buf=s>>Z6-r.bi_valid,r.bi_valid+=o-Z6):(r.bi_buf|=s<<r.bi_valid&65535,r.bi_valid+=o)},cu=(r,s,o)=>{Lo(r,o[s*2],o[s*2+1])},I7=(r,s)=>{let o=0;do o|=r&1,r>>>=1,o<<=1;while(--s>0);return o>>>1},HT=r=>{r.bi_valid===16?($m(r,r.bi_buf),r.bi_buf=0,r.bi_valid=0):r.bi_valid>=8&&(r.pending_buf[r.pending++]=r.bi_buf&255,r.bi_buf>>=8,r.bi_valid-=8)},WT=(r,s)=>{const o=s.dyn_tree,l=s.max_code,c=s.stat_desc.static_tree,y=s.stat_desc.has_stree,p=s.stat_desc.extra_bits,b=s.stat_desc.extra_base,T=s.stat_desc.max_length;let k,D,O,R,z,$,q=0;for(R=0;R<=Yd;R++)r.bl_count[R]=0;for(o[r.heap[r.heap_max]*2+1]=0,k=r.heap_max+1;k<S7;k++)D=r.heap[k],R=o[o[D*2+1]*2+1]+1,R>T&&(R=T,q++),o[D*2+1]=R,!(D>l)&&(r.bl_count[R]++,z=0,D>=b&&(z=p[D-b]),$=o[D*2],r.opt_len+=$*(R+z),y&&(r.static_len+=$*(c[D*2+1]+z)));if(q!==0){do{for(R=T-1;r.bl_count[R]===0;)R--;r.bl_count[R]--,r.bl_count[R+1]+=2,r.bl_count[T]--,q-=2}while(q>0);for(R=T;R!==0;R--)for(D=r.bl_count[R];D!==0;)O=r.heap[--k],!(O>l)&&(o[O*2+1]!==R&&(r.opt_len+=(R-o[O*2+1])*o[O*2],o[O*2+1]=R),D--)}},R7=(r,s,o)=>{const l=new Array(Yd+1);let c=0,y,p;for(y=1;y<=Yd;y++)l[y]=c=c+o[y-1]<<1;for(p=0;p<=s;p++){let b=r[p*2+1];b!==0&&(r[p*2]=I7(l[b]++,b))}},qT=()=>{let r,s,o,l,c;const y=new Array(Yd+1);for(o=0,l=0;l<V6-1;l++)for(Q6[l]=o,r=0;r<1<<K6[l];r++)Um[o++]=l;for(Um[o-1]=l,c=0,l=0;l<16;l++)for(X4[l]=c,r=0;r<1<<Z4[l];r++)zm[c++]=l;for(c>>=7;l<Pp;l++)for(X4[l]=c<<7,r=0;r<1<<Z4[l]-7;r++)zm[256+c++]=l;for(s=0;s<=Yd;s++)y[s]=0;for(r=0;r<=143;)rl[r*2+1]=8,r++,y[8]++;for(;r<=255;)rl[r*2+1]=9,r++,y[9]++;for(;r<=279;)rl[r*2+1]=7,r++,y[7]++;for(;r<=287;)rl[r*2+1]=8,r++,y[8]++;for(R7(rl,Ym+1,y),r=0;r<Pp;r++)jm[r*2+1]=5,jm[r*2]=I7(r,5);N7=new J6(rl,K6,Pm+1,Ym,Yd),O7=new J6(jm,Z4,0,Pp,Yd),L7=new J6(new Array(0),UT,0,G6,zT)},F7=r=>{let s;for(s=0;s<Ym;s++)r.dyn_ltree[s*2]=0;for(s=0;s<Pp;s++)r.dyn_dtree[s*2]=0;for(s=0;s<G6;s++)r.bl_tree[s*2]=0;r.dyn_ltree[X6*2]=1,r.opt_len=r.static_len=0,r.last_lit=r.matches=0},P7=r=>{r.bi_valid>8?$m(r,r.bi_buf):r.bi_valid>0&&(r.pending_buf[r.pending++]=r.bi_buf),r.bi_buf=0,r.bi_valid=0},VT=(r,s,o,l)=>{P7(r),l&&($m(r,o),$m(r,~o)),r.pending_buf.set(r.window.subarray(s,s+o),r.pending),r.pending+=o},Y7=(r,s,o,l)=>{const c=s*2,y=o*2;return r[c]<r[y]||r[c]===r[y]&&l[s]<=l[o]},e8=(r,s,o)=>{const l=r.heap[o];let c=o<<1;for(;c<=r.heap_len&&(c<r.heap_len&&Y7(s,r.heap[c+1],r.heap[c],r.depth)&&c++,!Y7(s,l,r.heap[c],r.depth));)r.heap[o]=r.heap[c],o=c,c<<=1;r.heap[o]=l},j7=(r,s,o)=>{let l,c,y=0,p,b;if(r.last_lit!==0)do l=r.pending_buf[r.d_buf+y*2]<<8|r.pending_buf[r.d_buf+y*2+1],c=r.pending_buf[r.l_buf+y],y++,l===0?cu(r,c,s):(p=Um[c],cu(r,p+Pm+1,s),b=K6[p],b!==0&&(c-=Q6[p],Lo(r,c,b)),l--,p=B7(l),cu(r,p,o),b=Z4[p],b!==0&&(l-=X4[p],Lo(r,l,b)));while(y<r.last_lit);cu(r,X6,s)},n8=(r,s)=>{const o=s.dyn_tree,l=s.stat_desc.static_tree,c=s.stat_desc.has_stree,y=s.stat_desc.elems;let p,b,T=-1,k;for(r.heap_len=0,r.heap_max=S7,p=0;p<y;p++)o[p*2]!==0?(r.heap[++r.heap_len]=T=p,r.depth[p]=0):o[p*2+1]=0;for(;r.heap_len<2;)k=r.heap[++r.heap_len]=T<2?++T:0,o[k*2]=1,r.depth[k]=0,r.opt_len--,c&&(r.static_len-=l[k*2+1]);for(s.max_code=T,p=r.heap_len>>1;p>=1;p--)e8(r,o,p);k=y;do p=r.heap[1],r.heap[1]=r.heap[r.heap_len--],e8(r,o,1),b=r.heap[1],r.heap[--r.heap_max]=p,r.heap[--r.heap_max]=b,o[k*2]=o[p*2]+o[b*2],r.depth[k]=(r.depth[p]>=r.depth[b]?r.depth[p]:r.depth[b])+1,o[p*2+1]=o[b*2+1]=k,r.heap[1]=k++,e8(r,o,1);while(r.heap_len>=2);r.heap[--r.heap_max]=r.heap[1],WT(r,s),R7(o,T,r.bl_count)},z7=(r,s,o)=>{let l,c=-1,y,p=s[0*2+1],b=0,T=7,k=4;for(p===0&&(T=138,k=3),s[(o+1)*2+1]=65535,l=0;l<=o;l++)y=p,p=s[(l+1)*2+1],!(++b<T&&y===p)&&(b<k?r.bl_tree[y*2]+=b:y!==0?(y!==c&&r.bl_tree[y*2]++,r.bl_tree[C7*2]++):b<=10?r.bl_tree[A7*2]++:r.bl_tree[M7*2]++,b=0,c=y,p===0?(T=138,k=3):y===p?(T=6,k=3):(T=7,k=4))},U7=(r,s,o)=>{let l,c=-1,y,p=s[0*2+1],b=0,T=7,k=4;for(p===0&&(T=138,k=3),l=0;l<=o;l++)if(y=p,p=s[(l+1)*2+1],!(++b<T&&y===p)){if(b<k)do cu(r,y,r.bl_tree);while(--b!=0);else y!==0?(y!==c&&(cu(r,y,r.bl_tree),b--),cu(r,C7,r.bl_tree),Lo(r,b-3,2)):b<=10?(cu(r,A7,r.bl_tree),Lo(r,b-3,3)):(cu(r,M7,r.bl_tree),Lo(r,b-11,7));b=0,c=y,p===0?(T=138,k=3):y===p?(T=6,k=3):(T=7,k=4)}},GT=r=>{let s;for(z7(r,r.dyn_ltree,r.l_desc.max_code),z7(r,r.dyn_dtree,r.d_desc.max_code),n8(r,r.bl_desc),s=G6-1;s>=3&&r.bl_tree[D7[s]*2+1]===0;s--);return r.opt_len+=3*(s+1)+5+5+4,s},ZT=(r,s,o,l)=>{let c;for(Lo(r,s-257,5),Lo(r,o-1,5),Lo(r,l-4,4),c=0;c<l;c++)Lo(r,r.bl_tree[D7[c]*2+1],3);U7(r,r.dyn_ltree,s-1),U7(r,r.dyn_dtree,o-1)},XT=r=>{let s=4093624447,o;for(o=0;o<=31;o++,s>>>=1)if(s&1&&r.dyn_ltree[o*2]!==0)return k7;if(r.dyn_ltree[9*2]!==0||r.dyn_ltree[10*2]!==0||r.dyn_ltree[13*2]!==0)return T7;for(o=32;o<Pm;o++)if(r.dyn_ltree[o*2]!==0)return T7;return k7};let $7=!1;const KT=r=>{$7||(qT(),$7=!0),r.l_desc=new t8(r.dyn_ltree,N7),r.d_desc=new t8(r.dyn_dtree,O7),r.bl_desc=new t8(r.bl_tree,L7),r.bi_buf=0,r.bi_valid=0,F7(r)},H7=(r,s,o,l)=>{Lo(r,(FT<<1)+(l?1:0),3),VT(r,s,o,!0)},QT=r=>{Lo(r,E7<<1,3),cu(r,X6,rl),HT(r)},JT=(r,s,o,l)=>{let c,y,p=0;r.level>0?(r.strm.data_type===RT&&(r.strm.data_type=XT(r)),n8(r,r.l_desc),n8(r,r.d_desc),p=GT(r),c=r.opt_len+3+7>>>3,y=r.static_len+3+7>>>3,y<=c&&(c=y)):c=y=o+5,o+4<=c&&s!==-1?H7(r,s,o,l):r.strategy===IT||y===c?(Lo(r,(E7<<1)+(l?1:0),3),j7(r,rl,jm)):(Lo(r,(PT<<1)+(l?1:0),3),ZT(r,r.l_desc.max_code+1,r.d_desc.max_code+1,p+1),j7(r,r.dyn_ltree,r.dyn_dtree)),F7(r),l&&P7(r)},tE=(r,s,o)=>(r.pending_buf[r.d_buf+r.last_lit*2]=s>>>8&255,r.pending_buf[r.d_buf+r.last_lit*2+1]=s&255,r.pending_buf[r.l_buf+r.last_lit]=o&255,r.last_lit++,s===0?r.dyn_ltree[o*2]++:(r.matches++,s--,r.dyn_ltree[(Um[o]+Pm+1)*2]++,r.dyn_dtree[B7(s)*2]++),r.last_lit===r.lit_bufsize-1);var eE=KT,nE=H7,rE=JT,iE=tE,aE=QT,oE={_tr_init:eE,_tr_stored_block:nE,_tr_flush_block:rE,_tr_tally:iE,_tr_align:aE};const sE=(r,s,o,l)=>{let c=r&65535|0,y=r>>>16&65535|0,p=0;for(;o!==0;){p=o>2e3?2e3:o,o-=p;do c=c+s[l++]|0,y=y+c|0;while(--p);c%=65521,y%=65521}return c|y<<16|0};var Hm=sE;const cE=()=>{let r,s=[];for(var o=0;o<256;o++){r=o;for(var l=0;l<8;l++)r=r&1?3988292384^r>>>1:r>>>1;s[o]=r}return s},uE=new Uint32Array(cE()),lE=(r,s,o,l)=>{const c=uE,y=l+o;r^=-1;for(let p=l;p<y;p++)r=r>>>8^c[(r^s[p])&255];return r^-1};var wa=lE,jd={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"},Yp={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:hE,_tr_stored_block:fE,_tr_flush_block:dE,_tr_tally:Ih,_tr_align:pE}=oE,{Z_NO_FLUSH:zd,Z_PARTIAL_FLUSH:gE,Z_FULL_FLUSH:yE,Z_FINISH:Rh,Z_BLOCK:W7,Z_OK:uu,Z_STREAM_END:q7,Z_STREAM_ERROR:Bs,Z_DATA_ERROR:mE,Z_BUF_ERROR:r8,Z_DEFAULT_COMPRESSION:vE,Z_FILTERED:_E,Z_HUFFMAN_ONLY:K4,Z_RLE:bE,Z_FIXED:wE,Z_DEFAULT_STRATEGY:xE,Z_UNKNOWN:kE,Z_DEFLATED:Q4}=Yp,TE=9,EE=15,SE=8,CE=29,AE=256,i8=AE+1+CE,ME=30,DE=19,NE=2*i8+1,OE=15,_r=3,Fh=258,pc=Fh+_r+1,LE=32,J4=42,a8=69,tw=73,ew=91,nw=103,Ud=113,Wm=666,pa=1,qm=2,$d=3,jp=4,BE=3,Ph=(r,s)=>(r.msg=jd[s],s),V7=r=>(r<<1)-(r>4?9:0),Yh=r=>{let s=r.length;for(;--s>=0;)r[s]=0};let IE=(r,s,o)=>(s<<r.hash_shift^o)&r.hash_mask,jh=IE;const zh=r=>{const s=r.state;let o=s.pending;o>r.avail_out&&(o=r.avail_out),o!==0&&(r.output.set(s.pending_buf.subarray(s.pending_out,s.pending_out+o),r.next_out),r.next_out+=o,s.pending_out+=o,r.total_out+=o,r.avail_out-=o,s.pending-=o,s.pending===0&&(s.pending_out=0))},ja=(r,s)=>{dE(r,r.block_start>=0?r.block_start:-1,r.strstart-r.block_start,s),r.block_start=r.strstart,zh(r.strm)},Ar=(r,s)=>{r.pending_buf[r.pending++]=s},Vm=(r,s)=>{r.pending_buf[r.pending++]=s>>>8&255,r.pending_buf[r.pending++]=s&255},RE=(r,s,o,l)=>{let c=r.avail_in;return c>l&&(c=l),c===0?0:(r.avail_in-=c,s.set(r.input.subarray(r.next_in,r.next_in+c),o),r.state.wrap===1?r.adler=Hm(r.adler,s,c,o):r.state.wrap===2&&(r.adler=wa(r.adler,s,c,o)),r.next_in+=c,r.total_in+=c,c)},G7=(r,s)=>{let o=r.max_chain_length,l=r.strstart,c,y,p=r.prev_length,b=r.nice_match;const T=r.strstart>r.w_size-pc?r.strstart-(r.w_size-pc):0,k=r.window,D=r.w_mask,O=r.prev,R=r.strstart+Fh;let z=k[l+p-1],$=k[l+p];r.prev_length>=r.good_match&&(o>>=2),b>r.lookahead&&(b=r.lookahead);do if(c=s,!(k[c+p]!==$||k[c+p-1]!==z||k[c]!==k[l]||k[++c]!==k[l+1])){l+=2,c++;do;while(k[++l]===k[++c]&&k[++l]===k[++c]&&k[++l]===k[++c]&&k[++l]===k[++c]&&k[++l]===k[++c]&&k[++l]===k[++c]&&k[++l]===k[++c]&&k[++l]===k[++c]&&l<R);if(y=Fh-(R-l),l=R-Fh,y>p){if(r.match_start=s,p=y,y>=b)break;z=k[l+p-1],$=k[l+p]}}while((s=O[s&D])>T&&--o!=0);return p<=r.lookahead?p:r.lookahead},Hd=r=>{const s=r.w_size;let o,l,c,y,p;do{if(y=r.window_size-r.lookahead-r.strstart,r.strstart>=s+(s-pc)){r.window.set(r.window.subarray(s,s+s),0),r.match_start-=s,r.strstart-=s,r.block_start-=s,l=r.hash_size,o=l;do c=r.head[--o],r.head[o]=c>=s?c-s:0;while(--l);l=s,o=l;do c=r.prev[--o],r.prev[o]=c>=s?c-s:0;while(--l);y+=s}if(r.strm.avail_in===0)break;if(l=RE(r.strm,r.window,r.strstart+r.lookahead,y),r.lookahead+=l,r.lookahead+r.insert>=_r)for(p=r.strstart-r.insert,r.ins_h=r.window[p],r.ins_h=jh(r,r.ins_h,r.window[p+1]);r.insert&&(r.ins_h=jh(r,r.ins_h,r.window[p+_r-1]),r.prev[p&r.w_mask]=r.head[r.ins_h],r.head[r.ins_h]=p,p++,r.insert--,!(r.lookahead+r.insert<_r)););}while(r.lookahead<pc&&r.strm.avail_in!==0)},FE=(r,s)=>{let o=65535;for(o>r.pending_buf_size-5&&(o=r.pending_buf_size-5);;){if(r.lookahead<=1){if(Hd(r),r.lookahead===0&&s===zd)return pa;if(r.lookahead===0)break}r.strstart+=r.lookahead,r.lookahead=0;const l=r.block_start+o;if((r.strstart===0||r.strstart>=l)&&(r.lookahead=r.strstart-l,r.strstart=l,ja(r,!1),r.strm.avail_out===0)||r.strstart-r.block_start>=r.w_size-pc&&(ja(r,!1),r.strm.avail_out===0))return pa}return r.insert=0,s===Rh?(ja(r,!0),r.strm.avail_out===0?$d:jp):(r.strstart>r.block_start&&(ja(r,!1),r.strm.avail_out===0),pa)},o8=(r,s)=>{let o,l;for(;;){if(r.lookahead<pc){if(Hd(r),r.lookahead<pc&&s===zd)return pa;if(r.lookahead===0)break}if(o=0,r.lookahead>=_r&&(r.ins_h=jh(r,r.ins_h,r.window[r.strstart+_r-1]),o=r.prev[r.strstart&r.w_mask]=r.head[r.ins_h],r.head[r.ins_h]=r.strstart),o!==0&&r.strstart-o<=r.w_size-pc&&(r.match_length=G7(r,o)),r.match_length>=_r)if(l=Ih(r,r.strstart-r.match_start,r.match_length-_r),r.lookahead-=r.match_length,r.match_length<=r.max_lazy_match&&r.lookahead>=_r){r.match_length--;do r.strstart++,r.ins_h=jh(r,r.ins_h,r.window[r.strstart+_r-1]),o=r.prev[r.strstart&r.w_mask]=r.head[r.ins_h],r.head[r.ins_h]=r.strstart;while(--r.match_length!=0);r.strstart++}else r.strstart+=r.match_length,r.match_length=0,r.ins_h=r.window[r.strstart],r.ins_h=jh(r,r.ins_h,r.window[r.strstart+1]);else l=Ih(r,0,r.window[r.strstart]),r.lookahead--,r.strstart++;if(l&&(ja(r,!1),r.strm.avail_out===0))return pa}return r.insert=r.strstart<_r-1?r.strstart:_r-1,s===Rh?(ja(r,!0),r.strm.avail_out===0?$d:jp):r.last_lit&&(ja(r,!1),r.strm.avail_out===0)?pa:qm},zp=(r,s)=>{let o,l,c;for(;;){if(r.lookahead<pc){if(Hd(r),r.lookahead<pc&&s===zd)return pa;if(r.lookahead===0)break}if(o=0,r.lookahead>=_r&&(r.ins_h=jh(r,r.ins_h,r.window[r.strstart+_r-1]),o=r.prev[r.strstart&r.w_mask]=r.head[r.ins_h],r.head[r.ins_h]=r.strstart),r.prev_length=r.match_length,r.prev_match=r.match_start,r.match_length=_r-1,o!==0&&r.prev_length<r.max_lazy_match&&r.strstart-o<=r.w_size-pc&&(r.match_length=G7(r,o),r.match_length<=5&&(r.strategy===_E||r.match_length===_r&&r.strstart-r.match_start>4096)&&(r.match_length=_r-1)),r.prev_length>=_r&&r.match_length<=r.prev_length){c=r.strstart+r.lookahead-_r,l=Ih(r,r.strstart-1-r.prev_match,r.prev_length-_r),r.lookahead-=r.prev_length-1,r.prev_length-=2;do++r.strstart<=c&&(r.ins_h=jh(r,r.ins_h,r.window[r.strstart+_r-1]),o=r.prev[r.strstart&r.w_mask]=r.head[r.ins_h],r.head[r.ins_h]=r.strstart);while(--r.prev_length!=0);if(r.match_available=0,r.match_length=_r-1,r.strstart++,l&&(ja(r,!1),r.strm.avail_out===0))return pa}else if(r.match_available){if(l=Ih(r,0,r.window[r.strstart-1]),l&&ja(r,!1),r.strstart++,r.lookahead--,r.strm.avail_out===0)return pa}else r.match_available=1,r.strstart++,r.lookahead--}return r.match_available&&(l=Ih(r,0,r.window[r.strstart-1]),r.match_available=0),r.insert=r.strstart<_r-1?r.strstart:_r-1,s===Rh?(ja(r,!0),r.strm.avail_out===0?$d:jp):r.last_lit&&(ja(r,!1),r.strm.avail_out===0)?pa:qm},PE=(r,s)=>{let o,l,c,y;const p=r.window;for(;;){if(r.lookahead<=Fh){if(Hd(r),r.lookahead<=Fh&&s===zd)return pa;if(r.lookahead===0)break}if(r.match_length=0,r.lookahead>=_r&&r.strstart>0&&(c=r.strstart-1,l=p[c],l===p[++c]&&l===p[++c]&&l===p[++c])){y=r.strstart+Fh;do;while(l===p[++c]&&l===p[++c]&&l===p[++c]&&l===p[++c]&&l===p[++c]&&l===p[++c]&&l===p[++c]&&l===p[++c]&&c<y);r.match_length=Fh-(y-c),r.match_length>r.lookahead&&(r.match_length=r.lookahead)}if(r.match_length>=_r?(o=Ih(r,1,r.match_length-_r),r.lookahead-=r.match_length,r.strstart+=r.match_length,r.match_length=0):(o=Ih(r,0,r.window[r.strstart]),r.lookahead--,r.strstart++),o&&(ja(r,!1),r.strm.avail_out===0))return pa}return r.insert=0,s===Rh?(ja(r,!0),r.strm.avail_out===0?$d:jp):r.last_lit&&(ja(r,!1),r.strm.avail_out===0)?pa:qm},YE=(r,s)=>{let o;for(;;){if(r.lookahead===0&&(Hd(r),r.lookahead===0)){if(s===zd)return pa;break}if(r.match_length=0,o=Ih(r,0,r.window[r.strstart]),r.lookahead--,r.strstart++,o&&(ja(r,!1),r.strm.avail_out===0))return pa}return r.insert=0,s===Rh?(ja(r,!0),r.strm.avail_out===0?$d:jp):r.last_lit&&(ja(r,!1),r.strm.avail_out===0)?pa:qm};function lu(r,s,o,l,c){this.good_length=r,this.max_lazy=s,this.nice_length=o,this.max_chain=l,this.func=c}const Gm=[new lu(0,0,0,0,FE),new lu(4,4,8,4,o8),new lu(4,5,16,8,o8),new lu(4,6,32,32,o8),new lu(4,4,16,16,zp),new lu(8,16,32,32,zp),new lu(8,16,128,128,zp),new lu(8,32,128,256,zp),new lu(32,128,258,1024,zp),new lu(32,258,258,4096,zp)],jE=r=>{r.window_size=2*r.w_size,Yh(r.head),r.max_lazy_match=Gm[r.level].max_lazy,r.good_match=Gm[r.level].good_length,r.nice_match=Gm[r.level].nice_length,r.max_chain_length=Gm[r.level].max_chain,r.strstart=0,r.block_start=0,r.lookahead=0,r.insert=0,r.match_length=r.prev_length=_r-1,r.match_available=0,r.ins_h=0};function zE(){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=Q4,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(NE*2),this.dyn_dtree=new Uint16Array((2*ME+1)*2),this.bl_tree=new Uint16Array((2*DE+1)*2),Yh(this.dyn_ltree),Yh(this.dyn_dtree),Yh(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new Uint16Array(OE+1),this.heap=new Uint16Array(2*i8+1),Yh(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new Uint16Array(2*i8+1),Yh(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 Z7=r=>{if(!r||!r.state)return Ph(r,Bs);r.total_in=r.total_out=0,r.data_type=kE;const s=r.state;return s.pending=0,s.pending_out=0,s.wrap<0&&(s.wrap=-s.wrap),s.status=s.wrap?J4:Ud,r.adler=s.wrap===2?0:1,s.last_flush=zd,hE(s),uu},X7=r=>{const s=Z7(r);return s===uu&&jE(r.state),s},UE=(r,s)=>!r||!r.state||r.state.wrap!==2?Bs:(r.state.gzhead=s,uu),K7=(r,s,o,l,c,y)=>{if(!r)return Bs;let p=1;if(s===vE&&(s=6),l<0?(p=0,l=-l):l>15&&(p=2,l-=16),c<1||c>TE||o!==Q4||l<8||l>15||s<0||s>9||y<0||y>wE)return Ph(r,Bs);l===8&&(l=9);const b=new zE;return r.state=b,b.strm=r,b.wrap=p,b.gzhead=null,b.w_bits=l,b.w_size=1<<b.w_bits,b.w_mask=b.w_size-1,b.hash_bits=c+7,b.hash_size=1<<b.hash_bits,b.hash_mask=b.hash_size-1,b.hash_shift=~~((b.hash_bits+_r-1)/_r),b.window=new Uint8Array(b.w_size*2),b.head=new Uint16Array(b.hash_size),b.prev=new Uint16Array(b.w_size),b.lit_bufsize=1<<c+6,b.pending_buf_size=b.lit_bufsize*4,b.pending_buf=new Uint8Array(b.pending_buf_size),b.d_buf=1*b.lit_bufsize,b.l_buf=(1+2)*b.lit_bufsize,b.level=s,b.strategy=y,b.method=o,X7(r)},$E=(r,s)=>K7(r,s,Q4,EE,SE,xE),HE=(r,s)=>{let o,l;if(!r||!r.state||s>W7||s<0)return r?Ph(r,Bs):Bs;const c=r.state;if(!r.output||!r.input&&r.avail_in!==0||c.status===Wm&&s!==Rh)return Ph(r,r.avail_out===0?r8:Bs);c.strm=r;const y=c.last_flush;if(c.last_flush=s,c.status===J4)if(c.wrap===2)r.adler=0,Ar(c,31),Ar(c,139),Ar(c,8),c.gzhead?(Ar(c,(c.gzhead.text?1:0)+(c.gzhead.hcrc?2:0)+(c.gzhead.extra?4:0)+(c.gzhead.name?8:0)+(c.gzhead.comment?16:0)),Ar(c,c.gzhead.time&255),Ar(c,c.gzhead.time>>8&255),Ar(c,c.gzhead.time>>16&255),Ar(c,c.gzhead.time>>24&255),Ar(c,c.level===9?2:c.strategy>=K4||c.level<2?4:0),Ar(c,c.gzhead.os&255),c.gzhead.extra&&c.gzhead.extra.length&&(Ar(c,c.gzhead.extra.length&255),Ar(c,c.gzhead.extra.length>>8&255)),c.gzhead.hcrc&&(r.adler=wa(r.adler,c.pending_buf,c.pending,0)),c.gzindex=0,c.status=a8):(Ar(c,0),Ar(c,0),Ar(c,0),Ar(c,0),Ar(c,0),Ar(c,c.level===9?2:c.strategy>=K4||c.level<2?4:0),Ar(c,BE),c.status=Ud);else{let p=Q4+(c.w_bits-8<<4)<<8,b=-1;c.strategy>=K4||c.level<2?b=0:c.level<6?b=1:c.level===6?b=2:b=3,p|=b<<6,c.strstart!==0&&(p|=LE),p+=31-p%31,c.status=Ud,Vm(c,p),c.strstart!==0&&(Vm(c,r.adler>>>16),Vm(c,r.adler&65535)),r.adler=1}if(c.status===a8)if(c.gzhead.extra){for(o=c.pending;c.gzindex<(c.gzhead.extra.length&65535)&&!(c.pending===c.pending_buf_size&&(c.gzhead.hcrc&&c.pending>o&&(r.adler=wa(r.adler,c.pending_buf,c.pending-o,o)),zh(r),o=c.pending,c.pending===c.pending_buf_size));)Ar(c,c.gzhead.extra[c.gzindex]&255),c.gzindex++;c.gzhead.hcrc&&c.pending>o&&(r.adler=wa(r.adler,c.pending_buf,c.pending-o,o)),c.gzindex===c.gzhead.extra.length&&(c.gzindex=0,c.status=tw)}else c.status=tw;if(c.status===tw)if(c.gzhead.name){o=c.pending;do{if(c.pending===c.pending_buf_size&&(c.gzhead.hcrc&&c.pending>o&&(r.adler=wa(r.adler,c.pending_buf,c.pending-o,o)),zh(r),o=c.pending,c.pending===c.pending_buf_size)){l=1;break}c.gzindex<c.gzhead.name.length?l=c.gzhead.name.charCodeAt(c.gzindex++)&255:l=0,Ar(c,l)}while(l!==0);c.gzhead.hcrc&&c.pending>o&&(r.adler=wa(r.adler,c.pending_buf,c.pending-o,o)),l===0&&(c.gzindex=0,c.status=ew)}else c.status=ew;if(c.status===ew)if(c.gzhead.comment){o=c.pending;do{if(c.pending===c.pending_buf_size&&(c.gzhead.hcrc&&c.pending>o&&(r.adler=wa(r.adler,c.pending_buf,c.pending-o,o)),zh(r),o=c.pending,c.pending===c.pending_buf_size)){l=1;break}c.gzindex<c.gzhead.comment.length?l=c.gzhead.comment.charCodeAt(c.gzindex++)&255:l=0,Ar(c,l)}while(l!==0);c.gzhead.hcrc&&c.pending>o&&(r.adler=wa(r.adler,c.pending_buf,c.pending-o,o)),l===0&&(c.status=nw)}else c.status=nw;if(c.status===nw&&(c.gzhead.hcrc?(c.pending+2>c.pending_buf_size&&zh(r),c.pending+2<=c.pending_buf_size&&(Ar(c,r.adler&255),Ar(c,r.adler>>8&255),r.adler=0,c.status=Ud)):c.status=Ud),c.pending!==0){if(zh(r),r.avail_out===0)return c.last_flush=-1,uu}else if(r.avail_in===0&&V7(s)<=V7(y)&&s!==Rh)return Ph(r,r8);if(c.status===Wm&&r.avail_in!==0)return Ph(r,r8);if(r.avail_in!==0||c.lookahead!==0||s!==zd&&c.status!==Wm){let p=c.strategy===K4?YE(c,s):c.strategy===bE?PE(c,s):Gm[c.level].func(c,s);if((p===$d||p===jp)&&(c.status=Wm),p===pa||p===$d)return r.avail_out===0&&(c.last_flush=-1),uu;if(p===qm&&(s===gE?pE(c):s!==W7&&(fE(c,0,0,!1),s===yE&&(Yh(c.head),c.lookahead===0&&(c.strstart=0,c.block_start=0,c.insert=0))),zh(r),r.avail_out===0))return c.last_flush=-1,uu}return s!==Rh?uu:c.wrap<=0?q7:(c.wrap===2?(Ar(c,r.adler&255),Ar(c,r.adler>>8&255),Ar(c,r.adler>>16&255),Ar(c,r.adler>>24&255),Ar(c,r.total_in&255),Ar(c,r.total_in>>8&255),Ar(c,r.total_in>>16&255),Ar(c,r.total_in>>24&255)):(Vm(c,r.adler>>>16),Vm(c,r.adler&65535)),zh(r),c.wrap>0&&(c.wrap=-c.wrap),c.pending!==0?uu:q7)},WE=r=>{if(!r||!r.state)return Bs;const s=r.state.status;return s!==J4&&s!==a8&&s!==tw&&s!==ew&&s!==nw&&s!==Ud&&s!==Wm?Ph(r,Bs):(r.state=null,s===Ud?Ph(r,mE):uu)},qE=(r,s)=>{let o=s.length;if(!r||!r.state)return Bs;const l=r.state,c=l.wrap;if(c===2||c===1&&l.status!==J4||l.lookahead)return Bs;if(c===1&&(r.adler=Hm(r.adler,s,o,0)),l.wrap=0,o>=l.w_size){c===0&&(Yh(l.head),l.strstart=0,l.block_start=0,l.insert=0);let T=new Uint8Array(l.w_size);T.set(s.subarray(o-l.w_size,o),0),s=T,o=l.w_size}const y=r.avail_in,p=r.next_in,b=r.input;for(r.avail_in=o,r.next_in=0,r.input=s,Hd(l);l.lookahead>=_r;){let T=l.strstart,k=l.lookahead-(_r-1);do l.ins_h=jh(l,l.ins_h,l.window[T+_r-1]),l.prev[T&l.w_mask]=l.head[l.ins_h],l.head[l.ins_h]=T,T++;while(--k);l.strstart=T,l.lookahead=_r-1,Hd(l)}return l.strstart+=l.lookahead,l.block_start=l.strstart,l.insert=l.lookahead,l.lookahead=0,l.match_length=l.prev_length=_r-1,l.match_available=0,r.next_in=p,r.input=b,r.avail_in=y,l.wrap=c,uu};var VE=$E,GE=K7,ZE=X7,XE=Z7,KE=UE,QE=HE,JE=WE,tS=qE,eS="pako deflate (from Nodeca project)",Zm={deflateInit:VE,deflateInit2:GE,deflateReset:ZE,deflateResetKeep:XE,deflateSetHeader:KE,deflate:QE,deflateEnd:JE,deflateSetDictionary:tS,deflateInfo:eS};const nS=(r,s)=>Object.prototype.hasOwnProperty.call(r,s);var rS=function(r){const s=Array.prototype.slice.call(arguments,1);for(;s.length;){const o=s.shift();if(!!o){if(typeof o!="object")throw new TypeError(o+"must be non-object");for(const l in o)nS(o,l)&&(r[l]=o[l])}}return r},iS=r=>{let s=0;for(let l=0,c=r.length;l<c;l++)s+=r[l].length;const o=new Uint8Array(s);for(let l=0,c=0,y=r.length;l<y;l++){let p=r[l];o.set(p,c),c+=p.length}return o},rw={assign:rS,flattenChunks:iS};let Q7=!0;try{String.fromCharCode.apply(null,new Uint8Array(1))}catch{Q7=!1}const Xm=new Uint8Array(256);for(let r=0;r<256;r++)Xm[r]=r>=252?6:r>=248?5:r>=240?4:r>=224?3:r>=192?2:1;Xm[254]=Xm[254]=1;var aS=r=>{if(typeof TextEncoder=="function"&&TextEncoder.prototype.encode)return new TextEncoder().encode(r);let s,o,l,c,y,p=r.length,b=0;for(c=0;c<p;c++)o=r.charCodeAt(c),(o&64512)==55296&&c+1<p&&(l=r.charCodeAt(c+1),(l&64512)==56320&&(o=65536+(o-55296<<10)+(l-56320),c++)),b+=o<128?1:o<2048?2:o<65536?3:4;for(s=new Uint8Array(b),y=0,c=0;y<b;c++)o=r.charCodeAt(c),(o&64512)==55296&&c+1<p&&(l=r.charCodeAt(c+1),(l&64512)==56320&&(o=65536+(o-55296<<10)+(l-56320),c++)),o<128?s[y++]=o:o<2048?(s[y++]=192|o>>>6,s[y++]=128|o&63):o<65536?(s[y++]=224|o>>>12,s[y++]=128|o>>>6&63,s[y++]=128|o&63):(s[y++]=240|o>>>18,s[y++]=128|o>>>12&63,s[y++]=128|o>>>6&63,s[y++]=128|o&63);return s};const oS=(r,s)=>{if(s<65534&&r.subarray&&Q7)return String.fromCharCode.apply(null,r.length===s?r:r.subarray(0,s));let o="";for(let l=0;l<s;l++)o+=String.fromCharCode(r[l]);return o};var sS=(r,s)=>{const o=s||r.length;if(typeof TextDecoder=="function"&&TextDecoder.prototype.decode)return new TextDecoder().decode(r.subarray(0,s));let l,c;const y=new Array(o*2);for(c=0,l=0;l<o;){let p=r[l++];if(p<128){y[c++]=p;continue}let b=Xm[p];if(b>4){y[c++]=65533,l+=b-1;continue}for(p&=b===2?31:b===3?15:7;b>1&&l<o;)p=p<<6|r[l++]&63,b--;if(b>1){y[c++]=65533;continue}p<65536?y[c++]=p:(p-=65536,y[c++]=55296|p>>10&1023,y[c++]=56320|p&1023)}return oS(y,c)},cS=(r,s)=>{s=s||r.length,s>r.length&&(s=r.length);let o=s-1;for(;o>=0&&(r[o]&192)==128;)o--;return o<0||o===0?s:o+Xm[r[o]]>s?o:s},Km={string2buf:aS,buf2string:sS,utf8border:cS};function uS(){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 J7=uS;const tk=Object.prototype.toString,{Z_NO_FLUSH:lS,Z_SYNC_FLUSH:hS,Z_FULL_FLUSH:fS,Z_FINISH:dS,Z_OK:iw,Z_STREAM_END:pS,Z_DEFAULT_COMPRESSION:gS,Z_DEFAULT_STRATEGY:yS,Z_DEFLATED:mS}=Yp;function Qm(r){this.options=rw.assign({level:gS,method:mS,chunkSize:16384,windowBits:15,memLevel:8,strategy:yS},r||{});let s=this.options;s.raw&&s.windowBits>0?s.windowBits=-s.windowBits:s.gzip&&s.windowBits>0&&s.windowBits<16&&(s.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new J7,this.strm.avail_out=0;let o=Zm.deflateInit2(this.strm,s.level,s.method,s.windowBits,s.memLevel,s.strategy);if(o!==iw)throw new Error(jd[o]);if(s.header&&Zm.deflateSetHeader(this.strm,s.header),s.dictionary){let l;if(typeof s.dictionary=="string"?l=Km.string2buf(s.dictionary):tk.call(s.dictionary)==="[object ArrayBuffer]"?l=new Uint8Array(s.dictionary):l=s.dictionary,o=Zm.deflateSetDictionary(this.strm,l),o!==iw)throw new Error(jd[o]);this._dict_set=!0}}Qm.prototype.push=function(r,s){const o=this.strm,l=this.options.chunkSize;let c,y;if(this.ended)return!1;for(s===~~s?y=s:y=s===!0?dS:lS,typeof r=="string"?o.input=Km.string2buf(r):tk.call(r)==="[object ArrayBuffer]"?o.input=new Uint8Array(r):o.input=r,o.next_in=0,o.avail_in=o.input.length;;){if(o.avail_out===0&&(o.output=new Uint8Array(l),o.next_out=0,o.avail_out=l),(y===hS||y===fS)&&o.avail_out<=6){this.onData(o.output.subarray(0,o.next_out)),o.avail_out=0;continue}if(c=Zm.deflate(o,y),c===pS)return o.next_out>0&&this.onData(o.output.subarray(0,o.next_out)),c=Zm.deflateEnd(this.strm),this.onEnd(c),this.ended=!0,c===iw;if(o.avail_out===0){this.onData(o.output);continue}if(y>0&&o.next_out>0){this.onData(o.output.subarray(0,o.next_out)),o.avail_out=0;continue}if(o.avail_in===0)break}return!0};Qm.prototype.onData=function(r){this.chunks.push(r)};Qm.prototype.onEnd=function(r){r===iw&&(this.result=rw.flattenChunks(this.chunks)),this.chunks=[],this.err=r,this.msg=this.strm.msg};function s8(r,s){const o=new Qm(s);if(o.push(r,!0),o.err)throw o.msg||jd[o.err];return o.result}function vS(r,s){return s=s||{},s.raw=!0,s8(r,s)}function _S(r,s){return s=s||{},s.gzip=!0,s8(r,s)}var bS=Qm,wS=s8,xS=vS,kS=_S,TS=Yp,ES={Deflate:bS,deflate:wS,deflateRaw:xS,gzip:kS,constants:TS};const aw=30,SS=12;var CS=function(s,o){let l,c,y,p,b,T,k,D,O,R,z,$,q,V,X,it,tt,rt,ut,Ct,et,K,ht,xt;const St=s.state;l=s.next_in,ht=s.input,c=l+(s.avail_in-5),y=s.next_out,xt=s.output,p=y-(o-s.avail_out),b=y+(s.avail_out-257),T=St.dmax,k=St.wsize,D=St.whave,O=St.wnext,R=St.window,z=St.hold,$=St.bits,q=St.lencode,V=St.distcode,X=(1<<St.lenbits)-1,it=(1<<St.distbits)-1;t:do{$<15&&(z+=ht[l++]<<$,$+=8,z+=ht[l++]<<$,$+=8),tt=q[z&X];e:for(;;){if(rt=tt>>>24,z>>>=rt,$-=rt,rt=tt>>>16&255,rt===0)xt[y++]=tt&65535;else if(rt&16){ut=tt&65535,rt&=15,rt&&($<rt&&(z+=ht[l++]<<$,$+=8),ut+=z&(1<<rt)-1,z>>>=rt,$-=rt),$<15&&(z+=ht[l++]<<$,$+=8,z+=ht[l++]<<$,$+=8),tt=V[z&it];n:for(;;){if(rt=tt>>>24,z>>>=rt,$-=rt,rt=tt>>>16&255,rt&16){if(Ct=tt&65535,rt&=15,$<rt&&(z+=ht[l++]<<$,$+=8,$<rt&&(z+=ht[l++]<<$,$+=8)),Ct+=z&(1<<rt)-1,Ct>T){s.msg="invalid distance too far back",St.mode=aw;break t}if(z>>>=rt,$-=rt,rt=y-p,Ct>rt){if(rt=Ct-rt,rt>D&&St.sane){s.msg="invalid distance too far back",St.mode=aw;break t}if(et=0,K=R,O===0){if(et+=k-rt,rt<ut){ut-=rt;do xt[y++]=R[et++];while(--rt);et=y-Ct,K=xt}}else if(O<rt){if(et+=k+O-rt,rt-=O,rt<ut){ut-=rt;do xt[y++]=R[et++];while(--rt);if(et=0,O<ut){rt=O,ut-=rt;do xt[y++]=R[et++];while(--rt);et=y-Ct,K=xt}}}else if(et+=O-rt,rt<ut){ut-=rt;do xt[y++]=R[et++];while(--rt);et=y-Ct,K=xt}for(;ut>2;)xt[y++]=K[et++],xt[y++]=K[et++],xt[y++]=K[et++],ut-=3;ut&&(xt[y++]=K[et++],ut>1&&(xt[y++]=K[et++]))}else{et=y-Ct;do xt[y++]=xt[et++],xt[y++]=xt[et++],xt[y++]=xt[et++],ut-=3;while(ut>2);ut&&(xt[y++]=xt[et++],ut>1&&(xt[y++]=xt[et++]))}}else if((rt&64)==0){tt=V[(tt&65535)+(z&(1<<rt)-1)];continue n}else{s.msg="invalid distance code",St.mode=aw;break t}break}}else if((rt&64)==0){tt=q[(tt&65535)+(z&(1<<rt)-1)];continue e}else if(rt&32){St.mode=SS;break t}else{s.msg="invalid literal/length code",St.mode=aw;break t}break}}while(l<c&&y<b);ut=$>>3,l-=ut,$-=ut<<3,z&=(1<<$)-1,s.next_in=l,s.next_out=y,s.avail_in=l<c?5+(c-l):5-(l-c),s.avail_out=y<b?257+(b-y):257-(y-b),St.hold=z,St.bits=$};const Up=15,ek=852,nk=592,rk=0,c8=1,ik=2,AS=new Uint16Array([3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0]),MS=new Uint8Array([16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78]),DS=new Uint16Array([1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0]),NS=new Uint8Array([16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64]),OS=(r,s,o,l,c,y,p,b)=>{const T=b.bits;let k=0,D=0,O=0,R=0,z=0,$=0,q=0,V=0,X=0,it=0,tt,rt,ut,Ct,et,K=null,ht=0,xt;const St=new Uint16Array(Up+1),pt=new Uint16Array(Up+1);let wt=null,Ht=0,Pt,ge,pe;for(k=0;k<=Up;k++)St[k]=0;for(D=0;D<l;D++)St[s[o+D]]++;for(z=T,R=Up;R>=1&&St[R]===0;R--);if(z>R&&(z=R),R===0)return c[y++]=1<<24|64<<16|0,c[y++]=1<<24|64<<16|0,b.bits=1,0;for(O=1;O<R&&St[O]===0;O++);for(z<O&&(z=O),V=1,k=1;k<=Up;k++)if(V<<=1,V-=St[k],V<0)return-1;if(V>0&&(r===rk||R!==1))return-1;for(pt[1]=0,k=1;k<Up;k++)pt[k+1]=pt[k]+St[k];for(D=0;D<l;D++)s[o+D]!==0&&(p[pt[s[o+D]]++]=D);if(r===rk?(K=wt=p,xt=19):r===c8?(K=AS,ht-=257,wt=MS,Ht-=257,xt=256):(K=DS,wt=NS,xt=-1),it=0,D=0,k=O,et=y,$=z,q=0,ut=-1,X=1<<z,Ct=X-1,r===c8&&X>ek||r===ik&&X>nk)return 1;for(;;){Pt=k-q,p[D]<xt?(ge=0,pe=p[D]):p[D]>xt?(ge=wt[Ht+p[D]],pe=K[ht+p[D]]):(ge=32+64,pe=0),tt=1<<k-q,rt=1<<$,O=rt;do rt-=tt,c[et+(it>>q)+rt]=Pt<<24|ge<<16|pe|0;while(rt!==0);for(tt=1<<k-1;it&tt;)tt>>=1;if(tt!==0?(it&=tt-1,it+=tt):it=0,D++,--St[k]==0){if(k===R)break;k=s[o+p[D]]}if(k>z&&(it&Ct)!==ut){for(q===0&&(q=z),et+=O,$=k-q,V=1<<$;$+q<R&&(V-=St[$+q],!(V<=0));)$++,V<<=1;if(X+=1<<$,r===c8&&X>ek||r===ik&&X>nk)return 1;ut=it&Ct,c[ut]=z<<24|$<<16|et-y|0}}return it!==0&&(c[et+it]=k-q<<24|64<<16|0),b.bits=z,0};var Jm=OS;const LS=0,ak=1,ok=2,{Z_FINISH:sk,Z_BLOCK:BS,Z_TREES:ow,Z_OK:Wd,Z_STREAM_END:IS,Z_NEED_DICT:RS,Z_STREAM_ERROR:Is,Z_DATA_ERROR:ck,Z_MEM_ERROR:uk,Z_BUF_ERROR:FS,Z_DEFLATED:lk}=Yp,hk=1,fk=2,dk=3,pk=4,gk=5,yk=6,mk=7,vk=8,_k=9,bk=10,sw=11,il=12,u8=13,wk=14,l8=15,xk=16,kk=17,Tk=18,Ek=19,cw=20,uw=21,Sk=22,Ck=23,Ak=24,Mk=25,Dk=26,h8=27,Nk=28,Ok=29,wi=30,Lk=31,PS=32,YS=852,jS=592,zS=15,US=zS,Bk=r=>(r>>>24&255)+(r>>>8&65280)+((r&65280)<<8)+((r&255)<<24);function $S(){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 Ik=r=>{if(!r||!r.state)return Is;const s=r.state;return r.total_in=r.total_out=s.total=0,r.msg="",s.wrap&&(r.adler=s.wrap&1),s.mode=hk,s.last=0,s.havedict=0,s.dmax=32768,s.head=null,s.hold=0,s.bits=0,s.lencode=s.lendyn=new Int32Array(YS),s.distcode=s.distdyn=new Int32Array(jS),s.sane=1,s.back=-1,Wd},Rk=r=>{if(!r||!r.state)return Is;const s=r.state;return s.wsize=0,s.whave=0,s.wnext=0,Ik(r)},Fk=(r,s)=>{let o;if(!r||!r.state)return Is;const l=r.state;return s<0?(o=0,s=-s):(o=(s>>4)+1,s<48&&(s&=15)),s&&(s<8||s>15)?Is:(l.window!==null&&l.wbits!==s&&(l.window=null),l.wrap=o,l.wbits=s,Rk(r))},Pk=(r,s)=>{if(!r)return Is;const o=new $S;r.state=o,o.window=null;const l=Fk(r,s);return l!==Wd&&(r.state=null),l},HS=r=>Pk(r,US);let Yk=!0,f8,d8;const WS=r=>{if(Yk){f8=new Int32Array(512),d8=new Int32Array(32);let s=0;for(;s<144;)r.lens[s++]=8;for(;s<256;)r.lens[s++]=9;for(;s<280;)r.lens[s++]=7;for(;s<288;)r.lens[s++]=8;for(Jm(ak,r.lens,0,288,f8,0,r.work,{bits:9}),s=0;s<32;)r.lens[s++]=5;Jm(ok,r.lens,0,32,d8,0,r.work,{bits:5}),Yk=!1}r.lencode=f8,r.lenbits=9,r.distcode=d8,r.distbits=5},jk=(r,s,o,l)=>{let c;const y=r.state;return y.window===null&&(y.wsize=1<<y.wbits,y.wnext=0,y.whave=0,y.window=new Uint8Array(y.wsize)),l>=y.wsize?(y.window.set(s.subarray(o-y.wsize,o),0),y.wnext=0,y.whave=y.wsize):(c=y.wsize-y.wnext,c>l&&(c=l),y.window.set(s.subarray(o-l,o-l+c),y.wnext),l-=c,l?(y.window.set(s.subarray(o-l,o),0),y.wnext=l,y.whave=y.wsize):(y.wnext+=c,y.wnext===y.wsize&&(y.wnext=0),y.whave<y.wsize&&(y.whave+=c))),0},qS=(r,s)=>{let o,l,c,y,p,b,T,k,D,O,R,z,$,q,V=0,X,it,tt,rt,ut,Ct,et,K;const ht=new Uint8Array(4);let xt,St;const pt=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]);if(!r||!r.state||!r.output||!r.input&&r.avail_in!==0)return Is;o=r.state,o.mode===il&&(o.mode=u8),p=r.next_out,c=r.output,T=r.avail_out,y=r.next_in,l=r.input,b=r.avail_in,k=o.hold,D=o.bits,O=b,R=T,K=Wd;t:for(;;)switch(o.mode){case hk:if(o.wrap===0){o.mode=u8;break}for(;D<16;){if(b===0)break t;b--,k+=l[y++]<<D,D+=8}if(o.wrap&2&&k===35615){o.check=0,ht[0]=k&255,ht[1]=k>>>8&255,o.check=wa(o.check,ht,2,0),k=0,D=0,o.mode=fk;break}if(o.flags=0,o.head&&(o.head.done=!1),!(o.wrap&1)||(((k&255)<<8)+(k>>8))%31){r.msg="incorrect header check",o.mode=wi;break}if((k&15)!==lk){r.msg="unknown compression method",o.mode=wi;break}if(k>>>=4,D-=4,et=(k&15)+8,o.wbits===0)o.wbits=et;else if(et>o.wbits){r.msg="invalid window size",o.mode=wi;break}o.dmax=1<<o.wbits,r.adler=o.check=1,o.mode=k&512?bk:il,k=0,D=0;break;case fk:for(;D<16;){if(b===0)break t;b--,k+=l[y++]<<D,D+=8}if(o.flags=k,(o.flags&255)!==lk){r.msg="unknown compression method",o.mode=wi;break}if(o.flags&57344){r.msg="unknown header flags set",o.mode=wi;break}o.head&&(o.head.text=k>>8&1),o.flags&512&&(ht[0]=k&255,ht[1]=k>>>8&255,o.check=wa(o.check,ht,2,0)),k=0,D=0,o.mode=dk;case dk:for(;D<32;){if(b===0)break t;b--,k+=l[y++]<<D,D+=8}o.head&&(o.head.time=k),o.flags&512&&(ht[0]=k&255,ht[1]=k>>>8&255,ht[2]=k>>>16&255,ht[3]=k>>>24&255,o.check=wa(o.check,ht,4,0)),k=0,D=0,o.mode=pk;case pk:for(;D<16;){if(b===0)break t;b--,k+=l[y++]<<D,D+=8}o.head&&(o.head.xflags=k&255,o.head.os=k>>8),o.flags&512&&(ht[0]=k&255,ht[1]=k>>>8&255,o.check=wa(o.check,ht,2,0)),k=0,D=0,o.mode=gk;case gk:if(o.flags&1024){for(;D<16;){if(b===0)break t;b--,k+=l[y++]<<D,D+=8}o.length=k,o.head&&(o.head.extra_len=k),o.flags&512&&(ht[0]=k&255,ht[1]=k>>>8&255,o.check=wa(o.check,ht,2,0)),k=0,D=0}else o.head&&(o.head.extra=null);o.mode=yk;case yk:if(o.flags&1024&&(z=o.length,z>b&&(z=b),z&&(o.head&&(et=o.head.extra_len-o.length,o.head.extra||(o.head.extra=new Uint8Array(o.head.extra_len)),o.head.extra.set(l.subarray(y,y+z),et)),o.flags&512&&(o.check=wa(o.check,l,z,y)),b-=z,y+=z,o.length-=z),o.length))break t;o.length=0,o.mode=mk;case mk:if(o.flags&2048){if(b===0)break t;z=0;do et=l[y+z++],o.head&&et&&o.length<65536&&(o.head.name+=String.fromCharCode(et));while(et&&z<b);if(o.flags&512&&(o.check=wa(o.check,l,z,y)),b-=z,y+=z,et)break t}else o.head&&(o.head.name=null);o.length=0,o.mode=vk;case vk:if(o.flags&4096){if(b===0)break t;z=0;do et=l[y+z++],o.head&&et&&o.length<65536&&(o.head.comment+=String.fromCharCode(et));while(et&&z<b);if(o.flags&512&&(o.check=wa(o.check,l,z,y)),b-=z,y+=z,et)break t}else o.head&&(o.head.comment=null);o.mode=_k;case _k:if(o.flags&512){for(;D<16;){if(b===0)break t;b--,k+=l[y++]<<D,D+=8}if(k!==(o.check&65535)){r.msg="header crc mismatch",o.mode=wi;break}k=0,D=0}o.head&&(o.head.hcrc=o.flags>>9&1,o.head.done=!0),r.adler=o.check=0,o.mode=il;break;case bk:for(;D<32;){if(b===0)break t;b--,k+=l[y++]<<D,D+=8}r.adler=o.check=Bk(k),k=0,D=0,o.mode=sw;case sw:if(o.havedict===0)return r.next_out=p,r.avail_out=T,r.next_in=y,r.avail_in=b,o.hold=k,o.bits=D,RS;r.adler=o.check=1,o.mode=il;case il:if(s===BS||s===ow)break t;case u8:if(o.last){k>>>=D&7,D-=D&7,o.mode=h8;break}for(;D<3;){if(b===0)break t;b--,k+=l[y++]<<D,D+=8}switch(o.last=k&1,k>>>=1,D-=1,k&3){case 0:o.mode=wk;break;case 1:if(WS(o),o.mode=cw,s===ow){k>>>=2,D-=2;break t}break;case 2:o.mode=kk;break;case 3:r.msg="invalid block type",o.mode=wi}k>>>=2,D-=2;break;case wk:for(k>>>=D&7,D-=D&7;D<32;){if(b===0)break t;b--,k+=l[y++]<<D,D+=8}if((k&65535)!=(k>>>16^65535)){r.msg="invalid stored block lengths",o.mode=wi;break}if(o.length=k&65535,k=0,D=0,o.mode=l8,s===ow)break t;case l8:o.mode=xk;case xk:if(z=o.length,z){if(z>b&&(z=b),z>T&&(z=T),z===0)break t;c.set(l.subarray(y,y+z),p),b-=z,y+=z,T-=z,p+=z,o.length-=z;break}o.mode=il;break;case kk:for(;D<14;){if(b===0)break t;b--,k+=l[y++]<<D,D+=8}if(o.nlen=(k&31)+257,k>>>=5,D-=5,o.ndist=(k&31)+1,k>>>=5,D-=5,o.ncode=(k&15)+4,k>>>=4,D-=4,o.nlen>286||o.ndist>30){r.msg="too many length or distance symbols",o.mode=wi;break}o.have=0,o.mode=Tk;case Tk:for(;o.have<o.ncode;){for(;D<3;){if(b===0)break t;b--,k+=l[y++]<<D,D+=8}o.lens[pt[o.have++]]=k&7,k>>>=3,D-=3}for(;o.have<19;)o.lens[pt[o.have++]]=0;if(o.lencode=o.lendyn,o.lenbits=7,xt={bits:o.lenbits},K=Jm(LS,o.lens,0,19,o.lencode,0,o.work,xt),o.lenbits=xt.bits,K){r.msg="invalid code lengths set",o.mode=wi;break}o.have=0,o.mode=Ek;case Ek:for(;o.have<o.nlen+o.ndist;){for(;V=o.lencode[k&(1<<o.lenbits)-1],X=V>>>24,it=V>>>16&255,tt=V&65535,!(X<=D);){if(b===0)break t;b--,k+=l[y++]<<D,D+=8}if(tt<16)k>>>=X,D-=X,o.lens[o.have++]=tt;else{if(tt===16){for(St=X+2;D<St;){if(b===0)break t;b--,k+=l[y++]<<D,D+=8}if(k>>>=X,D-=X,o.have===0){r.msg="invalid bit length repeat",o.mode=wi;break}et=o.lens[o.have-1],z=3+(k&3),k>>>=2,D-=2}else if(tt===17){for(St=X+3;D<St;){if(b===0)break t;b--,k+=l[y++]<<D,D+=8}k>>>=X,D-=X,et=0,z=3+(k&7),k>>>=3,D-=3}else{for(St=X+7;D<St;){if(b===0)break t;b--,k+=l[y++]<<D,D+=8}k>>>=X,D-=X,et=0,z=11+(k&127),k>>>=7,D-=7}if(o.have+z>o.nlen+o.ndist){r.msg="invalid bit length repeat",o.mode=wi;break}for(;z--;)o.lens[o.have++]=et}}if(o.mode===wi)break;if(o.lens[256]===0){r.msg="invalid code -- missing end-of-block",o.mode=wi;break}if(o.lenbits=9,xt={bits:o.lenbits},K=Jm(ak,o.lens,0,o.nlen,o.lencode,0,o.work,xt),o.lenbits=xt.bits,K){r.msg="invalid literal/lengths set",o.mode=wi;break}if(o.distbits=6,o.distcode=o.distdyn,xt={bits:o.distbits},K=Jm(ok,o.lens,o.nlen,o.ndist,o.distcode,0,o.work,xt),o.distbits=xt.bits,K){r.msg="invalid distances set",o.mode=wi;break}if(o.mode=cw,s===ow)break t;case cw:o.mode=uw;case uw:if(b>=6&&T>=258){r.next_out=p,r.avail_out=T,r.next_in=y,r.avail_in=b,o.hold=k,o.bits=D,CS(r,R),p=r.next_out,c=r.output,T=r.avail_out,y=r.next_in,l=r.input,b=r.avail_in,k=o.hold,D=o.bits,o.mode===il&&(o.back=-1);break}for(o.back=0;V=o.lencode[k&(1<<o.lenbits)-1],X=V>>>24,it=V>>>16&255,tt=V&65535,!(X<=D);){if(b===0)break t;b--,k+=l[y++]<<D,D+=8}if(it&&(it&240)==0){for(rt=X,ut=it,Ct=tt;V=o.lencode[Ct+((k&(1<<rt+ut)-1)>>rt)],X=V>>>24,it=V>>>16&255,tt=V&65535,!(rt+X<=D);){if(b===0)break t;b--,k+=l[y++]<<D,D+=8}k>>>=rt,D-=rt,o.back+=rt}if(k>>>=X,D-=X,o.back+=X,o.length=tt,it===0){o.mode=Dk;break}if(it&32){o.back=-1,o.mode=il;break}if(it&64){r.msg="invalid literal/length code",o.mode=wi;break}o.extra=it&15,o.mode=Sk;case Sk:if(o.extra){for(St=o.extra;D<St;){if(b===0)break t;b--,k+=l[y++]<<D,D+=8}o.length+=k&(1<<o.extra)-1,k>>>=o.extra,D-=o.extra,o.back+=o.extra}o.was=o.length,o.mode=Ck;case Ck:for(;V=o.distcode[k&(1<<o.distbits)-1],X=V>>>24,it=V>>>16&255,tt=V&65535,!(X<=D);){if(b===0)break t;b--,k+=l[y++]<<D,D+=8}if((it&240)==0){for(rt=X,ut=it,Ct=tt;V=o.distcode[Ct+((k&(1<<rt+ut)-1)>>rt)],X=V>>>24,it=V>>>16&255,tt=V&65535,!(rt+X<=D);){if(b===0)break t;b--,k+=l[y++]<<D,D+=8}k>>>=rt,D-=rt,o.back+=rt}if(k>>>=X,D-=X,o.back+=X,it&64){r.msg="invalid distance code",o.mode=wi;break}o.offset=tt,o.extra=it&15,o.mode=Ak;case Ak:if(o.extra){for(St=o.extra;D<St;){if(b===0)break t;b--,k+=l[y++]<<D,D+=8}o.offset+=k&(1<<o.extra)-1,k>>>=o.extra,D-=o.extra,o.back+=o.extra}if(o.offset>o.dmax){r.msg="invalid distance too far back",o.mode=wi;break}o.mode=Mk;case Mk:if(T===0)break t;if(z=R-T,o.offset>z){if(z=o.offset-z,z>o.whave&&o.sane){r.msg="invalid distance too far back",o.mode=wi;break}z>o.wnext?(z-=o.wnext,$=o.wsize-z):$=o.wnext-z,z>o.length&&(z=o.length),q=o.window}else q=c,$=p-o.offset,z=o.length;z>T&&(z=T),T-=z,o.length-=z;do c[p++]=q[$++];while(--z);o.length===0&&(o.mode=uw);break;case Dk:if(T===0)break t;c[p++]=o.length,T--,o.mode=uw;break;case h8:if(o.wrap){for(;D<32;){if(b===0)break t;b--,k|=l[y++]<<D,D+=8}if(R-=T,r.total_out+=R,o.total+=R,R&&(r.adler=o.check=o.flags?wa(o.check,c,R,p-R):Hm(o.check,c,R,p-R)),R=T,(o.flags?k:Bk(k))!==o.check){r.msg="incorrect data check",o.mode=wi;break}k=0,D=0}o.mode=Nk;case Nk:if(o.wrap&&o.flags){for(;D<32;){if(b===0)break t;b--,k+=l[y++]<<D,D+=8}if(k!==(o.total&4294967295)){r.msg="incorrect length check",o.mode=wi;break}k=0,D=0}o.mode=Ok;case Ok:K=IS;break t;case wi:K=ck;break t;case Lk:return uk;case PS:default:return Is}return r.next_out=p,r.avail_out=T,r.next_in=y,r.avail_in=b,o.hold=k,o.bits=D,(o.wsize||R!==r.avail_out&&o.mode<wi&&(o.mode<h8||s!==sk))&&jk(r,r.output,r.next_out,R-r.avail_out),O-=r.avail_in,R-=r.avail_out,r.total_in+=O,r.total_out+=R,o.total+=R,o.wrap&&R&&(r.adler=o.check=o.flags?wa(o.check,c,R,r.next_out-R):Hm(o.check,c,R,r.next_out-R)),r.data_type=o.bits+(o.last?64:0)+(o.mode===il?128:0)+(o.mode===cw||o.mode===l8?256:0),(O===0&&R===0||s===sk)&&K===Wd&&(K=FS),K},VS=r=>{if(!r||!r.state)return Is;let s=r.state;return s.window&&(s.window=null),r.state=null,Wd},GS=(r,s)=>{if(!r||!r.state)return Is;const o=r.state;return(o.wrap&2)==0?Is:(o.head=s,s.done=!1,Wd)},ZS=(r,s)=>{const o=s.length;let l,c,y;return!r||!r.state||(l=r.state,l.wrap!==0&&l.mode!==sw)?Is:l.mode===sw&&(c=1,c=Hm(c,s,o,0),c!==l.check)?ck:(y=jk(r,s,o,o),y?(l.mode=Lk,uk):(l.havedict=1,Wd))};var XS=Rk,KS=Fk,QS=Ik,JS=HS,tC=Pk,eC=qS,nC=VS,rC=GS,iC=ZS,aC="pako inflate (from Nodeca project)",al={inflateReset:XS,inflateReset2:KS,inflateResetKeep:QS,inflateInit:JS,inflateInit2:tC,inflate:eC,inflateEnd:nC,inflateGetHeader:rC,inflateSetDictionary:iC,inflateInfo:aC};function oC(){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 sC=oC;const zk=Object.prototype.toString,{Z_NO_FLUSH:cC,Z_FINISH:uC,Z_OK:tv,Z_STREAM_END:p8,Z_NEED_DICT:g8,Z_STREAM_ERROR:lC,Z_DATA_ERROR:Uk,Z_MEM_ERROR:hC}=Yp;function ev(r){this.options=rw.assign({chunkSize:1024*64,windowBits:15,to:""},r||{});const s=this.options;s.raw&&s.windowBits>=0&&s.windowBits<16&&(s.windowBits=-s.windowBits,s.windowBits===0&&(s.windowBits=-15)),s.windowBits>=0&&s.windowBits<16&&!(r&&r.windowBits)&&(s.windowBits+=32),s.windowBits>15&&s.windowBits<48&&(s.windowBits&15)==0&&(s.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new J7,this.strm.avail_out=0;let o=al.inflateInit2(this.strm,s.windowBits);if(o!==tv)throw new Error(jd[o]);if(this.header=new sC,al.inflateGetHeader(this.strm,this.header),s.dictionary&&(typeof s.dictionary=="string"?s.dictionary=Km.string2buf(s.dictionary):zk.call(s.dictionary)==="[object ArrayBuffer]"&&(s.dictionary=new Uint8Array(s.dictionary)),s.raw&&(o=al.inflateSetDictionary(this.strm,s.dictionary),o!==tv)))throw new Error(jd[o])}ev.prototype.push=function(r,s){const o=this.strm,l=this.options.chunkSize,c=this.options.dictionary;let y,p,b;if(this.ended)return!1;for(s===~~s?p=s:p=s===!0?uC:cC,zk.call(r)==="[object ArrayBuffer]"?o.input=new Uint8Array(r):o.input=r,o.next_in=0,o.avail_in=o.input.length;;){for(o.avail_out===0&&(o.output=new Uint8Array(l),o.next_out=0,o.avail_out=l),y=al.inflate(o,p),y===g8&&c&&(y=al.inflateSetDictionary(o,c),y===tv?y=al.inflate(o,p):y===Uk&&(y=g8));o.avail_in>0&&y===p8&&o.state.wrap>0&&r[o.next_in]!==0;)al.inflateReset(o),y=al.inflate(o,p);switch(y){case lC:case Uk:case g8:case hC:return this.onEnd(y),this.ended=!0,!1}if(b=o.avail_out,o.next_out&&(o.avail_out===0||y===p8))if(this.options.to==="string"){let T=Km.utf8border(o.output,o.next_out),k=o.next_out-T,D=Km.buf2string(o.output,T);o.next_out=k,o.avail_out=l-k,k&&o.output.set(o.output.subarray(T,T+k),0),this.onData(D)}else this.onData(o.output.length===o.next_out?o.output:o.output.subarray(0,o.next_out));if(!(y===tv&&b===0)){if(y===p8)return y=al.inflateEnd(this.strm),this.onEnd(y),this.ended=!0,!0;if(o.avail_in===0)break}}return!0};ev.prototype.onData=function(r){this.chunks.push(r)};ev.prototype.onEnd=function(r){r===tv&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=rw.flattenChunks(this.chunks)),this.chunks=[],this.err=r,this.msg=this.strm.msg};function y8(r,s){const o=new ev(s);if(o.push(r),o.err)throw o.msg||jd[o.err];return o.result}function fC(r,s){return s=s||{},s.raw=!0,y8(r,s)}var dC=ev,pC=y8,gC=fC,yC=y8,mC=Yp,vC={Inflate:dC,inflate:pC,inflateRaw:gC,ungzip:yC,constants:mC};const{Deflate:MO,deflate:_C,deflateRaw:DO,gzip:NO}=ES,{Inflate:OO,inflate:bC,inflateRaw:LO,ungzip:BO}=vC;var IO=_C,RO=bC;const wC=typeof atob=="function",xC=typeof btoa=="function",$p=typeof Buffer=="function",$k=typeof TextDecoder=="function"?new TextDecoder:void 0,Hk=typeof TextEncoder=="function"?new TextEncoder:void 0,kC="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",nv=Array.prototype.slice.call(kC),lw=(r=>{let s={};return r.forEach((o,l)=>s[o]=l),s})(nv),TC=/^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/,za=String.fromCharCode.bind(String),Wk=typeof Uint8Array.from=="function"?Uint8Array.from.bind(Uint8Array):(r,s=o=>o)=>new Uint8Array(Array.prototype.slice.call(r,0).map(s)),qk=r=>r.replace(/=/g,"").replace(/[+\/]/g,s=>s=="+"?"-":"_"),Vk=r=>r.replace(/[^A-Za-z0-9\+\/]/g,""),EC=r=>{let s,o,l,c,y="";const p=r.length%3;for(let b=0;b<r.length;){if((o=r.charCodeAt(b++))>255||(l=r.charCodeAt(b++))>255||(c=r.charCodeAt(b++))>255)throw new TypeError("invalid character found");s=o<<16|l<<8|c,y+=nv[s>>18&63]+nv[s>>12&63]+nv[s>>6&63]+nv[s&63]}return p?y.slice(0,p-3)+"===".substring(p):y},Gk=xC?r=>btoa(r):$p?r=>Buffer.from(r,"binary").toString("base64"):EC,m8=$p?r=>Buffer.from(r).toString("base64"):r=>{const s=4096;let o=[];for(let l=0,c=r.length;l<c;l+=s)o.push(za.apply(null,r.subarray(l,l+s)));return Gk(o.join(""))},FO=(r,s=!1)=>s?qk(m8(r)):m8(r),SC=r=>{if(r.length<2){var s=r.charCodeAt(0);return s<128?r:s<2048?za(192|s>>>6)+za(128|s&63):za(224|s>>>12&15)+za(128|s>>>6&63)+za(128|s&63)}else{var s=65536+(r.charCodeAt(0)-55296)*1024+(r.charCodeAt(1)-56320);return za(240|s>>>18&7)+za(128|s>>>12&63)+za(128|s>>>6&63)+za(128|s&63)}},CC=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,AC=r=>r.replace(CC,SC),Zk=$p?r=>Buffer.from(r,"utf8").toString("base64"):Hk?r=>m8(Hk.encode(r)):r=>Gk(AC(r)),PO=(r,s=!1)=>s?qk(Zk(r)):Zk(r),MC=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,DC=r=>{switch(r.length){case 4:var s=(7&r.charCodeAt(0))<<18|(63&r.charCodeAt(1))<<12|(63&r.charCodeAt(2))<<6|63&r.charCodeAt(3),o=s-65536;return za((o>>>10)+55296)+za((o&1023)+56320);case 3:return za((15&r.charCodeAt(0))<<12|(63&r.charCodeAt(1))<<6|63&r.charCodeAt(2));default:return za((31&r.charCodeAt(0))<<6|63&r.charCodeAt(1))}},NC=r=>r.replace(MC,DC),OC=r=>{if(r=r.replace(/\s+/g,""),!TC.test(r))throw new TypeError("malformed base64.");r+="==".slice(2-(r.length&3));let s,o="",l,c;for(let y=0;y<r.length;)s=lw[r.charAt(y++)]<<18|lw[r.charAt(y++)]<<12|(l=lw[r.charAt(y++)])<<6|(c=lw[r.charAt(y++)]),o+=l===64?za(s>>16&255):c===64?za(s>>16&255,s>>8&255):za(s>>16&255,s>>8&255,s&255);return o},Xk=wC?r=>atob(Vk(r)):$p?r=>Buffer.from(r,"base64").toString("binary"):OC,Kk=$p?r=>Wk(Buffer.from(r,"base64")):r=>Wk(Xk(r),s=>s.charCodeAt(0)),YO=r=>Kk(Qk(r)),LC=$p?r=>Buffer.from(r,"base64").toString("utf8"):$k?r=>$k.decode(Kk(r)):r=>NC(Xk(r)),Qk=r=>Vk(r.replace(/[-_]/g,s=>s=="-"?"+":"/")),jO=r=>LC(Qk(r));var zO=r=>{r.languages.register({id:"mermaid"});const s=["requirement","functionalRequirement","interfaceRequirement","performanceRequirement","physicalRequirement","designConstraint"],o={flowchart:{typeKeywords:["flowchart","flowchart-v2","graph"],blockKeywords:["subgraph","end"],keywords:["TB","TD","BT","RL","LR","click","call","href","_self","_blank","_parent","_top","linkStyle","style","classDef","class","direction","interpolate"]},sequenceDiagram:{typeKeywords:["sequenceDiagram"],blockKeywords:["alt","par","and","loop","else","end","rect","opt","alt","rect"],keywords:["participant","as","Note","note","right of","left of","over","activate","deactivate","autonumber","title","actor"]},classDiagram:{typeKeywords:["classDiagram","classDiagram-v2"],blockKeywords:["class"],keywords:["link","click","callback","call","href","cssClass","direction","TB","BT","RL","LR"]},stateDiagram:{typeKeywords:["stateDiagram","stateDiagram-v2"],blockKeywords:["state","note","end"],keywords:["state","as","hide empty description","direction","TB","BT","RL","LR"]},erDiagram:{typeKeywords:["erDiagram"],blockKeywords:[],keywords:[]},journey:{typeKeywords:["journey"],blockKeywords:["section"],keywords:["title"]},info:{typeKeywords:["info"],blockKeywords:[],keywords:["showInfo"]},gantt:{typeKeywords:["gantt"],blockKeywords:[],keywords:["title","dateFormat","axisFormat","todayMarker","section","excludes","inclusiveEndDates"]},requirementDiagram:{typeKeywords:["requirement","requirementDiagram"],blockKeywords:s.concat("element"),keywords:[]},gitGraph:{typeKeywords:["gitGraph"],blockKeywords:[],keywords:["commit","branch","merge","reset","checkout","LR","BT"]},pie:{typeKeywords:["pie"],blockKeywords:[],keywords:["title","showData"]}};r.languages.setMonarchTokensProvider("mermaid",Object.assign(Object.assign({},Object.entries(o).map(l=>Object.fromEntries(Object.entries(l[1]).map(c=>[l[0]+c[0][0].toUpperCase()+c[0].slice(1),c[1]]))).reduce((l,c)=>Object.assign(Object.assign({},l),c),{})),{tokenizer:{root:[[/%%(?=.*%%$)/,{token:"string",nextEmbedded:"json"}],[/%%$/,{token:"string",nextEmbedded:"@pop"}],[/^\s*gitGraph/m,"typeKeyword","gitGraph"],[/^\s*info/m,"typeKeyword","info"],[/^\s*pie/m,"typeKeyword","pie"],[/^\s*(flowchart|flowchart-v2|graph)/m,"typeKeyword","flowchart"],[/^\s*sequenceDiagram/,"typeKeyword","sequenceDiagram"],[/^\s*classDiagram(-v2)?/,"typeKeyword","classDiagram"],[/^\s*journey/,"typeKeyword","journey"],[/^\s*gantt/,"typeKeyword","gantt"],[/^\s*stateDiagram(-v2)?/,"typeKeyword","stateDiagram"],[/^\s*er(Diagram)?/,"typeKeyword","erDiagram"],[/^\s*requirement(Diagram)?/,"typeKeyword","requirementDiagram"],[/%%[^$]([^%]*(?!%%$)%?)*$/,"comment"]],gitGraph:[[/option(?=s)/,{token:"typeKeyword",next:"optionsGitGraph"}],[/(^\s*branch|reset|merge|checkout)(.*$)/,["keyword","variable"]],[/[a-zA-Z][\w$]*/,{cases:{"@gitGraphBlockKeywords":"typeKeyword","@gitGraphKeywords":"keyword"}}],[/%%[^$]([^%]*(?!%%$)%?)*$/,"comment"],[/".*?"/,"string"],[/\^/,"delimiter.bracket"]],optionsGitGraph:[[/s$/,{token:"typeKeyword",nextEmbedded:"json",matchOnlyAtLineStart:!1}],["end",{token:"typeKeyword",next:"@pop",nextEmbedded:"@pop"}]],info:[[/[a-zA-Z][\w$]*/,{cases:{"@infoBlockKeywords":"typeKeyword","@infoKeywords":"keyword"}}]],pie:[[/(title)(.*$)/,["keyword","string"]],[/[a-zA-Z][\w$]*/,{cases:{"@pieBlockKeywords":"typeKeyword","@pieKeywords":"keyword"}}],[/".*?"/,"string"],[/\s*\d+/,"number"],[/:/,"delimiter.bracket"],[/%%[^$]([^%]*(?!%%$)%?)*$/,"comment"]],flowchart:[[/[ox]?(--+|==+)[ox]/,"transition"],[/[a-zA-Z][\w$]*/,{cases:{"@flowchartBlockKeywords":"typeKeyword","@flowchartKeywords":"keyword","@default":"variable"}}],[/\|+.+?\|+/,"string"],[/\[+(\\.+?[\\/]|\/.+?[/\\])\]+/,"string"],[/[[>]+[^\]|[]+?\]+/,"string"],[/{+.+?}+/,"string"],[/\(+.+?\)+/,"string"],[/-\.+->?/,"transition"],[/(-[-.])([^->][^-]+?)(-{3,}|-{2,}>|\.-+>)/,["transition","string","transition"]],[/(==+)([^=]+?)(={3,}|={2,}>)/,["transition","string","transition"]],[/<?(--+|==+)>|===+|---+/,"transition"],[/:::/,"transition"],[/[;&]/,"delimiter.bracket"],[/".*?"/,"string"],[/%%[^$]([^%]*(?!%%$)%?)*$/,"comment"]],sequenceDiagram:[[/[a-zA-Z][\w$]*/,{cases:{"@sequenceDiagramBlockKeywords":"typeKeyword","@sequenceDiagramKeywords":"keyword","@default":"variable"}}],[/(--?>?>|--?[)x])[+-]?/,"transition"],[/(:)([^:\n]*?$)/,["delimiter.bracket","string"]],[/%%[^$]([^%]*(?!%%$)%?)*$/,"comment"]],classDiagram:[[/(\*|<\|?|o|)(--|\.\.)(\*|\|?>|o|)([ \t]*[a-zA-Z]+[ \t]*)(:)(.*?$)/,["transition","transition","transition","variable","delimiter.bracket","string"]],[/(?!class\s)([a-zA-Z]+)(\s+[a-zA-Z]+)/,["type","variable"]],[/(\*|<\|?|o)?(--|\.\.)(\*|\|?>|o)?/,"transition"],[/^\s*class\s(?!.*\{)/,"keyword"],[/[a-zA-Z][\w$]*/,{cases:{"@classDiagramBlockKeywords":"typeKeyword","@classDiagramKeywords":"keyword","@default":"variable"}}],[/%%[^$]([^%]*(?!%%$)%?)*$/,"comment"],[/(<<)(.+?)(>>)/,["delimiter.bracket","annotation","delimiter.bracket"]],[/".*?"/,"string"],[/:::/,"transition"],[/:|\+|-|#|~|\*\s*$|\$\s*$|\(|\)|{|}/,"delimiter.bracket"]],journey:[[/(title)(.*)/,["keyword","string"]],[/(section)(.*)/,["typeKeyword","string"]],[/[a-zA-Z][\w$]*/,{cases:{"@journeyBlockKeywords":"typeKeyword","@journeyKeywords":"keyword","@default":"variable"}}],[/(^\s*.+?)(:)(.*?)(:)(.*?)([,$])/,["string","delimiter.bracket","number","delimiter.bracket","variable","delimiter.bracket"]],[/,/,"delimiter.bracket"],[/(^\s*.+?)(:)([^:]*?)$/,["string","delimiter.bracket","variable"]],[/%%[^$]([^%]*(?!%%$)%?)*$/,"comment"]],gantt:[[/(title)(.*)/,["keyword","string"]],[/(section)(.*)/,["typeKeyword","string"]],[/^\s*([^:\n]*?)(:)/,["string","delimiter.bracket"]],[/[a-zA-Z][\w$]*/,{cases:{"@ganttBlockKeywords":"typeKeyword","@ganttKeywords":"keyword"}}],[/%%[^$]([^%]*(?!%%$)%?)*$/,"comment"],[/:/,"delimiter.bracket"]],stateDiagram:[[/note[^:]*$/,{token:"typeKeyword",next:"stateDiagramNote"}],["hide empty description","keyword"],[/^\s*state\s(?!.*\{)/,"keyword"],[/(<<)(fork|join|choice)(>>)/,"annotation"],[/(\[\[)(fork|join|choice)(]])/,["delimiter.bracket","annotation","delimiter.bracket"]],[/[a-zA-Z][\w$]*/,{cases:{"@stateDiagramBlockKeywords":"typeKeyword","@stateDiagramKeywords":"keyword","@default":"variable"}}],[/".*?"/,"string"],[/(:)([^:\n]*?$)/,["delimiter.bracket","string"]],[/{|}/,"delimiter.bracket"],[/%%[^$]([^%]*(?!%%$)%?)*$/,"comment"],[/-->/,"transition"],[/\[.*?]/,"string"]],stateDiagramNote:[[/^\s*end note$/,{token:"typeKeyword",next:"@pop"}],[/.*/,"string"]],erDiagram:[[/[}|][o|](--|\.\.)[o|][{|]/,"transition"],[/".*?"/,"string"],[/(:)(.*?$)/,["delimiter.bracket","string"]],[/:|{|}/,"delimiter.bracket"],[/([a-zA-Z]+)(\s+[a-zA-Z]+)/,["type","variable"]],[/%%[^$]([^%]*(?!%%$)%?)*$/,"comment"],[/[a-zA-Z_-][\w$]*/,"variable"]],requirementDiagram:[[/->|<-|-/,"transition"],[/(\d+\.)*\d+/,"number"],[/[a-zA-Z_-][\w$]*/,{cases:{"@requirementDiagramBlockKeywords":"typeKeyword","@default":"variable"}}],[/:|{|}|\//,"delimiter.bracket"],[/%%[^$]([^%]*(?!%%$)%?)*$/,"comment"],[/".*?"/,"string"]]}})),r.editor.defineTheme("mermaid-dark",{base:"vs-dark",inherit:!0,colors:{},rules:[{token:"typeKeyword",foreground:"9650c8",fontStyle:"bold"},{token:"transition",foreground:"008800",fontStyle:"bold"}]}),r.editor.defineTheme("mermaid",{base:"vs",inherit:!0,colors:{},rules:[{token:"typeKeyword",foreground:"9650c8",fontStyle:"bold"},{token:"keyword",foreground:"649696"},{token:"custom-error",foreground:"ff0000",fontStyle:"bold"},{token:"string",foreground:"AA8500"},{token:"transition",foreground:"008800",fontStyle:"bold"},{token:"delimiter.bracket",foreground:"000000",fontStyle:"bold"},{token:"annotation",foreground:"4b4b96"},{token:"number",foreground:"4b4b96"},{token:"comment",foreground:"888c89"},{token:"variable",foreground:"A22889"},{token:"type",foreground:"2BDEA8"}]}),r.languages.registerCompletionItemProvider("mermaid",{provideCompletionItems:()=>({suggestions:[{label:"loop",kind:r.languages.CompletionItemKind.Snippet,insertText:["loop ${1:Loop text}"," $0","end"].join(`
|
|
`),insertTextRules:r.languages.CompletionItemInsertTextRule.InsertAsSnippet,documentation:"Sequence Diagram Loops"},{label:"alt",kind:r.languages.CompletionItemKind.Snippet,insertText:["alt ${1:Describing text}"," $0","else"," ","end"].join(`
|
|
`),insertTextRules:r.languages.CompletionItemInsertTextRule.InsertAsSnippet,documentation:"Alternative Path"},{label:"opt",kind:r.languages.CompletionItemKind.Snippet,insertText:["opt ${1:Describing text}"," $0","end"].join(`
|
|
`),insertTextRules:r.languages.CompletionItemInsertTextRule.InsertAsSnippet,documentation:"Optional Path"},{label:"par",kind:r.languages.CompletionItemKind.Snippet,insertText:["par ${1:[Action 1]}"," $0","and ${2:[Action 2]}"," ","and ${3:[Action 3]}"," ","end"].join(`
|
|
`),insertTextRules:r.languages.CompletionItemInsertTextRule.InsertAsSnippet,documentation:"Parallel Actions"},{label:"rect",kind:r.languages.CompletionItemKind.Snippet,insertText:["rect ${1:rgb(0, 255, 0)}"," $0","end"].join(`
|
|
`),insertTextRules:r.languages.CompletionItemInsertTextRule.InsertAsSnippet,documentation:"Background Color"},{label:"subgraph",kind:r.languages.CompletionItemKind.Snippet,insertText:["subgraph ${1:title}"," $0","end"].join(`
|
|
`),insertTextRules:r.languages.CompletionItemInsertTextRule.InsertAsSnippet,documentation:"Subgraph"},{label:"class",kind:r.languages.CompletionItemKind.Snippet,insertText:["class ${1:className} {"," $0","}"].join(`
|
|
`),insertTextRules:r.languages.CompletionItemInsertTextRule.InsertAsSnippet,documentation:"Class"},{label:"state",kind:r.languages.CompletionItemKind.Snippet,insertText:["state ${1:stateName} {"," $0","}"].join(`
|
|
`),insertTextRules:r.languages.CompletionItemInsertTextRule.InsertAsSnippet,documentation:"State"},{label:"note",kind:r.languages.CompletionItemKind.Snippet,insertText:["note ${1:right of State1}"," $0","end note"].join(`
|
|
`),insertTextRules:r.languages.CompletionItemInsertTextRule.InsertAsSnippet,documentation:"State"},{label:"section",kind:r.languages.CompletionItemKind.Snippet,insertText:["section ${1:Go to work}"," $0"].join(`
|
|
`),insertTextRules:r.languages.CompletionItemInsertTextRule.InsertAsSnippet,documentation:"User-journey Section"},{label:"element",kind:r.languages.CompletionItemKind.Snippet,insertText:["element ${1:test_entity} {"," $0","}"].join(`
|
|
`),insertTextRules:r.languages.CompletionItemInsertTextRule.InsertAsSnippet,documentation:"Requirement Diagram Element"},{label:"options",kind:r.languages.CompletionItemKind.Snippet,insertText:["options","{"," $0","}","end"].join(`
|
|
`),insertTextRules:r.languages.CompletionItemInsertTextRule.InsertAsSnippet,documentation:"Git Graph Options"},...s.map(c=>({label:c,kind:r.languages.CompletionItemKind.Snippet,insertText:[c+" ${1:test_req} {"," id: 1"," text: the test text."," risk: high"," verifyMethod: test","}"].join(`
|
|
`),insertTextRules:r.languages.CompletionItemInsertTextRule.InsertAsSnippet,documentation:c.split(/(?=[A-Z])/).map(y=>y[0].toUpperCase()+y.slice(1)).join(" ")})),...[...new Set(Object.values(o).map(c=>Object.entries(c).filter(y=>y[0]!=="annotations").map(y=>y[1])).flat(2))].map(c=>({label:c,kind:r.languages.CompletionItemKind.Keyword,insertText:c}))]})}),r.languages.setLanguageConfiguration("mermaid",{autoClosingPairs:[{open:"(",close:")"},{open:"{",close:"}"},{open:"[",close:"]"}],brackets:[["(",")"],["{","}"],["[","]"]]})};const UO="8.13.10";function BC(r){const s=r-1;return s*s*s+1}function $O(r,{delay:s=0,duration:o=400,easing:l=s7}={}){const c=+getComputedStyle(r).opacity;return{delay:s,duration:o,easing:l,css:y=>`opacity: ${y*c}`}}function HO(r,{delay:s=0,duration:o=400,easing:l=BC}={}){const c=getComputedStyle(r),y=+c.opacity,p=parseFloat(c.height),b=parseFloat(c.paddingTop),T=parseFloat(c.paddingBottom),k=parseFloat(c.marginTop),D=parseFloat(c.marginBottom),O=parseFloat(c.borderTopWidth),R=parseFloat(c.borderBottomWidth);return{delay:s,duration:o,easing:l,css:z=>`overflow: hidden;opacity: ${Math.min(z*20,1)*y};height: ${z*p}px;padding-top: ${z*b}px;padding-bottom: ${z*T}px;margin-top: ${z*k}px;margin-bottom: ${z*D}px;border-top-width: ${z*O}px;border-bottom-width: ${z*R}px;`}}//! moment.js
|
|
//! version : 2.29.1
|
|
//! authors : Tim Wood, Iskren Chernev, Moment.js contributors
|
|
//! license : MIT
|
|
//! momentjs.com
|
|
var Jk;function rn(){return Jk.apply(null,arguments)}function IC(r){Jk=r}function gc(r){return r instanceof Array||Object.prototype.toString.call(r)==="[object Array]"}function qd(r){return r!=null&&Object.prototype.toString.call(r)==="[object Object]"}function Mr(r,s){return Object.prototype.hasOwnProperty.call(r,s)}function v8(r){if(Object.getOwnPropertyNames)return Object.getOwnPropertyNames(r).length===0;var s;for(s in r)if(Mr(r,s))return!1;return!0}function Bo(r){return r===void 0}function ol(r){return typeof r=="number"||Object.prototype.toString.call(r)==="[object Number]"}function rv(r){return r instanceof Date||Object.prototype.toString.call(r)==="[object Date]"}function t9(r,s){var o=[],l;for(l=0;l<r.length;++l)o.push(s(r[l],l));return o}function Uh(r,s){for(var o in s)Mr(s,o)&&(r[o]=s[o]);return Mr(s,"toString")&&(r.toString=s.toString),Mr(s,"valueOf")&&(r.valueOf=s.valueOf),r}function hu(r,s,o,l){return S9(r,s,o,l,!0).utc()}function RC(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}}function ar(r){return r._pf==null&&(r._pf=RC()),r._pf}var _8;Array.prototype.some?_8=Array.prototype.some:_8=function(r){var s=Object(this),o=s.length>>>0,l;for(l=0;l<o;l++)if(l in s&&r.call(this,s[l],l,s))return!0;return!1};function b8(r){if(r._isValid==null){var s=ar(r),o=_8.call(s.parsedDateParts,function(c){return c!=null}),l=!isNaN(r._d.getTime())&&s.overflow<0&&!s.empty&&!s.invalidEra&&!s.invalidMonth&&!s.invalidWeekday&&!s.weekdayMismatch&&!s.nullInput&&!s.invalidFormat&&!s.userInvalidated&&(!s.meridiem||s.meridiem&&o);if(r._strict&&(l=l&&s.charsLeftOver===0&&s.unusedTokens.length===0&&s.bigHour===void 0),Object.isFrozen==null||!Object.isFrozen(r))r._isValid=l;else return l}return r._isValid}function hw(r){var s=hu(NaN);return r!=null?Uh(ar(s),r):ar(s).userInvalidated=!0,s}var w8=rn.momentProperties=[],x8=!1;function k8(r,s){var o,l,c;if(Bo(s._isAMomentObject)||(r._isAMomentObject=s._isAMomentObject),Bo(s._i)||(r._i=s._i),Bo(s._f)||(r._f=s._f),Bo(s._l)||(r._l=s._l),Bo(s._strict)||(r._strict=s._strict),Bo(s._tzm)||(r._tzm=s._tzm),Bo(s._isUTC)||(r._isUTC=s._isUTC),Bo(s._offset)||(r._offset=s._offset),Bo(s._pf)||(r._pf=ar(s)),Bo(s._locale)||(r._locale=s._locale),w8.length>0)for(o=0;o<w8.length;o++)l=w8[o],c=s[l],Bo(c)||(r[l]=c);return r}function iv(r){k8(this,r),this._d=new Date(r._d!=null?r._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),x8===!1&&(x8=!0,rn.updateOffset(this),x8=!1)}function yc(r){return r instanceof iv||r!=null&&r._isAMomentObject!=null}function e9(r){rn.suppressDeprecationWarnings===!1&&typeof console!="undefined"&&console.warn&&console.warn("Deprecation warning: "+r)}function Rs(r,s){var o=!0;return Uh(function(){if(rn.deprecationHandler!=null&&rn.deprecationHandler(null,r),o){var l=[],c,y,p;for(y=0;y<arguments.length;y++){if(c="",typeof arguments[y]=="object"){c+=`
|
|
[`+y+"] ";for(p in arguments[0])Mr(arguments[0],p)&&(c+=p+": "+arguments[0][p]+", ");c=c.slice(0,-2)}else c=arguments[y];l.push(c)}e9(r+`
|
|
Arguments: `+Array.prototype.slice.call(l).join("")+`
|
|
`+new Error().stack),o=!1}return s.apply(this,arguments)},s)}var n9={};function r9(r,s){rn.deprecationHandler!=null&&rn.deprecationHandler(r,s),n9[r]||(e9(s),n9[r]=!0)}rn.suppressDeprecationWarnings=!1;rn.deprecationHandler=null;function fu(r){return typeof Function!="undefined"&&r instanceof Function||Object.prototype.toString.call(r)==="[object Function]"}function FC(r){var s,o;for(o in r)Mr(r,o)&&(s=r[o],fu(s)?this[o]=s:this["_"+o]=s);this._config=r,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function T8(r,s){var o=Uh({},r),l;for(l in s)Mr(s,l)&&(qd(r[l])&&qd(s[l])?(o[l]={},Uh(o[l],r[l]),Uh(o[l],s[l])):s[l]!=null?o[l]=s[l]:delete o[l]);for(l in r)Mr(r,l)&&!Mr(s,l)&&qd(r[l])&&(o[l]=Uh({},o[l]));return o}function E8(r){r!=null&&this.set(r)}var S8;Object.keys?S8=Object.keys:S8=function(r){var s,o=[];for(s in r)Mr(r,s)&&o.push(s);return o};var PC={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function YC(r,s,o){var l=this._calendar[r]||this._calendar.sameElse;return fu(l)?l.call(s,o):l}function du(r,s,o){var l=""+Math.abs(r),c=s-l.length,y=r>=0;return(y?o?"+":"":"-")+Math.pow(10,Math.max(0,c)).toString().substr(1)+l}var C8=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,fw=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,A8={},Hp={};function An(r,s,o,l){var c=l;typeof l=="string"&&(c=function(){return this[l]()}),r&&(Hp[r]=c),s&&(Hp[s[0]]=function(){return du(c.apply(this,arguments),s[1],s[2])}),o&&(Hp[o]=function(){return this.localeData().ordinal(c.apply(this,arguments),r)})}function jC(r){return r.match(/\[[\s\S]/)?r.replace(/^\[|\]$/g,""):r.replace(/\\/g,"")}function zC(r){var s=r.match(C8),o,l;for(o=0,l=s.length;o<l;o++)Hp[s[o]]?s[o]=Hp[s[o]]:s[o]=jC(s[o]);return function(c){var y="",p;for(p=0;p<l;p++)y+=fu(s[p])?s[p].call(c,r):s[p];return y}}function dw(r,s){return r.isValid()?(s=i9(s,r.localeData()),A8[s]=A8[s]||zC(s),A8[s](r)):r.localeData().invalidDate()}function i9(r,s){var o=5;function l(c){return s.longDateFormat(c)||c}for(fw.lastIndex=0;o>=0&&fw.test(r);)r=r.replace(fw,l),fw.lastIndex=0,o-=1;return r}var UC={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function $C(r){var s=this._longDateFormat[r],o=this._longDateFormat[r.toUpperCase()];return s||!o?s:(this._longDateFormat[r]=o.match(C8).map(function(l){return l==="MMMM"||l==="MM"||l==="DD"||l==="dddd"?l.slice(1):l}).join(""),this._longDateFormat[r])}var HC="Invalid date";function WC(){return this._invalidDate}var qC="%d",VC=/\d{1,2}/;function GC(r){return this._ordinal.replace("%d",r)}var ZC={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function XC(r,s,o,l){var c=this._relativeTime[o];return fu(c)?c(r,s,o,l):c.replace(/%d/i,r)}function KC(r,s){var o=this._relativeTime[r>0?"future":"past"];return fu(o)?o(s):o.replace(/%s/i,s)}var av={};function Qa(r,s){var o=r.toLowerCase();av[o]=av[o+"s"]=av[s]=r}function Fs(r){return typeof r=="string"?av[r]||av[r.toLowerCase()]:void 0}function M8(r){var s={},o,l;for(l in r)Mr(r,l)&&(o=Fs(l),o&&(s[o]=r[l]));return s}var a9={};function Ja(r,s){a9[r]=s}function QC(r){var s=[],o;for(o in r)Mr(r,o)&&s.push({unit:o,priority:a9[o]});return s.sort(function(l,c){return l.priority-c.priority}),s}function pw(r){return r%4==0&&r%100!=0||r%400==0}function Ps(r){return r<0?Math.ceil(r)||0:Math.floor(r)}function hr(r){var s=+r,o=0;return s!==0&&isFinite(s)&&(o=Ps(s)),o}function Wp(r,s){return function(o){return o!=null?(o9(this,r,o),rn.updateOffset(this,s),this):gw(this,r)}}function gw(r,s){return r.isValid()?r._d["get"+(r._isUTC?"UTC":"")+s]():NaN}function o9(r,s,o){r.isValid()&&!isNaN(o)&&(s==="FullYear"&&pw(r.year())&&r.month()===1&&r.date()===29?(o=hr(o),r._d["set"+(r._isUTC?"UTC":"")+s](o,r.month(),xw(o,r.month()))):r._d["set"+(r._isUTC?"UTC":"")+s](o))}function JC(r){return r=Fs(r),fu(this[r])?this[r]():this}function tA(r,s){if(typeof r=="object"){r=M8(r);var o=QC(r),l;for(l=0;l<o.length;l++)this[o[l].unit](r[o[l].unit])}else if(r=Fs(r),fu(this[r]))return this[r](s);return this}var s9=/\d/,os=/\d\d/,c9=/\d{3}/,D8=/\d{4}/,yw=/[+-]?\d{6}/,li=/\d\d?/,u9=/\d\d\d\d?/,l9=/\d\d\d\d\d\d?/,mw=/\d{1,3}/,N8=/\d{1,4}/,vw=/[+-]?\d{1,6}/,qp=/\d+/,_w=/[+-]?\d+/,eA=/Z|[+-]\d\d:?\d\d/gi,bw=/Z|[+-]\d\d(?::?\d\d)?/gi,nA=/[+-]?\d+(\.\d{1,3})?/,ov=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,ww;ww={};function sn(r,s,o){ww[r]=fu(s)?s:function(l,c){return l&&o?o:s}}function rA(r,s){return Mr(ww,r)?ww[r](s._strict,s._locale):new RegExp(iA(r))}function iA(r){return ss(r.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(s,o,l,c,y){return o||l||c||y}))}function ss(r){return r.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}var O8={};function Zr(r,s){var o,l=s;for(typeof r=="string"&&(r=[r]),ol(s)&&(l=function(c,y){y[s]=hr(c)}),o=0;o<r.length;o++)O8[r[o]]=l}function sv(r,s){Zr(r,function(o,l,c,y){c._w=c._w||{},s(o,c._w,c,y)})}function aA(r,s,o){s!=null&&Mr(O8,r)&&O8[r](s,o._a,o,r)}var to=0,sl=1,pu=2,ga=3,mc=4,cl=5,Vd=6,oA=7,sA=8;function cA(r,s){return(r%s+s)%s}var Vi;Array.prototype.indexOf?Vi=Array.prototype.indexOf:Vi=function(r){var s;for(s=0;s<this.length;++s)if(this[s]===r)return s;return-1};function xw(r,s){if(isNaN(r)||isNaN(s))return NaN;var o=cA(s,12);return r+=(s-o)/12,o===1?pw(r)?29:28:31-o%7%2}An("M",["MM",2],"Mo",function(){return this.month()+1});An("MMM",0,0,function(r){return this.localeData().monthsShort(this,r)});An("MMMM",0,0,function(r){return this.localeData().months(this,r)});Qa("month","M");Ja("month",8);sn("M",li);sn("MM",li,os);sn("MMM",function(r,s){return s.monthsShortRegex(r)});sn("MMMM",function(r,s){return s.monthsRegex(r)});Zr(["M","MM"],function(r,s){s[sl]=hr(r)-1});Zr(["MMM","MMMM"],function(r,s,o,l){var c=o._locale.monthsParse(r,l,o._strict);c!=null?s[sl]=c:ar(o).invalidMonth=r});var uA="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),h9="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),f9=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,lA=ov,hA=ov;function fA(r,s){return r?gc(this._months)?this._months[r.month()]:this._months[(this._months.isFormat||f9).test(s)?"format":"standalone"][r.month()]:gc(this._months)?this._months:this._months.standalone}function dA(r,s){return r?gc(this._monthsShort)?this._monthsShort[r.month()]:this._monthsShort[f9.test(s)?"format":"standalone"][r.month()]:gc(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function pA(r,s,o){var l,c,y,p=r.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],l=0;l<12;++l)y=hu([2e3,l]),this._shortMonthsParse[l]=this.monthsShort(y,"").toLocaleLowerCase(),this._longMonthsParse[l]=this.months(y,"").toLocaleLowerCase();return o?s==="MMM"?(c=Vi.call(this._shortMonthsParse,p),c!==-1?c:null):(c=Vi.call(this._longMonthsParse,p),c!==-1?c:null):s==="MMM"?(c=Vi.call(this._shortMonthsParse,p),c!==-1?c:(c=Vi.call(this._longMonthsParse,p),c!==-1?c:null)):(c=Vi.call(this._longMonthsParse,p),c!==-1?c:(c=Vi.call(this._shortMonthsParse,p),c!==-1?c:null))}function gA(r,s,o){var l,c,y;if(this._monthsParseExact)return pA.call(this,r,s,o);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),l=0;l<12;l++){if(c=hu([2e3,l]),o&&!this._longMonthsParse[l]&&(this._longMonthsParse[l]=new RegExp("^"+this.months(c,"").replace(".","")+"$","i"),this._shortMonthsParse[l]=new RegExp("^"+this.monthsShort(c,"").replace(".","")+"$","i")),!o&&!this._monthsParse[l]&&(y="^"+this.months(c,"")+"|^"+this.monthsShort(c,""),this._monthsParse[l]=new RegExp(y.replace(".",""),"i")),o&&s==="MMMM"&&this._longMonthsParse[l].test(r))return l;if(o&&s==="MMM"&&this._shortMonthsParse[l].test(r))return l;if(!o&&this._monthsParse[l].test(r))return l}}function d9(r,s){var o;if(!r.isValid())return r;if(typeof s=="string"){if(/^\d+$/.test(s))s=hr(s);else if(s=r.localeData().monthsParse(s),!ol(s))return r}return o=Math.min(r.date(),xw(r.year(),s)),r._d["set"+(r._isUTC?"UTC":"")+"Month"](s,o),r}function p9(r){return r!=null?(d9(this,r),rn.updateOffset(this,!0),this):gw(this,"Month")}function yA(){return xw(this.year(),this.month())}function mA(r){return this._monthsParseExact?(Mr(this,"_monthsRegex")||g9.call(this),r?this._monthsShortStrictRegex:this._monthsShortRegex):(Mr(this,"_monthsShortRegex")||(this._monthsShortRegex=lA),this._monthsShortStrictRegex&&r?this._monthsShortStrictRegex:this._monthsShortRegex)}function vA(r){return this._monthsParseExact?(Mr(this,"_monthsRegex")||g9.call(this),r?this._monthsStrictRegex:this._monthsRegex):(Mr(this,"_monthsRegex")||(this._monthsRegex=hA),this._monthsStrictRegex&&r?this._monthsStrictRegex:this._monthsRegex)}function g9(){function r(p,b){return b.length-p.length}var s=[],o=[],l=[],c,y;for(c=0;c<12;c++)y=hu([2e3,c]),s.push(this.monthsShort(y,"")),o.push(this.months(y,"")),l.push(this.months(y,"")),l.push(this.monthsShort(y,""));for(s.sort(r),o.sort(r),l.sort(r),c=0;c<12;c++)s[c]=ss(s[c]),o[c]=ss(o[c]);for(c=0;c<24;c++)l[c]=ss(l[c]);this._monthsRegex=new RegExp("^("+l.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+o.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+s.join("|")+")","i")}An("Y",0,0,function(){var r=this.year();return r<=9999?du(r,4):"+"+r});An(0,["YY",2],0,function(){return this.year()%100});An(0,["YYYY",4],0,"year");An(0,["YYYYY",5],0,"year");An(0,["YYYYYY",6,!0],0,"year");Qa("year","y");Ja("year",1);sn("Y",_w);sn("YY",li,os);sn("YYYY",N8,D8);sn("YYYYY",vw,yw);sn("YYYYYY",vw,yw);Zr(["YYYYY","YYYYYY"],to);Zr("YYYY",function(r,s){s[to]=r.length===2?rn.parseTwoDigitYear(r):hr(r)});Zr("YY",function(r,s){s[to]=rn.parseTwoDigitYear(r)});Zr("Y",function(r,s){s[to]=parseInt(r,10)});function cv(r){return pw(r)?366:365}rn.parseTwoDigitYear=function(r){return hr(r)+(hr(r)>68?1900:2e3)};var y9=Wp("FullYear",!0);function _A(){return pw(this.year())}function bA(r,s,o,l,c,y,p){var b;return r<100&&r>=0?(b=new Date(r+400,s,o,l,c,y,p),isFinite(b.getFullYear())&&b.setFullYear(r)):b=new Date(r,s,o,l,c,y,p),b}function uv(r){var s,o;return r<100&&r>=0?(o=Array.prototype.slice.call(arguments),o[0]=r+400,s=new Date(Date.UTC.apply(null,o)),isFinite(s.getUTCFullYear())&&s.setUTCFullYear(r)):s=new Date(Date.UTC.apply(null,arguments)),s}function kw(r,s,o){var l=7+s-o,c=(7+uv(r,0,l).getUTCDay()-s)%7;return-c+l-1}function m9(r,s,o,l,c){var y=(7+o-l)%7,p=kw(r,l,c),b=1+7*(s-1)+y+p,T,k;return b<=0?(T=r-1,k=cv(T)+b):b>cv(r)?(T=r+1,k=b-cv(r)):(T=r,k=b),{year:T,dayOfYear:k}}function lv(r,s,o){var l=kw(r.year(),s,o),c=Math.floor((r.dayOfYear()-l-1)/7)+1,y,p;return c<1?(p=r.year()-1,y=c+ul(p,s,o)):c>ul(r.year(),s,o)?(y=c-ul(r.year(),s,o),p=r.year()+1):(p=r.year(),y=c),{week:y,year:p}}function ul(r,s,o){var l=kw(r,s,o),c=kw(r+1,s,o);return(cv(r)-l+c)/7}An("w",["ww",2],"wo","week");An("W",["WW",2],"Wo","isoWeek");Qa("week","w");Qa("isoWeek","W");Ja("week",5);Ja("isoWeek",5);sn("w",li);sn("ww",li,os);sn("W",li);sn("WW",li,os);sv(["w","ww","W","WW"],function(r,s,o,l){s[l.substr(0,1)]=hr(r)});function wA(r){return lv(r,this._week.dow,this._week.doy).week}var xA={dow:0,doy:6};function kA(){return this._week.dow}function TA(){return this._week.doy}function EA(r){var s=this.localeData().week(this);return r==null?s:this.add((r-s)*7,"d")}function SA(r){var s=lv(this,1,4).week;return r==null?s:this.add((r-s)*7,"d")}An("d",0,"do","day");An("dd",0,0,function(r){return this.localeData().weekdaysMin(this,r)});An("ddd",0,0,function(r){return this.localeData().weekdaysShort(this,r)});An("dddd",0,0,function(r){return this.localeData().weekdays(this,r)});An("e",0,0,"weekday");An("E",0,0,"isoWeekday");Qa("day","d");Qa("weekday","e");Qa("isoWeekday","E");Ja("day",11);Ja("weekday",11);Ja("isoWeekday",11);sn("d",li);sn("e",li);sn("E",li);sn("dd",function(r,s){return s.weekdaysMinRegex(r)});sn("ddd",function(r,s){return s.weekdaysShortRegex(r)});sn("dddd",function(r,s){return s.weekdaysRegex(r)});sv(["dd","ddd","dddd"],function(r,s,o,l){var c=o._locale.weekdaysParse(r,l,o._strict);c!=null?s.d=c:ar(o).invalidWeekday=r});sv(["d","e","E"],function(r,s,o,l){s[l]=hr(r)});function CA(r,s){return typeof r!="string"?r:isNaN(r)?(r=s.weekdaysParse(r),typeof r=="number"?r:null):parseInt(r,10)}function AA(r,s){return typeof r=="string"?s.weekdaysParse(r)%7||7:isNaN(r)?null:r}function L8(r,s){return r.slice(s,7).concat(r.slice(0,s))}var MA="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),v9="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),DA="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),NA=ov,OA=ov,LA=ov;function BA(r,s){var o=gc(this._weekdays)?this._weekdays:this._weekdays[r&&r!==!0&&this._weekdays.isFormat.test(s)?"format":"standalone"];return r===!0?L8(o,this._week.dow):r?o[r.day()]:o}function IA(r){return r===!0?L8(this._weekdaysShort,this._week.dow):r?this._weekdaysShort[r.day()]:this._weekdaysShort}function RA(r){return r===!0?L8(this._weekdaysMin,this._week.dow):r?this._weekdaysMin[r.day()]:this._weekdaysMin}function FA(r,s,o){var l,c,y,p=r.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],l=0;l<7;++l)y=hu([2e3,1]).day(l),this._minWeekdaysParse[l]=this.weekdaysMin(y,"").toLocaleLowerCase(),this._shortWeekdaysParse[l]=this.weekdaysShort(y,"").toLocaleLowerCase(),this._weekdaysParse[l]=this.weekdays(y,"").toLocaleLowerCase();return o?s==="dddd"?(c=Vi.call(this._weekdaysParse,p),c!==-1?c:null):s==="ddd"?(c=Vi.call(this._shortWeekdaysParse,p),c!==-1?c:null):(c=Vi.call(this._minWeekdaysParse,p),c!==-1?c:null):s==="dddd"?(c=Vi.call(this._weekdaysParse,p),c!==-1||(c=Vi.call(this._shortWeekdaysParse,p),c!==-1)?c:(c=Vi.call(this._minWeekdaysParse,p),c!==-1?c:null)):s==="ddd"?(c=Vi.call(this._shortWeekdaysParse,p),c!==-1||(c=Vi.call(this._weekdaysParse,p),c!==-1)?c:(c=Vi.call(this._minWeekdaysParse,p),c!==-1?c:null)):(c=Vi.call(this._minWeekdaysParse,p),c!==-1||(c=Vi.call(this._weekdaysParse,p),c!==-1)?c:(c=Vi.call(this._shortWeekdaysParse,p),c!==-1?c:null))}function PA(r,s,o){var l,c,y;if(this._weekdaysParseExact)return FA.call(this,r,s,o);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),l=0;l<7;l++){if(c=hu([2e3,1]).day(l),o&&!this._fullWeekdaysParse[l]&&(this._fullWeekdaysParse[l]=new RegExp("^"+this.weekdays(c,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[l]=new RegExp("^"+this.weekdaysShort(c,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[l]=new RegExp("^"+this.weekdaysMin(c,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[l]||(y="^"+this.weekdays(c,"")+"|^"+this.weekdaysShort(c,"")+"|^"+this.weekdaysMin(c,""),this._weekdaysParse[l]=new RegExp(y.replace(".",""),"i")),o&&s==="dddd"&&this._fullWeekdaysParse[l].test(r))return l;if(o&&s==="ddd"&&this._shortWeekdaysParse[l].test(r))return l;if(o&&s==="dd"&&this._minWeekdaysParse[l].test(r))return l;if(!o&&this._weekdaysParse[l].test(r))return l}}function YA(r){if(!this.isValid())return r!=null?this:NaN;var s=this._isUTC?this._d.getUTCDay():this._d.getDay();return r!=null?(r=CA(r,this.localeData()),this.add(r-s,"d")):s}function jA(r){if(!this.isValid())return r!=null?this:NaN;var s=(this.day()+7-this.localeData()._week.dow)%7;return r==null?s:this.add(r-s,"d")}function zA(r){if(!this.isValid())return r!=null?this:NaN;if(r!=null){var s=AA(r,this.localeData());return this.day(this.day()%7?s:s-7)}else return this.day()||7}function UA(r){return this._weekdaysParseExact?(Mr(this,"_weekdaysRegex")||B8.call(this),r?this._weekdaysStrictRegex:this._weekdaysRegex):(Mr(this,"_weekdaysRegex")||(this._weekdaysRegex=NA),this._weekdaysStrictRegex&&r?this._weekdaysStrictRegex:this._weekdaysRegex)}function $A(r){return this._weekdaysParseExact?(Mr(this,"_weekdaysRegex")||B8.call(this),r?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(Mr(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=OA),this._weekdaysShortStrictRegex&&r?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function HA(r){return this._weekdaysParseExact?(Mr(this,"_weekdaysRegex")||B8.call(this),r?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(Mr(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=LA),this._weekdaysMinStrictRegex&&r?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function B8(){function r(D,O){return O.length-D.length}var s=[],o=[],l=[],c=[],y,p,b,T,k;for(y=0;y<7;y++)p=hu([2e3,1]).day(y),b=ss(this.weekdaysMin(p,"")),T=ss(this.weekdaysShort(p,"")),k=ss(this.weekdays(p,"")),s.push(b),o.push(T),l.push(k),c.push(b),c.push(T),c.push(k);s.sort(r),o.sort(r),l.sort(r),c.sort(r),this._weekdaysRegex=new RegExp("^("+c.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+o.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+s.join("|")+")","i")}function I8(){return this.hours()%12||12}function WA(){return this.hours()||24}An("H",["HH",2],0,"hour");An("h",["hh",2],0,I8);An("k",["kk",2],0,WA);An("hmm",0,0,function(){return""+I8.apply(this)+du(this.minutes(),2)});An("hmmss",0,0,function(){return""+I8.apply(this)+du(this.minutes(),2)+du(this.seconds(),2)});An("Hmm",0,0,function(){return""+this.hours()+du(this.minutes(),2)});An("Hmmss",0,0,function(){return""+this.hours()+du(this.minutes(),2)+du(this.seconds(),2)});function _9(r,s){An(r,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),s)})}_9("a",!0);_9("A",!1);Qa("hour","h");Ja("hour",13);function b9(r,s){return s._meridiemParse}sn("a",b9);sn("A",b9);sn("H",li);sn("h",li);sn("k",li);sn("HH",li,os);sn("hh",li,os);sn("kk",li,os);sn("hmm",u9);sn("hmmss",l9);sn("Hmm",u9);sn("Hmmss",l9);Zr(["H","HH"],ga);Zr(["k","kk"],function(r,s,o){var l=hr(r);s[ga]=l===24?0:l});Zr(["a","A"],function(r,s,o){o._isPm=o._locale.isPM(r),o._meridiem=r});Zr(["h","hh"],function(r,s,o){s[ga]=hr(r),ar(o).bigHour=!0});Zr("hmm",function(r,s,o){var l=r.length-2;s[ga]=hr(r.substr(0,l)),s[mc]=hr(r.substr(l)),ar(o).bigHour=!0});Zr("hmmss",function(r,s,o){var l=r.length-4,c=r.length-2;s[ga]=hr(r.substr(0,l)),s[mc]=hr(r.substr(l,2)),s[cl]=hr(r.substr(c)),ar(o).bigHour=!0});Zr("Hmm",function(r,s,o){var l=r.length-2;s[ga]=hr(r.substr(0,l)),s[mc]=hr(r.substr(l))});Zr("Hmmss",function(r,s,o){var l=r.length-4,c=r.length-2;s[ga]=hr(r.substr(0,l)),s[mc]=hr(r.substr(l,2)),s[cl]=hr(r.substr(c))});function qA(r){return(r+"").toLowerCase().charAt(0)==="p"}var VA=/[ap]\.?m?\.?/i,GA=Wp("Hours",!0);function ZA(r,s,o){return r>11?o?"pm":"PM":o?"am":"AM"}var w9={calendar:PC,longDateFormat:UC,invalidDate:HC,ordinal:qC,dayOfMonthOrdinalParse:VC,relativeTime:ZC,months:uA,monthsShort:h9,week:xA,weekdays:MA,weekdaysMin:DA,weekdaysShort:v9,meridiemParse:VA},xi={},hv={},fv;function XA(r,s){var o,l=Math.min(r.length,s.length);for(o=0;o<l;o+=1)if(r[o]!==s[o])return o;return l}function x9(r){return r&&r.toLowerCase().replace("_","-")}function KA(r){for(var s=0,o,l,c,y;s<r.length;){for(y=x9(r[s]).split("-"),o=y.length,l=x9(r[s+1]),l=l?l.split("-"):null;o>0;){if(c=Tw(y.slice(0,o).join("-")),c)return c;if(l&&l.length>=o&&XA(y,l)>=o-1)break;o--}s++}return fv}function Tw(r){var s=null,o;if(xi[r]===void 0&&typeof module!="undefined"&&module&&module.exports)try{s=fv._abbr,o=require,o("./locale/"+r),$h(s)}catch{xi[r]=null}return xi[r]}function $h(r,s){var o;return r&&(Bo(s)?o=ll(r):o=R8(r,s),o?fv=o:typeof console!="undefined"&&console.warn&&console.warn("Locale "+r+" not found. Did you forget to load it?")),fv._abbr}function R8(r,s){if(s!==null){var o,l=w9;if(s.abbr=r,xi[r]!=null)r9("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),l=xi[r]._config;else if(s.parentLocale!=null)if(xi[s.parentLocale]!=null)l=xi[s.parentLocale]._config;else if(o=Tw(s.parentLocale),o!=null)l=o._config;else return hv[s.parentLocale]||(hv[s.parentLocale]=[]),hv[s.parentLocale].push({name:r,config:s}),null;return xi[r]=new E8(T8(l,s)),hv[r]&&hv[r].forEach(function(c){R8(c.name,c.config)}),$h(r),xi[r]}else return delete xi[r],null}function QA(r,s){if(s!=null){var o,l,c=w9;xi[r]!=null&&xi[r].parentLocale!=null?xi[r].set(T8(xi[r]._config,s)):(l=Tw(r),l!=null&&(c=l._config),s=T8(c,s),l==null&&(s.abbr=r),o=new E8(s),o.parentLocale=xi[r],xi[r]=o),$h(r)}else xi[r]!=null&&(xi[r].parentLocale!=null?(xi[r]=xi[r].parentLocale,r===$h()&&$h(r)):xi[r]!=null&&delete xi[r]);return xi[r]}function ll(r){var s;if(r&&r._locale&&r._locale._abbr&&(r=r._locale._abbr),!r)return fv;if(!gc(r)){if(s=Tw(r),s)return s;r=[r]}return KA(r)}function JA(){return S8(xi)}function F8(r){var s,o=r._a;return o&&ar(r).overflow===-2&&(s=o[sl]<0||o[sl]>11?sl:o[pu]<1||o[pu]>xw(o[to],o[sl])?pu:o[ga]<0||o[ga]>24||o[ga]===24&&(o[mc]!==0||o[cl]!==0||o[Vd]!==0)?ga:o[mc]<0||o[mc]>59?mc:o[cl]<0||o[cl]>59?cl:o[Vd]<0||o[Vd]>999?Vd:-1,ar(r)._overflowDayOfYear&&(s<to||s>pu)&&(s=pu),ar(r)._overflowWeeks&&s===-1&&(s=oA),ar(r)._overflowWeekday&&s===-1&&(s=sA),ar(r).overflow=s),r}var tM=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,eM=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,nM=/Z|[+-]\d\d(?::?\d\d)?/,Ew=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],P8=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],rM=/^\/?Date\((-?\d+)/i,iM=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,aM={UT:0,GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function k9(r){var s,o,l=r._i,c=tM.exec(l)||eM.exec(l),y,p,b,T;if(c){for(ar(r).iso=!0,s=0,o=Ew.length;s<o;s++)if(Ew[s][1].exec(c[1])){p=Ew[s][0],y=Ew[s][2]!==!1;break}if(p==null){r._isValid=!1;return}if(c[3]){for(s=0,o=P8.length;s<o;s++)if(P8[s][1].exec(c[3])){b=(c[2]||" ")+P8[s][0];break}if(b==null){r._isValid=!1;return}}if(!y&&b!=null){r._isValid=!1;return}if(c[4])if(nM.exec(c[4]))T="Z";else{r._isValid=!1;return}r._f=p+(b||"")+(T||""),j8(r)}else r._isValid=!1}function oM(r,s,o,l,c,y){var p=[sM(r),h9.indexOf(s),parseInt(o,10),parseInt(l,10),parseInt(c,10)];return y&&p.push(parseInt(y,10)),p}function sM(r){var s=parseInt(r,10);return s<=49?2e3+s:s<=999?1900+s:s}function cM(r){return r.replace(/\([^)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function uM(r,s,o){if(r){var l=v9.indexOf(r),c=new Date(s[0],s[1],s[2]).getDay();if(l!==c)return ar(o).weekdayMismatch=!0,o._isValid=!1,!1}return!0}function lM(r,s,o){if(r)return aM[r];if(s)return 0;var l=parseInt(o,10),c=l%100,y=(l-c)/100;return y*60+c}function T9(r){var s=iM.exec(cM(r._i)),o;if(s){if(o=oM(s[4],s[3],s[2],s[5],s[6],s[7]),!uM(s[1],o,r))return;r._a=o,r._tzm=lM(s[8],s[9],s[10]),r._d=uv.apply(null,r._a),r._d.setUTCMinutes(r._d.getUTCMinutes()-r._tzm),ar(r).rfc2822=!0}else r._isValid=!1}function hM(r){var s=rM.exec(r._i);if(s!==null){r._d=new Date(+s[1]);return}if(k9(r),r._isValid===!1)delete r._isValid;else return;if(T9(r),r._isValid===!1)delete r._isValid;else return;r._strict?r._isValid=!1:rn.createFromInputFallback(r)}rn.createFromInputFallback=Rs("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(r){r._d=new Date(r._i+(r._useUTC?" UTC":""))});function Vp(r,s,o){return r!=null?r:s!=null?s:o}function fM(r){var s=new Date(rn.now());return r._useUTC?[s.getUTCFullYear(),s.getUTCMonth(),s.getUTCDate()]:[s.getFullYear(),s.getMonth(),s.getDate()]}function Y8(r){var s,o,l=[],c,y,p;if(!r._d){for(c=fM(r),r._w&&r._a[pu]==null&&r._a[sl]==null&&dM(r),r._dayOfYear!=null&&(p=Vp(r._a[to],c[to]),(r._dayOfYear>cv(p)||r._dayOfYear===0)&&(ar(r)._overflowDayOfYear=!0),o=uv(p,0,r._dayOfYear),r._a[sl]=o.getUTCMonth(),r._a[pu]=o.getUTCDate()),s=0;s<3&&r._a[s]==null;++s)r._a[s]=l[s]=c[s];for(;s<7;s++)r._a[s]=l[s]=r._a[s]==null?s===2?1:0:r._a[s];r._a[ga]===24&&r._a[mc]===0&&r._a[cl]===0&&r._a[Vd]===0&&(r._nextDay=!0,r._a[ga]=0),r._d=(r._useUTC?uv:bA).apply(null,l),y=r._useUTC?r._d.getUTCDay():r._d.getDay(),r._tzm!=null&&r._d.setUTCMinutes(r._d.getUTCMinutes()-r._tzm),r._nextDay&&(r._a[ga]=24),r._w&&typeof r._w.d!="undefined"&&r._w.d!==y&&(ar(r).weekdayMismatch=!0)}}function dM(r){var s,o,l,c,y,p,b,T,k;s=r._w,s.GG!=null||s.W!=null||s.E!=null?(y=1,p=4,o=Vp(s.GG,r._a[to],lv(hi(),1,4).year),l=Vp(s.W,1),c=Vp(s.E,1),(c<1||c>7)&&(T=!0)):(y=r._locale._week.dow,p=r._locale._week.doy,k=lv(hi(),y,p),o=Vp(s.gg,r._a[to],k.year),l=Vp(s.w,k.week),s.d!=null?(c=s.d,(c<0||c>6)&&(T=!0)):s.e!=null?(c=s.e+y,(s.e<0||s.e>6)&&(T=!0)):c=y),l<1||l>ul(o,y,p)?ar(r)._overflowWeeks=!0:T!=null?ar(r)._overflowWeekday=!0:(b=m9(o,l,c,y,p),r._a[to]=b.year,r._dayOfYear=b.dayOfYear)}rn.ISO_8601=function(){};rn.RFC_2822=function(){};function j8(r){if(r._f===rn.ISO_8601){k9(r);return}if(r._f===rn.RFC_2822){T9(r);return}r._a=[],ar(r).empty=!0;var s=""+r._i,o,l,c,y,p,b=s.length,T=0,k;for(c=i9(r._f,r._locale).match(C8)||[],o=0;o<c.length;o++)y=c[o],l=(s.match(rA(y,r))||[])[0],l&&(p=s.substr(0,s.indexOf(l)),p.length>0&&ar(r).unusedInput.push(p),s=s.slice(s.indexOf(l)+l.length),T+=l.length),Hp[y]?(l?ar(r).empty=!1:ar(r).unusedTokens.push(y),aA(y,l,r)):r._strict&&!l&&ar(r).unusedTokens.push(y);ar(r).charsLeftOver=b-T,s.length>0&&ar(r).unusedInput.push(s),r._a[ga]<=12&&ar(r).bigHour===!0&&r._a[ga]>0&&(ar(r).bigHour=void 0),ar(r).parsedDateParts=r._a.slice(0),ar(r).meridiem=r._meridiem,r._a[ga]=pM(r._locale,r._a[ga],r._meridiem),k=ar(r).era,k!==null&&(r._a[to]=r._locale.erasConvertYear(k,r._a[to])),Y8(r),F8(r)}function pM(r,s,o){var l;return o==null?s:r.meridiemHour!=null?r.meridiemHour(s,o):(r.isPM!=null&&(l=r.isPM(o),l&&s<12&&(s+=12),!l&&s===12&&(s=0)),s)}function gM(r){var s,o,l,c,y,p,b=!1;if(r._f.length===0){ar(r).invalidFormat=!0,r._d=new Date(NaN);return}for(c=0;c<r._f.length;c++)y=0,p=!1,s=k8({},r),r._useUTC!=null&&(s._useUTC=r._useUTC),s._f=r._f[c],j8(s),b8(s)&&(p=!0),y+=ar(s).charsLeftOver,y+=ar(s).unusedTokens.length*10,ar(s).score=y,b?y<l&&(l=y,o=s):(l==null||y<l||p)&&(l=y,o=s,p&&(b=!0));Uh(r,o||s)}function yM(r){if(!r._d){var s=M8(r._i),o=s.day===void 0?s.date:s.day;r._a=t9([s.year,s.month,o,s.hour,s.minute,s.second,s.millisecond],function(l){return l&&parseInt(l,10)}),Y8(r)}}function mM(r){var s=new iv(F8(E9(r)));return s._nextDay&&(s.add(1,"d"),s._nextDay=void 0),s}function E9(r){var s=r._i,o=r._f;return r._locale=r._locale||ll(r._l),s===null||o===void 0&&s===""?hw({nullInput:!0}):(typeof s=="string"&&(r._i=s=r._locale.preparse(s)),yc(s)?new iv(F8(s)):(rv(s)?r._d=s:gc(o)?gM(r):o?j8(r):vM(r),b8(r)||(r._d=null),r))}function vM(r){var s=r._i;Bo(s)?r._d=new Date(rn.now()):rv(s)?r._d=new Date(s.valueOf()):typeof s=="string"?hM(r):gc(s)?(r._a=t9(s.slice(0),function(o){return parseInt(o,10)}),Y8(r)):qd(s)?yM(r):ol(s)?r._d=new Date(s):rn.createFromInputFallback(r)}function S9(r,s,o,l,c){var y={};return(s===!0||s===!1)&&(l=s,s=void 0),(o===!0||o===!1)&&(l=o,o=void 0),(qd(r)&&v8(r)||gc(r)&&r.length===0)&&(r=void 0),y._isAMomentObject=!0,y._useUTC=y._isUTC=c,y._l=o,y._i=r,y._f=s,y._strict=l,mM(y)}function hi(r,s,o,l){return S9(r,s,o,l,!1)}var _M=Rs("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var r=hi.apply(null,arguments);return this.isValid()&&r.isValid()?r<this?this:r:hw()}),bM=Rs("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var r=hi.apply(null,arguments);return this.isValid()&&r.isValid()?r>this?this:r:hw()});function C9(r,s){var o,l;if(s.length===1&&gc(s[0])&&(s=s[0]),!s.length)return hi();for(o=s[0],l=1;l<s.length;++l)(!s[l].isValid()||s[l][r](o))&&(o=s[l]);return o}function wM(){var r=[].slice.call(arguments,0);return C9("isBefore",r)}function xM(){var r=[].slice.call(arguments,0);return C9("isAfter",r)}var kM=function(){return Date.now?Date.now():+new Date},dv=["year","quarter","month","week","day","hour","minute","second","millisecond"];function TM(r){var s,o=!1,l;for(s in r)if(Mr(r,s)&&!(Vi.call(dv,s)!==-1&&(r[s]==null||!isNaN(r[s]))))return!1;for(l=0;l<dv.length;++l)if(r[dv[l]]){if(o)return!1;parseFloat(r[dv[l]])!==hr(r[dv[l]])&&(o=!0)}return!0}function EM(){return this._isValid}function SM(){return vc(NaN)}function Sw(r){var s=M8(r),o=s.year||0,l=s.quarter||0,c=s.month||0,y=s.week||s.isoWeek||0,p=s.day||0,b=s.hour||0,T=s.minute||0,k=s.second||0,D=s.millisecond||0;this._isValid=TM(s),this._milliseconds=+D+k*1e3+T*6e4+b*1e3*60*60,this._days=+p+y*7,this._months=+c+l*3+o*12,this._data={},this._locale=ll(),this._bubble()}function Cw(r){return r instanceof Sw}function z8(r){return r<0?Math.round(-1*r)*-1:Math.round(r)}function CM(r,s,o){var l=Math.min(r.length,s.length),c=Math.abs(r.length-s.length),y=0,p;for(p=0;p<l;p++)(o&&r[p]!==s[p]||!o&&hr(r[p])!==hr(s[p]))&&y++;return y+c}function A9(r,s){An(r,0,0,function(){var o=this.utcOffset(),l="+";return o<0&&(o=-o,l="-"),l+du(~~(o/60),2)+s+du(~~o%60,2)})}A9("Z",":");A9("ZZ","");sn("Z",bw);sn("ZZ",bw);Zr(["Z","ZZ"],function(r,s,o){o._useUTC=!0,o._tzm=U8(bw,r)});var AM=/([\+\-]|\d\d)/gi;function U8(r,s){var o=(s||"").match(r),l,c,y;return o===null?null:(l=o[o.length-1]||[],c=(l+"").match(AM)||["-",0,0],y=+(c[1]*60)+hr(c[2]),y===0?0:c[0]==="+"?y:-y)}function $8(r,s){var o,l;return s._isUTC?(o=s.clone(),l=(yc(r)||rv(r)?r.valueOf():hi(r).valueOf())-o.valueOf(),o._d.setTime(o._d.valueOf()+l),rn.updateOffset(o,!1),o):hi(r).local()}function H8(r){return-Math.round(r._d.getTimezoneOffset())}rn.updateOffset=function(){};function MM(r,s,o){var l=this._offset||0,c;if(!this.isValid())return r!=null?this:NaN;if(r!=null){if(typeof r=="string"){if(r=U8(bw,r),r===null)return this}else Math.abs(r)<16&&!o&&(r=r*60);return!this._isUTC&&s&&(c=H8(this)),this._offset=r,this._isUTC=!0,c!=null&&this.add(c,"m"),l!==r&&(!s||this._changeInProgress?O9(this,vc(r-l,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,rn.updateOffset(this,!0),this._changeInProgress=null)),this}else return this._isUTC?l:H8(this)}function DM(r,s){return r!=null?(typeof r!="string"&&(r=-r),this.utcOffset(r,s),this):-this.utcOffset()}function NM(r){return this.utcOffset(0,r)}function OM(r){return this._isUTC&&(this.utcOffset(0,r),this._isUTC=!1,r&&this.subtract(H8(this),"m")),this}function LM(){if(this._tzm!=null)this.utcOffset(this._tzm,!1,!0);else if(typeof this._i=="string"){var r=U8(eA,this._i);r!=null?this.utcOffset(r):this.utcOffset(0,!0)}return this}function BM(r){return this.isValid()?(r=r?hi(r).utcOffset():0,(this.utcOffset()-r)%60==0):!1}function IM(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function RM(){if(!Bo(this._isDSTShifted))return this._isDSTShifted;var r={},s;return k8(r,this),r=E9(r),r._a?(s=r._isUTC?hu(r._a):hi(r._a),this._isDSTShifted=this.isValid()&&CM(r._a,s.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function FM(){return this.isValid()?!this._isUTC:!1}function PM(){return this.isValid()?this._isUTC:!1}function M9(){return this.isValid()?this._isUTC&&this._offset===0:!1}var YM=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,jM=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function vc(r,s){var o=r,l=null,c,y,p;return Cw(r)?o={ms:r._milliseconds,d:r._days,M:r._months}:ol(r)||!isNaN(+r)?(o={},s?o[s]=+r:o.milliseconds=+r):(l=YM.exec(r))?(c=l[1]==="-"?-1:1,o={y:0,d:hr(l[pu])*c,h:hr(l[ga])*c,m:hr(l[mc])*c,s:hr(l[cl])*c,ms:hr(z8(l[Vd]*1e3))*c}):(l=jM.exec(r))?(c=l[1]==="-"?-1:1,o={y:Gd(l[2],c),M:Gd(l[3],c),w:Gd(l[4],c),d:Gd(l[5],c),h:Gd(l[6],c),m:Gd(l[7],c),s:Gd(l[8],c)}):o==null?o={}:typeof o=="object"&&("from"in o||"to"in o)&&(p=zM(hi(o.from),hi(o.to)),o={},o.ms=p.milliseconds,o.M=p.months),y=new Sw(o),Cw(r)&&Mr(r,"_locale")&&(y._locale=r._locale),Cw(r)&&Mr(r,"_isValid")&&(y._isValid=r._isValid),y}vc.fn=Sw.prototype;vc.invalid=SM;function Gd(r,s){var o=r&&parseFloat(r.replace(",","."));return(isNaN(o)?0:o)*s}function D9(r,s){var o={};return o.months=s.month()-r.month()+(s.year()-r.year())*12,r.clone().add(o.months,"M").isAfter(s)&&--o.months,o.milliseconds=+s-+r.clone().add(o.months,"M"),o}function zM(r,s){var o;return r.isValid()&&s.isValid()?(s=$8(s,r),r.isBefore(s)?o=D9(r,s):(o=D9(s,r),o.milliseconds=-o.milliseconds,o.months=-o.months),o):{milliseconds:0,months:0}}function N9(r,s){return function(o,l){var c,y;return l!==null&&!isNaN(+l)&&(r9(s,"moment()."+s+"(period, number) is deprecated. Please use moment()."+s+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),y=o,o=l,l=y),c=vc(o,l),O9(this,c,r),this}}function O9(r,s,o,l){var c=s._milliseconds,y=z8(s._days),p=z8(s._months);!r.isValid()||(l=l==null?!0:l,p&&d9(r,gw(r,"Month")+p*o),y&&o9(r,"Date",gw(r,"Date")+y*o),c&&r._d.setTime(r._d.valueOf()+c*o),l&&rn.updateOffset(r,y||p))}var UM=N9(1,"add"),$M=N9(-1,"subtract");function L9(r){return typeof r=="string"||r instanceof String}function HM(r){return yc(r)||rv(r)||L9(r)||ol(r)||qM(r)||WM(r)||r===null||r===void 0}function WM(r){var s=qd(r)&&!v8(r),o=!1,l=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],c,y;for(c=0;c<l.length;c+=1)y=l[c],o=o||Mr(r,y);return s&&o}function qM(r){var s=gc(r),o=!1;return s&&(o=r.filter(function(l){return!ol(l)&&L9(r)}).length===0),s&&o}function VM(r){var s=qd(r)&&!v8(r),o=!1,l=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"],c,y;for(c=0;c<l.length;c+=1)y=l[c],o=o||Mr(r,y);return s&&o}function GM(r,s){var o=r.diff(s,"days",!0);return o<-6?"sameElse":o<-1?"lastWeek":o<0?"lastDay":o<1?"sameDay":o<2?"nextDay":o<7?"nextWeek":"sameElse"}function ZM(r,s){arguments.length===1&&(arguments[0]?HM(arguments[0])?(r=arguments[0],s=void 0):VM(arguments[0])&&(s=arguments[0],r=void 0):(r=void 0,s=void 0));var o=r||hi(),l=$8(o,this).startOf("day"),c=rn.calendarFormat(this,l)||"sameElse",y=s&&(fu(s[c])?s[c].call(this,o):s[c]);return this.format(y||this.localeData().calendar(c,this,hi(o)))}function XM(){return new iv(this)}function KM(r,s){var o=yc(r)?r:hi(r);return this.isValid()&&o.isValid()?(s=Fs(s)||"millisecond",s==="millisecond"?this.valueOf()>o.valueOf():o.valueOf()<this.clone().startOf(s).valueOf()):!1}function QM(r,s){var o=yc(r)?r:hi(r);return this.isValid()&&o.isValid()?(s=Fs(s)||"millisecond",s==="millisecond"?this.valueOf()<o.valueOf():this.clone().endOf(s).valueOf()<o.valueOf()):!1}function JM(r,s,o,l){var c=yc(r)?r:hi(r),y=yc(s)?s:hi(s);return this.isValid()&&c.isValid()&&y.isValid()?(l=l||"()",(l[0]==="("?this.isAfter(c,o):!this.isBefore(c,o))&&(l[1]===")"?this.isBefore(y,o):!this.isAfter(y,o))):!1}function tD(r,s){var o=yc(r)?r:hi(r),l;return this.isValid()&&o.isValid()?(s=Fs(s)||"millisecond",s==="millisecond"?this.valueOf()===o.valueOf():(l=o.valueOf(),this.clone().startOf(s).valueOf()<=l&&l<=this.clone().endOf(s).valueOf())):!1}function eD(r,s){return this.isSame(r,s)||this.isAfter(r,s)}function nD(r,s){return this.isSame(r,s)||this.isBefore(r,s)}function rD(r,s,o){var l,c,y;if(!this.isValid())return NaN;if(l=$8(r,this),!l.isValid())return NaN;switch(c=(l.utcOffset()-this.utcOffset())*6e4,s=Fs(s),s){case"year":y=Aw(this,l)/12;break;case"month":y=Aw(this,l);break;case"quarter":y=Aw(this,l)/3;break;case"second":y=(this-l)/1e3;break;case"minute":y=(this-l)/6e4;break;case"hour":y=(this-l)/36e5;break;case"day":y=(this-l-c)/864e5;break;case"week":y=(this-l-c)/6048e5;break;default:y=this-l}return o?y:Ps(y)}function Aw(r,s){if(r.date()<s.date())return-Aw(s,r);var o=(s.year()-r.year())*12+(s.month()-r.month()),l=r.clone().add(o,"months"),c,y;return s-l<0?(c=r.clone().add(o-1,"months"),y=(s-l)/(l-c)):(c=r.clone().add(o+1,"months"),y=(s-l)/(c-l)),-(o+y)||0}rn.defaultFormat="YYYY-MM-DDTHH:mm:ssZ";rn.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";function iD(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function aD(r){if(!this.isValid())return null;var s=r!==!0,o=s?this.clone().utc():this;return o.year()<0||o.year()>9999?dw(o,s?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):fu(Date.prototype.toISOString)?s?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",dw(o,"Z")):dw(o,s?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function oD(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var r="moment",s="",o,l,c,y;return this.isLocal()||(r=this.utcOffset()===0?"moment.utc":"moment.parseZone",s="Z"),o="["+r+'("]',l=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",c="-MM-DD[T]HH:mm:ss.SSS",y=s+'[")]',this.format(o+l+c+y)}function sD(r){r||(r=this.isUtc()?rn.defaultFormatUtc:rn.defaultFormat);var s=dw(this,r);return this.localeData().postformat(s)}function cD(r,s){return this.isValid()&&(yc(r)&&r.isValid()||hi(r).isValid())?vc({to:this,from:r}).locale(this.locale()).humanize(!s):this.localeData().invalidDate()}function uD(r){return this.from(hi(),r)}function lD(r,s){return this.isValid()&&(yc(r)&&r.isValid()||hi(r).isValid())?vc({from:this,to:r}).locale(this.locale()).humanize(!s):this.localeData().invalidDate()}function hD(r){return this.to(hi(),r)}function B9(r){var s;return r===void 0?this._locale._abbr:(s=ll(r),s!=null&&(this._locale=s),this)}var I9=Rs("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(r){return r===void 0?this.localeData():this.locale(r)});function R9(){return this._locale}var Mw=1e3,Gp=60*Mw,Dw=60*Gp,F9=(365*400+97)*24*Dw;function Zp(r,s){return(r%s+s)%s}function P9(r,s,o){return r<100&&r>=0?new Date(r+400,s,o)-F9:new Date(r,s,o).valueOf()}function Y9(r,s,o){return r<100&&r>=0?Date.UTC(r+400,s,o)-F9:Date.UTC(r,s,o)}function fD(r){var s,o;if(r=Fs(r),r===void 0||r==="millisecond"||!this.isValid())return this;switch(o=this._isUTC?Y9:P9,r){case"year":s=o(this.year(),0,1);break;case"quarter":s=o(this.year(),this.month()-this.month()%3,1);break;case"month":s=o(this.year(),this.month(),1);break;case"week":s=o(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":s=o(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":s=o(this.year(),this.month(),this.date());break;case"hour":s=this._d.valueOf(),s-=Zp(s+(this._isUTC?0:this.utcOffset()*Gp),Dw);break;case"minute":s=this._d.valueOf(),s-=Zp(s,Gp);break;case"second":s=this._d.valueOf(),s-=Zp(s,Mw);break}return this._d.setTime(s),rn.updateOffset(this,!0),this}function dD(r){var s,o;if(r=Fs(r),r===void 0||r==="millisecond"||!this.isValid())return this;switch(o=this._isUTC?Y9:P9,r){case"year":s=o(this.year()+1,0,1)-1;break;case"quarter":s=o(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":s=o(this.year(),this.month()+1,1)-1;break;case"week":s=o(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":s=o(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":s=o(this.year(),this.month(),this.date()+1)-1;break;case"hour":s=this._d.valueOf(),s+=Dw-Zp(s+(this._isUTC?0:this.utcOffset()*Gp),Dw)-1;break;case"minute":s=this._d.valueOf(),s+=Gp-Zp(s,Gp)-1;break;case"second":s=this._d.valueOf(),s+=Mw-Zp(s,Mw)-1;break}return this._d.setTime(s),rn.updateOffset(this,!0),this}function pD(){return this._d.valueOf()-(this._offset||0)*6e4}function gD(){return Math.floor(this.valueOf()/1e3)}function yD(){return new Date(this.valueOf())}function mD(){var r=this;return[r.year(),r.month(),r.date(),r.hour(),r.minute(),r.second(),r.millisecond()]}function vD(){var r=this;return{years:r.year(),months:r.month(),date:r.date(),hours:r.hours(),minutes:r.minutes(),seconds:r.seconds(),milliseconds:r.milliseconds()}}function _D(){return this.isValid()?this.toISOString():null}function bD(){return b8(this)}function wD(){return Uh({},ar(this))}function xD(){return ar(this).overflow}function kD(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}An("N",0,0,"eraAbbr");An("NN",0,0,"eraAbbr");An("NNN",0,0,"eraAbbr");An("NNNN",0,0,"eraName");An("NNNNN",0,0,"eraNarrow");An("y",["y",1],"yo","eraYear");An("y",["yy",2],0,"eraYear");An("y",["yyy",3],0,"eraYear");An("y",["yyyy",4],0,"eraYear");sn("N",W8);sn("NN",W8);sn("NNN",W8);sn("NNNN",BD);sn("NNNNN",ID);Zr(["N","NN","NNN","NNNN","NNNNN"],function(r,s,o,l){var c=o._locale.erasParse(r,l,o._strict);c?ar(o).era=c:ar(o).invalidEra=r});sn("y",qp);sn("yy",qp);sn("yyy",qp);sn("yyyy",qp);sn("yo",RD);Zr(["y","yy","yyy","yyyy"],to);Zr(["yo"],function(r,s,o,l){var c;o._locale._eraYearOrdinalRegex&&(c=r.match(o._locale._eraYearOrdinalRegex)),o._locale.eraYearOrdinalParse?s[to]=o._locale.eraYearOrdinalParse(r,c):s[to]=parseInt(r,10)});function TD(r,s){var o,l,c,y=this._eras||ll("en")._eras;for(o=0,l=y.length;o<l;++o){switch(typeof y[o].since){case"string":c=rn(y[o].since).startOf("day"),y[o].since=c.valueOf();break}switch(typeof y[o].until){case"undefined":y[o].until=1/0;break;case"string":c=rn(y[o].until).startOf("day").valueOf(),y[o].until=c.valueOf();break}}return y}function ED(r,s,o){var l,c,y=this.eras(),p,b,T;for(r=r.toUpperCase(),l=0,c=y.length;l<c;++l)if(p=y[l].name.toUpperCase(),b=y[l].abbr.toUpperCase(),T=y[l].narrow.toUpperCase(),o)switch(s){case"N":case"NN":case"NNN":if(b===r)return y[l];break;case"NNNN":if(p===r)return y[l];break;case"NNNNN":if(T===r)return y[l];break}else if([p,b,T].indexOf(r)>=0)return y[l]}function SD(r,s){var o=r.since<=r.until?1:-1;return s===void 0?rn(r.since).year():rn(r.since).year()+(s-r.offset)*o}function CD(){var r,s,o,l=this.localeData().eras();for(r=0,s=l.length;r<s;++r)if(o=this.clone().startOf("day").valueOf(),l[r].since<=o&&o<=l[r].until||l[r].until<=o&&o<=l[r].since)return l[r].name;return""}function AD(){var r,s,o,l=this.localeData().eras();for(r=0,s=l.length;r<s;++r)if(o=this.clone().startOf("day").valueOf(),l[r].since<=o&&o<=l[r].until||l[r].until<=o&&o<=l[r].since)return l[r].narrow;return""}function MD(){var r,s,o,l=this.localeData().eras();for(r=0,s=l.length;r<s;++r)if(o=this.clone().startOf("day").valueOf(),l[r].since<=o&&o<=l[r].until||l[r].until<=o&&o<=l[r].since)return l[r].abbr;return""}function DD(){var r,s,o,l,c=this.localeData().eras();for(r=0,s=c.length;r<s;++r)if(o=c[r].since<=c[r].until?1:-1,l=this.clone().startOf("day").valueOf(),c[r].since<=l&&l<=c[r].until||c[r].until<=l&&l<=c[r].since)return(this.year()-rn(c[r].since).year())*o+c[r].offset;return this.year()}function ND(r){return Mr(this,"_erasNameRegex")||q8.call(this),r?this._erasNameRegex:this._erasRegex}function OD(r){return Mr(this,"_erasAbbrRegex")||q8.call(this),r?this._erasAbbrRegex:this._erasRegex}function LD(r){return Mr(this,"_erasNarrowRegex")||q8.call(this),r?this._erasNarrowRegex:this._erasRegex}function W8(r,s){return s.erasAbbrRegex(r)}function BD(r,s){return s.erasNameRegex(r)}function ID(r,s){return s.erasNarrowRegex(r)}function RD(r,s){return s._eraYearOrdinalRegex||qp}function q8(){var r=[],s=[],o=[],l=[],c,y,p=this.eras();for(c=0,y=p.length;c<y;++c)s.push(ss(p[c].name)),r.push(ss(p[c].abbr)),o.push(ss(p[c].narrow)),l.push(ss(p[c].name)),l.push(ss(p[c].abbr)),l.push(ss(p[c].narrow));this._erasRegex=new RegExp("^("+l.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+s.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+r.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+o.join("|")+")","i")}An(0,["gg",2],0,function(){return this.weekYear()%100});An(0,["GG",2],0,function(){return this.isoWeekYear()%100});function Nw(r,s){An(0,[r,r.length],0,s)}Nw("gggg","weekYear");Nw("ggggg","weekYear");Nw("GGGG","isoWeekYear");Nw("GGGGG","isoWeekYear");Qa("weekYear","gg");Qa("isoWeekYear","GG");Ja("weekYear",1);Ja("isoWeekYear",1);sn("G",_w);sn("g",_w);sn("GG",li,os);sn("gg",li,os);sn("GGGG",N8,D8);sn("gggg",N8,D8);sn("GGGGG",vw,yw);sn("ggggg",vw,yw);sv(["gggg","ggggg","GGGG","GGGGG"],function(r,s,o,l){s[l.substr(0,2)]=hr(r)});sv(["gg","GG"],function(r,s,o,l){s[l]=rn.parseTwoDigitYear(r)});function FD(r){return j9.call(this,r,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)}function PD(r){return j9.call(this,r,this.isoWeek(),this.isoWeekday(),1,4)}function YD(){return ul(this.year(),1,4)}function jD(){return ul(this.isoWeekYear(),1,4)}function zD(){var r=this.localeData()._week;return ul(this.year(),r.dow,r.doy)}function UD(){var r=this.localeData()._week;return ul(this.weekYear(),r.dow,r.doy)}function j9(r,s,o,l,c){var y;return r==null?lv(this,l,c).year:(y=ul(r,l,c),s>y&&(s=y),$D.call(this,r,s,o,l,c))}function $D(r,s,o,l,c){var y=m9(r,s,o,l,c),p=uv(y.year,0,y.dayOfYear);return this.year(p.getUTCFullYear()),this.month(p.getUTCMonth()),this.date(p.getUTCDate()),this}An("Q",0,"Qo","quarter");Qa("quarter","Q");Ja("quarter",7);sn("Q",s9);Zr("Q",function(r,s){s[sl]=(hr(r)-1)*3});function HD(r){return r==null?Math.ceil((this.month()+1)/3):this.month((r-1)*3+this.month()%3)}An("D",["DD",2],"Do","date");Qa("date","D");Ja("date",9);sn("D",li);sn("DD",li,os);sn("Do",function(r,s){return r?s._dayOfMonthOrdinalParse||s._ordinalParse:s._dayOfMonthOrdinalParseLenient});Zr(["D","DD"],pu);Zr("Do",function(r,s){s[pu]=hr(r.match(li)[0])});var z9=Wp("Date",!0);An("DDD",["DDDD",3],"DDDo","dayOfYear");Qa("dayOfYear","DDD");Ja("dayOfYear",4);sn("DDD",mw);sn("DDDD",c9);Zr(["DDD","DDDD"],function(r,s,o){o._dayOfYear=hr(r)});function WD(r){var s=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return r==null?s:this.add(r-s,"d")}An("m",["mm",2],0,"minute");Qa("minute","m");Ja("minute",14);sn("m",li);sn("mm",li,os);Zr(["m","mm"],mc);var qD=Wp("Minutes",!1);An("s",["ss",2],0,"second");Qa("second","s");Ja("second",15);sn("s",li);sn("ss",li,os);Zr(["s","ss"],cl);var VD=Wp("Seconds",!1);An("S",0,0,function(){return~~(this.millisecond()/100)});An(0,["SS",2],0,function(){return~~(this.millisecond()/10)});An(0,["SSS",3],0,"millisecond");An(0,["SSSS",4],0,function(){return this.millisecond()*10});An(0,["SSSSS",5],0,function(){return this.millisecond()*100});An(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3});An(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4});An(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5});An(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6});Qa("millisecond","ms");Ja("millisecond",16);sn("S",mw,s9);sn("SS",mw,os);sn("SSS",mw,c9);var Hh,U9;for(Hh="SSSS";Hh.length<=9;Hh+="S")sn(Hh,qp);function GD(r,s){s[Vd]=hr(("0."+r)*1e3)}for(Hh="S";Hh.length<=9;Hh+="S")Zr(Hh,GD);U9=Wp("Milliseconds",!1);An("z",0,0,"zoneAbbr");An("zz",0,0,"zoneName");function ZD(){return this._isUTC?"UTC":""}function XD(){return this._isUTC?"Coordinated Universal Time":""}var Ie=iv.prototype;Ie.add=UM;Ie.calendar=ZM;Ie.clone=XM;Ie.diff=rD;Ie.endOf=dD;Ie.format=sD;Ie.from=cD;Ie.fromNow=uD;Ie.to=lD;Ie.toNow=hD;Ie.get=JC;Ie.invalidAt=xD;Ie.isAfter=KM;Ie.isBefore=QM;Ie.isBetween=JM;Ie.isSame=tD;Ie.isSameOrAfter=eD;Ie.isSameOrBefore=nD;Ie.isValid=bD;Ie.lang=I9;Ie.locale=B9;Ie.localeData=R9;Ie.max=bM;Ie.min=_M;Ie.parsingFlags=wD;Ie.set=tA;Ie.startOf=fD;Ie.subtract=$M;Ie.toArray=mD;Ie.toObject=vD;Ie.toDate=yD;Ie.toISOString=aD;Ie.inspect=oD;typeof Symbol!="undefined"&&Symbol.for!=null&&(Ie[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"});Ie.toJSON=_D;Ie.toString=iD;Ie.unix=gD;Ie.valueOf=pD;Ie.creationData=kD;Ie.eraName=CD;Ie.eraNarrow=AD;Ie.eraAbbr=MD;Ie.eraYear=DD;Ie.year=y9;Ie.isLeapYear=_A;Ie.weekYear=FD;Ie.isoWeekYear=PD;Ie.quarter=Ie.quarters=HD;Ie.month=p9;Ie.daysInMonth=yA;Ie.week=Ie.weeks=EA;Ie.isoWeek=Ie.isoWeeks=SA;Ie.weeksInYear=zD;Ie.weeksInWeekYear=UD;Ie.isoWeeksInYear=YD;Ie.isoWeeksInISOWeekYear=jD;Ie.date=z9;Ie.day=Ie.days=YA;Ie.weekday=jA;Ie.isoWeekday=zA;Ie.dayOfYear=WD;Ie.hour=Ie.hours=GA;Ie.minute=Ie.minutes=qD;Ie.second=Ie.seconds=VD;Ie.millisecond=Ie.milliseconds=U9;Ie.utcOffset=MM;Ie.utc=NM;Ie.local=OM;Ie.parseZone=LM;Ie.hasAlignedHourOffset=BM;Ie.isDST=IM;Ie.isLocal=FM;Ie.isUtcOffset=PM;Ie.isUtc=M9;Ie.isUTC=M9;Ie.zoneAbbr=ZD;Ie.zoneName=XD;Ie.dates=Rs("dates accessor is deprecated. Use date instead.",z9);Ie.months=Rs("months accessor is deprecated. Use month instead",p9);Ie.years=Rs("years accessor is deprecated. Use year instead",y9);Ie.zone=Rs("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",DM);Ie.isDSTShifted=Rs("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",RM);function KD(r){return hi(r*1e3)}function QD(){return hi.apply(null,arguments).parseZone()}function $9(r){return r}var Dr=E8.prototype;Dr.calendar=YC;Dr.longDateFormat=$C;Dr.invalidDate=WC;Dr.ordinal=GC;Dr.preparse=$9;Dr.postformat=$9;Dr.relativeTime=XC;Dr.pastFuture=KC;Dr.set=FC;Dr.eras=TD;Dr.erasParse=ED;Dr.erasConvertYear=SD;Dr.erasAbbrRegex=OD;Dr.erasNameRegex=ND;Dr.erasNarrowRegex=LD;Dr.months=fA;Dr.monthsShort=dA;Dr.monthsParse=gA;Dr.monthsRegex=vA;Dr.monthsShortRegex=mA;Dr.week=wA;Dr.firstDayOfYear=TA;Dr.firstDayOfWeek=kA;Dr.weekdays=BA;Dr.weekdaysMin=RA;Dr.weekdaysShort=IA;Dr.weekdaysParse=PA;Dr.weekdaysRegex=UA;Dr.weekdaysShortRegex=$A;Dr.weekdaysMinRegex=HA;Dr.isPM=qA;Dr.meridiem=ZA;function Ow(r,s,o,l){var c=ll(),y=hu().set(l,s);return c[o](y,r)}function H9(r,s,o){if(ol(r)&&(s=r,r=void 0),r=r||"",s!=null)return Ow(r,s,o,"month");var l,c=[];for(l=0;l<12;l++)c[l]=Ow(r,l,o,"month");return c}function V8(r,s,o,l){typeof r=="boolean"?(ol(s)&&(o=s,s=void 0),s=s||""):(s=r,o=s,r=!1,ol(s)&&(o=s,s=void 0),s=s||"");var c=ll(),y=r?c._week.dow:0,p,b=[];if(o!=null)return Ow(s,(o+y)%7,l,"day");for(p=0;p<7;p++)b[p]=Ow(s,(p+y)%7,l,"day");return b}function JD(r,s){return H9(r,s,"months")}function tN(r,s){return H9(r,s,"monthsShort")}function eN(r,s,o){return V8(r,s,o,"weekdays")}function nN(r,s,o){return V8(r,s,o,"weekdaysShort")}function rN(r,s,o){return V8(r,s,o,"weekdaysMin")}$h("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(r){var s=r%10,o=hr(r%100/10)===1?"th":s===1?"st":s===2?"nd":s===3?"rd":"th";return r+o}});rn.lang=Rs("moment.lang is deprecated. Use moment.locale instead.",$h);rn.langData=Rs("moment.langData is deprecated. Use moment.localeData instead.",ll);var hl=Math.abs;function iN(){var r=this._data;return this._milliseconds=hl(this._milliseconds),this._days=hl(this._days),this._months=hl(this._months),r.milliseconds=hl(r.milliseconds),r.seconds=hl(r.seconds),r.minutes=hl(r.minutes),r.hours=hl(r.hours),r.months=hl(r.months),r.years=hl(r.years),this}function W9(r,s,o,l){var c=vc(s,o);return r._milliseconds+=l*c._milliseconds,r._days+=l*c._days,r._months+=l*c._months,r._bubble()}function aN(r,s){return W9(this,r,s,1)}function oN(r,s){return W9(this,r,s,-1)}function q9(r){return r<0?Math.floor(r):Math.ceil(r)}function sN(){var r=this._milliseconds,s=this._days,o=this._months,l=this._data,c,y,p,b,T;return r>=0&&s>=0&&o>=0||r<=0&&s<=0&&o<=0||(r+=q9(G8(o)+s)*864e5,s=0,o=0),l.milliseconds=r%1e3,c=Ps(r/1e3),l.seconds=c%60,y=Ps(c/60),l.minutes=y%60,p=Ps(y/60),l.hours=p%24,s+=Ps(p/24),T=Ps(V9(s)),o+=T,s-=q9(G8(T)),b=Ps(o/12),o%=12,l.days=s,l.months=o,l.years=b,this}function V9(r){return r*4800/146097}function G8(r){return r*146097/4800}function cN(r){if(!this.isValid())return NaN;var s,o,l=this._milliseconds;if(r=Fs(r),r==="month"||r==="quarter"||r==="year")switch(s=this._days+l/864e5,o=this._months+V9(s),r){case"month":return o;case"quarter":return o/3;case"year":return o/12}else switch(s=this._days+Math.round(G8(this._months)),r){case"week":return s/7+l/6048e5;case"day":return s+l/864e5;case"hour":return s*24+l/36e5;case"minute":return s*1440+l/6e4;case"second":return s*86400+l/1e3;case"millisecond":return Math.floor(s*864e5)+l;default:throw new Error("Unknown unit "+r)}}function uN(){return this.isValid()?this._milliseconds+this._days*864e5+this._months%12*2592e6+hr(this._months/12)*31536e6:NaN}function fl(r){return function(){return this.as(r)}}var lN=fl("ms"),hN=fl("s"),fN=fl("m"),dN=fl("h"),pN=fl("d"),gN=fl("w"),yN=fl("M"),mN=fl("Q"),vN=fl("y");function _N(){return vc(this)}function bN(r){return r=Fs(r),this.isValid()?this[r+"s"]():NaN}function Zd(r){return function(){return this.isValid()?this._data[r]:NaN}}var wN=Zd("milliseconds"),xN=Zd("seconds"),kN=Zd("minutes"),TN=Zd("hours"),EN=Zd("days"),SN=Zd("months"),CN=Zd("years");function AN(){return Ps(this.days()/7)}var dl=Math.round,Xp={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function MN(r,s,o,l,c){return c.relativeTime(s||1,!!o,r,l)}function DN(r,s,o,l){var c=vc(r).abs(),y=dl(c.as("s")),p=dl(c.as("m")),b=dl(c.as("h")),T=dl(c.as("d")),k=dl(c.as("M")),D=dl(c.as("w")),O=dl(c.as("y")),R=y<=o.ss&&["s",y]||y<o.s&&["ss",y]||p<=1&&["m"]||p<o.m&&["mm",p]||b<=1&&["h"]||b<o.h&&["hh",b]||T<=1&&["d"]||T<o.d&&["dd",T];return o.w!=null&&(R=R||D<=1&&["w"]||D<o.w&&["ww",D]),R=R||k<=1&&["M"]||k<o.M&&["MM",k]||O<=1&&["y"]||["yy",O],R[2]=s,R[3]=+r>0,R[4]=l,MN.apply(null,R)}function NN(r){return r===void 0?dl:typeof r=="function"?(dl=r,!0):!1}function ON(r,s){return Xp[r]===void 0?!1:s===void 0?Xp[r]:(Xp[r]=s,r==="s"&&(Xp.ss=s-1),!0)}function LN(r,s){if(!this.isValid())return this.localeData().invalidDate();var o=!1,l=Xp,c,y;return typeof r=="object"&&(s=r,r=!1),typeof r=="boolean"&&(o=r),typeof s=="object"&&(l=Object.assign({},Xp,s),s.s!=null&&s.ss==null&&(l.ss=s.s-1)),c=this.localeData(),y=DN(this,!o,l,c),o&&(y=c.pastFuture(+this,y)),c.postformat(y)}var Z8=Math.abs;function Kp(r){return(r>0)-(r<0)||+r}function Lw(){if(!this.isValid())return this.localeData().invalidDate();var r=Z8(this._milliseconds)/1e3,s=Z8(this._days),o=Z8(this._months),l,c,y,p,b=this.asSeconds(),T,k,D,O;return b?(l=Ps(r/60),c=Ps(l/60),r%=60,l%=60,y=Ps(o/12),o%=12,p=r?r.toFixed(3).replace(/\.?0+$/,""):"",T=b<0?"-":"",k=Kp(this._months)!==Kp(b)?"-":"",D=Kp(this._days)!==Kp(b)?"-":"",O=Kp(this._milliseconds)!==Kp(b)?"-":"",T+"P"+(y?k+y+"Y":"")+(o?k+o+"M":"")+(s?D+s+"D":"")+(c||l||r?"T":"")+(c?O+c+"H":"")+(l?O+l+"M":"")+(r?O+p+"S":"")):"P0D"}var Sr=Sw.prototype;Sr.isValid=EM;Sr.abs=iN;Sr.add=aN;Sr.subtract=oN;Sr.as=cN;Sr.asMilliseconds=lN;Sr.asSeconds=hN;Sr.asMinutes=fN;Sr.asHours=dN;Sr.asDays=pN;Sr.asWeeks=gN;Sr.asMonths=yN;Sr.asQuarters=mN;Sr.asYears=vN;Sr.valueOf=uN;Sr._bubble=sN;Sr.clone=_N;Sr.get=bN;Sr.milliseconds=wN;Sr.seconds=xN;Sr.minutes=kN;Sr.hours=TN;Sr.days=EN;Sr.weeks=AN;Sr.months=SN;Sr.years=CN;Sr.humanize=LN;Sr.toISOString=Lw;Sr.toString=Lw;Sr.toJSON=Lw;Sr.locale=B9;Sr.localeData=R9;Sr.toIsoString=Rs("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Lw);Sr.lang=I9;An("X",0,0,"unix");An("x",0,0,"valueOf");sn("x",_w);sn("X",nA);Zr("X",function(r,s,o){o._d=new Date(parseFloat(r)*1e3)});Zr("x",function(r,s,o){o._d=new Date(hr(r))});//! moment.js
|
|
rn.version="2.29.1";IC(hi);rn.fn=Ie;rn.min=wM;rn.max=xM;rn.now=kM;rn.utc=hu;rn.unix=KD;rn.months=JD;rn.isDate=rv;rn.locale=$h;rn.invalid=hw;rn.duration=vc;rn.isMoment=yc;rn.weekdays=eN;rn.parseZone=QD;rn.localeData=ll;rn.isDuration=Cw;rn.monthsShort=tN;rn.weekdaysMin=rN;rn.defineLocale=R8;rn.updateLocale=QA;rn.locales=JA;rn.weekdaysShort=nN;rn.normalizeUnits=Fs;rn.relativeTimeRounding=NN;rn.relativeTimeThreshold=ON;rn.calendarFormat=GM;rn.prototype=Ie;rn.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"};/*! For license information please see mermaid.esm.min.mjs.LICENSE.txt */var BN={1362:(r,s,o)=>{r=o.nmd(r);var l=function(){var c=function(jt,Kt,ct,te){for(ct=ct||{},te=jt.length;te--;ct[jt[te]]=Kt);return ct},y=[1,6],p=[1,7],b=[1,8],T=[1,9],k=[1,12],D=[1,11],O=[1,15,24],R=[1,19],z=[1,31],$=[1,34],q=[1,32],V=[1,33],X=[1,35],it=[1,36],tt=[1,37],rt=[1,38],ut=[1,41],Ct=[1,42],et=[1,43],K=[1,44],ht=[15,24],xt=[1,56],St=[1,57],pt=[1,58],wt=[1,59],Ht=[1,60],Pt=[1,61],ge=[15,24,31,38,39,47,50,51,52,53,54,55,60,62],pe=[15,24,29,31,38,39,43,47,50,51,52,53,54,55,60,62,77,78,79,80],de=[7,8,9,10,15,18,22,24],Bt=[47,77,78,79,80],Gt=[47,54,55,77,78,79,80],oe=[47,50,51,52,53,77,78,79,80],le=[15,24,31],ye=[1,93],It={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(jt,Kt,ct,te,Dt,Vt,$t){var Nt=Vt.length-1;switch(Dt){case 4:te.setDirection("TB");break;case 5:te.setDirection("BT");break;case 6:te.setDirection("RL");break;case 7:te.setDirection("LR");break;case 11:te.parseDirective("%%{","open_directive");break;case 12:te.parseDirective(Vt[Nt],"type_directive");break;case 13:Vt[Nt]=Vt[Nt].trim().replace(/'/g,'"'),te.parseDirective(Vt[Nt],"arg_directive");break;case 14:te.parseDirective("}%%","close_directive","class");break;case 19:case 20:this.$=Vt[Nt];break;case 21:this.$=Vt[Nt-1]+Vt[Nt];break;case 22:case 23:this.$=Vt[Nt-1]+"~"+Vt[Nt];break;case 24:te.addRelation(Vt[Nt]);break;case 25:Vt[Nt-1].title=te.cleanupLabel(Vt[Nt]),te.addRelation(Vt[Nt-1]);break;case 33:te.addClass(Vt[Nt]);break;case 34:te.addClass(Vt[Nt-2]),te.setCssClass(Vt[Nt-2],Vt[Nt]);break;case 35:te.addClass(Vt[Nt-3]),te.addMembers(Vt[Nt-3],Vt[Nt-1]);break;case 36:te.addClass(Vt[Nt-5]),te.setCssClass(Vt[Nt-5],Vt[Nt-3]),te.addMembers(Vt[Nt-5],Vt[Nt-1]);break;case 37:te.addAnnotation(Vt[Nt],Vt[Nt-2]);break;case 38:this.$=[Vt[Nt]];break;case 39:Vt[Nt].push(Vt[Nt-1]),this.$=Vt[Nt];break;case 40:case 42:case 43:break;case 41:te.addMember(Vt[Nt-1],te.cleanupLabel(Vt[Nt]));break;case 44:this.$={id1:Vt[Nt-2],id2:Vt[Nt],relation:Vt[Nt-1],relationTitle1:"none",relationTitle2:"none"};break;case 45:this.$={id1:Vt[Nt-3],id2:Vt[Nt],relation:Vt[Nt-1],relationTitle1:Vt[Nt-2],relationTitle2:"none"};break;case 46:this.$={id1:Vt[Nt-3],id2:Vt[Nt],relation:Vt[Nt-2],relationTitle1:"none",relationTitle2:Vt[Nt-1]};break;case 47:this.$={id1:Vt[Nt-4],id2:Vt[Nt],relation:Vt[Nt-2],relationTitle1:Vt[Nt-3],relationTitle2:Vt[Nt-1]};break;case 48:this.$={type1:Vt[Nt-2],type2:Vt[Nt],lineType:Vt[Nt-1]};break;case 49:this.$={type1:"none",type2:Vt[Nt],lineType:Vt[Nt-1]};break;case 50:this.$={type1:Vt[Nt-1],type2:"none",lineType:Vt[Nt]};break;case 51:this.$={type1:"none",type2:"none",lineType:Vt[Nt]};break;case 52:this.$=te.relationType.AGGREGATION;break;case 53:this.$=te.relationType.EXTENSION;break;case 54:this.$=te.relationType.COMPOSITION;break;case 55:this.$=te.relationType.DEPENDENCY;break;case 56:this.$=te.lineType.LINE;break;case 57:this.$=te.lineType.DOTTED_LINE;break;case 58:case 64:this.$=Vt[Nt-2],te.setClickEvent(Vt[Nt-1],Vt[Nt]);break;case 59:case 65:this.$=Vt[Nt-3],te.setClickEvent(Vt[Nt-2],Vt[Nt-1]),te.setTooltip(Vt[Nt-2],Vt[Nt]);break;case 60:case 68:this.$=Vt[Nt-2],te.setLink(Vt[Nt-1],Vt[Nt]);break;case 61:case 69:this.$=Vt[Nt-3],te.setLink(Vt[Nt-2],Vt[Nt-1],Vt[Nt]);break;case 62:case 70:this.$=Vt[Nt-3],te.setLink(Vt[Nt-2],Vt[Nt-1]),te.setTooltip(Vt[Nt-2],Vt[Nt]);break;case 63:case 71:this.$=Vt[Nt-4],te.setLink(Vt[Nt-3],Vt[Nt-2],Vt[Nt]),te.setTooltip(Vt[Nt-3],Vt[Nt-1]);break;case 66:this.$=Vt[Nt-3],te.setClickEvent(Vt[Nt-2],Vt[Nt-1],Vt[Nt]);break;case 67:this.$=Vt[Nt-4],te.setClickEvent(Vt[Nt-3],Vt[Nt-2],Vt[Nt-1]),te.setTooltip(Vt[Nt-3],Vt[Nt]);break;case 72:te.setCssClass(Vt[Nt-1],Vt[Nt])}},table:[{3:1,4:2,5:3,6:4,7:y,8:p,9:b,10:T,11:5,12:10,18:k,22:D},{1:[3]},{1:[2,1]},{1:[2,2]},{3:13,4:2,5:3,6:4,7:y,8:p,9:b,10:T,11:5,12:10,18:k,22:D},{1:[2,8]},c(O,[2,4]),c(O,[2,5]),c(O,[2,6]),c(O,[2,7]),{13:14,19:[1,15]},{15:[1,16]},{19:[2,11]},{1:[2,3]},{14:17,16:[1,18],21:R},c([16,21],[2,12]),{5:29,6:28,7:y,8:p,9:b,10:T,12:10,18:k,23:20,25:21,26:30,27:39,28:40,30:22,32:23,33:24,34:25,35:26,36:27,37:z,42:$,44:q,45:V,56:X,57:it,59:tt,63:rt,77:ut,78:Ct,79:et,80:K},{15:[1,45]},{17:46,20:[1,47]},{15:[2,14]},{24:[1,48]},{15:[1,49],24:[2,16]},c(ht,[2,24],{31:[1,50]}),c(ht,[2,26]),c(ht,[2,27]),c(ht,[2,28]),c(ht,[2,29]),c(ht,[2,30]),c(ht,[2,31]),c(ht,[2,32]),c(ht,[2,40],{46:51,48:54,49:55,31:[1,53],47:[1,52],50:xt,51:St,52:pt,53:wt,54:Ht,55:Pt}),{26:62,27:39,28:40,77:ut,78:Ct,79:et,80:K},c(ht,[2,42]),c(ht,[2,43]),{27:63,77:ut,78:Ct,79:et},{26:64,27:39,28:40,77:ut,78:Ct,79:et,80:K},{26:65,27:39,28:40,77:ut,78:Ct,79:et,80:K},{26:66,27:39,28:40,77:ut,78:Ct,79:et,80:K},{47:[1,67]},c(ge,[2,19],{27:39,28:40,26:68,29:[1,69],77:ut,78:Ct,79:et,80:K}),c(ge,[2,20],{29:[1,70]}),c(pe,[2,86]),c(pe,[2,87]),c(pe,[2,88]),c([15,24,29,31,38,39,47,50,51,52,53,54,55,60,62],[2,89]),c(de,[2,9]),{14:71,21:R},{21:[2,13]},{1:[2,15]},{5:29,6:28,7:y,8:p,9:b,10:T,12:10,18:k,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:z,42:$,44:q,45:V,56:X,57:it,59:tt,63:rt,77:ut,78:Ct,79:et,80:K},c(ht,[2,25]),{26:73,27:39,28:40,47:[1,74],77:ut,78:Ct,79:et,80:K},{46:75,48:54,49:55,50:xt,51:St,52:pt,53:wt,54:Ht,55:Pt},c(ht,[2,41]),{49:76,54:Ht,55:Pt},c(Bt,[2,51],{48:77,50:xt,51:St,52:pt,53:wt}),c(Gt,[2,52]),c(Gt,[2,53]),c(Gt,[2,54]),c(Gt,[2,55]),c(oe,[2,56]),c(oe,[2,57]),c(ht,[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:ut,78:Ct,79:et},c(ge,[2,21]),c(ge,[2,22]),c(ge,[2,23]),{15:[1,86]},{24:[2,18]},c(le,[2,44]),{26:87,27:39,28:40,77:ut,78:Ct,79:et,80:K},{26:88,27:39,28:40,47:[1,89],77:ut,78:Ct,79:et,80:K},c(Bt,[2,50],{48:90,50:xt,51:St,52:pt,53:wt}),c(Bt,[2,49]),{27:91,77:ut,78:Ct,79:et},{40:92,44:ye},{26:94,27:39,28:40,77:ut,78:Ct,79:et,80:K},c(ht,[2,58],{47:[1,95]}),c(ht,[2,60],{47:[1,97],58:[1,96]}),c(ht,[2,64],{47:[1,98],61:[1,99]}),c(ht,[2,68],{47:[1,101],58:[1,100]}),c(ht,[2,72]),c(de,[2,10]),c(le,[2,46]),c(le,[2,45]),{26:102,27:39,28:40,77:ut,78:Ct,79:et,80:K},c(Bt,[2,48]),c(ht,[2,34],{39:[1,103]}),{41:[1,104]},{40:105,41:[2,38],44:ye},c(ht,[2,37]),c(ht,[2,59]),c(ht,[2,61]),c(ht,[2,62],{58:[1,106]}),c(ht,[2,65]),c(ht,[2,66],{47:[1,107]}),c(ht,[2,69]),c(ht,[2,70],{58:[1,108]}),c(le,[2,47]),{40:109,44:ye},c(ht,[2,35]),{41:[2,39]},c(ht,[2,63]),c(ht,[2,67]),c(ht,[2,71]),{41:[1,110]},c(ht,[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(jt,Kt){if(!Kt.recoverable){var ct=new Error(jt);throw ct.hash=Kt,ct}this.trace(jt)},parse:function(jt){var Kt=this,ct=[0],te=[],Dt=[null],Vt=[],$t=this.table,Nt="",ie=0,Qe=0,be=0,Ce=2,un=1,Ve=Vt.slice.call(arguments,1),Le=Object.create(this.lexer),ke={yy:{}};for(var Je in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Je)&&(ke.yy[Je]=this.yy[Je]);Le.setInput(jt,ke.yy),ke.yy.lexer=Le,ke.yy.parser=this,Le.yylloc===void 0&&(Le.yylloc={});var Ye=Le.yylloc;Vt.push(Ye);var Ge=Le.options&&Le.options.ranges;function Ze(){var Cn;return typeof(Cn=te.pop()||Le.lex()||un)!="number"&&(Cn instanceof Array&&(Cn=(te=Cn).pop()),Cn=Kt.symbols_[Cn]||Cn),Cn}typeof ke.yy.parseError=="function"?this.parseError=ke.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var De,zn,Te,en,_n,Rr,bn,Jn,cn,yn={};;){if(Te=ct[ct.length-1],this.defaultActions[Te]?en=this.defaultActions[Te]:(De==null&&(De=Ze()),en=$t[Te]&&$t[Te][De]),en===void 0||!en.length||!en[0]){var Xe="";for(Rr in cn=[],$t[Te])this.terminals_[Rr]&&Rr>Ce&&cn.push("'"+this.terminals_[Rr]+"'");Xe=Le.showPosition?"Parse error on line "+(ie+1)+`:
|
|
`+Le.showPosition()+`
|
|
Expecting `+cn.join(", ")+", got '"+(this.terminals_[De]||De)+"'":"Parse error on line "+(ie+1)+": Unexpected "+(De==un?"end of input":"'"+(this.terminals_[De]||De)+"'"),this.parseError(Xe,{text:Le.match,token:this.terminals_[De]||De,line:Le.yylineno,loc:Ye,expected:cn})}if(en[0]instanceof Array&&en.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Te+", token: "+De);switch(en[0]){case 1:ct.push(De),Dt.push(Le.yytext),Vt.push(Le.yylloc),ct.push(en[1]),De=null,zn?(De=zn,zn=null):(Qe=Le.yyleng,Nt=Le.yytext,ie=Le.yylineno,Ye=Le.yylloc,be>0);break;case 2:if(bn=this.productions_[en[1]][1],yn.$=Dt[Dt.length-bn],yn._$={first_line:Vt[Vt.length-(bn||1)].first_line,last_line:Vt[Vt.length-1].last_line,first_column:Vt[Vt.length-(bn||1)].first_column,last_column:Vt[Vt.length-1].last_column},Ge&&(yn._$.range=[Vt[Vt.length-(bn||1)].range[0],Vt[Vt.length-1].range[1]]),(_n=this.performAction.apply(yn,[Nt,Qe,ie,ke.yy,en[1],Dt,Vt].concat(Ve)))!==void 0)return _n;bn&&(ct=ct.slice(0,-1*bn*2),Dt=Dt.slice(0,-1*bn),Vt=Vt.slice(0,-1*bn)),ct.push(this.productions_[en[1]][0]),Dt.push(yn.$),Vt.push(yn._$),Jn=$t[ct[ct.length-2]][ct[ct.length-1]],ct.push(Jn);break;case 3:return!0}}return!0}},He={EOF:1,parseError:function(jt,Kt){if(!this.yy.parser)throw new Error(jt);this.yy.parser.parseError(jt,Kt)},setInput:function(jt,Kt){return this.yy=Kt||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 Kt=jt.length,ct=jt.split(/(?:\r\n?|\n)/g);this._input=jt+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-Kt),this.offset-=Kt;var te=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),ct.length-1&&(this.yylineno-=ct.length-1);var Dt=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:ct?(ct.length===te.length?this.yylloc.first_column:0)+te[te.length-ct.length].length-ct[0].length:this.yylloc.first_column-Kt},this.options.ranges&&(this.yylloc.range=[Dt[0],Dt[0]+this.yyleng-Kt]),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(),Kt=new Array(jt.length+1).join("-");return jt+this.upcomingInput()+`
|
|
`+Kt+"^"},test_match:function(jt,Kt){var ct,te,Dt;if(this.options.backtrack_lexer&&(Dt={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&&(Dt.yylloc.range=this.yylloc.range.slice(0))),(te=jt[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=te.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:te?te[te.length-1].length-te[te.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],ct=this.performAction.call(this,this.yy,this,Kt,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),ct)return ct;if(this._backtrack){for(var Vt in Dt)this[Vt]=Dt[Vt];return!1}return!1},next:function(){if(this.done)return this.EOF;var jt,Kt,ct,te;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var Dt=this._currentRules(),Vt=0;Vt<Dt.length;Vt++)if((ct=this._input.match(this.rules[Dt[Vt]]))&&(!Kt||ct[0].length>Kt[0].length)){if(Kt=ct,te=Vt,this.options.backtrack_lexer){if((jt=this.test_match(ct,Dt[Vt]))!==!1)return jt;if(this._backtrack){Kt=!1;continue}return!1}if(!this.options.flex)break}return Kt?(jt=this.test_match(Kt,Dt[te]))!==!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:{},performAction:function(jt,Kt,ct,te){switch(ct){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 he(){this.yy={}}return It.lexer=He,he.prototype=It,It.Parser=he,new he}();s.parser=l,s.Parser=l.Parser,s.parse=function(){return l.parse.apply(l,arguments)},s.main=function(c){c[1]||(console.log("Usage: "+c[0]+" FILE"),process.exit(1));var y=o(8218).readFileSync(o(6470).normalize(c[1]),"utf8");return s.parser.parse(y)},o.c[o.s]===r&&s.main(process.argv.slice(1))},5890:(r,s,o)=>{r=o.nmd(r);var l=function(){var c=function(et,K,ht,xt){for(ht=ht||{},xt=et.length;xt--;ht[et[xt]]=K);return ht},y=[1,2],p=[1,5],b=[6,9,11,23,41],T=[1,17],k=[1,20],D=[1,25],O=[1,26],R=[1,27],z=[1,28],$=[1,37],q=[23,38,39],V=[4,6,9,11,23,41],X=[34,35,36,37],it=[22,29],tt=[1,55],rt={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,ALPHANUM:23,attribute:24,attributeType:25,attributeName:26,attributeKeyType:27,attributeComment:28,ATTRIBUTE_WORD:29,ATTRIBUTE_KEY:30,COMMENT:31,cardinality:32,relType:33,ZERO_OR_ONE:34,ZERO_OR_MORE:35,ONE_OR_MORE:36,ONLY_ONE:37,NON_IDENTIFYING:38,IDENTIFYING:39,WORD:40,open_directive:41,type_directive:42,arg_directive:43,close_directive:44,$accept:0,$end:1},terminals_:{2:"error",4:"ER_DIAGRAM",6:"EOF",9:"SPACE",11:"NEWLINE",15:":",20:"BLOCK_START",22:"BLOCK_STOP",23:"ALPHANUM",29:"ATTRIBUTE_WORD",30:"ATTRIBUTE_KEY",31:"COMMENT",34:"ZERO_OR_ONE",35:"ZERO_OR_MORE",36:"ONE_OR_MORE",37:"ONLY_ONE",38:"NON_IDENTIFYING",39:"IDENTIFYING",40:"WORD",41:"open_directive",42:"type_directive",43:"arg_directive",44:"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],[17,1],[21,1],[21,2],[24,2],[24,3],[24,3],[24,4],[25,1],[26,1],[27,1],[28,1],[18,3],[32,1],[32,1],[32,1],[32,1],[33,1],[33,1],[19,1],[19,1],[12,1],[13,1],[16,1],[14,1]],performAction:function(et,K,ht,xt,St,pt,wt){var Ht=pt.length-1;switch(St){case 1:break;case 3:case 7:case 8:this.$=[];break;case 4:pt[Ht-1].push(pt[Ht]),this.$=pt[Ht-1];break;case 5:case 6:case 16:case 23:case 24:case 25:case 35:this.$=pt[Ht];break;case 12:xt.addEntity(pt[Ht-4]),xt.addEntity(pt[Ht-2]),xt.addRelationship(pt[Ht-4],pt[Ht],pt[Ht-2],pt[Ht-3]);break;case 13:xt.addEntity(pt[Ht-3]),xt.addAttributes(pt[Ht-3],pt[Ht-1]);break;case 14:xt.addEntity(pt[Ht-2]);break;case 15:xt.addEntity(pt[Ht]);break;case 17:this.$=[pt[Ht]];break;case 18:pt[Ht].push(pt[Ht-1]),this.$=pt[Ht];break;case 19:this.$={attributeType:pt[Ht-1],attributeName:pt[Ht]};break;case 20:this.$={attributeType:pt[Ht-2],attributeName:pt[Ht-1],attributeKeyType:pt[Ht]};break;case 21:this.$={attributeType:pt[Ht-2],attributeName:pt[Ht-1],attributeComment:pt[Ht]};break;case 22:this.$={attributeType:pt[Ht-3],attributeName:pt[Ht-2],attributeKeyType:pt[Ht-1],attributeComment:pt[Ht]};break;case 26:case 34:this.$=pt[Ht].replace(/"/g,"");break;case 27:this.$={cardA:pt[Ht],relType:pt[Ht-1],cardB:pt[Ht-2]};break;case 28:this.$=xt.Cardinality.ZERO_OR_ONE;break;case 29:this.$=xt.Cardinality.ZERO_OR_MORE;break;case 30:this.$=xt.Cardinality.ONE_OR_MORE;break;case 31:this.$=xt.Cardinality.ONLY_ONE;break;case 32:this.$=xt.Identification.NON_IDENTIFYING;break;case 33:this.$=xt.Identification.IDENTIFYING;break;case 36:xt.parseDirective("%%{","open_directive");break;case 37:xt.parseDirective(pt[Ht],"type_directive");break;case 38:pt[Ht]=pt[Ht].trim().replace(/'/g,'"'),xt.parseDirective(pt[Ht],"arg_directive");break;case 39:xt.parseDirective("}%%","close_directive","er")}},table:[{3:1,4:y,7:3,12:4,41:p},{1:[3]},c(b,[2,3],{5:6}),{3:7,4:y,7:3,12:4,41:p},{13:8,42:[1,9]},{42:[2,36]},{6:[1,10],7:15,8:11,9:[1,12],10:13,11:[1,14],12:4,17:16,23:T,41:p},{1:[2,2]},{14:18,15:[1,19],44:k},c([15,44],[2,37]),c(b,[2,8],{1:[2,1]}),c(b,[2,4]),{7:15,10:21,12:4,17:16,23:T,41:p},c(b,[2,6]),c(b,[2,7]),c(b,[2,11]),c(b,[2,15],{18:22,32:24,20:[1,23],34:D,35:O,36:R,37:z}),c([6,9,11,15,20,23,34,35,36,37,41],[2,16]),{11:[1,29]},{16:30,43:[1,31]},{11:[2,39]},c(b,[2,5]),{17:32,23:T},{21:33,22:[1,34],24:35,25:36,29:$},{33:38,38:[1,39],39:[1,40]},c(q,[2,28]),c(q,[2,29]),c(q,[2,30]),c(q,[2,31]),c(V,[2,9]),{14:41,44:k},{44:[2,38]},{15:[1,42]},{22:[1,43]},c(b,[2,14]),{21:44,22:[2,17],24:35,25:36,29:$},{26:45,29:[1,46]},{29:[2,23]},{32:47,34:D,35:O,36:R,37:z},c(X,[2,32]),c(X,[2,33]),{11:[1,48]},{19:49,23:[1,51],40:[1,50]},c(b,[2,13]),{22:[2,18]},c(it,[2,19],{27:52,28:53,30:[1,54],31:tt}),c([22,29,30,31],[2,24]),{23:[2,27]},c(V,[2,10]),c(b,[2,12]),c(b,[2,34]),c(b,[2,35]),c(it,[2,20],{28:56,31:tt}),c(it,[2,21]),c([22,29,31],[2,25]),c(it,[2,26]),c(it,[2,22])],defaultActions:{5:[2,36],7:[2,2],20:[2,39],31:[2,38],37:[2,23],44:[2,18],47:[2,27]},parseError:function(et,K){if(!K.recoverable){var ht=new Error(et);throw ht.hash=K,ht}this.trace(et)},parse:function(et){var K=this,ht=[0],xt=[],St=[null],pt=[],wt=this.table,Ht="",Pt=0,ge=0,pe=0,de=2,Bt=1,Gt=pt.slice.call(arguments,1),oe=Object.create(this.lexer),le={yy:{}};for(var ye in this.yy)Object.prototype.hasOwnProperty.call(this.yy,ye)&&(le.yy[ye]=this.yy[ye]);oe.setInput(et,le.yy),le.yy.lexer=oe,le.yy.parser=this,oe.yylloc===void 0&&(oe.yylloc={});var It=oe.yylloc;pt.push(It);var He=oe.options&&oe.options.ranges;function he(){var Ce;return typeof(Ce=xt.pop()||oe.lex()||Bt)!="number"&&(Ce instanceof Array&&(Ce=(xt=Ce).pop()),Ce=K.symbols_[Ce]||Ce),Ce}typeof le.yy.parseError=="function"?this.parseError=le.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var jt,Kt,ct,te,Dt,Vt,$t,Nt,ie,Qe={};;){if(ct=ht[ht.length-1],this.defaultActions[ct]?te=this.defaultActions[ct]:(jt==null&&(jt=he()),te=wt[ct]&&wt[ct][jt]),te===void 0||!te.length||!te[0]){var be="";for(Vt in ie=[],wt[ct])this.terminals_[Vt]&&Vt>de&&ie.push("'"+this.terminals_[Vt]+"'");be=oe.showPosition?"Parse error on line "+(Pt+1)+`:
|
|
`+oe.showPosition()+`
|
|
Expecting `+ie.join(", ")+", got '"+(this.terminals_[jt]||jt)+"'":"Parse error on line "+(Pt+1)+": Unexpected "+(jt==Bt?"end of input":"'"+(this.terminals_[jt]||jt)+"'"),this.parseError(be,{text:oe.match,token:this.terminals_[jt]||jt,line:oe.yylineno,loc:It,expected:ie})}if(te[0]instanceof Array&&te.length>1)throw new Error("Parse Error: multiple actions possible at state: "+ct+", token: "+jt);switch(te[0]){case 1:ht.push(jt),St.push(oe.yytext),pt.push(oe.yylloc),ht.push(te[1]),jt=null,Kt?(jt=Kt,Kt=null):(ge=oe.yyleng,Ht=oe.yytext,Pt=oe.yylineno,It=oe.yylloc,pe>0);break;case 2:if($t=this.productions_[te[1]][1],Qe.$=St[St.length-$t],Qe._$={first_line:pt[pt.length-($t||1)].first_line,last_line:pt[pt.length-1].last_line,first_column:pt[pt.length-($t||1)].first_column,last_column:pt[pt.length-1].last_column},He&&(Qe._$.range=[pt[pt.length-($t||1)].range[0],pt[pt.length-1].range[1]]),(Dt=this.performAction.apply(Qe,[Ht,ge,Pt,le.yy,te[1],St,pt].concat(Gt)))!==void 0)return Dt;$t&&(ht=ht.slice(0,-1*$t*2),St=St.slice(0,-1*$t),pt=pt.slice(0,-1*$t)),ht.push(this.productions_[te[1]][0]),St.push(Qe.$),pt.push(Qe._$),Nt=wt[ht[ht.length-2]][ht[ht.length-1]],ht.push(Nt);break;case 3:return!0}}return!0}},ut={EOF:1,parseError:function(et,K){if(!this.yy.parser)throw new Error(et);this.yy.parser.parseError(et,K)},setInput:function(et,K){return this.yy=K||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 K=et.length,ht=et.split(/(?:\r\n?|\n)/g);this._input=et+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-K),this.offset-=K;var xt=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),ht.length-1&&(this.yylineno-=ht.length-1);var St=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:ht?(ht.length===xt.length?this.yylloc.first_column:0)+xt[xt.length-ht.length].length-ht[0].length:this.yylloc.first_column-K},this.options.ranges&&(this.yylloc.range=[St[0],St[0]+this.yyleng-K]),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(),K=new Array(et.length+1).join("-");return et+this.upcomingInput()+`
|
|
`+K+"^"},test_match:function(et,K){var ht,xt,St;if(this.options.backtrack_lexer&&(St={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(St.yylloc.range=this.yylloc.range.slice(0))),(xt=et[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=xt.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:xt?xt[xt.length-1].length-xt[xt.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],ht=this.performAction.call(this,this.yy,this,K,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),ht)return ht;if(this._backtrack){for(var pt in St)this[pt]=St[pt];return!1}return!1},next:function(){if(this.done)return this.EOF;var et,K,ht,xt;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var St=this._currentRules(),pt=0;pt<St.length;pt++)if((ht=this._input.match(this.rules[St[pt]]))&&(!K||ht[0].length>K[0].length)){if(K=ht,xt=pt,this.options.backtrack_lexer){if((et=this.test_match(ht,St[pt]))!==!1)return et;if(this._backtrack){K=!1;continue}return!1}if(!this.options.flex)break}return K?(et=this.test_match(K,St[xt]))!==!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,K,ht,xt){switch(ht){case 0:return this.begin("open_directive"),41;case 1:return this.begin("type_directive"),42;case 2:return this.popState(),this.begin("arg_directive"),15;case 3:return this.popState(),this.popState(),44;case 4:return 43;case 5:case 6:case 8:case 13:case 17:break;case 7:return 11;case 9:return 9;case 10:return 40;case 11:return 4;case 12:return this.begin("block"),20;case 14:return 30;case 15:return 29;case 16:return 31;case 18:return this.popState(),22;case 19:case 32:return K.yytext[0];case 20:case 24:return 34;case 21:case 25:return 35;case 22:case 26:return 36;case 23:return 37;case 27:case 29:case 30:return 38;case 28:return 39;case 31:return 23;case 33:return 6}},rules:[/^(?:%%\{)/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:{open_directive:{rules:[1],inclusive:!1},type_directive:{rules:[2,3],inclusive:!1},arg_directive:{rules:[3,4],inclusive:!1},block:{rules:[13,14,15,16,17,18,19],inclusive:!1},INITIAL:{rules:[0,5,6,7,8,9,10,11,12,20,21,22,23,24,25,26,27,28,29,30,31,32,33],inclusive:!0}}};function Ct(){this.yy={}}return rt.lexer=ut,Ct.prototype=rt,rt.Parser=Ct,new Ct}();s.parser=l,s.Parser=l.Parser,s.parse=function(){return l.parse.apply(l,arguments)},s.main=function(c){c[1]||(console.log("Usage: "+c[0]+" FILE"),process.exit(1));var y=o(8009).readFileSync(o(6470).normalize(c[1]),"utf8");return s.parser.parse(y)},o.c[o.s]===r&&s.main(process.argv.slice(1))},3602:(r,s,o)=>{r=o.nmd(r);var l=function(){var c=function(nn,Zn,Mn,Be){for(Mn=Mn||{},Be=nn.length;Be--;Mn[nn[Be]]=Zn);return Mn},y=[1,9],p=[1,7],b=[1,6],T=[1,8],k=[1,20,21,22,23,38,47,59,60,79,80,81,82,83,84,88,98,99,102,104,105,111,112,113,114,115,116,117,118,119,120],D=[2,10],O=[1,20],R=[1,21],z=[1,22],$=[1,23],q=[1,30],V=[1,59],X=[1,45],it=[1,49],tt=[1,33],rt=[1,34],ut=[1,35],Ct=[1,36],et=[1,37],K=[1,53],ht=[1,60],xt=[1,48],St=[1,50],pt=[1,52],wt=[1,56],Ht=[1,57],Pt=[1,38],ge=[1,39],pe=[1,40],de=[1,41],Bt=[1,58],Gt=[1,47],oe=[1,51],le=[1,54],ye=[1,55],It=[1,46],He=[1,63],he=[1,68],jt=[1,20,21,22,23,38,42,47,59,60,79,80,81,82,83,84,88,98,99,102,104,105,111,112,113,114,115,116,117,118,119,120],Kt=[1,72],ct=[1,71],te=[1,73],Dt=[20,21,23,74,75],Vt=[1,94],$t=[1,99],Nt=[1,102],ie=[1,103],Qe=[1,96],be=[1,101],Ce=[1,104],un=[1,97],Ve=[1,109],Le=[1,108],ke=[1,98],Je=[1,100],Ye=[1,105],Ge=[1,106],Ze=[1,107],De=[1,110],zn=[20,21,22,23,74,75],Te=[20,21,22,23,48,74,75],en=[20,21,22,23,40,47,48,50,52,54,56,58,59,60,62,64,66,67,69,74,75,84,88,98,99,102,104,105,115,116,117,118,119,120],_n=[20,21,23],Rr=[20,21,23,47,59,60,74,75,84,88,98,99,102,104,105,115,116,117,118,119,120],bn=[1,12,20,21,22,23,24,38,42,47,59,60,79,80,81,82,83,84,88,98,99,102,104,105,111,112,113,114,115,116,117,118,119,120],Jn=[47,59,60,84,88,98,99,102,104,105,115,116,117,118,119,120],cn=[1,143],yn=[1,151],Xe=[1,152],Cn=[1,153],Tn=[1,154],Un=[1,138],$n=[1,139],Nr=[1,135],En=[1,146],Wn=[1,147],Yn=[1,148],Vn=[1,149],Gn=[1,150],tr=[1,155],On=[1,156],In=[1,141],ln=[1,144],jn=[1,140],mn=[1,137],oi=[20,21,22,23,38,42,47,59,60,79,80,81,82,83,84,88,98,99,102,104,105,111,112,113,114,115,116,117,118,119,120],gr=[1,159],ra=[20,21,22,23,26,47,59,60,84,98,99,102,104,105,115,116,117,118,119,120],Rn=[20,21,22,23,24,26,38,40,41,42,47,51,53,55,57,59,60,61,63,65,66,68,70,74,75,79,80,81,82,83,84,85,88,98,99,102,104,105,106,107,115,116,117,118,119,120],Io=[12,21,22,24],xa=[22,99],si=[1,242],Fr=[1,237],Ur=[1,238],Xr=[1,246],ti=[1,243],Or=[1,240],ei=[1,239],Pr=[1,241],Fi=[1,244],fi=[1,245],er=[1,247],Vr=[1,265],ka=[20,21,23,99],ni=[20,21,22,23,59,60,79,95,98,99,102,103,104,105,106],Ta={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,PS:50,PE:51,"(-":52,"-)":53,STADIUMSTART:54,STADIUMEND:55,SUBROUTINESTART:56,SUBROUTINEEND:57,VERTEX_WITH_PROPS_START:58,ALPHA:59,COLON:60,PIPE:61,CYLINDERSTART:62,CYLINDEREND:63,DIAMOND_START:64,DIAMOND_STOP:65,TAGEND:66,TRAPSTART:67,TRAPEND:68,INVTRAPSTART:69,INVTRAPEND:70,linkStatement:71,arrowText:72,TESTSTR:73,START_LINK:74,LINK:75,textToken:76,STR:77,keywords:78,STYLE:79,LINKSTYLE:80,CLASSDEF:81,CLASS:82,CLICK:83,DOWN:84,UP:85,textNoTags:86,textNoTagsToken:87,DEFAULT:88,stylesOpt:89,alphaNum:90,CALLBACKNAME:91,CALLBACKARGS:92,HREF:93,LINK_TARGET:94,HEX:95,numList:96,INTERPOLATE:97,NUM:98,COMMA:99,style:100,styleComponent:101,MINUS:102,UNIT:103,BRKT:104,DOT:105,PCT:106,TAGSTART:107,alphaNumToken:108,idStringToken:109,alphaNumStatement:110,direction_tb:111,direction_bt:112,direction_rl:113,direction_lr:114,PUNCTUATION:115,UNICODE_TEXT:116,PLUS:117,EQUALS:118,MULT:119,UNDERSCORE:120,graphCodeTokens:121,ARROW_CROSS:122,ARROW_POINT:123,ARROW_CIRCLE:124,ARROW_OPEN:125,QUOTE:126,$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:"PS",51:"PE",52:"(-",53:"-)",54:"STADIUMSTART",55:"STADIUMEND",56:"SUBROUTINESTART",57:"SUBROUTINEEND",58:"VERTEX_WITH_PROPS_START",59:"ALPHA",60:"COLON",61:"PIPE",62:"CYLINDERSTART",63:"CYLINDEREND",64:"DIAMOND_START",65:"DIAMOND_STOP",66:"TAGEND",67:"TRAPSTART",68:"TRAPEND",69:"INVTRAPSTART",70:"INVTRAPEND",73:"TESTSTR",74:"START_LINK",75:"LINK",77:"STR",79:"STYLE",80:"LINKSTYLE",81:"CLASSDEF",82:"CLASS",83:"CLICK",84:"DOWN",85:"UP",88:"DEFAULT",91:"CALLBACKNAME",92:"CALLBACKARGS",93:"HREF",94:"LINK_TARGET",95:"HEX",97:"INTERPOLATE",98:"NUM",99:"COMMA",102:"MINUS",103:"UNIT",104:"BRKT",105:"DOT",106:"PCT",107:"TAGSTART",111:"direction_tb",112:"direction_bt",113:"direction_rl",114:"direction_lr",115:"PUNCTUATION",116:"UNICODE_TEXT",117:"PLUS",118:"EQUALS",119:"MULT",120:"UNDERSCORE",122:"ARROW_CROSS",123:"ARROW_POINT",124:"ARROW_CIRCLE",125:"ARROW_OPEN",126:"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,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],[71,1],[72,3],[39,1],[39,2],[39,1],[78,1],[78,1],[78,1],[78,1],[78,1],[78,1],[78,1],[78,1],[78,1],[78,1],[78,1],[86,1],[86,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],[96,1],[96,3],[89,1],[89,3],[100,1],[100,2],[101,1],[101,1],[101,1],[101,1],[101,1],[101,1],[101,1],[101,1],[101,1],[101,1],[101,1],[76,1],[76,1],[76,1],[76,1],[76,1],[76,1],[87,1],[87,1],[87,1],[87,1],[49,1],[49,2],[90,1],[90,2],[110,1],[110,1],[110,1],[110,1],[43,1],[43,1],[43,1],[43,1],[108,1],[108,1],[108,1],[108,1],[108,1],[108,1],[108,1],[108,1],[108,1],[108,1],[108,1],[108,1],[108,1],[109,1],[109,1],[109,1],[109,1],[109,1],[109,1],[109,1],[109,1],[109,1],[109,1],[109,1],[109,1],[109,1],[109,1],[109,1],[109,1],[121,1],[121,1],[121,1],[121,1],[121,1],[121,1],[121,1],[121,1],[121,1],[121,1],[121,1],[121,1],[121,1],[121,1],[121,1],[121,1],[121,1],[121,1],[121,1],[121,1],[121,1],[121,1],[121,1],[121,1],[121,1],[121,1]],performAction:function(nn,Zn,Mn,Be,Xn,mt,Kr){var Zt=mt.length-1;switch(Xn){case 5:Be.parseDirective("%%{","open_directive");break;case 6:Be.parseDirective(mt[Zt],"type_directive");break;case 7:mt[Zt]=mt[Zt].trim().replace(/'/g,'"'),Be.parseDirective(mt[Zt],"arg_directive");break;case 8:Be.parseDirective("}%%","close_directive","flowchart");break;case 10:case 36:case 37:case 38:case 39:case 40:this.$=[];break;case 11:mt[Zt]!==[]&&mt[Zt-1].push(mt[Zt]),this.$=mt[Zt-1];break;case 12:case 78:case 80:case 92:case 148:case 150:case 151:case 74:case 146:this.$=mt[Zt];break;case 19:Be.setDirection("TB"),this.$="TB";break;case 20:Be.setDirection(mt[Zt-1]),this.$=mt[Zt-1];break;case 35:this.$=mt[Zt-1].nodes;break;case 41:this.$=Be.addSubGraph(mt[Zt-6],mt[Zt-1],mt[Zt-4]);break;case 42:this.$=Be.addSubGraph(mt[Zt-3],mt[Zt-1],mt[Zt-3]);break;case 43:this.$=Be.addSubGraph(void 0,mt[Zt-1],void 0);break;case 48:Be.addLink(mt[Zt-2].stmt,mt[Zt],mt[Zt-1]),this.$={stmt:mt[Zt],nodes:mt[Zt].concat(mt[Zt-2].nodes)};break;case 49:Be.addLink(mt[Zt-3].stmt,mt[Zt-1],mt[Zt-2]),this.$={stmt:mt[Zt-1],nodes:mt[Zt-1].concat(mt[Zt-3].nodes)};break;case 50:this.$={stmt:mt[Zt-1],nodes:mt[Zt-1]};break;case 51:this.$={stmt:mt[Zt],nodes:mt[Zt]};break;case 52:case 119:case 121:this.$=[mt[Zt]];break;case 53:this.$=mt[Zt-4].concat(mt[Zt]);break;case 54:this.$=[mt[Zt-2]],Be.setClass(mt[Zt-2],mt[Zt]);break;case 55:this.$=mt[Zt-3],Be.addVertex(mt[Zt-3],mt[Zt-1],"square");break;case 56:this.$=mt[Zt-5],Be.addVertex(mt[Zt-5],mt[Zt-2],"circle");break;case 57:this.$=mt[Zt-3],Be.addVertex(mt[Zt-3],mt[Zt-1],"ellipse");break;case 58:this.$=mt[Zt-3],Be.addVertex(mt[Zt-3],mt[Zt-1],"stadium");break;case 59:this.$=mt[Zt-3],Be.addVertex(mt[Zt-3],mt[Zt-1],"subroutine");break;case 60:this.$=mt[Zt-7],Be.addVertex(mt[Zt-7],mt[Zt-1],"rect",void 0,void 0,void 0,Object.fromEntries([[mt[Zt-5],mt[Zt-3]]]));break;case 61:this.$=mt[Zt-3],Be.addVertex(mt[Zt-3],mt[Zt-1],"cylinder");break;case 62:this.$=mt[Zt-3],Be.addVertex(mt[Zt-3],mt[Zt-1],"round");break;case 63:this.$=mt[Zt-3],Be.addVertex(mt[Zt-3],mt[Zt-1],"diamond");break;case 64:this.$=mt[Zt-5],Be.addVertex(mt[Zt-5],mt[Zt-2],"hexagon");break;case 65:this.$=mt[Zt-3],Be.addVertex(mt[Zt-3],mt[Zt-1],"odd");break;case 66:this.$=mt[Zt-3],Be.addVertex(mt[Zt-3],mt[Zt-1],"trapezoid");break;case 67:this.$=mt[Zt-3],Be.addVertex(mt[Zt-3],mt[Zt-1],"inv_trapezoid");break;case 68:this.$=mt[Zt-3],Be.addVertex(mt[Zt-3],mt[Zt-1],"lean_right");break;case 69:this.$=mt[Zt-3],Be.addVertex(mt[Zt-3],mt[Zt-1],"lean_left");break;case 70:this.$=mt[Zt],Be.addVertex(mt[Zt]);break;case 71:mt[Zt-1].text=mt[Zt],this.$=mt[Zt-1];break;case 72:case 73:mt[Zt-2].text=mt[Zt-1],this.$=mt[Zt-2];break;case 75:var Pi=Be.destructLink(mt[Zt],mt[Zt-2]);this.$={type:Pi.type,stroke:Pi.stroke,length:Pi.length,text:mt[Zt-1]};break;case 76:Pi=Be.destructLink(mt[Zt]),this.$={type:Pi.type,stroke:Pi.stroke,length:Pi.length};break;case 77:this.$=mt[Zt-1];break;case 79:case 93:case 149:case 147:this.$=mt[Zt-1]+""+mt[Zt];break;case 94:case 95:this.$=mt[Zt-4],Be.addClass(mt[Zt-2],mt[Zt]);break;case 96:this.$=mt[Zt-4],Be.setClass(mt[Zt-2],mt[Zt]);break;case 97:case 105:this.$=mt[Zt-1],Be.setClickEvent(mt[Zt-1],mt[Zt]);break;case 98:case 106:this.$=mt[Zt-3],Be.setClickEvent(mt[Zt-3],mt[Zt-2]),Be.setTooltip(mt[Zt-3],mt[Zt]);break;case 99:this.$=mt[Zt-2],Be.setClickEvent(mt[Zt-2],mt[Zt-1],mt[Zt]);break;case 100:this.$=mt[Zt-4],Be.setClickEvent(mt[Zt-4],mt[Zt-3],mt[Zt-2]),Be.setTooltip(mt[Zt-4],mt[Zt]);break;case 101:case 107:this.$=mt[Zt-1],Be.setLink(mt[Zt-1],mt[Zt]);break;case 102:case 108:this.$=mt[Zt-3],Be.setLink(mt[Zt-3],mt[Zt-2]),Be.setTooltip(mt[Zt-3],mt[Zt]);break;case 103:case 109:this.$=mt[Zt-3],Be.setLink(mt[Zt-3],mt[Zt-2],mt[Zt]);break;case 104:case 110:this.$=mt[Zt-5],Be.setLink(mt[Zt-5],mt[Zt-4],mt[Zt]),Be.setTooltip(mt[Zt-5],mt[Zt-2]);break;case 111:this.$=mt[Zt-4],Be.addVertex(mt[Zt-2],void 0,void 0,mt[Zt]);break;case 112:case 114:this.$=mt[Zt-4],Be.updateLink(mt[Zt-2],mt[Zt]);break;case 113:this.$=mt[Zt-4],Be.updateLink([mt[Zt-2]],mt[Zt]);break;case 115:this.$=mt[Zt-8],Be.updateLinkInterpolate([mt[Zt-6]],mt[Zt-2]),Be.updateLink([mt[Zt-6]],mt[Zt]);break;case 116:this.$=mt[Zt-8],Be.updateLinkInterpolate(mt[Zt-6],mt[Zt-2]),Be.updateLink(mt[Zt-6],mt[Zt]);break;case 117:this.$=mt[Zt-6],Be.updateLinkInterpolate([mt[Zt-4]],mt[Zt]);break;case 118:this.$=mt[Zt-6],Be.updateLinkInterpolate(mt[Zt-4],mt[Zt]);break;case 120:case 122:mt[Zt-2].push(mt[Zt]),this.$=mt[Zt-2];break;case 124:this.$=mt[Zt-1]+mt[Zt];break;case 152:this.$="v";break;case 153:this.$="-";break;case 154:this.$={stmt:"dir",value:"TB"};break;case 155:this.$={stmt:"dir",value:"BT"};break;case 156:this.$={stmt:"dir",value:"RL"};break;case 157:this.$={stmt:"dir",value:"LR"}}},table:[{3:1,4:2,5:3,6:5,12:y,16:4,21:p,22:b,24:T},{1:[3]},{1:[2,1]},{3:10,4:2,5:3,6:5,12:y,16:4,21:p,22:b,24:T},c(k,D,{17:11}),{7:12,13:[1,13]},{16:14,21:p,22:b,24:T},{16:15,21:p,22:b,24:T},{25:[1,16],26:[1,17]},{13:[2,5]},{1:[2,2]},{1:[2,9],18:18,19:19,20:O,21:R,22:z,23:$,32:24,33:25,34:26,35:27,36:28,37:29,38:q,43:31,45:32,46:42,47:V,49:43,59:X,60:it,79:tt,80:rt,81:ut,82:Ct,83:et,84:K,88:ht,98:xt,99:St,102:pt,104:wt,105:Ht,109:44,111:Pt,112:ge,113:pe,114:de,115:Bt,116:Gt,117:oe,118:le,119:ye,120:It},{8:61,10:[1,62],15:He},c([10,15],[2,6]),c(k,[2,17]),c(k,[2,18]),c(k,[2,19]),{20:[1,65],21:[1,66],22:he,27:64,30:67},c(jt,[2,11]),c(jt,[2,12]),c(jt,[2,13]),c(jt,[2,14]),c(jt,[2,15]),c(jt,[2,16]),{9:69,20:Kt,21:ct,23:te,44:70,71:74,74:[1,75],75:[1,76]},{9:77,20:Kt,21:ct,23:te},{9:78,20:Kt,21:ct,23:te},{9:79,20:Kt,21:ct,23:te},{9:80,20:Kt,21:ct,23:te},{9:81,20:Kt,21:ct,23:te},{9:83,20:Kt,21:ct,22:[1,82],23:te},c(jt,[2,44]),c(Dt,[2,51],{30:84,22:he}),{22:[1,85]},{22:[1,86]},{22:[1,87]},{22:[1,88]},{26:Vt,47:$t,59:Nt,60:ie,77:[1,92],84:Qe,90:91,91:[1,89],93:[1,90],98:be,99:Ce,102:un,104:Ve,105:Le,108:95,110:93,115:ke,116:Je,117:Ye,118:Ge,119:Ze,120:De},c(jt,[2,154]),c(jt,[2,155]),c(jt,[2,156]),c(jt,[2,157]),c(zn,[2,52],{48:[1,111]}),c(Te,[2,70],{109:123,40:[1,112],47:V,50:[1,113],52:[1,114],54:[1,115],56:[1,116],58:[1,117],59:X,60:it,62:[1,118],64:[1,119],66:[1,120],67:[1,121],69:[1,122],84:K,88:ht,98:xt,99:St,102:pt,104:wt,105:Ht,115:Bt,116:Gt,117:oe,118:le,119:ye,120:It}),c(en,[2,146]),c(en,[2,171]),c(en,[2,172]),c(en,[2,173]),c(en,[2,174]),c(en,[2,175]),c(en,[2,176]),c(en,[2,177]),c(en,[2,178]),c(en,[2,179]),c(en,[2,180]),c(en,[2,181]),c(en,[2,182]),c(en,[2,183]),c(en,[2,184]),c(en,[2,185]),c(en,[2,186]),{9:124,20:Kt,21:ct,23:te},{11:125,14:[1,126]},c(_n,[2,8]),c(k,[2,20]),c(k,[2,26]),c(k,[2,27]),{21:[1,127]},c(Rr,[2,34],{30:128,22:he}),c(jt,[2,35]),{45:129,46:42,47:V,49:43,59:X,60:it,84:K,88:ht,98:xt,99:St,102:pt,104:wt,105:Ht,109:44,115:Bt,116:Gt,117:oe,118:le,119:ye,120:It},c(bn,[2,45]),c(bn,[2,46]),c(bn,[2,47]),c(Jn,[2,74],{72:130,61:[1,132],73:[1,131]}),{22:cn,24:yn,26:Xe,38:Cn,39:133,42:Tn,47:$t,59:Nt,60:ie,66:Un,74:$n,76:134,77:Nr,78:145,79:En,80:Wn,81:Yn,82:Vn,83:Gn,84:tr,85:On,87:136,88:In,98:be,99:Ce,102:ln,104:Ve,105:Le,106:jn,107:mn,108:142,115:ke,116:Je,117:Ye,118:Ge,119:Ze,120:De},c([47,59,60,61,73,84,88,98,99,102,104,105,115,116,117,118,119,120],[2,76]),c(jt,[2,36]),c(jt,[2,37]),c(jt,[2,38]),c(jt,[2,39]),c(jt,[2,40]),{22:cn,24:yn,26:Xe,38:Cn,39:157,42:Tn,47:$t,59:Nt,60:ie,66:Un,74:$n,76:134,77:Nr,78:145,79:En,80:Wn,81:Yn,82:Vn,83:Gn,84:tr,85:On,87:136,88:In,98:be,99:Ce,102:ln,104:Ve,105:Le,106:jn,107:mn,108:142,115:ke,116:Je,117:Ye,118:Ge,119:Ze,120:De},c(oi,D,{17:158}),c(Dt,[2,50],{47:gr}),{26:Vt,47:$t,59:Nt,60:ie,84:Qe,90:160,95:[1,161],98:be,99:Ce,102:un,104:Ve,105:Le,108:95,110:93,115:ke,116:Je,117:Ye,118:Ge,119:Ze,120:De},{88:[1,162],96:163,98:[1,164]},{26:Vt,47:$t,59:Nt,60:ie,84:Qe,88:[1,165],90:166,98:be,99:Ce,102:un,104:Ve,105:Le,108:95,110:93,115:ke,116:Je,117:Ye,118:Ge,119:Ze,120:De},{26:Vt,47:$t,59:Nt,60:ie,84:Qe,90:167,98:be,99:Ce,102:un,104:Ve,105:Le,108:95,110:93,115:ke,116:Je,117:Ye,118:Ge,119:Ze,120:De},c(_n,[2,97],{22:[1,168],92:[1,169]}),c(_n,[2,101],{22:[1,170]}),c(_n,[2,105],{108:95,110:172,22:[1,171],26:Vt,47:$t,59:Nt,60:ie,84:Qe,98:be,99:Ce,102:un,104:Ve,105:Le,115:ke,116:Je,117:Ye,118:Ge,119:Ze,120:De}),c(_n,[2,107],{22:[1,173]}),c(ra,[2,148]),c(ra,[2,150]),c(ra,[2,151]),c(ra,[2,152]),c(ra,[2,153]),c(Rn,[2,158]),c(Rn,[2,159]),c(Rn,[2,160]),c(Rn,[2,161]),c(Rn,[2,162]),c(Rn,[2,163]),c(Rn,[2,164]),c(Rn,[2,165]),c(Rn,[2,166]),c(Rn,[2,167]),c(Rn,[2,168]),c(Rn,[2,169]),c(Rn,[2,170]),{47:V,49:174,59:X,60:it,84:K,88:ht,98:xt,99:St,102:pt,104:wt,105:Ht,109:44,115:Bt,116:Gt,117:oe,118:le,119:ye,120:It},{22:cn,24:yn,26:Xe,38:Cn,39:175,42:Tn,47:$t,59:Nt,60:ie,66:Un,74:$n,76:134,77:Nr,78:145,79:En,80:Wn,81:Yn,82:Vn,83:Gn,84:tr,85:On,87:136,88:In,98:be,99:Ce,102:ln,104:Ve,105:Le,106:jn,107:mn,108:142,115:ke,116:Je,117:Ye,118:Ge,119:Ze,120:De},{22:cn,24:yn,26:Xe,38:Cn,39:177,42:Tn,47:$t,50:[1,176],59:Nt,60:ie,66:Un,74:$n,76:134,77:Nr,78:145,79:En,80:Wn,81:Yn,82:Vn,83:Gn,84:tr,85:On,87:136,88:In,98:be,99:Ce,102:ln,104:Ve,105:Le,106:jn,107:mn,108:142,115:ke,116:Je,117:Ye,118:Ge,119:Ze,120:De},{22:cn,24:yn,26:Xe,38:Cn,39:178,42:Tn,47:$t,59:Nt,60:ie,66:Un,74:$n,76:134,77:Nr,78:145,79:En,80:Wn,81:Yn,82:Vn,83:Gn,84:tr,85:On,87:136,88:In,98:be,99:Ce,102:ln,104:Ve,105:Le,106:jn,107:mn,108:142,115:ke,116:Je,117:Ye,118:Ge,119:Ze,120:De},{22:cn,24:yn,26:Xe,38:Cn,39:179,42:Tn,47:$t,59:Nt,60:ie,66:Un,74:$n,76:134,77:Nr,78:145,79:En,80:Wn,81:Yn,82:Vn,83:Gn,84:tr,85:On,87:136,88:In,98:be,99:Ce,102:ln,104:Ve,105:Le,106:jn,107:mn,108:142,115:ke,116:Je,117:Ye,118:Ge,119:Ze,120:De},{22:cn,24:yn,26:Xe,38:Cn,39:180,42:Tn,47:$t,59:Nt,60:ie,66:Un,74:$n,76:134,77:Nr,78:145,79:En,80:Wn,81:Yn,82:Vn,83:Gn,84:tr,85:On,87:136,88:In,98:be,99:Ce,102:ln,104:Ve,105:Le,106:jn,107:mn,108:142,115:ke,116:Je,117:Ye,118:Ge,119:Ze,120:De},{59:[1,181]},{22:cn,24:yn,26:Xe,38:Cn,39:182,42:Tn,47:$t,59:Nt,60:ie,66:Un,74:$n,76:134,77:Nr,78:145,79:En,80:Wn,81:Yn,82:Vn,83:Gn,84:tr,85:On,87:136,88:In,98:be,99:Ce,102:ln,104:Ve,105:Le,106:jn,107:mn,108:142,115:ke,116:Je,117:Ye,118:Ge,119:Ze,120:De},{22:cn,24:yn,26:Xe,38:Cn,39:183,42:Tn,47:$t,59:Nt,60:ie,64:[1,184],66:Un,74:$n,76:134,77:Nr,78:145,79:En,80:Wn,81:Yn,82:Vn,83:Gn,84:tr,85:On,87:136,88:In,98:be,99:Ce,102:ln,104:Ve,105:Le,106:jn,107:mn,108:142,115:ke,116:Je,117:Ye,118:Ge,119:Ze,120:De},{22:cn,24:yn,26:Xe,38:Cn,39:185,42:Tn,47:$t,59:Nt,60:ie,66:Un,74:$n,76:134,77:Nr,78:145,79:En,80:Wn,81:Yn,82:Vn,83:Gn,84:tr,85:On,87:136,88:In,98:be,99:Ce,102:ln,104:Ve,105:Le,106:jn,107:mn,108:142,115:ke,116:Je,117:Ye,118:Ge,119:Ze,120:De},{22:cn,24:yn,26:Xe,38:Cn,39:186,42:Tn,47:$t,59:Nt,60:ie,66:Un,74:$n,76:134,77:Nr,78:145,79:En,80:Wn,81:Yn,82:Vn,83:Gn,84:tr,85:On,87:136,88:In,98:be,99:Ce,102:ln,104:Ve,105:Le,106:jn,107:mn,108:142,115:ke,116:Je,117:Ye,118:Ge,119:Ze,120:De},{22:cn,24:yn,26:Xe,38:Cn,39:187,42:Tn,47:$t,59:Nt,60:ie,66:Un,74:$n,76:134,77:Nr,78:145,79:En,80:Wn,81:Yn,82:Vn,83:Gn,84:tr,85:On,87:136,88:In,98:be,99:Ce,102:ln,104:Ve,105:Le,106:jn,107:mn,108:142,115:ke,116:Je,117:Ye,118:Ge,119:Ze,120:De},c(en,[2,147]),c(Io,[2,3]),{8:188,15:He},{15:[2,7]},c(k,[2,28]),c(Rr,[2,33]),c(Dt,[2,48],{30:189,22:he}),c(Jn,[2,71],{22:[1,190]}),{22:[1,191]},{22:cn,24:yn,26:Xe,38:Cn,39:192,42:Tn,47:$t,59:Nt,60:ie,66:Un,74:$n,76:134,77:Nr,78:145,79:En,80:Wn,81:Yn,82:Vn,83:Gn,84:tr,85:On,87:136,88:In,98:be,99:Ce,102:ln,104:Ve,105:Le,106:jn,107:mn,108:142,115:ke,116:Je,117:Ye,118:Ge,119:Ze,120:De},{22:cn,24:yn,26:Xe,38:Cn,42:Tn,47:$t,59:Nt,60:ie,66:Un,74:$n,75:[1,193],76:194,78:145,79:En,80:Wn,81:Yn,82:Vn,83:Gn,84:tr,85:On,87:136,88:In,98:be,99:Ce,102:ln,104:Ve,105:Le,106:jn,107:mn,108:142,115:ke,116:Je,117:Ye,118:Ge,119:Ze,120:De},c(Rn,[2,78]),c(Rn,[2,80]),c(Rn,[2,136]),c(Rn,[2,137]),c(Rn,[2,138]),c(Rn,[2,139]),c(Rn,[2,140]),c(Rn,[2,141]),c(Rn,[2,142]),c(Rn,[2,143]),c(Rn,[2,144]),c(Rn,[2,145]),c(Rn,[2,81]),c(Rn,[2,82]),c(Rn,[2,83]),c(Rn,[2,84]),c(Rn,[2,85]),c(Rn,[2,86]),c(Rn,[2,87]),c(Rn,[2,88]),c(Rn,[2,89]),c(Rn,[2,90]),c(Rn,[2,91]),{9:196,20:Kt,21:ct,22:cn,23:te,24:yn,26:Xe,38:Cn,40:[1,195],42:Tn,47:$t,59:Nt,60:ie,66:Un,74:$n,76:194,78:145,79:En,80:Wn,81:Yn,82:Vn,83:Gn,84:tr,85:On,87:136,88:In,98:be,99:Ce,102:ln,104:Ve,105:Le,106:jn,107:mn,108:142,115:ke,116:Je,117:Ye,118:Ge,119:Ze,120:De},{18:18,19:19,20:O,21:R,22:z,23:$,32:24,33:25,34:26,35:27,36:28,37:29,38:q,42:[1,197],43:31,45:32,46:42,47:V,49:43,59:X,60:it,79:tt,80:rt,81:ut,82:Ct,83:et,84:K,88:ht,98:xt,99:St,102:pt,104:wt,105:Ht,109:44,111:Pt,112:ge,113:pe,114:de,115:Bt,116:Gt,117:oe,118:le,119:ye,120:It},{22:he,30:198},{22:[1,199],26:Vt,47:$t,59:Nt,60:ie,84:Qe,98:be,99:Ce,102:un,104:Ve,105:Le,108:95,110:172,115:ke,116:Je,117:Ye,118:Ge,119:Ze,120:De},{22:[1,200]},{22:[1,201]},{22:[1,202],99:[1,203]},c(xa,[2,119]),{22:[1,204]},{22:[1,205],26:Vt,47:$t,59:Nt,60:ie,84:Qe,98:be,99:Ce,102:un,104:Ve,105:Le,108:95,110:172,115:ke,116:Je,117:Ye,118:Ge,119:Ze,120:De},{22:[1,206],26:Vt,47:$t,59:Nt,60:ie,84:Qe,98:be,99:Ce,102:un,104:Ve,105:Le,108:95,110:172,115:ke,116:Je,117:Ye,118:Ge,119:Ze,120:De},{77:[1,207]},c(_n,[2,99],{22:[1,208]}),{77:[1,209],94:[1,210]},{77:[1,211]},c(ra,[2,149]),{77:[1,212],94:[1,213]},c(zn,[2,54],{109:123,47:V,59:X,60:it,84:K,88:ht,98:xt,99:St,102:pt,104:wt,105:Ht,115:Bt,116:Gt,117:oe,118:le,119:ye,120:It}),{22:cn,24:yn,26:Xe,38:Cn,41:[1,214],42:Tn,47:$t,59:Nt,60:ie,66:Un,74:$n,76:194,78:145,79:En,80:Wn,81:Yn,82:Vn,83:Gn,84:tr,85:On,87:136,88:In,98:be,99:Ce,102:ln,104:Ve,105:Le,106:jn,107:mn,108:142,115:ke,116:Je,117:Ye,118:Ge,119:Ze,120:De},{22:cn,24:yn,26:Xe,38:Cn,39:215,42:Tn,47:$t,59:Nt,60:ie,66:Un,74:$n,76:134,77:Nr,78:145,79:En,80:Wn,81:Yn,82:Vn,83:Gn,84:tr,85:On,87:136,88:In,98:be,99:Ce,102:ln,104:Ve,105:Le,106:jn,107:mn,108:142,115:ke,116:Je,117:Ye,118:Ge,119:Ze,120:De},{22:cn,24:yn,26:Xe,38:Cn,42:Tn,47:$t,51:[1,216],59:Nt,60:ie,66:Un,74:$n,76:194,78:145,79:En,80:Wn,81:Yn,82:Vn,83:Gn,84:tr,85:On,87:136,88:In,98:be,99:Ce,102:ln,104:Ve,105:Le,106:jn,107:mn,108:142,115:ke,116:Je,117:Ye,118:Ge,119:Ze,120:De},{22:cn,24:yn,26:Xe,38:Cn,42:Tn,47:$t,53:[1,217],59:Nt,60:ie,66:Un,74:$n,76:194,78:145,79:En,80:Wn,81:Yn,82:Vn,83:Gn,84:tr,85:On,87:136,88:In,98:be,99:Ce,102:ln,104:Ve,105:Le,106:jn,107:mn,108:142,115:ke,116:Je,117:Ye,118:Ge,119:Ze,120:De},{22:cn,24:yn,26:Xe,38:Cn,42:Tn,47:$t,55:[1,218],59:Nt,60:ie,66:Un,74:$n,76:194,78:145,79:En,80:Wn,81:Yn,82:Vn,83:Gn,84:tr,85:On,87:136,88:In,98:be,99:Ce,102:ln,104:Ve,105:Le,106:jn,107:mn,108:142,115:ke,116:Je,117:Ye,118:Ge,119:Ze,120:De},{22:cn,24:yn,26:Xe,38:Cn,42:Tn,47:$t,57:[1,219],59:Nt,60:ie,66:Un,74:$n,76:194,78:145,79:En,80:Wn,81:Yn,82:Vn,83:Gn,84:tr,85:On,87:136,88:In,98:be,99:Ce,102:ln,104:Ve,105:Le,106:jn,107:mn,108:142,115:ke,116:Je,117:Ye,118:Ge,119:Ze,120:De},{60:[1,220]},{22:cn,24:yn,26:Xe,38:Cn,42:Tn,47:$t,59:Nt,60:ie,63:[1,221],66:Un,74:$n,76:194,78:145,79:En,80:Wn,81:Yn,82:Vn,83:Gn,84:tr,85:On,87:136,88:In,98:be,99:Ce,102:ln,104:Ve,105:Le,106:jn,107:mn,108:142,115:ke,116:Je,117:Ye,118:Ge,119:Ze,120:De},{22:cn,24:yn,26:Xe,38:Cn,42:Tn,47:$t,59:Nt,60:ie,65:[1,222],66:Un,74:$n,76:194,78:145,79:En,80:Wn,81:Yn,82:Vn,83:Gn,84:tr,85:On,87:136,88:In,98:be,99:Ce,102:ln,104:Ve,105:Le,106:jn,107:mn,108:142,115:ke,116:Je,117:Ye,118:Ge,119:Ze,120:De},{22:cn,24:yn,26:Xe,38:Cn,39:223,42:Tn,47:$t,59:Nt,60:ie,66:Un,74:$n,76:134,77:Nr,78:145,79:En,80:Wn,81:Yn,82:Vn,83:Gn,84:tr,85:On,87:136,88:In,98:be,99:Ce,102:ln,104:Ve,105:Le,106:jn,107:mn,108:142,115:ke,116:Je,117:Ye,118:Ge,119:Ze,120:De},{22:cn,24:yn,26:Xe,38:Cn,41:[1,224],42:Tn,47:$t,59:Nt,60:ie,66:Un,74:$n,76:194,78:145,79:En,80:Wn,81:Yn,82:Vn,83:Gn,84:tr,85:On,87:136,88:In,98:be,99:Ce,102:ln,104:Ve,105:Le,106:jn,107:mn,108:142,115:ke,116:Je,117:Ye,118:Ge,119:Ze,120:De},{22:cn,24:yn,26:Xe,38:Cn,42:Tn,47:$t,59:Nt,60:ie,66:Un,68:[1,225],70:[1,226],74:$n,76:194,78:145,79:En,80:Wn,81:Yn,82:Vn,83:Gn,84:tr,85:On,87:136,88:In,98:be,99:Ce,102:ln,104:Ve,105:Le,106:jn,107:mn,108:142,115:ke,116:Je,117:Ye,118:Ge,119:Ze,120:De},{22:cn,24:yn,26:Xe,38:Cn,42:Tn,47:$t,59:Nt,60:ie,66:Un,68:[1,228],70:[1,227],74:$n,76:194,78:145,79:En,80:Wn,81:Yn,82:Vn,83:Gn,84:tr,85:On,87:136,88:In,98:be,99:Ce,102:ln,104:Ve,105:Le,106:jn,107:mn,108:142,115:ke,116:Je,117:Ye,118:Ge,119:Ze,120:De},{9:229,20:Kt,21:ct,23:te},c(Dt,[2,49],{47:gr}),c(Jn,[2,73]),c(Jn,[2,72]),{22:cn,24:yn,26:Xe,38:Cn,42:Tn,47:$t,59:Nt,60:ie,61:[1,230],66:Un,74:$n,76:194,78:145,79:En,80:Wn,81:Yn,82:Vn,83:Gn,84:tr,85:On,87:136,88:In,98:be,99:Ce,102:ln,104:Ve,105:Le,106:jn,107:mn,108:142,115:ke,116:Je,117:Ye,118:Ge,119:Ze,120:De},c(Jn,[2,75]),c(Rn,[2,79]),{22:cn,24:yn,26:Xe,38:Cn,39:231,42:Tn,47:$t,59:Nt,60:ie,66:Un,74:$n,76:134,77:Nr,78:145,79:En,80:Wn,81:Yn,82:Vn,83:Gn,84:tr,85:On,87:136,88:In,98:be,99:Ce,102:ln,104:Ve,105:Le,106:jn,107:mn,108:142,115:ke,116:Je,117:Ye,118:Ge,119:Ze,120:De},c(oi,D,{17:232}),c(jt,[2,43]),{46:233,47:V,49:43,59:X,60:it,84:K,88:ht,98:xt,99:St,102:pt,104:wt,105:Ht,109:44,115:Bt,116:Gt,117:oe,118:le,119:ye,120:It},{22:si,59:Fr,60:Ur,79:Xr,89:234,95:ti,98:Or,100:235,101:236,102:ei,103:Pr,104:Fi,105:fi,106:er},{22:si,59:Fr,60:Ur,79:Xr,89:248,95:ti,98:Or,100:235,101:236,102:ei,103:Pr,104:Fi,105:fi,106:er},{22:si,59:Fr,60:Ur,79:Xr,89:249,95:ti,97:[1,250],98:Or,100:235,101:236,102:ei,103:Pr,104:Fi,105:fi,106:er},{22:si,59:Fr,60:Ur,79:Xr,89:251,95:ti,97:[1,252],98:Or,100:235,101:236,102:ei,103:Pr,104:Fi,105:fi,106:er},{98:[1,253]},{22:si,59:Fr,60:Ur,79:Xr,89:254,95:ti,98:Or,100:235,101:236,102:ei,103:Pr,104:Fi,105:fi,106:er},{22:si,59:Fr,60:Ur,79:Xr,89:255,95:ti,98:Or,100:235,101:236,102:ei,103:Pr,104:Fi,105:fi,106:er},{26:Vt,47:$t,59:Nt,60:ie,84:Qe,90:256,98:be,99:Ce,102:un,104:Ve,105:Le,108:95,110:93,115:ke,116:Je,117:Ye,118:Ge,119:Ze,120:De},c(_n,[2,98]),{77:[1,257]},c(_n,[2,102],{22:[1,258]}),c(_n,[2,103]),c(_n,[2,106]),c(_n,[2,108],{22:[1,259]}),c(_n,[2,109]),c(Te,[2,55]),{22:cn,24:yn,26:Xe,38:Cn,42:Tn,47:$t,51:[1,260],59:Nt,60:ie,66:Un,74:$n,76:194,78:145,79:En,80:Wn,81:Yn,82:Vn,83:Gn,84:tr,85:On,87:136,88:In,98:be,99:Ce,102:ln,104:Ve,105:Le,106:jn,107:mn,108:142,115:ke,116:Je,117:Ye,118:Ge,119:Ze,120:De},c(Te,[2,62]),c(Te,[2,57]),c(Te,[2,58]),c(Te,[2,59]),{59:[1,261]},c(Te,[2,61]),c(Te,[2,63]),{22:cn,24:yn,26:Xe,38:Cn,42:Tn,47:$t,59:Nt,60:ie,65:[1,262],66:Un,74:$n,76:194,78:145,79:En,80:Wn,81:Yn,82:Vn,83:Gn,84:tr,85:On,87:136,88:In,98:be,99:Ce,102:ln,104:Ve,105:Le,106:jn,107:mn,108:142,115:ke,116:Je,117:Ye,118:Ge,119:Ze,120:De},c(Te,[2,65]),c(Te,[2,66]),c(Te,[2,68]),c(Te,[2,67]),c(Te,[2,69]),c(Io,[2,4]),c([22,47,59,60,84,88,98,99,102,104,105,115,116,117,118,119,120],[2,77]),{22:cn,24:yn,26:Xe,38:Cn,41:[1,263],42:Tn,47:$t,59:Nt,60:ie,66:Un,74:$n,76:194,78:145,79:En,80:Wn,81:Yn,82:Vn,83:Gn,84:tr,85:On,87:136,88:In,98:be,99:Ce,102:ln,104:Ve,105:Le,106:jn,107:mn,108:142,115:ke,116:Je,117:Ye,118:Ge,119:Ze,120:De},{18:18,19:19,20:O,21:R,22:z,23:$,32:24,33:25,34:26,35:27,36:28,37:29,38:q,42:[1,264],43:31,45:32,46:42,47:V,49:43,59:X,60:it,79:tt,80:rt,81:ut,82:Ct,83:et,84:K,88:ht,98:xt,99:St,102:pt,104:wt,105:Ht,109:44,111:Pt,112:ge,113:pe,114:de,115:Bt,116:Gt,117:oe,118:le,119:ye,120:It},c(zn,[2,53]),c(_n,[2,111],{99:Vr}),c(ka,[2,121],{101:266,22:si,59:Fr,60:Ur,79:Xr,95:ti,98:Or,102:ei,103:Pr,104:Fi,105:fi,106:er}),c(ni,[2,123]),c(ni,[2,125]),c(ni,[2,126]),c(ni,[2,127]),c(ni,[2,128]),c(ni,[2,129]),c(ni,[2,130]),c(ni,[2,131]),c(ni,[2,132]),c(ni,[2,133]),c(ni,[2,134]),c(ni,[2,135]),c(_n,[2,112],{99:Vr}),c(_n,[2,113],{99:Vr}),{22:[1,267]},c(_n,[2,114],{99:Vr}),{22:[1,268]},c(xa,[2,120]),c(_n,[2,94],{99:Vr}),c(_n,[2,95],{99:Vr}),c(_n,[2,96],{108:95,110:172,26:Vt,47:$t,59:Nt,60:ie,84:Qe,98:be,99:Ce,102:un,104:Ve,105:Le,115:ke,116:Je,117:Ye,118:Ge,119:Ze,120:De}),c(_n,[2,100]),{94:[1,269]},{94:[1,270]},{51:[1,271]},{61:[1,272]},{65:[1,273]},{9:274,20:Kt,21:ct,23:te},c(jt,[2,42]),{22:si,59:Fr,60:Ur,79:Xr,95:ti,98:Or,100:275,101:236,102:ei,103:Pr,104:Fi,105:fi,106:er},c(ni,[2,124]),{26:Vt,47:$t,59:Nt,60:ie,84:Qe,90:276,98:be,99:Ce,102:un,104:Ve,105:Le,108:95,110:93,115:ke,116:Je,117:Ye,118:Ge,119:Ze,120:De},{26:Vt,47:$t,59:Nt,60:ie,84:Qe,90:277,98:be,99:Ce,102:un,104:Ve,105:Le,108:95,110:93,115:ke,116:Je,117:Ye,118:Ge,119:Ze,120:De},c(_n,[2,104]),c(_n,[2,110]),c(Te,[2,56]),{22:cn,24:yn,26:Xe,38:Cn,39:278,42:Tn,47:$t,59:Nt,60:ie,66:Un,74:$n,76:134,77:Nr,78:145,79:En,80:Wn,81:Yn,82:Vn,83:Gn,84:tr,85:On,87:136,88:In,98:be,99:Ce,102:ln,104:Ve,105:Le,106:jn,107:mn,108:142,115:ke,116:Je,117:Ye,118:Ge,119:Ze,120:De},c(Te,[2,64]),c(oi,D,{17:279}),c(ka,[2,122],{101:266,22:si,59:Fr,60:Ur,79:Xr,95:ti,98:Or,102:ei,103:Pr,104:Fi,105:fi,106:er}),c(_n,[2,117],{108:95,110:172,22:[1,280],26:Vt,47:$t,59:Nt,60:ie,84:Qe,98:be,99:Ce,102:un,104:Ve,105:Le,115:ke,116:Je,117:Ye,118:Ge,119:Ze,120:De}),c(_n,[2,118],{108:95,110:172,22:[1,281],26:Vt,47:$t,59:Nt,60:ie,84:Qe,98:be,99:Ce,102:un,104:Ve,105:Le,115:ke,116:Je,117:Ye,118:Ge,119:Ze,120:De}),{22:cn,24:yn,26:Xe,38:Cn,41:[1,282],42:Tn,47:$t,59:Nt,60:ie,66:Un,74:$n,76:194,78:145,79:En,80:Wn,81:Yn,82:Vn,83:Gn,84:tr,85:On,87:136,88:In,98:be,99:Ce,102:ln,104:Ve,105:Le,106:jn,107:mn,108:142,115:ke,116:Je,117:Ye,118:Ge,119:Ze,120:De},{18:18,19:19,20:O,21:R,22:z,23:$,32:24,33:25,34:26,35:27,36:28,37:29,38:q,42:[1,283],43:31,45:32,46:42,47:V,49:43,59:X,60:it,79:tt,80:rt,81:ut,82:Ct,83:et,84:K,88:ht,98:xt,99:St,102:pt,104:wt,105:Ht,109:44,111:Pt,112:ge,113:pe,114:de,115:Bt,116:Gt,117:oe,118:le,119:ye,120:It},{22:si,59:Fr,60:Ur,79:Xr,89:284,95:ti,98:Or,100:235,101:236,102:ei,103:Pr,104:Fi,105:fi,106:er},{22:si,59:Fr,60:Ur,79:Xr,89:285,95:ti,98:Or,100:235,101:236,102:ei,103:Pr,104:Fi,105:fi,106:er},c(Te,[2,60]),c(jt,[2,41]),c(_n,[2,115],{99:Vr}),c(_n,[2,116],{99:Vr})],defaultActions:{2:[2,1],9:[2,5],10:[2,2],126:[2,7]},parseError:function(nn,Zn){if(!Zn.recoverable){var Mn=new Error(nn);throw Mn.hash=Zn,Mn}this.trace(nn)},parse:function(nn){var Zn=this,Mn=[0],Be=[],Xn=[null],mt=[],Kr=this.table,Zt="",Pi=0,ya=0,eo=0,ko=2,Ro=1,Fo=mt.slice.call(arguments,1),Gr=Object.create(this.lexer),ia={yy:{}};for(var Dn in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Dn)&&(ia.yy[Dn]=this.yy[Dn]);Gr.setInput(nn,ia.yy),ia.yy.lexer=Gr,ia.yy.parser=this,Gr.yylloc===void 0&&(Gr.yylloc={});var Ua=Gr.yylloc;mt.push(Ua);var no=Gr.options&&Gr.options.ranges;function yr(){var Ft;return typeof(Ft=Be.pop()||Gr.lex()||Ro)!="number"&&(Ft instanceof Array&&(Ft=(Be=Ft).pop()),Ft=Zn.symbols_[Ft]||Ft),Ft}typeof ia.yy.parseError=="function"?this.parseError=ia.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var Cr,ki,ri,$r,Hr,pi,Qr,aa,Gi,Yi={};;){if(ri=Mn[Mn.length-1],this.defaultActions[ri]?$r=this.defaultActions[ri]:(Cr==null&&(Cr=yr()),$r=Kr[ri]&&Kr[ri][Cr]),$r===void 0||!$r.length||!$r[0]){var To="";for(pi in Gi=[],Kr[ri])this.terminals_[pi]&&pi>ko&&Gi.push("'"+this.terminals_[pi]+"'");To=Gr.showPosition?"Parse error on line "+(Pi+1)+`:
|
|
`+Gr.showPosition()+`
|
|
Expecting `+Gi.join(", ")+", got '"+(this.terminals_[Cr]||Cr)+"'":"Parse error on line "+(Pi+1)+": Unexpected "+(Cr==Ro?"end of input":"'"+(this.terminals_[Cr]||Cr)+"'"),this.parseError(To,{text:Gr.match,token:this.terminals_[Cr]||Cr,line:Gr.yylineno,loc:Ua,expected:Gi})}if($r[0]instanceof Array&&$r.length>1)throw new Error("Parse Error: multiple actions possible at state: "+ri+", token: "+Cr);switch($r[0]){case 1:Mn.push(Cr),Xn.push(Gr.yytext),mt.push(Gr.yylloc),Mn.push($r[1]),Cr=null,ki?(Cr=ki,ki=null):(ya=Gr.yyleng,Zt=Gr.yytext,Pi=Gr.yylineno,Ua=Gr.yylloc,eo>0);break;case 2:if(Qr=this.productions_[$r[1]][1],Yi.$=Xn[Xn.length-Qr],Yi._$={first_line:mt[mt.length-(Qr||1)].first_line,last_line:mt[mt.length-1].last_line,first_column:mt[mt.length-(Qr||1)].first_column,last_column:mt[mt.length-1].last_column},no&&(Yi._$.range=[mt[mt.length-(Qr||1)].range[0],mt[mt.length-1].range[1]]),(Hr=this.performAction.apply(Yi,[Zt,ya,Pi,ia.yy,$r[1],Xn,mt].concat(Fo)))!==void 0)return Hr;Qr&&(Mn=Mn.slice(0,-1*Qr*2),Xn=Xn.slice(0,-1*Qr),mt=mt.slice(0,-1*Qr)),Mn.push(this.productions_[$r[1]][0]),Xn.push(Yi.$),mt.push(Yi._$),aa=Kr[Mn[Mn.length-2]][Mn[Mn.length-1]],Mn.push(aa);break;case 3:return!0}}return!0}},xo={EOF:1,parseError:function(nn,Zn){if(!this.yy.parser)throw new Error(nn);this.yy.parser.parseError(nn,Zn)},setInput:function(nn,Zn){return this.yy=Zn||this.yy||{},this._input=nn,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 nn=this._input[0];return this.yytext+=nn,this.yyleng++,this.offset++,this.match+=nn,this.matched+=nn,nn.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),nn},unput:function(nn){var Zn=nn.length,Mn=nn.split(/(?:\r\n?|\n)/g);this._input=nn+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-Zn),this.offset-=Zn;var Be=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),Mn.length-1&&(this.yylineno-=Mn.length-1);var Xn=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:Mn?(Mn.length===Be.length?this.yylloc.first_column:0)+Be[Be.length-Mn.length].length-Mn[0].length:this.yylloc.first_column-Zn},this.options.ranges&&(this.yylloc.range=[Xn[0],Xn[0]+this.yyleng-Zn]),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(nn){this.unput(this.match.slice(nn))},pastInput:function(){var nn=this.matched.substr(0,this.matched.length-this.match.length);return(nn.length>20?"...":"")+nn.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var nn=this.match;return nn.length<20&&(nn+=this._input.substr(0,20-nn.length)),(nn.substr(0,20)+(nn.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var nn=this.pastInput(),Zn=new Array(nn.length+1).join("-");return nn+this.upcomingInput()+`
|
|
`+Zn+"^"},test_match:function(nn,Zn){var Mn,Be,Xn;if(this.options.backtrack_lexer&&(Xn={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&&(Xn.yylloc.range=this.yylloc.range.slice(0))),(Be=nn[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=Be.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:Be?Be[Be.length-1].length-Be[Be.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+nn[0].length},this.yytext+=nn[0],this.match+=nn[0],this.matches=nn,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(nn[0].length),this.matched+=nn[0],Mn=this.performAction.call(this,this.yy,this,Zn,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),Mn)return Mn;if(this._backtrack){for(var mt in Xn)this[mt]=Xn[mt];return!1}return!1},next:function(){if(this.done)return this.EOF;var nn,Zn,Mn,Be;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var Xn=this._currentRules(),mt=0;mt<Xn.length;mt++)if((Mn=this._input.match(this.rules[Xn[mt]]))&&(!Zn||Mn[0].length>Zn[0].length)){if(Zn=Mn,Be=mt,this.options.backtrack_lexer){if((nn=this.test_match(Mn,Xn[mt]))!==!1)return nn;if(this._backtrack){Zn=!1;continue}return!1}if(!this.options.flex)break}return Zn?(nn=this.test_match(Zn,Xn[Be]))!==!1&&nn: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(nn){this.conditionStack.push(nn)},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(nn){return(nn=this.conditionStack.length-1-Math.abs(nn||0))>=0?this.conditionStack[nn]:"INITIAL"},pushState:function(nn){this.begin(nn)},stateStackSize:function(){return this.conditionStack.length},options:{},performAction:function(nn,Zn,Mn,Be){switch(Mn){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 79;case 11:return 88;case 12:return 80;case 13:return 97;case 14:return 81;case 15:return 82;case 16:this.begin("href");break;case 18:return 93;case 19:this.begin("callbackname");break;case 21:this.popState(),this.begin("callbackargs");break;case 22:return 91;case 24:return 92;case 25:this.begin("click");break;case 27:return 83;case 28:case 29:return nn.lex.firstGraph()&&this.begin("dir"),24;case 30:return 38;case 31:return 42;case 32:case 33:case 34:case 35:return 94;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 111;case 48:return 112;case 49:return 113;case 50:return 114;case 51:return 98;case 52:return 104;case 53:return 48;case 54:return 60;case 55:return 47;case 56:return 20;case 57:return 99;case 58:return 119;case 59:case 60:case 61:return 75;case 62:case 63:case 64:return 74;case 65:return 52;case 66:return 53;case 67:return 54;case 68:return 55;case 69:return 56;case 70:return 57;case 71:return 58;case 72:return 62;case 73:return 63;case 74:return 102;case 75:return 105;case 76:return 120;case 77:return 117;case 78:return 106;case 79:case 80:return 118;case 81:return 107;case 82:return 66;case 83:return 85;case 84:return"SEP";case 85:return 84;case 86:return 59;case 87:return 68;case 88:return 67;case 89:return 70;case 90:return 69;case 91:return 115;case 92:return 116;case 93:return 61;case 94:return 50;case 95:return 51;case 96:return 40;case 97:return 41;case 98:return 64;case 99:return 65;case 100:return 126;case 101:return 21;case 102:return 22;case 103: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],inclusive:!0}}};function di(){this.yy={}}return Ta.lexer=xo,di.prototype=Ta,Ta.Parser=di,new di}();s.parser=l,s.Parser=l.Parser,s.parse=function(){return l.parse.apply(l,arguments)},s.main=function(c){c[1]||(console.log("Usage: "+c[0]+" FILE"),process.exit(1));var y=o(5354).readFileSync(o(6470).normalize(c[1]),"utf8");return s.parser.parse(y)},o.c[o.s]===r&&s.main(process.argv.slice(1))},9959:(r,s,o)=>{r=o.nmd(r);var l=function(){var c=function(K,ht,xt,St){for(xt=xt||{},St=K.length;St--;xt[K[St]]=ht);return xt},y=[1,3],p=[1,5],b=[7,9,11,12,13,14,15,16,17,18,19,20,22,29,34],T=[1,15],k=[1,16],D=[1,17],O=[1,18],R=[1,19],z=[1,20],$=[1,21],q=[1,22],V=[1,23],X=[1,25],it=[1,27],tt=[1,30],rt=[5,7,9,11,12,13,14,15,16,17,18,19,20,22,29,34],ut={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(K,ht,xt,St,pt,wt,Ht){var Pt=wt.length-1;switch(pt){case 2:return wt[Pt-1];case 3:case 7:case 8:this.$=[];break;case 4:wt[Pt-1].push(wt[Pt]),this.$=wt[Pt-1];break;case 5:case 6:this.$=wt[Pt];break;case 9:St.setDateFormat(wt[Pt].substr(11)),this.$=wt[Pt].substr(11);break;case 10:St.enableInclusiveEndDates(),this.$=wt[Pt].substr(18);break;case 11:St.TopAxis(),this.$=wt[Pt].substr(8);break;case 12:St.setAxisFormat(wt[Pt].substr(11)),this.$=wt[Pt].substr(11);break;case 13:St.setExcludes(wt[Pt].substr(9)),this.$=wt[Pt].substr(9);break;case 14:St.setIncludes(wt[Pt].substr(9)),this.$=wt[Pt].substr(9);break;case 15:St.setTodayMarker(wt[Pt].substr(12)),this.$=wt[Pt].substr(12);break;case 16:St.setTitle(wt[Pt].substr(6)),this.$=wt[Pt].substr(6);break;case 17:St.addSection(wt[Pt].substr(8)),this.$=wt[Pt].substr(8);break;case 19:St.addTask(wt[Pt-1],wt[Pt]),this.$="task";break;case 23:this.$=wt[Pt-1],St.setClickEvent(wt[Pt-1],wt[Pt],null);break;case 24:this.$=wt[Pt-2],St.setClickEvent(wt[Pt-2],wt[Pt-1],wt[Pt]);break;case 25:this.$=wt[Pt-2],St.setClickEvent(wt[Pt-2],wt[Pt-1],null),St.setLink(wt[Pt-2],wt[Pt]);break;case 26:this.$=wt[Pt-3],St.setClickEvent(wt[Pt-3],wt[Pt-2],wt[Pt-1]),St.setLink(wt[Pt-3],wt[Pt]);break;case 27:this.$=wt[Pt-2],St.setClickEvent(wt[Pt-2],wt[Pt],null),St.setLink(wt[Pt-2],wt[Pt-1]);break;case 28:this.$=wt[Pt-3],St.setClickEvent(wt[Pt-3],wt[Pt-1],wt[Pt]),St.setLink(wt[Pt-3],wt[Pt-2]);break;case 29:this.$=wt[Pt-1],St.setLink(wt[Pt-1],wt[Pt]);break;case 30:case 36:this.$=wt[Pt-1]+" "+wt[Pt];break;case 31:case 32:case 34:this.$=wt[Pt-2]+" "+wt[Pt-1]+" "+wt[Pt];break;case 33:case 35:this.$=wt[Pt-3]+" "+wt[Pt-2]+" "+wt[Pt-1]+" "+wt[Pt];break;case 37:St.parseDirective("%%{","open_directive");break;case 38:St.parseDirective(wt[Pt],"type_directive");break;case 39:wt[Pt]=wt[Pt].trim().replace(/'/g,'"'),St.parseDirective(wt[Pt],"arg_directive");break;case 40:St.parseDirective("}%%","close_directive","gantt")}},table:[{3:1,4:2,5:y,24:4,34:p},{1:[3]},{3:6,4:2,5:y,24:4,34:p},c(b,[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:T,13:k,14:D,15:O,16:R,17:z,18:$,19:q,20:V,21:24,22:X,24:4,29:it,34:p},{26:28,27:[1,29],37:tt},c([27,37],[2,38]),c(b,[2,8],{1:[2,2]}),c(b,[2,4]),{4:26,10:31,12:T,13:k,14:D,15:O,16:R,17:z,18:$,19:q,20:V,21:24,22:X,24:4,29:it,34:p},c(b,[2,6]),c(b,[2,7]),c(b,[2,9]),c(b,[2,10]),c(b,[2,11]),c(b,[2,12]),c(b,[2,13]),c(b,[2,14]),c(b,[2,15]),c(b,[2,16]),c(b,[2,17]),c(b,[2,18]),{23:[1,32]},c(b,[2,20]),{30:[1,33],32:[1,34]},{11:[1,35]},{28:36,36:[1,37]},{11:[2,40]},c(b,[2,5]),c(b,[2,19]),c(b,[2,23],{31:[1,38],32:[1,39]}),c(b,[2,29],{30:[1,40]}),c(rt,[2,21]),{26:41,37:tt},{37:[2,39]},c(b,[2,24],{32:[1,42]}),c(b,[2,25]),c(b,[2,27],{31:[1,43]}),{11:[1,44]},c(b,[2,26]),c(b,[2,28]),c(rt,[2,22])],defaultActions:{5:[2,37],6:[2,1],30:[2,40],37:[2,39]},parseError:function(K,ht){if(!ht.recoverable){var xt=new Error(K);throw xt.hash=ht,xt}this.trace(K)},parse:function(K){var ht=this,xt=[0],St=[],pt=[null],wt=[],Ht=this.table,Pt="",ge=0,pe=0,de=0,Bt=2,Gt=1,oe=wt.slice.call(arguments,1),le=Object.create(this.lexer),ye={yy:{}};for(var It in this.yy)Object.prototype.hasOwnProperty.call(this.yy,It)&&(ye.yy[It]=this.yy[It]);le.setInput(K,ye.yy),ye.yy.lexer=le,ye.yy.parser=this,le.yylloc===void 0&&(le.yylloc={});var He=le.yylloc;wt.push(He);var he=le.options&&le.options.ranges;function jt(){var un;return typeof(un=St.pop()||le.lex()||Gt)!="number"&&(un instanceof Array&&(un=(St=un).pop()),un=ht.symbols_[un]||un),un}typeof ye.yy.parseError=="function"?this.parseError=ye.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var Kt,ct,te,Dt,Vt,$t,Nt,ie,Qe,be={};;){if(te=xt[xt.length-1],this.defaultActions[te]?Dt=this.defaultActions[te]:(Kt==null&&(Kt=jt()),Dt=Ht[te]&&Ht[te][Kt]),Dt===void 0||!Dt.length||!Dt[0]){var Ce="";for($t in Qe=[],Ht[te])this.terminals_[$t]&&$t>Bt&&Qe.push("'"+this.terminals_[$t]+"'");Ce=le.showPosition?"Parse error on line "+(ge+1)+`:
|
|
`+le.showPosition()+`
|
|
Expecting `+Qe.join(", ")+", got '"+(this.terminals_[Kt]||Kt)+"'":"Parse error on line "+(ge+1)+": Unexpected "+(Kt==Gt?"end of input":"'"+(this.terminals_[Kt]||Kt)+"'"),this.parseError(Ce,{text:le.match,token:this.terminals_[Kt]||Kt,line:le.yylineno,loc:He,expected:Qe})}if(Dt[0]instanceof Array&&Dt.length>1)throw new Error("Parse Error: multiple actions possible at state: "+te+", token: "+Kt);switch(Dt[0]){case 1:xt.push(Kt),pt.push(le.yytext),wt.push(le.yylloc),xt.push(Dt[1]),Kt=null,ct?(Kt=ct,ct=null):(pe=le.yyleng,Pt=le.yytext,ge=le.yylineno,He=le.yylloc,de>0);break;case 2:if(Nt=this.productions_[Dt[1]][1],be.$=pt[pt.length-Nt],be._$={first_line:wt[wt.length-(Nt||1)].first_line,last_line:wt[wt.length-1].last_line,first_column:wt[wt.length-(Nt||1)].first_column,last_column:wt[wt.length-1].last_column},he&&(be._$.range=[wt[wt.length-(Nt||1)].range[0],wt[wt.length-1].range[1]]),(Vt=this.performAction.apply(be,[Pt,pe,ge,ye.yy,Dt[1],pt,wt].concat(oe)))!==void 0)return Vt;Nt&&(xt=xt.slice(0,-1*Nt*2),pt=pt.slice(0,-1*Nt),wt=wt.slice(0,-1*Nt)),xt.push(this.productions_[Dt[1]][0]),pt.push(be.$),wt.push(be._$),ie=Ht[xt[xt.length-2]][xt[xt.length-1]],xt.push(ie);break;case 3:return!0}}return!0}},Ct={EOF:1,parseError:function(K,ht){if(!this.yy.parser)throw new Error(K);this.yy.parser.parseError(K,ht)},setInput:function(K,ht){return this.yy=ht||this.yy||{},this._input=K,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 K=this._input[0];return this.yytext+=K,this.yyleng++,this.offset++,this.match+=K,this.matched+=K,K.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),K},unput:function(K){var ht=K.length,xt=K.split(/(?:\r\n?|\n)/g);this._input=K+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-ht),this.offset-=ht;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),xt.length-1&&(this.yylineno-=xt.length-1);var pt=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:xt?(xt.length===St.length?this.yylloc.first_column:0)+St[St.length-xt.length].length-xt[0].length:this.yylloc.first_column-ht},this.options.ranges&&(this.yylloc.range=[pt[0],pt[0]+this.yyleng-ht]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
|
|
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(K){this.unput(this.match.slice(K))},pastInput:function(){var K=this.matched.substr(0,this.matched.length-this.match.length);return(K.length>20?"...":"")+K.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var K=this.match;return K.length<20&&(K+=this._input.substr(0,20-K.length)),(K.substr(0,20)+(K.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var K=this.pastInput(),ht=new Array(K.length+1).join("-");return K+this.upcomingInput()+`
|
|
`+ht+"^"},test_match:function(K,ht){var xt,St,pt;if(this.options.backtrack_lexer&&(pt={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(pt.yylloc.range=this.yylloc.range.slice(0))),(St=K[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+K[0].length},this.yytext+=K[0],this.match+=K[0],this.matches=K,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(K[0].length),this.matched+=K[0],xt=this.performAction.call(this,this.yy,this,ht,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),xt)return xt;if(this._backtrack){for(var wt in pt)this[wt]=pt[wt];return!1}return!1},next:function(){if(this.done)return this.EOF;var K,ht,xt,St;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var pt=this._currentRules(),wt=0;wt<pt.length;wt++)if((xt=this._input.match(this.rules[pt[wt]]))&&(!ht||xt[0].length>ht[0].length)){if(ht=xt,St=wt,this.options.backtrack_lexer){if((K=this.test_match(xt,pt[wt]))!==!1)return K;if(this._backtrack){ht=!1;continue}return!1}if(!this.options.flex)break}return ht?(K=this.test_match(ht,pt[St]))!==!1&&K: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(K){this.conditionStack.push(K)},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(K){return(K=this.conditionStack.length-1-Math.abs(K||0))>=0?this.conditionStack[K]:"INITIAL"},pushState:function(K){this.begin(K)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(K,ht,xt,St){switch(xt){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 et(){this.yy={}}return ut.lexer=Ct,et.prototype=ut,ut.Parser=et,new et}();s.parser=l,s.Parser=l.Parser,s.parse=function(){return l.parse.apply(l,arguments)},s.main=function(c){c[1]||(console.log("Usage: "+c[0]+" FILE"),process.exit(1));var y=o(6878).readFileSync(o(6470).normalize(c[1]),"utf8");return s.parser.parse(y)},o.c[o.s]===r&&s.main(process.argv.slice(1))},2553:(r,s,o)=>{r=o.nmd(r);var l=function(){var c=function($,q,V,X){for(V=V||{},X=$.length;X--;V[$[X]]=q);return V},y=[2,3],p=[1,7],b=[7,12,15,17,19,20,21],T=[7,11,12,15,17,19,20,21],k=[2,20],D=[1,32],O={trace:function(){},yy:{},symbols_:{error:2,start:3,GG:4,":":5,document:6,EOF:7,DIR:8,options:9,body:10,OPT:11,NL:12,line:13,statement:14,COMMIT:15,commit_arg:16,BRANCH:17,ID:18,CHECKOUT:19,MERGE:20,RESET:21,reset_arg:22,STR:23,HEAD:24,reset_parents:25,CARET:26,$accept:0,$end:1},terminals_:{2:"error",4:"GG",5:":",7:"EOF",8:"DIR",11:"OPT",12:"NL",15:"COMMIT",17:"BRANCH",18:"ID",19:"CHECKOUT",20:"MERGE",21:"RESET",23:"STR",24:"HEAD",26:"CARET"},productions_:[0,[3,4],[3,5],[6,0],[6,2],[9,2],[9,1],[10,0],[10,2],[13,2],[13,1],[14,2],[14,2],[14,2],[14,2],[14,2],[16,0],[16,1],[22,2],[22,2],[25,0],[25,2]],performAction:function($,q,V,X,it,tt,rt){var ut=tt.length-1;switch(it){case 1:return tt[ut-1];case 2:return X.setDirection(tt[ut-3]),tt[ut-1];case 4:X.setOptions(tt[ut-1]),this.$=tt[ut];break;case 5:tt[ut-1]+=tt[ut],this.$=tt[ut-1];break;case 7:this.$=[];break;case 8:tt[ut-1].push(tt[ut]),this.$=tt[ut-1];break;case 9:this.$=tt[ut-1];break;case 11:X.commit(tt[ut]);break;case 12:X.branch(tt[ut]);break;case 13:X.checkout(tt[ut]);break;case 14:X.merge(tt[ut]);break;case 15:X.reset(tt[ut]);break;case 16:this.$="";break;case 17:this.$=tt[ut];break;case 18:this.$=tt[ut-1]+":"+tt[ut];break;case 19:this.$=tt[ut-1]+":"+X.count,X.count=0;break;case 20:X.count=0;break;case 21:X.count+=1}},table:[{3:1,4:[1,2]},{1:[3]},{5:[1,3],8:[1,4]},{6:5,7:y,9:6,12:p},{5:[1,8]},{7:[1,9]},c(b,[2,7],{10:10,11:[1,11]}),c(T,[2,6]),{6:12,7:y,9:6,12:p},{1:[2,1]},{7:[2,4],12:[1,15],13:13,14:14,15:[1,16],17:[1,17],19:[1,18],20:[1,19],21:[1,20]},c(T,[2,5]),{7:[1,21]},c(b,[2,8]),{12:[1,22]},c(b,[2,10]),{12:[2,16],16:23,23:[1,24]},{18:[1,25]},{18:[1,26]},{18:[1,27]},{18:[1,30],22:28,24:[1,29]},{1:[2,2]},c(b,[2,9]),{12:[2,11]},{12:[2,17]},{12:[2,12]},{12:[2,13]},{12:[2,14]},{12:[2,15]},{12:k,25:31,26:D},{12:k,25:33,26:D},{12:[2,18]},{12:k,25:34,26:D},{12:[2,19]},{12:[2,21]}],defaultActions:{9:[2,1],21:[2,2],23:[2,11],24:[2,17],25:[2,12],26:[2,13],27:[2,14],28:[2,15],31:[2,18],33:[2,19],34:[2,21]},parseError:function($,q){if(!q.recoverable){var V=new Error($);throw V.hash=q,V}this.trace($)},parse:function($){var q=this,V=[0],X=[],it=[null],tt=[],rt=this.table,ut="",Ct=0,et=0,K=0,ht=2,xt=1,St=tt.slice.call(arguments,1),pt=Object.create(this.lexer),wt={yy:{}};for(var Ht in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Ht)&&(wt.yy[Ht]=this.yy[Ht]);pt.setInput($,wt.yy),wt.yy.lexer=pt,wt.yy.parser=this,pt.yylloc===void 0&&(pt.yylloc={});var Pt=pt.yylloc;tt.push(Pt);var ge=pt.options&&pt.options.ranges;function pe(){var ct;return typeof(ct=X.pop()||pt.lex()||xt)!="number"&&(ct instanceof Array&&(ct=(X=ct).pop()),ct=q.symbols_[ct]||ct),ct}typeof wt.yy.parseError=="function"?this.parseError=wt.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var de,Bt,Gt,oe,le,ye,It,He,he,jt={};;){if(Gt=V[V.length-1],this.defaultActions[Gt]?oe=this.defaultActions[Gt]:(de==null&&(de=pe()),oe=rt[Gt]&&rt[Gt][de]),oe===void 0||!oe.length||!oe[0]){var Kt="";for(ye in he=[],rt[Gt])this.terminals_[ye]&&ye>ht&&he.push("'"+this.terminals_[ye]+"'");Kt=pt.showPosition?"Parse error on line "+(Ct+1)+`:
|
|
`+pt.showPosition()+`
|
|
Expecting `+he.join(", ")+", got '"+(this.terminals_[de]||de)+"'":"Parse error on line "+(Ct+1)+": Unexpected "+(de==xt?"end of input":"'"+(this.terminals_[de]||de)+"'"),this.parseError(Kt,{text:pt.match,token:this.terminals_[de]||de,line:pt.yylineno,loc:Pt,expected:he})}if(oe[0]instanceof Array&&oe.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Gt+", token: "+de);switch(oe[0]){case 1:V.push(de),it.push(pt.yytext),tt.push(pt.yylloc),V.push(oe[1]),de=null,Bt?(de=Bt,Bt=null):(et=pt.yyleng,ut=pt.yytext,Ct=pt.yylineno,Pt=pt.yylloc,K>0);break;case 2:if(It=this.productions_[oe[1]][1],jt.$=it[it.length-It],jt._$={first_line:tt[tt.length-(It||1)].first_line,last_line:tt[tt.length-1].last_line,first_column:tt[tt.length-(It||1)].first_column,last_column:tt[tt.length-1].last_column},ge&&(jt._$.range=[tt[tt.length-(It||1)].range[0],tt[tt.length-1].range[1]]),(le=this.performAction.apply(jt,[ut,et,Ct,wt.yy,oe[1],it,tt].concat(St)))!==void 0)return le;It&&(V=V.slice(0,-1*It*2),it=it.slice(0,-1*It),tt=tt.slice(0,-1*It)),V.push(this.productions_[oe[1]][0]),it.push(jt.$),tt.push(jt._$),He=rt[V[V.length-2]][V[V.length-1]],V.push(He);break;case 3:return!0}}return!0}},R={EOF:1,parseError:function($,q){if(!this.yy.parser)throw new Error($);this.yy.parser.parseError($,q)},setInput:function($,q){return this.yy=q||this.yy||{},this._input=$,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 $=this._input[0];return this.yytext+=$,this.yyleng++,this.offset++,this.match+=$,this.matched+=$,$.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),$},unput:function($){var q=$.length,V=$.split(/(?:\r\n?|\n)/g);this._input=$+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-q),this.offset-=q;var X=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),V.length-1&&(this.yylineno-=V.length-1);var it=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:V?(V.length===X.length?this.yylloc.first_column:0)+X[X.length-V.length].length-V[0].length:this.yylloc.first_column-q},this.options.ranges&&(this.yylloc.range=[it[0],it[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($){this.unput(this.match.slice($))},pastInput:function(){var $=this.matched.substr(0,this.matched.length-this.match.length);return($.length>20?"...":"")+$.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var $=this.match;return $.length<20&&($+=this._input.substr(0,20-$.length)),($.substr(0,20)+($.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var $=this.pastInput(),q=new Array($.length+1).join("-");return $+this.upcomingInput()+`
|
|
`+q+"^"},test_match:function($,q){var V,X,it;if(this.options.backtrack_lexer&&(it={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&&(it.yylloc.range=this.yylloc.range.slice(0))),(X=$[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=X.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:X?X[X.length-1].length-X[X.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+$[0].length},this.yytext+=$[0],this.match+=$[0],this.matches=$,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($[0].length),this.matched+=$[0],V=this.performAction.call(this,this.yy,this,q,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),V)return V;if(this._backtrack){for(var tt in it)this[tt]=it[tt];return!1}return!1},next:function(){if(this.done)return this.EOF;var $,q,V,X;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var it=this._currentRules(),tt=0;tt<it.length;tt++)if((V=this._input.match(this.rules[it[tt]]))&&(!q||V[0].length>q[0].length)){if(q=V,X=tt,this.options.backtrack_lexer){if(($=this.test_match(V,it[tt]))!==!1)return $;if(this._backtrack){q=!1;continue}return!1}if(!this.options.flex)break}return q?($=this.test_match(q,it[X]))!==!1&&$: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($){this.conditionStack.push($)},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($){return($=this.conditionStack.length-1-Math.abs($||0))>=0?this.conditionStack[$]:"INITIAL"},pushState:function($){this.begin($)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function($,q,V,X){switch(V){case 0:return 12;case 1:case 2:case 3:break;case 4:return 4;case 5:return 15;case 6:return 17;case 7:return 20;case 8:return 21;case 9:return 19;case 10:case 11:return 8;case 12:return 5;case 13:return 26;case 14:this.begin("options");break;case 15:case 18:this.popState();break;case 16:return 11;case 17:this.begin("string");break;case 19:return 23;case 20:return 18;case 21:return 7}},rules:[/^(?:(\r?\n)+)/i,/^(?:\s+)/i,/^(?:#[^\n]*)/i,/^(?:%[^\n]*)/i,/^(?:gitGraph\b)/i,/^(?:commit\b)/i,/^(?:branch\b)/i,/^(?:merge\b)/i,/^(?:reset\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:{options:{rules:[15,16],inclusive:!1},string:{rules:[18,19],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,17,20,21],inclusive:!0}}};function z(){this.yy={}}return O.lexer=R,z.prototype=O,O.Parser=z,new z}();s.parser=l,s.Parser=l.Parser,s.parse=function(){return l.parse.apply(l,arguments)},s.main=function(c){c[1]||(console.log("Usage: "+c[0]+" FILE"),process.exit(1));var y=o(8183).readFileSync(o(6470).normalize(c[1]),"utf8");return s.parser.parse(y)},o.c[o.s]===r&&s.main(process.argv.slice(1))},6765:(r,s,o)=>{r=o.nmd(r);var l=function(){var c=function(k,D,O,R){for(O=O||{},R=k.length;R--;O[k[R]]=D);return O},y=[6,9,10],p={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(k,D,O,R,z,$,q){switch($.length,z){case 1:return R;case 4:break;case 6:R.setInfo(!0)}},table:[{3:1,4:[1,2]},{1:[3]},c(y,[2,2],{5:3}),{6:[1,4],7:5,8:6,9:[1,7],10:[1,8]},{1:[2,1]},c(y,[2,3]),c(y,[2,4]),c(y,[2,5]),c(y,[2,6])],defaultActions:{4:[2,1]},parseError:function(k,D){if(!D.recoverable){var O=new Error(k);throw O.hash=D,O}this.trace(k)},parse:function(k){var D=this,O=[0],R=[],z=[null],$=[],q=this.table,V="",X=0,it=0,tt=0,rt=2,ut=1,Ct=$.slice.call(arguments,1),et=Object.create(this.lexer),K={yy:{}};for(var ht in this.yy)Object.prototype.hasOwnProperty.call(this.yy,ht)&&(K.yy[ht]=this.yy[ht]);et.setInput(k,K.yy),K.yy.lexer=et,K.yy.parser=this,et.yylloc===void 0&&(et.yylloc={});var xt=et.yylloc;$.push(xt);var St=et.options&&et.options.ranges;function pt(){var It;return typeof(It=R.pop()||et.lex()||ut)!="number"&&(It instanceof Array&&(It=(R=It).pop()),It=D.symbols_[It]||It),It}typeof K.yy.parseError=="function"?this.parseError=K.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var wt,Ht,Pt,ge,pe,de,Bt,Gt,oe,le={};;){if(Pt=O[O.length-1],this.defaultActions[Pt]?ge=this.defaultActions[Pt]:(wt==null&&(wt=pt()),ge=q[Pt]&&q[Pt][wt]),ge===void 0||!ge.length||!ge[0]){var ye="";for(de in oe=[],q[Pt])this.terminals_[de]&&de>rt&&oe.push("'"+this.terminals_[de]+"'");ye=et.showPosition?"Parse error on line "+(X+1)+`:
|
|
`+et.showPosition()+`
|
|
Expecting `+oe.join(", ")+", got '"+(this.terminals_[wt]||wt)+"'":"Parse error on line "+(X+1)+": Unexpected "+(wt==ut?"end of input":"'"+(this.terminals_[wt]||wt)+"'"),this.parseError(ye,{text:et.match,token:this.terminals_[wt]||wt,line:et.yylineno,loc:xt,expected:oe})}if(ge[0]instanceof Array&&ge.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Pt+", token: "+wt);switch(ge[0]){case 1:O.push(wt),z.push(et.yytext),$.push(et.yylloc),O.push(ge[1]),wt=null,Ht?(wt=Ht,Ht=null):(it=et.yyleng,V=et.yytext,X=et.yylineno,xt=et.yylloc,tt>0);break;case 2:if(Bt=this.productions_[ge[1]][1],le.$=z[z.length-Bt],le._$={first_line:$[$.length-(Bt||1)].first_line,last_line:$[$.length-1].last_line,first_column:$[$.length-(Bt||1)].first_column,last_column:$[$.length-1].last_column},St&&(le._$.range=[$[$.length-(Bt||1)].range[0],$[$.length-1].range[1]]),(pe=this.performAction.apply(le,[V,it,X,K.yy,ge[1],z,$].concat(Ct)))!==void 0)return pe;Bt&&(O=O.slice(0,-1*Bt*2),z=z.slice(0,-1*Bt),$=$.slice(0,-1*Bt)),O.push(this.productions_[ge[1]][0]),z.push(le.$),$.push(le._$),Gt=q[O[O.length-2]][O[O.length-1]],O.push(Gt);break;case 3:return!0}}return!0}},b={EOF:1,parseError:function(k,D){if(!this.yy.parser)throw new Error(k);this.yy.parser.parseError(k,D)},setInput:function(k,D){return this.yy=D||this.yy||{},this._input=k,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 k=this._input[0];return this.yytext+=k,this.yyleng++,this.offset++,this.match+=k,this.matched+=k,k.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),k},unput:function(k){var D=k.length,O=k.split(/(?:\r\n?|\n)/g);this._input=k+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-D),this.offset-=D;var R=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),O.length-1&&(this.yylineno-=O.length-1);var z=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===R.length?this.yylloc.first_column:0)+R[R.length-O.length].length-O[0].length:this.yylloc.first_column-D},this.options.ranges&&(this.yylloc.range=[z[0],z[0]+this.yyleng-D]),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(k){this.unput(this.match.slice(k))},pastInput:function(){var k=this.matched.substr(0,this.matched.length-this.match.length);return(k.length>20?"...":"")+k.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var k=this.match;return k.length<20&&(k+=this._input.substr(0,20-k.length)),(k.substr(0,20)+(k.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var k=this.pastInput(),D=new Array(k.length+1).join("-");return k+this.upcomingInput()+`
|
|
`+D+"^"},test_match:function(k,D){var O,R,z;if(this.options.backtrack_lexer&&(z={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&&(z.yylloc.range=this.yylloc.range.slice(0))),(R=k[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=R.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:R?R[R.length-1].length-R[R.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+k[0].length},this.yytext+=k[0],this.match+=k[0],this.matches=k,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(k[0].length),this.matched+=k[0],O=this.performAction.call(this,this.yy,this,D,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),O)return O;if(this._backtrack){for(var $ in z)this[$]=z[$];return!1}return!1},next:function(){if(this.done)return this.EOF;var k,D,O,R;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var z=this._currentRules(),$=0;$<z.length;$++)if((O=this._input.match(this.rules[z[$]]))&&(!D||O[0].length>D[0].length)){if(D=O,R=$,this.options.backtrack_lexer){if((k=this.test_match(O,z[$]))!==!1)return k;if(this._backtrack){D=!1;continue}return!1}if(!this.options.flex)break}return D?(k=this.test_match(D,z[R]))!==!1&&k: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(k){this.conditionStack.push(k)},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(k){return(k=this.conditionStack.length-1-Math.abs(k||0))>=0?this.conditionStack[k]:"INITIAL"},pushState:function(k){this.begin(k)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(k,D,O,R){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 T(){this.yy={}}return p.lexer=b,T.prototype=p,p.Parser=T,new T}();s.parser=l,s.Parser=l.Parser,s.parse=function(){return l.parse.apply(l,arguments)},s.main=function(c){c[1]||(console.log("Usage: "+c[0]+" FILE"),process.exit(1));var y=o(1428).readFileSync(o(6470).normalize(c[1]),"utf8");return s.parser.parse(y)},o.c[o.s]===r&&s.main(process.argv.slice(1))},7062:(r,s,o)=>{r=o.nmd(r);var l=function(){var c=function(Ct,et,K,ht){for(K=K||{},ht=Ct.length;ht--;K[Ct[ht]]=et);return K},y=[1,4],p=[1,5],b=[1,6],T=[1,7],k=[1,9],D=[1,11,13,20,21,22,23],O=[2,5],R=[1,6,11,13,20,21,22,23],z=[20,21,22],$=[2,8],q=[1,18],V=[1,19],X=[1,24],it=[6,20,21,22,23],tt={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,openDirective:15,typeDirective:16,closeDirective:17,":":18,argDirective:19,NEWLINE:20,";":21,EOF:22,open_directive:23,type_directive:24,arg_directive:25,close_directive:26,$accept:0,$end:1},terminals_:{2:"error",6:"PIE",8:"showData",11:"txt",12:"value",13:"title",14:"title_value",18:":",20:"NEWLINE",21:";",22:"EOF",23:"open_directive",24:"type_directive",25:"arg_directive",26:"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,1],[5,3],[5,5],[4,1],[4,1],[4,1],[15,1],[16,1],[19,1],[17,1]],performAction:function(Ct,et,K,ht,xt,St,pt){var wt=St.length-1;switch(xt){case 4:ht.setShowData(!0);break;case 7:this.$=St[wt-1];break;case 9:ht.addSection(St[wt-1],ht.cleanupValue(St[wt]));break;case 10:this.$=St[wt].trim(),ht.setTitle(this.$);break;case 17:ht.parseDirective("%%{","open_directive");break;case 18:ht.parseDirective(St[wt],"type_directive");break;case 19:St[wt]=St[wt].trim().replace(/'/g,'"'),ht.parseDirective(St[wt],"arg_directive");break;case 20:ht.parseDirective("}%%","close_directive","pie")}},table:[{3:1,4:2,5:3,6:y,15:8,20:p,21:b,22:T,23:k},{1:[3]},{3:10,4:2,5:3,6:y,15:8,20:p,21:b,22:T,23:k},{3:11,4:2,5:3,6:y,15:8,20:p,21:b,22:T,23:k},c(D,O,{7:12,8:[1,13]}),c(R,[2,14]),c(R,[2,15]),c(R,[2,16]),{16:14,24:[1,15]},{24:[2,17]},{1:[2,1]},{1:[2,2]},c(z,$,{15:8,9:16,10:17,5:20,1:[2,3],11:q,13:V,23:k}),c(D,O,{7:21}),{17:22,18:[1,23],26:X},c([18,26],[2,18]),c(D,[2,6]),{4:25,20:p,21:b,22:T},{12:[1,26]},{14:[1,27]},c(z,[2,11]),c(z,$,{15:8,9:16,10:17,5:20,1:[2,4],11:q,13:V,23:k}),c(it,[2,12]),{19:28,25:[1,29]},c(it,[2,20]),c(D,[2,7]),c(z,[2,9]),c(z,[2,10]),{17:30,26:X},{26:[2,19]},c(it,[2,13])],defaultActions:{9:[2,17],10:[2,1],11:[2,2],29:[2,19]},parseError:function(Ct,et){if(!et.recoverable){var K=new Error(Ct);throw K.hash=et,K}this.trace(Ct)},parse:function(Ct){var et=this,K=[0],ht=[],xt=[null],St=[],pt=this.table,wt="",Ht=0,Pt=0,ge=0,pe=2,de=1,Bt=St.slice.call(arguments,1),Gt=Object.create(this.lexer),oe={yy:{}};for(var le in this.yy)Object.prototype.hasOwnProperty.call(this.yy,le)&&(oe.yy[le]=this.yy[le]);Gt.setInput(Ct,oe.yy),oe.yy.lexer=Gt,oe.yy.parser=this,Gt.yylloc===void 0&&(Gt.yylloc={});var ye=Gt.yylloc;St.push(ye);var It=Gt.options&&Gt.options.ranges;function He(){var be;return typeof(be=ht.pop()||Gt.lex()||de)!="number"&&(be instanceof Array&&(be=(ht=be).pop()),be=et.symbols_[be]||be),be}typeof oe.yy.parseError=="function"?this.parseError=oe.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var he,jt,Kt,ct,te,Dt,Vt,$t,Nt,ie={};;){if(Kt=K[K.length-1],this.defaultActions[Kt]?ct=this.defaultActions[Kt]:(he==null&&(he=He()),ct=pt[Kt]&&pt[Kt][he]),ct===void 0||!ct.length||!ct[0]){var Qe="";for(Dt in Nt=[],pt[Kt])this.terminals_[Dt]&&Dt>pe&&Nt.push("'"+this.terminals_[Dt]+"'");Qe=Gt.showPosition?"Parse error on line "+(Ht+1)+`:
|
|
`+Gt.showPosition()+`
|
|
Expecting `+Nt.join(", ")+", got '"+(this.terminals_[he]||he)+"'":"Parse error on line "+(Ht+1)+": Unexpected "+(he==de?"end of input":"'"+(this.terminals_[he]||he)+"'"),this.parseError(Qe,{text:Gt.match,token:this.terminals_[he]||he,line:Gt.yylineno,loc:ye,expected:Nt})}if(ct[0]instanceof Array&&ct.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Kt+", token: "+he);switch(ct[0]){case 1:K.push(he),xt.push(Gt.yytext),St.push(Gt.yylloc),K.push(ct[1]),he=null,jt?(he=jt,jt=null):(Pt=Gt.yyleng,wt=Gt.yytext,Ht=Gt.yylineno,ye=Gt.yylloc,ge>0);break;case 2:if(Vt=this.productions_[ct[1]][1],ie.$=xt[xt.length-Vt],ie._$={first_line:St[St.length-(Vt||1)].first_line,last_line:St[St.length-1].last_line,first_column:St[St.length-(Vt||1)].first_column,last_column:St[St.length-1].last_column},It&&(ie._$.range=[St[St.length-(Vt||1)].range[0],St[St.length-1].range[1]]),(te=this.performAction.apply(ie,[wt,Pt,Ht,oe.yy,ct[1],xt,St].concat(Bt)))!==void 0)return te;Vt&&(K=K.slice(0,-1*Vt*2),xt=xt.slice(0,-1*Vt),St=St.slice(0,-1*Vt)),K.push(this.productions_[ct[1]][0]),xt.push(ie.$),St.push(ie._$),$t=pt[K[K.length-2]][K[K.length-1]],K.push($t);break;case 3:return!0}}return!0}},rt={EOF:1,parseError:function(Ct,et){if(!this.yy.parser)throw new Error(Ct);this.yy.parser.parseError(Ct,et)},setInput:function(Ct,et){return this.yy=et||this.yy||{},this._input=Ct,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var Ct=this._input[0];return this.yytext+=Ct,this.yyleng++,this.offset++,this.match+=Ct,this.matched+=Ct,Ct.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),Ct},unput:function(Ct){var et=Ct.length,K=Ct.split(/(?:\r\n?|\n)/g);this._input=Ct+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-et),this.offset-=et;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),K.length-1&&(this.yylineno-=K.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:K?(K.length===ht.length?this.yylloc.first_column:0)+ht[ht.length-K.length].length-K[0].length:this.yylloc.first_column-et},this.options.ranges&&(this.yylloc.range=[xt[0],xt[0]+this.yyleng-et]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
|
|
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(Ct){this.unput(this.match.slice(Ct))},pastInput:function(){var Ct=this.matched.substr(0,this.matched.length-this.match.length);return(Ct.length>20?"...":"")+Ct.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var Ct=this.match;return Ct.length<20&&(Ct+=this._input.substr(0,20-Ct.length)),(Ct.substr(0,20)+(Ct.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var Ct=this.pastInput(),et=new Array(Ct.length+1).join("-");return Ct+this.upcomingInput()+`
|
|
`+et+"^"},test_match:function(Ct,et){var K,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=Ct[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+Ct[0].length},this.yytext+=Ct[0],this.match+=Ct[0],this.matches=Ct,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(Ct[0].length),this.matched+=Ct[0],K=this.performAction.call(this,this.yy,this,et,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),K)return K;if(this._backtrack){for(var St in xt)this[St]=xt[St];return!1}return!1},next:function(){if(this.done)return this.EOF;var Ct,et,K,ht;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var xt=this._currentRules(),St=0;St<xt.length;St++)if((K=this._input.match(this.rules[xt[St]]))&&(!et||K[0].length>et[0].length)){if(et=K,ht=St,this.options.backtrack_lexer){if((Ct=this.test_match(K,xt[St]))!==!1)return Ct;if(this._backtrack){et=!1;continue}return!1}if(!this.options.flex)break}return et?(Ct=this.test_match(et,xt[ht]))!==!1&&Ct:this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
|
|
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){return this.next()||this.lex()},begin:function(Ct){this.conditionStack.push(Ct)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(Ct){return(Ct=this.conditionStack.length-1-Math.abs(Ct||0))>=0?this.conditionStack[Ct]:"INITIAL"},pushState:function(Ct){this.begin(Ct)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(Ct,et,K,ht){switch(K){case 0:return this.begin("open_directive"),23;case 1:return this.begin("type_directive"),24;case 2:return this.popState(),this.begin("arg_directive"),18;case 3:return this.popState(),this.popState(),26;case 4:return 25;case 5:case 6:case 8:case 9:break;case 7:return 20;case 10:return this.begin("title"),13;case 11:return this.popState(),"title_value";case 12:this.begin("string");break;case 13:this.popState();break;case 14:return"txt";case 15:return 6;case 16:return 8;case 17:return"value";case 18:return 22}},rules:[/^(?:%%\{)/i,/^(?:((?:(?!\}%%)[^:.])*))/i,/^(?::)/i,/^(?:\}%%)/i,/^(?:((?:(?!\}%%).|\n)*))/i,/^(?:%%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n\r]+)/i,/^(?:%%[^\n]*)/i,/^(?:[\s]+)/i,/^(?:title\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},title:{rules:[11],inclusive:!1},string:{rules:[13,14],inclusive:!1},INITIAL:{rules:[0,5,6,7,8,9,10,12,15,16,17,18],inclusive:!0}}};function ut(){this.yy={}}return tt.lexer=rt,ut.prototype=tt,tt.Parser=ut,new ut}();s.parser=l,s.Parser=l.Parser,s.parse=function(){return l.parse.apply(l,arguments)},s.main=function(c){c[1]||(console.log("Usage: "+c[0]+" FILE"),process.exit(1));var y=o(4551).readFileSync(o(6470).normalize(c[1]),"utf8");return s.parser.parse(y)},o.c[o.s]===r&&s.main(process.argv.slice(1))},3176:(r,s,o)=>{r=o.nmd(r);var l=function(){var c=function(Kt,ct,te,Dt){for(te=te||{},Dt=Kt.length;Dt--;te[Kt[Dt]]=ct);return te},y=[1,3],p=[1,5],b=[1,17],T=[2,10],k=[1,21],D=[1,22],O=[1,23],R=[1,24],z=[1,25],$=[1,26],q=[1,19],V=[1,27],X=[1,28],it=[1,31],tt=[66,67],rt=[5,8,14,35,36,37,38,39,40,48,55,57,66,67],ut=[5,6,8,14,35,36,37,38,39,40,48,66,67],Ct=[1,51],et=[1,52],K=[1,53],ht=[1,54],xt=[1,55],St=[1,56],pt=[1,57],wt=[57,58],Ht=[1,69],Pt=[1,65],ge=[1,66],pe=[1,67],de=[1,68],Bt=[1,70],Gt=[1,74],oe=[1,75],le=[1,72],ye=[1,73],It=[5,8,14,35,36,37,38,39,40,48,66,67],He={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(Kt,ct,te,Dt,Vt,$t,Nt){var ie=$t.length-1;switch(Vt){case 6:Dt.parseDirective("%%{","open_directive");break;case 7:Dt.parseDirective($t[ie],"type_directive");break;case 8:$t[ie]=$t[ie].trim().replace(/'/g,'"'),Dt.parseDirective($t[ie],"arg_directive");break;case 9:Dt.parseDirective("}%%","close_directive","pie");break;case 10:this.$=[];break;case 16:Dt.addRequirement($t[ie-3],$t[ie-4]);break;case 17:Dt.setNewReqId($t[ie-2]);break;case 18:Dt.setNewReqText($t[ie-2]);break;case 19:Dt.setNewReqRisk($t[ie-2]);break;case 20:Dt.setNewReqVerifyMethod($t[ie-2]);break;case 23:this.$=Dt.RequirementType.REQUIREMENT;break;case 24:this.$=Dt.RequirementType.FUNCTIONAL_REQUIREMENT;break;case 25:this.$=Dt.RequirementType.INTERFACE_REQUIREMENT;break;case 26:this.$=Dt.RequirementType.PERFORMANCE_REQUIREMENT;break;case 27:this.$=Dt.RequirementType.PHYSICAL_REQUIREMENT;break;case 28:this.$=Dt.RequirementType.DESIGN_CONSTRAINT;break;case 29:this.$=Dt.RiskLevel.LOW_RISK;break;case 30:this.$=Dt.RiskLevel.MED_RISK;break;case 31:this.$=Dt.RiskLevel.HIGH_RISK;break;case 32:this.$=Dt.VerifyType.VERIFY_ANALYSIS;break;case 33:this.$=Dt.VerifyType.VERIFY_DEMONSTRATION;break;case 34:this.$=Dt.VerifyType.VERIFY_INSPECTION;break;case 35:this.$=Dt.VerifyType.VERIFY_TEST;break;case 36:Dt.addElement($t[ie-3]);break;case 37:Dt.setNewElementType($t[ie-2]);break;case 38:Dt.setNewElementDocRef($t[ie-2]);break;case 41:Dt.addRelationship($t[ie-2],$t[ie],$t[ie-4]);break;case 42:Dt.addRelationship($t[ie-2],$t[ie-4],$t[ie]);break;case 43:this.$=Dt.Relationships.CONTAINS;break;case 44:this.$=Dt.Relationships.COPIES;break;case 45:this.$=Dt.Relationships.DERIVES;break;case 46:this.$=Dt.Relationships.SATISFIES;break;case 47:this.$=Dt.Relationships.VERIFIES;break;case 48:this.$=Dt.Relationships.REFINES;break;case 49:this.$=Dt.Relationships.TRACES}},table:[{3:1,4:2,6:y,9:4,14:p},{1:[3]},{3:7,4:2,5:[1,6],6:y,9:4,14:p},{5:[1,8]},{10:9,15:[1,10]},{15:[2,6]},{3:11,4:2,6:y,9:4,14:p},{1:[2,2]},{4:16,5:b,7:12,8:T,9:4,14:p,18:13,19:14,20:15,21:18,27:20,35:k,36:D,37:O,38:R,39:z,40:$,48:q,66:V,67:X},{11:29,12:[1,30],17:it},c([12,17],[2,7]),{1:[2,1]},{8:[1,32]},{4:16,5:b,7:33,8:T,9:4,14:p,18:13,19:14,20:15,21:18,27:20,35:k,36:D,37:O,38:R,39:z,40:$,48:q,66:V,67:X},{4:16,5:b,7:34,8:T,9:4,14:p,18:13,19:14,20:15,21:18,27:20,35:k,36:D,37:O,38:R,39:z,40:$,48:q,66:V,67:X},{4:16,5:b,7:35,8:T,9:4,14:p,18:13,19:14,20:15,21:18,27:20,35:k,36:D,37:O,38:R,39:z,40:$,48:q,66:V,67:X},{4:16,5:b,7:36,8:T,9:4,14:p,18:13,19:14,20:15,21:18,27:20,35:k,36:D,37:O,38:R,39:z,40:$,48:q,66:V,67:X},{4:16,5:b,7:37,8:T,9:4,14:p,18:13,19:14,20:15,21:18,27:20,35:k,36:D,37:O,38:R,39:z,40:$,48:q,66:V,67:X},{22:38,66:[1,39],67:[1,40]},{49:41,66:[1,42],67:[1,43]},{55:[1,44],57:[1,45]},c(tt,[2,23]),c(tt,[2,24]),c(tt,[2,25]),c(tt,[2,26]),c(tt,[2,27]),c(tt,[2,28]),c(rt,[2,52]),c(rt,[2,53]),c(ut,[2,4]),{13:46,16:[1,47]},c(ut,[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:Ct,60:et,61:K,62:ht,63:xt,64:St,65:pt},{56:58,59:Ct,60:et,61:K,62:ht,63:xt,64:St,65:pt},{11:59,17:it},{17:[2,8]},{5:[1,60]},{5:[1,61]},{57:[1,62]},c(wt,[2,43]),c(wt,[2,44]),c(wt,[2,45]),c(wt,[2,46]),c(wt,[2,47]),c(wt,[2,48]),c(wt,[2,49]),{58:[1,63]},c(ut,[2,5]),{5:Ht,24:64,25:Pt,28:ge,30:pe,32:de,34:Bt},{5:Gt,34:oe,50:71,51:le,53:ye},{27:76,66:V,67:X},{27:77,66:V,67:X},c(It,[2,16]),{26:[1,78]},{26:[1,79]},{26:[1,80]},{26:[1,81]},{5:Ht,24:82,25:Pt,28:ge,30:pe,32:de,34:Bt},c(It,[2,22]),c(It,[2,36]),{26:[1,83]},{26:[1,84]},{5:Gt,34:oe,50:85,51:le,53:ye},c(It,[2,40]),c(It,[2,41]),c(It,[2,42]),{27:86,66:V,67:X},{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]},c(It,[2,21]),{52:99,66:[1,100],67:[1,101]},{54:102,66:[1,103],67:[1,104]},c(It,[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:Ht,24:111,25:Pt,28:ge,30:pe,32:de,34:Bt},{5:Ht,24:112,25:Pt,28:ge,30:pe,32:de,34:Bt},{5:Ht,24:113,25:Pt,28:ge,30:pe,32:de,34:Bt},{5:Ht,24:114,25:Pt,28:ge,30:pe,32:de,34:Bt},{5:Gt,34:oe,50:115,51:le,53:ye},{5:Gt,34:oe,50:116,51:le,53:ye},c(It,[2,17]),c(It,[2,18]),c(It,[2,19]),c(It,[2,20]),c(It,[2,37]),c(It,[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(Kt,ct){if(!ct.recoverable){var te=new Error(Kt);throw te.hash=ct,te}this.trace(Kt)},parse:function(Kt){var ct=this,te=[0],Dt=[],Vt=[null],$t=[],Nt=this.table,ie="",Qe=0,be=0,Ce=0,un=2,Ve=1,Le=$t.slice.call(arguments,1),ke=Object.create(this.lexer),Je={yy:{}};for(var Ye in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Ye)&&(Je.yy[Ye]=this.yy[Ye]);ke.setInput(Kt,Je.yy),Je.yy.lexer=ke,Je.yy.parser=this,ke.yylloc===void 0&&(ke.yylloc={});var Ge=ke.yylloc;$t.push(Ge);var Ze=ke.options&&ke.options.ranges;function De(){var Tn;return typeof(Tn=Dt.pop()||ke.lex()||Ve)!="number"&&(Tn instanceof Array&&(Tn=(Dt=Tn).pop()),Tn=ct.symbols_[Tn]||Tn),Tn}typeof Je.yy.parseError=="function"?this.parseError=Je.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var zn,Te,en,_n,Rr,bn,Jn,cn,yn,Xe={};;){if(en=te[te.length-1],this.defaultActions[en]?_n=this.defaultActions[en]:(zn==null&&(zn=De()),_n=Nt[en]&&Nt[en][zn]),_n===void 0||!_n.length||!_n[0]){var Cn="";for(bn in yn=[],Nt[en])this.terminals_[bn]&&bn>un&&yn.push("'"+this.terminals_[bn]+"'");Cn=ke.showPosition?"Parse error on line "+(Qe+1)+`:
|
|
`+ke.showPosition()+`
|
|
Expecting `+yn.join(", ")+", got '"+(this.terminals_[zn]||zn)+"'":"Parse error on line "+(Qe+1)+": Unexpected "+(zn==Ve?"end of input":"'"+(this.terminals_[zn]||zn)+"'"),this.parseError(Cn,{text:ke.match,token:this.terminals_[zn]||zn,line:ke.yylineno,loc:Ge,expected:yn})}if(_n[0]instanceof Array&&_n.length>1)throw new Error("Parse Error: multiple actions possible at state: "+en+", token: "+zn);switch(_n[0]){case 1:te.push(zn),Vt.push(ke.yytext),$t.push(ke.yylloc),te.push(_n[1]),zn=null,Te?(zn=Te,Te=null):(be=ke.yyleng,ie=ke.yytext,Qe=ke.yylineno,Ge=ke.yylloc,Ce>0);break;case 2:if(Jn=this.productions_[_n[1]][1],Xe.$=Vt[Vt.length-Jn],Xe._$={first_line:$t[$t.length-(Jn||1)].first_line,last_line:$t[$t.length-1].last_line,first_column:$t[$t.length-(Jn||1)].first_column,last_column:$t[$t.length-1].last_column},Ze&&(Xe._$.range=[$t[$t.length-(Jn||1)].range[0],$t[$t.length-1].range[1]]),(Rr=this.performAction.apply(Xe,[ie,be,Qe,Je.yy,_n[1],Vt,$t].concat(Le)))!==void 0)return Rr;Jn&&(te=te.slice(0,-1*Jn*2),Vt=Vt.slice(0,-1*Jn),$t=$t.slice(0,-1*Jn)),te.push(this.productions_[_n[1]][0]),Vt.push(Xe.$),$t.push(Xe._$),cn=Nt[te[te.length-2]][te[te.length-1]],te.push(cn);break;case 3:return!0}}return!0}},he={EOF:1,parseError:function(Kt,ct){if(!this.yy.parser)throw new Error(Kt);this.yy.parser.parseError(Kt,ct)},setInput:function(Kt,ct){return this.yy=ct||this.yy||{},this._input=Kt,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 Kt=this._input[0];return this.yytext+=Kt,this.yyleng++,this.offset++,this.match+=Kt,this.matched+=Kt,Kt.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),Kt},unput:function(Kt){var ct=Kt.length,te=Kt.split(/(?:\r\n?|\n)/g);this._input=Kt+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-ct),this.offset-=ct;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),te.length-1&&(this.yylineno-=te.length-1);var Vt=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:te?(te.length===Dt.length?this.yylloc.first_column:0)+Dt[Dt.length-te.length].length-te[0].length:this.yylloc.first_column-ct},this.options.ranges&&(this.yylloc.range=[Vt[0],Vt[0]+this.yyleng-ct]),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(Kt){this.unput(this.match.slice(Kt))},pastInput:function(){var Kt=this.matched.substr(0,this.matched.length-this.match.length);return(Kt.length>20?"...":"")+Kt.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var Kt=this.match;return Kt.length<20&&(Kt+=this._input.substr(0,20-Kt.length)),(Kt.substr(0,20)+(Kt.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var Kt=this.pastInput(),ct=new Array(Kt.length+1).join("-");return Kt+this.upcomingInput()+`
|
|
`+ct+"^"},test_match:function(Kt,ct){var te,Dt,Vt;if(this.options.backtrack_lexer&&(Vt={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&&(Vt.yylloc.range=this.yylloc.range.slice(0))),(Dt=Kt[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+Kt[0].length},this.yytext+=Kt[0],this.match+=Kt[0],this.matches=Kt,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(Kt[0].length),this.matched+=Kt[0],te=this.performAction.call(this,this.yy,this,ct,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),te)return te;if(this._backtrack){for(var $t in Vt)this[$t]=Vt[$t];return!1}return!1},next:function(){if(this.done)return this.EOF;var Kt,ct,te,Dt;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var Vt=this._currentRules(),$t=0;$t<Vt.length;$t++)if((te=this._input.match(this.rules[Vt[$t]]))&&(!ct||te[0].length>ct[0].length)){if(ct=te,Dt=$t,this.options.backtrack_lexer){if((Kt=this.test_match(te,Vt[$t]))!==!1)return Kt;if(this._backtrack){ct=!1;continue}return!1}if(!this.options.flex)break}return ct?(Kt=this.test_match(ct,Vt[Dt]))!==!1&&Kt: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(Kt){this.conditionStack.push(Kt)},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(Kt){return(Kt=this.conditionStack.length-1-Math.abs(Kt||0))>=0?this.conditionStack[Kt]:"INITIAL"},pushState:function(Kt){this.begin(Kt)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(Kt,ct,te,Dt){switch(te){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 ct.yytext=ct.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 jt(){this.yy={}}return He.lexer=he,jt.prototype=He,He.Parser=jt,new jt}();s.parser=l,s.Parser=l.Parser,s.parse=function(){return l.parse.apply(l,arguments)},s.main=function(c){c[1]||(console.log("Usage: "+c[0]+" FILE"),process.exit(1));var y=o(8800).readFileSync(o(6470).normalize(c[1]),"utf8");return s.parser.parse(y)},o.c[o.s]===r&&s.main(process.argv.slice(1))},6876:(r,s,o)=>{r=o.nmd(r);var l=function(){var c=function(It,He,he,jt){for(he=he||{},jt=It.length;jt--;he[It[jt]]=He);return he},y=[1,2],p=[1,3],b=[1,5],T=[1,7],k=[2,5],D=[1,15],O=[1,17],R=[1,18],z=[1,19],$=[1,21],q=[1,22],V=[1,23],X=[1,29],it=[1,30],tt=[1,31],rt=[1,32],ut=[1,33],Ct=[1,34],et=[1,37],K=[1,38],ht=[1,39],xt=[1,40],St=[1,41],pt=[1,42],wt=[1,45],Ht=[1,4,5,16,20,22,23,24,30,32,33,34,35,36,38,40,41,42,46,47,48,49,57,67],Pt=[1,58],ge=[4,5,16,20,22,23,24,30,32,33,34,35,36,38,42,46,47,48,49,57,67],pe=[4,5,16,20,22,23,24,30,32,33,34,35,36,38,41,42,46,47,48,49,57,67],de=[4,5,16,20,22,23,24,30,32,33,34,35,36,38,40,42,46,47,48,49,57,67],Bt=[55,56,57],Gt=[1,4,5,7,16,20,22,23,24,30,32,33,34,35,36,38,40,41,42,46,47,48,49,57,67],oe={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,text2:31,loop:32,end:33,rect:34,opt:35,alt:36,else_sections:37,par:38,par_sections:39,and:40,else:41,note:42,placement:43,over:44,actor_pair:45,links:46,link:47,properties:48,details:49,spaceList:50,",":51,left_of:52,right_of:53,signaltype:54,"+":55,"-":56,ACTOR:57,SOLID_OPEN_ARROW:58,DOTTED_OPEN_ARROW:59,SOLID_ARROW:60,DOTTED_ARROW:61,SOLID_CROSS:62,DOTTED_CROSS:63,SOLID_POINT:64,DOTTED_POINT:65,TXT:66,open_directive:67,type_directive:68,arg_directive:69,close_directive:70,$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",32:"loop",33:"end",34:"rect",35:"opt",36:"alt",38:"par",40:"and",41:"else",42:"note",44:"over",46:"links",47:"link",48:"properties",49:"details",51:",",52:"left_of",53:"right_of",55:"+",56:"-",57:"ACTOR",58:"SOLID_OPEN_ARROW",59:"DOTTED_OPEN_ARROW",60:"SOLID_ARROW",61:"DOTTED_ARROW",62:"SOLID_CROSS",63:"DOTTED_CROSS",64:"SOLID_POINT",65:"DOTTED_POINT",66:"TXT",67:"open_directive",68:"type_directive",69:"arg_directive",70:"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,3],[10,4],[10,4],[10,4],[10,4],[10,4],[10,1],[39,1],[39,4],[37,1],[37,4],[25,4],[25,4],[26,3],[27,3],[28,3],[29,3],[50,2],[50,1],[45,3],[45,1],[43,1],[43,1],[21,5],[21,5],[21,4],[17,1],[54,1],[54,1],[54,1],[54,1],[54,1],[54,1],[54,1],[54,1],[31,1],[11,1],[12,1],[15,1],[13,1]],performAction:function(It,He,he,jt,Kt,ct,te){var Dt=ct.length-1;switch(Kt){case 4:return jt.apply(ct[Dt]),ct[Dt];case 5:case 9:this.$=[];break;case 6:ct[Dt-1].push(ct[Dt]),this.$=ct[Dt-1];break;case 7:case 8:case 45:this.$=ct[Dt];break;case 12:ct[Dt-3].type="addParticipant",ct[Dt-3].description=jt.parseMessage(ct[Dt-1]),this.$=ct[Dt-3];break;case 13:ct[Dt-1].type="addParticipant",this.$=ct[Dt-1];break;case 14:ct[Dt-3].type="addActor",ct[Dt-3].description=jt.parseMessage(ct[Dt-1]),this.$=ct[Dt-3];break;case 15:ct[Dt-1].type="addActor",this.$=ct[Dt-1];break;case 17:jt.enableSequenceNumbers();break;case 18:this.$={type:"activeStart",signalType:jt.LINETYPE.ACTIVE_START,actor:ct[Dt-1]};break;case 19:this.$={type:"activeEnd",signalType:jt.LINETYPE.ACTIVE_END,actor:ct[Dt-1]};break;case 25:this.$=[{type:"setTitle",text:ct[Dt-1]}];break;case 26:ct[Dt-1].unshift({type:"loopStart",loopText:jt.parseMessage(ct[Dt-2]),signalType:jt.LINETYPE.LOOP_START}),ct[Dt-1].push({type:"loopEnd",loopText:ct[Dt-2],signalType:jt.LINETYPE.LOOP_END}),this.$=ct[Dt-1];break;case 27:ct[Dt-1].unshift({type:"rectStart",color:jt.parseMessage(ct[Dt-2]),signalType:jt.LINETYPE.RECT_START}),ct[Dt-1].push({type:"rectEnd",color:jt.parseMessage(ct[Dt-2]),signalType:jt.LINETYPE.RECT_END}),this.$=ct[Dt-1];break;case 28:ct[Dt-1].unshift({type:"optStart",optText:jt.parseMessage(ct[Dt-2]),signalType:jt.LINETYPE.OPT_START}),ct[Dt-1].push({type:"optEnd",optText:jt.parseMessage(ct[Dt-2]),signalType:jt.LINETYPE.OPT_END}),this.$=ct[Dt-1];break;case 29:ct[Dt-1].unshift({type:"altStart",altText:jt.parseMessage(ct[Dt-2]),signalType:jt.LINETYPE.ALT_START}),ct[Dt-1].push({type:"altEnd",signalType:jt.LINETYPE.ALT_END}),this.$=ct[Dt-1];break;case 30:ct[Dt-1].unshift({type:"parStart",parText:jt.parseMessage(ct[Dt-2]),signalType:jt.LINETYPE.PAR_START}),ct[Dt-1].push({type:"parEnd",signalType:jt.LINETYPE.PAR_END}),this.$=ct[Dt-1];break;case 33:this.$=ct[Dt-3].concat([{type:"and",parText:jt.parseMessage(ct[Dt-1]),signalType:jt.LINETYPE.PAR_AND},ct[Dt]]);break;case 35:this.$=ct[Dt-3].concat([{type:"else",altText:jt.parseMessage(ct[Dt-1]),signalType:jt.LINETYPE.ALT_ELSE},ct[Dt]]);break;case 36:this.$=[ct[Dt-1],{type:"addNote",placement:ct[Dt-2],actor:ct[Dt-1].actor,text:ct[Dt]}];break;case 37:ct[Dt-2]=[].concat(ct[Dt-1],ct[Dt-1]).slice(0,2),ct[Dt-2][0]=ct[Dt-2][0].actor,ct[Dt-2][1]=ct[Dt-2][1].actor,this.$=[ct[Dt-1],{type:"addNote",placement:jt.PLACEMENT.OVER,actor:ct[Dt-2].slice(0,2),text:ct[Dt]}];break;case 38:this.$=[ct[Dt-1],{type:"addLinks",actor:ct[Dt-1].actor,text:ct[Dt]}];break;case 39:this.$=[ct[Dt-1],{type:"addALink",actor:ct[Dt-1].actor,text:ct[Dt]}];break;case 40:this.$=[ct[Dt-1],{type:"addProperties",actor:ct[Dt-1].actor,text:ct[Dt]}];break;case 41:this.$=[ct[Dt-1],{type:"addDetails",actor:ct[Dt-1].actor,text:ct[Dt]}];break;case 44:this.$=[ct[Dt-2],ct[Dt]];break;case 46:this.$=jt.PLACEMENT.LEFTOF;break;case 47:this.$=jt.PLACEMENT.RIGHTOF;break;case 48:this.$=[ct[Dt-4],ct[Dt-1],{type:"addMessage",from:ct[Dt-4].actor,to:ct[Dt-1].actor,signalType:ct[Dt-3],msg:ct[Dt]},{type:"activeStart",signalType:jt.LINETYPE.ACTIVE_START,actor:ct[Dt-1]}];break;case 49:this.$=[ct[Dt-4],ct[Dt-1],{type:"addMessage",from:ct[Dt-4].actor,to:ct[Dt-1].actor,signalType:ct[Dt-3],msg:ct[Dt]},{type:"activeEnd",signalType:jt.LINETYPE.ACTIVE_END,actor:ct[Dt-4]}];break;case 50:this.$=[ct[Dt-3],ct[Dt-1],{type:"addMessage",from:ct[Dt-3].actor,to:ct[Dt-1].actor,signalType:ct[Dt-2],msg:ct[Dt]}];break;case 51:this.$={type:"addParticipant",actor:ct[Dt]};break;case 52:this.$=jt.LINETYPE.SOLID_OPEN;break;case 53:this.$=jt.LINETYPE.DOTTED_OPEN;break;case 54:this.$=jt.LINETYPE.SOLID;break;case 55:this.$=jt.LINETYPE.DOTTED;break;case 56:this.$=jt.LINETYPE.SOLID_CROSS;break;case 57:this.$=jt.LINETYPE.DOTTED_CROSS;break;case 58:this.$=jt.LINETYPE.SOLID_POINT;break;case 59:this.$=jt.LINETYPE.DOTTED_POINT;break;case 60:this.$=jt.parseMessage(ct[Dt].trim().substring(1));break;case 61:jt.parseDirective("%%{","open_directive");break;case 62:jt.parseDirective(ct[Dt],"type_directive");break;case 63:ct[Dt]=ct[Dt].trim().replace(/'/g,'"'),jt.parseDirective(ct[Dt],"arg_directive");break;case 64:jt.parseDirective("}%%","close_directive","sequence")}},table:[{3:1,4:y,5:p,6:4,7:b,11:6,67:T},{1:[3]},{3:8,4:y,5:p,6:4,7:b,11:6,67:T},{3:9,4:y,5:p,6:4,7:b,11:6,67:T},{3:10,4:y,5:p,6:4,7:b,11:6,67:T},c([1,4,5,16,20,22,23,24,30,32,34,35,36,38,42,46,47,48,49,57,67],k,{8:11}),{12:12,68:[1,13]},{68:[2,61]},{1:[2,1]},{1:[2,2]},{1:[2,3]},{1:[2,4],4:D,5:O,6:35,9:14,10:16,11:6,16:R,17:36,20:z,21:20,22:$,23:q,24:V,25:24,26:25,27:26,28:27,29:28,30:X,32:it,34:tt,35:rt,36:ut,38:Ct,42:et,46:K,47:ht,48:xt,49:St,57:pt,67:T},{13:43,14:[1,44],70:wt},c([14,70],[2,62]),c(Ht,[2,6]),{6:35,10:46,11:6,16:R,17:36,20:z,21:20,22:$,23:q,24:V,25:24,26:25,27:26,28:27,29:28,30:X,32:it,34:tt,35:rt,36:ut,38:Ct,42:et,46:K,47:ht,48:xt,49:St,57:pt,67:T},c(Ht,[2,8]),c(Ht,[2,9]),{17:47,57:pt},{17:48,57:pt},{5:[1,49]},c(Ht,[2,17]),{17:50,57:pt},{17:51,57:pt},{5:[1,52]},{5:[1,53]},{5:[1,54]},{5:[1,55]},{5:[1,56]},{31:57,66:Pt},{19:[1,59]},{19:[1,60]},{19:[1,61]},{19:[1,62]},{19:[1,63]},c(Ht,[2,31]),{54:64,58:[1,65],59:[1,66],60:[1,67],61:[1,68],62:[1,69],63:[1,70],64:[1,71],65:[1,72]},{43:73,44:[1,74],52:[1,75],53:[1,76]},{17:77,57:pt},{17:78,57:pt},{17:79,57:pt},{17:80,57:pt},c([5,18,51,58,59,60,61,62,63,64,65,66],[2,51]),{5:[1,81]},{15:82,69:[1,83]},{5:[2,64]},c(Ht,[2,7]),{5:[1,85],18:[1,84]},{5:[1,87],18:[1,86]},c(Ht,[2,16]),{5:[1,88]},{5:[1,89]},c(Ht,[2,20]),c(Ht,[2,21]),c(Ht,[2,22]),c(Ht,[2,23]),c(Ht,[2,24]),{5:[1,90]},{5:[2,60]},c(ge,k,{8:91}),c(ge,k,{8:92}),c(ge,k,{8:93}),c(pe,k,{37:94,8:95}),c(de,k,{39:96,8:97}),{17:100,55:[1,98],56:[1,99],57:pt},c(Bt,[2,52]),c(Bt,[2,53]),c(Bt,[2,54]),c(Bt,[2,55]),c(Bt,[2,56]),c(Bt,[2,57]),c(Bt,[2,58]),c(Bt,[2,59]),{17:101,57:pt},{17:103,45:102,57:pt},{57:[2,46]},{57:[2,47]},{31:104,66:Pt},{31:105,66:Pt},{31:106,66:Pt},{31:107,66:Pt},c(Gt,[2,10]),{13:108,70:wt},{70:[2,63]},{19:[1,109]},c(Ht,[2,13]),{19:[1,110]},c(Ht,[2,15]),c(Ht,[2,18]),c(Ht,[2,19]),c(Ht,[2,25]),{4:D,5:O,6:35,9:14,10:16,11:6,16:R,17:36,20:z,21:20,22:$,23:q,24:V,25:24,26:25,27:26,28:27,29:28,30:X,32:it,33:[1,111],34:tt,35:rt,36:ut,38:Ct,42:et,46:K,47:ht,48:xt,49:St,57:pt,67:T},{4:D,5:O,6:35,9:14,10:16,11:6,16:R,17:36,20:z,21:20,22:$,23:q,24:V,25:24,26:25,27:26,28:27,29:28,30:X,32:it,33:[1,112],34:tt,35:rt,36:ut,38:Ct,42:et,46:K,47:ht,48:xt,49:St,57:pt,67:T},{4:D,5:O,6:35,9:14,10:16,11:6,16:R,17:36,20:z,21:20,22:$,23:q,24:V,25:24,26:25,27:26,28:27,29:28,30:X,32:it,33:[1,113],34:tt,35:rt,36:ut,38:Ct,42:et,46:K,47:ht,48:xt,49:St,57:pt,67:T},{33:[1,114]},{4:D,5:O,6:35,9:14,10:16,11:6,16:R,17:36,20:z,21:20,22:$,23:q,24:V,25:24,26:25,27:26,28:27,29:28,30:X,32:it,33:[2,34],34:tt,35:rt,36:ut,38:Ct,41:[1,115],42:et,46:K,47:ht,48:xt,49:St,57:pt,67:T},{33:[1,116]},{4:D,5:O,6:35,9:14,10:16,11:6,16:R,17:36,20:z,21:20,22:$,23:q,24:V,25:24,26:25,27:26,28:27,29:28,30:X,32:it,33:[2,32],34:tt,35:rt,36:ut,38:Ct,40:[1,117],42:et,46:K,47:ht,48:xt,49:St,57:pt,67:T},{17:118,57:pt},{17:119,57:pt},{31:120,66:Pt},{31:121,66:Pt},{31:122,66:Pt},{51:[1,123],66:[2,45]},{5:[2,38]},{5:[2,39]},{5:[2,40]},{5:[2,41]},{5:[1,124]},{5:[1,125]},{5:[1,126]},c(Ht,[2,26]),c(Ht,[2,27]),c(Ht,[2,28]),c(Ht,[2,29]),{19:[1,127]},c(Ht,[2,30]),{19:[1,128]},{31:129,66:Pt},{31:130,66:Pt},{5:[2,50]},{5:[2,36]},{5:[2,37]},{17:131,57:pt},c(Gt,[2,11]),c(Ht,[2,12]),c(Ht,[2,14]),c(pe,k,{8:95,37:132}),c(de,k,{8:97,39:133}),{5:[2,48]},{5:[2,49]},{66:[2,44]},{33:[2,35]},{33:[2,33]}],defaultActions:{7:[2,61],8:[2,1],9:[2,2],10:[2,3],45:[2,64],58:[2,60],75:[2,46],76:[2,47],83:[2,63],104:[2,38],105:[2,39],106:[2,40],107:[2,41],120:[2,50],121:[2,36],122:[2,37],129:[2,48],130:[2,49],131:[2,44],132:[2,35],133:[2,33]},parseError:function(It,He){if(!He.recoverable){var he=new Error(It);throw he.hash=He,he}this.trace(It)},parse:function(It){var He=this,he=[0],jt=[],Kt=[null],ct=[],te=this.table,Dt="",Vt=0,$t=0,Nt=0,ie=2,Qe=1,be=ct.slice.call(arguments,1),Ce=Object.create(this.lexer),un={yy:{}};for(var Ve in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Ve)&&(un.yy[Ve]=this.yy[Ve]);Ce.setInput(It,un.yy),un.yy.lexer=Ce,un.yy.parser=this,Ce.yylloc===void 0&&(Ce.yylloc={});var Le=Ce.yylloc;ct.push(Le);var ke=Ce.options&&Ce.options.ranges;function Je(){var cn;return typeof(cn=jt.pop()||Ce.lex()||Qe)!="number"&&(cn instanceof Array&&(cn=(jt=cn).pop()),cn=He.symbols_[cn]||cn),cn}typeof un.yy.parseError=="function"?this.parseError=un.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var Ye,Ge,Ze,De,zn,Te,en,_n,Rr,bn={};;){if(Ze=he[he.length-1],this.defaultActions[Ze]?De=this.defaultActions[Ze]:(Ye==null&&(Ye=Je()),De=te[Ze]&&te[Ze][Ye]),De===void 0||!De.length||!De[0]){var Jn="";for(Te in Rr=[],te[Ze])this.terminals_[Te]&&Te>ie&&Rr.push("'"+this.terminals_[Te]+"'");Jn=Ce.showPosition?"Parse error on line "+(Vt+1)+`:
|
|
`+Ce.showPosition()+`
|
|
Expecting `+Rr.join(", ")+", got '"+(this.terminals_[Ye]||Ye)+"'":"Parse error on line "+(Vt+1)+": Unexpected "+(Ye==Qe?"end of input":"'"+(this.terminals_[Ye]||Ye)+"'"),this.parseError(Jn,{text:Ce.match,token:this.terminals_[Ye]||Ye,line:Ce.yylineno,loc:Le,expected:Rr})}if(De[0]instanceof Array&&De.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Ze+", token: "+Ye);switch(De[0]){case 1:he.push(Ye),Kt.push(Ce.yytext),ct.push(Ce.yylloc),he.push(De[1]),Ye=null,Ge?(Ye=Ge,Ge=null):($t=Ce.yyleng,Dt=Ce.yytext,Vt=Ce.yylineno,Le=Ce.yylloc,Nt>0);break;case 2:if(en=this.productions_[De[1]][1],bn.$=Kt[Kt.length-en],bn._$={first_line:ct[ct.length-(en||1)].first_line,last_line:ct[ct.length-1].last_line,first_column:ct[ct.length-(en||1)].first_column,last_column:ct[ct.length-1].last_column},ke&&(bn._$.range=[ct[ct.length-(en||1)].range[0],ct[ct.length-1].range[1]]),(zn=this.performAction.apply(bn,[Dt,$t,Vt,un.yy,De[1],Kt,ct].concat(be)))!==void 0)return zn;en&&(he=he.slice(0,-1*en*2),Kt=Kt.slice(0,-1*en),ct=ct.slice(0,-1*en)),he.push(this.productions_[De[1]][0]),Kt.push(bn.$),ct.push(bn._$),_n=te[he[he.length-2]][he[he.length-1]],he.push(_n);break;case 3:return!0}}return!0}},le={EOF:1,parseError:function(It,He){if(!this.yy.parser)throw new Error(It);this.yy.parser.parseError(It,He)},setInput:function(It,He){return this.yy=He||this.yy||{},this._input=It,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 It=this._input[0];return this.yytext+=It,this.yyleng++,this.offset++,this.match+=It,this.matched+=It,It.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),It},unput:function(It){var He=It.length,he=It.split(/(?:\r\n?|\n)/g);this._input=It+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-He),this.offset-=He;var jt=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),he.length-1&&(this.yylineno-=he.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:he?(he.length===jt.length?this.yylloc.first_column:0)+jt[jt.length-he.length].length-he[0].length:this.yylloc.first_column-He},this.options.ranges&&(this.yylloc.range=[Kt[0],Kt[0]+this.yyleng-He]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
|
|
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(It){this.unput(this.match.slice(It))},pastInput:function(){var It=this.matched.substr(0,this.matched.length-this.match.length);return(It.length>20?"...":"")+It.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var It=this.match;return It.length<20&&(It+=this._input.substr(0,20-It.length)),(It.substr(0,20)+(It.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var It=this.pastInput(),He=new Array(It.length+1).join("-");return It+this.upcomingInput()+`
|
|
`+He+"^"},test_match:function(It,He){var he,jt,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))),(jt=It[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=jt.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:jt?jt[jt.length-1].length-jt[jt.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+It[0].length},this.yytext+=It[0],this.match+=It[0],this.matches=It,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(It[0].length),this.matched+=It[0],he=this.performAction.call(this,this.yy,this,He,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),he)return he;if(this._backtrack){for(var ct in Kt)this[ct]=Kt[ct];return!1}return!1},next:function(){if(this.done)return this.EOF;var It,He,he,jt;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var Kt=this._currentRules(),ct=0;ct<Kt.length;ct++)if((he=this._input.match(this.rules[Kt[ct]]))&&(!He||he[0].length>He[0].length)){if(He=he,jt=ct,this.options.backtrack_lexer){if((It=this.test_match(he,Kt[ct]))!==!1)return It;if(this._backtrack){He=!1;continue}return!1}if(!this.options.flex)break}return He?(It=this.test_match(He,Kt[jt]))!==!1&&It: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(It){this.conditionStack.push(It)},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(It){return(It=this.conditionStack.length-1-Math.abs(It||0))>=0?this.conditionStack[It]:"INITIAL"},pushState:function(It){this.begin(It)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(It,He,he,jt){switch(he){case 0:return this.begin("open_directive"),67;case 1:return this.begin("type_directive"),68;case 2:return this.popState(),this.begin("arg_directive"),14;case 3:return this.popState(),this.popState(),70;case 4:return 69;case 5:case 39:case 52: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 He.yytext=He.yytext.trim(),this.begin("ALIAS"),57;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"),32;case 17:return this.begin("LINE"),34;case 18:return this.begin("LINE"),35;case 19:return this.begin("LINE"),36;case 20:return this.begin("LINE"),41;case 21:return this.begin("LINE"),38;case 22:return this.begin("LINE"),40;case 23:return this.popState(),19;case 24:return 33;case 25:return 52;case 26:return 53;case 27:return 46;case 28:return 47;case 29:return 48;case 30:return 49;case 31:return 44;case 32:return 42;case 33:return this.begin("ID"),23;case 34:return this.begin("ID"),24;case 35:return 30;case 36:return 7;case 37:return 22;case 38:return 51;case 40:return He.yytext=He.yytext.trim(),57;case 41:return 60;case 42:return 61;case 43:return 58;case 44:return 59;case 45:return 62;case 46:return 63;case 47:return 64;case 48:return 65;case 49:return 66;case 50:return 55;case 51:return 56;case 53: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\b)/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],inclusive:!0}}};function ye(){this.yy={}}return oe.lexer=le,ye.prototype=oe,oe.Parser=ye,new ye}();s.parser=l,s.Parser=l.Parser,s.parse=function(){return l.parse.apply(l,arguments)},s.main=function(c){c[1]||(console.log("Usage: "+c[0]+" FILE"),process.exit(1));var y=o(1993).readFileSync(o(6470).normalize(c[1]),"utf8");return s.parser.parse(y)},o.c[o.s]===r&&s.main(process.argv.slice(1))},3584:(r,s,o)=>{r=o.nmd(r);var l=function(){var c=function(Bt,Gt,oe,le){for(oe=oe||{},le=Bt.length;le--;oe[Bt[le]]=Gt);return oe},y=[1,2],p=[1,3],b=[1,5],T=[1,7],k=[2,5],D=[1,15],O=[1,17],R=[1,19],z=[1,20],$=[1,21],q=[1,22],V=[1,30],X=[1,23],it=[1,24],tt=[1,25],rt=[1,26],ut=[1,27],Ct=[1,32],et=[1,33],K=[1,34],ht=[1,35],xt=[1,31],St=[1,38],pt=[1,4,5,14,15,17,19,20,22,23,24,25,26,27,36,37,38,39,42,45],wt=[1,4,5,12,13,14,15,17,19,20,22,23,24,25,26,27,36,37,38,39,42,45],Ht=[1,4,5,7,14,15,17,19,20,22,23,24,25,26,27,36,37,38,39,42,45],Pt=[4,5,14,15,17,19,20,22,23,24,25,26,27,36,37,38,39,42,45],ge={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(Bt,Gt,oe,le,ye,It,He){var he=It.length-1;switch(ye){case 4:return le.setRootDoc(It[he]),It[he];case 5:this.$=[];break;case 6:It[he]!="nl"&&(It[he-1].push(It[he]),this.$=It[he-1]);break;case 7:case 8:case 36:case 37:this.$=It[he];break;case 9:this.$="nl";break;case 10:this.$={stmt:"state",id:It[he],type:"default",description:""};break;case 11:this.$={stmt:"state",id:It[he-1],type:"default",description:le.trimColon(It[he])};break;case 12:this.$={stmt:"relation",state1:{stmt:"state",id:It[he-2],type:"default",description:""},state2:{stmt:"state",id:It[he],type:"default",description:""}};break;case 13:this.$={stmt:"relation",state1:{stmt:"state",id:It[he-3],type:"default",description:""},state2:{stmt:"state",id:It[he-1],type:"default",description:""},description:It[he].substr(1).trim()};break;case 17:this.$={stmt:"state",id:It[he-3],type:"default",description:"",doc:It[he-1]};break;case 18:var jt=It[he],Kt=It[he-2].trim();if(It[he].match(":")){var ct=It[he].split(":");jt=ct[0],Kt=[Kt,ct[1]]}this.$={stmt:"state",id:jt,type:"default",description:Kt};break;case 19:this.$={stmt:"state",id:It[he-3],type:"default",description:It[he-5],doc:It[he-1]};break;case 20:this.$={stmt:"state",id:It[he],type:"fork"};break;case 21:this.$={stmt:"state",id:It[he],type:"join"};break;case 22:this.$={stmt:"state",id:It[he],type:"choice"};break;case 23:this.$={stmt:"state",id:le.getDividerId(),type:"divider"};break;case 24:this.$={stmt:"state",id:It[he-1].trim(),note:{position:It[he-2].trim(),text:It[he].trim()}};break;case 30:le.setDirection("TB"),this.$={stmt:"dir",value:"TB"};break;case 31:le.setDirection("BT"),this.$={stmt:"dir",value:"BT"};break;case 32:le.setDirection("RL"),this.$={stmt:"dir",value:"RL"};break;case 33:le.setDirection("LR"),this.$={stmt:"dir",value:"LR"};break;case 40:le.parseDirective("%%{","open_directive");break;case 41:le.parseDirective(It[he],"type_directive");break;case 42:It[he]=It[he].trim().replace(/'/g,'"'),le.parseDirective(It[he],"arg_directive");break;case 43:le.parseDirective("}%%","close_directive","state")}},table:[{3:1,4:y,5:p,6:4,7:b,31:6,45:T},{1:[3]},{3:8,4:y,5:p,6:4,7:b,31:6,45:T},{3:9,4:y,5:p,6:4,7:b,31:6,45:T},{3:10,4:y,5:p,6:4,7:b,31:6,45:T},c([1,4,5,14,15,17,20,22,23,24,25,26,27,36,37,38,39,42,45],k,{8:11}),{32:12,46:[1,13]},{46:[2,40]},{1:[2,1]},{1:[2,2]},{1:[2,3]},{1:[2,4],4:D,5:O,6:28,9:14,10:16,11:18,14:R,15:z,17:$,20:q,22:V,23:X,24:it,25:tt,26:rt,27:ut,30:29,31:6,36:Ct,37:et,38:K,39:ht,42:xt,45:T},{33:36,34:[1,37],48:St},c([34,48],[2,41]),c(pt,[2,6]),{6:28,10:39,11:18,14:R,15:z,17:$,20:q,22:V,23:X,24:it,25:tt,26:rt,27:ut,30:29,31:6,36:Ct,37:et,38:K,39:ht,42:xt,45:T},c(pt,[2,8]),c(pt,[2,9]),c(pt,[2,10],{12:[1,40],13:[1,41]}),c(pt,[2,14]),{16:[1,42]},c(pt,[2,16],{18:[1,43]}),{21:[1,44]},c(pt,[2,20]),c(pt,[2,21]),c(pt,[2,22]),c(pt,[2,23]),{28:45,29:[1,46],43:[1,47],44:[1,48]},c(pt,[2,26]),c(pt,[2,27]),c(wt,[2,36]),c(wt,[2,37]),c(pt,[2,30]),c(pt,[2,31]),c(pt,[2,32]),c(pt,[2,33]),c(Ht,[2,28]),{35:49,47:[1,50]},c(Ht,[2,43]),c(pt,[2,7]),c(pt,[2,11]),{11:51,22:V,42:xt},c(pt,[2,15]),c(Pt,k,{8:52}),{22:[1,53]},{22:[1,54]},{21:[1,55]},{22:[2,38]},{22:[2,39]},{33:56,48:St},{48:[2,42]},c(pt,[2,12],{12:[1,57]}),{4:D,5:O,6:28,9:14,10:16,11:18,14:R,15:z,17:$,19:[1,58],20:q,22:V,23:X,24:it,25:tt,26:rt,27:ut,30:29,31:6,36:Ct,37:et,38:K,39:ht,42:xt,45:T},c(pt,[2,18],{18:[1,59]}),{29:[1,60]},{22:[1,61]},c(Ht,[2,29]),c(pt,[2,13]),c(pt,[2,17]),c(Pt,k,{8:62}),c(pt,[2,24]),c(pt,[2,25]),{4:D,5:O,6:28,9:14,10:16,11:18,14:R,15:z,17:$,19:[1,63],20:q,22:V,23:X,24:it,25:tt,26:rt,27:ut,30:29,31:6,36:Ct,37:et,38:K,39:ht,42:xt,45:T},c(pt,[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(Bt,Gt){if(!Gt.recoverable){var oe=new Error(Bt);throw oe.hash=Gt,oe}this.trace(Bt)},parse:function(Bt){var Gt=this,oe=[0],le=[],ye=[null],It=[],He=this.table,he="",jt=0,Kt=0,ct=0,te=2,Dt=1,Vt=It.slice.call(arguments,1),$t=Object.create(this.lexer),Nt={yy:{}};for(var ie in this.yy)Object.prototype.hasOwnProperty.call(this.yy,ie)&&(Nt.yy[ie]=this.yy[ie]);$t.setInput(Bt,Nt.yy),Nt.yy.lexer=$t,Nt.yy.parser=this,$t.yylloc===void 0&&($t.yylloc={});var Qe=$t.yylloc;It.push(Qe);var be=$t.options&&$t.options.ranges;function Ce(){var en;return typeof(en=le.pop()||$t.lex()||Dt)!="number"&&(en instanceof Array&&(en=(le=en).pop()),en=Gt.symbols_[en]||en),en}typeof Nt.yy.parseError=="function"?this.parseError=Nt.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var un,Ve,Le,ke,Je,Ye,Ge,Ze,De,zn={};;){if(Le=oe[oe.length-1],this.defaultActions[Le]?ke=this.defaultActions[Le]:(un==null&&(un=Ce()),ke=He[Le]&&He[Le][un]),ke===void 0||!ke.length||!ke[0]){var Te="";for(Ye in De=[],He[Le])this.terminals_[Ye]&&Ye>te&&De.push("'"+this.terminals_[Ye]+"'");Te=$t.showPosition?"Parse error on line "+(jt+1)+`:
|
|
`+$t.showPosition()+`
|
|
Expecting `+De.join(", ")+", got '"+(this.terminals_[un]||un)+"'":"Parse error on line "+(jt+1)+": Unexpected "+(un==Dt?"end of input":"'"+(this.terminals_[un]||un)+"'"),this.parseError(Te,{text:$t.match,token:this.terminals_[un]||un,line:$t.yylineno,loc:Qe,expected:De})}if(ke[0]instanceof Array&&ke.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Le+", token: "+un);switch(ke[0]){case 1:oe.push(un),ye.push($t.yytext),It.push($t.yylloc),oe.push(ke[1]),un=null,Ve?(un=Ve,Ve=null):(Kt=$t.yyleng,he=$t.yytext,jt=$t.yylineno,Qe=$t.yylloc,ct>0);break;case 2:if(Ge=this.productions_[ke[1]][1],zn.$=ye[ye.length-Ge],zn._$={first_line:It[It.length-(Ge||1)].first_line,last_line:It[It.length-1].last_line,first_column:It[It.length-(Ge||1)].first_column,last_column:It[It.length-1].last_column},be&&(zn._$.range=[It[It.length-(Ge||1)].range[0],It[It.length-1].range[1]]),(Je=this.performAction.apply(zn,[he,Kt,jt,Nt.yy,ke[1],ye,It].concat(Vt)))!==void 0)return Je;Ge&&(oe=oe.slice(0,-1*Ge*2),ye=ye.slice(0,-1*Ge),It=It.slice(0,-1*Ge)),oe.push(this.productions_[ke[1]][0]),ye.push(zn.$),It.push(zn._$),Ze=He[oe[oe.length-2]][oe[oe.length-1]],oe.push(Ze);break;case 3:return!0}}return!0}},pe={EOF:1,parseError:function(Bt,Gt){if(!this.yy.parser)throw new Error(Bt);this.yy.parser.parseError(Bt,Gt)},setInput:function(Bt,Gt){return this.yy=Gt||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 Gt=Bt.length,oe=Bt.split(/(?:\r\n?|\n)/g);this._input=Bt+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-Gt),this.offset-=Gt;var le=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),oe.length-1&&(this.yylineno-=oe.length-1);var ye=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:oe?(oe.length===le.length?this.yylloc.first_column:0)+le[le.length-oe.length].length-oe[0].length:this.yylloc.first_column-Gt},this.options.ranges&&(this.yylloc.range=[ye[0],ye[0]+this.yyleng-Gt]),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(),Gt=new Array(Bt.length+1).join("-");return Bt+this.upcomingInput()+`
|
|
`+Gt+"^"},test_match:function(Bt,Gt){var oe,le,ye;if(this.options.backtrack_lexer&&(ye={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&&(ye.yylloc.range=this.yylloc.range.slice(0))),(le=Bt[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=le.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:le?le[le.length-1].length-le[le.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],oe=this.performAction.call(this,this.yy,this,Gt,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),oe)return oe;if(this._backtrack){for(var It in ye)this[It]=ye[It];return!1}return!1},next:function(){if(this.done)return this.EOF;var Bt,Gt,oe,le;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var ye=this._currentRules(),It=0;It<ye.length;It++)if((oe=this._input.match(this.rules[ye[It]]))&&(!Gt||oe[0].length>Gt[0].length)){if(Gt=oe,le=It,this.options.backtrack_lexer){if((Bt=this.test_match(oe,ye[It]))!==!1)return Bt;if(this._backtrack){Gt=!1;continue}return!1}if(!this.options.flex)break}return Gt?(Bt=this.test_match(Gt,ye[le]))!==!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,Gt,oe,le){switch(oe){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(),Gt.yytext=Gt.yytext.slice(0,-8).trim(),23;case 21:case 24:return this.popState(),Gt.yytext=Gt.yytext.slice(0,-8).trim(),24;case 22:case 25:return this.popState(),Gt.yytext=Gt.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(),Gt.yytext=Gt.yytext.substr(2).trim(),29;case 50:return this.popState(),Gt.yytext=Gt.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 Gt.yytext=Gt.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,/^(?:.*<<fork>>)/i,/^(?:.*<<join>>)/i,/^(?:.*<<choice>>)/i,/^(?:.*\[\[fork\]\])/i,/^(?:.*\[\[join\]\])/i,/^(?:.*\[\[choice\]\])/i,/^(?:.*direction\s+TB[^\n]*)/i,/^(?:.*direction\s+BT[^\n]*)/i,/^(?:.*direction\s+RL[^\n]*)/i,/^(?:.*direction\s+LR[^\n]*)/i,/^(?:["])/i,/^(?:\s*as\s+)/i,/^(?:[^\n\{]*)/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:[^\n\s\{]+)/i,/^(?:\n)/i,/^(?:\{)/i,/^(?:\})/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 de(){this.yy={}}return ge.lexer=pe,de.prototype=ge,ge.Parser=de,new de}();s.parser=l,s.Parser=l.Parser,s.parse=function(){return l.parse.apply(l,arguments)},s.main=function(c){c[1]||(console.log("Usage: "+c[0]+" FILE"),process.exit(1));var y=o(3069).readFileSync(o(6470).normalize(c[1]),"utf8");return s.parser.parse(y)},o.c[o.s]===r&&s.main(process.argv.slice(1))},9763:(r,s,o)=>{r=o.nmd(r);var l=function(){var c=function(V,X,it,tt){for(it=it||{},tt=V.length;tt--;it[V[tt]]=X);return it},y=[1,2],p=[1,5],b=[6,9,11,17,18,19,21],T=[1,15],k=[1,16],D=[1,17],O=[1,21],R=[4,6,9,11,17,18,19,21],z={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(V,X,it,tt,rt,ut,Ct){var et=ut.length-1;switch(rt){case 1:return ut[et-1];case 3:case 7:case 8:this.$=[];break;case 4:ut[et-1].push(ut[et]),this.$=ut[et-1];break;case 5:case 6:this.$=ut[et];break;case 11:tt.setTitle(ut[et].substr(6)),this.$=ut[et].substr(6);break;case 12:tt.addSection(ut[et].substr(8)),this.$=ut[et].substr(8);break;case 13:tt.addTask(ut[et-1],ut[et]),this.$="task";break;case 15:tt.parseDirective("%%{","open_directive");break;case 16:tt.parseDirective(ut[et],"type_directive");break;case 17:ut[et]=ut[et].trim().replace(/'/g,'"'),tt.parseDirective(ut[et],"arg_directive");break;case 18:tt.parseDirective("}%%","close_directive","journey")}},table:[{3:1,4:y,7:3,12:4,21:p},{1:[3]},c(b,[2,3],{5:6}),{3:7,4:y,7:3,12:4,21:p},{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:T,18:k,19:D,21:p},{1:[2,2]},{14:19,15:[1,20],24:O},c([15,24],[2,16]),c(b,[2,8],{1:[2,1]}),c(b,[2,4]),{7:18,10:22,12:4,17:T,18:k,19:D,21:p},c(b,[2,6]),c(b,[2,7]),c(b,[2,11]),c(b,[2,12]),{20:[1,23]},c(b,[2,14]),{11:[1,24]},{16:25,23:[1,26]},{11:[2,18]},c(b,[2,5]),c(b,[2,13]),c(R,[2,9]),{14:27,24:O},{24:[2,17]},{11:[1,28]},c(R,[2,10])],defaultActions:{5:[2,15],7:[2,2],21:[2,18],26:[2,17]},parseError:function(V,X){if(!X.recoverable){var it=new Error(V);throw it.hash=X,it}this.trace(V)},parse:function(V){var X=this,it=[0],tt=[],rt=[null],ut=[],Ct=this.table,et="",K=0,ht=0,xt=0,St=2,pt=1,wt=ut.slice.call(arguments,1),Ht=Object.create(this.lexer),Pt={yy:{}};for(var ge in this.yy)Object.prototype.hasOwnProperty.call(this.yy,ge)&&(Pt.yy[ge]=this.yy[ge]);Ht.setInput(V,Pt.yy),Pt.yy.lexer=Ht,Pt.yy.parser=this,Ht.yylloc===void 0&&(Ht.yylloc={});var pe=Ht.yylloc;ut.push(pe);var de=Ht.options&&Ht.options.ranges;function Bt(){var Dt;return typeof(Dt=tt.pop()||Ht.lex()||pt)!="number"&&(Dt instanceof Array&&(Dt=(tt=Dt).pop()),Dt=X.symbols_[Dt]||Dt),Dt}typeof Pt.yy.parseError=="function"?this.parseError=Pt.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var Gt,oe,le,ye,It,He,he,jt,Kt,ct={};;){if(le=it[it.length-1],this.defaultActions[le]?ye=this.defaultActions[le]:(Gt==null&&(Gt=Bt()),ye=Ct[le]&&Ct[le][Gt]),ye===void 0||!ye.length||!ye[0]){var te="";for(He in Kt=[],Ct[le])this.terminals_[He]&&He>St&&Kt.push("'"+this.terminals_[He]+"'");te=Ht.showPosition?"Parse error on line "+(K+1)+`:
|
|
`+Ht.showPosition()+`
|
|
Expecting `+Kt.join(", ")+", got '"+(this.terminals_[Gt]||Gt)+"'":"Parse error on line "+(K+1)+": Unexpected "+(Gt==pt?"end of input":"'"+(this.terminals_[Gt]||Gt)+"'"),this.parseError(te,{text:Ht.match,token:this.terminals_[Gt]||Gt,line:Ht.yylineno,loc:pe,expected:Kt})}if(ye[0]instanceof Array&&ye.length>1)throw new Error("Parse Error: multiple actions possible at state: "+le+", token: "+Gt);switch(ye[0]){case 1:it.push(Gt),rt.push(Ht.yytext),ut.push(Ht.yylloc),it.push(ye[1]),Gt=null,oe?(Gt=oe,oe=null):(ht=Ht.yyleng,et=Ht.yytext,K=Ht.yylineno,pe=Ht.yylloc,xt>0);break;case 2:if(he=this.productions_[ye[1]][1],ct.$=rt[rt.length-he],ct._$={first_line:ut[ut.length-(he||1)].first_line,last_line:ut[ut.length-1].last_line,first_column:ut[ut.length-(he||1)].first_column,last_column:ut[ut.length-1].last_column},de&&(ct._$.range=[ut[ut.length-(he||1)].range[0],ut[ut.length-1].range[1]]),(It=this.performAction.apply(ct,[et,ht,K,Pt.yy,ye[1],rt,ut].concat(wt)))!==void 0)return It;he&&(it=it.slice(0,-1*he*2),rt=rt.slice(0,-1*he),ut=ut.slice(0,-1*he)),it.push(this.productions_[ye[1]][0]),rt.push(ct.$),ut.push(ct._$),jt=Ct[it[it.length-2]][it[it.length-1]],it.push(jt);break;case 3:return!0}}return!0}},$={EOF:1,parseError:function(V,X){if(!this.yy.parser)throw new Error(V);this.yy.parser.parseError(V,X)},setInput:function(V,X){return this.yy=X||this.yy||{},this._input=V,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 V=this._input[0];return this.yytext+=V,this.yyleng++,this.offset++,this.match+=V,this.matched+=V,V.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),V},unput:function(V){var X=V.length,it=V.split(/(?:\r\n?|\n)/g);this._input=V+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-X),this.offset-=X;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),it.length-1&&(this.yylineno-=it.length-1);var rt=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:it?(it.length===tt.length?this.yylloc.first_column:0)+tt[tt.length-it.length].length-it[0].length:this.yylloc.first_column-X},this.options.ranges&&(this.yylloc.range=[rt[0],rt[0]+this.yyleng-X]),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(V){this.unput(this.match.slice(V))},pastInput:function(){var V=this.matched.substr(0,this.matched.length-this.match.length);return(V.length>20?"...":"")+V.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var V=this.match;return V.length<20&&(V+=this._input.substr(0,20-V.length)),(V.substr(0,20)+(V.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var V=this.pastInput(),X=new Array(V.length+1).join("-");return V+this.upcomingInput()+`
|
|
`+X+"^"},test_match:function(V,X){var it,tt,rt;if(this.options.backtrack_lexer&&(rt={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&&(rt.yylloc.range=this.yylloc.range.slice(0))),(tt=V[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+V[0].length},this.yytext+=V[0],this.match+=V[0],this.matches=V,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(V[0].length),this.matched+=V[0],it=this.performAction.call(this,this.yy,this,X,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),it)return it;if(this._backtrack){for(var ut in rt)this[ut]=rt[ut];return!1}return!1},next:function(){if(this.done)return this.EOF;var V,X,it,tt;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var rt=this._currentRules(),ut=0;ut<rt.length;ut++)if((it=this._input.match(this.rules[rt[ut]]))&&(!X||it[0].length>X[0].length)){if(X=it,tt=ut,this.options.backtrack_lexer){if((V=this.test_match(it,rt[ut]))!==!1)return V;if(this._backtrack){X=!1;continue}return!1}if(!this.options.flex)break}return X?(V=this.test_match(X,rt[tt]))!==!1&&V: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(V){this.conditionStack.push(V)},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(V){return(V=this.conditionStack.length-1-Math.abs(V||0))>=0?this.conditionStack[V]:"INITIAL"},pushState:function(V){this.begin(V)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(V,X,it,tt){switch(it){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 q(){this.yy={}}return z.lexer=$,q.prototype=z,z.Parser=q,new q}();s.parser=l,s.Parser=l.Parser,s.parse=function(){return l.parse.apply(l,arguments)},s.main=function(c){c[1]||(console.log("Usage: "+c[0]+" FILE"),process.exit(1));var y=o(9143).readFileSync(o(6470).normalize(c[1]),"utf8");return s.parser.parse(y)},o.c[o.s]===r&&s.main(process.argv.slice(1))},9609:r=>{var s=/^(%20|\s)*(javascript|data)/im,o=/[^\x20-\x7E]/gim,l=/^([^:]+):/gm,c=[".","/"];r.exports={sanitizeUrl:function(y){if(!y)return"about:blank";var p,b,T=y.replace(o,"").trim();return function(k){return c.indexOf(k[0])>-1}(T)?T:(b=T.match(l))?(p=b[0],s.test(p)?"about:blank":T):"about:blank"}}},3841:r=>{r.exports=function(s,o){return s.intersect(o)}},7458:(r,s,o)=>{o.d(s,{Z:()=>tT});var l=o(1941),c=o.n(l),y={debug:1,info:2,warn:3,error:4,fatal:5},p={debug:function(){},info:function(){},warn:function(){},error:function(){},fatal:function(){}},b=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"fatal";isNaN(t)&&(t=t.toLowerCase(),y[t]!==void 0&&(t=y[t])),p.trace=function(){},p.debug=function(){},p.info=function(){},p.warn=function(){},p.error=function(){},p.fatal=function(){},t<=y.fatal&&(p.fatal=console.error?console.error.bind(console,T("FATAL"),"color: orange"):console.log.bind(console,"[35m",T("FATAL"))),t<=y.error&&(p.error=console.error?console.error.bind(console,T("ERROR"),"color: orange"):console.log.bind(console,"[31m",T("ERROR"))),t<=y.warn&&(p.warn=console.warn?console.warn.bind(console,T("WARN"),"color: orange"):console.log.bind(console,"[33m",T("WARN"))),t<=y.info&&(p.info=console.info?console.info.bind(console,T("INFO"),"color: lightblue"):console.log.bind(console,"[34m",T("INFO"))),t<=y.debug&&(p.debug=console.debug?console.debug.bind(console,T("DEBUG"),"color: lightgreen"):console.log.bind(console,"[32m",T("DEBUG")))},T=function(t){var e=c()().format("ss.SSS");return"%c".concat(e," : ").concat(t," : ")};function k(t,e){let i;if(e===void 0)for(const u of t)u!=null&&(i<u||i===void 0&&u>=u)&&(i=u);else{let u=-1;for(let d of t)(d=e(d,++u,t))!=null&&(i<d||i===void 0&&d>=d)&&(i=d)}return i}function D(t,e){let i;if(e===void 0)for(const u of t)u!=null&&(i>u||i===void 0&&u>=u)&&(i=u);else{let u=-1;for(let d of t)(d=e(d,++u,t))!=null&&(i>d||i===void 0&&d>=d)&&(i=d)}return i}function O(t){return t}var R=1e-6;function z(t){return"translate("+t+",0)"}function $(t){return"translate(0,"+t+")"}function q(t){return e=>+t(e)}function V(t,e){return e=Math.max(0,t.bandwidth()-2*e)/2,t.round()&&(e=Math.round(e)),i=>+t(i)+e}function X(){return!this.__axis}function it(t,e){var i=[],u=null,d=null,g=6,v=6,w=3,C=typeof window!="undefined"&&window.devicePixelRatio>1?0:.5,S=t===1||t===4?-1:1,L=t===4||t===2?"x":"y",j=t===1||t===3?z:$;function P(U){var ot=u==null?e.ticks?e.ticks.apply(e,i):e.domain():u,vt=d==null?e.tickFormat?e.tickFormat.apply(e,i):O:d,bt=Math.max(g,0)+w,kt=e.range(),_t=+kt[0]+C,lt=+kt[kt.length-1]+C,Wt=(e.bandwidth?V:q)(e.copy(),C),Ot=U.selection?U.selection():U,gt=Ot.selectAll(".domain").data([null]),Lt=Ot.selectAll(".tick").data(ot,e).order(),ee=Lt.exit(),At=Lt.enter().append("g").attr("class","tick"),Tt=Lt.select("line"),zt=Lt.select("text");gt=gt.merge(gt.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),Lt=Lt.merge(At),Tt=Tt.merge(At.append("line").attr("stroke","currentColor").attr(L+"2",S*g)),zt=zt.merge(At.append("text").attr("fill","currentColor").attr(L,S*bt).attr("dy",t===1?"0em":t===3?"0.71em":"0.32em")),U!==Ot&&(gt=gt.transition(U),Lt=Lt.transition(U),Tt=Tt.transition(U),zt=zt.transition(U),ee=ee.transition(U).attr("opacity",R).attr("transform",function(Mt){return isFinite(Mt=Wt(Mt))?j(Mt+C):this.getAttribute("transform")}),At.attr("opacity",R).attr("transform",function(Mt){var Jt=this.parentNode.__axis;return j((Jt&&isFinite(Jt=Jt(Mt))?Jt:Wt(Mt))+C)})),ee.remove(),gt.attr("d",t===4||t===2?v?"M"+S*v+","+_t+"H"+C+"V"+lt+"H"+S*v:"M"+C+","+_t+"V"+lt:v?"M"+_t+","+S*v+"V"+C+"H"+lt+"V"+S*v:"M"+_t+","+C+"H"+lt),Lt.attr("opacity",1).attr("transform",function(Mt){return j(Wt(Mt)+C)}),Tt.attr(L+"2",S*g),zt.attr(L,S*bt).text(vt),Ot.filter(X).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",t===2?"start":t===4?"end":"middle"),Ot.each(function(){this.__axis=Wt})}return P.scale=function(U){return arguments.length?(e=U,P):e},P.ticks=function(){return i=Array.from(arguments),P},P.tickArguments=function(U){return arguments.length?(i=U==null?[]:Array.from(U),P):i.slice()},P.tickValues=function(U){return arguments.length?(u=U==null?null:Array.from(U),P):u&&u.slice()},P.tickFormat=function(U){return arguments.length?(d=U,P):d},P.tickSize=function(U){return arguments.length?(g=v=+U,P):g},P.tickSizeInner=function(U){return arguments.length?(g=+U,P):g},P.tickSizeOuter=function(U){return arguments.length?(v=+U,P):v},P.tickPadding=function(U){return arguments.length?(w=+U,P):w},P.offset=function(U){return arguments.length?(C=+U,P):C},P}function tt(){}function rt(t){return t==null?tt:function(){return this.querySelector(t)}}function ut(t){return t==null?[]:Array.isArray(t)?t:Array.from(t)}function Ct(){return[]}function et(t){return t==null?Ct:function(){return this.querySelectorAll(t)}}function K(t){return function(){return this.matches(t)}}function ht(t){return function(e){return e.matches(t)}}var xt=Array.prototype.find;function St(){return this.firstElementChild}var pt=Array.prototype.filter;function wt(){return Array.from(this.children)}function Ht(t){return new Array(t.length)}function Pt(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}function ge(t){return function(){return t}}function pe(t,e,i,u,d,g){for(var v,w=0,C=e.length,S=g.length;w<S;++w)(v=e[w])?(v.__data__=g[w],u[w]=v):i[w]=new Pt(t,g[w]);for(;w<C;++w)(v=e[w])&&(d[w]=v)}function de(t,e,i,u,d,g,v){var w,C,S,L=new Map,j=e.length,P=g.length,U=new Array(j);for(w=0;w<j;++w)(C=e[w])&&(U[w]=S=v.call(C,C.__data__,w,e)+"",L.has(S)?d[w]=C:L.set(S,C));for(w=0;w<P;++w)S=v.call(t,g[w],w,g)+"",(C=L.get(S))?(u[w]=C,C.__data__=g[w],L.delete(S)):i[w]=new Pt(t,g[w]);for(w=0;w<j;++w)(C=e[w])&&L.get(U[w])===C&&(d[w]=C)}function Bt(t){return t.__data__}function Gt(t){return typeof t=="object"&&"length"in t?t:Array.from(t)}function oe(t,e){return t<e?-1:t>e?1:t>=e?0:NaN}Pt.prototype={constructor:Pt,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 le="http://www.w3.org/1999/xhtml";const ye={svg:"http://www.w3.org/2000/svg",xhtml:le,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function It(t){var e=t+="",i=e.indexOf(":");return i>=0&&(e=t.slice(0,i))!=="xmlns"&&(t=t.slice(i+1)),ye.hasOwnProperty(e)?{space:ye[e],local:t}:t}function He(t){return function(){this.removeAttribute(t)}}function he(t){return function(){this.removeAttributeNS(t.space,t.local)}}function jt(t,e){return function(){this.setAttribute(t,e)}}function Kt(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}function ct(t,e){return function(){var i=e.apply(this,arguments);i==null?this.removeAttribute(t):this.setAttribute(t,i)}}function te(t,e){return function(){var i=e.apply(this,arguments);i==null?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,i)}}function Dt(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function Vt(t){return function(){this.style.removeProperty(t)}}function $t(t,e,i){return function(){this.style.setProperty(t,e,i)}}function Nt(t,e,i){return function(){var u=e.apply(this,arguments);u==null?this.style.removeProperty(t):this.style.setProperty(t,u,i)}}function ie(t,e){return t.style.getPropertyValue(e)||Dt(t).getComputedStyle(t,null).getPropertyValue(e)}function Qe(t){return function(){delete this[t]}}function be(t,e){return function(){this[t]=e}}function Ce(t,e){return function(){var i=e.apply(this,arguments);i==null?delete this[t]:this[t]=i}}function un(t){return t.trim().split(/^|\s+/)}function Ve(t){return t.classList||new Le(t)}function Le(t){this._node=t,this._names=un(t.getAttribute("class")||"")}function ke(t,e){for(var i=Ve(t),u=-1,d=e.length;++u<d;)i.add(e[u])}function Je(t,e){for(var i=Ve(t),u=-1,d=e.length;++u<d;)i.remove(e[u])}function Ye(t){return function(){ke(this,t)}}function Ge(t){return function(){Je(this,t)}}function Ze(t,e){return function(){(e.apply(this,arguments)?ke:Je)(this,t)}}function De(){this.textContent=""}function zn(t){return function(){this.textContent=t}}function Te(t){return function(){var e=t.apply(this,arguments);this.textContent=e==null?"":e}}function en(){this.innerHTML=""}function _n(t){return function(){this.innerHTML=t}}function Rr(t){return function(){var e=t.apply(this,arguments);this.innerHTML=e==null?"":e}}function bn(){this.nextSibling&&this.parentNode.appendChild(this)}function Jn(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function cn(t){return function(){var e=this.ownerDocument,i=this.namespaceURI;return i===le&&e.documentElement.namespaceURI===le?e.createElement(t):e.createElementNS(i,t)}}function yn(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function Xe(t){var e=It(t);return(e.local?yn:cn)(e)}function Cn(){return null}function Tn(){var t=this.parentNode;t&&t.removeChild(this)}function Un(){var t=this.cloneNode(!1),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function $n(){var t=this.cloneNode(!0),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function Nr(t){return t.trim().split(/^|\s+/).map(function(e){var i="",u=e.indexOf(".");return u>=0&&(i=e.slice(u+1),e=e.slice(0,u)),{type:e,name:i}})}function En(t){return function(){var e=this.__on;if(e){for(var i,u=0,d=-1,g=e.length;u<g;++u)i=e[u],t.type&&i.type!==t.type||i.name!==t.name?e[++d]=i:this.removeEventListener(i.type,i.listener,i.options);++d?e.length=d:delete this.__on}}}function Wn(t,e,i){return function(){var u,d=this.__on,g=function(C){return function(S){C.call(this,S,this.__data__)}}(e);if(d){for(var v=0,w=d.length;v<w;++v)if((u=d[v]).type===t.type&&u.name===t.name)return this.removeEventListener(u.type,u.listener,u.options),this.addEventListener(u.type,u.listener=g,u.options=i),void(u.value=e)}this.addEventListener(t.type,g,i),u={type:t.type,name:t.name,value:e,listener:g,options:i},d?d.push(u):this.__on=[u]}}function Yn(t,e,i){var u=Dt(t),d=u.CustomEvent;typeof d=="function"?d=new d(e,i):(d=u.document.createEvent("Event"),i?(d.initEvent(e,i.bubbles,i.cancelable),d.detail=i.detail):d.initEvent(e,!1,!1)),t.dispatchEvent(d)}function Vn(t,e){return function(){return Yn(this,t,e)}}function Gn(t,e){return function(){return Yn(this,t,e.apply(this,arguments))}}Le.prototype={add:function(t){this._names.indexOf(t)<0&&(this._names.push(t),this._node.setAttribute("class",this._names.join(" ")))},remove:function(t){var e=this._names.indexOf(t);e>=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};var tr=[null];function On(t,e){this._groups=t,this._parents=e}function In(){return new On([[document.documentElement]],tr)}On.prototype=In.prototype={constructor:On,select:function(t){typeof t!="function"&&(t=rt(t));for(var e=this._groups,i=e.length,u=new Array(i),d=0;d<i;++d)for(var g,v,w=e[d],C=w.length,S=u[d]=new Array(C),L=0;L<C;++L)(g=w[L])&&(v=t.call(g,g.__data__,L,w))&&("__data__"in g&&(v.__data__=g.__data__),S[L]=v);return new On(u,this._parents)},selectAll:function(t){t=typeof t=="function"?function(L){return function(){return ut(L.apply(this,arguments))}}(t):et(t);for(var e=this._groups,i=e.length,u=[],d=[],g=0;g<i;++g)for(var v,w=e[g],C=w.length,S=0;S<C;++S)(v=w[S])&&(u.push(t.call(v,v.__data__,S,w)),d.push(v));return new On(u,d)},selectChild:function(t){return this.select(t==null?St:function(e){return function(){return xt.call(this.children,e)}}(typeof t=="function"?t:ht(t)))},selectChildren:function(t){return this.selectAll(t==null?wt:function(e){return function(){return pt.call(this.children,e)}}(typeof t=="function"?t:ht(t)))},filter:function(t){typeof t!="function"&&(t=K(t));for(var e=this._groups,i=e.length,u=new Array(i),d=0;d<i;++d)for(var g,v=e[d],w=v.length,C=u[d]=[],S=0;S<w;++S)(g=v[S])&&t.call(g,g.__data__,S,v)&&C.push(g);return new On(u,this._parents)},data:function(t,e){if(!arguments.length)return Array.from(this,Bt);var i=e?de:pe,u=this._parents,d=this._groups;typeof t!="function"&&(t=ge(t));for(var g=d.length,v=new Array(g),w=new Array(g),C=new Array(g),S=0;S<g;++S){var L=u[S],j=d[S],P=j.length,U=Gt(t.call(L,L&&L.__data__,S,u)),ot=U.length,vt=w[S]=new Array(ot),bt=v[S]=new Array(ot),kt=C[S]=new Array(P);i(L,j,vt,bt,kt,U,e);for(var _t,lt,Wt=0,Ot=0;Wt<ot;++Wt)if(_t=vt[Wt]){for(Wt>=Ot&&(Ot=Wt+1);!(lt=bt[Ot])&&++Ot<ot;);_t._next=lt||null}}return(v=new On(v,u))._enter=w,v._exit=C,v},enter:function(){return new On(this._enter||this._groups.map(Ht),this._parents)},exit:function(){return new On(this._exit||this._groups.map(Ht),this._parents)},join:function(t,e,i){var u=this.enter(),d=this,g=this.exit();return typeof t=="function"?(u=t(u))&&(u=u.selection()):u=u.append(t+""),e!=null&&(d=e(d))&&(d=d.selection()),i==null?g.remove():i(g),u&&d?u.merge(d).order():d},merge:function(t){for(var e=t.selection?t.selection():t,i=this._groups,u=e._groups,d=i.length,g=u.length,v=Math.min(d,g),w=new Array(d),C=0;C<v;++C)for(var S,L=i[C],j=u[C],P=L.length,U=w[C]=new Array(P),ot=0;ot<P;++ot)(S=L[ot]||j[ot])&&(U[ot]=S);for(;C<d;++C)w[C]=i[C];return new On(w,this._parents)},selection:function(){return this},order:function(){for(var t=this._groups,e=-1,i=t.length;++e<i;)for(var u,d=t[e],g=d.length-1,v=d[g];--g>=0;)(u=d[g])&&(v&&4^u.compareDocumentPosition(v)&&v.parentNode.insertBefore(u,v),v=u);return this},sort:function(t){function e(j,P){return j&&P?t(j.__data__,P.__data__):!j-!P}t||(t=oe);for(var i=this._groups,u=i.length,d=new Array(u),g=0;g<u;++g){for(var v,w=i[g],C=w.length,S=d[g]=new Array(C),L=0;L<C;++L)(v=w[L])&&(S[L]=v);S.sort(e)}return new On(d,this._parents).order()},call:function(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this},nodes:function(){return Array.from(this)},node:function(){for(var t=this._groups,e=0,i=t.length;e<i;++e)for(var u=t[e],d=0,g=u.length;d<g;++d){var v=u[d];if(v)return v}return null},size:function(){let t=0;for(const e of this)++t;return t},empty:function(){return!this.node()},each:function(t){for(var e=this._groups,i=0,u=e.length;i<u;++i)for(var d,g=e[i],v=0,w=g.length;v<w;++v)(d=g[v])&&t.call(d,d.__data__,v,g);return this},attr:function(t,e){var i=It(t);if(arguments.length<2){var u=this.node();return i.local?u.getAttributeNS(i.space,i.local):u.getAttribute(i)}return this.each((e==null?i.local?he:He:typeof e=="function"?i.local?te:ct:i.local?Kt:jt)(i,e))},style:function(t,e,i){return arguments.length>1?this.each((e==null?Vt:typeof e=="function"?Nt:$t)(t,e,i==null?"":i)):ie(this.node(),t)},property:function(t,e){return arguments.length>1?this.each((e==null?Qe:typeof e=="function"?Ce:be)(t,e)):this.node()[t]},classed:function(t,e){var i=un(t+"");if(arguments.length<2){for(var u=Ve(this.node()),d=-1,g=i.length;++d<g;)if(!u.contains(i[d]))return!1;return!0}return this.each((typeof e=="function"?Ze:e?Ye:Ge)(i,e))},text:function(t){return arguments.length?this.each(t==null?De:(typeof t=="function"?Te:zn)(t)):this.node().textContent},html:function(t){return arguments.length?this.each(t==null?en:(typeof t=="function"?Rr:_n)(t)):this.node().innerHTML},raise:function(){return this.each(bn)},lower:function(){return this.each(Jn)},append:function(t){var e=typeof t=="function"?t:Xe(t);return this.select(function(){return this.appendChild(e.apply(this,arguments))})},insert:function(t,e){var i=typeof t=="function"?t:Xe(t),u=e==null?Cn:typeof e=="function"?e:rt(e);return this.select(function(){return this.insertBefore(i.apply(this,arguments),u.apply(this,arguments)||null)})},remove:function(){return this.each(Tn)},clone:function(t){return this.select(t?$n:Un)},datum:function(t){return arguments.length?this.property("__data__",t):this.node().__data__},on:function(t,e,i){var u,d,g=Nr(t+""),v=g.length;if(!(arguments.length<2)){for(w=e?Wn:En,u=0;u<v;++u)this.each(w(g[u],e,i));return this}var w=this.node().__on;if(w){for(var C,S=0,L=w.length;S<L;++S)for(u=0,C=w[S];u<v;++u)if((d=g[u]).type===C.type&&d.name===C.name)return C.value}},dispatch:function(t,e){return this.each((typeof e=="function"?Gn:Vn)(t,e))},[Symbol.iterator]:function*(){for(var t=this._groups,e=0,i=t.length;e<i;++e)for(var u,d=t[e],g=0,v=d.length;g<v;++g)(u=d[g])&&(yield u)}};const ln=In;var jn={value:()=>{}};function mn(){for(var t,e=0,i=arguments.length,u={};e<i;++e){if(!(t=arguments[e]+"")||t in u||/[\s.]/.test(t))throw new Error("illegal type: "+t);u[t]=[]}return new oi(u)}function oi(t){this._=t}function gr(t,e){return t.trim().split(/^|\s+/).map(function(i){var u="",d=i.indexOf(".");if(d>=0&&(u=i.slice(d+1),i=i.slice(0,d)),i&&!e.hasOwnProperty(i))throw new Error("unknown type: "+i);return{type:i,name:u}})}function ra(t,e){for(var i,u=0,d=t.length;u<d;++u)if((i=t[u]).name===e)return i.value}function Rn(t,e,i){for(var u=0,d=t.length;u<d;++u)if(t[u].name===e){t[u]=jn,t=t.slice(0,u).concat(t.slice(u+1));break}return i!=null&&t.push({name:e,value:i}),t}oi.prototype=mn.prototype={constructor:oi,on:function(t,e){var i,u=this._,d=gr(t+"",u),g=-1,v=d.length;if(!(arguments.length<2)){if(e!=null&&typeof e!="function")throw new Error("invalid callback: "+e);for(;++g<v;)if(i=(t=d[g]).type)u[i]=Rn(u[i],t.name,e);else if(e==null)for(i in u)u[i]=Rn(u[i],t.name,null);return this}for(;++g<v;)if((i=(t=d[g]).type)&&(i=ra(u[i],t.name)))return i},copy:function(){var t={},e=this._;for(var i in e)t[i]=e[i].slice();return new oi(t)},call:function(t,e){if((i=arguments.length-2)>0)for(var i,u,d=new Array(i),g=0;g<i;++g)d[g]=arguments[g+2];if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(g=0,i=(u=this._[t]).length;g<i;++g)u[g].value.apply(e,d)},apply:function(t,e,i){if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(var u=this._[t],d=0,g=u.length;d<g;++d)u[d].value.apply(e,i)}};const Io=mn;var xa,si,Fr=0,Ur=0,Xr=0,ti=0,Or=0,ei=0,Pr=typeof performance=="object"&&performance.now?performance:Date,Fi=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function fi(){return Or||(Fi(er),Or=Pr.now()+ei)}function er(){Or=0}function Vr(){this._call=this._time=this._next=null}function ka(t,e,i){var u=new Vr;return u.restart(t,e,i),u}function ni(){Or=(ti=Pr.now())+ei,Fr=Ur=0;try{(function(){fi(),++Fr;for(var t,e=xa;e;)(t=Or-e._time)>=0&&e._call.call(void 0,t),e=e._next;--Fr})()}finally{Fr=0,function(){for(var t,e,i=xa,u=1/0;i;)i._call?(u>i._time&&(u=i._time),t=i,i=i._next):(e=i._next,i._next=null,i=t?t._next=e:xa=e);si=t,xo(u)}(),Or=0}}function Ta(){var t=Pr.now(),e=t-ti;e>1e3&&(ei-=e,ti=t)}function xo(t){Fr||(Ur&&(Ur=clearTimeout(Ur)),t-Or>24?(t<1/0&&(Ur=setTimeout(ni,t-Pr.now()-ei)),Xr&&(Xr=clearInterval(Xr))):(Xr||(ti=Pr.now(),Xr=setInterval(Ta,1e3)),Fr=1,Fi(ni)))}function di(t,e,i){var u=new Vr;return e=e==null?0:+e,u.restart(d=>{u.stop(),t(d+e)},e,i),u}Vr.prototype=ka.prototype={constructor:Vr,restart:function(t,e,i){if(typeof t!="function")throw new TypeError("callback is not a function");i=(i==null?fi():+i)+(e==null?0:+e),this._next||si===this||(si?si._next=this:xa=this,si=this),this._call=t,this._time=i,xo()},stop:function(){this._call&&(this._call=null,this._time=1/0,xo())}};var nn=Io("start","end","cancel","interrupt"),Zn=[];function Mn(t,e,i,u,d,g){var v=t.__transition;if(v){if(i in v)return}else t.__transition={};(function(w,C,S){var L,j=w.__transition;function P(vt){var bt,kt,_t,lt;if(S.state!==1)return ot();for(bt in j)if((lt=j[bt]).name===S.name){if(lt.state===3)return di(P);lt.state===4?(lt.state=6,lt.timer.stop(),lt.on.call("interrupt",w,w.__data__,lt.index,lt.group),delete j[bt]):+bt<C&&(lt.state=6,lt.timer.stop(),lt.on.call("cancel",w,w.__data__,lt.index,lt.group),delete j[bt])}if(di(function(){S.state===3&&(S.state=4,S.timer.restart(U,S.delay,S.time),U(vt))}),S.state=2,S.on.call("start",w,w.__data__,S.index,S.group),S.state===2){for(S.state=3,L=new Array(_t=S.tween.length),bt=0,kt=-1;bt<_t;++bt)(lt=S.tween[bt].value.call(w,w.__data__,S.index,S.group))&&(L[++kt]=lt);L.length=kt+1}}function U(vt){for(var bt=vt<S.duration?S.ease.call(null,vt/S.duration):(S.timer.restart(ot),S.state=5,1),kt=-1,_t=L.length;++kt<_t;)L[kt].call(w,bt);S.state===5&&(S.on.call("end",w,w.__data__,S.index,S.group),ot())}function ot(){for(var vt in S.state=6,S.timer.stop(),delete j[C],j)return;delete w.__transition}j[C]=S,S.timer=ka(function(vt){S.state=1,S.timer.restart(P,S.delay,S.time),S.delay<=vt&&P(vt-S.delay)},0,S.time)})(t,i,{name:e,index:u,group:d,on:nn,tween:Zn,time:g.time,delay:g.delay,duration:g.duration,ease:g.ease,timer:null,state:0})}function Be(t,e){var i=mt(t,e);if(i.state>0)throw new Error("too late; already scheduled");return i}function Xn(t,e){var i=mt(t,e);if(i.state>3)throw new Error("too late; already running");return i}function mt(t,e){var i=t.__transition;if(!i||!(i=i[e]))throw new Error("transition not found");return i}function Kr(t,e){return t=+t,e=+e,function(i){return t*(1-i)+e*i}}var Zt,Pi=180/Math.PI,ya={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function eo(t,e,i,u,d,g){var v,w,C;return(v=Math.sqrt(t*t+e*e))&&(t/=v,e/=v),(C=t*i+e*u)&&(i-=t*C,u-=e*C),(w=Math.sqrt(i*i+u*u))&&(i/=w,u/=w,C/=w),t*u<e*i&&(t=-t,e=-e,C=-C,v=-v),{translateX:d,translateY:g,rotate:Math.atan2(e,t)*Pi,skewX:Math.atan(C)*Pi,scaleX:v,scaleY:w}}function ko(t,e,i,u){function d(g){return g.length?g.pop()+" ":""}return function(g,v){var w=[],C=[];return g=t(g),v=t(v),function(S,L,j,P,U,ot){if(S!==j||L!==P){var vt=U.push("translate(",null,e,null,i);ot.push({i:vt-4,x:Kr(S,j)},{i:vt-2,x:Kr(L,P)})}else(j||P)&&U.push("translate("+j+e+P+i)}(g.translateX,g.translateY,v.translateX,v.translateY,w,C),function(S,L,j,P){S!==L?(S-L>180?L+=360:L-S>180&&(S+=360),P.push({i:j.push(d(j)+"rotate(",null,u)-2,x:Kr(S,L)})):L&&j.push(d(j)+"rotate("+L+u)}(g.rotate,v.rotate,w,C),function(S,L,j,P){S!==L?P.push({i:j.push(d(j)+"skewX(",null,u)-2,x:Kr(S,L)}):L&&j.push(d(j)+"skewX("+L+u)}(g.skewX,v.skewX,w,C),function(S,L,j,P,U,ot){if(S!==j||L!==P){var vt=U.push(d(U)+"scale(",null,",",null,")");ot.push({i:vt-4,x:Kr(S,j)},{i:vt-2,x:Kr(L,P)})}else j===1&&P===1||U.push(d(U)+"scale("+j+","+P+")")}(g.scaleX,g.scaleY,v.scaleX,v.scaleY,w,C),g=v=null,function(S){for(var L,j=-1,P=C.length;++j<P;)w[(L=C[j]).i]=L.x(S);return w.join("")}}}var Ro=ko(function(t){const e=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(t+"");return e.isIdentity?ya:eo(e.a,e.b,e.c,e.d,e.e,e.f)},"px, ","px)","deg)"),Fo=ko(function(t){return t==null?ya:(Zt||(Zt=document.createElementNS("http://www.w3.org/2000/svg","g")),Zt.setAttribute("transform",t),(t=Zt.transform.baseVal.consolidate())?eo((t=t.matrix).a,t.b,t.c,t.d,t.e,t.f):ya)},", ",")",")");function Gr(t,e){var i,u;return function(){var d=Xn(this,t),g=d.tween;if(g!==i){for(var v=0,w=(u=i=g).length;v<w;++v)if(u[v].name===e){(u=u.slice()).splice(v,1);break}}d.tween=u}}function ia(t,e,i){var u,d;if(typeof i!="function")throw new Error;return function(){var g=Xn(this,t),v=g.tween;if(v!==u){d=(u=v).slice();for(var w={name:e,value:i},C=0,S=d.length;C<S;++C)if(d[C].name===e){d[C]=w;break}C===S&&d.push(w)}g.tween=d}}function Dn(t,e,i){var u=t._id;return t.each(function(){var d=Xn(this,u);(d.value||(d.value={}))[e]=i.apply(this,arguments)}),function(d){return mt(d,u).value[e]}}function Ua(t,e,i){t.prototype=e.prototype=i,i.constructor=t}function no(t,e){var i=Object.create(t.prototype);for(var u in e)i[u]=e[u];return i}function yr(){}var Cr=.7,ki=1/Cr,ri="\\s*([+-]?\\d+)\\s*",$r="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",Hr="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",pi=/^#([0-9a-f]{3,8})$/,Qr=new RegExp("^rgb\\("+[ri,ri,ri]+"\\)$"),aa=new RegExp("^rgb\\("+[Hr,Hr,Hr]+"\\)$"),Gi=new RegExp("^rgba\\("+[ri,ri,ri,$r]+"\\)$"),Yi=new RegExp("^rgba\\("+[Hr,Hr,Hr,$r]+"\\)$"),To=new RegExp("^hsl\\("+[$r,Hr,Hr]+"\\)$"),Ft=new RegExp("^hsla\\("+[$r,Hr,Hr,$r]+"\\)$"),je={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function Fe(){return this.rgb().formatHex()}function mr(){return this.rgb().formatRgb()}function br(t){var e,i;return t=(t+"").trim().toLowerCase(),(e=pi.exec(t))?(i=e[1].length,e=parseInt(e[1],16),i===6?Ti(e):i===3?new Di(e>>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):i===8?ii(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):i===4?ii(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=Qr.exec(t))?new Di(e[1],e[2],e[3],1):(e=aa.exec(t))?new Di(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=Gi.exec(t))?ii(e[1],e[2],e[3],e[4]):(e=Yi.exec(t))?ii(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=To.exec(t))?Eo(e[1],e[2]/100,e[3]/100,1):(e=Ft.exec(t))?Eo(e[1],e[2]/100,e[3]/100,e[4]):je.hasOwnProperty(t)?Ti(je[t]):t==="transparent"?new Di(NaN,NaN,NaN,0):null}function Ti(t){return new Di(t>>16&255,t>>8&255,255&t,1)}function ii(t,e,i,u){return u<=0&&(t=e=i=NaN),new Di(t,e,i,u)}function _c(t){return t instanceof yr||(t=br(t)),t?new Di((t=t.rgb()).r,t.g,t.b,t.opacity):new Di}function Ei(t,e,i,u){return arguments.length===1?_c(t):new Di(t,e,i,u==null?1:u)}function Di(t,e,i,u){this.r=+t,this.g=+e,this.b=+i,this.opacity=+u}function bc(){return"#"+gu(this.r)+gu(this.g)+gu(this.b)}function ro(){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 gu(t){return((t=Math.max(0,Math.min(255,Math.round(t)||0)))<16?"0":"")+t.toString(16)}function Eo(t,e,i,u){return u<=0?t=e=i=NaN:i<=0||i>=1?t=e=NaN:e<=0&&(t=NaN),new Zi(t,e,i,u)}function yu(t){if(t instanceof Zi)return new Zi(t.h,t.s,t.l,t.opacity);if(t instanceof yr||(t=br(t)),!t)return new Zi;if(t instanceof Zi)return t;var e=(t=t.rgb()).r/255,i=t.g/255,u=t.b/255,d=Math.min(e,i,u),g=Math.max(e,i,u),v=NaN,w=g-d,C=(g+d)/2;return w?(v=e===g?(i-u)/w+6*(i<u):i===g?(u-e)/w+2:(e-i)/w+4,w/=C<.5?g+d:2-g-d,v*=60):w=C>0&&C<1?0:v,new Zi(v,w,C,t.opacity)}function Zi(t,e,i,u){this.h=+t,this.s=+e,this.l=+i,this.opacity=+u}function ai(t,e,i){return 255*(t<60?e+(i-e)*t/60:t<180?i:t<240?e+(i-e)*(240-t)/60:e)}Ua(yr,br,{copy:function(t){return Object.assign(new this.constructor,this,t)},displayable:function(){return this.rgb().displayable()},hex:Fe,formatHex:Fe,formatHsl:function(){return yu(this).formatHsl()},formatRgb:mr,toString:mr}),Ua(Di,Ei,no(yr,{brighter:function(t){return t=t==null?ki:Math.pow(ki,t),new Di(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=t==null?Cr:Math.pow(Cr,t),new Di(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:bc,formatHex:bc,formatRgb:ro,toString:ro})),Ua(Zi,function(t,e,i,u){return arguments.length===1?yu(t):new Zi(t,e,i,u==null?1:u)},no(yr,{brighter:function(t){return t=t==null?ki:Math.pow(ki,t),new Zi(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=t==null?Cr:Math.pow(Cr,t),new Zi(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,i=this.l,u=i+(i<.5?i:1-i)*e,d=2*i-u;return new Di(ai(t>=240?t-240:t+120,d,u),ai(t,d,u),ai(t<120?t+240:t-120,d,u),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 pl=t=>()=>t;function gl(t,e){var i=e-t;return i?function(u,d){return function(g){return u+g*d}}(t,i):pl(isNaN(t)?e:t)}const yl=function t(e){var i=function(d){return(d=+d)==1?gl:function(g,v){return v-g?function(w,C,S){return w=Math.pow(w,S),C=Math.pow(C,S)-w,S=1/S,function(L){return Math.pow(w+L*C,S)}}(g,v,d):pl(isNaN(g)?v:g)}}(e);function u(d,g){var v=i((d=Ei(d)).r,(g=Ei(g)).r),w=i(d.g,g.g),C=i(d.b,g.b),S=gl(d.opacity,g.opacity);return function(L){return d.r=v(L),d.g=w(L),d.b=C(L),d.opacity=S(L),d+""}}return u.gamma=t,u}(1);var io=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,ml=new RegExp(io.source,"g");function vl(t,e){var i,u,d,g=io.lastIndex=ml.lastIndex=0,v=-1,w=[],C=[];for(t+="",e+="";(i=io.exec(t))&&(u=ml.exec(e));)(d=u.index)>g&&(d=e.slice(g,d),w[v]?w[v]+=d:w[++v]=d),(i=i[0])===(u=u[0])?w[v]?w[v]+=u:w[++v]=u:(w[++v]=null,C.push({i:v,x:Kr(i,u)})),g=ml.lastIndex;return g<e.length&&(d=e.slice(g),w[v]?w[v]+=d:w[++v]=d),w.length<2?C[0]?function(S){return function(L){return S(L)+""}}(C[0].x):function(S){return function(){return S}}(e):(e=C.length,function(S){for(var L,j=0;j<e;++j)w[(L=C[j]).i]=L.x(S);return w.join("")})}function ao(t,e){var i;return(typeof e=="number"?Kr:e instanceof br?yl:(i=br(e))?(e=i,yl):vl)(t,e)}function Re(t){return function(){this.removeAttribute(t)}}function Wh(t){return function(){this.removeAttributeNS(t.space,t.local)}}function Lr(t,e,i){var u,d,g=i+"";return function(){var v=this.getAttribute(t);return v===g?null:v===u?d:d=e(u=v,i)}}function mu(t,e,i){var u,d,g=i+"";return function(){var v=this.getAttributeNS(t.space,t.local);return v===g?null:v===u?d:d=e(u=v,i)}}function vu(t,e,i){var u,d,g;return function(){var v,w,C=i(this);if(C!=null)return(v=this.getAttribute(t))===(w=C+"")?null:v===u&&w===d?g:(d=w,g=e(u=v,C));this.removeAttribute(t)}}function _l(t,e,i){var u,d,g;return function(){var v,w,C=i(this);if(C!=null)return(v=this.getAttributeNS(t.space,t.local))===(w=C+"")?null:v===u&&w===d?g:(d=w,g=e(u=v,C));this.removeAttributeNS(t.space,t.local)}}function $a(t,e){return function(i){this.setAttribute(t,e.call(this,i))}}function Si(t,e){return function(i){this.setAttributeNS(t.space,t.local,e.call(this,i))}}function wc(t,e){var i,u;function d(){var g=e.apply(this,arguments);return g!==u&&(i=(u=g)&&Si(t,g)),i}return d._value=e,d}function qh(t,e){var i,u;function d(){var g=e.apply(this,arguments);return g!==u&&(i=(u=g)&&$a(t,g)),i}return d._value=e,d}function bl(t,e){return function(){Be(this,t).delay=+e.apply(this,arguments)}}function Po(t,e){return e=+e,function(){Be(this,t).delay=e}}function Vh(t,e){return function(){Xn(this,t).duration=+e.apply(this,arguments)}}function Xd(t,e){return e=+e,function(){Xn(this,t).duration=e}}function Qp(t,e){if(typeof e!="function")throw new Error;return function(){Xn(this,t).ease=e}}function Kd(t,e,i){var u,d,g=function(v){return(v+"").trim().split(/^|\s+/).every(function(w){var C=w.indexOf(".");return C>=0&&(w=w.slice(0,C)),!w||w==="start"})}(e)?Be:Xn;return function(){var v=g(this,t),w=v.on;w!==u&&(d=(u=w).copy()).on(e,i),v.on=d}}var Qd=ln.prototype.constructor;function Ea(t){return function(){this.style.removeProperty(t)}}function Jd(t,e,i){return function(u){this.style.setProperty(t,e.call(this,u),i)}}function Gh(t,e,i){var u,d;function g(){var v=e.apply(this,arguments);return v!==d&&(u=(d=v)&&Jd(t,v,i)),u}return g._value=e,g}function Zh(t){return function(e){this.textContent=t.call(this,e)}}function Yo(t){var e,i;function u(){var d=t.apply(this,arguments);return d!==i&&(e=(i=d)&&Zh(d)),e}return u._value=t,u}var _u=0;function oo(t,e,i,u){this._groups=t,this._parents=e,this._name=i,this._id=u}function bu(){return++_u}var Sa=ln.prototype;oo.prototype={constructor:oo,select:function(t){var e=this._name,i=this._id;typeof t!="function"&&(t=rt(t));for(var u=this._groups,d=u.length,g=new Array(d),v=0;v<d;++v)for(var w,C,S=u[v],L=S.length,j=g[v]=new Array(L),P=0;P<L;++P)(w=S[P])&&(C=t.call(w,w.__data__,P,S))&&("__data__"in w&&(C.__data__=w.__data__),j[P]=C,Mn(j[P],e,i,P,j,mt(w,i)));return new oo(g,this._parents,e,i)},selectAll:function(t){var e=this._name,i=this._id;typeof t!="function"&&(t=et(t));for(var u=this._groups,d=u.length,g=[],v=[],w=0;w<d;++w)for(var C,S=u[w],L=S.length,j=0;j<L;++j)if(C=S[j]){for(var P,U=t.call(C,C.__data__,j,S),ot=mt(C,i),vt=0,bt=U.length;vt<bt;++vt)(P=U[vt])&&Mn(P,e,i,vt,U,ot);g.push(U),v.push(C)}return new oo(g,v,e,i)},selectChild:Sa.selectChild,selectChildren:Sa.selectChildren,filter:function(t){typeof t!="function"&&(t=K(t));for(var e=this._groups,i=e.length,u=new Array(i),d=0;d<i;++d)for(var g,v=e[d],w=v.length,C=u[d]=[],S=0;S<w;++S)(g=v[S])&&t.call(g,g.__data__,S,v)&&C.push(g);return new oo(u,this._parents,this._name,this._id)},merge:function(t){if(t._id!==this._id)throw new Error;for(var e=this._groups,i=t._groups,u=e.length,d=i.length,g=Math.min(u,d),v=new Array(u),w=0;w<g;++w)for(var C,S=e[w],L=i[w],j=S.length,P=v[w]=new Array(j),U=0;U<j;++U)(C=S[U]||L[U])&&(P[U]=C);for(;w<u;++w)v[w]=e[w];return new oo(v,this._parents,this._name,this._id)},selection:function(){return new Qd(this._groups,this._parents)},transition:function(){for(var t=this._name,e=this._id,i=bu(),u=this._groups,d=u.length,g=0;g<d;++g)for(var v,w=u[g],C=w.length,S=0;S<C;++S)if(v=w[S]){var L=mt(v,e);Mn(v,t,i,S,w,{time:L.time+L.delay+L.duration,delay:0,duration:L.duration,ease:L.ease})}return new oo(u,this._parents,t,i)},call:Sa.call,nodes:Sa.nodes,node:Sa.node,size:Sa.size,empty:Sa.empty,each:Sa.each,on:function(t,e){var i=this._id;return arguments.length<2?mt(this.node(),i).on.on(t):this.each(Kd(i,t,e))},attr:function(t,e){var i=It(t),u=i==="transform"?Fo:ao;return this.attrTween(t,typeof e=="function"?(i.local?_l:vu)(i,u,Dn(this,"attr."+t,e)):e==null?(i.local?Wh:Re)(i):(i.local?mu:Lr)(i,u,e))},attrTween:function(t,e){var i="attr."+t;if(arguments.length<2)return(i=this.tween(i))&&i._value;if(e==null)return this.tween(i,null);if(typeof e!="function")throw new Error;var u=It(t);return this.tween(i,(u.local?wc:qh)(u,e))},style:function(t,e,i){var u=(t+="")=="transform"?Ro:ao;return e==null?this.styleTween(t,function(d,g){var v,w,C;return function(){var S=ie(this,d),L=(this.style.removeProperty(d),ie(this,d));return S===L?null:S===v&&L===w?C:C=g(v=S,w=L)}}(t,u)).on("end.style."+t,Ea(t)):typeof e=="function"?this.styleTween(t,function(d,g,v){var w,C,S;return function(){var L=ie(this,d),j=v(this),P=j+"";return j==null&&(this.style.removeProperty(d),P=j=ie(this,d)),L===P?null:L===w&&P===C?S:(C=P,S=g(w=L,j))}}(t,u,Dn(this,"style."+t,e))).each(function(d,g){var v,w,C,S,L="style."+g,j="end."+L;return function(){var P=Xn(this,d),U=P.on,ot=P.value[L]==null?S||(S=Ea(g)):void 0;U===v&&C===ot||(w=(v=U).copy()).on(j,C=ot),P.on=w}}(this._id,t)):this.styleTween(t,function(d,g,v){var w,C,S=v+"";return function(){var L=ie(this,d);return L===S?null:L===w?C:C=g(w=L,v)}}(t,u,e),i).on("end.style."+t,null)},styleTween:function(t,e,i){var u="style."+(t+="");if(arguments.length<2)return(u=this.tween(u))&&u._value;if(e==null)return this.tween(u,null);if(typeof e!="function")throw new Error;return this.tween(u,Gh(t,e,i==null?"":i))},text:function(t){return this.tween("text",typeof t=="function"?function(e){return function(){var i=e(this);this.textContent=i==null?"":i}}(Dn(this,"text",t)):function(e){return function(){this.textContent=e}}(t==null?"":t+""))},textTween:function(t){var e="text";if(arguments.length<1)return(e=this.tween(e))&&e._value;if(t==null)return this.tween(e,null);if(typeof t!="function")throw new Error;return this.tween(e,Yo(t))},remove:function(){return this.on("end.remove",function(t){return function(){var e=this.parentNode;for(var i in this.__transition)if(+i!==t)return;e&&e.removeChild(this)}}(this._id))},tween:function(t,e){var i=this._id;if(t+="",arguments.length<2){for(var u,d=mt(this.node(),i).tween,g=0,v=d.length;g<v;++g)if((u=d[g]).name===t)return u.value;return null}return this.each((e==null?Gr:ia)(i,t,e))},delay:function(t){var e=this._id;return arguments.length?this.each((typeof t=="function"?bl:Po)(e,t)):mt(this.node(),e).delay},duration:function(t){var e=this._id;return arguments.length?this.each((typeof t=="function"?Vh:Xd)(e,t)):mt(this.node(),e).duration},ease:function(t){var e=this._id;return arguments.length?this.each(Qp(e,t)):mt(this.node(),e).ease},easeVarying:function(t){if(typeof t!="function")throw new Error;return this.each(function(e,i){return function(){var u=i.apply(this,arguments);if(typeof u!="function")throw new Error;Xn(this,e).ease=u}}(this._id,t))},end:function(){var t,e,i=this,u=i._id,d=i.size();return new Promise(function(g,v){var w={value:v},C={value:function(){--d==0&&g()}};i.each(function(){var S=Xn(this,u),L=S.on;L!==t&&((e=(t=L).copy())._.cancel.push(w),e._.interrupt.push(w),e._.end.push(C)),S.on=e}),d===0&&g()})},[Symbol.iterator]:Sa[Symbol.iterator]};var Ys={time:null,delay:0,duration:250,ease:function(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}};function wl(t,e){for(var i;!(i=t.__transition)||!(i=i[e]);)if(!(t=t.parentNode))throw new Error(`transition ${e} not found`);return i}ln.prototype.interrupt=function(t){return this.each(function(){(function(e,i){var u,d,g,v=e.__transition,w=!0;if(v){for(g in i=i==null?null:i+"",v)(u=v[g]).name===i?(d=u.state>2&&u.state<5,u.state=6,u.timer.stop(),u.on.call(d?"interrupt":"cancel",e,e.__data__,u.index,u.group),delete v[g]):w=!1;w&&delete e.__transition}})(this,t)})},ln.prototype.transition=function(t){var e,i;t instanceof oo?(e=t._id,t=t._name):(e=bu(),(i=Ys).time=fi(),t=t==null?null:t+"");for(var u=this._groups,d=u.length,g=0;g<d;++g)for(var v,w=u[g],C=w.length,S=0;S<C;++S)(v=w[S])&&Mn(v,t,e,S,w,i||wl(v,e));return new oo(u,this._parents,t,e)};function jo(t,e,i){t.prototype=e.prototype=i,i.constructor=t}function Xi(t,e){var i=Object.create(t.prototype);for(var u in e)i[u]=e[u];return i}function gi(){}var so=.7,Ha=1/so,oa="\\s*([+-]?\\d+)\\s*",Hn="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",M="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",F=/^#([0-9a-f]{3,8})$/,G=new RegExp("^rgb\\("+[oa,oa,oa]+"\\)$"),st=new RegExp("^rgb\\("+[M,M,M]+"\\)$"),qt=new RegExp("^rgba\\("+[oa,oa,oa,Hn]+"\\)$"),fe=new RegExp("^rgba\\("+[M,M,M,Hn]+"\\)$"),we=new RegExp("^hsl\\("+[Hn,M,M]+"\\)$"),Ee=new RegExp("^hsla\\("+[Hn,M,M,Hn]+"\\)$"),Ae={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function Pe(){return this.rgb().formatHex()}function We(){return this.rgb().formatRgb()}function kn(t){var e,i;return t=(t+"").trim().toLowerCase(),(e=F.exec(t))?(i=e[1].length,e=parseInt(e[1],16),i===6?pn(e):i===3?new cr(e>>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):i===8?lr(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):i===4?lr(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=G.exec(t))?new cr(e[1],e[2],e[3],1):(e=st.exec(t))?new cr(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=qt.exec(t))?lr(e[1],e[2],e[3],e[4]):(e=fe.exec(t))?lr(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=we.exec(t))?Jp(e[1],e[2]/100,e[3]/100,1):(e=Ee.exec(t))?Jp(e[1],e[2]/100,e[3]/100,e[4]):Ae.hasOwnProperty(t)?pn(Ae[t]):t==="transparent"?new cr(NaN,NaN,NaN,0):null}function pn(t){return new cr(t>>16&255,t>>8&255,255&t,1)}function lr(t,e,i,u){return u<=0&&(t=e=i=NaN),new cr(t,e,i,u)}function fr(t){return t instanceof gi||(t=kn(t)),t?new cr((t=t.rgb()).r,t.g,t.b,t.opacity):new cr}function Br(t,e,i,u){return arguments.length===1?fr(t):new cr(t,e,i,u==null?1:u)}function cr(t,e,i,u){this.r=+t,this.g=+e,this.b=+i,this.opacity=+u}function Ca(){return"#"+Xh(this.r)+Xh(this.g)+Xh(this.b)}function js(){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 Xh(t){return((t=Math.max(0,Math.min(255,Math.round(t)||0)))<16?"0":"")+t.toString(16)}function Jp(t,e,i,u){return u<=0?t=e=i=NaN:i<=0||i>=1?t=e=NaN:e<=0&&(t=NaN),new zo(t,e,i,u)}function Kh(t){if(t instanceof zo)return new zo(t.h,t.s,t.l,t.opacity);if(t instanceof gi||(t=kn(t)),!t)return new zo;if(t instanceof zo)return t;var e=(t=t.rgb()).r/255,i=t.g/255,u=t.b/255,d=Math.min(e,i,u),g=Math.max(e,i,u),v=NaN,w=g-d,C=(g+d)/2;return w?(v=e===g?(i-u)/w+6*(i<u):i===g?(u-e)/w+2:(e-i)/w+4,w/=C<.5?g+d:2-g-d,v*=60):w=C>0&&C<1?0:v,new zo(v,w,C,t.opacity)}function zo(t,e,i,u){this.h=+t,this.s=+e,this.l=+i,this.opacity=+u}function Qh(t,e,i){return 255*(t<60?e+(i-e)*t/60:t<180?i:t<240?e+(i-e)*(240-t)/60:e)}jo(gi,kn,{copy:function(t){return Object.assign(new this.constructor,this,t)},displayable:function(){return this.rgb().displayable()},hex:Pe,formatHex:Pe,formatHsl:function(){return Kh(this).formatHsl()},formatRgb:We,toString:We}),jo(cr,Br,Xi(gi,{brighter:function(t){return t=t==null?Ha:Math.pow(Ha,t),new cr(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=t==null?so:Math.pow(so,t),new cr(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:Ca,formatHex:Ca,formatRgb:js,toString:js})),jo(zo,function(t,e,i,u){return arguments.length===1?Kh(t):new zo(t,e,i,u==null?1:u)},Xi(gi,{brighter:function(t){return t=t==null?Ha:Math.pow(Ha,t),new zo(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=t==null?so:Math.pow(so,t),new zo(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,i=this.l,u=i+(i<.5?i:1-i)*e,d=2*i-u;return new cr(Qh(t>=240?t-240:t+120,d,u),Qh(t,d,u),Qh(t<120?t+240:t-120,d,u),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 gv=Math.PI/180,yv=180/Math.PI,tg=.96422,eg=.82521,mv=4/29,ng=6/29,t0=3*ng*ng;function rg(t){if(t instanceof us)return new us(t.l,t.a,t.b,t.opacity);if(t instanceof zs)return vv(t);t instanceof cr||(t=fr(t));var e,i,u=sg(t.r),d=sg(t.g),g=sg(t.b),v=ig((.2225045*u+.7168786*d+.0606169*g)/1);return u===d&&d===g?e=i=v:(e=ig((.4360747*u+.3850649*d+.1430804*g)/tg),i=ig((.0139322*u+.0971045*d+.7141733*g)/eg)),new us(116*v-16,500*(e-v),200*(v-i),t.opacity)}function us(t,e,i,u){this.l=+t,this.a=+e,this.b=+i,this.opacity=+u}function ig(t){return t>.008856451679035631?Math.pow(t,1/3):t/t0+mv}function ag(t){return t>ng?t*t*t:t0*(t-mv)}function og(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function sg(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function Rw(t){if(t instanceof zs)return new zs(t.h,t.c,t.l,t.opacity);if(t instanceof us||(t=rg(t)),t.a===0&&t.b===0)return new zs(NaN,0<t.l&&t.l<100?0:NaN,t.l,t.opacity);var e=Math.atan2(t.b,t.a)*yv;return new zs(e<0?e+360:e,Math.sqrt(t.a*t.a+t.b*t.b),t.l,t.opacity)}function cg(t,e,i,u){return arguments.length===1?Rw(t):new zs(t,e,i,u==null?1:u)}function zs(t,e,i,u){this.h=+t,this.c=+e,this.l=+i,this.opacity=+u}function vv(t){if(isNaN(t.h))return new us(t.l,0,0,t.opacity);var e=t.h*gv;return new us(t.l,Math.cos(e)*t.c,Math.sin(e)*t.c,t.opacity)}jo(us,function(t,e,i,u){return arguments.length===1?rg(t):new us(t,e,i,u==null?1:u)},Xi(gi,{brighter:function(t){return new us(this.l+18*(t==null?1:t),this.a,this.b,this.opacity)},darker:function(t){return new us(this.l-18*(t==null?1:t),this.a,this.b,this.opacity)},rgb:function(){var t=(this.l+16)/116,e=isNaN(this.a)?t:t+this.a/500,i=isNaN(this.b)?t:t-this.b/200;return new cr(og(3.1338561*(e=tg*ag(e))-1.6168667*(t=1*ag(t))-.4906146*(i=eg*ag(i))),og(-.9787684*e+1.9161415*t+.033454*i),og(.0719453*e-.2289914*t+1.4052427*i),this.opacity)}})),jo(zs,cg,Xi(gi,{brighter:function(t){return new zs(this.h,this.c,this.l+18*(t==null?1:t),this.opacity)},darker:function(t){return new zs(this.h,this.c,this.l-18*(t==null?1:t),this.opacity)},rgb:function(){return vv(this).rgb()}}));const ug=t=>()=>t;function _v(t,e){return function(i){return t+i*e}}function Jh(t,e){var i=e-t;return i?_v(t,i):ug(isNaN(t)?e:t)}function Fw(t){return function(e,i){var u=t((e=cg(e)).h,(i=cg(i)).h),d=Jh(e.c,i.c),g=Jh(e.l,i.l),v=Jh(e.opacity,i.opacity);return function(w){return e.h=u(w),e.c=d(w),e.l=g(w),e.opacity=v(w),e+""}}}const Pw=Fw(function(t,e){var i=e-t;return i?_v(t,i>180||i<-180?i-360*Math.round(i/360):i):ug(isNaN(t)?e:t)});var lg=Math.sqrt(50),hg=Math.sqrt(10),fg=Math.sqrt(2);function dg(t,e,i){var u=(e-t)/Math.max(0,i),d=Math.floor(Math.log(u)/Math.LN10),g=u/Math.pow(10,d);return d>=0?(g>=lg?10:g>=hg?5:g>=fg?2:1)*Math.pow(10,d):-Math.pow(10,-d)/(g>=lg?10:g>=hg?5:g>=fg?2:1)}function pg(t,e,i){var u=Math.abs(e-t)/Math.max(0,i),d=Math.pow(10,Math.floor(Math.log(u)/Math.LN10)),g=u/d;return g>=lg?d*=10:g>=hg?d*=5:g>=fg&&(d*=2),e<t?-d:d}function gg(t,e){return t==null||e==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function yg(t){let e=t,i=t,u=t;function d(g,v,w=0,C=g.length){if(w<C){if(i(v,v)!==0)return C;do{const S=w+C>>>1;u(g[S],v)<0?w=S+1:C=S}while(w<C)}return w}return t.length!==2&&(e=(g,v)=>t(g)-v,i=gg,u=(g,v)=>gg(t(g),v)),{left:d,center:function(g,v,w=0,C=g.length){const S=d(g,v,w,C-1);return S>w&&e(g[S-1],v)>-e(g[S],v)?S-1:S},right:function(g,v,w=0,C=g.length){if(w<C){if(i(v,v)!==0)return C;do{const S=w+C>>>1;u(g[S],v)<=0?w=S+1:C=S}while(w<C)}return w}}}const Yw=yg(gg),jw=Yw.right,ls=(yg(function(t){return t===null?NaN:+t}).center,jw);function e0(t,e,i){t.prototype=e.prototype=i,i.constructor=t}function mg(t,e){var i=Object.create(t.prototype);for(var u in e)i[u]=e[u];return i}function hs(){}var n0=.7,r0=1.4285714285714286,xc="\\s*([+-]?\\d+)\\s*",wu="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",fs="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",zw=/^#([0-9a-f]{3,8})$/,Uw=new RegExp("^rgb\\("+[xc,xc,xc]+"\\)$"),vg=new RegExp("^rgb\\("+[fs,fs,fs]+"\\)$"),$w=new RegExp("^rgba\\("+[xc,xc,xc,wu]+"\\)$"),bv=new RegExp("^rgba\\("+[fs,fs,fs,wu]+"\\)$"),_g=new RegExp("^hsl\\("+[wu,fs,fs]+"\\)$"),wv=new RegExp("^hsla\\("+[wu,fs,fs,wu]+"\\)$"),i0={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function xu(){return this.rgb().formatHex()}function ku(){return this.rgb().formatRgb()}function xl(t){var e,i;return t=(t+"").trim().toLowerCase(),(e=zw.exec(t))?(i=e[1].length,e=parseInt(e[1],16),i===6?a0(e):i===3?new co(e>>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):i===8?o0(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):i===4?o0(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=Uw.exec(t))?new co(e[1],e[2],e[3],1):(e=vg.exec(t))?new co(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=$w.exec(t))?o0(e[1],e[2],e[3],e[4]):(e=bv.exec(t))?o0(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=_g.exec(t))?xv(e[1],e[2]/100,e[3]/100,1):(e=wv.exec(t))?xv(e[1],e[2]/100,e[3]/100,e[4]):i0.hasOwnProperty(t)?a0(i0[t]):t==="transparent"?new co(NaN,NaN,NaN,0):null}function a0(t){return new co(t>>16&255,t>>8&255,255&t,1)}function o0(t,e,i,u){return u<=0&&(t=e=i=NaN),new co(t,e,i,u)}function s0(t){return t instanceof hs||(t=xl(t)),t?new co((t=t.rgb()).r,t.g,t.b,t.opacity):new co}function kl(t,e,i,u){return arguments.length===1?s0(t):new co(t,e,i,u==null?1:u)}function co(t,e,i,u){this.r=+t,this.g=+e,this.b=+i,this.opacity=+u}function ds(){return"#"+c0(this.r)+c0(this.g)+c0(this.b)}function bg(){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 c0(t){return((t=Math.max(0,Math.min(255,Math.round(t)||0)))<16?"0":"")+t.toString(16)}function xv(t,e,i,u){return u<=0?t=e=i=NaN:i<=0||i>=1?t=e=NaN:e<=0&&(t=NaN),new Wa(t,e,i,u)}function kv(t){if(t instanceof Wa)return new Wa(t.h,t.s,t.l,t.opacity);if(t instanceof hs||(t=xl(t)),!t)return new Wa;if(t instanceof Wa)return t;var e=(t=t.rgb()).r/255,i=t.g/255,u=t.b/255,d=Math.min(e,i,u),g=Math.max(e,i,u),v=NaN,w=g-d,C=(g+d)/2;return w?(v=e===g?(i-u)/w+6*(i<u):i===g?(u-e)/w+2:(e-i)/w+4,w/=C<.5?g+d:2-g-d,v*=60):w=C>0&&C<1?0:v,new Wa(v,w,C,t.opacity)}function Wa(t,e,i,u){this.h=+t,this.s=+e,this.l=+i,this.opacity=+u}function wg(t,e,i){return 255*(t<60?e+(i-e)*t/60:t<180?i:t<240?e+(i-e)*(240-t)/60:e)}e0(hs,xl,{copy:function(t){return Object.assign(new this.constructor,this,t)},displayable:function(){return this.rgb().displayable()},hex:xu,formatHex:xu,formatHsl:function(){return kv(this).formatHsl()},formatRgb:ku,toString:ku}),e0(co,kl,mg(hs,{brighter:function(t){return t=t==null?r0:Math.pow(r0,t),new co(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=t==null?n0:Math.pow(n0,t),new co(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:ds,formatHex:ds,formatRgb:bg,toString:bg})),e0(Wa,function(t,e,i,u){return arguments.length===1?kv(t):new Wa(t,e,i,u==null?1:u)},mg(hs,{brighter:function(t){return t=t==null?r0:Math.pow(r0,t),new Wa(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=t==null?n0:Math.pow(n0,t),new Wa(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,i=this.l,u=i+(i<.5?i:1-i)*e,d=2*i-u;return new co(wg(t>=240?t-240:t+120,d,u),wg(t,d,u),wg(t<120?t+240:t-120,d,u),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 xg=t=>()=>t;function Tv(t,e){var i=e-t;return i?function(u,d){return function(g){return u+g*d}}(t,i):xg(isNaN(t)?e:t)}const u0=function t(e){var i=function(d){return(d=+d)==1?Tv:function(g,v){return v-g?function(w,C,S){return w=Math.pow(w,S),C=Math.pow(C,S)-w,S=1/S,function(L){return Math.pow(w+L*C,S)}}(g,v,d):xg(isNaN(g)?v:g)}}(e);function u(d,g){var v=i((d=kl(d)).r,(g=kl(g)).r),w=i(d.g,g.g),C=i(d.b,g.b),S=Tv(d.opacity,g.opacity);return function(L){return d.r=v(L),d.g=w(L),d.b=C(L),d.opacity=S(L),d+""}}return u.gamma=t,u}(1);function Hw(t,e){var i,u=e?e.length:0,d=t?Math.min(u,t.length):0,g=new Array(d),v=new Array(u);for(i=0;i<d;++i)g[i]=h0(t[i],e[i]);for(;i<u;++i)v[i]=e[i];return function(w){for(i=0;i<d;++i)v[i]=g[i](w);return v}}function Ww(t,e){var i=new Date;return t=+t,e=+e,function(u){return i.setTime(t*(1-u)+e*u),i}}function l0(t,e){return t=+t,e=+e,function(i){return t*(1-i)+e*i}}function qw(t,e){var i,u={},d={};for(i in t!==null&&typeof t=="object"||(t={}),e!==null&&typeof e=="object"||(e={}),e)i in t?u[i]=h0(t[i],e[i]):d[i]=e[i];return function(g){for(i in u)d[i]=u[i](g);return d}}var kg=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,tf=new RegExp(kg.source,"g");function Ev(t,e){var i,u,d,g=kg.lastIndex=tf.lastIndex=0,v=-1,w=[],C=[];for(t+="",e+="";(i=kg.exec(t))&&(u=tf.exec(e));)(d=u.index)>g&&(d=e.slice(g,d),w[v]?w[v]+=d:w[++v]=d),(i=i[0])===(u=u[0])?w[v]?w[v]+=u:w[++v]=u:(w[++v]=null,C.push({i:v,x:l0(i,u)})),g=tf.lastIndex;return g<e.length&&(d=e.slice(g),w[v]?w[v]+=d:w[++v]=d),w.length<2?C[0]?function(S){return function(L){return S(L)+""}}(C[0].x):function(S){return function(){return S}}(e):(e=C.length,function(S){for(var L,j=0;j<e;++j)w[(L=C[j]).i]=L.x(S);return w.join("")})}function Sv(t,e){e||(e=[]);var i,u=t?Math.min(e.length,t.length):0,d=e.slice();return function(g){for(i=0;i<u;++i)d[i]=t[i]*(1-g)+e[i]*g;return d}}function h0(t,e){var i,u,d=typeof e;return e==null||d==="boolean"?xg(e):(d==="number"?l0:d==="string"?(i=xl(e))?(e=i,u0):Ev:e instanceof xl?u0:e instanceof Date?Ww:(u=e,!ArrayBuffer.isView(u)||u instanceof DataView?Array.isArray(e)?Hw:typeof e.valueOf!="function"&&typeof e.toString!="function"||isNaN(e)?qw:l0:Sv))(t,e)}function f0(t,e){return t=+t,e=+e,function(i){return Math.round(t*(1-i)+e*i)}}function Cv(t){return+t}var Tg=[0,1];function Tl(t){return t}function Eg(t,e){return(e-=t=+t)?function(u){return(u-t)/e}:(i=isNaN(e)?NaN:.5,function(){return i});var i}function Vw(t,e,i){var u=t[0],d=t[1],g=e[0],v=e[1];return d<u?(u=Eg(d,u),g=i(v,g)):(u=Eg(u,d),g=i(g,v)),function(w){return g(u(w))}}function Sg(t,e,i){var u=Math.min(t.length,e.length)-1,d=new Array(u),g=new Array(u),v=-1;for(t[u]<t[0]&&(t=t.slice().reverse(),e=e.slice().reverse());++v<u;)d[v]=Eg(t[v],t[v+1]),g[v]=i(e[v],e[v+1]);return function(w){var C=ls(t,w,1,u)-1;return g[C](d[C](w))}}function d0(t,e){return e.domain(t.domain()).range(t.range()).interpolate(t.interpolate()).clamp(t.clamp()).unknown(t.unknown())}function p0(){return function(){var t,e,i,u,d,g,v=Tg,w=Tg,C=h0,S=Tl;function L(){var P,U,ot,vt=Math.min(v.length,w.length);return S!==Tl&&(P=v[0],U=v[vt-1],P>U&&(ot=P,P=U,U=ot),S=function(bt){return Math.max(P,Math.min(U,bt))}),u=vt>2?Sg:Vw,d=g=null,j}function j(P){return P==null||isNaN(P=+P)?i:(d||(d=u(v.map(t),w,C)))(t(S(P)))}return j.invert=function(P){return S(e((g||(g=u(w,v.map(t),l0)))(P)))},j.domain=function(P){return arguments.length?(v=Array.from(P,Cv),L()):v.slice()},j.range=function(P){return arguments.length?(w=Array.from(P),L()):w.slice()},j.rangeRound=function(P){return w=Array.from(P),C=f0,L()},j.clamp=function(P){return arguments.length?(S=!!P||Tl,L()):S!==Tl},j.interpolate=function(P){return arguments.length?(C=P,L()):C},j.unknown=function(P){return arguments.length?(i=P,j):i},function(P,U){return t=P,e=U,L()}}()(Tl,Tl)}function Us(t,e){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(e).domain(t)}return this}var Av,Cg=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function ef(t){if(!(e=Cg.exec(t)))throw new Error("invalid format: "+t);var e;return new $s({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 $s(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 g0(t,e){if((i=(t=e?t.toExponential(e-1):t.toExponential()).indexOf("e"))<0)return null;var i,u=t.slice(0,i);return[u.length>1?u[0]+u.slice(2):u,+t.slice(i+1)]}function El(t){return(t=g0(Math.abs(t)))?t[1]:NaN}function Mv(t,e){var i=g0(t,e);if(!i)return t+"";var u=i[0],d=i[1];return d<0?"0."+new Array(-d).join("0")+u:u.length>d+1?u.slice(0,d+1)+"."+u.slice(d+1):u+new Array(d-u.length+2).join("0")}ef.prototype=$s.prototype,$s.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 Dv={"%":(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)=>Mv(100*t,e),r:Mv,s:function(t,e){var i=g0(t,e);if(!i)return t+"";var u=i[0],d=i[1],g=d-(Av=3*Math.max(-8,Math.min(8,Math.floor(d/3))))+1,v=u.length;return g===v?u:g>v?u+new Array(g-v+1).join("0"):g>0?u.slice(0,g)+"."+u.slice(g):"0."+new Array(1-g).join("0")+g0(t,Math.max(0,e+g-1))[0]},X:t=>Math.round(t).toString(16).toUpperCase(),x:t=>Math.round(t).toString(16)};function Nv(t){return t}var Ag,uo,nf,Mg=Array.prototype.map,Hs=["y","z","a","f","p","n","\xB5","m","","k","M","G","T","P","E","Z","Y"];function Gw(t){var e=t.domain;return t.ticks=function(i){var u=e();return function(d,g,v){var w,C,S,L,j=-1;if(v=+v,(d=+d)==(g=+g)&&v>0)return[d];if((w=g<d)&&(C=d,d=g,g=C),(L=dg(d,g,v))===0||!isFinite(L))return[];if(L>0){let P=Math.round(d/L),U=Math.round(g/L);for(P*L<d&&++P,U*L>g&&--U,S=new Array(C=U-P+1);++j<C;)S[j]=(P+j)*L}else{L=-L;let P=Math.round(d*L),U=Math.round(g*L);for(P/L<d&&++P,U/L>g&&--U,S=new Array(C=U-P+1);++j<C;)S[j]=(P+j)/L}return w&&S.reverse(),S}(u[0],u[u.length-1],i==null?10:i)},t.tickFormat=function(i,u){var d=e();return function(g,v,w,C){var S,L=pg(g,v,w);switch((C=ef(C==null?",f":C)).type){case"s":var j=Math.max(Math.abs(g),Math.abs(v));return C.precision!=null||isNaN(S=function(P,U){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(El(U)/3)))-El(Math.abs(P)))}(L,j))||(C.precision=S),nf(C,j);case"":case"e":case"g":case"p":case"r":C.precision!=null||isNaN(S=function(P,U){return P=Math.abs(P),U=Math.abs(U)-P,Math.max(0,El(U)-El(P))+1}(L,Math.max(Math.abs(g),Math.abs(v))))||(C.precision=S-(C.type==="e"));break;case"f":case"%":C.precision!=null||isNaN(S=function(P){return Math.max(0,-El(Math.abs(P)))}(L))||(C.precision=S-2*(C.type==="%"))}return uo(C)}(d[0],d[d.length-1],i==null?10:i,u)},t.nice=function(i){i==null&&(i=10);var u,d,g=e(),v=0,w=g.length-1,C=g[v],S=g[w],L=10;for(S<C&&(d=C,C=S,S=d,d=v,v=w,w=d);L-- >0;){if((d=dg(C,S,i))===u)return g[v]=C,g[w]=S,e(g);if(d>0)C=Math.floor(C/d)*d,S=Math.ceil(S/d)*d;else{if(!(d<0))break;C=Math.ceil(C*d)/d,S=Math.floor(S*d)/d}u=d}return t},t}function Ov(){var t=p0();return t.copy=function(){return d0(t,Ov())},Us.apply(t,arguments),Gw(t)}Ag=function(t){var e,i,u=t.grouping===void 0||t.thousands===void 0?Nv:(e=Mg.call(t.grouping,Number),i=t.thousands+"",function(P,U){for(var ot=P.length,vt=[],bt=0,kt=e[0],_t=0;ot>0&&kt>0&&(_t+kt+1>U&&(kt=Math.max(1,U-_t)),vt.push(P.substring(ot-=kt,ot+kt)),!((_t+=kt+1)>U));)kt=e[bt=(bt+1)%e.length];return vt.reverse().join(i)}),d=t.currency===void 0?"":t.currency[0]+"",g=t.currency===void 0?"":t.currency[1]+"",v=t.decimal===void 0?".":t.decimal+"",w=t.numerals===void 0?Nv:function(P){return function(U){return U.replace(/[0-9]/g,function(ot){return P[+ot]})}}(Mg.call(t.numerals,String)),C=t.percent===void 0?"%":t.percent+"",S=t.minus===void 0?"\u2212":t.minus+"",L=t.nan===void 0?"NaN":t.nan+"";function j(P){var U=(P=ef(P)).fill,ot=P.align,vt=P.sign,bt=P.symbol,kt=P.zero,_t=P.width,lt=P.comma,Wt=P.precision,Ot=P.trim,gt=P.type;gt==="n"?(lt=!0,gt="g"):Dv[gt]||(Wt===void 0&&(Wt=12),Ot=!0,gt="g"),(kt||U==="0"&&ot==="=")&&(kt=!0,U="0",ot="=");var Lt=bt==="$"?d:bt==="#"&&/[boxX]/.test(gt)?"0"+gt.toLowerCase():"",ee=bt==="$"?g:/[%p]/.test(gt)?C:"",At=Dv[gt],Tt=/[defgprs%]/.test(gt);function zt(Mt){var Jt,yt,ce,ve=Lt,me=ee;if(gt==="c")me=At(Mt)+me,Mt="";else{var Me=(Mt=+Mt)<0||1/Mt<0;if(Mt=isNaN(Mt)?L:At(Math.abs(Mt),Wt),Ot&&(Mt=function(fn){t:for(var Ne,Pn=fn.length,Sn=1,dn=-1;Sn<Pn;++Sn)switch(fn[Sn]){case".":dn=Ne=Sn;break;case"0":dn===0&&(dn=Sn),Ne=Sn;break;default:if(!+fn[Sn])break t;dn>0&&(dn=0)}return dn>0?fn.slice(0,dn)+fn.slice(Ne+1):fn}(Mt)),Me&&+Mt==0&&vt!=="+"&&(Me=!1),ve=(Me?vt==="("?vt:S:vt==="-"||vt==="("?"":vt)+ve,me=(gt==="s"?Hs[8+Av/3]:"")+me+(Me&&vt==="("?")":""),Tt){for(Jt=-1,yt=Mt.length;++Jt<yt;)if(48>(ce=Mt.charCodeAt(Jt))||ce>57){me=(ce===46?v+Mt.slice(Jt+1):Mt.slice(Jt))+me,Mt=Mt.slice(0,Jt);break}}}lt&&!kt&&(Mt=u(Mt,1/0));var $e=ve.length+Mt.length+me.length,ze=$e<_t?new Array(_t-$e+1).join(U):"";switch(lt&&kt&&(Mt=u(ze+Mt,ze.length?_t-me.length:1/0),ze=""),ot){case"<":Mt=ve+Mt+me+ze;break;case"=":Mt=ve+ze+Mt+me;break;case"^":Mt=ze.slice(0,$e=ze.length>>1)+ve+Mt+me+ze.slice($e);break;default:Mt=ze+ve+Mt+me}return w(Mt)}return Wt=Wt===void 0?6:/[gprs]/.test(gt)?Math.max(1,Math.min(21,Wt)):Math.max(0,Math.min(20,Wt)),zt.toString=function(){return P+""},zt}return{format:j,formatPrefix:function(P,U){var ot=j(((P=ef(P)).type="f",P)),vt=3*Math.max(-8,Math.min(8,Math.floor(El(U)/3))),bt=Math.pow(10,-vt),kt=Hs[8+vt/3];return function(_t){return ot(bt*_t)+kt}}}}({thousands:",",grouping:[3],currency:["$",""]}),uo=Ag.format,nf=Ag.formatPrefix;class Lv extends Map{constructor(e,i=Bv){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:i}}),e!=null)for(const[u,d]of e)this.set(u,d)}get(e){return super.get(Dg(this,e))}has(e){return super.has(Dg(this,e))}set(e,i){return super.set(function({_intern:u,_key:d},g){const v=d(g);return u.has(v)?u.get(v):(u.set(v,g),g)}(this,e),i)}delete(e){return super.delete(function({_intern:i,_key:u},d){const g=u(d);return i.has(g)&&(d=i.get(g),i.delete(g)),d}(this,e))}}function Dg({_intern:t,_key:e},i){const u=e(i);return t.has(u)?t.get(u):i}function Bv(t){return t!==null&&typeof t=="object"?t.valueOf():t}const rf=Symbol("implicit");function kc(){var t=new Lv,e=[],i=[],u=rf;function d(g){let v=t.get(g);if(v===void 0){if(u!==rf)return u;t.set(g,v=e.push(g)-1)}return i[v%i.length]}return d.domain=function(g){if(!arguments.length)return e.slice();e=[],t=new Lv;for(const v of g)t.has(v)||t.set(v,e.push(v)-1);return d},d.range=function(g){return arguments.length?(i=Array.from(g),d):i.slice()},d.unknown=function(g){return arguments.length?(u=g,d):u},d.copy=function(){return kc(e,i).unknown(u)},Us.apply(d,arguments),d}const Sl=1e3,Tc=6e4,af=36e5,Ng=864e5,Og=6048e5,y0=31536e6;var m0=new Date,v0=new Date;function ji(t,e,i,u){function d(g){return t(g=arguments.length===0?new Date:new Date(+g)),g}return d.floor=function(g){return t(g=new Date(+g)),g},d.ceil=function(g){return t(g=new Date(g-1)),e(g,1),t(g),g},d.round=function(g){var v=d(g),w=d.ceil(g);return g-v<w-g?v:w},d.offset=function(g,v){return e(g=new Date(+g),v==null?1:Math.floor(v)),g},d.range=function(g,v,w){var C,S=[];if(g=d.ceil(g),w=w==null?1:Math.floor(w),!(g<v&&w>0))return S;do S.push(C=new Date(+g)),e(g,w),t(g);while(C<g&&g<v);return S},d.filter=function(g){return ji(function(v){if(v>=v)for(;t(v),!g(v);)v.setTime(v-1)},function(v,w){if(v>=v)if(w<0)for(;++w<=0;)for(;e(v,-1),!g(v););else for(;--w>=0;)for(;e(v,1),!g(v););})},i&&(d.count=function(g,v){return m0.setTime(+g),v0.setTime(+v),t(m0),t(v0),Math.floor(i(m0,v0))},d.every=function(g){return g=Math.floor(g),isFinite(g)&&g>0?g>1?d.filter(u?function(v){return u(v)%g==0}:function(v){return d.count(0,v)%g==0}):d:null}),d}var _0=ji(function(){},function(t,e){t.setTime(+t+e)},function(t,e){return e-t});_0.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?ji(function(e){e.setTime(Math.floor(e/t)*t)},function(e,i){e.setTime(+e+i*t)},function(e,i){return(i-e)/t}):_0:null};const Lg=_0;var Iv=ji(function(t){t.setTime(t-t.getMilliseconds())},function(t,e){t.setTime(+t+e*Sl)},function(t,e){return(e-t)/Sl},function(t){return t.getUTCSeconds()});const Cl=Iv;var Zw=ji(function(t){t.setTime(t-t.getMilliseconds()-t.getSeconds()*Sl)},function(t,e){t.setTime(+t+e*Tc)},function(t,e){return(e-t)/Tc},function(t){return t.getMinutes()});const of=Zw;var Uo=ji(function(t){t.setTime(t-t.getMilliseconds()-t.getSeconds()*Sl-t.getMinutes()*Tc)},function(t,e){t.setTime(+t+e*af)},function(t,e){return(e-t)/af},function(t){return t.getHours()});const b0=Uo;var Bg=ji(t=>t.setHours(0,0,0,0),(t,e)=>t.setDate(t.getDate()+e),(t,e)=>(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*Tc)/Ng,t=>t.getDate()-1);const Al=Bg;function Ws(t){return ji(function(e){e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)},function(e,i){e.setDate(e.getDate()+7*i)},function(e,i){return(i-e-(i.getTimezoneOffset()-e.getTimezoneOffset())*Tc)/Og})}var w0=Ws(0),Ig=Ws(1);Ws(2),Ws(3);var Ec=Ws(4);Ws(5),Ws(6);var ps=ji(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 Rg=ps;var Fg=ji(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()});Fg.every=function(t){return isFinite(t=Math.floor(t))&&t>0?ji(function(e){e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)},function(e,i){e.setFullYear(e.getFullYear()+i*t)}):null};const qs=Fg;ji(function(t){t.setUTCSeconds(0,0)},function(t,e){t.setTime(+t+e*Tc)},function(t,e){return(e-t)/Tc},function(t){return t.getUTCMinutes()}),ji(function(t){t.setUTCMinutes(0,0,0)},function(t,e){t.setTime(+t+e*af)},function(t,e){return(e-t)/af},function(t){return t.getUTCHours()});var Pg=ji(function(t){t.setUTCHours(0,0,0,0)},function(t,e){t.setUTCDate(t.getUTCDate()+e)},function(t,e){return(e-t)/Ng},function(t){return t.getUTCDate()-1});const sf=Pg;function $o(t){return ji(function(e){e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setUTCHours(0,0,0,0)},function(e,i){e.setUTCDate(e.getUTCDate()+7*i)},function(e,i){return(i-e)/Og})}var Rv=$o(0),x0=$o(1);$o(2),$o(3);var Ml=$o(4);$o(5),$o(6),ji(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 Fv=ji(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()});Fv.every=function(t){return isFinite(t=Math.floor(t))&&t>0?ji(function(e){e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},function(e,i){e.setUTCFullYear(e.getUTCFullYear()+i*t)}):null};const Aa=Fv;function Tu(t,e,i,u,d,g){const v=[[Cl,1,Sl],[Cl,5,5e3],[Cl,15,15e3],[Cl,30,3e4],[g,1,Tc],[g,5,3e5],[g,15,9e5],[g,30,18e5],[d,1,af],[d,3,108e5],[d,6,216e5],[d,12,432e5],[u,1,Ng],[u,2,1728e5],[i,1,Og],[e,1,2592e6],[e,3,7776e6],[t,1,y0]];function w(C,S,L){const j=Math.abs(S-C)/L,P=yg(([,,vt])=>vt).right(v,j);if(P===v.length)return t.every(pg(C/y0,S/y0,L));if(P===0)return Lg.every(Math.max(pg(C,S,L),1));const[U,ot]=v[j/v[P-1][2]<v[P][2]/j?P-1:P];return U.every(ot)}return[function(C,S,L){const j=S<C;j&&([C,S]=[S,C]);const P=L&&typeof L.range=="function"?L:w(C,S,L),U=P?P.range(C,+S+1):[];return j?U.reverse():U},w]}const[Pv,Xw]=Tu(qs,Rg,w0,Al,b0,of);function gs(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 Yg(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 cf(t,e,i){return{y:t,m:e,d:i,H:0,M:0,S:0,L:0}}var uf,Yv,ys={"-":"",_:" ",0:"0"},zi=/^\s*\d+/,jg=/^%/,zg=/[\\^$*+?|[\]().{}]/g;function wr(t,e,i){var u=t<0?"-":"",d=(u?-t:t)+"",g=d.length;return u+(g<i?new Array(i-g+1).join(e)+d:d)}function Kw(t){return t.replace(zg,"\\$&")}function lf(t){return new RegExp("^(?:"+t.map(Kw).join("|")+")","i")}function hf(t){return new Map(t.map((e,i)=>[e.toLowerCase(),i]))}function k0(t,e,i){var u=zi.exec(e.slice(i,i+1));return u?(t.w=+u[0],i+u[0].length):-1}function Ug(t,e,i){var u=zi.exec(e.slice(i,i+1));return u?(t.u=+u[0],i+u[0].length):-1}function Qw(t,e,i){var u=zi.exec(e.slice(i,i+2));return u?(t.U=+u[0],i+u[0].length):-1}function Jw(t,e,i){var u=zi.exec(e.slice(i,i+2));return u?(t.V=+u[0],i+u[0].length):-1}function t5(t,e,i){var u=zi.exec(e.slice(i,i+2));return u?(t.W=+u[0],i+u[0].length):-1}function jv(t,e,i){var u=zi.exec(e.slice(i,i+4));return u?(t.y=+u[0],i+u[0].length):-1}function zv(t,e,i){var u=zi.exec(e.slice(i,i+2));return u?(t.y=+u[0]+(+u[0]>68?1900:2e3),i+u[0].length):-1}function Uv(t,e,i){var u=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(e.slice(i,i+6));return u?(t.Z=u[1]?0:-(u[2]+(u[3]||"00")),i+u[0].length):-1}function $g(t,e,i){var u=zi.exec(e.slice(i,i+1));return u?(t.q=3*u[0]-3,i+u[0].length):-1}function $v(t,e,i){var u=zi.exec(e.slice(i,i+2));return u?(t.m=u[0]-1,i+u[0].length):-1}function Hg(t,e,i){var u=zi.exec(e.slice(i,i+2));return u?(t.d=+u[0],i+u[0].length):-1}function qa(t,e,i){var u=zi.exec(e.slice(i,i+3));return u?(t.m=0,t.d=+u[0],i+u[0].length):-1}function ff(t,e,i){var u=zi.exec(e.slice(i,i+2));return u?(t.H=+u[0],i+u[0].length):-1}function Eu(t,e,i){var u=zi.exec(e.slice(i,i+2));return u?(t.M=+u[0],i+u[0].length):-1}function Hv(t,e,i){var u=zi.exec(e.slice(i,i+2));return u?(t.S=+u[0],i+u[0].length):-1}function e5(t,e,i){var u=zi.exec(e.slice(i,i+3));return u?(t.L=+u[0],i+u[0].length):-1}function n5(t,e,i){var u=zi.exec(e.slice(i,i+6));return u?(t.L=Math.floor(u[0]/1e3),i+u[0].length):-1}function r5(t,e,i){var u=jg.exec(e.slice(i,i+1));return u?i+u[0].length:-1}function i5(t,e,i){var u=zi.exec(e.slice(i));return u?(t.Q=+u[0],i+u[0].length):-1}function a5(t,e,i){var u=zi.exec(e.slice(i));return u?(t.s=+u[0],i+u[0].length):-1}function Wv(t,e){return wr(t.getDate(),e,2)}function Su(t,e){return wr(t.getHours(),e,2)}function qv(t,e){return wr(t.getHours()%12||12,e,2)}function o5(t,e){return wr(1+Al.count(qs(t),t),e,3)}function Vv(t,e){return wr(t.getMilliseconds(),e,3)}function s5(t,e){return Vv(t,e)+"000"}function c5(t,e){return wr(t.getMonth()+1,e,2)}function u5(t,e){return wr(t.getMinutes(),e,2)}function l5(t,e){return wr(t.getSeconds(),e,2)}function h5(t){var e=t.getDay();return e===0?7:e}function f5(t,e){return wr(w0.count(qs(t)-1,t),e,2)}function Gv(t){var e=t.getDay();return e>=4||e===0?Ec(t):Ec.ceil(t)}function d5(t,e){return t=Gv(t),wr(Ec.count(qs(t),t)+(qs(t).getDay()===4),e,2)}function p5(t){return t.getDay()}function Zv(t,e){return wr(Ig.count(qs(t)-1,t),e,2)}function g5(t,e){return wr(t.getFullYear()%100,e,2)}function y5(t,e){return wr((t=Gv(t)).getFullYear()%100,e,2)}function Xv(t,e){return wr(t.getFullYear()%1e4,e,4)}function Kv(t,e){var i=t.getDay();return wr((t=i>=4||i===0?Ec(t):Ec.ceil(t)).getFullYear()%1e4,e,4)}function Qv(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+wr(e/60|0,"0",2)+wr(e%60,"0",2)}function Jv(t,e){return wr(t.getUTCDate(),e,2)}function m5(t,e){return wr(t.getUTCHours(),e,2)}function t_(t,e){return wr(t.getUTCHours()%12||12,e,2)}function Sc(t,e){return wr(1+sf.count(Aa(t),t),e,3)}function e_(t,e){return wr(t.getUTCMilliseconds(),e,3)}function v5(t,e){return e_(t,e)+"000"}function n_(t,e){return wr(t.getUTCMonth()+1,e,2)}function _5(t,e){return wr(t.getUTCMinutes(),e,2)}function b5(t,e){return wr(t.getUTCSeconds(),e,2)}function r_(t){var e=t.getUTCDay();return e===0?7:e}function T0(t,e){return wr(Rv.count(Aa(t)-1,t),e,2)}function i_(t){var e=t.getUTCDay();return e>=4||e===0?Ml(t):Ml.ceil(t)}function df(t,e){return t=i_(t),wr(Ml.count(Aa(t),t)+(Aa(t).getUTCDay()===4),e,2)}function w5(t){return t.getUTCDay()}function Wg(t,e){return wr(x0.count(Aa(t)-1,t),e,2)}function x5(t,e){return wr(t.getUTCFullYear()%100,e,2)}function k5(t,e){return wr((t=i_(t)).getUTCFullYear()%100,e,2)}function a_(t,e){return wr(t.getUTCFullYear()%1e4,e,4)}function Dl(t,e){var i=t.getUTCDay();return wr((t=i>=4||i===0?Ml(t):Ml.ceil(t)).getUTCFullYear()%1e4,e,4)}function T5(){return"+0000"}function qg(){return"%"}function o_(t){return+t}function s_(t){return Math.floor(+t/1e3)}function E5(t){return new Date(t)}function S5(t){return t instanceof Date?+t:+new Date(+t)}function c_(t,e,i,u,d,g,v,w,C,S){var L=p0(),j=L.invert,P=L.domain,U=S(".%L"),ot=S(":%S"),vt=S("%I:%M"),bt=S("%I %p"),kt=S("%a %d"),_t=S("%b %d"),lt=S("%B"),Wt=S("%Y");function Ot(gt){return(C(gt)<gt?U:w(gt)<gt?ot:v(gt)<gt?vt:g(gt)<gt?bt:u(gt)<gt?d(gt)<gt?kt:_t:i(gt)<gt?lt:Wt)(gt)}return L.invert=function(gt){return new Date(j(gt))},L.domain=function(gt){return arguments.length?P(Array.from(gt,S5)):P().map(E5)},L.ticks=function(gt){var Lt=P();return t(Lt[0],Lt[Lt.length-1],gt==null?10:gt)},L.tickFormat=function(gt,Lt){return Lt==null?Ot:S(Lt)},L.nice=function(gt){var Lt=P();return gt&&typeof gt.range=="function"||(gt=e(Lt[0],Lt[Lt.length-1],gt==null?10:gt)),gt?P(function(ee,At){var Tt,zt=0,Mt=(ee=ee.slice()).length-1,Jt=ee[zt],yt=ee[Mt];return yt<Jt&&(Tt=zt,zt=Mt,Mt=Tt,Tt=Jt,Jt=yt,yt=Tt),ee[zt]=At.floor(Jt),ee[Mt]=At.ceil(yt),ee}(Lt,gt)):L},L.copy=function(){return d0(L,c_(t,e,i,u,d,g,v,w,C,S))},L}function C5(){}function Nl(t){return t==null?C5:function(){return this.querySelector(t)}}function Vg(t){return t==null?[]:Array.isArray(t)?t:Array.from(t)}function A5(){return[]}function u_(t){return t==null?A5:function(){return this.querySelectorAll(t)}}function l_(t){return function(){return this.matches(t)}}function h_(t){return function(e){return e.matches(t)}}uf=function(t){var e=t.dateTime,i=t.date,u=t.time,d=t.periods,g=t.days,v=t.shortDays,w=t.months,C=t.shortMonths,S=lf(d),L=hf(d),j=lf(g),P=hf(g),U=lf(v),ot=hf(v),vt=lf(w),bt=hf(w),kt=lf(C),_t=hf(C),lt={a:function(At){return v[At.getDay()]},A:function(At){return g[At.getDay()]},b:function(At){return C[At.getMonth()]},B:function(At){return w[At.getMonth()]},c:null,d:Wv,e:Wv,f:s5,g:y5,G:Kv,H:Su,I:qv,j:o5,L:Vv,m:c5,M:u5,p:function(At){return d[+(At.getHours()>=12)]},q:function(At){return 1+~~(At.getMonth()/3)},Q:o_,s:s_,S:l5,u:h5,U:f5,V:d5,w:p5,W:Zv,x:null,X:null,y:g5,Y:Xv,Z:Qv,"%":qg},Wt={a:function(At){return v[At.getUTCDay()]},A:function(At){return g[At.getUTCDay()]},b:function(At){return C[At.getUTCMonth()]},B:function(At){return w[At.getUTCMonth()]},c:null,d:Jv,e:Jv,f:v5,g:k5,G:Dl,H:m5,I:t_,j:Sc,L:e_,m:n_,M:_5,p:function(At){return d[+(At.getUTCHours()>=12)]},q:function(At){return 1+~~(At.getUTCMonth()/3)},Q:o_,s:s_,S:b5,u:r_,U:T0,V:df,w:w5,W:Wg,x:null,X:null,y:x5,Y:a_,Z:T5,"%":qg},Ot={a:function(At,Tt,zt){var Mt=U.exec(Tt.slice(zt));return Mt?(At.w=ot.get(Mt[0].toLowerCase()),zt+Mt[0].length):-1},A:function(At,Tt,zt){var Mt=j.exec(Tt.slice(zt));return Mt?(At.w=P.get(Mt[0].toLowerCase()),zt+Mt[0].length):-1},b:function(At,Tt,zt){var Mt=kt.exec(Tt.slice(zt));return Mt?(At.m=_t.get(Mt[0].toLowerCase()),zt+Mt[0].length):-1},B:function(At,Tt,zt){var Mt=vt.exec(Tt.slice(zt));return Mt?(At.m=bt.get(Mt[0].toLowerCase()),zt+Mt[0].length):-1},c:function(At,Tt,zt){return ee(At,e,Tt,zt)},d:Hg,e:Hg,f:n5,g:zv,G:jv,H:ff,I:ff,j:qa,L:e5,m:$v,M:Eu,p:function(At,Tt,zt){var Mt=S.exec(Tt.slice(zt));return Mt?(At.p=L.get(Mt[0].toLowerCase()),zt+Mt[0].length):-1},q:$g,Q:i5,s:a5,S:Hv,u:Ug,U:Qw,V:Jw,w:k0,W:t5,x:function(At,Tt,zt){return ee(At,i,Tt,zt)},X:function(At,Tt,zt){return ee(At,u,Tt,zt)},y:zv,Y:jv,Z:Uv,"%":r5};function gt(At,Tt){return function(zt){var Mt,Jt,yt,ce=[],ve=-1,me=0,Me=At.length;for(zt instanceof Date||(zt=new Date(+zt));++ve<Me;)At.charCodeAt(ve)===37&&(ce.push(At.slice(me,ve)),(Jt=ys[Mt=At.charAt(++ve)])!=null?Mt=At.charAt(++ve):Jt=Mt==="e"?" ":"0",(yt=Tt[Mt])&&(Mt=yt(zt,Jt)),ce.push(Mt),me=ve+1);return ce.push(At.slice(me,ve)),ce.join("")}}function Lt(At,Tt){return function(zt){var Mt,Jt,yt=cf(1900,void 0,1);if(ee(yt,At,zt+="",0)!=zt.length)return null;if("Q"in yt)return new Date(yt.Q);if("s"in yt)return new Date(1e3*yt.s+("L"in yt?yt.L:0));if(Tt&&!("Z"in yt)&&(yt.Z=0),"p"in yt&&(yt.H=yt.H%12+12*yt.p),yt.m===void 0&&(yt.m="q"in yt?yt.q:0),"V"in yt){if(yt.V<1||yt.V>53)return null;"w"in yt||(yt.w=1),"Z"in yt?(Jt=(Mt=Yg(cf(yt.y,0,1))).getUTCDay(),Mt=Jt>4||Jt===0?x0.ceil(Mt):x0(Mt),Mt=sf.offset(Mt,7*(yt.V-1)),yt.y=Mt.getUTCFullYear(),yt.m=Mt.getUTCMonth(),yt.d=Mt.getUTCDate()+(yt.w+6)%7):(Jt=(Mt=gs(cf(yt.y,0,1))).getDay(),Mt=Jt>4||Jt===0?Ig.ceil(Mt):Ig(Mt),Mt=Al.offset(Mt,7*(yt.V-1)),yt.y=Mt.getFullYear(),yt.m=Mt.getMonth(),yt.d=Mt.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),Jt="Z"in yt?Yg(cf(yt.y,0,1)).getUTCDay():gs(cf(yt.y,0,1)).getDay(),yt.m=0,yt.d="W"in yt?(yt.w+6)%7+7*yt.W-(Jt+5)%7:yt.w+7*yt.U-(Jt+6)%7);return"Z"in yt?(yt.H+=yt.Z/100|0,yt.M+=yt.Z%100,Yg(yt)):gs(yt)}}function ee(At,Tt,zt,Mt){for(var Jt,yt,ce=0,ve=Tt.length,me=zt.length;ce<ve;){if(Mt>=me)return-1;if((Jt=Tt.charCodeAt(ce++))===37){if(Jt=Tt.charAt(ce++),!(yt=Ot[Jt in ys?Tt.charAt(ce++):Jt])||(Mt=yt(At,zt,Mt))<0)return-1}else if(Jt!=zt.charCodeAt(Mt++))return-1}return Mt}return lt.x=gt(i,lt),lt.X=gt(u,lt),lt.c=gt(e,lt),Wt.x=gt(i,Wt),Wt.X=gt(u,Wt),Wt.c=gt(e,Wt),{format:function(At){var Tt=gt(At+="",lt);return Tt.toString=function(){return At},Tt},parse:function(At){var Tt=Lt(At+="",!1);return Tt.toString=function(){return At},Tt},utcFormat:function(At){var Tt=gt(At+="",Wt);return Tt.toString=function(){return At},Tt},utcParse:function(At){var Tt=Lt(At+="",!0);return Tt.toString=function(){return At},Tt}}}({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"]}),Yv=uf.format,uf.parse,uf.utcFormat,uf.utcParse;var M5=Array.prototype.find;function D5(){return this.firstElementChild}var Gg=Array.prototype.filter;function N5(){return Array.from(this.children)}function f_(t){return new Array(t.length)}function E0(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}function O5(t){return function(){return t}}function Ui(t,e,i,u,d,g){for(var v,w=0,C=e.length,S=g.length;w<S;++w)(v=e[w])?(v.__data__=g[w],u[w]=v):i[w]=new E0(t,g[w]);for(;w<C;++w)(v=e[w])&&(d[w]=v)}function Cc(t,e,i,u,d,g,v){var w,C,S,L=new Map,j=e.length,P=g.length,U=new Array(j);for(w=0;w<j;++w)(C=e[w])&&(U[w]=S=v.call(C,C.__data__,w,e)+"",L.has(S)?d[w]=C:L.set(S,C));for(w=0;w<P;++w)S=v.call(t,g[w],w,g)+"",(C=L.get(S))?(u[w]=C,C.__data__=g[w],L.delete(S)):i[w]=new E0(t,g[w]);for(w=0;w<j;++w)(C=e[w])&&L.get(U[w])===C&&(d[w]=C)}function d_(t){return t.__data__}function Ma(t){return typeof t=="object"&&"length"in t?t:Array.from(t)}function L5(t,e){return t<e?-1:t>e?1:t>=e?0:NaN}E0.prototype={constructor:E0,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 Zg="http://www.w3.org/1999/xhtml";const pf={svg:"http://www.w3.org/2000/svg",xhtml:Zg,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function Ol(t){var e=t+="",i=e.indexOf(":");return i>=0&&(e=t.slice(0,i))!=="xmlns"&&(t=t.slice(i+1)),pf.hasOwnProperty(e)?{space:pf[e],local:t}:t}function p_(t){return function(){this.removeAttribute(t)}}function Da(t){return function(){this.removeAttributeNS(t.space,t.local)}}function B5(t,e){return function(){this.setAttribute(t,e)}}function I5(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}function R5(t,e){return function(){var i=e.apply(this,arguments);i==null?this.removeAttribute(t):this.setAttribute(t,i)}}function F5(t,e){return function(){var i=e.apply(this,arguments);i==null?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,i)}}function Xg(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function P5(t){return function(){this.style.removeProperty(t)}}function Y5(t,e,i){return function(){this.style.setProperty(t,e,i)}}function j5(t,e,i){return function(){var u=e.apply(this,arguments);u==null?this.style.removeProperty(t):this.style.setProperty(t,u,i)}}function Ll(t,e){return t.style.getPropertyValue(e)||Xg(t).getComputedStyle(t,null).getPropertyValue(e)}function z5(t){return function(){delete this[t]}}function U5(t,e){return function(){this[t]=e}}function $5(t,e){return function(){var i=e.apply(this,arguments);i==null?delete this[t]:this[t]=i}}function g_(t){return t.trim().split(/^|\s+/)}function Kg(t){return t.classList||new gf(t)}function gf(t){this._node=t,this._names=g_(t.getAttribute("class")||"")}function Cu(t,e){for(var i=Kg(t),u=-1,d=e.length;++u<d;)i.add(e[u])}function Qg(t,e){for(var i=Kg(t),u=-1,d=e.length;++u<d;)i.remove(e[u])}function H5(t){return function(){Cu(this,t)}}function yf(t){return function(){Qg(this,t)}}function S0(t,e){return function(){(e.apply(this,arguments)?Cu:Qg)(this,t)}}function y_(){this.textContent=""}function m_(t){return function(){this.textContent=t}}function v_(t){return function(){var e=t.apply(this,arguments);this.textContent=e==null?"":e}}function C0(){this.innerHTML=""}function A0(t){return function(){this.innerHTML=t}}function Jg(t){return function(){var e=t.apply(this,arguments);this.innerHTML=e==null?"":e}}function __(){this.nextSibling&&this.parentNode.appendChild(this)}function b_(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function w_(t){return function(){var e=this.ownerDocument,i=this.namespaceURI;return i===Zg&&e.documentElement.namespaceURI===Zg?e.createElement(t):e.createElementNS(i,t)}}function x_(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function ty(t){var e=Ol(t);return(e.local?x_:w_)(e)}function k_(){return null}function T_(){var t=this.parentNode;t&&t.removeChild(this)}function Ac(){var t=this.cloneNode(!1),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function M0(){var t=this.cloneNode(!0),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function D0(t){return t.trim().split(/^|\s+/).map(function(e){var i="",u=e.indexOf(".");return u>=0&&(i=e.slice(u+1),e=e.slice(0,u)),{type:e,name:i}})}function E_(t){return function(){var e=this.__on;if(e){for(var i,u=0,d=-1,g=e.length;u<g;++u)i=e[u],t.type&&i.type!==t.type||i.name!==t.name?e[++d]=i:this.removeEventListener(i.type,i.listener,i.options);++d?e.length=d:delete this.__on}}}function Fn(t,e,i){return function(){var u,d=this.__on,g=function(C){return function(S){C.call(this,S,this.__data__)}}(e);if(d){for(var v=0,w=d.length;v<w;++v)if((u=d[v]).type===t.type&&u.name===t.name)return this.removeEventListener(u.type,u.listener,u.options),this.addEventListener(u.type,u.listener=g,u.options=i),void(u.value=e)}this.addEventListener(t.type,g,i),u={type:t.type,name:t.name,value:e,listener:g,options:i},d?d.push(u):this.__on=[u]}}function mf(t,e,i){var u=Xg(t),d=u.CustomEvent;typeof d=="function"?d=new d(e,i):(d=u.document.createEvent("Event"),i?(d.initEvent(e,i.bubbles,i.cancelable),d.detail=i.detail):d.initEvent(e,!1,!1)),t.dispatchEvent(d)}function nr(t,e){return function(){return mf(this,t,e)}}function yi(t,e){return function(){return mf(this,t,e.apply(this,arguments))}}gf.prototype={add:function(t){this._names.indexOf(t)<0&&(this._names.push(t),this._node.setAttribute("class",this._names.join(" ")))},remove:function(t){var e=this._names.indexOf(t);e>=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};var Bl=[null];function Ir(t,e){this._groups=t,this._parents=e}function Yr(){return new Ir([[document.documentElement]],Bl)}Ir.prototype=Yr.prototype={constructor:Ir,select:function(t){typeof t!="function"&&(t=Nl(t));for(var e=this._groups,i=e.length,u=new Array(i),d=0;d<i;++d)for(var g,v,w=e[d],C=w.length,S=u[d]=new Array(C),L=0;L<C;++L)(g=w[L])&&(v=t.call(g,g.__data__,L,w))&&("__data__"in g&&(v.__data__=g.__data__),S[L]=v);return new Ir(u,this._parents)},selectAll:function(t){t=typeof t=="function"?function(L){return function(){return Vg(L.apply(this,arguments))}}(t):u_(t);for(var e=this._groups,i=e.length,u=[],d=[],g=0;g<i;++g)for(var v,w=e[g],C=w.length,S=0;S<C;++S)(v=w[S])&&(u.push(t.call(v,v.__data__,S,w)),d.push(v));return new Ir(u,d)},selectChild:function(t){return this.select(t==null?D5:function(e){return function(){return M5.call(this.children,e)}}(typeof t=="function"?t:h_(t)))},selectChildren:function(t){return this.selectAll(t==null?N5:function(e){return function(){return Gg.call(this.children,e)}}(typeof t=="function"?t:h_(t)))},filter:function(t){typeof t!="function"&&(t=l_(t));for(var e=this._groups,i=e.length,u=new Array(i),d=0;d<i;++d)for(var g,v=e[d],w=v.length,C=u[d]=[],S=0;S<w;++S)(g=v[S])&&t.call(g,g.__data__,S,v)&&C.push(g);return new Ir(u,this._parents)},data:function(t,e){if(!arguments.length)return Array.from(this,d_);var i=e?Cc:Ui,u=this._parents,d=this._groups;typeof t!="function"&&(t=O5(t));for(var g=d.length,v=new Array(g),w=new Array(g),C=new Array(g),S=0;S<g;++S){var L=u[S],j=d[S],P=j.length,U=Ma(t.call(L,L&&L.__data__,S,u)),ot=U.length,vt=w[S]=new Array(ot),bt=v[S]=new Array(ot),kt=C[S]=new Array(P);i(L,j,vt,bt,kt,U,e);for(var _t,lt,Wt=0,Ot=0;Wt<ot;++Wt)if(_t=vt[Wt]){for(Wt>=Ot&&(Ot=Wt+1);!(lt=bt[Ot])&&++Ot<ot;);_t._next=lt||null}}return(v=new Ir(v,u))._enter=w,v._exit=C,v},enter:function(){return new Ir(this._enter||this._groups.map(f_),this._parents)},exit:function(){return new Ir(this._exit||this._groups.map(f_),this._parents)},join:function(t,e,i){var u=this.enter(),d=this,g=this.exit();return typeof t=="function"?(u=t(u))&&(u=u.selection()):u=u.append(t+""),e!=null&&(d=e(d))&&(d=d.selection()),i==null?g.remove():i(g),u&&d?u.merge(d).order():d},merge:function(t){for(var e=t.selection?t.selection():t,i=this._groups,u=e._groups,d=i.length,g=u.length,v=Math.min(d,g),w=new Array(d),C=0;C<v;++C)for(var S,L=i[C],j=u[C],P=L.length,U=w[C]=new Array(P),ot=0;ot<P;++ot)(S=L[ot]||j[ot])&&(U[ot]=S);for(;C<d;++C)w[C]=i[C];return new Ir(w,this._parents)},selection:function(){return this},order:function(){for(var t=this._groups,e=-1,i=t.length;++e<i;)for(var u,d=t[e],g=d.length-1,v=d[g];--g>=0;)(u=d[g])&&(v&&4^u.compareDocumentPosition(v)&&v.parentNode.insertBefore(u,v),v=u);return this},sort:function(t){function e(j,P){return j&&P?t(j.__data__,P.__data__):!j-!P}t||(t=L5);for(var i=this._groups,u=i.length,d=new Array(u),g=0;g<u;++g){for(var v,w=i[g],C=w.length,S=d[g]=new Array(C),L=0;L<C;++L)(v=w[L])&&(S[L]=v);S.sort(e)}return new Ir(d,this._parents).order()},call:function(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this},nodes:function(){return Array.from(this)},node:function(){for(var t=this._groups,e=0,i=t.length;e<i;++e)for(var u=t[e],d=0,g=u.length;d<g;++d){var v=u[d];if(v)return v}return null},size:function(){let t=0;for(const e of this)++t;return t},empty:function(){return!this.node()},each:function(t){for(var e=this._groups,i=0,u=e.length;i<u;++i)for(var d,g=e[i],v=0,w=g.length;v<w;++v)(d=g[v])&&t.call(d,d.__data__,v,g);return this},attr:function(t,e){var i=Ol(t);if(arguments.length<2){var u=this.node();return i.local?u.getAttributeNS(i.space,i.local):u.getAttribute(i)}return this.each((e==null?i.local?Da:p_:typeof e=="function"?i.local?F5:R5:i.local?I5:B5)(i,e))},style:function(t,e,i){return arguments.length>1?this.each((e==null?P5:typeof e=="function"?j5:Y5)(t,e,i==null?"":i)):Ll(this.node(),t)},property:function(t,e){return arguments.length>1?this.each((e==null?z5:typeof e=="function"?$5:U5)(t,e)):this.node()[t]},classed:function(t,e){var i=g_(t+"");if(arguments.length<2){for(var u=Kg(this.node()),d=-1,g=i.length;++d<g;)if(!u.contains(i[d]))return!1;return!0}return this.each((typeof e=="function"?S0:e?H5:yf)(i,e))},text:function(t){return arguments.length?this.each(t==null?y_:(typeof t=="function"?v_:m_)(t)):this.node().textContent},html:function(t){return arguments.length?this.each(t==null?C0:(typeof t=="function"?Jg:A0)(t)):this.node().innerHTML},raise:function(){return this.each(__)},lower:function(){return this.each(b_)},append:function(t){var e=typeof t=="function"?t:ty(t);return this.select(function(){return this.appendChild(e.apply(this,arguments))})},insert:function(t,e){var i=typeof t=="function"?t:ty(t),u=e==null?k_:typeof e=="function"?e:Nl(e);return this.select(function(){return this.insertBefore(i.apply(this,arguments),u.apply(this,arguments)||null)})},remove:function(){return this.each(T_)},clone:function(t){return this.select(t?M0:Ac)},datum:function(t){return arguments.length?this.property("__data__",t):this.node().__data__},on:function(t,e,i){var u,d,g=D0(t+""),v=g.length;if(!(arguments.length<2)){for(w=e?Fn:E_,u=0;u<v;++u)this.each(w(g[u],e,i));return this}var w=this.node().__on;if(w){for(var C,S=0,L=w.length;S<L;++S)for(u=0,C=w[S];u<v;++u)if((d=g[u]).type===C.type&&d.name===C.name)return C.value}},dispatch:function(t,e){return this.each((typeof e=="function"?yi:nr)(t,e))},[Symbol.iterator]:function*(){for(var t=this._groups,e=0,i=t.length;e<i;++e)for(var u,d=t[e],g=0,v=d.length;g<v;++g)(u=d[g])&&(yield u)}};const wn=Yr;function Se(t){return typeof t=="string"?new Ir([[document.querySelector(t)]],[document.documentElement]):new Ir([[t]],Bl)}function Mc(t){return typeof t=="string"?new Ir([document.querySelectorAll(t)],[document.documentElement]):new Ir([Vg(t)],Bl)}const sa=Math.PI,hn=2*sa,ms=1e-6,S_=hn-ms;function Il(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function N0(){return new Il}Il.prototype=N0.prototype={constructor:Il,moveTo:function(t,e){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+e)},closePath:function(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(t,e){this._+="L"+(this._x1=+t)+","+(this._y1=+e)},quadraticCurveTo:function(t,e,i,u){this._+="Q"+ +t+","+ +e+","+(this._x1=+i)+","+(this._y1=+u)},bezierCurveTo:function(t,e,i,u,d,g){this._+="C"+ +t+","+ +e+","+ +i+","+ +u+","+(this._x1=+d)+","+(this._y1=+g)},arcTo:function(t,e,i,u,d){t=+t,e=+e,i=+i,u=+u,d=+d;var g=this._x1,v=this._y1,w=i-t,C=u-e,S=g-t,L=v-e,j=S*S+L*L;if(d<0)throw new Error("negative radius: "+d);if(this._x1===null)this._+="M"+(this._x1=t)+","+(this._y1=e);else if(j>ms)if(Math.abs(L*w-C*S)>ms&&d){var P=i-g,U=u-v,ot=w*w+C*C,vt=P*P+U*U,bt=Math.sqrt(ot),kt=Math.sqrt(j),_t=d*Math.tan((sa-Math.acos((ot+j-vt)/(2*bt*kt)))/2),lt=_t/kt,Wt=_t/bt;Math.abs(lt-1)>ms&&(this._+="L"+(t+lt*S)+","+(e+lt*L)),this._+="A"+d+","+d+",0,0,"+ +(L*P>S*U)+","+(this._x1=t+Wt*w)+","+(this._y1=e+Wt*C)}else this._+="L"+(this._x1=t)+","+(this._y1=e)},arc:function(t,e,i,u,d,g){t=+t,e=+e,g=!!g;var v=(i=+i)*Math.cos(u),w=i*Math.sin(u),C=t+v,S=e+w,L=1^g,j=g?u-d:d-u;if(i<0)throw new Error("negative radius: "+i);this._x1===null?this._+="M"+C+","+S:(Math.abs(this._x1-C)>ms||Math.abs(this._y1-S)>ms)&&(this._+="L"+C+","+S),i&&(j<0&&(j=j%hn+hn),j>S_?this._+="A"+i+","+i+",0,1,"+L+","+(t-v)+","+(e-w)+"A"+i+","+i+",0,1,"+L+","+(this._x1=C)+","+(this._y1=S):j>ms&&(this._+="A"+i+","+i+",0,"+ +(j>=sa)+","+L+","+(this._x1=t+i*Math.cos(d))+","+(this._y1=e+i*Math.sin(d))))},rect:function(t,e,i,u){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+e)+"h"+ +i+"v"+ +u+"h"+-i+"Z"},toString:function(){return this._}};const an=N0;function xr(t){return function(){return t}}var Ci=Math.abs,Ki=Math.atan2,Dc=Math.cos,Na=Math.max,O0=Math.min,kr=Math.sin,Vs=Math.sqrt,Oa=1e-12,Rl=Math.PI,Fl=Rl/2,vf=2*Rl;function Ho(t){return t>1?0:t<-1?Rl:Math.acos(t)}function ey(t){return t>=1?Fl:t<=-1?-Fl:Math.asin(t)}function C_(t){return t.innerRadius}function ny(t){return t.outerRadius}function ry(t){return t.startAngle}function iy(t){return t.endAngle}function L0(t){return t&&t.padAngle}function B0(t,e,i,u,d,g,v,w){var C=i-t,S=u-e,L=v-d,j=w-g,P=j*C-L*S;if(!(P*P<Oa))return[t+(P=(L*(e-g)-j*(t-d))/P)*C,e+P*S]}function lo(t,e,i,u,d,g,v){var w=t-i,C=e-u,S=(v?g:-g)/Vs(w*w+C*C),L=S*C,j=-S*w,P=t+L,U=e+j,ot=i+L,vt=u+j,bt=(P+ot)/2,kt=(U+vt)/2,_t=ot-P,lt=vt-U,Wt=_t*_t+lt*lt,Ot=d-g,gt=P*vt-ot*U,Lt=(lt<0?-1:1)*Vs(Na(0,Ot*Ot*Wt-gt*gt)),ee=(gt*lt-_t*Lt)/Wt,At=(-gt*_t-lt*Lt)/Wt,Tt=(gt*lt+_t*Lt)/Wt,zt=(-gt*_t+lt*Lt)/Wt,Mt=ee-bt,Jt=At-kt,yt=Tt-bt,ce=zt-kt;return Mt*Mt+Jt*Jt>yt*yt+ce*ce&&(ee=Tt,At=zt),{cx:ee,cy:At,x01:-L,y01:-j,x11:ee*(d/Ot-1),y11:At*(d/Ot-1)}}function ay(){var t=C_,e=ny,i=xr(0),u=null,d=ry,g=iy,v=L0,w=null;function C(){var S,L,j=+t.apply(this,arguments),P=+e.apply(this,arguments),U=d.apply(this,arguments)-Fl,ot=g.apply(this,arguments)-Fl,vt=Ci(ot-U),bt=ot>U;if(w||(w=S=an()),P<j&&(L=P,P=j,j=L),P>Oa)if(vt>vf-Oa)w.moveTo(P*Dc(U),P*kr(U)),w.arc(0,0,P,U,ot,!bt),j>Oa&&(w.moveTo(j*Dc(ot),j*kr(ot)),w.arc(0,0,j,ot,U,bt));else{var kt,_t,lt=U,Wt=ot,Ot=U,gt=ot,Lt=vt,ee=vt,At=v.apply(this,arguments)/2,Tt=At>Oa&&(u?+u.apply(this,arguments):Vs(j*j+P*P)),zt=O0(Ci(P-j)/2,+i.apply(this,arguments)),Mt=zt,Jt=zt;if(Tt>Oa){var yt=ey(Tt/j*kr(At)),ce=ey(Tt/P*kr(At));(Lt-=2*yt)>Oa?(Ot+=yt*=bt?1:-1,gt-=yt):(Lt=0,Ot=gt=(U+ot)/2),(ee-=2*ce)>Oa?(lt+=ce*=bt?1:-1,Wt-=ce):(ee=0,lt=Wt=(U+ot)/2)}var ve=P*Dc(lt),me=P*kr(lt),Me=j*Dc(gt),$e=j*kr(gt);if(zt>Oa){var ze,fn=P*Dc(Wt),Ne=P*kr(Wt),Pn=j*Dc(Ot),Sn=j*kr(Ot);if(vt<Rl&&(ze=B0(ve,me,Pn,Sn,fn,Ne,Me,$e))){var dn=ve-ze[0],vn=me-ze[1],on=fn-ze[0],Jr=Ne-ze[1],xn=1/kr(Ho((dn*on+vn*Jr)/(Vs(dn*dn+vn*vn)*Vs(on*on+Jr*Jr)))/2),sr=Vs(ze[0]*ze[0]+ze[1]*ze[1]);Mt=O0(zt,(j-sr)/(xn-1)),Jt=O0(zt,(P-sr)/(xn+1))}}ee>Oa?Jt>Oa?(kt=lo(Pn,Sn,ve,me,P,Jt,bt),_t=lo(fn,Ne,Me,$e,P,Jt,bt),w.moveTo(kt.cx+kt.x01,kt.cy+kt.y01),Jt<zt?w.arc(kt.cx,kt.cy,Jt,Ki(kt.y01,kt.x01),Ki(_t.y01,_t.x01),!bt):(w.arc(kt.cx,kt.cy,Jt,Ki(kt.y01,kt.x01),Ki(kt.y11,kt.x11),!bt),w.arc(0,0,P,Ki(kt.cy+kt.y11,kt.cx+kt.x11),Ki(_t.cy+_t.y11,_t.cx+_t.x11),!bt),w.arc(_t.cx,_t.cy,Jt,Ki(_t.y11,_t.x11),Ki(_t.y01,_t.x01),!bt))):(w.moveTo(ve,me),w.arc(0,0,P,lt,Wt,!bt)):w.moveTo(ve,me),j>Oa&&Lt>Oa?Mt>Oa?(kt=lo(Me,$e,fn,Ne,j,-Mt,bt),_t=lo(ve,me,Pn,Sn,j,-Mt,bt),w.lineTo(kt.cx+kt.x01,kt.cy+kt.y01),Mt<zt?w.arc(kt.cx,kt.cy,Mt,Ki(kt.y01,kt.x01),Ki(_t.y01,_t.x01),!bt):(w.arc(kt.cx,kt.cy,Mt,Ki(kt.y01,kt.x01),Ki(kt.y11,kt.x11),!bt),w.arc(0,0,j,Ki(kt.cy+kt.y11,kt.cx+kt.x11),Ki(_t.cy+_t.y11,_t.cx+_t.x11),bt),w.arc(_t.cx,_t.cy,Mt,Ki(_t.y11,_t.x11),Ki(_t.y01,_t.x01),!bt))):w.arc(0,0,j,gt,Ot,bt):w.lineTo(Me,$e)}else w.moveTo(0,0);if(w.closePath(),S)return w=null,S+""||null}return C.centroid=function(){var S=(+t.apply(this,arguments)+ +e.apply(this,arguments))/2,L=(+d.apply(this,arguments)+ +g.apply(this,arguments))/2-Rl/2;return[Dc(L)*S,kr(L)*S]},C.innerRadius=function(S){return arguments.length?(t=typeof S=="function"?S:xr(+S),C):t},C.outerRadius=function(S){return arguments.length?(e=typeof S=="function"?S:xr(+S),C):e},C.cornerRadius=function(S){return arguments.length?(i=typeof S=="function"?S:xr(+S),C):i},C.padRadius=function(S){return arguments.length?(u=S==null?null:typeof S=="function"?S:xr(+S),C):u},C.startAngle=function(S){return arguments.length?(d=typeof S=="function"?S:xr(+S),C):d},C.endAngle=function(S){return arguments.length?(g=typeof S=="function"?S:xr(+S),C):g},C.padAngle=function(S){return arguments.length?(v=typeof S=="function"?S:xr(+S),C):v},C.context=function(S){return arguments.length?(w=S==null?null:S,C):w},C}function A_(t){return typeof t=="object"&&"length"in t?t:Array.from(t)}function M_(t){this._context=t}function So(t){return new M_(t)}function W5(t){return t[0]}function I0(t){return t[1]}function Co(t,e){var i=xr(!0),u=null,d=So,g=null;function v(w){var C,S,L,j=(w=A_(w)).length,P=!1;for(u==null&&(g=d(L=an())),C=0;C<=j;++C)!(C<j&&i(S=w[C],C,w))===P&&((P=!P)?g.lineStart():g.lineEnd()),P&&g.point(+t(S,C,w),+e(S,C,w));if(L)return g=null,L+""||null}return t=typeof t=="function"?t:t===void 0?W5:xr(t),e=typeof e=="function"?e:e===void 0?I0:xr(e),v.x=function(w){return arguments.length?(t=typeof w=="function"?w:xr(+w),v):t},v.y=function(w){return arguments.length?(e=typeof w=="function"?w:xr(+w),v):e},v.defined=function(w){return arguments.length?(i=typeof w=="function"?w:xr(!!w),v):i},v.curve=function(w){return arguments.length?(d=w,u!=null&&(g=d(u)),v):d},v.context=function(w){return arguments.length?(w==null?u=g=null:g=d(u=w),v):u},v}function R0(t,e){return e<t?-1:e>t?1:e>=t?0:NaN}function Pl(t){return t}function Yl(){}function Au(t,e,i){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+i)/6)}function _f(t){this._context=t}function jr(t){return new _f(t)}function La(t){this._context=t}function ci(t){this._context=t}function Va(t){this._context=t}function Nc(t){return t<0?-1:1}function oy(t,e,i){var u=t._x1-t._x0,d=e-t._x1,g=(t._y1-t._y0)/(u||d<0&&-0),v=(i-t._y1)/(d||u<0&&-0),w=(g*d+v*u)/(u+d);return(Nc(g)+Nc(v))*Math.min(Math.abs(g),Math.abs(v),.5*Math.abs(w))||0}function sy(t,e){var i=t._x1-t._x0;return i?(3*(t._y1-t._y0)/i-e)/2:e}function Oc(t,e,i){var u=t._x0,d=t._y0,g=t._x1,v=t._y1,w=(g-u)/3;t._context.bezierCurveTo(u+w,d+w*e,g-w,v-w*i,g,v)}function Wo(t){this._context=t}function vs(t){this._context=new jl(t)}function jl(t){this._context=t}function bf(t){this._context=t}function wf(t){var e,i,u=t.length-1,d=new Array(u),g=new Array(u),v=new Array(u);for(d[0]=0,g[0]=2,v[0]=t[0]+2*t[1],e=1;e<u-1;++e)d[e]=1,g[e]=4,v[e]=4*t[e]+2*t[e+1];for(d[u-1]=2,g[u-1]=7,v[u-1]=8*t[u-1]+t[u],e=1;e<u;++e)i=d[e]/g[e-1],g[e]-=i,v[e]-=i*v[e-1];for(d[u-1]=v[u-1]/g[u-1],e=u-2;e>=0;--e)d[e]=(v[e]-d[e+1])/g[e];for(g[u-1]=(t[u]+d[u-1])/2,e=0;e<u-1;++e)g[e]=2*t[e+1]-d[e+1];return[d,g]}function Mu(t,e){this._context=t,this._t=e}M_.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(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:this._context.lineTo(t,e)}}},_f.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:Au(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(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:Au(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},La.prototype={areaStart:Yl,areaEnd:Yl,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x2,this._y2),this._context.closePath();break;case 2:this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break;case 3:this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4)}},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x2=t,this._y2=e;break;case 1:this._point=2,this._x3=t,this._y3=e;break;case 2:this._point=3,this._x4=t,this._y4=e,this._context.moveTo((this._x0+4*this._x1+t)/6,(this._y0+4*this._y1+e)/6);break;default:Au(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},ci.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(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var i=(this._x0+4*this._x1+t)/6,u=(this._y0+4*this._y1+e)/6;this._line?this._context.lineTo(i,u):this._context.moveTo(i,u);break;case 3:this._point=4;default:Au(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},Va.prototype={areaStart:Yl,areaEnd:Yl,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(t,e){t=+t,e=+e,this._point?this._context.lineTo(t,e):(this._point=1,this._context.moveTo(t,e))}},Wo.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:Oc(this,this._t0,sy(this,this._t0))}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){var i=NaN;if(e=+e,(t=+t)!==this._x1||e!==this._y1){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,Oc(this,sy(this,i=oy(this,t,e)),i);break;default:Oc(this,this._t0,i=oy(this,t,e))}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e,this._t0=i}}},(vs.prototype=Object.create(Wo.prototype)).point=function(t,e){Wo.prototype.point.call(this,e,t)},jl.prototype={moveTo:function(t,e){this._context.moveTo(e,t)},closePath:function(){this._context.closePath()},lineTo:function(t,e){this._context.lineTo(e,t)},bezierCurveTo:function(t,e,i,u,d,g){this._context.bezierCurveTo(e,t,u,i,g,d)}},bf.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var t=this._x,e=this._y,i=t.length;if(i)if(this._line?this._context.lineTo(t[0],e[0]):this._context.moveTo(t[0],e[0]),i===2)this._context.lineTo(t[1],e[1]);else for(var u=wf(t),d=wf(e),g=0,v=1;v<i;++g,++v)this._context.bezierCurveTo(u[0][g],d[0][g],u[1][g],d[1][g],t[v],e[v]);(this._line||this._line!==0&&i===1)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(t,e){this._x.push(+t),this._y.push(+e)}},Mu.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&this._point===2&&this._context.lineTo(this._x,this._y),(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,e),this._context.lineTo(t,e);else{var i=this._x*(1-this._t)+t*this._t;this._context.lineTo(i,this._y),this._context.lineTo(i,e)}}this._x=t,this._y=e}};var zl=new Date,Ul=new Date;function Ao(t,e,i,u){function d(g){return t(g=arguments.length===0?new Date:new Date(+g)),g}return d.floor=function(g){return t(g=new Date(+g)),g},d.ceil=function(g){return t(g=new Date(g-1)),e(g,1),t(g),g},d.round=function(g){var v=d(g),w=d.ceil(g);return g-v<w-g?v:w},d.offset=function(g,v){return e(g=new Date(+g),v==null?1:Math.floor(v)),g},d.range=function(g,v,w){var C,S=[];if(g=d.ceil(g),w=w==null?1:Math.floor(w),!(g<v&&w>0))return S;do S.push(C=new Date(+g)),e(g,w),t(g);while(C<g&&g<v);return S},d.filter=function(g){return Ao(function(v){if(v>=v)for(;t(v),!g(v);)v.setTime(v-1)},function(v,w){if(v>=v)if(w<0)for(;++w<=0;)for(;e(v,-1),!g(v););else for(;--w>=0;)for(;e(v,1),!g(v););})},i&&(d.count=function(g,v){return zl.setTime(+g),Ul.setTime(+v),t(zl),t(Ul),Math.floor(i(zl,Ul))},d.every=function(g){return g=Math.floor(g),isFinite(g)&&g>0?g>1?d.filter(u?function(v){return u(v)%g==0}:function(v){return d.count(0,v)%g==0}):d:null}),d}const xf=864e5,F0=6048e5;function Gs(t){return Ao(function(e){e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setUTCHours(0,0,0,0)},function(e,i){e.setUTCDate(e.getUTCDate()+7*i)},function(e,i){return(i-e)/F0})}var cy=Gs(0),P0=Gs(1);Gs(2),Gs(3);var $l=Gs(4);Gs(5),Gs(6);var Ba=Ao(function(t){t.setUTCHours(0,0,0,0)},function(t,e){t.setUTCDate(t.getUTCDate()+e)},function(t,e){return(e-t)/xf},function(t){return t.getUTCDate()-1});const ma=Ba;function Ai(t){return Ao(function(e){e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)},function(e,i){e.setDate(e.getDate()+7*i)},function(e,i){return(i-e-6e4*(i.getTimezoneOffset()-e.getTimezoneOffset()))/F0})}var kf=Ai(0),qo=Ai(1);Ai(2),Ai(3);var Du=Ai(4);Ai(5),Ai(6);var D_=Ao(t=>t.setHours(0,0,0,0),(t,e)=>t.setDate(t.getDate()+e),(t,e)=>(e-t-6e4*(e.getTimezoneOffset()-t.getTimezoneOffset()))/xf,t=>t.getDate()-1);const uy=D_;var ly=Ao(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()});ly.every=function(t){return isFinite(t=Math.floor(t))&&t>0?Ao(function(e){e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)},function(e,i){e.setFullYear(e.getFullYear()+i*t)}):null};const Hl=ly;var N_=Ao(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()});N_.every=function(t){return isFinite(t=Math.floor(t))&&t>0?Ao(function(e){e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},function(e,i){e.setUTCFullYear(e.getUTCFullYear()+i*t)}):null};const Tf=N_;function Ia(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 hy(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 Wl(t,e,i){return{y:t,m:e,d:i,H:0,M:0,S:0,L:0}}var Ef,ho,Y0={"-":"",_:" ",0:"0"},mi=/^\s*\d+/,O_=/^%/,q5=/[\\^$*+?|[\]().{}]/g;function Tr(t,e,i){var u=t<0?"-":"",d=(u?-t:t)+"",g=d.length;return u+(g<i?new Array(i-g+1).join(e)+d:d)}function L_(t){return t.replace(q5,"\\$&")}function Sf(t){return new RegExp("^(?:"+t.map(L_).join("|")+")","i")}function Cf(t){return new Map(t.map((e,i)=>[e.toLowerCase(),i]))}function V5(t,e,i){var u=mi.exec(e.slice(i,i+1));return u?(t.w=+u[0],i+u[0].length):-1}function B_(t,e,i){var u=mi.exec(e.slice(i,i+1));return u?(t.u=+u[0],i+u[0].length):-1}function G5(t,e,i){var u=mi.exec(e.slice(i,i+2));return u?(t.U=+u[0],i+u[0].length):-1}function ql(t,e,i){var u=mi.exec(e.slice(i,i+2));return u?(t.V=+u[0],i+u[0].length):-1}function fy(t,e,i){var u=mi.exec(e.slice(i,i+2));return u?(t.W=+u[0],i+u[0].length):-1}function j0(t,e,i){var u=mi.exec(e.slice(i,i+4));return u?(t.y=+u[0],i+u[0].length):-1}function z0(t,e,i){var u=mi.exec(e.slice(i,i+2));return u?(t.y=+u[0]+(+u[0]>68?1900:2e3),i+u[0].length):-1}function I_(t,e,i){var u=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(e.slice(i,i+6));return u?(t.Z=u[1]?0:-(u[2]+(u[3]||"00")),i+u[0].length):-1}function R_(t,e,i){var u=mi.exec(e.slice(i,i+1));return u?(t.q=3*u[0]-3,i+u[0].length):-1}function F_(t,e,i){var u=mi.exec(e.slice(i,i+2));return u?(t.m=u[0]-1,i+u[0].length):-1}function dy(t,e,i){var u=mi.exec(e.slice(i,i+2));return u?(t.d=+u[0],i+u[0].length):-1}function P_(t,e,i){var u=mi.exec(e.slice(i,i+3));return u?(t.m=0,t.d=+u[0],i+u[0].length):-1}function py(t,e,i){var u=mi.exec(e.slice(i,i+2));return u?(t.H=+u[0],i+u[0].length):-1}function Z5(t,e,i){var u=mi.exec(e.slice(i,i+2));return u?(t.M=+u[0],i+u[0].length):-1}function Y_(t,e,i){var u=mi.exec(e.slice(i,i+2));return u?(t.S=+u[0],i+u[0].length):-1}function U0(t,e,i){var u=mi.exec(e.slice(i,i+3));return u?(t.L=+u[0],i+u[0].length):-1}function $0(t,e,i){var u=mi.exec(e.slice(i,i+6));return u?(t.L=Math.floor(u[0]/1e3),i+u[0].length):-1}function j_(t,e,i){var u=O_.exec(e.slice(i,i+1));return u?i+u[0].length:-1}function z_(t,e,i){var u=mi.exec(e.slice(i));return u?(t.Q=+u[0],i+u[0].length):-1}function gy(t,e,i){var u=mi.exec(e.slice(i));return u?(t.s=+u[0],i+u[0].length):-1}function H0(t,e){return Tr(t.getDate(),e,2)}function U_(t,e){return Tr(t.getHours(),e,2)}function $_(t,e){return Tr(t.getHours()%12||12,e,2)}function X5(t,e){return Tr(1+uy.count(Hl(t),t),e,3)}function H_(t,e){return Tr(t.getMilliseconds(),e,3)}function yy(t,e){return H_(t,e)+"000"}function W_(t,e){return Tr(t.getMonth()+1,e,2)}function Af(t,e){return Tr(t.getMinutes(),e,2)}function W0(t,e){return Tr(t.getSeconds(),e,2)}function q0(t){var e=t.getDay();return e===0?7:e}function K5(t,e){return Tr(kf.count(Hl(t)-1,t),e,2)}function V0(t){var e=t.getDay();return e>=4||e===0?Du(t):Du.ceil(t)}function G0(t,e){return t=V0(t),Tr(Du.count(Hl(t),t)+(Hl(t).getDay()===4),e,2)}function Z0(t){return t.getDay()}function my(t,e){return Tr(qo.count(Hl(t)-1,t),e,2)}function Vl(t,e){return Tr(t.getFullYear()%100,e,2)}function Q5(t,e){return Tr((t=V0(t)).getFullYear()%100,e,2)}function J5(t,e){return Tr(t.getFullYear()%1e4,e,4)}function tx(t,e){var i=t.getDay();return Tr((t=i>=4||i===0?Du(t):Du.ceil(t)).getFullYear()%1e4,e,4)}function q_(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+Tr(e/60|0,"0",2)+Tr(e%60,"0",2)}function X0(t,e){return Tr(t.getUTCDate(),e,2)}function ex(t,e){return Tr(t.getUTCHours(),e,2)}function K0(t,e){return Tr(t.getUTCHours()%12||12,e,2)}function V_(t,e){return Tr(1+ma.count(Tf(t),t),e,3)}function vy(t,e){return Tr(t.getUTCMilliseconds(),e,3)}function Q0(t,e){return vy(t,e)+"000"}function G_(t,e){return Tr(t.getUTCMonth()+1,e,2)}function Z_(t,e){return Tr(t.getUTCMinutes(),e,2)}function X_(t,e){return Tr(t.getUTCSeconds(),e,2)}function nx(t){var e=t.getUTCDay();return e===0?7:e}function K_(t,e){return Tr(cy.count(Tf(t)-1,t),e,2)}function Q_(t){var e=t.getUTCDay();return e>=4||e===0?$l(t):$l.ceil(t)}function J_(t,e){return t=Q_(t),Tr($l.count(Tf(t),t)+(Tf(t).getUTCDay()===4),e,2)}function tb(t){return t.getUTCDay()}function eb(t,e){return Tr(P0.count(Tf(t)-1,t),e,2)}function rx(t,e){return Tr(t.getUTCFullYear()%100,e,2)}function ix(t,e){return Tr((t=Q_(t)).getUTCFullYear()%100,e,2)}function Mf(t,e){return Tr(t.getUTCFullYear()%1e4,e,4)}function nb(t,e){var i=t.getUTCDay();return Tr((t=i>=4||i===0?$l(t):$l.ceil(t)).getUTCFullYear()%1e4,e,4)}function rb(){return"+0000"}function J0(){return"%"}function t1(t){return+t}function e1(t){return Math.floor(+t/1e3)}Ef=function(t){var e=t.dateTime,i=t.date,u=t.time,d=t.periods,g=t.days,v=t.shortDays,w=t.months,C=t.shortMonths,S=Sf(d),L=Cf(d),j=Sf(g),P=Cf(g),U=Sf(v),ot=Cf(v),vt=Sf(w),bt=Cf(w),kt=Sf(C),_t=Cf(C),lt={a:function(At){return v[At.getDay()]},A:function(At){return g[At.getDay()]},b:function(At){return C[At.getMonth()]},B:function(At){return w[At.getMonth()]},c:null,d:H0,e:H0,f:yy,g:Q5,G:tx,H:U_,I:$_,j:X5,L:H_,m:W_,M:Af,p:function(At){return d[+(At.getHours()>=12)]},q:function(At){return 1+~~(At.getMonth()/3)},Q:t1,s:e1,S:W0,u:q0,U:K5,V:G0,w:Z0,W:my,x:null,X:null,y:Vl,Y:J5,Z:q_,"%":J0},Wt={a:function(At){return v[At.getUTCDay()]},A:function(At){return g[At.getUTCDay()]},b:function(At){return C[At.getUTCMonth()]},B:function(At){return w[At.getUTCMonth()]},c:null,d:X0,e:X0,f:Q0,g:ix,G:nb,H:ex,I:K0,j:V_,L:vy,m:G_,M:Z_,p:function(At){return d[+(At.getUTCHours()>=12)]},q:function(At){return 1+~~(At.getUTCMonth()/3)},Q:t1,s:e1,S:X_,u:nx,U:K_,V:J_,w:tb,W:eb,x:null,X:null,y:rx,Y:Mf,Z:rb,"%":J0},Ot={a:function(At,Tt,zt){var Mt=U.exec(Tt.slice(zt));return Mt?(At.w=ot.get(Mt[0].toLowerCase()),zt+Mt[0].length):-1},A:function(At,Tt,zt){var Mt=j.exec(Tt.slice(zt));return Mt?(At.w=P.get(Mt[0].toLowerCase()),zt+Mt[0].length):-1},b:function(At,Tt,zt){var Mt=kt.exec(Tt.slice(zt));return Mt?(At.m=_t.get(Mt[0].toLowerCase()),zt+Mt[0].length):-1},B:function(At,Tt,zt){var Mt=vt.exec(Tt.slice(zt));return Mt?(At.m=bt.get(Mt[0].toLowerCase()),zt+Mt[0].length):-1},c:function(At,Tt,zt){return ee(At,e,Tt,zt)},d:dy,e:dy,f:$0,g:z0,G:j0,H:py,I:py,j:P_,L:U0,m:F_,M:Z5,p:function(At,Tt,zt){var Mt=S.exec(Tt.slice(zt));return Mt?(At.p=L.get(Mt[0].toLowerCase()),zt+Mt[0].length):-1},q:R_,Q:z_,s:gy,S:Y_,u:B_,U:G5,V:ql,w:V5,W:fy,x:function(At,Tt,zt){return ee(At,i,Tt,zt)},X:function(At,Tt,zt){return ee(At,u,Tt,zt)},y:z0,Y:j0,Z:I_,"%":j_};function gt(At,Tt){return function(zt){var Mt,Jt,yt,ce=[],ve=-1,me=0,Me=At.length;for(zt instanceof Date||(zt=new Date(+zt));++ve<Me;)At.charCodeAt(ve)===37&&(ce.push(At.slice(me,ve)),(Jt=Y0[Mt=At.charAt(++ve)])!=null?Mt=At.charAt(++ve):Jt=Mt==="e"?" ":"0",(yt=Tt[Mt])&&(Mt=yt(zt,Jt)),ce.push(Mt),me=ve+1);return ce.push(At.slice(me,ve)),ce.join("")}}function Lt(At,Tt){return function(zt){var Mt,Jt,yt=Wl(1900,void 0,1);if(ee(yt,At,zt+="",0)!=zt.length)return null;if("Q"in yt)return new Date(yt.Q);if("s"in yt)return new Date(1e3*yt.s+("L"in yt?yt.L:0));if(Tt&&!("Z"in yt)&&(yt.Z=0),"p"in yt&&(yt.H=yt.H%12+12*yt.p),yt.m===void 0&&(yt.m="q"in yt?yt.q:0),"V"in yt){if(yt.V<1||yt.V>53)return null;"w"in yt||(yt.w=1),"Z"in yt?(Jt=(Mt=hy(Wl(yt.y,0,1))).getUTCDay(),Mt=Jt>4||Jt===0?P0.ceil(Mt):P0(Mt),Mt=ma.offset(Mt,7*(yt.V-1)),yt.y=Mt.getUTCFullYear(),yt.m=Mt.getUTCMonth(),yt.d=Mt.getUTCDate()+(yt.w+6)%7):(Jt=(Mt=Ia(Wl(yt.y,0,1))).getDay(),Mt=Jt>4||Jt===0?qo.ceil(Mt):qo(Mt),Mt=uy.offset(Mt,7*(yt.V-1)),yt.y=Mt.getFullYear(),yt.m=Mt.getMonth(),yt.d=Mt.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),Jt="Z"in yt?hy(Wl(yt.y,0,1)).getUTCDay():Ia(Wl(yt.y,0,1)).getDay(),yt.m=0,yt.d="W"in yt?(yt.w+6)%7+7*yt.W-(Jt+5)%7:yt.w+7*yt.U-(Jt+6)%7);return"Z"in yt?(yt.H+=yt.Z/100|0,yt.M+=yt.Z%100,hy(yt)):Ia(yt)}}function ee(At,Tt,zt,Mt){for(var Jt,yt,ce=0,ve=Tt.length,me=zt.length;ce<ve;){if(Mt>=me)return-1;if((Jt=Tt.charCodeAt(ce++))===37){if(Jt=Tt.charAt(ce++),!(yt=Ot[Jt in Y0?Tt.charAt(ce++):Jt])||(Mt=yt(At,zt,Mt))<0)return-1}else if(Jt!=zt.charCodeAt(Mt++))return-1}return Mt}return lt.x=gt(i,lt),lt.X=gt(u,lt),lt.c=gt(e,lt),Wt.x=gt(i,Wt),Wt.X=gt(u,Wt),Wt.c=gt(e,Wt),{format:function(At){var Tt=gt(At+="",lt);return Tt.toString=function(){return At},Tt},parse:function(At){var Tt=Lt(At+="",!1);return Tt.toString=function(){return At},Tt},utcFormat:function(At){var Tt=gt(At+="",Wt);return Tt.toString=function(){return At},Tt},utcParse:function(At){var Tt=Lt(At+="",!0);return Tt.toString=function(){return At},Tt}}}({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"]}),ho=Ef.format,Ef.parse,Ef.utcFormat,Ef.utcParse;var _y={value:()=>{}};function Zs(){for(var t,e=0,i=arguments.length,u={};e<i;++e){if(!(t=arguments[e]+"")||t in u||/[\s.]/.test(t))throw new Error("illegal type: "+t);u[t]=[]}return new n1(u)}function n1(t){this._=t}function ax(t,e){return t.trim().split(/^|\s+/).map(function(i){var u="",d=i.indexOf(".");if(d>=0&&(u=i.slice(d+1),i=i.slice(0,d)),i&&!e.hasOwnProperty(i))throw new Error("unknown type: "+i);return{type:i,name:u}})}function ib(t,e){for(var i,u=0,d=t.length;u<d;++u)if((i=t[u]).name===e)return i.value}function ab(t,e,i){for(var u=0,d=t.length;u<d;++u)if(t[u].name===e){t[u]=_y,t=t.slice(0,u).concat(t.slice(u+1));break}return i!=null&&t.push({name:e,value:i}),t}n1.prototype=Zs.prototype={constructor:n1,on:function(t,e){var i,u=this._,d=ax(t+"",u),g=-1,v=d.length;if(!(arguments.length<2)){if(e!=null&&typeof e!="function")throw new Error("invalid callback: "+e);for(;++g<v;)if(i=(t=d[g]).type)u[i]=ab(u[i],t.name,e);else if(e==null)for(i in u)u[i]=ab(u[i],t.name,null);return this}for(;++g<v;)if((i=(t=d[g]).type)&&(i=ib(u[i],t.name)))return i},copy:function(){var t={},e=this._;for(var i in e)t[i]=e[i].slice();return new n1(t)},call:function(t,e){if((i=arguments.length-2)>0)for(var i,u,d=new Array(i),g=0;g<i;++g)d[g]=arguments[g+2];if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(g=0,i=(u=this._[t]).length;g<i;++g)u[g].value.apply(e,d)},apply:function(t,e,i){if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(var u=this._[t],d=0,g=u.length;d<g;++d)u[d].value.apply(e,i)}};const ob=Zs;var Xs,Lc,_s=0,Bc=0,Df=0,Nu=0,Ic=0,Nf=0,Ga=typeof performance=="object"&&performance.now?performance:Date,Vo=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function Of(){return Ic||(Vo(by),Ic=Ga.now()+Nf)}function by(){Ic=0}function Rc(){this._call=this._time=this._next=null}function Lf(t,e,i){var u=new Rc;return u.restart(t,e,i),u}function Bf(){Ic=(Nu=Ga.now())+Nf,_s=Bc=0;try{(function(){Of(),++_s;for(var t,e=Xs;e;)(t=Ic-e._time)>=0&&e._call.call(void 0,t),e=e._next;--_s})()}finally{_s=0,function(){for(var t,e,i=Xs,u=1/0;i;)i._call?(u>i._time&&(u=i._time),t=i,i=i._next):(e=i._next,i._next=null,i=t?t._next=e:Xs=e);Lc=t,If(u)}(),Ic=0}}function Gl(){var t=Ga.now(),e=t-Nu;e>1e3&&(Nf-=e,Nu=t)}function If(t){_s||(Bc&&(Bc=clearTimeout(Bc)),t-Ic>24?(t<1/0&&(Bc=setTimeout(Bf,t-Ga.now()-Nf)),Df&&(Df=clearInterval(Df))):(Df||(Nu=Ga.now(),Df=setInterval(Gl,1e3)),_s=1,Vo(Bf)))}function r1(t,e,i){var u=new Rc;return e=e==null?0:+e,u.restart(d=>{u.stop(),t(d+e)},e,i),u}Rc.prototype=Lf.prototype={constructor:Rc,restart:function(t,e,i){if(typeof t!="function")throw new TypeError("callback is not a function");i=(i==null?Of():+i)+(e==null?0:+e),this._next||Lc===this||(Lc?Lc._next=this:Xs=this,Lc=this),this._call=t,this._time=i,If()},stop:function(){this._call&&(this._call=null,this._time=1/0,If())}};var Rf=ob("start","end","cancel","interrupt"),Go=[];function bs(t,e,i,u,d,g){var v=t.__transition;if(v){if(i in v)return}else t.__transition={};(function(w,C,S){var L,j=w.__transition;function P(vt){var bt,kt,_t,lt;if(S.state!==1)return ot();for(bt in j)if((lt=j[bt]).name===S.name){if(lt.state===3)return r1(P);lt.state===4?(lt.state=6,lt.timer.stop(),lt.on.call("interrupt",w,w.__data__,lt.index,lt.group),delete j[bt]):+bt<C&&(lt.state=6,lt.timer.stop(),lt.on.call("cancel",w,w.__data__,lt.index,lt.group),delete j[bt])}if(r1(function(){S.state===3&&(S.state=4,S.timer.restart(U,S.delay,S.time),U(vt))}),S.state=2,S.on.call("start",w,w.__data__,S.index,S.group),S.state===2){for(S.state=3,L=new Array(_t=S.tween.length),bt=0,kt=-1;bt<_t;++bt)(lt=S.tween[bt].value.call(w,w.__data__,S.index,S.group))&&(L[++kt]=lt);L.length=kt+1}}function U(vt){for(var bt=vt<S.duration?S.ease.call(null,vt/S.duration):(S.timer.restart(ot),S.state=5,1),kt=-1,_t=L.length;++kt<_t;)L[kt].call(w,bt);S.state===5&&(S.on.call("end",w,w.__data__,S.index,S.group),ot())}function ot(){for(var vt in S.state=6,S.timer.stop(),delete j[C],j)return;delete w.__transition}j[C]=S,S.timer=Lf(function(vt){S.state=1,S.timer.restart(P,S.delay,S.time),S.delay<=vt&&P(vt-S.delay)},0,S.time)})(t,i,{name:e,index:u,group:d,on:Rf,tween:Go,time:g.time,delay:g.delay,duration:g.duration,ease:g.ease,timer:null,state:0})}function i1(t,e){var i=Zo(t,e);if(i.state>0)throw new Error("too late; already scheduled");return i}function ws(t,e){var i=Zo(t,e);if(i.state>3)throw new Error("too late; already running");return i}function Zo(t,e){var i=t.__transition;if(!i||!(i=i[e]))throw new Error("transition not found");return i}function Ks(t,e){return t=+t,e=+e,function(i){return t*(1-i)+e*i}}var a1,sb=180/Math.PI,wy={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function xy(t,e,i,u,d,g){var v,w,C;return(v=Math.sqrt(t*t+e*e))&&(t/=v,e/=v),(C=t*i+e*u)&&(i-=t*C,u-=e*C),(w=Math.sqrt(i*i+u*u))&&(i/=w,u/=w,C/=w),t*u<e*i&&(t=-t,e=-e,C=-C,v=-v),{translateX:d,translateY:g,rotate:Math.atan2(e,t)*sb,skewX:Math.atan(C)*sb,scaleX:v,scaleY:w}}function ky(t,e,i,u){function d(g){return g.length?g.pop()+" ":""}return function(g,v){var w=[],C=[];return g=t(g),v=t(v),function(S,L,j,P,U,ot){if(S!==j||L!==P){var vt=U.push("translate(",null,e,null,i);ot.push({i:vt-4,x:Ks(S,j)},{i:vt-2,x:Ks(L,P)})}else(j||P)&&U.push("translate("+j+e+P+i)}(g.translateX,g.translateY,v.translateX,v.translateY,w,C),function(S,L,j,P){S!==L?(S-L>180?L+=360:L-S>180&&(S+=360),P.push({i:j.push(d(j)+"rotate(",null,u)-2,x:Ks(S,L)})):L&&j.push(d(j)+"rotate("+L+u)}(g.rotate,v.rotate,w,C),function(S,L,j,P){S!==L?P.push({i:j.push(d(j)+"skewX(",null,u)-2,x:Ks(S,L)}):L&&j.push(d(j)+"skewX("+L+u)}(g.skewX,v.skewX,w,C),function(S,L,j,P,U,ot){if(S!==j||L!==P){var vt=U.push(d(U)+"scale(",null,",",null,")");ot.push({i:vt-4,x:Ks(S,j)},{i:vt-2,x:Ks(L,P)})}else j===1&&P===1||U.push(d(U)+"scale("+j+","+P+")")}(g.scaleX,g.scaleY,v.scaleX,v.scaleY,w,C),g=v=null,function(S){for(var L,j=-1,P=C.length;++j<P;)w[(L=C[j]).i]=L.x(S);return w.join("")}}}var cb=ky(function(t){const e=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(t+"");return e.isIdentity?wy:xy(e.a,e.b,e.c,e.d,e.e,e.f)},"px, ","px)","deg)"),Ty=ky(function(t){return t==null?wy:(a1||(a1=document.createElementNS("http://www.w3.org/2000/svg","g")),a1.setAttribute("transform",t),(t=a1.transform.baseVal.consolidate())?xy((t=t.matrix).a,t.b,t.c,t.d,t.e,t.f):wy)},", ",")",")");function ub(t,e){var i,u;return function(){var d=ws(this,t),g=d.tween;if(g!==i){for(var v=0,w=(u=i=g).length;v<w;++v)if(u[v].name===e){(u=u.slice()).splice(v,1);break}}d.tween=u}}function lb(t,e,i){var u,d;if(typeof i!="function")throw new Error;return function(){var g=ws(this,t),v=g.tween;if(v!==u){d=(u=v).slice();for(var w={name:e,value:i},C=0,S=d.length;C<S;++C)if(d[C].name===e){d[C]=w;break}C===S&&d.push(w)}g.tween=d}}function Ou(t,e,i){var u=t._id;return t.each(function(){var d=ws(this,u);(d.value||(d.value={}))[e]=i.apply(this,arguments)}),function(d){return Zo(d,u).value[e]}}const Zl=function t(e){var i=function(d){return(d=+d)==1?Jh:function(g,v){return v-g?function(w,C,S){return w=Math.pow(w,S),C=Math.pow(C,S)-w,S=1/S,function(L){return Math.pow(w+L*C,S)}}(g,v,d):ug(isNaN(g)?v:g)}}(e);function u(d,g){var v=i((d=Br(d)).r,(g=Br(g)).r),w=i(d.g,g.g),C=i(d.b,g.b),S=Jh(d.opacity,g.opacity);return function(L){return d.r=v(L),d.g=w(L),d.b=C(L),d.opacity=S(L),d+""}}return u.gamma=t,u}(1);var Ff=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Xl=new RegExp(Ff.source,"g");function ox(t,e){var i,u,d,g=Ff.lastIndex=Xl.lastIndex=0,v=-1,w=[],C=[];for(t+="",e+="";(i=Ff.exec(t))&&(u=Xl.exec(e));)(d=u.index)>g&&(d=e.slice(g,d),w[v]?w[v]+=d:w[++v]=d),(i=i[0])===(u=u[0])?w[v]?w[v]+=u:w[++v]=u:(w[++v]=null,C.push({i:v,x:Ks(i,u)})),g=Xl.lastIndex;return g<e.length&&(d=e.slice(g),w[v]?w[v]+=d:w[++v]=d),w.length<2?C[0]?function(S){return function(L){return S(L)+""}}(C[0].x):function(S){return function(){return S}}(e):(e=C.length,function(S){for(var L,j=0;j<e;++j)w[(L=C[j]).i]=L.x(S);return w.join("")})}function Ey(t,e){var i;return(typeof e=="number"?Ks:e instanceof kn?Zl:(i=kn(e))?(e=i,Zl):ox)(t,e)}function hb(t){return function(){this.removeAttribute(t)}}function fb(t){return function(){this.removeAttributeNS(t.space,t.local)}}function db(t,e,i){var u,d,g=i+"";return function(){var v=this.getAttribute(t);return v===g?null:v===u?d:d=e(u=v,i)}}function sx(t,e,i){var u,d,g=i+"";return function(){var v=this.getAttributeNS(t.space,t.local);return v===g?null:v===u?d:d=e(u=v,i)}}function cx(t,e,i){var u,d,g;return function(){var v,w,C=i(this);if(C!=null)return(v=this.getAttribute(t))===(w=C+"")?null:v===u&&w===d?g:(d=w,g=e(u=v,C));this.removeAttribute(t)}}function Pf(t,e,i){var u,d,g;return function(){var v,w,C=i(this);if(C!=null)return(v=this.getAttributeNS(t.space,t.local))===(w=C+"")?null:v===u&&w===d?g:(d=w,g=e(u=v,C));this.removeAttributeNS(t.space,t.local)}}function Sy(t,e){return function(i){this.setAttribute(t,e.call(this,i))}}function Cy(t,e){return function(i){this.setAttributeNS(t.space,t.local,e.call(this,i))}}function o1(t,e){var i,u;function d(){var g=e.apply(this,arguments);return g!==u&&(i=(u=g)&&Cy(t,g)),i}return d._value=e,d}function Ay(t,e){var i,u;function d(){var g=e.apply(this,arguments);return g!==u&&(i=(u=g)&&Sy(t,g)),i}return d._value=e,d}function My(t,e){return function(){i1(this,t).delay=+e.apply(this,arguments)}}function Dy(t,e){return e=+e,function(){i1(this,t).delay=e}}function ux(t,e){return function(){ws(this,t).duration=+e.apply(this,arguments)}}function pb(t,e){return e=+e,function(){ws(this,t).duration=e}}function lx(t,e){if(typeof e!="function")throw new Error;return function(){ws(this,t).ease=e}}function hx(t,e,i){var u,d,g=function(v){return(v+"").trim().split(/^|\s+/).every(function(w){var C=w.indexOf(".");return C>=0&&(w=w.slice(0,C)),!w||w==="start"})}(e)?i1:ws;return function(){var v=g(this,t),w=v.on;w!==u&&(d=(u=w).copy()).on(e,i),v.on=d}}var gb=wn.prototype.constructor;function Xo(t){return function(){this.style.removeProperty(t)}}function Ny(t,e,i){return function(u){this.style.setProperty(t,e.call(this,u),i)}}function Oy(t,e,i){var u,d;function g(){var v=e.apply(this,arguments);return v!==d&&(u=(d=v)&&Ny(t,v,i)),u}return g._value=e,g}function yb(t){return function(e){this.textContent=t.call(this,e)}}function s1(t){var e,i;function u(){var d=t.apply(this,arguments);return d!==i&&(e=(i=d)&&yb(d)),e}return u._value=t,u}var mb=0;function Qs(t,e,i,u){this._groups=t,this._parents=e,this._name=i,this._id=u}function Ly(){return++mb}var fo=wn.prototype;Qs.prototype={constructor:Qs,select:function(t){var e=this._name,i=this._id;typeof t!="function"&&(t=Nl(t));for(var u=this._groups,d=u.length,g=new Array(d),v=0;v<d;++v)for(var w,C,S=u[v],L=S.length,j=g[v]=new Array(L),P=0;P<L;++P)(w=S[P])&&(C=t.call(w,w.__data__,P,S))&&("__data__"in w&&(C.__data__=w.__data__),j[P]=C,bs(j[P],e,i,P,j,Zo(w,i)));return new Qs(g,this._parents,e,i)},selectAll:function(t){var e=this._name,i=this._id;typeof t!="function"&&(t=u_(t));for(var u=this._groups,d=u.length,g=[],v=[],w=0;w<d;++w)for(var C,S=u[w],L=S.length,j=0;j<L;++j)if(C=S[j]){for(var P,U=t.call(C,C.__data__,j,S),ot=Zo(C,i),vt=0,bt=U.length;vt<bt;++vt)(P=U[vt])&&bs(P,e,i,vt,U,ot);g.push(U),v.push(C)}return new Qs(g,v,e,i)},selectChild:fo.selectChild,selectChildren:fo.selectChildren,filter:function(t){typeof t!="function"&&(t=l_(t));for(var e=this._groups,i=e.length,u=new Array(i),d=0;d<i;++d)for(var g,v=e[d],w=v.length,C=u[d]=[],S=0;S<w;++S)(g=v[S])&&t.call(g,g.__data__,S,v)&&C.push(g);return new Qs(u,this._parents,this._name,this._id)},merge:function(t){if(t._id!==this._id)throw new Error;for(var e=this._groups,i=t._groups,u=e.length,d=i.length,g=Math.min(u,d),v=new Array(u),w=0;w<g;++w)for(var C,S=e[w],L=i[w],j=S.length,P=v[w]=new Array(j),U=0;U<j;++U)(C=S[U]||L[U])&&(P[U]=C);for(;w<u;++w)v[w]=e[w];return new Qs(v,this._parents,this._name,this._id)},selection:function(){return new gb(this._groups,this._parents)},transition:function(){for(var t=this._name,e=this._id,i=Ly(),u=this._groups,d=u.length,g=0;g<d;++g)for(var v,w=u[g],C=w.length,S=0;S<C;++S)if(v=w[S]){var L=Zo(v,e);bs(v,t,i,S,w,{time:L.time+L.delay+L.duration,delay:0,duration:L.duration,ease:L.ease})}return new Qs(u,this._parents,t,i)},call:fo.call,nodes:fo.nodes,node:fo.node,size:fo.size,empty:fo.empty,each:fo.each,on:function(t,e){var i=this._id;return arguments.length<2?Zo(this.node(),i).on.on(t):this.each(hx(i,t,e))},attr:function(t,e){var i=Ol(t),u=i==="transform"?Ty:Ey;return this.attrTween(t,typeof e=="function"?(i.local?Pf:cx)(i,u,Ou(this,"attr."+t,e)):e==null?(i.local?fb:hb)(i):(i.local?sx:db)(i,u,e))},attrTween:function(t,e){var i="attr."+t;if(arguments.length<2)return(i=this.tween(i))&&i._value;if(e==null)return this.tween(i,null);if(typeof e!="function")throw new Error;var u=Ol(t);return this.tween(i,(u.local?o1:Ay)(u,e))},style:function(t,e,i){var u=(t+="")=="transform"?cb:Ey;return e==null?this.styleTween(t,function(d,g){var v,w,C;return function(){var S=Ll(this,d),L=(this.style.removeProperty(d),Ll(this,d));return S===L?null:S===v&&L===w?C:C=g(v=S,w=L)}}(t,u)).on("end.style."+t,Xo(t)):typeof e=="function"?this.styleTween(t,function(d,g,v){var w,C,S;return function(){var L=Ll(this,d),j=v(this),P=j+"";return j==null&&(this.style.removeProperty(d),P=j=Ll(this,d)),L===P?null:L===w&&P===C?S:(C=P,S=g(w=L,j))}}(t,u,Ou(this,"style."+t,e))).each(function(d,g){var v,w,C,S,L="style."+g,j="end."+L;return function(){var P=ws(this,d),U=P.on,ot=P.value[L]==null?S||(S=Xo(g)):void 0;U===v&&C===ot||(w=(v=U).copy()).on(j,C=ot),P.on=w}}(this._id,t)):this.styleTween(t,function(d,g,v){var w,C,S=v+"";return function(){var L=Ll(this,d);return L===S?null:L===w?C:C=g(w=L,v)}}(t,u,e),i).on("end.style."+t,null)},styleTween:function(t,e,i){var u="style."+(t+="");if(arguments.length<2)return(u=this.tween(u))&&u._value;if(e==null)return this.tween(u,null);if(typeof e!="function")throw new Error;return this.tween(u,Oy(t,e,i==null?"":i))},text:function(t){return this.tween("text",typeof t=="function"?function(e){return function(){var i=e(this);this.textContent=i==null?"":i}}(Ou(this,"text",t)):function(e){return function(){this.textContent=e}}(t==null?"":t+""))},textTween:function(t){var e="text";if(arguments.length<1)return(e=this.tween(e))&&e._value;if(t==null)return this.tween(e,null);if(typeof t!="function")throw new Error;return this.tween(e,s1(t))},remove:function(){return this.on("end.remove",function(t){return function(){var e=this.parentNode;for(var i in this.__transition)if(+i!==t)return;e&&e.removeChild(this)}}(this._id))},tween:function(t,e){var i=this._id;if(t+="",arguments.length<2){for(var u,d=Zo(this.node(),i).tween,g=0,v=d.length;g<v;++g)if((u=d[g]).name===t)return u.value;return null}return this.each((e==null?ub:lb)(i,t,e))},delay:function(t){var e=this._id;return arguments.length?this.each((typeof t=="function"?My:Dy)(e,t)):Zo(this.node(),e).delay},duration:function(t){var e=this._id;return arguments.length?this.each((typeof t=="function"?ux:pb)(e,t)):Zo(this.node(),e).duration},ease:function(t){var e=this._id;return arguments.length?this.each(lx(e,t)):Zo(this.node(),e).ease},easeVarying:function(t){if(typeof t!="function")throw new Error;return this.each(function(e,i){return function(){var u=i.apply(this,arguments);if(typeof u!="function")throw new Error;ws(this,e).ease=u}}(this._id,t))},end:function(){var t,e,i=this,u=i._id,d=i.size();return new Promise(function(g,v){var w={value:v},C={value:function(){--d==0&&g()}};i.each(function(){var S=ws(this,u),L=S.on;L!==t&&((e=(t=L).copy())._.cancel.push(w),e._.interrupt.push(w),e._.end.push(C)),S.on=e}),d===0&&g()})},[Symbol.iterator]:fo[Symbol.iterator]};var By={time:null,delay:0,duration:250,ease:function(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}};function fx(t,e){for(var i;!(i=t.__transition)||!(i=i[e]);)if(!(t=t.parentNode))throw new Error(`transition ${e} not found`);return i}function Iy(){}function Ry(t){return t==null?Iy:function(){return this.querySelector(t)}}function Yf(t){return t==null?[]:Array.isArray(t)?t:Array.from(t)}function dx(){return[]}function Fy(t){return t==null?dx:function(){return this.querySelectorAll(t)}}function jf(t){return function(){return this.matches(t)}}function Py(t){return function(e){return e.matches(t)}}wn.prototype.interrupt=function(t){return this.each(function(){(function(e,i){var u,d,g,v=e.__transition,w=!0;if(v){for(g in i=i==null?null:i+"",v)(u=v[g]).name===i?(d=u.state>2&&u.state<5,u.state=6,u.timer.stop(),u.on.call(d?"interrupt":"cancel",e,e.__data__,u.index,u.group),delete v[g]):w=!1;w&&delete e.__transition}})(this,t)})},wn.prototype.transition=function(t){var e,i;t instanceof Qs?(e=t._id,t=t._name):(e=Ly(),(i=By).time=Of(),t=t==null?null:t+"");for(var u=this._groups,d=u.length,g=0;g<d;++g)for(var v,w=u[g],C=w.length,S=0;S<C;++S)(v=w[S])&&bs(v,t,e,S,w,i||fx(v,e));return new Qs(u,this._parents,t,e)};var px=Array.prototype.find;function zf(){return this.firstElementChild}var gx=Array.prototype.filter;function vb(){return Array.from(this.children)}function _b(t){return new Array(t.length)}function Fc(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}function Uf(t){return function(){return t}}function $f(t,e,i,u,d,g){for(var v,w=0,C=e.length,S=g.length;w<S;++w)(v=e[w])?(v.__data__=g[w],u[w]=v):i[w]=new Fc(t,g[w]);for(;w<C;++w)(v=e[w])&&(d[w]=v)}function Hf(t,e,i,u,d,g,v){var w,C,S,L=new Map,j=e.length,P=g.length,U=new Array(j);for(w=0;w<j;++w)(C=e[w])&&(U[w]=S=v.call(C,C.__data__,w,e)+"",L.has(S)?d[w]=C:L.set(S,C));for(w=0;w<P;++w)S=v.call(t,g[w],w,g)+"",(C=L.get(S))?(u[w]=C,C.__data__=g[w],L.delete(S)):i[w]=new Fc(t,g[w]);for(w=0;w<j;++w)(C=e[w])&&L.get(U[w])===C&&(d[w]=C)}function c1(t){return t.__data__}function Yy(t){return typeof t=="object"&&"length"in t?t:Array.from(t)}function yx(t,e){return t<e?-1:t>e?1:t>=e?0:NaN}Fc.prototype={constructor:Fc,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 Wf="http://www.w3.org/1999/xhtml";const bb={svg:"http://www.w3.org/2000/svg",xhtml:Wf,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function u1(t){var e=t+="",i=e.indexOf(":");return i>=0&&(e=t.slice(0,i))!=="xmlns"&&(t=t.slice(i+1)),bb.hasOwnProperty(e)?{space:bb[e],local:t}:t}function jy(t){return function(){this.removeAttribute(t)}}function mx(t){return function(){this.removeAttributeNS(t.space,t.local)}}function zy(t,e){return function(){this.setAttribute(t,e)}}function vx(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}function Uy(t,e){return function(){var i=e.apply(this,arguments);i==null?this.removeAttribute(t):this.setAttribute(t,i)}}function _x(t,e){return function(){var i=e.apply(this,arguments);i==null?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,i)}}function l1(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function bx(t){return function(){this.style.removeProperty(t)}}function wx(t,e,i){return function(){this.style.setProperty(t,e,i)}}function xx(t,e,i){return function(){var u=e.apply(this,arguments);u==null?this.style.removeProperty(t):this.style.setProperty(t,u,i)}}function Kl(t,e){return t.style.getPropertyValue(e)||l1(t).getComputedStyle(t,null).getPropertyValue(e)}function kx(t){return function(){delete this[t]}}function Tx(t,e){return function(){this[t]=e}}function $y(t,e){return function(){var i=e.apply(this,arguments);i==null?delete this[t]:this[t]=i}}function wb(t){return t.trim().split(/^|\s+/)}function Hy(t){return t.classList||new Wy(t)}function Wy(t){this._node=t,this._names=wb(t.getAttribute("class")||"")}function Lu(t,e){for(var i=Hy(t),u=-1,d=e.length;++u<d;)i.add(e[u])}function xb(t,e){for(var i=Hy(t),u=-1,d=e.length;++u<d;)i.remove(e[u])}function kb(t){return function(){Lu(this,t)}}function Ex(t){return function(){xb(this,t)}}function h1(t,e){return function(){(e.apply(this,arguments)?Lu:xb)(this,t)}}function Tb(){this.textContent=""}function qy(t){return function(){this.textContent=t}}function Sx(t){return function(){var e=t.apply(this,arguments);this.textContent=e==null?"":e}}function qf(){this.innerHTML=""}function Eb(t){return function(){this.innerHTML=t}}function Sb(t){return function(){var e=t.apply(this,arguments);this.innerHTML=e==null?"":e}}function Cb(){this.nextSibling&&this.parentNode.appendChild(this)}function Ab(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function f1(t){return function(){var e=this.ownerDocument,i=this.namespaceURI;return i===Wf&&e.documentElement.namespaceURI===Wf?e.createElement(t):e.createElementNS(i,t)}}function Mb(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function Db(t){var e=u1(t);return(e.local?Mb:f1)(e)}function Cx(){return null}function d1(){var t=this.parentNode;t&&t.removeChild(this)}function Bu(){var t=this.cloneNode(!1),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function Ql(){var t=this.cloneNode(!0),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function Ax(t){return t.trim().split(/^|\s+/).map(function(e){var i="",u=e.indexOf(".");return u>=0&&(i=e.slice(u+1),e=e.slice(0,u)),{type:e,name:i}})}function Mx(t){return function(){var e=this.__on;if(e){for(var i,u=0,d=-1,g=e.length;u<g;++u)i=e[u],t.type&&i.type!==t.type||i.name!==t.name?e[++d]=i:this.removeEventListener(i.type,i.listener,i.options);++d?e.length=d:delete this.__on}}}function Nb(t,e,i){return function(){var u,d=this.__on,g=function(C){return function(S){C.call(this,S,this.__data__)}}(e);if(d){for(var v=0,w=d.length;v<w;++v)if((u=d[v]).type===t.type&&u.name===t.name)return this.removeEventListener(u.type,u.listener,u.options),this.addEventListener(u.type,u.listener=g,u.options=i),void(u.value=e)}this.addEventListener(t.type,g,i),u={type:t.type,name:t.name,value:e,listener:g,options:i},d?d.push(u):this.__on=[u]}}function p1(t,e,i){var u=l1(t),d=u.CustomEvent;typeof d=="function"?d=new d(e,i):(d=u.document.createEvent("Event"),i?(d.initEvent(e,i.bubbles,i.cancelable),d.detail=i.detail):d.initEvent(e,!1,!1)),t.dispatchEvent(d)}function Ob(t,e){return function(){return p1(this,t,e)}}function Lb(t,e){return function(){return p1(this,t,e.apply(this,arguments))}}Wy.prototype={add:function(t){this._names.indexOf(t)<0&&(this._names.push(t),this._node.setAttribute("class",this._names.join(" ")))},remove:function(t){var e=this._names.indexOf(t);e>=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};var Vf=[null];function Ko(t,e){this._groups=t,this._parents=e}function Bb(){return new Ko([[document.documentElement]],Vf)}Ko.prototype=Bb.prototype={constructor:Ko,select:function(t){typeof t!="function"&&(t=Ry(t));for(var e=this._groups,i=e.length,u=new Array(i),d=0;d<i;++d)for(var g,v,w=e[d],C=w.length,S=u[d]=new Array(C),L=0;L<C;++L)(g=w[L])&&(v=t.call(g,g.__data__,L,w))&&("__data__"in g&&(v.__data__=g.__data__),S[L]=v);return new Ko(u,this._parents)},selectAll:function(t){t=typeof t=="function"?function(L){return function(){return Yf(L.apply(this,arguments))}}(t):Fy(t);for(var e=this._groups,i=e.length,u=[],d=[],g=0;g<i;++g)for(var v,w=e[g],C=w.length,S=0;S<C;++S)(v=w[S])&&(u.push(t.call(v,v.__data__,S,w)),d.push(v));return new Ko(u,d)},selectChild:function(t){return this.select(t==null?zf:function(e){return function(){return px.call(this.children,e)}}(typeof t=="function"?t:Py(t)))},selectChildren:function(t){return this.selectAll(t==null?vb:function(e){return function(){return gx.call(this.children,e)}}(typeof t=="function"?t:Py(t)))},filter:function(t){typeof t!="function"&&(t=jf(t));for(var e=this._groups,i=e.length,u=new Array(i),d=0;d<i;++d)for(var g,v=e[d],w=v.length,C=u[d]=[],S=0;S<w;++S)(g=v[S])&&t.call(g,g.__data__,S,v)&&C.push(g);return new Ko(u,this._parents)},data:function(t,e){if(!arguments.length)return Array.from(this,c1);var i=e?Hf:$f,u=this._parents,d=this._groups;typeof t!="function"&&(t=Uf(t));for(var g=d.length,v=new Array(g),w=new Array(g),C=new Array(g),S=0;S<g;++S){var L=u[S],j=d[S],P=j.length,U=Yy(t.call(L,L&&L.__data__,S,u)),ot=U.length,vt=w[S]=new Array(ot),bt=v[S]=new Array(ot),kt=C[S]=new Array(P);i(L,j,vt,bt,kt,U,e);for(var _t,lt,Wt=0,Ot=0;Wt<ot;++Wt)if(_t=vt[Wt]){for(Wt>=Ot&&(Ot=Wt+1);!(lt=bt[Ot])&&++Ot<ot;);_t._next=lt||null}}return(v=new Ko(v,u))._enter=w,v._exit=C,v},enter:function(){return new Ko(this._enter||this._groups.map(_b),this._parents)},exit:function(){return new Ko(this._exit||this._groups.map(_b),this._parents)},join:function(t,e,i){var u=this.enter(),d=this,g=this.exit();return typeof t=="function"?(u=t(u))&&(u=u.selection()):u=u.append(t+""),e!=null&&(d=e(d))&&(d=d.selection()),i==null?g.remove():i(g),u&&d?u.merge(d).order():d},merge:function(t){for(var e=t.selection?t.selection():t,i=this._groups,u=e._groups,d=i.length,g=u.length,v=Math.min(d,g),w=new Array(d),C=0;C<v;++C)for(var S,L=i[C],j=u[C],P=L.length,U=w[C]=new Array(P),ot=0;ot<P;++ot)(S=L[ot]||j[ot])&&(U[ot]=S);for(;C<d;++C)w[C]=i[C];return new Ko(w,this._parents)},selection:function(){return this},order:function(){for(var t=this._groups,e=-1,i=t.length;++e<i;)for(var u,d=t[e],g=d.length-1,v=d[g];--g>=0;)(u=d[g])&&(v&&4^u.compareDocumentPosition(v)&&v.parentNode.insertBefore(u,v),v=u);return this},sort:function(t){function e(j,P){return j&&P?t(j.__data__,P.__data__):!j-!P}t||(t=yx);for(var i=this._groups,u=i.length,d=new Array(u),g=0;g<u;++g){for(var v,w=i[g],C=w.length,S=d[g]=new Array(C),L=0;L<C;++L)(v=w[L])&&(S[L]=v);S.sort(e)}return new Ko(d,this._parents).order()},call:function(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this},nodes:function(){return Array.from(this)},node:function(){for(var t=this._groups,e=0,i=t.length;e<i;++e)for(var u=t[e],d=0,g=u.length;d<g;++d){var v=u[d];if(v)return v}return null},size:function(){let t=0;for(const e of this)++t;return t},empty:function(){return!this.node()},each:function(t){for(var e=this._groups,i=0,u=e.length;i<u;++i)for(var d,g=e[i],v=0,w=g.length;v<w;++v)(d=g[v])&&t.call(d,d.__data__,v,g);return this},attr:function(t,e){var i=u1(t);if(arguments.length<2){var u=this.node();return i.local?u.getAttributeNS(i.space,i.local):u.getAttribute(i)}return this.each((e==null?i.local?mx:jy:typeof e=="function"?i.local?_x:Uy:i.local?vx:zy)(i,e))},style:function(t,e,i){return arguments.length>1?this.each((e==null?bx:typeof e=="function"?xx:wx)(t,e,i==null?"":i)):Kl(this.node(),t)},property:function(t,e){return arguments.length>1?this.each((e==null?kx:typeof e=="function"?$y:Tx)(t,e)):this.node()[t]},classed:function(t,e){var i=wb(t+"");if(arguments.length<2){for(var u=Hy(this.node()),d=-1,g=i.length;++d<g;)if(!u.contains(i[d]))return!1;return!0}return this.each((typeof e=="function"?h1:e?kb:Ex)(i,e))},text:function(t){return arguments.length?this.each(t==null?Tb:(typeof t=="function"?Sx:qy)(t)):this.node().textContent},html:function(t){return arguments.length?this.each(t==null?qf:(typeof t=="function"?Sb:Eb)(t)):this.node().innerHTML},raise:function(){return this.each(Cb)},lower:function(){return this.each(Ab)},append:function(t){var e=typeof t=="function"?t:Db(t);return this.select(function(){return this.appendChild(e.apply(this,arguments))})},insert:function(t,e){var i=typeof t=="function"?t:Db(t),u=e==null?Cx:typeof e=="function"?e:Ry(e);return this.select(function(){return this.insertBefore(i.apply(this,arguments),u.apply(this,arguments)||null)})},remove:function(){return this.each(d1)},clone:function(t){return this.select(t?Ql:Bu)},datum:function(t){return arguments.length?this.property("__data__",t):this.node().__data__},on:function(t,e,i){var u,d,g=Ax(t+""),v=g.length;if(!(arguments.length<2)){for(w=e?Nb:Mx,u=0;u<v;++u)this.each(w(g[u],e,i));return this}var w=this.node().__on;if(w){for(var C,S=0,L=w.length;S<L;++S)for(u=0,C=w[S];u<v;++u)if((d=g[u]).type===C.type&&d.name===C.name)return C.value}},dispatch:function(t,e){return this.each((typeof e=="function"?Lb:Ob)(t,e))},[Symbol.iterator]:function*(){for(var t=this._groups,e=0,i=t.length;e<i;++e)for(var u,d=t[e],g=0,v=d.length;g<v;++g)(u=d[g])&&(yield u)}};const Gf=Bb;var Dx={value:()=>{}};function Ib(){for(var t,e=0,i=arguments.length,u={};e<i;++e){if(!(t=arguments[e]+"")||t in u||/[\s.]/.test(t))throw new Error("illegal type: "+t);u[t]=[]}return new g1(u)}function g1(t){this._=t}function Nx(t,e){return t.trim().split(/^|\s+/).map(function(i){var u="",d=i.indexOf(".");if(d>=0&&(u=i.slice(d+1),i=i.slice(0,d)),i&&!e.hasOwnProperty(i))throw new Error("unknown type: "+i);return{type:i,name:u}})}function Vy(t,e){for(var i,u=0,d=t.length;u<d;++u)if((i=t[u]).name===e)return i.value}function y1(t,e,i){for(var u=0,d=t.length;u<d;++u)if(t[u].name===e){t[u]=Dx,t=t.slice(0,u).concat(t.slice(u+1));break}return i!=null&&t.push({name:e,value:i}),t}g1.prototype=Ib.prototype={constructor:g1,on:function(t,e){var i,u=this._,d=Nx(t+"",u),g=-1,v=d.length;if(!(arguments.length<2)){if(e!=null&&typeof e!="function")throw new Error("invalid callback: "+e);for(;++g<v;)if(i=(t=d[g]).type)u[i]=y1(u[i],t.name,e);else if(e==null)for(i in u)u[i]=y1(u[i],t.name,null);return this}for(;++g<v;)if((i=(t=d[g]).type)&&(i=Vy(u[i],t.name)))return i},copy:function(){var t={},e=this._;for(var i in e)t[i]=e[i].slice();return new g1(t)},call:function(t,e){if((i=arguments.length-2)>0)for(var i,u,d=new Array(i),g=0;g<i;++g)d[g]=arguments[g+2];if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(g=0,i=(u=this._[t]).length;g<i;++g)u[g].value.apply(e,d)},apply:function(t,e,i){if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(var u=this._[t],d=0,g=u.length;d<g;++d)u[d].value.apply(e,i)}};const Ox=Ib;var m1,Pc,Jl=0,Yc=0,th=0,Zf=0,jc=0,v1=0,Xf=typeof performance=="object"&&performance.now?performance:Date,Rb=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function Gy(){return jc||(Rb(Lx),jc=Xf.now()+v1)}function Lx(){jc=0}function _1(){this._call=this._time=this._next=null}function Zy(t,e,i){var u=new _1;return u.restart(t,e,i),u}function eh(){jc=(Zf=Xf.now())+v1,Jl=Yc=0;try{(function(){Gy(),++Jl;for(var t,e=m1;e;)(t=jc-e._time)>=0&&e._call.call(void 0,t),e=e._next;--Jl})()}finally{Jl=0,function(){for(var t,e,i=m1,u=1/0;i;)i._call?(u>i._time&&(u=i._time),t=i,i=i._next):(e=i._next,i._next=null,i=t?t._next=e:m1=e);Pc=t,b1(u)}(),jc=0}}function Fb(){var t=Xf.now(),e=t-Zf;e>1e3&&(v1-=e,Zf=t)}function b1(t){Jl||(Yc&&(Yc=clearTimeout(Yc)),t-jc>24?(t<1/0&&(Yc=setTimeout(eh,t-Xf.now()-v1)),th&&(th=clearInterval(th))):(th||(Zf=Xf.now(),th=setInterval(Fb,1e3)),Jl=1,Rb(eh)))}function Xy(t,e,i){var u=new _1;return e=e==null?0:+e,u.restart(d=>{u.stop(),t(d+e)},e,i),u}_1.prototype=Zy.prototype={constructor:_1,restart:function(t,e,i){if(typeof t!="function")throw new TypeError("callback is not a function");i=(i==null?Gy():+i)+(e==null?0:+e),this._next||Pc===this||(Pc?Pc._next=this:m1=this,Pc=this),this._call=t,this._time=i,b1()},stop:function(){this._call&&(this._call=null,this._time=1/0,b1())}};var Bx=Ox("start","end","cancel","interrupt"),Ix=[];function w1(t,e,i,u,d,g){var v=t.__transition;if(v){if(i in v)return}else t.__transition={};(function(w,C,S){var L,j=w.__transition;function P(vt){var bt,kt,_t,lt;if(S.state!==1)return ot();for(bt in j)if((lt=j[bt]).name===S.name){if(lt.state===3)return Xy(P);lt.state===4?(lt.state=6,lt.timer.stop(),lt.on.call("interrupt",w,w.__data__,lt.index,lt.group),delete j[bt]):+bt<C&&(lt.state=6,lt.timer.stop(),lt.on.call("cancel",w,w.__data__,lt.index,lt.group),delete j[bt])}if(Xy(function(){S.state===3&&(S.state=4,S.timer.restart(U,S.delay,S.time),U(vt))}),S.state=2,S.on.call("start",w,w.__data__,S.index,S.group),S.state===2){for(S.state=3,L=new Array(_t=S.tween.length),bt=0,kt=-1;bt<_t;++bt)(lt=S.tween[bt].value.call(w,w.__data__,S.index,S.group))&&(L[++kt]=lt);L.length=kt+1}}function U(vt){for(var bt=vt<S.duration?S.ease.call(null,vt/S.duration):(S.timer.restart(ot),S.state=5,1),kt=-1,_t=L.length;++kt<_t;)L[kt].call(w,bt);S.state===5&&(S.on.call("end",w,w.__data__,S.index,S.group),ot())}function ot(){for(var vt in S.state=6,S.timer.stop(),delete j[C],j)return;delete w.__transition}j[C]=S,S.timer=Zy(function(vt){S.state=1,S.timer.restart(P,S.delay,S.time),S.delay<=vt&&P(vt-S.delay)},0,S.time)})(t,i,{name:e,index:u,group:d,on:Bx,tween:Ix,time:g.time,delay:g.delay,duration:g.duration,ease:g.ease,timer:null,state:0})}function x1(t,e){var i=Qo(t,e);if(i.state>0)throw new Error("too late; already scheduled");return i}function xs(t,e){var i=Qo(t,e);if(i.state>3)throw new Error("too late; already running");return i}function Qo(t,e){var i=t.__transition;if(!i||!(i=i[e]))throw new Error("transition not found");return i}function Js(t,e){return t=+t,e=+e,function(i){return t*(1-i)+e*i}}var k1,Kf=180/Math.PI,Ky={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function Pb(t,e,i,u,d,g){var v,w,C;return(v=Math.sqrt(t*t+e*e))&&(t/=v,e/=v),(C=t*i+e*u)&&(i-=t*C,u-=e*C),(w=Math.sqrt(i*i+u*u))&&(i/=w,u/=w,C/=w),t*u<e*i&&(t=-t,e=-e,C=-C,v=-v),{translateX:d,translateY:g,rotate:Math.atan2(e,t)*Kf,skewX:Math.atan(C)*Kf,scaleX:v,scaleY:w}}function Yb(t,e,i,u){function d(g){return g.length?g.pop()+" ":""}return function(g,v){var w=[],C=[];return g=t(g),v=t(v),function(S,L,j,P,U,ot){if(S!==j||L!==P){var vt=U.push("translate(",null,e,null,i);ot.push({i:vt-4,x:Js(S,j)},{i:vt-2,x:Js(L,P)})}else(j||P)&&U.push("translate("+j+e+P+i)}(g.translateX,g.translateY,v.translateX,v.translateY,w,C),function(S,L,j,P){S!==L?(S-L>180?L+=360:L-S>180&&(S+=360),P.push({i:j.push(d(j)+"rotate(",null,u)-2,x:Js(S,L)})):L&&j.push(d(j)+"rotate("+L+u)}(g.rotate,v.rotate,w,C),function(S,L,j,P){S!==L?P.push({i:j.push(d(j)+"skewX(",null,u)-2,x:Js(S,L)}):L&&j.push(d(j)+"skewX("+L+u)}(g.skewX,v.skewX,w,C),function(S,L,j,P,U,ot){if(S!==j||L!==P){var vt=U.push(d(U)+"scale(",null,",",null,")");ot.push({i:vt-4,x:Js(S,j)},{i:vt-2,x:Js(L,P)})}else j===1&&P===1||U.push(d(U)+"scale("+j+","+P+")")}(g.scaleX,g.scaleY,v.scaleX,v.scaleY,w,C),g=v=null,function(S){for(var L,j=-1,P=C.length;++j<P;)w[(L=C[j]).i]=L.x(S);return w.join("")}}}var Rx=Yb(function(t){const e=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(t+"");return e.isIdentity?Ky:Pb(e.a,e.b,e.c,e.d,e.e,e.f)},"px, ","px)","deg)"),Fx=Yb(function(t){return t==null?Ky:(k1||(k1=document.createElementNS("http://www.w3.org/2000/svg","g")),k1.setAttribute("transform",t),(t=k1.transform.baseVal.consolidate())?Pb((t=t.matrix).a,t.b,t.c,t.d,t.e,t.f):Ky)},", ",")",")");function Px(t,e){var i,u;return function(){var d=xs(this,t),g=d.tween;if(g!==i){for(var v=0,w=(u=i=g).length;v<w;++v)if(u[v].name===e){(u=u.slice()).splice(v,1);break}}d.tween=u}}function jb(t,e,i){var u,d;if(typeof i!="function")throw new Error;return function(){var g=xs(this,t),v=g.tween;if(v!==u){d=(u=v).slice();for(var w={name:e,value:i},C=0,S=d.length;C<S;++C)if(d[C].name===e){d[C]=w;break}C===S&&d.push(w)}g.tween=d}}function Qy(t,e,i){var u=t._id;return t.each(function(){var d=xs(this,u);(d.value||(d.value={}))[e]=i.apply(this,arguments)}),function(d){return Qo(d,u).value[e]}}function Jy(t,e,i){t.prototype=e.prototype=i,i.constructor=t}function zb(t,e){var i=Object.create(t.prototype);for(var u in e)i[u]=e[u];return i}function ks(){}var T1=.7,Qf=1.4285714285714286,nh="\\s*([+-]?\\d+)\\s*",rh="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",Ts="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Yx=/^#([0-9a-f]{3,8})$/,Jo=new RegExp("^rgb\\("+[nh,nh,nh]+"\\)$"),tc=new RegExp("^rgb\\("+[Ts,Ts,Ts]+"\\)$"),Ub=new RegExp("^rgba\\("+[nh,nh,nh,rh]+"\\)$"),E1=new RegExp("^rgba\\("+[Ts,Ts,Ts,rh]+"\\)$"),Iu=new RegExp("^hsl\\("+[rh,Ts,Ts]+"\\)$"),t2=new RegExp("^hsla\\("+[rh,Ts,Ts,rh]+"\\)$"),S1={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function C1(){return this.rgb().formatHex()}function e2(){return this.rgb().formatRgb()}function Jf(t){var e,i;return t=(t+"").trim().toLowerCase(),(e=Yx.exec(t))?(i=e[1].length,e=parseInt(e[1],16),i===6?A1(e):i===3?new Za(e>>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):i===8?td(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):i===4?td(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=Jo.exec(t))?new Za(e[1],e[2],e[3],1):(e=tc.exec(t))?new Za(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=Ub.exec(t))?td(e[1],e[2],e[3],e[4]):(e=E1.exec(t))?td(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=Iu.exec(t))?nd(e[1],e[2]/100,e[3]/100,1):(e=t2.exec(t))?nd(e[1],e[2]/100,e[3]/100,e[4]):S1.hasOwnProperty(t)?A1(S1[t]):t==="transparent"?new Za(NaN,NaN,NaN,0):null}function A1(t){return new Za(t>>16&255,t>>8&255,255&t,1)}function td(t,e,i,u){return u<=0&&(t=e=i=NaN),new Za(t,e,i,u)}function ca(t){return t instanceof ks||(t=Jf(t)),t?new Za((t=t.rgb()).r,t.g,t.b,t.opacity):new Za}function ed(t,e,i,u){return arguments.length===1?ca(t):new Za(t,e,i,u==null?1:u)}function Za(t,e,i,u){this.r=+t,this.g=+e,this.b=+i,this.opacity=+u}function $b(){return"#"+Ru(this.r)+Ru(this.g)+Ru(this.b)}function Hb(){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 Ru(t){return((t=Math.max(0,Math.min(255,Math.round(t)||0)))<16?"0":"")+t.toString(16)}function nd(t,e,i,u){return u<=0?t=e=i=NaN:i<=0||i>=1?t=e=NaN:e<=0&&(t=NaN),new ts(t,e,i,u)}function n2(t){if(t instanceof ts)return new ts(t.h,t.s,t.l,t.opacity);if(t instanceof ks||(t=Jf(t)),!t)return new ts;if(t instanceof ts)return t;var e=(t=t.rgb()).r/255,i=t.g/255,u=t.b/255,d=Math.min(e,i,u),g=Math.max(e,i,u),v=NaN,w=g-d,C=(g+d)/2;return w?(v=e===g?(i-u)/w+6*(i<u):i===g?(u-e)/w+2:(e-i)/w+4,w/=C<.5?g+d:2-g-d,v*=60):w=C>0&&C<1?0:v,new ts(v,w,C,t.opacity)}function ts(t,e,i,u){this.h=+t,this.s=+e,this.l=+i,this.opacity=+u}function ec(t,e,i){return 255*(t<60?e+(i-e)*t/60:t<180?i:t<240?e+(i-e)*(240-t)/60:e)}Jy(ks,Jf,{copy:function(t){return Object.assign(new this.constructor,this,t)},displayable:function(){return this.rgb().displayable()},hex:C1,formatHex:C1,formatHsl:function(){return n2(this).formatHsl()},formatRgb:e2,toString:e2}),Jy(Za,ed,zb(ks,{brighter:function(t){return t=t==null?Qf:Math.pow(Qf,t),new Za(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=t==null?T1:Math.pow(T1,t),new Za(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:$b,formatHex:$b,formatRgb:Hb,toString:Hb})),Jy(ts,function(t,e,i,u){return arguments.length===1?n2(t):new ts(t,e,i,u==null?1:u)},zb(ks,{brighter:function(t){return t=t==null?Qf:Math.pow(Qf,t),new ts(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=t==null?T1:Math.pow(T1,t),new ts(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,i=this.l,u=i+(i<.5?i:1-i)*e,d=2*i-u;return new Za(ec(t>=240?t-240:t+120,d,u),ec(t,d,u),ec(t<120?t+240:t-120,d,u),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 r2=t=>()=>t;function i2(t,e){var i=e-t;return i?function(u,d){return function(g){return u+g*d}}(t,i):r2(isNaN(t)?e:t)}const a2=function t(e){var i=function(d){return(d=+d)==1?i2:function(g,v){return v-g?function(w,C,S){return w=Math.pow(w,S),C=Math.pow(C,S)-w,S=1/S,function(L){return Math.pow(w+L*C,S)}}(g,v,d):r2(isNaN(g)?v:g)}}(e);function u(d,g){var v=i((d=ed(d)).r,(g=ed(g)).r),w=i(d.g,g.g),C=i(d.b,g.b),S=i2(d.opacity,g.opacity);return function(L){return d.r=v(L),d.g=w(L),d.b=C(L),d.opacity=S(L),d+""}}return u.gamma=t,u}(1);var M1=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,D1=new RegExp(M1.source,"g");function jx(t,e){var i,u,d,g=M1.lastIndex=D1.lastIndex=0,v=-1,w=[],C=[];for(t+="",e+="";(i=M1.exec(t))&&(u=D1.exec(e));)(d=u.index)>g&&(d=e.slice(g,d),w[v]?w[v]+=d:w[++v]=d),(i=i[0])===(u=u[0])?w[v]?w[v]+=u:w[++v]=u:(w[++v]=null,C.push({i:v,x:Js(i,u)})),g=D1.lastIndex;return g<e.length&&(d=e.slice(g),w[v]?w[v]+=d:w[++v]=d),w.length<2?C[0]?function(S){return function(L){return S(L)+""}}(C[0].x):function(S){return function(){return S}}(e):(e=C.length,function(S){for(var L,j=0;j<e;++j)w[(L=C[j]).i]=L.x(S);return w.join("")})}function Wb(t,e){var i;return(typeof e=="number"?Js:e instanceof Jf?a2:(i=Jf(e))?(e=i,a2):jx)(t,e)}function zx(t){return function(){this.removeAttribute(t)}}function qb(t){return function(){this.removeAttributeNS(t.space,t.local)}}function o2(t,e,i){var u,d,g=i+"";return function(){var v=this.getAttribute(t);return v===g?null:v===u?d:d=e(u=v,i)}}function Vb(t,e,i){var u,d,g=i+"";return function(){var v=this.getAttributeNS(t.space,t.local);return v===g?null:v===u?d:d=e(u=v,i)}}function Gb(t,e,i){var u,d,g;return function(){var v,w,C=i(this);if(C!=null)return(v=this.getAttribute(t))===(w=C+"")?null:v===u&&w===d?g:(d=w,g=e(u=v,C));this.removeAttribute(t)}}function Zb(t,e,i){var u,d,g;return function(){var v,w,C=i(this);if(C!=null)return(v=this.getAttributeNS(t.space,t.local))===(w=C+"")?null:v===u&&w===d?g:(d=w,g=e(u=v,C));this.removeAttributeNS(t.space,t.local)}}function s2(t,e){return function(i){this.setAttribute(t,e.call(this,i))}}function Xb(t,e){return function(i){this.setAttributeNS(t.space,t.local,e.call(this,i))}}function Kb(t,e){var i,u;function d(){var g=e.apply(this,arguments);return g!==u&&(i=(u=g)&&Xb(t,g)),i}return d._value=e,d}function Ux(t,e){var i,u;function d(){var g=e.apply(this,arguments);return g!==u&&(i=(u=g)&&s2(t,g)),i}return d._value=e,d}function $x(t,e){return function(){x1(this,t).delay=+e.apply(this,arguments)}}function c2(t,e){return e=+e,function(){x1(this,t).delay=e}}function u2(t,e){return function(){xs(this,t).duration=+e.apply(this,arguments)}}function Hx(t,e){return e=+e,function(){xs(this,t).duration=e}}function Qb(t,e){if(typeof e!="function")throw new Error;return function(){xs(this,t).ease=e}}function Jb(t,e,i){var u,d,g=function(v){return(v+"").trim().split(/^|\s+/).every(function(w){var C=w.indexOf(".");return C>=0&&(w=w.slice(0,C)),!w||w==="start"})}(e)?x1:xs;return function(){var v=g(this,t),w=v.on;w!==u&&(d=(u=w).copy()).on(e,i),v.on=d}}var t3=Gf.prototype.constructor;function N1(t){return function(){this.style.removeProperty(t)}}function l2(t,e,i){return function(u){this.style.setProperty(t,e.call(this,u),i)}}function $i(t,e,i){var u,d;function g(){var v=e.apply(this,arguments);return v!==d&&(u=(d=v)&&l2(t,v,i)),u}return g._value=e,g}function h2(t){return function(e){this.textContent=t.call(this,e)}}function Fu(t){var e,i;function u(){var d=t.apply(this,arguments);return d!==i&&(e=(i=d)&&h2(d)),e}return u._value=t,u}var Wx=0;function Es(t,e,i,u){this._groups=t,this._parents=e,this._name=i,this._id=u}function f2(){return++Wx}var nc=Gf.prototype;Es.prototype={constructor:Es,select:function(t){var e=this._name,i=this._id;typeof t!="function"&&(t=Ry(t));for(var u=this._groups,d=u.length,g=new Array(d),v=0;v<d;++v)for(var w,C,S=u[v],L=S.length,j=g[v]=new Array(L),P=0;P<L;++P)(w=S[P])&&(C=t.call(w,w.__data__,P,S))&&("__data__"in w&&(C.__data__=w.__data__),j[P]=C,w1(j[P],e,i,P,j,Qo(w,i)));return new Es(g,this._parents,e,i)},selectAll:function(t){var e=this._name,i=this._id;typeof t!="function"&&(t=Fy(t));for(var u=this._groups,d=u.length,g=[],v=[],w=0;w<d;++w)for(var C,S=u[w],L=S.length,j=0;j<L;++j)if(C=S[j]){for(var P,U=t.call(C,C.__data__,j,S),ot=Qo(C,i),vt=0,bt=U.length;vt<bt;++vt)(P=U[vt])&&w1(P,e,i,vt,U,ot);g.push(U),v.push(C)}return new Es(g,v,e,i)},selectChild:nc.selectChild,selectChildren:nc.selectChildren,filter:function(t){typeof t!="function"&&(t=jf(t));for(var e=this._groups,i=e.length,u=new Array(i),d=0;d<i;++d)for(var g,v=e[d],w=v.length,C=u[d]=[],S=0;S<w;++S)(g=v[S])&&t.call(g,g.__data__,S,v)&&C.push(g);return new Es(u,this._parents,this._name,this._id)},merge:function(t){if(t._id!==this._id)throw new Error;for(var e=this._groups,i=t._groups,u=e.length,d=i.length,g=Math.min(u,d),v=new Array(u),w=0;w<g;++w)for(var C,S=e[w],L=i[w],j=S.length,P=v[w]=new Array(j),U=0;U<j;++U)(C=S[U]||L[U])&&(P[U]=C);for(;w<u;++w)v[w]=e[w];return new Es(v,this._parents,this._name,this._id)},selection:function(){return new t3(this._groups,this._parents)},transition:function(){for(var t=this._name,e=this._id,i=f2(),u=this._groups,d=u.length,g=0;g<d;++g)for(var v,w=u[g],C=w.length,S=0;S<C;++S)if(v=w[S]){var L=Qo(v,e);w1(v,t,i,S,w,{time:L.time+L.delay+L.duration,delay:0,duration:L.duration,ease:L.ease})}return new Es(u,this._parents,t,i)},call:nc.call,nodes:nc.nodes,node:nc.node,size:nc.size,empty:nc.empty,each:nc.each,on:function(t,e){var i=this._id;return arguments.length<2?Qo(this.node(),i).on.on(t):this.each(Jb(i,t,e))},attr:function(t,e){var i=u1(t),u=i==="transform"?Fx:Wb;return this.attrTween(t,typeof e=="function"?(i.local?Zb:Gb)(i,u,Qy(this,"attr."+t,e)):e==null?(i.local?qb:zx)(i):(i.local?Vb:o2)(i,u,e))},attrTween:function(t,e){var i="attr."+t;if(arguments.length<2)return(i=this.tween(i))&&i._value;if(e==null)return this.tween(i,null);if(typeof e!="function")throw new Error;var u=u1(t);return this.tween(i,(u.local?Kb:Ux)(u,e))},style:function(t,e,i){var u=(t+="")=="transform"?Rx:Wb;return e==null?this.styleTween(t,function(d,g){var v,w,C;return function(){var S=Kl(this,d),L=(this.style.removeProperty(d),Kl(this,d));return S===L?null:S===v&&L===w?C:C=g(v=S,w=L)}}(t,u)).on("end.style."+t,N1(t)):typeof e=="function"?this.styleTween(t,function(d,g,v){var w,C,S;return function(){var L=Kl(this,d),j=v(this),P=j+"";return j==null&&(this.style.removeProperty(d),P=j=Kl(this,d)),L===P?null:L===w&&P===C?S:(C=P,S=g(w=L,j))}}(t,u,Qy(this,"style."+t,e))).each(function(d,g){var v,w,C,S,L="style."+g,j="end."+L;return function(){var P=xs(this,d),U=P.on,ot=P.value[L]==null?S||(S=N1(g)):void 0;U===v&&C===ot||(w=(v=U).copy()).on(j,C=ot),P.on=w}}(this._id,t)):this.styleTween(t,function(d,g,v){var w,C,S=v+"";return function(){var L=Kl(this,d);return L===S?null:L===w?C:C=g(w=L,v)}}(t,u,e),i).on("end.style."+t,null)},styleTween:function(t,e,i){var u="style."+(t+="");if(arguments.length<2)return(u=this.tween(u))&&u._value;if(e==null)return this.tween(u,null);if(typeof e!="function")throw new Error;return this.tween(u,$i(t,e,i==null?"":i))},text:function(t){return this.tween("text",typeof t=="function"?function(e){return function(){var i=e(this);this.textContent=i==null?"":i}}(Qy(this,"text",t)):function(e){return function(){this.textContent=e}}(t==null?"":t+""))},textTween:function(t){var e="text";if(arguments.length<1)return(e=this.tween(e))&&e._value;if(t==null)return this.tween(e,null);if(typeof t!="function")throw new Error;return this.tween(e,Fu(t))},remove:function(){return this.on("end.remove",function(t){return function(){var e=this.parentNode;for(var i in this.__transition)if(+i!==t)return;e&&e.removeChild(this)}}(this._id))},tween:function(t,e){var i=this._id;if(t+="",arguments.length<2){for(var u,d=Qo(this.node(),i).tween,g=0,v=d.length;g<v;++g)if((u=d[g]).name===t)return u.value;return null}return this.each((e==null?Px:jb)(i,t,e))},delay:function(t){var e=this._id;return arguments.length?this.each((typeof t=="function"?$x:c2)(e,t)):Qo(this.node(),e).delay},duration:function(t){var e=this._id;return arguments.length?this.each((typeof t=="function"?u2:Hx)(e,t)):Qo(this.node(),e).duration},ease:function(t){var e=this._id;return arguments.length?this.each(Qb(e,t)):Qo(this.node(),e).ease},easeVarying:function(t){if(typeof t!="function")throw new Error;return this.each(function(e,i){return function(){var u=i.apply(this,arguments);if(typeof u!="function")throw new Error;xs(this,e).ease=u}}(this._id,t))},end:function(){var t,e,i=this,u=i._id,d=i.size();return new Promise(function(g,v){var w={value:v},C={value:function(){--d==0&&g()}};i.each(function(){var S=xs(this,u),L=S.on;L!==t&&((e=(t=L).copy())._.cancel.push(w),e._.interrupt.push(w),e._.end.push(C)),S.on=e}),d===0&&g()})},[Symbol.iterator]:nc[Symbol.iterator]};var O1={time:null,delay:0,duration:250,ease:function(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}};function Pu(t,e){for(var i;!(i=t.__transition)||!(i=i[e]);)if(!(t=t.parentNode))throw new Error(`transition ${e} not found`);return i}Gf.prototype.interrupt=function(t){return this.each(function(){(function(e,i){var u,d,g,v=e.__transition,w=!0;if(v){for(g in i=i==null?null:i+"",v)(u=v[g]).name===i?(d=u.state>2&&u.state<5,u.state=6,u.timer.stop(),u.on.call(d?"interrupt":"cancel",e,e.__data__,u.index,u.group),delete v[g]):w=!1;w&&delete e.__transition}})(this,t)})},Gf.prototype.transition=function(t){var e,i;t instanceof Es?(e=t._id,t=t._name):(e=f2(),(i=O1).time=Gy(),t=t==null?null:t+"");for(var u=this._groups,d=u.length,g=0;g<d;++g)for(var v,w=u[g],C=w.length,S=0;S<C;++S)(v=w[S])&&w1(v,t,e,S,w,i||Pu(v,e));return new Es(u,this._parents,t,e)};var rd="comm",d2="rule",p2="decl",Yu=Math.abs,ju=String.fromCharCode;function ih(t){return t.trim()}function L1(t,e,i){return t.replace(e,i)}function e3(t,e){return t.indexOf(e)}function rc(t,e){return 0|t.charCodeAt(e)}function ah(t,e,i){return t.slice(e,i)}function ic(t){return t.length}function g2(t){return t.length}function B1(t,e){return e.push(t),t}function y2(t,e){for(var i="",u=g2(t),d=0;d<u;d++)i+=e(t[d],d,t,e)||"";return i}function qx(t,e,i,u){switch(t.type){case"@import":case p2:return t.return=t.return||t.value;case rd:return"";case"@keyframes":return t.return=t.value+"{"+y2(t.children,u)+"}";case d2:t.value=t.props.join(",")}return ic(i=y2(t.children,u))?t.return=t.value+"{"+i+"}":""}var I1=1,oh=1,n3=0,po=0,ui=0,sh="";function R1(t,e,i,u,d,g,v){return{value:t,root:e,parent:i,type:u,props:d,children:g,line:I1,column:oh,length:v,return:""}}function r3(){return ui=po>0?rc(sh,--po):0,oh--,ui===10&&(oh=1,I1--),ui}function es(){return ui=po<n3?rc(sh,po++):0,oh++,ui===10&&(oh=1,I1++),ui}function zc(){return rc(sh,po)}function id(){return po}function F1(t,e){return ah(sh,t,e)}function P1(t){switch(t){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function ch(t){return ih(F1(po-1,uh(t===91?t+2:t===40?t+1:t)))}function i3(t){for(;(ui=zc())&&ui<33;)es();return P1(t)>2||P1(ui)>3?"":" "}function Y1(t,e){for(;--e&&es()&&!(ui<48||ui>102||ui>57&&ui<65||ui>70&&ui<97););return F1(t,id()+(e<6&&zc()==32&&es()==32))}function uh(t){for(;es();)switch(ui){case t:return po;case 34:case 39:t!==34&&t!==39&&uh(ui);break;case 40:t===41&&uh(t);break;case 92:es()}return po}function a3(t,e){for(;es()&&t+ui!==57&&(t+ui!==84||zc()!==47););return"/*"+F1(e,po-1)+"*"+ju(t===47?t:es())}function zu(t){for(;!P1(zc());)es();return F1(t,po)}function ad(t){return function(e){return sh="",e}(Uc("",null,null,null,[""],t=function(e){return I1=oh=1,n3=ic(sh=e),po=0,[]}(t),0,[0],t))}function Uc(t,e,i,u,d,g,v,w,C){for(var S=0,L=0,j=v,P=0,U=0,ot=0,vt=1,bt=1,kt=1,_t=0,lt="",Wt=d,Ot=g,gt=u,Lt=lt;bt;)switch(ot=_t,_t=es()){case 40:if(ot!=108&&Lt.charCodeAt(j-1)==58){e3(Lt+=L1(ch(_t),"&","&\f"),"&\f")!=-1&&(kt=-1);break}case 34:case 39:case 91:Lt+=ch(_t);break;case 9:case 10:case 13:case 32:Lt+=i3(ot);break;case 92:Lt+=Y1(id()-1,7);continue;case 47:switch(zc()){case 42:case 47:B1(o3(a3(es(),id()),e,i),C);break;default:Lt+="/"}break;case 123*vt:w[S++]=ic(Lt)*kt;case 125*vt:case 59:case 0:switch(_t){case 0:case 125:bt=0;case 59+L:U>0&&ic(Lt)-j&&B1(U>32?$c(Lt+";",u,i,j-1):$c(L1(Lt," ","")+";",u,i,j-2),C);break;case 59:Lt+=";";default:if(B1(gt=m2(Lt,e,i,S,L,d,w,lt,Wt=[],Ot=[],j),g),_t===123)if(L===0)Uc(Lt,e,gt,gt,Wt,g,j,w,Ot);else switch(P){case 100:case 109:case 115:Uc(t,gt,gt,u&&B1(m2(t,gt,gt,0,0,d,w,lt,d,Wt=[],j),Ot),d,Ot,j,w,u?Wt:Ot);break;default:Uc(Lt,gt,gt,gt,[""],Ot,0,w,Ot)}}S=L=U=0,vt=kt=1,lt=Lt="",j=v;break;case 58:j=1+ic(Lt),U=ot;default:if(vt<1){if(_t==123)--vt;else if(_t==125&&vt++==0&&r3()==125)continue}switch(Lt+=ju(_t),_t*vt){case 38:kt=L>0?1:(Lt+="\f",-1);break;case 44:w[S++]=(ic(Lt)-1)*kt,kt=1;break;case 64:zc()===45&&(Lt+=ch(es())),P=zc(),L=j=ic(lt=Lt+=zu(id())),_t++;break;case 45:ot===45&&ic(Lt)==2&&(vt=0)}}return g}function m2(t,e,i,u,d,g,v,w,C,S,L){for(var j=d-1,P=d===0?g:[""],U=g2(P),ot=0,vt=0,bt=0;ot<u;++ot)for(var kt=0,_t=ah(t,j+1,j=Yu(vt=v[ot])),lt=t;kt<U;++kt)(lt=ih(vt>0?P[kt]+" "+_t:L1(_t,/&\f/g,P[kt])))&&(C[bt++]=lt);return R1(t,e,i,d===0?d2:w,C,S,L)}function o3(t,e,i){return R1(t,e,i,rd,ju(ui),ah(t,2,-2),0)}function $c(t,e,i,u){return R1(t,e,i,p2,ah(t,0,u),ah(t,u+1,-1),u)}const v2="8.13.10";var Uu=o(9609),s3=o(7856),Vx=o.n(s3),c3=function(t){var e=t.replace(/\\u[\dA-F]{4}/gi,function(i){return String.fromCharCode(parseInt(i.replace(/\\u/g,""),16))});return e=(e=(e=e.replace(/\\x([0-9a-f]{2})/gi,function(i,u){return String.fromCharCode(parseInt(u,16))})).replace(/\\[\d\d\d]{3}/gi,function(i){return String.fromCharCode(parseInt(i.replace(/\\/g,""),8))})).replace(/\\[\d\d\d]{2}/gi,function(i){return String.fromCharCode(parseInt(i.replace(/\\/g,""),8))})},u3=function(t){for(var e="",i=0;i>=0;){if(!((i=t.indexOf("<script"))>=0)){e+=t,i=-1;break}e+=t.substr(0,i),(i=(t=t.substr(i+1)).indexOf("<\/script>"))>=0&&(i+=9,t=t.substr(i))}var u=c3(e);return(u=(u=(u=u.replace(/script>/gi,"#")).replace(/javascript:/gi,"#")).replace(/onerror=/gi,"onerror:")).replace(/<iframe/gi,"")},$u=function(t,e){if(!t)return t;var i=Vx().sanitize(function(u,d){var g=u,v=!0;if(!d.flowchart||d.flowchart.htmlLabels!==!1&&d.flowchart.htmlLabels!=="false"||(v=!1),v){var w=d.securityLevel;w==="antiscript"||w==="strict"?g=u3(g):w!=="loose"&&(g=(g=(g=_2(g)).replace(/</g,"<").replace(/>/g,">")).replace(/=/g,"="),g=Gx(g))}return g}(t,e));return i},j1=/<br\s*\/?>/gi,Gx=function(t){return t.replace(/#br#/g,"<br/>")},_2=function(t){return t.replace(j1,"#br#")},Ni=function(t){return t!=="false"&&t!==!1};const dr={getRows:function(t){if(!t)return 1;var e=_2(t);return(e=e.replace(/\\n/g,"#br#")).split("#br#")},sanitizeText:$u,sanitizeTextOrArray:function(t,e){return typeof t=="string"?$u(t,e):t.flat().map(function(i){return $u(i,e)})},hasBreaks:function(t){return j1.test(t)},splitBreaks:function(t){return t.split(j1)},lineBreakRegex:j1,removeScript:u3,getUrl:function(t){var e="";return t&&(e=(e=(e=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search).replace(/\(/g,"\\(")).replace(/\)/g,"\\)")),e},evaluate:Ni,removeEscapes:c3};var xe=o(8613),vi=function(t,e){return e?(0,xe.adjust)(t,{s:-40,l:10}):(0,xe.adjust)(t,{s:-40,l:-10})};function b2(t){return b2=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},b2(t)}function w2(t,e){for(var i=0;i<e.length;i++){var u=e[i];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(t,u.key,u)}}var x2=function(){function t(){(function(u,d){if(!(u instanceof d))throw new TypeError("Cannot call a class as a function")})(this,t),this.background="#f4f4f4",this.darkMode=!1,this.primaryColor="#fff4dd",this.noteBkgColor="#fff5ad",this.noteTextColor="#333",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px"}var e,i;return e=t,i=[{key:"updateColors",value:function(){this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#ddd":"#333"),this.secondaryColor=this.secondaryColor||(0,xe.adjust)(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||(0,xe.adjust)(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||vi(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||vi(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||vi(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||vi(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#333",this.secondaryTextColor=this.secondaryTextColor||(0,xe.invert)(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||(0,xe.invert)(this.tertiaryColor),this.lineColor=this.lineColor||(0,xe.invert)(this.background),this.textColor=this.textColor||this.primaryTextColor,this.nodeBkg=this.nodeBkg||this.primaryColor,this.mainBkg=this.mainBkg||this.primaryColor,this.nodeBorder=this.nodeBorder||this.primaryBorderColor,this.clusterBkg=this.clusterBkg||this.tertiaryColor,this.clusterBorder=this.clusterBorder||this.tertiaryBorderColor,this.defaultLinkColor=this.defaultLinkColor||this.lineColor,this.titleColor=this.titleColor||this.tertiaryTextColor,this.edgeLabelBackground=this.edgeLabelBackground||(this.darkMode?(0,xe.darken)(this.secondaryColor,30):this.secondaryColor),this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,this.actorBorder=this.actorBorder||this.primaryBorderColor,this.actorBkg=this.actorBkg||this.mainBkg,this.actorTextColor=this.actorTextColor||this.primaryTextColor,this.actorLineColor=this.actorLineColor||"grey",this.labelBoxBkgColor=this.labelBoxBkgColor||this.actorBkg,this.signalColor=this.signalColor||this.textColor,this.signalTextColor=this.signalTextColor||this.textColor,this.labelBoxBorderColor=this.labelBoxBorderColor||this.actorBorder,this.labelTextColor=this.labelTextColor||this.actorTextColor,this.loopTextColor=this.loopTextColor||this.actorTextColor,this.activationBorderColor=this.activationBorderColor||(0,xe.darken)(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||(0,xe.invert)(this.lineColor),this.sectionBkgColor=this.sectionBkgColor||this.tertiaryColor,this.altSectionBkgColor=this.altSectionBkgColor||"white",this.sectionBkgColor=this.sectionBkgColor||this.secondaryColor,this.sectionBkgColor2=this.sectionBkgColor2||this.primaryColor,this.excludeBkgColor=this.excludeBkgColor||"#eeeeee",this.taskBorderColor=this.taskBorderColor||this.primaryBorderColor,this.taskBkgColor=this.taskBkgColor||this.primaryColor,this.activeTaskBorderColor=this.activeTaskBorderColor||this.primaryColor,this.activeTaskBkgColor=this.activeTaskBkgColor||(0,xe.lighten)(this.primaryColor,23),this.gridColor=this.gridColor||"lightgrey",this.doneTaskBkgColor=this.doneTaskBkgColor||"lightgrey",this.doneTaskBorderColor=this.doneTaskBorderColor||"grey",this.critBorderColor=this.critBorderColor||"#ff8888",this.critBkgColor=this.critBkgColor||"red",this.todayLineColor=this.todayLineColor||"red",this.taskTextColor=this.taskTextColor||this.textColor,this.taskTextOutsideColor=this.taskTextOutsideColor||this.textColor,this.taskTextLightColor=this.taskTextLightColor||this.textColor,this.taskTextColor=this.taskTextColor||this.primaryTextColor,this.taskTextDarkColor=this.taskTextDarkColor||this.textColor,this.taskTextClickableColor=this.taskTextClickableColor||"#003163",this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||this.tertiaryColor,this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.specialStateColor=this.lineColor,this.classText=this.classText||this.textColor,this.fillType0=this.fillType0||this.primaryColor,this.fillType1=this.fillType1||this.secondaryColor,this.fillType2=this.fillType2||(0,xe.adjust)(this.primaryColor,{h:64}),this.fillType3=this.fillType3||(0,xe.adjust)(this.secondaryColor,{h:64}),this.fillType4=this.fillType4||(0,xe.adjust)(this.primaryColor,{h:-64}),this.fillType5=this.fillType5||(0,xe.adjust)(this.secondaryColor,{h:-64}),this.fillType6=this.fillType6||(0,xe.adjust)(this.primaryColor,{h:128}),this.fillType7=this.fillType7||(0,xe.adjust)(this.secondaryColor,{h:128}),this.pie1=this.pie1||this.primaryColor,this.pie2=this.pie2||this.secondaryColor,this.pie3=this.pie3||this.tertiaryColor,this.pie4=this.pie4||(0,xe.adjust)(this.primaryColor,{l:-10}),this.pie5=this.pie5||(0,xe.adjust)(this.secondaryColor,{l:-10}),this.pie6=this.pie6||(0,xe.adjust)(this.tertiaryColor,{l:-10}),this.pie7=this.pie7||(0,xe.adjust)(this.primaryColor,{h:60,l:-10}),this.pie8=this.pie8||(0,xe.adjust)(this.primaryColor,{h:-60,l:-10}),this.pie9=this.pie9||(0,xe.adjust)(this.primaryColor,{h:120,l:0}),this.pie10=this.pie10||(0,xe.adjust)(this.primaryColor,{h:60,l:-20}),this.pie11=this.pie11||(0,xe.adjust)(this.primaryColor,{h:-60,l:-20}),this.pie12=this.pie12||(0,xe.adjust)(this.primaryColor,{h:120,l:-10}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOpacity=this.pieOpacity||"0.7",this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||this.primaryBorderColor,this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||(this.darkMode?(0,xe.darken)(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor}},{key:"calculate",value:function(u){var d=this;if(b2(u)==="object"){var g=Object.keys(u);g.forEach(function(v){d[v]=u[v]}),this.updateColors(),g.forEach(function(v){d[v]=u[v]})}else this.updateColors()}}],i&&w2(e.prototype,i),Object.defineProperty(e,"prototype",{writable:!1}),t}();function Hu(t){return Hu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Hu(t)}function l3(t,e){for(var i=0;i<e.length;i++){var u=e[i];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(t,u.key,u)}}var lh=function(){function t(){(function(u,d){if(!(u instanceof d))throw new TypeError("Cannot call a class as a function")})(this,t),this.background="#333",this.primaryColor="#1f2020",this.secondaryColor=(0,xe.lighten)(this.primaryColor,16),this.tertiaryColor=(0,xe.adjust)(this.primaryColor,{h:-160}),this.primaryBorderColor=vi(this.primaryColor,this.darkMode),this.secondaryBorderColor=vi(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=vi(this.tertiaryColor,this.darkMode),this.primaryTextColor=(0,xe.invert)(this.primaryColor),this.secondaryTextColor=(0,xe.invert)(this.secondaryColor),this.tertiaryTextColor=(0,xe.invert)(this.tertiaryColor),this.lineColor=(0,xe.invert)(this.background),this.textColor=(0,xe.invert)(this.background),this.mainBkg="#1f2020",this.secondBkg="calculated",this.mainContrastColor="lightgrey",this.darkTextColor=(0,xe.lighten)((0,xe.invert)("#323D47"),10),this.lineColor="calculated",this.border1="#81B1DB",this.border2=(0,xe.rgba)(255,255,255,.25),this.arrowheadColor="calculated",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.labelBackground="#181818",this.textColor="#ccc",this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="#F9FFFE",this.edgeLabelBackground="calculated",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="calculated",this.actorLineColor="calculated",this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="calculated",this.activationBkgColor="calculated",this.sequenceNumberColor="black",this.sectionBkgColor=(0,xe.darken)("#EAE8D9",30),this.altSectionBkgColor="calculated",this.sectionBkgColor2="#EAE8D9",this.taskBorderColor=(0,xe.rgba)(255,255,255,70),this.taskBkgColor="calculated",this.taskTextColor="calculated",this.taskTextLightColor="calculated",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor=(0,xe.rgba)(255,255,255,50),this.activeTaskBkgColor="#81B1DB",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="grey",this.critBorderColor="#E83737",this.critBkgColor="#E83737",this.taskTextDarkColor="calculated",this.todayLineColor="#DB5757",this.labelColor="calculated",this.errorBkgColor="#a44141",this.errorTextColor="#ddd"}var e,i;return e=t,i=[{key:"updateColors",value:function(){this.secondBkg=(0,xe.lighten)(this.mainBkg,16),this.lineColor=this.mainContrastColor,this.arrowheadColor=this.mainContrastColor,this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.edgeLabelBackground=(0,xe.lighten)(this.labelBackground,25),this.actorBorder=this.border1,this.actorBkg=this.mainBkg,this.actorTextColor=this.mainContrastColor,this.actorLineColor=this.mainContrastColor,this.signalColor=this.mainContrastColor,this.signalTextColor=this.mainContrastColor,this.labelBoxBkgColor=this.actorBkg,this.labelBoxBorderColor=this.actorBorder,this.labelTextColor=this.mainContrastColor,this.loopTextColor=this.mainContrastColor,this.noteBorderColor=this.secondaryBorderColor,this.noteBkgColor=this.secondBkg,this.noteTextColor=this.secondaryTextColor,this.activationBorderColor=this.border1,this.activationBkgColor=this.secondBkg,this.altSectionBkgColor=this.background,this.taskBkgColor=(0,xe.lighten)(this.mainBkg,23),this.taskTextColor=this.darkTextColor,this.taskTextLightColor=this.mainContrastColor,this.taskTextOutsideColor=this.taskTextLightColor,this.gridColor=this.mainContrastColor,this.doneTaskBkgColor=this.mainContrastColor,this.taskTextDarkColor=this.darkTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#555",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.primaryBorderColor,this.specialStateColor="#f4f4f4",this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=(0,xe.adjust)(this.primaryColor,{h:64}),this.fillType3=(0,xe.adjust)(this.secondaryColor,{h:64}),this.fillType4=(0,xe.adjust)(this.primaryColor,{h:-64}),this.fillType5=(0,xe.adjust)(this.secondaryColor,{h:-64}),this.fillType6=(0,xe.adjust)(this.primaryColor,{h:128}),this.fillType7=(0,xe.adjust)(this.secondaryColor,{h:128}),this.pie1=this.pie1||"#0b0000",this.pie2=this.pie2||"#4d1037",this.pie3=this.pie3||"#3f5258",this.pie4=this.pie4||"#4f2f1b",this.pie5=this.pie5||"#6e0a0a",this.pie6=this.pie6||"#3b0048",this.pie7=this.pie7||"#995a01",this.pie8=this.pie8||"#154706",this.pie9=this.pie9||"#161722",this.pie10=this.pie10||"#00296f",this.pie11=this.pie11||"#01629c",this.pie12=this.pie12||"#010029",this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOpacity=this.pieOpacity||"0.7",this.classText=this.primaryTextColor,this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||this.primaryBorderColor,this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||(this.darkMode?(0,xe.darken)(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor}},{key:"calculate",value:function(u){var d=this;if(Hu(u)==="object"){var g=Object.keys(u);g.forEach(function(v){d[v]=u[v]}),this.updateColors(),g.forEach(function(v){d[v]=u[v]})}else this.updateColors()}}],i&&l3(e.prototype,i),Object.defineProperty(e,"prototype",{writable:!1}),t}();function od(t){return od=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},od(t)}function h3(t,e){for(var i=0;i<e.length;i++){var u=e[i];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(t,u.key,u)}}var z1=function(){function t(){(function(u,d){if(!(u instanceof d))throw new TypeError("Cannot call a class as a function")})(this,t),this.background="#f4f4f4",this.primaryColor="#ECECFF",this.secondaryColor=(0,xe.adjust)(this.primaryColor,{h:120}),this.secondaryColor="#ffffde",this.tertiaryColor=(0,xe.adjust)(this.primaryColor,{h:-160}),this.primaryBorderColor=vi(this.primaryColor,this.darkMode),this.secondaryBorderColor=vi(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=vi(this.tertiaryColor,this.darkMode),this.primaryTextColor=(0,xe.invert)(this.primaryColor),this.secondaryTextColor=(0,xe.invert)(this.secondaryColor),this.tertiaryTextColor=(0,xe.invert)(this.tertiaryColor),this.lineColor=(0,xe.invert)(this.background),this.textColor=(0,xe.invert)(this.background),this.background="white",this.mainBkg="#ECECFF",this.secondBkg="#ffffde",this.lineColor="#333333",this.border1="#9370DB",this.border2="#aaaa33",this.arrowheadColor="#333333",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.labelBackground="#e8e8e8",this.textColor="#333",this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="calculated",this.edgeLabelBackground="calculated",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="black",this.actorLineColor="grey",this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.sectionBkgColor="calculated",this.altSectionBkgColor="calculated",this.sectionBkgColor2="calculated",this.excludeBkgColor="#eeeeee",this.taskBorderColor="calculated",this.taskBkgColor="calculated",this.taskTextLightColor="calculated",this.taskTextColor=this.taskTextLightColor,this.taskTextDarkColor="calculated",this.taskTextOutsideColor=this.taskTextDarkColor,this.taskTextClickableColor="calculated",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="calculated",this.critBorderColor="calculated",this.critBkgColor="calculated",this.todayLineColor="calculated",this.sectionBkgColor=(0,xe.rgba)(102,102,255,.49),this.altSectionBkgColor="white",this.sectionBkgColor2="#fff400",this.taskBorderColor="#534fbc",this.taskBkgColor="#8a90dd",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="black",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="#534fbc",this.activeTaskBkgColor="#bfc7ff",this.gridColor="lightgrey",this.doneTaskBkgColor="lightgrey",this.doneTaskBorderColor="grey",this.critBorderColor="#ff8888",this.critBkgColor="red",this.todayLineColor="red",this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222",this.updateColors()}var e,i;return e=t,i=[{key:"updateColors",value:function(){this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.titleColor=this.textColor,this.edgeLabelBackground=this.labelBackground,this.actorBorder=(0,xe.lighten)(this.border1,23),this.actorBkg=this.mainBkg,this.labelBoxBkgColor=this.actorBkg,this.signalColor=this.textColor,this.signalTextColor=this.textColor,this.labelBoxBorderColor=this.actorBorder,this.labelTextColor=this.actorTextColor,this.loopTextColor=this.actorTextColor,this.noteBorderColor=this.border2,this.noteTextColor=this.actorTextColor,this.taskTextColor=this.taskTextLightColor,this.taskTextOutsideColor=this.taskTextDarkColor,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f0f0f0",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.specialStateColor=this.lineColor,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.classText=this.primaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=(0,xe.adjust)(this.primaryColor,{h:64}),this.fillType3=(0,xe.adjust)(this.secondaryColor,{h:64}),this.fillType4=(0,xe.adjust)(this.primaryColor,{h:-64}),this.fillType5=(0,xe.adjust)(this.secondaryColor,{h:-64}),this.fillType6=(0,xe.adjust)(this.primaryColor,{h:128}),this.fillType7=(0,xe.adjust)(this.secondaryColor,{h:128}),this.pie1=this.pie1||this.primaryColor,this.pie2=this.pie2||this.secondaryColor,this.pie3=this.pie3||(0,xe.adjust)(this.tertiaryColor,{l:-40}),this.pie4=this.pie4||(0,xe.adjust)(this.primaryColor,{l:-10}),this.pie5=this.pie5||(0,xe.adjust)(this.secondaryColor,{l:-30}),this.pie6=this.pie6||(0,xe.adjust)(this.tertiaryColor,{l:-20}),this.pie7=this.pie7||(0,xe.adjust)(this.primaryColor,{h:60,l:-20}),this.pie8=this.pie8||(0,xe.adjust)(this.primaryColor,{h:-60,l:-40}),this.pie9=this.pie9||(0,xe.adjust)(this.primaryColor,{h:120,l:-40}),this.pie10=this.pie10||(0,xe.adjust)(this.primaryColor,{h:60,l:-40}),this.pie11=this.pie11||(0,xe.adjust)(this.primaryColor,{h:-90,l:-40}),this.pie12=this.pie12||(0,xe.adjust)(this.primaryColor,{h:120,l:-30}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOpacity=this.pieOpacity||"0.7",this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||this.primaryBorderColor,this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||this.labelBackground,this.relationLabelColor=this.relationLabelColor||this.actorTextColor}},{key:"calculate",value:function(u){var d=this;if(od(u)==="object"){var g=Object.keys(u);g.forEach(function(v){d[v]=u[v]}),this.updateColors(),g.forEach(function(v){d[v]=u[v]})}else this.updateColors()}}],i&&h3(e.prototype,i),Object.defineProperty(e,"prototype",{writable:!1}),t}();function sd(t){return sd=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},sd(t)}function f3(t,e){for(var i=0;i<e.length;i++){var u=e[i];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(t,u.key,u)}}var Qi=function(){function t(){(function(u,d){if(!(u instanceof d))throw new TypeError("Cannot call a class as a function")})(this,t),this.background="#f4f4f4",this.primaryColor="#cde498",this.secondaryColor="#cdffb2",this.background="white",this.mainBkg="#cde498",this.secondBkg="#cdffb2",this.lineColor="green",this.border1="#13540c",this.border2="#6eaa49",this.arrowheadColor="green",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.tertiaryColor=(0,xe.lighten)("#cde498",10),this.primaryBorderColor=vi(this.primaryColor,this.darkMode),this.secondaryBorderColor=vi(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=vi(this.tertiaryColor,this.darkMode),this.primaryTextColor=(0,xe.invert)(this.primaryColor),this.secondaryTextColor=(0,xe.invert)(this.secondaryColor),this.tertiaryTextColor=(0,xe.invert)(this.primaryColor),this.lineColor=(0,xe.invert)(this.background),this.textColor=(0,xe.invert)(this.background),this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="#333",this.edgeLabelBackground="#e8e8e8",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="black",this.actorLineColor="grey",this.signalColor="#333",this.signalTextColor="#333",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="#326932",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.sectionBkgColor="#6eaa49",this.altSectionBkgColor="white",this.sectionBkgColor2="#6eaa49",this.excludeBkgColor="#eeeeee",this.taskBorderColor="calculated",this.taskBkgColor="#487e3a",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="black",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="lightgrey",this.doneTaskBkgColor="lightgrey",this.doneTaskBorderColor="grey",this.critBorderColor="#ff8888",this.critBkgColor="red",this.todayLineColor="red",this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222"}var e,i;return e=t,i=[{key:"updateColors",value:function(){this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.actorBorder=(0,xe.darken)(this.mainBkg,20),this.actorBkg=this.mainBkg,this.labelBoxBkgColor=this.actorBkg,this.labelTextColor=this.actorTextColor,this.loopTextColor=this.actorTextColor,this.noteBorderColor=this.border2,this.noteTextColor=this.actorTextColor,this.taskBorderColor=this.border1,this.taskTextColor=this.taskTextLightColor,this.taskTextOutsideColor=this.taskTextDarkColor,this.activeTaskBorderColor=this.taskBorderColor,this.activeTaskBkgColor=this.mainBkg,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f0f0f0",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.primaryBorderColor,this.specialStateColor=this.lineColor,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.classText=this.primaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=(0,xe.adjust)(this.primaryColor,{h:64}),this.fillType3=(0,xe.adjust)(this.secondaryColor,{h:64}),this.fillType4=(0,xe.adjust)(this.primaryColor,{h:-64}),this.fillType5=(0,xe.adjust)(this.secondaryColor,{h:-64}),this.fillType6=(0,xe.adjust)(this.primaryColor,{h:128}),this.fillType7=(0,xe.adjust)(this.secondaryColor,{h:128}),this.pie1=this.pie1||this.primaryColor,this.pie2=this.pie2||this.secondaryColor,this.pie3=this.pie3||this.tertiaryColor,this.pie4=this.pie4||(0,xe.adjust)(this.primaryColor,{l:-30}),this.pie5=this.pie5||(0,xe.adjust)(this.secondaryColor,{l:-30}),this.pie6=this.pie6||(0,xe.adjust)(this.tertiaryColor,{h:40,l:-40}),this.pie7=this.pie7||(0,xe.adjust)(this.primaryColor,{h:60,l:-10}),this.pie8=this.pie8||(0,xe.adjust)(this.primaryColor,{h:-60,l:-10}),this.pie9=this.pie9||(0,xe.adjust)(this.primaryColor,{h:120,l:0}),this.pie10=this.pie10||(0,xe.adjust)(this.primaryColor,{h:60,l:-50}),this.pie11=this.pie11||(0,xe.adjust)(this.primaryColor,{h:-60,l:-50}),this.pie12=this.pie12||(0,xe.adjust)(this.primaryColor,{h:120,l:-50}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOpacity=this.pieOpacity||"0.7",this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||this.primaryBorderColor,this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||this.edgeLabelBackground,this.relationLabelColor=this.relationLabelColor||this.actorTextColor}},{key:"calculate",value:function(u){var d=this;if(sd(u)==="object"){var g=Object.keys(u);g.forEach(function(v){d[v]=u[v]}),this.updateColors(),g.forEach(function(v){d[v]=u[v]})}else this.updateColors()}}],i&&f3(e.prototype,i),Object.defineProperty(e,"prototype",{writable:!1}),t}();function k2(t){return k2=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},k2(t)}function Zx(t,e){for(var i=0;i<e.length;i++){var u=e[i];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(t,u.key,u)}}var Er=function(){function t(){(function(u,d){if(!(u instanceof d))throw new TypeError("Cannot call a class as a function")})(this,t),this.primaryColor="#eee",this.contrast="#707070",this.secondaryColor=(0,xe.lighten)(this.contrast,55),this.background="#ffffff",this.tertiaryColor=(0,xe.adjust)(this.primaryColor,{h:-160}),this.primaryBorderColor=vi(this.primaryColor,this.darkMode),this.secondaryBorderColor=vi(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=vi(this.tertiaryColor,this.darkMode),this.primaryTextColor=(0,xe.invert)(this.primaryColor),this.secondaryTextColor=(0,xe.invert)(this.secondaryColor),this.tertiaryTextColor=(0,xe.invert)(this.tertiaryColor),this.lineColor=(0,xe.invert)(this.background),this.textColor=(0,xe.invert)(this.background),this.mainBkg="#eee",this.secondBkg="calculated",this.lineColor="#666",this.border1="#999",this.border2="calculated",this.note="#ffa",this.text="#333",this.critical="#d42",this.done="#bbb",this.arrowheadColor="#333333",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="calculated",this.edgeLabelBackground="white",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="calculated",this.actorLineColor="calculated",this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="calculated",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.sectionBkgColor="calculated",this.altSectionBkgColor="white",this.sectionBkgColor2="calculated",this.excludeBkgColor="#eeeeee",this.taskBorderColor="calculated",this.taskBkgColor="calculated",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="calculated",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="calculated",this.critBkgColor="calculated",this.critBorderColor="calculated",this.todayLineColor="calculated",this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222"}var e,i;return e=t,i=[{key:"updateColors",value:function(){this.secondBkg=(0,xe.lighten)(this.contrast,55),this.border2=this.contrast,this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.titleColor=this.text,this.actorBorder=(0,xe.lighten)(this.border1,23),this.actorBkg=this.mainBkg,this.actorTextColor=this.text,this.actorLineColor=this.lineColor,this.signalColor=this.text,this.signalTextColor=this.text,this.labelBoxBkgColor=this.actorBkg,this.labelBoxBorderColor=this.actorBorder,this.labelTextColor=this.text,this.loopTextColor=this.text,this.noteBorderColor="#999",this.noteBkgColor="#666",this.noteTextColor="#fff",this.sectionBkgColor=(0,xe.lighten)(this.contrast,30),this.sectionBkgColor2=(0,xe.lighten)(this.contrast,30),this.taskBorderColor=(0,xe.darken)(this.contrast,10),this.taskBkgColor=this.contrast,this.taskTextColor=this.taskTextLightColor,this.taskTextDarkColor=this.text,this.taskTextOutsideColor=this.taskTextDarkColor,this.activeTaskBorderColor=this.taskBorderColor,this.activeTaskBkgColor=this.mainBkg,this.gridColor=(0,xe.lighten)(this.border1,30),this.doneTaskBkgColor=this.done,this.doneTaskBorderColor=this.lineColor,this.critBkgColor=this.critical,this.critBorderColor=(0,xe.darken)(this.critBkgColor,10),this.todayLineColor=this.critBkgColor,this.transitionColor=this.transitionColor||"#000",this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f4f4f4",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.stateBorder=this.stateBorder||"#000",this.innerEndBackground=this.primaryBorderColor,this.specialStateColor="#222",this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.classText=this.primaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=(0,xe.adjust)(this.primaryColor,{h:64}),this.fillType3=(0,xe.adjust)(this.secondaryColor,{h:64}),this.fillType4=(0,xe.adjust)(this.primaryColor,{h:-64}),this.fillType5=(0,xe.adjust)(this.secondaryColor,{h:-64}),this.fillType6=(0,xe.adjust)(this.primaryColor,{h:128}),this.fillType7=(0,xe.adjust)(this.secondaryColor,{h:128}),this.pie1=this.pie1||"#F4F4F4",this.pie2=this.pie2||"#555",this.pie3=this.pie3||"#BBB",this.pie4=this.pie4||"#777",this.pie5=this.pie5||"#999",this.pie6=this.pie6||"#DDD",this.pie7=this.pie7||"#FFF",this.pie8=this.pie8||"#DDD",this.pie9=this.pie9||"#BBB",this.pie10=this.pie10||"#999",this.pie11=this.pie11||"#777",this.pie12=this.pie12||"#555",this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOpacity=this.pieOpacity||"0.7",this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||this.primaryBorderColor,this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||this.edgeLabelBackground,this.relationLabelColor=this.relationLabelColor||this.actorTextColor}},{key:"calculate",value:function(u){var d=this;if(k2(u)==="object"){var g=Object.keys(u);g.forEach(function(v){d[v]=u[v]}),this.updateColors(),g.forEach(function(v){d[v]=u[v]})}else this.updateColors()}}],i&&Zx(e.prototype,i),Object.defineProperty(e,"prototype",{writable:!1}),t}();const hh={base:{getThemeVariables:function(t){var e=new x2;return e.calculate(t),e}},dark:{getThemeVariables:function(t){var e=new lh;return e.calculate(t),e}},default:{getThemeVariables:function(t){var e=new z1;return e.calculate(t),e}},forest:{getThemeVariables:function(t){var e=new Qi;return e.calculate(t),e}},neutral:{getThemeVariables:function(t){var e=new Er;return e.calculate(t),e}}};function Wu(t){return function(e){if(Array.isArray(e))return qu(e)}(t)||function(e){if(typeof Symbol!="undefined"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}(t)||function(e,i){if(e){if(typeof e=="string")return qu(e,i);var u=Object.prototype.toString.call(e).slice(8,-1);return u==="Object"&&e.constructor&&(u=e.constructor.name),u==="Map"||u==="Set"?Array.from(e):u==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(u)?qu(e,i):void 0}}(t)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function qu(t,e){(e==null||e>t.length)&&(e=t.length);for(var i=0,u=new Array(e);i<e;i++)u[i]=t[i];return u}function T2(t){return T2=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},T2(t)}var fh={theme:"default",themeVariables:hh.default.getThemeVariables(),themeCSS:void 0,maxTextSize:5e4,darkMode:!1,fontFamily:'"trebuchet ms", verdana, arial, sans-serif;',logLevel:5,securityLevel:"strict",startOnLoad:!0,arrowMarkerAbsolute:!1,secure:["secure","securityLevel","startOnLoad","maxTextSize"],deterministicIds:!1,deterministicIDSeed:void 0,flowchart:{diagramPadding:8,htmlLabels:!0,nodeSpacing:50,rankSpacing:50,curve:"basis",padding:15,useMaxWidth:!0,defaultRenderer:"dagre-d3"},sequence:{activationWidth:10,diagramMarginX:50,diagramMarginY:10,actorMargin:50,width:150,height:65,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",mirrorActors:!0,forceMenus:!1,bottomMarginAdj:1,useMaxWidth:!0,rightAngles:!1,showSequenceNumbers:!1,actorFontSize:14,actorFontFamily:'"Open-Sans", "sans-serif"',actorFontWeight:400,noteFontSize:14,noteFontFamily:'"trebuchet ms", verdana, arial, sans-serif',noteFontWeight:400,noteAlign:"center",messageFontSize:16,messageFontFamily:'"trebuchet ms", verdana, arial, sans-serif',messageFontWeight:400,wrap:!1,wrapPadding:10,labelBoxWidth:50,labelBoxHeight:20,messageFont:function(){return{fontFamily:this.messageFontFamily,fontSize:this.messageFontSize,fontWeight:this.messageFontWeight}},noteFont:function(){return{fontFamily:this.noteFontFamily,fontSize:this.noteFontSize,fontWeight:this.noteFontWeight}},actorFont:function(){return{fontFamily:this.actorFontFamily,fontSize:this.actorFontSize,fontWeight:this.actorFontWeight}}},gantt:{titleTopMargin:25,barHeight:20,barGap:4,topPadding:50,rightPadding:75,leftPadding:75,gridLineStartPadding:35,fontSize:11,sectionFontSize:11,numberSectionStyles:4,axisFormat:"%Y-%m-%d",useMaxWidth:!0,topAxis:!1,useWidth:void 0},journey:{diagramMarginX:50,diagramMarginY:10,leftMargin:150,width:150,height:50,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",bottomMarginAdj:1,useMaxWidth:!0,rightAngles:!1,taskFontSize:14,taskFontFamily:'"Open-Sans", "sans-serif"',taskMargin:50,activationWidth:10,textPlacement:"fo",actorColours:["#8FBC8F","#7CFC00","#00FFFF","#20B2AA","#B0E0E6","#FFFFE0"],sectionFills:["#191970","#8B008B","#4B0082","#2F4F4F","#800000","#8B4513","#00008B"],sectionColours:["#fff"]},class:{arrowMarkerAbsolute:!1,useMaxWidth:!0,defaultRenderer:"dagre-wrapper"},git:{arrowMarkerAbsolute:!1,useWidth:void 0,useMaxWidth:!0},state:{dividerMargin:10,sizeUnit:5,padding:8,textHeight:10,titleShift:-15,noteMargin:10,forkWidth:70,forkHeight:7,miniPadding:2,fontSizeFactor:5.02,fontSize:24,labelHeight:16,edgeLengthFactor:"20",compositTitleSize:35,radius:5,useMaxWidth:!0,defaultRenderer:"dagre-wrapper"},er:{diagramPadding:20,layoutDirection:"TB",minEntityWidth:100,minEntityHeight:75,entityPadding:15,stroke:"gray",fill:"honeydew",fontSize:12,useMaxWidth:!0},pie:{useWidth:void 0,useMaxWidth:!0},requirement:{useWidth:void 0,useMaxWidth:!0,rect_fill:"#f9f9f9",text_color:"#333",rect_border_size:"0.5px",rect_border_color:"#bbb",rect_min_width:200,rect_min_height:200,fontSize:14,rect_padding:10,line_height:20}};fh.class.arrowMarkerAbsolute=fh.arrowMarkerAbsolute,fh.git.arrowMarkerAbsolute=fh.arrowMarkerAbsolute;var Xx=function t(e){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return Object.keys(e).reduce(function(u,d){return Array.isArray(e[d])?u:T2(e[d])==="object"&&e[d]!==null?[].concat(Wu(u),[i+d],Wu(t(e[d],""))):[].concat(Wu(u),[i+d])},[])}(fh,"");const Kx=fh;var Qx=void 0;function d3(t,e){for(var i=0;i<e.length;i++){var u=e[i];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(t,u.key,u)}}function E2(t,e){var i=typeof Symbol!="undefined"&&t[Symbol.iterator]||t["@@iterator"];if(!i){if(Array.isArray(t)||(i=g3(t))||e&&t&&typeof t.length=="number"){i&&(t=i);var u=0,d=function(){};return{s:d,n:function(){return u>=t.length?{done:!0}:{done:!1,value:t[u++]}},e:function(C){throw C},f:d}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var g,v=!0,w=!1;return{s:function(){i=i.call(t)},n:function(){var C=i.next();return v=C.done,C},e:function(C){w=!0,g=C},f:function(){try{v||i.return==null||i.return()}finally{if(w)throw g}}}}function Mo(t){return Mo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Mo(t)}function p3(t){return function(e){if(Array.isArray(e))return U1(e)}(t)||function(e){if(typeof Symbol!="undefined"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}(t)||g3(t)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function g3(t,e){if(t){if(typeof t=="string")return U1(t,e);var i=Object.prototype.toString.call(t).slice(8,-1);return i==="Object"&&t.constructor&&(i=t.constructor.name),i==="Map"||i==="Set"?Array.from(t):i==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?U1(t,e):void 0}}function U1(t,e){(e==null||e>t.length)&&(e=t.length);for(var i=0,u=new Array(e);i<e;i++)u[i]=t[i];return u}var $1,y3={curveBasis:jr,curveBasisClosed:function(t){return new La(t)},curveBasisOpen:function(t){return new ci(t)},curveLinear:So,curveLinearClosed:function(t){return new Va(t)},curveMonotoneX:function(t){return new Wo(t)},curveMonotoneY:function(t){return new vs(t)},curveNatural:function(t){return new bf(t)},curveStep:function(t){return new Mu(t,.5)},curveStepAfter:function(t){return new Mu(t,1)},curveStepBefore:function(t){return new Mu(t,0)}},H1=/[%]{2}[{]\s*(?:(?:(\w+)\s*:|(\w+))\s*(?:(?:(\w+))|((?:(?![}][%]{2}).|\r?\n)*))?\s*)(?:[}][%]{2})?/gi,Jx=/\s*(?:(?:(\w+)(?=:):|(\w+))\s*(?:(?:(\w+))|((?:(?![}][%]{2}).|\r?\n)*))?\s*)(?:[}][%]{2})?/gi,t6=/\s*%%.*\n/gm,m3=function(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;try{var i=new RegExp("[%]{2}(?![{]".concat(Jx.source,`)(?=[}][%]{2}).*
|
|
`),"ig");t=t.trim().replace(i,"").replace(/'/gm,'"'),p.debug("Detecting diagram directive".concat(e!==null?" type:"+e:""," based on the text:").concat(t));for(var u,d=[];(u=H1.exec(t))!==null;)if(u.index===H1.lastIndex&&H1.lastIndex++,u&&!e||e&&u[1]&&u[1].match(e)||e&&u[2]&&u[2].match(e)){var g=u[1]?u[1]:u[2],v=u[3]?u[3].trim():u[4]?JSON.parse(u[4].trim()):null;d.push({type:g,args:v})}return d.length===0&&d.push({type:t,args:null}),d.length===1?d[0]:d}catch(w){return p.error("ERROR: ".concat(w.message,` - Unable to parse directive
|
|
`).concat(e!==null?" type:"+e:""," based on the text:").concat(t)),{type:null,args:null}}},v3=function(t,e){return(t=t.replace(H1,"").replace(t6,`
|
|
`)).match(/^\s*sequenceDiagram/)?"sequence":t.match(/^\s*gantt/)?"gantt":t.match(/^\s*classDiagram-v2/)?"classDiagram":t.match(/^\s*classDiagram/)?e&&e.class&&e.class.defaultRenderer==="dagre-wrapper"?"classDiagram":"class":t.match(/^\s*stateDiagram-v2/)?"stateDiagram":t.match(/^\s*stateDiagram/)?e&&e.class&&e.state.defaultRenderer==="dagre-wrapper"?"stateDiagram":"state":t.match(/^\s*gitGraph/)?"git":t.match(/^\s*flowchart/)?"flowchart-v2":t.match(/^\s*info/)?"info":t.match(/^\s*pie/)?"pie":t.match(/^\s*erDiagram/)?"er":t.match(/^\s*journey/)?"journey":t.match(/^\s*requirement/)||t.match(/^\s*requirementDiagram/)?"requirement":e&&e.flowchart&&e.flowchart.defaultRenderer==="dagre-wrapper"?"flowchart-v2":"flowchart"},W1=function(t,e){var i={};return function(){for(var u=arguments.length,d=new Array(u),g=0;g<u;g++)d[g]=arguments[g];var v=e?e.apply(Qx,d):d[0];if(v in i)return i[v];var w=t.apply(void 0,d);return i[v]=w,w}},ns=function(t,e){if(!t)return e;var i="curve".concat(t.charAt(0).toUpperCase()+t.slice(1));return y3[i]||e},Vu=function(t,e){return t&&e?Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2)):0},Hc=function(t){for(var e="",i="",u=0;u<t.length;u++)t[u]!==void 0&&(t[u].startsWith("color:")||t[u].startsWith("text-align:")?i=i+t[u]+";":e=e+t[u]+";");return{style:e,labelStyle:i}},_3=0,b3=function(){return _3++,"id-"+Math.random().toString(36).substr(2,12)+"-"+_3},S2=function(t){return function(e){for(var i="",u="0123456789abcdef",d=u.length,g=0;g<e;g++)i+=u.charAt(Math.floor(Math.random()*d));return i}(t.length)},Ji=function t(e,i,u){var d=Object.assign({depth:2,clobber:!1},u),g=d.depth,v=d.clobber;return Array.isArray(i)&&!Array.isArray(e)?(i.forEach(function(w){return t(e,w,u)}),e):Array.isArray(i)&&Array.isArray(e)?(i.forEach(function(w){e.indexOf(w)===-1&&e.push(w)}),e):e===void 0||g<=0?e!=null&&Mo(e)==="object"&&Mo(i)==="object"?Object.assign(e,i):i:(i!==void 0&&Mo(e)==="object"&&Mo(i)==="object"&&Object.keys(i).forEach(function(w){Mo(i[w])!=="object"||e[w]!==void 0&&Mo(e[w])!=="object"?(v||Mo(e[w])!=="object"&&Mo(i[w])!=="object")&&(e[w]=i[w]):(e[w]===void 0&&(e[w]=Array.isArray(i[w])?[]:{}),e[w]=t(e[w],i[w],{depth:g-1,clobber:v}))}),e)},e6=function(t,e){var i=e.text.replace(dr.lineBreakRegex," "),u=t.append("text");u.attr("x",e.x),u.attr("y",e.y),u.style("text-anchor",e.anchor),u.style("font-family",e.fontFamily),u.style("font-size",e.fontSize),u.style("font-weight",e.fontWeight),u.attr("fill",e.fill),e.class!==void 0&&u.attr("class",e.class);var d=u.append("tspan");return d.attr("x",e.x+2*e.textMargin),d.attr("fill",e.fill),d.text(i),u},n6=W1(function(t,e,i){if(!t||(i=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",joinWith:"<br/>"},i),dr.lineBreakRegex.test(t)))return t;var u=t.split(" "),d=[],g="";return u.forEach(function(v,w){var C=q1("".concat(v," "),i),S=q1(g,i);if(C>e){var L=r6(v,e,"-",i),j=L.hyphenatedStrings,P=L.remainingWord;d.push.apply(d,[g].concat(p3(j))),g=P}else S+C>=e?(d.push(g),g=v):g=[g,v].filter(Boolean).join(" ");w+1===u.length&&d.push(g)}),d.filter(function(v){return v!==""}).join(i.joinWith)},function(t,e,i){return"".concat(t,"-").concat(e,"-").concat(i.fontSize,"-").concat(i.fontWeight,"-").concat(i.fontFamily,"-").concat(i.joinWith)}),r6=W1(function(t,e){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"-",u=arguments.length>3?arguments[3]:void 0;u=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",margin:0},u);var d=t.split(""),g=[],v="";return d.forEach(function(w,C){var S="".concat(v).concat(w);if(q1(S,u)>=e){var L=C+1,j=d.length===L,P="".concat(S).concat(i);g.push(j?S:P),v=""}else v=S}),{hyphenatedStrings:g,remainingWord:v}},function(t,e){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"-",u=arguments.length>3?arguments[3]:void 0;return"".concat(t,"-").concat(e,"-").concat(i,"-").concat(u.fontSize,"-").concat(u.fontWeight,"-").concat(u.fontFamily)}),q1=function(t,e){return e=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial"},e),C2(t,e).width},C2=W1(function(t,e){var i=e=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial"},e),u=i.fontSize,d=i.fontFamily,g=i.fontWeight;if(!t)return{width:0,height:0};var v=["sans-serif",d],w=t.split(dr.lineBreakRegex),C=[],S=Se("body");if(!S.remove)return{width:0,height:0,lineHeight:0};for(var L=S.append("svg"),j=0,P=v;j<P.length;j++){var U,ot=P[j],vt=0,bt={width:0,height:0,lineHeight:0},kt=E2(w);try{for(kt.s();!(U=kt.n()).done;){var _t=U.value,lt={x:0,y:0,fill:void 0,anchor:"start",style:"#666",width:100,height:100,textMargin:0,rx:0,ry:0,valign:void 0};lt.text=_t;var Wt=e6(L,lt).style("font-size",u).style("font-weight",g).style("font-family",ot),Ot=(Wt._groups||Wt)[0][0].getBBox();bt.width=Math.round(Math.max(bt.width,Ot.width)),vt=Math.round(Ot.height),bt.height+=vt,bt.lineHeight=Math.round(Math.max(bt.lineHeight,vt))}}catch(gt){kt.e(gt)}finally{kt.f()}C.push(bt)}return L.remove(),C[isNaN(C[1].height)||isNaN(C[1].width)||isNaN(C[1].lineHeight)||C[0].height>C[1].height&&C[0].width>C[1].width&&C[0].lineHeight>C[1].lineHeight?0:1]},function(t,e){return"".concat(t,"-").concat(e.fontSize,"-").concat(e.fontWeight,"-").concat(e.fontFamily)}),A2=function(t,e,i){var u=new Map;return u.set("height",t),i?(u.set("width","100%"),u.set("style","max-width: ".concat(e,"px;"))):u.set("width",e),u},go=function(t,e,i,u){(function(d,g){var v,w=E2(g);try{for(w.s();!(v=w.n()).done;){var C=v.value;d.attr(C[0],C[1])}}catch(S){w.e(S)}finally{w.f()}})(t,A2(e,i,u))},V1=function t(e){p.debug("directiveSanitizer called with",e),Mo(e)==="object"&&(e.length?e.forEach(function(i){return t(i)}):Object.keys(e).forEach(function(i){p.debug("Checking key",i),i.indexOf("__")===0&&(p.debug("sanitize deleting __ option",i),delete e[i]),i.indexOf("proto")>=0&&(p.debug("sanitize deleting proto option",i),delete e[i]),i.indexOf("constr")>=0&&(p.debug("sanitize deleting constr option",i),delete e[i]),i.indexOf("themeCSS")>=0&&(p.debug("sanitizing themeCss option"),e[i]=w3(e[i])),Xx.indexOf(i)<0?(p.debug("sanitize deleting option",i),delete e[i]):Mo(e[i])==="object"&&(p.debug("sanitize deleting object",i),t(e[i]))}))},w3=function(t){return(t.match(/\{/g)||[]).length!==(t.match(/\}/g)||[]).length?"{ /* ERROR: Unbalanced CSS */ }":t};const Kn={assignWithDepth:Ji,wrapLabel:n6,calculateTextHeight:function(t,e){return e=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",margin:15},e),C2(t,e).height},calculateTextWidth:q1,calculateTextDimensions:C2,calculateSvgSizeAttrs:A2,configureSvgSize:go,detectInit:function(t,e){var i=m3(t,/(?:init\b)|(?:initialize\b)/),u={};if(Array.isArray(i)){var d=i.map(function(v){return v.args});V1(d),u=Ji(u,p3(d))}else u=i.args;if(u){var g=v3(t,e);["config"].forEach(function(v){u[v]!==void 0&&(g==="flowchart-v2"&&(g="flowchart"),u[g]=u[v],delete u[v])})}return u},detectDirective:m3,detectType:v3,isSubstringInArray:function(t,e){for(var i=0;i<e.length;i++)if(e[i].match(t))return i;return-1},interpolateToCurve:ns,calcLabelPosition:function(t){return function(e){var i,u=0;e.forEach(function(v){u+=Vu(v,i),i=v});var d=u/2,g=void 0;return i=void 0,e.forEach(function(v){if(i&&!g){var w=Vu(v,i);if(w<d)d-=w;else{var C=d/w;C<=0&&(g=i),C>=1&&(g={x:v.x,y:v.y}),C>0&&C<1&&(g={x:(1-C)*i.x+C*v.x,y:(1-C)*i.y+C*v.y})}}i=v}),g}(t)},calcCardinalityPosition:function(t,e,i){var u;p.info("our points",e),e[0]!==i&&(e=e.reverse()),e.forEach(function(S){Vu(S,u),u=S});var d,g=25;u=void 0,e.forEach(function(S){if(u&&!d){var L=Vu(S,u);if(L<g)g-=L;else{var j=g/L;j<=0&&(d=u),j>=1&&(d={x:S.x,y:S.y}),j>0&&j<1&&(d={x:(1-j)*u.x+j*S.x,y:(1-j)*u.y+j*S.y})}}u=S});var v=t?10:5,w=Math.atan2(e[0].y-d.y,e[0].x-d.x),C={x:0,y:0};return C.x=Math.sin(w)*v+(e[0].x+d.x)/2,C.y=-Math.cos(w)*v+(e[0].y+d.y)/2,C},calcTerminalLabelPosition:function(t,e,i){var u,d=JSON.parse(JSON.stringify(i));p.info("our points",d),e!=="start_left"&&e!=="start_right"&&(d=d.reverse()),d.forEach(function(L){Vu(L,u),u=L});var g,v=25+t;u=void 0,d.forEach(function(L){if(u&&!g){var j=Vu(L,u);if(j<v)v-=j;else{var P=v/j;P<=0&&(g=u),P>=1&&(g={x:L.x,y:L.y}),P>0&&P<1&&(g={x:(1-P)*u.x+P*L.x,y:(1-P)*u.y+P*L.y})}}u=L});var w=10+.5*t,C=Math.atan2(d[0].y-g.y,d[0].x-g.x),S={x:0,y:0};return S.x=Math.sin(C)*w+(d[0].x+g.x)/2,S.y=-Math.cos(C)*w+(d[0].y+g.y)/2,e==="start_left"&&(S.x=Math.sin(C+Math.PI)*w+(d[0].x+g.x)/2,S.y=-Math.cos(C+Math.PI)*w+(d[0].y+g.y)/2),e==="end_right"&&(S.x=Math.sin(C-Math.PI)*w+(d[0].x+g.x)/2-5,S.y=-Math.cos(C-Math.PI)*w+(d[0].y+g.y)/2-5),e==="end_left"&&(S.x=Math.sin(C)*w+(d[0].x+g.x)/2-5,S.y=-Math.cos(C)*w+(d[0].y+g.y)/2-5),S},formatUrl:function(t,e){var i=t.trim();if(i)return e.securityLevel!=="loose"?(0,Uu.sanitizeUrl)(i):i},getStylesFromArray:Hc,generateId:b3,random:S2,memoize:W1,runFunc:function(t){for(var e,i=t.split("."),u=i.length-1,d=i[u],g=window,v=0;v<u;v++)if(!(g=g[i[v]]))return;for(var w=arguments.length,C=new Array(w>1?w-1:0),S=1;S<w;S++)C[S-1]=arguments[S];(e=g)[d].apply(e,C)},entityDecode:function(t){return $1=$1||document.createElement("div"),t=escape(t).replace(/%26/g,"&").replace(/%23/g,"#").replace(/%3B/g,";"),$1.innerHTML=t,unescape($1.textContent)},initIdGeneratior:function(){function t(u,d){(function(g,v){if(!(g instanceof v))throw new TypeError("Cannot call a class as a function")})(this,t),this.deterministic=u,this.seed=d,this.count=d?d.length:0}var e,i;return e=t,(i=[{key:"next",value:function(){return this.deterministic?this.count++:Date.now()}}])&&d3(e.prototype,i),Object.defineProperty(e,"prototype",{writable:!1}),t}(),directiveSanitizer:V1,sanitizeCss:w3};function M2(t){return M2=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},M2(t)}var x3,cd=Object.freeze(Kx),ta=Ji({},cd),dh=[],G1=Ji({},cd),Z1=function(t,e){for(var i=Ji({},t),u={},d=0;d<e.length;d++){var g=e[d];i6(g),u=Ji(u,g)}if(i=Ji(i,u),u.theme){var v=Ji({},x3),w=Ji(v.themeVariables||{},u.themeVariables);i.themeVariables=hh[i.theme].getThemeVariables(w)}return G1=i,i},k3=function(){return Ji({},ta)},ae=function(){return Ji({},G1)},i6=function t(e){Object.keys(ta.secure).forEach(function(i){e[ta.secure[i]]!==void 0&&(p.debug("Denied attempt to modify a secure key ".concat(ta.secure[i]),e[ta.secure[i]]),delete e[ta.secure[i]])}),Object.keys(e).forEach(function(i){i.indexOf("__")===0&&delete e[i]}),Object.keys(e).forEach(function(i){typeof e[i]=="string"&&(e[i].indexOf("<")>-1||e[i].indexOf(">")>-1||e[i].indexOf("url(data:")>-1)&&delete e[i],M2(e[i])==="object"&&t(e[i])})},T3=function(t){t.fontFamily&&(t.themeVariables&&t.themeVariables.fontFamily||(t.themeVariables={fontFamily:t.fontFamily})),dh.push(t),Z1(ta,dh)},X1=function(){Z1(ta,dh=[])};function D2(t,e){(e==null||e>t.length)&&(e=t.length);for(var i=0,u=new Array(e);i<e;i++)u[i]=t[i];return u}var N2="classid-",O2=[],Hi={},E3=0,K1=[],Q1=function(t){return dr.sanitizeText(t,ae())},ud=function(t){var e="",i=t;if(t.indexOf("~")>0){var u=t.split("~");i=u[0],e=dr.sanitizeText(u[1],ae())}return{className:i,type:e}},L2=function(t){var e=ud(t);Hi[e.className]===void 0&&(Hi[e.className]={id:e.className,type:e.type,cssClasses:[],methods:[],members:[],annotations:[],domId:N2+e.className+"-"+E3},E3++)},J1=function(t){for(var e=Object.keys(Hi),i=0;i<e.length;i++)if(Hi[e[i]].id===t)return Hi[e[i]].domId},S3=function(t,e){var i=ud(t).className,u=Hi[i];if(typeof e=="string"){var d=e.trim();d.startsWith("<<")&&d.endsWith(">>")?u.annotations.push(Q1(d.substring(2,d.length-2))):d.indexOf(")")>0?u.methods.push(Q1(d)):d&&u.members.push(Q1(d))}},B2=function(t,e){t.split(",").forEach(function(i){var u=i;i[0].match(/\d/)&&(u=N2+u),Hi[u]!==void 0&&Hi[u].cssClasses.push(e)})},C3=function(t,e,i){var u=ae(),d=t,g=J1(d);if(u.securityLevel==="loose"&&e!==void 0&&Hi[d]!==void 0){var v=[];if(typeof i=="string"){v=i.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(var w=0;w<v.length;w++){var C=v[w].trim();C.charAt(0)==='"'&&C.charAt(C.length-1)==='"'&&(C=C.substr(1,C.length-2)),v[w]=C}}v.length===0&&v.push(g),K1.push(function(){var S=document.querySelector('[id="'.concat(g,'"]'));S!==null&&S.addEventListener("click",function(){var L;Kn.runFunc.apply(Kn,[e].concat(function(j){if(Array.isArray(j))return D2(j)}(L=v)||function(j){if(typeof Symbol!="undefined"&&j[Symbol.iterator]!=null||j["@@iterator"]!=null)return Array.from(j)}(L)||function(j,P){if(j){if(typeof j=="string")return D2(j,P);var U=Object.prototype.toString.call(j).slice(8,-1);return U==="Object"&&j.constructor&&(U=j.constructor.name),U==="Map"||U==="Set"?Array.from(j):U==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(U)?D2(j,P):void 0}}(L)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()))},!1)})}},ph={AGGREGATION:0,EXTENSION:1,COMPOSITION:2,DEPENDENCY:3},I2=function(t){var e=Se(".mermaidTooltip");(e._groups||e)[0][0]===null&&(e=Se("body").append("div").attr("class","mermaidTooltip").style("opacity",0)),Se(t).select("svg").selectAll("g.node").on("mouseover",function(){var i=Se(this);if(i.attr("title")!==null){var u=this.getBoundingClientRect();e.transition().duration(200).style("opacity",".9"),e.html(i.attr("title")).style("left",window.scrollX+u.left+(u.right-u.left)/2+"px").style("top",window.scrollY+u.top-14+document.body.scrollTop+"px"),i.classed("hover",!0)}}).on("mouseout",function(){e.transition().duration(500).style("opacity",0),Se(this).classed("hover",!1)})};K1.push(I2);var R2="TB";const Do={parseDirective:function(t,e,i){da.parseDirective(this,t,e,i)},getConfig:function(){return ae().class},addClass:L2,bindFunctions:function(t){K1.forEach(function(e){e(t)})},clear:function(){O2=[],Hi={},(K1=[]).push(I2)},getClass:function(t){return Hi[t]},getClasses:function(){return Hi},addAnnotation:function(t,e){var i=ud(t).className;Hi[i].annotations.push(e)},getRelations:function(){return O2},addRelation:function(t){p.debug("Adding relation: "+JSON.stringify(t)),L2(t.id1),L2(t.id2),t.id1=ud(t.id1).className,t.id2=ud(t.id2).className,t.relationTitle1=dr.sanitizeText(t.relationTitle1.trim(),ae()),t.relationTitle2=dr.sanitizeText(t.relationTitle2.trim(),ae()),O2.push(t)},getDirection:function(){return R2},setDirection:function(t){R2=t},addMember:S3,addMembers:function(t,e){Array.isArray(e)&&(e.reverse(),e.forEach(function(i){return S3(t,i)}))},cleanupLabel:function(t){return t.substring(0,1)===":"?dr.sanitizeText(t.substr(1).trim(),ae()):Q1(t.trim())},lineType:{LINE:0,DOTTED_LINE:1},relationType:ph,setClickEvent:function(t,e,i){t.split(",").forEach(function(u){C3(u,e,i),Hi[u].haveCallback=!0}),B2(t,"clickable")},setCssClass:B2,setLink:function(t,e,i){var u=ae();t.split(",").forEach(function(d){var g=d;d[0].match(/\d/)&&(g=N2+g),Hi[g]!==void 0&&(Hi[g].link=Kn.formatUrl(e,u),Hi[g].linkTarget=typeof i=="string"?i:"_blank")}),B2(t,"clickable")},setTooltip:function(t,e){var i=ae();t.split(",").forEach(function(u){e!==void 0&&(Hi[u].tooltip=dr.sanitizeText(e,i))})},lookUpDomId:J1};var a6=o(681),ld=o.n(a6),F2=o(8282),Wi=o.n(F2),Gu=o(1362),A3=o.n(Gu),M3=0,tp=function(t){var e=t.match(/^(\+|-|~|#)?(\w+)(~\w+~|\[\])?\s+(\w+) *(\*|\$)?$/),i=t.match(/^([+|\-|~|#])?(\w+) *\( *(.*)\) *(\*|\$)? *(\w*[~|[\]]*\s*\w*~?)$/);return e&&!i?D3(e):i?o6(i):N3(t)},D3=function(t){var e="",i="";try{var u=t[1]?t[1].trim():"",d=t[2]?t[2].trim():"",g=t[3]?gh(t[3].trim()):"",v=t[4]?t[4].trim():"",w=t[5]?t[5].trim():"";i=u+d+g+" "+v,e=Y2(w)}catch{i=t}return{displayText:i,cssStyle:e}},o6=function(t){var e="",i="";try{var u=t[1]?t[1].trim():"",d=t[2]?t[2].trim():"",g=t[3]?gh(t[3].trim()):"",v=t[4]?t[4].trim():"";i=u+d+"("+g+")"+(t[5]?" : "+gh(t[5]).trim():""),e=Y2(v)}catch{i=t}return{displayText:i,cssStyle:e}},N3=function(t){var e="",i="",u="",d=t.indexOf("("),g=t.indexOf(")");if(d>1&&g>d&&g<=t.length){var v="",w="",C=t.substring(0,1);C.match(/\w/)?w=t.substring(0,d).trim():(C.match(/\+|-|~|#/)&&(v=C),w=t.substring(1,d).trim());var S=t.substring(d+1,g),L=t.substring(g+1,1);i=Y2(L),e=v+w+"("+gh(S.trim())+")",g<"".length&&(u=t.substring(g+2).trim())!==""&&(u=" : "+gh(u))}else e=gh(t);return{displayText:e,cssStyle:i}},P2=function(t,e,i,u){var d=tp(e),g=t.append("tspan").attr("x",u.padding).text(d.displayText);d.cssStyle!==""&&g.attr("style",d.cssStyle),i||g.attr("dy",u.textHeight)},gh=function t(e){var i=e;return e.indexOf("~")!=-1?t(i=(i=i.replace("~","<")).replace("~",">")):i},Y2=function(t){switch(t){case"*":return"font-style:italic;";case"$":return"text-decoration:underline;";default:return""}};const ep=function(t,e,i){p.info("Rendering class "+e);var u,d=e.id,g={id:d,label:e.id,width:0,height:0},v=t.append("g").attr("id",J1(d)).attr("class","classGroup");u=e.link?v.append("svg:a").attr("xlink:href",e.link).attr("target",e.linkTarget).append("text").attr("y",i.textHeight+i.padding).attr("x",0):v.append("text").attr("y",i.textHeight+i.padding).attr("x",0);var w=!0;e.annotations.forEach(function(lt){var Wt=u.append("tspan").text("\xAB"+lt+"\xBB");w||Wt.attr("dy",i.textHeight),w=!1});var C=e.id;e.type!==void 0&&e.type!==""&&(C+="<"+e.type+">");var S=u.append("tspan").text(C).attr("class","title");w||S.attr("dy",i.textHeight);var L=u.node().getBBox().height,j=v.append("line").attr("x1",0).attr("y1",i.padding+L+i.dividerMargin/2).attr("y2",i.padding+L+i.dividerMargin/2),P=v.append("text").attr("x",i.padding).attr("y",L+i.dividerMargin+i.textHeight).attr("fill","white").attr("class","classText");w=!0,e.members.forEach(function(lt){P2(P,lt,w,i),w=!1});var U=P.node().getBBox(),ot=v.append("line").attr("x1",0).attr("y1",i.padding+L+i.dividerMargin+U.height).attr("y2",i.padding+L+i.dividerMargin+U.height),vt=v.append("text").attr("x",i.padding).attr("y",L+2*i.dividerMargin+U.height+i.textHeight).attr("fill","white").attr("class","classText");w=!0,e.methods.forEach(function(lt){P2(vt,lt,w,i),w=!1});var bt=v.node().getBBox(),kt=" ";e.cssClasses.length>0&&(kt+=e.cssClasses.join(" "));var _t=v.insert("rect",":first-child").attr("x",0).attr("y",0).attr("width",bt.width+2*i.padding).attr("height",bt.height+i.padding+.5*i.dividerMargin).attr("class",kt).node().getBBox().width;return u.node().childNodes.forEach(function(lt){lt.setAttribute("x",(_t-lt.getBBox().width)/2)}),e.tooltip&&u.insert("title").text(e.tooltip),j.attr("x2",_t),ot.attr("x2",_t),g.width=_t,g.height=bt.height+i.padding+.5*i.dividerMargin,g};Gu.parser.yy=Do;var Ss={},hd={dividerMargin:10,padding:5,textHeight:10},fd=function(t){var e=Object.entries(Ss).find(function(i){return i[1].label===t});if(e)return e[0]};const j2=function(t){Object.keys(t).forEach(function(e){hd[e]=t[e]})},z2=function(t,e){Ss={},Gu.parser.yy.clear(),Gu.parser.parse(t),p.info("Rendering diagram "+t);var i,u=Se("[id='".concat(e,"']"));u.attr("xmlns:xlink","http://www.w3.org/1999/xlink"),(i=u).append("defs").append("marker").attr("id","extensionStart").attr("class","extension").attr("refX",0).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 1,7 L18,13 V 1 Z"),i.append("defs").append("marker").attr("id","extensionEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 1,1 V 13 L18,7 Z"),i.append("defs").append("marker").attr("id","compositionStart").attr("class","extension").attr("refX",0).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),i.append("defs").append("marker").attr("id","compositionEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),i.append("defs").append("marker").attr("id","aggregationStart").attr("class","extension").attr("refX",0).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),i.append("defs").append("marker").attr("id","aggregationEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),i.append("defs").append("marker").attr("id","dependencyStart").attr("class","extension").attr("refX",0).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 5,7 L9,13 L1,7 L9,1 Z"),i.append("defs").append("marker").attr("id","dependencyEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L14,7 L9,1 Z");var d=new(Wi()).Graph({multigraph:!0});d.setGraph({isMultiGraph:!0}),d.setDefaultEdgeLabel(function(){return{}});for(var g=Do.getClasses(),v=Object.keys(g),w=0;w<v.length;w++){var C=g[v[w]],S=ep(u,C,hd);Ss[S.id]=S,d.setNode(S.id,S),p.info("Org height: "+S.height)}Do.getRelations().forEach(function(ot){p.info("tjoho"+fd(ot.id1)+fd(ot.id2)+JSON.stringify(ot)),d.setEdge(fd(ot.id1),fd(ot.id2),{relation:ot},ot.title||"DEFAULT")}),ld().layout(d),d.nodes().forEach(function(ot){ot!==void 0&&d.node(ot)!==void 0&&(p.debug("Node "+ot+": "+JSON.stringify(d.node(ot))),Se("#"+J1(ot)).attr("transform","translate("+(d.node(ot).x-d.node(ot).width/2)+","+(d.node(ot).y-d.node(ot).height/2)+" )"))}),d.edges().forEach(function(ot){ot!==void 0&&d.edge(ot)!==void 0&&(p.debug("Edge "+ot.v+" -> "+ot.w+": "+JSON.stringify(d.edge(ot))),function(vt,bt,kt,_t){var lt=function(fn){switch(fn){case ph.AGGREGATION:return"aggregation";case ph.EXTENSION:return"extension";case ph.COMPOSITION:return"composition";case ph.DEPENDENCY:return"dependency"}};bt.points=bt.points.filter(function(fn){return!Number.isNaN(fn.y)});var Wt,Ot,gt=bt.points,Lt=Co().x(function(fn){return fn.x}).y(function(fn){return fn.y}).curve(jr),ee=vt.append("path").attr("d",Lt(gt)).attr("id","edge"+M3).attr("class","relation"),At="";_t.arrowMarkerAbsolute&&(At=(At=(At=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search).replace(/\(/g,"\\(")).replace(/\)/g,"\\)")),kt.relation.lineType==1&&ee.attr("class","relation dashed-line"),kt.relation.type1!=="none"&&ee.attr("marker-start","url("+At+"#"+lt(kt.relation.type1)+"Start)"),kt.relation.type2!=="none"&&ee.attr("marker-end","url("+At+"#"+lt(kt.relation.type2)+"End)");var Tt,zt,Mt,Jt,yt=bt.points.length,ce=Kn.calcLabelPosition(bt.points);if(Wt=ce.x,Ot=ce.y,yt%2!=0&&yt>1){var ve=Kn.calcCardinalityPosition(kt.relation.type1!=="none",bt.points,bt.points[0]),me=Kn.calcCardinalityPosition(kt.relation.type2!=="none",bt.points,bt.points[yt-1]);p.debug("cardinality_1_point "+JSON.stringify(ve)),p.debug("cardinality_2_point "+JSON.stringify(me)),Tt=ve.x,zt=ve.y,Mt=me.x,Jt=me.y}if(kt.title!==void 0){var Me=vt.append("g").attr("class","classLabel"),$e=Me.append("text").attr("class","label").attr("x",Wt).attr("y",Ot).attr("fill","red").attr("text-anchor","middle").text(kt.title);window.label=$e;var ze=$e.node().getBBox();Me.insert("rect",":first-child").attr("class","box").attr("x",ze.x-_t.padding/2).attr("y",ze.y-_t.padding/2).attr("width",ze.width+_t.padding).attr("height",ze.height+_t.padding)}p.info("Rendering relation "+JSON.stringify(kt)),kt.relationTitle1!==void 0&&kt.relationTitle1!=="none"&&vt.append("g").attr("class","cardinality").append("text").attr("class","type1").attr("x",Tt).attr("y",zt).attr("fill","black").attr("font-size","6").text(kt.relationTitle1),kt.relationTitle2!==void 0&&kt.relationTitle2!=="none"&&vt.append("g").attr("class","cardinality").append("text").attr("class","type2").attr("x",Mt).attr("y",Jt).attr("fill","black").attr("font-size","6").text(kt.relationTitle2),M3++}(u,d.edge(ot),d.edge(ot).relation,hd))});var L=u.node().getBBox(),j=L.width+40,P=L.height+40;go(u,P,j,hd.useMaxWidth);var U="".concat(L.x-20," ").concat(L.y-20," ").concat(j," ").concat(P);p.debug("viewBox ".concat(U)),u.attr("viewBox",U)};var s6={extension:function(t,e,i){p.trace("Making markers for ",i),t.append("defs").append("marker").attr("id",e+"-extensionStart").attr("class","marker extension "+e).attr("refX",0).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 1,7 L18,13 V 1 Z"),t.append("defs").append("marker").attr("id",e+"-extensionEnd").attr("class","marker extension "+e).attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 1,1 V 13 L18,7 Z")},composition:function(t,e){t.append("defs").append("marker").attr("id",e+"-compositionStart").attr("class","marker composition "+e).attr("refX",0).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),t.append("defs").append("marker").attr("id",e+"-compositionEnd").attr("class","marker composition "+e).attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z")},aggregation:function(t,e){t.append("defs").append("marker").attr("id",e+"-aggregationStart").attr("class","marker aggregation "+e).attr("refX",0).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),t.append("defs").append("marker").attr("id",e+"-aggregationEnd").attr("class","marker aggregation "+e).attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z")},dependency:function(t,e){t.append("defs").append("marker").attr("id",e+"-dependencyStart").attr("class","marker dependency "+e).attr("refX",0).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 5,7 L9,13 L1,7 L9,1 Z"),t.append("defs").append("marker").attr("id",e+"-dependencyEnd").attr("class","marker dependency "+e).attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L14,7 L9,1 Z")},point:function(t,e){t.append("marker").attr("id",e+"-pointEnd").attr("class","marker "+e).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 z").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),t.append("marker").attr("id",e+"-pointStart").attr("class","marker "+e).attr("viewBox","0 0 10 10").attr("refX",0).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 0 5 L 10 10 L 10 0 z").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0")},circle:function(t,e){t.append("marker").attr("id",e+"-circleEnd").attr("class","marker "+e).attr("viewBox","0 0 10 10").attr("refX",11).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),t.append("marker").attr("id",e+"-circleStart").attr("class","marker "+e).attr("viewBox","0 0 10 10").attr("refX",-1).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0")},cross:function(t,e){t.append("marker").attr("id",e+"-crossEnd").attr("class","marker cross "+e).attr("viewBox","0 0 11 11").attr("refX",12).attr("refY",5.2).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("path").attr("d","M 1,1 l 9,9 M 10,1 l -9,9").attr("class","arrowMarkerPath").style("stroke-width",2).style("stroke-dasharray","1,0"),t.append("marker").attr("id",e+"-crossStart").attr("class","marker cross "+e).attr("viewBox","0 0 11 11").attr("refX",-1).attr("refY",5.2).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("path").attr("d","M 1,1 l 9,9 M 10,1 l -9,9").attr("class","arrowMarkerPath").style("stroke-width",2).style("stroke-dasharray","1,0")},barb:function(t,e){t.append("defs").append("marker").attr("id",e+"-barbEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",14).attr("markerUnits","strokeWidth").attr("orient","auto").append("path").attr("d","M 19,7 L9,13 L14,7 L9,1 Z")}};const O3=function(t,e,i,u){e.forEach(function(d){s6[d](t,i,u)})};function yh(t){return yh=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},yh(t)}const Ra=function(t,e,i,u){var d,g,v,w,C,S,L=t||"";if(yh(L)==="object"&&(L=L[0]),Ni(ae().flowchart.htmlLabels))return L=L.replace(/\\n|\n/g,"<br />"),p.info("vertexText"+L),d={isNode:u,label:L.replace(/fa[lrsb]?:fa-[\w-]+/g,function(vt){return"<i class='".concat(vt.replace(":"," "),"'></i>")}),labelStyle:e.replace("fill:","color:")},v=Se(document.createElementNS("http://www.w3.org/2000/svg","foreignObject")),w=v.append("xhtml:div"),C=d.label,S=d.isNode?"nodeLabel":"edgeLabel",w.html('<span class="'+S+'" '+(d.labelStyle?'style="'+d.labelStyle+'"':"")+">"+C+"</span>"),(g=d.labelStyle)&&w.attr("style",g),w.style("display","inline-block"),w.style("white-space","nowrap"),w.attr("xmlns","http://www.w3.org/1999/xhtml"),v.node();var j=document.createElementNS("http://www.w3.org/2000/svg","text");j.setAttribute("style",e.replace("color:","fill:"));var P=[];P=typeof L=="string"?L.split(/\\n|\n|<br\s*\/?>/gi):Array.isArray(L)?L:[];for(var U=0;U<P.length;U++){var ot=document.createElementNS("http://www.w3.org/2000/svg","tspan");ot.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),ot.setAttribute("dy","1em"),ot.setAttribute("x","0"),i?ot.setAttribute("class","title-row"):ot.setAttribute("class","row"),ot.textContent=P[U].trim(),j.appendChild(ot)}return j};var Fa=function(t,e,i,u){var d;d=i||"node default";var g=t.insert("g").attr("class",d).attr("id",e.domId||e.id),v=g.insert("g").attr("class","label").attr("style",e.labelStyle),w=typeof e.labelText=="string"?e.labelText:e.labelText[0],C=v.node().appendChild(Ra($u(t7(w),ae()),e.labelStyle,!1,u)),S=C.getBBox();if(Ni(ae().flowchart.htmlLabels)){var L=C.children[0],j=Se(C);S=L.getBoundingClientRect(),j.attr("width",S.width),j.attr("height",S.height)}var P=e.padding/2;return v.attr("transform","translate("+-S.width/2+", "+-S.height/2+")"),{shapeSvg:g,bbox:S,halfPadding:P,label:v}},Oi=function(t,e){var i=e.node().getBBox();t.width=i.width,t.height=i.height};function rs(t,e,i,u){return t.insert("polygon",":first-child").attr("points",u.map(function(d){return d.x+","+d.y}).join(" ")).attr("class","label-container").attr("transform","translate("+-e/2+","+i/2+")")}var vr={},Ln={},L3={},np=function(t,e){return p.trace("In isDecendant",e," ",t," = ",Ln[e].indexOf(t)>=0),Ln[e].indexOf(t)>=0},c6=function t(e,i,u,d){p.warn("Copying children of ",e,"root",d,"data",i.node(e),d);var g=i.children(e)||[];e!==d&&g.push(e),p.warn("Copying (nodes) clusterId",e,"nodes",g),g.forEach(function(v){if(i.children(v).length>0)t(v,i,u,d);else{var w=i.node(v);p.info("cp ",v," to ",d," with parent ",e),u.setNode(v,w),d!==i.parent(v)&&(p.warn("Setting parent",v,i.parent(v)),u.setParent(v,i.parent(v))),e!==d&&v!==e?(p.debug("Setting parent",v,e),u.setParent(v,e)):(p.info("In copy ",e,"root",d,"data",i.node(e),d),p.debug("Not Setting parent for node=",v,"cluster!==rootId",e!==d,"node!==clusterId",v!==e));var C=i.edges(v);p.debug("Copying Edges",C),C.forEach(function(S){p.info("Edge",S);var L=i.edge(S.v,S.w,S.name);p.info("Edge data",L,d);try{(function(j,P){return p.info("Decendants of ",P," is ",Ln[P]),p.info("Edge is ",j),j.v!==P&&j.w!==P&&(Ln[P]?(p.info("Here "),Ln[P].indexOf(j.v)>=0||!!np(j.v,P)||!!np(j.w,P)||Ln[P].indexOf(j.w)>=0):(p.debug("Tilt, ",P,",not in decendants"),!1))})(S,d)?(p.info("Copying as ",S.v,S.w,L,S.name),u.setEdge(S.v,S.w,L,S.name),p.info("newGraph edges ",u.edges(),u.edge(u.edges()[0]))):p.info("Skipping copy of edge ",S.v,"-->",S.w," rootId: ",d," clusterId:",e)}catch(j){p.error(j)}})}p.debug("Removing node",v),i.removeNode(v)})},u6=function t(e,i){for(var u=i.children(e),d=[].concat(u),g=0;g<u.length;g++)L3[u[g]]=e,d=d.concat(t(u[g],i));return d},rp=function t(e,i){p.trace("Searching",e);var u=i.children(e);if(p.trace("Searching children of id ",e,u),u.length<1)return p.trace("This is a valid node",e),e;for(var d=0;d<u.length;d++){var g=t(u[d],i);if(g)return p.trace("Found replacement for",e," => ",g),g}},B3=function(t){return vr[t]&&vr[t].externalConnections&&vr[t]?vr[t].id:t},l6=function(t,e){!t||e>10?p.debug("Opting out, no graph "):(p.debug("Opting in, graph "),t.nodes().forEach(function(i){t.children(i).length>0&&(p.warn("Cluster identified",i," Replacement id in edges: ",rp(i,t)),Ln[i]=u6(i,t),vr[i]={id:rp(i,t),clusterData:t.node(i)})}),t.nodes().forEach(function(i){var u=t.children(i),d=t.edges();u.length>0?(p.debug("Cluster identified",i,Ln),d.forEach(function(g){g.v!==i&&g.w!==i&&np(g.v,i)^np(g.w,i)&&(p.warn("Edge: ",g," leaves cluster ",i),p.warn("Decendants of XXX ",i,": ",Ln[i]),vr[i].externalConnections=!0)})):p.debug("Not a cluster ",i,Ln)}),t.edges().forEach(function(i){var u=t.edge(i);p.warn("Edge "+i.v+" -> "+i.w+": "+JSON.stringify(i)),p.warn("Edge "+i.v+" -> "+i.w+": "+JSON.stringify(t.edge(i)));var d=i.v,g=i.w;p.warn("Fix XXX",vr,"ids:",i.v,i.w,"Translateing: ",vr[i.v]," --- ",vr[i.w]),(vr[i.v]||vr[i.w])&&(p.warn("Fixing and trixing - removing XXX",i.v,i.w,i.name),d=B3(i.v),g=B3(i.w),t.removeEdge(i.v,i.w,i.name),d!==i.v&&(u.fromCluster=i.v),g!==i.w&&(u.toCluster=i.w),p.warn("Fix Replacing with XXX",d,g,i.name),t.setEdge(d,g,u,i.name))}),p.warn("Adjusted Graph",Wi().json.write(t)),h6(t,0),p.trace(vr))},h6=function t(e,i){if(p.warn("extractor - ",i,Wi().json.write(e),e.children("D")),i>10)p.error("Bailing out");else{for(var u=e.nodes(),d=!1,g=0;g<u.length;g++){var v=u[g],w=e.children(v);d=d||w.length>0}if(d){p.debug("Nodes = ",u,i);for(var C=0;C<u.length;C++){var S=u[C];if(p.debug("Extracting node",S,vr,vr[S]&&!vr[S].externalConnections,!e.parent(S),e.node(S),e.children("D")," Depth ",i),vr[S])if(!vr[S].externalConnections&&e.children(S)&&e.children(S).length>0){p.warn("Cluster without external connections, without a parent and with children",S,i);var L=e.graph().rankdir==="TB"?"LR":"TB";vr[S]&&vr[S].clusterData&&vr[S].clusterData.dir&&(L=vr[S].clusterData.dir,p.warn("Fixing dir",vr[S].clusterData.dir,L));var j=new(Wi()).Graph({multigraph:!0,compound:!0}).setGraph({rankdir:L,nodesep:50,ranksep:50,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}});p.warn("Old graph before copy",Wi().json.write(e)),c6(S,e,j,S),e.setNode(S,{clusterNode:!0,id:S,clusterData:vr[S].clusterData,labelText:vr[S].labelText,graph:j}),p.warn("New graph after copy node: (",S,")",Wi().json.write(j)),p.debug("Old graph after copy",Wi().json.write(e))}else p.warn("Cluster ** ",S," **not meeting the criteria !externalConnections:",!vr[S].externalConnections," no parent: ",!e.parent(S)," children ",e.children(S)&&e.children(S).length>0,e.children("D"),i),p.debug(vr);else p.debug("Not a cluster",S,i)}u=e.nodes(),p.warn("New list of nodes",u);for(var P=0;P<u.length;P++){var U=u[P],ot=e.node(U);p.warn(" Now next level",U,ot),ot.clusterNode&&t(ot.graph,i+1)}}else p.debug("Done, no node has children",e.nodes())}},f6=function t(e,i){if(i.length===0)return[];var u=Object.assign(i);return i.forEach(function(d){var g=e.children(d),v=t(e,g);u=u.concat(v)}),u},d6=function(t){return f6(t,t.children())},Wr=o(3841);const I3=function(t,e,i,u){var d=t.x,g=t.y,v=d-u.x,w=g-u.y,C=Math.sqrt(e*e*w*w+i*i*v*v),S=Math.abs(e*i*v/C);u.x<d&&(S=-S);var L=Math.abs(e*i*w/C);return u.y<g&&(L=-L),{x:d+S,y:g+L}};function R3(t,e){return t*e>0}const F3=function(t,e,i,u){var d,g,v,w,C,S,L,j,P,U,ot,vt,bt;if(d=e.y-t.y,v=t.x-e.x,C=e.x*t.y-t.x*e.y,P=d*i.x+v*i.y+C,U=d*u.x+v*u.y+C,!(P!==0&&U!==0&&R3(P,U)||(g=u.y-i.y,w=i.x-u.x,S=u.x*i.y-i.x*u.y,L=g*t.x+w*t.y+S,j=g*e.x+w*e.y+S,L!==0&&j!==0&&R3(L,j)||(ot=d*w-g*v)==0)))return vt=Math.abs(ot/2),{x:(bt=v*S-w*C)<0?(bt-vt)/ot:(bt+vt)/ot,y:(bt=g*C-d*S)<0?(bt-vt)/ot:(bt+vt)/ot}},dd=function(t,e){var i,u,d=t.x,g=t.y,v=e.x-d,w=e.y-g,C=t.width/2,S=t.height/2;return Math.abs(w)*C>Math.abs(v)*S?(w<0&&(S=-S),i=w===0?0:S*v/w,u=S):(v<0&&(C=-C),i=C,u=v===0?0:C*w/v),{x:d+i,y:g+u}},pd=(o.n(Wr)(),function(t,e,i){return I3(t,e,e,i)}),ac=function(t,e,i){var u=t.x,d=t.y,g=[],v=Number.POSITIVE_INFINITY,w=Number.POSITIVE_INFINITY;typeof e.forEach=="function"?e.forEach(function(ot){v=Math.min(v,ot.x),w=Math.min(w,ot.y)}):(v=Math.min(v,e.x),w=Math.min(w,e.y));for(var C=u-t.width/2-v,S=d-t.height/2-w,L=0;L<e.length;L++){var j=e[L],P=e[L<e.length-1?L+1:0],U=F3(t,i,{x:C+j.x,y:S+j.y},{x:C+P.x,y:S+P.y});U&&g.push(U)}return g.length?(g.length>1&&g.sort(function(ot,vt){var bt=ot.x-i.x,kt=ot.y-i.y,_t=Math.sqrt(bt*bt+kt*kt),lt=vt.x-i.x,Wt=vt.y-i.y,Ot=Math.sqrt(lt*lt+Wt*Wt);return _t<Ot?-1:_t===Ot?0:1}),g[0]):t},Wc=dd;function ip(t){return ip=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ip(t)}var U2=function(t,e,i){var u=t.insert("g").attr("class","node default").attr("id",e.domId||e.id),d=70,g=10;i==="LR"&&(d=10,g=70);var v=u.append("rect").attr("x",-1*d/2).attr("y",-1*g/2).attr("width",d).attr("height",g).attr("class","fork-join");return Oi(e,v),e.height=e.height+e.padding/2,e.width=e.width+e.padding/2,e.intersect=function(w){return Wc(e,w)},u},P3={question:function(t,e){var i=Fa(t,e,void 0,!0),u=i.shapeSvg,d=i.bbox,g=d.width+e.padding+(d.height+e.padding),v=[{x:g/2,y:0},{x:g,y:-g/2},{x:g/2,y:-g},{x:0,y:-g/2}];p.info("Question main (Circle)");var w=rs(u,g,g,v);return w.attr("style",e.style),Oi(e,w),e.intersect=function(C){return p.warn("Intersect called"),ac(e,v,C)},u},rect:function(t,e){var i=Fa(t,e,"node "+e.classes,!0),u=i.shapeSvg,d=i.bbox,g=i.halfPadding;p.trace("Classes = ",e.classes);var v=u.insert("rect",":first-child"),w=d.width+e.padding,C=d.height+e.padding;if(v.attr("class","basic label-container").attr("style",e.style).attr("rx",e.rx).attr("ry",e.ry).attr("x",-d.width/2-g).attr("y",-d.height/2-g).attr("width",w).attr("height",C),e.props){var S=new Set(Object.keys(e.props));e.props.borders&&(function(L,j,P,U){var ot=[],vt=function(kt){ot.push(kt),ot.push(0)},bt=function(kt){ot.push(0),ot.push(kt)};j.includes("t")?(p.debug("add top border"),vt(P)):bt(P),j.includes("r")?(p.debug("add right border"),vt(U)):bt(U),j.includes("b")?(p.debug("add bottom border"),vt(P)):bt(P),j.includes("l")?(p.debug("add left border"),vt(U)):bt(U),L.attr("stroke-dasharray",ot.join(" "))}(v,e.props.borders,w,C),S.delete("borders")),S.forEach(function(L){p.warn("Unknown node property ".concat(L))})}return Oi(e,v),e.intersect=function(L){return Wc(e,L)},u},rectWithTitle:function(t,e){var i;i=e.classes?"node "+e.classes:"node default";var u,d=t.insert("g").attr("class",i).attr("id",e.domId||e.id),g=d.insert("rect",":first-child"),v=d.insert("line"),w=d.insert("g").attr("class","label"),C=e.labelText.flat?e.labelText.flat():e.labelText;u=ip(C)==="object"?C[0]:C,p.info("Label text abc79",u,C,ip(C)==="object");var S=w.node().appendChild(Ra(u,e.labelStyle,!0,!0)),L={width:0,height:0};if(Ni(ae().flowchart.htmlLabels)){var j=S.children[0],P=Se(S);L=j.getBoundingClientRect(),P.attr("width",L.width),P.attr("height",L.height)}p.info("Text 2",C);var U=C.slice(1,C.length),ot=S.getBBox(),vt=w.node().appendChild(Ra(U.join?U.join("<br/>"):U,e.labelStyle,!0,!0));if(Ni(ae().flowchart.htmlLabels)){var bt=vt.children[0],kt=Se(vt);L=bt.getBoundingClientRect(),kt.attr("width",L.width),kt.attr("height",L.height)}var _t=e.padding/2;return Se(vt).attr("transform","translate( "+(L.width>ot.width?0:(ot.width-L.width)/2)+", "+(ot.height+_t+5)+")"),Se(S).attr("transform","translate( "+(L.width<ot.width?0:-(ot.width-L.width)/2)+", 0)"),L=w.node().getBBox(),w.attr("transform","translate("+-L.width/2+", "+(-L.height/2-_t+3)+")"),g.attr("class","outer title-state").attr("x",-L.width/2-_t).attr("y",-L.height/2-_t).attr("width",L.width+e.padding).attr("height",L.height+e.padding),v.attr("class","divider").attr("x1",-L.width/2-_t).attr("x2",L.width/2+_t).attr("y1",-L.height/2-_t+ot.height+_t).attr("y2",-L.height/2-_t+ot.height+_t),Oi(e,g),e.intersect=function(lt){return Wc(e,lt)},d},choice:function(t,e){var i=t.insert("g").attr("class","node default").attr("id",e.domId||e.id);return i.insert("polygon",":first-child").attr("points",[{x:0,y:14},{x:14,y:0},{x:0,y:-14},{x:-14,y:0}].map(function(u){return u.x+","+u.y}).join(" ")).attr("class","state-start").attr("r",7).attr("width",28).attr("height",28),e.width=28,e.height=28,e.intersect=function(u){return pd(e,14,u)},i},circle:function(t,e){var i=Fa(t,e,void 0,!0),u=i.shapeSvg,d=i.bbox,g=i.halfPadding,v=u.insert("circle",":first-child");return v.attr("style",e.style).attr("rx",e.rx).attr("ry",e.ry).attr("r",d.width/2+g).attr("width",d.width+e.padding).attr("height",d.height+e.padding),p.info("Circle main"),Oi(e,v),e.intersect=function(w){return p.info("Circle intersect",e,d.width/2+g,w),pd(e,d.width/2+g,w)},u},stadium:function(t,e){var i=Fa(t,e,void 0,!0),u=i.shapeSvg,d=i.bbox,g=d.height+e.padding,v=d.width+g/4+e.padding,w=u.insert("rect",":first-child").attr("style",e.style).attr("rx",g/2).attr("ry",g/2).attr("x",-v/2).attr("y",-g/2).attr("width",v).attr("height",g);return Oi(e,w),e.intersect=function(C){return Wc(e,C)},u},hexagon:function(t,e){var i=Fa(t,e,void 0,!0),u=i.shapeSvg,d=i.bbox,g=d.height+e.padding,v=g/4,w=d.width+2*v+e.padding,C=[{x:v,y:0},{x:w-v,y:0},{x:w,y:-g/2},{x:w-v,y:-g},{x:v,y:-g},{x:0,y:-g/2}],S=rs(u,w,g,C);return S.attr("style",e.style),Oi(e,S),e.intersect=function(L){return ac(e,C,L)},u},rect_left_inv_arrow:function(t,e){var i=Fa(t,e,void 0,!0),u=i.shapeSvg,d=i.bbox,g=d.width+e.padding,v=d.height+e.padding,w=[{x:-v/2,y:0},{x:g,y:0},{x:g,y:-v},{x:-v/2,y:-v},{x:0,y:-v/2}];return rs(u,g,v,w).attr("style",e.style),e.width=g+v,e.height=v,e.intersect=function(C){return ac(e,w,C)},u},lean_right:function(t,e){var i=Fa(t,e,void 0,!0),u=i.shapeSvg,d=i.bbox,g=d.width+e.padding,v=d.height+e.padding,w=[{x:-2*v/6,y:0},{x:g-v/6,y:0},{x:g+2*v/6,y:-v},{x:v/6,y:-v}],C=rs(u,g,v,w);return C.attr("style",e.style),Oi(e,C),e.intersect=function(S){return ac(e,w,S)},u},lean_left:function(t,e){var i=Fa(t,e,void 0,!0),u=i.shapeSvg,d=i.bbox,g=d.width+e.padding,v=d.height+e.padding,w=[{x:2*v/6,y:0},{x:g+v/6,y:0},{x:g-2*v/6,y:-v},{x:-v/6,y:-v}],C=rs(u,g,v,w);return C.attr("style",e.style),Oi(e,C),e.intersect=function(S){return ac(e,w,S)},u},trapezoid:function(t,e){var i=Fa(t,e,void 0,!0),u=i.shapeSvg,d=i.bbox,g=d.width+e.padding,v=d.height+e.padding,w=[{x:-2*v/6,y:0},{x:g+2*v/6,y:0},{x:g-v/6,y:-v},{x:v/6,y:-v}],C=rs(u,g,v,w);return C.attr("style",e.style),Oi(e,C),e.intersect=function(S){return ac(e,w,S)},u},inv_trapezoid:function(t,e){var i=Fa(t,e,void 0,!0),u=i.shapeSvg,d=i.bbox,g=d.width+e.padding,v=d.height+e.padding,w=[{x:v/6,y:0},{x:g-v/6,y:0},{x:g+2*v/6,y:-v},{x:-2*v/6,y:-v}],C=rs(u,g,v,w);return C.attr("style",e.style),Oi(e,C),e.intersect=function(S){return ac(e,w,S)},u},rect_right_inv_arrow:function(t,e){var i=Fa(t,e,void 0,!0),u=i.shapeSvg,d=i.bbox,g=d.width+e.padding,v=d.height+e.padding,w=[{x:0,y:0},{x:g+v/2,y:0},{x:g,y:-v/2},{x:g+v/2,y:-v},{x:0,y:-v}],C=rs(u,g,v,w);return C.attr("style",e.style),Oi(e,C),e.intersect=function(S){return ac(e,w,S)},u},cylinder:function(t,e){var i=Fa(t,e,void 0,!0),u=i.shapeSvg,d=i.bbox,g=d.width+e.padding,v=g/2,w=v/(2.5+g/50),C=d.height+w+e.padding,S="M 0,"+w+" a "+v+","+w+" 0,0,0 "+g+" 0 a "+v+","+w+" 0,0,0 "+-g+" 0 l 0,"+C+" a "+v+","+w+" 0,0,0 "+g+" 0 l 0,"+-C,L=u.attr("label-offset-y",w).insert("path",":first-child").attr("style",e.style).attr("d",S).attr("transform","translate("+-g/2+","+-(C/2+w)+")");return Oi(e,L),e.intersect=function(j){var P=Wc(e,j),U=P.x-e.x;if(v!=0&&(Math.abs(U)<e.width/2||Math.abs(U)==e.width/2&&Math.abs(P.y-e.y)>e.height/2-w)){var ot=w*w*(1-U*U/(v*v));ot!=0&&(ot=Math.sqrt(ot)),ot=w-ot,j.y-e.y>0&&(ot=-ot),P.y+=ot}return P},u},start:function(t,e){var i=t.insert("g").attr("class","node default").attr("id",e.domId||e.id),u=i.insert("circle",":first-child");return u.attr("class","state-start").attr("r",7).attr("width",14).attr("height",14),Oi(e,u),e.intersect=function(d){return pd(e,7,d)},i},end:function(t,e){var i=t.insert("g").attr("class","node default").attr("id",e.domId||e.id),u=i.insert("circle",":first-child"),d=i.insert("circle",":first-child");return d.attr("class","state-start").attr("r",7).attr("width",14).attr("height",14),u.attr("class","state-end").attr("r",5).attr("width",10).attr("height",10),Oi(e,d),e.intersect=function(g){return pd(e,7,g)},i},note:function(t,e){var i=Fa(t,e,"node "+e.classes,!0),u=i.shapeSvg,d=i.bbox,g=i.halfPadding;p.info("Classes = ",e.classes);var v=u.insert("rect",":first-child");return v.attr("rx",e.rx).attr("ry",e.ry).attr("x",-d.width/2-g).attr("y",-d.height/2-g).attr("width",d.width+e.padding).attr("height",d.height+e.padding),Oi(e,v),e.intersect=function(w){return Wc(e,w)},u},subroutine:function(t,e){var i=Fa(t,e,void 0,!0),u=i.shapeSvg,d=i.bbox,g=d.width+e.padding,v=d.height+e.padding,w=[{x:0,y:0},{x:g,y:0},{x:g,y:-v},{x:0,y:-v},{x:0,y:0},{x:-8,y:0},{x:g+8,y:0},{x:g+8,y:-v},{x:-8,y:-v},{x:-8,y:0}],C=rs(u,g,v,w);return C.attr("style",e.style),Oi(e,C),e.intersect=function(S){return ac(e,w,S)},u},fork:U2,join:U2,class_box:function(t,e){var i,u=e.padding/2;i=e.classes?"node "+e.classes:"node default";var d=t.insert("g").attr("class",i).attr("id",e.domId||e.id),g=d.insert("rect",":first-child"),v=d.insert("line"),w=d.insert("line"),C=0,S=4,L=d.insert("g").attr("class","label"),j=0,P=e.classData.annotations&&e.classData.annotations[0],U=e.classData.annotations[0]?"\xAB"+e.classData.annotations[0]+"\xBB":"",ot=L.node().appendChild(Ra(U,e.labelStyle,!0,!0)),vt=ot.getBBox();if(Ni(ae().flowchart.htmlLabels)){var bt=ot.children[0],kt=Se(ot);vt=bt.getBoundingClientRect(),kt.attr("width",vt.width),kt.attr("height",vt.height)}e.classData.annotations[0]&&(S+=vt.height+4,C+=vt.width);var _t=e.classData.id;e.classData.type!==void 0&&e.classData.type!==""&&(ae().flowchart.htmlLabels?_t+="<"+e.classData.type+">":_t+="<"+e.classData.type+">");var lt=L.node().appendChild(Ra(_t,e.labelStyle,!0,!0));Se(lt).attr("class","classTitle");var Wt=lt.getBBox();if(Ni(ae().flowchart.htmlLabels)){var Ot=lt.children[0],gt=Se(lt);Wt=Ot.getBoundingClientRect(),gt.attr("width",Wt.width),gt.attr("height",Wt.height)}S+=Wt.height+4,Wt.width>C&&(C=Wt.width);var Lt=[];e.classData.members.forEach(function(zt){var Mt=tp(zt),Jt=Mt.displayText;ae().flowchart.htmlLabels&&(Jt=Jt.replace(/</g,"<").replace(/>/g,">"));var yt=L.node().appendChild(Ra(Jt,Mt.cssStyle?Mt.cssStyle:e.labelStyle,!0,!0)),ce=yt.getBBox();if(Ni(ae().flowchart.htmlLabels)){var ve=yt.children[0],me=Se(yt);ce=ve.getBoundingClientRect(),me.attr("width",ce.width),me.attr("height",ce.height)}ce.width>C&&(C=ce.width),S+=ce.height+4,Lt.push(yt)}),S+=8;var ee=[];if(e.classData.methods.forEach(function(zt){var Mt=tp(zt),Jt=Mt.displayText;ae().flowchart.htmlLabels&&(Jt=Jt.replace(/</g,"<").replace(/>/g,">"));var yt=L.node().appendChild(Ra(Jt,Mt.cssStyle?Mt.cssStyle:e.labelStyle,!0,!0)),ce=yt.getBBox();if(Ni(ae().flowchart.htmlLabels)){var ve=yt.children[0],me=Se(yt);ce=ve.getBoundingClientRect(),me.attr("width",ce.width),me.attr("height",ce.height)}ce.width>C&&(C=ce.width),S+=ce.height+4,ee.push(yt)}),S+=8,P){var At=(C-vt.width)/2;Se(ot).attr("transform","translate( "+(-1*C/2+At)+", "+-1*S/2+")"),j=vt.height+4}var Tt=(C-Wt.width)/2;return Se(lt).attr("transform","translate( "+(-1*C/2+Tt)+", "+(-1*S/2+j)+")"),j+=Wt.height+4,v.attr("class","divider").attr("x1",-C/2-u).attr("x2",C/2+u).attr("y1",-S/2-u+8+j).attr("y2",-S/2-u+8+j),j+=8,Lt.forEach(function(zt){Se(zt).attr("transform","translate( "+-C/2+", "+(-1*S/2+j+4)+")"),j+=Wt.height+4}),j+=8,w.attr("class","divider").attr("x1",-C/2-u).attr("x2",C/2+u).attr("y1",-S/2-u+8+j).attr("y2",-S/2-u+8+j),j+=8,ee.forEach(function(zt){Se(zt).attr("transform","translate( "+-C/2+", "+(-1*S/2+j)+")"),j+=Wt.height+4}),g.attr("class","outer title-state").attr("x",-C/2-u).attr("y",-S/2-u).attr("width",C+e.padding).attr("height",S+e.padding),Oi(e,g),e.intersect=function(zt){return Wc(e,zt)},d}},Zu={},Y3=function(t){var e=Zu[t.id];p.trace("Transforming node",t.diff,t,"translate("+(t.x-t.width/2-5)+", "+t.width/2+")");var i=t.diff||0;return t.clusterNode?e.attr("transform","translate("+(t.x+i-t.width/2)+", "+(t.y-t.height/2-8)+")"):e.attr("transform","translate("+t.x+", "+t.y+")"),i},j3={rect:function(t,e){p.trace("Creating subgraph rect for ",e.id,e);var i=t.insert("g").attr("class","cluster"+(e.class?" "+e.class:"")).attr("id",e.id),u=i.insert("rect",":first-child"),d=i.insert("g").attr("class","cluster-label"),g=d.node().appendChild(Ra(e.labelText,e.labelStyle,void 0,!0)),v=g.getBBox();if(Ni(ae().flowchart.htmlLabels)){var w=g.children[0],C=Se(g);v=w.getBoundingClientRect(),C.attr("width",v.width),C.attr("height",v.height)}var S=0*e.padding,L=S/2,j=e.width<=v.width+S?v.width+S:e.width;e.width<=v.width+S?e.diff=(v.width-e.width)/2:e.diff=-e.padding/2,p.trace("Data ",e,JSON.stringify(e)),u.attr("style",e.style).attr("rx",e.rx).attr("ry",e.ry).attr("x",e.x-j/2).attr("y",e.y-e.height/2-L).attr("width",j).attr("height",e.height+S),d.attr("transform","translate("+(e.x-v.width/2)+", "+(e.y-e.height/2+e.padding/3)+")");var P=u.node().getBBox();return e.width=P.width,e.height=P.height,e.intersect=function(U){return dd(e,U)},i},roundedWithTitle:function(t,e){var i=t.insert("g").attr("class",e.classes).attr("id",e.id),u=i.insert("rect",":first-child"),d=i.insert("g").attr("class","cluster-label"),g=i.append("rect"),v=d.node().appendChild(Ra(e.labelText,e.labelStyle,void 0,!0)),w=v.getBBox();if(Ni(ae().flowchart.htmlLabels)){var C=v.children[0],S=Se(v);w=C.getBoundingClientRect(),S.attr("width",w.width),S.attr("height",w.height)}w=v.getBBox();var L=0*e.padding,j=L/2,P=e.width<=w.width+e.padding?w.width+e.padding:e.width;e.width<=w.width+e.padding?e.diff=(w.width+0*e.padding-e.width)/2:e.diff=-e.padding/2,u.attr("class","outer").attr("x",e.x-P/2-j).attr("y",e.y-e.height/2-j).attr("width",P+L).attr("height",e.height+L),g.attr("class","inner").attr("x",e.x-P/2-j).attr("y",e.y-e.height/2-j+w.height-1).attr("width",P+L).attr("height",e.height+L-w.height-3),d.attr("transform","translate("+(e.x-w.width/2)+", "+(e.y-e.height/2-e.padding/3+(Ni(ae().flowchart.htmlLabels)?5:3))+")");var U=u.node().getBBox();return e.height=U.height,e.intersect=function(ot){return dd(e,ot)},i},noteGroup:function(t,e){var i=t.insert("g").attr("class","note-cluster").attr("id",e.id),u=i.insert("rect",":first-child"),d=0*e.padding,g=d/2;u.attr("rx",e.rx).attr("ry",e.ry).attr("x",e.x-e.width/2-g).attr("y",e.y-e.height/2-g).attr("width",e.width+d).attr("height",e.height+d).attr("fill","none");var v=u.node().getBBox();return e.width=v.width,e.height=v.height,e.intersect=function(w){return dd(e,w)},i},divider:function(t,e){var i=t.insert("g").attr("class",e.classes).attr("id",e.id),u=i.insert("rect",":first-child"),d=0*e.padding,g=d/2;u.attr("class","divider").attr("x",e.x-e.width/2-g).attr("y",e.y-e.height/2).attr("width",e.width+d).attr("height",e.height+d);var v=u.node().getBBox();return e.width=v.width,e.height=v.height,e.diff=-e.padding/2,e.intersect=function(w){return dd(e,w)},i}},z3={},gd={},ua={},U3=function(t,e){var i=Ra(e.label,e.labelStyle),u=t.insert("g").attr("class","edgeLabel"),d=u.insert("g").attr("class","label");d.node().appendChild(i);var g,v=i.getBBox();if(Ni(ae().flowchart.htmlLabels)){var w=i.children[0],C=Se(i);v=w.getBoundingClientRect(),C.attr("width",v.width),C.attr("height",v.height)}if(d.attr("transform","translate("+-v.width/2+", "+-v.height/2+")"),gd[e.id]=u,e.width=v.width,e.height=v.height,e.startLabelLeft){var S=Ra(e.startLabelLeft,e.labelStyle),L=t.insert("g").attr("class","edgeTerminals"),j=L.insert("g").attr("class","inner");g=j.node().appendChild(S);var P=S.getBBox();j.attr("transform","translate("+-P.width/2+", "+-P.height/2+")"),ua[e.id]||(ua[e.id]={}),ua[e.id].startLeft=L,ap(g,e.startLabelLeft)}if(e.startLabelRight){var U=Ra(e.startLabelRight,e.labelStyle),ot=t.insert("g").attr("class","edgeTerminals"),vt=ot.insert("g").attr("class","inner");g=ot.node().appendChild(U),vt.node().appendChild(U);var bt=U.getBBox();vt.attr("transform","translate("+-bt.width/2+", "+-bt.height/2+")"),ua[e.id]||(ua[e.id]={}),ua[e.id].startRight=ot,ap(g,e.startLabelRight)}if(e.endLabelLeft){var kt=Ra(e.endLabelLeft,e.labelStyle),_t=t.insert("g").attr("class","edgeTerminals"),lt=_t.insert("g").attr("class","inner");g=lt.node().appendChild(kt);var Wt=kt.getBBox();lt.attr("transform","translate("+-Wt.width/2+", "+-Wt.height/2+")"),_t.node().appendChild(kt),ua[e.id]||(ua[e.id]={}),ua[e.id].endLeft=_t,ap(g,e.endLabelLeft)}if(e.endLabelRight){var Ot=Ra(e.endLabelRight,e.labelStyle),gt=t.insert("g").attr("class","edgeTerminals"),Lt=gt.insert("g").attr("class","inner");g=Lt.node().appendChild(Ot);var ee=Ot.getBBox();Lt.attr("transform","translate("+-ee.width/2+", "+-ee.height/2+")"),gt.node().appendChild(Ot),ua[e.id]||(ua[e.id]={}),ua[e.id].endRight=gt,ap(g,e.endLabelRight)}};function ap(t,e){ae().flowchart.htmlLabels&&t&&(t.style.width=9*e.length+"px",t.style.height="12px")}var $3=function(t,e){p.info("Moving label abc78 ",t.id,t.label,gd[t.id]);var i=e.updatedPath?e.updatedPath:e.originalPath;if(t.label){var u=gd[t.id],d=t.x,g=t.y;if(i){var v=Kn.calcLabelPosition(i);p.info("Moving label from (",d,",",g,") to (",v.x,",",v.y,") abc78")}u.attr("transform","translate("+d+", "+g+")")}if(t.startLabelLeft){var w=ua[t.id].startLeft,C=t.x,S=t.y;if(i){var L=Kn.calcTerminalLabelPosition(t.arrowTypeStart?10:0,"start_left",i);C=L.x,S=L.y}w.attr("transform","translate("+C+", "+S+")")}if(t.startLabelRight){var j=ua[t.id].startRight,P=t.x,U=t.y;if(i){var ot=Kn.calcTerminalLabelPosition(t.arrowTypeStart?10:0,"start_right",i);P=ot.x,U=ot.y}j.attr("transform","translate("+P+", "+U+")")}if(t.endLabelLeft){var vt=ua[t.id].endLeft,bt=t.x,kt=t.y;if(i){var _t=Kn.calcTerminalLabelPosition(t.arrowTypeEnd?10:0,"end_left",i);bt=_t.x,kt=_t.y}vt.attr("transform","translate("+bt+", "+kt+")")}if(t.endLabelRight){var lt=ua[t.id].endRight,Wt=t.x,Ot=t.y;if(i){var gt=Kn.calcTerminalLabelPosition(t.arrowTypeEnd?10:0,"end_right",i);Wt=gt.x,Ot=gt.y}lt.attr("transform","translate("+Wt+", "+Ot+")")}},H3=function(t,e){p.warn("abc88 cutPathAtIntersect",t,e);var i=[],u=t[0],d=!1;return t.forEach(function(g){if(p.info("abc88 checking point",g,e),function(C,S){var L=C.x,j=C.y,P=Math.abs(S.x-L),U=Math.abs(S.y-j),ot=C.width/2,vt=C.height/2;return P>=ot||U>=vt}(e,g)||d)p.warn("abc88 outside",g,u),u=g,d||i.push(g);else{var v=function(C,S,L){p.warn(`intersection calc abc89:
|
|
outsidePoint: `.concat(JSON.stringify(S),`
|
|
insidePoint : `).concat(JSON.stringify(L),`
|
|
node : x:`).concat(C.x," y:").concat(C.y," w:").concat(C.width," h:").concat(C.height));var j=C.x,P=C.y,U=Math.abs(j-L.x),ot=C.width/2,vt=L.x<S.x?ot-U:ot+U,bt=C.height/2,kt=Math.abs(S.y-L.y),_t=Math.abs(S.x-L.x);if(Math.abs(P-S.y)*ot>Math.abs(j-S.x)*bt){var lt=L.y<S.y?S.y-bt-P:P-bt-S.y;vt=_t*lt/kt;var Wt={x:L.x<S.x?L.x+vt:L.x-_t+vt,y:L.y<S.y?L.y+kt-lt:L.y-kt+lt};return vt===0&&(Wt.x=S.x,Wt.y=S.y),_t===0&&(Wt.x=S.x),kt===0&&(Wt.y=S.y),p.warn("abc89 topp/bott calc, Q ".concat(kt,", q ").concat(lt,", R ").concat(_t,", r ").concat(vt),Wt),Wt}var Ot=kt*(vt=L.x<S.x?S.x-ot-j:j-ot-S.x)/_t,gt=L.x<S.x?L.x+_t-vt:L.x-_t+vt,Lt=L.y<S.y?L.y+Ot:L.y-Ot;return p.warn("sides calc abc89, Q ".concat(kt,", q ").concat(Ot,", R ").concat(_t,", r ").concat(vt),{_x:gt,_y:Lt}),vt===0&&(gt=S.x,Lt=S.y),_t===0&&(gt=S.x),kt===0&&(Lt=S.y),{x:gt,y:Lt}}(e,u,g);p.warn("abc88 inside",g,u,v),p.warn("abc88 intersection",v);var w=!1;i.forEach(function(C){w=w||C.x===v.x&&C.y===v.y}),i.find(function(C){return C.x===v.x&&C.y===v.y})?p.warn("abc88 no intersect",v,i):i.push(v),d=!0}}),p.warn("abc88 returning points",i),i},W3=function t(e,i,u,d){p.info("Graph in recursive render: XXX",Wi().json.write(i),d);var g=i.graph().rankdir;p.trace("Dir in recursive render - dir:",g);var v=e.insert("g").attr("class","root");i.nodes()?p.info("Recursive render XXX",i.nodes()):p.info("No nodes found for",i),i.edges().length>0&&p.trace("Recursive edges",i.edge(i.edges()[0]));var w=v.insert("g").attr("class","clusters"),C=v.insert("g").attr("class","edgePaths"),S=v.insert("g").attr("class","edgeLabels"),L=v.insert("g").attr("class","nodes");i.nodes().forEach(function(P){var U=i.node(P);if(d!==void 0){var ot=JSON.parse(JSON.stringify(d.clusterData));p.info("Setting data for cluster XXX (",P,") ",ot,d),i.setNode(d.id,ot),i.parent(P)||(p.trace("Setting parent",P,d.id),i.setParent(P,d.id,ot))}if(p.info("(Insert) Node XXX"+P+": "+JSON.stringify(i.node(P))),U&&U.clusterNode){p.info("Cluster identified",P,U.width,i.node(P));var vt=t(L,U.graph,u,i.node(P)),bt=vt.elem;Oi(U,bt),U.diff=vt.diff||0,p.info("Node bounds (abc123)",P,U,U.width,U.x,U.y),function(kt,_t){Zu[_t.id]=kt}(bt,U),p.warn("Recursive render complete ",bt,U)}else i.children(P).length>0?(p.info("Cluster - the non recursive path XXX",P,U.id,U,i),p.info(rp(U.id,i)),vr[U.id]={id:rp(U.id,i),node:U}):(p.info("Node - the non recursive path",P,U.id,U),function(kt,_t,lt){var Wt,Ot;_t.link?(Wt=kt.insert("svg:a").attr("xlink:href",_t.link).attr("target",_t.linkTarget||"_blank"),Ot=P3[_t.shape](Wt,_t,lt)):Wt=Ot=P3[_t.shape](kt,_t,lt),_t.tooltip&&Ot.attr("title",_t.tooltip),_t.class&&Ot.attr("class","node default "+_t.class),Zu[_t.id]=Wt,_t.haveCallback&&Zu[_t.id].attr("class",Zu[_t.id].attr("class")+" clickable")}(L,i.node(P),g))}),i.edges().forEach(function(P){var U=i.edge(P.v,P.w,P.name);p.info("Edge "+P.v+" -> "+P.w+": "+JSON.stringify(P)),p.info("Edge "+P.v+" -> "+P.w+": ",P," ",JSON.stringify(i.edge(P))),p.info("Fix",vr,"ids:",P.v,P.w,"Translateing: ",vr[P.v],vr[P.w]),U3(S,U)}),i.edges().forEach(function(P){p.info("Edge "+P.v+" -> "+P.w+": "+JSON.stringify(P))}),p.info("#############################################"),p.info("### Layout ###"),p.info("#############################################"),p.info(i),ld().layout(i),p.info("Graph after layout:",Wi().json.write(i));var j=0;return d6(i).forEach(function(P){var U=i.node(P);p.info("Position "+P+": "+JSON.stringify(i.node(P))),p.info("Position "+P+": ("+U.x,","+U.y,") width: ",U.width," height: ",U.height),U&&U.clusterNode?Y3(U):i.children(P).length>0?(function(ot,vt){p.trace("Inserting cluster");var bt=vt.shape||"rect";z3[vt.id]=j3[bt](ot,vt)}(w,U),vr[U.id].node=U):Y3(U)}),i.edges().forEach(function(P){var U=i.edge(P);p.info("Edge "+P.v+" -> "+P.w+": "+JSON.stringify(U),U);var ot=function(vt,bt,kt,_t,lt,Wt){var Ot=kt.points,gt=!1,Lt=Wt.node(bt.v),ee=Wt.node(bt.w);p.info("abc88 InsertEdge: ",kt),ee.intersect&&Lt.intersect&&((Ot=Ot.slice(1,kt.points.length-1)).unshift(Lt.intersect(Ot[0])),p.info("Last point",Ot[Ot.length-1],ee,ee.intersect(Ot[Ot.length-1])),Ot.push(ee.intersect(Ot[Ot.length-1]))),kt.toCluster&&(p.info("to cluster abc88",_t[kt.toCluster]),Ot=H3(kt.points,_t[kt.toCluster].node),gt=!0),kt.fromCluster&&(p.info("from cluster abc88",_t[kt.fromCluster]),Ot=H3(Ot.reverse(),_t[kt.fromCluster].node).reverse(),gt=!0);var At,Tt=Ot.filter(function(ve){return!Number.isNaN(ve.y)});At=(lt==="graph"||lt==="flowchart")&&kt.curve||jr;var zt,Mt=Co().x(function(ve){return ve.x}).y(function(ve){return ve.y}).curve(At);switch(kt.thickness){case"normal":zt="edge-thickness-normal";break;case"thick":zt="edge-thickness-thick";break;default:zt=""}switch(kt.pattern){case"solid":zt+=" edge-pattern-solid";break;case"dotted":zt+=" edge-pattern-dotted";break;case"dashed":zt+=" edge-pattern-dashed"}var Jt=vt.append("path").attr("d",Mt(Tt)).attr("id",kt.id).attr("class"," "+zt+(kt.classes?" "+kt.classes:"")).attr("style",kt.style),yt="";switch(ae().state.arrowMarkerAbsolute&&(yt=(yt=(yt=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search).replace(/\(/g,"\\(")).replace(/\)/g,"\\)")),p.info("arrowTypeStart",kt.arrowTypeStart),p.info("arrowTypeEnd",kt.arrowTypeEnd),kt.arrowTypeStart){case"arrow_cross":Jt.attr("marker-start","url("+yt+"#"+lt+"-crossStart)");break;case"arrow_point":Jt.attr("marker-start","url("+yt+"#"+lt+"-pointStart)");break;case"arrow_barb":Jt.attr("marker-start","url("+yt+"#"+lt+"-barbStart)");break;case"arrow_circle":Jt.attr("marker-start","url("+yt+"#"+lt+"-circleStart)");break;case"aggregation":Jt.attr("marker-start","url("+yt+"#"+lt+"-aggregationStart)");break;case"extension":Jt.attr("marker-start","url("+yt+"#"+lt+"-extensionStart)");break;case"composition":Jt.attr("marker-start","url("+yt+"#"+lt+"-compositionStart)");break;case"dependency":Jt.attr("marker-start","url("+yt+"#"+lt+"-dependencyStart)")}switch(kt.arrowTypeEnd){case"arrow_cross":Jt.attr("marker-end","url("+yt+"#"+lt+"-crossEnd)");break;case"arrow_point":Jt.attr("marker-end","url("+yt+"#"+lt+"-pointEnd)");break;case"arrow_barb":Jt.attr("marker-end","url("+yt+"#"+lt+"-barbEnd)");break;case"arrow_circle":Jt.attr("marker-end","url("+yt+"#"+lt+"-circleEnd)");break;case"aggregation":Jt.attr("marker-end","url("+yt+"#"+lt+"-aggregationEnd)");break;case"extension":Jt.attr("marker-end","url("+yt+"#"+lt+"-extensionEnd)");break;case"composition":Jt.attr("marker-end","url("+yt+"#"+lt+"-compositionEnd)");break;case"dependency":Jt.attr("marker-end","url("+yt+"#"+lt+"-dependencyEnd)")}var ce={};return gt&&(ce.updatedPath=Ot),ce.originalPath=kt.points,ce}(C,P,U,vr,u,i);$3(U,ot)}),i.nodes().forEach(function(P){var U=i.node(P);p.info(P,U.type,U.diff),U.type==="group"&&(j=U.diff)}),{elem:v,diff:j}},$2=function(t,e,i,u,d){O3(t,i,u,d),Zu={},gd={},ua={},z3={},Ln={},L3={},vr={},p.warn("Graph at first:",Wi().json.write(e)),l6(e),p.warn("Graph after:",Wi().json.write(e)),W3(t,e,u)};Gu.parser.yy=Do;var H2={dividerMargin:10,padding:5,textHeight:10};function q3(t){var e;switch(t){case 0:e="aggregation";break;case 1:e="extension";break;case 2:e="composition";break;case 3:e="dependency";break;default:e="none"}return e}var mh={},W2=[],op="",V3=function(t){return mh[t]===void 0&&(mh[t]={attributes:[]},p.info("Added new entity :",t)),mh[t]};const Pa={Cardinality:{ZERO_OR_ONE:"ZERO_OR_ONE",ZERO_OR_MORE:"ZERO_OR_MORE",ONE_OR_MORE:"ONE_OR_MORE",ONLY_ONE:"ONLY_ONE"},Identification:{NON_IDENTIFYING:"NON_IDENTIFYING",IDENTIFYING:"IDENTIFYING"},parseDirective:function(t,e,i){da.parseDirective(this,t,e,i)},getConfig:function(){return ae().er},addEntity:V3,addAttributes:function(t,e){var i,u=V3(t);for(i=e.length-1;i>=0;i--)u.attributes.push(e[i]),p.debug("Added attribute ",e[i].attributeName)},getEntities:function(){return mh},addRelationship:function(t,e,i,u){var d={entityA:t,roleA:e,entityB:i,relSpec:u};W2.push(d),p.debug("Added new relationship :",d)},getRelationships:function(){return W2},clear:function(){mh={},W2=[],op=""},setTitle:function(t){op=t},getTitle:function(){return op}};var p6=o(5890),q2=o.n(p6),oc={ONLY_ONE_START:"ONLY_ONE_START",ONLY_ONE_END:"ONLY_ONE_END",ZERO_OR_ONE_START:"ZERO_OR_ONE_START",ZERO_OR_ONE_END:"ZERO_OR_ONE_END",ONE_OR_MORE_START:"ONE_OR_MORE_START",ONE_OR_MORE_END:"ONE_OR_MORE_END",ZERO_OR_MORE_START:"ZERO_OR_MORE_START",ZERO_OR_MORE_END:"ZERO_OR_MORE_END"};const sc=oc;var qr={},V2=function(t){return(t.entityA+t.roleA+t.entityB).replace(/\s/g,"")},G3=0;const G2=function(t){for(var e=Object.keys(t),i=0;i<e.length;i++)qr[e[i]]=t[e[i]]},g6=function(t,e){p.info("Drawing ER diagram"),Pa.clear();var i=q2().parser;i.yy=Pa;try{i.parse(t)}catch{p.debug("Parsing failed")}var u,d=Se("[id='".concat(e,"']"));(function(j,P){var U;j.append("defs").append("marker").attr("id",oc.ONLY_ONE_START).attr("refX",0).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").append("path").attr("stroke",P.stroke).attr("fill","none").attr("d","M9,0 L9,18 M15,0 L15,18"),j.append("defs").append("marker").attr("id",oc.ONLY_ONE_END).attr("refX",18).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").append("path").attr("stroke",P.stroke).attr("fill","none").attr("d","M3,0 L3,18 M9,0 L9,18"),(U=j.append("defs").append("marker").attr("id",oc.ZERO_OR_ONE_START).attr("refX",0).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("orient","auto")).append("circle").attr("stroke",P.stroke).attr("fill","white").attr("cx",21).attr("cy",9).attr("r",6),U.append("path").attr("stroke",P.stroke).attr("fill","none").attr("d","M9,0 L9,18"),(U=j.append("defs").append("marker").attr("id",oc.ZERO_OR_ONE_END).attr("refX",30).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("orient","auto")).append("circle").attr("stroke",P.stroke).attr("fill","white").attr("cx",9).attr("cy",9).attr("r",6),U.append("path").attr("stroke",P.stroke).attr("fill","none").attr("d","M21,0 L21,18"),j.append("defs").append("marker").attr("id",oc.ONE_OR_MORE_START).attr("refX",18).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("orient","auto").append("path").attr("stroke",P.stroke).attr("fill","none").attr("d","M0,18 Q 18,0 36,18 Q 18,36 0,18 M42,9 L42,27"),j.append("defs").append("marker").attr("id",oc.ONE_OR_MORE_END).attr("refX",27).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("orient","auto").append("path").attr("stroke",P.stroke).attr("fill","none").attr("d","M3,9 L3,27 M9,18 Q27,0 45,18 Q27,36 9,18"),(U=j.append("defs").append("marker").attr("id",oc.ZERO_OR_MORE_START).attr("refX",18).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("orient","auto")).append("circle").attr("stroke",P.stroke).attr("fill","white").attr("cx",48).attr("cy",18).attr("r",6),U.append("path").attr("stroke",P.stroke).attr("fill","none").attr("d","M0,18 Q18,0 36,18 Q18,36 0,18"),(U=j.append("defs").append("marker").attr("id",oc.ZERO_OR_MORE_END).attr("refX",39).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("orient","auto")).append("circle").attr("stroke",P.stroke).attr("fill","white").attr("cx",9).attr("cy",18).attr("r",6),U.append("path").attr("stroke",P.stroke).attr("fill","none").attr("d","M21,18 Q39,0 57,18 Q39,36 21,18")})(d,qr),u=new(Wi()).Graph({multigraph:!0,directed:!0,compound:!1}).setGraph({rankdir:qr.layoutDirection,marginx:20,marginy:20,nodesep:100,edgesep:100,ranksep:100}).setDefaultEdgeLabel(function(){return{}});var g=function(j,P,U){var ot;return Object.keys(P).forEach(function(vt){var bt=j.append("g").attr("id",vt);ot=ot===void 0?vt:ot;var kt="entity-"+vt,_t=bt.append("text").attr("class","er entityLabel").attr("id",kt).attr("x",0).attr("y",0).attr("dominant-baseline","middle").attr("text-anchor","middle").attr("style","font-family: "+ae().fontFamily+"; font-size: "+qr.fontSize+"px").text(vt),lt=function(Lt,ee,At){var Tt=qr.entityPadding/3,zt=qr.entityPadding/3,Mt=.85*qr.fontSize,Jt=ee.node().getBBox(),yt=[],ce=!1,ve=!1,me=0,Me=0,$e=0,ze=0,fn=Jt.height+2*Tt,Ne=1;At.forEach(function(xn){xn.attributeKeyType!==void 0&&(ce=!0),xn.attributeComment!==void 0&&(ve=!0)}),At.forEach(function(xn){var sr="".concat(ee.node().id,"-attr-").concat(Ne),bi=0,wo=Lt.append("text").attr("class","er entityLabel").attr("id","".concat(sr,"-type")).attr("x",0).attr("y",0).attr("dominant-baseline","middle").attr("text-anchor","left").attr("style","font-family: "+ae().fontFamily+"; font-size: "+Mt+"px").text(xn.attributeType),as=Lt.append("text").attr("class","er entityLabel").attr("id","".concat(sr,"-name")).attr("x",0).attr("y",0).attr("dominant-baseline","middle").attr("text-anchor","left").attr("style","font-family: "+ae().fontFamily+"; font-size: "+Mt+"px").text(xn.attributeName),Ka={};Ka.tn=wo,Ka.nn=as;var qi=wo.node().getBBox(),j4=as.node().getBBox();if(me=Math.max(me,qi.width),Me=Math.max(Me,j4.width),bi=Math.max(qi.height,j4.height),ce){var r7=Lt.append("text").attr("class","er entityLabel").attr("id","".concat(sr,"-key")).attr("x",0).attr("y",0).attr("dominant-baseline","middle").attr("text-anchor","left").attr("style","font-family: "+ae().fontFamily+"; font-size: "+Mt+"px").text(xn.attributeKeyType||"");Ka.kn=r7;var i7=r7.node().getBBox();$e=Math.max($e,i7.width),bi=Math.max(bi,i7.height)}if(ve){var a7=Lt.append("text").attr("class","er entityLabel").attr("id","".concat(sr,"-comment")).attr("x",0).attr("y",0).attr("dominant-baseline","middle").attr("text-anchor","left").attr("style","font-family: "+ae().fontFamily+"; font-size: "+Mt+"px").text(xn.attributeComment||"");Ka.cn=a7;var o7=a7.node().getBBox();ze=Math.max(ze,o7.width),bi=Math.max(bi,o7.height)}Ka.height=bi,yt.push(Ka),fn+=bi+2*Tt,Ne+=1});var Pn=4;ce&&(Pn+=2),ve&&(Pn+=2);var Sn=me+Me+$e+ze,dn={width:Math.max(qr.minEntityWidth,Math.max(Jt.width+2*qr.entityPadding,Sn+zt*Pn)),height:At.length>0?fn:Math.max(qr.minEntityHeight,Jt.height+2*qr.entityPadding)};if(At.length>0){var vn=Math.max(0,(dn.width-Sn-zt*Pn)/(Pn/2));ee.attr("transform","translate("+dn.width/2+","+(Tt+Jt.height/2)+")");var on=Jt.height+2*Tt,Jr="attributeBoxOdd";yt.forEach(function(xn){var sr=on+Tt+xn.height/2;xn.tn.attr("transform","translate("+zt+","+sr+")");var bi=Lt.insert("rect","#"+xn.tn.node().id).attr("class","er ".concat(Jr)).attr("fill",qr.fill).attr("fill-opacity","100%").attr("stroke",qr.stroke).attr("x",0).attr("y",on).attr("width",me+2*zt+vn).attr("height",xn.height+2*Tt),wo=parseFloat(bi.attr("x"))+parseFloat(bi.attr("width"));xn.nn.attr("transform","translate("+(wo+zt)+","+sr+")");var as=Lt.insert("rect","#"+xn.nn.node().id).attr("class","er ".concat(Jr)).attr("fill",qr.fill).attr("fill-opacity","100%").attr("stroke",qr.stroke).attr("x",wo).attr("y",on).attr("width",Me+2*zt+vn).attr("height",xn.height+2*Tt),Ka=parseFloat(as.attr("x"))+parseFloat(as.attr("width"));if(ce){xn.kn.attr("transform","translate("+(Ka+zt)+","+sr+")");var qi=Lt.insert("rect","#"+xn.kn.node().id).attr("class","er ".concat(Jr)).attr("fill",qr.fill).attr("fill-opacity","100%").attr("stroke",qr.stroke).attr("x",Ka).attr("y",on).attr("width",$e+2*zt+vn).attr("height",xn.height+2*Tt);Ka=parseFloat(qi.attr("x"))+parseFloat(qi.attr("width"))}ve&&(xn.cn.attr("transform","translate("+(Ka+zt)+","+sr+")"),Lt.insert("rect","#"+xn.cn.node().id).attr("class","er ".concat(Jr)).attr("fill",qr.fill).attr("fill-opacity","100%").attr("stroke",qr.stroke).attr("x",Ka).attr("y",on).attr("width",ze+2*zt+vn).attr("height",xn.height+2*Tt)),on+=xn.height+2*Tt,Jr=Jr=="attributeBoxOdd"?"attributeBoxEven":"attributeBoxOdd"})}else dn.height=Math.max(qr.minEntityHeight,fn),ee.attr("transform","translate("+dn.width/2+","+dn.height/2+")");return dn}(bt,_t,P[vt].attributes),Wt=lt.width,Ot=lt.height,gt=bt.insert("rect","#"+kt).attr("class","er entityBox").attr("fill",qr.fill).attr("fill-opacity","100%").attr("stroke",qr.stroke).attr("x",0).attr("y",0).attr("width",Wt).attr("height",Ot).node().getBBox();U.setNode(vt,{width:gt.width,height:gt.height,shape:"rect",id:vt})}),ot}(d,Pa.getEntities(),u),v=function(j,P){return j.forEach(function(U){P.setEdge(U.entityA,U.entityB,{relationship:U},V2(U))}),j}(Pa.getRelationships(),u);ld().layout(u),function(j,P){P.nodes().forEach(function(U){U!==void 0&&P.node(U)!==void 0&&j.select("#"+U).attr("transform","translate("+(P.node(U).x-P.node(U).width/2)+","+(P.node(U).y-P.node(U).height/2)+" )")})}(d,u),v.forEach(function(j){(function(P,U,ot,vt){G3++;var bt=ot.edge(U.entityA,U.entityB,V2(U)),kt=Co().x(function(ee){return ee.x}).y(function(ee){return ee.y}).curve(jr),_t=P.insert("path","#"+vt).attr("class","er relationshipLine").attr("d",kt(bt.points)).attr("stroke",qr.stroke).attr("fill","none");U.relSpec.relType===Pa.Identification.NON_IDENTIFYING&&_t.attr("stroke-dasharray","8,8");var lt="";switch(qr.arrowMarkerAbsolute&&(lt=(lt=(lt=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search).replace(/\(/g,"\\(")).replace(/\)/g,"\\)")),U.relSpec.cardA){case Pa.Cardinality.ZERO_OR_ONE:_t.attr("marker-end","url("+lt+"#"+sc.ZERO_OR_ONE_END+")");break;case Pa.Cardinality.ZERO_OR_MORE:_t.attr("marker-end","url("+lt+"#"+sc.ZERO_OR_MORE_END+")");break;case Pa.Cardinality.ONE_OR_MORE:_t.attr("marker-end","url("+lt+"#"+sc.ONE_OR_MORE_END+")");break;case Pa.Cardinality.ONLY_ONE:_t.attr("marker-end","url("+lt+"#"+sc.ONLY_ONE_END+")")}switch(U.relSpec.cardB){case Pa.Cardinality.ZERO_OR_ONE:_t.attr("marker-start","url("+lt+"#"+sc.ZERO_OR_ONE_START+")");break;case Pa.Cardinality.ZERO_OR_MORE:_t.attr("marker-start","url("+lt+"#"+sc.ZERO_OR_MORE_START+")");break;case Pa.Cardinality.ONE_OR_MORE:_t.attr("marker-start","url("+lt+"#"+sc.ONE_OR_MORE_START+")");break;case Pa.Cardinality.ONLY_ONE:_t.attr("marker-start","url("+lt+"#"+sc.ONLY_ONE_START+")")}var Wt=_t.node().getTotalLength(),Ot=_t.node().getPointAtLength(.5*Wt),gt="rel"+G3,Lt=P.append("text").attr("class","er relationshipLabel").attr("id",gt).attr("x",Ot.x).attr("y",Ot.y).attr("text-anchor","middle").attr("dominant-baseline","middle").attr("style","font-family: "+ae().fontFamily+"; font-size: "+qr.fontSize+"px").text(U.roleA).node().getBBox();P.insert("rect","#"+gt).attr("class","er relationshipLabelBox").attr("x",Ot.x-Lt.width/2).attr("y",Ot.y-Lt.height/2).attr("width",Lt.width).attr("height",Lt.height).attr("fill","white").attr("fill-opacity","85%")})(d,j,u,g)});var w=qr.diagramPadding,C=d.node().getBBox(),S=C.width+2*w,L=C.height+2*w;go(d,L,S,qr.useMaxWidth),d.attr("viewBox","".concat(C.x-w," ").concat(C.y-w," ").concat(S," ").concat(L))};function sp(t){return sp=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},sp(t)}function Z2(t,e){(e==null||e>t.length)&&(e=t.length);for(var i=0,u=new Array(e);i<e;i++)u[i]=t[i];return u}var Cs,cp,Z3="flowchart-",X3=0,Xu=ae(),_i={},qc=[],vh=[],is=[],up={},lp={},X2=0,hp=!0,fp=[],dp=function(t){for(var e=Object.keys(_i),i=0;i<e.length;i++)if(_i[e[i]].id===t)return _i[e[i]].domId;return t},y6=function(t,e,i,u){var d={start:t,end:e,type:void 0,text:""};(u=i.text)!==void 0&&(d.text=dr.sanitizeText(u.trim(),Xu),d.text[0]==='"'&&d.text[d.text.length-1]==='"'&&(d.text=d.text.substring(1,d.text.length-1))),i!==void 0&&(d.type=i.type,d.stroke=i.stroke,d.length=i.length),qc.push(d)},K2=function(t,e){t.split(",").forEach(function(i){var u=i;_i[u]!==void 0&&_i[u].classes.push(e),up[u]!==void 0&&up[u].classes.push(e)})},K3=function(t){var e=Se(".mermaidTooltip");(e._groups||e)[0][0]===null&&(e=Se("body").append("div").attr("class","mermaidTooltip").style("opacity",0)),Se(t).select("svg").selectAll("g.node").on("mouseover",function(){var i=Se(this);if(i.attr("title")!==null){var u=this.getBoundingClientRect();e.transition().duration(200).style("opacity",".9"),e.html(i.attr("title")).style("left",window.scrollX+u.left+(u.right-u.left)/2+"px").style("top",window.scrollY+u.top-14+document.body.scrollTop+"px"),i.classed("hover",!0)}}).on("mouseout",function(){e.transition().duration(500).style("opacity",0),Se(this).classed("hover",!1)})};fp.push(K3);var pp=function(t){for(var e=0;e<is.length;e++)if(is[e].id===t)return e;return-1},Q2=-1,yd=[],m6=function t(e,i){var u=is[i].nodes;if(!((Q2+=1)>2e3)){if(yd[Q2]=i,is[i].id===e)return{result:!0,count:0};for(var d=0,g=1;d<u.length;){var v=pp(u[d]);if(v>=0){var w=t(e,v);if(w.result)return{result:!0,count:g+w.count};g+=w.count}d+=1}return{result:!1,count:g}}},Q3=function(t,e){var i=!1;return t.forEach(function(u){u.nodes.indexOf(e)>=0&&(i=!0)}),i},J3=function(t,e){var i=[];return t.nodes.forEach(function(u,d){Q3(e,u)||i.push(t.nodes[d])}),{nodes:i}};const rr={parseDirective:function(t,e,i){da.parseDirective(this,t,e,i)},defaultConfig:function(){return cd.flowchart},addVertex:function(t,e,i,u,d,g){var v,w=arguments.length>6&&arguments[6]!==void 0?arguments[6]:{},C=t;C!==void 0&&C.trim().length!==0&&(_i[C]===void 0&&(_i[C]={id:C,domId:Z3+C+"-"+X3,styles:[],classes:[]}),X3++,e!==void 0?(Xu=ae(),(v=dr.sanitizeText(e.trim(),Xu))[0]==='"'&&v[v.length-1]==='"'&&(v=v.substring(1,v.length-1)),_i[C].text=v):_i[C].text===void 0&&(_i[C].text=t),i!==void 0&&(_i[C].type=i),u!=null&&u.forEach(function(S){_i[C].styles.push(S)}),d!=null&&d.forEach(function(S){_i[C].classes.push(S)}),g!==void 0&&(_i[C].dir=g),_i[C].props=w)},lookUpDomId:dp,addLink:function(t,e,i,u){var d,g;for(d=0;d<t.length;d++)for(g=0;g<e.length;g++)y6(t[d],e[g],i,u)},updateLinkInterpolate:function(t,e){t.forEach(function(i){i==="default"?qc.defaultInterpolate=e:qc[i].interpolate=e})},updateLink:function(t,e){t.forEach(function(i){i==="default"?qc.defaultStyle=e:(Kn.isSubstringInArray("fill",e)===-1&&e.push("fill:none"),qc[i].style=e)})},addClass:function(t,e){vh[t]===void 0&&(vh[t]={id:t,styles:[],textStyles:[]}),e!=null&&e.forEach(function(i){if(i.match("color")){var u=i.replace("fill","bgFill").replace("color","fill");vh[t].textStyles.push(u)}vh[t].styles.push(i)})},setDirection:function(t){(Cs=t).match(/.*</)&&(Cs="RL"),Cs.match(/.*\^/)&&(Cs="BT"),Cs.match(/.*>/)&&(Cs="LR"),Cs.match(/.*v/)&&(Cs="TB")},setClass:K2,setTooltip:function(t,e){t.split(",").forEach(function(i){e!==void 0&&(lp[cp==="gen-1"?dp(i):i]=dr.sanitizeText(e,Xu))})},getTooltip:function(t){return lp[t]},setClickEvent:function(t,e,i){t.split(",").forEach(function(u){(function(d,g,v){var w=dp(d);if(ae().securityLevel==="loose"&&g!==void 0){var C=[];if(typeof v=="string"){C=v.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(var S=0;S<C.length;S++){var L=C[S].trim();L.charAt(0)==='"'&&L.charAt(L.length-1)==='"'&&(L=L.substr(1,L.length-2)),C[S]=L}}C.length===0&&C.push(d),_i[d]!==void 0&&(_i[d].haveCallback=!0,fp.push(function(){var j=document.querySelector('[id="'.concat(w,'"]'));j!==null&&j.addEventListener("click",function(){var P;Kn.runFunc.apply(Kn,[g].concat(function(U){if(Array.isArray(U))return Z2(U)}(P=C)||function(U){if(typeof Symbol!="undefined"&&U[Symbol.iterator]!=null||U["@@iterator"]!=null)return Array.from(U)}(P)||function(U,ot){if(U){if(typeof U=="string")return Z2(U,ot);var vt=Object.prototype.toString.call(U).slice(8,-1);return vt==="Object"&&U.constructor&&(vt=U.constructor.name),vt==="Map"||vt==="Set"?Array.from(U):vt==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(vt)?Z2(U,ot):void 0}}(P)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()))},!1)}))}})(u,e,i)}),K2(t,"clickable")},setLink:function(t,e,i){t.split(",").forEach(function(u){_i[u]!==void 0&&(_i[u].link=Kn.formatUrl(e,Xu),_i[u].linkTarget=i)}),K2(t,"clickable")},bindFunctions:function(t){fp.forEach(function(e){e(t)})},getDirection:function(){return Cs.trim()},getVertices:function(){return _i},getEdges:function(){return qc},getClasses:function(){return vh},clear:function(t){_i={},vh={},qc=[],(fp=[]).push(K3),is=[],up={},X2=0,lp=[],hp=!0,cp=t||"gen-1"},setGen:function(t){cp=t||"gen-1"},defaultStyle:function(){return"fill:#ffa;stroke: #f66; stroke-width: 3px; stroke-dasharray: 5, 5;fill:#ffa;stroke: #666;"},addSubGraph:function(t,e,i){var u=t.trim(),d=i;t===i&&i.match(/\s/)&&(u=void 0);var g=[],v=function(j){var P,U={boolean:{},number:{},string:{}},ot=[],vt=j.filter(function(bt){var kt=sp(bt);return bt.stmt&&bt.stmt==="dir"?(P=bt.value,!1):bt.trim()!==""&&(kt in U?!U[kt].hasOwnProperty(bt)&&(U[kt][bt]=!0):!(ot.indexOf(bt)>=0)&&ot.push(bt))});return{nodeList:vt,dir:P}}(g.concat.apply(g,e)),w=v.nodeList,C=v.dir;if(g=w,cp==="gen-1"){p.warn("LOOKING UP");for(var S=0;S<g.length;S++)g[S]=dp(g[S])}u=u||"subGraph"+X2,d=d||"",d=dr.sanitizeText(d,Xu),X2+=1;var L={id:u,nodes:g,title:d.trim(),classes:[],dir:C};return p.info("Adding",L.id,L.nodes,L.dir),L.nodes=J3(L,is).nodes,is.push(L),up[u]=L,u},getDepthFirstPos:function(t){return yd[t]},indexNodes:function(){Q2=-1,is.length>0&&m6("none",is.length-1)},getSubGraphs:function(){return is},destructLink:function(t,e){var i,u=function(d){var g=d.trim(),v=g.slice(0,-1),w="arrow_open";switch(g.slice(-1)){case"x":w="arrow_cross",g[0]==="x"&&(w="double_"+w,v=v.slice(1));break;case">":w="arrow_point",g[0]==="<"&&(w="double_"+w,v=v.slice(1));break;case"o":w="arrow_circle",g[0]==="o"&&(w="double_"+w,v=v.slice(1))}var C="normal",S=v.length-1;v[0]==="="&&(C="thick");var L=function(j,P){for(var U=P.length,ot=0,vt=0;vt<U;++vt)P[vt]==="."&&++ot;return ot}(0,v);return L&&(C="dotted",S=L),{type:w,stroke:C,length:S}}(t);if(e){if(i=function(d){var g=d.trim(),v="arrow_open";switch(g[0]){case"<":v="arrow_point",g=g.slice(1);break;case"x":v="arrow_cross",g=g.slice(1);break;case"o":v="arrow_circle",g=g.slice(1)}var w="normal";return g.indexOf("=")!==-1&&(w="thick"),g.indexOf(".")!==-1&&(w="dotted"),{type:v,stroke:w}}(e),i.stroke!==u.stroke)return{type:"INVALID",stroke:"INVALID"};if(i.type==="arrow_open")i.type=u.type;else{if(i.type!==u.type)return{type:"INVALID",stroke:"INVALID"};i.type="double_"+i.type}return i.type==="double_arrow"&&(i.type="double_arrow_point"),i.length=u.length,i}return u},lex:{firstGraph:function(){return!!hp&&(hp=!1,!0)}},exists:Q3,makeUniq:J3};var gp=o(3602),yp=o.n(gp),v6=o(4949),yo=o.n(v6),_6=o(8284),t4=o.n(_6);function b6(t,e,i){var u=.9*(e.width+e.height),d=[{x:u/2,y:0},{x:u,y:-u/2},{x:u/2,y:-u},{x:0,y:-u/2}],g=ea(t,u,u,d);return i.intersect=function(v){return yo().intersect.polygon(i,d,v)},g}function e4(t,e,i){var u=e.height,d=u/4,g=e.width+2*d,v=[{x:d,y:0},{x:g-d,y:0},{x:g,y:-u/2},{x:g-d,y:-u},{x:d,y:-u},{x:0,y:-u/2}],w=ea(t,g,u,v);return i.intersect=function(C){return yo().intersect.polygon(i,v,C)},w}function J2(t,e,i){var u=e.width,d=e.height,g=[{x:-d/2,y:0},{x:u,y:0},{x:u,y:-d},{x:-d/2,y:-d},{x:0,y:-d/2}],v=ea(t,u,d,g);return i.intersect=function(w){return yo().intersect.polygon(i,g,w)},v}function w6(t,e,i){var u=e.width,d=e.height,g=[{x:-2*d/6,y:0},{x:u-d/6,y:0},{x:u+2*d/6,y:-d},{x:d/6,y:-d}],v=ea(t,u,d,g);return i.intersect=function(w){return yo().intersect.polygon(i,g,w)},v}function x6(t,e,i){var u=e.width,d=e.height,g=[{x:2*d/6,y:0},{x:u+d/6,y:0},{x:u-2*d/6,y:-d},{x:-d/6,y:-d}],v=ea(t,u,d,g);return i.intersect=function(w){return yo().intersect.polygon(i,g,w)},v}function or(t,e,i){var u=e.width,d=e.height,g=[{x:-2*d/6,y:0},{x:u+2*d/6,y:0},{x:u-d/6,y:-d},{x:d/6,y:-d}],v=ea(t,u,d,g);return i.intersect=function(w){return yo().intersect.polygon(i,g,w)},v}function n4(t,e,i){var u=e.width,d=e.height,g=[{x:d/6,y:0},{x:u-d/6,y:0},{x:u+2*d/6,y:-d},{x:-2*d/6,y:-d}],v=ea(t,u,d,g);return i.intersect=function(w){return yo().intersect.polygon(i,g,w)},v}function va(t,e,i){var u=e.width,d=e.height,g=[{x:0,y:0},{x:u+d/2,y:0},{x:u,y:-d/2},{x:u+d/2,y:-d},{x:0,y:-d}],v=ea(t,u,d,g);return i.intersect=function(w){return yo().intersect.polygon(i,g,w)},v}function Ku(t,e,i){var u=e.height,d=e.width+u/4,g=t.insert("rect",":first-child").attr("rx",u/2).attr("ry",u/2).attr("x",-d/2).attr("y",-u/2).attr("width",d).attr("height",u);return i.intersect=function(v){return yo().intersect.rect(i,v)},g}function k6(t,e,i){var u=e.width,d=e.height,g=[{x:0,y:0},{x:u,y:0},{x:u,y:-d},{x:0,y:-d},{x:0,y:0},{x:-8,y:0},{x:u+8,y:0},{x:u+8,y:-d},{x:-8,y:-d},{x:-8,y:0}],v=ea(t,u,d,g);return i.intersect=function(w){return yo().intersect.polygon(i,g,w)},v}function tm(t,e,i){var u=e.width,d=u/2,g=d/(2.5+u/50),v=e.height+g,w="M 0,"+g+" a "+d+","+g+" 0,0,0 "+u+" 0 a "+d+","+g+" 0,0,0 "+-u+" 0 l 0,"+v+" a "+d+","+g+" 0,0,0 "+u+" 0 l 0,"+-v,C=t.attr("label-offset-y",g).insert("path",":first-child").attr("d",w).attr("transform","translate("+-u/2+","+-(v/2+g)+")");return i.intersect=function(S){var L=yo().intersect.rect(i,S),j=L.x-i.x;if(d!=0&&(Math.abs(j)<i.width/2||Math.abs(j)==i.width/2&&Math.abs(L.y-i.y)>i.height/2-g)){var P=g*g*(1-j*j/(d*d));P!=0&&(P=Math.sqrt(P)),P=g-P,S.y-i.y>0&&(P=-P),L.y+=P}return L},C}function ea(t,e,i,u){return t.insert("polygon",":first-child").attr("points",u.map(function(d){return d.x+","+d.y}).join(" ")).attr("transform","translate("+-e/2+","+i/2+")")}const _h=function(t){t.shapes().question=b6,t.shapes().hexagon=e4,t.shapes().stadium=Ku,t.shapes().subroutine=k6,t.shapes().cylinder=tm,t.shapes().rect_left_inv_arrow=J2,t.shapes().lean_right=w6,t.shapes().lean_left=x6,t.shapes().trapezoid=or,t.shapes().inv_trapezoid=n4,t.shapes().rect_right_inv_arrow=va};var la={};const cc=function(t){for(var e=Object.keys(t),i=0;i<e.length;i++)la[e[i]]=t[e[i]]},mp=function(t,e){p.info("Drawing flowchart"),rr.clear(),rr.setGen("gen-1");var i=yp().parser;i.yy=rr,i.parse(t);var u=rr.getDirection();u===void 0&&(u="TD");for(var d,g=ae().flowchart,v=g.nodeSpacing||50,w=g.rankSpacing||50,C=new(Wi()).Graph({multigraph:!0,compound:!0}).setGraph({rankdir:u,nodesep:v,ranksep:w,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}}),S=rr.getSubGraphs(),L=S.length-1;L>=0;L--)d=S[L],rr.addVertex(d.id,d.title,"group",void 0,d.classes);var j=rr.getVertices();p.warn("Get vertices",j);var P=rr.getEdges(),U=0;for(U=S.length-1;U>=0;U--){d=S[U],Mc("cluster").append("text");for(var ot=0;ot<d.nodes.length;ot++)p.warn("Setting subgraph",d.nodes[ot],rr.lookUpDomId(d.nodes[ot]),rr.lookUpDomId(d.id)),C.setParent(rr.lookUpDomId(d.nodes[ot]),rr.lookUpDomId(d.id))}(function($e,ze,fn){var Ne=Se('[id="'.concat(fn,'"]'));Object.keys($e).forEach(function(Pn){var Sn=$e[Pn],dn="default";Sn.classes.length>0&&(dn=Sn.classes.join(" "));var vn,on=Hc(Sn.styles),Jr=Sn.text!==void 0?Sn.text:Sn.id;if(Ni(ae().flowchart.htmlLabels)){var xn={label:Jr.replace(/fa[lrsb]?:fa-[\w-]+/g,function(j4){return"<i class='".concat(j4.replace(":"," "),"'></i>")})};(vn=t4()(Ne,xn).node()).parentNode.removeChild(vn)}else{var sr=document.createElementNS("http://www.w3.org/2000/svg","text");sr.setAttribute("style",on.labelStyle.replace("color:","fill:"));for(var bi=Jr.split(dr.lineBreakRegex),wo=0;wo<bi.length;wo++){var as=document.createElementNS("http://www.w3.org/2000/svg","tspan");as.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),as.setAttribute("dy","1em"),as.setAttribute("x","1"),as.textContent=bi[wo],sr.appendChild(as)}vn=sr}var Ka=0,qi="";switch(Sn.type){case"round":Ka=5,qi="rect";break;case"square":case"group":default:qi="rect";break;case"diamond":qi="question";break;case"hexagon":qi="hexagon";break;case"odd":case"odd_right":qi="rect_left_inv_arrow";break;case"lean_right":qi="lean_right";break;case"lean_left":qi="lean_left";break;case"trapezoid":qi="trapezoid";break;case"inv_trapezoid":qi="inv_trapezoid";break;case"circle":qi="circle";break;case"ellipse":qi="ellipse";break;case"stadium":qi="stadium";break;case"subroutine":qi="subroutine";break;case"cylinder":qi="cylinder"}p.warn("Adding node",Sn.id,Sn.domId),ze.setNode(rr.lookUpDomId(Sn.id),{labelType:"svg",labelStyle:on.labelStyle,shape:qi,label:vn,rx:Ka,ry:Ka,class:dn,style:on.style,id:rr.lookUpDomId(Sn.id)})})})(j,C,e),function($e,ze){var fn,Ne,Pn=0;if($e.defaultStyle!==void 0){var Sn=Hc($e.defaultStyle);fn=Sn.style,Ne=Sn.labelStyle}$e.forEach(function(dn){Pn++;var vn="L-"+dn.start+"-"+dn.end,on="LS-"+dn.start,Jr="LE-"+dn.end,xn={};dn.type==="arrow_open"?xn.arrowhead="none":xn.arrowhead="normal";var sr="",bi="";if(dn.style!==void 0){var wo=Hc(dn.style);sr=wo.style,bi=wo.labelStyle}else switch(dn.stroke){case"normal":sr="fill:none",fn!==void 0&&(sr=fn),Ne!==void 0&&(bi=Ne);break;case"dotted":sr="fill:none;stroke-width:2px;stroke-dasharray:3;";break;case"thick":sr=" stroke-width: 3.5px;fill:none"}xn.style=sr,xn.labelStyle=bi,dn.interpolate!==void 0?xn.curve=ns(dn.interpolate,So):$e.defaultInterpolate!==void 0?xn.curve=ns($e.defaultInterpolate,So):xn.curve=ns(la.curve,So),dn.text===void 0?dn.style!==void 0&&(xn.arrowheadStyle="fill: #333"):(xn.arrowheadStyle="fill: #333",xn.labelpos="c",Ni(ae().flowchart.htmlLabels)?(xn.labelType="html",xn.label='<span id="L-'.concat(vn,'" class="edgeLabel L-').concat(on,"' L-").concat(Jr,'">').concat(dn.text.replace(/fa[lrsb]?:fa-[\w-]+/g,function(as){return"<i class='".concat(as.replace(":"," "),"'></i>")}),"</span>")):(xn.labelType="text",xn.label=dn.text.replace(dr.lineBreakRegex,`
|
|
`),dn.style===void 0&&(xn.style=xn.style||"stroke: #333; stroke-width: 1.5px;fill:none"),xn.labelStyle=xn.labelStyle.replace("color:","fill:"))),xn.id=vn,xn.class=on+" "+Jr,xn.minlen=dn.length||1,ze.setEdge(rr.lookUpDomId(dn.start),rr.lookUpDomId(dn.end),xn,Pn)})}(P,C);var vt=new(yo()).render;_h(vt),vt.arrows().none=function($e,ze,fn,Ne){var Pn=$e.append("marker").attr("id",ze).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 0 0 L 0 0 z");yo().util.applyStyle(Pn,fn[Ne+"Style"])},vt.arrows().normal=function($e,ze){$e.append("marker").attr("id",ze).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").attr("class","arrowheadPath").style("stroke-width",1).style("stroke-dasharray","1,0")};var bt=Se('[id="'.concat(e,'"]'));bt.attr("xmlns:xlink","http://www.w3.org/1999/xlink"),p.warn(C);var kt=Se("#"+e+" g");vt(kt,C),kt.selectAll("g.node").attr("title",function(){return rr.getTooltip(this.id)});var _t=g.diagramPadding,lt=bt.node().getBBox(),Wt=lt.width+2*_t,Ot=lt.height+2*_t;go(bt,Ot,Wt,g.useMaxWidth);var gt="".concat(lt.x-_t," ").concat(lt.y-_t," ").concat(Wt," ").concat(Ot);for(p.debug("viewBox ".concat(gt)),bt.attr("viewBox",gt),rr.indexNodes("subGraph"+U),U=0;U<S.length;U++)if((d=S[U]).title!=="undefined"){var Lt=document.querySelectorAll("#"+e+' [id="'+rr.lookUpDomId(d.id)+'"] rect'),ee=document.querySelectorAll("#"+e+' [id="'+rr.lookUpDomId(d.id)+'"]'),At=Lt[0].x.baseVal.value,Tt=Lt[0].y.baseVal.value,zt=Lt[0].width.baseVal.value,Mt=Se(ee[0]).select(".label");Mt.attr("transform","translate(".concat(At+zt/2,", ").concat(Tt+14,")")),Mt.attr("id",e+"Text");for(var Jt=0;Jt<d.classes.length;Jt++)ee[0].classList.add(d.classes[Jt])}Ni(g.htmlLabels);for(var yt=document.querySelectorAll('[id="'+e+'"] .edgeLabel .label'),ce=0;ce<yt.length;ce++){var ve=yt[ce],me=ve.getBBox(),Me=document.createElementNS("http://www.w3.org/2000/svg","rect");Me.setAttribute("rx",0),Me.setAttribute("ry",0),Me.setAttribute("width",me.width),Me.setAttribute("height",me.height),ve.insertBefore(Me,ve.firstChild)}Object.keys(j).forEach(function($e){var ze=j[$e];if(ze.link){var fn=Se("#"+e+' [id="'+rr.lookUpDomId($e)+'"]');if(fn){var Ne=document.createElementNS("http://www.w3.org/2000/svg","a");Ne.setAttributeNS("http://www.w3.org/2000/svg","class",ze.classes.join(" ")),Ne.setAttributeNS("http://www.w3.org/2000/svg","href",ze.link),Ne.setAttributeNS("http://www.w3.org/2000/svg","rel","noopener"),ze.linkTarget&&Ne.setAttributeNS("http://www.w3.org/2000/svg","target",ze.linkTarget);var Pn=fn.insert(function(){return Ne},":first-child"),Sn=fn.select(".label-container");Sn&&Pn.append(function(){return Sn.node()});var dn=fn.select(".label");dn&&Pn.append(function(){return dn.node()})}}})};var uc={};const r4=function(t){for(var e=Object.keys(t),i=0;i<e.length;i++)uc[e[i]]=t[e[i]]},i4=function(t,e){p.info("Drawing flowchart"),rr.clear(),rr.setGen("gen-2");var i=yp().parser;i.yy=rr,i.parse(t);var u=rr.getDirection();u===void 0&&(u="TD");var d,g=ae().flowchart,v=g.nodeSpacing||50,w=g.rankSpacing||50,C=new(Wi()).Graph({multigraph:!0,compound:!0}).setGraph({rankdir:u,nodesep:v,ranksep:w,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}}),S=rr.getSubGraphs();p.info("Subgraphs - ",S);for(var L=S.length-1;L>=0;L--)d=S[L],p.info("Subgraph - ",d),rr.addVertex(d.id,d.title,"group",void 0,d.classes,d.dir);var j=rr.getVertices(),P=rr.getEdges();p.info(P);var U=0;for(U=S.length-1;U>=0;U--){d=S[U],Mc("cluster").append("text");for(var ot=0;ot<d.nodes.length;ot++)p.info("Setting up subgraphs",d.nodes[ot],d.id),C.setParent(d.nodes[ot],d.id)}(function(Tt,zt,Mt){var Jt=Se('[id="'.concat(Mt,'"]'));Object.keys(Tt).forEach(function(yt){var ce=Tt[yt],ve="default";ce.classes.length>0&&(ve=ce.classes.join(" "));var me,Me=Hc(ce.styles),$e=ce.text!==void 0?ce.text:ce.id;if(Ni(ae().flowchart.htmlLabels)){var ze={label:$e.replace(/fa[lrsb]?:fa-[\w-]+/g,function(on){return"<i class='".concat(on.replace(":"," "),"'></i>")})};(me=t4()(Jt,ze).node()).parentNode.removeChild(me)}else{var fn=document.createElementNS("http://www.w3.org/2000/svg","text");fn.setAttribute("style",Me.labelStyle.replace("color:","fill:"));for(var Ne=$e.split(dr.lineBreakRegex),Pn=0;Pn<Ne.length;Pn++){var Sn=document.createElementNS("http://www.w3.org/2000/svg","tspan");Sn.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),Sn.setAttribute("dy","1em"),Sn.setAttribute("x","1"),Sn.textContent=Ne[Pn],fn.appendChild(Sn)}me=fn}var dn=0,vn="";switch(ce.type){case"round":dn=5,vn="rect";break;case"square":case"group":default:vn="rect";break;case"diamond":vn="question";break;case"hexagon":vn="hexagon";break;case"odd":case"odd_right":vn="rect_left_inv_arrow";break;case"lean_right":vn="lean_right";break;case"lean_left":vn="lean_left";break;case"trapezoid":vn="trapezoid";break;case"inv_trapezoid":vn="inv_trapezoid";break;case"circle":vn="circle";break;case"ellipse":vn="ellipse";break;case"stadium":vn="stadium";break;case"subroutine":vn="subroutine";break;case"cylinder":vn="cylinder"}zt.setNode(ce.id,{labelStyle:Me.labelStyle,shape:vn,labelText:$e,rx:dn,ry:dn,class:ve,style:Me.style,id:ce.id,link:ce.link,linkTarget:ce.linkTarget,tooltip:rr.getTooltip(ce.id)||"",domId:rr.lookUpDomId(ce.id),haveCallback:ce.haveCallback,width:ce.type==="group"?500:void 0,dir:ce.dir,type:ce.type,props:ce.props,padding:ae().flowchart.padding}),p.info("setNode",{labelStyle:Me.labelStyle,shape:vn,labelText:$e,rx:dn,ry:dn,class:ve,style:Me.style,id:ce.id,domId:rr.lookUpDomId(ce.id),width:ce.type==="group"?500:void 0,type:ce.type,dir:ce.dir,props:ce.props,padding:ae().flowchart.padding})})})(j,C,e),function(Tt,zt){p.info("abc78 edges = ",Tt);var Mt,Jt,yt=0,ce={};if(Tt.defaultStyle!==void 0){var ve=Hc(Tt.defaultStyle);Mt=ve.style,Jt=ve.labelStyle}Tt.forEach(function(me){yt++;var Me="L-"+me.start+"-"+me.end;ce[Me]===void 0?(ce[Me]=0,p.info("abc78 new entry",Me,ce[Me])):(ce[Me]++,p.info("abc78 new entry",Me,ce[Me]));var $e=Me+"-"+ce[Me];p.info("abc78 new link id to be used is",Me,$e,ce[Me]);var ze="LS-"+me.start,fn="LE-"+me.end,Ne={style:"",labelStyle:""};switch(Ne.minlen=me.length||1,me.type==="arrow_open"?Ne.arrowhead="none":Ne.arrowhead="normal",Ne.arrowTypeStart="arrow_open",Ne.arrowTypeEnd="arrow_open",me.type){case"double_arrow_cross":Ne.arrowTypeStart="arrow_cross";case"arrow_cross":Ne.arrowTypeEnd="arrow_cross";break;case"double_arrow_point":Ne.arrowTypeStart="arrow_point";case"arrow_point":Ne.arrowTypeEnd="arrow_point";break;case"double_arrow_circle":Ne.arrowTypeStart="arrow_circle";case"arrow_circle":Ne.arrowTypeEnd="arrow_circle"}var Pn="",Sn="";switch(me.stroke){case"normal":Pn="fill:none;",Mt!==void 0&&(Pn=Mt),Jt!==void 0&&(Sn=Jt),Ne.thickness="normal",Ne.pattern="solid";break;case"dotted":Ne.thickness="normal",Ne.pattern="dotted",Ne.style="fill:none;stroke-width:2px;stroke-dasharray:3;";break;case"thick":Ne.thickness="thick",Ne.pattern="solid",Ne.style="stroke-width: 3.5px;fill:none;"}if(me.style!==void 0){var dn=Hc(me.style);Pn=dn.style,Sn=dn.labelStyle}Ne.style=Ne.style+=Pn,Ne.labelStyle=Ne.labelStyle+=Sn,me.interpolate!==void 0?Ne.curve=ns(me.interpolate,So):Tt.defaultInterpolate!==void 0?Ne.curve=ns(Tt.defaultInterpolate,So):Ne.curve=ns(uc.curve,So),me.text===void 0?me.style!==void 0&&(Ne.arrowheadStyle="fill: #333"):(Ne.arrowheadStyle="fill: #333",Ne.labelpos="c"),Ne.labelType="text",Ne.label=me.text.replace(dr.lineBreakRegex,`
|
|
`),me.style===void 0&&(Ne.style=Ne.style||"stroke: #333; stroke-width: 1.5px;fill:none;"),Ne.labelStyle=Ne.labelStyle.replace("color:","fill:"),Ne.id=$e,Ne.classes="flowchart-link "+ze+" "+fn,zt.setEdge(me.start,me.end,Ne,yt)})}(P,C);var vt=Se('[id="'.concat(e,'"]'));vt.attr("xmlns:xlink","http://www.w3.org/1999/xlink");var bt=Se("#"+e+" g");$2(bt,C,["point","circle","cross"],"flowchart",e);var kt=g.diagramPadding,_t=vt.node().getBBox(),lt=_t.width+2*kt,Wt=_t.height+2*kt;if(p.debug("new ViewBox 0 0 ".concat(lt," ").concat(Wt),"translate(".concat(kt-C._label.marginx,", ").concat(kt-C._label.marginy,")")),go(vt,Wt,lt,g.useMaxWidth),vt.attr("viewBox","0 0 ".concat(lt," ").concat(Wt)),vt.select("g").attr("transform","translate(".concat(kt-C._label.marginx,", ").concat(kt-_t.y,")")),rr.indexNodes("subGraph"+U),!g.htmlLabels)for(var Ot=document.querySelectorAll('[id="'+e+'"] .edgeLabel .label'),gt=0;gt<Ot.length;gt++){var Lt=Ot[gt],ee=Lt.getBBox(),At=document.createElementNS("http://www.w3.org/2000/svg","rect");At.setAttribute("rx",0),At.setAttribute("ry",0),At.setAttribute("width",ee.width),At.setAttribute("height",ee.height),Lt.insertBefore(At,Lt.firstChild)}Object.keys(j).forEach(function(Tt){var zt=j[Tt];if(zt.link){var Mt=Se("#"+e+' [id="'+Tt+'"]');if(Mt){var Jt=document.createElementNS("http://www.w3.org/2000/svg","a");Jt.setAttributeNS("http://www.w3.org/2000/svg","class",zt.classes.join(" ")),Jt.setAttributeNS("http://www.w3.org/2000/svg","href",zt.link),Jt.setAttributeNS("http://www.w3.org/2000/svg","rel","noopener"),zt.linkTarget&&Jt.setAttributeNS("http://www.w3.org/2000/svg","target",zt.linkTarget);var yt=Mt.insert(function(){return Jt},":first-child"),ce=Mt.select(".label-container");ce&&yt.append(function(){return ce.node()});var ve=Mt.select(".label");ve&&yt.append(function(){return ve.node()})}}})};function em(t,e){(e==null||e>t.length)&&(e=t.length);for(var i=0,u=new Array(e);i<e;i++)u[i]=t[i];return u}var nm,vp,As="",rm="",im="",Vc=[],md=[],_p="",bh=[],vd=[],Gc="",bp=["active","done","crit","milestone"],_d=[],bd=!1,am=!1,om=0,sm=function(t,e,i,u){return!(u.indexOf(t.format(e.trim()))>=0)&&(t.isoWeekday()>=6&&i.indexOf("weekends")>=0||i.indexOf(t.format("dddd").toLowerCase())>=0||i.indexOf(t.format(e.trim()))>=0)},cm=function(t,e,i,u){if(i.length&&!t.manualEndTime){var d=c()(t.startTime,e,!0);d.add(1,"d");var g=c()(t.endTime,e,!0),v=um(d,g,e,i,u);t.endTime=g.toDate(),t.renderEndTime=v}},um=function(t,e,i,u,d){for(var g=!1,v=null;t<=e;)g||(v=e.toDate()),(g=sm(t,i,u,d))&&e.add(1,"d"),t.add(1,"d");return v},Qu=function(t,e,i){i=i.trim();var u=/^after\s+([\d\w- ]+)/.exec(i.trim());if(u!==null){var d=null;if(u[1].split(" ").forEach(function(w){var C=Xc(w);C!==void 0&&(d?C.endTime>d.endTime&&(d=C):d=C)}),d)return d.endTime;var g=new Date;return g.setHours(0,0,0,0),g}var v=c()(i,e.trim(),!0);return v.isValid()?v.toDate():(p.debug("Invalid date:"+i),p.debug("With date format:"+e.trim()),new Date)},lm=function(t,e){if(t!==null)switch(t[2]){case"s":e.add(t[1],"seconds");break;case"m":e.add(t[1],"minutes");break;case"h":e.add(t[1],"hours");break;case"d":e.add(t[1],"days");break;case"w":e.add(t[1],"weeks")}return e.toDate()},hm=function(t,e,i,u){u=u||!1,i=i.trim();var d=c()(i,e.trim(),!0);return d.isValid()?(u&&d.add(1,"d"),d.toDate()):lm(/^([\d]+)([wdhms])/.exec(i.trim()),c()(t))},wh=0,Zc=function(t){return t===void 0?"task"+(wh+=1):t},Li=[],a4={},Xc=function(t){var e=a4[t];return Li[e]},o4=function(){for(var t=function(u){var d=Li[u],g="";switch(Li[u].raw.startTime.type){case"prevTaskEnd":var v=Xc(d.prevTaskId);d.startTime=v.endTime;break;case"getStartDate":(g=Qu(0,As,Li[u].raw.startTime.startData))&&(Li[u].startTime=g)}return Li[u].startTime&&(Li[u].endTime=hm(Li[u].startTime,As,Li[u].raw.endTime.data,bd),Li[u].endTime&&(Li[u].processed=!0,Li[u].manualEndTime=c()(Li[u].raw.endTime.data,"YYYY-MM-DD",!0).isValid(),cm(Li[u],As,md,Vc))),Li[u].processed},e=!0,i=0;i<Li.length;i++)t(i),e=e&&Li[i].processed;return e},s4=function(t,e){t.split(",").forEach(function(i){var u=Xc(i);u!==void 0&&u.classes.push(e)})},c4=function(t,e){_d.push(function(){var i=document.querySelector('[id="'.concat(t,'"]'));i!==null&&i.addEventListener("click",function(){e()})}),_d.push(function(){var i=document.querySelector('[id="'.concat(t,'-text"]'));i!==null&&i.addEventListener("click",function(){e()})})};const wd={parseDirective:function(t,e,i){da.parseDirective(this,t,e,i)},getConfig:function(){return ae().gantt},clear:function(){bh=[],vd=[],Gc="",_d=[],_p="",wh=0,nm=void 0,vp=void 0,Li=[],As="",rm="",im="",Vc=[],md=[],bd=!1,am=!1,om=0},setDateFormat:function(t){As=t},getDateFormat:function(){return As},enableInclusiveEndDates:function(){bd=!0},endDatesAreInclusive:function(){return bd},enableTopAxis:function(){am=!0},topAxisEnabled:function(){return am},setAxisFormat:function(t){rm=t},getAxisFormat:function(){return rm},setTodayMarker:function(t){im=t},getTodayMarker:function(){return im},setTitle:function(t){_p=t},getTitle:function(){return _p},addSection:function(t){Gc=t,bh.push(t)},getSections:function(){return bh},getTasks:function(){for(var t=o4(),e=0;!t&&e<10;)t=o4(),e++;return vd=Li},addTask:function(t,e){var i={section:Gc,type:Gc,processed:!1,manualEndTime:!1,renderEndTime:null,raw:{data:e},task:t,classes:[]},u=function(g,v){var w=(v.substr(0,1)===":"?v.substr(1,v.length):v).split(","),C={};u4(w,C,bp);for(var S=0;S<w.length;S++)w[S]=w[S].trim();switch(w.length){case 1:C.id=Zc(),C.startTime={type:"prevTaskEnd",id:g},C.endTime={data:w[0]};break;case 2:C.id=Zc(),C.startTime={type:"getStartDate",startData:w[0]},C.endTime={data:w[1]};break;case 3:C.id=Zc(w[0]),C.startTime={type:"getStartDate",startData:w[1]},C.endTime={data:w[2]}}return C}(vp,e);i.raw.startTime=u.startTime,i.raw.endTime=u.endTime,i.id=u.id,i.prevTaskId=vp,i.active=u.active,i.done=u.done,i.crit=u.crit,i.milestone=u.milestone,i.order=om,om++;var d=Li.push(i);vp=i.id,a4[i.id]=d-1},findTaskById:Xc,addTaskOrg:function(t,e){var i={section:Gc,type:Gc,description:t,task:t,classes:[]},u=function(d,g){var v=(g.substr(0,1)===":"?g.substr(1,g.length):g).split(","),w={};u4(v,w,bp);for(var C=0;C<v.length;C++)v[C]=v[C].trim();var S="";switch(v.length){case 1:w.id=Zc(),w.startTime=d.endTime,S=v[0];break;case 2:w.id=Zc(),w.startTime=Qu(0,As,v[0]),S=v[1];break;case 3:w.id=Zc(v[0]),w.startTime=Qu(0,As,v[1]),S=v[2]}return S&&(w.endTime=hm(w.startTime,As,S,bd),w.manualEndTime=c()(S,"YYYY-MM-DD",!0).isValid(),cm(w,As,md,Vc)),w}(nm,e);i.startTime=u.startTime,i.endTime=u.endTime,i.id=u.id,i.active=u.active,i.done=u.done,i.crit=u.crit,i.milestone=u.milestone,nm=i,vd.push(i)},setIncludes:function(t){Vc=t.toLowerCase().split(/[\s,]+/)},getIncludes:function(){return Vc},setExcludes:function(t){md=t.toLowerCase().split(/[\s,]+/)},getExcludes:function(){return md},setClickEvent:function(t,e,i){t.split(",").forEach(function(u){(function(d,g,v){if(ae().securityLevel==="loose"&&g!==void 0){var w=[];if(typeof v=="string"){w=v.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(var C=0;C<w.length;C++){var S=w[C].trim();S.charAt(0)==='"'&&S.charAt(S.length-1)==='"'&&(S=S.substr(1,S.length-2)),w[C]=S}}w.length===0&&w.push(d),Xc(d)!==void 0&&c4(d,function(){var L;Kn.runFunc.apply(Kn,[g].concat(function(j){if(Array.isArray(j))return em(j)}(L=w)||function(j){if(typeof Symbol!="undefined"&&j[Symbol.iterator]!=null||j["@@iterator"]!=null)return Array.from(j)}(L)||function(j,P){if(j){if(typeof j=="string")return em(j,P);var U=Object.prototype.toString.call(j).slice(8,-1);return U==="Object"&&j.constructor&&(U=j.constructor.name),U==="Map"||U==="Set"?Array.from(j):U==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(U)?em(j,P):void 0}}(L)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()))})}})(u,e,i)}),s4(t,"clickable")},setLink:function(t,e){var i=e;ae().securityLevel!=="loose"&&(i=(0,Uu.sanitizeUrl)(e)),t.split(",").forEach(function(u){Xc(u)!==void 0&&c4(u,function(){window.open(i,"_self")})}),s4(t,"clickable")},bindFunctions:function(t){_d.forEach(function(e){e(t)})},durationToDate:lm,isInvalidDate:sm};function u4(t,e,i){for(var u=!0;u;)u=!1,i.forEach(function(d){var g=new RegExp("^\\s*"+d+"\\s*$");t[0].match(g)&&(e[d]=!0,t.shift(1),u=!0)})}var Kc,Xa=o(9959),l4=o.n(Xa);Xa.parser.yy=wd;const h4=function(t,e){var i=ae().gantt;Xa.parser.yy.clear(),Xa.parser.parse(t);var u=document.getElementById(e);(Kc=u.parentElement.offsetWidth)===void 0&&(Kc=1200),i.useWidth!==void 0&&(Kc=i.useWidth);var d=Xa.parser.yy.getTasks(),g=d.length*(i.barHeight+i.barGap)+2*i.topPadding;u.setAttribute("viewBox","0 0 "+Kc+" "+g);for(var v=Se('[id="'.concat(e,'"]')),w=function(){return Us.apply(c_(Pv,Xw,qs,Rg,w0,Al,b0,of,Cl,Yv).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}().domain([D(d,function(j){return j.startTime}),k(d,function(j){return j.endTime})]).rangeRound([0,Kc-i.leftPadding-i.rightPadding]),C=[],S=0;S<d.length;S++)C.push(d[S].type);var L=C;C=function(j){for(var P={},U=[],ot=0,vt=j.length;ot<vt;++ot)Object.prototype.hasOwnProperty.call(P,j[ot])||(P[j[ot]]=!0,U.push(j[ot]));return U}(C),d.sort(function(j,P){var U=j.startTime,ot=P.startTime,vt=0;return U>ot?vt=1:U<ot&&(vt=-1),vt}),function(j,P,U){var ot=i.barHeight,vt=ot+i.barGap,bt=i.topPadding,kt=i.leftPadding;Ov().domain([0,C.length]).range(["#00B9FA","#F95002"]).interpolate(Pw),function(_t,lt,Wt,Ot,gt,Lt,ee,At){var Tt=Lt.reduce(function(ve,me){var Me=me.startTime;return ve?Math.min(ve,Me):Me},0),zt=Lt.reduce(function(ve,me){var Me=me.endTime;return ve?Math.max(ve,Me):Me},0),Mt=Xa.parser.yy.getDateFormat();if(Tt&&zt){for(var Jt=[],yt=null,ce=c()(Tt);ce.valueOf()<=zt;)Xa.parser.yy.isInvalidDate(ce,Mt,ee,At)?yt?yt.end=ce.clone():yt={start:ce.clone(),end:ce.clone()}:yt&&(Jt.push(yt),yt=null),ce.add(1,"d");v.append("g").selectAll("rect").data(Jt).enter().append("rect").attr("id",function(ve){return"exclude-"+ve.start.format("YYYY-MM-DD")}).attr("x",function(ve){return w(ve.start)+Wt}).attr("y",i.gridLineStartPadding).attr("width",function(ve){var me=ve.end.clone().add(1,"day");return w(me)-w(ve.start)}).attr("height",gt-lt-i.gridLineStartPadding).attr("transform-origin",function(ve,me){return(w(ve.start)+Wt+.5*(w(ve.end)-w(ve.start))).toString()+"px "+(me*_t+.5*gt).toString()+"px"}).attr("class","exclude-range")}}(vt,bt,kt,0,U,j,Xa.parser.yy.getExcludes(),Xa.parser.yy.getIncludes()),function(_t,lt,Wt,Ot){var gt,Lt=(gt=w,it(3,gt)).tickSize(-Ot+lt+i.gridLineStartPadding).tickFormat(ho(Xa.parser.yy.getAxisFormat()||i.axisFormat||"%Y-%m-%d"));if(v.append("g").attr("class","grid").attr("transform","translate("+_t+", "+(Ot-50)+")").call(Lt).selectAll("text").style("text-anchor","middle").attr("fill","#000").attr("stroke","none").attr("font-size",10).attr("dy","1em"),wd.topAxisEnabled()||i.topAxis){var ee=function(At){return it(1,At)}(w).tickSize(-Ot+lt+i.gridLineStartPadding).tickFormat(ho(Xa.parser.yy.getAxisFormat()||i.axisFormat||"%Y-%m-%d"));v.append("g").attr("class","grid").attr("transform","translate("+_t+", "+lt+")").call(ee).selectAll("text").style("text-anchor","middle").attr("fill","#000").attr("stroke","none").attr("font-size",10)}}(kt,bt,0,U),function(_t,lt,Wt,Ot,gt,Lt,ee){v.append("g").selectAll("rect").data(_t).enter().append("rect").attr("x",0).attr("y",function(Tt,zt){return Tt.order*lt+Wt-2}).attr("width",function(){return ee-i.rightPadding/2}).attr("height",lt).attr("class",function(Tt){for(var zt=0;zt<C.length;zt++)if(Tt.type===C[zt])return"section section"+zt%i.numberSectionStyles;return"section section0"});var At=v.append("g").selectAll("rect").data(_t).enter();At.append("rect").attr("id",function(Tt){return Tt.id}).attr("rx",3).attr("ry",3).attr("x",function(Tt){return Tt.milestone?w(Tt.startTime)+Ot+.5*(w(Tt.endTime)-w(Tt.startTime))-.5*gt:w(Tt.startTime)+Ot}).attr("y",function(Tt,zt){return Tt.order*lt+Wt}).attr("width",function(Tt){return Tt.milestone?gt:w(Tt.renderEndTime||Tt.endTime)-w(Tt.startTime)}).attr("height",gt).attr("transform-origin",function(Tt,zt){return zt=Tt.order,(w(Tt.startTime)+Ot+.5*(w(Tt.endTime)-w(Tt.startTime))).toString()+"px "+(zt*lt+Wt+.5*gt).toString()+"px"}).attr("class",function(Tt){var zt="";Tt.classes.length>0&&(zt=Tt.classes.join(" "));for(var Mt=0,Jt=0;Jt<C.length;Jt++)Tt.type===C[Jt]&&(Mt=Jt%i.numberSectionStyles);var yt="";return Tt.active?Tt.crit?yt+=" activeCrit":yt=" active":Tt.done?yt=Tt.crit?" doneCrit":" done":Tt.crit&&(yt+=" crit"),yt.length===0&&(yt=" task"),Tt.milestone&&(yt=" milestone "+yt),"task"+(yt+=Mt)+" "+zt}),At.append("text").attr("id",function(Tt){return Tt.id+"-text"}).text(function(Tt){return Tt.task}).attr("font-size",i.fontSize).attr("x",function(Tt){var zt=w(Tt.startTime),Mt=w(Tt.renderEndTime||Tt.endTime);Tt.milestone&&(zt+=.5*(w(Tt.endTime)-w(Tt.startTime))-.5*gt),Tt.milestone&&(Mt=zt+gt);var Jt=this.getBBox().width;return Jt>Mt-zt?Mt+Jt+1.5*i.leftPadding>ee?zt+Ot-5:Mt+Ot+5:(Mt-zt)/2+zt+Ot}).attr("y",function(Tt,zt){return Tt.order*lt+i.barHeight/2+(i.fontSize/2-2)+Wt}).attr("text-height",gt).attr("class",function(Tt){var zt=w(Tt.startTime),Mt=w(Tt.endTime);Tt.milestone&&(Mt=zt+gt);var Jt=this.getBBox().width,yt="";Tt.classes.length>0&&(yt=Tt.classes.join(" "));for(var ce=0,ve=0;ve<C.length;ve++)Tt.type===C[ve]&&(ce=ve%i.numberSectionStyles);var me="";return Tt.active&&(me=Tt.crit?"activeCritText"+ce:"activeText"+ce),Tt.done?me=Tt.crit?me+" doneCritText"+ce:me+" doneText"+ce:Tt.crit&&(me=me+" critText"+ce),Tt.milestone&&(me+=" milestoneText"),Jt>Mt-zt?Mt+Jt+1.5*i.leftPadding>ee?yt+" taskTextOutsideLeft taskTextOutside"+ce+" "+me:yt+" taskTextOutsideRight taskTextOutside"+ce+" "+me+" width-"+Jt:yt+" taskText taskText"+ce+" "+me+" width-"+Jt})}(j,vt,bt,kt,ot,0,P),function(_t,lt){for(var Wt=[],Ot=0,gt=0;gt<C.length;gt++)Wt[gt]=[C[gt],(Lt=C[gt],ee=L,function(At){for(var Tt=At.length,zt={};Tt;)zt[At[--Tt]]=(zt[At[Tt]]||0)+1;return zt}(ee)[Lt]||0)];var Lt,ee;v.append("g").selectAll("text").data(Wt).enter().append(function(At){var Tt=At[0].split(dr.lineBreakRegex),zt=-(Tt.length-1)/2,Mt=document.createElementNS("http://www.w3.org/2000/svg","text");Mt.setAttribute("dy",zt+"em");for(var Jt=0;Jt<Tt.length;Jt++){var yt=document.createElementNS("http://www.w3.org/2000/svg","tspan");yt.setAttribute("alignment-baseline","central"),yt.setAttribute("x","10"),Jt>0&&yt.setAttribute("dy","1em"),yt.textContent=Tt[Jt],Mt.appendChild(yt)}return Mt}).attr("x",10).attr("y",function(At,Tt){if(!(Tt>0))return At[1]*_t/2+lt;for(var zt=0;zt<Tt;zt++)return Ot+=Wt[Tt-1][1],At[1]*_t/2+Ot*_t+lt}).attr("font-size",i.sectionFontSize).attr("font-size",i.sectionFontSize).attr("class",function(At){for(var Tt=0;Tt<C.length;Tt++)if(At[0]===C[Tt])return"sectionTitle sectionTitle"+Tt%i.numberSectionStyles;return"sectionTitle"})}(vt,bt),function(_t,lt,Wt,Ot){var gt=wd.getTodayMarker();if(gt!=="off"){var Lt=v.append("g").attr("class","today"),ee=new Date,At=Lt.append("line");At.attr("x1",w(ee)+_t).attr("x2",w(ee)+_t).attr("y1",i.titleTopMargin).attr("y2",Ot-i.titleTopMargin).attr("class","today"),gt!==""&&At.attr("style",gt.replace(/,/g,";"))}}(kt,0,0,U)}(d,Kc,g),go(v,g,Kc,i.useMaxWidth),v.append("text").text(Xa.parser.yy.getTitle()).attr("x",Kc/2).attr("y",i.titleTopMargin).attr("class","titleText")};var Bi={},_a=null,Ii={master:_a},Ms="master",f4="LR",wp=0;function fm(){return S2({length:7})}function xh(t,e){p.debug("Entering isfastforwardable:",t.id,e.id);for(var i=0;t.seq<=e.seq&&t!==e&&i<1e3&&(i++,e.parent!=null);){if(Array.isArray(e.parent))return p.debug("In merge commit:",e.parent),xh(t,Bi[e.parent[0]])||xh(t,Bi[e.parent[1]]);e=Bi[e.parent]}return p.debug(t.id,e.id),t.id===e.id}var dm={};function mo(t,e,i){var u=t.indexOf(e);u===-1?t.push(i):t.splice(u,1,i)}function vo(t){var e=t.reduce(function(L,j){return L.seq>j.seq?L:j},t[0]),i="";t.forEach(function(L){i+=L===e?" *":" |"});var u,d,g,v=[i,e.id,e.seq];for(var w in Ii)Ii[w]===e.id&&v.push(w);if(p.debug(v.join(" ")),Array.isArray(e.parent)){var C=Bi[e.parent[0]];mo(t,e,C),t.push(Bi[e.parent[1]])}else{if(e.parent==null)return;var S=Bi[e.parent];mo(t,e,S)}u=t,d=function(L){return L.id},g=Object.create(null),vo(t=u.reduce(function(L,j){var P=d(j);return g[P]||(g[P]=!0,L.push(j)),L},[]))}var xp=function(){var t=Object.keys(Bi).map(function(e){return Bi[e]});return t.forEach(function(e){p.debug(e.id)}),t.sort(function(e,i){return i.seq-e.seq}),t};const kh={setDirection:function(t){f4=t},setOptions:function(t){p.debug("options str",t),t=(t=t&&t.trim())||"{}";try{dm=JSON.parse(t)}catch(e){p.error("error while parsing gitGraph options",e.message)}},getOptions:function(){return dm},commit:function(t){var e={id:fm(),message:t,seq:wp++,parent:_a==null?null:_a.id};_a=e,Bi[e.id]=e,Ii[Ms]=e.id,p.debug("in pushCommit "+e.id)},branch:function(t){Ii[t]=_a!=null?_a.id:null,p.debug("in createBranch")},merge:function(t){var e=Bi[Ii[Ms]],i=Bi[Ii[t]];if(function(d,g){return d.seq>g.seq&&xh(g,d)}(e,i))p.debug("Already merged");else{if(xh(e,i))Ii[Ms]=Ii[t],_a=Bi[Ii[Ms]];else{var u={id:fm(),message:"merged branch "+t+" into "+Ms,seq:wp++,parent:[_a==null?null:_a.id,Ii[t]]};_a=u,Bi[u.id]=u,Ii[Ms]=u.id}p.debug(Ii),p.debug("in mergeBranch")}},checkout:function(t){p.debug("in checkout");var e=Ii[Ms=t];_a=Bi[e]},reset:function(t){p.debug("in reset",t);var e=t.split(":")[0],i=parseInt(t.split(":")[1]),u=e==="HEAD"?_a:Bi[Ii[e]];for(p.debug(u,i);i>0;)if(i--,!(u=Bi[u.parent])){var d="Critical error - unique parent commit not found during reset";throw p.error(d),d}_a=u,Ii[Ms]=u.id},prettyPrint:function(){p.debug(Bi),vo([xp()[0]])},clear:function(){Bi={},Ii={master:_a=null},Ms="master",wp=0},getBranchesAsObjArray:function(){var t=[];for(var e in Ii)t.push({name:e,commit:Bi[Ii[e]]});return t},getBranches:function(){return Ii},getCommits:function(){return Bi},getCommitsArray:xp,getCurrentBranch:function(){return Ms},getDirection:function(){return f4},getHead:function(){return _a}};var Ju,T6=o(2553),d4=o.n(T6),Ya={},qn={nodeSpacing:150,nodeFillColor:"yellow",nodeStrokeWidth:2,nodeStrokeColor:"grey",lineStrokeWidth:4,branchOffset:50,lineColor:"grey",leftMargin:50,branchColors:["#442f74","#983351","#609732","#AA9A39"],nodeRadius:10,nodeLabel:{width:75,height:100,x:-25,y:0}},xd={};function Th(t,e,i,u){var d=ns(u,jr),g=qn.branchColors[i%qn.branchColors.length],v=Co().x(function(w){return Math.round(w.x)}).y(function(w){return Math.round(w.y)}).curve(d);t.append("svg:path").attr("d",v(e)).style("stroke",g).style("stroke-width",qn.lineStrokeWidth).style("fill","none")}function pm(t,e){e=e||t.node().getBBox();var i=t.node().getCTM();return{left:i.e+e.x*i.a,top:i.f+e.y*i.d,width:e.width,height:e.height}}function gm(t,e,i,u,d){p.debug("svgDrawLineForCommits: ",e,i);var g=pm(t.select("#node-"+e+" circle")),v=pm(t.select("#node-"+i+" circle"));switch(u){case"LR":if(g.left-v.left>qn.nodeSpacing){var w={x:g.left-qn.nodeSpacing,y:v.top+v.height/2};Th(t,[w,{x:v.left+v.width,y:v.top+v.height/2}],d,"linear"),Th(t,[{x:g.left,y:g.top+g.height/2},{x:g.left-qn.nodeSpacing/2,y:g.top+g.height/2},{x:g.left-qn.nodeSpacing/2,y:w.y},w],d)}else Th(t,[{x:g.left,y:g.top+g.height/2},{x:g.left-qn.nodeSpacing/2,y:g.top+g.height/2},{x:g.left-qn.nodeSpacing/2,y:v.top+v.height/2},{x:v.left+v.width,y:v.top+v.height/2}],d);break;case"BT":if(v.top-g.top>qn.nodeSpacing){var C={x:v.left+v.width/2,y:g.top+g.height+qn.nodeSpacing};Th(t,[C,{x:v.left+v.width/2,y:v.top}],d,"linear"),Th(t,[{x:g.left+g.width/2,y:g.top+g.height},{x:g.left+g.width/2,y:g.top+g.height+qn.nodeSpacing/2},{x:v.left+v.width/2,y:C.y-qn.nodeSpacing/2},C],d)}else Th(t,[{x:g.left+g.width/2,y:g.top+g.height},{x:g.left+g.width/2,y:g.top+qn.nodeSpacing/2},{x:v.left+v.width/2,y:v.top-qn.nodeSpacing/2},{x:v.left+v.width/2,y:v.top}],d)}}function p4(t,e){return t.select(e).node().cloneNode(!0)}function ym(t,e,i,u){var d,g=Object.keys(Ya).length;if(typeof e=="string"){var v=0;do{if(v++,d=Ya[e],p.debug("in renderCommitHistory",d.id,d.seq),t.select("#node-"+e).size()>0)return;t.append(function(){return p4(t,"#def-commit")}).attr("class","commit").attr("id",function(){return"node-"+d.id}).attr("transform",function(){switch(u){case"LR":return"translate("+(d.seq*qn.nodeSpacing+qn.leftMargin)+", "+Ju*qn.branchOffset+")";case"BT":return"translate("+(Ju*qn.branchOffset+qn.leftMargin)+", "+(g-d.seq)*qn.nodeSpacing+")"}}).attr("fill",qn.nodeFillColor).attr("stroke",qn.nodeStrokeColor).attr("stroke-width",qn.nodeStrokeWidth);var w=void 0;for(var C in i)if(i[C].commit===d){w=i[C];break}w&&(p.debug("found branch ",w.name),t.select("#node-"+d.id+" p").append("xhtml:span").attr("class","branch-label").text(w.name+", ")),t.select("#node-"+d.id+" p").append("xhtml:span").attr("class","commit-id").text(d.id),d.message!==""&&u==="BT"&&t.select("#node-"+d.id+" p").append("xhtml:span").attr("class","commit-msg").text(", "+d.message),e=d.parent}while(e&&Ya[e]&&v<1e3)}Array.isArray(e)&&(p.debug("found merge commmit",e),ym(t,e[0],i,u),Ju++,ym(t,e[1],i,u),Ju--)}function mm(t,e,i,u){u=u||0;for(var d=0;e.seq>0&&!e.lineDrawn&&d<1e3;)d++,typeof e.parent=="string"?(gm(t,e.id,e.parent,i,u),e.lineDrawn=!0,e=Ya[e.parent]):Array.isArray(e.parent)&&(gm(t,e.id,e.parent[0],i,u),gm(t,e.id,e.parent[1],i,u+1),mm(t,Ya[e.parent[1]],i,u+1),e.lineDrawn=!0,e=Ya[e.parent[0]])}const g4=function(t){xd=t};var kd="",kp=!1;const y4={setMessage:function(t){p.debug("Setting message to: "+t),kd=t},getMessage:function(){return kd},setInfo:function(t){kp=t},getInfo:function(){return kp}};var vm=o(6765),m4=o.n(vm),_m={};const v4=function(t){Object.keys(t).forEach(function(e){_m[e]=t[e]})};var bm=o(7062),wm=o.n(bm),Tp={},Ep="",xm=!1;const Sp={parseDirective:function(t,e,i){da.parseDirective(this,t,e,i)},getConfig:function(){return ae().pie},addSection:function(t,e){Tp[t]===void 0&&(Tp[t]=e,p.debug("Added new section :",t))},getSections:function(){return Tp},cleanupValue:function(t){return t.substring(0,1)===":"&&(t=t.substring(1).trim()),Number(t.trim())},clear:function(){Tp={},Ep="",xm=!1},setTitle:function(t){Ep=t},getTitle:function(){return Ep},setShowData:function(t){xm=t},getShowData:function(){return xm}};var Qc,Ds=ae();const E6=function(t,e){try{Ds=ae();var i=wm().parser;i.yy=Sp,p.debug(`Rendering info diagram
|
|
`+t),i.yy.clear(),i.parse(t),p.debug("Parsed info diagram");var u=document.getElementById(e);(Qc=u.parentElement.offsetWidth)===void 0&&(Qc=1200),Ds.useWidth!==void 0&&(Qc=Ds.useWidth),Ds.pie.useWidth!==void 0&&(Qc=Ds.pie.useWidth);var d=Se("#"+e);go(d,450,Qc,Ds.pie.useMaxWidth),u.setAttribute("viewBox","0 0 "+Qc+" 450");var g=Math.min(Qc,450)/2-40,v=d.append("g").attr("transform","translate("+Qc/2+",225)"),w=Sp.getSections(),C=0;Object.keys(w).forEach(function(bt){C+=w[bt]});var S=Ds.themeVariables,L=[S.pie1,S.pie2,S.pie3,S.pie4,S.pie5,S.pie6,S.pie7,S.pie8,S.pie9,S.pie10,S.pie11,S.pie12],j=kc().range(L),P=function(){var bt=Pl,kt=R0,_t=null,lt=xr(0),Wt=xr(vf),Ot=xr(0);function gt(Lt){var ee,At,Tt,zt,Mt,Jt=(Lt=A_(Lt)).length,yt=0,ce=new Array(Jt),ve=new Array(Jt),me=+lt.apply(this,arguments),Me=Math.min(vf,Math.max(-vf,Wt.apply(this,arguments)-me)),$e=Math.min(Math.abs(Me)/Jt,Ot.apply(this,arguments)),ze=$e*(Me<0?-1:1);for(ee=0;ee<Jt;++ee)(Mt=ve[ce[ee]=ee]=+bt(Lt[ee],ee,Lt))>0&&(yt+=Mt);for(kt!=null?ce.sort(function(fn,Ne){return kt(ve[fn],ve[Ne])}):_t!=null&&ce.sort(function(fn,Ne){return _t(Lt[fn],Lt[Ne])}),ee=0,Tt=yt?(Me-Jt*ze)/yt:0;ee<Jt;++ee,me=zt)At=ce[ee],zt=me+((Mt=ve[At])>0?Mt*Tt:0)+ze,ve[At]={data:Lt[At],index:ee,value:Mt,startAngle:me,endAngle:zt,padAngle:$e};return ve}return gt.value=function(Lt){return arguments.length?(bt=typeof Lt=="function"?Lt:xr(+Lt),gt):bt},gt.sortValues=function(Lt){return arguments.length?(kt=Lt,_t=null,gt):kt},gt.sort=function(Lt){return arguments.length?(_t=Lt,kt=null,gt):_t},gt.startAngle=function(Lt){return arguments.length?(lt=typeof Lt=="function"?Lt:xr(+Lt),gt):lt},gt.endAngle=function(Lt){return arguments.length?(Wt=typeof Lt=="function"?Lt:xr(+Lt),gt):Wt},gt.padAngle=function(Lt){return arguments.length?(Ot=typeof Lt=="function"?Lt:xr(+Lt),gt):Ot},gt}().value(function(bt){return bt[1]}),U=P(Object.entries(w)),ot=ay().innerRadius(0).outerRadius(g);v.selectAll("mySlices").data(U).enter().append("path").attr("d",ot).attr("fill",function(bt){return j(bt.data[0])}).attr("class","pieCircle"),v.selectAll("mySlices").data(U).enter().append("text").text(function(bt){return(bt.data[1]/C*100).toFixed(0)+"%"}).attr("transform",function(bt){return"translate("+ot.centroid(bt)+")"}).style("text-anchor","middle").attr("class","slice"),v.append("text").text(i.yy.getTitle()).attr("x",0).attr("y",-200).attr("class","pieTitleText");var vt=v.selectAll(".legend").data(j.domain()).enter().append("g").attr("class","legend").attr("transform",function(bt,kt){return"translate(216,"+(22*kt-22*j.domain().length/2)+")"});vt.append("rect").attr("width",18).attr("height",18).style("fill",j).style("stroke",j),vt.data(U).append("text").attr("x",22).attr("y",14).text(function(bt){return i.yy.getShowData()||Ds.showData||Ds.pie.showData?bt.data[0]+" ["+bt.data[1]+"]":bt.data[0]})}catch(bt){p.error("Error while rendering info diagram"),p.error(bt)}};var Td=o(3176),_4=o.n(Td),Cp=[],ba={},Jc={},lc={},Eh={};const Sh={RequirementType:{REQUIREMENT:"Requirement",FUNCTIONAL_REQUIREMENT:"Functional Requirement",INTERFACE_REQUIREMENT:"Interface Requirement",PERFORMANCE_REQUIREMENT:"Performance Requirement",PHYSICAL_REQUIREMENT:"Physical Requirement",DESIGN_CONSTRAINT:"Design Constraint"},RiskLevel:{LOW_RISK:"Low",MED_RISK:"Medium",HIGH_RISK:"High"},VerifyType:{VERIFY_ANALYSIS:"Analysis",VERIFY_DEMONSTRATION:"Demonstration",VERIFY_INSPECTION:"Inspection",VERIFY_TEST:"Test"},Relationships:{CONTAINS:"contains",COPIES:"copies",DERIVES:"derives",SATISFIES:"satisfies",VERIFIES:"verifies",REFINES:"refines",TRACES:"traces"},parseDirective:function(t,e,i){da.parseDirective(this,t,e,i)},getConfig:function(){return ae().req},addRequirement:function(t,e){return Jc[t]===void 0&&(Jc[t]={name:t,type:e,id:ba.id,text:ba.text,risk:ba.risk,verifyMethod:ba.verifyMethod}),ba={},Jc[t]},getRequirements:function(){return Jc},setNewReqId:function(t){ba!==void 0&&(ba.id=t)},setNewReqText:function(t){ba!==void 0&&(ba.text=t)},setNewReqRisk:function(t){ba!==void 0&&(ba.risk=t)},setNewReqVerifyMethod:function(t){ba!==void 0&&(ba.verifyMethod=t)},addElement:function(t){return Eh[t]===void 0&&(Eh[t]={name:t,type:lc.type,docRef:lc.docRef},p.info("Added new requirement: ",t)),lc={},Eh[t]},getElements:function(){return Eh},setNewElementType:function(t){lc!==void 0&&(lc.type=t)},setNewElementDocRef:function(t){lc!==void 0&&(lc.docRef=t)},addRelationship:function(t,e,i){Cp.push({type:t,src:e,dst:i})},getRelationships:function(){return Cp},clear:function(){Cp=[],ba={},Jc={},lc={},Eh={}}};var km={CONTAINS:"contains",ARROW:"arrow"};const b4=km;var Mi={},w4=0,Ed=function(t,e){return t.insert("rect","#"+e).attr("class","req reqBox").attr("x",0).attr("y",0).attr("width",Mi.rect_min_width+"px").attr("height",Mi.rect_min_height+"px")},x4=function(t,e,i){var u=Mi.rect_min_width/2,d=t.append("text").attr("class","req reqLabel reqTitle").attr("id",e).attr("x",u).attr("y",Mi.rect_padding).attr("dominant-baseline","hanging"),g=0;i.forEach(function(w){g==0?d.append("tspan").attr("text-anchor","middle").attr("x",Mi.rect_min_width/2).attr("dy",0).text(w):d.append("tspan").attr("text-anchor","middle").attr("x",Mi.rect_min_width/2).attr("dy",.75*Mi.line_height).text(w),g++});var v=1.5*Mi.rect_padding+g*Mi.line_height*.75;return t.append("line").attr("class","req-title-line").attr("x1","0").attr("x2",Mi.rect_min_width).attr("y1",v).attr("y2",v),{titleNode:d,y:v}},k4=function(t,e,i,u){var d=t.append("text").attr("class","req reqLabel").attr("id",e).attr("x",Mi.rect_padding).attr("y",u).attr("dominant-baseline","hanging"),g=0,v=[];return i.forEach(function(w){for(var C=w.length;C>30&&g<3;){var S=w.substring(0,30);C=(w=w.substring(30,w.length)).length,v[v.length]=S,g++}if(g==3){var L=v[v.length-1];v[v.length-1]=L.substring(0,L.length-4)+"..."}else v[v.length]=w;g=0}),v.forEach(function(w){d.append("tspan").attr("x",Mi.rect_padding).attr("dy",Mi.line_height).text(w)}),d},Ch=function(t){return t.replace(/\s/g,"").replace(/\./g,"_")};const tl=function(t){if(t!==void 0)for(var e=Object.keys(t),i=0;i<e.length;i++)Mi[e[i]]=t[e[i]]},Ah=function(t,e){Td.parser.yy=Sh,Td.parser.yy.clear(),Td.parser.parse(t);var i=Se("[id='".concat(e,"']"));(function(j,P){var U=j.append("defs").append("marker").attr("id",km.CONTAINS+"_line_ending").attr("refX",0).attr("refY",P.line_height/2).attr("markerWidth",P.line_height).attr("markerHeight",P.line_height).attr("orient","auto").append("g");U.append("circle").attr("cx",P.line_height/2).attr("cy",P.line_height/2).attr("r",P.line_height/2).attr("fill","none"),U.append("line").attr("x1",0).attr("x2",P.line_height).attr("y1",P.line_height/2).attr("y2",P.line_height/2).attr("stroke-width",1),U.append("line").attr("y1",0).attr("y2",P.line_height).attr("x1",P.line_height/2).attr("x2",P.line_height/2).attr("stroke-width",1),j.append("defs").append("marker").attr("id",km.ARROW+"_line_ending").attr("refX",P.line_height).attr("refY",.5*P.line_height).attr("markerWidth",P.line_height).attr("markerHeight",P.line_height).attr("orient","auto").append("path").attr("d",`M0,0
|
|
L`.concat(P.line_height,",").concat(P.line_height/2,`
|
|
M`).concat(P.line_height,",").concat(P.line_height/2,`
|
|
L0,`).concat(P.line_height)).attr("stroke-width",1)})(i,Mi);var u=new(Wi()).Graph({multigraph:!1,compound:!1,directed:!0}).setGraph({rankdir:Mi.layoutDirection,marginx:20,marginy:20,nodesep:100,edgesep:100,ranksep:100}).setDefaultEdgeLabel(function(){return{}}),d=Sh.getRequirements(),g=Sh.getElements(),v=Sh.getRelationships();(function(j,P,U){Object.keys(j).forEach(function(ot){var vt=j[ot];ot=Ch(ot),p.info("Added new requirement: ",ot);var bt=U.append("g").attr("id",ot),kt=Ed(bt,"req-"+ot),_t=x4(bt,ot+"_title",["<<".concat(vt.type,">>"),"".concat(vt.name)]);k4(bt,ot+"_body",["Id: ".concat(vt.id),"Text: ".concat(vt.text),"Risk: ".concat(vt.risk),"Verification: ".concat(vt.verifyMethod)],_t.y);var lt=kt.node().getBBox();P.setNode(ot,{width:lt.width,height:lt.height,shape:"rect",id:ot})})})(d,u,i),function(j,P,U){Object.keys(j).forEach(function(ot){var vt=j[ot],bt=Ch(ot),kt=U.append("g").attr("id",bt),_t="element-"+bt,lt=Ed(kt,_t),Wt=x4(kt,_t+"_title",["<<Element>>","".concat(ot)]);k4(kt,_t+"_body",["Type: ".concat(vt.type||"Not Specified"),"Doc Ref: ".concat(vt.docRef||"None")],Wt.y);var Ot=lt.node().getBBox();P.setNode(bt,{width:Ot.width,height:Ot.height,shape:"rect",id:bt})})}(g,u,i),function(j,P){j.forEach(function(U){var ot=Ch(U.src),vt=Ch(U.dst);P.setEdge(ot,vt,{relationship:U})})}(v,u),ld().layout(u),function(j,P){P.nodes().forEach(function(U){U!==void 0&&P.node(U)!==void 0&&(j.select("#"+U),j.select("#"+U).attr("transform","translate("+(P.node(U).x-P.node(U).width/2)+","+(P.node(U).y-P.node(U).height/2)+" )"))})}(i,u),v.forEach(function(j){(function(P,U,ot,vt){var bt=ot.edge(Ch(U.src),Ch(U.dst)),kt=Co().x(function(lt){return lt.x}).y(function(lt){return lt.y}),_t=P.insert("path","#"+vt).attr("class","er relationshipLine").attr("d",kt(bt.points)).attr("fill","none");U.type==Sh.Relationships.CONTAINS?_t.attr("marker-start","url("+dr.getUrl(Mi.arrowMarkerAbsolute)+"#"+U.type+"_line_ending)"):(_t.attr("stroke-dasharray","10,7"),_t.attr("marker-end","url("+dr.getUrl(Mi.arrowMarkerAbsolute)+"#"+b4.ARROW+"_line_ending)")),function(lt,Wt,Ot,gt){var Lt=Wt.node().getTotalLength(),ee=Wt.node().getPointAtLength(.5*Lt),At="rel"+w4;w4++;var Tt=lt.append("text").attr("class","req relationshipLabel").attr("id",At).attr("x",ee.x).attr("y",ee.y).attr("text-anchor","middle").attr("dominant-baseline","middle").text(gt).node().getBBox();lt.insert("rect","#"+At).attr("class","req reqLabelBox").attr("x",ee.x-Tt.width/2).attr("y",ee.y-Tt.height/2).attr("width",Tt.width).attr("height",Tt.height).attr("fill","white").attr("fill-opacity","85%")}(P,_t,0,"<<".concat(U.type,">>"))})(i,j,u,e)});var w=Mi.rect_padding,C=i.node().getBBox(),S=C.width+2*w,L=C.height+2*w;go(i,L,S,Mi.useMaxWidth),i.attr("viewBox","".concat(C.x-w," ").concat(C.y-w," ").concat(S," ").concat(L))};var tn=o(6876),S6=o.n(tn),Sd=void 0,tu={},Ns=[],T4="",Tm=!1,E4=!1,Em=!1,Ap=function(t,e,i,u){var d=tu[t];d&&e===d.name&&i==null||(i!=null&&i.text!=null||(i={text:e,wrap:null,type:u}),u!=null&&i.text!=null||(i={text:e,wrap:null,type:u}),tu[t]={name:e,description:i.text,wrap:i.wrap===void 0&&eu()||!!i.wrap,prevActor:Sd,links:{},properties:{},actorCnt:null,rectData:null,type:u||"participant"},Sd&&tu[Sd]&&(tu[Sd].nextActor=t),Sd=t)},C6=function(t){var e,i=0;for(e=0;e<Ns.length;e++)Ns[e].type===Ad.ACTIVE_START&&Ns[e].from.actor===t&&i++,Ns[e].type===Ad.ACTIVE_END&&Ns[e].from.actor===t&&i--;return i},hc=function(t,e){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{text:void 0,wrap:void 0},u=arguments.length>3?arguments[3]:void 0;if(u===Ad.ACTIVE_END){var d=C6(t.actor);if(d<1){var g=new Error("Trying to inactivate an inactive participant ("+t.actor+")");throw g.hash={text:"->>-",token:"->>-",line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["'ACTIVE_PARTICIPANT'"]},g}}return Ns.push({from:t,to:e,message:i.text,wrap:i.wrap===void 0&&eu()||!!i.wrap,type:u}),!0},Cd=function(t){return tu[t]},eu=function(){return Em},Ad={SOLID:0,DOTTED:1,NOTE:2,SOLID_CROSS:3,DOTTED_CROSS:4,SOLID_OPEN:5,DOTTED_OPEN:6,LOOP_START:10,LOOP_END:11,ALT_START:12,ALT_ELSE:13,ALT_END:14,OPT_START:15,OPT_END:16,ACTIVE_START:17,ACTIVE_END:18,PAR_START:19,PAR_AND:20,PAR_END:21,RECT_START:22,RECT_END:23,SOLID_POINT:24,DOTTED_POINT:25},S4=function(t,e,i){i.text,i.wrap===void 0&&eu()||i.wrap;var u=[].concat(t,t);Ns.push({from:u[0],to:u[1],message:i.text,wrap:i.wrap===void 0&&eu()||!!i.wrap,type:Ad.NOTE,placement:e})},C4=function(t,e){var i=Cd(t);try{var u=$u(e.text,ae());u=(u=u.replace(/&/g,"&")).replace(/=/g,"="),Sm(i,JSON.parse(u))}catch(d){p.error("error while parsing actor link text",d)}};function Sm(t,e){if(t.links==null)t.links=e;else for(var i in e)t.links[i]=e[i]}var A4=function(t,e){var i=Cd(t);try{var u=$u(e.text,ae());Cm(i,JSON.parse(u))}catch(d){p.error("error while parsing actor properties text",d)}};function Cm(t,e){if(t.properties==null)t.properties=e;else for(var i in e)t.properties[i]=e[i]}var M4=function(t,e){var i=Cd(t),u=document.getElementById(e.text);try{var d=u.innerHTML,g=JSON.parse(d);g.properties&&Cm(i,g.properties),g.links&&Sm(i,g.links)}catch(v){p.error("error while parsing actor details text",v)}},D4=function(t){T4=t.text,Tm=t.wrap===void 0&&eu()||!!t.wrap};const Md={addActor:Ap,addMessage:function(t,e,i,u){Ns.push({from:t,to:e,message:i.text,wrap:i.wrap===void 0&&eu()||!!i.wrap,answer:u})},addSignal:hc,addLinks:C4,addDetails:M4,addProperties:A4,autoWrap:eu,setWrap:function(t){Em=t},enableSequenceNumbers:function(){E4=!0},showSequenceNumbers:function(){return E4},getMessages:function(){return Ns},getActors:function(){return tu},getActor:Cd,getActorKeys:function(){return Object.keys(tu)},getActorProperty:function(t,e){if(t!==void 0&&t.properties!==void 0)return t.properties[e]},getTitle:function(){return T4},parseDirective:function(t,e,i){da.parseDirective(this,t,e,i)},getConfig:function(){return ae().sequence},getTitleWrapped:function(){return Tm},clear:function(){tu={},Ns=[]},parseMessage:function(t){var e=t.trim(),i={text:e.replace(/^[:]?(?:no)?wrap:/,"").trim(),wrap:e.match(/^[:]?wrap:/)!==null||e.match(/^[:]?nowrap:/)===null&&void 0};return p.debug("parseMessage:",i),i},LINETYPE:Ad,ARROWTYPE:{FILLED:0,OPEN:1},PLACEMENT:{LEFTOF:0,RIGHTOF:1,OVER:2},addNote:S4,setTitle:D4,apply:function t(e){if(e instanceof Array)e.forEach(function(i){t(i)});else switch(e.type){case"addParticipant":Ap(e.actor,e.actor,e.description,"participant");break;case"addActor":Ap(e.actor,e.actor,e.description,"actor");break;case"activeStart":case"activeEnd":hc(e.actor,void 0,void 0,e.signalType);break;case"addNote":S4(e.actor,e.placement,e.text);break;case"addLinks":C4(e.actor,e.text);break;case"addALink":(function(i,u){var d=Cd(i);try{var g={},v=$u(u.text,ae()),w=v.indexOf("@"),C=(v=(v=v.replace(/&/g,"&")).replace(/=/g,"=")).slice(0,w-1).trim(),S=v.slice(w+1).trim();g[C]=S,Sm(d,g)}catch(L){p.error("error while parsing actor link text",L)}})(e.actor,e.text);break;case"addProperties":A4(e.actor,e.text);break;case"addDetails":M4(e.actor,e.text);break;case"addMessage":hc(e.from,e.to,e.msg,e.signalType);break;case"loopStart":hc(void 0,void 0,e.loopText,e.signalType);break;case"loopEnd":case"rectEnd":case"optEnd":case"altEnd":case"parEnd":hc(void 0,void 0,void 0,e.signalType);break;case"rectStart":hc(void 0,void 0,e.color,e.signalType);break;case"optStart":hc(void 0,void 0,e.optText,e.signalType);break;case"altStart":case"else":hc(void 0,void 0,e.altText,e.signalType);break;case"setTitle":D4(e.text);break;case"parStart":case"and":hc(void 0,void 0,e.parText,e.signalType)}}};var Mh=[],nu=function(t,e){var i=t.append("rect");return i.attr("x",e.x),i.attr("y",e.y),i.attr("fill",e.fill),i.attr("stroke",e.stroke),i.attr("width",e.width),i.attr("height",e.height),i.attr("rx",e.rx),i.attr("ry",e.ry),e.class!==void 0&&i.attr("class",e.class),i},Dh=function(t,e){var i;i=function(){var u=document.querySelectorAll(t);u[0].addEventListener("mouseover",function(){Dd("actor"+e+"_popup")}),u[0].addEventListener("mouseout",function(){Nd("actor"+e+"_popup")})},Mh.push(i)},N4=function(t,e,i,u){var d=t.append("image");d.attr("x",e),d.attr("y",i);var g=(0,Uu.sanitizeUrl)(u);d.attr("xlink:href",g)},O4=function(t,e,i,u){var d=t.append("use");d.attr("x",e),d.attr("y",i);var g=(0,Uu.sanitizeUrl)(u);d.attr("xlink:href","#"+g)},Dd=function(t){var e=document.getElementById(t);e!=null&&(e.style.display="block")},Nd=function(t){var e=document.getElementById(t);e!=null&&(e.style.display="none")},ru=function(t,e){var i=0,u=0,d=e.text.split(dr.lineBreakRegex),g=[],v=0,w=function(){return e.y};if(e.valign!==void 0&&e.textMargin!==void 0&&e.textMargin>0)switch(e.valign){case"top":case"start":w=function(){return Math.round(e.y+e.textMargin)};break;case"middle":case"center":w=function(){return Math.round(e.y+(i+u+e.textMargin)/2)};break;case"bottom":case"end":w=function(){return Math.round(e.y+(i+u+2*e.textMargin)-e.textMargin)}}if(e.anchor!==void 0&&e.textMargin!==void 0&&e.width!==void 0)switch(e.anchor){case"left":case"start":e.x=Math.round(e.x+e.textMargin),e.anchor="start",e.dominantBaseline="text-after-edge",e.alignmentBaseline="middle";break;case"middle":case"center":e.x=Math.round(e.x+e.width/2),e.anchor="middle",e.dominantBaseline="middle",e.alignmentBaseline="middle";break;case"right":case"end":e.x=Math.round(e.x+e.width-e.textMargin),e.anchor="end",e.dominantBaseline="text-before-edge",e.alignmentBaseline="middle"}for(var C=0;C<d.length;C++){var S=d[C];e.textMargin!==void 0&&e.textMargin===0&&e.fontSize!==void 0&&(v=C*e.fontSize);var L=t.append("text");if(L.attr("x",e.x),L.attr("y",w()),e.anchor!==void 0&&L.attr("text-anchor",e.anchor).attr("dominant-baseline",e.dominantBaseline).attr("alignment-baseline",e.alignmentBaseline),e.fontFamily!==void 0&&L.style("font-family",e.fontFamily),e.fontSize!==void 0&&L.style("font-size",e.fontSize),e.fontWeight!==void 0&&L.style("font-weight",e.fontWeight),e.fill!==void 0&&L.attr("fill",e.fill),e.class!==void 0&&L.attr("class",e.class),e.dy!==void 0?L.attr("dy",e.dy):v!==0&&L.attr("dy",v),e.tspan){var j=L.append("tspan");j.attr("x",e.x),e.fill!==void 0&&j.attr("fill",e.fill),j.text(S)}else L.text(S);e.valign!==void 0&&e.textMargin!==void 0&&e.textMargin>0&&(u+=(L._groups||L)[0][0].getBBox().height,i=u),g.push(L)}return g},A6=function(t,e){var i=t.append("polygon");return i.attr("points",function(u,d,g,v,w){return u+","+d+" "+(u+g)+","+d+" "+(u+g)+","+(d+v-7)+" "+(u+g-8.4)+","+(d+v)+" "+u+","+(d+v)}(e.x,e.y,e.width,e.height)),i.attr("class","labelBox"),e.y=e.y+e.height/2,ru(t,e),i},Os=-1,M6=function(t,e){t.selectAll&&t.selectAll(".actor-line").attr("class","200").attr("y2",e-55)},L4=function(){return{x:0,y:0,fill:void 0,anchor:void 0,style:"#666",width:void 0,height:void 0,textMargin:0,rx:0,ry:0,tspan:!0,valign:void 0}},D6=function(){return{x:0,y:0,fill:"#EDF2AE",stroke:"#666",width:100,anchor:"start",height:100,rx:0,ry:0}},Mp=function(){function t(d,g,v,w,C,S,L){u(g.append("text").attr("x",v+C/2).attr("y",w+S/2+5).style("text-anchor","middle").text(d),L)}function e(d,g,v,w,C,S,L,j){for(var P=j.actorFontSize,U=j.actorFontFamily,ot=j.actorFontWeight,vt=d.split(dr.lineBreakRegex),bt=0;bt<vt.length;bt++){var kt=bt*P-P*(vt.length-1)/2,_t=g.append("text").attr("x",v+C/2).attr("y",w).style("text-anchor","middle").style("font-size",P).style("font-weight",ot).style("font-family",U);_t.append("tspan").attr("x",v+C/2).attr("dy",kt).text(vt[bt]),_t.attr("y",w+S/2).attr("dominant-baseline","central").attr("alignment-baseline","central"),u(_t,L)}}function i(d,g,v,w,C,S,L,j){var P=g.append("switch"),U=P.append("foreignObject").attr("x",v).attr("y",w).attr("width",C).attr("height",S).append("xhtml:div").style("display","table").style("height","100%").style("width","100%");U.append("div").style("display","table-cell").style("text-align","center").style("vertical-align","middle").text(d),e(d,P,v,w,C,S,L,j),u(U,L)}function u(d,g){for(var v in g)g.hasOwnProperty(v)&&d.attr(v,g[v])}return function(d){return d.textPlacement==="fo"?i:d.textPlacement==="old"?t:e}}(),B4=function(){function t(d,g,v,w,C,S,L){u(g.append("text").attr("x",v).attr("y",w).style("text-anchor","start").text(d),L)}function e(d,g,v,w,C,S,L,j){for(var P=j.actorFontSize,U=j.actorFontFamily,ot=j.actorFontWeight,vt=d.split(dr.lineBreakRegex),bt=0;bt<vt.length;bt++){var kt=bt*P-P*(vt.length-1)/2,_t=g.append("text").attr("x",v).attr("y",w).style("text-anchor","start").style("font-size",P).style("font-weight",ot).style("font-family",U);_t.append("tspan").attr("x",v).attr("dy",kt).text(vt[bt]),_t.attr("y",w+S/2).attr("dominant-baseline","central").attr("alignment-baseline","central"),u(_t,L)}}function i(d,g,v,w,C,S,L,j){var P=g.append("switch"),U=P.append("foreignObject").attr("x",v).attr("y",w).attr("width",C).attr("height",S).append("xhtml:div").style("display","table").style("height","100%").style("width","100%");U.append("div").style("display","table-cell").style("text-align","center").style("vertical-align","middle").text(d),e(d,P,v,w,0,S,L,j),u(U,L)}function u(d,g){for(var v in g)g.hasOwnProperty(v)&&d.attr(v,g[v])}return function(d){return d.textPlacement==="fo"?i:d.textPlacement==="old"?t:e}}();const N6=nu,Nh=function(t,e,i){switch(e.type){case"actor":return function(u,d,g){var v=d.x+d.width/2;d.y===0&&(Os++,u.append("line").attr("id","actor"+Os).attr("x1",v).attr("y1",80).attr("x2",v).attr("y2",2e3).attr("class","actor-line").attr("stroke-width","0.5px").attr("stroke","#999"));var w=u.append("g");w.attr("class","actor-man");var C={x:0,y:0,fill:"#EDF2AE",stroke:"#666",width:100,anchor:"start",height:100,rx:0,ry:0};C.x=d.x,C.y=d.y,C.fill="#eaeaea",C.width=d.width,C.height=d.height,C.class="actor",C.rx=3,C.ry=3,w.append("line").attr("id","actor-man-torso"+Os).attr("x1",v).attr("y1",d.y+25).attr("x2",v).attr("y2",d.y+45),w.append("line").attr("id","actor-man-arms"+Os).attr("x1",v-18).attr("y1",d.y+33).attr("x2",v+18).attr("y2",d.y+33),w.append("line").attr("x1",v-18).attr("y1",d.y+60).attr("x2",v).attr("y2",d.y+45),w.append("line").attr("x1",v).attr("y1",d.y+45).attr("x2",v+16).attr("y2",d.y+60);var S=w.append("circle");S.attr("cx",d.x+d.width/2),S.attr("cy",d.y+10),S.attr("r",15),S.attr("width",d.width),S.attr("height",d.height);var L=w.node().getBBox();return d.height=L.height,Mp(g)(d.description,w,C.x,C.y+35,C.width,C.height,{class:"actor"},g),d.height}(t,e,i);case"participant":return function(u,d,g){var v=d.x+d.width/2,w=u.append("g"),C=w;d.y===0&&(Os++,C.append("line").attr("id","actor"+Os).attr("x1",v).attr("y1",5).attr("x2",v).attr("y2",2e3).attr("class","actor-line").attr("stroke-width","0.5px").attr("stroke","#999"),C=w.append("g"),d.actorCnt=Os,d.links!=null&&(C.attr("id","root-"+Os),Dh("#root-"+Os,Os)));var S={x:0,y:0,fill:"#EDF2AE",stroke:"#666",width:100,anchor:"start",height:100,rx:0,ry:0},L="actor";d.properties!=null&&d.properties.class?L=d.properties.class:S.fill="#eaeaea",S.x=d.x,S.y=d.y,S.width=d.width,S.height=d.height,S.class=L,S.rx=3,S.ry=3;var j=nu(C,S);if(d.rectData=S,d.properties!=null&&d.properties.icon){var P=d.properties.icon.trim();P.charAt(0)==="@"?O4(C,S.x+S.width-20,S.y+10,P.substr(1)):N4(C,S.x+S.width-20,S.y+10,P)}Mp(g)(d.description,C,S.x,S.y,S.width,S.height,{class:"actor"},g);var U=d.height;if(j.node){var ot=j.node().getBBox();d.height=ot.height,U=ot.height}return U}(t,e,i)}},Oh=function(t,e,i,u,d){if(e.links===void 0||e.links===null||Object.keys(e.links).length===0)return{height:0,width:0};var g=e.links,v=e.actorCnt,w=e.rectData,C="none";d&&(C="block !important");var S=t.append("g");S.attr("id","actor"+v+"_popup"),S.attr("class","actorPopupMenu"),S.attr("display",C),Dh("#actor"+v+"_popup",v);var L="";w.class!==void 0&&(L=" "+w.class);var j=w.width>i?w.width:i,P=S.append("rect");if(P.attr("class","actorPopupMenuPanel"+L),P.attr("x",w.x),P.attr("y",w.height),P.attr("fill",w.fill),P.attr("stroke",w.stroke),P.attr("width",j),P.attr("height",w.height),P.attr("rx",w.rx),P.attr("ry",w.ry),g!=null){var U=20;for(var ot in g){var vt=S.append("a"),bt=(0,Uu.sanitizeUrl)(g[ot]);vt.attr("xlink:href",bt),vt.attr("target","_blank"),B4(u)(ot,vt,w.x+10,w.height+U,j,20,{class:"actor"},u),U+=30}}return P.attr("height",U),{height:w.height+U,width:j}},I4=function(t){return t.append("g")},O6=function(t,e,i,u,d){var g={x:0,y:0,fill:"#EDF2AE",stroke:"#666",width:100,anchor:"start",height:100,rx:0,ry:0},v=e.anchored;g.x=e.startx,g.y=e.starty,g.class="activation"+d%3,g.width=e.stopx-e.startx,g.height=i-e.starty,nu(v,g)},Od=function(t,e,i,u){var d=u.boxMargin,g=u.boxTextMargin,v=u.labelBoxHeight,w=u.labelBoxWidth,C=u.messageFontFamily,S=u.messageFontSize,L=u.messageFontWeight,j=t.append("g"),P=function(vt,bt,kt,_t){return j.append("line").attr("x1",vt).attr("y1",bt).attr("x2",kt).attr("y2",_t).attr("class","loopLine")};P(e.startx,e.starty,e.stopx,e.starty),P(e.stopx,e.starty,e.stopx,e.stopy),P(e.startx,e.stopy,e.stopx,e.stopy),P(e.startx,e.starty,e.startx,e.stopy),e.sections!==void 0&&e.sections.forEach(function(vt){P(e.startx,vt.y,e.stopx,vt.y).style("stroke-dasharray","3, 3")});var U={x:0,y:0,fill:void 0,anchor:void 0,style:"#666",width:void 0,height:void 0,textMargin:0,rx:0,ry:0,tspan:!0,valign:void 0};U.text=i,U.x=e.startx,U.y=e.starty,U.fontFamily=C,U.fontSize=S,U.fontWeight=L,U.anchor="middle",U.valign="middle",U.tspan=!1,U.width=w||50,U.height=v||20,U.textMargin=g,U.class="labelText",A6(j,U),(U={x:0,y:0,fill:void 0,anchor:void 0,style:"#666",width:void 0,height:void 0,textMargin:0,rx:0,ry:0,tspan:!0,valign:void 0}).text=e.title,U.x=e.startx+w/2+(e.stopx-e.startx)/2,U.y=e.starty+d+g,U.anchor="middle",U.valign="middle",U.textMargin=g,U.class="loopText",U.fontFamily=C,U.fontSize=S,U.fontWeight=L,U.wrap=!0;var ot=ru(j,U);return e.sectionTitles!==void 0&&e.sectionTitles.forEach(function(vt,bt){if(vt.message){U.text=vt.message,U.x=e.startx+(e.stopx-e.startx)/2,U.y=e.sections[bt].y+d+g,U.class="loopText",U.anchor="middle",U.valign="middle",U.tspan=!1,U.fontFamily=C,U.fontSize=S,U.fontWeight=L,U.wrap=e.wrap,ot=ru(j,U);var kt=Math.round(ot.map(function(_t){return(_t._groups||_t)[0][0].getBBox().height}).reduce(function(_t,lt){return _t+lt}));e.sections[bt].height+=kt-(d+g)}}),e.height=Math.round(e.stopy-e.starty),j},Am=function(t,e){nu(t,{x:e.startx,y:e.starty,width:e.stopx-e.startx,height:e.stopy-e.starty,fill:e.fill,class:"rect"}).lower()},L6=function(t){t.append("defs").append("marker").attr("id","arrowhead").attr("refX",9).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 z")},B6=function(t){t.append("defs").append("marker").attr("id","filled-head").attr("refX",18).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L14,7 L9,1 Z")},R4=function(t){t.append("defs").append("marker").attr("id","sequencenumber").attr("refX",15).attr("refY",15).attr("markerWidth",60).attr("markerHeight",40).attr("orient","auto").append("circle").attr("cx",15).attr("cy",15).attr("r",6)},I6=function(t){var e=t.append("defs").append("marker").attr("id","crosshead").attr("markerWidth",15).attr("markerHeight",8).attr("orient","auto").attr("refX",16).attr("refY",4);e.append("path").attr("fill","black").attr("stroke","#000000").style("stroke-dasharray","0, 0").attr("stroke-width","1px").attr("d","M 9,2 V 6 L16,4 Z"),e.append("path").attr("fill","none").attr("stroke","#000000").style("stroke-dasharray","0, 0").attr("stroke-width","1px").attr("d","M 0,1 L 6,7 M 6,1 L 0,7")},Lh=function(t){t.append("defs").append("symbol").attr("id","database").attr("fill-rule","evenodd").attr("clip-rule","evenodd").append("path").attr("transform","scale(.5)").attr("d","M12.258.001l.256.004.255.005.253.008.251.01.249.012.247.015.246.016.242.019.241.02.239.023.236.024.233.027.231.028.229.031.225.032.223.034.22.036.217.038.214.04.211.041.208.043.205.045.201.046.198.048.194.05.191.051.187.053.183.054.18.056.175.057.172.059.168.06.163.061.16.063.155.064.15.066.074.033.073.033.071.034.07.034.069.035.068.035.067.035.066.035.064.036.064.036.062.036.06.036.06.037.058.037.058.037.055.038.055.038.053.038.052.038.051.039.05.039.048.039.047.039.045.04.044.04.043.04.041.04.04.041.039.041.037.041.036.041.034.041.033.042.032.042.03.042.029.042.027.042.026.043.024.043.023.043.021.043.02.043.018.044.017.043.015.044.013.044.012.044.011.045.009.044.007.045.006.045.004.045.002.045.001.045v17l-.001.045-.002.045-.004.045-.006.045-.007.045-.009.044-.011.045-.012.044-.013.044-.015.044-.017.043-.018.044-.02.043-.021.043-.023.043-.024.043-.026.043-.027.042-.029.042-.03.042-.032.042-.033.042-.034.041-.036.041-.037.041-.039.041-.04.041-.041.04-.043.04-.044.04-.045.04-.047.039-.048.039-.05.039-.051.039-.052.038-.053.038-.055.038-.055.038-.058.037-.058.037-.06.037-.06.036-.062.036-.064.036-.064.036-.066.035-.067.035-.068.035-.069.035-.07.034-.071.034-.073.033-.074.033-.15.066-.155.064-.16.063-.163.061-.168.06-.172.059-.175.057-.18.056-.183.054-.187.053-.191.051-.194.05-.198.048-.201.046-.205.045-.208.043-.211.041-.214.04-.217.038-.22.036-.223.034-.225.032-.229.031-.231.028-.233.027-.236.024-.239.023-.241.02-.242.019-.246.016-.247.015-.249.012-.251.01-.253.008-.255.005-.256.004-.258.001-.258-.001-.256-.004-.255-.005-.253-.008-.251-.01-.249-.012-.247-.015-.245-.016-.243-.019-.241-.02-.238-.023-.236-.024-.234-.027-.231-.028-.228-.031-.226-.032-.223-.034-.22-.036-.217-.038-.214-.04-.211-.041-.208-.043-.204-.045-.201-.046-.198-.048-.195-.05-.19-.051-.187-.053-.184-.054-.179-.056-.176-.057-.172-.059-.167-.06-.164-.061-.159-.063-.155-.064-.151-.066-.074-.033-.072-.033-.072-.034-.07-.034-.069-.035-.068-.035-.067-.035-.066-.035-.064-.036-.063-.036-.062-.036-.061-.036-.06-.037-.058-.037-.057-.037-.056-.038-.055-.038-.053-.038-.052-.038-.051-.039-.049-.039-.049-.039-.046-.039-.046-.04-.044-.04-.043-.04-.041-.04-.04-.041-.039-.041-.037-.041-.036-.041-.034-.041-.033-.042-.032-.042-.03-.042-.029-.042-.027-.042-.026-.043-.024-.043-.023-.043-.021-.043-.02-.043-.018-.044-.017-.043-.015-.044-.013-.044-.012-.044-.011-.045-.009-.044-.007-.045-.006-.045-.004-.045-.002-.045-.001-.045v-17l.001-.045.002-.045.004-.045.006-.045.007-.045.009-.044.011-.045.012-.044.013-.044.015-.044.017-.043.018-.044.02-.043.021-.043.023-.043.024-.043.026-.043.027-.042.029-.042.03-.042.032-.042.033-.042.034-.041.036-.041.037-.041.039-.041.04-.041.041-.04.043-.04.044-.04.046-.04.046-.039.049-.039.049-.039.051-.039.052-.038.053-.038.055-.038.056-.038.057-.037.058-.037.06-.037.061-.036.062-.036.063-.036.064-.036.066-.035.067-.035.068-.035.069-.035.07-.034.072-.034.072-.033.074-.033.151-.066.155-.064.159-.063.164-.061.167-.06.172-.059.176-.057.179-.056.184-.054.187-.053.19-.051.195-.05.198-.048.201-.046.204-.045.208-.043.211-.041.214-.04.217-.038.22-.036.223-.034.226-.032.228-.031.231-.028.234-.027.236-.024.238-.023.241-.02.243-.019.245-.016.247-.015.249-.012.251-.01.253-.008.255-.005.256-.004.258-.001.258.001zm-9.258 20.499v.01l.001.021.003.021.004.022.005.021.006.022.007.022.009.023.01.022.011.023.012.023.013.023.015.023.016.024.017.023.018.024.019.024.021.024.022.025.023.024.024.025.052.049.056.05.061.051.066.051.07.051.075.051.079.052.084.052.088.052.092.052.097.052.102.051.105.052.11.052.114.051.119.051.123.051.127.05.131.05.135.05.139.048.144.049.147.047.152.047.155.047.16.045.163.045.167.043.171.043.176.041.178.041.183.039.187.039.19.037.194.035.197.035.202.033.204.031.209.03.212.029.216.027.219.025.222.024.226.021.23.02.233.018.236.016.24.015.243.012.246.01.249.008.253.005.256.004.259.001.26-.001.257-.004.254-.005.25-.008.247-.011.244-.012.241-.014.237-.016.233-.018.231-.021.226-.021.224-.024.22-.026.216-.027.212-.028.21-.031.205-.031.202-.034.198-.034.194-.036.191-.037.187-.039.183-.04.179-.04.175-.042.172-.043.168-.044.163-.045.16-.046.155-.046.152-.047.148-.048.143-.049.139-.049.136-.05.131-.05.126-.05.123-.051.118-.052.114-.051.11-.052.106-.052.101-.052.096-.052.092-.052.088-.053.083-.051.079-.052.074-.052.07-.051.065-.051.06-.051.056-.05.051-.05.023-.024.023-.025.021-.024.02-.024.019-.024.018-.024.017-.024.015-.023.014-.024.013-.023.012-.023.01-.023.01-.022.008-.022.006-.022.006-.022.004-.022.004-.021.001-.021.001-.021v-4.127l-.077.055-.08.053-.083.054-.085.053-.087.052-.09.052-.093.051-.095.05-.097.05-.1.049-.102.049-.105.048-.106.047-.109.047-.111.046-.114.045-.115.045-.118.044-.12.043-.122.042-.124.042-.126.041-.128.04-.13.04-.132.038-.134.038-.135.037-.138.037-.139.035-.142.035-.143.034-.144.033-.147.032-.148.031-.15.03-.151.03-.153.029-.154.027-.156.027-.158.026-.159.025-.161.024-.162.023-.163.022-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.011-.178.01-.179.008-.179.008-.181.006-.182.005-.182.004-.184.003-.184.002h-.37l-.184-.002-.184-.003-.182-.004-.182-.005-.181-.006-.179-.008-.179-.008-.178-.01-.176-.011-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.022-.162-.023-.161-.024-.159-.025-.157-.026-.156-.027-.155-.027-.153-.029-.151-.03-.15-.03-.148-.031-.146-.032-.145-.033-.143-.034-.141-.035-.14-.035-.137-.037-.136-.037-.134-.038-.132-.038-.13-.04-.128-.04-.126-.041-.124-.042-.122-.042-.12-.044-.117-.043-.116-.045-.113-.045-.112-.046-.109-.047-.106-.047-.105-.048-.102-.049-.1-.049-.097-.05-.095-.05-.093-.052-.09-.051-.087-.052-.085-.053-.083-.054-.08-.054-.077-.054v4.127zm0-5.654v.011l.001.021.003.021.004.021.005.022.006.022.007.022.009.022.01.022.011.023.012.023.013.023.015.024.016.023.017.024.018.024.019.024.021.024.022.024.023.025.024.024.052.05.056.05.061.05.066.051.07.051.075.052.079.051.084.052.088.052.092.052.097.052.102.052.105.052.11.051.114.051.119.052.123.05.127.051.131.05.135.049.139.049.144.048.147.048.152.047.155.046.16.045.163.045.167.044.171.042.176.042.178.04.183.04.187.038.19.037.194.036.197.034.202.033.204.032.209.03.212.028.216.027.219.025.222.024.226.022.23.02.233.018.236.016.24.014.243.012.246.01.249.008.253.006.256.003.259.001.26-.001.257-.003.254-.006.25-.008.247-.01.244-.012.241-.015.237-.016.233-.018.231-.02.226-.022.224-.024.22-.025.216-.027.212-.029.21-.03.205-.032.202-.033.198-.035.194-.036.191-.037.187-.039.183-.039.179-.041.175-.042.172-.043.168-.044.163-.045.16-.045.155-.047.152-.047.148-.048.143-.048.139-.05.136-.049.131-.05.126-.051.123-.051.118-.051.114-.052.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.051.07-.052.065-.051.06-.05.056-.051.051-.049.023-.025.023-.024.021-.025.02-.024.019-.024.018-.024.017-.024.015-.023.014-.023.013-.024.012-.022.01-.023.01-.023.008-.022.006-.022.006-.022.004-.021.004-.022.001-.021.001-.021v-4.139l-.077.054-.08.054-.083.054-.085.052-.087.053-.09.051-.093.051-.095.051-.097.05-.1.049-.102.049-.105.048-.106.047-.109.047-.111.046-.114.045-.115.044-.118.044-.12.044-.122.042-.124.042-.126.041-.128.04-.13.039-.132.039-.134.038-.135.037-.138.036-.139.036-.142.035-.143.033-.144.033-.147.033-.148.031-.15.03-.151.03-.153.028-.154.028-.156.027-.158.026-.159.025-.161.024-.162.023-.163.022-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.011-.178.009-.179.009-.179.007-.181.007-.182.005-.182.004-.184.003-.184.002h-.37l-.184-.002-.184-.003-.182-.004-.182-.005-.181-.007-.179-.007-.179-.009-.178-.009-.176-.011-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.022-.162-.023-.161-.024-.159-.025-.157-.026-.156-.027-.155-.028-.153-.028-.151-.03-.15-.03-.148-.031-.146-.033-.145-.033-.143-.033-.141-.035-.14-.036-.137-.036-.136-.037-.134-.038-.132-.039-.13-.039-.128-.04-.126-.041-.124-.042-.122-.043-.12-.043-.117-.044-.116-.044-.113-.046-.112-.046-.109-.046-.106-.047-.105-.048-.102-.049-.1-.049-.097-.05-.095-.051-.093-.051-.09-.051-.087-.053-.085-.052-.083-.054-.08-.054-.077-.054v4.139zm0-5.666v.011l.001.02.003.022.004.021.005.022.006.021.007.022.009.023.01.022.011.023.012.023.013.023.015.023.016.024.017.024.018.023.019.024.021.025.022.024.023.024.024.025.052.05.056.05.061.05.066.051.07.051.075.052.079.051.084.052.088.052.092.052.097.052.102.052.105.051.11.052.114.051.119.051.123.051.127.05.131.05.135.05.139.049.144.048.147.048.152.047.155.046.16.045.163.045.167.043.171.043.176.042.178.04.183.04.187.038.19.037.194.036.197.034.202.033.204.032.209.03.212.028.216.027.219.025.222.024.226.021.23.02.233.018.236.017.24.014.243.012.246.01.249.008.253.006.256.003.259.001.26-.001.257-.003.254-.006.25-.008.247-.01.244-.013.241-.014.237-.016.233-.018.231-.02.226-.022.224-.024.22-.025.216-.027.212-.029.21-.03.205-.032.202-.033.198-.035.194-.036.191-.037.187-.039.183-.039.179-.041.175-.042.172-.043.168-.044.163-.045.16-.045.155-.047.152-.047.148-.048.143-.049.139-.049.136-.049.131-.051.126-.05.123-.051.118-.052.114-.051.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.052.07-.051.065-.051.06-.051.056-.05.051-.049.023-.025.023-.025.021-.024.02-.024.019-.024.018-.024.017-.024.015-.023.014-.024.013-.023.012-.023.01-.022.01-.023.008-.022.006-.022.006-.022.004-.022.004-.021.001-.021.001-.021v-4.153l-.077.054-.08.054-.083.053-.085.053-.087.053-.09.051-.093.051-.095.051-.097.05-.1.049-.102.048-.105.048-.106.048-.109.046-.111.046-.114.046-.115.044-.118.044-.12.043-.122.043-.124.042-.126.041-.128.04-.13.039-.132.039-.134.038-.135.037-.138.036-.139.036-.142.034-.143.034-.144.033-.147.032-.148.032-.15.03-.151.03-.153.028-.154.028-.156.027-.158.026-.159.024-.161.024-.162.023-.163.023-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.01-.178.01-.179.009-.179.007-.181.006-.182.006-.182.004-.184.003-.184.001-.185.001-.185-.001-.184-.001-.184-.003-.182-.004-.182-.006-.181-.006-.179-.007-.179-.009-.178-.01-.176-.01-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.023-.162-.023-.161-.024-.159-.024-.157-.026-.156-.027-.155-.028-.153-.028-.151-.03-.15-.03-.148-.032-.146-.032-.145-.033-.143-.034-.141-.034-.14-.036-.137-.036-.136-.037-.134-.038-.132-.039-.13-.039-.128-.041-.126-.041-.124-.041-.122-.043-.12-.043-.117-.044-.116-.044-.113-.046-.112-.046-.109-.046-.106-.048-.105-.048-.102-.048-.1-.05-.097-.049-.095-.051-.093-.051-.09-.052-.087-.052-.085-.053-.083-.053-.08-.054-.077-.054v4.153zm8.74-8.179l-.257.004-.254.005-.25.008-.247.011-.244.012-.241.014-.237.016-.233.018-.231.021-.226.022-.224.023-.22.026-.216.027-.212.028-.21.031-.205.032-.202.033-.198.034-.194.036-.191.038-.187.038-.183.04-.179.041-.175.042-.172.043-.168.043-.163.045-.16.046-.155.046-.152.048-.148.048-.143.048-.139.049-.136.05-.131.05-.126.051-.123.051-.118.051-.114.052-.11.052-.106.052-.101.052-.096.052-.092.052-.088.052-.083.052-.079.052-.074.051-.07.052-.065.051-.06.05-.056.05-.051.05-.023.025-.023.024-.021.024-.02.025-.019.024-.018.024-.017.023-.015.024-.014.023-.013.023-.012.023-.01.023-.01.022-.008.022-.006.023-.006.021-.004.022-.004.021-.001.021-.001.021.001.021.001.021.004.021.004.022.006.021.006.023.008.022.01.022.01.023.012.023.013.023.014.023.015.024.017.023.018.024.019.024.02.025.021.024.023.024.023.025.051.05.056.05.06.05.065.051.07.052.074.051.079.052.083.052.088.052.092.052.096.052.101.052.106.052.11.052.114.052.118.051.123.051.126.051.131.05.136.05.139.049.143.048.148.048.152.048.155.046.16.046.163.045.168.043.172.043.175.042.179.041.183.04.187.038.191.038.194.036.198.034.202.033.205.032.21.031.212.028.216.027.22.026.224.023.226.022.231.021.233.018.237.016.241.014.244.012.247.011.25.008.254.005.257.004.26.001.26-.001.257-.004.254-.005.25-.008.247-.011.244-.012.241-.014.237-.016.233-.018.231-.021.226-.022.224-.023.22-.026.216-.027.212-.028.21-.031.205-.032.202-.033.198-.034.194-.036.191-.038.187-.038.183-.04.179-.041.175-.042.172-.043.168-.043.163-.045.16-.046.155-.046.152-.048.148-.048.143-.048.139-.049.136-.05.131-.05.126-.051.123-.051.118-.051.114-.052.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.051.07-.052.065-.051.06-.05.056-.05.051-.05.023-.025.023-.024.021-.024.02-.025.019-.024.018-.024.017-.023.015-.024.014-.023.013-.023.012-.023.01-.023.01-.022.008-.022.006-.023.006-.021.004-.022.004-.021.001-.021.001-.021-.001-.021-.001-.021-.004-.021-.004-.022-.006-.021-.006-.023-.008-.022-.01-.022-.01-.023-.012-.023-.013-.023-.014-.023-.015-.024-.017-.023-.018-.024-.019-.024-.02-.025-.021-.024-.023-.024-.023-.025-.051-.05-.056-.05-.06-.05-.065-.051-.07-.052-.074-.051-.079-.052-.083-.052-.088-.052-.092-.052-.096-.052-.101-.052-.106-.052-.11-.052-.114-.052-.118-.051-.123-.051-.126-.051-.131-.05-.136-.05-.139-.049-.143-.048-.148-.048-.152-.048-.155-.046-.16-.046-.163-.045-.168-.043-.172-.043-.175-.042-.179-.041-.183-.04-.187-.038-.191-.038-.194-.036-.198-.034-.202-.033-.205-.032-.21-.031-.212-.028-.216-.027-.22-.026-.224-.023-.226-.022-.231-.021-.233-.018-.237-.016-.241-.014-.244-.012-.247-.011-.25-.008-.254-.005-.257-.004-.26-.001-.26.001z")},_o=function(t){t.append("defs").append("symbol").attr("id","computer").attr("width","24").attr("height","24").append("path").attr("transform","scale(.5)").attr("d","M2 2v13h20v-13h-20zm18 11h-16v-9h16v9zm-10.228 6l.466-1h3.524l.467 1h-4.457zm14.228 3h-24l2-6h2.104l-1.33 4h18.45l-1.297-4h2.073l2 6zm-5-10h-14v-7h14v7z")},Ld=function(t){t.append("defs").append("symbol").attr("id","clock").attr("width","24").attr("height","24").append("path").attr("transform","scale(.5)").attr("d","M12 2c5.514 0 10 4.486 10 10s-4.486 10-10 10-10-4.486-10-10 4.486-10 10-10zm0-2c-6.627 0-12 5.373-12 12s5.373 12 12 12 12-5.373 12-12-5.373-12-12-12zm5.848 12.459c.202.038.202.333.001.372-1.907.361-6.045 1.111-6.547 1.111-.719 0-1.301-.582-1.301-1.301 0-.512.77-5.447 1.125-7.445.034-.192.312-.181.343.014l.985 6.238 5.394 1.011z")},ha=L4,zr=D6;Uu.sanitizeUrl,tn.parser.yy=Md;var ue={},qe={data:{startx:void 0,stopx:void 0,starty:void 0,stopy:void 0},verticalPos:0,sequenceItems:[],activations:[],models:{getHeight:function(){return Math.max.apply(null,this.actors.length===0?[0]:this.actors.map(function(t){return t.height||0}))+(this.loops.length===0?0:this.loops.map(function(t){return t.height||0}).reduce(function(t,e){return t+e}))+(this.messages.length===0?0:this.messages.map(function(t){return t.height||0}).reduce(function(t,e){return t+e}))+(this.notes.length===0?0:this.notes.map(function(t){return t.height||0}).reduce(function(t,e){return t+e}))},clear:function(){this.actors=[],this.loops=[],this.messages=[],this.notes=[]},addActor:function(t){this.actors.push(t)},addLoop:function(t){this.loops.push(t)},addMessage:function(t){this.messages.push(t)},addNote:function(t){this.notes.push(t)},lastActor:function(){return this.actors[this.actors.length-1]},lastLoop:function(){return this.loops[this.loops.length-1]},lastMessage:function(){return this.messages[this.messages.length-1]},lastNote:function(){return this.notes[this.notes.length-1]},actors:[],loops:[],messages:[],notes:[]},init:function(){this.sequenceItems=[],this.activations=[],this.models.clear(),this.data={startx:void 0,stopx:void 0,starty:void 0,stopy:void 0},this.verticalPos=0,Ls(tn.parser.yy.getConfig())},updateVal:function(t,e,i,u){t[e]===void 0?t[e]=i:t[e]=u(i,t[e])},updateBounds:function(t,e,i,u){var d=this,g=0;function v(w){return function(C){g++;var S=d.sequenceItems.length-g+1;d.updateVal(C,"starty",e-S*ue.boxMargin,Math.min),d.updateVal(C,"stopy",u+S*ue.boxMargin,Math.max),d.updateVal(qe.data,"startx",t-S*ue.boxMargin,Math.min),d.updateVal(qe.data,"stopx",i+S*ue.boxMargin,Math.max),w!=="activation"&&(d.updateVal(C,"startx",t-S*ue.boxMargin,Math.min),d.updateVal(C,"stopx",i+S*ue.boxMargin,Math.max),d.updateVal(qe.data,"starty",e-S*ue.boxMargin,Math.min),d.updateVal(qe.data,"stopy",u+S*ue.boxMargin,Math.max))}}this.sequenceItems.forEach(v()),this.activations.forEach(v("activation"))},insert:function(t,e,i,u){var d=Math.min(t,i),g=Math.max(t,i),v=Math.min(e,u),w=Math.max(e,u);this.updateVal(qe.data,"startx",d,Math.min),this.updateVal(qe.data,"starty",v,Math.min),this.updateVal(qe.data,"stopx",g,Math.max),this.updateVal(qe.data,"stopy",w,Math.max),this.updateBounds(d,v,g,w)},newActivation:function(t,e,i){var u=i[t.from.actor],d=el(t.from.actor).length||0,g=u.x+u.width/2+(d-1)*ue.activationWidth/2;this.activations.push({startx:g,starty:this.verticalPos+2,stopx:g+ue.activationWidth,stopy:void 0,actor:t.from.actor,anchored:I4(e)})},endActivation:function(t){var e=this.activations.map(function(i){return i.actor}).lastIndexOf(t.from.actor);return this.activations.splice(e,1)[0]},createLoop:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{message:void 0,wrap:!1,width:void 0},e=arguments.length>1?arguments[1]:void 0;return{startx:void 0,starty:this.verticalPos,stopx:void 0,stopy:void 0,title:t.message,wrap:t.wrap,width:t.width,height:0,fill:e}},newLoop:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{message:void 0,wrap:!1,width:void 0},e=arguments.length>1?arguments[1]:void 0;this.sequenceItems.push(this.createLoop(t,e))},endLoop:function(){return this.sequenceItems.pop()},addSectionToLoop:function(t){var e=this.sequenceItems.pop();e.sections=e.sections||[],e.sectionTitles=e.sectionTitles||[],e.sections.push({y:qe.getVerticalPos(),height:0}),e.sectionTitles.push(t),this.sequenceItems.push(e)},bumpVerticalPos:function(t){this.verticalPos=this.verticalPos+t,this.data.stopy=this.verticalPos},getVerticalPos:function(){return this.verticalPos},getBounds:function(){return{bounds:this.data,models:this.models}}},Bd=function(t){return{fontFamily:t.messageFontFamily,fontSize:t.messageFontSize,fontWeight:t.messageFontWeight}},iu=function(t){return{fontFamily:t.noteFontFamily,fontSize:t.noteFontSize,fontWeight:t.noteFontWeight}},Mm=function(t){return{fontFamily:t.actorFontFamily,fontSize:t.actorFontSize,fontWeight:t.actorFontWeight}},Bh=function(t,e,i,u){for(var d=0,g=0,v=0,w=0;w<i.length;w++){var C=e[i[w]];C.width=C.width||ue.width,C.height=Math.max(C.height||ue.height,ue.height),C.margin=C.margin||ue.actorMargin,C.x=d+g,C.y=u;var S=Nh(t,C,ue);v=Math.max(v,S),qe.insert(C.x,u,C.x+C.width,C.height),d+=C.width,g+=C.margin,qe.models.addActor(C)}qe.bumpVerticalPos(v)},F4=function(t,e,i){for(var u=0,d=0,g=0;g<i.length;g++){var v=e[i[g]],w=Id(v),C=Oh(t,v,w,ue,ue.forceMenus);C.height>u&&(u=C.height),C.width+v.x>d&&(d=C.width+v.x)}return{maxHeight:u,maxWidth:d}},Ls=function(t){Ji(ue,t),t.fontFamily&&(ue.actorFontFamily=ue.noteFontFamily=ue.messageFontFamily=t.fontFamily),t.fontSize&&(ue.actorFontSize=ue.noteFontSize=ue.messageFontSize=t.fontSize),t.fontWeight&&(ue.actorFontWeight=ue.noteFontWeight=ue.messageFontWeight=t.fontWeight)},el=function(t){return qe.activations.filter(function(e){return e.actor===t})},Dm=function(t,e){var i=e[t],u=el(t);return[u.reduce(function(d,g){return Math.min(d,g.startx)},i.x+i.width/2),u.reduce(function(d,g){return Math.max(d,g.stopx)},i.x+i.width/2)]};function fc(t,e,i,u,d){qe.bumpVerticalPos(i);var g=u;if(e.id&&e.message&&t[e.id]){var v=t[e.id].width,w=Bd(ue);e.message=Kn.wrapLabel("[".concat(e.message,"]"),v-2*ue.wrapPadding,w),e.width=v,e.wrap=!0;var C=Kn.calculateTextDimensions(e.message,w),S=Math.max(C.height,ue.labelBoxHeight);g=u+S,p.debug("".concat(S," - ").concat(e.message))}d(e),qe.bumpVerticalPos(g)}var Id=function(t){var e=0,i=Mm(ue);for(var u in t.links){var d=Kn.calculateTextDimensions(u,i).width+2*ue.wrapPadding+2*ue.boxMargin;e<d&&(e=d)}return e};const Rd={bounds:qe,drawActors:Bh,drawActorsPopup:F4,setConf:Ls,draw:function(t,e){ue=ae().sequence,tn.parser.yy.clear(),tn.parser.yy.setWrap(ue.wrap),tn.parser.parse(t+`
|
|
`),qe.init(),p.debug("C:".concat(JSON.stringify(ue,null,2)));var i=Se('[id="'.concat(e,'"]')),u=tn.parser.yy.getActors(),d=tn.parser.yy.getActorKeys(),g=tn.parser.yy.getMessages(),v=tn.parser.yy.getTitle(),w=function(kt,_t){var lt={};return _t.forEach(function(Wt){if(kt[Wt.to]&&kt[Wt.from]){var Ot=kt[Wt.to];if(Wt.placement===tn.parser.yy.PLACEMENT.LEFTOF&&!Ot.prevActor||Wt.placement===tn.parser.yy.PLACEMENT.RIGHTOF&&!Ot.nextActor)return;var gt=Wt.placement!==void 0,Lt=!gt,ee=gt?iu(ue):Bd(ue),At=Wt.wrap?Kn.wrapLabel(Wt.message,ue.width-2*ue.wrapPadding,ee):Wt.message,Tt=Kn.calculateTextDimensions(At,ee).width+2*ue.wrapPadding;Lt&&Wt.from===Ot.nextActor?lt[Wt.to]=Math.max(lt[Wt.to]||0,Tt):Lt&&Wt.from===Ot.prevActor?lt[Wt.from]=Math.max(lt[Wt.from]||0,Tt):Lt&&Wt.from===Wt.to?(lt[Wt.from]=Math.max(lt[Wt.from]||0,Tt/2),lt[Wt.to]=Math.max(lt[Wt.to]||0,Tt/2)):Wt.placement===tn.parser.yy.PLACEMENT.RIGHTOF?lt[Wt.from]=Math.max(lt[Wt.from]||0,Tt):Wt.placement===tn.parser.yy.PLACEMENT.LEFTOF?lt[Ot.prevActor]=Math.max(lt[Ot.prevActor]||0,Tt):Wt.placement===tn.parser.yy.PLACEMENT.OVER&&(Ot.prevActor&&(lt[Ot.prevActor]=Math.max(lt[Ot.prevActor]||0,Tt/2)),Ot.nextActor&&(lt[Wt.from]=Math.max(lt[Wt.from]||0,Tt/2)))}}),p.debug("maxMessageWidthPerActor:",lt),lt}(u,g);ue.height=function(kt,_t){var lt=0;for(var Wt in Object.keys(kt).forEach(function(ee){var At=kt[ee];At.wrap&&(At.description=Kn.wrapLabel(At.description,ue.width-2*ue.wrapPadding,Mm(ue)));var Tt=Kn.calculateTextDimensions(At.description,Mm(ue));At.width=At.wrap?ue.width:Math.max(ue.width,Tt.width+2*ue.wrapPadding),At.height=At.wrap?Math.max(Tt.height,ue.height):ue.height,lt=Math.max(lt,At.height)}),_t){var Ot=kt[Wt];if(Ot){var gt=kt[Ot.nextActor];if(gt){var Lt=_t[Wt]+ue.actorMargin-Ot.width/2-gt.width/2;Ot.margin=Math.max(Lt,ue.actorMargin)}}}return Math.max(lt,ue.height)}(u,w),_o(i),Lh(i),Ld(i),Bh(i,u,d,0);var C=function(kt,_t){var lt,Wt,Ot,gt={},Lt=[];return kt.forEach(function(ee){switch(ee.id=Kn.random({length:10}),ee.type){case tn.parser.yy.LINETYPE.LOOP_START:case tn.parser.yy.LINETYPE.ALT_START:case tn.parser.yy.LINETYPE.OPT_START:case tn.parser.yy.LINETYPE.PAR_START:Lt.push({id:ee.id,msg:ee.message,from:Number.MAX_SAFE_INTEGER,to:Number.MIN_SAFE_INTEGER,width:0});break;case tn.parser.yy.LINETYPE.ALT_ELSE:case tn.parser.yy.LINETYPE.PAR_AND:ee.message&&(lt=Lt.pop(),gt[lt.id]=lt,gt[ee.id]=lt,Lt.push(lt));break;case tn.parser.yy.LINETYPE.LOOP_END:case tn.parser.yy.LINETYPE.ALT_END:case tn.parser.yy.LINETYPE.OPT_END:case tn.parser.yy.LINETYPE.PAR_END:lt=Lt.pop(),gt[lt.id]=lt;break;case tn.parser.yy.LINETYPE.ACTIVE_START:var At=_t[ee.from?ee.from.actor:ee.to.actor],Tt=el(ee.from?ee.from.actor:ee.to.actor).length,zt=At.x+At.width/2+(Tt-1)*ue.activationWidth/2,Mt={startx:zt,stopx:zt+ue.activationWidth,actor:ee.from.actor,enabled:!0};qe.activations.push(Mt);break;case tn.parser.yy.LINETYPE.ACTIVE_END:var Jt=qe.activations.map(function(yt){return yt.actor}).lastIndexOf(ee.from.actor);delete qe.activations.splice(Jt,1)[0]}ee.placement!==void 0?(Wt=function(yt,ce){var ve=ce[yt.from].x,me=ce[yt.to].x,Me=yt.wrap&&yt.message,$e=Kn.calculateTextDimensions(Me?Kn.wrapLabel(yt.message,ue.width,iu(ue)):yt.message,iu(ue)),ze={width:Me?ue.width:Math.max(ue.width,$e.width+2*ue.noteMargin),height:0,startx:ce[yt.from].x,stopx:0,starty:0,stopy:0,message:yt.message};return yt.placement===tn.parser.yy.PLACEMENT.RIGHTOF?(ze.width=Me?Math.max(ue.width,$e.width):Math.max(ce[yt.from].width/2+ce[yt.to].width/2,$e.width+2*ue.noteMargin),ze.startx=ve+(ce[yt.from].width+ue.actorMargin)/2):yt.placement===tn.parser.yy.PLACEMENT.LEFTOF?(ze.width=Math.max(Me?ue.width:ce[yt.from].width/2+ce[yt.to].width/2,$e.width+2*ue.noteMargin),ze.startx=ve-ze.width+(ce[yt.from].width-ue.actorMargin)/2):yt.to===yt.from?($e=Kn.calculateTextDimensions(Me?Kn.wrapLabel(yt.message,Math.max(ue.width,ce[yt.from].width),iu(ue)):yt.message,iu(ue)),ze.width=Me?Math.max(ue.width,ce[yt.from].width):Math.max(ce[yt.from].width,ue.width,$e.width+2*ue.noteMargin),ze.startx=ve+(ce[yt.from].width-ze.width)/2):(ze.width=Math.abs(ve+ce[yt.from].width/2-(me+ce[yt.to].width/2))+ue.actorMargin,ze.startx=ve<me?ve+ce[yt.from].width/2-ue.actorMargin/2:me+ce[yt.to].width/2-ue.actorMargin/2),Me&&(ze.message=Kn.wrapLabel(yt.message,ze.width-2*ue.wrapPadding,iu(ue))),p.debug("NM:[".concat(ze.startx,",").concat(ze.stopx,",").concat(ze.starty,",").concat(ze.stopy,":").concat(ze.width,",").concat(ze.height,"=").concat(yt.message,"]")),ze}(ee,_t),ee.noteModel=Wt,Lt.forEach(function(yt){(lt=yt).from=Math.min(lt.from,Wt.startx),lt.to=Math.max(lt.to,Wt.startx+Wt.width),lt.width=Math.max(lt.width,Math.abs(lt.from-lt.to))-ue.labelBoxWidth})):(Ot=function(yt,ce){var ve=!1;if([tn.parser.yy.LINETYPE.SOLID_OPEN,tn.parser.yy.LINETYPE.DOTTED_OPEN,tn.parser.yy.LINETYPE.SOLID,tn.parser.yy.LINETYPE.DOTTED,tn.parser.yy.LINETYPE.SOLID_CROSS,tn.parser.yy.LINETYPE.DOTTED_CROSS,tn.parser.yy.LINETYPE.SOLID_POINT,tn.parser.yy.LINETYPE.DOTTED_POINT].includes(yt.type)&&(ve=!0),!ve)return{};var me=Dm(yt.from,ce),Me=Dm(yt.to,ce),$e=me[0]<=Me[0]?1:0,ze=me[0]<Me[0]?0:1,fn=me.concat(Me),Ne=Math.abs(Me[ze]-me[$e]);yt.wrap&&yt.message&&(yt.message=Kn.wrapLabel(yt.message,Math.max(Ne+2*ue.wrapPadding,ue.width),Bd(ue)));var Pn=Kn.calculateTextDimensions(yt.message,Bd(ue));return{width:Math.max(yt.wrap?0:Pn.width+2*ue.wrapPadding,Ne+2*ue.wrapPadding,ue.width),height:0,startx:me[$e],stopx:Me[ze],starty:0,stopy:0,message:yt.message,type:yt.type,wrap:yt.wrap,fromBounds:Math.min.apply(null,fn),toBounds:Math.max.apply(null,fn)}}(ee,_t),ee.msgModel=Ot,Ot.startx&&Ot.stopx&&Lt.length>0&&Lt.forEach(function(yt){if(lt=yt,Ot.startx===Ot.stopx){var ce=_t[ee.from],ve=_t[ee.to];lt.from=Math.min(ce.x-Ot.width/2,ce.x-ce.width/2,lt.from),lt.to=Math.max(ve.x+Ot.width/2,ve.x+ce.width/2,lt.to),lt.width=Math.max(lt.width,Math.abs(lt.to-lt.from))-ue.labelBoxWidth}else lt.from=Math.min(Ot.startx,lt.from),lt.to=Math.max(Ot.stopx,lt.to),lt.width=Math.max(lt.width,Ot.width)-ue.labelBoxWidth}))}),qe.activations=[],p.debug("Loop type widths:",gt),gt}(g,u);L6(i),I6(i),B6(i),R4(i);var S=1;g.forEach(function(kt){var _t,lt,Wt;switch(kt.type){case tn.parser.yy.LINETYPE.NOTE:lt=kt.noteModel,function(Ot,gt){qe.bumpVerticalPos(ue.boxMargin),gt.height=ue.boxMargin,gt.starty=qe.getVerticalPos();var Lt=zr();Lt.x=gt.startx,Lt.y=gt.starty,Lt.width=gt.width||ue.width,Lt.class="note";var ee=Ot.append("g"),At=N6(ee,Lt),Tt=ha();Tt.x=gt.startx,Tt.y=gt.starty,Tt.width=Lt.width,Tt.dy="1em",Tt.text=gt.message,Tt.class="noteText",Tt.fontFamily=ue.noteFontFamily,Tt.fontSize=ue.noteFontSize,Tt.fontWeight=ue.noteFontWeight,Tt.anchor=ue.noteAlign,Tt.textMargin=ue.noteMargin,Tt.valign=ue.noteAlign;var zt=ru(ee,Tt),Mt=Math.round(zt.map(function(Jt){return(Jt._groups||Jt)[0][0].getBBox().height}).reduce(function(Jt,yt){return Jt+yt}));At.attr("height",Mt+2*ue.noteMargin),gt.height+=Mt+2*ue.noteMargin,qe.bumpVerticalPos(Mt+2*ue.noteMargin),gt.stopy=gt.starty+Mt+2*ue.noteMargin,gt.stopx=gt.startx+Lt.width,qe.insert(gt.startx,gt.starty,gt.stopx,gt.stopy),qe.models.addNote(gt)}(i,lt);break;case tn.parser.yy.LINETYPE.ACTIVE_START:qe.newActivation(kt,i,u);break;case tn.parser.yy.LINETYPE.ACTIVE_END:(function(Ot,gt){var Lt=qe.endActivation(Ot);Lt.starty+18>gt&&(Lt.starty=gt-6,gt+=12),O6(i,Lt,gt,ue,el(Ot.from.actor).length),qe.insert(Lt.startx,gt-10,Lt.stopx,gt)})(kt,qe.getVerticalPos());break;case tn.parser.yy.LINETYPE.LOOP_START:fc(C,kt,ue.boxMargin,ue.boxMargin+ue.boxTextMargin,function(Ot){return qe.newLoop(Ot)});break;case tn.parser.yy.LINETYPE.LOOP_END:_t=qe.endLoop(),Od(i,_t,"loop",ue),qe.bumpVerticalPos(_t.stopy-qe.getVerticalPos()),qe.models.addLoop(_t);break;case tn.parser.yy.LINETYPE.RECT_START:fc(C,kt,ue.boxMargin,ue.boxMargin,function(Ot){return qe.newLoop(void 0,Ot.message)});break;case tn.parser.yy.LINETYPE.RECT_END:_t=qe.endLoop(),Am(i,_t),qe.models.addLoop(_t),qe.bumpVerticalPos(_t.stopy-qe.getVerticalPos());break;case tn.parser.yy.LINETYPE.OPT_START:fc(C,kt,ue.boxMargin,ue.boxMargin+ue.boxTextMargin,function(Ot){return qe.newLoop(Ot)});break;case tn.parser.yy.LINETYPE.OPT_END:_t=qe.endLoop(),Od(i,_t,"opt",ue),qe.bumpVerticalPos(_t.stopy-qe.getVerticalPos()),qe.models.addLoop(_t);break;case tn.parser.yy.LINETYPE.ALT_START:fc(C,kt,ue.boxMargin,ue.boxMargin+ue.boxTextMargin,function(Ot){return qe.newLoop(Ot)});break;case tn.parser.yy.LINETYPE.ALT_ELSE:fc(C,kt,ue.boxMargin+ue.boxTextMargin,ue.boxMargin,function(Ot){return qe.addSectionToLoop(Ot)});break;case tn.parser.yy.LINETYPE.ALT_END:_t=qe.endLoop(),Od(i,_t,"alt",ue),qe.bumpVerticalPos(_t.stopy-qe.getVerticalPos()),qe.models.addLoop(_t);break;case tn.parser.yy.LINETYPE.PAR_START:fc(C,kt,ue.boxMargin,ue.boxMargin+ue.boxTextMargin,function(Ot){return qe.newLoop(Ot)});break;case tn.parser.yy.LINETYPE.PAR_AND:fc(C,kt,ue.boxMargin+ue.boxTextMargin,ue.boxMargin,function(Ot){return qe.addSectionToLoop(Ot)});break;case tn.parser.yy.LINETYPE.PAR_END:_t=qe.endLoop(),Od(i,_t,"par",ue),qe.bumpVerticalPos(_t.stopy-qe.getVerticalPos()),qe.models.addLoop(_t);break;default:try{(Wt=kt.msgModel).starty=qe.getVerticalPos(),Wt.sequenceIndex=S,function(Ot,gt){qe.bumpVerticalPos(10);var Lt=gt.startx,ee=gt.stopx,At=gt.starty,Tt=gt.message,zt=gt.type,Mt=gt.sequenceIndex,Jt=dr.splitBreaks(Tt).length,yt=Kn.calculateTextDimensions(Tt,Bd(ue)),ce=yt.height/Jt;gt.height+=ce,qe.bumpVerticalPos(ce);var ve=ha();ve.x=Lt,ve.y=At+10,ve.width=ee-Lt,ve.class="messageText",ve.dy="1em",ve.text=Tt,ve.fontFamily=ue.messageFontFamily,ve.fontSize=ue.messageFontSize,ve.fontWeight=ue.messageFontWeight,ve.anchor=ue.messageAlign,ve.valign=ue.messageAlign,ve.textMargin=ue.wrapPadding,ve.tspan=!1,ru(Ot,ve);var me,Me,$e=yt.height-10,ze=yt.width;if(Lt===ee){Me=qe.getVerticalPos()+$e,ue.rightAngles?me=Ot.append("path").attr("d","M ".concat(Lt,",").concat(Me," H ").concat(Lt+Math.max(ue.width/2,ze/2)," V ").concat(Me+25," H ").concat(Lt)):($e+=ue.boxMargin,Me=qe.getVerticalPos()+$e,me=Ot.append("path").attr("d","M "+Lt+","+Me+" C "+(Lt+60)+","+(Me-10)+" "+(Lt+60)+","+(Me+30)+" "+Lt+","+(Me+20))),$e+=30;var fn=Math.max(ze/2,ue.width/2);qe.insert(Lt-fn,qe.getVerticalPos()-10+$e,ee+fn,qe.getVerticalPos()+30+$e)}else $e+=ue.boxMargin,Me=qe.getVerticalPos()+$e,(me=Ot.append("line")).attr("x1",Lt),me.attr("y1",Me),me.attr("x2",ee),me.attr("y2",Me),qe.insert(Lt,Me-10,ee,Me);zt===tn.parser.yy.LINETYPE.DOTTED||zt===tn.parser.yy.LINETYPE.DOTTED_CROSS||zt===tn.parser.yy.LINETYPE.DOTTED_POINT||zt===tn.parser.yy.LINETYPE.DOTTED_OPEN?(me.style("stroke-dasharray","3, 3"),me.attr("class","messageLine1")):me.attr("class","messageLine0");var Ne="";ue.arrowMarkerAbsolute&&(Ne=(Ne=(Ne=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search).replace(/\(/g,"\\(")).replace(/\)/g,"\\)")),me.attr("stroke-width",2),me.attr("stroke","none"),me.style("fill","none"),zt!==tn.parser.yy.LINETYPE.SOLID&&zt!==tn.parser.yy.LINETYPE.DOTTED||me.attr("marker-end","url("+Ne+"#arrowhead)"),zt!==tn.parser.yy.LINETYPE.SOLID_POINT&&zt!==tn.parser.yy.LINETYPE.DOTTED_POINT||me.attr("marker-end","url("+Ne+"#filled-head)"),zt!==tn.parser.yy.LINETYPE.SOLID_CROSS&&zt!==tn.parser.yy.LINETYPE.DOTTED_CROSS||me.attr("marker-end","url("+Ne+"#crosshead)"),(Md.showSequenceNumbers()||ue.showSequenceNumbers)&&(me.attr("marker-start","url("+Ne+"#sequencenumber)"),Ot.append("text").attr("x",Lt).attr("y",Me+4).attr("font-family","sans-serif").attr("font-size","12px").attr("text-anchor","middle").attr("textLength","16px").attr("class","sequenceNumber").text(Mt)),qe.bumpVerticalPos($e),gt.height+=$e,gt.stopy=gt.starty+gt.height,qe.insert(gt.fromBounds,gt.starty,gt.toBounds,gt.stopy)}(i,Wt),qe.models.addMessage(Wt)}catch(Ot){p.error("error while drawing message",Ot)}}[tn.parser.yy.LINETYPE.SOLID_OPEN,tn.parser.yy.LINETYPE.DOTTED_OPEN,tn.parser.yy.LINETYPE.SOLID,tn.parser.yy.LINETYPE.DOTTED,tn.parser.yy.LINETYPE.SOLID_CROSS,tn.parser.yy.LINETYPE.DOTTED_CROSS,tn.parser.yy.LINETYPE.SOLID_POINT,tn.parser.yy.LINETYPE.DOTTED_POINT].includes(kt.type)&&S++}),ue.mirrorActors&&(qe.bumpVerticalPos(2*ue.boxMargin),Bh(i,u,d,qe.getVerticalPos()),qe.bumpVerticalPos(ue.boxMargin),M6(i,qe.getVerticalPos()));var L=F4(i,u,d),j=qe.getBounds().bounds;p.debug("For line height fix Querying: #"+e+" .actor-line"),Mc("#"+e+" .actor-line").attr("y2",j.stopy);var P=j.stopy-j.starty;P<L.maxHeight&&(P=L.maxHeight);var U=P+2*ue.diagramMarginY;ue.mirrorActors&&(U=U-ue.boxMargin+ue.bottomMarginAdj);var ot=j.stopx-j.startx;ot<L.maxWidth&&(ot=L.maxWidth);var vt=ot+2*ue.diagramMarginX;v&&i.append("text").text(v).attr("x",(j.stopx-j.startx)/2-2*ue.diagramMarginX).attr("y",-25),go(i,U,vt,ue.useMaxWidth);var bt=v?40:0;i.attr("viewBox",j.startx-ue.diagramMarginX+" -"+(ue.diagramMarginY+bt)+" "+vt+" "+(U+bt)),p.debug("models:",qe.models)}};var Dp=o(3584),Nm=o.n(Dp);function Om(t){return Om=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Om(t)}var Np=function(t){return JSON.parse(JSON.stringify(t))},Op=[],R6=function t(e,i,u){if(i.stmt==="relation")t(e,i.state1,!0),t(e,i.state2,!1);else if(i.stmt==="state"&&i.id==="[*]"&&(i.id=u?e.id+"_start":e.id+"_end",i.start=u),i.doc){var d=[],g=0,v=[];for(g=0;g<i.doc.length;g++)if(i.doc[g].type==="divider"){var w=Np(i.doc[g]);w.doc=Np(v),d.push(w),v=[]}else v.push(i.doc[g]);if(d.length>0&&v.length>0){var C={stmt:"state",id:b3(),type:"divider",doc:Np(v)};d.push(Np(C)),i.doc=d}i.doc.forEach(function(S){return t(i,S,!0)})}},n={root:{relations:[],states:{},documents:{}}},a=n.root,h=0,f=function(t,e,i,u,d){a.states[t]===void 0?a.states[t]={id:t,descriptions:[],type:e,doc:i,note:d}:(a.states[t].doc||(a.states[t].doc=i),a.states[t].type||(a.states[t].type=e)),u&&(p.info("Adding state ",t,u),typeof u=="string"&&E(t,u.trim()),Om(u)==="object"&&u.forEach(function(g){return E(t,g.trim())})),d&&(a.states[t].note=d,a.states[t].note.text=dr.sanitizeText(a.states[t].note.text,ae()))},m=function(){a=(n={root:{relations:[],states:{},documents:{}}}).root,a=n.root,h=0,A=[]},_=function(t,e,i){var u=t,d=e,g="default",v="default";t==="[*]"&&(u="start"+ ++h,g="start"),e==="[*]"&&(d="end"+h,v="end"),f(u,g),f(d,v),a.relations.push({id1:u,id2:d,title:dr.sanitizeText(i,ae())})},E=function(t,e){var i=a.states[t],u=e;u[0]===":"&&(u=u.substr(1).trim()),i.descriptions.push(dr.sanitizeText(u,ae()))},x=0,A=[],N="TB";const B={parseDirective:function(t,e,i){da.parseDirective(this,t,e,i)},getConfig:function(){return ae().state},addState:f,clear:m,getState:function(t){return a.states[t]},getStates:function(){return a.states},getRelations:function(){return a.relations},getClasses:function(){return A},getDirection:function(){return N},addRelation:_,getDividerId:function(){return"divider-id-"+ ++x},setDirection:function(t){N=t},cleanupLabel:function(t){return t.substring(0,1)===":"?t.substr(2).trim():t.trim()},lineType:{LINE:0,DOTTED_LINE:1},relationType:{AGGREGATION:0,EXTENSION:1,COMPOSITION:2,DEPENDENCY:3},logDocuments:function(){p.info("Documents = ",n)},getRootDoc:function(){return Op},setRootDoc:function(t){p.info("Setting root doc",t),Op=t},getRootDocV2:function(){return R6({id:"root"},{id:"root",doc:Op},!0),{id:"root",doc:Op}},extract:function(t){var e;e=t.doc?t.doc:t,p.info(e),m(),p.info("Extract",e),e.forEach(function(i){i.stmt==="state"&&f(i.id,i.type,i.doc,i.description,i.note),i.stmt==="relation"&&_(i.state1.id,i.state2.id,i.description)})},trimColon:function(t){return t&&t[0]===":"?t.substr(1).trim():t.trim()}};var Y={};function I(t,e){(e==null||e>t.length)&&(e=t.length);for(var i=0,u=new Array(e);i<e;i++)u[i]=t[i];return u}var H,W=function(t,e,i){var u,d=ae().state.padding,g=2*ae().state.padding,v=t.node().getBBox(),w=v.width,C=v.x,S=t.append("text").attr("x",0).attr("y",ae().state.titleShift).attr("font-size",ae().state.fontSize).attr("class","state-title").text(e.id),L=S.node().getBBox().width+g,j=Math.max(L,w);j===w&&(j+=g);var P=t.node().getBBox();e.doc,u=C-d,L>w&&(u=(w-j)/2+d),Math.abs(C-P.x)<d&&L>w&&(u=C-(L-w)/2);var U=1-ae().state.textHeight;return t.insert("rect",":first-child").attr("x",u).attr("y",U).attr("class",i?"alt-composit":"composit").attr("width",j).attr("height",P.height+ae().state.textHeight+ae().state.titleShift+1).attr("rx","0"),S.attr("x",u+d),L<=w&&S.attr("x",C+(j-g)/2-L/2+d),t.insert("rect",":first-child").attr("x",u).attr("y",ae().state.titleShift-ae().state.textHeight-ae().state.padding).attr("width",j).attr("height",3*ae().state.textHeight).attr("rx",ae().state.radius),t.insert("rect",":first-child").attr("x",u).attr("y",ae().state.titleShift-ae().state.textHeight-ae().state.padding).attr("width",j).attr("height",P.height+3+2*ae().state.textHeight).attr("rx",ae().state.radius),t},J=function(t,e){e.attr("class","state-note");var i=e.append("rect").attr("x",0).attr("y",ae().state.padding),u=function(v,w,C,S){var L=0,j=S.append("text");j.style("text-anchor","start"),j.attr("class","noteText");var P,U=v.replace(/\r\n/g,"<br/>"),ot=(U=U.replace(/\n/g,"<br/>")).split(dr.lineBreakRegex),vt=1.25*ae().state.noteMargin,bt=function(lt,Wt){var Ot=typeof Symbol!="undefined"&<[Symbol.iterator]||lt["@@iterator"];if(!Ot){if(Array.isArray(lt)||(Ot=function(zt,Mt){if(zt){if(typeof zt=="string")return I(zt,Mt);var Jt=Object.prototype.toString.call(zt).slice(8,-1);return Jt==="Object"&&zt.constructor&&(Jt=zt.constructor.name),Jt==="Map"||Jt==="Set"?Array.from(zt):Jt==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Jt)?I(zt,Mt):void 0}}(lt))||Wt&<&&typeof lt.length=="number"){Ot&&(lt=Ot);var gt=0,Lt=function(){};return{s:Lt,n:function(){return gt>=lt.length?{done:!0}:{done:!1,value:lt[gt++]}},e:function(zt){throw zt},f:Lt}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var ee,At=!0,Tt=!1;return{s:function(){Ot=Ot.call(lt)},n:function(){var zt=Ot.next();return At=zt.done,zt},e:function(zt){Tt=!0,ee=zt},f:function(){try{At||Ot.return==null||Ot.return()}finally{if(Tt)throw ee}}}}(ot);try{for(bt.s();!(P=bt.n()).done;){var kt=P.value.trim();if(kt.length>0){var _t=j.append("tspan");_t.text(kt),vt===0&&(vt+=_t.node().getBBox().height),L+=vt,_t.attr("x",0+ae().state.noteMargin),_t.attr("y",0+L+1.25*ae().state.noteMargin)}}}catch(lt){bt.e(lt)}finally{bt.f()}return{textWidth:j.node().getBBox().width,textHeight:L}}(t,0,0,e.append("g")),d=u.textWidth,g=u.textHeight;return i.attr("height",g+2*ae().state.noteMargin),i.attr("width",d+2*ae().state.noteMargin),i},Q=function(t,e){var i=e.id,u={id:i,label:e.id,width:0,height:0},d=t.append("g").attr("id",i).attr("class","stateGroup");e.type==="start"&&function(w){w.append("circle").attr("class","start-state").attr("r",ae().state.sizeUnit).attr("cx",ae().state.padding+ae().state.sizeUnit).attr("cy",ae().state.padding+ae().state.sizeUnit)}(d),e.type==="end"&&function(w){w.append("circle").attr("class","end-state-outer").attr("r",ae().state.sizeUnit+ae().state.miniPadding).attr("cx",ae().state.padding+ae().state.sizeUnit+ae().state.miniPadding).attr("cy",ae().state.padding+ae().state.sizeUnit+ae().state.miniPadding),w.append("circle").attr("class","end-state-inner").attr("r",ae().state.sizeUnit).attr("cx",ae().state.padding+ae().state.sizeUnit+2).attr("cy",ae().state.padding+ae().state.sizeUnit+2)}(d),e.type!=="fork"&&e.type!=="join"||function(w,C){var S=ae().state.forkWidth,L=ae().state.forkHeight;if(C.parentId){var j=S;S=L,L=j}w.append("rect").style("stroke","black").style("fill","black").attr("width",S).attr("height",L).attr("x",ae().state.padding).attr("y",ae().state.padding)}(d,e),e.type==="note"&&J(e.note.text,d),e.type==="divider"&&function(w){w.append("line").style("stroke","grey").style("stroke-dasharray","3").attr("x1",ae().state.textHeight).attr("class","divider").attr("x2",2*ae().state.textHeight).attr("y1",0).attr("y2",0)}(d),e.type==="default"&&e.descriptions.length===0&&function(w,C){var S=w.append("text").attr("x",2*ae().state.padding).attr("y",ae().state.textHeight+2*ae().state.padding).attr("font-size",ae().state.fontSize).attr("class","state-title").text(C.id).node().getBBox();w.insert("rect",":first-child").attr("x",ae().state.padding).attr("y",ae().state.padding).attr("width",S.width+2*ae().state.padding).attr("height",S.height+2*ae().state.padding).attr("rx",ae().state.radius)}(d,e),e.type==="default"&&e.descriptions.length>0&&function(w,C){var S=w.append("text").attr("x",2*ae().state.padding).attr("y",ae().state.textHeight+1.3*ae().state.padding).attr("font-size",ae().state.fontSize).attr("class","state-title").text(C.descriptions[0]).node().getBBox(),L=S.height,j=w.append("text").attr("x",ae().state.padding).attr("y",L+.4*ae().state.padding+ae().state.dividerMargin+ae().state.textHeight).attr("class","state-description"),P=!0,U=!0;C.descriptions.forEach(function(kt){P||(function(_t,lt,Wt){var Ot=_t.append("tspan").attr("x",2*ae().state.padding).text(lt);Wt||Ot.attr("dy",ae().state.textHeight)}(j,kt,U),U=!1),P=!1});var ot=w.append("line").attr("x1",ae().state.padding).attr("y1",ae().state.padding+L+ae().state.dividerMargin/2).attr("y2",ae().state.padding+L+ae().state.dividerMargin/2).attr("class","descr-divider"),vt=j.node().getBBox(),bt=Math.max(vt.width,S.width);ot.attr("x2",bt+3*ae().state.padding),w.insert("rect",":first-child").attr("x",ae().state.padding).attr("y",ae().state.padding).attr("width",bt+2*ae().state.padding).attr("height",vt.height+L+2*ae().state.padding).attr("rx",ae().state.radius)}(d,e);var g,v=d.node().getBBox();return u.width=v.width+2*ae().state.padding,u.height=v.height+2*ae().state.padding,g=u,Y[i]=g,u},Z=0;Dp.parser.yy=B;var at={},nt=function t(e,i,u,d){var g,v=new(Wi()).Graph({compound:!0,multigraph:!0}),w=!0;for(g=0;g<e.length;g++)if(e[g].stmt==="relation"){w=!1;break}u?v.setGraph({rankdir:"LR",multigraph:!0,compound:!0,ranker:"tight-tree",ranksep:w?1:H.edgeLengthFactor,nodeSep:w?1:50,isMultiGraph:!0}):v.setGraph({rankdir:"TB",multigraph:!0,compound:!0,ranksep:w?1:H.edgeLengthFactor,nodeSep:w?1:50,ranker:"tight-tree",isMultiGraph:!0}),v.setDefaultEdgeLabel(function(){return{}}),B.extract(e);for(var C=B.getStates(),S=B.getRelations(),L=Object.keys(C),j=0;j<L.length;j++){var P=C[L[j]];u&&(P.parentId=u);var U=void 0;if(P.doc){var ot=i.append("g").attr("id",P.id).attr("class","stateGroup");U=t(P.doc,ot,P.id,!d);var vt=(ot=W(ot,P,d)).node().getBBox();U.width=vt.width,U.height=vt.height+H.padding/2,at[P.id]={y:H.compositTitleSize}}else U=Q(i,P);if(P.note){var bt={descriptions:[],id:P.id+"-note",note:P.note,type:"note"},kt=Q(i,bt);P.note.position==="left of"?(v.setNode(U.id+"-note",kt),v.setNode(U.id,U)):(v.setNode(U.id,U),v.setNode(U.id+"-note",kt)),v.setParent(U.id,U.id+"-group"),v.setParent(U.id+"-note",U.id+"-group")}else v.setNode(U.id,U)}p.debug("Count=",v.nodeCount(),v);var _t=0;S.forEach(function(gt){var Lt;_t++,p.debug("Setting edge",gt),v.setEdge(gt.id1,gt.id2,{relation:gt,width:(Lt=gt.title,Lt?Lt.length*H.fontSizeFactor:1),height:H.labelHeight*dr.getRows(gt.title).length,labelpos:"c"},"id"+_t)}),ld().layout(v),p.debug("Graph after layout",v.nodes());var lt=i.node();v.nodes().forEach(function(gt){gt!==void 0&&v.node(gt)!==void 0?(p.warn("Node "+gt+": "+JSON.stringify(v.node(gt))),Se("#"+lt.id+" #"+gt).attr("transform","translate("+(v.node(gt).x-v.node(gt).width/2)+","+(v.node(gt).y+(at[gt]?at[gt].y:0)-v.node(gt).height/2)+" )"),Se("#"+lt.id+" #"+gt).attr("data-x-shift",v.node(gt).x-v.node(gt).width/2),document.querySelectorAll("#"+lt.id+" #"+gt+" .divider").forEach(function(Lt){var ee=Lt.parentElement,At=0,Tt=0;ee&&(ee.parentElement&&(At=ee.parentElement.getBBox().width),Tt=parseInt(ee.getAttribute("data-x-shift"),10),Number.isNaN(Tt)&&(Tt=0)),Lt.setAttribute("x1",0-Tt+8),Lt.setAttribute("x2",At-Tt-8)})):p.debug("No Node "+gt+": "+JSON.stringify(v.node(gt)))});var Wt=lt.getBBox();v.edges().forEach(function(gt){gt!==void 0&&v.edge(gt)!==void 0&&(p.debug("Edge "+gt.v+" -> "+gt.w+": "+JSON.stringify(v.edge(gt))),function(Lt,ee,At){ee.points=ee.points.filter(function(sr){return!Number.isNaN(sr.y)});var Tt=ee.points,zt=Co().x(function(sr){return sr.x}).y(function(sr){return sr.y}).curve(jr),Mt=Lt.append("path").attr("d",zt(Tt)).attr("id","edge"+Z).attr("class","transition"),Jt="";if(ae().state.arrowMarkerAbsolute&&(Jt=(Jt=(Jt=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search).replace(/\(/g,"\\(")).replace(/\)/g,"\\)")),Mt.attr("marker-end","url("+Jt+"#"+function(sr){switch(sr){case B.relationType.AGGREGATION:return"aggregation";case B.relationType.EXTENSION:return"extension";case B.relationType.COMPOSITION:return"composition";case B.relationType.DEPENDENCY:return"dependency"}}(B.relationType.DEPENDENCY)+"End)"),At.title!==void 0){for(var yt=Lt.append("g").attr("class","stateLabel"),ce=Kn.calcLabelPosition(ee.points),ve=ce.x,me=ce.y,Me=dr.getRows(At.title),$e=0,ze=[],fn=0,Ne=0,Pn=0;Pn<=Me.length;Pn++){var Sn=yt.append("text").attr("text-anchor","middle").text(Me[Pn]).attr("x",ve).attr("y",me+$e),dn=Sn.node().getBBox();if(fn=Math.max(fn,dn.width),Ne=Math.min(Ne,dn.x),p.info(dn.x,ve,me+$e),$e===0){var vn=Sn.node().getBBox();$e=vn.height,p.info("Title height",$e,me)}ze.push(Sn)}var on=$e*Me.length;if(Me.length>1){var Jr=(Me.length-1)*$e*.5;ze.forEach(function(sr,bi){return sr.attr("y",me+bi*$e-Jr)}),on=$e*Me.length}var xn=yt.node().getBBox();yt.insert("rect",":first-child").attr("class","box").attr("x",ve-fn/2-ae().state.padding/2).attr("y",me-on/2-ae().state.padding/2-3.5).attr("width",fn+ae().state.padding).attr("height",on+ae().state.padding),p.info(xn)}Z++}(i,v.edge(gt),v.edge(gt).relation))}),Wt=lt.getBBox();var Ot={id:u||"root",label:u||"root",width:0,height:0};return Ot.width=Wt.width+2*H.padding,Ot.height=Wt.height+2*H.padding,p.debug("Doc rendered",Ot,v),Ot};const dt=function(t,e){H=ae().state,Dp.parser.yy.clear(),Dp.parser.parse(t),p.debug("Rendering diagram "+t);var i=Se("[id='".concat(e,"']"));i.append("defs").append("marker").attr("id","dependencyEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 19,7 L9,13 L14,7 L9,1 Z"),new(Wi()).Graph({multigraph:!0,compound:!0,rankdir:"RL"}).setDefaultEdgeLabel(function(){return{}});var u=B.getRootDoc();nt(u,i,void 0,!1);var d=H.padding,g=i.node().getBBox(),v=g.width+2*d,w=g.height+2*d;go(i,w,1.75*v,H.useMaxWidth),i.attr("viewBox","".concat(g.x-H.padding," ").concat(g.y-H.padding," ")+v+" "+w)};var Yt={},Rt={},Qt=function(t,e,i,u){if(i.id!=="root"){var d="rect";i.start===!0&&(d="start"),i.start===!1&&(d="end"),i.type!=="default"&&(d=i.type),Rt[i.id]||(Rt[i.id]={id:i.id,shape:d,description:dr.sanitizeText(i.id,ae()),classes:"statediagram-state"}),i.description&&(Array.isArray(Rt[i.id].description)?(Rt[i.id].shape="rectWithTitle",Rt[i.id].description.push(i.description)):Rt[i.id].description.length>0?(Rt[i.id].shape="rectWithTitle",Rt[i.id].description===i.id?Rt[i.id].description=[i.description]:Rt[i.id].description=[Rt[i.id].description,i.description]):(Rt[i.id].shape="rect",Rt[i.id].description=i.description),Rt[i.id].description=dr.sanitizeTextOrArray(Rt[i.id].description,ae())),Rt[i.id].description.length===1&&Rt[i.id].shape==="rectWithTitle"&&(Rt[i.id].shape="rect"),!Rt[i.id].type&&i.doc&&(p.info("Setting cluster for ",i.id,se(i)),Rt[i.id].type="group",Rt[i.id].dir=se(i),Rt[i.id].shape=i.type==="divider"?"divider":"roundedWithTitle",Rt[i.id].classes=Rt[i.id].classes+" "+(u?"statediagram-cluster statediagram-cluster-alt":"statediagram-cluster"));var g={labelStyle:"",shape:Rt[i.id].shape,labelText:Rt[i.id].description,classes:Rt[i.id].classes,style:"",id:i.id,dir:Rt[i.id].dir,domId:"state-"+i.id+"-"+_e,type:Rt[i.id].type,padding:15};if(i.note){var v={labelStyle:"",shape:"note",labelText:i.note.text,classes:"statediagram-note",style:"",id:i.id+"----note-"+_e,domId:"state-"+i.id+"----note-"+_e,type:Rt[i.id].type,padding:15},w={labelStyle:"",shape:"noteGroup",labelText:i.note.text,classes:Rt[i.id].classes,style:"",id:i.id+"----parent",domId:"state-"+i.id+"----parent-"+_e,type:"group",padding:0};_e++,t.setNode(i.id+"----parent",w),t.setNode(v.id,v),t.setNode(i.id,g),t.setParent(i.id,i.id+"----parent"),t.setParent(v.id,i.id+"----parent");var C=i.id,S=v.id;i.note.position==="left of"&&(C=v.id,S=i.id),t.setEdge(C,S,{arrowhead:"none",arrowType:"",style:"fill:none",labelStyle:"",classes:"transition note-edge",arrowheadStyle:"fill: #333",labelpos:"c",labelType:"text",thickness:"normal"})}else t.setNode(i.id,g)}e&&e.id!=="root"&&(p.trace("Setting node ",i.id," to be child of its parent ",e.id),t.setParent(i.id,e.id)),i.doc&&(p.trace("Adding nodes children "),Ut(t,i,i.doc,!u))},_e=0,Ut=function(t,e,i,u){p.trace("items",i),i.forEach(function(d){if(d.stmt==="state"||d.stmt==="default")Qt(t,e,d,u);else if(d.stmt==="relation"){Qt(t,e,d.state1,u),Qt(t,e,d.state2,u);var g={id:"edge"+_e,arrowhead:"normal",arrowTypeEnd:"arrow_barb",style:"fill:none",labelStyle:"",label:dr.sanitizeText(d.description,ae()),arrowheadStyle:"fill: #333",labelpos:"c",labelType:"text",thickness:"normal",classes:"transition"},v=d.state1.id,w=d.state2.id;t.setEdge(v,w,g,_e),_e++}})},se=function(t,e){var i=e||"TB";if(t.doc)for(var u=0;u<t.doc.length;u++){var d=t.doc[u];d.stmt==="dir"&&(i=d.value)}return i};const ft=function(t){for(var e=Object.keys(t),i=0;i<e.length;i++)Yt[e[i]]=t[e[i]]};function Et(t){return function(e){if(Array.isArray(e))return ne(e)}(t)||function(e){if(typeof Symbol!="undefined"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}(t)||function(e,i){if(e){if(typeof e=="string")return ne(e,i);var u=Object.prototype.toString.call(e).slice(8,-1);return u==="Object"&&e.constructor&&(u=e.constructor.name),u==="Map"||u==="Set"?Array.from(e):u==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(u)?ne(e,i):void 0}}(t)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function ne(t,e){(e==null||e>t.length)&&(e=t.length);for(var i=0,u=new Array(e);i<e;i++)u[i]=t[i];return u}var Xt="",re="",Oe=[],Ue=[],gn=[],Qn=function(){for(var t=!0,e=0;e<gn.length;e++)gn[e].processed,t=t&&gn[e].processed;return t};const ir={parseDirective:function(t,e,i){da.parseDirective(this,t,e,i)},getConfig:function(){return ae().journey},clear:function(){Oe.length=0,Ue.length=0,re="",Xt="",gn.length=0},setTitle:function(t){Xt=t},getTitle:function(){return Xt},addSection:function(t){re=t,Oe.push(t)},getSections:function(){return Oe},getTasks:function(){for(var t=Qn(),e=0;!t&&e<100;)t=Qn(),e++;return Ue.push.apply(Ue,gn),Ue},addTask:function(t,e){var i=e.substr(1).split(":"),u=0,d=[];i.length===1?(u=Number(i[0]),d=[]):(u=Number(i[0]),d=i[1].split(","));var g=d.map(function(w){return w.trim()}),v={section:re,type:re,people:g,task:t,score:u};gn.push(v)},addTaskOrg:function(t){var e={section:re,type:re,description:t,task:t,classes:[]};Ue.push(e)},getActors:function(){return t=[],Ue.forEach(function(e){e.people&&t.push.apply(t,Et(e.people))}),Et(new Set(t)).sort();var t}};var Ke=o(9763),pr=o.n(Ke),Bn=function(t,e){var i=t.append("rect");return i.attr("x",e.x),i.attr("y",e.y),i.attr("fill",e.fill),i.attr("stroke",e.stroke),i.attr("width",e.width),i.attr("height",e.height),i.attr("rx",e.rx),i.attr("ry",e.ry),e.class!==void 0&&i.attr("class",e.class),i},Nn=function(t,e){var i=t.append("circle");return i.attr("cx",e.cx),i.attr("cy",e.cy),i.attr("class","actor-"+e.pos),i.attr("fill",e.fill),i.attr("stroke",e.stroke),i.attr("r",e.r),i.class!==void 0&&i.attr("class",i.class),e.title!==void 0&&i.append("title").text(e.title),i},ur=-1,na=function(){function t(d,g,v,w,C,S,L,j){u(g.append("text").attr("x",v+C/2).attr("y",w+S/2+5).style("font-color",j).style("text-anchor","middle").text(d),L)}function e(d,g,v,w,C,S,L,j,P){for(var U=j.taskFontSize,ot=j.taskFontFamily,vt=d.split(/<br\s*\/?>/gi),bt=0;bt<vt.length;bt++){var kt=bt*U-U*(vt.length-1)/2,_t=g.append("text").attr("x",v+C/2).attr("y",w).attr("fill",P).style("text-anchor","middle").style("font-size",U).style("font-family",ot);_t.append("tspan").attr("x",v+C/2).attr("dy",kt).text(vt[bt]),_t.attr("y",w+S/2).attr("dominant-baseline","central").attr("alignment-baseline","central"),u(_t,L)}}function i(d,g,v,w,C,S,L,j){var P=g.append("switch"),U=P.append("foreignObject").attr("x",v).attr("y",w).attr("width",C).attr("height",S).attr("position","fixed").append("xhtml:div").style("display","table").style("height","100%").style("width","100%");U.append("div").attr("class","label").style("display","table-cell").style("text-align","center").style("vertical-align","middle").text(d),e(d,P,v,w,C,S,L,j),u(U,L)}function u(d,g){for(var v in g)v in g&&d.attr(v,g[v])}return function(d){return d.textPlacement==="fo"?i:d.textPlacement==="old"?t:e}}();const Ri=Nn,dc=function(t,e,i){var u=t.append("g"),d={x:0,y:0,width:100,anchor:"start",height:100,rx:0,ry:0};d.x=e.x,d.y=e.y,d.fill=e.fill,d.width=i.width,d.height=i.height,d.class="journey-section section-type-"+e.num,d.rx=3,d.ry=3,Bn(u,d),na(i)(e.text,u,d.x,d.y,d.width,d.height,{class:"journey-section section-type-"+e.num},i,e.colour)},au=function(t,e){var i=e.text.replace(/<br\s*\/?>/gi," "),u=t.append("text");u.attr("x",e.x),u.attr("y",e.y),u.attr("class","legend"),u.style("text-anchor",e.anchor),e.class!==void 0&&u.attr("class",e.class);var d=u.append("tspan");return d.attr("x",e.x+2*e.textMargin),d.text(i),u},Fd=function(t,e,i){var u,d,g,v=e.x+i.width/2,w=t.append("g");ur++,w.append("line").attr("id","task"+ur).attr("x1",v).attr("y1",e.y).attr("x2",v).attr("y2",450).attr("class","task-line").attr("stroke-width","1px").attr("stroke-dasharray","4 2").attr("stroke","#666"),u=w,d={cx:v,cy:300+30*(5-e.score),score:e.score},u.append("circle").attr("cx",d.cx).attr("cy",d.cy).attr("class","face").attr("r",15).attr("stroke-width",2).attr("overflow","visible"),(g=u.append("g")).append("circle").attr("cx",d.cx-5).attr("cy",d.cy-5).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666"),g.append("circle").attr("cx",d.cx+5).attr("cy",d.cy-5).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666"),d.score>3?function(L){var j=ay().startAngle(Math.PI/2).endAngle(Math.PI/2*3).innerRadius(7.5).outerRadius(15/2.2);L.append("path").attr("class","mouth").attr("d",j).attr("transform","translate("+d.cx+","+(d.cy+2)+")")}(g):d.score<3?function(L){var j=ay().startAngle(3*Math.PI/2).endAngle(Math.PI/2*5).innerRadius(7.5).outerRadius(15/2.2);L.append("path").attr("class","mouth").attr("d",j).attr("transform","translate("+d.cx+","+(d.cy+7)+")")}(g):function(L){L.append("line").attr("class","mouth").attr("stroke",2).attr("x1",d.cx-5).attr("y1",d.cy+7).attr("x2",d.cx+5).attr("y2",d.cy+7).attr("class","mouth").attr("stroke-width","1px").attr("stroke","#666")}(g);var C={x:0,y:0,width:100,anchor:"start",height:100,rx:0,ry:0};C.x=e.x,C.y=e.y,C.fill=e.fill,C.width=i.width,C.height=i.height,C.class="task task-type-"+e.num,C.rx=3,C.ry=3,Bn(w,C);var S=e.x+14;e.people.forEach(function(L){var j=e.actors[L].color,P={cx:S,cy:e.y,r:7,fill:j,stroke:"#000",title:L,pos:e.actors[L].position};Nn(w,P),S+=10}),na(i)(e.task,w,C.x,C.y,C.width,C.height,{class:"task"},i,e.colour)};Ke.parser.yy=ir;var bo={},Lp=ae().journey,ou=ae().journey.leftMargin,fa={data:{startx:void 0,stopx:void 0,starty:void 0,stopy:void 0},verticalPos:0,sequenceItems:[],init:function(){this.sequenceItems=[],this.data={startx:void 0,stopx:void 0,starty:void 0,stopy:void 0},this.verticalPos=0},updateVal:function(t,e,i,u){t[e]===void 0?t[e]=i:t[e]=u(i,t[e])},updateBounds:function(t,e,i,u){var d=ae().journey,g=this,v=0;this.sequenceItems.forEach(function(w){v++;var C=g.sequenceItems.length-v+1;g.updateVal(w,"starty",e-C*d.boxMargin,Math.min),g.updateVal(w,"stopy",u+C*d.boxMargin,Math.max),g.updateVal(fa.data,"startx",t-C*d.boxMargin,Math.min),g.updateVal(fa.data,"stopx",i+C*d.boxMargin,Math.max),g.updateVal(w,"startx",t-C*d.boxMargin,Math.min),g.updateVal(w,"stopx",i+C*d.boxMargin,Math.max),g.updateVal(fa.data,"starty",e-C*d.boxMargin,Math.min),g.updateVal(fa.data,"stopy",u+C*d.boxMargin,Math.max)})},insert:function(t,e,i,u){var d=Math.min(t,i),g=Math.max(t,i),v=Math.min(e,u),w=Math.max(e,u);this.updateVal(fa.data,"startx",d,Math.min),this.updateVal(fa.data,"starty",v,Math.min),this.updateVal(fa.data,"stopx",g,Math.max),this.updateVal(fa.data,"stopy",w,Math.max),this.updateBounds(d,v,g,w)},bumpVerticalPos:function(t){this.verticalPos=this.verticalPos+t,this.data.stopy=this.verticalPos},getVerticalPos:function(){return this.verticalPos},getBounds:function(){return this.data}},Bp=Lp.sectionFills,P4=Lp.sectionColours;const Y4=function(t){Object.keys(t).forEach(function(e){Lp[e]=t[e]})},No=function(t,e){var i=ae().journey;Ke.parser.yy.clear(),Ke.parser.parse(t+`
|
|
`),fa.init();var u=Se("#"+e);u.attr("xmlns:xlink","http://www.w3.org/1999/xlink"),u.append("defs").append("marker").attr("id","arrowhead").attr("refX",5).attr("refY",2).attr("markerWidth",6).attr("markerHeight",4).attr("orient","auto").append("path").attr("d","M 0,0 V 4 L6,2 Z");var d=Ke.parser.yy.getTasks(),g=Ke.parser.yy.getTitle(),v=Ke.parser.yy.getActors();for(var w in bo)delete bo[w];var C=0;v.forEach(function(U){bo[U]={color:i.actorColours[C%i.actorColours.length],position:C},C++}),function(U){var ot=ae().journey,vt=60;Object.keys(bo).forEach(function(bt){var kt=bo[bt].color,_t={cx:20,cy:vt,r:7,fill:kt,stroke:"#000",pos:bo[bt].position};Ri(U,_t);var lt={x:40,y:vt+7,fill:"#666",text:bt,textMargin:5|ot.boxTextMargin};au(U,lt),vt+=20})}(u),fa.insert(0,0,ou,50*Object.keys(bo).length),function(U,ot,vt){for(var bt=ae().journey,kt="",_t=vt+(2*bt.height+bt.diagramMarginY),lt=0,Wt="#CCC",Ot="black",gt=0,Lt=0;Lt<ot.length;Lt++){var ee=ot[Lt];if(kt!==ee.section){Wt=Bp[lt%Bp.length],gt=lt%Bp.length,Ot=P4[lt%P4.length];var At={x:Lt*bt.taskMargin+Lt*bt.width+ou,y:50,text:ee.section,fill:Wt,num:gt,colour:Ot};dc(U,At,bt),kt=ee.section,lt++}var Tt=ee.people.reduce(function(zt,Mt){return bo[Mt]&&(zt[Mt]=bo[Mt]),zt},{});ee.x=Lt*bt.taskMargin+Lt*bt.width+ou,ee.y=_t,ee.width=bt.diagramMarginX,ee.height=bt.diagramMarginY,ee.colour=Ot,ee.fill=Wt,ee.num=gt,ee.actors=Tt,Fd(U,ee,bt),fa.insert(ee.x,ee.y,ee.x+ee.width+bt.taskMargin,450)}}(u,d,0);var S=fa.getBounds();g&&u.append("text").text(g).attr("x",ou).attr("font-size","4ex").attr("font-weight","bold").attr("y",25);var L=S.stopy-S.starty+2*i.diagramMarginY,j=ou+S.stopx+2*i.diagramMarginX;go(u,L,j,i.useMaxWidth),u.append("line").attr("x1",ou).attr("y1",4*i.height).attr("x2",j-ou-4).attr("y2",4*i.height).attr("stroke-width",4).attr("stroke","black").attr("marker-end","url(#arrowhead)");var P=g?70:0;u.attr("viewBox","".concat(S.startx," -25 ").concat(j," ").concat(L+P)),u.attr("preserveAspectRatio","xMinYMin meet"),u.attr("height",L+P+25)};var K9={};const F6=function(t){return`g.classGroup text {
|
|
fill: `.concat(t.nodeBorder,`;
|
|
fill: `).concat(t.classText,`;
|
|
stroke: none;
|
|
font-family: `).concat(t.fontFamily,`;
|
|
font-size: 10px;
|
|
|
|
.title {
|
|
font-weight: bolder;
|
|
}
|
|
|
|
}
|
|
|
|
.nodeLabel, .edgeLabel {
|
|
color: `).concat(t.classText,`;
|
|
}
|
|
.edgeLabel .label rect {
|
|
fill: `).concat(t.mainBkg,`;
|
|
}
|
|
.label text {
|
|
fill: `).concat(t.classText,`;
|
|
}
|
|
.edgeLabel .label span {
|
|
background: `).concat(t.mainBkg,`;
|
|
}
|
|
|
|
.classTitle {
|
|
font-weight: bolder;
|
|
}
|
|
.node rect,
|
|
.node circle,
|
|
.node ellipse,
|
|
.node polygon,
|
|
.node path {
|
|
fill: `).concat(t.mainBkg,`;
|
|
stroke: `).concat(t.nodeBorder,`;
|
|
stroke-width: 1px;
|
|
}
|
|
|
|
|
|
.divider {
|
|
stroke: `).concat(t.nodeBorder,`;
|
|
stroke: 1;
|
|
}
|
|
|
|
g.clickable {
|
|
cursor: pointer;
|
|
}
|
|
|
|
g.classGroup rect {
|
|
fill: `).concat(t.mainBkg,`;
|
|
stroke: `).concat(t.nodeBorder,`;
|
|
}
|
|
|
|
g.classGroup line {
|
|
stroke: `).concat(t.nodeBorder,`;
|
|
stroke-width: 1;
|
|
}
|
|
|
|
.classLabel .box {
|
|
stroke: none;
|
|
stroke-width: 0;
|
|
fill: `).concat(t.mainBkg,`;
|
|
opacity: 0.5;
|
|
}
|
|
|
|
.classLabel .label {
|
|
fill: `).concat(t.nodeBorder,`;
|
|
font-size: 10px;
|
|
}
|
|
|
|
.relation {
|
|
stroke: `).concat(t.lineColor,`;
|
|
stroke-width: 1;
|
|
fill: none;
|
|
}
|
|
|
|
.dashed-line{
|
|
stroke-dasharray: 3;
|
|
}
|
|
|
|
#compositionStart, .composition {
|
|
fill: `).concat(t.lineColor,` !important;
|
|
stroke: `).concat(t.lineColor,` !important;
|
|
stroke-width: 1;
|
|
}
|
|
|
|
#compositionEnd, .composition {
|
|
fill: `).concat(t.lineColor,` !important;
|
|
stroke: `).concat(t.lineColor,` !important;
|
|
stroke-width: 1;
|
|
}
|
|
|
|
#dependencyStart, .dependency {
|
|
fill: `).concat(t.lineColor,` !important;
|
|
stroke: `).concat(t.lineColor,` !important;
|
|
stroke-width: 1;
|
|
}
|
|
|
|
#dependencyStart, .dependency {
|
|
fill: `).concat(t.lineColor,` !important;
|
|
stroke: `).concat(t.lineColor,` !important;
|
|
stroke-width: 1;
|
|
}
|
|
|
|
#extensionStart, .extension {
|
|
fill: `).concat(t.lineColor,` !important;
|
|
stroke: `).concat(t.lineColor,` !important;
|
|
stroke-width: 1;
|
|
}
|
|
|
|
#extensionEnd, .extension {
|
|
fill: `).concat(t.lineColor,` !important;
|
|
stroke: `).concat(t.lineColor,` !important;
|
|
stroke-width: 1;
|
|
}
|
|
|
|
#aggregationStart, .aggregation {
|
|
fill: `).concat(t.mainBkg,` !important;
|
|
stroke: `).concat(t.lineColor,` !important;
|
|
stroke-width: 1;
|
|
}
|
|
|
|
#aggregationEnd, .aggregation {
|
|
fill: `).concat(t.mainBkg,` !important;
|
|
stroke: `).concat(t.lineColor,` !important;
|
|
stroke-width: 1;
|
|
}
|
|
|
|
.edgeTerminals {
|
|
font-size: 11px;
|
|
}
|
|
|
|
`)},Q8=function(t){return`.label {
|
|
font-family: `.concat(t.fontFamily,`;
|
|
color: `).concat(t.nodeTextColor||t.textColor,`;
|
|
}
|
|
.cluster-label text {
|
|
fill: `).concat(t.titleColor,`;
|
|
}
|
|
.cluster-label span {
|
|
color: `).concat(t.titleColor,`;
|
|
}
|
|
|
|
.label text,span {
|
|
fill: `).concat(t.nodeTextColor||t.textColor,`;
|
|
color: `).concat(t.nodeTextColor||t.textColor,`;
|
|
}
|
|
|
|
.node rect,
|
|
.node circle,
|
|
.node ellipse,
|
|
.node polygon,
|
|
.node path {
|
|
fill: `).concat(t.mainBkg,`;
|
|
stroke: `).concat(t.nodeBorder,`;
|
|
stroke-width: 1px;
|
|
}
|
|
|
|
.node .label {
|
|
text-align: center;
|
|
}
|
|
.node.clickable {
|
|
cursor: pointer;
|
|
}
|
|
|
|
.arrowheadPath {
|
|
fill: `).concat(t.arrowheadColor,`;
|
|
}
|
|
|
|
.edgePath .path {
|
|
stroke: `).concat(t.lineColor,`;
|
|
stroke-width: 2.0px;
|
|
}
|
|
|
|
.flowchart-link {
|
|
stroke: `).concat(t.lineColor,`;
|
|
fill: none;
|
|
}
|
|
|
|
.edgeLabel {
|
|
background-color: `).concat(t.edgeLabelBackground,`;
|
|
rect {
|
|
opacity: 0.5;
|
|
background-color: `).concat(t.edgeLabelBackground,`;
|
|
fill: `).concat(t.edgeLabelBackground,`;
|
|
}
|
|
text-align: center;
|
|
}
|
|
|
|
.cluster rect {
|
|
fill: `).concat(t.clusterBkg,`;
|
|
stroke: `).concat(t.clusterBorder,`;
|
|
stroke-width: 1px;
|
|
}
|
|
|
|
.cluster text {
|
|
fill: `).concat(t.titleColor,`;
|
|
}
|
|
|
|
.cluster span {
|
|
color: `).concat(t.titleColor,`;
|
|
}
|
|
/* .cluster div {
|
|
color: `).concat(t.titleColor,`;
|
|
} */
|
|
|
|
div.mermaidTooltip {
|
|
position: absolute;
|
|
text-align: center;
|
|
max-width: 200px;
|
|
padding: 2px;
|
|
font-family: `).concat(t.fontFamily,`;
|
|
font-size: 12px;
|
|
background: `).concat(t.tertiaryColor,`;
|
|
border: 1px solid `).concat(t.border2,`;
|
|
border-radius: 2px;
|
|
pointer-events: none;
|
|
z-index: 100;
|
|
}
|
|
`)},J8=function(t){return`
|
|
defs #statediagram-barbEnd {
|
|
fill: `.concat(t.transitionColor,`;
|
|
stroke: `).concat(t.transitionColor,`;
|
|
}
|
|
g.stateGroup text {
|
|
fill: `).concat(t.nodeBorder,`;
|
|
stroke: none;
|
|
font-size: 10px;
|
|
}
|
|
g.stateGroup text {
|
|
fill: `).concat(t.textColor,`;
|
|
stroke: none;
|
|
font-size: 10px;
|
|
|
|
}
|
|
g.stateGroup .state-title {
|
|
font-weight: bolder;
|
|
fill: `).concat(t.stateLabelColor,`;
|
|
}
|
|
|
|
g.stateGroup rect {
|
|
fill: `).concat(t.mainBkg,`;
|
|
stroke: `).concat(t.nodeBorder,`;
|
|
}
|
|
|
|
g.stateGroup line {
|
|
stroke: `).concat(t.lineColor,`;
|
|
stroke-width: 1;
|
|
}
|
|
|
|
.transition {
|
|
stroke: `).concat(t.transitionColor,`;
|
|
stroke-width: 1;
|
|
fill: none;
|
|
}
|
|
|
|
.stateGroup .composit {
|
|
fill: `).concat(t.background,`;
|
|
border-bottom: 1px
|
|
}
|
|
|
|
.stateGroup .alt-composit {
|
|
fill: #e0e0e0;
|
|
border-bottom: 1px
|
|
}
|
|
|
|
.state-note {
|
|
stroke: `).concat(t.noteBorderColor,`;
|
|
fill: `).concat(t.noteBkgColor,`;
|
|
|
|
text {
|
|
fill: `).concat(t.noteTextColor,`;
|
|
stroke: none;
|
|
font-size: 10px;
|
|
}
|
|
}
|
|
|
|
.stateLabel .box {
|
|
stroke: none;
|
|
stroke-width: 0;
|
|
fill: `).concat(t.mainBkg,`;
|
|
opacity: 0.5;
|
|
}
|
|
|
|
.edgeLabel .label rect {
|
|
fill: `).concat(t.labelBackgroundColor,`;
|
|
opacity: 0.5;
|
|
}
|
|
.edgeLabel .label text {
|
|
fill: `).concat(t.transitionLabelColor||t.tertiaryTextColor,`;
|
|
}
|
|
.label div .edgeLabel {
|
|
color: `).concat(t.transitionLabelColor||t.tertiaryTextColor,`;
|
|
}
|
|
|
|
.stateLabel text {
|
|
fill: `).concat(t.stateLabelColor,`;
|
|
font-size: 10px;
|
|
font-weight: bold;
|
|
}
|
|
|
|
.node circle.state-start {
|
|
fill: `).concat(t.specialStateColor,`;
|
|
stroke: `).concat(t.specialStateColor,`;
|
|
}
|
|
|
|
.node .fork-join {
|
|
fill: `).concat(t.specialStateColor,`;
|
|
stroke: `).concat(t.specialStateColor,`;
|
|
}
|
|
|
|
.node circle.state-end {
|
|
fill: `).concat(t.innerEndBackground,`;
|
|
stroke: `).concat(t.background,`;
|
|
stroke-width: 1.5
|
|
}
|
|
.end-state-inner {
|
|
fill: `).concat(t.compositeBackground||t.background,`;
|
|
// stroke: `).concat(t.background,`;
|
|
stroke-width: 1.5
|
|
}
|
|
|
|
.node rect {
|
|
fill: `).concat(t.stateBkg||t.mainBkg,`;
|
|
stroke: `).concat(t.stateBorder||t.nodeBorder,`;
|
|
stroke-width: 1px;
|
|
}
|
|
.node polygon {
|
|
fill: `).concat(t.mainBkg,`;
|
|
stroke: `).concat(t.stateBorder||t.nodeBorder,`;;
|
|
stroke-width: 1px;
|
|
}
|
|
#statediagram-barbEnd {
|
|
fill: `).concat(t.lineColor,`;
|
|
}
|
|
|
|
.statediagram-cluster rect {
|
|
fill: `).concat(t.compositeTitleBackground,`;
|
|
stroke: `).concat(t.stateBorder||t.nodeBorder,`;
|
|
stroke-width: 1px;
|
|
}
|
|
|
|
.cluster-label, .nodeLabel {
|
|
color: `).concat(t.stateLabelColor,`;
|
|
}
|
|
|
|
.statediagram-cluster rect.outer {
|
|
rx: 5px;
|
|
ry: 5px;
|
|
}
|
|
.statediagram-state .divider {
|
|
stroke: `).concat(t.stateBorder||t.nodeBorder,`;
|
|
}
|
|
|
|
.statediagram-state .title-state {
|
|
rx: 5px;
|
|
ry: 5px;
|
|
}
|
|
.statediagram-cluster.statediagram-cluster .inner {
|
|
fill: `).concat(t.compositeBackground||t.background,`;
|
|
}
|
|
.statediagram-cluster.statediagram-cluster-alt .inner {
|
|
fill: `).concat(t.altBackground?t.altBackground:"#efefef",`;
|
|
}
|
|
|
|
.statediagram-cluster .inner {
|
|
rx:0;
|
|
ry:0;
|
|
}
|
|
|
|
.statediagram-state rect.basic {
|
|
rx: 5px;
|
|
ry: 5px;
|
|
}
|
|
.statediagram-state rect.divider {
|
|
stroke-dasharray: 10,10;
|
|
fill: `).concat(t.altBackground?t.altBackground:"#efefef",`;
|
|
}
|
|
|
|
.note-edge {
|
|
stroke-dasharray: 5;
|
|
}
|
|
|
|
.statediagram-note rect {
|
|
fill: `).concat(t.noteBkgColor,`;
|
|
stroke: `).concat(t.noteBorderColor,`;
|
|
stroke-width: 1px;
|
|
rx: 0;
|
|
ry: 0;
|
|
}
|
|
.statediagram-note rect {
|
|
fill: `).concat(t.noteBkgColor,`;
|
|
stroke: `).concat(t.noteBorderColor,`;
|
|
stroke-width: 1px;
|
|
rx: 0;
|
|
ry: 0;
|
|
}
|
|
|
|
.statediagram-note text {
|
|
fill: `).concat(t.noteTextColor,`;
|
|
}
|
|
|
|
.statediagram-note .nodeLabel {
|
|
color: `).concat(t.noteTextColor,`;
|
|
}
|
|
.statediagram .edgeLabel {
|
|
color: red; // `).concat(t.noteTextColor,`;
|
|
}
|
|
|
|
#dependencyStart, #dependencyEnd {
|
|
fill: `).concat(t.lineColor,`;
|
|
stroke: `).concat(t.lineColor,`;
|
|
stroke-width: 1;
|
|
}
|
|
`)};var Q9={flowchart:Q8,"flowchart-v2":Q8,sequence:function(t){return`.actor {
|
|
stroke: `.concat(t.actorBorder,`;
|
|
fill: `).concat(t.actorBkg,`;
|
|
}
|
|
|
|
text.actor > tspan {
|
|
fill: `).concat(t.actorTextColor,`;
|
|
stroke: none;
|
|
}
|
|
|
|
.actor-line {
|
|
stroke: `).concat(t.actorLineColor,`;
|
|
}
|
|
|
|
.messageLine0 {
|
|
stroke-width: 1.5;
|
|
stroke-dasharray: none;
|
|
stroke: `).concat(t.signalColor,`;
|
|
}
|
|
|
|
.messageLine1 {
|
|
stroke-width: 1.5;
|
|
stroke-dasharray: 2, 2;
|
|
stroke: `).concat(t.signalColor,`;
|
|
}
|
|
|
|
#arrowhead path {
|
|
fill: `).concat(t.signalColor,`;
|
|
stroke: `).concat(t.signalColor,`;
|
|
}
|
|
|
|
.sequenceNumber {
|
|
fill: `).concat(t.sequenceNumberColor,`;
|
|
}
|
|
|
|
#sequencenumber {
|
|
fill: `).concat(t.signalColor,`;
|
|
}
|
|
|
|
#crosshead path {
|
|
fill: `).concat(t.signalColor,`;
|
|
stroke: `).concat(t.signalColor,`;
|
|
}
|
|
|
|
.messageText {
|
|
fill: `).concat(t.signalTextColor,`;
|
|
stroke: `).concat(t.signalTextColor,`;
|
|
}
|
|
|
|
.labelBox {
|
|
stroke: `).concat(t.labelBoxBorderColor,`;
|
|
fill: `).concat(t.labelBoxBkgColor,`;
|
|
}
|
|
|
|
.labelText, .labelText > tspan {
|
|
fill: `).concat(t.labelTextColor,`;
|
|
stroke: none;
|
|
}
|
|
|
|
.loopText, .loopText > tspan {
|
|
fill: `).concat(t.loopTextColor,`;
|
|
stroke: none;
|
|
}
|
|
|
|
.loopLine {
|
|
stroke-width: 2px;
|
|
stroke-dasharray: 2, 2;
|
|
stroke: `).concat(t.labelBoxBorderColor,`;
|
|
fill: `).concat(t.labelBoxBorderColor,`;
|
|
}
|
|
|
|
.note {
|
|
//stroke: #decc93;
|
|
stroke: `).concat(t.noteBorderColor,`;
|
|
fill: `).concat(t.noteBkgColor,`;
|
|
}
|
|
|
|
.noteText, .noteText > tspan {
|
|
fill: `).concat(t.noteTextColor,`;
|
|
stroke: none;
|
|
}
|
|
|
|
.activation0 {
|
|
fill: `).concat(t.activationBkgColor,`;
|
|
stroke: `).concat(t.activationBorderColor,`;
|
|
}
|
|
|
|
.activation1 {
|
|
fill: `).concat(t.activationBkgColor,`;
|
|
stroke: `).concat(t.activationBorderColor,`;
|
|
}
|
|
|
|
.activation2 {
|
|
fill: `).concat(t.activationBkgColor,`;
|
|
stroke: `).concat(t.activationBorderColor,`;
|
|
}
|
|
|
|
.actorPopupMenu {
|
|
position: absolute;
|
|
}
|
|
|
|
.actorPopupMenuPanel {
|
|
position: absolute;
|
|
fill: `).concat(t.actorBkg,`;
|
|
box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
|
|
filter: drop-shadow(3px 5px 2px rgb(0 0 0 / 0.4));
|
|
}
|
|
.actor-man line {
|
|
stroke: `).concat(t.actorBorder,`;
|
|
fill: `).concat(t.actorBkg,`;
|
|
}
|
|
.actor-man circle, line {
|
|
stroke: `).concat(t.actorBorder,`;
|
|
fill: `).concat(t.actorBkg,`;
|
|
stroke-width: 2px;
|
|
}
|
|
`)},gantt:function(t){return`
|
|
.mermaid-main-font {
|
|
font-family: "trebuchet ms", verdana, arial, sans-serif;
|
|
font-family: var(--mermaid-font-family);
|
|
}
|
|
.exclude-range {
|
|
fill: `.concat(t.excludeBkgColor,`;
|
|
}
|
|
|
|
.section {
|
|
stroke: none;
|
|
opacity: 0.2;
|
|
}
|
|
|
|
.section0 {
|
|
fill: `).concat(t.sectionBkgColor,`;
|
|
}
|
|
|
|
.section2 {
|
|
fill: `).concat(t.sectionBkgColor2,`;
|
|
}
|
|
|
|
.section1,
|
|
.section3 {
|
|
fill: `).concat(t.altSectionBkgColor,`;
|
|
opacity: 0.2;
|
|
}
|
|
|
|
.sectionTitle0 {
|
|
fill: `).concat(t.titleColor,`;
|
|
}
|
|
|
|
.sectionTitle1 {
|
|
fill: `).concat(t.titleColor,`;
|
|
}
|
|
|
|
.sectionTitle2 {
|
|
fill: `).concat(t.titleColor,`;
|
|
}
|
|
|
|
.sectionTitle3 {
|
|
fill: `).concat(t.titleColor,`;
|
|
}
|
|
|
|
.sectionTitle {
|
|
text-anchor: start;
|
|
// font-size: `).concat(t.ganttFontSize,`;
|
|
// text-height: 14px;
|
|
font-family: 'trebuchet ms', verdana, arial, sans-serif;
|
|
font-family: var(--mermaid-font-family);
|
|
|
|
}
|
|
|
|
|
|
/* Grid and axis */
|
|
|
|
.grid .tick {
|
|
stroke: `).concat(t.gridColor,`;
|
|
opacity: 0.8;
|
|
shape-rendering: crispEdges;
|
|
text {
|
|
font-family: `).concat(t.fontFamily,`;
|
|
fill: `).concat(t.textColor,`;
|
|
}
|
|
}
|
|
|
|
.grid path {
|
|
stroke-width: 0;
|
|
}
|
|
|
|
|
|
/* Today line */
|
|
|
|
.today {
|
|
fill: none;
|
|
stroke: `).concat(t.todayLineColor,`;
|
|
stroke-width: 2px;
|
|
}
|
|
|
|
|
|
/* Task styling */
|
|
|
|
/* Default task */
|
|
|
|
.task {
|
|
stroke-width: 2;
|
|
}
|
|
|
|
.taskText {
|
|
text-anchor: middle;
|
|
font-family: 'trebuchet ms', verdana, arial, sans-serif;
|
|
font-family: var(--mermaid-font-family);
|
|
}
|
|
|
|
// .taskText:not([font-size]) {
|
|
// font-size: `).concat(t.ganttFontSize,`;
|
|
// }
|
|
|
|
.taskTextOutsideRight {
|
|
fill: `).concat(t.taskTextDarkColor,`;
|
|
text-anchor: start;
|
|
// font-size: `).concat(t.ganttFontSize,`;
|
|
font-family: 'trebuchet ms', verdana, arial, sans-serif;
|
|
font-family: var(--mermaid-font-family);
|
|
|
|
}
|
|
|
|
.taskTextOutsideLeft {
|
|
fill: `).concat(t.taskTextDarkColor,`;
|
|
text-anchor: end;
|
|
// font-size: `).concat(t.ganttFontSize,`;
|
|
}
|
|
|
|
/* Special case clickable */
|
|
.task.clickable {
|
|
cursor: pointer;
|
|
}
|
|
.taskText.clickable {
|
|
cursor: pointer;
|
|
fill: `).concat(t.taskTextClickableColor,` !important;
|
|
font-weight: bold;
|
|
}
|
|
|
|
.taskTextOutsideLeft.clickable {
|
|
cursor: pointer;
|
|
fill: `).concat(t.taskTextClickableColor,` !important;
|
|
font-weight: bold;
|
|
}
|
|
|
|
.taskTextOutsideRight.clickable {
|
|
cursor: pointer;
|
|
fill: `).concat(t.taskTextClickableColor,` !important;
|
|
font-weight: bold;
|
|
}
|
|
|
|
/* Specific task settings for the sections*/
|
|
|
|
.taskText0,
|
|
.taskText1,
|
|
.taskText2,
|
|
.taskText3 {
|
|
fill: `).concat(t.taskTextColor,`;
|
|
}
|
|
|
|
.task0,
|
|
.task1,
|
|
.task2,
|
|
.task3 {
|
|
fill: `).concat(t.taskBkgColor,`;
|
|
stroke: `).concat(t.taskBorderColor,`;
|
|
}
|
|
|
|
.taskTextOutside0,
|
|
.taskTextOutside2
|
|
{
|
|
fill: `).concat(t.taskTextOutsideColor,`;
|
|
}
|
|
|
|
.taskTextOutside1,
|
|
.taskTextOutside3 {
|
|
fill: `).concat(t.taskTextOutsideColor,`;
|
|
}
|
|
|
|
|
|
/* Active task */
|
|
|
|
.active0,
|
|
.active1,
|
|
.active2,
|
|
.active3 {
|
|
fill: `).concat(t.activeTaskBkgColor,`;
|
|
stroke: `).concat(t.activeTaskBorderColor,`;
|
|
}
|
|
|
|
.activeText0,
|
|
.activeText1,
|
|
.activeText2,
|
|
.activeText3 {
|
|
fill: `).concat(t.taskTextDarkColor,` !important;
|
|
}
|
|
|
|
|
|
/* Completed task */
|
|
|
|
.done0,
|
|
.done1,
|
|
.done2,
|
|
.done3 {
|
|
stroke: `).concat(t.doneTaskBorderColor,`;
|
|
fill: `).concat(t.doneTaskBkgColor,`;
|
|
stroke-width: 2;
|
|
}
|
|
|
|
.doneText0,
|
|
.doneText1,
|
|
.doneText2,
|
|
.doneText3 {
|
|
fill: `).concat(t.taskTextDarkColor,` !important;
|
|
}
|
|
|
|
|
|
/* Tasks on the critical line */
|
|
|
|
.crit0,
|
|
.crit1,
|
|
.crit2,
|
|
.crit3 {
|
|
stroke: `).concat(t.critBorderColor,`;
|
|
fill: `).concat(t.critBkgColor,`;
|
|
stroke-width: 2;
|
|
}
|
|
|
|
.activeCrit0,
|
|
.activeCrit1,
|
|
.activeCrit2,
|
|
.activeCrit3 {
|
|
stroke: `).concat(t.critBorderColor,`;
|
|
fill: `).concat(t.activeTaskBkgColor,`;
|
|
stroke-width: 2;
|
|
}
|
|
|
|
.doneCrit0,
|
|
.doneCrit1,
|
|
.doneCrit2,
|
|
.doneCrit3 {
|
|
stroke: `).concat(t.critBorderColor,`;
|
|
fill: `).concat(t.doneTaskBkgColor,`;
|
|
stroke-width: 2;
|
|
cursor: pointer;
|
|
shape-rendering: crispEdges;
|
|
}
|
|
|
|
.milestone {
|
|
transform: rotate(45deg) scale(0.8,0.8);
|
|
}
|
|
|
|
.milestoneText {
|
|
font-style: italic;
|
|
}
|
|
.doneCritText0,
|
|
.doneCritText1,
|
|
.doneCritText2,
|
|
.doneCritText3 {
|
|
fill: `).concat(t.taskTextDarkColor,` !important;
|
|
}
|
|
|
|
.activeCritText0,
|
|
.activeCritText1,
|
|
.activeCritText2,
|
|
.activeCritText3 {
|
|
fill: `).concat(t.taskTextDarkColor,` !important;
|
|
}
|
|
|
|
.titleText {
|
|
text-anchor: middle;
|
|
font-size: 18px;
|
|
fill: `).concat(t.textColor,` ;
|
|
font-family: 'trebuchet ms', verdana, arial, sans-serif;
|
|
font-family: var(--mermaid-font-family);
|
|
}
|
|
`)},classDiagram:F6,"classDiagram-v2":F6,class:F6,stateDiagram:J8,state:J8,git:function(){return`
|
|
.commit-id,
|
|
.commit-msg,
|
|
.branch-label {
|
|
fill: lightgrey;
|
|
color: lightgrey;
|
|
font-family: 'trebuchet ms', verdana, arial, sans-serif;
|
|
font-family: var(--mermaid-font-family);
|
|
}
|
|
`},info:function(){return""},pie:function(t){return`
|
|
.pieCircle{
|
|
stroke: `.concat(t.pieStrokeColor,`;
|
|
stroke-width : `).concat(t.pieStrokeWidth,`;
|
|
opacity : `).concat(t.pieOpacity,`;
|
|
}
|
|
.pieTitleText {
|
|
text-anchor: middle;
|
|
font-size: `).concat(t.pieTitleTextSize,`;
|
|
fill: `).concat(t.pieTitleTextColor,`;
|
|
font-family: `).concat(t.fontFamily,`;
|
|
}
|
|
.slice {
|
|
font-family: `).concat(t.fontFamily,`;
|
|
fill: `).concat(t.pieSectionTextColor,`;
|
|
font-size:`).concat(t.pieSectionTextSize,`;
|
|
// fill: white;
|
|
}
|
|
.legend text {
|
|
fill: `).concat(t.pieLegendTextColor,`;
|
|
font-family: `).concat(t.fontFamily,`;
|
|
font-size: `).concat(t.pieLegendTextSize,`;
|
|
}
|
|
`)},er:function(t){return`
|
|
.entityBox {
|
|
fill: `.concat(t.mainBkg,`;
|
|
stroke: `).concat(t.nodeBorder,`;
|
|
}
|
|
|
|
.attributeBoxOdd {
|
|
fill: #ffffff;
|
|
stroke: `).concat(t.nodeBorder,`;
|
|
}
|
|
|
|
.attributeBoxEven {
|
|
fill: #f2f2f2;
|
|
stroke: `).concat(t.nodeBorder,`;
|
|
}
|
|
|
|
.relationshipLabelBox {
|
|
fill: `).concat(t.tertiaryColor,`;
|
|
opacity: 0.7;
|
|
background-color: `).concat(t.tertiaryColor,`;
|
|
rect {
|
|
opacity: 0.5;
|
|
}
|
|
}
|
|
|
|
.relationshipLine {
|
|
stroke: `).concat(t.lineColor,`;
|
|
}
|
|
`)},journey:function(t){return`.label {
|
|
font-family: 'trebuchet ms', verdana, arial, sans-serif;
|
|
font-family: var(--mermaid-font-family);
|
|
color: `.concat(t.textColor,`;
|
|
}
|
|
.mouth {
|
|
stroke: #666;
|
|
}
|
|
|
|
line {
|
|
stroke: `).concat(t.textColor,`
|
|
}
|
|
|
|
.legend {
|
|
fill: `).concat(t.textColor,`;
|
|
}
|
|
|
|
.label text {
|
|
fill: #333;
|
|
}
|
|
.label {
|
|
color: `).concat(t.textColor,`
|
|
}
|
|
|
|
.face {
|
|
`).concat(t.faceColor?"fill: ".concat(t.faceColor):"fill: #FFF8DC",`;
|
|
stroke: #999;
|
|
}
|
|
|
|
.node rect,
|
|
.node circle,
|
|
.node ellipse,
|
|
.node polygon,
|
|
.node path {
|
|
fill: `).concat(t.mainBkg,`;
|
|
stroke: `).concat(t.nodeBorder,`;
|
|
stroke-width: 1px;
|
|
}
|
|
|
|
.node .label {
|
|
text-align: center;
|
|
}
|
|
.node.clickable {
|
|
cursor: pointer;
|
|
}
|
|
|
|
.arrowheadPath {
|
|
fill: `).concat(t.arrowheadColor,`;
|
|
}
|
|
|
|
.edgePath .path {
|
|
stroke: `).concat(t.lineColor,`;
|
|
stroke-width: 1.5px;
|
|
}
|
|
|
|
.flowchart-link {
|
|
stroke: `).concat(t.lineColor,`;
|
|
fill: none;
|
|
}
|
|
|
|
.edgeLabel {
|
|
background-color: `).concat(t.edgeLabelBackground,`;
|
|
rect {
|
|
opacity: 0.5;
|
|
}
|
|
text-align: center;
|
|
}
|
|
|
|
.cluster rect {
|
|
}
|
|
|
|
.cluster text {
|
|
fill: `).concat(t.titleColor,`;
|
|
}
|
|
|
|
div.mermaidTooltip {
|
|
position: absolute;
|
|
text-align: center;
|
|
max-width: 200px;
|
|
padding: 2px;
|
|
font-family: 'trebuchet ms', verdana, arial, sans-serif;
|
|
font-family: var(--mermaid-font-family);
|
|
font-size: 12px;
|
|
background: `).concat(t.tertiaryColor,`;
|
|
border: 1px solid `).concat(t.border2,`;
|
|
border-radius: 2px;
|
|
pointer-events: none;
|
|
z-index: 100;
|
|
}
|
|
|
|
.task-type-0, .section-type-0 {
|
|
`).concat(t.fillType0?"fill: ".concat(t.fillType0):"",`;
|
|
}
|
|
.task-type-1, .section-type-1 {
|
|
`).concat(t.fillType0?"fill: ".concat(t.fillType1):"",`;
|
|
}
|
|
.task-type-2, .section-type-2 {
|
|
`).concat(t.fillType0?"fill: ".concat(t.fillType2):"",`;
|
|
}
|
|
.task-type-3, .section-type-3 {
|
|
`).concat(t.fillType0?"fill: ".concat(t.fillType3):"",`;
|
|
}
|
|
.task-type-4, .section-type-4 {
|
|
`).concat(t.fillType0?"fill: ".concat(t.fillType4):"",`;
|
|
}
|
|
.task-type-5, .section-type-5 {
|
|
`).concat(t.fillType0?"fill: ".concat(t.fillType5):"",`;
|
|
}
|
|
.task-type-6, .section-type-6 {
|
|
`).concat(t.fillType0?"fill: ".concat(t.fillType6):"",`;
|
|
}
|
|
.task-type-7, .section-type-7 {
|
|
`).concat(t.fillType0?"fill: ".concat(t.fillType7):"",`;
|
|
}
|
|
|
|
.actor-0 {
|
|
`).concat(t.actor0?"fill: ".concat(t.actor0):"",`;
|
|
}
|
|
.actor-1 {
|
|
`).concat(t.actor1?"fill: ".concat(t.actor1):"",`;
|
|
}
|
|
.actor-2 {
|
|
`).concat(t.actor2?"fill: ".concat(t.actor2):"",`;
|
|
}
|
|
.actor-3 {
|
|
`).concat(t.actor3?"fill: ".concat(t.actor3):"",`;
|
|
}
|
|
.actor-4 {
|
|
`).concat(t.actor4?"fill: ".concat(t.actor4):"",`;
|
|
}
|
|
.actor-5 {
|
|
`).concat(t.actor5?"fill: ".concat(t.actor5):"",`;
|
|
}
|
|
|
|
}
|
|
`)},requirement:function(t){return`
|
|
|
|
marker {
|
|
fill: `.concat(t.relationColor,`;
|
|
stroke: `).concat(t.relationColor,`;
|
|
}
|
|
|
|
marker.cross {
|
|
stroke: `).concat(t.lineColor,`;
|
|
}
|
|
|
|
svg {
|
|
font-family: `).concat(t.fontFamily,`;
|
|
font-size: `).concat(t.fontSize,`;
|
|
}
|
|
|
|
.reqBox {
|
|
fill: `).concat(t.requirementBackground,`;
|
|
fill-opacity: 100%;
|
|
stroke: `).concat(t.requirementBorderColor,`;
|
|
stroke-width: `).concat(t.requirementBorderSize,`;
|
|
}
|
|
|
|
.reqTitle, .reqLabel{
|
|
fill: `).concat(t.requirementTextColor,`;
|
|
}
|
|
.reqLabelBox {
|
|
fill: `).concat(t.relationLabelBackground,`;
|
|
fill-opacity: 100%;
|
|
}
|
|
|
|
.req-title-line {
|
|
stroke: `).concat(t.requirementBorderColor,`;
|
|
stroke-width: `).concat(t.requirementBorderSize,`;
|
|
}
|
|
.relationshipLine {
|
|
stroke: `).concat(t.relationColor,`;
|
|
stroke-width: 1;
|
|
}
|
|
.relationshipLabel {
|
|
fill: `).concat(t.relationLabelColor,`;
|
|
}
|
|
|
|
`)}};function P6(t){return P6=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},P6(t)}var t7=function(t){var e=t;return(e=(e=e.replace(/fl°°/g,function(){return"&#"})).replace(/fl°/g,function(){return"&"})).replace(/¶ß/g,function(){return";"})},Lm={};function e7(t){var e;g4(t.git),cc(t.flowchart),r4(t.flowchart),t.sequenceDiagram!==void 0&&Rd.setConf(Ji(t.sequence,t.sequenceDiagram)),Rd.setConf(t.sequence),t.gantt,j2(t.class),t.state,ft(t.state),v4(t.class),G2(t.er),Y4(t.journey),tl(t.requirement),e=t.class,Object.keys(e).forEach(function(i){K9[i]=e[i]})}var J9=Object.freeze({render:function(t,e,i,u){X1();var d=e,g=Kn.detectInit(d);g&&(V1(g),T3(g));var v=ae();if(e.length>v.maxTextSize&&(d="graph TB;a[Maximum text size in diagram exceeded];style a fill:#faa"),u!==void 0)u.innerHTML="",Se(u).append("div").attr("id","d"+t).attr("style","font-family: "+v.fontFamily).append("svg").attr("id",t).attr("width","100%").attr("xmlns","http://www.w3.org/2000/svg").append("g");else{var w=document.getElementById(t);w&&w.remove();var C=document.querySelector("#d"+t);C&&C.remove(),Se("body").append("div").attr("id","d"+t).append("svg").attr("id",t).attr("width","100%").attr("xmlns","http://www.w3.org/2000/svg").append("g")}window.txt=d,d=d.replace(/style.*:\S*#.*;/g,function(Ot){return Ot.substring(0,Ot.length-1)}).replace(/classDef.*:\S*#.*;/g,function(Ot){return Ot.substring(0,Ot.length-1)}).replace(/#\w+;/g,function(Ot){var gt=Ot.substring(1,Ot.length-1);return/^\+?\d+$/.test(gt)?"\uFB02\xB0\xB0"+gt+"\xB6\xDF":"\uFB02\xB0"+gt+"\xB6\xDF"});var S=Se("#d"+t).node(),L=Kn.detectType(d,v),j=S.firstChild,P=j.firstChild,U="";if(v.themeCSS!==void 0&&(U+=`
|
|
`.concat(v.themeCSS)),v.fontFamily!==void 0&&(U+=`
|
|
:root { --mermaid-font-family: `.concat(v.fontFamily,"}")),v.altFontFamily!==void 0&&(U+=`
|
|
:root { --mermaid-alt-font-family: `.concat(v.altFontFamily,"}")),L==="flowchart"||L==="flowchart-v2"||L==="graph"){var ot=function(Ot){p.info("Extracting classes"),rr.clear();try{var gt=yp().parser;return gt.yy=rr,gt.parse(Ot),rr.getClasses()}catch{return}}(d),vt=v.htmlLabels||v.flowchart.htmlLabels;for(var bt in ot)vt?(U+=`
|
|
.`.concat(bt," > * { ").concat(ot[bt].styles.join(" !important; ")," !important; }"),U+=`
|
|
.`.concat(bt," span { ").concat(ot[bt].styles.join(" !important; ")," !important; }")):(U+=`
|
|
.`.concat(bt," path { ").concat(ot[bt].styles.join(" !important; ")," !important; }"),U+=`
|
|
.`.concat(bt," rect { ").concat(ot[bt].styles.join(" !important; ")," !important; }"),U+=`
|
|
.`.concat(bt," polygon { ").concat(ot[bt].styles.join(" !important; ")," !important; }"),U+=`
|
|
.`.concat(bt," ellipse { ").concat(ot[bt].styles.join(" !important; ")," !important; }"),U+=`
|
|
.`.concat(bt," circle { ").concat(ot[bt].styles.join(" !important; ")," !important; }"),ot[bt].textStyles&&(U+=`
|
|
.`.concat(bt," tspan { ").concat(ot[bt].textStyles.join(" !important; ")," !important; }")))}var kt=function(Ot,gt){return y2(ad("".concat(Ot,"{").concat(gt,"}")),qx)}("#".concat(t),function(Ot,gt,Lt){return` {
|
|
font-family: `.concat(Lt.fontFamily,`;
|
|
font-size: `).concat(Lt.fontSize,`;
|
|
fill: `).concat(Lt.textColor,`
|
|
}
|
|
|
|
/* Classes common for multiple diagrams */
|
|
|
|
.error-icon {
|
|
fill: `).concat(Lt.errorBkgColor,`;
|
|
}
|
|
.error-text {
|
|
fill: `).concat(Lt.errorTextColor,`;
|
|
stroke: `).concat(Lt.errorTextColor,`;
|
|
}
|
|
|
|
.edge-thickness-normal {
|
|
stroke-width: 2px;
|
|
}
|
|
.edge-thickness-thick {
|
|
stroke-width: 3.5px
|
|
}
|
|
.edge-pattern-solid {
|
|
stroke-dasharray: 0;
|
|
}
|
|
|
|
.edge-pattern-dashed{
|
|
stroke-dasharray: 3;
|
|
}
|
|
.edge-pattern-dotted {
|
|
stroke-dasharray: 2;
|
|
}
|
|
|
|
.marker {
|
|
fill: `).concat(Lt.lineColor,`;
|
|
stroke: `).concat(Lt.lineColor,`;
|
|
}
|
|
.marker.cross {
|
|
stroke: `).concat(Lt.lineColor,`;
|
|
}
|
|
|
|
svg {
|
|
font-family: `).concat(Lt.fontFamily,`;
|
|
font-size: `).concat(Lt.fontSize,`;
|
|
}
|
|
|
|
`).concat(Q9[Ot](Lt),`
|
|
|
|
`).concat(gt,`
|
|
`)}(L,U,v.themeVariables)),_t=document.createElement("style");_t.innerHTML="#".concat(t," ")+kt,j.insertBefore(_t,P);try{switch(L){case"git":v.flowchart.arrowMarkerAbsolute=v.arrowMarkerAbsolute,g4(v.git),function(Ot,gt,Lt){try{var ee=d4().parser;ee.yy=kh,ee.yy.clear(),p.debug("in gitgraph renderer",Ot+`
|
|
`,"id:",gt,Lt),ee.parse(Ot+`
|
|
`),qn=Object.assign(qn,xd,kh.getOptions()),p.debug("effective options",qn);var At=kh.getDirection();Ya=kh.getCommits();var Tt=kh.getBranchesAsObjArray();At==="BT"&&(qn.nodeLabel.x=Tt.length*qn.branchOffset,qn.nodeLabel.width="100%",qn.nodeLabel.y=-2*qn.nodeRadius);var zt=Se('[id="'.concat(gt,'"]'));for(var Mt in function(yt){yt.append("defs").append("g").attr("id","def-commit").append("circle").attr("r",qn.nodeRadius).attr("cx",0).attr("cy",0),yt.select("#def-commit").append("foreignObject").attr("width",qn.nodeLabel.width).attr("height",qn.nodeLabel.height).attr("x",qn.nodeLabel.x).attr("y",qn.nodeLabel.y).attr("class","node-label").attr("requiredFeatures","http://www.w3.org/TR/SVG11/feature#Extensibility").append("p").html("")}(zt),Ju=1,Tt){var Jt=Tt[Mt];ym(zt,Jt.commit.id,Tt,At),mm(zt,Jt.commit,At),Ju++}zt.attr("height",function(){return At==="BT"?Object.keys(Ya).length*qn.nodeSpacing:(Tt.length+1)*qn.branchOffset})}catch(yt){p.error("Error while rendering gitgraph"),p.error(yt.message)}}(d,t,!1);break;case"flowchart":v.flowchart.arrowMarkerAbsolute=v.arrowMarkerAbsolute,cc(v.flowchart),mp(d,t);break;case"flowchart-v2":v.flowchart.arrowMarkerAbsolute=v.arrowMarkerAbsolute,r4(v.flowchart),i4(d,t);break;case"sequence":v.sequence.arrowMarkerAbsolute=v.arrowMarkerAbsolute,v.sequenceDiagram?(Rd.setConf(Object.assign(v.sequence,v.sequenceDiagram)),console.error("`mermaid config.sequenceDiagram` has been renamed to `config.sequence`. Please update your mermaid config.")):Rd.setConf(v.sequence),Rd.draw(d,t);break;case"gantt":v.gantt.arrowMarkerAbsolute=v.arrowMarkerAbsolute,v.gantt,h4(d,t);break;case"class":v.class.arrowMarkerAbsolute=v.arrowMarkerAbsolute,j2(v.class),z2(d,t);break;case"classDiagram":v.class.arrowMarkerAbsolute=v.arrowMarkerAbsolute,function(Ot){Object.keys(Ot).forEach(function(gt){H2[gt]=Ot[gt]})}(v.class),function(Ot,gt){p.info("Drawing class"),Do.clear(),Gu.parser.parse(Ot);var Lt=ae().flowchart;p.info("config:",Lt);var ee=Lt.nodeSpacing||50,At=Lt.rankSpacing||50,Tt=new(Wi()).Graph({multigraph:!0,compound:!0}).setGraph({rankdir:Do.getDirection(),nodesep:ee,ranksep:At,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}}),zt=Do.getClasses(),Mt=Do.getRelations();p.info(Mt),function(Pn,Sn){var dn=Object.keys(Pn);p.info("keys:",dn),p.info(Pn),dn.forEach(function(vn){var on=Pn[vn],Jr="";on.cssClasses.length>0&&(Jr=Jr+" "+on.cssClasses.join(" "));var xn,sr,bi={labelStyle:""},wo=on.text!==void 0?on.text:on.id;on.type,sr="class_box",Sn.setNode(on.id,{labelStyle:bi.labelStyle,shape:sr,labelText:(xn=wo,dr.sanitizeText(xn,ae())),classData:on,rx:0,ry:0,class:Jr,style:bi.style,id:on.id,domId:on.domId,haveCallback:on.haveCallback,link:on.link,width:on.type==="group"?500:void 0,type:on.type,padding:ae().flowchart.padding}),p.info("setNode",{labelStyle:bi.labelStyle,shape:sr,labelText:wo,rx:0,ry:0,class:Jr,style:bi.style,id:on.id,width:on.type==="group"?500:void 0,type:on.type,padding:ae().flowchart.padding})})}(zt,Tt),function(Pn,Sn){var dn=0;Pn.forEach(function(vn){dn++;var on={classes:"relation"};on.pattern=vn.relation.lineType==1?"dashed":"solid",on.id="id"+dn,vn.type==="arrow_open"?on.arrowhead="none":on.arrowhead="normal",p.info(on,vn),on.startLabelRight=vn.relationTitle1==="none"?"":vn.relationTitle1,on.endLabelLeft=vn.relationTitle2==="none"?"":vn.relationTitle2,on.arrowTypeStart=q3(vn.relation.type1),on.arrowTypeEnd=q3(vn.relation.type2);var Jr="",xn="";if(vn.style!==void 0){var sr=Hc(vn.style);Jr=sr.style,xn=sr.labelStyle}else Jr="fill:none";on.style=Jr,on.labelStyle=xn,vn.interpolate!==void 0?on.curve=ns(vn.interpolate,So):Pn.defaultInterpolate!==void 0?on.curve=ns(Pn.defaultInterpolate,So):on.curve=ns(H2.curve,So),vn.text=vn.title,vn.text===void 0?vn.style!==void 0&&(on.arrowheadStyle="fill: #333"):(on.arrowheadStyle="fill: #333",on.labelpos="c",ae().flowchart.htmlLabels?(on.labelType="html",on.label='<span class="edgeLabel">'+vn.text+"</span>"):(on.labelType="text",on.label=vn.text.replace(dr.lineBreakRegex,`
|
|
`),vn.style===void 0&&(on.style=on.style||"stroke: #333; stroke-width: 1.5px;fill:none"),on.labelStyle=on.labelStyle.replace("color:","fill:"))),Sn.setEdge(vn.id1,vn.id2,on,dn)})}(Mt,Tt);var Jt=Se('[id="'.concat(gt,'"]'));Jt.attr("xmlns:xlink","http://www.w3.org/1999/xlink");var yt=Se("#"+gt+" g");$2(yt,Tt,["aggregation","extension","composition","dependency"],"classDiagram",gt);var ce=Jt.node().getBBox(),ve=ce.width+16,me=ce.height+16;if(p.debug("new ViewBox 0 0 ".concat(ve," ").concat(me),"translate(".concat(8-Tt._label.marginx,", ").concat(8-Tt._label.marginy,")")),go(Jt,me,ve,Lt.useMaxWidth),Jt.attr("viewBox","0 0 ".concat(ve," ").concat(me)),Jt.select("g").attr("transform","translate(".concat(8-Tt._label.marginx,", ").concat(8-ce.y,")")),!Lt.htmlLabels)for(var Me=document.querySelectorAll('[id="'+gt+'"] .edgeLabel .label'),$e=0;$e<Me.length;$e++){var ze=Me[$e],fn=ze.getBBox(),Ne=document.createElementNS("http://www.w3.org/2000/svg","rect");Ne.setAttribute("rx",0),Ne.setAttribute("ry",0),Ne.setAttribute("width",fn.width),Ne.setAttribute("height",fn.height),ze.insertBefore(Ne,ze.firstChild)}}(d,t);break;case"state":v.class.arrowMarkerAbsolute=v.arrowMarkerAbsolute,v.state,dt(d,t);break;case"stateDiagram":v.class.arrowMarkerAbsolute=v.arrowMarkerAbsolute,ft(v.state),function(Ot,gt){p.info("Drawing state diagram (v2)",gt),B.clear(),Rt={};var Lt=Nm().parser;Lt.yy=B,Lt.parse(Ot);var ee=B.getDirection();ee===void 0&&(ee="LR");var At=ae().state,Tt=At.nodeSpacing||50,zt=At.rankSpacing||50;p.info(B.getRootDocV2()),B.extract(B.getRootDocV2()),p.info(B.getRootDocV2());var Mt=new(Wi()).Graph({multigraph:!0,compound:!0}).setGraph({rankdir:se(B.getRootDocV2()),nodesep:Tt,ranksep:zt,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}});Qt(Mt,void 0,B.getRootDocV2(),!0);var Jt=Se('[id="'.concat(gt,'"]')),yt=Se("#"+gt+" g");$2(yt,Mt,["barb"],"statediagram",gt);var ce=Jt.node().getBBox(),ve=ce.width+16,me=ce.height+16;Jt.attr("class","statediagram");var Me=Jt.node().getBBox();go(Jt,me,1.75*ve,At.useMaxWidth);var $e="".concat(Me.x-8," ").concat(Me.y-8," ").concat(ve," ").concat(me);p.debug("viewBox ".concat($e)),Jt.attr("viewBox",$e);for(var ze=document.querySelectorAll('[id="'+gt+'"] .edgeLabel .label'),fn=0;fn<ze.length;fn++){var Ne=ze[fn],Pn=Ne.getBBox(),Sn=document.createElementNS("http://www.w3.org/2000/svg","rect");Sn.setAttribute("rx",0),Sn.setAttribute("ry",0),Sn.setAttribute("width",Pn.width),Sn.setAttribute("height",Pn.height),Ne.insertBefore(Sn,Ne.firstChild)}}(d,t);break;case"info":v.class.arrowMarkerAbsolute=v.arrowMarkerAbsolute,v4(v.class),function(Ot,gt,Lt){try{var ee=m4().parser;ee.yy=y4,p.debug(`Renering info diagram
|
|
`+Ot),ee.parse(Ot),p.debug("Parsed info diagram");var At=Se("#"+gt);At.append("g").append("text").attr("x",100).attr("y",40).attr("class","version").attr("font-size","32px").style("text-anchor","middle").text("v "+Lt),At.attr("height",100),At.attr("width",400)}catch(Tt){p.error("Error while rendering info diagram"),p.error(Tt.message)}}(d,t,v2);break;case"pie":E6(d,t);break;case"er":G2(v.er),g6(d,t);break;case"journey":Y4(v.journey),No(d,t);break;case"requirement":tl(v.requirement),Ah(d,t)}}catch(Ot){throw function(gt,Lt){try{p.debug(`Renering svg for syntax error
|
|
`);var ee=Se("#"+gt),At=ee.append("g");At.append("path").attr("class","error-icon").attr("d","m411.313,123.313c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32-9.375,9.375-20.688-20.688c-12.484-12.5-32.766-12.5-45.25,0l-16,16c-1.261,1.261-2.304,2.648-3.31,4.051-21.739-8.561-45.324-13.426-70.065-13.426-105.867,0-192,86.133-192,192s86.133,192 192,192 192-86.133 192-192c0-24.741-4.864-48.327-13.426-70.065 1.402-1.007 2.79-2.049 4.051-3.31l16-16c12.5-12.492 12.5-32.758 0-45.25l-20.688-20.688 9.375-9.375 32.001-31.999zm-219.313,100.687c-52.938,0-96,43.063-96,96 0,8.836-7.164,16-16,16s-16-7.164-16-16c0-70.578 57.422-128 128-128 8.836,0 16,7.164 16,16s-7.164,16-16,16z"),At.append("path").attr("class","error-icon").attr("d","m459.02,148.98c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l16,16c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16.001-16z"),At.append("path").attr("class","error-icon").attr("d","m340.395,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16-16c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l15.999,16z"),At.append("path").attr("class","error-icon").attr("d","m400,64c8.844,0 16-7.164 16-16v-32c0-8.836-7.156-16-16-16-8.844,0-16,7.164-16,16v32c0,8.836 7.156,16 16,16z"),At.append("path").attr("class","error-icon").attr("d","m496,96.586h-32c-8.844,0-16,7.164-16,16 0,8.836 7.156,16 16,16h32c8.844,0 16-7.164 16-16 0-8.836-7.156-16-16-16z"),At.append("path").attr("class","error-icon").attr("d","m436.98,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688l32-32c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32c-6.251,6.25-6.251,16.375-0.001,22.625z"),At.append("text").attr("class","error-text").attr("x",1240).attr("y",250).attr("font-size","150px").style("text-anchor","middle").text("Syntax error in graph"),At.append("text").attr("class","error-text").attr("x",1050).attr("y",400).attr("font-size","100px").style("text-anchor","middle").text("mermaid version "+Lt),ee.attr("height",100),ee.attr("width",400),ee.attr("viewBox","768 0 512 512")}catch(Tt){p.error("Error while rendering info diagram"),p.error(Tt.message)}}(t,v2),Ot}Se('[id="'.concat(t,'"]')).selectAll("foreignobject > *").attr("xmlns","http://www.w3.org/1999/xhtml");var lt=Se("#d"+t).node().innerHTML;if(p.debug("cnf.arrowMarkerAbsolute",v.arrowMarkerAbsolute),v.arrowMarkerAbsolute&&v.arrowMarkerAbsolute!=="false"||(lt=lt.replace(/marker-end="url\(.*?#/g,'marker-end="url(#',"g")),lt=(lt=t7(lt)).replace(/<br>/g,"<br/>"),i!==void 0)switch(L){case"flowchart":case"flowchart-v2":i(lt,rr.bindFunctions);break;case"gantt":i(lt,wd.bindFunctions);break;case"class":case"classDiagram":i(lt,Do.bindFunctions);break;default:i(lt)}else p.debug("CB = undefined!");Mh.forEach(function(Ot){Ot()}),Mh=[];var Wt=Se("#d"+t).node();return Wt!==null&&typeof Wt.remove=="function"&&Se("#d"+t).node().remove(),lt},parse:function(t){var e=ae(),i=Kn.detectInit(t,e);i&&p.debug("reinit ",i);var u,d=Kn.detectType(t,e);switch(p.debug("Type "+d),d){case"git":(u=d4()).parser.yy=kh;break;case"flowchart":case"flowchart-v2":rr.clear(),(u=yp()).parser.yy=rr;break;case"sequence":(u=S6()).parser.yy=Md;break;case"gantt":(u=l4()).parser.yy=wd;break;case"class":case"classDiagram":(u=A3()).parser.yy=Do;break;case"state":case"stateDiagram":(u=Nm()).parser.yy=B;break;case"info":p.debug("info info info"),(u=m4()).parser.yy=y4;break;case"pie":p.debug("pie"),(u=wm()).parser.yy=Sp;break;case"er":p.debug("er"),(u=q2()).parser.yy=Pa;break;case"journey":p.debug("Journey"),(u=pr()).parser.yy=ir;break;case"requirement":case"requirementDiagram":p.debug("RequirementDiagram"),(u=_4()).parser.yy=Sh}return u.parser.yy.graphType=d,u.parser.yy.parseError=function(g,v){throw{str:g,hash:v}},u.parse(t),u},parseDirective:function(t,e,i,u){try{if(e!==void 0)switch(e=e.trim(),i){case"open_directive":Lm={};break;case"type_directive":Lm.type=e.toLowerCase();break;case"arg_directive":Lm.args=JSON.parse(e);break;case"close_directive":(function(d,g,v){switch(p.debug("Directive type=".concat(g.type," with args:"),g.args),g.type){case"init":case"initialize":["config"].forEach(function(w){g.args[w]!==void 0&&(v==="flowchart-v2"&&(v="flowchart"),g.args[v]=g.args[w],delete g.args[w])}),p.debug("sanitize in handleDirective",g.args),V1(g.args),p.debug("sanitize in handleDirective (done)",g.args),g.args,T3(g.args);break;case"wrap":case"nowrap":d&&d.setWrap&&d.setWrap(g.type==="wrap");break;case"themeCss":p.warn("themeCss encountered");break;default:p.warn("Unhandled directive: source: '%%{".concat(g.type,": ").concat(JSON.stringify(g.args?g.args:{}),"}%%"),g)}})(t,Lm,u),Lm=null}}catch(d){p.error("Error while rendering sequenceDiagram directive: ".concat(e," jison context: ").concat(i)),p.error(d.message)}},initialize:function(t){t&&t.fontFamily&&(t.themeVariables&&t.themeVariables.fontFamily||(t.themeVariables={fontFamily:t.fontFamily})),function(i){x3=Ji({},i)}(t),t&&t.theme&&hh[t.theme]?t.themeVariables=hh[t.theme].getThemeVariables(t.themeVariables):t&&(t.themeVariables=hh.default.getThemeVariables(t.themeVariables));var e=P6(t)==="object"?function(i){return ta=Ji({},cd),ta=Ji(ta,i),i.theme&&(ta.themeVariables=hh[i.theme].getThemeVariables(i.themeVariables)),G1=Z1(ta,dh),ta}(t):k3();e7(e),b(e.logLevel)},reinitialize:function(){},getConfig:ae,setConfig:function(t){return Ji(G1,t),ae()},getSiteConfig:k3,updateSiteConfig:function(t){return ta=Ji(ta,t),Z1(ta,dh),ta},reset:function(){X1()},globalReset:function(){X1(),e7(ae())},defaultConfig:cd});b(ae().logLevel),X1(ae());const da=J9;var n7=function(){Oo.startOnLoad?da.getConfig().startOnLoad&&Oo.init():Oo.startOnLoad===void 0&&(p.debug("In start, no config"),da.getConfig().startOnLoad&&Oo.init())};typeof document!="undefined"&&window.addEventListener("load",function(){n7()},!1);var Oo={startOnLoad:!0,htmlLabels:!0,mermaidAPI:da,parse:da.parse,render:da.render,init:function(){var t,e,i=this,u=da.getConfig();arguments.length>=2?(arguments[0]!==void 0&&(Oo.sequenceConfig=arguments[0]),t=arguments[1]):t=arguments[0],typeof arguments[arguments.length-1]=="function"?(e=arguments[arguments.length-1],p.debug("Callback function found")):u.mermaid!==void 0&&(typeof u.mermaid.callback=="function"?(e=u.mermaid.callback,p.debug("Callback function found")):p.debug("No Callback function found")),t=t===void 0?document.querySelectorAll(".mermaid"):typeof t=="string"?document.querySelectorAll(t):t instanceof window.Node?[t]:t,p.debug("Start On Load before: "+Oo.startOnLoad),Oo.startOnLoad!==void 0&&(p.debug("Start On Load inner: "+Oo.startOnLoad),da.updateSiteConfig({startOnLoad:Oo.startOnLoad})),Oo.ganttConfig!==void 0&&da.updateSiteConfig({gantt:Oo.ganttConfig});for(var d,g=new Kn.initIdGeneratior(u.deterministicIds,u.deterministicIDSeed),v=function(C){var S=t[C];if(S.getAttribute("data-processed"))return"continue";S.setAttribute("data-processed",!0);var L="mermaid-".concat(g.next());d=S.innerHTML,d=Kn.entityDecode(d).trim().replace(/<br\s*\/?>/gi,"<br/>");var j=Kn.detectInit(d);j&&p.debug("Detected early reinit: ",j);try{da.render(L,d,function(P,U){S.innerHTML=P,e!==void 0&&e(L),U&&U(S)},S)}catch(P){p.warn("Syntax Error rendering"),p.warn(P),i.parseError&&i.parseError(P)}},w=0;w<t.length;w++)v(w)},initialize:function(t){t.mermaid!==void 0&&(t.mermaid.startOnLoad!==void 0&&(Oo.startOnLoad=t.mermaid.startOnLoad),t.mermaid.htmlLabels!==void 0&&(Oo.htmlLabels=t.mermaid.htmlLabels!=="false"&&t.mermaid.htmlLabels!==!1)),da.initialize(t)},contentLoaded:n7};const tT=Oo},4949:(r,s,o)=>{r.exports={graphlib:o(6614),dagre:o(1463),intersect:o(8114),render:o(5787),util:o(8355),version:o(5689)}},9144:(r,s,o)=>{var l=o(8355);function c(y,p,b,T){var k=y.append("marker").attr("id",p).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");l.applyStyle(k,b[T+"Style"]),b[T+"Class"]&&k.attr("class",b[T+"Class"])}r.exports={default:c,normal:c,vee:function(y,p,b,T){var k=y.append("marker").attr("id",p).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");l.applyStyle(k,b[T+"Style"]),b[T+"Class"]&&k.attr("class",b[T+"Class"])},undirected:function(y,p,b,T){var k=y.append("marker").attr("id",p).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");l.applyStyle(k,b[T+"Style"]),b[T+"Class"]&&k.attr("class",b[T+"Class"])}}},5632:(r,s,o)=>{var l=o(8355),c=o(4322),y=o(1322);r.exports=function(p,b){var T,k=b.nodes().filter(function(O){return l.isSubgraph(b,O)}),D=p.selectAll("g.cluster").data(k,function(O){return O});return D.selectAll("*").remove(),D.enter().append("g").attr("class","cluster").attr("id",function(O){return b.node(O).id}).style("opacity",0),D=p.selectAll("g.cluster"),l.applyTransition(D,b).style("opacity",1),D.each(function(O){var R=b.node(O),z=c.select(this);c.select(this).append("rect");var $=z.append("g").attr("class","label");y($,R,R.clusterLabelPos)}),D.selectAll("rect").each(function(O){var R=b.node(O),z=c.select(this);l.applyStyle(z,R.style)}),T=D.exit?D.exit():D.selectAll(null),l.applyTransition(T,b).style("opacity",0).remove(),D}},6315:(r,s,o)=>{var l=o(1034),c=o(1322),y=o(8355),p=o(4322);r.exports=function(b,T){var k,D=b.selectAll("g.edgeLabel").data(T.edges(),function(O){return y.edgeToId(O)}).classed("update",!0);return D.exit().remove(),D.enter().append("g").classed("edgeLabel",!0).style("opacity",0),(D=b.selectAll("g.edgeLabel")).each(function(O){var R=p.select(this);R.select(".label").remove();var z=T.edge(O),$=c(R,T.edge(O),0,0).classed("label",!0),q=$.node().getBBox();z.labelId&&$.attr("id",z.labelId),l.has(z,"width")||(z.width=q.width),l.has(z,"height")||(z.height=q.height)}),k=D.exit?D.exit():D.selectAll(null),y.applyTransition(k,T).style("opacity",0).remove(),D}},940:(r,s,o)=>{var l=o(1034),c=o(7584),y=o(8355),p=o(4322);function b(T,k){var D=(p.line||p.svg.line)().x(function(O){return O.x}).y(function(O){return O.y});return(D.curve||D.interpolate)(T.curve),D(k)}r.exports=function(T,k,D){var O=T.selectAll("g.edgePath").data(k.edges(),function($){return y.edgeToId($)}).classed("update",!0),R=function($,q){var V=$.enter().append("g").attr("class","edgePath").style("opacity",0);return V.append("path").attr("class","path").attr("d",function(X){var it=q.edge(X),tt=q.node(X.v).elem;return b(it,l.range(it.points.length).map(function(){return ut=(rt=tt).getBBox(),{x:(Ct=rt.ownerSVGElement.getScreenCTM().inverse().multiply(rt.getScreenCTM()).translate(ut.width/2,ut.height/2)).e,y:Ct.f};var rt,ut,Ct}))}),V.append("defs"),V}(O,k);(function($,q){var V=$.exit();y.applyTransition(V,q).style("opacity",0).remove()})(O,k);var z=O.merge!==void 0?O.merge(R):O;return y.applyTransition(z,k).style("opacity",1),z.each(function($){var q=p.select(this),V=k.edge($);V.elem=this,V.id&&q.attr("id",V.id),y.applyClass(q,V.class,(q.classed("update")?"update ":"")+"edgePath")}),z.selectAll("path.path").each(function($){var q=k.edge($);q.arrowheadId=l.uniqueId("arrowhead");var V=p.select(this).attr("marker-end",function(){return"url("+(X=location.href,it=q.arrowheadId,X.split("#")[0]+"#"+it+")");var X,it}).style("fill","none");y.applyTransition(V,k).attr("d",function(X){return function(it,tt){var rt=it.edge(tt),ut=it.node(tt.v),Ct=it.node(tt.w),et=rt.points.slice(1,rt.points.length-1);return et.unshift(c(ut,et[0])),et.push(c(Ct,et[et.length-1])),b(rt,et)}(k,X)}),y.applyStyle(V,q.style)}),z.selectAll("defs *").remove(),z.selectAll("defs").each(function($){var q=k.edge($);(0,D[q.arrowhead])(p.select(this),q.arrowheadId,q,"arrowhead")}),z}},607:(r,s,o)=>{var l=o(1034),c=o(1322),y=o(8355),p=o(4322);r.exports=function(b,T,k){var D,O=T.nodes().filter(function(z){return!y.isSubgraph(T,z)}),R=b.selectAll("g.node").data(O,function(z){return z}).classed("update",!0);return R.exit().remove(),R.enter().append("g").attr("class","node").style("opacity",0),(R=b.selectAll("g.node")).each(function(z){var $=T.node(z),q=p.select(this);y.applyClass(q,$.class,(q.classed("update")?"update ":"")+"node"),q.select("g.label").remove();var V=q.append("g").attr("class","label"),X=c(V,$),it=k[$.shape],tt=l.pick(X.node().getBBox(),"width","height");$.elem=this,$.id&&q.attr("id",$.id),$.labelId&&V.attr("id",$.labelId),l.has($,"width")&&(tt.width=$.width),l.has($,"height")&&(tt.height=$.height),tt.width+=$.paddingLeft+$.paddingRight,tt.height+=$.paddingTop+$.paddingBottom,V.attr("transform","translate("+($.paddingLeft-$.paddingRight)/2+","+($.paddingTop-$.paddingBottom)/2+")");var rt=p.select(this);rt.select(".label-container").remove();var ut=it(rt,tt,$).classed("label-container",!0);y.applyStyle(ut,$.style);var Ct=ut.node().getBBox();$.width=Ct.width,$.height=Ct.height}),D=R.exit?R.exit():R.selectAll(null),y.applyTransition(D,T).style("opacity",0).remove(),R}},4322:(r,s,o)=>{var l;if(!l)try{l=o(7188)}catch{}l||(l=window.d3),r.exports=l},1463:(r,s,o)=>{var l;try{l=o(681)}catch{}l||(l=window.dagre),r.exports=l},6614:(r,s,o)=>{var l;try{l=o(8282)}catch{}l||(l=window.graphlib),r.exports=l},8114:(r,s,o)=>{r.exports={node:o(7584),circle:o(6587),ellipse:o(3260),polygon:o(5337),rect:o(8049)}},6587:(r,s,o)=>{var l=o(3260);r.exports=function(c,y,p){return l(c,y,y,p)}},3260:r=>{r.exports=function(s,o,l,c){var y=s.x,p=s.y,b=y-c.x,T=p-c.y,k=Math.sqrt(o*o*T*T+l*l*b*b),D=Math.abs(o*l*b/k);c.x<y&&(D=-D);var O=Math.abs(o*l*T/k);return c.y<p&&(O=-O),{x:y+D,y:p+O}}},6808:r=>{function s(o,l){return o*l>0}r.exports=function(o,l,c,y){var p,b,T,k,D,O,R,z,$,q,V,X,it;if(p=l.y-o.y,T=o.x-l.x,D=l.x*o.y-o.x*l.y,$=p*c.x+T*c.y+D,q=p*y.x+T*y.y+D,!($!==0&&q!==0&&s($,q)||(b=y.y-c.y,k=c.x-y.x,O=y.x*c.y-c.x*y.y,R=b*o.x+k*o.y+O,z=b*l.x+k*l.y+O,R!==0&&z!==0&&s(R,z)||(V=p*k-b*T)==0)))return X=Math.abs(V/2),{x:(it=T*O-k*D)<0?(it-X)/V:(it+X)/V,y:(it=b*D-p*O)<0?(it-X)/V:(it+X)/V}}},7584:r=>{r.exports=function(s,o){return s.intersect(o)}},5337:(r,s,o)=>{var l=o(6808);r.exports=function(c,y,p){var b=c.x,T=c.y,k=[],D=Number.POSITIVE_INFINITY,O=Number.POSITIVE_INFINITY;y.forEach(function(it){D=Math.min(D,it.x),O=Math.min(O,it.y)});for(var R=b-c.width/2-D,z=T-c.height/2-O,$=0;$<y.length;$++){var q=y[$],V=y[$<y.length-1?$+1:0],X=l(c,p,{x:R+q.x,y:z+q.y},{x:R+V.x,y:z+V.y});X&&k.push(X)}return k.length?(k.length>1&&k.sort(function(it,tt){var rt=it.x-p.x,ut=it.y-p.y,Ct=Math.sqrt(rt*rt+ut*ut),et=tt.x-p.x,K=tt.y-p.y,ht=Math.sqrt(et*et+K*K);return Ct<ht?-1:Ct===ht?0:1}),k[0]):(console.log("NO INTERSECTION FOUND, RETURN NODE CENTER",c),c)}},8049:r=>{r.exports=function(s,o){var l,c,y=s.x,p=s.y,b=o.x-y,T=o.y-p,k=s.width/2,D=s.height/2;return Math.abs(T)*k>Math.abs(b)*D?(T<0&&(D=-D),l=T===0?0:D*b/T,c=D):(b<0&&(k=-k),l=k,c=b===0?0:k*T/b),{x:y+l,y:p+c}}},8284:(r,s,o)=>{var l=o(8355);r.exports=function(c,y){var p=c.append("foreignObject").attr("width","100000"),b=p.append("xhtml:div");b.attr("xmlns","http://www.w3.org/1999/xhtml");var T=y.label;switch(typeof T){case"function":b.insert(T);break;case"object":b.insert(function(){return T});break;default:b.html(T)}l.applyStyle(b,y.labelStyle),b.style("display","inline-block"),b.style("white-space","nowrap");var k=b.node().getBoundingClientRect();return p.attr("width",k.width).attr("height",k.height),p}},1322:(r,s,o)=>{var l=o(7318),c=o(8284),y=o(8287);r.exports=function(p,b,T){var k=b.label,D=p.append("g");b.labelType==="svg"?y(D,b):typeof k!="string"||b.labelType==="html"?c(D,b):l(D,b);var O,R=D.node().getBBox();switch(T){case"top":O=-b.height/2;break;case"bottom":O=b.height/2-R.height;break;default:O=-R.height/2}return D.attr("transform","translate("+-R.width/2+","+O+")"),D}},8287:(r,s,o)=>{var l=o(8355);r.exports=function(c,y){var p=c;return p.node().appendChild(y.label),l.applyStyle(p,y.labelStyle),p}},7318:(r,s,o)=>{var l=o(8355);r.exports=function(c,y){for(var p=c.append("text"),b=function(k){for(var D,O="",R=!1,z=0;z<k.length;++z)D=k[z],R?(O+=D==="n"?`
|
|
`:D,R=!1):D==="\\"?R=!0:O+=D;return O}(y.label).split(`
|
|
`),T=0;T<b.length;T++)p.append("tspan").attr("xml:space","preserve").attr("dy","1em").attr("x","1").text(b[T]);return l.applyStyle(p,y.labelStyle),p}},1034:(r,s,o)=>{var l;try{l={defaults:o(1747),each:o(6073),isFunction:o(3560),isPlainObject:o(8630),pick:o(9722),has:o(8721),range:o(6026),uniqueId:o(3955)}}catch{}l||(l=window._),r.exports=l},6381:(r,s,o)=>{var l=o(8355),c=o(4322);r.exports=function(y,p){var b=y.filter(function(){return!c.select(this).classed("update")});function T(k){var D=p.node(k);return"translate("+D.x+","+D.y+")"}b.attr("transform",T),l.applyTransition(y,p).style("opacity",1).attr("transform",T),l.applyTransition(b.selectAll("rect"),p).attr("width",function(k){return p.node(k).width}).attr("height",function(k){return p.node(k).height}).attr("x",function(k){return-p.node(k).width/2}).attr("y",function(k){return-p.node(k).height/2})}},4577:(r,s,o)=>{var l=o(8355),c=o(4322),y=o(1034);r.exports=function(p,b){function T(k){var D=b.edge(k);return y.has(D,"x")?"translate("+D.x+","+D.y+")":""}p.filter(function(){return!c.select(this).classed("update")}).attr("transform",T),l.applyTransition(p,b).style("opacity",1).attr("transform",T)}},4849:(r,s,o)=>{var l=o(8355),c=o(4322);r.exports=function(y,p){function b(T){var k=p.node(T);return"translate("+k.x+","+k.y+")"}y.filter(function(){return!c.select(this).classed("update")}).attr("transform",b),l.applyTransition(y,p).style("opacity",1).attr("transform",b)}},5787:(r,s,o)=>{var l=o(1034),c=o(4322),y=o(1463).layout;r.exports=function(){var k=o(607),D=o(5632),O=o(6315),R=o(940),z=o(4849),$=o(4577),q=o(6381),V=o(4418),X=o(9144),it=function(tt,rt){(function(St){St.nodes().forEach(function(pt){var wt=St.node(pt);l.has(wt,"label")||St.children(pt).length||(wt.label=pt),l.has(wt,"paddingX")&&l.defaults(wt,{paddingLeft:wt.paddingX,paddingRight:wt.paddingX}),l.has(wt,"paddingY")&&l.defaults(wt,{paddingTop:wt.paddingY,paddingBottom:wt.paddingY}),l.has(wt,"padding")&&l.defaults(wt,{paddingLeft:wt.padding,paddingRight:wt.padding,paddingTop:wt.padding,paddingBottom:wt.padding}),l.defaults(wt,p),l.each(["paddingLeft","paddingRight","paddingTop","paddingBottom"],function(Ht){wt[Ht]=Number(wt[Ht])}),l.has(wt,"width")&&(wt._prevWidth=wt.width),l.has(wt,"height")&&(wt._prevHeight=wt.height)}),St.edges().forEach(function(pt){var wt=St.edge(pt);l.has(wt,"label")||(wt.label=""),l.defaults(wt,b)})})(rt);var ut=T(tt,"output"),Ct=T(ut,"clusters"),et=T(ut,"edgePaths"),K=O(T(ut,"edgeLabels"),rt),ht=k(T(ut,"nodes"),rt,V);y(rt),z(ht,rt),$(K,rt),R(et,rt,X);var xt=D(Ct,rt);q(xt,rt),function(St){l.each(St.nodes(),function(pt){var wt=St.node(pt);l.has(wt,"_prevWidth")?wt.width=wt._prevWidth:delete wt.width,l.has(wt,"_prevHeight")?wt.height=wt._prevHeight:delete wt.height,delete wt._prevWidth,delete wt._prevHeight})}(rt)};return it.createNodes=function(tt){return arguments.length?(k=tt,it):k},it.createClusters=function(tt){return arguments.length?(D=tt,it):D},it.createEdgeLabels=function(tt){return arguments.length?(O=tt,it):O},it.createEdgePaths=function(tt){return arguments.length?(R=tt,it):R},it.shapes=function(tt){return arguments.length?(V=tt,it):V},it.arrows=function(tt){return arguments.length?(X=tt,it):X},it};var p={paddingLeft:10,paddingRight:10,paddingTop:10,paddingBottom:10,rx:0,ry:0,shape:"rect"},b={arrowhead:"normal",curve:c.curveLinear};function T(k,D){var O=k.select("g."+D);return O.empty()&&(O=k.append("g").attr("class",D)),O}},4418:(r,s,o)=>{var l=o(8049),c=o(3260),y=o(6587),p=o(5337);r.exports={rect:function(b,T,k){var D=b.insert("rect",":first-child").attr("rx",k.rx).attr("ry",k.ry).attr("x",-T.width/2).attr("y",-T.height/2).attr("width",T.width).attr("height",T.height);return k.intersect=function(O){return l(k,O)},D},ellipse:function(b,T,k){var D=T.width/2,O=T.height/2,R=b.insert("ellipse",":first-child").attr("x",-T.width/2).attr("y",-T.height/2).attr("rx",D).attr("ry",O);return k.intersect=function(z){return c(k,D,O,z)},R},circle:function(b,T,k){var D=Math.max(T.width,T.height)/2,O=b.insert("circle",":first-child").attr("x",-T.width/2).attr("y",-T.height/2).attr("r",D);return k.intersect=function(R){return y(k,D,R)},O},diamond:function(b,T,k){var D=T.width*Math.SQRT2/2,O=T.height*Math.SQRT2/2,R=[{x:0,y:-O},{x:-D,y:0},{x:0,y:O},{x:D,y:0}],z=b.insert("polygon",":first-child").attr("points",R.map(function($){return $.x+","+$.y}).join(" "));return k.intersect=function($){return p(k,R,$)},z}}},8355:(r,s,o)=>{var l=o(1034);r.exports={isSubgraph:function(p,b){return!!p.children(b).length},edgeToId:function(p){return y(p.v)+":"+y(p.w)+":"+y(p.name)},applyStyle:function(p,b){b&&p.attr("style",b)},applyClass:function(p,b,T){b&&p.attr("class",b).attr("class",T+" "+p.attr("class"))},applyTransition:function(p,b){var T=b.graph();if(l.isPlainObject(T)){var k=T.transition;if(l.isFunction(k))return k(p)}return p}};var c=/:/g;function y(p){return p?String(p).replace(c,"\\:"):""}},5689:r=>{r.exports="0.6.4"},7188:(r,s,o)=>{o.r(s),o.d(s,{FormatSpecifier:()=>S0,active:()=>Uw,arc:()=>md,area:()=>_d,areaRadial:()=>hm,ascending:()=>c,autoType:()=>h5,axisBottom:()=>ke,axisLeft:()=>Je,axisRight:()=>Le,axisTop:()=>Ve,bisect:()=>k,bisectLeft:()=>T,bisectRight:()=>b,bisector:()=>y,blob:()=>E5,brush:()=>kg,brushSelection:()=>Ww,brushX:()=>l0,brushY:()=>qw,buffer:()=>c_,chord:()=>Eg,clientPoint:()=>bu,cluster:()=>kx,color:()=>ro,contourDensity:()=>hf,contours:()=>zi,create:()=>t4,creator:()=>di,cross:()=>R,csv:()=>u_,csvFormat:()=>n5,csvFormatBody:()=>r5,csvFormatRow:()=>a5,csvFormatRows:()=>i5,csvFormatValue:()=>Wv,csvParse:()=>Hv,csvParseRows:()=>e5,cubehelix:()=>Aa,curveBasis:()=>Th,curveBasisClosed:()=>gm,curveBasisOpen:()=>ym,curveBundle:()=>g4,curveCardinal:()=>y4,curveCardinalClosed:()=>m4,curveCardinalOpen:()=>v4,curveCatmullRom:()=>Tp,curveCatmullRomClosed:()=>xm,curveCatmullRomOpen:()=>Qc,curveLinear:()=>bh,curveLinearClosed:()=>E6,curveMonotoneX:()=>Sh,curveMonotoneY:()=>km,curveNatural:()=>w4,curveStep:()=>x4,curveStepAfter:()=>Ch,curveStepBefore:()=>k4,customEvent:()=>ko,descending:()=>z,deviation:()=>V,dispatch:()=>en,drag:()=>zv,dragDisable:()=>ri,dragEnable:()=>$r,dsv:()=>A5,dsvFormat:()=>ff,easeBack:()=>a_,easeBackIn:()=>x5,easeBackInOut:()=>a_,easeBackOut:()=>k5,easeBounce:()=>df,easeBounceIn:()=>i_,easeBounceInOut:()=>w5,easeBounceOut:()=>df,easeCircle:()=>r_,easeCircleIn:()=>_5,easeCircleInOut:()=>r_,easeCircleOut:()=>b5,easeCubic:()=>xc,easeCubicIn:()=>n0,easeCubicInOut:()=>xc,easeCubicOut:()=>r0,easeElastic:()=>qg,easeElasticIn:()=>T5,easeElasticInOut:()=>o_,easeElasticOut:()=>qg,easeExp:()=>n_,easeExpIn:()=>e_,easeExpInOut:()=>n_,easeExpOut:()=>v5,easeLinear:()=>Gv,easePoly:()=>Xv,easePolyIn:()=>g5,easePolyInOut:()=>Xv,easePolyOut:()=>y5,easeQuad:()=>Zv,easeQuadIn:()=>d5,easeQuadInOut:()=>Zv,easeQuadOut:()=>p5,easeSin:()=>t_,easeSinIn:()=>Jv,easeSinInOut:()=>t_,easeSinOut:()=>m5,entries:()=>Og,event:()=>mt,extent:()=>X,forceCenter:()=>O5,forceCollide:()=>R5,forceLink:()=>P5,forceManyBody:()=>U5,forceRadial:()=>$5,forceSimulation:()=>z5,forceX:()=>g_,forceY:()=>Kg,format:()=>A0,formatDefaultLocale:()=>x_,formatLocale:()=>w_,formatPrefix:()=>Jg,formatSpecifier:()=>yf,geoAlbers:()=>mb,geoAlbersUsa:()=>Qs,geoArea:()=>W5,geoAzimuthalEqualArea:()=>fx,geoAzimuthalEqualAreaRaw:()=>By,geoAzimuthalEquidistant:()=>Ry,geoAzimuthalEquidistantRaw:()=>Iy,geoBounds:()=>Ef,geoCentroid:()=>G5,geoCircle:()=>Z5,geoClipAntimeridian:()=>yy,geoClipCircle:()=>W_,geoClipExtent:()=>K5,geoClipRectangle:()=>q0,geoConicConformal:()=>px,geoConicConformalRaw:()=>Py,geoConicEqualArea:()=>s1,geoConicEqualAreaRaw:()=>yb,geoConicEquidistant:()=>_b,geoConicEquidistantRaw:()=>vb,geoContains:()=>Q_,geoDistance:()=>K0,geoEqualEarth:()=>yx,geoEqualEarthRaw:()=>Yy,geoEquirectangular:()=>gx,geoEquirectangularRaw:()=>zf,geoGnomonic:()=>bb,geoGnomonicRaw:()=>Wf,geoGraticule:()=>eb,geoGraticule10:()=>rx,geoIdentity:()=>u1,geoInterpolate:()=>ix,geoLength:()=>q_,geoMercator:()=>dx,geoMercatorRaw:()=>Yf,geoNaturalEarth1:()=>mx,geoNaturalEarth1Raw:()=>jy,geoOrthographic:()=>vx,geoOrthographicRaw:()=>zy,geoPath:()=>sx,geoProjection:()=>Xo,geoProjectionMutator:()=>Ny,geoRotation:()=>dy,geoStereographic:()=>_x,geoStereographicRaw:()=>Uy,geoStream:()=>Ho,geoTransform:()=>cx,geoTransverseMercator:()=>bx,geoTransverseMercatorRaw:()=>l1,gray:()=>Zw,hcl:()=>Ec,hierarchy:()=>$y,histogram:()=>Pt,hsl:()=>vl,html:()=>f_,image:()=>h_,interpolate:()=>_u,interpolateArray:()=>Qp,interpolateBasis:()=>Lr,interpolateBasisClosed:()=>mu,interpolateBlues:()=>X3,interpolateBrBG:()=>R3,interpolateBuGn:()=>H3,interpolateBuPu:()=>$2,interpolateCividis:()=>dp,interpolateCool:()=>K3,interpolateCubehelix:()=>k1,interpolateCubehelixDefault:()=>y6,interpolateCubehelixLong:()=>Kf,interpolateDate:()=>Qd,interpolateDiscrete:()=>Lx,interpolateGnBu:()=>q3,interpolateGreens:()=>_i,interpolateGreys:()=>vh,interpolateHcl:()=>xs,interpolateHclLong:()=>Qo,interpolateHsl:()=>Bx,interpolateHslLong:()=>Ix,interpolateHue:()=>_1,interpolateInferno:()=>yo,interpolateLab:()=>w1,interpolateMagma:()=>v6,interpolateNumber:()=>Ea,interpolateNumberArray:()=>Vh,interpolateObject:()=>Jd,interpolateOrRd:()=>W2,interpolateOranges:()=>fp,interpolatePRGn:()=>dd,interpolatePiYG:()=>ac,interpolatePlasma:()=>_6,interpolatePuBu:()=>p6,interpolatePuBuGn:()=>V3,interpolatePuOr:()=>ip,interpolatePuRd:()=>oc,interpolatePurples:()=>up,interpolateRainbow:()=>Q2,interpolateRdBu:()=>P3,interpolateRdGy:()=>Y3,interpolateRdPu:()=>qr,interpolateRdYlBu:()=>z3,interpolateRdYlGn:()=>ua,interpolateReds:()=>X2,interpolateRgb:()=>wc,interpolateRgbBasis:()=>bl,interpolateRgbBasisClosed:()=>Po,interpolateRound:()=>Zy,interpolateSinebow:()=>J3,interpolateSpectral:()=>ap,interpolateString:()=>Yo,interpolateTransformCss:()=>tg,interpolateTransformSvg:()=>eg,interpolateTurbo:()=>rr,interpolateViridis:()=>yp,interpolateWarm:()=>K2,interpolateYlGn:()=>g6,interpolateYlGnBu:()=>G3,interpolateYlOrBr:()=>Z2,interpolateYlOrRd:()=>cp,interpolateZoom:()=>b1,interrupt:()=>Ca,interval:()=>A4,isoFormat:()=>S4,isoParse:()=>Sm,json:()=>D5,keys:()=>af,lab:()=>of,lch:()=>Ig,line:()=>bp,lineRadial:()=>lm,linkHorizontal:()=>wd,linkRadial:()=>Kc,linkVertical:()=>u4,local:()=>e4,map:()=>Hs,matcher:()=>cn,max:()=>Bt,mean:()=>Gt,median:()=>oe,merge:()=>le,min:()=>ye,mouse:()=>Ys,namespace:()=>En,namespaces:()=>Nr,nest:()=>Gw,now:()=>G,pack:()=>Mx,packEnclose:()=>kb,packSiblings:()=>Db,pairs:()=>D,partition:()=>Ko,path:()=>$s,permute:()=>It,pie:()=>om,piecewise:()=>Ky,pointRadial:()=>wh,polygonArea:()=>Yb,polygonCentroid:()=>Rx,polygonContains:()=>Jy,polygonHull:()=>Qy,polygonLength:()=>zb,precisionFixed:()=>ty,precisionPrefix:()=>k_,precisionRound:()=>T_,quadtree:()=>pf,quantile:()=>ge,quantize:()=>Pb,radialArea:()=>hm,radialLine:()=>lm,randomBates:()=>Ts,randomExponential:()=>Yx,randomIrwinHall:()=>rh,randomLogNormal:()=>nh,randomNormal:()=>Qf,randomUniform:()=>T1,range:()=>et,rgb:()=>Zi,ribbon:()=>Ag,scaleBand:()=>C1,scaleDiverging:()=>Ra,scaleDivergingLog:()=>Fa,scaleDivergingPow:()=>rs,scaleDivergingSqrt:()=>vr,scaleDivergingSymlog:()=>Oi,scaleIdentity:()=>i2,scaleImplicit:()=>t2,scaleLinear:()=>r2,scaleLog:()=>Vb,scaleOrdinal:()=>S1,scalePoint:()=>Jf,scalePow:()=>u2,scaleQuantile:()=>Qb,scaleQuantize:()=>Jb,scaleSequential:()=>hd,scaleSequentialLog:()=>fd,scaleSequentialPow:()=>z2,scaleSequentialQuantile:()=>O3,scaleSequentialSqrt:()=>s6,scaleSequentialSymlog:()=>j2,scaleSqrt:()=>Hx,scaleSymlog:()=>Xb,scaleThreshold:()=>t3,scaleTime:()=>Wi,scaleUtc:()=>Y2,scan:()=>He,schemeAccent:()=>np,schemeBlues:()=>Z3,schemeBrBG:()=>I3,schemeBuGn:()=>$3,schemeBuPu:()=>W3,schemeCategory10:()=>L3,schemeDark2:()=>c6,schemeGnBu:()=>H2,schemeGreens:()=>Xu,schemeGreys:()=>qc,schemeOrRd:()=>mh,schemeOranges:()=>hp,schemePRGn:()=>F3,schemePaired:()=>u6,schemePastel1:()=>rp,schemePastel2:()=>B3,schemePiYG:()=>pd,schemePuBu:()=>Pa,schemePuBuGn:()=>op,schemePuOr:()=>Wc,schemePuRd:()=>q2,schemePurples:()=>is,schemeRdBu:()=>U2,schemeRdGy:()=>Zu,schemeRdPu:()=>sc,schemeRdYlBu:()=>j3,schemeRdYlGn:()=>gd,schemeReds:()=>lp,schemeSet1:()=>l6,schemeSet2:()=>h6,schemeSet3:()=>f6,schemeSpectral:()=>U3,schemeTableau10:()=>d6,schemeYlGn:()=>G2,schemeYlGnBu:()=>V2,schemeYlOrBr:()=>sp,schemeYlOrRd:()=>Cs,select:()=>yr,selectAll:()=>w6,selection:()=>no,selector:()=>Rr,selectorAll:()=>Jn,set:()=>Tc,shuffle:()=>he,stack:()=>S6,stackOffsetDiverging:()=>tu,stackOffsetExpand:()=>Sd,stackOffsetNone:()=>tl,stackOffsetSilhouette:()=>Ns,stackOffsetWiggle:()=>T4,stackOrderAppearance:()=>Tm,stackOrderAscending:()=>Em,stackOrderDescending:()=>C6,stackOrderInsideOut:()=>hc,stackOrderNone:()=>Ah,stackOrderReverse:()=>Cd,stratify:()=>g1,style:()=>oi,sum:()=>jt,svg:()=>E0,symbol:()=>d4,symbolCircle:()=>Xa,symbolCross:()=>l4,symbolDiamond:()=>_a,symbolSquare:()=>fm,symbolStar:()=>wp,symbolTriangle:()=>dm,symbolWye:()=>Ju,symbols:()=>T6,text:()=>Nl,thresholdFreedmanDiaconis:()=>pe,thresholdScott:()=>de,thresholdSturges:()=>Ht,tickFormat:()=>ts,tickIncrement:()=>pt,tickStep:()=>wt,ticks:()=>St,timeDay:()=>ui,timeDays:()=>sh,timeFormat:()=>od,timeFormatDefaultLocale:()=>R2,timeFormatLocale:()=>l3,timeFriday:()=>ah,timeFridays:()=>oh,timeHour:()=>r3,timeHours:()=>es,timeInterval:()=>$i,timeMillisecond:()=>uh,timeMilliseconds:()=>a3,timeMinute:()=>id,timeMinutes:()=>F1,timeMonday:()=>ih,timeMondays:()=>B1,timeMonth:()=>f2,timeMonths:()=>nc,timeParse:()=>h3,timeSaturday:()=>ic,timeSaturdays:()=>n3,timeSecond:()=>ch,timeSeconds:()=>i3,timeSunday:()=>ju,timeSundays:()=>g2,timeThursday:()=>rc,timeThursdays:()=>I1,timeTuesday:()=>L1,timeTuesdays:()=>y2,timeWednesday:()=>e3,timeWednesdays:()=>qx,timeWeek:()=>ju,timeWeeks:()=>g2,timeYear:()=>Fu,timeYears:()=>Wx,timeout:()=>We,timer:()=>fe,timerFlush:()=>we,touch:()=>Sa,touches:()=>x6,transition:()=>e0,transpose:()=>Kt,tree:()=>Jl,treemap:()=>v1,treemapBinary:()=>Xf,treemapDice:()=>Vf,treemapResquarify:()=>Gy,treemapSlice:()=>Yc,treemapSliceDice:()=>Rb,treemapSquarify:()=>jc,tsv:()=>l_,tsvFormat:()=>Vv,tsvFormatBody:()=>s5,tsvFormatRow:()=>u5,tsvFormatRows:()=>c5,tsvFormatValue:()=>l5,tsvParse:()=>qv,tsvParseRows:()=>o5,utcDay:()=>Ni,utcDays:()=>dr,utcFormat:()=>z1,utcFriday:()=>v2,utcFridays:()=>j1,utcHour:()=>D3,utcHours:()=>o6,utcMillisecond:()=>uh,utcMilliseconds:()=>a3,utcMinute:()=>P2,utcMinutes:()=>gh,utcMonday:()=>Uc,utcMondays:()=>Vx,utcMonth:()=>A3,utcMonths:()=>M3,utcParse:()=>sd,utcSaturday:()=>Uu,utcSaturdays:()=>Gx,utcSecond:()=>ch,utcSeconds:()=>i3,utcSunday:()=>ad,utcSundays:()=>s3,utcThursday:()=>$c,utcThursdays:()=>$u,utcTuesday:()=>m2,utcTuesdays:()=>c3,utcWednesday:()=>o3,utcWednesdays:()=>u3,utcWeek:()=>ad,utcWeeks:()=>s3,utcYear:()=>vi,utcYears:()=>b2,values:()=>Ng,variance:()=>q,version:()=>l,voronoi:()=>Mm,window:()=>In,xml:()=>N5,zip:()=>te,zoom:()=>R6,zoomIdentity:()=>el,zoomTransform:()=>Dm});var l="5.16.0";function c(n,a){return n<a?-1:n>a?1:n>=a?0:NaN}function y(n){var a;return n.length===1&&(a=n,n=function(h,f){return c(a(h),f)}),{left:function(h,f,m,_){for(m==null&&(m=0),_==null&&(_=h.length);m<_;){var E=m+_>>>1;n(h[E],f)<0?m=E+1:_=E}return m},right:function(h,f,m,_){for(m==null&&(m=0),_==null&&(_=h.length);m<_;){var E=m+_>>>1;n(h[E],f)>0?_=E:m=E+1}return m}}}var p=y(c),b=p.right,T=p.left;const k=b;function D(n,a){a==null&&(a=O);for(var h=0,f=n.length-1,m=n[0],_=new Array(f<0?0:f);h<f;)_[h]=a(m,m=n[++h]);return _}function O(n,a){return[n,a]}function R(n,a,h){var f,m,_,E,x=n.length,A=a.length,N=new Array(x*A);for(h==null&&(h=O),f=_=0;f<x;++f)for(E=n[f],m=0;m<A;++m,++_)N[_]=h(E,a[m]);return N}function z(n,a){return a<n?-1:a>n?1:a>=n?0:NaN}function $(n){return n===null?NaN:+n}function q(n,a){var h,f,m=n.length,_=0,E=-1,x=0,A=0;if(a==null)for(;++E<m;)isNaN(h=$(n[E]))||(A+=(f=h-x)*(h-(x+=f/++_)));else for(;++E<m;)isNaN(h=$(a(n[E],E,n)))||(A+=(f=h-x)*(h-(x+=f/++_)));if(_>1)return A/(_-1)}function V(n,a){var h=q(n,a);return h&&Math.sqrt(h)}function X(n,a){var h,f,m,_=n.length,E=-1;if(a==null){for(;++E<_;)if((h=n[E])!=null&&h>=h)for(f=m=h;++E<_;)(h=n[E])!=null&&(f>h&&(f=h),m<h&&(m=h))}else for(;++E<_;)if((h=a(n[E],E,n))!=null&&h>=h)for(f=m=h;++E<_;)(h=a(n[E],E,n))!=null&&(f>h&&(f=h),m<h&&(m=h));return[f,m]}var it=Array.prototype,tt=it.slice,rt=it.map;function ut(n){return function(){return n}}function Ct(n){return n}function et(n,a,h){n=+n,a=+a,h=(m=arguments.length)<2?(a=n,n=0,1):m<3?1:+h;for(var f=-1,m=0|Math.max(0,Math.ceil((a-n)/h)),_=new Array(m);++f<m;)_[f]=n+f*h;return _}var K=Math.sqrt(50),ht=Math.sqrt(10),xt=Math.sqrt(2);function St(n,a,h){var f,m,_,E,x=-1;if(h=+h,(n=+n)==(a=+a)&&h>0)return[n];if((f=a<n)&&(m=n,n=a,a=m),(E=pt(n,a,h))===0||!isFinite(E))return[];if(E>0)for(n=Math.ceil(n/E),a=Math.floor(a/E),_=new Array(m=Math.ceil(a-n+1));++x<m;)_[x]=(n+x)*E;else for(n=Math.floor(n*E),a=Math.ceil(a*E),_=new Array(m=Math.ceil(n-a+1));++x<m;)_[x]=(n-x)/E;return f&&_.reverse(),_}function pt(n,a,h){var f=(a-n)/Math.max(0,h),m=Math.floor(Math.log(f)/Math.LN10),_=f/Math.pow(10,m);return m>=0?(_>=K?10:_>=ht?5:_>=xt?2:1)*Math.pow(10,m):-Math.pow(10,-m)/(_>=K?10:_>=ht?5:_>=xt?2:1)}function wt(n,a,h){var f=Math.abs(a-n)/Math.max(0,h),m=Math.pow(10,Math.floor(Math.log(f)/Math.LN10)),_=f/m;return _>=K?m*=10:_>=ht?m*=5:_>=xt&&(m*=2),a<n?-m:m}function Ht(n){return Math.ceil(Math.log(n.length)/Math.LN2)+1}function Pt(){var n=Ct,a=X,h=Ht;function f(m){var _,E,x=m.length,A=new Array(x);for(_=0;_<x;++_)A[_]=n(m[_],_,m);var N=a(A),B=N[0],Y=N[1],I=h(A,B,Y);Array.isArray(I)||(I=wt(B,Y,I),I=et(Math.ceil(B/I)*I,Y,I));for(var H=I.length;I[0]<=B;)I.shift(),--H;for(;I[H-1]>Y;)I.pop(),--H;var W,J=new Array(H+1);for(_=0;_<=H;++_)(W=J[_]=[]).x0=_>0?I[_-1]:B,W.x1=_<H?I[_]:Y;for(_=0;_<x;++_)B<=(E=A[_])&&E<=Y&&J[k(I,E,0,H)].push(m[_]);return J}return f.value=function(m){return arguments.length?(n=typeof m=="function"?m:ut(m),f):n},f.domain=function(m){return arguments.length?(a=typeof m=="function"?m:ut([m[0],m[1]]),f):a},f.thresholds=function(m){return arguments.length?(h=typeof m=="function"?m:Array.isArray(m)?ut(tt.call(m)):ut(m),f):h},f}function ge(n,a,h){if(h==null&&(h=$),f=n.length){if((a=+a)<=0||f<2)return+h(n[0],0,n);if(a>=1)return+h(n[f-1],f-1,n);var f,m=(f-1)*a,_=Math.floor(m),E=+h(n[_],_,n);return E+(+h(n[_+1],_+1,n)-E)*(m-_)}}function pe(n,a,h){return n=rt.call(n,$).sort(c),Math.ceil((h-a)/(2*(ge(n,.75)-ge(n,.25))*Math.pow(n.length,-1/3)))}function de(n,a,h){return Math.ceil((h-a)/(3.5*V(n)*Math.pow(n.length,-1/3)))}function Bt(n,a){var h,f,m=n.length,_=-1;if(a==null){for(;++_<m;)if((h=n[_])!=null&&h>=h)for(f=h;++_<m;)(h=n[_])!=null&&h>f&&(f=h)}else for(;++_<m;)if((h=a(n[_],_,n))!=null&&h>=h)for(f=h;++_<m;)(h=a(n[_],_,n))!=null&&h>f&&(f=h);return f}function Gt(n,a){var h,f=n.length,m=f,_=-1,E=0;if(a==null)for(;++_<f;)isNaN(h=$(n[_]))?--m:E+=h;else for(;++_<f;)isNaN(h=$(a(n[_],_,n)))?--m:E+=h;if(m)return E/m}function oe(n,a){var h,f=n.length,m=-1,_=[];if(a==null)for(;++m<f;)isNaN(h=$(n[m]))||_.push(h);else for(;++m<f;)isNaN(h=$(a(n[m],m,n)))||_.push(h);return ge(_.sort(c),.5)}function le(n){for(var a,h,f,m=n.length,_=-1,E=0;++_<m;)E+=n[_].length;for(h=new Array(E);--m>=0;)for(a=(f=n[m]).length;--a>=0;)h[--E]=f[a];return h}function ye(n,a){var h,f,m=n.length,_=-1;if(a==null){for(;++_<m;)if((h=n[_])!=null&&h>=h)for(f=h;++_<m;)(h=n[_])!=null&&f>h&&(f=h)}else for(;++_<m;)if((h=a(n[_],_,n))!=null&&h>=h)for(f=h;++_<m;)(h=a(n[_],_,n))!=null&&f>h&&(f=h);return f}function It(n,a){for(var h=a.length,f=new Array(h);h--;)f[h]=n[a[h]];return f}function He(n,a){if(h=n.length){var h,f,m=0,_=0,E=n[_];for(a==null&&(a=c);++m<h;)(a(f=n[m],E)<0||a(E,E)!==0)&&(E=f,_=m);return a(E,E)===0?_:void 0}}function he(n,a,h){for(var f,m,_=(h==null?n.length:h)-(a=a==null?0:+a);_;)m=Math.random()*_--|0,f=n[_+a],n[_+a]=n[m+a],n[m+a]=f;return n}function jt(n,a){var h,f=n.length,m=-1,_=0;if(a==null)for(;++m<f;)(h=+n[m])&&(_+=h);else for(;++m<f;)(h=+a(n[m],m,n))&&(_+=h);return _}function Kt(n){if(!(m=n.length))return[];for(var a=-1,h=ye(n,ct),f=new Array(h);++a<h;)for(var m,_=-1,E=f[a]=new Array(m);++_<m;)E[_]=n[_][a];return f}function ct(n){return n.length}function te(){return Kt(arguments)}var Dt=Array.prototype.slice;function Vt(n){return n}var $t=1e-6;function Nt(n){return"translate("+(n+.5)+",0)"}function ie(n){return"translate(0,"+(n+.5)+")"}function Qe(n){return function(a){return+n(a)}}function be(n){var a=Math.max(0,n.bandwidth()-1)/2;return n.round()&&(a=Math.round(a)),function(h){return+n(h)+a}}function Ce(){return!this.__axis}function un(n,a){var h=[],f=null,m=null,_=6,E=6,x=3,A=n===1||n===4?-1:1,N=n===4||n===2?"x":"y",B=n===1||n===3?Nt:ie;function Y(I){var H=f==null?a.ticks?a.ticks.apply(a,h):a.domain():f,W=m==null?a.tickFormat?a.tickFormat.apply(a,h):Vt:m,J=Math.max(_,0)+x,Q=a.range(),Z=+Q[0]+.5,at=+Q[Q.length-1]+.5,nt=(a.bandwidth?be:Qe)(a.copy()),dt=I.selection?I.selection():I,Yt=dt.selectAll(".domain").data([null]),Rt=dt.selectAll(".tick").data(H,a).order(),Qt=Rt.exit(),_e=Rt.enter().append("g").attr("class","tick"),Ut=Rt.select("line"),se=Rt.select("text");Yt=Yt.merge(Yt.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),Rt=Rt.merge(_e),Ut=Ut.merge(_e.append("line").attr("stroke","currentColor").attr(N+"2",A*_)),se=se.merge(_e.append("text").attr("fill","currentColor").attr(N,A*J).attr("dy",n===1?"0em":n===3?"0.71em":"0.32em")),I!==dt&&(Yt=Yt.transition(I),Rt=Rt.transition(I),Ut=Ut.transition(I),se=se.transition(I),Qt=Qt.transition(I).attr("opacity",$t).attr("transform",function(ft){return isFinite(ft=nt(ft))?B(ft):this.getAttribute("transform")}),_e.attr("opacity",$t).attr("transform",function(ft){var Et=this.parentNode.__axis;return B(Et&&isFinite(Et=Et(ft))?Et:nt(ft))})),Qt.remove(),Yt.attr("d",n===4||n==2?E?"M"+A*E+","+Z+"H0.5V"+at+"H"+A*E:"M0.5,"+Z+"V"+at:E?"M"+Z+","+A*E+"V0.5H"+at+"V"+A*E:"M"+Z+",0.5H"+at),Rt.attr("opacity",1).attr("transform",function(ft){return B(nt(ft))}),Ut.attr(N+"2",A*_),se.attr(N,A*J).text(W),dt.filter(Ce).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",n===2?"start":n===4?"end":"middle"),dt.each(function(){this.__axis=nt})}return Y.scale=function(I){return arguments.length?(a=I,Y):a},Y.ticks=function(){return h=Dt.call(arguments),Y},Y.tickArguments=function(I){return arguments.length?(h=I==null?[]:Dt.call(I),Y):h.slice()},Y.tickValues=function(I){return arguments.length?(f=I==null?null:Dt.call(I),Y):f&&f.slice()},Y.tickFormat=function(I){return arguments.length?(m=I,Y):m},Y.tickSize=function(I){return arguments.length?(_=E=+I,Y):_},Y.tickSizeInner=function(I){return arguments.length?(_=+I,Y):_},Y.tickSizeOuter=function(I){return arguments.length?(E=+I,Y):E},Y.tickPadding=function(I){return arguments.length?(x=+I,Y):x},Y}function Ve(n){return un(1,n)}function Le(n){return un(2,n)}function ke(n){return un(3,n)}function Je(n){return un(4,n)}var Ye={value:function(){}};function Ge(){for(var n,a=0,h=arguments.length,f={};a<h;++a){if(!(n=arguments[a]+"")||n in f||/[\s.]/.test(n))throw new Error("illegal type: "+n);f[n]=[]}return new Ze(f)}function Ze(n){this._=n}function De(n,a){return n.trim().split(/^|\s+/).map(function(h){var f="",m=h.indexOf(".");if(m>=0&&(f=h.slice(m+1),h=h.slice(0,m)),h&&!a.hasOwnProperty(h))throw new Error("unknown type: "+h);return{type:h,name:f}})}function zn(n,a){for(var h,f=0,m=n.length;f<m;++f)if((h=n[f]).name===a)return h.value}function Te(n,a,h){for(var f=0,m=n.length;f<m;++f)if(n[f].name===a){n[f]=Ye,n=n.slice(0,f).concat(n.slice(f+1));break}return h!=null&&n.push({name:a,value:h}),n}Ze.prototype=Ge.prototype={constructor:Ze,on:function(n,a){var h,f=this._,m=De(n+"",f),_=-1,E=m.length;if(!(arguments.length<2)){if(a!=null&&typeof a!="function")throw new Error("invalid callback: "+a);for(;++_<E;)if(h=(n=m[_]).type)f[h]=Te(f[h],n.name,a);else if(a==null)for(h in f)f[h]=Te(f[h],n.name,null);return this}for(;++_<E;)if((h=(n=m[_]).type)&&(h=zn(f[h],n.name)))return h},copy:function(){var n={},a=this._;for(var h in a)n[h]=a[h].slice();return new Ze(n)},call:function(n,a){if((h=arguments.length-2)>0)for(var h,f,m=new Array(h),_=0;_<h;++_)m[_]=arguments[_+2];if(!this._.hasOwnProperty(n))throw new Error("unknown type: "+n);for(_=0,h=(f=this._[n]).length;_<h;++_)f[_].value.apply(a,m)},apply:function(n,a,h){if(!this._.hasOwnProperty(n))throw new Error("unknown type: "+n);for(var f=this._[n],m=0,_=f.length;m<_;++m)f[m].value.apply(a,h)}};const en=Ge;function _n(){}function Rr(n){return n==null?_n:function(){return this.querySelector(n)}}function bn(){return[]}function Jn(n){return n==null?bn:function(){return this.querySelectorAll(n)}}function cn(n){return function(){return this.matches(n)}}function yn(n){return new Array(n.length)}function Xe(n,a){this.ownerDocument=n.ownerDocument,this.namespaceURI=n.namespaceURI,this._next=null,this._parent=n,this.__data__=a}function Cn(n,a,h,f,m,_){for(var E,x=0,A=a.length,N=_.length;x<N;++x)(E=a[x])?(E.__data__=_[x],f[x]=E):h[x]=new Xe(n,_[x]);for(;x<A;++x)(E=a[x])&&(m[x]=E)}function Tn(n,a,h,f,m,_,E){var x,A,N,B={},Y=a.length,I=_.length,H=new Array(Y);for(x=0;x<Y;++x)(A=a[x])&&(H[x]=N="$"+E.call(A,A.__data__,x,a),N in B?m[x]=A:B[N]=A);for(x=0;x<I;++x)(A=B[N="$"+E.call(n,_[x],x,_)])?(f[x]=A,A.__data__=_[x],B[N]=null):h[x]=new Xe(n,_[x]);for(x=0;x<Y;++x)(A=a[x])&&B[H[x]]===A&&(m[x]=A)}function Un(n,a){return n<a?-1:n>a?1:n>=a?0:NaN}Xe.prototype={constructor:Xe,appendChild:function(n){return this._parent.insertBefore(n,this._next)},insertBefore:function(n,a){return this._parent.insertBefore(n,a)},querySelector:function(n){return this._parent.querySelector(n)},querySelectorAll:function(n){return this._parent.querySelectorAll(n)}};var $n="http://www.w3.org/1999/xhtml";const Nr={svg:"http://www.w3.org/2000/svg",xhtml:$n,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function En(n){var a=n+="",h=a.indexOf(":");return h>=0&&(a=n.slice(0,h))!=="xmlns"&&(n=n.slice(h+1)),Nr.hasOwnProperty(a)?{space:Nr[a],local:n}:n}function Wn(n){return function(){this.removeAttribute(n)}}function Yn(n){return function(){this.removeAttributeNS(n.space,n.local)}}function Vn(n,a){return function(){this.setAttribute(n,a)}}function Gn(n,a){return function(){this.setAttributeNS(n.space,n.local,a)}}function tr(n,a){return function(){var h=a.apply(this,arguments);h==null?this.removeAttribute(n):this.setAttribute(n,h)}}function On(n,a){return function(){var h=a.apply(this,arguments);h==null?this.removeAttributeNS(n.space,n.local):this.setAttributeNS(n.space,n.local,h)}}function In(n){return n.ownerDocument&&n.ownerDocument.defaultView||n.document&&n||n.defaultView}function ln(n){return function(){this.style.removeProperty(n)}}function jn(n,a,h){return function(){this.style.setProperty(n,a,h)}}function mn(n,a,h){return function(){var f=a.apply(this,arguments);f==null?this.style.removeProperty(n):this.style.setProperty(n,f,h)}}function oi(n,a){return n.style.getPropertyValue(a)||In(n).getComputedStyle(n,null).getPropertyValue(a)}function gr(n){return function(){delete this[n]}}function ra(n,a){return function(){this[n]=a}}function Rn(n,a){return function(){var h=a.apply(this,arguments);h==null?delete this[n]:this[n]=h}}function Io(n){return n.trim().split(/^|\s+/)}function xa(n){return n.classList||new si(n)}function si(n){this._node=n,this._names=Io(n.getAttribute("class")||"")}function Fr(n,a){for(var h=xa(n),f=-1,m=a.length;++f<m;)h.add(a[f])}function Ur(n,a){for(var h=xa(n),f=-1,m=a.length;++f<m;)h.remove(a[f])}function Xr(n){return function(){Fr(this,n)}}function ti(n){return function(){Ur(this,n)}}function Or(n,a){return function(){(a.apply(this,arguments)?Fr:Ur)(this,n)}}function ei(){this.textContent=""}function Pr(n){return function(){this.textContent=n}}function Fi(n){return function(){var a=n.apply(this,arguments);this.textContent=a==null?"":a}}function fi(){this.innerHTML=""}function er(n){return function(){this.innerHTML=n}}function Vr(n){return function(){var a=n.apply(this,arguments);this.innerHTML=a==null?"":a}}function ka(){this.nextSibling&&this.parentNode.appendChild(this)}function ni(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function Ta(n){return function(){var a=this.ownerDocument,h=this.namespaceURI;return h===$n&&a.documentElement.namespaceURI===$n?a.createElement(n):a.createElementNS(h,n)}}function xo(n){return function(){return this.ownerDocument.createElementNS(n.space,n.local)}}function di(n){var a=En(n);return(a.local?xo:Ta)(a)}function nn(){return null}function Zn(){var n=this.parentNode;n&&n.removeChild(this)}function Mn(){var n=this.cloneNode(!1),a=this.parentNode;return a?a.insertBefore(n,this.nextSibling):n}function Be(){var n=this.cloneNode(!0),a=this.parentNode;return a?a.insertBefore(n,this.nextSibling):n}si.prototype={add:function(n){this._names.indexOf(n)<0&&(this._names.push(n),this._node.setAttribute("class",this._names.join(" ")))},remove:function(n){var a=this._names.indexOf(n);a>=0&&(this._names.splice(a,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(n){return this._names.indexOf(n)>=0}};var Xn={},mt=null;function Kr(n,a,h){return n=Zt(n,a,h),function(f){var m=f.relatedTarget;m&&(m===this||8&m.compareDocumentPosition(this))||n.call(this,f)}}function Zt(n,a,h){return function(f){var m=mt;mt=f;try{n.call(this,this.__data__,a,h)}finally{mt=m}}}function Pi(n){return n.trim().split(/^|\s+/).map(function(a){var h="",f=a.indexOf(".");return f>=0&&(h=a.slice(f+1),a=a.slice(0,f)),{type:a,name:h}})}function ya(n){return function(){var a=this.__on;if(a){for(var h,f=0,m=-1,_=a.length;f<_;++f)h=a[f],n.type&&h.type!==n.type||h.name!==n.name?a[++m]=h:this.removeEventListener(h.type,h.listener,h.capture);++m?a.length=m:delete this.__on}}}function eo(n,a,h){var f=Xn.hasOwnProperty(n.type)?Kr:Zt;return function(m,_,E){var x,A=this.__on,N=f(a,_,E);if(A){for(var B=0,Y=A.length;B<Y;++B)if((x=A[B]).type===n.type&&x.name===n.name)return this.removeEventListener(x.type,x.listener,x.capture),this.addEventListener(x.type,x.listener=N,x.capture=h),void(x.value=a)}this.addEventListener(n.type,N,h),x={type:n.type,name:n.name,value:a,listener:N,capture:h},A?A.push(x):this.__on=[x]}}function ko(n,a,h,f){var m=mt;n.sourceEvent=mt,mt=n;try{return a.apply(h,f)}finally{mt=m}}function Ro(n,a,h){var f=In(n),m=f.CustomEvent;typeof m=="function"?m=new m(a,h):(m=f.document.createEvent("Event"),h?(m.initEvent(a,h.bubbles,h.cancelable),m.detail=h.detail):m.initEvent(a,!1,!1)),n.dispatchEvent(m)}function Fo(n,a){return function(){return Ro(this,n,a)}}function Gr(n,a){return function(){return Ro(this,n,a.apply(this,arguments))}}typeof document!="undefined"&&("onmouseenter"in document.documentElement||(Xn={mouseenter:"mouseover",mouseleave:"mouseout"}));var ia=[null];function Dn(n,a){this._groups=n,this._parents=a}function Ua(){return new Dn([[document.documentElement]],ia)}Dn.prototype=Ua.prototype={constructor:Dn,select:function(n){typeof n!="function"&&(n=Rr(n));for(var a=this._groups,h=a.length,f=new Array(h),m=0;m<h;++m)for(var _,E,x=a[m],A=x.length,N=f[m]=new Array(A),B=0;B<A;++B)(_=x[B])&&(E=n.call(_,_.__data__,B,x))&&("__data__"in _&&(E.__data__=_.__data__),N[B]=E);return new Dn(f,this._parents)},selectAll:function(n){typeof n!="function"&&(n=Jn(n));for(var a=this._groups,h=a.length,f=[],m=[],_=0;_<h;++_)for(var E,x=a[_],A=x.length,N=0;N<A;++N)(E=x[N])&&(f.push(n.call(E,E.__data__,N,x)),m.push(E));return new Dn(f,m)},filter:function(n){typeof n!="function"&&(n=cn(n));for(var a=this._groups,h=a.length,f=new Array(h),m=0;m<h;++m)for(var _,E=a[m],x=E.length,A=f[m]=[],N=0;N<x;++N)(_=E[N])&&n.call(_,_.__data__,N,E)&&A.push(_);return new Dn(f,this._parents)},data:function(n,a){if(!n)return W=new Array(this.size()),B=-1,this.each(function(Rt){W[++B]=Rt}),W;var h,f=a?Tn:Cn,m=this._parents,_=this._groups;typeof n!="function"&&(h=n,n=function(){return h});for(var E=_.length,x=new Array(E),A=new Array(E),N=new Array(E),B=0;B<E;++B){var Y=m[B],I=_[B],H=I.length,W=n.call(Y,Y&&Y.__data__,B,m),J=W.length,Q=A[B]=new Array(J),Z=x[B]=new Array(J);f(Y,I,Q,Z,N[B]=new Array(H),W,a);for(var at,nt,dt=0,Yt=0;dt<J;++dt)if(at=Q[dt]){for(dt>=Yt&&(Yt=dt+1);!(nt=Z[Yt])&&++Yt<J;);at._next=nt||null}}return(x=new Dn(x,m))._enter=A,x._exit=N,x},enter:function(){return new Dn(this._enter||this._groups.map(yn),this._parents)},exit:function(){return new Dn(this._exit||this._groups.map(yn),this._parents)},join:function(n,a,h){var f=this.enter(),m=this,_=this.exit();return f=typeof n=="function"?n(f):f.append(n+""),a!=null&&(m=a(m)),h==null?_.remove():h(_),f&&m?f.merge(m).order():m},merge:function(n){for(var a=this._groups,h=n._groups,f=a.length,m=h.length,_=Math.min(f,m),E=new Array(f),x=0;x<_;++x)for(var A,N=a[x],B=h[x],Y=N.length,I=E[x]=new Array(Y),H=0;H<Y;++H)(A=N[H]||B[H])&&(I[H]=A);for(;x<f;++x)E[x]=a[x];return new Dn(E,this._parents)},order:function(){for(var n=this._groups,a=-1,h=n.length;++a<h;)for(var f,m=n[a],_=m.length-1,E=m[_];--_>=0;)(f=m[_])&&(E&&4^f.compareDocumentPosition(E)&&E.parentNode.insertBefore(f,E),E=f);return this},sort:function(n){function a(Y,I){return Y&&I?n(Y.__data__,I.__data__):!Y-!I}n||(n=Un);for(var h=this._groups,f=h.length,m=new Array(f),_=0;_<f;++_){for(var E,x=h[_],A=x.length,N=m[_]=new Array(A),B=0;B<A;++B)(E=x[B])&&(N[B]=E);N.sort(a)}return new Dn(m,this._parents).order()},call:function(){var n=arguments[0];return arguments[0]=this,n.apply(null,arguments),this},nodes:function(){var n=new Array(this.size()),a=-1;return this.each(function(){n[++a]=this}),n},node:function(){for(var n=this._groups,a=0,h=n.length;a<h;++a)for(var f=n[a],m=0,_=f.length;m<_;++m){var E=f[m];if(E)return E}return null},size:function(){var n=0;return this.each(function(){++n}),n},empty:function(){return!this.node()},each:function(n){for(var a=this._groups,h=0,f=a.length;h<f;++h)for(var m,_=a[h],E=0,x=_.length;E<x;++E)(m=_[E])&&n.call(m,m.__data__,E,_);return this},attr:function(n,a){var h=En(n);if(arguments.length<2){var f=this.node();return h.local?f.getAttributeNS(h.space,h.local):f.getAttribute(h)}return this.each((a==null?h.local?Yn:Wn:typeof a=="function"?h.local?On:tr:h.local?Gn:Vn)(h,a))},style:function(n,a,h){return arguments.length>1?this.each((a==null?ln:typeof a=="function"?mn:jn)(n,a,h==null?"":h)):oi(this.node(),n)},property:function(n,a){return arguments.length>1?this.each((a==null?gr:typeof a=="function"?Rn:ra)(n,a)):this.node()[n]},classed:function(n,a){var h=Io(n+"");if(arguments.length<2){for(var f=xa(this.node()),m=-1,_=h.length;++m<_;)if(!f.contains(h[m]))return!1;return!0}return this.each((typeof a=="function"?Or:a?Xr:ti)(h,a))},text:function(n){return arguments.length?this.each(n==null?ei:(typeof n=="function"?Fi:Pr)(n)):this.node().textContent},html:function(n){return arguments.length?this.each(n==null?fi:(typeof n=="function"?Vr:er)(n)):this.node().innerHTML},raise:function(){return this.each(ka)},lower:function(){return this.each(ni)},append:function(n){var a=typeof n=="function"?n:di(n);return this.select(function(){return this.appendChild(a.apply(this,arguments))})},insert:function(n,a){var h=typeof n=="function"?n:di(n),f=a==null?nn:typeof a=="function"?a:Rr(a);return this.select(function(){return this.insertBefore(h.apply(this,arguments),f.apply(this,arguments)||null)})},remove:function(){return this.each(Zn)},clone:function(n){return this.select(n?Be:Mn)},datum:function(n){return arguments.length?this.property("__data__",n):this.node().__data__},on:function(n,a,h){var f,m,_=Pi(n+""),E=_.length;if(!(arguments.length<2)){for(x=a?eo:ya,h==null&&(h=!1),f=0;f<E;++f)this.each(x(_[f],a,h));return this}var x=this.node().__on;if(x){for(var A,N=0,B=x.length;N<B;++N)for(f=0,A=x[N];f<E;++f)if((m=_[f]).type===A.type&&m.name===A.name)return A.value}},dispatch:function(n,a){return this.each((typeof a=="function"?Gr:Fo)(n,a))}};const no=Ua;function yr(n){return typeof n=="string"?new Dn([[document.querySelector(n)]],[document.documentElement]):new Dn([[n]],ia)}function Cr(){mt.stopImmediatePropagation()}function ki(){mt.preventDefault(),mt.stopImmediatePropagation()}function ri(n){var a=n.document.documentElement,h=yr(n).on("dragstart.drag",ki,!0);"onselectstart"in a?h.on("selectstart.drag",ki,!0):(a.__noselect=a.style.MozUserSelect,a.style.MozUserSelect="none")}function $r(n,a){var h=n.document.documentElement,f=yr(n).on("dragstart.drag",null);a&&(f.on("click.drag",ki,!0),setTimeout(function(){f.on("click.drag",null)},0)),"onselectstart"in h?f.on("selectstart.drag",null):(h.style.MozUserSelect=h.__noselect,delete h.__noselect)}function Hr(n,a,h){n.prototype=a.prototype=h,h.constructor=n}function pi(n,a){var h=Object.create(n.prototype);for(var f in a)h[f]=a[f];return h}function Qr(){}var aa=.7,Gi=1/aa,Yi="\\s*([+-]?\\d+)\\s*",To="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",Ft="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",je=/^#([0-9a-f]{3,8})$/,Fe=new RegExp("^rgb\\("+[Yi,Yi,Yi]+"\\)$"),mr=new RegExp("^rgb\\("+[Ft,Ft,Ft]+"\\)$"),br=new RegExp("^rgba\\("+[Yi,Yi,Yi,To]+"\\)$"),Ti=new RegExp("^rgba\\("+[Ft,Ft,Ft,To]+"\\)$"),ii=new RegExp("^hsl\\("+[To,Ft,Ft]+"\\)$"),_c=new RegExp("^hsla\\("+[To,Ft,Ft,To]+"\\)$"),Ei={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function Di(){return this.rgb().formatHex()}function bc(){return this.rgb().formatRgb()}function ro(n){var a,h;return n=(n+"").trim().toLowerCase(),(a=je.exec(n))?(h=a[1].length,a=parseInt(a[1],16),h===6?gu(a):h===3?new ai(a>>8&15|a>>4&240,a>>4&15|240&a,(15&a)<<4|15&a,1):h===8?Eo(a>>24&255,a>>16&255,a>>8&255,(255&a)/255):h===4?Eo(a>>12&15|a>>8&240,a>>8&15|a>>4&240,a>>4&15|240&a,((15&a)<<4|15&a)/255):null):(a=Fe.exec(n))?new ai(a[1],a[2],a[3],1):(a=mr.exec(n))?new ai(255*a[1]/100,255*a[2]/100,255*a[3]/100,1):(a=br.exec(n))?Eo(a[1],a[2],a[3],a[4]):(a=Ti.exec(n))?Eo(255*a[1]/100,255*a[2]/100,255*a[3]/100,a[4]):(a=ii.exec(n))?io(a[1],a[2]/100,a[3]/100,1):(a=_c.exec(n))?io(a[1],a[2]/100,a[3]/100,a[4]):Ei.hasOwnProperty(n)?gu(Ei[n]):n==="transparent"?new ai(NaN,NaN,NaN,0):null}function gu(n){return new ai(n>>16&255,n>>8&255,255&n,1)}function Eo(n,a,h,f){return f<=0&&(n=a=h=NaN),new ai(n,a,h,f)}function yu(n){return n instanceof Qr||(n=ro(n)),n?new ai((n=n.rgb()).r,n.g,n.b,n.opacity):new ai}function Zi(n,a,h,f){return arguments.length===1?yu(n):new ai(n,a,h,f==null?1:f)}function ai(n,a,h,f){this.r=+n,this.g=+a,this.b=+h,this.opacity=+f}function pl(){return"#"+yl(this.r)+yl(this.g)+yl(this.b)}function gl(){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 yl(n){return((n=Math.max(0,Math.min(255,Math.round(n)||0)))<16?"0":"")+n.toString(16)}function io(n,a,h,f){return f<=0?n=a=h=NaN:h<=0||h>=1?n=a=NaN:a<=0&&(n=NaN),new ao(n,a,h,f)}function ml(n){if(n instanceof ao)return new ao(n.h,n.s,n.l,n.opacity);if(n instanceof Qr||(n=ro(n)),!n)return new ao;if(n instanceof ao)return n;var a=(n=n.rgb()).r/255,h=n.g/255,f=n.b/255,m=Math.min(a,h,f),_=Math.max(a,h,f),E=NaN,x=_-m,A=(_+m)/2;return x?(E=a===_?(h-f)/x+6*(h<f):h===_?(f-a)/x+2:(a-h)/x+4,x/=A<.5?_+m:2-_-m,E*=60):x=A>0&&A<1?0:E,new ao(E,x,A,n.opacity)}function vl(n,a,h,f){return arguments.length===1?ml(n):new ao(n,a,h,f==null?1:f)}function ao(n,a,h,f){this.h=+n,this.s=+a,this.l=+h,this.opacity=+f}function Re(n,a,h){return 255*(n<60?a+(h-a)*n/60:n<180?h:n<240?a+(h-a)*(240-n)/60:a)}function Wh(n,a,h,f,m){var _=n*n,E=_*n;return((1-3*n+3*_-E)*a+(4-6*_+3*E)*h+(1+3*n+3*_-3*E)*f+E*m)/6}function Lr(n){var a=n.length-1;return function(h){var f=h<=0?h=0:h>=1?(h=1,a-1):Math.floor(h*a),m=n[f],_=n[f+1],E=f>0?n[f-1]:2*m-_,x=f<a-1?n[f+2]:2*_-m;return Wh((h-f/a)*a,E,m,_,x)}}function mu(n){var a=n.length;return function(h){var f=Math.floor(((h%=1)<0?++h:h)*a),m=n[(f+a-1)%a],_=n[f%a],E=n[(f+1)%a],x=n[(f+2)%a];return Wh((h-f/a)*a,m,_,E,x)}}function vu(n){return function(){return n}}function _l(n,a){return function(h){return n+h*a}}function $a(n,a){var h=a-n;return h?_l(n,h>180||h<-180?h-360*Math.round(h/360):h):vu(isNaN(n)?a:n)}function Si(n,a){var h=a-n;return h?_l(n,h):vu(isNaN(n)?a:n)}Hr(Qr,ro,{copy:function(n){return Object.assign(new this.constructor,this,n)},displayable:function(){return this.rgb().displayable()},hex:Di,formatHex:Di,formatHsl:function(){return ml(this).formatHsl()},formatRgb:bc,toString:bc}),Hr(ai,Zi,pi(Qr,{brighter:function(n){return n=n==null?Gi:Math.pow(Gi,n),new ai(this.r*n,this.g*n,this.b*n,this.opacity)},darker:function(n){return n=n==null?aa:Math.pow(aa,n),new ai(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:pl,formatHex:pl,formatRgb:gl,toString:gl})),Hr(ao,vl,pi(Qr,{brighter:function(n){return n=n==null?Gi:Math.pow(Gi,n),new ao(this.h,this.s,this.l*n,this.opacity)},darker:function(n){return n=n==null?aa:Math.pow(aa,n),new ao(this.h,this.s,this.l*n,this.opacity)},rgb:function(){var n=this.h%360+360*(this.h<0),a=isNaN(n)||isNaN(this.s)?0:this.s,h=this.l,f=h+(h<.5?h:1-h)*a,m=2*h-f;return new ai(Re(n>=240?n-240:n+120,m,f),Re(n,m,f),Re(n<120?n+240:n-120,m,f),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 wc=function n(a){var h=function(m){return(m=+m)==1?Si:function(_,E){return E-_?function(x,A,N){return x=Math.pow(x,N),A=Math.pow(A,N)-x,N=1/N,function(B){return Math.pow(x+B*A,N)}}(_,E,m):vu(isNaN(_)?E:_)}}(a);function f(m,_){var E=h((m=Zi(m)).r,(_=Zi(_)).r),x=h(m.g,_.g),A=h(m.b,_.b),N=Si(m.opacity,_.opacity);return function(B){return m.r=E(B),m.g=x(B),m.b=A(B),m.opacity=N(B),m+""}}return f.gamma=n,f}(1);function qh(n){return function(a){var h,f,m=a.length,_=new Array(m),E=new Array(m),x=new Array(m);for(h=0;h<m;++h)f=Zi(a[h]),_[h]=f.r||0,E[h]=f.g||0,x[h]=f.b||0;return _=n(_),E=n(E),x=n(x),f.opacity=1,function(A){return f.r=_(A),f.g=E(A),f.b=x(A),f+""}}}var bl=qh(Lr),Po=qh(mu);function Vh(n,a){a||(a=[]);var h,f=n?Math.min(a.length,n.length):0,m=a.slice();return function(_){for(h=0;h<f;++h)m[h]=n[h]*(1-_)+a[h]*_;return m}}function Xd(n){return ArrayBuffer.isView(n)&&!(n instanceof DataView)}function Qp(n,a){return(Xd(a)?Vh:Kd)(n,a)}function Kd(n,a){var h,f=a?a.length:0,m=n?Math.min(f,n.length):0,_=new Array(m),E=new Array(f);for(h=0;h<m;++h)_[h]=_u(n[h],a[h]);for(;h<f;++h)E[h]=a[h];return function(x){for(h=0;h<m;++h)E[h]=_[h](x);return E}}function Qd(n,a){var h=new Date;return n=+n,a=+a,function(f){return h.setTime(n*(1-f)+a*f),h}}function Ea(n,a){return n=+n,a=+a,function(h){return n*(1-h)+a*h}}function Jd(n,a){var h,f={},m={};for(h in n!==null&&typeof n=="object"||(n={}),a!==null&&typeof a=="object"||(a={}),a)h in n?f[h]=_u(n[h],a[h]):m[h]=a[h];return function(_){for(h in f)m[h]=f[h](_);return m}}var Gh=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Zh=new RegExp(Gh.source,"g");function Yo(n,a){var h,f,m,_=Gh.lastIndex=Zh.lastIndex=0,E=-1,x=[],A=[];for(n+="",a+="";(h=Gh.exec(n))&&(f=Zh.exec(a));)(m=f.index)>_&&(m=a.slice(_,m),x[E]?x[E]+=m:x[++E]=m),(h=h[0])===(f=f[0])?x[E]?x[E]+=f:x[++E]=f:(x[++E]=null,A.push({i:E,x:Ea(h,f)})),_=Zh.lastIndex;return _<a.length&&(m=a.slice(_),x[E]?x[E]+=m:x[++E]=m),x.length<2?A[0]?function(N){return function(B){return N(B)+""}}(A[0].x):function(N){return function(){return N}}(a):(a=A.length,function(N){for(var B,Y=0;Y<a;++Y)x[(B=A[Y]).i]=B.x(N);return x.join("")})}function _u(n,a){var h,f=typeof a;return a==null||f==="boolean"?vu(a):(f==="number"?Ea:f==="string"?(h=ro(a))?(a=h,wc):Yo:a instanceof ro?wc:a instanceof Date?Qd:Xd(a)?Vh:Array.isArray(a)?Kd:typeof a.valueOf!="function"&&typeof a.toString!="function"||isNaN(a)?Jd:Ea)(n,a)}function oo(){for(var n,a=mt;n=a.sourceEvent;)a=n;return a}function bu(n,a){var h=n.ownerSVGElement||n;if(h.createSVGPoint){var f=h.createSVGPoint();return f.x=a.clientX,f.y=a.clientY,[(f=f.matrixTransform(n.getScreenCTM().inverse())).x,f.y]}var m=n.getBoundingClientRect();return[a.clientX-m.left-n.clientLeft,a.clientY-m.top-n.clientTop]}function Sa(n,a,h){arguments.length<3&&(h=a,a=oo().changedTouches);for(var f,m=0,_=a?a.length:0;m<_;++m)if((f=a[m]).identifier===h)return bu(n,f);return null}function Ys(n){var a=oo();return a.changedTouches&&(a=a.changedTouches[0]),bu(n,a)}var wl,jo,Xi=0,gi=0,so=0,Ha=0,oa=0,Hn=0,M=typeof performance=="object"&&performance.now?performance:Date,F=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(n){setTimeout(n,17)};function G(){return oa||(F(st),oa=M.now()+Hn)}function st(){oa=0}function qt(){this._call=this._time=this._next=null}function fe(n,a,h){var f=new qt;return f.restart(n,a,h),f}function we(){G(),++Xi;for(var n,a=wl;a;)(n=oa-a._time)>=0&&a._call.call(null,n),a=a._next;--Xi}function Ee(){oa=(Ha=M.now())+Hn,Xi=gi=0;try{we()}finally{Xi=0,function(){for(var n,a,h=wl,f=1/0;h;)h._call?(f>h._time&&(f=h._time),n=h,h=h._next):(a=h._next,h._next=null,h=n?n._next=a:wl=a);jo=n,Pe(f)}(),oa=0}}function Ae(){var n=M.now(),a=n-Ha;a>1e3&&(Hn-=a,Ha=n)}function Pe(n){Xi||(gi&&(gi=clearTimeout(gi)),n-oa>24?(n<1/0&&(gi=setTimeout(Ee,n-M.now()-Hn)),so&&(so=clearInterval(so))):(so||(Ha=M.now(),so=setInterval(Ae,1e3)),Xi=1,F(Ee)))}function We(n,a,h){var f=new qt;return a=a==null?0:+a,f.restart(function(m){f.stop(),n(m+a)},a,h),f}qt.prototype=fe.prototype={constructor:qt,restart:function(n,a,h){if(typeof n!="function")throw new TypeError("callback is not a function");h=(h==null?G():+h)+(a==null?0:+a),this._next||jo===this||(jo?jo._next=this:wl=this,jo=this),this._call=n,this._time=h,Pe()},stop:function(){this._call&&(this._call=null,this._time=1/0,Pe())}};var kn=en("start","end","cancel","interrupt"),pn=[];function lr(n,a,h,f,m,_){var E=n.__transition;if(E){if(h in E)return}else n.__transition={};(function(x,A,N){var B,Y=x.__transition;function I(J){var Q,Z,at,nt;if(N.state!==1)return W();for(Q in Y)if((nt=Y[Q]).name===N.name){if(nt.state===3)return We(I);nt.state===4?(nt.state=6,nt.timer.stop(),nt.on.call("interrupt",x,x.__data__,nt.index,nt.group),delete Y[Q]):+Q<A&&(nt.state=6,nt.timer.stop(),nt.on.call("cancel",x,x.__data__,nt.index,nt.group),delete Y[Q])}if(We(function(){N.state===3&&(N.state=4,N.timer.restart(H,N.delay,N.time),H(J))}),N.state=2,N.on.call("start",x,x.__data__,N.index,N.group),N.state===2){for(N.state=3,B=new Array(at=N.tween.length),Q=0,Z=-1;Q<at;++Q)(nt=N.tween[Q].value.call(x,x.__data__,N.index,N.group))&&(B[++Z]=nt);B.length=Z+1}}function H(J){for(var Q=J<N.duration?N.ease.call(null,J/N.duration):(N.timer.restart(W),N.state=5,1),Z=-1,at=B.length;++Z<at;)B[Z].call(x,Q);N.state===5&&(N.on.call("end",x,x.__data__,N.index,N.group),W())}function W(){for(var J in N.state=6,N.timer.stop(),delete Y[A],Y)return;delete x.__transition}Y[A]=N,N.timer=fe(function(J){N.state=1,N.timer.restart(I,N.delay,N.time),N.delay<=J&&I(J-N.delay)},0,N.time)})(n,h,{name:a,index:f,group:m,on:kn,tween:pn,time:_.time,delay:_.delay,duration:_.duration,ease:_.ease,timer:null,state:0})}function fr(n,a){var h=cr(n,a);if(h.state>0)throw new Error("too late; already scheduled");return h}function Br(n,a){var h=cr(n,a);if(h.state>3)throw new Error("too late; already running");return h}function cr(n,a){var h=n.__transition;if(!h||!(h=h[a]))throw new Error("transition not found");return h}function Ca(n,a){var h,f,m,_=n.__transition,E=!0;if(_){for(m in a=a==null?null:a+"",_)(h=_[m]).name===a?(f=h.state>2&&h.state<5,h.state=6,h.timer.stop(),h.on.call(f?"interrupt":"cancel",n,n.__data__,h.index,h.group),delete _[m]):E=!1;E&&delete n.__transition}}var js,Xh,Jp,Kh,zo=180/Math.PI,Qh={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function gv(n,a,h,f,m,_){var E,x,A;return(E=Math.sqrt(n*n+a*a))&&(n/=E,a/=E),(A=n*h+a*f)&&(h-=n*A,f-=a*A),(x=Math.sqrt(h*h+f*f))&&(h/=x,f/=x,A/=x),n*f<a*h&&(n=-n,a=-a,A=-A,E=-E),{translateX:m,translateY:_,rotate:Math.atan2(a,n)*zo,skewX:Math.atan(A)*zo,scaleX:E,scaleY:x}}function yv(n,a,h,f){function m(_){return _.length?_.pop()+" ":""}return function(_,E){var x=[],A=[];return _=n(_),E=n(E),function(N,B,Y,I,H,W){if(N!==Y||B!==I){var J=H.push("translate(",null,a,null,h);W.push({i:J-4,x:Ea(N,Y)},{i:J-2,x:Ea(B,I)})}else(Y||I)&&H.push("translate("+Y+a+I+h)}(_.translateX,_.translateY,E.translateX,E.translateY,x,A),function(N,B,Y,I){N!==B?(N-B>180?B+=360:B-N>180&&(N+=360),I.push({i:Y.push(m(Y)+"rotate(",null,f)-2,x:Ea(N,B)})):B&&Y.push(m(Y)+"rotate("+B+f)}(_.rotate,E.rotate,x,A),function(N,B,Y,I){N!==B?I.push({i:Y.push(m(Y)+"skewX(",null,f)-2,x:Ea(N,B)}):B&&Y.push(m(Y)+"skewX("+B+f)}(_.skewX,E.skewX,x,A),function(N,B,Y,I,H,W){if(N!==Y||B!==I){var J=H.push(m(H)+"scale(",null,",",null,")");W.push({i:J-4,x:Ea(N,Y)},{i:J-2,x:Ea(B,I)})}else Y===1&&I===1||H.push(m(H)+"scale("+Y+","+I+")")}(_.scaleX,_.scaleY,E.scaleX,E.scaleY,x,A),_=E=null,function(N){for(var B,Y=-1,I=A.length;++Y<I;)x[(B=A[Y]).i]=B.x(N);return x.join("")}}}var tg=yv(function(n){return n==="none"?Qh:(js||(js=document.createElement("DIV"),Xh=document.documentElement,Jp=document.defaultView),js.style.transform=n,n=Jp.getComputedStyle(Xh.appendChild(js),null).getPropertyValue("transform"),Xh.removeChild(js),gv(+(n=n.slice(7,-1).split(","))[0],+n[1],+n[2],+n[3],+n[4],+n[5]))},"px, ","px)","deg)"),eg=yv(function(n){return n==null?Qh:(Kh||(Kh=document.createElementNS("http://www.w3.org/2000/svg","g")),Kh.setAttribute("transform",n),(n=Kh.transform.baseVal.consolidate())?gv((n=n.matrix).a,n.b,n.c,n.d,n.e,n.f):Qh)},", ",")",")");function mv(n,a){var h,f;return function(){var m=Br(this,n),_=m.tween;if(_!==h){for(var E=0,x=(f=h=_).length;E<x;++E)if(f[E].name===a){(f=f.slice()).splice(E,1);break}}m.tween=f}}function ng(n,a,h){var f,m;if(typeof h!="function")throw new Error;return function(){var _=Br(this,n),E=_.tween;if(E!==f){m=(f=E).slice();for(var x={name:a,value:h},A=0,N=m.length;A<N;++A)if(m[A].name===a){m[A]=x;break}A===N&&m.push(x)}_.tween=m}}function t0(n,a,h){var f=n._id;return n.each(function(){var m=Br(this,f);(m.value||(m.value={}))[a]=h.apply(this,arguments)}),function(m){return cr(m,f).value[a]}}function rg(n,a){var h;return(typeof a=="number"?Ea:a instanceof ro?wc:(h=ro(a))?(a=h,wc):Yo)(n,a)}function us(n){return function(){this.removeAttribute(n)}}function ig(n){return function(){this.removeAttributeNS(n.space,n.local)}}function ag(n,a,h){var f,m,_=h+"";return function(){var E=this.getAttribute(n);return E===_?null:E===f?m:m=a(f=E,h)}}function og(n,a,h){var f,m,_=h+"";return function(){var E=this.getAttributeNS(n.space,n.local);return E===_?null:E===f?m:m=a(f=E,h)}}function sg(n,a,h){var f,m,_;return function(){var E,x,A=h(this);if(A!=null)return(E=this.getAttribute(n))===(x=A+"")?null:E===f&&x===m?_:(m=x,_=a(f=E,A));this.removeAttribute(n)}}function Rw(n,a,h){var f,m,_;return function(){var E,x,A=h(this);if(A!=null)return(E=this.getAttributeNS(n.space,n.local))===(x=A+"")?null:E===f&&x===m?_:(m=x,_=a(f=E,A));this.removeAttributeNS(n.space,n.local)}}function cg(n,a){return function(h){this.setAttribute(n,a.call(this,h))}}function zs(n,a){return function(h){this.setAttributeNS(n.space,n.local,a.call(this,h))}}function vv(n,a){var h,f;function m(){var _=a.apply(this,arguments);return _!==f&&(h=(f=_)&&zs(n,_)),h}return m._value=a,m}function ug(n,a){var h,f;function m(){var _=a.apply(this,arguments);return _!==f&&(h=(f=_)&&cg(n,_)),h}return m._value=a,m}function _v(n,a){return function(){fr(this,n).delay=+a.apply(this,arguments)}}function Jh(n,a){return a=+a,function(){fr(this,n).delay=a}}function Fw(n,a){return function(){Br(this,n).duration=+a.apply(this,arguments)}}function Pw(n,a){return a=+a,function(){Br(this,n).duration=a}}function lg(n,a){if(typeof a!="function")throw new Error;return function(){Br(this,n).ease=a}}function hg(n,a,h){var f,m,_=function(E){return(E+"").trim().split(/^|\s+/).every(function(x){var A=x.indexOf(".");return A>=0&&(x=x.slice(0,A)),!x||x==="start"})}(a)?fr:Br;return function(){var E=_(this,n),x=E.on;x!==f&&(m=(f=x).copy()).on(a,h),E.on=m}}var fg=no.prototype.constructor;function dg(n){return function(){this.style.removeProperty(n)}}function pg(n,a,h){return function(f){this.style.setProperty(n,a.call(this,f),h)}}function gg(n,a,h){var f,m;function _(){var E=a.apply(this,arguments);return E!==m&&(f=(m=E)&&pg(n,E,h)),f}return _._value=a,_}function yg(n){return function(a){this.textContent=n.call(this,a)}}function Yw(n){var a,h;function f(){var m=n.apply(this,arguments);return m!==h&&(a=(h=m)&&yg(m)),a}return f._value=n,f}var jw=0;function ls(n,a,h,f){this._groups=n,this._parents=a,this._name=h,this._id=f}function e0(n){return no().transition(n)}function mg(){return++jw}var hs=no.prototype;function n0(n){return n*n*n}function r0(n){return--n*n*n+1}function xc(n){return((n*=2)<=1?n*n*n:(n-=2)*n*n+2)/2}ls.prototype=e0.prototype={constructor:ls,select:function(n){var a=this._name,h=this._id;typeof n!="function"&&(n=Rr(n));for(var f=this._groups,m=f.length,_=new Array(m),E=0;E<m;++E)for(var x,A,N=f[E],B=N.length,Y=_[E]=new Array(B),I=0;I<B;++I)(x=N[I])&&(A=n.call(x,x.__data__,I,N))&&("__data__"in x&&(A.__data__=x.__data__),Y[I]=A,lr(Y[I],a,h,I,Y,cr(x,h)));return new ls(_,this._parents,a,h)},selectAll:function(n){var a=this._name,h=this._id;typeof n!="function"&&(n=Jn(n));for(var f=this._groups,m=f.length,_=[],E=[],x=0;x<m;++x)for(var A,N=f[x],B=N.length,Y=0;Y<B;++Y)if(A=N[Y]){for(var I,H=n.call(A,A.__data__,Y,N),W=cr(A,h),J=0,Q=H.length;J<Q;++J)(I=H[J])&&lr(I,a,h,J,H,W);_.push(H),E.push(A)}return new ls(_,E,a,h)},filter:function(n){typeof n!="function"&&(n=cn(n));for(var a=this._groups,h=a.length,f=new Array(h),m=0;m<h;++m)for(var _,E=a[m],x=E.length,A=f[m]=[],N=0;N<x;++N)(_=E[N])&&n.call(_,_.__data__,N,E)&&A.push(_);return new ls(f,this._parents,this._name,this._id)},merge:function(n){if(n._id!==this._id)throw new Error;for(var a=this._groups,h=n._groups,f=a.length,m=h.length,_=Math.min(f,m),E=new Array(f),x=0;x<_;++x)for(var A,N=a[x],B=h[x],Y=N.length,I=E[x]=new Array(Y),H=0;H<Y;++H)(A=N[H]||B[H])&&(I[H]=A);for(;x<f;++x)E[x]=a[x];return new ls(E,this._parents,this._name,this._id)},selection:function(){return new fg(this._groups,this._parents)},transition:function(){for(var n=this._name,a=this._id,h=mg(),f=this._groups,m=f.length,_=0;_<m;++_)for(var E,x=f[_],A=x.length,N=0;N<A;++N)if(E=x[N]){var B=cr(E,a);lr(E,n,h,N,x,{time:B.time+B.delay+B.duration,delay:0,duration:B.duration,ease:B.ease})}return new ls(f,this._parents,n,h)},call:hs.call,nodes:hs.nodes,node:hs.node,size:hs.size,empty:hs.empty,each:hs.each,on:function(n,a){var h=this._id;return arguments.length<2?cr(this.node(),h).on.on(n):this.each(hg(h,n,a))},attr:function(n,a){var h=En(n),f=h==="transform"?eg:rg;return this.attrTween(n,typeof a=="function"?(h.local?Rw:sg)(h,f,t0(this,"attr."+n,a)):a==null?(h.local?ig:us)(h):(h.local?og:ag)(h,f,a))},attrTween:function(n,a){var h="attr."+n;if(arguments.length<2)return(h=this.tween(h))&&h._value;if(a==null)return this.tween(h,null);if(typeof a!="function")throw new Error;var f=En(n);return this.tween(h,(f.local?vv:ug)(f,a))},style:function(n,a,h){var f=(n+="")=="transform"?tg:rg;return a==null?this.styleTween(n,function(m,_){var E,x,A;return function(){var N=oi(this,m),B=(this.style.removeProperty(m),oi(this,m));return N===B?null:N===E&&B===x?A:A=_(E=N,x=B)}}(n,f)).on("end.style."+n,dg(n)):typeof a=="function"?this.styleTween(n,function(m,_,E){var x,A,N;return function(){var B=oi(this,m),Y=E(this),I=Y+"";return Y==null&&(this.style.removeProperty(m),I=Y=oi(this,m)),B===I?null:B===x&&I===A?N:(A=I,N=_(x=B,Y))}}(n,f,t0(this,"style."+n,a))).each(function(m,_){var E,x,A,N,B="style."+_,Y="end."+B;return function(){var I=Br(this,m),H=I.on,W=I.value[B]==null?N||(N=dg(_)):void 0;H===E&&A===W||(x=(E=H).copy()).on(Y,A=W),I.on=x}}(this._id,n)):this.styleTween(n,function(m,_,E){var x,A,N=E+"";return function(){var B=oi(this,m);return B===N?null:B===x?A:A=_(x=B,E)}}(n,f,a),h).on("end.style."+n,null)},styleTween:function(n,a,h){var f="style."+(n+="");if(arguments.length<2)return(f=this.tween(f))&&f._value;if(a==null)return this.tween(f,null);if(typeof a!="function")throw new Error;return this.tween(f,gg(n,a,h==null?"":h))},text:function(n){return this.tween("text",typeof n=="function"?function(a){return function(){var h=a(this);this.textContent=h==null?"":h}}(t0(this,"text",n)):function(a){return function(){this.textContent=a}}(n==null?"":n+""))},textTween:function(n){var a="text";if(arguments.length<1)return(a=this.tween(a))&&a._value;if(n==null)return this.tween(a,null);if(typeof n!="function")throw new Error;return this.tween(a,Yw(n))},remove:function(){return this.on("end.remove",function(n){return function(){var a=this.parentNode;for(var h in this.__transition)if(+h!==n)return;a&&a.removeChild(this)}}(this._id))},tween:function(n,a){var h=this._id;if(n+="",arguments.length<2){for(var f,m=cr(this.node(),h).tween,_=0,E=m.length;_<E;++_)if((f=m[_]).name===n)return f.value;return null}return this.each((a==null?mv:ng)(h,n,a))},delay:function(n){var a=this._id;return arguments.length?this.each((typeof n=="function"?_v:Jh)(a,n)):cr(this.node(),a).delay},duration:function(n){var a=this._id;return arguments.length?this.each((typeof n=="function"?Fw:Pw)(a,n)):cr(this.node(),a).duration},ease:function(n){var a=this._id;return arguments.length?this.each(lg(a,n)):cr(this.node(),a).ease},end:function(){var n,a,h=this,f=h._id,m=h.size();return new Promise(function(_,E){var x={value:E},A={value:function(){--m==0&&_()}};h.each(function(){var N=Br(this,f),B=N.on;B!==n&&((a=(n=B).copy())._.cancel.push(x),a._.interrupt.push(x),a._.end.push(A)),N.on=a})})}};var wu={time:null,delay:0,duration:250,ease:xc};function fs(n,a){for(var h;!(h=n.__transition)||!(h=h[a]);)if(!(n=n.parentNode))return wu.time=G(),wu;return h}no.prototype.interrupt=function(n){return this.each(function(){Ca(this,n)})},no.prototype.transition=function(n){var a,h;n instanceof ls?(a=n._id,n=n._name):(a=mg(),(h=wu).time=G(),n=n==null?null:n+"");for(var f=this._groups,m=f.length,_=0;_<m;++_)for(var E,x=f[_],A=x.length,N=0;N<A;++N)(E=x[N])&&lr(E,n,a,N,x,h||fs(E,a));return new ls(f,this._parents,n,a)};var zw=[null];function Uw(n,a){var h,f,m=n.__transition;if(m){for(f in a=a==null?null:a+"",m)if((h=m[f]).state>1&&h.name===a)return new ls([[n]],zw,a,+f)}return null}function vg(n){return function(){return n}}function $w(n,a,h){this.target=n,this.type=a,this.selection=h}function bv(){mt.stopImmediatePropagation()}function _g(){mt.preventDefault(),mt.stopImmediatePropagation()}var wv={name:"drag"},i0={name:"space"},xu={name:"handle"},ku={name:"center"};function xl(n){return[+n[0],+n[1]]}function a0(n){return[xl(n[0]),xl(n[1])]}function o0(n){return function(a){return Sa(a,mt.touches,n)}}var s0={name:"x",handles:["w","e"].map(Wa),input:function(n,a){return n==null?null:[[+n[0],a[0][1]],[+n[1],a[1][1]]]},output:function(n){return n&&[n[0][0],n[1][0]]}},kl={name:"y",handles:["n","s"].map(Wa),input:function(n,a){return n==null?null:[[a[0][0],+n[0]],[a[1][0],+n[1]]]},output:function(n){return n&&[n[0][1],n[1][1]]}},co={name:"xy",handles:["n","w","e","s","nw","ne","sw","se"].map(Wa),input:function(n){return n==null?null:a0(n)},output:function(n){return n}},ds={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"},bg={e:"w",w:"e",nw:"ne",ne:"nw",se:"sw",sw:"se"},c0={n:"s",s:"n",nw:"sw",ne:"se",se:"ne",sw:"nw"},xv={overlay:1,selection:1,n:null,e:1,s:null,w:-1,nw:-1,ne:1,se:1,sw:-1},kv={overlay:1,selection:1,n:-1,e:null,s:1,w:null,nw:-1,ne:-1,se:1,sw:1};function Wa(n){return{type:n}}function wg(){return!mt.ctrlKey&&!mt.button}function xg(){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 Tv(){return navigator.maxTouchPoints||"ontouchstart"in this}function u0(n){for(;!n.__brush;)if(!(n=n.parentNode))return;return n.__brush}function Hw(n){return n[0][0]===n[1][0]||n[0][1]===n[1][1]}function Ww(n){var a=n.__brush;return a?a.dim.output(a.selection):null}function l0(){return tf(s0)}function qw(){return tf(kl)}function kg(){return tf(co)}function tf(n){var a,h=xg,f=wg,m=Tv,_=!0,E=en("start","brush","end"),x=6;function A(Q){var Z=Q.property("__brush",J).selectAll(".overlay").data([Wa("overlay")]);Z.enter().append("rect").attr("class","overlay").attr("pointer-events","all").attr("cursor",ds.overlay).merge(Z).each(function(){var nt=u0(this).extent;yr(this).attr("x",nt[0][0]).attr("y",nt[0][1]).attr("width",nt[1][0]-nt[0][0]).attr("height",nt[1][1]-nt[0][1])}),Q.selectAll(".selection").data([Wa("selection")]).enter().append("rect").attr("class","selection").attr("cursor",ds.selection).attr("fill","#777").attr("fill-opacity",.3).attr("stroke","#fff").attr("shape-rendering","crispEdges");var at=Q.selectAll(".handle").data(n.handles,function(nt){return nt.type});at.exit().remove(),at.enter().append("rect").attr("class",function(nt){return"handle handle--"+nt.type}).attr("cursor",function(nt){return ds[nt.type]}),Q.each(N).attr("fill","none").attr("pointer-events","all").on("mousedown.brush",I).filter(m).on("touchstart.brush",I).on("touchmove.brush",H).on("touchend.brush touchcancel.brush",W).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function N(){var Q=yr(this),Z=u0(this).selection;Z?(Q.selectAll(".selection").style("display",null).attr("x",Z[0][0]).attr("y",Z[0][1]).attr("width",Z[1][0]-Z[0][0]).attr("height",Z[1][1]-Z[0][1]),Q.selectAll(".handle").style("display",null).attr("x",function(at){return at.type[at.type.length-1]==="e"?Z[1][0]-x/2:Z[0][0]-x/2}).attr("y",function(at){return at.type[0]==="s"?Z[1][1]-x/2:Z[0][1]-x/2}).attr("width",function(at){return at.type==="n"||at.type==="s"?Z[1][0]-Z[0][0]+x:x}).attr("height",function(at){return at.type==="e"||at.type==="w"?Z[1][1]-Z[0][1]+x:x})):Q.selectAll(".selection,.handle").style("display","none").attr("x",null).attr("y",null).attr("width",null).attr("height",null)}function B(Q,Z,at){var nt=Q.__brush.emitter;return!nt||at&&nt.clean?new Y(Q,Z,at):nt}function Y(Q,Z,at){this.that=Q,this.args=Z,this.state=Q.__brush,this.active=0,this.clean=at}function I(){if((!a||mt.touches)&&f.apply(this,arguments)){var Q,Z,at,nt,dt,Yt,Rt,Qt,_e,Ut,se,ft=this,Et=mt.target.__data__.type,ne=(_&&mt.metaKey?Et="overlay":Et)==="selection"?wv:_&&mt.altKey?ku:xu,Xt=n===kl?null:xv[Et],re=n===s0?null:kv[Et],Oe=u0(ft),Ue=Oe.extent,gn=Oe.selection,Qn=Ue[0][0],ir=Ue[0][1],Ke=Ue[1][0],pr=Ue[1][1],Bn=0,Nn=0,ur=Xt&&re&&_&&mt.shiftKey,na=mt.touches?o0(mt.changedTouches[0].identifier):Ys,Ri=na(ft),dc=Ri,au=B(ft,arguments,!0).beforestart();Et==="overlay"?(gn&&(_e=!0),Oe.selection=gn=[[Q=n===kl?Qn:Ri[0],at=n===s0?ir:Ri[1]],[dt=n===kl?Ke:Q,Rt=n===s0?pr:at]]):(Q=gn[0][0],at=gn[0][1],dt=gn[1][0],Rt=gn[1][1]),Z=Q,nt=at,Yt=dt,Qt=Rt;var Fd=yr(ft).attr("pointer-events","none"),bo=Fd.selectAll(".overlay").attr("cursor",ds[Et]);if(mt.touches)au.moved=ou,au.ended=Bp;else{var Lp=yr(mt.view).on("mousemove.brush",ou,!0).on("mouseup.brush",Bp,!0);_&&Lp.on("keydown.brush",P4,!0).on("keyup.brush",Y4,!0),ri(mt.view)}bv(),Ca(ft),N.call(ft),au.start()}function ou(){var No=na(ft);!ur||Ut||se||(Math.abs(No[0]-dc[0])>Math.abs(No[1]-dc[1])?se=!0:Ut=!0),dc=No,_e=!0,_g(),fa()}function fa(){var No;switch(Bn=dc[0]-Ri[0],Nn=dc[1]-Ri[1],ne){case i0:case wv:Xt&&(Bn=Math.max(Qn-Q,Math.min(Ke-dt,Bn)),Z=Q+Bn,Yt=dt+Bn),re&&(Nn=Math.max(ir-at,Math.min(pr-Rt,Nn)),nt=at+Nn,Qt=Rt+Nn);break;case xu:Xt<0?(Bn=Math.max(Qn-Q,Math.min(Ke-Q,Bn)),Z=Q+Bn,Yt=dt):Xt>0&&(Bn=Math.max(Qn-dt,Math.min(Ke-dt,Bn)),Z=Q,Yt=dt+Bn),re<0?(Nn=Math.max(ir-at,Math.min(pr-at,Nn)),nt=at+Nn,Qt=Rt):re>0&&(Nn=Math.max(ir-Rt,Math.min(pr-Rt,Nn)),nt=at,Qt=Rt+Nn);break;case ku:Xt&&(Z=Math.max(Qn,Math.min(Ke,Q-Bn*Xt)),Yt=Math.max(Qn,Math.min(Ke,dt+Bn*Xt))),re&&(nt=Math.max(ir,Math.min(pr,at-Nn*re)),Qt=Math.max(ir,Math.min(pr,Rt+Nn*re)))}Yt<Z&&(Xt*=-1,No=Q,Q=dt,dt=No,No=Z,Z=Yt,Yt=No,Et in bg&&bo.attr("cursor",ds[Et=bg[Et]])),Qt<nt&&(re*=-1,No=at,at=Rt,Rt=No,No=nt,nt=Qt,Qt=No,Et in c0&&bo.attr("cursor",ds[Et=c0[Et]])),Oe.selection&&(gn=Oe.selection),Ut&&(Z=gn[0][0],Yt=gn[1][0]),se&&(nt=gn[0][1],Qt=gn[1][1]),gn[0][0]===Z&&gn[0][1]===nt&&gn[1][0]===Yt&&gn[1][1]===Qt||(Oe.selection=[[Z,nt],[Yt,Qt]],N.call(ft),au.brush())}function Bp(){if(bv(),mt.touches){if(mt.touches.length)return;a&&clearTimeout(a),a=setTimeout(function(){a=null},500)}else $r(mt.view,_e),Lp.on("keydown.brush keyup.brush mousemove.brush mouseup.brush",null);Fd.attr("pointer-events","all"),bo.attr("cursor",ds.overlay),Oe.selection&&(gn=Oe.selection),Hw(gn)&&(Oe.selection=null,N.call(ft)),au.end()}function P4(){switch(mt.keyCode){case 16:ur=Xt&&re;break;case 18:ne===xu&&(Xt&&(dt=Yt-Bn*Xt,Q=Z+Bn*Xt),re&&(Rt=Qt-Nn*re,at=nt+Nn*re),ne=ku,fa());break;case 32:ne!==xu&&ne!==ku||(Xt<0?dt=Yt-Bn:Xt>0&&(Q=Z-Bn),re<0?Rt=Qt-Nn:re>0&&(at=nt-Nn),ne=i0,bo.attr("cursor",ds.selection),fa());break;default:return}_g()}function Y4(){switch(mt.keyCode){case 16:ur&&(Ut=se=ur=!1,fa());break;case 18:ne===ku&&(Xt<0?dt=Yt:Xt>0&&(Q=Z),re<0?Rt=Qt:re>0&&(at=nt),ne=xu,fa());break;case 32:ne===i0&&(mt.altKey?(Xt&&(dt=Yt-Bn*Xt,Q=Z+Bn*Xt),re&&(Rt=Qt-Nn*re,at=nt+Nn*re),ne=ku):(Xt<0?dt=Yt:Xt>0&&(Q=Z),re<0?Rt=Qt:re>0&&(at=nt),ne=xu),bo.attr("cursor",ds[Et]),fa());break;default:return}_g()}}function H(){B(this,arguments).moved()}function W(){B(this,arguments).ended()}function J(){var Q=this.__brush||{selection:null};return Q.extent=a0(h.apply(this,arguments)),Q.dim=n,Q}return A.move=function(Q,Z){Q.selection?Q.on("start.brush",function(){B(this,arguments).beforestart().start()}).on("interrupt.brush end.brush",function(){B(this,arguments).end()}).tween("brush",function(){var at=this,nt=at.__brush,dt=B(at,arguments),Yt=nt.selection,Rt=n.input(typeof Z=="function"?Z.apply(this,arguments):Z,nt.extent),Qt=_u(Yt,Rt);function _e(Ut){nt.selection=Ut===1&&Rt===null?null:Qt(Ut),N.call(at),dt.brush()}return Yt!==null&&Rt!==null?_e:_e(1)}):Q.each(function(){var at=this,nt=arguments,dt=at.__brush,Yt=n.input(typeof Z=="function"?Z.apply(at,nt):Z,dt.extent),Rt=B(at,nt).beforestart();Ca(at),dt.selection=Yt===null?null:Yt,N.call(at),Rt.start().brush().end()})},A.clear=function(Q){A.move(Q,null)},Y.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(Q){ko(new $w(A,Q,n.output(this.state.selection)),E.apply,E,[Q,this.that,this.args])}},A.extent=function(Q){return arguments.length?(h=typeof Q=="function"?Q:vg(a0(Q)),A):h},A.filter=function(Q){return arguments.length?(f=typeof Q=="function"?Q:vg(!!Q),A):f},A.touchable=function(Q){return arguments.length?(m=typeof Q=="function"?Q:vg(!!Q),A):m},A.handleSize=function(Q){return arguments.length?(x=+Q,A):x},A.keyModifiers=function(Q){return arguments.length?(_=!!Q,A):_},A.on=function(){var Q=E.on.apply(E,arguments);return Q===E?A:Q},A}var Ev=Math.cos,Sv=Math.sin,h0=Math.PI,f0=h0/2,Cv=2*h0,Tg=Math.max;function Tl(n){return function(a,h){return n(a.source.value+a.target.value,h.source.value+h.target.value)}}function Eg(){var n=0,a=null,h=null,f=null;function m(_){var E,x,A,N,B,Y,I=_.length,H=[],W=et(I),J=[],Q=[],Z=Q.groups=new Array(I),at=new Array(I*I);for(E=0,B=-1;++B<I;){for(x=0,Y=-1;++Y<I;)x+=_[B][Y];H.push(x),J.push(et(I)),E+=x}for(a&&W.sort(function(se,ft){return a(H[se],H[ft])}),h&&J.forEach(function(se,ft){se.sort(function(Et,ne){return h(_[ft][Et],_[ft][ne])})}),N=(E=Tg(0,Cv-n*I)/E)?n:Cv/I,x=0,B=-1;++B<I;){for(A=x,Y=-1;++Y<I;){var nt=W[B],dt=J[nt][Y],Yt=_[nt][dt],Rt=x,Qt=x+=Yt*E;at[dt*I+nt]={index:nt,subindex:dt,startAngle:Rt,endAngle:Qt,value:Yt}}Z[nt]={index:nt,startAngle:A,endAngle:x,value:H[nt]},x+=N}for(B=-1;++B<I;)for(Y=B-1;++Y<I;){var _e=at[Y*I+B],Ut=at[B*I+Y];(_e.value||Ut.value)&&Q.push(_e.value<Ut.value?{source:Ut,target:_e}:{source:_e,target:Ut})}return f?Q.sort(f):Q}return m.padAngle=function(_){return arguments.length?(n=Tg(0,_),m):n},m.sortGroups=function(_){return arguments.length?(a=_,m):a},m.sortSubgroups=function(_){return arguments.length?(h=_,m):h},m.sortChords=function(_){return arguments.length?(_==null?f=null:(f=Tl(_))._=_,m):f&&f._},m}var Vw=Array.prototype.slice;function Sg(n){return function(){return n}}var d0=Math.PI,p0=2*d0,Us=1e-6,Av=p0-Us;function Cg(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function ef(){return new Cg}Cg.prototype=ef.prototype={constructor:Cg,moveTo:function(n,a){this._+="M"+(this._x0=this._x1=+n)+","+(this._y0=this._y1=+a)},closePath:function(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(n,a){this._+="L"+(this._x1=+n)+","+(this._y1=+a)},quadraticCurveTo:function(n,a,h,f){this._+="Q"+ +n+","+ +a+","+(this._x1=+h)+","+(this._y1=+f)},bezierCurveTo:function(n,a,h,f,m,_){this._+="C"+ +n+","+ +a+","+ +h+","+ +f+","+(this._x1=+m)+","+(this._y1=+_)},arcTo:function(n,a,h,f,m){n=+n,a=+a,h=+h,f=+f,m=+m;var _=this._x1,E=this._y1,x=h-n,A=f-a,N=_-n,B=E-a,Y=N*N+B*B;if(m<0)throw new Error("negative radius: "+m);if(this._x1===null)this._+="M"+(this._x1=n)+","+(this._y1=a);else if(Y>Us)if(Math.abs(B*x-A*N)>Us&&m){var I=h-_,H=f-E,W=x*x+A*A,J=I*I+H*H,Q=Math.sqrt(W),Z=Math.sqrt(Y),at=m*Math.tan((d0-Math.acos((W+Y-J)/(2*Q*Z)))/2),nt=at/Z,dt=at/Q;Math.abs(nt-1)>Us&&(this._+="L"+(n+nt*N)+","+(a+nt*B)),this._+="A"+m+","+m+",0,0,"+ +(B*I>N*H)+","+(this._x1=n+dt*x)+","+(this._y1=a+dt*A)}else this._+="L"+(this._x1=n)+","+(this._y1=a)},arc:function(n,a,h,f,m,_){n=+n,a=+a,_=!!_;var E=(h=+h)*Math.cos(f),x=h*Math.sin(f),A=n+E,N=a+x,B=1^_,Y=_?f-m:m-f;if(h<0)throw new Error("negative radius: "+h);this._x1===null?this._+="M"+A+","+N:(Math.abs(this._x1-A)>Us||Math.abs(this._y1-N)>Us)&&(this._+="L"+A+","+N),h&&(Y<0&&(Y=Y%p0+p0),Y>Av?this._+="A"+h+","+h+",0,1,"+B+","+(n-E)+","+(a-x)+"A"+h+","+h+",0,1,"+B+","+(this._x1=A)+","+(this._y1=N):Y>Us&&(this._+="A"+h+","+h+",0,"+ +(Y>=d0)+","+B+","+(this._x1=n+h*Math.cos(m))+","+(this._y1=a+h*Math.sin(m))))},rect:function(n,a,h,f){this._+="M"+(this._x0=this._x1=+n)+","+(this._y0=this._y1=+a)+"h"+ +h+"v"+ +f+"h"+-h+"Z"},toString:function(){return this._}};const $s=ef;function g0(n){return n.source}function El(n){return n.target}function Mv(n){return n.radius}function Dv(n){return n.startAngle}function Nv(n){return n.endAngle}function Ag(){var n=g0,a=El,h=Mv,f=Dv,m=Nv,_=null;function E(){var x,A=Vw.call(arguments),N=n.apply(this,A),B=a.apply(this,A),Y=+h.apply(this,(A[0]=N,A)),I=f.apply(this,A)-f0,H=m.apply(this,A)-f0,W=Y*Ev(I),J=Y*Sv(I),Q=+h.apply(this,(A[0]=B,A)),Z=f.apply(this,A)-f0,at=m.apply(this,A)-f0;if(_||(_=x=$s()),_.moveTo(W,J),_.arc(0,0,Y,I,H),I===Z&&H===at||(_.quadraticCurveTo(0,0,Q*Ev(Z),Q*Sv(Z)),_.arc(0,0,Q,Z,at)),_.quadraticCurveTo(0,0,W,J),_.closePath(),x)return _=null,x+""||null}return E.radius=function(x){return arguments.length?(h=typeof x=="function"?x:Sg(+x),E):h},E.startAngle=function(x){return arguments.length?(f=typeof x=="function"?x:Sg(+x),E):f},E.endAngle=function(x){return arguments.length?(m=typeof x=="function"?x:Sg(+x),E):m},E.source=function(x){return arguments.length?(n=x,E):n},E.target=function(x){return arguments.length?(a=x,E):a},E.context=function(x){return arguments.length?(_=x==null?null:x,E):_},E}var uo="$";function nf(){}function Mg(n,a){var h=new nf;if(n instanceof nf)n.each(function(x,A){h.set(A,x)});else if(Array.isArray(n)){var f,m=-1,_=n.length;if(a==null)for(;++m<_;)h.set(m,n[m]);else for(;++m<_;)h.set(a(f=n[m],m,n),f)}else if(n)for(var E in n)h.set(E,n[E]);return h}nf.prototype=Mg.prototype={constructor:nf,has:function(n){return uo+n in this},get:function(n){return this[uo+n]},set:function(n,a){return this[uo+n]=a,this},remove:function(n){var a=uo+n;return a in this&&delete this[a]},clear:function(){for(var n in this)n[0]===uo&&delete this[n]},keys:function(){var n=[];for(var a in this)a[0]===uo&&n.push(a.slice(1));return n},values:function(){var n=[];for(var a in this)a[0]===uo&&n.push(this[a]);return n},entries:function(){var n=[];for(var a in this)a[0]===uo&&n.push({key:a.slice(1),value:this[a]});return n},size:function(){var n=0;for(var a in this)a[0]===uo&&++n;return n},empty:function(){for(var n in this)if(n[0]===uo)return!1;return!0},each:function(n){for(var a in this)a[0]===uo&&n(this[a],a.slice(1),this)}};const Hs=Mg;function Gw(){var n,a,h,f=[],m=[];function _(x,A,N,B){if(A>=f.length)return n!=null&&x.sort(n),a!=null?a(x):x;for(var Y,I,H,W=-1,J=x.length,Q=f[A++],Z=Hs(),at=N();++W<J;)(H=Z.get(Y=Q(I=x[W])+""))?H.push(I):Z.set(Y,[I]);return Z.each(function(nt,dt){B(at,dt,_(nt,A,N,B))}),at}function E(x,A){if(++A>f.length)return x;var N,B=m[A-1];return a!=null&&A>=f.length?N=x.entries():(N=[],x.each(function(Y,I){N.push({key:I,values:E(Y,A)})})),B!=null?N.sort(function(Y,I){return B(Y.key,I.key)}):N}return h={object:function(x){return _(x,0,Ov,Lv)},map:function(x){return _(x,0,Dg,Bv)},entries:function(x){return E(_(x,0,Dg,Bv),0)},key:function(x){return f.push(x),h},sortKeys:function(x){return m[f.length-1]=x,h},sortValues:function(x){return n=x,h},rollup:function(x){return a=x,h}}}function Ov(){return{}}function Lv(n,a,h){n[a]=h}function Dg(){return Hs()}function Bv(n,a,h){n.set(a,h)}function rf(){}var kc=Hs.prototype;function Sl(n,a){var h=new rf;if(n instanceof rf)n.each(function(_){h.add(_)});else if(n){var f=-1,m=n.length;if(a==null)for(;++f<m;)h.add(n[f]);else for(;++f<m;)h.add(a(n[f],f,n))}return h}rf.prototype=Sl.prototype={constructor:rf,has:kc.has,add:function(n){return this[uo+(n+="")]=n,this},remove:kc.remove,clear:kc.clear,values:kc.keys,size:kc.size,empty:kc.empty,each:kc.each};const Tc=Sl;function af(n){var a=[];for(var h in n)a.push(h);return a}function Ng(n){var a=[];for(var h in n)a.push(n[h]);return a}function Og(n){var a=[];for(var h in n)a.push({key:h,value:n[h]});return a}var y0=Math.PI/180,m0=180/Math.PI,v0=.96422,ji=.82521,_0=4/29,Lg=6/29,Iv=3*Lg*Lg;function Cl(n){if(n instanceof Uo)return new Uo(n.l,n.a,n.b,n.opacity);if(n instanceof ps)return Rg(n);n instanceof ai||(n=yu(n));var a,h,f=Ws(n.r),m=Ws(n.g),_=Ws(n.b),E=b0((.2225045*f+.7168786*m+.0606169*_)/1);return f===m&&m===_?a=h=E:(a=b0((.4360747*f+.3850649*m+.1430804*_)/v0),h=b0((.0139322*f+.0971045*m+.7141733*_)/ji)),new Uo(116*E-16,500*(a-E),200*(E-h),n.opacity)}function Zw(n,a){return new Uo(n,0,0,a==null?1:a)}function of(n,a,h,f){return arguments.length===1?Cl(n):new Uo(n,a,h,f==null?1:f)}function Uo(n,a,h,f){this.l=+n,this.a=+a,this.b=+h,this.opacity=+f}function b0(n){return n>.008856451679035631?Math.pow(n,1/3):n/Iv+_0}function Bg(n){return n>Lg?n*n*n:Iv*(n-_0)}function Al(n){return 255*(n<=.0031308?12.92*n:1.055*Math.pow(n,1/2.4)-.055)}function Ws(n){return(n/=255)<=.04045?n/12.92:Math.pow((n+.055)/1.055,2.4)}function w0(n){if(n instanceof ps)return new ps(n.h,n.c,n.l,n.opacity);if(n instanceof Uo||(n=Cl(n)),n.a===0&&n.b===0)return new ps(NaN,0<n.l&&n.l<100?0:NaN,n.l,n.opacity);var a=Math.atan2(n.b,n.a)*m0;return new ps(a<0?a+360:a,Math.sqrt(n.a*n.a+n.b*n.b),n.l,n.opacity)}function Ig(n,a,h,f){return arguments.length===1?w0(n):new ps(h,a,n,f==null?1:f)}function Ec(n,a,h,f){return arguments.length===1?w0(n):new ps(n,a,h,f==null?1:f)}function ps(n,a,h,f){this.h=+n,this.c=+a,this.l=+h,this.opacity=+f}function Rg(n){if(isNaN(n.h))return new Uo(n.l,0,0,n.opacity);var a=n.h*y0;return new Uo(n.l,Math.cos(a)*n.c,Math.sin(a)*n.c,n.opacity)}Hr(Uo,of,pi(Qr,{brighter:function(n){return new Uo(this.l+18*(n==null?1:n),this.a,this.b,this.opacity)},darker:function(n){return new Uo(this.l-18*(n==null?1:n),this.a,this.b,this.opacity)},rgb:function(){var n=(this.l+16)/116,a=isNaN(this.a)?n:n+this.a/500,h=isNaN(this.b)?n:n-this.b/200;return new ai(Al(3.1338561*(a=v0*Bg(a))-1.6168667*(n=1*Bg(n))-.4906146*(h=ji*Bg(h))),Al(-.9787684*a+1.9161415*n+.033454*h),Al(.0719453*a-.2289914*n+1.4052427*h),this.opacity)}})),Hr(ps,Ec,pi(Qr,{brighter:function(n){return new ps(this.h,this.c,this.l+18*(n==null?1:n),this.opacity)},darker:function(n){return new ps(this.h,this.c,this.l-18*(n==null?1:n),this.opacity)},rgb:function(){return Rg(this).rgb()}}));var Fg=-.14861,qs=1.78277,Pg=-.29227,sf=-.90649,$o=1.97294,Rv=$o*sf,x0=$o*qs,Ml=qs*Pg-sf*Fg;function Fv(n){if(n instanceof Tu)return new Tu(n.h,n.s,n.l,n.opacity);n instanceof ai||(n=yu(n));var a=n.r/255,h=n.g/255,f=n.b/255,m=(Ml*f+Rv*a-x0*h)/(Ml+Rv-x0),_=f-m,E=($o*(h-m)-Pg*_)/sf,x=Math.sqrt(E*E+_*_)/($o*m*(1-m)),A=x?Math.atan2(E,_)*m0-120:NaN;return new Tu(A<0?A+360:A,x,m,n.opacity)}function Aa(n,a,h,f){return arguments.length===1?Fv(n):new Tu(n,a,h,f==null?1:f)}function Tu(n,a,h,f){this.h=+n,this.s=+a,this.l=+h,this.opacity=+f}Hr(Tu,Aa,pi(Qr,{brighter:function(n){return n=n==null?Gi:Math.pow(Gi,n),new Tu(this.h,this.s,this.l*n,this.opacity)},darker:function(n){return n=n==null?aa:Math.pow(aa,n),new Tu(this.h,this.s,this.l*n,this.opacity)},rgb:function(){var n=isNaN(this.h)?0:(this.h+120)*y0,a=+this.l,h=isNaN(this.s)?0:this.s*a*(1-a),f=Math.cos(n),m=Math.sin(n);return new ai(255*(a+h*(Fg*f+qs*m)),255*(a+h*(Pg*f+sf*m)),255*(a+h*($o*f)),this.opacity)}}));var Pv=Array.prototype.slice;function Xw(n,a){return n-a}function gs(n){return function(){return n}}function Yg(n,a){for(var h,f=-1,m=a.length;++f<m;)if(h=cf(n,a[f]))return h;return 0}function cf(n,a){for(var h=a[0],f=a[1],m=-1,_=0,E=n.length,x=E-1;_<E;x=_++){var A=n[_],N=A[0],B=A[1],Y=n[x],I=Y[0],H=Y[1];if(uf(A,Y,a))return 0;B>f!=H>f&&h<(I-N)*(f-B)/(H-B)+N&&(m=-m)}return m}function uf(n,a,h){var f,m,_,E;return function(x,A,N){return(A[0]-x[0])*(N[1]-x[1])==(N[0]-x[0])*(A[1]-x[1])}(n,a,h)&&(m=n[f=+(n[0]===a[0])],_=h[f],E=a[f],m<=_&&_<=E||E<=_&&_<=m)}function Yv(){}var ys=[[],[[[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 zi(){var n=1,a=1,h=Ht,f=x;function m(A){var N=h(A);if(Array.isArray(N))N=N.slice().sort(Xw);else{var B=X(A),Y=B[0],I=B[1];N=wt(Y,I,N),N=et(Math.floor(Y/N)*N,Math.floor(I/N)*N,N)}return N.map(function(H){return _(A,H)})}function _(A,N){var B=[],Y=[];return function(I,H,W){var J,Q,Z,at,nt,dt,Yt=new Array,Rt=new Array;for(J=Q=-1,at=I[0]>=H,ys[at<<1].forEach(Qt);++J<n-1;)Z=at,at=I[J+1]>=H,ys[Z|at<<1].forEach(Qt);for(ys[at<<0].forEach(Qt);++Q<a-1;){for(J=-1,at=I[Q*n+n]>=H,nt=I[Q*n]>=H,ys[at<<1|nt<<2].forEach(Qt);++J<n-1;)Z=at,at=I[Q*n+n+J+1]>=H,dt=nt,nt=I[Q*n+J+1]>=H,ys[Z|at<<1|nt<<2|dt<<3].forEach(Qt);ys[at|nt<<3].forEach(Qt)}for(J=-1,nt=I[Q*n]>=H,ys[nt<<2].forEach(Qt);++J<n-1;)dt=nt,nt=I[Q*n+J+1]>=H,ys[nt<<2|dt<<3].forEach(Qt);function Qt(_e){var Ut,se,ft=[_e[0][0]+J,_e[0][1]+Q],Et=[_e[1][0]+J,_e[1][1]+Q],ne=E(ft),Xt=E(Et);(Ut=Rt[ne])?(se=Yt[Xt])?(delete Rt[Ut.end],delete Yt[se.start],Ut===se?(Ut.ring.push(Et),W(Ut.ring)):Yt[Ut.start]=Rt[se.end]={start:Ut.start,end:se.end,ring:Ut.ring.concat(se.ring)}):(delete Rt[Ut.end],Ut.ring.push(Et),Rt[Ut.end=Xt]=Ut):(Ut=Yt[Xt])?(se=Rt[ne])?(delete Yt[Ut.start],delete Rt[se.end],Ut===se?(Ut.ring.push(Et),W(Ut.ring)):Yt[se.start]=Rt[Ut.end]={start:se.start,end:Ut.end,ring:se.ring.concat(Ut.ring)}):(delete Yt[Ut.start],Ut.ring.unshift(ft),Yt[Ut.start=ne]=Ut):Yt[ne]=Rt[Xt]={start:ne,end:Xt,ring:[ft,Et]}}ys[nt<<3].forEach(Qt)}(A,N,function(I){f(I,A,N),function(H){for(var W=0,J=H.length,Q=H[J-1][1]*H[0][0]-H[J-1][0]*H[0][1];++W<J;)Q+=H[W-1][1]*H[W][0]-H[W-1][0]*H[W][1];return Q}(I)>0?B.push([I]):Y.push(I)}),Y.forEach(function(I){for(var H,W=0,J=B.length;W<J;++W)if(Yg((H=B[W])[0],I)!==-1)return void H.push(I)}),{type:"MultiPolygon",value:N,coordinates:B}}function E(A){return 2*A[0]+A[1]*(n+1)*4}function x(A,N,B){A.forEach(function(Y){var I,H=Y[0],W=Y[1],J=0|H,Q=0|W,Z=N[Q*n+J];H>0&&H<n&&J===H&&(I=N[Q*n+J-1],Y[0]=H+(B-I)/(Z-I)-.5),W>0&&W<a&&Q===W&&(I=N[(Q-1)*n+J],Y[1]=W+(B-I)/(Z-I)-.5)})}return m.contour=_,m.size=function(A){if(!arguments.length)return[n,a];var N=Math.ceil(A[0]),B=Math.ceil(A[1]);if(!(N>0&&B>0))throw new Error("invalid size");return n=N,a=B,m},m.thresholds=function(A){return arguments.length?(h=typeof A=="function"?A:Array.isArray(A)?gs(Pv.call(A)):gs(A),m):h},m.smooth=function(A){return arguments.length?(f=A?x:Yv,m):f===x},m}function jg(n,a,h){for(var f=n.width,m=n.height,_=1+(h<<1),E=0;E<m;++E)for(var x=0,A=0;x<f+h;++x)x<f&&(A+=n.data[x+E*f]),x>=h&&(x>=_&&(A-=n.data[x-_+E*f]),a.data[x-h+E*f]=A/Math.min(x+1,f-1+_-x,_))}function zg(n,a,h){for(var f=n.width,m=n.height,_=1+(h<<1),E=0;E<f;++E)for(var x=0,A=0;x<m+h;++x)x<m&&(A+=n.data[E+x*f]),x>=h&&(x>=_&&(A-=n.data[E+(x-_)*f]),a.data[E+(x-h)*f]=A/Math.min(x+1,m-1+_-x,_))}function wr(n){return n[0]}function Kw(n){return n[1]}function lf(){return 1}function hf(){var n=wr,a=Kw,h=lf,f=960,m=500,_=20,E=2,x=3*_,A=f+2*x>>E,N=m+2*x>>E,B=gs(20);function Y(Z){var at=new Float32Array(A*N),nt=new Float32Array(A*N);Z.forEach(function(Rt,Qt,_e){var Ut=+n(Rt,Qt,_e)+x>>E,se=+a(Rt,Qt,_e)+x>>E,ft=+h(Rt,Qt,_e);Ut>=0&&Ut<A&&se>=0&&se<N&&(at[Ut+se*A]+=ft)}),jg({width:A,height:N,data:at},{width:A,height:N,data:nt},_>>E),zg({width:A,height:N,data:nt},{width:A,height:N,data:at},_>>E),jg({width:A,height:N,data:at},{width:A,height:N,data:nt},_>>E),zg({width:A,height:N,data:nt},{width:A,height:N,data:at},_>>E),jg({width:A,height:N,data:at},{width:A,height:N,data:nt},_>>E),zg({width:A,height:N,data:nt},{width:A,height:N,data:at},_>>E);var dt=B(at);if(!Array.isArray(dt)){var Yt=Bt(at);dt=wt(0,Yt,dt),(dt=et(0,Math.floor(Yt/dt)*dt,dt)).shift()}return zi().thresholds(dt).size([A,N])(at).map(I)}function I(Z){return Z.value*=Math.pow(2,-2*E),Z.coordinates.forEach(H),Z}function H(Z){Z.forEach(W)}function W(Z){Z.forEach(J)}function J(Z){Z[0]=Z[0]*Math.pow(2,E)-x,Z[1]=Z[1]*Math.pow(2,E)-x}function Q(){return A=f+2*(x=3*_)>>E,N=m+2*x>>E,Y}return Y.x=function(Z){return arguments.length?(n=typeof Z=="function"?Z:gs(+Z),Y):n},Y.y=function(Z){return arguments.length?(a=typeof Z=="function"?Z:gs(+Z),Y):a},Y.weight=function(Z){return arguments.length?(h=typeof Z=="function"?Z:gs(+Z),Y):h},Y.size=function(Z){if(!arguments.length)return[f,m];var at=Math.ceil(Z[0]),nt=Math.ceil(Z[1]);if(!(at>=0||at>=0))throw new Error("invalid size");return f=at,m=nt,Q()},Y.cellSize=function(Z){if(!arguments.length)return 1<<E;if(!((Z=+Z)>=1))throw new Error("invalid cell size");return E=Math.floor(Math.log(Z)/Math.LN2),Q()},Y.thresholds=function(Z){return arguments.length?(B=typeof Z=="function"?Z:Array.isArray(Z)?gs(Pv.call(Z)):gs(Z),Y):B},Y.bandwidth=function(Z){if(!arguments.length)return Math.sqrt(_*(_+1));if(!((Z=+Z)>=0))throw new Error("invalid bandwidth");return _=Math.round((Math.sqrt(4*Z*Z+1)-1)/2),Q()},Y}function k0(n){return function(){return n}}function Ug(n,a,h,f,m,_,E,x,A,N){this.target=n,this.type=a,this.subject=h,this.identifier=f,this.active=m,this.x=_,this.y=E,this.dx=x,this.dy=A,this._=N}function Qw(){return!mt.ctrlKey&&!mt.button}function Jw(){return this.parentNode}function t5(n){return n==null?{x:mt.x,y:mt.y}:n}function jv(){return navigator.maxTouchPoints||"ontouchstart"in this}function zv(){var n,a,h,f,m=Qw,_=Jw,E=t5,x=jv,A={},N=en("start","drag","end"),B=0,Y=0;function I(dt){dt.on("mousedown.drag",H).filter(x).on("touchstart.drag",Q).on("touchmove.drag",Z).on("touchend.drag touchcancel.drag",at).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function H(){if(!f&&m.apply(this,arguments)){var dt=nt("mouse",_.apply(this,arguments),Ys,this,arguments);dt&&(yr(mt.view).on("mousemove.drag",W,!0).on("mouseup.drag",J,!0),ri(mt.view),Cr(),h=!1,n=mt.clientX,a=mt.clientY,dt("start"))}}function W(){if(ki(),!h){var dt=mt.clientX-n,Yt=mt.clientY-a;h=dt*dt+Yt*Yt>Y}A.mouse("drag")}function J(){yr(mt.view).on("mousemove.drag mouseup.drag",null),$r(mt.view,h),ki(),A.mouse("end")}function Q(){if(m.apply(this,arguments)){var dt,Yt,Rt=mt.changedTouches,Qt=_.apply(this,arguments),_e=Rt.length;for(dt=0;dt<_e;++dt)(Yt=nt(Rt[dt].identifier,Qt,Sa,this,arguments))&&(Cr(),Yt("start"))}}function Z(){var dt,Yt,Rt=mt.changedTouches,Qt=Rt.length;for(dt=0;dt<Qt;++dt)(Yt=A[Rt[dt].identifier])&&(ki(),Yt("drag"))}function at(){var dt,Yt,Rt=mt.changedTouches,Qt=Rt.length;for(f&&clearTimeout(f),f=setTimeout(function(){f=null},500),dt=0;dt<Qt;++dt)(Yt=A[Rt[dt].identifier])&&(Cr(),Yt("end"))}function nt(dt,Yt,Rt,Qt,_e){var Ut,se,ft,Et=Rt(Yt,dt),ne=N.copy();if(ko(new Ug(I,"beforestart",Ut,dt,B,Et[0],Et[1],0,0,ne),function(){return(mt.subject=Ut=E.apply(Qt,_e))!=null&&(se=Ut.x-Et[0]||0,ft=Ut.y-Et[1]||0,!0)}))return function Xt(re){var Oe,Ue=Et;switch(re){case"start":A[dt]=Xt,Oe=B++;break;case"end":delete A[dt],--B;case"drag":Et=Rt(Yt,dt),Oe=B}ko(new Ug(I,re,Ut,dt,Oe,Et[0]+se,Et[1]+ft,Et[0]-Ue[0],Et[1]-Ue[1],ne),ne.apply,ne,[re,Qt,_e])}}return I.filter=function(dt){return arguments.length?(m=typeof dt=="function"?dt:k0(!!dt),I):m},I.container=function(dt){return arguments.length?(_=typeof dt=="function"?dt:k0(dt),I):_},I.subject=function(dt){return arguments.length?(E=typeof dt=="function"?dt:k0(dt),I):E},I.touchable=function(dt){return arguments.length?(x=typeof dt=="function"?dt:k0(!!dt),I):x},I.on=function(){var dt=N.on.apply(N,arguments);return dt===N?I:dt},I.clickDistance=function(dt){return arguments.length?(Y=(dt=+dt)*dt,I):Math.sqrt(Y)},I}Ug.prototype.on=function(){var n=this._.on.apply(this._,arguments);return n===this._?this:n};var Uv={},$g={};function $v(n){return new Function("d","return {"+n.map(function(a,h){return JSON.stringify(a)+": d["+h+'] || ""'}).join(",")+"}")}function Hg(n){var a=Object.create(null),h=[];return n.forEach(function(f){for(var m in f)m in a||h.push(a[m]=m)}),h}function qa(n,a){var h=n+"",f=h.length;return f<a?new Array(a-f+1).join(0)+h:h}function ff(n){var a=new RegExp('["'+n+`
|
|
\r]`),h=n.charCodeAt(0);function f(x,A){var N,B=[],Y=x.length,I=0,H=0,W=Y<=0,J=!1;function Q(){if(W)return $g;if(J)return J=!1,Uv;var at,nt,dt=I;if(x.charCodeAt(dt)===34){for(;I++<Y&&x.charCodeAt(I)!==34||x.charCodeAt(++I)===34;);return(at=I)>=Y?W=!0:(nt=x.charCodeAt(I++))===10?J=!0:nt===13&&(J=!0,x.charCodeAt(I)===10&&++I),x.slice(dt+1,at-1).replace(/""/g,'"')}for(;I<Y;){if((nt=x.charCodeAt(at=I++))===10)J=!0;else if(nt===13)J=!0,x.charCodeAt(I)===10&&++I;else if(nt!==h)continue;return x.slice(dt,at)}return W=!0,x.slice(dt,Y)}for(x.charCodeAt(Y-1)===10&&--Y,x.charCodeAt(Y-1)===13&&--Y;(N=Q())!==$g;){for(var Z=[];N!==Uv&&N!==$g;)Z.push(N),N=Q();A&&(Z=A(Z,H++))==null||B.push(Z)}return B}function m(x,A){return x.map(function(N){return A.map(function(B){return E(N[B])}).join(n)})}function _(x){return x.map(E).join(n)}function E(x){return x==null?"":x instanceof Date?function(A){var N=A.getUTCHours(),B=A.getUTCMinutes(),Y=A.getUTCSeconds(),I=A.getUTCMilliseconds();return isNaN(A)?"Invalid Date":function(H){return H<0?"-"+qa(-H,6):H>9999?"+"+qa(H,6):qa(H,4)}(A.getUTCFullYear())+"-"+qa(A.getUTCMonth()+1,2)+"-"+qa(A.getUTCDate(),2)+(I?"T"+qa(N,2)+":"+qa(B,2)+":"+qa(Y,2)+"."+qa(I,3)+"Z":Y?"T"+qa(N,2)+":"+qa(B,2)+":"+qa(Y,2)+"Z":B||N?"T"+qa(N,2)+":"+qa(B,2)+"Z":"")}(x):a.test(x+="")?'"'+x.replace(/"/g,'""')+'"':x}return{parse:function(x,A){var N,B,Y=f(x,function(I,H){if(N)return N(I,H-1);B=I,N=A?function(W,J){var Q=$v(W);return function(Z,at){return J(Q(Z),at,W)}}(I,A):$v(I)});return Y.columns=B||[],Y},parseRows:f,format:function(x,A){return A==null&&(A=Hg(x)),[A.map(E).join(n)].concat(m(x,A)).join(`
|
|
`)},formatBody:function(x,A){return A==null&&(A=Hg(x)),m(x,A).join(`
|
|
`)},formatRows:function(x){return x.map(_).join(`
|
|
`)},formatRow:_,formatValue:E}}var Eu=ff(","),Hv=Eu.parse,e5=Eu.parseRows,n5=Eu.format,r5=Eu.formatBody,i5=Eu.formatRows,a5=Eu.formatRow,Wv=Eu.formatValue,Su=ff(" "),qv=Su.parse,o5=Su.parseRows,Vv=Su.format,s5=Su.formatBody,c5=Su.formatRows,u5=Su.formatRow,l5=Su.formatValue;function h5(n){for(var a in n){var h,f,m=n[a].trim();if(m)if(m==="true")m=!0;else if(m==="false")m=!1;else if(m==="NaN")m=NaN;else if(isNaN(h=+m)){if(!(f=m.match(/^([-+]\d{2})?\d{4}(-\d{2}(-\d{2})?)?(T\d{2}:\d{2}(:\d{2}(\.\d{3})?)?(Z|[-+]\d{2}:\d{2})?)?$/)))continue;f5&&f[4]&&!f[7]&&(m=m.replace(/-/g,"/").replace(/T/," ")),m=new Date(m)}else m=h;else m=null;n[a]=m}return n}var f5=new Date("2019-01-01T00:00").getHours()||new Date("2019-07-01T00:00").getHours();function Gv(n){return+n}function d5(n){return n*n}function p5(n){return n*(2-n)}function Zv(n){return((n*=2)<=1?n*n:--n*(2-n)+1)/2}var g5=function n(a){function h(f){return Math.pow(f,a)}return a=+a,h.exponent=n,h}(3),y5=function n(a){function h(f){return 1-Math.pow(1-f,a)}return a=+a,h.exponent=n,h}(3),Xv=function n(a){function h(f){return((f*=2)<=1?Math.pow(f,a):2-Math.pow(2-f,a))/2}return a=+a,h.exponent=n,h}(3),Kv=Math.PI,Qv=Kv/2;function Jv(n){return+n==1?1:1-Math.cos(n*Qv)}function m5(n){return Math.sin(n*Qv)}function t_(n){return(1-Math.cos(Kv*n))/2}function Sc(n){return 1.0009775171065494*(Math.pow(2,-10*n)-.0009765625)}function e_(n){return Sc(1-+n)}function v5(n){return 1-Sc(n)}function n_(n){return((n*=2)<=1?Sc(1-n):2-Sc(n-1))/2}function _5(n){return 1-Math.sqrt(1-n*n)}function b5(n){return Math.sqrt(1- --n*n)}function r_(n){return((n*=2)<=1?1-Math.sqrt(1-n*n):Math.sqrt(1-(n-=2)*n)+1)/2}var T0=7.5625;function i_(n){return 1-df(1-n)}function df(n){return(n=+n)<.36363636363636365?T0*n*n:n<.7272727272727273?T0*(n-=.5454545454545454)*n+.75:n<.9090909090909091?T0*(n-=.8181818181818182)*n+.9375:T0*(n-=.9545454545454546)*n+.984375}function w5(n){return((n*=2)<=1?1-df(1-n):df(n-1)+1)/2}var Wg=1.70158,x5=function n(a){function h(f){return(f=+f)*f*(a*(f-1)+f)}return a=+a,h.overshoot=n,h}(Wg),k5=function n(a){function h(f){return--f*f*((f+1)*a+f)+1}return a=+a,h.overshoot=n,h}(Wg),a_=function n(a){function h(f){return((f*=2)<1?f*f*((a+1)*f-a):(f-=2)*f*((a+1)*f+a)+2)/2}return a=+a,h.overshoot=n,h}(Wg),Dl=2*Math.PI,T5=function n(a,h){var f=Math.asin(1/(a=Math.max(1,a)))*(h/=Dl);function m(_){return a*Sc(- --_)*Math.sin((f-_)/h)}return m.amplitude=function(_){return n(_,h*Dl)},m.period=function(_){return n(a,_)},m}(1,.3),qg=function n(a,h){var f=Math.asin(1/(a=Math.max(1,a)))*(h/=Dl);function m(_){return 1-a*Sc(_=+_)*Math.sin((_+f)/h)}return m.amplitude=function(_){return n(_,h*Dl)},m.period=function(_){return n(a,_)},m}(1,.3),o_=function n(a,h){var f=Math.asin(1/(a=Math.max(1,a)))*(h/=Dl);function m(_){return((_=2*_-1)<0?a*Sc(-_)*Math.sin((f-_)/h):2-a*Sc(_)*Math.sin((f+_)/h))/2}return m.amplitude=function(_){return n(_,h*Dl)},m.period=function(_){return n(a,_)},m}(1,.3);function s_(n){if(!n.ok)throw new Error(n.status+" "+n.statusText);return n.blob()}function E5(n,a){return fetch(n,a).then(s_)}function S5(n){if(!n.ok)throw new Error(n.status+" "+n.statusText);return n.arrayBuffer()}function c_(n,a){return fetch(n,a).then(S5)}function C5(n){if(!n.ok)throw new Error(n.status+" "+n.statusText);return n.text()}function Nl(n,a){return fetch(n,a).then(C5)}function Vg(n){return function(a,h,f){return arguments.length===2&&typeof h=="function"&&(f=h,h=void 0),Nl(a,h).then(function(m){return n(m,f)})}}function A5(n,a,h,f){arguments.length===3&&typeof h=="function"&&(f=h,h=void 0);var m=ff(n);return Nl(a,h).then(function(_){return m.parse(_,f)})}var u_=Vg(Hv),l_=Vg(qv);function h_(n,a){return new Promise(function(h,f){var m=new Image;for(var _ in a)m[_]=a[_];m.onerror=f,m.onload=function(){h(m)},m.src=n})}function M5(n){if(!n.ok)throw new Error(n.status+" "+n.statusText);if(n.status!==204&&n.status!==205)return n.json()}function D5(n,a){return fetch(n,a).then(M5)}function Gg(n){return function(a,h){return Nl(a,h).then(function(f){return new DOMParser().parseFromString(f,n)})}}const N5=Gg("application/xml");var f_=Gg("text/html"),E0=Gg("image/svg+xml");function O5(n,a){var h;function f(){var m,_,E=h.length,x=0,A=0;for(m=0;m<E;++m)x+=(_=h[m]).x,A+=_.y;for(x=x/E-n,A=A/E-a,m=0;m<E;++m)(_=h[m]).x-=x,_.y-=A}return n==null&&(n=0),a==null&&(a=0),f.initialize=function(m){h=m},f.x=function(m){return arguments.length?(n=+m,f):n},f.y=function(m){return arguments.length?(a=+m,f):a},f}function Ui(n){return function(){return n}}function Cc(){return 1e-6*(Math.random()-.5)}function d_(n,a,h,f){if(isNaN(a)||isNaN(h))return n;var m,_,E,x,A,N,B,Y,I,H=n._root,W={data:f},J=n._x0,Q=n._y0,Z=n._x1,at=n._y1;if(!H)return n._root=W,n;for(;H.length;)if((N=a>=(_=(J+Z)/2))?J=_:Z=_,(B=h>=(E=(Q+at)/2))?Q=E:at=E,m=H,!(H=H[Y=B<<1|N]))return m[Y]=W,n;if(x=+n._x.call(null,H.data),A=+n._y.call(null,H.data),a===x&&h===A)return W.next=H,m?m[Y]=W:n._root=W,n;do m=m?m[Y]=new Array(4):n._root=new Array(4),(N=a>=(_=(J+Z)/2))?J=_:Z=_,(B=h>=(E=(Q+at)/2))?Q=E:at=E;while((Y=B<<1|N)==(I=(A>=E)<<1|x>=_));return m[I]=H,m[Y]=W,n}function Ma(n,a,h,f,m){this.node=n,this.x0=a,this.y0=h,this.x1=f,this.y1=m}function L5(n){return n[0]}function Zg(n){return n[1]}function pf(n,a,h){var f=new Ol(a==null?L5:a,h==null?Zg:h,NaN,NaN,NaN,NaN);return n==null?f:f.addAll(n)}function Ol(n,a,h,f,m,_){this._x=n,this._y=a,this._x0=h,this._y0=f,this._x1=m,this._y1=_,this._root=void 0}function p_(n){for(var a={data:n.data},h=a;n=n.next;)h=h.next={data:n.data};return a}var Da=pf.prototype=Ol.prototype;function B5(n){return n.x+n.vx}function I5(n){return n.y+n.vy}function R5(n){var a,h,f=1,m=1;function _(){for(var A,N,B,Y,I,H,W,J=a.length,Q=0;Q<m;++Q)for(N=pf(a,B5,I5).visitAfter(E),A=0;A<J;++A)B=a[A],H=h[B.index],W=H*H,Y=B.x+B.vx,I=B.y+B.vy,N.visit(Z);function Z(at,nt,dt,Yt,Rt){var Qt=at.data,_e=at.r,Ut=H+_e;if(!Qt)return nt>Y+Ut||Yt<Y-Ut||dt>I+Ut||Rt<I-Ut;if(Qt.index>B.index){var se=Y-Qt.x-Qt.vx,ft=I-Qt.y-Qt.vy,Et=se*se+ft*ft;Et<Ut*Ut&&(se===0&&(Et+=(se=Cc())*se),ft===0&&(Et+=(ft=Cc())*ft),Et=(Ut-(Et=Math.sqrt(Et)))/Et*f,B.vx+=(se*=Et)*(Ut=(_e*=_e)/(W+_e)),B.vy+=(ft*=Et)*Ut,Qt.vx-=se*(Ut=1-Ut),Qt.vy-=ft*Ut)}}}function E(A){if(A.data)return A.r=h[A.data.index];for(var N=A.r=0;N<4;++N)A[N]&&A[N].r>A.r&&(A.r=A[N].r)}function x(){if(a){var A,N,B=a.length;for(h=new Array(B),A=0;A<B;++A)N=a[A],h[N.index]=+n(N,A,a)}}return typeof n!="function"&&(n=Ui(n==null?1:+n)),_.initialize=function(A){a=A,x()},_.iterations=function(A){return arguments.length?(m=+A,_):m},_.strength=function(A){return arguments.length?(f=+A,_):f},_.radius=function(A){return arguments.length?(n=typeof A=="function"?A:Ui(+A),x(),_):n},_}function F5(n){return n.index}function Xg(n,a){var h=n.get(a);if(!h)throw new Error("missing: "+a);return h}function P5(n){var a,h,f,m,_,E=F5,x=function(W){return 1/Math.min(m[W.source.index],m[W.target.index])},A=Ui(30),N=1;function B(W){for(var J=0,Q=n.length;J<N;++J)for(var Z,at,nt,dt,Yt,Rt,Qt,_e=0;_e<Q;++_e)at=(Z=n[_e]).source,dt=(nt=Z.target).x+nt.vx-at.x-at.vx||Cc(),Yt=nt.y+nt.vy-at.y-at.vy||Cc(),dt*=Rt=((Rt=Math.sqrt(dt*dt+Yt*Yt))-h[_e])/Rt*W*a[_e],Yt*=Rt,nt.vx-=dt*(Qt=_[_e]),nt.vy-=Yt*Qt,at.vx+=dt*(Qt=1-Qt),at.vy+=Yt*Qt}function Y(){if(f){var W,J,Q=f.length,Z=n.length,at=Hs(f,E);for(W=0,m=new Array(Q);W<Z;++W)(J=n[W]).index=W,typeof J.source!="object"&&(J.source=Xg(at,J.source)),typeof J.target!="object"&&(J.target=Xg(at,J.target)),m[J.source.index]=(m[J.source.index]||0)+1,m[J.target.index]=(m[J.target.index]||0)+1;for(W=0,_=new Array(Z);W<Z;++W)J=n[W],_[W]=m[J.source.index]/(m[J.source.index]+m[J.target.index]);a=new Array(Z),I(),h=new Array(Z),H()}}function I(){if(f)for(var W=0,J=n.length;W<J;++W)a[W]=+x(n[W],W,n)}function H(){if(f)for(var W=0,J=n.length;W<J;++W)h[W]=+A(n[W],W,n)}return n==null&&(n=[]),B.initialize=function(W){f=W,Y()},B.links=function(W){return arguments.length?(n=W,Y(),B):n},B.id=function(W){return arguments.length?(E=W,B):E},B.iterations=function(W){return arguments.length?(N=+W,B):N},B.strength=function(W){return arguments.length?(x=typeof W=="function"?W:Ui(+W),I(),B):x},B.distance=function(W){return arguments.length?(A=typeof W=="function"?W:Ui(+W),H(),B):A},B}function Y5(n){return n.x}function j5(n){return n.y}Da.copy=function(){var n,a,h=new Ol(this._x,this._y,this._x0,this._y0,this._x1,this._y1),f=this._root;if(!f)return h;if(!f.length)return h._root=p_(f),h;for(n=[{source:f,target:h._root=new Array(4)}];f=n.pop();)for(var m=0;m<4;++m)(a=f.source[m])&&(a.length?n.push({source:a,target:f.target[m]=new Array(4)}):f.target[m]=p_(a));return h},Da.add=function(n){var a=+this._x.call(null,n),h=+this._y.call(null,n);return d_(this.cover(a,h),a,h,n)},Da.addAll=function(n){var a,h,f,m,_=n.length,E=new Array(_),x=new Array(_),A=1/0,N=1/0,B=-1/0,Y=-1/0;for(h=0;h<_;++h)isNaN(f=+this._x.call(null,a=n[h]))||isNaN(m=+this._y.call(null,a))||(E[h]=f,x[h]=m,f<A&&(A=f),f>B&&(B=f),m<N&&(N=m),m>Y&&(Y=m));if(A>B||N>Y)return this;for(this.cover(A,N).cover(B,Y),h=0;h<_;++h)d_(this,E[h],x[h],n[h]);return this},Da.cover=function(n,a){if(isNaN(n=+n)||isNaN(a=+a))return this;var h=this._x0,f=this._y0,m=this._x1,_=this._y1;if(isNaN(h))m=(h=Math.floor(n))+1,_=(f=Math.floor(a))+1;else{for(var E,x,A=m-h,N=this._root;h>n||n>=m||f>a||a>=_;)switch(x=(a<f)<<1|n<h,(E=new Array(4))[x]=N,N=E,A*=2,x){case 0:m=h+A,_=f+A;break;case 1:h=m-A,_=f+A;break;case 2:m=h+A,f=_-A;break;case 3:h=m-A,f=_-A}this._root&&this._root.length&&(this._root=N)}return this._x0=h,this._y0=f,this._x1=m,this._y1=_,this},Da.data=function(){var n=[];return this.visit(function(a){if(!a.length)do n.push(a.data);while(a=a.next)}),n},Da.extent=function(n){return arguments.length?this.cover(+n[0][0],+n[0][1]).cover(+n[1][0],+n[1][1]):isNaN(this._x0)?void 0:[[this._x0,this._y0],[this._x1,this._y1]]},Da.find=function(n,a,h){var f,m,_,E,x,A,N,B=this._x0,Y=this._y0,I=this._x1,H=this._y1,W=[],J=this._root;for(J&&W.push(new Ma(J,B,Y,I,H)),h==null?h=1/0:(B=n-h,Y=a-h,I=n+h,H=a+h,h*=h);A=W.pop();)if(!(!(J=A.node)||(m=A.x0)>I||(_=A.y0)>H||(E=A.x1)<B||(x=A.y1)<Y))if(J.length){var Q=(m+E)/2,Z=(_+x)/2;W.push(new Ma(J[3],Q,Z,E,x),new Ma(J[2],m,Z,Q,x),new Ma(J[1],Q,_,E,Z),new Ma(J[0],m,_,Q,Z)),(N=(a>=Z)<<1|n>=Q)&&(A=W[W.length-1],W[W.length-1]=W[W.length-1-N],W[W.length-1-N]=A)}else{var at=n-+this._x.call(null,J.data),nt=a-+this._y.call(null,J.data),dt=at*at+nt*nt;if(dt<h){var Yt=Math.sqrt(h=dt);B=n-Yt,Y=a-Yt,I=n+Yt,H=a+Yt,f=J.data}}return f},Da.remove=function(n){if(isNaN(_=+this._x.call(null,n))||isNaN(E=+this._y.call(null,n)))return this;var a,h,f,m,_,E,x,A,N,B,Y,I,H=this._root,W=this._x0,J=this._y0,Q=this._x1,Z=this._y1;if(!H)return this;if(H.length)for(;;){if((N=_>=(x=(W+Q)/2))?W=x:Q=x,(B=E>=(A=(J+Z)/2))?J=A:Z=A,a=H,!(H=H[Y=B<<1|N]))return this;if(!H.length)break;(a[Y+1&3]||a[Y+2&3]||a[Y+3&3])&&(h=a,I=Y)}for(;H.data!==n;)if(f=H,!(H=H.next))return this;return(m=H.next)&&delete H.next,f?(m?f.next=m:delete f.next,this):a?(m?a[Y]=m:delete a[Y],(H=a[0]||a[1]||a[2]||a[3])&&H===(a[3]||a[2]||a[1]||a[0])&&!H.length&&(h?h[I]=H:this._root=H),this):(this._root=m,this)},Da.removeAll=function(n){for(var a=0,h=n.length;a<h;++a)this.remove(n[a]);return this},Da.root=function(){return this._root},Da.size=function(){var n=0;return this.visit(function(a){if(!a.length)do++n;while(a=a.next)}),n},Da.visit=function(n){var a,h,f,m,_,E,x=[],A=this._root;for(A&&x.push(new Ma(A,this._x0,this._y0,this._x1,this._y1));a=x.pop();)if(!n(A=a.node,f=a.x0,m=a.y0,_=a.x1,E=a.y1)&&A.length){var N=(f+_)/2,B=(m+E)/2;(h=A[3])&&x.push(new Ma(h,N,B,_,E)),(h=A[2])&&x.push(new Ma(h,f,B,N,E)),(h=A[1])&&x.push(new Ma(h,N,m,_,B)),(h=A[0])&&x.push(new Ma(h,f,m,N,B))}return this},Da.visitAfter=function(n){var a,h=[],f=[];for(this._root&&h.push(new Ma(this._root,this._x0,this._y0,this._x1,this._y1));a=h.pop();){var m=a.node;if(m.length){var _,E=a.x0,x=a.y0,A=a.x1,N=a.y1,B=(E+A)/2,Y=(x+N)/2;(_=m[0])&&h.push(new Ma(_,E,x,B,Y)),(_=m[1])&&h.push(new Ma(_,B,x,A,Y)),(_=m[2])&&h.push(new Ma(_,E,Y,B,N)),(_=m[3])&&h.push(new Ma(_,B,Y,A,N))}f.push(a)}for(;a=f.pop();)n(a.node,a.x0,a.y0,a.x1,a.y1);return this},Da.x=function(n){return arguments.length?(this._x=n,this):this._x},Da.y=function(n){return arguments.length?(this._y=n,this):this._y};var Ll=Math.PI*(3-Math.sqrt(5));function z5(n){var a,h=1,f=.001,m=1-Math.pow(f,1/300),_=0,E=.6,x=Hs(),A=fe(B),N=en("tick","end");function B(){Y(),N.call("tick",a),h<f&&(A.stop(),N.call("end",a))}function Y(W){var J,Q,Z=n.length;W===void 0&&(W=1);for(var at=0;at<W;++at)for(h+=(_-h)*m,x.each(function(nt){nt(h)}),J=0;J<Z;++J)(Q=n[J]).fx==null?Q.x+=Q.vx*=E:(Q.x=Q.fx,Q.vx=0),Q.fy==null?Q.y+=Q.vy*=E:(Q.y=Q.fy,Q.vy=0);return a}function I(){for(var W,J=0,Q=n.length;J<Q;++J){if((W=n[J]).index=J,W.fx!=null&&(W.x=W.fx),W.fy!=null&&(W.y=W.fy),isNaN(W.x)||isNaN(W.y)){var Z=10*Math.sqrt(J),at=J*Ll;W.x=Z*Math.cos(at),W.y=Z*Math.sin(at)}(isNaN(W.vx)||isNaN(W.vy))&&(W.vx=W.vy=0)}}function H(W){return W.initialize&&W.initialize(n),W}return n==null&&(n=[]),I(),a={tick:Y,restart:function(){return A.restart(B),a},stop:function(){return A.stop(),a},nodes:function(W){return arguments.length?(n=W,I(),x.each(H),a):n},alpha:function(W){return arguments.length?(h=+W,a):h},alphaMin:function(W){return arguments.length?(f=+W,a):f},alphaDecay:function(W){return arguments.length?(m=+W,a):+m},alphaTarget:function(W){return arguments.length?(_=+W,a):_},velocityDecay:function(W){return arguments.length?(E=1-W,a):1-E},force:function(W,J){return arguments.length>1?(J==null?x.remove(W):x.set(W,H(J)),a):x.get(W)},find:function(W,J,Q){var Z,at,nt,dt,Yt,Rt=0,Qt=n.length;for(Q==null?Q=1/0:Q*=Q,Rt=0;Rt<Qt;++Rt)(nt=(Z=W-(dt=n[Rt]).x)*Z+(at=J-dt.y)*at)<Q&&(Yt=dt,Q=nt);return Yt},on:function(W,J){return arguments.length>1?(N.on(W,J),a):N.on(W)}}}function U5(){var n,a,h,f,m=Ui(-30),_=1,E=1/0,x=.81;function A(I){var H,W=n.length,J=pf(n,Y5,j5).visitAfter(B);for(h=I,H=0;H<W;++H)a=n[H],J.visit(Y)}function N(){if(n){var I,H,W=n.length;for(f=new Array(W),I=0;I<W;++I)H=n[I],f[H.index]=+m(H,I,n)}}function B(I){var H,W,J,Q,Z,at=0,nt=0;if(I.length){for(J=Q=Z=0;Z<4;++Z)(H=I[Z])&&(W=Math.abs(H.value))&&(at+=H.value,nt+=W,J+=W*H.x,Q+=W*H.y);I.x=J/nt,I.y=Q/nt}else{(H=I).x=H.data.x,H.y=H.data.y;do at+=f[H.data.index];while(H=H.next)}I.value=at}function Y(I,H,W,J){if(!I.value)return!0;var Q=I.x-a.x,Z=I.y-a.y,at=J-H,nt=Q*Q+Z*Z;if(at*at/x<nt)return nt<E&&(Q===0&&(nt+=(Q=Cc())*Q),Z===0&&(nt+=(Z=Cc())*Z),nt<_&&(nt=Math.sqrt(_*nt)),a.vx+=Q*I.value*h/nt,a.vy+=Z*I.value*h/nt),!0;if(!(I.length||nt>=E)){(I.data!==a||I.next)&&(Q===0&&(nt+=(Q=Cc())*Q),Z===0&&(nt+=(Z=Cc())*Z),nt<_&&(nt=Math.sqrt(_*nt)));do I.data!==a&&(at=f[I.data.index]*h/nt,a.vx+=Q*at,a.vy+=Z*at);while(I=I.next)}}return A.initialize=function(I){n=I,N()},A.strength=function(I){return arguments.length?(m=typeof I=="function"?I:Ui(+I),N(),A):m},A.distanceMin=function(I){return arguments.length?(_=I*I,A):Math.sqrt(_)},A.distanceMax=function(I){return arguments.length?(E=I*I,A):Math.sqrt(E)},A.theta=function(I){return arguments.length?(x=I*I,A):Math.sqrt(x)},A}function $5(n,a,h){var f,m,_,E=Ui(.1);function x(N){for(var B=0,Y=f.length;B<Y;++B){var I=f[B],H=I.x-a||1e-6,W=I.y-h||1e-6,J=Math.sqrt(H*H+W*W),Q=(_[B]-J)*m[B]*N/J;I.vx+=H*Q,I.vy+=W*Q}}function A(){if(f){var N,B=f.length;for(m=new Array(B),_=new Array(B),N=0;N<B;++N)_[N]=+n(f[N],N,f),m[N]=isNaN(_[N])?0:+E(f[N],N,f)}}return typeof n!="function"&&(n=Ui(+n)),a==null&&(a=0),h==null&&(h=0),x.initialize=function(N){f=N,A()},x.strength=function(N){return arguments.length?(E=typeof N=="function"?N:Ui(+N),A(),x):E},x.radius=function(N){return arguments.length?(n=typeof N=="function"?N:Ui(+N),A(),x):n},x.x=function(N){return arguments.length?(a=+N,x):a},x.y=function(N){return arguments.length?(h=+N,x):h},x}function g_(n){var a,h,f,m=Ui(.1);function _(x){for(var A,N=0,B=a.length;N<B;++N)(A=a[N]).vx+=(f[N]-A.x)*h[N]*x}function E(){if(a){var x,A=a.length;for(h=new Array(A),f=new Array(A),x=0;x<A;++x)h[x]=isNaN(f[x]=+n(a[x],x,a))?0:+m(a[x],x,a)}}return typeof n!="function"&&(n=Ui(n==null?0:+n)),_.initialize=function(x){a=x,E()},_.strength=function(x){return arguments.length?(m=typeof x=="function"?x:Ui(+x),E(),_):m},_.x=function(x){return arguments.length?(n=typeof x=="function"?x:Ui(+x),E(),_):n},_}function Kg(n){var a,h,f,m=Ui(.1);function _(x){for(var A,N=0,B=a.length;N<B;++N)(A=a[N]).vy+=(f[N]-A.y)*h[N]*x}function E(){if(a){var x,A=a.length;for(h=new Array(A),f=new Array(A),x=0;x<A;++x)h[x]=isNaN(f[x]=+n(a[x],x,a))?0:+m(a[x],x,a)}}return typeof n!="function"&&(n=Ui(n==null?0:+n)),_.initialize=function(x){a=x,E()},_.strength=function(x){return arguments.length?(m=typeof x=="function"?x:Ui(+x),E(),_):m},_.y=function(x){return arguments.length?(n=typeof x=="function"?x:Ui(+x),E(),_):n},_}function gf(n,a){if((h=(n=a?n.toExponential(a-1):n.toExponential()).indexOf("e"))<0)return null;var h,f=n.slice(0,h);return[f.length>1?f[0]+f.slice(2):f,+n.slice(h+1)]}function Cu(n){return(n=gf(Math.abs(n)))?n[1]:NaN}var Qg,H5=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function yf(n){if(!(a=H5.exec(n)))throw new Error("invalid format: "+n);var a;return new S0({fill:a[1],align:a[2],sign:a[3],symbol:a[4],zero:a[5],width:a[6],comma:a[7],precision:a[8]&&a[8].slice(1),trim:a[9],type:a[10]})}function S0(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 y_(n,a){var h=gf(n,a);if(!h)return n+"";var f=h[0],m=h[1];return m<0?"0."+new Array(-m).join("0")+f:f.length>m+1?f.slice(0,m+1)+"."+f.slice(m+1):f+new Array(m-f.length+2).join("0")}yf.prototype=S0.prototype,S0.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 m_={"%":function(n,a){return(100*n).toFixed(a)},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,a){return n.toExponential(a)},f:function(n,a){return n.toFixed(a)},g:function(n,a){return n.toPrecision(a)},o:function(n){return Math.round(n).toString(8)},p:function(n,a){return y_(100*n,a)},r:y_,s:function(n,a){var h=gf(n,a);if(!h)return n+"";var f=h[0],m=h[1],_=m-(Qg=3*Math.max(-8,Math.min(8,Math.floor(m/3))))+1,E=f.length;return _===E?f:_>E?f+new Array(_-E+1).join("0"):_>0?f.slice(0,_)+"."+f.slice(_):"0."+new Array(1-_).join("0")+gf(n,Math.max(0,a+_-1))[0]},X:function(n){return Math.round(n).toString(16).toUpperCase()},x:function(n){return Math.round(n).toString(16)}};function v_(n){return n}var C0,A0,Jg,__=Array.prototype.map,b_=["y","z","a","f","p","n","\xB5","m","","k","M","G","T","P","E","Z","Y"];function w_(n){var a,h,f=n.grouping===void 0||n.thousands===void 0?v_:(a=__.call(n.grouping,Number),h=n.thousands+"",function(I,H){for(var W=I.length,J=[],Q=0,Z=a[0],at=0;W>0&&Z>0&&(at+Z+1>H&&(Z=Math.max(1,H-at)),J.push(I.substring(W-=Z,W+Z)),!((at+=Z+1)>H));)Z=a[Q=(Q+1)%a.length];return J.reverse().join(h)}),m=n.currency===void 0?"":n.currency[0]+"",_=n.currency===void 0?"":n.currency[1]+"",E=n.decimal===void 0?".":n.decimal+"",x=n.numerals===void 0?v_:function(I){return function(H){return H.replace(/[0-9]/g,function(W){return I[+W]})}}(__.call(n.numerals,String)),A=n.percent===void 0?"%":n.percent+"",N=n.minus===void 0?"-":n.minus+"",B=n.nan===void 0?"NaN":n.nan+"";function Y(I){var H=(I=yf(I)).fill,W=I.align,J=I.sign,Q=I.symbol,Z=I.zero,at=I.width,nt=I.comma,dt=I.precision,Yt=I.trim,Rt=I.type;Rt==="n"?(nt=!0,Rt="g"):m_[Rt]||(dt===void 0&&(dt=12),Yt=!0,Rt="g"),(Z||H==="0"&&W==="=")&&(Z=!0,H="0",W="=");var Qt=Q==="$"?m:Q==="#"&&/[boxX]/.test(Rt)?"0"+Rt.toLowerCase():"",_e=Q==="$"?_:/[%p]/.test(Rt)?A:"",Ut=m_[Rt],se=/[defgprs%]/.test(Rt);function ft(Et){var ne,Xt,re,Oe=Qt,Ue=_e;if(Rt==="c")Ue=Ut(Et)+Ue,Et="";else{var gn=(Et=+Et)<0||1/Et<0;if(Et=isNaN(Et)?B:Ut(Math.abs(Et),dt),Yt&&(Et=function(Ke){t:for(var pr,Bn=Ke.length,Nn=1,ur=-1;Nn<Bn;++Nn)switch(Ke[Nn]){case".":ur=pr=Nn;break;case"0":ur===0&&(ur=Nn),pr=Nn;break;default:if(!+Ke[Nn])break t;ur>0&&(ur=0)}return ur>0?Ke.slice(0,ur)+Ke.slice(pr+1):Ke}(Et)),gn&&+Et==0&&J!=="+"&&(gn=!1),Oe=(gn?J==="("?J:N:J==="-"||J==="("?"":J)+Oe,Ue=(Rt==="s"?b_[8+Qg/3]:"")+Ue+(gn&&J==="("?")":""),se){for(ne=-1,Xt=Et.length;++ne<Xt;)if(48>(re=Et.charCodeAt(ne))||re>57){Ue=(re===46?E+Et.slice(ne+1):Et.slice(ne))+Ue,Et=Et.slice(0,ne);break}}}nt&&!Z&&(Et=f(Et,1/0));var Qn=Oe.length+Et.length+Ue.length,ir=Qn<at?new Array(at-Qn+1).join(H):"";switch(nt&&Z&&(Et=f(ir+Et,ir.length?at-Ue.length:1/0),ir=""),W){case"<":Et=Oe+Et+Ue+ir;break;case"=":Et=Oe+ir+Et+Ue;break;case"^":Et=ir.slice(0,Qn=ir.length>>1)+Oe+Et+Ue+ir.slice(Qn);break;default:Et=ir+Oe+Et+Ue}return x(Et)}return dt=dt===void 0?6:/[gprs]/.test(Rt)?Math.max(1,Math.min(21,dt)):Math.max(0,Math.min(20,dt)),ft.toString=function(){return I+""},ft}return{format:Y,formatPrefix:function(I,H){var W=Y(((I=yf(I)).type="f",I)),J=3*Math.max(-8,Math.min(8,Math.floor(Cu(H)/3))),Q=Math.pow(10,-J),Z=b_[8+J/3];return function(at){return W(Q*at)+Z}}}}function x_(n){return C0=w_(n),A0=C0.format,Jg=C0.formatPrefix,C0}function ty(n){return Math.max(0,-Cu(Math.abs(n)))}function k_(n,a){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(Cu(a)/3)))-Cu(Math.abs(n)))}function T_(n,a){return n=Math.abs(n),a=Math.abs(a)-n,Math.max(0,Cu(a)-Cu(n))+1}function Ac(){return new M0}function M0(){this.reset()}x_({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"}),M0.prototype={constructor:M0,reset:function(){this.s=this.t=0},add:function(n){E_(D0,n,this.t),E_(this,D0.s,this.s),this.s?this.t+=D0.t:this.s=D0.t},valueOf:function(){return this.s}};var D0=new M0;function E_(n,a,h){var f=n.s=a+h,m=f-a,_=f-m;n.t=a-_+(h-m)}var Fn=1e-6,mf=1e-12,nr=Math.PI,yi=nr/2,Bl=nr/4,Ir=2*nr,Yr=180/nr,wn=nr/180,Se=Math.abs,Mc=Math.atan,sa=Math.atan2,hn=Math.cos,ms=Math.ceil,S_=Math.exp,Il=Math.log,N0=Math.pow,an=Math.sin,xr=Math.sign||function(n){return n>0?1:n<0?-1:0},Ci=Math.sqrt,Ki=Math.tan;function Dc(n){return n>1?0:n<-1?nr:Math.acos(n)}function Na(n){return n>1?yi:n<-1?-yi:Math.asin(n)}function O0(n){return(n=an(n/2))*n}function kr(){}function Vs(n,a){n&&Rl.hasOwnProperty(n.type)&&Rl[n.type](n,a)}var Oa={Feature:function(n,a){Vs(n.geometry,a)},FeatureCollection:function(n,a){for(var h=n.features,f=-1,m=h.length;++f<m;)Vs(h[f].geometry,a)}},Rl={Sphere:function(n,a){a.sphere()},Point:function(n,a){n=n.coordinates,a.point(n[0],n[1],n[2])},MultiPoint:function(n,a){for(var h=n.coordinates,f=-1,m=h.length;++f<m;)n=h[f],a.point(n[0],n[1],n[2])},LineString:function(n,a){Fl(n.coordinates,a,0)},MultiLineString:function(n,a){for(var h=n.coordinates,f=-1,m=h.length;++f<m;)Fl(h[f],a,0)},Polygon:function(n,a){vf(n.coordinates,a)},MultiPolygon:function(n,a){for(var h=n.coordinates,f=-1,m=h.length;++f<m;)vf(h[f],a)},GeometryCollection:function(n,a){for(var h=n.geometries,f=-1,m=h.length;++f<m;)Vs(h[f],a)}};function Fl(n,a,h){var f,m=-1,_=n.length-h;for(a.lineStart();++m<_;)f=n[m],a.point(f[0],f[1],f[2]);a.lineEnd()}function vf(n,a){var h=-1,f=n.length;for(a.polygonStart();++h<f;)Fl(n[h],a,1);a.polygonEnd()}function Ho(n,a){n&&Oa.hasOwnProperty(n.type)?Oa[n.type](n,a):Vs(n,a)}var ey,C_,ny,ry,iy,L0=Ac(),B0=Ac(),lo={point:kr,lineStart:kr,lineEnd:kr,polygonStart:function(){L0.reset(),lo.lineStart=ay,lo.lineEnd=A_},polygonEnd:function(){var n=+L0;B0.add(n<0?Ir+n:n),this.lineStart=this.lineEnd=this.point=kr},sphere:function(){B0.add(Ir)}};function ay(){lo.point=M_}function A_(){So(ey,C_)}function M_(n,a){lo.point=So,ey=n,C_=a,ny=n*=wn,ry=hn(a=(a*=wn)/2+Bl),iy=an(a)}function So(n,a){var h=(n*=wn)-ny,f=h>=0?1:-1,m=f*h,_=hn(a=(a*=wn)/2+Bl),E=an(a),x=iy*E,A=ry*_+x*hn(m),N=x*f*an(m);L0.add(sa(N,A)),ny=n,ry=_,iy=E}function W5(n){return B0.reset(),Ho(n,lo),2*B0}function I0(n){return[sa(n[1],n[0]),Na(n[2])]}function Co(n){var a=n[0],h=n[1],f=hn(h);return[f*hn(a),f*an(a),an(h)]}function R0(n,a){return n[0]*a[0]+n[1]*a[1]+n[2]*a[2]}function Pl(n,a){return[n[1]*a[2]-n[2]*a[1],n[2]*a[0]-n[0]*a[2],n[0]*a[1]-n[1]*a[0]]}function Yl(n,a){n[0]+=a[0],n[1]+=a[1],n[2]+=a[2]}function Au(n,a){return[n[0]*a,n[1]*a,n[2]*a]}function _f(n){var a=Ci(n[0]*n[0]+n[1]*n[1]+n[2]*n[2]);n[0]/=a,n[1]/=a,n[2]/=a}var jr,La,ci,Va,Nc,oy,sy,Oc,Wo,vs,jl,bf,wf,Mu,zl,Ul,Ao,xf,F0,Gs,cy,P0,$l,Ba,ma,Ai,kf=Ac(),qo={point:Du,lineStart:uy,lineEnd:ly,polygonStart:function(){qo.point=Hl,qo.lineStart=N_,qo.lineEnd=Tf,kf.reset(),lo.polygonStart()},polygonEnd:function(){lo.polygonEnd(),qo.point=Du,qo.lineStart=uy,qo.lineEnd=ly,L0<0?(jr=-(ci=180),La=-(Va=90)):kf>Fn?Va=90:kf<-1e-6&&(La=-90),vs[0]=jr,vs[1]=ci},sphere:function(){jr=-(ci=180),La=-(Va=90)}};function Du(n,a){Wo.push(vs=[jr=n,ci=n]),a<La&&(La=a),a>Va&&(Va=a)}function D_(n,a){var h=Co([n*wn,a*wn]);if(Oc){var f=Pl(Oc,h),m=Pl([f[1],-f[0],0],f);_f(m),m=I0(m);var _,E=n-Nc,x=E>0?1:-1,A=m[0]*Yr*x,N=Se(E)>180;N^(x*Nc<A&&A<x*n)?(_=m[1]*Yr)>Va&&(Va=_):N^(x*Nc<(A=(A+360)%360-180)&&A<x*n)?(_=-m[1]*Yr)<La&&(La=_):(a<La&&(La=a),a>Va&&(Va=a)),N?n<Nc?Ia(jr,n)>Ia(jr,ci)&&(ci=n):Ia(n,ci)>Ia(jr,ci)&&(jr=n):ci>=jr?(n<jr&&(jr=n),n>ci&&(ci=n)):n>Nc?Ia(jr,n)>Ia(jr,ci)&&(ci=n):Ia(n,ci)>Ia(jr,ci)&&(jr=n)}else Wo.push(vs=[jr=n,ci=n]);a<La&&(La=a),a>Va&&(Va=a),Oc=h,Nc=n}function uy(){qo.point=D_}function ly(){vs[0]=jr,vs[1]=ci,qo.point=Du,Oc=null}function Hl(n,a){if(Oc){var h=n-Nc;kf.add(Se(h)>180?h+(h>0?360:-360):h)}else oy=n,sy=a;lo.point(n,a),D_(n,a)}function N_(){lo.lineStart()}function Tf(){Hl(oy,sy),lo.lineEnd(),Se(kf)>Fn&&(jr=-(ci=180)),vs[0]=jr,vs[1]=ci,Oc=null}function Ia(n,a){return(a-=n)<0?a+360:a}function hy(n,a){return n[0]-a[0]}function Wl(n,a){return n[0]<=n[1]?n[0]<=a&&a<=n[1]:a<n[0]||n[1]<a}function Ef(n){var a,h,f,m,_,E,x;if(Va=ci=-(jr=La=1/0),Wo=[],Ho(n,qo),h=Wo.length){for(Wo.sort(hy),a=1,_=[f=Wo[0]];a<h;++a)Wl(f,(m=Wo[a])[0])||Wl(f,m[1])?(Ia(f[0],m[1])>Ia(f[0],f[1])&&(f[1]=m[1]),Ia(m[0],f[1])>Ia(f[0],f[1])&&(f[0]=m[0])):_.push(f=m);for(E=-1/0,a=0,f=_[h=_.length-1];a<=h;f=m,++a)m=_[a],(x=Ia(f[1],m[0]))>E&&(E=x,jr=m[0],ci=f[1])}return Wo=vs=null,jr===1/0||La===1/0?[[NaN,NaN],[NaN,NaN]]:[[jr,La],[ci,Va]]}var ho={sphere:kr,point:Y0,lineStart:O_,lineEnd:L_,polygonStart:function(){ho.lineStart=Sf,ho.lineEnd=Cf},polygonEnd:function(){ho.lineStart=O_,ho.lineEnd=L_}};function Y0(n,a){n*=wn;var h=hn(a*=wn);mi(h*hn(n),h*an(n),an(a))}function mi(n,a,h){++jl,wf+=(n-wf)/jl,Mu+=(a-Mu)/jl,zl+=(h-zl)/jl}function O_(){ho.point=q5}function q5(n,a){n*=wn;var h=hn(a*=wn);Ba=h*hn(n),ma=h*an(n),Ai=an(a),ho.point=Tr,mi(Ba,ma,Ai)}function Tr(n,a){n*=wn;var h=hn(a*=wn),f=h*hn(n),m=h*an(n),_=an(a),E=sa(Ci((E=ma*_-Ai*m)*E+(E=Ai*f-Ba*_)*E+(E=Ba*m-ma*f)*E),Ba*f+ma*m+Ai*_);bf+=E,Ul+=E*(Ba+(Ba=f)),Ao+=E*(ma+(ma=m)),xf+=E*(Ai+(Ai=_)),mi(Ba,ma,Ai)}function L_(){ho.point=Y0}function Sf(){ho.point=V5}function Cf(){B_(P0,$l),ho.point=Y0}function V5(n,a){P0=n,$l=a,n*=wn,a*=wn,ho.point=B_;var h=hn(a);Ba=h*hn(n),ma=h*an(n),Ai=an(a),mi(Ba,ma,Ai)}function B_(n,a){n*=wn;var h=hn(a*=wn),f=h*hn(n),m=h*an(n),_=an(a),E=ma*_-Ai*m,x=Ai*f-Ba*_,A=Ba*m-ma*f,N=Ci(E*E+x*x+A*A),B=Na(N),Y=N&&-B/N;F0+=Y*E,Gs+=Y*x,cy+=Y*A,bf+=B,Ul+=B*(Ba+(Ba=f)),Ao+=B*(ma+(ma=m)),xf+=B*(Ai+(Ai=_)),mi(Ba,ma,Ai)}function G5(n){jl=bf=wf=Mu=zl=Ul=Ao=xf=F0=Gs=cy=0,Ho(n,ho);var a=F0,h=Gs,f=cy,m=a*a+h*h+f*f;return m<mf&&(a=Ul,h=Ao,f=xf,bf<Fn&&(a=wf,h=Mu,f=zl),(m=a*a+h*h+f*f)<mf)?[NaN,NaN]:[sa(h,a)*Yr,Na(f/Ci(m))*Yr]}function ql(n){return function(){return n}}function fy(n,a){function h(f,m){return f=n(f,m),a(f[0],f[1])}return n.invert&&a.invert&&(h.invert=function(f,m){return(f=a.invert(f,m))&&n.invert(f[0],f[1])}),h}function j0(n,a){return[Se(n)>nr?n+Math.round(-n/Ir)*Ir:n,a]}function z0(n,a,h){return(n%=Ir)?a||h?fy(R_(n),F_(a,h)):R_(n):a||h?F_(a,h):j0}function I_(n){return function(a,h){return[(a+=n)>nr?a-Ir:a<-nr?a+Ir:a,h]}}function R_(n){var a=I_(n);return a.invert=I_(-n),a}function F_(n,a){var h=hn(n),f=an(n),m=hn(a),_=an(a);function E(x,A){var N=hn(A),B=hn(x)*N,Y=an(x)*N,I=an(A),H=I*h+B*f;return[sa(Y*m-H*_,B*h-I*f),Na(H*m+Y*_)]}return E.invert=function(x,A){var N=hn(A),B=hn(x)*N,Y=an(x)*N,I=an(A),H=I*m-Y*_;return[sa(Y*m+I*_,B*h+H*f),Na(H*h-B*f)]},E}function dy(n){function a(h){return(h=n(h[0]*wn,h[1]*wn))[0]*=Yr,h[1]*=Yr,h}return n=z0(n[0]*wn,n[1]*wn,n.length>2?n[2]*wn:0),a.invert=function(h){return(h=n.invert(h[0]*wn,h[1]*wn))[0]*=Yr,h[1]*=Yr,h},a}function P_(n,a,h,f,m,_){if(h){var E=hn(a),x=an(a),A=f*h;m==null?(m=a+f*Ir,_=a-A/2):(m=py(E,m),_=py(E,_),(f>0?m<_:m>_)&&(m+=f*Ir));for(var N,B=m;f>0?B>_:B<_;B-=A)N=I0([E,-x*hn(B),-x*an(B)]),n.point(N[0],N[1])}}function py(n,a){(a=Co(a))[0]-=n,_f(a);var h=Dc(-a[1]);return((-a[2]<0?-h:h)+Ir-Fn)%Ir}function Z5(){var n,a,h=ql([0,0]),f=ql(90),m=ql(6),_={point:function(x,A){n.push(x=a(x,A)),x[0]*=Yr,x[1]*=Yr}};function E(){var x=h.apply(this,arguments),A=f.apply(this,arguments)*wn,N=m.apply(this,arguments)*wn;return n=[],a=z0(-x[0]*wn,-x[1]*wn,0).invert,P_(_,A,N,1),x={type:"Polygon",coordinates:[n]},n=a=null,x}return E.center=function(x){return arguments.length?(h=typeof x=="function"?x:ql([+x[0],+x[1]]),E):h},E.radius=function(x){return arguments.length?(f=typeof x=="function"?x:ql(+x),E):f},E.precision=function(x){return arguments.length?(m=typeof x=="function"?x:ql(+x),E):m},E}function Y_(){var n,a=[];return{point:function(h,f,m){n.push([h,f,m])},lineStart:function(){a.push(n=[])},lineEnd:kr,rejoin:function(){a.length>1&&a.push(a.pop().concat(a.shift()))},result:function(){var h=a;return a=[],n=null,h}}}function U0(n,a){return Se(n[0]-a[0])<Fn&&Se(n[1]-a[1])<Fn}function $0(n,a,h,f){this.x=n,this.z=a,this.o=h,this.e=f,this.v=!1,this.n=this.p=null}function j_(n,a,h,f,m){var _,E,x=[],A=[];if(n.forEach(function(W){if(!((J=W.length-1)<=0)){var J,Q,Z=W[0],at=W[J];if(U0(Z,at)){if(!Z[2]&&!at[2]){for(m.lineStart(),_=0;_<J;++_)m.point((Z=W[_])[0],Z[1]);return void m.lineEnd()}at[0]+=2e-6}x.push(Q=new $0(Z,W,null,!0)),A.push(Q.o=new $0(Z,null,Q,!1)),x.push(Q=new $0(at,W,null,!1)),A.push(Q.o=new $0(at,null,Q,!0))}}),x.length){for(A.sort(a),z_(x),z_(A),_=0,E=A.length;_<E;++_)A[_].e=h=!h;for(var N,B,Y=x[0];;){for(var I=Y,H=!0;I.v;)if((I=I.n)===Y)return;N=I.z,m.lineStart();do{if(I.v=I.o.v=!0,I.e){if(H)for(_=0,E=N.length;_<E;++_)m.point((B=N[_])[0],B[1]);else f(I.x,I.n.x,1,m);I=I.n}else{if(H)for(N=I.p.z,_=N.length-1;_>=0;--_)m.point((B=N[_])[0],B[1]);else f(I.x,I.p.x,-1,m);I=I.p}N=(I=I.o).z,H=!H}while(!I.v);m.lineEnd()}}}function z_(n){if(a=n.length){for(var a,h,f=0,m=n[0];++f<a;)m.n=h=n[f],h.p=m,m=h;m.n=h=n[0],h.p=m}}j0.invert=j0;var gy=Ac();function H0(n){return Se(n[0])<=nr?n[0]:xr(n[0])*((Se(n[0])+nr)%Ir-nr)}function U_(n,a){var h=H0(a),f=a[1],m=an(f),_=[an(h),-hn(h),0],E=0,x=0;gy.reset(),m===1?f=yi+Fn:m===-1&&(f=-yi-Fn);for(var A=0,N=n.length;A<N;++A)if(Y=(B=n[A]).length)for(var B,Y,I=B[Y-1],H=H0(I),W=I[1]/2+Bl,J=an(W),Q=hn(W),Z=0;Z<Y;++Z,H=nt,J=Yt,Q=Rt,I=at){var at=B[Z],nt=H0(at),dt=at[1]/2+Bl,Yt=an(dt),Rt=hn(dt),Qt=nt-H,_e=Qt>=0?1:-1,Ut=_e*Qt,se=Ut>nr,ft=J*Yt;if(gy.add(sa(ft*_e*an(Ut),Q*Rt+ft*hn(Ut))),E+=se?Qt+_e*Ir:Qt,se^H>=h^nt>=h){var Et=Pl(Co(I),Co(at));_f(Et);var ne=Pl(_,Et);_f(ne);var Xt=(se^Qt>=0?-1:1)*Na(ne[2]);(f>Xt||f===Xt&&(Et[0]||Et[1]))&&(x+=se^Qt>=0?1:-1)}}return(E<-1e-6||E<Fn&&gy<-1e-6)^1&x}function $_(n,a,h,f){return function(m){var _,E,x,A=a(m),N=Y_(),B=a(N),Y=!1,I={point:H,lineStart:J,lineEnd:Q,polygonStart:function(){I.point=Z,I.lineStart=at,I.lineEnd=nt,E=[],_=[]},polygonEnd:function(){I.point=H,I.lineStart=J,I.lineEnd=Q,E=le(E);var dt=U_(_,f);E.length?(Y||(m.polygonStart(),Y=!0),j_(E,H_,dt,h,m)):dt&&(Y||(m.polygonStart(),Y=!0),m.lineStart(),h(null,null,1,m),m.lineEnd()),Y&&(m.polygonEnd(),Y=!1),E=_=null},sphere:function(){m.polygonStart(),m.lineStart(),h(null,null,1,m),m.lineEnd(),m.polygonEnd()}};function H(dt,Yt){n(dt,Yt)&&m.point(dt,Yt)}function W(dt,Yt){A.point(dt,Yt)}function J(){I.point=W,A.lineStart()}function Q(){I.point=H,A.lineEnd()}function Z(dt,Yt){x.push([dt,Yt]),B.point(dt,Yt)}function at(){B.lineStart(),x=[]}function nt(){Z(x[0][0],x[0][1]),B.lineEnd();var dt,Yt,Rt,Qt,_e=B.clean(),Ut=N.result(),se=Ut.length;if(x.pop(),_.push(x),x=null,se)if(1&_e){if((Yt=(Rt=Ut[0]).length-1)>0){for(Y||(m.polygonStart(),Y=!0),m.lineStart(),dt=0;dt<Yt;++dt)m.point((Qt=Rt[dt])[0],Qt[1]);m.lineEnd()}}else se>1&&2&_e&&Ut.push(Ut.pop().concat(Ut.shift())),E.push(Ut.filter(X5))}return I}}function X5(n){return n.length>1}function H_(n,a){return((n=n.x)[0]<0?n[1]-yi-Fn:yi-n[1])-((a=a.x)[0]<0?a[1]-yi-Fn:yi-a[1])}const yy=$_(function(){return!0},function(n){var a,h=NaN,f=NaN,m=NaN;return{lineStart:function(){n.lineStart(),a=1},point:function(_,E){var x=_>0?nr:-nr,A=Se(_-h);Se(A-nr)<Fn?(n.point(h,f=(f+E)/2>0?yi:-yi),n.point(m,f),n.lineEnd(),n.lineStart(),n.point(x,f),n.point(_,f),a=0):m!==x&&A>=nr&&(Se(h-m)<Fn&&(h-=m*Fn),Se(_-x)<Fn&&(_-=x*Fn),f=function(N,B,Y,I){var H,W,J=an(N-Y);return Se(J)>Fn?Mc((an(B)*(W=hn(I))*an(Y)-an(I)*(H=hn(B))*an(N))/(H*W*J)):(B+I)/2}(h,f,_,E),n.point(m,f),n.lineEnd(),n.lineStart(),n.point(x,f),a=0),n.point(h=_,f=E),m=x},lineEnd:function(){n.lineEnd(),h=f=NaN},clean:function(){return 2-a}}},function(n,a,h,f){var m;if(n==null)m=h*yi,f.point(-nr,m),f.point(0,m),f.point(nr,m),f.point(nr,0),f.point(nr,-m),f.point(0,-m),f.point(-nr,-m),f.point(-nr,0),f.point(-nr,m);else if(Se(n[0]-a[0])>Fn){var _=n[0]<a[0]?nr:-nr;m=h*_/2,f.point(-_,m),f.point(0,m),f.point(_,m)}else f.point(a[0],a[1])},[-nr,-yi]);function W_(n){var a=hn(n),h=6*wn,f=a>0,m=Se(a)>Fn;function _(A,N){return hn(A)*hn(N)>a}function E(A,N,B){var Y=[1,0,0],I=Pl(Co(A),Co(N)),H=R0(I,I),W=I[0],J=H-W*W;if(!J)return!B&&A;var Q=a*H/J,Z=-a*W/J,at=Pl(Y,I),nt=Au(Y,Q);Yl(nt,Au(I,Z));var dt=at,Yt=R0(nt,dt),Rt=R0(dt,dt),Qt=Yt*Yt-Rt*(R0(nt,nt)-1);if(!(Qt<0)){var _e=Ci(Qt),Ut=Au(dt,(-Yt-_e)/Rt);if(Yl(Ut,nt),Ut=I0(Ut),!B)return Ut;var se,ft=A[0],Et=N[0],ne=A[1],Xt=N[1];Et<ft&&(se=ft,ft=Et,Et=se);var re=Et-ft,Oe=Se(re-nr)<Fn;if(!Oe&&Xt<ne&&(se=ne,ne=Xt,Xt=se),Oe||re<Fn?Oe?ne+Xt>0^Ut[1]<(Se(Ut[0]-ft)<Fn?ne:Xt):ne<=Ut[1]&&Ut[1]<=Xt:re>nr^(ft<=Ut[0]&&Ut[0]<=Et)){var Ue=Au(dt,(-Yt+_e)/Rt);return Yl(Ue,nt),[Ut,I0(Ue)]}}}function x(A,N){var B=f?n:nr-n,Y=0;return A<-B?Y|=1:A>B&&(Y|=2),N<-B?Y|=4:N>B&&(Y|=8),Y}return $_(_,function(A){var N,B,Y,I,H;return{lineStart:function(){I=Y=!1,H=1},point:function(W,J){var Q,Z=[W,J],at=_(W,J),nt=f?at?0:x(W,J):at?x(W+(W<0?nr:-nr),J):0;if(!N&&(I=Y=at)&&A.lineStart(),at!==Y&&(!(Q=E(N,Z))||U0(N,Q)||U0(Z,Q))&&(Z[2]=1),at!==Y)H=0,at?(A.lineStart(),Q=E(Z,N),A.point(Q[0],Q[1])):(Q=E(N,Z),A.point(Q[0],Q[1],2),A.lineEnd()),N=Q;else if(m&&N&&f^at){var dt;nt&B||!(dt=E(Z,N,!0))||(H=0,f?(A.lineStart(),A.point(dt[0][0],dt[0][1]),A.point(dt[1][0],dt[1][1]),A.lineEnd()):(A.point(dt[1][0],dt[1][1]),A.lineEnd(),A.lineStart(),A.point(dt[0][0],dt[0][1],3)))}!at||N&&U0(N,Z)||A.point(Z[0],Z[1]),N=Z,Y=at,B=nt},lineEnd:function(){Y&&A.lineEnd(),N=null},clean:function(){return H|(I&&Y)<<1}}},function(A,N,B,Y){P_(Y,n,h,B,A,N)},f?[0,-n]:[-nr,n-nr])}var Af=1e9,W0=-Af;function q0(n,a,h,f){function m(N,B){return n<=N&&N<=h&&a<=B&&B<=f}function _(N,B,Y,I){var H=0,W=0;if(N==null||(H=E(N,Y))!==(W=E(B,Y))||A(N,B)<0^Y>0)do I.point(H===0||H===3?n:h,H>1?f:a);while((H=(H+Y+4)%4)!==W);else I.point(B[0],B[1])}function E(N,B){return Se(N[0]-n)<Fn?B>0?0:3:Se(N[0]-h)<Fn?B>0?2:1:Se(N[1]-a)<Fn?B>0?1:0:B>0?3:2}function x(N,B){return A(N.x,B.x)}function A(N,B){var Y=E(N,1),I=E(B,1);return Y!==I?Y-I:Y===0?B[1]-N[1]:Y===1?N[0]-B[0]:Y===2?N[1]-B[1]:B[0]-N[0]}return function(N){var B,Y,I,H,W,J,Q,Z,at,nt,dt,Yt=N,Rt=Y_(),Qt={point:_e,lineStart:function(){Qt.point=Ut,Y&&Y.push(I=[]),nt=!0,at=!1,Q=Z=NaN},lineEnd:function(){B&&(Ut(H,W),J&&at&&Rt.rejoin(),B.push(Rt.result())),Qt.point=_e,at&&Yt.lineEnd()},polygonStart:function(){Yt=Rt,B=[],Y=[],dt=!0},polygonEnd:function(){var se=function(){for(var ne=0,Xt=0,re=Y.length;Xt<re;++Xt)for(var Oe,Ue,gn=Y[Xt],Qn=1,ir=gn.length,Ke=gn[0],pr=Ke[0],Bn=Ke[1];Qn<ir;++Qn)Oe=pr,Ue=Bn,pr=(Ke=gn[Qn])[0],Bn=Ke[1],Ue<=f?Bn>f&&(pr-Oe)*(f-Ue)>(Bn-Ue)*(n-Oe)&&++ne:Bn<=f&&(pr-Oe)*(f-Ue)<(Bn-Ue)*(n-Oe)&&--ne;return ne}(),ft=dt&&se,Et=(B=le(B)).length;(ft||Et)&&(N.polygonStart(),ft&&(N.lineStart(),_(null,null,1,N),N.lineEnd()),Et&&j_(B,x,se,_,N),N.polygonEnd()),Yt=N,B=Y=I=null}};function _e(se,ft){m(se,ft)&&Yt.point(se,ft)}function Ut(se,ft){var Et=m(se,ft);if(Y&&I.push([se,ft]),nt)H=se,W=ft,J=Et,nt=!1,Et&&(Yt.lineStart(),Yt.point(se,ft));else if(Et&&at)Yt.point(se,ft);else{var ne=[Q=Math.max(W0,Math.min(Af,Q)),Z=Math.max(W0,Math.min(Af,Z))],Xt=[se=Math.max(W0,Math.min(Af,se)),ft=Math.max(W0,Math.min(Af,ft))];(function(re,Oe,Ue,gn,Qn,ir){var Ke,pr=re[0],Bn=re[1],Nn=0,ur=1,na=Oe[0]-pr,Ri=Oe[1]-Bn;if(Ke=Ue-pr,na||!(Ke>0)){if(Ke/=na,na<0){if(Ke<Nn)return;Ke<ur&&(ur=Ke)}else if(na>0){if(Ke>ur)return;Ke>Nn&&(Nn=Ke)}if(Ke=Qn-pr,na||!(Ke<0)){if(Ke/=na,na<0){if(Ke>ur)return;Ke>Nn&&(Nn=Ke)}else if(na>0){if(Ke<Nn)return;Ke<ur&&(ur=Ke)}if(Ke=gn-Bn,Ri||!(Ke>0)){if(Ke/=Ri,Ri<0){if(Ke<Nn)return;Ke<ur&&(ur=Ke)}else if(Ri>0){if(Ke>ur)return;Ke>Nn&&(Nn=Ke)}if(Ke=ir-Bn,Ri||!(Ke<0)){if(Ke/=Ri,Ri<0){if(Ke>ur)return;Ke>Nn&&(Nn=Ke)}else if(Ri>0){if(Ke<Nn)return;Ke<ur&&(ur=Ke)}return Nn>0&&(re[0]=pr+Nn*na,re[1]=Bn+Nn*Ri),ur<1&&(Oe[0]=pr+ur*na,Oe[1]=Bn+ur*Ri),!0}}}}})(ne,Xt,n,a,h,f)?(at||(Yt.lineStart(),Yt.point(ne[0],ne[1])),Yt.point(Xt[0],Xt[1]),Et||Yt.lineEnd(),dt=!1):Et&&(Yt.lineStart(),Yt.point(se,ft),dt=!1)}Q=se,Z=ft,at=Et}return Qt}}function K5(){var n,a,h,f=0,m=0,_=960,E=500;return h={stream:function(x){return n&&a===x?n:n=q0(f,m,_,E)(a=x)},extent:function(x){return arguments.length?(f=+x[0][0],m=+x[0][1],_=+x[1][0],E=+x[1][1],n=a=null,h):[[f,m],[_,E]]}}}var V0,G0,Z0,my=Ac(),Vl={sphere:kr,point:kr,lineStart:function(){Vl.point=J5,Vl.lineEnd=Q5},lineEnd:kr,polygonStart:kr,polygonEnd:kr};function Q5(){Vl.point=Vl.lineEnd=kr}function J5(n,a){V0=n*=wn,G0=an(a*=wn),Z0=hn(a),Vl.point=tx}function tx(n,a){n*=wn;var h=an(a*=wn),f=hn(a),m=Se(n-V0),_=hn(m),E=f*an(m),x=Z0*h-G0*f*_,A=G0*h+Z0*f*_;my.add(sa(Ci(E*E+x*x),A)),V0=n,G0=h,Z0=f}function q_(n){return my.reset(),Ho(n,Vl),+my}var X0=[null,null],ex={type:"LineString",coordinates:X0};function K0(n,a){return X0[0]=n,X0[1]=a,q_(ex)}var V_={Feature:function(n,a){return Q0(n.geometry,a)},FeatureCollection:function(n,a){for(var h=n.features,f=-1,m=h.length;++f<m;)if(Q0(h[f].geometry,a))return!0;return!1}},vy={Sphere:function(){return!0},Point:function(n,a){return G_(n.coordinates,a)},MultiPoint:function(n,a){for(var h=n.coordinates,f=-1,m=h.length;++f<m;)if(G_(h[f],a))return!0;return!1},LineString:function(n,a){return Z_(n.coordinates,a)},MultiLineString:function(n,a){for(var h=n.coordinates,f=-1,m=h.length;++f<m;)if(Z_(h[f],a))return!0;return!1},Polygon:function(n,a){return X_(n.coordinates,a)},MultiPolygon:function(n,a){for(var h=n.coordinates,f=-1,m=h.length;++f<m;)if(X_(h[f],a))return!0;return!1},GeometryCollection:function(n,a){for(var h=n.geometries,f=-1,m=h.length;++f<m;)if(Q0(h[f],a))return!0;return!1}};function Q0(n,a){return!(!n||!vy.hasOwnProperty(n.type))&&vy[n.type](n,a)}function G_(n,a){return K0(n,a)===0}function Z_(n,a){for(var h,f,m,_=0,E=n.length;_<E;_++){if((f=K0(n[_],a))===0||_>0&&(m=K0(n[_],n[_-1]))>0&&h<=m&&f<=m&&(h+f-m)*(1-Math.pow((h-f)/m,2))<mf*m)return!0;h=f}return!1}function X_(n,a){return!!U_(n.map(nx),K_(a))}function nx(n){return(n=n.map(K_)).pop(),n}function K_(n){return[n[0]*wn,n[1]*wn]}function Q_(n,a){return(n&&V_.hasOwnProperty(n.type)?V_[n.type]:Q0)(n,a)}function J_(n,a,h){var f=et(n,a-Fn,h).concat(a);return function(m){return f.map(function(_){return[m,_]})}}function tb(n,a,h){var f=et(n,a-Fn,h).concat(a);return function(m){return f.map(function(_){return[_,m]})}}function eb(){var n,a,h,f,m,_,E,x,A,N,B,Y,I=10,H=I,W=90,J=360,Q=2.5;function Z(){return{type:"MultiLineString",coordinates:at()}}function at(){return et(ms(f/W)*W,h,W).map(B).concat(et(ms(x/J)*J,E,J).map(Y)).concat(et(ms(a/I)*I,n,I).filter(function(nt){return Se(nt%W)>Fn}).map(A)).concat(et(ms(_/H)*H,m,H).filter(function(nt){return Se(nt%J)>Fn}).map(N))}return Z.lines=function(){return at().map(function(nt){return{type:"LineString",coordinates:nt}})},Z.outline=function(){return{type:"Polygon",coordinates:[B(f).concat(Y(E).slice(1),B(h).reverse().slice(1),Y(x).reverse().slice(1))]}},Z.extent=function(nt){return arguments.length?Z.extentMajor(nt).extentMinor(nt):Z.extentMinor()},Z.extentMajor=function(nt){return arguments.length?(f=+nt[0][0],h=+nt[1][0],x=+nt[0][1],E=+nt[1][1],f>h&&(nt=f,f=h,h=nt),x>E&&(nt=x,x=E,E=nt),Z.precision(Q)):[[f,x],[h,E]]},Z.extentMinor=function(nt){return arguments.length?(a=+nt[0][0],n=+nt[1][0],_=+nt[0][1],m=+nt[1][1],a>n&&(nt=a,a=n,n=nt),_>m&&(nt=_,_=m,m=nt),Z.precision(Q)):[[a,_],[n,m]]},Z.step=function(nt){return arguments.length?Z.stepMajor(nt).stepMinor(nt):Z.stepMinor()},Z.stepMajor=function(nt){return arguments.length?(W=+nt[0],J=+nt[1],Z):[W,J]},Z.stepMinor=function(nt){return arguments.length?(I=+nt[0],H=+nt[1],Z):[I,H]},Z.precision=function(nt){return arguments.length?(Q=+nt,A=J_(_,m,90),N=tb(a,n,Q),B=J_(x,E,90),Y=tb(f,h,Q),Z):Q},Z.extentMajor([[-180,-89.999999],[180,89.999999]]).extentMinor([[-180,-80.000001],[180,80.000001]])}function rx(){return eb()()}function ix(n,a){var h=n[0]*wn,f=n[1]*wn,m=a[0]*wn,_=a[1]*wn,E=hn(f),x=an(f),A=hn(_),N=an(_),B=E*hn(h),Y=E*an(h),I=A*hn(m),H=A*an(m),W=2*Na(Ci(O0(_-f)+E*A*O0(m-h))),J=an(W),Q=W?function(Z){var at=an(Z*=W)/J,nt=an(W-Z)/J,dt=nt*B+at*I,Yt=nt*Y+at*H,Rt=nt*x+at*N;return[sa(Yt,dt)*Yr,sa(Rt,Ci(dt*dt+Yt*Yt))*Yr]}:function(){return[h*Yr,f*Yr]};return Q.distance=W,Q}function Mf(n){return n}var nb,rb,J0,t1,e1=Ac(),_y=Ac(),Zs={point:kr,lineStart:kr,lineEnd:kr,polygonStart:function(){Zs.lineStart=n1,Zs.lineEnd=ab},polygonEnd:function(){Zs.lineStart=Zs.lineEnd=Zs.point=kr,e1.add(Se(_y)),_y.reset()},result:function(){var n=e1/2;return e1.reset(),n}};function n1(){Zs.point=ax}function ax(n,a){Zs.point=ib,nb=J0=n,rb=t1=a}function ib(n,a){_y.add(t1*n-J0*a),J0=n,t1=a}function ab(){ib(nb,rb)}const ob=Zs;var Xs=1/0,Lc=Xs,_s=-Xs,Bc=_s,Df={point:function(n,a){n<Xs&&(Xs=n),n>_s&&(_s=n),a<Lc&&(Lc=a),a>Bc&&(Bc=a)},lineStart:kr,lineEnd:kr,polygonStart:kr,polygonEnd:kr,result:function(){var n=[[Xs,Lc],[_s,Bc]];return _s=Bc=-(Lc=Xs=1/0),n}};const Nu=Df;var Ic,Nf,Ga,Vo,Of=0,by=0,Rc=0,Lf=0,Bf=0,Gl=0,If=0,r1=0,Rf=0,Go={point:bs,lineStart:i1,lineEnd:Ks,polygonStart:function(){Go.lineStart=a1,Go.lineEnd=sb},polygonEnd:function(){Go.point=bs,Go.lineStart=i1,Go.lineEnd=Ks},result:function(){var n=Rf?[If/Rf,r1/Rf]:Gl?[Lf/Gl,Bf/Gl]:Rc?[Of/Rc,by/Rc]:[NaN,NaN];return Of=by=Rc=Lf=Bf=Gl=If=r1=Rf=0,n}};function bs(n,a){Of+=n,by+=a,++Rc}function i1(){Go.point=ws}function ws(n,a){Go.point=Zo,bs(Ga=n,Vo=a)}function Zo(n,a){var h=n-Ga,f=a-Vo,m=Ci(h*h+f*f);Lf+=m*(Ga+n)/2,Bf+=m*(Vo+a)/2,Gl+=m,bs(Ga=n,Vo=a)}function Ks(){Go.point=bs}function a1(){Go.point=wy}function sb(){xy(Ic,Nf)}function wy(n,a){Go.point=xy,bs(Ic=Ga=n,Nf=Vo=a)}function xy(n,a){var h=n-Ga,f=a-Vo,m=Ci(h*h+f*f);Lf+=m*(Ga+n)/2,Bf+=m*(Vo+a)/2,Gl+=m,If+=(m=Vo*n-Ga*a)*(Ga+n),r1+=m*(Vo+a),Rf+=3*m,bs(Ga=n,Vo=a)}const ky=Go;function cb(n){this._context=n}cb.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,a){switch(this._point){case 0:this._context.moveTo(n,a),this._point=1;break;case 1:this._context.lineTo(n,a);break;default:this._context.moveTo(n+this._radius,a),this._context.arc(n,a,this._radius,0,Ir)}},result:kr};var Ty,ub,lb,Ou,Zl,Ff=Ac(),Xl={point:kr,lineStart:function(){Xl.point=ox},lineEnd:function(){Ty&&Ey(ub,lb),Xl.point=kr},polygonStart:function(){Ty=!0},polygonEnd:function(){Ty=null},result:function(){var n=+Ff;return Ff.reset(),n}};function ox(n,a){Xl.point=Ey,ub=Ou=n,lb=Zl=a}function Ey(n,a){Ou-=n,Zl-=a,Ff.add(Ci(Ou*Ou+Zl*Zl)),Ou=n,Zl=a}const hb=Xl;function fb(){this._string=[]}function db(n){return"m0,"+n+"a"+n+","+n+" 0 1,1 0,"+-2*n+"a"+n+","+n+" 0 1,1 0,"+2*n+"z"}function sx(n,a){var h,f,m=4.5;function _(E){return E&&(typeof m=="function"&&f.pointRadius(+m.apply(this,arguments)),Ho(E,h(f))),f.result()}return _.area=function(E){return Ho(E,h(ob)),ob.result()},_.measure=function(E){return Ho(E,h(hb)),hb.result()},_.bounds=function(E){return Ho(E,h(Nu)),Nu.result()},_.centroid=function(E){return Ho(E,h(ky)),ky.result()},_.projection=function(E){return arguments.length?(h=E==null?(n=null,Mf):(n=E).stream,_):n},_.context=function(E){return arguments.length?(f=E==null?(a=null,new fb):new cb(a=E),typeof m!="function"&&f.pointRadius(m),_):a},_.pointRadius=function(E){return arguments.length?(m=typeof E=="function"?E:(f.pointRadius(+E),+E),_):m},_.projection(n).context(a)}function cx(n){return{stream:Pf(n)}}function Pf(n){return function(a){var h=new Sy;for(var f in n)h[f]=n[f];return h.stream=a,h}}function Sy(){}function Cy(n,a,h){var f=n.clipExtent&&n.clipExtent();return n.scale(150).translate([0,0]),f!=null&&n.clipExtent(null),Ho(h,n.stream(Nu)),a(Nu.result()),f!=null&&n.clipExtent(f),n}function o1(n,a,h){return Cy(n,function(f){var m=a[1][0]-a[0][0],_=a[1][1]-a[0][1],E=Math.min(m/(f[1][0]-f[0][0]),_/(f[1][1]-f[0][1])),x=+a[0][0]+(m-E*(f[1][0]+f[0][0]))/2,A=+a[0][1]+(_-E*(f[1][1]+f[0][1]))/2;n.scale(150*E).translate([x,A])},h)}function Ay(n,a,h){return o1(n,[[0,0],a],h)}function My(n,a,h){return Cy(n,function(f){var m=+a,_=m/(f[1][0]-f[0][0]),E=(m-_*(f[1][0]+f[0][0]))/2,x=-_*f[0][1];n.scale(150*_).translate([E,x])},h)}function Dy(n,a,h){return Cy(n,function(f){var m=+a,_=m/(f[1][1]-f[0][1]),E=-_*f[0][0],x=(m-_*(f[1][1]+f[0][1]))/2;n.scale(150*_).translate([E,x])},h)}fb.prototype={_radius:4.5,_circle:db(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,a){switch(this._point){case 0:this._string.push("M",n,",",a),this._point=1;break;case 1:this._string.push("L",n,",",a);break;default:this._circle==null&&(this._circle=db(this._radius)),this._string.push("M",n,",",a,this._circle)}},result:function(){if(this._string.length){var n=this._string.join("");return this._string=[],n}return null}},Sy.prototype={constructor:Sy,point:function(n,a){this.stream.point(n,a)},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 ux=hn(30*wn);function pb(n,a){return+a?function(h,f){function m(_,E,x,A,N,B,Y,I,H,W,J,Q,Z,at){var nt=Y-_,dt=I-E,Yt=nt*nt+dt*dt;if(Yt>4*f&&Z--){var Rt=A+W,Qt=N+J,_e=B+Q,Ut=Ci(Rt*Rt+Qt*Qt+_e*_e),se=Na(_e/=Ut),ft=Se(Se(_e)-1)<Fn||Se(x-H)<Fn?(x+H)/2:sa(Qt,Rt),Et=h(ft,se),ne=Et[0],Xt=Et[1],re=ne-_,Oe=Xt-E,Ue=dt*re-nt*Oe;(Ue*Ue/Yt>f||Se((nt*re+dt*Oe)/Yt-.5)>.3||A*W+N*J+B*Q<ux)&&(m(_,E,x,A,N,B,ne,Xt,ft,Rt/=Ut,Qt/=Ut,_e,Z,at),at.point(ne,Xt),m(ne,Xt,ft,Rt,Qt,_e,Y,I,H,W,J,Q,Z,at))}}return function(_){var E,x,A,N,B,Y,I,H,W,J,Q,Z,at={point:nt,lineStart:dt,lineEnd:Rt,polygonStart:function(){_.polygonStart(),at.lineStart=Qt},polygonEnd:function(){_.polygonEnd(),at.lineStart=dt}};function nt(se,ft){se=h(se,ft),_.point(se[0],se[1])}function dt(){H=NaN,at.point=Yt,_.lineStart()}function Yt(se,ft){var Et=Co([se,ft]),ne=h(se,ft);m(H,W,I,J,Q,Z,H=ne[0],W=ne[1],I=se,J=Et[0],Q=Et[1],Z=Et[2],16,_),_.point(H,W)}function Rt(){at.point=nt,_.lineEnd()}function Qt(){dt(),at.point=_e,at.lineEnd=Ut}function _e(se,ft){Yt(E=se,ft),x=H,A=W,N=J,B=Q,Y=Z,at.point=Yt}function Ut(){m(H,W,I,J,Q,Z,x,A,E,N,B,Y,16,_),at.lineEnd=Rt,Rt()}return at}}(n,a):function(h){return Pf({point:function(f,m){f=h(f,m),this.stream.point(f[0],f[1])}})}(n)}var lx=Pf({point:function(n,a){this.stream.point(n*wn,a*wn)}});function hx(n,a,h,f,m){function _(E,x){return[a+n*(E*=f),h-n*(x*=m)]}return _.invert=function(E,x){return[(E-a)/n*f,(h-x)/n*m]},_}function gb(n,a,h,f,m,_){var E=hn(_),x=an(_),A=E*n,N=x*n,B=E/n,Y=x/n,I=(x*h-E*a)/n,H=(x*a+E*h)/n;function W(J,Q){return[A*(J*=f)-N*(Q*=m)+a,h-N*J-A*Q]}return W.invert=function(J,Q){return[f*(B*J-Y*Q+I),m*(H-Y*J-B*Q)]},W}function Xo(n){return Ny(function(){return n})()}function Ny(n){var a,h,f,m,_,E,x,A,N,B,Y=150,I=480,H=250,W=0,J=0,Q=0,Z=0,at=0,nt=0,dt=1,Yt=1,Rt=null,Qt=yy,_e=null,Ut=Mf,se=.5;function ft(re){return A(re[0]*wn,re[1]*wn)}function Et(re){return(re=A.invert(re[0],re[1]))&&[re[0]*Yr,re[1]*Yr]}function ne(){var re=gb(Y,0,0,dt,Yt,nt).apply(null,a(W,J)),Oe=(nt?gb:hx)(Y,I-re[0],H-re[1],dt,Yt,nt);return h=z0(Q,Z,at),x=fy(a,Oe),A=fy(h,x),E=pb(x,se),Xt()}function Xt(){return N=B=null,ft}return ft.stream=function(re){return N&&B===re?N:N=lx(function(Oe){return Pf({point:function(Ue,gn){var Qn=Oe(Ue,gn);return this.stream.point(Qn[0],Qn[1])}})}(h)(Qt(E(Ut(B=re)))))},ft.preclip=function(re){return arguments.length?(Qt=re,Rt=void 0,Xt()):Qt},ft.postclip=function(re){return arguments.length?(Ut=re,_e=f=m=_=null,Xt()):Ut},ft.clipAngle=function(re){return arguments.length?(Qt=+re?W_(Rt=re*wn):(Rt=null,yy),Xt()):Rt*Yr},ft.clipExtent=function(re){return arguments.length?(Ut=re==null?(_e=f=m=_=null,Mf):q0(_e=+re[0][0],f=+re[0][1],m=+re[1][0],_=+re[1][1]),Xt()):_e==null?null:[[_e,f],[m,_]]},ft.scale=function(re){return arguments.length?(Y=+re,ne()):Y},ft.translate=function(re){return arguments.length?(I=+re[0],H=+re[1],ne()):[I,H]},ft.center=function(re){return arguments.length?(W=re[0]%360*wn,J=re[1]%360*wn,ne()):[W*Yr,J*Yr]},ft.rotate=function(re){return arguments.length?(Q=re[0]%360*wn,Z=re[1]%360*wn,at=re.length>2?re[2]%360*wn:0,ne()):[Q*Yr,Z*Yr,at*Yr]},ft.angle=function(re){return arguments.length?(nt=re%360*wn,ne()):nt*Yr},ft.reflectX=function(re){return arguments.length?(dt=re?-1:1,ne()):dt<0},ft.reflectY=function(re){return arguments.length?(Yt=re?-1:1,ne()):Yt<0},ft.precision=function(re){return arguments.length?(E=pb(x,se=re*re),Xt()):Ci(se)},ft.fitExtent=function(re,Oe){return o1(ft,re,Oe)},ft.fitSize=function(re,Oe){return Ay(ft,re,Oe)},ft.fitWidth=function(re,Oe){return My(ft,re,Oe)},ft.fitHeight=function(re,Oe){return Dy(ft,re,Oe)},function(){return a=n.apply(this,arguments),ft.invert=a.invert&&Et,ne()}}function Oy(n){var a=0,h=nr/3,f=Ny(n),m=f(a,h);return m.parallels=function(_){return arguments.length?f(a=_[0]*wn,h=_[1]*wn):[a*Yr,h*Yr]},m}function yb(n,a){var h=an(n),f=(h+an(a))/2;if(Se(f)<Fn)return function(x){var A=hn(x);function N(B,Y){return[B*A,an(Y)/A]}return N.invert=function(B,Y){return[B/A,Na(Y*A)]},N}(n);var m=1+h*(2*f-h),_=Ci(m)/f;function E(x,A){var N=Ci(m-2*f*an(A))/f;return[N*an(x*=f),_-N*hn(x)]}return E.invert=function(x,A){var N=_-A,B=sa(x,Se(N))*xr(N);return N*f<0&&(B-=nr*xr(x)*xr(N)),[B/f,Na((m-(x*x+N*N)*f*f)/(2*f))]},E}function s1(){return Oy(yb).scale(155.424).center([0,33.6442])}function mb(){return s1().parallels([29.5,45.5]).scale(1070).translate([480,250]).rotate([96,0]).center([-.6,38.7])}function Qs(){var n,a,h,f,m,_,E=mb(),x=s1().rotate([154,0]).center([-2,58.5]).parallels([55,65]),A=s1().rotate([157,0]).center([-3,19.9]).parallels([8,18]),N={point:function(I,H){_=[I,H]}};function B(I){var H=I[0],W=I[1];return _=null,h.point(H,W),_||(f.point(H,W),_)||(m.point(H,W),_)}function Y(){return n=a=null,B}return B.invert=function(I){var H=E.scale(),W=E.translate(),J=(I[0]-W[0])/H,Q=(I[1]-W[1])/H;return(Q>=.12&&Q<.234&&J>=-.425&&J<-.214?x:Q>=.166&&Q<.234&&J>=-.214&&J<-.115?A:E).invert(I)},B.stream=function(I){return n&&a===I?n:(H=[E.stream(a=I),x.stream(I),A.stream(I)],W=H.length,n={point:function(J,Q){for(var Z=-1;++Z<W;)H[Z].point(J,Q)},sphere:function(){for(var J=-1;++J<W;)H[J].sphere()},lineStart:function(){for(var J=-1;++J<W;)H[J].lineStart()},lineEnd:function(){for(var J=-1;++J<W;)H[J].lineEnd()},polygonStart:function(){for(var J=-1;++J<W;)H[J].polygonStart()},polygonEnd:function(){for(var J=-1;++J<W;)H[J].polygonEnd()}});var H,W},B.precision=function(I){return arguments.length?(E.precision(I),x.precision(I),A.precision(I),Y()):E.precision()},B.scale=function(I){return arguments.length?(E.scale(I),x.scale(.35*I),A.scale(I),B.translate(E.translate())):E.scale()},B.translate=function(I){if(!arguments.length)return E.translate();var H=E.scale(),W=+I[0],J=+I[1];return h=E.translate(I).clipExtent([[W-.455*H,J-.238*H],[W+.455*H,J+.238*H]]).stream(N),f=x.translate([W-.307*H,J+.201*H]).clipExtent([[W-.425*H+Fn,J+.12*H+Fn],[W-.214*H-Fn,J+.234*H-Fn]]).stream(N),m=A.translate([W-.205*H,J+.212*H]).clipExtent([[W-.214*H+Fn,J+.166*H+Fn],[W-.115*H-Fn,J+.234*H-Fn]]).stream(N),Y()},B.fitExtent=function(I,H){return o1(B,I,H)},B.fitSize=function(I,H){return Ay(B,I,H)},B.fitWidth=function(I,H){return My(B,I,H)},B.fitHeight=function(I,H){return Dy(B,I,H)},B.scale(1070)}function Ly(n){return function(a,h){var f=hn(a),m=hn(h),_=n(f*m);return[_*m*an(a),_*an(h)]}}function fo(n){return function(a,h){var f=Ci(a*a+h*h),m=n(f),_=an(m),E=hn(m);return[sa(a*_,f*E),Na(f&&h*_/f)]}}var By=Ly(function(n){return Ci(2/(1+n))});function fx(){return Xo(By).scale(124.75).clipAngle(179.999)}By.invert=fo(function(n){return 2*Na(n/2)});var Iy=Ly(function(n){return(n=Dc(n))&&n/an(n)});function Ry(){return Xo(Iy).scale(79.4188).clipAngle(179.999)}function Yf(n,a){return[n,Il(Ki((yi+a)/2))]}function dx(){return Fy(Yf).scale(961/Ir)}function Fy(n){var a,h,f,m=Xo(n),_=m.center,E=m.scale,x=m.translate,A=m.clipExtent,N=null;function B(){var Y=nr*E(),I=m(dy(m.rotate()).invert([0,0]));return A(N==null?[[I[0]-Y,I[1]-Y],[I[0]+Y,I[1]+Y]]:n===Yf?[[Math.max(I[0]-Y,N),a],[Math.min(I[0]+Y,h),f]]:[[N,Math.max(I[1]-Y,a)],[h,Math.min(I[1]+Y,f)]])}return m.scale=function(Y){return arguments.length?(E(Y),B()):E()},m.translate=function(Y){return arguments.length?(x(Y),B()):x()},m.center=function(Y){return arguments.length?(_(Y),B()):_()},m.clipExtent=function(Y){return arguments.length?(Y==null?N=a=h=f=null:(N=+Y[0][0],a=+Y[0][1],h=+Y[1][0],f=+Y[1][1]),B()):N==null?null:[[N,a],[h,f]]},B()}function jf(n){return Ki((yi+n)/2)}function Py(n,a){var h=hn(n),f=n===a?an(n):Il(h/hn(a))/Il(jf(a)/jf(n)),m=h*N0(jf(n),f)/f;if(!f)return Yf;function _(E,x){m>0?x<-yi+Fn&&(x=-yi+Fn):x>yi-Fn&&(x=yi-Fn);var A=m/N0(jf(x),f);return[A*an(f*E),m-A*hn(f*E)]}return _.invert=function(E,x){var A=m-x,N=xr(f)*Ci(E*E+A*A),B=sa(E,Se(A))*xr(A);return A*f<0&&(B-=nr*xr(E)*xr(A)),[B/f,2*Mc(N0(m/N,1/f))-yi]},_}function px(){return Oy(Py).scale(109.5).parallels([30,30])}function zf(n,a){return[n,a]}function gx(){return Xo(zf).scale(152.63)}function vb(n,a){var h=hn(n),f=n===a?an(n):(h-hn(a))/(a-n),m=h/f+n;if(Se(f)<Fn)return zf;function _(E,x){var A=m-x,N=f*E;return[A*an(N),m-A*hn(N)]}return _.invert=function(E,x){var A=m-x,N=sa(E,Se(A))*xr(A);return A*f<0&&(N-=nr*xr(E)*xr(A)),[N/f,m-xr(f)*Ci(E*E+A*A)]},_}function _b(){return Oy(vb).scale(131.154).center([0,13.9389])}Iy.invert=fo(function(n){return n}),Yf.invert=function(n,a){return[n,2*Mc(S_(a))-yi]},zf.invert=zf;var Fc=1.340264,Uf=-.081106,$f=893e-6,Hf=.003796,c1=Ci(3)/2;function Yy(n,a){var h=Na(c1*an(a)),f=h*h,m=f*f*f;return[n*hn(h)/(c1*(Fc+3*Uf*f+m*(7*$f+9*Hf*f))),h*(Fc+Uf*f+m*($f+Hf*f))]}function yx(){return Xo(Yy).scale(177.158)}function Wf(n,a){var h=hn(a),f=hn(n)*h;return[h*an(n)/f,an(a)/f]}function bb(){return Xo(Wf).scale(144.049).clipAngle(60)}function u1(){var n,a,h,f,m,_,E,x=1,A=0,N=0,B=1,Y=1,I=0,H=null,W=1,J=1,Q=Pf({point:function(dt,Yt){var Rt=nt([dt,Yt]);this.stream.point(Rt[0],Rt[1])}}),Z=Mf;function at(){return W=x*B,J=x*Y,_=E=null,nt}function nt(dt){var Yt=dt[0]*W,Rt=dt[1]*J;if(I){var Qt=Rt*n-Yt*a;Yt=Yt*n+Rt*a,Rt=Qt}return[Yt+A,Rt+N]}return nt.invert=function(dt){var Yt=dt[0]-A,Rt=dt[1]-N;if(I){var Qt=Rt*n+Yt*a;Yt=Yt*n-Rt*a,Rt=Qt}return[Yt/W,Rt/J]},nt.stream=function(dt){return _&&E===dt?_:_=Q(Z(E=dt))},nt.postclip=function(dt){return arguments.length?(Z=dt,H=h=f=m=null,at()):Z},nt.clipExtent=function(dt){return arguments.length?(Z=dt==null?(H=h=f=m=null,Mf):q0(H=+dt[0][0],h=+dt[0][1],f=+dt[1][0],m=+dt[1][1]),at()):H==null?null:[[H,h],[f,m]]},nt.scale=function(dt){return arguments.length?(x=+dt,at()):x},nt.translate=function(dt){return arguments.length?(A=+dt[0],N=+dt[1],at()):[A,N]},nt.angle=function(dt){return arguments.length?(a=an(I=dt%360*wn),n=hn(I),at()):I*Yr},nt.reflectX=function(dt){return arguments.length?(B=dt?-1:1,at()):B<0},nt.reflectY=function(dt){return arguments.length?(Y=dt?-1:1,at()):Y<0},nt.fitExtent=function(dt,Yt){return o1(nt,dt,Yt)},nt.fitSize=function(dt,Yt){return Ay(nt,dt,Yt)},nt.fitWidth=function(dt,Yt){return My(nt,dt,Yt)},nt.fitHeight=function(dt,Yt){return Dy(nt,dt,Yt)},nt}function jy(n,a){var h=a*a,f=h*h;return[n*(.8707-.131979*h+f*(f*(.003971*h-.001529*f)-.013791)),a*(1.007226+h*(.015085+f*(.028874*h-.044475-.005916*f)))]}function mx(){return Xo(jy).scale(175.295)}function zy(n,a){return[hn(a)*an(n),an(a)]}function vx(){return Xo(zy).scale(249.5).clipAngle(90.000001)}function Uy(n,a){var h=hn(a),f=1+hn(n)*h;return[h*an(n)/f,an(a)/f]}function _x(){return Xo(Uy).scale(250).clipAngle(142)}function l1(n,a){return[Il(Ki((yi+a)/2)),-n]}function bx(){var n=Fy(l1),a=n.center,h=n.rotate;return n.center=function(f){return arguments.length?a([-f[1],f[0]]):[(f=a())[1],-f[0]]},n.rotate=function(f){return arguments.length?h([f[0],f[1],f.length>2?f[2]+90:90]):[(f=h())[0],f[1],f[2]-90]},h([0,0,90]).scale(159.155)}function wx(n,a){return n.parent===a.parent?1:2}function xx(n,a){return n+a.x}function Kl(n,a){return Math.max(n,a.y)}function kx(){var n=wx,a=1,h=1,f=!1;function m(_){var E,x=0;_.eachAfter(function(I){var H=I.children;H?(I.x=function(W){return W.reduce(xx,0)/W.length}(H),I.y=function(W){return 1+W.reduce(Kl,0)}(H)):(I.x=E?x+=n(I,E):0,I.y=0,E=I)});var A=function(I){for(var H;H=I.children;)I=H[0];return I}(_),N=function(I){for(var H;H=I.children;)I=H[H.length-1];return I}(_),B=A.x-n(A,N)/2,Y=N.x+n(N,A)/2;return _.eachAfter(f?function(I){I.x=(I.x-_.x)*a,I.y=(_.y-I.y)*h}:function(I){I.x=(I.x-B)/(Y-B)*a,I.y=(1-(_.y?I.y/_.y:1))*h})}return m.separation=function(_){return arguments.length?(n=_,m):n},m.size=function(_){return arguments.length?(f=!1,a=+_[0],h=+_[1],m):f?null:[a,h]},m.nodeSize=function(_){return arguments.length?(f=!0,a=+_[0],h=+_[1],m):f?[a,h]:null},m}function Tx(n){var a=0,h=n.children,f=h&&h.length;if(f)for(;--f>=0;)a+=h[f].value;else a=1;n.value=a}function $y(n,a){var h,f,m,_,E,x=new Lu(n),A=+n.value&&(x.value=n.value),N=[x];for(a==null&&(a=wb);h=N.pop();)if(A&&(h.value=+h.data.value),(m=a(h.data))&&(E=m.length))for(h.children=new Array(E),_=E-1;_>=0;--_)N.push(f=h.children[_]=new Lu(m[_])),f.parent=h,f.depth=h.depth+1;return x.eachBefore(Wy)}function wb(n){return n.children}function Hy(n){n.data=n.data.data}function Wy(n){var a=0;do n.height=a;while((n=n.parent)&&n.height<++a)}function Lu(n){this.data=n,this.depth=this.height=0,this.parent=null}Yy.invert=function(n,a){for(var h,f=a,m=f*f,_=m*m*m,E=0;E<12&&(_=(m=(f-=h=(f*(Fc+Uf*m+_*($f+Hf*m))-a)/(Fc+3*Uf*m+_*(7*$f+9*Hf*m)))*f)*m*m,!(Se(h)<mf));++E);return[c1*n*(Fc+3*Uf*m+_*(7*$f+9*Hf*m))/hn(f),Na(an(f)/c1)]},Wf.invert=fo(Mc),jy.invert=function(n,a){var h,f=a,m=25;do{var _=f*f,E=_*_;f-=h=(f*(1.007226+_*(.015085+E*(.028874*_-.044475-.005916*E)))-a)/(1.007226+_*(.045255+E*(.259866*_-.311325-.005916*11*E)))}while(Se(h)>Fn&&--m>0);return[n/(.8707+(_=f*f)*(_*(_*_*_*(.003971-.001529*_)-.013791)-.131979)),f]},zy.invert=fo(Na),Uy.invert=fo(function(n){return 2*Mc(n)}),l1.invert=function(n,a){return[-a,2*Mc(S_(n))-yi]},Lu.prototype=$y.prototype={constructor:Lu,count:function(){return this.eachAfter(Tx)},each:function(n){var a,h,f,m,_=this,E=[_];do for(a=E.reverse(),E=[];_=a.pop();)if(n(_),h=_.children)for(f=0,m=h.length;f<m;++f)E.push(h[f]);while(E.length);return this},eachAfter:function(n){for(var a,h,f,m=this,_=[m],E=[];m=_.pop();)if(E.push(m),a=m.children)for(h=0,f=a.length;h<f;++h)_.push(a[h]);for(;m=E.pop();)n(m);return this},eachBefore:function(n){for(var a,h,f=this,m=[f];f=m.pop();)if(n(f),a=f.children)for(h=a.length-1;h>=0;--h)m.push(a[h]);return this},sum:function(n){return this.eachAfter(function(a){for(var h=+n(a.data)||0,f=a.children,m=f&&f.length;--m>=0;)h+=f[m].value;a.value=h})},sort:function(n){return this.eachBefore(function(a){a.children&&a.children.sort(n)})},path:function(n){for(var a=this,h=function(_,E){if(_===E)return _;var x=_.ancestors(),A=E.ancestors(),N=null;for(_=x.pop(),E=A.pop();_===E;)N=_,_=x.pop(),E=A.pop();return N}(a,n),f=[a];a!==h;)a=a.parent,f.push(a);for(var m=f.length;n!==h;)f.splice(m,0,n),n=n.parent;return f},ancestors:function(){for(var n=this,a=[n];n=n.parent;)a.push(n);return a},descendants:function(){var n=[];return this.each(function(a){n.push(a)}),n},leaves:function(){var n=[];return this.eachBefore(function(a){a.children||n.push(a)}),n},links:function(){var n=this,a=[];return n.each(function(h){h!==n&&a.push({source:h.parent,target:h})}),a},copy:function(){return $y(this).eachBefore(Hy)}};var xb=Array.prototype.slice;function kb(n){for(var a,h,f=0,m=(n=function(E){for(var x,A,N=E.length;N;)A=Math.random()*N--|0,x=E[N],E[N]=E[A],E[A]=x;return E}(xb.call(n))).length,_=[];f<m;)a=n[f],h&&Tb(h,a)?++f:(h=Sx(_=Ex(_,a)),f=0);return h}function Ex(n,a){var h,f;if(qy(a,n))return[a];for(h=0;h<n.length;++h)if(h1(a,n[h])&&qy(qf(n[h],a),n))return[n[h],a];for(h=0;h<n.length-1;++h)for(f=h+1;f<n.length;++f)if(h1(qf(n[h],n[f]),a)&&h1(qf(n[h],a),n[f])&&h1(qf(n[f],a),n[h])&&qy(Eb(n[h],n[f],a),n))return[n[h],n[f],a];throw new Error}function h1(n,a){var h=n.r-a.r,f=a.x-n.x,m=a.y-n.y;return h<0||h*h<f*f+m*m}function Tb(n,a){var h=n.r-a.r+1e-6,f=a.x-n.x,m=a.y-n.y;return h>0&&h*h>f*f+m*m}function qy(n,a){for(var h=0;h<a.length;++h)if(!Tb(n,a[h]))return!1;return!0}function Sx(n){switch(n.length){case 1:return function(a){return{x:a.x,y:a.y,r:a.r}}(n[0]);case 2:return qf(n[0],n[1]);case 3:return Eb(n[0],n[1],n[2])}}function qf(n,a){var h=n.x,f=n.y,m=n.r,_=a.x,E=a.y,x=a.r,A=_-h,N=E-f,B=x-m,Y=Math.sqrt(A*A+N*N);return{x:(h+_+A/Y*B)/2,y:(f+E+N/Y*B)/2,r:(Y+m+x)/2}}function Eb(n,a,h){var f=n.x,m=n.y,_=n.r,E=a.x,x=a.y,A=a.r,N=h.x,B=h.y,Y=h.r,I=f-E,H=f-N,W=m-x,J=m-B,Q=A-_,Z=Y-_,at=f*f+m*m-_*_,nt=at-E*E-x*x+A*A,dt=at-N*N-B*B+Y*Y,Yt=H*W-I*J,Rt=(W*dt-J*nt)/(2*Yt)-f,Qt=(J*Q-W*Z)/Yt,_e=(H*nt-I*dt)/(2*Yt)-m,Ut=(I*Z-H*Q)/Yt,se=Qt*Qt+Ut*Ut-1,ft=2*(_+Rt*Qt+_e*Ut),Et=Rt*Rt+_e*_e-_*_,ne=-(se?(ft+Math.sqrt(ft*ft-4*se*Et))/(2*se):Et/ft);return{x:f+Rt+Qt*ne,y:m+_e+Ut*ne,r:ne}}function Sb(n,a,h){var f,m,_,E,x=n.x-a.x,A=n.y-a.y,N=x*x+A*A;N?(m=a.r+h.r,m*=m,E=n.r+h.r,m>(E*=E)?(f=(N+E-m)/(2*N),_=Math.sqrt(Math.max(0,E/N-f*f)),h.x=n.x-f*x-_*A,h.y=n.y-f*A+_*x):(f=(N+m-E)/(2*N),_=Math.sqrt(Math.max(0,m/N-f*f)),h.x=a.x+f*x-_*A,h.y=a.y+f*A+_*x)):(h.x=a.x+h.r,h.y=a.y)}function Cb(n,a){var h=n.r+a.r-1e-6,f=a.x-n.x,m=a.y-n.y;return h>0&&h*h>f*f+m*m}function Ab(n){var a=n._,h=n.next._,f=a.r+h.r,m=(a.x*h.r+h.x*a.r)/f,_=(a.y*h.r+h.y*a.r)/f;return m*m+_*_}function f1(n){this._=n,this.next=null,this.previous=null}function Mb(n){if(!(m=n.length))return 0;var a,h,f,m,_,E,x,A,N,B,Y;if((a=n[0]).x=0,a.y=0,!(m>1))return a.r;if(h=n[1],a.x=-h.r,h.x=a.r,h.y=0,!(m>2))return a.r+h.r;Sb(h,a,f=n[2]),a=new f1(a),h=new f1(h),f=new f1(f),a.next=f.previous=h,h.next=a.previous=f,f.next=h.previous=a;t:for(x=3;x<m;++x){Sb(a._,h._,f=n[x]),f=new f1(f),A=h.next,N=a.previous,B=h._.r,Y=a._.r;do if(B<=Y){if(Cb(A._,f._)){h=A,a.next=h,h.previous=a,--x;continue t}B+=A._.r,A=A.next}else{if(Cb(N._,f._)){(a=N).next=h,h.previous=a,--x;continue t}Y+=N._.r,N=N.previous}while(A!==N.next);for(f.previous=a,f.next=h,a.next=h.previous=h=f,_=Ab(a);(f=f.next)!==h;)(E=Ab(f))<_&&(a=f,_=E);h=a.next}for(a=[h._],f=h;(f=f.next)!==h;)a.push(f._);for(f=kb(a),x=0;x<m;++x)(a=n[x]).x-=f.x,a.y-=f.y;return f.r}function Db(n){return Mb(n),n}function Cx(n){return n==null?null:d1(n)}function d1(n){if(typeof n!="function")throw new Error;return n}function Bu(){return 0}function Ql(n){return function(){return n}}function Ax(n){return Math.sqrt(n.value)}function Mx(){var n=null,a=1,h=1,f=Bu;function m(_){return _.x=a/2,_.y=h/2,n?_.eachBefore(Nb(n)).eachAfter(p1(f,.5)).eachBefore(Ob(1)):_.eachBefore(Nb(Ax)).eachAfter(p1(Bu,1)).eachAfter(p1(f,_.r/Math.min(a,h))).eachBefore(Ob(Math.min(a,h)/(2*_.r))),_}return m.radius=function(_){return arguments.length?(n=Cx(_),m):n},m.size=function(_){return arguments.length?(a=+_[0],h=+_[1],m):[a,h]},m.padding=function(_){return arguments.length?(f=typeof _=="function"?_:Ql(+_),m):f},m}function Nb(n){return function(a){a.children||(a.r=Math.max(0,+n(a)||0))}}function p1(n,a){return function(h){if(f=h.children){var f,m,_,E=f.length,x=n(h)*a||0;if(x)for(m=0;m<E;++m)f[m].r+=x;if(_=Mb(f),x)for(m=0;m<E;++m)f[m].r-=x;h.r=_+x}}}function Ob(n){return function(a){var h=a.parent;a.r*=n,h&&(a.x=h.x+n*a.x,a.y=h.y+n*a.y)}}function Lb(n){n.x0=Math.round(n.x0),n.y0=Math.round(n.y0),n.x1=Math.round(n.x1),n.y1=Math.round(n.y1)}function Vf(n,a,h,f,m){for(var _,E=n.children,x=-1,A=E.length,N=n.value&&(f-a)/n.value;++x<A;)(_=E[x]).y0=h,_.y1=m,_.x0=a,_.x1=a+=_.value*N}function Ko(){var n=1,a=1,h=0,f=!1;function m(_){var E=_.height+1;return _.x0=_.y0=h,_.x1=n,_.y1=a/E,_.eachBefore(function(x,A){return function(N){N.children&&Vf(N,N.x0,x*(N.depth+1)/A,N.x1,x*(N.depth+2)/A);var B=N.x0,Y=N.y0,I=N.x1-h,H=N.y1-h;I<B&&(B=I=(B+I)/2),H<Y&&(Y=H=(Y+H)/2),N.x0=B,N.y0=Y,N.x1=I,N.y1=H}}(a,E)),f&&_.eachBefore(Lb),_}return m.round=function(_){return arguments.length?(f=!!_,m):f},m.size=function(_){return arguments.length?(n=+_[0],a=+_[1],m):[n,a]},m.padding=function(_){return arguments.length?(h=+_,m):h},m}var Bb={depth:-1},Gf={};function Dx(n){return n.id}function Ib(n){return n.parentId}function g1(){var n=Dx,a=Ib;function h(f){var m,_,E,x,A,N,B,Y=f.length,I=new Array(Y),H={};for(_=0;_<Y;++_)m=f[_],A=I[_]=new Lu(m),(N=n(m,_,f))!=null&&(N+="")&&(H[B="$"+(A.id=N)]=B in H?Gf:A);for(_=0;_<Y;++_)if(A=I[_],(N=a(f[_],_,f))!=null&&(N+="")){if(!(x=H["$"+N]))throw new Error("missing: "+N);if(x===Gf)throw new Error("ambiguous: "+N);x.children?x.children.push(A):x.children=[A],A.parent=x}else{if(E)throw new Error("multiple roots");E=A}if(!E)throw new Error("no root");if(E.parent=Bb,E.eachBefore(function(W){W.depth=W.parent.depth+1,--Y}).eachBefore(Wy),E.parent=null,Y>0)throw new Error("cycle");return E}return h.id=function(f){return arguments.length?(n=d1(f),h):n},h.parentId=function(f){return arguments.length?(a=d1(f),h):a},h}function Nx(n,a){return n.parent===a.parent?1:2}function Vy(n){var a=n.children;return a?a[0]:n.t}function y1(n){var a=n.children;return a?a[a.length-1]:n.t}function Ox(n,a,h){var f=h/(a.i-n.i);a.c-=f,a.s+=h,n.c+=f,a.z+=h,a.m+=h}function m1(n,a,h){return n.a.parent===a.parent?n.a:h}function Pc(n,a){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=a}function Jl(){var n=Nx,a=1,h=1,f=null;function m(A){var N=function(Z){for(var at,nt,dt,Yt,Rt,Qt=new Pc(Z,0),_e=[Qt];at=_e.pop();)if(dt=at._.children)for(at.children=new Array(Rt=dt.length),Yt=Rt-1;Yt>=0;--Yt)_e.push(nt=at.children[Yt]=new Pc(dt[Yt],Yt)),nt.parent=at;return(Qt.parent=new Pc(null,0)).children=[Qt],Qt}(A);if(N.eachAfter(_),N.parent.m=-N.z,N.eachBefore(E),f)A.eachBefore(x);else{var B=A,Y=A,I=A;A.eachBefore(function(Z){Z.x<B.x&&(B=Z),Z.x>Y.x&&(Y=Z),Z.depth>I.depth&&(I=Z)});var H=B===Y?1:n(B,Y)/2,W=H-B.x,J=a/(Y.x+H+W),Q=h/(I.depth||1);A.eachBefore(function(Z){Z.x=(Z.x+W)*J,Z.y=Z.depth*Q})}return A}function _(A){var N=A.children,B=A.parent.children,Y=A.i?B[A.i-1]:null;if(N){(function(H){for(var W,J=0,Q=0,Z=H.children,at=Z.length;--at>=0;)(W=Z[at]).z+=J,W.m+=J,J+=W.s+(Q+=W.c)})(A);var I=(N[0].z+N[N.length-1].z)/2;Y?(A.z=Y.z+n(A._,Y._),A.m=A.z-I):A.z=I}else Y&&(A.z=Y.z+n(A._,Y._));A.parent.A=function(H,W,J){if(W){for(var Q,Z=H,at=H,nt=W,dt=Z.parent.children[0],Yt=Z.m,Rt=at.m,Qt=nt.m,_e=dt.m;nt=y1(nt),Z=Vy(Z),nt&&Z;)dt=Vy(dt),(at=y1(at)).a=H,(Q=nt.z+Qt-Z.z-Yt+n(nt._,Z._))>0&&(Ox(m1(nt,H,J),H,Q),Yt+=Q,Rt+=Q),Qt+=nt.m,Yt+=Z.m,_e+=dt.m,Rt+=at.m;nt&&!y1(at)&&(at.t=nt,at.m+=Qt-Rt),Z&&!Vy(dt)&&(dt.t=Z,dt.m+=Yt-_e,J=H)}return J}(A,Y,A.parent.A||B[0])}function E(A){A._.x=A.z+A.parent.m,A.m+=A.parent.m}function x(A){A.x*=a,A.y=A.depth*h}return m.separation=function(A){return arguments.length?(n=A,m):n},m.size=function(A){return arguments.length?(f=!1,a=+A[0],h=+A[1],m):f?null:[a,h]},m.nodeSize=function(A){return arguments.length?(f=!0,a=+A[0],h=+A[1],m):f?[a,h]:null},m}function Yc(n,a,h,f,m){for(var _,E=n.children,x=-1,A=E.length,N=n.value&&(m-h)/n.value;++x<A;)(_=E[x]).x0=a,_.x1=f,_.y0=h,_.y1=h+=_.value*N}Pc.prototype=Object.create(Lu.prototype);var th=(1+Math.sqrt(5))/2;function Zf(n,a,h,f,m,_){for(var E,x,A,N,B,Y,I,H,W,J,Q,Z=[],at=a.children,nt=0,dt=0,Yt=at.length,Rt=a.value;nt<Yt;){A=m-h,N=_-f;do B=at[dt++].value;while(!B&&dt<Yt);for(Y=I=B,Q=B*B*(J=Math.max(N/A,A/N)/(Rt*n)),W=Math.max(I/Q,Q/Y);dt<Yt;++dt){if(B+=x=at[dt].value,x<Y&&(Y=x),x>I&&(I=x),Q=B*B*J,(H=Math.max(I/Q,Q/Y))>W){B-=x;break}W=H}Z.push(E={value:B,dice:A<N,children:at.slice(nt,dt)}),E.dice?Vf(E,h,f,m,Rt?f+=N*B/Rt:_):Yc(E,h,f,Rt?h+=A*B/Rt:m,_),Rt-=B,nt=dt}return Z}const jc=function n(a){function h(f,m,_,E,x){Zf(a,f,m,_,E,x)}return h.ratio=function(f){return n((f=+f)>1?f:1)},h}(th);function v1(){var n=jc,a=!1,h=1,f=1,m=[0],_=Bu,E=Bu,x=Bu,A=Bu,N=Bu;function B(I){return I.x0=I.y0=0,I.x1=h,I.y1=f,I.eachBefore(Y),m=[0],a&&I.eachBefore(Lb),I}function Y(I){var H=m[I.depth],W=I.x0+H,J=I.y0+H,Q=I.x1-H,Z=I.y1-H;Q<W&&(W=Q=(W+Q)/2),Z<J&&(J=Z=(J+Z)/2),I.x0=W,I.y0=J,I.x1=Q,I.y1=Z,I.children&&(H=m[I.depth+1]=_(I)/2,W+=N(I)-H,J+=E(I)-H,(Q-=x(I)-H)<W&&(W=Q=(W+Q)/2),(Z-=A(I)-H)<J&&(J=Z=(J+Z)/2),n(I,W,J,Q,Z))}return B.round=function(I){return arguments.length?(a=!!I,B):a},B.size=function(I){return arguments.length?(h=+I[0],f=+I[1],B):[h,f]},B.tile=function(I){return arguments.length?(n=d1(I),B):n},B.padding=function(I){return arguments.length?B.paddingInner(I).paddingOuter(I):B.paddingInner()},B.paddingInner=function(I){return arguments.length?(_=typeof I=="function"?I:Ql(+I),B):_},B.paddingOuter=function(I){return arguments.length?B.paddingTop(I).paddingRight(I).paddingBottom(I).paddingLeft(I):B.paddingTop()},B.paddingTop=function(I){return arguments.length?(E=typeof I=="function"?I:Ql(+I),B):E},B.paddingRight=function(I){return arguments.length?(x=typeof I=="function"?I:Ql(+I),B):x},B.paddingBottom=function(I){return arguments.length?(A=typeof I=="function"?I:Ql(+I),B):A},B.paddingLeft=function(I){return arguments.length?(N=typeof I=="function"?I:Ql(+I),B):N},B}function Xf(n,a,h,f,m){var _,E,x=n.children,A=x.length,N=new Array(A+1);for(N[0]=E=_=0;_<A;++_)N[_+1]=E+=x[_].value;(function B(Y,I,H,W,J,Q,Z){if(Y>=I-1){var at=x[Y];return at.x0=W,at.y0=J,at.x1=Q,void(at.y1=Z)}for(var nt=N[Y],dt=H/2+nt,Yt=Y+1,Rt=I-1;Yt<Rt;){var Qt=Yt+Rt>>>1;N[Qt]<dt?Yt=Qt+1:Rt=Qt}dt-N[Yt-1]<N[Yt]-dt&&Y+1<Yt&&--Yt;var _e=N[Yt]-nt,Ut=H-_e;if(Q-W>Z-J){var se=(W*Ut+Q*_e)/H;B(Y,Yt,_e,W,J,se,Z),B(Yt,I,Ut,se,J,Q,Z)}else{var ft=(J*Ut+Z*_e)/H;B(Y,Yt,_e,W,J,Q,ft),B(Yt,I,Ut,W,ft,Q,Z)}})(0,A,n.value,a,h,f,m)}function Rb(n,a,h,f,m){(1&n.depth?Yc:Vf)(n,a,h,f,m)}const Gy=function n(a){function h(f,m,_,E,x){if((A=f._squarify)&&A.ratio===a)for(var A,N,B,Y,I,H=-1,W=A.length,J=f.value;++H<W;){for(B=(N=A[H]).children,Y=N.value=0,I=B.length;Y<I;++Y)N.value+=B[Y].value;N.dice?Vf(N,m,_,E,_+=(x-_)*N.value/J):Yc(N,m,_,m+=(E-m)*N.value/J,x),J-=N.value}else f._squarify=A=Zf(a,f,m,_,E,x),A.ratio=a}return h.ratio=function(f){return n((f=+f)>1?f:1)},h}(th);function Lx(n){var a=n.length;return function(h){return n[Math.max(0,Math.min(a-1,Math.floor(h*a)))]}}function _1(n,a){var h=$a(+n,+a);return function(f){var m=h(f);return m-360*Math.floor(m/360)}}function Zy(n,a){return n=+n,a=+a,function(h){return Math.round(n*(1-h)+a*h)}}var eh=Math.SQRT2;function Fb(n){return((n=Math.exp(n))+1/n)/2}function b1(n,a){var h,f,m=n[0],_=n[1],E=n[2],x=a[0],A=a[1],N=a[2],B=x-m,Y=A-_,I=B*B+Y*Y;if(I<1e-12)f=Math.log(N/E)/eh,h=function(at){return[m+at*B,_+at*Y,E*Math.exp(eh*at*f)]};else{var H=Math.sqrt(I),W=(N*N-E*E+4*I)/(2*E*2*H),J=(N*N-E*E-4*I)/(2*N*2*H),Q=Math.log(Math.sqrt(W*W+1)-W),Z=Math.log(Math.sqrt(J*J+1)-J);f=(Z-Q)/eh,h=function(at){var nt,dt=at*f,Yt=Fb(Q),Rt=E/(2*H)*(Yt*(nt=eh*dt+Q,((nt=Math.exp(2*nt))-1)/(nt+1))-function(Qt){return((Qt=Math.exp(Qt))-1/Qt)/2}(Q));return[m+Rt*B,_+Rt*Y,E*Yt/Fb(eh*dt+Q)]}}return h.duration=1e3*f,h}function Xy(n){return function(a,h){var f=n((a=vl(a)).h,(h=vl(h)).h),m=Si(a.s,h.s),_=Si(a.l,h.l),E=Si(a.opacity,h.opacity);return function(x){return a.h=f(x),a.s=m(x),a.l=_(x),a.opacity=E(x),a+""}}}const Bx=Xy($a);var Ix=Xy(Si);function w1(n,a){var h=Si((n=of(n)).l,(a=of(a)).l),f=Si(n.a,a.a),m=Si(n.b,a.b),_=Si(n.opacity,a.opacity);return function(E){return n.l=h(E),n.a=f(E),n.b=m(E),n.opacity=_(E),n+""}}function x1(n){return function(a,h){var f=n((a=Ec(a)).h,(h=Ec(h)).h),m=Si(a.c,h.c),_=Si(a.l,h.l),E=Si(a.opacity,h.opacity);return function(x){return a.h=f(x),a.c=m(x),a.l=_(x),a.opacity=E(x),a+""}}}const xs=x1($a);var Qo=x1(Si);function Js(n){return function a(h){function f(m,_){var E=n((m=Aa(m)).h,(_=Aa(_)).h),x=Si(m.s,_.s),A=Si(m.l,_.l),N=Si(m.opacity,_.opacity);return function(B){return m.h=E(B),m.s=x(B),m.l=A(Math.pow(B,h)),m.opacity=N(B),m+""}}return h=+h,f.gamma=a,f}(1)}const k1=Js($a);var Kf=Js(Si);function Ky(n,a){for(var h=0,f=a.length-1,m=a[0],_=new Array(f<0?0:f);h<f;)_[h]=n(m,m=a[++h]);return function(E){var x=Math.max(0,Math.min(f-1,Math.floor(E*=f)));return _[x](E-x)}}function Pb(n,a){for(var h=new Array(a),f=0;f<a;++f)h[f]=n(f/(a-1));return h}function Yb(n){for(var a,h=-1,f=n.length,m=n[f-1],_=0;++h<f;)a=m,m=n[h],_+=a[1]*m[0]-a[0]*m[1];return _/2}function Rx(n){for(var a,h,f=-1,m=n.length,_=0,E=0,x=n[m-1],A=0;++f<m;)a=x,x=n[f],A+=h=a[0]*x[1]-x[0]*a[1],_+=(a[0]+x[0])*h,E+=(a[1]+x[1])*h;return[_/(A*=3),E/A]}function Fx(n,a,h){return(a[0]-n[0])*(h[1]-n[1])-(a[1]-n[1])*(h[0]-n[0])}function Px(n,a){return n[0]-a[0]||n[1]-a[1]}function jb(n){for(var a=n.length,h=[0,1],f=2,m=2;m<a;++m){for(;f>1&&Fx(n[h[f-2]],n[h[f-1]],n[m])<=0;)--f;h[f++]=m}return h.slice(0,f)}function Qy(n){if((h=n.length)<3)return null;var a,h,f=new Array(h),m=new Array(h);for(a=0;a<h;++a)f[a]=[+n[a][0],+n[a][1],a];for(f.sort(Px),a=0;a<h;++a)m[a]=[f[a][0],-f[a][1]];var _=jb(f),E=jb(m),x=E[0]===_[0],A=E[E.length-1]===_[_.length-1],N=[];for(a=_.length-1;a>=0;--a)N.push(n[f[_[a]][2]]);for(a=+x;a<E.length-A;++a)N.push(n[f[E[a]][2]]);return N}function Jy(n,a){for(var h,f,m=n.length,_=n[m-1],E=a[0],x=a[1],A=_[0],N=_[1],B=!1,Y=0;Y<m;++Y)h=(_=n[Y])[0],(f=_[1])>x!=N>x&&E<(A-h)*(x-f)/(N-f)+h&&(B=!B),A=h,N=f;return B}function zb(n){for(var a,h,f=-1,m=n.length,_=n[m-1],E=_[0],x=_[1],A=0;++f<m;)a=E,h=x,a-=E=(_=n[f])[0],h-=x=_[1],A+=Math.sqrt(a*a+h*h);return A}function ks(){return Math.random()}const T1=function n(a){function h(f,m){return f=f==null?0:+f,m=m==null?1:+m,arguments.length===1?(m=f,f=0):m-=f,function(){return a()*m+f}}return h.source=n,h}(ks),Qf=function n(a){function h(f,m){var _,E;return f=f==null?0:+f,m=m==null?1:+m,function(){var x;if(_!=null)x=_,_=null;else do _=2*a()-1,x=2*a()-1,E=_*_+x*x;while(!E||E>1);return f+m*x*Math.sqrt(-2*Math.log(E)/E)}}return h.source=n,h}(ks),nh=function n(a){function h(){var f=Qf.source(a).apply(this,arguments);return function(){return Math.exp(f())}}return h.source=n,h}(ks),rh=function n(a){function h(f){return function(){for(var m=0,_=0;_<f;++_)m+=a();return m}}return h.source=n,h}(ks),Ts=function n(a){function h(f){var m=rh.source(a)(f);return function(){return m()/f}}return h.source=n,h}(ks),Yx=function n(a){function h(f){return function(){return-Math.log(1-a())/f}}return h.source=n,h}(ks);function Jo(n,a){switch(arguments.length){case 0:break;case 1:this.range(n);break;default:this.range(a).domain(n)}return this}function tc(n,a){switch(arguments.length){case 0:break;case 1:this.interpolator(n);break;default:this.interpolator(a).domain(n)}return this}var Ub=Array.prototype,E1=Ub.map,Iu=Ub.slice,t2={name:"implicit"};function S1(){var n=Hs(),a=[],h=[],f=t2;function m(_){var E=_+"",x=n.get(E);if(!x){if(f!==t2)return f;n.set(E,x=a.push(_))}return h[(x-1)%h.length]}return m.domain=function(_){if(!arguments.length)return a.slice();a=[],n=Hs();for(var E,x,A=-1,N=_.length;++A<N;)n.has(x=(E=_[A])+"")||n.set(x,a.push(E));return m},m.range=function(_){return arguments.length?(h=Iu.call(_),m):h.slice()},m.unknown=function(_){return arguments.length?(f=_,m):f},m.copy=function(){return S1(a,h).unknown(f)},Jo.apply(m,arguments),m}function C1(){var n,a,h=S1().unknown(void 0),f=h.domain,m=h.range,_=[0,1],E=!1,x=0,A=0,N=.5;function B(){var Y=f().length,I=_[1]<_[0],H=_[I-0],W=_[1-I];n=(W-H)/Math.max(1,Y-x+2*A),E&&(n=Math.floor(n)),H+=(W-H-n*(Y-x))*N,a=n*(1-x),E&&(H=Math.round(H),a=Math.round(a));var J=et(Y).map(function(Q){return H+n*Q});return m(I?J.reverse():J)}return delete h.unknown,h.domain=function(Y){return arguments.length?(f(Y),B()):f()},h.range=function(Y){return arguments.length?(_=[+Y[0],+Y[1]],B()):_.slice()},h.rangeRound=function(Y){return _=[+Y[0],+Y[1]],E=!0,B()},h.bandwidth=function(){return a},h.step=function(){return n},h.round=function(Y){return arguments.length?(E=!!Y,B()):E},h.padding=function(Y){return arguments.length?(x=Math.min(1,A=+Y),B()):x},h.paddingInner=function(Y){return arguments.length?(x=Math.min(1,Y),B()):x},h.paddingOuter=function(Y){return arguments.length?(A=+Y,B()):A},h.align=function(Y){return arguments.length?(N=Math.max(0,Math.min(1,Y)),B()):N},h.copy=function(){return C1(f(),_).round(E).paddingInner(x).paddingOuter(A).align(N)},Jo.apply(B(),arguments)}function e2(n){var a=n.copy;return n.padding=n.paddingOuter,delete n.paddingInner,delete n.paddingOuter,n.copy=function(){return e2(a())},n}function Jf(){return e2(C1.apply(null,arguments).paddingInner(1))}function A1(n){return+n}var td=[0,1];function ca(n){return n}function ed(n,a){return(a-=n=+n)?function(f){return(f-n)/a}:(h=isNaN(a)?NaN:.5,function(){return h});var h}function Za(n){var a,h=n[0],f=n[n.length-1];return h>f&&(a=h,h=f,f=a),function(m){return Math.max(h,Math.min(f,m))}}function $b(n,a,h){var f=n[0],m=n[1],_=a[0],E=a[1];return m<f?(f=ed(m,f),_=h(E,_)):(f=ed(f,m),_=h(_,E)),function(x){return _(f(x))}}function Hb(n,a,h){var f=Math.min(n.length,a.length)-1,m=new Array(f),_=new Array(f),E=-1;for(n[f]<n[0]&&(n=n.slice().reverse(),a=a.slice().reverse());++E<f;)m[E]=ed(n[E],n[E+1]),_[E]=h(a[E],a[E+1]);return function(x){var A=k(n,x,1,f)-1;return _[A](m[A](x))}}function Ru(n,a){return a.domain(n.domain()).range(n.range()).interpolate(n.interpolate()).clamp(n.clamp()).unknown(n.unknown())}function nd(){var n,a,h,f,m,_,E=td,x=td,A=_u,N=ca;function B(){return f=Math.min(E.length,x.length)>2?Hb:$b,m=_=null,Y}function Y(I){return isNaN(I=+I)?h:(m||(m=f(E.map(n),x,A)))(n(N(I)))}return Y.invert=function(I){return N(a((_||(_=f(x,E.map(n),Ea)))(I)))},Y.domain=function(I){return arguments.length?(E=E1.call(I,A1),N===ca||(N=Za(E)),B()):E.slice()},Y.range=function(I){return arguments.length?(x=Iu.call(I),B()):x.slice()},Y.rangeRound=function(I){return x=Iu.call(I),A=Zy,B()},Y.clamp=function(I){return arguments.length?(N=I?Za(E):ca,Y):N!==ca},Y.interpolate=function(I){return arguments.length?(A=I,B()):A},Y.unknown=function(I){return arguments.length?(h=I,Y):h},function(I,H){return n=I,a=H,B()}}function n2(n,a){return nd()(n,a)}function ts(n,a,h,f){var m,_=wt(n,a,h);switch((f=yf(f==null?",f":f)).type){case"s":var E=Math.max(Math.abs(n),Math.abs(a));return f.precision!=null||isNaN(m=k_(_,E))||(f.precision=m),Jg(f,E);case"":case"e":case"g":case"p":case"r":f.precision!=null||isNaN(m=T_(_,Math.max(Math.abs(n),Math.abs(a))))||(f.precision=m-(f.type==="e"));break;case"f":case"%":f.precision!=null||isNaN(m=ty(_))||(f.precision=m-2*(f.type==="%"))}return A0(f)}function ec(n){var a=n.domain;return n.ticks=function(h){var f=a();return St(f[0],f[f.length-1],h==null?10:h)},n.tickFormat=function(h,f){var m=a();return ts(m[0],m[m.length-1],h==null?10:h,f)},n.nice=function(h){h==null&&(h=10);var f,m=a(),_=0,E=m.length-1,x=m[_],A=m[E];return A<x&&(f=x,x=A,A=f,f=_,_=E,E=f),(f=pt(x,A,h))>0?f=pt(x=Math.floor(x/f)*f,A=Math.ceil(A/f)*f,h):f<0&&(f=pt(x=Math.ceil(x*f)/f,A=Math.floor(A*f)/f,h)),f>0?(m[_]=Math.floor(x/f)*f,m[E]=Math.ceil(A/f)*f,a(m)):f<0&&(m[_]=Math.ceil(x*f)/f,m[E]=Math.floor(A*f)/f,a(m)),n},n}function r2(){var n=n2(ca,ca);return n.copy=function(){return Ru(n,r2())},Jo.apply(n,arguments),ec(n)}function i2(n){var a;function h(f){return isNaN(f=+f)?a:f}return h.invert=h,h.domain=h.range=function(f){return arguments.length?(n=E1.call(f,A1),h):n.slice()},h.unknown=function(f){return arguments.length?(a=f,h):a},h.copy=function(){return i2(n).unknown(a)},n=arguments.length?E1.call(n,A1):[0,1],ec(h)}function a2(n,a){var h,f=0,m=(n=n.slice()).length-1,_=n[f],E=n[m];return E<_&&(h=f,f=m,m=h,h=_,_=E,E=h),n[f]=a.floor(_),n[m]=a.ceil(E),n}function M1(n){return Math.log(n)}function D1(n){return Math.exp(n)}function jx(n){return-Math.log(-n)}function Wb(n){return-Math.exp(-n)}function zx(n){return isFinite(n)?+("1e"+n):n<0?0:n}function qb(n){return function(a){return-n(-a)}}function o2(n){var a,h,f=n(M1,D1),m=f.domain,_=10;function E(){return a=function(x){return x===Math.E?Math.log:x===10&&Math.log10||x===2&&Math.log2||(x=Math.log(x),function(A){return Math.log(A)/x})}(_),h=function(x){return x===10?zx:x===Math.E?Math.exp:function(A){return Math.pow(x,A)}}(_),m()[0]<0?(a=qb(a),h=qb(h),n(jx,Wb)):n(M1,D1),f}return f.base=function(x){return arguments.length?(_=+x,E()):_},f.domain=function(x){return arguments.length?(m(x),E()):m()},f.ticks=function(x){var A,N=m(),B=N[0],Y=N[N.length-1];(A=Y<B)&&(J=B,B=Y,Y=J);var I,H,W,J=a(B),Q=a(Y),Z=x==null?10:+x,at=[];if(!(_%1)&&Q-J<Z){if(J=Math.round(J)-1,Q=Math.round(Q)+1,B>0){for(;J<Q;++J)for(H=1,I=h(J);H<_;++H)if(!((W=I*H)<B)){if(W>Y)break;at.push(W)}}else for(;J<Q;++J)for(H=_-1,I=h(J);H>=1;--H)if(!((W=I*H)<B)){if(W>Y)break;at.push(W)}}else at=St(J,Q,Math.min(Q-J,Z)).map(h);return A?at.reverse():at},f.tickFormat=function(x,A){if(A==null&&(A=_===10?".0e":","),typeof A!="function"&&(A=A0(A)),x===1/0)return A;x==null&&(x=10);var N=Math.max(1,_*x/f.ticks().length);return function(B){var Y=B/h(Math.round(a(B)));return Y*_<_-.5&&(Y*=_),Y<=N?A(B):""}},f.nice=function(){return m(a2(m(),{floor:function(x){return h(Math.floor(a(x)))},ceil:function(x){return h(Math.ceil(a(x)))}}))},f}function Vb(){var n=o2(nd()).domain([1,10]);return n.copy=function(){return Ru(n,Vb()).base(n.base())},Jo.apply(n,arguments),n}function Gb(n){return function(a){return Math.sign(a)*Math.log1p(Math.abs(a/n))}}function Zb(n){return function(a){return Math.sign(a)*Math.expm1(Math.abs(a))*n}}function s2(n){var a=1,h=n(Gb(a),Zb(a));return h.constant=function(f){return arguments.length?n(Gb(a=+f),Zb(a)):a},ec(h)}function Xb(){var n=s2(nd());return n.copy=function(){return Ru(n,Xb()).constant(n.constant())},Jo.apply(n,arguments)}function Kb(n){return function(a){return a<0?-Math.pow(-a,n):Math.pow(a,n)}}function Ux(n){return n<0?-Math.sqrt(-n):Math.sqrt(n)}function $x(n){return n<0?-n*n:n*n}function c2(n){var a=n(ca,ca),h=1;function f(){return h===1?n(ca,ca):h===.5?n(Ux,$x):n(Kb(h),Kb(1/h))}return a.exponent=function(m){return arguments.length?(h=+m,f()):h},ec(a)}function u2(){var n=c2(nd());return n.copy=function(){return Ru(n,u2()).exponent(n.exponent())},Jo.apply(n,arguments),n}function Hx(){return u2.apply(null,arguments).exponent(.5)}function Qb(){var n,a=[],h=[],f=[];function m(){var E=0,x=Math.max(1,h.length);for(f=new Array(x-1);++E<x;)f[E-1]=ge(a,E/x);return _}function _(E){return isNaN(E=+E)?n:h[k(f,E)]}return _.invertExtent=function(E){var x=h.indexOf(E);return x<0?[NaN,NaN]:[x>0?f[x-1]:a[0],x<f.length?f[x]:a[a.length-1]]},_.domain=function(E){if(!arguments.length)return a.slice();a=[];for(var x,A=0,N=E.length;A<N;++A)(x=E[A])==null||isNaN(x=+x)||a.push(x);return a.sort(c),m()},_.range=function(E){return arguments.length?(h=Iu.call(E),m()):h.slice()},_.unknown=function(E){return arguments.length?(n=E,_):n},_.quantiles=function(){return f.slice()},_.copy=function(){return Qb().domain(a).range(h).unknown(n)},Jo.apply(_,arguments)}function Jb(){var n,a=0,h=1,f=1,m=[.5],_=[0,1];function E(A){return A<=A?_[k(m,A,0,f)]:n}function x(){var A=-1;for(m=new Array(f);++A<f;)m[A]=((A+1)*h-(A-f)*a)/(f+1);return E}return E.domain=function(A){return arguments.length?(a=+A[0],h=+A[1],x()):[a,h]},E.range=function(A){return arguments.length?(f=(_=Iu.call(A)).length-1,x()):_.slice()},E.invertExtent=function(A){var N=_.indexOf(A);return N<0?[NaN,NaN]:N<1?[a,m[0]]:N>=f?[m[f-1],h]:[m[N-1],m[N]]},E.unknown=function(A){return arguments.length&&(n=A),E},E.thresholds=function(){return m.slice()},E.copy=function(){return Jb().domain([a,h]).range(_).unknown(n)},Jo.apply(ec(E),arguments)}function t3(){var n,a=[.5],h=[0,1],f=1;function m(_){return _<=_?h[k(a,_,0,f)]:n}return m.domain=function(_){return arguments.length?(a=Iu.call(_),f=Math.min(a.length,h.length-1),m):a.slice()},m.range=function(_){return arguments.length?(h=Iu.call(_),f=Math.min(a.length,h.length-1),m):h.slice()},m.invertExtent=function(_){var E=h.indexOf(_);return[a[E-1],a[E]]},m.unknown=function(_){return arguments.length?(n=_,m):n},m.copy=function(){return t3().domain(a).range(h).unknown(n)},Jo.apply(m,arguments)}var N1=new Date,l2=new Date;function $i(n,a,h,f){function m(_){return n(_=arguments.length===0?new Date:new Date(+_)),_}return m.floor=function(_){return n(_=new Date(+_)),_},m.ceil=function(_){return n(_=new Date(_-1)),a(_,1),n(_),_},m.round=function(_){var E=m(_),x=m.ceil(_);return _-E<x-_?E:x},m.offset=function(_,E){return a(_=new Date(+_),E==null?1:Math.floor(E)),_},m.range=function(_,E,x){var A,N=[];if(_=m.ceil(_),x=x==null?1:Math.floor(x),!(_<E&&x>0))return N;do N.push(A=new Date(+_)),a(_,x),n(_);while(A<_&&_<E);return N},m.filter=function(_){return $i(function(E){if(E>=E)for(;n(E),!_(E);)E.setTime(E-1)},function(E,x){if(E>=E)if(x<0)for(;++x<=0;)for(;a(E,-1),!_(E););else for(;--x>=0;)for(;a(E,1),!_(E););})},h&&(m.count=function(_,E){return N1.setTime(+_),l2.setTime(+E),n(N1),n(l2),Math.floor(h(N1,l2))},m.every=function(_){return _=Math.floor(_),isFinite(_)&&_>0?_>1?m.filter(f?function(E){return f(E)%_==0}:function(E){return m.count(0,E)%_==0}):m:null}),m}var h2=$i(function(n){n.setMonth(0,1),n.setHours(0,0,0,0)},function(n,a){n.setFullYear(n.getFullYear()+a)},function(n,a){return a.getFullYear()-n.getFullYear()},function(n){return n.getFullYear()});h2.every=function(n){return isFinite(n=Math.floor(n))&&n>0?$i(function(a){a.setFullYear(Math.floor(a.getFullYear()/n)*n),a.setMonth(0,1),a.setHours(0,0,0,0)},function(a,h){a.setFullYear(a.getFullYear()+h*n)}):null};const Fu=h2;var Wx=h2.range,Es=$i(function(n){n.setDate(1),n.setHours(0,0,0,0)},function(n,a){n.setMonth(n.getMonth()+a)},function(n,a){return a.getMonth()-n.getMonth()+12*(a.getFullYear()-n.getFullYear())},function(n){return n.getMonth()});const f2=Es;var nc=Es.range,O1=1e3,Pu=6e4,rd=36e5,d2=864e5,p2=6048e5;function Yu(n){return $i(function(a){a.setDate(a.getDate()-(a.getDay()+7-n)%7),a.setHours(0,0,0,0)},function(a,h){a.setDate(a.getDate()+7*h)},function(a,h){return(h-a-(h.getTimezoneOffset()-a.getTimezoneOffset())*Pu)/p2})}var ju=Yu(0),ih=Yu(1),L1=Yu(2),e3=Yu(3),rc=Yu(4),ah=Yu(5),ic=Yu(6),g2=ju.range,B1=ih.range,y2=L1.range,qx=e3.range,I1=rc.range,oh=ah.range,n3=ic.range,po=$i(function(n){n.setHours(0,0,0,0)},function(n,a){n.setDate(n.getDate()+a)},function(n,a){return(a-n-(a.getTimezoneOffset()-n.getTimezoneOffset())*Pu)/d2},function(n){return n.getDate()-1});const ui=po;var sh=po.range,R1=$i(function(n){n.setTime(n-n.getMilliseconds()-n.getSeconds()*O1-n.getMinutes()*Pu)},function(n,a){n.setTime(+n+a*rd)},function(n,a){return(a-n)/rd},function(n){return n.getHours()});const r3=R1;var es=R1.range,zc=$i(function(n){n.setTime(n-n.getMilliseconds()-n.getSeconds()*O1)},function(n,a){n.setTime(+n+a*Pu)},function(n,a){return(a-n)/Pu},function(n){return n.getMinutes()});const id=zc;var F1=zc.range,P1=$i(function(n){n.setTime(n-n.getMilliseconds())},function(n,a){n.setTime(+n+a*O1)},function(n,a){return(a-n)/O1},function(n){return n.getUTCSeconds()});const ch=P1;var i3=P1.range,Y1=$i(function(){},function(n,a){n.setTime(+n+a)},function(n,a){return a-n});Y1.every=function(n){return n=Math.floor(n),isFinite(n)&&n>0?n>1?$i(function(a){a.setTime(Math.floor(a/n)*n)},function(a,h){a.setTime(+a+h*n)},function(a,h){return(h-a)/n}):Y1:null};const uh=Y1;var a3=Y1.range;function zu(n){return $i(function(a){a.setUTCDate(a.getUTCDate()-(a.getUTCDay()+7-n)%7),a.setUTCHours(0,0,0,0)},function(a,h){a.setUTCDate(a.getUTCDate()+7*h)},function(a,h){return(h-a)/p2})}var ad=zu(0),Uc=zu(1),m2=zu(2),o3=zu(3),$c=zu(4),v2=zu(5),Uu=zu(6),s3=ad.range,Vx=Uc.range,c3=m2.range,u3=o3.range,$u=$c.range,j1=v2.range,Gx=Uu.range,_2=$i(function(n){n.setUTCHours(0,0,0,0)},function(n,a){n.setUTCDate(n.getUTCDate()+a)},function(n,a){return(a-n)/d2},function(n){return n.getUTCDate()-1});const Ni=_2;var dr=_2.range,xe=$i(function(n){n.setUTCMonth(0,1),n.setUTCHours(0,0,0,0)},function(n,a){n.setUTCFullYear(n.getUTCFullYear()+a)},function(n,a){return a.getUTCFullYear()-n.getUTCFullYear()},function(n){return n.getUTCFullYear()});xe.every=function(n){return isFinite(n=Math.floor(n))&&n>0?$i(function(a){a.setUTCFullYear(Math.floor(a.getUTCFullYear()/n)*n),a.setUTCMonth(0,1),a.setUTCHours(0,0,0,0)},function(a,h){a.setUTCFullYear(a.getUTCFullYear()+h*n)}):null};const vi=xe;var b2=xe.range;function w2(n){if(0<=n.y&&n.y<100){var a=new Date(-1,n.m,n.d,n.H,n.M,n.S,n.L);return a.setFullYear(n.y),a}return new Date(n.y,n.m,n.d,n.H,n.M,n.S,n.L)}function x2(n){if(0<=n.y&&n.y<100){var a=new Date(Date.UTC(-1,n.m,n.d,n.H,n.M,n.S,n.L));return a.setUTCFullYear(n.y),a}return new Date(Date.UTC(n.y,n.m,n.d,n.H,n.M,n.S,n.L))}function Hu(n,a,h){return{y:n,m:a,d:h,H:0,M:0,S:0,L:0}}function l3(n){var a=n.dateTime,h=n.date,f=n.time,m=n.periods,_=n.days,E=n.shortDays,x=n.months,A=n.shortMonths,N=Wu(m),B=qu(m),Y=Wu(_),I=qu(_),H=Wu(E),W=qu(E),J=Wu(x),Q=qu(x),Z=Wu(A),at=qu(A),nt={a:function(Ut){return E[Ut.getDay()]},A:function(Ut){return _[Ut.getDay()]},b:function(Ut){return A[Ut.getMonth()]},B:function(Ut){return x[Ut.getMonth()]},c:null,d:Vu,e:Vu,f:Ji,g:M2,G:cd,H:Hc,I:_3,j:b3,L:S2,m:e6,M:n6,p:function(Ut){return m[+(Ut.getHours()>=12)]},q:function(Ut){return 1+~~(Ut.getMonth()/3)},Q:ph,s:I2,S:r6,u:q1,U:C2,V:go,w:V1,W:w3,x:null,X:null,y:Kn,Y:x3,Z:ta,"%":C3},dt={a:function(Ut){return E[Ut.getUTCDay()]},A:function(Ut){return _[Ut.getUTCDay()]},b:function(Ut){return A[Ut.getUTCMonth()]},B:function(Ut){return x[Ut.getUTCMonth()]},c:null,d:dh,e:dh,f:i6,g:L2,G:S3,H:G1,I:Z1,j:k3,L:ae,m:T3,M:X1,p:function(Ut){return m[+(Ut.getUTCHours()>=12)]},q:function(Ut){return 1+~~(Ut.getUTCMonth()/3)},Q:ph,s:I2,S:D2,u:N2,U:O2,V:E3,w:K1,W:Q1,x:null,X:null,y:ud,Y:J1,Z:B2,"%":C3},Yt={a:function(Ut,se,ft){var Et=H.exec(se.slice(ft));return Et?(Ut.w=W[Et[0].toLowerCase()],ft+Et[0].length):-1},A:function(Ut,se,ft){var Et=Y.exec(se.slice(ft));return Et?(Ut.w=I[Et[0].toLowerCase()],ft+Et[0].length):-1},b:function(Ut,se,ft){var Et=Z.exec(se.slice(ft));return Et?(Ut.m=at[Et[0].toLowerCase()],ft+Et[0].length):-1},B:function(Ut,se,ft){var Et=J.exec(se.slice(ft));return Et?(Ut.m=Q[Et[0].toLowerCase()],ft+Et[0].length):-1},c:function(Ut,se,ft){return _e(Ut,a,se,ft)},d:U1,e:U1,f:m3,g:E2,G:d3,H:y3,I:y3,j:$1,L:t6,m:g3,M:H1,p:function(Ut,se,ft){var Et=N.exec(se.slice(ft));return Et?(Ut.p=B[Et[0].toLowerCase()],ft+Et[0].length):-1},q:p3,Q:W1,s:ns,S:Jx,u:fh,U:Xx,V:Kx,w:T2,W:Qx,x:function(Ut,se,ft){return _e(Ut,h,se,ft)},X:function(Ut,se,ft){return _e(Ut,f,se,ft)},y:E2,Y:d3,Z:Mo,"%":v3};function Rt(Ut,se){return function(ft){var Et,ne,Xt,re=[],Oe=-1,Ue=0,gn=Ut.length;for(ft instanceof Date||(ft=new Date(+ft));++Oe<gn;)Ut.charCodeAt(Oe)===37&&(re.push(Ut.slice(Ue,Oe)),(ne=f3[Et=Ut.charAt(++Oe)])!=null?Et=Ut.charAt(++Oe):ne=Et==="e"?" ":"0",(Xt=se[Et])&&(Et=Xt(ft,ne)),re.push(Et),Ue=Oe+1);return re.push(Ut.slice(Ue,Oe)),re.join("")}}function Qt(Ut,se){return function(ft){var Et,ne,Xt=Hu(1900,void 0,1);if(_e(Xt,Ut,ft+="",0)!=ft.length)return null;if("Q"in Xt)return new Date(Xt.Q);if("s"in Xt)return new Date(1e3*Xt.s+("L"in Xt?Xt.L:0));if(se&&!("Z"in Xt)&&(Xt.Z=0),"p"in Xt&&(Xt.H=Xt.H%12+12*Xt.p),Xt.m===void 0&&(Xt.m="q"in Xt?Xt.q:0),"V"in Xt){if(Xt.V<1||Xt.V>53)return null;"w"in Xt||(Xt.w=1),"Z"in Xt?(ne=(Et=x2(Hu(Xt.y,0,1))).getUTCDay(),Et=ne>4||ne===0?Uc.ceil(Et):Uc(Et),Et=Ni.offset(Et,7*(Xt.V-1)),Xt.y=Et.getUTCFullYear(),Xt.m=Et.getUTCMonth(),Xt.d=Et.getUTCDate()+(Xt.w+6)%7):(ne=(Et=w2(Hu(Xt.y,0,1))).getDay(),Et=ne>4||ne===0?ih.ceil(Et):ih(Et),Et=ui.offset(Et,7*(Xt.V-1)),Xt.y=Et.getFullYear(),Xt.m=Et.getMonth(),Xt.d=Et.getDate()+(Xt.w+6)%7)}else("W"in Xt||"U"in Xt)&&("w"in Xt||(Xt.w="u"in Xt?Xt.u%7:"W"in Xt?1:0),ne="Z"in Xt?x2(Hu(Xt.y,0,1)).getUTCDay():w2(Hu(Xt.y,0,1)).getDay(),Xt.m=0,Xt.d="W"in Xt?(Xt.w+6)%7+7*Xt.W-(ne+5)%7:Xt.w+7*Xt.U-(ne+6)%7);return"Z"in Xt?(Xt.H+=Xt.Z/100|0,Xt.M+=Xt.Z%100,x2(Xt)):w2(Xt)}}function _e(Ut,se,ft,Et){for(var ne,Xt,re=0,Oe=se.length,Ue=ft.length;re<Oe;){if(Et>=Ue)return-1;if((ne=se.charCodeAt(re++))===37){if(ne=se.charAt(re++),!(Xt=Yt[ne in f3?se.charAt(re++):ne])||(Et=Xt(Ut,ft,Et))<0)return-1}else if(ne!=ft.charCodeAt(Et++))return-1}return Et}return nt.x=Rt(h,nt),nt.X=Rt(f,nt),nt.c=Rt(a,nt),dt.x=Rt(h,dt),dt.X=Rt(f,dt),dt.c=Rt(a,dt),{format:function(Ut){var se=Rt(Ut+="",nt);return se.toString=function(){return Ut},se},parse:function(Ut){var se=Qt(Ut+="",!1);return se.toString=function(){return Ut},se},utcFormat:function(Ut){var se=Rt(Ut+="",dt);return se.toString=function(){return Ut},se},utcParse:function(Ut){var se=Qt(Ut+="",!0);return se.toString=function(){return Ut},se}}}var lh,od,h3,z1,sd,f3={"-":"",_:" ",0:"0"},Qi=/^\s*\d+/,k2=/^%/,Zx=/[\\^$*+?|[\]().{}]/g;function Er(n,a,h){var f=n<0?"-":"",m=(f?-n:n)+"",_=m.length;return f+(_<h?new Array(h-_+1).join(a)+m:m)}function hh(n){return n.replace(Zx,"\\$&")}function Wu(n){return new RegExp("^(?:"+n.map(hh).join("|")+")","i")}function qu(n){for(var a={},h=-1,f=n.length;++h<f;)a[n[h].toLowerCase()]=h;return a}function T2(n,a,h){var f=Qi.exec(a.slice(h,h+1));return f?(n.w=+f[0],h+f[0].length):-1}function fh(n,a,h){var f=Qi.exec(a.slice(h,h+1));return f?(n.u=+f[0],h+f[0].length):-1}function Xx(n,a,h){var f=Qi.exec(a.slice(h,h+2));return f?(n.U=+f[0],h+f[0].length):-1}function Kx(n,a,h){var f=Qi.exec(a.slice(h,h+2));return f?(n.V=+f[0],h+f[0].length):-1}function Qx(n,a,h){var f=Qi.exec(a.slice(h,h+2));return f?(n.W=+f[0],h+f[0].length):-1}function d3(n,a,h){var f=Qi.exec(a.slice(h,h+4));return f?(n.y=+f[0],h+f[0].length):-1}function E2(n,a,h){var f=Qi.exec(a.slice(h,h+2));return f?(n.y=+f[0]+(+f[0]>68?1900:2e3),h+f[0].length):-1}function Mo(n,a,h){var f=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(a.slice(h,h+6));return f?(n.Z=f[1]?0:-(f[2]+(f[3]||"00")),h+f[0].length):-1}function p3(n,a,h){var f=Qi.exec(a.slice(h,h+1));return f?(n.q=3*f[0]-3,h+f[0].length):-1}function g3(n,a,h){var f=Qi.exec(a.slice(h,h+2));return f?(n.m=f[0]-1,h+f[0].length):-1}function U1(n,a,h){var f=Qi.exec(a.slice(h,h+2));return f?(n.d=+f[0],h+f[0].length):-1}function $1(n,a,h){var f=Qi.exec(a.slice(h,h+3));return f?(n.m=0,n.d=+f[0],h+f[0].length):-1}function y3(n,a,h){var f=Qi.exec(a.slice(h,h+2));return f?(n.H=+f[0],h+f[0].length):-1}function H1(n,a,h){var f=Qi.exec(a.slice(h,h+2));return f?(n.M=+f[0],h+f[0].length):-1}function Jx(n,a,h){var f=Qi.exec(a.slice(h,h+2));return f?(n.S=+f[0],h+f[0].length):-1}function t6(n,a,h){var f=Qi.exec(a.slice(h,h+3));return f?(n.L=+f[0],h+f[0].length):-1}function m3(n,a,h){var f=Qi.exec(a.slice(h,h+6));return f?(n.L=Math.floor(f[0]/1e3),h+f[0].length):-1}function v3(n,a,h){var f=k2.exec(a.slice(h,h+1));return f?h+f[0].length:-1}function W1(n,a,h){var f=Qi.exec(a.slice(h));return f?(n.Q=+f[0],h+f[0].length):-1}function ns(n,a,h){var f=Qi.exec(a.slice(h));return f?(n.s=+f[0],h+f[0].length):-1}function Vu(n,a){return Er(n.getDate(),a,2)}function Hc(n,a){return Er(n.getHours(),a,2)}function _3(n,a){return Er(n.getHours()%12||12,a,2)}function b3(n,a){return Er(1+ui.count(Fu(n),n),a,3)}function S2(n,a){return Er(n.getMilliseconds(),a,3)}function Ji(n,a){return S2(n,a)+"000"}function e6(n,a){return Er(n.getMonth()+1,a,2)}function n6(n,a){return Er(n.getMinutes(),a,2)}function r6(n,a){return Er(n.getSeconds(),a,2)}function q1(n){var a=n.getDay();return a===0?7:a}function C2(n,a){return Er(ju.count(Fu(n)-1,n),a,2)}function A2(n){var a=n.getDay();return a>=4||a===0?rc(n):rc.ceil(n)}function go(n,a){return n=A2(n),Er(rc.count(Fu(n),n)+(Fu(n).getDay()===4),a,2)}function V1(n){return n.getDay()}function w3(n,a){return Er(ih.count(Fu(n)-1,n),a,2)}function Kn(n,a){return Er(n.getFullYear()%100,a,2)}function M2(n,a){return Er((n=A2(n)).getFullYear()%100,a,2)}function x3(n,a){return Er(n.getFullYear()%1e4,a,4)}function cd(n,a){var h=n.getDay();return Er((n=h>=4||h===0?rc(n):rc.ceil(n)).getFullYear()%1e4,a,4)}function ta(n){var a=n.getTimezoneOffset();return(a>0?"-":(a*=-1,"+"))+Er(a/60|0,"0",2)+Er(a%60,"0",2)}function dh(n,a){return Er(n.getUTCDate(),a,2)}function G1(n,a){return Er(n.getUTCHours(),a,2)}function Z1(n,a){return Er(n.getUTCHours()%12||12,a,2)}function k3(n,a){return Er(1+Ni.count(vi(n),n),a,3)}function ae(n,a){return Er(n.getUTCMilliseconds(),a,3)}function i6(n,a){return ae(n,a)+"000"}function T3(n,a){return Er(n.getUTCMonth()+1,a,2)}function X1(n,a){return Er(n.getUTCMinutes(),a,2)}function D2(n,a){return Er(n.getUTCSeconds(),a,2)}function N2(n){var a=n.getUTCDay();return a===0?7:a}function O2(n,a){return Er(ad.count(vi(n)-1,n),a,2)}function Hi(n){var a=n.getUTCDay();return a>=4||a===0?$c(n):$c.ceil(n)}function E3(n,a){return n=Hi(n),Er($c.count(vi(n),n)+(vi(n).getUTCDay()===4),a,2)}function K1(n){return n.getUTCDay()}function Q1(n,a){return Er(Uc.count(vi(n)-1,n),a,2)}function ud(n,a){return Er(n.getUTCFullYear()%100,a,2)}function L2(n,a){return Er((n=Hi(n)).getUTCFullYear()%100,a,2)}function J1(n,a){return Er(n.getUTCFullYear()%1e4,a,4)}function S3(n,a){var h=n.getUTCDay();return Er((n=h>=4||h===0?$c(n):$c.ceil(n)).getUTCFullYear()%1e4,a,4)}function B2(){return"+0000"}function C3(){return"%"}function ph(n){return+n}function I2(n){return Math.floor(+n/1e3)}function R2(n){return lh=l3(n),od=lh.format,h3=lh.parse,z1=lh.utcFormat,sd=lh.utcParse,lh}R2({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 Do=31536e6;function a6(n){return new Date(n)}function ld(n){return n instanceof Date?+n:+new Date(+n)}function F2(n,a,h,f,m,_,E,x,A){var N=n2(ca,ca),B=N.invert,Y=N.domain,I=A(".%L"),H=A(":%S"),W=A("%I:%M"),J=A("%I %p"),Q=A("%a %d"),Z=A("%b %d"),at=A("%B"),nt=A("%Y"),dt=[[E,1,1e3],[E,5,5e3],[E,15,15e3],[E,30,3e4],[_,1,6e4],[_,5,3e5],[_,15,9e5],[_,30,18e5],[m,1,36e5],[m,3,108e5],[m,6,216e5],[m,12,432e5],[f,1,864e5],[f,2,1728e5],[h,1,6048e5],[a,1,2592e6],[a,3,7776e6],[n,1,Do]];function Yt(Qt){return(E(Qt)<Qt?I:_(Qt)<Qt?H:m(Qt)<Qt?W:f(Qt)<Qt?J:a(Qt)<Qt?h(Qt)<Qt?Q:Z:n(Qt)<Qt?at:nt)(Qt)}function Rt(Qt,_e,Ut,se){if(Qt==null&&(Qt=10),typeof Qt=="number"){var ft=Math.abs(Ut-_e)/Qt,Et=y(function(ne){return ne[2]}).right(dt,ft);Et===dt.length?(se=wt(_e/Do,Ut/Do,Qt),Qt=n):Et?(se=(Et=dt[ft/dt[Et-1][2]<dt[Et][2]/ft?Et-1:Et])[1],Qt=Et[0]):(se=Math.max(wt(_e,Ut,Qt),1),Qt=x)}return se==null?Qt:Qt.every(se)}return N.invert=function(Qt){return new Date(B(Qt))},N.domain=function(Qt){return arguments.length?Y(E1.call(Qt,ld)):Y().map(a6)},N.ticks=function(Qt,_e){var Ut,se=Y(),ft=se[0],Et=se[se.length-1],ne=Et<ft;return ne&&(Ut=ft,ft=Et,Et=Ut),Ut=(Ut=Rt(Qt,ft,Et,_e))?Ut.range(ft,Et+1):[],ne?Ut.reverse():Ut},N.tickFormat=function(Qt,_e){return _e==null?Yt:A(_e)},N.nice=function(Qt,_e){var Ut=Y();return(Qt=Rt(Qt,Ut[0],Ut[Ut.length-1],_e))?Y(a2(Ut,Qt)):N},N.copy=function(){return Ru(N,F2(n,a,h,f,m,_,E,x,A))},N}function Wi(){return Jo.apply(F2(Fu,f2,ju,ui,r3,id,ch,uh,od).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}var Gu=$i(function(n){n.setUTCDate(1),n.setUTCHours(0,0,0,0)},function(n,a){n.setUTCMonth(n.getUTCMonth()+a)},function(n,a){return a.getUTCMonth()-n.getUTCMonth()+12*(a.getUTCFullYear()-n.getUTCFullYear())},function(n){return n.getUTCMonth()});const A3=Gu;var M3=Gu.range,tp=$i(function(n){n.setUTCMinutes(0,0,0)},function(n,a){n.setTime(+n+a*rd)},function(n,a){return(a-n)/rd},function(n){return n.getUTCHours()});const D3=tp;var o6=tp.range,N3=$i(function(n){n.setUTCSeconds(0,0)},function(n,a){n.setTime(+n+a*Pu)},function(n,a){return(a-n)/Pu},function(n){return n.getUTCMinutes()});const P2=N3;var gh=N3.range;function Y2(){return Jo.apply(F2(vi,A3,ad,Ni,D3,P2,ch,uh,z1).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function ep(){var n,a,h,f,m,_=0,E=1,x=ca,A=!1;function N(B){return isNaN(B=+B)?m:x(h===0?.5:(B=(f(B)-n)*h,A?Math.max(0,Math.min(1,B)):B))}return N.domain=function(B){return arguments.length?(n=f(_=+B[0]),a=f(E=+B[1]),h=n===a?0:1/(a-n),N):[_,E]},N.clamp=function(B){return arguments.length?(A=!!B,N):A},N.interpolator=function(B){return arguments.length?(x=B,N):x},N.unknown=function(B){return arguments.length?(m=B,N):m},function(B){return f=B,n=B(_),a=B(E),h=n===a?0:1/(a-n),N}}function Ss(n,a){return a.domain(n.domain()).interpolator(n.interpolator()).clamp(n.clamp()).unknown(n.unknown())}function hd(){var n=ec(ep()(ca));return n.copy=function(){return Ss(n,hd())},tc.apply(n,arguments)}function fd(){var n=o2(ep()).domain([1,10]);return n.copy=function(){return Ss(n,fd()).base(n.base())},tc.apply(n,arguments)}function j2(){var n=s2(ep());return n.copy=function(){return Ss(n,j2()).constant(n.constant())},tc.apply(n,arguments)}function z2(){var n=c2(ep());return n.copy=function(){return Ss(n,z2()).exponent(n.exponent())},tc.apply(n,arguments)}function s6(){return z2.apply(null,arguments).exponent(.5)}function O3(){var n=[],a=ca;function h(f){if(!isNaN(f=+f))return a((k(n,f)-1)/(n.length-1))}return h.domain=function(f){if(!arguments.length)return n.slice();n=[];for(var m,_=0,E=f.length;_<E;++_)(m=f[_])==null||isNaN(m=+m)||n.push(m);return n.sort(c),h},h.interpolator=function(f){return arguments.length?(a=f,h):a},h.copy=function(){return O3(a).domain(n)},tc.apply(h,arguments)}function yh(){var n,a,h,f,m,_,E,x=0,A=.5,N=1,B=ca,Y=!1;function I(H){return isNaN(H=+H)?E:(H=.5+((H=+_(H))-a)*(H<a?f:m),B(Y?Math.max(0,Math.min(1,H)):H))}return I.domain=function(H){return arguments.length?(n=_(x=+H[0]),a=_(A=+H[1]),h=_(N=+H[2]),f=n===a?0:.5/(a-n),m=a===h?0:.5/(h-a),I):[x,A,N]},I.clamp=function(H){return arguments.length?(Y=!!H,I):Y},I.interpolator=function(H){return arguments.length?(B=H,I):B},I.unknown=function(H){return arguments.length?(E=H,I):E},function(H){return _=H,n=H(x),a=H(A),h=H(N),f=n===a?0:.5/(a-n),m=a===h?0:.5/(h-a),I}}function Ra(){var n=ec(yh()(ca));return n.copy=function(){return Ss(n,Ra())},tc.apply(n,arguments)}function Fa(){var n=o2(yh()).domain([.1,1,10]);return n.copy=function(){return Ss(n,Fa()).base(n.base())},tc.apply(n,arguments)}function Oi(){var n=s2(yh());return n.copy=function(){return Ss(n,Oi()).constant(n.constant())},tc.apply(n,arguments)}function rs(){var n=c2(yh());return n.copy=function(){return Ss(n,rs()).exponent(n.exponent())},tc.apply(n,arguments)}function vr(){return rs.apply(null,arguments).exponent(.5)}function Ln(n){for(var a=n.length/6|0,h=new Array(a),f=0;f<a;)h[f]="#"+n.slice(6*f,6*++f);return h}const L3=Ln("1f77b4ff7f0e2ca02cd627289467bd8c564be377c27f7f7fbcbd2217becf"),np=Ln("7fc97fbeaed4fdc086ffff99386cb0f0027fbf5b17666666"),c6=Ln("1b9e77d95f027570b3e7298a66a61ee6ab02a6761d666666"),u6=Ln("a6cee31f78b4b2df8a33a02cfb9a99e31a1cfdbf6fff7f00cab2d66a3d9affff99b15928"),rp=Ln("fbb4aeb3cde3ccebc5decbe4fed9a6ffffcce5d8bdfddaecf2f2f2"),B3=Ln("b3e2cdfdcdaccbd5e8f4cae4e6f5c9fff2aef1e2cccccccc"),l6=Ln("e41a1c377eb84daf4a984ea3ff7f00ffff33a65628f781bf999999"),h6=Ln("66c2a5fc8d628da0cbe78ac3a6d854ffd92fe5c494b3b3b3"),f6=Ln("8dd3c7ffffb3bebadafb807280b1d3fdb462b3de69fccde5d9d9d9bc80bdccebc5ffed6f"),d6=Ln("4e79a7f28e2ce1575976b7b259a14fedc949af7aa1ff9da79c755fbab0ab");function Wr(n){return bl(n[n.length-1])}var I3=new Array(3).concat("d8b365f5f5f55ab4ac","a6611adfc27d80cdc1018571","a6611adfc27df5f5f580cdc1018571","8c510ad8b365f6e8c3c7eae55ab4ac01665e","8c510ad8b365f6e8c3f5f5f5c7eae55ab4ac01665e","8c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e","8c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e","5430058c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e003c30","5430058c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e003c30").map(Ln);const R3=Wr(I3);var F3=new Array(3).concat("af8dc3f7f7f77fbf7b","7b3294c2a5cfa6dba0008837","7b3294c2a5cff7f7f7a6dba0008837","762a83af8dc3e7d4e8d9f0d37fbf7b1b7837","762a83af8dc3e7d4e8f7f7f7d9f0d37fbf7b1b7837","762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b7837","762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b7837","40004b762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b783700441b","40004b762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b783700441b").map(Ln);const dd=Wr(F3);var pd=new Array(3).concat("e9a3c9f7f7f7a1d76a","d01c8bf1b6dab8e1864dac26","d01c8bf1b6daf7f7f7b8e1864dac26","c51b7de9a3c9fde0efe6f5d0a1d76a4d9221","c51b7de9a3c9fde0eff7f7f7e6f5d0a1d76a4d9221","c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221","c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221","8e0152c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221276419","8e0152c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221276419").map(Ln);const ac=Wr(pd);var Wc=new Array(3).concat("998ec3f7f7f7f1a340","5e3c99b2abd2fdb863e66101","5e3c99b2abd2f7f7f7fdb863e66101","542788998ec3d8daebfee0b6f1a340b35806","542788998ec3d8daebf7f7f7fee0b6f1a340b35806","5427888073acb2abd2d8daebfee0b6fdb863e08214b35806","5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b35806","2d004b5427888073acb2abd2d8daebfee0b6fdb863e08214b358067f3b08","2d004b5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b358067f3b08").map(Ln);const ip=Wr(Wc);var U2=new Array(3).concat("ef8a62f7f7f767a9cf","ca0020f4a58292c5de0571b0","ca0020f4a582f7f7f792c5de0571b0","b2182bef8a62fddbc7d1e5f067a9cf2166ac","b2182bef8a62fddbc7f7f7f7d1e5f067a9cf2166ac","b2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac","b2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac","67001fb2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac053061","67001fb2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac053061").map(Ln);const P3=Wr(U2);var Zu=new Array(3).concat("ef8a62ffffff999999","ca0020f4a582bababa404040","ca0020f4a582ffffffbababa404040","b2182bef8a62fddbc7e0e0e09999994d4d4d","b2182bef8a62fddbc7ffffffe0e0e09999994d4d4d","b2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d","b2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d","67001fb2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d1a1a1a","67001fb2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d1a1a1a").map(Ln);const Y3=Wr(Zu);var j3=new Array(3).concat("fc8d59ffffbf91bfdb","d7191cfdae61abd9e92c7bb6","d7191cfdae61ffffbfabd9e92c7bb6","d73027fc8d59fee090e0f3f891bfdb4575b4","d73027fc8d59fee090ffffbfe0f3f891bfdb4575b4","d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4","d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4","a50026d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4313695","a50026d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4313695").map(Ln);const z3=Wr(j3);var gd=new Array(3).concat("fc8d59ffffbf91cf60","d7191cfdae61a6d96a1a9641","d7191cfdae61ffffbfa6d96a1a9641","d73027fc8d59fee08bd9ef8b91cf601a9850","d73027fc8d59fee08bffffbfd9ef8b91cf601a9850","d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850","d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850","a50026d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850006837","a50026d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850006837").map(Ln);const ua=Wr(gd);var U3=new Array(3).concat("fc8d59ffffbf99d594","d7191cfdae61abdda42b83ba","d7191cfdae61ffffbfabdda42b83ba","d53e4ffc8d59fee08be6f59899d5943288bd","d53e4ffc8d59fee08bffffbfe6f59899d5943288bd","d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd","d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd","9e0142d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd5e4fa2","9e0142d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd5e4fa2").map(Ln);const ap=Wr(U3);var $3=new Array(3).concat("e5f5f999d8c92ca25f","edf8fbb2e2e266c2a4238b45","edf8fbb2e2e266c2a42ca25f006d2c","edf8fbccece699d8c966c2a42ca25f006d2c","edf8fbccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45006d2c00441b").map(Ln);const H3=Wr($3);var W3=new Array(3).concat("e0ecf49ebcda8856a7","edf8fbb3cde38c96c688419d","edf8fbb3cde38c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d810f7c4d004b").map(Ln);const $2=Wr(W3);var H2=new Array(3).concat("e0f3dba8ddb543a2ca","f0f9e8bae4bc7bccc42b8cbe","f0f9e8bae4bc7bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe0868ac084081").map(Ln);const q3=Wr(H2);var mh=new Array(3).concat("fee8c8fdbb84e34a33","fef0d9fdcc8afc8d59d7301f","fef0d9fdcc8afc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301fb300007f0000").map(Ln);const W2=Wr(mh);var op=new Array(3).concat("ece2f0a6bddb1c9099","f6eff7bdc9e167a9cf02818a","f6eff7bdc9e167a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016c59014636").map(Ln);const V3=Wr(op);var Pa=new Array(3).concat("ece7f2a6bddb2b8cbe","f1eef6bdc9e174a9cf0570b0","f1eef6bdc9e174a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0045a8d023858").map(Ln);const p6=Wr(Pa);var q2=new Array(3).concat("e7e1efc994c7dd1c77","f1eef6d7b5d8df65b0ce1256","f1eef6d7b5d8df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125698004367001f").map(Ln);const oc=Wr(q2);var sc=new Array(3).concat("fde0ddfa9fb5c51b8a","feebe2fbb4b9f768a1ae017e","feebe2fbb4b9f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a017749006a").map(Ln);const qr=Wr(sc);var V2=new Array(3).concat("edf8b17fcdbb2c7fb8","ffffcca1dab441b6c4225ea8","ffffcca1dab441b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea8253494081d58").map(Ln);const G3=Wr(V2);var G2=new Array(3).concat("f7fcb9addd8e31a354","ffffccc2e69978c679238443","ffffccc2e69978c67931a354006837","ffffccd9f0a3addd8e78c67931a354006837","ffffccd9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443006837004529").map(Ln);const g6=Wr(G2);var sp=new Array(3).concat("fff7bcfec44fd95f0e","ffffd4fed98efe9929cc4c02","ffffd4fed98efe9929d95f0e993404","ffffd4fee391fec44ffe9929d95f0e993404","ffffd4fee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c02993404662506").map(Ln);const Z2=Wr(sp);var Cs=new Array(3).concat("ffeda0feb24cf03b20","ffffb2fecc5cfd8d3ce31a1c","ffffb2fecc5cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cbd0026800026").map(Ln);const cp=Wr(Cs);var Z3=new Array(3).concat("deebf79ecae13182bd","eff3ffbdd7e76baed62171b5","eff3ffbdd7e76baed63182bd08519c","eff3ffc6dbef9ecae16baed63182bd08519c","eff3ffc6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b508519c08306b").map(Ln);const X3=Wr(Z3);var Xu=new Array(3).concat("e5f5e0a1d99b31a354","edf8e9bae4b374c476238b45","edf8e9bae4b374c47631a354006d2c","edf8e9c7e9c0a1d99b74c47631a354006d2c","edf8e9c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45006d2c00441b").map(Ln);const _i=Wr(Xu);var qc=new Array(3).concat("f0f0f0bdbdbd636363","f7f7f7cccccc969696525252","f7f7f7cccccc969696636363252525","f7f7f7d9d9d9bdbdbd969696636363252525","f7f7f7d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525000000").map(Ln);const vh=Wr(qc);var is=new Array(3).concat("efedf5bcbddc756bb1","f2f0f7cbc9e29e9ac86a51a3","f2f0f7cbc9e29e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a354278f3f007d").map(Ln);const up=Wr(is);var lp=new Array(3).concat("fee0d2fc9272de2d26","fee5d9fcae91fb6a4acb181d","fee5d9fcae91fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181da50f1567000d").map(Ln);const X2=Wr(lp);var hp=new Array(3).concat("fee6cefdae6be6550d","feeddefdbe85fd8d3cd94701","feeddefdbe85fd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d94801a636037f2704").map(Ln);const fp=Wr(hp);function dp(n){return n=Math.max(0,Math.min(1,n)),"rgb("+Math.max(0,Math.min(255,Math.round(-4.54-n*(35.34-n*(2381.73-n*(6402.7-n*(7024.72-2710.57*n)))))))+", "+Math.max(0,Math.min(255,Math.round(32.49+n*(170.73+n*(52.82-n*(131.46-n*(176.58-67.37*n)))))))+", "+Math.max(0,Math.min(255,Math.round(81.24+n*(442.36-n*(2482.43-n*(6167.24-n*(6614.94-2475.67*n)))))))+")"}const y6=Kf(Aa(300,.5,0),Aa(-240,.5,1));var K2=Kf(Aa(-100,.75,.35),Aa(80,1.5,.8)),K3=Kf(Aa(260,.75,.35),Aa(80,1.5,.8)),pp=Aa();function Q2(n){(n<0||n>1)&&(n-=Math.floor(n));var a=Math.abs(n-.5);return pp.h=360*n-100,pp.s=1.5-1.5*a,pp.l=.8-.9*a,pp+""}var yd=Zi(),m6=Math.PI/3,Q3=2*Math.PI/3;function J3(n){var a;return n=(.5-n)*Math.PI,yd.r=255*(a=Math.sin(n))*a,yd.g=255*(a=Math.sin(n+m6))*a,yd.b=255*(a=Math.sin(n+Q3))*a,yd+""}function rr(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 gp(n){var a=n.length;return function(h){return n[Math.max(0,Math.min(a-1,Math.floor(h*a)))]}}const yp=gp(Ln("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725"));var v6=gp(Ln("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf")),yo=gp(Ln("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4")),_6=gp(Ln("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921"));function t4(n){return yr(di(n).call(document.documentElement))}var b6=0;function e4(){return new J2}function J2(){this._="@"+(++b6).toString(36)}function w6(n){return typeof n=="string"?new Dn([document.querySelectorAll(n)],[document.documentElement]):new Dn([n==null?[]:n],ia)}function x6(n,a){a==null&&(a=oo().touches);for(var h=0,f=a?a.length:0,m=new Array(f);h<f;++h)m[h]=bu(n,a[h]);return m}function or(n){return function(){return n}}J2.prototype=e4.prototype={constructor:J2,get:function(n){for(var a=this._;!(a in n);)if(!(n=n.parentNode))return;return n[a]},set:function(n,a){return n[this._]=a},remove:function(n){return this._ in n&&delete n[this._]},toString:function(){return this._}};var n4=Math.abs,va=Math.atan2,Ku=Math.cos,k6=Math.max,tm=Math.min,ea=Math.sin,_h=Math.sqrt,la=1e-12,cc=Math.PI,mp=cc/2,uc=2*cc;function r4(n){return n>1?0:n<-1?cc:Math.acos(n)}function i4(n){return n>=1?mp:n<=-1?-mp:Math.asin(n)}function em(n){return n.innerRadius}function nm(n){return n.outerRadius}function vp(n){return n.startAngle}function As(n){return n.endAngle}function rm(n){return n&&n.padAngle}function im(n,a,h,f,m,_,E,x){var A=h-n,N=f-a,B=E-m,Y=x-_,I=Y*A-B*N;if(!(I*I<la))return[n+(I=(B*(a-_)-Y*(n-m))/I)*A,a+I*N]}function Vc(n,a,h,f,m,_,E){var x=n-h,A=a-f,N=(E?_:-_)/_h(x*x+A*A),B=N*A,Y=-N*x,I=n+B,H=a+Y,W=h+B,J=f+Y,Q=(I+W)/2,Z=(H+J)/2,at=W-I,nt=J-H,dt=at*at+nt*nt,Yt=m-_,Rt=I*J-W*H,Qt=(nt<0?-1:1)*_h(k6(0,Yt*Yt*dt-Rt*Rt)),_e=(Rt*nt-at*Qt)/dt,Ut=(-Rt*at-nt*Qt)/dt,se=(Rt*nt+at*Qt)/dt,ft=(-Rt*at+nt*Qt)/dt,Et=_e-Q,ne=Ut-Z,Xt=se-Q,re=ft-Z;return Et*Et+ne*ne>Xt*Xt+re*re&&(_e=se,Ut=ft),{cx:_e,cy:Ut,x01:-B,y01:-Y,x11:_e*(m/Yt-1),y11:Ut*(m/Yt-1)}}function md(){var n=em,a=nm,h=or(0),f=null,m=vp,_=As,E=rm,x=null;function A(){var N,B,Y=+n.apply(this,arguments),I=+a.apply(this,arguments),H=m.apply(this,arguments)-mp,W=_.apply(this,arguments)-mp,J=n4(W-H),Q=W>H;if(x||(x=N=$s()),I<Y&&(B=I,I=Y,Y=B),I>la)if(J>uc-la)x.moveTo(I*Ku(H),I*ea(H)),x.arc(0,0,I,H,W,!Q),Y>la&&(x.moveTo(Y*Ku(W),Y*ea(W)),x.arc(0,0,Y,W,H,Q));else{var Z,at,nt=H,dt=W,Yt=H,Rt=W,Qt=J,_e=J,Ut=E.apply(this,arguments)/2,se=Ut>la&&(f?+f.apply(this,arguments):_h(Y*Y+I*I)),ft=tm(n4(I-Y)/2,+h.apply(this,arguments)),Et=ft,ne=ft;if(se>la){var Xt=i4(se/Y*ea(Ut)),re=i4(se/I*ea(Ut));(Qt-=2*Xt)>la?(Yt+=Xt*=Q?1:-1,Rt-=Xt):(Qt=0,Yt=Rt=(H+W)/2),(_e-=2*re)>la?(nt+=re*=Q?1:-1,dt-=re):(_e=0,nt=dt=(H+W)/2)}var Oe=I*Ku(nt),Ue=I*ea(nt),gn=Y*Ku(Rt),Qn=Y*ea(Rt);if(ft>la){var ir,Ke=I*Ku(dt),pr=I*ea(dt),Bn=Y*Ku(Yt),Nn=Y*ea(Yt);if(J<cc&&(ir=im(Oe,Ue,Bn,Nn,Ke,pr,gn,Qn))){var ur=Oe-ir[0],na=Ue-ir[1],Ri=Ke-ir[0],dc=pr-ir[1],au=1/ea(r4((ur*Ri+na*dc)/(_h(ur*ur+na*na)*_h(Ri*Ri+dc*dc)))/2),Fd=_h(ir[0]*ir[0]+ir[1]*ir[1]);Et=tm(ft,(Y-Fd)/(au-1)),ne=tm(ft,(I-Fd)/(au+1))}}_e>la?ne>la?(Z=Vc(Bn,Nn,Oe,Ue,I,ne,Q),at=Vc(Ke,pr,gn,Qn,I,ne,Q),x.moveTo(Z.cx+Z.x01,Z.cy+Z.y01),ne<ft?x.arc(Z.cx,Z.cy,ne,va(Z.y01,Z.x01),va(at.y01,at.x01),!Q):(x.arc(Z.cx,Z.cy,ne,va(Z.y01,Z.x01),va(Z.y11,Z.x11),!Q),x.arc(0,0,I,va(Z.cy+Z.y11,Z.cx+Z.x11),va(at.cy+at.y11,at.cx+at.x11),!Q),x.arc(at.cx,at.cy,ne,va(at.y11,at.x11),va(at.y01,at.x01),!Q))):(x.moveTo(Oe,Ue),x.arc(0,0,I,nt,dt,!Q)):x.moveTo(Oe,Ue),Y>la&&Qt>la?Et>la?(Z=Vc(gn,Qn,Ke,pr,Y,-Et,Q),at=Vc(Oe,Ue,Bn,Nn,Y,-Et,Q),x.lineTo(Z.cx+Z.x01,Z.cy+Z.y01),Et<ft?x.arc(Z.cx,Z.cy,Et,va(Z.y01,Z.x01),va(at.y01,at.x01),!Q):(x.arc(Z.cx,Z.cy,Et,va(Z.y01,Z.x01),va(Z.y11,Z.x11),!Q),x.arc(0,0,Y,va(Z.cy+Z.y11,Z.cx+Z.x11),va(at.cy+at.y11,at.cx+at.x11),Q),x.arc(at.cx,at.cy,Et,va(at.y11,at.x11),va(at.y01,at.x01),!Q))):x.arc(0,0,Y,Rt,Yt,Q):x.lineTo(gn,Qn)}else x.moveTo(0,0);if(x.closePath(),N)return x=null,N+""||null}return A.centroid=function(){var N=(+n.apply(this,arguments)+ +a.apply(this,arguments))/2,B=(+m.apply(this,arguments)+ +_.apply(this,arguments))/2-cc/2;return[Ku(B)*N,ea(B)*N]},A.innerRadius=function(N){return arguments.length?(n=typeof N=="function"?N:or(+N),A):n},A.outerRadius=function(N){return arguments.length?(a=typeof N=="function"?N:or(+N),A):a},A.cornerRadius=function(N){return arguments.length?(h=typeof N=="function"?N:or(+N),A):h},A.padRadius=function(N){return arguments.length?(f=N==null?null:typeof N=="function"?N:or(+N),A):f},A.startAngle=function(N){return arguments.length?(m=typeof N=="function"?N:or(+N),A):m},A.endAngle=function(N){return arguments.length?(_=typeof N=="function"?N:or(+N),A):_},A.padAngle=function(N){return arguments.length?(E=typeof N=="function"?N:or(+N),A):E},A.context=function(N){return arguments.length?(x=N==null?null:N,A):x},A}function _p(n){this._context=n}function bh(n){return new _p(n)}function vd(n){return n[0]}function Gc(n){return n[1]}function bp(){var n=vd,a=Gc,h=or(!0),f=null,m=bh,_=null;function E(x){var A,N,B,Y=x.length,I=!1;for(f==null&&(_=m(B=$s())),A=0;A<=Y;++A)!(A<Y&&h(N=x[A],A,x))===I&&((I=!I)?_.lineStart():_.lineEnd()),I&&_.point(+n(N,A,x),+a(N,A,x));if(B)return _=null,B+""||null}return E.x=function(x){return arguments.length?(n=typeof x=="function"?x:or(+x),E):n},E.y=function(x){return arguments.length?(a=typeof x=="function"?x:or(+x),E):a},E.defined=function(x){return arguments.length?(h=typeof x=="function"?x:or(!!x),E):h},E.curve=function(x){return arguments.length?(m=x,f!=null&&(_=m(f)),E):m},E.context=function(x){return arguments.length?(x==null?f=_=null:_=m(f=x),E):f},E}function _d(){var n=vd,a=null,h=or(0),f=Gc,m=or(!0),_=null,E=bh,x=null;function A(B){var Y,I,H,W,J,Q=B.length,Z=!1,at=new Array(Q),nt=new Array(Q);for(_==null&&(x=E(J=$s())),Y=0;Y<=Q;++Y){if(!(Y<Q&&m(W=B[Y],Y,B))===Z)if(Z=!Z)I=Y,x.areaStart(),x.lineStart();else{for(x.lineEnd(),x.lineStart(),H=Y-1;H>=I;--H)x.point(at[H],nt[H]);x.lineEnd(),x.areaEnd()}Z&&(at[Y]=+n(W,Y,B),nt[Y]=+h(W,Y,B),x.point(a?+a(W,Y,B):at[Y],f?+f(W,Y,B):nt[Y]))}if(J)return x=null,J+""||null}function N(){return bp().defined(m).curve(E).context(_)}return A.x=function(B){return arguments.length?(n=typeof B=="function"?B:or(+B),a=null,A):n},A.x0=function(B){return arguments.length?(n=typeof B=="function"?B:or(+B),A):n},A.x1=function(B){return arguments.length?(a=B==null?null:typeof B=="function"?B:or(+B),A):a},A.y=function(B){return arguments.length?(h=typeof B=="function"?B:or(+B),f=null,A):h},A.y0=function(B){return arguments.length?(h=typeof B=="function"?B:or(+B),A):h},A.y1=function(B){return arguments.length?(f=B==null?null:typeof B=="function"?B:or(+B),A):f},A.lineX0=A.lineY0=function(){return N().x(n).y(h)},A.lineY1=function(){return N().x(n).y(f)},A.lineX1=function(){return N().x(a).y(h)},A.defined=function(B){return arguments.length?(m=typeof B=="function"?B:or(!!B),A):m},A.curve=function(B){return arguments.length?(E=B,_!=null&&(x=E(_)),A):E},A.context=function(B){return arguments.length?(B==null?_=x=null:x=E(_=B),A):_},A}function bd(n,a){return a<n?-1:a>n?1:a>=n?0:NaN}function am(n){return n}function om(){var n=am,a=bd,h=null,f=or(0),m=or(uc),_=or(0);function E(x){var A,N,B,Y,I,H=x.length,W=0,J=new Array(H),Q=new Array(H),Z=+f.apply(this,arguments),at=Math.min(uc,Math.max(-uc,m.apply(this,arguments)-Z)),nt=Math.min(Math.abs(at)/H,_.apply(this,arguments)),dt=nt*(at<0?-1:1);for(A=0;A<H;++A)(I=Q[J[A]=A]=+n(x[A],A,x))>0&&(W+=I);for(a!=null?J.sort(function(Yt,Rt){return a(Q[Yt],Q[Rt])}):h!=null&&J.sort(function(Yt,Rt){return h(x[Yt],x[Rt])}),A=0,B=W?(at-H*dt)/W:0;A<H;++A,Z=Y)N=J[A],Y=Z+((I=Q[N])>0?I*B:0)+dt,Q[N]={data:x[N],index:A,value:I,startAngle:Z,endAngle:Y,padAngle:nt};return Q}return E.value=function(x){return arguments.length?(n=typeof x=="function"?x:or(+x),E):n},E.sortValues=function(x){return arguments.length?(a=x,h=null,E):a},E.sort=function(x){return arguments.length?(h=x,a=null,E):h},E.startAngle=function(x){return arguments.length?(f=typeof x=="function"?x:or(+x),E):f},E.endAngle=function(x){return arguments.length?(m=typeof x=="function"?x:or(+x),E):m},E.padAngle=function(x){return arguments.length?(_=typeof x=="function"?x:or(+x),E):_},E}_p.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,a){switch(n=+n,a=+a,this._point){case 0:this._point=1,this._line?this._context.lineTo(n,a):this._context.moveTo(n,a);break;case 1:this._point=2;default:this._context.lineTo(n,a)}}};var sm=um(bh);function cm(n){this._curve=n}function um(n){function a(h){return new cm(n(h))}return a._curve=n,a}function Qu(n){var a=n.curve;return n.angle=n.x,delete n.x,n.radius=n.y,delete n.y,n.curve=function(h){return arguments.length?a(um(h)):a()._curve},n}function lm(){return Qu(bp().curve(sm))}function hm(){var n=_d().curve(sm),a=n.curve,h=n.lineX0,f=n.lineX1,m=n.lineY0,_=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 Qu(h())},delete n.lineX0,n.lineEndAngle=function(){return Qu(f())},delete n.lineX1,n.lineInnerRadius=function(){return Qu(m())},delete n.lineY0,n.lineOuterRadius=function(){return Qu(_())},delete n.lineY1,n.curve=function(E){return arguments.length?a(um(E)):a()._curve},n}function wh(n,a){return[(a=+a)*Math.cos(n-=Math.PI/2),a*Math.sin(n)]}cm.prototype={areaStart:function(){this._curve.areaStart()},areaEnd:function(){this._curve.areaEnd()},lineStart:function(){this._curve.lineStart()},lineEnd:function(){this._curve.lineEnd()},point:function(n,a){this._curve.point(a*Math.sin(n),a*-Math.cos(n))}};var Zc=Array.prototype.slice;function Li(n){return n.source}function a4(n){return n.target}function Xc(n){var a=Li,h=a4,f=vd,m=Gc,_=null;function E(){var x,A=Zc.call(arguments),N=a.apply(this,A),B=h.apply(this,A);if(_||(_=x=$s()),n(_,+f.apply(this,(A[0]=N,A)),+m.apply(this,A),+f.apply(this,(A[0]=B,A)),+m.apply(this,A)),x)return _=null,x+""||null}return E.source=function(x){return arguments.length?(a=x,E):a},E.target=function(x){return arguments.length?(h=x,E):h},E.x=function(x){return arguments.length?(f=typeof x=="function"?x:or(+x),E):f},E.y=function(x){return arguments.length?(m=typeof x=="function"?x:or(+x),E):m},E.context=function(x){return arguments.length?(_=x==null?null:x,E):_},E}function o4(n,a,h,f,m){n.moveTo(a,h),n.bezierCurveTo(a=(a+f)/2,h,a,m,f,m)}function s4(n,a,h,f,m){n.moveTo(a,h),n.bezierCurveTo(a,h=(h+m)/2,f,h,f,m)}function c4(n,a,h,f,m){var _=wh(a,h),E=wh(a,h=(h+m)/2),x=wh(f,h),A=wh(f,m);n.moveTo(_[0],_[1]),n.bezierCurveTo(E[0],E[1],x[0],x[1],A[0],A[1])}function wd(){return Xc(o4)}function u4(){return Xc(s4)}function Kc(){var n=Xc(c4);return n.angle=n.x,delete n.x,n.radius=n.y,delete n.y,n}const Xa={draw:function(n,a){var h=Math.sqrt(a/cc);n.moveTo(h,0),n.arc(0,0,h,0,uc)}},l4={draw:function(n,a){var h=Math.sqrt(a/5)/2;n.moveTo(-3*h,-h),n.lineTo(-h,-h),n.lineTo(-h,-3*h),n.lineTo(h,-3*h),n.lineTo(h,-h),n.lineTo(3*h,-h),n.lineTo(3*h,h),n.lineTo(h,h),n.lineTo(h,3*h),n.lineTo(-h,3*h),n.lineTo(-h,h),n.lineTo(-3*h,h),n.closePath()}};var h4=Math.sqrt(1/3),Bi=2*h4;const _a={draw:function(n,a){var h=Math.sqrt(a/Bi),f=h*h4;n.moveTo(0,-h),n.lineTo(f,0),n.lineTo(0,h),n.lineTo(-f,0),n.closePath()}};var Ii=Math.sin(cc/10)/Math.sin(7*cc/10),Ms=Math.sin(uc/10)*Ii,f4=-Math.cos(uc/10)*Ii;const wp={draw:function(n,a){var h=Math.sqrt(.8908130915292852*a),f=Ms*h,m=f4*h;n.moveTo(0,-h),n.lineTo(f,m);for(var _=1;_<5;++_){var E=uc*_/5,x=Math.cos(E),A=Math.sin(E);n.lineTo(A*h,-x*h),n.lineTo(x*f-A*m,A*f+x*m)}n.closePath()}},fm={draw:function(n,a){var h=Math.sqrt(a),f=-h/2;n.rect(f,f,h,h)}};var xh=Math.sqrt(3);const dm={draw:function(n,a){var h=-Math.sqrt(a/(3*xh));n.moveTo(0,2*h),n.lineTo(-xh*h,-h),n.lineTo(xh*h,-h),n.closePath()}};var mo=-.5,vo=Math.sqrt(3)/2,xp=1/Math.sqrt(12),kh=3*(xp/2+1);const Ju={draw:function(n,a){var h=Math.sqrt(a/kh),f=h/2,m=h*xp,_=f,E=h*xp+h,x=-_,A=E;n.moveTo(f,m),n.lineTo(_,E),n.lineTo(x,A),n.lineTo(mo*f-vo*m,vo*f+mo*m),n.lineTo(mo*_-vo*E,vo*_+mo*E),n.lineTo(mo*x-vo*A,vo*x+mo*A),n.lineTo(mo*f+vo*m,mo*m-vo*f),n.lineTo(mo*_+vo*E,mo*E-vo*_),n.lineTo(mo*x+vo*A,mo*A-vo*x),n.closePath()}};var T6=[Xa,l4,_a,fm,wp,dm,Ju];function d4(){var n=or(Xa),a=or(64),h=null;function f(){var m;if(h||(h=m=$s()),n.apply(this,arguments).draw(h,+a.apply(this,arguments)),m)return h=null,m+""||null}return f.type=function(m){return arguments.length?(n=typeof m=="function"?m:or(m),f):n},f.size=function(m){return arguments.length?(a=typeof m=="function"?m:or(+m),f):a},f.context=function(m){return arguments.length?(h=m==null?null:m,f):h},f}function Ya(){}function qn(n,a,h){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+a)/6,(n._y0+4*n._y1+h)/6)}function xd(n){this._context=n}function Th(n){return new xd(n)}function pm(n){this._context=n}function gm(n){return new pm(n)}function p4(n){this._context=n}function ym(n){return new p4(n)}function mm(n,a){this._basis=new xd(n),this._beta=a}xd.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:qn(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,a){switch(n=+n,a=+a,this._point){case 0:this._point=1,this._line?this._context.lineTo(n,a):this._context.moveTo(n,a);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:qn(this,n,a)}this._x0=this._x1,this._x1=n,this._y0=this._y1,this._y1=a}},pm.prototype={areaStart:Ya,areaEnd:Ya,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,a){switch(n=+n,a=+a,this._point){case 0:this._point=1,this._x2=n,this._y2=a;break;case 1:this._point=2,this._x3=n,this._y3=a;break;case 2:this._point=3,this._x4=n,this._y4=a,this._context.moveTo((this._x0+4*this._x1+n)/6,(this._y0+4*this._y1+a)/6);break;default:qn(this,n,a)}this._x0=this._x1,this._x1=n,this._y0=this._y1,this._y1=a}},p4.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,a){switch(n=+n,a=+a,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var h=(this._x0+4*this._x1+n)/6,f=(this._y0+4*this._y1+a)/6;this._line?this._context.lineTo(h,f):this._context.moveTo(h,f);break;case 3:this._point=4;default:qn(this,n,a)}this._x0=this._x1,this._x1=n,this._y0=this._y1,this._y1=a}},mm.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var n=this._x,a=this._y,h=n.length-1;if(h>0)for(var f,m=n[0],_=a[0],E=n[h]-m,x=a[h]-_,A=-1;++A<=h;)f=A/h,this._basis.point(this._beta*n[A]+(1-this._beta)*(m+f*E),this._beta*a[A]+(1-this._beta)*(_+f*x));this._x=this._y=null,this._basis.lineEnd()},point:function(n,a){this._x.push(+n),this._y.push(+a)}};const g4=function n(a){function h(f){return a===1?new xd(f):new mm(f,a)}return h.beta=function(f){return n(+f)},h}(.85);function kd(n,a,h){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-a),n._y2+n._k*(n._y1-h),n._x2,n._y2)}function kp(n,a){this._context=n,this._k=(1-a)/6}kp.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:kd(this,this._x1,this._y1)}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(n,a){switch(n=+n,a=+a,this._point){case 0:this._point=1,this._line?this._context.lineTo(n,a):this._context.moveTo(n,a);break;case 1:this._point=2,this._x1=n,this._y1=a;break;case 2:this._point=3;default:kd(this,n,a)}this._x0=this._x1,this._x1=this._x2,this._x2=n,this._y0=this._y1,this._y1=this._y2,this._y2=a}};const y4=function n(a){function h(f){return new kp(f,a)}return h.tension=function(f){return n(+f)},h}(0);function vm(n,a){this._context=n,this._k=(1-a)/6}vm.prototype={areaStart:Ya,areaEnd:Ya,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,a){switch(n=+n,a=+a,this._point){case 0:this._point=1,this._x3=n,this._y3=a;break;case 1:this._point=2,this._context.moveTo(this._x4=n,this._y4=a);break;case 2:this._point=3,this._x5=n,this._y5=a;break;default:kd(this,n,a)}this._x0=this._x1,this._x1=this._x2,this._x2=n,this._y0=this._y1,this._y1=this._y2,this._y2=a}};const m4=function n(a){function h(f){return new vm(f,a)}return h.tension=function(f){return n(+f)},h}(0);function _m(n,a){this._context=n,this._k=(1-a)/6}_m.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,a){switch(n=+n,a=+a,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:kd(this,n,a)}this._x0=this._x1,this._x1=this._x2,this._x2=n,this._y0=this._y1,this._y1=this._y2,this._y2=a}};const v4=function n(a){function h(f){return new _m(f,a)}return h.tension=function(f){return n(+f)},h}(0);function bm(n,a,h){var f=n._x1,m=n._y1,_=n._x2,E=n._y2;if(n._l01_a>la){var x=2*n._l01_2a+3*n._l01_a*n._l12_a+n._l12_2a,A=3*n._l01_a*(n._l01_a+n._l12_a);f=(f*x-n._x0*n._l12_2a+n._x2*n._l01_2a)/A,m=(m*x-n._y0*n._l12_2a+n._y2*n._l01_2a)/A}if(n._l23_a>la){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);_=(_*N+n._x1*n._l23_2a-a*n._l12_2a)/B,E=(E*N+n._y1*n._l23_2a-h*n._l12_2a)/B}n._context.bezierCurveTo(f,m,_,E,n._x2,n._y2)}function wm(n,a){this._context=n,this._alpha=a}wm.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,a){if(n=+n,a=+a,this._point){var h=this._x2-n,f=this._y2-a;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(h*h+f*f,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(n,a):this._context.moveTo(n,a);break;case 1:this._point=2;break;case 2:this._point=3;default:bm(this,n,a)}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=a}};const Tp=function n(a){function h(f){return a?new wm(f,a):new kp(f,0)}return h.alpha=function(f){return n(+f)},h}(.5);function Ep(n,a){this._context=n,this._alpha=a}Ep.prototype={areaStart:Ya,areaEnd:Ya,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,a){if(n=+n,a=+a,this._point){var h=this._x2-n,f=this._y2-a;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(h*h+f*f,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=n,this._y3=a;break;case 1:this._point=2,this._context.moveTo(this._x4=n,this._y4=a);break;case 2:this._point=3,this._x5=n,this._y5=a;break;default:bm(this,n,a)}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=a}};const xm=function n(a){function h(f){return a?new Ep(f,a):new vm(f,0)}return h.alpha=function(f){return n(+f)},h}(.5);function Sp(n,a){this._context=n,this._alpha=a}Sp.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,a){if(n=+n,a=+a,this._point){var h=this._x2-n,f=this._y2-a;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(h*h+f*f,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:bm(this,n,a)}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=a}};const Qc=function n(a){function h(f){return a?new Sp(f,a):new _m(f,0)}return h.alpha=function(f){return n(+f)},h}(.5);function Ds(n){this._context=n}function E6(n){return new Ds(n)}function Td(n){return n<0?-1:1}function _4(n,a,h){var f=n._x1-n._x0,m=a-n._x1,_=(n._y1-n._y0)/(f||m<0&&-0),E=(h-n._y1)/(m||f<0&&-0),x=(_*m+E*f)/(f+m);return(Td(_)+Td(E))*Math.min(Math.abs(_),Math.abs(E),.5*Math.abs(x))||0}function Cp(n,a){var h=n._x1-n._x0;return h?(3*(n._y1-n._y0)/h-a)/2:a}function ba(n,a,h){var f=n._x0,m=n._y0,_=n._x1,E=n._y1,x=(_-f)/3;n._context.bezierCurveTo(f+x,m+x*a,_-x,E-x*h,_,E)}function Jc(n){this._context=n}function lc(n){this._context=new Eh(n)}function Eh(n){this._context=n}function Sh(n){return new Jc(n)}function km(n){return new lc(n)}function b4(n){this._context=n}function Mi(n){var a,h,f=n.length-1,m=new Array(f),_=new Array(f),E=new Array(f);for(m[0]=0,_[0]=2,E[0]=n[0]+2*n[1],a=1;a<f-1;++a)m[a]=1,_[a]=4,E[a]=4*n[a]+2*n[a+1];for(m[f-1]=2,_[f-1]=7,E[f-1]=8*n[f-1]+n[f],a=1;a<f;++a)h=m[a]/_[a-1],_[a]-=h,E[a]-=h*E[a-1];for(m[f-1]=E[f-1]/_[f-1],a=f-2;a>=0;--a)m[a]=(E[a]-m[a+1])/_[a];for(_[f-1]=(n[f]+m[f-1])/2,a=0;a<f-1;++a)_[a]=2*n[a+1]-m[a+1];return[m,_]}function w4(n){return new b4(n)}function Ed(n,a){this._context=n,this._t=a}function x4(n){return new Ed(n,.5)}function k4(n){return new Ed(n,0)}function Ch(n){return new Ed(n,1)}function tl(n,a){if((m=n.length)>1)for(var h,f,m,_=1,E=n[a[0]],x=E.length;_<m;++_)for(f=E,E=n[a[_]],h=0;h<x;++h)E[h][1]+=E[h][0]=isNaN(f[h][1])?f[h][0]:f[h][1]}function Ah(n){for(var a=n.length,h=new Array(a);--a>=0;)h[a]=a;return h}function tn(n,a){return n[a]}function S6(){var n=or([]),a=Ah,h=tl,f=tn;function m(_){var E,x,A=n.apply(this,arguments),N=_.length,B=A.length,Y=new Array(B);for(E=0;E<B;++E){for(var I,H=A[E],W=Y[E]=new Array(N),J=0;J<N;++J)W[J]=I=[0,+f(_[J],H,J,_)],I.data=_[J];W.key=H}for(E=0,x=a(Y);E<B;++E)Y[x[E]].index=E;return h(Y,x),Y}return m.keys=function(_){return arguments.length?(n=typeof _=="function"?_:or(Zc.call(_)),m):n},m.value=function(_){return arguments.length?(f=typeof _=="function"?_:or(+_),m):f},m.order=function(_){return arguments.length?(a=_==null?Ah:typeof _=="function"?_:or(Zc.call(_)),m):a},m.offset=function(_){return arguments.length?(h=_==null?tl:_,m):h},m}function Sd(n,a){if((f=n.length)>0){for(var h,f,m,_=0,E=n[0].length;_<E;++_){for(m=h=0;h<f;++h)m+=n[h][_][1]||0;if(m)for(h=0;h<f;++h)n[h][_][1]/=m}tl(n,a)}}function tu(n,a){if((x=n.length)>0)for(var h,f,m,_,E,x,A=0,N=n[a[0]].length;A<N;++A)for(_=E=0,h=0;h<x;++h)(m=(f=n[a[h]][A])[1]-f[0])>0?(f[0]=_,f[1]=_+=m):m<0?(f[1]=E,f[0]=E+=m):(f[0]=0,f[1]=m)}function Ns(n,a){if((h=n.length)>0){for(var h,f=0,m=n[a[0]],_=m.length;f<_;++f){for(var E=0,x=0;E<h;++E)x+=n[E][f][1]||0;m[f][1]+=m[f][0]=-x/2}tl(n,a)}}function T4(n,a){if((m=n.length)>0&&(f=(h=n[a[0]]).length)>0){for(var h,f,m,_=0,E=1;E<f;++E){for(var x=0,A=0,N=0;x<m;++x){for(var B=n[a[x]],Y=B[E][1]||0,I=(Y-(B[E-1][1]||0))/2,H=0;H<x;++H){var W=n[a[H]];I+=(W[E][1]||0)-(W[E-1][1]||0)}A+=Y,N+=I*Y}h[E-1][1]+=h[E-1][0]=_,A&&(_-=N/A)}h[E-1][1]+=h[E-1][0]=_,tl(n,a)}}function Tm(n){var a=n.map(E4);return Ah(n).sort(function(h,f){return a[h]-a[f]})}function E4(n){for(var a,h=-1,f=0,m=n.length,_=-1/0;++h<m;)(a=+n[h][1])>_&&(_=a,f=h);return f}function Em(n){var a=n.map(Ap);return Ah(n).sort(function(h,f){return a[h]-a[f]})}function Ap(n){for(var a,h=0,f=-1,m=n.length;++f<m;)(a=+n[f][1])&&(h+=a);return h}function C6(n){return Em(n).reverse()}function hc(n){var a,h,f=n.length,m=n.map(Ap),_=Tm(n),E=0,x=0,A=[],N=[];for(a=0;a<f;++a)h=_[a],E<x?(E+=m[h],A.push(h)):(x+=m[h],N.push(h));return N.reverse().concat(A)}function Cd(n){return Ah(n).reverse()}Ds.prototype={areaStart:Ya,areaEnd:Ya,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(n,a){n=+n,a=+a,this._point?this._context.lineTo(n,a):(this._point=1,this._context.moveTo(n,a))}},Jc.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:ba(this,this._t0,Cp(this,this._t0))}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(n,a){var h=NaN;if(a=+a,(n=+n)!==this._x1||a!==this._y1){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(n,a):this._context.moveTo(n,a);break;case 1:this._point=2;break;case 2:this._point=3,ba(this,Cp(this,h=_4(this,n,a)),h);break;default:ba(this,this._t0,h=_4(this,n,a))}this._x0=this._x1,this._x1=n,this._y0=this._y1,this._y1=a,this._t0=h}}},(lc.prototype=Object.create(Jc.prototype)).point=function(n,a){Jc.prototype.point.call(this,a,n)},Eh.prototype={moveTo:function(n,a){this._context.moveTo(a,n)},closePath:function(){this._context.closePath()},lineTo:function(n,a){this._context.lineTo(a,n)},bezierCurveTo:function(n,a,h,f,m,_){this._context.bezierCurveTo(a,n,f,h,_,m)}},b4.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var n=this._x,a=this._y,h=n.length;if(h)if(this._line?this._context.lineTo(n[0],a[0]):this._context.moveTo(n[0],a[0]),h===2)this._context.lineTo(n[1],a[1]);else for(var f=Mi(n),m=Mi(a),_=0,E=1;E<h;++_,++E)this._context.bezierCurveTo(f[0][_],m[0][_],f[1][_],m[1][_],n[E],a[E]);(this._line||this._line!==0&&h===1)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(n,a){this._x.push(+n),this._y.push(+a)}},Ed.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&this._point===2&&this._context.lineTo(this._x,this._y),(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(n,a){switch(n=+n,a=+a,this._point){case 0:this._point=1,this._line?this._context.lineTo(n,a):this._context.moveTo(n,a);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,a),this._context.lineTo(n,a);else{var h=this._x*(1-this._t)+n*this._t;this._context.lineTo(h,this._y),this._context.lineTo(h,a)}}this._x=n,this._y=a}};var eu="%Y-%m-%dT%H:%M:%S.%LZ",Ad=Date.prototype.toISOString?function(n){return n.toISOString()}:z1(eu);const S4=Ad;var C4=+new Date("2000-01-01T00:00:00.000Z")?function(n){var a=new Date(n);return isNaN(a)?null:a}:sd(eu);const Sm=C4;function A4(n,a,h){var f=new qt,m=a;return a==null?(f.restart(n,a,h),f):(a=+a,h=h==null?G():+h,f.restart(function _(E){E+=m,f.restart(_,m+=a,h),n(E)},a,h),f)}function Cm(n){return function(){return n}}function M4(n){return n[0]}function D4(n){return n[1]}function Md(){this._=null}function Mh(n){n.U=n.C=n.L=n.R=n.P=n.N=null}function nu(n,a){var h=a,f=a.R,m=h.U;m?m.L===h?m.L=f:m.R=f:n._=f,f.U=m,h.U=f,h.R=f.L,h.R&&(h.R.U=h),f.L=h}function Dh(n,a){var h=a,f=a.L,m=h.U;m?m.L===h?m.L=f:m.R=f:n._=f,f.U=m,h.U=f,h.L=f.R,h.L&&(h.L.U=h),f.R=h}function N4(n){for(;n.L;)n=n.L;return n}Md.prototype={constructor:Md,insert:function(n,a){var h,f,m;if(n){if(a.P=n,a.N=n.N,n.N&&(n.N.P=a),n.N=a,n.R){for(n=n.R;n.L;)n=n.L;n.L=a}else n.R=a;h=n}else this._?(n=N4(this._),a.P=null,a.N=n,n.P=n.L=a,h=n):(a.P=a.N=null,this._=a,h=null);for(a.L=a.R=null,a.U=h,a.C=!0,n=a;h&&h.C;)h===(f=h.U).L?(m=f.R)&&m.C?(h.C=m.C=!1,f.C=!0,n=f):(n===h.R&&(nu(this,h),h=(n=h).U),h.C=!1,f.C=!0,Dh(this,f)):(m=f.L)&&m.C?(h.C=m.C=!1,f.C=!0,n=f):(n===h.L&&(Dh(this,h),h=(n=h).U),h.C=!1,f.C=!0,nu(this,f)),h=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 a,h,f,m=n.U,_=n.L,E=n.R;if(h=_?E?N4(E):_:E,m?m.L===n?m.L=h:m.R=h:this._=h,_&&E?(f=h.C,h.C=n.C,h.L=_,_.U=h,h!==E?(m=h.U,h.U=n.U,n=h.R,m.L=n,h.R=E,E.U=h):(h.U=m,m=h,n=h.R)):(f=n.C,n=h),n&&(n.U=m),!f)if(n&&n.C)n.C=!1;else{do{if(n===this._)break;if(n===m.L){if((a=m.R).C&&(a.C=!1,m.C=!0,nu(this,m),a=m.R),a.L&&a.L.C||a.R&&a.R.C){a.R&&a.R.C||(a.L.C=!1,a.C=!0,Dh(this,a),a=m.R),a.C=m.C,m.C=a.R.C=!1,nu(this,m),n=this._;break}}else if((a=m.L).C&&(a.C=!1,m.C=!0,Dh(this,m),a=m.L),a.L&&a.L.C||a.R&&a.R.C){a.L&&a.L.C||(a.R.C=!1,a.C=!0,nu(this,a),a=m.L),a.C=m.C,m.C=a.L.C=!1,Dh(this,m),n=this._;break}a.C=!0,n=m,m=m.U}while(!n.C);n&&(n.C=!1)}}};const O4=Md;function Dd(n,a,h,f){var m=[null,null],_=ha.push(m)-1;return m.left=n,m.right=a,h&&ru(m,n,a,h),f&&ru(m,a,n,f),_o[n.index].halfedges.push(_),_o[a.index].halfedges.push(_),m}function Nd(n,a,h){var f=[a,h];return f.left=n,f}function ru(n,a,h,f){n[0]||n[1]?n.left===h?n[1]=f:n[0]=f:(n[0]=f,n.left=a,n.right=h)}function A6(n,a,h,f,m){var _,E=n[0],x=n[1],A=E[0],N=E[1],B=0,Y=1,I=x[0]-A,H=x[1]-N;if(_=a-A,I||!(_>0)){if(_/=I,I<0){if(_<B)return;_<Y&&(Y=_)}else if(I>0){if(_>Y)return;_>B&&(B=_)}if(_=f-A,I||!(_<0)){if(_/=I,I<0){if(_>Y)return;_>B&&(B=_)}else if(I>0){if(_<B)return;_<Y&&(Y=_)}if(_=h-N,H||!(_>0)){if(_/=H,H<0){if(_<B)return;_<Y&&(Y=_)}else if(H>0){if(_>Y)return;_>B&&(B=_)}if(_=m-N,H||!(_<0)){if(_/=H,H<0){if(_>Y)return;_>B&&(B=_)}else if(H>0){if(_<B)return;_<Y&&(Y=_)}return!(B>0||Y<1)||(B>0&&(n[0]=[A+B*I,N+B*H]),Y<1&&(n[1]=[A+Y*I,N+Y*H]),!0)}}}}}function Os(n,a,h,f,m){var _=n[1];if(_)return!0;var E,x,A=n[0],N=n.left,B=n.right,Y=N[0],I=N[1],H=B[0],W=B[1],J=(Y+H)/2,Q=(I+W)/2;if(W===I){if(J<a||J>=f)return;if(Y>H){if(A){if(A[1]>=m)return}else A=[J,h];_=[J,m]}else{if(A){if(A[1]<h)return}else A=[J,m];_=[J,h]}}else if(x=Q-(E=(Y-H)/(W-I))*J,E<-1||E>1)if(Y>H){if(A){if(A[1]>=m)return}else A=[(h-x)/E,h];_=[(m-x)/E,m]}else{if(A){if(A[1]<h)return}else A=[(m-x)/E,m];_=[(h-x)/E,h]}else if(I<W){if(A){if(A[0]>=f)return}else A=[a,E*a+x];_=[f,E*f+x]}else{if(A){if(A[0]<a)return}else A=[f,E*f+x];_=[a,E*a+x]}return n[0]=A,n[1]=_,!0}function M6(n,a){var h=n.site,f=a.left,m=a.right;return h===m&&(m=f,f=h),m?Math.atan2(m[1]-f[1],m[0]-f[0]):(h===f?(f=a[1],m=a[0]):(f=a[0],m=a[1]),Math.atan2(f[0]-m[0],m[1]-f[1]))}function L4(n,a){return a[+(a.left!==n.site)]}function D6(n,a){return a[+(a.left===n.site)]}var Mp,B4=[];function N6(){Mh(this),this.x=this.y=this.arc=this.site=this.cy=null}function Nh(n){var a=n.P,h=n.N;if(a&&h){var f=a.site,m=n.site,_=h.site;if(f!==_){var E=m[0],x=m[1],A=f[0]-E,N=f[1]-x,B=_[0]-E,Y=_[1]-x,I=2*(A*Y-N*B);if(!(I>=-ue)){var H=A*A+N*N,W=B*B+Y*Y,J=(Y*H-N*W)/I,Q=(A*W-B*H)/I,Z=B4.pop()||new N6;Z.arc=n,Z.site=m,Z.x=J+E,Z.y=(Z.cy=Q+x)+Math.sqrt(J*J+Q*Q),n.circle=Z;for(var at=null,nt=Ld._;nt;)if(Z.y<nt.y||Z.y===nt.y&&Z.x<=nt.x){if(!nt.L){at=nt.P;break}nt=nt.L}else{if(!nt.R){at=nt;break}nt=nt.R}Ld.insert(at,Z),at||(Mp=Z)}}}}function Oh(n){var a=n.circle;a&&(a.P||(Mp=a.N),Ld.remove(a),B4.push(a),Mh(a),n.circle=null)}var I4=[];function O6(){Mh(this),this.edge=this.site=this.circle=null}function Od(n){var a=I4.pop()||new O6;return a.site=n,a}function Am(n){Oh(n),Lh.remove(n),I4.push(n),Mh(n)}function L6(n){var a=n.circle,h=a.x,f=a.cy,m=[h,f],_=n.P,E=n.N,x=[n];Am(n);for(var A=_;A.circle&&Math.abs(h-A.circle.x)<zr&&Math.abs(f-A.circle.cy)<zr;)_=A.P,x.unshift(A),Am(A),A=_;x.unshift(A),Oh(A);for(var N=E;N.circle&&Math.abs(h-N.circle.x)<zr&&Math.abs(f-N.circle.cy)<zr;)E=N.N,x.push(N),Am(N),N=E;x.push(N),Oh(N);var B,Y=x.length;for(B=1;B<Y;++B)N=x[B],A=x[B-1],ru(N.edge,A.site,N.site,m);A=x[0],(N=x[Y-1]).edge=Dd(A.site,N.site,null,m),Nh(A),Nh(N)}function B6(n){for(var a,h,f,m,_=n[0],E=n[1],x=Lh._;x;)if((f=R4(x,E)-_)>zr)x=x.L;else{if(!((m=_-I6(x,E))>zr)){f>-zr?(a=x.P,h=x):m>-zr?(a=x,h=x.N):a=h=x;break}if(!x.R){a=x;break}x=x.R}(function(Yt){_o[Yt.index]={site:Yt,halfedges:[]}})(n);var A=Od(n);if(Lh.insert(a,A),a||h){if(a===h)return Oh(a),h=Od(a.site),Lh.insert(A,h),A.edge=h.edge=Dd(a.site,A.site),Nh(a),void Nh(h);if(h){Oh(a),Oh(h);var N=a.site,B=N[0],Y=N[1],I=n[0]-B,H=n[1]-Y,W=h.site,J=W[0]-B,Q=W[1]-Y,Z=2*(I*Q-H*J),at=I*I+H*H,nt=J*J+Q*Q,dt=[(Q*at-H*nt)/Z+B,(I*nt-J*at)/Z+Y];ru(h.edge,N,W,dt),A.edge=Dd(N,n,null,dt),h.edge=Dd(n,W,null,dt),Nh(a),Nh(h)}else A.edge=Dd(a.site,A.site)}}function R4(n,a){var h=n.site,f=h[0],m=h[1],_=m-a;if(!_)return f;var E=n.P;if(!E)return-1/0;var x=(h=E.site)[0],A=h[1],N=A-a;if(!N)return x;var B=x-f,Y=1/_-1/N,I=B/N;return Y?(-I+Math.sqrt(I*I-2*Y*(B*B/(-2*N)-A+N/2+m-_/2)))/Y+f:(f+x)/2}function I6(n,a){var h=n.N;if(h)return R4(h,a);var f=n.site;return f[1]===a?f[0]:1/0}var Lh,_o,Ld,ha,zr=1e-6,ue=1e-12;function qe(n,a,h){return(n[0]-h[0])*(a[1]-n[1])-(n[0]-a[0])*(h[1]-n[1])}function Bd(n,a){return a[1]-n[1]||a[0]-n[0]}function iu(n,a){var h,f,m,_=n.sort(Bd).pop();for(ha=[],_o=new Array(n.length),Lh=new O4,Ld=new O4;;)if(m=Mp,_&&(!m||_[1]<m.y||_[1]===m.y&&_[0]<m.x))_[0]===h&&_[1]===f||(B6(_),h=_[0],f=_[1]),_=n.pop();else{if(!m)break;L6(m.arc)}if(function(){for(var B,Y,I,H,W=0,J=_o.length;W<J;++W)if((B=_o[W])&&(H=(Y=B.halfedges).length)){var Q=new Array(H),Z=new Array(H);for(I=0;I<H;++I)Q[I]=I,Z[I]=M6(B,ha[Y[I]]);for(Q.sort(function(at,nt){return Z[nt]-Z[at]}),I=0;I<H;++I)Z[I]=Y[Q[I]];for(I=0;I<H;++I)Y[I]=Z[I]}}(),a){var E=+a[0][0],x=+a[0][1],A=+a[1][0],N=+a[1][1];(function(B,Y,I,H){for(var W,J=ha.length;J--;)Os(W=ha[J],B,Y,I,H)&&A6(W,B,Y,I,H)&&(Math.abs(W[0][0]-W[1][0])>zr||Math.abs(W[0][1]-W[1][1])>zr)||delete ha[J]})(E,x,A,N),function(B,Y,I,H){var W,J,Q,Z,at,nt,dt,Yt,Rt,Qt,_e,Ut,se=_o.length,ft=!0;for(W=0;W<se;++W)if(J=_o[W]){for(Q=J.site,Z=(at=J.halfedges).length;Z--;)ha[at[Z]]||at.splice(Z,1);for(Z=0,nt=at.length;Z<nt;)_e=(Qt=D6(J,ha[at[Z]]))[0],Ut=Qt[1],Yt=(dt=L4(J,ha[at[++Z%nt]]))[0],Rt=dt[1],(Math.abs(_e-Yt)>zr||Math.abs(Ut-Rt)>zr)&&(at.splice(Z,0,ha.push(Nd(Q,Qt,Math.abs(_e-B)<zr&&H-Ut>zr?[B,Math.abs(Yt-B)<zr?Rt:H]:Math.abs(Ut-H)<zr&&I-_e>zr?[Math.abs(Rt-H)<zr?Yt:I,H]:Math.abs(_e-I)<zr&&Ut-Y>zr?[I,Math.abs(Yt-I)<zr?Rt:Y]:Math.abs(Ut-Y)<zr&&_e-B>zr?[Math.abs(Rt-Y)<zr?Yt:B,Y]:null))-1),++nt);nt&&(ft=!1)}if(ft){var Et,ne,Xt,re=1/0;for(W=0,ft=null;W<se;++W)(J=_o[W])&&(Xt=(Et=(Q=J.site)[0]-B)*Et+(ne=Q[1]-Y)*ne)<re&&(re=Xt,ft=J);if(ft){var Oe=[B,Y],Ue=[B,H],gn=[I,H],Qn=[I,Y];ft.halfedges.push(ha.push(Nd(Q=ft.site,Oe,Ue))-1,ha.push(Nd(Q,Ue,gn))-1,ha.push(Nd(Q,gn,Qn))-1,ha.push(Nd(Q,Qn,Oe))-1)}}for(W=0;W<se;++W)(J=_o[W])&&(J.halfedges.length||delete _o[W])}(E,x,A,N)}this.edges=ha,this.cells=_o,Lh=Ld=ha=_o=null}function Mm(){var n=M4,a=D4,h=null;function f(m){return new iu(m.map(function(_,E){var x=[Math.round(n(_,E,m)/zr)*zr,Math.round(a(_,E,m)/zr)*zr];return x.index=E,x.data=_,x}),h)}return f.polygons=function(m){return f(m).polygons()},f.links=function(m){return f(m).links()},f.triangles=function(m){return f(m).triangles()},f.x=function(m){return arguments.length?(n=typeof m=="function"?m:Cm(+m),f):n},f.y=function(m){return arguments.length?(a=typeof m=="function"?m:Cm(+m),f):a},f.extent=function(m){return arguments.length?(h=m==null?null:[[+m[0][0],+m[0][1]],[+m[1][0],+m[1][1]]],f):h&&[[h[0][0],h[0][1]],[h[1][0],h[1][1]]]},f.size=function(m){return arguments.length?(h=m==null?null:[[0,0],[+m[0],+m[1]]],f):h&&[h[1][0]-h[0][0],h[1][1]-h[0][1]]},f}function Bh(n){return function(){return n}}function F4(n,a,h){this.target=n,this.type=a,this.transform=h}function Ls(n,a,h){this.k=n,this.x=a,this.y=h}iu.prototype={constructor:iu,polygons:function(){var n=this.edges;return this.cells.map(function(a){var h=a.halfedges.map(function(f){return L4(a,n[f])});return h.data=a.site.data,h})},triangles:function(){var n=[],a=this.edges;return this.cells.forEach(function(h,f){if(_=(m=h.halfedges).length)for(var m,_,E,x=h.site,A=-1,N=a[m[_-1]],B=N.left===x?N.right:N.left;++A<_;)E=B,B=(N=a[m[A]]).left===x?N.right:N.left,E&&B&&f<E.index&&f<B.index&&qe(x,E,B)<0&&n.push([x.data,E.data,B.data])}),n},links:function(){return this.edges.filter(function(n){return n.right}).map(function(n){return{source:n.left.data,target:n.right.data}})},find:function(n,a,h){for(var f,m,_=this,E=_._found||0,x=_.cells.length;!(m=_.cells[E]);)if(++E>=x)return null;var A=n-m.site[0],N=a-m.site[1],B=A*A+N*N;do m=_.cells[f=E],E=null,m.halfedges.forEach(function(Y){var I=_.edges[Y],H=I.left;if(H!==m.site&&H||(H=I.right)){var W=n-H[0],J=a-H[1],Q=W*W+J*J;Q<B&&(B=Q,E=H.index)}});while(E!==null);return _._found=f,h==null||B<=h*h?m.site:null}},Ls.prototype={constructor:Ls,scale:function(n){return n===1?this:new Ls(this.k*n,this.x,this.y)},translate:function(n,a){return n===0&a===0?this:new Ls(this.k,this.x+this.k*n,this.y+this.k*a)},apply:function(n){return[n[0]*this.k+this.x,n[1]*this.k+this.y]},applyX:function(n){return n*this.k+this.x},applyY:function(n){return n*this.k+this.y},invert:function(n){return[(n[0]-this.x)/this.k,(n[1]-this.y)/this.k]},invertX:function(n){return(n-this.x)/this.k},invertY:function(n){return(n-this.y)/this.k},rescaleX:function(n){return n.copy().domain(n.range().map(this.invertX,this).map(n.invert,n))},rescaleY:function(n){return n.copy().domain(n.range().map(this.invertY,this).map(n.invert,n))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var el=new Ls(1,0,0);function Dm(n){for(;!n.__zoom;)if(!(n=n.parentNode))return el;return n.__zoom}function fc(){mt.stopImmediatePropagation()}function Id(){mt.preventDefault(),mt.stopImmediatePropagation()}function Rd(){return!mt.ctrlKey&&!mt.button}function Dp(){var n=this;return n instanceof SVGElement?(n=n.ownerSVGElement||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]]:[[0,0],[n.clientWidth,n.clientHeight]]}function Nm(){return this.__zoom||el}function Om(){return-mt.deltaY*(mt.deltaMode===1?.05:mt.deltaMode?1:.002)}function Np(){return navigator.maxTouchPoints||"ontouchstart"in this}function Op(n,a,h){var f=n.invertX(a[0][0])-h[0][0],m=n.invertX(a[1][0])-h[1][0],_=n.invertY(a[0][1])-h[0][1],E=n.invertY(a[1][1])-h[1][1];return n.translate(m>f?(f+m)/2:Math.min(0,f)||Math.max(0,m),E>_?(_+E)/2:Math.min(0,_)||Math.max(0,E))}function R6(){var n,a,h=Rd,f=Dp,m=Op,_=Om,E=Np,x=[0,1/0],A=[[-1/0,-1/0],[1/0,1/0]],N=250,B=b1,Y=en("start","zoom","end"),I=500,H=0;function W(ft){ft.property("__zoom",Nm).on("wheel.zoom",Yt).on("mousedown.zoom",Rt).on("dblclick.zoom",Qt).filter(E).on("touchstart.zoom",_e).on("touchmove.zoom",Ut).on("touchend.zoom touchcancel.zoom",se).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function J(ft,Et){return(Et=Math.max(x[0],Math.min(x[1],Et)))===ft.k?ft:new Ls(Et,ft.x,ft.y)}function Q(ft,Et,ne){var Xt=Et[0]-ne[0]*ft.k,re=Et[1]-ne[1]*ft.k;return Xt===ft.x&&re===ft.y?ft:new Ls(ft.k,Xt,re)}function Z(ft){return[(+ft[0][0]+ +ft[1][0])/2,(+ft[0][1]+ +ft[1][1])/2]}function at(ft,Et,ne){ft.on("start.zoom",function(){nt(this,arguments).start()}).on("interrupt.zoom end.zoom",function(){nt(this,arguments).end()}).tween("zoom",function(){var Xt=this,re=arguments,Oe=nt(Xt,re),Ue=f.apply(Xt,re),gn=ne==null?Z(Ue):typeof ne=="function"?ne.apply(Xt,re):ne,Qn=Math.max(Ue[1][0]-Ue[0][0],Ue[1][1]-Ue[0][1]),ir=Xt.__zoom,Ke=typeof Et=="function"?Et.apply(Xt,re):Et,pr=B(ir.invert(gn).concat(Qn/ir.k),Ke.invert(gn).concat(Qn/Ke.k));return function(Bn){if(Bn===1)Bn=Ke;else{var Nn=pr(Bn),ur=Qn/Nn[2];Bn=new Ls(ur,gn[0]-Nn[0]*ur,gn[1]-Nn[1]*ur)}Oe.zoom(null,Bn)}})}function nt(ft,Et,ne){return!ne&&ft.__zooming||new dt(ft,Et)}function dt(ft,Et){this.that=ft,this.args=Et,this.active=0,this.extent=f.apply(ft,Et),this.taps=0}function Yt(){if(h.apply(this,arguments)){var ft=nt(this,arguments),Et=this.__zoom,ne=Math.max(x[0],Math.min(x[1],Et.k*Math.pow(2,_.apply(this,arguments)))),Xt=Ys(this);if(ft.wheel)ft.mouse[0][0]===Xt[0]&&ft.mouse[0][1]===Xt[1]||(ft.mouse[1]=Et.invert(ft.mouse[0]=Xt)),clearTimeout(ft.wheel);else{if(Et.k===ne)return;ft.mouse=[Xt,Et.invert(Xt)],Ca(this),ft.start()}Id(),ft.wheel=setTimeout(re,150),ft.zoom("mouse",m(Q(J(Et,ne),ft.mouse[0],ft.mouse[1]),ft.extent,A))}function re(){ft.wheel=null,ft.end()}}function Rt(){if(!a&&h.apply(this,arguments)){var ft=nt(this,arguments,!0),Et=yr(mt.view).on("mousemove.zoom",Oe,!0).on("mouseup.zoom",Ue,!0),ne=Ys(this),Xt=mt.clientX,re=mt.clientY;ri(mt.view),fc(),ft.mouse=[ne,this.__zoom.invert(ne)],Ca(this),ft.start()}function Oe(){if(Id(),!ft.moved){var gn=mt.clientX-Xt,Qn=mt.clientY-re;ft.moved=gn*gn+Qn*Qn>H}ft.zoom("mouse",m(Q(ft.that.__zoom,ft.mouse[0]=Ys(ft.that),ft.mouse[1]),ft.extent,A))}function Ue(){Et.on("mousemove.zoom mouseup.zoom",null),$r(mt.view,ft.moved),Id(),ft.end()}}function Qt(){if(h.apply(this,arguments)){var ft=this.__zoom,Et=Ys(this),ne=ft.invert(Et),Xt=ft.k*(mt.shiftKey?.5:2),re=m(Q(J(ft,Xt),Et,ne),f.apply(this,arguments),A);Id(),N>0?yr(this).transition().duration(N).call(at,re,Et):yr(this).call(W.transform,re)}}function _e(){if(h.apply(this,arguments)){var ft,Et,ne,Xt,re=mt.touches,Oe=re.length,Ue=nt(this,arguments,mt.changedTouches.length===Oe);for(fc(),Et=0;Et<Oe;++Et)Xt=[Xt=Sa(this,re,(ne=re[Et]).identifier),this.__zoom.invert(Xt),ne.identifier],Ue.touch0?Ue.touch1||Ue.touch0[2]===Xt[2]||(Ue.touch1=Xt,Ue.taps=0):(Ue.touch0=Xt,ft=!0,Ue.taps=1+!!n);n&&(n=clearTimeout(n)),ft&&(Ue.taps<2&&(n=setTimeout(function(){n=null},I)),Ca(this),Ue.start())}}function Ut(){if(this.__zooming){var ft,Et,ne,Xt,re=nt(this,arguments),Oe=mt.changedTouches,Ue=Oe.length;for(Id(),n&&(n=clearTimeout(n)),re.taps=0,ft=0;ft<Ue;++ft)ne=Sa(this,Oe,(Et=Oe[ft]).identifier),re.touch0&&re.touch0[2]===Et.identifier?re.touch0[0]=ne:re.touch1&&re.touch1[2]===Et.identifier&&(re.touch1[0]=ne);if(Et=re.that.__zoom,re.touch1){var gn=re.touch0[0],Qn=re.touch0[1],ir=re.touch1[0],Ke=re.touch1[1],pr=(pr=ir[0]-gn[0])*pr+(pr=ir[1]-gn[1])*pr,Bn=(Bn=Ke[0]-Qn[0])*Bn+(Bn=Ke[1]-Qn[1])*Bn;Et=J(Et,Math.sqrt(pr/Bn)),ne=[(gn[0]+ir[0])/2,(gn[1]+ir[1])/2],Xt=[(Qn[0]+Ke[0])/2,(Qn[1]+Ke[1])/2]}else{if(!re.touch0)return;ne=re.touch0[0],Xt=re.touch0[1]}re.zoom("touch",m(Q(Et,ne,Xt),re.extent,A))}}function se(){if(this.__zooming){var ft,Et,ne=nt(this,arguments),Xt=mt.changedTouches,re=Xt.length;for(fc(),a&&clearTimeout(a),a=setTimeout(function(){a=null},I),ft=0;ft<re;++ft)Et=Xt[ft],ne.touch0&&ne.touch0[2]===Et.identifier?delete ne.touch0:ne.touch1&&ne.touch1[2]===Et.identifier&&delete ne.touch1;if(ne.touch1&&!ne.touch0&&(ne.touch0=ne.touch1,delete ne.touch1),ne.touch0)ne.touch0[1]=this.__zoom.invert(ne.touch0[0]);else if(ne.end(),ne.taps===2){var Oe=yr(this).on("dblclick.zoom");Oe&&Oe.apply(this,arguments)}}}return W.transform=function(ft,Et,ne){var Xt=ft.selection?ft.selection():ft;Xt.property("__zoom",Nm),ft!==Xt?at(ft,Et,ne):Xt.interrupt().each(function(){nt(this,arguments).start().zoom(null,typeof Et=="function"?Et.apply(this,arguments):Et).end()})},W.scaleBy=function(ft,Et,ne){W.scaleTo(ft,function(){var Xt=this.__zoom.k,re=typeof Et=="function"?Et.apply(this,arguments):Et;return Xt*re},ne)},W.scaleTo=function(ft,Et,ne){W.transform(ft,function(){var Xt=f.apply(this,arguments),re=this.__zoom,Oe=ne==null?Z(Xt):typeof ne=="function"?ne.apply(this,arguments):ne,Ue=re.invert(Oe),gn=typeof Et=="function"?Et.apply(this,arguments):Et;return m(Q(J(re,gn),Oe,Ue),Xt,A)},ne)},W.translateBy=function(ft,Et,ne){W.transform(ft,function(){return m(this.__zoom.translate(typeof Et=="function"?Et.apply(this,arguments):Et,typeof ne=="function"?ne.apply(this,arguments):ne),f.apply(this,arguments),A)})},W.translateTo=function(ft,Et,ne,Xt){W.transform(ft,function(){var re=f.apply(this,arguments),Oe=this.__zoom,Ue=Xt==null?Z(re):typeof Xt=="function"?Xt.apply(this,arguments):Xt;return m(el.translate(Ue[0],Ue[1]).scale(Oe.k).translate(typeof Et=="function"?-Et.apply(this,arguments):-Et,typeof ne=="function"?-ne.apply(this,arguments):-ne),re,A)},Xt)},dt.prototype={start:function(){return++this.active==1&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(ft,Et){return this.mouse&&ft!=="mouse"&&(this.mouse[1]=Et.invert(this.mouse[0])),this.touch0&&ft!=="touch"&&(this.touch0[1]=Et.invert(this.touch0[0])),this.touch1&&ft!=="touch"&&(this.touch1[1]=Et.invert(this.touch1[0])),this.that.__zoom=Et,this.emit("zoom"),this},end:function(){return--this.active==0&&(delete this.that.__zooming,this.emit("end")),this},emit:function(ft){ko(new F4(W,ft,this.that.__zoom),Y.apply,Y,[ft,this.that,this.args])}},W.wheelDelta=function(ft){return arguments.length?(_=typeof ft=="function"?ft:Bh(+ft),W):_},W.filter=function(ft){return arguments.length?(h=typeof ft=="function"?ft:Bh(!!ft),W):h},W.touchable=function(ft){return arguments.length?(E=typeof ft=="function"?ft:Bh(!!ft),W):E},W.extent=function(ft){return arguments.length?(f=typeof ft=="function"?ft:Bh([[+ft[0][0],+ft[0][1]],[+ft[1][0],+ft[1][1]]]),W):f},W.scaleExtent=function(ft){return arguments.length?(x[0]=+ft[0],x[1]=+ft[1],W):[x[0],x[1]]},W.translateExtent=function(ft){return arguments.length?(A[0][0]=+ft[0][0],A[1][0]=+ft[1][0],A[0][1]=+ft[0][1],A[1][1]=+ft[1][1],W):[[A[0][0],A[0][1]],[A[1][0],A[1][1]]]},W.constrain=function(ft){return arguments.length?(m=ft,W):m},W.duration=function(ft){return arguments.length?(N=+ft,W):N},W.interpolate=function(ft){return arguments.length?(B=ft,W):B},W.on=function(){var ft=Y.on.apply(Y,arguments);return ft===Y?W:ft},W.clickDistance=function(ft){return arguments.length?(H=(ft=+ft)*ft,W):Math.sqrt(H)},W}Dm.prototype=Ls.prototype},681:(r,s,o)=>{r.exports={graphlib:o(574),layout:o(8123),debug:o(7570),util:{time:o(1138).time,notime:o(1138).notime},version:o(8177)}},1207:(r,s,o)=>{var l=o(8436),c=o(4079);r.exports={run:function(y){var p=y.graph().acyclicer==="greedy"?c(y,function(b){return function(T){return b.edge(T).weight}}(y)):function(b){var T=[],k={},D={};return l.forEach(b.nodes(),function O(R){l.has(D,R)||(D[R]=!0,k[R]=!0,l.forEach(b.outEdges(R),function(z){l.has(k,z.w)?T.push(z):O(z.w)}),delete k[R])}),T}(y);l.forEach(p,function(b){var T=y.edge(b);y.removeEdge(b),T.forwardName=b.name,T.reversed=!0,y.setEdge(b.w,b.v,T,l.uniqueId("rev"))})},undo:function(y){l.forEach(y.edges(),function(p){var b=y.edge(p);if(b.reversed){y.removeEdge(p);var T=b.forwardName;delete b.reversed,delete b.forwardName,y.setEdge(p.w,p.v,b,T)}})}}},1133:(r,s,o)=>{var l=o(8436),c=o(1138);function y(p,b,T,k,D,O){var R={width:0,height:0,rank:O,borderType:b},z=D[b][O-1],$=c.addDummyNode(p,"border",R,T);D[b][O]=$,p.setParent($,k),z&&p.setEdge(z,$,{weight:1})}r.exports=function(p){l.forEach(p.children(),function b(T){var k=p.children(T),D=p.node(T);if(k.length&&l.forEach(k,b),l.has(D,"minRank")){D.borderLeft=[],D.borderRight=[];for(var O=D.minRank,R=D.maxRank+1;O<R;++O)y(p,"borderLeft","_bl",T,D,O),y(p,"borderRight","_br",T,D,O)}})}},3258:(r,s,o)=>{var l=o(8436);function c(T){l.forEach(T.nodes(),function(k){y(T.node(k))}),l.forEach(T.edges(),function(k){y(T.edge(k))})}function y(T){var k=T.width;T.width=T.height,T.height=k}function p(T){T.y=-T.y}function b(T){var k=T.x;T.x=T.y,T.y=k}r.exports={adjust:function(T){var k=T.graph().rankdir.toLowerCase();k!=="lr"&&k!=="rl"||c(T)},undo:function(T){var k=T.graph().rankdir.toLowerCase();k!=="bt"&&k!=="rl"||function(D){l.forEach(D.nodes(),function(O){p(D.node(O))}),l.forEach(D.edges(),function(O){var R=D.edge(O);l.forEach(R.points,p),l.has(R,"y")&&p(R)})}(T),k!=="lr"&&k!=="rl"||(function(D){l.forEach(D.nodes(),function(O){b(D.node(O))}),l.forEach(D.edges(),function(O){var R=D.edge(O);l.forEach(R.points,b),l.has(R,"x")&&b(R)})}(T),c(T))}}},7822:r=>{function s(){var c={};c._next=c._prev=c,this._sentinel=c}function o(c){c._prev._next=c._next,c._next._prev=c._prev,delete c._next,delete c._prev}function l(c,y){if(c!=="_next"&&c!=="_prev")return y}r.exports=s,s.prototype.dequeue=function(){var c=this._sentinel,y=c._prev;if(y!==c)return o(y),y},s.prototype.enqueue=function(c){var y=this._sentinel;c._prev&&c._next&&o(c),c._next=y._next,y._next._prev=c,y._next=c,c._prev=y},s.prototype.toString=function(){for(var c=[],y=this._sentinel,p=y._prev;p!==y;)c.push(JSON.stringify(p,l)),p=p._prev;return"["+c.join(", ")+"]"}},7570:(r,s,o)=>{var l=o(8436),c=o(1138),y=o(574).Graph;r.exports={debugOrdering:function(p){var b=c.buildLayerMatrix(p),T=new y({compound:!0,multigraph:!0}).setGraph({});return l.forEach(p.nodes(),function(k){T.setNode(k,{label:k}),T.setParent(k,"layer"+p.node(k).rank)}),l.forEach(p.edges(),function(k){T.setEdge(k.v,k.w,{},k.name)}),l.forEach(b,function(k,D){var O="layer"+D;T.setNode(O,{rank:"same"}),l.reduce(k,function(R,z){return T.setEdge(R,z,{style:"invis"}),z})}),T}}},574:(r,s,o)=>{var l;try{l=o(8282)}catch{}l||(l=window.graphlib),r.exports=l},4079:(r,s,o)=>{var l=o(8436),c=o(574).Graph,y=o(7822);r.exports=function(k,D){if(k.nodeCount()<=1)return[];var O=function(z,$){var q=new c,V=0,X=0;l.forEach(z.nodes(),function(rt){q.setNode(rt,{v:rt,in:0,out:0})}),l.forEach(z.edges(),function(rt){var ut=q.edge(rt.v,rt.w)||0,Ct=$(rt),et=ut+Ct;q.setEdge(rt.v,rt.w,et),X=Math.max(X,q.node(rt.v).out+=Ct),V=Math.max(V,q.node(rt.w).in+=Ct)});var it=l.range(X+V+3).map(function(){return new y}),tt=V+1;return l.forEach(q.nodes(),function(rt){T(it,tt,q.node(rt))}),{graph:q,buckets:it,zeroIdx:tt}}(k,D||p),R=function(z,$,q){for(var V,X=[],it=$[$.length-1],tt=$[0];z.nodeCount();){for(;V=tt.dequeue();)b(z,$,q,V);for(;V=it.dequeue();)b(z,$,q,V);if(z.nodeCount()){for(var rt=$.length-2;rt>0;--rt)if(V=$[rt].dequeue()){X=X.concat(b(z,$,q,V,!0));break}}}return X}(O.graph,O.buckets,O.zeroIdx);return l.flatten(l.map(R,function(z){return k.outEdges(z.v,z.w)}),!0)};var p=l.constant(1);function b(k,D,O,R,z){var $=z?[]:void 0;return l.forEach(k.inEdges(R.v),function(q){var V=k.edge(q),X=k.node(q.v);z&&$.push({v:q.v,w:q.w}),X.out-=V,T(D,O,X)}),l.forEach(k.outEdges(R.v),function(q){var V=k.edge(q),X=q.w,it=k.node(X);it.in-=V,T(D,O,it)}),k.removeNode(R.v),$}function T(k,D,O){O.out?O.in?k[O.out-O.in+D].enqueue(O):k[k.length-1].enqueue(O):k[0].enqueue(O)}},8123:(r,s,o)=>{var l=o(8436),c=o(1207),y=o(5995),p=o(8093),b=o(1138).normalizeRanks,T=o(4219),k=o(1138).removeEmptyRanks,D=o(2981),O=o(1133),R=o(3258),z=o(3408),$=o(7873),q=o(1138),V=o(574).Graph;r.exports=function(St,pt){var wt=pt&&pt.debugTiming?q.time:q.notime;wt("layout",function(){var Ht=wt(" buildLayoutGraph",function(){return function(Pt){var ge=new V({multigraph:!0,compound:!0}),pe=xt(Pt.graph());return ge.setGraph(l.merge({},it,ht(pe,X),l.pick(pe,tt))),l.forEach(Pt.nodes(),function(de){var Bt=xt(Pt.node(de));ge.setNode(de,l.defaults(ht(Bt,rt),ut)),ge.setParent(de,Pt.parent(de))}),l.forEach(Pt.edges(),function(de){var Bt=xt(Pt.edge(de));ge.setEdge(de,l.merge({},et,ht(Bt,Ct),l.pick(Bt,K)))}),ge}(St)});wt(" runLayout",function(){(function(Pt,ge){ge(" makeSpaceForEdgeLabels",function(){(function(pe){var de=pe.graph();de.ranksep/=2,l.forEach(pe.edges(),function(Bt){var Gt=pe.edge(Bt);Gt.minlen*=2,Gt.labelpos.toLowerCase()!=="c"&&(de.rankdir==="TB"||de.rankdir==="BT"?Gt.width+=Gt.labeloffset:Gt.height+=Gt.labeloffset)})})(Pt)}),ge(" removeSelfEdges",function(){(function(pe){l.forEach(pe.edges(),function(de){if(de.v===de.w){var Bt=pe.node(de.v);Bt.selfEdges||(Bt.selfEdges=[]),Bt.selfEdges.push({e:de,label:pe.edge(de)}),pe.removeEdge(de)}})})(Pt)}),ge(" acyclic",function(){c.run(Pt)}),ge(" nestingGraph.run",function(){D.run(Pt)}),ge(" rank",function(){p(q.asNonCompoundGraph(Pt))}),ge(" injectEdgeLabelProxies",function(){(function(pe){l.forEach(pe.edges(),function(de){var Bt=pe.edge(de);if(Bt.width&&Bt.height){var Gt=pe.node(de.v),oe={rank:(pe.node(de.w).rank-Gt.rank)/2+Gt.rank,e:de};q.addDummyNode(pe,"edge-proxy",oe,"_ep")}})})(Pt)}),ge(" removeEmptyRanks",function(){k(Pt)}),ge(" nestingGraph.cleanup",function(){D.cleanup(Pt)}),ge(" normalizeRanks",function(){b(Pt)}),ge(" assignRankMinMax",function(){(function(pe){var de=0;l.forEach(pe.nodes(),function(Bt){var Gt=pe.node(Bt);Gt.borderTop&&(Gt.minRank=pe.node(Gt.borderTop).rank,Gt.maxRank=pe.node(Gt.borderBottom).rank,de=l.max(de,Gt.maxRank))}),pe.graph().maxRank=de})(Pt)}),ge(" removeEdgeLabelProxies",function(){(function(pe){l.forEach(pe.nodes(),function(de){var Bt=pe.node(de);Bt.dummy==="edge-proxy"&&(pe.edge(Bt.e).labelRank=Bt.rank,pe.removeNode(de))})})(Pt)}),ge(" normalize.run",function(){y.run(Pt)}),ge(" parentDummyChains",function(){T(Pt)}),ge(" addBorderSegments",function(){O(Pt)}),ge(" order",function(){z(Pt)}),ge(" insertSelfEdges",function(){(function(pe){var de=q.buildLayerMatrix(pe);l.forEach(de,function(Bt){var Gt=0;l.forEach(Bt,function(oe,le){var ye=pe.node(oe);ye.order=le+Gt,l.forEach(ye.selfEdges,function(It){q.addDummyNode(pe,"selfedge",{width:It.label.width,height:It.label.height,rank:ye.rank,order:le+ ++Gt,e:It.e,label:It.label},"_se")}),delete ye.selfEdges})})})(Pt)}),ge(" adjustCoordinateSystem",function(){R.adjust(Pt)}),ge(" position",function(){$(Pt)}),ge(" positionSelfEdges",function(){(function(pe){l.forEach(pe.nodes(),function(de){var Bt=pe.node(de);if(Bt.dummy==="selfedge"){var Gt=pe.node(Bt.e.v),oe=Gt.x+Gt.width/2,le=Gt.y,ye=Bt.x-oe,It=Gt.height/2;pe.setEdge(Bt.e,Bt.label),pe.removeNode(de),Bt.label.points=[{x:oe+2*ye/3,y:le-It},{x:oe+5*ye/6,y:le-It},{x:oe+ye,y:le},{x:oe+5*ye/6,y:le+It},{x:oe+2*ye/3,y:le+It}],Bt.label.x=Bt.x,Bt.label.y=Bt.y}})})(Pt)}),ge(" removeBorderNodes",function(){(function(pe){l.forEach(pe.nodes(),function(de){if(pe.children(de).length){var Bt=pe.node(de),Gt=pe.node(Bt.borderTop),oe=pe.node(Bt.borderBottom),le=pe.node(l.last(Bt.borderLeft)),ye=pe.node(l.last(Bt.borderRight));Bt.width=Math.abs(ye.x-le.x),Bt.height=Math.abs(oe.y-Gt.y),Bt.x=le.x+Bt.width/2,Bt.y=Gt.y+Bt.height/2}}),l.forEach(pe.nodes(),function(de){pe.node(de).dummy==="border"&&pe.removeNode(de)})})(Pt)}),ge(" normalize.undo",function(){y.undo(Pt)}),ge(" fixupEdgeLabelCoords",function(){(function(pe){l.forEach(pe.edges(),function(de){var Bt=pe.edge(de);if(l.has(Bt,"x"))switch(Bt.labelpos!=="l"&&Bt.labelpos!=="r"||(Bt.width-=Bt.labeloffset),Bt.labelpos){case"l":Bt.x-=Bt.width/2+Bt.labeloffset;break;case"r":Bt.x+=Bt.width/2+Bt.labeloffset}})})(Pt)}),ge(" undoCoordinateSystem",function(){R.undo(Pt)}),ge(" translateGraph",function(){(function(pe){var de=Number.POSITIVE_INFINITY,Bt=0,Gt=Number.POSITIVE_INFINITY,oe=0,le=pe.graph(),ye=le.marginx||0,It=le.marginy||0;function He(he){var jt=he.x,Kt=he.y,ct=he.width,te=he.height;de=Math.min(de,jt-ct/2),Bt=Math.max(Bt,jt+ct/2),Gt=Math.min(Gt,Kt-te/2),oe=Math.max(oe,Kt+te/2)}l.forEach(pe.nodes(),function(he){He(pe.node(he))}),l.forEach(pe.edges(),function(he){var jt=pe.edge(he);l.has(jt,"x")&&He(jt)}),de-=ye,Gt-=It,l.forEach(pe.nodes(),function(he){var jt=pe.node(he);jt.x-=de,jt.y-=Gt}),l.forEach(pe.edges(),function(he){var jt=pe.edge(he);l.forEach(jt.points,function(Kt){Kt.x-=de,Kt.y-=Gt}),l.has(jt,"x")&&(jt.x-=de),l.has(jt,"y")&&(jt.y-=Gt)}),le.width=Bt-de+ye,le.height=oe-Gt+It})(Pt)}),ge(" assignNodeIntersects",function(){(function(pe){l.forEach(pe.edges(),function(de){var Bt,Gt,oe=pe.edge(de),le=pe.node(de.v),ye=pe.node(de.w);oe.points?(Bt=oe.points[0],Gt=oe.points[oe.points.length-1]):(oe.points=[],Bt=ye,Gt=le),oe.points.unshift(q.intersectRect(le,Bt)),oe.points.push(q.intersectRect(ye,Gt))})})(Pt)}),ge(" reversePoints",function(){(function(pe){l.forEach(pe.edges(),function(de){var Bt=pe.edge(de);Bt.reversed&&Bt.points.reverse()})})(Pt)}),ge(" acyclic.undo",function(){c.undo(Pt)})})(Ht,wt)}),wt(" updateInputGraph",function(){(function(Pt,ge){l.forEach(Pt.nodes(),function(pe){var de=Pt.node(pe),Bt=ge.node(pe);de&&(de.x=Bt.x,de.y=Bt.y,ge.children(pe).length&&(de.width=Bt.width,de.height=Bt.height))}),l.forEach(Pt.edges(),function(pe){var de=Pt.edge(pe),Bt=ge.edge(pe);de.points=Bt.points,l.has(Bt,"x")&&(de.x=Bt.x,de.y=Bt.y)}),Pt.graph().width=ge.graph().width,Pt.graph().height=ge.graph().height})(St,Ht)})})};var X=["nodesep","edgesep","ranksep","marginx","marginy"],it={ranksep:50,edgesep:20,nodesep:50,rankdir:"tb"},tt=["acyclicer","ranker","rankdir","align"],rt=["width","height"],ut={width:0,height:0},Ct=["minlen","weight","width","height","labeloffset"],et={minlen:1,weight:1,width:0,height:0,labeloffset:10,labelpos:"r"},K=["labelpos"];function ht(St,pt){return l.mapValues(l.pick(St,pt),Number)}function xt(St){var pt={};return l.forEach(St,function(wt,Ht){pt[Ht.toLowerCase()]=wt}),pt}},8436:(r,s,o)=>{var l;try{l={cloneDeep:o(361),constant:o(5703),defaults:o(1747),each:o(6073),filter:o(3105),find:o(3311),flatten:o(5564),forEach:o(4486),forIn:o(2620),has:o(8721),isUndefined:o(2353),last:o(928),map:o(5161),mapValues:o(6604),max:o(6162),merge:o(3857),min:o(3632),minBy:o(2762),now:o(7771),pick:o(9722),range:o(6026),reduce:o(4061),sortBy:o(9734),uniqueId:o(3955),values:o(2628),zipObject:o(7287)}}catch{}l||(l=window._),r.exports=l},2981:(r,s,o)=>{var l=o(8436),c=o(1138);function y(p,b,T,k,D,O,R){var z=p.children(R);if(z.length){var $=c.addBorderNode(p,"_bt"),q=c.addBorderNode(p,"_bb"),V=p.node(R);p.setParent($,R),V.borderTop=$,p.setParent(q,R),V.borderBottom=q,l.forEach(z,function(X){y(p,b,T,k,D,O,X);var it=p.node(X),tt=it.borderTop?it.borderTop:X,rt=it.borderBottom?it.borderBottom:X,ut=it.borderTop?k:2*k,Ct=tt!==rt?1:D-O[R]+1;p.setEdge($,tt,{weight:ut,minlen:Ct,nestingEdge:!0}),p.setEdge(rt,q,{weight:ut,minlen:Ct,nestingEdge:!0})}),p.parent(R)||p.setEdge(b,$,{weight:0,minlen:D+O[R]})}else R!==b&&p.setEdge(b,R,{weight:0,minlen:T})}r.exports={run:function(p){var b=c.addDummyNode(p,"root",{},"_root"),T=function(R){var z={};function $(q,V){var X=R.children(q);X&&X.length&&l.forEach(X,function(it){$(it,V+1)}),z[q]=V}return l.forEach(R.children(),function(q){$(q,1)}),z}(p),k=l.max(l.values(T))-1,D=2*k+1;p.graph().nestingRoot=b,l.forEach(p.edges(),function(R){p.edge(R).minlen*=D});var O=function(R){return l.reduce(R.edges(),function(z,$){return z+R.edge($).weight},0)}(p)+1;l.forEach(p.children(),function(R){y(p,b,D,O,k,T,R)}),p.graph().nodeRankFactor=D},cleanup:function(p){var b=p.graph();p.removeNode(b.nestingRoot),delete b.nestingRoot,l.forEach(p.edges(),function(T){p.edge(T).nestingEdge&&p.removeEdge(T)})}}},5995:(r,s,o)=>{var l=o(8436),c=o(1138);r.exports={run:function(y){y.graph().dummyChains=[],l.forEach(y.edges(),function(p){(function(b,T){var k,D,O,R=T.v,z=b.node(R).rank,$=T.w,q=b.node($).rank,V=T.name,X=b.edge(T),it=X.labelRank;if(q!==z+1){for(b.removeEdge(T),O=0,++z;z<q;++O,++z)X.points=[],D={width:0,height:0,edgeLabel:X,edgeObj:T,rank:z},k=c.addDummyNode(b,"edge",D,"_d"),z===it&&(D.width=X.width,D.height=X.height,D.dummy="edge-label",D.labelpos=X.labelpos),b.setEdge(R,k,{weight:X.weight},V),O===0&&b.graph().dummyChains.push(k),R=k;b.setEdge(R,$,{weight:X.weight},V)}})(y,p)})},undo:function(y){l.forEach(y.graph().dummyChains,function(p){var b,T=y.node(p),k=T.edgeLabel;for(y.setEdge(T.edgeObj,k);T.dummy;)b=y.successors(p)[0],y.removeNode(p),k.points.push({x:T.x,y:T.y}),T.dummy==="edge-label"&&(k.x=T.x,k.y=T.y,k.width=T.width,k.height=T.height),p=b,T=y.node(p)})}}},5093:(r,s,o)=>{var l=o(8436);r.exports=function(c,y,p){var b,T={};l.forEach(p,function(k){for(var D,O,R=c.parent(k);R;){if((D=c.parent(R))?(O=T[D],T[D]=R):(O=b,b=R),O&&O!==R)return void y.setEdge(O,R);R=D}})}},5439:(r,s,o)=>{var l=o(8436);r.exports=function(c,y){return l.map(y,function(p){var b=c.inEdges(p);if(b.length){var T=l.reduce(b,function(k,D){var O=c.edge(D),R=c.node(D.v);return{sum:k.sum+O.weight*R.order,weight:k.weight+O.weight}},{sum:0,weight:0});return{v:p,barycenter:T.sum/T.weight,weight:T.weight}}return{v:p}})}},3128:(r,s,o)=>{var l=o(8436),c=o(574).Graph;r.exports=function(y,p,b){var T=function(D){for(var O;D.hasNode(O=l.uniqueId("_root")););return O}(y),k=new c({compound:!0}).setGraph({root:T}).setDefaultNodeLabel(function(D){return y.node(D)});return l.forEach(y.nodes(),function(D){var O=y.node(D),R=y.parent(D);(O.rank===p||O.minRank<=p&&p<=O.maxRank)&&(k.setNode(D),k.setParent(D,R||T),l.forEach(y[b](D),function(z){var $=z.v===D?z.w:z.v,q=k.edge($,D),V=l.isUndefined(q)?0:q.weight;k.setEdge($,D,{weight:y.edge(z).weight+V})}),l.has(O,"minRank")&&k.setNode(D,{borderLeft:O.borderLeft[p],borderRight:O.borderRight[p]}))}),k}},6630:(r,s,o)=>{var l=o(8436);function c(y,p,b){for(var T=l.zipObject(b,l.map(b,function($,q){return q})),k=l.flatten(l.map(p,function($){return l.sortBy(l.map(y.outEdges($),function(q){return{pos:T[q.w],weight:y.edge(q).weight}}),"pos")}),!0),D=1;D<b.length;)D<<=1;var O=2*D-1;D-=1;var R=l.map(new Array(O),function(){return 0}),z=0;return l.forEach(k.forEach(function($){var q=$.pos+D;R[q]+=$.weight;for(var V=0;q>0;)q%2&&(V+=R[q+1]),R[q=q-1>>1]+=$.weight;z+=$.weight*V})),z}r.exports=function(y,p){for(var b=0,T=1;T<p.length;++T)b+=c(y,p[T-1],p[T]);return b}},3408:(r,s,o)=>{var l=o(8436),c=o(2588),y=o(6630),p=o(1026),b=o(3128),T=o(5093),k=o(574).Graph,D=o(1138);function O($,q,V){return l.map(q,function(X){return b($,X,V)})}function R($,q){var V=new k;l.forEach($,function(X){var it=X.graph().root,tt=p(X,it,V,q);l.forEach(tt.vs,function(rt,ut){X.node(rt).order=ut}),T(X,V,tt.vs)})}function z($,q){l.forEach(q,function(V){l.forEach(V,function(X,it){$.node(X).order=it})})}r.exports=function($){var q=D.maxRank($),V=O($,l.range(1,q+1),"inEdges"),X=O($,l.range(q-1,-1,-1),"outEdges"),it=c($);z($,it);for(var tt,rt=Number.POSITIVE_INFINITY,ut=0,Ct=0;Ct<4;++ut,++Ct){R(ut%2?V:X,ut%4>=2),it=D.buildLayerMatrix($);var et=y($,it);et<rt&&(Ct=0,tt=l.cloneDeep(it),rt=et)}z($,tt)}},2588:(r,s,o)=>{var l=o(8436);r.exports=function(c){var y={},p=l.filter(c.nodes(),function(D){return!c.children(D).length}),b=l.max(l.map(p,function(D){return c.node(D).rank})),T=l.map(l.range(b+1),function(){return[]}),k=l.sortBy(p,function(D){return c.node(D).rank});return l.forEach(k,function D(O){if(!l.has(y,O)){y[O]=!0;var R=c.node(O);T[R.rank].push(O),l.forEach(c.successors(O),D)}}),T}},9567:(r,s,o)=>{var l=o(8436);r.exports=function(c,y){var p={};return l.forEach(c,function(b,T){var k=p[b.v]={indegree:0,in:[],out:[],vs:[b.v],i:T};l.isUndefined(b.barycenter)||(k.barycenter=b.barycenter,k.weight=b.weight)}),l.forEach(y.edges(),function(b){var T=p[b.v],k=p[b.w];l.isUndefined(T)||l.isUndefined(k)||(k.indegree++,T.out.push(p[b.w]))}),function(b){var T=[];function k(R){return function(z){var $,q,V,X;z.merged||(l.isUndefined(z.barycenter)||l.isUndefined(R.barycenter)||z.barycenter>=R.barycenter)&&(q=z,V=0,X=0,($=R).weight&&(V+=$.barycenter*$.weight,X+=$.weight),q.weight&&(V+=q.barycenter*q.weight,X+=q.weight),$.vs=q.vs.concat($.vs),$.barycenter=V/X,$.weight=X,$.i=Math.min(q.i,$.i),q.merged=!0)}}function D(R){return function(z){z.in.push(R),--z.indegree==0&&b.push(z)}}for(;b.length;){var O=b.pop();T.push(O),l.forEach(O.in.reverse(),k(O)),l.forEach(O.out,D(O))}return l.map(l.filter(T,function(R){return!R.merged}),function(R){return l.pick(R,["vs","i","barycenter","weight"])})}(l.filter(p,function(b){return!b.indegree}))}},1026:(r,s,o)=>{var l=o(8436),c=o(5439),y=o(9567),p=o(7304);r.exports=function b(T,k,D,O){var R=T.children(k),z=T.node(k),$=z?z.borderLeft:void 0,q=z?z.borderRight:void 0,V={};$&&(R=l.filter(R,function(Ct){return Ct!==$&&Ct!==q}));var X=c(T,R);l.forEach(X,function(Ct){if(T.children(Ct.v).length){var et=b(T,Ct.v,D,O);V[Ct.v]=et,l.has(et,"barycenter")&&(K=Ct,ht=et,l.isUndefined(K.barycenter)?(K.barycenter=ht.barycenter,K.weight=ht.weight):(K.barycenter=(K.barycenter*K.weight+ht.barycenter*ht.weight)/(K.weight+ht.weight),K.weight+=ht.weight))}var K,ht});var it=y(X,D);(function(Ct,et){l.forEach(Ct,function(K){K.vs=l.flatten(K.vs.map(function(ht){return et[ht]?et[ht].vs:ht}),!0)})})(it,V);var tt=p(it,O);if($&&(tt.vs=l.flatten([$,tt.vs,q],!0),T.predecessors($).length)){var rt=T.node(T.predecessors($)[0]),ut=T.node(T.predecessors(q)[0]);l.has(tt,"barycenter")||(tt.barycenter=0,tt.weight=0),tt.barycenter=(tt.barycenter*tt.weight+rt.order+ut.order)/(tt.weight+2),tt.weight+=2}return tt}},7304:(r,s,o)=>{var l=o(8436),c=o(1138);function y(p,b,T){for(var k;b.length&&(k=l.last(b)).i<=T;)b.pop(),p.push(k.vs),T++;return T}r.exports=function(p,b){var T,k=c.partition(p,function(X){return l.has(X,"barycenter")}),D=k.lhs,O=l.sortBy(k.rhs,function(X){return-X.i}),R=[],z=0,$=0,q=0;D.sort((T=!!b,function(X,it){return X.barycenter<it.barycenter?-1:X.barycenter>it.barycenter?1:T?it.i-X.i:X.i-it.i})),q=y(R,O,q),l.forEach(D,function(X){q+=X.vs.length,R.push(X.vs),z+=X.barycenter*X.weight,$+=X.weight,q=y(R,O,q)});var V={vs:l.flatten(R,!0)};return $&&(V.barycenter=z/$,V.weight=$),V}},4219:(r,s,o)=>{var l=o(8436);r.exports=function(c){var y=function(p){var b={},T=0;return l.forEach(p.children(),function k(D){var O=T;l.forEach(p.children(D),k),b[D]={low:O,lim:T++}}),b}(c);l.forEach(c.graph().dummyChains,function(p){for(var b=c.node(p),T=b.edgeObj,k=function(q,V,X,it){var tt,rt,ut=[],Ct=[],et=Math.min(V[X].low,V[it].low),K=Math.max(V[X].lim,V[it].lim);tt=X;do tt=q.parent(tt),ut.push(tt);while(tt&&(V[tt].low>et||K>V[tt].lim));for(rt=tt,tt=it;(tt=q.parent(tt))!==rt;)Ct.push(tt);return{path:ut.concat(Ct.reverse()),lca:rt}}(c,y,T.v,T.w),D=k.path,O=k.lca,R=0,z=D[R],$=!0;p!==T.w;){if(b=c.node(p),$){for(;(z=D[R])!==O&&c.node(z).maxRank<b.rank;)R++;z===O&&($=!1)}if(!$){for(;R<D.length-1&&c.node(z=D[R+1]).minRank<=b.rank;)R++;z=D[R]}c.setParent(p,z),p=c.successors(p)[0]}})}},3573:(r,s,o)=>{var l=o(8436),c=o(574).Graph,y=o(1138);function p(q,V){var X={};return l.reduce(V,function(it,tt){var rt=0,ut=0,Ct=it.length,et=l.last(tt);return l.forEach(tt,function(K,ht){var xt=function(pt,wt){if(pt.node(wt).dummy)return l.find(pt.predecessors(wt),function(Ht){return pt.node(Ht).dummy})}(q,K),St=xt?q.node(xt).order:Ct;(xt||K===et)&&(l.forEach(tt.slice(ut,ht+1),function(pt){l.forEach(q.predecessors(pt),function(wt){var Ht=q.node(wt),Pt=Ht.order;!(Pt<rt||St<Pt)||Ht.dummy&&q.node(pt).dummy||T(X,wt,pt)})}),ut=ht+1,rt=St)}),tt}),X}function b(q,V){var X={};function it(tt,rt,ut,Ct,et){var K;l.forEach(l.range(rt,ut),function(ht){K=tt[ht],q.node(K).dummy&&l.forEach(q.predecessors(K),function(xt){var St=q.node(xt);St.dummy&&(St.order<Ct||St.order>et)&&T(X,xt,K)})})}return l.reduce(V,function(tt,rt){var ut,Ct=-1,et=0;return l.forEach(rt,function(K,ht){if(q.node(K).dummy==="border"){var xt=q.predecessors(K);xt.length&&(ut=q.node(xt[0]).order,it(rt,et,ht,Ct,ut),et=ht,Ct=ut)}it(rt,et,rt.length,ut,tt.length)}),rt}),X}function T(q,V,X){if(V>X){var it=V;V=X,X=it}var tt=q[V];tt||(q[V]=tt={}),tt[X]=!0}function k(q,V,X){if(V>X){var it=V;V=X,X=it}return l.has(q[V],X)}function D(q,V,X,it){var tt={},rt={},ut={};return l.forEach(V,function(Ct){l.forEach(Ct,function(et,K){tt[et]=et,rt[et]=et,ut[et]=K})}),l.forEach(V,function(Ct){var et=-1;l.forEach(Ct,function(K){var ht=it(K);if(ht.length){ht=l.sortBy(ht,function(Ht){return ut[Ht]});for(var xt=(ht.length-1)/2,St=Math.floor(xt),pt=Math.ceil(xt);St<=pt;++St){var wt=ht[St];rt[K]===K&&et<ut[wt]&&!k(X,K,wt)&&(rt[wt]=K,rt[K]=tt[K]=tt[wt],et=ut[wt])}}})}),{root:tt,align:rt}}function O(q,V,X,it,tt){var rt={},ut=function(K,ht,xt,St){var pt=new c,wt=K.graph(),Ht=function(Pt,ge,pe){return function(de,Bt,Gt){var oe,le=de.node(Bt),ye=de.node(Gt),It=0;if(It+=le.width/2,l.has(le,"labelpos"))switch(le.labelpos.toLowerCase()){case"l":oe=-le.width/2;break;case"r":oe=le.width/2}if(oe&&(It+=pe?oe:-oe),oe=0,It+=(le.dummy?ge:Pt)/2,It+=(ye.dummy?ge:Pt)/2,It+=ye.width/2,l.has(ye,"labelpos"))switch(ye.labelpos.toLowerCase()){case"l":oe=ye.width/2;break;case"r":oe=-ye.width/2}return oe&&(It+=pe?oe:-oe),oe=0,It}}(wt.nodesep,wt.edgesep,St);return l.forEach(ht,function(Pt){var ge;l.forEach(Pt,function(pe){var de=xt[pe];if(pt.setNode(de),ge){var Bt=xt[ge],Gt=pt.edge(Bt,de);pt.setEdge(Bt,de,Math.max(Ht(K,pe,ge),Gt||0))}ge=pe})}),pt}(q,V,X,tt),Ct=tt?"borderLeft":"borderRight";function et(K,ht){for(var xt=ut.nodes(),St=xt.pop(),pt={};St;)pt[St]?K(St):(pt[St]=!0,xt.push(St),xt=xt.concat(ht(St))),St=xt.pop()}return et(function(K){rt[K]=ut.inEdges(K).reduce(function(ht,xt){return Math.max(ht,rt[xt.v]+ut.edge(xt))},0)},ut.predecessors.bind(ut)),et(function(K){var ht=ut.outEdges(K).reduce(function(St,pt){return Math.min(St,rt[pt.w]-ut.edge(pt))},Number.POSITIVE_INFINITY),xt=q.node(K);ht!==Number.POSITIVE_INFINITY&&xt.borderType!==Ct&&(rt[K]=Math.max(rt[K],ht))},ut.successors.bind(ut)),l.forEach(it,function(K){rt[K]=rt[X[K]]}),rt}function R(q,V){return l.minBy(l.values(V),function(X){var it=Number.NEGATIVE_INFINITY,tt=Number.POSITIVE_INFINITY;return l.forIn(X,function(rt,ut){var Ct=function(et,K){return et.node(K).width}(q,ut)/2;it=Math.max(rt+Ct,it),tt=Math.min(rt-Ct,tt)}),it-tt})}function z(q,V){var X=l.values(V),it=l.min(X),tt=l.max(X);l.forEach(["u","d"],function(rt){l.forEach(["l","r"],function(ut){var Ct,et=rt+ut,K=q[et];if(K!==V){var ht=l.values(K);(Ct=ut==="l"?it-l.min(ht):tt-l.max(ht))&&(q[et]=l.mapValues(K,function(xt){return xt+Ct}))}})})}function $(q,V){return l.mapValues(q.ul,function(X,it){if(V)return q[V.toLowerCase()][it];var tt=l.sortBy(l.map(q,it));return(tt[1]+tt[2])/2})}r.exports={positionX:function(q){var V,X=y.buildLayerMatrix(q),it=l.merge(p(q,X),b(q,X)),tt={};l.forEach(["u","d"],function(ut){V=ut==="u"?X:l.values(X).reverse(),l.forEach(["l","r"],function(Ct){Ct==="r"&&(V=l.map(V,function(xt){return l.values(xt).reverse()}));var et=(ut==="u"?q.predecessors:q.successors).bind(q),K=D(0,V,it,et),ht=O(q,V,K.root,K.align,Ct==="r");Ct==="r"&&(ht=l.mapValues(ht,function(xt){return-xt})),tt[ut+Ct]=ht})});var rt=R(q,tt);return z(tt,rt),$(tt,q.graph().align)},findType1Conflicts:p,findType2Conflicts:b,addConflict:T,hasConflict:k,verticalAlignment:D,horizontalCompaction:O,alignCoordinates:z,findSmallestWidthAlignment:R,balance:$}},7873:(r,s,o)=>{var l=o(8436),c=o(1138),y=o(3573).positionX;r.exports=function(p){(function(b){var T=c.buildLayerMatrix(b),k=b.graph().ranksep,D=0;l.forEach(T,function(O){var R=l.max(l.map(O,function(z){return b.node(z).height}));l.forEach(O,function(z){b.node(z).y=D+R/2}),D+=R+k})})(p=c.asNonCompoundGraph(p)),l.forEach(y(p),function(b,T){p.node(T).x=b})}},300:(r,s,o)=>{var l=o(8436),c=o(574).Graph,y=o(6681).slack;function p(k,D){return l.forEach(k.nodes(),function O(R){l.forEach(D.nodeEdges(R),function(z){var $=z.v,q=R===$?z.w:$;k.hasNode(q)||y(D,z)||(k.setNode(q,{}),k.setEdge(R,q,{}),O(q))})}),k.nodeCount()}function b(k,D){return l.minBy(D.edges(),function(O){if(k.hasNode(O.v)!==k.hasNode(O.w))return y(D,O)})}function T(k,D,O){l.forEach(k.nodes(),function(R){D.node(R).rank+=O})}r.exports=function(k){var D,O,R=new c({directed:!1}),z=k.nodes()[0],$=k.nodeCount();for(R.setNode(z,{});p(R,k)<$;)D=b(R,k),O=R.hasNode(D.v)?y(k,D):-y(k,D),T(R,k,O);return R}},8093:(r,s,o)=>{var l=o(6681).longestPath,c=o(300),y=o(2472);r.exports=function(b){switch(b.graph().ranker){case"network-simplex":default:(function(T){y(T)})(b);break;case"tight-tree":(function(T){l(T),c(T)})(b);break;case"longest-path":p(b)}};var p=l},2472:(r,s,o)=>{var l=o(8436),c=o(300),y=o(6681).slack,p=o(6681).longestPath,b=o(574).alg.preorder,T=o(574).alg.postorder,k=o(1138).simplify;function D(tt){tt=k(tt),p(tt);var rt,ut=c(tt);for(z(ut),O(ut,tt);rt=q(ut);)X(ut,tt,rt,V(ut,tt,rt))}function O(tt,rt){var ut=T(tt,tt.nodes());ut=ut.slice(0,ut.length-1),l.forEach(ut,function(Ct){(function(et,K,ht){var xt=et.node(ht).parent;et.edge(ht,xt).cutvalue=R(et,K,ht)})(tt,rt,Ct)})}function R(tt,rt,ut){var Ct=tt.node(ut).parent,et=!0,K=rt.edge(ut,Ct),ht=0;return K||(et=!1,K=rt.edge(Ct,ut)),ht=K.weight,l.forEach(rt.nodeEdges(ut),function(xt){var St,pt,wt=xt.v===ut,Ht=wt?xt.w:xt.v;if(Ht!==Ct){var Pt=wt===et,ge=rt.edge(xt).weight;if(ht+=Pt?ge:-ge,St=ut,pt=Ht,tt.hasEdge(St,pt)){var pe=tt.edge(ut,Ht).cutvalue;ht+=Pt?-pe:pe}}}),ht}function z(tt,rt){arguments.length<2&&(rt=tt.nodes()[0]),$(tt,{},1,rt)}function $(tt,rt,ut,Ct,et){var K=ut,ht=tt.node(Ct);return rt[Ct]=!0,l.forEach(tt.neighbors(Ct),function(xt){l.has(rt,xt)||(ut=$(tt,rt,ut,xt,Ct))}),ht.low=K,ht.lim=ut++,et?ht.parent=et:delete ht.parent,ut}function q(tt){return l.find(tt.edges(),function(rt){return tt.edge(rt).cutvalue<0})}function V(tt,rt,ut){var Ct=ut.v,et=ut.w;rt.hasEdge(Ct,et)||(Ct=ut.w,et=ut.v);var K=tt.node(Ct),ht=tt.node(et),xt=K,St=!1;K.lim>ht.lim&&(xt=ht,St=!0);var pt=l.filter(rt.edges(),function(wt){return St===it(0,tt.node(wt.v),xt)&&St!==it(0,tt.node(wt.w),xt)});return l.minBy(pt,function(wt){return y(rt,wt)})}function X(tt,rt,ut,Ct){var et=ut.v,K=ut.w;tt.removeEdge(et,K),tt.setEdge(Ct.v,Ct.w,{}),z(tt),O(tt,rt),function(ht,xt){var St=l.find(ht.nodes(),function(wt){return!xt.node(wt).parent}),pt=b(ht,St);pt=pt.slice(1),l.forEach(pt,function(wt){var Ht=ht.node(wt).parent,Pt=xt.edge(wt,Ht),ge=!1;Pt||(Pt=xt.edge(Ht,wt),ge=!0),xt.node(wt).rank=xt.node(Ht).rank+(ge?Pt.minlen:-Pt.minlen)})}(tt,rt)}function it(tt,rt,ut){return ut.low<=rt.lim&&rt.lim<=ut.lim}r.exports=D,D.initLowLimValues=z,D.initCutValues=O,D.calcCutValue=R,D.leaveEdge=q,D.enterEdge=V,D.exchangeEdges=X},6681:(r,s,o)=>{var l=o(8436);r.exports={longestPath:function(c){var y={};l.forEach(c.sources(),function p(b){var T=c.node(b);if(l.has(y,b))return T.rank;y[b]=!0;var k=l.min(l.map(c.outEdges(b),function(D){return p(D.w)-c.edge(D).minlen}));return k!==Number.POSITIVE_INFINITY&&k!=null||(k=0),T.rank=k})},slack:function(c,y){return c.node(y.w).rank-c.node(y.v).rank-c.edge(y).minlen}}},1138:(r,s,o)=>{var l=o(8436),c=o(574).Graph;function y(b,T,k,D){var O;do O=l.uniqueId(D);while(b.hasNode(O));return k.dummy=T,b.setNode(O,k),O}function p(b){return l.max(l.map(b.nodes(),function(T){var k=b.node(T).rank;if(!l.isUndefined(k))return k}))}r.exports={addDummyNode:y,simplify:function(b){var T=new c().setGraph(b.graph());return l.forEach(b.nodes(),function(k){T.setNode(k,b.node(k))}),l.forEach(b.edges(),function(k){var D=T.edge(k.v,k.w)||{weight:0,minlen:1},O=b.edge(k);T.setEdge(k.v,k.w,{weight:D.weight+O.weight,minlen:Math.max(D.minlen,O.minlen)})}),T},asNonCompoundGraph:function(b){var T=new c({multigraph:b.isMultigraph()}).setGraph(b.graph());return l.forEach(b.nodes(),function(k){b.children(k).length||T.setNode(k,b.node(k))}),l.forEach(b.edges(),function(k){T.setEdge(k,b.edge(k))}),T},successorWeights:function(b){var T=l.map(b.nodes(),function(k){var D={};return l.forEach(b.outEdges(k),function(O){D[O.w]=(D[O.w]||0)+b.edge(O).weight}),D});return l.zipObject(b.nodes(),T)},predecessorWeights:function(b){var T=l.map(b.nodes(),function(k){var D={};return l.forEach(b.inEdges(k),function(O){D[O.v]=(D[O.v]||0)+b.edge(O).weight}),D});return l.zipObject(b.nodes(),T)},intersectRect:function(b,T){var k,D,O=b.x,R=b.y,z=T.x-O,$=T.y-R,q=b.width/2,V=b.height/2;if(!z&&!$)throw new Error("Not possible to find intersection inside of the rectangle");return Math.abs($)*q>Math.abs(z)*V?($<0&&(V=-V),k=V*z/$,D=V):(z<0&&(q=-q),k=q,D=q*$/z),{x:O+k,y:R+D}},buildLayerMatrix:function(b){var T=l.map(l.range(p(b)+1),function(){return[]});return l.forEach(b.nodes(),function(k){var D=b.node(k),O=D.rank;l.isUndefined(O)||(T[O][D.order]=k)}),T},normalizeRanks:function(b){var T=l.min(l.map(b.nodes(),function(k){return b.node(k).rank}));l.forEach(b.nodes(),function(k){var D=b.node(k);l.has(D,"rank")&&(D.rank-=T)})},removeEmptyRanks:function(b){var T=l.min(l.map(b.nodes(),function(R){return b.node(R).rank})),k=[];l.forEach(b.nodes(),function(R){var z=b.node(R).rank-T;k[z]||(k[z]=[]),k[z].push(R)});var D=0,O=b.graph().nodeRankFactor;l.forEach(k,function(R,z){l.isUndefined(R)&&z%O!=0?--D:D&&l.forEach(R,function($){b.node($).rank+=D})})},addBorderNode:function(b,T,k,D){var O={width:0,height:0};return arguments.length>=4&&(O.rank=k,O.order=D),y(b,"border",O,T)},maxRank:p,partition:function(b,T){var k={lhs:[],rhs:[]};return l.forEach(b,function(D){T(D)?k.lhs.push(D):k.rhs.push(D)}),k},time:function(b,T){var k=l.now();try{return T()}finally{console.log(b+" time: "+(l.now()-k)+"ms")}},notime:function(b,T){return T()}}},8177:r=>{r.exports="0.8.5"},7856:function(r){r.exports=function(){var s=Object.hasOwnProperty,o=Object.setPrototypeOf,l=Object.isFrozen,c=Object.getPrototypeOf,y=Object.getOwnPropertyDescriptor,p=Object.freeze,b=Object.seal,T=Object.create,k=typeof Reflect!="undefined"&&Reflect,D=k.apply,O=k.construct;D||(D=function($t,Nt,ie){return $t.apply(Nt,ie)}),p||(p=function($t){return $t}),b||(b=function($t){return $t}),O||(O=function($t,Nt){return new(Function.prototype.bind.apply($t,[null].concat(function(ie){if(Array.isArray(ie)){for(var Qe=0,be=Array(ie.length);Qe<ie.length;Qe++)be[Qe]=ie[Qe];return be}return Array.from(ie)}(Nt))))});var R,z=et(Array.prototype.forEach),$=et(Array.prototype.pop),q=et(Array.prototype.push),V=et(String.prototype.toLowerCase),X=et(String.prototype.match),it=et(String.prototype.replace),tt=et(String.prototype.indexOf),rt=et(String.prototype.trim),ut=et(RegExp.prototype.test),Ct=(R=TypeError,function(){for(var $t=arguments.length,Nt=Array($t),ie=0;ie<$t;ie++)Nt[ie]=arguments[ie];return O(R,Nt)});function et($t){return function(Nt){for(var ie=arguments.length,Qe=Array(ie>1?ie-1:0),be=1;be<ie;be++)Qe[be-1]=arguments[be];return D($t,Nt,Qe)}}function K($t,Nt){o&&o($t,null);for(var ie=Nt.length;ie--;){var Qe=Nt[ie];if(typeof Qe=="string"){var be=V(Qe);be!==Qe&&(l(Nt)||(Nt[ie]=be),Qe=be)}$t[Qe]=!0}return $t}function ht($t){var Nt=T(null),ie=void 0;for(ie in $t)D(s,$t,[ie])&&(Nt[ie]=$t[ie]);return Nt}function xt($t,Nt){for(;$t!==null;){var ie=y($t,Nt);if(ie){if(ie.get)return et(ie.get);if(typeof ie.value=="function")return et(ie.value)}$t=c($t)}return function(Qe){return console.warn("fallback value for",Qe),null}}var St=p(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),pt=p(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),wt=p(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),Ht=p(["animate","color-profile","cursor","discard","fedropshadow","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),Pt=p(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover"]),ge=p(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),pe=p(["#text"]),de=p(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","xmlns","slot"]),Bt=p(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","targetx","targety","transform","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),Gt=p(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),oe=p(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),le=b(/\{\{[\s\S]*|[\s\S]*\}\}/gm),ye=b(/<%[\s\S]*|[\s\S]*%>/gm),It=b(/^data-[\-\w.\u00B7-\uFFFF]/),He=b(/^aria-[\-\w]+$/),he=b(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),jt=b(/^(?:\w+script|data):/i),Kt=b(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),ct=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function($t){return typeof $t}:function($t){return $t&&typeof Symbol=="function"&&$t.constructor===Symbol&&$t!==Symbol.prototype?"symbol":typeof $t};function te($t){if(Array.isArray($t)){for(var Nt=0,ie=Array($t.length);Nt<$t.length;Nt++)ie[Nt]=$t[Nt];return ie}return Array.from($t)}var Dt=function(){return typeof window=="undefined"?null:window},Vt=function($t,Nt){if(($t===void 0?"undefined":ct($t))!=="object"||typeof $t.createPolicy!="function")return null;var ie=null,Qe="data-tt-policy-suffix";Nt.currentScript&&Nt.currentScript.hasAttribute(Qe)&&(ie=Nt.currentScript.getAttribute(Qe));var be="dompurify"+(ie?"#"+ie:"");try{return $t.createPolicy(be,{createHTML:function(Ce){return Ce}})}catch{return console.warn("TrustedTypes policy "+be+" could not be created."),null}};return function $t(){var Nt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Dt(),ie=function(Ft){return $t(Ft)};if(ie.version="2.3.4",ie.removed=[],!Nt||!Nt.document||Nt.document.nodeType!==9)return ie.isSupported=!1,ie;var Qe=Nt.document,be=Nt.document,Ce=Nt.DocumentFragment,un=Nt.HTMLTemplateElement,Ve=Nt.Node,Le=Nt.Element,ke=Nt.NodeFilter,Je=Nt.NamedNodeMap,Ye=Je===void 0?Nt.NamedNodeMap||Nt.MozNamedAttrMap:Je,Ge=Nt.HTMLFormElement,Ze=Nt.DOMParser,De=Nt.trustedTypes,zn=Le.prototype,Te=xt(zn,"cloneNode"),en=xt(zn,"nextSibling"),_n=xt(zn,"childNodes"),Rr=xt(zn,"parentNode");if(typeof un=="function"){var bn=be.createElement("template");bn.content&&bn.content.ownerDocument&&(be=bn.content.ownerDocument)}var Jn=Vt(De,Qe),cn=Jn&&Pr?Jn.createHTML(""):"",yn=be,Xe=yn.implementation,Cn=yn.createNodeIterator,Tn=yn.createDocumentFragment,Un=yn.getElementsByTagName,$n=Qe.importNode,Nr={};try{Nr=ht(be).documentMode?be.documentMode:{}}catch{}var En={};ie.isSupported=typeof Rr=="function"&&Xe&&Xe.createHTMLDocument!==void 0&&Nr!==9;var Wn=le,Yn=ye,Vn=It,Gn=He,tr=jt,On=Kt,In=he,ln=null,jn=K({},[].concat(te(St),te(pt),te(wt),te(Pt),te(pe))),mn=null,oi=K({},[].concat(te(de),te(Bt),te(Gt),te(oe))),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}})),ra=null,Rn=null,Io=!0,xa=!0,si=!1,Fr=!1,Ur=!1,Xr=!1,ti=!1,Or=!1,ei=!1,Pr=!1,Fi=!0,fi=!0,er=!1,Vr={},ka=null,ni=K({},["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"]),Ta=null,xo=K({},["audio","video","img","source","image","track"]),di=null,nn=K({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Zn="http://www.w3.org/1998/Math/MathML",Mn="http://www.w3.org/2000/svg",Be="http://www.w3.org/1999/xhtml",Xn=Be,mt=!1,Kr=void 0,Zt=["application/xhtml+xml","text/html"],Pi="text/html",ya=void 0,eo=null,ko=be.createElement("form"),Ro=function(Ft){return Ft instanceof RegExp||Ft instanceof Function},Fo=function(Ft){eo&&eo===Ft||(Ft&&(Ft===void 0?"undefined":ct(Ft))==="object"||(Ft={}),Ft=ht(Ft),ln="ALLOWED_TAGS"in Ft?K({},Ft.ALLOWED_TAGS):jn,mn="ALLOWED_ATTR"in Ft?K({},Ft.ALLOWED_ATTR):oi,di="ADD_URI_SAFE_ATTR"in Ft?K(ht(nn),Ft.ADD_URI_SAFE_ATTR):nn,Ta="ADD_DATA_URI_TAGS"in Ft?K(ht(xo),Ft.ADD_DATA_URI_TAGS):xo,ka="FORBID_CONTENTS"in Ft?K({},Ft.FORBID_CONTENTS):ni,ra="FORBID_TAGS"in Ft?K({},Ft.FORBID_TAGS):{},Rn="FORBID_ATTR"in Ft?K({},Ft.FORBID_ATTR):{},Vr="USE_PROFILES"in Ft&&Ft.USE_PROFILES,Io=Ft.ALLOW_ARIA_ATTR!==!1,xa=Ft.ALLOW_DATA_ATTR!==!1,si=Ft.ALLOW_UNKNOWN_PROTOCOLS||!1,Fr=Ft.SAFE_FOR_TEMPLATES||!1,Ur=Ft.WHOLE_DOCUMENT||!1,Or=Ft.RETURN_DOM||!1,ei=Ft.RETURN_DOM_FRAGMENT||!1,Pr=Ft.RETURN_TRUSTED_TYPE||!1,ti=Ft.FORCE_BODY||!1,Fi=Ft.SANITIZE_DOM!==!1,fi=Ft.KEEP_CONTENT!==!1,er=Ft.IN_PLACE||!1,In=Ft.ALLOWED_URI_REGEXP||In,Xn=Ft.NAMESPACE||Be,Ft.CUSTOM_ELEMENT_HANDLING&&Ro(Ft.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(gr.tagNameCheck=Ft.CUSTOM_ELEMENT_HANDLING.tagNameCheck),Ft.CUSTOM_ELEMENT_HANDLING&&Ro(Ft.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(gr.attributeNameCheck=Ft.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),Ft.CUSTOM_ELEMENT_HANDLING&&typeof Ft.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(gr.allowCustomizedBuiltInElements=Ft.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Kr=Kr=Zt.indexOf(Ft.PARSER_MEDIA_TYPE)===-1?Pi:Ft.PARSER_MEDIA_TYPE,ya=Kr==="application/xhtml+xml"?function(je){return je}:V,Fr&&(xa=!1),ei&&(Or=!0),Vr&&(ln=K({},[].concat(te(pe))),mn=[],Vr.html===!0&&(K(ln,St),K(mn,de)),Vr.svg===!0&&(K(ln,pt),K(mn,Bt),K(mn,oe)),Vr.svgFilters===!0&&(K(ln,wt),K(mn,Bt),K(mn,oe)),Vr.mathMl===!0&&(K(ln,Pt),K(mn,Gt),K(mn,oe))),Ft.ADD_TAGS&&(ln===jn&&(ln=ht(ln)),K(ln,Ft.ADD_TAGS)),Ft.ADD_ATTR&&(mn===oi&&(mn=ht(mn)),K(mn,Ft.ADD_ATTR)),Ft.ADD_URI_SAFE_ATTR&&K(di,Ft.ADD_URI_SAFE_ATTR),Ft.FORBID_CONTENTS&&(ka===ni&&(ka=ht(ka)),K(ka,Ft.FORBID_CONTENTS)),fi&&(ln["#text"]=!0),Ur&&K(ln,["html","head","body"]),ln.table&&(K(ln,["tbody"]),delete ra.tbody),p&&p(Ft),eo=Ft)},Gr=K({},["mi","mo","mn","ms","mtext"]),ia=K({},["foreignobject","desc","title","annotation-xml"]),Dn=K({},pt);K(Dn,wt),K(Dn,Ht);var Ua=K({},Pt);K(Ua,ge);var no=function(Ft){var je=Rr(Ft);je&&je.tagName||(je={namespaceURI:Be,tagName:"template"});var Fe=V(Ft.tagName),mr=V(je.tagName);if(Ft.namespaceURI===Mn)return je.namespaceURI===Be?Fe==="svg":je.namespaceURI===Zn?Fe==="svg"&&(mr==="annotation-xml"||Gr[mr]):Boolean(Dn[Fe]);if(Ft.namespaceURI===Zn)return je.namespaceURI===Be?Fe==="math":je.namespaceURI===Mn?Fe==="math"&&ia[mr]:Boolean(Ua[Fe]);if(Ft.namespaceURI===Be){if(je.namespaceURI===Mn&&!ia[mr]||je.namespaceURI===Zn&&!Gr[mr])return!1;var br=K({},["title","style","font","a","script"]);return!Ua[Fe]&&(br[Fe]||!Dn[Fe])}return!1},yr=function(Ft){q(ie.removed,{element:Ft});try{Ft.parentNode.removeChild(Ft)}catch{try{Ft.outerHTML=cn}catch{Ft.remove()}}},Cr=function(Ft,je){try{q(ie.removed,{attribute:je.getAttributeNode(Ft),from:je})}catch{q(ie.removed,{attribute:null,from:je})}if(je.removeAttribute(Ft),Ft==="is"&&!mn[Ft])if(Or||ei)try{yr(je)}catch{}else try{je.setAttribute(Ft,"")}catch{}},ki=function(Ft){var je=void 0,Fe=void 0;if(ti)Ft="<remove></remove>"+Ft;else{var mr=X(Ft,/^[\r\n\t ]+/);Fe=mr&&mr[0]}Kr==="application/xhtml+xml"&&(Ft='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+Ft+"</body></html>");var br=Jn?Jn.createHTML(Ft):Ft;if(Xn===Be)try{je=new Ze().parseFromString(br,Kr)}catch{}if(!je||!je.documentElement){je=Xe.createDocument(Xn,"template",null);try{je.documentElement.innerHTML=mt?"":br}catch{}}var Ti=je.body||je.documentElement;return Ft&&Fe&&Ti.insertBefore(be.createTextNode(Fe),Ti.childNodes[0]||null),Xn===Be?Un.call(je,Ur?"html":"body")[0]:Ur?je.documentElement:Ti},ri=function(Ft){return Cn.call(Ft.ownerDocument||Ft,Ft,ke.SHOW_ELEMENT|ke.SHOW_COMMENT|ke.SHOW_TEXT,null,!1)},$r=function(Ft){return Ft instanceof Ge&&(typeof Ft.nodeName!="string"||typeof Ft.textContent!="string"||typeof Ft.removeChild!="function"||!(Ft.attributes instanceof Ye)||typeof Ft.removeAttribute!="function"||typeof Ft.setAttribute!="function"||typeof Ft.namespaceURI!="string"||typeof Ft.insertBefore!="function")},Hr=function(Ft){return(Ve===void 0?"undefined":ct(Ve))==="object"?Ft instanceof Ve:Ft&&(Ft===void 0?"undefined":ct(Ft))==="object"&&typeof Ft.nodeType=="number"&&typeof Ft.nodeName=="string"},pi=function(Ft,je,Fe){En[Ft]&&z(En[Ft],function(mr){mr.call(ie,je,Fe,eo)})},Qr=function(Ft){var je=void 0;if(pi("beforeSanitizeElements",Ft,null),$r(Ft)||X(Ft.nodeName,/[\u0080-\uFFFF]/))return yr(Ft),!0;var Fe=ya(Ft.nodeName);if(pi("uponSanitizeElement",Ft,{tagName:Fe,allowedTags:ln}),!Hr(Ft.firstElementChild)&&(!Hr(Ft.content)||!Hr(Ft.content.firstElementChild))&&ut(/<[/\w]/g,Ft.innerHTML)&&ut(/<[/\w]/g,Ft.textContent)||Fe==="select"&&ut(/<template/i,Ft.innerHTML))return yr(Ft),!0;if(!ln[Fe]||ra[Fe]){if(fi&&!ka[Fe]){var mr=Rr(Ft)||Ft.parentNode,br=_n(Ft)||Ft.childNodes;if(br&&mr)for(var Ti=br.length-1;Ti>=0;--Ti)mr.insertBefore(Te(br[Ti],!0),en(Ft))}return!ra[Fe]&&Gi(Fe)&&(gr.tagNameCheck instanceof RegExp&&ut(gr.tagNameCheck,Fe)||gr.tagNameCheck instanceof Function&&gr.tagNameCheck(Fe))?!1:(yr(Ft),!0)}return Ft instanceof Le&&!no(Ft)?(yr(Ft),!0):Fe!=="noscript"&&Fe!=="noembed"||!ut(/<\/no(script|embed)/i,Ft.innerHTML)?(Fr&&Ft.nodeType===3&&(je=Ft.textContent,je=it(je,Wn," "),je=it(je,Yn," "),Ft.textContent!==je&&(q(ie.removed,{element:Ft.cloneNode()}),Ft.textContent=je)),pi("afterSanitizeElements",Ft,null),!1):(yr(Ft),!0)},aa=function(Ft,je,Fe){if(Fi&&(je==="id"||je==="name")&&(Fe in be||Fe in ko))return!1;if(!(xa&&!Rn[je]&&ut(Vn,je))){if(!(Io&&ut(Gn,je))){if(!mn[je]||Rn[je]){if(!(Gi(Ft)&&(gr.tagNameCheck instanceof RegExp&&ut(gr.tagNameCheck,Ft)||gr.tagNameCheck instanceof Function&&gr.tagNameCheck(Ft))&&(gr.attributeNameCheck instanceof RegExp&&ut(gr.attributeNameCheck,je)||gr.attributeNameCheck instanceof Function&&gr.attributeNameCheck(je))||je==="is"&&gr.allowCustomizedBuiltInElements&&(gr.tagNameCheck instanceof RegExp&&ut(gr.tagNameCheck,Fe)||gr.tagNameCheck instanceof Function&&gr.tagNameCheck(Fe))))return!1}else if(!di[je]){if(!ut(In,it(Fe,On,""))){if((je!=="src"&&je!=="xlink:href"&&je!=="href"||Ft==="script"||tt(Fe,"data:")!==0||!Ta[Ft])&&!(si&&!ut(tr,it(Fe,On,"")))){if(Fe)return!1}}}}}return!0},Gi=function(Ft){return Ft.indexOf("-")>0},Yi=function(Ft){var je=void 0,Fe=void 0,mr=void 0,br=void 0;pi("beforeSanitizeAttributes",Ft,null);var Ti=Ft.attributes;if(Ti){var ii={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:mn};for(br=Ti.length;br--;){var _c=je=Ti[br],Ei=_c.name,Di=_c.namespaceURI;if(Fe=rt(je.value),mr=ya(Ei),ii.attrName=mr,ii.attrValue=Fe,ii.keepAttr=!0,ii.forceKeepAttr=void 0,pi("uponSanitizeAttribute",Ft,ii),Fe=ii.attrValue,!ii.forceKeepAttr&&(Cr(Ei,Ft),ii.keepAttr))if(ut(/\/>/i,Fe))Cr(Ei,Ft);else{Fr&&(Fe=it(Fe,Wn," "),Fe=it(Fe,Yn," "));var bc=ya(Ft.nodeName);if(aa(bc,mr,Fe))try{Di?Ft.setAttributeNS(Di,Ei,Fe):Ft.setAttribute(Ei,Fe),$(ie.removed)}catch{}}}pi("afterSanitizeAttributes",Ft,null)}},To=function Ft(je){var Fe=void 0,mr=ri(je);for(pi("beforeSanitizeShadowDOM",je,null);Fe=mr.nextNode();)pi("uponSanitizeShadowNode",Fe,null),Qr(Fe)||(Fe.content instanceof Ce&&Ft(Fe.content),Yi(Fe));pi("afterSanitizeShadowDOM",je,null)};return ie.sanitize=function(Ft,je){var Fe=void 0,mr=void 0,br=void 0,Ti=void 0,ii=void 0;if((mt=!Ft)&&(Ft="<!-->"),typeof Ft!="string"&&!Hr(Ft)){if(typeof Ft.toString!="function")throw Ct("toString is not a function");if(typeof(Ft=Ft.toString())!="string")throw Ct("dirty is not a string, aborting")}if(!ie.isSupported){if(ct(Nt.toStaticHTML)==="object"||typeof Nt.toStaticHTML=="function"){if(typeof Ft=="string")return Nt.toStaticHTML(Ft);if(Hr(Ft))return Nt.toStaticHTML(Ft.outerHTML)}return Ft}if(Xr||Fo(je),ie.removed=[],typeof Ft=="string"&&(er=!1),!er)if(Ft instanceof Ve)(mr=(Fe=ki("<!---->")).ownerDocument.importNode(Ft,!0)).nodeType===1&&mr.nodeName==="BODY"||mr.nodeName==="HTML"?Fe=mr:Fe.appendChild(mr);else{if(!Or&&!Fr&&!Ur&&Ft.indexOf("<")===-1)return Jn&&Pr?Jn.createHTML(Ft):Ft;if(!(Fe=ki(Ft)))return Or?null:cn}Fe&&ti&&yr(Fe.firstChild);for(var _c=ri(er?Ft:Fe);br=_c.nextNode();)br.nodeType===3&&br===Ti||Qr(br)||(br.content instanceof Ce&&To(br.content),Yi(br),Ti=br);if(Ti=null,er)return Ft;if(Or){if(ei)for(ii=Tn.call(Fe.ownerDocument);Fe.firstChild;)ii.appendChild(Fe.firstChild);else ii=Fe;return mn.shadowroot&&(ii=$n.call(Qe,ii,!0)),ii}var Ei=Ur?Fe.outerHTML:Fe.innerHTML;return Fr&&(Ei=it(Ei,Wn," "),Ei=it(Ei,Yn," ")),Jn&&Pr?Jn.createHTML(Ei):Ei},ie.setConfig=function(Ft){Fo(Ft),Xr=!0},ie.clearConfig=function(){eo=null,Xr=!1},ie.isValidAttribute=function(Ft,je,Fe){eo||Fo({});var mr=ya(Ft),br=ya(je);return aa(mr,br,Fe)},ie.addHook=function(Ft,je){typeof je=="function"&&(En[Ft]=En[Ft]||[],q(En[Ft],je))},ie.removeHook=function(Ft){En[Ft]&&$(En[Ft])},ie.removeHooks=function(Ft){En[Ft]&&(En[Ft]=[])},ie.removeAllHooks=function(){En={}},ie}()}()},8282:(r,s,o)=>{var l=o(2354);r.exports={Graph:l.Graph,json:o(8974),alg:o(2440),version:l.version}},2842:(r,s,o)=>{var l=o(9126);r.exports=function(c){var y,p={},b=[];function T(k){l.has(p,k)||(p[k]=!0,y.push(k),l.each(c.successors(k),T),l.each(c.predecessors(k),T))}return l.each(c.nodes(),function(k){y=[],T(k),y.length&&b.push(y)}),b}},3984:(r,s,o)=>{var l=o(9126);function c(y,p,b,T,k,D){l.has(T,p)||(T[p]=!0,b||D.push(p),l.each(k(p),function(O){c(y,O,b,T,k,D)}),b&&D.push(p))}r.exports=function(y,p,b){l.isArray(p)||(p=[p]);var T=(y.isDirected()?y.successors:y.neighbors).bind(y),k=[],D={};return l.each(p,function(O){if(!y.hasNode(O))throw new Error("Graph does not have node: "+O);c(y,O,b==="post",D,T,k)}),k}},4847:(r,s,o)=>{var l=o(3763),c=o(9126);r.exports=function(y,p,b){return c.transform(y.nodes(),function(T,k){T[k]=l(y,k,p,b)},{})}},3763:(r,s,o)=>{var l=o(9126),c=o(9675);r.exports=function(p,b,T,k){return function(D,O,R,z){var $,q,V={},X=new c,it=function(tt){var rt=tt.v!==$?tt.v:tt.w,ut=V[rt],Ct=R(tt),et=q.distance+Ct;if(Ct<0)throw new Error("dijkstra does not allow negative edge weights. Bad edge: "+tt+" Weight: "+Ct);et<ut.distance&&(ut.distance=et,ut.predecessor=$,X.decrease(rt,et))};for(D.nodes().forEach(function(tt){var rt=tt===O?0:Number.POSITIVE_INFINITY;V[tt]={distance:rt},X.add(tt,rt)});X.size()>0&&($=X.removeMin(),(q=V[$]).distance!==Number.POSITIVE_INFINITY);)z($).forEach(it);return V}(p,String(b),T||y,k||function(D){return p.outEdges(D)})};var y=l.constant(1)},9096:(r,s,o)=>{var l=o(9126),c=o(5023);r.exports=function(y){return l.filter(c(y),function(p){return p.length>1||p.length===1&&y.hasEdge(p[0],p[0])})}},8924:(r,s,o)=>{var l=o(9126);r.exports=function(y,p,b){return function(T,k,D){var O={},R=T.nodes();return R.forEach(function(z){O[z]={},O[z][z]={distance:0},R.forEach(function($){z!==$&&(O[z][$]={distance:Number.POSITIVE_INFINITY})}),D(z).forEach(function($){var q=$.v===z?$.w:$.v,V=k($);O[z][q]={distance:V,predecessor:z}})}),R.forEach(function(z){var $=O[z];R.forEach(function(q){var V=O[q];R.forEach(function(X){var it=V[z],tt=$[X],rt=V[X],ut=it.distance+tt.distance;ut<rt.distance&&(rt.distance=ut,rt.predecessor=tt.predecessor)})})}),O}(y,p||c,b||function(T){return y.outEdges(T)})};var c=l.constant(1)},2440:(r,s,o)=>{r.exports={components:o(2842),dijkstra:o(3763),dijkstraAll:o(4847),findCycles:o(9096),floydWarshall:o(8924),isAcyclic:o(2707),postorder:o(8828),preorder:o(2648),prim:o(514),tarjan:o(5023),topsort:o(2166)}},2707:(r,s,o)=>{var l=o(2166);r.exports=function(c){try{l(c)}catch(y){if(y instanceof l.CycleException)return!1;throw y}return!0}},8828:(r,s,o)=>{var l=o(3984);r.exports=function(c,y){return l(c,y,"post")}},2648:(r,s,o)=>{var l=o(3984);r.exports=function(c,y){return l(c,y,"pre")}},514:(r,s,o)=>{var l=o(9126),c=o(771),y=o(9675);r.exports=function(p,b){var T,k=new c,D={},O=new y;function R($){var q=$.v===T?$.w:$.v,V=O.priority(q);if(V!==void 0){var X=b($);X<V&&(D[q]=T,O.decrease(q,X))}}if(p.nodeCount()===0)return k;l.each(p.nodes(),function($){O.add($,Number.POSITIVE_INFINITY),k.setNode($)}),O.decrease(p.nodes()[0],0);for(var z=!1;O.size()>0;){if(T=O.removeMin(),l.has(D,T))k.setEdge(T,D[T]);else{if(z)throw new Error("Input graph is not connected: "+p);z=!0}p.nodeEdges(T).forEach(R)}return k}},5023:(r,s,o)=>{var l=o(9126);r.exports=function(c){var y=0,p=[],b={},T=[];function k(D){var O=b[D]={onStack:!0,lowlink:y,index:y++};if(p.push(D),c.successors(D).forEach(function($){l.has(b,$)?b[$].onStack&&(O.lowlink=Math.min(O.lowlink,b[$].index)):(k($),O.lowlink=Math.min(O.lowlink,b[$].lowlink))}),O.lowlink===O.index){var R,z=[];do R=p.pop(),b[R].onStack=!1,z.push(R);while(D!==R);T.push(z)}}return c.nodes().forEach(function(D){l.has(b,D)||k(D)}),T}},2166:(r,s,o)=>{var l=o(9126);function c(p){var b={},T={},k=[];if(l.each(p.sinks(),function D(O){if(l.has(T,O))throw new y;l.has(b,O)||(T[O]=!0,b[O]=!0,l.each(p.predecessors(O),D),delete T[O],k.push(O))}),l.size(b)!==p.nodeCount())throw new y;return k}function y(){}r.exports=c,c.CycleException=y,y.prototype=new Error},9675:(r,s,o)=>{var l=o(9126);function c(){this._arr=[],this._keyIndices={}}r.exports=c,c.prototype.size=function(){return this._arr.length},c.prototype.keys=function(){return this._arr.map(function(y){return y.key})},c.prototype.has=function(y){return l.has(this._keyIndices,y)},c.prototype.priority=function(y){var p=this._keyIndices[y];if(p!==void 0)return this._arr[p].priority},c.prototype.min=function(){if(this.size()===0)throw new Error("Queue underflow");return this._arr[0].key},c.prototype.add=function(y,p){var b=this._keyIndices;if(y=String(y),!l.has(b,y)){var T=this._arr,k=T.length;return b[y]=k,T.push({key:y,priority:p}),this._decrease(k),!0}return!1},c.prototype.removeMin=function(){this._swap(0,this._arr.length-1);var y=this._arr.pop();return delete this._keyIndices[y.key],this._heapify(0),y.key},c.prototype.decrease=function(y,p){var b=this._keyIndices[y];if(p>this._arr[b].priority)throw new Error("New priority is greater than current priority. Key: "+y+" Old: "+this._arr[b].priority+" New: "+p);this._arr[b].priority=p,this._decrease(b)},c.prototype._heapify=function(y){var p=this._arr,b=2*y,T=b+1,k=y;b<p.length&&(k=p[b].priority<p[k].priority?b:k,T<p.length&&(k=p[T].priority<p[k].priority?T:k),k!==y&&(this._swap(y,k),this._heapify(k)))},c.prototype._decrease=function(y){for(var p,b=this._arr,T=b[y].priority;y!==0&&!(b[p=y>>1].priority<T);)this._swap(y,p),y=p},c.prototype._swap=function(y,p){var b=this._arr,T=this._keyIndices,k=b[y],D=b[p];b[y]=D,b[p]=k,T[D.key]=y,T[k.key]=p}},771:(r,s,o)=>{var l=o(9126);r.exports=y;var c="\0";function y(O){this._isDirected=!l.has(O,"directed")||O.directed,this._isMultigraph=!!l.has(O,"multigraph")&&O.multigraph,this._isCompound=!!l.has(O,"compound")&&O.compound,this._label=void 0,this._defaultNodeLabelFn=l.constant(void 0),this._defaultEdgeLabelFn=l.constant(void 0),this._nodes={},this._isCompound&&(this._parent={},this._children={},this._children["\0"]={}),this._in={},this._preds={},this._out={},this._sucs={},this._edgeObjs={},this._edgeLabels={}}function p(O,R){O[R]?O[R]++:O[R]=1}function b(O,R){--O[R]||delete O[R]}function T(O,R,z,$){var q=""+R,V=""+z;if(!O&&q>V){var X=q;q=V,V=X}return q+""+V+""+(l.isUndefined($)?"\0":$)}function k(O,R,z,$){var q=""+R,V=""+z;if(!O&&q>V){var X=q;q=V,V=X}var it={v:q,w:V};return $&&(it.name=$),it}function D(O,R){return T(O,R.v,R.w,R.name)}y.prototype._nodeCount=0,y.prototype._edgeCount=0,y.prototype.isDirected=function(){return this._isDirected},y.prototype.isMultigraph=function(){return this._isMultigraph},y.prototype.isCompound=function(){return this._isCompound},y.prototype.setGraph=function(O){return this._label=O,this},y.prototype.graph=function(){return this._label},y.prototype.setDefaultNodeLabel=function(O){return l.isFunction(O)||(O=l.constant(O)),this._defaultNodeLabelFn=O,this},y.prototype.nodeCount=function(){return this._nodeCount},y.prototype.nodes=function(){return l.keys(this._nodes)},y.prototype.sources=function(){var O=this;return l.filter(this.nodes(),function(R){return l.isEmpty(O._in[R])})},y.prototype.sinks=function(){var O=this;return l.filter(this.nodes(),function(R){return l.isEmpty(O._out[R])})},y.prototype.setNodes=function(O,R){var z=arguments,$=this;return l.each(O,function(q){z.length>1?$.setNode(q,R):$.setNode(q)}),this},y.prototype.setNode=function(O,R){return l.has(this._nodes,O)?(arguments.length>1&&(this._nodes[O]=R),this):(this._nodes[O]=arguments.length>1?R:this._defaultNodeLabelFn(O),this._isCompound&&(this._parent[O]=c,this._children[O]={},this._children["\0"][O]=!0),this._in[O]={},this._preds[O]={},this._out[O]={},this._sucs[O]={},++this._nodeCount,this)},y.prototype.node=function(O){return this._nodes[O]},y.prototype.hasNode=function(O){return l.has(this._nodes,O)},y.prototype.removeNode=function(O){var R=this;if(l.has(this._nodes,O)){var z=function($){R.removeEdge(R._edgeObjs[$])};delete this._nodes[O],this._isCompound&&(this._removeFromParentsChildList(O),delete this._parent[O],l.each(this.children(O),function($){R.setParent($)}),delete this._children[O]),l.each(l.keys(this._in[O]),z),delete this._in[O],delete this._preds[O],l.each(l.keys(this._out[O]),z),delete this._out[O],delete this._sucs[O],--this._nodeCount}return this},y.prototype.setParent=function(O,R){if(!this._isCompound)throw new Error("Cannot set parent in a non-compound graph");if(l.isUndefined(R))R=c;else{for(var z=R+="";!l.isUndefined(z);z=this.parent(z))if(z===O)throw new Error("Setting "+R+" as parent of "+O+" would create a cycle");this.setNode(R)}return this.setNode(O),this._removeFromParentsChildList(O),this._parent[O]=R,this._children[R][O]=!0,this},y.prototype._removeFromParentsChildList=function(O){delete this._children[this._parent[O]][O]},y.prototype.parent=function(O){if(this._isCompound){var R=this._parent[O];if(R!==c)return R}},y.prototype.children=function(O){if(l.isUndefined(O)&&(O=c),this._isCompound){var R=this._children[O];if(R)return l.keys(R)}else{if(O===c)return this.nodes();if(this.hasNode(O))return[]}},y.prototype.predecessors=function(O){var R=this._preds[O];if(R)return l.keys(R)},y.prototype.successors=function(O){var R=this._sucs[O];if(R)return l.keys(R)},y.prototype.neighbors=function(O){var R=this.predecessors(O);if(R)return l.union(R,this.successors(O))},y.prototype.isLeaf=function(O){return(this.isDirected()?this.successors(O):this.neighbors(O)).length===0},y.prototype.filterNodes=function(O){var R=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});R.setGraph(this.graph());var z=this;l.each(this._nodes,function(V,X){O(X)&&R.setNode(X,V)}),l.each(this._edgeObjs,function(V){R.hasNode(V.v)&&R.hasNode(V.w)&&R.setEdge(V,z.edge(V))});var $={};function q(V){var X=z.parent(V);return X===void 0||R.hasNode(X)?($[V]=X,X):X in $?$[X]:q(X)}return this._isCompound&&l.each(R.nodes(),function(V){R.setParent(V,q(V))}),R},y.prototype.setDefaultEdgeLabel=function(O){return l.isFunction(O)||(O=l.constant(O)),this._defaultEdgeLabelFn=O,this},y.prototype.edgeCount=function(){return this._edgeCount},y.prototype.edges=function(){return l.values(this._edgeObjs)},y.prototype.setPath=function(O,R){var z=this,$=arguments;return l.reduce(O,function(q,V){return $.length>1?z.setEdge(q,V,R):z.setEdge(q,V),V}),this},y.prototype.setEdge=function(){var O,R,z,$,q=!1,V=arguments[0];typeof V=="object"&&V!==null&&"v"in V?(O=V.v,R=V.w,z=V.name,arguments.length===2&&($=arguments[1],q=!0)):(O=V,R=arguments[1],z=arguments[3],arguments.length>2&&($=arguments[2],q=!0)),O=""+O,R=""+R,l.isUndefined(z)||(z=""+z);var X=T(this._isDirected,O,R,z);if(l.has(this._edgeLabels,X))return q&&(this._edgeLabels[X]=$),this;if(!l.isUndefined(z)&&!this._isMultigraph)throw new Error("Cannot set a named edge when isMultigraph = false");this.setNode(O),this.setNode(R),this._edgeLabels[X]=q?$:this._defaultEdgeLabelFn(O,R,z);var it=k(this._isDirected,O,R,z);return O=it.v,R=it.w,Object.freeze(it),this._edgeObjs[X]=it,p(this._preds[R],O),p(this._sucs[O],R),this._in[R][X]=it,this._out[O][X]=it,this._edgeCount++,this},y.prototype.edge=function(O,R,z){var $=arguments.length===1?D(this._isDirected,arguments[0]):T(this._isDirected,O,R,z);return this._edgeLabels[$]},y.prototype.hasEdge=function(O,R,z){var $=arguments.length===1?D(this._isDirected,arguments[0]):T(this._isDirected,O,R,z);return l.has(this._edgeLabels,$)},y.prototype.removeEdge=function(O,R,z){var $=arguments.length===1?D(this._isDirected,arguments[0]):T(this._isDirected,O,R,z),q=this._edgeObjs[$];return q&&(O=q.v,R=q.w,delete this._edgeLabels[$],delete this._edgeObjs[$],b(this._preds[R],O),b(this._sucs[O],R),delete this._in[R][$],delete this._out[O][$],this._edgeCount--),this},y.prototype.inEdges=function(O,R){var z=this._in[O];if(z){var $=l.values(z);return R?l.filter($,function(q){return q.v===R}):$}},y.prototype.outEdges=function(O,R){var z=this._out[O];if(z){var $=l.values(z);return R?l.filter($,function(q){return q.w===R}):$}},y.prototype.nodeEdges=function(O,R){var z=this.inEdges(O,R);if(z)return z.concat(this.outEdges(O,R))}},2354:(r,s,o)=>{r.exports={Graph:o(771),version:o(9631)}},8974:(r,s,o)=>{var l=o(9126),c=o(771);function y(b){return l.map(b.nodes(),function(T){var k=b.node(T),D=b.parent(T),O={v:T};return l.isUndefined(k)||(O.value=k),l.isUndefined(D)||(O.parent=D),O})}function p(b){return l.map(b.edges(),function(T){var k=b.edge(T),D={v:T.v,w:T.w};return l.isUndefined(T.name)||(D.name=T.name),l.isUndefined(k)||(D.value=k),D})}r.exports={write:function(b){var T={options:{directed:b.isDirected(),multigraph:b.isMultigraph(),compound:b.isCompound()},nodes:y(b),edges:p(b)};return l.isUndefined(b.graph())||(T.value=l.clone(b.graph())),T},read:function(b){var T=new c(b.options).setGraph(b.value);return l.each(b.nodes,function(k){T.setNode(k.v,k.value),k.parent&&T.setParent(k.v,k.parent)}),l.each(b.edges,function(k){T.setEdge({v:k.v,w:k.w,name:k.name},k.value)}),T}}},9126:(r,s,o)=>{var l;try{l={clone:o(6678),constant:o(5703),each:o(6073),filter:o(3105),has:o(8721),isArray:o(1469),isEmpty:o(1609),isFunction:o(3560),isUndefined:o(2353),keys:o(3674),map:o(5161),reduce:o(4061),size:o(4238),transform:o(8718),union:o(3386),values:o(2628)}}catch{}l||(l=window._),r.exports=l},9631:r=>{r.exports="2.1.8"},1773:(r,s,o)=>{Object.defineProperty(s,"__esModule",{value:!0});var l=o(1083),c=o(7628),y=function(){function p(b,T){this.color=T,this.changed=!1,this.data=b,this.type=new c.default}return p.prototype.set=function(b,T){return this.color=T,this.changed=!1,this.data=b,this.type.type=0,this},p.prototype._ensureHSL=function(){var b=this.data,T=b.h,k=b.s,D=b.l;T===void 0&&(b.h=l.default.channel.rgb2hsl(b,"h")),k===void 0&&(b.s=l.default.channel.rgb2hsl(b,"s")),D===void 0&&(b.l=l.default.channel.rgb2hsl(b,"l"))},p.prototype._ensureRGB=function(){var b=this.data,T=b.r,k=b.g,D=b.b;T===void 0&&(b.r=l.default.channel.hsl2rgb(b,"r")),k===void 0&&(b.g=l.default.channel.hsl2rgb(b,"g")),D===void 0&&(b.b=l.default.channel.hsl2rgb(b,"b"))},Object.defineProperty(p.prototype,"r",{get:function(){var b=this.data,T=b.r;return this.type.is(2)||T===void 0?(this._ensureHSL(),l.default.channel.hsl2rgb(b,"r")):T},set:function(b){this.type.set(1),this.changed=!0,this.data.r=b},enumerable:!0,configurable:!0}),Object.defineProperty(p.prototype,"g",{get:function(){var b=this.data,T=b.g;return this.type.is(2)||T===void 0?(this._ensureHSL(),l.default.channel.hsl2rgb(b,"g")):T},set:function(b){this.type.set(1),this.changed=!0,this.data.g=b},enumerable:!0,configurable:!0}),Object.defineProperty(p.prototype,"b",{get:function(){var b=this.data,T=b.b;return this.type.is(2)||T===void 0?(this._ensureHSL(),l.default.channel.hsl2rgb(b,"b")):T},set:function(b){this.type.set(1),this.changed=!0,this.data.b=b},enumerable:!0,configurable:!0}),Object.defineProperty(p.prototype,"h",{get:function(){var b=this.data,T=b.h;return this.type.is(1)||T===void 0?(this._ensureRGB(),l.default.channel.rgb2hsl(b,"h")):T},set:function(b){this.type.set(2),this.changed=!0,this.data.h=b},enumerable:!0,configurable:!0}),Object.defineProperty(p.prototype,"s",{get:function(){var b=this.data,T=b.s;return this.type.is(1)||T===void 0?(this._ensureRGB(),l.default.channel.rgb2hsl(b,"s")):T},set:function(b){this.type.set(2),this.changed=!0,this.data.s=b},enumerable:!0,configurable:!0}),Object.defineProperty(p.prototype,"l",{get:function(){var b=this.data,T=b.l;return this.type.is(1)||T===void 0?(this._ensureRGB(),l.default.channel.rgb2hsl(b,"l")):T},set:function(b){this.type.set(2),this.changed=!0,this.data.l=b},enumerable:!0,configurable:!0}),Object.defineProperty(p.prototype,"a",{get:function(){return this.data.a},set:function(b){this.changed=!0,this.data.a=b},enumerable:!0,configurable:!0}),p}();s.default=y},8167:(r,s,o)=>{Object.defineProperty(s,"__esModule",{value:!0});var l=new(o(1773)).default({r:0,g:0,b:0,a:0},"transparent");s.default=l},7628:(r,s)=>{Object.defineProperty(s,"__esModule",{value:!0});var o=function(){function l(){this.type=0}return l.prototype.get=function(){return this.type},l.prototype.set=function(c){if(this.type&&this.type!==c)throw new Error("Cannot change both RGB and HSL channels at the same time");this.type=c},l.prototype.reset=function(){this.type=0},l.prototype.is=function(c){return this.type===c},l}();s.default=o},1655:(r,s,o)=>{Object.defineProperty(s,"__esModule",{value:!0});var l=o(8167),c=o(6061),y={re:/^#((?:[a-f0-9]{2}){2,4}|[a-f0-9]{3})$/i,parse:function(p){if(p.charCodeAt(0)===35){var b=p.match(y.re);if(b){var T=b[1],k=parseInt(T,16),D=T.length,O=D%4==0,R=D>4,z=R?1:17,$=R?8:4,q=O?0:-1,V=R?255:15;return l.default.set({r:(k>>$*(q+3)&V)*z,g:(k>>$*(q+2)&V)*z,b:(k>>$*(q+1)&V)*z,a:O?(k&V)*z/255:1},p)}}},stringify:function(p){var b=p.r,T=p.g,k=p.b,D=p.a;return D<1?"#"+c.DEC2HEX[Math.round(b)]+c.DEC2HEX[Math.round(T)]+c.DEC2HEX[Math.round(k)]+c.DEC2HEX[Math.round(255*D)]:"#"+c.DEC2HEX[Math.round(b)]+c.DEC2HEX[Math.round(T)]+c.DEC2HEX[Math.round(k)]}};s.default=y},8589:(r,s,o)=>{Object.defineProperty(s,"__esModule",{value:!0});var l=o(1083),c=o(8167),y={re:/^hsla?\(\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?(?:deg|grad|rad|turn)?)\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?%)\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?%)(?:\s*?(?:,|\/)\s*?\+?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?(%)?))?\s*?\)$/i,hueRe:/^(.+?)(deg|grad|rad|turn)$/i,_hue2deg:function(p){var b=p.match(y.hueRe);if(b){var T=b[1];switch(b[2]){case"grad":return l.default.channel.clamp.h(.9*parseFloat(T));case"rad":return l.default.channel.clamp.h(180*parseFloat(T)/Math.PI);case"turn":return l.default.channel.clamp.h(360*parseFloat(T))}}return l.default.channel.clamp.h(parseFloat(p))},parse:function(p){var b=p.charCodeAt(0);if(b===104||b===72){var T=p.match(y.re);if(T){var k=T[1],D=T[2],O=T[3],R=T[4],z=T[5];return c.default.set({h:y._hue2deg(k),s:l.default.channel.clamp.s(parseFloat(D)),l:l.default.channel.clamp.l(parseFloat(O)),a:R?l.default.channel.clamp.a(z?parseFloat(R)/100:parseFloat(R)):1},p)}}},stringify:function(p){var b=p.h,T=p.s,k=p.l,D=p.a;return D<1?"hsla("+l.default.lang.round(b)+", "+l.default.lang.round(T)+"%, "+l.default.lang.round(k)+"%, "+D+")":"hsl("+l.default.lang.round(b)+", "+l.default.lang.round(T)+"%, "+l.default.lang.round(k)+"%)"}};s.default=y},2191:(r,s,o)=>{Object.defineProperty(s,"__esModule",{value:!0});var l=o(1655),c=o(7538),y=o(6762),p=o(8589),b={format:{keyword:c.default,hex:l.default,rgb:y.default,rgba:y.default,hsl:p.default,hsla:p.default},parse:function(T){if(typeof T!="string")return T;var k=l.default.parse(T)||y.default.parse(T)||p.default.parse(T)||c.default.parse(T);if(k)return k;throw new Error('Unsupported color format: "'+T+'"')},stringify:function(T){return!T.changed&&T.color?T.color:T.type.is(2)||T.data.r===void 0?p.default.stringify(T):T.a<1||!Number.isInteger(T.r)||!Number.isInteger(T.g)||!Number.isInteger(T.b)?y.default.stringify(T):l.default.stringify(T)}};s.default=b},7538:(r,s,o)=>{Object.defineProperty(s,"__esModule",{value:!0});var l=o(1655),c={colors:{aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyanaqua:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",transparent:"#00000000",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"},parse:function(y){y=y.toLowerCase();var p=c.colors[y];if(p)return l.default.parse(p)},stringify:function(y){var p=l.default.stringify(y);for(var b in c.colors)if(c.colors[b]===p)return b}};s.default=c},6762:(r,s,o)=>{Object.defineProperty(s,"__esModule",{value:!0});var l=o(1083),c=o(8167),y={re:/^rgba?\(\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))(?:\s*?(?:,|\/)\s*?\+?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?)))?\s*?\)$/i,parse:function(p){var b=p.charCodeAt(0);if(b===114||b===82){var T=p.match(y.re);if(T){var k=T[1],D=T[2],O=T[3],R=T[4],z=T[5],$=T[6],q=T[7],V=T[8];return c.default.set({r:l.default.channel.clamp.r(D?2.55*parseFloat(k):parseFloat(k)),g:l.default.channel.clamp.g(R?2.55*parseFloat(O):parseFloat(O)),b:l.default.channel.clamp.b($?2.55*parseFloat(z):parseFloat(z)),a:q?l.default.channel.clamp.a(V?parseFloat(q)/100:parseFloat(q)):1},p)}}},stringify:function(p){var b=p.r,T=p.g,k=p.b,D=p.a;return D<1?"rgba("+l.default.lang.round(b)+", "+l.default.lang.round(T)+", "+l.default.lang.round(k)+", "+l.default.lang.round(D)+")":"rgb("+l.default.lang.round(b)+", "+l.default.lang.round(T)+", "+l.default.lang.round(k)+")"}};s.default=y},6061:(r,s,o)=>{Object.defineProperty(s,"__esModule",{value:!0});var l=o(1083),c={};s.DEC2HEX=c;for(var y=0;y<=255;y++)c[y]=l.default.unit.dec2hex(y)},8613:(r,s,o)=>{Object.defineProperty(s,"__esModule",{value:!0}),function(l){for(var c in l)s.hasOwnProperty(c)||(s[c]=l[c])}(o(1203))},5371:(r,s,o)=>{Object.defineProperty(s,"__esModule",{value:!0});var l=o(2191),c=o(418);s.default=function(y,p){var b=l.default.parse(y),T={};for(var k in p)p[k]&&(T[k]=b[k]+p[k]);return c.default(y,T)}},1416:(r,s,o)=>{Object.defineProperty(s,"__esModule",{value:!0});var l=o(1083),c=o(2191);s.default=function(y,p,b){var T=c.default.parse(y),k=T[p],D=l.default.channel.clamp[p](k+b);return k!==D&&(T[p]=D),c.default.stringify(T)}},9353:(r,s,o)=>{Object.defineProperty(s,"__esModule",{value:!0});var l=o(6197);s.default=function(c){return l.default(c,"a")}},3394:(r,s,o)=>{Object.defineProperty(s,"__esModule",{value:!0});var l=o(6197);s.default=function(c){return l.default(c,"b")}},418:(r,s,o)=>{Object.defineProperty(s,"__esModule",{value:!0});var l=o(1083),c=o(2191);s.default=function(y,p){var b=c.default.parse(y);for(var T in p)b[T]=l.default.channel.clamp[T](p[T]);return c.default.stringify(b)}},6197:(r,s,o)=>{Object.defineProperty(s,"__esModule",{value:!0});var l=o(1083),c=o(2191);s.default=function(y,p){return l.default.lang.round(c.default.parse(y)[p])}},7361:(r,s,o)=>{Object.defineProperty(s,"__esModule",{value:!0});var l=o(1416);s.default=function(c){return l.default(c,"h",180)}},3042:(r,s,o)=>{Object.defineProperty(s,"__esModule",{value:!0});var l=o(1083),c=o(8346);s.default=function(y,p){var b=c.default(y),T=c.default(p),k=Math.max(b,T),D=Math.min(b,T),O=(k+Number.EPSILON)/(D+Number.EPSILON);return l.default.lang.round(l.default.lang.clamp(O,1,10))}},1364:(r,s,o)=>{Object.defineProperty(s,"__esModule",{value:!0});var l=o(1416);s.default=function(c,y){return l.default(c,"l",-y)}},9610:(r,s,o)=>{Object.defineProperty(s,"__esModule",{value:!0});var l=o(1416);s.default=function(c,y){return l.default(c,"s",-y)}},572:(r,s,o)=>{Object.defineProperty(s,"__esModule",{value:!0});var l=o(418);s.default=function(c){return l.default(c,{s:0})}},2299:(r,s,o)=>{Object.defineProperty(s,"__esModule",{value:!0});var l=o(6197);s.default=function(c){return l.default(c,"g")}},3116:(r,s,o)=>{Object.defineProperty(s,"__esModule",{value:!0});var l=o(1083),c=o(8167),y=o(2191);s.default=function(p,b,T,k){k===void 0&&(k=1);var D=c.default.set({h:l.default.channel.clamp.h(p),s:l.default.channel.clamp.s(b),l:l.default.channel.clamp.l(T),a:l.default.channel.clamp.a(k)});return y.default.stringify(D)}},3008:(r,s,o)=>{Object.defineProperty(s,"__esModule",{value:!0});var l=o(6197);s.default=function(c){return l.default(c,"h")}},1203:(r,s,o)=>{Object.defineProperty(s,"__esModule",{value:!0});var l=o(6538);s.hex=l.default;var c=o(6538);s.rgb=c.default;var y=o(6538);s.rgba=y.default;var p=o(3116);s.hsl=p.default;var b=o(3116);s.hsla=b.default;var T=o(2619);s.toKeyword=T.default;var k=o(4307);s.toHex=k.default;var D=o(4125);s.toRgba=D.default;var O=o(7329);s.toHsla=O.default;var R=o(6197);s.channel=R.default;var z=o(9640);s.red=z.default;var $=o(2299);s.green=$.default;var q=o(3394);s.blue=q.default;var V=o(3008);s.hue=V.default;var X=o(6451);s.saturation=X.default;var it=o(9235);s.lightness=it.default;var tt=o(9353);s.alpha=tt.default;var rt=o(9353);s.opacity=rt.default;var ut=o(3042);s.contrast=ut.default;var Ct=o(8346);s.luminance=Ct.default;var et=o(4117);s.isDark=et.default;var K=o(2224);s.isLight=K.default;var ht=o(585);s.isValid=ht.default;var xt=o(1080);s.saturate=xt.default;var St=o(9610);s.desaturate=St.default;var pt=o(3235);s.lighten=pt.default;var wt=o(1364);s.darken=wt.default;var Ht=o(7189);s.opacify=Ht.default;var Pt=o(7189);s.fadeIn=Pt.default;var ge=o(4989);s.transparentize=ge.default;var pe=o(4989);s.fadeOut=pe.default;var de=o(7361);s.complement=de.default;var Bt=o(572);s.grayscale=Bt.default;var Gt=o(5371);s.adjust=Gt.default;var oe=o(418);s.change=oe.default;var le=o(566);s.invert=le.default;var ye=o(1861);s.mix=ye.default;var It=o(7081);s.scale=It.default},566:(r,s,o)=>{Object.defineProperty(s,"__esModule",{value:!0});var l=o(2191),c=o(1861);s.default=function(y,p){p===void 0&&(p=100);var b=l.default.parse(y);return b.r=255-b.r,b.g=255-b.g,b.b=255-b.b,c.default(b,y,p)}},4117:(r,s,o)=>{Object.defineProperty(s,"__esModule",{value:!0});var l=o(2224);s.default=function(c){return!l.default(c)}},2224:(r,s,o)=>{Object.defineProperty(s,"__esModule",{value:!0});var l=o(8346);s.default=function(c){return l.default(c)>=.5}},585:(r,s,o)=>{Object.defineProperty(s,"__esModule",{value:!0});var l=o(2191);s.default=function(c){try{return l.default.parse(c),!0}catch{return!1}}},3235:(r,s,o)=>{Object.defineProperty(s,"__esModule",{value:!0});var l=o(1416);s.default=function(c,y){return l.default(c,"l",y)}},9235:(r,s,o)=>{Object.defineProperty(s,"__esModule",{value:!0});var l=o(6197);s.default=function(c){return l.default(c,"l")}},8346:(r,s,o)=>{Object.defineProperty(s,"__esModule",{value:!0});var l=o(1083),c=o(2191);s.default=function(y){var p=c.default.parse(y),b=p.r,T=p.g,k=p.b,D=.2126*l.default.channel.toLinear(b)+.7152*l.default.channel.toLinear(T)+.0722*l.default.channel.toLinear(k);return l.default.lang.round(D)}},1861:(r,s,o)=>{Object.defineProperty(s,"__esModule",{value:!0});var l=o(2191),c=o(6538);s.default=function(y,p,b){b===void 0&&(b=50);var T=l.default.parse(y),k=T.r,D=T.g,O=T.b,R=T.a,z=l.default.parse(p),$=z.r,q=z.g,V=z.b,X=z.a,it=b/100,tt=2*it-1,rt=R-X,ut=((tt*rt==-1?tt:(tt+rt)/(1+tt*rt))+1)/2,Ct=1-ut,et=k*ut+$*Ct,K=D*ut+q*Ct,ht=O*ut+V*Ct,xt=R*it+X*(1-it);return c.default(et,K,ht,xt)}},7189:(r,s,o)=>{Object.defineProperty(s,"__esModule",{value:!0});var l=o(1416);s.default=function(c,y){return l.default(c,"a",y)}},9640:(r,s,o)=>{Object.defineProperty(s,"__esModule",{value:!0});var l=o(6197);s.default=function(c){return l.default(c,"r")}},6538:(r,s,o)=>{Object.defineProperty(s,"__esModule",{value:!0});var l=o(1083),c=o(8167),y=o(2191),p=o(418);s.default=function(b,T,k,D){if(k===void 0&&(k=0),D===void 0&&(D=1),typeof b!="number")return p.default(b,{a:T});var O=c.default.set({r:l.default.channel.clamp.r(b),g:l.default.channel.clamp.g(T),b:l.default.channel.clamp.b(k),a:l.default.channel.clamp.a(D)});return y.default.stringify(O)}},1080:(r,s,o)=>{Object.defineProperty(s,"__esModule",{value:!0});var l=o(1416);s.default=function(c,y){return l.default(c,"s",y)}},6451:(r,s,o)=>{Object.defineProperty(s,"__esModule",{value:!0});var l=o(6197);s.default=function(c){return l.default(c,"s")}},7081:(r,s,o)=>{Object.defineProperty(s,"__esModule",{value:!0});var l=o(1083),c=o(2191),y=o(5371);s.default=function(p,b){var T,k,D,O=c.default.parse(p),R={};for(var z in b)R[z]=(T=O[z],k=b[z],D=l.default.channel.max[z],k>0?(D-T)*k/100:T*k/100);return y.default(p,R)}},4307:(r,s,o)=>{Object.defineProperty(s,"__esModule",{value:!0});var l=o(2191);s.default=function(c){return l.default.format.hex.stringify(l.default.parse(c))}},7329:(r,s,o)=>{Object.defineProperty(s,"__esModule",{value:!0});var l=o(2191);s.default=function(c){return l.default.format.hsla.stringify(l.default.parse(c))}},2619:(r,s,o)=>{Object.defineProperty(s,"__esModule",{value:!0});var l=o(2191);s.default=function(c){return l.default.format.keyword.stringify(l.default.parse(c))}},4125:(r,s,o)=>{Object.defineProperty(s,"__esModule",{value:!0});var l=o(2191);s.default=function(c){return l.default.format.rgba.stringify(l.default.parse(c))}},4989:(r,s,o)=>{Object.defineProperty(s,"__esModule",{value:!0});var l=o(1416);s.default=function(c,y){return l.default(c,"a",-y)}},7994:(r,s)=>{Object.defineProperty(s,"__esModule",{value:!0});var o={min:{r:0,g:0,b:0,s:0,l:0,a:0},max:{r:255,g:255,b:255,h:360,s:100,l:100,a:1},clamp:{r:function(l){return l>=255?255:l<0?0:l},g:function(l){return l>=255?255:l<0?0:l},b:function(l){return l>=255?255:l<0?0:l},h:function(l){return l%360},s:function(l){return l>=100?100:l<0?0:l},l:function(l){return l>=100?100:l<0?0:l},a:function(l){return l>=1?1:l<0?0:l}},toLinear:function(l){var c=l/255;return l>.03928?Math.pow((c+.055)/1.055,2.4):c/12.92},hue2rgb:function(l,c,y){return y<0&&(y+=1),y>1&&(y-=1),y<1/6?l+6*(c-l)*y:y<.5?c:y<2/3?l+(c-l)*(2/3-y)*6:l},hsl2rgb:function(l,c){var y=l.h,p=l.s,b=l.l;if(!p)return 2.55*b;y/=360,p/=100;var T=(b/=100)<.5?b*(1+p):b+p-b*p,k=2*b-T;switch(c){case"r":return 255*o.hue2rgb(k,T,y+1/3);case"g":return 255*o.hue2rgb(k,T,y);case"b":return 255*o.hue2rgb(k,T,y-1/3)}},rgb2hsl:function(l,c){var y=l.r,p=l.g,b=l.b;y/=255,p/=255,b/=255;var T=Math.max(y,p,b),k=Math.min(y,p,b),D=(T+k)/2;if(c==="l")return 100*D;if(T===k)return 0;var O=T-k;if(c==="s")return 100*(D>.5?O/(2-T-k):O/(T+k));switch(T){case y:return 60*((p-b)/O+(p<b?6:0));case p:return 60*((b-y)/O+2);case b:return 60*((y-p)/O+4);default:return-1}}};s.default=o},1083:(r,s,o)=>{Object.defineProperty(s,"__esModule",{value:!0});var l=o(7994),c=o(4027),y=o(318),p={channel:l.default,lang:c.default,unit:y.default};s.default=p},4027:(r,s)=>{Object.defineProperty(s,"__esModule",{value:!0});var o={clamp:function(l,c,y){return c>y?Math.min(c,Math.max(y,l)):Math.min(y,Math.max(c,l))},round:function(l){return Math.round(1e10*l)/1e10}};s.default=o},318:(r,s)=>{Object.defineProperty(s,"__esModule",{value:!0});var o={dec2hex:function(l){var c=Math.round(l).toString(16);return c.length>1?c:"0"+c}};s.default=o},8552:(r,s,o)=>{var l=o(852)(o(5639),"DataView");r.exports=l},1989:(r,s,o)=>{var l=o(1789),c=o(401),y=o(7667),p=o(1327),b=o(1866);function T(k){var D=-1,O=k==null?0:k.length;for(this.clear();++D<O;){var R=k[D];this.set(R[0],R[1])}}T.prototype.clear=l,T.prototype.delete=c,T.prototype.get=y,T.prototype.has=p,T.prototype.set=b,r.exports=T},8407:(r,s,o)=>{var l=o(7040),c=o(2188),y=o(2117),p=o(7518),b=o(4705);function T(k){var D=-1,O=k==null?0:k.length;for(this.clear();++D<O;){var R=k[D];this.set(R[0],R[1])}}T.prototype.clear=l,T.prototype.delete=c,T.prototype.get=y,T.prototype.has=p,T.prototype.set=b,r.exports=T},7071:(r,s,o)=>{var l=o(852)(o(5639),"Map");r.exports=l},3369:(r,s,o)=>{var l=o(4785),c=o(1285),y=o(6e3),p=o(9916),b=o(5265);function T(k){var D=-1,O=k==null?0:k.length;for(this.clear();++D<O;){var R=k[D];this.set(R[0],R[1])}}T.prototype.clear=l,T.prototype.delete=c,T.prototype.get=y,T.prototype.has=p,T.prototype.set=b,r.exports=T},3818:(r,s,o)=>{var l=o(852)(o(5639),"Promise");r.exports=l},8525:(r,s,o)=>{var l=o(852)(o(5639),"Set");r.exports=l},8668:(r,s,o)=>{var l=o(3369),c=o(619),y=o(2385);function p(b){var T=-1,k=b==null?0:b.length;for(this.__data__=new l;++T<k;)this.add(b[T])}p.prototype.add=p.prototype.push=c,p.prototype.has=y,r.exports=p},6384:(r,s,o)=>{var l=o(8407),c=o(7465),y=o(3779),p=o(7599),b=o(4758),T=o(4309);function k(D){var O=this.__data__=new l(D);this.size=O.size}k.prototype.clear=c,k.prototype.delete=y,k.prototype.get=p,k.prototype.has=b,k.prototype.set=T,r.exports=k},2705:(r,s,o)=>{var l=o(5639).Symbol;r.exports=l},1149:(r,s,o)=>{var l=o(5639).Uint8Array;r.exports=l},577:(r,s,o)=>{var l=o(852)(o(5639),"WeakMap");r.exports=l},6874:r=>{r.exports=function(s,o,l){switch(l.length){case 0:return s.call(o);case 1:return s.call(o,l[0]);case 2:return s.call(o,l[0],l[1]);case 3:return s.call(o,l[0],l[1],l[2])}return s.apply(o,l)}},7412:r=>{r.exports=function(s,o){for(var l=-1,c=s==null?0:s.length;++l<c&&o(s[l],l,s)!==!1;);return s}},4963:r=>{r.exports=function(s,o){for(var l=-1,c=s==null?0:s.length,y=0,p=[];++l<c;){var b=s[l];o(b,l,s)&&(p[y++]=b)}return p}},7443:(r,s,o)=>{var l=o(2118);r.exports=function(c,y){return!(c==null||!c.length)&&l(c,y,0)>-1}},1196:r=>{r.exports=function(s,o,l){for(var c=-1,y=s==null?0:s.length;++c<y;)if(l(o,s[c]))return!0;return!1}},4636:(r,s,o)=>{var l=o(2545),c=o(5694),y=o(1469),p=o(4144),b=o(5776),T=o(6719),k=Object.prototype.hasOwnProperty;r.exports=function(D,O){var R=y(D),z=!R&&c(D),$=!R&&!z&&p(D),q=!R&&!z&&!$&&T(D),V=R||z||$||q,X=V?l(D.length,String):[],it=X.length;for(var tt in D)!O&&!k.call(D,tt)||V&&(tt=="length"||$&&(tt=="offset"||tt=="parent")||q&&(tt=="buffer"||tt=="byteLength"||tt=="byteOffset")||b(tt,it))||X.push(tt);return X}},9932:r=>{r.exports=function(s,o){for(var l=-1,c=s==null?0:s.length,y=Array(c);++l<c;)y[l]=o(s[l],l,s);return y}},2488:r=>{r.exports=function(s,o){for(var l=-1,c=o.length,y=s.length;++l<c;)s[y+l]=o[l];return s}},2663:r=>{r.exports=function(s,o,l,c){var y=-1,p=s==null?0:s.length;for(c&&p&&(l=s[++y]);++y<p;)l=o(l,s[y],y,s);return l}},2908:r=>{r.exports=function(s,o){for(var l=-1,c=s==null?0:s.length;++l<c;)if(o(s[l],l,s))return!0;return!1}},8983:(r,s,o)=>{var l=o(371)("length");r.exports=l},6556:(r,s,o)=>{var l=o(9465),c=o(7813);r.exports=function(y,p,b){(b!==void 0&&!c(y[p],b)||b===void 0&&!(p in y))&&l(y,p,b)}},4865:(r,s,o)=>{var l=o(9465),c=o(7813),y=Object.prototype.hasOwnProperty;r.exports=function(p,b,T){var k=p[b];y.call(p,b)&&c(k,T)&&(T!==void 0||b in p)||l(p,b,T)}},8470:(r,s,o)=>{var l=o(7813);r.exports=function(c,y){for(var p=c.length;p--;)if(l(c[p][0],y))return p;return-1}},4037:(r,s,o)=>{var l=o(8363),c=o(3674);r.exports=function(y,p){return y&&l(p,c(p),y)}},3886:(r,s,o)=>{var l=o(8363),c=o(1704);r.exports=function(y,p){return y&&l(p,c(p),y)}},9465:(r,s,o)=>{var l=o(8777);r.exports=function(c,y,p){y=="__proto__"&&l?l(c,y,{configurable:!0,enumerable:!0,value:p,writable:!0}):c[y]=p}},5990:(r,s,o)=>{var l=o(6384),c=o(7412),y=o(4865),p=o(4037),b=o(3886),T=o(4626),k=o(278),D=o(8805),O=o(1911),R=o(8234),z=o(6904),$=o(4160),q=o(3824),V=o(9148),X=o(8517),it=o(1469),tt=o(4144),rt=o(6688),ut=o(3218),Ct=o(2928),et=o(3674),K=o(1704),ht="[object Arguments]",xt="[object Function]",St="[object Object]",pt={};pt[ht]=pt["[object Array]"]=pt["[object ArrayBuffer]"]=pt["[object DataView]"]=pt["[object Boolean]"]=pt["[object Date]"]=pt["[object Float32Array]"]=pt["[object Float64Array]"]=pt["[object Int8Array]"]=pt["[object Int16Array]"]=pt["[object Int32Array]"]=pt["[object Map]"]=pt["[object Number]"]=pt[St]=pt["[object RegExp]"]=pt["[object Set]"]=pt["[object String]"]=pt["[object Symbol]"]=pt["[object Uint8Array]"]=pt["[object Uint8ClampedArray]"]=pt["[object Uint16Array]"]=pt["[object Uint32Array]"]=!0,pt["[object Error]"]=pt[xt]=pt["[object WeakMap]"]=!1,r.exports=function wt(Ht,Pt,ge,pe,de,Bt){var Gt,oe=1&Pt,le=2&Pt,ye=4&Pt;if(ge&&(Gt=de?ge(Ht,pe,de,Bt):ge(Ht)),Gt!==void 0)return Gt;if(!ut(Ht))return Ht;var It=it(Ht);if(It){if(Gt=q(Ht),!oe)return k(Ht,Gt)}else{var He=$(Ht),he=He==xt||He=="[object GeneratorFunction]";if(tt(Ht))return T(Ht,oe);if(He==St||He==ht||he&&!de){if(Gt=le||he?{}:X(Ht),!oe)return le?O(Ht,b(Gt,Ht)):D(Ht,p(Gt,Ht))}else{if(!pt[He])return de?Ht:{};Gt=V(Ht,He,oe)}}Bt||(Bt=new l);var jt=Bt.get(Ht);if(jt)return jt;Bt.set(Ht,Gt),Ct(Ht)?Ht.forEach(function(ct){Gt.add(wt(ct,Pt,ge,ct,Ht,Bt))}):rt(Ht)&&Ht.forEach(function(ct,te){Gt.set(te,wt(ct,Pt,ge,te,Ht,Bt))});var Kt=It?void 0:(ye?le?z:R:le?K:et)(Ht);return c(Kt||Ht,function(ct,te){Kt&&(ct=Ht[te=ct]),y(Gt,te,wt(ct,Pt,ge,te,Ht,Bt))}),Gt}},3118:(r,s,o)=>{var l=o(3218),c=Object.create,y=function(){function p(){}return function(b){if(!l(b))return{};if(c)return c(b);p.prototype=b;var T=new p;return p.prototype=void 0,T}}();r.exports=y},9881:(r,s,o)=>{var l=o(7816),c=o(9291)(l);r.exports=c},6029:(r,s,o)=>{var l=o(3448);r.exports=function(c,y,p){for(var b=-1,T=c.length;++b<T;){var k=c[b],D=y(k);if(D!=null&&(O===void 0?D==D&&!l(D):p(D,O)))var O=D,R=k}return R}},760:(r,s,o)=>{var l=o(9881);r.exports=function(c,y){var p=[];return l(c,function(b,T,k){y(b,T,k)&&p.push(b)}),p}},1848:r=>{r.exports=function(s,o,l,c){for(var y=s.length,p=l+(c?1:-1);c?p--:++p<y;)if(o(s[p],p,s))return p;return-1}},1078:(r,s,o)=>{var l=o(2488),c=o(7285);r.exports=function y(p,b,T,k,D){var O=-1,R=p.length;for(T||(T=c),D||(D=[]);++O<R;){var z=p[O];b>0&&T(z)?b>1?y(z,b-1,T,k,D):l(D,z):k||(D[D.length]=z)}return D}},8483:(r,s,o)=>{var l=o(5063)();r.exports=l},7816:(r,s,o)=>{var l=o(8483),c=o(3674);r.exports=function(y,p){return y&&l(y,p,c)}},7786:(r,s,o)=>{var l=o(1811),c=o(327);r.exports=function(y,p){for(var b=0,T=(p=l(p,y)).length;y!=null&&b<T;)y=y[c(p[b++])];return b&&b==T?y:void 0}},8866:(r,s,o)=>{var l=o(2488),c=o(1469);r.exports=function(y,p,b){var T=p(y);return c(y)?T:l(T,b(y))}},4239:(r,s,o)=>{var l=o(2705),c=o(9607),y=o(2333),p=l?l.toStringTag:void 0;r.exports=function(b){return b==null?b===void 0?"[object Undefined]":"[object Null]":p&&p in Object(b)?c(b):y(b)}},3325:r=>{r.exports=function(s,o){return s>o}},8565:r=>{var s=Object.prototype.hasOwnProperty;r.exports=function(o,l){return o!=null&&s.call(o,l)}},13:r=>{r.exports=function(s,o){return s!=null&&o in Object(s)}},2118:(r,s,o)=>{var l=o(1848),c=o(2722),y=o(2351);r.exports=function(p,b,T){return b==b?y(p,b,T):l(p,c,T)}},9454:(r,s,o)=>{var l=o(4239),c=o(7005);r.exports=function(y){return c(y)&&l(y)=="[object Arguments]"}},939:(r,s,o)=>{var l=o(2492),c=o(7005);r.exports=function y(p,b,T,k,D){return p===b||(p==null||b==null||!c(p)&&!c(b)?p!=p&&b!=b:l(p,b,T,k,y,D))}},2492:(r,s,o)=>{var l=o(6384),c=o(7114),y=o(8351),p=o(6096),b=o(4160),T=o(1469),k=o(4144),D=o(6719),O="[object Arguments]",R="[object Array]",z="[object Object]",$=Object.prototype.hasOwnProperty;r.exports=function(q,V,X,it,tt,rt){var ut=T(q),Ct=T(V),et=ut?R:b(q),K=Ct?R:b(V),ht=(et=et==O?z:et)==z,xt=(K=K==O?z:K)==z,St=et==K;if(St&&k(q)){if(!k(V))return!1;ut=!0,ht=!1}if(St&&!ht)return rt||(rt=new l),ut||D(q)?c(q,V,X,it,tt,rt):y(q,V,et,X,it,tt,rt);if(!(1&X)){var pt=ht&&$.call(q,"__wrapped__"),wt=xt&&$.call(V,"__wrapped__");if(pt||wt){var Ht=pt?q.value():q,Pt=wt?V.value():V;return rt||(rt=new l),tt(Ht,Pt,X,it,rt)}}return!!St&&(rt||(rt=new l),p(q,V,X,it,tt,rt))}},5588:(r,s,o)=>{var l=o(4160),c=o(7005);r.exports=function(y){return c(y)&&l(y)=="[object Map]"}},2958:(r,s,o)=>{var l=o(6384),c=o(939);r.exports=function(y,p,b,T){var k=b.length,D=k,O=!T;if(y==null)return!D;for(y=Object(y);k--;){var R=b[k];if(O&&R[2]?R[1]!==y[R[0]]:!(R[0]in y))return!1}for(;++k<D;){var z=(R=b[k])[0],$=y[z],q=R[1];if(O&&R[2]){if($===void 0&&!(z in y))return!1}else{var V=new l;if(T)var X=T($,q,z,y,p,V);if(!(X===void 0?c(q,$,3,T,V):X))return!1}}return!0}},2722:r=>{r.exports=function(s){return s!=s}},8458:(r,s,o)=>{var l=o(3560),c=o(5346),y=o(3218),p=o(346),b=/^\[object .+?Constructor\]$/,T=Function.prototype,k=Object.prototype,D=T.toString,O=k.hasOwnProperty,R=RegExp("^"+D.call(O).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");r.exports=function(z){return!(!y(z)||c(z))&&(l(z)?R:b).test(p(z))}},9221:(r,s,o)=>{var l=o(4160),c=o(7005);r.exports=function(y){return c(y)&&l(y)=="[object Set]"}},8749:(r,s,o)=>{var l=o(4239),c=o(1780),y=o(7005),p={};p["[object Float32Array]"]=p["[object Float64Array]"]=p["[object Int8Array]"]=p["[object Int16Array]"]=p["[object Int32Array]"]=p["[object Uint8Array]"]=p["[object Uint8ClampedArray]"]=p["[object Uint16Array]"]=p["[object Uint32Array]"]=!0,p["[object Arguments]"]=p["[object Array]"]=p["[object ArrayBuffer]"]=p["[object Boolean]"]=p["[object DataView]"]=p["[object Date]"]=p["[object Error]"]=p["[object Function]"]=p["[object Map]"]=p["[object Number]"]=p["[object Object]"]=p["[object RegExp]"]=p["[object Set]"]=p["[object String]"]=p["[object WeakMap]"]=!1,r.exports=function(b){return y(b)&&c(b.length)&&!!p[l(b)]}},7206:(r,s,o)=>{var l=o(1573),c=o(6432),y=o(6557),p=o(1469),b=o(9601);r.exports=function(T){return typeof T=="function"?T:T==null?y:typeof T=="object"?p(T)?c(T[0],T[1]):l(T):b(T)}},280:(r,s,o)=>{var l=o(5726),c=o(6916),y=Object.prototype.hasOwnProperty;r.exports=function(p){if(!l(p))return c(p);var b=[];for(var T in Object(p))y.call(p,T)&&T!="constructor"&&b.push(T);return b}},313:(r,s,o)=>{var l=o(3218),c=o(5726),y=o(3498),p=Object.prototype.hasOwnProperty;r.exports=function(b){if(!l(b))return y(b);var T=c(b),k=[];for(var D in b)(D!="constructor"||!T&&p.call(b,D))&&k.push(D);return k}},433:r=>{r.exports=function(s,o){return s<o}},9199:(r,s,o)=>{var l=o(9881),c=o(8612);r.exports=function(y,p){var b=-1,T=c(y)?Array(y.length):[];return l(y,function(k,D,O){T[++b]=p(k,D,O)}),T}},1573:(r,s,o)=>{var l=o(2958),c=o(1499),y=o(2634);r.exports=function(p){var b=c(p);return b.length==1&&b[0][2]?y(b[0][0],b[0][1]):function(T){return T===p||l(T,p,b)}}},6432:(r,s,o)=>{var l=o(939),c=o(1917),y=o(9095),p=o(5403),b=o(9162),T=o(2634),k=o(327);r.exports=function(D,O){return p(D)&&b(O)?T(k(D),O):function(R){var z=c(R,D);return z===void 0&&z===O?y(R,D):l(O,z,3)}}},2980:(r,s,o)=>{var l=o(6384),c=o(6556),y=o(8483),p=o(9783),b=o(3218),T=o(1704),k=o(6390);r.exports=function D(O,R,z,$,q){O!==R&&y(R,function(V,X){if(q||(q=new l),b(V))p(O,R,X,z,D,$,q);else{var it=$?$(k(O,X),V,X+"",O,R,q):void 0;it===void 0&&(it=V),c(O,X,it)}},T)}},9783:(r,s,o)=>{var l=o(6556),c=o(4626),y=o(7133),p=o(278),b=o(8517),T=o(5694),k=o(1469),D=o(9246),O=o(4144),R=o(3560),z=o(3218),$=o(8630),q=o(6719),V=o(6390),X=o(3678);r.exports=function(it,tt,rt,ut,Ct,et,K){var ht=V(it,rt),xt=V(tt,rt),St=K.get(xt);if(St)l(it,rt,St);else{var pt=et?et(ht,xt,rt+"",it,tt,K):void 0,wt=pt===void 0;if(wt){var Ht=k(xt),Pt=!Ht&&O(xt),ge=!Ht&&!Pt&&q(xt);pt=xt,Ht||Pt||ge?k(ht)?pt=ht:D(ht)?pt=p(ht):Pt?(wt=!1,pt=c(xt,!0)):ge?(wt=!1,pt=y(xt,!0)):pt=[]:$(xt)||T(xt)?(pt=ht,T(ht)?pt=X(ht):z(ht)&&!R(ht)||(pt=b(xt))):wt=!1}wt&&(K.set(xt,pt),Ct(pt,xt,ut,et,K),K.delete(xt)),l(it,rt,pt)}}},9556:(r,s,o)=>{var l=o(9932),c=o(7786),y=o(7206),p=o(9199),b=o(1131),T=o(1717),k=o(5022),D=o(6557),O=o(1469);r.exports=function(R,z,$){z=z.length?l(z,function(X){return O(X)?function(it){return c(it,X.length===1?X[0]:X)}:X}):[D];var q=-1;z=l(z,T(y));var V=p(R,function(X,it,tt){return{criteria:l(z,function(rt){return rt(X)}),index:++q,value:X}});return b(V,function(X,it){return k(X,it,$)})}},5970:(r,s,o)=>{var l=o(3012),c=o(9095);r.exports=function(y,p){return l(y,p,function(b,T){return c(y,T)})}},3012:(r,s,o)=>{var l=o(7786),c=o(611),y=o(1811);r.exports=function(p,b,T){for(var k=-1,D=b.length,O={};++k<D;){var R=b[k],z=l(p,R);T(z,R)&&c(O,y(R,p),z)}return O}},371:r=>{r.exports=function(s){return function(o){return o==null?void 0:o[s]}}},9152:(r,s,o)=>{var l=o(7786);r.exports=function(c){return function(y){return l(y,c)}}},98:r=>{var s=Math.ceil,o=Math.max;r.exports=function(l,c,y,p){for(var b=-1,T=o(s((c-l)/(y||1)),0),k=Array(T);T--;)k[p?T:++b]=l,l+=y;return k}},107:r=>{r.exports=function(s,o,l,c,y){return y(s,function(p,b,T){l=c?(c=!1,p):o(l,p,b,T)}),l}},5976:(r,s,o)=>{var l=o(6557),c=o(5357),y=o(61);r.exports=function(p,b){return y(c(p,b,l),p+"")}},611:(r,s,o)=>{var l=o(4865),c=o(1811),y=o(5776),p=o(3218),b=o(327);r.exports=function(T,k,D,O){if(!p(T))return T;for(var R=-1,z=(k=c(k,T)).length,$=z-1,q=T;q!=null&&++R<z;){var V=b(k[R]),X=D;if(V==="__proto__"||V==="constructor"||V==="prototype")return T;if(R!=$){var it=q[V];(X=O?O(it,V,q):void 0)===void 0&&(X=p(it)?it:y(k[R+1])?[]:{})}l(q,V,X),q=q[V]}return T}},6560:(r,s,o)=>{var l=o(5703),c=o(8777),y=o(6557),p=c?function(b,T){return c(b,"toString",{configurable:!0,enumerable:!1,value:l(T),writable:!0})}:y;r.exports=p},1131:r=>{r.exports=function(s,o){var l=s.length;for(s.sort(o);l--;)s[l]=s[l].value;return s}},2545:r=>{r.exports=function(s,o){for(var l=-1,c=Array(s);++l<s;)c[l]=o(l);return c}},531:(r,s,o)=>{var l=o(2705),c=o(9932),y=o(1469),p=o(3448),b=l?l.prototype:void 0,T=b?b.toString:void 0;r.exports=function k(D){if(typeof D=="string")return D;if(y(D))return c(D,k)+"";if(p(D))return T?T.call(D):"";var O=D+"";return O=="0"&&1/D==-1/0?"-0":O}},7561:(r,s,o)=>{var l=o(7990),c=/^\s+/;r.exports=function(y){return y&&y.slice(0,l(y)+1).replace(c,"")}},1717:r=>{r.exports=function(s){return function(o){return s(o)}}},5652:(r,s,o)=>{var l=o(8668),c=o(7443),y=o(1196),p=o(4757),b=o(3593),T=o(1814);r.exports=function(k,D,O){var R=-1,z=c,$=k.length,q=!0,V=[],X=V;if(O)q=!1,z=y;else if($>=200){var it=D?null:b(k);if(it)return T(it);q=!1,z=p,X=new l}else X=D?[]:V;t:for(;++R<$;){var tt=k[R],rt=D?D(tt):tt;if(tt=O||tt!==0?tt:0,q&&rt==rt){for(var ut=X.length;ut--;)if(X[ut]===rt)continue t;D&&X.push(rt),V.push(tt)}else z(X,rt,O)||(X!==V&&X.push(rt),V.push(tt))}return V}},7415:(r,s,o)=>{var l=o(9932);r.exports=function(c,y){return l(y,function(p){return c[p]})}},1757:r=>{r.exports=function(s,o,l){for(var c=-1,y=s.length,p=o.length,b={};++c<y;){var T=c<p?o[c]:void 0;l(b,s[c],T)}return b}},4757:r=>{r.exports=function(s,o){return s.has(o)}},4290:(r,s,o)=>{var l=o(6557);r.exports=function(c){return typeof c=="function"?c:l}},1811:(r,s,o)=>{var l=o(1469),c=o(5403),y=o(5514),p=o(9833);r.exports=function(b,T){return l(b)?b:c(b,T)?[b]:y(p(b))}},4318:(r,s,o)=>{var l=o(1149);r.exports=function(c){var y=new c.constructor(c.byteLength);return new l(y).set(new l(c)),y}},4626:(r,s,o)=>{r=o.nmd(r);var l=o(5639),c=s&&!s.nodeType&&s,y=c&&r&&!r.nodeType&&r,p=y&&y.exports===c?l.Buffer:void 0,b=p?p.allocUnsafe:void 0;r.exports=function(T,k){if(k)return T.slice();var D=T.length,O=b?b(D):new T.constructor(D);return T.copy(O),O}},7157:(r,s,o)=>{var l=o(4318);r.exports=function(c,y){var p=y?l(c.buffer):c.buffer;return new c.constructor(p,c.byteOffset,c.byteLength)}},3147:r=>{var s=/\w*$/;r.exports=function(o){var l=new o.constructor(o.source,s.exec(o));return l.lastIndex=o.lastIndex,l}},419:(r,s,o)=>{var l=o(2705),c=l?l.prototype:void 0,y=c?c.valueOf:void 0;r.exports=function(p){return y?Object(y.call(p)):{}}},7133:(r,s,o)=>{var l=o(4318);r.exports=function(c,y){var p=y?l(c.buffer):c.buffer;return new c.constructor(p,c.byteOffset,c.length)}},6393:(r,s,o)=>{var l=o(3448);r.exports=function(c,y){if(c!==y){var p=c!==void 0,b=c===null,T=c==c,k=l(c),D=y!==void 0,O=y===null,R=y==y,z=l(y);if(!O&&!z&&!k&&c>y||k&&D&&R&&!O&&!z||b&&D&&R||!p&&R||!T)return 1;if(!b&&!k&&!z&&c<y||z&&p&&T&&!b&&!k||O&&p&&T||!D&&T||!R)return-1}return 0}},5022:(r,s,o)=>{var l=o(6393);r.exports=function(c,y,p){for(var b=-1,T=c.criteria,k=y.criteria,D=T.length,O=p.length;++b<D;){var R=l(T[b],k[b]);if(R)return b>=O?R:R*(p[b]=="desc"?-1:1)}return c.index-y.index}},278:r=>{r.exports=function(s,o){var l=-1,c=s.length;for(o||(o=Array(c));++l<c;)o[l]=s[l];return o}},8363:(r,s,o)=>{var l=o(4865),c=o(9465);r.exports=function(y,p,b,T){var k=!b;b||(b={});for(var D=-1,O=p.length;++D<O;){var R=p[D],z=T?T(b[R],y[R],R,b,y):void 0;z===void 0&&(z=y[R]),k?c(b,R,z):l(b,R,z)}return b}},8805:(r,s,o)=>{var l=o(8363),c=o(9551);r.exports=function(y,p){return l(y,c(y),p)}},1911:(r,s,o)=>{var l=o(8363),c=o(1442);r.exports=function(y,p){return l(y,c(y),p)}},4429:(r,s,o)=>{var l=o(5639)["__core-js_shared__"];r.exports=l},1750:(r,s,o)=>{var l=o(5976),c=o(6612);r.exports=function(y){return l(function(p,b){var T=-1,k=b.length,D=k>1?b[k-1]:void 0,O=k>2?b[2]:void 0;for(D=y.length>3&&typeof D=="function"?(k--,D):void 0,O&&c(b[0],b[1],O)&&(D=k<3?void 0:D,k=1),p=Object(p);++T<k;){var R=b[T];R&&y(p,R,T,D)}return p})}},9291:(r,s,o)=>{var l=o(8612);r.exports=function(c,y){return function(p,b){if(p==null)return p;if(!l(p))return c(p,b);for(var T=p.length,k=y?T:-1,D=Object(p);(y?k--:++k<T)&&b(D[k],k,D)!==!1;);return p}}},5063:r=>{r.exports=function(s){return function(o,l,c){for(var y=-1,p=Object(o),b=c(o),T=b.length;T--;){var k=b[s?T:++y];if(l(p[k],k,p)===!1)break}return o}}},7740:(r,s,o)=>{var l=o(7206),c=o(8612),y=o(3674);r.exports=function(p){return function(b,T,k){var D=Object(b);if(!c(b)){var O=l(T,3);b=y(b),T=function(z){return O(D[z],z,D)}}var R=p(b,T,k);return R>-1?D[O?b[R]:R]:void 0}}},7445:(r,s,o)=>{var l=o(98),c=o(6612),y=o(8601);r.exports=function(p){return function(b,T,k){return k&&typeof k!="number"&&c(b,T,k)&&(T=k=void 0),b=y(b),T===void 0?(T=b,b=0):T=y(T),k=k===void 0?b<T?1:-1:y(k),l(b,T,k,p)}}},3593:(r,s,o)=>{var l=o(8525),c=o(308),y=o(1814),p=l&&1/y(new l([,-0]))[1]==1/0?function(b){return new l(b)}:c;r.exports=p},8777:(r,s,o)=>{var l=o(852),c=function(){try{var y=l(Object,"defineProperty");return y({},"",{}),y}catch{}}();r.exports=c},7114:(r,s,o)=>{var l=o(8668),c=o(2908),y=o(4757);r.exports=function(p,b,T,k,D,O){var R=1&T,z=p.length,$=b.length;if(z!=$&&!(R&&$>z))return!1;var q=O.get(p),V=O.get(b);if(q&&V)return q==b&&V==p;var X=-1,it=!0,tt=2&T?new l:void 0;for(O.set(p,b),O.set(b,p);++X<z;){var rt=p[X],ut=b[X];if(k)var Ct=R?k(ut,rt,X,b,p,O):k(rt,ut,X,p,b,O);if(Ct!==void 0){if(Ct)continue;it=!1;break}if(tt){if(!c(b,function(et,K){if(!y(tt,K)&&(rt===et||D(rt,et,T,k,O)))return tt.push(K)})){it=!1;break}}else if(rt!==ut&&!D(rt,ut,T,k,O)){it=!1;break}}return O.delete(p),O.delete(b),it}},8351:(r,s,o)=>{var l=o(2705),c=o(1149),y=o(7813),p=o(7114),b=o(8776),T=o(1814),k=l?l.prototype:void 0,D=k?k.valueOf:void 0;r.exports=function(O,R,z,$,q,V,X){switch(z){case"[object DataView]":if(O.byteLength!=R.byteLength||O.byteOffset!=R.byteOffset)return!1;O=O.buffer,R=R.buffer;case"[object ArrayBuffer]":return!(O.byteLength!=R.byteLength||!V(new c(O),new c(R)));case"[object Boolean]":case"[object Date]":case"[object Number]":return y(+O,+R);case"[object Error]":return O.name==R.name&&O.message==R.message;case"[object RegExp]":case"[object String]":return O==R+"";case"[object Map]":var it=b;case"[object Set]":var tt=1&$;if(it||(it=T),O.size!=R.size&&!tt)return!1;var rt=X.get(O);if(rt)return rt==R;$|=2,X.set(O,R);var ut=p(it(O),it(R),$,q,V,X);return X.delete(O),ut;case"[object Symbol]":if(D)return D.call(O)==D.call(R)}return!1}},6096:(r,s,o)=>{var l=o(8234),c=Object.prototype.hasOwnProperty;r.exports=function(y,p,b,T,k,D){var O=1&b,R=l(y),z=R.length;if(z!=l(p).length&&!O)return!1;for(var $=z;$--;){var q=R[$];if(!(O?q in p:c.call(p,q)))return!1}var V=D.get(y),X=D.get(p);if(V&&X)return V==p&&X==y;var it=!0;D.set(y,p),D.set(p,y);for(var tt=O;++$<z;){var rt=y[q=R[$]],ut=p[q];if(T)var Ct=O?T(ut,rt,q,p,y,D):T(rt,ut,q,y,p,D);if(!(Ct===void 0?rt===ut||k(rt,ut,b,T,D):Ct)){it=!1;break}tt||(tt=q=="constructor")}if(it&&!tt){var et=y.constructor,K=p.constructor;et==K||!("constructor"in y)||!("constructor"in p)||typeof et=="function"&&et instanceof et&&typeof K=="function"&&K instanceof K||(it=!1)}return D.delete(y),D.delete(p),it}},9021:(r,s,o)=>{var l=o(5564),c=o(5357),y=o(61);r.exports=function(p){return y(c(p,void 0,l),p+"")}},1957:(r,s,o)=>{var l=typeof o.g=="object"&&o.g&&o.g.Object===Object&&o.g;r.exports=l},8234:(r,s,o)=>{var l=o(8866),c=o(9551),y=o(3674);r.exports=function(p){return l(p,y,c)}},6904:(r,s,o)=>{var l=o(8866),c=o(1442),y=o(1704);r.exports=function(p){return l(p,y,c)}},5050:(r,s,o)=>{var l=o(7019);r.exports=function(c,y){var p=c.__data__;return l(y)?p[typeof y=="string"?"string":"hash"]:p.map}},1499:(r,s,o)=>{var l=o(9162),c=o(3674);r.exports=function(y){for(var p=c(y),b=p.length;b--;){var T=p[b],k=y[T];p[b]=[T,k,l(k)]}return p}},852:(r,s,o)=>{var l=o(8458),c=o(7801);r.exports=function(y,p){var b=c(y,p);return l(b)?b:void 0}},5924:(r,s,o)=>{var l=o(5569)(Object.getPrototypeOf,Object);r.exports=l},9607:(r,s,o)=>{var l=o(2705),c=Object.prototype,y=c.hasOwnProperty,p=c.toString,b=l?l.toStringTag:void 0;r.exports=function(T){var k=y.call(T,b),D=T[b];try{T[b]=void 0;var O=!0}catch{}var R=p.call(T);return O&&(k?T[b]=D:delete T[b]),R}},9551:(r,s,o)=>{var l=o(4963),c=o(479),y=Object.prototype.propertyIsEnumerable,p=Object.getOwnPropertySymbols,b=p?function(T){return T==null?[]:(T=Object(T),l(p(T),function(k){return y.call(T,k)}))}:c;r.exports=b},1442:(r,s,o)=>{var l=o(2488),c=o(5924),y=o(9551),p=o(479),b=Object.getOwnPropertySymbols?function(T){for(var k=[];T;)l(k,y(T)),T=c(T);return k}:p;r.exports=b},4160:(r,s,o)=>{var l=o(8552),c=o(7071),y=o(3818),p=o(8525),b=o(577),T=o(4239),k=o(346),D="[object Map]",O="[object Promise]",R="[object Set]",z="[object WeakMap]",$="[object DataView]",q=k(l),V=k(c),X=k(y),it=k(p),tt=k(b),rt=T;(l&&rt(new l(new ArrayBuffer(1)))!=$||c&&rt(new c)!=D||y&&rt(y.resolve())!=O||p&&rt(new p)!=R||b&&rt(new b)!=z)&&(rt=function(ut){var Ct=T(ut),et=Ct=="[object Object]"?ut.constructor:void 0,K=et?k(et):"";if(K)switch(K){case q:return $;case V:return D;case X:return O;case it:return R;case tt:return z}return Ct}),r.exports=rt},7801:r=>{r.exports=function(s,o){return s==null?void 0:s[o]}},222:(r,s,o)=>{var l=o(1811),c=o(5694),y=o(1469),p=o(5776),b=o(1780),T=o(327);r.exports=function(k,D,O){for(var R=-1,z=(D=l(D,k)).length,$=!1;++R<z;){var q=T(D[R]);if(!($=k!=null&&O(k,q)))break;k=k[q]}return $||++R!=z?$:!!(z=k==null?0:k.length)&&b(z)&&p(q,z)&&(y(k)||c(k))}},2689:r=>{var s=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");r.exports=function(o){return s.test(o)}},1789:(r,s,o)=>{var l=o(4536);r.exports=function(){this.__data__=l?l(null):{},this.size=0}},401:r=>{r.exports=function(s){var o=this.has(s)&&delete this.__data__[s];return this.size-=o?1:0,o}},7667:(r,s,o)=>{var l=o(4536),c=Object.prototype.hasOwnProperty;r.exports=function(y){var p=this.__data__;if(l){var b=p[y];return b==="__lodash_hash_undefined__"?void 0:b}return c.call(p,y)?p[y]:void 0}},1327:(r,s,o)=>{var l=o(4536),c=Object.prototype.hasOwnProperty;r.exports=function(y){var p=this.__data__;return l?p[y]!==void 0:c.call(p,y)}},1866:(r,s,o)=>{var l=o(4536);r.exports=function(c,y){var p=this.__data__;return this.size+=this.has(c)?0:1,p[c]=l&&y===void 0?"__lodash_hash_undefined__":y,this}},3824:r=>{var s=Object.prototype.hasOwnProperty;r.exports=function(o){var l=o.length,c=new o.constructor(l);return l&&typeof o[0]=="string"&&s.call(o,"index")&&(c.index=o.index,c.input=o.input),c}},9148:(r,s,o)=>{var l=o(4318),c=o(7157),y=o(3147),p=o(419),b=o(7133);r.exports=function(T,k,D){var O=T.constructor;switch(k){case"[object ArrayBuffer]":return l(T);case"[object Boolean]":case"[object Date]":return new O(+T);case"[object DataView]":return c(T,D);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return b(T,D);case"[object Map]":case"[object Set]":return new O;case"[object Number]":case"[object String]":return new O(T);case"[object RegExp]":return y(T);case"[object Symbol]":return p(T)}}},8517:(r,s,o)=>{var l=o(3118),c=o(5924),y=o(5726);r.exports=function(p){return typeof p.constructor!="function"||y(p)?{}:l(c(p))}},7285:(r,s,o)=>{var l=o(2705),c=o(5694),y=o(1469),p=l?l.isConcatSpreadable:void 0;r.exports=function(b){return y(b)||c(b)||!!(p&&b&&b[p])}},5776:r=>{var s=/^(?:0|[1-9]\d*)$/;r.exports=function(o,l){var c=typeof o;return!!(l=l==null?9007199254740991:l)&&(c=="number"||c!="symbol"&&s.test(o))&&o>-1&&o%1==0&&o<l}},6612:(r,s,o)=>{var l=o(7813),c=o(8612),y=o(5776),p=o(3218);r.exports=function(b,T,k){if(!p(k))return!1;var D=typeof T;return!!(D=="number"?c(k)&&y(T,k.length):D=="string"&&T in k)&&l(k[T],b)}},5403:(r,s,o)=>{var l=o(1469),c=o(3448),y=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,p=/^\w*$/;r.exports=function(b,T){if(l(b))return!1;var k=typeof b;return!(k!="number"&&k!="symbol"&&k!="boolean"&&b!=null&&!c(b))||p.test(b)||!y.test(b)||T!=null&&b in Object(T)}},7019:r=>{r.exports=function(s){var o=typeof s;return o=="string"||o=="number"||o=="symbol"||o=="boolean"?s!=="__proto__":s===null}},5346:(r,s,o)=>{var l,c=o(4429),y=(l=/[^.]+$/.exec(c&&c.keys&&c.keys.IE_PROTO||""))?"Symbol(src)_1."+l:"";r.exports=function(p){return!!y&&y in p}},5726:r=>{var s=Object.prototype;r.exports=function(o){var l=o&&o.constructor;return o===(typeof l=="function"&&l.prototype||s)}},9162:(r,s,o)=>{var l=o(3218);r.exports=function(c){return c==c&&!l(c)}},7040:r=>{r.exports=function(){this.__data__=[],this.size=0}},2188:(r,s,o)=>{var l=o(8470),c=Array.prototype.splice;r.exports=function(y){var p=this.__data__,b=l(p,y);return!(b<0||(b==p.length-1?p.pop():c.call(p,b,1),--this.size,0))}},2117:(r,s,o)=>{var l=o(8470);r.exports=function(c){var y=this.__data__,p=l(y,c);return p<0?void 0:y[p][1]}},7518:(r,s,o)=>{var l=o(8470);r.exports=function(c){return l(this.__data__,c)>-1}},4705:(r,s,o)=>{var l=o(8470);r.exports=function(c,y){var p=this.__data__,b=l(p,c);return b<0?(++this.size,p.push([c,y])):p[b][1]=y,this}},4785:(r,s,o)=>{var l=o(1989),c=o(8407),y=o(7071);r.exports=function(){this.size=0,this.__data__={hash:new l,map:new(y||c),string:new l}}},1285:(r,s,o)=>{var l=o(5050);r.exports=function(c){var y=l(this,c).delete(c);return this.size-=y?1:0,y}},6e3:(r,s,o)=>{var l=o(5050);r.exports=function(c){return l(this,c).get(c)}},9916:(r,s,o)=>{var l=o(5050);r.exports=function(c){return l(this,c).has(c)}},5265:(r,s,o)=>{var l=o(5050);r.exports=function(c,y){var p=l(this,c),b=p.size;return p.set(c,y),this.size+=p.size==b?0:1,this}},8776:r=>{r.exports=function(s){var o=-1,l=Array(s.size);return s.forEach(function(c,y){l[++o]=[y,c]}),l}},2634:r=>{r.exports=function(s,o){return function(l){return l!=null&&l[s]===o&&(o!==void 0||s in Object(l))}}},4523:(r,s,o)=>{var l=o(8306);r.exports=function(c){var y=l(c,function(b){return p.size===500&&p.clear(),b}),p=y.cache;return y}},4536:(r,s,o)=>{var l=o(852)(Object,"create");r.exports=l},6916:(r,s,o)=>{var l=o(5569)(Object.keys,Object);r.exports=l},3498:r=>{r.exports=function(s){var o=[];if(s!=null)for(var l in Object(s))o.push(l);return o}},1167:(r,s,o)=>{r=o.nmd(r);var l=o(1957),c=s&&!s.nodeType&&s,y=c&&r&&!r.nodeType&&r,p=y&&y.exports===c&&l.process,b=function(){try{return y&&y.require&&y.require("util").types||p&&p.binding&&p.binding("util")}catch{}}();r.exports=b},2333:r=>{var s=Object.prototype.toString;r.exports=function(o){return s.call(o)}},5569:r=>{r.exports=function(s,o){return function(l){return s(o(l))}}},5357:(r,s,o)=>{var l=o(6874),c=Math.max;r.exports=function(y,p,b){return p=c(p===void 0?y.length-1:p,0),function(){for(var T=arguments,k=-1,D=c(T.length-p,0),O=Array(D);++k<D;)O[k]=T[p+k];k=-1;for(var R=Array(p+1);++k<p;)R[k]=T[k];return R[p]=b(O),l(y,this,R)}}},5639:(r,s,o)=>{var l=o(1957),c=typeof self=="object"&&self&&self.Object===Object&&self,y=l||c||Function("return this")();r.exports=y},6390:r=>{r.exports=function(s,o){if((o!=="constructor"||typeof s[o]!="function")&&o!="__proto__")return s[o]}},619:r=>{r.exports=function(s){return this.__data__.set(s,"__lodash_hash_undefined__"),this}},2385:r=>{r.exports=function(s){return this.__data__.has(s)}},1814:r=>{r.exports=function(s){var o=-1,l=Array(s.size);return s.forEach(function(c){l[++o]=c}),l}},61:(r,s,o)=>{var l=o(6560),c=o(1275)(l);r.exports=c},1275:r=>{var s=Date.now;r.exports=function(o){var l=0,c=0;return function(){var y=s(),p=16-(y-c);if(c=y,p>0){if(++l>=800)return arguments[0]}else l=0;return o.apply(void 0,arguments)}}},7465:(r,s,o)=>{var l=o(8407);r.exports=function(){this.__data__=new l,this.size=0}},3779:r=>{r.exports=function(s){var o=this.__data__,l=o.delete(s);return this.size=o.size,l}},7599:r=>{r.exports=function(s){return this.__data__.get(s)}},4758:r=>{r.exports=function(s){return this.__data__.has(s)}},4309:(r,s,o)=>{var l=o(8407),c=o(7071),y=o(3369);r.exports=function(p,b){var T=this.__data__;if(T instanceof l){var k=T.__data__;if(!c||k.length<199)return k.push([p,b]),this.size=++T.size,this;T=this.__data__=new y(k)}return T.set(p,b),this.size=T.size,this}},2351:r=>{r.exports=function(s,o,l){for(var c=l-1,y=s.length;++c<y;)if(s[c]===o)return c;return-1}},8016:(r,s,o)=>{var l=o(8983),c=o(2689),y=o(1903);r.exports=function(p){return c(p)?y(p):l(p)}},5514:(r,s,o)=>{var l=o(4523),c=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,y=/\\(\\)?/g,p=l(function(b){var T=[];return b.charCodeAt(0)===46&&T.push(""),b.replace(c,function(k,D,O,R){T.push(O?R.replace(y,"$1"):D||k)}),T});r.exports=p},327:(r,s,o)=>{var l=o(3448);r.exports=function(c){if(typeof c=="string"||l(c))return c;var y=c+"";return y=="0"&&1/c==-1/0?"-0":y}},346:r=>{var s=Function.prototype.toString;r.exports=function(o){if(o!=null){try{return s.call(o)}catch{}try{return o+""}catch{}}return""}},7990:r=>{var s=/\s/;r.exports=function(o){for(var l=o.length;l--&&s.test(o.charAt(l)););return l}},1903:r=>{var s="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",o="\\ud83c[\\udffb-\\udfff]",l="[^\\ud800-\\udfff]",c="(?:\\ud83c[\\udde6-\\uddff]){2}",y="[\\ud800-\\udbff][\\udc00-\\udfff]",p="(?:"+s+"|"+o+")?",b="[\\ufe0e\\ufe0f]?",T=b+p+"(?:\\u200d(?:"+[l,c,y].join("|")+")"+b+p+")*",k="(?:"+[l+s+"?",s,c,y,"[\\ud800-\\udfff]"].join("|")+")",D=RegExp(o+"(?="+o+")|"+k+T,"g");r.exports=function(O){for(var R=D.lastIndex=0;D.test(O);)++R;return R}},6678:(r,s,o)=>{var l=o(5990);r.exports=function(c){return l(c,4)}},361:(r,s,o)=>{var l=o(5990);r.exports=function(c){return l(c,5)}},5703:r=>{r.exports=function(s){return function(){return s}}},1747:(r,s,o)=>{var l=o(5976),c=o(7813),y=o(6612),p=o(1704),b=Object.prototype,T=b.hasOwnProperty,k=l(function(D,O){D=Object(D);var R=-1,z=O.length,$=z>2?O[2]:void 0;for($&&y(O[0],O[1],$)&&(z=1);++R<z;)for(var q=O[R],V=p(q),X=-1,it=V.length;++X<it;){var tt=V[X],rt=D[tt];(rt===void 0||c(rt,b[tt])&&!T.call(D,tt))&&(D[tt]=q[tt])}return D});r.exports=k},6073:(r,s,o)=>{r.exports=o(4486)},7813:r=>{r.exports=function(s,o){return s===o||s!=s&&o!=o}},3105:(r,s,o)=>{var l=o(4963),c=o(760),y=o(7206),p=o(1469);r.exports=function(b,T){return(p(b)?l:c)(b,y(T,3))}},3311:(r,s,o)=>{var l=o(7740)(o(998));r.exports=l},998:(r,s,o)=>{var l=o(1848),c=o(7206),y=o(554),p=Math.max;r.exports=function(b,T,k){var D=b==null?0:b.length;if(!D)return-1;var O=k==null?0:y(k);return O<0&&(O=p(D+O,0)),l(b,c(T,3),O)}},5564:(r,s,o)=>{var l=o(1078);r.exports=function(c){return c!=null&&c.length?l(c,1):[]}},4486:(r,s,o)=>{var l=o(7412),c=o(9881),y=o(4290),p=o(1469);r.exports=function(b,T){return(p(b)?l:c)(b,y(T))}},2620:(r,s,o)=>{var l=o(8483),c=o(4290),y=o(1704);r.exports=function(p,b){return p==null?p:l(p,c(b),y)}},1917:(r,s,o)=>{var l=o(7786);r.exports=function(c,y,p){var b=c==null?void 0:l(c,y);return b===void 0?p:b}},8721:(r,s,o)=>{var l=o(8565),c=o(222);r.exports=function(y,p){return y!=null&&c(y,p,l)}},9095:(r,s,o)=>{var l=o(13),c=o(222);r.exports=function(y,p){return y!=null&&c(y,p,l)}},6557:r=>{r.exports=function(s){return s}},5694:(r,s,o)=>{var l=o(9454),c=o(7005),y=Object.prototype,p=y.hasOwnProperty,b=y.propertyIsEnumerable,T=l(function(){return arguments}())?l:function(k){return c(k)&&p.call(k,"callee")&&!b.call(k,"callee")};r.exports=T},1469:r=>{var s=Array.isArray;r.exports=s},8612:(r,s,o)=>{var l=o(3560),c=o(1780);r.exports=function(y){return y!=null&&c(y.length)&&!l(y)}},9246:(r,s,o)=>{var l=o(8612),c=o(7005);r.exports=function(y){return c(y)&&l(y)}},4144:(r,s,o)=>{r=o.nmd(r);var l=o(5639),c=o(5062),y=s&&!s.nodeType&&s,p=y&&r&&!r.nodeType&&r,b=p&&p.exports===y?l.Buffer:void 0,T=(b?b.isBuffer:void 0)||c;r.exports=T},1609:(r,s,o)=>{var l=o(280),c=o(4160),y=o(5694),p=o(1469),b=o(8612),T=o(4144),k=o(5726),D=o(6719),O=Object.prototype.hasOwnProperty;r.exports=function(R){if(R==null)return!0;if(b(R)&&(p(R)||typeof R=="string"||typeof R.splice=="function"||T(R)||D(R)||y(R)))return!R.length;var z=c(R);if(z=="[object Map]"||z=="[object Set]")return!R.size;if(k(R))return!l(R).length;for(var $ in R)if(O.call(R,$))return!1;return!0}},3560:(r,s,o)=>{var l=o(4239),c=o(3218);r.exports=function(y){if(!c(y))return!1;var p=l(y);return p=="[object Function]"||p=="[object GeneratorFunction]"||p=="[object AsyncFunction]"||p=="[object Proxy]"}},1780:r=>{r.exports=function(s){return typeof s=="number"&&s>-1&&s%1==0&&s<=9007199254740991}},6688:(r,s,o)=>{var l=o(5588),c=o(1717),y=o(1167),p=y&&y.isMap,b=p?c(p):l;r.exports=b},3218:r=>{r.exports=function(s){var o=typeof s;return s!=null&&(o=="object"||o=="function")}},7005:r=>{r.exports=function(s){return s!=null&&typeof s=="object"}},8630:(r,s,o)=>{var l=o(4239),c=o(5924),y=o(7005),p=Function.prototype,b=Object.prototype,T=p.toString,k=b.hasOwnProperty,D=T.call(Object);r.exports=function(O){if(!y(O)||l(O)!="[object Object]")return!1;var R=c(O);if(R===null)return!0;var z=k.call(R,"constructor")&&R.constructor;return typeof z=="function"&&z instanceof z&&T.call(z)==D}},2928:(r,s,o)=>{var l=o(9221),c=o(1717),y=o(1167),p=y&&y.isSet,b=p?c(p):l;r.exports=b},7037:(r,s,o)=>{var l=o(4239),c=o(1469),y=o(7005);r.exports=function(p){return typeof p=="string"||!c(p)&&y(p)&&l(p)=="[object String]"}},3448:(r,s,o)=>{var l=o(4239),c=o(7005);r.exports=function(y){return typeof y=="symbol"||c(y)&&l(y)=="[object Symbol]"}},6719:(r,s,o)=>{var l=o(8749),c=o(1717),y=o(1167),p=y&&y.isTypedArray,b=p?c(p):l;r.exports=b},2353:r=>{r.exports=function(s){return s===void 0}},3674:(r,s,o)=>{var l=o(4636),c=o(280),y=o(8612);r.exports=function(p){return y(p)?l(p):c(p)}},1704:(r,s,o)=>{var l=o(4636),c=o(313),y=o(8612);r.exports=function(p){return y(p)?l(p,!0):c(p)}},928:r=>{r.exports=function(s){var o=s==null?0:s.length;return o?s[o-1]:void 0}},5161:(r,s,o)=>{var l=o(9932),c=o(7206),y=o(9199),p=o(1469);r.exports=function(b,T){return(p(b)?l:y)(b,c(T,3))}},6604:(r,s,o)=>{var l=o(9465),c=o(7816),y=o(7206);r.exports=function(p,b){var T={};return b=y(b,3),c(p,function(k,D,O){l(T,D,b(k,D,O))}),T}},6162:(r,s,o)=>{var l=o(6029),c=o(3325),y=o(6557);r.exports=function(p){return p&&p.length?l(p,y,c):void 0}},8306:(r,s,o)=>{var l=o(3369);function c(y,p){if(typeof y!="function"||p!=null&&typeof p!="function")throw new TypeError("Expected a function");var b=function(){var T=arguments,k=p?p.apply(this,T):T[0],D=b.cache;if(D.has(k))return D.get(k);var O=y.apply(this,T);return b.cache=D.set(k,O)||D,O};return b.cache=new(c.Cache||l),b}c.Cache=l,r.exports=c},3857:(r,s,o)=>{var l=o(2980),c=o(1750)(function(y,p,b){l(y,p,b)});r.exports=c},3632:(r,s,o)=>{var l=o(6029),c=o(433),y=o(6557);r.exports=function(p){return p&&p.length?l(p,y,c):void 0}},2762:(r,s,o)=>{var l=o(6029),c=o(7206),y=o(433);r.exports=function(p,b){return p&&p.length?l(p,c(b,2),y):void 0}},308:r=>{r.exports=function(){}},7771:(r,s,o)=>{var l=o(5639);r.exports=function(){return l.Date.now()}},9722:(r,s,o)=>{var l=o(5970),c=o(9021)(function(y,p){return y==null?{}:l(y,p)});r.exports=c},9601:(r,s,o)=>{var l=o(371),c=o(9152),y=o(5403),p=o(327);r.exports=function(b){return y(b)?l(p(b)):c(b)}},6026:(r,s,o)=>{var l=o(7445)();r.exports=l},4061:(r,s,o)=>{var l=o(2663),c=o(9881),y=o(7206),p=o(107),b=o(1469);r.exports=function(T,k,D){var O=b(T)?l:p,R=arguments.length<3;return O(T,y(k,4),D,R,c)}},4238:(r,s,o)=>{var l=o(280),c=o(4160),y=o(8612),p=o(7037),b=o(8016);r.exports=function(T){if(T==null)return 0;if(y(T))return p(T)?b(T):T.length;var k=c(T);return k=="[object Map]"||k=="[object Set]"?T.size:l(T).length}},9734:(r,s,o)=>{var l=o(1078),c=o(9556),y=o(5976),p=o(6612),b=y(function(T,k){if(T==null)return[];var D=k.length;return D>1&&p(T,k[0],k[1])?k=[]:D>2&&p(k[0],k[1],k[2])&&(k=[k[0]]),c(T,l(k,1),[])});r.exports=b},479:r=>{r.exports=function(){return[]}},5062:r=>{r.exports=function(){return!1}},8601:(r,s,o)=>{var l=o(4841);r.exports=function(c){return c?(c=l(c))===1/0||c===-1/0?17976931348623157e292*(c<0?-1:1):c==c?c:0:c===0?c:0}},554:(r,s,o)=>{var l=o(8601);r.exports=function(c){var y=l(c),p=y%1;return y==y?p?y-p:y:0}},4841:(r,s,o)=>{var l=o(7561),c=o(3218),y=o(3448),p=/^[-+]0x[0-9a-f]+$/i,b=/^0b[01]+$/i,T=/^0o[0-7]+$/i,k=parseInt;r.exports=function(D){if(typeof D=="number")return D;if(y(D))return NaN;if(c(D)){var O=typeof D.valueOf=="function"?D.valueOf():D;D=c(O)?O+"":O}if(typeof D!="string")return D===0?D:+D;D=l(D);var R=b.test(D);return R||T.test(D)?k(D.slice(2),R?2:8):p.test(D)?NaN:+D}},3678:(r,s,o)=>{var l=o(8363),c=o(1704);r.exports=function(y){return l(y,c(y))}},9833:(r,s,o)=>{var l=o(531);r.exports=function(c){return c==null?"":l(c)}},8718:(r,s,o)=>{var l=o(7412),c=o(3118),y=o(7816),p=o(7206),b=o(5924),T=o(1469),k=o(4144),D=o(3560),O=o(3218),R=o(6719);r.exports=function(z,$,q){var V=T(z),X=V||k(z)||R(z);if($=p($,4),q==null){var it=z&&z.constructor;q=X?V?new it:[]:O(z)&&D(it)?c(b(z)):{}}return(X?l:y)(z,function(tt,rt,ut){return $(q,tt,rt,ut)}),q}},3386:(r,s,o)=>{var l=o(1078),c=o(5976),y=o(5652),p=o(9246),b=c(function(T){return y(l(T,1,p,!0))});r.exports=b},3955:(r,s,o)=>{var l=o(9833),c=0;r.exports=function(y){var p=++c;return l(y)+p}},2628:(r,s,o)=>{var l=o(7415),c=o(3674);r.exports=function(y){return y==null?[]:l(y,c(y))}},7287:(r,s,o)=>{var l=o(4865),c=o(1757);r.exports=function(y,p){return c(y||[],p||[],l)}},9234:()=>{},1748:(r,s,o)=>{var l={"./locale":9234,"./locale.js":9234};function c(p){var b=y(p);return o(b)}function y(p){if(!o.o(l,p)){var b=new Error("Cannot find module '"+p+"'");throw b.code="MODULE_NOT_FOUND",b}return l[p]}c.keys=function(){return Object.keys(l)},c.resolve=y,r.exports=c,c.id=1748},1941:function(r,s,o){(r=o.nmd(r)).exports=function(){var l,c;function y(){return l.apply(null,arguments)}function p(M){return M instanceof Array||Object.prototype.toString.call(M)==="[object Array]"}function b(M){return M!=null&&Object.prototype.toString.call(M)==="[object Object]"}function T(M){return M===void 0}function k(M){return typeof M=="number"||Object.prototype.toString.call(M)==="[object Number]"}function D(M){return M instanceof Date||Object.prototype.toString.call(M)==="[object Date]"}function O(M,F){var G,st=[];for(G=0;G<M.length;++G)st.push(F(M[G],G));return st}function R(M,F){return Object.prototype.hasOwnProperty.call(M,F)}function z(M,F){for(var G in F)R(F,G)&&(M[G]=F[G]);return R(F,"toString")&&(M.toString=F.toString),R(F,"valueOf")&&(M.valueOf=F.valueOf),M}function $(M,F,G,st){return ia(M,F,G,st,!0).utc()}function q(M){return M._pf==null&&(M._pf={empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],meridiem:null,rfc2822:!1,weekdayMismatch:!1}),M._pf}function V(M){if(M._isValid==null){var F=q(M),G=c.call(F.parsedDateParts,function(qt){return qt!=null}),st=!isNaN(M._d.getTime())&&F.overflow<0&&!F.empty&&!F.invalidMonth&&!F.invalidWeekday&&!F.weekdayMismatch&&!F.nullInput&&!F.invalidFormat&&!F.userInvalidated&&(!F.meridiem||F.meridiem&&G);if(M._strict&&(st=st&&F.charsLeftOver===0&&F.unusedTokens.length===0&&F.bigHour===void 0),Object.isFrozen!=null&&Object.isFrozen(M))return st;M._isValid=st}return M._isValid}function X(M){var F=$(NaN);return M!=null?z(q(F),M):q(F).userInvalidated=!0,F}c=Array.prototype.some?Array.prototype.some:function(M){for(var F=Object(this),G=F.length>>>0,st=0;st<G;st++)if(st in F&&M.call(this,F[st],st,F))return!0;return!1};var it=y.momentProperties=[];function tt(M,F){var G,st,qt;if(T(F._isAMomentObject)||(M._isAMomentObject=F._isAMomentObject),T(F._i)||(M._i=F._i),T(F._f)||(M._f=F._f),T(F._l)||(M._l=F._l),T(F._strict)||(M._strict=F._strict),T(F._tzm)||(M._tzm=F._tzm),T(F._isUTC)||(M._isUTC=F._isUTC),T(F._offset)||(M._offset=F._offset),T(F._pf)||(M._pf=q(F)),T(F._locale)||(M._locale=F._locale),0<it.length)for(G=0;G<it.length;G++)T(qt=F[st=it[G]])||(M[st]=qt);return M}var rt=!1;function ut(M){tt(this,M),this._d=new Date(M._d!=null?M._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),rt===!1&&(rt=!0,y.updateOffset(this),rt=!1)}function Ct(M){return M instanceof ut||M!=null&&M._isAMomentObject!=null}function et(M){return M<0?Math.ceil(M)||0:Math.floor(M)}function K(M){var F=+M,G=0;return F!==0&&isFinite(F)&&(G=et(F)),G}function ht(M,F,G){var st,qt=Math.min(M.length,F.length),fe=Math.abs(M.length-F.length),we=0;for(st=0;st<qt;st++)(G&&M[st]!==F[st]||!G&&K(M[st])!==K(F[st]))&&we++;return we+fe}function xt(M){y.suppressDeprecationWarnings===!1&&typeof console!="undefined"&&console.warn&&console.warn("Deprecation warning: "+M)}function St(M,F){var G=!0;return z(function(){if(y.deprecationHandler!=null&&y.deprecationHandler(null,M),G){for(var st,qt=[],fe=0;fe<arguments.length;fe++){if(st="",typeof arguments[fe]=="object"){for(var we in st+=`
|
|
[`+fe+"] ",arguments[0])st+=we+": "+arguments[0][we]+", ";st=st.slice(0,-2)}else st=arguments[fe];qt.push(st)}xt(M+`
|
|
Arguments: `+Array.prototype.slice.call(qt).join("")+`
|
|
`+new Error().stack),G=!1}return F.apply(this,arguments)},F)}var pt,wt={};function Ht(M,F){y.deprecationHandler!=null&&y.deprecationHandler(M,F),wt[M]||(xt(F),wt[M]=!0)}function Pt(M){return M instanceof Function||Object.prototype.toString.call(M)==="[object Function]"}function ge(M,F){var G,st=z({},M);for(G in F)R(F,G)&&(b(M[G])&&b(F[G])?(st[G]={},z(st[G],M[G]),z(st[G],F[G])):F[G]!=null?st[G]=F[G]:delete st[G]);for(G in M)R(M,G)&&!R(F,G)&&b(M[G])&&(st[G]=z({},st[G]));return st}function pe(M){M!=null&&this.set(M)}y.suppressDeprecationWarnings=!1,y.deprecationHandler=null,pt=Object.keys?Object.keys:function(M){var F,G=[];for(F in M)R(M,F)&&G.push(F);return G};var de={};function Bt(M,F){var G=M.toLowerCase();de[G]=de[G+"s"]=de[F]=M}function Gt(M){return typeof M=="string"?de[M]||de[M.toLowerCase()]:void 0}function oe(M){var F,G,st={};for(G in M)R(M,G)&&(F=Gt(G))&&(st[F]=M[G]);return st}var le={};function ye(M,F){le[M]=F}function It(M,F,G){var st=""+Math.abs(M),qt=F-st.length;return(0<=M?G?"+":"":"-")+Math.pow(10,Math.max(0,qt)).toString().substr(1)+st}var He=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,he=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,jt={},Kt={};function ct(M,F,G,st){var qt=st;typeof st=="string"&&(qt=function(){return this[st]()}),M&&(Kt[M]=qt),F&&(Kt[F[0]]=function(){return It(qt.apply(this,arguments),F[1],F[2])}),G&&(Kt[G]=function(){return this.localeData().ordinal(qt.apply(this,arguments),M)})}function te(M,F){return M.isValid()?(F=Dt(F,M.localeData()),jt[F]=jt[F]||function(G){var st,qt,fe,we=G.match(He);for(st=0,qt=we.length;st<qt;st++)Kt[we[st]]?we[st]=Kt[we[st]]:we[st]=(fe=we[st]).match(/\[[\s\S]/)?fe.replace(/^\[|\]$/g,""):fe.replace(/\\/g,"");return function(Ee){var Ae,Pe="";for(Ae=0;Ae<qt;Ae++)Pe+=Pt(we[Ae])?we[Ae].call(Ee,G):we[Ae];return Pe}}(F),jt[F](M)):M.localeData().invalidDate()}function Dt(M,F){var G=5;function st(qt){return F.longDateFormat(qt)||qt}for(he.lastIndex=0;0<=G&&he.test(M);)M=M.replace(he,st),he.lastIndex=0,G-=1;return M}var Vt=/\d/,$t=/\d\d/,Nt=/\d{3}/,ie=/\d{4}/,Qe=/[+-]?\d{6}/,be=/\d\d?/,Ce=/\d\d\d\d?/,un=/\d\d\d\d\d\d?/,Ve=/\d{1,3}/,Le=/\d{1,4}/,ke=/[+-]?\d{1,6}/,Je=/\d+/,Ye=/[+-]?\d+/,Ge=/Z|[+-]\d\d:?\d\d/gi,Ze=/Z|[+-]\d\d(?::?\d\d)?/gi,De=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,zn={};function Te(M,F,G){zn[M]=Pt(F)?F:function(st,qt){return st&&G?G:F}}function en(M,F){return R(zn,M)?zn[M](F._strict,F._locale):new RegExp(_n(M.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(G,st,qt,fe,we){return st||qt||fe||we})))}function _n(M){return M.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}var Rr={};function bn(M,F){var G,st=F;for(typeof M=="string"&&(M=[M]),k(F)&&(st=function(qt,fe){fe[F]=K(qt)}),G=0;G<M.length;G++)Rr[M[G]]=st}function Jn(M,F){bn(M,function(G,st,qt,fe){qt._w=qt._w||{},F(G,qt._w,qt,fe)})}function cn(M){return yn(M)?366:365}function yn(M){return M%4==0&&M%100!=0||M%400==0}ct("Y",0,0,function(){var M=this.year();return M<=9999?""+M:"+"+M}),ct(0,["YY",2],0,function(){return this.year()%100}),ct(0,["YYYY",4],0,"year"),ct(0,["YYYYY",5],0,"year"),ct(0,["YYYYYY",6,!0],0,"year"),Bt("year","y"),ye("year",1),Te("Y",Ye),Te("YY",be,$t),Te("YYYY",Le,ie),Te("YYYYY",ke,Qe),Te("YYYYYY",ke,Qe),bn(["YYYYY","YYYYYY"],0),bn("YYYY",function(M,F){F[0]=M.length===2?y.parseTwoDigitYear(M):K(M)}),bn("YY",function(M,F){F[0]=y.parseTwoDigitYear(M)}),bn("Y",function(M,F){F[0]=parseInt(M,10)}),y.parseTwoDigitYear=function(M){return K(M)+(68<K(M)?1900:2e3)};var Xe,Cn=Tn("FullYear",!0);function Tn(M,F){return function(G){return G!=null?($n(this,M,G),y.updateOffset(this,F),this):Un(this,M)}}function Un(M,F){return M.isValid()?M._d["get"+(M._isUTC?"UTC":"")+F]():NaN}function $n(M,F,G){M.isValid()&&!isNaN(G)&&(F==="FullYear"&&yn(M.year())&&M.month()===1&&M.date()===29?M._d["set"+(M._isUTC?"UTC":"")+F](G,M.month(),Nr(G,M.month())):M._d["set"+(M._isUTC?"UTC":"")+F](G))}function Nr(M,F){if(isNaN(M)||isNaN(F))return NaN;var G=(F%12+12)%12;return M+=(F-G)/12,G===1?yn(M)?29:28:31-G%7%2}Xe=Array.prototype.indexOf?Array.prototype.indexOf:function(M){var F;for(F=0;F<this.length;++F)if(this[F]===M)return F;return-1},ct("M",["MM",2],"Mo",function(){return this.month()+1}),ct("MMM",0,0,function(M){return this.localeData().monthsShort(this,M)}),ct("MMMM",0,0,function(M){return this.localeData().months(this,M)}),Bt("month","M"),ye("month",8),Te("M",be),Te("MM",be,$t),Te("MMM",function(M,F){return F.monthsShortRegex(M)}),Te("MMMM",function(M,F){return F.monthsRegex(M)}),bn(["M","MM"],function(M,F){F[1]=K(M)-1}),bn(["MMM","MMMM"],function(M,F,G,st){var qt=G._locale.monthsParse(M,st,G._strict);qt!=null?F[1]=qt:q(G).invalidMonth=M});var En=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,Wn="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),Yn="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_");function Vn(M,F){var G;if(!M.isValid())return M;if(typeof F=="string"){if(/^\d+$/.test(F))F=K(F);else if(!k(F=M.localeData().monthsParse(F)))return M}return G=Math.min(M.date(),Nr(M.year(),F)),M._d["set"+(M._isUTC?"UTC":"")+"Month"](F,G),M}function Gn(M){return M!=null?(Vn(this,M),y.updateOffset(this,!0),this):Un(this,"Month")}var tr=De,On=De;function In(){function M(we,Ee){return Ee.length-we.length}var F,G,st=[],qt=[],fe=[];for(F=0;F<12;F++)G=$([2e3,F]),st.push(this.monthsShort(G,"")),qt.push(this.months(G,"")),fe.push(this.months(G,"")),fe.push(this.monthsShort(G,""));for(st.sort(M),qt.sort(M),fe.sort(M),F=0;F<12;F++)st[F]=_n(st[F]),qt[F]=_n(qt[F]);for(F=0;F<24;F++)fe[F]=_n(fe[F]);this._monthsRegex=new RegExp("^("+fe.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+qt.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+st.join("|")+")","i")}function ln(M){var F;if(M<100&&0<=M){var G=Array.prototype.slice.call(arguments);G[0]=M+400,F=new Date(Date.UTC.apply(null,G)),isFinite(F.getUTCFullYear())&&F.setUTCFullYear(M)}else F=new Date(Date.UTC.apply(null,arguments));return F}function jn(M,F,G){var st=7+F-G;return-(7+ln(M,0,st).getUTCDay()-F)%7+st-1}function mn(M,F,G,st,qt){var fe,we,Ee=1+7*(F-1)+(7+G-st)%7+jn(M,st,qt);return we=Ee<=0?cn(fe=M-1)+Ee:Ee>cn(M)?(fe=M+1,Ee-cn(M)):(fe=M,Ee),{year:fe,dayOfYear:we}}function oi(M,F,G){var st,qt,fe=jn(M.year(),F,G),we=Math.floor((M.dayOfYear()-fe-1)/7)+1;return we<1?st=we+gr(qt=M.year()-1,F,G):we>gr(M.year(),F,G)?(st=we-gr(M.year(),F,G),qt=M.year()+1):(qt=M.year(),st=we),{week:st,year:qt}}function gr(M,F,G){var st=jn(M,F,G),qt=jn(M+1,F,G);return(cn(M)-st+qt)/7}function ra(M,F){return M.slice(F,7).concat(M.slice(0,F))}ct("w",["ww",2],"wo","week"),ct("W",["WW",2],"Wo","isoWeek"),Bt("week","w"),Bt("isoWeek","W"),ye("week",5),ye("isoWeek",5),Te("w",be),Te("ww",be,$t),Te("W",be),Te("WW",be,$t),Jn(["w","ww","W","WW"],function(M,F,G,st){F[st.substr(0,1)]=K(M)}),ct("d",0,"do","day"),ct("dd",0,0,function(M){return this.localeData().weekdaysMin(this,M)}),ct("ddd",0,0,function(M){return this.localeData().weekdaysShort(this,M)}),ct("dddd",0,0,function(M){return this.localeData().weekdays(this,M)}),ct("e",0,0,"weekday"),ct("E",0,0,"isoWeekday"),Bt("day","d"),Bt("weekday","e"),Bt("isoWeekday","E"),ye("day",11),ye("weekday",11),ye("isoWeekday",11),Te("d",be),Te("e",be),Te("E",be),Te("dd",function(M,F){return F.weekdaysMinRegex(M)}),Te("ddd",function(M,F){return F.weekdaysShortRegex(M)}),Te("dddd",function(M,F){return F.weekdaysRegex(M)}),Jn(["dd","ddd","dddd"],function(M,F,G,st){var qt=G._locale.weekdaysParse(M,st,G._strict);qt!=null?F.d=qt:q(G).invalidWeekday=M}),Jn(["d","e","E"],function(M,F,G,st){F[st]=K(M)});var Rn="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Io="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),xa="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),si=De,Fr=De,Ur=De;function Xr(){function M(We,kn){return kn.length-We.length}var F,G,st,qt,fe,we=[],Ee=[],Ae=[],Pe=[];for(F=0;F<7;F++)G=$([2e3,1]).day(F),st=this.weekdaysMin(G,""),qt=this.weekdaysShort(G,""),fe=this.weekdays(G,""),we.push(st),Ee.push(qt),Ae.push(fe),Pe.push(st),Pe.push(qt),Pe.push(fe);for(we.sort(M),Ee.sort(M),Ae.sort(M),Pe.sort(M),F=0;F<7;F++)Ee[F]=_n(Ee[F]),Ae[F]=_n(Ae[F]),Pe[F]=_n(Pe[F]);this._weekdaysRegex=new RegExp("^("+Pe.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+Ae.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+Ee.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+we.join("|")+")","i")}function ti(){return this.hours()%12||12}function Or(M,F){ct(M,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),F)})}function ei(M,F){return F._meridiemParse}ct("H",["HH",2],0,"hour"),ct("h",["hh",2],0,ti),ct("k",["kk",2],0,function(){return this.hours()||24}),ct("hmm",0,0,function(){return""+ti.apply(this)+It(this.minutes(),2)}),ct("hmmss",0,0,function(){return""+ti.apply(this)+It(this.minutes(),2)+It(this.seconds(),2)}),ct("Hmm",0,0,function(){return""+this.hours()+It(this.minutes(),2)}),ct("Hmmss",0,0,function(){return""+this.hours()+It(this.minutes(),2)+It(this.seconds(),2)}),Or("a",!0),Or("A",!1),Bt("hour","h"),ye("hour",13),Te("a",ei),Te("A",ei),Te("H",be),Te("h",be),Te("k",be),Te("HH",be,$t),Te("hh",be,$t),Te("kk",be,$t),Te("hmm",Ce),Te("hmmss",un),Te("Hmm",Ce),Te("Hmmss",un),bn(["H","HH"],3),bn(["k","kk"],function(M,F,G){var st=K(M);F[3]=st===24?0:st}),bn(["a","A"],function(M,F,G){G._isPm=G._locale.isPM(M),G._meridiem=M}),bn(["h","hh"],function(M,F,G){F[3]=K(M),q(G).bigHour=!0}),bn("hmm",function(M,F,G){var st=M.length-2;F[3]=K(M.substr(0,st)),F[4]=K(M.substr(st)),q(G).bigHour=!0}),bn("hmmss",function(M,F,G){var st=M.length-4,qt=M.length-2;F[3]=K(M.substr(0,st)),F[4]=K(M.substr(st,2)),F[5]=K(M.substr(qt)),q(G).bigHour=!0}),bn("Hmm",function(M,F,G){var st=M.length-2;F[3]=K(M.substr(0,st)),F[4]=K(M.substr(st))}),bn("Hmmss",function(M,F,G){var st=M.length-4,qt=M.length-2;F[3]=K(M.substr(0,st)),F[4]=K(M.substr(st,2)),F[5]=K(M.substr(qt))});var Pr,Fi=Tn("Hours",!0),fi={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:Wn,monthsShort:Yn,week:{dow:0,doy:6},weekdays:Rn,weekdaysMin:xa,weekdaysShort:Io,meridiemParse:/[ap]\.?m?\.?/i},er={},Vr={};function ka(M){return M&&M.toLowerCase().replace("_","-")}function ni(M){var F=null;if(!er[M]&&r&&r.exports)try{F=Pr._abbr,o(1748)("./"+M),Ta(F)}catch{}return er[M]}function Ta(M,F){var G;return M&&((G=T(F)?di(M):xo(M,F))?Pr=G:typeof console!="undefined"&&console.warn&&console.warn("Locale "+M+" not found. Did you forget to load it?")),Pr._abbr}function xo(M,F){if(F===null)return delete er[M],null;var G,st=fi;if(F.abbr=M,er[M]!=null)Ht("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),st=er[M]._config;else if(F.parentLocale!=null)if(er[F.parentLocale]!=null)st=er[F.parentLocale]._config;else{if((G=ni(F.parentLocale))==null)return Vr[F.parentLocale]||(Vr[F.parentLocale]=[]),Vr[F.parentLocale].push({name:M,config:F}),null;st=G._config}return er[M]=new pe(ge(st,F)),Vr[M]&&Vr[M].forEach(function(qt){xo(qt.name,qt.config)}),Ta(M),er[M]}function di(M){var F;if(M&&M._locale&&M._locale._abbr&&(M=M._locale._abbr),!M)return Pr;if(!p(M)){if(F=ni(M))return F;M=[M]}return function(G){for(var st,qt,fe,we,Ee=0;Ee<G.length;){for(st=(we=ka(G[Ee]).split("-")).length,qt=(qt=ka(G[Ee+1]))?qt.split("-"):null;0<st;){if(fe=ni(we.slice(0,st).join("-")))return fe;if(qt&&qt.length>=st&&ht(we,qt,!0)>=st-1)break;st--}Ee++}return Pr}(M)}function nn(M){var F,G=M._a;return G&&q(M).overflow===-2&&(F=G[1]<0||11<G[1]?1:G[2]<1||G[2]>Nr(G[0],G[1])?2:G[3]<0||24<G[3]||G[3]===24&&(G[4]!==0||G[5]!==0||G[6]!==0)?3:G[4]<0||59<G[4]?4:G[5]<0||59<G[5]?5:G[6]<0||999<G[6]?6:-1,q(M)._overflowDayOfYear&&(F<0||2<F)&&(F=2),q(M)._overflowWeeks&&F===-1&&(F=7),q(M)._overflowWeekday&&F===-1&&(F=8),q(M).overflow=F),M}function Zn(M,F,G){return M!=null?M:F!=null?F:G}function Mn(M){var F,G,st,qt,fe,we=[];if(!M._d){var Ee,Ae;for(Ee=M,Ae=new Date(y.now()),st=Ee._useUTC?[Ae.getUTCFullYear(),Ae.getUTCMonth(),Ae.getUTCDate()]:[Ae.getFullYear(),Ae.getMonth(),Ae.getDate()],M._w&&M._a[2]==null&&M._a[1]==null&&function(Pe){var We,kn,pn,lr,fr,Br,cr,Ca;if((We=Pe._w).GG!=null||We.W!=null||We.E!=null)fr=1,Br=4,kn=Zn(We.GG,Pe._a[0],oi(Dn(),1,4).year),pn=Zn(We.W,1),((lr=Zn(We.E,1))<1||7<lr)&&(Ca=!0);else{fr=Pe._locale._week.dow,Br=Pe._locale._week.doy;var js=oi(Dn(),fr,Br);kn=Zn(We.gg,Pe._a[0],js.year),pn=Zn(We.w,js.week),We.d!=null?((lr=We.d)<0||6<lr)&&(Ca=!0):We.e!=null?(lr=We.e+fr,(We.e<0||6<We.e)&&(Ca=!0)):lr=fr}pn<1||pn>gr(kn,fr,Br)?q(Pe)._overflowWeeks=!0:Ca!=null?q(Pe)._overflowWeekday=!0:(cr=mn(kn,pn,lr,fr,Br),Pe._a[0]=cr.year,Pe._dayOfYear=cr.dayOfYear)}(M),M._dayOfYear!=null&&(fe=Zn(M._a[0],st[0]),(M._dayOfYear>cn(fe)||M._dayOfYear===0)&&(q(M)._overflowDayOfYear=!0),G=ln(fe,0,M._dayOfYear),M._a[1]=G.getUTCMonth(),M._a[2]=G.getUTCDate()),F=0;F<3&&M._a[F]==null;++F)M._a[F]=we[F]=st[F];for(;F<7;F++)M._a[F]=we[F]=M._a[F]==null?F===2?1:0:M._a[F];M._a[3]===24&&M._a[4]===0&&M._a[5]===0&&M._a[6]===0&&(M._nextDay=!0,M._a[3]=0),M._d=(M._useUTC?ln:function(Pe,We,kn,pn,lr,fr,Br){var cr;return Pe<100&&0<=Pe?(cr=new Date(Pe+400,We,kn,pn,lr,fr,Br),isFinite(cr.getFullYear())&&cr.setFullYear(Pe)):cr=new Date(Pe,We,kn,pn,lr,fr,Br),cr}).apply(null,we),qt=M._useUTC?M._d.getUTCDay():M._d.getDay(),M._tzm!=null&&M._d.setUTCMinutes(M._d.getUTCMinutes()-M._tzm),M._nextDay&&(M._a[3]=24),M._w&&M._w.d!==void 0&&M._w.d!==qt&&(q(M).weekdayMismatch=!0)}}var Be=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Xn=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,mt=/Z|[+-]\d\d(?::?\d\d)?/,Kr=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/]],Zt=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],Pi=/^\/?Date\((\-?\d+)/i;function ya(M){var F,G,st,qt,fe,we,Ee=M._i,Ae=Be.exec(Ee)||Xn.exec(Ee);if(Ae){for(q(M).iso=!0,F=0,G=Kr.length;F<G;F++)if(Kr[F][1].exec(Ae[1])){qt=Kr[F][0],st=Kr[F][2]!==!1;break}if(qt==null)return void(M._isValid=!1);if(Ae[3]){for(F=0,G=Zt.length;F<G;F++)if(Zt[F][1].exec(Ae[3])){fe=(Ae[2]||" ")+Zt[F][0];break}if(fe==null)return void(M._isValid=!1)}if(!st&&fe!=null)return void(M._isValid=!1);if(Ae[4]){if(!mt.exec(Ae[4]))return void(M._isValid=!1);we="Z"}M._f=qt+(fe||"")+(we||""),Fo(M)}else M._isValid=!1}var eo=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,ko={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function Ro(M){var F,G,st,qt=eo.exec(M._i.replace(/\([^)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,""));if(qt){var fe=function(we,Ee,Ae,Pe,We,kn){var pn=[function(lr){var fr=parseInt(lr,10);return fr<=49?2e3+fr:fr<=999?1900+fr:fr}(we),Yn.indexOf(Ee),parseInt(Ae,10),parseInt(Pe,10),parseInt(We,10)];return kn&&pn.push(parseInt(kn,10)),pn}(qt[4],qt[3],qt[2],qt[5],qt[6],qt[7]);if(G=fe,st=M,(F=qt[1])&&Io.indexOf(F)!==new Date(G[0],G[1],G[2]).getDay()&&(q(st).weekdayMismatch=!0,!(st._isValid=!1)))return;M._a=fe,M._tzm=function(we,Ee,Ae){if(we)return ko[we];if(Ee)return 0;var Pe=parseInt(Ae,10),We=Pe%100;return(Pe-We)/100*60+We}(qt[8],qt[9],qt[10]),M._d=ln.apply(null,M._a),M._d.setUTCMinutes(M._d.getUTCMinutes()-M._tzm),q(M).rfc2822=!0}else M._isValid=!1}function Fo(M){if(M._f!==y.ISO_8601)if(M._f!==y.RFC_2822){M._a=[],q(M).empty=!0;var F,G,st,qt,fe,we,Ee,Ae,Pe=""+M._i,We=Pe.length,kn=0;for(st=Dt(M._f,M._locale).match(He)||[],F=0;F<st.length;F++)qt=st[F],(G=(Pe.match(en(qt,M))||[])[0])&&(0<(fe=Pe.substr(0,Pe.indexOf(G))).length&&q(M).unusedInput.push(fe),Pe=Pe.slice(Pe.indexOf(G)+G.length),kn+=G.length),Kt[qt]?(G?q(M).empty=!1:q(M).unusedTokens.push(qt),we=qt,Ae=M,(Ee=G)!=null&&R(Rr,we)&&Rr[we](Ee,Ae._a,Ae,we)):M._strict&&!G&&q(M).unusedTokens.push(qt);q(M).charsLeftOver=We-kn,0<Pe.length&&q(M).unusedInput.push(Pe),M._a[3]<=12&&q(M).bigHour===!0&&0<M._a[3]&&(q(M).bigHour=void 0),q(M).parsedDateParts=M._a.slice(0),q(M).meridiem=M._meridiem,M._a[3]=function(pn,lr,fr){var Br;return fr==null?lr:pn.meridiemHour!=null?pn.meridiemHour(lr,fr):(pn.isPM!=null&&((Br=pn.isPM(fr))&&lr<12&&(lr+=12),Br||lr!==12||(lr=0)),lr)}(M._locale,M._a[3],M._meridiem),Mn(M),nn(M)}else Ro(M);else ya(M)}function Gr(M){var F,G,st,qt,fe=M._i,we=M._f;return M._locale=M._locale||di(M._l),fe===null||we===void 0&&fe===""?X({nullInput:!0}):(typeof fe=="string"&&(M._i=fe=M._locale.preparse(fe)),Ct(fe)?new ut(nn(fe)):(D(fe)?M._d=fe:p(we)?function(Ee){var Ae,Pe,We,kn,pn;if(Ee._f.length===0)return q(Ee).invalidFormat=!0,Ee._d=new Date(NaN);for(kn=0;kn<Ee._f.length;kn++)pn=0,Ae=tt({},Ee),Ee._useUTC!=null&&(Ae._useUTC=Ee._useUTC),Ae._f=Ee._f[kn],Fo(Ae),V(Ae)&&(pn+=q(Ae).charsLeftOver,pn+=10*q(Ae).unusedTokens.length,q(Ae).score=pn,(We==null||pn<We)&&(We=pn,Pe=Ae));z(Ee,Pe||Ae)}(M):we?Fo(M):T(G=(F=M)._i)?F._d=new Date(y.now()):D(G)?F._d=new Date(G.valueOf()):typeof G=="string"?(st=F,(qt=Pi.exec(st._i))===null?(ya(st),st._isValid===!1&&(delete st._isValid,Ro(st),st._isValid===!1&&(delete st._isValid,y.createFromInputFallback(st)))):st._d=new Date(+qt[1])):p(G)?(F._a=O(G.slice(0),function(Ee){return parseInt(Ee,10)}),Mn(F)):b(G)?function(Ee){if(!Ee._d){var Ae=oe(Ee._i);Ee._a=O([Ae.year,Ae.month,Ae.day||Ae.date,Ae.hour,Ae.minute,Ae.second,Ae.millisecond],function(Pe){return Pe&&parseInt(Pe,10)}),Mn(Ee)}}(F):k(G)?F._d=new Date(G):y.createFromInputFallback(F),V(M)||(M._d=null),M))}function ia(M,F,G,st,qt){var fe,we={};return G!==!0&&G!==!1||(st=G,G=void 0),(b(M)&&function(Ee){if(Object.getOwnPropertyNames)return Object.getOwnPropertyNames(Ee).length===0;var Ae;for(Ae in Ee)if(Ee.hasOwnProperty(Ae))return!1;return!0}(M)||p(M)&&M.length===0)&&(M=void 0),we._isAMomentObject=!0,we._useUTC=we._isUTC=qt,we._l=G,we._i=M,we._f=F,we._strict=st,(fe=new ut(nn(Gr(we))))._nextDay&&(fe.add(1,"d"),fe._nextDay=void 0),fe}function Dn(M,F,G,st){return ia(M,F,G,st,!1)}y.createFromInputFallback=St("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged and will be removed in an upcoming major release. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(M){M._d=new Date(M._i+(M._useUTC?" UTC":""))}),y.ISO_8601=function(){},y.RFC_2822=function(){};var Ua=St("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var M=Dn.apply(null,arguments);return this.isValid()&&M.isValid()?M<this?this:M:X()}),no=St("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var M=Dn.apply(null,arguments);return this.isValid()&&M.isValid()?this<M?this:M:X()});function yr(M,F){var G,st;if(F.length===1&&p(F[0])&&(F=F[0]),!F.length)return Dn();for(G=F[0],st=1;st<F.length;++st)F[st].isValid()&&!F[st][M](G)||(G=F[st]);return G}var Cr=["year","quarter","month","week","day","hour","minute","second","millisecond"];function ki(M){var F=oe(M),G=F.year||0,st=F.quarter||0,qt=F.month||0,fe=F.week||F.isoWeek||0,we=F.day||0,Ee=F.hour||0,Ae=F.minute||0,Pe=F.second||0,We=F.millisecond||0;this._isValid=function(kn){for(var pn in kn)if(Xe.call(Cr,pn)===-1||kn[pn]!=null&&isNaN(kn[pn]))return!1;for(var lr=!1,fr=0;fr<Cr.length;++fr)if(kn[Cr[fr]]){if(lr)return!1;parseFloat(kn[Cr[fr]])!==K(kn[Cr[fr]])&&(lr=!0)}return!0}(F),this._milliseconds=+We+1e3*Pe+6e4*Ae+1e3*Ee*60*60,this._days=+we+7*fe,this._months=+qt+3*st+12*G,this._data={},this._locale=di(),this._bubble()}function ri(M){return M instanceof ki}function $r(M){return M<0?-1*Math.round(-1*M):Math.round(M)}function Hr(M,F){ct(M,0,0,function(){var G=this.utcOffset(),st="+";return G<0&&(G=-G,st="-"),st+It(~~(G/60),2)+F+It(~~G%60,2)})}Hr("Z",":"),Hr("ZZ",""),Te("Z",Ze),Te("ZZ",Ze),bn(["Z","ZZ"],function(M,F,G){G._useUTC=!0,G._tzm=Qr(Ze,M)});var pi=/([\+\-]|\d\d)/gi;function Qr(M,F){var G=(F||"").match(M);if(G===null)return null;var st=((G[G.length-1]||[])+"").match(pi)||["-",0,0],qt=60*st[1]+K(st[2]);return qt===0?0:st[0]==="+"?qt:-qt}function aa(M,F){var G,st;return F._isUTC?(G=F.clone(),st=(Ct(M)||D(M)?M.valueOf():Dn(M).valueOf())-G.valueOf(),G._d.setTime(G._d.valueOf()+st),y.updateOffset(G,!1),G):Dn(M).local()}function Gi(M){return 15*-Math.round(M._d.getTimezoneOffset()/15)}function Yi(){return!!this.isValid()&&this._isUTC&&this._offset===0}y.updateOffset=function(){};var To=/^(\-|\+)?(?:(\d*)[. ])?(\d+)\:(\d+)(?:\:(\d+)(\.\d*)?)?$/,Ft=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function je(M,F){var G,st,qt,fe=M,we=null;return ri(M)?fe={ms:M._milliseconds,d:M._days,M:M._months}:k(M)?(fe={},F?fe[F]=M:fe.milliseconds=M):(we=To.exec(M))?(G=we[1]==="-"?-1:1,fe={y:0,d:K(we[2])*G,h:K(we[3])*G,m:K(we[4])*G,s:K(we[5])*G,ms:K($r(1e3*we[6]))*G}):(we=Ft.exec(M))?(G=we[1]==="-"?-1:1,fe={y:Fe(we[2],G),M:Fe(we[3],G),w:Fe(we[4],G),d:Fe(we[5],G),h:Fe(we[6],G),m:Fe(we[7],G),s:Fe(we[8],G)}):fe==null?fe={}:typeof fe=="object"&&("from"in fe||"to"in fe)&&(qt=function(Ee,Ae){var Pe;return Ee.isValid()&&Ae.isValid()?(Ae=aa(Ae,Ee),Ee.isBefore(Ae)?Pe=mr(Ee,Ae):((Pe=mr(Ae,Ee)).milliseconds=-Pe.milliseconds,Pe.months=-Pe.months),Pe):{milliseconds:0,months:0}}(Dn(fe.from),Dn(fe.to)),(fe={}).ms=qt.milliseconds,fe.M=qt.months),st=new ki(fe),ri(M)&&R(M,"_locale")&&(st._locale=M._locale),st}function Fe(M,F){var G=M&&parseFloat(M.replace(",","."));return(isNaN(G)?0:G)*F}function mr(M,F){var G={};return G.months=F.month()-M.month()+12*(F.year()-M.year()),M.clone().add(G.months,"M").isAfter(F)&&--G.months,G.milliseconds=+F-+M.clone().add(G.months,"M"),G}function br(M,F){return function(G,st){var qt;return st===null||isNaN(+st)||(Ht(F,"moment()."+F+"(period, number) is deprecated. Please use moment()."+F+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),qt=G,G=st,st=qt),Ti(this,je(G=typeof G=="string"?+G:G,st),M),this}}function Ti(M,F,G,st){var qt=F._milliseconds,fe=$r(F._days),we=$r(F._months);M.isValid()&&(st=st==null||st,we&&Vn(M,Un(M,"Month")+we*G),fe&&$n(M,"Date",Un(M,"Date")+fe*G),qt&&M._d.setTime(M._d.valueOf()+qt*G),st&&y.updateOffset(M,fe||we))}je.fn=ki.prototype,je.invalid=function(){return je(NaN)};var ii=br(1,"add"),_c=br(-1,"subtract");function Ei(M,F){var G=12*(F.year()-M.year())+(F.month()-M.month()),st=M.clone().add(G,"months");return-(G+(F-st<0?(F-st)/(st-M.clone().add(G-1,"months")):(F-st)/(M.clone().add(G+1,"months")-st)))||0}function Di(M){var F;return M===void 0?this._locale._abbr:((F=di(M))!=null&&(this._locale=F),this)}y.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",y.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var bc=St("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(M){return M===void 0?this.localeData():this.locale(M)});function ro(){return this._locale}var gu=126227808e5;function Eo(M,F){return(M%F+F)%F}function yu(M,F,G){return M<100&&0<=M?new Date(M+400,F,G)-gu:new Date(M,F,G).valueOf()}function Zi(M,F,G){return M<100&&0<=M?Date.UTC(M+400,F,G)-gu:Date.UTC(M,F,G)}function ai(M,F){ct(0,[M,M.length],0,F)}function pl(M,F,G,st,qt){var fe;return M==null?oi(this,st,qt).year:((fe=gr(M,st,qt))<F&&(F=fe),function(we,Ee,Ae,Pe,We){var kn=mn(we,Ee,Ae,Pe,We),pn=ln(kn.year,0,kn.dayOfYear);return this.year(pn.getUTCFullYear()),this.month(pn.getUTCMonth()),this.date(pn.getUTCDate()),this}.call(this,M,F,G,st,qt))}ct(0,["gg",2],0,function(){return this.weekYear()%100}),ct(0,["GG",2],0,function(){return this.isoWeekYear()%100}),ai("gggg","weekYear"),ai("ggggg","weekYear"),ai("GGGG","isoWeekYear"),ai("GGGGG","isoWeekYear"),Bt("weekYear","gg"),Bt("isoWeekYear","GG"),ye("weekYear",1),ye("isoWeekYear",1),Te("G",Ye),Te("g",Ye),Te("GG",be,$t),Te("gg",be,$t),Te("GGGG",Le,ie),Te("gggg",Le,ie),Te("GGGGG",ke,Qe),Te("ggggg",ke,Qe),Jn(["gggg","ggggg","GGGG","GGGGG"],function(M,F,G,st){F[st.substr(0,2)]=K(M)}),Jn(["gg","GG"],function(M,F,G,st){F[st]=y.parseTwoDigitYear(M)}),ct("Q",0,"Qo","quarter"),Bt("quarter","Q"),ye("quarter",7),Te("Q",Vt),bn("Q",function(M,F){F[1]=3*(K(M)-1)}),ct("D",["DD",2],"Do","date"),Bt("date","D"),ye("date",9),Te("D",be),Te("DD",be,$t),Te("Do",function(M,F){return M?F._dayOfMonthOrdinalParse||F._ordinalParse:F._dayOfMonthOrdinalParseLenient}),bn(["D","DD"],2),bn("Do",function(M,F){F[2]=K(M.match(be)[0])});var gl=Tn("Date",!0);ct("DDD",["DDDD",3],"DDDo","dayOfYear"),Bt("dayOfYear","DDD"),ye("dayOfYear",4),Te("DDD",Ve),Te("DDDD",Nt),bn(["DDD","DDDD"],function(M,F,G){G._dayOfYear=K(M)}),ct("m",["mm",2],0,"minute"),Bt("minute","m"),ye("minute",14),Te("m",be),Te("mm",be,$t),bn(["m","mm"],4);var yl=Tn("Minutes",!1);ct("s",["ss",2],0,"second"),Bt("second","s"),ye("second",15),Te("s",be),Te("ss",be,$t),bn(["s","ss"],5);var io,ml=Tn("Seconds",!1);for(ct("S",0,0,function(){return~~(this.millisecond()/100)}),ct(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),ct(0,["SSS",3],0,"millisecond"),ct(0,["SSSS",4],0,function(){return 10*this.millisecond()}),ct(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),ct(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),ct(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),ct(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),ct(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),Bt("millisecond","ms"),ye("millisecond",16),Te("S",Ve,Vt),Te("SS",Ve,$t),Te("SSS",Ve,Nt),io="SSSS";io.length<=9;io+="S")Te(io,Je);function vl(M,F){F[6]=K(1e3*("0."+M))}for(io="S";io.length<=9;io+="S")bn(io,vl);var ao=Tn("Milliseconds",!1);ct("z",0,0,"zoneAbbr"),ct("zz",0,0,"zoneName");var Re=ut.prototype;function Wh(M){return M}Re.add=ii,Re.calendar=function(M,F){var G=M||Dn(),st=aa(G,this).startOf("day"),qt=y.calendarFormat(this,st)||"sameElse",fe=F&&(Pt(F[qt])?F[qt].call(this,G):F[qt]);return this.format(fe||this.localeData().calendar(qt,this,Dn(G)))},Re.clone=function(){return new ut(this)},Re.diff=function(M,F,G){var st,qt,fe;if(!this.isValid())return NaN;if(!(st=aa(M,this)).isValid())return NaN;switch(qt=6e4*(st.utcOffset()-this.utcOffset()),F=Gt(F)){case"year":fe=Ei(this,st)/12;break;case"month":fe=Ei(this,st);break;case"quarter":fe=Ei(this,st)/3;break;case"second":fe=(this-st)/1e3;break;case"minute":fe=(this-st)/6e4;break;case"hour":fe=(this-st)/36e5;break;case"day":fe=(this-st-qt)/864e5;break;case"week":fe=(this-st-qt)/6048e5;break;default:fe=this-st}return G?fe:et(fe)},Re.endOf=function(M){var F;if((M=Gt(M))===void 0||M==="millisecond"||!this.isValid())return this;var G=this._isUTC?Zi:yu;switch(M){case"year":F=G(this.year()+1,0,1)-1;break;case"quarter":F=G(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":F=G(this.year(),this.month()+1,1)-1;break;case"week":F=G(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":F=G(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":F=G(this.year(),this.month(),this.date()+1)-1;break;case"hour":F=this._d.valueOf(),F+=36e5-Eo(F+(this._isUTC?0:6e4*this.utcOffset()),36e5)-1;break;case"minute":F=this._d.valueOf(),F+=6e4-Eo(F,6e4)-1;break;case"second":F=this._d.valueOf(),F+=1e3-Eo(F,1e3)-1}return this._d.setTime(F),y.updateOffset(this,!0),this},Re.format=function(M){M||(M=this.isUtc()?y.defaultFormatUtc:y.defaultFormat);var F=te(this,M);return this.localeData().postformat(F)},Re.from=function(M,F){return this.isValid()&&(Ct(M)&&M.isValid()||Dn(M).isValid())?je({to:this,from:M}).locale(this.locale()).humanize(!F):this.localeData().invalidDate()},Re.fromNow=function(M){return this.from(Dn(),M)},Re.to=function(M,F){return this.isValid()&&(Ct(M)&&M.isValid()||Dn(M).isValid())?je({from:this,to:M}).locale(this.locale()).humanize(!F):this.localeData().invalidDate()},Re.toNow=function(M){return this.to(Dn(),M)},Re.get=function(M){return Pt(this[M=Gt(M)])?this[M]():this},Re.invalidAt=function(){return q(this).overflow},Re.isAfter=function(M,F){var G=Ct(M)?M:Dn(M);return!(!this.isValid()||!G.isValid())&&((F=Gt(F)||"millisecond")==="millisecond"?this.valueOf()>G.valueOf():G.valueOf()<this.clone().startOf(F).valueOf())},Re.isBefore=function(M,F){var G=Ct(M)?M:Dn(M);return!(!this.isValid()||!G.isValid())&&((F=Gt(F)||"millisecond")==="millisecond"?this.valueOf()<G.valueOf():this.clone().endOf(F).valueOf()<G.valueOf())},Re.isBetween=function(M,F,G,st){var qt=Ct(M)?M:Dn(M),fe=Ct(F)?F:Dn(F);return!!(this.isValid()&&qt.isValid()&&fe.isValid())&&((st=st||"()")[0]==="("?this.isAfter(qt,G):!this.isBefore(qt,G))&&(st[1]===")"?this.isBefore(fe,G):!this.isAfter(fe,G))},Re.isSame=function(M,F){var G,st=Ct(M)?M:Dn(M);return!(!this.isValid()||!st.isValid())&&((F=Gt(F)||"millisecond")==="millisecond"?this.valueOf()===st.valueOf():(G=st.valueOf(),this.clone().startOf(F).valueOf()<=G&&G<=this.clone().endOf(F).valueOf()))},Re.isSameOrAfter=function(M,F){return this.isSame(M,F)||this.isAfter(M,F)},Re.isSameOrBefore=function(M,F){return this.isSame(M,F)||this.isBefore(M,F)},Re.isValid=function(){return V(this)},Re.lang=bc,Re.locale=Di,Re.localeData=ro,Re.max=no,Re.min=Ua,Re.parsingFlags=function(){return z({},q(this))},Re.set=function(M,F){if(typeof M=="object")for(var G=function(qt){var fe=[];for(var we in qt)fe.push({unit:we,priority:le[we]});return fe.sort(function(Ee,Ae){return Ee.priority-Ae.priority}),fe}(M=oe(M)),st=0;st<G.length;st++)this[G[st].unit](M[G[st].unit]);else if(Pt(this[M=Gt(M)]))return this[M](F);return this},Re.startOf=function(M){var F;if((M=Gt(M))===void 0||M==="millisecond"||!this.isValid())return this;var G=this._isUTC?Zi:yu;switch(M){case"year":F=G(this.year(),0,1);break;case"quarter":F=G(this.year(),this.month()-this.month()%3,1);break;case"month":F=G(this.year(),this.month(),1);break;case"week":F=G(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":F=G(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":F=G(this.year(),this.month(),this.date());break;case"hour":F=this._d.valueOf(),F-=Eo(F+(this._isUTC?0:6e4*this.utcOffset()),36e5);break;case"minute":F=this._d.valueOf(),F-=Eo(F,6e4);break;case"second":F=this._d.valueOf(),F-=Eo(F,1e3)}return this._d.setTime(F),y.updateOffset(this,!0),this},Re.subtract=_c,Re.toArray=function(){var M=this;return[M.year(),M.month(),M.date(),M.hour(),M.minute(),M.second(),M.millisecond()]},Re.toObject=function(){var M=this;return{years:M.year(),months:M.month(),date:M.date(),hours:M.hours(),minutes:M.minutes(),seconds:M.seconds(),milliseconds:M.milliseconds()}},Re.toDate=function(){return new Date(this.valueOf())},Re.toISOString=function(M){if(!this.isValid())return null;var F=M!==!0,G=F?this.clone().utc():this;return G.year()<0||9999<G.year()?te(G,F?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):Pt(Date.prototype.toISOString)?F?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",te(G,"Z")):te(G,F?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},Re.inspect=function(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var M="moment",F="";this.isLocal()||(M=this.utcOffset()===0?"moment.utc":"moment.parseZone",F="Z");var G="["+M+'("]',st=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",qt=F+'[")]';return this.format(G+st+"-MM-DD[T]HH:mm:ss.SSS"+qt)},Re.toJSON=function(){return this.isValid()?this.toISOString():null},Re.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},Re.unix=function(){return Math.floor(this.valueOf()/1e3)},Re.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},Re.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},Re.year=Cn,Re.isLeapYear=function(){return yn(this.year())},Re.weekYear=function(M){return pl.call(this,M,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)},Re.isoWeekYear=function(M){return pl.call(this,M,this.isoWeek(),this.isoWeekday(),1,4)},Re.quarter=Re.quarters=function(M){return M==null?Math.ceil((this.month()+1)/3):this.month(3*(M-1)+this.month()%3)},Re.month=Gn,Re.daysInMonth=function(){return Nr(this.year(),this.month())},Re.week=Re.weeks=function(M){var F=this.localeData().week(this);return M==null?F:this.add(7*(M-F),"d")},Re.isoWeek=Re.isoWeeks=function(M){var F=oi(this,1,4).week;return M==null?F:this.add(7*(M-F),"d")},Re.weeksInYear=function(){var M=this.localeData()._week;return gr(this.year(),M.dow,M.doy)},Re.isoWeeksInYear=function(){return gr(this.year(),1,4)},Re.date=gl,Re.day=Re.days=function(M){if(!this.isValid())return M!=null?this:NaN;var F,G,st=this._isUTC?this._d.getUTCDay():this._d.getDay();return M!=null?(F=M,G=this.localeData(),M=typeof F!="string"?F:isNaN(F)?typeof(F=G.weekdaysParse(F))=="number"?F:null:parseInt(F,10),this.add(M-st,"d")):st},Re.weekday=function(M){if(!this.isValid())return M!=null?this:NaN;var F=(this.day()+7-this.localeData()._week.dow)%7;return M==null?F:this.add(M-F,"d")},Re.isoWeekday=function(M){if(!this.isValid())return M!=null?this:NaN;if(M==null)return this.day()||7;var F,G,st=(F=M,G=this.localeData(),typeof F=="string"?G.weekdaysParse(F)%7||7:isNaN(F)?null:F);return this.day(this.day()%7?st:st-7)},Re.dayOfYear=function(M){var F=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return M==null?F:this.add(M-F,"d")},Re.hour=Re.hours=Fi,Re.minute=Re.minutes=yl,Re.second=Re.seconds=ml,Re.millisecond=Re.milliseconds=ao,Re.utcOffset=function(M,F,G){var st,qt=this._offset||0;if(!this.isValid())return M!=null?this:NaN;if(M==null)return this._isUTC?qt:Gi(this);if(typeof M=="string"){if((M=Qr(Ze,M))===null)return this}else Math.abs(M)<16&&!G&&(M*=60);return!this._isUTC&&F&&(st=Gi(this)),this._offset=M,this._isUTC=!0,st!=null&&this.add(st,"m"),qt!==M&&(!F||this._changeInProgress?Ti(this,je(M-qt,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,y.updateOffset(this,!0),this._changeInProgress=null)),this},Re.utc=function(M){return this.utcOffset(0,M)},Re.local=function(M){return this._isUTC&&(this.utcOffset(0,M),this._isUTC=!1,M&&this.subtract(Gi(this),"m")),this},Re.parseZone=function(){if(this._tzm!=null)this.utcOffset(this._tzm,!1,!0);else if(typeof this._i=="string"){var M=Qr(Ge,this._i);M!=null?this.utcOffset(M):this.utcOffset(0,!0)}return this},Re.hasAlignedHourOffset=function(M){return!!this.isValid()&&(M=M?Dn(M).utcOffset():0,(this.utcOffset()-M)%60==0)},Re.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},Re.isLocal=function(){return!!this.isValid()&&!this._isUTC},Re.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},Re.isUtc=Yi,Re.isUTC=Yi,Re.zoneAbbr=function(){return this._isUTC?"UTC":""},Re.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},Re.dates=St("dates accessor is deprecated. Use date instead.",gl),Re.months=St("months accessor is deprecated. Use month instead",Gn),Re.years=St("years accessor is deprecated. Use year instead",Cn),Re.zone=St("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",function(M,F){return M!=null?(typeof M!="string"&&(M=-M),this.utcOffset(M,F),this):-this.utcOffset()}),Re.isDSTShifted=St("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",function(){if(!T(this._isDSTShifted))return this._isDSTShifted;var M={};if(tt(M,this),(M=Gr(M))._a){var F=M._isUTC?$(M._a):Dn(M._a);this._isDSTShifted=this.isValid()&&0<ht(M._a,F.toArray())}else this._isDSTShifted=!1;return this._isDSTShifted});var Lr=pe.prototype;function mu(M,F,G,st){var qt=di(),fe=$().set(st,F);return qt[G](fe,M)}function vu(M,F,G){if(k(M)&&(F=M,M=void 0),M=M||"",F!=null)return mu(M,F,G,"month");var st,qt=[];for(st=0;st<12;st++)qt[st]=mu(M,st,G,"month");return qt}function _l(M,F,G,st){typeof M=="boolean"?k(F)&&(G=F,F=void 0):(F=M,M=!1,k(G=F)&&(G=F,F=void 0)),F=F||"";var qt,fe=di(),we=M?fe._week.dow:0;if(G!=null)return mu(F,(G+we)%7,st,"day");var Ee=[];for(qt=0;qt<7;qt++)Ee[qt]=mu(F,(qt+we)%7,st,"day");return Ee}Lr.calendar=function(M,F,G){var st=this._calendar[M]||this._calendar.sameElse;return Pt(st)?st.call(F,G):st},Lr.longDateFormat=function(M){var F=this._longDateFormat[M],G=this._longDateFormat[M.toUpperCase()];return F||!G?F:(this._longDateFormat[M]=G.replace(/MMMM|MM|DD|dddd/g,function(st){return st.slice(1)}),this._longDateFormat[M])},Lr.invalidDate=function(){return this._invalidDate},Lr.ordinal=function(M){return this._ordinal.replace("%d",M)},Lr.preparse=Wh,Lr.postformat=Wh,Lr.relativeTime=function(M,F,G,st){var qt=this._relativeTime[G];return Pt(qt)?qt(M,F,G,st):qt.replace(/%d/i,M)},Lr.pastFuture=function(M,F){var G=this._relativeTime[0<M?"future":"past"];return Pt(G)?G(F):G.replace(/%s/i,F)},Lr.set=function(M){var F,G;for(G in M)Pt(F=M[G])?this[G]=F:this["_"+G]=F;this._config=M,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},Lr.months=function(M,F){return M?p(this._months)?this._months[M.month()]:this._months[(this._months.isFormat||En).test(F)?"format":"standalone"][M.month()]:p(this._months)?this._months:this._months.standalone},Lr.monthsShort=function(M,F){return M?p(this._monthsShort)?this._monthsShort[M.month()]:this._monthsShort[En.test(F)?"format":"standalone"][M.month()]:p(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},Lr.monthsParse=function(M,F,G){var st,qt,fe;if(this._monthsParseExact)return function(we,Ee,Ae){var Pe,We,kn,pn=we.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],Pe=0;Pe<12;++Pe)kn=$([2e3,Pe]),this._shortMonthsParse[Pe]=this.monthsShort(kn,"").toLocaleLowerCase(),this._longMonthsParse[Pe]=this.months(kn,"").toLocaleLowerCase();return Ae?Ee==="MMM"?(We=Xe.call(this._shortMonthsParse,pn))!==-1?We:null:(We=Xe.call(this._longMonthsParse,pn))!==-1?We:null:Ee==="MMM"?(We=Xe.call(this._shortMonthsParse,pn))!==-1||(We=Xe.call(this._longMonthsParse,pn))!==-1?We:null:(We=Xe.call(this._longMonthsParse,pn))!==-1||(We=Xe.call(this._shortMonthsParse,pn))!==-1?We:null}.call(this,M,F,G);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),st=0;st<12;st++)if(qt=$([2e3,st]),G&&!this._longMonthsParse[st]&&(this._longMonthsParse[st]=new RegExp("^"+this.months(qt,"").replace(".","")+"$","i"),this._shortMonthsParse[st]=new RegExp("^"+this.monthsShort(qt,"").replace(".","")+"$","i")),G||this._monthsParse[st]||(fe="^"+this.months(qt,"")+"|^"+this.monthsShort(qt,""),this._monthsParse[st]=new RegExp(fe.replace(".",""),"i")),G&&F==="MMMM"&&this._longMonthsParse[st].test(M)||G&&F==="MMM"&&this._shortMonthsParse[st].test(M)||!G&&this._monthsParse[st].test(M))return st},Lr.monthsRegex=function(M){return this._monthsParseExact?(R(this,"_monthsRegex")||In.call(this),M?this._monthsStrictRegex:this._monthsRegex):(R(this,"_monthsRegex")||(this._monthsRegex=On),this._monthsStrictRegex&&M?this._monthsStrictRegex:this._monthsRegex)},Lr.monthsShortRegex=function(M){return this._monthsParseExact?(R(this,"_monthsRegex")||In.call(this),M?this._monthsShortStrictRegex:this._monthsShortRegex):(R(this,"_monthsShortRegex")||(this._monthsShortRegex=tr),this._monthsShortStrictRegex&&M?this._monthsShortStrictRegex:this._monthsShortRegex)},Lr.week=function(M){return oi(M,this._week.dow,this._week.doy).week},Lr.firstDayOfYear=function(){return this._week.doy},Lr.firstDayOfWeek=function(){return this._week.dow},Lr.weekdays=function(M,F){var G=p(this._weekdays)?this._weekdays:this._weekdays[M&&M!==!0&&this._weekdays.isFormat.test(F)?"format":"standalone"];return M===!0?ra(G,this._week.dow):M?G[M.day()]:G},Lr.weekdaysMin=function(M){return M===!0?ra(this._weekdaysMin,this._week.dow):M?this._weekdaysMin[M.day()]:this._weekdaysMin},Lr.weekdaysShort=function(M){return M===!0?ra(this._weekdaysShort,this._week.dow):M?this._weekdaysShort[M.day()]:this._weekdaysShort},Lr.weekdaysParse=function(M,F,G){var st,qt,fe;if(this._weekdaysParseExact)return function(we,Ee,Ae){var Pe,We,kn,pn=we.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],Pe=0;Pe<7;++Pe)kn=$([2e3,1]).day(Pe),this._minWeekdaysParse[Pe]=this.weekdaysMin(kn,"").toLocaleLowerCase(),this._shortWeekdaysParse[Pe]=this.weekdaysShort(kn,"").toLocaleLowerCase(),this._weekdaysParse[Pe]=this.weekdays(kn,"").toLocaleLowerCase();return Ae?Ee==="dddd"?(We=Xe.call(this._weekdaysParse,pn))!==-1?We:null:Ee==="ddd"?(We=Xe.call(this._shortWeekdaysParse,pn))!==-1?We:null:(We=Xe.call(this._minWeekdaysParse,pn))!==-1?We:null:Ee==="dddd"?(We=Xe.call(this._weekdaysParse,pn))!==-1||(We=Xe.call(this._shortWeekdaysParse,pn))!==-1||(We=Xe.call(this._minWeekdaysParse,pn))!==-1?We:null:Ee==="ddd"?(We=Xe.call(this._shortWeekdaysParse,pn))!==-1||(We=Xe.call(this._weekdaysParse,pn))!==-1||(We=Xe.call(this._minWeekdaysParse,pn))!==-1?We:null:(We=Xe.call(this._minWeekdaysParse,pn))!==-1||(We=Xe.call(this._weekdaysParse,pn))!==-1||(We=Xe.call(this._shortWeekdaysParse,pn))!==-1?We:null}.call(this,M,F,G);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),st=0;st<7;st++)if(qt=$([2e3,1]).day(st),G&&!this._fullWeekdaysParse[st]&&(this._fullWeekdaysParse[st]=new RegExp("^"+this.weekdays(qt,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[st]=new RegExp("^"+this.weekdaysShort(qt,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[st]=new RegExp("^"+this.weekdaysMin(qt,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[st]||(fe="^"+this.weekdays(qt,"")+"|^"+this.weekdaysShort(qt,"")+"|^"+this.weekdaysMin(qt,""),this._weekdaysParse[st]=new RegExp(fe.replace(".",""),"i")),G&&F==="dddd"&&this._fullWeekdaysParse[st].test(M)||G&&F==="ddd"&&this._shortWeekdaysParse[st].test(M)||G&&F==="dd"&&this._minWeekdaysParse[st].test(M)||!G&&this._weekdaysParse[st].test(M))return st},Lr.weekdaysRegex=function(M){return this._weekdaysParseExact?(R(this,"_weekdaysRegex")||Xr.call(this),M?this._weekdaysStrictRegex:this._weekdaysRegex):(R(this,"_weekdaysRegex")||(this._weekdaysRegex=si),this._weekdaysStrictRegex&&M?this._weekdaysStrictRegex:this._weekdaysRegex)},Lr.weekdaysShortRegex=function(M){return this._weekdaysParseExact?(R(this,"_weekdaysRegex")||Xr.call(this),M?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(R(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Fr),this._weekdaysShortStrictRegex&&M?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},Lr.weekdaysMinRegex=function(M){return this._weekdaysParseExact?(R(this,"_weekdaysRegex")||Xr.call(this),M?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(R(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Ur),this._weekdaysMinStrictRegex&&M?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},Lr.isPM=function(M){return(M+"").toLowerCase().charAt(0)==="p"},Lr.meridiem=function(M,F,G){return 11<M?G?"pm":"PM":G?"am":"AM"},Ta("en",{dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(M){var F=M%10;return M+(K(M%100/10)===1?"th":F===1?"st":F===2?"nd":F===3?"rd":"th")}}),y.lang=St("moment.lang is deprecated. Use moment.locale instead.",Ta),y.langData=St("moment.langData is deprecated. Use moment.localeData instead.",di);var $a=Math.abs;function Si(M,F,G,st){var qt=je(F,G);return M._milliseconds+=st*qt._milliseconds,M._days+=st*qt._days,M._months+=st*qt._months,M._bubble()}function wc(M){return M<0?Math.floor(M):Math.ceil(M)}function qh(M){return 4800*M/146097}function bl(M){return 146097*M/4800}function Po(M){return function(){return this.as(M)}}var Vh=Po("ms"),Xd=Po("s"),Qp=Po("m"),Kd=Po("h"),Qd=Po("d"),Ea=Po("w"),Jd=Po("M"),Gh=Po("Q"),Zh=Po("y");function Yo(M){return function(){return this.isValid()?this._data[M]:NaN}}var _u=Yo("milliseconds"),oo=Yo("seconds"),bu=Yo("minutes"),Sa=Yo("hours"),Ys=Yo("days"),wl=Yo("months"),jo=Yo("years"),Xi=Math.round,gi={ss:44,s:45,m:45,h:22,d:26,M:11},so=Math.abs;function Ha(M){return(0<M)-(M<0)||+M}function oa(){if(!this.isValid())return this.localeData().invalidDate();var M,F,G=so(this._milliseconds)/1e3,st=so(this._days),qt=so(this._months);F=et((M=et(G/60))/60),G%=60,M%=60;var fe=et(qt/12),we=qt%=12,Ee=st,Ae=F,Pe=M,We=G?G.toFixed(3).replace(/\.?0+$/,""):"",kn=this.asSeconds();if(!kn)return"P0D";var pn=kn<0?"-":"",lr=Ha(this._months)!==Ha(kn)?"-":"",fr=Ha(this._days)!==Ha(kn)?"-":"",Br=Ha(this._milliseconds)!==Ha(kn)?"-":"";return pn+"P"+(fe?lr+fe+"Y":"")+(we?lr+we+"M":"")+(Ee?fr+Ee+"D":"")+(Ae||Pe||We?"T":"")+(Ae?Br+Ae+"H":"")+(Pe?Br+Pe+"M":"")+(We?Br+We+"S":"")}var Hn=ki.prototype;return Hn.isValid=function(){return this._isValid},Hn.abs=function(){var M=this._data;return this._milliseconds=$a(this._milliseconds),this._days=$a(this._days),this._months=$a(this._months),M.milliseconds=$a(M.milliseconds),M.seconds=$a(M.seconds),M.minutes=$a(M.minutes),M.hours=$a(M.hours),M.months=$a(M.months),M.years=$a(M.years),this},Hn.add=function(M,F){return Si(this,M,F,1)},Hn.subtract=function(M,F){return Si(this,M,F,-1)},Hn.as=function(M){if(!this.isValid())return NaN;var F,G,st=this._milliseconds;if((M=Gt(M))==="month"||M==="quarter"||M==="year")switch(F=this._days+st/864e5,G=this._months+qh(F),M){case"month":return G;case"quarter":return G/3;case"year":return G/12}else switch(F=this._days+Math.round(bl(this._months)),M){case"week":return F/7+st/6048e5;case"day":return F+st/864e5;case"hour":return 24*F+st/36e5;case"minute":return 1440*F+st/6e4;case"second":return 86400*F+st/1e3;case"millisecond":return Math.floor(864e5*F)+st;default:throw new Error("Unknown unit "+M)}},Hn.asMilliseconds=Vh,Hn.asSeconds=Xd,Hn.asMinutes=Qp,Hn.asHours=Kd,Hn.asDays=Qd,Hn.asWeeks=Ea,Hn.asMonths=Jd,Hn.asQuarters=Gh,Hn.asYears=Zh,Hn.valueOf=function(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*K(this._months/12):NaN},Hn._bubble=function(){var M,F,G,st,qt,fe=this._milliseconds,we=this._days,Ee=this._months,Ae=this._data;return 0<=fe&&0<=we&&0<=Ee||fe<=0&&we<=0&&Ee<=0||(fe+=864e5*wc(bl(Ee)+we),Ee=we=0),Ae.milliseconds=fe%1e3,M=et(fe/1e3),Ae.seconds=M%60,F=et(M/60),Ae.minutes=F%60,G=et(F/60),Ae.hours=G%24,Ee+=qt=et(qh(we+=et(G/24))),we-=wc(bl(qt)),st=et(Ee/12),Ee%=12,Ae.days=we,Ae.months=Ee,Ae.years=st,this},Hn.clone=function(){return je(this)},Hn.get=function(M){return M=Gt(M),this.isValid()?this[M+"s"]():NaN},Hn.milliseconds=_u,Hn.seconds=oo,Hn.minutes=bu,Hn.hours=Sa,Hn.days=Ys,Hn.weeks=function(){return et(this.days()/7)},Hn.months=wl,Hn.years=jo,Hn.humanize=function(M){if(!this.isValid())return this.localeData().invalidDate();var F,G,st,qt,fe,we,Ee,Ae,Pe,We,kn=this.localeData(),pn=(F=!M,G=kn,st=je(this).abs(),qt=Xi(st.as("s")),fe=Xi(st.as("m")),we=Xi(st.as("h")),Ee=Xi(st.as("d")),Ae=Xi(st.as("M")),Pe=Xi(st.as("y")),(We=qt<=gi.ss&&["s",qt]||qt<gi.s&&["ss",qt]||fe<=1&&["m"]||fe<gi.m&&["mm",fe]||we<=1&&["h"]||we<gi.h&&["hh",we]||Ee<=1&&["d"]||Ee<gi.d&&["dd",Ee]||Ae<=1&&["M"]||Ae<gi.M&&["MM",Ae]||Pe<=1&&["y"]||["yy",Pe])[2]=F,We[3]=0<+this,We[4]=G,function(lr,fr,Br,cr,Ca){return Ca.relativeTime(fr||1,!!Br,lr,cr)}.apply(null,We));return M&&(pn=kn.pastFuture(+this,pn)),kn.postformat(pn)},Hn.toISOString=oa,Hn.toString=oa,Hn.toJSON=oa,Hn.locale=Di,Hn.localeData=ro,Hn.toIsoString=St("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",oa),Hn.lang=bc,ct("X",0,0,"unix"),ct("x",0,0,"valueOf"),Te("x",Ye),Te("X",/[+-]?\d+(\.\d{1,3})?/),bn("X",function(M,F,G){G._d=new Date(1e3*parseFloat(M,10))}),bn("x",function(M,F,G){G._d=new Date(K(M))}),y.version="2.24.0",l=Dn,y.fn=Re,y.min=function(){return yr("isBefore",[].slice.call(arguments,0))},y.max=function(){return yr("isAfter",[].slice.call(arguments,0))},y.now=function(){return Date.now?Date.now():+new Date},y.utc=$,y.unix=function(M){return Dn(1e3*M)},y.months=function(M,F){return vu(M,F,"months")},y.isDate=D,y.locale=Ta,y.invalid=X,y.duration=je,y.isMoment=Ct,y.weekdays=function(M,F,G){return _l(M,F,G,"weekdays")},y.parseZone=function(){return Dn.apply(null,arguments).parseZone()},y.localeData=di,y.isDuration=ri,y.monthsShort=function(M,F){return vu(M,F,"monthsShort")},y.weekdaysMin=function(M,F,G){return _l(M,F,G,"weekdaysMin")},y.defineLocale=xo,y.updateLocale=function(M,F){if(F!=null){var G,st,qt=fi;(st=ni(M))!=null&&(qt=st._config),(G=new pe(F=ge(qt,F))).parentLocale=er[M],er[M]=G,Ta(M)}else er[M]!=null&&(er[M].parentLocale!=null?er[M]=er[M].parentLocale:er[M]!=null&&delete er[M]);return er[M]},y.locales=function(){return pt(er)},y.weekdaysShort=function(M,F,G){return _l(M,F,G,"weekdaysShort")},y.normalizeUnits=Gt,y.relativeTimeRounding=function(M){return M===void 0?Xi:typeof M=="function"&&(Xi=M,!0)},y.relativeTimeThreshold=function(M,F){return gi[M]!==void 0&&(F===void 0?gi[M]:(gi[M]=F,M==="s"&&(gi.ss=F-1),!0))},y.calendarFormat=function(M,F){var G=M.diff(F,"days",!0);return G<-6?"sameElse":G<-1?"lastWeek":G<0?"lastDay":G<1?"sameDay":G<2?"nextDay":G<7?"nextWeek":"sameElse"},y.prototype=Re,y.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},y}()},6470:r=>{function s(c){if(typeof c!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(c))}function o(c,y){for(var p,b="",T=0,k=-1,D=0,O=0;O<=c.length;++O){if(O<c.length)p=c.charCodeAt(O);else{if(p===47)break;p=47}if(p===47){if(!(k===O-1||D===1))if(k!==O-1&&D===2){if(b.length<2||T!==2||b.charCodeAt(b.length-1)!==46||b.charCodeAt(b.length-2)!==46){if(b.length>2){var R=b.lastIndexOf("/");if(R!==b.length-1){R===-1?(b="",T=0):T=(b=b.slice(0,R)).length-1-b.lastIndexOf("/"),k=O,D=0;continue}}else if(b.length===2||b.length===1){b="",T=0,k=O,D=0;continue}}y&&(b.length>0?b+="/..":b="..",T=2)}else b.length>0?b+="/"+c.slice(k+1,O):b=c.slice(k+1,O),T=O-k-1;k=O,D=0}else p===46&&D!==-1?++D:D=-1}return b}var l={resolve:function(){for(var c,y="",p=!1,b=arguments.length-1;b>=-1&&!p;b--){var T;b>=0?T=arguments[b]:(c===void 0&&(c=process.cwd()),T=c),s(T),T.length!==0&&(y=T+"/"+y,p=T.charCodeAt(0)===47)}return y=o(y,!p),p?y.length>0?"/"+y:"/":y.length>0?y:"."},normalize:function(c){if(s(c),c.length===0)return".";var y=c.charCodeAt(0)===47,p=c.charCodeAt(c.length-1)===47;return(c=o(c,!y)).length!==0||y||(c="."),c.length>0&&p&&(c+="/"),y?"/"+c:c},isAbsolute:function(c){return s(c),c.length>0&&c.charCodeAt(0)===47},join:function(){if(arguments.length===0)return".";for(var c,y=0;y<arguments.length;++y){var p=arguments[y];s(p),p.length>0&&(c===void 0?c=p:c+="/"+p)}return c===void 0?".":l.normalize(c)},relative:function(c,y){if(s(c),s(y),c===y||(c=l.resolve(c))===(y=l.resolve(y)))return"";for(var p=1;p<c.length&&c.charCodeAt(p)===47;++p);for(var b=c.length,T=b-p,k=1;k<y.length&&y.charCodeAt(k)===47;++k);for(var D=y.length-k,O=T<D?T:D,R=-1,z=0;z<=O;++z){if(z===O){if(D>O){if(y.charCodeAt(k+z)===47)return y.slice(k+z+1);if(z===0)return y.slice(k+z)}else T>O&&(c.charCodeAt(p+z)===47?R=z:z===0&&(R=0));break}var $=c.charCodeAt(p+z);if($!==y.charCodeAt(k+z))break;$===47&&(R=z)}var q="";for(z=p+R+1;z<=b;++z)z!==b&&c.charCodeAt(z)!==47||(q.length===0?q+="..":q+="/..");return q.length>0?q+y.slice(k+R):(k+=R,y.charCodeAt(k)===47&&++k,y.slice(k))},_makeLong:function(c){return c},dirname:function(c){if(s(c),c.length===0)return".";for(var y=c.charCodeAt(0),p=y===47,b=-1,T=!0,k=c.length-1;k>=1;--k)if((y=c.charCodeAt(k))===47){if(!T){b=k;break}}else T=!1;return b===-1?p?"/":".":p&&b===1?"//":c.slice(0,b)},basename:function(c,y){if(y!==void 0&&typeof y!="string")throw new TypeError('"ext" argument must be a string');s(c);var p,b=0,T=-1,k=!0;if(y!==void 0&&y.length>0&&y.length<=c.length){if(y.length===c.length&&y===c)return"";var D=y.length-1,O=-1;for(p=c.length-1;p>=0;--p){var R=c.charCodeAt(p);if(R===47){if(!k){b=p+1;break}}else O===-1&&(k=!1,O=p+1),D>=0&&(R===y.charCodeAt(D)?--D==-1&&(T=p):(D=-1,T=O))}return b===T?T=O:T===-1&&(T=c.length),c.slice(b,T)}for(p=c.length-1;p>=0;--p)if(c.charCodeAt(p)===47){if(!k){b=p+1;break}}else T===-1&&(k=!1,T=p+1);return T===-1?"":c.slice(b,T)},extname:function(c){s(c);for(var y=-1,p=0,b=-1,T=!0,k=0,D=c.length-1;D>=0;--D){var O=c.charCodeAt(D);if(O!==47)b===-1&&(T=!1,b=D+1),O===46?y===-1?y=D:k!==1&&(k=1):y!==-1&&(k=-1);else if(!T){p=D+1;break}}return y===-1||b===-1||k===0||k===1&&y===b-1&&y===p+1?"":c.slice(y,b)},format:function(c){if(c===null||typeof c!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof c);return function(y,p){var b=p.dir||p.root,T=p.base||(p.name||"")+(p.ext||"");return b?b===p.root?b+T:b+"/"+T:T}(0,c)},parse:function(c){s(c);var y={root:"",dir:"",base:"",ext:"",name:""};if(c.length===0)return y;var p,b=c.charCodeAt(0),T=b===47;T?(y.root="/",p=1):p=0;for(var k=-1,D=0,O=-1,R=!0,z=c.length-1,$=0;z>=p;--z)if((b=c.charCodeAt(z))!==47)O===-1&&(R=!1,O=z+1),b===46?k===-1?k=z:$!==1&&($=1):k!==-1&&($=-1);else if(!R){D=z+1;break}return k===-1||O===-1||$===0||$===1&&k===O-1&&k===D+1?O!==-1&&(y.base=y.name=D===0&&T?c.slice(1,O):c.slice(D,O)):(D===0&&T?(y.name=c.slice(1,k),y.base=c.slice(1,O)):(y.name=c.slice(D,k),y.base=c.slice(D,O)),y.ext=c.slice(k,O)),D>0?y.dir=c.slice(0,D-1):T&&(y.dir="/"),y},sep:"/",delimiter:":",win32:null,posix:null};l.posix=l,r.exports=l},8218:()=>{},8009:()=>{},5354:()=>{},6878:()=>{},8183:()=>{},1428:()=>{},4551:()=>{},8800:()=>{},1993:()=>{},3069:()=>{},9143:()=>{}},X8={};function cs(r){var s=X8[r];if(s!==void 0)return s.exports;var o=X8[r]={id:r,loaded:!1,exports:{}};return BN[r].call(o.exports,o,o.exports,cs),o.loaded=!0,o.exports}cs.c=X8,cs.n=r=>{var s=r&&r.__esModule?()=>r.default:()=>r;return cs.d(s,{a:s}),s},cs.d=(r,s)=>{for(var o in s)cs.o(s,o)&&!cs.o(r,o)&&Object.defineProperty(r,o,{enumerable:!0,get:s[o]})},cs.g=function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch{if(typeof window=="object")return window}}(),cs.o=(r,s)=>Object.prototype.hasOwnProperty.call(r,s),cs.r=r=>{typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(r,"__esModule",{value:!0})},cs.nmd=r=>(r.paths=[],r.children||(r.children=[]),r);var WO=cs(cs.s=7458).Z,Bw=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{},pv={},G9={};(function(r){var s=Bw&&Bw.__values||function(l){var c=typeof Symbol=="function"&&Symbol.iterator,y=c&&l[c],p=0;if(y)return y.call(l);if(l&&typeof l.length=="number")return{next:function(){return l&&p>=l.length&&(l=void 0),{value:l&&l[p++],done:!l}}};throw new TypeError(c?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(r,"__esModule",{value:!0}),r.getWordsByCategory=r.wordList=void 0,r.wordList={noun:[{word:"accountant",categories:["profession"]},{word:"ability",categories:["thing"]},{word:"accident",categories:["thing"]},{word:"account",categories:["thing"]},{word:"action",categories:["thing"]},{word:"activity",categories:["thing"]},{word:"actor",categories:["profession"]},{word:"ad",categories:["media"]},{word:"addition",categories:["thing"]},{word:"address",categories:["thing"]},{word:"adult",categories:["people"]},{word:"advantage",categories:["thing"]},{word:"advertisement",categories:["media"]},{word:"afternoon",categories:["time"]},{word:"agency",categories:["thing"]},{word:"agent",categories:["people"]},{word:"air",categories:["thing"]},{word:"airline",categories:["transportation"]},{word:"airplane",categories:["transportation"]},{word:"airport",categories:["transportation","place"]},{word:"alarm",categories:["thing"]},{word:"alligator",categories:["animals"]},{word:"ambulance",categories:["health"]},{word:"analyst",categories:["profession"]},{word:"angle",categories:["thing"]},{word:"animal",categories:["animals"]},{word:"answer",categories:["thing"]},{word:"apartment",categories:["place"]},{word:"apple",categories:["food"]},{word:"application",categories:["thing"]},{word:"appointment",categories:["thing"]},{word:"architect",categories:["profession"]},{word:"argument",categories:["thing"]},{word:"area",categories:["thing"]},{word:"arm",categories:["thing"]},{word:"army",categories:["thing"]},{word:"art",categories:["thing"]},{word:"article",categories:["thing"]},{word:"artist",categories:["profession"]},{word:"australia",categories:["place"]},{word:"author",categories:["profession"]},{word:"autumn",categories:["time"]},{word:"baby",categories:["people","family"]},{word:"baker",categories:["profession"]},{word:"balloon",categories:["thing"]},{word:"banana",categories:["food"]},{word:"barista",categories:["profession"]},{word:"battery",categories:["thing"]},{word:"beach",categories:["place"]},{word:"bear",categories:["animals"]},{word:"beard",categories:["thing"]},{word:"bed",categories:["thing"]},{word:"belgium",categories:["place"]},{word:"bird",categories:["animals"]},{word:"bit",categories:["thing","technology"]},{word:"book",categories:["thing","education"]},{word:"boots",categories:["thing"]},{word:"boy",categories:["people"]},{word:"branch",categories:["thing"]},{word:"breakfast",categories:["thing"]},{word:"brother",categories:["family"]},{word:"businessperson",categories:["people","business"]},{word:"butcher",categories:["profession"]},{word:"byte",categories:["thing","technology"]},{word:"camera",categories:["thing"]},{word:"candle",categories:["thing"]},{word:"car",categories:["transportation"]},{word:"caravan",categories:["transportation"]},{word:"carpenter",categories:["profession"]},{word:"carpet",categories:["thing"]},{word:"cartoon",categories:["media"]},{word:"cat",categories:["animals"]},{word:"chef",categories:["profession"]},{word:"child",categories:["people","family"]},{word:"china",categories:["place"]},{word:"church",categories:["religion"]},{word:"city",categories:["place"]},{word:"coat",categories:["thing"]},{word:"coffeeshop",categories:["place"]},{word:"computer",categories:["thing","technology"]},{word:"continent",categories:["place"]},{word:"controller",categories:["thing","technology"]},{word:"country",categories:["place"]},{word:"cpu",categories:["thing","technology"]},{word:"crayon",categories:["thing"]},{word:"cricket",categories:["animals"]},{word:"crowd",categories:["people"]},{word:"daughter",categories:["family"]},{word:"dawn",categories:["time"]},{word:"daybreak",categories:["time"]},{word:"death",categories:["thing"]},{word:"denmark",categories:["place"]},{word:"dentist",categories:["profession"]},{word:"diamond",categories:["thing"]},{word:"dinner",categories:["food"]},{word:"disease",categories:["thing"]},{word:"doctor",categories:["profession"]},{word:"dog",categories:["animals"]},{word:"dream",categories:["thing"]},{word:"dress",categories:["thing"]},{word:"dusk",categories:["time"]},{word:"easter",categories:["religion"]},{word:"egg",categories:["food"]},{word:"eggplant",categories:["food"]},{word:"egypt",categories:["place"]},{word:"electrician",categories:["profession"]},{word:"elephant",categories:["animals"]},{word:"energy",categories:["thing"]},{word:"engine",categories:["transportation"]},{word:"engineer",categories:["profession"]},{word:"england",categories:["place"]},{word:"eve",categories:["time"]},{word:"evening",categories:["time"]},{word:"eventide",categories:["time"]},{word:"exabyte",categories:["thing","technology"]},{word:"eye",categories:["thing"]},{word:"fall",categories:["time"]},{word:"family",categories:["family"]},{word:"farmer",categories:["profession"]},{word:"father",categories:["people","family"]},{word:"finland",categories:["place"]},{word:"fireman",categories:["profession"]},{word:"fish",categories:["animals"]},{word:"flag",categories:["thing"]},{word:"florist",categories:["profession"]},{word:"flower",categories:["thing"]},{word:"football",categories:["sports"]},{word:"forest",categories:["place"]},{word:"fountain",categories:["thing"]},{word:"france",categories:["place"]},{word:"furniture",categories:["thing"]},{word:"garage",categories:["place"]},{word:"garden",categories:["food"]},{word:"gas",categories:["transportation"]},{word:"ghost",categories:["thing"]},{word:"gigabyte",categories:["thing","technology"]},{word:"girl",categories:["people"]},{word:"glass",categories:["thing"]},{word:"gold",categories:["thing"]},{word:"gpu",categories:["thing","technology"]},{word:"grandmother",categories:["people","family"]},{word:"grass",categories:["thing"]},{word:"greece",categories:["place"]},{word:"guitar",categories:["thing"]},{word:"hair",categories:["thing"]},{word:"hairdresser",categories:["profession"]},{word:"hamburger",categories:["food"]},{word:"helicopter",categories:["transportation"]},{word:"helmet",categories:["thing"]},{word:"holiday",categories:["thing"]},{word:"honey",categories:["food"]},{word:"horse",categories:["animals"]},{word:"hospital",categories:["place"]},{word:"house",categories:["place"]},{word:"hydrogen",categories:["science"]},{word:"ice",categories:["science"]},{word:"insect",categories:["animals"]},{word:"insurance",categories:["thing"]},{word:"intern",categories:["profession"]},{word:"iron",categories:["science"]},{word:"island",categories:["place"]},{word:"jackal",categories:["animals"]},{word:"jelly",categories:["food"]},{word:"jewellery",categories:["thing"]},{word:"jordan",categories:["place"]},{word:"journalist",categories:["profession"]},{word:"joystick",categories:["thing","technology"]},{word:"judge",categories:["profession"]},{word:"juice",categories:["food"]},{word:"kangaroo",categories:["animals"]},{word:"keyboard",categories:["thing","technology"]},{word:"kilobyte",categories:["thing","technology"]},{word:"king",categories:["people"]},{word:"kitchen",categories:["place"]},{word:"kite",categories:["thing"]},{word:"knife",categories:["thing"]},{word:"lamp",categories:["thing"]},{word:"laptop",categories:["thing","technology"]},{word:"lawyer",categories:["profession"]},{word:"leather",categories:["thing"]},{word:"librarian",categories:["profession"]},{word:"library",categories:["place"]},{word:"lifeguard",categories:["profession"]},{word:"lighter",categories:["thing"]},{word:"lion",categories:["animals"]},{word:"lizard",categories:["animals"]},{word:"lock",categories:["thing"]},{word:"london",categories:["place"]},{word:"lunch",categories:["food"]},{word:"machine",categories:["science"]},{word:"magazine",categories:["media"]},{word:"magician",categories:["people"]},{word:"man",categories:["people"]},{word:"manchester",categories:["place"]},{word:"market",categories:["place"]},{word:"match",categories:["thing"]},{word:"mechanic",categories:["profession"]},{word:"megabyte",categories:["thing","technology"]},{word:"memory",categories:["thing","technology"]},{word:"microphone",categories:["thing"]},{word:"midnight",categories:["time"]},{word:"minister",categories:["people","religion"]},{word:"monitor",categories:["thing","technology"]},{word:"monkey",categories:["animals"]},{word:"morn",categories:["time"]},{word:"morning",categories:["time"]},{word:"mother",categories:["people","family"]},{word:"motherboard",categories:["thing","technology"]},{word:"motorcycle",categories:["transportation"]},{word:"mouse",categories:["thing","technology","animals"]},{word:"musician",categories:["profession"]},{word:"nail",categories:["thing"]},{word:"napkin",categories:["thing"]},{word:"needle",categories:["thing"]},{word:"nest",categories:["thing"]},{word:"nigeria",categories:["place"]},{word:"night",categories:["time"]},{word:"nightfall",categories:["time"]},{word:"noon",categories:["time"]},{word:"notebook",categories:["thing"]},{word:"nurse",categories:["profession"]},{word:"ocean",categories:["place"]},{word:"oil",categories:["thing"]},{word:"optician",categories:["profession"]},{word:"orange",categories:["food"]},{word:"oxygen",categories:["science"]},{word:"oyster",categories:["animals"]},{word:"pager",categories:["thing","technology"]},{word:"painter",categories:["profession"]},{word:"painting",categories:["media"]},{word:"park",categories:["place"]},{word:"parrot",categories:["animals"]},{word:"pencil",categories:["thing","education"]},{word:"petabyte",categories:["thing","technology"]},{word:"pharmacist",categories:["profession"]},{word:"photographer",categories:["profession"]},{word:"piano",categories:["thing"]},{word:"pillow",categories:["thing"]},{word:"pilot",categories:["profession"]},{word:"pizza",categories:["food"]},{word:"planet",categories:["science"]},{word:"plastic",categories:["thing"]},{word:"plumber",categories:["profession"]},{word:"policeman",categories:["profession"]},{word:"portugal",categories:["place"]},{word:"postman",categories:["profession"]},{word:"potato",categories:["food"]},{word:"printer",categories:["thing","technology"]},{word:"processor",categories:["thing","technology"]},{word:"psychiatrist",categories:["profession"]},{word:"queen",categories:["people"]},{word:"quill",categories:["thing"]},{word:"rain",categories:["thing"]},{word:"rainbow",categories:["science"]},{word:"raincoat",categories:["thing"]},{word:"ram",categories:["thing","technology"]},{word:"receptionist",categories:["profession"]},{word:"refrigerator",categories:["food"]},{word:"restaurant",categories:["place"]},{word:"river",categories:["thing"]},{word:"rocket",categories:["science"]},{word:"room",categories:["place"]},{word:"rose",categories:["thing"]},{word:"russia",categories:["place"]},{word:"salesclerk",categories:["people","business"]},{word:"salesmen",categories:["profession"]},{word:"sandwich",categories:["food"]},{word:"school",categories:["education"]},{word:"scientist",categories:["profession"]},{word:"scooter",categories:["transportation"]},{word:"secretary",categories:["profession"]},{word:"shampoo",categories:["thing"]},{word:"shoe",categories:["thing"]},{word:"smartphone",categories:["thing","technology"]},{word:"soccer",categories:["sports"]},{word:"solstice",categories:["time"]},{word:"spoon",categories:["thing"]},{word:"spring",categories:["time"]},{word:"state",categories:["place"]},{word:"stone",categories:["thing"]},{word:"student",categories:["people","education"]},{word:"sugar",categories:["food"]},{word:"summer",categories:["time"]},{word:"sundown",categories:["time"]},{word:"sunset",categories:["time"]},{word:"sweden",categories:["place"]},{word:"table",categories:["thing"]},{word:"tailor",categories:["profession"]},{word:"teacher",categories:["people","education","profession"]},{word:"teenager",categories:["people","family"]},{word:"telephone",categories:["thing"]},{word:"television",categories:["media"]},{word:"tent",categories:["thing"]},{word:"terabyte",categories:["thing","technology"]},{word:"thailand",categories:["place"]},{word:"tiger",categories:["animals"]},{word:"toddler",categories:["people","family"]},{word:"tomato",categories:["food"]},{word:"toothbrush",categories:["thing"]},{word:"traffic",categories:["thing"]},{word:"train",categories:["transportation"]},{word:"translator",categories:["profession"]},{word:"truck",categories:["thing","transportation"]},{word:"twilight",categories:["time"]},{word:"uganda",categories:["place"]},{word:"umbrella",categories:["thing"]},{word:"van",categories:["transportation"]},{word:"vase",categories:["thing"]},{word:"vegetable",categories:["food"]},{word:"vr",categories:["thing","technology"]},{word:"vulture",categories:["animals"]},{word:"waiter",categories:["profession"]},{word:"waitress",categories:["profession"]},{word:"wall",categories:["thing"]},{word:"whale",categories:["animals"]},{word:"window",categories:["thing"]},{word:"winter",categories:["time"]},{word:"wire",categories:["thing"]},{word:"wolf",categories:["animals"]},{word:"woman",categories:["people"]},{word:"xylophone",categories:["thing"]},{word:"yacht",categories:["transportation"]},{word:"yak",categories:["animals"]},{word:"yottabyte",categories:["thing","technology"]},{word:"zebra",categories:["animals"]},{word:"zettabyte",categories:["thing","technology"]},{word:"zoo",categories:["animals"]}],adjective:[{word:"abandoned",categories:["condition"]},{word:"abiding",categories:["personality"]},{word:"able",categories:["condition"]},{word:"abrasive",categories:["condition","personality"]},{word:"abnormal",categories:["condition"]},{word:"absurd",categories:["condition"]},{word:"abundant",categories:["quantity"]},{word:"acceptable",categories:["condition"]},{word:"acidic",categories:["taste"]},{word:"acoustic",categories:["sounds"]},{word:"acrid",categories:["condition"]},{word:"adamant",categories:["personality"]},{word:"adorable",categories:["personality"]},{word:"adventurous",categories:["personality"]},{word:"aggressive",categories:["personality"]},{word:"agitated",categories:["personality"]},{word:"agreeable",categories:["personality"]},{word:"alert",categories:["condition"]},{word:"alive",categories:["condition"]},{word:"aloof",categories:["personality"]},{word:"ambitious",categories:["personality"]},{word:"ancient",categories:["time"]},{word:"angry",categories:["personality"]},{word:"annoyed",categories:["personality"]},{word:"antsy",categories:["personality"]},{word:"anxious",categories:["personality"]},{word:"appalling",categories:["personality"]},{word:"appetizing",categories:["taste"]},{word:"apprehensive",categories:["personality"]},{word:"arrogant",categories:["personality"]},{word:"ashamed",categories:["personality"]},{word:"astonishing",categories:["personality"]},{word:"attractive",categories:["appearance"]},{word:"average",categories:["appearance"]},{word:"bad",categories:["condition"]},{word:"bald",categories:["appearance"]},{word:"bashful",categories:["personality"]},{word:"beautiful",categories:["appearance"]},{word:"beefy",categories:["appearance"]},{word:"belligerent",categories:["personality"]},{word:"bent",categories:["condition"]},{word:"better",categories:["condition"]},{word:"best",categories:["condition"]},{word:"better",categories:["condition"]},{word:"bewildered",categories:["personality"]},{word:"big",categories:["size"]},{word:"billions",categories:["quantity"]},{word:"billowy",categories:["appearance"]},{word:"bitter",categories:["taste"]},{word:"black",categories:["color"]},{word:"bland",categories:["taste"]},{word:"blue",categories:["color"]},{word:"blushing",categories:["appearance"]},{word:"bored",categories:["personality"]},{word:"boring",categories:["personality"]},{word:"boundless",categories:["personality"]},{word:"brainy",categories:["personality"]},{word:"brash",categories:["personality"]},{word:"brave",categories:["personality"]},{word:"breezy",categories:["touch"]},{word:"brief",categories:["time"]},{word:"bright",categories:["appearance"]},{word:"broad",categories:["shapes"]},{word:"broken",categories:["condition"]},{word:"brown",categories:["color"]},{word:"bulky",categories:["appearance"]},{word:"bumpy",categories:["touch"]},{word:"burly",categories:["appearance"]},{word:"busy",categories:["personality"]},{word:"cagey",categories:["personality"]},{word:"calm",categories:["personality"]},{word:"callous",categories:["personality"]},{word:"careful",categories:["condition"]},{word:"chilly",categories:["touch"]},{word:"chubby",categories:["appearance"]},{word:"clean",categories:["appearance"]},{word:"clever",categories:["condition"]},{word:"clumsy",categories:["personality"]},{word:"cold",categories:["touch"]},{word:"colossal",categories:["size"]},{word:"cool",categories:["touch"]},{word:"crashing",categories:["sounds"]},{word:"creamy",categories:["taste"]},{word:"crooked",categories:["shapes"]},{word:"cuddly",categories:["touch"]},{word:"curved",categories:["shapes"]},{word:"damaged",categories:["touch"]},{word:"damp",categories:["touch"]},{word:"dazzling",categories:["appearance"]},{word:"dead",categories:["condition"]},{word:"deafening",categories:["sounds"]},{word:"deep",categories:["shapes"]},{word:"defeated",categories:["personality"]},{word:"delicious",categories:["taste"]},{word:"delightful",categories:["personality"]},{word:"dirty",categories:["touch"]},{word:"disgusting",categories:["taste"]},{word:"drab",categories:["appearance"]},{word:"dry",categories:["touch"]},{word:"eager",categories:["personality"]},{word:"early",categories:["time"]},{word:"easy",categories:["condition"]},{word:"echoing",categories:["sounds"]},{word:"elegant",categories:["appearance"]},{word:"embarrassed",categories:["personality"]},{word:"enough",categories:["quantity"]},{word:"faint",categories:["sounds"]},{word:"faithful",categories:["personality"]},{word:"famous",categories:["condition"]},{word:"fancy",categories:["appearance"]},{word:"fast",categories:["time"]},{word:"fat",categories:["size"]},{word:"few",categories:["quantity"]},{word:"fierce",categories:["personality"]},{word:"fit",categories:["appearance"]},{word:"flabby",categories:["appearance"]},{word:"flaky",categories:["touch"]},{word:"flat",categories:["shapes"]},{word:"fluffy",categories:["touch"]},{word:"freezing",categories:["touch"]},{word:"fresh",categories:["taste"]},{word:"full",categories:["quantity"]},{word:"future",categories:["time"]},{word:"gentle",categories:["personality"]},{word:"gifted",categories:["condition"]},{word:"gigantic",categories:["size"]},{word:"glamorous",categories:["appearance"]},{word:"gorgeous",categories:["appearance"]},{word:"gray",categories:["color"]},{word:"greasy",categories:["touch","taste"]},{word:"great",categories:["size"]},{word:"green",categories:["color"]},{word:"grumpy",categories:["personality"]},{word:"hallowed",categories:["condition"]},{word:"handsome",categories:["appearance"]},{word:"happy",categories:["personality"]},{word:"harsh",categories:["sounds"]},{word:"helpful",categories:["condition"]},{word:"helpless",categories:["personality"]},{word:"high",categories:["shapes"]},{word:"hissing",categories:["sounds"]},{word:"hollow",categories:["shapes"]},{word:"hot",categories:["touch","taste"]},{word:"howling",categories:["sounds"]},{word:"huge",categories:["size"]},{word:"hundreds",categories:["quantity"]},{word:"icy",categories:["touch"]},{word:"immense",categories:["size"]},{word:"important",categories:["condition"]},{word:"incalculable",categories:["quantity"]},{word:"inexpensive",categories:["condition"]},{word:"itchy",categories:["personality"]},{word:"jealous",categories:["personality"]},{word:"jolly",categories:["personality"]},{word:"juicy",categories:["taste"]},{word:"kind",categories:["personality"]},{word:"large",categories:["size"]},{word:"late",categories:["time"]},{word:"lazy",categories:["personality"]},{word:"lemon",categories:["color"]},{word:"limited",categories:["quantity"]},{word:"little",categories:["size","quantity"]},{word:"lively",categories:["personality"]},{word:"long",categories:["time","appearance"]},{word:"loose",categories:["touch"]},{word:"loud",categories:["sounds"]},{word:"low",categories:["shapes"]},{word:"magnificent",categories:["appearance"]},{word:"mammoth",categories:["size"]},{word:"mango",categories:["color"]},{word:"many",categories:["quantity"]},{word:"massive",categories:["size"]},{word:"mealy",categories:["condition"]},{word:"melodic",categories:["sounds"]},{word:"melted",categories:["touch"]},{word:"microscopic",categories:["size"]},{word:"millions",categories:["quantity"]},{word:"miniature",categories:["size"]},{word:"modern",categories:["time"]},{word:"moldy",categories:["taste"]},{word:"most",categories:["quantity"]},{word:"muscular",categories:["appearance"]},{word:"mushy",categories:["condition"]},{word:"mysterious",categories:["personality"]},{word:"narrow",categories:["shapes"]},{word:"nervous",categories:["personality"]},{word:"nice",categories:["personality"]},{word:"noisy",categories:["sounds"]},{word:"numerous",categories:["quantity"]},{word:"nutritious",categories:["taste"]},{word:"nutty",categories:["taste"]},{word:"obedient",categories:["personality"]},{word:"obnoxious",categories:["personality"]},{word:"odd",categories:["condition"]},{word:"old",categories:["time"]},{word:"orange",categories:["color"]},{word:"panicky",categories:["personality"]},{word:"petite",categories:["size"]},{word:"pitiful",categories:["personality"]},{word:"plain",categories:["appearance"]},{word:"plump",categories:["appearance"]},{word:"polite",categories:["personality"]},{word:"poor",categories:["condition"]},{word:"powerful",categories:["condition"]},{word:"prehistoric",categories:["time"]},{word:"prickly",categories:["touch"]},{word:"proud",categories:["personality"]},{word:"puny",categories:["size"]},{word:"purple",categories:["color"]},{word:"purring",categories:["sounds"]},{word:"putrid",categories:["taste"]},{word:"quaint",categories:["appearance"]},{word:"quick",categories:["time"]},{word:"quiet",categories:["sounds"]},{word:"rancid",categories:["taste"]},{word:"rapid",categories:["time"]},{word:"rapping",categories:["sounds"]},{word:"raspy",categories:["sounds"]},{word:"red",categories:["color"]},{word:"refined",categories:["shapes"]},{word:"repulsive",categories:["personality"]},{word:"rhythmic",categories:["sounds"]},{word:"rich",categories:["condition"]},{word:"ripe",categories:["taste"]},{word:"rotten",categories:["taste"]},{word:"rough",categories:["touch"]},{word:"round",categories:["shapes"]},{word:"salmon",categories:["color"]},{word:"salty",categories:["taste"]},{word:"savory",categories:["taste"]},{word:"scarce",categories:["quantity"]},{word:"scary",categories:["personality"]},{word:"scrawny",categories:["size"]},{word:"screeching",categories:["sounds"]},{word:"scruffy",categories:["appearance"]},{word:"shaggy",categories:["touch"]},{word:"shallow",categories:["shapes"]},{word:"shapely",categories:["appearance"]},{word:"sharp",categories:["touch"]},{word:"short",categories:["size","appearance","time"]},{word:"shrilling",categories:["sounds"]},{word:"shy",categories:["condition"]},{word:"silly",categories:["personality"]},{word:"skinny",categories:["appearance","shapes"]},{word:"slimy",categories:["touch"]},{word:"slow",categories:["time"]},{word:"small",categories:["size"]},{word:"some",categories:["quantity"]},{word:"sour",categories:["taste"]},{word:"sparse",categories:["quantity"]},{word:"spicy",categories:["taste"]},{word:"spoiled",categories:["taste"]},{word:"square",categories:["shapes"]},{word:"squeaking",categories:["sounds"]},{word:"stale",categories:["taste"]},{word:"steep",categories:["shapes"]},{word:"sticky",categories:["touch"]},{word:"stocky",categories:["appearance"]},{word:"straight",categories:["shapes"]},{word:"strong",categories:["touch"]},{word:"substantial",categories:["quantity"]},{word:"sweet",categories:["taste"]},{word:"swift",categories:["time"]},{word:"tall",categories:["size"]},{word:"tangy",categories:["taste"]},{word:"tart",categories:["taste"]},{word:"tasteless",categories:["taste"]},{word:"tasty",categories:["taste"]},{word:"teeny",categories:["size"]},{word:"tender",categories:["condition"]},{word:"thankful",categories:["personality"]},{word:"thoughtless",categories:["personality"]},{word:"thousands",categories:["quantity"]},{word:"thundering",categories:["sounds"]},{word:"tight",categories:["touch"]},{word:"tinkling",categories:["sounds"]},{word:"tiny",categories:["size"]},{word:"ugly",categories:["appearance"]},{word:"uneven",categories:["touch"]},{word:"unimportant",categories:["condition"]},{word:"uninterested",categories:["condition"]},{word:"unkempt",categories:["appearance"]},{word:"unsightly",categories:["appearance"]},{word:"uptight",categories:["personality"]},{word:"vast",categories:["condition"]},{word:"victorious",categories:["personality"]},{word:"wailing",categories:["sounds"]},{word:"warm",categories:["touch"]},{word:"weak",categories:["touch"]},{word:"wet",categories:["touch"]},{word:"whining",categories:["sounds"]},{word:"whispering",categories:["sounds"]},{word:"white",categories:["color"]},{word:"wide",categories:["shapes"]},{word:"witty",categories:["personality"]},{word:"wonderful",categories:["personality"]},{word:"wooden",categories:["touch"]},{word:"worried",categories:["personality"]},{word:"wrong",categories:["condition"]},{word:"yellow",categories:["color"]},{word:"young",categories:["time"]},{word:"yummy",categories:["taste"]},{word:"zealous",categories:["personality"]}]};function o(l,c){var y,p;c===void 0&&(c=[]);var b=new Set(c),T=[];try{for(var k=s(r.wordList[l]),D=k.next();!D.done;D=k.next()){var O=D.value;(c.length===0||O.categories.some(function(R){return b.has(R)}))&&T.push(O.word)}}catch(R){y={error:R}}finally{try{D&&!D.done&&(p=k.return)&&p.call(k)}finally{if(y)throw y.error}}return T}r.getWordsByCategory=o})(G9);var Iw=Bw&&Bw.__assign||function(){return Iw=Object.assign||function(r){for(var s,o=1,l=arguments.length;o<l;o++){s=arguments[o];for(var c in s)Object.prototype.hasOwnProperty.call(s,c)&&(r[c]=s[c])}return r},Iw.apply(this,arguments)};Object.defineProperty(pv,"__esModule",{value:!0});pv.totalUniqueSlugs=RN=pv.generateSlug=void 0;var K8=G9,Z9=3;function IN(r,s){for(var o=r||Z9,l={partsOfSpeech:X9(o),categories:{},format:"kebab"},c=Iw(Iw({},l),s),y=[],p=0;p<o;p++){var b=c.partsOfSpeech[p],T=K8.getWordsByCategory(c.partsOfSpeech[p],c.categories[b]),k=T[Math.floor(Math.random()*T.length)];y.push(k)}return FN(y,c.format)}var RN=pv.generateSlug=IN;function X9(r){for(var s=[],o=0;o<r-1;o++)s.push("adjective");return s.push("noun"),s}function FN(r,s){return s==="kebab"?r.join("-").toLowerCase():s==="camel"?r.map(function(o,l){return l===0?o.toLowerCase():o[0].toUpperCase()+o.slice(1).toLowerCase()}).join(""):s==="lower"?r.join(" ").toLowerCase():s==="sentence"?r.map(function(o,l){return l===0?o[0].toUpperCase()+o.slice(1).toLowerCase():o}).join(" "):r.map(function(o){return o[0].toUpperCase()+o.slice(1).toLowerCase()}).join(" ")}function PN(r,s){for(var o,l,c=K8.getWordsByCategory("adjective",(o=s==null?void 0:s.categories)===null||o===void 0?void 0:o.adjective).length,y=K8.getWordsByCategory("noun",(l=s==null?void 0:s.categories)===null||l===void 0?void 0:l.noun).length,p={adjective:c,noun:y},b=r||Z9,T=(s==null?void 0:s.partsOfSpeech)||X9(b),k=1,D=0;D<b;D++)k*=p[T[D]];return k}pv.totalUniqueSlugs=PN;export{gT as $,bO as A,AT as B,eT as C,NT as D,dO as E,zN as F,dT as G,$N as H,HN as I,UN as J,jN as K,FO as L,IO as M,YO as N,RO as O,PO as P,jO as Q,CO as R,EO as S,AO as T,SO as U,YN as V,su as W,lO as X,zO as Y,_7 as Z,KN as _,yT as a,nO as a0,GN as a1,UO as a2,WN as a3,sO as a4,QN as a5,q4 as a6,vO as a7,$O as a8,wO as a9,pO as aa,HO as ab,fO as ac,aO as ad,tO as ae,Pd as af,rn as ag,qN as ah,WO as ai,RN as aj,JN as b,eO as c,pT as d,p7 as e,oO as f,VN as g,vT as h,TO as i,iO as j,ZN as k,XN as l,rO as m,gO as n,mO as o,yO as p,ET as q,hO as r,nT as s,U6 as t,uO as u,cO as v,xO as w,kO as x,CT as y,_O as z};
|